1 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
3 * config/netbsd-elf.h (LINK_SPEC): Rename to...
4 (NETBSD_LINK_SPEC_ELF): ...this. Use %(netbsd_entry_point)
5 to specify program entry point.
7 2002-06-07 Jeff Law <law@redhat.com
9 * emit-rtl.c (init_emit): Add hard registers to regno_reg_rtx.
10 * combine.c (move_deaths): Use regno_reg_rtx for hard regs rather
11 than creating a new register.
12 (distribute_notes): Likewise.
13 * df.c (df_reg_use_gen): Likewise.
14 (df_reg_clobber_gen): Likewise.
15 (df_ref_record): Likewise.
16 * expr.c (use_regs): Likewise.
17 * flow.c (propagate_one_insn): Likewise.
18 (mark_set_1): Likewise.
19 (mark_used_reg): Likewise.
20 * reload.c (emit_reload_insns): Likewise.
22 2002-06-07 Roger Sayle <roger@eyesopen.com>
24 * simplify-rtx.c (simplify_gen_relational): Simplify RTL of the form
25 (ne (comp x y) 0) into (comp x y) where comp is a comparison code.
26 Simplify (eq (comp x y) 0) into (revcomp x y) if the sense of the
27 comparison code comp can be reversed.
29 2002-06-07 Roger Sayle <roger@eyesopen.com>
31 * fold-const.c (fold) [EQ_EXPR]: Place both integer and real
32 constants last in comparisons. Optimize (x+1.0)>0.0 into the
33 equivalent x > -1.0 when -ffast-math.
35 2002-06-07 Jason Thorpe <thorpej@wasabisystems.com>
37 * config.gcc (mips*-*-netbsd*): Add mips/t-netbsd to ${tmake_file}.
38 * config/mips/t-netbsd: New file.
40 2002-06-07 Zack Weinberg <zack@codesourcery.com>
42 * cppinit.c (COMMAND_LINE_OPTIONS): Give all relevant -W
43 options their own entries.
44 (parse_option): Clarify comment.
45 (cpp_handle_option): Remove 'ignore' parameter and OPT_W
46 special case. Replace if/strcmp chain for -W options with
47 use of new OPT_* entries for them.
48 (cpp_handle_options): Update to match.
49 * cpplib.h: Remove last parameter to cpp_handle_option from prototype.
50 * c-decl.c: Update call to cpp_handle_option.
52 2002-06-07 Akim Demaille <akim@epita.fr>
54 * gengtype-yacc.y (optionseqopt): Add the ending `;' to the action.
57 2002-06-07 Jeffrey Law <law@redhat.com>
59 * sched-deps.c (free_deps): Avoid calling free_INSN_LIST_list
62 2002-06-07 H.J. Lu (hjl@gnu.org)
64 * configure.in: Add --enable-__cxa_atexit.
65 * configure: Regenerated.
66 * config.in: Likewise.
68 * defaults.h (DEFAULT_USE_CXA_ATEXIT): New. Defined to be 0 if
71 2002-06-07 Gabriel Dos Reis <gdr@merlin.nerim.net>
73 * diagnostic.c (diagnostic_build_prefix): Fix initialization.
75 2002-06-07 Jason Thorpe <thorpej@wasabisystems.com>
77 * config/mips/netbsd.h (CACHE_FLUSH_FUNC): Define.
79 2002-06-07 Jason Merrill <jason@redhat.com>
81 * cppexp.c (num_equality_op): Use a temporary variable to work
84 2002-06-07 Gabriel Dos Reis <gdr@codesourcery.com>
86 * diagnostic.c (diagnostic_build_prefix): Tidy.
88 2002-06-07 Neil Booth <neil@daikokuya.demon.co.uk>
90 * cpptrad.c (struct block, BLOCK_HEADER_LEN, BLOCK_LEN,
91 scan_parameters, save_replacement_text, replacement_length): New.
92 (scan_out_logical_line): Take a macro and save parameters if
94 (_cpp_logical_line_trad): Update.
95 (_cpp_create_trad_definition): Update to handle function-like
97 * cpplex.c (new_buff): Update.
98 (struct dummy, DEFAULT_ALIGNMENT, CPP_ALIGN): Move...
100 (CPP_ALIGN2, _cpp_save_parameter): New.
101 * cppmacro.c (save_parameter): Rename, export.
102 (parse_params): Update.
104 2002-06-07 Andreas Jaeger <aj@suse.de>
106 * config/mmix/mmix.c: Remove extra broken prototype for
107 mmix_init_machine_status.
109 2002-06-06 Geoffrey Keating <geoffk@redhat.com>
111 * gengtype.c: Add comments before all the routines.
113 2002-06-07 Jason Thorpe <thorpej@wasabisystems.com>
115 * config.gcc (sh5*-*-netbsd*): Remove sh/t-netbsd-sh5-32
116 from and add t-sh64 to ${tmake_file}.
117 (sh64*-*-netbsd*): Add t-sh64 to ${tmake_file}.
118 * config/sh/t-netbsd-sh5 (LIB1ASMFUNCS): Remove.
119 * config/sh/t-netbsd-sh5-32: Remove.
120 * config/sh/t-netbsd-sh5-64 (MULTILIB_OPTIONS): Use
122 (MULTILIB_DIRNAMES): Define.
124 Thu Jun 6 23:14:46 CEST 2002 Jan Hubicka <jh@suse.cz>
126 * i386.md (and promoting splitters): Disable QI to SImode promoting
127 when doing so changes immediate to be 32bit.
129 * rtl.h (emit_*_scope): Declare.
130 * emit-rtl.c (emit_*_scope): New global functions.
131 (try_split): Copy scope.
132 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
133 noce_try_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
134 noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
135 noce_process_if_block, find_cond_trap): Copy scopes.
136 * recog.c (peephole2_optimize): likewise.
138 2002-06-06 Jeffrey Law <law@redhat.com>
140 * h8300.h (OK_FOR_U): Fix thinko exposed by flag checking.
142 Thu Jun 6 21:06:25 2002 J"orn Rennecke <joern.rennecke@superh.com>
144 * gengtype-lex.l (INITIAL): New rule for "'"("\\".|[^\\])"'".
146 2002-06-06 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
148 * Makefile.in (TEXI_GCCINSTALL_FILES): Define.
149 ($(docdir)/gccinstall.info): New target.
150 (info): Depend on it.
151 (gccinstall.dvi): New target.
153 * doc/.cvsignore: Ignore new info files.
154 * doc/install.texi (@setfilename): Reflect new info filename.
156 Thu Jun 6 15:57:23 2002 J"orn Rennecke <joern.rennecke@superh.com>
158 * sh.c (machine_dependent_reorg): Don't set RTX_UNCHANGING_P
161 Thu Jun 6 07:17:43 2002 Nicola Pero <n.pero@mi.flashnet.it>
164 * objc/objc-lang.c (LANG_HOOKS_GET_ALIAS_SET): Define to be
165 c_common_get_alias_set.
166 (LANG_HOOKS_SAFE_FROM_P): Define to be c_safe_from_p.
168 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
170 * emit-rtl.c (get_first_nonnote_insn, get_last_nonnote_insn): New
172 * rtl.h (get_first_nonnote_insn, get_last_nonnote_insn): Declare.
173 * avr/avr.c (avr_output_function_epilogue): Use above to determine
175 * pa/pa.c (pa_output_function_prologue): Likewise.
177 2002-06-05 David S. Miller <davem@redhat.com>
179 * integrate.c (subst_constants): Handle 'B' RTL format.
181 2002-06-05 Eric Christopher <echristo@redhat.com>
183 * varasm.c (make_decl_rtl): Fix comment for removed
186 2002-06-05 Eric Christopher <echristo@redhat.com>
188 * Makefile.in: Remove missed halfpic bits.
190 2002-06-05 Eric Christopher <echristo@redhat.com>
192 * toplev.c: Remove half-pic.
193 * config/mips/mips.c: Ditto.
194 * config/mips/mips.h: Ditto. Remove unused defines.
195 * config/mips/openbsd.h: Update comment to reflect above.
196 * config/mips/mips.md: Remove half-pic constraints.
200 2002-06-05 Jeffrey Law <law@redhat.com>
202 * pa.h (EXTRA_CONSTRAINT, T case): Further refine so that it
203 rejects (mem (lo_sum (reg) (unspec))), but will allow
204 (mem (lo_sum (reg) (symbol_ref)) for PA2.0.
206 2002-06-05 Neil Booth <neil@daikokuya.demon.co.uk>
208 * cpphash.h (_cpp_create_definition): Update prototype.
209 (_cpp_push_text_context, _cpp_create_trad_definition): New.
210 ( cpp_lex_identifier_trad): New.
211 (_cpp_set_trad_context): New.
212 * cppinit.c (cpp_finish_options): Don't conditionalize builtins.
213 * cpplib.c (SEEN_EOL): Update.
214 (lex_macro_node): Update for -traditional.
215 (cpp_push_buffer, _cpp_pop_buffer): Similarly.
216 * cppmacro.c (_cpp_create_definition): Split into
217 create_iso_definition() and _cpp_create_trad_definition().
218 (warn_of_redefinition): Update prototype; handle traditional
220 (_cpp_push_text_context): New.
221 * cpptrad.c (skip_whitespace, push_replacement_text): New.
222 (lex_identifier): Call ht_lookup with correct start.
223 (_cpp_lex_identifier_tradm _cpp_create_trad_definition,
224 _cpp_set_trad_context): New.
225 (scan_out_logical_line): Update to handle changing contexts.
227 Wed Jun 5 20:42:31 2002 J"orn Rennecke <joern.rennecke@superh.com>
229 * config.gcc (sh-*-elf*, sh64*-*-elf*): Unify.
231 * config/sh/t-be (MULTILIB_ENDIAN): Set.
232 * config/sh/t-le (MULTILIB_ENDIAN): Likewise.
233 * t-sh (MULTILIB_ENDIAN): Set.
234 (MULTILIB_OPTIONS): Use it.
235 * t-sh64 (MULTILIB_OPTIONS): Likewise.
236 (MULTILIB_DIRNAMES): Likewise.
238 2002-06-05 Gabriel Dos Reis <gdr@codesourcery.com>
240 * toplev.h (report_error_function): Remove.
242 * diagnostic.h (location_t): New datatype.
243 (text_info): Likewise.
244 (diagnostic_info): Likewise.
245 (output_prefix): New macro.
246 (diagnostic_last_function_changed): Likewise.
247 (diagnostic_set_last_function): Likewise.
248 (diagnostic_last_module_changed): Likewise.
249 (diagnostic_set_last_module): Likewise.
250 (report_diagnostic): Now macro.
251 (diagnostic_set_info): Declare.
253 * diagnostic.c (report_problematic_module): Rename to
254 diagnostic_repor_current_module.
255 (set_diagnostic_context): Remove.
256 (count_error): Rename to diagnostic_error_count.
257 (error_function_changed): Remove.
258 (record_last_error_function): Likewise.
259 (error_module_changed): Likewise.
260 (record_last_error_module): Likewise.
261 (context_as_prefix): Rename to diagnostic_build_prefix.
262 (flush_diagnostic_buffer): Rename to diagnostic_flush_buffer.
263 (diagnostic_set_info): New function.
265 * objc/objc-act.c: #include diagnostic.h
266 (error_with_ivar): Adjust call to count_error.
267 (warn_with_method): Likewise.
268 * objc/Make-lang.in (objc-act.o): Depend on diagnostic.h
270 2002-06-05 Bob Wilson <bob.wilson@acm.org>
272 * config/xtensa/xtensa.c (xtensa_build_va_list): Use
273 lang_hooks.types.make_type instead of make_node; set up
274 __va_list_tag type decl.
275 (xtensa_builtin_saveregs): Remove broken use of
276 RTX_UNCHANGING_P and unnecessary use of MEM_IN_STRUCT_P
277 for saved registers; add varargs alias set.
279 2002-06-05 Neil Booth <neil@daikokuya.demon.co.uk>
282 * alpha/gnu.h: Undef TARGET_OS_CPP_BUILTINS.
283 * i386/beos-elf.h: Use TARGET_OS_CPP_BUILTINS rather than
284 CPP_PREDEFINES and part of CPP_SPEC.
285 i386/freebsd-aout.h, i386/gas.h, i386/gnu.h, i386/linux-aout.h,
286 i386/linux.h, i386/moss.h, i386/xm-vsta.h: Similarly.
288 Wed Jun 5 15:20:58 CEST 2002 Jan Hubicka <jh@suse.cz>
290 * reg-stack.c (reg_to_stack): Do not call find_basic_blocks.
292 2002-06-05 Alan Modra <amodra@bigpond.net.au>
294 * config/rs6000/linux64.h (ASM_OUTPUT_SOURCE_LINE): Define.
296 2002-06-04 Zack Weinberg <zack@codesourcery.com>
298 * gengtype-yacc.y: Make sure all rules end with a semicolon.
300 2002-06-04 Bob Wilson <bob.wilson@acm.org>
302 * config/xtensa/xtensa.c (xtensa_init_machine_status): Fix
303 typo in function prototype and include "ggc.h" header.
305 2002-06-04 Richard Henderson <rth@redhat.com>
307 * config/alpha/alpha.c (mode_mask_operand): Simplify without ifdefs.
308 (print_operand) ['U']: Likewise.
309 (alpha_expand_unaligned_store): Correct constants for 32-bit cross.
310 (alpha_expand_unaligned_store_words): Likewise.
311 (alpha_expand_builtin_vector_binop): Fix typo.
312 (enum alpha_builtin, code_for_builtin): Add remaining ext, ins, msk,
313 umulh, and cix insns.
314 (one_arg_builtins): Add cix builtins.
315 (two_arg_builtins): Add ext, ins, msk, umulh builtins.
316 (alpha_expand_builtin): Fix typo in arity.
317 * config/alpha/alpha.md (UNSPEC_CTLZ, UNSPEC_CTPOP): New.
318 (builtin_extbl, builtin_extwl, builtin_extll, builtin_extwh,
319 builtin_extlh, builtin_insbl, builtin_inswl, builtin_insll,
320 builtin_insql, builtin_inswh, builtin_inslh, builtin_insqh,
321 builtin_mskbl, builtin_mskwl, builtin_mskll, builtin_mskql,
322 builtin_mskwh, builtin_msklh, builtin_mskqh, builtin_cttz,
323 builtin_ctlz, builtin_ctpop): New.
324 * doc/extend.texi (Alpha Built-in Functions): Update.
326 2002-06-04 Geoffrey Keating <geoffk@redhat.com>
328 * gengtype.c (write_gc_root): Don't unnecessarily prevent
329 global variable-length arrays being roots.
331 * config.gcc (powerpc-*-darwin*): Set config_gtfiles.
332 * configure.in (config_gtfiles): New variable.
333 (all_gtfiles): Initialise from config_gtfiles.
334 * configure: Regenerate.
336 2002-06-04 Neil Booth <neil@daikokuya.demon.co.uk>
339 * beos-elf.h, cygwin.h, djgpp.h, gas.h, gnu.h, i386-interix.h,
340 i386-interix3.h, i386elf.h, linux-aout.h, linux.h, linux64.h,
341 mingw32.h, netbsd-elf.h, netbsd.h, netbsd64.h, rtemself.h,
342 sco5.h, sol2.h, sysv3.h, sysv4.h, sysv5.h, uwin.h, vxi386.h,
343 win32.h (CPP_SPEC): Remove cpp_cpu.
344 * i386.h (TARGET_CPU_CPP_BUILTINS): Use.
345 (CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Die!
347 2002-06-04 Janis Johnson <janis187@us.ibm.com>
349 * config/ia64/ia64.c (gen_thread_pointer): Fix variable name.
351 2002-06-04 Jeff Law <law@redhat.com.
352 David Edelsohn <edelsohn@gnu.org>
353 Michael Matz <matz@kde.org>
355 * sched-int.h (struct deps): New field libcall_block_tail_insn.
356 * sched_deps.c (init_deps): Initialize libcall_block_tail_insn.
357 * sched_deps.c (sched_analyze_insn): If libcall_block_tail_insn
358 is set, then mark the current insn as being part of a libcall
360 (sched_analyze): Set and clear libcall_block_tail_insn appropriately.
362 * haifa-sched.c (schedule_block): Do not count USE or CLOBBER
363 insns against the issue rate.
365 Tue Jun 4 19:29:42 CEST 2002 Jan Hubicka <jh@suse.cz>
367 * cfglayout.c (duplicate_insn_chain): Kill NOTE_INSN_RANGE notes.
368 * final.c (final_scan_insn): Likewise.
369 * ggc-common.c (ggc_mark_rtx_children_1): Likewise; use
370 NOTE_EXPECTED_VALUE instead of NOTE_RANGE.
371 * haifa-sched.c (unlink_other_notes): Likeewise.
372 (reemit_notes): Likewise.
373 * print-rtl.c (print_rtx): Likewise.
374 * sched-deps (sched-analyze): Likewise.
375 * rtl.c (note_insn_name): Likewise.
376 * rtl.h (NOTE_RANGE_INFO, NOTE_LIVE_INFO): Kill.
377 (enum insn_note): Kill NOTE_INSN_RANGE_*, NOTE_INSN_LIVE.
380 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
382 * varasm.c (mark_constants): Handle RTX format 'B'.
384 2002-06-04 Neil Booth <neil@daikokuya.demon.co.uk>
386 * cpphash.h (FIRST, LAST, CUR, RLIMIT): New.
387 (struct cpp_context): Add traditional fields.
388 * cppmacro.c (paste_all_tokens, push_ptoken_context,
389 push_token_context, cpp_get_token, _cpp_backup_tokens): Update.
390 * cpptrad.c (skip_comment, lex_identifier,
391 _cpp_read_logical_line_trad, scan_out_logical_line): Update.
393 2002-06-04 Kazu Hirata <kazu@cs.umass.edu>
395 * gbl-ctors.h: Fix formatting.
397 * gccspec.c: Likewise.
399 * gcov-io.h: Likewise.
401 * ggc-common.c: Likewise.
403 * ggc-page.c: Likewise.
404 * ggc-simple.c: Likewise.
405 * global.c: Likewise.
407 * gthr-dce.h: Likewise.
409 * gthr-posix.h: Likewise.
410 * gthr-rtems.h: Likewise.
411 * gthr-solaris.h: Likewise.
412 * gthr-win32.h: Likewise.
414 2002-06-03 Geoffrey Keating <geoffk@redhat.com>
416 Merge from pch-branch:
418 * gengtype.h (UNION_OR_STRUCT_P): New macro.
419 * gengtype.c (write_gc_structure_fields): Use it.
420 (write_gc_root): Use it here too.
422 * gengtype.c (write_gc_structure_fields): Assume that lengths
423 of typenames fit into an 'int'; don't pass a size_t to "%d" in
425 (write_gc_marker_routine_for_structure): Likewise.
426 (write_gc_types): Likewise.
427 (write_gc_root): Likewise.
429 * varray.h (VARRAY_CLEAR): New.
430 (varray_clear): Prototype.
431 * varray.c (varray_clear): New.
432 * cselib.c (reg_values_old): New.
433 (used_regs_old): New.
434 (cselib_init): Use cached varrays if available to avoid
435 generating large amounts of garbage.
436 (cselib_finish): Don't throw away old varrays.
438 * final.c (insn_addresses_): Move out of ifdef.
440 * varray.c (uses_ggc): Make more varray kinds GCable.
441 * varray.h (union varray_data_tag): Let gengtype see
442 fields 'generic' and 'te'.
443 * reg-stack.c: Include gt-reg-stack.h, ggc.h.
444 (stack_regs_mentioned_data): Move out of ifdef; mark with gengtype.
445 (reg_to_stack): Don't call VARRAY_FREE.
446 * insn-addr.h (INSN_ADDRESSES_FREE): Don't use VARRAY_FREE.
447 (insn_addresses_): Use gengtype to mark.
448 * gengtype.c (write_gc_structure_fields): Handle arrays of generic
449 pointers; handle generic pointers in unused union fields.
450 (get_output_file_with_visibility): Include cselib.h,
451 insn-addr.h in gtype-desc.c.
452 * function.c (prologue): Use gengtype to mark.
453 (epilogue): Likewise.
454 (sibcall_epilogue): Likewise.
455 * dependence.c: Include gt-dependence.h, ggc.h.
456 (struct def_use): Use gengtype to mark.
457 (struct loop): Likewise.
458 (struct induction): Likewise.
459 (struct dependence): Likewise.
460 (def_use_chain): Likewise.
461 (dep_chain): Likewise.
462 (loop_chain): Likewise.
463 (induction_chain): Likewise.
464 (init_dependence_analysis): Don't free anything, just clear pointers.
465 (build_def_use): Use GGC to allocate def_use.
466 (add_loop): Use GGC to allocate loop.
467 (find_induction_variable): Use GGC to allocate induction.
468 (check_node_dependence): Use GGC to allocate induction, dependence.
469 (dump_node_dependence): Don't free varrays.
470 (end_dependence_analysis): Likewise.
471 * cselib.h (struct cselib_val_struct): Use gengtype to mark.
472 (struct elt_loc_list): Likewise.
473 (struct elt_list): Likewise.
474 * cselib.c: Don't include obstack.h.
475 (hash_table): Use gengtype to mark.
476 (reg_values): Use gengtype to mark.
477 (used_regs): Use gengtype to mark.
478 (cselib_obstack): Delete.
479 (cselib_startobj): Delete.
480 (empty_vals): Mark as deletable.
481 (empty_elt_lists): Mark as deletable.
482 (empty_elt_loc_lists): Mark as deletable.
483 (new_elt_list): Use GGC to allocate struct elt_list.
484 (new_elt_loc_list): Use GGC to allocate struct elt_loc_list.
485 (clear_table): Don't delete obstack; don't unnecessarily clear
487 (new_cselib_val): Use GGC to allocate struct cselib_val.
488 (cselib_init): Don't set up obstacks. Use GGC to allocate
490 (cselib_finish): Just clear variables, don't free anything.
491 * Makefile.in (cselib.o): Remove dependency on $(OBSTACK_H).
492 (reg-stack.o): Add dependency on gt-reg-stack.h, $(GGC_H).
493 (dependence.o): Add dependency on gt-dependence.h, $(GGC_H).
494 (GTFILES): Add insn-addr.h, cselib.h, dependence.c, reg-stack.c.
495 (gt-reg-stack.h): New rule.
496 (gt-dependence.h): New rule.
497 (gtype-desc.o): Add cselib.h, insn-addr.h.
499 * varray.c: Use only necessary headers.
502 (varray_init): Take type, not size. Use GGC if appropriate.
503 (varray_grow): Update for change to struct varray_head_tag.
504 Use GGC if appropriate.
505 * varray.h (struct const_equiv_data): Use gengtype.
506 (enum varray_data_enum): New.
507 (union varray_data_tag): Use gengtype.
508 (struct varray_head_tag): Use gengtype. Replace size field with
509 enum varray_data_enum.
510 (varray_init): Update prototype.
511 (VARRAY_SCHED_INIT): Delete.
512 (VARRAY_*_INIT): Update for change to varray_init.
513 (VARRAY_SCHED): Delete.
514 (VARRAY_PUSH_SCHED): Delete.
515 (VARRAY_TOP_SCHED): Delete.
516 * tree.h: Update for change to length specifier.
517 * tree-inline.c (optimize_inline_calls): Don't use VARRAY_FREE.
518 (clone_body): Likewise.
519 * ssa.h (ssa_definition): Use gengtype to mark.
520 * ssa.c (convert_from_ssa): Don't use VARRAY_FREE.
521 * ssa-dce.c (ssa_eliminate_dead_code): Don't use VARRAY_FREE.
522 * rtl.h (struct rtvec_def): Update for change to length specifier.
523 * integrate.c (expand_inline_function): Don't use VARRAY_FREE.
524 (struct initial_value_struct): Update for change to length specifier.
525 * ggc.h (ggc_add_rtx_varray_root): Delete prototype.
526 (ggc_add_tree_varray_root): Delete prototype.
527 (ggc_mark_rtx_varray): Delete prototype.
528 (ggc_mark_tree_varray): Delete prototype.
529 * ggc-common.c (ggc_add_rtx_varray_root): Delete.
530 (ggc_add_tree_varray_root): Delete.
531 (ggc_mark_rtx_varray): Delete.
532 (ggc_mark_tree_varray): Delete.
533 (ggc_mark_rtx_varray_ptr): Delete.
534 (ggc_mark_tree_varray_ptr): Delete.
535 * gengtype.h (enum typekind): Remove TYPE_VARRAY.
536 (create_varray): Delete prototype.
537 * gengtype.c (varrays): Delete.
538 (create_varray): Delete.
539 (adjust_field_type): Detect array of string pointers.
540 (process_gc_options): Remove code to handle varray_type option.
541 (set_gc_used_type): Remove TYPE_VARRAY case.
542 (output_escaped_param): New.
543 (write_gc_structure_fields): Use output_escaped_param on all
544 parameters. Handle 'skip' with 'use_param' option. Handle
545 arrays of strings. Remove TYPE_VARRAY handling.
546 (write_gc_roots): Use boolean to detect 'length' option.
547 * gengtype-yacc.y (VARRAY_TYPE): Delete token.
548 (struct_fields): Call adjust_field_type on array fields.
549 (type): Remove VARRAY_TYPE case.
550 (type_option): Likewise.
551 * gengtype-lex.l: Don't consider varray_type a keyword.
552 * function.h: Update for change to length specifier.
553 (free_eh_status): Delete prototype.
554 * function.c (free_after_compilation): Don't call free_eh_status.
555 (reorder_blocks): Don't use VARRAY_FREE.
556 * except.c (struct eh_status): Update for change to length specifier.
557 remove varray_type specifier.
558 (free_eh_status): Delete.
559 * dwarf2out.c: Include gt-dwarf2out.h.
560 (used_rtx_varray): Use gengtype to mark, move
562 (incomplete_types): Likewise.
563 (decl_scope_table): Likewise.
564 (dwarf2out_init): Don't call ggc_add_tree_varray_root.
565 * cfglayout.c (scope_to_insns_finalize): Don't use VARRAY_FREE.
566 * c-tree.h (struct lang_type): Update for change to length specifier.
567 * c-parse.in (yylexstring): Don't use VARRAY_FREE.
568 * c-objc-common.c: Include gt-c-objc-common.h.
569 (deferred_fns): Mark for gengtype.
570 (c_objc_common_init): Don't call ggc_add_tree_varray_root.
571 (expand_deferred_fns): Just set deferred_fns to 0 to free it.
572 * Makefile.in (c-objc-common.o): Add gt-c-objc-common.h.
573 (gtype-desc.o): Update dependencies.
574 (dwarf2out.o): Add gt-dwarf2out.h.
575 (varray.o): Update dependencies.
576 (GTFILES): Add varray.h, ssa.h, dwarf2out.c, c-objc-common.c.
577 (gt-c-objc-common.h): New rule.
578 (gt-dwarf2out.h): New rule.
579 * objc/objc-act.c (build_objc_string_object): Don't use VARRAY_FREE.
581 * doc/gty.texi (GTY Options): Correct spelling.
582 (GGC Roots): Likewise.
583 * Makefile.in (TEXI_CPP_FILES): New.
584 (TEXI_GCC_FILES): New.
585 (TEXI_GCCINT_FILES): New.
586 (TEXI_CPPINT_FILES): New.
587 ($(docdir)/cpp.info): Use new macros.
588 ($(docdir)/gcc.info): Likewise.
589 ($(docdir)/gccint.info): Likewise.
590 ($(docdir)/cppinternals.info): Likewise.
593 (gccint.dvi): Likewise.
594 (cppinternals.dvi): Likewise.
596 * Makefile.in ($(docdir)/gccint.info): Depend on gty.texi.
597 * doc/gccint.texi (Top): Include gty.texi.
598 * doc/gty.texi: New file.
600 * bitmap.c: Include ggc.h, gt-bitmap.h.
601 (bitmap_ggc_free): New.
602 (bitmap_elem_to_freelist): New.
603 (bitmap_element_free): Use bitmap_elem_to_freelist.
604 (bitmap_element_allocate): Allow use of GGC.
605 (bitmap_clear): Use bitmap_elem_to_freelist.
606 (bitmap_copy): Update for change to bitmap_element_allocate.
607 (bitmap_set_bit): Likewise.
608 (bitmap_operation): Update for changes elsewhere.
609 (bitmap_initialize): Allow to create bitmaps that will use GGC.
610 * bitmap.h (struct bitmap_element_def): Use gengtype.
611 (struct bitmap_head_def): Likewise. Also add 'using_obstack' field.
612 (bitmap_initialize): Add extra parameter.
613 (BITMAP_OBSTACK_ALLOC): Update for change to bitmap_initialize.
614 (BITMAP_ALLOCA): Delete.
615 (BITMAP_XMALLOC): Update for change to bitmap_initialize.
616 (BITMAP_GGC_ALLOC): New.
617 * Makefile.in (gtype-desc.o): Add bitmap.h.
618 (bitmap.o): Add gt-bitmap.h, $(GGC_H).
619 (GTFILES): Add bitmap.c.
620 (gt-bitmap.h): New rule.
621 ($(HOST_PREFIX_1)bitmap.o): Add gt-bitmap.h.
622 * basic-block.h: Update for changes to bitmap_initialize.
623 * except.c (exception_handler_label_map): Move into...
624 (struct eh_status): Here.
625 (struct eh_region): Make 'aka' GCable.
626 (free_eh_status): Don't need to specially handle
627 exception_handler_label_map.
628 (add_ehl_entry): Update for changes to exception_handler_label_map.
629 (find_exception_handler_labels): Likewise.
630 (remove_exception_handler_label): Likewise.
631 (maybe_remove_eh_handler): Likewise.
632 (for_each_eh_label): Likewise.
633 (remove_eh_handler): Allocate 'aka' using GGC.
634 * gengtype.c (get_output_file_with_visibility): Add bitmap.h
637 * gengtype.c (write_gc_marker_routine_for_structure): Name
638 the routines 'gt_ggc_mx_*' instead of 'gt_ggc_m_*'.
639 (write_gc_types): Arrange for the tests with NULL to be inlined.
640 (write_gc_roots): Update uses of procedure pointers.
641 * ggc-common.c (gt_ggc_mx_rtx_def): Rename from gt_ggc_m_rtx_def.
643 * Makefile.in (explow.o): Add dependency on gt-explow.h.
644 (sdbout.o): Add dependency on gt-sdbout.h.
646 * emit-rtl.c (const_int_htab): Use gengtype to clear unused entries.
647 (mem_attrs_htab): Likewise.
648 (init_emit_once): Don't call ggc_add_deletable_htab.
649 * fold-const.c (size_htab): Use gengtype to clear unused entries.
650 (size_int_type_wide): Don't call ggc_add_deletable_htab.
651 * gengtype.c (finish_root_table): Add LASTNAME and TNAME
652 parameters, use them, change callers.
653 (write_gc_root): Add IF_MARKED parameter, use it, change callers.
654 (write_gc_roots): Handle 'if_marked' option.
655 (main): Don't need to call set_gc_used_type any more.
656 * ggc.h (ggc_htab_marked_p): Delete.
657 (ggc_htab_mark): Delete.
658 (struct ggc_cache_tab): New.
659 (gt_ggc_cache_rtab): New declaration.
660 * ggc-common.c (struct d_htab_root): Delete.
661 (d_htab_roots): Delete.
662 (ggc_add_deletable_htab): Delete.
663 (ggc_htab_delete): Handle new htab-deleting mechanism.
664 (ggc_mark_roots): Use new htab-deleting mechanism.
665 * tree.c (type_hash_table): Use gengtype to clear unused entries.
667 (init_obstacks): Don't call ggc_add_deletable_htab.
669 * objc/objc-act.h (struct hashed_attribute): Use gengtype.
670 (struct hashed_entry): Likewise.
671 (nst_method_hash_list): Likewise.
672 (cls_method_hash_list): Likewise.
673 (HASH_ALLOC_LIST_SIZE): Delete.
674 (ATTR_ALLOC_LIST_SIZE): Delete.
675 * objc/objc-act.c (hash_init): Use ggc to allocate
676 nst_method_hash_list, cls_method_hash_list.
677 (hash_enter): Use ggc to allocate; allocate one entry at a time.
678 (hash_add_attr): Likewise.
679 (ggc_mark_hash_table): Delete.
680 (objc_act_parse_init): Delete.
681 (objc_init): Delete reference to objc_act_parse_init.
682 * tlink.c: Replace hash.h with hashtab.h. Explicitly include
683 obstack.h. Replace references to 'struct hash_table' with htab_t.
684 (struct symbol_hash_entry): Replace hash header with key field.
685 (struct file_hash_entry): Replace hash header with key field.
686 (struct demangled_hash_entry): Replace hash header with key field.
687 (hash_string_eq): New.
688 (hash_string_hash): New.
689 (symbol_hash_newfunc): Delete.
690 (symbol_hash_lookup): Modify to use htab_t.
691 (file_hash_newfunc): Delete.
692 (file_hash_lookup): Modify to use htab_t.
693 (demangled_hash_newfunc): Delete.
694 (demangled_hash_lookup): Modify to use htab_t.
695 (tlink_init): Modify to use htab_t.
698 * ggc.h: Delete forward structure declarations.
699 Delete prototypes for deleted functions.
700 * ggc-common.c: Don't include hash.h.
701 (ggc_add_tree_hash_table_root): Delete.
702 (ggc_mark_tree_hash_table_entry): Delete.
703 (ggc_mark_tree_hash_table): Delete.
704 (ggc_mark_tree_hash_table_ptr): Delete.
705 * gengtype.c (write_gc_structure_fields): Allow param_is option.
706 (write_gc_marker_routine_for_structure): Use visibility of
707 the parameter if there is one.
708 * function.c: Replace hash.h with hashtab.h. Replace references
709 to 'struct hash_table *' with htab_t.
710 (struct insns_for_mem_entry): Include a plain key.
711 (fixup_var_refs_insns_with_hash): Update to use htab_t.
712 (insns_for_mem_newfunc): Delete.
713 (insns_for_mem_hash): Update to use htab_t.
714 (insns_for_mem_comp): Likewise.
715 (insns_for_mem_walk): Likewise.
716 * c-lang.c: Include ggc.h.
717 * Makefile.in (OBJS): Remove hash.o.
718 (c-lang.o): Add GGC_H.
719 (COLLECT2_OBJS): Remove hash.o.
720 (tlink.o): Remove hash.h, add HASHTAB_H and OBSTACK_H.
721 (ggc-common.o): Remove hash.h.
722 (function.o): Remove hash.h, add HASHTAB_H.
723 (genautomata.o): Remove hash.h, add HASHTAB_H.
725 * varasm.c (mark_const_str_htab_1): Delete.
726 (mark_const_str_htab): Delete.
727 (const_str_htab_del): Delete.
728 (const_str_htab): Use gengtype to mark.
729 (init_varasm_once): Use gengtype to mark hashtables. Use GC to
731 * tree.c (mark_tree_hashtable_entry): Delete.
732 (mark_tree_hashtable): Delete.
733 * tree.h (mark_tree_hashtable): Delete prototype.
734 * ggc.h (ggc_test_and_set_mark): Treat (void *)1 like NULL.
735 (ggc_mark): Likewise.
737 (htab_create_ggc): New.
738 * ggc-common.c (ggc_calloc): New.
739 * gengtype.h (enum typekind): Add TYPE_PARAM_STRUCT.
740 (struct type): Add param_struct structure.
741 * gengtype.c (param_structs): New.
742 (adjust_field_type): Handle param_is option.
743 (set_gc_used_type): Handle TYPE_PARAM_STRUCT.
744 (get_output_file_with_visibility): Include hashtab.h in gtype-desc.c.
745 (write_gc_structure_fields): Add new PARAM parameter. Update
746 callers. Handle use_param option. Handle TYPE_PARAM_STRUCT.
747 (write_gc_marker_routine_for_structure): Add new PARAM parameter.
748 Use it to generate function name. Update callers.
749 (write_gc_types): Add new PARAM_STRUCTS parameter. Update callers.
751 (write_gc_roots): Handle TYPE_PARAM_STRUCT. Allow param_is
753 (main): Define PTR as pointer-to-scalar. Don't specially
754 mark deferred_string or ehl_map_entry.
755 * gengtype-yacc.y (PARAM_IS): Add new token.
756 (externstatic): Use adjust_field_type.
757 (type_option): Add PARAM_IS.
758 * gengtype-lex.l: Add rule for typedef of function pointers.
759 Add rule for PARAM_IS.
761 * except.c (exception_handler_label_map): Use gengtype to mark.
762 (type_to_runtime_map): Likewise.
763 (mark_ehl_map_entry): Delete.
764 (mark_ehl_map): Delete.
765 (init_eh): Use gengtype for roots; use GC to allocate hash tables.
766 (t2r_mark_1): Delete.
768 * Makefile.in (gtype-desc.o): Correct dependencies.
769 (GTFILES): Add hashtab.h.
770 (genautomata.o): Actually uses hashtab.h.
772 * Makefile.in (stringpool.o): Add $(GGC_H).
773 (dwarf2asm.o): Likewise.
774 (GTFILES): Add hashtable.h.
775 * c-common.h (struct c_common_identifier): Use gengtype.
776 * c-decl.h (c_mark_tree): Delete.
777 * c-lang.c (LANG_HOOKS_MARK_TREE): Delete.
778 * c-tree.h (struct lang_identifier): Use gengtype.
779 (union lang_tree_node): New.
780 (c_mark_tree): Delete prototype.
781 * dwarf2out.c [!DWARF2_DEBUGGING_INFO]: Define dummy
783 * gengtype-lex.l (IWORD): Allow 'bool'.
785 * gengtype-yacc.y (ALIAS): New token.
786 (type_option): New rule.
787 (option): Use type_option.
788 * gengtype.c (process_gc_options): New.
789 (set_gc_used_type): Use it.
790 (write_gc_structure_fields): Add 'bitmap' parameter, change callers.
791 Add new variable 't' to hold the type of the field being processed.
792 Add more error checking. Use UNION_P when looking at 'desc' option.
793 Handle language-specific structures containing other
794 language-specific structures.
795 (write_gc_types): Handle 'ptr_alias' option.
796 (main): Don't need to specially output lang_type, lang_decl, lang_id2.
797 * ggc-common.c (ggc_pending_trees): Delete.
798 (ggc_mark_roots): Don't manipulate ggc_pending_trees.
799 (ggc_mark_trees): Delete.
800 (gt_ggc_m_tree_node): Delete.
801 * ggc.h (ggc_pending_trees): Delete.
802 (ggc_mark_tree): Make alias of gt_ggc_m_tree_node.
803 * hashtable.h (ht_identifier): Use gengtype.
804 * langhooks-def.h (LANG_HOOKS_MARK_TREE): Delete.
805 * langhooks.h (struct lang_hooks): Delete mark_tree.
806 * sdbout.c [! SDB_DEBUGGING_INFO]: Define dummy sdb_debug_hooks
808 * system.h: Poison LANG_HOOKS_MARK_TREE.
809 * tree.c (tree_node_structure): New.
810 * tree.h (struct tree_common): Use gengtype.
811 (struct tree_int_cst): Likewise.
812 (struct tree_real_cst): Likewise.
813 (struct tree_string): Likewise.
814 (struct tree_complex): Likewise.
815 (struct tree_vector): Likewise.
816 (struct tree_identifier): Likewise.
817 (struct tree_list): Likewise.
818 (struct tree_vec): Likewise.
819 (struct tree_exp): Likewise.
820 (struct tree_block): Likewise.
821 (struct tree_type): Likewise.
822 (struct tree_decl): Likewise.
823 (enum tree_structure_enum): New.
824 (union tree_node): Use gengtype, with an alias.
825 (tree_node_structure): Prototype.
826 * objc/objc-lang.c (LANG_HOOKS_MARK_TREE): Delete.
828 Merge to tag pch-merge-20020430. The LANG_HOOKS_FUNCTION_MARK
829 macro was deleted. The LANG_HOOKS_FUNCTION_FREE macro was renamed
830 to LANG_HOOKS_FUNCTION_FINAL.
831 * Makefile.in (GTFILES): Add bitmap.h.
832 * except.c (struct eh_region): Mark field 'aka' to be skipped.
834 * config/alpha/alpha.c [TARGET_ABI_UNICOSMK]
835 (alpha_init_machine_status): Give proper type.
836 * Makefile.in (c-lang.o): Depend on gtype-c.h.
837 (optabs.o): Depend on gt-optabs.h.
838 (GTFILES): Add optabs.o.
839 (gt-optabs.h): Add rule.
840 * optabs.c: Include gt-optabs.h.
842 * gengtype.c (set_gc_used_type): Correct some errors in last change.
843 (write_gc_structure_fields): If a field which should be NULL is
845 * c-pragma.c: Move struct align_stack and variable alignment_stack
848 * config/xtensa/t-xtensa: Add dependencies for gt-xtensa.h.
849 * config/xtensa/xtensa.c: Include gt-cris.h.
850 (struct machine_function): Use gengtype to mark.
851 * config/mmix/mmix.h (struct machine_function): Use gengtype
853 * config/cris/t-cris: Add dependencies for gt-cris.h.
854 * config/cris/cris.c: Include gt-cris.h.
855 (struct machine_function): Use gengtype to mark.
856 * config/rs6000/rs6000.h (struct machine_function): Use gengtype
858 * doc/tm.texi (Per-Function Data): Delete references to
860 * config/ia64/ia64.c (ia64_override_options): Don't set
862 * config/i386/i386.c (override_options): Likewise.
863 * config/d30v/d30v.c (d30v_init_expanders): Likewise.
864 * config/arm/arm.c (arm_init_expanders): Likewise.
865 * config/alpha/alpha.c (override_options): Likewise.
866 * gengtype.h (enum gc_used_enum): Add GC_MAYBE_POINTED_TO.
867 * gengtype.c (set_gc_used_type): Handle 'maybe_null' option.
868 (write_gc_structure_fields): Don't handle 'really' option.
869 Handle 'maybe_null' option.
870 (write_gc_types): Handle 'maybe_null' option.
871 * function.h (struct function): Don't use "really".
872 (mark_machine_status): Delete declaration.
873 (mark_lang_status): Delete declaration.
874 (gt_ggc_mr_machine_function): Delete prototype.
875 (gt_ggc_mr_language_function): Delete prototype.
876 * function.c (mark_machine_status): Delete.
877 (mark_lang_status): Delete.
878 (gt_ggc_mr_machine_function): Delete.
879 (gt_ggc_mr_language_function): Delete.
880 * c-tree.h (mark_c_function_context): Delete prototype.
881 * c-objc-common.c (c_objc_common_init): Don't set mark_lang_status.
882 * c-decl.c (struct language_function): Rename from struct
883 c_language_function. Update uses. Use gengtype to mark.
884 (mark_c_function_context): Delete.
885 * c-common.h (struct c_language_function): Rename from struct
887 (mark_stmt_tree): Delete prototype.
888 (c_mark_lang_decl): Delete prototype.
889 (mark_c_language_function): Delete prototype.
890 * c-common.c (mark_stmt_tree): Delete.
891 (c_mark_lang_decl): Delete.
892 (mark_c_language_function): Delete.
894 * gengtype.h (enum typekind): Add TYPE_LANG_STRUCT.
895 (lang_bitmap): New typedef. Use where appropriate.
896 (struct type): Add gc_used field, lang_struct field.
897 (UNION_P): New macro.
898 (new_structure): New prototype.
899 (find_structure): Remove 'pos' parameter. Change all callers.
900 * gengtype-lex.l: Update for changes to find_structure.
901 * gengtype-yacc.y (typedef_struct): Use new_structure.
902 (yacc_ids): Suppress warning.
903 (type): Use new_structure.
904 * gengtype.c (string_type): Update for changes to struct type.
905 (find_structure): Just find a structure, don't worry about
907 (new_structure): New.
908 (note_yacc_type): Use new_structure.
909 (set_gc_used_type): New.
911 (write_gc_structure_fields): Allow for pointers to TYPE_LANG_STRUCT.
912 (write_gc_types): Handle TYPE_LANG_STRUCT.
913 (write_gc_marker_routine_for_structure): New.
914 (main): Call set_gc_used. Add some calls to set_gc_used_type
915 for places where GCC doesn't use gengtype properly yet.
916 * ggc.h (gt_ggc_m_rtx_def): Don't prototype.
917 (gt_ggc_m_tree_node): Likewise.
919 * varasm.c (copy_constant): Call expand_constant if we hit
920 something we can't recognise.
922 * ggc-common.c (ggc_mark_rtvec_children): Delete.
923 (ggc_mark_rtx_children): Use generic name for ggc_mark_rtvec.
924 (lang_mark_false_label_stack): Delete.
925 * rtl.h (struct rtvec_def): Use gengtype to mark.
926 * ggc.h (ggc_mark_rtvec): Delete.
927 (gt_ggc_m_rtvec_def): Delete.
928 (ggc_mark_nonnull_tree): Delete.
929 (ggc_mark_rtvec_children): Delete prototype.
930 (lang_mark_false_label_stack): Delete declaration.
932 * gengtype.h (note_yacc_type): Add prototype.
933 * gengtype.c (note_yacc_type): New function.
934 * gengtype-lex.l: Add lexer support for yacc files.
935 * gengtype-yacc.y (start): Extract union from yacc files.
936 (yacc_union): New rule.
937 (yacc_typematch): New rule.
938 (yacc_ids): New rule.
939 (enum_items): Tweak for efficiency.
940 (optionseq): Likewise.
942 * c-common.h (struct language_function): Use gengtype.
943 (struct c_lang_decl): Likewise.
944 * c-tree.h (struct lang_decl): Likewise.
945 (struct lang_type): Likewise.
946 * c-decl.c (lang_mark_tree): Use generated marker routines to mark
947 tree language substructures.
949 * stringpool.c (mark_ident): Replace ggc_mark_nonnull_tree with
951 * dwarf2asm.c (mark_indirect_pool_entry): Likewise.
953 * varasm.c (struct rtx_const): Remove 'skip' tags for scalar arrays.
955 * stmt.c (struct nesting): Add discriminator. Use gengtype to
956 mark. Remove 'data.block.cleanup_ptr' field.
957 (struct stmt_status): Use usual technique to mark struct nesting.
958 (gt_ggc_mr_nesting_cond): Delete.
959 (gt_ggc_mr_nesting_loop): Delete.
960 (gt_ggc_mr_nesting_block): Delete.
961 (gt_ggc_mr_nesting_case_stmt): Delete.
962 (expand_start_cond): Set discriminator.
963 (expand_start_loop): Likewise.
964 (expand_start_null_loop): Likewise.
965 (expand_start_bindings_and_block): Set discriminator. Don't set
967 (expand_decl_cleanup): Replace 'cleanup_ptr' with
968 &thisblock->data.block.cleanups.
969 (expand_start_case): Set discriminator.
970 (expand_start_case_dummy): Set discriminator.
972 * ggc-callbacks.c: Remove.
974 * gengtype.h (struct type): Add 'u.s.bitmap' field.
975 (find_structure): Add 'pos' parameter.
976 * gengtype-lex.l: Update callers to find_structure.
977 * gengtype-yacc.y: Likewise.
978 * gengtype.c (find_structure): Allow for structures to be defined
979 in multiple language backends.
980 (get_output_file_with_visibility): Include debug.h in gtype-desc.c.
981 (counter): Rename to gc_counter.
982 (write_gc_structure_fields): Fail when writing out fields for
983 an incomplete structure. Ignore arrays of scalars. Handle
985 (write_gc_types): Reset counter for each procedure written.
987 * stmt.c (add_case_node): Use GGC to allocate struct case_node.
988 (free_case_nodes): Delete.
989 (expand_end_case_type): Delete call to free_case_nodes.
991 * Makefile.in (cselib.o): Include gt-<filename>.h.
993 (profile.o): Likewise.
995 (GTFILES): Add alias.c, cselib.c, gcse.c, profile.c, and
996 alphabetize backend files.
997 (gt-alias.h, gt-cselib.h, gt-gcse.h, gt-profile.h): New rules.
998 * alias.c: Use gengtype for roots.
999 * c-common.h (struct stmt_tree_s): Use gengtype.
1000 * c-decl.c: Use gengtype for roots.
1001 * cselib.c: Use gengtype for roots.
1002 * expr.c: Use gengtype for roots.
1003 * fold-const.c: Use gengtype for roots.
1004 * gcse.c: Use gengtype for roots.
1005 * gengtype-lex.l: Handle typedefs of function types.
1006 Allow for empty array bounds.
1007 Allow processing to stop on initialisers.
1008 * gengtype-yacc.y (externstatic): Stop processing on initialisers.
1009 (semiequal): New rule.
1010 * gengtype.c (create_file): Tidy output files.
1011 (get_output_file_with_visibility): Fix paren warning. Fix bug
1012 involving multiple input files mapping to one output file.
1013 (write_gc_structure_fields): Skip arrays of scalars.
1014 (write_gc_types): Tidy output files.
1015 (write_gc_root): New function.
1016 (write_gc_roots): Fix bugs, add support for roots that are
1018 * ggc-common.c (ggc_mark_rtx_ptr): Delete.
1019 (ggc_mark_tree_ptr): Delete.
1020 (ggc_add_rtx_root): Delete.
1021 (ggc_add_tree_root): Delete.
1022 (ggc_del_root): Delete.
1023 * integrate.c (get_func_hard_reg_initial_val): Use ggc_alloc to
1024 allocate struct initial_value_struct.
1025 * profile.c: Use gengtype for roots.
1026 * sdbout.c: Use gengtype for roots.
1027 * varasm.c (mark_weak_decls): Delete unused prototype.
1028 (mark_const_hash_entry): Delete unused function.
1029 * config/darwin-protos.h: Use gengtype for roots.
1030 (machopic_add_gc_roots): Delete.
1031 * config/arm/arm.c: Use gengtype for roots.
1032 * config/arm/arm.h: Use gengtype for roots.
1033 * config/c4x/c4x-protos.h: Use gengtype for roots.
1034 * config/c4x/c4x.c (c4x_add_gc_roots): Delete.
1035 * config/d30v/d30v-protos.h: Use gengtype for roots.
1036 * config/d30v/d30v.c (d30v_add_gc_roots): Delete.
1037 * config/dsp16xx/dsp16xx.c (override_options): Use gengtype for roots.
1038 * config/dsp16xx/dsp16xx.h: Use gengtype for roots.
1039 * config/ia64/ia64-protos.h: Use gengtype for roots.
1040 * config/ia64/ia64.c (ia64_add_gc_roots): Delete.
1041 * config/m68hc11/m68hc11-protos.h: Use gengtype for roots.
1042 * config/m68hc11/m68hc11.c (z_reg): Make global.
1043 (z_reg_qi): Make global.
1044 (m68hc11_add_gc_roots): Delete.
1045 * config/mcore/mcore-protos.h: Use gengtype for roots.
1046 * config/mcore/mcore.c (mcore_add_gc_roots): Delete.
1047 * config/mips/mips.c (mips_add_gc_roots): Delete.
1048 * config/mips/mips.h: Use gengtype for roots.
1049 * config/mmix/mmix.c (override_options): Use gengtype for roots.
1050 * config/mmix/mmix.h: Use gengtype for roots.
1051 * config/mn10200/mn10200.c (asm_file_start): Use gengtype for roots.
1052 * config/mn10200/mn10200.h: Use gengtype for roots.
1053 * config/pa/pa.c: Use gengtype for roots, marking.
1054 (struct deferred_plabel): Use GGC, gengtype.
1055 (pa_add_gc_roots): Delete.
1056 (mark_deferred_plabels): Delete.
1057 * config/pj/pj-protos.h: Use gengtype for roots.
1058 * config/pj/pj.h (OVERRIDE_OPTIONS): Don't define.
1059 * config/rs6000/rs6000.c: Use gengtype for roots. Don't call
1060 machopic_add_gc_roots.
1061 * config/rs6000/rs6000.h: Use gengtype for roots.
1062 * config/rs6000/t-darwin (darwin.o): Add dependency on gt-darwin.h.
1063 (gt-darwin.h): Add rule.
1064 * config/sh/sh.c: Use gengtype for roots.
1065 * config/sh/t-sh ($(out_object_file)): Add dependency on gt-sh.h.
1066 (gt-sh.h): Add rule.
1067 * config/sparc/sparc.c: Use gengtype for roots.
1068 (sparc_add_gc_roots): Delete.
1069 (struct ultrasparc_pipeline_state): Use GGC, gengtype.
1070 (mark_ultrasparc_pipeline_state): Delete.
1071 * config/sparc/sparc.h: Use gengtype for roots.
1073 * Makefile.in (c-parse.o): Update dependencies.
1074 (c-common.o): Likewise.
1075 (GTFILES): Add c-common.h, c-tree.h, c-common.c, c-parse.in.
1076 Add dependencies for the files they generate.
1077 * c-common.c: Replace ggc_add_* uses with GTY annotations.
1078 * c-common.h: Likewise.
1079 * c-decl.c: Likewise.
1080 (gt_ggc_mp_binding_level): Delete.
1081 * c-lang.c: Include gtype-c.h.
1082 * c-parse.in: Replace ggc_add_* uses with GTY annotations. Include
1084 * c-pragma.h: Replace ggc_add_* uses with GTY annotations.
1085 (gt_ggc_mp_align_stack): Delete.
1086 * c-tree.h: Replace ggc_add_* uses with GTY annotations.
1087 * function.c: Replace ggc_add_* uses with GTY annotations.
1088 (gt_ggc_mp_function): Delete.
1089 * function.h: Replace ggc_add_* uses with GTY annotations.
1090 * gengtype.c (lang_names): New.
1091 (NUM_BASE_FILES): New.
1092 (open_base_files): Create language base files.
1094 (get_file_basename): New.
1095 (get_base_file_bitmap): New.
1096 (get_output_file_with_visibility): Rename from get_output_file.
1097 Add more mappings for various C/Objc filenames.
1098 (finish_root_table): New.
1099 (write_gc_roots): Handle dependencies and scoping properly.
1100 * gengtype.h: Add prototypes for new functions.
1101 * ggc-common.c (struct deletable_root): Delete.
1102 (deletables): Delete.
1103 (ggc_add_deletable_root): Delete.
1104 (ggc_mark_roots): No need to deal with deleted functionality.
1105 * ggc.h (ggc_add_deletable_root): Delete prototype.
1106 * objc/Make-lang.in (objc-act.o): Add gtype-objc.h dependency.
1107 (gtype-objc.h): Add rule to create.
1108 * objc/config-lang.in (gtfiles): New.
1109 * objc/objc-act.c: Allocate imp_list using GGC. Replace uses of
1110 ggc_add_* with GTY markers. Include gtype-objc.h.
1111 (ggc_mark_imp_list): Delete.
1112 * objc/objc-act.h: Replace uses of ggc_add_* with GTY markers.
1113 * objc/objc-lang.c: Random Whitespace Change.
1115 * except.h (exception_handler_labels): Delete.
1116 (get_exception_handler_labels): New.
1117 * except.c (exception_handler_labels): Delete.
1118 (struct eh_status): Add exception_handler_labels field.
1119 (doing_eh): Don't add exception_handler_labels as root.
1120 (free_eh_status): Don't need to free exception_handler_labels.
1121 (get_exception_handler_labels): New.
1122 (find_exception_handler_labels): Update for move of
1123 exception_handler_labels.
1124 (remove_exception_handler_label): Likewise.
1125 * cfgrtl.c (can_delete_label_p): Use get_exception_handler_labels.
1126 * jump.c (rebuild_jump_labels): Likewise.
1127 * loop.c (find_and_verify_loops): Likewise.
1128 * sched-rgn.c (is_cfg_nonregular): Likewise.
1130 * gengtype.c (write_gc_structure_fields): Handle variable-length
1133 * varasm.c (struct weak_syms): Use GGC, gengtype.
1134 (mark_weak_decls): Delete.
1135 (weak_decls): Likewise.
1136 (add_weak): Likewise.
1137 (remove_from_pending_weak_list): Likewise.
1138 (init_varasm_once): Likewise.
1140 * Makefile.in (gtype-desc.o): Add libfuncs.h dependency.
1141 (GTFILES): Add tree.h, libfuncs.h, emit-rtl.c, explow.c,
1142 stor-layout.c, regclass.c, and lists.c.
1143 Add dependencies of gt-emit-rtl.h gt-explow.h gt-stor-layout.h
1144 gt-regclass.h and gt-lists.h on s-gtype.
1145 * emit-rtl.c: Use gengtype for roots. Include gt-emit-rtl.h.
1146 * except.c: Use gengtype for roots.
1147 * explow.c: Use gengtype for roots. Include gt-explow.h.
1148 * expr.h (init_stor_layout_once): Delete prototype.
1149 * function.c: Use gengtype for roots.
1150 * gengtype-lex.l: Add ENT_EXTERNSTATIC lexing.
1151 * gengtype-yacc.y (start): Can also be an externstatic.
1152 (externstatic): New production.
1153 (struct_fields): Correct array bounds inversion for 2-d arrays.
1154 * gengtype.c (variables): New variable.
1155 (note_variable): New function.
1156 (get_output_file): Include libfuncs.h into gtype-desc.c.
1157 (get_output_file_name): New function.
1158 (write_gc_structure_fields): Suppress warnings.
1159 (write_gc_types): Make static.
1160 (put_mangled_filename): New function.
1161 (write_gc_roots): New function.
1162 (main): Call write_gc_roots.
1163 * gengtype.h (note_variable): Prototype.
1164 (get_output_file_name): Prototype.
1165 (write_gc_types): Delete prototype.
1166 * ggc.h: Clean up unnecessary structure predefinitions.
1167 (struct ggc_root_tab): Define.
1168 (gt_ggc_m_rtx_def): Make function, not macro.
1169 (gt_ggc_m_tree_node): Likewise.
1170 * libfuncs.h: Use gengtype for roots.
1171 * lists.c: Use gengtype for roots. Include gt-lists.h.
1172 (init_EXPR_INSN_LIST_cache): Delete.
1173 * optabs.c: Use gengtype for roots.
1174 (gt_ggc_mp_optab): Delete.
1175 * optabs.h: Use gengtype for roots.
1176 * regclass.c: Use gengtype for roots. Include gt-regclass.h.
1177 * rtl.h: Use gengtype for roots.
1178 (init_EXPR_INSN_LIST_cache): Delete prototype.
1179 * stor-layout.c: Use gengtype for roots.
1180 Include gt-stor-layout.h.
1181 (init_stor_layout_once): Delete.
1182 * toplev.c: Use gengtype for roots. Delete calls to deleted
1184 * tree.c: Use gengtype for roots.
1185 * tree.h: Use gengtype for roots.
1186 * varasm.c: Use gengtype for roots.
1188 * Makefile.in (GTFILES): Add @all_gtfiles@.
1189 * configure: Regenerate.
1190 * configure.in: Construct all_gtfiles from the gtfiles definitions
1192 * gengtype-yacc.y (type): Warn about duplicate structure names.
1193 * gengtype.c (get_output_file): Handle .c files in language
1196 * Makefile.in (GTFILES): Run gengtype on all the config files
1197 and on the target .c file.
1198 * except.c (mark_eh_region): Delete.
1199 (init_eh_for_function): Use GGC on struct eh_status.
1200 (mark_eh_status): Delete.
1201 (free_eh_status): Use GGC.
1202 (expand_eh_region_start): Use GGC to
1203 (collect_eh_region_array): Allocate last_region_number using GGC.
1204 (duplicate_eh_region_1): Use GGC to allocate struct eh_region.
1205 (remove_eh_handler): Let GGC free struct eh_region.
1206 (add_call_site): Use GGC to reallocate call_site_record array.
1207 * function.c (init_machine_status): Update calling sequence.
1208 (mark_machine_status): Likewise.
1209 (mark_lang_status): Likewise.
1210 (prepare_function_start): Update init_machine_status call.
1211 (mark_function_status): Delete.
1212 (maybe_mark_struct_function): Delete.
1213 (ggc_mark_struct_function): Delete.
1214 (gt_ggc_mp_function): New.
1215 (gt_ggc_mr_machine_function): New.
1216 (gt_ggc_mr_language_function): New.
1217 (init_function_once): Use canonical names.
1218 * function.h (struct function): Use gengtype.
1219 (init_machine_status): Return the structure.
1220 (mark_machine_status): Take a 'void *'.
1221 (mark_lang_status): Likewise.
1222 * ggc-common.c (ggc_mark_trees): Use canonical name for
1223 ggc_mark_struct_function.
1224 * tree.h (ggc_mark_struct_function): Delete prototype.
1225 * config/alpha/alpha.c (alpha_mark_machine_status): Delete.
1226 (alpha_init_machine_status): Likewise.
1227 (override_options): Use canonical name for alpha_mark_machine_status.
1228 * config/alpha/unicosmk.h (struct machine_function): Use gengtype.
1229 * config/arm/arm.h (struct machine_function): Use gengtype.
1230 * config/arm/arm.c (arm_mark_machine_status): Delete.
1231 (arm_init_machine_status): Update calling sequence.
1232 (arm_init_expanders): Use canonical name for arm_mark_machine_status.
1233 * config/cris/cris.c (cris_init_machine_status): Update
1235 * config/d30v/d30v.h (struct machine_function): Use gengtype.
1236 * config/d30v/d30v.c (d30v_init_machine_status): Update
1238 (d30v_mark_machine_status): Delete.
1239 * config/i386/i386.c: Include gt-i386.h.
1240 (struct machine_function): Use gengtype.
1241 (ix86_init_machine_status): Update calling sequence.
1242 (ix86_mark_machine_status): Delete.
1243 (override_options): Use canonical namke for ix86_mark_machine_status.
1244 * config/ia64/ia64.h (struct machine_function): Use gengtype.
1245 * config/ia64/ia64.c (ia64_init_machine_status): Update calling
1247 (ia64_mark_machine_status): Delete.
1248 (ia64_override_options): Use canonical name for
1249 ia64_mark_machine_status.
1250 * config/mmix/mmix.c (mmix_init_machine_status): Update calling
1252 * config/rs6000/rs6000.c (rs6000_init_machine_status): Likewise.
1253 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
1254 * gengtype.c (get_output_file): Fix warning.
1255 (main): Add prototype to suppress warning.
1256 * tree.c: Remove tree_hash_mark prototype.
1258 * tree.h (init_stmt): Delete prototype.
1259 * toplev.c (lang_independent_init): Don't call init_stmt.
1260 * stmt.c (ALLOC_NESTING): Use GGC for 'struct nesting'.
1261 (stmt_obstack): Delete.
1262 (POPSTACK): No need to free 'struct nesting'.
1263 (gt_ggc_mr_nesting_cond): Use canonical names.
1264 (gt_ggc_mr_nesting_loop): Use canonical names.
1265 (gt_ggc_mr_nesting_block): Use canonical names.
1266 (gt_ggc_mr_nesting_case_stmt): Use canonical names.
1267 (mark_stmt_status): Delete.
1268 (init_stmt): Delete.
1269 (clear_last_expr): Clear both last_expr_type and last_expr_value.
1270 Use it everywhere that last_expr_type was cleared.
1271 * lists.c (init_EXPR_INSN_LIST_cache): Use ggc_add_deletable_root.
1272 (zap_lists): Delete.
1273 * ggc.h (ggc_add_deletable_root): Prototype.
1274 (mark_stmt_status): Remove prototype.
1275 * ggc-common.c (ggc_add_deletable_root): New.
1276 (ggc_mark_roots): Handle deletable roots.
1277 * function.c (ggc_mark_struct_function): Use canonical name
1278 for mark_stmt_status.
1279 * emit-rtl.c (free_sequence_stack): New.
1280 (start_sequence): Use a freelist for sequences.
1281 (end_sequence): Likewise.
1282 (init_emit_once): Add free_sequence_stack as a deleteable root.
1283 * c-pragma.c Include gt-c-pragma.h.
1284 (struct align_stack): Use gengtype.
1285 (push_alignment): Use GGC for struct align_stack.
1286 (mark_align_stack): Delete.
1287 (gt_ggc_mp_align_stack): New.
1288 (init_pragma): Use canonical name for mark_align_stack.
1289 * c-decl.c: Include gt-c-decl.h.
1290 (struct binding_level): Use gengtype.
1291 (make_binding_level): Use GGC; handle the freelist here.
1292 (pop_binding_level): New.
1293 (pushlevel): Move code into make_binding_level.
1294 (push_label_level): Likewise.
1295 (poplevel): Move code into pop_binding_level.
1296 (pop_label_level): Likewise.
1297 (mark_binding_level): Delete.
1298 (gt_ggc_mp_binding_level): New.
1299 (c_init_decl_processing): Use canonical name for mark_binding_level.
1300 Add free_binding_level as deletable root.
1301 (mark_c_function_context): Use canonical name for mark_binding_level.
1302 * Makefile.in (c-decl.o): Add gt-c-decl.h.
1303 (c-pragma.o): Add gt-c-pragma.h.
1304 (GTFILES): Add c-decl.c and c-pragma.c.
1305 (gt-c-decl.h, gt-c-pragma.h): Create using gengtype.
1307 * tree.c (struct type_hash): Use gengtype.
1308 (init_obstacks): Use canonical name for type_hash_mark.
1309 (type_hash_mark): Delete.
1311 * rtl.h (struct mem_attrs): Use gengtype.
1312 * optabs.h (struct optab): Use gengtype.
1313 * optabs.c (expand_binop): Squish signed/unsigned warning.
1314 (mark_optab): Make local, use canonical name, use autogenerated
1316 (init_optabs): Use canonical name for mark_optab.
1317 (new_optab): Use GGC to allocate optabs.
1318 * ggc.h: Delete mark_optab prototype.
1319 * ggc-common.c (ggc_mark_rtx_children): Use canonical name for
1320 mem_attrs marker procedure.
1321 * gengtype.c (get_output_file): Include headers in gtype-desc.c
1322 explicitly rather than deducing them from file names.
1323 (write_gc_structure_fields): Handle arrays of structures.
1324 (main): Return non-zero exit code if errors occur during output.
1325 * emit-rtl.c (mem_attrs_mark): Delete.
1326 (init_emit_once): Use canonical name for mem_attrs marker procedure.
1327 * Makefile.in (gtype-desc.o): Explicitly name dependencies.
1328 (tree.o): Depend on gt-tree.h.
1329 (GTFILES): Add rtl.h, optabs.h, tree.c.
1330 (gt-tree.h): Add it to s-gtype rule.
1332 * .cvsignore: Ignore gengtype flex/bison generated files.
1333 * Makefile.in (GGC_H): Add gtype-desc.h.
1334 (OBJS): Add gtype-desc.o.
1335 (GEN): Add gengtype.
1336 (STAGESTUFF): Add gengtype.
1337 (varasm.o): Add gt-varasm.h.
1338 (stmt.o): Add gt-stmt.h.
1339 (except.o): Add gt-except.h.
1340 (integrate.o): Add gt-integrate.h.
1342 Add new rules for new files.
1343 * configure: Regenerate.
1344 * configure.in: Correct defaults.h paths.
1345 * emit-rtl.c (mark_sequence_stack): Delete.
1346 (mark_emit_status): Delete.
1347 (start_sequence): Allocate sequence structures using GGC.
1348 (end_sequence): Allocate sequence structures using GGC.
1349 * except.c: Use gengtype for various structures. Include
1351 * expr.c (mark_expr_status): Delete.
1352 * function.c: Use gengtype for various structures. Include
1354 (mark_function_status): Use standard gt_ggc names for marker functions.
1355 (ggc_mark_struct_function): Likewise.
1356 * function.h: Use gengtype for various structures.
1357 * gengtype-lex.l: New file.
1358 * gengtype-yacc.y: New file.
1359 * gengtype.c: New file.
1360 * gengtype.h: New file.
1361 * ggc.h: Include gtype-desc.h. Alias some marker procedures to
1362 the standard names. Remove some now-unnecessary prototypes.
1363 * integrate.c: Use gengtype for various structures. Include
1365 (mark_hard_reg_initial_vals): Delete.
1366 * integrate.h (mark_hard_reg_initial_vals): Delete.
1367 * stmt.c: Use gengtype for various structures. Include
1369 (mark_case_node): Delete.
1370 (mark_goto_fixup): Delete.
1371 (mark_stmt_status): Use standard gt_ggc names for marker functions.
1372 * system.h: Define GTY to empty. In flex/bison files,
1373 don't poison malloc or realloc, instead just define them to
1374 xmalloc and xrealloc.
1375 * varasm.c: Use gengtype for various structures. Include
1376 gt-varasm.h. Use standard gt_ggc names for marker functions.
1377 (mark_pool_constant): Delete.
1378 (mark_varasm_status): Delete.
1379 (decode_rtx_const): #if 0 out non-typesafe hack.
1381 * function.h (free_lang_status): Mark as obsolete.
1382 * function.c (free_lang_status): Mark as obsolete.
1383 * c-decl.c (push_c_function_context): Use GC to allocate and free
1384 struct language_function.
1385 (pop_c_function_context): Likewise.
1386 * c-common.c (mark_c_language_function): Mark struct
1389 * doc/tm.texi (Per-Function Data): Don't document free_machine_status.
1390 Document that the machine_function structures must be allocated
1391 using GC. Update mark_machine_status documentation.
1392 * function.h: Don't declare free_machine_status.
1393 * function.c (free_machine_status): Don't define.
1394 (free_after_compilation): Don't call free_machine_status.
1395 (ggc_mark_struct_function): Mark f->machine. Call
1396 mark_machine_status only on non-NULL pointers.
1397 * system.h: Poison free_machine_status.
1398 * config/xtensa/xtensa.c (xtensa_init_machine_status): Use GC on
1399 struct machine_function.
1400 (xtensa_free_machine_status): Delete.
1401 (override_options): Don't set free_machine_status.
1402 * config/rs6000/rs6000.c (rs6000_override_options): Don't set
1403 free_machine_status.
1404 (rs6000_init_machine_status): Use GC on struct machine_function.
1405 (rs6000_free_machine_status): Delete.
1406 * config/ia64/ia64.c (ia64_init_machine_status): Use GC on struct
1408 (ia64_mark_machine_status): Likewise.
1409 (ia64_free_machine_status): Delete.
1410 (ia64_override_options): Don't set free_machine_status.
1411 * config/i386/i386.c (override_options): Don't set
1412 free_machine_status.
1413 (ix86_init_machine_status): Use GC on struct machine_function.
1414 (ix86_mark_machine_status): Likewise.
1415 (ix86_free_machine_status): Delete.
1416 * config/d30v/d30v.c: (d30v_init_machine_status): Use GC on struct
1418 (d30v_mark_machine_status): Likewise.
1419 (d30v_free_machine_status): Delete.
1420 (d30v_init_expanders): Don't set free_machine_status.
1421 * config/arm/arm.c (arm_mark_machine_status): Use GC on struct
1423 (arm_init_machine_status): Likewise.
1424 (arm_free_machine_status): Delete.
1425 (arm_init_expanders): Don't set free_machine_status.
1426 * config/alpha/alpha.c (override_options): Don't set
1427 free_machine_status.
1428 (alpha_init_machine_status): Use GC on struct machine_function.
1429 (alpha_mark_machine_status): Likewise.
1430 (alpha_free_machine_status): Delete.
1432 * varasm.c (compare_constant): Fix typo.
1434 * varasm.c: Don't include obstack.h.
1435 (struct varasm_status): x_const_rtx_hash_table is a hash of rtxes.
1436 (struct rtx_const): Give substructures names, improve formatting.
1437 (struct constant_descriptor): Delete.
1438 (struct constant_descriptor_tree): New, based on constant_descriptor.
1439 (const_hash_table): Is a hash table of trees.
1440 (mark_const_hash_entry): Is used for hashes of trees. Mark
1441 constant_descriptor_tree structure.
1442 (mark_const_str_htab_1): Mark deferred_string structure.
1443 (compare_constant): Rewrite to compare trees.
1444 (compare_constant_1): Delete.
1445 (record_constant): Delete.
1446 (record_constant_1): Delete.
1447 (output_constant_def): Use struct constant_descriptor_tree.
1448 Don't duplicate trees twice.
1449 (struct constant_descriptor_rtx): New.
1450 (struct pool_constant): Used for rtx constants.
1451 (init_varasm_status): Update for change to struct varasm_status.
1452 (mark_varasm_status): Likewise.
1453 (free_varasm_status): Delete.
1454 (compare_constant_rtx): Rewrite to handle constant_descriptor_rtx.
1455 (record_constant_rtx): Likewise.
1456 (mem_for_const_double): Update to use struct constant_descriptor_rtx.
1457 (force_const_mem): Likewise.
1458 * Makefile.in (varasm.o): Doesn't depend on obstack.h.
1459 * function.c (free_after_compilation): Don't use free_varasm_status.
1460 * function.h: Don't prototype free_varasm_status.
1462 * ggc-common.c (ggc_realloc): Handle X being NULL.
1464 * ggc-common.c (ggc_realloc): New function.
1465 * ggc.h: Prototype it.
1466 * emit-rtl.c (free_emit_status): Delete.
1467 (init_emit): Allocate emit subarrays using GC.
1468 (gen_reg_rtx): Reallocate subarrays using GC.
1469 (init_emit): Use GC to allocate 'struct emit_status' and its
1471 (mark_emit_status): Mark structure and its subarrays.
1472 * stmt.c (free_stmt_status): Delete.
1473 * expr.c (free_expr_status): Delete.
1474 * function.h: Remove prototypes for deleted functions.
1475 * function.c (free_after_compilation): Don't use deleted functions.
1476 Don't call free() on x_parm_reg_stack_loc.
1477 (free_after_parsing): Don't use free_stmt_status.
1478 (assign_parms): Use GC to allocate and resize x_parm_reg_stack_loc.
1479 (mark_function_status): Mark x_parm_reg_stack_loc.
1481 * varasm.c (init_varasm_status): Use GC to allocate
1482 'struct varasm_status' and its fields x_const_rtx_hash_table
1483 and x_const_rtx_sym_hash_table.
1484 (mark_varasm_status): Mark them.
1485 (free_varasm_status): Use GC to free them.
1486 * expr.c (init_expr): Use GC to allocate 'struct expr_status'.
1487 (mark_expr_status): Mark the structure itself.
1488 (free_expr_status): Use GC to free the structure.
1489 * stmt.c (free_stmt_status): Use GC to free 'struct stmt_status'.
1490 (mark_stmt_status): Mark the 'struct stmt_status' itself.
1491 (init_stmt_for_function): Allocate the structure for GC.
1493 * dwarf2out.c (lookup_type_die): Use TYPE_SYMTAB_DIE.
1494 (equate_type_number_to_die): Likewise.
1495 * tree.h (TYPE_SYMTAB_DIE): New macro.
1496 (struct die_struct): Predeclare.
1497 (struct tree_type): Add field symtab.die. Add a tag
1498 to the union type of field symtab.
1500 * varray.h (VARRAY_RTVEC_INIT): A varray of rtvec contains
1501 'struct rtvec_def *', not 'struct rtvec_def'.
1503 * function.h (original_arg_vector): Make a real rtvec.
1504 * function.c (ggc_mark_struct_function): Adjust.
1505 * integrate.c (expand_inline_function): Adjust.
1507 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
1509 * config.gcc (sh5-*-netbsd*, sh5l*-*-netbsd*)
1510 (sh64-*-netbsd*, sh64l*-*-netbsd*): New targets.
1511 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN)
1512 (TARGET_VERSION_CPU): Define according to the
1514 (TARGET_VERSION): Use TARGET_VERSION_ENDIAN and
1516 (TARGET_OS_CPP_BUILTINS): Use NETBSD_OS_CPP_BUILTINS_LP64
1517 if TARGET_SHMEDIA64.
1518 (LINK_DEFAULT_CPU_EMUL): Define according to the
1520 (SUBTARGET_LINK_EMUL_SUFFIX): Define.
1521 (SUBTARGET_LINK_SPEC): Define.
1522 (LINK_SPEC): Use SH_LINK_SPEC.
1524 (TARGET_DEFAULT): Use TARGET_CPU_DEFAULT.
1525 (FUNCTION_PROFILER): Add cases for TARGET_SHMEDIA32
1526 and TARGET_SHMEDIA64 which abort, for now.
1527 * config/sh/t-netbsd-sh5: New file.
1528 * config/sh/t-netbsd-sh5-32: New file.
1529 * config/sh/t-netbsd-sh5-64: New file.
1531 2002-06-03 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
1532 Richard Henderson <rth@redhat.com>
1534 * config/alpha/alpha.c (reg_or_const_int_operand): New.
1535 (some_operand, input_operand): Accept CONST_VECTOR.
1536 (alpha_extra_constraint): Add 'W'.
1537 (alpha_expand_zap_mask): New.
1538 (alpha_expand_builtin_vector_binop): New.
1539 (enum alpha_builtin): New.
1540 (zero_arg_builtins, one_arg_builtins, two_arg_builtins): New.
1541 (alpha_init_builtins, alpha_expand_builtin): New.
1542 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): New.
1543 * config/alpha/alpha.h (VECTOR_MODE_SUPPORTED_P): New.
1544 (PREDICATE_CODES): Update.
1545 * config/alpha/alpha-protos.h: Update.
1546 * config/alpha/alpha.md (UNSPEC_CMPBGE, UNSPEC_ZAP,
1547 UNSPEC_AMASK, UNSPEC_IMPLVER, UNSPEC_PERR, UNSPECV_RPCC): New.
1548 (movv8qi, movv8qi_fix, movv8qi_nofix): New.
1549 (movv4hi, movv4hi_fix, movv4hi_nofix): New.
1550 (movv2si, movv2si_fix, movv2si_nofix): New.
1551 (uminv8qi3, sminv8qi3, uminv4hi3, sminv4hi3): New.
1552 (umaxv8qi3, smaxv8qi3, umaxv4hi3, smaxv4hi3): New.
1553 (builtin_cmpbge, builtin_extql, builtin_extqh, builtin_zap,
1554 builtin_zap_1, builtin_zapnot, builtin_zapnot_1, builtin_amask,
1555 builtin_implver, builtin_rpcc, builtin_minub8, builtin_minsb8,
1556 builtin_minuw4, builtin_minsw4, builtin_maxub8, builtin_maxsb8,
1557 builtin_maxuw4, builtin_maxsw4, builtin_perr, builtin_pklb,
1558 pklb, builtin_pkwb, pkwb, builtin_unpkbl, unpkbl,
1559 builtin_unpkbw, unpkbw): New.
1560 * doc/extend.texi (Alpha Built-in Functions): New.
1562 2002-06-03 Richard Henderson <rth@redhat.com>
1564 * crtstuff.c (__EH_FRAME_BEGIN__): Conditionalize on
1565 USE_EH_FRAME_REGISTRY, not EH_FRAME_SECTION_NAME.
1567 2002-06-03 Richard Henderson <rth@redhat.com>
1569 * config/alpha/alpha-protos.h: Eliminate unneeded ifdefs.
1571 * config/alpha/alpha.c (reg_or_0_operand): Use CONST0_RTX.
1572 (const0_operand): New.
1573 (reg_or_fp0_operand, fp0_operand): Remove.
1574 * config/alpha/alpha.h (PREDICATE_CODES): Update.
1575 * config/alpha/alpha-protos.h: Update.
1576 * config/alpha/alpha.md: Replace all uses of reg_or_fp0_operand
1577 and fp0_operand with reg_or_0_operand and const0_operand.
1579 2002-06-03 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
1581 * alias.c (nonoverlapping_memrefs_p): Fix off by one error.
1583 2002-06-03 Roger Sayle <roger@eyesopen.com>
1585 * gcse.c (cprop_jump): Use single_set to get the pattern
1586 from the setcc argument.
1588 2002-06-03 Gabriel Dos Reis <gdr@codesourcery.com>
1590 * diagnostic.h (diagnostic_count): Move from output_buffer to
1592 (diagnostic_kind_count): Adjust definition.
1594 Mon Jun 3 19:11:53 CEST 2002 Jan Hubicka <jh@suse.cz>
1596 * except.c (except.c): Do not rebuild CFG.
1597 * toplev.c (rest_of_compilation): Recompute CFG after sibcall
1600 Mon Jun 3 11:53:01 CEST 2002 Jan Hubicka <jh@suse.cz>
1602 * integrate.c (copy_insn_list): Properly pace the INSN_SCOPE copies.
1603 * toplev.c: Include cfglahout.h
1604 * Makefile.in (toplev.c): Add dependnecy.
1606 2002-06-03 Neil Booth <neil@daikokuya.demon.co.uk>
1608 * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): New.
1609 (CPP_CPU32_SPEC, CPP_CPU64_SPEC): Kill.
1610 (CPP_CPUCOMMON_SPEC): Rename CPP_CPU_SPEC.
1612 2002-06-03 Jason Thorpe <thorpej@wasabisystems.com>
1614 * config/ns32k/netbsd.h: Update copyright years.
1615 (TARGET_OS_CPP_BUILTINS): Define.
1616 (CPP_PREDEFINES): Remove.
1617 * config/ns32k/ns32k.h (CPP_PREDEFINES): Remove.
1618 (TARGET_CPU_CPP_BUILTINS): Define.
1620 2002-06-02 Kazu Hirata <kazu@cs.umass.edu>
1622 * emit-rtl.c: Fix formatting.
1623 * errors.h: Likewise.
1624 * except.c: Likewise.
1625 * explow.c: Likewise.
1626 * expmed.c: Likewise.
1630 2002-06-02 Kazu Hirata <kazu@cs.umass.edu>
1632 * config/h8300/elf.h: Fix formatting.
1633 * config/h8300/rtems.h: Likewise.
1635 2002-06-03 Jason Thorpe <thorpej@wasabisystems.com>
1637 * config/rs6000/netbsd.h (DRAFT_V4_STRUCT_RET): Remove.
1639 2002-06-02 Tom Tromey <tromey@redhat.com>
1641 * fixinc/fixincl.x: Rebuilt.
1642 * fixinc/inclhack.def (thread_keyword): Match `*__thread'.
1644 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
1647 * i370.h (TARGET_CPU_CPP_BUILTINS): Use.
1648 * linux.h: Use TARGET_OS_CPP_BUILTINS rather than CPP_PREDEFINES.
1652 Mon Jun 3 00:18:20 CEST 2002 Jan Hubicka <jh@suse.cz>
1654 * final.c (final): Allow notes to not have computed addresses;
1655 kill no longer needed STACK_REGS ifdef.
1657 2002-06-02 Richard Henderson <rth@redhat.com>
1659 * gcse.c (bypass_conditional_jumps): Fix typo last change.
1661 Sun Jun 2 23:02:11 CEST 2002 Jan Hubicka <jh@suse.cz>
1663 * loop.c (emit_prefetch_instructions): Properly place the address
1666 Sun Jun 2 22:56:48 CEST 2002 Jan Hubicka <jh@suse.cz>
1668 * basic-block.h (basic_block_for_insn, BLOCK_FOR_INSN): Kill.
1669 (set_block_for_insn): Turn into macro.
1670 * cfgbuild.c (find_basic_block): Do not clear basic_block_for_insn.
1671 * cfglayout.c (insn_scopes): Kill.
1672 (scope_to_insns_initialize): Do not use insn_scopes.
1673 (scope_to_insns_finalize): Likewise.
1674 (duplicate_insn_chain): Likewise.
1675 (cfg_layout_initialize, cfg_layout_finalize): Do not turn scopes to notes.
1676 * cfgrtl.c (basic_block_for_insn): Kill.
1677 (delete_insn_and_edges, delete_insn_chain_and_edges): Simplify.
1678 (create_basic_block_structure): Use reorder_insns.
1679 (compute_bb_for_insn): Do not use basic_block_for_insn.
1680 (merge_blocks_nomove): Likewise.
1681 (update_bb_for_insn): Likewise.
1682 (verify_flow_info): Likewise.
1683 (set_block_for_insn): Kill.
1684 * combine.c (try_combine): Update gen_rtx_INSN call.
1685 * emit-rtl.c (gen_label_rtx): Update gen_rtx_CODE_LABEL call.
1686 (mark_insn_raw, make_jump_insn_raw, make_call_insn_raw): Clear
1688 (add_insn_after, add_insn_before, remove_insn, reorder_insns): Simplify.
1689 (emit_note_before, emit_note_after, emit_line_note_after, emit_note):
1691 (emit_insns_after): Simplify.
1692 (emit_copy_of_insn_after): Copy scope.
1693 * final.c (final_start_function): Lower scopes.
1694 * flow.c (check_function_return_warnings): Do not rely on deleted insn.
1695 * integrate.c (copy_insn_list): Cope scopes.
1696 * jump.c (duplicate_loop_exit_test): LIkewise; simplify.
1697 * loop.c (loop_optimize): Do not care block notes.
1698 * print-rtl.c (print_rtx): Print BB.
1699 * recog.c (apply_change_group): Simplify.
1700 * rtl.c (copy_rtx): Handle 'B'.
1701 * rtl.def (INSN, CALL_INSN, JUMP_INSN, NOTE): Add extra fields.
1702 * rtl.h (Field accessors): Update indexes.
1703 * sched-ebb.c (schedule_ebbs): Do not lower notes.
1704 * sched-rgn.c (schedule_insns): Likewise.
1705 * toplev.c (rest_of_compilation): Lower notes.
1706 * unroll.c (unroll_loop): Do not care scoping notes.
1707 (copy_loop_body): Copy scopes.
1709 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
1712 * elf.h: Use TARGET_OS_CPP_BUILTINS rather than
1714 * rtems.h: Similarly.
1715 * h8300.h (CPP_PREDEFINES, CPP_SPEC, SUBTARGET_CPP_SPEC,
1716 EXTRA_SPECS, SUBTARGET_EXTRA_SPECS): Remove.
1717 (TARGET_CPU_CPP_BUILTINS): Use.
1719 2002-06-02 Richard Henderson <rth@redhat.com>
1721 * alias.c: Include target.h.
1722 (mark_constant_function): Use targetm.binds_local_p instead
1723 of checking TREE_PUBLIC ourselves.
1724 * Makefile.in (alias.o): Add TARGET_H.
1726 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
1728 * c-lex.c: Update copyright and file description.
1730 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
1732 * config/fr30/fr30.h: Update to new CPP macros.
1734 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
1736 * config/dsp16xx/dsp16xx.h: Update to new CPP macros.
1738 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
1739 Zack Weinberg <zack@codesourcery.com>
1741 * c-common.c (c_common_init): Override cpplib's default
1742 warn_long_long setting.
1743 * c-lex.c (lex_number): Replace with interpret_integer,
1744 interpret_float, narrowest_unsigned_type and
1745 narrowest_signed_type, taking advantage of the new
1746 cpplib functionality.
1747 * cpperror.c (_cpp_begin_message): If a warning is turned
1748 into an error, avoid printing "warning:".
1749 * cppexp.c (cpp_num_sign_extend): New.
1750 * cppinit.c: Update comment.
1751 * cpplib.h (cpp_num_sign_extend): New.
1752 * tree.h: Update comment.
1754 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
1756 * diagnostic.h (struct diagnostic_context): Add new member
1758 (internal_error_function): Remove declaration.
1759 * diagnostic.c (internal_error_function): Remove definition..
1760 (internal_error): Adjust use.
1762 2002-06-02 Richard Henderson <rth@redhat.com>
1764 * rtl.h (CC0_P): New.
1765 * gcse.c (cprop_jump): Use it with single_set. Tweak dump text.
1766 (cprop_insn): Allow any mode register; use CC0_P. CSE out single_set.
1767 (bypass_block): Save old dest block for dump text.
1768 (bypass_conditional_jumps): Allow any mode register; use CC0_P.
1769 Allow only true SET insns, not single_set.
1771 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
1773 * diagnostic.c (diagnostic_finish): Rename to output_flush.
1774 (clear_disgnostic_info): Rename to output_clear_data. Use false
1775 instead of 0 for boolean value.
1776 Adjust function call throughout.
1778 Sun Jun 2 19:15:27 CEST 2002 Jan Hubicka <jh@suse.cz>
1780 * cfgrtl.c (commit_one_edge_insertion): Fix warning.
1781 * gcse.c (bypass_conditional_jumps): CSE out single_set call.
1783 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
1785 * d30v.h (CPP_PREDEFINES): Replace with
1786 (TARGET_CPU_CPP_BUILTINS): New.
1788 2002-06-02 Roger Sayle <roger@eyesopen.com>
1790 * config/alpha/alpha.h [ASM_OUTPUT_LABELREF]: Fix typo.
1792 Sun Jun 2 12:11:52 CEST 2002 Jan Hubicka <jh@suse.cz>
1794 * gcse.c (bypass_conditional_jumps): Use single set to obtain set.
1796 2002-06-02 Richard Henderson <rth@redhat.com>
1798 * rtlanal.c (volatile_refs_p): Not automatically true for CALL.
1800 2002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
1802 Support for C++ constructors/destructors.
1803 * config/avr/avr.c (avr_output_function_epilogue): Jump to exit()
1804 instead of looping if main() returns.
1805 (asm_file_start): Output global symbols that cause .data and .bss
1806 initialization code to be linked in, unconditionally for now.
1807 (avr_asm_out_ctor, avr_asm_out_dtor): New functions.
1808 * config/avr/avr.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): New.
1809 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
1811 * config/avr/libgcc.S (_exit): Split in .fini9 and .fini0 sections.
1812 (__tablejump__): New.
1813 (__do_copy_data, __do_clear_bss): New.
1814 (__do_global_ctors, __do_global_dtors): New.
1815 * config/avr/t-avr (LIB1ASMFUNCS): Add _copy_data, _clear_bss,
1818 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
1820 * c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): New.
1821 (CPP_SPEC, CPP_PREDEFINES): Kill.
1822 * c4x/rtems.h (CPP_PREDEFINES): Kill.
1823 (TARGET_OS_CPP_BUILTINS): New.
1825 Sat Jun 1 23:29:51 CEST 2002 Jan Hubicka <jh@suse.cz>
1827 * Makefile.in (tracer.o): New.
1828 * params.def (TRACER_*): New options.
1829 * rtl.h (tracer): Declare.
1830 * timevar.def (TV_TRACER): New.
1831 * toplev.c (dump_file_index): Add DFI_tracer.
1832 (dump_file_info): Add tracer.
1834 (lang_indepdenent_options): Add tracer.
1835 (rest_of_compilation): Call tracer.
1836 * tracer.c: New file.
1837 * invoke.texi (-ftracer): Document.
1838 (--param tracer-*): Document.
1840 2002-06-01 Daniel Berlin <dberlin@dberlin.org>
1842 * tree-inline.c (expand_call_inline): Make the statement
1843 expression we generate have a COMPOUND_STMT.
1845 2002-06-01 Roger Sayle <roger@eyesopen.com>
1847 * gcse.c (cprop_cc0_jump): Function deleted.
1848 (cprop_jump): Take an additional argument which is the possibly
1849 NULL cc setting insn immediately before the conditional jump.
1850 When a MODE_CC set is present, substitute it into the JUMP_INSN
1851 before attempting the constant propagation.
1852 (cprop_insn): Recognize cc setters followed by conditional jumps
1853 as a special case. Use cprop_jump instead of cprop_cc0_jump.
1854 (cprop_one_pass): Call bypass_conditional_jumps if altering jumps.
1855 (find_bypass_set): New function based upon find_avail_set used by
1856 cprop, but finds constant expressions available at the end of
1858 (bypass_block): New function. Given a basic block that begins
1859 with a conditional jump and multiple incoming edges, perform
1860 the jump bypass optimization.
1861 (bypass_conditional_jumps): New function. Call bypass_block with
1862 each suitable basic block in the CFG using a simple single pass.
1864 2002-06-01 Roger Sayle <roger@eyesopen.com>
1866 * tree.c (real_minus_onep): New function to test for -1.0.
1867 * fold-const.c (fold) [MULT_EXPR]: Optimize -1.0*x into -x.
1869 2002-06-01 Roger Sayle <roger@eyesopen.com>
1871 * fold-const.c (fold_truthop): Transform "a || b" into "(a|b) != 0"
1872 and "!p && !q" into "(p|q) == 0" under suitable conditions.
1874 2002-06-01 Andreas Jaeger <aj@suse.de>
1876 * cppexp.c (cpp_classify_number): Cast precission to int for
1877 correct printf format.
1879 2002-06-01 Marek Michalkiewicz <marekm@amelek.gda.pl>
1881 * config/avr/avr.c (avr_mcu_types): Remove devices that were once
1882 expected, but don't really exist: atmega83, atmega85, attiny10.
1883 * config/avr/avr.h (LINK_SPEC): Update to use the new avr[1-5] ld
1884 emulations for all devices.
1885 (CRT_BINUTILS_SPECS): Remove atmega83, atmega85, attiny10.
1886 * config/avr/t-avr (MULTILIB_MATCHES): Remove atmega83, atmega85.
1888 2002-06-01 Kazu Hirata <kazu@cs.umass.edu>
1890 * config/h8300/h8300-protos.h: Add a prototype for
1891 h8300_shift_needs_scratch_p.
1892 * config/h8300/h8300.c (h8300_shift_needs_scratch_p): New.
1893 * config/h8300/h8300.h (OK_FOR_R): New.
1894 (OK_FOR_S): Likewise.
1895 (OK_FOR_T): Likewise.
1896 (EXTRA_CONSTRAINT): Call OK_FOR_R, OK_FOR_S, and OK_FOR_T.
1897 * config/h8300/h8300.md (anonymous shift patterns): Use
1898 constraints R, S, and T.
1900 Sat Jun 1 11:23:22 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1902 * basic-block.h (struct basic_block_def): New field loop_father.
1903 (BB_VISITED): New flag.
1904 (struct loop): New field pred, removed field shared.
1905 (struct loops): New field parray.
1906 (LOOP_EXITS_DOMS): Removed.
1907 (flow_loop_tree_node_add, flow_loop_tree_node_remove,
1908 flow_loop_nested_p, flow_bb_inside_loop_p, get_loop_body,
1909 dfs_enumerate_from, loop_preheader_edge, loop_latch_edge,
1910 add_bb_to_loop, remove_bb_from_loops, find_common_loop,
1911 verify_loop_structure): Declare.
1912 * cfg.c (entry_exit_blocks): Initialize loop_father field.
1913 * cfganal.c (dfs_enumerate_from): New function.
1914 * cfgloop.c (HEAVY_EDGE_RATIO): New constant.
1915 (flow_loop_entry_edges_find, flow_loop_exit_edges_find,
1916 flow_loop_nodes_find, flow_loop_level_compute, flow_loop_nested_p,
1917 flow_loop_dump, flow_loops_dump, flow_loops_free,
1918 flow_loop_tree_node_add, flow_loop_level_compute,
1919 flow_loops_level_compute, flow_loop_scan, flow_loops_update,
1920 flow_loop_outside_edge_p): Modified for new infrastructure.
1921 (make_forwarder_block, canonicalize_loop_headers, glb_enum_p,
1922 redirect_edge_with_latch_update, flow_loop_free): New static functions.
1923 (flow_loop_tree_node_remove, flow_bb_inside_loop_p,
1924 get_loop_body, add_bb_to_loop, remove_bb_from_loops,
1925 find_common_loop, verify_loop_structure, loop_latch_edge,
1926 loop_preheader_edge): New functions.
1927 (flow_loops_cfg_dump): Do not show dominators, as this information
1928 does not remain up to date long.
1929 (flow_loops_find): Store results in new format.
1930 * predict.c (propagate_freq, estimate_probability,
1931 estimate_loops_at_level, estimate_bb_frequencies): Use new loop
1934 2002-06-01 Alan Lehotsky <apl@alum.mit.edu>
1936 * except.c (nothrow_function_p): Walk epilogue delay list
1937 checking the insn, not the chain for potential throws.
1939 2002-05-31 Zack Weinberg <zack@codesourcery.com>
1941 * Makefile.in (INSTALL_CPP, UNINSTALL_CPP): Remove.
1942 (install): Refer to install-cpp directly.
1943 (uninstall-cpp): Folded into uninstall rule.
1944 * configure.in: Delete all code relating to --disable-cpp.
1945 * configure: Regenerate.
1946 * config/t-install-cpp: Delete.
1948 2002-05-31 Richard Henderson <rth@redhat.com>
1950 * configure.in (HAVE_AS_TLS): Add alpha tests.
1951 * configure: Rebuild.
1952 * config/alpha/alpha.c (TARGET_AS_TLS): New.
1953 (alpha_tls_size, alpha_tls_size_string): New.
1954 (overide_options): Set it. Always install machine_status hooks.
1955 (input_operand): Accept got tls predicates.
1956 (local_symbol_p): Merge into ...
1957 (local_symbolic_operand): ... here. Reject tls symbols.
1958 (global_symbolic_operand): Likewise.
1959 (tls_symbolic_operand_1, dtp16_symbolic_operand): New.
1960 (dtp32_symbolic_operand, gotdtp_symbolic_operand): New.
1961 (tp16_symbolic_operand, tp32_symbolic_operand): New.
1962 (gottp_symbolic_operand, tls_symbolic_operand_type): New.
1963 (alpha_encode_section_info): Handle TLS symbols.
1964 (alpha_strip_name_encoding): Likewise.
1965 (alpha_legitimate_address_p): Likewise.
1966 (alpha_legitimize_address): Likewise.
1967 (alpha_expand_mov): Early exit to avoid nop moves.
1968 (struct machine_function): Move from unicosmk.h. Add some_ld_name.
1969 (alpha_init_machine_status, alpha_mark_machine_status,
1970 alpha_free_machine_status): Always define.
1971 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
1972 (print_operand, print_operand_address): Add TLS relocs.
1973 * config/alpha/alpha.h (HAVE_AS_TLS): Default 0.
1974 (MASK_TLS_KERNEL, TARGET_TLS_KERNEL): New.
1975 (TARGET_SWITCHES): Add -mtls-kernel.
1976 (alpha_tls_size, alpha_tls_size_string): New.
1977 (TARGET_OPTIONS): Add -mtls-size=.
1978 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS,
1979 REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Add R0_REG.
1980 (ASM_OUTPUT_LABELREF): Skip %.
1981 (PRINT_OPERAND_PUNCT_VALID_P): Add &.
1982 (PREDICATE_CODES): Update.
1983 * config/alpha/alpha.md (UNSPEC_TLSGD_CALL, UNSPEC_TLSLDM_CALL,
1984 UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_DTPREL, UNSPEC_TPREL,
1985 UNSPEC_TP, UNSPECV_SET_TP): New.
1986 (adddi_er_lo16_dtp, adddi_er_hi32_dtp, adddi_er_lo32_dtp,
1987 adddi_er_lo16_tp, adddi_er_hi32_tp, adddi_er_lo32_tp, load_tp,
1988 set_tp, movdi_er_tlsgd, movdi_er_tlsldm, movdi_er_gotdtp,
1989 movdi_er_gottp, call_value_osf_tlsgd, call_value_osf_tlsldm): New.
1990 (call_value_osf_2_er): Accept anything as op4.
1991 * config/alpha/alpha-protos.h: Update.
1992 * config/alpha/unicosmk.h (struct machine_function): Move to alpha.c.
1994 2002-05-31 Zack Weinberg <zack@codesourcery.com>
1996 * cppinit.c (append_include_chain): Always pay attention to
1997 cxx_aware when setting new->sysp. Remove ATTRIBUTE_UNUSED
2000 2002-05-31 Kazu Hirata <kazu@cs.umass.edu>
2002 * target.h: Fix formatting.
2003 * timevar.h: Likewise.
2004 * tlink.c: Likewise.
2005 * toplev.c: Likewise.
2006 * toplev.h: Likewise.
2008 * tree-dump.h: Likewise.
2010 * tree-inline.h: Likewise.
2011 * unroll.c: Likewise.
2012 * unwind-dw2.c: Likewise.
2013 * unwind-dw2-fde.c: Likewise.
2014 * unwind-dw2-fde-glibc.c: Likewise.
2015 * unwind-dw2-fde.h: Likewise.
2016 * unwind.h: Likewise.
2017 * unwind-sjlj.c: Likewise.
2018 * varasm.c: Likewise.
2019 * varray.h: Likewise.
2020 * vmsdbg.h: Likewise.
2021 * vmsdbgout.c: Likewise.
2022 * xcoffout.h: Likewise.
2024 2002-05-31 Igor Shevlyakov <igor@microunity.com>
2026 * expr.c (compare_from_rtx): Generate comparison between op0 and op1
2027 rather than cc0 and 0 in a case when HAVE_cc0 is not defined.
2029 2002-05-31 Matthew Woodcraft <mattheww@chiark.greenend.org.uk>
2031 * gcc.c (cpp_unique_options): Remove "-d" options.
2032 (cpp_debug_options): New spec string.
2033 (default_compilers): Use it.
2034 * objc/lang-specs.h: Likewise.
2036 2002-05-31 Nathanael Nerode <neroden@twcny.rr.com>
2038 * gcc/Makefile.in: Replace HOST_PREFIX, HOST_PREFIX_1 with
2039 BUILD_PREFIX, BUILD_PREFIX_1, to correct nomenclature.
2040 * gcc/mklibgcc.in: Likewise.
2041 * gcc/config/arc/t-arc: Likewise.
2042 * gcc/configure.in: Likewise.
2043 * gcc/configure: Regenerate.
2045 2002-05-31 Stan Shebs <shebs@apple.com>
2046 Turly O'Connor <turly@apple.com>
2048 * c-decl.c (struct binding_level): Change int field n_incomplete
2049 to tree list incomplete_list.
2050 (clear_binding_level): Init field with NULL.
2051 (pushdecl): Add incomplete type to list.
2052 (mark_binding_level): Mark the incomplete list.
2053 (finish_struct): Scan the incomplete list for types instead
2054 of all decls in the current binding level.
2056 2002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
2058 * pa.c (output_millicode_call): Add missing '%' characters.
2059 (output_call): Likewise.
2061 2002-05-31 David Edelsohn <edelsohn@gnu.org>
2063 * config/rs6000/xcoff.h (HOT_TEXT_SECTION_NAME): Define.
2064 (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
2066 2002-05-31 Alan Lehotsky <apl@alum.mit.edu>
2068 * varasm.c (mark_constant_pool): Walk epilogue delay list
2069 checking the insn, not the chain for potential constants.
2071 Fri May 31 12:38:43 2002 J"orn Rennecke <joern.rennecke@superh.com>
2073 * config/sh/elf.h (ASM_SPEC): Use subtarget_endian_asm_spec.
2075 Fri May 31 13:50:19 CEST 2002 Jan Hubicka <jh@suse.cz>
2077 * i386.c (classify_argument): Properly handle base types.
2079 * dwarf2out.c (expand_builin_init_dwarf_reg_sizes):
2080 Store first DWARF_FRAME_REGISTERS dwarf registers, not pseudo
2083 Fri May 31 13:37:54 CEST 2002 Jan Hubicka <jh@suse.cz>
2085 * gcse.c (gcse_emit_move_after): New.
2086 (pre_delete, hoist_store): Use it.
2088 * reload1.c (emit_input_reload_insns): Use constrain_operands
2089 instead of constraint_accepts_reg_p to verify optimization.
2090 (constraint_accepts_reg_p): Kill
2092 * reload1.c (reload_cse_delete_noop_set): Kill.
2093 (reload_cse_simplify): use delte_insn_and_edges.
2095 2002-05-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2097 * cfgloop.c (flow_loops_find): Initialize first and last fields
2100 2002-05-31 Neil Booth <neil@daikokuya.demon.co.uk>
2102 * c-common.c (builtin_define_std): Correct logic.
2104 2002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
2106 * pa.c (output_millicode_call): Correct "be,l" insn for TARGET_PA_20.
2107 (output_call): Likewise.
2109 2002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
2111 * pa.c: Move output.h include after tree.h include.
2112 (pa_asm_output_mi_thunk): Constify identifier lab.
2114 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
2116 * config/ns32k/ns32k.h: Define named constants for the
2117 bits in target_flags and use them.
2118 * config/ns32k/netbsd.h (TARGET_DEFAULT): Use named constants.
2120 2002-05-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
2122 * config.gcc (tm_file): Prefix pa/pa-700.h to tm_file list for PA1.0
2123 architecture and pa/pa-7100.h for PA1.1 architecture, respectively.
2124 * pa/pa.c (override_options): Use TARGET_SCHED_DEFAULT to select
2125 default scheduling model.
2126 * pa/pa.h (TARGET_SCHED_DEFAULT): Define if not defined to "8000".
2127 * pa/pa-700.h (TARGET_SCHED_DEFAULT): New file for "700" scheduling.
2128 * pa/pa-7100.h (TARGET_SCHED_DEFAULT): New file for "7100" scheduling.
2129 * doc/install.texi (hppa*-*-*): Document default scheduling.
2131 2002-05-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
2133 * pa.c (following_call): Check TARGET_JUMP_IN_DELAY.
2135 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
2137 * config.gcc (ns32k-*-netbsd*): Set tm_file to
2138 "${tm_file} netbsd.h netbsd-aout.h ns32k/netbsd.h"
2139 * config/ns32k/netbsd.h: Don't include ns32k/ns32k.h,
2140 netbsd.h, or netbsd-aout.h.
2142 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
2144 * longlong.h (count_trailing_zeros): Add missing \, and clean up
2145 whitespace in __ns32000__ case.
2147 2002-05-31 Aldy Hernandez <aldyh@redhat.com>
2149 * expr.c (expand_expr): Output partially zeroed out vectors with
2150 output_constant_def.
2152 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
2154 * config.gcc (sh[123456789l]*-*-*): Set cpu_type to sh.
2156 (shl*-*-netbsdelf*): New targets.
2157 * config/sh/netbsd-elf.h: New file.
2158 * config/sh/t-netbsd: New file.
2160 2002-05-30 Richard Henderson <rth@redhat.com>
2161 Eric Botcazou <ebotcazou@multimania.com>
2163 PR optimization/6822
2164 * config/i386/i386.c (ix86_expand_int_movcc): Don't cast INTVAL
2165 to unsigned int for op1 comparisons. Use gen_int_mode.
2167 2002-05-30 Eric Botcazou <ebotcazou@multimania.com>
2169 * expmed.c (const_mult_add_overflow_p): New.
2170 * expr.h: Declare it.
2171 * loop.c (maybe_eliminate_biv_1) [COMPARE]: Use it.
2172 Don't eliminate the biv if the giv has a constant multiplier and
2173 the rhs argument of the comparison does satisfy the predicate.
2174 Use expand_mult_add to compute the replacement constant.
2176 2002-05-30 Osku Salerma <osku@iki.fi>
2178 * c-common.c (c_common_attribute_table): Add "may_alias" entry.
2179 (c_common_get_alias_set): Handle it.
2180 * doc/extend.texi: Document it.
2182 2002-05-30 Richard Henderson <rth@redhat.com>
2184 * defaults.h (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
2185 * toplev.c (process_options): Don't check it.
2186 * doc/tm.texi: Don't document it.
2187 * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): New.
2188 (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
2189 * config/i386/i386.c (ix86_frame_pointer_required): Suppress leaf
2190 frame pointer optimization if current_function_profile.
2192 2002-05-30 Kazu Hirata <kazu@cs.umass.edu>
2194 * langhooks.c: Fix formatting.
2195 * langhooks.h: Likewise.
2197 * libgcc2.c: Likewise.
2198 * lists.c: Likewise.
2199 * local-alloc.c: Likewise.
2203 2002-05-30 Marc Espie <espie@openbsd.org>
2205 * config.gcc (sparc64-*-openbsd*): New.
2206 * config/sparc/openbsd1-64.h: New.
2207 * config/sparc/openbsd64.h: New.
2209 2002-05-30 Jeff Law <law@redhat.com>
2211 * flow.c (propagate_one_insn): Revise yesterday's patch. Delete
2212 a dead insn with a REG_RETVAL note when the entire libcall is not
2213 dead and remove the associated REG_LIBCALL note at the same time.
2215 Thu May 30 19:54:30 2002 J"orn Rennecke <joern.rennecke@superh.com>
2217 * lcm.c (output.h): #include.
2218 (compute_earliest): Remove hack to treat renumbered EXIT_BLOCK
2219 as an ordinary block.
2220 (optimize_mode_switching): Don't pretend that the exit block is
2221 an ordinary block, or handle sucessors of entry block specially.
2222 Instead, split edges from entry block and to exit block, and
2223 put a computing definition on the thus gained post-entry-block,
2224 and a need on the pre-exit-block.
2226 Thu May 30 20:28:01 CEST 2002 Jan Hubicka <jh@suse.cz>
2228 * gengenrtl.c (type_from_format, accessor_from_format): Support 'B'.
2229 * rtl.texi: Document 'B'
2231 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
2233 * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Compute
2235 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Set to 96 if not __mc68010__.
2237 2002-05-30 Aldy Hernandez <aldyh@redhat.com>
2239 * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
2240 const0_rtx instead of NULL_RTX when in error.
2241 (altivec_expand_abs_builtin): Same.
2242 (rs6000_expand_binop_builtin): Same.
2243 (altivec_expand_predicate_builtin): Same.
2244 (altivec_expand_stv_builtin): Same.
2245 (rs6000_expand_ternop_builtin): Same.
2246 (altivec_expand_builtin): Same.
2248 2002-05-29 David S. Miller <davem@redhat.com>
2250 * rtl.h (clear_emit_caches): Delete.
2251 * integrate.c (output_inline_function): Don't call it.
2252 * emit-rtl.c (restore_emit_status, init_emit): Likewise.
2253 (clear_emit_caches): Delete definition.
2254 (SEQUENCE_RESULT_SIZE, sequence_result, free_insn): Likewise.
2256 2002-05-30 Hans-Peter Nilsson <hp@bitrange.com>
2258 * config/mmix/mmix.c: Include real.h.
2259 (mmix_constant_address_p): Remove redundant test before switch.
2261 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
2263 * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Define
2264 only if not already defined.
2266 2002-05-29 Kazu Hirata <kazu@cs.umass.edu>
2268 * config/h8300/h8300-protos.h: Remove prototypes for
2269 ok_for_bclr and small_power_of_two.
2270 * config/h8300/h8300.c (small_power_of_two): Remove.
2271 (ok_for_blcr): Likewise.
2272 (fix_bit_operand): Make WHAT deal with an integer instead of a
2273 constraint character.
2274 * config/h8300/h8300.h (CONST_OK_FOR_O): Remove.
2275 (CONST_OK_FOR_P): Likewise.
2276 (CONST_OK_FOR_LETTER_P): Do not call CONST_OK_FOR_O or
2277 CONST_OK_FOR_P any more.
2278 * config/h8300/h8300.md (andqi3): Adjust to the new prototype
2283 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
2285 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
2286 (CPP_PREDEFINES): Make sure this is undefined.
2287 (CPP_SPEC): Place -D__mips=1 at the beginning of the spec,
2288 since it is no longer in CPP_PREDEFINES. Don't -U__MIPSEL__
2289 or -U__MIPSEB__ before defining one or the other. Instead,
2290 use %(subtarget_endian_default) if neither -EB nor -EL are
2292 (SUBTARGET_EXTRA_SPECS): Define.
2293 (SUBTARGET_CPP_SPEC): Remove __LONG64 handling. Use
2296 2002-05-29 Hans-Peter Nilsson <hp@axis.com>
2298 * doc/md.texi (Patterns): Note pattern condition pitfall
2301 2002-05-29 Aldy Hernandez <aldyh@redhat.com>
2303 * rs6000.c: (altivec_expand_builtin): Only expand altivec builtins
2304 when TARGET_ALTIVEC. Move handling of generic unary, binary, and
2305 ternary operations from here...
2306 (rs6000_expand_builtin): ...to here.
2307 New argument expandedp.
2308 Change all instances of altivec_expand_binop_builtin to
2309 rs6000_expand_binop_builtin.
2310 (altivec_expand_unop_builtin): Rename to
2311 rs6000_expand_unop_builtin.
2312 (altivec_expand_binop_builtin): Rename to
2313 rs6000_expand_binop_builtin.
2314 (altivec_expand_ternop_builtin): Rename to
2315 rs6000_expand_ternop_builtin.
2317 2002-05-29 Richard Henderson <rth@redhat.com>
2319 * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Define with value.
2320 (TARGET_BI_ARCH): Likewise.
2321 * config/i386/i386.h: Test TARGET_64BIT_DEFAULT by value.
2322 (TARGET_SWITCHES): Combine target defaults here not in TARGET_DEFAULT.
2323 (TARGET_64BIT_DEFAULT): Default to 0.
2324 (TARGET_DEFAULT): Default to MASK_OMIT_LEAF_FRAME_POINTER.
2326 2002-05-29 Richard Henderson <rth@redhat.com>
2328 * config/i386/i386.c (USE_HIDDEN_LINKONCE): New.
2329 (get_pc_thunk_name): New.
2330 (output_set_got): Use it.
2331 (ix86_asm_file_end): If USE_HIDDEN_LINKONCE, emit get_pc thunks
2332 into linkonce sections.
2334 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
2336 * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
2337 (CPP_PREDEFINES): Make sure this is undefined.
2338 (CPP_SUBTARGET_SPEC64, CPP_SUBTARGET_SPEC32): Remove.
2339 (CPP_SUBTARGET_SPEC): Don't provide different versions for
2340 default-32 and default-64. Just always use %(netbsd_cpp_spec).
2341 (SUBTARGET_EXTRA_SPECS): Remove cpp_subtarget_spec32 and
2342 cpp_subtarget_spec64. Add netbsd_cpp_spec.
2343 * config/sparc/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
2344 (CPP_PREDEFINES): Make sure this is undefined.
2345 (SUBTARGET_EXTRA_SPECS): Define.
2346 (CPP_SPEC): Use %(netbsd_cpp_spec).
2348 2002-05-29 Jeff Law <law@redhat.com>
2350 * pa.h (ASM_OUTPUT_MI_THUNK): Remove unwanted semi-colon.
2352 * flow.c (propagate_one_insn): Do not remove a dead insn if it
2353 contains a REG_RETVAL note.
2355 * haifa-sched (sched_analyze): Remove another useless clearing
2356 of SCHED_GROUP_P I missed yesterday.
2358 * pa.h (ASM_OUTPUT_MI_THUNK): Move implementation into pa.c.
2359 * pa.c (pa_asm_output_mi_thunk): New function.
2360 * pa-protos.h (pa_asm_output_mi_thunk): Declare.
2362 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
2363 Marek Michalkiewicz <marekm@amelek.gda.pl>
2365 * config/avr/avr.c (avr_base_arch_macro, avr_extra_arch_macro): New.
2366 (avr_asm_only_p): Make non-static.
2367 (enum avr_arch): Remove.
2368 (avr_arch_types): New.
2369 (avr_mcu_types): Update.
2370 (avr_override_options): Use avr_arch_types table instead of switch.
2371 * avr.h (CPP_PREDEFINES): Die.
2372 (avr_base_arch_macro, avr_extra_arch_macro): New.
2373 (TARGET_CPU_CPP_BUILTINS): New.
2374 (CPP_SPEC, EXTRA_SPECS): Simplify.
2375 (CPP_AVR1_SPEC, CPP_AVR2_SPEC, CPP_AVR3_SPEC, CPP_AVR4_SPEC,
2376 CPP_AVR5_SPEC): Die.
2378 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
2380 * config/arm/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
2381 NETBSD_OS_CPP_BUILTINS_AOUT.
2382 (SUBTARGET_EXTRA_SPECS): Define.
2383 (CPP_SPEC): Use %(netbsd_cpp_spec).
2385 2002-05-29 Richard Henderson <rth@redhat.com>
2387 * config/i386/i386.c (ix86_output_function_epilogue): New.
2388 (TARGET_ASM_FUNCTION_EPILOGUE): New.
2389 (pic_label_name): Remove.
2390 (pic_labels_used): New.
2391 (ix86_asm_file_end): Emit one pc load stub for each register used.
2392 (output_set_got): Generate deep pc load to any register.
2393 (ix86_select_alt_pic_regnum): New.
2394 (ix86_save_reg): Don't save pic register if we can find a valid
2395 call-clobbered replacement.
2396 (ix86_expand_prologue): If we found a valid replacement, renumber
2397 pic_offset_table_rtx.
2398 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Look at
2399 pic_offset_table_rtx after reload.
2400 (REAL_PIC_OFFSET_TABLE_REGNUM): New.
2401 * config/i386/i386.md (set_got): Make insn, not expander.
2402 (set_got_nopic, set_got_deep, set_got_nodeep): Remove.
2404 2002-05-29 Richard Henderson <rth@redhat.com>
2406 * config/i386/i386.c (ix86_compute_frame_layout): Do add bottom
2407 alignment for alloca.
2409 2002-05-29 Richard Henderson <rth@redhat.com>
2411 * config/i386/i386.c (output_pic_addr_const): Lowercase rip.
2412 (print_operand_address): Only add rip for symbolic addresses
2413 for which we do not have another relocation type.
2415 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
2417 * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
2418 (EXTRA_SPECS): Add netbsd_cpp_spec.
2419 (CPP_SPEC): Use %(netbsd_cpp_spec).
2420 (CPP_PREDEFINES): Remove.
2421 * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
2422 (EXTRA_SPECS): Define.
2423 (CPP_SPEC): Use %(netbsd_cpp_spec).
2424 (CPP_PREDEFINES): Remove.
2426 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
2428 PR preprocessor/6844
2429 * cppmacro.c (cpp_macro_definition): Reserve space for terminating
2432 2002-05-29 Eric Christopher <echristo@redhat.com>
2434 * config/mips/linux.h (SUBTARGET_CPP_SPEC): Add support for
2435 mips5/mips32/mips64 and _MIPS_ISA_MIPSXX.
2437 2002-05-29 Nick Clifton <nickc@cambridge.redhat.com>
2439 * config/fr30/fr30.md: Remove previous restriction on splits.
2440 Enforce conformance through gen_lowpart and cont_int_operand.
2441 * config/fr30/fr30.h (BSS_SECTION_ASM_OP): Use ".section .bss"
2442 as the assembler does not support ".bss".
2444 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
2446 * config/i386/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
2447 (CPP_PREDEFINES): Remove.
2448 (SUBTARGET_EXTRA_SPECS): Define.
2449 (CPP_SPEC): Use %(netbsd_cpp_spec).
2450 * config/i386/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
2451 (CPP_PREDEFINES): Remove.
2452 (SUBTARGET_EXTRA_SPECS): Define.
2453 (CPP_SPEC): Use %(netbsd_cpp_spec).
2454 * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Define.
2455 (CPP_PREDEFINES, CPP_LP64_SPEC, CPP_SUBTARGET_SPEC): Remove.
2456 (SUBTARGET_EXTRA_SPECS): Remove cpp_lp64 and cpp_subtarget.
2457 Add netbsd_cpp_spec.
2458 (CPP_SPEC): Remove %(cpp_subtarget), add %(netbsd_cpp_spec).
2460 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
2461 Zack Weinberg <zack@codesourcery.com>
2463 * cppexp.c (cpp_num): Move to cpplib.h.
2464 (CPP_ERROR): Remove.
2465 (interpret_float_suffix, interpret_int_suffix): New.
2466 (struct suffix, vsuf_1, vsuf_2, vsuf_3): Remove.
2467 (cpp_classify_number, cpp_interpret_integer): New.
2468 (interpret_number): Remove.
2469 (eval_token): Update to use new routines.
2470 * cpphash.h (cpp_num_part): Move to cpplib.h.
2471 * cppinit.c (cpp_post_options): Set warn_long_long.
2472 * cpplib.h (struct cpp_options): Add warn_long_long.
2473 (cpp_num, cpp_num_part, CPP_N_CATEGORY, CPP_N_INVALID,
2474 CPP_N_INTEGER, CPP_N_FLOATING, CPP_N_WIDTH, CPP_N_SMALL,
2475 CPP_N_MEDIUM, CPP_N_LARGE, CPP_N_RADIX, CPP_N_DEC, CPP_N_HEX,
2476 CPP_N_OCTAL, CPP_N_UNSIGNED, CPP_N_IMAGINARY, cpp_classify_number,
2477 cpp_interpret_integer): New.
2479 2002-05-29 Joel Sherrill <joel@OARcorp.com>
2481 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Use -m403 and -m405.
2483 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
2485 * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
2486 NETBSD_OS_CPP_BUILTINS_ELF and NETBSD_OS_CPP_BUILTINS_LP64.
2487 (CPP_SUBTARGET_SPEC): Define.
2488 (SUBTARGET_EXTRA_SPECS): Define.
2491 2002-05-29 Chris Lattner <sabre@nondot.org>
2493 * ssa.c (rename_insn_1): Rename uses of undefined registers to
2494 prevent confusion if/when the register is defined.
2496 2002-05-29 Hans-Peter Nilsson <hp@axis.com>
2499 * config/cris/cris.md: Fix typos and thinkos in comments.
2500 ("*mov_sideqi_biap_mem"): Remove '*' in constraint for operand 4,
2502 ("*mov_sidehi_biap_mem", "*mov_sidesi_biap_mem"): Ditto.
2503 ("*mov_sideqi_mem"): Similar, but for operand 3.
2504 ("*mov_sidehi_mem", "*mov_sidesi_mem"): Ditto.
2505 (splitter for mov_sideqi_mem, mov_sidehi_mem, mov_sidesi_mem):
2506 Remove spurious mode specifier on operand 2.
2508 2002-05-29 Kazu Hirata <kazu@cs.umass.edu>
2510 * config/h8300/h8300-protos.h: Remove the prototype for
2512 Add prototypes for single_one_operand and single_zero_operand.
2513 * config/h8300/h8300.c (o_operand): Remove.
2514 (single_one_operand): New.
2515 (single_zero_operand): Likewise.
2516 (print_operand): For 'V' operand, and the operand with 0xff.
2517 For 'V' and 'W' operands, do not and the bit position with 7.
2518 * config/h8300/h8300.md (various anonymous patterns): Replace
2519 use of exact_log2 with single_one_operand/single_zero_operand.
2521 2002-05-29 Ulrich Weigand <uweigand@de.ibm.com>
2523 * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New.
2525 2002-05-29 Ulrich Weigand <uweigand@de.ibm.com>
2527 * config/s390/s390.c (legitimate_pic_operand_p): Do not
2528 accept symbolic LARL operands.
2529 (s390_emit_epilogue): Do not set FRAME_RELATED_P on
2532 2002-05-29 Hartmut Penner <hpenner@de.ibm.com>
2534 * config/s390/s390.md (cmpstr_64/31): Mark whole
2535 input registers as used.
2537 2002-05-28 Richard Henderson <rth@redhat.com>
2539 * config/i386/i386.c (ix86_save_reg): Examine regs_ever_live,
2540 not current_function_uses_pic_offset_table and
2541 current_function_uses_const_pool; examine current_function_profile.
2542 (ix86_expand_prologue): Likewise. Add pic_offset_table_rtx as
2543 input to blockage if needed.
2544 (ix86_expand_call): Do not set current_function_uses_pic_offset_table.
2545 (legitimize_pic_address): Likewise. Set regs_ever_live for
2546 pic_offset_table_rtx when invoked during reload.
2547 * config/i386/i386.h (FINALIZE_PIC): Remove.
2548 * config/i386/i386.md (tablejump): Reformat. Do not set
2549 current_function_uses_pic_offset_table.
2550 (tls_global_dynamic, tls_local_dynamic_base): Likewise.
2551 (blockage): Accept anything as operand 0.
2553 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
2555 * config/netbsd-aout.h (NETBSD_OS_CPP_BUILTINS_AOUT): Define
2556 common CPP built-ins for all NetBSD a.out targets.
2557 * config/netbsd-elf.h (NETBSD_OS_CPP_BUILTINS_ELF): Define
2558 common CPP built-ins for all NetBSD ELF targets.
2559 * config/netbsd.h: Add missing notice.
2560 (NETBSD_OS_CPP_BUILTINS_COMMON): Define common CPP built-ins
2561 for all NetBSD targets.
2562 (NETBSD_OS_CPP_BUILTINS_LP64): Define common CPP built-ins
2563 for all NetBSD targets using an LP64 code model.
2564 (NETBSD_CPP_SPEC): Define CPP_SPEC parts common to all
2567 2002-05-28 Richard Henderson <rth@redhat.com>
2569 * flow.c (update_life_info_in_dirty_blocks): Only do a partial
2570 update if UPDATE_LIFE_LOCAL.
2572 2002-05-28 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
2574 * config/sh/sh.c: Include real.h for REAL_VALUE_TYPE.
2576 Tue May 28 21:16:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
2577 Jason R. Thorpe <thorpej@wasabisystems.com>
2579 config/sh reorganization to factor out endianness and coff:
2581 * config/sh/little.h: New file.
2582 * config/sh/sh.h (TARGET_ENDIAN_DEFAULT): If not already
2583 defined, define to 0 to select big-endian.
2584 (SUBTARGET_ASM_ENDIAN_SPEC): Define according to TARGET_ENDIAN_DEFAULT.
2585 (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
2586 * config/sh/sh64.h (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
2587 * config/sh/t-be: New file.
2588 * config/sh/t-le: New file.
2590 * sh.h (SDB_DEBUGGING_INFO, #include "dbxcoff.h"): Moved to sh/coff.h.
2591 (SDB_DELIM, MAX_OFILE_ALIGNMENT, IDENT_ASM_OP): Likewise.
2592 (TARGET_ASM_NAMED_SECTION, ASM_OUTPUT_SKIP): Likewise.
2593 (USER_LABEL_PREFIX, LOCAL_LABEL_PREFIX): Likewise.
2594 (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Likewise.
2595 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
2596 (ASM_FILE_END, ASM_DECLARE_FUNCTION_NAME): Deleted.
2597 (CPP_SPEC, SUBTARGET_CPP_ENDIAN_SPEC): Likewise.
2598 (SUBTARGET_CPP_SPEC, CPP_DEFAULT_CPU_SPEC, CPP_PREDEFINES): Likewise.
2599 (EXTRA_SPECS): Remove SUBTARGET_CPP_ENDIAN_SPEC and
2600 CPP_DEFAULT_CPU_SPEC. Add LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL,
2601 SUBTARGET_LINK_EMUL_SUFFIX and SUBTARGET_LINK_SPEC.
2602 (LINK_SPEC): Define to SH_LINK_SPEC.
2603 (TARGET_CPU_CPP_BUILTINS, SH_LINK_SPEC): Define.
2604 (LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL): Likewise.
2605 (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
2606 (CPP_SPEC): Reduce to %(subtarget_cpp_spec).
2607 (TARGET_ENDIAN_DEFAULT): Define if not already defined.
2608 * config/sh/coff.h: New file.
2609 (TARGET_ASM_NAMED_SECTION): Now default_coff_asm_named_section
2610 (TARGET_OBJFMT_CPP_BUILTINS): Define.
2611 * config/sh/elf.h (IDENT_ASM_OP): No need to #undef at the start.
2612 (ASM_FILE_END, ASM_OUTPUT_SOURCE_LINE): Likewise.
2613 (DBX_OUTPUT_MAIN_SOURCE_FILE_END, TARGET_ASM_NAMED_SECTION): Likewise.
2614 (ASM_DECLARE_FUNCTION_NAME, MAX_OFILE_ALIGNMENT, SIZE_TYPE): Likewise.
2615 (PTRDIFF_TYPE): Likewise.
2616 ("dbxelf.h", "elfos.h", "svr4.h"): Don't #include.
2617 (CPP_PREDEFINES): Don't define.
2618 (TARGET_OBJFMT_CPP_BUILTINS): Define.
2619 (LINK_SPEC): Define to SH_LINK_SPEC.
2620 (LINK_EMUL_PREFIX): Redefine.
2621 * config/sh/linux.h: (SUBTARGET_CPP_SPEC): Remove -fpic / -fPIC cases.
2622 (SUBTARGET_CPP_ENDIAN_SPEC, CPP_DEFAULT_CPU_SPEC): Remove redefinition.
2623 (CPP_PREDEFINES, SUBTARGET_ASM_ENDIAN_SPEC): Likewise.
2624 (CC1_SPEC, CC1PLUS_SPEC, LINK_SPEC): Likewise.
2625 (TARGET_OS_CPP_BUILTINS): Define.
2626 (TARGET_DEFAULT): Redefine.
2627 (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
2628 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Remove.
2629 (LINK_SPEC): Don't redefine.
2630 (LINK_DEFAULT_CPU_EMUL): Redefine.
2631 (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
2632 * sh.c (sh_asm_named_section): Don't declare / define.
2633 * t-linux (MULTILIB_OPTIONS): Rely on pre-set endianness option.
2634 * config.gcc (sh-*-elf* tm_file): Add dbxelf.h elfos.h svr4.h.
2635 (sh64-*-elf* tm_file): Likewise.
2636 (sh-*-rtemself* tm_file): Likewise.
2637 (sh-*-linux* tm_file): Likewise. Add sh/little.h.
2638 (sh-*-linux* tmake_file): Add sh/t-le.
2639 (sh-*-rtems* tm_file): Add sh/coff.h
2640 (sh-*-* tm_file): Likewise.
2642 Tue May 28 21:16:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
2644 * sh.h (LEGITIMATE_PIC_OPERAND_P): Check for SYMBOL_REF before using
2645 CONSTANT_POOL_ADDRESS_P.
2647 * coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Define.
2649 2002-05-28 David Edelsohn <edelsohn@gnu.org>
2650 Jeff Law <law@redhat.com>
2652 * optabs.c (expand_binop): Fix nwords sign warnings.
2653 generate pseudo for add_optab.
2655 * sched-deps.c (sched_analyze): Do not clear SCHED_GROUP_P.
2656 * haifa-sched.c (move_insn): Clear SCHED_GROUP_P after it is used.
2658 2002-05-28 Marc Espie <espie@openbsd.org>
2660 * config/i386/openbsd.h (HAVE_GAS_MAX_SKIP_P2ALIGN): Remove,
2661 inherited from gas.h.
2662 (ASM_QUAD): Undef. OpenBSD does not support it.
2664 2002-05-28 Danny Smith <dannysmith@users.sourceforge.net>
2666 * doc/install.texi (binaries): Change mingw binaries
2667 link to www.mingw.org.
2669 2002-05-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2671 * cfgloop.c (flow_loops_cfg_dump): Use bb->index, not i.
2673 2002-05-28 Richard Henderson <rth@redhat.com>
2675 * config/i386/i386.c (ix86_compute_frame_layout): Do not add
2676 bottom alignment for leaf functions.
2678 2002-05-28 Zack Weinberg <zack@codesourcery.com>
2680 * config/pa/milli32.S, config/pa/lib1funcs.asm,
2681 config/sparc/sol2-g1.asm: Delete unused files.
2683 2002-05-28 Richard Henderson <rth@redhat.com>
2685 * cfg.c (dump_flow_info): Print bb->index, not i, for block number.
2687 * flow.c (calculate_global_regs_live): Rename call_used to
2688 invalidated_by_call. Initialize from regs_invalidated_by_call
2689 instead of call_used_regs.
2691 * varasm.c (default_binds_local_p): Check TREE_PUBLIC before
2694 2002-05-28 Zack Weinberg <zack@codesourcery.com>
2696 * tree.h: Don't include real.h.
2697 Forward-declare struct realvaluetype.
2698 (struct tree_real_cst): Point to the REAL_VALUE_TYPE, do not
2700 (TREE_REAL_CST_PTR): New accessor.
2701 (TREE_REAL_CST): Update.
2702 * real.h: Include machmode.h.
2703 (realvaluetype): Make it struct realvaluetype, not a typedef.
2704 (build_real): Prototype here.
2706 * tree.c: Include real.h.
2707 (build_real): Allocate the REAL_VALUE_TYPE as a separate
2708 object in GC memory, set TREE_REAL_CST_PTR to point to it.
2709 (build_real_from_int_cst): Use build_real.
2710 * ggc-common.c (ggc_mark_trees): Mark TREE_REAL_CST_PTR of a
2713 * builtins.c, c-common.c, c-lex.c, dwarf2out.c, expr.c,
2714 fold-const.c, print-tree.c, real.c: Include real.h.
2715 * Makefile.in: Update dependency lists.
2717 2002-05-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2719 * basic-block.h (last_basic_block): Declare.
2720 (expunge_block_nocompact): Declaration removed.
2721 (compact_blocks): Declare.
2722 * cfg.c (last_basic_block): New variable.
2723 (expunge_block_nocompact): Removed.
2724 (expunge_block): Do not compact basic blocks.
2725 (compact_blocks): New.
2726 * cfganal.c (flow_call_edges_add): Use the fact that bb indices no
2728 * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Set
2730 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Do not change
2731 real positions of blocks.
2732 (delete_unreachable_blocks): Simplified -- quadratic behavior now
2734 (cleanup_cfg): Compact blocks.
2735 * cfgrtl.c (create_basic_block): Insert basic blocks to the end of
2736 basic_block_info varray.
2737 (flow_delete_block): Comment update.
2738 (back_edge_of_syntactic_loop_p): Modify position check code.
2739 (verify_flow_info): Update checking.
2740 * flow.c (calculate_global_regs_live): Use FOR_EACH_BB.
2741 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
2742 (find_if_case_1, find_if_case_2, if_convert): Use the fact that bb
2743 indices no longer change.
2744 * lcm.c (optimize_mode_switching): Replace n_basic_blocks with
2746 * predict.c (estimate_bb_frequencies): Remove unneccessary code.
2747 * profile.c (branch_prob): Compact blocks.
2748 * sched-rgn.c (find_rgns): Replace n_basic_blocks with
2751 2002-05-28 Kazu Hirata <kazu@cs.umass.edu>
2753 * config/h8300/h8300.md (two anonymous patterns): New.
2755 2002-05-28 David S. Miller <davem@redhat.com>
2757 * config/sparc/sparc.md (cpu): Tidy.
2758 (type): Delete 'return', add 'ialuX', 'flushw', 'iflush', and
2760 (in_call_delay): Delete reference to 'return' type.
2761 (eligible_for_return_delay, in_return_delay, define_delay
2762 referencing those): Delete.
2763 (rest of file): Use new type attributes as appropriate.
2764 * config/sparc/sparc-protos.h (eligible_for_return_delay): Delete.
2765 * config/sparc/sparc.c (eligible_for_return_delay): Likewise.
2766 * config/sparc/ultra1_2.md (us1_single): New reservation.
2767 (us1_ialuX): Likewise.
2768 * config/sparc/ultra3.md (us3_single): Likewise.
2769 (us3_ialuX): Likewise.
2770 (us3_imul, us3_idiv): Tweak.
2772 2002-05-28 Richard Henderson <rth@redhat.com>
2774 * config/alpha/alpha.c (alpha_in_small_data_p): Return false for
2777 2002-05-28 Richard Henderson <rth@redhat.com>
2779 * config.gcc: Obsolete mn10200.
2781 2002-05-28 Neil Booth <neil@daikokuya.demon.co.uk>
2783 * cppexp.c (interpret_number): Optimize for single-digit
2784 and less-than-half-precision cases.
2785 (num_trim, num_positive, num_div_op): Cast constants.
2787 2002-05-27 Bo Thorsen <bo@suse.de>
2789 * config/i386/libgcc-x86_64-glibc.ver: Copy this file from the
2790 3.1 branch. The file was made by Jakub Jelinek.
2791 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Add i386
2792 support so multilib doesn't break. And don't define this at all
2793 when -Dinhibit_libc is used.
2794 (MULTILIB_DEFAULTS): Always set default to 64 bit compilation.
2795 * config/i386/t-linux64: Implement full multilib support. Patch
2796 originally done by Andreas Jaeger and Jakub Jelinek.
2798 2002-05-27 Roger Sayle <roger@eyesopen.com>
2800 * c-common.c: Add support for __attribute__((nothrow)) to specify
2801 that a function cannot throw an exception (using TREE_NOTHROW).
2802 (handle_nothrow_attribute): New function to process this attribute.
2804 * doc/extend.texi: Document the new nothrow function attribute.
2806 2002-05-27 H.J. Lu (hjl@gnu.org)
2808 * cppexp.c (num_trim): Use 1UL instead of 1 for long int.
2809 (num_positive): Likewise.
2810 (num_div_op): Likewise.
2812 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
2814 * c-common.c (c_common_init): Always use intmax_t.
2816 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
2818 * c-common.c (c_common_init): Use intmax_t for now.
2820 2002-05-24 Andrew Haley <aph@redhat.com>
2822 * fold-const.c (fold): Don't convert (T)(x & c) into (T)x & (T)c
2823 if T is a boolean type.
2825 2002-05-27 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2827 * basic-block.h (last_basic_block): Defined as synonym for
2829 * cfganal.c (mark_dfs_back_edges, flow_reverse_top_sort_order_compute,
2830 flow_depth_first_order_compute, flow_preorder_transversal_compute,
2831 flow_dfs_compute_reverse_init): Replaced relevant occurences of
2832 n_basic_blocks with last_basic_block.
2833 * cfgbuild.c (make_edges): Likewise.
2834 * cfgloop.c (flow_loop_scan, flow_loops_find): Likewise.
2835 * cfgrtl.c (verify_flow_info, purge_all_dead_edges): Likewise.
2836 * combine.c (combine_instructions): Likewise.
2837 * df.c (df_alloc, df_analyse_1, df_analyse, iterative_dataflow_sbitmap,
2838 iterative_dataflow_bitmap): Likewise.
2839 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
2840 calc_idoms, idoms_to_doms): Likewise.
2841 * flow.c (update_life_info_in_dirty_blocks, free_basic_block_vars):
2843 * gcse.c (gcse_main, alloc_gcse_mem, compute_local_properties,
2844 compute_hash_table, expr_reaches_here_p, one_classic_gcse_pass,
2845 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p,
2846 one_pre_gcse_pass, compute_transpout, delete_null_pointer_checks_1,
2847 delete_null_pointer_checks, compute_code_hoist_vbeinout,
2848 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
2849 compute_store_table, build_store_vectors): Likewise.
2850 * haifa-sched.c (sched_init): Likewise.
2851 * ifcvt.c (if_convert): Likewise.
2852 * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
2853 pre_edge_lcm, compute_available, compute_nearerout,
2854 compute_rev_insert_delete, pre_edge_rev_lcm, optimize_mode_switching):
2856 * predict.c (estimate_probability, process_note_prediction,
2857 note_prediction_to_br_prob): Likewise.
2858 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX): Likewise.
2859 * recog.c (split_all_insns, peephole2_optimize): Likewise.
2860 * regrename.c (copyprop_hardreg_forward): Likewise.
2861 * resource.c (init_resource_info): Likewise.
2862 * sched-rgn.c (build_control_flow, find_rgns, compute_trg_info,
2863 init_regions, schedule_insns): Likewise.
2864 * ssa-ccp.c (ssa_const_prop): Likewise.
2865 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
2866 * ssa.c (compute_dominance_frontiers,
2867 compute_iterated_dominance_frontiers, convert_to_ssa): Likewise.
2869 * df.c (df_refs_unlink): Fix FOR_EACH_BB usage (in #if 0'ed code)
2870 * gcse.c (alloc_rd_mem, alloc_avail_expr_mem): Use n_blocks for vector
2873 Mon May 27 14:28:12 CEST 2002 Jan Hubicka <jh@suse.cz>
2875 * basic-block.h (can_hoist_p, hoist_insn_after, hoist_insn_to_edge):
2877 * rtlanal.c (hoist_test_store, can_hoist_insn_p, hoist_update_store,
2878 hoist_insn_after, hoist_insn_to_edge): New.
2880 Mon May 27 12:14:02 CEST 2002 Jan Hubicka <jh@suse.cz>
2882 * basic-block.h (PEOP_SCAN_DEAD_STORES): New.
2883 (PROP_FINAL): Include.
2884 * flow.c (life_analysis, update_life_info,
2885 init_propagate_block_info, mark_set_1, mark_used_rgs):
2886 Support SCAN_DEAD_STORE.
2888 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
2890 * c-common.c (c_common_init): Set CPP arithmetic precision.
2891 * cppexp.c (cpp_num_part): Move typedef ...
2892 * cpphash.h: ...here; make unsigned HOST_WIDE_INT.
2893 * cppinit.c (cpp_create_reader): Default to host long arithmetic.
2894 (sanity_checks): Update.
2896 2002-05-26 Geoffrey Keating <geoffk@redhat.com>
2898 * Makefile.in (INSTALL_HEADERS): Add 'install-mkheaders'.
2899 (mkheaders): New rule.
2900 (install-mkheaders): New rule.
2901 * configure.in (all_outputs): Add mkheaders.
2902 * configure: Regenerate.
2903 * mkheaders.in: New file.
2905 2002-05-26 Jakub Jelinek <jakub@redhat.com>
2907 * cse.c (fold_rtx): Don't optimize if SUBREG changes mode class.
2909 2002-05-26 Andreas Jaeger <aj@suse.de>
2911 * cfg.c (dump_flow_info): Remove extra argument to fprintf.
2913 2002-05-26 Neil Booth <neil@daikokuya.demon.co.uk>
2915 * cppexp.c (possible_sum_sign, integer_overflow, left_shift,
2916 right_shift): Remove.
2917 (cpp_num, cpp_num_part, PART_PRECISION, HALF_MASK, LOW_PART,
2919 (struct op): Use cpp_num.
2920 (num_zerop, num_eq, num_positive, num_greater_freq, num_trim,
2921 num_part_mul, num_unary_op, num_binary_op, num_negate,
2922 num_bitwise_op, num_inequality_op, num_equality_op, num_mul,
2923 num_div_op, num_lshift, num_rshift, append_digit): New.
2924 (interpret_number, parse_defined, eval_token, reduce): Update
2925 for two-integer arithmetic.
2926 (binary_handler): New typedef.
2928 (COMPARE, EQUALITY, BITWISE, MINMAX, UNARY, SHIFT): Delete.
2929 (_cpp_parse_expr, reduce): Update to handle two-integers.
2930 * cpplib.c (_cpp_test_assertion): Back up on CPP_EOF.
2932 2002-05-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
2934 * config/avr/avr-protos.h (avr_out_sbxx_branch): Declare.
2935 * config/avr/avr.c (jump_over_one_insn_p): Take length of the
2936 branch insn into account, do not assume 1.
2937 (avr_out_sbxx_branch): New function. Optimize cases of skipping
2938 over single word insn. Handle upper half of I/O space too.
2939 * config/avr/avr.md (*sbrx_branch): Use it.
2940 (*sbrx_and_branchhi, *sbrx_and_branchsi): Likewise.
2941 (*sbix_branch, *sbix_branch_bit7): Likewise.
2942 (*sbix_branch_tmp, *sbix_branch_tmp_bit7): New.
2943 Use RTL peepholes to optimize register operand sign tests.
2945 2002-05-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
2947 * config/avr/avr.c (avr_asm_only_p): New variable.
2948 (avr_override_options): Set it here if AVR1.
2949 (asm_file_start): Test it here, report an error if set.
2951 2002-05-26 Kazu Hirata <kazu@cs.umass.edu>
2953 * alias.c: Fix formatting.
2954 * attribs.c: Likewise.
2955 * bb-reorder.c: Likewise.
2956 * bitmap.c: Likewise.
2957 * bitmap.h: Likewise.
2958 * builtins.c: Likewise.
2960 Sun May 26 14:00:44 CEST 2002 Jan Hubicka <jh@suse.cz>
2962 * reload.c (find_valid_class): Accept new argument DEST,
2963 choose class accordingly.
2964 (push_reload): Update callers.
2966 2002-05-26 Andreas Jaeger <aj@suse.de>
2968 * combine.c (combine_instructions): Do not indent #if for
2971 2002-05-25 Richard Henderson <rth@redhat.com>
2973 * c-pragma.c (apply_pragma_weak): Convert value identifier to
2974 string for decl_attributes.
2975 (handle_pragma_weak): Call assemble_alias if we're modifying
2978 2002-05-25 Richard Henderson <rth@redhat.com>
2981 * config/sparc/sparc.c (sparc_output_mi_thunk): New implementation
2982 using rtl instead of fprintf.
2983 * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Use it.
2984 * config/sparc/sparc-protos.h: Update.
2986 2002-05-25 Neil Booth <neil@daikokuya.demon.co.uk>
2988 * Makefile.in (C_COMMON_H): Fix.
2989 Update other targets.
2990 * c-common.c: Don't include c-lex.h.
2991 (builtin_define_with_value): Make static and prototype.
2992 (builtin_define_std): Move from c-lex.h.
2993 * c-common.h (init_c_lex): Move from c-lex.h.
2994 * c-decl.c: Don't include c-lex.h.
2995 (make_pointer_declarator): Move from c-parse.in.
2996 * c-lex.c: Don't include c-lex.h.
2998 * c-parse.in: Don't include c-lex.h; include c-pragma.h.
2999 (make_pointer_declarator): Move to c-decl.c.
3000 * c-pragma.c: Don't include c-lex.h.
3001 * c-pragma.h (yydebug, YYDEBUG, parse_in, c_lex): Move from c-lex.h.
3002 * c-tree.h (make_pointer_declarator): New.
3004 * passes.texi, tm.texi: Update.
3006 * Make-lang.in: Update and correct.
3007 * objc-act.c: Don't include c-lex.h or cpplib.h.
3009 * treetree.c: Don't include c-lex.h.
3011 * darwin-c.c: Don't include c-lex.h.
3012 * c4x/c4x-c.c: Don't include c-lex.h.
3013 * c4x/t-c4x: Update.
3014 * i370/i370-c.c: Don't include c-lex.h.
3015 * i370/t-i370: Update.
3016 * i960/i960-c.c: Don't include c-lex.h.
3017 * i960/i960.c: Don't include cpplib.h, c-lex.h or c-pragma.h.
3018 * i960/t-960bare: Update.
3019 * i960/t-vxworks: Update.
3020 * rs6000/rs6000-c.c: Don't include c-lex.h; include c-pragma.h.
3021 * rs6000/t-darwin: Update.
3022 * rs6000/t-rs6000-c-rule: Update.
3023 * v850/v850-c.c: Don't include c-lex.h.
3024 * v850/v850.c: Don't include c-lex.h or cpplib.h.
3027 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
3029 * tree.def: Fix typos.
3030 * doc/install.texi: Likewise.
3032 2002-05-25 Richard Henderson <rth@redhat.com>
3034 * configure.in (HAVE_AS_TLS): Add ia64 test.
3035 * configure: Rebuild.
3036 * config/ia64/ia64.c (ia64_tls_size_string, ia64_tls_size): New.
3037 (override_options): Set it.
3038 (TARGET_HAVE_TLS): New.
3039 (sdata_symbolic_operand): Look for 's'.
3040 (tls_symbolic_operand): New.
3041 (ia64_expand_load_address): Abort for tls symbols.
3042 (gen_tls_get_addr): New.
3043 (gen_thread_pointer): New.
3044 (ia64_expand_move): Split out from movdi. Handle tls symbols.
3045 (rtx_needs_barrier): Add new unspecs.
3046 (ia64_encode_section_info): Handle tls symbols.
3047 (ia64_strip_name_encoding): Strip two encoding chars.
3048 * config/ia64/ia64.h (ia64_tls_size, ia64_tls_size_string): New.
3049 (TARGET_TLS14, TARGET_TLS22, TARGET_TLS64): New.
3050 (TARGET_OPTIONS): Add tls-size.
3051 (ENCODE_SECTION_INFO_CHAR): Rename from SDATA_NAME_FLAG_CHAR.
3052 * config/ia64/ia64.md (UNSPEC_LTOFF_DTPMOD, UNSPEC_LTOFF_DTPREL,
3053 UNSPEC_DTPREL, UNSPEC_LTOFF_TPREL, UNSPEC_TPREL, UNSPEC_LD_BASE): New.
3054 (movqi, movhi, movsi, movdi, movti): Use ia64_expand_move.
3055 (movsf, movdf): Likewise.
3056 (movdi_symbolic): Use match_scratch. Don't split if we won't
3057 have a scratch availiable.
3058 (load_ltoff_dtpmod, load_dtprel, load_dtprel64, load_dtprel22,
3059 add_dtprel, add_dtprel14, add_dtprel22, load_ltoff_tprel, load_tprel,
3060 load_tprel64, load_tprel22, add_tprel, add_tprel14, add_tprel22): New.
3061 * config/ia64/ia64-protos.h: Update.
3062 * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
3063 sdata_symbolic_operand.
3064 (ASM_OUTPUT_LABELREF): Strip two characters.
3066 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
3068 * combine.c (simplify_set): Remove an unnecessary subreg.
3070 2002-05-25 Marek Michalkiewicz <marekm@amelek.gda.pl>
3072 * config/avr/avr.c (avr_handle_progmem_attribute): Handle TYPE_DECL.
3074 * config/avr/avr.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_BSS): New.
3076 2002-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
3078 * toplev.c (output_clean_symbol_name): Fix another thinko. Gosh.
3080 2002-05-25 Roger Sayle <roger@eyesopen.com>
3082 * simplify-rtx.c (simplify_gen_relational): Simplify the RTX
3083 (cond (compare x y) 0) into the equivalent (cond x y).
3085 2002-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
3087 * toplev.c (output_clean_symbol_name): Use xstrdup. Fix thinko.
3089 2002-05-24 Zack Weinberg <zack@codesourcery.com>
3091 * config.gcc: Remove all stanzas for previously obsoleted
3092 systems. Where necessary, add explicit error stanzas to
3093 prevent removed systems from being misidentified as something
3094 else. Begin a fresh obsoletions list, with the systems that
3095 were reprieved last round.
3096 * doc/install.texi: Remove all mention of dead targets.
3097 * fixinc/mkfixinc.sh: Likewise.
3099 * config/arm/arm.h: Bit 31 of target_flags is no longer
3102 * config/1750a/1750a-protos.h, config/1750a/1750a.c,
3103 config/1750a/1750a.h, config/1750a/1750a.md, config/1750a/ms1750.inc,
3104 config/a29k/a29k-protos.h, config/a29k/a29k.c, config/a29k/a29k.h,
3105 config/a29k/a29k.md, config/a29k/rtems.h, config/a29k/t-a29kbare,
3106 config/a29k/t-vx29k, config/a29k/unix.h, config/a29k/vx29k.h,
3107 config/alpha/osf12.h, config/alpha/osf2or3.h,
3108 config/arm/arm-wince-pe.h, config/arm/arm.h, config/arm/riscix.h,
3109 config/arm/riscix1-1.h, config/arm/rix-gas.h, config/arm/t-riscix,
3110 config/clipper/clipper-protos.h, config/clipper/clipper.c,
3111 config/clipper/clipper.h, config/clipper/clipper.md,
3112 config/clipper/clix.h, config/convex/convex-protos.h,
3113 config/convex/convex.c, config/convex/convex.h,
3114 config/convex/convex.md, config/convex/fixinc.convex,
3115 config/convex/proto.h, config/elxsi/elxsi-protos.h,
3116 config/elxsi/elxsi.c, config/elxsi/elxsi.h, config/elxsi/elxsi.md,
3117 config/i386/386bsd.h, config/i386/aix386.h, config/i386/aix386ng.h,
3118 config/i386/bsd386.h, config/i386/dgux.h, config/i386/djgpp-rtems.h,
3119 config/i386/isc.h, config/i386/iscdbx.h, config/i386/linux-oldld.h,
3120 config/i386/next.h, config/i386/osf1-ci.asm, config/i386/osf1-cn.asm,
3121 config/i386/osf1elf.h, config/i386/osf1elfgdb.h, config/i386/osfelf.h,
3122 config/i386/osfrose.h, config/i386/rtems.h, config/i386/seq-gas.h,
3123 config/i386/seq-sysv3.h, config/i386/seq2-sysv3.h,
3124 config/i386/sequent.h, config/i386/sun.h, config/i386/sun386.h,
3125 config/i386/t-dgux, config/i386/t-next, config/i386/t-osf,
3126 config/i386/t-osf1elf, config/i860/bsd-gas.h, config/i860/bsd.h,
3127 config/i860/fx2800.h, config/i860/i860-protos.h, config/i860/i860.c,
3128 config/i860/i860.h, config/i860/i860.md, config/i860/mach.h,
3129 config/i860/paragon.h, config/i860/sysv3.h, config/i860/sysv4.h,
3130 config/i860/t-fx2800, config/i860/varargs.asm, config/m68k/a-ux.h,
3131 config/m68k/altos3068.h, config/m68k/apollo68.h,
3132 config/m68k/aux-crt1.c, config/m68k/aux-crt2.asm,
3133 config/m68k/aux-crtn.asm, config/m68k/aux-exit.c,
3134 config/m68k/aux-low.gld, config/m68k/aux-mcount.c,
3135 config/m68k/auxas.h, config/m68k/auxgas.h, config/m68k/auxgld.h,
3136 config/m68k/auxld.h, config/m68k/ctix.h, config/m68k/dpx2.h,
3137 config/m68k/dpx2.ifile, config/m68k/dpx2cdbx.h, config/m68k/dpx2g.h,
3138 config/m68k/isi-nfp.h, config/m68k/isi.h, config/m68k/lynx-ng.h,
3139 config/m68k/lynx.h, config/m68k/math-3300.h, config/m68k/news.h,
3140 config/m68k/news3.h, config/m68k/news3gas.h, config/m68k/newsgas.h,
3141 config/m68k/next.h, config/m68k/next21.h, config/m68k/rtems.h,
3142 config/m68k/t-aux, config/m68k/t-lynx, config/m68k/t-next,
3143 config/m68k/x-next, config/m88k/dgux.h, config/m88k/dgux.ld,
3144 config/m88k/dguxbcs.h, config/m88k/dolph.h, config/m88k/dolphin.ld,
3145 config/m88k/luna.h, config/m88k/m88k-coff.h, config/m88k/sysv3.h,
3146 config/m88k/t-bug, config/m88k/t-dgux, config/m88k/t-dgux-gas,
3147 config/m88k/t-dguxbcs, config/m88k/t-dolph, config/m88k/t-m88k-gas,
3148 config/m88k/t-tekXD88, config/m88k/tekXD88.h, config/m88k/tekXD88.ld,
3149 config/mips/bsd-4.h, config/mips/bsd-5.h, config/mips/dec-bsd.h,
3150 config/mips/dec-osf1.h, config/mips/elflorion.h,
3151 config/mips/iris4loser.h, config/mips/mips-5.h, config/mips/news4.h,
3152 config/mips/news5.h, config/mips/nws3250v4.h, config/mips/osfrose.h,
3153 config/mips/svr3-4.h, config/mips/svr3-5.h, config/mips/svr4-4.h,
3154 config/mips/svr4-5.h, config/mips/svr4-t.h, config/mips/t-bsd,
3155 config/mips/t-bsd-gas, config/mips/t-svr3, config/mips/t-svr3-gas,
3156 config/mips/t-svr4, config/mips/t-svr4-gas, config/mips/t-ultrix,
3157 config/mips/ultrix.h, config/nextstep-protos.h, config/nextstep.c,
3158 config/nextstep.h, config/nextstep21.h, config/ns32k/encore.h,
3159 config/ns32k/merlin.h, config/ns32k/pc532-mach.h,
3160 config/ns32k/pc532-min.h, config/ns32k/pc532.h,
3161 config/ns32k/sequent.h, config/ns32k/tek6000.h,
3162 config/ns32k/tek6100.h, config/ns32k/tek6200.h, config/pj/lib1funcs.S,
3163 config/pj/linux.h, config/pj/pj-protos.h, config/pj/pj.c,
3164 config/pj/pj.h, config/pj/pj.md, config/pj/pjl.h, config/pj/t-pj,
3165 config/sparc/rtems.h, config/we32k/we32k-protos.h,
3166 config/we32k/we32k.c, config/we32k/we32k.h, config/we32k/we32k.md:
3169 2002-05-24 Richard Henderson <rth@redhat.com>
3171 * flags.h (TLS_MODEL_GLOBAL_DYNAMIC): Set to 1.
3172 * toplev.c (flag_tls_default) Set to TLS_MODEL_GLOBAL_DYNAMIC.
3173 * config/i386/i386.c (tls_model_chars): Add leading space.
3174 (tls_symbolic_operand): Don't bias by 1.
3175 (legitimize_address): Don't unbias by 1.
3177 2002-05-24 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
3179 * lcm.c (optimize_mode_switching): Change bb used as indices
3182 2002-05-24 Richard Henderson <rth@redhat.com>
3184 * config/ia64/ia64.c (ia64_reorg): Use update_life_info instead
3185 of update_life_info_in_dirty_blocks.
3187 2002-05-24 Jakub Jelinek <jakub@redhat.com>
3190 * final.c (get_mem_expr_from_op): Return 0 if op is NULL.
3192 2002-05-24 Neil Booth <neil@daikokuya.demon.co.uk>
3194 PR preprocessor/6780
3195 * cppmacro.c (enter_macro_context): Clear state.angled_headers.
3197 2002-05-24 Jim Blandy <jimb@redhat.com>
3199 * dwarf2out.c (dwarf2out_finish): Don't forget to emit a final
3200 entry with a type code of zero, marking the end of the compilation
3203 2002-05-24 Richard Henderson <rth@redhat.com>
3205 * varasm.c (asm_output_bss): Always output one byte.
3206 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
3208 2002-05-24 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
3210 * tree.c (decl_type_context): Return NULL_TREE if decl's context is a
3213 2002-05-24 Andreas Jaeger <aj@suse.de>
3215 * ggc-page.c (alloc_page): Cast variables of type size_t to
3216 unsigned long, adjust printf format string.
3217 (ggc_alloc): Likewise.
3218 (ggc_print_statistics): Likewise.
3219 (ggc_print_statistics): Correct printf format string for SCALE to
3222 2002-05-24 Danny Smith <dannysmith@users.sourceforge.net>
3224 * config/i386/mingw32.h (CPP_SPEC): Remove -remap.
3226 2002-05-23 Gabriel Dos Reis <gdr@codesourcery.com>
3227 Zack Weinberg <zack@codesourcery.com>
3229 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Properly output
3231 * dwarf2out.c (lookup_filename): Properly quote filename in .file
3232 directive in assembly file.
3233 * config/m68k/dpx2.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
3234 * config/m88k/m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
3235 * config/pj/pj.h (ASM_FILE_START): Likewise.
3236 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
3237 * config/avr/avr.c (asm_file_end): Likewise.
3238 * toplev.c (output_quoted_string): Handle possibly signed plain
3240 * toplev.h (output_clean_symbol_name): Declare
3241 * toplev.c (output_clean_symbol_name): Define.
3242 * config/alpha/alpha.c (unicosmk_output_module_name): Use it.
3243 * config/1750a/1750a.h (ASM_FILE_START): Likewise.
3245 2002-05-24 Alan Modra <amodra@bigpond.net.au>
3247 * config/rs6000/rs6000.c (output_toc): Mask longs to 32 bits.
3249 2002-05-23 Vladimir Makarov <vmakarov@redhat.com>
3251 * genautomata.c (reserv_sets_hash_value): Use shift equal to 3/4
3252 of size of unsigned.
3254 2002-05-23 Richard Henderson <rth@redhat.com>
3256 * configure.in (HAVE_AS_TLS): New test.
3257 * config.in, configure: Rebuild.
3258 * config/i386/i386.c (TARGET_HAVE_TLS): Set if HAVE_AS_TLS.
3259 (ix86_tls_dialect_string, ix86_tls_dialect): New.
3260 (override_options): Set it.
3261 (tls_model_chars, tls_symbolic_operand): New.
3262 (tls_symbolic_operand_1, global_dynamic_symbolic_operand): New.
3263 (local_dynamic_symbolic_operand, initial_exec_symbolic_operand): New.
3264 (local_exec_symbolic_operand): New.
3265 (get_pic_label_name): Merge into output_set_got.
3266 (ix86_asm_file_end): Emit pic_label_name if defined.
3267 (legitimate_constant_p, constant_address_p): New.
3268 (legitimate_pic_operand_p): New.
3269 (legitimate_pic_address_disp_p): Handle GOTTPOFF, NTPOFF, DTPOFF.
3270 (legitimate_address_p): Likewise.
3271 (ix86_encode_section_info): Rename from i386_; handle tls decls.
3272 (ix86_strip_name_encoding): New.
3273 (get_thread_pointer): New.
3274 (legitimize_address): Handle tls symbols.
3275 (output_pic_addr_const): Handle GOTTPOFF, TPOFF, NTPOFF, DTPOFF.
3277 (struct machine_function): Add some_ld_name.
3278 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Set it.
3279 (print_operand) [&]: Use it. Handle UNSPEC_TP.
3280 (output_addr_const_extra): New.
3281 (maybe_get_pool_constant): New.
3282 (ix86_split_to_parts): Use it.
3283 (ix86_expand_move): Handle tls symbols.
3284 (ix86_tls_get_addr): New.
3285 * config/i386/i386.h (TARGET_GNU_TLS, TARGET_SUN_TLS): New.
3286 (TARGET_OPTIONS): Add tls-dialect.
3287 (CONSTANT_ADDRESS_P): Use new out-of-line function.
3288 (LEGITIMATE_CONSTANT_P): Likewise.
3289 (LEGITIMATE_PIC_OPERAND_P): Likewise.
3290 (TARGET_STRIP_NAME_ENCODING): New.
3291 (ASM_OUTPUT_LABELREF): New.
3292 (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
3293 (OUTPUT_ADDR_CONST_EXTRA): New.
3294 (PREDICATE_CODES): Update.
3295 (ix86_tls_dialect, ix86_tls_dialect_string): New.
3296 * config/i386/i386.md: Regroup and renumber unspec constants.
3297 (tls_global_dynamic_gnu, tls_global_dynamic_sun): New.
3298 (tls_local_dynamic_base_gnu, tls_local_dynamic_base_sun): New.
3299 (tls_global_dynamic, tls_local_dynamic_base): New.
3300 (tls_local_dynamic_once): New.
3301 * config/i386/i386-protos.h: Update.
3303 2002-05-23 Richard Henderson <rth@redhat.com>
3305 * genemit.c (gen_insn): Print file:lineno comment before function.
3307 * gensupport.c (struct queue_elem): Add filename member.
3308 (queue_pattern): Initialize it; update all callers.
3309 (process_include): Don't free filename.
3310 (read_md_rtx): Set read_rtx_filename.
3312 2002-05-23 Hans Boehm <Hans_Boehm@hp.com>
3314 * config/ia64/linux.h (IA64_GATE_AREA_END): Adjust for 64K pages.
3316 2002-05-23 Richard Henderson <rth@redhat.com>
3318 * config/i386/i386.c (output_set_got): Fix typo in pic no-deep case.
3320 2002-05-23 Richard Henderson <rth@redhat.com>
3322 * doc/extend.texi (C++98 Thread-Local Edits): Update with
3323 commentary from Mark.
3325 2002-05-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3327 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1):
3328 Use FOR_EACH_BB macros to iterate over basic block chain.
3329 * cfg.c (clear_edges, clear_bb_flags, dump_flow_info,
3330 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges):
3332 * cfganal.c (set_edge_can_fallthru_flag, flow_call_edges_add,
3333 find_unreachable_blocks, create_edge_list, verify_edge_list,
3334 remove_fake_edges, add_noreturn_fake_exit_edges,
3335 flow_preorder_transversal_compute, flow_dfs_compute_reverse_execute):
3337 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
3338 find_sub_basic_blocks): Likewise.
3339 * cfgcleanup.c (try_optimize_cfg, delete_unreachable_blocks):
3341 * cfglayout.c (record_effective_endpoints, cleanup_unconditional_jumps):
3343 * cfgloop.c (flow_loops_cfg_dump, flow_loops_find):
3345 * cfgrtl.c (compute_bb_for_insn, tidy_fallthru_edges,
3346 commit_edge_insertions, commit_edge_insertions_watch_calls,
3347 print_rtl_with_bb, verify_flow_info, purge_all_dead_edges): Likewise.
3348 * combine.c (combine_instructions, reg_dead_at_p): Likewise.
3349 * conflict.c (conflict_graph_compute): Likewise.
3350 * df.c (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
3351 df_modified_p, df_refs_unlink, df_dump): Likewise.
3352 * dominance.c (calc_dfs_tree, calculate_dominance_info): Likewise.
3353 * final.c (compute_alignments): Likewise.
3354 * flow.c (update_life_info, update_life_info_in_dirty_blocks,
3355 delete_noop_moves, calculate_global_regs_live, allocate_bb_life_data,
3356 count_or_remove_death_notes): Likewise.
3357 * gcse.c (oprs_unchanged_p, record_last_reg_set_info,
3358 compute_hash_table, compute_kill_rd, compute_rd, compute_ae_kill,
3359 classic_gcse, compute_transp, cprop, compute_pre_data,
3360 compute_transpout, invalidate_nonnull_info,
3361 delete_null_pointer_checks_1, delete_null_pointer_checks,
3362 compute_code_hoist_vbeinout, hoist_code, compute_ld_motion_mems,
3363 compute_store_table, build_store_vectors, store_motion): Likewise.
3364 * global.c (global_conflicts, mark_elimination): Likewise.
3365 * graph.c (print_rtl_graph_with_bb): Likewise.
3366 * haifa-sched.c (sched_init): Likewise.
3367 * ifcvt.c (if_convert): Likewise.
3368 * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
3369 compute_available, compute_nearerout, compute_rev_insert_delete,
3370 optimize_mode_switching): Likewise.
3371 * local-alloc.c (local_alloc, update_equiv_regs): Likewise.
3372 * predict.c (estimate_probability, note_prediction_to_br_prob,
3373 propagate_freq, counts_to_freqs, expensive_function_p,
3374 estimate_bb_frequencies): Likewise.
3375 * profile.c (instrument_edges, get_exec_counts,
3376 compute_branch_probabilities, compute_checksum, branch_prob,
3377 find_spanning_tree): Likewise.
3378 * recog.c (split_all_insns, peephole2_optimize): Likewise.
3379 * reg-stack.c (reg_to_stack, convert_regs_entry, convert_regs):
3381 * regclass.c (scan_one_insn, regclass): Likewise.
3382 * regmove.c (mark_flags_life_zones, regmove_optimize,
3383 record_stack_memrefs): Likewise.
3384 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Likewise.
3385 * reload1.c (reload, reload_combine, fixup_abnormal_edges): Likewise.
3386 * resource.c (find_basic_block): Likewise.
3387 * sched-ebb.c (schedule_ebbs): Likewise.
3388 * sched-rgn.c (is_cfg_nonregular, build_control_flow,
3389 find_single_block_region, find_rgns, schedule_insns)
3390 * sibcall.c (optimize_sibling_and_tail_recursive_call)
3391 * ssa-ccp.c (optimize_unexecutable_edges,
3392 ssa_ccp_df_delete_unreachable_insns): Likewise.
3393 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
3394 * ssa.c (find_evaluations, compute_dominance_frontiers_1,
3395 rename_block, convert_to_ssa, compute_conservative_reg_partition,
3396 compute_coalesced_reg_partition, rename_equivalent_regs,
3397 convert_from_ssa): Likewise.
3398 * config/ia64/ia64.c (emit_predicate_relation_info, process_epilogue,
3399 process_for_unwind_directive): Likewise.
3401 * df.c (FOR_ALL_BBS): Removed.
3402 * gcse.c (struct null_pointer_info): Type of current_block field
3404 (struct reg_avail_info): Type of last_bb field changed.
3405 * config/ia64/ia64.c (block_num): Removed.
3406 (need_copy_state): Type changed.
3409 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
3411 * cppinit.c (mark_named_operators): Split out from init_builtins.
3412 (cpp_finish_options): Call it from here instead.
3414 2002-05-23 Jason Thorpe <thorpej@wasabisystems.com>
3416 * builtin-attrs.def: Update copyright years.
3417 (ATTR_NONNULL): New attribute identifier.
3418 (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_3): New
3419 attribute tree lists.
3420 (DEF_FORMAT_ATTRIBUTE): Chain a nonnull attribute for the
3422 (ATTR_FORMAT_ARG_1, ATTR_FORMAT_ARG_2): Use...
3423 (DEF_FORMAT_ARG_ATTRIBUTE): ...this to generate format_arg
3424 attribute lists. Chain the appropriate nonnull attribute.
3425 * c-format.c (check_format_arg): Remove null format string
3427 * testsuite/gcc.dg/format/null-1.c: New test.
3429 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3431 * Makefile.in (ADAC): Define.
3433 (.SUFFIXES): Move before language makefile fragments.
3434 (STAGE2_FLAGS_TO_PASS): Use stage CC as ADAC.
3436 2002-05-23 Mark Mitchell <mark@codesourcery.com>
3438 * varasm.c (make_decl_rtl): Don't allow weak variables to be
3441 Thu May 23 19:43:41 CEST 2002 Jan Hubicka <jh@suse.cz>
3443 * cfg.c (dump_flow_info): Print results of
3444 maybe_hot/probably_never_executed predicates.
3445 * toplev.c (open_dump_file): Print function frequency.
3447 2002-05-23 David S. Miller <davem@redhat.com>
3449 * cse.c (approx_reg_cost_1, approx_reg_cost): Recode to not use
3452 2002-05-23 Jason Thorpe <thorpej@wasabisystems.com>
3454 * c-common.c (warn_nonnull): Declare.
3455 (c_common_attribute_table): Add "nonnull" attribute.
3456 (handle_nonnull_attribute, check_function_nonnull, nonnull_check_p,
3457 check_nonnull_arg, get_nonnull_operand, check_function_arguments,
3458 check_function_arguments_recurse): New functions.
3459 * c-common.h (warn_nonnull): Declare extern.
3460 (check_function_arguments, check_function_arguments_recurse): New
3462 * c-decl.c (c_decode_option): Add -Wnonnull option.
3463 * c-format.c (set_Wformat): Set warn_nonnull if enabling
3465 (format_check_context): New structure.
3466 (check_format_info_recurse): Remove recursion and rename to...
3467 (check_format_arg): ...this. Update comment.
3468 (check_format_info): Use check_function_arguments_recurse.
3469 * c-typeck.c (build_function_call): Call check_function_arguments
3470 instead of check_function_format.
3471 * doc/extend.texi: Document "nonnull" attribute.
3472 * doc/invoke.texi: Docuemnt -Wnonnull option.
3473 * testsuite/gcc.dg/nonnull-1.c: New test.
3474 * testsuite/gcc.dg/nonnull-2.c: New test.
3476 2002-05-23 David S. Miller <davem@redhat.com>
3478 * basic-block.h (CLEANUP_NO_INSN_DEL): Define it.
3479 * cfgcleanup.c (cleanup_cfg): If it is set do not
3480 attempt to delete trivially dead insns.
3481 * except.c (finish_eh_generation): Pass it to cleanup_cfg.
3482 * toplev.c (rest_of_compilation): Document non-trivial aspect
3483 the RTL before optimize_save_area_alloca is run.
3485 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
3487 * c-lex.c (indent_level): Remove.
3488 (cb_file_change, c_lex): Remove indent level handling.
3489 * c-lex.h (indent_level): Remove.
3490 * input.h (struct file_stack): Remove indent_level.
3491 * toplev.c (push_srcloc): Remove indent_level handling.
3493 2002-05-23 Jakub Jelinek <jakub@redhat.com>
3496 * config/i386/i386.md (sse_movdfcc, sse_movdfcc_eq): Use Y instead
3497 of x in constraints for clarity.
3498 (sse_mov?fcc split): abort if op2 == op3.
3499 (sse_movsfcc_const0_1, sse_movsfcc_const0_2, sse_movsfcc_const0_3,
3500 sse_movsfcc_const0_4): Add earlyclobber.
3501 (sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
3502 sse_movdfcc_const0_4): Likewise. Use DFmode, not SFmode.
3503 Use Y instead of x in constraints.
3505 2002-05-23 Richard Henderson <rth@redhat.com>
3507 * doc/extend.texi (C99 Thread-Local Edits): New subsection.
3508 (C++98 Thread-Local Edits): New subsection.
3510 * config/i386/i386.c, config/i386/i386.h: Tidy comments and whitespace.
3511 (ix86_arch): Set type to enum processor_type.
3513 * config/i386/i386.md (movsi_1, movdi_1_rex64): Use
3514 LEGITIMATE_PIC_OPERAND_P not SYMBOLIC_CONST.
3516 2002-05-23 Jakub Jelinek <jakub@redhat.com>
3518 * configure.in: Fix as version test for binutils 2.12.1 releases
3520 * configure: Rebuilt.
3522 2002-05-23 Richard Henderson <rth@redhat.com>
3524 * config/i386/i386.c (get_pic_label_name): New.
3525 (load_pic_register): Remove.
3526 (output_set_got): New.
3527 (ix86_expand_prologue): Use gen_set_got; mark insn REG_MAYBE_DEAD.
3528 * config/i386/i386.md (UNSPEC_SET_GOT): New.
3529 (UNSPECV_PROLOGUE_SET_GOT, UNSPECV_PROLOGUE_GET_PC): Remove.
3530 (prologue_set_got, prologue_get_pc): Remove.
3531 (set_got, set_got_nopic, set_got_deep, set_got_nodeep): New.
3532 (builtin_setjmp_receiver): Use gen_set_got.
3533 * config/i386/i386-protos.h: Update.
3535 Thu May 23 09:22:23 CEST 2002 Jan Hubicka <jh@suse.cz>
3537 * gcse.c (hash_expr): Do not use alias set for hashing.
3539 2002-05-22 Kevin Buettner <kevinb@redhat.com>
3541 * dbxout.c (dbxout_class_name_qualifiers): New function.
3542 (dbxout_symbol): Output class/struct qualifiers for a .stabs entry.
3544 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
3546 * cpperror.c (_cpp_begin_message): No special casing
3548 * cppinit.c (sanity_checks): s/DL_FATAL/DL_ICE/.
3549 (output_deps, cpp_handle_option, cpp_post_options): Use DL_ERROR.
3550 * cpplib.c (do_include_common): Use DL_ERROR.
3551 * cpplib.h (CPP_FATAL_LIMIT, CPP_FATAL_ERRORS, DL_FATAL): Remove.
3553 * fix-header.c (read_scan_file): Update.
3555 2002-05-22 Richard Henderson <rth@redhat.com>
3557 * config/i386/i386.c (ix86_expand_call): New function, extracted
3558 from md call patterns. Add pic_offset_table_rtx to
3559 CALL_INSN_FUNCTION_USAGE when needed.
3560 * config/i386/i386.md (call_pop, call): Use ix86_expand_call.
3561 (call_value_pop, call_value, untyped_call): Likewise.
3562 (call_exp, call_value_exp): Remove.
3563 * config/i386/i386-protos.h: Update.
3565 2002-05-22 Richard Henderson <rth@redhat.com>
3567 * varasm.c (default_section_type_flags): Check for VAR_DECL
3568 before using DECL_THREAD_LOCAL.
3570 2002-05-22 David Edelsohn <edelsohn@gnu.org>
3572 * config/rs6000/aix43.h (LINK_SPEC): Add PE initializer.
3573 (STARTFILE_SPEC): Delete PE crt0.o.
3574 * config/rs6000/aix51.h: Same.
3575 * config/rs6000/rs6000.c: Use TARGET_XCOFF, not OBJECT_FORMAT_COFF.
3576 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Append [DS] to
3577 function descriptor symbol. Use RS6000_OUTPUT_BASENAME.
3578 (ASM_OUTPUT_DEF_FROM_DECLS): Use RS6000_OUTPUT_BASENAME.
3579 * config/rs6000/xcoff.h (ASM_OUTPUT_DEF): Define.
3581 2002-05-22 Richard Henderson <rth@redhat.com>
3583 * varasm.c (default_section_type_flags): Handle tls data and
3585 (default_unique_section): Handle tls sections.
3587 2002-05-23 Alan Modra <amodra@bigpond.net.au>
3589 * configure.in (CROSS): Define NATIVE_CROSS.
3590 * configure: Regenerate.
3591 * gcc.c (STARTFILE_PREFIX_SPEC): Define.
3592 (startfile_prefix_spec): New var.
3593 (static_specs): Add startfile_prefix_spec.
3594 (do_spec_2): Split out from..
3596 (main): Process startfile_prefix_spec.
3597 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC) Change name of
3599 (STARTFILE_PREFIX_SPEC): Define.
3600 (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Rewrite without
3603 2002-05-22 Kazu Hirata <kazu@cs.umass.edu>
3605 * cpperror.c: Fix formatting.
3606 * cppexp.c: Likewise.
3607 * cppfiles.c: Likewise.
3608 * cpphash.c: Likewise.
3609 * cpphash.h: Likewise.
3610 * cppinit.c: Likewise.
3611 * cpplex.c: Likewise.
3612 * cpplib.c: Likewise.
3613 * cppmacro.c: Likewise.
3614 * cppmain.c: Likewise.
3615 * cppspec.c: Likewise.
3617 2002-05-22 Jakub Jelinek <jakub@redhat.com>
3619 * combine.c (force_to_mode): Use gen_int_mode.
3620 Don't clear CONST_INT bits outside of mode.
3622 2002-05-22 Richard Henderson <rth@redhat.com>
3624 * fixinc/inclhack.def (thread_keyword): Match __thread as last arg.
3625 * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
3627 2002-05-22 Jakub Jelinek <jakub@redhat.com>
3630 * emit-rtl.c (widen_memory_access): Only call compare_tree_int
3631 if DECL_SIZE_UNIT is INTEGER_CST.
3633 2002-05-22 Richard Henderson <rth@redhat.com>
3635 * flow.c (life_analysis): Delete broken reg_label check.
3637 2002-05-22 Richard Henderson <rth@redhat.com>
3639 * fixinc/inclhack.def (thread_keyword): Allow as any prototype arg.
3640 * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
3642 Wed May 22 18:39:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
3644 * t-sh (LIB2FUNCS_EXTRA): Now embed-bb.c.
3645 (embed-bb.c): New rule.
3646 * t-sh64 (LIB2FUNCS_EXTRA): Don't change.
3647 * config/sh/embed_bb.c: Delete.
3649 Wed May 22 18:25:29 2002 J"orn Rennecke <joern.rennecke@superh.com>
3651 * c-common.c (cb_register_builtins): Don't indent '#' of #define.
3653 2002-05-22 Kazu Hirata <kazu@cs.umass.edu>
3655 * config/h8300/h8300.md (*andorqi3): New.
3657 2002-05-22 Neil Booth <neil@daikokuya.demon.co.uk>
3659 PR preprocessor/6517
3660 * Makefile.in: Update.
3661 * c-common.c (c_common_post_options): Add preprocessor
3662 errors to the error count.
3663 * c-lang.c (c_post_options): Kill.
3664 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
3665 * hooks.h: Add header guards.
3666 * langhooks-def.h: Include hooks.h.
3667 (LANG_HOOKS_POST_OPTIONS): Update.
3668 * langhooks.h (struct lang_hooks): Update post_options.
3669 * toplev.c (parse_options_and_default_flags): Update.
3671 * objc-lang.c (objc_post_options): Kill.
3672 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
3674 2002-05-21 Bruce Korb <bkorb@gnu.org>
3676 * fixinc/tests/base/pthread.h(THREAD_KEYWORD_CHECK): add fix check
3677 * fixinc/inclhack.def(thread_keyword): use c_fix = format.
3678 * fixinc/fixincl.x: regen.
3680 2002-05-21 Kazu Hirata <kazu@cs.umass.edu>
3682 * cfgbuild.c: Fix formatting.
3684 * cfgcleanup.c: Likewise.
3685 * cfglayout.c: Likewise.
3686 * cfgloop.c: Likewise.
3687 * cfgrtl.c: Likewise.
3689 2002-05-21 Richard Henderson <rth@redhat.com>
3691 * c-common.h (enum rid): Add RID_THREAD.
3692 * c-decl.c (start_decl): Do not set DECL_COMMON for tls variables.
3693 (grokdeclarator): Grok __thread.
3694 * c-parse.in (reswords): Add __thread.
3695 (rid_to_yy): Add RID_THREAD.
3697 * tree.h (DECL_THREAD_LOCAL): New.
3698 (struct tree_decl): Add thread_local_flag.
3699 * print-tree.c (print_node): Dump DECL_THREAD_LOCAL.
3700 * tree.c (staticp): TLS variables are not static.
3702 * target-def.h (TARGET_HAVE_TLS): New.
3703 * target.h (have_tls): New.
3704 * output.h (SECTION_TLS): New.
3705 * varasm.c (assemble_variable): TLS variables can't be common for now.
3706 (default_section_type_flags): Handle .tdata and .tbss.
3707 (default_elf_asm_named_section): Handle SECTION_TLS.
3708 (categorize_decl_for_section): Handle DECL_THREAD_LOCAL.
3710 * flags.h (flag_tls_default): Declare.
3711 * toplev.c (flag_tls_default): Define.
3712 (display_help): Display help for it.
3713 (decode_f_option): Set it.
3715 * doc/extend.texi (Thread-Local): New node describing language-level
3716 thread-local storage.
3717 * doc/invoke.texi (-ftls-model): Document.
3719 * fixinc/inclhack.def (thread_keyword): New.
3720 * fixinc/fixincl.x: Rebuild.
3722 2002-05-21 Jeffrey A Law <law@redhat.com>
3724 * optabs.c (expand_binop): For double-word integer multiplies,
3725 do not compute intermediate results into something that is
3726 not a register (such as a SUBREG or MEM).
3728 * i386.c (ix86_sched_reorder_ppro): Fix typo/thinko.
3729 (ix86_sched_reorder): Make sure to initialize scheduling
3730 data even when there's only one insn in the ready queue.
3732 2002-05-21 Vladimir Makarov <vmakarov@redhat.com>
3734 * genautomata.c (reserv_sets_hash_value): Fix a typo.
3736 2002-05-21 Vladimir Makarov <vmakarov@redhat.com>
3738 * genautomata.c (reserv_sets_hash_value): Define hash_value as
3739 set_el_t. Transform the hash value into unsigned.
3740 (output_cycle_reservs): Fix bug with output of repeated `nothing'.
3741 (transform_3): Add code to process `(A,B)+(D,E)'.
3743 2002-05-21 NIIBE Yutaka <gniibe@m17n.org>
3745 * reload1.c (do_output_reload): Run delete_output_reload
3748 2002-05-21 Roger Sayle <roger@eyesopen.com>
3751 * expr.c (STORE_MAX_PIECES): New macro to avoid immediate constants
3752 larger than INTEGER_CST. (store_by_pieces_1): Use it here...
3753 (can_store_by_pieces): ... and here to limit the largest mode used.
3754 Add a comment to document this function.
3756 2002-05-21 Richard Henderson <rth@redhat.com>
3758 * flow.c (life_analysis): Fix test for deleted label.
3760 2002-05-21 Neil Booth <neil@daikokuya.demon.co.uk>
3762 * doc/tm.texi: Fix typo.
3764 2002-05-21 Zack Weinberg <zack@codesourcery.com>
3766 * c-common.c (c_common_init): Set options->unsigned_char from
3768 (cb_register_builtins): Define __STRICT_ANSI__ and
3769 __CHAR_UNSIGNED__ here...
3770 * cppinit.c (init_builtins): Not here.
3771 (cpp_create_reader): unsigned_char option defaults to 0, not
3772 !DEFAULT_SIGNED_CHAR.
3773 (COMMAND_LINE_OPTIONS, cpp_handle_option): Lose -fsigned-char
3774 and -funsigned-char.
3776 * cpphash.h (struct spec_nodes): Kill n__STRICT_ANSI__.
3777 * cpphash.c (_cpp_init_hashtable): Don't set it.
3778 * cppmacro.c (builtin_macro) [BT_STDC]: Use the language setting
3779 directly. Clarify comment.
3781 2002-05-21 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3783 * bb-reorder.c (make_reorder_chain_1): Use prev_bb/next_bb to get to
3784 neighbouring basic blocks. Use ENTRY_BLOCK_PTR->next_bb instead of
3785 BASIC_BLOCK (0). Use EXIT_BLOCK_PTR->prev_bb instead of
3786 BASIC_BLOCK (n_basic_blocks - 1).
3787 * cfganal.c (can_fallthru, flow_call_edges_add,
3788 flow_preorder_transversal_compute): Too.
3789 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
3790 find_sub_basic_blocks): Too.
3791 * cfgcleanup.c (try_simplify_condjump, try_optimize_cfg): Too.
3792 * cfglayout.c (skip_insns_after_block, fixup_reorder_chain,
3793 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge): Too.
3794 * cfgrtl.c (tidy_fallthru_edges, verify_flow_info): Too.
3795 * combine.c (this_basic_block): Type changed to basic_block.
3796 (combine_instructions, set_nonzero_bits_and_sign_copies, try_combine,
3797 nonzero_bits, num_sign_bit_copies, get_last_value_validate,
3798 get_last_value, distribute_notes, distribute_links): Too.
3799 * final.c (compute_alignments): Too.
3800 * flow.c (regno_uninitialized, regno_clobbered_at_setjmp): Too.
3801 * function.c (thread_prologue_and_epilogue_insns): Too.
3802 * gcse.c (compute_code_hoist_vbeinout): Too.
3803 * global.c (build_insn_chain): Too.
3804 * ifcvt.c (find_if_block, find_cond_trap): Too.
3805 * predict.c (last_basic_block_p, note_prediction_to_br_prob): Too.
3806 * regmove.c (regmove_optimize): Too.
3807 * resource.c (find_basic_block): Too.
3808 * sched-ebb.c (schedule_ebbs): Too.
3809 * ssa-dce.c (find_control_dependence, find_pdom): Too.
3811 2002-05-21 Andreas Jaeger <aj@suse.de>
3813 * cppinit.c (sanity_checks): Avoid printf mismatch warnings.
3815 2002-05-21 Richard Henderson <rth@redhat.com>
3817 * reg-stack.c (swap_rtx_condition, subst_stack_regs_pat): Use
3818 unspec names, not numbers.
3820 2002-05-21 Joseph S. Myers <jsm28@cam.ac.uk>
3822 * doc/sourcebuild.texi: Mention snapshot-README and
3823 snapshot-index.html as needing updating for new front ends.
3825 2002-05-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3827 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Avoid warnings when
3828 disabling checking, and avoid multiple evaluation of RTX.
3830 2002-05-21 Richard Earnshaw <rearnsha@arm.com>
3832 * bitmap.c (bitmap_find_bit): Return early if we have the correct
3835 Tue May 21 10:51:54 CEST 2002 Jan Hubicka <jh@suse.cz>
3837 * profile.c (gen_edge_profiler): Set alias set before the memory is
3840 2002-05-20 David S. Miller <davem@redhat.com>
3842 * cselib.c (max_value_regs): New.
3843 (cselib_lookup, cselib_invalidate_regno): Initialize it when
3844 adding new entries to the REG_VALUES table and we are dealing with
3846 (clear_table): Initialize it.
3847 (cselib_invalidate_regno): Use it to determine which hard
3848 registers to scan when mode is not VOIDmode.
3850 2002-05-20 Duraid Madina <duraid@fl.net.au>
3852 * tradcpp.c (fixup_newlines): Use old-style function header.
3854 2002-05-20 Krister Walfridsson <cato@df.lth.se>
3856 * reload1.c (reload_cse_simplify): Fix typo in rtx code check.
3858 2002-05-20 H.J. Lu (hjl@gnu.org)
3860 Base on suggestions from Zhang Fuxin <fxzhang@ict.ac.cn>:
3862 * config/mips/mips.h (DFMODE_NAN): Defined.
3863 (SFMODE_NAN): Likewise.
3865 2002-05-20 Dale Johannesen <dalej@apple.com>
3867 * combine.c (cant_combine_insn_p): Back out my
3870 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
3872 * params.c: Fix formatting.
3873 * params.h: Likewise.
3874 * predict.c: Likewise.
3875 * prefix.c: Likewise.
3876 * print-rtl.c: Likewise.
3877 * print-tree.c: Likewise.
3878 * profile.c: Likewise.
3880 2002-05-20 H.J. Lu (hjl@gnu.org)
3882 * gcc/config/mips/linux.h (SDB_DEBUGGING_INFO): Undefine.
3884 2002-05-20 Nick Clifton <nickc@cambridge.redhat.com>
3886 * config/arm/arm-wince-pe.h (ASM_SPEC): Pass -mcpu and -march
3887 switches straight on to the assembler, do not abbreviate them.
3888 * config/arm/elf.h (ASM_SPEC): As above.
3889 * config/arm/semi.h (ASM_SPEC): As above.
3890 * config/arm/unknown-elf-oabi.h (ASM_SPEC): As above.
3891 * config/arm/xscale-coff.h (SUBTARGET_ASM_SPEC): Pass
3892 -mcpu=xscale on to the assembler by default.
3893 * config/arm/xscale-elf.h (SUBTARGET_ASM_SPEC): As above.
3895 2002-05-20 Richard Henderson <rth@redhat.com>
3897 * cse.c (canon_hash): Reorder do_not_record test. Always
3898 allow pic_offset_table_rtx.
3900 2002-05-19 Toon Moene <toon@moene.indiv.nluug.nl>
3902 * optabs.c (expand_cmplxdiv_wide): Use complex_part_zero_p.
3903 (expand_binop): Ditto (3 times).
3905 2002-05-19 Mark Mitchell <mitchell@doubledemon.codesourcery.com>
3907 * Makefile.in (distclean): Remove QMTest stuff.
3908 (QMTEST_PATH): New variable.
3909 (QMTESTFLAGS): Likewise.
3910 (QMTESTRUNFLAGS): Likewise.
3912 (QMTEST_GPP_TESTS): Likewise.
3913 (QMTEST_DIR): Likewise.
3914 (QMTEST_DIR/context): New target.
3915 (qmtest-g++): Likeise.
3916 (qmtest-gui): Likewise.
3917 (QMTEST_DIR/gpp-expected.qmr): Likewise.
3919 2002-05-19 Aldy Hernandez <aldyh@redhat.com>
3921 * config/rs6000/rs6000.h (FUNCTION_VALUE): Only return vectors in
3922 an altivec register if TARGET_ALTIVEC.
3924 * config/rs600/rs6000.c (rs6000_emit_move): Change VECTOR_MODE_P
3925 to ALTIVEC_VECTOR_MODE.
3926 (rs6000_va_arg): Only vectors of type AltiVec are 16 byte aligned.
3927 (rs6000_va_arg): Vectors may go in registers if they are not
3930 2002-05-19 Kazu Hirata <kazu@cs.umass.edu>
3932 * protoize.c: Fix formatting.
3934 2002-05-19 Richard Henderson <rth@redhat.com>
3936 * gensupport.c (init_include_reader): Merge into ...
3937 (process_include): ... here. Simplify composite path creation.
3938 Plug memory leaks. Fix file/line number tracking. Do not
3939 process_define_cond_exec. Return void.
3940 (process_rtx): Don't check process_include return value.
3942 2002-05-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3944 * basic_block.h (struct basic_block_def): Added prev_bb and next_bb
3946 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
3947 traversing basic block chain.
3948 (create_basic_block_structure, create_basic_block): Declaration changed.
3949 (link_block, unlink_block): Declare.
3950 * cfg.c (entry_exit_blocks): Initialize new fields.
3951 (link_block, unlink_block): New.
3952 (expunge_block_nocompact): Unlink basic block.
3953 (dump_flow_info): Print prev_bb/next_bb fields.
3954 * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Modified.
3955 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Modified.
3956 * cfglayout.c (fixup_reorder_chain, cfg_layout_duplicate_bb): Modified.
3957 * cfgrtl.c (create_basic_block_structure, create_basic_block,
3958 split_block, force_nonfallthru_and_redirect, split_edge): Modified.
3959 (verify_flow_info): Check that list agrees with numbering.
3961 2002-05-19 Neil Booth <neil@daikokuya.demon.co.uk>
3963 * c-common.c (preprocessing_asm): New macro.
3964 * c-lex.h (builtin_define, builtin_assert): Use pfile.
3968 * alpha.h (CPLUSPLUS_CPP_SPEC): Remove.
3969 (CPP_SPEC): Simplify.
3970 (TARGET_CPU_CPP_BUILTINS): Update.
3971 * freebsd.h (TARGET_OS_CPP_BUILTINS): New.
3972 (CPP_SPEC): Simplify.
3973 * linux.h (CPLUSPLUS_CPP_SPEC): Remove.
3974 (TARGET_OS_CPP_BUILTINS): Update.
3975 * osf.h (CPP_XFLOAT_SPEC): Kill.
3976 (TARGET_OS_CPP_BUILTINS): Update.
3977 (CPP_SUBTARGET_SPEC, SUBTARGET_EXTRA_SPECS): Simplify.
3978 * osf5.h (CPP_XFLOAT_SPEC): Kill.
3979 * vms.h (CPP_SUBTARGET_SPEC): Kill.
3980 (TARGET_OS_CPP_BUILTINS): Update.
3982 2002-05-19 Richard Henderson <rth@redhat.com>
3984 * varasm.c (default_binds_local_p): Fix typo.
3986 2002-05-19 Marek Michalkiewicz <marekm@amelek.gda.pl>
3988 * config/avr/avr.c (machine_dependent_reorg): Sign extend the
3989 CONST_INT operand to the correct mode after adding 1 to it.
3991 2002-05-19 Mark Mitchell <mark@codesourcery.com>
3993 * config.gcc (powerpc-wrs-windiss*): New target.
3995 2002-05-19 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3997 * config/rs6000/rs6000.md (ashrdi3_no_power): New.
4000 2002-05-18 Mark Mitchell <mark@codesourcery.com>
4002 * configure.in (AC_CHECK_FUNCS): Add checks for scandir and
4004 * config.in: Regenerated.
4005 * configure: Regenerated.
4007 2002-05-19 Richard Henderson <rth@redhat.com>
4009 * target-def.h (TARGET_BINDS_LOCAL_P): New.
4010 * target.h (struct gcc_target): Move boolean fields to the end.
4012 * varasm.c (default_binds_local_p): New.
4013 * output.h: Declare it.
4015 * config/alpha/alpha.c (alpha_encode_section_info): Use the new hook.
4016 * config/cris/cris.c (cris_encode_section_info): Likewise.
4017 * config/i386/i386.c (i386_encode_section_info): Likewise.
4018 * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
4019 * config/sh/sh.c (sh_encode_section_info): Likewise.
4021 * doc/tm.texi (TARGET_IN_SMALL_DATA_P): New.
4022 (TARGET_BINDS_LOCAL_P): New.
4024 2002-05-19 Richard Henderson <rth@redhat.com>
4026 * system.h (BLOCK_PROFILER, BLOCK_PROFILER_CODE,
4027 FUNCTION_BLOCK_PROFILER, FUNCTION_BLOCK_PROFILER_EXIT,
4028 MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Poison.
4030 * toplev.c (display_help): Kill -a -ax help.
4032 * config/1750a/1750a.h, config/alpha/alpha.h,
4033 config/clipper/clipper.h, config/dsp16xx/dsp16xx.h,
4034 config/h8300/h8300.h, config/i960/i960.h, config/m68k/tower-as.h,
4035 config/m88k/m88k.h, config/vax/vax.h, config/we32k/we32k.h:
4036 (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Kill.
4038 * libgcc2.c [L_bb] (BLOCK_PROFILER_CODE): Kill.
4039 * config/m68k/sun3.h (BLOCK_PROFILER_CODE): Kill.
4041 * config/i386/i386-protos.h (ix86_output_block_profiler): Kill.
4042 (ix86_output_function_block_profiler): Kill.
4043 * config/m68hc11/m68hc11.c (m68hc11_block_profiler): Kill.
4044 (m68hc11_function_block_profiler): Kill.
4045 * config/m68hc11/m68hc11-protos.h: Update.
4046 * config/m88k/m88k.c (output_block_profiler): Kill.
4047 (output_function_block_profiler): Kill.
4048 * config/m88k/m88k-protos.h: Update.
4050 2002-05-19 Richard Henderson <rth@redhat.com>
4052 * system.h (STRIP_NAME_ENCODING): Poison it.
4053 * output.h (STRIP_NAME_ENCODING): Remove.
4054 (default_strip_name_encoding): Declare.
4055 * target-def.h (TARGET_STRIP_NAME_ENCODING): New.
4056 * target.h (strip_name_encoding): New.
4057 * varasm.c (default_strip_name_encoding): New.
4059 * dwarf2asm.c, varasm.c, config/darwin.c, config/darwin.h,
4060 config/alpha/alpha.c, config/arm/pe.c, config/avr/avr.c,
4061 config/cris/cris.c, config/i386/cygwin.h, config/i386/interix.c,
4062 config/i386/winnt.c, config/m32r/m32r.h, config/mcore/mcore-elf.h,
4063 config/mcore/mcore-pe.h, config/mcore/mcore.c, config/mcore/mcore.h,
4064 config/mips/mips.c, config/mn10200/mn10200.h, config/mn10300/mn10300.h,
4065 config/pa/pa.c, config/pa/pa.h, config/pa/som.h,
4066 config/rs6000/rs6000.c, config/rs6000/sysv4.h, config/rs6000/xcoff.h,
4067 config/v850/v850.h: Use the hook, not the macro.
4069 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
4070 config/alpha/alpha.c, config/alpha/alpha.h, config/h8300/h8300.c,
4071 config/h8300/h8300.h, config/i386/cygwin.h, config/i386/i386-interix.h,
4072 config/i386/i386-protos.h, config/i386/win32.h, config/i386/winnt.c,
4073 config/ia64/ia64.c, config/ia64/ia64.h, config/m32r/m32r.c,
4074 config/m32r/m32r.h, config/mcore/mcore.c, config/mcore/mcore.h,
4075 config/pa/pa.c, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
4076 config/rs6000/xcoff.h, config/sh/sh.c, config/sh/sh.h,
4077 config/v850/v850.c, config/v850/v850.h:
4078 Move STRIP_NAME_ENCODING to out-of-line function and add
4079 TARGET_STRIP_NAME_ENCODING.
4081 * config/arm/arm.c, config/arm/arm.h, config/mmix/mmix-protos.h,
4082 config/mmix/mmix.c, config/mmix/mmix.h: Replace STRIP_NAME_ENCODING
4083 with TARGET_STRIP_NAME_ENCODING referencing existing function;
4084 make function static.
4086 * xcoffout.c: Include target.h
4087 * Makefile.in (xcoffout.o): Update.
4089 * config/avr/avr.c (avr_encode_section_info): Correct prototype.
4090 * config/avr/avr.h (STRIP_NAME_ENCODING): Remove.
4091 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Mark
4092 reloc argument unused.
4093 * config/sh/sh.c (TARGET_ENCODE_SECTION_INFO): New.
4095 * doc/tm.texi (TARGET_STRIP_NAME_ENCODING): Update from previous
4096 STRIP_NAME_ENCODING docs.
4098 2002-05-19 Andreas Jaeger <aj@suse.de>
4100 * gengenrtl.c: Add prototype for excluded_rtx.
4102 * real.h: Add prototype for exact_real_truncate.
4104 2002-05-18 Richard Henderson <rth@redhat.com>
4106 * system.h (ENCODE_SECTION_INFO): Poison it.
4107 * target-def.h (TARGET_ENCODE_SECTION_INFO): New.
4108 * target.h (encode_section_info): New.
4109 * varasm.c (make_decl_rtl, output_constant_def): Use it.
4110 * hooks.c (hook_tree_int_void): New.
4111 * hooks.h: Declare it.
4113 * config/darwin.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
4114 config/alpha/alpha.h, config/arm/pe.h, config/avr/avr-protos.h,
4115 config/avr/avr.c, config/avr/avr.h, config/c4x/c4x-protos.h,
4116 config/c4x/c4x.c, config/c4x/c4x.h, config/cris/cris-protos.h,
4117 config/cris/cris.c, config/cris/cris.h, config/i386/cygwin.h,
4118 config/i386/win32.h, config/ia64/ia64-protos.h, config/ia64/ia64.c,
4119 config/ia64/ia64.h, config/m32r/m32r-protos.h, config/m32r/m32r.c,
4120 config/m32r/m32r.h, config/m68hc11/m68hc11-protos.h,
4121 config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
4122 config/mcore/mcore-protos.h, config/mcore/mcore.c,
4123 config/mcore/mcore.h, config/mmix/mmix-protos.h, config/mmix/mmix.c,
4124 config/mmix/mmix.h, config/rs6000/rs6000-protos.h,
4125 config/rs6000/sysv4.h, config/stormy16/stormy16-protos.h,
4126 config/stormy16/stormy16.c, config/stormy16/stormy16.h:
4127 Replace ENCODE_SECTION_INFO with TARGET_ENCODE_SECTION_INFO
4128 referencing existing function. Make function static.
4130 * config/a29k/a29k.c, config/a29k/a29k.h, config/arc/arc.c,
4131 config/arc/arc.h, config/arm/arm.c, config/arm/arm.h,
4132 config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
4133 config/i370/i370.h, config/i386/i386-interix.h, config/i386/i386.c,
4134 config/i386/i386.h, config/i386/interix.c, config/m88k/m88k.c,
4135 config/m88k/m88k.h, config/mips/mips.c, config/mips/mips.h,
4136 config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa.c,
4137 config/pa/pa.h, config/romp/romp.c, config/romp/romp.h,
4138 config/rs6000/linux64.h, config/rs6000/xcoff.h, config/s390/s390.c,
4139 config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
4140 config/sparc/sparc.c, config/sparc/sparc.h, config/v850/v850.c,
4141 config/v850/v850.h, config/vax/vax.c, config/vax/vms.h,
4142 config/xtensa/xtensa.c, config/xtensa/xtensa.h:
4143 Move ENCODE_SECTION_INFO to out-of-line function and add
4144 TARGET_ENCODE_SECTION_INFO.
4146 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use hook, not macro.
4147 (ASM_DECLARE_OBJECT_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
4149 * config/arm/pe.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Rename
4151 (switch_to_section): Replace in_rdata case with in_readonly_data.
4153 * config/h8300/h8300.c (h8300_encode_label): Make static.
4154 * config/h8300/h8300-protos.h: Update.
4156 * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Rename
4157 from rs6000_encode_section_info; make static.
4158 (rs6000_xcoff_encode_section_info): New.
4160 * config/v850/v850.c (v850_encode_data_area): Make static.
4161 * config/v850/v850-protos.h: Update.
4163 * config/vax/vax.c: Include flags.h.
4164 (vms_select_section): Fix typo.
4166 * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update from previous
4167 ENCODE_SECTION_INFO docs.
4169 2002-05-18 Richard Henderson <rth@redhat.com>
4171 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Rename from
4172 REGISTER_TARGET_PRAGMAS.
4173 * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Redefine.
4175 * config.gcc: Do not use rs6000-c.c on powerpc-darwin.
4177 2002-05-18 Richard Henderson <rth@redhat.com>
4179 * system.h (SELECT_RTX_SECTION): Poison.
4180 * target-def.h (TARGET_ASM_SELECT_RTX_SECTION): New.
4181 * target.h (select_rtx_section): New.
4182 * varasm.c (output_constant_pool): Use it.
4183 (default_select_rtx_section, default_elf_select_rtx_section): New.
4184 * output.h: Declare them.
4186 * config/darwin.h (SELECT_RTX_SECTION): Move ...
4187 * config/darwin.c (machopic_select_rtx_section): ... here.
4188 * config/darwin-protos.h: Update.
4190 * config/nextstep.h (SELECT_RTX_SECTION): Move ...
4191 * config/nextstep.c (machopic_select_rtx_section): ... here.
4192 (nextstep_select_section): Rename variable to avoid macro clash.
4193 * config/nextstep-protos.h: Update.
4195 * config/elfos.h, config/svr3.h, config/arm/aof.h, config/c4x/c4x.h,
4196 config/i386/dgux.h, config/i386/osfrose.h, config/i386/sco5.h,
4197 config/i386/svr3gas.h, config/i860/paragon.h, config/ia64/aix.h,
4198 config/m32r/m32r.h, config/m68k/dpx2.h, config/m68k/lynx.h,
4199 config/m68k/m68k.h, config/m68k/tower-as.h, config/m88k/dgux.h,
4200 config/mcore/mcore-pe.h, config/mips/mips.h, config/mmix/mmix.h,
4201 config/pa/pa-linux.h, config/pa/pa.h, config/romp/romp.h,
4202 config/rs6000/lynx.h, config/rs6000/sysv4.h, config/s390/linux.h,
4203 config/sparc/sysv4.h, config/xtensa/elf.h, config/xtensa/linux.h
4204 (SELECT_RTX_SECTION): Remove.
4206 * config/darwin.h, config/elfos.h, config/nextstep.h,
4207 config/ia64/aix.h, config/ia64/sysv4.h, config/alpha/alpha.c,
4208 config/mips/mips.c, config/romp/romp.c, config/rs6000/sysv4.h,
4209 config/rs6000/xcoff.h, config/s390/s390.c, config/sparc/aout.h,
4210 config/sparc/lynx.h, config/xtensa/xtensa.c
4211 (TARGET_ASM_SELECT_RTX_SECTION): New.
4213 * config/alpha/elf.h (SELECT_RTX_SECTION): Move ...
4214 * config/alpha/alpha.c (alpha_elf_select_rtx_section): ... here.
4215 * config/ia64/sysv4.h (SELECT_RTX_SECTION): Move ...
4216 * config/ia64/ia64.c (ia64_select_rtx_section): ... here.
4217 (ia64_aix_select_rtx_section): New.
4218 * config/mips/iris6.h (READONLY_DATA_SECTION_ASM_OP): Undef before
4220 * config/mips/mips.c (mips_select_rtx_section): Make static.
4221 Support ELF SHF_MERGE features.
4222 * config/mips/mips-protos.h: Update.
4223 * config/rs6000/xcoff.h (SELECT_RTX_SECTION): Move ...
4224 * config/rs6000/rs6000.c (rs6000_xcoff_select_rtx_section): ... here.
4225 (rs6000_elf_select_rtx_section): Rename from rs6000_select_rtx_section;
4226 make static, fall back to default_elf_select_rtx_section.
4227 * config/rs6000/rs6000-protos.h: Update.
4228 * config/sparc/sparc.h (SELECT_RTX_SECTION): Move ...
4229 * config/sparc/sparc.c (sparc_aout_select_rtx_section): ... here.
4230 * config/sparc/sunos4.h (on_exit): Declare only if IN_LIBGCC2.
4231 * config/romp/romp.c (romp_select_rtx_section): New.
4232 * config/s390/s390.c (s390_select_rtx_section): New.
4233 * config/xtensa/xtensa.c: Include output.h. Shuffle local function
4234 declarations before target macro definition.
4235 (xtensa_emit_call): Use static buffer.
4236 (xtensa_select_rtx_section): New.
4237 * config/xtensa/xtensa.h (MAX_INT_TYPE_SIZE): Remove.
4238 (IMPLICIT_FIX_EXPR, EASY_DIV_EXPR): Remove.
4239 (ASM_OUTPUT_POOL_PROLOGUE): Update call to resolve_unique_section.
4241 * doc/tm.texi (TARGET_ASM_SELECT_RTX_SECTION): Update from
4242 SELECT_RTX_SECTION docs.
4244 Sun May 19 00:24:23 CEST 2002 Jan Hubicka <jh@suse.cz>
4246 * i386.md (movsi/movdi): Fix template.
4247 (sse2 patterns): Set attributes consistently.
4249 * i386.md (pushqi2, ashrqi_*): Fix constraint.
4251 2002-05-18 Toon Moene <toon@moene.indiv.nluug.nl>
4253 * optabs.c (complex_part_zero_p): New.
4254 * (expand_cmplxdiv_straight): Use it.
4255 * (expand_cmplxdiv_wide): Ditto.
4256 * (expand_binop): Ditto.
4258 2002-05-18 Richard Henderson <rth@redhat.com>
4260 * final.c (HAVE_READONLY_DATA_SECTION): New.
4261 (shorten_branches): Use it instead of ifdefs.
4262 * varasm.c (enum in_section): Add in_readonly_data.
4263 (text_section, data_section): Tidy.
4264 (readonly_data_section): Use READONLY_DATA_SECTION_ASM_OP if present.
4266 * config/darwin.h, config/nextstep.h, config/h8300/elf.h,
4267 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h
4268 (READONLY_DATA_SECTION): Don't undef.
4270 * config/alpha/unicosmk.h, config/h8300/elf.h, config/i386/aix386ng.h,
4271 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h,
4272 config/rs6000/lynx.h (READONLY_DATA_SECTION_ASM_OP): Undef.
4274 * config/elfos.h, config/svr3.h, config/alpha/alpha-interix.h,
4275 config/alpha/elf.h, config/c4x/c4x.h, config/i386/i386-interix.h,
4276 config/i386/sco5.h, config/i386/svr3gas.h, config/i860/sysv3.h,
4277 config/m88k/m88k.h, config/pa/pa64-hpux.h (USE_CONST_SECTION): Remove.
4279 * config/elfos.h, config/netware.h, config/alpha/alpha-interix.h,
4280 config/alpha/elf.h, config/alpha/vms.h, config/arc/arc.h,
4281 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
4282 config/i386/dgux.h, config/i386/i386-interix.h, config/i386/sco5.h,
4283 config/ia64/hpux.h, config/m32r/m32r.h, config/m68k/tower-as.h,
4284 config/m88k/m88k.h, config/mcore/mcore-pe.h, config/mips/iris6.h,
4285 config/mips/mips.h, config/mmix/mmix.h, config/pa/pa64-hpux.h,
4286 config/sparc/sysv4.h (READONLY_DATA_SECTION_ASM_OP): Rename from
4287 CONST_SECTION_ASM_OP/READONLY_SECTION_ASM_OP/RDATA_SECTION_ASM_OP.
4289 * config/elfos.h, config/netware.h, config/1750a/1750a.h,
4290 config/a29k/a29k.h, config/alpha/alpha-interix.h, config/alpha/alpha.h,
4291 config/arm/coff.h, config/h8300/h8300.h, config/i386/aix386ng.h,
4292 config/i386/i386-interix.h, config/i386/osfrose.h, config/mmix/mmix.h,
4293 config/pa/pa64-hpux.h, config/sparc/litecoff.h
4294 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
4296 * config/elfos.h, config/netware.h, config/svr3.h,
4297 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
4298 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
4299 config/h8300/h8300.h, config/i386/i386-interix.h,
4300 config/i386/osfrose.h, config/i386/svr3gas.h, config/mmix/mmix.h,
4301 config/pa/pa64-hpux.h (READONLY_DATA_SECTION): Remove.
4303 * config/elfos.h, config/netware.h, config/svr3.h,
4304 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
4305 config/c4x/c4x.h, config/i386/aix386ng.h, config/i386/i386-interix.h,
4306 config/i386/sco5.h, config/i386/svr3gas.h, config/mmix/mmix.h,
4307 config/pa/pa64-hpux.h (CONST_SECTION_FUNCTION): Remove.
4309 * config/lynx.h, config/svr3.h, config/alpha/elf.h, config/alpha/vms.h,
4310 config/c4x/c4x.h, config/dsp16xx/dsp16xx.h, config/i386/sco5.h,
4311 config/i386/svr3gas.h, config/i860/sysv3.h, config/i860/sysv4.h,
4312 config/ia64/sysv4.h, config/m32r/m32r.h, config/m88k/m88k.h,
4313 config/mcore/mcore-elf.h, config/mcore/mcore-pe.h, config/mips/elf.h,
4314 config/mips/elf64.h, config/mips/iris6.h, config/mips/linux.h,
4315 config/mips/mips.h, config/mips/rtems64.h, config/mips/vxworks.h,
4316 config/rs6000/sysv4.h, config/v850/v850.h
4317 (EXTRA_SECTIONS): Remove in_const/in_rdata.
4318 (EXTRA_SECTION_FUNCTIONS): Remove accompanying function.
4320 * config/svr3.h, config/c4x/c4x.h, config/i386/dgux.h,
4321 config/i386/sco5.h, config/i386/svr3gas.h, config/ia64/aix.h,
4322 config/m88k/dgux.h, config/mcore/mcore-pe.h, config/mmix/mmix.h,
4323 config/sparc/sysv4.h (SELECT_RTX_SECTION): Use readonly_data_section.
4324 * config/alpha/alpha.c (alpha_start_function): Likewise.
4325 (alpha_write_linkage): Likewise.
4326 * config/m32r/m32r.c (m32r_select_section): Likewise.
4327 * config/m88k/m88k.c (m88k_select_section): Likewise.
4328 * config/mips/mips.c (mips_select_rtx_section): Likewise.
4329 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Likewise.
4330 (rs6000_elf_select_section): Likewise.
4331 * config/v850/v850.c (v850_select_section): Likewise.
4333 * config/1750a/1750a.h, config/i860/sysv3.h
4334 (READONLY_DATA_SECTION_ASM_OP): New.
4335 READONLY_DATA_SECTION_ASM_OP.
4336 * config/i386/interix.c, config/i386/winnt.c
4337 (i386_pe_unique_section): Always use .rdata prefix.
4338 * config/pa/som.h (readonly_data): Always switch to read-only section.
4339 (READONLY_DATA_SECTION): Predicate on flag_pic.
4340 * config/we32k/we32k.h (READONLY_DATA_SECTION): Remove parenthesis.
4341 * doc/tm.texi (READONLY_DATA_SECTION_ASM_OP): New.
4342 (READONLY_DATA_SECTION): Update.
4344 2002-05-18 Jason Thorpe <thorpej@wasabisystems.com>
4346 * c-common.c (c_common_post_options): Warn if -Wformat-zero-length
4347 is used without -Wformat.
4348 * c-common.h (warn_format_zero_length): Declare extern.
4349 * c-decl.c (warn_options): Add "format-zero-length".
4350 * c-format.c (warn_format_zero_length): Declare.
4351 (set_Wformat): Set warn_format_zero_length for -Wformat.
4352 (check_format_info): Only warn about zero-length formats if
4353 warn_format_zero_length is true. Include the format type
4354 name in the warning message.
4355 * doc/invoke.texi: Document -Wformat-zero-length.
4356 * testsuite/gcc.dg/format/zero-length-1.c: New test.
4358 2002-05-18 Kazu Hirata <kazu@cs.umass.edu>
4360 * timevar.c: Fix formatting.
4361 * tlink.c: Likewise.
4362 * toplev.c: Likewise.
4363 * tree-dump.c: Likewise.
4364 * tree-inline.c: Likewise.
4366 2002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
4368 * cppinit.c (cpp_post_options): If preprocessed, turn off
4369 traditional. If traditional, turn off column numbers.
4370 * cpplib.c (cpp_push_buffer): Lex from stage 3 if traditional.
4371 * cpptrad.c (handle_newline): Update line_base.
4372 (skip_comment): Handle -Wcomment.
4374 2002-05-17 Zack Weinberg <zack@codesourcery.com>
4376 * cppinit.c (struct builtin): Remove unused fields.
4377 (CPLUS, BUILTIN, OPERATOR, O, builtin_array_end): Kill.
4378 (operator_array): New - was second half of builtin_array.
4379 (init_builtins): Simplify loop over builtin_array/operator_array.
4381 2002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
4383 * defaults.h (UNIQUE_SECTION): Remove.
4384 * system.h (UNIQUE_SECTION, SELECT_SECTION): Poison.
4386 2002-05-17 Richard Henderson <rth@redhat.com>
4388 * expr.c (init_expr_once): Don't use start/end_sequence.
4389 Use rtx_alloc instead of emit_insn.
4390 * toplev.c (lang_dependent_init): Run init_expr_once here ...
4391 (lang_independent_init): ... not here.
4393 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
4395 * config/sh/lib1funcs.asm (GLOBAL): Use __USER_LABEL_PREFIX__.
4397 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
4399 * config/avr/avr.c (avr_regs_to_save): New function. Also check
4400 for fixed registers, possibly used for global register variables.
4401 (initial_elimination_offset, avr_output_function_prologue,
4402 avr_output_function_epilogue): Move common code to avr_regs_to_save.
4404 2002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
4406 * Makefile.in: Update for cpptrad.c.
4407 * cpphash.h (struct cpp_buffer): New members for buffer
4409 (struct cpp_reader): New members for traditional output.
4410 (_cpp_read_logical_line, _cpp_overlay_buffer): New.
4411 * cppinit.c (cpp_create_reader): Set trad_line.
4412 (cpp_destroy): Free trad_out_base if used.
4413 (cpp_read_main_file): Overlay an empty buffer if traditional.
4414 (cpp_finish_options): Don't do builtins.
4415 (COMMAND_LINE_OPTIONS): Add -traditional-cpp.
4416 (cpp_handle_option): Handle it.
4417 * cpplex.c (continue_after_nul): New.
4418 (_cpp_lex_direct): Use handle_nul.
4419 * cpplib.h (struct cpp_options): New traditional option.
4420 * cpptrad.c: New file.
4422 2002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
4424 * c-common.c (c_common_init_options): Use C89 for Objective-C,
4425 and set the options flag.
4426 * cppinit.c (lang_flags): Remove objc.
4427 (lang_defaults): Remove OBJC and OBJCXX.
4429 (COMMAND_LINE_OPTIONS): Remove -+ and -lang-objc++.
4430 (cpp_handle_option): Remove -+ and -lang-objc++.
4431 For ObjC, just set a flag.
4432 (print_help): Update.
4433 * cpplib.h (enum c_lang): Remove CLK_OBJC and CLK_OBJCXX.
4435 2002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4437 * doc/install.texi (Specific, mips-sgi-irix6): Document need to
4438 bootstrap with -mips3.
4440 2002-05-17 Kazu Hirata <kazu@cs.umass.edu>
4442 * final.c: Fix formatting.
4443 * fix-header.c: Likewise.
4445 * fold-const.c: Likewise.
4446 * function.c: Likewise.
4448 2002-05-17 David S. Miller <davem@redhat.com>
4450 PR c/6689, PR optimization/6615
4451 * local-alloc.c (struct equivalence): Rename 'src' to 'src_p'
4452 and make it a pointer to rtx. Update comments.
4453 (update_equiv_regs): When scanning for equivalences, record
4454 address of SET_SRC (set) in reg_equiv[].src_p. Dereference
4455 it while making the equiv replacements.
4457 2002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4459 * config/sparc/sparc.c (sparc_aout_select_section): Fixed typo.
4461 2002-05-17 kaz Kojima <kkojima@rr.iij4u.or.jp>
4463 * config/sh/sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P
4464 when encoding visibility into SYMBOL_REF_FLAG.
4466 2002-05-17 Richard Sandiford <rsandifo@redhat.com>
4468 * expr.c (force_operand): Fix reversed move.
4470 2002-05-17 Kurt Wall <kwall@kurtwerks.com>
4472 * doc/install.texi (Testing): Mention two common DejaGnu warnings
4473 that can be ignored.
4475 2002-05-16 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4477 * doc/install.texi (Final install): Recommend to install into a
4478 "clean" target directory.
4480 2002-05-17 Richard Henderson <rth@redhat.com>
4482 * config/ia64/ia64.md: Use braced strings instead of quoted strings
4483 for code blocks. Tidy whitespace.
4485 2002-05-17 Richard Henderson <rth@redhat.com>
4487 * hooks.c (hook_tree_bool_false): New.
4488 * hooks.h: Declare it.
4489 * target-def.h (TARGET_ASM_SELECT_SECTION): New.
4490 (TARGET_ASM_UNIQUE_SECTION, TARGET_IN_SMALL_DATA_P): New.
4491 * target.h (select_section, unique_section): New.
4492 (in_small_data_p): New.
4493 * varasm.c (resolve_unique_section): Use hooks instead of macros.
4494 (variable_section, output_constant_def_contents): Likewise.
4495 (default_select_section, default_unique_section): New.
4496 (categorize_decl_for_section, default_elf_select_section): New.
4497 * output.h: Declare them.
4499 * config/darwin.h (ALIAS_SECTION, try_section_alias): Remove.
4500 (TARGET_ASM_SELECT_SECTION): New.
4501 (SELECT_SECTION): Move ...
4502 * config/darwin.c (machopic_select_section): ... here.
4503 * config/darwin-protos.h: Update.
4505 * config/nextstep.h (TARGET_ASM_SELECT_SECTION): New.
4506 (SELECT_SECTION): Move ...
4507 * config/nextstep.c (nextstep_select_section): ... here.
4508 * config/nextstep-protos.h: Update.
4510 * config/elfos.h (UNIQUE_SECTION, SELECT_SECTION): Remove.
4511 (TARGET_ASM_SELECT_SECTION): New.
4512 * config/svr3.h (SELECT_SECTION): Remove.
4514 * config/alpha/alpha.c (unicosmk_unique_section): Make static.
4515 (TARGET_ASM_UNIQUE_SECTION) [UNICOS]: New.
4516 (TARGET_IN_SMALL_DATA_P, alpha_in_small_data_p): New.
4517 (alpha_encode_section_info): Use it.
4518 * config/alpha/alpha-protos.h: Update.
4519 * config/alpha/elf.h (DO_SELECT_SECTION): Remove.
4520 (SELECT_SECTION, UNIQUE_SECTION): Remove.
4521 (TARGET_ASM_SELECT_SECTION): New.
4522 * config/alpha/unicosmk.h (UNIQUE_SECTION): Remove.
4524 * config/arm/pe.h (UNIQUE_SECTION): Remove.
4525 (TARGET_ASM_UNIQUE_SECTION): New.
4527 * config/avr/avr.c (TARGET_ASM_UNIQUE_SECTION): New.
4528 (avr_unique_section): Rename from unique_section; make static.
4529 * config/avr/avr-protos.h: Update.
4530 * config/avr/avr.h (UNIQUE_SECTION): Remove.
4532 * config/c4x/c4x.h (SELECT_SECTION): Remove.
4534 * config/i386/cygwin.h (UNIQUE_SECTION): Remove.
4535 (TARGET_ASM_UNIQUE_SECTION): New.
4536 * config/i386/i386-interix.h: Likewise.
4537 * config/i386/win32.h: Likewise.
4538 * config/i386/djgpp.h (UNIQUE_SECTION): Remove.
4539 * config/i386/i386.c (ix86_asm_file_end): Use target hook not macro.
4540 * config/i386/sco5.h (SELECT_SECTION): Remove.
4541 (TARGET_ASM_SELECT_SECTION): New.
4542 * config/i386/svr3gas.h (SELECT_SECTION): Remove.
4544 * config/i860/paragon.h: Undef TARGET_ASM_SELECT_SECTION
4545 instead of SELECT_SECTION.
4546 * config/m68k/dpx2.h: Likewise.
4547 * config/rs6000/lynx.h: Likewise.
4549 * config/ia64/aix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
4550 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
4551 * config/ia64/ia64.c (TARGET_IN_SMALL_DATA_P): New.
4552 (ia64_in_small_data_p): New.
4553 (ia64_encode_section_info): Use it. Reorganize overlarge conditional.
4554 (ia64_aix_select_section, ia64_aix_unique_section): New.
4555 * config/ia64/sysv4.h (DO_SELECT_SECTION): Remove.
4556 (SELECT_SECTION, UNIQUE_SECTION): Remove.
4558 * config/m32r/m32r.h (SELECT_SECTION): Remove.
4559 (TARGET_ASM_SELECT_SECTION): New.
4560 * config/m32r/m32r.c (m32r_select_section): Take align argument.
4561 * config/m32r/m32r-protos.h: Update.
4563 * config/m88k/m88k.h (TARGET_ASM_SELECT_SECTION): New.
4564 (SELECT_SECTION): Move ...
4565 * config/m88k/m88k.c (m88k_select_section): ... here.
4567 * config/mcore/mcore-pe.h (SELECT_SECTION): Remove.
4568 * config/mcore/mcore.h (UNIQUE_SECTION): Remove.
4569 * config/mcore/mcore.c (TARGET_ASM_UNIQUE_SECTION): New.
4570 (mcore_unique_section): Make static.
4571 * config/mcore/mcore-protos.h: Update.
4573 * config/mips/elf.h (UNIQUE_SECTION): Remove.
4574 (TARGET_ASM_UNIQUE_SECTION): New.
4575 * config/mips/elf64.h: Likewise.
4576 * config/mips/iris6gld.h: Likewise.
4577 * config/mips/linux.h: Likewise.
4578 * config/mips/mips-protos.h: Update.
4579 * config/mips/mips.c (mips_select_section): Add align argument.
4580 * config/mips/mips.h (SELECT_SECTION): Remove.
4581 (TARGET_ASM_SELECT_SECTION): New.
4583 * config/mmix/mmix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
4584 * config/mmix/mmix.c (mmix_select_section): Remove.
4585 (mmix_unique_section): Remove.
4586 * config/mmix/mmix-protos.h: Update.
4588 * config/pa/pa.h (TARGET_ASM_SELECT_SECTION): New.
4589 (SELECT_SECTION): Move ...
4590 * config/pa/pa.c (pa_select_section): ... here.
4591 * config/pa/pa64-hpux.h (UNIQUE_SECTION): Remove.
4593 * config/rs6000/rs6000.c (rs6000_elf_select_section): Rename
4594 from rs6000_select_section and make static.
4595 (rs6000_elf_unique_section): Similarly.
4596 (rs6000_xcoff_select_section): From xcoff.h.
4597 (rs6000_xcoff_unique_section): Likewise.
4598 * config/rs6000/rs6000-protos.h: Update.
4599 * config/rs6000/sysv4.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
4600 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
4601 * config/rs6000/xcoff.h: Likewise.
4603 * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): New.
4604 (SELECT_SECTION): Move ...
4605 * config/sparc/sparc.c (sparc_aout_select_section): ... here.
4607 * config/v850/v850.h (SELECT_SECTION): Move ...
4608 * config/v850/v850.c (v850_select_section): ... here.
4609 (TARGET_ASM_SELECT_SECTION): New.
4611 * config/vax/vms.h (SELECT_SECTION): Move ...
4612 * config/vax/vax.c (vms_select_section): ... here.
4613 (TARGET_ASM_SELECT_SECTION): New.
4615 * doc/tm.texi: Update SELECT_SECTION and UNIQUE_SECTION docs
4616 for the target hooks.
4618 2002-05-17 Nick Clifton <nickc@cambridge.redhat.com>
4620 * config/arm/arm.c (emit_multi_reg_push): Do not set
4621 RTX_FRAME_RELATED_P on the SEQUENCE.
4623 2002-05-16 Richard Henderson <rth@redhat.com>
4625 * config/ia64/ia64.c (ia64_reorg): Rebuild bb_for_insn before
4626 splitting. Use split_all_insns; update_life_info_in_dirty_blocks.
4628 2002-05-16 Richard Henderson <rth@redhat.com>
4630 * config/alpha/unicosmk.h (TARGET_OS_CPP_BUILTINS): Fix typo.
4632 * config/ia64/ia64.c (saveable_obstack): Do not declare.
4634 2002-05-16 Richard Henderson <rth@redhat.com>
4636 * basic-block.h, bb-reorder.c, cfg.c, cfganal.c, cfgbuild.c,
4637 cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c, combine.c,
4638 conflict.c, df.c, df.h, dominance.c, final.c, flow.c, function.c,
4639 gcse.c, global.c, graph.c, haifa-sched.c, ifcvt.c, lcm.c,
4640 local-alloc.c, loop.c, predict.c, print-rtl.c, profile.c,
4641 recog.c, reg-stack.c, regclass.c, regmove.c, regrename.c,
4642 reload1.c, reorg.c, resource.c, sbitmap.c, sched-deps.c,
4643 sched-ebb.c, sched-rgn.c, sibcall.c, ssa-ccp.c, ssa-dce.c, ssa.c:
4644 Revert "Basic block renumbering removal", and two followup patches.
4646 2002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
4648 * lcm.c (optimize_mode_switching): Revert previous change.
4650 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4652 * sched-rgn.c (schedule_insns): Initialize large_region_blocks
4653 with only extant block numbers.
4655 2002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
4657 * lcm.c (optimize_mode_switching): Fix typo.
4659 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4661 * flow.c (calculate_global_regs_live): Queue blocks in program order.
4663 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4665 * doc/install.texi (Configuration): Document PWDCMD.
4667 2002-05-16 Dale Johannesen <dalej@apple.com>
4669 * combine.c (cant_combine_insn_p): Reenable combinations
4670 involving hard regs unless CLASS_LIKELY_SPILLED_P.
4672 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
4674 * c-common.c (cb_register_builtins): Handle more built-ins
4675 here rather than in gcc.c specs.
4676 * gcc.c (cpp_unique_options): Move many built-ins to c-common.c.
4677 (cpp_options): Pass -O flags even when only preprocessing.
4678 * toplev.c (set_fast_math_flags): New prototype.
4679 (fast_math_flags_set_p): New.
4680 (set_no_fast_math_flags): Remove.
4681 (decode_f_option): Update.
4682 * toplev.h (set_fast_math_flags): Update.
4683 (fast_math_flags_set_p): New.
4684 (set_no_fast_math_flags): Remove.
4686 * c4x/c4x.c (c4x_override_options): Update.
4688 2002-05-16 Zack Weinberg <zack@codesourcery.com>
4690 * c-common.c (STDC_0_IN_SYSTEM_HEADERS, REGISTER_PREFIX):
4691 Default-define here.
4692 (builtin_define_with_value): Can now wrap the expansion in
4693 quotation marks if such is wanted.
4694 (cb_register_builtins): Update calls to builtin_define_with_value.
4695 Define __REGISTER_PREFIX__, __USER_LABEL_PREFIX__, and __VERSION__
4697 (c_common_init): Set options->stdc_0_in_system_headers.
4698 * c-lex.h: Update prototype of builtin_define_with_value.
4699 * cppdefault.h: Remove default definitions of USER_LABEL_PREFIX
4700 and REGISTER_PREFIX.
4702 * cppinit.c (VERS, ULP, C, X): Kill.
4703 (builtin_array): Remove entries for __VERSION__,
4704 __USER_LABEL_PREFIX__, __REGISTER_PREFIX__, and
4705 __HAVE_BUILTIN_SETJMP__. Make __STDC__ always a builtin, not
4707 (init_builtins): Kill off a bunch of now-dead code.
4708 (COMMAND_LINE_OPTIONS): Remove -fleading-underscore and
4709 -fno-leading-underscore.
4710 (cpp_handle_option): Remove code to set user_label_prefix.
4711 (cpp_post_options): Likewise.
4713 * cpplib.h (struct cpp_options): Remove user_label_prefix.
4714 (stdc_0_in_system_headers): New.
4715 * cppmacro.c (builtin_macro): Check CPP_OPTION (pfile,
4716 stdc_0_in_system_headers) too to decide the value of __STDC__.
4718 * tradcpp.c (user_label_prefix): Kill.
4719 (main): Remove code handling -f(no-)leading-underscore.
4720 (initialize_builtins): Don't define __REGISTER_PREFIX__
4721 or __USER_LABEL_PREFIX__.
4722 (install_value): Wrap compound statement in dummy loop so the
4723 macro works properly in an if statement.
4726 2002-05-16 Janis Johnson <janis187@us.ibm.com>
4728 * loop.h (struct loop_info): Add member has_prefetch.
4729 * loop.c (PREFETCH_CONDITIONAL): Change default to 1.
4730 (prescan_loop): Initialize has_prefetch.
4731 (struct prefetch_info): Change prefetch_in_loop and
4732 prefetch_before_loop from bit fields to ints.
4733 (emit_prefetch_instructions): Several small fixes.
4734 (check_dbra_loop): Don't reverse loop that uses prefetch.
4736 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4738 * Makefile.in: Allow for PWDCMD to override hardcoded pwd.
4739 * configure.in: Likewise.
4740 * fixinc/check.tpl: Likewise.
4741 * fixinc/fixinc.dgux: Likewise.
4742 * fixinc/fixinc.svr4: Likewise.
4743 * fixinc/fixinc.winnt: Likewise.
4744 * fixinc/fixincl.sh: Likewise.
4745 * fixproto: Likewise.
4746 * configure: Regenerate.
4748 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4750 Basic block renumbering removal:
4751 * basic_block.h (struct basic_block_def): Renamed index to sindex,
4752 added prev_bb and next_bb fields.
4753 (n_basic_blocks): Renamed to num_basic_blocks.
4754 (last_basic_block): New, index of last basic block.
4755 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
4756 traversing basic block chain.
4757 (BLOCK_NUM): index -> sindex.
4758 (create_basic_block_structure, create_basic_block): Declaration changed.
4759 (debug_num2bb): Declare.
4760 (expunge_block_nocompact): Declaration removed.
4761 (link_block, unlink_block, compact_blocks): Declare.
4762 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1): Modified.
4763 * cfg.c (entry_exit_blocks): Initialize new fields.
4764 (clear_edges, alloc_block, expunge_block, cached_make_edge,
4765 redirect_edge_pred, dump_flow_info, dump_edge_info,
4766 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges,
4767 free_aux_for_edges): Modified.
4768 (link_block, unlink_block, compact_blocks, debug_num2bb): New.
4769 (expunge_block_nocompact): Removed.
4770 * cfganal.c (can_fallthru, mark_dfs_back_edges, flow_call_edges_add,
4771 find_unreachable_blocks, create_edge_list, print_edge_list,
4772 verify_edge_list, flow_edge_list_print, remove_fake_successors,
4773 remove_fake_edges, flow_reverse_top_sort_order_compute,
4774 flow_depth_first_order_compute, flow_preorder_transversal_compute,
4775 flow_dfs_compute_reverse_init, flow_dfs_compute_reverse_add_bb,
4776 flow_dfs_compute_reverse_execute): Modified.
4777 * cfgbuild.c (make_edges, make_eh_edge, find_basic_blocks_1,
4778 find_basic_blocks, find_many_sub_basic_blocks, find_sub_basic_blocks):
4780 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
4781 merge_blocks_move_predecessor_nojumps,
4782 merge_blocks_move_successor_nojumps, merge_blocks,
4783 outgoing_edges_match, try_crossjump_to_edge, try_crossjump_bb,
4784 try_optimize_cfg, delete_unreachable_blocks, cleanup_cfg): Modified.
4785 * cfglayout.c (skip_insns_after_block, label_for_bb,
4786 record_effective_endpoints, scope_to_insns_finalize,
4787 fixup_reorder_chain, verify_insn_chain, cleanup_unconditional_jumps,
4788 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge,
4789 cfg_layout_duplicate_bb): Modified.
4790 * cfgloop.c (flow_loops_cfg_dump, flow_loop_dump, flow_loops_dump,
4791 flow_loop_entry_edges_find, flow_loop_exit_edges_find,
4792 flow_loop_nodes_find, flow_loop_pre_header_find, flow_loop_scan,
4793 flow_loops_find, flow_loop_outside_edge_p): Modified.
4794 * cfgrtl.c (create_basic_block_structure, create_basic_block,
4795 flow_delete_block, compute_bb_for_insn, split_block,
4796 try_redirect_by_replacing_jump, redirect_edge_and_branch,
4797 force_nonfallthru_and_redirect, tidy_fallthru_edge,
4798 back_edge_of_syntactic_loop_p, split_edge, commit_one_edge_insertion,
4799 commit_edge_insertions, commit_edge_insertions_watch_calls,
4800 dump_bb, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
4801 purge_all_dead_edges): Modified.
4802 * combine.c (combine_instructions, set_nonzero_bits_and_sign_copies,
4803 try_combine, nonzero_bits, num_sign_bit_copies, get_last_value_validate,
4804 get_last_value, reg_dead_at_p, distribute_notes, distribute_links):
4806 * conflict.c (conflict_graph_compute): Modified.
4807 * df.c (FOR_ALL_BBS): Removed.
4808 (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
4809 df_modified_p, df_analyse, df_refs_unlink, df_insn_modify,
4810 df_dump, hybrid_search_bitmap, iterative_dataflow_sbitmap): Modified.
4811 * df.h (DF_BB_INFO, DF_REF_BBNO): Modified.
4812 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
4813 calc_idoms, idoms_to_doms, calculate_dominance_info): Modified.
4814 * final.c (compute_alignments, final_scan_insn): Modified.
4815 * flow.c (verify_local_live_at_start, update_life_info,
4816 update_life_info_in_dirty_blocks, free_basic_block_vars,
4817 delete_noop_moves, calculate_global_regs_live,
4818 initialize_uninitialized_subregs, allocate_bb_life_data,
4819 regno_uninitialized, regno_clobbered_at_setjmp, mark_set_1,
4820 mark_used_reg, count_or_remove_death_notes): Modified.
4821 * function.c (thread_prologue_and_epilogue_insns): Modified.
4822 * gcse.c (struct null_pointer_info): Change typo of current_block
4824 (gcse_main, alloc_gcse_mem, compute_local_properties, compute_sets,
4825 oprs_unchanged_p, load_killed_in_block_p, record_last_reg_set_info,
4826 compute_hash_table, alloc_rd_mem, handle_rd_kill_set, compute_kill_rd,
4827 alloc_avail_expr_mem, expr_killed_p, compute_ae_kill,
4828 expr_reaches_here_p_work, expr_reaches_here_p, handle_avail_expr,
4829 classic_gcse, one_classic_gcse_pass, compute_transp, cprop,
4830 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p_work,
4831 pre_expr_reaches_here_p, insert_insn_end_bb, pre_edge_insert,
4832 pre_delete, one_pre_gcse_pass, compute_transpout,
4833 invalidate_nonnull_info, delete_null_pointer_checks_1,
4834 free_code_hoist_mem, compute_code_hoist_vbeinout,
4835 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
4836 compute_ld_motion_mems, store_ops_ok, find_moveable_store,
4837 compute_store_table, build_store_vectors, insert_insn_start_bb,
4838 insert_store, replace_store_insn, free_store_memory, store_motion):
4840 * global.c (global_alloc, global_conflicts, mark_elimination,
4841 build_insn_chain): Modified.
4842 * graph.c (print_rtl_graph_with_bb): Modified.
4843 * haifa-sched.c (sched_init): Modified.
4844 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
4845 (find_if_block, find_cond_trap, find_if_case_1, find_if_case_2,
4846 if_convert): Modified.
4847 * lcm.c (compute_antinout_edge, compute_earliest, compute_laterin,
4848 compute_insert_delete, pre_edge_lcm, compute_available,
4849 compute_farthest, compute_nearerout, compute_rev_insert_delete,
4850 pre_edge_rev_lcm, make_preds_opaque, optimize_mode_switching):
4852 * local-alloc.c (alloc_qty, local_alloc, update_equiv_regs): Modified.
4853 * loop.c (loop_dump_aux): Modified.
4854 * predict.c (combine_predictions_for_insn, estimate_probability,
4855 last_basic_block_p, process_note_prediction, process_note_predictions,
4856 note_prediction_to_br_prob, propagate_freq, counts_to_freqs,
4857 expensive_function_p, estimate_bb_frequencies,
4858 compute_function_frequency): Modified.
4859 * print-rtl.c (print_rtx): Modified.
4860 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX, instrument_edges,
4861 get_exec_counts, compute_branch_probabilities, compute_checksum,
4862 branch_prob, find_spanning_tree): Modified.
4863 * recog.c (split_all_insns, peephole2_optimize): Modified.
4864 * reg-stack.c (reg_to_stack, convert_regs_entry, compensate_edge,
4865 convert_regs_1, convert_regs_2, convert_regs): Modified.
4866 * regclass.c (scan_one_insn, regclass): Modified.
4867 * regmove.c (mark_flags_life_zones, regmove_optimize,
4868 combine_stack_adjustments): Modified.
4869 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Modified.
4870 * reload1.c (reload, reload_combine, copy_eh_notes): Modified.
4871 * reorg.c (dbr_schedule): Modified.
4872 * resource.c (find_basic_block, init_resource_info): Modified.
4873 * sbitmap.c (sbitmap_intersection_of_succs,
4874 sbitmap_intersection_of_preds, sbitmap_union_of_succs,
4875 sbitmap_union_of_preds): Modified.
4876 * sched-deps.c (init_dependency_caches): Modified.
4877 * sched-ebb.c (schedule_ebbs): Modified.
4878 * sched-rgn.c (is_cfg_nonregular, build_control_flow, debug_regions,
4879 find_rgns, compute_trg_info, init_regions, schedule_insns): Modified.
4880 * sibcall.c (optimize_sibling_and_tail_recursive_call): Modified.
4881 * ssa-ccp.c (examine_flow_edges, optimize_unexecutable_edges,
4882 ssa_ccp_substitute_constants, ssa_ccp_df_delete_unreachable_insns,
4883 ssa_const_prop): Modified.
4884 * ssa-dce.c (set_control_dependent_block_to_edge_map_,
4885 find_control_dependence, find_pdom, ssa_eliminate_dead_code): Modified.
4886 * ssa.c (remove_phi_alternative, find_evaluations,
4887 compute_dominance_frontiers_1, compute_iterated_dominance_frontiers,
4888 insert_phi_node, rename_block, convert_to_ssa, eliminate_phi,
4889 make_regs_equivalent_over_bad_edges,
4890 make_equivalent_phi_alternatives_equival,
4891 compute_conservative_reg_partition,
4892 coalesce_regs_in_successor_phi_nodes, compute_coalesced_reg_partition,
4893 rename_equivalent_regs, convert_from_ssa, for_each_successor_phi):
4896 2002-05-16 Mark Mitchell <mark@codesourcery.com>
4898 * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
4900 2002-05-16 Nick Clifton <nickc@cambridge.redhat.com>
4902 * config/arm/arm.c (arm_rtx_costs): Check for RTX being a
4903 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
4904 (arm_adjust_cost): Check for RTX being a SYMBOL_REF before
4905 calling CONSTANT_POOL_ADDRESS_P.
4906 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in code
4907 to decide whether to define __arm__ or __thumb.
4908 (THUMB_GO_IF_LEGITIMATE_ADDRESS): Check for RTX being a
4909 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
4911 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
4913 * config/arc/arc.h (CPP_PREDEFINES): Remove.
4915 (TARGET_CPU_CPP_BUILTINS): New.
4917 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
4919 * cpphash.h (cpp_macro): Move here, and make expansion a union.
4920 * cppmacro.c (cpp_macro): Remove.
4921 (enter_macro_context, replace_args, warn_of_redefinition,
4922 _cpp_create_definition, cpp_macro_definition): Update.
4924 2002-05-16 Jason Merrill <jason@redhat.com>
4926 * config/mips/mips.c (mips_output_external): Don't do sdata
4927 optimization for a variable with DECL_COMDAT set.
4929 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
4931 * config/rs6000/altivec.h: Cleanups for tighter typechecking.
4932 Cleanups for accepting modifiers on pointers.
4933 Fix predicate typos.
4934 Allow long pointers as well as int pointers.
4936 2002-05-15 Richard Henderson <rth@redhat.com>
4938 * varasm.c (merge_weak): Remove special case for extern and common.
4940 2002-05-15 Matt Hiller <hiller@redhat.com>
4942 * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
4944 * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
4945 * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
4946 * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
4947 * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
4948 * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
4949 * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
4951 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
4953 * reload1.c (forget_old_reloads_1): Do not use subreg offset.
4955 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
4957 * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
4958 ("altivec_mfvscr"): Read from VSCR.
4960 Add vscr sets for the following insns: altivec_vctuxs,
4961 altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
4962 altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
4963 altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
4964 altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
4965 altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
4966 altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
4967 altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
4968 altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
4969 altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
4970 altivec_vsum2sws, altivec_vsumsws.
4972 * config/rs6000/rs6000.h: Add VSCR fixed register.
4973 (CALL_REALLY_USED_REGISTERS): Add vscr.
4974 (CALL_USED_REGISTERS): Same.
4975 (FIXED_REGISTERS): Same.
4976 (REG_ALLOC_ORDER): Same.
4977 (reg_class): Add VSCR_REGS.
4978 (REG_CLASS_NAMES): Same.
4979 (REG_CLASS_CONTENTS): Same.
4981 (REGISTER_NAMES): Add vscr.
4982 (DEBUG_REGISTER_NAMES): Same.
4983 (ADDITIONAL_REGISTER_NAMES): Same.
4984 (FIRST_PSEUDO_REGISTER): Increment.
4985 (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
4987 2002-05-15 Jakub Jelinek <jakub@redhat.com>
4989 * fold-const.c (fold): Fix a typo.
4991 2002-05-15 Eric Botcazou <ebotcazou@multimania.com>
4993 * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
4994 comparison against the highest or lowest integer value before
4995 the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
4996 transformation and that of an unsigned comparison against 0
4999 2002-05-15 Richard Henderson <rth@redhat.com>
5001 * varasm.c (merge_weak): Error for any weakening after definition.
5002 Adjust weakening after use warning to catch more cases.
5003 (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
5004 * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
5006 Wed May 15 10:38:27 CEST 2002 Jan Hubicka <jh@suse.cz>
5008 * invoke.texi (-malign-double): Re-add lost warning.
5010 * i386-protos.h (x86_output_mi_thunk): Declare.
5011 * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
5012 * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
5014 * dwarf2out.c (output_call_frame_info): Do not skip unwind info
5015 when flag_asynchronous_unwind_tables is set.
5017 * flags.h (flag_reorder_functions): Declare.
5018 * function.c (prepare_function_start): Initialize frequnecy.
5019 * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
5020 * Makefile.in (predict.o): Add dependency on target.h and params.h
5021 * defaults.h (HOT_TEXT_SECTION_NAME,
5022 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
5023 * predict.c (choose_function_section): New function.
5024 (estimate_bb_frequencies): Use it.
5025 * toplev.c (flag_reorder_functions): New global variable.
5026 (lang_independent_options): New.
5027 (parse_options_and_default_flags): Set.
5028 * varasm.c (assemble_start_function): Bypass functdion alignment
5029 for never executed functions.
5030 * invoke.texi (-freorder-blocks, -freorder-functions): Document.
5031 (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
5032 * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
5035 Thu Jan 3 21:52:09 CET 2002 Jan Hubicka <jh@suse.cz>
5037 * predict.c: Inlude profile.h
5038 (MIN_COUNT): Rename to MIN_COUNT_FRACTION
5039 (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
5040 Use the information about maximal counter in the program.
5042 Thu Dec 20 22:14:00 CET 2001 Jan Hubicka <jh@suse.cz>
5044 * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
5045 probably_never_executed_bb_p): New functions.
5046 * cfgcleanup.c (outgoing_edges_match): Use them.
5047 * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
5048 (maybe_hot_bb_p, probably_cold_bb_p,
5049 probably_never_executed_bb_p): New functions.
5051 * function.h (function): Add new field function_frequency.
5052 * predict.c (compute_function_frequency): New function.
5053 (estimate_probability): Call it.
5055 2002-03-09 Jakub Jelinek <jakub@redhat.com>
5057 PR optimization/5172, optimization/5200
5058 * gcse.c (gcse_main): Disable store_motion.
5060 2002-05-14 Zack Weinberg <zack@codesourcery.com>
5062 * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
5063 (c_common_nodes_and_builtins): Use it.
5064 (builtin_define_with_value): New function.
5065 (cb_register_builtins): Define __SIZE_TYPE__,
5066 __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
5067 using builtin_define_with_value. Use consistent notation when
5068 defining __GXX_WEAK__.
5069 (WCHAR_TYPE_SIZE): Don't redefine.
5070 (combine_strings): Don't use WCHAR_TYPE_SIZE.
5072 * cppdefault.h: Don't provide defaults for SIZE_TYPE,
5073 PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
5074 * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
5075 * tradcpp.c (initialize_builtins): Likewise.
5076 * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
5078 * c-lex.h (builtin_define_with_value): Prototype.
5079 * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
5080 NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
5081 * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
5083 * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
5084 config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
5085 config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
5086 config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
5087 config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
5088 config/sparc/linux64.h, config/sparc/netbsd-elf.h,
5089 config/sparc/sol2-bi.h, config/sparc/sparc.h:
5090 Do not define NO_BUILTIN_SIZE_TYPE etc. Remove all references
5091 to __SIZE_TYPE__ etc from all spec strings. When this makes
5092 extra specs empty, delete them.
5094 2002-05-14 John David Anglin <dave@hiauly1.hia.nrc.ca>
5096 * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
5097 for PA8000 or generating dwarf2 call frame information.
5098 (output_call): Remove DO_FRAME_NOTES check from return pointer
5100 (following_call): Return 0 when scheduling for PA8000 or generating
5101 dwarf2 call frame information. Revise comment.
5103 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
5106 * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
5107 and __IEEE_FP_INEXACT as appropriate.
5108 (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
5109 (CPP_SPEC): Remove ieee defines.
5110 * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
5112 2002-05-14 Richard Henderson <rth@redhat.com>
5114 * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
5115 (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
5117 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
5119 * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
5121 (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
5122 CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
5123 CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
5124 CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
5125 (EXTRA_SPECS): Update.
5126 * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
5127 arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
5128 arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
5129 define TARGET_OS_CPP_BUILTINS if necessary.
5131 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
5133 * gcc.c (cpp_options): Must pass -m* and -f* options
5134 to the front end even when only preprocessing.
5135 (cc1_options): Remove redundant -lang-c.
5136 * tradcpp.c (main): Ignore -m options.
5138 * lang-specs.h: Similarly.
5140 2002-05-14 Vladimir Makarov <vmakarov@redhat.com>
5142 * genautomata.c (transform_3): Add code for transformation
5143 `(A,B,...)+C -> A+C,B,...'.
5145 Tue May 14 12:48:22 CEST 2002 Jan Hubicka <jh@suse.cz>
5147 * final.c (end_final): Do not output profile_arcs constructor, when
5148 no functions are instrumented.
5150 Tue May 14 12:38:30 CEST 2002 Jan Hubicka <jh@suse.cz>
5152 * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
5154 2002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
5156 * doc/install.texi: Remove special markup originally required for
5157 HTML generation with texi2html.
5159 2002-05-14 Andreas Schwab <schwab@suse.de>
5161 * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
5163 (UNIQUE_SECTION): Define to get small data correctly.
5165 * varasm.c (resolve_unique_section): Add third parameter
5166 flag_function_or_data_sections and use it instead of
5167 flag_function_sections.
5168 (assemble_start_function): Pass flag_function_sections.
5169 (asm_emit_uninitialised): Pass flag_data_sections.
5170 (assemble_variable): Likewise.
5172 2002-05-14 Richard Henderson <rth@redhat.com>
5174 * config/i386/i386.md: Use define_constants for unspec numbers.
5175 * config/i386/i386.c: Likewise.
5177 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
5179 * doc/contrib.texi: Update my entry.
5181 2002-05-13 Mark Mitchell <mark@codesourcery.com>
5183 * fixinc/inclhack.def (winidss_valist): Limit applicability.
5184 * fixinc/fixincl.x: Regenerated.
5185 * fixinc/tests/base/math.h: Update.
5186 * fixinc/tests/base/testing.h: Likewise.
5188 2002-05-13 Zack Weinberg <zack@codesourcery.com>
5190 * genattr.c (gen_attr): Don't emit a comma after the last
5193 2002-05-13 Richard Henderson <rth@redhat.com>
5195 * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
5197 * recog.c (peephole2_optimize): Likewise.
5199 2002-05-13 Andris Pavenis <pavenis@lanet.lv>
5201 * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
5204 2002-05-13 Jeffrey A Law (law@redhat.com)
5206 * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
5207 Update prototype and callers.
5208 (propagate_one_insn): Stack pointer adjustments kill MEMs on
5209 the mem_set_list which reference the stack pointer, as do
5210 calls to constant functions as they may clobber outgoing
5213 * i386.c (ia32_multipass_dfa_lookahead): Prototype.
5215 * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
5216 (ia32_multipass_dfa_lookahead): New function.
5218 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
5220 * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
5221 (translate_options): Remove 'V'.
5222 (process_command): Similarly.
5224 * invoke.texi: Remove documentation of 'V'.
5226 2002-05-13 Ulrich Weigand <uweigand@de.ibm.com>
5228 * config/s390/linux.h: Revert 2002-04-22 changes.
5230 2002-05-13 Scott Marks <SMarks@mobile-mind.com>
5232 * config/fr30/fr30.md: Only allow splits of immediate loads
5233 if the destination is a register.
5235 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
5237 * Makefile.in (c-common.o, cppinit.o): Update.
5238 * c-common.c: Include except.h.
5239 (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
5240 Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
5241 * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
5242 * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
5243 CPP_PREDEFINES): Handle here.
5245 * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
5246 alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
5247 alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
5248 TARGET_OS_CPP_BUILTINS.
5249 * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
5250 (CPP_SPEC, EXTRA_SPECS): Update.
5251 (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
5252 CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
5253 CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
5254 CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
5255 CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
5257 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
5258 (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
5260 2002-05-12 Zack Weinberg <zack@codesourcery.com>
5262 * emit-rtl.c (global_rtl): Update comment.
5263 (const_double_htab, const_double_htab_hash,
5264 const_double_htab_hash, lookup_const_double): New.
5265 (const_int_htab_hash, const_int_htab_eq): Remove const
5266 qualifiers, which cause tons of warnings with RTL checking on.
5267 (gen_rtx_CONST_DOUBLE): Deleted.
5268 (const_double_from_real_value): New function - bears some
5269 resemblance to the former immed_real_const_1.
5270 (immed_double_const): Moved here from varasm.c and
5272 (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
5273 (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
5274 (gen_rtx): Use immed_double_const.
5275 (init_emit_once): Initialize the const_double_htab. Use
5276 REAL_VALUE_FROM_INT where possible. Can now use
5277 CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
5278 * varasm.c (struct varasm_status): Remove x_const_double_chain.
5279 (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
5280 (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
5281 (init_varasm_status, mark_varasm_status): Don't touch
5282 x_const_double_chain.
5284 * output.h: Delete prototype for clear_const_double_mem.
5285 * real.h: Make REAL_VALUE_TYPE a macro again. Remove leading
5286 '0' slot from all CONST_DOUBLE_FORMAT definitions. Prototype
5287 const_double_from_real_value, not immed_real_const_1, and use
5288 it to define CONST_DOUBLE_FROM_REAL_VALUE. Define new macro
5290 * rtl.h (CONST_DOUBLE_CHAIN): Kill.
5291 (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
5292 (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
5293 (gen_rtx_REG): Second arg is unsigned.
5295 * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
5296 (excluded_rtx): New, return true for CONST_DOUBLE.
5297 (genmacro): Write nothing for excluded codes.
5298 * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
5299 * expr.c (expand_expr): Likewise.
5300 * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
5302 * toplev.c (rest_of_compilation): Don't call
5303 clear_const_double_mem.
5305 * config/rs6000/rs6000.c (rs6000_float_const): Delete.
5306 (rs6000_hash_constant): Remove CONST_DOUBLE special case.
5307 (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
5308 * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
5309 * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
5310 * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
5311 config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
5312 * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
5314 2002-05-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5316 * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
5318 2002-05-12 Tom Tromey <tromey@redhat.com>
5320 * tree.h (copy_node): Don't mention TREE_PERMANENT.
5322 2002-05-12 Zack Weinberg <zack@codesourcery.com>
5324 * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
5325 (scan_comma_elt): New function. Accepts whitespace in comma lists.
5326 * gensupport.h: Prototype new routines.
5327 * genattr.c (gen_attr): Use scan_comma_elt. Avoid unnecessary
5329 * genattrtab.c (n_comma_elts): Moved to gensupport.c.
5330 (next_comma_elt): Use scan_comma_elt.
5332 * config/i386/i386.md: Use new attribute notation to break up
5333 long lines in define_attr forms.
5335 2002-05-12 Richard Henderson <rth@redhat.com>
5337 * expr.c (compress_float_constant): New.
5338 (emit_move_insn): Use it.
5339 (float_extend_from_mem): New.
5340 (init_expr_once): Initialize it.
5341 * real.c (exact_real_truncate): New.
5343 * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
5344 dropped into memory; penalize for size.
5345 (RTX_COSTS): FLOAT_EXTEND is free.
5346 * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
5347 extenddfxf2, extenddftf2): Accept constants and drop them to memory.
5349 2002-05-12 Richard Henderson <rth@redhat.com>
5351 * profile.h (profile_info): Add missing extern to declaration.
5352 * profile.c (profile_info): Define it.
5354 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
5356 * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
5357 used for DImode and TImode.
5359 2002-05-11 Neil Booth <neil@daikokuya.demon.co.uk>
5361 * cpplex.c (_cpp_lex_direct): When in a directive at EOF
5364 2002-05-11 Zack Weinberg <zack@codesourcery.com>
5366 * config/rs6000/rs6000.c (rs6000_default_long_calls,
5367 rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
5368 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
5369 (rs6000_override_options): Handle -m(no-)longcall.
5370 (init_cumulative_args, output_mi_thunk): Check for both
5371 longcall and shortcall attributes on the function.
5372 (rs6000_attribute_table): Add "shortcall".
5373 (rs6000_handle_longcall_attribute): Update comment.
5374 (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
5375 altivec_expand_ternop_builtin): Add default clauses to switches
5376 to silence warnings.
5378 * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
5379 rs6000_default_long_calls. Define REGISTER_TARGET_PRAGMAS.
5380 (TARGET_OPTIONS): Add longcall and no-longcall.
5382 * config/rs6000/rs6000.md (call_nonlocal_sysv,
5383 call_value_nonlocal_sysv): Split by alternatives. One pair
5384 accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
5385 the call cookie. The other pair accepts only LR/CTR and has
5388 * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
5389 Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
5391 * config/rs6000/rs6000-c.c: New file.
5392 * config/rs6000/t-rs6000-c-rule: New file.
5393 * config/rs6000/rs6000-protos.c: Add multiple-include guard.
5394 Prototype rs6000_pragma_longcall.
5396 * doc/extend.texi: Document shortcall attribute.
5397 * doc/invoke.texi: Document -mlongcall, -mno-longcall.
5399 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
5401 * reorg.c (dbr_schedule): Remove unnecessary test.
5403 Sat May 11 14:34:35 CEST 2002 Jan Hubicka <jh@suse.cz>
5405 * i386.md (testsi to testqi spliters): New.
5407 2002-01-14 Josef Zlomek <zlomek@matfyz.cz>
5409 cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
5411 Wed Jan 9 2002 Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
5413 * basic-block.h: New flag EDGE_CAN_FALLTHRU
5414 * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
5415 that can be made fallthru.
5417 Mon Nov 12 16:25:53 CET 2001 Jan Hubicka <jh@suse.cz>
5419 * cfglayout.c (cleanup_unconditional_jumps): New static function.
5420 (cfg_layout_initialize): Use it.
5422 2002-05-11 Marek Michalkiewicz <marekm@amelek.gda.pl>
5424 * config/avr/avr.c (avr_mcu_types): Update supported devices.
5425 * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
5426 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
5428 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
5430 * dbxout.c: Fix formatting.
5431 * dependence.c: Likewise.
5433 * diagnostic.c: Likewise.
5434 * doloop.c: Likewise.
5435 * dominance.c: Likewise.
5436 * doschk.c: Likewise.
5437 * dwarf2asm.c: Likewise.
5438 * dwarf2out.c: Likewise.
5439 * dwarfout.c: Likewise.
5441 2002-05-10 Richard Henderson <rth@redhat.com>
5443 * final.c (end_final): Tidy whitespace. Don't honor flag_pack_struct.
5444 Convert integers constants as needed. Replace "nwords" field with
5446 (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
5447 * function.h: Fix typo in comment.
5448 * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
5450 2002-05-10 Roger Sayle <roger@eyesopen.com>
5452 * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
5453 into the equivalent (signed char)c > 0.
5455 2002-05-10 Janis Johnson <janis187@us.ibm.com>
5457 * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
5458 (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
5459 (struct prefetch_info): Fix spelling of member bytes_accessed.
5460 (emit_prefetch_instructions): Make dump messages more regular;
5461 restructure code to add more dump messages; use new macros for
5462 heuristics. (There are no code generation changes in any of this).
5464 2002-05-10 David S. Miller <davem@redhat.com>
5466 * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
5467 (struct rtx_def): Update unchanging flag comment.
5468 * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
5469 * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
5470 to be handled to INSN too.
5471 (dbr_schedule): Likewise.
5472 * resource.c (next_insn_no_annul): Likewise.
5474 * cse.c (rtx_cost): Remove multiplication by power of 2 special
5477 2002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
5479 * doc/install.texi (Specific, *-*-solaris2*): Update passus on
5480 setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
5481 (possibly) work around broken /bin/sh.
5483 2002-05-10 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5485 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
5486 . as N64/N32 libgcc_s.so subdirs.
5488 2002-05-10 David S. Miller <davem@redhat.com>
5490 * config/sparc/sparc.md: Use define_constants for unspec numbers.
5492 * rtl.h (struct rtx_def): Document unchanging and in_struct flags
5494 (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
5496 (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
5497 * doc/rtl.texi: Document these macros more accurately.
5498 * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
5499 JUMP_INSNs and CALL_INSNs.
5500 * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
5501 or INSN_FROM_TARGET_P if the code is appropriate.
5503 2002-05-10 Marek Michalkiewicz <marekm@amelek.gda.pl>
5505 * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
5506 before using SYMBOL_REF_FLAG (addr).
5508 * config/avr/avr-protos.h (avr_io_address_p): Declare.
5509 * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
5510 Make non-static. Update all callers.
5511 * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
5512 New insns to clear/set/test a single bit in I/O address space.
5514 2002-05-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5516 * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
5518 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
5520 * Makefile.in: Update.
5521 * c-common.c (flag_iso, flag_undef, cb_register_builtins,
5522 builtin_define_std): New.
5523 (c_common_init): Register CPP builtins callback.
5524 * c-common.h (flag_iso, flag_undef): New.
5525 * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
5526 * c-lex.c: Don't include target.h.
5527 (cb_register_builtins): Move to c-common.c.
5528 (init_c_lex): Don't register hook here.
5529 * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
5530 (cpp_define, cpp_assert): Remove.
5531 * gcc.c (cc1_options): Pass -undef to front end.
5532 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
5533 (TARGET_INITIALIZER): Update.
5534 * target.h (struct cpp_reader): Don't predeclare.
5535 (struct gcc_target): Remove cpp builtin hook.
5536 * tree.c (default_register_cpp_builtins): Remove.
5540 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
5542 * cppexp.c (_cpp_expand_op_stack): Set op_limit.
5544 2002-05-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5546 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
5547 (SHLIB_LINK, SHLIB_INSTALL): Adjust.
5549 2002-05-09 Jakub Jelinek <jakub@redhat.com>
5551 * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
5552 * config/sparc/libgcc-sparc-glibc.ver: New file.
5553 * config/cris/t-linux (SHLIB_MAPFILES): Remove.
5554 * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
5556 2002-05-09 Jakub Jelinek <jakub@redhat.com>
5559 * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
5560 * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
5561 shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
5563 * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
5564 * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
5565 * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
5566 * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
5568 2002-05-09 Richard Henderson <rth@redhat.com>
5570 * config/ia64/ia64.md: Use define_constants for unspec numbers.
5571 * config/ia64/ia64.c: Likewise.
5573 2002-05-09 Richard Sandiford <rsandifo@redhat.com>
5575 * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
5576 (save_restore_insns): Likewise.
5577 (mips_expand_prologue, mips_expand_epilogue): Update callers.
5578 (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
5580 Thu May 9 11:50:09 2002 Jeffrey A Law (law@redhat.com)
5582 * athlon.md, k6.md, pentium.md, ppro.md): New files.
5583 * i386.md: Move scheduling information into new files.
5585 * i386.md (type attribute): Add "rotate" for rotate insns.
5586 (rotate insns): Set type to "rotate".
5587 (various attributes and function units): Treat rotate like shift.
5588 (pent_pair attribute): Only rotates by one bit position are
5590 (sbb insns): Explicitly set pent_pair attribute on a couple
5591 that were missing it.
5593 Thu May 9 18:29:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
5595 * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
5596 make sure that buffer starts on odd word address.
5597 (sh_va_arg): Skip odd fp registers when reading a double precision
5600 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
5602 * tree.h (preserve_data, object_permanent_p, type_precision):
5605 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
5607 * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
5608 * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
5610 * cpp.texi: Update for removal of obsolete features.
5612 Thu May 9 07:46:18 2002 Jan Hubicka <jh@suse.cz>
5613 Jeffrey A Law (law@redhat.com)
5615 * i386.c (ia32_use_dfa_pipeline_interface): New function. Use
5616 the DFA interface for Pentium processors.
5617 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
5618 (attr_pent_pair, ix86_pent_find_pair): Remove.
5619 (ix86_sched_reorder_pentium): Remove.
5620 (ix86_sched_reorder): Remove reordering for Pentium.
5621 * i386.md (Pentium scheduling): Rewrite using DFA description.
5623 Thu May 9 14:55:39 CEST 2002 Jan Hubicka <jh@suse.cz>
5625 * cfganal.c (can_fallthru): Fix fast path.
5626 * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
5627 with edges to the next block.
5629 Thu May 9 14:52:45 CEST 2002 Jan Hubicka <jh@suse.cz>
5630 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
5632 * final.c (end_final): Use C trees to output data structures for profiling.
5634 * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
5635 (profile.o): New dependency profile.h
5636 (final.o): New dependency profile.h
5637 * profile.h: New file. New global structure profile_info.
5638 * final.h (count_edges_instrumented_now): Declare.
5639 (current_function_cfg_checksum): Declare.
5640 (function_list): New structure.
5641 (functions_head, functions_tail): New static variables.
5642 (end_final): Emits more data, removed some -ax stuff.
5643 (final): Stores function names and chcksums.
5644 * gcov-io.h (__write_gcov_string): New function.
5645 (__read_gcov_string): New function.
5646 * gcov.c (read_profile): New function.
5647 (create_program_flow_graph): Uses read_profile instead of reading
5649 (read_files): Removed da_file checking, it's done by read_profile now.
5650 * libgcc2.c (bb_function_info): New structure.
5651 (bb): New field in structure, removed some -ax stuff.
5652 (__bb_exit_func): Changed structure of da_file.
5653 * profile.c (count_edges_instrumented_now): New global variable.
5654 (current_function_cfg_checksum): New global variable.
5655 (max_counter_in_program): New global variable.
5656 (get_exec_counts): New function.
5657 (compute_checksum): New function.
5658 (instrument_edges): Sets count_edges_instrumented_now.
5659 (compute_branch_probabilities): Uses get_exec_counts instead of
5661 (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
5662 (init_branch_prob): Removed da_file checking, done in get_exec_counts
5664 (end_branch_prob): Removed da_file checking, done in get_exec_counts
5666 * gcov.texi: Updated information about gcov file format.
5668 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
5670 * sbitmap.c: Fix formatting.
5672 * scan-decls.c: Likewise.
5673 * sched-deps.c: Likewise.
5674 * sched-ebb.c: Likewise.
5675 * sched-rgn.c: Likewise.
5676 * sched-vis.c: Likewise.
5677 * sdbout.c: Likewise.
5678 * sibcall.c: Likewise.
5679 * simplify-rtx.c: Likewise.
5681 * ssa-ccp.c: Likewise.
5682 * ssa-dce.c: Likewise.
5684 * stor-layout.c: Likewise.
5685 * stringpool.c: Likewise.
5687 2002-05-09 David S. Miller <davem@redhat.com>
5689 * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
5691 2002-05-07 David S. Miller <davem@redhat.com>
5693 * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
5694 * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
5695 * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
5696 library implementation clobbers the output before the inputs
5697 are fully consumed, use stack temporary for the output.
5699 2002-05-09 Jason Thorpe <thorpej@wasabisystems.com>
5701 * config/netbsd.h (CPP_SPEC): Remove.
5702 * config/i386/netbsd-elf.h (CPP_SPEC): Define.
5703 * config/i386/netbsd.h (CPP_SPEC): Define.
5704 * config/ns32k/netbsd.h (CPP_SPEC): Define.
5705 * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
5706 * config/sparc/netbsd.h (CPP_SPEC): Define.
5707 * config/vax/netbsd.h (CPP_SPEC): Define.
5709 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
5711 * read-rtl.c: Fix formatting.
5713 * recog.c: Likewise.
5714 * regclass.c: Likewise.
5715 * regmove.c: Likewise.
5716 * reg-stack.c: Likewise.
5717 * reload1.c: Likewise.
5718 * reload.c: Likewise.
5719 * resource.c: Likewise.
5720 * rtlanal.c: Likewise.
5722 * rtl-error.c: Likewise.
5724 2002-05-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
5726 * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
5727 * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
5729 2002-05-08 Bernd Schmidt <bernds@redhat.com>
5731 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
5732 use __SSE2__ macro instead.
5733 * config/i386/xmmintrin.h: Likewise.
5735 2002-05-08 Janis Johnson <janis187@us.ibm.com>
5737 * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
5738 and use it in all invocations of these macros. Clean up comments.
5739 * rtl.c (rtl_check_failed_flag): Add an argument for the name
5740 of the flag access macro whose check failed.
5741 * doc/rtl.texi (Flags): Document additional flag uses.
5743 2002-05-08 Robert Spier <rspier@pobox.com>
5744 Neil Booth <neil@daikokuya.demon.co.uk>
5746 PR preprocessor/6521
5747 * cppfiles.c (handle_missing_header): Don't do anything
5748 different for <> includes.
5750 * cppopts.texi: Update documentation for -MG.
5752 2002-05-08 Neil Booth <neil@daikokuya.demon.co.uk>
5754 * cpplex.c (cpp_interpret_charconst): Truncate as well as
5757 * cpp.texi: Clarify multichar charconst valuation.
5759 2002-05-08 Mark Mitchell <mark@codesourcery.com>
5761 * doc/invoke.texi: Document -mwindiss option.
5763 2002-05-08 Jason Merrill <jason@redhat.com>
5765 * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
5767 * dwarf2out.c (gen_type_die): Abort on broken recursion.
5770 * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
5773 2002-05-08 Nick Clifton <nickc@cambridge.redhat.com>
5775 * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
5776 little-endian multilibs to override arm/thumb multilibs.
5777 Do not build hardware floating point multilibs, nor apcs-26
5778 multilibs for the Thumb.
5780 2002-05-08 Mark Mitchell <mark@codesourcery.com>
5783 * varasm.c (mark_weak): New function.
5784 (merge_weak): Use it. Do not call declare_weak.
5785 (declare_weak): Use merge_weak.
5787 Wed May 8 13:12:11 CEST 2002 Jan Hubicka <jh@suse.cz>
5789 * cse.c (dead_libcall_p): Update counts.
5790 (delete_trivially_dead_insns): Update call of dead_libcall_p.
5792 Wed May 8 11:08:50 CEST 2002 Jan Hubicka <jh@suse.cz>
5794 * cfglayout.c (function_tail_eff_head): Rename to ...
5795 (function_footer): ... this one.
5796 (unlink_insn_chain): New functions.
5797 (label_for_bb): Only call block_label and emit debug message.
5798 (record_effective_endpoints): Actually unlink the headers and footers.
5799 (fixup_reorder_cahin): Re-insert the unlinked sequences.
5800 (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
5801 * cfglayout.h (struct reorder_block_def): New fields footer/header;
5802 remove eff_head/eff_end.
5803 * rtl.h (set_first_insn): Declare.
5804 * emit-rtl.c (set_first_insn): New function.
5806 * cfglayout.c (fixup_reorder_chain): Dump duplicated
5807 (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
5808 cfg_layout_duplicate_bb): New global function.
5809 (duplicate_insn_chain): New static function.
5810 * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
5811 cfg_layout_duplicate_bb): Declare.
5812 (struct reorder_block_def): Add "original" field.
5813 * emit-rtl.c (emit_copy_of_insn_after): New function.
5814 * rtl.h (emit_copy_of_insn_after): Declare.
5816 * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
5817 (fixup_reorder_chain): properly handle edges to exit block.
5819 Wed May 8 11:10:31 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5820 Jan Hubicka <jh@suse.cz>
5822 * basic-block.h (note_prediction_to_br_prob): declare.
5823 * c-semantics.c: Inlucde predit.h
5824 (expand_stmt): predict GOTO_STMT as not taken.
5825 * cfgcleanup.c: (delete_unreachable_blocks): Make global.
5826 (cleanup_cfg): Do not free tail_recursion_list.
5827 * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
5828 (flow_delete_block): Kill predictions past end of basic block.
5829 * output.h (delete_unreachable_blocks): Declare.
5830 * predict.c (predicted_by_p, process_note_predictions,
5831 process_note_prediction, last_block_p): New function.
5832 (estimate_probability): Bypass loop on PRED_CONTINUE;
5833 do not handle noreturn heuristics; kill PRED_RETURN; add
5835 * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
5836 PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
5837 * predict.h (IS_TAKEN): New constant.
5838 * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
5839 * rtl.c (NOTE_INSN_PREDICTION): New.
5840 * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
5842 (insn_note): add NOTE_INSN_PREDICTION.
5843 * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
5844 CFG; free tail_recursion_label_list.
5845 * stmt.c: Include predict.h;
5846 (return_prediction): New.
5847 (expand_value_return): Use it.
5848 * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
5850 2002-05-08 Richard Sandiford <rsandifo@redhat.com>
5852 * config/mips/mips.md: Name the unspecs with define_constant.
5853 (*HILO_delay): Rename to 'hilo_delay' (no star).
5854 (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
5855 (reload_outdi, reload_outsi): Likewise.
5857 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
5859 * toplev.c: Fix formatting.
5861 2002-05-07 Janis Johnson <janis187@us.ibm.com>
5863 * config.in (ENABLE_RTL_FLAG_CHECKING): New.
5864 * configure.in (ac_rtlflag_checking): New.
5865 * doc/install.texi (--enable-checking): Document RTL flag checking.
5867 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
5869 * c-common.c (c_common_init): Set options->unsigned_wchar.
5870 * cppinit.c (cpp_create_reader): Default unsigned_wchar,
5871 group target dependencies.
5872 (init_builtins, cpp_handle_option): Update.
5873 * cpplex.c (cpp_interpret_charconst): Update.
5874 * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
5875 signed_char to unsigned_char, group target dependencies.
5876 * defaults.h (WCHAR_UNSIGNED): Remove.
5877 * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
5879 * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
5880 i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
5881 i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
5882 i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
5883 sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
5885 * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
5887 2002-05-07 Mark Mitchell <mark@codesourcery.com>
5889 * fixinc/inclhack.def (windiss_math1): New fix.
5890 (windiss_math2): Likewise.
5891 (windiss_valist): Likewise.
5892 * fixinc/fixincl.x: Regenerated.
5894 2002-05-07 Andreas Jaeger <aj@suse.de>
5896 * genautomata.c (output_internal_min_issue_delay_func): Add
5897 ATTRIBUTE_UNUSED to avoid warning with empty dfa.
5898 (output_internal_trans_func): Likewise.
5900 Tue May 7 10:06:22 2002 Jeffrey A Law (law@redhat.com)
5902 * pa.c (hppa_profile_hook): Use force_reg to get the address
5903 of the profile hook into an appropriate pseudo register.
5905 2002-05-07 Mark Mitchell <mark@codesourcery.com>
5907 * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
5908 (LINK_START_SPEC): Handle it.
5909 (LINK_OS_SPEC): Likewise.
5910 (CPP_SPEC): Likewise.
5911 (STARTFILE_SPEC): Likewise.
5912 (LIB_SPEC): Likewise.
5913 (ENDFILE_SPEC): Likewise. Do not assume crtsavres.o is used on
5915 (CRTSAVRES_DEFAULT_SPEC): New macro.
5916 (LIB_WINDISS_SPEC): New macro.
5917 (CPP_OS_WINDISS_SPEC): Likewise.
5918 (STARTFILE_WINDISS_SPEC): Likewise.
5919 (ENDFILE_WINDISS_SPEC): Likewise.
5920 (LINK_START_WINDISS_SPEC): Likewise.
5921 (LINK_OS_WINDISS_SPEC): Likewise.
5922 * config/rs6000/windiss.h: New file.
5924 2002-05-07 Aldy Hernandez <aldyh@redhat.com>
5926 * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
5928 2002-05-06 David S. Miller <davem@redhat.com>
5930 * config/sparc/sparc.md (shift insns): Do not mask off
5931 second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
5934 2002-05-06 Richard Henderson <rth@redhat.com>
5937 * expr.c (highest_pow2_factor_for_type): New.
5938 (expand_assignment): Use it.
5940 2002-05-06 Aldy Hernandez <aldyh@redhat.com>
5942 * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
5944 ("altivec_mfvscr"): Same.
5946 2002-05-06 Janis Johnson <janis187@us.ibm.com>
5948 * rtl.h (struct rtx_def): Update comments.
5949 (RTL_FLAG_CHECK[12345678]): New. (rtl_check_failed_flag): Declare.
5950 (RTL_FLAG): New. (CLEAR_RTX_FLAGS): New. (flag access macros): Use
5951 RTL_FLAG_CHECK macros with list of expected RTL codes.
5952 * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
5953 (rtl_check_failed_flag): New.
5954 * reload1.c (reload): Use REG macro before changing rtx to MEM.
5955 (reload_cse_noop_set_p): Check rtx code before using access macro.
5956 * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
5957 before using access macro.
5959 2002-05-06 Janis Johnson <janis187@us.ibm.com>
5961 * doc/rtl.texi (Flags): Update to reflect current usage.
5963 2002-05-06 Roger Sayle <roger@eyesopen.com>
5966 * fold-const.c (sign_bit_p): New function.
5967 (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
5968 (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
5969 Reapply fold when converting (A & C) == C into (A & C) != 0.
5970 (fold_binary_op_with_conditional_arg): Fix typo in comment.
5972 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
5974 * c-common.c (warn_multichar): New.
5975 (c_common_init): Set CPP's warn_multichar.
5976 * c-common.h (warn_multichar): New.
5977 * c-decl.c (warn_multichar): Remove.
5978 * c-lex.c (lex_charconst): Update.
5979 * c-tree.h (warn_multichar): Remove.
5980 * cppexp.c (eval_token): Sign-extend charconst value.
5981 * cppinit.c (cpp_create_reader): Set warn_multichar.
5982 * cpplex.c (cpp_interpret_charconst): Don't sign-extend
5983 each character. Update prototype. Sign-extend the result.
5984 * cpplib.h: Fix conditions.
5985 (struct cpp_options): Add new warning flag.
5986 (cpp_interpret_charconst): Update prototype.
5988 * cpp.texi: Update documentation.
5990 2002-05-06 Vladimir Makarov <vmakarov@redhat.com>
5992 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
5993 Fix typo in usage of allof instead of unit.
5995 2002-05-06 Richard Henderson <rth@redhat.com>
5997 * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
5998 and any jump or call for IN.
6000 2002-05-06 Bernd Schmidt <bernds@redhat.com>
6002 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
6004 * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
6006 2002-05-06 Roger Sayle <roger@eyesopen.com>
6008 * fold-const.c (lshift-double): Cast the high word to an unsigned
6009 HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
6010 (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
6011 avoid compiler warning. (fold): Remove redundant code from
6012 BIT_AND_EXPR as integer operands are canonicalized to be arg1.
6014 2002-05-06 Jeff Law <law@redhat.com>
6016 * pa-protos.h (hppa_fpstore_bypass_p): Declare.
6017 * pa.c (pa_adjust_cost): Remove all true dependency cost
6018 adjustments. Also remove support for non-DFA scheduling.
6019 * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
6020 to adjust true dependency costs. Update various comments.
6021 (7100lc, 7200, 7300 scheduling): Simplify by combining the
6022 FP ALU & MPY units into a single unit.
6024 2002-05-06 Catherine Moore <clm@redhat.com>
6026 * config/v850/v850.c (compute_register_save_size): Make sure
6027 to count all of the registers that will be saved.
6029 Mon May 6 18:03:11 CEST 2002 Jan Hubicka <jh@suse.cz>
6031 * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
6033 2002-05-06 David S. Miller <davem@redhat.com>
6035 * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
6036 allow result to overlap input operands in memory.
6038 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
6041 * cpp.texi: Update multichar charconst docs.
6043 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
6045 * cpplex.c (cpp_interpret_charconst): Sign-extend each
6046 character. Don't ignore excess characters. Treat
6047 multicharacter character constants as signed.
6048 (cpp_parse_escape): Clarify diagnostic.
6050 2002-05-05 Jakub Jelinek <jakub@redhat.com>
6052 * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
6053 use add instead of shift.
6054 (ashldi3_sp64): Likewise.
6055 (ashlsi3_const1, ashldi3_const1): Remove.
6056 * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
6057 * config/sparc/sparc.c (const1_operand): New.
6059 2002-05-05 Jason Thorpe <thorpej@wasabisystems.com>
6061 * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
6063 2002-05-05 Jakub Jelinek <jakub@redhat.com>
6066 * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
6068 2002-05-05 Richard Henderson <rth@redhat.com>
6070 * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
6071 memory latency adjustments.
6072 (alpha_variable_issue): Remove.
6073 (alpha_use_dfa_pipeline_interface): New.
6074 (alpha_multipass_dfa_lookahead): New.
6075 * config/alpha/alpha.md: Remove define_function_unit scheduling;
6076 include new dfa scheduling.
6077 (attr type): Add none.
6079 * config/alpha/ev4.md: New.
6080 * config/alpha/ev5.md: New.
6081 * config/alpha/ev6.md: New.
6083 2002-05-05 David S. Miller <davem@redhat.com>
6085 * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
6087 2002-05-05 Kazu Hirata <kazu@cs.umass.edu>
6089 * cse.c: Fix formatting.
6090 * emit-rtl.c: Likewise.
6092 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
6094 * genautomata.c (initiate_states): Add additional guard to
6095 initialize `units_array'.
6097 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
6099 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
6100 process_unit_to_form_the_same_automaton_unit_lists,
6101 form_the_same_automaton_unit_lists
6102 check_unit_distributions_to_automata): New prototypes and
6104 (check_automata): Rename it into `check_automata_insn_issues'.
6105 (unit_decl): New fields `the_same_automaton_unit' and
6106 `the_same_automaton_message_reported_p'.
6107 (unit_decl_t): New typedef.
6108 (the_same_automaton_lists): New gloval variable.
6109 (unit_regexp, unit_set_el, units_array, units_cmp,
6110 output_get_cpu_unit_code_func): Use the typedef.
6111 (evaluate_max_reserv_cycles): Increment
6112 `description->max_insn_reserv_cycles'.
6113 (initiate_states): Don't increment `max_cycles_num'.
6114 (transform_insn_regexps): Move code around transformation of
6115 regexps from `generate'.
6116 (generate): Remove call of `transform_insn_regexps'.
6117 (expand_automata): Call `transform_insn_regexps' and
6118 `check_unit_distributions_to_automata'. Check errors before
6121 * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
6122 automaton `ultrasparc3_1'.
6124 2002-05-05 Neil Booth <neil@daikokuya.demon.co.uk>
6126 * c-common.c (c_common_init): Set up CPP arithmetic.
6127 * cppinit.c (cpp_create_reader): Default CPP arithmetic to
6128 something reasonable for the host.
6129 (sanity_checks): Add checks.
6130 (cpp_read_main_file): Call sanity_checks() from here...
6131 (cpp_post_options): ... not here.
6132 * cpplex.c (cpp_interpret_charconst): Get max_chars right.
6133 * cpplib.h (struct cpp_options): New member int_precision.
6135 2002-05-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6137 * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
6139 2002-05-04 David S. Miller <davem@redhat.com>
6141 * config/sparc/linux.h, config/sparc/linux64.h
6142 (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
6144 * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
6146 * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
6148 * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
6151 2002-05-05 Tim Josling <tej@melbpc.org.au>
6153 * treelang; New directory for new sample language treelang.
6155 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
6157 * Makefile.in (c-lex.o): Update.
6158 * c-lex.c: Include target.h.
6159 (cb_register_builtins): New.
6160 (init_c_lex): Set builtins callback.
6161 * c-lex.h (cpp_define, cpp_assert): New prototypes.
6162 * cppinit.c (init_builtins): Use callback, including for
6164 * cpplib.h (struct cpp_callbacks): New member.
6165 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
6166 (TARGET_INITIALIZER): Update.
6167 * target.h (struct gcc_target): New hook.
6168 * tree.c (default_register_cpp_builtins): New.
6169 * tree.h (default_register_cpp_builtins): New.
6171 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
6173 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
6175 * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
6176 (cpp_post_options): Move sanity checks to...
6177 (sanity_checks): New.
6178 * cpplex.c (maybe_read_ucs): Fix prototype.
6179 (parse_string, cpp_parse_escape): Cast for %c format specifier.
6180 * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
6183 2002-05-04 Bernd Schmidt <bernds@redhat.com>
6185 * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
6186 builtins. Use V2DI patterns instead of TI for logical operations.
6187 (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
6188 Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
6189 (ix86_expand_builtins): Change the pattern used for movntdq.
6190 * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
6191 sse2_nandv2di3): New patterns.
6192 (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
6194 (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
6195 (cvtdq2pd): Correct mode on operand 1.
6196 (sse2_umulsidi3): Describe without unspec.
6197 (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
6199 (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
6200 (ashlv2di3): Likewise, from sse2_ashlv2di3.
6201 (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
6202 ashlv4si3, ashlv2di3): Use SImode for shift count.
6203 (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
6204 lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
6206 * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
6208 (__m128i, __m128d): New macros.
6209 (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
6210 _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
6211 _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
6212 _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
6213 _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
6214 _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
6215 _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
6216 _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
6217 _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
6218 _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
6219 _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
6220 _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
6221 _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
6222 _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
6223 _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
6224 _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
6225 _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
6226 _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
6227 _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
6228 _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
6229 _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
6230 _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
6231 _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
6232 _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
6233 _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
6234 _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
6235 _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
6236 _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
6237 _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
6238 _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
6239 _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
6240 _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
6241 _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
6242 _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
6243 _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
6244 _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
6245 _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
6247 (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
6248 _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
6250 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
6252 * dwarf2out.c: Fix formatting.
6253 * varasm.c: Likewise.
6255 2002-05-04 David Edelsohn <edelsohn@gnu.org>
6258 * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
6259 clobber and use result as temporary value.
6261 Sat May 4 13:20:54 CEST 2002 Jan Hubicka <jh@suse.cz>
6263 * expr.c (force_operand): Use expand_simple_* to handle more
6266 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
6268 * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
6270 (lex_charconst): Update for change in prototype of
6271 cpp_interpret_charconst. Extend from cppchar_t to HOST_WIDE_INT
6273 * cpphash.h (BITS_PER_CPPCHAR_T): New.
6274 * cppinit.c (cpp_create_reader): Initialize them for no
6275 change in semantics.
6276 (cpp_post_options): Add sanity checks.
6277 * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
6278 and truncation issues. Calculate in type cppchar_t.
6279 (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
6280 (cpp_interpret_charconst): Calculate in type cppchar_t. Handle
6281 run-time dependent precision correctly. Return whether the
6282 result is signed or not.
6283 * cpplib.c (dequote_string): Use cppchar_t; update.
6284 * cpplib.h (cppchar_signed_t): New.
6285 struct cpp_options): New precision members.
6286 (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
6287 * cppexp.c (eval_token): Update.
6289 2002-05-03 David S. Miller <davem@redhat.com>
6291 * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
6292 * config/sparc/sparc.c (sparc_rtx_costs): New function
6293 implementing RTX_COSTS and CONST_COSTS.
6294 * config/sparc/sparc.h (CONST_COSTS): Delete.
6295 (RTX_COSTS_CASES): Define.
6296 (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
6299 * config/sparc/sparc.md (DFA schedulers): Split out...
6300 * config/sparc/cypress.md, config/sparc/hypersparc.md,
6301 config/sparc/sparclet.md, config/sparc/supersparc.md,
6302 config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
6304 * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
6305 checks on it, always defined for Sparc.
6307 * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
6308 Tweak, and add more detailed comments.
6310 2002-05-03 Zack Weinberg <zack@codesourcery.com>
6312 * Re-apply patch accidentally reverted with
6313 DFA scheduler merge: remove all rules and variables to slurp
6314 source files out of libiberty and rebuild them with HOST_CC.
6315 ($(HOST_PREFIX_1)varray.o): New rule.
6316 (genattrtab rule): Word wrap.
6318 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
6320 * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
6321 (CPP_SUBTARGET_SPEC): Define.
6322 (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
6323 cpp_subtarget specs.
6324 (CPP_SPEC): Redefine to include %(cpp_subtarget).
6326 2002-05-03 David S. Miller <davem@redhat.com>
6328 * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
6329 * target.h (struct gcc_target): Delete cycle_display member.
6331 * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
6332 (rtx_needs_barrier): Delete reference to cycle_display unspec.
6333 (ia64_sched_reorder2): Mention need for cycle display handling
6334 once such notes exist.
6336 2002-05-03 Richard Henderson <rth@redhat.com>
6338 * real.c (etoasc): Strip most trailing zeros for clarity.
6339 * sched-vis.c: Include real.h.
6340 (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
6341 * Makefile.in (sched-vis.o): Add real.h.
6343 2002-05-03 David S. Miller <davem@redhat.com>
6345 * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
6348 2002-05-03 Aldy Hernandez <aldyh@redhat.com>
6350 * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
6351 when we get an out of range literal.
6352 (altivec_expand_ternop_builtin): Same.
6353 (altivec_expand_unop_builtin): Same.
6354 (altivec_expand_builtin): Same, for dss.
6355 (altivec_expand_builtin): Use trees instead of rtl when
6356 determining literal argument validity.
6358 2002-05-03 David S. Miller <davem@redhat.com>
6360 Delete cycle display scheduling hook.
6361 * config/ia64/ia64.c (ia64_cycle_display,
6362 TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
6363 (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
6364 and use emit_insn_before instead of ia64_emit_insn_before.
6365 * config/ia64/ia64.md (unspec usage): Delete cycle display.
6366 (cycle_display): Delete insn pattern.
6367 * config/sparc/sparc.md (unspec usage): Delete cycle display.
6368 (cycle_display): Delete insn pattern.
6369 * config/sparc/sparc.c (sparc_cycle_display,
6370 TARGET_SCHED_CYCLE_DISPLAY): Delete.
6371 * doc/md.texi (cycle_display): Don't mention.
6372 * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
6374 2002-05-03 Richard Henderson <rth@redhat.com>
6376 * recog.c (store_data_bypass_p, if_test_bypass_p): New.
6377 * recog.h: Declare them.
6379 * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
6380 * config/sparc/sparc.md: Use store_data_bypass_p instead.
6381 * config/sparc/sparc-protos.h: Update.
6383 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
6385 * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
6386 -D__arch64__. Add -D_LP64.
6387 (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
6389 (CPP_ARCH64_SPEC): Likewise.
6390 (NO_BUILTIN_PTRDIFF_TYPE): Undef.
6391 (NO_BUILTIN_SIZE_TYPE): Undef.
6393 2002-05-03 Vladimir Makarov <vmakarov@redhat.com>
6395 * genautomata.c (min_issue_delay_pass_states): Change return type
6397 (min_issue_delay_pass_states): Change the algorithm.
6398 (min_issue_delay): Set up min_insn_issue_delay for the state.
6399 (output_min_issue_delay_table): Interchange the nested loops and
6400 and initiate min_insn_issue_delay for states.
6402 Fri May 3 22:59:15 CEST 2002 Jan Hubicka <jh@suse.cz>
6404 * cfgcleanup.c (try_optimize_cfg): Call merge_block only when
6407 Fri May 3 22:53:37 CEST 2002 Jan Hubicka <jh@suse.cz>
6409 * i386.c (expand_movstr, expand_clrstr): Fix inline-all-stringops
6412 2002-05-03 Richard Henderson <rth@redhat.com>
6415 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
6416 noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
6417 noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
6418 code before JUMP, not EARLIEST.
6420 2002-05-03 Joseph S. Myers <jsm28@cam.ac.uk>
6422 * c-format.c (check_format_info_main): Don't check for presence of
6423 parameter for * width until after operand number has been read,
6424 and only check for it if format parameters are available.
6427 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
6429 * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
6430 (LINK_SPEC): Undef before defining.
6432 2002-05-03 Jakub Jelinek <jakub@redhat.com>
6434 PR preprocessor/6489
6435 * tradcpp.c (fixup_newlines): New.
6436 (main, finclude): Use it.
6438 2002-05-03 Richard Sandiford <rsandifo@redhat.com>
6440 * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
6441 * config/mips/mips.c (mips_unique_section): Strip encoding from
6444 2002-05-03 Jakub Jelinek <jakub@redhat.com>
6446 * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
6449 2002-05-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6451 * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
6452 (Specific): Removed buildstats references.
6453 (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
6454 (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
6455 Accomodate Solaris versions beyond 8.
6456 (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
6457 (Specific, *-*-solaris2.8): Removed, obsolete.
6459 2002-05-03 Jakub Jelinek <jakub@redhat.com>
6462 * config/sparc/sparc.h (leaf_reg_remap): Remove const.
6463 (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
6464 fill leaf_reg_remap with identity.
6465 * config/sparc/sparc.c (leaf_reg_remap): Remove const.
6467 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
6469 * config/h8300/crti.asm: Remove trailing spaces.
6470 * config/h8300/h8300.c: Likewise.
6471 * config/h8300/lib1funcs.asm: Likewise.
6473 2002-05-02 Jason Merrill <jason@redhat.com>
6475 * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
6476 * c-decl.c (c_init_decl_processing): Use it.
6477 * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
6478 * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
6479 * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
6481 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
6483 * regrename.c: Fix formatting.
6486 Fri May 3 13:34:43 CEST 2002 Jan Hubicka <jh@suse.cz>
6488 * i386.md (attribute memory): Handle compares properly.
6490 Fri May 3 10:51:38 CEST 2002 Jan Hubicka <jh@suse.cz>
6492 * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
6495 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
6497 * function.c: Fix formatting.
6499 2002-05-02 Jan Hubicka <jh@suse.cz>
6501 * haifa-sched.c (schedule_insn): Print table of instructions and
6503 (sched_block): Do not print ready list at verbosity level 1.
6504 * sched-vis.c (print_insn): Make global.
6505 * sched-ebb.c (ebb_print_insn): Rename from...
6506 (print_insn): ... this one.
6507 * sched-int.h (print_insn): Declare
6509 2002-05-02 Richard Henderson <rth@redhat.com>
6511 * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
6512 emitted by cycle_display.
6514 2002-05-02 Loren J. Rittle <ljrittle@acm.org>
6516 * doc/install.texi (*-*-freebsd*): Update to latest status.
6518 2002-05-02 Jakub Jelinek <jakub@redhat.com>
6521 * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
6522 * config/float-sparc.h: Assume 128-bit long double if
6523 __LONG_DOUBLE_128__ is defined.
6525 2002-05-02 Vladimir Makarov <vmakarov@redhat.com>
6527 * genattrtab.c (write_function_unit_info): Add a dummy element
6528 when num_units == 0.
6530 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
6532 * predict.c: (propagate_freq, estimate_bb_frequencies): Use
6533 TYPE_MODE (double_type_node) instead of DFmode.
6535 Thu May 2 19:50:04 CEST 2002 Jan Hubicka <jh@suse.cz>
6537 * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
6539 * toplev.c (rest_of_compilation): Revert Richard's patch.
6541 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
6543 * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
6545 2002-05-02 Catherine Moore <clm@redhat.com>
6547 * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
6549 2002-05-02 Kazu Hirata <kazu@hxi.com>
6551 * combine.c: Fix comment typos.
6553 * genautomata.c: Likewise.
6557 2002-05-02 Joseph S. Myers <jsm28@cam.ac.uk>
6559 * doc/install.texi: State GNAT version requirements.
6561 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
6563 * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
6564 of the frame pointer or arg pointer register which strict register
6565 checking is not enabled.
6567 2002-05-02 Aldy Hernandez <aldyh@redhat.com>
6569 * gcc.dg/altivec-8.c: New.
6571 * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
6572 PRE_INC and PRE_DEC for altivec modes.
6574 2002-05-01 Bruce Korb <bkorb@gnu.org>
6576 * fixinc/check.tpl(set-writable): make sure the function exists first
6577 * fixinc/inclhack.def(alpha_assert): fix test_text
6578 * fixinc/tests/base/assert.h: add in missing result
6580 2002-05-01 Jeff Law <law@redhat.com>
6582 * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
6585 2002-05-01 Joel Brobecker <brobecker@gnat.com>
6587 * dbxout.c (dbxout_type): Emit size information for range types,
6588 as well, but only when using GDB extensions.
6590 2002-05-01 Richard Henderson <rth@redhat.com>
6592 * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
6593 target-independent gnu binutils date test.
6595 2002-05-01 Richard Henderson <rth@redhat.com>
6597 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
6598 info before expunging the block.
6600 2002-05-01 Jakub Jelinek <jakub@redhat.com>
6602 * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
6603 (cpp_post_options): ...but here. Disable -dD, -dN and -dI when
6604 -M -or -MM is in effect.
6606 2002-05-01 Zack Weinberg <zack@codesourcery.com>
6608 * config.gcc: Correct test of --enable-obsolete. Obsolete all
6609 A29k configurations.
6610 * doc/install.texi: Update to match.
6612 2002-05-01 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6615 * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
6616 for duplicates. Always loop over whole list.
6618 Wed May 1 10:32:37 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6620 * reload.c (find_reloads, case 'p'): Set BADOP to 0.
6622 2002-05-01 Joel Sherrill <joel@OARcorp.com>
6624 * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
6627 2002-05-01 Joel Sherrill <joel@OARcorp.com>
6629 * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
6631 2002-05-01 David Edelsohn <edelsohn@gnu.org>
6633 * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
6634 (nabs_nopower): Same.
6635 (floatdisf2): New pattern.
6636 (absdi2): Convert to define_insn_and_split.
6641 (fix_trunctfdi2): Same.
6642 (fix_trunctfsi2): Same.
6644 2002-05-01 Joseph S. Myers <jsm28@cam.ac.uk>
6646 * doc/install.texi: Update Texinfo version requirement
6649 2002-05-01 Jakub Jelinek <jakub@redhat.com>
6651 PR target/6512, PR target/5628
6652 * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
6653 when memory is not aligned.
6654 (movdf_insn_v9only_vis): Likewise.
6655 * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
6656 temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
6657 (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
6659 2002-05-01 Aldy Hernandez <aldyh@redhat.com>
6661 * gcc.dg/altivec-7.c: New.
6663 * config/rs6000/altivec.h: Cleanup.
6665 2002-04-30 Aldy Hernandez <aldyh@redhat.com>
6667 * doc/invoke.texi (Option Summary): Add -mvrsave=.
6668 (RS/6000 and PowerPC Options): Document -mvrsave=.
6670 * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
6671 (rs6000_altivec_vrsave_string): Same.
6672 (rs6000_override_options): Call rs6000_parse_vrsave_option.
6673 (rs6000_parse_vrsave_option): New.
6674 (rs6000_stack_info): Only generate vrsave instructions when
6675 TARGET_ALTIVEC_VRSAVE.
6677 * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
6678 (rs6000_altivec_vrsave_string): Define extern.
6679 (rs6000_altivec_vrsave): Same.
6680 (TARGET_ALTIVEC_VRSAVE): New.
6682 2002-04-30 Richard Henderson <rth@redhat.com>
6685 * toplev.c (rest_of_compilation): Don't run cross-jump before
6688 2002-04-30 Tom Rix <trix@redhat.com>
6690 * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
6691 check which_alternative.
6693 2002-04-30 Kazu Hirata <kazu@hxi.com>
6695 * cpplex.c: Fix comment formatting.
6696 * function.c: Likewise.
6697 * integrate.c: Likewise.
6698 * regrename.c: Likewise.
6699 * sibcall.c: Likewise.
6700 * simplify-rtx.c: Likewise.
6701 * tree-inline.c: Likewise.
6703 2002-04-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
6705 * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
6706 hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
6707 hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
6708 hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
6709 * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
6710 * pa/x-ada: New file. Define ADA_CFLAGS.
6712 2002-04-30 Hans-Peter Nilsson <hp@bitrange.com>
6714 * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
6715 from MMIX_LAST_REGISTER_FILE_REGNUM.
6716 (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
6717 (struct machine_function): New member highest_saved_stack_register
6718 previously static variable in mmix.c.
6719 (MACHINE_DEPENDENT_REORG): Define.
6720 * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
6721 (MMIX_OUTPUT_REGNO): New.
6722 (mmix_target_asm_function_prologue): Move calculation of last used
6723 saved-stack-register into...
6724 (mmix_machine_dependent_reorg): New function. Update to also handle
6726 (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
6727 register names, simplify somewhat by new variable regno.
6728 <case 'p'>: Remove fixed FIXME. Always emit highest used saved
6730 (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
6731 emitting register names.
6732 (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
6733 (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
6735 * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
6738 * config/mmix/mmix.md ("divmoddi4"): Update head comment.
6740 2002-04-30 Richard Henderson <rth@redhat.com>
6742 * config/sparc/sparc.c (emit_soft_tfmode_libcall,
6743 emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
6744 emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
6745 emit_tfmode_cvt): New.
6746 * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
6747 trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
6748 fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
6749 addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
6750 * config/sparc/sparc-protos.h: Update.
6752 2002-04-30 Janis Johnson <janis187@us.ibm.com>
6754 * install.texi (Final install): Add to the list of info to include
6755 in a report of a successful bootstrap, and add link to 3.1 list.
6757 Tue Apr 30 19:15:36 CEST 2002 Jan Hubicka <jh@suse.cz>
6759 * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
6760 (mode): Add vector modes
6761 (i387): Kill attribute.
6762 (unit): New attribute.
6763 (length_immediate): Grok new types.
6764 (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
6765 (modrm): Use "unit".
6766 (memory): Handle MMX/SSE properly.
6767 (scheduling descriptions): Kill uses of fop1.
6768 (sse, mmx, fp patterns): Set type and mode properly.
6770 Tue Apr 30 09:31:59 2002 Jeffrey A Law (law@redhat.com)
6772 * pa.c (override_options): Default to PA8000 scheduling.
6773 * doc/invoke.texi (HP-PA options): Mention newly added 7300
6774 scheduling parameter.
6776 * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
6777 handling of double precision multiplies.
6779 * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
6780 fpdiv and fpsqrt instructions.
6781 (7200 & 7300 scheduling): Fix typo in handling of
6782 store-load and store-store penalties.
6784 2002-04-30 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
6786 * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
6787 mips. Add two missing commas.
6789 2002-04-30 Paolo Carlini <pcarlini@unitus.it>
6791 * doc/contrib.texi (Contributors): Update Paolo Carlini's
6792 and Benjamin Kosnik's entries.
6794 2002-04-29 David S. Miller <davem@redhat.com>
6796 * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
6797 SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
6798 * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
6799 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
6801 2002-04-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6803 * combine.c (find_split_point): Use gen_int_mode.
6805 2002-04-29 Vladimir Makarov <vmakarov@redhat.com>
6807 Merging code from dfa-branch:
6809 2002-04-24 Vladimir Makarov <vmakarov@redhat.com>
6811 * genautomata.c (output_reserv_sets): Fix typo.
6813 2002-04-23 Vladimir Makarov <vmakarov@redhat.com>
6815 * genautomata.c (output_reserv_sets): Remove
6816 next_cycle_output_flag.
6818 Thu Apr 18 08:57:06 2002 Jeffrey A Law (law@redhat.com)
6820 * sched-rgn.c (init_ready_list): Make the DFA code handle
6821 USE/CLOBBER insns in the same way as the traditional
6823 (new_ready): Similarly..
6825 2002-04-17 Vladimir Makarov <vmakarov@redhat.com>
6827 * haifa-sched.c (schedule_block): Change the DFA state only after
6830 Wed Apr 17 15:38:36 2002 Jeffrey A Law (law@redhat.com)
6832 * pa.c (hppa_use_dfa_pipeline_interface): New function.
6833 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
6834 (override_options): Add PA7300 scheduling support.
6835 (pa_adjust_cost): Update various comments. Properly
6836 handle anti and output dependencies when using the
6838 (pa_issue_rate): Add PA7300 scheduling support.
6839 (pa_can_combine_p): Call extract_insn before calling
6840 constrain_operands (taken from mainline tree).
6841 * pa.h (enum processor_type): Add PROCESSOR_PA7300.
6842 * pa.md (cpu attr): Add 7300. Rewrite pipeline
6843 descriptions using DFA descriptions. Add PA7300
6846 2002-03-30 David S. Miller <davem@redhat.com>
6848 Add UltraSPARC-III DFA scheduling support.
6849 * config/sparc/sparc.md (define_attr type): Add fpcrmove.
6850 Update FP conditional move on register insn patterns to use it, as
6852 (define_attr cpu): Add ultrasparc3.
6853 (define_attr us3load_type): New, update integer load patterns to
6854 set it, as appropriate.
6855 (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
6856 (rest): Add UltraSPARC3 scheduling description.
6857 * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
6858 (PROCESSOR_ULTRASPARC3): New.
6859 ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
6860 ({ASM,CPP}_CPU_SPEC): Likewise.
6861 (REGISTER_MOVE_COST): Likewise.
6862 (RTX_COSTS): Likewise.
6863 * config/sparc/sparc.c (sparc_override_options,
6864 sparc_initialize_trampoline, sparc64_initialize_trampoline,
6865 sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
6866 sparc_issue_rate): Likewise.
6867 * config/sparc/sol2.h: Likewise.
6868 * config/sparc/sol2-sld-64.h: Likewise.
6869 * config/sparc/linux64.h: Likewise.
6871 2002-03-22 Vladimir Makarov <vmakarov@redhat.com>
6873 * doc/md.texi: Add comments about usage the latency time for the
6874 different dependencies and about case when two or more conditions
6875 in different define_insn_reservations returns TRUE for an insn.
6877 * doc/md.texi: Add reference for automaton based pipeline
6880 2002-03-04 Vladimir Makarov <vmakarov@redhat.com>
6882 * doc/passes.texi: Add missed information about genattrtab.
6884 2002-03-01 Vladimir Makarov <vmakarov@redhat.com>
6886 * genautomata.c (output_automata_list_transition_code): Check
6887 automata_list on NULL.
6889 2002-02-28 Vladimir Makarov <vmakarov@redhat.com>
6891 * genautomata.c (output_insn_code_cases,
6892 output_automata_list_min_issue_delay_code,
6893 output_automata_list_transition_code,
6894 output_automata_list_state_alts_code): Comment the functions.
6896 2002-02-22 Vladimir Makarov <vmakarov@redhat.com>
6898 * genautomata.c (automata_list_el_t): New typedef.
6899 (get_free_automata_list_el,free_automata_list_el,
6900 free_automata_list, automata_list_hash, automata_list_eq_p,
6901 initiate_automata_lists, automata_list_start, automata_list_add,
6902 automata_list_finish, finish_automata_lists,
6903 output_insn_code_cases, output_automata_list_min_issue_delay_code,
6904 output_automata_list_transition_code,
6905 output_automata_list_state_alts_code, add_automaton_state,
6906 form_important_insn_automata_lists): New functions and prototypes.
6907 (insn_reserv_decl): Add members important_automata_list and
6909 (ainsn): Add members important_p.
6910 (automata_list_el): New structure.
6911 (first_free_automata_list_el, current_automata_list,
6912 automata_list_table): New global variables.
6913 (create_ainsns): Initiate member important_p.
6914 (output_internal_min_issue_delay_func): Generate the switch and
6915 call output_insn_code_cases.
6916 (output_internal_trans_func, output_internal_state_alts_func):
6918 (generate): Call initiate_automata_lists.
6919 (automaton_states): New global variable.
6920 (expand_automata): Call form_important_insn_automata_lists.
6921 (write_automata): Call finish_automata_lists.
6923 2002-02-21 Vladimir Makarov <vmakarov@redhat.com>
6925 * genautomata.c (add_excls, add_presence_absence): Check that
6926 cpu units in the sets belong the same automaton.
6928 * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
6929 about that cpu units in the sets belong the same automaton.
6931 * doc/md.texi: Ditto.
6933 2001-12-20 Naveen Sharma <naveens@noida.hcltech.com>
6934 Nitin Gupta <niting@noida.hcltech.com>
6936 * config/sh/sh.c (sh_use_dfa_interface): New function.
6938 (sh_issue_rate): New Function.
6939 TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
6940 TARGET_SCHED_ISSUE_RATE: define.
6942 * config/sh/sh.md: Add DFA based pipeline description for SH4.
6944 (define_attr insn_class): New attribute used for DFA
6946 (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
6947 (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
6948 cmpeqdi_t): Likewise.
6950 (add,addc1,addsi3,subc,subc1,*subsi3_internal,
6951 negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
6953 (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
6955 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
6957 * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
6960 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
6962 * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
6963 (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
6965 (output_dfa_start_func): Initiate new variable insn_codes_length,
6966 (write_automata): Output definition of the new variable.
6968 2001-10-02 David S. Miller <davem@redhat.com>
6970 * haifa-sched.c (advance_one_cycle): New function.
6971 (schedule_block): Use it.
6972 (queue_to_ready): Use it, and also make sure to advance the DFA
6973 state on all stall cycles, not just those where insn_queue links
6976 2001-10-02 Richard Sandiford <rsandifo@redhat.com>
6978 * haifa-sched.c (max_issue): Remove last_p argument. Only return
6979 non-zero if the highest-priority instruction could be scheduled.
6980 (choose_ready): Remove last argument from max_issue call.
6982 2001-09-28 David S. Miller <davem@redhat.com>
6984 * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
6985 ultrasparc and 3 for other multi-issue sparcs.
6987 2001-09-27 David S. Miller <davem@redhat.com>
6989 * config/sparc/sparc.md (cycle_display): New pattern.
6990 * config/sparc/sparc.c (sparc_cycle_display): New.
6991 (TARGET_SCHED_CYCLE_DISPLAY): Set it.
6993 2001-09-25 David S. Miller <davem@redhat.com>
6995 Convert all of Sparc scheduling to DFA
6996 * config/sparc/sparc.md: Kill all define_function_unit
6997 directives and replace with DFA equivalent.
6998 * config/sparc/sparc.c (ultrasparc_adjust_cost,
6999 mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
7000 ultra_fpmode_conflict_exists, ultra_find_type,
7001 ultra_build_types_avail, ultra_flush_pipeline,
7002 ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
7003 ultrasparc_variable_issue, ultrasparc_sched_init,
7004 sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
7005 ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
7006 ultra_cur_hist, ultra_cycles_elapsed): Kill.
7007 (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
7008 ultrasparc_store_bypass_p): New.
7009 * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
7012 2001-09-24 David S. Miller <davem@redhat.com>
7014 * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
7015 ready->vec[foo] not ready[foo].
7017 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
7019 * doc/md.texi: Correct examples for define_insn_reservations
7022 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
7024 * genautomata.c (create_automata): Print message about creation of
7026 (generate): Remove printing meease about creation of
7029 2001-09-05 David S. Miller <davem@redhat.com>
7031 * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
7032 * config/sparc/linux64.h: Likewise.
7034 2001-08-31 Vladimir Makarov <vmakarov@redhat.com>
7036 * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
7037 schedule_block, sched_init, sched_finish): Add missed calls of
7038 use_dfa_pipeline_interface.
7040 * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
7043 * sched-vis.c (get_visual_tbl_length): Ditto.
7045 2001-08-27 Richard Henderson <rth@redhat.com>
7047 * genattr.c (main): Emit state_t even when not doing scheduling.
7049 2001-08-27 Richard Henderson <rth@redhat.com>
7051 * genautomata.c (expand_automata): Always create a description.
7053 2001-08-27 Vladimir Makarov <vmakarov@touchme.toronto.redhat.com>
7055 * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
7056 PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
7057 AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
7060 * genattr.c (main): New variable num_insn_reservations. Increase
7061 it if there is DEFINE_INSN_RESERVATION. Output automaton based
7062 pipeline hazard recognizer interface.
7064 * genattrtab.h: New file.
7066 * genattrtab.c: Include genattrtab.h.
7067 (attr_printf, check_attr_test, make_internal_attr,
7068 make_numeric_value): Move protypes into genattrtab.h. Define them
7070 (num_dfa_decls): New global variable.
7071 (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
7072 DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
7073 DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
7074 DEFINE_INSN_RESERVATION. Call expand_automata and write_automata.
7076 * genautomata.c: New file.
7078 * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
7080 * sched-int.h: (curr_state): Add the external definition for
7081 automaton pipeline interface.
7082 (haifa_insn_data): Add comments for members blockage and units.
7084 * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
7085 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
7086 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
7087 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
7088 TARGET_SCHED_DFA_POST_CYCLE_INSN,
7089 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
7090 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
7092 (TARGET_SCHED): Use the new macros.
7094 * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
7095 dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
7096 first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
7097 dfa_bubble): New members in gcc_target.sched.
7099 * haifa-sched.c (insert_schedule_bubbles_p): New variable.
7100 (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
7101 (insn_queue): Redefine it as pointer to array.
7102 (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
7104 (max_insn_queue_index_macro_value): New variable.
7105 (curr_state, dfa_state_size, ready_try): New varaibles for
7106 automaton interface.
7107 (ready_element, ready_remove, max_issue): New function prototypes
7108 for automaton interface.
7109 (choose_ready): New function prototype.
7110 (insn_unit, blockage_range): Add comments.
7111 (unit_last_insn, unit_tick, unit_n_insns): Define them for case
7112 FUNCTION_UNITS_SIZE == 0.
7113 (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
7114 actual_hazard, potential_hazard): Add comments.
7115 (insn_cost): Use cost -1 as undefined value. Remove
7116 LINK_COST_ZERO and LINK_COST_FREE. Add new code for automaton
7118 (ready_element, ready_remove): New functions for automaton
7120 (schedule_insn): Add new code for automaton pipeline interface.
7121 (queue_to_ready): Add new code for automaton pipeline interface.
7122 Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
7123 (debug_ready_list): Print newline when the queue is empty.
7124 (max_issue): New function for automaton pipeline interface.
7125 (choose_ready): New function.
7126 (schedule_block): Add new code for automaton pipeline interface.
7127 Print ready list before scheduling each insn.
7128 (sched_init): Add new code for automaton pipeline interface.
7129 Initiate insn cost by -1.
7130 (sched_finish): Free the current automaton state and finalize
7131 automaton pipeline interface.
7133 * sched-rgn.c: Include target.h.
7134 (init_ready_list, new_ready, debug_dependencies): Add new code for
7135 automaton pipeline interface.
7137 * sched-vis.c: Include target.h.
7138 (get_visual_tbl_length): Add code for automaton interface.
7139 (target_units, print_block_visualization): Add comments.
7141 * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
7142 USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
7143 (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
7144 (getruntime.o, genautomata.o): New entries.
7145 (genattrtab.o): Add new dependency file genattrtab.h.
7146 (genattrtab): Add new dependencies. Link it with `libm.a'.
7147 (getruntime.o, hashtab.o): New entries for canadian cross.
7149 * doc/md.texi: Description of automaton based model.
7151 * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
7153 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
7154 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
7155 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
7156 TARGET_SCHED_DFA_POST_CYCLE_INSN,
7157 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
7158 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
7159 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
7161 (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
7162 MAX_DFA_ISSUE_RATE): New macro descriptions.
7164 * doc/contrib.texi: Add dfa based scheduler contribution.
7166 * doc/gcc.texi: Add more information about genattrtab.
7168 Mon Apr 29 17:19:10 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7170 * reload1.c (eliminate_regs, case SUBREG): Fix typo in
7171 adjust_address_nv call.
7173 2002-04-29 Janis Johnson <janis187@us.ibm.com>
7175 * doc/install.texi (Testing): Provide additional information, and
7176 a stronger encouragement, for running the testsuites.
7178 2002-04-29 DJ Delorie <dj@redhat.com>
7180 * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
7181 given in upper case.
7183 2002-04-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7185 * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
7186 Solaris 2 <widec.h> if missing.
7187 * fixinc/fixincl.x: Regenerate.
7188 * fixinc/tests/base/widec.h: New file.
7190 2002-04-29 Nick Clifton <nickc@cambridge.redhat.com>
7192 * toplev.c (f_options): Add "profile" switch so that
7193 -fno-profile can be used to disable -p.
7195 2002-04-29 Bernd Schmidt <bernds@redhat.com>
7197 * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
7199 * tree.c (build_common_tree_nodes_2): Likewise.
7200 * tree.h (enum tree_index): Likewise.
7201 (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
7203 * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
7205 (init_mmx_sse_builtins): Initialize SSE2 builtins.
7206 (ix86_expand_builtin): Add support for SSE2 builtins.
7207 * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
7208 (VALID_SSE_REG_MODE): Use it.
7209 (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
7210 (enum ix86_builtins): Add SSE2 builtins.
7211 * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
7212 movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
7213 addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
7214 divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
7215 sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
7216 vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
7217 vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
7218 sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
7219 cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
7220 cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
7221 cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
7222 ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
7223 subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
7224 mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
7225 sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
7226 sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
7227 sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
7228 gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
7229 ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
7230 ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
7231 sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
7232 sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
7233 sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
7234 sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
7235 sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
7236 sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
7237 lfence_insn): New patterns.
7238 (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
7239 sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
7241 Mon Apr 29 17:03:24 CEST 2002 Jan Hubicka <jh@suse.cz>
7243 * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
7245 2002-04-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7247 * doc/contrib.texi (Contributors): Add Paolo Carlini and
7249 Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
7250 Refer to Objective-C instead of ObjC, SPARC instead of sparc,
7251 and CPU instead of cpu.
7253 Mon Apr 29 13:36:41 CEST 2002 Jan Hubicka <jh@suse.cz>
7255 * toplev.c (flag_if_conversion, flag_if_conversion2): New static
7257 (lang_independent_options): Add -fif-conversion, -fif-conversion2
7258 (rest_of_compilation): Do if conversion only when asked for.
7259 (parse_options_and_default_flags): Set new variables to 1 for -O1
7260 * invoke.texi (-fif-conversion, -fif-conversion2): Document.
7262 Mon Apr 29 13:02:50 CEST 2002 Jan Hubicka <jh@suse.cz>
7264 * i386.c (dbx64_register_map): Fix typo.
7266 Mon Apr 29 12:18:35 CEST 2002 Jan Hubicka <jh@suse.cz>
7268 * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
7269 real_one_half, real_bb_freq_max): New static variables.
7270 (debug_profile_bbauxs): Kill.
7271 (process_note_predictions): Kill unused variable.
7272 (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
7274 (propagate_freq): Use REAL_ARITHMETICS.
7275 (estimate_bb_frequencies): Likevise; init new static variables.
7276 * Makefile.in (predict.o): Add dependency on real.h
7278 2002-04-28 David S. Miller <davem@redhat.com>
7281 * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
7282 64-bit TARGET_V9. Do not use prefetch page, use prefetch for
7283 several {reads,writes} instead.
7284 * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
7287 2002-04-27 David S. Miller <davem@redhat.com>
7290 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
7293 * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
7294 including signal.h and sys/ucontext.h, not needed.
7296 2002-04-29 Hans-Peter Nilsson <hp@bitrange.com>
7298 * varasm.c (output_constant_def): Correct test for not calling
7299 ENCODE_SECTION_INFO for INTEGER_CST.
7301 2002-04-29 Neil Booth <neil@daikokuya.demon.co.uk>
7303 * cppexp.c (lex): Move some code to _cpp_parse_expr, but
7304 keep most cases as function eval_token.
7305 (eval_token): New function.
7306 (_cpp_parse_expr): Read token here for improved diagnostics.
7307 Don't use op_as_text. Detect bad ':' here.
7308 (reduce): Don't detect bad ':' here.
7309 (op_as_text): Remove.
7310 * cpphash.h (_cpp_test_assertion): Change prototype.
7311 * cpplib.c (_cpp_test_assertion): Change prototype.
7313 2002-04-28 Richard Henderson <rth@redhat.com>
7316 * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
7317 (ggc_mark_rtx_children): New.
7319 2002-04-28 Jakub Jelinek <jakub@redhat.com>
7322 * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
7323 after call peepholes for UltraSPARC.
7324 (call + jump 64-bit peepholes): Remove.
7326 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7329 * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
7330 result as temporary value.
7332 2002-04-28 Jakub Jelinek <jakub@redhat.com>
7335 * toplev.c (rest_of_compilation): Only run regrename and copy
7336 propagation if optimizing.
7338 2002-04-28 Jakub Jelinek <jakub@redhat.com>
7340 PR optimization/6475
7341 * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
7342 register of REGNO_DECL (i).
7343 * Makefile.in (reload1.o): Add $(TREE_H).
7345 2002-04-28 Neil Booth <neil@daikokuya.demon.co.uk>
7347 * cppexp.c (lex): Update to use state.skip_eval.
7348 (struct op): Remove prio and flags members.
7349 (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
7350 SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
7351 (LEFT_ASSOC): New macro.
7352 (optab): New table of operator priorities and flags.
7354 (_cpp_parse_expr): Clean up logic. Return bool. Use a
7355 malloc-ed parser stack.
7356 (reduce): New; reduce the operator stack.
7357 (_cpp_expand_op_stack): Expand the operator stack as necessary.
7358 * cpphash.h (struct op): Predeclare.
7359 (struct cpp_reader): New members op_stack, op_limit.
7360 (struct lexer_state): New member skip_eval.
7361 (_cpp_parse_expr): Update.
7362 (_cpp_expand_op_stack): New.
7363 * cpplib.c (do_if): Update.
7364 * cppinit.c (cpp_create_reader): Create op stack.
7365 (cpp_destroy): And destroy it.
7366 * cpplib.h (CPP_LAST_CPP_OP): Correct.
7367 (TTYPE_TABLE): Correct.
7369 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7372 * c-decl.c (duplicate_decls): Call merge_weak.
7373 * c-pragma.c (apply_pragma_weak): Warn about misuse.
7374 * output.h (merge_weak): Prototype merge_weak.
7375 * varasm.c (merge_weak): New function.
7376 (declare_weak): Make sure we don't give an error on VAR_DECLs.
7377 Mark RTL with SYMBOL_REF_WEAK.
7379 2002-04-27 Kurt Garloff <garloff@suse.de>
7381 * tree-inline.c (inlinable_function_p): Improve heuristics
7382 by using a smoother function to cut down allowable inlinable size.
7383 * param.def: Add parameters max-inline-insns-single,
7384 max-inline-slope, min-inline-insns that determine the exact
7385 shape of the above function.
7386 * param.h: Likewise.
7388 2002-04-26 Richard Henderson <rth@redhat.com>
7390 * c-parse.in (malloced_yyss, malloced_yyvs): New.
7391 (yyoverflow): Re-add. Set them.
7392 (free_parser_stacks): New.
7393 * c-common.h: Declare it.
7394 * c-lex.c (c_common_parse_file): Call it.
7396 2002-04-26 Richard Henderson <rth@redhat.com>
7398 * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
7399 for fallthru search.
7401 2002-04-26 Eric Christopher <echristo@redhat.com>
7403 PR optimization/3700
7404 * config/mips/mips.c (mips_issue_rate): Define. New function.
7405 (TARGET_SCHED_ISSUE_RATE): Use.
7407 2002-04-25 David S. Miller <davem@redhat.com>
7410 * reorg.c (optimize_skip): Do not allow exception causing
7411 instructions to be considered for delay slots.
7412 (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
7413 (relax_delay_slots): Do not try to consider exception causing
7414 instructions as redundant.
7416 2002-04-26 Richard Henderson <rth@redhat.com>
7419 * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
7421 2002-04-26 Mark Mitchell <mark@codesourcery.com>
7424 * config/i386/i386.md (untyped_call): Return the value in a float
7425 register if TARGET_FLOAT_RETURNS_IN_80387, not just if
7428 2002-04-26 Alexandre Oliva <aoliva@redhat.com>
7430 * tree.c (tree_int_cst_lt): Compare constants whose types differ
7431 in unsigned-ness correctly.
7433 2002-04-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
7435 * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
7436 portable runtime model.
7438 2002-04-26 Richard Henderson <rth@redhat.com>
7440 * c-parse.in (yyoverflow): Revert.
7442 2002-04-26 David Edelsohn <edelsohn@gnu.org>
7443 Richard Henderson <rth@redhat.com>
7445 * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
7446 result as temporary value.
7448 2002-04-26 Richard Henderson <rth@redhat.com>
7451 * c-common.c (fix_string_type): Split out of ...
7452 (combine_strings): ... here. Take a varray, not a tree list.
7453 (c_expand_builtin_printf): Use fix_string_type.
7454 * c-common.h: Update decls.
7455 * c-parse.in (string): Remove. Update all uses to use STRING
7456 instead, and not call combine_strings.
7459 * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
7460 (build_asm_stmt): Likewise.
7461 * objc/objc-act.c (my_build_string): Use fix_string_type.
7462 (build_objc_string_object): Build varray for combine_strings.
7464 2002-04-26 Bo Thorsen <bo@suse.co.uk>
7466 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
7469 2002-04-26 Neil Booth <neil@daikokuya.demon.co.uk>
7471 * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
7472 (HAVE_NO_R_OPERAND): Remove.
7473 (HAVE_VALUE): Remove.
7474 (op_to_prio): Update.
7475 (UNARY): Don't alter flags.
7476 (_cpp_parse_expr): want_value used to indicate whether
7477 a number or unary operator is expected next. Distinguish
7478 unary and binary +/-.
7479 (op_as_text): Update for unary operators.
7481 2002-04-25 Richard Henderson <rth@redhat.com>
7484 * c-parse.in (yyoverflow): New.
7486 2002-04-25 Richard Henderson <rth@redhat.com>
7489 * c-common.c (shorten_compare): Simplfy conditions leading to
7490 the generation of a warning.
7492 2002-04-25 Richard Henderson <rth@redhat.com>
7495 * expmed.c (extract_bit_field): Fall through to generic code rather
7496 than aborting on subreg special case.
7498 2002-04-25 David S. Miller <davem@redhat.com>
7500 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
7501 for DECL being NULL.
7503 2002-04-25 Steve Christiansen <smc@us.ibm.com>
7505 * doc/md.texi (Machine Constraints): Add IA-64 constraints.
7507 2002-04-25 Eric Botcazou <ebotcazou@multimania.com>
7509 * c-decl.c (grokdeclarator): Remove outdated ??? note
7510 on invalid declaration of flexible array members.
7512 2002-04-25 Richard Henderson <rth@redhat.com>
7514 * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
7516 2002-04-25 Ulrich Weigand <uweigand@de.ibm.com>
7518 * config/s390/s390.c (s390_emit_epilogue): Always restore registers
7519 needed by the compiler, even if they are used as global regs.
7521 2002-04-25 Matt Hiller <hiller@redhat.com>
7523 * mips.c (mips_class_max_nregs, mips_register_move_cost): New
7525 * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
7526 of the corresponding functions.
7527 * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
7530 2002-04-25 Matt Hiller <hiller@redhat.com>
7532 * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
7534 (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
7535 (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
7536 registers, adjust comment accordingly.
7537 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
7538 reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
7539 DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
7540 for coprocessor registers.
7541 (ADDITIONAL_REGISTER_NAMES): Include
7542 ALL_COP_ADDITIONAL_REGISTER_NAMES.
7544 (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
7545 COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
7546 COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
7547 COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
7548 COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
7550 (mips_char_to_class): Adjust comment to include coprocessor
7553 * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
7555 (mips_reg_names, mips_regno_to_class): Include coprocessor
7557 (mips_sw_reg_names): Ditto, make non-static.
7558 (mips_move_1word): Handle moves to and from coprocessor registers.
7559 (mips_move_2words): Handle moves to and from coprocessor
7561 (mips_class_max_nregs, mips_register_move_cost): Handle
7562 coprocessor register classes.
7563 (override_options): Initialize mips_char_to_class and
7564 mips_hard_regno_mode_ok properly for coprocessor registers.
7566 * config/mips/mips.md (movdi_internal, movdi_internal2,
7567 movsi_internal1, movsi_internal2): Add constraint-sets for
7568 coprocessor registers.
7569 * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
7570 * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
7572 * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
7573 * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
7575 * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
7576 * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
7578 * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
7579 * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
7582 * doc/tm.texi: Document feature.
7584 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
7586 * integrate.c (function_attribute_inlinable_p): Simplify.
7587 Check the table pointer is not NULL.
7589 2002-04-25 Steven Bosscher <S.Bosscher@student.tudelft.nl>
7591 * doc/c-tree.texi: Fix typo in introduction.
7593 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
7595 * c-common.h (c_common_parse_file): Update.
7596 * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
7597 * c-lex.c (YYDEBUG): Get from c-lex.h.
7598 (c_common_parse_file): Update.
7599 * c-lex.h (YYDEBUG, yydebug): New.
7600 * c-parse.in (YYDEBUG): Get from c-lex.h.
7601 (c_set_yydebug): Remove.
7602 * c-tree.h (c_set_yydebug): Remove.
7603 * langhooks-def.h (lhd_do_nothing_i): New.
7604 (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
7605 (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
7606 * langhooks.c (lhd_do_nothing_i): New.
7607 (lhd_set_yydebug): Remove.
7608 * langhooks.h (struct lang_hooks): Update.
7609 * toplev.c (set_yydebug): New.
7610 (compile_file): Update call to parse_file hook.
7611 (decode_d_option): Update.
7613 * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
7615 Wed Apr 24 23:45:37 2002 J"orn Rennecke <joern.rennecke@superh.com>
7617 * loop.c (load_mems): Don't change the interface of called functions.
7619 * calls.c (expand_call): Take current_function_pretend_args_size
7620 into account when setting argblock for sibcalls.
7622 2002-04-24 Matt Hiller <hiller@redhat.com>
7624 * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
7627 * cpplex.c (skip_line_comment): Process comment one multibyte
7628 character at a time rather than one char at a time, if
7630 (parse_string): Process string one multibyte character at a time
7631 rather than one char at a time, if appropriate.
7632 * c-lex.c (lex_string): Lex and copy multibyte strings
7634 * cpplib.h (cppchar_t): Change to unsigned.
7636 2002-04-24 Richard Henderson <rth@redhat.com>
7639 * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
7642 Wed Apr 24 21:51:54 2002 J"orn Rennecke <joern.rennecke@superh.com>
7644 * sh.c (sh_va_arg): If argument was passed by reference,
7645 dereference the pointer.
7647 * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
7649 * sh.md (divsi3_i4_media): Use match_operand for input values
7650 rather than hard registers.
7651 (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
7652 unnecessarily through hard registers. Keep copies of pseudo
7653 registers outside of the libcall sequence.
7655 * sh.md (casesi_shift_media): Add modes.
7657 * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
7660 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
7662 * attribs.c (c_common_attribute_table): Move table and handlers
7664 (format_attribute_table, lang_attribute_table,
7665 lang_attribute_common): Remove.
7666 (init_attributes): Replace NULL pointers with pointers to the
7668 (handle_packed_attribute, handle_nocommon_attribute,
7669 handle_common_attribute, handle_noreturn_attribute,
7670 handle_noinline_attribute, handle_always_inline_attribute,
7671 handle_used_attribute, handle_unused_attribute,
7672 handle_const_attribute, handle_transparent_union_attribute,
7673 handle_constructor_attribute, handle_destructor_attribute,
7674 handle_mode_attribute, handle_section_attribute,
7675 handle_aligned_attribute, handle_weak_attribute,
7676 handle_alias_attribute, handle_visibility_attribute,
7677 handle_no_instrument_function_attribute, handle_malloc_attribute,
7678 handle_no_limit_stack_attribute, handle_pure_attribute,
7679 handle_deprecated_attribute, handle_vector_size_attribute,
7680 vector_size_helper): Move to c-common.c.
7681 * c-common.c (c_common_attribute_table,
7682 handle_packed_attribute, handle_nocommon_attribute,
7683 handle_common_attribute, handle_noreturn_attribute,
7684 handle_noinline_attribute, handle_always_inline_attribute,
7685 handle_used_attribute, handle_unused_attribute,
7686 handle_const_attribute, handle_transparent_union_attribute,
7687 handle_constructor_attribute, handle_destructor_attribute,
7688 handle_mode_attribute, handle_section_attribute,
7689 handle_aligned_attribute, handle_weak_attribute,
7690 handle_alias_attribute, handle_visibility_attribute,
7691 handle_no_instrument_function_attribute, handle_malloc_attribute,
7692 handle_no_limit_stack_attribute, handle_pure_attribute,
7693 handle_deprecated_attribute, handle_vector_size_attribute,
7694 vector_size_helper): Move from attribs.c.
7695 * c-common.h (c_common_attribute_table,
7696 c_common_format_attribute_table): New.
7697 * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
7698 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
7699 * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
7700 LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
7701 (LANG_HOOKS_INITIALIZER): Update.
7702 * langhooks.h (struct lang_hooks): 3 new attribute hooks.
7703 * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
7704 * target.h: Update comment.
7705 * tree.c (default_target_attribute_table): Remove.
7706 * tree.h (default_target_attribute_table, format_attribute_table,
7707 lang_attribute_table, lang_attribute_common): Remove.
7709 * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
7710 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
7712 2002-04-24 Jason Merrill <jason@redhat.com>
7714 * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
7715 * dwarf2out.c (dwarf_attr_name): Support it.
7716 (gen_array_type_die): Emit it.
7717 (lookup_type_die): No special handling for VECTOR_TYPE.
7718 (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
7720 2002-04-24 Richard Henderson <rth@redhat.com>
7722 * config/mips/mips.md (movdi_usd): Renumber.
7724 2002-04-24 David S. Miller <davem@redhat.com>
7727 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
7728 32-bit Sparc and current_function_returns_struct is true.
7730 Wed Apr 24 13:48:25 CEST 2002 Jan Hubicka <jh@suse.cz>
7732 * loop.c (canonicalize_condition): Use gen_int_mode.
7734 2002-04-24 Aldy Hernandez <aldyh@redhat.com>
7736 * config/rs6000/altivec.h: Cleanup file. Add non individual
7758 (vec_vcmpequb): New.
7759 (vec_vcmpequh): New.
7760 (vec_vcmpequw): New.
7761 (vec_vcmpeqfp): New.
7762 (vec_vcmpgefp): New.
7763 (vec_vcmpgtub): New.
7764 (vec_vcmpgtsb): New.
7765 (vec_vcmpgtuh): New.
7766 (vec_vcmpgtsh): New.
7767 (vec_vcmpgtuw): New.
7768 (vec_vcmpgtsw): New.
7769 (vec_vcmpgtfp): New.
7770 (vec_vcmpgefp): New.
7775 (vec_vexptefp): New.
7780 (vec_lde): Add vector float variant.
7785 (vec_vmhaddshs): New.
7807 (vec_vmladduhm): New.
7808 (vec_vmhraddshs): New.
7810 (vec_vmsummbm): New.
7811 (vec_vmsumuhm): New.
7812 (vec_vmsumshm): New.
7813 (vec_vmsumuhs): New.
7814 (vec_vmsumshs): New.
7823 (vec_vnmsubfp): New.
7841 (vec_vrsqrtefp): New.
7852 (vec_vspltisb): New.
7853 (vec_vspltish): New.
7854 (vec_vspltisw): New.
7879 (vec_vsum4ubs): New.
7880 (vec_vsum4sbs): New.
7881 (vec_vsum4shs): New.
7882 (vec_vsum2sws): New.
7893 2002-04-23 Eric Botcazou <ebotcazou@multimania.com>
7896 * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
7897 added literals from substracted literals.
7898 (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
7899 (fold) [associate]: Preserve MINUS_EXPR if needed.
7901 2002-04-23 Zack Weinberg <zack@codesourcery.com>
7903 * doc/install.texi: Clarify which versions of alpha*-dec-osf*
7906 2002-04-23 Tom Tromey <tromey@redhat.com>
7908 * gcc.c: Added --resource. For PR java/6314.
7910 2002-04-23 David O'Brien <obrien@FreeBSD.org>
7912 * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
7913 * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
7916 2002-04-23 David O'Brien <obrien@FreeBSD.org>
7918 * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
7920 Tue Apr 23 14:24:25 CEST 2002 Jan Hubicka <jh@suse.cz>
7922 * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
7924 (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
7925 (ix86_expand_clrstr): Fix typo.
7926 * loop.c (gen_load_of_final_value): New.
7927 (loop_givs_rescan, strength_reduce, check_dbra_loop):
7930 2002-04-23 Roger Sayle <roger@eyesopen.com>
7932 * builtins.c (builtin_memset_gen_str): New function.
7933 (expand_builtin_memset): Optimize the case of constant length, but
7936 2002-04-23 Aldy Hernandez <aldyh@redhat.com>
7938 * config/rs6000/altivec.h (vec_step): Remove extraneous
7940 (vec_ctu): Cast return.
7942 2002-04-23 Alan Modra <amodra@bigpond.net.au>
7945 * function.h: (struct function): Add profile_label_no field.
7946 (current_function_profile_label_no): Define.
7947 * function.c: (profile_label_no): New static var.
7948 (expand_function_start): Increment it, and copy to
7949 current_function_profile_label_no.
7950 * output.h (profile_label_no): Delete.
7951 * final.c (profile_label_no): Delete.
7952 (profile_function): Use current_function_profile_label_no.
7953 (final_end_function): Don't increment profile_label_no here.
7954 * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
7955 profile_label_no with current_function_profile_label_no.
7956 * config/pa/pa.c (current_function_number): Delete.
7957 (pa_output_function_prologue): Don't output profile label here.
7958 (hppa_profile_hook): Use label_no param rather than
7959 current_function_number.
7960 (FUNC_BEGIN_PROLOG_LABEL): Move to ..
7961 * config/pa/pa.h: .. here.
7962 (FUNCTION_PROFILER): Output profile label here.
7964 2002-04-22 Eric Christopher <echristo@redhat.com>
7966 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
7967 patch of 2002-04-09 due to binutils issues.
7968 (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
7970 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
7972 * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
7973 constraint to 'o' for m=r and r=m alternatives.
7974 ("*movv8hi_internal1"): Same.
7975 ("*movv16qi_internal1"): Same.
7976 ("*movv4sf_internal1"): Same.
7978 2002-04-22 Janis Johnson <janis187@us.ibm.com>
7980 * rtl.h (RTX_FLAG): New macro.
7981 * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
7982 * final.c (alter_subreg): Use macro to access rtx flag.
7983 * integrate.c (copy_rtx_and_substitute): Use new access macro.
7984 * print-rtl.c (print_rtx): Use new access macro.
7986 * cse.c (insert): Check rtx code before accessing flag.
7988 * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
7989 ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
7990 (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
7991 convert_const_symbol_ref, make_canonical, make_alternative_compare,
7992 evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
7993 simplify_test_exp, optimize_attrs, simplify_by_exploding,
7994 find_and_mark_used_attributes, unmark_used_attributes,
7995 add_values_to_cover, simplify_with_current_value,
7996 simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
7997 copy_rtx_unchanging, main): Use new access macros.
7999 2002-04-22 Tom Rix <trix@redhat.com>
8001 * expmed.c (init_expmed): Generate shifted constant once.
8003 2002-04-22 Zack Weinberg <zack@codesourcery.com>
8005 * c-lex.c (lex_charconst): Call convert to get constant in
8006 proper type; don't just smash the type field.
8009 * config.gcc: Add list of obsolete configurations. Disallow
8010 building these without --enable-obsolete.
8011 * doc/install.texi: Document --enable-obsolete and obsoletion
8012 policy. Mention obsoletion of individual targets in
8015 2002-04-22 Richard Henderson <rth@redhat.com>
8017 * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
8019 2002-04-22 Mark Mitchell <mark@codesourcery.com>
8022 * function.c (fixup_memory_subreg): Add promoted_mode parameter.
8023 (walk_fixup_memory_subreg): Likewise.
8024 (fixup_var_refs_insn): Adjust accordingly.
8025 (fixup_var_refs_1): Likewise.
8027 2002-04-22 Ulrich Weigand <uweigand@de.ibm.com>
8029 * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
8030 LIBPATH_ARCH64_SPEC): Define.
8031 (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
8032 (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
8033 (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
8034 (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
8036 2002-04-22 Joel Sherrill <joel@OARcorp.com>
8038 * gthr-rtems.h: Correct prototypes to remove warnings.
8040 2002-04-22 Richard Henderson <rth@redhat.com>
8043 * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
8045 * gcse.c (free_insn_expr_list_list): New.
8046 (clear_modify_mem_tables): Use it. Fix bit set usage.
8047 (canon_list_insert): Use EXPR_LISTs for expressions.
8048 (record_last_mem_set_info): Factor BLOCK_NUM (insn).
8050 2002-04-22 Neil Booth <neil@daikokuya.demon.co.uk>
8052 * cppfiles.c (_cpp_pop_file_buffer): Return void. Move
8053 file change and include code to _cpp_pop_buffer.
8054 * cpphash.h (struct pending_option): Predeclare.
8055 (struct cpp_reader): New member next_include_file.
8056 (_cpp_pop_file_buffer): Update.
8057 (_cpp_push_next_buffer): Update, rename.
8058 * cppinit.c (cpp_destroy): Free include chain and pending here.
8059 (cpp_finish_options): Simplify.
8060 (_cpp_push_next_buffer): Rename and clean up.
8061 * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
8063 * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
8065 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
8067 * config/rs6000/altivec.h (vec_xor): Add variant for both args
8068 being vector signed int.
8070 (vec_xor): Add variant for both args being vector signed char.
8071 Remove redundant variant.
8074 2002-04-21 David S. Miller <davem@redhat.com>
8076 * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
8077 compare mode in output RTL.
8079 2002-04-22 David Edelsohn <edelsohn@gnu.org>
8081 * config/rs6000/rs6000.c (rs6000_override_options): Correct
8082 style and formatting of previous patch.
8084 2002-04-22 Alan Modra <amodra@bigpond.net.au>
8086 * config/rs6000/rs6000.c (rs6000_override_options): Always clear
8087 flag_pic for ABI_AIX.
8089 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
8091 * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
8092 * cppfiles.c (read_include_file): Similarly.
8093 * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
8094 uxstrdup ustrchr, ufputs): Similarly.
8095 * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
8096 * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
8097 cpp_ideq, parse_identifier, parse_number): Similarly.
8098 * cpplib.c (struct directive, dequote_string, D, run_directive,
8099 cpp_push_buffer): Similarly.
8100 * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
8101 _cpp_create_definition, check_trad_stringification,
8102 cpp_macro_definition): Similarly.
8104 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
8106 * cppmacro.c (funlike_invocation_p): Don't step back
8109 2002-04-21 David Edelsohn <edelsohn@gnu.org>
8111 * config/rs6000/rs6000.c (output_profile_hook): Do not increment
8114 2002-04-20 Joseph S. Myers <jsm28@cam.ac.uk>
8116 * doc/invoke.texi: Remove Chill references.
8117 * doc/gcc.texi: Update last modified date.
8119 2002-04-20 Kazu Hirata <kazu@hxi.com>
8121 * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
8122 push and pop. Replace add.l with add.w.
8124 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
8126 * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
8127 multiply instructions for H8/300H case.
8129 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
8131 * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
8132 Bum three instructions from each routine.
8134 2002-04-20 Neil Booth <neil@daikokuya.demon.co.uk>
8136 * Makefile.in: Update.
8137 * decl.c (push_c_function_context, pop_c_function_context,
8138 mark_c_function_context): Rename for consistency.
8139 * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
8140 * c-tree.h (push_c_function_context, pop_c_function_context,
8141 mark_c_function_context): Rename for consistency.
8142 * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
8143 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
8144 * function.c (init_lang_status, save_lang_status,
8145 restore_lang_status, mark_lang_status, free_lang_status):
8146 Move to langhooks.h.
8147 (push_function_context_to, pop_function_context_from,
8148 free_after_parsing, prepare_function_start, ggc_mark_struct_function):
8150 * function.h (init_lang_status, save_lang_status,
8151 restore_lang_status, mark_lang_status, free_lang_status):
8152 Move to langhooks.h.
8153 * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
8154 LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
8155 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
8156 LANG_HOOKS_FUNCTION_INITIALIZER): New.
8157 (LANG_HOOKS_INITIALIZER): Update.
8158 (lhd_do_nothing_f): New.
8159 * langhooks.h (struct lang_hooks_for_functions): New.
8160 (struct lang_hooks): New hooks.
8161 * langhooks.c (lhd_do_nothing_f): New.
8163 * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
8164 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
8166 2002-04-19 David S. Miller <davem@redhat.com>
8168 * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
8169 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
8171 2002-04-19 Jakub Jelinek <jakub@redhat.com>
8173 PR optimization/3756
8174 * config/i386/i386.c (ix86_expand_int_movcc): Optimize
8175 x = ((int) y < 0) ? cst1 : cst2.
8177 2002-04-19 Jakub Jelinek <jakub@redhat.com>
8180 * function.c: Reapply patch for c/6358.
8181 (expand_function_end): Copy decl_rtl's mode, not
8182 current_function_return_rtx mode.
8184 2002-04-19 Joel Sherrill <joel@OARcorp.com>
8186 * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
8189 2002-04-19 Tom Tromey <tromey@redhat.com>
8191 * doc/install.texi (Specific): Update status of Solaris 2.8.
8194 2002-04-19 Andreas Schwab <schwab@suse.de>
8196 * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
8197 (PUT_REAL): Restore old definition.
8199 2002-04-19 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
8200 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
8202 * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
8203 binutils 2.11.2 and higher generate smaller binaries than Sun's
8206 2002-04-19 Mark Mitchell <mark@codesourcery.com>
8209 * toplev.c (rest_of_compilation): Do not defer functions for which
8210 TREE_SYMBOL_REFERENCED has already been set.
8212 Fri Apr 19 15:53:03 CEST 2002 Jan Hubicka <jh@suse.cz>
8214 * i386.md (movsi_1, movhi_1): Force reload to use more flexible
8217 2002-04-19 Neil Booth <neil@daikokuya.demon.co.uk>
8219 * builtins.c: Include langhooks.h.
8220 (lang_type_promotes_to): Remove.
8221 (expand_builtin_va_arg): Use new hook.
8222 * c-common.c (c_common_nodes_and_builtins): Don't set hook.
8223 (simple_type_promotes_to): Move to c-typeck.c.
8224 * c-common.h (simple_type_promotes_to): Remove.
8225 * c-decl.c (duplicate_decls, grokdeclarator): Update.
8226 * c-format.c: Include langhooks.h.
8227 (check_format_types): Update.
8228 * c-tree.h (c_type_promotes_to): New.
8229 * c-typeck.c (c_type_promotes_to): Move from c-common.c.
8230 (type_lists_compatible_p): Update.
8231 * langhooks-def.h (lhd_type_promotes_to): New.
8232 (LANG_HOOKS_TYPE_PROMOTES_TO): New.
8233 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
8234 * langhooks.c (lhd_type_promotes_to): New.
8235 * langhooks.h (struct lang_hooks_for_types): New hook.
8236 * tree.h (lang_type_promotes_to): Remove.
8238 * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
8240 2002-04-18 Richard Henderson <rth@redhat.com>
8242 * function.c: Revert patch for c/6358.
8244 2002-04-18 Richard Henderson <rth@redhat.com>
8246 * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
8247 blocks. Handle multiple references to the TRAP block. Handle
8248 non-adjacent THEN and OTHER blocks.
8250 2002-04-18 Richard Henderson <rth@redhat.com>
8252 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
8253 crash with no type for by-mode libcalls.
8255 * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
8257 2002-04-18 Bob Wilson <bob.wilson@acm.org>
8259 * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
8260 __xtensa_nonlocal_goto): Use a syscall instructions to flush
8261 the register windows.
8263 2002-04-18 Zack Weinberg <zack@codesourcery.com>
8265 * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
8266 appropriate. Document need for extended precision even when
8267 MAX_LONG_DOUBLE_TYPE_SIZE is smaller. Define REAL_WIDTH here,
8268 based on REAL_VALUE_TYPE_SIZE. Use REAL_WIDTH to size
8269 REAL_VALUE_TYPE. Define CONST_DOUBLE_FORMAT here. Use #error
8270 instead of relying on later syntax error when REAL_WIDTH > 5.
8271 * real.c: Define NE based only on whether or not we have a
8272 full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
8273 Require sizeof(REAL_VALUE_TYPE) == 2*NE. Unconditionally
8274 define GET_REAL and PUT_REAL as simple memcpy operations; no
8275 need to byteswap or round.
8276 Use #error instead of #ifdef-ing out the entire file, for
8277 prompt error detection.
8279 * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
8281 2002-04-18 David S. Miller <davem@redhat.com>
8283 * config/sparc/sparc.h (BRANCH_COST): Define.
8285 * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
8288 2002-04-18 Hans-Peter Nilsson <hp@bitrange.com>
8290 * flow.c (update_life_info): Ignore return value of cleanup_cfg.
8291 Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
8292 propagate_block calls after relaxation loop using new variable
8293 stabilized_prop_flags.
8295 2002-04-18 Richard Henderson <rth@redhat.com>
8297 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
8298 (ia64_va_arg): Expect variable sized types by reference.
8299 * config/ia64/ia64-protos.h: Update.
8300 * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
8301 ia64_function_arg_pass_by_reference.
8303 2002-04-18 Richard Henderson <rth@redhat.com>
8305 * ifcvt.c: Include except.h.
8306 (block_has_only_trap): Break out from find_cond_trap.
8307 (find_cond_trap): Use it. Always delete the trap block.
8308 (merge_if_block): Allow then block null. Be less simplistic about
8309 what insns can end a block.
8310 * Makefile.in (ifcvt.o): Depend on except.h.
8312 * config/ia64/ia64.md (trap, conditional_trap): New.
8314 2002-04-18 Jakub Jelinek <jakub@redhat.com>
8317 * function.c (assign_parms): Assign hard current_function_return_rtx
8319 (expand_function_end): ...not here.
8321 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
8323 * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
8324 * c-tree.h (c_incomplete_type_error): New.
8325 * c-typeck.c (require_complete_type, build_component_ref): Update.
8326 (incomplete_type_error): Rename.
8327 * langhooks-def.h (lhd_incomplete_type_error): New.
8328 (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
8329 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
8330 * langhooks.c (lhd_incomplete_type_error): New.
8331 * langhooks.h (struct lang_hooks_for_types): New hook.
8332 * tree.c (size_in_bytes): Use new hook.
8333 * tree.h (incomplete_type_error): Remove.
8335 * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
8337 2002-04-18 Zack Weinberg <zack@codesourcery.com>
8339 * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
8340 TARGET_FLOAT_FORMAT blocks.
8342 2002-04-18 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
8344 * doc/install.texi (Downloading the source): Do not mention Chill
8345 any longer, but mention Ada.
8346 (Configuration): Do not mention Chill any longer.
8348 2002-04-18 Hans-Peter Nilsson <hp@axis.com>
8350 * config/cris/cris.h (TARGET_VERSION): Remove local version number.
8352 Thu Apr 18 17:14:08 CEST 2002 Jan Hubicka <jh@suse.cz>
8354 * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
8357 2002-04-18 Jakub Jelinek <jakub@redhat.com>
8359 * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
8360 instead of unsigned_type.
8362 Thu Apr 18 15:49:12 CEST 2002 Jan Hubicka <jh@suse.cz>
8364 * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
8365 * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
8368 2002-04-18 Bernd Schmidt <bernds@redhat.com>
8370 * attribs.c (vector_type_node_list): New static variable.
8371 (handle_vector_size_attribute): Use it to avoid generating a
8372 new type node each time we are called.
8374 * combine.c (subst): Avoid trying to make a vector mode subreg of
8375 an integer constant.
8376 (gen_lowpart_for_combine): Likewise.
8378 2002-04-18 Roger Sayle <roger@eyesopen.com>
8379 Jakub Jelinek <jakub@redhat.com>
8381 * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
8382 for integer constant c (if x has unsigned type or sign bit is not
8383 set in c). This folds the zero/sign extension into the bit-wise and
8386 2002-04-18 Jakub Jelinek <jakub@redhat.com>
8389 * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
8392 2002-04-17 NIIBE Yutaka <gniibe@m17n.org>
8394 * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
8396 2002-04-17 Nick Clifton <nickc@cambridge.redhat.com>
8398 * gcc.c (read_specs): Detect and fail if an attempt is made to
8399 rename a spec string to an already existing string.
8401 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
8403 * config/s390/s390.c (legitimize_pic_address): Do not generate
8404 illegal address constant without CONST.
8406 2002-04-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8408 * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
8409 * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
8411 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
8413 PR optimization/6305
8414 * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
8415 to make sure previous reloads are taken into account. Generate
8416 better code if one operand is an in-range immediate constant.
8418 2002-04-16 Andrew Haley <aph@cambridge.redhat.com>
8420 * doc/install.texi (Building): libgcj requires GNU make.
8422 2002-04-17 Jakub Jelinek <jakub@redhat.com>
8425 * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
8426 even if hard quad and register is not floating.
8427 (movtf reg<-mem split): Disallow splitting if hard quad and
8428 register is floating.
8429 (movtf mem<-reg split): Likewise.
8430 * config/sparc/sparc.c (fp_register_operand): New predicate.
8431 * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
8433 2002-04-17 Zack Weinberg <zack@codesourcery.com>
8435 * Makefile.in (PROTO_OBJS): Add cppdefault.o.
8436 (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
8437 (unprotoize.o): Ditto. Build from protoize.c. Define
8438 UNPROTOIZE on command line.
8439 * protoize.c: Include cppdefault.h. Delete include_defaults.
8440 (in_system_include_dir): Use cpp_include_defaults (defined in
8442 * unprotoize.c: Delete file.
8444 2002-04-17 Aldy Hernandez <aldyh@redhat.com>
8446 * config/rs6000/altivec.h (vec_ld): Add array variants.
8450 2002-04-17 Alan Matsuoka <alanm@redhat.com>
8451 Aldy Hernandez <aldyh@redhat.com>
8453 * config/rs6000/altivec.h: Define __ALTIVEC__.
8460 Add parentheses to all macro arguments.
8462 2002-04-16 Richard Henderson <rth@redhat.com>
8465 * except.c (remove_eh_handler): Insert inner regions at beginning
8466 of sibling chain. Refactor expressions.
8468 2002-04-16 Richard Henderson <rth@redhat.com>
8470 * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
8471 * config/sparc/sol2-gas-bi.h: New file.
8472 * config.gcc (sparc*-solaris): Add it as needed.
8473 * configure.in (AS_SPARC64_FLAG): Remove check.
8474 * config.in, configure: Regenerate.
8476 * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
8478 2002-04-16 Richard Henderson <rth@redhat.com>
8480 * config/mips/mips.c (override_options): Don't override N32 for
8484 * config/mips/mips.md (can_delay): Split out of existing define_delays.
8485 (HILO_delay): Set can_delay false.
8487 2002-04-16 Dale Johannesen <dalej@apple.com>
8489 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
8490 instruction addresses.
8491 (rs6000_output_function_epilogue): Likewise.
8493 2002-04-16 Paolo Carlini <pcarlini@unitus.it>
8495 * c-parse.in (poplevel, compstmt_start,
8496 compstmt_primary_start): Add ending ';', in accordance
8499 2002-04-16 Richard Henderson <rth@redhat.com>
8501 * config.gcc (sparcv9-solaris): Configure for 64-bit default.
8502 Adjust tm_file order to get TARGET_DEFAULT set properly.
8503 (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
8504 * doc/install.texi (sparc-solaris): Update.
8506 2002-04-16 Dale Johannesen <dalej@apple.com>
8508 * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
8509 comparison operands do not match each other or if modes of
8510 conditions do not match result.
8512 2002-04-16 Hartmut Penner <hpenner@de.ibm.com>
8515 * config/s390/s390.md (mulsidi3): Set both subregs of the
8518 2002-04-16 Aldy Hernandez <aldyh@redhat.com>
8520 * config/rs6000/altivec.h (vec_addc): Type check.
8522 2002-04-16 Jakub Jelinek <jakub@redhat.com>
8525 * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
8527 * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
8529 2002-04-15 Richard Henderson <rth@redhat.com>
8531 * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
8532 call_really_used_regs too.
8534 2002-04-15 Richard Henderson <rth@redhat.com>
8536 * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
8538 2002-04-15 David S. Miller <davem@redhat.com>
8540 * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
8543 2002-04-16 Jakub Jelinek <jakub@redhat.com>
8546 * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
8547 CONST_VECTOR is { 0, ... 0 }.
8549 2002-04-15 Loren J. Rittle <ljrittle@acm.org>
8551 * doc/install.texi (Installing GCC: Configuration): Clarify
8552 the only supported ways to configure gcc.
8554 2002-04-15 Roland McGrath <roland@frob.com>
8556 * config.gcc (alpha*-*-gnu*): New target configuration.
8557 * config/alpha/gnu.h: New file for it.
8558 * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
8560 2002-04-16 Mark Mitchell <mark@codesourcery.com>
8562 * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
8563 * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
8564 * tree.h (expand_start_stmt_expr): Update prototype.
8565 * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
8566 * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
8567 on the STMT_EXPR created for the inline function.
8569 2002-04-15 Richard Henderson <rth@redhat.com>
8571 * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
8572 config/i386/linux-aout.h, config/i386/linux-oldld.h,
8573 config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
8574 config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
8575 config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
8576 config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
8577 config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
8578 Define __gnu_linux__, not gnu_linux.
8579 * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
8581 2002-04-15 Mark Mitchell <mark@codesourcery.com>
8583 Remove Chill front end.
8584 * gcc.c (default_compilers): Remove Chill entries.
8585 * ch: Remove directory.
8586 * doc/frontends.texi: Remove information about Chill.
8587 * doc/sourcebuild.texi: Likewise.
8588 * doc/standards.texi: Likewise.
8590 2002-04-15 Douglas B Rupp <rupp@gnat.com>
8592 * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
8593 (LONGLONG_STANDALONE): Define.
8595 2002-04-15 David S. Miller <davem@redhat.com>
8597 * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
8598 Call emit_library_call with LCT_NORMAL.
8599 (sparc_initialize_trampoline): Use LCT_foo instead of
8600 magic constant in emit_library_call invocations.
8601 (sparc64_initialize_trampoline): Likewise.
8602 (sparc_profile_hook): Likewise.
8603 * config/sparc/sparc.md: Likewise.
8605 * config/sparc/sparc.c (sparc_extra_constraint_check):
8606 Fix type of argument 'c'.
8607 * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
8610 2002-04-15 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
8612 * diagnostic.h (output_buffer_state): Redefine.
8613 (output_format_decoder): New macro.
8614 (output_prefixing_rule): Likewise.
8615 (output_line_cutoff): Likewise.
8616 (diagnostic_format_decoder): Adjust.
8617 (diagnostic_prefixing_rule): Likewise.
8618 (diagnostic_line_cutoff): Likewise.
8619 (diagnostic_state): Likewise.
8620 (diagnostic_kind_count): Likewise.
8621 (diagnostic_buffer): Now a macro.
8623 * diagnostic.c (diagnostic_buffer): Remove definition.
8624 (output_is_line_wrapping): Adjust.
8625 (set_real_maximum_length): Likewise.
8626 (output_set_maximum_length): Likewise.
8627 (init_output_buffer): Likewise.
8628 (lhd_print_error_function): Likewise.
8629 (output_do_verbatim): Likewise.
8631 2002-04-14 Neil Booth <neil@daikokuya.demon.co.uk>
8633 * cpperror.c (print_location): Don't print include chain
8635 (cpp_begin_message): Update to use DL_ macros.
8636 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
8637 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
8638 cpp_notice, cpp_notice_from_errno): Remove.
8639 (cpp_error, cpp_error_with_line): Update to take a diagnostic
8642 * cppexp.c (CPP_ICE): Remove.
8643 (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
8644 lex, integer_overflow, _cpp_parse_expr): Update.
8645 * cppfiles.c (read_include_file, find_include_file,
8646 handle_missing_header, _cpp_read_file, remap_filename): Update.
8647 * cpphash.h (enum error_type): Remove.
8648 (_cpp_begin_message): Update.
8649 * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
8650 cpp_handle_option, cpp_post_options): Update.
8651 * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
8652 skip_whitespace, parse_identifier, parse_slow, parse_string,
8653 _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
8654 cpp_interpret_charconst): Update.
8655 * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
8656 lex_macro_node, do_undef, glue_header_name, parse_include,
8657 do_include_common, read_flag, do_line, do_linemarker, do_ident,
8658 cpp_register_pragma, do_pragma_once, do_pragma_system_header,
8659 do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
8660 do_elif, do_endif, parse_answer, parse_assertion, do_assert,
8661 _cpp_pop_buffer, do_diagnostic): Update.
8662 * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
8663 DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
8664 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
8665 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
8666 cpp_notice, cpp_notice_from_errno): Remove.
8667 (cpp_error, cpp_error_with_line): Update to take a diagnostic
8670 * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
8671 collect_args, enter_macro_context, save_parameter, parse_params,
8672 _cpp_create_definition, check_trad_stringification,
8673 cpp_macro_definition): Update.
8674 * cppmain.c (cpp_preprocess_file): Update.
8675 * fix-header.c (read_scan_file): Update.
8677 2002-04-14 Andreas Schwab <schwab@suse.de>
8679 * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
8681 2002-04-14 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
8683 * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
8685 2002-04-13 Mark Mitchell <mark@codesourcery.com>
8687 * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
8690 2002-04-13 Hans-Peter Nilsson <hp@axis.com>
8692 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
8694 2002-04-13 Joel Sherrill <joel@OARcorp.com>
8696 * config/sparc/t-elf: Enable v8 multilibs. Impacts
8697 sparc-elf and sparc-rtems targets.
8699 2002-04-13 Mark Mitchell <mark@codesourcery.com>
8701 * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
8702 defined, and __gnu_hurd__ wherever __GNU__ is defined.
8703 * arm/linux-elf.h: Likewise.
8704 * cris/aout.h: Likewise.
8705 * cris/linux.h: Likewise.
8706 * i370/linux.h: Likewise.
8707 * i386/gnu.h: Likewise.
8708 * i386/linux-aout.h: Likewise.
8709 * i386/linux-oldld.h: Likewise.
8710 * i386/linux.h: Likewise.
8711 * i386/linux64.h: Likewise.
8712 * ia64/linux.h: Likewise.
8713 * m68k/linux-aout.h: Likewise.
8714 * m68k/linux.h: Likewise.
8715 * mips/linux.h: Likewise.
8716 * pa/pa-linux.h: Likewise.
8717 * pj/linux.h: Likewise.
8718 * rs6000/sysv4.h: Likewise.
8719 * s390/linux.h: Likewise.
8720 * sh/linux.h: Likewise.
8721 * sparc/linux-aout.h: Likewise.
8722 * sparc/linux.h: Likewise.
8723 * sparc/linux64.h: Likewise.
8724 * xtensa/linux.h: Likewise.
8726 2002-04-13 Richard Sandiford <rsandifo@redhat.com>
8728 * stmt.c (check_unique_operand_names): Expect operand names to
8729 be strings rather than identifiers. Use simple_cst_equal to
8731 (resolve_operand_name_1): Make same identifier to string change here.
8732 * c-parse.in (asm_operand): Convert a named operand into a string.
8733 * cp/parse.y (asm_operand): Likewise.
8735 2002-04-13 Andreas Schwab <schwab@suse.de>
8737 * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
8739 2002-04-12 Mark Mitchell <mark@codesourcery.com>
8741 Revert these changes:
8743 2002-04-06 Mark Mitchell <mark@codesourcery.com>
8746 * stor-layout.c (layout_decl): Reset the RTL for the decl.
8748 2002-04-12 Richard Henderson <rth@redhat.com>
8750 * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
8751 (sparc*-*-solaris): Clean up header files.
8752 * configure.in (AS_SPARC64_FLAG): Error out if can't find it
8753 and plan on generating 64-bit code.
8754 * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
8755 * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
8756 * config/sparc/sol2-sld-64.h: Rename ...
8757 * config/sparc/sol2-bi.h: ... here. Remove the bits that checked
8758 for AS_SPARC64_FLAG not defined.
8759 * config/sparc/sol2-gld-bi.h: New.
8760 * config/sparc/sol2-sld.h: Remove.
8761 * config/sparc/sol26-sld.h: New.
8762 * config/sparc/sol2.h: Tidy comments.
8763 * doc/install.texi: Document sparc-solaris configury changes.
8765 2002-04-12 Richard Henderson <rth@redhat.com>
8767 * recog.c (offsettable_address_p): Match the logic in adjust_address.
8769 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
8770 in 64-bit mode only. Use only for 32-bit or MEDLOW.
8772 2002-04-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8774 * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
8776 Fri Apr 12 15:42:59 2002 Jeffrey A Law (law@redhat.com)
8778 * pa.c (pa_can_combine_p): Call extract_insn before calling
8781 2002-04-12 Douglas B Rupp <rupp@gnat.com>
8783 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
8784 (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
8785 (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
8786 (CPP_PREDEFINES): Handle __declspec.
8787 * config/i386/t-interix (USER_H): Remove.
8789 2002-04-12 DJ Delorie <dj@redhat.com>
8791 * integrate.c (compare_blocks): Make comparisons safe for when
8792 sizeof(int) < sizeof(char *).
8793 (find_block): Likewise.
8795 2002-04-12 Jan Hubicka <jh@suse.cz>
8796 David Edelsohn <edelsohn@gnu.org>
8798 * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
8800 (symbol_ref_operand): New.
8801 * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
8802 * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
8804 2002-04-12 Andreas Schwab <schwab@suse.de>
8806 * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
8807 * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
8808 overrides the definition in config/svr4.h.
8810 2002-04-12 Eric Norum <eric.norum@usask.ca>
8812 * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
8813 config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
8814 config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
8815 config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
8816 config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
8817 config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
8818 config/v850/rtems.h (*-rtems*): Cleanup pass to move common
8819 definitions to config/rtems.h and make the targets more similar.
8821 Fri Apr 12 08:06:54 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8823 * expr.c (expand_assigment): Remove duplicate conversions #ifdef
8824 POINTERS_EXTEND_UNSIGNED.
8825 (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
8826 (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
8828 * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
8831 Fri Apr 12 12:11:26 2002 J"orn Rennecke <joern.rennecke@superh.com>
8833 * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
8834 depends on TARGET_SHMEDIA, not TARGET_SH5.
8836 2002-04-12 Hans-Peter Nilsson <hp@bitrange.com>
8838 * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
8839 For paradoxical (subreg VAR), replace VAR, don't try the subreg.
8841 Fri Apr 12 10:51:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
8843 * sh.c (broken_move): Constant 0. / 1. load is OK if there is
8846 2002-04-12 Andreas Schwab <schwab@suse.de>
8848 * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
8850 2002-04-12 Richard Henderson <rth@redhat.com>
8853 * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
8855 * flow.c (mark_used_reg): Manage reg_cond_dead properly for
8856 modes spanning multiple hard regs.
8858 * recog.c (peephole2_optimize): Rebuild jump labels as needed.
8860 2002-04-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
8862 * pa.c (pa_output_function_prologue): Don't accumulate the total
8863 number of code bytes when using TARGET_64BIT, or gas, SOM and not
8864 the portable runtime.
8865 (output_deferred_plabels): Handle 64bit plabels.
8866 (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
8867 generating pic code using the GAS assembler for object formats that
8868 are not SOM (ie., ELF32 and ELF64).
8869 (output_millicode_call): Check attribute type if attribute length is 28.
8870 Likewise use $PIC_pcrel$0. Only call get_attr_length and
8871 dbr_sequence_length once.
8872 (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
8873 dbr_sequence_length once.
8874 * pa.h (TARGET_SOM): Define if not defined.
8875 * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
8876 with GAS and not SOM.
8877 (jump, call_internal_reg, call_value_internal_reg): Likewise.
8878 * som.h (OBJ_SOM): Rename to TARGET_SOM. Undefine before defining.
8880 2002-04-11 David O'Brien <obrien@FreeBSD.org>
8882 * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
8883 (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
8884 (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
8885 DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
8886 elfos.h and dbxelf.h values are fine now.
8887 * config/i386/freebsd.h, config/alpha/freebsd.h
8888 (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
8890 2002-04-11 David O'Brien <obrien@FreeBSD.org>
8892 * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
8893 or set Acpu or Amachine. Reformat.
8894 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
8896 (LINK_SPEC): Do not need to undef.
8897 * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
8898 * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
8899 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
8901 * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
8902 (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
8903 (LINK_SPEC): Do not need to undef.
8904 (DONT_USE_BUILTIN_SETJMP): Do not define.
8905 * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
8906 (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine. Remove -Dia64.
8907 (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
8908 Remove trailing spaces.
8909 * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
8910 __ELF__, or set Acpu or Amachine. Reformat.
8911 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
8914 2002-04-11 David O'Brien <obrien@FreeBSD.org>
8916 * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
8917 all other *-*-freebsd* targets.
8919 2002-04-11 Richard Henderson <rth@redhat.com>
8921 * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
8923 2002-04-11 David O'Brien <obrien@FreeBSD.org>
8925 * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
8926 Include {cpu}/{cpu}.h thru tm_file.
8927 (alpha*-*-linux*ecoff): Remove target.
8928 * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
8929 (LINK_SPEC): Remove, is not OS independent.
8930 * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
8931 (LINK_SPEC): Do not need to #undef any longer.
8932 * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
8934 * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
8936 (LINK_SPEC): Moved here from alpha/elf.h.
8937 * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
8939 * config/alpha/linux-ecoff.h: Remove.
8940 * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
8941 (CPP_SPEC): Define _POSIX_SOURCE as needed.
8942 (CPP_SUBTARGET_SPEC): Do not define.
8943 (LINK_SPEC): Do not need to #undef any longer.
8944 * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
8945 * config/alpha/vms.h: Likewise.
8947 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
8949 * doc/extend.texi: Remove old claim that typedefs cannot have
8950 an alignment attribute.
8952 2002-04-11 Jakub Jelinek <jakub@redhat.com>
8954 PR optimization/6177
8955 * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
8956 bitpos is 0 and bitsize CONCAT size.
8958 2002-04-11 Jakub Jelinek <jakub@redhat.com>
8961 * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
8963 2002-04-10 David O'Brien <obrien@FreeBSD.org>
8965 * config/alpha/freebsd.h: Minor reformatting.
8966 (CPP_SPEC): Define ELF and add cpp_subtarget.
8967 (ASM_SPEC): No longer needed.
8969 2002-04-11 Richard Henderson <rth@redhat.com>
8971 * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
8972 (movdi_insn_sp32_v9): Likewise. Only allow stx with aligned memory.
8973 (dimode mem/zero splitter): New.
8975 2002-04-11 Hans-Peter Nilsson <hp@axis.com>
8977 * config/cris/cris.c (cris_override_options): Tweak error message
8978 for PIC not implemented.
8980 * config/cris/cris.h: Tweak comments related to parameter-passing.
8982 * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
8984 2002-04-10 Richard Henderson <rth@redhat.com>
8986 * except.c (add_ehl_entry): Allow duplicates after landing pad
8989 2002-04-10 David Edelsohn <edelsohn@gnu.org>
8991 * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
8993 2002-04-10 Toon Moene <toon@moene.indiv.nluug.nl>
8995 * c-decl.c (c_init_decl_processing): Move generation of
8996 decls for g77_integer_type_node and friends from here ...
8997 * c-common.c (c_common_nodes_and_builtins): ... to here.
8999 2002-04-10 Ulrich Weigand <uweigand@de.ibm.com>
9001 * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
9002 is only used as frame pointer when frame_pointer_needed is true.
9004 2002-04-10 Richard Earnshaw <rearnsha@arm.com>
9007 * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
9008 for the fact that the pool entry uses two words.
9009 (movdf_hard_insn): Similarly. Also, ADR instruction can span
9011 (movdf_soft_insn): Similarly.
9012 (movxf_hard_insn): Adjust neg_pool_range attribute to allow
9013 for the fact that the pool entry uses three words.
9015 2002-04-10 Richard Sandiford <rsandifo@redhat.com>
9017 * config/mips/mips.c (mips_va_arg): When using the struct version
9018 of the EABI va_list, allow arguments in the register save area to
9019 take up less room than a stack argument.
9021 2002-04-10 Richard Henderson <rth@redhat.com>
9023 * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
9024 if EXPAND_INITIALIZER.
9026 2002-04-09 Richard Henderson <rth@redhat.com>
9028 * config/alpha/alpha.md (movdi_er_maybe_g): New.
9029 * config/alpha/alpha.c (alpha_expand_mov): Use it.
9031 2002-04-10 Alan Modra <amodra@bigpond.net.au>
9033 PR optimization/6233
9034 * rtlanal.c (pure_call_p): New function.
9035 * rtl.h (pure_call_p): Declare.
9036 * loop.c (prescan_loop): Use it to set has_nonconst_call.
9037 * gcse.c (store_killed_in_insn): Use pure_call_p here too.
9039 2002-04-09 Eric Christopher <echristo@redhat.com>
9041 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
9042 information to .comm directive.
9044 2002-04-09 Richard Henderson <rth@redhat.com>
9047 * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
9049 2002-04-09 Richard Henderson <rth@redhat.com>
9051 * basic-block.h (flow_delete_block_noexpunge): Declare.
9052 (expunge_block_nocompact): Declare.
9053 * cfg.c (expunge_block_nocompact): Split out from ...
9054 (expunge_block): ... here.
9055 * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
9056 (flow_delete_block_noexpunge): Split out from ...
9057 (flow_delete_block): ... here.
9058 * cfgcleanup.c (delete_unreachable_blocks): Compact while
9059 removing dead blocks.
9060 * except.c (exception_handler_labels): Remove.
9061 (exception_handler_label_map): New.
9062 (struct eh_region): Add aka member.
9063 (mark_ehl_map_entry, mark_ehl_map, free_region): New.
9064 (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
9065 (for_each_eh_label, for_each_eh_label_1): New.
9066 (init_eh): Register exception_handler_label_map.
9067 (free_eh_status): Use free_region.
9068 (find_exception_handler_labels): Use the map, not the list.
9069 (remove_exception_handler_label): Likewise.
9070 (maybe_remove_eh_handler): Likewise.
9071 (remove_eh_handler): Use the region aka bitmap.
9072 * except.h (exception_handler_labels): Remove.
9073 (for_each_eh_label): Declare.
9074 * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
9075 * loop.c (invalidate_loops_containing_label): New.
9076 (find_and_verify_loops): Use it. Use for_each_eh_label.
9077 * sched-rgn.c (is_cfg_nonregular): Use
9078 current_function_has_exception_handlers.
9080 2002-04-09 Richard Henderson <rth@redhat.com>
9082 * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
9083 sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
9084 Do not return changed status.
9085 (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
9086 sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
9087 New functions that do return changed status.
9088 * sbitmap.h: Update decls.
9089 * gcse.c, lcm.c: Use _cg functions as needed.
9091 Tue Apr 9 19:15:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
9093 * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
9094 (sh64-*-elf*, sh-*-rtemself*): Likewise.
9095 * config/sh/embed_bb.c: New file.
9096 * config/sh/embed-elf.h: New file.
9097 * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
9098 if -m[12345]* option is given. Don't use subtarget_cpp_ptr_spec.
9099 (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
9101 (SUBTARGET_CPP_PTR_SPEC): Don't define.
9102 (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
9103 Add subtarget_asm_endian_spec.
9104 (ASM_SPEC): Use subtarget_asm_endian_spec.
9105 (SUBTARGET_ASM_ENDIAN_SPEC): Define.
9106 (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
9107 (WCHAR_UNSIGNED): Define.
9108 (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
9109 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
9110 (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
9112 * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
9113 (sh_adjust_cost): Likewise.
9114 sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
9116 (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
9117 (WCHAR_TYPE_SIZE): Likewise.
9118 (ASM_SPEC): Use subtarget_asm_endian_spec.
9119 (SH_ELF_WCHAR_TYPE): #undef/ #define.
9120 (MAX_WCHAR_TYPE_SIZE): Don't #undef.
9121 * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
9122 (MAX_WCHAR_TYPE_SIZE): Don't #define .
9123 (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
9124 (USER_LABEL_PREFIX): Don't #undef /#define .
9125 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
9126 * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
9127 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
9128 (ASM_SPEC): Likewise.
9129 (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
9130 (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
9131 * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
9132 (LIB2FUNCS_EXTRA): Define.
9133 * t-sh64 (LIB2FUNCS_EXTRA): Define.
9134 * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
9135 (LIB1ASMFUNCS_CACHE): Define.
9136 (LIB2FUNCS_EXTRA): Redefine empty.
9138 2002-04-08 Richard Henderson <rth@redhat.com>
9140 * reorg.c (get_branch_condition): Use reversed_comparison_code.
9142 2002-04-09 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9144 * config/m68hc11/larith.asm (__map_data_section): Fix condition
9145 and optimize for size.
9146 (__do_global_ctors): Fix pointer comparison.
9147 (__do_global_dtors): Likewise.
9149 2002-04-09 David S. Miller <davem@redhat.com>
9151 * config/sparc/sparc.c (sparc_extra_constraint_check): New
9152 function, implementing EXTRA_CONSTRAINTS. For memory constraints,
9153 allow reloading pseudos.
9154 * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
9155 * config/sparc/sparc-protos.h: Declare it.
9157 * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
9158 unsigned comparison warning.
9159 (output_restore_regs): Mark leaf_function as unused.
9161 Tue Apr 9 09:35:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9163 * expr.c (is_aligning_offset): New function.
9164 (expand_expr, case COMPONENT_EXPR): Call it.
9166 2002-04-08 David S. Miller <davem@redhat.com>
9169 * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
9171 Make init_priority work on Sparc when using GNU ld.
9172 * config/sparc/linux.h, config/sparc/linux64.h,
9173 config/sparc/netbsd-elf.h, config/sparc/freebsd.h
9174 (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
9175 * config/sparc/sol2-gld.h: New file to do the same.
9176 * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
9177 sparc/sol2-gld.h to tm_file.
9179 PR optimization/4328
9180 * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
9181 * doc/md.texi: Document it.
9182 * config/sparc/sparc.md (movdi_insn_sp64_novis,
9183 movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
9184 movdf_insn_v9only_vis, movdf_insn_sp64_novis,
9185 movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
9186 * config/sparc/sparc.c (mem_min_alignment): Fix comment.
9188 2002-04-08 Andreas Jaeger <aj@suse.de>
9190 * stmt.c (expand_asm_operands): Revert last patch from Richard
9193 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
9195 * doc/contrib.texi (Contributors): Add John David Anglin and Loren
9196 J. Rittle (the latter also to Testers). Update David O'Brien's entry.
9198 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
9200 * doc/contrib.texi (Contributors): Add David O'Brien.
9202 2002-04-08 Alan Modra <amodra@bigpond.net.au>
9204 * configure.in (auto-build.h): Use target_alias and build_alias
9205 when running configure.
9206 (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
9207 (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
9208 * configure: Regenerate.
9210 2002-04-07 David S. Miller <davem@redhat.com>
9212 * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
9214 2002-04-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
9217 * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
9218 generating 32-bit pic code.
9220 2002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
9222 * cppinit.c (cpp_create_reader): Initialize
9223 discard_comments_in_macro_exp.
9224 (COMMAND_LINE_OPTIONS): Add "-CC" option.
9225 (cpp_handle_option): Handle "-CC" option.
9226 * cpplex.c (save_comment): If saving a C++ comment in
9227 a directive, convert it to a C comment.
9228 (_cpp_lex_direct): Pass second comment start character to
9229 save_comment to indicate comment type.
9230 * cpplib.c (_cpp_handle_directive): If processing
9231 a "#define" directive and discard_comments_in_macro_exp
9232 is false, re-enable saving of comments.
9233 (lex_macro_node): If discard_comments_in_macro_exp is false,
9234 discard any comments before the macro identifier.
9235 * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
9237 * cppmacro.c (cpp_get_token): If expanding a macro while
9238 processing a directive, discard any comments we might encounter.
9239 (parse_params): If discard_comments_in_macro_exp is false,
9240 ignore comments in the macro parameter list.
9241 * gcc.c (cpp_unique_options): Add "-CC" option.
9242 (option_map): Map "--comments-in-macros" to "-CC".
9243 * doc/cppopts.texi: Document "-CC" option.
9244 * f/lang-specs.h: Add "-CC" option.
9245 * testsuite/gcc.dg/cpp/maccom1.c: New test.
9246 * testsuite/gcc.dg/cpp/maccom2.c: New test.
9247 * testsuite/gcc.dg/cpp/maccom3.c: New test.
9248 * testsuite/gcc.dg/cpp/maccom4.c: New test.
9249 * testsuite/gcc.dg/cpp/maccom5.c: New test.
9250 * testsuite/gcc.dg/cpp/maccom6.c: New test.
9252 2002-04-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
9255 * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
9257 2002-04-06 Mark Mitchell <mark@codesourcery.com>
9260 * stor-layout.c (layout_decl): Reset the RTL for the decl.
9263 * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
9264 RTX_UNCHANGING_P for the functions arguments when a tail call
9267 2002-04-06 Jason Merrill <jason@redhat.com>
9269 * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
9270 (parse_options_and_default_flags): Set them appropriately.
9271 * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
9273 2002-04-06 Hans-Peter Nilsson <hp@bitrange.com>
9275 * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
9278 * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
9281 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
9282 types come in by-reference. Fix typo in comment.
9284 2002-04-05 David S. Miller <davem@redhat.com>
9286 * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
9287 * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
9288 sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
9289 {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
9291 2002-04-05 David S. Miller <davem@redhat.com>
9293 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
9294 are not going to emit return instructions, emit at least a nop
9295 for the sake of sane backtraces.
9297 2002-04-05 Richard Henderson <rth@redhat.com>
9299 * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
9301 2002-04-05 Jakub Jeilnek <jakub@redhat.com>
9303 * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
9305 2002-04-05 Alexandre Oliva <aoliva@redhat.com>
9307 * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
9308 ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
9309 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
9311 2002-04-05 Andreas Schwab <schwab@suse.de>
9313 * c-convert.c: Include c-common.h.
9314 * Makefile.in (c-convert.o): Updated.
9316 2002-04-05 Jakub Jelinek <jakub@redhat.com>
9318 * mklibgcc.in: Use separate libgcc.map for each multilib.
9319 * Makefile.in (distclean): Don't remove libgcc.map here.
9321 2002-04-05 Jakub Jelinek <jakub@redhat.com>
9323 * Makefile.in (s-mlib): Handle --disable-multilib by separate
9324 genmultilib invocation.
9326 2002-04-04 Richard Sandiford <rsandifo@redhat.com>
9328 * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
9329 to avoid clash with Irix header file sys/ucontext.h. Rename gp_regs
9330 to num_gprs for symmetry.
9331 * config/mips/mips.c: Adjust accordingly.
9333 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
9335 * c-common.c (truthvalue_conversion): Rename, update.
9336 * c-common.h (c_common_truthvalue_conversion): New.
9337 * c-convert.c (convert): Update.
9338 * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
9339 * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
9340 * c-typeck.c (build_binary_op, build_unary_op,
9341 build_conditional_expr): Update.
9342 * fold-const.c (constant_boolean_node, fold): Use langhook.
9343 * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
9344 * langhooks.h (struct lang_hooks): New hook.
9345 * stmt.c (expand_decl_cleanup): Use langhook.
9346 * tree.h (truthvalue_conversion): Remove.
9348 * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
9350 2002-04-05 Alan Modra <amodra@bigpond.net.au>
9352 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
9353 Add rules to make null object file.
9355 2002-04-04 Jim Blandy <jimb@redhat.com>
9357 * cppmacro.c (cpp_macro_definition): Do not emit spaces after
9358 macro formal parameter names.
9360 2002-04-04 David S. Miller <davem@redhat.com>
9362 * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
9364 2002-04-04 Richard Henderson <rth@redhat.com>
9367 * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
9368 Support copies into and out of memory. Don't accept allows_reg
9369 and allows_mem as gospel.
9371 2002-04-04 Richard Henderson <rth@redhat.com>
9374 * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
9375 (write_dependence_p): Likewise.
9377 2002-04-04 Richard Henderson <rth@redhat.com>
9379 * predict.c (estimate_bb_frequencies): Do frequency calculation
9380 with a volatile temporary.
9382 2002-04-04 Ulrich Weigand <uweigand@de.ibm.com>
9384 * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
9386 2002-04-04 Jakub Jelinek <jakub@redhat.com>
9389 * final.c (final_start_function): Don't bump profile_label_no here...
9390 (final_end_function): ...but here.
9392 2002-04-04 Jakub Jelinek <jakub@redhat.com>
9394 * config/sparc/sparc.md (pic): New attribute.
9395 (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
9397 (split after do_builtin_setjmp_setup): New.
9399 2002-04-04 Jakub Jelinek <jakub@redhat.com>
9402 * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
9405 2002-04-04 Jakub Jelinek <jakub@redhat.com>
9407 * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
9408 UNITS_PER_WORD for zero sized aggregates.
9410 2002-04-03 David S. Miller <davem@redhat.com>
9412 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
9413 one-character spec for this, just use %(link_gcc_c_sequence).
9415 2002-04-03 David S. Miller <davem@redhat.com>
9417 * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
9420 2002-04-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
9422 * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
9423 (DWARF_FRAME_RETURN_COLUMN): Move.
9424 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
9425 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
9426 * pa.c (except.h, predict.h): Include.
9428 (store_reg_modify, set_reg_plus_d): Revise prototypes.
9429 (output_ascii): Add cast.
9430 (store_reg_modify): Revise to add frame notes.
9431 (set_reg_plus_d): Likewise.
9432 (compute_frame_size): Include space for eh data registers in frame if
9433 the current function calls eh_return.
9434 (hppa_expand_prologue): Ensure register %r2 is saved if the current
9435 function calls eh_return. Save eh data registers if the current
9436 function calls eh_return. Fix code to add frame notes. Emit
9437 blockage to prevent insns with frame notes being scheduled in the
9438 delay slot of calls.
9439 (hppa_expand_epilogue): Restore eh data registers and do final stack
9440 adjustment if the current function calls eh_return. Don't add frame
9442 (output_call): Revise for change in length of call insn. Don't do
9443 return pointer adjustment for an unconditional jump in the delay slot
9444 of a call when using frame notes.
9445 * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
9446 (EH_RETURN_HANDLER_RTX): Use saved value on stack.
9447 (ARG_POINTER_CFA_OFFSET): Define.
9448 * pa.md (return_external_pic): New pattern.
9449 (prologue): Correct formatting. Use return_external_pic if current
9450 function calls eh_return.
9451 (call_internal_symref, call_value_internal_symref,
9452 sibcall_internal_symref, sibcall_value_internal_symref): Change default
9453 lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
9455 (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
9457 * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
9458 list of targets to check using "nop" insn.
9459 * configure: Rebuilt.
9461 2002-04-04 Alan Modra <amodra@bigpond.net.au>
9463 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
9465 2002-04-03 David S. Miller <davem@redhat.com>
9467 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
9468 library sequence passed to the linker.
9469 (LINK_COMMAND_SPEC): Use it.
9470 * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
9471 a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
9472 * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
9474 2002-04-03 Jason Merrill <jason@redhat.com>
9476 * except.c (struct eh_status): Remove protect_list.
9477 (begin_protect_partials, end_protect_partials): Remove.
9478 (add_partial_entry): Remove.
9479 * except.h: Remove prototypes.
9481 * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
9482 expand_decl_cleanup_eh.
9485 * tree.h (CLEANUP_EH_ONLY): New macro.
9486 * stmt.c (expand_decl_cleanup_eh): New fn.
9487 (expand_cleanups): Check CLEANUP_EH_ONLY.
9488 * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
9489 Use expand_decl_cleanup_eh.
9490 (expand_stmt): Adjust.
9491 * c-common.h: Adjust prototype.
9493 2002-04-04 Hans-Peter Nilsson <hp@axis.com>
9495 * config/cris/cris.c (cris_target_asm_function_prologue): Cast
9496 uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
9497 (cris_target_asm_function_epilogue): Ditto.
9498 (cris_initial_frame_pointer_offset): Ditto.
9499 (cris_simple_epilogue): Ditto.
9500 (cris_expand_builtin_va_arg): Variable-size types come in
9503 2002-04-03 David S. Miller <davem@redhat.com>
9505 * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
9507 (set_fast_math): Correct 'fsr' type.
9509 2002-04-03 Richard Henderson <rth@redhat.com>
9512 * langhooks.h (lang_hooks.decls.warn_unused_global): New.
9513 * toplev.c (check_global_declarations): Use it.
9514 * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
9515 (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
9516 (LANG_HOOKS_DECLS): Add it.
9517 * langhooks.c (lhd_warn_unused_global_decl): New.
9518 * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
9519 * c-objc-common.c (c_warn_unused_global_decl): New.
9520 * c-tree.h (c_warn_unused_global_decl): Declare.
9521 * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
9523 2002-04-03 Neil Booth <neil@daikokuya.demon.co.uk>
9525 * langhooks-def.h (lhd_set_decl_assembler_name,
9526 LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
9527 (LANG_HOOKS_INITIALIZER): Update.
9528 * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
9529 * langhooks.h (struct lang_hooks): New hook.
9530 * tree.c (set_decl_assembler_name): Move to langhooks.c.
9531 (lang_set_decl_assembler_name): Remove.
9532 (init_obstacks): Don't set hook.
9533 (decl_assembler_name): New function.
9534 * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
9535 (decl_assembler_name): New.
9536 (lang_set_decl_assembler_name): Remove.
9538 2002-04-03 Jakub Jelinek <jakub@redhat.com>
9540 * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
9541 works properly with .hidden symbols.
9542 * configure: Rebuilt.
9543 * config.in: Rebuilt.
9544 * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
9545 DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
9546 properly with .hidden symbols.
9548 2002-04-03 Jakub Jelinek <jakub@redhat.com>
9551 * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
9554 2002-04-03 Richard Henderson <rth@redhat.com>
9557 * sched-rgn.c (sets_likely_spilled): New.
9558 (sets_likely_spilled_1): New.
9559 (add_branch_dependences): Use it.
9561 2002-04-02 Richard Henderson <rth@redhat.com>
9564 * loop.h (LOOP_FIRST_PASS): New.
9565 * loop.c (strength_reduce): Mind it when deciding to unroll.
9566 * toplev.c (rest_of_compilation): Set it.
9568 2002-04-02 David S. Miller <davem@redhat.com>
9570 * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
9571 mems_ok_for_ldd_peep when the order of the loads being examined
9573 * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
9574 existing comment to increase comprehension of this situation.
9576 2002-04-02 Zack Weinberg <zack@codesourcery.com>
9578 * config/sh/sh.md: Don't use union real_extract.
9580 2002-04-02 Richard Henderson <rth@redhat.com>
9582 * libgcc2.c (__bb_exit_func): Revert 03-31 change.
9584 2002-04-02 David O'Brien <obrien@FreeBSD.org>
9586 * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
9587 i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
9588 i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
9589 i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
9590 i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
9591 i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
9592 i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
9593 i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
9594 i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
9595 i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
9596 i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
9597 i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
9598 i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
9599 i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
9600 Include as many configury headers via tm_file as possible. This
9601 includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
9602 * config/openbsd-oldgas.h: New file.
9603 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
9604 config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
9605 config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
9606 config/i386/i386-coff.h, config/i386/i386-interix.h,
9607 config/i386/iscdbx.h, config/i386/linux-aout.h,
9608 config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
9609 config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
9610 config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
9611 config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
9612 config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
9613 config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
9614 config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
9615 config/i386/vxi386.h: Do not directly include configury headers.
9616 * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
9617 Directly include configury headers that are no longer automatically
9618 included by the above headers.
9619 * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
9620 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
9621 config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
9622 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
9623 config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
9624 config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
9625 config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
9626 (TARGET_VERSION): Define.
9627 * config/i386/beos-elf.h, config/i386/freebsd.h,
9628 config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
9629 config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
9630 config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
9631 config/i386/sco5.h, config/i386/sysv4.h
9632 (TARGET_VERSION): Do not need to protect.
9633 * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
9634 * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
9635 config/i386/freebsd-aout.h, config/i386/i386-aout.h,
9636 config/i386/i386-interix.h, config/i386/linux-aout.h,
9637 config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
9638 config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
9639 (YES_UNDERSCORES): Do not define - not needed.
9640 * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
9641 ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
9642 USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
9643 * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
9644 (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
9645 USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
9646 * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
9647 * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
9649 2002-04-02 Eric Botcazou <ebotcazou@multimania.com>
9650 Richard Henderson <rth@redhat.com>
9653 * function.c (assign_temp): Accept either type or decl argument.
9654 Detect variables whose size is too large to fit into an integer.
9655 * stmt.c (expand_decl): Pass the decl, not the type.
9657 2002-04-02 David O'Brien <obrien@FreeBSD.org>
9659 * protoize.c: Match include directory usage with cppdefault.c.
9661 2002-04-03 Jeffrey A Law (law@redhat.com)
9662 Hans-Peter Nilsson <hp@bitrange.com>
9664 * combine.c (simplify_comparison): Avoid narrowing a comparison
9665 with a paradoxical subreg when doing so would drop signficant bits.
9667 2002-04-02 Steve Ellcey <sje@cup.hp.com>
9669 * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
9670 if POINTERS_EXTEND_UNSIGNED is defined.
9672 2002-04-02 Richard Henderson <rth@redhat.com>
9675 * local-alloc.c (contains_replace_regs): LO_SUM may contain
9678 2002-04-02 Richard Henderson <rth@redhat.com>
9680 * doc/standards.texi: Document required freestanding libc entry points.
9682 2002-04-02 Alan Modra <amodra@bigpond.net.au>
9684 * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
9685 associated splitter. Remove MQ constraint.
9686 (ctrdi_internal4): Correct CCmode clobber.
9688 2002-04-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
9690 * milli64.S ($$dyncall): New function.
9691 * t-linux (LIB1ASMFUNCS): Revise module list.
9692 (LIB1ASMSRC): Use pa/milli64.S.
9694 2002-04-02 Richard Henderson <rth@redhat.com>
9696 * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
9697 rename solaris_sys_varargs_h.
9699 Tue Apr 2 06:47:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9701 * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
9702 the same mode as its component.
9704 2002-04-02 Richard Henderson <rth@redhat.com>
9707 * final.c (this_is_asm_operands): Export.
9708 * output.h (this_is_asm_operands): Declare.
9709 * config/i386/i386.c (print_operand): Error odd asm operands.
9711 2002-04-02 Richard Henderson <rth@redhat.com>
9714 * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
9716 2002-04-01 Richard Henderson <rth@redhat.com>
9719 * fixinc/inclhack.def (solaris_sys_varargs_h): New.
9720 * fixinc/fixincl.x: Rebuild.
9722 2002-04-01 Richard Henderson <rth@redhat.com>
9724 * config/ia64/unwind-ia64.c: Include ia64intrin.h.
9725 (atomic_alloc, atomic_free): New.
9726 (SIZE, MASK_FOR, PTR_IN): New.
9727 (emergency_reg_state, emergency_reg_state_free): New.
9728 (emergency_labeled_state, emergency_labeled_state_free): New.
9729 (reg_state_alloced, labeled_state_alloced): New.
9730 (alloc_reg_state, free_reg_state): New.
9731 (alloc_label_state, free_label_state, free_label_states): New.
9732 (push, pop, dup_state_stack, free_state_stack): Use them.
9733 (desc_label_state): Likewise.
9734 (uw_frame_state_for): Free label states and state stack.
9735 (uw_update_reg_address): Eliminate warnings.
9737 2002-04-01 Vladimir Makarov <vmakarov@redhat.com>
9739 * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
9740 ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
9742 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
9744 * c-decl.c (grokdeclarator): Update.
9745 * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
9746 * c-tree.h (c_mark_addressable): New.
9747 * c-typeck.c (default_function_array_conversion, build_unary_op,
9748 build_array_ref, convert_for_assignment): Update.
9749 (mark_addressable): Rename.
9750 * calls.c (try_to_integrate, expand_call): Use langhook.
9751 * expr.c (expand_expr): Use langhook.
9752 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
9753 * langhooks.h (struct lang_hooks): New hook.
9754 * stmt.c (expand_asm_operands): Use langhook.
9755 * tree.h (mark_addressable): Remove.
9757 * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
9759 2002-04-01 Bob Wilson <bob.wilson@acm.org>
9761 * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
9764 2002-04-01 Bob Wilson <bob.wilson@acm.org>
9766 * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
9767 for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
9769 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
9771 * c-common.c (unsigned_conversion_warning, convert_and_check,
9772 unsigned_type, signed_type, shorten_compare,
9773 c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
9774 (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
9775 * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
9777 * c-decl.c (grokdeclarator): Update.
9778 * c-format.c (check_format_types): Update.
9779 * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
9780 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
9781 * c-typeck.c (build_binary_op, convert_for_assignment): Update.
9782 * convert.c (convert_to_integer): Use new hooks.
9783 * expmed.c (make_tree): Use new hooks.
9784 * expr.c (store_expr): Use new hooks.
9785 * fold-const.c (operand_equal_for_comparison_p, build_range_check,
9786 all_ones_mask_p, unextend, fold): Use new hooks.
9787 * langhooks.h (struct lang_hooks_for_types): New hooks.
9788 * tree.h (signed_or_unsigned_type, signed_type,
9789 unsigned_type): Remove.
9791 * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
9792 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
9794 2002-03-31 Richard Henderson <rth@redhat.com>
9796 * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
9797 (desc_frgr_mem): Fix reference to f16-f31.
9799 2002-03-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9801 * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
9802 RTVEC_ELT): Const-ify.
9803 * varray.h (VARRAY_CHECK): Const-ify.
9804 * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
9805 ggc_mark_rtvec, ggc_mark): Const-ify.
9807 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
9809 * diagnostic.c: Include langhooks-def.h.
9810 * Makefile.in (diagnostic.o): Update.
9812 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
9814 * c-common.c (c_unsafe_for_reeval): Rename.
9815 * c-common.h (c_unsafe_for_reeval): Rename.
9816 * c-decl.c (finish_incomplete_decl): Rename.
9817 (c_init_decl_processing): Don't set langhook.
9818 * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
9819 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
9820 * c-objc-common.c (c_objc_common_init): Don't set langhook.
9821 * c-tree.h (finish_incomplete_decl): Rename.
9822 * langhooks-def.h (lhd_unsafe_for_reeval): New.
9823 (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
9824 (LANG_HOOKS_INITIALIZER): Update.
9825 * langhooks.c (lhd_unsafe_For_reeval): New.
9826 * langhooks.h (struct langhooks): New hooks.
9827 * toplev.c (incomplete_decl_finalize_hook): Remove.
9828 (wrapup_global_declarations): Update.
9829 * tree.c (lang_unsafe_for_reeval): Remove.
9830 (unsafe_for_reeval): Update.
9831 * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
9834 * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
9835 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
9837 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
9839 * diagnostic.c (print_error_function): Remove.
9840 (default_print_error_function): Rename.
9841 (report_error_function): Update.
9842 * diagnostic.h (print_error_function): Remove.
9843 (default_print_error_function): Remove.
9844 * langhooks-def.h (struct diagnostic_context): Predeclare.
9845 (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
9846 (LANG_HOOKS_INITIALIZER): Update.
9847 * langhooks.h (struct diagnostic context): Predeclare.
9848 (struct lang_hooks): New hook.
9850 2002-03-31 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
9852 * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
9853 (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
9855 (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
9856 * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
9857 of PIC_OFFSET_TABLE_REGNUM thruout.
9858 * config/rs6000/rs6000.md: Likewise.
9859 * config/rs6000/darwin.h: Likewise.
9861 Sun Mar 31 14:43:24 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9863 * emit-rtl.c (adjust_address_1, offset_address): Cast value to
9864 unsigned HOST_WIDE_INT, not unsigned int.
9866 2002-03-31 Jakub Jelinek <jakub@redhat.com>
9868 PR middle-end/6096, middle-end/6098, middle-end/6099
9869 * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
9871 (fill_slots_from_thread): Likewise.
9873 2002-03-31 Jakub Jelinek <jakub@redhat.com>
9875 * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
9876 floating fields in float regs.
9877 (function_arg_record_value_2): Likewise.
9879 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
9881 * config/mmix/mmix.md (define_constants): Remove misleading
9882 FIXME. Add MMIX_fp_rO_OFFSET.
9883 ("nonlocal_goto_receiver"): Don't have stack-frame address of
9884 saved rO as part of the pattern. Remove FIXME.
9885 ("*nonlocal_goto_receiver_expanded"): Similar. Generate address
9886 here, at output-time.
9888 2002-03-31 Jakub Jelinek <jakub@redhat.com>
9891 * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
9893 (output_v9branch): Likewise.
9895 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
9897 * gcc.c: Revert previous patch for now.
9898 * config/i386/djgpp.h: Likewise.
9900 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
9902 * config/mmix/crti.asm (_init): Register _fini with atexit.
9903 * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
9905 2002-03-31 Richard Henderson <rth@redhat.com>
9908 * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
9909 (ASM_OUTPUT_DEF_FROM_DECLS): New.
9911 2002-03-31 Richard Henderson <rth@redhat.com>
9913 * libgcc2.c (__bb_exit_func): Make static.
9915 * config/alpha/alpha.md (trap): New.
9917 2002-03-31 Richard Henderson <rth@redhat.com>
9919 * builtins.c (expand_builtin_va_arg): Give warnings not errors for
9920 promoted argument types; build trap.
9921 (expand_builtin_trap): New.
9922 (expand_builtin): Use it.
9923 * stmt.c (expand_nl_goto_receivers): Likewise.
9924 * expr.h (expand_builtin_trap): Declare.
9925 * libfuncs.h (LTI_abort, abort_libfunc): New.
9926 * optabs.c (init_optabs): Init abort_libfunc.
9928 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
9930 * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
9931 (LINK_COMMAND_SPEC): ... from here.
9932 (init_gcc_specs): Duplicate it here too, omitting
9933 shared_name in the second copy.
9934 (init_spec): Test for duplicate
9935 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
9937 2002-03-30 David S. Miller <davem@redhat.com>
9939 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
9940 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
9942 2002-03-30 Roger Sayle <roger@eyesopen.com>
9943 Richard Henderson <rth@redhat.com>
9945 * regmove.c (combine_stack_adjustments_for_block): Avoid
9946 emitting a stack adjustment of zero bytes. Let delete_insn
9949 2002-03-30 Richard Henderson <rth@redhat.com>
9951 * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
9952 (sparc_emitting_epilogue): New.
9953 (leaf_label, output_return, sparc_return_peephole_ok): Remove.
9954 * config/sparc/sparc-protos.h: Update.
9955 * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
9956 (TARGET_SWITCHES): Update.
9957 * config/sparc/sparc.md (return): Remove.
9958 (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
9959 * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
9960 config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
9961 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
9962 config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
9963 config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
9964 config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
9965 Remove MASK_EPILOGUE.
9966 * doc/invoke.texi: Update.
9968 2002-03-30 Daniel Berlin <dan@dberlin.org>
9970 * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
9971 CPP will start the file for us.
9973 2002-03-30 Richard Henderson <rth@redhat.com>
9976 * config/ia64/ia64.c (group_barrier_needed_p): Special case
9977 prologue_allocate_stack.
9978 (ia64_single_set): Use insn codes for recognition of special
9979 cases, not rtl matching.
9980 * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
9982 Sat Mar 30 23:48:41 CET 2002 Jan Hubicka <jh@suse.cz>
9984 * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
9986 2002-03-30 Richard Henderson <rth@redhat.com>
9989 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
9990 or -fomit-frame-pointer with profiling.
9991 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
9992 (FUNCTION_PROFILER): Do nothing.
9993 (PROFILE_HOOK): New.
9994 * config/sparc/sparc.c (sparc_override_options): Don't check
9995 code models for profiling.
9996 (sparc_function_profiler): Remove.
9997 (sparc_profile_hook): New.
9998 * config/sparc/sparc-protos.h: Update.
10000 2002-03-30 Jakub Jelinek <jakub@redhat.com>
10002 PR optimization/6086
10003 * combine.c (combine_simplify_rtx): If simplify_rtx failed because
10004 of SUBREG of volatile MEM or because the MEM was mode dependent,
10005 return CLOBBER instead of unmodified SUBREG.
10007 Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
10009 * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
10010 when not optimizing.
10012 * toplev.c (rest_of_compilation): Cann mark_constant_function
10013 only when optimizing.
10015 * flow.c (calculate_global_regs_live): Ensure that all AUX fields
10018 * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
10019 (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
10020 (try_optimize_cfg): clear all AUX fields.
10022 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
10023 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
10024 (ix86_address_cost): Be prepared for SUBREGed registers.
10025 (legitimate_address_p): Accept SUBREGed registers.
10027 2002-03-29 Richard Henderson <rth@redhat.com>
10030 * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
10032 2002-03-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10034 * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
10035 for aggregate and TFmode types.
10037 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
10039 * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
10041 2002-03-29 Richard Henderson <rth@redhat.com>
10044 * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
10045 * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
10047 2002-03-29 Richard Henderson <rth@redhat.com>
10050 * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
10051 (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
10052 * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
10053 * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
10055 * docs/invoke.texi: Update -mno-fancy-math-387 docs.
10057 2002-03-29 Dale Johannesen <dalej@apple.com>
10059 * loop.c (combine_movables): Do allow combination of pseudos.
10061 2002-03-29 Loren J. Rittle <ljrittle@acm.org>
10063 * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
10064 * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
10065 No functional change except ...
10066 * config/t-slibgcc-nolc-override (SHLIB_LC): Override it. New file.
10067 * doc/install.texi (*-*-freebsd*): Document port configuration.
10069 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
10071 * Makefile.in (convert.o, calls.o, expmed.o): Update.
10072 * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
10074 * builtin-types.def (BT_PTRMODE): Update.
10075 * c-common.c (type_for_size): Rename c_common_type_for_size.
10076 (type_for_mode): Similarly.
10077 (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
10079 * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
10080 * c-decl.c (finish_enum, build_enumerator): Use new hooks.
10081 * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
10083 * c-typeck.c (common_type, comptypes, default_conversion):
10085 * calls.c: Include langhooks.h.
10086 (emit_library_call_value_1): Use new hooks. Avoid redundant
10088 * convert.c: Include langhooks.h
10089 (convert_to_pointer, convert_to_integer): Use new hooks.
10090 * except.c (init_eh): Similarly.
10091 * expmed.c: Include langhooks.h.
10092 (expand_mult_add): Use new hooks.
10093 * expr.c (store_expr, store_constructor, expand_expr, do_jump,
10094 try_casesi): Similarly.
10095 * fold-const.c (optimize_bit_field_compare, make_range,
10096 decode_field_reference, fold_truthop, fold): Similarly.
10097 * function.c (assign_stack_local_1, assign_stack_temp_for_type,
10098 put_var_into_stack): Similarly.
10099 * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
10100 LANG_HOOKS_TYPE_FOR_SIZE): New.
10101 (LANG_HOOKS_TYPES_INITIALIZER): Update.
10102 * langhooks.h (lang_hooks_for_types): New hooks.
10103 * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
10104 * tree.c (get_unwidened, get_narrower): Similarly.
10105 * tree.h (type_for_mode, type_for_size): Remove.
10106 * varasm.c (force_const_mem): Use new hooks.
10107 * utils2.c (nonbinary_modular_operation): Update.
10109 * objc-act.c (handle_impent): Update.
10110 * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
10113 2002-03-29 Steve Ellcey <sje@cup.hp.com>
10115 * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
10116 * config/ia64/ia64.c (basereg_operand): New.
10117 * config/ia64/ia64-protos.h (basereg_operand): Declare.
10118 * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
10120 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
10122 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
10123 unwind information when frame_pointer_needed.
10124 (mmix_assemble_integer): Tweak wording in comment.
10126 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
10128 * Makefile.in (except.o): Update.
10129 * except.c: Include langhooks.h.
10130 (init_eh): Use langhook.
10131 * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
10132 LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
10133 (LANG_HOOKS_INITIALIZER): Update.
10134 * langhooks.h (lang_hooks_for_types): New.
10135 (struct lang_hooks): Add it.
10136 * tree.c (make_lang_type_fn, make_lang_type): Remove.
10137 * tree.h (make_lang_type_fn, make_lang_type): Remove.
10139 * alpha/alpha.c: Include langhooks.h.
10140 (alpha_build_va_list): Use langhook.
10141 * d30v/d30v.c: Include langhooks.h.
10142 (d30v_build_va_list): Use langhook.
10143 * i386/i386.c: Include langhooks.h.
10144 (ix86_build_va_list): Use langhook.
10145 * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
10146 * s390/s390.c: Include langhooks.h.
10147 (s390_build_va_list): Use langhook.
10148 * stormy16/stormy16.c: Include langhooks.h.
10149 (stormy16_build_va_list): Use langhook.
10151 2002-03-29 Jakub Jelinek <jakub@redhat.com>
10154 * config/sparc/sparc.md (empty_delay_slot, branch_type): New
10156 (length): Compute variable length for branches/calls/jumps here.
10157 (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
10158 normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
10159 define branch_type attribute.
10160 (divsi3_sp32): Maximum length is 6 not 7.
10161 (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
10162 call_address_untyped_struct_value_sp32,
10163 call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
10164 * config/sparc/sparc.c (empty_delay_slot): New function.
10165 * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
10166 * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
10168 2002-03-29 Jakub Jelinek <jakub@redhat.com>
10170 * combine.c (set_nonzero_bits_and_sign_copies): Don't call
10171 nonzero_bits if not needed.
10172 (nonzero_bits) [XOR]: Likewise.
10173 (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
10174 reg_last_set_mode and mode are both MODE_INT, but not equal.
10175 (record_value_for_reg): Compute reg_last_set_nonzero_bits
10176 in nonzero_bits_mode for MODE_INT modes.
10178 2002-03-28 Richard Henderson <rth@redhat.com>
10181 * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
10182 to GAS. Correct drift between alternatives.
10184 2002-03-28 Richard Henderson <rth@redhat.com>
10187 * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
10189 2002-03-28 Alexandre Oliva <aoliva@redhat.com>
10191 * config/i386/freebsd.h (LINK_SPEC): Don't pass default
10192 emulation to the linker.
10194 2002-03-28 Loren J. Rittle <ljrittle@acm.org>
10196 * config/alpha/freebsd.h (LINK_SPEC): Likewise.
10197 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
10199 Thu Mar 28 16:35:31 2002 Jeffrey A Law (law@redhat.com)
10201 * combine.c (simplify_and_const_int): Make sure to apply mask
10202 when force_to_mode returns a constant integer. PR3311.
10204 2002-03-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
10206 * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
10208 2002-03-28 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
10210 * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
10211 and Objective-C Dialect Options.
10213 2002-03-28 Richard Henderson <rth@redhat.com>
10215 * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
10216 comparison should be done vs !=0 not >0 return code. Tidy cases.
10218 2002-03-28 Richard Henderson <rth@redhat.com>
10220 * c-decl.c (finish_function): New arg can_defer_p. Pass it
10221 on to c_expand_body.
10222 * c-tree.h (finish_function): Update decl.
10223 * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
10225 Thu Mar 28 19:13:36 CET 2002 Jan Hubicka <jh@suse.cz>
10227 * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
10229 Thu Mar 28 13:21:53 CET 2002 Jan Hubicka <jh@suse.cz>
10231 * rtlanal.c: Include flags.h
10232 (may_trap_p): Do not mark FP operations if trapping
10233 if !flag_trapping_math
10234 * Makefile.in (rtlanal.o): Add dependency on flag.h
10235 * ifcvt.c (noce_operand_ok): Avoid the lameness.
10237 2002-03-27 Zack Weinberg <zack@codesourcery.com>
10239 * mips.md: Use dconst1, not 1.0, as first argument of
10240 REAL_VALUE_LDEXP. Don't use union real_extract.
10242 2002-03-28 Alan Modra <amodra@bigpond.net.au>
10244 * configure.in (gcc_cv_as): Use $target_alias in directory searchs
10245 rather than $target. Heed program_prefix and
10246 program_transform_name. Search for gas in cross-compiler case too.
10247 "test -x" rather than "test -f".
10248 (gcc_cv_ld): Likewise.
10249 (gcc_cv_nm): Heed program_prefix and program_transform_name.
10250 (gcc_cv_objdump): Likewise.
10251 * configure: Regenerate.
10253 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
10255 * Makefile.in (attribs.o): Update.
10256 * attribs.c: Include langhooks.h.
10257 (decl_attributes): Use langhook.
10258 * c-decl.c (insert_default_attributes): Rename.
10259 * c-tree.h (c_insert_default_attributes): New.
10260 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
10261 (LANG_HOOKS_INITIALIZER): Update.
10262 * langhooks.h (struct lang_hooks): New hook.
10263 * tree.h (insert_default_attributes): Remove.
10265 * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
10267 2002-03-27 Andreas Schwab <schwab@suse.de>
10269 * config/i386/i386.c (classify_argument): Also check for
10272 2002-03-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10274 * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
10277 Wed Mar 27 23:19:30 CET 2002 Jan Hubicka <jh@suse.cz>
10279 * i960.md (ret): Set PC.
10280 (nonlocal_goto): Fix expander.
10281 * builtins.c (epxand_builin_longjmp): Check that we've emitted
10284 Wed Mar 27 23:11:35 CET 2002 Jan Hubicka <jh@suse.cz>
10286 * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
10287 of libcall regions.
10289 Wed Mar 27 22:54:14 CET 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10291 * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
10292 assigning to BLOCK_FOR_INSN directly.
10294 Wed Mar 27 22:33:05 CET 2002 Jan Hubicka <jh@suse.cz>
10296 * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
10298 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
10300 * c-common.c (c_expand_expr): Fix prototype.
10301 * c-common.h (c_expand_expr): Always declare, update.
10302 * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
10303 * c-objc-common.c (c_objc_common_init): No global hook.
10304 * expr.c (expand_expr): Use langhook.
10305 * expr.h (enum expand_modifier): Conditionally declare.
10306 * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
10307 (LANG_HOOKS_INITIALIZER): Update.
10308 * langhooks.c (lhd_expand_expr): New.
10309 * langhooks.h (struct lang_hooks): New hook.
10310 * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
10311 (lang_independent_init): Don't default hook.
10313 * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
10315 2002-03-27 Richard Henderson <rth@redhat.com>
10318 * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
10319 TARGET_CONST_GP. Simplify conditions.
10321 2002-03-27 Richard Henderson <rth@redhat.com>
10323 * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
10324 config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
10325 config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
10327 2002-03-27 Danny Smith <dannysmith@users.sourceforge.net>
10329 * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
10330 TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
10331 (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
10332 Remove unnecessary masks.
10333 (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
10334 (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
10335 -mwindows, -mdll switches and their negations.
10337 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
10339 * gcc-common.c (lang_mark_false_label_stack): Remove.
10340 * ggc.h (lang_mark_false_label_stack): Similarly.
10342 2002-03-26 Vladimir Makarov <vmakarov@redhat.com>
10344 * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
10346 * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
10347 or __rtems_ is defined.
10349 2002-03-26 Richard Henderson <rth@redhat.com>
10351 * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
10352 if a non-trivial load was emitted.
10353 (alpha_emit_set_const_1): Remove obsolete extension. Fix thinko
10354 in high+extra+low case.
10356 2002-03-26 Richard Henderson <rth@redhat.com>
10358 * config.gcc (sparc*-solaris): Use float_format=sparc.
10360 2002-03-26 Richard Henderson <rth@redhat.com>
10362 * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
10363 * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
10364 * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
10365 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
10366 (WINT_TYPE_SIZE): Fix at 32.
10368 2002-03-26 Richard Henderson <rth@redhat.com>
10370 * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
10371 until after eh landing pad generation.
10372 * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
10373 * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
10375 2002-03-26 Richard Henderson <rth@redhat.com>
10377 * expr.h (ADD_PARM_SIZE): One more convert for INC.
10379 2002-03-26 Phil Edwards <pme@gcc.gnu.org>
10381 * gcc.c (cpp_options): Preserve relative ordering of -pedantic
10382 and warning switches.
10383 (cc1_options): Likewise.
10385 2002-03-26 Hans Boehm <Hans_Boehm@hp.com>
10387 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
10388 Restore more of the signal context. Set no_reg_stack_frame.
10389 * config/ia64/unwind-ia64.c (unw_state_record):
10390 Add no_reg_stack_frame, comments.
10391 (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
10392 (uw_update_context): Adjust bsp when unwinding from leaf,
10393 but not signal frame.
10395 2002-03-26 David Edelsohn <edelsohn@gnu.org>
10397 * config/rs6000/aix51.h (WCHAR_TYPE): Define.
10399 2002-03-26 Bob Wilson <bob.wilson@acm.org>
10401 * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
10403 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
10406 * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
10407 "Add a pool_range attribute", which was lost during the ARM/Thumb
10410 2002-03-26 Bob Wilson <bob.wilson@acm.org>
10412 * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
10413 a register into the MAC16 accumulator.
10415 2002-03-26 Andrew Cagney <ac131313@redhat.com>
10417 * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
10418 (Warning Options): Document -Wswitch-enum.
10419 * toplev.c (W_options): Add -Wswitch-enum. Update comment on
10421 (warn_switch_enum): Define variables.
10422 * flags.h (warn_switch_enum): Declare variables.
10423 * stmt.c (expand_end_case_type): When warn_switch_enum /
10424 -Wswitch-enum, perform switch checks.
10427 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
10429 * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
10430 (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
10431 (reload_muladdsi_compare0_scratch): Delete.
10433 2002-03-26 Loren J. Rittle <ljrittle@acm.org>
10435 * doc/install.texi (*-*-freebsd*): Update.
10437 2002-03-26 Richard Henderson <rth@redhat.com>
10439 * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
10440 (SUB_PARM_SIZE): Cast DEC to ssizetype.
10442 * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
10443 types from the normal argument frame.
10445 * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
10446 variable sized objects by reference.
10447 (sparc_va_arg): Receive them by reference too.
10449 2002-03-26 Hartmut Penner <hpenner@de.ibm.com>
10451 * config/s390/s390.c (s390_emit_epilogue): Change epilogue
10452 code to not restoring global registers.
10454 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
10456 * Makefile.in (ggc-common.o): Update.
10457 * c-decl.c (lang_mark_tree): Rename c_mark_tree.
10458 * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
10459 * c-tree.h (c_mark_tree): New.
10460 * ggc-common.c: Include langhooks.h.
10461 (gcc_mark_trees): Use new langhook.
10462 * ggc-callbacks.c: Delete file.
10463 * ggc.h (lang_mark_tree): Remove.
10464 * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
10465 (LANG_HOOKS_INITIALIZER): Update.
10466 * langhooks.h (struct lang_hooks): New hook.
10468 * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
10470 2002-03-25 Zack Weinberg <zack@codesourcery.com>
10472 * doc/cpp.texi: Exclude entire Top node from printed manual.
10473 Move option index after directive index. Insert page breaks
10474 before GFDL and concept index. Index environment variables
10475 with command line options.
10476 * doc/cppenv.texi: Use @vtable for environment variable list.
10477 Add paragraph explaining semantics of empty elements in path
10478 variables. Exclude a cross-reference to Fishkill from the
10479 manpage. Remove an unnecessary cross-reference of the entry
10480 right above the referer. Don't use @anchor in text that goes
10482 * doc/cppopts.texi: Cross-reference the environment variables
10483 section, not the specific environment variable, for consistency.
10485 2002-03-25 Richard Henderson <rth@redhat.com>
10487 * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
10488 anywhere in the block. Don't refer to insns that have been
10489 removed from the chain. Iterate backward through the new insns.
10490 Don't refer to edges that have been removed.
10492 2002-03-26 Alan Modra <amodra@bigpond.net.au>
10494 * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
10495 test for overflow of constant.
10497 2002-03-25 Richard Earnshaw <rearnsha@arm.com>
10500 * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
10501 (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
10502 these patterns on arm_archv4.
10504 2002-03-25 Danny Smith <dannysmith@sourceforge.users.net>
10506 * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
10509 2002-03-25 Zack Weinberg <zack@codesourcery.com>
10511 * toplev.c: Don't include setjmp.h. Kill float_handler_set,
10512 float_handled, float_handler, float_signal, set_float_handler,
10513 and do_float_handler. Set handler for SIGFPE to crash_signal.
10514 * toplev.h: Don't prototype do_float_handler.
10516 * c-lex.c: Fold parse_float into lex_number. Make warning
10517 about portability of hex float constants more informative, and
10518 don't issue it on top of a syntax error.
10519 * fold-const.c: Fold const_binop_1 and fold_convert_1 into
10521 * real.h: Define REAL_VALUE_ABS here...
10522 * simplify-rtx.c: ... not here. Fold check_fold_consts,
10523 simplify_unary_real, simplify_binary_real, and
10524 simplify_binary_is2orm1 into their callers.
10525 * tree.c: Fold build_real_from_int_cst_1 into caller.
10527 * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
10529 * tsystem.h: Include float.h here...
10530 * libgcc2.c: ... not here.
10532 2002-03-25 Nick Clifton <nickc@cambridge.redhat.com>
10534 Fixes for: PR bootstrap/3591, target/5676
10535 * config/mcore/mcore.h (CC1_SPEC): Define only if not already
10536 defined. Do not disable exceptions or rtti.
10537 * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
10538 mcore.h. Disable exceptions and rtti, since they are not
10541 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
10543 * c-decl.c (maybe_build_cleanup): Remove.
10544 * expr.c (expand_expr): Use langhook.
10545 * langhooks-def.h (lhd_return_null_tree,
10546 LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
10547 (LANGHOOKS_INITIALIZER): Update.
10548 * langhooks.c (lhd_return_null_tree): New.
10549 * langhooks.h (struct lang_hooks): New hook.
10550 * tree-inline.c (initialize_inlined_parameters): Use langhook.
10551 * tree.h (maybe_build_cleanup): Remove.
10553 2002-03-25 Jakub Jelinek <jakub@redhat.com>
10555 * regrename.c (build_def_use): Move recog_memoized
10556 before extract_insn.
10558 2002-03-25 Jakub Jelinek <jakub@redhat.com>
10561 * expr.c (emit_group_store): Handle storing into CONCAT.
10563 2002-03-25 Jakub Jelinek <jakub@redhat.com>
10565 * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
10566 corresponding MATCH_DUP.
10568 2002-03-24 Richard Henderson <rth@redhat.com>
10570 * unroll.c (unroll_loop): Zero label_map.
10572 * gcse.c: Include except.h.
10573 * Makefile.in (gcse.o): Update.
10575 2002-03-24 Richard Henderson <rth@redhat.com>
10577 * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
10578 Do resolve_unique_section before shared data clause.
10580 2002-03-24 Richard Henderson <rth@redhat.com>
10582 * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
10584 2002-03-24 Richard Henderson <rth@redhat.com>
10586 * recog.c (peephole2_optimize): Split blocks when EH insns are
10587 generated in the middle of a block. Do global life update if
10590 2002-03-24 Richard Henderson <rth@redhat.com>
10592 * mips.c (mips_function_value): Only promote_mode for non-libcalls.
10594 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
10597 * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
10598 * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
10599 (init_dependency_output): Don't make no_output decision here.
10601 2002-03-24 Andrew Cagney <ac131313@redhat.com>
10603 * stmt.c (check_for_full_enumeration_handling): Remove tests of
10604 warn_switch. Update description.
10605 (expand_end_case_type): Call check_for_full_enumeration_handling
10608 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
10610 * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
10611 (m68hc11_split_move): Call it to see if the source and destination
10612 operands use the same direction auto inc/dec mode, otherwise make the
10613 source an offsetable memory operand and generate an add.
10615 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
10617 * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
10618 register for operand 2.
10619 ("*subsi3_zero_extendqi"): Likewise.
10620 ("*iorhi3_gen"): Do the operation on the upper bits and then lower
10621 bits so that it is compatible with a pop.
10622 ("*andhi3_gen"): Likewise.
10623 ("xorhi3"): Likewise.
10625 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
10627 * cppinit.c (cpp_handle_option): Set warn_endif_labels if
10629 (cpp_post_options): ... not here.
10631 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
10632 Aldy Hernandez <aldyh@redhat.com>
10634 Removal of separate preprocessor cpp0.
10636 * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
10637 cpp0, install-common): Update.
10638 * c-common.c (flag_preprocess_only): New.
10639 (c_common_init): Preprocess for -E.
10640 * c-common.h (flag_preprocess_only): New.
10641 * c-decl.c (c_decode_option): Handle -E and -std=c++98.
10642 * c-objc-common.c (c_init_decl_processing): Exit quickly
10643 for NULL return from c_common_init.
10644 * cpplib.h (cpp_preprocess_file): New.
10645 * cppmain.c (main, general_init, pfile, progname): Remove.
10646 (do_preprocessing): Rename cpp_preprocess_file, don't call
10647 cpp_finish. Don't close stdout here.
10648 (setup_callbacks): Update prototype.
10649 * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
10651 * tradcpp.c (main): Ignore -quiet.
10653 * lang-specs.h (default_compilers): Preprocess with cc1obj.
10655 2002-03-24 Richard Henderson <rth@redhat.com>
10657 PR optimization/5742
10658 * machmode.def: Add inner mode field to complex modes.
10659 * config/mips/mips.c (mips_function_value): Always define. Add
10660 new argument to handle libcalls.
10661 * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
10662 (FUNCTION_VALUE): Likewise.
10663 * config/mips/abi64.h (FUNCTION_VALUE): Remove.
10664 * config/mips/mips-protos.h: Update.
10666 2002-03-23 Richard Henderson <rth@redhat.com>
10668 * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
10669 * config/sparc/sparc-protos.h: Update.
10670 * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
10672 2002-03-23 Richard Henderson <rth@redhat.com>
10674 * config/sparc/gmon-sol2.c (internal_mcount): Assume either
10675 _start or _init begins the text segment.
10677 2002-03-23 David Edelsohn <edelsohn@gnu.org>
10679 * config/rs6000/rs6000.h (RETURN_IN_MEMORY): Cast to HOST_WIDE_INT
10680 not HOST_WIDEST_INT.
10681 (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
10683 2002-03-23 Richard Earnshaw <rearnsha@arm.com>
10686 * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
10687 operand argument to output_return_instruction.
10688 * arm.c (arm_print_operand, case 'd'): If the operand is
10689 const_true_rtx then just return.
10690 (arm_print_operand, case 'D'): If the operand is const_true_rtx
10693 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10695 * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
10696 (Warning Options): Document -Wswitch-default.
10697 * toplev.c (W_options): Add -Wswitch-default. Update comment on
10699 (warn_switch_default): Define variable.
10700 (warn_switch): Update comment.
10701 * flags.h (warn_switch_default): Declare variable.
10702 (warn_switch): Update comment.
10703 * stmt.c (expand_end_case): Check for and, when
10704 warn_switch_no_default, warn of a missing default case.
10706 2002-03-23 Alan Modra <amodra@bigpond.net.au>
10708 * real.h (N): Special case 128 bit doubles.
10710 * combine.c (simplify_comparison): When widening modes, ignore
10711 sign extension on CONST_INTs.
10713 2002-03-22 Bob Wilson <bob.wilson@acm.org>
10715 * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
10716 passed to adjust_address. Fix comment formatting.
10719 2002-03-22 Zack Weinberg <zack@codesourcery.com>
10721 * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
10722 Always make REAL_VALUE_TYPE a struct containing an array of
10723 HOST_WIDE_INT, not a double. Tidy up the code deciding how
10724 big it is. Don't declare or use union real_extract.
10726 * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
10727 decode_rtx_const, output_constant_pool), config/a29k/a29k.c
10728 (print_operand), config/arm/arm.c (output_move_double),
10729 config/arm/arm.md (consttable_4, consttable_8),
10730 config/romp/romp.c (output_fpops), config/s390/s390.h
10731 (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
10732 (xtensa_output_literal): Don't use union real_extract.
10734 * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
10735 (sfmode_constant_to_ulong), config/ns32k/merlin.h
10736 (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
10737 config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
10738 (PRINT_OPERAND): Don't use local version of union
10741 * config/convex/convex.c (check_float_value), config/vax/vax.c
10742 (vax_float_literal), config/m88k/m88k.md (divdf3),
10743 config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
10744 config/pdp11/pdp11.c (output_move_quad): Don't do host
10745 arithmetic on target floating point quantities.
10747 * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
10748 (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
10750 * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
10751 Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
10753 * real.c (earith): Test INFINITY rather than REAL_INFINITY;
10754 NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
10756 * print-rtl.c (print_rtx): Disable code which needs
10757 floating-point emulator.
10758 * libgcc2.c: Include float.h and use DBL_MANT_DIG,
10759 FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
10760 depending on HOST_FLOAT_FORMAT to be defined properly.
10762 * config/1750a/1750a.c (get_double, float_label): Delete.
10763 (print_operand): Delete huge commented-out chunk. Use
10764 REAL_VALUE_TO_DECIMAL.
10765 * config/1750a/1750a-protos.h: Delete prototypes of deleted
10767 * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
10769 * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
10770 Use REAL_VALUE_TO_DECIMAL as ELF version does.
10771 * config/m88k/m88k.c (real_power_of_2_operand,
10772 legitimize_operand): Take the REAL_VALUE_TYPE and/or union
10773 real_extract out of the union; run the input through
10774 REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
10775 from that into the union.
10776 * config/pdp11/pdp11.c (output_move_double): Rearrange
10777 parentheses to make automatic indenter happy.
10779 * doc/tm.texi (Cross-compilation): Rename node to "Floating
10780 Point" and rewrite to describe current situation. Also adjust
10781 documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
10783 * doc/rtl.texi: Adjust cross reference.
10785 2002-03-22 Bob Wilson <bob.wilson@acm.org>
10787 * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
10788 (xtensa_valid_move, xtensa_preferred_reload_class): Define.
10789 * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
10790 (xtensa_valid_move, xtensa_preferred_reload_class): Define to
10791 prevent use of sp as a reload register.
10792 (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
10793 non_acc_reg_operand.
10794 * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
10795 (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
10796 * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
10797 movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
10799 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
10801 * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
10802 * cpplex.c (unterminated): Delete.
10803 (parse_string): No string literal may extend over multiple
10804 lines. Suppress the error when preprocessing assembly.
10805 * cppmain.c (scan_translation_unit): Strings are single-line.
10807 * doc/cpp.texi: Update to match.
10809 2002-03-22 Jakub Jelinek <jakub@redhat.com>
10811 PR optimization/5854
10812 * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
10814 (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
10815 (EXTRA_CONSTRAINT): Use S for non-push memory operand.
10816 * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
10817 const0 if scratch register was not allocated.
10818 (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
10819 m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
10820 with GEN_INT (...).
10821 (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
10822 * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
10823 with GEN_INT (...) everywhere. Remove constraints in define_split
10825 (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
10826 require scratch register for setting 0 into regs/non-pushable memory.
10828 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
10830 * config/mips/mips.h (MASK_RETURN_ADDR): Define.
10831 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
10833 2002-03-22 Phil Edwards <pme@gcc.gnu.org>
10835 * cpplib.h (struct cpp_options): New member, warn_endif_labels.
10836 * cppinit.c (cpp_create_reader): On by default.
10837 (cpp_handle_option): Handle -W[no-]endif-labels.
10838 (cpp_post_options): Also enable if -pedantic.
10839 * cpplib.c (do_else): Use it.
10840 (do_endif): Likewise.
10841 * doc/cppopts.texi: Document new option.
10842 * doc/invoke.texi: Document new option.
10844 2002-03-22 Lars Brinkhoff <lars@nocrew.org>
10846 * config/i386/i386.c, config/i386/i386.md: Change all occurences
10847 of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
10849 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
10851 * flow.c (calculate_global_regs_live): Clear aux fields of
10854 2002-03-22 Jakub Jelinek <jakub@redhat.com>
10856 * config/v850/v850.c (v850_reorg): Only call alter_subreg on
10857 REG or MEM subregs, pass rtx * instead of rtx to it.
10858 * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
10859 rtx * instead of rtx to alter_subreg.
10860 * config/m32r/m32r.c (gen_split_move_double): Likewise.
10861 * config/pj/pj.c (pj_output_rval): Likewise.
10863 2002-03-22 Richard Henderson <rth@redhat.com>
10866 * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
10867 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
10868 * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
10869 (ia64_expand_prologue): Look at int_regs, not words, for number
10870 of incomming int regs.
10872 2002-03-22 Andrew MacLeod <amacleod@redhat.com>
10874 * expr.c (expand_expr): A RESULT_DECL is part of a call.
10876 Fri Mar 22 16:30:42 CET 2002 Jan Hubicka <jh@suse.cz>
10878 * toplev.c (flag_loop_optimize, flag_crossjumping):
10879 New static variables.
10880 (rest_of_compilation): Conditionalize crossjumping and
10882 (parse_options_and_default_flags): Default loop_optimize and
10884 (lang_independent_options): Add -fcrossjumping and -floop-optimize
10885 * invoke.texi (crossjumping, loop-optimize): Document.
10887 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
10889 * real.c (eiisneg): Move outside #ifdef NANS.
10891 Fri Mar 22 12:08:36 CET 2002 Jan Hubicka <jh@suse.cz>
10893 * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
10894 frequencies match; avoid match on different loop depths.
10895 (try_crossjump_to_bb): Kill tests that no longer brings time
10897 * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
10899 (split_edge): Likewise.
10901 * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
10904 * Makefile.in (cfgrtl): Add insn-config.h depenendency.
10905 * cfgrtl.c: Include insn-config.h
10906 (split_block) Dirtify block in presence of conditional execution
10908 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
10910 * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
10911 * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
10912 (function_arg): Constify CUMULATIVE_ARGS.
10913 (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
10914 * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
10915 (UNITS_PER_DOUBLE): New macro.
10916 (SETUP_INCOMING_VARARGS): Define. Use mips_setup_incoming_varargs.
10917 (CUMULATIVE_ARGS): Reformat. Remove num_adjusts workaround and
10918 last_arg_fp field. Replace arg_words and fp_arg_words with gp_regs,
10919 fp_regs and stack_words.
10920 (EABI_FLOAT_VARARGS_P): New macro.
10921 * config/mips/mips.c (struct mips_arg_info): New.
10922 (mips_arg_info): New function.
10923 (function_arg_advance): Use it. Add adjustment instructions here
10924 rather than in function_arg.
10925 (function_arg): Constify CUMULATIVE_ARGS. Use mips_arg_info. Check
10926 for VOIDmode at the beginning of the function.
10927 (function_partial_nregs): Constify CUMULATIVE_ARGS. Use mips_arg_info.
10928 (function_arg_pass_by_reference): Likewise.
10929 (mips_setup_incoming_varags): New, largely based on old abi64.h code.
10930 (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
10931 (mips_va_start): Likewise. Use the new stack_words field of
10932 CUMULATIVE_ARGS to set up overflow area. Reformat.
10933 (mips_va_arg): Test EABI_FLOAT_VARARGS_P. Unify EABI handling of
10934 doubles and other types, aligning the overflow pointer for non-doubles
10935 too. Remove some code duplication. Replace hard-coded constants.
10937 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
10939 * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
10940 (CLASS_UNITS): Undefine.
10941 (CLASS_MAX_NREGS): Use FP_INC.
10942 * config/mips/mips.c (compute_frame_size): Likewise.
10943 (override_options): Use FP_INC and UNITS_PER_FPVALUE.
10945 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
10947 * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
10948 prototype, and handle lexing numbers and identifiers.
10949 (parse_identifier): Update to new form of parse_slow.
10950 (parse_number): Fast path only, use parse_slow otherwise.
10951 (_cpp_lex_direct): Update calls to parse_number.
10953 2002-03-21 DJ Delorie <dj@redhat.com>
10955 * bb-reorder.c (make_reorder_chain_1): Protect against
10956 when redundant edges are omitted.
10957 * predict.c (dump_prediction): Likewise.
10959 2002-03-21 Richard Henderson <rth@redhat.com>
10962 * fixinc/inclhack.def (solaris_stdio_tag): New.
10963 * fixinc/fixincl.x: Regenerate.
10965 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
10968 * c-typeck.c (process_init_element): Flag non-static
10969 initialization of a flexible array member as illegal.
10971 2002-03-22 Alan Modra <amodra@bigpond.net.au>
10973 * config/rs6000/t-linux64: New.
10974 * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
10975 t-ppccomm. Use t-rs6000 and t-linux64.
10976 (powerpc64-*-gnu* <tmake_file>): Likewise.
10977 * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
10978 * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
10979 * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
10981 2002-03-21 Aldy Hernandez <aldyh@redhat.com>
10983 * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
10984 flag_really_no_inline instead of optimize == 0.
10986 * c-objc-common.c (c_cannot_inline_tree_fn): Same.
10988 * cp/tree.c (cp_cannot_inline_tree_fn): Same.
10990 * flags.h (flag_really_no_inline): New.
10992 * c-common.c (c_common_post_options): Initialize
10993 flag_really_no_inline.
10995 * toplev.c (flag_really_no_inline): New.
10997 2002-03-21 Jakub Jelinek <jakub@redhat.com>
10999 * config/avr/avr.md (length): Fix length computation for
11000 conditional branches.
11002 2002-03-21 Neil Booth <neil@daikokuya.demon.co.uk>
11004 * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
11005 sdbout.o, profile.o): Update.
11006 * c-common.c (c_common_nodes_and_builtins): Use pushdecl
11008 * c-common.h (gettags): Move here from tree.h.
11009 * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
11010 insert_block, getdecls, kept_level_p, global_bindings_p): New.
11011 * dbxout.c (dbxout_init): Use getdecls langhook.
11012 * expr.c (expand_expr): Use insert_block langhook.
11013 * fold-const.c: Include langhooks.h.
11014 (fold_range_test, fold_binary_op_with_conditional_arg,
11015 fold): Use global_bindings_p langhook.
11016 * integrate.c (expand_inline_function): Use insert_block langhook.
11017 * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
11018 LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
11019 LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
11020 LANG_HOOKS_GETDECLS): New.
11021 (LANG_HOOKS_INITIALIZER): Update.
11022 * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
11024 * langhooks.h (struct lang_hooks_for_decls): New.
11025 (struct lang_hooks): Update.
11026 * profile.c: Include langhooks.h.
11027 (output_func_start_profiler): Use new langhooks.
11028 * sdbout.c: Include langhooks.h.
11029 (sdbout_init, sdbout_finish): Use getdecls langhook.
11030 * stmt.c: Include langhooks.h.
11031 (expand_fixup, fixup_gotos): Use new langhooks.
11032 * stor-layout.c: Include langhooks.h.
11033 (variable_size): Use global_bindings_p langhook.
11034 * toplev.c (compile_file): Use getdecls langhook.
11035 * tree-inline.c (remap_block): Use insert_block langhook.
11036 * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
11037 insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
11039 2002-03-21 Richard Henderson <rth@redhat.com>
11041 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
11042 constants in .data when -fpic.
11044 2002-03-21 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
11046 * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
11049 2002-03-21 Tom Tromey <tromey@redhat.com>
11051 * config/i386/sol2.h (ASM_QUAD): Undef. Fixes PR bootstrap/5948.
11053 Thu Mar 21 09:50:48 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11055 * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
11057 * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
11059 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
11060 Richard Henderson <rth@redhat.com>
11063 * c-common.c (c_expand_expr): Preserve result of a statement
11064 expression if needed.
11066 2002-03-21 Jakub Jelinek <jakub@redhat.com>
11069 * genrecog.c (maybe_both_true_mode): Remove.
11070 (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
11071 * machmode.def (Pmode): Likewise.
11073 Thu Mar 21 01:55:06 EST 2002 John Wehle (john@feith.com)
11075 * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
11076 (nonlocal_mentioned_p_1): New function.
11077 (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
11078 (nonlocal_set_p, nonlocal_set_p_1): Likewise.
11079 (mark_constant_function): Recognize pure functions.
11080 * rtl.h (global_reg_mentioned_p): New prototype.
11081 * rtlanal.c (global_reg_mentioned_p,
11082 global_reg_mentioned_p_1): New function.
11084 2002-03-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11086 * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
11088 * fixinc/fixincl.x: Regenerate.
11090 2002-03-20 Jason Merrill <jason@redhat.com>
11092 * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
11094 2002-03-20 Michael Meissner <meissner@redhat.com>
11096 * doc/invoke.texi (Optimize Options): Document that -O2 sets
11099 2002-03-20 Bob Wilson <bob.wilson@acm.org>
11101 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
11102 ".literal_position" directive before the constant pool.
11104 2002-03-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
11106 * doc/contrib.texi (Contributors): Update Geoffrey Keating.
11107 Add Craig Rodrigues.
11108 Add Brad Lucier to testers.
11110 2002-03-20 Jakub Jelinek <jakub@redhat.com>
11113 * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
11115 (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
11116 * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
11117 instead of insn_extract.
11119 2002-03-20 Jakub Jelinek <jakub@redhat.com>
11122 * config/fr30/fr30.md (jump): Remove clobber of fixed register.
11124 * genemit.c (output_added_clobbers_hard_reg_p): Only output return
11125 stmt if some case has been output.
11127 2002-03-20 Jakub Jelinek <jakub@redhat.com>
11130 * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
11131 movsfcc_1, movdfcc_1): Add %O2.
11132 * config/i386/i386.c (print_operand): Handle %ON.
11133 Print . before float condition codes in Sun as cmov syntax.
11134 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
11135 * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
11138 2002-03-20 Philip Blundell <pb@nexus.co.uk>
11140 * config/arm/arm.c (arm_output_epilogue): Don't generate separate
11141 return instruction if PC was popped.
11143 2002-03-20 Bob Wilson <bob.wilson@acm.org>
11145 * config/xtensa/xtensa.md: Remove unused type attributes.
11146 (adddi_carry, subddi_carry): Change type attribute to "multi".
11148 2002-03-19 Dale Johannesen <dalej@apple.com>
11150 PR optimization/5999, middle-end/5731
11151 * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
11152 multiplications by reciprocals.
11154 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
11156 * Makefile.in: Update.
11157 * c-common.c: Include langhooks.h.
11158 (inline_forbidden_p): Use new hook.
11159 * diagnostic.c: Include langhooks.h.
11160 (format_with_decl, announce_function,
11161 default_print_error_function): Use new hook.
11162 * dwarf2out.c (dwarf2_name): Use new hook.
11163 * function.c: Include langhooks.h.
11164 (init_function_start): Use new hook.
11165 * langhooks-def.h (lhd_decl_printable_name): New.
11166 (LANGHOOKS_DECL_PRINTABLE_NAME): New.
11167 (LANGHOOKS_INITIALIZER): Update.
11168 * langhooks.c (lhd_decl_printable_name): New.
11169 * langhooks.h (struct lang_hooks): New hook.
11170 * toplev.c (decl_name, decl_printable_name): Remove.
11171 (open_dump_file): Use new hook.
11172 (process_options): Remove old hook.
11173 * tree.h (decl_printable_name): Remove.
11175 * objc-act.c (objc_init): Remove old hook.
11176 (objc_printable_name): Export.
11177 * objc-act.h (objc_printable_name): New.
11178 * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
11180 2002-03-19 Jim Blandy <jimb@redhat.com>
11182 * c-lex.c (cb_file_change): Pass the #inclusion's line number to
11183 the start_source_file debug hook, not the current line number.
11185 2002-03-19 Richard Henderson <rth@redhat.com>
11187 * flow.c (EH_USES): Provide default.
11188 (calculate_global_regs_live): Use it for EH edges and noreturn calls.
11189 * doc/tm.texi (EH_USES): New.
11191 * config/ia64/ia64.c (ia64_eh_uses): New.
11192 * config/ia64/ia64-protos.h: Update.
11193 * config/ia64/ia64.h (EH_USES): New.
11195 2002-03-19 Richard Henderson <rth@redhat.com>
11197 * varasm.c (output_constant_def): Fix stupid typo.
11199 2002-03-19 Richard Henderson <rth@redhat.com>
11202 * except.c (current_function_has_exception_handlers): New.
11203 * except.h: Declare it.
11204 * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
11205 Combine tests that disable all sibcalls for the function.
11207 2002-03-19 Olivier Hainque <hainque@act-europe.fr>
11209 * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
11212 2002-03-19 Richard Henderson <rth@redhat.com>
11215 * config/ia64/ia64.c: Revert 2002-03-01 patch.
11216 * config/ia64/ia64.h (INIT_EXPANDERS): New.
11218 2002-03-19 Jim Blandy <jimb@redhat.com>
11220 * cppmacro.c (cpp_macro_definition): Emit a space after the macro
11221 name, even if the replacement list contains no tokens, as required
11224 2002-03-19 Jason Merrill <jason@redhat.com>
11226 * varasm.c (globalize_decl): Get the name from the RTL, not
11227 DECL_ASSEMBLER_NAME.
11229 * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
11231 2002-03-19 Bob Wilson <bob.wilson@acm.org>
11233 * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
11234 subdi_carry): Define.
11236 2002-03-19 David Edelsohn <edelsohn@gnu.org>
11238 * config/rs6000/rs6000.c (rs6000_override_options): Only warn
11239 about -fpic/-fPIC if extra_warnings set.
11241 2002-03-19 David Edelsohn <edelsohn@gnu.org>
11243 * expr.c (expand_expr): Sign-extend CONST_INT generated from
11244 TREE_STRING_POINTER.
11245 * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
11247 Tue Mar 19 14:12:32 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11249 * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
11250 in favor of SP if FRAME_POINTER_REQUIRED is false.
11252 2002-03-19 Lars Brinkhoff <lars@nocrew.org>
11254 * emit-rtl.c (gen_int_mode): New function.
11255 * rtl.h: Prototype for it.
11256 * combine.c (make_extraction, simplify_comparison), expmed.c
11257 (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
11258 (convert_modes, store_field), optabs.c (expand_fix),
11259 simplify-rtx.c (neg_const_int, simplify_unary_real),
11261 * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
11262 Use it instead of GEN_INT (trunc_int_for_mode (...)).
11264 2002-03-19 Jakub Jelinek <jakub@redhat.com>
11267 * langhooks.h (struct lang_hooks_for_tree_inlining): Add
11268 convert_parm_for_inlining.
11269 * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
11271 * langhooks-def.h: Likewise.
11272 * objc/objc-lang.c: Likewise.
11273 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
11275 * tree-inline.c (initialize_inlined_parameters):
11276 Call convert_parm_for_inlining lang hook if needed.
11277 * c-typeck.c (c_convert_parm_for_inlining): New function.
11278 * c-tree.h (c_convert_parm_for_inlining): Add prototype.
11280 2002-03-18 Mark Mitchell <mark@codesourcery.com>
11282 * calls.c (precompute_arguments): Do not assume that temporaries
11283 can be destroyed after expanding the argument.
11284 (expand_call): Likewise.
11286 2002-03-15 Eric Christopher <echristo@redhat.com>
11288 * config/mips/mips.md (movdf_internal2): Add two new move constraints.
11289 Fix register preference on last change.
11290 * config/mips/mips.c (mips_return_in_memory): New function.
11291 * config/mips/mips.h (RETURN_IN_MEMORY): Use.
11292 * config/mips/mips-protos.h: Declare.
11293 * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
11294 * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
11296 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
11298 * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
11300 (anddi3, iorsi3): Likewise.
11302 * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
11303 use %gprel for symbols that are going to be placed in linkonce
11306 * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
11307 RETURN_ADDRESS_POINTER_REGNUM to $ra.
11308 (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
11309 not needed. Disregard leaf_function_p().
11310 (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
11311 mips16 frame pointer.
11312 * config/mips/mips.md (store ra): Only to small SP offsets.
11313 2001-08-22 Graham Stott <grahams@redhat.com>
11314 * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
11315 return a REG rtx for the return address register.
11317 2002-03-18 Bob Wilson <bob.wilson@acm.org>
11319 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
11320 constant-pool addresses as "mode-dependent".
11321 (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
11323 2002-03-18 Jakub Jelinek <jakub@redhat.com>
11326 * expr.c (emit_group_load): Use extract_bit_field if
11327 needed for CONCAT arguments.
11329 2002-03-18 Richard Earnshaw <rearnsha@arm.com>
11332 * arm.md (tablejump): Make this a define_expand. For PIC add the
11333 offset to the base of the table.
11334 (thumb_tablejump): Matcher for Thumb tablejump insn.
11335 * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
11336 as the difference of two labels.
11337 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
11338 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
11339 tables in the code.
11340 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
11341 * arm.c (get_jump_table_size): If the table is not in the text
11342 section, return zero.
11344 2002-03-18 Bernd Schmidt <bernds@redhat.com>
11346 * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
11348 (arm_reload_out_hi): Use gen_lowpart instead of
11349 gen_rtx_SUBREG to access QImode components.
11350 * config/arm/arm.md: Disable zero_extend split for QImode
11351 subregs in BIG_ENDIAN mode.
11352 (storehi_bigend): Match use of least significant byte.
11353 (storeinthi): Remove extraneous SUBREG.
11354 Add missing construction of operands[2].
11355 (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
11356 (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
11357 Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
11359 2002-03-18 Aldy Hernandez <aldyh@redhat.com>
11361 * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
11364 2002-03-17 Richard Henderson <rth@redhat.com>
11366 * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
11369 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
11371 * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
11372 (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
11374 2002-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11376 * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
11378 * predict.c (estimate_bb_frequencies): Delete unused variables.
11380 2002-03-17 Richard Henderson <rth@redhat.com>
11382 * config/ia64/ia64.c (ia64_attribute_table): Move before
11383 targetm definition. Make static.
11385 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
11387 * c-common.h (yyparse, c_common_parse_file): New.
11388 * c-lang.c: Include c-common.h.
11389 (LANG_HOOKS_PARSE_FILE): Redefine.
11390 * c-lex.c: Include c-common.h.
11391 (yyparse): Rename c_common_parse_file. Call yyparse.
11392 * c-parse.in (yyparse): Remove macro.
11393 * c-tree.h (yyparse_1): Remove.
11394 * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
11395 (LANG_HOOKS_INITIALIZER): Update.
11396 * langhooks.h (struct lang_hoooks): New hook parse_file.
11397 * toplev.c (compile_file): Use parse_file hook.
11398 * tree.h (yyparse): Remove.
11399 * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
11401 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
11403 * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
11404 float_truncate, not fix.
11405 ("*truncdfsf2_real"): Ditto.
11406 ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
11408 * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
11410 2002-03-16 Alexandre Oliva <aoliva@redhat.com>
11412 * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
11413 (s8), but rather HARD_FRAME_POINTER_REGNUM. Add parentheses
11414 where appropriate. Make the second reference to
11415 leaf_function_p a function call, as intended. Reindented.
11417 * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
11418 * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
11420 * config/mips/mips.md (addsi3, adddi3): Use scratch register to
11421 add register to non-constant into sp.
11423 * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
11424 * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
11425 (mips16_gp_pseudo_rtx): Lose.
11426 (INIT_EXPANDERS): Deleted.
11427 * config/mips/mips.c (mips_init_machine_status): New.
11428 (mips_free_machine_status): New.
11429 (mips_mark_machine_status): New.
11430 (override_options): Set them.
11431 (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
11432 (struct machine_function): ... new. Replaced all references.
11433 (mips_add_gc_roots): Don't mark them.
11434 (embedded_pic_fnaddr_reg): New, extracted from...
11435 (embedded_pic_offset): ... here.
11436 * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
11439 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
11441 * cppinit.c: Revert -MD removal.
11443 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11445 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
11446 soft registers by default for 68HC12.
11447 (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
11448 when compiling with -fomit-frame-pointer.
11449 (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
11450 (expand_epilogue): Likewise.
11451 (m68hc11_gen_rotate): Use exg when rotating by 8.
11453 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11455 * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
11456 * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
11457 (splits): Remove unused add splits.
11458 ("*addhi3_68hc12"): Tune constraints.
11459 ("addhi_sp"): Try to use X instead of Y in all cases and if the
11460 constant fits in 8-bits and D is dead use abx/aby instructions.
11461 ("*addhi3"): Remove extern declaration of ix_reg.
11462 ("*subsi3"): Optimize and provide new split.
11463 ("subhi3"): Cleanup.
11464 ("*subhi3_sp"): Avoid saving X if we know it is dead.
11465 (arith splits): For 68hc12 save the address register on the stack
11466 and do the arithmetic operation with a pop.
11468 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11470 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
11471 allocating QImode in address registers.
11472 ("*movqi_m68hc11"): Likewise.
11474 Sat Mar 16 12:57:28 CET 2002 Jan HUbicka <jh@suse.cz>
11476 * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
11478 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
11480 * cppinit.c (print_help): Display -MD and -MMD.
11481 Don't display usage string. Update assertion syntax and
11483 (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
11484 (cpp_handle_option): Update.
11486 2002-03-15 Chris Demetriou <cgd@broadcom.com>
11488 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
11489 MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
11490 and define it so that regardless of target CPU size,
11491 __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
11492 of "int" rather than "long."
11494 2002-03-15 Richard Henderson <rth@redhat.com>
11496 * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
11499 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11501 * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
11502 ("tstqi" split): Avoid using memory for tstqi on address register.
11503 (splits): Remove constraints.
11504 ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
11505 ("cmpdf", "cmpsf"): Remove since not used.
11506 ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
11507 (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
11509 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11511 * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
11512 ("neghi2"): Tighten constraints.
11513 ("one_cmplsi2"): Optimize and simplify split.
11514 * config/m68hc11/larith.asm (__negsi2): Likewise for library.
11516 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11518 * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
11519 and split of AND operation to clear the upper bits.
11520 ("*logicalsi3_zextqi"): Likewise.
11521 ("*logicallhi3_zexthi_ashift8"): Likewise.
11522 ("*logicalsi3_silshr16"): Likewise.
11523 ("logicalsi3_silshl16"): Likewise.
11524 ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
11526 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11528 * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
11529 (m68hc11_indirect_p): New function.
11530 (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
11531 (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
11533 (asm_print_register): Likewise.
11534 * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
11535 (m68hc11_indirect_p): Declare.
11536 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
11537 (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
11538 (TARGET_SWITCHES): New option -mrelax.
11539 * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
11541 ("iorsi3", "xorsi3"): Likewise.
11542 ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
11543 ("*andhi3_mem"): New to handle destination in memory with bclr
11544 and a scratch register.
11545 ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
11546 ("*andhi3_const"): New when operand2 is constant.
11547 ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
11548 ("*andhi3_gen"): Cleanup of the old "andhi3".
11549 ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
11550 ("xorqi3"): Update constraints.
11552 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11554 * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
11555 for reg_equiv_memory_loc when the operand is a register that does
11556 not get a hard register (stack location).
11557 (tst_operand): After reload, accept all memory operand.
11558 (symbolic_memory_operand): Fix detection of symbolic references.
11559 * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
11560 accept symbols and any constant.
11562 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11564 * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
11565 note on the insn that sets the soft frame register.
11566 (must_parenthesize): ix and iy are also reserved names.
11567 (print_operand_address): One more place where parenthesis are required
11568 to avoid confusion with register names.
11569 (m68hc11_gen_movhi): Allow push of stack pointer.
11570 (m68hc11_check_z_replacement): Fix handling of parallel with a
11572 (m68hc11_z_replacement): Must update the REG_INC notes to tell what
11573 the replacement register is.
11574 * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
11575 and D8_REGS classes.
11576 (MODES_TIEABLE_P): All modes are tieable except QImode.
11578 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11580 * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
11581 (___subdi3): Likewise.
11582 (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
11583 (__map_data_section): Optimize 68hc11 case.
11585 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11587 * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
11588 than a shift to avoid adding a register with itself.
11589 (m68hc11_memory_move_cost): Take into account NO_REGS.
11590 (m68hc11_register_move_cost): Update and use memory move cost
11591 for soft registers.
11592 (m68hc11_address_cost): Make cost of valid offset not 0 so that
11593 it gives more opportunities to cse to optimize.
11594 * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
11595 * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
11597 2002-03-15 Mark Mitchell <mark@codesourcery.com>
11599 * c-common.c (statement_code_p): Handle CLEANUP_STMT.
11600 * c-common.def (CLEANUP_STMT): New tree node.
11601 * c-common.h (CLEANUP_DECL): New macro.
11602 (CLEANUP_EXPR): Likewise.
11603 * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
11604 * expr.c (expand_expr): Tidy.
11605 * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
11606 * tree-inline.c (initialize_inlined_parameters): Clean up
11607 new local variables.
11609 2002-03-15 Jakub Jelinek <jakub@redhat.com>
11612 * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
11613 before movrXX only, use reg_overlap_mentioned_p.
11614 Only special case NE if just one insn can be generated.
11616 2002-03-15 Jason Merrill <jason@redhat.com>
11618 * varasm.c (assemble_variable): Call resolve_unique_section before
11619 checking DECL_SECTION_NAME. Use zeros for a decl with DECL_INITIAL
11620 of error_mark_node.
11622 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
11625 * arm.md (split pattern for thumb shiftable immediates): Add comment
11626 explaining non-obvious test.
11628 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
11631 * arm.md (movaddr, movaddr_insn): Delete.
11633 2002-03-15 Jason Merrill <jason@redhat.com>
11635 * toplev.c (wrapup_global_declarations): Clarify variable handling.
11636 -fkeep-static-consts doesn't apply to comdats.
11638 2002-03-14 Richard Henderson <rth@redhat.com>
11640 * c-decl.c: Include c-pragma.h.
11641 (start_decl, start_function): Invoke maybe_apply_pragma_weak.
11642 (finish_function): Tidy.
11643 * c-pragma.c: Include c-common.h.
11644 (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
11645 (handle_pragma_weak): Use them.
11646 (init_pragma): Register pending_weaks.
11647 * c-pragma.h (maybe_apply_pragma_weak): Declare.
11648 * print-tree.c (print_node): Print DECL_WEAK.
11649 * varasm.c (mark_weak_decls): Remove.
11650 (remove_from_pending_weak_list): Remove.
11651 (add_weak): Remove.
11652 (asm_emit_uninitialised): Call globalize_decl for weak commons.
11653 (weak_decls): Make a tree_list.
11654 (declare_weak): Cons weak_decls directly.
11655 (globalize_decl): Remove weak_decls elements directly.
11656 (weak_finish): Simplify weak_decls walk. Don't weaken unused
11657 symbols. Don't pretend to handle aliases.
11658 (init_varasm_once): Update weak_decls registry.
11659 * Makefile.in: Update dependencies.
11661 2002-03-14 Richard Henderson <rth@redhat.com>
11664 * config/ia64/ia64.c: Include tm_p.h last.
11665 (gen_nop_type): Remove duplicate definition.
11666 (cycle_end_fill_slots): Set sched_data for second L slot.
11667 (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
11668 (nop_cycles_until): Fix typos.
11670 2002-03-15 Jakub Jelinek <jakub@redhat.com>
11672 PR optimization/5891
11673 * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
11675 2002-03-14 David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
11677 * config/ia64/unwind-ia64.c: Handle copy_state and label_state
11678 descriptors correctly.
11680 2002-03-14 Michael Meissner <meissner@redhat.com>
11682 * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
11683 100, allowing MAX_UNROLLED_INSNS to be overridden.
11685 * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
11688 * unroll.c (params.h): Include.
11689 (MAX_UNROLLED_INSNS): Delete, now in params.h.
11691 * doc/invoke.texi (--param max-unroll-insns): Document.
11693 * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
11695 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
11697 * arm.md: Fix warnings about constraints in peepholes and splits.
11699 2002-03-14 Zack Weinberg <zack@codesourcery.com>
11701 * cpphash.h (struct lexer_state): Remove line_extension member.
11702 * cpplib.c (dequote_string, do_linemarker): New functions.
11703 (linemarker_dir): New data object.
11704 (DIRECTIVE_TABLE): No longer need to interpret #line in
11705 preprocessed source. Delete obsolete comment about return
11706 values of handlers.
11707 (end_directive, directive_diagnostics, _cpp_handle_directive):
11708 Don't muck with line_extension.
11709 (directive_diagnostics): No need to issue warnings for
11711 (_cpp_handle_directive): Issue warnings for linemarkers here,
11712 when appropriate. Dispatch linemarkers to do_linemarker, not
11714 (do_line): Code to handle linemarkers split out to do_linemarker.
11715 Convert escape sequences in filename argument, both places.
11717 * cppmacro.c (quote_string): Rename cpp_quote_string and
11718 export. All callers changed.
11719 * cpplib.h (cpp_quote_string): Prototype.
11720 * cppmain.c (print_line): Call cpp_quote_string on to_file
11721 before printing it.
11723 * doc/cpp.texi: Document that escapes are now interpreted in
11724 #line and in linemarkers, and that non-printing characters are
11725 converted to octal escapes when linemarkers are generated.
11727 Thu Mar 14 19:04:29 CET 2002 Jan Hubicka <jh@suse.cz>
11729 * emit-rtl.c (try_split): Use delete_insns.
11730 * recog.c (split_all_insns): Fix terminating condition.
11732 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
11733 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
11736 * arm.c (arm_output_epilogue): Fix floating-point register save
11737 adjustment when using a frame pointer.
11739 2002-03-14 Richard Sandiford <rsandifo@redhat.com>
11741 * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
11742 * config/mips/mips.c (compute_frame_size): Retrofit them here.
11743 (save_restore_insns, mips_expand_epilogue): And here.
11744 (build_mips16_call_stub): And here.
11745 (mips_function_value): Use the new macros to decide whether a single
11746 or complex float can be returned in floating-point registers. Return
11747 a parallel rtx in the complex case.
11749 Thu Mar 14 11:03:12 CET 2002 Jan Hubicka <jh@suse.cz>
11751 * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
11752 call after liveness analysis.
11754 * recog.c (split_insn): Use delete_insn_and_edges.
11756 * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
11757 instructions to have branch prediction notes.
11758 * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
11760 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
11762 * configure.in: Don't pass -Wno-long-long to a ADA compiler
11763 that doesn't support it.
11764 * configure: Regenerate.
11766 2002-03-13 Jakub Jelinek <jakub@redhat.com>
11769 * config/sparc/sparc.md (normal_branch, inverted_branch,
11770 normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
11771 inverted_fp_branch): Adjust calls to output_cbranch.
11772 Set length attribute.
11773 (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
11774 output_v9branch. Set length attribute.
11775 * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
11777 (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
11778 (output_cbranch): Likewise. Handle far branches.
11779 (output_v9branch): Handle far branches.
11780 * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
11782 * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
11783 noov_compare64_op predicates.
11785 2002-03-13 Jason Merrill <jason@redhat.com>
11787 * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
11788 into the function and constify it.
11789 * gthr-dce.h, gthr-solaris.h: Likewise.
11791 2002-03-13 David Edelsohn <edelsohn@gnu.org>
11793 * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
11794 * config/rs6000/rs6000.c (rs6000_va_arg): Use
11795 std_expand_builtin_va_arg if not ABI_V4.
11797 2002-03-13 Jason Merrill <jason@redhat.com>
11799 * varasm.c (globalize_decl): New fn.
11800 (assemble_start_function): Use it.
11801 (asm_emit_uninitialized): Use it.
11802 (assemble_alias): Use it.
11803 (assemble_variable): Use it.
11805 2002-03-13 Hans-Peter Nilsson <hp@axis.com>
11807 * config/cris/cris.c (cris_target_asm_function_prologue): Revert
11808 2002-03-12 internal visibility change.
11809 (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
11810 visibility into SYMBOL_REF_FLAG.
11812 2002-03-13 Ulrich Weigand <uweigand@de.ibm.com>
11814 * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
11815 VOIDmode operand. Add compile-time optimization for constant results.
11817 2002-03-12 Jason Merrill <jason@redhat.com>
11819 * c-typeck.c (convert_for_assignment): Don't allow conversions
11820 between pointers and references. Only allow lvalues to convert to
11823 2002-03-13 Hartmut Penner <hpenner@de.ibm.com>
11825 * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
11826 before prologue, to avoid scheduling problems.
11828 2002-03-13 Jakub Jelinek <jakub@redhat.com>
11830 * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
11831 (ELIMINABLE_REGS): Add sfp->sp.
11832 (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
11834 2002-03-13 Jakub Jelinek <jakub@redhat.com>
11836 PR optimization/5892
11837 * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
11839 2002-03-13 Jakub Jelinek <jakub@redhat.com>
11841 * loop.c (basic_induction_var): Don't call convert_modes if mode
11842 classes are different.
11844 2002-03-12 Richard Henderson <rth@redhat.com>
11846 PR optimization/5901
11847 * function.c (reposition_prologue_and_epilogue_notes): Position
11848 the markers after/before the last/first insn not deleted.
11850 2002-03-12 Richard Henderson <rth@redhat.com>
11852 PR optimization/5878
11853 * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
11854 config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
11855 (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
11857 * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
11858 config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
11859 PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
11861 * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
11862 * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
11863 (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
11864 also. Don't set it if not flag_pic.
11865 * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
11866 to be INVALID_REGNUM when not used.
11868 2002-03-13 Aldy Hernandez <aldyh@redhat.com>
11870 * expmed.c (store_bit_field): Reset alias set for memory.
11871 (extract_bit_field): Same.
11873 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11875 * c-common.c (c_tree_code_type, c_tree_code_length,
11876 c_tree_code_name, add_c_tree_codes): Delete.
11877 * c-common.h (add_c_tree_codes): Delete.
11878 * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
11880 * c-objc-common.c (c_objc_common_init): Don't call
11881 add_c_tree_codes, instead set lang_unsafe_for_reeval.
11882 * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
11883 objc_tree_code_name, add_objc_tree_codes): Delete.
11884 (objc_init): Don't call add_objc_tree_codes.
11885 * objc/objc-lang.c (tree_code_type, tree_code_length,
11886 tree_code_name): Define.
11887 * toplev.c (lang_independent_init): Don't set
11888 tree_code_length[IDENTIFIER_NODE].
11889 * tree.c (tree_code_type, tree_code_length, tree_code_name):
11890 Delete definitions, moved to language front-ends.
11891 * tree.def (IDENTIFIER_NODE): Hardwire the length.
11892 * tree.h (tree_code_type, tree_code_length, tree_code_name):
11894 (tree_code_length): Change type to unsigned char.
11896 2002-03-12 Richard Henderson <rth@redhat.com>
11898 * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
11899 internal visibility change.
11901 2002-03-12 Bob Wilson <bob.wilson@acm.org>
11903 * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
11904 validize_mem() instead of change_address to avoid clobbering
11907 2002-03-12 Neil Booth <neil@daikokuya.demon.co.uk>
11909 * c-lex.h (position_after_whitespace): Remove.
11911 2002-03-12 Jakub Jelinek <jakub@redhat.com>
11913 * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
11914 (lex_string): Use unsigned char pointers.
11916 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
11918 * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
11919 is not a valid memory_operand.
11921 2002-03-12 Bob Wilson <bob.wilson@acm.org>
11923 * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
11924 * config/xtensa/lib1funcs.asm: Fix copyright to include
11925 special case for libgcc files.
11926 (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
11927 (__divsi3): Likewise.
11928 (__umodsi3): Likewise.
11929 (__modsi3): Likewise.
11930 * config/xtensa/lib2funcs.S: Fix copyright to include
11931 special case for libgcc files.
11933 2002-03-12 Tom Rix <trix@redhat.com>
11935 * collect2.c (resolve_lib_name): Move outside of
11936 OBJECT_FORMAT_COFF ifdef.
11937 (ignore_library): Same.
11939 2002-03-12 Bob Wilson <bob.wilson@acm.org>
11941 * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
11943 2002-03-12 Bob Wilson <bob.wilson@acm.org>
11945 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
11946 to function_section before writing out the constant pool.
11948 2002-03-12 David Edelsohn <edelsohn@gnu.org>
11950 * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
11952 * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
11954 2002-03-12 Alan Modra <amodra@bigpond.net.au>
11956 * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
11957 (adddi3): Likewise.
11960 (cmpsi splitter): Likewise.
11961 (modsi3): Fail if <= 0.
11962 * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
11963 redundant test when HOST_BITS_PER_WIDE_INT != 32.
11964 (reg_or_sub_cint64_operand): Likewise.
11965 (num_insns_constant_wide): Optimize sign extension.
11966 (rs6000_legitimize_address): Likewise.
11968 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
11970 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
11971 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
11973 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
11975 * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
11976 address calculation.
11978 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
11980 * config/s390/s390.md (reload_insi, reload_indi): Change mode of
11981 scratch register to DImode / TImode.
11982 config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
11983 register used does not overlap the target.
11985 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11987 * Makefile.in (debug.o): Depend on debug.h.
11988 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
11989 * debug.c (do_nothing_debug_hooks): Likewise.
11990 * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
11991 sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
11992 dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
11993 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
11994 * dwarfout.c (dwarf_debug_hooks): Likewise.
11995 * integrate.c (output_inline_function): Likewise.
11996 * objc/objc-act.c (synth_module_prologue): Likewise.
11997 * sdbout.c (sdb_debug_hooks): Likewise.
11998 * toplev.c (debug_hooks): Likewise.
11999 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
12001 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12003 * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
12004 dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
12005 m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
12006 ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
12007 v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
12008 * defaults.h (POINTER_SIZE): Define.
12009 * doc/tm.texi (POINTER_SIZE): Document default.
12011 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12013 * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
12015 2002-03-11 Richard Henderson <rth@redhat.com>
12017 * toplev.c (rest_of_compilation): Call purge_all_dead_edges
12018 if rebuild_label_notes_after_reload.
12020 2002-03-12 Hans-Peter Nilsson <hp@axis.com>
12022 * config/cris/cris.c (cris_target_asm_function_prologue): Do not
12023 emit pic register load if "internal" visibility.
12024 (cris_print_operand): Avoid traditional-warning for 0xffffffff.
12025 (cris_expand_builtin_va_arg): Do all computations on trees.
12027 2002-03-11 Richard Henderson <rth@redhat.com>
12029 * rtlanal.c: Include recog.h.
12030 (keep_with_call_p): Fix thinko.
12031 * Makefile.in (rtlanal.o): Update dependencies.
12033 2002-03-11 Chris Meyer <cmeyer@gatan.com>
12035 * genflags.c (gen_insn): Use IS_VSPACE.
12036 * genoutput.c (output_insn_data): Likewise.
12037 (process_template): Likewise.
12039 2002-03-11 Richard Henderson <rth@redhat.com>
12041 * toplev.c (rest_of_compilation): Don't compile if we've had errors.
12043 2002-03-11 Neil Booth <neil@daikokuya.demon.co.uk>
12045 * Makefile.in: Update.
12046 * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
12047 Update documentation.
12048 * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
12049 * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
12051 2002-03-11 Zack Weinberg <zack@codesourcery.com>
12053 * Makefile.in: Give texi2pod its input file as a command line
12054 argument, not on stdin.
12056 2002-03-11 Dan Nicolaescu <dann@ics.uci.edu>
12057 Daniel Berlin <dan@dberlin.org>
12059 C++ alias analysis improvement.
12060 * alias.c (record_component_aliases): Record aliases for base
12063 2002-03-11 Ulrich Weigand <uweigand@de.ibm.com>
12065 * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
12067 2002-03-11 Douglas B Rupp <rupp@gnat.com>
12069 * toplev.c (vms_fopen): Remove, not needed.
12071 * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
12073 * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
12075 * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
12076 for FP, already done later.
12078 * toplev.c (debug_args): Add entry for VMS_DEBUG.
12079 * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
12081 2002-03-11 Richard Sandiford <rsandifo@redhat.com>
12083 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
12084 (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
12085 LARGEST_EXPONENT_IS_NORMAL for the given mode.
12086 (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
12087 * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
12088 (ediv, emul, eldexp, esqrt): Likewise.
12089 (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
12090 (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
12091 (saturate): New function.
12092 (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
12093 (make_nan): Use a saturation value instead of a NaN if
12094 LARGEST_EXPONENT_IS_NORMAL. Warn when this happens.
12095 * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
12096 inputs if LARGEST_EXPONENT_IS_NORMAL. Represent subnormals as
12097 zero if NO_DENORMALS. Only round to nearest if !ROUND_TOWARDS_ZERO.
12098 (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
12099 (_fpmul_parts, _fpdiv_parts): Only round to nearest if
12100 !ROUND_TOWARDS_ZERO.
12101 * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
12102 (ROUND_TOWARDS_ZERO): Document.
12104 2002-03-11 Andreas Jaeger <aj@suse.de>
12106 * cfg.c (dump_flow_info): Remove unused variable.
12108 2002-03-11 Hans-Peter Nilsson <hp@bitrange.com>
12110 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
12111 computations on trees.
12113 2002-03-10 Richard Henderson <rth@redhat.com>
12116 * reload.c (copy_replacements_1): New.
12117 (copy_replacements): Use it to recurse through the rtx.
12119 2002-03-10 Richard Henderson <rth@redhat.com>
12121 * loop.c (strength_reduce): Compute number of iterations as
12122 unsigned HOST_WIDE_INT.
12124 2002-03-10 Richard Henderson <rth@redhat.com>
12126 * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
12127 to move away from the end of the block.
12129 2002-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
12131 PR preprocessor/5899
12132 * cppinit.c (init_dependency_output): Don't ignore -dM etc.
12134 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12136 * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
12138 * attribs.c (decl_attributes): Fix signed/unsigned warning.
12140 2002-03-10 Hans-Peter Nilsson <hp@bitrange.com>
12142 * config/mmix/mmix.c: Improve comments.
12143 (mmix_target_asm_function_prologue): Drop variable
12144 empty_stack_frame. Don't allocate unused slot above fp.
12145 (mmix_target_asm_function_epilogue): Mirror prologue changes.
12146 * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
12147 brace in first column.
12148 (enum reg_class): Ditto.
12149 (FIRST_PARM_OFFSET): Now 0.
12150 (USER_LABEL_PREFIX): Remove #if 0:d definition.
12152 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12154 * combine.c (make_extraction): Fix error in last change.
12156 2002-03-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12158 * c4x.c (c4x_fp_reglist): Const-ify.
12159 * cris.c (cris_print_operand): Likewise.
12160 * i386.c (ix86_va_arg): Likewise.
12161 * ia64/unwind-ia64.c (unw_decode_table): Likewise.
12162 * m32r.c (m32r_hard_regno_mode_ok): Likewise.
12163 * m32r.h (m32r_hard_regno_mode_ok): Likewise.
12164 * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
12165 * mcore.h (regno_reg_class): Likewise.
12166 * mips.c (gen_int_relational): Likewise.
12167 * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
12168 * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
12169 * pdp11.c (move_costs): Likewise.
12170 * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
12171 * s390.c (s390_branch_condition_mnemonic, regclass_map):
12173 * s390.h (regclass_map): Likewise.
12174 * sh.c (shift_amounts): Likewise.
12175 * sh.md (rotlsi3): Likewise.
12177 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
12179 * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
12180 (ne0+5): Use new clobber to generate proper shift pattern.
12181 Patch by Michael Matz <matz@kde.org>.
12183 2002-03-09 Andreas Schwab <schwab@suse.de>
12185 * gcc.c (validate_all_switches): Also handle `%W{...}'.
12187 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
12189 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
12191 2002-03-09 Jakub Jelinek <jakub@redhat.com>
12194 * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
12195 even for non-representable constants.
12197 Sat Mar 9 07:20:01 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12199 * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
12200 * function.c (fixup_var_refs): Add MAY_SHARE parameter.
12201 (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
12202 (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
12203 (pop_function_context): Compute MAY_SHARE parameter for
12205 (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
12206 (gen_mem_addressof): Call fixup_var_refs with new parm.
12208 * combine.c (make_extraction): Don't make extension of CONST_INT.
12210 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
12212 * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
12213 in o32 and o64 ABIs.
12214 * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
12215 but getting fixed-size structs passed in registers regardless of
12216 padding in o32 and o64 ABIs.
12218 * config/mips/mips.c (mips_va_arg): Apply big-endianness address
12219 offset before loading address of argument passed by transparent
12222 2002-03-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
12224 * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
12226 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
12228 * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
12229 marker such that registers after it are saved.
12231 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12233 * sparc.c (arith_4096_operand): Fix error in last change.
12235 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
12237 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
12238 defaults for MEABI.
12240 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
12242 * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
12245 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
12247 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
12249 Fri Mar 8 21:27:49 CET 2002 Jan Hubicka <jh@suse.cz>
12251 * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
12252 removed; fix return value.
12253 * combine.c (combine_instructions): Dirtify blocks where we failed to
12254 update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
12255 * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
12257 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12259 * gcse.c (insert_insn_end_bb): Fix typo in last change.
12261 Fri Mar 8 21:08:52 CET 2002 Jan Hubicka <jh@suse.cz>
12263 * recog.c (peephole2_optimize): Re-distribute EH edges.
12265 2002-03-08 Neil Booth <neil@daikokuya.demon.co.uk>
12267 * expr.c (expand_expr): Use unsave lang hook.
12268 * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
12269 (LANG_HOOKS_INITIALIZER): Update.
12270 * langhooks.h (struct lang_hooks): New hook unsave.
12271 * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
12272 (unsave_expr_1): Remove unused lang_unsave_expr_now.
12273 (unsave_expr_now_r): Rename lhd_unsave. Update. Return input.
12274 (unsave_expr_now): Remove.
12275 * tree.h (unsave_expr_now, lang_unsave,
12276 lang_unsave_expr_now): Remove.
12279 2002-03-08 Andreas Jaeger <aj@suse.de>
12281 * flow.c (propagate_block_delete_insn): Remove unused variable.
12283 2002-03-08 Kazu Hirata <kazu@hxi.com>
12285 * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
12286 insn length for memory load/store.
12288 2002-03-08 Craig Rodrigues <rodrigc@gcc.gnu.org>
12290 * doc/install.texi (--with-libiconv-prefix): Document.
12292 2002-03-08 Michael Y. Brukman <myb2@cornell.edu>
12294 * doc/sourcebuild.texi: Fix typo.
12296 2002-03-08 Jakub Jelinek <jakub@redhat.com>
12299 * builtins.c (std_expand_builtin_va_arg): Do all computations on
12302 Fri Mar 8 06:48:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12304 * rtl.c (copy_most_rtx): Move from here ...
12305 * emit-rtl.c (copy_most_rtx): ... to here.
12307 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
12309 * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
12310 SUBTARGET_CPP_SIZE_SPEC.
12311 * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
12313 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
12315 2002-03-07 Matt Hiller <hiller@redhat.com>
12317 * gensupport.c (first_dir_md_include): Renamed from include;
12318 change all references.
12319 (last_dir_md_include): Renamed from last_include; change all
12321 (init_md_reader): Unconditionally initialize base_dir whether or
12322 not filename is a relative path.
12324 2002-03-07 Alexandre Oliva <aoliva@redhat.com>
12326 * config/fp-bit.c (_unord_f2): Compile it in even if
12327 US_SOFTWARE_GOFAST is enabled.
12329 * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
12330 NULL_RTX. Set all HFmode operations as NULL_RTX.
12331 * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
12332 NULL_RTX, try reversing the comparison and the operands.
12334 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
12336 * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
12337 genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
12340 Thu Mar 7 16:54:10 CET 2002 Jan Hubicka <jh@suse.cz>
12342 * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
12344 Thu Mar 7 16:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
12346 * basic-block.h (fixup_abnormal_edges): Declare.
12347 * reload1.c (fixup_abnormal_edges): New function.
12348 * reg-stack.c (convert_regs): Use it.
12350 * gcse.c (insert_insn_end_bb): Handle trapping insns.
12352 * gcse.c (hash_scan_set): Refuse instructions with EH edges.
12354 2002-03-07 Richard Sandiford <rsandifo@redhat.com>
12356 * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
12357 (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
12358 * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
12359 (HONOR_SIGN_DEPENDENT_ROUNDING): New.
12360 * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
12361 * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
12362 unless x and y could be infinite.
12363 (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
12364 Check that the common type of both arguments is a real, even for
12365 targets without unordered comparisons. Allow an integer argument
12366 to be compared against a real.
12367 (expand_tree_builtin): Use expand_unordered_cmp.
12368 * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
12369 * cse.c (fold_rtx): Likewise. Fix indentation.
12370 * fold-const.c (fold_real_zero_addition_p): New.
12371 (fold): Use it, and the new HONOR_... macros.
12372 * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
12373 * jump.c (reversed_comparison_code_parts): After searching for
12374 the true comparison mode, use HONOR_NANS to decide whether it
12375 can be safely reversed.
12376 (reverse_condition_maybe_unordered): Remove IEEE check.
12377 * simplify-rtx.c (simplify_binary_operation): Use the new macros
12378 to decide which simplifications are valid. Allow the following
12379 simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
12380 and (a - -b) to (a + b).
12381 (simplify_relational_operation): Use HONOR_NANS.
12382 * doc/tm.texi: Document the MODE_HAS_... macros.
12384 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
12386 * combine.c (simplify_comparison): If simplifying a logical shift
12387 right and compare with constant, force the comparison to unsigned.
12389 2002-03-07 Aldy Hernandez <aldyh@redhat.com>
12391 * doc/invoke.texi: Add documentation for -mabi=no-altivec.
12393 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
12395 (alt_reg_names): Remove % for vrsave.
12397 2002-03-06 Richard Henderson <rth@redhat.com>
12399 PR optimization/5844
12400 * genemit.c (gen_exp): New argument used. Invoke copy_rtx
12401 if used indicates we've already emitted one copy of an operand.
12402 (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
12403 (gen_split): Supply a non-null used.
12405 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
12407 * reload1.c (reload): Unshare all rtl after reload is done.
12409 * simplify-rtx.c (simplify_plus_minus): Do not abort,
12410 but simply fail if the expression is too complex to simplify.
12411 (simplify_gen_binary): Handle simplify_plus_minus failures.
12413 Wed Mar 6 20:32:09 CET 2002 Jan Hubicka <jh@suse.cz>
12415 * toplev.c (rest_of_compilation): Do jump threading before SSA path;
12416 consistently call delete_trivially_dead_insns after CSE and GCSE;
12417 fix DFI_life dumping; do jump threading after liveness; do crossjumping
12418 after liveness2; update comment in last crossjumping.
12419 * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
12421 Wed Mar 6 12:27:10 2002 Jeffrey A Law (law@redhat.com)
12423 * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
12424 after completing fast dead code elimination.
12426 * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
12429 2002-03-06 Phil Edwards <pme@gcc.gnu.org>
12431 * version.c: Fix misplaced leading blanks on first line.
12433 Wed Mar 6 19:08:03 CET 2002 Jan Hubicka <jh@suse.cz>
12435 * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
12437 Wed Mar 6 18:14:43 CET 2002 Jan Hubicka <jh@suse.cz>
12439 * cfgcleanup.c (mentions_nonequal_regs): New function.
12440 (thread_jump): Use it.
12441 * toplev.c (rest_of_compilation): Run jump threading after
12444 2002-03-06 Jakub Jelinek <jakub@redhat.com>
12446 * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
12449 Wed Mar 6 11:28:19 CET 2002 Jan Hubicka <jh@suse.cz>
12451 * predict.c (estimate_bb_frequencies): Do not reload the
12452 frequencies from notes.
12454 Wed Mar 6 10:59:39 CET 2002 Jan Hubicka <jh@suse.cz>
12456 * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
12457 * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
12459 * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
12460 delete_noop_moves): Return indeger.
12461 * flow.c (ndead): New variable.
12462 (propagate_block_delete_insn): Use delete_insn_and_edges; remove
12463 BB argument; update callers.
12464 (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
12465 (life_analysis): Do not call purge_all_dead_edges.
12466 (update_life_info): Return number of deleted insns; print statistics.
12467 (update_life_info_in_dirty_blocks): likewise.
12468 (delete_noop_moves): Use delete_insn_and_edges; print statistics;
12469 return number of insns deleted.
12471 * cse.c: Include timevar.h
12472 (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
12473 iterate until stabilizes; print statistics; return number of killed
12475 * Makefile.in: (cse.o): Add timevar.h dependency
12476 * rtl.h (delete_trivially_dead_insns): New.
12477 * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
12478 * toplev.c (rest_of_compilation): Update callers.
12480 * cfgcleanup.c (try_optimize_cfg): Kill blocks.
12481 (try_optimize_cfg): Do not update liveness.
12482 (cleanup-cfg): Loop until try_optimize_cfg and dead code
12483 removal stabilizes; use delete_trivially_dead_insns.
12485 * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
12487 2002-03-05 Zack Weinberg <zack@codesourcery.com>
12489 * cppmain.c (setup_callbacks): Disable #pragma and #ident
12490 callbacks when processing assembly language.
12492 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
12494 * pa.h (ASM_FILE_END): Define.
12495 * som.h (ASM_FILE_END): Delete.
12497 * pa.c (function_arg): Don't pass floats in general registers in
12498 indirect calls if TARGET_ELF32.
12500 2002-03-05 Richard Henderson <rth@redhat.com>
12502 * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
12504 2002-03-05 Danny Smith <dannysmith@users.sourceforge.net>
12506 * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
12508 2002-03-05 Jakub Jelinek <jakub@redhat.com>
12510 * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
12511 -r command line. Don't hide any symbols if not building
12514 Tue Mar 5 18:31:27 CET 2002 Jan Hubicka <jh@suse.cz>
12516 * cfg.c (dump_flow_info): Warn about profile mismatches.
12517 * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
12518 (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
12520 2002-03-05 Jakub Jelinek <jakub@redhat.com>
12522 * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
12523 wide volatile memory by parts.
12525 2002-03-05 Jakub Jelinek <jakub@redhat.com>
12527 * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
12530 2002-03-05 Richard Henderson <rth@redhat.com>
12532 * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
12534 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
12536 * toplev.c (documented_lang_options): Document more
12537 language-specific options.
12538 * doc/invoke.texi (Warning Options): Correct documentation for
12539 -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
12540 * c-decl.c (c_decode_option): Use a table to handle warning options.
12542 2002-03-05 Hans-Peter Nilsson <hp@bitrange.com>
12544 * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
12545 parameter to mmix_encode_section_info.
12546 (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
12547 relocatably. Always produce ELF, not mmo if linking relocatably.
12548 * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
12549 first is non-zero, don't add symbol prefix.
12550 * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
12551 prototype accordingly.
12553 2002-03-04 Krister Walfridsson <cato@df.lth.se>
12555 * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
12557 2002-03-05 Joseph S. Myers <jsm28@cam.ac.uk>
12559 * configure.in: Increase required makeinfo version to 4.1.
12560 * configure: Regenerate.
12562 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
12564 * .cvsignore: Remove *.info* and genrtl*; these files are generated
12567 2002-03-04 Joseph S. Myers <jsm28@cam.ac.uk>
12569 * doc/include/texinfo.tex: Update to version 2002-03-01.06.
12570 * doc/invoke.texi: Fix @math uses.
12572 Mon Mar 4 15:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
12574 * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
12577 2002-03-03 Aldy Hernandez <aldyh@redhat.com>
12579 * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
12580 (powerpc-*-eabisimaltivec*): Same.
12582 * config/rs6000/t-ppcendian: New.
12584 2002-03-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
12586 * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
12587 nonimmediate_src_operand and nonimmediate_lsrc_operand to
12588 disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
12590 2002-03-03 Richard Henderson <rth@redhat.com>
12592 * toplev.c (rest_of_decl_compilation): Revert last two changes.
12594 2002-03-03 Zack Weinberg <zack@codesourcery.com>
12596 * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
12597 print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
12598 tree.c, config/m68k/m68k.c:
12599 Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
12600 REAL_ARITHMETIC blocks unconditional. Delete some further
12601 #ifdef blocks predicated on REAL_ARITHMETIC.
12602 * flags.h, toplev.c: Delete remaining references to
12603 flag_pretend_float.
12605 * doc/invoke.texi: Remove documentation of -fpretend-float.
12606 * doc/tm.texi: Describe the various REAL_* macros as provided by
12607 real.h, not by the target configuration files.
12609 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
12610 config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
12611 config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
12612 config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
12613 config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
12614 config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
12615 config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
12616 config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
12617 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
12618 config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
12619 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
12620 config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
12621 config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
12622 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
12623 config/xtensa/xtensa.h:
12624 Do not define, undefine, or mention in comments any of
12625 REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
12626 REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
12627 REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
12628 REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
12629 REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
12630 REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
12631 REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
12632 REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
12633 REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
12635 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12637 * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
12638 convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
12639 i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
12640 m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
12641 pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
12642 stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
12644 * defaults.h (BITS_PER_WORD): Define.
12645 * doc/tm.texi (BITS_PER_WORD): Document default value.
12647 * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
12648 m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
12649 stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
12651 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12653 * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
12654 lieu of explicit sizeof/sizeof.
12655 * i386.c (override_options, ix86_init_mmx_sse_builtins,
12656 ix86_expand_builtin): Likewise.
12657 * mips.c (mips_add_gc_roots): Likewise.
12658 * mmix.c (mmix_output_condition): Likewise.
12659 * rs6000.c (rs6000_override_options, altivec_expand_builtin,
12660 altivec_init_builtins): Likewise.
12661 * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
12662 * cppexp.c (Nsuff, parse_number): Likewise.
12663 * cppinit.c (builtin_array_end): Likewise.
12664 * gcc.c (n_default_compilers, process_command): Likewise.
12665 * genpreds.c (output_predicate_decls): Likewise.
12666 * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
12667 * lcm.c (N_ENTITIES): Likewise.
12668 * stor-layout.c (set_sizetype): Likewise.
12670 2002-03-03 Richard Henderson <rth@redhat.com>
12672 * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
12673 for types or labels.
12675 2002-03-03 Richard Henderson <rth@redhat.com>
12677 * c-decl.c (start_decl): Initialized variables are not common.
12679 2002-03-02 Per Bothner <per@bothner.com>
12681 * gcc.c (option_map): Suport new --bootclasspath option.
12682 --CLASSPATH is now just an alias for --classpath.
12684 2002-03-02 Richard Henderson <rth@redhat.com>
12686 * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
12687 load if "internal" visibility.
12688 * doc/extend.texi: Document visibility meanings.
12690 2002-03-02 Richard Henderson <rth@redhat.com>
12692 * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
12693 to functions as well.
12695 2002-03-02 Richard Henderson <rth@redhat.com>
12697 * attribs.c (handle_alias_attribute): Don't call assemble_alias.
12698 (handle_visibility_attribute): Don't call assemble_visibility.
12699 * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
12700 without asmspec. Invoke assemble_alias when needed.
12701 * varasm.c (maybe_assemble_visibility): New.
12702 (assemble_start_function, assemble_variable, assemble_alias): Use it.
12704 2002-03-02 Richard Henderson <rth@redhat.com>
12706 * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
12707 invoke ENCODE_SECTION_INFO with first call flag.
12709 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
12710 config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
12711 config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
12712 config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
12713 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
12714 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
12715 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
12716 config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
12717 config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
12718 config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
12719 config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
12720 config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
12721 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
12722 config/m68hc11/m68hc11.h, config/m88k/m88k.h,
12723 config/mcore/mcore-protos.h, config/mcore/mcore.c,
12724 config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
12725 config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
12726 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
12727 config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
12728 config/sh/sh.h, config/sparc/sparc.h,
12729 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
12730 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
12731 config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
12732 FIRST argument. As needed, examine it and do nothing.
12734 * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
12735 config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
12736 config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
12738 * config/arm/t-pe (pe.o): Add dependencies.
12740 2002-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12742 * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
12743 cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
12744 i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
12745 mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
12746 pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
12747 vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
12748 * defaults.h (BITS_PER_UNIT): Define.
12749 * doc/tm.texi (BITS_PER_UNIT): Document default value.
12751 2002-03-02 Kazu Hirata <kazu@hxi.com>
12753 * config/h8300/h8300-protos.h: Add a prototype for
12754 compute_a_shift_length.
12755 * config/h8300/h8300.c (h8300_asm_insn_count): New.
12756 (compute_a_shift_length): Likewise.
12757 (h8300_adjust_insn_length): Do not adjust insn length of shift
12759 * config/h8300/h8300.md (anonymous shift patterns): Use
12760 compute_a_shift_length.
12762 Sat Mar 2 06:30:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12764 * config/sparc/sparc.c (sparc_initialize_trampoline): Use
12765 trunc_int_for_mode.
12767 * emit-rtl.c (offset_address): Call update_temp_slot_address.
12769 2002-03-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12771 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
12772 * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
12773 * flags.h (flag_zero_initialized_in_bss): Declare.
12774 * toplev.c (flag_zero_initialized_in_bss): New flag.
12775 (lang_independent_options): Add flag_zero_initialized_in_bss.
12776 * tree.c (initializer_zerop): New function.
12777 * tree.h (initializer_zerop): Declare.
12778 * varasm.c (assemble_variable): If we can emit bss, put zero
12779 initializers in the bss section.
12781 2002-03-02 Alan Modra <amodra@bigpond.net.au>
12783 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
12784 like more than one symbol per .weak directive.
12786 2002-03-01 Richard Henderson <rth@redhat.com>
12788 * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
12789 adjust argument_pointer by pretend_args_size.
12790 (ia64_va_start): Adjust va_start address by -pretend_args_size.
12792 2002-03-01 Kazu Hirata <kazu@hxi.com>
12794 * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
12796 Fri Mar 1 20:59:14 CET 2002 Jan Hubicka <jh@suse.cz>
12798 * toplev.c (rest_of_compilation): Delete dead jumptables before
12800 * flow.c (delete_dead_jumptables): Make global.
12801 * rtl.h (delete_dead_jumptables): Declare.
12803 2002-03-01 David Edelsohn <edelsohn@gnu.org>
12805 * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
12806 * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
12807 * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
12809 2002-03-01 Kazu Hirata <kazu@hxi.com>
12811 * config/h8300/h8300-protos.h: Fix formatting.
12812 * config/h8300/h8300.c: Likewise.
12813 * config/h8300/h8300.h: Likewise.
12815 2002-03-01 Kazu Hirata <kazu@hxi.com>
12817 * config/h8300/h8300.c (print_operand): Support 16-bit
12818 constant addresses.
12819 * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
12821 2002-02-28 Richard Henderson <rth@redhat.com>
12823 * expmed.c (store_bit_field): Prevent generation of CONCATs;
12824 pun complex values as integers; use gen_lowpart instead of
12826 (extract_bit_field): Likewise.
12828 2002-03-01 Alan Modra <amodra@bigpond.net.au>
12829 David Edelsohn <edelsohn@gnu.org>
12831 * doc/tm.texi (ASM_WEAKEN_DECL): Document.
12832 (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
12833 (SUPPORTS_WEAK): Likewise.
12834 * output.h (add_weak): Add tree param.
12835 * varasm.c (add_weak): Likewise. Save decl.
12836 (struct weak_syms): Add decl field.
12837 (mark_weak_decls): New function.
12838 (init_varasm_once): ggc_add_root mark_weak_decls.
12839 (assemble_start_function): Use ASM_WEAKEN_DECL.
12840 (assemble_variable): Likewise.
12841 (assemble_alias): Likewise.
12842 (declare_weak): Pass decl to add_weak.
12843 (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
12844 (remove_from_pending_weak_list): Declare and define for
12846 * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
12847 * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
12848 * defaults.h (SUPPORTS_WEAK): Likewise.
12849 * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
12850 .weak for code sym. Do emit .size for descriptor sym.
12851 (ASM_DECLARE_FUNCTION_SIZE): Define.
12852 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
12853 (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here. Don't output
12854 .lglobl unless TARGET_XCOFF. Formatting fixes.
12855 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
12856 .weak for code sym.
12857 (HANDLE_PRAGMA_WEAK): Remove.
12858 (ASM_WEAKEN_LABEL): Remove.
12859 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
12861 2002-03-01 Jason Merrill <jason@redhat.com>
12863 * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
12864 (TARGET_EXPR_CLEANUP): New macro.
12866 2002-02-28 Steve Ellcey <sje@cup.hp.com>
12868 * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
12869 to take ptr_extend into account as third type of extension.
12870 (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
12871 fields used by SUBREG_PROMOTED_UNSIGNED_P.
12872 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
12873 (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
12874 * calls.c (precompute_arguments): Use new macro.
12875 (expand_call): Ditto.
12876 * combine.c (nonzero_bits): Ditto.
12877 (record_promoted_value): Ditto.
12878 * expr.c (store_expr): Ditto.
12879 (expand_expr): Ditto.
12880 * function.c (assign_parms): Ditto.
12882 2002-02-28 Alexandre Oliva <aoliva@redhat.com>
12884 * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
12885 override -shared and -shared-libgcc.
12887 2002-02-28 David O'Brien <obrien@FreeBSD.org>
12889 * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
12891 * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS. It appears
12894 2002-02-28 Richard Henderson <rth@redhat.com>
12896 * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
12897 4 cycle latency from MM producers.
12898 (ia64_internal_sched_reorder): Likewise with pipeline flush.
12900 2002-02-28 Jakub Jelinek <jakub@redhat.com>
12902 * mklibgcc.in: Don't use GNU make extension.
12904 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
12906 * c-parse.in (STATIC): New terminal.
12907 (scspec): New non-terminal. Update productions accordingly.
12908 (program): Remove bogus ifc / end ifc.
12909 (array_declarator): Simplify production using STATIC.
12911 2002-02-28 Jim Meyering <meyering@lucent.com>
12913 * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
12914 \a still means TARGET_BELL.
12916 2002-02-28 Richard Henderson <rth@redhat.com>
12918 * haifa-sched.c (sched_emit_insn): New.
12919 (schedule_block): Use last_scheduled_insn to track last insn.
12920 * sched-int.h (sched_emit_insn): Prototype.
12921 * config/ia64/ia64.c (last_issued): Remove.
12922 (ia64_variable_issue): Don't set it.
12923 (nop_cycles_until): Use sched_emit_insn.
12925 2002-02-28 Andrew MacLeod <amacleod@redhat.com>
12927 * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
12928 extended constants.
12930 2002-02-28 Kazu Hirata <kazu@hxi.com>
12932 * config/h8300/h8300.c: Fix formatting.
12933 * config/h8300/h8300.h: Likewise.
12935 2002-02-28 Marek Michalkiewicz <marekm@amelek.gda.pl>
12937 * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
12938 which may overwrite the high byte of the frame pointer.
12940 2002-02-28 Bo Thorsen <bo@suse.de>
12942 * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
12943 (STARTFILE_SPEC): Add 64 bit files.
12944 (ENDFILE_SPEC): Likewise.
12946 2002-02-28 Jason Merrill <jason@redhat.com>
12948 * c-decl.c (finish_function): Only warn about missing return
12949 statement with -Wreturn-type.
12951 Don Feb 28 11:24:30 CET 2002 Jan Hubicka <jh@suse.cz>
12953 * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
12955 * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
12956 PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
12958 Don Feb 28 11:07:36 CET 2002 Jan Hubicka <jh@suse.cz>
12960 * basic-block.h (BB_REACHABLE): Renumber.
12961 (BB_DIRTY, BB_NEW): New flags.
12962 (clear_bb_flags): Declare.
12963 (update_life_info_in_dirty_blocks): Declare.
12964 * cfg.c (clear_bb_flags): New function.
12965 * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
12966 * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
12967 reorder_insns, emit_insn_after): Mark block as dirty.
12968 * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
12969 (update_life_info_in_dirty_blocks): New function.
12970 * recog.c (apply_change_group): Dirtify block.
12972 * cse.c (cse_insn): Reorder emitting of jump insn to keep
12974 * gcse.c (delete_null_pointer_checks): Likewise.
12976 * toplev.c (dump_file_index): Move cse2 after bp,
12978 (dump_file_info): Similary.
12979 (rest_of_compilation): Avoid most of CFG rebuilds;
12980 do first if converision after null pointer checks, do cse2
12981 after branch prediction; avoid full liveness rebuild after
12982 initializing subregs.
12983 * invoke.texi (-d options): Document -du, renumber.
12985 * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
12986 (notice_new_block): Do not set BB_UPDATE_LIFE.
12987 (try_forward_edges, merge_blocks_move_predecessor_nojumps,
12988 merge_blocks_move_successor_nojumps, merge_blocks,
12989 try_crossjump_to_edge): Likewise.
12990 (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
12991 * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
12992 * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
12993 (merge_of_block): Do not use life_data_ok.
12994 (find_if_case_1): Do not use SET_UPDATE_LIFE.
12995 (if_convert): Use BB_DIRTY mechanizm to update life.
12996 * lcm.c (optimize_mode_switching): Update
12997 update_life_info_in_dirty_blocks
12999 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
13001 * Makefile.in (integrate.o): Update.
13002 * c-decl.c (copy_lang_decl): Rename.
13003 * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
13004 * integrate.c: Include langhooks.h.
13005 (copy_decl_for_inlining): Update to use langhook.
13006 * langhooks-def.h (lhd_do_nothing_t,
13007 LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
13008 (LANG_HOOKS_INITIALIZER): Update.
13009 * langhooks.c (lhd_do_nothing_t): New.
13010 * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
13011 * tree.h (copy_lang_decl): Remove.
13013 * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
13015 2002-02-27 Andrew MacLeod <amacleod@redhat.com>
13017 * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
13018 POST_DEC, and POST_MODIFY.
13020 2002-02-27 Zack Weinberg <zack@codesourcery.com>
13022 * c-typeck.c (digest_init): Remove unused parameter; all
13025 2002-02-27 Geoffrey Keating <geoffk@redhat.com>
13027 * expmed.c (expand_shift): Correctly test for low part of a
13030 2002-02-27 Ulrich Weigand <uweigand@de.ibm.com>
13032 * config/s390/s390.c (s390_chunkify_pool): Do not confuse
13033 insn UIDs with insn addresses.
13035 2002-02-27 Zack Weinberg <zack@codesourcery.com>
13037 * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
13038 c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
13039 cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
13040 builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
13041 gcc.c, toplev.c: Delete code implementing -traditional mode.
13043 * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
13044 doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
13045 Document removal of -traditional mode for compilation, and
13046 remove documentation only relevant to that mode.
13048 * config/nextstep.h, config/ptx4.h, config/svr4.h,
13049 config/convex/convex.h, config/d30v/d30v.h,
13050 config/i386/dgux.h, config/i386/osf1elf.h,
13051 config/i386/osfelf.h, config/i386/osfrose.h,
13052 config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
13053 config/m68k/hp310.h, config/m88k/dgux.h,
13054 config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
13055 config/m88k/m88k.h, config/m88k/openbsd.h,
13056 config/mips/abi64.h, config/mips/osfrose.h,
13057 config/mips/svr4-5.h, config/mips/svr4-t.h,
13058 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
13059 config/stormy16/stormy16.h: Remove all references to
13060 -traditional from target specs. Delete all mention of the
13061 no-longer-necessary TRADITIONAL_RETURN_FLOAT macro. Also
13062 delete a couple of commented-out definitions of
13063 DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
13066 * system.h: Poison TRADITIONAL_RETURN_FLOAT.
13067 * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
13069 2002-02-27 Zack Weinberg <zack@codesourcery.com>
13071 * mklibgcc.in: Don't use \n in a line subject to
13072 interpretation by echo.
13074 2002-02-27 Graham Stott <grahams@redhat.com>
13076 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
13079 * loop.c (prescan_loop): Handle PARALLEL.
13081 * unroll.c (loop_iterations): Return 0 if the add_val for
13084 * final.c (output_operand_lossage): Constify PFX_STR.
13086 * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
13088 Wed Feb 27 10:45:19 CET 2002 Jan Hubicka <jh@suse.cz>
13090 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
13091 * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
13093 Wed Feb 27 10:39:20 CET 2002 Jan Hubicka <jh@suse.cz>
13095 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
13097 2002-02-27 Neil Booth <neil@daikokuya.demon.co.uk>
13099 * cpplex.c (_cpp_lex_token): Handle directives in macro
13101 * cpplib.c (_cpp_handle_directive): Save and restore state
13102 if parsing macro args when entering a directive.
13103 * cppmacro.c (collect_args): No need to handle directives
13104 in macro arguments.
13105 (enter_macro_context, replace_args): Use the original macro
13106 definition in case it was redefined whilst collecting arguments.
13108 * cpp.texi: Update.
13110 2002-02-26 David Edelsohn <edelsohn@gnu.org>
13112 * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
13113 * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
13114 * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
13116 * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
13117 (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
13118 (load_toc_v4_PIC_2): Same.
13120 2002-02-26 Alan Modra <amodra@bigpond.net.au>
13122 * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
13124 2002-02-26 Richard Henderson <rth@redhat.com>
13126 * config/alpha/alpha.md (ashldi_se): Re-enable.
13128 2002-02-26 Richard Henderson <rth@redhat.com>
13130 * config/alpha/alpha.c (alpha_encode_section_info): Examine
13131 MODULE_LOCAL_P; improve commentary.
13133 2002-02-26 Zack Weinberg <zack@codesourcery.com>
13135 * doc/cpp.texi: Clarify documentation of relationship between
13136 #line and #include.
13138 2002-02-26 Kazu Hirata <kazu@hxi.com>
13140 * config/h8300/h8300-protos.h: Update the prototype for
13141 compute_logical_op_length. Add the prototype for
13142 compute_logical_op_cc.
13143 * config/h8300/h8300.c (compute_logical_op_length): Figure out
13144 code from operands.
13145 (compute_logical_op_cc): New.
13146 * config/h8300/h8300.md: Combine all the logical op patterns
13147 in HImode and SImode. Use compute_logical_op_cc.
13149 2002-02-26 Kelley Cook <kelleycook@comcast.net>
13151 * config/i386/i386.c (print_operand): Don't append ATT-style
13152 length suffixs to x87 opcodes when in Intel mode.
13154 2002-02-26 Ryan T. Sammartino <ryants@shaw.ca>
13156 * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
13157 (init_emit_once): Update calls.
13158 * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
13159 (init_syntax_once): Prototype.
13161 2002-02-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
13163 * pa-linux.h (LIB_SPEC): Update definition.
13164 * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
13166 2002-02-26 Richard Henderson <rth@redhat.com>
13168 * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
13169 if we emitted a stop bit.
13171 2002-02-26 Jakub Jelinek <jakub@redhat.com>
13173 * configure.in (libgcc_visibility): Substitute.
13174 * configure: Rebuilt.
13175 * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
13176 defined symbols .hidden.
13178 2002-02-26 Jakub Jelinek <jakub@redhat.com>
13180 * attribs.c (c_common_attribute_table): Add visibility.
13181 (handle_visibility_attribute): New function.
13182 * varasm.c (assemble_visibility): New function.
13183 * output.h (assemble_visibility): Add prototype.
13184 * tree.h (MODULE_LOCAL_P): Define.
13185 * crtstuff.c (__dso_handle): Use visibility attribute.
13186 * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
13187 for MODULE_LOCAL_P symbols too.
13188 * config/ia64/ia64.c (ia64_encode_section_info): Handle
13189 MODULE_LOCAL_P symbols the same way as local symbols.
13190 Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
13191 into .sdata/.sbss by the user.
13192 * doc/extend.texi (Function Attributes): Document visibility
13195 2002-02-26 Jakub Jelinek <jakub@redhat.com>
13198 * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
13199 STRING_CST initializer spanning the whole variable without
13201 If expand_expr returned MEM, don't use it.
13203 2002-02-26 Alexandre Oliva <aoliva@redhat.com>
13205 * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
13206 generate a die for the lexical block.
13208 2002-02-26 Kazu Hirata <kazu@hxi.com>
13210 * config/h8300/h8300-protos.h: Add a prototype for
13211 compute_logical_op_length.
13212 * config/h8300/h8300.c (compute_logical_op_length): New.
13213 * config/h8300/h8300.md (anonymous logical patterns): Use
13214 compute_logical_op_length for length.
13216 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
13218 * dwarf2out.c (modified_type_die): Do not call type_main_variant
13220 (gen_type_die): Same.
13222 * attribs.c (handle_vector_size_attribute): Set debug information.
13224 2002-02-26 Daniel Egger <degger@fhm.edu>
13226 * config/rs6000/rs6000.md: Swap define_insn attributes to
13227 fix incorrect generation of merge high instructions instead
13230 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
13232 * c-typeck.c (really_start_incremental_init): Use
13233 bitsize_zero_node for vectors.
13235 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
13237 * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
13238 ("*set_vrsave_internal"): Same.
13240 2002-02-25 Richard Henderson <rth@redhat.com>
13242 * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
13243 in EXPAND_SUM case. Use host_integerp/tree_low_cst.
13245 2002-02-25 Jakub Jelinek <jakub@redhat.com>
13248 * config/i386/i386.c (ix86_return_pops_args): Only pop
13249 fake structure return argument if it was passed on the stack.
13251 2002-02-25 Jason Merrill <jason@redhat.com>
13253 * attribs.c (decl_attributes): Also re-layout PARM_DECL and
13256 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
13258 * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
13259 link with shared_name only.
13260 * doc/invoke.texi (Link Options): Document new behavior.
13262 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
13264 * c-typeck.c (push_init_level): Handle vectors.
13266 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
13268 * config/sparc/sparc.c (const64_high_operand): Zero-extend
13269 operands of SPARC_SETHI_P.
13270 (input_operand): Likewise.
13271 (sparc_emit_set_const32): Likewise.
13272 * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
13273 (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
13274 (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'. Add `N' as SETHI.
13275 * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
13276 (movdi_insn_sp64_vis): Likewise.
13277 (movdi split, movdf split): Use SETHI32.
13278 * doc/md.texi: Document SPARC constraints L, M and N.
13280 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
13282 * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
13283 ("*set_vrsave_internal"): use mfspr for Darwin.
13285 * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
13286 gen_get_vrsave_internal.
13288 Sun Feb 24 16:38:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13290 * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
13292 2002-02-24 Neil Booth <neil@daikokuya.demon.co.uk>
13294 * cpplex.c (cpp_interpret_charconst): Get signedness or
13295 otherwise of wide character constants correct.
13296 * cppexp.c (lex): Get signedness of wide charconsts correct.
13298 Sun Feb 24 07:41:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13300 * optabs.c (widen_operand): Only call convert_modes for
13301 promoted SUBREG if signedness matches.
13302 * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
13304 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
13306 * cpplib.c (glue_header_name): Use local buffer to build up
13309 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
13311 * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
13313 2002-02-23 Kazu Hirata <kazu@hxi.com>
13315 * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
13316 H8/300[HS] separately.
13317 * config/h8300/h8300.md: Remove the early clobber constraint
13318 from bit field patterns.
13320 2002-02-23 Kazu Hirata <kazu@hxi.com>
13322 * config/h8300/h8300.md (mulqihi3): Tighten predicates to
13324 (mulhisi3): Likewise.
13325 (umulqisi3): Likewise.
13326 (umulhisi3): Likewise.
13328 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
13330 * cppinit.c (output_deps): Correct test for stdout output.
13331 (init_dependency_output): Cure warning.
13333 Sat Feb 23 08:42:47 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13335 * expr.c (store_expr): When converting expression to promoted
13336 equivalent type, allow using SUBREG_REG of TARGET as the target
13337 of the expansion of EXP.
13338 * loop.c (basic_induction_var, case SUBREG): Always look inside.
13339 * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
13340 (alpha_emit_set_const): Handle SImode when can't make new pseudos.
13341 (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
13342 * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
13344 2002-02-23 Joseph S. Myers <jsm28@cam.ac.uk>
13346 * doc/contribute.texi, doc/extend.texi, doc/install.texi,
13347 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
13348 doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
13350 2002-02-23 Jakub Jelinek <jakub@redhat.com>
13352 PR optimization/5747
13353 * loop.c (scan_loop): Update reg info if move_movables created new
13356 2002-02-23 David Edelsohn <edelsohn@gnu.org>
13358 * gcc.c (init_gcc_spec): Revert last change.
13360 2002-02-23 David Edelsohn <edelsohn@gnu.org>
13362 * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
13363 gpc_reg_operand constraint.
13365 2002-02-23 Alan Modra <amodra@bigpond.net.au>
13367 * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
13368 Simplify comparison of `low'.
13369 (add_operand): Fix formatting.
13370 (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
13371 (mask_operand): Disallow mask to wrap in 64-bit mode.
13372 (rs6000_stack_info): Remove redundant test setting push_p.
13373 (output_toc): Fix formatting.
13374 * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
13375 cc_reg_not_cr0_operand constraint.
13376 (booldi3, boolcdi3 splitters): Same.
13378 2002-02-23 Aldy Hernandez <aldyh@redhat.com>
13380 * config/rs6000/altivec.h: Add extra level of parentheses on casts.
13382 2002-02-22 David Edelsohn <edelsohn@gnu.org>
13384 * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
13385 gcc invoked with -shared-libgcc.
13387 2002-02-22 Jakub Jelinek <jakub@redhat.com>
13390 * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
13391 decl if any of elements was TREE_USED.
13393 2002-02-22 Alexandre Oliva <aoliva@redhat.com>
13395 * config/sparc/sol2.h: Don't include sys/mman.h.
13396 * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
13397 (arith_4096_operand): Don't throw high bits away.
13398 (const64_operand): Take sign extension of CONST_INTs into account.
13399 (const64_high_operand, sparc_emit_set_const32): Likewise.
13400 (GEN_HIGHINT64): Likewise.
13401 (sparc_emit_set_const64_quick1): Likewise.
13402 (const64_is_2insns): Likewise.
13403 (print_operand): Use trunc_int_for_mode for sign extension.
13404 * config/sparc/sparc.h (SMALL_INT32): Likewise.
13405 * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
13406 chars. Assume CONST_INT is already properly sign-extended.
13407 (movdi split): Sign-extend each SImode part.
13408 (andsi3 split): Don't mask high bits off, so that result
13409 remains properly sign-extend.
13410 (iorsi3 split): Likewise.
13411 (xorsi3 split): Likewise.
13413 2002-02-22 Richard Sandiford <rsandifo@redhat.com>
13415 * fold-const.c (fold): Fix typo in comments.
13417 2002-02-21 Diego Novillo <dnovillo@redhat.com>
13419 * Makefile.in (langhooks.o): Update dependencies.
13421 2002-02-21 Diego Novillo <dnovillo@redhat.com>
13423 * langhooks.c: Include flags.h.
13425 2002-02-21 Aldy Hernandez <aldyh@redhat.com>
13427 * testsuite/gcc.dg/attr-alwaysinline.c: New.
13429 * c-common.c (c_common_post_options): Set inline trees by
13432 * doc/extend.texi (Function Attributes): Document always_inline
13434 Update documentation about inlining when not optimizing.
13436 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
13438 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
13439 unless DECL_ALWAYS_INLINE.
13441 * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
13442 unless DECL_ALWAYS_INLINE.
13443 (c_disregard_inline_limits): Disregard if always_inline set.
13445 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
13446 Disregard if always_inline set.
13447 (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
13448 unless DECL_ALWAYS_INLINE.
13450 * attribs.c (handle_always_inline_attribute): New.
13451 (c_common_attribute_table): Add always_inline.
13453 * config/rs6000/altivec.h: Add prototypes for builtins
13454 requiring the always_inline attribute.
13456 2002-02-21 Eric Christopher <echristo@redhat.com>
13458 * expmed.c (store_bit_field): Try to simplify the subreg
13459 before generating a new one when when the mode size of
13460 value is less than maxmode.
13462 2002-02-21 Richard Henderson <rth@redhat.com>
13464 * emit-rtl.c (offset_address): Use simplify_gen_binary rather
13465 than gen_rtx_PLUS to form the sum.
13466 * explow.c (force_reg): Rearrange to not allocate new pseudo
13467 when force_operand returns a register.
13468 * expr.c (expand_assignment): Allow offset_rtx expansion to
13469 return a sum. Do not force addresses into registers.
13470 (expand_expr): Likewise.
13471 * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
13472 to canonicalize arithmetic that didn't simpify.
13473 (simplify_plus_minus): New argument force; update
13474 all callers. Don't split CONST unless we can do something with it,
13475 and wouldn't lose the constness of the operands.
13477 * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
13478 that we generated earlier.
13480 2002-02-21 Tom Tromey <tromey@redhat.com>
13482 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
13483 (output_line_info): Use constant `1', with a long explanatory
13485 * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
13487 Thu Feb 21 22:43:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
13489 * jump.c (redirect_jump): If old label has no UID, don't try to
13492 Thu Feb 21 21:17:21 2002 J"orn Rennecke <joern.rennecke@superh.com>
13494 * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
13495 If input is constant, do shifts at compile time.
13497 2002-02-21 Joseph S. Myers <jsm28@cam.ac.uk>
13499 * doc/extend.texi: Fix some more overfull hboxes.
13501 2002-02-21 Jakub Jelinek <jakub@redhat.com>
13503 PR optimization/4994
13504 * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
13507 2002-02-21 Jakub Jelinek <jakub@redhat.com>
13510 * expr.h (expand_and): Add mode argument.
13511 * expmed.c (expand_and): Add mode argument.
13512 (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
13513 * expr.c (store_field, expand_expr, do_store_flag): Likewise.
13514 * except.c (expand_builtin_extract_return_addr): Likewise.
13515 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
13516 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
13517 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
13518 Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
13519 * config/c4x/c4x.md: Use GEN_INT (x) instead of
13520 gen_rtx (CONST_INT, VOIDmode, x).
13522 2002-02-21 Jakub Jelinek <jakub@redhat.com>
13525 * stmt.c (warn_if_unused_value): Move side effects test once more.
13527 2002-02-20 Torbjorn Granlund <tege@swox.com>
13529 * config/avr/avr.md: Add more patterns for mized-mode add and subtract
13530 (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
13532 Thu Feb 21 16:20:46 2002 Alexandre Oliva <aoliva@redhat.com>
13534 * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
13535 SUBREG or ZERO_EXTEND.
13537 Thu Feb 21 15:35:46 2002 J"orn Rennecke <joern.rennecke@superh.com>
13539 * sh.h (current_function_anonymous_args): Remove.
13540 (SETUP_INCOMING_VARARGS): Don't set it - just check that one
13541 of current_function_varargs and current_function_stdarg is set.
13542 * sh.c (sh_expand_prologue): Check current_function_varargs /
13543 current_function_stdarg / TARGET_SH5 instead of
13544 current_function_anonymous_args.
13546 * sh64.h (TARGET_VERSION): Define.
13548 2002-02-20 David Edelsohn <edelsohn@gnu.org>
13550 * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
13551 VRSAVE_REGNO on TARGET_ALTIVEC.
13553 2002-02-20 Alan Modra <amodra@bigpond.net.au>
13555 * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
13556 bits of SImode const_int.
13557 (includes_rshift_p): Likewise.
13558 (print_operand): Call mask_operand and mask64_operand with correct
13560 (rs6000_output_function_epilogue): Pad traceback table to word.
13561 * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
13562 (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
13563 mask64_operand with correct mode.
13564 (FUNCTION_ARG_REGNO_P): Correct parentheses.
13566 2002-02-20 Jakub Jelinek <jakub@redhat.com>
13569 * varasm.c (get_pool_constant_mark): New.
13570 * rtl.h (get_pool_constant_mark): Add prototype.
13571 * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
13572 be represented if it has not been output.
13574 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
13576 * combine.c (do_SUBST): Sanity check substitutions of
13577 CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
13578 (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
13579 CONST_INT into its operand.
13580 (known_cond): Likewise, for ZERO_EXTEND.
13581 * simplify-rtx.c (simplify_unary_operation): Fix condition to
13582 allow for simplification of wide modes. Reject CONST_INTs in
13583 ZERO_EXTEND when their actual mode is not given.
13585 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
13587 * c-decl.c (pushdecl): If no global declaration is found for an
13588 extern declaration in block scope, try a limbo one.
13590 2002-02-20 Jakub Jelinek <jakub@redhat.com>
13593 * c-common.c (pointer_int_sum): Moved from...
13594 * c-typeck.c (pointer_int_sum): ...here.
13595 * c-common.h (pointer_int_sum): Add prototype.
13597 2002-02-20 Jakub Jelinek <jakub@redhat.com>
13600 * c-decl.c (duplicate_decls): Return 0 if issued error about
13603 2002-02-20 Roger Sayle <roger@eyesopen.com>
13604 Jakub Jelinek <jakub@redhat.com>
13607 * tree.c (host_integerp): Ensure that the constant integer is
13608 representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
13609 when pos is zero or non-zero respectively. Clarify comment.
13610 * c-format.c (check_format_info_recurse): Fix host_integerp
13611 usage; the pos argument should be zero when assigning to a
13612 signed HOST_WIDE_INT.
13614 2002-02-20 Richard Henderson <rth@redhat.com>
13616 * config/i386/i386.c (ix86_expand_vector_move): Use the mode
13617 of the operand, rather than assuming TImode.
13618 (ix86_expand_binop_builtin): Cope with commutative patterns
13619 using nonimmediate_operand for both operands.
13620 (ix86_expand_timode_binop_builtin): Likewise.
13621 (ix86_expand_store_builtin): Validate operand 1.
13622 (ix86_expand_unop1_builtin): Likewise.
13624 2002-02-20 Philip Blundell <philb@gnu.org>
13627 * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
13629 2002-02-20 Richard Henderson <rth@redhat.com>
13632 * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
13634 2002-02-20 Tom Tromey <tromey@redhat.com>
13636 * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
13637 * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
13638 * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
13639 * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
13640 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
13643 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
13645 * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
13646 for (const_int 0) in X not just INTVAL.
13648 2002-02-20 Joseph S. Myers <jsm28@cam.ac.uk>
13650 * doc/extend.texi: Avoid or reduce overfull hboxes.
13652 2002-02-20 Diego Novillo <dnovillo@redhat.com>
13654 * expmed.c (store_bit_field): Do not store bit fields using SUBREG
13655 operations if the field does not start at a mode boundary.
13657 2001-02-20 Joel Sherrill <joel@OARcorp.com>
13659 * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
13660 config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
13661 Also done for -Acpu and -Amachine.
13663 2002-02-20 Neil Booth <neil@daikokuya.demon.co.uk>
13665 * cppinit.c (init_dependency_output): Take deps output file
13666 from -o if none given with -MF. Suppress normal output.
13667 * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
13668 * doc/cpp.texi, doc/invoke.texi: Update.
13670 2002-02-19 Zack Weinberg <zack@codesourcery.com>
13672 * toplev.c (output_quoted_string): Write unprintable
13673 characters with octal escapes.
13675 2002-02-19 David Edelsohn <edelsohn@gnu.org>
13677 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
13678 really_call_used[VRSAVE_REGNO] if not Altivec.
13680 2002-02-19 Alan Modra <amodra@bigpond.net.au>
13682 * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
13684 (constant_pool_expr_1): Fix formatting.
13685 (rs6000_legitimize_reload_address): Likewise.
13687 Tue Feb 19 20:13:57 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13689 * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
13690 now that we have one.
13692 2002-02-19 Zack Weinberg <zack@codesourcery.com>
13694 * tree.h (struct tree_common): Remove aux. Add unused_0 at
13695 end of first block of bitfields (which was only seven bits);
13696 rename dummy to unused_1; remove comment which is no longer true.
13698 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
13700 * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
13702 2002-02-19 Philip Blundell <pb@nexus.co.uk>
13705 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
13709 * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
13710 arm_is_longcall_p rather than inspecting call-type cookie
13712 (call_value_insn) [TARGET_THUMB]: Likewise.
13714 2002-02-19 Graham Stott <grahams@redhat.com>
13716 * config/i386/i386.c (ix86_expand_builtin): Fix typo.
13718 2002-02-19 David Edelsohn <edelsohn@gnu.org>
13720 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
13721 ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
13722 (FP_SAVE_INLINE): Delete.
13724 * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
13725 * config/rs6000/eabi.asm: Remove ABI save restore routines.
13726 * config/rs6000/t-ppccomm: Build crtsavres.o.
13727 * config/rs6000/crtsavres.asm: New file.
13729 2002-02-19 Philip Blundell <philb@gnu.org>
13731 * config/arm/arm.c (use_return_insn): Don't reject interrupt
13733 (arm_compute_save_reg_mask): Save LR for interrupt functions too.
13734 (output_return_instruction): Allow interrupt functions to return with
13735 ldmfd sp!, {... pc}^. Use LDR to restore any single register.
13736 (arm_expand_prologue): Subtract 4 before stacking LR in an
13737 interrupt function.
13739 2002-02-19 Philip Blundell <pb@nexus.co.uk>
13741 * config/arm/arm.c (arm_encode_call_attribute): Operate on any
13742 decl, not just FUNCTION_DECL.
13743 (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
13744 (arm_assemble_integer): Likewise.
13745 * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
13748 2002-02-19 matthew green <mrg@eterna.com.au>
13750 * config.gcc (sparc-*-netbsdelf*): Enable target.
13751 (sparc64-*-netbsd*): New target.
13752 * config/sparc/netbsd-elf.h: New file.
13753 * config/sparc/t-netbsd64: New file.
13755 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
13757 * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
13759 2002-02-19 Ryan T. Sammartino <ryants@shaw.ca>
13761 * doc/invoke.texi: explicitly list the style guidelines that
13762 -Weffc++ checks for.
13764 Tue Feb 19 12:37:23 CET 2002 Jan Hubicka <jh@suse.cz>
13766 * regmove.c (regmove_optimize): Avoid increasing of register pressure.
13768 2002-02-19 Neil Booth <neil@daikokuya.demon.co.uk>
13771 * gcc.c (cpp_unique_options): Treat -o as indicating object file
13772 only if not -E. If -E, pass -o through to the preprocessor.
13774 2002-02-19 Kazu Hirata <kazu@hxi.com>
13776 * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
13777 register number with an appropriate macro.
13779 2002-02-19 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
13781 * doc/rtl.texi (Constants): Close @code tag.
13783 2002-02-19 Aldy Hernandez <aldyh@redhat.com>
13785 * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
13786 ("mmx_uavgv4hi3"): Same.
13787 ("pmulhrwv4hi3"): Same.
13789 * tree-inline.c (walk_tree): Handle vectors.
13791 * c-common.c (constant_expression_warning): Handle vectors.
13792 (overflow_warning): Same.
13794 * sched-deps.c (sched_analyze_2): Handle vectors.
13796 * rtlanal.c (rtx_unstable_p): Handle vectors.
13797 (rtx_varies_p): Same.
13798 (count_occurrences): Same.
13799 (regs_set_between_p): Same.
13800 (modified_between_p): Same.
13801 (modified_in_p): Same.
13802 (volatile_insn_p): Same.
13803 (volatile_refs_p): Same.
13804 (side_effects_p): Same.
13805 (may_trap_p): Same.
13806 (inequality_comparisons_p): Same.
13807 (replace_regs): Same.
13808 (computed_jump_p_1): Same.
13810 * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
13812 (inner_mode_array): New.
13813 (copy_rtx): Handle vectors.
13814 (copy_most_rtx): Same.
13815 (rtx_equal_p): Same.
13816 (get_mode_alignment): Adjust for vectors.
13818 * resource.c (mark_referenced_resources): Handle vectors.
13819 (mark_set_resources): Same.
13821 * reload1.c (eliminate_regs): Handle vectors.
13822 (elimination_effects): Same.
13823 (scan_paradoxical_subregs): Same.
13825 * reload.c (subst_reg_equivs): Handle vectors.
13827 * regrename.c (scan_rtx): Handle vectors.
13829 * regclass.c (reg_scan_mark_refs): Handle vectors.
13831 * recog.c (find_single_use_1): Handle vectors.
13833 * local-alloc.c (equiv_init_varies_p): Handle vectors.
13834 (contains_replace_regs): Same.
13835 (memref_referenced_p): Same.
13837 * integrate.c (copy_rtx_and_substitute): Handle vectors.
13838 (subst_constants): Same.
13840 * genattrtab.c (attr_copy_rtx): Handle vectors.
13841 (encode_units_mask): Same.
13842 (clear_struct_flag): Same.
13843 (count_sub_rtxs): Same.
13845 * gcse.c (want_to_gcse_p): Handle vectors.
13846 (oprs_unchanged_p): Same.
13847 (hash_expr_1): Same.
13848 (oprs_not_set_p): Same.
13849 (expr_killed_p): Same.
13850 (compute_transp): Same.
13851 (store_ops_ok): Same.
13853 * function.c (purge_addressof_1): Do not allow paradoxical subregs
13855 (fixup_var_refs_1): Same.
13856 (instantiate_virtual_regs_1): Same.
13858 * fold-const.c (operand_equal_p): Handle vectors.
13860 (rtl_expr_nonnegative_p): Same.
13862 * flow.c (mark_used_regs): Handle vectors.
13864 * df.c (df_uses_record): Handle vectors.
13866 * cselib.c (cselib_subst_to_values): Handle vectors.
13867 (cselib_mem_conflict_p): Same.
13870 * cse.c (canon_reg): Handle vectors.
13872 (cse_process_notes): Same.
13873 (count_reg_usage): Same.
13874 (canon_hash): Same.
13876 * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
13878 * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
13880 * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
13881 (gen_rtx): Handle CONST_VECTOR.
13882 (gen_const_vector_0): New.
13883 (copy_rtx_if_shared): CONST_VECTORs can be shared.
13884 (reset_used_flags): Same.
13885 (copy_insn_1): Same.
13886 (initializer_constant_valid_p): Handle VECTOR_CST.
13888 * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
13890 * doc/rtl.texi (Constants): Document const_vector.
13891 (CONST0_RTX): Update for vectors.
13892 (RTL sharing): Same.
13894 * print-tree.c (print_node): Add case for VECTOR_CST.
13896 * tree.h (TREE_VECTOR_CST_ELTS): New.
13897 (struct tree_vector): New.
13898 (union tree_node): Add vector node.
13899 (build_vector): Add prototype.
13901 * tree.def (VECTOR_CST): New.
13903 * tree.c (build_vector): New.
13905 * expmed.c (make_tree): Handle CONST_VECTOR.
13907 * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
13908 (CONST_VECTOR_ELT): New.
13909 (CONST_VECTOR_NUNITS): New.
13911 * machmode.h (GET_MODE_INNER): New.
13912 (DEF_MACHMODE): Accept 8th arg.
13914 * machmode.def: Add 8th argument for vector inner mode.
13915 Add inner vector modes for vectors.
13917 * rtl.def (VEC_CONST): Remove.
13918 (CONST_VECTOR): New.
13920 * expr.c (clear_storage): Allow vectors.
13921 (is_zeros_p): Handle VECTOR_CST.
13923 * varasm.c (output_constant_pool): Handle vectors.
13924 (rtx_const): Add veclo and vechi fields.
13925 (kind): Add RTX_VECTOR.
13926 (decode_rtx_const): Add case for vector.
13928 * config/rs6000/rs6000-protos.h: Add zero_constant.
13930 * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
13931 constants. Force easy vector constants into memory.
13932 (easy_vector_constant): New.
13933 (emit_easy_vector_constant): New.
13934 (rs6000_legitimize_reload_address): Do not generate bad reloads on
13937 * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
13939 ("altivec_lvxl"): Same.
13940 (altivec_lvebx): Same.
13941 (altivec_lvehx): Same.
13942 (altivec_lvewx): Same.
13943 ("*movv4si_const0"): New.
13944 ("*movv4sf_const0"): New.
13945 ("*movv8hi_const0"): New.
13946 ("*movv16qi_const0"): New.
13948 2002-02-18 Kazu Hirata <kazu@hxi.com>
13950 * config/h8300/h8300.c (notice_update_cc): Use
13953 2002-02-18 Kazu Hirata <kazu@hxi.com>
13955 * config/h8300/h8300.md (divmod patterns): Change the
13956 constraints for operands[1] to register_operand.
13958 2002-02-18 Kazu Hirata <kazu@hxi.com>
13960 * config/h8300/h8300-protos.h: Remove the prototype for
13962 * config/h8300/h8300.c (p_operand): Remove.
13963 * config/h8300/h8300.md: Replace p_operand with
13966 2002-02-18 Philip Blundell <pb@nexus.co.uk>
13968 * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
13970 (output_return_instruction): Allow use of LDR to unstack
13971 return addresss even for interrupt handlers or when
13972 interworking. If compiling for ARMv5, use interworking-safe
13973 return instructions by default. Remove duplicated code and
13974 lengthy "strcat" sequences.
13976 2002-02-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
13978 * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
13979 (LINK_EH_SPEC): Define.
13980 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
13982 2002-02-18 Ulrich Weigand <uweigand@de.ibm.com>
13984 * config/s390/s390.c (s390_emit_prologue): Do not set the
13985 frame_related flag for call-clobbered registers.
13987 Mon Feb 18 15:07:35 CET 2002 Jan Hubicka <jh@suse.cz>
13989 * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
13990 (construct_container): Fix handling of SSE operands.
13991 (ix86_expand_builtin): Fix handling of 64bit pointers.
13992 (mmx_maskmovq_rex): New pattern.
13994 Mon Feb 18 11:55:55 CET 2002 Jan Hubicka <jh@suse.cz>
13996 * regrename.c (kill_set_value): Handle subregs properly.
13998 2002-02-18 David Billinghurst <David.Billinghurst@riotinto.com>
14000 * objc/objc-act.c (handle_impent): Remove leading '*'
14001 from objc_class_name.
14003 2002-02-17 Richard Henderson <rth@redhat.com>
14005 * config/alpha/alpha.c (some_small_symbolic_operand,
14006 some_small_symbolic_operand_1, split_small_symbolic_operand,
14007 split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
14008 Handle small SYMBOL_REFs anywhere, not just inside memories.
14009 * config/alpha/alpha-protos.h: Update.
14010 * config/alpha/alpha.h (PREDICATE_CODES): Update.
14011 * config/alpha/alpha.md (small symbolic operand splitter): Update.
14013 2002-02-17 Roland McGrath <roland@frob.com>
14015 * config.gcc (powerpc-*-gnu-gnualtivec*,
14016 powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
14017 * config/rs6000/gnu.h: New file.
14018 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
14019 Grok "gnu" in rs6000_abi_name.
14020 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
14021 CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
14022 Grok -mcall-gnu analogous to -mcall-linux et al.
14023 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
14024 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
14025 (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
14027 2002-02-17 Jakub Jelinek <jakub@redhat.com>
14030 * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
14033 2002-02-17 Philipp Thomas <pthomas@suse.de>
14035 * config/cris/cris.h: Undefine STARTFILE_SPEC and
14036 ENDFILE_SPEC before (re)defining them.
14038 2002-02-17 Kazu Hirata <kazu@hxi.com>
14040 * config/h8300/h8300.c: Fix formatting.
14041 * config/h8300/h8300.h: Likewise.
14043 2002-02-17 Philipp Thomas <pthomas@suse.de>
14045 * doc/tm.texi: Explain why empty strings should not be
14046 marked for translation.
14048 2002-02-17 Philipp Thomas <pthomas@suse.de>
14050 * final.c (output_operand_lossage): Changed to accept
14051 printf style arguments. Change calls where necessary.
14052 * output.h (output_operand_lossage): Change declaration
14053 accordingly. Update copyright.
14054 * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
14055 config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
14056 Update copyright date where necessary.
14058 * config/i386/i386.c (print_operand): Likewise. Remove use of
14061 * config/cris/cris.c (cris_operand_lossage): Likewise.
14062 Rename parameter so that exgettext recognizes it as
14063 translatable message.
14064 (LOSE_AND_RETURN): Rename parameter to msgid.
14066 2002-02-17 Kazu Hirata <kazu@hxi.com>
14068 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
14069 hard coded register number with an appropriate macro.
14070 (HARD_REGNO_MODE_OK): Likewise.
14071 (ARG_POINTER_REGNUM): Likewise.
14072 (STATIC_CHAIN_REGNUM): Likewise.
14073 (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
14074 * config/h8300/h8300.md (define_constants): Define more
14077 2002-02-17 Philipp Thomas <pthomas@suse.de>
14079 * config/i386/i386.h: Don't mark empty strings for translation.
14081 2002-02-16 H.J. Lu <hjl@gnu.org>
14083 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
14085 2002-02-16 Zack Weinberg <zack@codesourcery.com>
14087 * cppinit.c (merge_include_chains): Check for brack being
14088 NULL before attempting to merge it with qtail.
14090 2002-02-16 Andrew Cagney <ac131313@redhat.com>
14092 * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
14095 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
14097 * pa/t-pa, pa/t-pro, som.h: Revert last patch.
14099 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
14101 * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
14102 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
14103 * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
14105 Sat Feb 16 13:48:50 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14107 * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
14108 now only if !TARGET_FIX.
14109 (*movsi_nt_vms_fix): New pattern.
14111 2002-02-16 Douglas B Rupp <rupp@gnat.com>
14113 * config/alpha/alpha.c: Implement null frame procedure types on VMS.
14114 (alpha_procedure_type): Replaces alpha_is_stack_procedure.
14115 (alpha_sa_mask, alpha_sa_size): Reflect above change.
14116 (alpha_pv_save_size, alpha_expand_prologue): Likewise.
14117 (alpha_start_function, alpha_expand_epilogue): Likewise.
14118 (unicosmk_gen_dsib): Likewise.
14120 Sat Feb 16 13:39:09 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14122 * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
14124 2002-02-16 Ulrich Weigand <uweigand@de.ibm.com>
14126 * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
14127 check_and_change_labels, s390_final_chunkify): Delete.
14128 (s390_split_branches, s390_chunkify_pool): New functions.
14129 (s390_function_prologue): Call them.
14131 * config/s390/s390.h (S390_REL_MAX): Delete.
14132 (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
14134 * config/s390/s390.md (cjump, icjump, jump): Fix length
14135 attribute calculation.
14138 2002-02-15 David Edelsohn <edelsohn@gnu.org>
14140 * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
14141 * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
14143 2002-02-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
14145 * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
14146 * config/pa/pa-linux.h (LIB_SPEC): Likewise.
14147 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
14149 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
14151 * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
14153 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
14155 * reload.c (find_dummy_reload): Check that an output register
14156 is valid for its mode.
14158 2002-02-14 Alexandre Oliva <aoliva@redhat.com>
14160 * combine.c (known_cond): After replacing the REG of a SUBREG, try
14163 * function.c (assign_parms): Demote promoted argument passed by
14164 transparent reference.
14166 2001-02-14 Joel Sherrill <joel@OARcorp.com>
14168 * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
14169 -Acpu() and -Amachine() to eliminate warnings.
14171 2002-02-14 Ulrich Weigand <uweigand@de.ibm.com>
14173 * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
14175 2002-02-14 Kazu Hirata <kazu@hxi.com>
14177 * config/h8300/h8300-protos.h: Update the prototype for
14179 * config/h8300/h8300.c (const_costs): Treat SET as a little
14180 more expensive operation.
14181 * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
14182 reference to const_costs.
14184 2002-02-14 Hans-Peter Nilsson <hp@axis.com>
14186 * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
14188 2002-02-14 Jakub Jelinek <jakub@redhat.com>
14191 * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
14192 use arguments from newtype.
14194 2002-02-13 Eric Christopher <echristo@redhat.com>
14196 * config/mips/mips.c (override_options): Add check for march/mipsX
14197 on the same command line. Fix error message in cpu processing.
14198 Remove architecture and ISA checks.
14200 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
14202 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
14204 * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
14206 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
14208 * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
14210 ("*movv8hi_internal1"): Same.
14211 ("*movv16qi_internal1"): Same.
14212 ("*movv4sf_internal1"): Same.
14214 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
14215 not push_reload for altivec modes.
14217 2002-02-13 Joel Sherrill <joel@OARcorp.com>
14219 * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
14220 all RTEMS targets including removal of #includes from config/*/rtems*.h
14221 file and adding them to tm_file setting. Added xm_defines=POSIX to
14223 * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
14224 * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
14225 * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
14226 * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
14227 * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
14228 config/m68k/rtemself.h: Ditto.
14229 * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
14230 config/mips/rtems64.h: Ditto.
14231 * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
14232 * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
14234 * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
14235 config/sparc/rtemself.h: Ditto.
14236 * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
14237 * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
14238 arm-rtems stanza closer to other arm-elf targets and made arm-rtems
14240 * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
14241 config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
14242 target made more similar to i386-elf.
14243 * config/i386/t-rtems-i386: Added soft float support and multilibs.
14244 * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
14245 be similar to config/m68k/t-m68kelf.
14246 * gthr-rtems.h: Encapsulate with extern "C" for C++.
14248 Wed Feb 13 23:41:15 CET 2002 Jan Hubicka <jh@suse.cz>
14250 * regmove.c (kill_value): Handle subregs.
14252 Wed Feb 13 23:34:30 CET 2002 Jan Hubicka <jh@suse.cz>
14254 * i386.md (mul patterns): Allow memory operand to be first;
14255 add expanders where needed; fix constraints.
14256 (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
14257 Allow memory operand to be the first.
14259 * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
14262 2002-02-13 Jakub Jelinek <jakub@redhat.com>
14265 * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
14268 2002-02-13 Jakub Jelinek <jakub@redhat.com>
14270 PR optimization/5547:
14271 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
14272 all valid IA-32 address modes involving non-scaled %ebx and
14273 GOT/GOTOFF as displacement.
14275 2002-02-13 Ulrich Weigand <uweigand@de.ibm.com>
14277 * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
14278 after emitting ltorg insns.
14280 * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
14281 *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
14282 *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
14283 *abssf2): Fix "op_type" attribute.
14285 2002-02-13 Douglas B Rupp <rupp@gnat.com>
14287 * mkconfig.sh: Avoid using a subshell redirect.
14288 ($output.T): Change to $(output)T.
14289 (ENABLE_NLS): Remove unneeded undef.
14291 * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
14292 * config/alpha/x-vms (libsubdir): Define.
14294 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
14295 register frame procedures. Optimize retrieving context.
14297 * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
14298 (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
14299 * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
14301 Wed Feb 13 09:45:08 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14303 * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
14304 Make same change as for find_base_value.
14306 2002-02-13 Kazu Hirata <kazu@hxi.com>
14308 * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
14309 of QImode and SImode.
14311 2002-02-13 Kazu Hirata <kazu@hxi.com>
14313 * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
14314 length computation of movsi.
14315 * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
14317 2002-02-13 Kazu Hirata <kazu@hxi.com>
14319 * config/h8300/h8300.md (subqi3): Tighten the predicate for
14320 operands[2] to register_operand.
14322 Wed Feb 13 10:35:56 CET 2002 Jan Hubicka <jh@suse.cz>
14324 * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
14326 2002-02-12 Aldy Hernandez <aldyh@redhat.com>
14328 * config/rs6000/rs6000.md: Use predicate altivec_register_operand
14329 for altivec_lvx* and altivec_stvx*.
14330 ("*movv4si_internal"): Add constraint for loading from GPRs.
14331 ("*movv8hi_internal1"): Same.
14332 ("*movv16qi_internal1"): Same.
14333 ("*movv4sf_internal1"): Same.
14335 * config/rs6000/rs6000.c (altivec_register_operand): New.
14337 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
14338 altivec_register_operand.
14340 2002-02-13 Hans-Peter Nilsson <hp@bitrange.com>
14342 * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
14345 2002-02-13 Stan Shebs <shebs@apple.com>
14347 * c-typeck.c (digest_init): Handle vectors.
14348 (really_start_incremental_init): Same.
14349 (pop_init_level): Same.
14350 (process_init_element): Same.
14352 * varasm.c (output_constant): Same.
14354 * expr.c (clear_storage): Same.
14355 (store_constructor): Same.
14357 2002-02-12 Eric Christopher <echristo@redhat.com>
14359 * explow.c (hard_function_value): Add comment explaining
14360 signed/unsigned comparison.
14362 2002-02-12 Jakub Jelinek <jakub@redhat.com>
14364 * jump.c (never_reached_warning): Add finish argument.
14365 If finish is NULL, stop on CODE_LABEL, otherwise stop before first
14366 real insn after end.
14367 * rtl.h (never_reached_warning): Adjust prototype.
14368 * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
14369 * cfgrtl.c (flow_delete_block): Pass b->end as finish to
14370 never_reached_warning.
14372 2002-02-12 Graham Stott <grahams@redhat.com>
14374 * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
14376 2002-02-12 Kazu Hirata <kazu@hxi.com>
14378 * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
14379 logical shifts on H8/300.
14380 (shift_alg_si): Improve several shifts on H8/300.
14381 (get_shift_alg): Likewise.
14383 2002-02-12 Graham Stott <grahams@redhat.com>
14385 * config/pa/pa.c (compute_movstrsi_length): Fix typos.
14387 Tue Feb 12 10:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14389 * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
14390 Handle #ifdef POINTERS_EXTEND_UNSIGNED.
14392 2002-02-11 Hans-Peter Nilsson <hp@bitrange.com>
14394 * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
14395 non-CONST_INT through default_assemble_integer.
14396 <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
14397 <case 8>: Abort for CONST_DOUBLE.
14399 2002-02-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
14401 * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
14403 * config/pa/pa-linux.h (LIB_SPEC): Delete.
14404 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
14406 2002-02-11 Andrew Haley <aph@cambridge.redhat.com>
14408 * config/stormy16/stormy16.md (zero_extendqihi2): New.
14410 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
14412 * regrename.c (regrename_optimize): Don't accept a
14413 part-clobbered register if the replaced register is not part
14416 * calls.c (store_one_arg): In the non-BLKmode non-partial case,
14417 take padding into account when computing the argument value.
14419 * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
14421 * combine.c (try_combine): Apply substitutions in
14422 CALL_INSN_FUNCTION_USAGE too.
14424 2002-02-11 Aldy Hernandez <aldyh@redhat.com>
14426 * config/rs6000/rs6000.c (altivec_init_builtins): Handle
14427 __builtin_altivec_abs*.
14430 * config/rs6000/rs6000.h (rs6000_builtins): Add
14431 ALTIVEC_BUILTIN_ABS*.
14433 * config/rs6000/altivec.h: Use const char for builtins expecting
14435 (vec_abs): New versions for C and C++.
14438 2002-02-10 Kazu Hirata <kazu@hxi.com>
14440 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
14443 2002-02-10 Kazu Hirata <kazu@hxi.com>
14445 * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
14446 constant definition from h8300.md.
14447 (FRAME_POINTER_REGNUM): Likewise.
14448 * config/h8300/h8300.md (define_constants): Add FP_REG.
14450 2002-02-10 Kazu Hirata <kazu@hxi.com>
14452 * config/h8300/h8300.c (print_operand): Remove redundant code.
14454 2002-02-10 Kazu Hirata <kazu@hxi.com>
14456 * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
14457 * config/h8300/h8300.c (byte_reg): Make it static.
14459 2002-02-10 Richard Henderson <rth@redhat.com>
14462 * c-typeck.c (incomplete_type_error): Handle flexible array members.
14464 2002-02-10 Richard Henderson <rth@redhat.com>
14467 * tree.c (append_random_chars): Don't abort if main_input_filename
14470 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
14472 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
14474 2002-02-10 Kazu Hirata <kazu@hxi.com>
14476 * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
14477 (pushhi1): Likewise.
14479 2002-02-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
14481 * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
14482 * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
14484 2002-02-09 David O'Brien <obrien@FreeBSD.org>
14486 * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
14488 (ASM_CPU_DEFAULT_SPEC): Remove. Default setting is fine.
14490 2002-02-09 Kazu Hirata <kazu@hxi.com>
14492 * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
14493 a half of an SImode register on H8/300.
14495 Sat Feb 9 18:28:02 CET 2002 Jan Hubicka <jh@suse.cz>
14497 * i386.md (movdi_2): Add missing '!'.
14499 2002-02-09 Kazu Hirata <kazu@hxi.com>
14501 * config/h8300/h8300.h: Fix formatting. Remove commented-out
14504 2002-02-09 Kazu Hirata <kazu@hxi.com>
14506 * config/h8300/h8300.md (length): Correct the distance valid
14507 for the short branch.
14509 2002-02-09 Kazu Hirata <kazu@hxi.com>
14511 * config/h8300/h8300.md (iorhi3): Tighten the predicates.
14513 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
14515 * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
14516 registers in SImode.
14517 (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
14520 * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
14523 Contribute sh64-elf.
14524 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
14525 * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
14526 (sh_cannot_modify_jumps_p): New function.
14527 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
14528 * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
14529 (sh_ms_bitfield_layout_p): New function.
14530 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
14531 Zack Weinberg <zack@codesourcery.com>
14532 * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
14533 expand_simple_binop instead of expand_binop.
14534 2002-02-03 Alexandre Oliva <aoliva@redhat.com>
14535 * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
14536 use of .quad and .uaquad.
14537 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
14538 TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
14539 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
14540 * config/sh/sh.md (movdi_const, movdi_const_32bit,
14541 movdi_const_16bit): Make sure all CONSTs have modes.
14542 (sym2PIC): Ditto, but by adjusting all callers.
14543 * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
14544 if the prologue calls the SHmedia argument decoder or register
14546 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
14547 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
14548 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
14549 (sh_expand_epilogue): Don't emit USE of return target register.
14550 (prepare_move_operands): Legitimize DImode PIC addresses.
14551 (sh_media_register_for_return): Skip tr0, used to initialize the
14553 (sh_expand_prologue): Remove explicit USE of return register.
14554 (nonpic_symbol_mentioned_p): PC is non-PIC. Don't recurse in
14555 CONST_DOUBLEs. UNSPEC_GOTPLT is PIC.
14556 * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
14557 (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
14558 (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
14559 EXTRA_CONSTRAINT_T.
14560 (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
14561 (MOVI_SHORI_BASE_OPERAND_P): New.
14562 (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
14563 (EXTRA_CONSTRAINT_T): Define in terms of them.
14564 (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
14565 * config/sh/sh.md (movsi_media, movsi_media_nofpu,
14566 movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
14567 alternatives supporting TARGET_REGS.
14568 (UNSPEC_GOTPLT): New constant.
14569 (movdi split): Move incrementing of LABEL_NUSES...
14570 (movdi_const, movdi_const_32bit): Here. Use
14571 MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
14572 (movdi_const_16bit): New.
14573 (call, call_value) [flag_pic]: Use GOTPLT.
14574 (call_pop, call_value_pop): New expands.
14575 (call_pop_compact, call_pop_rettramp): New insns.
14576 (call_value_pop_compact, call_value_pop_rettramp): New insns.
14577 (sibcall) [flag_pic]: Use GOT.
14578 (builtint_setjmp_receiver): Remove bogus, unused expand.
14579 (GOTaddr2picreg): Implement for SHcompact and SHmedia.
14580 (*pt, *ptb, ptrel): New insns.
14581 (sym2GOT): Handle DImode GOT.
14582 (sym2GOTPLT, symGOTPLT2reg): New expands.
14583 (sym2PIC): New expand.
14584 (shcompact_return_tramp): Use GOTPLT to return trampoline.
14585 (shcompact_return_tramp_i): Use return register explicitly.
14586 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
14587 disable flag_reorder_blocks.
14588 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
14589 * config/sh/sh.md (sibcall_compact): Reorder return, uses and
14590 clobbers, for clarity.
14591 (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
14592 restoring of r0 in macl as MAYBE_DEAD.
14593 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
14594 * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
14595 * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
14596 alter_subreg all over.
14597 (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
14598 reload, instead of emitting instructions that would require
14600 (casesi_load_media): Add missing modes.
14601 2001-11-09 Alexandre Oliva <aoliva@redhat.com>
14602 * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
14603 as used if the argument decoder is called.
14604 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
14605 * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
14606 Pmode, then extend it to DImode if necessary.
14607 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
14608 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
14609 constants in FPU-enabled SHmedia, let them be loaded from memory.
14610 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
14611 * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
14612 Adjust whitespace in assembly output templates.
14613 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
14614 * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
14615 mode of if_then_else.
14616 2001-08-04 Alexandre Oliva <aoliva@redhat.com>
14617 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
14619 2001-07-26 Andrew Haley <aph@cambridge.redhat.com>
14620 Joern Rennecke <amylaar@redhat.com>
14621 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
14622 (SUBTARGET_CPP_PTR_SPEC): New.
14623 (SUBTARGET_CPP_SPEC): Remove.
14624 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
14625 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
14626 Fix typo in previous checkin.
14627 2001-07-11 Chandrakala Chavva <cchavva@redhat.com>
14628 * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
14629 2001-07-10 Chandrakala Chavva <cchavva@cygnus.com>
14630 Alexandre Oliva <aoliva@redhat.com>
14631 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
14632 what single FP register can hold for SHmedia target.
14633 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
14634 Alexandre Oliva <aoliva@redhat.com>
14635 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
14636 Do not split into SUBREG.
14637 2001-06-14 Alexandre Oliva <aoliva@redhat.com>
14638 * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
14639 and added new functions as specified in SH5 ABI r9.
14640 2001-06-04 Alexandre Oliva <aoliva@redhat.com>
14641 * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
14643 2001-06-03 Alexandre Oliva <aoliva@redhat.com>
14644 * config/sh/sh.c (dump_table): Add const0_rtx in calls of
14645 gen_consttable_4 and gen_consttable_8. Emit multiple labels
14646 and consttable_window_ends.
14647 2001-06-03 Graham Stott <grahams@redhat,com>
14648 * config/sh/sh.md (movdi split): Remove unused variable last_insn.
14649 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
14650 * config/sh/sh.c (print_operand): Handle floating-point pair,
14651 vector and matrix registers.
14652 * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
14653 vector modes into account.
14654 * config/sh/sh.md (movv2sf): Split move between registers into
14656 (movv4sf, movv16sf): Introduce insns that get split only after
14658 * config/sh/shmedia.h: Fix Copyright dates.
14659 * config/sh/ushmedia.h: Likewise. Move loop counter
14660 declarations into conditionals that uses them.
14661 (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
14663 * config/sh/sshmedia.h: Fix Copyright dates.
14664 (sh_media_PUTCFG): Fix constraints.
14665 2001-05-12 Alexandre Oliva <aoliva@redhat.com>
14666 * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
14667 ptrmemfunc_vbit_in_delta for SH5.
14668 2001-05-08 Alexandre Oliva <aoliva@redhat.com>
14669 * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
14670 * invoke.texi: Likewise.
14671 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
14672 * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
14673 GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
14674 GCC_pop_shmedia_regs_nofpu): New global symbols.
14675 * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
14676 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
14677 * config/sh/sh.c (calc_live_regs): Account for PR's saving in
14678 compact function with nonlocal labels.
14679 (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
14680 (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
14681 (initial_elimination_offset): Account for their stack space.
14682 * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
14683 * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
14684 movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
14685 movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
14686 least one of the operands to be a register.
14687 (movv2sf): Likewise. Renamed to movv2sf_i.
14688 (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
14689 prepare_move_operands() before emitting SHmedia insns.
14690 2001-04-03 Alexandre Oliva <aoliva@redhat.com>
14691 * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
14692 Don't save nor initialize r12. Don't mis-align the stack.
14693 Pad the code with a nop.
14694 * config/sh/crti.asm: Don't restore r12. Don't mis-align the
14696 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
14697 * gcc/longlong.h (__umulsidi3, count_leading_zeros)
14698 [__SHMEDIA__]: Implement.
14699 2001-03-11 Alexandre Oliva <aoliva@redhat.com>
14700 * config/sh/sh.md: Set latency of `pt' closer to reality.
14701 (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
14702 movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
14703 Set move, load and store type attributes.
14704 * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
14705 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
14707 * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
14708 * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
14709 * config/sh/sh.c (sh_media_register_for_return): New function.
14710 (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
14711 branch-target register.
14712 (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
14713 * config/sh/sh.md (return_media_i): Use any call-clobbered
14714 branch-target register.
14715 (return_media): If r18 wasn't copied in the prologue, copy it
14717 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
14718 Clear class FP0_REGS.
14719 * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
14721 2001-03-08 DJ Delorie <dj@redhat.com>
14722 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
14723 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
14724 * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
14725 2001-02-07 Alexandre Oliva <aoliva@redhat.com>
14726 * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
14727 2001-02-03 Alexandre Oliva <aoliva@redhat.com>
14728 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
14729 return value correctly for call_cookie.
14730 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
14731 * config/sh/crt1.asm (start): Modified so as to call
14732 ___setup_argv_and_call_main.
14733 2001-01-26 Alexandre Oliva <aoliva@redhat.com>
14734 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
14736 2001-01-20 Alexandre Oliva <aoliva@redhat.com>
14737 * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
14738 (STRIP_NAME_ENCODING): Use it.
14739 (ASM_OUTPUT_LABELREF): Likewise. Don't call assemble_name().
14740 2001-01-19 Alexandre Oliva <aoliva@redhat.com>
14741 * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
14742 prepare_scc_operands().
14743 * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
14744 (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
14745 2001-01-17 Alexandre Oliva <aoliva@redhat.com>
14746 * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
14747 2001-01-13 Alexandre Oliva <aoliva@redhat.com>
14748 * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
14749 * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
14750 used in shcompact_incoming_args.
14751 * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
14753 * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
14755 * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
14756 Adjust accordingly.
14757 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
14758 Simplify. Adjust. Add sanity check.
14759 * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
14761 * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
14763 (udivsi3, divsi3): Use them.
14764 (force_mode_for_call): New insn.
14765 (call, call_value, sibcall_value): Emit it before SHcompact
14767 2001-01-11 Alexandre Oliva <aoliva@redhat.com>
14768 * config/sh/sh.md (call, call_value, sibcall): Make sure the
14769 call cookie is non-NULL before taking its value.
14770 2001-01-10 Alexandre Oliva <aoliva@redhat.com>
14771 * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
14772 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
14773 * config/sh/sh.md (shcompact_incoming_args): Set argument memory
14775 * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
14776 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
14777 temporary for stack adjusts. Use MACL and MACH to pass
14778 arguments to shcompact_incoming_args.
14779 * config/sh/sh.md (shcompact_incoming_args): Adjust. Don't
14781 * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
14782 (nested_trampoline): Load static chain address into r1.
14783 * config/sh/sh.md (movdi_media splits): Fix sign-extension.
14784 2001-01-07 Alexandre Oliva <aoliva@redhat.com
14785 * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
14786 fp_arith_reg_operand().
14787 2001-01-06 Alexandre Oliva <aoliva@redhat.com>
14788 * config/sh/sh.md (casesi): Sign-extend the first two operands,
14789 and use signed compares for them.
14790 * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
14791 4-byte ones. Instead, inter-leave them, maintaining the 8-byte
14792 ones properly aligned.
14793 (find_barrier): Account for extra alignment needed for 8-byte wide
14795 (machine_dependent_reorg): Require a label for the second 4-byte
14796 constant after an 8-byte one.
14797 * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
14799 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
14800 * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
14801 last_float when switching float modes.
14802 * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
14803 auto-increment for general-purpose registers.
14804 * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
14806 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
14808 * config/sh/sh.c (sh_builtin_saveregs): Support using all
14809 registers for varargs.
14810 2001-01-01 Alexandre Oliva <aoliva@redhat.com>
14811 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
14812 * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
14813 CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
14814 (CALL_COOKIE_INT_REG_SHIFT): Adjust.
14815 (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK. Adjust
14816 call_cookie accordingly.
14817 (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
14818 (SHCOMPACT_BYREF): Likewise.
14819 (SHCOMPACT_FORCE_ON_STACK): New macro.
14820 * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
14821 (sh_builtin_saveregs): Likewise.
14822 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
14823 shcompact_incoming_args): Use new shift values. Support
14824 sequences of consecutive and non-consecutive pushes/pops.
14825 * config/sh/sh.md (return): Don't explicitly use PR_REG.
14826 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
14827 * config/sh/sh.h (TEXT_SECTION): Define.
14828 * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
14829 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
14830 * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
14831 * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
14832 return values on FPU-enabled SHmedia.
14833 (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
14834 FPU-enabled SHmedia.
14835 (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
14836 value is returned in a non-FP reg and is not returned by
14838 * config/sh/sh.md (shcompact_return_tramp_i): Change type to
14840 2000-01-04 Alexandre Oliva <aoliva@redhat.com>
14841 * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
14842 (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
14843 quad-aligned to be passed by callee-copy reference.
14844 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
14845 * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
14846 * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
14847 2001-01-02 Alexandre Oliva <aoliva@redhat.com>
14848 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
14849 copying low-numbered FP regs to r7 and r8.
14850 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
14851 FP regs to general-purpose regs only if the copy was passed on the
14853 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
14854 copying FP reg to r9.
14855 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
14856 copy FP regs to general-purpose regs only in outgoing calls.
14857 * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
14858 change from 2000-10-30. Adjust for 64-bit (or 32-bit)
14860 * config/sh/sh.h (struct sh_args): Document all fields.
14861 (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
14862 passed partially on the stack should not consider making
14864 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
14865 stack_regs only for incoming calls. When passing FP args,
14866 make sure there are FP regs available before modifying
14868 (SHCOMPACT_BYREF): Pass double args in general-purpose
14869 registers by reference.
14870 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
14871 * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
14872 attempt to generate sibcalls if the caller got any arguments
14874 * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
14875 * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
14876 to 8-byte boundaries.
14877 * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
14878 * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
14879 * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
14880 stored in the stack.
14881 * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
14882 for the offsets to have the ISA bit set.
14883 (shcompact_call_trampoline): Document. Swap r0 and r1, to match
14884 invocation. Use beq instead of bgt to mark end of sequence of
14886 (shcompact_incoming_args): Fix store of r2. Use beq instead of
14887 bgt to mark end of sequence of stores.
14888 * config/sh/sh.c (arith_operand): Don't check whether
14889 CONST_OK_FOR_J for now.
14890 * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
14891 instead of long for conversion.
14892 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
14893 * config/sh/sh.c (print_operand_address): Convert INTVAL to int
14894 before passing it to fprintf.
14895 2000-12-28 Alexandre Oliva <aoliva@redhat.com>
14896 * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
14897 Call set_fpscr before reading/writing SR.
14898 * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
14900 * config/sh/lib1funcs.asm: Add `.align 2' directives before
14902 (FMOVD_WORKS): Define on SH5 with FPU.
14903 (set_fpscr): Define on SH5. Remove separate _fpscr_values
14905 * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
14907 2000-12-28 Hans-Peter Nilsson <hpn@cygnus.com>
14908 * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
14910 (ia_main_table): Ditto.
14911 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
14912 * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
14913 * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
14914 the definitions from sh.h.
14915 * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
14917 (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
14918 * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
14919 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
14920 2000-12-26 Alexandre Oliva <aoliva@redhat.com>
14921 * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
14922 Increment LABEL_NUSES.
14924 * config/sh/sh.h (SIZE_TYPE): Define as conditional on
14926 (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
14928 * config/sh/elf.h (SIZE_TYPE): Likewise.
14929 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
14930 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
14931 shcompact_incoming_args): Load switch table addresses using
14933 * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
14934 (NO_BUILTIN_SIZE_TYPE): Define.
14935 (SIZE_TYPE): Don't define.
14936 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
14937 * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
14938 definition of __SH5__=32 for -m5-compact-nofpu.
14939 * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
14941 2000-12-24 Alexandre Oliva <aoliva@redhat.com>
14942 * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
14943 2000-12-23 Alexandre Oliva <aoliva@redhat.com>
14944 * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
14945 (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
14946 (INSN_LENGTH_ALIGNMENT): Likewise.
14947 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
14948 * config/sh/sh.md (call, call_value, sibcall): Simplify
14949 copying of non-branch-target register.
14950 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
14951 * glimits.h (__LONG_MAX__): Revert 2000-12-13's patch.
14952 * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
14953 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
14954 * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
14955 floating-point values as structs.
14956 (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
14957 (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
14958 general-purpose register.
14959 (SH5_PROTOTYPED_FLOAT_ARG): New macro.
14960 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
14961 * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
14962 * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
14963 * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
14964 (ENCODE_SECTION_INFO): Enclose variables and constants in
14966 (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
14967 (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
14968 (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
14969 * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
14970 only for LABEL_REFs. For SYMBOL_REFs, prepend
14971 SH_DATALABEL_ENCODING to the symbol name.
14972 * config/sh/sh.md (indirect_jump): Use SUBREG instead of
14974 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
14975 * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
14977 * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
14978 * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
14979 (DATALABEL_REF_P): Don't require CONST.
14980 (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
14982 2000-12-19 Alexandre Oliva <aoliva@redhat.com>
14983 * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
14985 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
14986 * config/sh/sh.md (movsi_media, call, call_value, sibcall):
14987 Use shallow_copy_rtx and PUT_MODE to change the mode of
14988 SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
14989 * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
14990 on SHmedia using GENERAL_REGs.
14991 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
14992 bltu_media_i): Fix reversion of conditions.
14993 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
14994 * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
14995 * config/sh/sh.c (output_far_jump): Save r13 in macl.
14996 2000-12-17 Alexandre Oliva <aoliva@redhat.com>
14997 * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
14998 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
14999 * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
15000 (GCC_nested_trampoline): Likewise.
15001 * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
15002 * config/sh/sh.c (gen_datalabel_ref): Define.
15003 * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
15004 (INITIALIZE_TRAMPOLINE): Likewise.
15005 (TRAMPOLINE_ADJUST_ADDRESS): Define.
15006 (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
15007 (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
15008 (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
15009 * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
15010 (ic_invalidate): Adjust for SH5.
15011 (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
15012 * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
15013 _nested_trampoline.
15014 2000-12-15 Alexandre Oliva <aoliva@redhat.com>
15015 * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
15016 (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
15017 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
15018 * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
15019 * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
15020 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
15021 * config/sh/sh.c (target_reg_operand): Match only target-branch
15022 registers and pseudos that aren't virtual registers.
15023 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
15024 Copy operands that don't match target_reg_operand to pseudos.
15025 (call_media, call_value_media, sibcall_media): Use
15026 target_reg_operand instead of target_operand.
15027 2000-12-13 Alexandre Oliva <aoliva@redhat.com>
15028 * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
15029 * config/sh/sh.c (target_reg_operand): Match hardware registers
15030 other than branch-target registers.
15031 * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
15032 * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
15033 (fpscr_values) [SH5 == 32]: Define.
15034 * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
15035 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
15036 Handle function addresses coming in SUBREGs.
15037 2000-12-12 Alexandre Oliva <aoliva@redhat.com>
15038 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
15039 shcompact_return_trampoline): Use datalabel where appropriate.
15040 2000-12-09 Alexandre Oliva <aoliva@redhat.com>
15041 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
15042 general-purpose register to copy one branch-target register to
15044 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
15045 * config/sh/sh.c (target_operand): Accept LABEL_REFs and
15046 SYMBOL_REFs with VOIDmode.
15047 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
15048 bltu_media_i): New insns.
15049 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
15050 * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
15051 (INIT_CUMULATIVE_ARGS): Likewise.
15052 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
15053 * machmode.def (V16SFmode): New mode.
15054 * c-common.c (type_for_mode): Support V2SF and V16SF.
15055 * tree.c (build_common_tree_nodes_2): Likewise.
15056 * tree.h (tree_index): Likewise.
15057 * calls.c (emit_call_1): Take args_so_far. Adjust all
15058 callers. Introduce CALL_POPS_ARGS.
15059 * tm.texi (CALL_POPS_ARGS): Document.
15060 * config/sh/crt1.asm: Implement in SHmedia mode.
15061 * config/sh/crti.asm, config/sh/crtn.asm: Likewise
15062 * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
15063 (DBX_REGISTER_NUMBER): Renumber registers for SH5.
15064 * config/sh/lib1funcs.asm: Disable functions unused in SH5.
15065 Implement divsi and udivsi in SHmedia mode. Introduce
15066 SHcompact trampolines.
15067 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
15069 (regno_reg_class): Rewrite.
15070 (fp_reg_names): Remove.
15071 (sh_register_names, sh_additional_register_names): New.
15072 (print_operand): Added `u'. Support SUBREGs in addresses.
15073 Add parentheses around shifted CONSTs.
15074 (output_file_start): Output .mode and .abi directives.
15075 (shiftcosts, addsubcosts, multcosts): Adjust.
15076 (output_stack_adjust): Compute alignment. Sanity-check SIZE.
15077 (push_regs): Take array of HOST_WIDE_INTs. Adjust callers.
15078 (calc_live_regs): Output to array of HOST_WIDE_INTs. Count
15079 bytes, not registers. Take into account the need for the
15080 SHcompact incoming args trampoline. Adjust all callers.
15081 (sh_expand_prologue): Take stack_regs into account. Call
15082 incoming args trampoline. Keep stack aligned as per SH5 ABI.
15083 (sh_expand_epilogue): Take stack_regs into accoutn. Keep
15084 stack aligned as per SH5 ABI.
15085 (sh_builtin_saveregs): Support SH5 ABI.
15086 (sh_build_va_list, sh_va_start): Likewise.
15087 (initial_elimination_offset): Take alignment into account.
15088 Compute location of PR according to the SH5 stack frame.
15089 (arith_reg_operand): Reject branch-target registers.
15090 (shmedia_6bit_operand): New.
15091 (logical_operand): Use CONST_OK_FOR_P on SHmedia.
15092 (target_reg_operand): Match DImode only. Accept SUBREGs.
15093 (target_operand): New.
15094 * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
15095 (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI. Initialize
15096 SIBCALL_REGS for SHmedia.
15097 (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
15098 (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
15099 (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
15100 (TARGET_SWITCHES): New SH5 flags.
15101 (OVERRIDE_OPTIONS): Set SH5-specific options. Use
15102 VALID_REGISTER_P to disable unsupported registers.
15103 (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
15104 (POINTER_SIZE, PARM_BOUNDARY): Adjust.
15105 (FUNCTION_ARG_PADDING): Define.
15106 (FASTEST_ALIGNMENT): Adjust.
15107 (SH_REGISTER_NAMES_INITIALIZER): New.
15108 (sh_register_names): Declare.
15109 (DEBUG_REGISTER_NAMES): Define.
15110 (REGISTER_NAMES): Define based on sh_register_names.
15111 (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
15112 (sh_additional_register_names): Declare.
15113 (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
15114 (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
15115 (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
15116 (REGISTER_NATURAL_MODE): Define.
15117 (FIRST_PSEUDO_REGISTER): Adjust.
15118 (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
15119 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
15120 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
15121 (VECTOR_MODE_SUPPORTED_P): Define.
15122 (REG_CLASS_CONTENTS): Adjust.
15123 (SMALL_REGISTER_CLASSES): Adjust.
15124 (REG_ALLOC_ORDER): Adjust.
15125 (INDEX_REG_CLASS): Adjust.
15126 (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
15127 (CONST_OK_FOR_LETTER_P): Adjust.
15128 (PREFERRED_RELOAD_CLASS): Adjust.
15129 (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
15130 (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
15131 (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
15132 (FIRST_FP_PARM_REG): Adjust.
15133 (CALL_POPS_ARGS): Define.
15134 (FUNCTION_ARG_REGNO_P): Adjust.
15135 (struct sh_args): New fields.
15136 (GET_SH_ARG_CLASS): Adjust.
15137 (INIT_CUMULATIVE_ARGS): Adjust.
15138 (INIT_CUMULATIVE_INCOMING_ARGS): Define.
15139 (FUNCTION_ARG_ADVANCE): Adjust.
15140 (FUNCTION_ARG): Adjust.
15141 (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
15142 (FUNCTION_ARG_CALLEE_COPIES): Define.
15143 (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
15144 (STRICT_ARGUMENT_NAMING): Define.
15145 (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
15146 (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
15147 (SH5_WOULD_BE_PARTIAL_NREGS): Define.
15148 (SETUP_INCOMING_VARARGS): Adjust.
15149 (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
15150 (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
15151 (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
15152 (SUBREG_OK_FOR_INDEX_P): Adjust.
15153 (EXTRA_CONSTRAINT_S): Update.
15154 (EXTRA_CONSTRAINT_T): New.
15155 (EXTRA_CONSTRAINT): Adjust.
15156 (GO_IF_LEGITIMATE_INDEX): Adjust.
15157 (GO_IF_LEGITIMATE_ADDRESS): Adjust.
15158 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
15159 (MOVE_MAX): Adjust.
15160 (MAX_MOVE_MAX): Define.
15162 (CONST_COSTS): Adjust.
15163 (REGISTER_MOVE_COST): Adjust.
15164 (BRANCH_COST): Adjust.
15165 (TEXT_SECTION_ASM_OP): Adjust.
15166 (DBX_REGISTER_NUMBER): Adjust.
15167 (ASM_OUTPUT_DOUBLE_INT): New.
15168 (UNALIGNED_DOUBLE_INT_ASM_OP): New.
15169 (PREDICATE_CODES): Adjust.
15170 (PROMOTE_MODE): Adjust.
15171 (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
15172 * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
15173 (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
15174 (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
15175 (DR0_REG, DR2_REG, DR4_REG): Renumber.
15176 (TR0_REG, TR1_REG, TR2_REG): New.
15177 (XD0_REG): Renumber.
15178 (UNSPEC_COMPACT_ARGS): New.
15179 (type): Added pt and ptabs.
15180 (length): Default to 4 on SHmedia. Default pt length to 12
15181 and 20 on SHmedia32 and SHmedia64, respectively.
15182 (pt): New function unit.
15183 (movdi, movsi): Add types pt and ptabs. Don't increment LABEL_NUSES.
15184 Add whitespace between operands of SHmedia instructions.
15186 (adddi3_media, addsi3_media): Adjust constraints.
15187 (subsi3) [SHmedia]: Force operand 1 into a register.
15188 (udivsi3_i1_media, udivsi3_i4_media): New.
15189 (udivsi3): Support SHmedia.
15190 (divsi3_i1_media, divsi3_i4_media): New.
15191 (divsi3): Support SHmedia.
15192 (anddi3, iordi3, xordi3): Adjust constraints.
15193 (zero_extendhidi2, zero_extendqidi2): New.
15194 (extendsidi2, extendhidi2, extendqidi2): New.
15195 (push, pop, push_e, push_fpul, push_4): Disable on SH5.
15196 (pop_e, pop_fpul, pop_4): Likewise.
15197 (movsi_media): Support FP and BT registers.
15198 (movsi_media_nofpu): New. Adjust splits to DImode.
15199 (lduw, ldub): Renamed to zero_extend* above.
15200 (movqi_media): Fix typo.
15201 (movdi_media): Support FP and BT registers.
15202 (movdi_media_nofpu): New. Adjust splits for SHmedia32.
15203 (movdi_const_32bit): New.
15204 (shori_media): Require immediate operand. Use `u' for output.
15205 (movdf_media, movsf_media): Simplified.
15206 (movdf_media_nofpu, movsf_media_nofpu): New.
15207 (movdf, movsf): Adjust
15208 (movv2sf, movv2sf, movv16sf): New.
15209 (beq_media, beq_media_i): Adjust constraints. Don't use
15210 scratch BT register.
15211 (bne_media, bne_media_i): Likewise.
15212 (bgt_media, bgt_media_i): Likewise.
15213 (bge_media, bge_media_i): Likewise.
15214 (bgtu_media, bgtu_media_i): Likewise.
15215 (bgeu_media, bgeu_media_i): Likewise.
15216 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
15217 bunordered): Emit jump insn. Force operands to registers when
15219 (jump_media, jump): Simplify.
15220 (call_compact, call_compact_rettramp): New.
15221 (call_value_compact, call_value_compact_rettramp): New.
15222 (call_media, call_value_media): Simplify.
15223 (sibcall_compact, sibcall_media): New.
15224 (call, call_value): Adjust for SHmedia and SHcompact.
15225 (sibcall, sibcall_value, untyped_call): Likewise.
15226 (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
15227 (indirect_jump): Adjust for SHmedia.
15228 (casesi_jump_media): New.
15229 (nop): Re-enable for SHmedia.
15230 (call_site): Restrict to SH1.
15231 (casesi): Adjust for SHmedia.
15232 (casesi_shift_media, casesi_load_media): New.
15233 (return): Explicitly use PR register. Call return trampoline
15235 (return_i): Explicitly use PR register.
15236 (shcompact_return_tramp, shcompact_return_tramp_i): New.
15237 (return_media): Adjust.
15238 (shcompact_incoming_args): New.
15239 (epilogue): Adjust.
15240 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
15241 (movstrsi): Disable on SH5.
15242 (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
15243 (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
15244 (subsf3, subsf3_media): Likewise.
15245 (mulsf3, mulsf3_media, mac_media): Likewise.
15246 (divsf3, divsf3_media): Likewise.
15247 (floatdisf2, floatsisf2_media): Likewise. Adjust constraints.
15248 (floatsisf2, fux_truncsfsi2): Likewise.
15249 (fix_truncsfdi2, fix_truncsfsi2_media): Likewise. Adjust
15251 (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
15252 (cmpunsf_media, cmpsf): Likewise.
15253 (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
15254 (abssf2, abssf2_media): Likewise.
15255 (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
15256 (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
15257 (floatdidf2, floatsidf2_media): Likewise. Adjust constraints.
15258 (floatsidf2, fix_truncdfsi2): Likewise.
15259 (fix_truncdfdi2, fix_truncdfsi2_media): Likewise. Adjust
15261 (cmpeqdf_media, cmpgtdf_media): Likewise.
15262 (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
15263 (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
15264 (absdf2, absdf2_media): Likewise.
15265 (extendsfdf2, extendsfdf2_media): Likewise.
15266 (truncsfdf2, truncsfdf2_media): Likewise.
15267 * config/sh/sh64.h: New file.
15268 * config/sh/t-sh64: New file.
15269 * config/sh/shmedia.h: New file.
15270 * config/sh/ushmedia.h: New file.
15271 * config/sh/sshmedia.h: New file.
15272 * configure.in: Added sh64-*-elf.
15273 * configure: Rebuilt.
15274 2000-10-10 Alexandre Oliva <aoliva@redhat.com>
15275 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
15276 (reg_class_from_letter): Use `b' for TARGET_REGS.
15277 (print_operand): Support `%M', `%m', `AND' and
15278 `ASHIFTRT'. Do not precede constants with `#' on SHmedia.
15279 (andcosts): Adjust for SHmedia.
15280 (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
15282 (target_reg_operand): New function.
15283 * config/sh/sh-protos.h (target_reg_operand): Declare.
15284 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
15285 FP registers on SH5.
15286 (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
15288 (TARGET_REGISTER_P): New macro.
15289 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
15290 (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
15291 (EXTRA_CONSTRAINT_S): New macro.
15292 (EXTRA_CONSTRAINT): Adjust.
15293 (FLOAT_TYPE_SIZE): Define to 32.
15294 (Pmode): DImode on SHmedia.
15295 (CONST_COSTS): Adjust for SHmedia literals.
15296 (PREDICATE_CODES): Added target_reg_operand.
15297 (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
15298 * config/sh/sh.md: Remove all attrs from SHmedia insns.
15299 (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
15300 (cmpdi): Accept SHmedia.
15301 (movdicc_false, movdicc_true): New insns.
15302 (movdicc): New expand.
15303 (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
15305 (addsi3_media): Match `S' constraint.
15306 (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
15307 (negdi2): Expand for SHmedia.
15308 (one_cmpldi2): New expand.
15309 (zero_extendsidi2): Change from expand to insn.
15310 (extendsidi2): Add constraints.
15311 (movdi_media, movsi_media): Change `%x' to `%M'. Use `%m' for
15312 LD/ST address. Fix SI immediate loading split.
15313 (movhi_media, movqi_media, lduw, ldub): New insns.
15314 (movhi, movqi): Accept SHmedia.
15315 (shori_media, movdi_media): Relax input constraints. Split
15316 symbolic constants.
15317 (movdf_media, movsf_media): New insn. New split to movdi.
15318 (movdf, movsf): Match on SHmedia.
15319 (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
15320 bgeu_media): New insns and splits. New insns with `_i' suffix.
15321 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
15322 (bunordered): New expand.
15323 (jump_compact): Renamed from `jump'.
15324 (jump_media): New insn.
15325 (jump): New expand.
15326 (call_media, call_value_media): New insns.
15327 (call, call_value): Adjust.
15328 (indirect_jump_compact): Renamed from `indirect_jump'.
15329 (indirect_jump_media): New insn.
15330 (indirect_jump): New expand.
15331 (untyped_call, return): Accept SHmedia.
15332 (return_media): New insn.
15333 (prologue, epilogue, blockage): Accept SHmedia.
15334 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
15335 (sunordered): New expand.
15336 (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
15337 cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
15338 (addsf3_media, subsf3_media, mulsf3_media, mac_media,
15339 divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
15340 fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
15341 cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
15342 abssf2_media): New insns.
15343 (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
15344 cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
15345 (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
15346 floatdidf2, floatsidf2_media, fix_truncdfdi2,
15347 fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
15348 cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
15349 absdf2_media): New insns.
15350 (extendsfdf2, truncdfsf2): Adjust for SHmedia.
15351 (extendsfdf2_media, truncdfsf2_media): New insns.
15352 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
15353 * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
15354 * config/sh/sh.h (CONST_OK_FOR_J): Document.
15355 (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
15356 * config/sh/sh.md (adddi3): New expand.
15357 (adddi3_media, adddi3z_media): New insns.
15358 (adddi3_compact): Renamed from adddi3.
15359 (addsi3_media): Use add.l r63 to add constant zero.
15360 (subdi3): New expand.
15361 (subdi3_media): New insn.
15362 (subdi3_compact): Renamed from subdi3.
15363 (mulsidi3): New expand.
15364 (mulsidi3_media): New insn.
15365 (mulsidi3_compact): Renamed from mulsidi3.
15366 (umulsidi3): New expand.
15367 (umulsidi3_media): New insn.
15368 (umulsidi3_compact): Renamed from umulsidi3.
15369 (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
15370 (ashlsi3, ashrsi3, lshrsi3): Use them.
15371 (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
15372 (ashldi3, ashrdi3, lshrdi3): Use them.
15373 (zero_extendsidi2): New expand.
15374 (extendsidi2): New insn.
15375 (movsi_media): New insn. Split to movdi to load constants.
15376 (movsi): Enable for shmedia.
15377 (movdi_media): New insn. Use shori_media to load wide constants.
15378 (short_media): New insn.
15379 (movdi): Enable for shmedia.
15380 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
15381 * config/sh/sh.h (CPP_SPEC): Added `m5'.
15382 (SUBTARGET_CPP_SPEC): Added `!m5'.
15383 (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
15384 (TARGET_SWITCHES): Added `5' and `5-compact'. Added SH1_BIT
15385 to all other SH variants.
15386 (TARGET_DEFAULT): Set to SH1_BIT.
15387 (OVERRIDE_OPTIONS): Recognize sh5 CPU.
15388 (BITS_PER_WORD): Raise to 64 on shmedia.
15389 (MAX_BITS_PER_WORD): Change to 64.
15390 (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
15391 (INT_TYPE_SIZE): Keep as 32.
15392 (UNITS_PER_WORD): Raise to 8 on shmedia.
15393 (MIN_UNITS_PER_WORD): Keep as 4.
15394 (POINTER_SIZE): Raise to 64 on shmedia.
15395 (CONST_OK_FOR_J): New macro.
15396 (CONST_OK_FOR_LETTER_P): Use it.
15397 (processor_type): Add PROCESSOR_SH5.
15398 * config/sh/sh.md: Conditionalize all expands, insns and
15399 splits to TARGET_SH1.
15401 (addsi3_compact): Renamed from...
15402 (addsi3): Now an expand.
15403 (addsi3_media, subsi3_media): New insns.
15404 (subsi3): Don't negate constants with SHmedia.
15406 * hooks.c: New file.
15407 * hooks.h: New file.
15408 * Makefile.in (HOOKS_H): New.
15409 (TARGET_DEF_H): Added $(HOOKS_H).
15410 (OBJS): Added hooks.o.
15411 (cfgcleanup.o, bb-reorder.o): Added target.h.
15412 (hooks.o): Added dependencies.
15413 * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
15414 (TARGET_INITIALIZER): this.
15415 * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
15416 * target.h (struct gcc_target): Added cannot_modify_jumps_p.
15417 * bb-reorder.c: Include target.h.
15418 (reorder_basic_blocks): Skip if cannot modify jumps.
15419 * cfgcleanup.c: Include target.h.
15420 (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
15422 2002-02-08 Chris Demetriou <cgd@broadcom.com>
15424 * config/mips/mips.md (casesi_internal, casesi_internal_di):
15425 Protect jump delay slot instructions with .set noreorder and
15428 2002-02-08 Chris Demetriou <cgd@broadcom.com>
15430 * config/mips/mips.md (casesi_internal_di): Calculate
15431 the index into the target offset table correctly.
15433 2002-02-08 Richard Henderson <rth@redhat.com>
15435 * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
15436 * final.c (output_addr_const): Accept and discard SUBREG.
15437 * varasm.c (decode_addr_const): Don't abort on unknown expressions --
15438 mark them unknown instead.
15439 (simplify_subtraction): Handle RTX_UNKNOWN.
15440 (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
15442 2002-02-08 David Edelsohn <edelsohn@gnu.org>
15444 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
15446 2002-02-08 Richard Henderson <rth@redhat.com>
15448 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
15450 2002-02-08 Andreas Jaeger <aj@suse.de>
15452 * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
15453 * config/i386/t-linux64: New file.
15455 2002-02-08 Jakub Jelinek <jakub@redhat.com>
15457 * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
15458 * c-parse.in (compstmt): Clear last_expr_type.
15460 2002-02-07 Richard Henderson <rth@redhat.com>
15462 * loop.c (strength_reduce): Sink final_value when not
15465 2002-02-07 David O'Brien <obrien@FreeBSD.org>
15467 * config/sparc/freebsd.h: Fix mismatched spec {.
15469 2002-02-07 Richard Henderson <rth@redhat.com>
15471 * cfgrtl.c: Include recog.h and insn-config.h.
15472 (keep_with_call_p): Fix general_operand invocation.
15473 * Makefile.in (cfgrtl.o): Update dependencies.
15475 2002-02-07 Kazu Hirata <kazu@hxi.com>
15477 * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
15478 comment. Accept HImode only if TARGET_H8300.
15480 2002-02-07 Eric Christopher <echristo@redhat.com>
15482 * config/mips/crtn.asm: Cleanup #ifdefs.
15484 2002-02-07 Eric Christopher <echristo@redhat.com>
15486 * config/mips/crti.asm: Add changes for mips16. mips16 uses
15487 register 7 as RA instead of $31.
15488 * config/mips/crtn.asm: Ditto.
15489 * config/mips/mips.c (mips_move_2words): Add case for
15490 TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
15491 (compute_frame_size): Fix typo.
15492 (save_restore_insns): Ditto. Make documentation about using
15493 register $7 as return register more precise.
15494 (mips_expand_epilogue): Fix comment. Add code to work around not
15495 being able to add to the stack pointer directly.
15496 * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
15497 to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
15500 2002-02-07 Tom Rix <trix@redhat.com>
15502 * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
15503 immediates in ldu and stdu DS opcode field.
15504 * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
15505 * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
15506 * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
15508 2002-02-07 Jeff Sturm <jsturm@one-point.com>
15510 * config/sparc/sparc.c (compute_frame_size): Don't correct frame
15511 offset for stack bias.
15513 2002-02-07 H.J. Lu <hjl@gnu.org>
15515 * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
15517 2002-02-07 Ulrich Weigand <uweigand@de.ibm.com>
15519 * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
15521 Thu Feb 7 12:14:17 CET 2002 Jan Hubicka <jh@suse.cz>
15523 * i386-protos.h (x86_order_regs_for_local_alloc): Declare
15524 * i386.c (x86_order_regs_for_local_alloc): New global function.
15525 * i386.h (REG_ALLOC_ORDER): CLeanup.
15526 (ORDER_REGS_FOR_LOCAL_ALLOC): New.
15528 2002-02-07 Richard Henderson <rth@redhat.com>
15530 PR optimization/2463
15531 * alias.c (find_base_value): Recall base values for fixed hard regs.
15532 * loop.c (loop_regs_update): Don't use single_set on non-insns.
15534 2002-02-07 Alexandre Oliva <aoliva@redhat.com>
15536 * config/mips/mips.md (define_delay) [mips16]: Adjust required
15539 2002-02-06 Richard Henderson <rth@redhat.com>
15542 * stmt.c (resolve_operand_name_1): Take more care with mixed
15543 named and unnamed operands.
15545 2002-02-06 Janis Johnson <janis187@us.ibm.com>
15546 Jan Hubicka <jh@suse.cz>
15548 * loop.c (remove_constant_addition): Avoid clobbering a shared
15551 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
15553 * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
15554 * config/s390/t-linux64: New file.
15555 * config/s390/libgcc-glibc.ver: New file.
15557 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
15559 * config/s390/linux64.h: Delete file.
15560 * config/s390/s390x.h: New file.
15561 * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
15562 as target header file.
15563 * config/s390/linux.h (TARGET_VERSION): Define depending on
15564 DEFAULT_TARGET_64BIT.
15565 (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
15566 (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
15567 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
15568 (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
15569 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
15570 (EXTRA_SPEC): New define.
15571 * config/s390/s390.h (TARGET_VERSION): Define depending on
15572 DEFAULT_TARGET_64BIT.
15573 (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
15575 2002-02-06 Jason Merrill <jason@redhat.com>
15577 * c-decl.c (finish_function): Warn about a non-void function with
15578 no return statement and no abnormal exit.
15579 (current_function_returns_abnormally): New variable.
15580 (start_function): Clear it.
15581 (struct c_language_function): Add returns_abnormally.
15582 (push_c_function_context): Save it.
15583 (pop_c_function_context): Restore it.
15584 (builtin_function): Set TREE_THIS_VOLATILE on return fns.
15585 (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
15586 an explicit return type.
15587 * c-tree.h: Declare current_function_returns_abnormally.
15588 (C_FUNCTION_IMPLICIT_INT): New macro.
15589 * c-typeck.c (build_function_call): Set it.
15590 (c_expand_return): Set current_function_returns_value even if the
15591 value is erroneous.
15593 2002-02-06 Jakub Jelinek <jakub@redhat.com>
15596 * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
15597 unsafe for reevaluation.
15599 2002-02-06 Jakub Jelinek <jakub@redhat.com>
15602 * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
15603 EXPR_STMT, but COMPOUND_STMT, recurse into it.
15605 2002-02-06 Richard Henderson <rth@redhat.com>
15607 * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
15608 be a general_operand. Dest for function value must be a pseudo.
15610 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
15612 * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
15613 as SYMBOL_REFs from the constant pool.
15615 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
15617 * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
15618 passed by invisible reference.
15620 2002-02-05 Richard Henderson <rth@redhat.com>
15622 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
15624 2002-02-06 Hans-Peter Nilsson <hp@bitrange.com>
15626 Implement using "base addresses" in insn operands as default.
15627 * config/mmix/mmix.c (mmix_conditional_register_usage): if
15628 -mabi=gnu, modify fixed_regs to fit the GNU ABI.
15629 (mmix_extra_constraint): Use 'R' to indicate that GETA should be
15630 used to read the rtx value.
15631 (mmix_target_asm_function_epilogue): Fix spacing.
15632 (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
15633 (mmix_legitimate_address): Ditto.
15634 (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
15635 should be loaded with a GETA insn. Don't allocate needless extra
15636 char for nul termination and fix misleading comment.
15637 (mmix_print_operand_address): Handle constants if
15638 TARGET_BASE_ADDRESSES.
15639 (mmix_output_register_setting): Use base addressing if
15640 TARGET_BASE_ADDRESSES and the number of insns is 3.
15641 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
15642 * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
15643 to use R as constraint, add LDA to match s.
15644 * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
15645 (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
15646 (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
15647 (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
15648 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
15649 order with other fixed registers.
15650 (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
15651 other parameter/call-clobbered registers.
15652 * doc/invoke.texi (Option Summary) <MMIX Options>: Add
15653 -mbase-addresses, -mno-base-addresses.
15654 (MMIX Options): Ditto.
15656 2002-02-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
15658 * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
15660 2002-02-06 Aldy Hernandez <aldyh@redhat.com>
15662 * config/rs6000/altivec.h: Change elem to _S_elem.
15664 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
15666 * config/netbsd.h (WCHAR_TYPE): Define.
15667 (WCHAR_TYPE_SIZE): Ditto.
15668 (WINT_TYPE): Ditto.
15669 * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
15670 (WCHAR_UNSIGNED): Ditto.
15671 (WCHAR_TYPE_SIZE): Ditto.
15672 (WINT_TYPE): Ditto.
15673 * config/arm/netbsd.h: Likewise.
15674 * config/i386/netbsd-elf.h: Likewise.
15675 * config/i386/netbsd.h: Likewise.
15676 * config/m68k/netbsd-elf.h: Likewise.
15677 * config/m68k/netbsd.h: Likewise.
15678 * config/ns32k/netbsd.h: Likewise.
15679 * config/sparc/netbsd.h: Likewise.
15680 * config/vax/netbsd.: Likewise.
15682 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
15684 * target.h (struct gcc_target): Added ms_bitfield_layout_p.
15685 * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New. Added to...
15686 (TARGET_INITIALIZER): this.
15687 * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
15688 (BITFIELD_NBYTES_LIMITED): Markup fix.
15689 * tree.h (default_ms_bitfield_layout_p): Declare.
15690 (record_layout_info): Added prev_field.
15691 * tree.c (default_ms_bitfield_layout_p): New fn.
15692 * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
15693 PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
15694 * stor-layout.c: Include target.h.
15695 (start_record_layout): Initialize prev_field.
15696 (place_field): Handle MS bit-field layout, and disregard
15697 EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
15698 PCC_BITFIELD_TYPE_MATTERS in this case. Update prev_field.
15699 * Makefile.in (stor-layout.o): Adjust dependencies.
15701 2002-02-05 Jason Merrill <jason@redhat.com>
15703 * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
15705 2002-02-05 Andreas Jaeger <aj@suse.de>
15707 * crtstuff.c: Fix comments.
15709 2002-02-05 Richard Henderson <rth@redhat.com>
15712 * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
15713 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
15716 * config/mips/mips.c (function_arg): Handle TImode.
15717 (function_arg_advance): Likewise.
15719 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
15721 * config/rs6000/altivec.h (vec_step_help): Rename to
15724 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
15726 * config/rs6000/altivec.h: Fix typos.
15728 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
15730 * config/arm/netbsd.h: Correct a comment.
15732 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
15734 * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
15735 building void typed builtins.
15737 * config/rs6000/altivec.h (vec_ld*): Fix typos.
15738 (vec_step): Implement for C++.
15740 Mon Feb 4 19:23:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15742 * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
15744 2002-02-04 Richard Henderson <rth@redhat.com>
15746 * combine.c (nonzero_bits): Re-introduce special case for
15747 sp/fp/ap wrt REGNO_POINTER_ALIGN.
15749 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
15751 * doc/extend.texi: Warn about unsupported usage of altivec
15754 * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
15755 (altivec_predicate_*): New.
15757 * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
15758 Add C++ version of vec_*() functions.
15760 * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
15761 (bdesc_2arg): Remove altivec predicates.
15762 (altivec_expand_builtin): Handle predicates.
15763 (altivec_init_builtins): Handle predicates.
15764 (altivec_expand_predicate_builtin): New.
15766 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
15768 * pa.c (DO_FRAME_NOTES): Move forward.
15769 (store_reg): Revise handling of frame notes.
15770 (load_reg): Likewise.
15771 (set_reg_plus_d): Likewise.
15772 (hppa_expand_prologue): Likewise.
15773 (hppa_expand_epilogue): Likewise.
15775 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
15777 * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
15779 2002-02-04 Jakub Jelinek <jakub@redhat.com>
15781 PR c/4475, c++/3780:
15782 * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
15783 * c-common.h (SWITCH_TYPE): Define.
15784 * c-typeck.c (c_start_case): Set SWITCH_TYPE.
15785 * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
15786 Rename spareness variable to sparseness.
15787 (expand_end_case_type): Renamed from expand_end_case, use orig_type
15788 if non-NULL instead of TREE_TYPE (orig_index).
15789 * tree.h (expand_end_case_type): Renamed from expand_end_case.
15790 (expand_end_case): Define using expand_end_case_type.
15791 * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
15792 to expand_end_case_type.
15793 * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
15795 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
15797 * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
15798 (BIGGEST_ALIGNMENT): Change to 128.
15800 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
15802 * pa32-linux.h (LINK_COMMAND_SPEC): Define.
15804 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
15806 * pa.md (call_internal_reg_64bit): Remove unused variable.
15808 2002-02-04 Nick Clifton <nickc@cambridge.redhat.com>
15810 * config/arm/arm.h (machine_function): Add uses_anonymous_args
15812 (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
15813 * config/arm/arm.c (current_function_anonymous_args): Delete,
15814 replace uses with cfun->machine->uses_anonymous_args.
15815 (arm_reorg): Do not reset uses_anonymous_args.
15817 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
15818 any geenral register.
15820 2001-02-04 Bernd Schmidt <bernds@redhat.com>s
15822 * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
15825 2002-02-04 Richard Henderson <rth@redhat.com>
15827 * combine.c (force_to_mode): Remove STACK_BIAS code.
15828 (nonzero_bits): Likewise. Replace sp/fp special case with
15829 REGNO_POINTER_ALIGN.
15831 * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
15832 (HARD_FRAME_POINTER_REGNUM): New.
15833 (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
15834 (FIXED_REGS, CALL_USED_REGS): Update.
15835 (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
15836 (CONDITIONAL_REGISTER_USAGE): Update for HFP.
15837 (HARD_REGNO_NREGS): Update for SFP.
15838 (STACK_POINTER_OFFSET): Include bias here ...
15839 (FIRST_PARM_OFFSET): ... not here.
15840 (STACK_BIAS): Remove.
15841 (INIT_EXPANDERS): New.
15842 (STARTING_FRAME_OFFSET): Do not include bias.
15843 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
15844 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
15845 (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
15846 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
15847 * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
15848 * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
15849 (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
15850 (MUST_SAVE_REGISTER): Likewise.
15851 (sparc_flat_function_prologue): Likewise.
15852 (sparc_flat_function_epilogue): Likewise.
15853 (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
15854 (sparc_init_modes): SFP is GENERAL_REGS.
15855 (sparc_builtin_saveregs): SFP does not have bias applied.
15857 2002-02-04 Richard Henderson <rth@redhat.com>
15859 * config/alpha/alpha.c (current_function_is_thunk): Don't check
15860 current_function_is_thunk.
15861 (alpha_sa_mask): Distinguish between current_function_is_thunk
15862 called from ASM_OUTPUT_MI_THUNK and not.
15863 (alpha_does_function_need_gp): Thunks always need gp.
15864 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
15865 (alpha_output_mi_thunk_osf): New.
15866 * config/alpha/alpha-protos.h: Update.
15867 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
15869 2002-02-04 Richard Sandiford <rsandifo@redhat.com>
15871 * c-typeck.c (build_c_cast): Warn when qualifiers are added to
15872 function types, not when they're taken away.
15874 Mon Feb 4 09:05:58 2002 Jeffrey A Law (law@redhat.com)
15876 * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
15877 CODE_LABEL and jump table when replacing a table jump with a
15880 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
15882 * config/s390/s390-protos.h (legitimize_la_operand,
15883 s390_secondary_input_reload_class, s390_plus_operand,
15884 s390_expand_plus_operand): Add prototypes.
15886 config/s390/s390.c (s390_secondary_input_reload_class,
15887 s390_plus_operand, s390_expand_plus_operand): New functions.
15889 (struct s390_address): New member 'pointer'.
15890 (s390_decompose_address): Compute it.
15891 (legitimate_la_operand_p): Use it.
15892 (legitimize_la_operand): New function.
15893 (movti, movdi, movdf splitters): Call it.
15895 config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
15896 (PREDICATE_CODES): Add s390_plus_operand.
15898 config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
15899 (la_ccclobber): Allow GENERAL_REGS as output operand.
15901 (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
15902 *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
15903 (*la_64, *la_31, reload_indi, reload_insi): ... these.
15905 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
15907 * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
15908 register names for regular asm () construct.
15910 2002-02-04 Jakub Jelinek <jakub@redhat.com>
15912 * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
15915 2002-02-04 Jakub Jelinek <jakub@redhat.com>
15917 * combine.c (recog_for_combine): Create a dummy insn with PATTERN
15920 2002-02-04 Hartmut Penner <hpenner@de.ibm.com>
15922 * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
15923 constant pool to be identical by string address and index.
15925 2002-02-04 Anthony Green <green@redhat.com>
15927 * output.h (SECTION_OVERRIDE): Define.
15928 * varasm.c (named_section): Obey SECTION_OVERRIDE.
15930 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
15932 * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
15933 by existing arm*-*-netbsd* (a.out) target.
15934 (ns32k-*-netbsdelf*): Likewise.
15935 (sparc-*-netbsdelf*): Likewise.
15936 (vax-*-netbsdelf*): Likewise.
15938 2002-02-03 Danny Smith <dannysmith@users.sourceforge.net>
15940 * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
15941 headers and libobjc headers.
15943 2002-02-03 Mumit Khan <khan@nanotech.wisc.edu>
15945 * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
15946 (_mingw.h): Remove duplicate include.
15948 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
15950 * config.gcc: Set cpu_type to m68k for 68010, as well.
15951 (m68010-*-netbsdelf*): New...
15952 (m68k*-*-netbsdelf*): ...targets.
15953 * config/m68k/netbsd-elf.h: New file.
15955 2002-02-02 Kazu Hirata <kazu@hxi.com>
15957 * config/h8300/h8300.c (hand_list): Move inside function_arg.
15959 2002-02-02 Kazu Hirata <kazu@hxi.com>
15961 * config/h8300/h8300.c (h8_push_ops): Move inside
15963 (h8_pop_ops): Likewise.
15964 (h8_move_ops): Likewise.
15966 2002-02-02 Kazu Hirata <kazu@hxi.com>
15968 * config/h8300/h8300.c (os_task): Make it static.
15969 (monitor): Likewise.
15970 (pragma_saveall): Likewise.
15972 2002-02-02 Alexandre Oliva <aoliva@redhat.com>
15974 * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
15975 constant is a valid sign-extension for Pmode.
15977 2002-02-02 Kazu Hirata <kazu@hxi.com>
15979 * config/h8300/h8300.c: Fix formatting.
15981 2002-02-02 Kazu Hirata <kazu@hxi.com>
15983 * config/h8300/h8300.md: Fix formatting.
15985 2002-02-02 Kazu Hirata <kazu@hxi.com>
15987 * config/h8300/h8300.md (one_cmpl patterns): Tighten the
15988 predicates of operands[1]. Split the patterns for each
15991 2002-02-02 Kazu Hirata <kazu@hxi.com>
15993 * config/h8300/h8300.md (xor patterns): Tighten the predicates
15994 of operands[1] to register_operand.
15996 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
15998 * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
15999 * cpphash.c (_cpp_init_hashtable): Similarly.
16000 * cppinit.c (cpp_create_reader): Default the signed_char flag.
16001 (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
16002 (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
16003 (cpp_handle_option): Handle the new options.
16004 * cpplex.c (cpp_interpret_charconst): Use new flag.
16005 * cpplib.h (struct cpp_options): New member signed_char.
16006 * gcc.c (cpp_unique_options): Remove %c spec and documentation.
16007 (cpp_options): Handle -fsigned-char and -funsigned-char.
16008 (static_specs): Remove signed_char_spec.
16009 (do_spec1): Don't handle %c.
16010 * system.h: Poison SIGNED_CHAR_SPEC.
16011 * tradcif.y (yylex): Use flag_signed_char.
16012 * tradcpp.h (flag_signed_char): New.
16013 * tradcpp.c (flag_signed_char): New.
16014 (main): Handle new command-line options.
16015 (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
16017 * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
16018 * avr/avr.h: Remove old comments.
16019 * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
16020 (CC1_SPEC): Pass -fsigned-char if -mic*.
16021 (SIGNED_CHAR_SPEC): Remove.
16023 * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
16025 2002-02-01 Eric Christopher <echristo@redhat.com>
16027 From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
16028 * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
16029 * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
16030 (ASM_OUTPUT_REG_POP): Ditto.
16032 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
16034 * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
16037 2002-02-02 Jakub Jelinek <jakub@redhat.com>
16039 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
16041 2002-02-02 Jakub Jelinek <jakub@redhat.com>
16044 * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
16047 2002-02-01 Janis Johnson <janis187@us.ibm.com>
16049 * cfganal.c: Include tm_p.h.
16050 (keep_with_call_p): Fix the test that determines if a register holds
16051 the return value of a call.
16053 2002-02-01 DJ Delorie <dj@redhat.com>
16055 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
16056 we are given conflicting registers, switch to the other one we
16057 had allocated for us.
16058 * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
16059 as TImode so we know when the "other" register is available.
16061 2002-02-01 David O'Brien <obrien@FreeBSD.org>
16063 * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
16066 2002-02-01 Janis Johnson <janis187@us.ibm.com>
16068 * cfganal.c (keep_with_call_p): New function.
16069 (flow_call_edges_add): Prevent splitting a block between a call and
16070 a single-set instruction that should be kept in the same block.
16072 2002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
16074 * doc/install.texi (avr): Update outdated URL.
16076 2002-01-30 Andrew Haley <aph@cambridge.redhat.com>
16078 * config/stormy16/stormy16.md (pushqi): New.
16082 (movhi): Remove stack operands.
16084 * config/stormy16/stormy16.h (PREDICATE_CODES): Add
16085 nonimmediate_nonstack_operand.
16086 * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
16088 * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
16091 2002-01-31 Jason Merrill <jason@redhat.com>
16093 * Makefile.in (c-parse.c): Handle .output file.
16094 * objc/Make-lang.in (objc-parse.c): Likewise.
16096 2002-02-01 Alexandre Oliva <aoliva@redhat.com>
16098 * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
16099 the -me[lb] option is given. Don't output the default flag
16102 2002-01-31 Zack Weinberg <zack@codesourcery.com>
16104 * c-lex.c (yyparse): Call debug_hooks->start_source_file for
16105 the primary source file; this has not been done yet.
16106 * c-decl.c (c_expand_body): Reset input_filename from
16107 DECL_SOURCE_FILE (fndecl) before calling init_function_start.
16109 2002-01-31 Kazu Hirata <kazu@hxi.com>
16111 * rtlanal.c (subreg_regno_offset): Do not use
16112 SUBREG_REGNO_OFFSET.
16113 * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
16114 * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
16116 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
16118 * gccbug.in: Follow GNU Coding Standards for --version. Use GCC
16119 version rather than GNATS version in --version output.
16121 2002-01-31 Richard Sandiford <rsandifo@redhat.com>
16123 * ifcvt.c (noce_process_if_block): Make a copy of the destination
16124 when copying back from a temporary.
16126 2002-01-30 Richard Henderson <rth@redhat.com>
16128 * ifcvt.c (dead_or_predicable): Handling merging when other_bb
16129 and new_dest are the same.
16131 2002-01-30 Richard Henderson <rth@redhat.com>
16134 * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
16135 * rtl.c (note_insn_name): Update.
16136 * emit-rtl.c (remove_unnecessary_notes): Kill it.
16137 * stmt.c (expand_end_loop): Kill jump opt code. Use LOOP_END_TOP_COND
16138 to perform loop rotation.
16139 (expand_exit_loop_top_cond): New.
16140 * tree.h (expand_exit_loop_top_cond): Declare it.
16141 * c-semantics.c (genrtl_while_stmt): Use it.
16142 (genrtl_for_stmt): Likewise.
16144 2002-01-30 Alexandre Oliva <aoliva@redhat.com>
16146 * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
16147 arguments to 64-bit boundaries on 64-bit ABIs.
16149 2002-01-30 Steve Ellcey <sje@cup.hp.com>
16151 * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
16153 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
16155 * c-decl.c (grokdeclarator): Handle type being a typedef for an
16158 2002-01-30 David O'Brien <obrien@FreeBSD.org>
16160 * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
16161 * config/sparc/sparc_bi.h: Remove file.
16162 * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
16164 2002-01-30 Richard Henderson <rth@redhat.com>
16166 * sched-deps.c (sched_analyze): Make a call read the frame pointer.
16168 2002-01-30 Zack Weinberg <zack@codesourcery.com>
16170 * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
16172 2002-01-30 Jason Merrill <jason@redhat.com>
16174 * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
16175 (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
16176 (reg_save): Use DW_CFA_offset_extended_sf instead.
16178 * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
16180 2002-01-29 Jakub Jelinek <jakub@redhat.com>
16182 * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
16185 2002-01-29 Aldy Hernandez <aldyh@redhat.com>
16187 * rs6000.md ("*call_value_local32"): Remove constraints.
16188 ("*call_value_local64"): Same.
16189 ("*call_value_indirect_nonlocal_aix32"): Same.
16190 ("*call_value_nonlocal_aix32"): Same.
16191 ("*call_value_indirect_nonlocal_aix64"): Same.
16192 ("*call_value_nonlocal_aix64"): Same.
16193 ("*call_value_nonlocal_sysv"): Same.
16195 2002-01-29 Richard Henderson <rth@redhat.com>
16197 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
16199 2002-01-29 Richard Henderson <rth@redhat.com>
16201 * expr.c (force_operand): Ignore flag_pic for detecting pic
16203 * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
16204 for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
16205 * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
16206 instead of open-coded loop.
16207 * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
16208 be fixed when in use.
16210 2002-01-29 Richard Henderson <rth@redhat.com>
16212 * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
16213 * sched-rgn.c (propagate_deps): Update them.
16214 * sched-deps.c (sched_analyze_insn): Update them. Flush the
16215 clobbers list when either gets too long.
16217 2002-01-29 Jakub Jelinek <jakub@redhat.com>
16219 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
16220 and INDEX_REGS the same as GENERAL_REGS.
16221 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
16223 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
16225 * tree.c (build_nonstandard_integer_type): Correct prototype.
16227 2002-01-29 Ulrich Weigand <uweigand@de.ibm.com>
16229 * config/s390/s390.md (movstrsico, movstrdix_64,
16230 movstrsix_31): Remove, replace by ...
16231 (movstrdi_short, movstrsi_short, movstrdi_long,
16232 movstrsi_long): ... these. New.
16233 (movstrdi, movstrsi): Adapt.
16235 (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
16236 ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
16237 Remove unnecessary CC clobber.
16238 (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
16239 *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
16241 (divmoddi4): Don't partially initialize TImode register.
16243 2002-01-29 Geoffrey Keating <geoffk@redhat.com>
16245 * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
16247 2002-01-29 Richard Henderson <rth@redhat.com>
16249 * flow.c (print_rtl_and_abort): Remove.
16250 (print_rtl_and_abort_fcn): Remove.
16251 (verify_local_live_at_start): Use dump_bb instead.
16252 (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
16253 (verify_wide_reg_1): Return 2 on mode test failure.
16255 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
16257 PR c/3325, c/3326, c/2511, c/3347
16258 * c-decl.c (enum_decl_context): Remove BITFIELD.
16259 (grokdeclarator): Take bitfield width as an input.
16260 Ensure bitfields are given the correct type. Perform
16261 bitfield width validation with build_bitfield_integer_type
16262 rather than waiting for finish_struct.
16263 (grok_typename, grok_typename_in_parm_context, start_decl,
16264 push_parmdecl, grokfield, start_function): Update calls to
16266 (build_bitfield_integer_type): New function.
16267 (finish_struct): Move bitfield validation to grokdeclarator
16268 and build_bitfield_integer_type.
16269 * tree.c (build_nonstandard_integer_type): New function.
16270 * tree.h (build_nonstandard_integer_type): New prototype.
16272 * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
16274 2002-01-29 Jakub Jelinek <jakub@redhat.com>
16277 * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
16278 don't ignore unrecognized -W* options.
16279 (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
16280 * cpplib.h (cpp_handle_option): Adjust prototype.
16281 * c-decl.c (c_decode_options): Pass 0 as last argument to
16285 * gcc.c (cpp_unique_options): Split from cpp_options.
16286 (cpp_options): Source cpp_unique_options.
16287 (default_compilers): Use cpp_unique_options instead of cpp_options
16288 when used together with cc1_options.
16289 (static_specs): Add cpp_unique_options.
16290 * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
16291 when used together with cc1_options.
16293 2002-01-29 Kazu Hirata <kazu@hxi.com>
16295 * config/h8300/h8300-protos.h: Update the prototype of
16297 * config/h8300/h8300.c (output_a_shift): Remove an unused
16298 argument 'insn'. Remove redundant code.
16299 * config/h8300/h8300.md: Adust to the new prototype of
16302 2002-01-29 Kazu Hirata <kazu@hxi.com>
16304 * config/h8300/h8300-protos.h: Update the prototypes of
16305 emit_a_rotate and expand_a_rotate.
16306 * config/h8300/h8300.c (emit_a_rotate): Change the type of the
16307 first argument to 'enum rtx_code'.
16308 (expand_a_rotate): Likewise.
16310 2002-01-28 Kazu Hirata <kazu@hxi.com>
16312 * config/h8300/h8300-protos.h: Update the prototype of
16314 * config/h8300/h8300.c (output_simode_bld): Remove an argumen
16316 * config/h8300/h8300.md: Adjust to the new prototype.
16318 2002-01-28 Kazu Hirata <kazu@hxi.com>
16320 * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
16323 2002-01-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
16325 * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
16326 is a fixed register before returning pic_offset_table_rtx.
16327 * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
16328 when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
16330 2002-01-28 Jason Merrill <jason@redhat.com>
16332 * dwarf2.h: Sync with src version.
16334 2002-01-28 Paul Koning <pkoning@equallogic.com>
16336 * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
16337 BT_FN_VOID_PTR_VAR.
16338 * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
16339 * doc/extend.texi (__builtin_prefetch): Update documentation:
16340 first argument is now const void ptr.
16342 2002-01-28 Kazu Hirata <kazu@hxi.com>
16344 * config/h8300/h8300-protos.h: Remove an unused prototype.
16346 2002-01-28 Roman Zippel <zippel@linux-m68k.org>
16348 * toplev.c (lang_independent_init): Round up identifier size.
16350 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
16352 * config.gcc: Revert previous change.
16354 2002-01-28 Andris Pavenis <pavenis@latnet.lv>
16356 * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
16358 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
16360 * config.gcc (*-*-netbsdelf*): Set up generic parameters.
16361 (*-*-netbsd*): Always use collect2. Remove collect2 settings from
16362 other non-elf netbsd config frags.
16363 * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
16364 collect2 will does that.
16365 * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
16366 shared-lib frobbing will work.
16368 2002-01-28 Kazu Hirata <kazu@hxi.com>
16370 * config/h8300/h8300.h: Fix formatting.
16371 * config/h8300/h8300.md: Likewise.
16373 2002-01-28 Loren J. Rittle <ljrittle@acm.org>
16375 * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
16376 the old, removed AAA_standards fix.
16377 * fixinc/fixincl.x: Rebuilt.
16379 2002-01-28 Hans-Peter Nilsson <hp@axis.com>
16381 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
16382 atexit call in crtbegin, hooked in after call to frame_dummy;
16383 register EH before registering __fini__start.
16385 2002-01-28 Aldy Hernandez <aldyh@redhat.com>
16387 * config/rs6000/altivec.h: Remove spurious semicolons.
16389 2002-01-27 Kazu Hirata <kazu@hxi.com>
16391 * config/h8300/h8300.md: Replace dead bit extraction patterns
16392 with ones that work.
16394 Sun Jan 27 13:23:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16396 * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
16397 if not STRICT_ALIGNMENT.
16398 * rtl.h (MEM_ALIGN): Likewise.
16400 2002-01-27 Craig Rodrigues <rodrigc@gcc.gnu.org>
16402 * doc/invoke.texi (-fdump-translation-unit): Revert this
16403 patch: 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
16405 2002-01-27 Kazu Hirata <kazu@hxi.com>
16407 * config/h8300/h8300.md (define_constants): New.
16408 (anonymous patterns) Use defined constants appropriately.
16410 2002-01-27 Kazu Hirata <kazu@hxi.com>
16412 * config/h8300/h8300.c (function_arg): Remove redundant code.
16414 2002-01-26 Richard Henderson <rth@redhat.com>
16416 * sched-deps.c (reg_pending_uses_head): New.
16417 (reg_pending_barrier): Rename from reg_pending_sets_all.
16418 (find_insn_list): Don't mark inline.
16419 (find_insn_mem_list): Remove.
16420 (add_dependence_list, add_dependence_list_and_free): New.
16421 (flush_pending_lists): Replace only_write param with separate
16422 for_read and for_write parameters. Update all callers. Use
16423 add_dependence_list_and_free.
16424 (sched_analyze_1): Do not add reg dependencies here; just set
16425 the pending bits. Use add_dependence_list.
16426 (sched_analyze_2): Likewise.
16427 (sched_analyze_insn): Replace schedule_barrier_found with
16428 reg_pending_barrier. Add all dependencies for pending reg
16429 uses, sets, and clobbers.
16430 (sched_analyze): Don't add reg dependencies for calls, just
16431 set pending bits. Use regs_invalidated_by_call. Treat
16432 sched_before_next_call as a normal list, not a fake insn.
16433 (init_deps): No funny init for sched_before_next_call.
16434 (free_deps): Free pending mems lists. Don't zero reg_last.
16435 (init_deps_global): Init reg_pending_uses.
16436 (finish_deps_global): Free it.
16437 * sched-int.h (deps): Make in_post_call_group_p boolean. Update docs.
16438 (find_insn_mem_list): Remove.
16439 * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
16440 (propagate_deps): Use them. Zero temp mem lists.
16442 2002-01-26 Richard Henderson <rth@redhat.com>
16444 * Makefile.in (CRTSTUFF_CFLAGS): New.
16445 (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
16446 * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
16447 crtstuff.c instead of alpha assembly version.
16448 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
16449 entire dummy function sequence. Use FORCE_CODE_SECTION_ALIGN
16450 not FORCE_{INIT,FINI}_SECTION_ALIGN.
16451 (__do_global_dtors_aux): Mark used.
16452 (frame_dummy, __do_global_ctors_aux): Mark used.
16453 (fini_dummy, init_dummy): Remove.
16455 * config/alpha/crtbegin.asm: Remove file.
16456 * config/alpha/crtend.asm: Remove file.
16457 * config/alpha/t-crtbe: Remove file.
16458 * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
16459 (LINK_EH_SPEC): New.
16461 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
16462 FORCE_INIT_SECTION_ALIGN hack. Register __fini_start before
16463 calling constructors.
16464 * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
16466 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
16467 * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
16468 CRT_END_INIT_DUMMY hack.
16469 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
16470 FORCE_{INIT,FINI}_SECTION_ALIGN.
16472 * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
16473 FORCE_{INIT,FINI}_SECTION_ALIGN.
16475 * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
16476 invocation sequence.
16477 * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
16479 * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
16480 (FORCE_CODE_SECTION_ALIGN): New.
16482 2002-01-26 Richard Henderson <rth@redhat.com>
16484 * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
16486 2002-01-26 Richard Henderson <rth@redhat.com>
16488 * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
16489 (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
16491 2002-01-26 Kazu Hirata <kazu@hxi.com>
16493 * config/h8300/h8300.md: Remove bit extraction patterns that
16494 cannot be triggered.
16495 Restrict each bit extraction pattern to a variant on which the
16498 2002-01-26 Joseph S. Myers <jsm28@cam.ac.uk>
16500 * doc/include/texinfo.tex: Update to version 2002-01-04.07.
16502 2002-01-26 Kazu Hirata <kazu@hxi.com>
16504 * config/h8300/h8300.md: Remove bit test patterns that cannot
16506 Restrict each bit test pattern to a variant on which the
16509 2002-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16511 * builtins.c (expand_builtin_strncat): Remove redundant check for
16514 2002-01-25 David O'Brien <obrien@FreeBSD.org>
16516 * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
16518 * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
16521 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
16523 * dbxout.c (dbxout_init): Use assemble_name rather than just
16524 stripping off the first character.
16525 (dbxout_source_file): Likewise.
16527 2002-01-25 DJ Delorie <dj@redhat.com>
16529 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
16530 using rtx_equal_p, not by comparing pointers.
16532 2002-01-25 Steve Ellcey <sje@cup.hp.com>
16534 * emit-rtl.c (gen_rtx_REG): Always return the same rtx
16535 for PIC_OFFSET_TABLE_REGNUM.
16536 (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
16538 2002-01-25 David O'Brien <obrien@FreeBSD.org>
16540 * config.gcc (x86_64-*-freebsd*): New target.
16541 (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
16543 (i[34567]86-*-freebsd*): Don't include svr4.h.
16544 * config/i386/freebsd64.h: New file.
16546 2002-01-25 Douglas B Rupp <rupp@gnat.com>
16548 * config/alpha/x-vms (version): Make static.
16550 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
16551 in previous checkin.
16553 * Makefile.in (install-headers-cp): New target.
16554 * config.gcc (alpha-dec-*vms*): Install headers with
16557 Fri Jan 25 22:42:49 CET 2002 Jan Hubicka <jh@suse.cz>
16559 * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
16562 Fri Jan 25 08:26:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16564 * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
16565 of compare_tree_int.
16566 (expand_builtin_strncat): Likewise.
16567 * c-decl.c (finish_struct): Use tree_low_cst.
16568 * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
16569 * tree.c (compare_tree_int): Likewise.
16571 2002-01-25 Ulrich Weigand <uweigand@de.ibm.com>
16573 * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
16574 adjustments even if they are implemented by more than two insns.
16576 Fri Jan 25 20:43:56 CET 2002 Jan Hubicka <jh@suse.cz>
16578 * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
16579 * df.h (struct ref): Kill B.
16580 (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
16582 * basic-block.h (PROP_EQUAL_NOTES): New flag.
16583 * flow.c (propagate_one_insn): Use it.
16584 (mark_used_regs): Handle NIL.
16586 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
16588 * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
16591 2002-01-25 David Edelsohn <edelsohn@gnu.org>
16593 * rs6000.md (prefetch): Make address V4SI mode so that the address
16594 is restricted to legitimate form for instruction.
16596 2002-01-25 Bob Wilson <bob.wilson@acm.org>
16598 * doc/install.texi (xtensa-*-elf): New target.
16599 (xtensa-*-linux*): New target.
16600 * doc/contrib.texi: Add myself.
16602 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
16604 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
16605 purpose register to hold an SImode (or smaller) value.
16607 2002-01-25 Jakub Jelinek <jakub@redhat.com>
16609 * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
16611 * crtstuff.c: Likewise.
16613 2002-01-25 Kazu Hirata <kazu@hxi.com>
16615 * config/h8300/h8300.md (negation patterns): Tighten
16616 predicates to register_operand.
16618 2002-01-24 Aldy Hernandez <aldyh@redhat.com>
16620 * loop.c (emit_prefetch_instructions): Use the prefetch insn's
16623 * builtins.c (expand_builtin_prefetch): Same.
16625 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
16627 * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
16630 2002-01-24 Kazu Hirata <kazu@hxi.com>
16632 * config/h8300/h8300.c (print_operand): Remove support for
16633 operand character 'A'.
16634 * config/h8300/h8300.md (three anonymous patterns): Replace
16635 operand character 'A' with either 'T' or 'S'.
16637 2002-01-24 Kazu Hirata <kazu@hxi.com>
16639 * config/h8300/h8300.c (print_operand): Remove support for
16640 operand character 'U'.
16642 2002-01-24 Andris Pavenis <pavenis@latnet.lv>
16644 * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
16646 2002-01-24 Nick Clifton <nickc@cambridge.redhat.com>
16648 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
16649 values to be assigned to the stack pointer.
16651 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
16653 * emit_rtl.c (gen_lowpart_common): Conversion from const_int
16654 to const_double needs to be done right for big-endian systems.
16656 2002-01-24 Jason Merrill <jason@redhat.com>
16659 * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
16660 to can_throw_internal.
16662 2002-01-23 Richard Henderson <rth@redhat.com>
16664 * fold-const.c (fold): Change UINT_MAX test to check vs precision
16665 rather than TYPE_MAX_VALUE. Fix indentation and a bogus negation.
16667 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
16669 * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
16670 (symGOT2reg): Use them, then set as GOT value as unchanging.
16671 (symGOTOFF2reg): Set REG_EQUAL note. Use a different pseudo
16672 as a temporary, if possible.
16673 (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC. Emit
16674 sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
16676 2002-01-23 Kazu Hirata <kazu@hxi.com>
16678 * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
16679 accept to accept 0x80 as operands[2].
16681 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
16683 * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
16685 2002-01-23 Richard Henderson <rth@redhat.com>
16687 * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
16689 2002-01-23 Aldy Hernandez <aldyh@redhat.com>
16691 * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
16692 (parmlist_or_identifiers_1): Verify that only a parmlist follows
16695 2002-01-23 Richard Henderson <rth@redhat.com>
16697 * expr.c (move_by_pieces_1): Extend size before negation.
16699 * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
16700 (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
16701 (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
16702 * config/m68k/t-m68kelf: Likewise.
16704 2002-01-23 Bob Wilson <bob.wilson@acm.org>
16706 * config/xtensa/elf.h: New file.
16707 * config/xtensa/lib1funcs.asm: New file.
16708 * config/xtensa/lib2funcs.S: New file.
16709 * config/xtensa/linux.h: New file.
16710 * config/xtensa/t-xtensa: New file.
16711 * config/xtensa/xtensa-config.h: New file.
16712 * config/xtensa/xtensa-protos.h: New file.
16713 * config/xtensa/xtensa.c: New file.
16714 * config/xtensa/xtensa.h: New file.
16715 * config/xtensa/xtensa.md: New file.
16716 * config.gcc (xtensa-*-elf*): New target.
16717 (xtensa-*-linux*): New target.
16718 * cse.c (canon_hash): Compare rtx pointers instead of register
16719 numbers. This is required for the Xtensa port.
16720 * integrate.c (copy_insn_list): Handle case where the static
16721 chain is in memory and the memory address has to be copied to
16723 * doc/invoke.texi (Option Summary): Add Xtensa options.
16724 (Xtensa Options): New node.
16725 * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
16727 2002-01-23 Zack Weinberg <zack@codesourcery.com>
16729 * diagnostic.c (internal_error): Do ICE suppression only
16730 when ENABLE_CHECKING is not defined.
16732 * c-typeck.c (require_complete_type): Return error_mark_node
16733 if type is error_mark_node.
16735 2002-01-23 Janis Johnson <janis187@us.ibm.com>
16737 * toplev.c (process_options): Disable -fprefetch-loop-arrays with
16738 -Os and issue a warning.
16740 2002-01-23 Zack Weinberg <zack@codesourcery.com>
16742 * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
16743 current (lack of) need for host configuration by hand.
16745 * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
16746 references. Documentation of some target macros moved from
16747 hostconfig.texi to tm.texi.
16749 2002-01-23 Will Cohen <wcohen@redhat.com>
16751 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
16754 2002-01-23 Kazu Hirata <kazu@hxi.com>
16756 * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
16759 2002-01-23 Jason Merrill <jason@redhat.com>
16761 * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
16763 * function.c (assign_parms): Don't put args of inline functions
16764 into registers when not optimizing.
16766 2002-01-23 Nick Clifton <nickc@cambridge.redhat.com>
16768 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
16769 (prologue_use): New pattern.
16770 * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
16771 preference to gen_rtx_USE.
16772 (thumb_expand_prologue): Use gen_prologue_use in preference to
16774 (thumb_expand_epilogue): Use gen_prologue_use in preference to
16777 2002-01-23 Hans-Peter Nilsson <hp@bitrange.com>
16779 * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
16781 2002-01-23 Neil Booth <neil@daikokuya.demon.co.uk>
16784 * doc/extend.texi: Correct documentation of __alignof__.
16786 2002-01-22 Zack Weinberg <zack@codesourcery.com>
16788 * params.h: Rename arguments of DEFPARAM so that it will be
16789 recognized as a translation keyword.
16791 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
16793 * extend.texi: Document altivec functions.
16794 Fix N-bit adjectives in X86 builtin documentation.
16796 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
16798 * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
16799 auto_inc_dec values.
16801 2002-01-22 Richard Earnshaw <rearnsha@arm.com>
16803 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
16805 (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
16807 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
16809 * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
16811 2002-01-22 Richard Henderson <rth@redhat.com>
16813 * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
16814 copy_insn not copy_rtx.
16816 2002-01-23 Alan Modra <amodra@bigpond.net.au>
16818 * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
16819 "nonzero" as that might add "1" bits. Ensure "constop" is
16820 properly sign extened.
16821 (force_to_mode): Tweak for sign extended constop.
16823 2002-01-22 Richard Henderson <rth@redhat.com>
16825 * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
16826 for_each_rtx instead of assuming we're already looking at the MEM.
16827 (split_small_symbolic_mem_operand): Likewise.
16828 * config/alpha/alpha.h (PREDICATE_CODES): Update.
16829 * config/alpha/alpha.md (small symbolic memory splitters): Update.
16831 2002-01-22 Richard Henderson <rth@redhat.com>
16833 * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
16834 sequence number for the literal.
16835 (divmoddi_internal_er): Likewise.
16837 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
16840 * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
16841 in LIBICONV variable.
16842 * configure: Regenerated.
16844 2002-01-22 Krister Walfridsson <cato@df.lth.se>
16846 * dependence.c (build_def_use): Remove array_idx.
16848 * dwarfout.c (last_filename): Remove.
16849 (output_compile_unit_die): Remove last_filename.
16851 2002-01-22 Roger Sayle <roger@eyesopen.com>
16852 Richard Henderson <rth@redhat.com>
16855 * fold-const.c (fold): Optimize unsigned comparisons against
16856 UINT_MAX (and similar unsigned constants).
16858 2002-01-22 Janis Johnson <janis187@us.ibm.com>
16860 * Makefile.in (loop.o): Depend on OPTABS_H.
16861 * loop.c (emit_prefetch_instructions): Check the prefetch operand
16862 against the predicate.
16865 * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
16866 for the address operand.
16868 2002-01-22 Richard Henderson <rth@redhat.com>
16870 * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
16872 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
16875 * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
16876 preprocessor flags.
16878 2002-01-22 Jason Thorpe <thorpej@wasabisystems.com>
16880 * config.gcc (x86_64-*-netbsd*): New target.
16881 * config/i386/netbsd64.h: New file.
16883 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
16885 * regrename.c (kill_value): Fix typo.
16887 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
16889 * doc/tm.texi: Remove STARTING_FRAME_PHASE.
16891 * config/rs6000/rs6000.h: Same.
16893 * function.c (instantiate_virtual_regs): Remove
16894 STARTING_FRAME_PHASE.
16895 (assign_stack_local_1): Same.
16896 Calculate frame phase.
16898 2002-01-22 Nick Clifton <nickc@redhat.com>
16900 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
16901 variable declaration to outer scope in order to simplify
16903 (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
16904 arm_hard_regno_mode_ok.
16905 * config/arm/arm-protos.h: Add a prototype for
16906 arm_hard_regno_mode_ok.
16907 * config/arm/arm.c (soft_df_operand): Remove now redundant
16908 check for DImode values using IP_REGNUM.
16909 (nonimmediate_soft_df_operand): Remove now redundant check for
16910 DImode values using IP_REGNUM.
16911 (arm_hard_regno_mode_ok): New function. New check: make sure
16912 that DImode values are not stored in IP_REGNUM.
16914 * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
16916 (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
16918 2002-01-22 Jason Merrill <jason@redhat.com>
16920 * c-semantics.c (genrtl_compound_stmt): Only check nesting
16921 consistency if this COMPOUND_STMT is scoped.
16923 2002-01-22 Kazu Hirata <kazu@hxi.com>
16925 * predict.c: Fix formatting.
16926 * print-tree.c: Likewise.
16927 * protoize.c: Likewise.
16928 * real.h: Likewise.
16930 * sbitmap.h: Likewise.
16931 * scan.c: Likewise.
16932 * sched-deps.c: Likewise.
16933 * sched-vis.c: Likewise.
16934 * sdbout.c: Likewise.
16935 * sibcall.c: Likewise.
16937 * ssa-ccp.c: Likewise.
16938 * ssa-dce.c: Likewise.
16939 * stmt.c: Likewise.
16940 * stor-layout.c: Likewise.
16941 * system.h: Likewise.
16943 Tue Jan 22 06:26:33 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16945 * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
16946 if fits in bounds of base type.
16948 * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
16949 (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
16950 (add_bound_info, default): If can't find a context, make a
16952 (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
16954 2002-01-22 Hans-Peter Nilsson <hp@axis.com>
16956 * c-typeck.c (parser_build_binary_op): If result from
16957 build_binary_op is ERROR_MARK just return error_mark_node without
16958 further processing.
16960 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
16962 * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
16963 Split a.out-specific bits into...
16964 * config/netbsd-aout.h: ...this.
16965 * config/netbsd-elf.h: New file.
16966 * config/alpha/netbsd-elf.h: Remove.
16967 * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
16968 * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
16969 (STARTFILE_SPEC): Remove redundant definition.
16970 (ENDFILE_SPEC): Likewise.
16971 (LINK_SPEC): Likewise.
16972 (CPP_SPEC): Likewise.
16973 (ASM_SPEC): Likewise.
16974 (LIB_SPEC): Likewise.
16975 (SWITCH_TAKES_ARG): Likewise.
16976 (TARGET_MEM_FUNCTIONS): Likewise.
16977 (CPP_PREDEFINES): Redefine.
16978 (ASM_FINAL_SPEC): Remove redefinition.
16979 (ASM_COMMENT_START): Redefine.
16980 (FUNCTION_PROFILER): Define.
16981 (TARGET_VERSION): Redefine.
16982 Comment and formatting cleanup.
16983 * config/i386/netbsd.h: Include <netbsd-aout.h>.
16984 * config/m68k/netbsd.h: Include <netbsd-aout.h>.
16985 * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
16986 big- or little-endian.
16987 * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
16988 * config.gcc (*-*-netbsd*): Add definitions common to all
16990 (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
16991 gnu_ld definitions. Add netbsd-elf.h to and remove
16992 alpha/netbsd-elf.h from tm_file. Remove alpha/t-crtfm from
16993 tmake_file, and don't lose previous tmake_file contents.
16994 (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
16995 (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
16996 gnu_ld definitions. Add netbsd-elf.h to tm_file.
16997 (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
16998 (mipsel-*-netbsd*): Rename this to...
16999 (mips*-*-netbsd*): ...this. Add elfos.h to tm_file. Add
17000 mips/little.h to tm_file for mips*el-*.
17001 (powerpc-*-netbsd*): Remove redundant xm_defines definition.
17002 (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
17003 (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
17005 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
17007 * pa-protos.h (reg_before_reload_operand): New function prototype.
17008 * pa.c (reg_before_reload_operand): New function implementation.
17009 * pa.md (decrement_and_branch_until_zero, movb): Use it. Change "!*m"
17010 contraints to "*m".
17012 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
17014 * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
17016 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
17018 * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
17019 (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
17020 (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
17021 (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
17022 (ENDFILE_SPEC): Undefine.
17023 (STARTFILE_SPEC): Redefine for PA.
17025 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
17027 * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
17029 2002-01-21 Daniel Jacobowitz <drow@mvista.com>
17031 * config.gcc: Add entries to supported PowerPC --with-cpu
17034 2002-01-21 Jakub Jelinek <jakub@redhat.com>
17036 * config/i386/i386.c (ix86_function_arg_regno_p): Never return
17037 true for 64-bit mode only SSE registers in 32-bit mode.
17039 2002-01-21 Kazu Hirata <kazu@hxi.com>
17041 * unwind-dw2.c: Fix formatting.
17042 * unwind-dw2-fde.c: Likewise.
17043 * unwind-dw2-fde.h: Likewise.
17044 * unwind-pe.h: Likewise.
17045 * varasm.c: Likewise.
17046 * varray.h: Likewise.
17048 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
17050 Remove workaround for register stack overwrite bug in mmix.
17051 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
17052 support for TARGET_REG_STACK_FILL_BUG.
17053 * config/mmix/mmix.h: Remove member has_call_without_parameters.
17054 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
17056 (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
17057 (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
17058 -mno-reg-stack-fill-bug-workaround.
17059 * config/mmix/mmix.md ("call", "call_value"): Don't set struct
17060 machine member has_call_without_parameters.
17061 * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
17062 -mreg-stack-fill-bug-workaround and
17063 -mno-reg-stack-fill-bug-workaround.
17064 (MMIX Options): Ditto.
17066 2002-01-21 Kazu Hirata <kazu@hxi.com>
17068 * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
17070 Remove redundant code.
17072 2002-01-21 Joseph S. Myers <jsm28@cam.ac.uk>
17074 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
17075 config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
17076 config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
17077 config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
17078 config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
17079 out target macro definitions and non-target-specific comments
17080 mostly taken from old versions of the manual.
17082 2002-01-20 Kazu Hirata <kazu@hxi.com>
17084 * config/h8300/h8300.h: Fix comment formatting.
17085 * config/ia64/aix.h: Likewise.
17086 * config/ia64/ia64-protos.h: Likewise.
17087 * config/ia64/ia64.c: Likewise.
17088 * config/ia64/ia64.h: Likewise.
17089 * config/ia64/ia64intrin.h: Likewise.
17090 * config/ia64/linux.h: Likewise.
17091 * config/ia64/unwind-aix.c: Likewise.
17092 * config/ia64/unwind-ia64.c: Likewise.
17094 2002-01-20 Kazu Hirata <kazu@hxi.com>
17096 * config/h8300/h8300.c: Revise comments about shift code.
17098 2002-01-20 Kazu Hirata <kazu@hxi.com>
17100 * config/h8300/h8300.c (function_arg): Update a comment.
17102 2002-01-20 Kazu Hirata <kazu@hxi.com>
17104 * config/h8300/h8300.md: Update the comments at the beginning
17107 2002-01-20 Kazu Hirata <kazu@hxi.com>
17109 * config/i370/i370.c: Fix comment formatting.
17110 * config/i370/i370.h: Likewise.
17111 * config/i370/i370.md: Likewise.
17112 * config/i370/linux.h: Likewise.
17114 Sun Jan 20 18:40:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17116 * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
17118 * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
17119 (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
17120 in incomplete case.
17122 2002-01-20 Graham Stott <grahams@redhat.com>
17124 * cfgloop.c (flow_loop_preheader_scan): Fix typo.
17126 2002-01-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
17128 * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
17130 2002-01-19 Tom Rix <trix@redhat.com>
17132 * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
17134 2002-01-18 Aldy Hernandez <aldyh@redhat.com>
17136 * doc/tm.texi (STARTING_FRAME_PHASE): Document.
17138 * function.c (assign_stack_local_1): Adjust x_frame_offset with
17139 STARTING_FRAME_PHASE.
17140 (STARTING_FRAME_PHASE): New.
17141 (instantiate_virtual_regs): Check saneness of
17142 STARTING_FRAME_PHASE.
17144 * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
17146 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
17148 * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
17150 2002-01-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
17152 * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
17153 be used for bootstrapping GCC 3.0.
17155 2002-01-18 Kazu Hirata <kazu@hxi.com>
17157 * config/h8300/h8300.md: Fix an insn length.
17159 2002-01-18 Kazu Hirata <kazu@hxi.com>
17161 * bitmap.h: Fix comment formatting.
17162 * combine.c: Likewise.
17163 * cppfiles.c: Likewise.
17164 * c-pragma.h: Likewise.
17165 * c-typeck.c: Likewise.
17167 * dwarf2out.c: Likewise.
17168 * function.c: Likewise.
17170 * genattrtab.c: Likewise.
17171 * gthr-win32.h: Likewise.
17172 * haifa-sched.c: Likewise.
17173 * predict.c: Likewise.
17174 * rtlanal.c: Likewise.
17176 * unwind-dw2-fde.h: Likewise.
17177 * unwind-pe.h: Likewise.
17178 * vmsdbgout.c: Likewise.
17180 Thu Jan 17 15:28:26 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17182 * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
17183 if type_required and passed decl.
17185 2002-01-17 Aldy Hernandez <aldyh@redhat.com>
17187 * config.gcc (cpu_type): Include altivec.h in powerpc
17191 * config/rs6000/altivec.h: New.
17193 2002-01-17 David Edelsohn <edelsohn@gnu.org>
17195 * doc/install.texi (*-ibm-aix*): Update assembler and exception
17196 handling information.
17197 * doc/trouble.texi (Interoperation): Add libstdc++ information
17199 (Misunderstandings): Add template instantiation and static template
17200 member information for AIX.
17202 2002-01-17 Jason Merrill <jason@redhat.com>
17204 * dbxout.c (dbxout_type): Support const and volatile.
17206 * except.c (add_partial_entry): Remove backwards compatibility code.
17207 (end_protect_partials): Likewise.
17209 2002-01-17 Jakub Jelinek <jakub@redhat.com>
17211 * config/ia64/ia64.md (prologue_use): New.
17212 * config/ia64/ia64.c (ia64_expand_prologue): Use
17213 gen_prologue_use instead of gen_rtx_USE.
17214 (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
17215 as CODE_FOR_pred_rel_mutex.
17216 (ia64_sched_reorder2): Likewise.
17218 2002-01-16 Eric Christopher <echristo@redhat.com>
17220 * config/mips/r3900.h: Reformat.
17221 (SUBTARGET_CPP_SIZE_SPEC): Remove.
17222 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
17223 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
17224 (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
17225 * config/mips/t-elf: Remove mips3 multilib.
17227 2002-01-16 H.J. Lu <hjl@gnu.org>
17229 * config/mips/linux.h: Include "mips/abi64.h".
17231 2002-01-16 H.J. Lu <hjl@gnu.org>
17233 * config/mips/t-linux: New.
17235 * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
17237 * config/mips/linux.h: Don't include "gofast.h".
17238 (INIT_SUBTARGET_OPTABS): Removed.
17240 2002-01-16 Kazu Hirata <kazu@hxi.com>
17242 * config/h8300/h8300-protos.h: Replace emit_a_shift with
17244 * config/h8300/h8300.c: Likewise.
17245 * config/h8300/h8300.md: Likewise.
17247 2002-01-16 Kazu Hirata <kazu@hxi.com>
17249 * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
17250 spaces after an opcode name.
17251 (pushqi1_h8300hs): Likewise.
17252 (pushhi1_h8300hs): Likewise.
17254 2002-01-16 Kazu Hirata <kazu@hxi.com>
17256 * doc/extend.texi: Replace "option" with "attribute"
17259 2002-01-16 Jakub Jelinek <jakub@redhat.com>
17261 * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
17262 (and:DI () (const_int -8)).
17263 (split_small_symbolic_mem_operand): Split
17264 (mem (and:DI () (const_int -8)).
17266 2002-01-16 Jakub Jelinek <jakub@redhat.com>
17269 * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
17270 same way as TYPE_IMUL.
17271 (ultrasparc_sched_reorder): Likewise.
17272 * config/sparc/sparc.md (type): Add comment to update
17273 ultrasparc_sched_reorder when making changes.
17275 2002-01-16 Kazu Hirata <kazu@hxi.com>
17277 * doc/invoke.texi: Change the dump file name of block
17278 reordering pass from 28.bbro to 29.bbro.
17279 Mention -dk option.
17281 Wed Jan 16 17:54:22 CET 2002 Jan Hubicka <jh@suse.cz>
17283 * i386.md (minsf splitter): Fix pasto.
17285 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
17287 * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
17288 to frame pointer initialisation instruction.
17289 (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
17290 initialisation instruction.
17291 (soft_df_operand): Do not accept the IP register.
17292 (nonimmediate_soft_df_operand): Do not accept the IP register.
17294 2002-01-16 Jakub Jelinek <jakub@redhat.com>
17297 * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
17298 MASK_V8 being both set.
17300 2002-01-16 Ulrich Weigand <uweigand@de.ibm.com>
17302 * config/s390/s390.c (s390_emit_prologue): Do not emit USE
17303 insn for GOT register; add REG_MAYBE_DEAD notes instead.
17304 config/s390/s390.md (call, call_value): Add GOT register to
17305 CALL_INSN_FUNCTION_USAGE where needed.
17306 (call_exp, call_value_exp): New.
17308 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
17310 * config/arm/arm.c: General formatting tidy up.
17312 2002-01-16 Graham Stott <grahams@redhat.com>
17314 * calls.c (try_to_integrate): Use "(size_t)" intermediate
17315 cast and when casting an integer literal to "rtx" pointer.
17316 (expand_call): Likewise.
17317 * flow.c (try_pre_increment): Likewise.
17318 (find_use_as_address): Likewise.
17319 * integrate.c (expand_iline_function): Likewise.
17320 * regmove.c (try_auto_increment): Likewise.
17322 2002-01-16 Graham Stott <grahams@redhat.com>
17324 * sched-rgn.c (passed): Use sbitmap_free.
17325 (header): Likewise.
17327 (in_queue): Likewise.
17328 (in_stack): Likewise.
17330 2002-01-15 Eric Christopher <echristo@redhat.com>
17332 * flow.c (propagate_one_insn): Change to use fatal_insn.
17334 2002-01-15 Kazu Hirata <kazu@hxi.com>
17336 * expmed.c (extract_fixed_bit_field): Remove unused code.
17337 * system.h: Poison SLOW_ZERO_EXTEND.
17338 * doc/tm.texi: Remove.
17339 * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
17340 * config/arm/arm.h: Likewise.
17341 * config/avr/avr.h: Likewise.
17342 * config/clipper/clipper.h: Likewise.
17343 * config/convex/convex.h: Likewise.
17344 * config/d30v/d30v.h: Likewise.
17345 * config/dsp16xx/dsp16xx.h: Likewise.
17346 * config/elxsi/elxsi.h: Likewise.
17347 * config/fr30/fr30.h: Likewise.
17348 * config/h8300/h8300.h: Likewise.
17349 * config/i370/i370.h: Likewise.
17350 * config/i386/i386.h: Likewise.
17351 * config/m68k/m68k.h: Likewise.
17352 * config/mips/mips.h: Likewise.
17353 * config/ns32k/ns32k.h: Likewise.
17354 * config/pdp11/pdp11.h: Likewise.
17355 * config/pj/pj.h: Likewise.
17356 * config/s390/s390.h: Likewise.
17357 * config/sh/sh.h: Likewise.
17358 * config/stormy16/stormy16.h: Likewise.
17359 * config/v850/v850.h: Likewise.
17360 * config/vax/vax.h: Likewise.
17361 * config/we32k/we32k.h: Likewise.
17363 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
17365 * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
17366 (altivec_lvsl): Change constraint to b.
17367 (altivec_lvsr): Same.
17368 (altivec_lvebx): Same.
17369 (altivec_lvehx): Same.
17370 (altivec_lvewx): Same.
17371 (altivec_lvxl): Same.
17372 (altivec_lvx): Same.
17373 (altivec_stvx): Add parallel.
17374 (altivec_stvxl): Same.
17375 (altivec_stvehx): Same.
17376 (altivec_stvebx): Same.
17377 (altivec_stvebx): Same.
17379 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
17381 * config.gcc: Change altivec.h to altivec-defs.h.
17383 * config/rs6000/altivec.h: Delete.
17385 * config/rs6000/altivec-defs.h: Add.
17387 2002-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
17389 * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
17392 * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
17393 less than or equal to eight bytes.
17395 * vax.md (andsi3): Remove constraints and change SET destination
17396 operand type to nonimmediate_operand.
17397 (andhi3, andqi3): Likewise. Don't clear high order bits of operand 1
17398 when it is a CONST_INT.
17400 2002-01-15 Jason Merrill <jason@redhat.com>
17402 * c-common.def (FILE_STMT): New code.
17403 * c-common.c (statement_code_p): It's a statement.
17404 * c-common.h (stmt_tree_s): Add x_last_filename.
17405 (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
17406 (last_expr_filename): New macro.
17407 * c-semantics.c (begin_stmt_tree): Initialize it.
17408 (add_stmt): If the filename changed, also insert a
17410 (expand_stmt): Handle seeing one.
17412 2002-01-15 Eric Christopher <echristo@redhat.com>
17414 * flow.c (propagate_one_insn): Add error message and print out
17415 insn for debugging.
17417 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
17419 * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
17420 ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
17421 * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
17422 TRAMPOLINE_ALIGNMENT.
17423 * config/arm/arm.h, config/mcore/mcore.h: Likewise. Change value
17425 * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
17426 PCC_BITFIELD_TYPE_MATTERS.
17427 * config/interix.h (STDC_VALUE): Remove. Use
17428 STDC_0_IN_SYSTEM_HEADERS.
17429 * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
17430 (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
17431 ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
17433 2002-01-15 Craig Rodrigues <rodrigc@gcc.gnu.org>
17435 * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
17436 not work on this platform currently.
17438 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
17440 * c-typeck.c (build_unary_op): Don't wrap msgid argument of
17441 readonly_warning in _().
17443 2002-01-15 Douglas B Rupp <rupp@gnat.com>
17445 * gcc.c (delete_if_ordinary): Backout previous change.
17447 2002-01-15 Kazu Hirata <kazu@hxi.com>
17449 * config/h8300/h8300.c (print_operand): Remove support for
17450 unused operand characters.
17452 * read-rtl.c: Fix formatting.
17453 * real.c: Likewise.
17454 * recog.c: Likewise.
17455 * regclass.c: Likewise.
17456 * regmove.c: Likewise.
17457 * reg-stack.c: Likewise.
17458 * reload1.c: Likewise.
17459 * rtlanal.c: Likewise.
17461 2002-01-15 Kazu Hirata <kazu@hxi.com>
17463 * config/i386/i386.c: Fix formatting.
17465 2002-01-15 Jakub Jelinek <jakub@redhat.com>
17467 * c-typeck.c (process_init_element): Don't save_expr
17468 COMPOUND_LITERAL_EXPR if just its initializer will be used.
17470 2002-01-15 David Edelsohn <edelsohn@gnu.org>
17472 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
17473 emit optional traceback table if optimize_size or TARGET_ELF.
17474 * config/rs6000/rs6000.md (prefetch): New.
17476 2002-01-15 Andreas Jaeger <aj@suse.de>
17478 * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
17480 2002-01-15 Kazu Hirata <kazu@hxi.com>
17482 * mips-tfile.c: Fix formatting.
17484 Tue Jan 15 00:56:11 CET 2002 Jan Hubicka <jh@suse.cz>
17486 * unroll.c (final_reg_note_copy): Fix previous commit.
17488 2002-01-14 Kazu Hirata <kazu@hxi.com>
17490 * config/h8300/h8300-protos.h: Remove the prototype for
17492 * config/h8300/h8300.c (eq_operator): Remove.
17494 2002-01-14 Richard Henderson <rth@redhat.com>
17496 * config/i386/i386.md (prefetch): Tidy.
17497 (prefetch_3dnow): Fix locality operand.
17499 2002-01-14 Richard Henderson <rth@redhat.com>
17501 * config/mips/mips.h (HI_AND_FP_REGS): New register class.
17502 (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
17504 2002-01-14 Hans-Peter Nilsson <hp@bitrange.com>
17506 * reload1.c (reload_combine): Pass reg_sum replacement through
17507 copy_rtx in loop performing multiple changes.
17509 2002-01-14 Jakub Jelinek <jakub@redhat.com>
17511 * except.c (remove_unreachable_regions): New.
17512 (free_eh_status): Clear exception_handler_labels.
17513 (convert_from_eh_region_ranges): Call remove_unreachable_regions.
17514 (find_exception_handler_labels): Don't add the same label more than
17516 (remove_exception_handler_label): Don't die if
17517 find_exception_handler_labels hasn't been called for the current
17520 Mon Jan 14 21:26:13 CET 2002 Jan Hubicka <jh@suse.cz>
17522 * toplev.c (rest_of_compilation): Rebuild jump labels after
17525 2002-01-14 Joseph S. Myers <jsm28@cam.ac.uk>
17527 * doc/extend.texi: Move documentation of X86 built-in functions
17529 * doc/invoke.texi: From here.
17530 * doc/sourcebuild.texi: Document location of documentation for
17531 machine built-in functions.
17533 2002-01-13 Christopher Faylor <cgf@redhat.com>
17535 * cppfiles.c (TEST_THRESHOLD): New macro.
17536 (SHOULD_MMAP): Ditto.
17537 (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
17540 Mon Jan 14 20:23:34 CET 2002 Jan Hubicka <jh@suse.cz>
17542 * unroll.c (final_reg_note_copy): Properly handle
17544 (unroll_loops): Fix LOOP_CONDITION heuristics.
17546 2002-01-14 Geoffrey Keating <geoffk@redhat.com>
17548 * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
17549 * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
17551 Mon Jan 14 20:18:19 CET 2002 Jan Hubicka <jh@suse.cz>
17553 * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
17556 2002-01-14 Tom Rix <trix@redhat.com>
17558 * config/rs6000/rs6000.md: Fix typo with sradi.
17560 2002-01-14 Ulrich Weigand <uweigand@de.ibm.com>
17562 * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
17563 movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
17564 (clrstrdi, clrstrsi): Adapt callers.
17566 (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
17568 (movti splitter): Never use register 0 as base register.
17570 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
17572 * combine.c (simplify_shift_const): Always generate new rtx
17573 for shift expression instead of reusing given expression.
17575 Mon Jan 14 07:08:55 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17577 * config/alpha/alpha.c (alpha_expand_mov): Don't call
17578 alpha_legitimize_address unless mode is Pmode.
17580 2002-01-13 Geoffrey Keating <geoffk@redhat.com>
17582 * doc/md.texi (Modifiers): Document the '*' constraint for the
17585 * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
17586 * doc/extend.texi (Function Attributes): 'interrupt' is valid
17589 2002-01-13 Richard Henderson <rth@redhat.com>
17591 * reload.c (find_reloads): Use a hard reg destination as reload reg
17592 for an input reload of the source.
17594 2002-01-13 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
17596 * doc/install.texi (Binaries): Make link to ftp.writtenword.com
17599 Sun Jan 13 07:23:01 2002 Douglas B Rupp <rupp@gnat.com>
17601 * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
17602 * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
17604 * config/alpha/x-vms (USE_COLLECT2): Set to empty.
17606 Sun Jan 13 06:55:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17608 * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
17610 2002-01-12 Tom Rix <trix@redhat.com>
17612 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
17615 2002-01-12 Richard Henderson <rth@redhat.com>
17617 * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
17619 * doc/invoke.texi: Update Alpha options.
17621 * doc/invoke.texi: Update i386 built-in function lists.
17623 Sat Jan 12 17:38:11 CET 2002 Jan Hubicka <jh@suse.cz>
17625 * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
17626 referencing outside.
17628 Sat Jan 12 08:54:51 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17630 * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
17631 * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
17632 offsets, and change line folding.
17633 * optabs.c (expand_binop): Remove warnings.
17634 * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
17636 2002-01-12 Graham Stott <grahams@redhat.com>
17638 * attribs.c (handle_deprecated_attribute): constify WHAT.
17639 * diagnostic.c (warn_deprecated_use): Add braces, fixes
17640 dangling else warning and constify WHAT.
17641 * except.h (struct function, struct inline_remap): Move
17642 struct tag forward defs before all prototypes.
17643 (duplicate_eh_regions): Whitespace.
17645 2002-01-12 Nick Clifton <nickc@cambridge.redhat.com>
17647 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
17648 MODE_BASE_REG_CLASS.
17649 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
17651 2002-01-12 Richard Henderson <rth@redhat.com>
17653 * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
17654 (ix86_expand_vector_move): New.
17655 (bdesc_2arg): Remove andps, andnps, orps, xorps.
17656 (ix86_init_mmx_sse_builtins): Make static. Remove composite builtins.
17657 Remove old prefetch builtins. Special case the logicals removed above.
17658 (ix86_expand_builtin): Likewise.
17659 (safe_vector_operand): Use V4SFmode, not TImode.
17660 (ix86_expand_store_builtin): Remove shuffle arg. Update callers.
17661 (ix86_expand_timode_binop_builtin): New.
17662 * config/i386/i386-protos.h: Update.
17663 * config/i386/i386.h (enum ix86_builtins): Update.
17664 * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
17665 Use ix86_expand_vector_move in vector move expanders.
17666 (movti_internal, movti_rex64): Add xorps alternative.
17667 (sse_clrv4sf): Rename and adjust from sse_clrti.
17668 (prefetch): Don't work so hard.
17669 (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
17670 * config/i386/xmmintrin.h (__m128): Use V4SFmode.
17671 (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
17673 2002-01-11 Richard Henderson <rth@redhat.com>
17675 * config/i386/mmintrin.h: New file.
17676 * config/i386/xmmintrin.h: New file.
17677 * config.gcc (i?86-*-*): Add extra_headers.
17678 * simplify-rtx.c (simplify_unary_operation): Handle saturating
17680 (simplify_binary_operation): Handle saturating arithmetic codes.
17681 * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
17682 not the lowpart subreg.
17683 (ix86_expand_builtin): Return a TImode dummy register instead of 0
17685 * config/i386/i386.md (mmx_clrdi): Override memory attribute.
17687 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
17689 * conflict.c (conflict_graph_compute): Free regsets when finished.
17690 * ssa.c (compute_coalesced_reg_partition): Likewise.
17692 2002-01-12 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
17694 * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
17695 every where we allocate a register.
17697 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
17699 * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
17700 * lcm.c (compute_earliest, compute_farthest): Likewise.
17702 2002-01-11 Janis Johnson <janis187@us.ibm.com>
17704 * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
17706 2002-01-11 Janis Johnson <janis187@us.ibm.com>
17708 * doc/rtl.texi (Insns): Fix 2 typos.
17710 2002-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
17712 * doc/invoke.texi: Avoid overfull hboxes. Add summary of D30V
17713 options. Use @table @gcctabopt for MMIX options. Add index
17714 entries for MMIX options. Start new paragraph with first
17715 heading of the machine-dependent options.
17717 2002-01-11 Craig Rodrigues <rodrigc@gcc.gnu.org>
17720 * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
17721 * combine.c (force_to_mode): Same.
17722 * reload1.c (clear_reload_reg_in_use): Same.
17724 2002-01-11 Nick Clifton <nickc@cambridge.redhat.com>
17726 * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
17729 2002-01-11 Andreas Jaeger <aj@suse.de>,
17730 Brad Lucier <lucier@math.purdue.edu>
17732 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
17735 Fri Jan 11 07:35:12 2002 Douglas B Rupp <rupp@gnat.com>
17737 * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
17738 Protect with IN_LIBGCC.
17739 (LINK_EH_SPEC): Add required trailing space.
17741 Fri Jan 11 09:25:05 2002 Nicola Pero <n.pero@mi.flashnet.it>
17743 * c-tree.h: Move function declarations so that they are listed
17744 under the filename which contains them.
17745 (check_identifier, finish_decl_top_level,
17746 lookup_name_current_level_global, shadow_record_fields): Remove.
17748 2002-01-11 Andreas Jaeger <aj@suse.de>
17750 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
17753 2002-01-10 Richard Henderson <rth@redhat.com>
17755 * config/alpha/alpha.c (print_operand): Add 'J'.
17756 * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
17757 new operand with the sequence number for the lituse. When splitting
17758 the insns, use gen_movdi_er_high_g and generate a sequence number.
17759 (gen_movdi_er_high_g): Print the sequence number if non-zero.
17761 2002-01-10 Aldy Hernandez <aldyh@redhat.com>
17763 * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
17764 lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
17766 (altivec_expand_builtin): Same.
17767 (altivec_expand_stv_builtin): New.
17769 * config/rs6000/rs6000.h (rs6000_builtins): Same.
17771 * config/rs6000/rs6000.md ("altivec_lvebx"): New.
17772 ("altivec_lvehx"): New.
17773 ("altivec_lvewx"): New.
17774 ("altivec_lvxl"): New.
17775 ("altivec_lvx"): New.
17776 ("altivec_stvx"): New.
17777 ("altivec_stvebx"): New.
17778 ("altivec_stvehx"): New.
17779 ("altivec_stvewx"): New.
17780 ("altivec_stvxl"): New.
17782 2002-01-10 Richard Henderson <rth@redhat.com>
17784 * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
17785 * reload1.c (delete_output_reload): Zap spill_reg_store. Take
17786 care not to delete instructions twice.
17788 2002-01-10 Zack Weinberg <zack@codesourcery.com>
17790 * toplev.c: Don't declare environ (it's not used anywhere).
17791 * configure.in: Don't check for declaration of environ.
17792 * config/i386/xm-mingw32.h: Don't #define environ.
17793 * config.in, configure: Regenerate.
17795 2002-01-10 Zack Weinberg <zack@codesourcery.com>
17797 * configure.in: Set stage1_cflags for powerpc-*-darwin*.
17798 * configure: Regenerate.
17800 * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
17801 DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
17802 * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
17804 * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
17805 LIMITS_H_TEST here, not in m68k/x-next.
17806 * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
17807 SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
17809 * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
17810 LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
17811 * config/alpha/x-vms: Don't set USE_COLLECT2. Add comments.
17813 * config/i386/x-djgpp: Renamed i386/t-djgpp.
17814 * config/m88k/x-dolph: Renamed m88k/t-dolph.
17815 * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
17816 * config/pa/x-pa-mpeix: Renamed pa/t-mpeix. Update for
17817 replacement of quadlib.asm with quadlib.c.
17819 * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
17820 config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
17821 config/rs6000/xm-beos.h: Delete file.
17823 * config.gcc: Update to match above changes.
17825 2002-01-10 Kazu Hirata <kazu@hxi.com>
17827 * config/h8300/h8300.h: Fix comment typos.
17828 * config/h8300/h8300.md: Likewise.
17829 * config/h8300/lib1funcs.asm: Likewise.
17831 2002-01-10 Dale Johannesen <dalej@apple.com>
17833 PR optimization/5269
17834 * unroll.c (precondition_loop_p): Make *increment be the correct
17835 sign when n_iterations known, to avoid confusing caller.
17837 2002-01-10 Kazu Hirata <kazu@hxi.com>
17839 * doc/extend.texi (deprecated): Fix a typo.
17841 Thu Jan 10 22:35:54 CET 2002 Jan Hubicka <jh@suse.cz>
17843 * basic-block.h (update_br_prob_note): Declare.
17844 * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
17845 (try_forward_edges): Care negative frequencies and update note.
17846 (outgoing_edges_match): Tweek conditional merging heuristics.
17847 (try_crossjump_to_edge): use update_br_prob_note.
17848 * cfglayout.c (fixup_reorder_chain): Likewise.
17849 * cfrtl.c (update_br_prob_note): New.
17850 * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
17852 * i386.c (ix86_decompose_address): Return -1 if address contains
17854 (legitimate_address_p): Require ix86_decompose_address to return 1.
17856 * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
17857 (cprop_insn): Likewise.
17859 2002-01-10 Kazu Hirata <kazu@hxi.com>
17861 * toplev.c: Fix formatting.
17862 * tree.c: Likewise.
17863 * tree-dump.c: Likewise.
17864 * unroll.c: Likewise.
17865 * unwind-dw2.c: Likewise.
17866 * unwind-dw2-fde.c: Likewise.
17867 * unwind-dw2-fde-glibc.c: Likewise.
17868 * unwind-sjlj.c: Likewise.
17870 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
17872 * doc/invoke.texi: Document PDP-11 options.
17874 2002-01-10 Kazu Hirata <kazu@hxi.com>
17876 * config/h8300/h8300.h: Fix formatting.
17878 2002-01-10 Ira Ruben <ira@apple.com>
17880 Add __attribute__ ((deprecated)).
17881 * extend.texi: Document __attribute__ ((deprecated)).
17882 * invoke.texi: Document -Wno-deprecated-declarations.
17883 * testsuite/g++.dg/other/deprecated.C: New C++ test.
17884 * testsuite/gcc.dg/deprecated.c: New C test.
17885 * attribs.c (enum attrs): Declare handle_deprecated_attribute().
17886 (c_common_attribute_table): Add "deprecated" entry.
17887 (handle_deprecated_attribute): New function.
17888 * c-decl.c (deprecated_states): New enum.
17889 deprecated_state: State of "deprecated" handling.
17890 (start_decl): Set deprecated_state based on attributes.
17891 (grokdeclarator): Test for deprecated uses, propagate attribute.
17892 * c-typeck.c (build_component_ref): Test for deprecated fields.
17893 (build_external_ref): Test for deprecated primaries.
17894 * diagnostic.c (warn_deprecated_use) New function to issue
17895 warnings about __attribute__ ((depricated)) references.
17896 * flags.h (warn_deprecated_decl): Extern declared for
17897 -W[no-]deprecated-declarations option.
17898 * print-tree.c (print_node): Show deprecated flag status.
17899 * toplev.c (warn_deprecated_decl): Defined.
17900 (W_options): Added "deprecated-declaration".
17901 * toplev.h (warn_deprecated_use): Extern declared.
17902 * tree.h (struct tree_common): Define deprecated_flag.
17903 (TREE_DEPRECATED): New macro to access flag.
17904 * cp/call.c (build_call): Test for deprecated calls.
17905 * cp/class.c (add_implicitly_declared_members): Set global
17906 flag to tell grokdeclarator to not issue deprecated warnings.
17907 * cp/cp-tree.h: Add extern for adding_implicit_members.
17908 * cp/decl.c (deprecated_states): New enum.
17909 (start_decl): Set deprecated_state based on attributes.
17910 (grokdeclarator): Test for deprecated uses, propagate attribute.
17911 * cp/lex.c (do_identifier): Test for deprecated primaries.
17912 * cp/typeck.c (build_component_ref): Test for deprecated fields.
17914 2002-01-10 Ira Ruben <ira@apple.com>
17916 Fix to assign attributes to inline member functions.
17917 * cp/decl.c (start_method): Handle attrlist.
17919 2002-01-10 Kazu Hirata <kazu@hxi.com>
17921 * combine.c (expand_field_assignment): Use subreg_lsb().
17923 2002-01-10 David Edelsohn <edelsohn@gnu.org>
17925 * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
17926 POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
17927 (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
17928 Recurse for any operand of AND as long as constant is non-zero.
17930 2002-01-10 Kazu Hirata <kazu@hxi.com>
17932 * config/h8300/h8300.md: Remove constraints from expanders.
17934 2002-01-10 Kazu Hirata <kazu@hxi.com>
17936 * varasm.c: Fix formatting.
17937 * varray.c: Likewise.
17938 * vmsdbgout.c: Likewise.
17939 * xcoffout.c: Likewise.
17941 Thu Jan 10 17:19:12 CET 2002 Jan Hubicka <jh@suse.cz>
17943 * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
17944 update edge probabilities to match.
17946 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
17948 * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
17950 * doc/languages.texi, doc/sourcebuild.texi: New files.
17951 * doc/configfiles.texi: Make a subsubsection. Update.
17952 * doc/configterms.texi: Add @node. Remove warning that this isn't
17953 instructions for building GCC.
17954 * doc/makefile.texi: Make a subsection.
17955 * doc/gccint.texi: Update.
17957 Thu Jan 10 16:39:58 CET 2002 Jan Hubicka <jh@suse.cz>
17959 * i386.md (sse_mov?fcc_const0_?): Fix constraints.
17961 Thu Jan 10 12:45:50 2002 Nicola Pero <n.pero@mi.flashnet.it>
17963 * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
17965 Thu Jan 10 11:19:18 CET 2002 Jan Hubicka <jh@suse.cz>
17967 * optabs.c (expand_fix): Look for wider integer modes first.
17969 * i386.md (mov?f): Avoid the fake const double trick for medium
17971 (min?f*/max?f*): Prohibit memory operands for i387 variant.
17972 (fop_df_4): Disable for SSE compilation.
17974 2002-01-10 Graham Stott <grahams@redhat.com>
17976 * dwarf2out.c (indirect_string_alloc, output_indirect_string):
17977 Move prototype into DWARF2_DEBUGGING_INFO conditional block.
17979 2002-01-10 Richard Henderson <rth@redhat.com>
17981 * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
17983 2002-01-10 Richard Henderson <rth@redhat.com>
17985 * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
17986 (copyprop_hardreg_forward_1): Likewise. Use mode_change_ok.
17988 2002-01-10 Kazu Hirata <kazu@hxi.com>
17990 * combine.c (can_combine_p): Fix a comment typo.
17992 2002-01-09 Zack Weinberg <zack@codesourcery.com>
17994 * Makefile.in (s-gencheck, s-options, s-specs): Handle an
17995 empty list correctly. Change loop index $t to $f for
17996 consistency with rest of Makefile.
17998 2002-01-08 Aldy Hernandez <aldyh@redhat.com>
18000 * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
18001 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
18003 * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
18004 mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
18005 (altivec_init_builtins): Same.
18006 (altivec_expand_unop_builtin): Return NULL_RTX on error.
18007 (altivec_expand_binop_builtin): Same.
18008 (altivec_expand_ternop_builtin): Same.
18011 * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
18012 ("altivec_vctuxs"): Fix typo.
18013 ("altivec_vnmsubfp"): Same.
18014 ("altivec_dssall"): New.
18015 ("altivec_mfvscr"): New.
18016 ("altivec_dss"): New.
18017 ("altivec_lvsl"): New.
18018 ("altivec_lvsr"): New.
18019 ("altivec_dstt"): New.
18020 ("altivec_dstst"): New.
18021 ("altivec_dststt"): New.
18022 ("altivec_dst"): New.
18024 * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
18025 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
18027 2002-01-09 Richard Henderson <rth@redhat.com>
18029 * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
18031 2002-01-10 Hans-Peter Nilsson <hp@bitrange.com>
18033 * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
18035 * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
18037 * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
18039 2002-01-09 Kazu Hirata <kazu@hxi.com>
18041 * read-rtl.c: Fix formatting.
18042 * real.c: Likewise.
18043 * regclass.c: Likewise.
18044 * regrename.c: Likewise.
18045 * reg-stack.c: Likewise.
18046 * reload1.c: Likewise.
18047 * reload.c: Likewise.
18050 2002-01-09 Kazu Hirata <kazu@hxi.com>
18052 * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
18053 to extract items in the expr_list chain.
18055 2002-01-09 Richard Henderson <rth@redhat.com>
18057 * config/vax/vax.c (vax_rtx_cost): Never abort.
18059 * config/vax/vax.h (REAL_ARITHMETIC): Define.
18061 2002-01-09 Jan Hubicka <jh@suse.cz>
18063 * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
18065 2002-01-09 Richard Henderson <rth@redhat.com>
18067 * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
18068 Unify code from various alternatives.
18070 2002-01-09 Richard Henderson <rth@redhat.com>
18072 * regrename.c (copy_value): Ignore the copy if the source register
18073 is present in the value chain with a narrower mode.
18075 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
18077 * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
18078 for the c4x target. Also improve layout.
18080 2002-01-09 Richard Henderson <rth@redhat.com>
18082 * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
18083 * config/m32r/m32r.md (and ior xor splitters): Swap operands
18084 to match insn patterns.
18086 2002-01-09 Richard Henderson <rth@redhat.com>
18088 * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
18089 (copyprop_hardreg_forward_1): Likewise.
18091 2002-01-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
18093 * pa.md (decrement_and_branch_until_zero): Change predicate for
18094 operand 0 from register_operand to reg_or_nonsymb_mem_operand.
18096 2002-01-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
18098 * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
18099 gets undefined. For Darwin.
18101 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
18103 * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
18105 2002-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
18107 * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
18109 2002-01-08 Richard Henderson <rth@redhat.com>
18111 * regrename.c (copy_value): Ignore overlapping copies.
18113 2002-01-08 Richard Henderson <rth@redhat.com>
18115 * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
18116 as needed to avoid shared structure.
18118 2002-01-08 Kazu Hirata <kazu@hxi.com>
18120 * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
18123 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
18125 * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
18126 LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
18127 documentation of obsolete macros.
18128 * system.h: Poison these macros.
18129 * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
18130 config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
18131 config/c4x/c4x.h, config/clipper/clipper.h,
18132 config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
18133 config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
18134 config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
18135 config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
18136 config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
18137 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
18138 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
18139 config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
18140 config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
18141 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
18142 config/sparc/sparc.h, config/stormy16/stormy16.h,
18143 config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
18144 definitions and commented out definitions of obsolete macros.
18145 * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
18146 of MAX_INT_TYPE_SIZE.
18148 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
18150 * config/s390/s390.c (s390_preferred_reload_class): Never
18151 return ADDR_REGS if it isn't a subset of the given class.
18152 * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
18153 FP_REGS, but all superclasses as well.
18155 * config/s390/s390.c (s390_function_profiler): Fix thinko.
18157 * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
18158 cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
18159 must not be a const_int.
18161 2002-01-08 Richard Henderson <rth@redhat.com>
18163 * Makefile.in (toplev.o): Depend on options.h.
18164 (gcc.o): Depend on specs.h.
18166 2002-01-08 Jakub Jelinek <jakub@redhat.com>
18168 * expr.c (store_expr): Convert VOIDmode constants back to target's
18171 2002-01-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
18173 * doc/invoke.texi: Markup gcc as @command. Refer to
18174 http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
18175 of http://gcc.gnu.org/thanks.html.
18177 2002-01-08 Dale Johannesen <dalej@apple.com>
18179 * config/rs6000/rs6000.md: Add missing int register
18180 target case to movdf_low.
18182 2002-01-08 Zack Weinberg <zack@codesourcery.com>
18184 * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
18185 except.h. Remove commands to define USING_SJLJ_EXCEPTIONS.
18186 (cppinit.o): Depend on except.h.
18187 (gencheck.h, options.h, specs.h, s-gencheck, s-options,
18188 s-specs): New rules.
18190 * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
18191 Don't create specs.h/options.h/gencheck.h here. Remove
18192 unnecessary variable settings from last argument of AC_OUTPUT.
18193 * config.in, configure: Regenerate.
18194 * intl.c: Hardcode package name as "gcc".
18196 * cppinit.c: Include except.h.
18197 (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
18199 * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
18200 Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
18201 (!)USING_SJLJ_EXCEPTIONS.
18202 * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
18204 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
18206 * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
18207 ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
18208 OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
18209 documentation of obsolete macros.
18210 * system.h: Poison these macros.
18211 * config/d30v/d30v.h, config/ns32k/encore.h,
18212 config/stormy16/stormy16.h: Remove definitions and commented out
18213 definitions of obsolete macros.
18215 Tue Jan 8 15:56:41 2002 Nicola Pero <nicola@brainstorm.co.uk>
18217 * objc/objc-act.c (handle_class_ref): Mark the declaration of
18218 %sobjc_class_ref_%s as used - to prevent unwanted compiler
18221 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
18223 * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
18224 * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
18225 to insn adjusting stack/frame pointer.
18226 * config/s390/s390.md (reload_la_64, reload_la_31): Do not
18227 accept operands that cause the insn to be non-splittable.
18229 2002-01-08 Graham Stott <grahams@redhat.com>
18231 * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
18232 (C_TYPE_FIELDS_VOLATILE): Likewise.
18233 (C_TYPE_BEING_DEFINED): Likewise.
18234 (C_IS_RESERVED_WORD): Likewise.
18235 (C_TYPE_VARIABLE_SIZE): Likewise.
18236 (C_DECL_VARIABLE_SIZE): Likewise.
18237 (C_MISSING_PROTOTYPE_WARNED): Likewise.
18238 (C_SET_EXP_ORIGINAL_CODE): Likewise.
18239 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
18241 (C_DECL_ANTICIPATED): Likewise.
18242 (c_build_type_variant): Add parenthesis.
18244 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
18246 * gcc.c (option_map): Remove --version.
18247 (process_command): Handle -fversion following the GNU Coding
18248 Standards. Partially addresses PR other/704.
18250 2002-01-08 Graham Stott <grahams@redhat.com>
18252 * combine.c (combine_instructions): Fix typo.
18254 2002-01-08 Graham Stott <grahams@redhat.com>
18256 * debug.h: Use "tree" and "rtx" throughout.
18258 * debug.c: Likewise.
18260 2002-01-08 Nick Clifton <nickc@cambridge.redhat.com>
18262 * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
18263 constant pool, use the pool's version of the symbol instead.
18265 2002-01-07 Richard Henderson <rth@redhat.com>
18267 * regrename.c (find_oldest_value_reg): Ignore the value chain if
18268 the original register was copied in a mode with a fewer number of
18269 hard registers than the desired mode.
18270 (copyprop_hardreg_forward_1): Likewise.
18271 (debug_value_data): Fix loop test.
18272 * toplev.c (parse_options_and_default_flags): Reenable
18273 -fcprop-registers at -O1.
18275 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
18277 * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
18278 (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
18280 * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
18283 * config/rs6000/rs6000.md: Add altivec predicate patterns.
18285 2002-01-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
18287 * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
18288 (pa_output_function_prologue): Output local label at the beginning of
18289 the prologue when profiling.
18290 (hppa_profile_hook): Use the local label rather than the function label.
18291 * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
18293 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
18295 * config/rs6000/rs6000.c (print_operand): Remove extra space.
18296 (altivec_expand_unop_builtin): Fix thinko.
18297 (altivec_expand_binop_builtin): Same.
18298 (altivec_expand_ternop_builtin): Same.
18299 (altivec_expand_builtin): Same.
18301 2002-01-07 Richard Henderson <rth@redhat.com>
18303 * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
18305 2002-01-07 Jason Merrill <jason@redhat.com>
18307 * unwind-dw2.c (execute_cfa_program): Use < again.
18309 2002-01-07 Jakub Jelinek <jakub@redhat.com>
18311 * predict.c (combine_predictions_for_insn): Avoid division by zero.
18313 2002-01-07 Jakub Jelinek <jakub@redhat.com>
18315 * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
18316 Don't allow -1 - x -> ~x simplifications in the first pass.
18318 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
18320 * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
18322 (altivec_expand_binop_builtin): Same.
18323 (altivec_expand_unop_builtin): Same.
18324 (print_operand): Fix typo.
18325 (bdesc_1arg): Add vupk* variants.
18327 * rs6000.h (rs6000_builtins): Add vupk* enums.
18329 * rs6000.md: Add altivec_vupk* variants.
18331 2002-01-07 Joseph S. Myers <jsm28@cam.ac.uk>
18333 * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
18334 doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
18335 and last update dates.
18337 2002-01-07 Janis Johnson <janis187@us.ibm.com>
18339 * doc/rtl.texi (Flags): Clean up documentation of RTL flags
18341 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
18343 * config/avr/avr.c (avr_mcu_types): Add new MCU types.
18344 * config/avr/avr.h (CPP_SPEC): Likewise.
18345 (LINK_SPEC): Likewise.
18346 (CRT_BINUTILS_SPECS): Likewise.
18347 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
18348 * doc/invoke.texi (AVR Options): Document them.
18350 Mon Jan 7 11:59:34 CET 2002 Jan Hubicka <jh@suse.cz>
18352 * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
18355 2002-01-07 Graham Stott <grahams@redhat.com>
18357 * config/i386/i386.h: Update copyright date.
18358 (HALF_PIC_PTR): Add parenthesis.
18359 (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
18360 (CONSTANT_ALIGNMENT): Add parenthesis.
18361 (DATA_ALIGNMENT): Likewise.
18362 (LOCAL_ALIGNMENT): Likewise.
18363 (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
18364 (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
18365 (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
18366 (HARD_REGNO_NREGS): Add paranethesis.
18367 (VALID_SSE_REG_MODE): Whitespace.
18368 (VALID_MMX_REG_MODE): Whitespace.
18369 (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
18370 (ix86_hard_regno_mode_ok): Add parenthesis.
18371 (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
18372 (RETURN_IN_MEMORY): Whitespace.
18373 (N_REG_CLASSES): Add parenthesis.
18374 (INTEGER_CLASS_P): Add parenthesis and wrap.
18375 (FLOAT_CLASS_P): Likewise.
18376 (SSE_CLASS_P): Likewise.
18377 (MMX_CLASS_P): Likewise.
18378 (MAYBE_INTEGER_CLASS_P): Likewise.
18379 (MAYBE_FLOAT_CLASS_P): Likewise.
18380 (MAYBE_SSE_CLASS_P): Likewise.
18381 (MAYBE_MMX_CLASS_P): Likewise.
18382 (Q_CLASS_P): Likewise.
18383 (GENERAL_REGNO_P): Uppercase macro parameter.
18384 (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
18385 (FP_REGNO_P): Likewise.
18386 (ANY_FP_REGNO_P): Uppercase macro parameter.
18387 (SSE_REGNO_P): Likewise.
18388 (SSE_REGNO): Likewise.
18389 (SSE_REG_P): Likewise.
18390 (SSE_FLOAT_MODE_P): Likewise.
18391 (MMX_REGNO_P): Likewise.
18392 (MMX_REG_P):Likewise.
18393 (STACK_REG_P): Likewise.
18394 (NON_STACK_REG_P): Likewise.
18395 (STACK_TOP_P): Likewise.
18396 (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
18397 (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
18398 (SECONDARY_MEMORY_NEEDED): Likewise.
18399 (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
18400 (MD_ASM_CLOBBERS): Whitespace and wrap.
18401 (MUST_PASS_IN_STACK): Whitespace and wrap.
18402 (RETURN_POPS_ARGS): Add parenthesis.
18403 (INIT_CUMULATIVE_ARGS): Likewise.
18404 (FUNCTION_ARG): Likewise.
18405 (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
18406 (SETUP_INCOMING_VARARGS): Likewise.
18407 (BUILD_VA_LIST_TYPE): Add parenthesis.
18408 (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
18410 (EXPAND_BUILTIN_VA_ARG): Likewise.
18411 (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
18412 (INITIALIZE_TRAMPOLINE): Add parenthesis.
18413 (INITIAL_ELIMINATION_OFFSET): Likewise.
18414 (REGNO_OK_FOR_INDEX_P): Add parenthesis.
18415 (REGNO_OK_FOR_BASE_P): Likewise.
18416 (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
18417 (REGNO_OK_FOR_DIREG_P): Likewise.
18418 (REG_OK_FOR_INDEX_P): Whitespace.
18419 (REG_OK_FOR_BASE_P): Whitespace.
18420 (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
18422 (FIND_BASE_TERM): Fix typo.
18423 (LEGITIMIZE_ADDRESS): Wrap in { .. } while (0) and add parenthesis.
18424 (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
18425 (SYMBOLIC_CONST; Whitespace.
18426 (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in { .. } while (0) and wrap.
18427 (ENCODE_SECTION_INFO): Whitespace.
18428 (FINALIZE_PIC): Remove do { ... } while (0).
18429 (PROMOTE_MODE): Wrap in do { ... } while (0).
18430 (CONST_COSTS): Whitespace.
18431 (RTX_COSTS): Add paramethesis, whitespace and wrap.
18432 (REGISTER_MOVE_COST): Add parenthesis.
18433 (MEMORY_MOVE_COST): Likewise.
18434 (EXTRA_CC_MODES): Whitespace.
18435 (SELECT_CC_MODE): Add parenthesis and whitespace.
18436 (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
18437 (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
18438 (ASM_OUTPUT_LABEL): Add paramethesis.
18439 (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
18440 (ASM_OUTPUT_REG_POP): Likewise.
18441 (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
18442 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
18444 * config/i386/i386.c: Update copyright.
18445 (CHECK_STACK_LIMIT): Add parenthesis.
18446 (AT_BP): Uppercase macro parameter.
18447 (x86_64_int_parameter_registers): Constify.
18448 (x86_64_int_return_registers): Likewise.
18449 (ix86_compare_op0): Use rtx.
18450 (construct_container): Constify INTREG parameter.
18451 (function_arg): Use rtx.
18453 * diagnostic.h: Update copyright date.
18454 (output_buffer_state): Add parenthesis.
18455 (output_buffer_format_args): Likewise.
18457 * combine.c (combine_instructions): Replace XEXP (links, 0)
18460 2002-01-06 H.J. Lu <hjl@gnu.org>
18462 * cfgcleanup.c (thread_jump): Fix 2 typos.
18464 2002-01-06 Aldy Hernandez <aldyh@redhat.com>
18466 * config.gcc: Add support for --enable-altivec.
18468 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
18470 * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
18472 2002-01-06 Jakub Jelinek <jakub@redhat.com>
18474 * objc/objc-act.c (handle_impent): Use assemble_variable to emit
18475 __objc_class_name_*.
18477 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
18479 * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
18481 2002-01-06 Richard Henderson <rth@redhat.com>
18483 * reorg.c (emit_delay_sequence): Remove death notes, not merely
18484 nop them out. Increment label reference count for REG_LABEL.
18485 (fill_slots_from_thread): Frob label reference count around
18486 delete_related_insns.
18488 2002-01-05 Richard Henderson <rth@redhat.com>
18490 * cfgcleanup.c (try_forward_edges): Detect infinite loops while
18493 2002-01-05 Richard Henderson <rth@redhat.com>
18495 * c-decl.c (c_expand_body): Don't call outlining_inline_function.
18496 * integrate.c (output_inline_function): Likewise.
18497 * toplev.c (rest_of_compilation): Do it here instead. Move call
18498 to remove_unnecessary_notes after emitting abstract instance.
18499 Force an emitted nested function to have its parent emited as well.
18500 * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
18502 (rtl_for_decl_location): Do not look at reload data structures
18503 before reload has run.
18505 2002-01-05 Kazu Hirata <kazu@hxi.com>
18507 * cse.c: Fix formatting.
18508 * dwarf2asm.c: Likewise.
18509 * dwarf2out.c: Likewise.
18510 * explow.c: Likewise.
18511 * expmed.c: Likewise.
18512 * function.c: Likewise.
18513 * gcov.c: Likewise.
18514 * gencheck.c: Likewise.
18515 * genrecog.c: Likewise.
18516 * ggc-common.c: Likewise.
18517 * ggc-page.c: Likewise.
18518 * global.c: Likewise.
18520 2002-01-05 Kazu Hirata <kazu@hxi.com>
18522 * combine.c: Fix formatting.
18524 2002-01-05 Craig Rodrigues <crodrigu@bbn.com>
18527 * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
18529 2002-01-05 David Edelsohn <edelsohn@gnu.org>
18531 * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
18532 as 1 for __powerpc64__ as well.
18534 * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
18536 * alias.c (find_base_value, PLUS/MINUS): If we found a base,
18539 2002-01-05 Daniel Berlin <dan@dberlin.org>
18541 * lcm.c: Revert change, due to performance regression it causes on
18542 SPEC because it's slightly more conservative (sigh, I hate
18545 Sat Jan 5 11:52:05 CET 2002 Jan Hubicka <jh@suse.cz>
18547 * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
18549 2002-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
18551 * doc/cppinternals.texi: Update.
18553 2002-01-05 Hans-Peter Nilsson <hp@bitrange.com>
18555 * doc/invoke.texi (Option Summary) <MMIX Options>: Document
18556 -mbranch-predict, -mreg-stack-fill-bug-workaround and their
18558 (MMIX Options): Ditto. Fix item/itemx typo for -mno-zero-extend.
18559 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
18560 kludge for pre-october-14th mmix versions to handle new-found bug
18561 with PUSHJ/PUSHGO and the register stack.
18562 * config/mmix/mmix.h (struct machine_function): Rename member
18563 has_call_value_without_parameters to has_call_without_parameters.
18564 All referers changed.
18565 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
18566 TARGET_MASK_BRANCH_PREDICT): New macros.
18567 (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
18568 -mno-reg-stack-fill-bug-workaround.
18569 * config/mmix/mmix.md ("call"): Set struct machine member
18570 has_call_without_parameters.
18572 Sat Jan 5 02:20:22 CET 2002 Jan Hubicka <jh@suse.cz>
18574 * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
18576 Sat Jan 5 01:35:29 CET 2002 Jan Hubicka <jh@suse.cz>
18578 * cfgcleanup.c: Include tm_p.h
18579 (mark_effect): Fix handling of hard register; fix handling of SET
18581 2002-01-04 Kazu Hirata <kazu@hxi.com>
18583 * config/h8300/h8300.md (anonymous patterns): Check that
18584 operands are registers before using REGNO on them.
18586 2002-01-03 Roland McGrath <roland@frob.com>
18588 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
18590 2002-01-04 Jakub Jelinek <jakub@redhat.com>
18592 * tree.h (expand_expr_stmt_value): Add maybe_last argument.
18593 * c-common.h (genrtl_expr_stmt_value): Likewise.
18594 * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
18595 (expand_expr_stmt_value): Add maybe_last argument.
18596 Don't warn about statement with no effect if it is the last statement
18597 in expression statement.
18598 * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
18599 (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
18600 expand_expr_stmt_value.
18601 (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
18602 genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
18603 * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
18604 as maybe_last to expand_expr_stmt_value.
18606 Fri Jan 4 11:45:05 2002 Jeffrey A Law (law@redhat.com)
18608 * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
18609 be passed in, do not build it.
18610 (c_begin_if_stmt): New function.
18611 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
18612 * c-common.h (c_expand_start_cond): Update prototype.
18613 (c_begin_if_stmt): Prototype new function.
18614 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
18615 * c-parse.in (if_prefix): Use c_begin_if_stmt,
18616 c_begin_while_stmt and c_finish_while_stmt_cond.
18618 2002-01-04 William Cohen <wcohen@redhat.com>
18620 * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
18621 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
18622 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
18623 * config/pa/som.h (ASM_FILE_START): Likewise.
18625 2002-01-04 Daniel Berlin <dan@cgsoftware.com>
18627 * lcm.c: Include df.h.
18628 Add available_transfer_function prototype.
18629 (compute_available): Rework to use iterative dataflow framework.
18630 (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
18631 with bb_info in df.h
18632 (available_transfer_function): New function.
18634 * Makefile.in (lcm.o): add df.h to dependencies.
18636 2002-01-04 Richard Henderson <rth@redhat.com>
18638 * config/alpha/alpha.c (some_operand): Accept HIGH.
18639 (input_operand): Likewise; accept simple references to globals.
18640 (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
18641 (alpha_const_double_ok_for_letter_p): Likewise.
18642 (alpha_extra_constraint): Likewise.
18643 (alpha_preferred_reload_class): Likewise. Do not force
18644 symbolic constants to memory.
18645 (alpha_legitimate_address_p): Accept simple references
18646 to small_symbolic_operand.
18647 (alpha_legitimize_address): New arg scratch. Be prepared to be
18648 called when no_new_pseudos. Emit simple symbolic references.
18649 Split integers into low, high, and rest.
18650 (alpha_expand_mov): Use alpha_legitimize_address.
18651 (some_small_symbolic_mem_operand): New.
18652 (split_small_symbolic_mem_operand): New.
18653 * config/alpha/alpha-protos.h: Update.
18654 * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
18655 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
18656 (EXTRA_CONSTRAINT): Likewise.
18657 (PREFERRED_RELOAD_CLASS): Likewise.
18658 (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
18659 (PREDICATE_CODES): Update.
18660 * config/alpha/alpha.md: New post-reload splitters to convert
18661 simplfied symbolic operands to the form that references $29.
18662 (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
18663 (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
18665 2002-01-03 Richard Henderson <rth@redhat.com>
18667 * local-alloc.c (function_invariant_p): Update commentary.
18669 2002-01-04 H.J. Lu <hjl@gnu.org>
18671 * toplev.c (rest_of_compilation): Fix a typo when calling
18674 2002-01-03 Kazu Hirata <kazu@hxi.com>
18676 * c-common.c: Fix formatting.
18677 * diagnostic.c: Likewise.
18678 * doloop.c: Likewise.
18679 * dwarf2out.c: Likewise.
18681 2002-01-03 Kazu Hirata <kazu@hxi.com>
18683 * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
18684 of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
18686 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
18688 * cpperror.c: Update comments and copyright.
18689 * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
18690 cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
18692 2002-01-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
18694 * collect2.c (main): Use strcmp when testing for "-shared".
18696 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
18698 * cppmacro.c: Don't include intl.h. Update comments.
18699 (new_number_token): Allocate enough buffer for 64-bit unsigned
18700 integers; update prototype.
18701 * cppmain.c: Update comments.
18703 2002-01-03 William Cohen <wcohen@redhat.com>
18705 * function.h (struct function): Add profile.
18706 (current_function_profile): New.
18707 doc/extend.texi: Update documentation.
18708 * final.c (final_start_function): Use current_function_profile
18709 instead of profile_flag.
18710 (profile_after_prologue): Likewise.
18711 * function.c (expand_function_start): Likewise.
18712 (expand_function_start): Likewise.
18713 * config/alpha/alpha.c (direct_call_operand):
18714 (alpha_does_function_need_gp): Likewise.
18715 (alpha_expand_prologue): Likewise.
18716 * config/arm/arm.c (arm_expand_prologue): Likewise.
18717 thumb_expand_prologue: Likewise.
18718 * config/d30v/d30v.c (d30v_stack_info): Likewise.
18719 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
18720 (fr30_expand_prologue): Likewise.
18721 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
18722 * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
18723 * config/i386/i386.h (FINALIZE_PIC): Likewise.
18724 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
18725 * config/i960/i960.c (i960_output_function_prologue): Likewise.
18726 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
18727 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
18728 (m32r_expand_prologue): Likewise.
18729 * config/m88k/m88k.c (m88k_layout_frame): Likewise.
18730 (m88k_expand_prologue): Likewise.
18731 * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
18732 * config/mips/mips.c (compute_frame_size): Likewise.
18733 (mips_expand_prologue): Likewise.
18734 (mips_can_use_return_insn): Likewise.
18735 * config/pa/elf.h (ASM_FILE_START): Likewise.
18736 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
18737 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
18738 * config/pa/som.h (ASM_FILE_START): Likewise.
18739 * config/romp/romp.c (romp_using_r14): Likewise.
18740 * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
18741 (rs6000_stack_info): Likewise.
18742 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
18743 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
18744 * config/v850/v850.c (compute_register_save_size): Likewise.
18746 2002-01-03 Jakub Jelinek <jakub@redhat.com>
18748 * simplify-rtx.c (simplify_binary_operation) [DIV]: If
18749 gen_lowpart_common fails, use gen_lowpart_SUBREG.
18751 2002-01-03 Turly O'Connor <turly@apple.com>
18753 * darwin.c (machopic_output_possible_stub_label): Don't generate
18754 stub routines for pseudo-stubs which we've just defined.
18756 2002-01-03 Kazu Hirata <kazu@hxi.com>
18758 * builtins.c: Fix formatting.
18759 * c-typeck.c: Likewise.
18760 * combine.c: Likewise.
18761 * expr.c: Likewise.
18762 * loop.c: Likewise.
18764 2002-01-03 Andreas Schwab <schwab@suse.de>
18766 * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
18767 and return true if _cpp_push_next_buffer pushed a new include
18769 * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
18770 _cpp_pop_file_buffer did not push a new file.
18771 * cpphash.h (_cpp_pop_file_buffer): Update declaration.
18773 2002-01-02 Eric Christopher <echristo@redhat.com>
18775 * final.c (final_scan_insn): Change 0 -> NULL_RTX in
18776 FIND_REG_INC_NOTE call. Update copyright.
18777 * loop.c (canonicalize_condition): Ditto.
18778 * reorg.c (delete_scheduled_jump): Ditto.
18780 2002-01-03 Kazu Hirata <kazu@hxi.com>
18782 * gcse.c: Fix formatting.
18784 2002-01-03 Graham Stott <grahams@redhat.com>
18786 * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
18787 forward defs for struct tags rtx_def, union_tree, rtvec_def
18788 also output corresponding typedefs for rtx, tree, and rtvec.
18790 * system.h: Move forward defs for struct tags rtx_def, union_tree,
18791 rtvec_def along with corresponding typedefs for rtx, tree, and
18792 rtvec to config.h, hconfig.h, tconfig.h.
18794 2002-01-03 Graham Stott <grahams@redhat.com>
18796 * tree.h: Update copyright date.
18797 (IS_EXPR_CODE_CLASS): Add parenthesis.
18798 (TREE_SET_CODE): Add whitespace.
18799 (TREE_CHECK): Add parenthesis.
18800 (TREE_CLASS_CODE): Add parenthesis and wrap long line.
18801 (CST_OR_CONSTRUCTOR_CHECK):
18802 (EXPR_CHECK): Add parenthis, whitespace and wrap line.
18803 (TREE_SYMBOL_REFERENCED): Whitespace.
18804 (INT_CST_LT): Likewise.
18805 (INT_CST_LT_UNSIGNED): Likewise.
18806 (tree_real_cst): Unwrap comment.
18807 (tree_string): Likewise.
18808 (tree_complex): Likewise.
18809 (IDENTIFIER_POINTER): correct cast.
18810 (SAVE_EXPR_CONTEXT): Whitespace.
18811 (EXPR_WFL_FILENAME_NODE): Likewise.
18812 (EXPR_WFL_FILENAME): Remove parenthesis.
18813 (DECL_ORIGIN): Add parenthesis.
18814 (DECL_FROM_INLINE): Use NULL_TREE.
18815 (build_int_2): Whitespace.
18816 (build_type_variant): Add parenthesis.
18818 * gcc/jcf-parse.c: Update copyright date.
18819 (yyparse): Constify resource_filename.
18821 2002-01-03 Graham Stott <grahams@redhat.com>
18823 * rtl.h: Update copyright date.
18824 (RTL_CHECK1): Wrap long line.
18825 (RTL_CHECK2): Likewise.
18826 (RTL_CHECKC1): Wrap long line and whitespace.
18827 (RTL_CHECKC2): Likewise.
18828 (XWINT): Whitespace.
18834 (XBITMAP): Likewise.
18836 (XBBDEF): Likewise.
18838 (X0WINT): Likewise.
18840 (X0UINT): Likewise.
18844 (X0MODE): Likewise.
18845 (X0BITMAP): Likewise.
18846 (X0TREE): Likewise.
18847 (X0BBDEF): Likewise.
18848 (X0ADVFLAGS): Likewise.
18849 (X0CSELIB): Likewise.
18850 (X0MEMATTR): Likewise.
18851 (XCWINT): Likewise.
18853 (XCUINT): Likewise.
18857 (XCMODE): Likewise.
18858 (XCBITMAP): Likewise.
18859 (XCTREE): Likewise.
18860 (XCBBDEF): Likewise.
18861 (XCADVFLAGS): Likewise.
18862 (XCCSELIB): Likewise.
18863 (XC2EXP): Likewise.
18864 (INSN_UID): Likewise.
18865 (PREV_INSN): Likewise.
18866 (PATTERN): Likewise.
18867 (INSN_CODE): Likewise.
18868 (PUT_REG_NOTE_KIND): Likewise.
18869 (CODE_LABEL_NUMBER): Likewise.
18870 (NOTE_SOURCE_FILE): Likewise.
18871 (NOTE_BLOCK): Likewise.
18872 (NOTE_EH_HANDLER): Likewise.
18873 (NOTE_RANGE_INFO): Likewise.
18874 (NOTE_LIVE_INFO): Likewise.
18875 (NOTE_BASIC_BLOCK): Likewise.
18876 (NOTE_EXPECTED_VALUE): Likewise.
18877 (NOTE_LINE_NUMBER): Likewise.
18878 (LABEL_NAME): Likewise.
18879 (LABEL_NUSES): Likewise.
18880 (LABEL_ALTERNATE_NAME): Likewise.
18881 (ADDRESSOF_DECL): Likewise.
18882 (JUMP_LABEL): Likewise.
18883 (LABEL_NEXTREF): Likewise.
18885 (ORIGINAL_REGNO: Likewise.
18886 (HARD_REGISTER_NUM_P): Add parenthesis.
18887 (SUBREG_REG): Whitespace.
18888 (SUBREG_BYTE): Likewise.
18889 (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
18890 (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
18891 (ASM_OPERANDS_OUTPUT_IDX): Likewise.
18892 (ASM_OPERANDS_INPUT_VEC): Likewise.
18893 (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
18894 (ASM_OPERANDS_INPUT): Likewise.
18895 (ASM_OPERANDS_INPUT_LENGTH): Likewise.
18896 (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
18897 (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
18898 (ASM_OPERANDS_INPUT_MODE): Likewise.
18899 (ASM_OPERANDS_SOURCE_FILE): Likewise.
18900 (ASM_OPERANDS_SOURCE_LINE): Likewise.
18901 (MEM_SET_IN_STRUCT_P): Minor reformat.
18902 (TRAP_CONDITION): Whitespace.
18903 (TRAP_CODE): Likewise.
18904 (COND_EXEC_TEST): Likewise.
18905 (COND_EXEC_CODE): Likewise.
18906 (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
18907 (PHI_NODE_P): Add parenthesis.
18908 (plus_constant): Whitespace and add parenthesis.
18910 2002-01-03 Kazu Hirata <kazu@hxi.com>
18912 * config/avr/avr.c: Fix comment typos.
18913 * config/c4x/c4x.md: Likewise.
18914 * config/dsp16xx/dsp16xx.h: Likewise.
18915 * config/dsp16xx/dsp16xx.md: Likewise.
18916 * config/i386/i386.md: Likewise.
18917 * config/ia64/ia64.c: Likewise.
18918 * config/m32r/m32r.h: Likewise.
18919 * config/m68hc11/m68hc11.md: Likewise.
18920 * config/mmix/mmix.c: Likewise.
18921 * config/mn10200/mn10200.c: Likewise.
18922 * config/romp/romp.c: Likewise.
18923 * config/sh/sh.c: Likewise.
18924 * config/stormy16/stormy16.c: Likewise.
18925 * config/stormy16/stormy16.h: Likewise.
18926 * config/stormy16/stormy16.md: Likewise.
18928 2002-01-03 Graham Stott <grahams@redhat.com>
18930 * loop.h: Update copyright date.
18931 (LOOP_MOVABLES): Fix typo.
18932 (LOOP_REGS): Likewise.
18933 (LOOP_IVS): Likewise.
18935 2002-01-03 Graham Stott <grahams@redhat.com>
18937 * cppinit.c: Update copyright date.
18938 Don't include output.h
18939 * Makefile.in: Update copyright date.
18942 2002-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
18945 * invoke.texi (-mthreads): Remove from documented RS/6000 options.
18946 (-pthread) Add to RS/6000 options.
18948 2002-01-02 Kazu Hirata <kazu@hxi.com>
18950 * except.c: Fix comment typos.
18951 * loop.c: Likewise.
18952 * varasm.c: Likewise.
18953 * doc/tm.texi: Fix a typo.
18955 2002-01-02 Jakub Jelinek <jakub@redhat.com>
18957 * c-typeck.c (output_init_element): Allow initializing static storage
18958 duration objects with compound literals.
18960 2002-01-02 Richard Henderson <rth@redhat.com>
18962 * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
18965 2002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18967 * gcc.c (default_compilers): Const-ify.
18968 * mips-tdump.c (stab_names): Likewise.
18969 * mips-tfile.c (map_coff_types, map_coff_storage,
18970 map_coff_sym_type, map_coff_derived_type, stabs_symbol,
18971 pseudo_ops_t, pseudo_ops): Likewise.
18972 * protoize.c (default_include): Likewise
18974 * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
18975 (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
18976 Add array size in declaration.
18977 (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
18978 emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
18979 esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
18980 etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
18981 eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
18982 efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
18983 c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
18984 emtens, make_nan): Const-ify.
18985 (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
18986 DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
18988 2002-01-02 Joseph S. Myers <jsm28@cam.ac.uk>
18990 * config.gcc (ia64-*-*): Set extra_headers.
18991 (alpha*-dec-osf*): Likewise. Don't use alpha/t-osf.
18992 * config/alpha/t-osf: Remove.
18993 * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
18995 2002-01-02 David Edelsohn <edelsohn@gnu.org>
18997 * config/rs6000/t-aix43: Revert previous change.
18999 2002-01-02 Jason Merrill <jason@redhat.com>
19001 * c-decl.c (c_expand_body): Call outlining_inline_function when
19002 emitting an inline function out of line.
19004 2002-01-02 Richard Henderson <rth@redhat.com>
19006 * dwarf2out.c (limbo_die_node): Add created_for member.
19007 (new_die): New argument created_for. Update all callers.
19008 (mark_limbo_die_list): New.
19009 (dwarf2out_init): Register limbo_die_list as a root.
19010 (dwarf2out_finish): Force insert limbo dies into their function
19013 2002-01-02 Nathan Sidwell <nathan@codesourcery.com>
19016 * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
19018 2002-01-02 Kazu Hirata <kazu@hxi.com>
19020 * config/h8300/fixunssfsi.c: Update copyright.
19023 * config/h8300/h8300.c: Update copyright.
19024 Eliminate warnings.
19026 2002-01-02 Kazu Hirata <kazu@hxi.com>
19028 * config/romp/romp.c: Fix comment formatting.
19029 * config/romp/romp.h: Likewise.
19030 * config/romp/romp.md: Likewise.
19031 * config/s390/s390.c: Likewise.
19032 * config/stormy16/stormy16.c: Likewise.
19033 * config/stormy16/stormy16.h: Likewise.
19035 2002-01-02 Alexandre Oliva <aoliva@redhat.com>
19037 * c-common.h (genrtl_expr_stmt_value): Declare.
19038 * c-semantics.c (genrtl_goto_stmt): Redirect to...
19039 (genrtl_goto_stmt_value): ... this new function. Pass new
19040 argument down to expand_expr_stmt_value, taking
19041 TREE_ADDRESSABLE into account.
19042 * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
19043 STMT_EXPR as addressable, i.e., one whose result we want.
19044 * expr.c (expand_expr): Don't save expression statement value
19045 of labeled_blocks or loop_exprs.
19046 * stmt.c (expand_expr_stmt): Redirect to...
19047 (expand_expr_stmt_value): ... this new function. Use new
19048 argument to tell whether to save expression value.
19049 (expand_end_stmt_expr): Reset last_expr_type and
19050 last_expr_value if we don't have either.
19051 * tree-inline.c (declare_return_variable): Mark its use
19052 statement as addressable.
19053 * tree.h: Document new use of TREE_ADDRESSABLE.
19054 (expand_expr_stmt_value): Declare.
19056 2002-01-01 Tom Rix <trix@redhat.com>
19058 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
19059 rs6000_emit_allocate_stack.
19061 2002-01-01 Joseph S. Myers <jsm28@cam.ac.uk>
19063 * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
19064 ${srcdir}/ginclude/ to every entry in extra_headers.
19065 * configure: Regenerate.
19066 * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
19067 * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
19068 * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
19069 * ginclude/proto.h: Rename to config/convex/proto.h.
19071 Tue Jan 1 17:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19073 * attribs.c (handle_vector_size_attribute): Use host_integerp
19074 and tree_int_cst; remove warnings.
19075 * caller-save.c (insert_restore): Add cast to get rid of warning.
19076 (insert_save): Likewise.
19077 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
19078 * regmove.c (find_matches): Add temporary var to kill a warning.
19080 2002-01-01 Douglas B Rupp <rupp@gnat.com>
19082 * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
19083 LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
19084 * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
19085 (vms-dwarf2eh.o): Add Makefile rule.
19086 * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
19087 * config/alpha/vms-dwarf2eh.asm: New file.
19089 * gcc.c (delete_if_ordinary): Delete all versions.
19091 2002-01-01 Hans-Peter Nilsson <hp@bitrange.com>
19093 * config/mmix/mmix.md: Update FIXME to not mention
19095 (MMIX_rJ_REGNUM): New define_constants constant.
19096 ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
19097 "*movdicc_real"): Adjust contraints formatting.
19098 ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
19099 for branch prediction.
19100 ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
19102 ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
19103 "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
19104 number. Delete related FIXMEs.
19105 * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
19106 from number to MMIX_rJ_REGNUM.
19107 (TARGET_MASK_BRANCH_PREDICT): New.
19108 (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
19109 (TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols
19110 value. Add -mbranch-predict and -mno-branch-predict.
19111 (TARGET_VERSION): Drop date.
19112 (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
19113 * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
19114 for finding out global symbols.
19115 (mmix_asm_output_labelref): Revert condition for global symbol.
19116 (mmix_print_operand): <case '+'>: Emit P for a likely branch.
19117 (mmix_print_operand_punct_valid_p): A '+' is valid.
19119 See ChangeLog.6 for earlier changes.