1 2002-06-10 Zack Weinberg <zack@codesourcery.com>
3 * Makefile.in (STAGESTUFF): Add s-gtype, gt-*.h, gtype-*.h,
5 (mostlyclean): Delete specs.h, options.h, gencheck.h here...
6 (distclean): ... not here. But do delete all testsuite/*.log,
7 testsuite/*.sum files here. Delete mkheaders. Delete
8 po/*.gmo and the testsuite directory in a split tree build.
10 2002-06-10 Jeffrey Law <law@redhat.com>
12 * alias.c (static_reg_base_value): New to hold RTL for
13 items allocated once per function for the aliasing code.
14 (init_alias_once_per_function): Initialize static_reg_base_value.
15 (init_alias_analysis): Avoid throw-away allocations of RTL by
16 using pre-computed values in static_reg_base_value.
17 * function.c (prepare_function_start): Call
18 init_alias_once_per_function appropriately.
19 * rtl.h (init_alias_once_per_function): Declare.
20 * caller-save (init_caller_save): Restructure slightly to
21 avoid lots of silly RTL generation.
22 * expr.c (init_expr_once): Likewise.
23 * reload1.c (reload_cse_regs_1): Allocate throw-away register
24 RTL object here. Pass it into children.
25 (reload_cse_simplify_operands): Use passed-in register RTL
27 (reload_cse_simplify): Pass through throw-away register
30 2002-06-10 Daniel Berlin <dberlin@dberlin.org>
32 * Makefile.in (ssa.o): Add dependency on $(RTL_H), which was missing.
34 2002-06-10 Richard Sandiford <rsandifo@redhat.com>
36 * gcc.c (process_command): Avoid assignment to read-only location.
37 Fix sizeof calculation.
39 2002-06-10 Neil Booth <neil@daikokuya.demon.co.uk>
41 * cpphash.h (struct cpp_macro): Put comments on their own lines.
42 (_cpp_expansions_different_trad): New.
43 * cppmacro.c (warn_of_redefinition): Fix for traditional case.
44 * cpptrad.c (canonicalize_text): New.
45 (scan_out_logical_line): Handle no arguments correctly.
46 (save_replacement_text): Commit memory when finished.
47 (_cpp_expansions_different_trad): New.
49 2002-06-10 Tim Josling <tej@melbpc.org.au>
51 * gengtype.c (unnamed enum containing BASE_FILE_*): Add languages
53 (lang_names): Add treelang and cobol.
54 (get_file_basename): Add code to support treelang and cobol as
55 4th and 5th users of c-common.c.
57 2002-06-09 Geoffrey Keating <geoffk@redhat.com>
59 * Makefile.in (install-driver): Install driver as
60 $(target_alias)-gcc-$(version).
61 * gcc.c (spec_version): Make const.
62 (process_command): Handle -V and -b by using exec.
63 * doc/invoke.texi (Target Options): Restore -V option,
64 update docs for -b option.
66 2002-06-10 Tim Josling <tej@melbpc.org.au>
68 * configure.in (remaining_languages_check):
69 Added check that all languages specified were found.
70 Exit if not found. Previous behaviour was silent failure.
71 * configure: Regenerated.
73 2002-06-10 Tim Josling <tej@melbpc.org.au>
75 First steps to making treelang documentation compliant, based on
76 instructions in sourcebuild.texi. Also add to gcc.c list of
79 * doc/contrib.texi: Add self as contributor of treelang.
81 * doc/frontends.texi: Add mention of treelang.
83 * doc/invoke.texi (Overall Options): Add mention of treelang.
85 * doc/standards.texi: Add mention of treelang.
87 2002-06-09 Hans-Peter Nilsson <hp@axis.com>
89 * config/cris/cris.c: Include ggc.h
91 2002-06-09 Neil Booth <neil@daikokuya.demon.co.uk>
93 * cpphash.h (_cpp_push_text_context): Update.
94 (_cpp_arguments_ok): New.
95 * cppmacro.c (_cpp_arguments_ok): New, split out from...
96 (collect_args): ...here.
97 (_cpp_push_text_context): Change inputs.
98 * cpptrad.c (struct fun_macro, maybe_start_funlike, save_argument,
99 replace_args_and_push): New.
100 (lex_identifier, _cpp_lex_identifier_trad, scan_parameters):
101 Don't use IS macros directly.
102 (scan_out_logical_line): Handle function-like macro argument
104 (push_replacement_text): Update.
105 (replacement_length): Remove.
106 (_cpp_create_trad_definition): Don't skip whitespace before
109 2002-06-09 Marek Michalkiewicz <marekm@amelek.gda.pl>
111 * config/avr/avr.c (avr_mcu_types): Update for new devices.
112 * config/avr/avr.h (TARGET_SWITCHES, AVR_MEGA): Add -mshort-calls.
113 (LINK_SPEC, CRT_BINUTILS_SPECS): Update for new devices.
114 * config/avr/avr.md ("type" and "length" attributes): New type
115 "xcall", length 1 or 2 if AVR_MEGA. Use in all patterns that
116 output a single "call" or "rcall" insn depending on device size.
117 * config/avr/t-avr (MULTILIB_MATCHES): Update for new devices.
119 2002-06-09 David Edelsohn <edelsohn@gnu.org>
121 * config/rs6000/{aix43.h,aix5.1} (ASM_CPU_SPEC): Add power3
122 synonym for 630. Add power4. Remove embedded processors. Use -m604
124 (CPP_CPU_SPEC): Add power3 and power4.
125 (PROCESSOR_DEFAULT): Change to 604e.
126 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Similar additions.
127 (CPP_CPU_SPEC): Similar additions.
128 (enum process_type): Add POWER4.
129 (RTX_COSTS): Add POWER4.
130 (CPP_CPU_SPEC): Similar additions.
131 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Define.
132 (PROCESSOR_DEFAULT64): Define.
133 * config/rs6000/rs6000.c (rs6000_override_options): Add power4.
134 (rs6000_adjust_cost): Add 603, 604, 604e, 620, 630, Power4 to
136 (rs6000_issue_rate): Add Power4.
137 * config/rs6000/rs6000.md (cpu attr): Add power4.
138 (iu compare): Remove 604, 604e, 620, 630.
139 Add basic Power4 scheduling information.
140 (mfcr/mtcrf): Change type attribute to cr_logical.
142 2002-06-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
144 * gengtype.h (error_at_line): Use PARAMS, not VPARAMS. Add
146 * gengtype-lex.l: Fix format specifier warning.
148 * genautomata.c: Don't include ctype.h or limits.h. Use ISSPACE,
150 * gengtype-lex.l: Don't include ctype.h and use ISSPACE/ISIDNUM in
151 lieu of isspace/IDchar.
152 * gengtype.c: Likewise for ctype.h and ISALNUM vs isalnum.
153 * read-rtl.c: Likewise for ctype.h. Don't define ISDIGIT or
156 2002-06-08 Zack Weinberg <zack@codesourcery.com>
158 * Makefile.in (LIBCPP_OBJS): Take out version.o.
159 * cpphash.h (cpp_reader): Take out print_version member.
160 * cppinit.c: (cpp_handle_option): Don't do anything with
161 -version. Just set help_only for --version, --target-help.
162 Just set verbose option for -v.
163 (cpp_post_options): Don't print a version string.
165 2002-06-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
167 * config/avr/avr.c (TARGET_SECTION_TYPE_FLAGS): New.
168 (avr_section_type_flags): New, handle .noinit* sections.
170 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
172 * config/sh/netbsd-elf.h (SUBTARGET_EXTRA_SPECS): Define
173 and include netbsd_entry_point.
174 (SUBTARGET_LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
175 (NETBSD_ENTRY_POINT): Define.
177 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
179 * config/sh/sh.h (SUBTARGET_EXTRA_SPECS): Define empty
180 if not already defined.
181 (EXTRA_SPECS): Add SUBTARGET_EXTRA_SPECS.
183 2002-06-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
185 * config/avr/avr.c (avr_regs_to_save): No need to save any registers
186 in a noreturn function.
187 (avr_output_function_prologue, avr_output_function_epilogue):
188 Correct function size calculation. Do not crash on empty function.
189 (avr_output_function_epilogue): No need for epilogue after a BARRIER.
191 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
193 * config/mips/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
194 netbsd_link_spec and netbsd_entry_point.
195 (LINK_SPEC): Use %(netbsd_link_spec).
196 (NETBSD_ENTRY_POINT): Define.
198 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
200 * config/sparc/netbsd-elf.h (LINK_ARCH32_SPEC): Only specify
202 (LINK_ARCH64_SPEC): Likewise.
203 (LINK_SPEC, NETBSD_ENTRY_POINT): Define.
204 (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and netbsd_entry_point.
206 2002-06-08 Marc Espie <espie@openbsd.org>
208 * lists.c (free_list): Fix typo in comment.
210 2002-06-08 Andreas Jaeger <aj@suse.de>
212 * lcm.c (optimize_mode_switching): Add unused attribute for
215 * sched-deps.c (sched_analyze): Remove unused variable.
217 2002-06-08 Gabriel Dos Reis <gdr@codesourcery.com>
219 * diagnostic.def: Don't capitalize diagnostict descriptors.
221 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
223 * config/m68k/netbsd-elf.h (EXTRA_SPECS): Add netbsd_entry_point.
224 (LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
225 (NETBSD_ENTRY_POINT): Define.
227 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
229 * config/i386/netbsd-elf.h (LINK_SPEC): Define as
230 NETBSD_LINK_SPEC_ELF.
231 (SUBTARGET_EXTRA_SPECS): Add netbsd_entry_point.
232 (NETBSD_ENTRY_POINT): Define.
233 * config/i386/netbsd64.h (LINK_SPEC): Use %(netbsd_link_spec).
234 (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and
236 (NETBSD_ENTRY_POINT): Define.
238 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
240 * config/alpha/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
241 netbsd_link_spec and netbsd_entry_point.
242 (LINK_SPEC): Use %(netbsd_link_spec).
243 (NETBSD_ENTRY_POINT): Define.
245 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
247 * config/netbsd-elf.h (LINK_SPEC): Rename to...
248 (NETBSD_LINK_SPEC_ELF): ...this. Use %(netbsd_entry_point)
249 to specify program entry point.
251 2002-06-07 Jeff Law <law@redhat.com
253 * emit-rtl.c (init_emit): Add hard registers to regno_reg_rtx.
254 * combine.c (move_deaths): Use regno_reg_rtx for hard regs rather
255 than creating a new register.
256 (distribute_notes): Likewise.
257 * df.c (df_reg_use_gen): Likewise.
258 (df_reg_clobber_gen): Likewise.
259 (df_ref_record): Likewise.
260 * expr.c (use_regs): Likewise.
261 * flow.c (propagate_one_insn): Likewise.
262 (mark_set_1): Likewise.
263 (mark_used_reg): Likewise.
264 * reload.c (emit_reload_insns): Likewise.
266 2002-06-07 Roger Sayle <roger@eyesopen.com>
268 * simplify-rtx.c (simplify_gen_relational): Simplify RTL of the form
269 (ne (comp x y) 0) into (comp x y) where comp is a comparison code.
270 Simplify (eq (comp x y) 0) into (revcomp x y) if the sense of the
271 comparison code comp can be reversed.
273 2002-06-07 Roger Sayle <roger@eyesopen.com>
275 * fold-const.c (fold) [EQ_EXPR]: Place both integer and real
276 constants last in comparisons. Optimize (x+1.0)>0.0 into the
277 equivalent x > -1.0 when -ffast-math.
279 2002-06-07 Jason Thorpe <thorpej@wasabisystems.com>
281 * config.gcc (mips*-*-netbsd*): Add mips/t-netbsd to ${tmake_file}.
282 * config/mips/t-netbsd: New file.
284 2002-06-07 Zack Weinberg <zack@codesourcery.com>
286 * cppinit.c (COMMAND_LINE_OPTIONS): Give all relevant -W
287 options their own entries.
288 (parse_option): Clarify comment.
289 (cpp_handle_option): Remove 'ignore' parameter and OPT_W
290 special case. Replace if/strcmp chain for -W options with
291 use of new OPT_* entries for them.
292 (cpp_handle_options): Update to match.
293 * cpplib.h: Remove last parameter to cpp_handle_option from prototype.
294 * c-decl.c: Update call to cpp_handle_option.
296 2002-06-07 Akim Demaille <akim@epita.fr>
298 * gengtype-yacc.y (optionseqopt): Add the ending `;' to the action.
301 2002-06-07 Jeffrey Law <law@redhat.com>
303 * sched-deps.c (free_deps): Avoid calling free_INSN_LIST_list
306 2002-06-07 H.J. Lu (hjl@gnu.org)
308 * configure.in: Add --enable-__cxa_atexit.
309 * configure: Regenerated.
310 * config.in: Likewise.
312 * defaults.h (DEFAULT_USE_CXA_ATEXIT): New. Defined to be 0 if
315 2002-06-07 Gabriel Dos Reis <gdr@merlin.nerim.net>
317 * diagnostic.c (diagnostic_build_prefix): Fix initialization.
319 2002-06-07 Jason Thorpe <thorpej@wasabisystems.com>
321 * config/mips/netbsd.h (CACHE_FLUSH_FUNC): Define.
323 2002-06-07 Jason Merrill <jason@redhat.com>
325 * cppexp.c (num_equality_op): Use a temporary variable to work
326 around gcc 3.0.4 bug.
328 2002-06-07 Gabriel Dos Reis <gdr@codesourcery.com>
330 * diagnostic.c (diagnostic_build_prefix): Tidy.
332 2002-06-07 Neil Booth <neil@daikokuya.demon.co.uk>
334 * cpptrad.c (struct block, BLOCK_HEADER_LEN, BLOCK_LEN,
335 scan_parameters, save_replacement_text, replacement_length): New.
336 (scan_out_logical_line): Take a macro and save parameters if
338 (_cpp_logical_line_trad): Update.
339 (_cpp_create_trad_definition): Update to handle function-like
341 * cpplex.c (new_buff): Update.
342 (struct dummy, DEFAULT_ALIGNMENT, CPP_ALIGN): Move...
343 * cpphash.h: ...here.
344 (CPP_ALIGN2, _cpp_save_parameter): New.
345 * cppmacro.c (save_parameter): Rename, export.
346 (parse_params): Update.
348 2002-06-07 Andreas Jaeger <aj@suse.de>
350 * config/mmix/mmix.c: Remove extra broken prototype for
351 mmix_init_machine_status.
353 2002-06-06 Geoffrey Keating <geoffk@redhat.com>
355 * gengtype.c: Add comments before all the routines.
357 2002-06-07 Jason Thorpe <thorpej@wasabisystems.com>
359 * config.gcc (sh5*-*-netbsd*): Remove sh/t-netbsd-sh5-32
360 from and add t-sh64 to ${tmake_file}.
361 (sh64*-*-netbsd*): Add t-sh64 to ${tmake_file}.
362 * config/sh/t-netbsd-sh5 (LIB1ASMFUNCS): Remove.
363 * config/sh/t-netbsd-sh5-32: Remove.
364 * config/sh/t-netbsd-sh5-64 (MULTILIB_OPTIONS): Use
366 (MULTILIB_DIRNAMES): Define.
368 Thu Jun 6 23:14:46 CEST 2002 Jan Hubicka <jh@suse.cz>
370 * i386.md (and promoting splitters): Disable QI to SImode promoting
371 when doing so changes immediate to be 32bit.
373 * rtl.h (emit_*_scope): Declare.
374 * emit-rtl.c (emit_*_scope): New global functions.
375 (try_split): Copy scope.
376 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
377 noce_try_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
378 noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
379 noce_process_if_block, find_cond_trap): Copy scopes.
380 * recog.c (peephole2_optimize): likewise.
382 2002-06-06 Jeffrey Law <law@redhat.com>
384 * h8300.h (OK_FOR_U): Fix thinko exposed by flag checking.
386 Thu Jun 6 21:06:25 2002 J"orn Rennecke <joern.rennecke@superh.com>
388 * gengtype-lex.l (INITIAL): New rule for "'"("\\".|[^\\])"'".
390 2002-06-06 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
392 * Makefile.in (TEXI_GCCINSTALL_FILES): Define.
393 ($(docdir)/gccinstall.info): New target.
394 (info): Depend on it.
395 (gccinstall.dvi): New target.
397 * doc/.cvsignore: Ignore new info files.
398 * doc/install.texi (@setfilename): Reflect new info filename.
400 Thu Jun 6 15:57:23 2002 J"orn Rennecke <joern.rennecke@superh.com>
402 * sh.c (machine_dependent_reorg): Don't set RTX_UNCHANGING_P
405 Thu Jun 6 07:17:43 2002 Nicola Pero <n.pero@mi.flashnet.it>
408 * objc/objc-lang.c (LANG_HOOKS_GET_ALIAS_SET): Define to be
409 c_common_get_alias_set.
410 (LANG_HOOKS_SAFE_FROM_P): Define to be c_safe_from_p.
412 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
414 * emit-rtl.c (get_first_nonnote_insn, get_last_nonnote_insn): New
416 * rtl.h (get_first_nonnote_insn, get_last_nonnote_insn): Declare.
417 * avr/avr.c (avr_output_function_epilogue): Use above to determine
419 * pa/pa.c (pa_output_function_prologue): Likewise.
421 2002-06-05 David S. Miller <davem@redhat.com>
423 * integrate.c (subst_constants): Handle 'B' RTL format.
425 2002-06-05 Eric Christopher <echristo@redhat.com>
427 * varasm.c (make_decl_rtl): Fix comment for removed
430 2002-06-05 Eric Christopher <echristo@redhat.com>
432 * Makefile.in: Remove missed halfpic bits.
434 2002-06-05 Eric Christopher <echristo@redhat.com>
436 * toplev.c: Remove half-pic.
437 * config/mips/mips.c: Ditto.
438 * config/mips/mips.h: Ditto. Remove unused defines.
439 * config/mips/openbsd.h: Update comment to reflect above.
440 * config/mips/mips.md: Remove half-pic constraints.
444 2002-06-05 Jeffrey Law <law@redhat.com>
446 * pa.h (EXTRA_CONSTRAINT, T case): Further refine so that it
447 rejects (mem (lo_sum (reg) (unspec))), but will allow
448 (mem (lo_sum (reg) (symbol_ref)) for PA2.0.
450 2002-06-05 Neil Booth <neil@daikokuya.demon.co.uk>
452 * cpphash.h (_cpp_create_definition): Update prototype.
453 (_cpp_push_text_context, _cpp_create_trad_definition): New.
454 ( cpp_lex_identifier_trad): New.
455 (_cpp_set_trad_context): New.
456 * cppinit.c (cpp_finish_options): Don't conditionalize builtins.
457 * cpplib.c (SEEN_EOL): Update.
458 (lex_macro_node): Update for -traditional.
459 (cpp_push_buffer, _cpp_pop_buffer): Similarly.
460 * cppmacro.c (_cpp_create_definition): Split into
461 create_iso_definition() and _cpp_create_trad_definition().
462 (warn_of_redefinition): Update prototype; handle traditional
464 (_cpp_push_text_context): New.
465 * cpptrad.c (skip_whitespace, push_replacement_text): New.
466 (lex_identifier): Call ht_lookup with correct start.
467 (_cpp_lex_identifier_tradm _cpp_create_trad_definition,
468 _cpp_set_trad_context): New.
469 (scan_out_logical_line): Update to handle changing contexts.
471 Wed Jun 5 20:42:31 2002 J"orn Rennecke <joern.rennecke@superh.com>
473 * config.gcc (sh-*-elf*, sh64*-*-elf*): Unify.
475 * config/sh/t-be (MULTILIB_ENDIAN): Set.
476 * config/sh/t-le (MULTILIB_ENDIAN): Likewise.
477 * t-sh (MULTILIB_ENDIAN): Set.
478 (MULTILIB_OPTIONS): Use it.
479 * t-sh64 (MULTILIB_OPTIONS): Likewise.
480 (MULTILIB_DIRNAMES): Likewise.
482 2002-06-05 Gabriel Dos Reis <gdr@codesourcery.com>
484 * toplev.h (report_error_function): Remove.
486 * diagnostic.h (location_t): New datatype.
487 (text_info): Likewise.
488 (diagnostic_info): Likewise.
489 (output_prefix): New macro.
490 (diagnostic_last_function_changed): Likewise.
491 (diagnostic_set_last_function): Likewise.
492 (diagnostic_last_module_changed): Likewise.
493 (diagnostic_set_last_module): Likewise.
494 (report_diagnostic): Now macro.
495 (diagnostic_set_info): Declare.
497 * diagnostic.c (report_problematic_module): Rename to
498 diagnostic_repor_current_module.
499 (set_diagnostic_context): Remove.
500 (count_error): Rename to diagnostic_error_count.
501 (error_function_changed): Remove.
502 (record_last_error_function): Likewise.
503 (error_module_changed): Likewise.
504 (record_last_error_module): Likewise.
505 (context_as_prefix): Rename to diagnostic_build_prefix.
506 (flush_diagnostic_buffer): Rename to diagnostic_flush_buffer.
507 (diagnostic_set_info): New function.
509 * objc/objc-act.c: #include diagnostic.h
510 (error_with_ivar): Adjust call to count_error.
511 (warn_with_method): Likewise.
512 * objc/Make-lang.in (objc-act.o): Depend on diagnostic.h
514 2002-06-05 Bob Wilson <bob.wilson@acm.org>
516 * config/xtensa/xtensa.c (xtensa_build_va_list): Use
517 lang_hooks.types.make_type instead of make_node; set up
518 __va_list_tag type decl.
519 (xtensa_builtin_saveregs): Remove broken use of
520 RTX_UNCHANGING_P and unnecessary use of MEM_IN_STRUCT_P
521 for saved registers; add varargs alias set.
523 2002-06-05 Neil Booth <neil@daikokuya.demon.co.uk>
526 * alpha/gnu.h: Undef TARGET_OS_CPP_BUILTINS.
527 * i386/beos-elf.h: Use TARGET_OS_CPP_BUILTINS rather than
528 CPP_PREDEFINES and part of CPP_SPEC.
529 i386/freebsd-aout.h, i386/gas.h, i386/gnu.h, i386/linux-aout.h,
530 i386/linux.h, i386/moss.h, i386/xm-vsta.h: Similarly.
532 Wed Jun 5 15:20:58 CEST 2002 Jan Hubicka <jh@suse.cz>
534 * reg-stack.c (reg_to_stack): Do not call find_basic_blocks.
536 2002-06-05 Alan Modra <amodra@bigpond.net.au>
538 * config/rs6000/linux64.h (ASM_OUTPUT_SOURCE_LINE): Define.
540 2002-06-04 Zack Weinberg <zack@codesourcery.com>
542 * gengtype-yacc.y: Make sure all rules end with a semicolon.
544 2002-06-04 Bob Wilson <bob.wilson@acm.org>
546 * config/xtensa/xtensa.c (xtensa_init_machine_status): Fix
547 typo in function prototype and include "ggc.h" header.
549 2002-06-04 Richard Henderson <rth@redhat.com>
551 * config/alpha/alpha.c (mode_mask_operand): Simplify without ifdefs.
552 (print_operand) ['U']: Likewise.
553 (alpha_expand_unaligned_store): Correct constants for 32-bit cross.
554 (alpha_expand_unaligned_store_words): Likewise.
555 (alpha_expand_builtin_vector_binop): Fix typo.
556 (enum alpha_builtin, code_for_builtin): Add remaining ext, ins, msk,
557 umulh, and cix insns.
558 (one_arg_builtins): Add cix builtins.
559 (two_arg_builtins): Add ext, ins, msk, umulh builtins.
560 (alpha_expand_builtin): Fix typo in arity.
561 * config/alpha/alpha.md (UNSPEC_CTLZ, UNSPEC_CTPOP): New.
562 (builtin_extbl, builtin_extwl, builtin_extll, builtin_extwh,
563 builtin_extlh, builtin_insbl, builtin_inswl, builtin_insll,
564 builtin_insql, builtin_inswh, builtin_inslh, builtin_insqh,
565 builtin_mskbl, builtin_mskwl, builtin_mskll, builtin_mskql,
566 builtin_mskwh, builtin_msklh, builtin_mskqh, builtin_cttz,
567 builtin_ctlz, builtin_ctpop): New.
568 * doc/extend.texi (Alpha Built-in Functions): Update.
570 2002-06-04 Geoffrey Keating <geoffk@redhat.com>
572 * gengtype.c (write_gc_root): Don't unnecessarily prevent
573 global variable-length arrays being roots.
575 * config.gcc (powerpc-*-darwin*): Set config_gtfiles.
576 * configure.in (config_gtfiles): New variable.
577 (all_gtfiles): Initialise from config_gtfiles.
578 * configure: Regenerate.
580 2002-06-04 Neil Booth <neil@daikokuya.demon.co.uk>
583 * beos-elf.h, cygwin.h, djgpp.h, gas.h, gnu.h, i386-interix.h,
584 i386-interix3.h, i386elf.h, linux-aout.h, linux.h, linux64.h,
585 mingw32.h, netbsd-elf.h, netbsd.h, netbsd64.h, rtemself.h,
586 sco5.h, sol2.h, sysv3.h, sysv4.h, sysv5.h, uwin.h, vxi386.h,
587 win32.h (CPP_SPEC): Remove cpp_cpu.
588 * i386.h (TARGET_CPU_CPP_BUILTINS): Use.
589 (CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Die!
591 2002-06-04 Janis Johnson <janis187@us.ibm.com>
593 * config/ia64/ia64.c (gen_thread_pointer): Fix variable name.
595 2002-06-04 Jeff Law <law@redhat.com.
596 David Edelsohn <edelsohn@gnu.org>
597 Michael Matz <matz@kde.org>
599 * sched-int.h (struct deps): New field libcall_block_tail_insn.
600 * sched_deps.c (init_deps): Initialize libcall_block_tail_insn.
601 * sched_deps.c (sched_analyze_insn): If libcall_block_tail_insn
602 is set, then mark the current insn as being part of a libcall
604 (sched_analyze): Set and clear libcall_block_tail_insn appropriately.
606 * haifa-sched.c (schedule_block): Do not count USE or CLOBBER
607 insns against the issue rate.
609 Tue Jun 4 19:29:42 CEST 2002 Jan Hubicka <jh@suse.cz>
611 * cfglayout.c (duplicate_insn_chain): Kill NOTE_INSN_RANGE notes.
612 * final.c (final_scan_insn): Likewise.
613 * ggc-common.c (ggc_mark_rtx_children_1): Likewise; use
614 NOTE_EXPECTED_VALUE instead of NOTE_RANGE.
615 * haifa-sched.c (unlink_other_notes): Likeewise.
616 (reemit_notes): Likewise.
617 * print-rtl.c (print_rtx): Likewise.
618 * sched-deps (sched-analyze): Likewise.
619 * rtl.c (note_insn_name): Likewise.
620 * rtl.h (NOTE_RANGE_INFO, NOTE_LIVE_INFO): Kill.
621 (enum insn_note): Kill NOTE_INSN_RANGE_*, NOTE_INSN_LIVE.
624 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
626 * varasm.c (mark_constants): Handle RTX format 'B'.
628 2002-06-04 Neil Booth <neil@daikokuya.demon.co.uk>
630 * cpphash.h (FIRST, LAST, CUR, RLIMIT): New.
631 (struct cpp_context): Add traditional fields.
632 * cppmacro.c (paste_all_tokens, push_ptoken_context,
633 push_token_context, cpp_get_token, _cpp_backup_tokens): Update.
634 * cpptrad.c (skip_comment, lex_identifier,
635 _cpp_read_logical_line_trad, scan_out_logical_line): Update.
637 2002-06-04 Kazu Hirata <kazu@cs.umass.edu>
639 * gbl-ctors.h: Fix formatting.
641 * gccspec.c: Likewise.
643 * gcov-io.h: Likewise.
645 * ggc-common.c: Likewise.
647 * ggc-page.c: Likewise.
648 * ggc-simple.c: Likewise.
649 * global.c: Likewise.
651 * gthr-dce.h: Likewise.
653 * gthr-posix.h: Likewise.
654 * gthr-rtems.h: Likewise.
655 * gthr-solaris.h: Likewise.
656 * gthr-win32.h: Likewise.
658 2002-06-03 Geoffrey Keating <geoffk@redhat.com>
660 Merge from pch-branch:
662 * gengtype.h (UNION_OR_STRUCT_P): New macro.
663 * gengtype.c (write_gc_structure_fields): Use it.
664 (write_gc_root): Use it here too.
666 * gengtype.c (write_gc_structure_fields): Assume that lengths
667 of typenames fit into an 'int'; don't pass a size_t to "%d" in
669 (write_gc_marker_routine_for_structure): Likewise.
670 (write_gc_types): Likewise.
671 (write_gc_root): Likewise.
673 * varray.h (VARRAY_CLEAR): New.
674 (varray_clear): Prototype.
675 * varray.c (varray_clear): New.
676 * cselib.c (reg_values_old): New.
677 (used_regs_old): New.
678 (cselib_init): Use cached varrays if available to avoid
679 generating large amounts of garbage.
680 (cselib_finish): Don't throw away old varrays.
682 * final.c (insn_addresses_): Move out of ifdef.
684 * varray.c (uses_ggc): Make more varray kinds GCable.
685 * varray.h (union varray_data_tag): Let gengtype see
686 fields 'generic' and 'te'.
687 * reg-stack.c: Include gt-reg-stack.h, ggc.h.
688 (stack_regs_mentioned_data): Move out of ifdef; mark with gengtype.
689 (reg_to_stack): Don't call VARRAY_FREE.
690 * insn-addr.h (INSN_ADDRESSES_FREE): Don't use VARRAY_FREE.
691 (insn_addresses_): Use gengtype to mark.
692 * gengtype.c (write_gc_structure_fields): Handle arrays of generic
693 pointers; handle generic pointers in unused union fields.
694 (get_output_file_with_visibility): Include cselib.h,
695 insn-addr.h in gtype-desc.c.
696 * function.c (prologue): Use gengtype to mark.
697 (epilogue): Likewise.
698 (sibcall_epilogue): Likewise.
699 * dependence.c: Include gt-dependence.h, ggc.h.
700 (struct def_use): Use gengtype to mark.
701 (struct loop): Likewise.
702 (struct induction): Likewise.
703 (struct dependence): Likewise.
704 (def_use_chain): Likewise.
705 (dep_chain): Likewise.
706 (loop_chain): Likewise.
707 (induction_chain): Likewise.
708 (init_dependence_analysis): Don't free anything, just clear pointers.
709 (build_def_use): Use GGC to allocate def_use.
710 (add_loop): Use GGC to allocate loop.
711 (find_induction_variable): Use GGC to allocate induction.
712 (check_node_dependence): Use GGC to allocate induction, dependence.
713 (dump_node_dependence): Don't free varrays.
714 (end_dependence_analysis): Likewise.
715 * cselib.h (struct cselib_val_struct): Use gengtype to mark.
716 (struct elt_loc_list): Likewise.
717 (struct elt_list): Likewise.
718 * cselib.c: Don't include obstack.h.
719 (hash_table): Use gengtype to mark.
720 (reg_values): Use gengtype to mark.
721 (used_regs): Use gengtype to mark.
722 (cselib_obstack): Delete.
723 (cselib_startobj): Delete.
724 (empty_vals): Mark as deletable.
725 (empty_elt_lists): Mark as deletable.
726 (empty_elt_loc_lists): Mark as deletable.
727 (new_elt_list): Use GGC to allocate struct elt_list.
728 (new_elt_loc_list): Use GGC to allocate struct elt_loc_list.
729 (clear_table): Don't delete obstack; don't unnecessarily clear
731 (new_cselib_val): Use GGC to allocate struct cselib_val.
732 (cselib_init): Don't set up obstacks. Use GGC to allocate
734 (cselib_finish): Just clear variables, don't free anything.
735 * Makefile.in (cselib.o): Remove dependency on $(OBSTACK_H).
736 (reg-stack.o): Add dependency on gt-reg-stack.h, $(GGC_H).
737 (dependence.o): Add dependency on gt-dependence.h, $(GGC_H).
738 (GTFILES): Add insn-addr.h, cselib.h, dependence.c, reg-stack.c.
739 (gt-reg-stack.h): New rule.
740 (gt-dependence.h): New rule.
741 (gtype-desc.o): Add cselib.h, insn-addr.h.
743 * varray.c: Use only necessary headers.
746 (varray_init): Take type, not size. Use GGC if appropriate.
747 (varray_grow): Update for change to struct varray_head_tag.
748 Use GGC if appropriate.
749 * varray.h (struct const_equiv_data): Use gengtype.
750 (enum varray_data_enum): New.
751 (union varray_data_tag): Use gengtype.
752 (struct varray_head_tag): Use gengtype. Replace size field with
753 enum varray_data_enum.
754 (varray_init): Update prototype.
755 (VARRAY_SCHED_INIT): Delete.
756 (VARRAY_*_INIT): Update for change to varray_init.
757 (VARRAY_SCHED): Delete.
758 (VARRAY_PUSH_SCHED): Delete.
759 (VARRAY_TOP_SCHED): Delete.
760 * tree.h: Update for change to length specifier.
761 * tree-inline.c (optimize_inline_calls): Don't use VARRAY_FREE.
762 (clone_body): Likewise.
763 * ssa.h (ssa_definition): Use gengtype to mark.
764 * ssa.c (convert_from_ssa): Don't use VARRAY_FREE.
765 * ssa-dce.c (ssa_eliminate_dead_code): Don't use VARRAY_FREE.
766 * rtl.h (struct rtvec_def): Update for change to length specifier.
767 * integrate.c (expand_inline_function): Don't use VARRAY_FREE.
768 (struct initial_value_struct): Update for change to length specifier.
769 * ggc.h (ggc_add_rtx_varray_root): Delete prototype.
770 (ggc_add_tree_varray_root): Delete prototype.
771 (ggc_mark_rtx_varray): Delete prototype.
772 (ggc_mark_tree_varray): Delete prototype.
773 * ggc-common.c (ggc_add_rtx_varray_root): Delete.
774 (ggc_add_tree_varray_root): Delete.
775 (ggc_mark_rtx_varray): Delete.
776 (ggc_mark_tree_varray): Delete.
777 (ggc_mark_rtx_varray_ptr): Delete.
778 (ggc_mark_tree_varray_ptr): Delete.
779 * gengtype.h (enum typekind): Remove TYPE_VARRAY.
780 (create_varray): Delete prototype.
781 * gengtype.c (varrays): Delete.
782 (create_varray): Delete.
783 (adjust_field_type): Detect array of string pointers.
784 (process_gc_options): Remove code to handle varray_type option.
785 (set_gc_used_type): Remove TYPE_VARRAY case.
786 (output_escaped_param): New.
787 (write_gc_structure_fields): Use output_escaped_param on all
788 parameters. Handle 'skip' with 'use_param' option. Handle
789 arrays of strings. Remove TYPE_VARRAY handling.
790 (write_gc_roots): Use boolean to detect 'length' option.
791 * gengtype-yacc.y (VARRAY_TYPE): Delete token.
792 (struct_fields): Call adjust_field_type on array fields.
793 (type): Remove VARRAY_TYPE case.
794 (type_option): Likewise.
795 * gengtype-lex.l: Don't consider varray_type a keyword.
796 * function.h: Update for change to length specifier.
797 (free_eh_status): Delete prototype.
798 * function.c (free_after_compilation): Don't call free_eh_status.
799 (reorder_blocks): Don't use VARRAY_FREE.
800 * except.c (struct eh_status): Update for change to length specifier.
801 remove varray_type specifier.
802 (free_eh_status): Delete.
803 * dwarf2out.c: Include gt-dwarf2out.h.
804 (used_rtx_varray): Use gengtype to mark, move
806 (incomplete_types): Likewise.
807 (decl_scope_table): Likewise.
808 (dwarf2out_init): Don't call ggc_add_tree_varray_root.
809 * cfglayout.c (scope_to_insns_finalize): Don't use VARRAY_FREE.
810 * c-tree.h (struct lang_type): Update for change to length specifier.
811 * c-parse.in (yylexstring): Don't use VARRAY_FREE.
812 * c-objc-common.c: Include gt-c-objc-common.h.
813 (deferred_fns): Mark for gengtype.
814 (c_objc_common_init): Don't call ggc_add_tree_varray_root.
815 (expand_deferred_fns): Just set deferred_fns to 0 to free it.
816 * Makefile.in (c-objc-common.o): Add gt-c-objc-common.h.
817 (gtype-desc.o): Update dependencies.
818 (dwarf2out.o): Add gt-dwarf2out.h.
819 (varray.o): Update dependencies.
820 (GTFILES): Add varray.h, ssa.h, dwarf2out.c, c-objc-common.c.
821 (gt-c-objc-common.h): New rule.
822 (gt-dwarf2out.h): New rule.
823 * objc/objc-act.c (build_objc_string_object): Don't use VARRAY_FREE.
825 * doc/gty.texi (GTY Options): Correct spelling.
826 (GGC Roots): Likewise.
827 * Makefile.in (TEXI_CPP_FILES): New.
828 (TEXI_GCC_FILES): New.
829 (TEXI_GCCINT_FILES): New.
830 (TEXI_CPPINT_FILES): New.
831 ($(docdir)/cpp.info): Use new macros.
832 ($(docdir)/gcc.info): Likewise.
833 ($(docdir)/gccint.info): Likewise.
834 ($(docdir)/cppinternals.info): Likewise.
837 (gccint.dvi): Likewise.
838 (cppinternals.dvi): Likewise.
840 * Makefile.in ($(docdir)/gccint.info): Depend on gty.texi.
841 * doc/gccint.texi (Top): Include gty.texi.
842 * doc/gty.texi: New file.
844 * bitmap.c: Include ggc.h, gt-bitmap.h.
845 (bitmap_ggc_free): New.
846 (bitmap_elem_to_freelist): New.
847 (bitmap_element_free): Use bitmap_elem_to_freelist.
848 (bitmap_element_allocate): Allow use of GGC.
849 (bitmap_clear): Use bitmap_elem_to_freelist.
850 (bitmap_copy): Update for change to bitmap_element_allocate.
851 (bitmap_set_bit): Likewise.
852 (bitmap_operation): Update for changes elsewhere.
853 (bitmap_initialize): Allow to create bitmaps that will use GGC.
854 * bitmap.h (struct bitmap_element_def): Use gengtype.
855 (struct bitmap_head_def): Likewise. Also add 'using_obstack' field.
856 (bitmap_initialize): Add extra parameter.
857 (BITMAP_OBSTACK_ALLOC): Update for change to bitmap_initialize.
858 (BITMAP_ALLOCA): Delete.
859 (BITMAP_XMALLOC): Update for change to bitmap_initialize.
860 (BITMAP_GGC_ALLOC): New.
861 * Makefile.in (gtype-desc.o): Add bitmap.h.
862 (bitmap.o): Add gt-bitmap.h, $(GGC_H).
863 (GTFILES): Add bitmap.c.
864 (gt-bitmap.h): New rule.
865 ($(HOST_PREFIX_1)bitmap.o): Add gt-bitmap.h.
866 * basic-block.h: Update for changes to bitmap_initialize.
867 * except.c (exception_handler_label_map): Move into...
868 (struct eh_status): Here.
869 (struct eh_region): Make 'aka' GCable.
870 (free_eh_status): Don't need to specially handle
871 exception_handler_label_map.
872 (add_ehl_entry): Update for changes to exception_handler_label_map.
873 (find_exception_handler_labels): Likewise.
874 (remove_exception_handler_label): Likewise.
875 (maybe_remove_eh_handler): Likewise.
876 (for_each_eh_label): Likewise.
877 (remove_eh_handler): Allocate 'aka' using GGC.
878 * gengtype.c (get_output_file_with_visibility): Add bitmap.h
881 * gengtype.c (write_gc_marker_routine_for_structure): Name
882 the routines 'gt_ggc_mx_*' instead of 'gt_ggc_m_*'.
883 (write_gc_types): Arrange for the tests with NULL to be inlined.
884 (write_gc_roots): Update uses of procedure pointers.
885 * ggc-common.c (gt_ggc_mx_rtx_def): Rename from gt_ggc_m_rtx_def.
887 * Makefile.in (explow.o): Add dependency on gt-explow.h.
888 (sdbout.o): Add dependency on gt-sdbout.h.
890 * emit-rtl.c (const_int_htab): Use gengtype to clear unused entries.
891 (mem_attrs_htab): Likewise.
892 (init_emit_once): Don't call ggc_add_deletable_htab.
893 * fold-const.c (size_htab): Use gengtype to clear unused entries.
894 (size_int_type_wide): Don't call ggc_add_deletable_htab.
895 * gengtype.c (finish_root_table): Add LASTNAME and TNAME
896 parameters, use them, change callers.
897 (write_gc_root): Add IF_MARKED parameter, use it, change callers.
898 (write_gc_roots): Handle 'if_marked' option.
899 (main): Don't need to call set_gc_used_type any more.
900 * ggc.h (ggc_htab_marked_p): Delete.
901 (ggc_htab_mark): Delete.
902 (struct ggc_cache_tab): New.
903 (gt_ggc_cache_rtab): New declaration.
904 * ggc-common.c (struct d_htab_root): Delete.
905 (d_htab_roots): Delete.
906 (ggc_add_deletable_htab): Delete.
907 (ggc_htab_delete): Handle new htab-deleting mechanism.
908 (ggc_mark_roots): Use new htab-deleting mechanism.
909 * tree.c (type_hash_table): Use gengtype to clear unused entries.
911 (init_obstacks): Don't call ggc_add_deletable_htab.
913 * objc/objc-act.h (struct hashed_attribute): Use gengtype.
914 (struct hashed_entry): Likewise.
915 (nst_method_hash_list): Likewise.
916 (cls_method_hash_list): Likewise.
917 (HASH_ALLOC_LIST_SIZE): Delete.
918 (ATTR_ALLOC_LIST_SIZE): Delete.
919 * objc/objc-act.c (hash_init): Use ggc to allocate
920 nst_method_hash_list, cls_method_hash_list.
921 (hash_enter): Use ggc to allocate; allocate one entry at a time.
922 (hash_add_attr): Likewise.
923 (ggc_mark_hash_table): Delete.
924 (objc_act_parse_init): Delete.
925 (objc_init): Delete reference to objc_act_parse_init.
926 * tlink.c: Replace hash.h with hashtab.h. Explicitly include
927 obstack.h. Replace references to 'struct hash_table' with htab_t.
928 (struct symbol_hash_entry): Replace hash header with key field.
929 (struct file_hash_entry): Replace hash header with key field.
930 (struct demangled_hash_entry): Replace hash header with key field.
931 (hash_string_eq): New.
932 (hash_string_hash): New.
933 (symbol_hash_newfunc): Delete.
934 (symbol_hash_lookup): Modify to use htab_t.
935 (file_hash_newfunc): Delete.
936 (file_hash_lookup): Modify to use htab_t.
937 (demangled_hash_newfunc): Delete.
938 (demangled_hash_lookup): Modify to use htab_t.
939 (tlink_init): Modify to use htab_t.
942 * ggc.h: Delete forward structure declarations.
943 Delete prototypes for deleted functions.
944 * ggc-common.c: Don't include hash.h.
945 (ggc_add_tree_hash_table_root): Delete.
946 (ggc_mark_tree_hash_table_entry): Delete.
947 (ggc_mark_tree_hash_table): Delete.
948 (ggc_mark_tree_hash_table_ptr): Delete.
949 * gengtype.c (write_gc_structure_fields): Allow param_is option.
950 (write_gc_marker_routine_for_structure): Use visibility of
951 the parameter if there is one.
952 * function.c: Replace hash.h with hashtab.h. Replace references
953 to 'struct hash_table *' with htab_t.
954 (struct insns_for_mem_entry): Include a plain key.
955 (fixup_var_refs_insns_with_hash): Update to use htab_t.
956 (insns_for_mem_newfunc): Delete.
957 (insns_for_mem_hash): Update to use htab_t.
958 (insns_for_mem_comp): Likewise.
959 (insns_for_mem_walk): Likewise.
960 * c-lang.c: Include ggc.h.
961 * Makefile.in (OBJS): Remove hash.o.
962 (c-lang.o): Add GGC_H.
963 (COLLECT2_OBJS): Remove hash.o.
964 (tlink.o): Remove hash.h, add HASHTAB_H and OBSTACK_H.
965 (ggc-common.o): Remove hash.h.
966 (function.o): Remove hash.h, add HASHTAB_H.
967 (genautomata.o): Remove hash.h, add HASHTAB_H.
969 * varasm.c (mark_const_str_htab_1): Delete.
970 (mark_const_str_htab): Delete.
971 (const_str_htab_del): Delete.
972 (const_str_htab): Use gengtype to mark.
973 (init_varasm_once): Use gengtype to mark hashtables. Use GC to
975 * tree.c (mark_tree_hashtable_entry): Delete.
976 (mark_tree_hashtable): Delete.
977 * tree.h (mark_tree_hashtable): Delete prototype.
978 * ggc.h (ggc_test_and_set_mark): Treat (void *)1 like NULL.
979 (ggc_mark): Likewise.
981 (htab_create_ggc): New.
982 * ggc-common.c (ggc_calloc): New.
983 * gengtype.h (enum typekind): Add TYPE_PARAM_STRUCT.
984 (struct type): Add param_struct structure.
985 * gengtype.c (param_structs): New.
986 (adjust_field_type): Handle param_is option.
987 (set_gc_used_type): Handle TYPE_PARAM_STRUCT.
988 (get_output_file_with_visibility): Include hashtab.h in gtype-desc.c.
989 (write_gc_structure_fields): Add new PARAM parameter. Update
990 callers. Handle use_param option. Handle TYPE_PARAM_STRUCT.
991 (write_gc_marker_routine_for_structure): Add new PARAM parameter.
992 Use it to generate function name. Update callers.
993 (write_gc_types): Add new PARAM_STRUCTS parameter. Update callers.
995 (write_gc_roots): Handle TYPE_PARAM_STRUCT. Allow param_is
997 (main): Define PTR as pointer-to-scalar. Don't specially
998 mark deferred_string or ehl_map_entry.
999 * gengtype-yacc.y (PARAM_IS): Add new token.
1000 (externstatic): Use adjust_field_type.
1001 (type_option): Add PARAM_IS.
1002 * gengtype-lex.l: Add rule for typedef of function pointers.
1003 Add rule for PARAM_IS.
1004 (IWORD): Add size_t.
1005 * except.c (exception_handler_label_map): Use gengtype to mark.
1006 (type_to_runtime_map): Likewise.
1007 (mark_ehl_map_entry): Delete.
1008 (mark_ehl_map): Delete.
1009 (init_eh): Use gengtype for roots; use GC to allocate hash tables.
1010 (t2r_mark_1): Delete.
1012 * Makefile.in (gtype-desc.o): Correct dependencies.
1013 (GTFILES): Add hashtab.h.
1014 (genautomata.o): Actually uses hashtab.h.
1016 * Makefile.in (stringpool.o): Add $(GGC_H).
1017 (dwarf2asm.o): Likewise.
1018 (GTFILES): Add hashtable.h.
1019 * c-common.h (struct c_common_identifier): Use gengtype.
1020 * c-decl.h (c_mark_tree): Delete.
1021 * c-lang.c (LANG_HOOKS_MARK_TREE): Delete.
1022 * c-tree.h (struct lang_identifier): Use gengtype.
1023 (union lang_tree_node): New.
1024 (c_mark_tree): Delete prototype.
1025 * dwarf2out.c [!DWARF2_DEBUGGING_INFO]: Define dummy
1027 * gengtype-lex.l (IWORD): Allow 'bool'.
1029 * gengtype-yacc.y (ALIAS): New token.
1030 (type_option): New rule.
1031 (option): Use type_option.
1032 * gengtype.c (process_gc_options): New.
1033 (set_gc_used_type): Use it.
1034 (write_gc_structure_fields): Add 'bitmap' parameter, change callers.
1035 Add new variable 't' to hold the type of the field being processed.
1036 Add more error checking. Use UNION_P when looking at 'desc' option.
1037 Handle language-specific structures containing other
1038 language-specific structures.
1039 (write_gc_types): Handle 'ptr_alias' option.
1040 (main): Don't need to specially output lang_type, lang_decl, lang_id2.
1041 * ggc-common.c (ggc_pending_trees): Delete.
1042 (ggc_mark_roots): Don't manipulate ggc_pending_trees.
1043 (ggc_mark_trees): Delete.
1044 (gt_ggc_m_tree_node): Delete.
1045 * ggc.h (ggc_pending_trees): Delete.
1046 (ggc_mark_tree): Make alias of gt_ggc_m_tree_node.
1047 * hashtable.h (ht_identifier): Use gengtype.
1048 * langhooks-def.h (LANG_HOOKS_MARK_TREE): Delete.
1049 * langhooks.h (struct lang_hooks): Delete mark_tree.
1050 * sdbout.c [! SDB_DEBUGGING_INFO]: Define dummy sdb_debug_hooks
1052 * system.h: Poison LANG_HOOKS_MARK_TREE.
1053 * tree.c (tree_node_structure): New.
1054 * tree.h (struct tree_common): Use gengtype.
1055 (struct tree_int_cst): Likewise.
1056 (struct tree_real_cst): Likewise.
1057 (struct tree_string): Likewise.
1058 (struct tree_complex): Likewise.
1059 (struct tree_vector): Likewise.
1060 (struct tree_identifier): Likewise.
1061 (struct tree_list): Likewise.
1062 (struct tree_vec): Likewise.
1063 (struct tree_exp): Likewise.
1064 (struct tree_block): Likewise.
1065 (struct tree_type): Likewise.
1066 (struct tree_decl): Likewise.
1067 (enum tree_structure_enum): New.
1068 (union tree_node): Use gengtype, with an alias.
1069 (tree_node_structure): Prototype.
1070 * objc/objc-lang.c (LANG_HOOKS_MARK_TREE): Delete.
1072 Merge to tag pch-merge-20020430. The LANG_HOOKS_FUNCTION_MARK
1073 macro was deleted. The LANG_HOOKS_FUNCTION_FREE macro was renamed
1074 to LANG_HOOKS_FUNCTION_FINAL.
1075 * Makefile.in (GTFILES): Add bitmap.h.
1076 * except.c (struct eh_region): Mark field 'aka' to be skipped.
1078 * config/alpha/alpha.c [TARGET_ABI_UNICOSMK]
1079 (alpha_init_machine_status): Give proper type.
1080 * Makefile.in (c-lang.o): Depend on gtype-c.h.
1081 (optabs.o): Depend on gt-optabs.h.
1082 (GTFILES): Add optabs.o.
1083 (gt-optabs.h): Add rule.
1084 * optabs.c: Include gt-optabs.h.
1086 * gengtype.c (set_gc_used_type): Correct some errors in last change.
1087 (write_gc_structure_fields): If a field which should be NULL is
1089 * c-pragma.c: Move struct align_stack and variable alignment_stack
1092 * config/xtensa/t-xtensa: Add dependencies for gt-xtensa.h.
1093 * config/xtensa/xtensa.c: Include gt-cris.h.
1094 (struct machine_function): Use gengtype to mark.
1095 * config/mmix/mmix.h (struct machine_function): Use gengtype
1097 * config/cris/t-cris: Add dependencies for gt-cris.h.
1098 * config/cris/cris.c: Include gt-cris.h.
1099 (struct machine_function): Use gengtype to mark.
1100 * config/rs6000/rs6000.h (struct machine_function): Use gengtype
1102 * doc/tm.texi (Per-Function Data): Delete references to
1103 mark_machine_status.
1104 * config/ia64/ia64.c (ia64_override_options): Don't set
1105 mark_machine_status.
1106 * config/i386/i386.c (override_options): Likewise.
1107 * config/d30v/d30v.c (d30v_init_expanders): Likewise.
1108 * config/arm/arm.c (arm_init_expanders): Likewise.
1109 * config/alpha/alpha.c (override_options): Likewise.
1110 * gengtype.h (enum gc_used_enum): Add GC_MAYBE_POINTED_TO.
1111 * gengtype.c (set_gc_used_type): Handle 'maybe_null' option.
1112 (write_gc_structure_fields): Don't handle 'really' option.
1113 Handle 'maybe_null' option.
1114 (write_gc_types): Handle 'maybe_null' option.
1115 * function.h (struct function): Don't use "really".
1116 (mark_machine_status): Delete declaration.
1117 (mark_lang_status): Delete declaration.
1118 (gt_ggc_mr_machine_function): Delete prototype.
1119 (gt_ggc_mr_language_function): Delete prototype.
1120 * function.c (mark_machine_status): Delete.
1121 (mark_lang_status): Delete.
1122 (gt_ggc_mr_machine_function): Delete.
1123 (gt_ggc_mr_language_function): Delete.
1124 * c-tree.h (mark_c_function_context): Delete prototype.
1125 * c-objc-common.c (c_objc_common_init): Don't set mark_lang_status.
1126 * c-decl.c (struct language_function): Rename from struct
1127 c_language_function. Update uses. Use gengtype to mark.
1128 (mark_c_function_context): Delete.
1129 * c-common.h (struct c_language_function): Rename from struct
1131 (mark_stmt_tree): Delete prototype.
1132 (c_mark_lang_decl): Delete prototype.
1133 (mark_c_language_function): Delete prototype.
1134 * c-common.c (mark_stmt_tree): Delete.
1135 (c_mark_lang_decl): Delete.
1136 (mark_c_language_function): Delete.
1138 * gengtype.h (enum typekind): Add TYPE_LANG_STRUCT.
1139 (lang_bitmap): New typedef. Use where appropriate.
1140 (struct type): Add gc_used field, lang_struct field.
1141 (UNION_P): New macro.
1142 (new_structure): New prototype.
1143 (find_structure): Remove 'pos' parameter. Change all callers.
1144 * gengtype-lex.l: Update for changes to find_structure.
1145 * gengtype-yacc.y (typedef_struct): Use new_structure.
1146 (yacc_ids): Suppress warning.
1147 (type): Use new_structure.
1148 * gengtype.c (string_type): Update for changes to struct type.
1149 (find_structure): Just find a structure, don't worry about
1151 (new_structure): New.
1152 (note_yacc_type): Use new_structure.
1153 (set_gc_used_type): New.
1155 (write_gc_structure_fields): Allow for pointers to TYPE_LANG_STRUCT.
1156 (write_gc_types): Handle TYPE_LANG_STRUCT.
1157 (write_gc_marker_routine_for_structure): New.
1158 (main): Call set_gc_used. Add some calls to set_gc_used_type
1159 for places where GCC doesn't use gengtype properly yet.
1160 * ggc.h (gt_ggc_m_rtx_def): Don't prototype.
1161 (gt_ggc_m_tree_node): Likewise.
1163 * varasm.c (copy_constant): Call expand_constant if we hit
1164 something we can't recognise.
1166 * ggc-common.c (ggc_mark_rtvec_children): Delete.
1167 (ggc_mark_rtx_children): Use generic name for ggc_mark_rtvec.
1168 (lang_mark_false_label_stack): Delete.
1169 * rtl.h (struct rtvec_def): Use gengtype to mark.
1170 * ggc.h (ggc_mark_rtvec): Delete.
1171 (gt_ggc_m_rtvec_def): Delete.
1172 (ggc_mark_nonnull_tree): Delete.
1173 (ggc_mark_rtvec_children): Delete prototype.
1174 (lang_mark_false_label_stack): Delete declaration.
1176 * gengtype.h (note_yacc_type): Add prototype.
1177 * gengtype.c (note_yacc_type): New function.
1178 * gengtype-lex.l: Add lexer support for yacc files.
1179 * gengtype-yacc.y (start): Extract union from yacc files.
1180 (yacc_union): New rule.
1181 (yacc_typematch): New rule.
1182 (yacc_ids): New rule.
1183 (enum_items): Tweak for efficiency.
1184 (optionseq): Likewise.
1186 * c-common.h (struct language_function): Use gengtype.
1187 (struct c_lang_decl): Likewise.
1188 * c-tree.h (struct lang_decl): Likewise.
1189 (struct lang_type): Likewise.
1190 * c-decl.c (lang_mark_tree): Use generated marker routines to mark
1191 tree language substructures.
1193 * stringpool.c (mark_ident): Replace ggc_mark_nonnull_tree with
1195 * dwarf2asm.c (mark_indirect_pool_entry): Likewise.
1197 * varasm.c (struct rtx_const): Remove 'skip' tags for scalar arrays.
1199 * stmt.c (struct nesting): Add discriminator. Use gengtype to
1200 mark. Remove 'data.block.cleanup_ptr' field.
1201 (struct stmt_status): Use usual technique to mark struct nesting.
1202 (gt_ggc_mr_nesting_cond): Delete.
1203 (gt_ggc_mr_nesting_loop): Delete.
1204 (gt_ggc_mr_nesting_block): Delete.
1205 (gt_ggc_mr_nesting_case_stmt): Delete.
1206 (expand_start_cond): Set discriminator.
1207 (expand_start_loop): Likewise.
1208 (expand_start_null_loop): Likewise.
1209 (expand_start_bindings_and_block): Set discriminator. Don't set
1211 (expand_decl_cleanup): Replace 'cleanup_ptr' with
1212 &thisblock->data.block.cleanups.
1213 (expand_start_case): Set discriminator.
1214 (expand_start_case_dummy): Set discriminator.
1216 * ggc-callbacks.c: Remove.
1218 * gengtype.h (struct type): Add 'u.s.bitmap' field.
1219 (find_structure): Add 'pos' parameter.
1220 * gengtype-lex.l: Update callers to find_structure.
1221 * gengtype-yacc.y: Likewise.
1222 * gengtype.c (find_structure): Allow for structures to be defined
1223 in multiple language backends.
1224 (get_output_file_with_visibility): Include debug.h in gtype-desc.c.
1225 (counter): Rename to gc_counter.
1226 (write_gc_structure_fields): Fail when writing out fields for
1227 an incomplete structure. Ignore arrays of scalars. Handle
1229 (write_gc_types): Reset counter for each procedure written.
1231 * stmt.c (add_case_node): Use GGC to allocate struct case_node.
1232 (free_case_nodes): Delete.
1233 (expand_end_case_type): Delete call to free_case_nodes.
1235 * Makefile.in (cselib.o): Include gt-<filename>.h.
1237 (profile.o): Likewise.
1238 (alias.o): Likewise.
1239 (GTFILES): Add alias.c, cselib.c, gcse.c, profile.c, and
1240 alphabetize backend files.
1241 (gt-alias.h, gt-cselib.h, gt-gcse.h, gt-profile.h): New rules.
1242 * alias.c: Use gengtype for roots.
1243 * c-common.h (struct stmt_tree_s): Use gengtype.
1244 * c-decl.c: Use gengtype for roots.
1245 * cselib.c: Use gengtype for roots.
1246 * expr.c: Use gengtype for roots.
1247 * fold-const.c: Use gengtype for roots.
1248 * gcse.c: Use gengtype for roots.
1249 * gengtype-lex.l: Handle typedefs of function types.
1250 Allow for empty array bounds.
1251 Allow processing to stop on initialisers.
1252 * gengtype-yacc.y (externstatic): Stop processing on initialisers.
1253 (semiequal): New rule.
1254 * gengtype.c (create_file): Tidy output files.
1255 (get_output_file_with_visibility): Fix paren warning. Fix bug
1256 involving multiple input files mapping to one output file.
1257 (write_gc_structure_fields): Skip arrays of scalars.
1258 (write_gc_types): Tidy output files.
1259 (write_gc_root): New function.
1260 (write_gc_roots): Fix bugs, add support for roots that are
1262 * ggc-common.c (ggc_mark_rtx_ptr): Delete.
1263 (ggc_mark_tree_ptr): Delete.
1264 (ggc_add_rtx_root): Delete.
1265 (ggc_add_tree_root): Delete.
1266 (ggc_del_root): Delete.
1267 * integrate.c (get_func_hard_reg_initial_val): Use ggc_alloc to
1268 allocate struct initial_value_struct.
1269 * profile.c: Use gengtype for roots.
1270 * sdbout.c: Use gengtype for roots.
1271 * varasm.c (mark_weak_decls): Delete unused prototype.
1272 (mark_const_hash_entry): Delete unused function.
1273 * config/darwin-protos.h: Use gengtype for roots.
1274 (machopic_add_gc_roots): Delete.
1275 * config/arm/arm.c: Use gengtype for roots.
1276 * config/arm/arm.h: Use gengtype for roots.
1277 * config/c4x/c4x-protos.h: Use gengtype for roots.
1278 * config/c4x/c4x.c (c4x_add_gc_roots): Delete.
1279 * config/d30v/d30v-protos.h: Use gengtype for roots.
1280 * config/d30v/d30v.c (d30v_add_gc_roots): Delete.
1281 * config/dsp16xx/dsp16xx.c (override_options): Use gengtype for roots.
1282 * config/dsp16xx/dsp16xx.h: Use gengtype for roots.
1283 * config/ia64/ia64-protos.h: Use gengtype for roots.
1284 * config/ia64/ia64.c (ia64_add_gc_roots): Delete.
1285 * config/m68hc11/m68hc11-protos.h: Use gengtype for roots.
1286 * config/m68hc11/m68hc11.c (z_reg): Make global.
1287 (z_reg_qi): Make global.
1288 (m68hc11_add_gc_roots): Delete.
1289 * config/mcore/mcore-protos.h: Use gengtype for roots.
1290 * config/mcore/mcore.c (mcore_add_gc_roots): Delete.
1291 * config/mips/mips.c (mips_add_gc_roots): Delete.
1292 * config/mips/mips.h: Use gengtype for roots.
1293 * config/mmix/mmix.c (override_options): Use gengtype for roots.
1294 * config/mmix/mmix.h: Use gengtype for roots.
1295 * config/mn10200/mn10200.c (asm_file_start): Use gengtype for roots.
1296 * config/mn10200/mn10200.h: Use gengtype for roots.
1297 * config/pa/pa.c: Use gengtype for roots, marking.
1298 (struct deferred_plabel): Use GGC, gengtype.
1299 (pa_add_gc_roots): Delete.
1300 (mark_deferred_plabels): Delete.
1301 * config/pj/pj-protos.h: Use gengtype for roots.
1302 * config/pj/pj.h (OVERRIDE_OPTIONS): Don't define.
1303 * config/rs6000/rs6000.c: Use gengtype for roots. Don't call
1304 machopic_add_gc_roots.
1305 * config/rs6000/rs6000.h: Use gengtype for roots.
1306 * config/rs6000/t-darwin (darwin.o): Add dependency on gt-darwin.h.
1307 (gt-darwin.h): Add rule.
1308 * config/sh/sh.c: Use gengtype for roots.
1309 * config/sh/t-sh ($(out_object_file)): Add dependency on gt-sh.h.
1310 (gt-sh.h): Add rule.
1311 * config/sparc/sparc.c: Use gengtype for roots.
1312 (sparc_add_gc_roots): Delete.
1313 (struct ultrasparc_pipeline_state): Use GGC, gengtype.
1314 (mark_ultrasparc_pipeline_state): Delete.
1315 * config/sparc/sparc.h: Use gengtype for roots.
1317 * Makefile.in (c-parse.o): Update dependencies.
1318 (c-common.o): Likewise.
1319 (GTFILES): Add c-common.h, c-tree.h, c-common.c, c-parse.in.
1320 Add dependencies for the files they generate.
1321 * c-common.c: Replace ggc_add_* uses with GTY annotations.
1322 * c-common.h: Likewise.
1323 * c-decl.c: Likewise.
1324 (gt_ggc_mp_binding_level): Delete.
1325 * c-lang.c: Include gtype-c.h.
1326 * c-parse.in: Replace ggc_add_* uses with GTY annotations. Include
1328 * c-pragma.h: Replace ggc_add_* uses with GTY annotations.
1329 (gt_ggc_mp_align_stack): Delete.
1330 * c-tree.h: Replace ggc_add_* uses with GTY annotations.
1331 * function.c: Replace ggc_add_* uses with GTY annotations.
1332 (gt_ggc_mp_function): Delete.
1333 * function.h: Replace ggc_add_* uses with GTY annotations.
1334 * gengtype.c (lang_names): New.
1335 (NUM_BASE_FILES): New.
1336 (open_base_files): Create language base files.
1338 (get_file_basename): New.
1339 (get_base_file_bitmap): New.
1340 (get_output_file_with_visibility): Rename from get_output_file.
1341 Add more mappings for various C/Objc filenames.
1342 (finish_root_table): New.
1343 (write_gc_roots): Handle dependencies and scoping properly.
1344 * gengtype.h: Add prototypes for new functions.
1345 * ggc-common.c (struct deletable_root): Delete.
1346 (deletables): Delete.
1347 (ggc_add_deletable_root): Delete.
1348 (ggc_mark_roots): No need to deal with deleted functionality.
1349 * ggc.h (ggc_add_deletable_root): Delete prototype.
1350 * objc/Make-lang.in (objc-act.o): Add gtype-objc.h dependency.
1351 (gtype-objc.h): Add rule to create.
1352 * objc/config-lang.in (gtfiles): New.
1353 * objc/objc-act.c: Allocate imp_list using GGC. Replace uses of
1354 ggc_add_* with GTY markers. Include gtype-objc.h.
1355 (ggc_mark_imp_list): Delete.
1356 * objc/objc-act.h: Replace uses of ggc_add_* with GTY markers.
1357 * objc/objc-lang.c: Random Whitespace Change.
1359 * except.h (exception_handler_labels): Delete.
1360 (get_exception_handler_labels): New.
1361 * except.c (exception_handler_labels): Delete.
1362 (struct eh_status): Add exception_handler_labels field.
1363 (doing_eh): Don't add exception_handler_labels as root.
1364 (free_eh_status): Don't need to free exception_handler_labels.
1365 (get_exception_handler_labels): New.
1366 (find_exception_handler_labels): Update for move of
1367 exception_handler_labels.
1368 (remove_exception_handler_label): Likewise.
1369 * cfgrtl.c (can_delete_label_p): Use get_exception_handler_labels.
1370 * jump.c (rebuild_jump_labels): Likewise.
1371 * loop.c (find_and_verify_loops): Likewise.
1372 * sched-rgn.c (is_cfg_nonregular): Likewise.
1374 * gengtype.c (write_gc_structure_fields): Handle variable-length
1377 * varasm.c (struct weak_syms): Use GGC, gengtype.
1378 (mark_weak_decls): Delete.
1379 (weak_decls): Likewise.
1380 (add_weak): Likewise.
1381 (remove_from_pending_weak_list): Likewise.
1382 (init_varasm_once): Likewise.
1384 * Makefile.in (gtype-desc.o): Add libfuncs.h dependency.
1385 (GTFILES): Add tree.h, libfuncs.h, emit-rtl.c, explow.c,
1386 stor-layout.c, regclass.c, and lists.c.
1387 Add dependencies of gt-emit-rtl.h gt-explow.h gt-stor-layout.h
1388 gt-regclass.h and gt-lists.h on s-gtype.
1389 * emit-rtl.c: Use gengtype for roots. Include gt-emit-rtl.h.
1390 * except.c: Use gengtype for roots.
1391 * explow.c: Use gengtype for roots. Include gt-explow.h.
1392 * expr.h (init_stor_layout_once): Delete prototype.
1393 * function.c: Use gengtype for roots.
1394 * gengtype-lex.l: Add ENT_EXTERNSTATIC lexing.
1395 * gengtype-yacc.y (start): Can also be an externstatic.
1396 (externstatic): New production.
1397 (struct_fields): Correct array bounds inversion for 2-d arrays.
1398 * gengtype.c (variables): New variable.
1399 (note_variable): New function.
1400 (get_output_file): Include libfuncs.h into gtype-desc.c.
1401 (get_output_file_name): New function.
1402 (write_gc_structure_fields): Suppress warnings.
1403 (write_gc_types): Make static.
1404 (put_mangled_filename): New function.
1405 (write_gc_roots): New function.
1406 (main): Call write_gc_roots.
1407 * gengtype.h (note_variable): Prototype.
1408 (get_output_file_name): Prototype.
1409 (write_gc_types): Delete prototype.
1410 * ggc.h: Clean up unnecessary structure predefinitions.
1411 (struct ggc_root_tab): Define.
1412 (gt_ggc_m_rtx_def): Make function, not macro.
1413 (gt_ggc_m_tree_node): Likewise.
1414 * libfuncs.h: Use gengtype for roots.
1415 * lists.c: Use gengtype for roots. Include gt-lists.h.
1416 (init_EXPR_INSN_LIST_cache): Delete.
1417 * optabs.c: Use gengtype for roots.
1418 (gt_ggc_mp_optab): Delete.
1419 * optabs.h: Use gengtype for roots.
1420 * regclass.c: Use gengtype for roots. Include gt-regclass.h.
1421 * rtl.h: Use gengtype for roots.
1422 (init_EXPR_INSN_LIST_cache): Delete prototype.
1423 * stor-layout.c: Use gengtype for roots.
1424 Include gt-stor-layout.h.
1425 (init_stor_layout_once): Delete.
1426 * toplev.c: Use gengtype for roots. Delete calls to deleted
1428 * tree.c: Use gengtype for roots.
1429 * tree.h: Use gengtype for roots.
1430 * varasm.c: Use gengtype for roots.
1432 * Makefile.in (GTFILES): Add @all_gtfiles@.
1433 * configure: Regenerate.
1434 * configure.in: Construct all_gtfiles from the gtfiles definitions
1436 * gengtype-yacc.y (type): Warn about duplicate structure names.
1437 * gengtype.c (get_output_file): Handle .c files in language
1440 * Makefile.in (GTFILES): Run gengtype on all the config files
1441 and on the target .c file.
1442 * except.c (mark_eh_region): Delete.
1443 (init_eh_for_function): Use GGC on struct eh_status.
1444 (mark_eh_status): Delete.
1445 (free_eh_status): Use GGC.
1446 (expand_eh_region_start): Use GGC to
1447 (collect_eh_region_array): Allocate last_region_number using GGC.
1448 (duplicate_eh_region_1): Use GGC to allocate struct eh_region.
1449 (remove_eh_handler): Let GGC free struct eh_region.
1450 (add_call_site): Use GGC to reallocate call_site_record array.
1451 * function.c (init_machine_status): Update calling sequence.
1452 (mark_machine_status): Likewise.
1453 (mark_lang_status): Likewise.
1454 (prepare_function_start): Update init_machine_status call.
1455 (mark_function_status): Delete.
1456 (maybe_mark_struct_function): Delete.
1457 (ggc_mark_struct_function): Delete.
1458 (gt_ggc_mp_function): New.
1459 (gt_ggc_mr_machine_function): New.
1460 (gt_ggc_mr_language_function): New.
1461 (init_function_once): Use canonical names.
1462 * function.h (struct function): Use gengtype.
1463 (init_machine_status): Return the structure.
1464 (mark_machine_status): Take a 'void *'.
1465 (mark_lang_status): Likewise.
1466 * ggc-common.c (ggc_mark_trees): Use canonical name for
1467 ggc_mark_struct_function.
1468 * tree.h (ggc_mark_struct_function): Delete prototype.
1469 * config/alpha/alpha.c (alpha_mark_machine_status): Delete.
1470 (alpha_init_machine_status): Likewise.
1471 (override_options): Use canonical name for alpha_mark_machine_status.
1472 * config/alpha/unicosmk.h (struct machine_function): Use gengtype.
1473 * config/arm/arm.h (struct machine_function): Use gengtype.
1474 * config/arm/arm.c (arm_mark_machine_status): Delete.
1475 (arm_init_machine_status): Update calling sequence.
1476 (arm_init_expanders): Use canonical name for arm_mark_machine_status.
1477 * config/cris/cris.c (cris_init_machine_status): Update
1479 * config/d30v/d30v.h (struct machine_function): Use gengtype.
1480 * config/d30v/d30v.c (d30v_init_machine_status): Update
1482 (d30v_mark_machine_status): Delete.
1483 * config/i386/i386.c: Include gt-i386.h.
1484 (struct machine_function): Use gengtype.
1485 (ix86_init_machine_status): Update calling sequence.
1486 (ix86_mark_machine_status): Delete.
1487 (override_options): Use canonical namke for ix86_mark_machine_status.
1488 * config/ia64/ia64.h (struct machine_function): Use gengtype.
1489 * config/ia64/ia64.c (ia64_init_machine_status): Update calling
1491 (ia64_mark_machine_status): Delete.
1492 (ia64_override_options): Use canonical name for
1493 ia64_mark_machine_status.
1494 * config/mmix/mmix.c (mmix_init_machine_status): Update calling
1496 * config/rs6000/rs6000.c (rs6000_init_machine_status): Likewise.
1497 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
1498 * gengtype.c (get_output_file): Fix warning.
1499 (main): Add prototype to suppress warning.
1500 * tree.c: Remove tree_hash_mark prototype.
1502 * tree.h (init_stmt): Delete prototype.
1503 * toplev.c (lang_independent_init): Don't call init_stmt.
1504 * stmt.c (ALLOC_NESTING): Use GGC for 'struct nesting'.
1505 (stmt_obstack): Delete.
1506 (POPSTACK): No need to free 'struct nesting'.
1507 (gt_ggc_mr_nesting_cond): Use canonical names.
1508 (gt_ggc_mr_nesting_loop): Use canonical names.
1509 (gt_ggc_mr_nesting_block): Use canonical names.
1510 (gt_ggc_mr_nesting_case_stmt): Use canonical names.
1511 (mark_stmt_status): Delete.
1512 (init_stmt): Delete.
1513 (clear_last_expr): Clear both last_expr_type and last_expr_value.
1514 Use it everywhere that last_expr_type was cleared.
1515 * lists.c (init_EXPR_INSN_LIST_cache): Use ggc_add_deletable_root.
1516 (zap_lists): Delete.
1517 * ggc.h (ggc_add_deletable_root): Prototype.
1518 (mark_stmt_status): Remove prototype.
1519 * ggc-common.c (ggc_add_deletable_root): New.
1520 (ggc_mark_roots): Handle deletable roots.
1521 * function.c (ggc_mark_struct_function): Use canonical name
1522 for mark_stmt_status.
1523 * emit-rtl.c (free_sequence_stack): New.
1524 (start_sequence): Use a freelist for sequences.
1525 (end_sequence): Likewise.
1526 (init_emit_once): Add free_sequence_stack as a deleteable root.
1527 * c-pragma.c Include gt-c-pragma.h.
1528 (struct align_stack): Use gengtype.
1529 (push_alignment): Use GGC for struct align_stack.
1530 (mark_align_stack): Delete.
1531 (gt_ggc_mp_align_stack): New.
1532 (init_pragma): Use canonical name for mark_align_stack.
1533 * c-decl.c: Include gt-c-decl.h.
1534 (struct binding_level): Use gengtype.
1535 (make_binding_level): Use GGC; handle the freelist here.
1536 (pop_binding_level): New.
1537 (pushlevel): Move code into make_binding_level.
1538 (push_label_level): Likewise.
1539 (poplevel): Move code into pop_binding_level.
1540 (pop_label_level): Likewise.
1541 (mark_binding_level): Delete.
1542 (gt_ggc_mp_binding_level): New.
1543 (c_init_decl_processing): Use canonical name for mark_binding_level.
1544 Add free_binding_level as deletable root.
1545 (mark_c_function_context): Use canonical name for mark_binding_level.
1546 * Makefile.in (c-decl.o): Add gt-c-decl.h.
1547 (c-pragma.o): Add gt-c-pragma.h.
1548 (GTFILES): Add c-decl.c and c-pragma.c.
1549 (gt-c-decl.h, gt-c-pragma.h): Create using gengtype.
1551 * tree.c (struct type_hash): Use gengtype.
1552 (init_obstacks): Use canonical name for type_hash_mark.
1553 (type_hash_mark): Delete.
1555 * rtl.h (struct mem_attrs): Use gengtype.
1556 * optabs.h (struct optab): Use gengtype.
1557 * optabs.c (expand_binop): Squish signed/unsigned warning.
1558 (mark_optab): Make local, use canonical name, use autogenerated
1560 (init_optabs): Use canonical name for mark_optab.
1561 (new_optab): Use GGC to allocate optabs.
1562 * ggc.h: Delete mark_optab prototype.
1563 * ggc-common.c (ggc_mark_rtx_children): Use canonical name for
1564 mem_attrs marker procedure.
1565 * gengtype.c (get_output_file): Include headers in gtype-desc.c
1566 explicitly rather than deducing them from file names.
1567 (write_gc_structure_fields): Handle arrays of structures.
1568 (main): Return non-zero exit code if errors occur during output.
1569 * emit-rtl.c (mem_attrs_mark): Delete.
1570 (init_emit_once): Use canonical name for mem_attrs marker procedure.
1571 * Makefile.in (gtype-desc.o): Explicitly name dependencies.
1572 (tree.o): Depend on gt-tree.h.
1573 (GTFILES): Add rtl.h, optabs.h, tree.c.
1574 (gt-tree.h): Add it to s-gtype rule.
1576 * .cvsignore: Ignore gengtype flex/bison generated files.
1577 * Makefile.in (GGC_H): Add gtype-desc.h.
1578 (OBJS): Add gtype-desc.o.
1579 (GEN): Add gengtype.
1580 (STAGESTUFF): Add gengtype.
1581 (varasm.o): Add gt-varasm.h.
1582 (stmt.o): Add gt-stmt.h.
1583 (except.o): Add gt-except.h.
1584 (integrate.o): Add gt-integrate.h.
1586 Add new rules for new files.
1587 * configure: Regenerate.
1588 * configure.in: Correct defaults.h paths.
1589 * emit-rtl.c (mark_sequence_stack): Delete.
1590 (mark_emit_status): Delete.
1591 (start_sequence): Allocate sequence structures using GGC.
1592 (end_sequence): Allocate sequence structures using GGC.
1593 * except.c: Use gengtype for various structures. Include
1595 * expr.c (mark_expr_status): Delete.
1596 * function.c: Use gengtype for various structures. Include
1598 (mark_function_status): Use standard gt_ggc names for marker functions.
1599 (ggc_mark_struct_function): Likewise.
1600 * function.h: Use gengtype for various structures.
1601 * gengtype-lex.l: New file.
1602 * gengtype-yacc.y: New file.
1603 * gengtype.c: New file.
1604 * gengtype.h: New file.
1605 * ggc.h: Include gtype-desc.h. Alias some marker procedures to
1606 the standard names. Remove some now-unnecessary prototypes.
1607 * integrate.c: Use gengtype for various structures. Include
1609 (mark_hard_reg_initial_vals): Delete.
1610 * integrate.h (mark_hard_reg_initial_vals): Delete.
1611 * stmt.c: Use gengtype for various structures. Include
1613 (mark_case_node): Delete.
1614 (mark_goto_fixup): Delete.
1615 (mark_stmt_status): Use standard gt_ggc names for marker functions.
1616 * system.h: Define GTY to empty. In flex/bison files,
1617 don't poison malloc or realloc, instead just define them to
1618 xmalloc and xrealloc.
1619 * varasm.c: Use gengtype for various structures. Include
1620 gt-varasm.h. Use standard gt_ggc names for marker functions.
1621 (mark_pool_constant): Delete.
1622 (mark_varasm_status): Delete.
1623 (decode_rtx_const): #if 0 out non-typesafe hack.
1625 * function.h (free_lang_status): Mark as obsolete.
1626 * function.c (free_lang_status): Mark as obsolete.
1627 * c-decl.c (push_c_function_context): Use GC to allocate and free
1628 struct language_function.
1629 (pop_c_function_context): Likewise.
1630 * c-common.c (mark_c_language_function): Mark struct
1633 * doc/tm.texi (Per-Function Data): Don't document free_machine_status.
1634 Document that the machine_function structures must be allocated
1635 using GC. Update mark_machine_status documentation.
1636 * function.h: Don't declare free_machine_status.
1637 * function.c (free_machine_status): Don't define.
1638 (free_after_compilation): Don't call free_machine_status.
1639 (ggc_mark_struct_function): Mark f->machine. Call
1640 mark_machine_status only on non-NULL pointers.
1641 * system.h: Poison free_machine_status.
1642 * config/xtensa/xtensa.c (xtensa_init_machine_status): Use GC on
1643 struct machine_function.
1644 (xtensa_free_machine_status): Delete.
1645 (override_options): Don't set free_machine_status.
1646 * config/rs6000/rs6000.c (rs6000_override_options): Don't set
1647 free_machine_status.
1648 (rs6000_init_machine_status): Use GC on struct machine_function.
1649 (rs6000_free_machine_status): Delete.
1650 * config/ia64/ia64.c (ia64_init_machine_status): Use GC on struct
1652 (ia64_mark_machine_status): Likewise.
1653 (ia64_free_machine_status): Delete.
1654 (ia64_override_options): Don't set free_machine_status.
1655 * config/i386/i386.c (override_options): Don't set
1656 free_machine_status.
1657 (ix86_init_machine_status): Use GC on struct machine_function.
1658 (ix86_mark_machine_status): Likewise.
1659 (ix86_free_machine_status): Delete.
1660 * config/d30v/d30v.c: (d30v_init_machine_status): Use GC on struct
1662 (d30v_mark_machine_status): Likewise.
1663 (d30v_free_machine_status): Delete.
1664 (d30v_init_expanders): Don't set free_machine_status.
1665 * config/arm/arm.c (arm_mark_machine_status): Use GC on struct
1667 (arm_init_machine_status): Likewise.
1668 (arm_free_machine_status): Delete.
1669 (arm_init_expanders): Don't set free_machine_status.
1670 * config/alpha/alpha.c (override_options): Don't set
1671 free_machine_status.
1672 (alpha_init_machine_status): Use GC on struct machine_function.
1673 (alpha_mark_machine_status): Likewise.
1674 (alpha_free_machine_status): Delete.
1676 * varasm.c (compare_constant): Fix typo.
1678 * varasm.c: Don't include obstack.h.
1679 (struct varasm_status): x_const_rtx_hash_table is a hash of rtxes.
1680 (struct rtx_const): Give substructures names, improve formatting.
1681 (struct constant_descriptor): Delete.
1682 (struct constant_descriptor_tree): New, based on constant_descriptor.
1683 (const_hash_table): Is a hash table of trees.
1684 (mark_const_hash_entry): Is used for hashes of trees. Mark
1685 constant_descriptor_tree structure.
1686 (mark_const_str_htab_1): Mark deferred_string structure.
1687 (compare_constant): Rewrite to compare trees.
1688 (compare_constant_1): Delete.
1689 (record_constant): Delete.
1690 (record_constant_1): Delete.
1691 (output_constant_def): Use struct constant_descriptor_tree.
1692 Don't duplicate trees twice.
1693 (struct constant_descriptor_rtx): New.
1694 (struct pool_constant): Used for rtx constants.
1695 (init_varasm_status): Update for change to struct varasm_status.
1696 (mark_varasm_status): Likewise.
1697 (free_varasm_status): Delete.
1698 (compare_constant_rtx): Rewrite to handle constant_descriptor_rtx.
1699 (record_constant_rtx): Likewise.
1700 (mem_for_const_double): Update to use struct constant_descriptor_rtx.
1701 (force_const_mem): Likewise.
1702 * Makefile.in (varasm.o): Doesn't depend on obstack.h.
1703 * function.c (free_after_compilation): Don't use free_varasm_status.
1704 * function.h: Don't prototype free_varasm_status.
1706 * ggc-common.c (ggc_realloc): Handle X being NULL.
1708 * ggc-common.c (ggc_realloc): New function.
1709 * ggc.h: Prototype it.
1710 * emit-rtl.c (free_emit_status): Delete.
1711 (init_emit): Allocate emit subarrays using GC.
1712 (gen_reg_rtx): Reallocate subarrays using GC.
1713 (init_emit): Use GC to allocate 'struct emit_status' and its
1715 (mark_emit_status): Mark structure and its subarrays.
1716 * stmt.c (free_stmt_status): Delete.
1717 * expr.c (free_expr_status): Delete.
1718 * function.h: Remove prototypes for deleted functions.
1719 * function.c (free_after_compilation): Don't use deleted functions.
1720 Don't call free() on x_parm_reg_stack_loc.
1721 (free_after_parsing): Don't use free_stmt_status.
1722 (assign_parms): Use GC to allocate and resize x_parm_reg_stack_loc.
1723 (mark_function_status): Mark x_parm_reg_stack_loc.
1725 * varasm.c (init_varasm_status): Use GC to allocate
1726 'struct varasm_status' and its fields x_const_rtx_hash_table
1727 and x_const_rtx_sym_hash_table.
1728 (mark_varasm_status): Mark them.
1729 (free_varasm_status): Use GC to free them.
1730 * expr.c (init_expr): Use GC to allocate 'struct expr_status'.
1731 (mark_expr_status): Mark the structure itself.
1732 (free_expr_status): Use GC to free the structure.
1733 * stmt.c (free_stmt_status): Use GC to free 'struct stmt_status'.
1734 (mark_stmt_status): Mark the 'struct stmt_status' itself.
1735 (init_stmt_for_function): Allocate the structure for GC.
1737 * dwarf2out.c (lookup_type_die): Use TYPE_SYMTAB_DIE.
1738 (equate_type_number_to_die): Likewise.
1739 * tree.h (TYPE_SYMTAB_DIE): New macro.
1740 (struct die_struct): Predeclare.
1741 (struct tree_type): Add field symtab.die. Add a tag
1742 to the union type of field symtab.
1744 * varray.h (VARRAY_RTVEC_INIT): A varray of rtvec contains
1745 'struct rtvec_def *', not 'struct rtvec_def'.
1747 * function.h (original_arg_vector): Make a real rtvec.
1748 * function.c (ggc_mark_struct_function): Adjust.
1749 * integrate.c (expand_inline_function): Adjust.
1751 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
1753 * config.gcc (sh5-*-netbsd*, sh5l*-*-netbsd*)
1754 (sh64-*-netbsd*, sh64l*-*-netbsd*): New targets.
1755 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN)
1756 (TARGET_VERSION_CPU): Define according to the
1758 (TARGET_VERSION): Use TARGET_VERSION_ENDIAN and
1760 (TARGET_OS_CPP_BUILTINS): Use NETBSD_OS_CPP_BUILTINS_LP64
1761 if TARGET_SHMEDIA64.
1762 (LINK_DEFAULT_CPU_EMUL): Define according to the
1764 (SUBTARGET_LINK_EMUL_SUFFIX): Define.
1765 (SUBTARGET_LINK_SPEC): Define.
1766 (LINK_SPEC): Use SH_LINK_SPEC.
1768 (TARGET_DEFAULT): Use TARGET_CPU_DEFAULT.
1769 (FUNCTION_PROFILER): Add cases for TARGET_SHMEDIA32
1770 and TARGET_SHMEDIA64 which abort, for now.
1771 * config/sh/t-netbsd-sh5: New file.
1772 * config/sh/t-netbsd-sh5-32: New file.
1773 * config/sh/t-netbsd-sh5-64: New file.
1775 2002-06-03 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
1776 Richard Henderson <rth@redhat.com>
1778 * config/alpha/alpha.c (reg_or_const_int_operand): New.
1779 (some_operand, input_operand): Accept CONST_VECTOR.
1780 (alpha_extra_constraint): Add 'W'.
1781 (alpha_expand_zap_mask): New.
1782 (alpha_expand_builtin_vector_binop): New.
1783 (enum alpha_builtin): New.
1784 (zero_arg_builtins, one_arg_builtins, two_arg_builtins): New.
1785 (alpha_init_builtins, alpha_expand_builtin): New.
1786 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): New.
1787 * config/alpha/alpha.h (VECTOR_MODE_SUPPORTED_P): New.
1788 (PREDICATE_CODES): Update.
1789 * config/alpha/alpha-protos.h: Update.
1790 * config/alpha/alpha.md (UNSPEC_CMPBGE, UNSPEC_ZAP,
1791 UNSPEC_AMASK, UNSPEC_IMPLVER, UNSPEC_PERR, UNSPECV_RPCC): New.
1792 (movv8qi, movv8qi_fix, movv8qi_nofix): New.
1793 (movv4hi, movv4hi_fix, movv4hi_nofix): New.
1794 (movv2si, movv2si_fix, movv2si_nofix): New.
1795 (uminv8qi3, sminv8qi3, uminv4hi3, sminv4hi3): New.
1796 (umaxv8qi3, smaxv8qi3, umaxv4hi3, smaxv4hi3): New.
1797 (builtin_cmpbge, builtin_extql, builtin_extqh, builtin_zap,
1798 builtin_zap_1, builtin_zapnot, builtin_zapnot_1, builtin_amask,
1799 builtin_implver, builtin_rpcc, builtin_minub8, builtin_minsb8,
1800 builtin_minuw4, builtin_minsw4, builtin_maxub8, builtin_maxsb8,
1801 builtin_maxuw4, builtin_maxsw4, builtin_perr, builtin_pklb,
1802 pklb, builtin_pkwb, pkwb, builtin_unpkbl, unpkbl,
1803 builtin_unpkbw, unpkbw): New.
1804 * doc/extend.texi (Alpha Built-in Functions): New.
1806 2002-06-03 Richard Henderson <rth@redhat.com>
1808 * crtstuff.c (__EH_FRAME_BEGIN__): Conditionalize on
1809 USE_EH_FRAME_REGISTRY, not EH_FRAME_SECTION_NAME.
1811 2002-06-03 Richard Henderson <rth@redhat.com>
1813 * config/alpha/alpha-protos.h: Eliminate unneeded ifdefs.
1815 * config/alpha/alpha.c (reg_or_0_operand): Use CONST0_RTX.
1816 (const0_operand): New.
1817 (reg_or_fp0_operand, fp0_operand): Remove.
1818 * config/alpha/alpha.h (PREDICATE_CODES): Update.
1819 * config/alpha/alpha-protos.h: Update.
1820 * config/alpha/alpha.md: Replace all uses of reg_or_fp0_operand
1821 and fp0_operand with reg_or_0_operand and const0_operand.
1823 2002-06-03 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
1825 * alias.c (nonoverlapping_memrefs_p): Fix off by one error.
1827 2002-06-03 Roger Sayle <roger@eyesopen.com>
1829 * gcse.c (cprop_jump): Use single_set to get the pattern
1830 from the setcc argument.
1832 2002-06-03 Gabriel Dos Reis <gdr@codesourcery.com>
1834 * diagnostic.h (diagnostic_count): Move from output_buffer to
1836 (diagnostic_kind_count): Adjust definition.
1838 Mon Jun 3 19:11:53 CEST 2002 Jan Hubicka <jh@suse.cz>
1840 * except.c (except.c): Do not rebuild CFG.
1841 * toplev.c (rest_of_compilation): Recompute CFG after sibcall
1844 Mon Jun 3 11:53:01 CEST 2002 Jan Hubicka <jh@suse.cz>
1846 * integrate.c (copy_insn_list): Properly pace the INSN_SCOPE copies.
1847 * toplev.c: Include cfglahout.h
1848 * Makefile.in (toplev.c): Add dependnecy.
1850 2002-06-03 Neil Booth <neil@daikokuya.demon.co.uk>
1852 * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): New.
1853 (CPP_CPU32_SPEC, CPP_CPU64_SPEC): Kill.
1854 (CPP_CPUCOMMON_SPEC): Rename CPP_CPU_SPEC.
1856 2002-06-03 Jason Thorpe <thorpej@wasabisystems.com>
1858 * config/ns32k/netbsd.h: Update copyright years.
1859 (TARGET_OS_CPP_BUILTINS): Define.
1860 (CPP_PREDEFINES): Remove.
1861 * config/ns32k/ns32k.h (CPP_PREDEFINES): Remove.
1862 (TARGET_CPU_CPP_BUILTINS): Define.
1864 2002-06-02 Kazu Hirata <kazu@cs.umass.edu>
1866 * emit-rtl.c: Fix formatting.
1867 * errors.h: Likewise.
1868 * except.c: Likewise.
1869 * explow.c: Likewise.
1870 * expmed.c: Likewise.
1874 2002-06-02 Kazu Hirata <kazu@cs.umass.edu>
1876 * config/h8300/elf.h: Fix formatting.
1877 * config/h8300/rtems.h: Likewise.
1879 2002-06-03 Jason Thorpe <thorpej@wasabisystems.com>
1881 * config/rs6000/netbsd.h (DRAFT_V4_STRUCT_RET): Remove.
1883 2002-06-02 Tom Tromey <tromey@redhat.com>
1885 * fixinc/fixincl.x: Rebuilt.
1886 * fixinc/inclhack.def (thread_keyword): Match `*__thread'.
1888 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
1891 * i370.h (TARGET_CPU_CPP_BUILTINS): Use.
1892 * linux.h: Use TARGET_OS_CPP_BUILTINS rather than CPP_PREDEFINES.
1896 Mon Jun 3 00:18:20 CEST 2002 Jan Hubicka <jh@suse.cz>
1898 * final.c (final): Allow notes to not have computed addresses;
1899 kill no longer needed STACK_REGS ifdef.
1901 2002-06-02 Richard Henderson <rth@redhat.com>
1903 * gcse.c (bypass_conditional_jumps): Fix typo last change.
1905 Sun Jun 2 23:02:11 CEST 2002 Jan Hubicka <jh@suse.cz>
1907 * loop.c (emit_prefetch_instructions): Properly place the address
1910 Sun Jun 2 22:56:48 CEST 2002 Jan Hubicka <jh@suse.cz>
1912 * basic-block.h (basic_block_for_insn, BLOCK_FOR_INSN): Kill.
1913 (set_block_for_insn): Turn into macro.
1914 * cfgbuild.c (find_basic_block): Do not clear basic_block_for_insn.
1915 * cfglayout.c (insn_scopes): Kill.
1916 (scope_to_insns_initialize): Do not use insn_scopes.
1917 (scope_to_insns_finalize): Likewise.
1918 (duplicate_insn_chain): Likewise.
1919 (cfg_layout_initialize, cfg_layout_finalize): Do not turn scopes to notes.
1920 * cfgrtl.c (basic_block_for_insn): Kill.
1921 (delete_insn_and_edges, delete_insn_chain_and_edges): Simplify.
1922 (create_basic_block_structure): Use reorder_insns.
1923 (compute_bb_for_insn): Do not use basic_block_for_insn.
1924 (merge_blocks_nomove): Likewise.
1925 (update_bb_for_insn): Likewise.
1926 (verify_flow_info): Likewise.
1927 (set_block_for_insn): Kill.
1928 * combine.c (try_combine): Update gen_rtx_INSN call.
1929 * emit-rtl.c (gen_label_rtx): Update gen_rtx_CODE_LABEL call.
1930 (mark_insn_raw, make_jump_insn_raw, make_call_insn_raw): Clear
1932 (add_insn_after, add_insn_before, remove_insn, reorder_insns): Simplify.
1933 (emit_note_before, emit_note_after, emit_line_note_after, emit_note):
1935 (emit_insns_after): Simplify.
1936 (emit_copy_of_insn_after): Copy scope.
1937 * final.c (final_start_function): Lower scopes.
1938 * flow.c (check_function_return_warnings): Do not rely on deleted insn.
1939 * integrate.c (copy_insn_list): Cope scopes.
1940 * jump.c (duplicate_loop_exit_test): LIkewise; simplify.
1941 * loop.c (loop_optimize): Do not care block notes.
1942 * print-rtl.c (print_rtx): Print BB.
1943 * recog.c (apply_change_group): Simplify.
1944 * rtl.c (copy_rtx): Handle 'B'.
1945 * rtl.def (INSN, CALL_INSN, JUMP_INSN, NOTE): Add extra fields.
1946 * rtl.h (Field accessors): Update indexes.
1947 * sched-ebb.c (schedule_ebbs): Do not lower notes.
1948 * sched-rgn.c (schedule_insns): Likewise.
1949 * toplev.c (rest_of_compilation): Lower notes.
1950 * unroll.c (unroll_loop): Do not care scoping notes.
1951 (copy_loop_body): Copy scopes.
1953 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
1956 * elf.h: Use TARGET_OS_CPP_BUILTINS rather than
1958 * rtems.h: Similarly.
1959 * h8300.h (CPP_PREDEFINES, CPP_SPEC, SUBTARGET_CPP_SPEC,
1960 EXTRA_SPECS, SUBTARGET_EXTRA_SPECS): Remove.
1961 (TARGET_CPU_CPP_BUILTINS): Use.
1963 2002-06-02 Richard Henderson <rth@redhat.com>
1965 * alias.c: Include target.h.
1966 (mark_constant_function): Use targetm.binds_local_p instead
1967 of checking TREE_PUBLIC ourselves.
1968 * Makefile.in (alias.o): Add TARGET_H.
1970 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
1972 * c-lex.c: Update copyright and file description.
1974 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
1976 * config/fr30/fr30.h: Update to new CPP macros.
1978 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
1980 * config/dsp16xx/dsp16xx.h: Update to new CPP macros.
1982 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
1983 Zack Weinberg <zack@codesourcery.com>
1985 * c-common.c (c_common_init): Override cpplib's default
1986 warn_long_long setting.
1987 * c-lex.c (lex_number): Replace with interpret_integer,
1988 interpret_float, narrowest_unsigned_type and
1989 narrowest_signed_type, taking advantage of the new
1990 cpplib functionality.
1991 * cpperror.c (_cpp_begin_message): If a warning is turned
1992 into an error, avoid printing "warning:".
1993 * cppexp.c (cpp_num_sign_extend): New.
1994 * cppinit.c: Update comment.
1995 * cpplib.h (cpp_num_sign_extend): New.
1996 * tree.h: Update comment.
1998 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
2000 * diagnostic.h (struct diagnostic_context): Add new member
2002 (internal_error_function): Remove declaration.
2003 * diagnostic.c (internal_error_function): Remove definition..
2004 (internal_error): Adjust use.
2006 2002-06-02 Richard Henderson <rth@redhat.com>
2008 * rtl.h (CC0_P): New.
2009 * gcse.c (cprop_jump): Use it with single_set. Tweak dump text.
2010 (cprop_insn): Allow any mode register; use CC0_P. CSE out single_set.
2011 (bypass_block): Save old dest block for dump text.
2012 (bypass_conditional_jumps): Allow any mode register; use CC0_P.
2013 Allow only true SET insns, not single_set.
2015 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
2017 * diagnostic.c (diagnostic_finish): Rename to output_flush.
2018 (clear_disgnostic_info): Rename to output_clear_data. Use false
2019 instead of 0 for boolean value.
2020 Adjust function call throughout.
2022 Sun Jun 2 19:15:27 CEST 2002 Jan Hubicka <jh@suse.cz>
2024 * cfgrtl.c (commit_one_edge_insertion): Fix warning.
2025 * gcse.c (bypass_conditional_jumps): CSE out single_set call.
2027 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
2029 * d30v.h (CPP_PREDEFINES): Replace with
2030 (TARGET_CPU_CPP_BUILTINS): New.
2032 2002-06-02 Roger Sayle <roger@eyesopen.com>
2034 * config/alpha/alpha.h [ASM_OUTPUT_LABELREF]: Fix typo.
2036 Sun Jun 2 12:11:52 CEST 2002 Jan Hubicka <jh@suse.cz>
2038 * gcse.c (bypass_conditional_jumps): Use single set to obtain set.
2040 2002-06-02 Richard Henderson <rth@redhat.com>
2042 * rtlanal.c (volatile_refs_p): Not automatically true for CALL.
2044 2002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
2046 Support for C++ constructors/destructors.
2047 * config/avr/avr.c (avr_output_function_epilogue): Jump to exit()
2048 instead of looping if main() returns.
2049 (asm_file_start): Output global symbols that cause .data and .bss
2050 initialization code to be linked in, unconditionally for now.
2051 (avr_asm_out_ctor, avr_asm_out_dtor): New functions.
2052 * config/avr/avr.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): New.
2053 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
2055 * config/avr/libgcc.S (_exit): Split in .fini9 and .fini0 sections.
2056 (__tablejump__): New.
2057 (__do_copy_data, __do_clear_bss): New.
2058 (__do_global_ctors, __do_global_dtors): New.
2059 * config/avr/t-avr (LIB1ASMFUNCS): Add _copy_data, _clear_bss,
2062 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
2064 * c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): New.
2065 (CPP_SPEC, CPP_PREDEFINES): Kill.
2066 * c4x/rtems.h (CPP_PREDEFINES): Kill.
2067 (TARGET_OS_CPP_BUILTINS): New.
2069 Sat Jun 1 23:29:51 CEST 2002 Jan Hubicka <jh@suse.cz>
2071 * Makefile.in (tracer.o): New.
2072 * params.def (TRACER_*): New options.
2073 * rtl.h (tracer): Declare.
2074 * timevar.def (TV_TRACER): New.
2075 * toplev.c (dump_file_index): Add DFI_tracer.
2076 (dump_file_info): Add tracer.
2078 (lang_indepdenent_options): Add tracer.
2079 (rest_of_compilation): Call tracer.
2080 * tracer.c: New file.
2081 * invoke.texi (-ftracer): Document.
2082 (--param tracer-*): Document.
2084 2002-06-01 Daniel Berlin <dberlin@dberlin.org>
2086 * tree-inline.c (expand_call_inline): Make the statement
2087 expression we generate have a COMPOUND_STMT.
2089 2002-06-01 Roger Sayle <roger@eyesopen.com>
2091 * gcse.c (cprop_cc0_jump): Function deleted.
2092 (cprop_jump): Take an additional argument which is the possibly
2093 NULL cc setting insn immediately before the conditional jump.
2094 When a MODE_CC set is present, substitute it into the JUMP_INSN
2095 before attempting the constant propagation.
2096 (cprop_insn): Recognize cc setters followed by conditional jumps
2097 as a special case. Use cprop_jump instead of cprop_cc0_jump.
2098 (cprop_one_pass): Call bypass_conditional_jumps if altering jumps.
2099 (find_bypass_set): New function based upon find_avail_set used by
2100 cprop, but finds constant expressions available at the end of
2102 (bypass_block): New function. Given a basic block that begins
2103 with a conditional jump and multiple incoming edges, perform
2104 the jump bypass optimization.
2105 (bypass_conditional_jumps): New function. Call bypass_block with
2106 each suitable basic block in the CFG using a simple single pass.
2108 2002-06-01 Roger Sayle <roger@eyesopen.com>
2110 * tree.c (real_minus_onep): New function to test for -1.0.
2111 * fold-const.c (fold) [MULT_EXPR]: Optimize -1.0*x into -x.
2113 2002-06-01 Roger Sayle <roger@eyesopen.com>
2115 * fold-const.c (fold_truthop): Transform "a || b" into "(a|b) != 0"
2116 and "!p && !q" into "(p|q) == 0" under suitable conditions.
2118 2002-06-01 Andreas Jaeger <aj@suse.de>
2120 * cppexp.c (cpp_classify_number): Cast precission to int for
2121 correct printf format.
2123 2002-06-01 Marek Michalkiewicz <marekm@amelek.gda.pl>
2125 * config/avr/avr.c (avr_mcu_types): Remove devices that were once
2126 expected, but don't really exist: atmega83, atmega85, attiny10.
2127 * config/avr/avr.h (LINK_SPEC): Update to use the new avr[1-5] ld
2128 emulations for all devices.
2129 (CRT_BINUTILS_SPECS): Remove atmega83, atmega85, attiny10.
2130 * config/avr/t-avr (MULTILIB_MATCHES): Remove atmega83, atmega85.
2132 2002-06-01 Kazu Hirata <kazu@cs.umass.edu>
2134 * config/h8300/h8300-protos.h: Add a prototype for
2135 h8300_shift_needs_scratch_p.
2136 * config/h8300/h8300.c (h8300_shift_needs_scratch_p): New.
2137 * config/h8300/h8300.h (OK_FOR_R): New.
2138 (OK_FOR_S): Likewise.
2139 (OK_FOR_T): Likewise.
2140 (EXTRA_CONSTRAINT): Call OK_FOR_R, OK_FOR_S, and OK_FOR_T.
2141 * config/h8300/h8300.md (anonymous shift patterns): Use
2142 constraints R, S, and T.
2144 Sat Jun 1 11:23:22 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2146 * basic-block.h (struct basic_block_def): New field loop_father.
2147 (BB_VISITED): New flag.
2148 (struct loop): New field pred, removed field shared.
2149 (struct loops): New field parray.
2150 (LOOP_EXITS_DOMS): Removed.
2151 (flow_loop_tree_node_add, flow_loop_tree_node_remove,
2152 flow_loop_nested_p, flow_bb_inside_loop_p, get_loop_body,
2153 dfs_enumerate_from, loop_preheader_edge, loop_latch_edge,
2154 add_bb_to_loop, remove_bb_from_loops, find_common_loop,
2155 verify_loop_structure): Declare.
2156 * cfg.c (entry_exit_blocks): Initialize loop_father field.
2157 * cfganal.c (dfs_enumerate_from): New function.
2158 * cfgloop.c (HEAVY_EDGE_RATIO): New constant.
2159 (flow_loop_entry_edges_find, flow_loop_exit_edges_find,
2160 flow_loop_nodes_find, flow_loop_level_compute, flow_loop_nested_p,
2161 flow_loop_dump, flow_loops_dump, flow_loops_free,
2162 flow_loop_tree_node_add, flow_loop_level_compute,
2163 flow_loops_level_compute, flow_loop_scan, flow_loops_update,
2164 flow_loop_outside_edge_p): Modified for new infrastructure.
2165 (make_forwarder_block, canonicalize_loop_headers, glb_enum_p,
2166 redirect_edge_with_latch_update, flow_loop_free): New static functions.
2167 (flow_loop_tree_node_remove, flow_bb_inside_loop_p,
2168 get_loop_body, add_bb_to_loop, remove_bb_from_loops,
2169 find_common_loop, verify_loop_structure, loop_latch_edge,
2170 loop_preheader_edge): New functions.
2171 (flow_loops_cfg_dump): Do not show dominators, as this information
2172 does not remain up to date long.
2173 (flow_loops_find): Store results in new format.
2174 * predict.c (propagate_freq, estimate_probability,
2175 estimate_loops_at_level, estimate_bb_frequencies): Use new loop
2178 2002-06-01 Alan Lehotsky <apl@alum.mit.edu>
2180 * except.c (nothrow_function_p): Walk epilogue delay list
2181 checking the insn, not the chain for potential throws.
2183 2002-05-31 Zack Weinberg <zack@codesourcery.com>
2185 * Makefile.in (INSTALL_CPP, UNINSTALL_CPP): Remove.
2186 (install): Refer to install-cpp directly.
2187 (uninstall-cpp): Folded into uninstall rule.
2188 * configure.in: Delete all code relating to --disable-cpp.
2189 * configure: Regenerate.
2190 * config/t-install-cpp: Delete.
2192 2002-05-31 Richard Henderson <rth@redhat.com>
2194 * configure.in (HAVE_AS_TLS): Add alpha tests.
2195 * configure: Rebuild.
2196 * config/alpha/alpha.c (TARGET_AS_TLS): New.
2197 (alpha_tls_size, alpha_tls_size_string): New.
2198 (overide_options): Set it. Always install machine_status hooks.
2199 (input_operand): Accept got tls predicates.
2200 (local_symbol_p): Merge into ...
2201 (local_symbolic_operand): ... here. Reject tls symbols.
2202 (global_symbolic_operand): Likewise.
2203 (tls_symbolic_operand_1, dtp16_symbolic_operand): New.
2204 (dtp32_symbolic_operand, gotdtp_symbolic_operand): New.
2205 (tp16_symbolic_operand, tp32_symbolic_operand): New.
2206 (gottp_symbolic_operand, tls_symbolic_operand_type): New.
2207 (alpha_encode_section_info): Handle TLS symbols.
2208 (alpha_strip_name_encoding): Likewise.
2209 (alpha_legitimate_address_p): Likewise.
2210 (alpha_legitimize_address): Likewise.
2211 (alpha_expand_mov): Early exit to avoid nop moves.
2212 (struct machine_function): Move from unicosmk.h. Add some_ld_name.
2213 (alpha_init_machine_status, alpha_mark_machine_status,
2214 alpha_free_machine_status): Always define.
2215 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
2216 (print_operand, print_operand_address): Add TLS relocs.
2217 * config/alpha/alpha.h (HAVE_AS_TLS): Default 0.
2218 (MASK_TLS_KERNEL, TARGET_TLS_KERNEL): New.
2219 (TARGET_SWITCHES): Add -mtls-kernel.
2220 (alpha_tls_size, alpha_tls_size_string): New.
2221 (TARGET_OPTIONS): Add -mtls-size=.
2222 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS,
2223 REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Add R0_REG.
2224 (ASM_OUTPUT_LABELREF): Skip %.
2225 (PRINT_OPERAND_PUNCT_VALID_P): Add &.
2226 (PREDICATE_CODES): Update.
2227 * config/alpha/alpha.md (UNSPEC_TLSGD_CALL, UNSPEC_TLSLDM_CALL,
2228 UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_DTPREL, UNSPEC_TPREL,
2229 UNSPEC_TP, UNSPECV_SET_TP): New.
2230 (adddi_er_lo16_dtp, adddi_er_hi32_dtp, adddi_er_lo32_dtp,
2231 adddi_er_lo16_tp, adddi_er_hi32_tp, adddi_er_lo32_tp, load_tp,
2232 set_tp, movdi_er_tlsgd, movdi_er_tlsldm, movdi_er_gotdtp,
2233 movdi_er_gottp, call_value_osf_tlsgd, call_value_osf_tlsldm): New.
2234 (call_value_osf_2_er): Accept anything as op4.
2235 * config/alpha/alpha-protos.h: Update.
2236 * config/alpha/unicosmk.h (struct machine_function): Move to alpha.c.
2238 2002-05-31 Zack Weinberg <zack@codesourcery.com>
2240 * cppinit.c (append_include_chain): Always pay attention to
2241 cxx_aware when setting new->sysp. Remove ATTRIBUTE_UNUSED
2244 2002-05-31 Kazu Hirata <kazu@cs.umass.edu>
2246 * target.h: Fix formatting.
2247 * timevar.h: Likewise.
2248 * tlink.c: Likewise.
2249 * toplev.c: Likewise.
2250 * toplev.h: Likewise.
2252 * tree-dump.h: Likewise.
2254 * tree-inline.h: Likewise.
2255 * unroll.c: Likewise.
2256 * unwind-dw2.c: Likewise.
2257 * unwind-dw2-fde.c: Likewise.
2258 * unwind-dw2-fde-glibc.c: Likewise.
2259 * unwind-dw2-fde.h: Likewise.
2260 * unwind.h: Likewise.
2261 * unwind-sjlj.c: Likewise.
2262 * varasm.c: Likewise.
2263 * varray.h: Likewise.
2264 * vmsdbg.h: Likewise.
2265 * vmsdbgout.c: Likewise.
2266 * xcoffout.h: Likewise.
2268 2002-05-31 Igor Shevlyakov <igor@microunity.com>
2270 * expr.c (compare_from_rtx): Generate comparison between op0 and op1
2271 rather than cc0 and 0 in a case when HAVE_cc0 is not defined.
2273 2002-05-31 Matthew Woodcraft <mattheww@chiark.greenend.org.uk>
2275 * gcc.c (cpp_unique_options): Remove "-d" options.
2276 (cpp_debug_options): New spec string.
2277 (default_compilers): Use it.
2278 * objc/lang-specs.h: Likewise.
2280 2002-05-31 Nathanael Nerode <neroden@twcny.rr.com>
2282 * gcc/Makefile.in: Replace HOST_PREFIX, HOST_PREFIX_1 with
2283 BUILD_PREFIX, BUILD_PREFIX_1, to correct nomenclature.
2284 * gcc/mklibgcc.in: Likewise.
2285 * gcc/config/arc/t-arc: Likewise.
2286 * gcc/configure.in: Likewise.
2287 * gcc/configure: Regenerate.
2289 2002-05-31 Stan Shebs <shebs@apple.com>
2290 Turly O'Connor <turly@apple.com>
2292 * c-decl.c (struct binding_level): Change int field n_incomplete
2293 to tree list incomplete_list.
2294 (clear_binding_level): Init field with NULL.
2295 (pushdecl): Add incomplete type to list.
2296 (mark_binding_level): Mark the incomplete list.
2297 (finish_struct): Scan the incomplete list for types instead
2298 of all decls in the current binding level.
2300 2002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
2302 * pa.c (output_millicode_call): Add missing '%' characters.
2303 (output_call): Likewise.
2305 2002-05-31 David Edelsohn <edelsohn@gnu.org>
2307 * config/rs6000/xcoff.h (HOT_TEXT_SECTION_NAME): Define.
2308 (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
2310 2002-05-31 Alan Lehotsky <apl@alum.mit.edu>
2312 * varasm.c (mark_constant_pool): Walk epilogue delay list
2313 checking the insn, not the chain for potential constants.
2315 Fri May 31 12:38:43 2002 J"orn Rennecke <joern.rennecke@superh.com>
2317 * config/sh/elf.h (ASM_SPEC): Use subtarget_endian_asm_spec.
2319 Fri May 31 13:50:19 CEST 2002 Jan Hubicka <jh@suse.cz>
2321 * i386.c (classify_argument): Properly handle base types.
2323 * dwarf2out.c (expand_builin_init_dwarf_reg_sizes):
2324 Store first DWARF_FRAME_REGISTERS dwarf registers, not pseudo
2327 Fri May 31 13:37:54 CEST 2002 Jan Hubicka <jh@suse.cz>
2329 * gcse.c (gcse_emit_move_after): New.
2330 (pre_delete, hoist_store): Use it.
2332 * reload1.c (emit_input_reload_insns): Use constrain_operands
2333 instead of constraint_accepts_reg_p to verify optimization.
2334 (constraint_accepts_reg_p): Kill
2336 * reload1.c (reload_cse_delete_noop_set): Kill.
2337 (reload_cse_simplify): use delte_insn_and_edges.
2339 2002-05-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2341 * cfgloop.c (flow_loops_find): Initialize first and last fields
2344 2002-05-31 Neil Booth <neil@daikokuya.demon.co.uk>
2346 * c-common.c (builtin_define_std): Correct logic.
2348 2002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
2350 * pa.c (output_millicode_call): Correct "be,l" insn for TARGET_PA_20.
2351 (output_call): Likewise.
2353 2002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
2355 * pa.c: Move output.h include after tree.h include.
2356 (pa_asm_output_mi_thunk): Constify identifier lab.
2358 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
2360 * config/ns32k/ns32k.h: Define named constants for the
2361 bits in target_flags and use them.
2362 * config/ns32k/netbsd.h (TARGET_DEFAULT): Use named constants.
2364 2002-05-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
2366 * config.gcc (tm_file): Prefix pa/pa-700.h to tm_file list for PA1.0
2367 architecture and pa/pa-7100.h for PA1.1 architecture, respectively.
2368 * pa/pa.c (override_options): Use TARGET_SCHED_DEFAULT to select
2369 default scheduling model.
2370 * pa/pa.h (TARGET_SCHED_DEFAULT): Define if not defined to "8000".
2371 * pa/pa-700.h (TARGET_SCHED_DEFAULT): New file for "700" scheduling.
2372 * pa/pa-7100.h (TARGET_SCHED_DEFAULT): New file for "7100" scheduling.
2373 * doc/install.texi (hppa*-*-*): Document default scheduling.
2375 2002-05-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
2377 * pa.c (following_call): Check TARGET_JUMP_IN_DELAY.
2379 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
2381 * config.gcc (ns32k-*-netbsd*): Set tm_file to
2382 "${tm_file} netbsd.h netbsd-aout.h ns32k/netbsd.h"
2383 * config/ns32k/netbsd.h: Don't include ns32k/ns32k.h,
2384 netbsd.h, or netbsd-aout.h.
2386 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
2388 * longlong.h (count_trailing_zeros): Add missing \, and clean up
2389 whitespace in __ns32000__ case.
2391 2002-05-31 Aldy Hernandez <aldyh@redhat.com>
2393 * expr.c (expand_expr): Output partially zeroed out vectors with
2394 output_constant_def.
2396 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
2398 * config.gcc (sh[123456789l]*-*-*): Set cpu_type to sh.
2400 (shl*-*-netbsdelf*): New targets.
2401 * config/sh/netbsd-elf.h: New file.
2402 * config/sh/t-netbsd: New file.
2404 2002-05-30 Richard Henderson <rth@redhat.com>
2405 Eric Botcazou <ebotcazou@multimania.com>
2407 PR optimization/6822
2408 * config/i386/i386.c (ix86_expand_int_movcc): Don't cast INTVAL
2409 to unsigned int for op1 comparisons. Use gen_int_mode.
2411 2002-05-30 Eric Botcazou <ebotcazou@multimania.com>
2413 * expmed.c (const_mult_add_overflow_p): New.
2414 * expr.h: Declare it.
2415 * loop.c (maybe_eliminate_biv_1) [COMPARE]: Use it.
2416 Don't eliminate the biv if the giv has a constant multiplier and
2417 the rhs argument of the comparison does satisfy the predicate.
2418 Use expand_mult_add to compute the replacement constant.
2420 2002-05-30 Osku Salerma <osku@iki.fi>
2422 * c-common.c (c_common_attribute_table): Add "may_alias" entry.
2423 (c_common_get_alias_set): Handle it.
2424 * doc/extend.texi: Document it.
2426 2002-05-30 Richard Henderson <rth@redhat.com>
2428 * defaults.h (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
2429 * toplev.c (process_options): Don't check it.
2430 * doc/tm.texi: Don't document it.
2431 * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): New.
2432 (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
2433 * config/i386/i386.c (ix86_frame_pointer_required): Suppress leaf
2434 frame pointer optimization if current_function_profile.
2436 2002-05-30 Kazu Hirata <kazu@cs.umass.edu>
2438 * langhooks.c: Fix formatting.
2439 * langhooks.h: Likewise.
2441 * libgcc2.c: Likewise.
2442 * lists.c: Likewise.
2443 * local-alloc.c: Likewise.
2447 2002-05-30 Marc Espie <espie@openbsd.org>
2449 * config.gcc (sparc64-*-openbsd*): New.
2450 * config/sparc/openbsd1-64.h: New.
2451 * config/sparc/openbsd64.h: New.
2453 2002-05-30 Jeff Law <law@redhat.com>
2455 * flow.c (propagate_one_insn): Revise yesterday's patch. Delete
2456 a dead insn with a REG_RETVAL note when the entire libcall is not
2457 dead and remove the associated REG_LIBCALL note at the same time.
2459 Thu May 30 19:54:30 2002 J"orn Rennecke <joern.rennecke@superh.com>
2461 * lcm.c (output.h): #include.
2462 (compute_earliest): Remove hack to treat renumbered EXIT_BLOCK
2463 as an ordinary block.
2464 (optimize_mode_switching): Don't pretend that the exit block is
2465 an ordinary block, or handle sucessors of entry block specially.
2466 Instead, split edges from entry block and to exit block, and
2467 put a computing definition on the thus gained post-entry-block,
2468 and a need on the pre-exit-block.
2470 Thu May 30 20:28:01 CEST 2002 Jan Hubicka <jh@suse.cz>
2472 * gengenrtl.c (type_from_format, accessor_from_format): Support 'B'.
2473 * rtl.texi: Document 'B'
2475 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
2477 * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Compute
2479 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Set to 96 if not __mc68010__.
2481 2002-05-30 Aldy Hernandez <aldyh@redhat.com>
2483 * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
2484 const0_rtx instead of NULL_RTX when in error.
2485 (altivec_expand_abs_builtin): Same.
2486 (rs6000_expand_binop_builtin): Same.
2487 (altivec_expand_predicate_builtin): Same.
2488 (altivec_expand_stv_builtin): Same.
2489 (rs6000_expand_ternop_builtin): Same.
2490 (altivec_expand_builtin): Same.
2492 2002-05-29 David S. Miller <davem@redhat.com>
2494 * rtl.h (clear_emit_caches): Delete.
2495 * integrate.c (output_inline_function): Don't call it.
2496 * emit-rtl.c (restore_emit_status, init_emit): Likewise.
2497 (clear_emit_caches): Delete definition.
2498 (SEQUENCE_RESULT_SIZE, sequence_result, free_insn): Likewise.
2500 2002-05-30 Hans-Peter Nilsson <hp@bitrange.com>
2502 * config/mmix/mmix.c: Include real.h.
2503 (mmix_constant_address_p): Remove redundant test before switch.
2505 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
2507 * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Define
2508 only if not already defined.
2510 2002-05-29 Kazu Hirata <kazu@cs.umass.edu>
2512 * config/h8300/h8300-protos.h: Remove prototypes for
2513 ok_for_bclr and small_power_of_two.
2514 * config/h8300/h8300.c (small_power_of_two): Remove.
2515 (ok_for_blcr): Likewise.
2516 (fix_bit_operand): Make WHAT deal with an integer instead of a
2517 constraint character.
2518 * config/h8300/h8300.h (CONST_OK_FOR_O): Remove.
2519 (CONST_OK_FOR_P): Likewise.
2520 (CONST_OK_FOR_LETTER_P): Do not call CONST_OK_FOR_O or
2521 CONST_OK_FOR_P any more.
2522 * config/h8300/h8300.md (andqi3): Adjust to the new prototype
2527 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
2529 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
2530 (CPP_PREDEFINES): Make sure this is undefined.
2531 (CPP_SPEC): Place -D__mips=1 at the beginning of the spec,
2532 since it is no longer in CPP_PREDEFINES. Don't -U__MIPSEL__
2533 or -U__MIPSEB__ before defining one or the other. Instead,
2534 use %(subtarget_endian_default) if neither -EB nor -EL are
2536 (SUBTARGET_EXTRA_SPECS): Define.
2537 (SUBTARGET_CPP_SPEC): Remove __LONG64 handling. Use
2540 2002-05-29 Hans-Peter Nilsson <hp@axis.com>
2542 * doc/md.texi (Patterns): Note pattern condition pitfall
2545 2002-05-29 Aldy Hernandez <aldyh@redhat.com>
2547 * rs6000.c: (altivec_expand_builtin): Only expand altivec builtins
2548 when TARGET_ALTIVEC. Move handling of generic unary, binary, and
2549 ternary operations from here...
2550 (rs6000_expand_builtin): ...to here.
2551 New argument expandedp.
2552 Change all instances of altivec_expand_binop_builtin to
2553 rs6000_expand_binop_builtin.
2554 (altivec_expand_unop_builtin): Rename to
2555 rs6000_expand_unop_builtin.
2556 (altivec_expand_binop_builtin): Rename to
2557 rs6000_expand_binop_builtin.
2558 (altivec_expand_ternop_builtin): Rename to
2559 rs6000_expand_ternop_builtin.
2561 2002-05-29 Richard Henderson <rth@redhat.com>
2563 * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Define with value.
2564 (TARGET_BI_ARCH): Likewise.
2565 * config/i386/i386.h: Test TARGET_64BIT_DEFAULT by value.
2566 (TARGET_SWITCHES): Combine target defaults here not in TARGET_DEFAULT.
2567 (TARGET_64BIT_DEFAULT): Default to 0.
2568 (TARGET_DEFAULT): Default to MASK_OMIT_LEAF_FRAME_POINTER.
2570 2002-05-29 Richard Henderson <rth@redhat.com>
2572 * config/i386/i386.c (USE_HIDDEN_LINKONCE): New.
2573 (get_pc_thunk_name): New.
2574 (output_set_got): Use it.
2575 (ix86_asm_file_end): If USE_HIDDEN_LINKONCE, emit get_pc thunks
2576 into linkonce sections.
2578 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
2580 * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
2581 (CPP_PREDEFINES): Make sure this is undefined.
2582 (CPP_SUBTARGET_SPEC64, CPP_SUBTARGET_SPEC32): Remove.
2583 (CPP_SUBTARGET_SPEC): Don't provide different versions for
2584 default-32 and default-64. Just always use %(netbsd_cpp_spec).
2585 (SUBTARGET_EXTRA_SPECS): Remove cpp_subtarget_spec32 and
2586 cpp_subtarget_spec64. Add netbsd_cpp_spec.
2587 * config/sparc/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
2588 (CPP_PREDEFINES): Make sure this is undefined.
2589 (SUBTARGET_EXTRA_SPECS): Define.
2590 (CPP_SPEC): Use %(netbsd_cpp_spec).
2592 2002-05-29 Jeff Law <law@redhat.com>
2594 * pa.h (ASM_OUTPUT_MI_THUNK): Remove unwanted semi-colon.
2596 * flow.c (propagate_one_insn): Do not remove a dead insn if it
2597 contains a REG_RETVAL note.
2599 * haifa-sched (sched_analyze): Remove another useless clearing
2600 of SCHED_GROUP_P I missed yesterday.
2602 * pa.h (ASM_OUTPUT_MI_THUNK): Move implementation into pa.c.
2603 * pa.c (pa_asm_output_mi_thunk): New function.
2604 * pa-protos.h (pa_asm_output_mi_thunk): Declare.
2606 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
2607 Marek Michalkiewicz <marekm@amelek.gda.pl>
2609 * config/avr/avr.c (avr_base_arch_macro, avr_extra_arch_macro): New.
2610 (avr_asm_only_p): Make non-static.
2611 (enum avr_arch): Remove.
2612 (avr_arch_types): New.
2613 (avr_mcu_types): Update.
2614 (avr_override_options): Use avr_arch_types table instead of switch.
2615 * avr.h (CPP_PREDEFINES): Die.
2616 (avr_base_arch_macro, avr_extra_arch_macro): New.
2617 (TARGET_CPU_CPP_BUILTINS): New.
2618 (CPP_SPEC, EXTRA_SPECS): Simplify.
2619 (CPP_AVR1_SPEC, CPP_AVR2_SPEC, CPP_AVR3_SPEC, CPP_AVR4_SPEC,
2620 CPP_AVR5_SPEC): Die.
2622 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
2624 * config/arm/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
2625 NETBSD_OS_CPP_BUILTINS_AOUT.
2626 (SUBTARGET_EXTRA_SPECS): Define.
2627 (CPP_SPEC): Use %(netbsd_cpp_spec).
2629 2002-05-29 Richard Henderson <rth@redhat.com>
2631 * config/i386/i386.c (ix86_output_function_epilogue): New.
2632 (TARGET_ASM_FUNCTION_EPILOGUE): New.
2633 (pic_label_name): Remove.
2634 (pic_labels_used): New.
2635 (ix86_asm_file_end): Emit one pc load stub for each register used.
2636 (output_set_got): Generate deep pc load to any register.
2637 (ix86_select_alt_pic_regnum): New.
2638 (ix86_save_reg): Don't save pic register if we can find a valid
2639 call-clobbered replacement.
2640 (ix86_expand_prologue): If we found a valid replacement, renumber
2641 pic_offset_table_rtx.
2642 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Look at
2643 pic_offset_table_rtx after reload.
2644 (REAL_PIC_OFFSET_TABLE_REGNUM): New.
2645 * config/i386/i386.md (set_got): Make insn, not expander.
2646 (set_got_nopic, set_got_deep, set_got_nodeep): Remove.
2648 2002-05-29 Richard Henderson <rth@redhat.com>
2650 * config/i386/i386.c (ix86_compute_frame_layout): Do add bottom
2651 alignment for alloca.
2653 2002-05-29 Richard Henderson <rth@redhat.com>
2655 * config/i386/i386.c (output_pic_addr_const): Lowercase rip.
2656 (print_operand_address): Only add rip for symbolic addresses
2657 for which we do not have another relocation type.
2659 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
2661 * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
2662 (EXTRA_SPECS): Add netbsd_cpp_spec.
2663 (CPP_SPEC): Use %(netbsd_cpp_spec).
2664 (CPP_PREDEFINES): Remove.
2665 * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
2666 (EXTRA_SPECS): Define.
2667 (CPP_SPEC): Use %(netbsd_cpp_spec).
2668 (CPP_PREDEFINES): Remove.
2670 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
2672 PR preprocessor/6844
2673 * cppmacro.c (cpp_macro_definition): Reserve space for terminating
2676 2002-05-29 Eric Christopher <echristo@redhat.com>
2678 * config/mips/linux.h (SUBTARGET_CPP_SPEC): Add support for
2679 mips5/mips32/mips64 and _MIPS_ISA_MIPSXX.
2681 2002-05-29 Nick Clifton <nickc@cambridge.redhat.com>
2683 * config/fr30/fr30.md: Remove previous restriction on splits.
2684 Enforce conformance through gen_lowpart and cont_int_operand.
2685 * config/fr30/fr30.h (BSS_SECTION_ASM_OP): Use ".section .bss"
2686 as the assembler does not support ".bss".
2688 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
2690 * config/i386/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
2691 (CPP_PREDEFINES): Remove.
2692 (SUBTARGET_EXTRA_SPECS): Define.
2693 (CPP_SPEC): Use %(netbsd_cpp_spec).
2694 * config/i386/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
2695 (CPP_PREDEFINES): Remove.
2696 (SUBTARGET_EXTRA_SPECS): Define.
2697 (CPP_SPEC): Use %(netbsd_cpp_spec).
2698 * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Define.
2699 (CPP_PREDEFINES, CPP_LP64_SPEC, CPP_SUBTARGET_SPEC): Remove.
2700 (SUBTARGET_EXTRA_SPECS): Remove cpp_lp64 and cpp_subtarget.
2701 Add netbsd_cpp_spec.
2702 (CPP_SPEC): Remove %(cpp_subtarget), add %(netbsd_cpp_spec).
2704 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
2705 Zack Weinberg <zack@codesourcery.com>
2707 * cppexp.c (cpp_num): Move to cpplib.h.
2708 (CPP_ERROR): Remove.
2709 (interpret_float_suffix, interpret_int_suffix): New.
2710 (struct suffix, vsuf_1, vsuf_2, vsuf_3): Remove.
2711 (cpp_classify_number, cpp_interpret_integer): New.
2712 (interpret_number): Remove.
2713 (eval_token): Update to use new routines.
2714 * cpphash.h (cpp_num_part): Move to cpplib.h.
2715 * cppinit.c (cpp_post_options): Set warn_long_long.
2716 * cpplib.h (struct cpp_options): Add warn_long_long.
2717 (cpp_num, cpp_num_part, CPP_N_CATEGORY, CPP_N_INVALID,
2718 CPP_N_INTEGER, CPP_N_FLOATING, CPP_N_WIDTH, CPP_N_SMALL,
2719 CPP_N_MEDIUM, CPP_N_LARGE, CPP_N_RADIX, CPP_N_DEC, CPP_N_HEX,
2720 CPP_N_OCTAL, CPP_N_UNSIGNED, CPP_N_IMAGINARY, cpp_classify_number,
2721 cpp_interpret_integer): New.
2723 2002-05-29 Joel Sherrill <joel@OARcorp.com>
2725 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Use -m403 and -m405.
2727 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
2729 * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
2730 NETBSD_OS_CPP_BUILTINS_ELF and NETBSD_OS_CPP_BUILTINS_LP64.
2731 (CPP_SUBTARGET_SPEC): Define.
2732 (SUBTARGET_EXTRA_SPECS): Define.
2735 2002-05-29 Chris Lattner <sabre@nondot.org>
2737 * ssa.c (rename_insn_1): Rename uses of undefined registers to
2738 prevent confusion if/when the register is defined.
2740 2002-05-29 Hans-Peter Nilsson <hp@axis.com>
2743 * config/cris/cris.md: Fix typos and thinkos in comments.
2744 ("*mov_sideqi_biap_mem"): Remove '*' in constraint for operand 4,
2746 ("*mov_sidehi_biap_mem", "*mov_sidesi_biap_mem"): Ditto.
2747 ("*mov_sideqi_mem"): Similar, but for operand 3.
2748 ("*mov_sidehi_mem", "*mov_sidesi_mem"): Ditto.
2749 (splitter for mov_sideqi_mem, mov_sidehi_mem, mov_sidesi_mem):
2750 Remove spurious mode specifier on operand 2.
2752 2002-05-29 Kazu Hirata <kazu@cs.umass.edu>
2754 * config/h8300/h8300-protos.h: Remove the prototype for
2756 Add prototypes for single_one_operand and single_zero_operand.
2757 * config/h8300/h8300.c (o_operand): Remove.
2758 (single_one_operand): New.
2759 (single_zero_operand): Likewise.
2760 (print_operand): For 'V' operand, and the operand with 0xff.
2761 For 'V' and 'W' operands, do not and the bit position with 7.
2762 * config/h8300/h8300.md (various anonymous patterns): Replace
2763 use of exact_log2 with single_one_operand/single_zero_operand.
2765 2002-05-29 Ulrich Weigand <uweigand@de.ibm.com>
2767 * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New.
2769 2002-05-29 Ulrich Weigand <uweigand@de.ibm.com>
2771 * config/s390/s390.c (legitimate_pic_operand_p): Do not
2772 accept symbolic LARL operands.
2773 (s390_emit_epilogue): Do not set FRAME_RELATED_P on
2776 2002-05-29 Hartmut Penner <hpenner@de.ibm.com>
2778 * config/s390/s390.md (cmpstr_64/31): Mark whole
2779 input registers as used.
2781 2002-05-28 Richard Henderson <rth@redhat.com>
2783 * config/i386/i386.c (ix86_save_reg): Examine regs_ever_live,
2784 not current_function_uses_pic_offset_table and
2785 current_function_uses_const_pool; examine current_function_profile.
2786 (ix86_expand_prologue): Likewise. Add pic_offset_table_rtx as
2787 input to blockage if needed.
2788 (ix86_expand_call): Do not set current_function_uses_pic_offset_table.
2789 (legitimize_pic_address): Likewise. Set regs_ever_live for
2790 pic_offset_table_rtx when invoked during reload.
2791 * config/i386/i386.h (FINALIZE_PIC): Remove.
2792 * config/i386/i386.md (tablejump): Reformat. Do not set
2793 current_function_uses_pic_offset_table.
2794 (tls_global_dynamic, tls_local_dynamic_base): Likewise.
2795 (blockage): Accept anything as operand 0.
2797 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
2799 * config/netbsd-aout.h (NETBSD_OS_CPP_BUILTINS_AOUT): Define
2800 common CPP built-ins for all NetBSD a.out targets.
2801 * config/netbsd-elf.h (NETBSD_OS_CPP_BUILTINS_ELF): Define
2802 common CPP built-ins for all NetBSD ELF targets.
2803 * config/netbsd.h: Add missing notice.
2804 (NETBSD_OS_CPP_BUILTINS_COMMON): Define common CPP built-ins
2805 for all NetBSD targets.
2806 (NETBSD_OS_CPP_BUILTINS_LP64): Define common CPP built-ins
2807 for all NetBSD targets using an LP64 code model.
2808 (NETBSD_CPP_SPEC): Define CPP_SPEC parts common to all
2811 2002-05-28 Richard Henderson <rth@redhat.com>
2813 * flow.c (update_life_info_in_dirty_blocks): Only do a partial
2814 update if UPDATE_LIFE_LOCAL.
2816 2002-05-28 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
2818 * config/sh/sh.c: Include real.h for REAL_VALUE_TYPE.
2820 Tue May 28 21:16:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
2821 Jason R. Thorpe <thorpej@wasabisystems.com>
2823 config/sh reorganization to factor out endianness and coff:
2825 * config/sh/little.h: New file.
2826 * config/sh/sh.h (TARGET_ENDIAN_DEFAULT): If not already
2827 defined, define to 0 to select big-endian.
2828 (SUBTARGET_ASM_ENDIAN_SPEC): Define according to TARGET_ENDIAN_DEFAULT.
2829 (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
2830 * config/sh/sh64.h (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
2831 * config/sh/t-be: New file.
2832 * config/sh/t-le: New file.
2834 * sh.h (SDB_DEBUGGING_INFO, #include "dbxcoff.h"): Moved to sh/coff.h.
2835 (SDB_DELIM, MAX_OFILE_ALIGNMENT, IDENT_ASM_OP): Likewise.
2836 (TARGET_ASM_NAMED_SECTION, ASM_OUTPUT_SKIP): Likewise.
2837 (USER_LABEL_PREFIX, LOCAL_LABEL_PREFIX): Likewise.
2838 (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Likewise.
2839 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
2840 (ASM_FILE_END, ASM_DECLARE_FUNCTION_NAME): Deleted.
2841 (CPP_SPEC, SUBTARGET_CPP_ENDIAN_SPEC): Likewise.
2842 (SUBTARGET_CPP_SPEC, CPP_DEFAULT_CPU_SPEC, CPP_PREDEFINES): Likewise.
2843 (EXTRA_SPECS): Remove SUBTARGET_CPP_ENDIAN_SPEC and
2844 CPP_DEFAULT_CPU_SPEC. Add LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL,
2845 SUBTARGET_LINK_EMUL_SUFFIX and SUBTARGET_LINK_SPEC.
2846 (LINK_SPEC): Define to SH_LINK_SPEC.
2847 (TARGET_CPU_CPP_BUILTINS, SH_LINK_SPEC): Define.
2848 (LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL): Likewise.
2849 (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
2850 (CPP_SPEC): Reduce to %(subtarget_cpp_spec).
2851 (TARGET_ENDIAN_DEFAULT): Define if not already defined.
2852 * config/sh/coff.h: New file.
2853 (TARGET_ASM_NAMED_SECTION): Now default_coff_asm_named_section
2854 (TARGET_OBJFMT_CPP_BUILTINS): Define.
2855 * config/sh/elf.h (IDENT_ASM_OP): No need to #undef at the start.
2856 (ASM_FILE_END, ASM_OUTPUT_SOURCE_LINE): Likewise.
2857 (DBX_OUTPUT_MAIN_SOURCE_FILE_END, TARGET_ASM_NAMED_SECTION): Likewise.
2858 (ASM_DECLARE_FUNCTION_NAME, MAX_OFILE_ALIGNMENT, SIZE_TYPE): Likewise.
2859 (PTRDIFF_TYPE): Likewise.
2860 ("dbxelf.h", "elfos.h", "svr4.h"): Don't #include.
2861 (CPP_PREDEFINES): Don't define.
2862 (TARGET_OBJFMT_CPP_BUILTINS): Define.
2863 (LINK_SPEC): Define to SH_LINK_SPEC.
2864 (LINK_EMUL_PREFIX): Redefine.
2865 * config/sh/linux.h: (SUBTARGET_CPP_SPEC): Remove -fpic / -fPIC cases.
2866 (SUBTARGET_CPP_ENDIAN_SPEC, CPP_DEFAULT_CPU_SPEC): Remove redefinition.
2867 (CPP_PREDEFINES, SUBTARGET_ASM_ENDIAN_SPEC): Likewise.
2868 (CC1_SPEC, CC1PLUS_SPEC, LINK_SPEC): Likewise.
2869 (TARGET_OS_CPP_BUILTINS): Define.
2870 (TARGET_DEFAULT): Redefine.
2871 (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
2872 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Remove.
2873 (LINK_SPEC): Don't redefine.
2874 (LINK_DEFAULT_CPU_EMUL): Redefine.
2875 (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
2876 * sh.c (sh_asm_named_section): Don't declare / define.
2877 * t-linux (MULTILIB_OPTIONS): Rely on pre-set endianness option.
2878 * config.gcc (sh-*-elf* tm_file): Add dbxelf.h elfos.h svr4.h.
2879 (sh64-*-elf* tm_file): Likewise.
2880 (sh-*-rtemself* tm_file): Likewise.
2881 (sh-*-linux* tm_file): Likewise. Add sh/little.h.
2882 (sh-*-linux* tmake_file): Add sh/t-le.
2883 (sh-*-rtems* tm_file): Add sh/coff.h
2884 (sh-*-* tm_file): Likewise.
2886 Tue May 28 21:16:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
2888 * sh.h (LEGITIMATE_PIC_OPERAND_P): Check for SYMBOL_REF before using
2889 CONSTANT_POOL_ADDRESS_P.
2891 * coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Define.
2893 2002-05-28 David Edelsohn <edelsohn@gnu.org>
2894 Jeff Law <law@redhat.com>
2896 * optabs.c (expand_binop): Fix nwords sign warnings.
2897 generate pseudo for add_optab.
2899 * sched-deps.c (sched_analyze): Do not clear SCHED_GROUP_P.
2900 * haifa-sched.c (move_insn): Clear SCHED_GROUP_P after it is used.
2902 2002-05-28 Marc Espie <espie@openbsd.org>
2904 * config/i386/openbsd.h (HAVE_GAS_MAX_SKIP_P2ALIGN): Remove,
2905 inherited from gas.h.
2906 (ASM_QUAD): Undef. OpenBSD does not support it.
2908 2002-05-28 Danny Smith <dannysmith@users.sourceforge.net>
2910 * doc/install.texi (binaries): Change mingw binaries
2911 link to www.mingw.org.
2913 2002-05-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2915 * cfgloop.c (flow_loops_cfg_dump): Use bb->index, not i.
2917 2002-05-28 Richard Henderson <rth@redhat.com>
2919 * config/i386/i386.c (ix86_compute_frame_layout): Do not add
2920 bottom alignment for leaf functions.
2922 2002-05-28 Zack Weinberg <zack@codesourcery.com>
2924 * config/pa/milli32.S, config/pa/lib1funcs.asm,
2925 config/sparc/sol2-g1.asm: Delete unused files.
2927 2002-05-28 Richard Henderson <rth@redhat.com>
2929 * cfg.c (dump_flow_info): Print bb->index, not i, for block number.
2931 * flow.c (calculate_global_regs_live): Rename call_used to
2932 invalidated_by_call. Initialize from regs_invalidated_by_call
2933 instead of call_used_regs.
2935 * varasm.c (default_binds_local_p): Check TREE_PUBLIC before
2938 2002-05-28 Zack Weinberg <zack@codesourcery.com>
2940 * tree.h: Don't include real.h.
2941 Forward-declare struct realvaluetype.
2942 (struct tree_real_cst): Point to the REAL_VALUE_TYPE, do not
2944 (TREE_REAL_CST_PTR): New accessor.
2945 (TREE_REAL_CST): Update.
2946 * real.h: Include machmode.h.
2947 (realvaluetype): Make it struct realvaluetype, not a typedef.
2948 (build_real): Prototype here.
2950 * tree.c: Include real.h.
2951 (build_real): Allocate the REAL_VALUE_TYPE as a separate
2952 object in GC memory, set TREE_REAL_CST_PTR to point to it.
2953 (build_real_from_int_cst): Use build_real.
2954 * ggc-common.c (ggc_mark_trees): Mark TREE_REAL_CST_PTR of a
2957 * builtins.c, c-common.c, c-lex.c, dwarf2out.c, expr.c,
2958 fold-const.c, print-tree.c, real.c: Include real.h.
2959 * Makefile.in: Update dependency lists.
2961 2002-05-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2963 * basic-block.h (last_basic_block): Declare.
2964 (expunge_block_nocompact): Declaration removed.
2965 (compact_blocks): Declare.
2966 * cfg.c (last_basic_block): New variable.
2967 (expunge_block_nocompact): Removed.
2968 (expunge_block): Do not compact basic blocks.
2969 (compact_blocks): New.
2970 * cfganal.c (flow_call_edges_add): Use the fact that bb indices no
2972 * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Set
2974 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Do not change
2975 real positions of blocks.
2976 (delete_unreachable_blocks): Simplified -- quadratic behavior now
2978 (cleanup_cfg): Compact blocks.
2979 * cfgrtl.c (create_basic_block): Insert basic blocks to the end of
2980 basic_block_info varray.
2981 (flow_delete_block): Comment update.
2982 (back_edge_of_syntactic_loop_p): Modify position check code.
2983 (verify_flow_info): Update checking.
2984 * flow.c (calculate_global_regs_live): Use FOR_EACH_BB.
2985 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
2986 (find_if_case_1, find_if_case_2, if_convert): Use the fact that bb
2987 indices no longer change.
2988 * lcm.c (optimize_mode_switching): Replace n_basic_blocks with
2990 * predict.c (estimate_bb_frequencies): Remove unneccessary code.
2991 * profile.c (branch_prob): Compact blocks.
2992 * sched-rgn.c (find_rgns): Replace n_basic_blocks with
2995 2002-05-28 Kazu Hirata <kazu@cs.umass.edu>
2997 * config/h8300/h8300.md (two anonymous patterns): New.
2999 2002-05-28 David S. Miller <davem@redhat.com>
3001 * config/sparc/sparc.md (cpu): Tidy.
3002 (type): Delete 'return', add 'ialuX', 'flushw', 'iflush', and
3004 (in_call_delay): Delete reference to 'return' type.
3005 (eligible_for_return_delay, in_return_delay, define_delay
3006 referencing those): Delete.
3007 (rest of file): Use new type attributes as appropriate.
3008 * config/sparc/sparc-protos.h (eligible_for_return_delay): Delete.
3009 * config/sparc/sparc.c (eligible_for_return_delay): Likewise.
3010 * config/sparc/ultra1_2.md (us1_single): New reservation.
3011 (us1_ialuX): Likewise.
3012 * config/sparc/ultra3.md (us3_single): Likewise.
3013 (us3_ialuX): Likewise.
3014 (us3_imul, us3_idiv): Tweak.
3016 2002-05-28 Richard Henderson <rth@redhat.com>
3018 * config/alpha/alpha.c (alpha_in_small_data_p): Return false for
3021 2002-05-28 Richard Henderson <rth@redhat.com>
3023 * config.gcc: Obsolete mn10200.
3025 2002-05-28 Neil Booth <neil@daikokuya.demon.co.uk>
3027 * cppexp.c (interpret_number): Optimize for single-digit
3028 and less-than-half-precision cases.
3029 (num_trim, num_positive, num_div_op): Cast constants.
3031 2002-05-27 Bo Thorsen <bo@suse.de>
3033 * config/i386/libgcc-x86_64-glibc.ver: Copy this file from the
3034 3.1 branch. The file was made by Jakub Jelinek.
3035 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Add i386
3036 support so multilib doesn't break. And don't define this at all
3037 when -Dinhibit_libc is used.
3038 (MULTILIB_DEFAULTS): Always set default to 64 bit compilation.
3039 * config/i386/t-linux64: Implement full multilib support. Patch
3040 originally done by Andreas Jaeger and Jakub Jelinek.
3042 2002-05-27 Roger Sayle <roger@eyesopen.com>
3044 * c-common.c: Add support for __attribute__((nothrow)) to specify
3045 that a function cannot throw an exception (using TREE_NOTHROW).
3046 (handle_nothrow_attribute): New function to process this attribute.
3048 * doc/extend.texi: Document the new nothrow function attribute.
3050 2002-05-27 H.J. Lu (hjl@gnu.org)
3052 * cppexp.c (num_trim): Use 1UL instead of 1 for long int.
3053 (num_positive): Likewise.
3054 (num_div_op): Likewise.
3056 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
3058 * c-common.c (c_common_init): Always use intmax_t.
3060 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
3062 * c-common.c (c_common_init): Use intmax_t for now.
3064 2002-05-24 Andrew Haley <aph@redhat.com>
3066 * fold-const.c (fold): Don't convert (T)(x & c) into (T)x & (T)c
3067 if T is a boolean type.
3069 2002-05-27 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3071 * basic-block.h (last_basic_block): Defined as synonym for
3073 * cfganal.c (mark_dfs_back_edges, flow_reverse_top_sort_order_compute,
3074 flow_depth_first_order_compute, flow_preorder_transversal_compute,
3075 flow_dfs_compute_reverse_init): Replaced relevant occurences of
3076 n_basic_blocks with last_basic_block.
3077 * cfgbuild.c (make_edges): Likewise.
3078 * cfgloop.c (flow_loop_scan, flow_loops_find): Likewise.
3079 * cfgrtl.c (verify_flow_info, purge_all_dead_edges): Likewise.
3080 * combine.c (combine_instructions): Likewise.
3081 * df.c (df_alloc, df_analyse_1, df_analyse, iterative_dataflow_sbitmap,
3082 iterative_dataflow_bitmap): Likewise.
3083 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
3084 calc_idoms, idoms_to_doms): Likewise.
3085 * flow.c (update_life_info_in_dirty_blocks, free_basic_block_vars):
3087 * gcse.c (gcse_main, alloc_gcse_mem, compute_local_properties,
3088 compute_hash_table, expr_reaches_here_p, one_classic_gcse_pass,
3089 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p,
3090 one_pre_gcse_pass, compute_transpout, delete_null_pointer_checks_1,
3091 delete_null_pointer_checks, compute_code_hoist_vbeinout,
3092 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
3093 compute_store_table, build_store_vectors): Likewise.
3094 * haifa-sched.c (sched_init): Likewise.
3095 * ifcvt.c (if_convert): Likewise.
3096 * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
3097 pre_edge_lcm, compute_available, compute_nearerout,
3098 compute_rev_insert_delete, pre_edge_rev_lcm, optimize_mode_switching):
3100 * predict.c (estimate_probability, process_note_prediction,
3101 note_prediction_to_br_prob): Likewise.
3102 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX): Likewise.
3103 * recog.c (split_all_insns, peephole2_optimize): Likewise.
3104 * regrename.c (copyprop_hardreg_forward): Likewise.
3105 * resource.c (init_resource_info): Likewise.
3106 * sched-rgn.c (build_control_flow, find_rgns, compute_trg_info,
3107 init_regions, schedule_insns): Likewise.
3108 * ssa-ccp.c (ssa_const_prop): Likewise.
3109 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
3110 * ssa.c (compute_dominance_frontiers,
3111 compute_iterated_dominance_frontiers, convert_to_ssa): Likewise.
3113 * df.c (df_refs_unlink): Fix FOR_EACH_BB usage (in #if 0'ed code)
3114 * gcse.c (alloc_rd_mem, alloc_avail_expr_mem): Use n_blocks for vector
3117 Mon May 27 14:28:12 CEST 2002 Jan Hubicka <jh@suse.cz>
3119 * basic-block.h (can_hoist_p, hoist_insn_after, hoist_insn_to_edge):
3121 * rtlanal.c (hoist_test_store, can_hoist_insn_p, hoist_update_store,
3122 hoist_insn_after, hoist_insn_to_edge): New.
3124 Mon May 27 12:14:02 CEST 2002 Jan Hubicka <jh@suse.cz>
3126 * basic-block.h (PEOP_SCAN_DEAD_STORES): New.
3127 (PROP_FINAL): Include.
3128 * flow.c (life_analysis, update_life_info,
3129 init_propagate_block_info, mark_set_1, mark_used_rgs):
3130 Support SCAN_DEAD_STORE.
3132 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
3134 * c-common.c (c_common_init): Set CPP arithmetic precision.
3135 * cppexp.c (cpp_num_part): Move typedef ...
3136 * cpphash.h: ...here; make unsigned HOST_WIDE_INT.
3137 * cppinit.c (cpp_create_reader): Default to host long arithmetic.
3138 (sanity_checks): Update.
3140 2002-05-26 Geoffrey Keating <geoffk@redhat.com>
3142 * Makefile.in (INSTALL_HEADERS): Add 'install-mkheaders'.
3143 (mkheaders): New rule.
3144 (install-mkheaders): New rule.
3145 * configure.in (all_outputs): Add mkheaders.
3146 * configure: Regenerate.
3147 * mkheaders.in: New file.
3149 2002-05-26 Jakub Jelinek <jakub@redhat.com>
3151 * cse.c (fold_rtx): Don't optimize if SUBREG changes mode class.
3153 2002-05-26 Andreas Jaeger <aj@suse.de>
3155 * cfg.c (dump_flow_info): Remove extra argument to fprintf.
3157 2002-05-26 Neil Booth <neil@daikokuya.demon.co.uk>
3159 * cppexp.c (possible_sum_sign, integer_overflow, left_shift,
3160 right_shift): Remove.
3161 (cpp_num, cpp_num_part, PART_PRECISION, HALF_MASK, LOW_PART,
3163 (struct op): Use cpp_num.
3164 (num_zerop, num_eq, num_positive, num_greater_freq, num_trim,
3165 num_part_mul, num_unary_op, num_binary_op, num_negate,
3166 num_bitwise_op, num_inequality_op, num_equality_op, num_mul,
3167 num_div_op, num_lshift, num_rshift, append_digit): New.
3168 (interpret_number, parse_defined, eval_token, reduce): Update
3169 for two-integer arithmetic.
3170 (binary_handler): New typedef.
3172 (COMPARE, EQUALITY, BITWISE, MINMAX, UNARY, SHIFT): Delete.
3173 (_cpp_parse_expr, reduce): Update to handle two-integers.
3174 * cpplib.c (_cpp_test_assertion): Back up on CPP_EOF.
3176 2002-05-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
3178 * config/avr/avr-protos.h (avr_out_sbxx_branch): Declare.
3179 * config/avr/avr.c (jump_over_one_insn_p): Take length of the
3180 branch insn into account, do not assume 1.
3181 (avr_out_sbxx_branch): New function. Optimize cases of skipping
3182 over single word insn. Handle upper half of I/O space too.
3183 * config/avr/avr.md (*sbrx_branch): Use it.
3184 (*sbrx_and_branchhi, *sbrx_and_branchsi): Likewise.
3185 (*sbix_branch, *sbix_branch_bit7): Likewise.
3186 (*sbix_branch_tmp, *sbix_branch_tmp_bit7): New.
3187 Use RTL peepholes to optimize register operand sign tests.
3189 2002-05-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
3191 * config/avr/avr.c (avr_asm_only_p): New variable.
3192 (avr_override_options): Set it here if AVR1.
3193 (asm_file_start): Test it here, report an error if set.
3195 2002-05-26 Kazu Hirata <kazu@cs.umass.edu>
3197 * alias.c: Fix formatting.
3198 * attribs.c: Likewise.
3199 * bb-reorder.c: Likewise.
3200 * bitmap.c: Likewise.
3201 * bitmap.h: Likewise.
3202 * builtins.c: Likewise.
3204 Sun May 26 14:00:44 CEST 2002 Jan Hubicka <jh@suse.cz>
3206 * reload.c (find_valid_class): Accept new argument DEST,
3207 choose class accordingly.
3208 (push_reload): Update callers.
3210 2002-05-26 Andreas Jaeger <aj@suse.de>
3212 * combine.c (combine_instructions): Do not indent #if for
3215 2002-05-25 Richard Henderson <rth@redhat.com>
3217 * c-pragma.c (apply_pragma_weak): Convert value identifier to
3218 string for decl_attributes.
3219 (handle_pragma_weak): Call assemble_alias if we're modifying
3222 2002-05-25 Richard Henderson <rth@redhat.com>
3225 * config/sparc/sparc.c (sparc_output_mi_thunk): New implementation
3226 using rtl instead of fprintf.
3227 * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Use it.
3228 * config/sparc/sparc-protos.h: Update.
3230 2002-05-25 Neil Booth <neil@daikokuya.demon.co.uk>
3232 * Makefile.in (C_COMMON_H): Fix.
3233 Update other targets.
3234 * c-common.c: Don't include c-lex.h.
3235 (builtin_define_with_value): Make static and prototype.
3236 (builtin_define_std): Move from c-lex.h.
3237 * c-common.h (init_c_lex): Move from c-lex.h.
3238 * c-decl.c: Don't include c-lex.h.
3239 (make_pointer_declarator): Move from c-parse.in.
3240 * c-lex.c: Don't include c-lex.h.
3242 * c-parse.in: Don't include c-lex.h; include c-pragma.h.
3243 (make_pointer_declarator): Move to c-decl.c.
3244 * c-pragma.c: Don't include c-lex.h.
3245 * c-pragma.h (yydebug, YYDEBUG, parse_in, c_lex): Move from c-lex.h.
3246 * c-tree.h (make_pointer_declarator): New.
3248 * passes.texi, tm.texi: Update.
3250 * Make-lang.in: Update and correct.
3251 * objc-act.c: Don't include c-lex.h or cpplib.h.
3253 * treetree.c: Don't include c-lex.h.
3255 * darwin-c.c: Don't include c-lex.h.
3256 * c4x/c4x-c.c: Don't include c-lex.h.
3257 * c4x/t-c4x: Update.
3258 * i370/i370-c.c: Don't include c-lex.h.
3259 * i370/t-i370: Update.
3260 * i960/i960-c.c: Don't include c-lex.h.
3261 * i960/i960.c: Don't include cpplib.h, c-lex.h or c-pragma.h.
3262 * i960/t-960bare: Update.
3263 * i960/t-vxworks: Update.
3264 * rs6000/rs6000-c.c: Don't include c-lex.h; include c-pragma.h.
3265 * rs6000/t-darwin: Update.
3266 * rs6000/t-rs6000-c-rule: Update.
3267 * v850/v850-c.c: Don't include c-lex.h.
3268 * v850/v850.c: Don't include c-lex.h or cpplib.h.
3271 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
3273 * tree.def: Fix typos.
3274 * doc/install.texi: Likewise.
3276 2002-05-25 Richard Henderson <rth@redhat.com>
3278 * configure.in (HAVE_AS_TLS): Add ia64 test.
3279 * configure: Rebuild.
3280 * config/ia64/ia64.c (ia64_tls_size_string, ia64_tls_size): New.
3281 (override_options): Set it.
3282 (TARGET_HAVE_TLS): New.
3283 (sdata_symbolic_operand): Look for 's'.
3284 (tls_symbolic_operand): New.
3285 (ia64_expand_load_address): Abort for tls symbols.
3286 (gen_tls_get_addr): New.
3287 (gen_thread_pointer): New.
3288 (ia64_expand_move): Split out from movdi. Handle tls symbols.
3289 (rtx_needs_barrier): Add new unspecs.
3290 (ia64_encode_section_info): Handle tls symbols.
3291 (ia64_strip_name_encoding): Strip two encoding chars.
3292 * config/ia64/ia64.h (ia64_tls_size, ia64_tls_size_string): New.
3293 (TARGET_TLS14, TARGET_TLS22, TARGET_TLS64): New.
3294 (TARGET_OPTIONS): Add tls-size.
3295 (ENCODE_SECTION_INFO_CHAR): Rename from SDATA_NAME_FLAG_CHAR.
3296 * config/ia64/ia64.md (UNSPEC_LTOFF_DTPMOD, UNSPEC_LTOFF_DTPREL,
3297 UNSPEC_DTPREL, UNSPEC_LTOFF_TPREL, UNSPEC_TPREL, UNSPEC_LD_BASE): New.
3298 (movqi, movhi, movsi, movdi, movti): Use ia64_expand_move.
3299 (movsf, movdf): Likewise.
3300 (movdi_symbolic): Use match_scratch. Don't split if we won't
3301 have a scratch availiable.
3302 (load_ltoff_dtpmod, load_dtprel, load_dtprel64, load_dtprel22,
3303 add_dtprel, add_dtprel14, add_dtprel22, load_ltoff_tprel, load_tprel,
3304 load_tprel64, load_tprel22, add_tprel, add_tprel14, add_tprel22): New.
3305 * config/ia64/ia64-protos.h: Update.
3306 * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
3307 sdata_symbolic_operand.
3308 (ASM_OUTPUT_LABELREF): Strip two characters.
3310 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
3312 * combine.c (simplify_set): Remove an unnecessary subreg.
3314 2002-05-25 Marek Michalkiewicz <marekm@amelek.gda.pl>
3316 * config/avr/avr.c (avr_handle_progmem_attribute): Handle TYPE_DECL.
3318 * config/avr/avr.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_BSS): New.
3320 2002-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
3322 * toplev.c (output_clean_symbol_name): Fix another thinko. Gosh.
3324 2002-05-25 Roger Sayle <roger@eyesopen.com>
3326 * simplify-rtx.c (simplify_gen_relational): Simplify the RTX
3327 (cond (compare x y) 0) into the equivalent (cond x y).
3329 2002-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
3331 * toplev.c (output_clean_symbol_name): Use xstrdup. Fix thinko.
3333 2002-05-24 Zack Weinberg <zack@codesourcery.com>
3335 * config.gcc: Remove all stanzas for previously obsoleted
3336 systems. Where necessary, add explicit error stanzas to
3337 prevent removed systems from being misidentified as something
3338 else. Begin a fresh obsoletions list, with the systems that
3339 were reprieved last round.
3340 * doc/install.texi: Remove all mention of dead targets.
3341 * fixinc/mkfixinc.sh: Likewise.
3343 * config/arm/arm.h: Bit 31 of target_flags is no longer
3346 * config/1750a/1750a-protos.h, config/1750a/1750a.c,
3347 config/1750a/1750a.h, config/1750a/1750a.md, config/1750a/ms1750.inc,
3348 config/a29k/a29k-protos.h, config/a29k/a29k.c, config/a29k/a29k.h,
3349 config/a29k/a29k.md, config/a29k/rtems.h, config/a29k/t-a29kbare,
3350 config/a29k/t-vx29k, config/a29k/unix.h, config/a29k/vx29k.h,
3351 config/alpha/osf12.h, config/alpha/osf2or3.h,
3352 config/arm/arm-wince-pe.h, config/arm/arm.h, config/arm/riscix.h,
3353 config/arm/riscix1-1.h, config/arm/rix-gas.h, config/arm/t-riscix,
3354 config/clipper/clipper-protos.h, config/clipper/clipper.c,
3355 config/clipper/clipper.h, config/clipper/clipper.md,
3356 config/clipper/clix.h, config/convex/convex-protos.h,
3357 config/convex/convex.c, config/convex/convex.h,
3358 config/convex/convex.md, config/convex/fixinc.convex,
3359 config/convex/proto.h, config/elxsi/elxsi-protos.h,
3360 config/elxsi/elxsi.c, config/elxsi/elxsi.h, config/elxsi/elxsi.md,
3361 config/i386/386bsd.h, config/i386/aix386.h, config/i386/aix386ng.h,
3362 config/i386/bsd386.h, config/i386/dgux.h, config/i386/djgpp-rtems.h,
3363 config/i386/isc.h, config/i386/iscdbx.h, config/i386/linux-oldld.h,
3364 config/i386/next.h, config/i386/osf1-ci.asm, config/i386/osf1-cn.asm,
3365 config/i386/osf1elf.h, config/i386/osf1elfgdb.h, config/i386/osfelf.h,
3366 config/i386/osfrose.h, config/i386/rtems.h, config/i386/seq-gas.h,
3367 config/i386/seq-sysv3.h, config/i386/seq2-sysv3.h,
3368 config/i386/sequent.h, config/i386/sun.h, config/i386/sun386.h,
3369 config/i386/t-dgux, config/i386/t-next, config/i386/t-osf,
3370 config/i386/t-osf1elf, config/i860/bsd-gas.h, config/i860/bsd.h,
3371 config/i860/fx2800.h, config/i860/i860-protos.h, config/i860/i860.c,
3372 config/i860/i860.h, config/i860/i860.md, config/i860/mach.h,
3373 config/i860/paragon.h, config/i860/sysv3.h, config/i860/sysv4.h,
3374 config/i860/t-fx2800, config/i860/varargs.asm, config/m68k/a-ux.h,
3375 config/m68k/altos3068.h, config/m68k/apollo68.h,
3376 config/m68k/aux-crt1.c, config/m68k/aux-crt2.asm,
3377 config/m68k/aux-crtn.asm, config/m68k/aux-exit.c,
3378 config/m68k/aux-low.gld, config/m68k/aux-mcount.c,
3379 config/m68k/auxas.h, config/m68k/auxgas.h, config/m68k/auxgld.h,
3380 config/m68k/auxld.h, config/m68k/ctix.h, config/m68k/dpx2.h,
3381 config/m68k/dpx2.ifile, config/m68k/dpx2cdbx.h, config/m68k/dpx2g.h,
3382 config/m68k/isi-nfp.h, config/m68k/isi.h, config/m68k/lynx-ng.h,
3383 config/m68k/lynx.h, config/m68k/math-3300.h, config/m68k/news.h,
3384 config/m68k/news3.h, config/m68k/news3gas.h, config/m68k/newsgas.h,
3385 config/m68k/next.h, config/m68k/next21.h, config/m68k/rtems.h,
3386 config/m68k/t-aux, config/m68k/t-lynx, config/m68k/t-next,
3387 config/m68k/x-next, config/m88k/dgux.h, config/m88k/dgux.ld,
3388 config/m88k/dguxbcs.h, config/m88k/dolph.h, config/m88k/dolphin.ld,
3389 config/m88k/luna.h, config/m88k/m88k-coff.h, config/m88k/sysv3.h,
3390 config/m88k/t-bug, config/m88k/t-dgux, config/m88k/t-dgux-gas,
3391 config/m88k/t-dguxbcs, config/m88k/t-dolph, config/m88k/t-m88k-gas,
3392 config/m88k/t-tekXD88, config/m88k/tekXD88.h, config/m88k/tekXD88.ld,
3393 config/mips/bsd-4.h, config/mips/bsd-5.h, config/mips/dec-bsd.h,
3394 config/mips/dec-osf1.h, config/mips/elflorion.h,
3395 config/mips/iris4loser.h, config/mips/mips-5.h, config/mips/news4.h,
3396 config/mips/news5.h, config/mips/nws3250v4.h, config/mips/osfrose.h,
3397 config/mips/svr3-4.h, config/mips/svr3-5.h, config/mips/svr4-4.h,
3398 config/mips/svr4-5.h, config/mips/svr4-t.h, config/mips/t-bsd,
3399 config/mips/t-bsd-gas, config/mips/t-svr3, config/mips/t-svr3-gas,
3400 config/mips/t-svr4, config/mips/t-svr4-gas, config/mips/t-ultrix,
3401 config/mips/ultrix.h, config/nextstep-protos.h, config/nextstep.c,
3402 config/nextstep.h, config/nextstep21.h, config/ns32k/encore.h,
3403 config/ns32k/merlin.h, config/ns32k/pc532-mach.h,
3404 config/ns32k/pc532-min.h, config/ns32k/pc532.h,
3405 config/ns32k/sequent.h, config/ns32k/tek6000.h,
3406 config/ns32k/tek6100.h, config/ns32k/tek6200.h, config/pj/lib1funcs.S,
3407 config/pj/linux.h, config/pj/pj-protos.h, config/pj/pj.c,
3408 config/pj/pj.h, config/pj/pj.md, config/pj/pjl.h, config/pj/t-pj,
3409 config/sparc/rtems.h, config/we32k/we32k-protos.h,
3410 config/we32k/we32k.c, config/we32k/we32k.h, config/we32k/we32k.md:
3413 2002-05-24 Richard Henderson <rth@redhat.com>
3415 * flags.h (TLS_MODEL_GLOBAL_DYNAMIC): Set to 1.
3416 * toplev.c (flag_tls_default) Set to TLS_MODEL_GLOBAL_DYNAMIC.
3417 * config/i386/i386.c (tls_model_chars): Add leading space.
3418 (tls_symbolic_operand): Don't bias by 1.
3419 (legitimize_address): Don't unbias by 1.
3421 2002-05-24 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
3423 * lcm.c (optimize_mode_switching): Change bb used as indices
3426 2002-05-24 Richard Henderson <rth@redhat.com>
3428 * config/ia64/ia64.c (ia64_reorg): Use update_life_info instead
3429 of update_life_info_in_dirty_blocks.
3431 2002-05-24 Jakub Jelinek <jakub@redhat.com>
3434 * final.c (get_mem_expr_from_op): Return 0 if op is NULL.
3436 2002-05-24 Neil Booth <neil@daikokuya.demon.co.uk>
3438 PR preprocessor/6780
3439 * cppmacro.c (enter_macro_context): Clear state.angled_headers.
3441 2002-05-24 Jim Blandy <jimb@redhat.com>
3443 * dwarf2out.c (dwarf2out_finish): Don't forget to emit a final
3444 entry with a type code of zero, marking the end of the compilation
3447 2002-05-24 Richard Henderson <rth@redhat.com>
3449 * varasm.c (asm_output_bss): Always output one byte.
3450 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
3452 2002-05-24 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
3454 * tree.c (decl_type_context): Return NULL_TREE if decl's context is a
3457 2002-05-24 Andreas Jaeger <aj@suse.de>
3459 * ggc-page.c (alloc_page): Cast variables of type size_t to
3460 unsigned long, adjust printf format string.
3461 (ggc_alloc): Likewise.
3462 (ggc_print_statistics): Likewise.
3463 (ggc_print_statistics): Correct printf format string for SCALE to
3466 2002-05-24 Danny Smith <dannysmith@users.sourceforge.net>
3468 * config/i386/mingw32.h (CPP_SPEC): Remove -remap.
3470 2002-05-23 Gabriel Dos Reis <gdr@codesourcery.com>
3471 Zack Weinberg <zack@codesourcery.com>
3473 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Properly output
3475 * dwarf2out.c (lookup_filename): Properly quote filename in .file
3476 directive in assembly file.
3477 * config/m68k/dpx2.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
3478 * config/m88k/m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
3479 * config/pj/pj.h (ASM_FILE_START): Likewise.
3480 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
3481 * config/avr/avr.c (asm_file_end): Likewise.
3482 * toplev.c (output_quoted_string): Handle possibly signed plain
3484 * toplev.h (output_clean_symbol_name): Declare
3485 * toplev.c (output_clean_symbol_name): Define.
3486 * config/alpha/alpha.c (unicosmk_output_module_name): Use it.
3487 * config/1750a/1750a.h (ASM_FILE_START): Likewise.
3489 2002-05-24 Alan Modra <amodra@bigpond.net.au>
3491 * config/rs6000/rs6000.c (output_toc): Mask longs to 32 bits.
3493 2002-05-23 Vladimir Makarov <vmakarov@redhat.com>
3495 * genautomata.c (reserv_sets_hash_value): Use shift equal to 3/4
3496 of size of unsigned.
3498 2002-05-23 Richard Henderson <rth@redhat.com>
3500 * configure.in (HAVE_AS_TLS): New test.
3501 * config.in, configure: Rebuild.
3502 * config/i386/i386.c (TARGET_HAVE_TLS): Set if HAVE_AS_TLS.
3503 (ix86_tls_dialect_string, ix86_tls_dialect): New.
3504 (override_options): Set it.
3505 (tls_model_chars, tls_symbolic_operand): New.
3506 (tls_symbolic_operand_1, global_dynamic_symbolic_operand): New.
3507 (local_dynamic_symbolic_operand, initial_exec_symbolic_operand): New.
3508 (local_exec_symbolic_operand): New.
3509 (get_pic_label_name): Merge into output_set_got.
3510 (ix86_asm_file_end): Emit pic_label_name if defined.
3511 (legitimate_constant_p, constant_address_p): New.
3512 (legitimate_pic_operand_p): New.
3513 (legitimate_pic_address_disp_p): Handle GOTTPOFF, NTPOFF, DTPOFF.
3514 (legitimate_address_p): Likewise.
3515 (ix86_encode_section_info): Rename from i386_; handle tls decls.
3516 (ix86_strip_name_encoding): New.
3517 (get_thread_pointer): New.
3518 (legitimize_address): Handle tls symbols.
3519 (output_pic_addr_const): Handle GOTTPOFF, TPOFF, NTPOFF, DTPOFF.
3521 (struct machine_function): Add some_ld_name.
3522 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Set it.
3523 (print_operand) [&]: Use it. Handle UNSPEC_TP.
3524 (output_addr_const_extra): New.
3525 (maybe_get_pool_constant): New.
3526 (ix86_split_to_parts): Use it.
3527 (ix86_expand_move): Handle tls symbols.
3528 (ix86_tls_get_addr): New.
3529 * config/i386/i386.h (TARGET_GNU_TLS, TARGET_SUN_TLS): New.
3530 (TARGET_OPTIONS): Add tls-dialect.
3531 (CONSTANT_ADDRESS_P): Use new out-of-line function.
3532 (LEGITIMATE_CONSTANT_P): Likewise.
3533 (LEGITIMATE_PIC_OPERAND_P): Likewise.
3534 (TARGET_STRIP_NAME_ENCODING): New.
3535 (ASM_OUTPUT_LABELREF): New.
3536 (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
3537 (OUTPUT_ADDR_CONST_EXTRA): New.
3538 (PREDICATE_CODES): Update.
3539 (ix86_tls_dialect, ix86_tls_dialect_string): New.
3540 * config/i386/i386.md: Regroup and renumber unspec constants.
3541 (tls_global_dynamic_gnu, tls_global_dynamic_sun): New.
3542 (tls_local_dynamic_base_gnu, tls_local_dynamic_base_sun): New.
3543 (tls_global_dynamic, tls_local_dynamic_base): New.
3544 (tls_local_dynamic_once): New.
3545 * config/i386/i386-protos.h: Update.
3547 2002-05-23 Richard Henderson <rth@redhat.com>
3549 * genemit.c (gen_insn): Print file:lineno comment before function.
3551 * gensupport.c (struct queue_elem): Add filename member.
3552 (queue_pattern): Initialize it; update all callers.
3553 (process_include): Don't free filename.
3554 (read_md_rtx): Set read_rtx_filename.
3556 2002-05-23 Hans Boehm <Hans_Boehm@hp.com>
3558 * config/ia64/linux.h (IA64_GATE_AREA_END): Adjust for 64K pages.
3560 2002-05-23 Richard Henderson <rth@redhat.com>
3562 * config/i386/i386.c (output_set_got): Fix typo in pic no-deep case.
3564 2002-05-23 Richard Henderson <rth@redhat.com>
3566 * doc/extend.texi (C++98 Thread-Local Edits): Update with
3567 commentary from Mark.
3569 2002-05-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3571 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1):
3572 Use FOR_EACH_BB macros to iterate over basic block chain.
3573 * cfg.c (clear_edges, clear_bb_flags, dump_flow_info,
3574 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges):
3576 * cfganal.c (set_edge_can_fallthru_flag, flow_call_edges_add,
3577 find_unreachable_blocks, create_edge_list, verify_edge_list,
3578 remove_fake_edges, add_noreturn_fake_exit_edges,
3579 flow_preorder_transversal_compute, flow_dfs_compute_reverse_execute):
3581 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
3582 find_sub_basic_blocks): Likewise.
3583 * cfgcleanup.c (try_optimize_cfg, delete_unreachable_blocks):
3585 * cfglayout.c (record_effective_endpoints, cleanup_unconditional_jumps):
3587 * cfgloop.c (flow_loops_cfg_dump, flow_loops_find):
3589 * cfgrtl.c (compute_bb_for_insn, tidy_fallthru_edges,
3590 commit_edge_insertions, commit_edge_insertions_watch_calls,
3591 print_rtl_with_bb, verify_flow_info, purge_all_dead_edges): Likewise.
3592 * combine.c (combine_instructions, reg_dead_at_p): Likewise.
3593 * conflict.c (conflict_graph_compute): Likewise.
3594 * df.c (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
3595 df_modified_p, df_refs_unlink, df_dump): Likewise.
3596 * dominance.c (calc_dfs_tree, calculate_dominance_info): Likewise.
3597 * final.c (compute_alignments): Likewise.
3598 * flow.c (update_life_info, update_life_info_in_dirty_blocks,
3599 delete_noop_moves, calculate_global_regs_live, allocate_bb_life_data,
3600 count_or_remove_death_notes): Likewise.
3601 * gcse.c (oprs_unchanged_p, record_last_reg_set_info,
3602 compute_hash_table, compute_kill_rd, compute_rd, compute_ae_kill,
3603 classic_gcse, compute_transp, cprop, compute_pre_data,
3604 compute_transpout, invalidate_nonnull_info,
3605 delete_null_pointer_checks_1, delete_null_pointer_checks,
3606 compute_code_hoist_vbeinout, hoist_code, compute_ld_motion_mems,
3607 compute_store_table, build_store_vectors, store_motion): Likewise.
3608 * global.c (global_conflicts, mark_elimination): Likewise.
3609 * graph.c (print_rtl_graph_with_bb): Likewise.
3610 * haifa-sched.c (sched_init): Likewise.
3611 * ifcvt.c (if_convert): Likewise.
3612 * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
3613 compute_available, compute_nearerout, compute_rev_insert_delete,
3614 optimize_mode_switching): Likewise.
3615 * local-alloc.c (local_alloc, update_equiv_regs): Likewise.
3616 * predict.c (estimate_probability, note_prediction_to_br_prob,
3617 propagate_freq, counts_to_freqs, expensive_function_p,
3618 estimate_bb_frequencies): Likewise.
3619 * profile.c (instrument_edges, get_exec_counts,
3620 compute_branch_probabilities, compute_checksum, branch_prob,
3621 find_spanning_tree): Likewise.
3622 * recog.c (split_all_insns, peephole2_optimize): Likewise.
3623 * reg-stack.c (reg_to_stack, convert_regs_entry, convert_regs):
3625 * regclass.c (scan_one_insn, regclass): Likewise.
3626 * regmove.c (mark_flags_life_zones, regmove_optimize,
3627 record_stack_memrefs): Likewise.
3628 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Likewise.
3629 * reload1.c (reload, reload_combine, fixup_abnormal_edges): Likewise.
3630 * resource.c (find_basic_block): Likewise.
3631 * sched-ebb.c (schedule_ebbs): Likewise.
3632 * sched-rgn.c (is_cfg_nonregular, build_control_flow,
3633 find_single_block_region, find_rgns, schedule_insns)
3634 * sibcall.c (optimize_sibling_and_tail_recursive_call)
3635 * ssa-ccp.c (optimize_unexecutable_edges,
3636 ssa_ccp_df_delete_unreachable_insns): Likewise.
3637 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
3638 * ssa.c (find_evaluations, compute_dominance_frontiers_1,
3639 rename_block, convert_to_ssa, compute_conservative_reg_partition,
3640 compute_coalesced_reg_partition, rename_equivalent_regs,
3641 convert_from_ssa): Likewise.
3642 * config/ia64/ia64.c (emit_predicate_relation_info, process_epilogue,
3643 process_for_unwind_directive): Likewise.
3645 * df.c (FOR_ALL_BBS): Removed.
3646 * gcse.c (struct null_pointer_info): Type of current_block field
3648 (struct reg_avail_info): Type of last_bb field changed.
3649 * config/ia64/ia64.c (block_num): Removed.
3650 (need_copy_state): Type changed.
3653 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
3655 * cppinit.c (mark_named_operators): Split out from init_builtins.
3656 (cpp_finish_options): Call it from here instead.
3658 2002-05-23 Jason Thorpe <thorpej@wasabisystems.com>
3660 * builtin-attrs.def: Update copyright years.
3661 (ATTR_NONNULL): New attribute identifier.
3662 (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_3): New
3663 attribute tree lists.
3664 (DEF_FORMAT_ATTRIBUTE): Chain a nonnull attribute for the
3666 (ATTR_FORMAT_ARG_1, ATTR_FORMAT_ARG_2): Use...
3667 (DEF_FORMAT_ARG_ATTRIBUTE): ...this to generate format_arg
3668 attribute lists. Chain the appropriate nonnull attribute.
3669 * c-format.c (check_format_arg): Remove null format string
3671 * testsuite/gcc.dg/format/null-1.c: New test.
3673 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3675 * Makefile.in (ADAC): Define.
3677 (.SUFFIXES): Move before language makefile fragments.
3678 (STAGE2_FLAGS_TO_PASS): Use stage CC as ADAC.
3680 2002-05-23 Mark Mitchell <mark@codesourcery.com>
3682 * varasm.c (make_decl_rtl): Don't allow weak variables to be
3685 Thu May 23 19:43:41 CEST 2002 Jan Hubicka <jh@suse.cz>
3687 * cfg.c (dump_flow_info): Print results of
3688 maybe_hot/probably_never_executed predicates.
3689 * toplev.c (open_dump_file): Print function frequency.
3691 2002-05-23 David S. Miller <davem@redhat.com>
3693 * cse.c (approx_reg_cost_1, approx_reg_cost): Recode to not use
3696 2002-05-23 Jason Thorpe <thorpej@wasabisystems.com>
3698 * c-common.c (warn_nonnull): Declare.
3699 (c_common_attribute_table): Add "nonnull" attribute.
3700 (handle_nonnull_attribute, check_function_nonnull, nonnull_check_p,
3701 check_nonnull_arg, get_nonnull_operand, check_function_arguments,
3702 check_function_arguments_recurse): New functions.
3703 * c-common.h (warn_nonnull): Declare extern.
3704 (check_function_arguments, check_function_arguments_recurse): New
3706 * c-decl.c (c_decode_option): Add -Wnonnull option.
3707 * c-format.c (set_Wformat): Set warn_nonnull if enabling
3709 (format_check_context): New structure.
3710 (check_format_info_recurse): Remove recursion and rename to...
3711 (check_format_arg): ...this. Update comment.
3712 (check_format_info): Use check_function_arguments_recurse.
3713 * c-typeck.c (build_function_call): Call check_function_arguments
3714 instead of check_function_format.
3715 * doc/extend.texi: Document "nonnull" attribute.
3716 * doc/invoke.texi: Docuemnt -Wnonnull option.
3717 * testsuite/gcc.dg/nonnull-1.c: New test.
3718 * testsuite/gcc.dg/nonnull-2.c: New test.
3720 2002-05-23 David S. Miller <davem@redhat.com>
3722 * basic-block.h (CLEANUP_NO_INSN_DEL): Define it.
3723 * cfgcleanup.c (cleanup_cfg): If it is set do not
3724 attempt to delete trivially dead insns.
3725 * except.c (finish_eh_generation): Pass it to cleanup_cfg.
3726 * toplev.c (rest_of_compilation): Document non-trivial aspect
3727 the RTL before optimize_save_area_alloca is run.
3729 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
3731 * c-lex.c (indent_level): Remove.
3732 (cb_file_change, c_lex): Remove indent level handling.
3733 * c-lex.h (indent_level): Remove.
3734 * input.h (struct file_stack): Remove indent_level.
3735 * toplev.c (push_srcloc): Remove indent_level handling.
3737 2002-05-23 Jakub Jelinek <jakub@redhat.com>
3740 * config/i386/i386.md (sse_movdfcc, sse_movdfcc_eq): Use Y instead
3741 of x in constraints for clarity.
3742 (sse_mov?fcc split): abort if op2 == op3.
3743 (sse_movsfcc_const0_1, sse_movsfcc_const0_2, sse_movsfcc_const0_3,
3744 sse_movsfcc_const0_4): Add earlyclobber.
3745 (sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
3746 sse_movdfcc_const0_4): Likewise. Use DFmode, not SFmode.
3747 Use Y instead of x in constraints.
3749 2002-05-23 Richard Henderson <rth@redhat.com>
3751 * doc/extend.texi (C99 Thread-Local Edits): New subsection.
3752 (C++98 Thread-Local Edits): New subsection.
3754 * config/i386/i386.c, config/i386/i386.h: Tidy comments and whitespace.
3755 (ix86_arch): Set type to enum processor_type.
3757 * config/i386/i386.md (movsi_1, movdi_1_rex64): Use
3758 LEGITIMATE_PIC_OPERAND_P not SYMBOLIC_CONST.
3760 2002-05-23 Jakub Jelinek <jakub@redhat.com>
3762 * configure.in: Fix as version test for binutils 2.12.1 releases
3764 * configure: Rebuilt.
3766 2002-05-23 Richard Henderson <rth@redhat.com>
3768 * config/i386/i386.c (get_pic_label_name): New.
3769 (load_pic_register): Remove.
3770 (output_set_got): New.
3771 (ix86_expand_prologue): Use gen_set_got; mark insn REG_MAYBE_DEAD.
3772 * config/i386/i386.md (UNSPEC_SET_GOT): New.
3773 (UNSPECV_PROLOGUE_SET_GOT, UNSPECV_PROLOGUE_GET_PC): Remove.
3774 (prologue_set_got, prologue_get_pc): Remove.
3775 (set_got, set_got_nopic, set_got_deep, set_got_nodeep): New.
3776 (builtin_setjmp_receiver): Use gen_set_got.
3777 * config/i386/i386-protos.h: Update.
3779 Thu May 23 09:22:23 CEST 2002 Jan Hubicka <jh@suse.cz>
3781 * gcse.c (hash_expr): Do not use alias set for hashing.
3783 2002-05-22 Kevin Buettner <kevinb@redhat.com>
3785 * dbxout.c (dbxout_class_name_qualifiers): New function.
3786 (dbxout_symbol): Output class/struct qualifiers for a .stabs entry.
3788 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
3790 * cpperror.c (_cpp_begin_message): No special casing
3792 * cppinit.c (sanity_checks): s/DL_FATAL/DL_ICE/.
3793 (output_deps, cpp_handle_option, cpp_post_options): Use DL_ERROR.
3794 * cpplib.c (do_include_common): Use DL_ERROR.
3795 * cpplib.h (CPP_FATAL_LIMIT, CPP_FATAL_ERRORS, DL_FATAL): Remove.
3797 * fix-header.c (read_scan_file): Update.
3799 2002-05-22 Richard Henderson <rth@redhat.com>
3801 * config/i386/i386.c (ix86_expand_call): New function, extracted
3802 from md call patterns. Add pic_offset_table_rtx to
3803 CALL_INSN_FUNCTION_USAGE when needed.
3804 * config/i386/i386.md (call_pop, call): Use ix86_expand_call.
3805 (call_value_pop, call_value, untyped_call): Likewise.
3806 (call_exp, call_value_exp): Remove.
3807 * config/i386/i386-protos.h: Update.
3809 2002-05-22 Richard Henderson <rth@redhat.com>
3811 * varasm.c (default_section_type_flags): Check for VAR_DECL
3812 before using DECL_THREAD_LOCAL.
3814 2002-05-22 David Edelsohn <edelsohn@gnu.org>
3816 * config/rs6000/aix43.h (LINK_SPEC): Add PE initializer.
3817 (STARTFILE_SPEC): Delete PE crt0.o.
3818 * config/rs6000/aix51.h: Same.
3819 * config/rs6000/rs6000.c: Use TARGET_XCOFF, not OBJECT_FORMAT_COFF.
3820 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Append [DS] to
3821 function descriptor symbol. Use RS6000_OUTPUT_BASENAME.
3822 (ASM_OUTPUT_DEF_FROM_DECLS): Use RS6000_OUTPUT_BASENAME.
3823 * config/rs6000/xcoff.h (ASM_OUTPUT_DEF): Define.
3825 2002-05-22 Richard Henderson <rth@redhat.com>
3827 * varasm.c (default_section_type_flags): Handle tls data and
3829 (default_unique_section): Handle tls sections.
3831 2002-05-23 Alan Modra <amodra@bigpond.net.au>
3833 * configure.in (CROSS): Define NATIVE_CROSS.
3834 * configure: Regenerate.
3835 * gcc.c (STARTFILE_PREFIX_SPEC): Define.
3836 (startfile_prefix_spec): New var.
3837 (static_specs): Add startfile_prefix_spec.
3838 (do_spec_2): Split out from..
3840 (main): Process startfile_prefix_spec.
3841 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC) Change name of
3843 (STARTFILE_PREFIX_SPEC): Define.
3844 (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Rewrite without
3847 2002-05-22 Kazu Hirata <kazu@cs.umass.edu>
3849 * cpperror.c: Fix formatting.
3850 * cppexp.c: Likewise.
3851 * cppfiles.c: Likewise.
3852 * cpphash.c: Likewise.
3853 * cpphash.h: Likewise.
3854 * cppinit.c: Likewise.
3855 * cpplex.c: Likewise.
3856 * cpplib.c: Likewise.
3857 * cppmacro.c: Likewise.
3858 * cppmain.c: Likewise.
3859 * cppspec.c: Likewise.
3861 2002-05-22 Jakub Jelinek <jakub@redhat.com>
3863 * combine.c (force_to_mode): Use gen_int_mode.
3864 Don't clear CONST_INT bits outside of mode.
3866 2002-05-22 Richard Henderson <rth@redhat.com>
3868 * fixinc/inclhack.def (thread_keyword): Match __thread as last arg.
3869 * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
3871 2002-05-22 Jakub Jelinek <jakub@redhat.com>
3874 * emit-rtl.c (widen_memory_access): Only call compare_tree_int
3875 if DECL_SIZE_UNIT is INTEGER_CST.
3877 2002-05-22 Richard Henderson <rth@redhat.com>
3879 * flow.c (life_analysis): Delete broken reg_label check.
3881 2002-05-22 Richard Henderson <rth@redhat.com>
3883 * fixinc/inclhack.def (thread_keyword): Allow as any prototype arg.
3884 * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
3886 Wed May 22 18:39:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
3888 * t-sh (LIB2FUNCS_EXTRA): Now embed-bb.c.
3889 (embed-bb.c): New rule.
3890 * t-sh64 (LIB2FUNCS_EXTRA): Don't change.
3891 * config/sh/embed_bb.c: Delete.
3893 Wed May 22 18:25:29 2002 J"orn Rennecke <joern.rennecke@superh.com>
3895 * c-common.c (cb_register_builtins): Don't indent '#' of #define.
3897 2002-05-22 Kazu Hirata <kazu@cs.umass.edu>
3899 * config/h8300/h8300.md (*andorqi3): New.
3901 2002-05-22 Neil Booth <neil@daikokuya.demon.co.uk>
3903 PR preprocessor/6517
3904 * Makefile.in: Update.
3905 * c-common.c (c_common_post_options): Add preprocessor
3906 errors to the error count.
3907 * c-lang.c (c_post_options): Kill.
3908 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
3909 * hooks.h: Add header guards.
3910 * langhooks-def.h: Include hooks.h.
3911 (LANG_HOOKS_POST_OPTIONS): Update.
3912 * langhooks.h (struct lang_hooks): Update post_options.
3913 * toplev.c (parse_options_and_default_flags): Update.
3915 * objc-lang.c (objc_post_options): Kill.
3916 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
3918 2002-05-21 Bruce Korb <bkorb@gnu.org>
3920 * fixinc/tests/base/pthread.h(THREAD_KEYWORD_CHECK): add fix check
3921 * fixinc/inclhack.def(thread_keyword): use c_fix = format.
3922 * fixinc/fixincl.x: regen.
3924 2002-05-21 Kazu Hirata <kazu@cs.umass.edu>
3926 * cfgbuild.c: Fix formatting.
3928 * cfgcleanup.c: Likewise.
3929 * cfglayout.c: Likewise.
3930 * cfgloop.c: Likewise.
3931 * cfgrtl.c: Likewise.
3933 2002-05-21 Richard Henderson <rth@redhat.com>
3935 * c-common.h (enum rid): Add RID_THREAD.
3936 * c-decl.c (start_decl): Do not set DECL_COMMON for tls variables.
3937 (grokdeclarator): Grok __thread.
3938 * c-parse.in (reswords): Add __thread.
3939 (rid_to_yy): Add RID_THREAD.
3941 * tree.h (DECL_THREAD_LOCAL): New.
3942 (struct tree_decl): Add thread_local_flag.
3943 * print-tree.c (print_node): Dump DECL_THREAD_LOCAL.
3944 * tree.c (staticp): TLS variables are not static.
3946 * target-def.h (TARGET_HAVE_TLS): New.
3947 * target.h (have_tls): New.
3948 * output.h (SECTION_TLS): New.
3949 * varasm.c (assemble_variable): TLS variables can't be common for now.
3950 (default_section_type_flags): Handle .tdata and .tbss.
3951 (default_elf_asm_named_section): Handle SECTION_TLS.
3952 (categorize_decl_for_section): Handle DECL_THREAD_LOCAL.
3954 * flags.h (flag_tls_default): Declare.
3955 * toplev.c (flag_tls_default): Define.
3956 (display_help): Display help for it.
3957 (decode_f_option): Set it.
3959 * doc/extend.texi (Thread-Local): New node describing language-level
3960 thread-local storage.
3961 * doc/invoke.texi (-ftls-model): Document.
3963 * fixinc/inclhack.def (thread_keyword): New.
3964 * fixinc/fixincl.x: Rebuild.
3966 2002-05-21 Jeffrey A Law <law@redhat.com>
3968 * optabs.c (expand_binop): For double-word integer multiplies,
3969 do not compute intermediate results into something that is
3970 not a register (such as a SUBREG or MEM).
3972 * i386.c (ix86_sched_reorder_ppro): Fix typo/thinko.
3973 (ix86_sched_reorder): Make sure to initialize scheduling
3974 data even when there's only one insn in the ready queue.
3976 2002-05-21 Vladimir Makarov <vmakarov@redhat.com>
3978 * genautomata.c (reserv_sets_hash_value): Fix a typo.
3980 2002-05-21 Vladimir Makarov <vmakarov@redhat.com>
3982 * genautomata.c (reserv_sets_hash_value): Define hash_value as
3983 set_el_t. Transform the hash value into unsigned.
3984 (output_cycle_reservs): Fix bug with output of repeated `nothing'.
3985 (transform_3): Add code to process `(A,B)+(D,E)'.
3987 2002-05-21 NIIBE Yutaka <gniibe@m17n.org>
3989 * reload1.c (do_output_reload): Run delete_output_reload
3992 2002-05-21 Roger Sayle <roger@eyesopen.com>
3995 * expr.c (STORE_MAX_PIECES): New macro to avoid immediate constants
3996 larger than INTEGER_CST. (store_by_pieces_1): Use it here...
3997 (can_store_by_pieces): ... and here to limit the largest mode used.
3998 Add a comment to document this function.
4000 2002-05-21 Richard Henderson <rth@redhat.com>
4002 * flow.c (life_analysis): Fix test for deleted label.
4004 2002-05-21 Neil Booth <neil@daikokuya.demon.co.uk>
4006 * doc/tm.texi: Fix typo.
4008 2002-05-21 Zack Weinberg <zack@codesourcery.com>
4010 * c-common.c (c_common_init): Set options->unsigned_char from
4012 (cb_register_builtins): Define __STRICT_ANSI__ and
4013 __CHAR_UNSIGNED__ here...
4014 * cppinit.c (init_builtins): Not here.
4015 (cpp_create_reader): unsigned_char option defaults to 0, not
4016 !DEFAULT_SIGNED_CHAR.
4017 (COMMAND_LINE_OPTIONS, cpp_handle_option): Lose -fsigned-char
4018 and -funsigned-char.
4020 * cpphash.h (struct spec_nodes): Kill n__STRICT_ANSI__.
4021 * cpphash.c (_cpp_init_hashtable): Don't set it.
4022 * cppmacro.c (builtin_macro) [BT_STDC]: Use the language setting
4023 directly. Clarify comment.
4025 2002-05-21 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4027 * bb-reorder.c (make_reorder_chain_1): Use prev_bb/next_bb to get to
4028 neighbouring basic blocks. Use ENTRY_BLOCK_PTR->next_bb instead of
4029 BASIC_BLOCK (0). Use EXIT_BLOCK_PTR->prev_bb instead of
4030 BASIC_BLOCK (n_basic_blocks - 1).
4031 * cfganal.c (can_fallthru, flow_call_edges_add,
4032 flow_preorder_transversal_compute): Too.
4033 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
4034 find_sub_basic_blocks): Too.
4035 * cfgcleanup.c (try_simplify_condjump, try_optimize_cfg): Too.
4036 * cfglayout.c (skip_insns_after_block, fixup_reorder_chain,
4037 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge): Too.
4038 * cfgrtl.c (tidy_fallthru_edges, verify_flow_info): Too.
4039 * combine.c (this_basic_block): Type changed to basic_block.
4040 (combine_instructions, set_nonzero_bits_and_sign_copies, try_combine,
4041 nonzero_bits, num_sign_bit_copies, get_last_value_validate,
4042 get_last_value, distribute_notes, distribute_links): Too.
4043 * final.c (compute_alignments): Too.
4044 * flow.c (regno_uninitialized, regno_clobbered_at_setjmp): Too.
4045 * function.c (thread_prologue_and_epilogue_insns): Too.
4046 * gcse.c (compute_code_hoist_vbeinout): Too.
4047 * global.c (build_insn_chain): Too.
4048 * ifcvt.c (find_if_block, find_cond_trap): Too.
4049 * predict.c (last_basic_block_p, note_prediction_to_br_prob): Too.
4050 * regmove.c (regmove_optimize): Too.
4051 * resource.c (find_basic_block): Too.
4052 * sched-ebb.c (schedule_ebbs): Too.
4053 * ssa-dce.c (find_control_dependence, find_pdom): Too.
4055 2002-05-21 Andreas Jaeger <aj@suse.de>
4057 * cppinit.c (sanity_checks): Avoid printf mismatch warnings.
4059 2002-05-21 Richard Henderson <rth@redhat.com>
4061 * reg-stack.c (swap_rtx_condition, subst_stack_regs_pat): Use
4062 unspec names, not numbers.
4064 2002-05-21 Joseph S. Myers <jsm28@cam.ac.uk>
4066 * doc/sourcebuild.texi: Mention snapshot-README and
4067 snapshot-index.html as needing updating for new front ends.
4069 2002-05-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4071 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Avoid warnings when
4072 disabling checking, and avoid multiple evaluation of RTX.
4074 2002-05-21 Richard Earnshaw <rearnsha@arm.com>
4076 * bitmap.c (bitmap_find_bit): Return early if we have the correct
4079 Tue May 21 10:51:54 CEST 2002 Jan Hubicka <jh@suse.cz>
4081 * profile.c (gen_edge_profiler): Set alias set before the memory is
4084 2002-05-20 David S. Miller <davem@redhat.com>
4086 * cselib.c (max_value_regs): New.
4087 (cselib_lookup, cselib_invalidate_regno): Initialize it when
4088 adding new entries to the REG_VALUES table and we are dealing with
4090 (clear_table): Initialize it.
4091 (cselib_invalidate_regno): Use it to determine which hard
4092 registers to scan when mode is not VOIDmode.
4094 2002-05-20 Duraid Madina <duraid@fl.net.au>
4096 * tradcpp.c (fixup_newlines): Use old-style function header.
4098 2002-05-20 Krister Walfridsson <cato@df.lth.se>
4100 * reload1.c (reload_cse_simplify): Fix typo in rtx code check.
4102 2002-05-20 H.J. Lu (hjl@gnu.org)
4104 Base on suggestions from Zhang Fuxin <fxzhang@ict.ac.cn>:
4106 * config/mips/mips.h (DFMODE_NAN): Defined.
4107 (SFMODE_NAN): Likewise.
4109 2002-05-20 Dale Johannesen <dalej@apple.com>
4111 * combine.c (cant_combine_insn_p): Back out my
4114 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
4116 * params.c: Fix formatting.
4117 * params.h: Likewise.
4118 * predict.c: Likewise.
4119 * prefix.c: Likewise.
4120 * print-rtl.c: Likewise.
4121 * print-tree.c: Likewise.
4122 * profile.c: Likewise.
4124 2002-05-20 H.J. Lu (hjl@gnu.org)
4126 * gcc/config/mips/linux.h (SDB_DEBUGGING_INFO): Undefine.
4128 2002-05-20 Nick Clifton <nickc@cambridge.redhat.com>
4130 * config/arm/arm-wince-pe.h (ASM_SPEC): Pass -mcpu and -march
4131 switches straight on to the assembler, do not abbreviate them.
4132 * config/arm/elf.h (ASM_SPEC): As above.
4133 * config/arm/semi.h (ASM_SPEC): As above.
4134 * config/arm/unknown-elf-oabi.h (ASM_SPEC): As above.
4135 * config/arm/xscale-coff.h (SUBTARGET_ASM_SPEC): Pass
4136 -mcpu=xscale on to the assembler by default.
4137 * config/arm/xscale-elf.h (SUBTARGET_ASM_SPEC): As above.
4139 2002-05-20 Richard Henderson <rth@redhat.com>
4141 * cse.c (canon_hash): Reorder do_not_record test. Always
4142 allow pic_offset_table_rtx.
4144 2002-05-19 Toon Moene <toon@moene.indiv.nluug.nl>
4146 * optabs.c (expand_cmplxdiv_wide): Use complex_part_zero_p.
4147 (expand_binop): Ditto (3 times).
4149 2002-05-19 Mark Mitchell <mitchell@doubledemon.codesourcery.com>
4151 * Makefile.in (distclean): Remove QMTest stuff.
4152 (QMTEST_PATH): New variable.
4153 (QMTESTFLAGS): Likewise.
4154 (QMTESTRUNFLAGS): Likewise.
4156 (QMTEST_GPP_TESTS): Likewise.
4157 (QMTEST_DIR): Likewise.
4158 (QMTEST_DIR/context): New target.
4159 (qmtest-g++): Likeise.
4160 (qmtest-gui): Likewise.
4161 (QMTEST_DIR/gpp-expected.qmr): Likewise.
4163 2002-05-19 Aldy Hernandez <aldyh@redhat.com>
4165 * config/rs6000/rs6000.h (FUNCTION_VALUE): Only return vectors in
4166 an altivec register if TARGET_ALTIVEC.
4168 * config/rs600/rs6000.c (rs6000_emit_move): Change VECTOR_MODE_P
4169 to ALTIVEC_VECTOR_MODE.
4170 (rs6000_va_arg): Only vectors of type AltiVec are 16 byte aligned.
4171 (rs6000_va_arg): Vectors may go in registers if they are not
4174 2002-05-19 Kazu Hirata <kazu@cs.umass.edu>
4176 * protoize.c: Fix formatting.
4178 2002-05-19 Richard Henderson <rth@redhat.com>
4180 * gensupport.c (init_include_reader): Merge into ...
4181 (process_include): ... here. Simplify composite path creation.
4182 Plug memory leaks. Fix file/line number tracking. Do not
4183 process_define_cond_exec. Return void.
4184 (process_rtx): Don't check process_include return value.
4186 2002-05-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4188 * basic_block.h (struct basic_block_def): Added prev_bb and next_bb
4190 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
4191 traversing basic block chain.
4192 (create_basic_block_structure, create_basic_block): Declaration changed.
4193 (link_block, unlink_block): Declare.
4194 * cfg.c (entry_exit_blocks): Initialize new fields.
4195 (link_block, unlink_block): New.
4196 (expunge_block_nocompact): Unlink basic block.
4197 (dump_flow_info): Print prev_bb/next_bb fields.
4198 * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Modified.
4199 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Modified.
4200 * cfglayout.c (fixup_reorder_chain, cfg_layout_duplicate_bb): Modified.
4201 * cfgrtl.c (create_basic_block_structure, create_basic_block,
4202 split_block, force_nonfallthru_and_redirect, split_edge): Modified.
4203 (verify_flow_info): Check that list agrees with numbering.
4205 2002-05-19 Neil Booth <neil@daikokuya.demon.co.uk>
4207 * c-common.c (preprocessing_asm): New macro.
4208 * c-lex.h (builtin_define, builtin_assert): Use pfile.
4212 * alpha.h (CPLUSPLUS_CPP_SPEC): Remove.
4213 (CPP_SPEC): Simplify.
4214 (TARGET_CPU_CPP_BUILTINS): Update.
4215 * freebsd.h (TARGET_OS_CPP_BUILTINS): New.
4216 (CPP_SPEC): Simplify.
4217 * linux.h (CPLUSPLUS_CPP_SPEC): Remove.
4218 (TARGET_OS_CPP_BUILTINS): Update.
4219 * osf.h (CPP_XFLOAT_SPEC): Kill.
4220 (TARGET_OS_CPP_BUILTINS): Update.
4221 (CPP_SUBTARGET_SPEC, SUBTARGET_EXTRA_SPECS): Simplify.
4222 * osf5.h (CPP_XFLOAT_SPEC): Kill.
4223 * vms.h (CPP_SUBTARGET_SPEC): Kill.
4224 (TARGET_OS_CPP_BUILTINS): Update.
4226 2002-05-19 Richard Henderson <rth@redhat.com>
4228 * varasm.c (default_binds_local_p): Fix typo.
4230 2002-05-19 Marek Michalkiewicz <marekm@amelek.gda.pl>
4232 * config/avr/avr.c (machine_dependent_reorg): Sign extend the
4233 CONST_INT operand to the correct mode after adding 1 to it.
4235 2002-05-19 Mark Mitchell <mark@codesourcery.com>
4237 * config.gcc (powerpc-wrs-windiss*): New target.
4239 2002-05-19 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4241 * config/rs6000/rs6000.md (ashrdi3_no_power): New.
4244 2002-05-18 Mark Mitchell <mark@codesourcery.com>
4246 * configure.in (AC_CHECK_FUNCS): Add checks for scandir and
4248 * config.in: Regenerated.
4249 * configure: Regenerated.
4251 2002-05-19 Richard Henderson <rth@redhat.com>
4253 * target-def.h (TARGET_BINDS_LOCAL_P): New.
4254 * target.h (struct gcc_target): Move boolean fields to the end.
4256 * varasm.c (default_binds_local_p): New.
4257 * output.h: Declare it.
4259 * config/alpha/alpha.c (alpha_encode_section_info): Use the new hook.
4260 * config/cris/cris.c (cris_encode_section_info): Likewise.
4261 * config/i386/i386.c (i386_encode_section_info): Likewise.
4262 * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
4263 * config/sh/sh.c (sh_encode_section_info): Likewise.
4265 * doc/tm.texi (TARGET_IN_SMALL_DATA_P): New.
4266 (TARGET_BINDS_LOCAL_P): New.
4268 2002-05-19 Richard Henderson <rth@redhat.com>
4270 * system.h (BLOCK_PROFILER, BLOCK_PROFILER_CODE,
4271 FUNCTION_BLOCK_PROFILER, FUNCTION_BLOCK_PROFILER_EXIT,
4272 MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Poison.
4274 * toplev.c (display_help): Kill -a -ax help.
4276 * config/1750a/1750a.h, config/alpha/alpha.h,
4277 config/clipper/clipper.h, config/dsp16xx/dsp16xx.h,
4278 config/h8300/h8300.h, config/i960/i960.h, config/m68k/tower-as.h,
4279 config/m88k/m88k.h, config/vax/vax.h, config/we32k/we32k.h:
4280 (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Kill.
4282 * libgcc2.c [L_bb] (BLOCK_PROFILER_CODE): Kill.
4283 * config/m68k/sun3.h (BLOCK_PROFILER_CODE): Kill.
4285 * config/i386/i386-protos.h (ix86_output_block_profiler): Kill.
4286 (ix86_output_function_block_profiler): Kill.
4287 * config/m68hc11/m68hc11.c (m68hc11_block_profiler): Kill.
4288 (m68hc11_function_block_profiler): Kill.
4289 * config/m68hc11/m68hc11-protos.h: Update.
4290 * config/m88k/m88k.c (output_block_profiler): Kill.
4291 (output_function_block_profiler): Kill.
4292 * config/m88k/m88k-protos.h: Update.
4294 2002-05-19 Richard Henderson <rth@redhat.com>
4296 * system.h (STRIP_NAME_ENCODING): Poison it.
4297 * output.h (STRIP_NAME_ENCODING): Remove.
4298 (default_strip_name_encoding): Declare.
4299 * target-def.h (TARGET_STRIP_NAME_ENCODING): New.
4300 * target.h (strip_name_encoding): New.
4301 * varasm.c (default_strip_name_encoding): New.
4303 * dwarf2asm.c, varasm.c, config/darwin.c, config/darwin.h,
4304 config/alpha/alpha.c, config/arm/pe.c, config/avr/avr.c,
4305 config/cris/cris.c, config/i386/cygwin.h, config/i386/interix.c,
4306 config/i386/winnt.c, config/m32r/m32r.h, config/mcore/mcore-elf.h,
4307 config/mcore/mcore-pe.h, config/mcore/mcore.c, config/mcore/mcore.h,
4308 config/mips/mips.c, config/mn10200/mn10200.h, config/mn10300/mn10300.h,
4309 config/pa/pa.c, config/pa/pa.h, config/pa/som.h,
4310 config/rs6000/rs6000.c, config/rs6000/sysv4.h, config/rs6000/xcoff.h,
4311 config/v850/v850.h: Use the hook, not the macro.
4313 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
4314 config/alpha/alpha.c, config/alpha/alpha.h, config/h8300/h8300.c,
4315 config/h8300/h8300.h, config/i386/cygwin.h, config/i386/i386-interix.h,
4316 config/i386/i386-protos.h, config/i386/win32.h, config/i386/winnt.c,
4317 config/ia64/ia64.c, config/ia64/ia64.h, config/m32r/m32r.c,
4318 config/m32r/m32r.h, config/mcore/mcore.c, config/mcore/mcore.h,
4319 config/pa/pa.c, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
4320 config/rs6000/xcoff.h, config/sh/sh.c, config/sh/sh.h,
4321 config/v850/v850.c, config/v850/v850.h:
4322 Move STRIP_NAME_ENCODING to out-of-line function and add
4323 TARGET_STRIP_NAME_ENCODING.
4325 * config/arm/arm.c, config/arm/arm.h, config/mmix/mmix-protos.h,
4326 config/mmix/mmix.c, config/mmix/mmix.h: Replace STRIP_NAME_ENCODING
4327 with TARGET_STRIP_NAME_ENCODING referencing existing function;
4328 make function static.
4330 * xcoffout.c: Include target.h
4331 * Makefile.in (xcoffout.o): Update.
4333 * config/avr/avr.c (avr_encode_section_info): Correct prototype.
4334 * config/avr/avr.h (STRIP_NAME_ENCODING): Remove.
4335 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Mark
4336 reloc argument unused.
4337 * config/sh/sh.c (TARGET_ENCODE_SECTION_INFO): New.
4339 * doc/tm.texi (TARGET_STRIP_NAME_ENCODING): Update from previous
4340 STRIP_NAME_ENCODING docs.
4342 2002-05-19 Andreas Jaeger <aj@suse.de>
4344 * gengenrtl.c: Add prototype for excluded_rtx.
4346 * real.h: Add prototype for exact_real_truncate.
4348 2002-05-18 Richard Henderson <rth@redhat.com>
4350 * system.h (ENCODE_SECTION_INFO): Poison it.
4351 * target-def.h (TARGET_ENCODE_SECTION_INFO): New.
4352 * target.h (encode_section_info): New.
4353 * varasm.c (make_decl_rtl, output_constant_def): Use it.
4354 * hooks.c (hook_tree_int_void): New.
4355 * hooks.h: Declare it.
4357 * config/darwin.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
4358 config/alpha/alpha.h, config/arm/pe.h, config/avr/avr-protos.h,
4359 config/avr/avr.c, config/avr/avr.h, config/c4x/c4x-protos.h,
4360 config/c4x/c4x.c, config/c4x/c4x.h, config/cris/cris-protos.h,
4361 config/cris/cris.c, config/cris/cris.h, config/i386/cygwin.h,
4362 config/i386/win32.h, config/ia64/ia64-protos.h, config/ia64/ia64.c,
4363 config/ia64/ia64.h, config/m32r/m32r-protos.h, config/m32r/m32r.c,
4364 config/m32r/m32r.h, config/m68hc11/m68hc11-protos.h,
4365 config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
4366 config/mcore/mcore-protos.h, config/mcore/mcore.c,
4367 config/mcore/mcore.h, config/mmix/mmix-protos.h, config/mmix/mmix.c,
4368 config/mmix/mmix.h, config/rs6000/rs6000-protos.h,
4369 config/rs6000/sysv4.h, config/stormy16/stormy16-protos.h,
4370 config/stormy16/stormy16.c, config/stormy16/stormy16.h:
4371 Replace ENCODE_SECTION_INFO with TARGET_ENCODE_SECTION_INFO
4372 referencing existing function. Make function static.
4374 * config/a29k/a29k.c, config/a29k/a29k.h, config/arc/arc.c,
4375 config/arc/arc.h, config/arm/arm.c, config/arm/arm.h,
4376 config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
4377 config/i370/i370.h, config/i386/i386-interix.h, config/i386/i386.c,
4378 config/i386/i386.h, config/i386/interix.c, config/m88k/m88k.c,
4379 config/m88k/m88k.h, config/mips/mips.c, config/mips/mips.h,
4380 config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa.c,
4381 config/pa/pa.h, config/romp/romp.c, config/romp/romp.h,
4382 config/rs6000/linux64.h, config/rs6000/xcoff.h, config/s390/s390.c,
4383 config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
4384 config/sparc/sparc.c, config/sparc/sparc.h, config/v850/v850.c,
4385 config/v850/v850.h, config/vax/vax.c, config/vax/vms.h,
4386 config/xtensa/xtensa.c, config/xtensa/xtensa.h:
4387 Move ENCODE_SECTION_INFO to out-of-line function and add
4388 TARGET_ENCODE_SECTION_INFO.
4390 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use hook, not macro.
4391 (ASM_DECLARE_OBJECT_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
4393 * config/arm/pe.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Rename
4395 (switch_to_section): Replace in_rdata case with in_readonly_data.
4397 * config/h8300/h8300.c (h8300_encode_label): Make static.
4398 * config/h8300/h8300-protos.h: Update.
4400 * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Rename
4401 from rs6000_encode_section_info; make static.
4402 (rs6000_xcoff_encode_section_info): New.
4404 * config/v850/v850.c (v850_encode_data_area): Make static.
4405 * config/v850/v850-protos.h: Update.
4407 * config/vax/vax.c: Include flags.h.
4408 (vms_select_section): Fix typo.
4410 * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update from previous
4411 ENCODE_SECTION_INFO docs.
4413 2002-05-18 Richard Henderson <rth@redhat.com>
4415 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Rename from
4416 REGISTER_TARGET_PRAGMAS.
4417 * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Redefine.
4419 * config.gcc: Do not use rs6000-c.c on powerpc-darwin.
4421 2002-05-18 Richard Henderson <rth@redhat.com>
4423 * system.h (SELECT_RTX_SECTION): Poison.
4424 * target-def.h (TARGET_ASM_SELECT_RTX_SECTION): New.
4425 * target.h (select_rtx_section): New.
4426 * varasm.c (output_constant_pool): Use it.
4427 (default_select_rtx_section, default_elf_select_rtx_section): New.
4428 * output.h: Declare them.
4430 * config/darwin.h (SELECT_RTX_SECTION): Move ...
4431 * config/darwin.c (machopic_select_rtx_section): ... here.
4432 * config/darwin-protos.h: Update.
4434 * config/nextstep.h (SELECT_RTX_SECTION): Move ...
4435 * config/nextstep.c (machopic_select_rtx_section): ... here.
4436 (nextstep_select_section): Rename variable to avoid macro clash.
4437 * config/nextstep-protos.h: Update.
4439 * config/elfos.h, config/svr3.h, config/arm/aof.h, config/c4x/c4x.h,
4440 config/i386/dgux.h, config/i386/osfrose.h, config/i386/sco5.h,
4441 config/i386/svr3gas.h, config/i860/paragon.h, config/ia64/aix.h,
4442 config/m32r/m32r.h, config/m68k/dpx2.h, config/m68k/lynx.h,
4443 config/m68k/m68k.h, config/m68k/tower-as.h, config/m88k/dgux.h,
4444 config/mcore/mcore-pe.h, config/mips/mips.h, config/mmix/mmix.h,
4445 config/pa/pa-linux.h, config/pa/pa.h, config/romp/romp.h,
4446 config/rs6000/lynx.h, config/rs6000/sysv4.h, config/s390/linux.h,
4447 config/sparc/sysv4.h, config/xtensa/elf.h, config/xtensa/linux.h
4448 (SELECT_RTX_SECTION): Remove.
4450 * config/darwin.h, config/elfos.h, config/nextstep.h,
4451 config/ia64/aix.h, config/ia64/sysv4.h, config/alpha/alpha.c,
4452 config/mips/mips.c, config/romp/romp.c, config/rs6000/sysv4.h,
4453 config/rs6000/xcoff.h, config/s390/s390.c, config/sparc/aout.h,
4454 config/sparc/lynx.h, config/xtensa/xtensa.c
4455 (TARGET_ASM_SELECT_RTX_SECTION): New.
4457 * config/alpha/elf.h (SELECT_RTX_SECTION): Move ...
4458 * config/alpha/alpha.c (alpha_elf_select_rtx_section): ... here.
4459 * config/ia64/sysv4.h (SELECT_RTX_SECTION): Move ...
4460 * config/ia64/ia64.c (ia64_select_rtx_section): ... here.
4461 (ia64_aix_select_rtx_section): New.
4462 * config/mips/iris6.h (READONLY_DATA_SECTION_ASM_OP): Undef before
4464 * config/mips/mips.c (mips_select_rtx_section): Make static.
4465 Support ELF SHF_MERGE features.
4466 * config/mips/mips-protos.h: Update.
4467 * config/rs6000/xcoff.h (SELECT_RTX_SECTION): Move ...
4468 * config/rs6000/rs6000.c (rs6000_xcoff_select_rtx_section): ... here.
4469 (rs6000_elf_select_rtx_section): Rename from rs6000_select_rtx_section;
4470 make static, fall back to default_elf_select_rtx_section.
4471 * config/rs6000/rs6000-protos.h: Update.
4472 * config/sparc/sparc.h (SELECT_RTX_SECTION): Move ...
4473 * config/sparc/sparc.c (sparc_aout_select_rtx_section): ... here.
4474 * config/sparc/sunos4.h (on_exit): Declare only if IN_LIBGCC2.
4475 * config/romp/romp.c (romp_select_rtx_section): New.
4476 * config/s390/s390.c (s390_select_rtx_section): New.
4477 * config/xtensa/xtensa.c: Include output.h. Shuffle local function
4478 declarations before target macro definition.
4479 (xtensa_emit_call): Use static buffer.
4480 (xtensa_select_rtx_section): New.
4481 * config/xtensa/xtensa.h (MAX_INT_TYPE_SIZE): Remove.
4482 (IMPLICIT_FIX_EXPR, EASY_DIV_EXPR): Remove.
4483 (ASM_OUTPUT_POOL_PROLOGUE): Update call to resolve_unique_section.
4485 * doc/tm.texi (TARGET_ASM_SELECT_RTX_SECTION): Update from
4486 SELECT_RTX_SECTION docs.
4488 Sun May 19 00:24:23 CEST 2002 Jan Hubicka <jh@suse.cz>
4490 * i386.md (movsi/movdi): Fix template.
4491 (sse2 patterns): Set attributes consistently.
4493 * i386.md (pushqi2, ashrqi_*): Fix constraint.
4495 2002-05-18 Toon Moene <toon@moene.indiv.nluug.nl>
4497 * optabs.c (complex_part_zero_p): New.
4498 * (expand_cmplxdiv_straight): Use it.
4499 * (expand_cmplxdiv_wide): Ditto.
4500 * (expand_binop): Ditto.
4502 2002-05-18 Richard Henderson <rth@redhat.com>
4504 * final.c (HAVE_READONLY_DATA_SECTION): New.
4505 (shorten_branches): Use it instead of ifdefs.
4506 * varasm.c (enum in_section): Add in_readonly_data.
4507 (text_section, data_section): Tidy.
4508 (readonly_data_section): Use READONLY_DATA_SECTION_ASM_OP if present.
4510 * config/darwin.h, config/nextstep.h, config/h8300/elf.h,
4511 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h
4512 (READONLY_DATA_SECTION): Don't undef.
4514 * config/alpha/unicosmk.h, config/h8300/elf.h, config/i386/aix386ng.h,
4515 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h,
4516 config/rs6000/lynx.h (READONLY_DATA_SECTION_ASM_OP): Undef.
4518 * config/elfos.h, config/svr3.h, config/alpha/alpha-interix.h,
4519 config/alpha/elf.h, config/c4x/c4x.h, config/i386/i386-interix.h,
4520 config/i386/sco5.h, config/i386/svr3gas.h, config/i860/sysv3.h,
4521 config/m88k/m88k.h, config/pa/pa64-hpux.h (USE_CONST_SECTION): Remove.
4523 * config/elfos.h, config/netware.h, config/alpha/alpha-interix.h,
4524 config/alpha/elf.h, config/alpha/vms.h, config/arc/arc.h,
4525 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
4526 config/i386/dgux.h, config/i386/i386-interix.h, config/i386/sco5.h,
4527 config/ia64/hpux.h, config/m32r/m32r.h, config/m68k/tower-as.h,
4528 config/m88k/m88k.h, config/mcore/mcore-pe.h, config/mips/iris6.h,
4529 config/mips/mips.h, config/mmix/mmix.h, config/pa/pa64-hpux.h,
4530 config/sparc/sysv4.h (READONLY_DATA_SECTION_ASM_OP): Rename from
4531 CONST_SECTION_ASM_OP/READONLY_SECTION_ASM_OP/RDATA_SECTION_ASM_OP.
4533 * config/elfos.h, config/netware.h, config/1750a/1750a.h,
4534 config/a29k/a29k.h, config/alpha/alpha-interix.h, config/alpha/alpha.h,
4535 config/arm/coff.h, config/h8300/h8300.h, config/i386/aix386ng.h,
4536 config/i386/i386-interix.h, config/i386/osfrose.h, config/mmix/mmix.h,
4537 config/pa/pa64-hpux.h, config/sparc/litecoff.h
4538 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
4540 * config/elfos.h, config/netware.h, config/svr3.h,
4541 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
4542 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
4543 config/h8300/h8300.h, config/i386/i386-interix.h,
4544 config/i386/osfrose.h, config/i386/svr3gas.h, config/mmix/mmix.h,
4545 config/pa/pa64-hpux.h (READONLY_DATA_SECTION): Remove.
4547 * config/elfos.h, config/netware.h, config/svr3.h,
4548 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
4549 config/c4x/c4x.h, config/i386/aix386ng.h, config/i386/i386-interix.h,
4550 config/i386/sco5.h, config/i386/svr3gas.h, config/mmix/mmix.h,
4551 config/pa/pa64-hpux.h (CONST_SECTION_FUNCTION): Remove.
4553 * config/lynx.h, config/svr3.h, config/alpha/elf.h, config/alpha/vms.h,
4554 config/c4x/c4x.h, config/dsp16xx/dsp16xx.h, config/i386/sco5.h,
4555 config/i386/svr3gas.h, config/i860/sysv3.h, config/i860/sysv4.h,
4556 config/ia64/sysv4.h, config/m32r/m32r.h, config/m88k/m88k.h,
4557 config/mcore/mcore-elf.h, config/mcore/mcore-pe.h, config/mips/elf.h,
4558 config/mips/elf64.h, config/mips/iris6.h, config/mips/linux.h,
4559 config/mips/mips.h, config/mips/rtems64.h, config/mips/vxworks.h,
4560 config/rs6000/sysv4.h, config/v850/v850.h
4561 (EXTRA_SECTIONS): Remove in_const/in_rdata.
4562 (EXTRA_SECTION_FUNCTIONS): Remove accompanying function.
4564 * config/svr3.h, config/c4x/c4x.h, config/i386/dgux.h,
4565 config/i386/sco5.h, config/i386/svr3gas.h, config/ia64/aix.h,
4566 config/m88k/dgux.h, config/mcore/mcore-pe.h, config/mmix/mmix.h,
4567 config/sparc/sysv4.h (SELECT_RTX_SECTION): Use readonly_data_section.
4568 * config/alpha/alpha.c (alpha_start_function): Likewise.
4569 (alpha_write_linkage): Likewise.
4570 * config/m32r/m32r.c (m32r_select_section): Likewise.
4571 * config/m88k/m88k.c (m88k_select_section): Likewise.
4572 * config/mips/mips.c (mips_select_rtx_section): Likewise.
4573 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Likewise.
4574 (rs6000_elf_select_section): Likewise.
4575 * config/v850/v850.c (v850_select_section): Likewise.
4577 * config/1750a/1750a.h, config/i860/sysv3.h
4578 (READONLY_DATA_SECTION_ASM_OP): New.
4579 READONLY_DATA_SECTION_ASM_OP.
4580 * config/i386/interix.c, config/i386/winnt.c
4581 (i386_pe_unique_section): Always use .rdata prefix.
4582 * config/pa/som.h (readonly_data): Always switch to read-only section.
4583 (READONLY_DATA_SECTION): Predicate on flag_pic.
4584 * config/we32k/we32k.h (READONLY_DATA_SECTION): Remove parenthesis.
4585 * doc/tm.texi (READONLY_DATA_SECTION_ASM_OP): New.
4586 (READONLY_DATA_SECTION): Update.
4588 2002-05-18 Jason Thorpe <thorpej@wasabisystems.com>
4590 * c-common.c (c_common_post_options): Warn if -Wformat-zero-length
4591 is used without -Wformat.
4592 * c-common.h (warn_format_zero_length): Declare extern.
4593 * c-decl.c (warn_options): Add "format-zero-length".
4594 * c-format.c (warn_format_zero_length): Declare.
4595 (set_Wformat): Set warn_format_zero_length for -Wformat.
4596 (check_format_info): Only warn about zero-length formats if
4597 warn_format_zero_length is true. Include the format type
4598 name in the warning message.
4599 * doc/invoke.texi: Document -Wformat-zero-length.
4600 * testsuite/gcc.dg/format/zero-length-1.c: New test.
4602 2002-05-18 Kazu Hirata <kazu@cs.umass.edu>
4604 * timevar.c: Fix formatting.
4605 * tlink.c: Likewise.
4606 * toplev.c: Likewise.
4607 * tree-dump.c: Likewise.
4608 * tree-inline.c: Likewise.
4610 2002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
4612 * cppinit.c (cpp_post_options): If preprocessed, turn off
4613 traditional. If traditional, turn off column numbers.
4614 * cpplib.c (cpp_push_buffer): Lex from stage 3 if traditional.
4615 * cpptrad.c (handle_newline): Update line_base.
4616 (skip_comment): Handle -Wcomment.
4618 2002-05-17 Zack Weinberg <zack@codesourcery.com>
4620 * cppinit.c (struct builtin): Remove unused fields.
4621 (CPLUS, BUILTIN, OPERATOR, O, builtin_array_end): Kill.
4622 (operator_array): New - was second half of builtin_array.
4623 (init_builtins): Simplify loop over builtin_array/operator_array.
4625 2002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
4627 * defaults.h (UNIQUE_SECTION): Remove.
4628 * system.h (UNIQUE_SECTION, SELECT_SECTION): Poison.
4630 2002-05-17 Richard Henderson <rth@redhat.com>
4632 * expr.c (init_expr_once): Don't use start/end_sequence.
4633 Use rtx_alloc instead of emit_insn.
4634 * toplev.c (lang_dependent_init): Run init_expr_once here ...
4635 (lang_independent_init): ... not here.
4637 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
4639 * config/sh/lib1funcs.asm (GLOBAL): Use __USER_LABEL_PREFIX__.
4641 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
4643 * config/avr/avr.c (avr_regs_to_save): New function. Also check
4644 for fixed registers, possibly used for global register variables.
4645 (initial_elimination_offset, avr_output_function_prologue,
4646 avr_output_function_epilogue): Move common code to avr_regs_to_save.
4648 2002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
4650 * Makefile.in: Update for cpptrad.c.
4651 * cpphash.h (struct cpp_buffer): New members for buffer
4653 (struct cpp_reader): New members for traditional output.
4654 (_cpp_read_logical_line, _cpp_overlay_buffer): New.
4655 * cppinit.c (cpp_create_reader): Set trad_line.
4656 (cpp_destroy): Free trad_out_base if used.
4657 (cpp_read_main_file): Overlay an empty buffer if traditional.
4658 (cpp_finish_options): Don't do builtins.
4659 (COMMAND_LINE_OPTIONS): Add -traditional-cpp.
4660 (cpp_handle_option): Handle it.
4661 * cpplex.c (continue_after_nul): New.
4662 (_cpp_lex_direct): Use handle_nul.
4663 * cpplib.h (struct cpp_options): New traditional option.
4664 * cpptrad.c: New file.
4666 2002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
4668 * c-common.c (c_common_init_options): Use C89 for Objective-C,
4669 and set the options flag.
4670 * cppinit.c (lang_flags): Remove objc.
4671 (lang_defaults): Remove OBJC and OBJCXX.
4673 (COMMAND_LINE_OPTIONS): Remove -+ and -lang-objc++.
4674 (cpp_handle_option): Remove -+ and -lang-objc++.
4675 For ObjC, just set a flag.
4676 (print_help): Update.
4677 * cpplib.h (enum c_lang): Remove CLK_OBJC and CLK_OBJCXX.
4679 2002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4681 * doc/install.texi (Specific, mips-sgi-irix6): Document need to
4682 bootstrap with -mips3.
4684 2002-05-17 Kazu Hirata <kazu@cs.umass.edu>
4686 * final.c: Fix formatting.
4687 * fix-header.c: Likewise.
4689 * fold-const.c: Likewise.
4690 * function.c: Likewise.
4692 2002-05-17 David S. Miller <davem@redhat.com>
4694 PR c/6689, PR optimization/6615
4695 * local-alloc.c (struct equivalence): Rename 'src' to 'src_p'
4696 and make it a pointer to rtx. Update comments.
4697 (update_equiv_regs): When scanning for equivalences, record
4698 address of SET_SRC (set) in reg_equiv[].src_p. Dereference
4699 it while making the equiv replacements.
4701 2002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4703 * config/sparc/sparc.c (sparc_aout_select_section): Fixed typo.
4705 2002-05-17 kaz Kojima <kkojima@rr.iij4u.or.jp>
4707 * config/sh/sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P
4708 when encoding visibility into SYMBOL_REF_FLAG.
4710 2002-05-17 Richard Sandiford <rsandifo@redhat.com>
4712 * expr.c (force_operand): Fix reversed move.
4714 2002-05-17 Kurt Wall <kwall@kurtwerks.com>
4716 * doc/install.texi (Testing): Mention two common DejaGnu warnings
4717 that can be ignored.
4719 2002-05-16 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4721 * doc/install.texi (Final install): Recommend to install into a
4722 "clean" target directory.
4724 2002-05-17 Richard Henderson <rth@redhat.com>
4726 * config/ia64/ia64.md: Use braced strings instead of quoted strings
4727 for code blocks. Tidy whitespace.
4729 2002-05-17 Richard Henderson <rth@redhat.com>
4731 * hooks.c (hook_tree_bool_false): New.
4732 * hooks.h: Declare it.
4733 * target-def.h (TARGET_ASM_SELECT_SECTION): New.
4734 (TARGET_ASM_UNIQUE_SECTION, TARGET_IN_SMALL_DATA_P): New.
4735 * target.h (select_section, unique_section): New.
4736 (in_small_data_p): New.
4737 * varasm.c (resolve_unique_section): Use hooks instead of macros.
4738 (variable_section, output_constant_def_contents): Likewise.
4739 (default_select_section, default_unique_section): New.
4740 (categorize_decl_for_section, default_elf_select_section): New.
4741 * output.h: Declare them.
4743 * config/darwin.h (ALIAS_SECTION, try_section_alias): Remove.
4744 (TARGET_ASM_SELECT_SECTION): New.
4745 (SELECT_SECTION): Move ...
4746 * config/darwin.c (machopic_select_section): ... here.
4747 * config/darwin-protos.h: Update.
4749 * config/nextstep.h (TARGET_ASM_SELECT_SECTION): New.
4750 (SELECT_SECTION): Move ...
4751 * config/nextstep.c (nextstep_select_section): ... here.
4752 * config/nextstep-protos.h: Update.
4754 * config/elfos.h (UNIQUE_SECTION, SELECT_SECTION): Remove.
4755 (TARGET_ASM_SELECT_SECTION): New.
4756 * config/svr3.h (SELECT_SECTION): Remove.
4758 * config/alpha/alpha.c (unicosmk_unique_section): Make static.
4759 (TARGET_ASM_UNIQUE_SECTION) [UNICOS]: New.
4760 (TARGET_IN_SMALL_DATA_P, alpha_in_small_data_p): New.
4761 (alpha_encode_section_info): Use it.
4762 * config/alpha/alpha-protos.h: Update.
4763 * config/alpha/elf.h (DO_SELECT_SECTION): Remove.
4764 (SELECT_SECTION, UNIQUE_SECTION): Remove.
4765 (TARGET_ASM_SELECT_SECTION): New.
4766 * config/alpha/unicosmk.h (UNIQUE_SECTION): Remove.
4768 * config/arm/pe.h (UNIQUE_SECTION): Remove.
4769 (TARGET_ASM_UNIQUE_SECTION): New.
4771 * config/avr/avr.c (TARGET_ASM_UNIQUE_SECTION): New.
4772 (avr_unique_section): Rename from unique_section; make static.
4773 * config/avr/avr-protos.h: Update.
4774 * config/avr/avr.h (UNIQUE_SECTION): Remove.
4776 * config/c4x/c4x.h (SELECT_SECTION): Remove.
4778 * config/i386/cygwin.h (UNIQUE_SECTION): Remove.
4779 (TARGET_ASM_UNIQUE_SECTION): New.
4780 * config/i386/i386-interix.h: Likewise.
4781 * config/i386/win32.h: Likewise.
4782 * config/i386/djgpp.h (UNIQUE_SECTION): Remove.
4783 * config/i386/i386.c (ix86_asm_file_end): Use target hook not macro.
4784 * config/i386/sco5.h (SELECT_SECTION): Remove.
4785 (TARGET_ASM_SELECT_SECTION): New.
4786 * config/i386/svr3gas.h (SELECT_SECTION): Remove.
4788 * config/i860/paragon.h: Undef TARGET_ASM_SELECT_SECTION
4789 instead of SELECT_SECTION.
4790 * config/m68k/dpx2.h: Likewise.
4791 * config/rs6000/lynx.h: Likewise.
4793 * config/ia64/aix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
4794 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
4795 * config/ia64/ia64.c (TARGET_IN_SMALL_DATA_P): New.
4796 (ia64_in_small_data_p): New.
4797 (ia64_encode_section_info): Use it. Reorganize overlarge conditional.
4798 (ia64_aix_select_section, ia64_aix_unique_section): New.
4799 * config/ia64/sysv4.h (DO_SELECT_SECTION): Remove.
4800 (SELECT_SECTION, UNIQUE_SECTION): Remove.
4802 * config/m32r/m32r.h (SELECT_SECTION): Remove.
4803 (TARGET_ASM_SELECT_SECTION): New.
4804 * config/m32r/m32r.c (m32r_select_section): Take align argument.
4805 * config/m32r/m32r-protos.h: Update.
4807 * config/m88k/m88k.h (TARGET_ASM_SELECT_SECTION): New.
4808 (SELECT_SECTION): Move ...
4809 * config/m88k/m88k.c (m88k_select_section): ... here.
4811 * config/mcore/mcore-pe.h (SELECT_SECTION): Remove.
4812 * config/mcore/mcore.h (UNIQUE_SECTION): Remove.
4813 * config/mcore/mcore.c (TARGET_ASM_UNIQUE_SECTION): New.
4814 (mcore_unique_section): Make static.
4815 * config/mcore/mcore-protos.h: Update.
4817 * config/mips/elf.h (UNIQUE_SECTION): Remove.
4818 (TARGET_ASM_UNIQUE_SECTION): New.
4819 * config/mips/elf64.h: Likewise.
4820 * config/mips/iris6gld.h: Likewise.
4821 * config/mips/linux.h: Likewise.
4822 * config/mips/mips-protos.h: Update.
4823 * config/mips/mips.c (mips_select_section): Add align argument.
4824 * config/mips/mips.h (SELECT_SECTION): Remove.
4825 (TARGET_ASM_SELECT_SECTION): New.
4827 * config/mmix/mmix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
4828 * config/mmix/mmix.c (mmix_select_section): Remove.
4829 (mmix_unique_section): Remove.
4830 * config/mmix/mmix-protos.h: Update.
4832 * config/pa/pa.h (TARGET_ASM_SELECT_SECTION): New.
4833 (SELECT_SECTION): Move ...
4834 * config/pa/pa.c (pa_select_section): ... here.
4835 * config/pa/pa64-hpux.h (UNIQUE_SECTION): Remove.
4837 * config/rs6000/rs6000.c (rs6000_elf_select_section): Rename
4838 from rs6000_select_section and make static.
4839 (rs6000_elf_unique_section): Similarly.
4840 (rs6000_xcoff_select_section): From xcoff.h.
4841 (rs6000_xcoff_unique_section): Likewise.
4842 * config/rs6000/rs6000-protos.h: Update.
4843 * config/rs6000/sysv4.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
4844 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
4845 * config/rs6000/xcoff.h: Likewise.
4847 * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): New.
4848 (SELECT_SECTION): Move ...
4849 * config/sparc/sparc.c (sparc_aout_select_section): ... here.
4851 * config/v850/v850.h (SELECT_SECTION): Move ...
4852 * config/v850/v850.c (v850_select_section): ... here.
4853 (TARGET_ASM_SELECT_SECTION): New.
4855 * config/vax/vms.h (SELECT_SECTION): Move ...
4856 * config/vax/vax.c (vms_select_section): ... here.
4857 (TARGET_ASM_SELECT_SECTION): New.
4859 * doc/tm.texi: Update SELECT_SECTION and UNIQUE_SECTION docs
4860 for the target hooks.
4862 2002-05-17 Nick Clifton <nickc@cambridge.redhat.com>
4864 * config/arm/arm.c (emit_multi_reg_push): Do not set
4865 RTX_FRAME_RELATED_P on the SEQUENCE.
4867 2002-05-16 Richard Henderson <rth@redhat.com>
4869 * config/ia64/ia64.c (ia64_reorg): Rebuild bb_for_insn before
4870 splitting. Use split_all_insns; update_life_info_in_dirty_blocks.
4872 2002-05-16 Richard Henderson <rth@redhat.com>
4874 * config/alpha/unicosmk.h (TARGET_OS_CPP_BUILTINS): Fix typo.
4876 * config/ia64/ia64.c (saveable_obstack): Do not declare.
4878 2002-05-16 Richard Henderson <rth@redhat.com>
4880 * basic-block.h, bb-reorder.c, cfg.c, cfganal.c, cfgbuild.c,
4881 cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c, combine.c,
4882 conflict.c, df.c, df.h, dominance.c, final.c, flow.c, function.c,
4883 gcse.c, global.c, graph.c, haifa-sched.c, ifcvt.c, lcm.c,
4884 local-alloc.c, loop.c, predict.c, print-rtl.c, profile.c,
4885 recog.c, reg-stack.c, regclass.c, regmove.c, regrename.c,
4886 reload1.c, reorg.c, resource.c, sbitmap.c, sched-deps.c,
4887 sched-ebb.c, sched-rgn.c, sibcall.c, ssa-ccp.c, ssa-dce.c, ssa.c:
4888 Revert "Basic block renumbering removal", and two followup patches.
4890 2002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
4892 * lcm.c (optimize_mode_switching): Revert previous change.
4894 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4896 * sched-rgn.c (schedule_insns): Initialize large_region_blocks
4897 with only extant block numbers.
4899 2002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
4901 * lcm.c (optimize_mode_switching): Fix typo.
4903 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4905 * flow.c (calculate_global_regs_live): Queue blocks in program order.
4907 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4909 * doc/install.texi (Configuration): Document PWDCMD.
4911 2002-05-16 Dale Johannesen <dalej@apple.com>
4913 * combine.c (cant_combine_insn_p): Reenable combinations
4914 involving hard regs unless CLASS_LIKELY_SPILLED_P.
4916 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
4918 * c-common.c (cb_register_builtins): Handle more built-ins
4919 here rather than in gcc.c specs.
4920 * gcc.c (cpp_unique_options): Move many built-ins to c-common.c.
4921 (cpp_options): Pass -O flags even when only preprocessing.
4922 * toplev.c (set_fast_math_flags): New prototype.
4923 (fast_math_flags_set_p): New.
4924 (set_no_fast_math_flags): Remove.
4925 (decode_f_option): Update.
4926 * toplev.h (set_fast_math_flags): Update.
4927 (fast_math_flags_set_p): New.
4928 (set_no_fast_math_flags): Remove.
4930 * c4x/c4x.c (c4x_override_options): Update.
4932 2002-05-16 Zack Weinberg <zack@codesourcery.com>
4934 * c-common.c (STDC_0_IN_SYSTEM_HEADERS, REGISTER_PREFIX):
4935 Default-define here.
4936 (builtin_define_with_value): Can now wrap the expansion in
4937 quotation marks if such is wanted.
4938 (cb_register_builtins): Update calls to builtin_define_with_value.
4939 Define __REGISTER_PREFIX__, __USER_LABEL_PREFIX__, and __VERSION__
4941 (c_common_init): Set options->stdc_0_in_system_headers.
4942 * c-lex.h: Update prototype of builtin_define_with_value.
4943 * cppdefault.h: Remove default definitions of USER_LABEL_PREFIX
4944 and REGISTER_PREFIX.
4946 * cppinit.c (VERS, ULP, C, X): Kill.
4947 (builtin_array): Remove entries for __VERSION__,
4948 __USER_LABEL_PREFIX__, __REGISTER_PREFIX__, and
4949 __HAVE_BUILTIN_SETJMP__. Make __STDC__ always a builtin, not
4951 (init_builtins): Kill off a bunch of now-dead code.
4952 (COMMAND_LINE_OPTIONS): Remove -fleading-underscore and
4953 -fno-leading-underscore.
4954 (cpp_handle_option): Remove code to set user_label_prefix.
4955 (cpp_post_options): Likewise.
4957 * cpplib.h (struct cpp_options): Remove user_label_prefix.
4958 (stdc_0_in_system_headers): New.
4959 * cppmacro.c (builtin_macro): Check CPP_OPTION (pfile,
4960 stdc_0_in_system_headers) too to decide the value of __STDC__.
4962 * tradcpp.c (user_label_prefix): Kill.
4963 (main): Remove code handling -f(no-)leading-underscore.
4964 (initialize_builtins): Don't define __REGISTER_PREFIX__
4965 or __USER_LABEL_PREFIX__.
4966 (install_value): Wrap compound statement in dummy loop so the
4967 macro works properly in an if statement.
4970 2002-05-16 Janis Johnson <janis187@us.ibm.com>
4972 * loop.h (struct loop_info): Add member has_prefetch.
4973 * loop.c (PREFETCH_CONDITIONAL): Change default to 1.
4974 (prescan_loop): Initialize has_prefetch.
4975 (struct prefetch_info): Change prefetch_in_loop and
4976 prefetch_before_loop from bit fields to ints.
4977 (emit_prefetch_instructions): Several small fixes.
4978 (check_dbra_loop): Don't reverse loop that uses prefetch.
4980 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4982 * Makefile.in: Allow for PWDCMD to override hardcoded pwd.
4983 * configure.in: Likewise.
4984 * fixinc/check.tpl: Likewise.
4985 * fixinc/fixinc.dgux: Likewise.
4986 * fixinc/fixinc.svr4: Likewise.
4987 * fixinc/fixinc.winnt: Likewise.
4988 * fixinc/fixincl.sh: Likewise.
4989 * fixproto: Likewise.
4990 * configure: Regenerate.
4992 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4994 Basic block renumbering removal:
4995 * basic_block.h (struct basic_block_def): Renamed index to sindex,
4996 added prev_bb and next_bb fields.
4997 (n_basic_blocks): Renamed to num_basic_blocks.
4998 (last_basic_block): New, index of last basic block.
4999 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
5000 traversing basic block chain.
5001 (BLOCK_NUM): index -> sindex.
5002 (create_basic_block_structure, create_basic_block): Declaration changed.
5003 (debug_num2bb): Declare.
5004 (expunge_block_nocompact): Declaration removed.
5005 (link_block, unlink_block, compact_blocks): Declare.
5006 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1): Modified.
5007 * cfg.c (entry_exit_blocks): Initialize new fields.
5008 (clear_edges, alloc_block, expunge_block, cached_make_edge,
5009 redirect_edge_pred, dump_flow_info, dump_edge_info,
5010 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges,
5011 free_aux_for_edges): Modified.
5012 (link_block, unlink_block, compact_blocks, debug_num2bb): New.
5013 (expunge_block_nocompact): Removed.
5014 * cfganal.c (can_fallthru, mark_dfs_back_edges, flow_call_edges_add,
5015 find_unreachable_blocks, create_edge_list, print_edge_list,
5016 verify_edge_list, flow_edge_list_print, remove_fake_successors,
5017 remove_fake_edges, flow_reverse_top_sort_order_compute,
5018 flow_depth_first_order_compute, flow_preorder_transversal_compute,
5019 flow_dfs_compute_reverse_init, flow_dfs_compute_reverse_add_bb,
5020 flow_dfs_compute_reverse_execute): Modified.
5021 * cfgbuild.c (make_edges, make_eh_edge, find_basic_blocks_1,
5022 find_basic_blocks, find_many_sub_basic_blocks, find_sub_basic_blocks):
5024 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
5025 merge_blocks_move_predecessor_nojumps,
5026 merge_blocks_move_successor_nojumps, merge_blocks,
5027 outgoing_edges_match, try_crossjump_to_edge, try_crossjump_bb,
5028 try_optimize_cfg, delete_unreachable_blocks, cleanup_cfg): Modified.
5029 * cfglayout.c (skip_insns_after_block, label_for_bb,
5030 record_effective_endpoints, scope_to_insns_finalize,
5031 fixup_reorder_chain, verify_insn_chain, cleanup_unconditional_jumps,
5032 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge,
5033 cfg_layout_duplicate_bb): Modified.
5034 * cfgloop.c (flow_loops_cfg_dump, flow_loop_dump, flow_loops_dump,
5035 flow_loop_entry_edges_find, flow_loop_exit_edges_find,
5036 flow_loop_nodes_find, flow_loop_pre_header_find, flow_loop_scan,
5037 flow_loops_find, flow_loop_outside_edge_p): Modified.
5038 * cfgrtl.c (create_basic_block_structure, create_basic_block,
5039 flow_delete_block, compute_bb_for_insn, split_block,
5040 try_redirect_by_replacing_jump, redirect_edge_and_branch,
5041 force_nonfallthru_and_redirect, tidy_fallthru_edge,
5042 back_edge_of_syntactic_loop_p, split_edge, commit_one_edge_insertion,
5043 commit_edge_insertions, commit_edge_insertions_watch_calls,
5044 dump_bb, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
5045 purge_all_dead_edges): Modified.
5046 * combine.c (combine_instructions, set_nonzero_bits_and_sign_copies,
5047 try_combine, nonzero_bits, num_sign_bit_copies, get_last_value_validate,
5048 get_last_value, reg_dead_at_p, distribute_notes, distribute_links):
5050 * conflict.c (conflict_graph_compute): Modified.
5051 * df.c (FOR_ALL_BBS): Removed.
5052 (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
5053 df_modified_p, df_analyse, df_refs_unlink, df_insn_modify,
5054 df_dump, hybrid_search_bitmap, iterative_dataflow_sbitmap): Modified.
5055 * df.h (DF_BB_INFO, DF_REF_BBNO): Modified.
5056 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
5057 calc_idoms, idoms_to_doms, calculate_dominance_info): Modified.
5058 * final.c (compute_alignments, final_scan_insn): Modified.
5059 * flow.c (verify_local_live_at_start, update_life_info,
5060 update_life_info_in_dirty_blocks, free_basic_block_vars,
5061 delete_noop_moves, calculate_global_regs_live,
5062 initialize_uninitialized_subregs, allocate_bb_life_data,
5063 regno_uninitialized, regno_clobbered_at_setjmp, mark_set_1,
5064 mark_used_reg, count_or_remove_death_notes): Modified.
5065 * function.c (thread_prologue_and_epilogue_insns): Modified.
5066 * gcse.c (struct null_pointer_info): Change typo of current_block
5068 (gcse_main, alloc_gcse_mem, compute_local_properties, compute_sets,
5069 oprs_unchanged_p, load_killed_in_block_p, record_last_reg_set_info,
5070 compute_hash_table, alloc_rd_mem, handle_rd_kill_set, compute_kill_rd,
5071 alloc_avail_expr_mem, expr_killed_p, compute_ae_kill,
5072 expr_reaches_here_p_work, expr_reaches_here_p, handle_avail_expr,
5073 classic_gcse, one_classic_gcse_pass, compute_transp, cprop,
5074 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p_work,
5075 pre_expr_reaches_here_p, insert_insn_end_bb, pre_edge_insert,
5076 pre_delete, one_pre_gcse_pass, compute_transpout,
5077 invalidate_nonnull_info, delete_null_pointer_checks_1,
5078 free_code_hoist_mem, compute_code_hoist_vbeinout,
5079 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
5080 compute_ld_motion_mems, store_ops_ok, find_moveable_store,
5081 compute_store_table, build_store_vectors, insert_insn_start_bb,
5082 insert_store, replace_store_insn, free_store_memory, store_motion):
5084 * global.c (global_alloc, global_conflicts, mark_elimination,
5085 build_insn_chain): Modified.
5086 * graph.c (print_rtl_graph_with_bb): Modified.
5087 * haifa-sched.c (sched_init): Modified.
5088 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
5089 (find_if_block, find_cond_trap, find_if_case_1, find_if_case_2,
5090 if_convert): Modified.
5091 * lcm.c (compute_antinout_edge, compute_earliest, compute_laterin,
5092 compute_insert_delete, pre_edge_lcm, compute_available,
5093 compute_farthest, compute_nearerout, compute_rev_insert_delete,
5094 pre_edge_rev_lcm, make_preds_opaque, optimize_mode_switching):
5096 * local-alloc.c (alloc_qty, local_alloc, update_equiv_regs): Modified.
5097 * loop.c (loop_dump_aux): Modified.
5098 * predict.c (combine_predictions_for_insn, estimate_probability,
5099 last_basic_block_p, process_note_prediction, process_note_predictions,
5100 note_prediction_to_br_prob, propagate_freq, counts_to_freqs,
5101 expensive_function_p, estimate_bb_frequencies,
5102 compute_function_frequency): Modified.
5103 * print-rtl.c (print_rtx): Modified.
5104 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX, instrument_edges,
5105 get_exec_counts, compute_branch_probabilities, compute_checksum,
5106 branch_prob, find_spanning_tree): Modified.
5107 * recog.c (split_all_insns, peephole2_optimize): Modified.
5108 * reg-stack.c (reg_to_stack, convert_regs_entry, compensate_edge,
5109 convert_regs_1, convert_regs_2, convert_regs): Modified.
5110 * regclass.c (scan_one_insn, regclass): Modified.
5111 * regmove.c (mark_flags_life_zones, regmove_optimize,
5112 combine_stack_adjustments): Modified.
5113 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Modified.
5114 * reload1.c (reload, reload_combine, copy_eh_notes): Modified.
5115 * reorg.c (dbr_schedule): Modified.
5116 * resource.c (find_basic_block, init_resource_info): Modified.
5117 * sbitmap.c (sbitmap_intersection_of_succs,
5118 sbitmap_intersection_of_preds, sbitmap_union_of_succs,
5119 sbitmap_union_of_preds): Modified.
5120 * sched-deps.c (init_dependency_caches): Modified.
5121 * sched-ebb.c (schedule_ebbs): Modified.
5122 * sched-rgn.c (is_cfg_nonregular, build_control_flow, debug_regions,
5123 find_rgns, compute_trg_info, init_regions, schedule_insns): Modified.
5124 * sibcall.c (optimize_sibling_and_tail_recursive_call): Modified.
5125 * ssa-ccp.c (examine_flow_edges, optimize_unexecutable_edges,
5126 ssa_ccp_substitute_constants, ssa_ccp_df_delete_unreachable_insns,
5127 ssa_const_prop): Modified.
5128 * ssa-dce.c (set_control_dependent_block_to_edge_map_,
5129 find_control_dependence, find_pdom, ssa_eliminate_dead_code): Modified.
5130 * ssa.c (remove_phi_alternative, find_evaluations,
5131 compute_dominance_frontiers_1, compute_iterated_dominance_frontiers,
5132 insert_phi_node, rename_block, convert_to_ssa, eliminate_phi,
5133 make_regs_equivalent_over_bad_edges,
5134 make_equivalent_phi_alternatives_equival,
5135 compute_conservative_reg_partition,
5136 coalesce_regs_in_successor_phi_nodes, compute_coalesced_reg_partition,
5137 rename_equivalent_regs, convert_from_ssa, for_each_successor_phi):
5140 2002-05-16 Mark Mitchell <mark@codesourcery.com>
5142 * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
5144 2002-05-16 Nick Clifton <nickc@cambridge.redhat.com>
5146 * config/arm/arm.c (arm_rtx_costs): Check for RTX being a
5147 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
5148 (arm_adjust_cost): Check for RTX being a SYMBOL_REF before
5149 calling CONSTANT_POOL_ADDRESS_P.
5150 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in code
5151 to decide whether to define __arm__ or __thumb.
5152 (THUMB_GO_IF_LEGITIMATE_ADDRESS): Check for RTX being a
5153 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
5155 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
5157 * config/arc/arc.h (CPP_PREDEFINES): Remove.
5159 (TARGET_CPU_CPP_BUILTINS): New.
5161 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
5163 * cpphash.h (cpp_macro): Move here, and make expansion a union.
5164 * cppmacro.c (cpp_macro): Remove.
5165 (enter_macro_context, replace_args, warn_of_redefinition,
5166 _cpp_create_definition, cpp_macro_definition): Update.
5168 2002-05-16 Jason Merrill <jason@redhat.com>
5170 * config/mips/mips.c (mips_output_external): Don't do sdata
5171 optimization for a variable with DECL_COMDAT set.
5173 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
5175 * config/rs6000/altivec.h: Cleanups for tighter typechecking.
5176 Cleanups for accepting modifiers on pointers.
5177 Fix predicate typos.
5178 Allow long pointers as well as int pointers.
5180 2002-05-15 Richard Henderson <rth@redhat.com>
5182 * varasm.c (merge_weak): Remove special case for extern and common.
5184 2002-05-15 Matt Hiller <hiller@redhat.com>
5186 * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
5188 * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
5189 * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
5190 * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
5191 * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
5192 * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
5193 * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
5195 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
5197 * reload1.c (forget_old_reloads_1): Do not use subreg offset.
5199 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
5201 * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
5202 ("altivec_mfvscr"): Read from VSCR.
5204 Add vscr sets for the following insns: altivec_vctuxs,
5205 altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
5206 altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
5207 altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
5208 altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
5209 altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
5210 altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
5211 altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
5212 altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
5213 altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
5214 altivec_vsum2sws, altivec_vsumsws.
5216 * config/rs6000/rs6000.h: Add VSCR fixed register.
5217 (CALL_REALLY_USED_REGISTERS): Add vscr.
5218 (CALL_USED_REGISTERS): Same.
5219 (FIXED_REGISTERS): Same.
5220 (REG_ALLOC_ORDER): Same.
5221 (reg_class): Add VSCR_REGS.
5222 (REG_CLASS_NAMES): Same.
5223 (REG_CLASS_CONTENTS): Same.
5225 (REGISTER_NAMES): Add vscr.
5226 (DEBUG_REGISTER_NAMES): Same.
5227 (ADDITIONAL_REGISTER_NAMES): Same.
5228 (FIRST_PSEUDO_REGISTER): Increment.
5229 (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
5231 2002-05-15 Jakub Jelinek <jakub@redhat.com>
5233 * fold-const.c (fold): Fix a typo.
5235 2002-05-15 Eric Botcazou <ebotcazou@multimania.com>
5237 * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
5238 comparison against the highest or lowest integer value before
5239 the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
5240 transformation and that of an unsigned comparison against 0
5243 2002-05-15 Richard Henderson <rth@redhat.com>
5245 * varasm.c (merge_weak): Error for any weakening after definition.
5246 Adjust weakening after use warning to catch more cases.
5247 (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
5248 * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
5250 Wed May 15 10:38:27 CEST 2002 Jan Hubicka <jh@suse.cz>
5252 * invoke.texi (-malign-double): Re-add lost warning.
5254 * i386-protos.h (x86_output_mi_thunk): Declare.
5255 * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
5256 * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
5258 * dwarf2out.c (output_call_frame_info): Do not skip unwind info
5259 when flag_asynchronous_unwind_tables is set.
5261 * flags.h (flag_reorder_functions): Declare.
5262 * function.c (prepare_function_start): Initialize frequnecy.
5263 * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
5264 * Makefile.in (predict.o): Add dependency on target.h and params.h
5265 * defaults.h (HOT_TEXT_SECTION_NAME,
5266 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
5267 * predict.c (choose_function_section): New function.
5268 (estimate_bb_frequencies): Use it.
5269 * toplev.c (flag_reorder_functions): New global variable.
5270 (lang_independent_options): New.
5271 (parse_options_and_default_flags): Set.
5272 * varasm.c (assemble_start_function): Bypass functdion alignment
5273 for never executed functions.
5274 * invoke.texi (-freorder-blocks, -freorder-functions): Document.
5275 (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
5276 * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
5279 Thu Jan 3 21:52:09 CET 2002 Jan Hubicka <jh@suse.cz>
5281 * predict.c: Inlude profile.h
5282 (MIN_COUNT): Rename to MIN_COUNT_FRACTION
5283 (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
5284 Use the information about maximal counter in the program.
5286 Thu Dec 20 22:14:00 CET 2001 Jan Hubicka <jh@suse.cz>
5288 * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
5289 probably_never_executed_bb_p): New functions.
5290 * cfgcleanup.c (outgoing_edges_match): Use them.
5291 * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
5292 (maybe_hot_bb_p, probably_cold_bb_p,
5293 probably_never_executed_bb_p): New functions.
5295 * function.h (function): Add new field function_frequency.
5296 * predict.c (compute_function_frequency): New function.
5297 (estimate_probability): Call it.
5299 2002-03-09 Jakub Jelinek <jakub@redhat.com>
5301 PR optimization/5172, optimization/5200
5302 * gcse.c (gcse_main): Disable store_motion.
5304 2002-05-14 Zack Weinberg <zack@codesourcery.com>
5306 * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
5307 (c_common_nodes_and_builtins): Use it.
5308 (builtin_define_with_value): New function.
5309 (cb_register_builtins): Define __SIZE_TYPE__,
5310 __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
5311 using builtin_define_with_value. Use consistent notation when
5312 defining __GXX_WEAK__.
5313 (WCHAR_TYPE_SIZE): Don't redefine.
5314 (combine_strings): Don't use WCHAR_TYPE_SIZE.
5316 * cppdefault.h: Don't provide defaults for SIZE_TYPE,
5317 PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
5318 * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
5319 * tradcpp.c (initialize_builtins): Likewise.
5320 * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
5322 * c-lex.h (builtin_define_with_value): Prototype.
5323 * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
5324 NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
5325 * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
5327 * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
5328 config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
5329 config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
5330 config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
5331 config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
5332 config/sparc/linux64.h, config/sparc/netbsd-elf.h,
5333 config/sparc/sol2-bi.h, config/sparc/sparc.h:
5334 Do not define NO_BUILTIN_SIZE_TYPE etc. Remove all references
5335 to __SIZE_TYPE__ etc from all spec strings. When this makes
5336 extra specs empty, delete them.
5338 2002-05-14 John David Anglin <dave@hiauly1.hia.nrc.ca>
5340 * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
5341 for PA8000 or generating dwarf2 call frame information.
5342 (output_call): Remove DO_FRAME_NOTES check from return pointer
5344 (following_call): Return 0 when scheduling for PA8000 or generating
5345 dwarf2 call frame information. Revise comment.
5347 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
5350 * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
5351 and __IEEE_FP_INEXACT as appropriate.
5352 (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
5353 (CPP_SPEC): Remove ieee defines.
5354 * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
5356 2002-05-14 Richard Henderson <rth@redhat.com>
5358 * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
5359 (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
5361 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
5363 * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
5365 (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
5366 CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
5367 CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
5368 CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
5369 (EXTRA_SPECS): Update.
5370 * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
5371 arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
5372 arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
5373 define TARGET_OS_CPP_BUILTINS if necessary.
5375 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
5377 * gcc.c (cpp_options): Must pass -m* and -f* options
5378 to the front end even when only preprocessing.
5379 (cc1_options): Remove redundant -lang-c.
5380 * tradcpp.c (main): Ignore -m options.
5382 * lang-specs.h: Similarly.
5384 2002-05-14 Vladimir Makarov <vmakarov@redhat.com>
5386 * genautomata.c (transform_3): Add code for transformation
5387 `(A,B,...)+C -> A+C,B,...'.
5389 Tue May 14 12:48:22 CEST 2002 Jan Hubicka <jh@suse.cz>
5391 * final.c (end_final): Do not output profile_arcs constructor, when
5392 no functions are instrumented.
5394 Tue May 14 12:38:30 CEST 2002 Jan Hubicka <jh@suse.cz>
5396 * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
5398 2002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
5400 * doc/install.texi: Remove special markup originally required for
5401 HTML generation with texi2html.
5403 2002-05-14 Andreas Schwab <schwab@suse.de>
5405 * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
5407 (UNIQUE_SECTION): Define to get small data correctly.
5409 * varasm.c (resolve_unique_section): Add third parameter
5410 flag_function_or_data_sections and use it instead of
5411 flag_function_sections.
5412 (assemble_start_function): Pass flag_function_sections.
5413 (asm_emit_uninitialised): Pass flag_data_sections.
5414 (assemble_variable): Likewise.
5416 2002-05-14 Richard Henderson <rth@redhat.com>
5418 * config/i386/i386.md: Use define_constants for unspec numbers.
5419 * config/i386/i386.c: Likewise.
5421 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
5423 * doc/contrib.texi: Update my entry.
5425 2002-05-13 Mark Mitchell <mark@codesourcery.com>
5427 * fixinc/inclhack.def (winidss_valist): Limit applicability.
5428 * fixinc/fixincl.x: Regenerated.
5429 * fixinc/tests/base/math.h: Update.
5430 * fixinc/tests/base/testing.h: Likewise.
5432 2002-05-13 Zack Weinberg <zack@codesourcery.com>
5434 * genattr.c (gen_attr): Don't emit a comma after the last
5437 2002-05-13 Richard Henderson <rth@redhat.com>
5439 * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
5441 * recog.c (peephole2_optimize): Likewise.
5443 2002-05-13 Andris Pavenis <pavenis@lanet.lv>
5445 * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
5448 2002-05-13 Jeffrey A Law (law@redhat.com)
5450 * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
5451 Update prototype and callers.
5452 (propagate_one_insn): Stack pointer adjustments kill MEMs on
5453 the mem_set_list which reference the stack pointer, as do
5454 calls to constant functions as they may clobber outgoing
5457 * i386.c (ia32_multipass_dfa_lookahead): Prototype.
5459 * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
5460 (ia32_multipass_dfa_lookahead): New function.
5462 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
5464 * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
5465 (translate_options): Remove 'V'.
5466 (process_command): Similarly.
5468 * invoke.texi: Remove documentation of 'V'.
5470 2002-05-13 Ulrich Weigand <uweigand@de.ibm.com>
5472 * config/s390/linux.h: Revert 2002-04-22 changes.
5474 2002-05-13 Scott Marks <SMarks@mobile-mind.com>
5476 * config/fr30/fr30.md: Only allow splits of immediate loads
5477 if the destination is a register.
5479 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
5481 * Makefile.in (c-common.o, cppinit.o): Update.
5482 * c-common.c: Include except.h.
5483 (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
5484 Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
5485 * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
5486 * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
5487 CPP_PREDEFINES): Handle here.
5489 * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
5490 alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
5491 alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
5492 TARGET_OS_CPP_BUILTINS.
5493 * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
5494 (CPP_SPEC, EXTRA_SPECS): Update.
5495 (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
5496 CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
5497 CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
5498 CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
5499 CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
5501 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
5502 (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
5504 2002-05-12 Zack Weinberg <zack@codesourcery.com>
5506 * emit-rtl.c (global_rtl): Update comment.
5507 (const_double_htab, const_double_htab_hash,
5508 const_double_htab_hash, lookup_const_double): New.
5509 (const_int_htab_hash, const_int_htab_eq): Remove const
5510 qualifiers, which cause tons of warnings with RTL checking on.
5511 (gen_rtx_CONST_DOUBLE): Deleted.
5512 (const_double_from_real_value): New function - bears some
5513 resemblance to the former immed_real_const_1.
5514 (immed_double_const): Moved here from varasm.c and
5516 (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
5517 (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
5518 (gen_rtx): Use immed_double_const.
5519 (init_emit_once): Initialize the const_double_htab. Use
5520 REAL_VALUE_FROM_INT where possible. Can now use
5521 CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
5522 * varasm.c (struct varasm_status): Remove x_const_double_chain.
5523 (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
5524 (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
5525 (init_varasm_status, mark_varasm_status): Don't touch
5526 x_const_double_chain.
5528 * output.h: Delete prototype for clear_const_double_mem.
5529 * real.h: Make REAL_VALUE_TYPE a macro again. Remove leading
5530 '0' slot from all CONST_DOUBLE_FORMAT definitions. Prototype
5531 const_double_from_real_value, not immed_real_const_1, and use
5532 it to define CONST_DOUBLE_FROM_REAL_VALUE. Define new macro
5534 * rtl.h (CONST_DOUBLE_CHAIN): Kill.
5535 (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
5536 (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
5537 (gen_rtx_REG): Second arg is unsigned.
5539 * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
5540 (excluded_rtx): New, return true for CONST_DOUBLE.
5541 (genmacro): Write nothing for excluded codes.
5542 * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
5543 * expr.c (expand_expr): Likewise.
5544 * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
5546 * toplev.c (rest_of_compilation): Don't call
5547 clear_const_double_mem.
5549 * config/rs6000/rs6000.c (rs6000_float_const): Delete.
5550 (rs6000_hash_constant): Remove CONST_DOUBLE special case.
5551 (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
5552 * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
5553 * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
5554 * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
5555 config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
5556 * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
5558 2002-05-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5560 * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
5562 2002-05-12 Tom Tromey <tromey@redhat.com>
5564 * tree.h (copy_node): Don't mention TREE_PERMANENT.
5566 2002-05-12 Zack Weinberg <zack@codesourcery.com>
5568 * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
5569 (scan_comma_elt): New function. Accepts whitespace in comma lists.
5570 * gensupport.h: Prototype new routines.
5571 * genattr.c (gen_attr): Use scan_comma_elt. Avoid unnecessary
5573 * genattrtab.c (n_comma_elts): Moved to gensupport.c.
5574 (next_comma_elt): Use scan_comma_elt.
5576 * config/i386/i386.md: Use new attribute notation to break up
5577 long lines in define_attr forms.
5579 2002-05-12 Richard Henderson <rth@redhat.com>
5581 * expr.c (compress_float_constant): New.
5582 (emit_move_insn): Use it.
5583 (float_extend_from_mem): New.
5584 (init_expr_once): Initialize it.
5585 * real.c (exact_real_truncate): New.
5587 * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
5588 dropped into memory; penalize for size.
5589 (RTX_COSTS): FLOAT_EXTEND is free.
5590 * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
5591 extenddfxf2, extenddftf2): Accept constants and drop them to memory.
5593 2002-05-12 Richard Henderson <rth@redhat.com>
5595 * profile.h (profile_info): Add missing extern to declaration.
5596 * profile.c (profile_info): Define it.
5598 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
5600 * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
5601 used for DImode and TImode.
5603 2002-05-11 Neil Booth <neil@daikokuya.demon.co.uk>
5605 * cpplex.c (_cpp_lex_direct): When in a directive at EOF
5608 2002-05-11 Zack Weinberg <zack@codesourcery.com>
5610 * config/rs6000/rs6000.c (rs6000_default_long_calls,
5611 rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
5612 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
5613 (rs6000_override_options): Handle -m(no-)longcall.
5614 (init_cumulative_args, output_mi_thunk): Check for both
5615 longcall and shortcall attributes on the function.
5616 (rs6000_attribute_table): Add "shortcall".
5617 (rs6000_handle_longcall_attribute): Update comment.
5618 (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
5619 altivec_expand_ternop_builtin): Add default clauses to switches
5620 to silence warnings.
5622 * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
5623 rs6000_default_long_calls. Define REGISTER_TARGET_PRAGMAS.
5624 (TARGET_OPTIONS): Add longcall and no-longcall.
5626 * config/rs6000/rs6000.md (call_nonlocal_sysv,
5627 call_value_nonlocal_sysv): Split by alternatives. One pair
5628 accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
5629 the call cookie. The other pair accepts only LR/CTR and has
5632 * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
5633 Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
5635 * config/rs6000/rs6000-c.c: New file.
5636 * config/rs6000/t-rs6000-c-rule: New file.
5637 * config/rs6000/rs6000-protos.c: Add multiple-include guard.
5638 Prototype rs6000_pragma_longcall.
5640 * doc/extend.texi: Document shortcall attribute.
5641 * doc/invoke.texi: Document -mlongcall, -mno-longcall.
5643 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
5645 * reorg.c (dbr_schedule): Remove unnecessary test.
5647 Sat May 11 14:34:35 CEST 2002 Jan Hubicka <jh@suse.cz>
5649 * i386.md (testsi to testqi spliters): New.
5651 2002-01-14 Josef Zlomek <zlomek@matfyz.cz>
5653 cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
5655 Wed Jan 9 2002 Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
5657 * basic-block.h: New flag EDGE_CAN_FALLTHRU
5658 * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
5659 that can be made fallthru.
5661 Mon Nov 12 16:25:53 CET 2001 Jan Hubicka <jh@suse.cz>
5663 * cfglayout.c (cleanup_unconditional_jumps): New static function.
5664 (cfg_layout_initialize): Use it.
5666 2002-05-11 Marek Michalkiewicz <marekm@amelek.gda.pl>
5668 * config/avr/avr.c (avr_mcu_types): Update supported devices.
5669 * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
5670 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
5672 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
5674 * dbxout.c: Fix formatting.
5675 * dependence.c: Likewise.
5677 * diagnostic.c: Likewise.
5678 * doloop.c: Likewise.
5679 * dominance.c: Likewise.
5680 * doschk.c: Likewise.
5681 * dwarf2asm.c: Likewise.
5682 * dwarf2out.c: Likewise.
5683 * dwarfout.c: Likewise.
5685 2002-05-10 Richard Henderson <rth@redhat.com>
5687 * final.c (end_final): Tidy whitespace. Don't honor flag_pack_struct.
5688 Convert integers constants as needed. Replace "nwords" field with
5690 (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
5691 * function.h: Fix typo in comment.
5692 * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
5694 2002-05-10 Roger Sayle <roger@eyesopen.com>
5696 * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
5697 into the equivalent (signed char)c > 0.
5699 2002-05-10 Janis Johnson <janis187@us.ibm.com>
5701 * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
5702 (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
5703 (struct prefetch_info): Fix spelling of member bytes_accessed.
5704 (emit_prefetch_instructions): Make dump messages more regular;
5705 restructure code to add more dump messages; use new macros for
5706 heuristics. (There are no code generation changes in any of this).
5708 2002-05-10 David S. Miller <davem@redhat.com>
5710 * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
5711 (struct rtx_def): Update unchanging flag comment.
5712 * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
5713 * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
5714 to be handled to INSN too.
5715 (dbr_schedule): Likewise.
5716 * resource.c (next_insn_no_annul): Likewise.
5718 * cse.c (rtx_cost): Remove multiplication by power of 2 special
5721 2002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
5723 * doc/install.texi (Specific, *-*-solaris2*): Update passus on
5724 setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
5725 (possibly) work around broken /bin/sh.
5727 2002-05-10 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5729 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
5730 . as N64/N32 libgcc_s.so subdirs.
5732 2002-05-10 David S. Miller <davem@redhat.com>
5734 * config/sparc/sparc.md: Use define_constants for unspec numbers.
5736 * rtl.h (struct rtx_def): Document unchanging and in_struct flags
5738 (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
5740 (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
5741 * doc/rtl.texi: Document these macros more accurately.
5742 * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
5743 JUMP_INSNs and CALL_INSNs.
5744 * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
5745 or INSN_FROM_TARGET_P if the code is appropriate.
5747 2002-05-10 Marek Michalkiewicz <marekm@amelek.gda.pl>
5749 * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
5750 before using SYMBOL_REF_FLAG (addr).
5752 * config/avr/avr-protos.h (avr_io_address_p): Declare.
5753 * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
5754 Make non-static. Update all callers.
5755 * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
5756 New insns to clear/set/test a single bit in I/O address space.
5758 2002-05-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5760 * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
5762 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
5764 * Makefile.in: Update.
5765 * c-common.c (flag_iso, flag_undef, cb_register_builtins,
5766 builtin_define_std): New.
5767 (c_common_init): Register CPP builtins callback.
5768 * c-common.h (flag_iso, flag_undef): New.
5769 * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
5770 * c-lex.c: Don't include target.h.
5771 (cb_register_builtins): Move to c-common.c.
5772 (init_c_lex): Don't register hook here.
5773 * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
5774 (cpp_define, cpp_assert): Remove.
5775 * gcc.c (cc1_options): Pass -undef to front end.
5776 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
5777 (TARGET_INITIALIZER): Update.
5778 * target.h (struct cpp_reader): Don't predeclare.
5779 (struct gcc_target): Remove cpp builtin hook.
5780 * tree.c (default_register_cpp_builtins): Remove.
5784 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
5786 * cppexp.c (_cpp_expand_op_stack): Set op_limit.
5788 2002-05-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5790 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
5791 (SHLIB_LINK, SHLIB_INSTALL): Adjust.
5793 2002-05-09 Jakub Jelinek <jakub@redhat.com>
5795 * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
5796 * config/sparc/libgcc-sparc-glibc.ver: New file.
5797 * config/cris/t-linux (SHLIB_MAPFILES): Remove.
5798 * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
5800 2002-05-09 Jakub Jelinek <jakub@redhat.com>
5803 * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
5804 * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
5805 shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
5807 * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
5808 * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
5809 * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
5810 * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
5812 2002-05-09 Richard Henderson <rth@redhat.com>
5814 * config/ia64/ia64.md: Use define_constants for unspec numbers.
5815 * config/ia64/ia64.c: Likewise.
5817 2002-05-09 Richard Sandiford <rsandifo@redhat.com>
5819 * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
5820 (save_restore_insns): Likewise.
5821 (mips_expand_prologue, mips_expand_epilogue): Update callers.
5822 (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
5824 Thu May 9 11:50:09 2002 Jeffrey A Law (law@redhat.com)
5826 * athlon.md, k6.md, pentium.md, ppro.md): New files.
5827 * i386.md: Move scheduling information into new files.
5829 * i386.md (type attribute): Add "rotate" for rotate insns.
5830 (rotate insns): Set type to "rotate".
5831 (various attributes and function units): Treat rotate like shift.
5832 (pent_pair attribute): Only rotates by one bit position are
5834 (sbb insns): Explicitly set pent_pair attribute on a couple
5835 that were missing it.
5837 Thu May 9 18:29:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
5839 * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
5840 make sure that buffer starts on odd word address.
5841 (sh_va_arg): Skip odd fp registers when reading a double precision
5844 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
5846 * tree.h (preserve_data, object_permanent_p, type_precision):
5849 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
5851 * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
5852 * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
5854 * cpp.texi: Update for removal of obsolete features.
5856 Thu May 9 07:46:18 2002 Jan Hubicka <jh@suse.cz>
5857 Jeffrey A Law (law@redhat.com)
5859 * i386.c (ia32_use_dfa_pipeline_interface): New function. Use
5860 the DFA interface for Pentium processors.
5861 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
5862 (attr_pent_pair, ix86_pent_find_pair): Remove.
5863 (ix86_sched_reorder_pentium): Remove.
5864 (ix86_sched_reorder): Remove reordering for Pentium.
5865 * i386.md (Pentium scheduling): Rewrite using DFA description.
5867 Thu May 9 14:55:39 CEST 2002 Jan Hubicka <jh@suse.cz>
5869 * cfganal.c (can_fallthru): Fix fast path.
5870 * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
5871 with edges to the next block.
5873 Thu May 9 14:52:45 CEST 2002 Jan Hubicka <jh@suse.cz>
5874 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
5876 * final.c (end_final): Use C trees to output data structures for profiling.
5878 * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
5879 (profile.o): New dependency profile.h
5880 (final.o): New dependency profile.h
5881 * profile.h: New file. New global structure profile_info.
5882 * final.h (count_edges_instrumented_now): Declare.
5883 (current_function_cfg_checksum): Declare.
5884 (function_list): New structure.
5885 (functions_head, functions_tail): New static variables.
5886 (end_final): Emits more data, removed some -ax stuff.
5887 (final): Stores function names and chcksums.
5888 * gcov-io.h (__write_gcov_string): New function.
5889 (__read_gcov_string): New function.
5890 * gcov.c (read_profile): New function.
5891 (create_program_flow_graph): Uses read_profile instead of reading
5893 (read_files): Removed da_file checking, it's done by read_profile now.
5894 * libgcc2.c (bb_function_info): New structure.
5895 (bb): New field in structure, removed some -ax stuff.
5896 (__bb_exit_func): Changed structure of da_file.
5897 * profile.c (count_edges_instrumented_now): New global variable.
5898 (current_function_cfg_checksum): New global variable.
5899 (max_counter_in_program): New global variable.
5900 (get_exec_counts): New function.
5901 (compute_checksum): New function.
5902 (instrument_edges): Sets count_edges_instrumented_now.
5903 (compute_branch_probabilities): Uses get_exec_counts instead of
5905 (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
5906 (init_branch_prob): Removed da_file checking, done in get_exec_counts
5908 (end_branch_prob): Removed da_file checking, done in get_exec_counts
5910 * gcov.texi: Updated information about gcov file format.
5912 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
5914 * sbitmap.c: Fix formatting.
5916 * scan-decls.c: Likewise.
5917 * sched-deps.c: Likewise.
5918 * sched-ebb.c: Likewise.
5919 * sched-rgn.c: Likewise.
5920 * sched-vis.c: Likewise.
5921 * sdbout.c: Likewise.
5922 * sibcall.c: Likewise.
5923 * simplify-rtx.c: Likewise.
5925 * ssa-ccp.c: Likewise.
5926 * ssa-dce.c: Likewise.
5928 * stor-layout.c: Likewise.
5929 * stringpool.c: Likewise.
5931 2002-05-09 David S. Miller <davem@redhat.com>
5933 * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
5935 2002-05-07 David S. Miller <davem@redhat.com>
5937 * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
5938 * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
5939 * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
5940 library implementation clobbers the output before the inputs
5941 are fully consumed, use stack temporary for the output.
5943 2002-05-09 Jason Thorpe <thorpej@wasabisystems.com>
5945 * config/netbsd.h (CPP_SPEC): Remove.
5946 * config/i386/netbsd-elf.h (CPP_SPEC): Define.
5947 * config/i386/netbsd.h (CPP_SPEC): Define.
5948 * config/ns32k/netbsd.h (CPP_SPEC): Define.
5949 * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
5950 * config/sparc/netbsd.h (CPP_SPEC): Define.
5951 * config/vax/netbsd.h (CPP_SPEC): Define.
5953 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
5955 * read-rtl.c: Fix formatting.
5957 * recog.c: Likewise.
5958 * regclass.c: Likewise.
5959 * regmove.c: Likewise.
5960 * reg-stack.c: Likewise.
5961 * reload1.c: Likewise.
5962 * reload.c: Likewise.
5963 * resource.c: Likewise.
5964 * rtlanal.c: Likewise.
5966 * rtl-error.c: Likewise.
5968 2002-05-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
5970 * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
5971 * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
5973 2002-05-08 Bernd Schmidt <bernds@redhat.com>
5975 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
5976 use __SSE2__ macro instead.
5977 * config/i386/xmmintrin.h: Likewise.
5979 2002-05-08 Janis Johnson <janis187@us.ibm.com>
5981 * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
5982 and use it in all invocations of these macros. Clean up comments.
5983 * rtl.c (rtl_check_failed_flag): Add an argument for the name
5984 of the flag access macro whose check failed.
5985 * doc/rtl.texi (Flags): Document additional flag uses.
5987 2002-05-08 Robert Spier <rspier@pobox.com>
5988 Neil Booth <neil@daikokuya.demon.co.uk>
5990 PR preprocessor/6521
5991 * cppfiles.c (handle_missing_header): Don't do anything
5992 different for <> includes.
5994 * cppopts.texi: Update documentation for -MG.
5996 2002-05-08 Neil Booth <neil@daikokuya.demon.co.uk>
5998 * cpplex.c (cpp_interpret_charconst): Truncate as well as
6001 * cpp.texi: Clarify multichar charconst valuation.
6003 2002-05-08 Mark Mitchell <mark@codesourcery.com>
6005 * doc/invoke.texi: Document -mwindiss option.
6007 2002-05-08 Jason Merrill <jason@redhat.com>
6009 * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
6011 * dwarf2out.c (gen_type_die): Abort on broken recursion.
6014 * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
6017 2002-05-08 Nick Clifton <nickc@cambridge.redhat.com>
6019 * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
6020 little-endian multilibs to override arm/thumb multilibs.
6021 Do not build hardware floating point multilibs, nor apcs-26
6022 multilibs for the Thumb.
6024 2002-05-08 Mark Mitchell <mark@codesourcery.com>
6027 * varasm.c (mark_weak): New function.
6028 (merge_weak): Use it. Do not call declare_weak.
6029 (declare_weak): Use merge_weak.
6031 Wed May 8 13:12:11 CEST 2002 Jan Hubicka <jh@suse.cz>
6033 * cse.c (dead_libcall_p): Update counts.
6034 (delete_trivially_dead_insns): Update call of dead_libcall_p.
6036 Wed May 8 11:08:50 CEST 2002 Jan Hubicka <jh@suse.cz>
6038 * cfglayout.c (function_tail_eff_head): Rename to ...
6039 (function_footer): ... this one.
6040 (unlink_insn_chain): New functions.
6041 (label_for_bb): Only call block_label and emit debug message.
6042 (record_effective_endpoints): Actually unlink the headers and footers.
6043 (fixup_reorder_cahin): Re-insert the unlinked sequences.
6044 (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
6045 * cfglayout.h (struct reorder_block_def): New fields footer/header;
6046 remove eff_head/eff_end.
6047 * rtl.h (set_first_insn): Declare.
6048 * emit-rtl.c (set_first_insn): New function.
6050 * cfglayout.c (fixup_reorder_chain): Dump duplicated
6051 (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
6052 cfg_layout_duplicate_bb): New global function.
6053 (duplicate_insn_chain): New static function.
6054 * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
6055 cfg_layout_duplicate_bb): Declare.
6056 (struct reorder_block_def): Add "original" field.
6057 * emit-rtl.c (emit_copy_of_insn_after): New function.
6058 * rtl.h (emit_copy_of_insn_after): Declare.
6060 * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
6061 (fixup_reorder_chain): properly handle edges to exit block.
6063 Wed May 8 11:10:31 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6064 Jan Hubicka <jh@suse.cz>
6066 * basic-block.h (note_prediction_to_br_prob): declare.
6067 * c-semantics.c: Inlucde predit.h
6068 (expand_stmt): predict GOTO_STMT as not taken.
6069 * cfgcleanup.c: (delete_unreachable_blocks): Make global.
6070 (cleanup_cfg): Do not free tail_recursion_list.
6071 * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
6072 (flow_delete_block): Kill predictions past end of basic block.
6073 * output.h (delete_unreachable_blocks): Declare.
6074 * predict.c (predicted_by_p, process_note_predictions,
6075 process_note_prediction, last_block_p): New function.
6076 (estimate_probability): Bypass loop on PRED_CONTINUE;
6077 do not handle noreturn heuristics; kill PRED_RETURN; add
6079 * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
6080 PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
6081 * predict.h (IS_TAKEN): New constant.
6082 * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
6083 * rtl.c (NOTE_INSN_PREDICTION): New.
6084 * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
6086 (insn_note): add NOTE_INSN_PREDICTION.
6087 * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
6088 CFG; free tail_recursion_label_list.
6089 * stmt.c: Include predict.h;
6090 (return_prediction): New.
6091 (expand_value_return): Use it.
6092 * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
6094 2002-05-08 Richard Sandiford <rsandifo@redhat.com>
6096 * config/mips/mips.md: Name the unspecs with define_constant.
6097 (*HILO_delay): Rename to 'hilo_delay' (no star).
6098 (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
6099 (reload_outdi, reload_outsi): Likewise.
6101 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
6103 * toplev.c: Fix formatting.
6105 2002-05-07 Janis Johnson <janis187@us.ibm.com>
6107 * config.in (ENABLE_RTL_FLAG_CHECKING): New.
6108 * configure.in (ac_rtlflag_checking): New.
6109 * doc/install.texi (--enable-checking): Document RTL flag checking.
6111 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
6113 * c-common.c (c_common_init): Set options->unsigned_wchar.
6114 * cppinit.c (cpp_create_reader): Default unsigned_wchar,
6115 group target dependencies.
6116 (init_builtins, cpp_handle_option): Update.
6117 * cpplex.c (cpp_interpret_charconst): Update.
6118 * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
6119 signed_char to unsigned_char, group target dependencies.
6120 * defaults.h (WCHAR_UNSIGNED): Remove.
6121 * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
6123 * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
6124 i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
6125 i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
6126 i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
6127 sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
6129 * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
6131 2002-05-07 Mark Mitchell <mark@codesourcery.com>
6133 * fixinc/inclhack.def (windiss_math1): New fix.
6134 (windiss_math2): Likewise.
6135 (windiss_valist): Likewise.
6136 * fixinc/fixincl.x: Regenerated.
6138 2002-05-07 Andreas Jaeger <aj@suse.de>
6140 * genautomata.c (output_internal_min_issue_delay_func): Add
6141 ATTRIBUTE_UNUSED to avoid warning with empty dfa.
6142 (output_internal_trans_func): Likewise.
6144 Tue May 7 10:06:22 2002 Jeffrey A Law (law@redhat.com)
6146 * pa.c (hppa_profile_hook): Use force_reg to get the address
6147 of the profile hook into an appropriate pseudo register.
6149 2002-05-07 Mark Mitchell <mark@codesourcery.com>
6151 * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
6152 (LINK_START_SPEC): Handle it.
6153 (LINK_OS_SPEC): Likewise.
6154 (CPP_SPEC): Likewise.
6155 (STARTFILE_SPEC): Likewise.
6156 (LIB_SPEC): Likewise.
6157 (ENDFILE_SPEC): Likewise. Do not assume crtsavres.o is used on
6159 (CRTSAVRES_DEFAULT_SPEC): New macro.
6160 (LIB_WINDISS_SPEC): New macro.
6161 (CPP_OS_WINDISS_SPEC): Likewise.
6162 (STARTFILE_WINDISS_SPEC): Likewise.
6163 (ENDFILE_WINDISS_SPEC): Likewise.
6164 (LINK_START_WINDISS_SPEC): Likewise.
6165 (LINK_OS_WINDISS_SPEC): Likewise.
6166 * config/rs6000/windiss.h: New file.
6168 2002-05-07 Aldy Hernandez <aldyh@redhat.com>
6170 * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
6172 2002-05-06 David S. Miller <davem@redhat.com>
6174 * config/sparc/sparc.md (shift insns): Do not mask off
6175 second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
6178 2002-05-06 Richard Henderson <rth@redhat.com>
6181 * expr.c (highest_pow2_factor_for_type): New.
6182 (expand_assignment): Use it.
6184 2002-05-06 Aldy Hernandez <aldyh@redhat.com>
6186 * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
6188 ("altivec_mfvscr"): Same.
6190 2002-05-06 Janis Johnson <janis187@us.ibm.com>
6192 * rtl.h (struct rtx_def): Update comments.
6193 (RTL_FLAG_CHECK[12345678]): New. (rtl_check_failed_flag): Declare.
6194 (RTL_FLAG): New. (CLEAR_RTX_FLAGS): New. (flag access macros): Use
6195 RTL_FLAG_CHECK macros with list of expected RTL codes.
6196 * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
6197 (rtl_check_failed_flag): New.
6198 * reload1.c (reload): Use REG macro before changing rtx to MEM.
6199 (reload_cse_noop_set_p): Check rtx code before using access macro.
6200 * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
6201 before using access macro.
6203 2002-05-06 Janis Johnson <janis187@us.ibm.com>
6205 * doc/rtl.texi (Flags): Update to reflect current usage.
6207 2002-05-06 Roger Sayle <roger@eyesopen.com>
6210 * fold-const.c (sign_bit_p): New function.
6211 (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
6212 (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
6213 Reapply fold when converting (A & C) == C into (A & C) != 0.
6214 (fold_binary_op_with_conditional_arg): Fix typo in comment.
6216 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
6218 * c-common.c (warn_multichar): New.
6219 (c_common_init): Set CPP's warn_multichar.
6220 * c-common.h (warn_multichar): New.
6221 * c-decl.c (warn_multichar): Remove.
6222 * c-lex.c (lex_charconst): Update.
6223 * c-tree.h (warn_multichar): Remove.
6224 * cppexp.c (eval_token): Sign-extend charconst value.
6225 * cppinit.c (cpp_create_reader): Set warn_multichar.
6226 * cpplex.c (cpp_interpret_charconst): Don't sign-extend
6227 each character. Update prototype. Sign-extend the result.
6228 * cpplib.h: Fix conditions.
6229 (struct cpp_options): Add new warning flag.
6230 (cpp_interpret_charconst): Update prototype.
6232 * cpp.texi: Update documentation.
6234 2002-05-06 Vladimir Makarov <vmakarov@redhat.com>
6236 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
6237 Fix typo in usage of allof instead of unit.
6239 2002-05-06 Richard Henderson <rth@redhat.com>
6241 * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
6242 and any jump or call for IN.
6244 2002-05-06 Bernd Schmidt <bernds@redhat.com>
6246 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
6248 * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
6250 2002-05-06 Roger Sayle <roger@eyesopen.com>
6252 * fold-const.c (lshift-double): Cast the high word to an unsigned
6253 HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
6254 (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
6255 avoid compiler warning. (fold): Remove redundant code from
6256 BIT_AND_EXPR as integer operands are canonicalized to be arg1.
6258 2002-05-06 Jeff Law <law@redhat.com>
6260 * pa-protos.h (hppa_fpstore_bypass_p): Declare.
6261 * pa.c (pa_adjust_cost): Remove all true dependency cost
6262 adjustments. Also remove support for non-DFA scheduling.
6263 * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
6264 to adjust true dependency costs. Update various comments.
6265 (7100lc, 7200, 7300 scheduling): Simplify by combining the
6266 FP ALU & MPY units into a single unit.
6268 2002-05-06 Catherine Moore <clm@redhat.com>
6270 * config/v850/v850.c (compute_register_save_size): Make sure
6271 to count all of the registers that will be saved.
6273 Mon May 6 18:03:11 CEST 2002 Jan Hubicka <jh@suse.cz>
6275 * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
6277 2002-05-06 David S. Miller <davem@redhat.com>
6279 * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
6280 allow result to overlap input operands in memory.
6282 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
6285 * cpp.texi: Update multichar charconst docs.
6287 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
6289 * cpplex.c (cpp_interpret_charconst): Sign-extend each
6290 character. Don't ignore excess characters. Treat
6291 multicharacter character constants as signed.
6292 (cpp_parse_escape): Clarify diagnostic.
6294 2002-05-05 Jakub Jelinek <jakub@redhat.com>
6296 * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
6297 use add instead of shift.
6298 (ashldi3_sp64): Likewise.
6299 (ashlsi3_const1, ashldi3_const1): Remove.
6300 * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
6301 * config/sparc/sparc.c (const1_operand): New.
6303 2002-05-05 Jason Thorpe <thorpej@wasabisystems.com>
6305 * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
6307 2002-05-05 Jakub Jelinek <jakub@redhat.com>
6310 * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
6312 2002-05-05 Richard Henderson <rth@redhat.com>
6314 * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
6315 memory latency adjustments.
6316 (alpha_variable_issue): Remove.
6317 (alpha_use_dfa_pipeline_interface): New.
6318 (alpha_multipass_dfa_lookahead): New.
6319 * config/alpha/alpha.md: Remove define_function_unit scheduling;
6320 include new dfa scheduling.
6321 (attr type): Add none.
6323 * config/alpha/ev4.md: New.
6324 * config/alpha/ev5.md: New.
6325 * config/alpha/ev6.md: New.
6327 2002-05-05 David S. Miller <davem@redhat.com>
6329 * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
6331 2002-05-05 Kazu Hirata <kazu@cs.umass.edu>
6333 * cse.c: Fix formatting.
6334 * emit-rtl.c: Likewise.
6336 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
6338 * genautomata.c (initiate_states): Add additional guard to
6339 initialize `units_array'.
6341 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
6343 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
6344 process_unit_to_form_the_same_automaton_unit_lists,
6345 form_the_same_automaton_unit_lists
6346 check_unit_distributions_to_automata): New prototypes and
6348 (check_automata): Rename it into `check_automata_insn_issues'.
6349 (unit_decl): New fields `the_same_automaton_unit' and
6350 `the_same_automaton_message_reported_p'.
6351 (unit_decl_t): New typedef.
6352 (the_same_automaton_lists): New gloval variable.
6353 (unit_regexp, unit_set_el, units_array, units_cmp,
6354 output_get_cpu_unit_code_func): Use the typedef.
6355 (evaluate_max_reserv_cycles): Increment
6356 `description->max_insn_reserv_cycles'.
6357 (initiate_states): Don't increment `max_cycles_num'.
6358 (transform_insn_regexps): Move code around transformation of
6359 regexps from `generate'.
6360 (generate): Remove call of `transform_insn_regexps'.
6361 (expand_automata): Call `transform_insn_regexps' and
6362 `check_unit_distributions_to_automata'. Check errors before
6365 * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
6366 automaton `ultrasparc3_1'.
6368 2002-05-05 Neil Booth <neil@daikokuya.demon.co.uk>
6370 * c-common.c (c_common_init): Set up CPP arithmetic.
6371 * cppinit.c (cpp_create_reader): Default CPP arithmetic to
6372 something reasonable for the host.
6373 (sanity_checks): Add checks.
6374 (cpp_read_main_file): Call sanity_checks() from here...
6375 (cpp_post_options): ... not here.
6376 * cpplex.c (cpp_interpret_charconst): Get max_chars right.
6377 * cpplib.h (struct cpp_options): New member int_precision.
6379 2002-05-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6381 * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
6383 2002-05-04 David S. Miller <davem@redhat.com>
6385 * config/sparc/linux.h, config/sparc/linux64.h
6386 (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
6388 * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
6390 * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
6392 * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
6395 2002-05-05 Tim Josling <tej@melbpc.org.au>
6397 * treelang; New directory for new sample language treelang.
6399 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
6401 * Makefile.in (c-lex.o): Update.
6402 * c-lex.c: Include target.h.
6403 (cb_register_builtins): New.
6404 (init_c_lex): Set builtins callback.
6405 * c-lex.h (cpp_define, cpp_assert): New prototypes.
6406 * cppinit.c (init_builtins): Use callback, including for
6408 * cpplib.h (struct cpp_callbacks): New member.
6409 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
6410 (TARGET_INITIALIZER): Update.
6411 * target.h (struct gcc_target): New hook.
6412 * tree.c (default_register_cpp_builtins): New.
6413 * tree.h (default_register_cpp_builtins): New.
6415 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
6417 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
6419 * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
6420 (cpp_post_options): Move sanity checks to...
6421 (sanity_checks): New.
6422 * cpplex.c (maybe_read_ucs): Fix prototype.
6423 (parse_string, cpp_parse_escape): Cast for %c format specifier.
6424 * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
6427 2002-05-04 Bernd Schmidt <bernds@redhat.com>
6429 * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
6430 builtins. Use V2DI patterns instead of TI for logical operations.
6431 (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
6432 Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
6433 (ix86_expand_builtins): Change the pattern used for movntdq.
6434 * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
6435 sse2_nandv2di3): New patterns.
6436 (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
6438 (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
6439 (cvtdq2pd): Correct mode on operand 1.
6440 (sse2_umulsidi3): Describe without unspec.
6441 (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
6443 (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
6444 (ashlv2di3): Likewise, from sse2_ashlv2di3.
6445 (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
6446 ashlv4si3, ashlv2di3): Use SImode for shift count.
6447 (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
6448 lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
6450 * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
6452 (__m128i, __m128d): New macros.
6453 (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
6454 _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
6455 _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
6456 _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
6457 _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
6458 _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
6459 _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
6460 _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
6461 _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
6462 _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
6463 _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
6464 _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
6465 _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
6466 _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
6467 _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
6468 _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
6469 _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
6470 _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
6471 _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
6472 _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
6473 _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
6474 _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
6475 _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
6476 _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
6477 _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
6478 _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
6479 _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
6480 _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
6481 _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
6482 _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
6483 _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
6484 _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
6485 _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
6486 _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
6487 _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
6488 _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
6489 _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
6491 (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
6492 _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
6494 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
6496 * dwarf2out.c: Fix formatting.
6497 * varasm.c: Likewise.
6499 2002-05-04 David Edelsohn <edelsohn@gnu.org>
6502 * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
6503 clobber and use result as temporary value.
6505 Sat May 4 13:20:54 CEST 2002 Jan Hubicka <jh@suse.cz>
6507 * expr.c (force_operand): Use expand_simple_* to handle more
6510 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
6512 * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
6514 (lex_charconst): Update for change in prototype of
6515 cpp_interpret_charconst. Extend from cppchar_t to HOST_WIDE_INT
6517 * cpphash.h (BITS_PER_CPPCHAR_T): New.
6518 * cppinit.c (cpp_create_reader): Initialize them for no
6519 change in semantics.
6520 (cpp_post_options): Add sanity checks.
6521 * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
6522 and truncation issues. Calculate in type cppchar_t.
6523 (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
6524 (cpp_interpret_charconst): Calculate in type cppchar_t. Handle
6525 run-time dependent precision correctly. Return whether the
6526 result is signed or not.
6527 * cpplib.c (dequote_string): Use cppchar_t; update.
6528 * cpplib.h (cppchar_signed_t): New.
6529 struct cpp_options): New precision members.
6530 (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
6531 * cppexp.c (eval_token): Update.
6533 2002-05-03 David S. Miller <davem@redhat.com>
6535 * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
6536 * config/sparc/sparc.c (sparc_rtx_costs): New function
6537 implementing RTX_COSTS and CONST_COSTS.
6538 * config/sparc/sparc.h (CONST_COSTS): Delete.
6539 (RTX_COSTS_CASES): Define.
6540 (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
6543 * config/sparc/sparc.md (DFA schedulers): Split out...
6544 * config/sparc/cypress.md, config/sparc/hypersparc.md,
6545 config/sparc/sparclet.md, config/sparc/supersparc.md,
6546 config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
6548 * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
6549 checks on it, always defined for Sparc.
6551 * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
6552 Tweak, and add more detailed comments.
6554 2002-05-03 Zack Weinberg <zack@codesourcery.com>
6556 * Re-apply patch accidentally reverted with
6557 DFA scheduler merge: remove all rules and variables to slurp
6558 source files out of libiberty and rebuild them with HOST_CC.
6559 ($(HOST_PREFIX_1)varray.o): New rule.
6560 (genattrtab rule): Word wrap.
6562 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
6564 * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
6565 (CPP_SUBTARGET_SPEC): Define.
6566 (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
6567 cpp_subtarget specs.
6568 (CPP_SPEC): Redefine to include %(cpp_subtarget).
6570 2002-05-03 David S. Miller <davem@redhat.com>
6572 * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
6573 * target.h (struct gcc_target): Delete cycle_display member.
6575 * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
6576 (rtx_needs_barrier): Delete reference to cycle_display unspec.
6577 (ia64_sched_reorder2): Mention need for cycle display handling
6578 once such notes exist.
6580 2002-05-03 Richard Henderson <rth@redhat.com>
6582 * real.c (etoasc): Strip most trailing zeros for clarity.
6583 * sched-vis.c: Include real.h.
6584 (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
6585 * Makefile.in (sched-vis.o): Add real.h.
6587 2002-05-03 David S. Miller <davem@redhat.com>
6589 * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
6592 2002-05-03 Aldy Hernandez <aldyh@redhat.com>
6594 * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
6595 when we get an out of range literal.
6596 (altivec_expand_ternop_builtin): Same.
6597 (altivec_expand_unop_builtin): Same.
6598 (altivec_expand_builtin): Same, for dss.
6599 (altivec_expand_builtin): Use trees instead of rtl when
6600 determining literal argument validity.
6602 2002-05-03 David S. Miller <davem@redhat.com>
6604 Delete cycle display scheduling hook.
6605 * config/ia64/ia64.c (ia64_cycle_display,
6606 TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
6607 (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
6608 and use emit_insn_before instead of ia64_emit_insn_before.
6609 * config/ia64/ia64.md (unspec usage): Delete cycle display.
6610 (cycle_display): Delete insn pattern.
6611 * config/sparc/sparc.md (unspec usage): Delete cycle display.
6612 (cycle_display): Delete insn pattern.
6613 * config/sparc/sparc.c (sparc_cycle_display,
6614 TARGET_SCHED_CYCLE_DISPLAY): Delete.
6615 * doc/md.texi (cycle_display): Don't mention.
6616 * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
6618 2002-05-03 Richard Henderson <rth@redhat.com>
6620 * recog.c (store_data_bypass_p, if_test_bypass_p): New.
6621 * recog.h: Declare them.
6623 * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
6624 * config/sparc/sparc.md: Use store_data_bypass_p instead.
6625 * config/sparc/sparc-protos.h: Update.
6627 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
6629 * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
6630 -D__arch64__. Add -D_LP64.
6631 (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
6633 (CPP_ARCH64_SPEC): Likewise.
6634 (NO_BUILTIN_PTRDIFF_TYPE): Undef.
6635 (NO_BUILTIN_SIZE_TYPE): Undef.
6637 2002-05-03 Vladimir Makarov <vmakarov@redhat.com>
6639 * genautomata.c (min_issue_delay_pass_states): Change return type
6641 (min_issue_delay_pass_states): Change the algorithm.
6642 (min_issue_delay): Set up min_insn_issue_delay for the state.
6643 (output_min_issue_delay_table): Interchange the nested loops and
6644 and initiate min_insn_issue_delay for states.
6646 Fri May 3 22:59:15 CEST 2002 Jan Hubicka <jh@suse.cz>
6648 * cfgcleanup.c (try_optimize_cfg): Call merge_block only when
6651 Fri May 3 22:53:37 CEST 2002 Jan Hubicka <jh@suse.cz>
6653 * i386.c (expand_movstr, expand_clrstr): Fix inline-all-stringops
6656 2002-05-03 Richard Henderson <rth@redhat.com>
6659 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
6660 noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
6661 noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
6662 code before JUMP, not EARLIEST.
6664 2002-05-03 Joseph S. Myers <jsm28@cam.ac.uk>
6666 * c-format.c (check_format_info_main): Don't check for presence of
6667 parameter for * width until after operand number has been read,
6668 and only check for it if format parameters are available.
6671 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
6673 * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
6674 (LINK_SPEC): Undef before defining.
6676 2002-05-03 Jakub Jelinek <jakub@redhat.com>
6678 PR preprocessor/6489
6679 * tradcpp.c (fixup_newlines): New.
6680 (main, finclude): Use it.
6682 2002-05-03 Richard Sandiford <rsandifo@redhat.com>
6684 * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
6685 * config/mips/mips.c (mips_unique_section): Strip encoding from
6688 2002-05-03 Jakub Jelinek <jakub@redhat.com>
6690 * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
6693 2002-05-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6695 * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
6696 (Specific): Removed buildstats references.
6697 (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
6698 (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
6699 Accomodate Solaris versions beyond 8.
6700 (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
6701 (Specific, *-*-solaris2.8): Removed, obsolete.
6703 2002-05-03 Jakub Jelinek <jakub@redhat.com>
6706 * config/sparc/sparc.h (leaf_reg_remap): Remove const.
6707 (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
6708 fill leaf_reg_remap with identity.
6709 * config/sparc/sparc.c (leaf_reg_remap): Remove const.
6711 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
6713 * config/h8300/crti.asm: Remove trailing spaces.
6714 * config/h8300/h8300.c: Likewise.
6715 * config/h8300/lib1funcs.asm: Likewise.
6717 2002-05-02 Jason Merrill <jason@redhat.com>
6719 * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
6720 * c-decl.c (c_init_decl_processing): Use it.
6721 * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
6722 * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
6723 * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
6725 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
6727 * regrename.c: Fix formatting.
6730 Fri May 3 13:34:43 CEST 2002 Jan Hubicka <jh@suse.cz>
6732 * i386.md (attribute memory): Handle compares properly.
6734 Fri May 3 10:51:38 CEST 2002 Jan Hubicka <jh@suse.cz>
6736 * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
6739 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
6741 * function.c: Fix formatting.
6743 2002-05-02 Jan Hubicka <jh@suse.cz>
6745 * haifa-sched.c (schedule_insn): Print table of instructions and
6747 (sched_block): Do not print ready list at verbosity level 1.
6748 * sched-vis.c (print_insn): Make global.
6749 * sched-ebb.c (ebb_print_insn): Rename from...
6750 (print_insn): ... this one.
6751 * sched-int.h (print_insn): Declare
6753 2002-05-02 Richard Henderson <rth@redhat.com>
6755 * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
6756 emitted by cycle_display.
6758 2002-05-02 Loren J. Rittle <ljrittle@acm.org>
6760 * doc/install.texi (*-*-freebsd*): Update to latest status.
6762 2002-05-02 Jakub Jelinek <jakub@redhat.com>
6765 * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
6766 * config/float-sparc.h: Assume 128-bit long double if
6767 __LONG_DOUBLE_128__ is defined.
6769 2002-05-02 Vladimir Makarov <vmakarov@redhat.com>
6771 * genattrtab.c (write_function_unit_info): Add a dummy element
6772 when num_units == 0.
6774 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
6776 * predict.c: (propagate_freq, estimate_bb_frequencies): Use
6777 TYPE_MODE (double_type_node) instead of DFmode.
6779 Thu May 2 19:50:04 CEST 2002 Jan Hubicka <jh@suse.cz>
6781 * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
6783 * toplev.c (rest_of_compilation): Revert Richard's patch.
6785 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
6787 * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
6789 2002-05-02 Catherine Moore <clm@redhat.com>
6791 * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
6793 2002-05-02 Kazu Hirata <kazu@hxi.com>
6795 * combine.c: Fix comment typos.
6797 * genautomata.c: Likewise.
6801 2002-05-02 Joseph S. Myers <jsm28@cam.ac.uk>
6803 * doc/install.texi: State GNAT version requirements.
6805 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
6807 * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
6808 of the frame pointer or arg pointer register which strict register
6809 checking is not enabled.
6811 2002-05-02 Aldy Hernandez <aldyh@redhat.com>
6813 * gcc.dg/altivec-8.c: New.
6815 * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
6816 PRE_INC and PRE_DEC for altivec modes.
6818 2002-05-01 Bruce Korb <bkorb@gnu.org>
6820 * fixinc/check.tpl(set-writable): make sure the function exists first
6821 * fixinc/inclhack.def(alpha_assert): fix test_text
6822 * fixinc/tests/base/assert.h: add in missing result
6824 2002-05-01 Jeff Law <law@redhat.com>
6826 * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
6829 2002-05-01 Joel Brobecker <brobecker@gnat.com>
6831 * dbxout.c (dbxout_type): Emit size information for range types,
6832 as well, but only when using GDB extensions.
6834 2002-05-01 Richard Henderson <rth@redhat.com>
6836 * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
6837 target-independent gnu binutils date test.
6839 2002-05-01 Richard Henderson <rth@redhat.com>
6841 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
6842 info before expunging the block.
6844 2002-05-01 Jakub Jelinek <jakub@redhat.com>
6846 * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
6847 (cpp_post_options): ...but here. Disable -dD, -dN and -dI when
6848 -M -or -MM is in effect.
6850 2002-05-01 Zack Weinberg <zack@codesourcery.com>
6852 * config.gcc: Correct test of --enable-obsolete. Obsolete all
6853 A29k configurations.
6854 * doc/install.texi: Update to match.
6856 2002-05-01 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6859 * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
6860 for duplicates. Always loop over whole list.
6862 Wed May 1 10:32:37 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6864 * reload.c (find_reloads, case 'p'): Set BADOP to 0.
6866 2002-05-01 Joel Sherrill <joel@OARcorp.com>
6868 * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
6871 2002-05-01 Joel Sherrill <joel@OARcorp.com>
6873 * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
6875 2002-05-01 David Edelsohn <edelsohn@gnu.org>
6877 * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
6878 (nabs_nopower): Same.
6879 (floatdisf2): New pattern.
6880 (absdi2): Convert to define_insn_and_split.
6885 (fix_trunctfdi2): Same.
6886 (fix_trunctfsi2): Same.
6888 2002-05-01 Joseph S. Myers <jsm28@cam.ac.uk>
6890 * doc/install.texi: Update Texinfo version requirement
6893 2002-05-01 Jakub Jelinek <jakub@redhat.com>
6895 PR target/6512, PR target/5628
6896 * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
6897 when memory is not aligned.
6898 (movdf_insn_v9only_vis): Likewise.
6899 * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
6900 temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
6901 (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
6903 2002-05-01 Aldy Hernandez <aldyh@redhat.com>
6905 * gcc.dg/altivec-7.c: New.
6907 * config/rs6000/altivec.h: Cleanup.
6909 2002-04-30 Aldy Hernandez <aldyh@redhat.com>
6911 * doc/invoke.texi (Option Summary): Add -mvrsave=.
6912 (RS/6000 and PowerPC Options): Document -mvrsave=.
6914 * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
6915 (rs6000_altivec_vrsave_string): Same.
6916 (rs6000_override_options): Call rs6000_parse_vrsave_option.
6917 (rs6000_parse_vrsave_option): New.
6918 (rs6000_stack_info): Only generate vrsave instructions when
6919 TARGET_ALTIVEC_VRSAVE.
6921 * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
6922 (rs6000_altivec_vrsave_string): Define extern.
6923 (rs6000_altivec_vrsave): Same.
6924 (TARGET_ALTIVEC_VRSAVE): New.
6926 2002-04-30 Richard Henderson <rth@redhat.com>
6929 * toplev.c (rest_of_compilation): Don't run cross-jump before
6932 2002-04-30 Tom Rix <trix@redhat.com>
6934 * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
6935 check which_alternative.
6937 2002-04-30 Kazu Hirata <kazu@hxi.com>
6939 * cpplex.c: Fix comment formatting.
6940 * function.c: Likewise.
6941 * integrate.c: Likewise.
6942 * regrename.c: Likewise.
6943 * sibcall.c: Likewise.
6944 * simplify-rtx.c: Likewise.
6945 * tree-inline.c: Likewise.
6947 2002-04-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
6949 * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
6950 hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
6951 hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
6952 hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
6953 * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
6954 * pa/x-ada: New file. Define ADA_CFLAGS.
6956 2002-04-30 Hans-Peter Nilsson <hp@bitrange.com>
6958 * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
6959 from MMIX_LAST_REGISTER_FILE_REGNUM.
6960 (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
6961 (struct machine_function): New member highest_saved_stack_register
6962 previously static variable in mmix.c.
6963 (MACHINE_DEPENDENT_REORG): Define.
6964 * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
6965 (MMIX_OUTPUT_REGNO): New.
6966 (mmix_target_asm_function_prologue): Move calculation of last used
6967 saved-stack-register into...
6968 (mmix_machine_dependent_reorg): New function. Update to also handle
6970 (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
6971 register names, simplify somewhat by new variable regno.
6972 <case 'p'>: Remove fixed FIXME. Always emit highest used saved
6974 (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
6975 emitting register names.
6976 (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
6977 (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
6979 * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
6982 * config/mmix/mmix.md ("divmoddi4"): Update head comment.
6984 2002-04-30 Richard Henderson <rth@redhat.com>
6986 * config/sparc/sparc.c (emit_soft_tfmode_libcall,
6987 emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
6988 emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
6989 emit_tfmode_cvt): New.
6990 * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
6991 trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
6992 fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
6993 addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
6994 * config/sparc/sparc-protos.h: Update.
6996 2002-04-30 Janis Johnson <janis187@us.ibm.com>
6998 * install.texi (Final install): Add to the list of info to include
6999 in a report of a successful bootstrap, and add link to 3.1 list.
7001 Tue Apr 30 19:15:36 CEST 2002 Jan Hubicka <jh@suse.cz>
7003 * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
7004 (mode): Add vector modes
7005 (i387): Kill attribute.
7006 (unit): New attribute.
7007 (length_immediate): Grok new types.
7008 (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
7009 (modrm): Use "unit".
7010 (memory): Handle MMX/SSE properly.
7011 (scheduling descriptions): Kill uses of fop1.
7012 (sse, mmx, fp patterns): Set type and mode properly.
7014 Tue Apr 30 09:31:59 2002 Jeffrey A Law (law@redhat.com)
7016 * pa.c (override_options): Default to PA8000 scheduling.
7017 * doc/invoke.texi (HP-PA options): Mention newly added 7300
7018 scheduling parameter.
7020 * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
7021 handling of double precision multiplies.
7023 * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
7024 fpdiv and fpsqrt instructions.
7025 (7200 & 7300 scheduling): Fix typo in handling of
7026 store-load and store-store penalties.
7028 2002-04-30 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7030 * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
7031 mips. Add two missing commas.
7033 2002-04-30 Paolo Carlini <pcarlini@unitus.it>
7035 * doc/contrib.texi (Contributors): Update Paolo Carlini's
7036 and Benjamin Kosnik's entries.
7038 2002-04-29 David S. Miller <davem@redhat.com>
7040 * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
7041 SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
7042 * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
7043 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
7045 2002-04-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7047 * combine.c (find_split_point): Use gen_int_mode.
7049 2002-04-29 Vladimir Makarov <vmakarov@redhat.com>
7051 Merging code from dfa-branch:
7053 2002-04-24 Vladimir Makarov <vmakarov@redhat.com>
7055 * genautomata.c (output_reserv_sets): Fix typo.
7057 2002-04-23 Vladimir Makarov <vmakarov@redhat.com>
7059 * genautomata.c (output_reserv_sets): Remove
7060 next_cycle_output_flag.
7062 Thu Apr 18 08:57:06 2002 Jeffrey A Law (law@redhat.com)
7064 * sched-rgn.c (init_ready_list): Make the DFA code handle
7065 USE/CLOBBER insns in the same way as the traditional
7067 (new_ready): Similarly..
7069 2002-04-17 Vladimir Makarov <vmakarov@redhat.com>
7071 * haifa-sched.c (schedule_block): Change the DFA state only after
7074 Wed Apr 17 15:38:36 2002 Jeffrey A Law (law@redhat.com)
7076 * pa.c (hppa_use_dfa_pipeline_interface): New function.
7077 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
7078 (override_options): Add PA7300 scheduling support.
7079 (pa_adjust_cost): Update various comments. Properly
7080 handle anti and output dependencies when using the
7082 (pa_issue_rate): Add PA7300 scheduling support.
7083 (pa_can_combine_p): Call extract_insn before calling
7084 constrain_operands (taken from mainline tree).
7085 * pa.h (enum processor_type): Add PROCESSOR_PA7300.
7086 * pa.md (cpu attr): Add 7300. Rewrite pipeline
7087 descriptions using DFA descriptions. Add PA7300
7090 2002-03-30 David S. Miller <davem@redhat.com>
7092 Add UltraSPARC-III DFA scheduling support.
7093 * config/sparc/sparc.md (define_attr type): Add fpcrmove.
7094 Update FP conditional move on register insn patterns to use it, as
7096 (define_attr cpu): Add ultrasparc3.
7097 (define_attr us3load_type): New, update integer load patterns to
7098 set it, as appropriate.
7099 (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
7100 (rest): Add UltraSPARC3 scheduling description.
7101 * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
7102 (PROCESSOR_ULTRASPARC3): New.
7103 ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
7104 ({ASM,CPP}_CPU_SPEC): Likewise.
7105 (REGISTER_MOVE_COST): Likewise.
7106 (RTX_COSTS): Likewise.
7107 * config/sparc/sparc.c (sparc_override_options,
7108 sparc_initialize_trampoline, sparc64_initialize_trampoline,
7109 sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
7110 sparc_issue_rate): Likewise.
7111 * config/sparc/sol2.h: Likewise.
7112 * config/sparc/sol2-sld-64.h: Likewise.
7113 * config/sparc/linux64.h: Likewise.
7115 2002-03-22 Vladimir Makarov <vmakarov@redhat.com>
7117 * doc/md.texi: Add comments about usage the latency time for the
7118 different dependencies and about case when two or more conditions
7119 in different define_insn_reservations returns TRUE for an insn.
7121 * doc/md.texi: Add reference for automaton based pipeline
7124 2002-03-04 Vladimir Makarov <vmakarov@redhat.com>
7126 * doc/passes.texi: Add missed information about genattrtab.
7128 2002-03-01 Vladimir Makarov <vmakarov@redhat.com>
7130 * genautomata.c (output_automata_list_transition_code): Check
7131 automata_list on NULL.
7133 2002-02-28 Vladimir Makarov <vmakarov@redhat.com>
7135 * genautomata.c (output_insn_code_cases,
7136 output_automata_list_min_issue_delay_code,
7137 output_automata_list_transition_code,
7138 output_automata_list_state_alts_code): Comment the functions.
7140 2002-02-22 Vladimir Makarov <vmakarov@redhat.com>
7142 * genautomata.c (automata_list_el_t): New typedef.
7143 (get_free_automata_list_el,free_automata_list_el,
7144 free_automata_list, automata_list_hash, automata_list_eq_p,
7145 initiate_automata_lists, automata_list_start, automata_list_add,
7146 automata_list_finish, finish_automata_lists,
7147 output_insn_code_cases, output_automata_list_min_issue_delay_code,
7148 output_automata_list_transition_code,
7149 output_automata_list_state_alts_code, add_automaton_state,
7150 form_important_insn_automata_lists): New functions and prototypes.
7151 (insn_reserv_decl): Add members important_automata_list and
7153 (ainsn): Add members important_p.
7154 (automata_list_el): New structure.
7155 (first_free_automata_list_el, current_automata_list,
7156 automata_list_table): New global variables.
7157 (create_ainsns): Initiate member important_p.
7158 (output_internal_min_issue_delay_func): Generate the switch and
7159 call output_insn_code_cases.
7160 (output_internal_trans_func, output_internal_state_alts_func):
7162 (generate): Call initiate_automata_lists.
7163 (automaton_states): New global variable.
7164 (expand_automata): Call form_important_insn_automata_lists.
7165 (write_automata): Call finish_automata_lists.
7167 2002-02-21 Vladimir Makarov <vmakarov@redhat.com>
7169 * genautomata.c (add_excls, add_presence_absence): Check that
7170 cpu units in the sets belong the same automaton.
7172 * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
7173 about that cpu units in the sets belong the same automaton.
7175 * doc/md.texi: Ditto.
7177 2001-12-20 Naveen Sharma <naveens@noida.hcltech.com>
7178 Nitin Gupta <niting@noida.hcltech.com>
7180 * config/sh/sh.c (sh_use_dfa_interface): New function.
7182 (sh_issue_rate): New Function.
7183 TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
7184 TARGET_SCHED_ISSUE_RATE: define.
7186 * config/sh/sh.md: Add DFA based pipeline description for SH4.
7188 (define_attr insn_class): New attribute used for DFA
7190 (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
7191 (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
7192 cmpeqdi_t): Likewise.
7194 (add,addc1,addsi3,subc,subc1,*subsi3_internal,
7195 negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
7197 (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
7199 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
7201 * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
7204 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
7206 * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
7207 (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
7209 (output_dfa_start_func): Initiate new variable insn_codes_length,
7210 (write_automata): Output definition of the new variable.
7212 2001-10-02 David S. Miller <davem@redhat.com>
7214 * haifa-sched.c (advance_one_cycle): New function.
7215 (schedule_block): Use it.
7216 (queue_to_ready): Use it, and also make sure to advance the DFA
7217 state on all stall cycles, not just those where insn_queue links
7220 2001-10-02 Richard Sandiford <rsandifo@redhat.com>
7222 * haifa-sched.c (max_issue): Remove last_p argument. Only return
7223 non-zero if the highest-priority instruction could be scheduled.
7224 (choose_ready): Remove last argument from max_issue call.
7226 2001-09-28 David S. Miller <davem@redhat.com>
7228 * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
7229 ultrasparc and 3 for other multi-issue sparcs.
7231 2001-09-27 David S. Miller <davem@redhat.com>
7233 * config/sparc/sparc.md (cycle_display): New pattern.
7234 * config/sparc/sparc.c (sparc_cycle_display): New.
7235 (TARGET_SCHED_CYCLE_DISPLAY): Set it.
7237 2001-09-25 David S. Miller <davem@redhat.com>
7239 Convert all of Sparc scheduling to DFA
7240 * config/sparc/sparc.md: Kill all define_function_unit
7241 directives and replace with DFA equivalent.
7242 * config/sparc/sparc.c (ultrasparc_adjust_cost,
7243 mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
7244 ultra_fpmode_conflict_exists, ultra_find_type,
7245 ultra_build_types_avail, ultra_flush_pipeline,
7246 ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
7247 ultrasparc_variable_issue, ultrasparc_sched_init,
7248 sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
7249 ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
7250 ultra_cur_hist, ultra_cycles_elapsed): Kill.
7251 (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
7252 ultrasparc_store_bypass_p): New.
7253 * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
7256 2001-09-24 David S. Miller <davem@redhat.com>
7258 * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
7259 ready->vec[foo] not ready[foo].
7261 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
7263 * doc/md.texi: Correct examples for define_insn_reservations
7266 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
7268 * genautomata.c (create_automata): Print message about creation of
7270 (generate): Remove printing meease about creation of
7273 2001-09-05 David S. Miller <davem@redhat.com>
7275 * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
7276 * config/sparc/linux64.h: Likewise.
7278 2001-08-31 Vladimir Makarov <vmakarov@redhat.com>
7280 * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
7281 schedule_block, sched_init, sched_finish): Add missed calls of
7282 use_dfa_pipeline_interface.
7284 * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
7287 * sched-vis.c (get_visual_tbl_length): Ditto.
7289 2001-08-27 Richard Henderson <rth@redhat.com>
7291 * genattr.c (main): Emit state_t even when not doing scheduling.
7293 2001-08-27 Richard Henderson <rth@redhat.com>
7295 * genautomata.c (expand_automata): Always create a description.
7297 2001-08-27 Vladimir Makarov <vmakarov@touchme.toronto.redhat.com>
7299 * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
7300 PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
7301 AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
7304 * genattr.c (main): New variable num_insn_reservations. Increase
7305 it if there is DEFINE_INSN_RESERVATION. Output automaton based
7306 pipeline hazard recognizer interface.
7308 * genattrtab.h: New file.
7310 * genattrtab.c: Include genattrtab.h.
7311 (attr_printf, check_attr_test, make_internal_attr,
7312 make_numeric_value): Move protypes into genattrtab.h. Define them
7314 (num_dfa_decls): New global variable.
7315 (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
7316 DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
7317 DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
7318 DEFINE_INSN_RESERVATION. Call expand_automata and write_automata.
7320 * genautomata.c: New file.
7322 * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
7324 * sched-int.h: (curr_state): Add the external definition for
7325 automaton pipeline interface.
7326 (haifa_insn_data): Add comments for members blockage and units.
7328 * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
7329 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
7330 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
7331 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
7332 TARGET_SCHED_DFA_POST_CYCLE_INSN,
7333 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
7334 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
7336 (TARGET_SCHED): Use the new macros.
7338 * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
7339 dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
7340 first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
7341 dfa_bubble): New members in gcc_target.sched.
7343 * haifa-sched.c (insert_schedule_bubbles_p): New variable.
7344 (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
7345 (insn_queue): Redefine it as pointer to array.
7346 (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
7348 (max_insn_queue_index_macro_value): New variable.
7349 (curr_state, dfa_state_size, ready_try): New varaibles for
7350 automaton interface.
7351 (ready_element, ready_remove, max_issue): New function prototypes
7352 for automaton interface.
7353 (choose_ready): New function prototype.
7354 (insn_unit, blockage_range): Add comments.
7355 (unit_last_insn, unit_tick, unit_n_insns): Define them for case
7356 FUNCTION_UNITS_SIZE == 0.
7357 (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
7358 actual_hazard, potential_hazard): Add comments.
7359 (insn_cost): Use cost -1 as undefined value. Remove
7360 LINK_COST_ZERO and LINK_COST_FREE. Add new code for automaton
7362 (ready_element, ready_remove): New functions for automaton
7364 (schedule_insn): Add new code for automaton pipeline interface.
7365 (queue_to_ready): Add new code for automaton pipeline interface.
7366 Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
7367 (debug_ready_list): Print newline when the queue is empty.
7368 (max_issue): New function for automaton pipeline interface.
7369 (choose_ready): New function.
7370 (schedule_block): Add new code for automaton pipeline interface.
7371 Print ready list before scheduling each insn.
7372 (sched_init): Add new code for automaton pipeline interface.
7373 Initiate insn cost by -1.
7374 (sched_finish): Free the current automaton state and finalize
7375 automaton pipeline interface.
7377 * sched-rgn.c: Include target.h.
7378 (init_ready_list, new_ready, debug_dependencies): Add new code for
7379 automaton pipeline interface.
7381 * sched-vis.c: Include target.h.
7382 (get_visual_tbl_length): Add code for automaton interface.
7383 (target_units, print_block_visualization): Add comments.
7385 * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
7386 USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
7387 (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
7388 (getruntime.o, genautomata.o): New entries.
7389 (genattrtab.o): Add new dependency file genattrtab.h.
7390 (genattrtab): Add new dependencies. Link it with `libm.a'.
7391 (getruntime.o, hashtab.o): New entries for canadian cross.
7393 * doc/md.texi: Description of automaton based model.
7395 * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
7397 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
7398 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
7399 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
7400 TARGET_SCHED_DFA_POST_CYCLE_INSN,
7401 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
7402 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
7403 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
7405 (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
7406 MAX_DFA_ISSUE_RATE): New macro descriptions.
7408 * doc/contrib.texi: Add dfa based scheduler contribution.
7410 * doc/gcc.texi: Add more information about genattrtab.
7412 Mon Apr 29 17:19:10 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7414 * reload1.c (eliminate_regs, case SUBREG): Fix typo in
7415 adjust_address_nv call.
7417 2002-04-29 Janis Johnson <janis187@us.ibm.com>
7419 * doc/install.texi (Testing): Provide additional information, and
7420 a stronger encouragement, for running the testsuites.
7422 2002-04-29 DJ Delorie <dj@redhat.com>
7424 * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
7425 given in upper case.
7427 2002-04-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7429 * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
7430 Solaris 2 <widec.h> if missing.
7431 * fixinc/fixincl.x: Regenerate.
7432 * fixinc/tests/base/widec.h: New file.
7434 2002-04-29 Nick Clifton <nickc@cambridge.redhat.com>
7436 * toplev.c (f_options): Add "profile" switch so that
7437 -fno-profile can be used to disable -p.
7439 2002-04-29 Bernd Schmidt <bernds@redhat.com>
7441 * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
7443 * tree.c (build_common_tree_nodes_2): Likewise.
7444 * tree.h (enum tree_index): Likewise.
7445 (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
7447 * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
7449 (init_mmx_sse_builtins): Initialize SSE2 builtins.
7450 (ix86_expand_builtin): Add support for SSE2 builtins.
7451 * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
7452 (VALID_SSE_REG_MODE): Use it.
7453 (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
7454 (enum ix86_builtins): Add SSE2 builtins.
7455 * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
7456 movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
7457 addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
7458 divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
7459 sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
7460 vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
7461 vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
7462 sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
7463 cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
7464 cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
7465 cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
7466 ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
7467 subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
7468 mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
7469 sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
7470 sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
7471 sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
7472 gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
7473 ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
7474 ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
7475 sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
7476 sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
7477 sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
7478 sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
7479 sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
7480 sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
7481 lfence_insn): New patterns.
7482 (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
7483 sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
7485 Mon Apr 29 17:03:24 CEST 2002 Jan Hubicka <jh@suse.cz>
7487 * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
7489 2002-04-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7491 * doc/contrib.texi (Contributors): Add Paolo Carlini and
7493 Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
7494 Refer to Objective-C instead of ObjC, SPARC instead of sparc,
7495 and CPU instead of cpu.
7497 Mon Apr 29 13:36:41 CEST 2002 Jan Hubicka <jh@suse.cz>
7499 * toplev.c (flag_if_conversion, flag_if_conversion2): New static
7501 (lang_independent_options): Add -fif-conversion, -fif-conversion2
7502 (rest_of_compilation): Do if conversion only when asked for.
7503 (parse_options_and_default_flags): Set new variables to 1 for -O1
7504 * invoke.texi (-fif-conversion, -fif-conversion2): Document.
7506 Mon Apr 29 13:02:50 CEST 2002 Jan Hubicka <jh@suse.cz>
7508 * i386.c (dbx64_register_map): Fix typo.
7510 Mon Apr 29 12:18:35 CEST 2002 Jan Hubicka <jh@suse.cz>
7512 * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
7513 real_one_half, real_bb_freq_max): New static variables.
7514 (debug_profile_bbauxs): Kill.
7515 (process_note_predictions): Kill unused variable.
7516 (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
7518 (propagate_freq): Use REAL_ARITHMETICS.
7519 (estimate_bb_frequencies): Likevise; init new static variables.
7520 * Makefile.in (predict.o): Add dependency on real.h
7522 2002-04-28 David S. Miller <davem@redhat.com>
7525 * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
7526 64-bit TARGET_V9. Do not use prefetch page, use prefetch for
7527 several {reads,writes} instead.
7528 * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
7531 2002-04-27 David S. Miller <davem@redhat.com>
7534 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
7537 * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
7538 including signal.h and sys/ucontext.h, not needed.
7540 2002-04-29 Hans-Peter Nilsson <hp@bitrange.com>
7542 * varasm.c (output_constant_def): Correct test for not calling
7543 ENCODE_SECTION_INFO for INTEGER_CST.
7545 2002-04-29 Neil Booth <neil@daikokuya.demon.co.uk>
7547 * cppexp.c (lex): Move some code to _cpp_parse_expr, but
7548 keep most cases as function eval_token.
7549 (eval_token): New function.
7550 (_cpp_parse_expr): Read token here for improved diagnostics.
7551 Don't use op_as_text. Detect bad ':' here.
7552 (reduce): Don't detect bad ':' here.
7553 (op_as_text): Remove.
7554 * cpphash.h (_cpp_test_assertion): Change prototype.
7555 * cpplib.c (_cpp_test_assertion): Change prototype.
7557 2002-04-28 Richard Henderson <rth@redhat.com>
7560 * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
7561 (ggc_mark_rtx_children): New.
7563 2002-04-28 Jakub Jelinek <jakub@redhat.com>
7566 * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
7567 after call peepholes for UltraSPARC.
7568 (call + jump 64-bit peepholes): Remove.
7570 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7573 * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
7574 result as temporary value.
7576 2002-04-28 Jakub Jelinek <jakub@redhat.com>
7579 * toplev.c (rest_of_compilation): Only run regrename and copy
7580 propagation if optimizing.
7582 2002-04-28 Jakub Jelinek <jakub@redhat.com>
7584 PR optimization/6475
7585 * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
7586 register of REGNO_DECL (i).
7587 * Makefile.in (reload1.o): Add $(TREE_H).
7589 2002-04-28 Neil Booth <neil@daikokuya.demon.co.uk>
7591 * cppexp.c (lex): Update to use state.skip_eval.
7592 (struct op): Remove prio and flags members.
7593 (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
7594 SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
7595 (LEFT_ASSOC): New macro.
7596 (optab): New table of operator priorities and flags.
7598 (_cpp_parse_expr): Clean up logic. Return bool. Use a
7599 malloc-ed parser stack.
7600 (reduce): New; reduce the operator stack.
7601 (_cpp_expand_op_stack): Expand the operator stack as necessary.
7602 * cpphash.h (struct op): Predeclare.
7603 (struct cpp_reader): New members op_stack, op_limit.
7604 (struct lexer_state): New member skip_eval.
7605 (_cpp_parse_expr): Update.
7606 (_cpp_expand_op_stack): New.
7607 * cpplib.c (do_if): Update.
7608 * cppinit.c (cpp_create_reader): Create op stack.
7609 (cpp_destroy): And destroy it.
7610 * cpplib.h (CPP_LAST_CPP_OP): Correct.
7611 (TTYPE_TABLE): Correct.
7613 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7616 * c-decl.c (duplicate_decls): Call merge_weak.
7617 * c-pragma.c (apply_pragma_weak): Warn about misuse.
7618 * output.h (merge_weak): Prototype merge_weak.
7619 * varasm.c (merge_weak): New function.
7620 (declare_weak): Make sure we don't give an error on VAR_DECLs.
7621 Mark RTL with SYMBOL_REF_WEAK.
7623 2002-04-27 Kurt Garloff <garloff@suse.de>
7625 * tree-inline.c (inlinable_function_p): Improve heuristics
7626 by using a smoother function to cut down allowable inlinable size.
7627 * param.def: Add parameters max-inline-insns-single,
7628 max-inline-slope, min-inline-insns that determine the exact
7629 shape of the above function.
7630 * param.h: Likewise.
7632 2002-04-26 Richard Henderson <rth@redhat.com>
7634 * c-parse.in (malloced_yyss, malloced_yyvs): New.
7635 (yyoverflow): Re-add. Set them.
7636 (free_parser_stacks): New.
7637 * c-common.h: Declare it.
7638 * c-lex.c (c_common_parse_file): Call it.
7640 2002-04-26 Richard Henderson <rth@redhat.com>
7642 * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
7643 for fallthru search.
7645 2002-04-26 Eric Christopher <echristo@redhat.com>
7647 PR optimization/3700
7648 * config/mips/mips.c (mips_issue_rate): Define. New function.
7649 (TARGET_SCHED_ISSUE_RATE): Use.
7651 2002-04-25 David S. Miller <davem@redhat.com>
7654 * reorg.c (optimize_skip): Do not allow exception causing
7655 instructions to be considered for delay slots.
7656 (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
7657 (relax_delay_slots): Do not try to consider exception causing
7658 instructions as redundant.
7660 2002-04-26 Richard Henderson <rth@redhat.com>
7663 * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
7665 2002-04-26 Mark Mitchell <mark@codesourcery.com>
7668 * config/i386/i386.md (untyped_call): Return the value in a float
7669 register if TARGET_FLOAT_RETURNS_IN_80387, not just if
7672 2002-04-26 Alexandre Oliva <aoliva@redhat.com>
7674 * tree.c (tree_int_cst_lt): Compare constants whose types differ
7675 in unsigned-ness correctly.
7677 2002-04-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
7679 * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
7680 portable runtime model.
7682 2002-04-26 Richard Henderson <rth@redhat.com>
7684 * c-parse.in (yyoverflow): Revert.
7686 2002-04-26 David Edelsohn <edelsohn@gnu.org>
7687 Richard Henderson <rth@redhat.com>
7689 * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
7690 result as temporary value.
7692 2002-04-26 Richard Henderson <rth@redhat.com>
7695 * c-common.c (fix_string_type): Split out of ...
7696 (combine_strings): ... here. Take a varray, not a tree list.
7697 (c_expand_builtin_printf): Use fix_string_type.
7698 * c-common.h: Update decls.
7699 * c-parse.in (string): Remove. Update all uses to use STRING
7700 instead, and not call combine_strings.
7703 * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
7704 (build_asm_stmt): Likewise.
7705 * objc/objc-act.c (my_build_string): Use fix_string_type.
7706 (build_objc_string_object): Build varray for combine_strings.
7708 2002-04-26 Bo Thorsen <bo@suse.co.uk>
7710 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
7713 2002-04-26 Neil Booth <neil@daikokuya.demon.co.uk>
7715 * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
7716 (HAVE_NO_R_OPERAND): Remove.
7717 (HAVE_VALUE): Remove.
7718 (op_to_prio): Update.
7719 (UNARY): Don't alter flags.
7720 (_cpp_parse_expr): want_value used to indicate whether
7721 a number or unary operator is expected next. Distinguish
7722 unary and binary +/-.
7723 (op_as_text): Update for unary operators.
7725 2002-04-25 Richard Henderson <rth@redhat.com>
7728 * c-parse.in (yyoverflow): New.
7730 2002-04-25 Richard Henderson <rth@redhat.com>
7733 * c-common.c (shorten_compare): Simplfy conditions leading to
7734 the generation of a warning.
7736 2002-04-25 Richard Henderson <rth@redhat.com>
7739 * expmed.c (extract_bit_field): Fall through to generic code rather
7740 than aborting on subreg special case.
7742 2002-04-25 David S. Miller <davem@redhat.com>
7744 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
7745 for DECL being NULL.
7747 2002-04-25 Steve Christiansen <smc@us.ibm.com>
7749 * doc/md.texi (Machine Constraints): Add IA-64 constraints.
7751 2002-04-25 Eric Botcazou <ebotcazou@multimania.com>
7753 * c-decl.c (grokdeclarator): Remove outdated ??? note
7754 on invalid declaration of flexible array members.
7756 2002-04-25 Richard Henderson <rth@redhat.com>
7758 * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
7760 2002-04-25 Ulrich Weigand <uweigand@de.ibm.com>
7762 * config/s390/s390.c (s390_emit_epilogue): Always restore registers
7763 needed by the compiler, even if they are used as global regs.
7765 2002-04-25 Matt Hiller <hiller@redhat.com>
7767 * mips.c (mips_class_max_nregs, mips_register_move_cost): New
7769 * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
7770 of the corresponding functions.
7771 * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
7774 2002-04-25 Matt Hiller <hiller@redhat.com>
7776 * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
7778 (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
7779 (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
7780 registers, adjust comment accordingly.
7781 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
7782 reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
7783 DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
7784 for coprocessor registers.
7785 (ADDITIONAL_REGISTER_NAMES): Include
7786 ALL_COP_ADDITIONAL_REGISTER_NAMES.
7788 (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
7789 COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
7790 COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
7791 COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
7792 COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
7794 (mips_char_to_class): Adjust comment to include coprocessor
7797 * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
7799 (mips_reg_names, mips_regno_to_class): Include coprocessor
7801 (mips_sw_reg_names): Ditto, make non-static.
7802 (mips_move_1word): Handle moves to and from coprocessor registers.
7803 (mips_move_2words): Handle moves to and from coprocessor
7805 (mips_class_max_nregs, mips_register_move_cost): Handle
7806 coprocessor register classes.
7807 (override_options): Initialize mips_char_to_class and
7808 mips_hard_regno_mode_ok properly for coprocessor registers.
7810 * config/mips/mips.md (movdi_internal, movdi_internal2,
7811 movsi_internal1, movsi_internal2): Add constraint-sets for
7812 coprocessor registers.
7813 * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
7814 * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
7816 * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
7817 * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
7819 * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
7820 * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
7822 * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
7823 * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
7826 * doc/tm.texi: Document feature.
7828 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
7830 * integrate.c (function_attribute_inlinable_p): Simplify.
7831 Check the table pointer is not NULL.
7833 2002-04-25 Steven Bosscher <S.Bosscher@student.tudelft.nl>
7835 * doc/c-tree.texi: Fix typo in introduction.
7837 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
7839 * c-common.h (c_common_parse_file): Update.
7840 * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
7841 * c-lex.c (YYDEBUG): Get from c-lex.h.
7842 (c_common_parse_file): Update.
7843 * c-lex.h (YYDEBUG, yydebug): New.
7844 * c-parse.in (YYDEBUG): Get from c-lex.h.
7845 (c_set_yydebug): Remove.
7846 * c-tree.h (c_set_yydebug): Remove.
7847 * langhooks-def.h (lhd_do_nothing_i): New.
7848 (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
7849 (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
7850 * langhooks.c (lhd_do_nothing_i): New.
7851 (lhd_set_yydebug): Remove.
7852 * langhooks.h (struct lang_hooks): Update.
7853 * toplev.c (set_yydebug): New.
7854 (compile_file): Update call to parse_file hook.
7855 (decode_d_option): Update.
7857 * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
7859 Wed Apr 24 23:45:37 2002 J"orn Rennecke <joern.rennecke@superh.com>
7861 * loop.c (load_mems): Don't change the interface of called functions.
7863 * calls.c (expand_call): Take current_function_pretend_args_size
7864 into account when setting argblock for sibcalls.
7866 2002-04-24 Matt Hiller <hiller@redhat.com>
7868 * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
7871 * cpplex.c (skip_line_comment): Process comment one multibyte
7872 character at a time rather than one char at a time, if
7874 (parse_string): Process string one multibyte character at a time
7875 rather than one char at a time, if appropriate.
7876 * c-lex.c (lex_string): Lex and copy multibyte strings
7878 * cpplib.h (cppchar_t): Change to unsigned.
7880 2002-04-24 Richard Henderson <rth@redhat.com>
7883 * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
7886 Wed Apr 24 21:51:54 2002 J"orn Rennecke <joern.rennecke@superh.com>
7888 * sh.c (sh_va_arg): If argument was passed by reference,
7889 dereference the pointer.
7891 * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
7893 * sh.md (divsi3_i4_media): Use match_operand for input values
7894 rather than hard registers.
7895 (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
7896 unnecessarily through hard registers. Keep copies of pseudo
7897 registers outside of the libcall sequence.
7899 * sh.md (casesi_shift_media): Add modes.
7901 * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
7904 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
7906 * attribs.c (c_common_attribute_table): Move table and handlers
7908 (format_attribute_table, lang_attribute_table,
7909 lang_attribute_common): Remove.
7910 (init_attributes): Replace NULL pointers with pointers to the
7912 (handle_packed_attribute, handle_nocommon_attribute,
7913 handle_common_attribute, handle_noreturn_attribute,
7914 handle_noinline_attribute, handle_always_inline_attribute,
7915 handle_used_attribute, handle_unused_attribute,
7916 handle_const_attribute, handle_transparent_union_attribute,
7917 handle_constructor_attribute, handle_destructor_attribute,
7918 handle_mode_attribute, handle_section_attribute,
7919 handle_aligned_attribute, handle_weak_attribute,
7920 handle_alias_attribute, handle_visibility_attribute,
7921 handle_no_instrument_function_attribute, handle_malloc_attribute,
7922 handle_no_limit_stack_attribute, handle_pure_attribute,
7923 handle_deprecated_attribute, handle_vector_size_attribute,
7924 vector_size_helper): Move to c-common.c.
7925 * c-common.c (c_common_attribute_table,
7926 handle_packed_attribute, handle_nocommon_attribute,
7927 handle_common_attribute, handle_noreturn_attribute,
7928 handle_noinline_attribute, handle_always_inline_attribute,
7929 handle_used_attribute, handle_unused_attribute,
7930 handle_const_attribute, handle_transparent_union_attribute,
7931 handle_constructor_attribute, handle_destructor_attribute,
7932 handle_mode_attribute, handle_section_attribute,
7933 handle_aligned_attribute, handle_weak_attribute,
7934 handle_alias_attribute, handle_visibility_attribute,
7935 handle_no_instrument_function_attribute, handle_malloc_attribute,
7936 handle_no_limit_stack_attribute, handle_pure_attribute,
7937 handle_deprecated_attribute, handle_vector_size_attribute,
7938 vector_size_helper): Move from attribs.c.
7939 * c-common.h (c_common_attribute_table,
7940 c_common_format_attribute_table): New.
7941 * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
7942 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
7943 * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
7944 LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
7945 (LANG_HOOKS_INITIALIZER): Update.
7946 * langhooks.h (struct lang_hooks): 3 new attribute hooks.
7947 * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
7948 * target.h: Update comment.
7949 * tree.c (default_target_attribute_table): Remove.
7950 * tree.h (default_target_attribute_table, format_attribute_table,
7951 lang_attribute_table, lang_attribute_common): Remove.
7953 * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
7954 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
7956 2002-04-24 Jason Merrill <jason@redhat.com>
7958 * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
7959 * dwarf2out.c (dwarf_attr_name): Support it.
7960 (gen_array_type_die): Emit it.
7961 (lookup_type_die): No special handling for VECTOR_TYPE.
7962 (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
7964 2002-04-24 Richard Henderson <rth@redhat.com>
7966 * config/mips/mips.md (movdi_usd): Renumber.
7968 2002-04-24 David S. Miller <davem@redhat.com>
7971 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
7972 32-bit Sparc and current_function_returns_struct is true.
7974 Wed Apr 24 13:48:25 CEST 2002 Jan Hubicka <jh@suse.cz>
7976 * loop.c (canonicalize_condition): Use gen_int_mode.
7978 2002-04-24 Aldy Hernandez <aldyh@redhat.com>
7980 * config/rs6000/altivec.h: Cleanup file. Add non individual
8002 (vec_vcmpequb): New.
8003 (vec_vcmpequh): New.
8004 (vec_vcmpequw): New.
8005 (vec_vcmpeqfp): New.
8006 (vec_vcmpgefp): New.
8007 (vec_vcmpgtub): New.
8008 (vec_vcmpgtsb): New.
8009 (vec_vcmpgtuh): New.
8010 (vec_vcmpgtsh): New.
8011 (vec_vcmpgtuw): New.
8012 (vec_vcmpgtsw): New.
8013 (vec_vcmpgtfp): New.
8014 (vec_vcmpgefp): New.
8019 (vec_vexptefp): New.
8024 (vec_lde): Add vector float variant.
8029 (vec_vmhaddshs): New.
8051 (vec_vmladduhm): New.
8052 (vec_vmhraddshs): New.
8054 (vec_vmsummbm): New.
8055 (vec_vmsumuhm): New.
8056 (vec_vmsumshm): New.
8057 (vec_vmsumuhs): New.
8058 (vec_vmsumshs): New.
8067 (vec_vnmsubfp): New.
8085 (vec_vrsqrtefp): New.
8096 (vec_vspltisb): New.
8097 (vec_vspltish): New.
8098 (vec_vspltisw): New.
8123 (vec_vsum4ubs): New.
8124 (vec_vsum4sbs): New.
8125 (vec_vsum4shs): New.
8126 (vec_vsum2sws): New.
8137 2002-04-23 Eric Botcazou <ebotcazou@multimania.com>
8140 * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
8141 added literals from substracted literals.
8142 (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
8143 (fold) [associate]: Preserve MINUS_EXPR if needed.
8145 2002-04-23 Zack Weinberg <zack@codesourcery.com>
8147 * doc/install.texi: Clarify which versions of alpha*-dec-osf*
8150 2002-04-23 Tom Tromey <tromey@redhat.com>
8152 * gcc.c: Added --resource. For PR java/6314.
8154 2002-04-23 David O'Brien <obrien@FreeBSD.org>
8156 * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
8157 * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
8160 2002-04-23 David O'Brien <obrien@FreeBSD.org>
8162 * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
8164 Tue Apr 23 14:24:25 CEST 2002 Jan Hubicka <jh@suse.cz>
8166 * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
8168 (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
8169 (ix86_expand_clrstr): Fix typo.
8170 * loop.c (gen_load_of_final_value): New.
8171 (loop_givs_rescan, strength_reduce, check_dbra_loop):
8174 2002-04-23 Roger Sayle <roger@eyesopen.com>
8176 * builtins.c (builtin_memset_gen_str): New function.
8177 (expand_builtin_memset): Optimize the case of constant length, but
8180 2002-04-23 Aldy Hernandez <aldyh@redhat.com>
8182 * config/rs6000/altivec.h (vec_step): Remove extraneous
8184 (vec_ctu): Cast return.
8186 2002-04-23 Alan Modra <amodra@bigpond.net.au>
8189 * function.h: (struct function): Add profile_label_no field.
8190 (current_function_profile_label_no): Define.
8191 * function.c: (profile_label_no): New static var.
8192 (expand_function_start): Increment it, and copy to
8193 current_function_profile_label_no.
8194 * output.h (profile_label_no): Delete.
8195 * final.c (profile_label_no): Delete.
8196 (profile_function): Use current_function_profile_label_no.
8197 (final_end_function): Don't increment profile_label_no here.
8198 * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
8199 profile_label_no with current_function_profile_label_no.
8200 * config/pa/pa.c (current_function_number): Delete.
8201 (pa_output_function_prologue): Don't output profile label here.
8202 (hppa_profile_hook): Use label_no param rather than
8203 current_function_number.
8204 (FUNC_BEGIN_PROLOG_LABEL): Move to ..
8205 * config/pa/pa.h: .. here.
8206 (FUNCTION_PROFILER): Output profile label here.
8208 2002-04-22 Eric Christopher <echristo@redhat.com>
8210 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
8211 patch of 2002-04-09 due to binutils issues.
8212 (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
8214 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
8216 * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
8217 constraint to 'o' for m=r and r=m alternatives.
8218 ("*movv8hi_internal1"): Same.
8219 ("*movv16qi_internal1"): Same.
8220 ("*movv4sf_internal1"): Same.
8222 2002-04-22 Janis Johnson <janis187@us.ibm.com>
8224 * rtl.h (RTX_FLAG): New macro.
8225 * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
8226 * final.c (alter_subreg): Use macro to access rtx flag.
8227 * integrate.c (copy_rtx_and_substitute): Use new access macro.
8228 * print-rtl.c (print_rtx): Use new access macro.
8230 * cse.c (insert): Check rtx code before accessing flag.
8232 * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
8233 ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
8234 (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
8235 convert_const_symbol_ref, make_canonical, make_alternative_compare,
8236 evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
8237 simplify_test_exp, optimize_attrs, simplify_by_exploding,
8238 find_and_mark_used_attributes, unmark_used_attributes,
8239 add_values_to_cover, simplify_with_current_value,
8240 simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
8241 copy_rtx_unchanging, main): Use new access macros.
8243 2002-04-22 Tom Rix <trix@redhat.com>
8245 * expmed.c (init_expmed): Generate shifted constant once.
8247 2002-04-22 Zack Weinberg <zack@codesourcery.com>
8249 * c-lex.c (lex_charconst): Call convert to get constant in
8250 proper type; don't just smash the type field.
8253 * config.gcc: Add list of obsolete configurations. Disallow
8254 building these without --enable-obsolete.
8255 * doc/install.texi: Document --enable-obsolete and obsoletion
8256 policy. Mention obsoletion of individual targets in
8259 2002-04-22 Richard Henderson <rth@redhat.com>
8261 * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
8263 2002-04-22 Mark Mitchell <mark@codesourcery.com>
8266 * function.c (fixup_memory_subreg): Add promoted_mode parameter.
8267 (walk_fixup_memory_subreg): Likewise.
8268 (fixup_var_refs_insn): Adjust accordingly.
8269 (fixup_var_refs_1): Likewise.
8271 2002-04-22 Ulrich Weigand <uweigand@de.ibm.com>
8273 * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
8274 LIBPATH_ARCH64_SPEC): Define.
8275 (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
8276 (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
8277 (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
8278 (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
8280 2002-04-22 Joel Sherrill <joel@OARcorp.com>
8282 * gthr-rtems.h: Correct prototypes to remove warnings.
8284 2002-04-22 Richard Henderson <rth@redhat.com>
8287 * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
8289 * gcse.c (free_insn_expr_list_list): New.
8290 (clear_modify_mem_tables): Use it. Fix bit set usage.
8291 (canon_list_insert): Use EXPR_LISTs for expressions.
8292 (record_last_mem_set_info): Factor BLOCK_NUM (insn).
8294 2002-04-22 Neil Booth <neil@daikokuya.demon.co.uk>
8296 * cppfiles.c (_cpp_pop_file_buffer): Return void. Move
8297 file change and include code to _cpp_pop_buffer.
8298 * cpphash.h (struct pending_option): Predeclare.
8299 (struct cpp_reader): New member next_include_file.
8300 (_cpp_pop_file_buffer): Update.
8301 (_cpp_push_next_buffer): Update, rename.
8302 * cppinit.c (cpp_destroy): Free include chain and pending here.
8303 (cpp_finish_options): Simplify.
8304 (_cpp_push_next_buffer): Rename and clean up.
8305 * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
8307 * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
8309 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
8311 * config/rs6000/altivec.h (vec_xor): Add variant for both args
8312 being vector signed int.
8314 (vec_xor): Add variant for both args being vector signed char.
8315 Remove redundant variant.
8318 2002-04-21 David S. Miller <davem@redhat.com>
8320 * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
8321 compare mode in output RTL.
8323 2002-04-22 David Edelsohn <edelsohn@gnu.org>
8325 * config/rs6000/rs6000.c (rs6000_override_options): Correct
8326 style and formatting of previous patch.
8328 2002-04-22 Alan Modra <amodra@bigpond.net.au>
8330 * config/rs6000/rs6000.c (rs6000_override_options): Always clear
8331 flag_pic for ABI_AIX.
8333 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
8335 * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
8336 * cppfiles.c (read_include_file): Similarly.
8337 * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
8338 uxstrdup ustrchr, ufputs): Similarly.
8339 * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
8340 * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
8341 cpp_ideq, parse_identifier, parse_number): Similarly.
8342 * cpplib.c (struct directive, dequote_string, D, run_directive,
8343 cpp_push_buffer): Similarly.
8344 * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
8345 _cpp_create_definition, check_trad_stringification,
8346 cpp_macro_definition): Similarly.
8348 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
8350 * cppmacro.c (funlike_invocation_p): Don't step back
8353 2002-04-21 David Edelsohn <edelsohn@gnu.org>
8355 * config/rs6000/rs6000.c (output_profile_hook): Do not increment
8358 2002-04-20 Joseph S. Myers <jsm28@cam.ac.uk>
8360 * doc/invoke.texi: Remove Chill references.
8361 * doc/gcc.texi: Update last modified date.
8363 2002-04-20 Kazu Hirata <kazu@hxi.com>
8365 * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
8366 push and pop. Replace add.l with add.w.
8368 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
8370 * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
8371 multiply instructions for H8/300H case.
8373 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
8375 * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
8376 Bum three instructions from each routine.
8378 2002-04-20 Neil Booth <neil@daikokuya.demon.co.uk>
8380 * Makefile.in: Update.
8381 * decl.c (push_c_function_context, pop_c_function_context,
8382 mark_c_function_context): Rename for consistency.
8383 * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
8384 * c-tree.h (push_c_function_context, pop_c_function_context,
8385 mark_c_function_context): Rename for consistency.
8386 * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
8387 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
8388 * function.c (init_lang_status, save_lang_status,
8389 restore_lang_status, mark_lang_status, free_lang_status):
8390 Move to langhooks.h.
8391 (push_function_context_to, pop_function_context_from,
8392 free_after_parsing, prepare_function_start, ggc_mark_struct_function):
8394 * function.h (init_lang_status, save_lang_status,
8395 restore_lang_status, mark_lang_status, free_lang_status):
8396 Move to langhooks.h.
8397 * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
8398 LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
8399 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
8400 LANG_HOOKS_FUNCTION_INITIALIZER): New.
8401 (LANG_HOOKS_INITIALIZER): Update.
8402 (lhd_do_nothing_f): New.
8403 * langhooks.h (struct lang_hooks_for_functions): New.
8404 (struct lang_hooks): New hooks.
8405 * langhooks.c (lhd_do_nothing_f): New.
8407 * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
8408 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
8410 2002-04-19 David S. Miller <davem@redhat.com>
8412 * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
8413 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
8415 2002-04-19 Jakub Jelinek <jakub@redhat.com>
8417 PR optimization/3756
8418 * config/i386/i386.c (ix86_expand_int_movcc): Optimize
8419 x = ((int) y < 0) ? cst1 : cst2.
8421 2002-04-19 Jakub Jelinek <jakub@redhat.com>
8424 * function.c: Reapply patch for c/6358.
8425 (expand_function_end): Copy decl_rtl's mode, not
8426 current_function_return_rtx mode.
8428 2002-04-19 Joel Sherrill <joel@OARcorp.com>
8430 * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
8433 2002-04-19 Tom Tromey <tromey@redhat.com>
8435 * doc/install.texi (Specific): Update status of Solaris 2.8.
8438 2002-04-19 Andreas Schwab <schwab@suse.de>
8440 * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
8441 (PUT_REAL): Restore old definition.
8443 2002-04-19 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
8444 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
8446 * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
8447 binutils 2.11.2 and higher generate smaller binaries than Sun's
8450 2002-04-19 Mark Mitchell <mark@codesourcery.com>
8453 * toplev.c (rest_of_compilation): Do not defer functions for which
8454 TREE_SYMBOL_REFERENCED has already been set.
8456 Fri Apr 19 15:53:03 CEST 2002 Jan Hubicka <jh@suse.cz>
8458 * i386.md (movsi_1, movhi_1): Force reload to use more flexible
8461 2002-04-19 Neil Booth <neil@daikokuya.demon.co.uk>
8463 * builtins.c: Include langhooks.h.
8464 (lang_type_promotes_to): Remove.
8465 (expand_builtin_va_arg): Use new hook.
8466 * c-common.c (c_common_nodes_and_builtins): Don't set hook.
8467 (simple_type_promotes_to): Move to c-typeck.c.
8468 * c-common.h (simple_type_promotes_to): Remove.
8469 * c-decl.c (duplicate_decls, grokdeclarator): Update.
8470 * c-format.c: Include langhooks.h.
8471 (check_format_types): Update.
8472 * c-tree.h (c_type_promotes_to): New.
8473 * c-typeck.c (c_type_promotes_to): Move from c-common.c.
8474 (type_lists_compatible_p): Update.
8475 * langhooks-def.h (lhd_type_promotes_to): New.
8476 (LANG_HOOKS_TYPE_PROMOTES_TO): New.
8477 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
8478 * langhooks.c (lhd_type_promotes_to): New.
8479 * langhooks.h (struct lang_hooks_for_types): New hook.
8480 * tree.h (lang_type_promotes_to): Remove.
8482 * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
8484 2002-04-18 Richard Henderson <rth@redhat.com>
8486 * function.c: Revert patch for c/6358.
8488 2002-04-18 Richard Henderson <rth@redhat.com>
8490 * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
8491 blocks. Handle multiple references to the TRAP block. Handle
8492 non-adjacent THEN and OTHER blocks.
8494 2002-04-18 Richard Henderson <rth@redhat.com>
8496 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
8497 crash with no type for by-mode libcalls.
8499 * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
8501 2002-04-18 Bob Wilson <bob.wilson@acm.org>
8503 * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
8504 __xtensa_nonlocal_goto): Use a syscall instructions to flush
8505 the register windows.
8507 2002-04-18 Zack Weinberg <zack@codesourcery.com>
8509 * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
8510 appropriate. Document need for extended precision even when
8511 MAX_LONG_DOUBLE_TYPE_SIZE is smaller. Define REAL_WIDTH here,
8512 based on REAL_VALUE_TYPE_SIZE. Use REAL_WIDTH to size
8513 REAL_VALUE_TYPE. Define CONST_DOUBLE_FORMAT here. Use #error
8514 instead of relying on later syntax error when REAL_WIDTH > 5.
8515 * real.c: Define NE based only on whether or not we have a
8516 full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
8517 Require sizeof(REAL_VALUE_TYPE) == 2*NE. Unconditionally
8518 define GET_REAL and PUT_REAL as simple memcpy operations; no
8519 need to byteswap or round.
8520 Use #error instead of #ifdef-ing out the entire file, for
8521 prompt error detection.
8523 * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
8525 2002-04-18 David S. Miller <davem@redhat.com>
8527 * config/sparc/sparc.h (BRANCH_COST): Define.
8529 * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
8532 2002-04-18 Hans-Peter Nilsson <hp@bitrange.com>
8534 * flow.c (update_life_info): Ignore return value of cleanup_cfg.
8535 Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
8536 propagate_block calls after relaxation loop using new variable
8537 stabilized_prop_flags.
8539 2002-04-18 Richard Henderson <rth@redhat.com>
8541 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
8542 (ia64_va_arg): Expect variable sized types by reference.
8543 * config/ia64/ia64-protos.h: Update.
8544 * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
8545 ia64_function_arg_pass_by_reference.
8547 2002-04-18 Richard Henderson <rth@redhat.com>
8549 * ifcvt.c: Include except.h.
8550 (block_has_only_trap): Break out from find_cond_trap.
8551 (find_cond_trap): Use it. Always delete the trap block.
8552 (merge_if_block): Allow then block null. Be less simplistic about
8553 what insns can end a block.
8554 * Makefile.in (ifcvt.o): Depend on except.h.
8556 * config/ia64/ia64.md (trap, conditional_trap): New.
8558 2002-04-18 Jakub Jelinek <jakub@redhat.com>
8561 * function.c (assign_parms): Assign hard current_function_return_rtx
8563 (expand_function_end): ...not here.
8565 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
8567 * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
8568 * c-tree.h (c_incomplete_type_error): New.
8569 * c-typeck.c (require_complete_type, build_component_ref): Update.
8570 (incomplete_type_error): Rename.
8571 * langhooks-def.h (lhd_incomplete_type_error): New.
8572 (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
8573 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
8574 * langhooks.c (lhd_incomplete_type_error): New.
8575 * langhooks.h (struct lang_hooks_for_types): New hook.
8576 * tree.c (size_in_bytes): Use new hook.
8577 * tree.h (incomplete_type_error): Remove.
8579 * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
8581 2002-04-18 Zack Weinberg <zack@codesourcery.com>
8583 * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
8584 TARGET_FLOAT_FORMAT blocks.
8586 2002-04-18 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
8588 * doc/install.texi (Downloading the source): Do not mention Chill
8589 any longer, but mention Ada.
8590 (Configuration): Do not mention Chill any longer.
8592 2002-04-18 Hans-Peter Nilsson <hp@axis.com>
8594 * config/cris/cris.h (TARGET_VERSION): Remove local version number.
8596 Thu Apr 18 17:14:08 CEST 2002 Jan Hubicka <jh@suse.cz>
8598 * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
8601 2002-04-18 Jakub Jelinek <jakub@redhat.com>
8603 * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
8604 instead of unsigned_type.
8606 Thu Apr 18 15:49:12 CEST 2002 Jan Hubicka <jh@suse.cz>
8608 * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
8609 * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
8612 2002-04-18 Bernd Schmidt <bernds@redhat.com>
8614 * attribs.c (vector_type_node_list): New static variable.
8615 (handle_vector_size_attribute): Use it to avoid generating a
8616 new type node each time we are called.
8618 * combine.c (subst): Avoid trying to make a vector mode subreg of
8619 an integer constant.
8620 (gen_lowpart_for_combine): Likewise.
8622 2002-04-18 Roger Sayle <roger@eyesopen.com>
8623 Jakub Jelinek <jakub@redhat.com>
8625 * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
8626 for integer constant c (if x has unsigned type or sign bit is not
8627 set in c). This folds the zero/sign extension into the bit-wise and
8630 2002-04-18 Jakub Jelinek <jakub@redhat.com>
8633 * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
8636 2002-04-17 NIIBE Yutaka <gniibe@m17n.org>
8638 * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
8640 2002-04-17 Nick Clifton <nickc@cambridge.redhat.com>
8642 * gcc.c (read_specs): Detect and fail if an attempt is made to
8643 rename a spec string to an already existing string.
8645 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
8647 * config/s390/s390.c (legitimize_pic_address): Do not generate
8648 illegal address constant without CONST.
8650 2002-04-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8652 * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
8653 * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
8655 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
8657 PR optimization/6305
8658 * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
8659 to make sure previous reloads are taken into account. Generate
8660 better code if one operand is an in-range immediate constant.
8662 2002-04-16 Andrew Haley <aph@cambridge.redhat.com>
8664 * doc/install.texi (Building): libgcj requires GNU make.
8666 2002-04-17 Jakub Jelinek <jakub@redhat.com>
8669 * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
8670 even if hard quad and register is not floating.
8671 (movtf reg<-mem split): Disallow splitting if hard quad and
8672 register is floating.
8673 (movtf mem<-reg split): Likewise.
8674 * config/sparc/sparc.c (fp_register_operand): New predicate.
8675 * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
8677 2002-04-17 Zack Weinberg <zack@codesourcery.com>
8679 * Makefile.in (PROTO_OBJS): Add cppdefault.o.
8680 (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
8681 (unprotoize.o): Ditto. Build from protoize.c. Define
8682 UNPROTOIZE on command line.
8683 * protoize.c: Include cppdefault.h. Delete include_defaults.
8684 (in_system_include_dir): Use cpp_include_defaults (defined in
8686 * unprotoize.c: Delete file.
8688 2002-04-17 Aldy Hernandez <aldyh@redhat.com>
8690 * config/rs6000/altivec.h (vec_ld): Add array variants.
8694 2002-04-17 Alan Matsuoka <alanm@redhat.com>
8695 Aldy Hernandez <aldyh@redhat.com>
8697 * config/rs6000/altivec.h: Define __ALTIVEC__.
8704 Add parentheses to all macro arguments.
8706 2002-04-16 Richard Henderson <rth@redhat.com>
8709 * except.c (remove_eh_handler): Insert inner regions at beginning
8710 of sibling chain. Refactor expressions.
8712 2002-04-16 Richard Henderson <rth@redhat.com>
8714 * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
8715 * config/sparc/sol2-gas-bi.h: New file.
8716 * config.gcc (sparc*-solaris): Add it as needed.
8717 * configure.in (AS_SPARC64_FLAG): Remove check.
8718 * config.in, configure: Regenerate.
8720 * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
8722 2002-04-16 Richard Henderson <rth@redhat.com>
8724 * config/mips/mips.c (override_options): Don't override N32 for
8728 * config/mips/mips.md (can_delay): Split out of existing define_delays.
8729 (HILO_delay): Set can_delay false.
8731 2002-04-16 Dale Johannesen <dalej@apple.com>
8733 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
8734 instruction addresses.
8735 (rs6000_output_function_epilogue): Likewise.
8737 2002-04-16 Paolo Carlini <pcarlini@unitus.it>
8739 * c-parse.in (poplevel, compstmt_start,
8740 compstmt_primary_start): Add ending ';', in accordance
8743 2002-04-16 Richard Henderson <rth@redhat.com>
8745 * config.gcc (sparcv9-solaris): Configure for 64-bit default.
8746 Adjust tm_file order to get TARGET_DEFAULT set properly.
8747 (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
8748 * doc/install.texi (sparc-solaris): Update.
8750 2002-04-16 Dale Johannesen <dalej@apple.com>
8752 * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
8753 comparison operands do not match each other or if modes of
8754 conditions do not match result.
8756 2002-04-16 Hartmut Penner <hpenner@de.ibm.com>
8759 * config/s390/s390.md (mulsidi3): Set both subregs of the
8762 2002-04-16 Aldy Hernandez <aldyh@redhat.com>
8764 * config/rs6000/altivec.h (vec_addc): Type check.
8766 2002-04-16 Jakub Jelinek <jakub@redhat.com>
8769 * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
8771 * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
8773 2002-04-15 Richard Henderson <rth@redhat.com>
8775 * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
8776 call_really_used_regs too.
8778 2002-04-15 Richard Henderson <rth@redhat.com>
8780 * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
8782 2002-04-15 David S. Miller <davem@redhat.com>
8784 * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
8787 2002-04-16 Jakub Jelinek <jakub@redhat.com>
8790 * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
8791 CONST_VECTOR is { 0, ... 0 }.
8793 2002-04-15 Loren J. Rittle <ljrittle@acm.org>
8795 * doc/install.texi (Installing GCC: Configuration): Clarify
8796 the only supported ways to configure gcc.
8798 2002-04-15 Roland McGrath <roland@frob.com>
8800 * config.gcc (alpha*-*-gnu*): New target configuration.
8801 * config/alpha/gnu.h: New file for it.
8802 * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
8804 2002-04-16 Mark Mitchell <mark@codesourcery.com>
8806 * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
8807 * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
8808 * tree.h (expand_start_stmt_expr): Update prototype.
8809 * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
8810 * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
8811 on the STMT_EXPR created for the inline function.
8813 2002-04-15 Richard Henderson <rth@redhat.com>
8815 * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
8816 config/i386/linux-aout.h, config/i386/linux-oldld.h,
8817 config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
8818 config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
8819 config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
8820 config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
8821 config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
8822 Define __gnu_linux__, not gnu_linux.
8823 * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
8825 2002-04-15 Mark Mitchell <mark@codesourcery.com>
8827 Remove Chill front end.
8828 * gcc.c (default_compilers): Remove Chill entries.
8829 * ch: Remove directory.
8830 * doc/frontends.texi: Remove information about Chill.
8831 * doc/sourcebuild.texi: Likewise.
8832 * doc/standards.texi: Likewise.
8834 2002-04-15 Douglas B Rupp <rupp@gnat.com>
8836 * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
8837 (LONGLONG_STANDALONE): Define.
8839 2002-04-15 David S. Miller <davem@redhat.com>
8841 * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
8842 Call emit_library_call with LCT_NORMAL.
8843 (sparc_initialize_trampoline): Use LCT_foo instead of
8844 magic constant in emit_library_call invocations.
8845 (sparc64_initialize_trampoline): Likewise.
8846 (sparc_profile_hook): Likewise.
8847 * config/sparc/sparc.md: Likewise.
8849 * config/sparc/sparc.c (sparc_extra_constraint_check):
8850 Fix type of argument 'c'.
8851 * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
8854 2002-04-15 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
8856 * diagnostic.h (output_buffer_state): Redefine.
8857 (output_format_decoder): New macro.
8858 (output_prefixing_rule): Likewise.
8859 (output_line_cutoff): Likewise.
8860 (diagnostic_format_decoder): Adjust.
8861 (diagnostic_prefixing_rule): Likewise.
8862 (diagnostic_line_cutoff): Likewise.
8863 (diagnostic_state): Likewise.
8864 (diagnostic_kind_count): Likewise.
8865 (diagnostic_buffer): Now a macro.
8867 * diagnostic.c (diagnostic_buffer): Remove definition.
8868 (output_is_line_wrapping): Adjust.
8869 (set_real_maximum_length): Likewise.
8870 (output_set_maximum_length): Likewise.
8871 (init_output_buffer): Likewise.
8872 (lhd_print_error_function): Likewise.
8873 (output_do_verbatim): Likewise.
8875 2002-04-14 Neil Booth <neil@daikokuya.demon.co.uk>
8877 * cpperror.c (print_location): Don't print include chain
8879 (cpp_begin_message): Update to use DL_ macros.
8880 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
8881 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
8882 cpp_notice, cpp_notice_from_errno): Remove.
8883 (cpp_error, cpp_error_with_line): Update to take a diagnostic
8886 * cppexp.c (CPP_ICE): Remove.
8887 (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
8888 lex, integer_overflow, _cpp_parse_expr): Update.
8889 * cppfiles.c (read_include_file, find_include_file,
8890 handle_missing_header, _cpp_read_file, remap_filename): Update.
8891 * cpphash.h (enum error_type): Remove.
8892 (_cpp_begin_message): Update.
8893 * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
8894 cpp_handle_option, cpp_post_options): Update.
8895 * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
8896 skip_whitespace, parse_identifier, parse_slow, parse_string,
8897 _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
8898 cpp_interpret_charconst): Update.
8899 * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
8900 lex_macro_node, do_undef, glue_header_name, parse_include,
8901 do_include_common, read_flag, do_line, do_linemarker, do_ident,
8902 cpp_register_pragma, do_pragma_once, do_pragma_system_header,
8903 do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
8904 do_elif, do_endif, parse_answer, parse_assertion, do_assert,
8905 _cpp_pop_buffer, do_diagnostic): Update.
8906 * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
8907 DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
8908 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
8909 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
8910 cpp_notice, cpp_notice_from_errno): Remove.
8911 (cpp_error, cpp_error_with_line): Update to take a diagnostic
8914 * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
8915 collect_args, enter_macro_context, save_parameter, parse_params,
8916 _cpp_create_definition, check_trad_stringification,
8917 cpp_macro_definition): Update.
8918 * cppmain.c (cpp_preprocess_file): Update.
8919 * fix-header.c (read_scan_file): Update.
8921 2002-04-14 Andreas Schwab <schwab@suse.de>
8923 * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
8925 2002-04-14 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
8927 * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
8929 2002-04-13 Mark Mitchell <mark@codesourcery.com>
8931 * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
8934 2002-04-13 Hans-Peter Nilsson <hp@axis.com>
8936 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
8938 2002-04-13 Joel Sherrill <joel@OARcorp.com>
8940 * config/sparc/t-elf: Enable v8 multilibs. Impacts
8941 sparc-elf and sparc-rtems targets.
8943 2002-04-13 Mark Mitchell <mark@codesourcery.com>
8945 * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
8946 defined, and __gnu_hurd__ wherever __GNU__ is defined.
8947 * arm/linux-elf.h: Likewise.
8948 * cris/aout.h: Likewise.
8949 * cris/linux.h: Likewise.
8950 * i370/linux.h: Likewise.
8951 * i386/gnu.h: Likewise.
8952 * i386/linux-aout.h: Likewise.
8953 * i386/linux-oldld.h: Likewise.
8954 * i386/linux.h: Likewise.
8955 * i386/linux64.h: Likewise.
8956 * ia64/linux.h: Likewise.
8957 * m68k/linux-aout.h: Likewise.
8958 * m68k/linux.h: Likewise.
8959 * mips/linux.h: Likewise.
8960 * pa/pa-linux.h: Likewise.
8961 * pj/linux.h: Likewise.
8962 * rs6000/sysv4.h: Likewise.
8963 * s390/linux.h: Likewise.
8964 * sh/linux.h: Likewise.
8965 * sparc/linux-aout.h: Likewise.
8966 * sparc/linux.h: Likewise.
8967 * sparc/linux64.h: Likewise.
8968 * xtensa/linux.h: Likewise.
8970 2002-04-13 Richard Sandiford <rsandifo@redhat.com>
8972 * stmt.c (check_unique_operand_names): Expect operand names to
8973 be strings rather than identifiers. Use simple_cst_equal to
8975 (resolve_operand_name_1): Make same identifier to string change here.
8976 * c-parse.in (asm_operand): Convert a named operand into a string.
8977 * cp/parse.y (asm_operand): Likewise.
8979 2002-04-13 Andreas Schwab <schwab@suse.de>
8981 * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
8983 2002-04-12 Mark Mitchell <mark@codesourcery.com>
8985 Revert these changes:
8987 2002-04-06 Mark Mitchell <mark@codesourcery.com>
8990 * stor-layout.c (layout_decl): Reset the RTL for the decl.
8992 2002-04-12 Richard Henderson <rth@redhat.com>
8994 * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
8995 (sparc*-*-solaris): Clean up header files.
8996 * configure.in (AS_SPARC64_FLAG): Error out if can't find it
8997 and plan on generating 64-bit code.
8998 * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
8999 * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
9000 * config/sparc/sol2-sld-64.h: Rename ...
9001 * config/sparc/sol2-bi.h: ... here. Remove the bits that checked
9002 for AS_SPARC64_FLAG not defined.
9003 * config/sparc/sol2-gld-bi.h: New.
9004 * config/sparc/sol2-sld.h: Remove.
9005 * config/sparc/sol26-sld.h: New.
9006 * config/sparc/sol2.h: Tidy comments.
9007 * doc/install.texi: Document sparc-solaris configury changes.
9009 2002-04-12 Richard Henderson <rth@redhat.com>
9011 * recog.c (offsettable_address_p): Match the logic in adjust_address.
9013 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
9014 in 64-bit mode only. Use only for 32-bit or MEDLOW.
9016 2002-04-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9018 * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
9020 Fri Apr 12 15:42:59 2002 Jeffrey A Law (law@redhat.com)
9022 * pa.c (pa_can_combine_p): Call extract_insn before calling
9025 2002-04-12 Douglas B Rupp <rupp@gnat.com>
9027 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
9028 (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
9029 (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
9030 (CPP_PREDEFINES): Handle __declspec.
9031 * config/i386/t-interix (USER_H): Remove.
9033 2002-04-12 DJ Delorie <dj@redhat.com>
9035 * integrate.c (compare_blocks): Make comparisons safe for when
9036 sizeof(int) < sizeof(char *).
9037 (find_block): Likewise.
9039 2002-04-12 Jan Hubicka <jh@suse.cz>
9040 David Edelsohn <edelsohn@gnu.org>
9042 * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
9044 (symbol_ref_operand): New.
9045 * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
9046 * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
9048 2002-04-12 Andreas Schwab <schwab@suse.de>
9050 * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
9051 * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
9052 overrides the definition in config/svr4.h.
9054 2002-04-12 Eric Norum <eric.norum@usask.ca>
9056 * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
9057 config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
9058 config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
9059 config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
9060 config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
9061 config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
9062 config/v850/rtems.h (*-rtems*): Cleanup pass to move common
9063 definitions to config/rtems.h and make the targets more similar.
9065 Fri Apr 12 08:06:54 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9067 * expr.c (expand_assigment): Remove duplicate conversions #ifdef
9068 POINTERS_EXTEND_UNSIGNED.
9069 (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
9070 (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
9072 * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
9075 Fri Apr 12 12:11:26 2002 J"orn Rennecke <joern.rennecke@superh.com>
9077 * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
9078 depends on TARGET_SHMEDIA, not TARGET_SH5.
9080 2002-04-12 Hans-Peter Nilsson <hp@bitrange.com>
9082 * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
9083 For paradoxical (subreg VAR), replace VAR, don't try the subreg.
9085 Fri Apr 12 10:51:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
9087 * sh.c (broken_move): Constant 0. / 1. load is OK if there is
9090 2002-04-12 Andreas Schwab <schwab@suse.de>
9092 * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
9094 2002-04-12 Richard Henderson <rth@redhat.com>
9097 * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
9099 * flow.c (mark_used_reg): Manage reg_cond_dead properly for
9100 modes spanning multiple hard regs.
9102 * recog.c (peephole2_optimize): Rebuild jump labels as needed.
9104 2002-04-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
9106 * pa.c (pa_output_function_prologue): Don't accumulate the total
9107 number of code bytes when using TARGET_64BIT, or gas, SOM and not
9108 the portable runtime.
9109 (output_deferred_plabels): Handle 64bit plabels.
9110 (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
9111 generating pic code using the GAS assembler for object formats that
9112 are not SOM (ie., ELF32 and ELF64).
9113 (output_millicode_call): Check attribute type if attribute length is 28.
9114 Likewise use $PIC_pcrel$0. Only call get_attr_length and
9115 dbr_sequence_length once.
9116 (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
9117 dbr_sequence_length once.
9118 * pa.h (TARGET_SOM): Define if not defined.
9119 * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
9120 with GAS and not SOM.
9121 (jump, call_internal_reg, call_value_internal_reg): Likewise.
9122 * som.h (OBJ_SOM): Rename to TARGET_SOM. Undefine before defining.
9124 2002-04-11 David O'Brien <obrien@FreeBSD.org>
9126 * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
9127 (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
9128 (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
9129 DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
9130 elfos.h and dbxelf.h values are fine now.
9131 * config/i386/freebsd.h, config/alpha/freebsd.h
9132 (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
9134 2002-04-11 David O'Brien <obrien@FreeBSD.org>
9136 * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
9137 or set Acpu or Amachine. Reformat.
9138 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
9140 (LINK_SPEC): Do not need to undef.
9141 * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
9142 * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
9143 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
9145 * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
9146 (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
9147 (LINK_SPEC): Do not need to undef.
9148 (DONT_USE_BUILTIN_SETJMP): Do not define.
9149 * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
9150 (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine. Remove -Dia64.
9151 (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
9152 Remove trailing spaces.
9153 * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
9154 __ELF__, or set Acpu or Amachine. Reformat.
9155 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
9158 2002-04-11 David O'Brien <obrien@FreeBSD.org>
9160 * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
9161 all other *-*-freebsd* targets.
9163 2002-04-11 Richard Henderson <rth@redhat.com>
9165 * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
9167 2002-04-11 David O'Brien <obrien@FreeBSD.org>
9169 * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
9170 Include {cpu}/{cpu}.h thru tm_file.
9171 (alpha*-*-linux*ecoff): Remove target.
9172 * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
9173 (LINK_SPEC): Remove, is not OS independent.
9174 * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
9175 (LINK_SPEC): Do not need to #undef any longer.
9176 * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
9178 * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
9180 (LINK_SPEC): Moved here from alpha/elf.h.
9181 * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
9183 * config/alpha/linux-ecoff.h: Remove.
9184 * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
9185 (CPP_SPEC): Define _POSIX_SOURCE as needed.
9186 (CPP_SUBTARGET_SPEC): Do not define.
9187 (LINK_SPEC): Do not need to #undef any longer.
9188 * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
9189 * config/alpha/vms.h: Likewise.
9191 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
9193 * doc/extend.texi: Remove old claim that typedefs cannot have
9194 an alignment attribute.
9196 2002-04-11 Jakub Jelinek <jakub@redhat.com>
9198 PR optimization/6177
9199 * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
9200 bitpos is 0 and bitsize CONCAT size.
9202 2002-04-11 Jakub Jelinek <jakub@redhat.com>
9205 * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
9207 2002-04-10 David O'Brien <obrien@FreeBSD.org>
9209 * config/alpha/freebsd.h: Minor reformatting.
9210 (CPP_SPEC): Define ELF and add cpp_subtarget.
9211 (ASM_SPEC): No longer needed.
9213 2002-04-11 Richard Henderson <rth@redhat.com>
9215 * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
9216 (movdi_insn_sp32_v9): Likewise. Only allow stx with aligned memory.
9217 (dimode mem/zero splitter): New.
9219 2002-04-11 Hans-Peter Nilsson <hp@axis.com>
9221 * config/cris/cris.c (cris_override_options): Tweak error message
9222 for PIC not implemented.
9224 * config/cris/cris.h: Tweak comments related to parameter-passing.
9226 * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
9228 2002-04-10 Richard Henderson <rth@redhat.com>
9230 * except.c (add_ehl_entry): Allow duplicates after landing pad
9233 2002-04-10 David Edelsohn <edelsohn@gnu.org>
9235 * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
9237 2002-04-10 Toon Moene <toon@moene.indiv.nluug.nl>
9239 * c-decl.c (c_init_decl_processing): Move generation of
9240 decls for g77_integer_type_node and friends from here ...
9241 * c-common.c (c_common_nodes_and_builtins): ... to here.
9243 2002-04-10 Ulrich Weigand <uweigand@de.ibm.com>
9245 * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
9246 is only used as frame pointer when frame_pointer_needed is true.
9248 2002-04-10 Richard Earnshaw <rearnsha@arm.com>
9251 * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
9252 for the fact that the pool entry uses two words.
9253 (movdf_hard_insn): Similarly. Also, ADR instruction can span
9255 (movdf_soft_insn): Similarly.
9256 (movxf_hard_insn): Adjust neg_pool_range attribute to allow
9257 for the fact that the pool entry uses three words.
9259 2002-04-10 Richard Sandiford <rsandifo@redhat.com>
9261 * config/mips/mips.c (mips_va_arg): When using the struct version
9262 of the EABI va_list, allow arguments in the register save area to
9263 take up less room than a stack argument.
9265 2002-04-10 Richard Henderson <rth@redhat.com>
9267 * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
9268 if EXPAND_INITIALIZER.
9270 2002-04-09 Richard Henderson <rth@redhat.com>
9272 * config/alpha/alpha.md (movdi_er_maybe_g): New.
9273 * config/alpha/alpha.c (alpha_expand_mov): Use it.
9275 2002-04-10 Alan Modra <amodra@bigpond.net.au>
9277 PR optimization/6233
9278 * rtlanal.c (pure_call_p): New function.
9279 * rtl.h (pure_call_p): Declare.
9280 * loop.c (prescan_loop): Use it to set has_nonconst_call.
9281 * gcse.c (store_killed_in_insn): Use pure_call_p here too.
9283 2002-04-09 Eric Christopher <echristo@redhat.com>
9285 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
9286 information to .comm directive.
9288 2002-04-09 Richard Henderson <rth@redhat.com>
9291 * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
9293 2002-04-09 Richard Henderson <rth@redhat.com>
9295 * basic-block.h (flow_delete_block_noexpunge): Declare.
9296 (expunge_block_nocompact): Declare.
9297 * cfg.c (expunge_block_nocompact): Split out from ...
9298 (expunge_block): ... here.
9299 * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
9300 (flow_delete_block_noexpunge): Split out from ...
9301 (flow_delete_block): ... here.
9302 * cfgcleanup.c (delete_unreachable_blocks): Compact while
9303 removing dead blocks.
9304 * except.c (exception_handler_labels): Remove.
9305 (exception_handler_label_map): New.
9306 (struct eh_region): Add aka member.
9307 (mark_ehl_map_entry, mark_ehl_map, free_region): New.
9308 (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
9309 (for_each_eh_label, for_each_eh_label_1): New.
9310 (init_eh): Register exception_handler_label_map.
9311 (free_eh_status): Use free_region.
9312 (find_exception_handler_labels): Use the map, not the list.
9313 (remove_exception_handler_label): Likewise.
9314 (maybe_remove_eh_handler): Likewise.
9315 (remove_eh_handler): Use the region aka bitmap.
9316 * except.h (exception_handler_labels): Remove.
9317 (for_each_eh_label): Declare.
9318 * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
9319 * loop.c (invalidate_loops_containing_label): New.
9320 (find_and_verify_loops): Use it. Use for_each_eh_label.
9321 * sched-rgn.c (is_cfg_nonregular): Use
9322 current_function_has_exception_handlers.
9324 2002-04-09 Richard Henderson <rth@redhat.com>
9326 * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
9327 sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
9328 Do not return changed status.
9329 (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
9330 sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
9331 New functions that do return changed status.
9332 * sbitmap.h: Update decls.
9333 * gcse.c, lcm.c: Use _cg functions as needed.
9335 Tue Apr 9 19:15:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
9337 * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
9338 (sh64-*-elf*, sh-*-rtemself*): Likewise.
9339 * config/sh/embed_bb.c: New file.
9340 * config/sh/embed-elf.h: New file.
9341 * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
9342 if -m[12345]* option is given. Don't use subtarget_cpp_ptr_spec.
9343 (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
9345 (SUBTARGET_CPP_PTR_SPEC): Don't define.
9346 (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
9347 Add subtarget_asm_endian_spec.
9348 (ASM_SPEC): Use subtarget_asm_endian_spec.
9349 (SUBTARGET_ASM_ENDIAN_SPEC): Define.
9350 (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
9351 (WCHAR_UNSIGNED): Define.
9352 (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
9353 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
9354 (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
9356 * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
9357 (sh_adjust_cost): Likewise.
9358 sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
9360 (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
9361 (WCHAR_TYPE_SIZE): Likewise.
9362 (ASM_SPEC): Use subtarget_asm_endian_spec.
9363 (SH_ELF_WCHAR_TYPE): #undef/ #define.
9364 (MAX_WCHAR_TYPE_SIZE): Don't #undef.
9365 * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
9366 (MAX_WCHAR_TYPE_SIZE): Don't #define .
9367 (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
9368 (USER_LABEL_PREFIX): Don't #undef /#define .
9369 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
9370 * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
9371 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
9372 (ASM_SPEC): Likewise.
9373 (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
9374 (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
9375 * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
9376 (LIB2FUNCS_EXTRA): Define.
9377 * t-sh64 (LIB2FUNCS_EXTRA): Define.
9378 * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
9379 (LIB1ASMFUNCS_CACHE): Define.
9380 (LIB2FUNCS_EXTRA): Redefine empty.
9382 2002-04-08 Richard Henderson <rth@redhat.com>
9384 * reorg.c (get_branch_condition): Use reversed_comparison_code.
9386 2002-04-09 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9388 * config/m68hc11/larith.asm (__map_data_section): Fix condition
9389 and optimize for size.
9390 (__do_global_ctors): Fix pointer comparison.
9391 (__do_global_dtors): Likewise.
9393 2002-04-09 David S. Miller <davem@redhat.com>
9395 * config/sparc/sparc.c (sparc_extra_constraint_check): New
9396 function, implementing EXTRA_CONSTRAINTS. For memory constraints,
9397 allow reloading pseudos.
9398 * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
9399 * config/sparc/sparc-protos.h: Declare it.
9401 * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
9402 unsigned comparison warning.
9403 (output_restore_regs): Mark leaf_function as unused.
9405 Tue Apr 9 09:35:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9407 * expr.c (is_aligning_offset): New function.
9408 (expand_expr, case COMPONENT_EXPR): Call it.
9410 2002-04-08 David S. Miller <davem@redhat.com>
9413 * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
9415 Make init_priority work on Sparc when using GNU ld.
9416 * config/sparc/linux.h, config/sparc/linux64.h,
9417 config/sparc/netbsd-elf.h, config/sparc/freebsd.h
9418 (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
9419 * config/sparc/sol2-gld.h: New file to do the same.
9420 * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
9421 sparc/sol2-gld.h to tm_file.
9423 PR optimization/4328
9424 * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
9425 * doc/md.texi: Document it.
9426 * config/sparc/sparc.md (movdi_insn_sp64_novis,
9427 movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
9428 movdf_insn_v9only_vis, movdf_insn_sp64_novis,
9429 movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
9430 * config/sparc/sparc.c (mem_min_alignment): Fix comment.
9432 2002-04-08 Andreas Jaeger <aj@suse.de>
9434 * stmt.c (expand_asm_operands): Revert last patch from Richard
9437 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
9439 * doc/contrib.texi (Contributors): Add John David Anglin and Loren
9440 J. Rittle (the latter also to Testers). Update David O'Brien's entry.
9442 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
9444 * doc/contrib.texi (Contributors): Add David O'Brien.
9446 2002-04-08 Alan Modra <amodra@bigpond.net.au>
9448 * configure.in (auto-build.h): Use target_alias and build_alias
9449 when running configure.
9450 (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
9451 (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
9452 * configure: Regenerate.
9454 2002-04-07 David S. Miller <davem@redhat.com>
9456 * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
9458 2002-04-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
9461 * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
9462 generating 32-bit pic code.
9464 2002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
9466 * cppinit.c (cpp_create_reader): Initialize
9467 discard_comments_in_macro_exp.
9468 (COMMAND_LINE_OPTIONS): Add "-CC" option.
9469 (cpp_handle_option): Handle "-CC" option.
9470 * cpplex.c (save_comment): If saving a C++ comment in
9471 a directive, convert it to a C comment.
9472 (_cpp_lex_direct): Pass second comment start character to
9473 save_comment to indicate comment type.
9474 * cpplib.c (_cpp_handle_directive): If processing
9475 a "#define" directive and discard_comments_in_macro_exp
9476 is false, re-enable saving of comments.
9477 (lex_macro_node): If discard_comments_in_macro_exp is false,
9478 discard any comments before the macro identifier.
9479 * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
9481 * cppmacro.c (cpp_get_token): If expanding a macro while
9482 processing a directive, discard any comments we might encounter.
9483 (parse_params): If discard_comments_in_macro_exp is false,
9484 ignore comments in the macro parameter list.
9485 * gcc.c (cpp_unique_options): Add "-CC" option.
9486 (option_map): Map "--comments-in-macros" to "-CC".
9487 * doc/cppopts.texi: Document "-CC" option.
9488 * f/lang-specs.h: Add "-CC" option.
9489 * testsuite/gcc.dg/cpp/maccom1.c: New test.
9490 * testsuite/gcc.dg/cpp/maccom2.c: New test.
9491 * testsuite/gcc.dg/cpp/maccom3.c: New test.
9492 * testsuite/gcc.dg/cpp/maccom4.c: New test.
9493 * testsuite/gcc.dg/cpp/maccom5.c: New test.
9494 * testsuite/gcc.dg/cpp/maccom6.c: New test.
9496 2002-04-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
9499 * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
9501 2002-04-06 Mark Mitchell <mark@codesourcery.com>
9504 * stor-layout.c (layout_decl): Reset the RTL for the decl.
9507 * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
9508 RTX_UNCHANGING_P for the functions arguments when a tail call
9511 2002-04-06 Jason Merrill <jason@redhat.com>
9513 * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
9514 (parse_options_and_default_flags): Set them appropriately.
9515 * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
9517 2002-04-06 Hans-Peter Nilsson <hp@bitrange.com>
9519 * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
9522 * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
9525 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
9526 types come in by-reference. Fix typo in comment.
9528 2002-04-05 David S. Miller <davem@redhat.com>
9530 * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
9531 * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
9532 sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
9533 {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
9535 2002-04-05 David S. Miller <davem@redhat.com>
9537 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
9538 are not going to emit return instructions, emit at least a nop
9539 for the sake of sane backtraces.
9541 2002-04-05 Richard Henderson <rth@redhat.com>
9543 * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
9545 2002-04-05 Jakub Jeilnek <jakub@redhat.com>
9547 * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
9549 2002-04-05 Alexandre Oliva <aoliva@redhat.com>
9551 * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
9552 ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
9553 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
9555 2002-04-05 Andreas Schwab <schwab@suse.de>
9557 * c-convert.c: Include c-common.h.
9558 * Makefile.in (c-convert.o): Updated.
9560 2002-04-05 Jakub Jelinek <jakub@redhat.com>
9562 * mklibgcc.in: Use separate libgcc.map for each multilib.
9563 * Makefile.in (distclean): Don't remove libgcc.map here.
9565 2002-04-05 Jakub Jelinek <jakub@redhat.com>
9567 * Makefile.in (s-mlib): Handle --disable-multilib by separate
9568 genmultilib invocation.
9570 2002-04-04 Richard Sandiford <rsandifo@redhat.com>
9572 * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
9573 to avoid clash with Irix header file sys/ucontext.h. Rename gp_regs
9574 to num_gprs for symmetry.
9575 * config/mips/mips.c: Adjust accordingly.
9577 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
9579 * c-common.c (truthvalue_conversion): Rename, update.
9580 * c-common.h (c_common_truthvalue_conversion): New.
9581 * c-convert.c (convert): Update.
9582 * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
9583 * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
9584 * c-typeck.c (build_binary_op, build_unary_op,
9585 build_conditional_expr): Update.
9586 * fold-const.c (constant_boolean_node, fold): Use langhook.
9587 * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
9588 * langhooks.h (struct lang_hooks): New hook.
9589 * stmt.c (expand_decl_cleanup): Use langhook.
9590 * tree.h (truthvalue_conversion): Remove.
9592 * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
9594 2002-04-05 Alan Modra <amodra@bigpond.net.au>
9596 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
9597 Add rules to make null object file.
9599 2002-04-04 Jim Blandy <jimb@redhat.com>
9601 * cppmacro.c (cpp_macro_definition): Do not emit spaces after
9602 macro formal parameter names.
9604 2002-04-04 David S. Miller <davem@redhat.com>
9606 * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
9608 2002-04-04 Richard Henderson <rth@redhat.com>
9611 * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
9612 Support copies into and out of memory. Don't accept allows_reg
9613 and allows_mem as gospel.
9615 2002-04-04 Richard Henderson <rth@redhat.com>
9618 * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
9619 (write_dependence_p): Likewise.
9621 2002-04-04 Richard Henderson <rth@redhat.com>
9623 * predict.c (estimate_bb_frequencies): Do frequency calculation
9624 with a volatile temporary.
9626 2002-04-04 Ulrich Weigand <uweigand@de.ibm.com>
9628 * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
9630 2002-04-04 Jakub Jelinek <jakub@redhat.com>
9633 * final.c (final_start_function): Don't bump profile_label_no here...
9634 (final_end_function): ...but here.
9636 2002-04-04 Jakub Jelinek <jakub@redhat.com>
9638 * config/sparc/sparc.md (pic): New attribute.
9639 (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
9641 (split after do_builtin_setjmp_setup): New.
9643 2002-04-04 Jakub Jelinek <jakub@redhat.com>
9646 * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
9649 2002-04-04 Jakub Jelinek <jakub@redhat.com>
9651 * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
9652 UNITS_PER_WORD for zero sized aggregates.
9654 2002-04-03 David S. Miller <davem@redhat.com>
9656 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
9657 one-character spec for this, just use %(link_gcc_c_sequence).
9659 2002-04-03 David S. Miller <davem@redhat.com>
9661 * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
9664 2002-04-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
9666 * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
9667 (DWARF_FRAME_RETURN_COLUMN): Move.
9668 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
9669 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
9670 * pa.c (except.h, predict.h): Include.
9672 (store_reg_modify, set_reg_plus_d): Revise prototypes.
9673 (output_ascii): Add cast.
9674 (store_reg_modify): Revise to add frame notes.
9675 (set_reg_plus_d): Likewise.
9676 (compute_frame_size): Include space for eh data registers in frame if
9677 the current function calls eh_return.
9678 (hppa_expand_prologue): Ensure register %r2 is saved if the current
9679 function calls eh_return. Save eh data registers if the current
9680 function calls eh_return. Fix code to add frame notes. Emit
9681 blockage to prevent insns with frame notes being scheduled in the
9682 delay slot of calls.
9683 (hppa_expand_epilogue): Restore eh data registers and do final stack
9684 adjustment if the current function calls eh_return. Don't add frame
9686 (output_call): Revise for change in length of call insn. Don't do
9687 return pointer adjustment for an unconditional jump in the delay slot
9688 of a call when using frame notes.
9689 * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
9690 (EH_RETURN_HANDLER_RTX): Use saved value on stack.
9691 (ARG_POINTER_CFA_OFFSET): Define.
9692 * pa.md (return_external_pic): New pattern.
9693 (prologue): Correct formatting. Use return_external_pic if current
9694 function calls eh_return.
9695 (call_internal_symref, call_value_internal_symref,
9696 sibcall_internal_symref, sibcall_value_internal_symref): Change default
9697 lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
9699 (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
9701 * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
9702 list of targets to check using "nop" insn.
9703 * configure: Rebuilt.
9705 2002-04-04 Alan Modra <amodra@bigpond.net.au>
9707 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
9709 2002-04-03 David S. Miller <davem@redhat.com>
9711 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
9712 library sequence passed to the linker.
9713 (LINK_COMMAND_SPEC): Use it.
9714 * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
9715 a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
9716 * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
9718 2002-04-03 Jason Merrill <jason@redhat.com>
9720 * except.c (struct eh_status): Remove protect_list.
9721 (begin_protect_partials, end_protect_partials): Remove.
9722 (add_partial_entry): Remove.
9723 * except.h: Remove prototypes.
9725 * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
9726 expand_decl_cleanup_eh.
9729 * tree.h (CLEANUP_EH_ONLY): New macro.
9730 * stmt.c (expand_decl_cleanup_eh): New fn.
9731 (expand_cleanups): Check CLEANUP_EH_ONLY.
9732 * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
9733 Use expand_decl_cleanup_eh.
9734 (expand_stmt): Adjust.
9735 * c-common.h: Adjust prototype.
9737 2002-04-04 Hans-Peter Nilsson <hp@axis.com>
9739 * config/cris/cris.c (cris_target_asm_function_prologue): Cast
9740 uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
9741 (cris_target_asm_function_epilogue): Ditto.
9742 (cris_initial_frame_pointer_offset): Ditto.
9743 (cris_simple_epilogue): Ditto.
9744 (cris_expand_builtin_va_arg): Variable-size types come in
9747 2002-04-03 David S. Miller <davem@redhat.com>
9749 * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
9751 (set_fast_math): Correct 'fsr' type.
9753 2002-04-03 Richard Henderson <rth@redhat.com>
9756 * langhooks.h (lang_hooks.decls.warn_unused_global): New.
9757 * toplev.c (check_global_declarations): Use it.
9758 * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
9759 (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
9760 (LANG_HOOKS_DECLS): Add it.
9761 * langhooks.c (lhd_warn_unused_global_decl): New.
9762 * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
9763 * c-objc-common.c (c_warn_unused_global_decl): New.
9764 * c-tree.h (c_warn_unused_global_decl): Declare.
9765 * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
9767 2002-04-03 Neil Booth <neil@daikokuya.demon.co.uk>
9769 * langhooks-def.h (lhd_set_decl_assembler_name,
9770 LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
9771 (LANG_HOOKS_INITIALIZER): Update.
9772 * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
9773 * langhooks.h (struct lang_hooks): New hook.
9774 * tree.c (set_decl_assembler_name): Move to langhooks.c.
9775 (lang_set_decl_assembler_name): Remove.
9776 (init_obstacks): Don't set hook.
9777 (decl_assembler_name): New function.
9778 * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
9779 (decl_assembler_name): New.
9780 (lang_set_decl_assembler_name): Remove.
9782 2002-04-03 Jakub Jelinek <jakub@redhat.com>
9784 * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
9785 works properly with .hidden symbols.
9786 * configure: Rebuilt.
9787 * config.in: Rebuilt.
9788 * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
9789 DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
9790 properly with .hidden symbols.
9792 2002-04-03 Jakub Jelinek <jakub@redhat.com>
9795 * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
9798 2002-04-03 Richard Henderson <rth@redhat.com>
9801 * sched-rgn.c (sets_likely_spilled): New.
9802 (sets_likely_spilled_1): New.
9803 (add_branch_dependences): Use it.
9805 2002-04-02 Richard Henderson <rth@redhat.com>
9808 * loop.h (LOOP_FIRST_PASS): New.
9809 * loop.c (strength_reduce): Mind it when deciding to unroll.
9810 * toplev.c (rest_of_compilation): Set it.
9812 2002-04-02 David S. Miller <davem@redhat.com>
9814 * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
9815 mems_ok_for_ldd_peep when the order of the loads being examined
9817 * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
9818 existing comment to increase comprehension of this situation.
9820 2002-04-02 Zack Weinberg <zack@codesourcery.com>
9822 * config/sh/sh.md: Don't use union real_extract.
9824 2002-04-02 Richard Henderson <rth@redhat.com>
9826 * libgcc2.c (__bb_exit_func): Revert 03-31 change.
9828 2002-04-02 David O'Brien <obrien@FreeBSD.org>
9830 * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
9831 i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
9832 i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
9833 i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
9834 i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
9835 i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
9836 i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
9837 i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
9838 i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
9839 i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
9840 i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
9841 i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
9842 i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
9843 i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
9844 Include as many configury headers via tm_file as possible. This
9845 includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
9846 * config/openbsd-oldgas.h: New file.
9847 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
9848 config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
9849 config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
9850 config/i386/i386-coff.h, config/i386/i386-interix.h,
9851 config/i386/iscdbx.h, config/i386/linux-aout.h,
9852 config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
9853 config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
9854 config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
9855 config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
9856 config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
9857 config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
9858 config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
9859 config/i386/vxi386.h: Do not directly include configury headers.
9860 * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
9861 Directly include configury headers that are no longer automatically
9862 included by the above headers.
9863 * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
9864 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
9865 config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
9866 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
9867 config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
9868 config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
9869 config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
9870 (TARGET_VERSION): Define.
9871 * config/i386/beos-elf.h, config/i386/freebsd.h,
9872 config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
9873 config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
9874 config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
9875 config/i386/sco5.h, config/i386/sysv4.h
9876 (TARGET_VERSION): Do not need to protect.
9877 * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
9878 * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
9879 config/i386/freebsd-aout.h, config/i386/i386-aout.h,
9880 config/i386/i386-interix.h, config/i386/linux-aout.h,
9881 config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
9882 config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
9883 (YES_UNDERSCORES): Do not define - not needed.
9884 * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
9885 ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
9886 USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
9887 * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
9888 (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
9889 USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
9890 * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
9891 * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
9893 2002-04-02 Eric Botcazou <ebotcazou@multimania.com>
9894 Richard Henderson <rth@redhat.com>
9897 * function.c (assign_temp): Accept either type or decl argument.
9898 Detect variables whose size is too large to fit into an integer.
9899 * stmt.c (expand_decl): Pass the decl, not the type.
9901 2002-04-02 David O'Brien <obrien@FreeBSD.org>
9903 * protoize.c: Match include directory usage with cppdefault.c.
9905 2002-04-03 Jeffrey A Law (law@redhat.com)
9906 Hans-Peter Nilsson <hp@bitrange.com>
9908 * combine.c (simplify_comparison): Avoid narrowing a comparison
9909 with a paradoxical subreg when doing so would drop signficant bits.
9911 2002-04-02 Steve Ellcey <sje@cup.hp.com>
9913 * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
9914 if POINTERS_EXTEND_UNSIGNED is defined.
9916 2002-04-02 Richard Henderson <rth@redhat.com>
9919 * local-alloc.c (contains_replace_regs): LO_SUM may contain
9922 2002-04-02 Richard Henderson <rth@redhat.com>
9924 * doc/standards.texi: Document required freestanding libc entry points.
9926 2002-04-02 Alan Modra <amodra@bigpond.net.au>
9928 * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
9929 associated splitter. Remove MQ constraint.
9930 (ctrdi_internal4): Correct CCmode clobber.
9932 2002-04-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
9934 * milli64.S ($$dyncall): New function.
9935 * t-linux (LIB1ASMFUNCS): Revise module list.
9936 (LIB1ASMSRC): Use pa/milli64.S.
9938 2002-04-02 Richard Henderson <rth@redhat.com>
9940 * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
9941 rename solaris_sys_varargs_h.
9943 Tue Apr 2 06:47:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9945 * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
9946 the same mode as its component.
9948 2002-04-02 Richard Henderson <rth@redhat.com>
9951 * final.c (this_is_asm_operands): Export.
9952 * output.h (this_is_asm_operands): Declare.
9953 * config/i386/i386.c (print_operand): Error odd asm operands.
9955 2002-04-02 Richard Henderson <rth@redhat.com>
9958 * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
9960 2002-04-01 Richard Henderson <rth@redhat.com>
9963 * fixinc/inclhack.def (solaris_sys_varargs_h): New.
9964 * fixinc/fixincl.x: Rebuild.
9966 2002-04-01 Richard Henderson <rth@redhat.com>
9968 * config/ia64/unwind-ia64.c: Include ia64intrin.h.
9969 (atomic_alloc, atomic_free): New.
9970 (SIZE, MASK_FOR, PTR_IN): New.
9971 (emergency_reg_state, emergency_reg_state_free): New.
9972 (emergency_labeled_state, emergency_labeled_state_free): New.
9973 (reg_state_alloced, labeled_state_alloced): New.
9974 (alloc_reg_state, free_reg_state): New.
9975 (alloc_label_state, free_label_state, free_label_states): New.
9976 (push, pop, dup_state_stack, free_state_stack): Use them.
9977 (desc_label_state): Likewise.
9978 (uw_frame_state_for): Free label states and state stack.
9979 (uw_update_reg_address): Eliminate warnings.
9981 2002-04-01 Vladimir Makarov <vmakarov@redhat.com>
9983 * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
9984 ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
9986 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
9988 * c-decl.c (grokdeclarator): Update.
9989 * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
9990 * c-tree.h (c_mark_addressable): New.
9991 * c-typeck.c (default_function_array_conversion, build_unary_op,
9992 build_array_ref, convert_for_assignment): Update.
9993 (mark_addressable): Rename.
9994 * calls.c (try_to_integrate, expand_call): Use langhook.
9995 * expr.c (expand_expr): Use langhook.
9996 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
9997 * langhooks.h (struct lang_hooks): New hook.
9998 * stmt.c (expand_asm_operands): Use langhook.
9999 * tree.h (mark_addressable): Remove.
10001 * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
10003 2002-04-01 Bob Wilson <bob.wilson@acm.org>
10005 * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
10006 in previous change.
10008 2002-04-01 Bob Wilson <bob.wilson@acm.org>
10010 * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
10011 for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
10013 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
10015 * c-common.c (unsigned_conversion_warning, convert_and_check,
10016 unsigned_type, signed_type, shorten_compare,
10017 c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
10018 (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
10019 * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
10021 * c-decl.c (grokdeclarator): Update.
10022 * c-format.c (check_format_types): Update.
10023 * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
10024 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
10025 * c-typeck.c (build_binary_op, convert_for_assignment): Update.
10026 * convert.c (convert_to_integer): Use new hooks.
10027 * expmed.c (make_tree): Use new hooks.
10028 * expr.c (store_expr): Use new hooks.
10029 * fold-const.c (operand_equal_for_comparison_p, build_range_check,
10030 all_ones_mask_p, unextend, fold): Use new hooks.
10031 * langhooks.h (struct lang_hooks_for_types): New hooks.
10032 * tree.h (signed_or_unsigned_type, signed_type,
10033 unsigned_type): Remove.
10035 * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
10036 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
10038 2002-03-31 Richard Henderson <rth@redhat.com>
10040 * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
10041 (desc_frgr_mem): Fix reference to f16-f31.
10043 2002-03-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10045 * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
10046 RTVEC_ELT): Const-ify.
10047 * varray.h (VARRAY_CHECK): Const-ify.
10048 * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
10049 ggc_mark_rtvec, ggc_mark): Const-ify.
10051 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
10053 * diagnostic.c: Include langhooks-def.h.
10054 * Makefile.in (diagnostic.o): Update.
10056 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
10058 * c-common.c (c_unsafe_for_reeval): Rename.
10059 * c-common.h (c_unsafe_for_reeval): Rename.
10060 * c-decl.c (finish_incomplete_decl): Rename.
10061 (c_init_decl_processing): Don't set langhook.
10062 * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
10063 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
10064 * c-objc-common.c (c_objc_common_init): Don't set langhook.
10065 * c-tree.h (finish_incomplete_decl): Rename.
10066 * langhooks-def.h (lhd_unsafe_for_reeval): New.
10067 (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
10068 (LANG_HOOKS_INITIALIZER): Update.
10069 * langhooks.c (lhd_unsafe_For_reeval): New.
10070 * langhooks.h (struct langhooks): New hooks.
10071 * toplev.c (incomplete_decl_finalize_hook): Remove.
10072 (wrapup_global_declarations): Update.
10073 * tree.c (lang_unsafe_for_reeval): Remove.
10074 (unsafe_for_reeval): Update.
10075 * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
10078 * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
10079 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
10081 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
10083 * diagnostic.c (print_error_function): Remove.
10084 (default_print_error_function): Rename.
10085 (report_error_function): Update.
10086 * diagnostic.h (print_error_function): Remove.
10087 (default_print_error_function): Remove.
10088 * langhooks-def.h (struct diagnostic_context): Predeclare.
10089 (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
10090 (LANG_HOOKS_INITIALIZER): Update.
10091 * langhooks.h (struct diagnostic context): Predeclare.
10092 (struct lang_hooks): New hook.
10094 2002-03-31 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10096 * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
10097 (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
10099 (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
10100 * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
10101 of PIC_OFFSET_TABLE_REGNUM thruout.
10102 * config/rs6000/rs6000.md: Likewise.
10103 * config/rs6000/darwin.h: Likewise.
10105 Sun Mar 31 14:43:24 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10107 * emit-rtl.c (adjust_address_1, offset_address): Cast value to
10108 unsigned HOST_WIDE_INT, not unsigned int.
10110 2002-03-31 Jakub Jelinek <jakub@redhat.com>
10112 PR middle-end/6096, middle-end/6098, middle-end/6099
10113 * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
10115 (fill_slots_from_thread): Likewise.
10117 2002-03-31 Jakub Jelinek <jakub@redhat.com>
10119 * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
10120 floating fields in float regs.
10121 (function_arg_record_value_2): Likewise.
10123 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
10125 * config/mmix/mmix.md (define_constants): Remove misleading
10126 FIXME. Add MMIX_fp_rO_OFFSET.
10127 ("nonlocal_goto_receiver"): Don't have stack-frame address of
10128 saved rO as part of the pattern. Remove FIXME.
10129 ("*nonlocal_goto_receiver_expanded"): Similar. Generate address
10130 here, at output-time.
10132 2002-03-31 Jakub Jelinek <jakub@redhat.com>
10135 * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
10137 (output_v9branch): Likewise.
10139 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
10141 * gcc.c: Revert previous patch for now.
10142 * config/i386/djgpp.h: Likewise.
10144 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
10146 * config/mmix/crti.asm (_init): Register _fini with atexit.
10147 * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
10149 2002-03-31 Richard Henderson <rth@redhat.com>
10152 * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
10153 (ASM_OUTPUT_DEF_FROM_DECLS): New.
10155 2002-03-31 Richard Henderson <rth@redhat.com>
10157 * libgcc2.c (__bb_exit_func): Make static.
10159 * config/alpha/alpha.md (trap): New.
10161 2002-03-31 Richard Henderson <rth@redhat.com>
10163 * builtins.c (expand_builtin_va_arg): Give warnings not errors for
10164 promoted argument types; build trap.
10165 (expand_builtin_trap): New.
10166 (expand_builtin): Use it.
10167 * stmt.c (expand_nl_goto_receivers): Likewise.
10168 * expr.h (expand_builtin_trap): Declare.
10169 * libfuncs.h (LTI_abort, abort_libfunc): New.
10170 * optabs.c (init_optabs): Init abort_libfunc.
10172 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
10174 * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
10175 (LINK_COMMAND_SPEC): ... from here.
10176 (init_gcc_specs): Duplicate it here too, omitting
10177 shared_name in the second copy.
10178 (init_spec): Test for duplicate
10179 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
10181 2002-03-30 David S. Miller <davem@redhat.com>
10183 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
10184 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
10186 2002-03-30 Roger Sayle <roger@eyesopen.com>
10187 Richard Henderson <rth@redhat.com>
10189 * regmove.c (combine_stack_adjustments_for_block): Avoid
10190 emitting a stack adjustment of zero bytes. Let delete_insn
10193 2002-03-30 Richard Henderson <rth@redhat.com>
10195 * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
10196 (sparc_emitting_epilogue): New.
10197 (leaf_label, output_return, sparc_return_peephole_ok): Remove.
10198 * config/sparc/sparc-protos.h: Update.
10199 * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
10200 (TARGET_SWITCHES): Update.
10201 * config/sparc/sparc.md (return): Remove.
10202 (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
10203 * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
10204 config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
10205 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
10206 config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
10207 config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
10208 config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
10209 Remove MASK_EPILOGUE.
10210 * doc/invoke.texi: Update.
10212 2002-03-30 Daniel Berlin <dan@dberlin.org>
10214 * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
10215 CPP will start the file for us.
10217 2002-03-30 Richard Henderson <rth@redhat.com>
10220 * config/ia64/ia64.c (group_barrier_needed_p): Special case
10221 prologue_allocate_stack.
10222 (ia64_single_set): Use insn codes for recognition of special
10223 cases, not rtl matching.
10224 * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
10226 Sat Mar 30 23:48:41 CET 2002 Jan Hubicka <jh@suse.cz>
10228 * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
10230 2002-03-30 Richard Henderson <rth@redhat.com>
10233 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
10234 or -fomit-frame-pointer with profiling.
10235 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
10236 (FUNCTION_PROFILER): Do nothing.
10237 (PROFILE_HOOK): New.
10238 * config/sparc/sparc.c (sparc_override_options): Don't check
10239 code models for profiling.
10240 (sparc_function_profiler): Remove.
10241 (sparc_profile_hook): New.
10242 * config/sparc/sparc-protos.h: Update.
10244 2002-03-30 Jakub Jelinek <jakub@redhat.com>
10246 PR optimization/6086
10247 * combine.c (combine_simplify_rtx): If simplify_rtx failed because
10248 of SUBREG of volatile MEM or because the MEM was mode dependent,
10249 return CLOBBER instead of unmodified SUBREG.
10251 Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
10253 * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
10254 when not optimizing.
10256 * toplev.c (rest_of_compilation): Cann mark_constant_function
10257 only when optimizing.
10259 * flow.c (calculate_global_regs_live): Ensure that all AUX fields
10262 * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
10263 (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
10264 (try_optimize_cfg): clear all AUX fields.
10266 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
10267 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
10268 (ix86_address_cost): Be prepared for SUBREGed registers.
10269 (legitimate_address_p): Accept SUBREGed registers.
10271 2002-03-29 Richard Henderson <rth@redhat.com>
10274 * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
10276 2002-03-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10278 * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
10279 for aggregate and TFmode types.
10281 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
10283 * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
10285 2002-03-29 Richard Henderson <rth@redhat.com>
10288 * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
10289 * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
10291 2002-03-29 Richard Henderson <rth@redhat.com>
10294 * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
10295 (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
10296 * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
10297 * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
10299 * docs/invoke.texi: Update -mno-fancy-math-387 docs.
10301 2002-03-29 Dale Johannesen <dalej@apple.com>
10303 * loop.c (combine_movables): Do allow combination of pseudos.
10305 2002-03-29 Loren J. Rittle <ljrittle@acm.org>
10307 * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
10308 * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
10309 No functional change except ...
10310 * config/t-slibgcc-nolc-override (SHLIB_LC): Override it. New file.
10311 * doc/install.texi (*-*-freebsd*): Document port configuration.
10313 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
10315 * Makefile.in (convert.o, calls.o, expmed.o): Update.
10316 * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
10318 * builtin-types.def (BT_PTRMODE): Update.
10319 * c-common.c (type_for_size): Rename c_common_type_for_size.
10320 (type_for_mode): Similarly.
10321 (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
10323 * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
10324 * c-decl.c (finish_enum, build_enumerator): Use new hooks.
10325 * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
10327 * c-typeck.c (common_type, comptypes, default_conversion):
10329 * calls.c: Include langhooks.h.
10330 (emit_library_call_value_1): Use new hooks. Avoid redundant
10332 * convert.c: Include langhooks.h
10333 (convert_to_pointer, convert_to_integer): Use new hooks.
10334 * except.c (init_eh): Similarly.
10335 * expmed.c: Include langhooks.h.
10336 (expand_mult_add): Use new hooks.
10337 * expr.c (store_expr, store_constructor, expand_expr, do_jump,
10338 try_casesi): Similarly.
10339 * fold-const.c (optimize_bit_field_compare, make_range,
10340 decode_field_reference, fold_truthop, fold): Similarly.
10341 * function.c (assign_stack_local_1, assign_stack_temp_for_type,
10342 put_var_into_stack): Similarly.
10343 * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
10344 LANG_HOOKS_TYPE_FOR_SIZE): New.
10345 (LANG_HOOKS_TYPES_INITIALIZER): Update.
10346 * langhooks.h (lang_hooks_for_types): New hooks.
10347 * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
10348 * tree.c (get_unwidened, get_narrower): Similarly.
10349 * tree.h (type_for_mode, type_for_size): Remove.
10350 * varasm.c (force_const_mem): Use new hooks.
10351 * utils2.c (nonbinary_modular_operation): Update.
10353 * objc-act.c (handle_impent): Update.
10354 * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
10357 2002-03-29 Steve Ellcey <sje@cup.hp.com>
10359 * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
10360 * config/ia64/ia64.c (basereg_operand): New.
10361 * config/ia64/ia64-protos.h (basereg_operand): Declare.
10362 * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
10364 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
10366 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
10367 unwind information when frame_pointer_needed.
10368 (mmix_assemble_integer): Tweak wording in comment.
10370 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
10372 * Makefile.in (except.o): Update.
10373 * except.c: Include langhooks.h.
10374 (init_eh): Use langhook.
10375 * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
10376 LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
10377 (LANG_HOOKS_INITIALIZER): Update.
10378 * langhooks.h (lang_hooks_for_types): New.
10379 (struct lang_hooks): Add it.
10380 * tree.c (make_lang_type_fn, make_lang_type): Remove.
10381 * tree.h (make_lang_type_fn, make_lang_type): Remove.
10383 * alpha/alpha.c: Include langhooks.h.
10384 (alpha_build_va_list): Use langhook.
10385 * d30v/d30v.c: Include langhooks.h.
10386 (d30v_build_va_list): Use langhook.
10387 * i386/i386.c: Include langhooks.h.
10388 (ix86_build_va_list): Use langhook.
10389 * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
10390 * s390/s390.c: Include langhooks.h.
10391 (s390_build_va_list): Use langhook.
10392 * stormy16/stormy16.c: Include langhooks.h.
10393 (stormy16_build_va_list): Use langhook.
10395 2002-03-29 Jakub Jelinek <jakub@redhat.com>
10398 * config/sparc/sparc.md (empty_delay_slot, branch_type): New
10400 (length): Compute variable length for branches/calls/jumps here.
10401 (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
10402 normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
10403 define branch_type attribute.
10404 (divsi3_sp32): Maximum length is 6 not 7.
10405 (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
10406 call_address_untyped_struct_value_sp32,
10407 call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
10408 * config/sparc/sparc.c (empty_delay_slot): New function.
10409 * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
10410 * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
10412 2002-03-29 Jakub Jelinek <jakub@redhat.com>
10414 * combine.c (set_nonzero_bits_and_sign_copies): Don't call
10415 nonzero_bits if not needed.
10416 (nonzero_bits) [XOR]: Likewise.
10417 (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
10418 reg_last_set_mode and mode are both MODE_INT, but not equal.
10419 (record_value_for_reg): Compute reg_last_set_nonzero_bits
10420 in nonzero_bits_mode for MODE_INT modes.
10422 2002-03-28 Richard Henderson <rth@redhat.com>
10425 * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
10426 to GAS. Correct drift between alternatives.
10428 2002-03-28 Richard Henderson <rth@redhat.com>
10431 * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
10433 2002-03-28 Alexandre Oliva <aoliva@redhat.com>
10435 * config/i386/freebsd.h (LINK_SPEC): Don't pass default
10436 emulation to the linker.
10438 2002-03-28 Loren J. Rittle <ljrittle@acm.org>
10440 * config/alpha/freebsd.h (LINK_SPEC): Likewise.
10441 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
10443 Thu Mar 28 16:35:31 2002 Jeffrey A Law (law@redhat.com)
10445 * combine.c (simplify_and_const_int): Make sure to apply mask
10446 when force_to_mode returns a constant integer. PR3311.
10448 2002-03-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
10450 * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
10452 2002-03-28 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
10454 * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
10455 and Objective-C Dialect Options.
10457 2002-03-28 Richard Henderson <rth@redhat.com>
10459 * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
10460 comparison should be done vs !=0 not >0 return code. Tidy cases.
10462 2002-03-28 Richard Henderson <rth@redhat.com>
10464 * c-decl.c (finish_function): New arg can_defer_p. Pass it
10465 on to c_expand_body.
10466 * c-tree.h (finish_function): Update decl.
10467 * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
10469 Thu Mar 28 19:13:36 CET 2002 Jan Hubicka <jh@suse.cz>
10471 * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
10473 Thu Mar 28 13:21:53 CET 2002 Jan Hubicka <jh@suse.cz>
10475 * rtlanal.c: Include flags.h
10476 (may_trap_p): Do not mark FP operations if trapping
10477 if !flag_trapping_math
10478 * Makefile.in (rtlanal.o): Add dependency on flag.h
10479 * ifcvt.c (noce_operand_ok): Avoid the lameness.
10481 2002-03-27 Zack Weinberg <zack@codesourcery.com>
10483 * mips.md: Use dconst1, not 1.0, as first argument of
10484 REAL_VALUE_LDEXP. Don't use union real_extract.
10486 2002-03-28 Alan Modra <amodra@bigpond.net.au>
10488 * configure.in (gcc_cv_as): Use $target_alias in directory searchs
10489 rather than $target. Heed program_prefix and
10490 program_transform_name. Search for gas in cross-compiler case too.
10491 "test -x" rather than "test -f".
10492 (gcc_cv_ld): Likewise.
10493 (gcc_cv_nm): Heed program_prefix and program_transform_name.
10494 (gcc_cv_objdump): Likewise.
10495 * configure: Regenerate.
10497 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
10499 * Makefile.in (attribs.o): Update.
10500 * attribs.c: Include langhooks.h.
10501 (decl_attributes): Use langhook.
10502 * c-decl.c (insert_default_attributes): Rename.
10503 * c-tree.h (c_insert_default_attributes): New.
10504 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
10505 (LANG_HOOKS_INITIALIZER): Update.
10506 * langhooks.h (struct lang_hooks): New hook.
10507 * tree.h (insert_default_attributes): Remove.
10509 * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
10511 2002-03-27 Andreas Schwab <schwab@suse.de>
10513 * config/i386/i386.c (classify_argument): Also check for
10516 2002-03-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10518 * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
10521 Wed Mar 27 23:19:30 CET 2002 Jan Hubicka <jh@suse.cz>
10523 * i960.md (ret): Set PC.
10524 (nonlocal_goto): Fix expander.
10525 * builtins.c (epxand_builin_longjmp): Check that we've emitted
10528 Wed Mar 27 23:11:35 CET 2002 Jan Hubicka <jh@suse.cz>
10530 * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
10531 of libcall regions.
10533 Wed Mar 27 22:54:14 CET 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10535 * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
10536 assigning to BLOCK_FOR_INSN directly.
10538 Wed Mar 27 22:33:05 CET 2002 Jan Hubicka <jh@suse.cz>
10540 * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
10542 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
10544 * c-common.c (c_expand_expr): Fix prototype.
10545 * c-common.h (c_expand_expr): Always declare, update.
10546 * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
10547 * c-objc-common.c (c_objc_common_init): No global hook.
10548 * expr.c (expand_expr): Use langhook.
10549 * expr.h (enum expand_modifier): Conditionally declare.
10550 * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
10551 (LANG_HOOKS_INITIALIZER): Update.
10552 * langhooks.c (lhd_expand_expr): New.
10553 * langhooks.h (struct lang_hooks): New hook.
10554 * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
10555 (lang_independent_init): Don't default hook.
10557 * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
10559 2002-03-27 Richard Henderson <rth@redhat.com>
10562 * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
10563 TARGET_CONST_GP. Simplify conditions.
10565 2002-03-27 Richard Henderson <rth@redhat.com>
10567 * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
10568 config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
10569 config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
10571 2002-03-27 Danny Smith <dannysmith@users.sourceforge.net>
10573 * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
10574 TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
10575 (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
10576 Remove unnecessary masks.
10577 (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
10578 (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
10579 -mwindows, -mdll switches and their negations.
10581 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
10583 * gcc-common.c (lang_mark_false_label_stack): Remove.
10584 * ggc.h (lang_mark_false_label_stack): Similarly.
10586 2002-03-26 Vladimir Makarov <vmakarov@redhat.com>
10588 * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
10590 * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
10591 or __rtems_ is defined.
10593 2002-03-26 Richard Henderson <rth@redhat.com>
10595 * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
10596 if a non-trivial load was emitted.
10597 (alpha_emit_set_const_1): Remove obsolete extension. Fix thinko
10598 in high+extra+low case.
10600 2002-03-26 Richard Henderson <rth@redhat.com>
10602 * config.gcc (sparc*-solaris): Use float_format=sparc.
10604 2002-03-26 Richard Henderson <rth@redhat.com>
10606 * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
10607 * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
10608 * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
10609 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
10610 (WINT_TYPE_SIZE): Fix at 32.
10612 2002-03-26 Richard Henderson <rth@redhat.com>
10614 * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
10615 until after eh landing pad generation.
10616 * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
10617 * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
10619 2002-03-26 Richard Henderson <rth@redhat.com>
10621 * expr.h (ADD_PARM_SIZE): One more convert for INC.
10623 2002-03-26 Phil Edwards <pme@gcc.gnu.org>
10625 * gcc.c (cpp_options): Preserve relative ordering of -pedantic
10626 and warning switches.
10627 (cc1_options): Likewise.
10629 2002-03-26 Hans Boehm <Hans_Boehm@hp.com>
10631 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
10632 Restore more of the signal context. Set no_reg_stack_frame.
10633 * config/ia64/unwind-ia64.c (unw_state_record):
10634 Add no_reg_stack_frame, comments.
10635 (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
10636 (uw_update_context): Adjust bsp when unwinding from leaf,
10637 but not signal frame.
10639 2002-03-26 David Edelsohn <edelsohn@gnu.org>
10641 * config/rs6000/aix51.h (WCHAR_TYPE): Define.
10643 2002-03-26 Bob Wilson <bob.wilson@acm.org>
10645 * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
10647 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
10650 * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
10651 "Add a pool_range attribute", which was lost during the ARM/Thumb
10654 2002-03-26 Bob Wilson <bob.wilson@acm.org>
10656 * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
10657 a register into the MAC16 accumulator.
10659 2002-03-26 Andrew Cagney <ac131313@redhat.com>
10661 * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
10662 (Warning Options): Document -Wswitch-enum.
10663 * toplev.c (W_options): Add -Wswitch-enum. Update comment on
10665 (warn_switch_enum): Define variables.
10666 * flags.h (warn_switch_enum): Declare variables.
10667 * stmt.c (expand_end_case_type): When warn_switch_enum /
10668 -Wswitch-enum, perform switch checks.
10671 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
10673 * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
10674 (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
10675 (reload_muladdsi_compare0_scratch): Delete.
10677 2002-03-26 Loren J. Rittle <ljrittle@acm.org>
10679 * doc/install.texi (*-*-freebsd*): Update.
10681 2002-03-26 Richard Henderson <rth@redhat.com>
10683 * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
10684 (SUB_PARM_SIZE): Cast DEC to ssizetype.
10686 * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
10687 types from the normal argument frame.
10689 * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
10690 variable sized objects by reference.
10691 (sparc_va_arg): Receive them by reference too.
10693 2002-03-26 Hartmut Penner <hpenner@de.ibm.com>
10695 * config/s390/s390.c (s390_emit_epilogue): Change epilogue
10696 code to not restoring global registers.
10698 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
10700 * Makefile.in (ggc-common.o): Update.
10701 * c-decl.c (lang_mark_tree): Rename c_mark_tree.
10702 * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
10703 * c-tree.h (c_mark_tree): New.
10704 * ggc-common.c: Include langhooks.h.
10705 (gcc_mark_trees): Use new langhook.
10706 * ggc-callbacks.c: Delete file.
10707 * ggc.h (lang_mark_tree): Remove.
10708 * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
10709 (LANG_HOOKS_INITIALIZER): Update.
10710 * langhooks.h (struct lang_hooks): New hook.
10712 * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
10714 2002-03-25 Zack Weinberg <zack@codesourcery.com>
10716 * doc/cpp.texi: Exclude entire Top node from printed manual.
10717 Move option index after directive index. Insert page breaks
10718 before GFDL and concept index. Index environment variables
10719 with command line options.
10720 * doc/cppenv.texi: Use @vtable for environment variable list.
10721 Add paragraph explaining semantics of empty elements in path
10722 variables. Exclude a cross-reference to Fishkill from the
10723 manpage. Remove an unnecessary cross-reference of the entry
10724 right above the referer. Don't use @anchor in text that goes
10726 * doc/cppopts.texi: Cross-reference the environment variables
10727 section, not the specific environment variable, for consistency.
10729 2002-03-25 Richard Henderson <rth@redhat.com>
10731 * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
10732 anywhere in the block. Don't refer to insns that have been
10733 removed from the chain. Iterate backward through the new insns.
10734 Don't refer to edges that have been removed.
10736 2002-03-26 Alan Modra <amodra@bigpond.net.au>
10738 * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
10739 test for overflow of constant.
10741 2002-03-25 Richard Earnshaw <rearnsha@arm.com>
10744 * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
10745 (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
10746 these patterns on arm_archv4.
10748 2002-03-25 Danny Smith <dannysmith@sourceforge.users.net>
10750 * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
10753 2002-03-25 Zack Weinberg <zack@codesourcery.com>
10755 * toplev.c: Don't include setjmp.h. Kill float_handler_set,
10756 float_handled, float_handler, float_signal, set_float_handler,
10757 and do_float_handler. Set handler for SIGFPE to crash_signal.
10758 * toplev.h: Don't prototype do_float_handler.
10760 * c-lex.c: Fold parse_float into lex_number. Make warning
10761 about portability of hex float constants more informative, and
10762 don't issue it on top of a syntax error.
10763 * fold-const.c: Fold const_binop_1 and fold_convert_1 into
10765 * real.h: Define REAL_VALUE_ABS here...
10766 * simplify-rtx.c: ... not here. Fold check_fold_consts,
10767 simplify_unary_real, simplify_binary_real, and
10768 simplify_binary_is2orm1 into their callers.
10769 * tree.c: Fold build_real_from_int_cst_1 into caller.
10771 * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
10773 * tsystem.h: Include float.h here...
10774 * libgcc2.c: ... not here.
10776 2002-03-25 Nick Clifton <nickc@cambridge.redhat.com>
10778 Fixes for: PR bootstrap/3591, target/5676
10779 * config/mcore/mcore.h (CC1_SPEC): Define only if not already
10780 defined. Do not disable exceptions or rtti.
10781 * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
10782 mcore.h. Disable exceptions and rtti, since they are not
10785 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
10787 * c-decl.c (maybe_build_cleanup): Remove.
10788 * expr.c (expand_expr): Use langhook.
10789 * langhooks-def.h (lhd_return_null_tree,
10790 LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
10791 (LANGHOOKS_INITIALIZER): Update.
10792 * langhooks.c (lhd_return_null_tree): New.
10793 * langhooks.h (struct lang_hooks): New hook.
10794 * tree-inline.c (initialize_inlined_parameters): Use langhook.
10795 * tree.h (maybe_build_cleanup): Remove.
10797 2002-03-25 Jakub Jelinek <jakub@redhat.com>
10799 * regrename.c (build_def_use): Move recog_memoized
10800 before extract_insn.
10802 2002-03-25 Jakub Jelinek <jakub@redhat.com>
10805 * expr.c (emit_group_store): Handle storing into CONCAT.
10807 2002-03-25 Jakub Jelinek <jakub@redhat.com>
10809 * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
10810 corresponding MATCH_DUP.
10812 2002-03-24 Richard Henderson <rth@redhat.com>
10814 * unroll.c (unroll_loop): Zero label_map.
10816 * gcse.c: Include except.h.
10817 * Makefile.in (gcse.o): Update.
10819 2002-03-24 Richard Henderson <rth@redhat.com>
10821 * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
10822 Do resolve_unique_section before shared data clause.
10824 2002-03-24 Richard Henderson <rth@redhat.com>
10826 * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
10828 2002-03-24 Richard Henderson <rth@redhat.com>
10830 * recog.c (peephole2_optimize): Split blocks when EH insns are
10831 generated in the middle of a block. Do global life update if
10834 2002-03-24 Richard Henderson <rth@redhat.com>
10836 * mips.c (mips_function_value): Only promote_mode for non-libcalls.
10838 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
10841 * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
10842 * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
10843 (init_dependency_output): Don't make no_output decision here.
10845 2002-03-24 Andrew Cagney <ac131313@redhat.com>
10847 * stmt.c (check_for_full_enumeration_handling): Remove tests of
10848 warn_switch. Update description.
10849 (expand_end_case_type): Call check_for_full_enumeration_handling
10852 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
10854 * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
10855 (m68hc11_split_move): Call it to see if the source and destination
10856 operands use the same direction auto inc/dec mode, otherwise make the
10857 source an offsetable memory operand and generate an add.
10859 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
10861 * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
10862 register for operand 2.
10863 ("*subsi3_zero_extendqi"): Likewise.
10864 ("*iorhi3_gen"): Do the operation on the upper bits and then lower
10865 bits so that it is compatible with a pop.
10866 ("*andhi3_gen"): Likewise.
10867 ("xorhi3"): Likewise.
10869 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
10871 * cppinit.c (cpp_handle_option): Set warn_endif_labels if
10873 (cpp_post_options): ... not here.
10875 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
10876 Aldy Hernandez <aldyh@redhat.com>
10878 Removal of separate preprocessor cpp0.
10880 * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
10881 cpp0, install-common): Update.
10882 * c-common.c (flag_preprocess_only): New.
10883 (c_common_init): Preprocess for -E.
10884 * c-common.h (flag_preprocess_only): New.
10885 * c-decl.c (c_decode_option): Handle -E and -std=c++98.
10886 * c-objc-common.c (c_init_decl_processing): Exit quickly
10887 for NULL return from c_common_init.
10888 * cpplib.h (cpp_preprocess_file): New.
10889 * cppmain.c (main, general_init, pfile, progname): Remove.
10890 (do_preprocessing): Rename cpp_preprocess_file, don't call
10891 cpp_finish. Don't close stdout here.
10892 (setup_callbacks): Update prototype.
10893 * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
10895 * tradcpp.c (main): Ignore -quiet.
10897 * lang-specs.h (default_compilers): Preprocess with cc1obj.
10899 2002-03-24 Richard Henderson <rth@redhat.com>
10901 PR optimization/5742
10902 * machmode.def: Add inner mode field to complex modes.
10903 * config/mips/mips.c (mips_function_value): Always define. Add
10904 new argument to handle libcalls.
10905 * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
10906 (FUNCTION_VALUE): Likewise.
10907 * config/mips/abi64.h (FUNCTION_VALUE): Remove.
10908 * config/mips/mips-protos.h: Update.
10910 2002-03-23 Richard Henderson <rth@redhat.com>
10912 * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
10913 * config/sparc/sparc-protos.h: Update.
10914 * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
10916 2002-03-23 Richard Henderson <rth@redhat.com>
10918 * config/sparc/gmon-sol2.c (internal_mcount): Assume either
10919 _start or _init begins the text segment.
10921 2002-03-23 David Edelsohn <edelsohn@gnu.org>
10923 * config/rs6000/rs6000.h (RETURN_IN_MEMORY): Cast to HOST_WIDE_INT
10924 not HOST_WIDEST_INT.
10925 (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
10927 2002-03-23 Richard Earnshaw <rearnsha@arm.com>
10930 * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
10931 operand argument to output_return_instruction.
10932 * arm.c (arm_print_operand, case 'd'): If the operand is
10933 const_true_rtx then just return.
10934 (arm_print_operand, case 'D'): If the operand is const_true_rtx
10937 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10939 * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
10940 (Warning Options): Document -Wswitch-default.
10941 * toplev.c (W_options): Add -Wswitch-default. Update comment on
10943 (warn_switch_default): Define variable.
10944 (warn_switch): Update comment.
10945 * flags.h (warn_switch_default): Declare variable.
10946 (warn_switch): Update comment.
10947 * stmt.c (expand_end_case): Check for and, when
10948 warn_switch_no_default, warn of a missing default case.
10950 2002-03-23 Alan Modra <amodra@bigpond.net.au>
10952 * real.h (N): Special case 128 bit doubles.
10954 * combine.c (simplify_comparison): When widening modes, ignore
10955 sign extension on CONST_INTs.
10957 2002-03-22 Bob Wilson <bob.wilson@acm.org>
10959 * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
10960 passed to adjust_address. Fix comment formatting.
10963 2002-03-22 Zack Weinberg <zack@codesourcery.com>
10965 * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
10966 Always make REAL_VALUE_TYPE a struct containing an array of
10967 HOST_WIDE_INT, not a double. Tidy up the code deciding how
10968 big it is. Don't declare or use union real_extract.
10970 * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
10971 decode_rtx_const, output_constant_pool), config/a29k/a29k.c
10972 (print_operand), config/arm/arm.c (output_move_double),
10973 config/arm/arm.md (consttable_4, consttable_8),
10974 config/romp/romp.c (output_fpops), config/s390/s390.h
10975 (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
10976 (xtensa_output_literal): Don't use union real_extract.
10978 * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
10979 (sfmode_constant_to_ulong), config/ns32k/merlin.h
10980 (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
10981 config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
10982 (PRINT_OPERAND): Don't use local version of union
10985 * config/convex/convex.c (check_float_value), config/vax/vax.c
10986 (vax_float_literal), config/m88k/m88k.md (divdf3),
10987 config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
10988 config/pdp11/pdp11.c (output_move_quad): Don't do host
10989 arithmetic on target floating point quantities.
10991 * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
10992 (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
10994 * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
10995 Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
10997 * real.c (earith): Test INFINITY rather than REAL_INFINITY;
10998 NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
11000 * print-rtl.c (print_rtx): Disable code which needs
11001 floating-point emulator.
11002 * libgcc2.c: Include float.h and use DBL_MANT_DIG,
11003 FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
11004 depending on HOST_FLOAT_FORMAT to be defined properly.
11006 * config/1750a/1750a.c (get_double, float_label): Delete.
11007 (print_operand): Delete huge commented-out chunk. Use
11008 REAL_VALUE_TO_DECIMAL.
11009 * config/1750a/1750a-protos.h: Delete prototypes of deleted
11011 * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
11013 * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
11014 Use REAL_VALUE_TO_DECIMAL as ELF version does.
11015 * config/m88k/m88k.c (real_power_of_2_operand,
11016 legitimize_operand): Take the REAL_VALUE_TYPE and/or union
11017 real_extract out of the union; run the input through
11018 REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
11019 from that into the union.
11020 * config/pdp11/pdp11.c (output_move_double): Rearrange
11021 parentheses to make automatic indenter happy.
11023 * doc/tm.texi (Cross-compilation): Rename node to "Floating
11024 Point" and rewrite to describe current situation. Also adjust
11025 documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
11027 * doc/rtl.texi: Adjust cross reference.
11029 2002-03-22 Bob Wilson <bob.wilson@acm.org>
11031 * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
11032 (xtensa_valid_move, xtensa_preferred_reload_class): Define.
11033 * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
11034 (xtensa_valid_move, xtensa_preferred_reload_class): Define to
11035 prevent use of sp as a reload register.
11036 (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
11037 non_acc_reg_operand.
11038 * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
11039 (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
11040 * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
11041 movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
11043 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
11045 * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
11046 * cpplex.c (unterminated): Delete.
11047 (parse_string): No string literal may extend over multiple
11048 lines. Suppress the error when preprocessing assembly.
11049 * cppmain.c (scan_translation_unit): Strings are single-line.
11051 * doc/cpp.texi: Update to match.
11053 2002-03-22 Jakub Jelinek <jakub@redhat.com>
11055 PR optimization/5854
11056 * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
11058 (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
11059 (EXTRA_CONSTRAINT): Use S for non-push memory operand.
11060 * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
11061 const0 if scratch register was not allocated.
11062 (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
11063 m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
11064 with GEN_INT (...).
11065 (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
11066 * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
11067 with GEN_INT (...) everywhere. Remove constraints in define_split
11069 (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
11070 require scratch register for setting 0 into regs/non-pushable memory.
11072 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
11074 * config/mips/mips.h (MASK_RETURN_ADDR): Define.
11075 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
11077 2002-03-22 Phil Edwards <pme@gcc.gnu.org>
11079 * cpplib.h (struct cpp_options): New member, warn_endif_labels.
11080 * cppinit.c (cpp_create_reader): On by default.
11081 (cpp_handle_option): Handle -W[no-]endif-labels.
11082 (cpp_post_options): Also enable if -pedantic.
11083 * cpplib.c (do_else): Use it.
11084 (do_endif): Likewise.
11085 * doc/cppopts.texi: Document new option.
11086 * doc/invoke.texi: Document new option.
11088 2002-03-22 Lars Brinkhoff <lars@nocrew.org>
11090 * config/i386/i386.c, config/i386/i386.md: Change all occurences
11091 of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
11093 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
11095 * flow.c (calculate_global_regs_live): Clear aux fields of
11098 2002-03-22 Jakub Jelinek <jakub@redhat.com>
11100 * config/v850/v850.c (v850_reorg): Only call alter_subreg on
11101 REG or MEM subregs, pass rtx * instead of rtx to it.
11102 * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
11103 rtx * instead of rtx to alter_subreg.
11104 * config/m32r/m32r.c (gen_split_move_double): Likewise.
11105 * config/pj/pj.c (pj_output_rval): Likewise.
11107 2002-03-22 Richard Henderson <rth@redhat.com>
11110 * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
11111 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
11112 * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
11113 (ia64_expand_prologue): Look at int_regs, not words, for number
11114 of incomming int regs.
11116 2002-03-22 Andrew MacLeod <amacleod@redhat.com>
11118 * expr.c (expand_expr): A RESULT_DECL is part of a call.
11120 Fri Mar 22 16:30:42 CET 2002 Jan Hubicka <jh@suse.cz>
11122 * toplev.c (flag_loop_optimize, flag_crossjumping):
11123 New static variables.
11124 (rest_of_compilation): Conditionalize crossjumping and
11126 (parse_options_and_default_flags): Default loop_optimize and
11128 (lang_independent_options): Add -fcrossjumping and -floop-optimize
11129 * invoke.texi (crossjumping, loop-optimize): Document.
11131 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
11133 * real.c (eiisneg): Move outside #ifdef NANS.
11135 Fri Mar 22 12:08:36 CET 2002 Jan Hubicka <jh@suse.cz>
11137 * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
11138 frequencies match; avoid match on different loop depths.
11139 (try_crossjump_to_bb): Kill tests that no longer brings time
11141 * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
11143 (split_edge): Likewise.
11145 * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
11148 * Makefile.in (cfgrtl): Add insn-config.h depenendency.
11149 * cfgrtl.c: Include insn-config.h
11150 (split_block) Dirtify block in presence of conditional execution
11152 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
11154 * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
11155 * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
11156 (function_arg): Constify CUMULATIVE_ARGS.
11157 (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
11158 * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
11159 (UNITS_PER_DOUBLE): New macro.
11160 (SETUP_INCOMING_VARARGS): Define. Use mips_setup_incoming_varargs.
11161 (CUMULATIVE_ARGS): Reformat. Remove num_adjusts workaround and
11162 last_arg_fp field. Replace arg_words and fp_arg_words with gp_regs,
11163 fp_regs and stack_words.
11164 (EABI_FLOAT_VARARGS_P): New macro.
11165 * config/mips/mips.c (struct mips_arg_info): New.
11166 (mips_arg_info): New function.
11167 (function_arg_advance): Use it. Add adjustment instructions here
11168 rather than in function_arg.
11169 (function_arg): Constify CUMULATIVE_ARGS. Use mips_arg_info. Check
11170 for VOIDmode at the beginning of the function.
11171 (function_partial_nregs): Constify CUMULATIVE_ARGS. Use mips_arg_info.
11172 (function_arg_pass_by_reference): Likewise.
11173 (mips_setup_incoming_varags): New, largely based on old abi64.h code.
11174 (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
11175 (mips_va_start): Likewise. Use the new stack_words field of
11176 CUMULATIVE_ARGS to set up overflow area. Reformat.
11177 (mips_va_arg): Test EABI_FLOAT_VARARGS_P. Unify EABI handling of
11178 doubles and other types, aligning the overflow pointer for non-doubles
11179 too. Remove some code duplication. Replace hard-coded constants.
11181 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
11183 * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
11184 (CLASS_UNITS): Undefine.
11185 (CLASS_MAX_NREGS): Use FP_INC.
11186 * config/mips/mips.c (compute_frame_size): Likewise.
11187 (override_options): Use FP_INC and UNITS_PER_FPVALUE.
11189 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
11191 * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
11192 prototype, and handle lexing numbers and identifiers.
11193 (parse_identifier): Update to new form of parse_slow.
11194 (parse_number): Fast path only, use parse_slow otherwise.
11195 (_cpp_lex_direct): Update calls to parse_number.
11197 2002-03-21 DJ Delorie <dj@redhat.com>
11199 * bb-reorder.c (make_reorder_chain_1): Protect against
11200 when redundant edges are omitted.
11201 * predict.c (dump_prediction): Likewise.
11203 2002-03-21 Richard Henderson <rth@redhat.com>
11206 * fixinc/inclhack.def (solaris_stdio_tag): New.
11207 * fixinc/fixincl.x: Regenerate.
11209 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
11212 * c-typeck.c (process_init_element): Flag non-static
11213 initialization of a flexible array member as illegal.
11215 2002-03-22 Alan Modra <amodra@bigpond.net.au>
11217 * config/rs6000/t-linux64: New.
11218 * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
11219 t-ppccomm. Use t-rs6000 and t-linux64.
11220 (powerpc64-*-gnu* <tmake_file>): Likewise.
11221 * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
11222 * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
11223 * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
11225 2002-03-21 Aldy Hernandez <aldyh@redhat.com>
11227 * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
11228 flag_really_no_inline instead of optimize == 0.
11230 * c-objc-common.c (c_cannot_inline_tree_fn): Same.
11232 * cp/tree.c (cp_cannot_inline_tree_fn): Same.
11234 * flags.h (flag_really_no_inline): New.
11236 * c-common.c (c_common_post_options): Initialize
11237 flag_really_no_inline.
11239 * toplev.c (flag_really_no_inline): New.
11241 2002-03-21 Jakub Jelinek <jakub@redhat.com>
11243 * config/avr/avr.md (length): Fix length computation for
11244 conditional branches.
11246 2002-03-21 Neil Booth <neil@daikokuya.demon.co.uk>
11248 * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
11249 sdbout.o, profile.o): Update.
11250 * c-common.c (c_common_nodes_and_builtins): Use pushdecl
11252 * c-common.h (gettags): Move here from tree.h.
11253 * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
11254 insert_block, getdecls, kept_level_p, global_bindings_p): New.
11255 * dbxout.c (dbxout_init): Use getdecls langhook.
11256 * expr.c (expand_expr): Use insert_block langhook.
11257 * fold-const.c: Include langhooks.h.
11258 (fold_range_test, fold_binary_op_with_conditional_arg,
11259 fold): Use global_bindings_p langhook.
11260 * integrate.c (expand_inline_function): Use insert_block langhook.
11261 * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
11262 LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
11263 LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
11264 LANG_HOOKS_GETDECLS): New.
11265 (LANG_HOOKS_INITIALIZER): Update.
11266 * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
11268 * langhooks.h (struct lang_hooks_for_decls): New.
11269 (struct lang_hooks): Update.
11270 * profile.c: Include langhooks.h.
11271 (output_func_start_profiler): Use new langhooks.
11272 * sdbout.c: Include langhooks.h.
11273 (sdbout_init, sdbout_finish): Use getdecls langhook.
11274 * stmt.c: Include langhooks.h.
11275 (expand_fixup, fixup_gotos): Use new langhooks.
11276 * stor-layout.c: Include langhooks.h.
11277 (variable_size): Use global_bindings_p langhook.
11278 * toplev.c (compile_file): Use getdecls langhook.
11279 * tree-inline.c (remap_block): Use insert_block langhook.
11280 * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
11281 insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
11283 2002-03-21 Richard Henderson <rth@redhat.com>
11285 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
11286 constants in .data when -fpic.
11288 2002-03-21 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
11290 * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
11293 2002-03-21 Tom Tromey <tromey@redhat.com>
11295 * config/i386/sol2.h (ASM_QUAD): Undef. Fixes PR bootstrap/5948.
11297 Thu Mar 21 09:50:48 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11299 * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
11301 * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
11303 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
11304 Richard Henderson <rth@redhat.com>
11307 * c-common.c (c_expand_expr): Preserve result of a statement
11308 expression if needed.
11310 2002-03-21 Jakub Jelinek <jakub@redhat.com>
11313 * genrecog.c (maybe_both_true_mode): Remove.
11314 (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
11315 * machmode.def (Pmode): Likewise.
11317 Thu Mar 21 01:55:06 EST 2002 John Wehle (john@feith.com)
11319 * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
11320 (nonlocal_mentioned_p_1): New function.
11321 (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
11322 (nonlocal_set_p, nonlocal_set_p_1): Likewise.
11323 (mark_constant_function): Recognize pure functions.
11324 * rtl.h (global_reg_mentioned_p): New prototype.
11325 * rtlanal.c (global_reg_mentioned_p,
11326 global_reg_mentioned_p_1): New function.
11328 2002-03-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11330 * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
11332 * fixinc/fixincl.x: Regenerate.
11334 2002-03-20 Jason Merrill <jason@redhat.com>
11336 * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
11338 2002-03-20 Michael Meissner <meissner@redhat.com>
11340 * doc/invoke.texi (Optimize Options): Document that -O2 sets
11343 2002-03-20 Bob Wilson <bob.wilson@acm.org>
11345 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
11346 ".literal_position" directive before the constant pool.
11348 2002-03-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
11350 * doc/contrib.texi (Contributors): Update Geoffrey Keating.
11351 Add Craig Rodrigues.
11352 Add Brad Lucier to testers.
11354 2002-03-20 Jakub Jelinek <jakub@redhat.com>
11357 * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
11359 (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
11360 * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
11361 instead of insn_extract.
11363 2002-03-20 Jakub Jelinek <jakub@redhat.com>
11366 * config/fr30/fr30.md (jump): Remove clobber of fixed register.
11368 * genemit.c (output_added_clobbers_hard_reg_p): Only output return
11369 stmt if some case has been output.
11371 2002-03-20 Jakub Jelinek <jakub@redhat.com>
11374 * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
11375 movsfcc_1, movdfcc_1): Add %O2.
11376 * config/i386/i386.c (print_operand): Handle %ON.
11377 Print . before float condition codes in Sun as cmov syntax.
11378 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
11379 * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
11382 2002-03-20 Philip Blundell <pb@nexus.co.uk>
11384 * config/arm/arm.c (arm_output_epilogue): Don't generate separate
11385 return instruction if PC was popped.
11387 2002-03-20 Bob Wilson <bob.wilson@acm.org>
11389 * config/xtensa/xtensa.md: Remove unused type attributes.
11390 (adddi_carry, subddi_carry): Change type attribute to "multi".
11392 2002-03-19 Dale Johannesen <dalej@apple.com>
11394 PR optimization/5999, middle-end/5731
11395 * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
11396 multiplications by reciprocals.
11398 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
11400 * Makefile.in: Update.
11401 * c-common.c: Include langhooks.h.
11402 (inline_forbidden_p): Use new hook.
11403 * diagnostic.c: Include langhooks.h.
11404 (format_with_decl, announce_function,
11405 default_print_error_function): Use new hook.
11406 * dwarf2out.c (dwarf2_name): Use new hook.
11407 * function.c: Include langhooks.h.
11408 (init_function_start): Use new hook.
11409 * langhooks-def.h (lhd_decl_printable_name): New.
11410 (LANGHOOKS_DECL_PRINTABLE_NAME): New.
11411 (LANGHOOKS_INITIALIZER): Update.
11412 * langhooks.c (lhd_decl_printable_name): New.
11413 * langhooks.h (struct lang_hooks): New hook.
11414 * toplev.c (decl_name, decl_printable_name): Remove.
11415 (open_dump_file): Use new hook.
11416 (process_options): Remove old hook.
11417 * tree.h (decl_printable_name): Remove.
11419 * objc-act.c (objc_init): Remove old hook.
11420 (objc_printable_name): Export.
11421 * objc-act.h (objc_printable_name): New.
11422 * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
11424 2002-03-19 Jim Blandy <jimb@redhat.com>
11426 * c-lex.c (cb_file_change): Pass the #inclusion's line number to
11427 the start_source_file debug hook, not the current line number.
11429 2002-03-19 Richard Henderson <rth@redhat.com>
11431 * flow.c (EH_USES): Provide default.
11432 (calculate_global_regs_live): Use it for EH edges and noreturn calls.
11433 * doc/tm.texi (EH_USES): New.
11435 * config/ia64/ia64.c (ia64_eh_uses): New.
11436 * config/ia64/ia64-protos.h: Update.
11437 * config/ia64/ia64.h (EH_USES): New.
11439 2002-03-19 Richard Henderson <rth@redhat.com>
11441 * varasm.c (output_constant_def): Fix stupid typo.
11443 2002-03-19 Richard Henderson <rth@redhat.com>
11446 * except.c (current_function_has_exception_handlers): New.
11447 * except.h: Declare it.
11448 * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
11449 Combine tests that disable all sibcalls for the function.
11451 2002-03-19 Olivier Hainque <hainque@act-europe.fr>
11453 * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
11456 2002-03-19 Richard Henderson <rth@redhat.com>
11459 * config/ia64/ia64.c: Revert 2002-03-01 patch.
11460 * config/ia64/ia64.h (INIT_EXPANDERS): New.
11462 2002-03-19 Jim Blandy <jimb@redhat.com>
11464 * cppmacro.c (cpp_macro_definition): Emit a space after the macro
11465 name, even if the replacement list contains no tokens, as required
11468 2002-03-19 Jason Merrill <jason@redhat.com>
11470 * varasm.c (globalize_decl): Get the name from the RTL, not
11471 DECL_ASSEMBLER_NAME.
11473 * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
11475 2002-03-19 Bob Wilson <bob.wilson@acm.org>
11477 * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
11478 subdi_carry): Define.
11480 2002-03-19 David Edelsohn <edelsohn@gnu.org>
11482 * config/rs6000/rs6000.c (rs6000_override_options): Only warn
11483 about -fpic/-fPIC if extra_warnings set.
11485 2002-03-19 David Edelsohn <edelsohn@gnu.org>
11487 * expr.c (expand_expr): Sign-extend CONST_INT generated from
11488 TREE_STRING_POINTER.
11489 * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
11491 Tue Mar 19 14:12:32 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11493 * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
11494 in favor of SP if FRAME_POINTER_REQUIRED is false.
11496 2002-03-19 Lars Brinkhoff <lars@nocrew.org>
11498 * emit-rtl.c (gen_int_mode): New function.
11499 * rtl.h: Prototype for it.
11500 * combine.c (make_extraction, simplify_comparison), expmed.c
11501 (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
11502 (convert_modes, store_field), optabs.c (expand_fix),
11503 simplify-rtx.c (neg_const_int, simplify_unary_real),
11505 * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
11506 Use it instead of GEN_INT (trunc_int_for_mode (...)).
11508 2002-03-19 Jakub Jelinek <jakub@redhat.com>
11511 * langhooks.h (struct lang_hooks_for_tree_inlining): Add
11512 convert_parm_for_inlining.
11513 * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
11515 * langhooks-def.h: Likewise.
11516 * objc/objc-lang.c: Likewise.
11517 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
11519 * tree-inline.c (initialize_inlined_parameters):
11520 Call convert_parm_for_inlining lang hook if needed.
11521 * c-typeck.c (c_convert_parm_for_inlining): New function.
11522 * c-tree.h (c_convert_parm_for_inlining): Add prototype.
11524 2002-03-18 Mark Mitchell <mark@codesourcery.com>
11526 * calls.c (precompute_arguments): Do not assume that temporaries
11527 can be destroyed after expanding the argument.
11528 (expand_call): Likewise.
11530 2002-03-15 Eric Christopher <echristo@redhat.com>
11532 * config/mips/mips.md (movdf_internal2): Add two new move constraints.
11533 Fix register preference on last change.
11534 * config/mips/mips.c (mips_return_in_memory): New function.
11535 * config/mips/mips.h (RETURN_IN_MEMORY): Use.
11536 * config/mips/mips-protos.h: Declare.
11537 * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
11538 * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
11540 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
11542 * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
11544 (anddi3, iorsi3): Likewise.
11546 * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
11547 use %gprel for symbols that are going to be placed in linkonce
11550 * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
11551 RETURN_ADDRESS_POINTER_REGNUM to $ra.
11552 (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
11553 not needed. Disregard leaf_function_p().
11554 (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
11555 mips16 frame pointer.
11556 * config/mips/mips.md (store ra): Only to small SP offsets.
11557 2001-08-22 Graham Stott <grahams@redhat.com>
11558 * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
11559 return a REG rtx for the return address register.
11561 2002-03-18 Bob Wilson <bob.wilson@acm.org>
11563 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
11564 constant-pool addresses as "mode-dependent".
11565 (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
11567 2002-03-18 Jakub Jelinek <jakub@redhat.com>
11570 * expr.c (emit_group_load): Use extract_bit_field if
11571 needed for CONCAT arguments.
11573 2002-03-18 Richard Earnshaw <rearnsha@arm.com>
11576 * arm.md (tablejump): Make this a define_expand. For PIC add the
11577 offset to the base of the table.
11578 (thumb_tablejump): Matcher for Thumb tablejump insn.
11579 * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
11580 as the difference of two labels.
11581 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
11582 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
11583 tables in the code.
11584 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
11585 * arm.c (get_jump_table_size): If the table is not in the text
11586 section, return zero.
11588 2002-03-18 Bernd Schmidt <bernds@redhat.com>
11590 * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
11592 (arm_reload_out_hi): Use gen_lowpart instead of
11593 gen_rtx_SUBREG to access QImode components.
11594 * config/arm/arm.md: Disable zero_extend split for QImode
11595 subregs in BIG_ENDIAN mode.
11596 (storehi_bigend): Match use of least significant byte.
11597 (storeinthi): Remove extraneous SUBREG.
11598 Add missing construction of operands[2].
11599 (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
11600 (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
11601 Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
11603 2002-03-18 Aldy Hernandez <aldyh@redhat.com>
11605 * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
11608 2002-03-17 Richard Henderson <rth@redhat.com>
11610 * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
11613 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
11615 * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
11616 (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
11618 2002-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11620 * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
11622 * predict.c (estimate_bb_frequencies): Delete unused variables.
11624 2002-03-17 Richard Henderson <rth@redhat.com>
11626 * config/ia64/ia64.c (ia64_attribute_table): Move before
11627 targetm definition. Make static.
11629 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
11631 * c-common.h (yyparse, c_common_parse_file): New.
11632 * c-lang.c: Include c-common.h.
11633 (LANG_HOOKS_PARSE_FILE): Redefine.
11634 * c-lex.c: Include c-common.h.
11635 (yyparse): Rename c_common_parse_file. Call yyparse.
11636 * c-parse.in (yyparse): Remove macro.
11637 * c-tree.h (yyparse_1): Remove.
11638 * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
11639 (LANG_HOOKS_INITIALIZER): Update.
11640 * langhooks.h (struct lang_hoooks): New hook parse_file.
11641 * toplev.c (compile_file): Use parse_file hook.
11642 * tree.h (yyparse): Remove.
11643 * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
11645 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
11647 * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
11648 float_truncate, not fix.
11649 ("*truncdfsf2_real"): Ditto.
11650 ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
11652 * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
11654 2002-03-16 Alexandre Oliva <aoliva@redhat.com>
11656 * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
11657 (s8), but rather HARD_FRAME_POINTER_REGNUM. Add parentheses
11658 where appropriate. Make the second reference to
11659 leaf_function_p a function call, as intended. Reindented.
11661 * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
11662 * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
11664 * config/mips/mips.md (addsi3, adddi3): Use scratch register to
11665 add register to non-constant into sp.
11667 * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
11668 * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
11669 (mips16_gp_pseudo_rtx): Lose.
11670 (INIT_EXPANDERS): Deleted.
11671 * config/mips/mips.c (mips_init_machine_status): New.
11672 (mips_free_machine_status): New.
11673 (mips_mark_machine_status): New.
11674 (override_options): Set them.
11675 (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
11676 (struct machine_function): ... new. Replaced all references.
11677 (mips_add_gc_roots): Don't mark them.
11678 (embedded_pic_fnaddr_reg): New, extracted from...
11679 (embedded_pic_offset): ... here.
11680 * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
11683 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
11685 * cppinit.c: Revert -MD removal.
11687 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11689 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
11690 soft registers by default for 68HC12.
11691 (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
11692 when compiling with -fomit-frame-pointer.
11693 (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
11694 (expand_epilogue): Likewise.
11695 (m68hc11_gen_rotate): Use exg when rotating by 8.
11697 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11699 * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
11700 * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
11701 (splits): Remove unused add splits.
11702 ("*addhi3_68hc12"): Tune constraints.
11703 ("addhi_sp"): Try to use X instead of Y in all cases and if the
11704 constant fits in 8-bits and D is dead use abx/aby instructions.
11705 ("*addhi3"): Remove extern declaration of ix_reg.
11706 ("*subsi3"): Optimize and provide new split.
11707 ("subhi3"): Cleanup.
11708 ("*subhi3_sp"): Avoid saving X if we know it is dead.
11709 (arith splits): For 68hc12 save the address register on the stack
11710 and do the arithmetic operation with a pop.
11712 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11714 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
11715 allocating QImode in address registers.
11716 ("*movqi_m68hc11"): Likewise.
11718 Sat Mar 16 12:57:28 CET 2002 Jan HUbicka <jh@suse.cz>
11720 * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
11722 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
11724 * cppinit.c (print_help): Display -MD and -MMD.
11725 Don't display usage string. Update assertion syntax and
11727 (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
11728 (cpp_handle_option): Update.
11730 2002-03-15 Chris Demetriou <cgd@broadcom.com>
11732 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
11733 MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
11734 and define it so that regardless of target CPU size,
11735 __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
11736 of "int" rather than "long."
11738 2002-03-15 Richard Henderson <rth@redhat.com>
11740 * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
11743 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11745 * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
11746 ("tstqi" split): Avoid using memory for tstqi on address register.
11747 (splits): Remove constraints.
11748 ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
11749 ("cmpdf", "cmpsf"): Remove since not used.
11750 ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
11751 (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
11753 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11755 * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
11756 ("neghi2"): Tighten constraints.
11757 ("one_cmplsi2"): Optimize and simplify split.
11758 * config/m68hc11/larith.asm (__negsi2): Likewise for library.
11760 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11762 * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
11763 and split of AND operation to clear the upper bits.
11764 ("*logicalsi3_zextqi"): Likewise.
11765 ("*logicallhi3_zexthi_ashift8"): Likewise.
11766 ("*logicalsi3_silshr16"): Likewise.
11767 ("logicalsi3_silshl16"): Likewise.
11768 ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
11770 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11772 * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
11773 (m68hc11_indirect_p): New function.
11774 (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
11775 (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
11777 (asm_print_register): Likewise.
11778 * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
11779 (m68hc11_indirect_p): Declare.
11780 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
11781 (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
11782 (TARGET_SWITCHES): New option -mrelax.
11783 * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
11785 ("iorsi3", "xorsi3"): Likewise.
11786 ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
11787 ("*andhi3_mem"): New to handle destination in memory with bclr
11788 and a scratch register.
11789 ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
11790 ("*andhi3_const"): New when operand2 is constant.
11791 ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
11792 ("*andhi3_gen"): Cleanup of the old "andhi3".
11793 ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
11794 ("xorqi3"): Update constraints.
11796 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11798 * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
11799 for reg_equiv_memory_loc when the operand is a register that does
11800 not get a hard register (stack location).
11801 (tst_operand): After reload, accept all memory operand.
11802 (symbolic_memory_operand): Fix detection of symbolic references.
11803 * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
11804 accept symbols and any constant.
11806 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11808 * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
11809 note on the insn that sets the soft frame register.
11810 (must_parenthesize): ix and iy are also reserved names.
11811 (print_operand_address): One more place where parenthesis are required
11812 to avoid confusion with register names.
11813 (m68hc11_gen_movhi): Allow push of stack pointer.
11814 (m68hc11_check_z_replacement): Fix handling of parallel with a
11816 (m68hc11_z_replacement): Must update the REG_INC notes to tell what
11817 the replacement register is.
11818 * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
11819 and D8_REGS classes.
11820 (MODES_TIEABLE_P): All modes are tieable except QImode.
11822 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11824 * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
11825 (___subdi3): Likewise.
11826 (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
11827 (__map_data_section): Optimize 68hc11 case.
11829 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11831 * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
11832 than a shift to avoid adding a register with itself.
11833 (m68hc11_memory_move_cost): Take into account NO_REGS.
11834 (m68hc11_register_move_cost): Update and use memory move cost
11835 for soft registers.
11836 (m68hc11_address_cost): Make cost of valid offset not 0 so that
11837 it gives more opportunities to cse to optimize.
11838 * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
11839 * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
11841 2002-03-15 Mark Mitchell <mark@codesourcery.com>
11843 * c-common.c (statement_code_p): Handle CLEANUP_STMT.
11844 * c-common.def (CLEANUP_STMT): New tree node.
11845 * c-common.h (CLEANUP_DECL): New macro.
11846 (CLEANUP_EXPR): Likewise.
11847 * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
11848 * expr.c (expand_expr): Tidy.
11849 * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
11850 * tree-inline.c (initialize_inlined_parameters): Clean up
11851 new local variables.
11853 2002-03-15 Jakub Jelinek <jakub@redhat.com>
11856 * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
11857 before movrXX only, use reg_overlap_mentioned_p.
11858 Only special case NE if just one insn can be generated.
11860 2002-03-15 Jason Merrill <jason@redhat.com>
11862 * varasm.c (assemble_variable): Call resolve_unique_section before
11863 checking DECL_SECTION_NAME. Use zeros for a decl with DECL_INITIAL
11864 of error_mark_node.
11866 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
11869 * arm.md (split pattern for thumb shiftable immediates): Add comment
11870 explaining non-obvious test.
11872 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
11875 * arm.md (movaddr, movaddr_insn): Delete.
11877 2002-03-15 Jason Merrill <jason@redhat.com>
11879 * toplev.c (wrapup_global_declarations): Clarify variable handling.
11880 -fkeep-static-consts doesn't apply to comdats.
11882 2002-03-14 Richard Henderson <rth@redhat.com>
11884 * c-decl.c: Include c-pragma.h.
11885 (start_decl, start_function): Invoke maybe_apply_pragma_weak.
11886 (finish_function): Tidy.
11887 * c-pragma.c: Include c-common.h.
11888 (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
11889 (handle_pragma_weak): Use them.
11890 (init_pragma): Register pending_weaks.
11891 * c-pragma.h (maybe_apply_pragma_weak): Declare.
11892 * print-tree.c (print_node): Print DECL_WEAK.
11893 * varasm.c (mark_weak_decls): Remove.
11894 (remove_from_pending_weak_list): Remove.
11895 (add_weak): Remove.
11896 (asm_emit_uninitialised): Call globalize_decl for weak commons.
11897 (weak_decls): Make a tree_list.
11898 (declare_weak): Cons weak_decls directly.
11899 (globalize_decl): Remove weak_decls elements directly.
11900 (weak_finish): Simplify weak_decls walk. Don't weaken unused
11901 symbols. Don't pretend to handle aliases.
11902 (init_varasm_once): Update weak_decls registry.
11903 * Makefile.in: Update dependencies.
11905 2002-03-14 Richard Henderson <rth@redhat.com>
11908 * config/ia64/ia64.c: Include tm_p.h last.
11909 (gen_nop_type): Remove duplicate definition.
11910 (cycle_end_fill_slots): Set sched_data for second L slot.
11911 (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
11912 (nop_cycles_until): Fix typos.
11914 2002-03-15 Jakub Jelinek <jakub@redhat.com>
11916 PR optimization/5891
11917 * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
11919 2002-03-14 David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
11921 * config/ia64/unwind-ia64.c: Handle copy_state and label_state
11922 descriptors correctly.
11924 2002-03-14 Michael Meissner <meissner@redhat.com>
11926 * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
11927 100, allowing MAX_UNROLLED_INSNS to be overridden.
11929 * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
11932 * unroll.c (params.h): Include.
11933 (MAX_UNROLLED_INSNS): Delete, now in params.h.
11935 * doc/invoke.texi (--param max-unroll-insns): Document.
11937 * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
11939 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
11941 * arm.md: Fix warnings about constraints in peepholes and splits.
11943 2002-03-14 Zack Weinberg <zack@codesourcery.com>
11945 * cpphash.h (struct lexer_state): Remove line_extension member.
11946 * cpplib.c (dequote_string, do_linemarker): New functions.
11947 (linemarker_dir): New data object.
11948 (DIRECTIVE_TABLE): No longer need to interpret #line in
11949 preprocessed source. Delete obsolete comment about return
11950 values of handlers.
11951 (end_directive, directive_diagnostics, _cpp_handle_directive):
11952 Don't muck with line_extension.
11953 (directive_diagnostics): No need to issue warnings for
11955 (_cpp_handle_directive): Issue warnings for linemarkers here,
11956 when appropriate. Dispatch linemarkers to do_linemarker, not
11958 (do_line): Code to handle linemarkers split out to do_linemarker.
11959 Convert escape sequences in filename argument, both places.
11961 * cppmacro.c (quote_string): Rename cpp_quote_string and
11962 export. All callers changed.
11963 * cpplib.h (cpp_quote_string): Prototype.
11964 * cppmain.c (print_line): Call cpp_quote_string on to_file
11965 before printing it.
11967 * doc/cpp.texi: Document that escapes are now interpreted in
11968 #line and in linemarkers, and that non-printing characters are
11969 converted to octal escapes when linemarkers are generated.
11971 Thu Mar 14 19:04:29 CET 2002 Jan Hubicka <jh@suse.cz>
11973 * emit-rtl.c (try_split): Use delete_insns.
11974 * recog.c (split_all_insns): Fix terminating condition.
11976 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
11977 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
11980 * arm.c (arm_output_epilogue): Fix floating-point register save
11981 adjustment when using a frame pointer.
11983 2002-03-14 Richard Sandiford <rsandifo@redhat.com>
11985 * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
11986 * config/mips/mips.c (compute_frame_size): Retrofit them here.
11987 (save_restore_insns, mips_expand_epilogue): And here.
11988 (build_mips16_call_stub): And here.
11989 (mips_function_value): Use the new macros to decide whether a single
11990 or complex float can be returned in floating-point registers. Return
11991 a parallel rtx in the complex case.
11993 Thu Mar 14 11:03:12 CET 2002 Jan Hubicka <jh@suse.cz>
11995 * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
11996 call after liveness analysis.
11998 * recog.c (split_insn): Use delete_insn_and_edges.
12000 * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
12001 instructions to have branch prediction notes.
12002 * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
12004 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
12006 * configure.in: Don't pass -Wno-long-long to a ADA compiler
12007 that doesn't support it.
12008 * configure: Regenerate.
12010 2002-03-13 Jakub Jelinek <jakub@redhat.com>
12013 * config/sparc/sparc.md (normal_branch, inverted_branch,
12014 normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
12015 inverted_fp_branch): Adjust calls to output_cbranch.
12016 Set length attribute.
12017 (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
12018 output_v9branch. Set length attribute.
12019 * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
12021 (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
12022 (output_cbranch): Likewise. Handle far branches.
12023 (output_v9branch): Handle far branches.
12024 * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
12026 * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
12027 noov_compare64_op predicates.
12029 2002-03-13 Jason Merrill <jason@redhat.com>
12031 * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
12032 into the function and constify it.
12033 * gthr-dce.h, gthr-solaris.h: Likewise.
12035 2002-03-13 David Edelsohn <edelsohn@gnu.org>
12037 * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
12038 * config/rs6000/rs6000.c (rs6000_va_arg): Use
12039 std_expand_builtin_va_arg if not ABI_V4.
12041 2002-03-13 Jason Merrill <jason@redhat.com>
12043 * varasm.c (globalize_decl): New fn.
12044 (assemble_start_function): Use it.
12045 (asm_emit_uninitialized): Use it.
12046 (assemble_alias): Use it.
12047 (assemble_variable): Use it.
12049 2002-03-13 Hans-Peter Nilsson <hp@axis.com>
12051 * config/cris/cris.c (cris_target_asm_function_prologue): Revert
12052 2002-03-12 internal visibility change.
12053 (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
12054 visibility into SYMBOL_REF_FLAG.
12056 2002-03-13 Ulrich Weigand <uweigand@de.ibm.com>
12058 * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
12059 VOIDmode operand. Add compile-time optimization for constant results.
12061 2002-03-12 Jason Merrill <jason@redhat.com>
12063 * c-typeck.c (convert_for_assignment): Don't allow conversions
12064 between pointers and references. Only allow lvalues to convert to
12067 2002-03-13 Hartmut Penner <hpenner@de.ibm.com>
12069 * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
12070 before prologue, to avoid scheduling problems.
12072 2002-03-13 Jakub Jelinek <jakub@redhat.com>
12074 * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
12075 (ELIMINABLE_REGS): Add sfp->sp.
12076 (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
12078 2002-03-13 Jakub Jelinek <jakub@redhat.com>
12080 PR optimization/5892
12081 * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
12083 2002-03-13 Jakub Jelinek <jakub@redhat.com>
12085 * loop.c (basic_induction_var): Don't call convert_modes if mode
12086 classes are different.
12088 2002-03-12 Richard Henderson <rth@redhat.com>
12090 PR optimization/5901
12091 * function.c (reposition_prologue_and_epilogue_notes): Position
12092 the markers after/before the last/first insn not deleted.
12094 2002-03-12 Richard Henderson <rth@redhat.com>
12096 PR optimization/5878
12097 * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
12098 config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
12099 (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
12101 * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
12102 config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
12103 PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
12105 * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
12106 * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
12107 (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
12108 also. Don't set it if not flag_pic.
12109 * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
12110 to be INVALID_REGNUM when not used.
12112 2002-03-13 Aldy Hernandez <aldyh@redhat.com>
12114 * expmed.c (store_bit_field): Reset alias set for memory.
12115 (extract_bit_field): Same.
12117 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12119 * c-common.c (c_tree_code_type, c_tree_code_length,
12120 c_tree_code_name, add_c_tree_codes): Delete.
12121 * c-common.h (add_c_tree_codes): Delete.
12122 * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
12124 * c-objc-common.c (c_objc_common_init): Don't call
12125 add_c_tree_codes, instead set lang_unsafe_for_reeval.
12126 * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
12127 objc_tree_code_name, add_objc_tree_codes): Delete.
12128 (objc_init): Don't call add_objc_tree_codes.
12129 * objc/objc-lang.c (tree_code_type, tree_code_length,
12130 tree_code_name): Define.
12131 * toplev.c (lang_independent_init): Don't set
12132 tree_code_length[IDENTIFIER_NODE].
12133 * tree.c (tree_code_type, tree_code_length, tree_code_name):
12134 Delete definitions, moved to language front-ends.
12135 * tree.def (IDENTIFIER_NODE): Hardwire the length.
12136 * tree.h (tree_code_type, tree_code_length, tree_code_name):
12138 (tree_code_length): Change type to unsigned char.
12140 2002-03-12 Richard Henderson <rth@redhat.com>
12142 * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
12143 internal visibility change.
12145 2002-03-12 Bob Wilson <bob.wilson@acm.org>
12147 * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
12148 validize_mem() instead of change_address to avoid clobbering
12151 2002-03-12 Neil Booth <neil@daikokuya.demon.co.uk>
12153 * c-lex.h (position_after_whitespace): Remove.
12155 2002-03-12 Jakub Jelinek <jakub@redhat.com>
12157 * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
12158 (lex_string): Use unsigned char pointers.
12160 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
12162 * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
12163 is not a valid memory_operand.
12165 2002-03-12 Bob Wilson <bob.wilson@acm.org>
12167 * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
12168 * config/xtensa/lib1funcs.asm: Fix copyright to include
12169 special case for libgcc files.
12170 (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
12171 (__divsi3): Likewise.
12172 (__umodsi3): Likewise.
12173 (__modsi3): Likewise.
12174 * config/xtensa/lib2funcs.S: Fix copyright to include
12175 special case for libgcc files.
12177 2002-03-12 Tom Rix <trix@redhat.com>
12179 * collect2.c (resolve_lib_name): Move outside of
12180 OBJECT_FORMAT_COFF ifdef.
12181 (ignore_library): Same.
12183 2002-03-12 Bob Wilson <bob.wilson@acm.org>
12185 * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
12187 2002-03-12 Bob Wilson <bob.wilson@acm.org>
12189 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
12190 to function_section before writing out the constant pool.
12192 2002-03-12 David Edelsohn <edelsohn@gnu.org>
12194 * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
12196 * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
12198 2002-03-12 Alan Modra <amodra@bigpond.net.au>
12200 * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
12201 (adddi3): Likewise.
12204 (cmpsi splitter): Likewise.
12205 (modsi3): Fail if <= 0.
12206 * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
12207 redundant test when HOST_BITS_PER_WIDE_INT != 32.
12208 (reg_or_sub_cint64_operand): Likewise.
12209 (num_insns_constant_wide): Optimize sign extension.
12210 (rs6000_legitimize_address): Likewise.
12212 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
12214 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
12215 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
12217 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
12219 * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
12220 address calculation.
12222 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
12224 * config/s390/s390.md (reload_insi, reload_indi): Change mode of
12225 scratch register to DImode / TImode.
12226 config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
12227 register used does not overlap the target.
12229 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12231 * Makefile.in (debug.o): Depend on debug.h.
12232 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
12233 * debug.c (do_nothing_debug_hooks): Likewise.
12234 * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
12235 sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
12236 dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
12237 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
12238 * dwarfout.c (dwarf_debug_hooks): Likewise.
12239 * integrate.c (output_inline_function): Likewise.
12240 * objc/objc-act.c (synth_module_prologue): Likewise.
12241 * sdbout.c (sdb_debug_hooks): Likewise.
12242 * toplev.c (debug_hooks): Likewise.
12243 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
12245 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12247 * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
12248 dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
12249 m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
12250 ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
12251 v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
12252 * defaults.h (POINTER_SIZE): Define.
12253 * doc/tm.texi (POINTER_SIZE): Document default.
12255 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12257 * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
12259 2002-03-11 Richard Henderson <rth@redhat.com>
12261 * toplev.c (rest_of_compilation): Call purge_all_dead_edges
12262 if rebuild_label_notes_after_reload.
12264 2002-03-12 Hans-Peter Nilsson <hp@axis.com>
12266 * config/cris/cris.c (cris_target_asm_function_prologue): Do not
12267 emit pic register load if "internal" visibility.
12268 (cris_print_operand): Avoid traditional-warning for 0xffffffff.
12269 (cris_expand_builtin_va_arg): Do all computations on trees.
12271 2002-03-11 Richard Henderson <rth@redhat.com>
12273 * rtlanal.c: Include recog.h.
12274 (keep_with_call_p): Fix thinko.
12275 * Makefile.in (rtlanal.o): Update dependencies.
12277 2002-03-11 Chris Meyer <cmeyer@gatan.com>
12279 * genflags.c (gen_insn): Use IS_VSPACE.
12280 * genoutput.c (output_insn_data): Likewise.
12281 (process_template): Likewise.
12283 2002-03-11 Richard Henderson <rth@redhat.com>
12285 * toplev.c (rest_of_compilation): Don't compile if we've had errors.
12287 2002-03-11 Neil Booth <neil@daikokuya.demon.co.uk>
12289 * Makefile.in: Update.
12290 * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
12291 Update documentation.
12292 * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
12293 * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
12295 2002-03-11 Zack Weinberg <zack@codesourcery.com>
12297 * Makefile.in: Give texi2pod its input file as a command line
12298 argument, not on stdin.
12300 2002-03-11 Dan Nicolaescu <dann@ics.uci.edu>
12301 Daniel Berlin <dan@dberlin.org>
12303 C++ alias analysis improvement.
12304 * alias.c (record_component_aliases): Record aliases for base
12307 2002-03-11 Ulrich Weigand <uweigand@de.ibm.com>
12309 * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
12311 2002-03-11 Douglas B Rupp <rupp@gnat.com>
12313 * toplev.c (vms_fopen): Remove, not needed.
12315 * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
12317 * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
12319 * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
12320 for FP, already done later.
12322 * toplev.c (debug_args): Add entry for VMS_DEBUG.
12323 * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
12325 2002-03-11 Richard Sandiford <rsandifo@redhat.com>
12327 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
12328 (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
12329 LARGEST_EXPONENT_IS_NORMAL for the given mode.
12330 (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
12331 * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
12332 (ediv, emul, eldexp, esqrt): Likewise.
12333 (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
12334 (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
12335 (saturate): New function.
12336 (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
12337 (make_nan): Use a saturation value instead of a NaN if
12338 LARGEST_EXPONENT_IS_NORMAL. Warn when this happens.
12339 * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
12340 inputs if LARGEST_EXPONENT_IS_NORMAL. Represent subnormals as
12341 zero if NO_DENORMALS. Only round to nearest if !ROUND_TOWARDS_ZERO.
12342 (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
12343 (_fpmul_parts, _fpdiv_parts): Only round to nearest if
12344 !ROUND_TOWARDS_ZERO.
12345 * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
12346 (ROUND_TOWARDS_ZERO): Document.
12348 2002-03-11 Andreas Jaeger <aj@suse.de>
12350 * cfg.c (dump_flow_info): Remove unused variable.
12352 2002-03-11 Hans-Peter Nilsson <hp@bitrange.com>
12354 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
12355 computations on trees.
12357 2002-03-10 Richard Henderson <rth@redhat.com>
12360 * reload.c (copy_replacements_1): New.
12361 (copy_replacements): Use it to recurse through the rtx.
12363 2002-03-10 Richard Henderson <rth@redhat.com>
12365 * loop.c (strength_reduce): Compute number of iterations as
12366 unsigned HOST_WIDE_INT.
12368 2002-03-10 Richard Henderson <rth@redhat.com>
12370 * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
12371 to move away from the end of the block.
12373 2002-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
12375 PR preprocessor/5899
12376 * cppinit.c (init_dependency_output): Don't ignore -dM etc.
12378 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12380 * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
12382 * attribs.c (decl_attributes): Fix signed/unsigned warning.
12384 2002-03-10 Hans-Peter Nilsson <hp@bitrange.com>
12386 * config/mmix/mmix.c: Improve comments.
12387 (mmix_target_asm_function_prologue): Drop variable
12388 empty_stack_frame. Don't allocate unused slot above fp.
12389 (mmix_target_asm_function_epilogue): Mirror prologue changes.
12390 * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
12391 brace in first column.
12392 (enum reg_class): Ditto.
12393 (FIRST_PARM_OFFSET): Now 0.
12394 (USER_LABEL_PREFIX): Remove #if 0:d definition.
12396 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12398 * combine.c (make_extraction): Fix error in last change.
12400 2002-03-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12402 * c4x.c (c4x_fp_reglist): Const-ify.
12403 * cris.c (cris_print_operand): Likewise.
12404 * i386.c (ix86_va_arg): Likewise.
12405 * ia64/unwind-ia64.c (unw_decode_table): Likewise.
12406 * m32r.c (m32r_hard_regno_mode_ok): Likewise.
12407 * m32r.h (m32r_hard_regno_mode_ok): Likewise.
12408 * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
12409 * mcore.h (regno_reg_class): Likewise.
12410 * mips.c (gen_int_relational): Likewise.
12411 * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
12412 * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
12413 * pdp11.c (move_costs): Likewise.
12414 * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
12415 * s390.c (s390_branch_condition_mnemonic, regclass_map):
12417 * s390.h (regclass_map): Likewise.
12418 * sh.c (shift_amounts): Likewise.
12419 * sh.md (rotlsi3): Likewise.
12421 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
12423 * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
12424 (ne0+5): Use new clobber to generate proper shift pattern.
12425 Patch by Michael Matz <matz@kde.org>.
12427 2002-03-09 Andreas Schwab <schwab@suse.de>
12429 * gcc.c (validate_all_switches): Also handle `%W{...}'.
12431 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
12433 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
12435 2002-03-09 Jakub Jelinek <jakub@redhat.com>
12438 * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
12439 even for non-representable constants.
12441 Sat Mar 9 07:20:01 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12443 * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
12444 * function.c (fixup_var_refs): Add MAY_SHARE parameter.
12445 (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
12446 (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
12447 (pop_function_context): Compute MAY_SHARE parameter for
12449 (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
12450 (gen_mem_addressof): Call fixup_var_refs with new parm.
12452 * combine.c (make_extraction): Don't make extension of CONST_INT.
12454 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
12456 * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
12457 in o32 and o64 ABIs.
12458 * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
12459 but getting fixed-size structs passed in registers regardless of
12460 padding in o32 and o64 ABIs.
12462 * config/mips/mips.c (mips_va_arg): Apply big-endianness address
12463 offset before loading address of argument passed by transparent
12466 2002-03-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
12468 * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
12470 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
12472 * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
12473 marker such that registers after it are saved.
12475 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12477 * sparc.c (arith_4096_operand): Fix error in last change.
12479 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
12481 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
12482 defaults for MEABI.
12484 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
12486 * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
12489 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
12491 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
12493 Fri Mar 8 21:27:49 CET 2002 Jan Hubicka <jh@suse.cz>
12495 * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
12496 removed; fix return value.
12497 * combine.c (combine_instructions): Dirtify blocks where we failed to
12498 update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
12499 * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
12501 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12503 * gcse.c (insert_insn_end_bb): Fix typo in last change.
12505 Fri Mar 8 21:08:52 CET 2002 Jan Hubicka <jh@suse.cz>
12507 * recog.c (peephole2_optimize): Re-distribute EH edges.
12509 2002-03-08 Neil Booth <neil@daikokuya.demon.co.uk>
12511 * expr.c (expand_expr): Use unsave lang hook.
12512 * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
12513 (LANG_HOOKS_INITIALIZER): Update.
12514 * langhooks.h (struct lang_hooks): New hook unsave.
12515 * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
12516 (unsave_expr_1): Remove unused lang_unsave_expr_now.
12517 (unsave_expr_now_r): Rename lhd_unsave. Update. Return input.
12518 (unsave_expr_now): Remove.
12519 * tree.h (unsave_expr_now, lang_unsave,
12520 lang_unsave_expr_now): Remove.
12523 2002-03-08 Andreas Jaeger <aj@suse.de>
12525 * flow.c (propagate_block_delete_insn): Remove unused variable.
12527 2002-03-08 Kazu Hirata <kazu@hxi.com>
12529 * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
12530 insn length for memory load/store.
12532 2002-03-08 Craig Rodrigues <rodrigc@gcc.gnu.org>
12534 * doc/install.texi (--with-libiconv-prefix): Document.
12536 2002-03-08 Michael Y. Brukman <myb2@cornell.edu>
12538 * doc/sourcebuild.texi: Fix typo.
12540 2002-03-08 Jakub Jelinek <jakub@redhat.com>
12543 * builtins.c (std_expand_builtin_va_arg): Do all computations on
12546 Fri Mar 8 06:48:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12548 * rtl.c (copy_most_rtx): Move from here ...
12549 * emit-rtl.c (copy_most_rtx): ... to here.
12551 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
12553 * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
12554 SUBTARGET_CPP_SIZE_SPEC.
12555 * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
12557 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
12559 2002-03-07 Matt Hiller <hiller@redhat.com>
12561 * gensupport.c (first_dir_md_include): Renamed from include;
12562 change all references.
12563 (last_dir_md_include): Renamed from last_include; change all
12565 (init_md_reader): Unconditionally initialize base_dir whether or
12566 not filename is a relative path.
12568 2002-03-07 Alexandre Oliva <aoliva@redhat.com>
12570 * config/fp-bit.c (_unord_f2): Compile it in even if
12571 US_SOFTWARE_GOFAST is enabled.
12573 * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
12574 NULL_RTX. Set all HFmode operations as NULL_RTX.
12575 * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
12576 NULL_RTX, try reversing the comparison and the operands.
12578 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
12580 * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
12581 genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
12584 Thu Mar 7 16:54:10 CET 2002 Jan Hubicka <jh@suse.cz>
12586 * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
12588 Thu Mar 7 16:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
12590 * basic-block.h (fixup_abnormal_edges): Declare.
12591 * reload1.c (fixup_abnormal_edges): New function.
12592 * reg-stack.c (convert_regs): Use it.
12594 * gcse.c (insert_insn_end_bb): Handle trapping insns.
12596 * gcse.c (hash_scan_set): Refuse instructions with EH edges.
12598 2002-03-07 Richard Sandiford <rsandifo@redhat.com>
12600 * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
12601 (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
12602 * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
12603 (HONOR_SIGN_DEPENDENT_ROUNDING): New.
12604 * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
12605 * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
12606 unless x and y could be infinite.
12607 (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
12608 Check that the common type of both arguments is a real, even for
12609 targets without unordered comparisons. Allow an integer argument
12610 to be compared against a real.
12611 (expand_tree_builtin): Use expand_unordered_cmp.
12612 * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
12613 * cse.c (fold_rtx): Likewise. Fix indentation.
12614 * fold-const.c (fold_real_zero_addition_p): New.
12615 (fold): Use it, and the new HONOR_... macros.
12616 * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
12617 * jump.c (reversed_comparison_code_parts): After searching for
12618 the true comparison mode, use HONOR_NANS to decide whether it
12619 can be safely reversed.
12620 (reverse_condition_maybe_unordered): Remove IEEE check.
12621 * simplify-rtx.c (simplify_binary_operation): Use the new macros
12622 to decide which simplifications are valid. Allow the following
12623 simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
12624 and (a - -b) to (a + b).
12625 (simplify_relational_operation): Use HONOR_NANS.
12626 * doc/tm.texi: Document the MODE_HAS_... macros.
12628 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
12630 * combine.c (simplify_comparison): If simplifying a logical shift
12631 right and compare with constant, force the comparison to unsigned.
12633 2002-03-07 Aldy Hernandez <aldyh@redhat.com>
12635 * doc/invoke.texi: Add documentation for -mabi=no-altivec.
12637 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
12639 (alt_reg_names): Remove % for vrsave.
12641 2002-03-06 Richard Henderson <rth@redhat.com>
12643 PR optimization/5844
12644 * genemit.c (gen_exp): New argument used. Invoke copy_rtx
12645 if used indicates we've already emitted one copy of an operand.
12646 (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
12647 (gen_split): Supply a non-null used.
12649 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
12651 * reload1.c (reload): Unshare all rtl after reload is done.
12653 * simplify-rtx.c (simplify_plus_minus): Do not abort,
12654 but simply fail if the expression is too complex to simplify.
12655 (simplify_gen_binary): Handle simplify_plus_minus failures.
12657 Wed Mar 6 20:32:09 CET 2002 Jan Hubicka <jh@suse.cz>
12659 * toplev.c (rest_of_compilation): Do jump threading before SSA path;
12660 consistently call delete_trivially_dead_insns after CSE and GCSE;
12661 fix DFI_life dumping; do jump threading after liveness; do crossjumping
12662 after liveness2; update comment in last crossjumping.
12663 * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
12665 Wed Mar 6 12:27:10 2002 Jeffrey A Law (law@redhat.com)
12667 * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
12668 after completing fast dead code elimination.
12670 * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
12673 2002-03-06 Phil Edwards <pme@gcc.gnu.org>
12675 * version.c: Fix misplaced leading blanks on first line.
12677 Wed Mar 6 19:08:03 CET 2002 Jan Hubicka <jh@suse.cz>
12679 * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
12681 Wed Mar 6 18:14:43 CET 2002 Jan Hubicka <jh@suse.cz>
12683 * cfgcleanup.c (mentions_nonequal_regs): New function.
12684 (thread_jump): Use it.
12685 * toplev.c (rest_of_compilation): Run jump threading after
12688 2002-03-06 Jakub Jelinek <jakub@redhat.com>
12690 * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
12693 Wed Mar 6 11:28:19 CET 2002 Jan Hubicka <jh@suse.cz>
12695 * predict.c (estimate_bb_frequencies): Do not reload the
12696 frequencies from notes.
12698 Wed Mar 6 10:59:39 CET 2002 Jan Hubicka <jh@suse.cz>
12700 * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
12701 * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
12703 * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
12704 delete_noop_moves): Return indeger.
12705 * flow.c (ndead): New variable.
12706 (propagate_block_delete_insn): Use delete_insn_and_edges; remove
12707 BB argument; update callers.
12708 (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
12709 (life_analysis): Do not call purge_all_dead_edges.
12710 (update_life_info): Return number of deleted insns; print statistics.
12711 (update_life_info_in_dirty_blocks): likewise.
12712 (delete_noop_moves): Use delete_insn_and_edges; print statistics;
12713 return number of insns deleted.
12715 * cse.c: Include timevar.h
12716 (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
12717 iterate until stabilizes; print statistics; return number of killed
12719 * Makefile.in: (cse.o): Add timevar.h dependency
12720 * rtl.h (delete_trivially_dead_insns): New.
12721 * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
12722 * toplev.c (rest_of_compilation): Update callers.
12724 * cfgcleanup.c (try_optimize_cfg): Kill blocks.
12725 (try_optimize_cfg): Do not update liveness.
12726 (cleanup-cfg): Loop until try_optimize_cfg and dead code
12727 removal stabilizes; use delete_trivially_dead_insns.
12729 * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
12731 2002-03-05 Zack Weinberg <zack@codesourcery.com>
12733 * cppmain.c (setup_callbacks): Disable #pragma and #ident
12734 callbacks when processing assembly language.
12736 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
12738 * pa.h (ASM_FILE_END): Define.
12739 * som.h (ASM_FILE_END): Delete.
12741 * pa.c (function_arg): Don't pass floats in general registers in
12742 indirect calls if TARGET_ELF32.
12744 2002-03-05 Richard Henderson <rth@redhat.com>
12746 * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
12748 2002-03-05 Danny Smith <dannysmith@users.sourceforge.net>
12750 * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
12752 2002-03-05 Jakub Jelinek <jakub@redhat.com>
12754 * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
12755 -r command line. Don't hide any symbols if not building
12758 Tue Mar 5 18:31:27 CET 2002 Jan Hubicka <jh@suse.cz>
12760 * cfg.c (dump_flow_info): Warn about profile mismatches.
12761 * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
12762 (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
12764 2002-03-05 Jakub Jelinek <jakub@redhat.com>
12766 * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
12767 wide volatile memory by parts.
12769 2002-03-05 Jakub Jelinek <jakub@redhat.com>
12771 * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
12774 2002-03-05 Richard Henderson <rth@redhat.com>
12776 * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
12778 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
12780 * toplev.c (documented_lang_options): Document more
12781 language-specific options.
12782 * doc/invoke.texi (Warning Options): Correct documentation for
12783 -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
12784 * c-decl.c (c_decode_option): Use a table to handle warning options.
12786 2002-03-05 Hans-Peter Nilsson <hp@bitrange.com>
12788 * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
12789 parameter to mmix_encode_section_info.
12790 (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
12791 relocatably. Always produce ELF, not mmo if linking relocatably.
12792 * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
12793 first is non-zero, don't add symbol prefix.
12794 * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
12795 prototype accordingly.
12797 2002-03-04 Krister Walfridsson <cato@df.lth.se>
12799 * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
12801 2002-03-05 Joseph S. Myers <jsm28@cam.ac.uk>
12803 * configure.in: Increase required makeinfo version to 4.1.
12804 * configure: Regenerate.
12806 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
12808 * .cvsignore: Remove *.info* and genrtl*; these files are generated
12811 2002-03-04 Joseph S. Myers <jsm28@cam.ac.uk>
12813 * doc/include/texinfo.tex: Update to version 2002-03-01.06.
12814 * doc/invoke.texi: Fix @math uses.
12816 Mon Mar 4 15:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
12818 * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
12821 2002-03-03 Aldy Hernandez <aldyh@redhat.com>
12823 * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
12824 (powerpc-*-eabisimaltivec*): Same.
12826 * config/rs6000/t-ppcendian: New.
12828 2002-03-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
12830 * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
12831 nonimmediate_src_operand and nonimmediate_lsrc_operand to
12832 disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
12834 2002-03-03 Richard Henderson <rth@redhat.com>
12836 * toplev.c (rest_of_decl_compilation): Revert last two changes.
12838 2002-03-03 Zack Weinberg <zack@codesourcery.com>
12840 * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
12841 print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
12842 tree.c, config/m68k/m68k.c:
12843 Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
12844 REAL_ARITHMETIC blocks unconditional. Delete some further
12845 #ifdef blocks predicated on REAL_ARITHMETIC.
12846 * flags.h, toplev.c: Delete remaining references to
12847 flag_pretend_float.
12849 * doc/invoke.texi: Remove documentation of -fpretend-float.
12850 * doc/tm.texi: Describe the various REAL_* macros as provided by
12851 real.h, not by the target configuration files.
12853 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
12854 config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
12855 config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
12856 config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
12857 config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
12858 config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
12859 config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
12860 config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
12861 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
12862 config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
12863 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
12864 config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
12865 config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
12866 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
12867 config/xtensa/xtensa.h:
12868 Do not define, undefine, or mention in comments any of
12869 REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
12870 REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
12871 REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
12872 REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
12873 REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
12874 REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
12875 REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
12876 REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
12877 REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
12879 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12881 * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
12882 convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
12883 i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
12884 m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
12885 pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
12886 stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
12888 * defaults.h (BITS_PER_WORD): Define.
12889 * doc/tm.texi (BITS_PER_WORD): Document default value.
12891 * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
12892 m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
12893 stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
12895 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12897 * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
12898 lieu of explicit sizeof/sizeof.
12899 * i386.c (override_options, ix86_init_mmx_sse_builtins,
12900 ix86_expand_builtin): Likewise.
12901 * mips.c (mips_add_gc_roots): Likewise.
12902 * mmix.c (mmix_output_condition): Likewise.
12903 * rs6000.c (rs6000_override_options, altivec_expand_builtin,
12904 altivec_init_builtins): Likewise.
12905 * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
12906 * cppexp.c (Nsuff, parse_number): Likewise.
12907 * cppinit.c (builtin_array_end): Likewise.
12908 * gcc.c (n_default_compilers, process_command): Likewise.
12909 * genpreds.c (output_predicate_decls): Likewise.
12910 * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
12911 * lcm.c (N_ENTITIES): Likewise.
12912 * stor-layout.c (set_sizetype): Likewise.
12914 2002-03-03 Richard Henderson <rth@redhat.com>
12916 * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
12917 for types or labels.
12919 2002-03-03 Richard Henderson <rth@redhat.com>
12921 * c-decl.c (start_decl): Initialized variables are not common.
12923 2002-03-02 Per Bothner <per@bothner.com>
12925 * gcc.c (option_map): Suport new --bootclasspath option.
12926 --CLASSPATH is now just an alias for --classpath.
12928 2002-03-02 Richard Henderson <rth@redhat.com>
12930 * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
12931 load if "internal" visibility.
12932 * doc/extend.texi: Document visibility meanings.
12934 2002-03-02 Richard Henderson <rth@redhat.com>
12936 * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
12937 to functions as well.
12939 2002-03-02 Richard Henderson <rth@redhat.com>
12941 * attribs.c (handle_alias_attribute): Don't call assemble_alias.
12942 (handle_visibility_attribute): Don't call assemble_visibility.
12943 * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
12944 without asmspec. Invoke assemble_alias when needed.
12945 * varasm.c (maybe_assemble_visibility): New.
12946 (assemble_start_function, assemble_variable, assemble_alias): Use it.
12948 2002-03-02 Richard Henderson <rth@redhat.com>
12950 * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
12951 invoke ENCODE_SECTION_INFO with first call flag.
12953 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
12954 config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
12955 config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
12956 config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
12957 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
12958 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
12959 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
12960 config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
12961 config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
12962 config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
12963 config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
12964 config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
12965 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
12966 config/m68hc11/m68hc11.h, config/m88k/m88k.h,
12967 config/mcore/mcore-protos.h, config/mcore/mcore.c,
12968 config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
12969 config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
12970 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
12971 config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
12972 config/sh/sh.h, config/sparc/sparc.h,
12973 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
12974 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
12975 config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
12976 FIRST argument. As needed, examine it and do nothing.
12978 * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
12979 config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
12980 config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
12982 * config/arm/t-pe (pe.o): Add dependencies.
12984 2002-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12986 * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
12987 cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
12988 i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
12989 mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
12990 pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
12991 vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
12992 * defaults.h (BITS_PER_UNIT): Define.
12993 * doc/tm.texi (BITS_PER_UNIT): Document default value.
12995 2002-03-02 Kazu Hirata <kazu@hxi.com>
12997 * config/h8300/h8300-protos.h: Add a prototype for
12998 compute_a_shift_length.
12999 * config/h8300/h8300.c (h8300_asm_insn_count): New.
13000 (compute_a_shift_length): Likewise.
13001 (h8300_adjust_insn_length): Do not adjust insn length of shift
13003 * config/h8300/h8300.md (anonymous shift patterns): Use
13004 compute_a_shift_length.
13006 Sat Mar 2 06:30:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13008 * config/sparc/sparc.c (sparc_initialize_trampoline): Use
13009 trunc_int_for_mode.
13011 * emit-rtl.c (offset_address): Call update_temp_slot_address.
13013 2002-03-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13015 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
13016 * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
13017 * flags.h (flag_zero_initialized_in_bss): Declare.
13018 * toplev.c (flag_zero_initialized_in_bss): New flag.
13019 (lang_independent_options): Add flag_zero_initialized_in_bss.
13020 * tree.c (initializer_zerop): New function.
13021 * tree.h (initializer_zerop): Declare.
13022 * varasm.c (assemble_variable): If we can emit bss, put zero
13023 initializers in the bss section.
13025 2002-03-02 Alan Modra <amodra@bigpond.net.au>
13027 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
13028 like more than one symbol per .weak directive.
13030 2002-03-01 Richard Henderson <rth@redhat.com>
13032 * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
13033 adjust argument_pointer by pretend_args_size.
13034 (ia64_va_start): Adjust va_start address by -pretend_args_size.
13036 2002-03-01 Kazu Hirata <kazu@hxi.com>
13038 * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
13040 Fri Mar 1 20:59:14 CET 2002 Jan Hubicka <jh@suse.cz>
13042 * toplev.c (rest_of_compilation): Delete dead jumptables before
13044 * flow.c (delete_dead_jumptables): Make global.
13045 * rtl.h (delete_dead_jumptables): Declare.
13047 2002-03-01 David Edelsohn <edelsohn@gnu.org>
13049 * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
13050 * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
13051 * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
13053 2002-03-01 Kazu Hirata <kazu@hxi.com>
13055 * config/h8300/h8300-protos.h: Fix formatting.
13056 * config/h8300/h8300.c: Likewise.
13057 * config/h8300/h8300.h: Likewise.
13059 2002-03-01 Kazu Hirata <kazu@hxi.com>
13061 * config/h8300/h8300.c (print_operand): Support 16-bit
13062 constant addresses.
13063 * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
13065 2002-02-28 Richard Henderson <rth@redhat.com>
13067 * expmed.c (store_bit_field): Prevent generation of CONCATs;
13068 pun complex values as integers; use gen_lowpart instead of
13070 (extract_bit_field): Likewise.
13072 2002-03-01 Alan Modra <amodra@bigpond.net.au>
13073 David Edelsohn <edelsohn@gnu.org>
13075 * doc/tm.texi (ASM_WEAKEN_DECL): Document.
13076 (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
13077 (SUPPORTS_WEAK): Likewise.
13078 * output.h (add_weak): Add tree param.
13079 * varasm.c (add_weak): Likewise. Save decl.
13080 (struct weak_syms): Add decl field.
13081 (mark_weak_decls): New function.
13082 (init_varasm_once): ggc_add_root mark_weak_decls.
13083 (assemble_start_function): Use ASM_WEAKEN_DECL.
13084 (assemble_variable): Likewise.
13085 (assemble_alias): Likewise.
13086 (declare_weak): Pass decl to add_weak.
13087 (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
13088 (remove_from_pending_weak_list): Declare and define for
13090 * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
13091 * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
13092 * defaults.h (SUPPORTS_WEAK): Likewise.
13093 * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
13094 .weak for code sym. Do emit .size for descriptor sym.
13095 (ASM_DECLARE_FUNCTION_SIZE): Define.
13096 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
13097 (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here. Don't output
13098 .lglobl unless TARGET_XCOFF. Formatting fixes.
13099 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
13100 .weak for code sym.
13101 (HANDLE_PRAGMA_WEAK): Remove.
13102 (ASM_WEAKEN_LABEL): Remove.
13103 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
13105 2002-03-01 Jason Merrill <jason@redhat.com>
13107 * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
13108 (TARGET_EXPR_CLEANUP): New macro.
13110 2002-02-28 Steve Ellcey <sje@cup.hp.com>
13112 * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
13113 to take ptr_extend into account as third type of extension.
13114 (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
13115 fields used by SUBREG_PROMOTED_UNSIGNED_P.
13116 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
13117 (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
13118 * calls.c (precompute_arguments): Use new macro.
13119 (expand_call): Ditto.
13120 * combine.c (nonzero_bits): Ditto.
13121 (record_promoted_value): Ditto.
13122 * expr.c (store_expr): Ditto.
13123 (expand_expr): Ditto.
13124 * function.c (assign_parms): Ditto.
13126 2002-02-28 Alexandre Oliva <aoliva@redhat.com>
13128 * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
13129 override -shared and -shared-libgcc.
13131 2002-02-28 David O'Brien <obrien@FreeBSD.org>
13133 * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
13135 * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS. It appears
13138 2002-02-28 Richard Henderson <rth@redhat.com>
13140 * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
13141 4 cycle latency from MM producers.
13142 (ia64_internal_sched_reorder): Likewise with pipeline flush.
13144 2002-02-28 Jakub Jelinek <jakub@redhat.com>
13146 * mklibgcc.in: Don't use GNU make extension.
13148 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
13150 * c-parse.in (STATIC): New terminal.
13151 (scspec): New non-terminal. Update productions accordingly.
13152 (program): Remove bogus ifc / end ifc.
13153 (array_declarator): Simplify production using STATIC.
13155 2002-02-28 Jim Meyering <meyering@lucent.com>
13157 * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
13158 \a still means TARGET_BELL.
13160 2002-02-28 Richard Henderson <rth@redhat.com>
13162 * haifa-sched.c (sched_emit_insn): New.
13163 (schedule_block): Use last_scheduled_insn to track last insn.
13164 * sched-int.h (sched_emit_insn): Prototype.
13165 * config/ia64/ia64.c (last_issued): Remove.
13166 (ia64_variable_issue): Don't set it.
13167 (nop_cycles_until): Use sched_emit_insn.
13169 2002-02-28 Andrew MacLeod <amacleod@redhat.com>
13171 * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
13172 extended constants.
13174 2002-02-28 Kazu Hirata <kazu@hxi.com>
13176 * config/h8300/h8300.c: Fix formatting.
13177 * config/h8300/h8300.h: Likewise.
13179 2002-02-28 Marek Michalkiewicz <marekm@amelek.gda.pl>
13181 * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
13182 which may overwrite the high byte of the frame pointer.
13184 2002-02-28 Bo Thorsen <bo@suse.de>
13186 * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
13187 (STARTFILE_SPEC): Add 64 bit files.
13188 (ENDFILE_SPEC): Likewise.
13190 2002-02-28 Jason Merrill <jason@redhat.com>
13192 * c-decl.c (finish_function): Only warn about missing return
13193 statement with -Wreturn-type.
13195 Don Feb 28 11:24:30 CET 2002 Jan Hubicka <jh@suse.cz>
13197 * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
13199 * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
13200 PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
13202 Don Feb 28 11:07:36 CET 2002 Jan Hubicka <jh@suse.cz>
13204 * basic-block.h (BB_REACHABLE): Renumber.
13205 (BB_DIRTY, BB_NEW): New flags.
13206 (clear_bb_flags): Declare.
13207 (update_life_info_in_dirty_blocks): Declare.
13208 * cfg.c (clear_bb_flags): New function.
13209 * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
13210 * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
13211 reorder_insns, emit_insn_after): Mark block as dirty.
13212 * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
13213 (update_life_info_in_dirty_blocks): New function.
13214 * recog.c (apply_change_group): Dirtify block.
13216 * cse.c (cse_insn): Reorder emitting of jump insn to keep
13218 * gcse.c (delete_null_pointer_checks): Likewise.
13220 * toplev.c (dump_file_index): Move cse2 after bp,
13222 (dump_file_info): Similary.
13223 (rest_of_compilation): Avoid most of CFG rebuilds;
13224 do first if converision after null pointer checks, do cse2
13225 after branch prediction; avoid full liveness rebuild after
13226 initializing subregs.
13227 * invoke.texi (-d options): Document -du, renumber.
13229 * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
13230 (notice_new_block): Do not set BB_UPDATE_LIFE.
13231 (try_forward_edges, merge_blocks_move_predecessor_nojumps,
13232 merge_blocks_move_successor_nojumps, merge_blocks,
13233 try_crossjump_to_edge): Likewise.
13234 (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
13235 * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
13236 * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
13237 (merge_of_block): Do not use life_data_ok.
13238 (find_if_case_1): Do not use SET_UPDATE_LIFE.
13239 (if_convert): Use BB_DIRTY mechanizm to update life.
13240 * lcm.c (optimize_mode_switching): Update
13241 update_life_info_in_dirty_blocks
13243 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
13245 * Makefile.in (integrate.o): Update.
13246 * c-decl.c (copy_lang_decl): Rename.
13247 * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
13248 * integrate.c: Include langhooks.h.
13249 (copy_decl_for_inlining): Update to use langhook.
13250 * langhooks-def.h (lhd_do_nothing_t,
13251 LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
13252 (LANG_HOOKS_INITIALIZER): Update.
13253 * langhooks.c (lhd_do_nothing_t): New.
13254 * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
13255 * tree.h (copy_lang_decl): Remove.
13257 * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
13259 2002-02-27 Andrew MacLeod <amacleod@redhat.com>
13261 * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
13262 POST_DEC, and POST_MODIFY.
13264 2002-02-27 Zack Weinberg <zack@codesourcery.com>
13266 * c-typeck.c (digest_init): Remove unused parameter; all
13269 2002-02-27 Geoffrey Keating <geoffk@redhat.com>
13271 * expmed.c (expand_shift): Correctly test for low part of a
13274 2002-02-27 Ulrich Weigand <uweigand@de.ibm.com>
13276 * config/s390/s390.c (s390_chunkify_pool): Do not confuse
13277 insn UIDs with insn addresses.
13279 2002-02-27 Zack Weinberg <zack@codesourcery.com>
13281 * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
13282 c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
13283 cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
13284 builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
13285 gcc.c, toplev.c: Delete code implementing -traditional mode.
13287 * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
13288 doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
13289 Document removal of -traditional mode for compilation, and
13290 remove documentation only relevant to that mode.
13292 * config/nextstep.h, config/ptx4.h, config/svr4.h,
13293 config/convex/convex.h, config/d30v/d30v.h,
13294 config/i386/dgux.h, config/i386/osf1elf.h,
13295 config/i386/osfelf.h, config/i386/osfrose.h,
13296 config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
13297 config/m68k/hp310.h, config/m88k/dgux.h,
13298 config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
13299 config/m88k/m88k.h, config/m88k/openbsd.h,
13300 config/mips/abi64.h, config/mips/osfrose.h,
13301 config/mips/svr4-5.h, config/mips/svr4-t.h,
13302 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
13303 config/stormy16/stormy16.h: Remove all references to
13304 -traditional from target specs. Delete all mention of the
13305 no-longer-necessary TRADITIONAL_RETURN_FLOAT macro. Also
13306 delete a couple of commented-out definitions of
13307 DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
13310 * system.h: Poison TRADITIONAL_RETURN_FLOAT.
13311 * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
13313 2002-02-27 Zack Weinberg <zack@codesourcery.com>
13315 * mklibgcc.in: Don't use \n in a line subject to
13316 interpretation by echo.
13318 2002-02-27 Graham Stott <grahams@redhat.com>
13320 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
13323 * loop.c (prescan_loop): Handle PARALLEL.
13325 * unroll.c (loop_iterations): Return 0 if the add_val for
13328 * final.c (output_operand_lossage): Constify PFX_STR.
13330 * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
13332 Wed Feb 27 10:45:19 CET 2002 Jan Hubicka <jh@suse.cz>
13334 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
13335 * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
13337 Wed Feb 27 10:39:20 CET 2002 Jan Hubicka <jh@suse.cz>
13339 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
13341 2002-02-27 Neil Booth <neil@daikokuya.demon.co.uk>
13343 * cpplex.c (_cpp_lex_token): Handle directives in macro
13345 * cpplib.c (_cpp_handle_directive): Save and restore state
13346 if parsing macro args when entering a directive.
13347 * cppmacro.c (collect_args): No need to handle directives
13348 in macro arguments.
13349 (enter_macro_context, replace_args): Use the original macro
13350 definition in case it was redefined whilst collecting arguments.
13352 * cpp.texi: Update.
13354 2002-02-26 David Edelsohn <edelsohn@gnu.org>
13356 * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
13357 * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
13358 * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
13360 * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
13361 (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
13362 (load_toc_v4_PIC_2): Same.
13364 2002-02-26 Alan Modra <amodra@bigpond.net.au>
13366 * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
13368 2002-02-26 Richard Henderson <rth@redhat.com>
13370 * config/alpha/alpha.md (ashldi_se): Re-enable.
13372 2002-02-26 Richard Henderson <rth@redhat.com>
13374 * config/alpha/alpha.c (alpha_encode_section_info): Examine
13375 MODULE_LOCAL_P; improve commentary.
13377 2002-02-26 Zack Weinberg <zack@codesourcery.com>
13379 * doc/cpp.texi: Clarify documentation of relationship between
13380 #line and #include.
13382 2002-02-26 Kazu Hirata <kazu@hxi.com>
13384 * config/h8300/h8300-protos.h: Update the prototype for
13385 compute_logical_op_length. Add the prototype for
13386 compute_logical_op_cc.
13387 * config/h8300/h8300.c (compute_logical_op_length): Figure out
13388 code from operands.
13389 (compute_logical_op_cc): New.
13390 * config/h8300/h8300.md: Combine all the logical op patterns
13391 in HImode and SImode. Use compute_logical_op_cc.
13393 2002-02-26 Kelley Cook <kelleycook@comcast.net>
13395 * config/i386/i386.c (print_operand): Don't append ATT-style
13396 length suffixs to x87 opcodes when in Intel mode.
13398 2002-02-26 Ryan T. Sammartino <ryants@shaw.ca>
13400 * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
13401 (init_emit_once): Update calls.
13402 * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
13403 (init_syntax_once): Prototype.
13405 2002-02-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
13407 * pa-linux.h (LIB_SPEC): Update definition.
13408 * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
13410 2002-02-26 Richard Henderson <rth@redhat.com>
13412 * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
13413 if we emitted a stop bit.
13415 2002-02-26 Jakub Jelinek <jakub@redhat.com>
13417 * configure.in (libgcc_visibility): Substitute.
13418 * configure: Rebuilt.
13419 * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
13420 defined symbols .hidden.
13422 2002-02-26 Jakub Jelinek <jakub@redhat.com>
13424 * attribs.c (c_common_attribute_table): Add visibility.
13425 (handle_visibility_attribute): New function.
13426 * varasm.c (assemble_visibility): New function.
13427 * output.h (assemble_visibility): Add prototype.
13428 * tree.h (MODULE_LOCAL_P): Define.
13429 * crtstuff.c (__dso_handle): Use visibility attribute.
13430 * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
13431 for MODULE_LOCAL_P symbols too.
13432 * config/ia64/ia64.c (ia64_encode_section_info): Handle
13433 MODULE_LOCAL_P symbols the same way as local symbols.
13434 Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
13435 into .sdata/.sbss by the user.
13436 * doc/extend.texi (Function Attributes): Document visibility
13439 2002-02-26 Jakub Jelinek <jakub@redhat.com>
13442 * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
13443 STRING_CST initializer spanning the whole variable without
13445 If expand_expr returned MEM, don't use it.
13447 2002-02-26 Alexandre Oliva <aoliva@redhat.com>
13449 * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
13450 generate a die for the lexical block.
13452 2002-02-26 Kazu Hirata <kazu@hxi.com>
13454 * config/h8300/h8300-protos.h: Add a prototype for
13455 compute_logical_op_length.
13456 * config/h8300/h8300.c (compute_logical_op_length): New.
13457 * config/h8300/h8300.md (anonymous logical patterns): Use
13458 compute_logical_op_length for length.
13460 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
13462 * dwarf2out.c (modified_type_die): Do not call type_main_variant
13464 (gen_type_die): Same.
13466 * attribs.c (handle_vector_size_attribute): Set debug information.
13468 2002-02-26 Daniel Egger <degger@fhm.edu>
13470 * config/rs6000/rs6000.md: Swap define_insn attributes to
13471 fix incorrect generation of merge high instructions instead
13474 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
13476 * c-typeck.c (really_start_incremental_init): Use
13477 bitsize_zero_node for vectors.
13479 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
13481 * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
13482 ("*set_vrsave_internal"): Same.
13484 2002-02-25 Richard Henderson <rth@redhat.com>
13486 * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
13487 in EXPAND_SUM case. Use host_integerp/tree_low_cst.
13489 2002-02-25 Jakub Jelinek <jakub@redhat.com>
13492 * config/i386/i386.c (ix86_return_pops_args): Only pop
13493 fake structure return argument if it was passed on the stack.
13495 2002-02-25 Jason Merrill <jason@redhat.com>
13497 * attribs.c (decl_attributes): Also re-layout PARM_DECL and
13500 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
13502 * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
13503 link with shared_name only.
13504 * doc/invoke.texi (Link Options): Document new behavior.
13506 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
13508 * c-typeck.c (push_init_level): Handle vectors.
13510 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
13512 * config/sparc/sparc.c (const64_high_operand): Zero-extend
13513 operands of SPARC_SETHI_P.
13514 (input_operand): Likewise.
13515 (sparc_emit_set_const32): Likewise.
13516 * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
13517 (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
13518 (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'. Add `N' as SETHI.
13519 * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
13520 (movdi_insn_sp64_vis): Likewise.
13521 (movdi split, movdf split): Use SETHI32.
13522 * doc/md.texi: Document SPARC constraints L, M and N.
13524 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
13526 * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
13527 ("*set_vrsave_internal"): use mfspr for Darwin.
13529 * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
13530 gen_get_vrsave_internal.
13532 Sun Feb 24 16:38:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13534 * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
13536 2002-02-24 Neil Booth <neil@daikokuya.demon.co.uk>
13538 * cpplex.c (cpp_interpret_charconst): Get signedness or
13539 otherwise of wide character constants correct.
13540 * cppexp.c (lex): Get signedness of wide charconsts correct.
13542 Sun Feb 24 07:41:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13544 * optabs.c (widen_operand): Only call convert_modes for
13545 promoted SUBREG if signedness matches.
13546 * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
13548 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
13550 * cpplib.c (glue_header_name): Use local buffer to build up
13553 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
13555 * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
13557 2002-02-23 Kazu Hirata <kazu@hxi.com>
13559 * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
13560 H8/300[HS] separately.
13561 * config/h8300/h8300.md: Remove the early clobber constraint
13562 from bit field patterns.
13564 2002-02-23 Kazu Hirata <kazu@hxi.com>
13566 * config/h8300/h8300.md (mulqihi3): Tighten predicates to
13568 (mulhisi3): Likewise.
13569 (umulqisi3): Likewise.
13570 (umulhisi3): Likewise.
13572 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
13574 * cppinit.c (output_deps): Correct test for stdout output.
13575 (init_dependency_output): Cure warning.
13577 Sat Feb 23 08:42:47 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13579 * expr.c (store_expr): When converting expression to promoted
13580 equivalent type, allow using SUBREG_REG of TARGET as the target
13581 of the expansion of EXP.
13582 * loop.c (basic_induction_var, case SUBREG): Always look inside.
13583 * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
13584 (alpha_emit_set_const): Handle SImode when can't make new pseudos.
13585 (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
13586 * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
13588 2002-02-23 Joseph S. Myers <jsm28@cam.ac.uk>
13590 * doc/contribute.texi, doc/extend.texi, doc/install.texi,
13591 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
13592 doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
13594 2002-02-23 Jakub Jelinek <jakub@redhat.com>
13596 PR optimization/5747
13597 * loop.c (scan_loop): Update reg info if move_movables created new
13600 2002-02-23 David Edelsohn <edelsohn@gnu.org>
13602 * gcc.c (init_gcc_spec): Revert last change.
13604 2002-02-23 David Edelsohn <edelsohn@gnu.org>
13606 * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
13607 gpc_reg_operand constraint.
13609 2002-02-23 Alan Modra <amodra@bigpond.net.au>
13611 * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
13612 Simplify comparison of `low'.
13613 (add_operand): Fix formatting.
13614 (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
13615 (mask_operand): Disallow mask to wrap in 64-bit mode.
13616 (rs6000_stack_info): Remove redundant test setting push_p.
13617 (output_toc): Fix formatting.
13618 * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
13619 cc_reg_not_cr0_operand constraint.
13620 (booldi3, boolcdi3 splitters): Same.
13622 2002-02-23 Aldy Hernandez <aldyh@redhat.com>
13624 * config/rs6000/altivec.h: Add extra level of parentheses on casts.
13626 2002-02-22 David Edelsohn <edelsohn@gnu.org>
13628 * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
13629 gcc invoked with -shared-libgcc.
13631 2002-02-22 Jakub Jelinek <jakub@redhat.com>
13634 * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
13635 decl if any of elements was TREE_USED.
13637 2002-02-22 Alexandre Oliva <aoliva@redhat.com>
13639 * config/sparc/sol2.h: Don't include sys/mman.h.
13640 * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
13641 (arith_4096_operand): Don't throw high bits away.
13642 (const64_operand): Take sign extension of CONST_INTs into account.
13643 (const64_high_operand, sparc_emit_set_const32): Likewise.
13644 (GEN_HIGHINT64): Likewise.
13645 (sparc_emit_set_const64_quick1): Likewise.
13646 (const64_is_2insns): Likewise.
13647 (print_operand): Use trunc_int_for_mode for sign extension.
13648 * config/sparc/sparc.h (SMALL_INT32): Likewise.
13649 * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
13650 chars. Assume CONST_INT is already properly sign-extended.
13651 (movdi split): Sign-extend each SImode part.
13652 (andsi3 split): Don't mask high bits off, so that result
13653 remains properly sign-extend.
13654 (iorsi3 split): Likewise.
13655 (xorsi3 split): Likewise.
13657 2002-02-22 Richard Sandiford <rsandifo@redhat.com>
13659 * fold-const.c (fold): Fix typo in comments.
13661 2002-02-21 Diego Novillo <dnovillo@redhat.com>
13663 * Makefile.in (langhooks.o): Update dependencies.
13665 2002-02-21 Diego Novillo <dnovillo@redhat.com>
13667 * langhooks.c: Include flags.h.
13669 2002-02-21 Aldy Hernandez <aldyh@redhat.com>
13671 * testsuite/gcc.dg/attr-alwaysinline.c: New.
13673 * c-common.c (c_common_post_options): Set inline trees by
13676 * doc/extend.texi (Function Attributes): Document always_inline
13678 Update documentation about inlining when not optimizing.
13680 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
13682 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
13683 unless DECL_ALWAYS_INLINE.
13685 * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
13686 unless DECL_ALWAYS_INLINE.
13687 (c_disregard_inline_limits): Disregard if always_inline set.
13689 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
13690 Disregard if always_inline set.
13691 (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
13692 unless DECL_ALWAYS_INLINE.
13694 * attribs.c (handle_always_inline_attribute): New.
13695 (c_common_attribute_table): Add always_inline.
13697 * config/rs6000/altivec.h: Add prototypes for builtins
13698 requiring the always_inline attribute.
13700 2002-02-21 Eric Christopher <echristo@redhat.com>
13702 * expmed.c (store_bit_field): Try to simplify the subreg
13703 before generating a new one when when the mode size of
13704 value is less than maxmode.
13706 2002-02-21 Richard Henderson <rth@redhat.com>
13708 * emit-rtl.c (offset_address): Use simplify_gen_binary rather
13709 than gen_rtx_PLUS to form the sum.
13710 * explow.c (force_reg): Rearrange to not allocate new pseudo
13711 when force_operand returns a register.
13712 * expr.c (expand_assignment): Allow offset_rtx expansion to
13713 return a sum. Do not force addresses into registers.
13714 (expand_expr): Likewise.
13715 * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
13716 to canonicalize arithmetic that didn't simpify.
13717 (simplify_plus_minus): New argument force; update
13718 all callers. Don't split CONST unless we can do something with it,
13719 and wouldn't lose the constness of the operands.
13721 * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
13722 that we generated earlier.
13724 2002-02-21 Tom Tromey <tromey@redhat.com>
13726 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
13727 (output_line_info): Use constant `1', with a long explanatory
13729 * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
13731 Thu Feb 21 22:43:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
13733 * jump.c (redirect_jump): If old label has no UID, don't try to
13736 Thu Feb 21 21:17:21 2002 J"orn Rennecke <joern.rennecke@superh.com>
13738 * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
13739 If input is constant, do shifts at compile time.
13741 2002-02-21 Joseph S. Myers <jsm28@cam.ac.uk>
13743 * doc/extend.texi: Fix some more overfull hboxes.
13745 2002-02-21 Jakub Jelinek <jakub@redhat.com>
13747 PR optimization/4994
13748 * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
13751 2002-02-21 Jakub Jelinek <jakub@redhat.com>
13754 * expr.h (expand_and): Add mode argument.
13755 * expmed.c (expand_and): Add mode argument.
13756 (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
13757 * expr.c (store_field, expand_expr, do_store_flag): Likewise.
13758 * except.c (expand_builtin_extract_return_addr): Likewise.
13759 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
13760 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
13761 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
13762 Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
13763 * config/c4x/c4x.md: Use GEN_INT (x) instead of
13764 gen_rtx (CONST_INT, VOIDmode, x).
13766 2002-02-21 Jakub Jelinek <jakub@redhat.com>
13769 * stmt.c (warn_if_unused_value): Move side effects test once more.
13771 2002-02-20 Torbjorn Granlund <tege@swox.com>
13773 * config/avr/avr.md: Add more patterns for mized-mode add and subtract
13774 (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
13776 Thu Feb 21 16:20:46 2002 Alexandre Oliva <aoliva@redhat.com>
13778 * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
13779 SUBREG or ZERO_EXTEND.
13781 Thu Feb 21 15:35:46 2002 J"orn Rennecke <joern.rennecke@superh.com>
13783 * sh.h (current_function_anonymous_args): Remove.
13784 (SETUP_INCOMING_VARARGS): Don't set it - just check that one
13785 of current_function_varargs and current_function_stdarg is set.
13786 * sh.c (sh_expand_prologue): Check current_function_varargs /
13787 current_function_stdarg / TARGET_SH5 instead of
13788 current_function_anonymous_args.
13790 * sh64.h (TARGET_VERSION): Define.
13792 2002-02-20 David Edelsohn <edelsohn@gnu.org>
13794 * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
13795 VRSAVE_REGNO on TARGET_ALTIVEC.
13797 2002-02-20 Alan Modra <amodra@bigpond.net.au>
13799 * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
13800 bits of SImode const_int.
13801 (includes_rshift_p): Likewise.
13802 (print_operand): Call mask_operand and mask64_operand with correct
13804 (rs6000_output_function_epilogue): Pad traceback table to word.
13805 * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
13806 (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
13807 mask64_operand with correct mode.
13808 (FUNCTION_ARG_REGNO_P): Correct parentheses.
13810 2002-02-20 Jakub Jelinek <jakub@redhat.com>
13813 * varasm.c (get_pool_constant_mark): New.
13814 * rtl.h (get_pool_constant_mark): Add prototype.
13815 * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
13816 be represented if it has not been output.
13818 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
13820 * combine.c (do_SUBST): Sanity check substitutions of
13821 CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
13822 (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
13823 CONST_INT into its operand.
13824 (known_cond): Likewise, for ZERO_EXTEND.
13825 * simplify-rtx.c (simplify_unary_operation): Fix condition to
13826 allow for simplification of wide modes. Reject CONST_INTs in
13827 ZERO_EXTEND when their actual mode is not given.
13829 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
13831 * c-decl.c (pushdecl): If no global declaration is found for an
13832 extern declaration in block scope, try a limbo one.
13834 2002-02-20 Jakub Jelinek <jakub@redhat.com>
13837 * c-common.c (pointer_int_sum): Moved from...
13838 * c-typeck.c (pointer_int_sum): ...here.
13839 * c-common.h (pointer_int_sum): Add prototype.
13841 2002-02-20 Jakub Jelinek <jakub@redhat.com>
13844 * c-decl.c (duplicate_decls): Return 0 if issued error about
13847 2002-02-20 Roger Sayle <roger@eyesopen.com>
13848 Jakub Jelinek <jakub@redhat.com>
13851 * tree.c (host_integerp): Ensure that the constant integer is
13852 representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
13853 when pos is zero or non-zero respectively. Clarify comment.
13854 * c-format.c (check_format_info_recurse): Fix host_integerp
13855 usage; the pos argument should be zero when assigning to a
13856 signed HOST_WIDE_INT.
13858 2002-02-20 Richard Henderson <rth@redhat.com>
13860 * config/i386/i386.c (ix86_expand_vector_move): Use the mode
13861 of the operand, rather than assuming TImode.
13862 (ix86_expand_binop_builtin): Cope with commutative patterns
13863 using nonimmediate_operand for both operands.
13864 (ix86_expand_timode_binop_builtin): Likewise.
13865 (ix86_expand_store_builtin): Validate operand 1.
13866 (ix86_expand_unop1_builtin): Likewise.
13868 2002-02-20 Philip Blundell <philb@gnu.org>
13871 * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
13873 2002-02-20 Richard Henderson <rth@redhat.com>
13876 * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
13878 2002-02-20 Tom Tromey <tromey@redhat.com>
13880 * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
13881 * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
13882 * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
13883 * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
13884 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
13887 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
13889 * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
13890 for (const_int 0) in X not just INTVAL.
13892 2002-02-20 Joseph S. Myers <jsm28@cam.ac.uk>
13894 * doc/extend.texi: Avoid or reduce overfull hboxes.
13896 2002-02-20 Diego Novillo <dnovillo@redhat.com>
13898 * expmed.c (store_bit_field): Do not store bit fields using SUBREG
13899 operations if the field does not start at a mode boundary.
13901 2001-02-20 Joel Sherrill <joel@OARcorp.com>
13903 * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
13904 config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
13905 Also done for -Acpu and -Amachine.
13907 2002-02-20 Neil Booth <neil@daikokuya.demon.co.uk>
13909 * cppinit.c (init_dependency_output): Take deps output file
13910 from -o if none given with -MF. Suppress normal output.
13911 * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
13912 * doc/cpp.texi, doc/invoke.texi: Update.
13914 2002-02-19 Zack Weinberg <zack@codesourcery.com>
13916 * toplev.c (output_quoted_string): Write unprintable
13917 characters with octal escapes.
13919 2002-02-19 David Edelsohn <edelsohn@gnu.org>
13921 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
13922 really_call_used[VRSAVE_REGNO] if not Altivec.
13924 2002-02-19 Alan Modra <amodra@bigpond.net.au>
13926 * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
13928 (constant_pool_expr_1): Fix formatting.
13929 (rs6000_legitimize_reload_address): Likewise.
13931 Tue Feb 19 20:13:57 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13933 * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
13934 now that we have one.
13936 2002-02-19 Zack Weinberg <zack@codesourcery.com>
13938 * tree.h (struct tree_common): Remove aux. Add unused_0 at
13939 end of first block of bitfields (which was only seven bits);
13940 rename dummy to unused_1; remove comment which is no longer true.
13942 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
13944 * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
13946 2002-02-19 Philip Blundell <pb@nexus.co.uk>
13949 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
13953 * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
13954 arm_is_longcall_p rather than inspecting call-type cookie
13956 (call_value_insn) [TARGET_THUMB]: Likewise.
13958 2002-02-19 Graham Stott <grahams@redhat.com>
13960 * config/i386/i386.c (ix86_expand_builtin): Fix typo.
13962 2002-02-19 David Edelsohn <edelsohn@gnu.org>
13964 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
13965 ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
13966 (FP_SAVE_INLINE): Delete.
13968 * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
13969 * config/rs6000/eabi.asm: Remove ABI save restore routines.
13970 * config/rs6000/t-ppccomm: Build crtsavres.o.
13971 * config/rs6000/crtsavres.asm: New file.
13973 2002-02-19 Philip Blundell <philb@gnu.org>
13975 * config/arm/arm.c (use_return_insn): Don't reject interrupt
13977 (arm_compute_save_reg_mask): Save LR for interrupt functions too.
13978 (output_return_instruction): Allow interrupt functions to return with
13979 ldmfd sp!, {... pc}^. Use LDR to restore any single register.
13980 (arm_expand_prologue): Subtract 4 before stacking LR in an
13981 interrupt function.
13983 2002-02-19 Philip Blundell <pb@nexus.co.uk>
13985 * config/arm/arm.c (arm_encode_call_attribute): Operate on any
13986 decl, not just FUNCTION_DECL.
13987 (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
13988 (arm_assemble_integer): Likewise.
13989 * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
13992 2002-02-19 matthew green <mrg@eterna.com.au>
13994 * config.gcc (sparc-*-netbsdelf*): Enable target.
13995 (sparc64-*-netbsd*): New target.
13996 * config/sparc/netbsd-elf.h: New file.
13997 * config/sparc/t-netbsd64: New file.
13999 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
14001 * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
14003 2002-02-19 Ryan T. Sammartino <ryants@shaw.ca>
14005 * doc/invoke.texi: explicitly list the style guidelines that
14006 -Weffc++ checks for.
14008 Tue Feb 19 12:37:23 CET 2002 Jan Hubicka <jh@suse.cz>
14010 * regmove.c (regmove_optimize): Avoid increasing of register pressure.
14012 2002-02-19 Neil Booth <neil@daikokuya.demon.co.uk>
14015 * gcc.c (cpp_unique_options): Treat -o as indicating object file
14016 only if not -E. If -E, pass -o through to the preprocessor.
14018 2002-02-19 Kazu Hirata <kazu@hxi.com>
14020 * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
14021 register number with an appropriate macro.
14023 2002-02-19 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
14025 * doc/rtl.texi (Constants): Close @code tag.
14027 2002-02-19 Aldy Hernandez <aldyh@redhat.com>
14029 * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
14030 ("mmx_uavgv4hi3"): Same.
14031 ("pmulhrwv4hi3"): Same.
14033 * tree-inline.c (walk_tree): Handle vectors.
14035 * c-common.c (constant_expression_warning): Handle vectors.
14036 (overflow_warning): Same.
14038 * sched-deps.c (sched_analyze_2): Handle vectors.
14040 * rtlanal.c (rtx_unstable_p): Handle vectors.
14041 (rtx_varies_p): Same.
14042 (count_occurrences): Same.
14043 (regs_set_between_p): Same.
14044 (modified_between_p): Same.
14045 (modified_in_p): Same.
14046 (volatile_insn_p): Same.
14047 (volatile_refs_p): Same.
14048 (side_effects_p): Same.
14049 (may_trap_p): Same.
14050 (inequality_comparisons_p): Same.
14051 (replace_regs): Same.
14052 (computed_jump_p_1): Same.
14054 * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
14056 (inner_mode_array): New.
14057 (copy_rtx): Handle vectors.
14058 (copy_most_rtx): Same.
14059 (rtx_equal_p): Same.
14060 (get_mode_alignment): Adjust for vectors.
14062 * resource.c (mark_referenced_resources): Handle vectors.
14063 (mark_set_resources): Same.
14065 * reload1.c (eliminate_regs): Handle vectors.
14066 (elimination_effects): Same.
14067 (scan_paradoxical_subregs): Same.
14069 * reload.c (subst_reg_equivs): Handle vectors.
14071 * regrename.c (scan_rtx): Handle vectors.
14073 * regclass.c (reg_scan_mark_refs): Handle vectors.
14075 * recog.c (find_single_use_1): Handle vectors.
14077 * local-alloc.c (equiv_init_varies_p): Handle vectors.
14078 (contains_replace_regs): Same.
14079 (memref_referenced_p): Same.
14081 * integrate.c (copy_rtx_and_substitute): Handle vectors.
14082 (subst_constants): Same.
14084 * genattrtab.c (attr_copy_rtx): Handle vectors.
14085 (encode_units_mask): Same.
14086 (clear_struct_flag): Same.
14087 (count_sub_rtxs): Same.
14089 * gcse.c (want_to_gcse_p): Handle vectors.
14090 (oprs_unchanged_p): Same.
14091 (hash_expr_1): Same.
14092 (oprs_not_set_p): Same.
14093 (expr_killed_p): Same.
14094 (compute_transp): Same.
14095 (store_ops_ok): Same.
14097 * function.c (purge_addressof_1): Do not allow paradoxical subregs
14099 (fixup_var_refs_1): Same.
14100 (instantiate_virtual_regs_1): Same.
14102 * fold-const.c (operand_equal_p): Handle vectors.
14104 (rtl_expr_nonnegative_p): Same.
14106 * flow.c (mark_used_regs): Handle vectors.
14108 * df.c (df_uses_record): Handle vectors.
14110 * cselib.c (cselib_subst_to_values): Handle vectors.
14111 (cselib_mem_conflict_p): Same.
14114 * cse.c (canon_reg): Handle vectors.
14116 (cse_process_notes): Same.
14117 (count_reg_usage): Same.
14118 (canon_hash): Same.
14120 * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
14122 * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
14124 * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
14125 (gen_rtx): Handle CONST_VECTOR.
14126 (gen_const_vector_0): New.
14127 (copy_rtx_if_shared): CONST_VECTORs can be shared.
14128 (reset_used_flags): Same.
14129 (copy_insn_1): Same.
14130 (initializer_constant_valid_p): Handle VECTOR_CST.
14132 * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
14134 * doc/rtl.texi (Constants): Document const_vector.
14135 (CONST0_RTX): Update for vectors.
14136 (RTL sharing): Same.
14138 * print-tree.c (print_node): Add case for VECTOR_CST.
14140 * tree.h (TREE_VECTOR_CST_ELTS): New.
14141 (struct tree_vector): New.
14142 (union tree_node): Add vector node.
14143 (build_vector): Add prototype.
14145 * tree.def (VECTOR_CST): New.
14147 * tree.c (build_vector): New.
14149 * expmed.c (make_tree): Handle CONST_VECTOR.
14151 * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
14152 (CONST_VECTOR_ELT): New.
14153 (CONST_VECTOR_NUNITS): New.
14155 * machmode.h (GET_MODE_INNER): New.
14156 (DEF_MACHMODE): Accept 8th arg.
14158 * machmode.def: Add 8th argument for vector inner mode.
14159 Add inner vector modes for vectors.
14161 * rtl.def (VEC_CONST): Remove.
14162 (CONST_VECTOR): New.
14164 * expr.c (clear_storage): Allow vectors.
14165 (is_zeros_p): Handle VECTOR_CST.
14167 * varasm.c (output_constant_pool): Handle vectors.
14168 (rtx_const): Add veclo and vechi fields.
14169 (kind): Add RTX_VECTOR.
14170 (decode_rtx_const): Add case for vector.
14172 * config/rs6000/rs6000-protos.h: Add zero_constant.
14174 * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
14175 constants. Force easy vector constants into memory.
14176 (easy_vector_constant): New.
14177 (emit_easy_vector_constant): New.
14178 (rs6000_legitimize_reload_address): Do not generate bad reloads on
14181 * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
14183 ("altivec_lvxl"): Same.
14184 (altivec_lvebx): Same.
14185 (altivec_lvehx): Same.
14186 (altivec_lvewx): Same.
14187 ("*movv4si_const0"): New.
14188 ("*movv4sf_const0"): New.
14189 ("*movv8hi_const0"): New.
14190 ("*movv16qi_const0"): New.
14192 2002-02-18 Kazu Hirata <kazu@hxi.com>
14194 * config/h8300/h8300.c (notice_update_cc): Use
14197 2002-02-18 Kazu Hirata <kazu@hxi.com>
14199 * config/h8300/h8300.md (divmod patterns): Change the
14200 constraints for operands[1] to register_operand.
14202 2002-02-18 Kazu Hirata <kazu@hxi.com>
14204 * config/h8300/h8300-protos.h: Remove the prototype for
14206 * config/h8300/h8300.c (p_operand): Remove.
14207 * config/h8300/h8300.md: Replace p_operand with
14210 2002-02-18 Philip Blundell <pb@nexus.co.uk>
14212 * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
14214 (output_return_instruction): Allow use of LDR to unstack
14215 return addresss even for interrupt handlers or when
14216 interworking. If compiling for ARMv5, use interworking-safe
14217 return instructions by default. Remove duplicated code and
14218 lengthy "strcat" sequences.
14220 2002-02-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
14222 * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
14223 (LINK_EH_SPEC): Define.
14224 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
14226 2002-02-18 Ulrich Weigand <uweigand@de.ibm.com>
14228 * config/s390/s390.c (s390_emit_prologue): Do not set the
14229 frame_related flag for call-clobbered registers.
14231 Mon Feb 18 15:07:35 CET 2002 Jan Hubicka <jh@suse.cz>
14233 * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
14234 (construct_container): Fix handling of SSE operands.
14235 (ix86_expand_builtin): Fix handling of 64bit pointers.
14236 (mmx_maskmovq_rex): New pattern.
14238 Mon Feb 18 11:55:55 CET 2002 Jan Hubicka <jh@suse.cz>
14240 * regrename.c (kill_set_value): Handle subregs properly.
14242 2002-02-18 David Billinghurst <David.Billinghurst@riotinto.com>
14244 * objc/objc-act.c (handle_impent): Remove leading '*'
14245 from objc_class_name.
14247 2002-02-17 Richard Henderson <rth@redhat.com>
14249 * config/alpha/alpha.c (some_small_symbolic_operand,
14250 some_small_symbolic_operand_1, split_small_symbolic_operand,
14251 split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
14252 Handle small SYMBOL_REFs anywhere, not just inside memories.
14253 * config/alpha/alpha-protos.h: Update.
14254 * config/alpha/alpha.h (PREDICATE_CODES): Update.
14255 * config/alpha/alpha.md (small symbolic operand splitter): Update.
14257 2002-02-17 Roland McGrath <roland@frob.com>
14259 * config.gcc (powerpc-*-gnu-gnualtivec*,
14260 powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
14261 * config/rs6000/gnu.h: New file.
14262 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
14263 Grok "gnu" in rs6000_abi_name.
14264 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
14265 CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
14266 Grok -mcall-gnu analogous to -mcall-linux et al.
14267 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
14268 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
14269 (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
14271 2002-02-17 Jakub Jelinek <jakub@redhat.com>
14274 * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
14277 2002-02-17 Philipp Thomas <pthomas@suse.de>
14279 * config/cris/cris.h: Undefine STARTFILE_SPEC and
14280 ENDFILE_SPEC before (re)defining them.
14282 2002-02-17 Kazu Hirata <kazu@hxi.com>
14284 * config/h8300/h8300.c: Fix formatting.
14285 * config/h8300/h8300.h: Likewise.
14287 2002-02-17 Philipp Thomas <pthomas@suse.de>
14289 * doc/tm.texi: Explain why empty strings should not be
14290 marked for translation.
14292 2002-02-17 Philipp Thomas <pthomas@suse.de>
14294 * final.c (output_operand_lossage): Changed to accept
14295 printf style arguments. Change calls where necessary.
14296 * output.h (output_operand_lossage): Change declaration
14297 accordingly. Update copyright.
14298 * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
14299 config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
14300 Update copyright date where necessary.
14302 * config/i386/i386.c (print_operand): Likewise. Remove use of
14305 * config/cris/cris.c (cris_operand_lossage): Likewise.
14306 Rename parameter so that exgettext recognizes it as
14307 translatable message.
14308 (LOSE_AND_RETURN): Rename parameter to msgid.
14310 2002-02-17 Kazu Hirata <kazu@hxi.com>
14312 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
14313 hard coded register number with an appropriate macro.
14314 (HARD_REGNO_MODE_OK): Likewise.
14315 (ARG_POINTER_REGNUM): Likewise.
14316 (STATIC_CHAIN_REGNUM): Likewise.
14317 (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
14318 * config/h8300/h8300.md (define_constants): Define more
14321 2002-02-17 Philipp Thomas <pthomas@suse.de>
14323 * config/i386/i386.h: Don't mark empty strings for translation.
14325 2002-02-16 H.J. Lu <hjl@gnu.org>
14327 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
14329 2002-02-16 Zack Weinberg <zack@codesourcery.com>
14331 * cppinit.c (merge_include_chains): Check for brack being
14332 NULL before attempting to merge it with qtail.
14334 2002-02-16 Andrew Cagney <ac131313@redhat.com>
14336 * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
14339 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
14341 * pa/t-pa, pa/t-pro, som.h: Revert last patch.
14343 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
14345 * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
14346 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
14347 * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
14349 Sat Feb 16 13:48:50 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14351 * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
14352 now only if !TARGET_FIX.
14353 (*movsi_nt_vms_fix): New pattern.
14355 2002-02-16 Douglas B Rupp <rupp@gnat.com>
14357 * config/alpha/alpha.c: Implement null frame procedure types on VMS.
14358 (alpha_procedure_type): Replaces alpha_is_stack_procedure.
14359 (alpha_sa_mask, alpha_sa_size): Reflect above change.
14360 (alpha_pv_save_size, alpha_expand_prologue): Likewise.
14361 (alpha_start_function, alpha_expand_epilogue): Likewise.
14362 (unicosmk_gen_dsib): Likewise.
14364 Sat Feb 16 13:39:09 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14366 * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
14368 2002-02-16 Ulrich Weigand <uweigand@de.ibm.com>
14370 * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
14371 check_and_change_labels, s390_final_chunkify): Delete.
14372 (s390_split_branches, s390_chunkify_pool): New functions.
14373 (s390_function_prologue): Call them.
14375 * config/s390/s390.h (S390_REL_MAX): Delete.
14376 (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
14378 * config/s390/s390.md (cjump, icjump, jump): Fix length
14379 attribute calculation.
14382 2002-02-15 David Edelsohn <edelsohn@gnu.org>
14384 * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
14385 * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
14387 2002-02-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
14389 * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
14390 * config/pa/pa-linux.h (LIB_SPEC): Likewise.
14391 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
14393 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
14395 * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
14397 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
14399 * reload.c (find_dummy_reload): Check that an output register
14400 is valid for its mode.
14402 2002-02-14 Alexandre Oliva <aoliva@redhat.com>
14404 * combine.c (known_cond): After replacing the REG of a SUBREG, try
14407 * function.c (assign_parms): Demote promoted argument passed by
14408 transparent reference.
14410 2001-02-14 Joel Sherrill <joel@OARcorp.com>
14412 * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
14413 -Acpu() and -Amachine() to eliminate warnings.
14415 2002-02-14 Ulrich Weigand <uweigand@de.ibm.com>
14417 * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
14419 2002-02-14 Kazu Hirata <kazu@hxi.com>
14421 * config/h8300/h8300-protos.h: Update the prototype for
14423 * config/h8300/h8300.c (const_costs): Treat SET as a little
14424 more expensive operation.
14425 * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
14426 reference to const_costs.
14428 2002-02-14 Hans-Peter Nilsson <hp@axis.com>
14430 * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
14432 2002-02-14 Jakub Jelinek <jakub@redhat.com>
14435 * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
14436 use arguments from newtype.
14438 2002-02-13 Eric Christopher <echristo@redhat.com>
14440 * config/mips/mips.c (override_options): Add check for march/mipsX
14441 on the same command line. Fix error message in cpu processing.
14442 Remove architecture and ISA checks.
14444 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
14446 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
14448 * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
14450 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
14452 * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
14454 ("*movv8hi_internal1"): Same.
14455 ("*movv16qi_internal1"): Same.
14456 ("*movv4sf_internal1"): Same.
14458 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
14459 not push_reload for altivec modes.
14461 2002-02-13 Joel Sherrill <joel@OARcorp.com>
14463 * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
14464 all RTEMS targets including removal of #includes from config/*/rtems*.h
14465 file and adding them to tm_file setting. Added xm_defines=POSIX to
14467 * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
14468 * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
14469 * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
14470 * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
14471 * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
14472 config/m68k/rtemself.h: Ditto.
14473 * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
14474 config/mips/rtems64.h: Ditto.
14475 * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
14476 * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
14478 * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
14479 config/sparc/rtemself.h: Ditto.
14480 * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
14481 * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
14482 arm-rtems stanza closer to other arm-elf targets and made arm-rtems
14484 * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
14485 config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
14486 target made more similar to i386-elf.
14487 * config/i386/t-rtems-i386: Added soft float support and multilibs.
14488 * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
14489 be similar to config/m68k/t-m68kelf.
14490 * gthr-rtems.h: Encapsulate with extern "C" for C++.
14492 Wed Feb 13 23:41:15 CET 2002 Jan Hubicka <jh@suse.cz>
14494 * regmove.c (kill_value): Handle subregs.
14496 Wed Feb 13 23:34:30 CET 2002 Jan Hubicka <jh@suse.cz>
14498 * i386.md (mul patterns): Allow memory operand to be first;
14499 add expanders where needed; fix constraints.
14500 (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
14501 Allow memory operand to be the first.
14503 * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
14506 2002-02-13 Jakub Jelinek <jakub@redhat.com>
14509 * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
14512 2002-02-13 Jakub Jelinek <jakub@redhat.com>
14514 PR optimization/5547:
14515 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
14516 all valid IA-32 address modes involving non-scaled %ebx and
14517 GOT/GOTOFF as displacement.
14519 2002-02-13 Ulrich Weigand <uweigand@de.ibm.com>
14521 * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
14522 after emitting ltorg insns.
14524 * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
14525 *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
14526 *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
14527 *abssf2): Fix "op_type" attribute.
14529 2002-02-13 Douglas B Rupp <rupp@gnat.com>
14531 * mkconfig.sh: Avoid using a subshell redirect.
14532 ($output.T): Change to $(output)T.
14533 (ENABLE_NLS): Remove unneeded undef.
14535 * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
14536 * config/alpha/x-vms (libsubdir): Define.
14538 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
14539 register frame procedures. Optimize retrieving context.
14541 * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
14542 (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
14543 * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
14545 Wed Feb 13 09:45:08 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14547 * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
14548 Make same change as for find_base_value.
14550 2002-02-13 Kazu Hirata <kazu@hxi.com>
14552 * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
14553 of QImode and SImode.
14555 2002-02-13 Kazu Hirata <kazu@hxi.com>
14557 * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
14558 length computation of movsi.
14559 * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
14561 2002-02-13 Kazu Hirata <kazu@hxi.com>
14563 * config/h8300/h8300.md (subqi3): Tighten the predicate for
14564 operands[2] to register_operand.
14566 Wed Feb 13 10:35:56 CET 2002 Jan Hubicka <jh@suse.cz>
14568 * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
14570 2002-02-12 Aldy Hernandez <aldyh@redhat.com>
14572 * config/rs6000/rs6000.md: Use predicate altivec_register_operand
14573 for altivec_lvx* and altivec_stvx*.
14574 ("*movv4si_internal"): Add constraint for loading from GPRs.
14575 ("*movv8hi_internal1"): Same.
14576 ("*movv16qi_internal1"): Same.
14577 ("*movv4sf_internal1"): Same.
14579 * config/rs6000/rs6000.c (altivec_register_operand): New.
14581 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
14582 altivec_register_operand.
14584 2002-02-13 Hans-Peter Nilsson <hp@bitrange.com>
14586 * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
14589 2002-02-13 Stan Shebs <shebs@apple.com>
14591 * c-typeck.c (digest_init): Handle vectors.
14592 (really_start_incremental_init): Same.
14593 (pop_init_level): Same.
14594 (process_init_element): Same.
14596 * varasm.c (output_constant): Same.
14598 * expr.c (clear_storage): Same.
14599 (store_constructor): Same.
14601 2002-02-12 Eric Christopher <echristo@redhat.com>
14603 * explow.c (hard_function_value): Add comment explaining
14604 signed/unsigned comparison.
14606 2002-02-12 Jakub Jelinek <jakub@redhat.com>
14608 * jump.c (never_reached_warning): Add finish argument.
14609 If finish is NULL, stop on CODE_LABEL, otherwise stop before first
14610 real insn after end.
14611 * rtl.h (never_reached_warning): Adjust prototype.
14612 * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
14613 * cfgrtl.c (flow_delete_block): Pass b->end as finish to
14614 never_reached_warning.
14616 2002-02-12 Graham Stott <grahams@redhat.com>
14618 * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
14620 2002-02-12 Kazu Hirata <kazu@hxi.com>
14622 * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
14623 logical shifts on H8/300.
14624 (shift_alg_si): Improve several shifts on H8/300.
14625 (get_shift_alg): Likewise.
14627 2002-02-12 Graham Stott <grahams@redhat.com>
14629 * config/pa/pa.c (compute_movstrsi_length): Fix typos.
14631 Tue Feb 12 10:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14633 * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
14634 Handle #ifdef POINTERS_EXTEND_UNSIGNED.
14636 2002-02-11 Hans-Peter Nilsson <hp@bitrange.com>
14638 * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
14639 non-CONST_INT through default_assemble_integer.
14640 <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
14641 <case 8>: Abort for CONST_DOUBLE.
14643 2002-02-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
14645 * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
14647 * config/pa/pa-linux.h (LIB_SPEC): Delete.
14648 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
14650 2002-02-11 Andrew Haley <aph@cambridge.redhat.com>
14652 * config/stormy16/stormy16.md (zero_extendqihi2): New.
14654 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
14656 * regrename.c (regrename_optimize): Don't accept a
14657 part-clobbered register if the replaced register is not part
14660 * calls.c (store_one_arg): In the non-BLKmode non-partial case,
14661 take padding into account when computing the argument value.
14663 * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
14665 * combine.c (try_combine): Apply substitutions in
14666 CALL_INSN_FUNCTION_USAGE too.
14668 2002-02-11 Aldy Hernandez <aldyh@redhat.com>
14670 * config/rs6000/rs6000.c (altivec_init_builtins): Handle
14671 __builtin_altivec_abs*.
14674 * config/rs6000/rs6000.h (rs6000_builtins): Add
14675 ALTIVEC_BUILTIN_ABS*.
14677 * config/rs6000/altivec.h: Use const char for builtins expecting
14679 (vec_abs): New versions for C and C++.
14682 2002-02-10 Kazu Hirata <kazu@hxi.com>
14684 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
14687 2002-02-10 Kazu Hirata <kazu@hxi.com>
14689 * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
14690 constant definition from h8300.md.
14691 (FRAME_POINTER_REGNUM): Likewise.
14692 * config/h8300/h8300.md (define_constants): Add FP_REG.
14694 2002-02-10 Kazu Hirata <kazu@hxi.com>
14696 * config/h8300/h8300.c (print_operand): Remove redundant code.
14698 2002-02-10 Kazu Hirata <kazu@hxi.com>
14700 * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
14701 * config/h8300/h8300.c (byte_reg): Make it static.
14703 2002-02-10 Richard Henderson <rth@redhat.com>
14706 * c-typeck.c (incomplete_type_error): Handle flexible array members.
14708 2002-02-10 Richard Henderson <rth@redhat.com>
14711 * tree.c (append_random_chars): Don't abort if main_input_filename
14714 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
14716 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
14718 2002-02-10 Kazu Hirata <kazu@hxi.com>
14720 * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
14721 (pushhi1): Likewise.
14723 2002-02-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
14725 * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
14726 * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
14728 2002-02-09 David O'Brien <obrien@FreeBSD.org>
14730 * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
14732 (ASM_CPU_DEFAULT_SPEC): Remove. Default setting is fine.
14734 2002-02-09 Kazu Hirata <kazu@hxi.com>
14736 * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
14737 a half of an SImode register on H8/300.
14739 Sat Feb 9 18:28:02 CET 2002 Jan Hubicka <jh@suse.cz>
14741 * i386.md (movdi_2): Add missing '!'.
14743 2002-02-09 Kazu Hirata <kazu@hxi.com>
14745 * config/h8300/h8300.h: Fix formatting. Remove commented-out
14748 2002-02-09 Kazu Hirata <kazu@hxi.com>
14750 * config/h8300/h8300.md (length): Correct the distance valid
14751 for the short branch.
14753 2002-02-09 Kazu Hirata <kazu@hxi.com>
14755 * config/h8300/h8300.md (iorhi3): Tighten the predicates.
14757 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
14759 * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
14760 registers in SImode.
14761 (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
14764 * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
14767 Contribute sh64-elf.
14768 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
14769 * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
14770 (sh_cannot_modify_jumps_p): New function.
14771 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
14772 * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
14773 (sh_ms_bitfield_layout_p): New function.
14774 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
14775 Zack Weinberg <zack@codesourcery.com>
14776 * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
14777 expand_simple_binop instead of expand_binop.
14778 2002-02-03 Alexandre Oliva <aoliva@redhat.com>
14779 * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
14780 use of .quad and .uaquad.
14781 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
14782 TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
14783 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
14784 * config/sh/sh.md (movdi_const, movdi_const_32bit,
14785 movdi_const_16bit): Make sure all CONSTs have modes.
14786 (sym2PIC): Ditto, but by adjusting all callers.
14787 * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
14788 if the prologue calls the SHmedia argument decoder or register
14790 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
14791 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
14792 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
14793 (sh_expand_epilogue): Don't emit USE of return target register.
14794 (prepare_move_operands): Legitimize DImode PIC addresses.
14795 (sh_media_register_for_return): Skip tr0, used to initialize the
14797 (sh_expand_prologue): Remove explicit USE of return register.
14798 (nonpic_symbol_mentioned_p): PC is non-PIC. Don't recurse in
14799 CONST_DOUBLEs. UNSPEC_GOTPLT is PIC.
14800 * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
14801 (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
14802 (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
14803 EXTRA_CONSTRAINT_T.
14804 (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
14805 (MOVI_SHORI_BASE_OPERAND_P): New.
14806 (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
14807 (EXTRA_CONSTRAINT_T): Define in terms of them.
14808 (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
14809 * config/sh/sh.md (movsi_media, movsi_media_nofpu,
14810 movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
14811 alternatives supporting TARGET_REGS.
14812 (UNSPEC_GOTPLT): New constant.
14813 (movdi split): Move incrementing of LABEL_NUSES...
14814 (movdi_const, movdi_const_32bit): Here. Use
14815 MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
14816 (movdi_const_16bit): New.
14817 (call, call_value) [flag_pic]: Use GOTPLT.
14818 (call_pop, call_value_pop): New expands.
14819 (call_pop_compact, call_pop_rettramp): New insns.
14820 (call_value_pop_compact, call_value_pop_rettramp): New insns.
14821 (sibcall) [flag_pic]: Use GOT.
14822 (builtint_setjmp_receiver): Remove bogus, unused expand.
14823 (GOTaddr2picreg): Implement for SHcompact and SHmedia.
14824 (*pt, *ptb, ptrel): New insns.
14825 (sym2GOT): Handle DImode GOT.
14826 (sym2GOTPLT, symGOTPLT2reg): New expands.
14827 (sym2PIC): New expand.
14828 (shcompact_return_tramp): Use GOTPLT to return trampoline.
14829 (shcompact_return_tramp_i): Use return register explicitly.
14830 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
14831 disable flag_reorder_blocks.
14832 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
14833 * config/sh/sh.md (sibcall_compact): Reorder return, uses and
14834 clobbers, for clarity.
14835 (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
14836 restoring of r0 in macl as MAYBE_DEAD.
14837 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
14838 * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
14839 * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
14840 alter_subreg all over.
14841 (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
14842 reload, instead of emitting instructions that would require
14844 (casesi_load_media): Add missing modes.
14845 2001-11-09 Alexandre Oliva <aoliva@redhat.com>
14846 * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
14847 as used if the argument decoder is called.
14848 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
14849 * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
14850 Pmode, then extend it to DImode if necessary.
14851 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
14852 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
14853 constants in FPU-enabled SHmedia, let them be loaded from memory.
14854 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
14855 * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
14856 Adjust whitespace in assembly output templates.
14857 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
14858 * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
14859 mode of if_then_else.
14860 2001-08-04 Alexandre Oliva <aoliva@redhat.com>
14861 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
14863 2001-07-26 Andrew Haley <aph@cambridge.redhat.com>
14864 Joern Rennecke <amylaar@redhat.com>
14865 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
14866 (SUBTARGET_CPP_PTR_SPEC): New.
14867 (SUBTARGET_CPP_SPEC): Remove.
14868 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
14869 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
14870 Fix typo in previous checkin.
14871 2001-07-11 Chandrakala Chavva <cchavva@redhat.com>
14872 * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
14873 2001-07-10 Chandrakala Chavva <cchavva@cygnus.com>
14874 Alexandre Oliva <aoliva@redhat.com>
14875 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
14876 what single FP register can hold for SHmedia target.
14877 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
14878 Alexandre Oliva <aoliva@redhat.com>
14879 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
14880 Do not split into SUBREG.
14881 2001-06-14 Alexandre Oliva <aoliva@redhat.com>
14882 * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
14883 and added new functions as specified in SH5 ABI r9.
14884 2001-06-04 Alexandre Oliva <aoliva@redhat.com>
14885 * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
14887 2001-06-03 Alexandre Oliva <aoliva@redhat.com>
14888 * config/sh/sh.c (dump_table): Add const0_rtx in calls of
14889 gen_consttable_4 and gen_consttable_8. Emit multiple labels
14890 and consttable_window_ends.
14891 2001-06-03 Graham Stott <grahams@redhat,com>
14892 * config/sh/sh.md (movdi split): Remove unused variable last_insn.
14893 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
14894 * config/sh/sh.c (print_operand): Handle floating-point pair,
14895 vector and matrix registers.
14896 * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
14897 vector modes into account.
14898 * config/sh/sh.md (movv2sf): Split move between registers into
14900 (movv4sf, movv16sf): Introduce insns that get split only after
14902 * config/sh/shmedia.h: Fix Copyright dates.
14903 * config/sh/ushmedia.h: Likewise. Move loop counter
14904 declarations into conditionals that uses them.
14905 (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
14907 * config/sh/sshmedia.h: Fix Copyright dates.
14908 (sh_media_PUTCFG): Fix constraints.
14909 2001-05-12 Alexandre Oliva <aoliva@redhat.com>
14910 * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
14911 ptrmemfunc_vbit_in_delta for SH5.
14912 2001-05-08 Alexandre Oliva <aoliva@redhat.com>
14913 * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
14914 * invoke.texi: Likewise.
14915 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
14916 * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
14917 GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
14918 GCC_pop_shmedia_regs_nofpu): New global symbols.
14919 * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
14920 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
14921 * config/sh/sh.c (calc_live_regs): Account for PR's saving in
14922 compact function with nonlocal labels.
14923 (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
14924 (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
14925 (initial_elimination_offset): Account for their stack space.
14926 * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
14927 * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
14928 movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
14929 movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
14930 least one of the operands to be a register.
14931 (movv2sf): Likewise. Renamed to movv2sf_i.
14932 (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
14933 prepare_move_operands() before emitting SHmedia insns.
14934 2001-04-03 Alexandre Oliva <aoliva@redhat.com>
14935 * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
14936 Don't save nor initialize r12. Don't mis-align the stack.
14937 Pad the code with a nop.
14938 * config/sh/crti.asm: Don't restore r12. Don't mis-align the
14940 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
14941 * gcc/longlong.h (__umulsidi3, count_leading_zeros)
14942 [__SHMEDIA__]: Implement.
14943 2001-03-11 Alexandre Oliva <aoliva@redhat.com>
14944 * config/sh/sh.md: Set latency of `pt' closer to reality.
14945 (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
14946 movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
14947 Set move, load and store type attributes.
14948 * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
14949 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
14951 * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
14952 * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
14953 * config/sh/sh.c (sh_media_register_for_return): New function.
14954 (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
14955 branch-target register.
14956 (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
14957 * config/sh/sh.md (return_media_i): Use any call-clobbered
14958 branch-target register.
14959 (return_media): If r18 wasn't copied in the prologue, copy it
14961 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
14962 Clear class FP0_REGS.
14963 * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
14965 2001-03-08 DJ Delorie <dj@redhat.com>
14966 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
14967 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
14968 * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
14969 2001-02-07 Alexandre Oliva <aoliva@redhat.com>
14970 * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
14971 2001-02-03 Alexandre Oliva <aoliva@redhat.com>
14972 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
14973 return value correctly for call_cookie.
14974 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
14975 * config/sh/crt1.asm (start): Modified so as to call
14976 ___setup_argv_and_call_main.
14977 2001-01-26 Alexandre Oliva <aoliva@redhat.com>
14978 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
14980 2001-01-20 Alexandre Oliva <aoliva@redhat.com>
14981 * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
14982 (STRIP_NAME_ENCODING): Use it.
14983 (ASM_OUTPUT_LABELREF): Likewise. Don't call assemble_name().
14984 2001-01-19 Alexandre Oliva <aoliva@redhat.com>
14985 * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
14986 prepare_scc_operands().
14987 * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
14988 (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
14989 2001-01-17 Alexandre Oliva <aoliva@redhat.com>
14990 * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
14991 2001-01-13 Alexandre Oliva <aoliva@redhat.com>
14992 * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
14993 * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
14994 used in shcompact_incoming_args.
14995 * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
14997 * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
14999 * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
15000 Adjust accordingly.
15001 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
15002 Simplify. Adjust. Add sanity check.
15003 * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
15005 * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
15007 (udivsi3, divsi3): Use them.
15008 (force_mode_for_call): New insn.
15009 (call, call_value, sibcall_value): Emit it before SHcompact
15011 2001-01-11 Alexandre Oliva <aoliva@redhat.com>
15012 * config/sh/sh.md (call, call_value, sibcall): Make sure the
15013 call cookie is non-NULL before taking its value.
15014 2001-01-10 Alexandre Oliva <aoliva@redhat.com>
15015 * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
15016 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
15017 * config/sh/sh.md (shcompact_incoming_args): Set argument memory
15019 * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
15020 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
15021 temporary for stack adjusts. Use MACL and MACH to pass
15022 arguments to shcompact_incoming_args.
15023 * config/sh/sh.md (shcompact_incoming_args): Adjust. Don't
15025 * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
15026 (nested_trampoline): Load static chain address into r1.
15027 * config/sh/sh.md (movdi_media splits): Fix sign-extension.
15028 2001-01-07 Alexandre Oliva <aoliva@redhat.com
15029 * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
15030 fp_arith_reg_operand().
15031 2001-01-06 Alexandre Oliva <aoliva@redhat.com>
15032 * config/sh/sh.md (casesi): Sign-extend the first two operands,
15033 and use signed compares for them.
15034 * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
15035 4-byte ones. Instead, inter-leave them, maintaining the 8-byte
15036 ones properly aligned.
15037 (find_barrier): Account for extra alignment needed for 8-byte wide
15039 (machine_dependent_reorg): Require a label for the second 4-byte
15040 constant after an 8-byte one.
15041 * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
15043 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
15044 * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
15045 last_float when switching float modes.
15046 * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
15047 auto-increment for general-purpose registers.
15048 * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
15050 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
15052 * config/sh/sh.c (sh_builtin_saveregs): Support using all
15053 registers for varargs.
15054 2001-01-01 Alexandre Oliva <aoliva@redhat.com>
15055 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
15056 * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
15057 CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
15058 (CALL_COOKIE_INT_REG_SHIFT): Adjust.
15059 (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK. Adjust
15060 call_cookie accordingly.
15061 (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
15062 (SHCOMPACT_BYREF): Likewise.
15063 (SHCOMPACT_FORCE_ON_STACK): New macro.
15064 * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
15065 (sh_builtin_saveregs): Likewise.
15066 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
15067 shcompact_incoming_args): Use new shift values. Support
15068 sequences of consecutive and non-consecutive pushes/pops.
15069 * config/sh/sh.md (return): Don't explicitly use PR_REG.
15070 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
15071 * config/sh/sh.h (TEXT_SECTION): Define.
15072 * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
15073 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
15074 * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
15075 * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
15076 return values on FPU-enabled SHmedia.
15077 (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
15078 FPU-enabled SHmedia.
15079 (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
15080 value is returned in a non-FP reg and is not returned by
15082 * config/sh/sh.md (shcompact_return_tramp_i): Change type to
15084 2000-01-04 Alexandre Oliva <aoliva@redhat.com>
15085 * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
15086 (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
15087 quad-aligned to be passed by callee-copy reference.
15088 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
15089 * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
15090 * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
15091 2001-01-02 Alexandre Oliva <aoliva@redhat.com>
15092 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
15093 copying low-numbered FP regs to r7 and r8.
15094 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
15095 FP regs to general-purpose regs only if the copy was passed on the
15097 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
15098 copying FP reg to r9.
15099 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
15100 copy FP regs to general-purpose regs only in outgoing calls.
15101 * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
15102 change from 2000-10-30. Adjust for 64-bit (or 32-bit)
15104 * config/sh/sh.h (struct sh_args): Document all fields.
15105 (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
15106 passed partially on the stack should not consider making
15108 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
15109 stack_regs only for incoming calls. When passing FP args,
15110 make sure there are FP regs available before modifying
15112 (SHCOMPACT_BYREF): Pass double args in general-purpose
15113 registers by reference.
15114 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
15115 * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
15116 attempt to generate sibcalls if the caller got any arguments
15118 * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
15119 * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
15120 to 8-byte boundaries.
15121 * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
15122 * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
15123 * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
15124 stored in the stack.
15125 * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
15126 for the offsets to have the ISA bit set.
15127 (shcompact_call_trampoline): Document. Swap r0 and r1, to match
15128 invocation. Use beq instead of bgt to mark end of sequence of
15130 (shcompact_incoming_args): Fix store of r2. Use beq instead of
15131 bgt to mark end of sequence of stores.
15132 * config/sh/sh.c (arith_operand): Don't check whether
15133 CONST_OK_FOR_J for now.
15134 * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
15135 instead of long for conversion.
15136 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
15137 * config/sh/sh.c (print_operand_address): Convert INTVAL to int
15138 before passing it to fprintf.
15139 2000-12-28 Alexandre Oliva <aoliva@redhat.com>
15140 * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
15141 Call set_fpscr before reading/writing SR.
15142 * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
15144 * config/sh/lib1funcs.asm: Add `.align 2' directives before
15146 (FMOVD_WORKS): Define on SH5 with FPU.
15147 (set_fpscr): Define on SH5. Remove separate _fpscr_values
15149 * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
15151 2000-12-28 Hans-Peter Nilsson <hpn@cygnus.com>
15152 * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
15154 (ia_main_table): Ditto.
15155 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
15156 * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
15157 * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
15158 the definitions from sh.h.
15159 * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
15161 (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
15162 * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
15163 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
15164 2000-12-26 Alexandre Oliva <aoliva@redhat.com>
15165 * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
15166 Increment LABEL_NUSES.
15168 * config/sh/sh.h (SIZE_TYPE): Define as conditional on
15170 (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
15172 * config/sh/elf.h (SIZE_TYPE): Likewise.
15173 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
15174 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
15175 shcompact_incoming_args): Load switch table addresses using
15177 * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
15178 (NO_BUILTIN_SIZE_TYPE): Define.
15179 (SIZE_TYPE): Don't define.
15180 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
15181 * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
15182 definition of __SH5__=32 for -m5-compact-nofpu.
15183 * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
15185 2000-12-24 Alexandre Oliva <aoliva@redhat.com>
15186 * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
15187 2000-12-23 Alexandre Oliva <aoliva@redhat.com>
15188 * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
15189 (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
15190 (INSN_LENGTH_ALIGNMENT): Likewise.
15191 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
15192 * config/sh/sh.md (call, call_value, sibcall): Simplify
15193 copying of non-branch-target register.
15194 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
15195 * glimits.h (__LONG_MAX__): Revert 2000-12-13's patch.
15196 * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
15197 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
15198 * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
15199 floating-point values as structs.
15200 (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
15201 (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
15202 general-purpose register.
15203 (SH5_PROTOTYPED_FLOAT_ARG): New macro.
15204 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
15205 * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
15206 * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
15207 * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
15208 (ENCODE_SECTION_INFO): Enclose variables and constants in
15210 (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
15211 (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
15212 (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
15213 * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
15214 only for LABEL_REFs. For SYMBOL_REFs, prepend
15215 SH_DATALABEL_ENCODING to the symbol name.
15216 * config/sh/sh.md (indirect_jump): Use SUBREG instead of
15218 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
15219 * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
15221 * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
15222 * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
15223 (DATALABEL_REF_P): Don't require CONST.
15224 (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
15226 2000-12-19 Alexandre Oliva <aoliva@redhat.com>
15227 * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
15229 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
15230 * config/sh/sh.md (movsi_media, call, call_value, sibcall):
15231 Use shallow_copy_rtx and PUT_MODE to change the mode of
15232 SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
15233 * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
15234 on SHmedia using GENERAL_REGs.
15235 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
15236 bltu_media_i): Fix reversion of conditions.
15237 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
15238 * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
15239 * config/sh/sh.c (output_far_jump): Save r13 in macl.
15240 2000-12-17 Alexandre Oliva <aoliva@redhat.com>
15241 * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
15242 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
15243 * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
15244 (GCC_nested_trampoline): Likewise.
15245 * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
15246 * config/sh/sh.c (gen_datalabel_ref): Define.
15247 * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
15248 (INITIALIZE_TRAMPOLINE): Likewise.
15249 (TRAMPOLINE_ADJUST_ADDRESS): Define.
15250 (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
15251 (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
15252 (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
15253 * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
15254 (ic_invalidate): Adjust for SH5.
15255 (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
15256 * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
15257 _nested_trampoline.
15258 2000-12-15 Alexandre Oliva <aoliva@redhat.com>
15259 * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
15260 (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
15261 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
15262 * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
15263 * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
15264 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
15265 * config/sh/sh.c (target_reg_operand): Match only target-branch
15266 registers and pseudos that aren't virtual registers.
15267 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
15268 Copy operands that don't match target_reg_operand to pseudos.
15269 (call_media, call_value_media, sibcall_media): Use
15270 target_reg_operand instead of target_operand.
15271 2000-12-13 Alexandre Oliva <aoliva@redhat.com>
15272 * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
15273 * config/sh/sh.c (target_reg_operand): Match hardware registers
15274 other than branch-target registers.
15275 * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
15276 * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
15277 (fpscr_values) [SH5 == 32]: Define.
15278 * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
15279 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
15280 Handle function addresses coming in SUBREGs.
15281 2000-12-12 Alexandre Oliva <aoliva@redhat.com>
15282 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
15283 shcompact_return_trampoline): Use datalabel where appropriate.
15284 2000-12-09 Alexandre Oliva <aoliva@redhat.com>
15285 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
15286 general-purpose register to copy one branch-target register to
15288 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
15289 * config/sh/sh.c (target_operand): Accept LABEL_REFs and
15290 SYMBOL_REFs with VOIDmode.
15291 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
15292 bltu_media_i): New insns.
15293 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
15294 * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
15295 (INIT_CUMULATIVE_ARGS): Likewise.
15296 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
15297 * machmode.def (V16SFmode): New mode.
15298 * c-common.c (type_for_mode): Support V2SF and V16SF.
15299 * tree.c (build_common_tree_nodes_2): Likewise.
15300 * tree.h (tree_index): Likewise.
15301 * calls.c (emit_call_1): Take args_so_far. Adjust all
15302 callers. Introduce CALL_POPS_ARGS.
15303 * tm.texi (CALL_POPS_ARGS): Document.
15304 * config/sh/crt1.asm: Implement in SHmedia mode.
15305 * config/sh/crti.asm, config/sh/crtn.asm: Likewise
15306 * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
15307 (DBX_REGISTER_NUMBER): Renumber registers for SH5.
15308 * config/sh/lib1funcs.asm: Disable functions unused in SH5.
15309 Implement divsi and udivsi in SHmedia mode. Introduce
15310 SHcompact trampolines.
15311 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
15313 (regno_reg_class): Rewrite.
15314 (fp_reg_names): Remove.
15315 (sh_register_names, sh_additional_register_names): New.
15316 (print_operand): Added `u'. Support SUBREGs in addresses.
15317 Add parentheses around shifted CONSTs.
15318 (output_file_start): Output .mode and .abi directives.
15319 (shiftcosts, addsubcosts, multcosts): Adjust.
15320 (output_stack_adjust): Compute alignment. Sanity-check SIZE.
15321 (push_regs): Take array of HOST_WIDE_INTs. Adjust callers.
15322 (calc_live_regs): Output to array of HOST_WIDE_INTs. Count
15323 bytes, not registers. Take into account the need for the
15324 SHcompact incoming args trampoline. Adjust all callers.
15325 (sh_expand_prologue): Take stack_regs into account. Call
15326 incoming args trampoline. Keep stack aligned as per SH5 ABI.
15327 (sh_expand_epilogue): Take stack_regs into accoutn. Keep
15328 stack aligned as per SH5 ABI.
15329 (sh_builtin_saveregs): Support SH5 ABI.
15330 (sh_build_va_list, sh_va_start): Likewise.
15331 (initial_elimination_offset): Take alignment into account.
15332 Compute location of PR according to the SH5 stack frame.
15333 (arith_reg_operand): Reject branch-target registers.
15334 (shmedia_6bit_operand): New.
15335 (logical_operand): Use CONST_OK_FOR_P on SHmedia.
15336 (target_reg_operand): Match DImode only. Accept SUBREGs.
15337 (target_operand): New.
15338 * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
15339 (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI. Initialize
15340 SIBCALL_REGS for SHmedia.
15341 (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
15342 (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
15343 (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
15344 (TARGET_SWITCHES): New SH5 flags.
15345 (OVERRIDE_OPTIONS): Set SH5-specific options. Use
15346 VALID_REGISTER_P to disable unsupported registers.
15347 (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
15348 (POINTER_SIZE, PARM_BOUNDARY): Adjust.
15349 (FUNCTION_ARG_PADDING): Define.
15350 (FASTEST_ALIGNMENT): Adjust.
15351 (SH_REGISTER_NAMES_INITIALIZER): New.
15352 (sh_register_names): Declare.
15353 (DEBUG_REGISTER_NAMES): Define.
15354 (REGISTER_NAMES): Define based on sh_register_names.
15355 (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
15356 (sh_additional_register_names): Declare.
15357 (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
15358 (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
15359 (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
15360 (REGISTER_NATURAL_MODE): Define.
15361 (FIRST_PSEUDO_REGISTER): Adjust.
15362 (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
15363 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
15364 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
15365 (VECTOR_MODE_SUPPORTED_P): Define.
15366 (REG_CLASS_CONTENTS): Adjust.
15367 (SMALL_REGISTER_CLASSES): Adjust.
15368 (REG_ALLOC_ORDER): Adjust.
15369 (INDEX_REG_CLASS): Adjust.
15370 (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
15371 (CONST_OK_FOR_LETTER_P): Adjust.
15372 (PREFERRED_RELOAD_CLASS): Adjust.
15373 (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
15374 (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
15375 (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
15376 (FIRST_FP_PARM_REG): Adjust.
15377 (CALL_POPS_ARGS): Define.
15378 (FUNCTION_ARG_REGNO_P): Adjust.
15379 (struct sh_args): New fields.
15380 (GET_SH_ARG_CLASS): Adjust.
15381 (INIT_CUMULATIVE_ARGS): Adjust.
15382 (INIT_CUMULATIVE_INCOMING_ARGS): Define.
15383 (FUNCTION_ARG_ADVANCE): Adjust.
15384 (FUNCTION_ARG): Adjust.
15385 (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
15386 (FUNCTION_ARG_CALLEE_COPIES): Define.
15387 (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
15388 (STRICT_ARGUMENT_NAMING): Define.
15389 (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
15390 (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
15391 (SH5_WOULD_BE_PARTIAL_NREGS): Define.
15392 (SETUP_INCOMING_VARARGS): Adjust.
15393 (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
15394 (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
15395 (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
15396 (SUBREG_OK_FOR_INDEX_P): Adjust.
15397 (EXTRA_CONSTRAINT_S): Update.
15398 (EXTRA_CONSTRAINT_T): New.
15399 (EXTRA_CONSTRAINT): Adjust.
15400 (GO_IF_LEGITIMATE_INDEX): Adjust.
15401 (GO_IF_LEGITIMATE_ADDRESS): Adjust.
15402 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
15403 (MOVE_MAX): Adjust.
15404 (MAX_MOVE_MAX): Define.
15406 (CONST_COSTS): Adjust.
15407 (REGISTER_MOVE_COST): Adjust.
15408 (BRANCH_COST): Adjust.
15409 (TEXT_SECTION_ASM_OP): Adjust.
15410 (DBX_REGISTER_NUMBER): Adjust.
15411 (ASM_OUTPUT_DOUBLE_INT): New.
15412 (UNALIGNED_DOUBLE_INT_ASM_OP): New.
15413 (PREDICATE_CODES): Adjust.
15414 (PROMOTE_MODE): Adjust.
15415 (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
15416 * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
15417 (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
15418 (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
15419 (DR0_REG, DR2_REG, DR4_REG): Renumber.
15420 (TR0_REG, TR1_REG, TR2_REG): New.
15421 (XD0_REG): Renumber.
15422 (UNSPEC_COMPACT_ARGS): New.
15423 (type): Added pt and ptabs.
15424 (length): Default to 4 on SHmedia. Default pt length to 12
15425 and 20 on SHmedia32 and SHmedia64, respectively.
15426 (pt): New function unit.
15427 (movdi, movsi): Add types pt and ptabs. Don't increment LABEL_NUSES.
15428 Add whitespace between operands of SHmedia instructions.
15430 (adddi3_media, addsi3_media): Adjust constraints.
15431 (subsi3) [SHmedia]: Force operand 1 into a register.
15432 (udivsi3_i1_media, udivsi3_i4_media): New.
15433 (udivsi3): Support SHmedia.
15434 (divsi3_i1_media, divsi3_i4_media): New.
15435 (divsi3): Support SHmedia.
15436 (anddi3, iordi3, xordi3): Adjust constraints.
15437 (zero_extendhidi2, zero_extendqidi2): New.
15438 (extendsidi2, extendhidi2, extendqidi2): New.
15439 (push, pop, push_e, push_fpul, push_4): Disable on SH5.
15440 (pop_e, pop_fpul, pop_4): Likewise.
15441 (movsi_media): Support FP and BT registers.
15442 (movsi_media_nofpu): New. Adjust splits to DImode.
15443 (lduw, ldub): Renamed to zero_extend* above.
15444 (movqi_media): Fix typo.
15445 (movdi_media): Support FP and BT registers.
15446 (movdi_media_nofpu): New. Adjust splits for SHmedia32.
15447 (movdi_const_32bit): New.
15448 (shori_media): Require immediate operand. Use `u' for output.
15449 (movdf_media, movsf_media): Simplified.
15450 (movdf_media_nofpu, movsf_media_nofpu): New.
15451 (movdf, movsf): Adjust
15452 (movv2sf, movv2sf, movv16sf): New.
15453 (beq_media, beq_media_i): Adjust constraints. Don't use
15454 scratch BT register.
15455 (bne_media, bne_media_i): Likewise.
15456 (bgt_media, bgt_media_i): Likewise.
15457 (bge_media, bge_media_i): Likewise.
15458 (bgtu_media, bgtu_media_i): Likewise.
15459 (bgeu_media, bgeu_media_i): Likewise.
15460 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
15461 bunordered): Emit jump insn. Force operands to registers when
15463 (jump_media, jump): Simplify.
15464 (call_compact, call_compact_rettramp): New.
15465 (call_value_compact, call_value_compact_rettramp): New.
15466 (call_media, call_value_media): Simplify.
15467 (sibcall_compact, sibcall_media): New.
15468 (call, call_value): Adjust for SHmedia and SHcompact.
15469 (sibcall, sibcall_value, untyped_call): Likewise.
15470 (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
15471 (indirect_jump): Adjust for SHmedia.
15472 (casesi_jump_media): New.
15473 (nop): Re-enable for SHmedia.
15474 (call_site): Restrict to SH1.
15475 (casesi): Adjust for SHmedia.
15476 (casesi_shift_media, casesi_load_media): New.
15477 (return): Explicitly use PR register. Call return trampoline
15479 (return_i): Explicitly use PR register.
15480 (shcompact_return_tramp, shcompact_return_tramp_i): New.
15481 (return_media): Adjust.
15482 (shcompact_incoming_args): New.
15483 (epilogue): Adjust.
15484 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
15485 (movstrsi): Disable on SH5.
15486 (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
15487 (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
15488 (subsf3, subsf3_media): Likewise.
15489 (mulsf3, mulsf3_media, mac_media): Likewise.
15490 (divsf3, divsf3_media): Likewise.
15491 (floatdisf2, floatsisf2_media): Likewise. Adjust constraints.
15492 (floatsisf2, fux_truncsfsi2): Likewise.
15493 (fix_truncsfdi2, fix_truncsfsi2_media): Likewise. Adjust
15495 (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
15496 (cmpunsf_media, cmpsf): Likewise.
15497 (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
15498 (abssf2, abssf2_media): Likewise.
15499 (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
15500 (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
15501 (floatdidf2, floatsidf2_media): Likewise. Adjust constraints.
15502 (floatsidf2, fix_truncdfsi2): Likewise.
15503 (fix_truncdfdi2, fix_truncdfsi2_media): Likewise. Adjust
15505 (cmpeqdf_media, cmpgtdf_media): Likewise.
15506 (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
15507 (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
15508 (absdf2, absdf2_media): Likewise.
15509 (extendsfdf2, extendsfdf2_media): Likewise.
15510 (truncsfdf2, truncsfdf2_media): Likewise.
15511 * config/sh/sh64.h: New file.
15512 * config/sh/t-sh64: New file.
15513 * config/sh/shmedia.h: New file.
15514 * config/sh/ushmedia.h: New file.
15515 * config/sh/sshmedia.h: New file.
15516 * configure.in: Added sh64-*-elf.
15517 * configure: Rebuilt.
15518 2000-10-10 Alexandre Oliva <aoliva@redhat.com>
15519 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
15520 (reg_class_from_letter): Use `b' for TARGET_REGS.
15521 (print_operand): Support `%M', `%m', `AND' and
15522 `ASHIFTRT'. Do not precede constants with `#' on SHmedia.
15523 (andcosts): Adjust for SHmedia.
15524 (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
15526 (target_reg_operand): New function.
15527 * config/sh/sh-protos.h (target_reg_operand): Declare.
15528 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
15529 FP registers on SH5.
15530 (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
15532 (TARGET_REGISTER_P): New macro.
15533 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
15534 (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
15535 (EXTRA_CONSTRAINT_S): New macro.
15536 (EXTRA_CONSTRAINT): Adjust.
15537 (FLOAT_TYPE_SIZE): Define to 32.
15538 (Pmode): DImode on SHmedia.
15539 (CONST_COSTS): Adjust for SHmedia literals.
15540 (PREDICATE_CODES): Added target_reg_operand.
15541 (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
15542 * config/sh/sh.md: Remove all attrs from SHmedia insns.
15543 (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
15544 (cmpdi): Accept SHmedia.
15545 (movdicc_false, movdicc_true): New insns.
15546 (movdicc): New expand.
15547 (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
15549 (addsi3_media): Match `S' constraint.
15550 (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
15551 (negdi2): Expand for SHmedia.
15552 (one_cmpldi2): New expand.
15553 (zero_extendsidi2): Change from expand to insn.
15554 (extendsidi2): Add constraints.
15555 (movdi_media, movsi_media): Change `%x' to `%M'. Use `%m' for
15556 LD/ST address. Fix SI immediate loading split.
15557 (movhi_media, movqi_media, lduw, ldub): New insns.
15558 (movhi, movqi): Accept SHmedia.
15559 (shori_media, movdi_media): Relax input constraints. Split
15560 symbolic constants.
15561 (movdf_media, movsf_media): New insn. New split to movdi.
15562 (movdf, movsf): Match on SHmedia.
15563 (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
15564 bgeu_media): New insns and splits. New insns with `_i' suffix.
15565 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
15566 (bunordered): New expand.
15567 (jump_compact): Renamed from `jump'.
15568 (jump_media): New insn.
15569 (jump): New expand.
15570 (call_media, call_value_media): New insns.
15571 (call, call_value): Adjust.
15572 (indirect_jump_compact): Renamed from `indirect_jump'.
15573 (indirect_jump_media): New insn.
15574 (indirect_jump): New expand.
15575 (untyped_call, return): Accept SHmedia.
15576 (return_media): New insn.
15577 (prologue, epilogue, blockage): Accept SHmedia.
15578 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
15579 (sunordered): New expand.
15580 (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
15581 cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
15582 (addsf3_media, subsf3_media, mulsf3_media, mac_media,
15583 divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
15584 fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
15585 cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
15586 abssf2_media): New insns.
15587 (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
15588 cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
15589 (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
15590 floatdidf2, floatsidf2_media, fix_truncdfdi2,
15591 fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
15592 cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
15593 absdf2_media): New insns.
15594 (extendsfdf2, truncdfsf2): Adjust for SHmedia.
15595 (extendsfdf2_media, truncdfsf2_media): New insns.
15596 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
15597 * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
15598 * config/sh/sh.h (CONST_OK_FOR_J): Document.
15599 (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
15600 * config/sh/sh.md (adddi3): New expand.
15601 (adddi3_media, adddi3z_media): New insns.
15602 (adddi3_compact): Renamed from adddi3.
15603 (addsi3_media): Use add.l r63 to add constant zero.
15604 (subdi3): New expand.
15605 (subdi3_media): New insn.
15606 (subdi3_compact): Renamed from subdi3.
15607 (mulsidi3): New expand.
15608 (mulsidi3_media): New insn.
15609 (mulsidi3_compact): Renamed from mulsidi3.
15610 (umulsidi3): New expand.
15611 (umulsidi3_media): New insn.
15612 (umulsidi3_compact): Renamed from umulsidi3.
15613 (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
15614 (ashlsi3, ashrsi3, lshrsi3): Use them.
15615 (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
15616 (ashldi3, ashrdi3, lshrdi3): Use them.
15617 (zero_extendsidi2): New expand.
15618 (extendsidi2): New insn.
15619 (movsi_media): New insn. Split to movdi to load constants.
15620 (movsi): Enable for shmedia.
15621 (movdi_media): New insn. Use shori_media to load wide constants.
15622 (short_media): New insn.
15623 (movdi): Enable for shmedia.
15624 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
15625 * config/sh/sh.h (CPP_SPEC): Added `m5'.
15626 (SUBTARGET_CPP_SPEC): Added `!m5'.
15627 (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
15628 (TARGET_SWITCHES): Added `5' and `5-compact'. Added SH1_BIT
15629 to all other SH variants.
15630 (TARGET_DEFAULT): Set to SH1_BIT.
15631 (OVERRIDE_OPTIONS): Recognize sh5 CPU.
15632 (BITS_PER_WORD): Raise to 64 on shmedia.
15633 (MAX_BITS_PER_WORD): Change to 64.
15634 (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
15635 (INT_TYPE_SIZE): Keep as 32.
15636 (UNITS_PER_WORD): Raise to 8 on shmedia.
15637 (MIN_UNITS_PER_WORD): Keep as 4.
15638 (POINTER_SIZE): Raise to 64 on shmedia.
15639 (CONST_OK_FOR_J): New macro.
15640 (CONST_OK_FOR_LETTER_P): Use it.
15641 (processor_type): Add PROCESSOR_SH5.
15642 * config/sh/sh.md: Conditionalize all expands, insns and
15643 splits to TARGET_SH1.
15645 (addsi3_compact): Renamed from...
15646 (addsi3): Now an expand.
15647 (addsi3_media, subsi3_media): New insns.
15648 (subsi3): Don't negate constants with SHmedia.
15650 * hooks.c: New file.
15651 * hooks.h: New file.
15652 * Makefile.in (HOOKS_H): New.
15653 (TARGET_DEF_H): Added $(HOOKS_H).
15654 (OBJS): Added hooks.o.
15655 (cfgcleanup.o, bb-reorder.o): Added target.h.
15656 (hooks.o): Added dependencies.
15657 * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
15658 (TARGET_INITIALIZER): this.
15659 * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
15660 * target.h (struct gcc_target): Added cannot_modify_jumps_p.
15661 * bb-reorder.c: Include target.h.
15662 (reorder_basic_blocks): Skip if cannot modify jumps.
15663 * cfgcleanup.c: Include target.h.
15664 (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
15666 2002-02-08 Chris Demetriou <cgd@broadcom.com>
15668 * config/mips/mips.md (casesi_internal, casesi_internal_di):
15669 Protect jump delay slot instructions with .set noreorder and
15672 2002-02-08 Chris Demetriou <cgd@broadcom.com>
15674 * config/mips/mips.md (casesi_internal_di): Calculate
15675 the index into the target offset table correctly.
15677 2002-02-08 Richard Henderson <rth@redhat.com>
15679 * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
15680 * final.c (output_addr_const): Accept and discard SUBREG.
15681 * varasm.c (decode_addr_const): Don't abort on unknown expressions --
15682 mark them unknown instead.
15683 (simplify_subtraction): Handle RTX_UNKNOWN.
15684 (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
15686 2002-02-08 David Edelsohn <edelsohn@gnu.org>
15688 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
15690 2002-02-08 Richard Henderson <rth@redhat.com>
15692 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
15694 2002-02-08 Andreas Jaeger <aj@suse.de>
15696 * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
15697 * config/i386/t-linux64: New file.
15699 2002-02-08 Jakub Jelinek <jakub@redhat.com>
15701 * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
15702 * c-parse.in (compstmt): Clear last_expr_type.
15704 2002-02-07 Richard Henderson <rth@redhat.com>
15706 * loop.c (strength_reduce): Sink final_value when not
15709 2002-02-07 David O'Brien <obrien@FreeBSD.org>
15711 * config/sparc/freebsd.h: Fix mismatched spec {.
15713 2002-02-07 Richard Henderson <rth@redhat.com>
15715 * cfgrtl.c: Include recog.h and insn-config.h.
15716 (keep_with_call_p): Fix general_operand invocation.
15717 * Makefile.in (cfgrtl.o): Update dependencies.
15719 2002-02-07 Kazu Hirata <kazu@hxi.com>
15721 * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
15722 comment. Accept HImode only if TARGET_H8300.
15724 2002-02-07 Eric Christopher <echristo@redhat.com>
15726 * config/mips/crtn.asm: Cleanup #ifdefs.
15728 2002-02-07 Eric Christopher <echristo@redhat.com>
15730 * config/mips/crti.asm: Add changes for mips16. mips16 uses
15731 register 7 as RA instead of $31.
15732 * config/mips/crtn.asm: Ditto.
15733 * config/mips/mips.c (mips_move_2words): Add case for
15734 TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
15735 (compute_frame_size): Fix typo.
15736 (save_restore_insns): Ditto. Make documentation about using
15737 register $7 as return register more precise.
15738 (mips_expand_epilogue): Fix comment. Add code to work around not
15739 being able to add to the stack pointer directly.
15740 * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
15741 to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
15744 2002-02-07 Tom Rix <trix@redhat.com>
15746 * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
15747 immediates in ldu and stdu DS opcode field.
15748 * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
15749 * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
15750 * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
15752 2002-02-07 Jeff Sturm <jsturm@one-point.com>
15754 * config/sparc/sparc.c (compute_frame_size): Don't correct frame
15755 offset for stack bias.
15757 2002-02-07 H.J. Lu <hjl@gnu.org>
15759 * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
15761 2002-02-07 Ulrich Weigand <uweigand@de.ibm.com>
15763 * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
15765 Thu Feb 7 12:14:17 CET 2002 Jan Hubicka <jh@suse.cz>
15767 * i386-protos.h (x86_order_regs_for_local_alloc): Declare
15768 * i386.c (x86_order_regs_for_local_alloc): New global function.
15769 * i386.h (REG_ALLOC_ORDER): CLeanup.
15770 (ORDER_REGS_FOR_LOCAL_ALLOC): New.
15772 2002-02-07 Richard Henderson <rth@redhat.com>
15774 PR optimization/2463
15775 * alias.c (find_base_value): Recall base values for fixed hard regs.
15776 * loop.c (loop_regs_update): Don't use single_set on non-insns.
15778 2002-02-07 Alexandre Oliva <aoliva@redhat.com>
15780 * config/mips/mips.md (define_delay) [mips16]: Adjust required
15783 2002-02-06 Richard Henderson <rth@redhat.com>
15786 * stmt.c (resolve_operand_name_1): Take more care with mixed
15787 named and unnamed operands.
15789 2002-02-06 Janis Johnson <janis187@us.ibm.com>
15790 Jan Hubicka <jh@suse.cz>
15792 * loop.c (remove_constant_addition): Avoid clobbering a shared
15795 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
15797 * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
15798 * config/s390/t-linux64: New file.
15799 * config/s390/libgcc-glibc.ver: New file.
15801 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
15803 * config/s390/linux64.h: Delete file.
15804 * config/s390/s390x.h: New file.
15805 * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
15806 as target header file.
15807 * config/s390/linux.h (TARGET_VERSION): Define depending on
15808 DEFAULT_TARGET_64BIT.
15809 (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
15810 (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
15811 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
15812 (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
15813 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
15814 (EXTRA_SPEC): New define.
15815 * config/s390/s390.h (TARGET_VERSION): Define depending on
15816 DEFAULT_TARGET_64BIT.
15817 (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
15819 2002-02-06 Jason Merrill <jason@redhat.com>
15821 * c-decl.c (finish_function): Warn about a non-void function with
15822 no return statement and no abnormal exit.
15823 (current_function_returns_abnormally): New variable.
15824 (start_function): Clear it.
15825 (struct c_language_function): Add returns_abnormally.
15826 (push_c_function_context): Save it.
15827 (pop_c_function_context): Restore it.
15828 (builtin_function): Set TREE_THIS_VOLATILE on return fns.
15829 (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
15830 an explicit return type.
15831 * c-tree.h: Declare current_function_returns_abnormally.
15832 (C_FUNCTION_IMPLICIT_INT): New macro.
15833 * c-typeck.c (build_function_call): Set it.
15834 (c_expand_return): Set current_function_returns_value even if the
15835 value is erroneous.
15837 2002-02-06 Jakub Jelinek <jakub@redhat.com>
15840 * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
15841 unsafe for reevaluation.
15843 2002-02-06 Jakub Jelinek <jakub@redhat.com>
15846 * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
15847 EXPR_STMT, but COMPOUND_STMT, recurse into it.
15849 2002-02-06 Richard Henderson <rth@redhat.com>
15851 * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
15852 be a general_operand. Dest for function value must be a pseudo.
15854 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
15856 * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
15857 as SYMBOL_REFs from the constant pool.
15859 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
15861 * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
15862 passed by invisible reference.
15864 2002-02-05 Richard Henderson <rth@redhat.com>
15866 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
15868 2002-02-06 Hans-Peter Nilsson <hp@bitrange.com>
15870 Implement using "base addresses" in insn operands as default.
15871 * config/mmix/mmix.c (mmix_conditional_register_usage): if
15872 -mabi=gnu, modify fixed_regs to fit the GNU ABI.
15873 (mmix_extra_constraint): Use 'R' to indicate that GETA should be
15874 used to read the rtx value.
15875 (mmix_target_asm_function_epilogue): Fix spacing.
15876 (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
15877 (mmix_legitimate_address): Ditto.
15878 (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
15879 should be loaded with a GETA insn. Don't allocate needless extra
15880 char for nul termination and fix misleading comment.
15881 (mmix_print_operand_address): Handle constants if
15882 TARGET_BASE_ADDRESSES.
15883 (mmix_output_register_setting): Use base addressing if
15884 TARGET_BASE_ADDRESSES and the number of insns is 3.
15885 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
15886 * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
15887 to use R as constraint, add LDA to match s.
15888 * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
15889 (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
15890 (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
15891 (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
15892 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
15893 order with other fixed registers.
15894 (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
15895 other parameter/call-clobbered registers.
15896 * doc/invoke.texi (Option Summary) <MMIX Options>: Add
15897 -mbase-addresses, -mno-base-addresses.
15898 (MMIX Options): Ditto.
15900 2002-02-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
15902 * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
15904 2002-02-06 Aldy Hernandez <aldyh@redhat.com>
15906 * config/rs6000/altivec.h: Change elem to _S_elem.
15908 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
15910 * config/netbsd.h (WCHAR_TYPE): Define.
15911 (WCHAR_TYPE_SIZE): Ditto.
15912 (WINT_TYPE): Ditto.
15913 * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
15914 (WCHAR_UNSIGNED): Ditto.
15915 (WCHAR_TYPE_SIZE): Ditto.
15916 (WINT_TYPE): Ditto.
15917 * config/arm/netbsd.h: Likewise.
15918 * config/i386/netbsd-elf.h: Likewise.
15919 * config/i386/netbsd.h: Likewise.
15920 * config/m68k/netbsd-elf.h: Likewise.
15921 * config/m68k/netbsd.h: Likewise.
15922 * config/ns32k/netbsd.h: Likewise.
15923 * config/sparc/netbsd.h: Likewise.
15924 * config/vax/netbsd.: Likewise.
15926 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
15928 * target.h (struct gcc_target): Added ms_bitfield_layout_p.
15929 * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New. Added to...
15930 (TARGET_INITIALIZER): this.
15931 * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
15932 (BITFIELD_NBYTES_LIMITED): Markup fix.
15933 * tree.h (default_ms_bitfield_layout_p): Declare.
15934 (record_layout_info): Added prev_field.
15935 * tree.c (default_ms_bitfield_layout_p): New fn.
15936 * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
15937 PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
15938 * stor-layout.c: Include target.h.
15939 (start_record_layout): Initialize prev_field.
15940 (place_field): Handle MS bit-field layout, and disregard
15941 EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
15942 PCC_BITFIELD_TYPE_MATTERS in this case. Update prev_field.
15943 * Makefile.in (stor-layout.o): Adjust dependencies.
15945 2002-02-05 Jason Merrill <jason@redhat.com>
15947 * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
15949 2002-02-05 Andreas Jaeger <aj@suse.de>
15951 * crtstuff.c: Fix comments.
15953 2002-02-05 Richard Henderson <rth@redhat.com>
15956 * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
15957 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
15960 * config/mips/mips.c (function_arg): Handle TImode.
15961 (function_arg_advance): Likewise.
15963 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
15965 * config/rs6000/altivec.h (vec_step_help): Rename to
15968 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
15970 * config/rs6000/altivec.h: Fix typos.
15972 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
15974 * config/arm/netbsd.h: Correct a comment.
15976 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
15978 * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
15979 building void typed builtins.
15981 * config/rs6000/altivec.h (vec_ld*): Fix typos.
15982 (vec_step): Implement for C++.
15984 Mon Feb 4 19:23:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15986 * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
15988 2002-02-04 Richard Henderson <rth@redhat.com>
15990 * combine.c (nonzero_bits): Re-introduce special case for
15991 sp/fp/ap wrt REGNO_POINTER_ALIGN.
15993 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
15995 * doc/extend.texi: Warn about unsupported usage of altivec
15998 * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
15999 (altivec_predicate_*): New.
16001 * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
16002 Add C++ version of vec_*() functions.
16004 * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
16005 (bdesc_2arg): Remove altivec predicates.
16006 (altivec_expand_builtin): Handle predicates.
16007 (altivec_init_builtins): Handle predicates.
16008 (altivec_expand_predicate_builtin): New.
16010 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
16012 * pa.c (DO_FRAME_NOTES): Move forward.
16013 (store_reg): Revise handling of frame notes.
16014 (load_reg): Likewise.
16015 (set_reg_plus_d): Likewise.
16016 (hppa_expand_prologue): Likewise.
16017 (hppa_expand_epilogue): Likewise.
16019 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
16021 * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
16023 2002-02-04 Jakub Jelinek <jakub@redhat.com>
16025 PR c/4475, c++/3780:
16026 * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
16027 * c-common.h (SWITCH_TYPE): Define.
16028 * c-typeck.c (c_start_case): Set SWITCH_TYPE.
16029 * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
16030 Rename spareness variable to sparseness.
16031 (expand_end_case_type): Renamed from expand_end_case, use orig_type
16032 if non-NULL instead of TREE_TYPE (orig_index).
16033 * tree.h (expand_end_case_type): Renamed from expand_end_case.
16034 (expand_end_case): Define using expand_end_case_type.
16035 * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
16036 to expand_end_case_type.
16037 * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
16039 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
16041 * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
16042 (BIGGEST_ALIGNMENT): Change to 128.
16044 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
16046 * pa32-linux.h (LINK_COMMAND_SPEC): Define.
16048 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
16050 * pa.md (call_internal_reg_64bit): Remove unused variable.
16052 2002-02-04 Nick Clifton <nickc@cambridge.redhat.com>
16054 * config/arm/arm.h (machine_function): Add uses_anonymous_args
16056 (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
16057 * config/arm/arm.c (current_function_anonymous_args): Delete,
16058 replace uses with cfun->machine->uses_anonymous_args.
16059 (arm_reorg): Do not reset uses_anonymous_args.
16061 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
16062 any geenral register.
16064 2001-02-04 Bernd Schmidt <bernds@redhat.com>s
16066 * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
16069 2002-02-04 Richard Henderson <rth@redhat.com>
16071 * combine.c (force_to_mode): Remove STACK_BIAS code.
16072 (nonzero_bits): Likewise. Replace sp/fp special case with
16073 REGNO_POINTER_ALIGN.
16075 * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
16076 (HARD_FRAME_POINTER_REGNUM): New.
16077 (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
16078 (FIXED_REGS, CALL_USED_REGS): Update.
16079 (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
16080 (CONDITIONAL_REGISTER_USAGE): Update for HFP.
16081 (HARD_REGNO_NREGS): Update for SFP.
16082 (STACK_POINTER_OFFSET): Include bias here ...
16083 (FIRST_PARM_OFFSET): ... not here.
16084 (STACK_BIAS): Remove.
16085 (INIT_EXPANDERS): New.
16086 (STARTING_FRAME_OFFSET): Do not include bias.
16087 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
16088 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
16089 (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
16090 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
16091 * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
16092 * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
16093 (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
16094 (MUST_SAVE_REGISTER): Likewise.
16095 (sparc_flat_function_prologue): Likewise.
16096 (sparc_flat_function_epilogue): Likewise.
16097 (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
16098 (sparc_init_modes): SFP is GENERAL_REGS.
16099 (sparc_builtin_saveregs): SFP does not have bias applied.
16101 2002-02-04 Richard Henderson <rth@redhat.com>
16103 * config/alpha/alpha.c (current_function_is_thunk): Don't check
16104 current_function_is_thunk.
16105 (alpha_sa_mask): Distinguish between current_function_is_thunk
16106 called from ASM_OUTPUT_MI_THUNK and not.
16107 (alpha_does_function_need_gp): Thunks always need gp.
16108 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
16109 (alpha_output_mi_thunk_osf): New.
16110 * config/alpha/alpha-protos.h: Update.
16111 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
16113 2002-02-04 Richard Sandiford <rsandifo@redhat.com>
16115 * c-typeck.c (build_c_cast): Warn when qualifiers are added to
16116 function types, not when they're taken away.
16118 Mon Feb 4 09:05:58 2002 Jeffrey A Law (law@redhat.com)
16120 * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
16121 CODE_LABEL and jump table when replacing a table jump with a
16124 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
16126 * config/s390/s390-protos.h (legitimize_la_operand,
16127 s390_secondary_input_reload_class, s390_plus_operand,
16128 s390_expand_plus_operand): Add prototypes.
16130 config/s390/s390.c (s390_secondary_input_reload_class,
16131 s390_plus_operand, s390_expand_plus_operand): New functions.
16133 (struct s390_address): New member 'pointer'.
16134 (s390_decompose_address): Compute it.
16135 (legitimate_la_operand_p): Use it.
16136 (legitimize_la_operand): New function.
16137 (movti, movdi, movdf splitters): Call it.
16139 config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
16140 (PREDICATE_CODES): Add s390_plus_operand.
16142 config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
16143 (la_ccclobber): Allow GENERAL_REGS as output operand.
16145 (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
16146 *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
16147 (*la_64, *la_31, reload_indi, reload_insi): ... these.
16149 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
16151 * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
16152 register names for regular asm () construct.
16154 2002-02-04 Jakub Jelinek <jakub@redhat.com>
16156 * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
16159 2002-02-04 Jakub Jelinek <jakub@redhat.com>
16161 * combine.c (recog_for_combine): Create a dummy insn with PATTERN
16164 2002-02-04 Hartmut Penner <hpenner@de.ibm.com>
16166 * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
16167 constant pool to be identical by string address and index.
16169 2002-02-04 Anthony Green <green@redhat.com>
16171 * output.h (SECTION_OVERRIDE): Define.
16172 * varasm.c (named_section): Obey SECTION_OVERRIDE.
16174 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
16176 * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
16177 by existing arm*-*-netbsd* (a.out) target.
16178 (ns32k-*-netbsdelf*): Likewise.
16179 (sparc-*-netbsdelf*): Likewise.
16180 (vax-*-netbsdelf*): Likewise.
16182 2002-02-03 Danny Smith <dannysmith@users.sourceforge.net>
16184 * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
16185 headers and libobjc headers.
16187 2002-02-03 Mumit Khan <khan@nanotech.wisc.edu>
16189 * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
16190 (_mingw.h): Remove duplicate include.
16192 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
16194 * config.gcc: Set cpu_type to m68k for 68010, as well.
16195 (m68010-*-netbsdelf*): New...
16196 (m68k*-*-netbsdelf*): ...targets.
16197 * config/m68k/netbsd-elf.h: New file.
16199 2002-02-02 Kazu Hirata <kazu@hxi.com>
16201 * config/h8300/h8300.c (hand_list): Move inside function_arg.
16203 2002-02-02 Kazu Hirata <kazu@hxi.com>
16205 * config/h8300/h8300.c (h8_push_ops): Move inside
16207 (h8_pop_ops): Likewise.
16208 (h8_move_ops): Likewise.
16210 2002-02-02 Kazu Hirata <kazu@hxi.com>
16212 * config/h8300/h8300.c (os_task): Make it static.
16213 (monitor): Likewise.
16214 (pragma_saveall): Likewise.
16216 2002-02-02 Alexandre Oliva <aoliva@redhat.com>
16218 * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
16219 constant is a valid sign-extension for Pmode.
16221 2002-02-02 Kazu Hirata <kazu@hxi.com>
16223 * config/h8300/h8300.c: Fix formatting.
16225 2002-02-02 Kazu Hirata <kazu@hxi.com>
16227 * config/h8300/h8300.md: Fix formatting.
16229 2002-02-02 Kazu Hirata <kazu@hxi.com>
16231 * config/h8300/h8300.md (one_cmpl patterns): Tighten the
16232 predicates of operands[1]. Split the patterns for each
16235 2002-02-02 Kazu Hirata <kazu@hxi.com>
16237 * config/h8300/h8300.md (xor patterns): Tighten the predicates
16238 of operands[1] to register_operand.
16240 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
16242 * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
16243 * cpphash.c (_cpp_init_hashtable): Similarly.
16244 * cppinit.c (cpp_create_reader): Default the signed_char flag.
16245 (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
16246 (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
16247 (cpp_handle_option): Handle the new options.
16248 * cpplex.c (cpp_interpret_charconst): Use new flag.
16249 * cpplib.h (struct cpp_options): New member signed_char.
16250 * gcc.c (cpp_unique_options): Remove %c spec and documentation.
16251 (cpp_options): Handle -fsigned-char and -funsigned-char.
16252 (static_specs): Remove signed_char_spec.
16253 (do_spec1): Don't handle %c.
16254 * system.h: Poison SIGNED_CHAR_SPEC.
16255 * tradcif.y (yylex): Use flag_signed_char.
16256 * tradcpp.h (flag_signed_char): New.
16257 * tradcpp.c (flag_signed_char): New.
16258 (main): Handle new command-line options.
16259 (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
16261 * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
16262 * avr/avr.h: Remove old comments.
16263 * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
16264 (CC1_SPEC): Pass -fsigned-char if -mic*.
16265 (SIGNED_CHAR_SPEC): Remove.
16267 * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
16269 2002-02-01 Eric Christopher <echristo@redhat.com>
16271 From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
16272 * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
16273 * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
16274 (ASM_OUTPUT_REG_POP): Ditto.
16276 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
16278 * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
16281 2002-02-02 Jakub Jelinek <jakub@redhat.com>
16283 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
16285 2002-02-02 Jakub Jelinek <jakub@redhat.com>
16288 * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
16291 2002-02-01 Janis Johnson <janis187@us.ibm.com>
16293 * cfganal.c: Include tm_p.h.
16294 (keep_with_call_p): Fix the test that determines if a register holds
16295 the return value of a call.
16297 2002-02-01 DJ Delorie <dj@redhat.com>
16299 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
16300 we are given conflicting registers, switch to the other one we
16301 had allocated for us.
16302 * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
16303 as TImode so we know when the "other" register is available.
16305 2002-02-01 David O'Brien <obrien@FreeBSD.org>
16307 * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
16310 2002-02-01 Janis Johnson <janis187@us.ibm.com>
16312 * cfganal.c (keep_with_call_p): New function.
16313 (flow_call_edges_add): Prevent splitting a block between a call and
16314 a single-set instruction that should be kept in the same block.
16316 2002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
16318 * doc/install.texi (avr): Update outdated URL.
16320 2002-01-30 Andrew Haley <aph@cambridge.redhat.com>
16322 * config/stormy16/stormy16.md (pushqi): New.
16326 (movhi): Remove stack operands.
16328 * config/stormy16/stormy16.h (PREDICATE_CODES): Add
16329 nonimmediate_nonstack_operand.
16330 * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
16332 * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
16335 2002-01-31 Jason Merrill <jason@redhat.com>
16337 * Makefile.in (c-parse.c): Handle .output file.
16338 * objc/Make-lang.in (objc-parse.c): Likewise.
16340 2002-02-01 Alexandre Oliva <aoliva@redhat.com>
16342 * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
16343 the -me[lb] option is given. Don't output the default flag
16346 2002-01-31 Zack Weinberg <zack@codesourcery.com>
16348 * c-lex.c (yyparse): Call debug_hooks->start_source_file for
16349 the primary source file; this has not been done yet.
16350 * c-decl.c (c_expand_body): Reset input_filename from
16351 DECL_SOURCE_FILE (fndecl) before calling init_function_start.
16353 2002-01-31 Kazu Hirata <kazu@hxi.com>
16355 * rtlanal.c (subreg_regno_offset): Do not use
16356 SUBREG_REGNO_OFFSET.
16357 * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
16358 * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
16360 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
16362 * gccbug.in: Follow GNU Coding Standards for --version. Use GCC
16363 version rather than GNATS version in --version output.
16365 2002-01-31 Richard Sandiford <rsandifo@redhat.com>
16367 * ifcvt.c (noce_process_if_block): Make a copy of the destination
16368 when copying back from a temporary.
16370 2002-01-30 Richard Henderson <rth@redhat.com>
16372 * ifcvt.c (dead_or_predicable): Handling merging when other_bb
16373 and new_dest are the same.
16375 2002-01-30 Richard Henderson <rth@redhat.com>
16378 * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
16379 * rtl.c (note_insn_name): Update.
16380 * emit-rtl.c (remove_unnecessary_notes): Kill it.
16381 * stmt.c (expand_end_loop): Kill jump opt code. Use LOOP_END_TOP_COND
16382 to perform loop rotation.
16383 (expand_exit_loop_top_cond): New.
16384 * tree.h (expand_exit_loop_top_cond): Declare it.
16385 * c-semantics.c (genrtl_while_stmt): Use it.
16386 (genrtl_for_stmt): Likewise.
16388 2002-01-30 Alexandre Oliva <aoliva@redhat.com>
16390 * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
16391 arguments to 64-bit boundaries on 64-bit ABIs.
16393 2002-01-30 Steve Ellcey <sje@cup.hp.com>
16395 * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
16397 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
16399 * c-decl.c (grokdeclarator): Handle type being a typedef for an
16402 2002-01-30 David O'Brien <obrien@FreeBSD.org>
16404 * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
16405 * config/sparc/sparc_bi.h: Remove file.
16406 * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
16408 2002-01-30 Richard Henderson <rth@redhat.com>
16410 * sched-deps.c (sched_analyze): Make a call read the frame pointer.
16412 2002-01-30 Zack Weinberg <zack@codesourcery.com>
16414 * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
16416 2002-01-30 Jason Merrill <jason@redhat.com>
16418 * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
16419 (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
16420 (reg_save): Use DW_CFA_offset_extended_sf instead.
16422 * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
16424 2002-01-29 Jakub Jelinek <jakub@redhat.com>
16426 * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
16429 2002-01-29 Aldy Hernandez <aldyh@redhat.com>
16431 * rs6000.md ("*call_value_local32"): Remove constraints.
16432 ("*call_value_local64"): Same.
16433 ("*call_value_indirect_nonlocal_aix32"): Same.
16434 ("*call_value_nonlocal_aix32"): Same.
16435 ("*call_value_indirect_nonlocal_aix64"): Same.
16436 ("*call_value_nonlocal_aix64"): Same.
16437 ("*call_value_nonlocal_sysv"): Same.
16439 2002-01-29 Richard Henderson <rth@redhat.com>
16441 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
16443 2002-01-29 Richard Henderson <rth@redhat.com>
16445 * expr.c (force_operand): Ignore flag_pic for detecting pic
16447 * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
16448 for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
16449 * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
16450 instead of open-coded loop.
16451 * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
16452 be fixed when in use.
16454 2002-01-29 Richard Henderson <rth@redhat.com>
16456 * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
16457 * sched-rgn.c (propagate_deps): Update them.
16458 * sched-deps.c (sched_analyze_insn): Update them. Flush the
16459 clobbers list when either gets too long.
16461 2002-01-29 Jakub Jelinek <jakub@redhat.com>
16463 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
16464 and INDEX_REGS the same as GENERAL_REGS.
16465 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
16467 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
16469 * tree.c (build_nonstandard_integer_type): Correct prototype.
16471 2002-01-29 Ulrich Weigand <uweigand@de.ibm.com>
16473 * config/s390/s390.md (movstrsico, movstrdix_64,
16474 movstrsix_31): Remove, replace by ...
16475 (movstrdi_short, movstrsi_short, movstrdi_long,
16476 movstrsi_long): ... these. New.
16477 (movstrdi, movstrsi): Adapt.
16479 (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
16480 ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
16481 Remove unnecessary CC clobber.
16482 (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
16483 *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
16485 (divmoddi4): Don't partially initialize TImode register.
16487 2002-01-29 Geoffrey Keating <geoffk@redhat.com>
16489 * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
16491 2002-01-29 Richard Henderson <rth@redhat.com>
16493 * flow.c (print_rtl_and_abort): Remove.
16494 (print_rtl_and_abort_fcn): Remove.
16495 (verify_local_live_at_start): Use dump_bb instead.
16496 (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
16497 (verify_wide_reg_1): Return 2 on mode test failure.
16499 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
16501 PR c/3325, c/3326, c/2511, c/3347
16502 * c-decl.c (enum_decl_context): Remove BITFIELD.
16503 (grokdeclarator): Take bitfield width as an input.
16504 Ensure bitfields are given the correct type. Perform
16505 bitfield width validation with build_bitfield_integer_type
16506 rather than waiting for finish_struct.
16507 (grok_typename, grok_typename_in_parm_context, start_decl,
16508 push_parmdecl, grokfield, start_function): Update calls to
16510 (build_bitfield_integer_type): New function.
16511 (finish_struct): Move bitfield validation to grokdeclarator
16512 and build_bitfield_integer_type.
16513 * tree.c (build_nonstandard_integer_type): New function.
16514 * tree.h (build_nonstandard_integer_type): New prototype.
16516 * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
16518 2002-01-29 Jakub Jelinek <jakub@redhat.com>
16521 * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
16522 don't ignore unrecognized -W* options.
16523 (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
16524 * cpplib.h (cpp_handle_option): Adjust prototype.
16525 * c-decl.c (c_decode_options): Pass 0 as last argument to
16529 * gcc.c (cpp_unique_options): Split from cpp_options.
16530 (cpp_options): Source cpp_unique_options.
16531 (default_compilers): Use cpp_unique_options instead of cpp_options
16532 when used together with cc1_options.
16533 (static_specs): Add cpp_unique_options.
16534 * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
16535 when used together with cc1_options.
16537 2002-01-29 Kazu Hirata <kazu@hxi.com>
16539 * config/h8300/h8300-protos.h: Update the prototype of
16541 * config/h8300/h8300.c (output_a_shift): Remove an unused
16542 argument 'insn'. Remove redundant code.
16543 * config/h8300/h8300.md: Adust to the new prototype of
16546 2002-01-29 Kazu Hirata <kazu@hxi.com>
16548 * config/h8300/h8300-protos.h: Update the prototypes of
16549 emit_a_rotate and expand_a_rotate.
16550 * config/h8300/h8300.c (emit_a_rotate): Change the type of the
16551 first argument to 'enum rtx_code'.
16552 (expand_a_rotate): Likewise.
16554 2002-01-28 Kazu Hirata <kazu@hxi.com>
16556 * config/h8300/h8300-protos.h: Update the prototype of
16558 * config/h8300/h8300.c (output_simode_bld): Remove an argumen
16560 * config/h8300/h8300.md: Adjust to the new prototype.
16562 2002-01-28 Kazu Hirata <kazu@hxi.com>
16564 * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
16567 2002-01-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
16569 * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
16570 is a fixed register before returning pic_offset_table_rtx.
16571 * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
16572 when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
16574 2002-01-28 Jason Merrill <jason@redhat.com>
16576 * dwarf2.h: Sync with src version.
16578 2002-01-28 Paul Koning <pkoning@equallogic.com>
16580 * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
16581 BT_FN_VOID_PTR_VAR.
16582 * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
16583 * doc/extend.texi (__builtin_prefetch): Update documentation:
16584 first argument is now const void ptr.
16586 2002-01-28 Kazu Hirata <kazu@hxi.com>
16588 * config/h8300/h8300-protos.h: Remove an unused prototype.
16590 2002-01-28 Roman Zippel <zippel@linux-m68k.org>
16592 * toplev.c (lang_independent_init): Round up identifier size.
16594 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
16596 * config.gcc: Revert previous change.
16598 2002-01-28 Andris Pavenis <pavenis@latnet.lv>
16600 * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
16602 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
16604 * config.gcc (*-*-netbsdelf*): Set up generic parameters.
16605 (*-*-netbsd*): Always use collect2. Remove collect2 settings from
16606 other non-elf netbsd config frags.
16607 * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
16608 collect2 will does that.
16609 * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
16610 shared-lib frobbing will work.
16612 2002-01-28 Kazu Hirata <kazu@hxi.com>
16614 * config/h8300/h8300.h: Fix formatting.
16615 * config/h8300/h8300.md: Likewise.
16617 2002-01-28 Loren J. Rittle <ljrittle@acm.org>
16619 * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
16620 the old, removed AAA_standards fix.
16621 * fixinc/fixincl.x: Rebuilt.
16623 2002-01-28 Hans-Peter Nilsson <hp@axis.com>
16625 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
16626 atexit call in crtbegin, hooked in after call to frame_dummy;
16627 register EH before registering __fini__start.
16629 2002-01-28 Aldy Hernandez <aldyh@redhat.com>
16631 * config/rs6000/altivec.h: Remove spurious semicolons.
16633 2002-01-27 Kazu Hirata <kazu@hxi.com>
16635 * config/h8300/h8300.md: Replace dead bit extraction patterns
16636 with ones that work.
16638 Sun Jan 27 13:23:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16640 * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
16641 if not STRICT_ALIGNMENT.
16642 * rtl.h (MEM_ALIGN): Likewise.
16644 2002-01-27 Craig Rodrigues <rodrigc@gcc.gnu.org>
16646 * doc/invoke.texi (-fdump-translation-unit): Revert this
16647 patch: 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
16649 2002-01-27 Kazu Hirata <kazu@hxi.com>
16651 * config/h8300/h8300.md (define_constants): New.
16652 (anonymous patterns) Use defined constants appropriately.
16654 2002-01-27 Kazu Hirata <kazu@hxi.com>
16656 * config/h8300/h8300.c (function_arg): Remove redundant code.
16658 2002-01-26 Richard Henderson <rth@redhat.com>
16660 * sched-deps.c (reg_pending_uses_head): New.
16661 (reg_pending_barrier): Rename from reg_pending_sets_all.
16662 (find_insn_list): Don't mark inline.
16663 (find_insn_mem_list): Remove.
16664 (add_dependence_list, add_dependence_list_and_free): New.
16665 (flush_pending_lists): Replace only_write param with separate
16666 for_read and for_write parameters. Update all callers. Use
16667 add_dependence_list_and_free.
16668 (sched_analyze_1): Do not add reg dependencies here; just set
16669 the pending bits. Use add_dependence_list.
16670 (sched_analyze_2): Likewise.
16671 (sched_analyze_insn): Replace schedule_barrier_found with
16672 reg_pending_barrier. Add all dependencies for pending reg
16673 uses, sets, and clobbers.
16674 (sched_analyze): Don't add reg dependencies for calls, just
16675 set pending bits. Use regs_invalidated_by_call. Treat
16676 sched_before_next_call as a normal list, not a fake insn.
16677 (init_deps): No funny init for sched_before_next_call.
16678 (free_deps): Free pending mems lists. Don't zero reg_last.
16679 (init_deps_global): Init reg_pending_uses.
16680 (finish_deps_global): Free it.
16681 * sched-int.h (deps): Make in_post_call_group_p boolean. Update docs.
16682 (find_insn_mem_list): Remove.
16683 * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
16684 (propagate_deps): Use them. Zero temp mem lists.
16686 2002-01-26 Richard Henderson <rth@redhat.com>
16688 * Makefile.in (CRTSTUFF_CFLAGS): New.
16689 (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
16690 * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
16691 crtstuff.c instead of alpha assembly version.
16692 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
16693 entire dummy function sequence. Use FORCE_CODE_SECTION_ALIGN
16694 not FORCE_{INIT,FINI}_SECTION_ALIGN.
16695 (__do_global_dtors_aux): Mark used.
16696 (frame_dummy, __do_global_ctors_aux): Mark used.
16697 (fini_dummy, init_dummy): Remove.
16699 * config/alpha/crtbegin.asm: Remove file.
16700 * config/alpha/crtend.asm: Remove file.
16701 * config/alpha/t-crtbe: Remove file.
16702 * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
16703 (LINK_EH_SPEC): New.
16705 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
16706 FORCE_INIT_SECTION_ALIGN hack. Register __fini_start before
16707 calling constructors.
16708 * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
16710 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
16711 * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
16712 CRT_END_INIT_DUMMY hack.
16713 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
16714 FORCE_{INIT,FINI}_SECTION_ALIGN.
16716 * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
16717 FORCE_{INIT,FINI}_SECTION_ALIGN.
16719 * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
16720 invocation sequence.
16721 * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
16723 * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
16724 (FORCE_CODE_SECTION_ALIGN): New.
16726 2002-01-26 Richard Henderson <rth@redhat.com>
16728 * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
16730 2002-01-26 Richard Henderson <rth@redhat.com>
16732 * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
16733 (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
16735 2002-01-26 Kazu Hirata <kazu@hxi.com>
16737 * config/h8300/h8300.md: Remove bit extraction patterns that
16738 cannot be triggered.
16739 Restrict each bit extraction pattern to a variant on which the
16742 2002-01-26 Joseph S. Myers <jsm28@cam.ac.uk>
16744 * doc/include/texinfo.tex: Update to version 2002-01-04.07.
16746 2002-01-26 Kazu Hirata <kazu@hxi.com>
16748 * config/h8300/h8300.md: Remove bit test patterns that cannot
16750 Restrict each bit test pattern to a variant on which the
16753 2002-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16755 * builtins.c (expand_builtin_strncat): Remove redundant check for
16758 2002-01-25 David O'Brien <obrien@FreeBSD.org>
16760 * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
16762 * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
16765 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
16767 * dbxout.c (dbxout_init): Use assemble_name rather than just
16768 stripping off the first character.
16769 (dbxout_source_file): Likewise.
16771 2002-01-25 DJ Delorie <dj@redhat.com>
16773 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
16774 using rtx_equal_p, not by comparing pointers.
16776 2002-01-25 Steve Ellcey <sje@cup.hp.com>
16778 * emit-rtl.c (gen_rtx_REG): Always return the same rtx
16779 for PIC_OFFSET_TABLE_REGNUM.
16780 (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
16782 2002-01-25 David O'Brien <obrien@FreeBSD.org>
16784 * config.gcc (x86_64-*-freebsd*): New target.
16785 (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
16787 (i[34567]86-*-freebsd*): Don't include svr4.h.
16788 * config/i386/freebsd64.h: New file.
16790 2002-01-25 Douglas B Rupp <rupp@gnat.com>
16792 * config/alpha/x-vms (version): Make static.
16794 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
16795 in previous checkin.
16797 * Makefile.in (install-headers-cp): New target.
16798 * config.gcc (alpha-dec-*vms*): Install headers with
16801 Fri Jan 25 22:42:49 CET 2002 Jan Hubicka <jh@suse.cz>
16803 * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
16806 Fri Jan 25 08:26:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16808 * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
16809 of compare_tree_int.
16810 (expand_builtin_strncat): Likewise.
16811 * c-decl.c (finish_struct): Use tree_low_cst.
16812 * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
16813 * tree.c (compare_tree_int): Likewise.
16815 2002-01-25 Ulrich Weigand <uweigand@de.ibm.com>
16817 * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
16818 adjustments even if they are implemented by more than two insns.
16820 Fri Jan 25 20:43:56 CET 2002 Jan Hubicka <jh@suse.cz>
16822 * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
16823 * df.h (struct ref): Kill B.
16824 (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
16826 * basic-block.h (PROP_EQUAL_NOTES): New flag.
16827 * flow.c (propagate_one_insn): Use it.
16828 (mark_used_regs): Handle NIL.
16830 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
16832 * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
16835 2002-01-25 David Edelsohn <edelsohn@gnu.org>
16837 * rs6000.md (prefetch): Make address V4SI mode so that the address
16838 is restricted to legitimate form for instruction.
16840 2002-01-25 Bob Wilson <bob.wilson@acm.org>
16842 * doc/install.texi (xtensa-*-elf): New target.
16843 (xtensa-*-linux*): New target.
16844 * doc/contrib.texi: Add myself.
16846 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
16848 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
16849 purpose register to hold an SImode (or smaller) value.
16851 2002-01-25 Jakub Jelinek <jakub@redhat.com>
16853 * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
16855 * crtstuff.c: Likewise.
16857 2002-01-25 Kazu Hirata <kazu@hxi.com>
16859 * config/h8300/h8300.md (negation patterns): Tighten
16860 predicates to register_operand.
16862 2002-01-24 Aldy Hernandez <aldyh@redhat.com>
16864 * loop.c (emit_prefetch_instructions): Use the prefetch insn's
16867 * builtins.c (expand_builtin_prefetch): Same.
16869 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
16871 * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
16874 2002-01-24 Kazu Hirata <kazu@hxi.com>
16876 * config/h8300/h8300.c (print_operand): Remove support for
16877 operand character 'A'.
16878 * config/h8300/h8300.md (three anonymous patterns): Replace
16879 operand character 'A' with either 'T' or 'S'.
16881 2002-01-24 Kazu Hirata <kazu@hxi.com>
16883 * config/h8300/h8300.c (print_operand): Remove support for
16884 operand character 'U'.
16886 2002-01-24 Andris Pavenis <pavenis@latnet.lv>
16888 * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
16890 2002-01-24 Nick Clifton <nickc@cambridge.redhat.com>
16892 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
16893 values to be assigned to the stack pointer.
16895 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
16897 * emit_rtl.c (gen_lowpart_common): Conversion from const_int
16898 to const_double needs to be done right for big-endian systems.
16900 2002-01-24 Jason Merrill <jason@redhat.com>
16903 * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
16904 to can_throw_internal.
16906 2002-01-23 Richard Henderson <rth@redhat.com>
16908 * fold-const.c (fold): Change UINT_MAX test to check vs precision
16909 rather than TYPE_MAX_VALUE. Fix indentation and a bogus negation.
16911 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
16913 * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
16914 (symGOT2reg): Use them, then set as GOT value as unchanging.
16915 (symGOTOFF2reg): Set REG_EQUAL note. Use a different pseudo
16916 as a temporary, if possible.
16917 (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC. Emit
16918 sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
16920 2002-01-23 Kazu Hirata <kazu@hxi.com>
16922 * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
16923 accept to accept 0x80 as operands[2].
16925 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
16927 * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
16929 2002-01-23 Richard Henderson <rth@redhat.com>
16931 * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
16933 2002-01-23 Aldy Hernandez <aldyh@redhat.com>
16935 * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
16936 (parmlist_or_identifiers_1): Verify that only a parmlist follows
16939 2002-01-23 Richard Henderson <rth@redhat.com>
16941 * expr.c (move_by_pieces_1): Extend size before negation.
16943 * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
16944 (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
16945 (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
16946 * config/m68k/t-m68kelf: Likewise.
16948 2002-01-23 Bob Wilson <bob.wilson@acm.org>
16950 * config/xtensa/elf.h: New file.
16951 * config/xtensa/lib1funcs.asm: New file.
16952 * config/xtensa/lib2funcs.S: New file.
16953 * config/xtensa/linux.h: New file.
16954 * config/xtensa/t-xtensa: New file.
16955 * config/xtensa/xtensa-config.h: New file.
16956 * config/xtensa/xtensa-protos.h: New file.
16957 * config/xtensa/xtensa.c: New file.
16958 * config/xtensa/xtensa.h: New file.
16959 * config/xtensa/xtensa.md: New file.
16960 * config.gcc (xtensa-*-elf*): New target.
16961 (xtensa-*-linux*): New target.
16962 * cse.c (canon_hash): Compare rtx pointers instead of register
16963 numbers. This is required for the Xtensa port.
16964 * integrate.c (copy_insn_list): Handle case where the static
16965 chain is in memory and the memory address has to be copied to
16967 * doc/invoke.texi (Option Summary): Add Xtensa options.
16968 (Xtensa Options): New node.
16969 * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
16971 2002-01-23 Zack Weinberg <zack@codesourcery.com>
16973 * diagnostic.c (internal_error): Do ICE suppression only
16974 when ENABLE_CHECKING is not defined.
16976 * c-typeck.c (require_complete_type): Return error_mark_node
16977 if type is error_mark_node.
16979 2002-01-23 Janis Johnson <janis187@us.ibm.com>
16981 * toplev.c (process_options): Disable -fprefetch-loop-arrays with
16982 -Os and issue a warning.
16984 2002-01-23 Zack Weinberg <zack@codesourcery.com>
16986 * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
16987 current (lack of) need for host configuration by hand.
16989 * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
16990 references. Documentation of some target macros moved from
16991 hostconfig.texi to tm.texi.
16993 2002-01-23 Will Cohen <wcohen@redhat.com>
16995 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
16998 2002-01-23 Kazu Hirata <kazu@hxi.com>
17000 * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
17003 2002-01-23 Jason Merrill <jason@redhat.com>
17005 * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
17007 * function.c (assign_parms): Don't put args of inline functions
17008 into registers when not optimizing.
17010 2002-01-23 Nick Clifton <nickc@cambridge.redhat.com>
17012 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
17013 (prologue_use): New pattern.
17014 * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
17015 preference to gen_rtx_USE.
17016 (thumb_expand_prologue): Use gen_prologue_use in preference to
17018 (thumb_expand_epilogue): Use gen_prologue_use in preference to
17021 2002-01-23 Hans-Peter Nilsson <hp@bitrange.com>
17023 * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
17025 2002-01-23 Neil Booth <neil@daikokuya.demon.co.uk>
17028 * doc/extend.texi: Correct documentation of __alignof__.
17030 2002-01-22 Zack Weinberg <zack@codesourcery.com>
17032 * params.h: Rename arguments of DEFPARAM so that it will be
17033 recognized as a translation keyword.
17035 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
17037 * extend.texi: Document altivec functions.
17038 Fix N-bit adjectives in X86 builtin documentation.
17040 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
17042 * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
17043 auto_inc_dec values.
17045 2002-01-22 Richard Earnshaw <rearnsha@arm.com>
17047 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
17049 (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
17051 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
17053 * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
17055 2002-01-22 Richard Henderson <rth@redhat.com>
17057 * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
17058 copy_insn not copy_rtx.
17060 2002-01-23 Alan Modra <amodra@bigpond.net.au>
17062 * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
17063 "nonzero" as that might add "1" bits. Ensure "constop" is
17064 properly sign extened.
17065 (force_to_mode): Tweak for sign extended constop.
17067 2002-01-22 Richard Henderson <rth@redhat.com>
17069 * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
17070 for_each_rtx instead of assuming we're already looking at the MEM.
17071 (split_small_symbolic_mem_operand): Likewise.
17072 * config/alpha/alpha.h (PREDICATE_CODES): Update.
17073 * config/alpha/alpha.md (small symbolic memory splitters): Update.
17075 2002-01-22 Richard Henderson <rth@redhat.com>
17077 * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
17078 sequence number for the literal.
17079 (divmoddi_internal_er): Likewise.
17081 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
17084 * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
17085 in LIBICONV variable.
17086 * configure: Regenerated.
17088 2002-01-22 Krister Walfridsson <cato@df.lth.se>
17090 * dependence.c (build_def_use): Remove array_idx.
17092 * dwarfout.c (last_filename): Remove.
17093 (output_compile_unit_die): Remove last_filename.
17095 2002-01-22 Roger Sayle <roger@eyesopen.com>
17096 Richard Henderson <rth@redhat.com>
17099 * fold-const.c (fold): Optimize unsigned comparisons against
17100 UINT_MAX (and similar unsigned constants).
17102 2002-01-22 Janis Johnson <janis187@us.ibm.com>
17104 * Makefile.in (loop.o): Depend on OPTABS_H.
17105 * loop.c (emit_prefetch_instructions): Check the prefetch operand
17106 against the predicate.
17109 * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
17110 for the address operand.
17112 2002-01-22 Richard Henderson <rth@redhat.com>
17114 * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
17116 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
17119 * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
17120 preprocessor flags.
17122 2002-01-22 Jason Thorpe <thorpej@wasabisystems.com>
17124 * config.gcc (x86_64-*-netbsd*): New target.
17125 * config/i386/netbsd64.h: New file.
17127 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
17129 * regrename.c (kill_value): Fix typo.
17131 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
17133 * doc/tm.texi: Remove STARTING_FRAME_PHASE.
17135 * config/rs6000/rs6000.h: Same.
17137 * function.c (instantiate_virtual_regs): Remove
17138 STARTING_FRAME_PHASE.
17139 (assign_stack_local_1): Same.
17140 Calculate frame phase.
17142 2002-01-22 Nick Clifton <nickc@redhat.com>
17144 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
17145 variable declaration to outer scope in order to simplify
17147 (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
17148 arm_hard_regno_mode_ok.
17149 * config/arm/arm-protos.h: Add a prototype for
17150 arm_hard_regno_mode_ok.
17151 * config/arm/arm.c (soft_df_operand): Remove now redundant
17152 check for DImode values using IP_REGNUM.
17153 (nonimmediate_soft_df_operand): Remove now redundant check for
17154 DImode values using IP_REGNUM.
17155 (arm_hard_regno_mode_ok): New function. New check: make sure
17156 that DImode values are not stored in IP_REGNUM.
17158 * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
17160 (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
17162 2002-01-22 Jason Merrill <jason@redhat.com>
17164 * c-semantics.c (genrtl_compound_stmt): Only check nesting
17165 consistency if this COMPOUND_STMT is scoped.
17167 2002-01-22 Kazu Hirata <kazu@hxi.com>
17169 * predict.c: Fix formatting.
17170 * print-tree.c: Likewise.
17171 * protoize.c: Likewise.
17172 * real.h: Likewise.
17174 * sbitmap.h: Likewise.
17175 * scan.c: Likewise.
17176 * sched-deps.c: Likewise.
17177 * sched-vis.c: Likewise.
17178 * sdbout.c: Likewise.
17179 * sibcall.c: Likewise.
17181 * ssa-ccp.c: Likewise.
17182 * ssa-dce.c: Likewise.
17183 * stmt.c: Likewise.
17184 * stor-layout.c: Likewise.
17185 * system.h: Likewise.
17187 Tue Jan 22 06:26:33 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17189 * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
17190 if fits in bounds of base type.
17192 * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
17193 (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
17194 (add_bound_info, default): If can't find a context, make a
17196 (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
17198 2002-01-22 Hans-Peter Nilsson <hp@axis.com>
17200 * c-typeck.c (parser_build_binary_op): If result from
17201 build_binary_op is ERROR_MARK just return error_mark_node without
17202 further processing.
17204 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
17206 * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
17207 Split a.out-specific bits into...
17208 * config/netbsd-aout.h: ...this.
17209 * config/netbsd-elf.h: New file.
17210 * config/alpha/netbsd-elf.h: Remove.
17211 * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
17212 * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
17213 (STARTFILE_SPEC): Remove redundant definition.
17214 (ENDFILE_SPEC): Likewise.
17215 (LINK_SPEC): Likewise.
17216 (CPP_SPEC): Likewise.
17217 (ASM_SPEC): Likewise.
17218 (LIB_SPEC): Likewise.
17219 (SWITCH_TAKES_ARG): Likewise.
17220 (TARGET_MEM_FUNCTIONS): Likewise.
17221 (CPP_PREDEFINES): Redefine.
17222 (ASM_FINAL_SPEC): Remove redefinition.
17223 (ASM_COMMENT_START): Redefine.
17224 (FUNCTION_PROFILER): Define.
17225 (TARGET_VERSION): Redefine.
17226 Comment and formatting cleanup.
17227 * config/i386/netbsd.h: Include <netbsd-aout.h>.
17228 * config/m68k/netbsd.h: Include <netbsd-aout.h>.
17229 * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
17230 big- or little-endian.
17231 * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
17232 * config.gcc (*-*-netbsd*): Add definitions common to all
17234 (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
17235 gnu_ld definitions. Add netbsd-elf.h to and remove
17236 alpha/netbsd-elf.h from tm_file. Remove alpha/t-crtfm from
17237 tmake_file, and don't lose previous tmake_file contents.
17238 (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
17239 (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
17240 gnu_ld definitions. Add netbsd-elf.h to tm_file.
17241 (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
17242 (mipsel-*-netbsd*): Rename this to...
17243 (mips*-*-netbsd*): ...this. Add elfos.h to tm_file. Add
17244 mips/little.h to tm_file for mips*el-*.
17245 (powerpc-*-netbsd*): Remove redundant xm_defines definition.
17246 (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
17247 (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
17249 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
17251 * pa-protos.h (reg_before_reload_operand): New function prototype.
17252 * pa.c (reg_before_reload_operand): New function implementation.
17253 * pa.md (decrement_and_branch_until_zero, movb): Use it. Change "!*m"
17254 contraints to "*m".
17256 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
17258 * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
17260 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
17262 * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
17263 (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
17264 (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
17265 (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
17266 (ENDFILE_SPEC): Undefine.
17267 (STARTFILE_SPEC): Redefine for PA.
17269 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
17271 * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
17273 2002-01-21 Daniel Jacobowitz <drow@mvista.com>
17275 * config.gcc: Add entries to supported PowerPC --with-cpu
17278 2002-01-21 Jakub Jelinek <jakub@redhat.com>
17280 * config/i386/i386.c (ix86_function_arg_regno_p): Never return
17281 true for 64-bit mode only SSE registers in 32-bit mode.
17283 2002-01-21 Kazu Hirata <kazu@hxi.com>
17285 * unwind-dw2.c: Fix formatting.
17286 * unwind-dw2-fde.c: Likewise.
17287 * unwind-dw2-fde.h: Likewise.
17288 * unwind-pe.h: Likewise.
17289 * varasm.c: Likewise.
17290 * varray.h: Likewise.
17292 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
17294 Remove workaround for register stack overwrite bug in mmix.
17295 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
17296 support for TARGET_REG_STACK_FILL_BUG.
17297 * config/mmix/mmix.h: Remove member has_call_without_parameters.
17298 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
17300 (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
17301 (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
17302 -mno-reg-stack-fill-bug-workaround.
17303 * config/mmix/mmix.md ("call", "call_value"): Don't set struct
17304 machine member has_call_without_parameters.
17305 * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
17306 -mreg-stack-fill-bug-workaround and
17307 -mno-reg-stack-fill-bug-workaround.
17308 (MMIX Options): Ditto.
17310 2002-01-21 Kazu Hirata <kazu@hxi.com>
17312 * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
17314 Remove redundant code.
17316 2002-01-21 Joseph S. Myers <jsm28@cam.ac.uk>
17318 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
17319 config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
17320 config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
17321 config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
17322 config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
17323 out target macro definitions and non-target-specific comments
17324 mostly taken from old versions of the manual.
17326 2002-01-20 Kazu Hirata <kazu@hxi.com>
17328 * config/h8300/h8300.h: Fix comment formatting.
17329 * config/ia64/aix.h: Likewise.
17330 * config/ia64/ia64-protos.h: Likewise.
17331 * config/ia64/ia64.c: Likewise.
17332 * config/ia64/ia64.h: Likewise.
17333 * config/ia64/ia64intrin.h: Likewise.
17334 * config/ia64/linux.h: Likewise.
17335 * config/ia64/unwind-aix.c: Likewise.
17336 * config/ia64/unwind-ia64.c: Likewise.
17338 2002-01-20 Kazu Hirata <kazu@hxi.com>
17340 * config/h8300/h8300.c: Revise comments about shift code.
17342 2002-01-20 Kazu Hirata <kazu@hxi.com>
17344 * config/h8300/h8300.c (function_arg): Update a comment.
17346 2002-01-20 Kazu Hirata <kazu@hxi.com>
17348 * config/h8300/h8300.md: Update the comments at the beginning
17351 2002-01-20 Kazu Hirata <kazu@hxi.com>
17353 * config/i370/i370.c: Fix comment formatting.
17354 * config/i370/i370.h: Likewise.
17355 * config/i370/i370.md: Likewise.
17356 * config/i370/linux.h: Likewise.
17358 Sun Jan 20 18:40:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17360 * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
17362 * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
17363 (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
17364 in incomplete case.
17366 2002-01-20 Graham Stott <grahams@redhat.com>
17368 * cfgloop.c (flow_loop_preheader_scan): Fix typo.
17370 2002-01-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
17372 * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
17374 2002-01-19 Tom Rix <trix@redhat.com>
17376 * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
17378 2002-01-18 Aldy Hernandez <aldyh@redhat.com>
17380 * doc/tm.texi (STARTING_FRAME_PHASE): Document.
17382 * function.c (assign_stack_local_1): Adjust x_frame_offset with
17383 STARTING_FRAME_PHASE.
17384 (STARTING_FRAME_PHASE): New.
17385 (instantiate_virtual_regs): Check saneness of
17386 STARTING_FRAME_PHASE.
17388 * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
17390 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
17392 * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
17394 2002-01-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
17396 * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
17397 be used for bootstrapping GCC 3.0.
17399 2002-01-18 Kazu Hirata <kazu@hxi.com>
17401 * config/h8300/h8300.md: Fix an insn length.
17403 2002-01-18 Kazu Hirata <kazu@hxi.com>
17405 * bitmap.h: Fix comment formatting.
17406 * combine.c: Likewise.
17407 * cppfiles.c: Likewise.
17408 * c-pragma.h: Likewise.
17409 * c-typeck.c: Likewise.
17411 * dwarf2out.c: Likewise.
17412 * function.c: Likewise.
17414 * genattrtab.c: Likewise.
17415 * gthr-win32.h: Likewise.
17416 * haifa-sched.c: Likewise.
17417 * predict.c: Likewise.
17418 * rtlanal.c: Likewise.
17420 * unwind-dw2-fde.h: Likewise.
17421 * unwind-pe.h: Likewise.
17422 * vmsdbgout.c: Likewise.
17424 Thu Jan 17 15:28:26 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17426 * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
17427 if type_required and passed decl.
17429 2002-01-17 Aldy Hernandez <aldyh@redhat.com>
17431 * config.gcc (cpu_type): Include altivec.h in powerpc
17435 * config/rs6000/altivec.h: New.
17437 2002-01-17 David Edelsohn <edelsohn@gnu.org>
17439 * doc/install.texi (*-ibm-aix*): Update assembler and exception
17440 handling information.
17441 * doc/trouble.texi (Interoperation): Add libstdc++ information
17443 (Misunderstandings): Add template instantiation and static template
17444 member information for AIX.
17446 2002-01-17 Jason Merrill <jason@redhat.com>
17448 * dbxout.c (dbxout_type): Support const and volatile.
17450 * except.c (add_partial_entry): Remove backwards compatibility code.
17451 (end_protect_partials): Likewise.
17453 2002-01-17 Jakub Jelinek <jakub@redhat.com>
17455 * config/ia64/ia64.md (prologue_use): New.
17456 * config/ia64/ia64.c (ia64_expand_prologue): Use
17457 gen_prologue_use instead of gen_rtx_USE.
17458 (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
17459 as CODE_FOR_pred_rel_mutex.
17460 (ia64_sched_reorder2): Likewise.
17462 2002-01-16 Eric Christopher <echristo@redhat.com>
17464 * config/mips/r3900.h: Reformat.
17465 (SUBTARGET_CPP_SIZE_SPEC): Remove.
17466 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
17467 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
17468 (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
17469 * config/mips/t-elf: Remove mips3 multilib.
17471 2002-01-16 H.J. Lu <hjl@gnu.org>
17473 * config/mips/linux.h: Include "mips/abi64.h".
17475 2002-01-16 H.J. Lu <hjl@gnu.org>
17477 * config/mips/t-linux: New.
17479 * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
17481 * config/mips/linux.h: Don't include "gofast.h".
17482 (INIT_SUBTARGET_OPTABS): Removed.
17484 2002-01-16 Kazu Hirata <kazu@hxi.com>
17486 * config/h8300/h8300-protos.h: Replace emit_a_shift with
17488 * config/h8300/h8300.c: Likewise.
17489 * config/h8300/h8300.md: Likewise.
17491 2002-01-16 Kazu Hirata <kazu@hxi.com>
17493 * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
17494 spaces after an opcode name.
17495 (pushqi1_h8300hs): Likewise.
17496 (pushhi1_h8300hs): Likewise.
17498 2002-01-16 Kazu Hirata <kazu@hxi.com>
17500 * doc/extend.texi: Replace "option" with "attribute"
17503 2002-01-16 Jakub Jelinek <jakub@redhat.com>
17505 * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
17506 (and:DI () (const_int -8)).
17507 (split_small_symbolic_mem_operand): Split
17508 (mem (and:DI () (const_int -8)).
17510 2002-01-16 Jakub Jelinek <jakub@redhat.com>
17513 * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
17514 same way as TYPE_IMUL.
17515 (ultrasparc_sched_reorder): Likewise.
17516 * config/sparc/sparc.md (type): Add comment to update
17517 ultrasparc_sched_reorder when making changes.
17519 2002-01-16 Kazu Hirata <kazu@hxi.com>
17521 * doc/invoke.texi: Change the dump file name of block
17522 reordering pass from 28.bbro to 29.bbro.
17523 Mention -dk option.
17525 Wed Jan 16 17:54:22 CET 2002 Jan Hubicka <jh@suse.cz>
17527 * i386.md (minsf splitter): Fix pasto.
17529 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
17531 * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
17532 to frame pointer initialisation instruction.
17533 (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
17534 initialisation instruction.
17535 (soft_df_operand): Do not accept the IP register.
17536 (nonimmediate_soft_df_operand): Do not accept the IP register.
17538 2002-01-16 Jakub Jelinek <jakub@redhat.com>
17541 * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
17542 MASK_V8 being both set.
17544 2002-01-16 Ulrich Weigand <uweigand@de.ibm.com>
17546 * config/s390/s390.c (s390_emit_prologue): Do not emit USE
17547 insn for GOT register; add REG_MAYBE_DEAD notes instead.
17548 config/s390/s390.md (call, call_value): Add GOT register to
17549 CALL_INSN_FUNCTION_USAGE where needed.
17550 (call_exp, call_value_exp): New.
17552 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
17554 * config/arm/arm.c: General formatting tidy up.
17556 2002-01-16 Graham Stott <grahams@redhat.com>
17558 * calls.c (try_to_integrate): Use "(size_t)" intermediate
17559 cast and when casting an integer literal to "rtx" pointer.
17560 (expand_call): Likewise.
17561 * flow.c (try_pre_increment): Likewise.
17562 (find_use_as_address): Likewise.
17563 * integrate.c (expand_iline_function): Likewise.
17564 * regmove.c (try_auto_increment): Likewise.
17566 2002-01-16 Graham Stott <grahams@redhat.com>
17568 * sched-rgn.c (passed): Use sbitmap_free.
17569 (header): Likewise.
17571 (in_queue): Likewise.
17572 (in_stack): Likewise.
17574 2002-01-15 Eric Christopher <echristo@redhat.com>
17576 * flow.c (propagate_one_insn): Change to use fatal_insn.
17578 2002-01-15 Kazu Hirata <kazu@hxi.com>
17580 * expmed.c (extract_fixed_bit_field): Remove unused code.
17581 * system.h: Poison SLOW_ZERO_EXTEND.
17582 * doc/tm.texi: Remove.
17583 * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
17584 * config/arm/arm.h: Likewise.
17585 * config/avr/avr.h: Likewise.
17586 * config/clipper/clipper.h: Likewise.
17587 * config/convex/convex.h: Likewise.
17588 * config/d30v/d30v.h: Likewise.
17589 * config/dsp16xx/dsp16xx.h: Likewise.
17590 * config/elxsi/elxsi.h: Likewise.
17591 * config/fr30/fr30.h: Likewise.
17592 * config/h8300/h8300.h: Likewise.
17593 * config/i370/i370.h: Likewise.
17594 * config/i386/i386.h: Likewise.
17595 * config/m68k/m68k.h: Likewise.
17596 * config/mips/mips.h: Likewise.
17597 * config/ns32k/ns32k.h: Likewise.
17598 * config/pdp11/pdp11.h: Likewise.
17599 * config/pj/pj.h: Likewise.
17600 * config/s390/s390.h: Likewise.
17601 * config/sh/sh.h: Likewise.
17602 * config/stormy16/stormy16.h: Likewise.
17603 * config/v850/v850.h: Likewise.
17604 * config/vax/vax.h: Likewise.
17605 * config/we32k/we32k.h: Likewise.
17607 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
17609 * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
17610 (altivec_lvsl): Change constraint to b.
17611 (altivec_lvsr): Same.
17612 (altivec_lvebx): Same.
17613 (altivec_lvehx): Same.
17614 (altivec_lvewx): Same.
17615 (altivec_lvxl): Same.
17616 (altivec_lvx): Same.
17617 (altivec_stvx): Add parallel.
17618 (altivec_stvxl): Same.
17619 (altivec_stvehx): Same.
17620 (altivec_stvebx): Same.
17621 (altivec_stvebx): Same.
17623 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
17625 * config.gcc: Change altivec.h to altivec-defs.h.
17627 * config/rs6000/altivec.h: Delete.
17629 * config/rs6000/altivec-defs.h: Add.
17631 2002-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
17633 * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
17636 * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
17637 less than or equal to eight bytes.
17639 * vax.md (andsi3): Remove constraints and change SET destination
17640 operand type to nonimmediate_operand.
17641 (andhi3, andqi3): Likewise. Don't clear high order bits of operand 1
17642 when it is a CONST_INT.
17644 2002-01-15 Jason Merrill <jason@redhat.com>
17646 * c-common.def (FILE_STMT): New code.
17647 * c-common.c (statement_code_p): It's a statement.
17648 * c-common.h (stmt_tree_s): Add x_last_filename.
17649 (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
17650 (last_expr_filename): New macro.
17651 * c-semantics.c (begin_stmt_tree): Initialize it.
17652 (add_stmt): If the filename changed, also insert a
17654 (expand_stmt): Handle seeing one.
17656 2002-01-15 Eric Christopher <echristo@redhat.com>
17658 * flow.c (propagate_one_insn): Add error message and print out
17659 insn for debugging.
17661 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
17663 * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
17664 ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
17665 * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
17666 TRAMPOLINE_ALIGNMENT.
17667 * config/arm/arm.h, config/mcore/mcore.h: Likewise. Change value
17669 * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
17670 PCC_BITFIELD_TYPE_MATTERS.
17671 * config/interix.h (STDC_VALUE): Remove. Use
17672 STDC_0_IN_SYSTEM_HEADERS.
17673 * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
17674 (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
17675 ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
17677 2002-01-15 Craig Rodrigues <rodrigc@gcc.gnu.org>
17679 * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
17680 not work on this platform currently.
17682 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
17684 * c-typeck.c (build_unary_op): Don't wrap msgid argument of
17685 readonly_warning in _().
17687 2002-01-15 Douglas B Rupp <rupp@gnat.com>
17689 * gcc.c (delete_if_ordinary): Backout previous change.
17691 2002-01-15 Kazu Hirata <kazu@hxi.com>
17693 * config/h8300/h8300.c (print_operand): Remove support for
17694 unused operand characters.
17696 * read-rtl.c: Fix formatting.
17697 * real.c: Likewise.
17698 * recog.c: Likewise.
17699 * regclass.c: Likewise.
17700 * regmove.c: Likewise.
17701 * reg-stack.c: Likewise.
17702 * reload1.c: Likewise.
17703 * rtlanal.c: Likewise.
17705 2002-01-15 Kazu Hirata <kazu@hxi.com>
17707 * config/i386/i386.c: Fix formatting.
17709 2002-01-15 Jakub Jelinek <jakub@redhat.com>
17711 * c-typeck.c (process_init_element): Don't save_expr
17712 COMPOUND_LITERAL_EXPR if just its initializer will be used.
17714 2002-01-15 David Edelsohn <edelsohn@gnu.org>
17716 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
17717 emit optional traceback table if optimize_size or TARGET_ELF.
17718 * config/rs6000/rs6000.md (prefetch): New.
17720 2002-01-15 Andreas Jaeger <aj@suse.de>
17722 * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
17724 2002-01-15 Kazu Hirata <kazu@hxi.com>
17726 * mips-tfile.c: Fix formatting.
17728 Tue Jan 15 00:56:11 CET 2002 Jan Hubicka <jh@suse.cz>
17730 * unroll.c (final_reg_note_copy): Fix previous commit.
17732 2002-01-14 Kazu Hirata <kazu@hxi.com>
17734 * config/h8300/h8300-protos.h: Remove the prototype for
17736 * config/h8300/h8300.c (eq_operator): Remove.
17738 2002-01-14 Richard Henderson <rth@redhat.com>
17740 * config/i386/i386.md (prefetch): Tidy.
17741 (prefetch_3dnow): Fix locality operand.
17743 2002-01-14 Richard Henderson <rth@redhat.com>
17745 * config/mips/mips.h (HI_AND_FP_REGS): New register class.
17746 (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
17748 2002-01-14 Hans-Peter Nilsson <hp@bitrange.com>
17750 * reload1.c (reload_combine): Pass reg_sum replacement through
17751 copy_rtx in loop performing multiple changes.
17753 2002-01-14 Jakub Jelinek <jakub@redhat.com>
17755 * except.c (remove_unreachable_regions): New.
17756 (free_eh_status): Clear exception_handler_labels.
17757 (convert_from_eh_region_ranges): Call remove_unreachable_regions.
17758 (find_exception_handler_labels): Don't add the same label more than
17760 (remove_exception_handler_label): Don't die if
17761 find_exception_handler_labels hasn't been called for the current
17764 Mon Jan 14 21:26:13 CET 2002 Jan Hubicka <jh@suse.cz>
17766 * toplev.c (rest_of_compilation): Rebuild jump labels after
17769 2002-01-14 Joseph S. Myers <jsm28@cam.ac.uk>
17771 * doc/extend.texi: Move documentation of X86 built-in functions
17773 * doc/invoke.texi: From here.
17774 * doc/sourcebuild.texi: Document location of documentation for
17775 machine built-in functions.
17777 2002-01-13 Christopher Faylor <cgf@redhat.com>
17779 * cppfiles.c (TEST_THRESHOLD): New macro.
17780 (SHOULD_MMAP): Ditto.
17781 (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
17784 Mon Jan 14 20:23:34 CET 2002 Jan Hubicka <jh@suse.cz>
17786 * unroll.c (final_reg_note_copy): Properly handle
17788 (unroll_loops): Fix LOOP_CONDITION heuristics.
17790 2002-01-14 Geoffrey Keating <geoffk@redhat.com>
17792 * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
17793 * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
17795 Mon Jan 14 20:18:19 CET 2002 Jan Hubicka <jh@suse.cz>
17797 * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
17800 2002-01-14 Tom Rix <trix@redhat.com>
17802 * config/rs6000/rs6000.md: Fix typo with sradi.
17804 2002-01-14 Ulrich Weigand <uweigand@de.ibm.com>
17806 * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
17807 movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
17808 (clrstrdi, clrstrsi): Adapt callers.
17810 (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
17812 (movti splitter): Never use register 0 as base register.
17814 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
17816 * combine.c (simplify_shift_const): Always generate new rtx
17817 for shift expression instead of reusing given expression.
17819 Mon Jan 14 07:08:55 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17821 * config/alpha/alpha.c (alpha_expand_mov): Don't call
17822 alpha_legitimize_address unless mode is Pmode.
17824 2002-01-13 Geoffrey Keating <geoffk@redhat.com>
17826 * doc/md.texi (Modifiers): Document the '*' constraint for the
17829 * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
17830 * doc/extend.texi (Function Attributes): 'interrupt' is valid
17833 2002-01-13 Richard Henderson <rth@redhat.com>
17835 * reload.c (find_reloads): Use a hard reg destination as reload reg
17836 for an input reload of the source.
17838 2002-01-13 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
17840 * doc/install.texi (Binaries): Make link to ftp.writtenword.com
17843 Sun Jan 13 07:23:01 2002 Douglas B Rupp <rupp@gnat.com>
17845 * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
17846 * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
17848 * config/alpha/x-vms (USE_COLLECT2): Set to empty.
17850 Sun Jan 13 06:55:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17852 * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
17854 2002-01-12 Tom Rix <trix@redhat.com>
17856 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
17859 2002-01-12 Richard Henderson <rth@redhat.com>
17861 * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
17863 * doc/invoke.texi: Update Alpha options.
17865 * doc/invoke.texi: Update i386 built-in function lists.
17867 Sat Jan 12 17:38:11 CET 2002 Jan Hubicka <jh@suse.cz>
17869 * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
17870 referencing outside.
17872 Sat Jan 12 08:54:51 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17874 * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
17875 * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
17876 offsets, and change line folding.
17877 * optabs.c (expand_binop): Remove warnings.
17878 * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
17880 2002-01-12 Graham Stott <grahams@redhat.com>
17882 * attribs.c (handle_deprecated_attribute): constify WHAT.
17883 * diagnostic.c (warn_deprecated_use): Add braces, fixes
17884 dangling else warning and constify WHAT.
17885 * except.h (struct function, struct inline_remap): Move
17886 struct tag forward defs before all prototypes.
17887 (duplicate_eh_regions): Whitespace.
17889 2002-01-12 Nick Clifton <nickc@cambridge.redhat.com>
17891 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
17892 MODE_BASE_REG_CLASS.
17893 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
17895 2002-01-12 Richard Henderson <rth@redhat.com>
17897 * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
17898 (ix86_expand_vector_move): New.
17899 (bdesc_2arg): Remove andps, andnps, orps, xorps.
17900 (ix86_init_mmx_sse_builtins): Make static. Remove composite builtins.
17901 Remove old prefetch builtins. Special case the logicals removed above.
17902 (ix86_expand_builtin): Likewise.
17903 (safe_vector_operand): Use V4SFmode, not TImode.
17904 (ix86_expand_store_builtin): Remove shuffle arg. Update callers.
17905 (ix86_expand_timode_binop_builtin): New.
17906 * config/i386/i386-protos.h: Update.
17907 * config/i386/i386.h (enum ix86_builtins): Update.
17908 * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
17909 Use ix86_expand_vector_move in vector move expanders.
17910 (movti_internal, movti_rex64): Add xorps alternative.
17911 (sse_clrv4sf): Rename and adjust from sse_clrti.
17912 (prefetch): Don't work so hard.
17913 (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
17914 * config/i386/xmmintrin.h (__m128): Use V4SFmode.
17915 (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
17917 2002-01-11 Richard Henderson <rth@redhat.com>
17919 * config/i386/mmintrin.h: New file.
17920 * config/i386/xmmintrin.h: New file.
17921 * config.gcc (i?86-*-*): Add extra_headers.
17922 * simplify-rtx.c (simplify_unary_operation): Handle saturating
17924 (simplify_binary_operation): Handle saturating arithmetic codes.
17925 * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
17926 not the lowpart subreg.
17927 (ix86_expand_builtin): Return a TImode dummy register instead of 0
17929 * config/i386/i386.md (mmx_clrdi): Override memory attribute.
17931 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
17933 * conflict.c (conflict_graph_compute): Free regsets when finished.
17934 * ssa.c (compute_coalesced_reg_partition): Likewise.
17936 2002-01-12 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
17938 * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
17939 every where we allocate a register.
17941 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
17943 * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
17944 * lcm.c (compute_earliest, compute_farthest): Likewise.
17946 2002-01-11 Janis Johnson <janis187@us.ibm.com>
17948 * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
17950 2002-01-11 Janis Johnson <janis187@us.ibm.com>
17952 * doc/rtl.texi (Insns): Fix 2 typos.
17954 2002-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
17956 * doc/invoke.texi: Avoid overfull hboxes. Add summary of D30V
17957 options. Use @table @gcctabopt for MMIX options. Add index
17958 entries for MMIX options. Start new paragraph with first
17959 heading of the machine-dependent options.
17961 2002-01-11 Craig Rodrigues <rodrigc@gcc.gnu.org>
17964 * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
17965 * combine.c (force_to_mode): Same.
17966 * reload1.c (clear_reload_reg_in_use): Same.
17968 2002-01-11 Nick Clifton <nickc@cambridge.redhat.com>
17970 * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
17973 2002-01-11 Andreas Jaeger <aj@suse.de>,
17974 Brad Lucier <lucier@math.purdue.edu>
17976 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
17979 Fri Jan 11 07:35:12 2002 Douglas B Rupp <rupp@gnat.com>
17981 * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
17982 Protect with IN_LIBGCC.
17983 (LINK_EH_SPEC): Add required trailing space.
17985 Fri Jan 11 09:25:05 2002 Nicola Pero <n.pero@mi.flashnet.it>
17987 * c-tree.h: Move function declarations so that they are listed
17988 under the filename which contains them.
17989 (check_identifier, finish_decl_top_level,
17990 lookup_name_current_level_global, shadow_record_fields): Remove.
17992 2002-01-11 Andreas Jaeger <aj@suse.de>
17994 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
17997 2002-01-10 Richard Henderson <rth@redhat.com>
17999 * config/alpha/alpha.c (print_operand): Add 'J'.
18000 * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
18001 new operand with the sequence number for the lituse. When splitting
18002 the insns, use gen_movdi_er_high_g and generate a sequence number.
18003 (gen_movdi_er_high_g): Print the sequence number if non-zero.
18005 2002-01-10 Aldy Hernandez <aldyh@redhat.com>
18007 * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
18008 lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
18010 (altivec_expand_builtin): Same.
18011 (altivec_expand_stv_builtin): New.
18013 * config/rs6000/rs6000.h (rs6000_builtins): Same.
18015 * config/rs6000/rs6000.md ("altivec_lvebx"): New.
18016 ("altivec_lvehx"): New.
18017 ("altivec_lvewx"): New.
18018 ("altivec_lvxl"): New.
18019 ("altivec_lvx"): New.
18020 ("altivec_stvx"): New.
18021 ("altivec_stvebx"): New.
18022 ("altivec_stvehx"): New.
18023 ("altivec_stvewx"): New.
18024 ("altivec_stvxl"): New.
18026 2002-01-10 Richard Henderson <rth@redhat.com>
18028 * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
18029 * reload1.c (delete_output_reload): Zap spill_reg_store. Take
18030 care not to delete instructions twice.
18032 2002-01-10 Zack Weinberg <zack@codesourcery.com>
18034 * toplev.c: Don't declare environ (it's not used anywhere).
18035 * configure.in: Don't check for declaration of environ.
18036 * config/i386/xm-mingw32.h: Don't #define environ.
18037 * config.in, configure: Regenerate.
18039 2002-01-10 Zack Weinberg <zack@codesourcery.com>
18041 * configure.in: Set stage1_cflags for powerpc-*-darwin*.
18042 * configure: Regenerate.
18044 * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
18045 DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
18046 * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
18048 * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
18049 LIMITS_H_TEST here, not in m68k/x-next.
18050 * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
18051 SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
18053 * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
18054 LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
18055 * config/alpha/x-vms: Don't set USE_COLLECT2. Add comments.
18057 * config/i386/x-djgpp: Renamed i386/t-djgpp.
18058 * config/m88k/x-dolph: Renamed m88k/t-dolph.
18059 * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
18060 * config/pa/x-pa-mpeix: Renamed pa/t-mpeix. Update for
18061 replacement of quadlib.asm with quadlib.c.
18063 * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
18064 config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
18065 config/rs6000/xm-beos.h: Delete file.
18067 * config.gcc: Update to match above changes.
18069 2002-01-10 Kazu Hirata <kazu@hxi.com>
18071 * config/h8300/h8300.h: Fix comment typos.
18072 * config/h8300/h8300.md: Likewise.
18073 * config/h8300/lib1funcs.asm: Likewise.
18075 2002-01-10 Dale Johannesen <dalej@apple.com>
18077 PR optimization/5269
18078 * unroll.c (precondition_loop_p): Make *increment be the correct
18079 sign when n_iterations known, to avoid confusing caller.
18081 2002-01-10 Kazu Hirata <kazu@hxi.com>
18083 * doc/extend.texi (deprecated): Fix a typo.
18085 Thu Jan 10 22:35:54 CET 2002 Jan Hubicka <jh@suse.cz>
18087 * basic-block.h (update_br_prob_note): Declare.
18088 * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
18089 (try_forward_edges): Care negative frequencies and update note.
18090 (outgoing_edges_match): Tweek conditional merging heuristics.
18091 (try_crossjump_to_edge): use update_br_prob_note.
18092 * cfglayout.c (fixup_reorder_chain): Likewise.
18093 * cfrtl.c (update_br_prob_note): New.
18094 * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
18096 * i386.c (ix86_decompose_address): Return -1 if address contains
18098 (legitimate_address_p): Require ix86_decompose_address to return 1.
18100 * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
18101 (cprop_insn): Likewise.
18103 2002-01-10 Kazu Hirata <kazu@hxi.com>
18105 * toplev.c: Fix formatting.
18106 * tree.c: Likewise.
18107 * tree-dump.c: Likewise.
18108 * unroll.c: Likewise.
18109 * unwind-dw2.c: Likewise.
18110 * unwind-dw2-fde.c: Likewise.
18111 * unwind-dw2-fde-glibc.c: Likewise.
18112 * unwind-sjlj.c: Likewise.
18114 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
18116 * doc/invoke.texi: Document PDP-11 options.
18118 2002-01-10 Kazu Hirata <kazu@hxi.com>
18120 * config/h8300/h8300.h: Fix formatting.
18122 2002-01-10 Ira Ruben <ira@apple.com>
18124 Add __attribute__ ((deprecated)).
18125 * extend.texi: Document __attribute__ ((deprecated)).
18126 * invoke.texi: Document -Wno-deprecated-declarations.
18127 * testsuite/g++.dg/other/deprecated.C: New C++ test.
18128 * testsuite/gcc.dg/deprecated.c: New C test.
18129 * attribs.c (enum attrs): Declare handle_deprecated_attribute().
18130 (c_common_attribute_table): Add "deprecated" entry.
18131 (handle_deprecated_attribute): New function.
18132 * c-decl.c (deprecated_states): New enum.
18133 deprecated_state: State of "deprecated" handling.
18134 (start_decl): Set deprecated_state based on attributes.
18135 (grokdeclarator): Test for deprecated uses, propagate attribute.
18136 * c-typeck.c (build_component_ref): Test for deprecated fields.
18137 (build_external_ref): Test for deprecated primaries.
18138 * diagnostic.c (warn_deprecated_use) New function to issue
18139 warnings about __attribute__ ((depricated)) references.
18140 * flags.h (warn_deprecated_decl): Extern declared for
18141 -W[no-]deprecated-declarations option.
18142 * print-tree.c (print_node): Show deprecated flag status.
18143 * toplev.c (warn_deprecated_decl): Defined.
18144 (W_options): Added "deprecated-declaration".
18145 * toplev.h (warn_deprecated_use): Extern declared.
18146 * tree.h (struct tree_common): Define deprecated_flag.
18147 (TREE_DEPRECATED): New macro to access flag.
18148 * cp/call.c (build_call): Test for deprecated calls.
18149 * cp/class.c (add_implicitly_declared_members): Set global
18150 flag to tell grokdeclarator to not issue deprecated warnings.
18151 * cp/cp-tree.h: Add extern for adding_implicit_members.
18152 * cp/decl.c (deprecated_states): New enum.
18153 (start_decl): Set deprecated_state based on attributes.
18154 (grokdeclarator): Test for deprecated uses, propagate attribute.
18155 * cp/lex.c (do_identifier): Test for deprecated primaries.
18156 * cp/typeck.c (build_component_ref): Test for deprecated fields.
18158 2002-01-10 Ira Ruben <ira@apple.com>
18160 Fix to assign attributes to inline member functions.
18161 * cp/decl.c (start_method): Handle attrlist.
18163 2002-01-10 Kazu Hirata <kazu@hxi.com>
18165 * combine.c (expand_field_assignment): Use subreg_lsb().
18167 2002-01-10 David Edelsohn <edelsohn@gnu.org>
18169 * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
18170 POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
18171 (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
18172 Recurse for any operand of AND as long as constant is non-zero.
18174 2002-01-10 Kazu Hirata <kazu@hxi.com>
18176 * config/h8300/h8300.md: Remove constraints from expanders.
18178 2002-01-10 Kazu Hirata <kazu@hxi.com>
18180 * varasm.c: Fix formatting.
18181 * varray.c: Likewise.
18182 * vmsdbgout.c: Likewise.
18183 * xcoffout.c: Likewise.
18185 Thu Jan 10 17:19:12 CET 2002 Jan Hubicka <jh@suse.cz>
18187 * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
18188 update edge probabilities to match.
18190 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
18192 * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
18194 * doc/languages.texi, doc/sourcebuild.texi: New files.
18195 * doc/configfiles.texi: Make a subsubsection. Update.
18196 * doc/configterms.texi: Add @node. Remove warning that this isn't
18197 instructions for building GCC.
18198 * doc/makefile.texi: Make a subsection.
18199 * doc/gccint.texi: Update.
18201 Thu Jan 10 16:39:58 CET 2002 Jan Hubicka <jh@suse.cz>
18203 * i386.md (sse_mov?fcc_const0_?): Fix constraints.
18205 Thu Jan 10 12:45:50 2002 Nicola Pero <n.pero@mi.flashnet.it>
18207 * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
18209 Thu Jan 10 11:19:18 CET 2002 Jan Hubicka <jh@suse.cz>
18211 * optabs.c (expand_fix): Look for wider integer modes first.
18213 * i386.md (mov?f): Avoid the fake const double trick for medium
18215 (min?f*/max?f*): Prohibit memory operands for i387 variant.
18216 (fop_df_4): Disable for SSE compilation.
18218 2002-01-10 Graham Stott <grahams@redhat.com>
18220 * dwarf2out.c (indirect_string_alloc, output_indirect_string):
18221 Move prototype into DWARF2_DEBUGGING_INFO conditional block.
18223 2002-01-10 Richard Henderson <rth@redhat.com>
18225 * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
18227 2002-01-10 Richard Henderson <rth@redhat.com>
18229 * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
18230 (copyprop_hardreg_forward_1): Likewise. Use mode_change_ok.
18232 2002-01-10 Kazu Hirata <kazu@hxi.com>
18234 * combine.c (can_combine_p): Fix a comment typo.
18236 2002-01-09 Zack Weinberg <zack@codesourcery.com>
18238 * Makefile.in (s-gencheck, s-options, s-specs): Handle an
18239 empty list correctly. Change loop index $t to $f for
18240 consistency with rest of Makefile.
18242 2002-01-08 Aldy Hernandez <aldyh@redhat.com>
18244 * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
18245 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
18247 * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
18248 mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
18249 (altivec_init_builtins): Same.
18250 (altivec_expand_unop_builtin): Return NULL_RTX on error.
18251 (altivec_expand_binop_builtin): Same.
18252 (altivec_expand_ternop_builtin): Same.
18255 * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
18256 ("altivec_vctuxs"): Fix typo.
18257 ("altivec_vnmsubfp"): Same.
18258 ("altivec_dssall"): New.
18259 ("altivec_mfvscr"): New.
18260 ("altivec_dss"): New.
18261 ("altivec_lvsl"): New.
18262 ("altivec_lvsr"): New.
18263 ("altivec_dstt"): New.
18264 ("altivec_dstst"): New.
18265 ("altivec_dststt"): New.
18266 ("altivec_dst"): New.
18268 * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
18269 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
18271 2002-01-09 Richard Henderson <rth@redhat.com>
18273 * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
18275 2002-01-10 Hans-Peter Nilsson <hp@bitrange.com>
18277 * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
18279 * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
18281 * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
18283 2002-01-09 Kazu Hirata <kazu@hxi.com>
18285 * read-rtl.c: Fix formatting.
18286 * real.c: Likewise.
18287 * regclass.c: Likewise.
18288 * regrename.c: Likewise.
18289 * reg-stack.c: Likewise.
18290 * reload1.c: Likewise.
18291 * reload.c: Likewise.
18294 2002-01-09 Kazu Hirata <kazu@hxi.com>
18296 * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
18297 to extract items in the expr_list chain.
18299 2002-01-09 Richard Henderson <rth@redhat.com>
18301 * config/vax/vax.c (vax_rtx_cost): Never abort.
18303 * config/vax/vax.h (REAL_ARITHMETIC): Define.
18305 2002-01-09 Jan Hubicka <jh@suse.cz>
18307 * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
18309 2002-01-09 Richard Henderson <rth@redhat.com>
18311 * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
18312 Unify code from various alternatives.
18314 2002-01-09 Richard Henderson <rth@redhat.com>
18316 * regrename.c (copy_value): Ignore the copy if the source register
18317 is present in the value chain with a narrower mode.
18319 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
18321 * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
18322 for the c4x target. Also improve layout.
18324 2002-01-09 Richard Henderson <rth@redhat.com>
18326 * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
18327 * config/m32r/m32r.md (and ior xor splitters): Swap operands
18328 to match insn patterns.
18330 2002-01-09 Richard Henderson <rth@redhat.com>
18332 * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
18333 (copyprop_hardreg_forward_1): Likewise.
18335 2002-01-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
18337 * pa.md (decrement_and_branch_until_zero): Change predicate for
18338 operand 0 from register_operand to reg_or_nonsymb_mem_operand.
18340 2002-01-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
18342 * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
18343 gets undefined. For Darwin.
18345 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
18347 * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
18349 2002-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
18351 * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
18353 2002-01-08 Richard Henderson <rth@redhat.com>
18355 * regrename.c (copy_value): Ignore overlapping copies.
18357 2002-01-08 Richard Henderson <rth@redhat.com>
18359 * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
18360 as needed to avoid shared structure.
18362 2002-01-08 Kazu Hirata <kazu@hxi.com>
18364 * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
18367 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
18369 * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
18370 LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
18371 documentation of obsolete macros.
18372 * system.h: Poison these macros.
18373 * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
18374 config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
18375 config/c4x/c4x.h, config/clipper/clipper.h,
18376 config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
18377 config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
18378 config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
18379 config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
18380 config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
18381 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
18382 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
18383 config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
18384 config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
18385 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
18386 config/sparc/sparc.h, config/stormy16/stormy16.h,
18387 config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
18388 definitions and commented out definitions of obsolete macros.
18389 * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
18390 of MAX_INT_TYPE_SIZE.
18392 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
18394 * config/s390/s390.c (s390_preferred_reload_class): Never
18395 return ADDR_REGS if it isn't a subset of the given class.
18396 * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
18397 FP_REGS, but all superclasses as well.
18399 * config/s390/s390.c (s390_function_profiler): Fix thinko.
18401 * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
18402 cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
18403 must not be a const_int.
18405 2002-01-08 Richard Henderson <rth@redhat.com>
18407 * Makefile.in (toplev.o): Depend on options.h.
18408 (gcc.o): Depend on specs.h.
18410 2002-01-08 Jakub Jelinek <jakub@redhat.com>
18412 * expr.c (store_expr): Convert VOIDmode constants back to target's
18415 2002-01-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
18417 * doc/invoke.texi: Markup gcc as @command. Refer to
18418 http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
18419 of http://gcc.gnu.org/thanks.html.
18421 2002-01-08 Dale Johannesen <dalej@apple.com>
18423 * config/rs6000/rs6000.md: Add missing int register
18424 target case to movdf_low.
18426 2002-01-08 Zack Weinberg <zack@codesourcery.com>
18428 * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
18429 except.h. Remove commands to define USING_SJLJ_EXCEPTIONS.
18430 (cppinit.o): Depend on except.h.
18431 (gencheck.h, options.h, specs.h, s-gencheck, s-options,
18432 s-specs): New rules.
18434 * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
18435 Don't create specs.h/options.h/gencheck.h here. Remove
18436 unnecessary variable settings from last argument of AC_OUTPUT.
18437 * config.in, configure: Regenerate.
18438 * intl.c: Hardcode package name as "gcc".
18440 * cppinit.c: Include except.h.
18441 (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
18443 * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
18444 Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
18445 (!)USING_SJLJ_EXCEPTIONS.
18446 * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
18448 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
18450 * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
18451 ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
18452 OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
18453 documentation of obsolete macros.
18454 * system.h: Poison these macros.
18455 * config/d30v/d30v.h, config/ns32k/encore.h,
18456 config/stormy16/stormy16.h: Remove definitions and commented out
18457 definitions of obsolete macros.
18459 Tue Jan 8 15:56:41 2002 Nicola Pero <nicola@brainstorm.co.uk>
18461 * objc/objc-act.c (handle_class_ref): Mark the declaration of
18462 %sobjc_class_ref_%s as used - to prevent unwanted compiler
18465 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
18467 * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
18468 * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
18469 to insn adjusting stack/frame pointer.
18470 * config/s390/s390.md (reload_la_64, reload_la_31): Do not
18471 accept operands that cause the insn to be non-splittable.
18473 2002-01-08 Graham Stott <grahams@redhat.com>
18475 * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
18476 (C_TYPE_FIELDS_VOLATILE): Likewise.
18477 (C_TYPE_BEING_DEFINED): Likewise.
18478 (C_IS_RESERVED_WORD): Likewise.
18479 (C_TYPE_VARIABLE_SIZE): Likewise.
18480 (C_DECL_VARIABLE_SIZE): Likewise.
18481 (C_MISSING_PROTOTYPE_WARNED): Likewise.
18482 (C_SET_EXP_ORIGINAL_CODE): Likewise.
18483 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
18485 (C_DECL_ANTICIPATED): Likewise.
18486 (c_build_type_variant): Add parenthesis.
18488 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
18490 * gcc.c (option_map): Remove --version.
18491 (process_command): Handle -fversion following the GNU Coding
18492 Standards. Partially addresses PR other/704.
18494 2002-01-08 Graham Stott <grahams@redhat.com>
18496 * combine.c (combine_instructions): Fix typo.
18498 2002-01-08 Graham Stott <grahams@redhat.com>
18500 * debug.h: Use "tree" and "rtx" throughout.
18502 * debug.c: Likewise.
18504 2002-01-08 Nick Clifton <nickc@cambridge.redhat.com>
18506 * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
18507 constant pool, use the pool's version of the symbol instead.
18509 2002-01-07 Richard Henderson <rth@redhat.com>
18511 * regrename.c (find_oldest_value_reg): Ignore the value chain if
18512 the original register was copied in a mode with a fewer number of
18513 hard registers than the desired mode.
18514 (copyprop_hardreg_forward_1): Likewise.
18515 (debug_value_data): Fix loop test.
18516 * toplev.c (parse_options_and_default_flags): Reenable
18517 -fcprop-registers at -O1.
18519 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
18521 * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
18522 (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
18524 * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
18527 * config/rs6000/rs6000.md: Add altivec predicate patterns.
18529 2002-01-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
18531 * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
18532 (pa_output_function_prologue): Output local label at the beginning of
18533 the prologue when profiling.
18534 (hppa_profile_hook): Use the local label rather than the function label.
18535 * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
18537 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
18539 * config/rs6000/rs6000.c (print_operand): Remove extra space.
18540 (altivec_expand_unop_builtin): Fix thinko.
18541 (altivec_expand_binop_builtin): Same.
18542 (altivec_expand_ternop_builtin): Same.
18543 (altivec_expand_builtin): Same.
18545 2002-01-07 Richard Henderson <rth@redhat.com>
18547 * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
18549 2002-01-07 Jason Merrill <jason@redhat.com>
18551 * unwind-dw2.c (execute_cfa_program): Use < again.
18553 2002-01-07 Jakub Jelinek <jakub@redhat.com>
18555 * predict.c (combine_predictions_for_insn): Avoid division by zero.
18557 2002-01-07 Jakub Jelinek <jakub@redhat.com>
18559 * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
18560 Don't allow -1 - x -> ~x simplifications in the first pass.
18562 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
18564 * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
18566 (altivec_expand_binop_builtin): Same.
18567 (altivec_expand_unop_builtin): Same.
18568 (print_operand): Fix typo.
18569 (bdesc_1arg): Add vupk* variants.
18571 * rs6000.h (rs6000_builtins): Add vupk* enums.
18573 * rs6000.md: Add altivec_vupk* variants.
18575 2002-01-07 Joseph S. Myers <jsm28@cam.ac.uk>
18577 * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
18578 doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
18579 and last update dates.
18581 2002-01-07 Janis Johnson <janis187@us.ibm.com>
18583 * doc/rtl.texi (Flags): Clean up documentation of RTL flags
18585 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
18587 * config/avr/avr.c (avr_mcu_types): Add new MCU types.
18588 * config/avr/avr.h (CPP_SPEC): Likewise.
18589 (LINK_SPEC): Likewise.
18590 (CRT_BINUTILS_SPECS): Likewise.
18591 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
18592 * doc/invoke.texi (AVR Options): Document them.
18594 Mon Jan 7 11:59:34 CET 2002 Jan Hubicka <jh@suse.cz>
18596 * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
18599 2002-01-07 Graham Stott <grahams@redhat.com>
18601 * config/i386/i386.h: Update copyright date.
18602 (HALF_PIC_PTR): Add parenthesis.
18603 (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
18604 (CONSTANT_ALIGNMENT): Add parenthesis.
18605 (DATA_ALIGNMENT): Likewise.
18606 (LOCAL_ALIGNMENT): Likewise.
18607 (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
18608 (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
18609 (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
18610 (HARD_REGNO_NREGS): Add paranethesis.
18611 (VALID_SSE_REG_MODE): Whitespace.
18612 (VALID_MMX_REG_MODE): Whitespace.
18613 (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
18614 (ix86_hard_regno_mode_ok): Add parenthesis.
18615 (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
18616 (RETURN_IN_MEMORY): Whitespace.
18617 (N_REG_CLASSES): Add parenthesis.
18618 (INTEGER_CLASS_P): Add parenthesis and wrap.
18619 (FLOAT_CLASS_P): Likewise.
18620 (SSE_CLASS_P): Likewise.
18621 (MMX_CLASS_P): Likewise.
18622 (MAYBE_INTEGER_CLASS_P): Likewise.
18623 (MAYBE_FLOAT_CLASS_P): Likewise.
18624 (MAYBE_SSE_CLASS_P): Likewise.
18625 (MAYBE_MMX_CLASS_P): Likewise.
18626 (Q_CLASS_P): Likewise.
18627 (GENERAL_REGNO_P): Uppercase macro parameter.
18628 (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
18629 (FP_REGNO_P): Likewise.
18630 (ANY_FP_REGNO_P): Uppercase macro parameter.
18631 (SSE_REGNO_P): Likewise.
18632 (SSE_REGNO): Likewise.
18633 (SSE_REG_P): Likewise.
18634 (SSE_FLOAT_MODE_P): Likewise.
18635 (MMX_REGNO_P): Likewise.
18636 (MMX_REG_P):Likewise.
18637 (STACK_REG_P): Likewise.
18638 (NON_STACK_REG_P): Likewise.
18639 (STACK_TOP_P): Likewise.
18640 (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
18641 (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
18642 (SECONDARY_MEMORY_NEEDED): Likewise.
18643 (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
18644 (MD_ASM_CLOBBERS): Whitespace and wrap.
18645 (MUST_PASS_IN_STACK): Whitespace and wrap.
18646 (RETURN_POPS_ARGS): Add parenthesis.
18647 (INIT_CUMULATIVE_ARGS): Likewise.
18648 (FUNCTION_ARG): Likewise.
18649 (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
18650 (SETUP_INCOMING_VARARGS): Likewise.
18651 (BUILD_VA_LIST_TYPE): Add parenthesis.
18652 (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
18654 (EXPAND_BUILTIN_VA_ARG): Likewise.
18655 (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
18656 (INITIALIZE_TRAMPOLINE): Add parenthesis.
18657 (INITIAL_ELIMINATION_OFFSET): Likewise.
18658 (REGNO_OK_FOR_INDEX_P): Add parenthesis.
18659 (REGNO_OK_FOR_BASE_P): Likewise.
18660 (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
18661 (REGNO_OK_FOR_DIREG_P): Likewise.
18662 (REG_OK_FOR_INDEX_P): Whitespace.
18663 (REG_OK_FOR_BASE_P): Whitespace.
18664 (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
18666 (FIND_BASE_TERM): Fix typo.
18667 (LEGITIMIZE_ADDRESS): Wrap in { .. } while (0) and add parenthesis.
18668 (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
18669 (SYMBOLIC_CONST; Whitespace.
18670 (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in { .. } while (0) and wrap.
18671 (ENCODE_SECTION_INFO): Whitespace.
18672 (FINALIZE_PIC): Remove do { ... } while (0).
18673 (PROMOTE_MODE): Wrap in do { ... } while (0).
18674 (CONST_COSTS): Whitespace.
18675 (RTX_COSTS): Add paramethesis, whitespace and wrap.
18676 (REGISTER_MOVE_COST): Add parenthesis.
18677 (MEMORY_MOVE_COST): Likewise.
18678 (EXTRA_CC_MODES): Whitespace.
18679 (SELECT_CC_MODE): Add parenthesis and whitespace.
18680 (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
18681 (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
18682 (ASM_OUTPUT_LABEL): Add paramethesis.
18683 (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
18684 (ASM_OUTPUT_REG_POP): Likewise.
18685 (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
18686 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
18688 * config/i386/i386.c: Update copyright.
18689 (CHECK_STACK_LIMIT): Add parenthesis.
18690 (AT_BP): Uppercase macro parameter.
18691 (x86_64_int_parameter_registers): Constify.
18692 (x86_64_int_return_registers): Likewise.
18693 (ix86_compare_op0): Use rtx.
18694 (construct_container): Constify INTREG parameter.
18695 (function_arg): Use rtx.
18697 * diagnostic.h: Update copyright date.
18698 (output_buffer_state): Add parenthesis.
18699 (output_buffer_format_args): Likewise.
18701 * combine.c (combine_instructions): Replace XEXP (links, 0)
18704 2002-01-06 H.J. Lu <hjl@gnu.org>
18706 * cfgcleanup.c (thread_jump): Fix 2 typos.
18708 2002-01-06 Aldy Hernandez <aldyh@redhat.com>
18710 * config.gcc: Add support for --enable-altivec.
18712 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
18714 * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
18716 2002-01-06 Jakub Jelinek <jakub@redhat.com>
18718 * objc/objc-act.c (handle_impent): Use assemble_variable to emit
18719 __objc_class_name_*.
18721 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
18723 * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
18725 2002-01-06 Richard Henderson <rth@redhat.com>
18727 * reorg.c (emit_delay_sequence): Remove death notes, not merely
18728 nop them out. Increment label reference count for REG_LABEL.
18729 (fill_slots_from_thread): Frob label reference count around
18730 delete_related_insns.
18732 2002-01-05 Richard Henderson <rth@redhat.com>
18734 * cfgcleanup.c (try_forward_edges): Detect infinite loops while
18737 2002-01-05 Richard Henderson <rth@redhat.com>
18739 * c-decl.c (c_expand_body): Don't call outlining_inline_function.
18740 * integrate.c (output_inline_function): Likewise.
18741 * toplev.c (rest_of_compilation): Do it here instead. Move call
18742 to remove_unnecessary_notes after emitting abstract instance.
18743 Force an emitted nested function to have its parent emited as well.
18744 * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
18746 (rtl_for_decl_location): Do not look at reload data structures
18747 before reload has run.
18749 2002-01-05 Kazu Hirata <kazu@hxi.com>
18751 * cse.c: Fix formatting.
18752 * dwarf2asm.c: Likewise.
18753 * dwarf2out.c: Likewise.
18754 * explow.c: Likewise.
18755 * expmed.c: Likewise.
18756 * function.c: Likewise.
18757 * gcov.c: Likewise.
18758 * gencheck.c: Likewise.
18759 * genrecog.c: Likewise.
18760 * ggc-common.c: Likewise.
18761 * ggc-page.c: Likewise.
18762 * global.c: Likewise.
18764 2002-01-05 Kazu Hirata <kazu@hxi.com>
18766 * combine.c: Fix formatting.
18768 2002-01-05 Craig Rodrigues <crodrigu@bbn.com>
18771 * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
18773 2002-01-05 David Edelsohn <edelsohn@gnu.org>
18775 * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
18776 as 1 for __powerpc64__ as well.
18778 * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
18780 * alias.c (find_base_value, PLUS/MINUS): If we found a base,
18783 2002-01-05 Daniel Berlin <dan@dberlin.org>
18785 * lcm.c: Revert change, due to performance regression it causes on
18786 SPEC because it's slightly more conservative (sigh, I hate
18789 Sat Jan 5 11:52:05 CET 2002 Jan Hubicka <jh@suse.cz>
18791 * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
18793 2002-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
18795 * doc/cppinternals.texi: Update.
18797 2002-01-05 Hans-Peter Nilsson <hp@bitrange.com>
18799 * doc/invoke.texi (Option Summary) <MMIX Options>: Document
18800 -mbranch-predict, -mreg-stack-fill-bug-workaround and their
18802 (MMIX Options): Ditto. Fix item/itemx typo for -mno-zero-extend.
18803 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
18804 kludge for pre-october-14th mmix versions to handle new-found bug
18805 with PUSHJ/PUSHGO and the register stack.
18806 * config/mmix/mmix.h (struct machine_function): Rename member
18807 has_call_value_without_parameters to has_call_without_parameters.
18808 All referers changed.
18809 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
18810 TARGET_MASK_BRANCH_PREDICT): New macros.
18811 (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
18812 -mno-reg-stack-fill-bug-workaround.
18813 * config/mmix/mmix.md ("call"): Set struct machine member
18814 has_call_without_parameters.
18816 Sat Jan 5 02:20:22 CET 2002 Jan Hubicka <jh@suse.cz>
18818 * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
18820 Sat Jan 5 01:35:29 CET 2002 Jan Hubicka <jh@suse.cz>
18822 * cfgcleanup.c: Include tm_p.h
18823 (mark_effect): Fix handling of hard register; fix handling of SET
18825 2002-01-04 Kazu Hirata <kazu@hxi.com>
18827 * config/h8300/h8300.md (anonymous patterns): Check that
18828 operands are registers before using REGNO on them.
18830 2002-01-03 Roland McGrath <roland@frob.com>
18832 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
18834 2002-01-04 Jakub Jelinek <jakub@redhat.com>
18836 * tree.h (expand_expr_stmt_value): Add maybe_last argument.
18837 * c-common.h (genrtl_expr_stmt_value): Likewise.
18838 * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
18839 (expand_expr_stmt_value): Add maybe_last argument.
18840 Don't warn about statement with no effect if it is the last statement
18841 in expression statement.
18842 * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
18843 (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
18844 expand_expr_stmt_value.
18845 (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
18846 genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
18847 * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
18848 as maybe_last to expand_expr_stmt_value.
18850 Fri Jan 4 11:45:05 2002 Jeffrey A Law (law@redhat.com)
18852 * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
18853 be passed in, do not build it.
18854 (c_begin_if_stmt): New function.
18855 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
18856 * c-common.h (c_expand_start_cond): Update prototype.
18857 (c_begin_if_stmt): Prototype new function.
18858 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
18859 * c-parse.in (if_prefix): Use c_begin_if_stmt,
18860 c_begin_while_stmt and c_finish_while_stmt_cond.
18862 2002-01-04 William Cohen <wcohen@redhat.com>
18864 * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
18865 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
18866 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
18867 * config/pa/som.h (ASM_FILE_START): Likewise.
18869 2002-01-04 Daniel Berlin <dan@cgsoftware.com>
18871 * lcm.c: Include df.h.
18872 Add available_transfer_function prototype.
18873 (compute_available): Rework to use iterative dataflow framework.
18874 (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
18875 with bb_info in df.h
18876 (available_transfer_function): New function.
18878 * Makefile.in (lcm.o): add df.h to dependencies.
18880 2002-01-04 Richard Henderson <rth@redhat.com>
18882 * config/alpha/alpha.c (some_operand): Accept HIGH.
18883 (input_operand): Likewise; accept simple references to globals.
18884 (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
18885 (alpha_const_double_ok_for_letter_p): Likewise.
18886 (alpha_extra_constraint): Likewise.
18887 (alpha_preferred_reload_class): Likewise. Do not force
18888 symbolic constants to memory.
18889 (alpha_legitimate_address_p): Accept simple references
18890 to small_symbolic_operand.
18891 (alpha_legitimize_address): New arg scratch. Be prepared to be
18892 called when no_new_pseudos. Emit simple symbolic references.
18893 Split integers into low, high, and rest.
18894 (alpha_expand_mov): Use alpha_legitimize_address.
18895 (some_small_symbolic_mem_operand): New.
18896 (split_small_symbolic_mem_operand): New.
18897 * config/alpha/alpha-protos.h: Update.
18898 * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
18899 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
18900 (EXTRA_CONSTRAINT): Likewise.
18901 (PREFERRED_RELOAD_CLASS): Likewise.
18902 (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
18903 (PREDICATE_CODES): Update.
18904 * config/alpha/alpha.md: New post-reload splitters to convert
18905 simplfied symbolic operands to the form that references $29.
18906 (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
18907 (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
18909 2002-01-03 Richard Henderson <rth@redhat.com>
18911 * local-alloc.c (function_invariant_p): Update commentary.
18913 2002-01-04 H.J. Lu <hjl@gnu.org>
18915 * toplev.c (rest_of_compilation): Fix a typo when calling
18918 2002-01-03 Kazu Hirata <kazu@hxi.com>
18920 * c-common.c: Fix formatting.
18921 * diagnostic.c: Likewise.
18922 * doloop.c: Likewise.
18923 * dwarf2out.c: Likewise.
18925 2002-01-03 Kazu Hirata <kazu@hxi.com>
18927 * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
18928 of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
18930 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
18932 * cpperror.c: Update comments and copyright.
18933 * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
18934 cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
18936 2002-01-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
18938 * collect2.c (main): Use strcmp when testing for "-shared".
18940 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
18942 * cppmacro.c: Don't include intl.h. Update comments.
18943 (new_number_token): Allocate enough buffer for 64-bit unsigned
18944 integers; update prototype.
18945 * cppmain.c: Update comments.
18947 2002-01-03 William Cohen <wcohen@redhat.com>
18949 * function.h (struct function): Add profile.
18950 (current_function_profile): New.
18951 doc/extend.texi: Update documentation.
18952 * final.c (final_start_function): Use current_function_profile
18953 instead of profile_flag.
18954 (profile_after_prologue): Likewise.
18955 * function.c (expand_function_start): Likewise.
18956 (expand_function_start): Likewise.
18957 * config/alpha/alpha.c (direct_call_operand):
18958 (alpha_does_function_need_gp): Likewise.
18959 (alpha_expand_prologue): Likewise.
18960 * config/arm/arm.c (arm_expand_prologue): Likewise.
18961 thumb_expand_prologue: Likewise.
18962 * config/d30v/d30v.c (d30v_stack_info): Likewise.
18963 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
18964 (fr30_expand_prologue): Likewise.
18965 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
18966 * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
18967 * config/i386/i386.h (FINALIZE_PIC): Likewise.
18968 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
18969 * config/i960/i960.c (i960_output_function_prologue): Likewise.
18970 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
18971 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
18972 (m32r_expand_prologue): Likewise.
18973 * config/m88k/m88k.c (m88k_layout_frame): Likewise.
18974 (m88k_expand_prologue): Likewise.
18975 * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
18976 * config/mips/mips.c (compute_frame_size): Likewise.
18977 (mips_expand_prologue): Likewise.
18978 (mips_can_use_return_insn): Likewise.
18979 * config/pa/elf.h (ASM_FILE_START): Likewise.
18980 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
18981 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
18982 * config/pa/som.h (ASM_FILE_START): Likewise.
18983 * config/romp/romp.c (romp_using_r14): Likewise.
18984 * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
18985 (rs6000_stack_info): Likewise.
18986 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
18987 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
18988 * config/v850/v850.c (compute_register_save_size): Likewise.
18990 2002-01-03 Jakub Jelinek <jakub@redhat.com>
18992 * simplify-rtx.c (simplify_binary_operation) [DIV]: If
18993 gen_lowpart_common fails, use gen_lowpart_SUBREG.
18995 2002-01-03 Turly O'Connor <turly@apple.com>
18997 * darwin.c (machopic_output_possible_stub_label): Don't generate
18998 stub routines for pseudo-stubs which we've just defined.
19000 2002-01-03 Kazu Hirata <kazu@hxi.com>
19002 * builtins.c: Fix formatting.
19003 * c-typeck.c: Likewise.
19004 * combine.c: Likewise.
19005 * expr.c: Likewise.
19006 * loop.c: Likewise.
19008 2002-01-03 Andreas Schwab <schwab@suse.de>
19010 * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
19011 and return true if _cpp_push_next_buffer pushed a new include
19013 * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
19014 _cpp_pop_file_buffer did not push a new file.
19015 * cpphash.h (_cpp_pop_file_buffer): Update declaration.
19017 2002-01-02 Eric Christopher <echristo@redhat.com>
19019 * final.c (final_scan_insn): Change 0 -> NULL_RTX in
19020 FIND_REG_INC_NOTE call. Update copyright.
19021 * loop.c (canonicalize_condition): Ditto.
19022 * reorg.c (delete_scheduled_jump): Ditto.
19024 2002-01-03 Kazu Hirata <kazu@hxi.com>
19026 * gcse.c: Fix formatting.
19028 2002-01-03 Graham Stott <grahams@redhat.com>
19030 * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
19031 forward defs for struct tags rtx_def, union_tree, rtvec_def
19032 also output corresponding typedefs for rtx, tree, and rtvec.
19034 * system.h: Move forward defs for struct tags rtx_def, union_tree,
19035 rtvec_def along with corresponding typedefs for rtx, tree, and
19036 rtvec to config.h, hconfig.h, tconfig.h.
19038 2002-01-03 Graham Stott <grahams@redhat.com>
19040 * tree.h: Update copyright date.
19041 (IS_EXPR_CODE_CLASS): Add parenthesis.
19042 (TREE_SET_CODE): Add whitespace.
19043 (TREE_CHECK): Add parenthesis.
19044 (TREE_CLASS_CODE): Add parenthesis and wrap long line.
19045 (CST_OR_CONSTRUCTOR_CHECK):
19046 (EXPR_CHECK): Add parenthis, whitespace and wrap line.
19047 (TREE_SYMBOL_REFERENCED): Whitespace.
19048 (INT_CST_LT): Likewise.
19049 (INT_CST_LT_UNSIGNED): Likewise.
19050 (tree_real_cst): Unwrap comment.
19051 (tree_string): Likewise.
19052 (tree_complex): Likewise.
19053 (IDENTIFIER_POINTER): correct cast.
19054 (SAVE_EXPR_CONTEXT): Whitespace.
19055 (EXPR_WFL_FILENAME_NODE): Likewise.
19056 (EXPR_WFL_FILENAME): Remove parenthesis.
19057 (DECL_ORIGIN): Add parenthesis.
19058 (DECL_FROM_INLINE): Use NULL_TREE.
19059 (build_int_2): Whitespace.
19060 (build_type_variant): Add parenthesis.
19062 * gcc/jcf-parse.c: Update copyright date.
19063 (yyparse): Constify resource_filename.
19065 2002-01-03 Graham Stott <grahams@redhat.com>
19067 * rtl.h: Update copyright date.
19068 (RTL_CHECK1): Wrap long line.
19069 (RTL_CHECK2): Likewise.
19070 (RTL_CHECKC1): Wrap long line and whitespace.
19071 (RTL_CHECKC2): Likewise.
19072 (XWINT): Whitespace.
19078 (XBITMAP): Likewise.
19080 (XBBDEF): Likewise.
19082 (X0WINT): Likewise.
19084 (X0UINT): Likewise.
19088 (X0MODE): Likewise.
19089 (X0BITMAP): Likewise.
19090 (X0TREE): Likewise.
19091 (X0BBDEF): Likewise.
19092 (X0ADVFLAGS): Likewise.
19093 (X0CSELIB): Likewise.
19094 (X0MEMATTR): Likewise.
19095 (XCWINT): Likewise.
19097 (XCUINT): Likewise.
19101 (XCMODE): Likewise.
19102 (XCBITMAP): Likewise.
19103 (XCTREE): Likewise.
19104 (XCBBDEF): Likewise.
19105 (XCADVFLAGS): Likewise.
19106 (XCCSELIB): Likewise.
19107 (XC2EXP): Likewise.
19108 (INSN_UID): Likewise.
19109 (PREV_INSN): Likewise.
19110 (PATTERN): Likewise.
19111 (INSN_CODE): Likewise.
19112 (PUT_REG_NOTE_KIND): Likewise.
19113 (CODE_LABEL_NUMBER): Likewise.
19114 (NOTE_SOURCE_FILE): Likewise.
19115 (NOTE_BLOCK): Likewise.
19116 (NOTE_EH_HANDLER): Likewise.
19117 (NOTE_RANGE_INFO): Likewise.
19118 (NOTE_LIVE_INFO): Likewise.
19119 (NOTE_BASIC_BLOCK): Likewise.
19120 (NOTE_EXPECTED_VALUE): Likewise.
19121 (NOTE_LINE_NUMBER): Likewise.
19122 (LABEL_NAME): Likewise.
19123 (LABEL_NUSES): Likewise.
19124 (LABEL_ALTERNATE_NAME): Likewise.
19125 (ADDRESSOF_DECL): Likewise.
19126 (JUMP_LABEL): Likewise.
19127 (LABEL_NEXTREF): Likewise.
19129 (ORIGINAL_REGNO: Likewise.
19130 (HARD_REGISTER_NUM_P): Add parenthesis.
19131 (SUBREG_REG): Whitespace.
19132 (SUBREG_BYTE): Likewise.
19133 (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
19134 (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
19135 (ASM_OPERANDS_OUTPUT_IDX): Likewise.
19136 (ASM_OPERANDS_INPUT_VEC): Likewise.
19137 (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
19138 (ASM_OPERANDS_INPUT): Likewise.
19139 (ASM_OPERANDS_INPUT_LENGTH): Likewise.
19140 (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
19141 (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
19142 (ASM_OPERANDS_INPUT_MODE): Likewise.
19143 (ASM_OPERANDS_SOURCE_FILE): Likewise.
19144 (ASM_OPERANDS_SOURCE_LINE): Likewise.
19145 (MEM_SET_IN_STRUCT_P): Minor reformat.
19146 (TRAP_CONDITION): Whitespace.
19147 (TRAP_CODE): Likewise.
19148 (COND_EXEC_TEST): Likewise.
19149 (COND_EXEC_CODE): Likewise.
19150 (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
19151 (PHI_NODE_P): Add parenthesis.
19152 (plus_constant): Whitespace and add parenthesis.
19154 2002-01-03 Kazu Hirata <kazu@hxi.com>
19156 * config/avr/avr.c: Fix comment typos.
19157 * config/c4x/c4x.md: Likewise.
19158 * config/dsp16xx/dsp16xx.h: Likewise.
19159 * config/dsp16xx/dsp16xx.md: Likewise.
19160 * config/i386/i386.md: Likewise.
19161 * config/ia64/ia64.c: Likewise.
19162 * config/m32r/m32r.h: Likewise.
19163 * config/m68hc11/m68hc11.md: Likewise.
19164 * config/mmix/mmix.c: Likewise.
19165 * config/mn10200/mn10200.c: Likewise.
19166 * config/romp/romp.c: Likewise.
19167 * config/sh/sh.c: Likewise.
19168 * config/stormy16/stormy16.c: Likewise.
19169 * config/stormy16/stormy16.h: Likewise.
19170 * config/stormy16/stormy16.md: Likewise.
19172 2002-01-03 Graham Stott <grahams@redhat.com>
19174 * loop.h: Update copyright date.
19175 (LOOP_MOVABLES): Fix typo.
19176 (LOOP_REGS): Likewise.
19177 (LOOP_IVS): Likewise.
19179 2002-01-03 Graham Stott <grahams@redhat.com>
19181 * cppinit.c: Update copyright date.
19182 Don't include output.h
19183 * Makefile.in: Update copyright date.
19186 2002-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
19189 * invoke.texi (-mthreads): Remove from documented RS/6000 options.
19190 (-pthread) Add to RS/6000 options.
19192 2002-01-02 Kazu Hirata <kazu@hxi.com>
19194 * except.c: Fix comment typos.
19195 * loop.c: Likewise.
19196 * varasm.c: Likewise.
19197 * doc/tm.texi: Fix a typo.
19199 2002-01-02 Jakub Jelinek <jakub@redhat.com>
19201 * c-typeck.c (output_init_element): Allow initializing static storage
19202 duration objects with compound literals.
19204 2002-01-02 Richard Henderson <rth@redhat.com>
19206 * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
19209 2002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19211 * gcc.c (default_compilers): Const-ify.
19212 * mips-tdump.c (stab_names): Likewise.
19213 * mips-tfile.c (map_coff_types, map_coff_storage,
19214 map_coff_sym_type, map_coff_derived_type, stabs_symbol,
19215 pseudo_ops_t, pseudo_ops): Likewise.
19216 * protoize.c (default_include): Likewise
19218 * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
19219 (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
19220 Add array size in declaration.
19221 (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
19222 emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
19223 esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
19224 etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
19225 eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
19226 efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
19227 c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
19228 emtens, make_nan): Const-ify.
19229 (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
19230 DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
19232 2002-01-02 Joseph S. Myers <jsm28@cam.ac.uk>
19234 * config.gcc (ia64-*-*): Set extra_headers.
19235 (alpha*-dec-osf*): Likewise. Don't use alpha/t-osf.
19236 * config/alpha/t-osf: Remove.
19237 * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
19239 2002-01-02 David Edelsohn <edelsohn@gnu.org>
19241 * config/rs6000/t-aix43: Revert previous change.
19243 2002-01-02 Jason Merrill <jason@redhat.com>
19245 * c-decl.c (c_expand_body): Call outlining_inline_function when
19246 emitting an inline function out of line.
19248 2002-01-02 Richard Henderson <rth@redhat.com>
19250 * dwarf2out.c (limbo_die_node): Add created_for member.
19251 (new_die): New argument created_for. Update all callers.
19252 (mark_limbo_die_list): New.
19253 (dwarf2out_init): Register limbo_die_list as a root.
19254 (dwarf2out_finish): Force insert limbo dies into their function
19257 2002-01-02 Nathan Sidwell <nathan@codesourcery.com>
19260 * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
19262 2002-01-02 Kazu Hirata <kazu@hxi.com>
19264 * config/h8300/fixunssfsi.c: Update copyright.
19267 * config/h8300/h8300.c: Update copyright.
19268 Eliminate warnings.
19270 2002-01-02 Kazu Hirata <kazu@hxi.com>
19272 * config/romp/romp.c: Fix comment formatting.
19273 * config/romp/romp.h: Likewise.
19274 * config/romp/romp.md: Likewise.
19275 * config/s390/s390.c: Likewise.
19276 * config/stormy16/stormy16.c: Likewise.
19277 * config/stormy16/stormy16.h: Likewise.
19279 2002-01-02 Alexandre Oliva <aoliva@redhat.com>
19281 * c-common.h (genrtl_expr_stmt_value): Declare.
19282 * c-semantics.c (genrtl_goto_stmt): Redirect to...
19283 (genrtl_goto_stmt_value): ... this new function. Pass new
19284 argument down to expand_expr_stmt_value, taking
19285 TREE_ADDRESSABLE into account.
19286 * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
19287 STMT_EXPR as addressable, i.e., one whose result we want.
19288 * expr.c (expand_expr): Don't save expression statement value
19289 of labeled_blocks or loop_exprs.
19290 * stmt.c (expand_expr_stmt): Redirect to...
19291 (expand_expr_stmt_value): ... this new function. Use new
19292 argument to tell whether to save expression value.
19293 (expand_end_stmt_expr): Reset last_expr_type and
19294 last_expr_value if we don't have either.
19295 * tree-inline.c (declare_return_variable): Mark its use
19296 statement as addressable.
19297 * tree.h: Document new use of TREE_ADDRESSABLE.
19298 (expand_expr_stmt_value): Declare.
19300 2002-01-01 Tom Rix <trix@redhat.com>
19302 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
19303 rs6000_emit_allocate_stack.
19305 2002-01-01 Joseph S. Myers <jsm28@cam.ac.uk>
19307 * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
19308 ${srcdir}/ginclude/ to every entry in extra_headers.
19309 * configure: Regenerate.
19310 * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
19311 * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
19312 * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
19313 * ginclude/proto.h: Rename to config/convex/proto.h.
19315 Tue Jan 1 17:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19317 * attribs.c (handle_vector_size_attribute): Use host_integerp
19318 and tree_int_cst; remove warnings.
19319 * caller-save.c (insert_restore): Add cast to get rid of warning.
19320 (insert_save): Likewise.
19321 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
19322 * regmove.c (find_matches): Add temporary var to kill a warning.
19324 2002-01-01 Douglas B Rupp <rupp@gnat.com>
19326 * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
19327 LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
19328 * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
19329 (vms-dwarf2eh.o): Add Makefile rule.
19330 * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
19331 * config/alpha/vms-dwarf2eh.asm: New file.
19333 * gcc.c (delete_if_ordinary): Delete all versions.
19335 2002-01-01 Hans-Peter Nilsson <hp@bitrange.com>
19337 * config/mmix/mmix.md: Update FIXME to not mention
19339 (MMIX_rJ_REGNUM): New define_constants constant.
19340 ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
19341 "*movdicc_real"): Adjust contraints formatting.
19342 ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
19343 for branch prediction.
19344 ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
19346 ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
19347 "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
19348 number. Delete related FIXMEs.
19349 * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
19350 from number to MMIX_rJ_REGNUM.
19351 (TARGET_MASK_BRANCH_PREDICT): New.
19352 (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
19353 (TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols
19354 value. Add -mbranch-predict and -mno-branch-predict.
19355 (TARGET_VERSION): Drop date.
19356 (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
19357 * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
19358 for finding out global symbols.
19359 (mmix_asm_output_labelref): Revert condition for global symbol.
19360 (mmix_print_operand): <case '+'>: Emit P for a likely branch.
19361 (mmix_print_operand_punct_valid_p): A '+' is valid.
19363 See ChangeLog.6 for earlier changes.