1 2002-06-10 Tom Tromey <tromey@redhat.com>
3 * Makefile.in (LANGHOOKS_DEF_H): Include langhooks-def.h.
4 (c-common.o): Depend on langhooks.h.
6 2002-06-10 Neil Booth <neil@daikokuya.demon.co.uk>
8 * cpphash.h (_cpp_read_logical_line_trad,
9 _cpp_expansions_different_trad): Update prototypes.
10 * cpplex.c (continue_after_nul): New.
11 * cppmain.c: Include cpphash.h.
12 (scan_translation_unit_trad): New.
13 (cpp_preprocess_file): Call it.
14 * cpptrad.c (_cpp_read_logical_line_trad): Take new parameter
16 (_cpp_expansions_different_trad): Update prototype.
18 Mon Jun 10 18:02:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
20 Fix cfi generation for SH[1-4]:
22 * sh.c (frame_insn): New function.
23 (output_stack_adjust): Add parameter emit_fn. All callers changed.
24 (push): Now returns rtx. Use frame_insn.
25 (sh_expand_prologue): Clear RTX_FRAME_RELATED_P for second push
27 * sh.h (INCOMING_RETURN_ADDR_RTX, DWARF_FRAME_RETURN_COLUMN): Define.
29 2002-06-10 Zack Weinberg <zack@codesourcery.com>
31 * Makefile.in (STAGESTUFF): Add s-gtype, gt-*.h, gtype-*.h,
33 (mostlyclean): Delete specs.h, options.h, gencheck.h here...
34 (distclean): ... not here. But do delete all testsuite/*.log,
35 testsuite/*.sum files here. Delete mkheaders. Delete
36 po/*.gmo and the testsuite directory in a split tree build.
38 2002-06-10 Jeffrey Law <law@redhat.com>
40 * alias.c (static_reg_base_value): New to hold RTL for
41 items allocated once per function for the aliasing code.
42 (init_alias_once_per_function): Initialize static_reg_base_value.
43 (init_alias_analysis): Avoid throw-away allocations of RTL by
44 using pre-computed values in static_reg_base_value.
45 * function.c (prepare_function_start): Call
46 init_alias_once_per_function appropriately.
47 * rtl.h (init_alias_once_per_function): Declare.
48 * caller-save (init_caller_save): Restructure slightly to
49 avoid lots of silly RTL generation.
50 * expr.c (init_expr_once): Likewise.
51 * reload1.c (reload_cse_regs_1): Allocate throw-away register
52 RTL object here. Pass it into children.
53 (reload_cse_simplify_operands): Use passed-in register RTL
55 (reload_cse_simplify): Pass through throw-away register
58 2002-06-10 Daniel Berlin <dberlin@dberlin.org>
60 * Makefile.in (ssa.o): Add dependency on $(RTL_H), which was missing.
62 2002-06-10 Richard Sandiford <rsandifo@redhat.com>
64 * gcc.c (process_command): Avoid assignment to read-only location.
65 Fix sizeof calculation.
67 2002-06-10 Neil Booth <neil@daikokuya.demon.co.uk>
69 * cpphash.h (struct cpp_macro): Put comments on their own lines.
70 (_cpp_expansions_different_trad): New.
71 * cppmacro.c (warn_of_redefinition): Fix for traditional case.
72 * cpptrad.c (canonicalize_text): New.
73 (scan_out_logical_line): Handle no arguments correctly.
74 (save_replacement_text): Commit memory when finished.
75 (_cpp_expansions_different_trad): New.
77 2002-06-10 Tim Josling <tej@melbpc.org.au>
79 * gengtype.c (unnamed enum containing BASE_FILE_*): Add languages
81 (lang_names): Add treelang and cobol.
82 (get_file_basename): Add code to support treelang and cobol as
83 4th and 5th users of c-common.c.
85 2002-06-09 Geoffrey Keating <geoffk@redhat.com>
87 * Makefile.in (install-driver): Install driver as
88 $(target_alias)-gcc-$(version).
89 * gcc.c (spec_version): Make const.
90 (process_command): Handle -V and -b by using exec.
91 * doc/invoke.texi (Target Options): Restore -V option,
92 update docs for -b option.
94 2002-06-10 Tim Josling <tej@melbpc.org.au>
96 * configure.in (remaining_languages_check):
97 Added check that all languages specified were found.
98 Exit if not found. Previous behaviour was silent failure.
99 * configure: Regenerated.
101 2002-06-10 Tim Josling <tej@melbpc.org.au>
103 First steps to making treelang documentation compliant, based on
104 instructions in sourcebuild.texi. Also add to gcc.c list of
107 * doc/contrib.texi: Add self as contributor of treelang.
109 * doc/frontends.texi: Add mention of treelang.
111 * doc/invoke.texi (Overall Options): Add mention of treelang.
113 * doc/standards.texi: Add mention of treelang.
115 2002-06-09 Hans-Peter Nilsson <hp@axis.com>
117 * config/cris/cris.c: Include ggc.h
119 2002-06-09 Neil Booth <neil@daikokuya.demon.co.uk>
121 * cpphash.h (_cpp_push_text_context): Update.
122 (_cpp_arguments_ok): New.
123 * cppmacro.c (_cpp_arguments_ok): New, split out from...
124 (collect_args): ...here.
125 (_cpp_push_text_context): Change inputs.
126 * cpptrad.c (struct fun_macro, maybe_start_funlike, save_argument,
127 replace_args_and_push): New.
128 (lex_identifier, _cpp_lex_identifier_trad, scan_parameters):
129 Don't use IS macros directly.
130 (scan_out_logical_line): Handle function-like macro argument
132 (push_replacement_text): Update.
133 (replacement_length): Remove.
134 (_cpp_create_trad_definition): Don't skip whitespace before
137 2002-06-09 Marek Michalkiewicz <marekm@amelek.gda.pl>
139 * config/avr/avr.c (avr_mcu_types): Update for new devices.
140 * config/avr/avr.h (TARGET_SWITCHES, AVR_MEGA): Add -mshort-calls.
141 (LINK_SPEC, CRT_BINUTILS_SPECS): Update for new devices.
142 * config/avr/avr.md ("type" and "length" attributes): New type
143 "xcall", length 1 or 2 if AVR_MEGA. Use in all patterns that
144 output a single "call" or "rcall" insn depending on device size.
145 * config/avr/t-avr (MULTILIB_MATCHES): Update for new devices.
147 2002-06-09 David Edelsohn <edelsohn@gnu.org>
149 * config/rs6000/{aix43.h,aix5.1} (ASM_CPU_SPEC): Add power3
150 synonym for 630. Add power4. Remove embedded processors. Use -m604
152 (CPP_CPU_SPEC): Add power3 and power4.
153 (PROCESSOR_DEFAULT): Change to 604e.
154 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Similar additions.
155 (CPP_CPU_SPEC): Similar additions.
156 (enum process_type): Add POWER4.
157 (RTX_COSTS): Add POWER4.
158 (CPP_CPU_SPEC): Similar additions.
159 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Define.
160 (PROCESSOR_DEFAULT64): Define.
161 * config/rs6000/rs6000.c (rs6000_override_options): Add power4.
162 (rs6000_adjust_cost): Add 603, 604, 604e, 620, 630, Power4 to
164 (rs6000_issue_rate): Add Power4.
165 * config/rs6000/rs6000.md (cpu attr): Add power4.
166 (iu compare): Remove 604, 604e, 620, 630.
167 Add basic Power4 scheduling information.
168 (mfcr/mtcrf): Change type attribute to cr_logical.
170 2002-06-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
172 * gengtype.h (error_at_line): Use PARAMS, not VPARAMS. Add
174 * gengtype-lex.l: Fix format specifier warning.
176 * genautomata.c: Don't include ctype.h or limits.h. Use ISSPACE,
178 * gengtype-lex.l: Don't include ctype.h and use ISSPACE/ISIDNUM in
179 lieu of isspace/IDchar.
180 * gengtype.c: Likewise for ctype.h and ISALNUM vs isalnum.
181 * read-rtl.c: Likewise for ctype.h. Don't define ISDIGIT or
184 2002-06-08 Zack Weinberg <zack@codesourcery.com>
186 * Makefile.in (LIBCPP_OBJS): Take out version.o.
187 * cpphash.h (cpp_reader): Take out print_version member.
188 * cppinit.c: (cpp_handle_option): Don't do anything with
189 -version. Just set help_only for --version, --target-help.
190 Just set verbose option for -v.
191 (cpp_post_options): Don't print a version string.
193 2002-06-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
195 * config/avr/avr.c (TARGET_SECTION_TYPE_FLAGS): New.
196 (avr_section_type_flags): New, handle .noinit* sections.
198 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
200 * config/sh/netbsd-elf.h (SUBTARGET_EXTRA_SPECS): Define
201 and include netbsd_entry_point.
202 (SUBTARGET_LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
203 (NETBSD_ENTRY_POINT): Define.
205 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
207 * config/sh/sh.h (SUBTARGET_EXTRA_SPECS): Define empty
208 if not already defined.
209 (EXTRA_SPECS): Add SUBTARGET_EXTRA_SPECS.
211 2002-06-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
213 * config/avr/avr.c (avr_regs_to_save): No need to save any registers
214 in a noreturn function.
215 (avr_output_function_prologue, avr_output_function_epilogue):
216 Correct function size calculation. Do not crash on empty function.
217 (avr_output_function_epilogue): No need for epilogue after a BARRIER.
219 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
221 * config/mips/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
222 netbsd_link_spec and netbsd_entry_point.
223 (LINK_SPEC): Use %(netbsd_link_spec).
224 (NETBSD_ENTRY_POINT): Define.
226 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
228 * config/sparc/netbsd-elf.h (LINK_ARCH32_SPEC): Only specify
230 (LINK_ARCH64_SPEC): Likewise.
231 (LINK_SPEC, NETBSD_ENTRY_POINT): Define.
232 (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and netbsd_entry_point.
234 2002-06-08 Marc Espie <espie@openbsd.org>
236 * lists.c (free_list): Fix typo in comment.
238 2002-06-08 Andreas Jaeger <aj@suse.de>
240 * lcm.c (optimize_mode_switching): Add unused attribute for
243 * sched-deps.c (sched_analyze): Remove unused variable.
245 2002-06-08 Gabriel Dos Reis <gdr@codesourcery.com>
247 * diagnostic.def: Don't capitalize diagnostict descriptors.
249 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
251 * config/m68k/netbsd-elf.h (EXTRA_SPECS): Add netbsd_entry_point.
252 (LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
253 (NETBSD_ENTRY_POINT): Define.
255 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
257 * config/i386/netbsd-elf.h (LINK_SPEC): Define as
258 NETBSD_LINK_SPEC_ELF.
259 (SUBTARGET_EXTRA_SPECS): Add netbsd_entry_point.
260 (NETBSD_ENTRY_POINT): Define.
261 * config/i386/netbsd64.h (LINK_SPEC): Use %(netbsd_link_spec).
262 (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and
264 (NETBSD_ENTRY_POINT): Define.
266 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
268 * config/alpha/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
269 netbsd_link_spec and netbsd_entry_point.
270 (LINK_SPEC): Use %(netbsd_link_spec).
271 (NETBSD_ENTRY_POINT): Define.
273 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
275 * config/netbsd-elf.h (LINK_SPEC): Rename to...
276 (NETBSD_LINK_SPEC_ELF): ...this. Use %(netbsd_entry_point)
277 to specify program entry point.
279 2002-06-07 Jeff Law <law@redhat.com
281 * emit-rtl.c (init_emit): Add hard registers to regno_reg_rtx.
282 * combine.c (move_deaths): Use regno_reg_rtx for hard regs rather
283 than creating a new register.
284 (distribute_notes): Likewise.
285 * df.c (df_reg_use_gen): Likewise.
286 (df_reg_clobber_gen): Likewise.
287 (df_ref_record): Likewise.
288 * expr.c (use_regs): Likewise.
289 * flow.c (propagate_one_insn): Likewise.
290 (mark_set_1): Likewise.
291 (mark_used_reg): Likewise.
292 * reload.c (emit_reload_insns): Likewise.
294 2002-06-07 Roger Sayle <roger@eyesopen.com>
296 * simplify-rtx.c (simplify_gen_relational): Simplify RTL of the form
297 (ne (comp x y) 0) into (comp x y) where comp is a comparison code.
298 Simplify (eq (comp x y) 0) into (revcomp x y) if the sense of the
299 comparison code comp can be reversed.
301 2002-06-07 Roger Sayle <roger@eyesopen.com>
303 * fold-const.c (fold) [EQ_EXPR]: Place both integer and real
304 constants last in comparisons. Optimize (x+1.0)>0.0 into the
305 equivalent x > -1.0 when -ffast-math.
307 2002-06-07 Jason Thorpe <thorpej@wasabisystems.com>
309 * config.gcc (mips*-*-netbsd*): Add mips/t-netbsd to ${tmake_file}.
310 * config/mips/t-netbsd: New file.
312 2002-06-07 Zack Weinberg <zack@codesourcery.com>
314 * cppinit.c (COMMAND_LINE_OPTIONS): Give all relevant -W
315 options their own entries.
316 (parse_option): Clarify comment.
317 (cpp_handle_option): Remove 'ignore' parameter and OPT_W
318 special case. Replace if/strcmp chain for -W options with
319 use of new OPT_* entries for them.
320 (cpp_handle_options): Update to match.
321 * cpplib.h: Remove last parameter to cpp_handle_option from prototype.
322 * c-decl.c: Update call to cpp_handle_option.
324 2002-06-07 Akim Demaille <akim@epita.fr>
326 * gengtype-yacc.y (optionseqopt): Add the ending `;' to the action.
329 2002-06-07 Jeffrey Law <law@redhat.com>
331 * sched-deps.c (free_deps): Avoid calling free_INSN_LIST_list
334 2002-06-07 H.J. Lu (hjl@gnu.org)
336 * configure.in: Add --enable-__cxa_atexit.
337 * configure: Regenerated.
338 * config.in: Likewise.
340 * defaults.h (DEFAULT_USE_CXA_ATEXIT): New. Defined to be 0 if
343 2002-06-07 Gabriel Dos Reis <gdr@merlin.nerim.net>
345 * diagnostic.c (diagnostic_build_prefix): Fix initialization.
347 2002-06-07 Jason Thorpe <thorpej@wasabisystems.com>
349 * config/mips/netbsd.h (CACHE_FLUSH_FUNC): Define.
351 2002-06-07 Jason Merrill <jason@redhat.com>
353 * cppexp.c (num_equality_op): Use a temporary variable to work
354 around gcc 3.0.4 bug.
356 2002-06-07 Gabriel Dos Reis <gdr@codesourcery.com>
358 * diagnostic.c (diagnostic_build_prefix): Tidy.
360 2002-06-07 Neil Booth <neil@daikokuya.demon.co.uk>
362 * cpptrad.c (struct block, BLOCK_HEADER_LEN, BLOCK_LEN,
363 scan_parameters, save_replacement_text, replacement_length): New.
364 (scan_out_logical_line): Take a macro and save parameters if
366 (_cpp_logical_line_trad): Update.
367 (_cpp_create_trad_definition): Update to handle function-like
369 * cpplex.c (new_buff): Update.
370 (struct dummy, DEFAULT_ALIGNMENT, CPP_ALIGN): Move...
371 * cpphash.h: ...here.
372 (CPP_ALIGN2, _cpp_save_parameter): New.
373 * cppmacro.c (save_parameter): Rename, export.
374 (parse_params): Update.
376 2002-06-07 Andreas Jaeger <aj@suse.de>
378 * config/mmix/mmix.c: Remove extra broken prototype for
379 mmix_init_machine_status.
381 2002-06-06 Geoffrey Keating <geoffk@redhat.com>
383 * gengtype.c: Add comments before all the routines.
385 2002-06-07 Jason Thorpe <thorpej@wasabisystems.com>
387 * config.gcc (sh5*-*-netbsd*): Remove sh/t-netbsd-sh5-32
388 from and add t-sh64 to ${tmake_file}.
389 (sh64*-*-netbsd*): Add t-sh64 to ${tmake_file}.
390 * config/sh/t-netbsd-sh5 (LIB1ASMFUNCS): Remove.
391 * config/sh/t-netbsd-sh5-32: Remove.
392 * config/sh/t-netbsd-sh5-64 (MULTILIB_OPTIONS): Use
394 (MULTILIB_DIRNAMES): Define.
396 Thu Jun 6 23:14:46 CEST 2002 Jan Hubicka <jh@suse.cz>
398 * i386.md (and promoting splitters): Disable QI to SImode promoting
399 when doing so changes immediate to be 32bit.
401 * rtl.h (emit_*_scope): Declare.
402 * emit-rtl.c (emit_*_scope): New global functions.
403 (try_split): Copy scope.
404 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
405 noce_try_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
406 noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
407 noce_process_if_block, find_cond_trap): Copy scopes.
408 * recog.c (peephole2_optimize): likewise.
410 2002-06-06 Jeffrey Law <law@redhat.com>
412 * h8300.h (OK_FOR_U): Fix thinko exposed by flag checking.
414 Thu Jun 6 21:06:25 2002 J"orn Rennecke <joern.rennecke@superh.com>
416 * gengtype-lex.l (INITIAL): New rule for "'"("\\".|[^\\])"'".
418 2002-06-06 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
420 * Makefile.in (TEXI_GCCINSTALL_FILES): Define.
421 ($(docdir)/gccinstall.info): New target.
422 (info): Depend on it.
423 (gccinstall.dvi): New target.
425 * doc/.cvsignore: Ignore new info files.
426 * doc/install.texi (@setfilename): Reflect new info filename.
428 Thu Jun 6 15:57:23 2002 J"orn Rennecke <joern.rennecke@superh.com>
430 * sh.c (machine_dependent_reorg): Don't set RTX_UNCHANGING_P
433 Thu Jun 6 07:17:43 2002 Nicola Pero <n.pero@mi.flashnet.it>
436 * objc/objc-lang.c (LANG_HOOKS_GET_ALIAS_SET): Define to be
437 c_common_get_alias_set.
438 (LANG_HOOKS_SAFE_FROM_P): Define to be c_safe_from_p.
440 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
442 * emit-rtl.c (get_first_nonnote_insn, get_last_nonnote_insn): New
444 * rtl.h (get_first_nonnote_insn, get_last_nonnote_insn): Declare.
445 * avr/avr.c (avr_output_function_epilogue): Use above to determine
447 * pa/pa.c (pa_output_function_prologue): Likewise.
449 2002-06-05 David S. Miller <davem@redhat.com>
451 * integrate.c (subst_constants): Handle 'B' RTL format.
453 2002-06-05 Eric Christopher <echristo@redhat.com>
455 * varasm.c (make_decl_rtl): Fix comment for removed
458 2002-06-05 Eric Christopher <echristo@redhat.com>
460 * Makefile.in: Remove missed halfpic bits.
462 2002-06-05 Eric Christopher <echristo@redhat.com>
464 * toplev.c: Remove half-pic.
465 * config/mips/mips.c: Ditto.
466 * config/mips/mips.h: Ditto. Remove unused defines.
467 * config/mips/openbsd.h: Update comment to reflect above.
468 * config/mips/mips.md: Remove half-pic constraints.
472 2002-06-05 Jeffrey Law <law@redhat.com>
474 * pa.h (EXTRA_CONSTRAINT, T case): Further refine so that it
475 rejects (mem (lo_sum (reg) (unspec))), but will allow
476 (mem (lo_sum (reg) (symbol_ref)) for PA2.0.
478 2002-06-05 Neil Booth <neil@daikokuya.demon.co.uk>
480 * cpphash.h (_cpp_create_definition): Update prototype.
481 (_cpp_push_text_context, _cpp_create_trad_definition): New.
482 ( cpp_lex_identifier_trad): New.
483 (_cpp_set_trad_context): New.
484 * cppinit.c (cpp_finish_options): Don't conditionalize builtins.
485 * cpplib.c (SEEN_EOL): Update.
486 (lex_macro_node): Update for -traditional.
487 (cpp_push_buffer, _cpp_pop_buffer): Similarly.
488 * cppmacro.c (_cpp_create_definition): Split into
489 create_iso_definition() and _cpp_create_trad_definition().
490 (warn_of_redefinition): Update prototype; handle traditional
492 (_cpp_push_text_context): New.
493 * cpptrad.c (skip_whitespace, push_replacement_text): New.
494 (lex_identifier): Call ht_lookup with correct start.
495 (_cpp_lex_identifier_tradm _cpp_create_trad_definition,
496 _cpp_set_trad_context): New.
497 (scan_out_logical_line): Update to handle changing contexts.
499 Wed Jun 5 20:42:31 2002 J"orn Rennecke <joern.rennecke@superh.com>
501 * config.gcc (sh-*-elf*, sh64*-*-elf*): Unify.
503 * config/sh/t-be (MULTILIB_ENDIAN): Set.
504 * config/sh/t-le (MULTILIB_ENDIAN): Likewise.
505 * t-sh (MULTILIB_ENDIAN): Set.
506 (MULTILIB_OPTIONS): Use it.
507 * t-sh64 (MULTILIB_OPTIONS): Likewise.
508 (MULTILIB_DIRNAMES): Likewise.
510 2002-06-05 Gabriel Dos Reis <gdr@codesourcery.com>
512 * toplev.h (report_error_function): Remove.
514 * diagnostic.h (location_t): New datatype.
515 (text_info): Likewise.
516 (diagnostic_info): Likewise.
517 (output_prefix): New macro.
518 (diagnostic_last_function_changed): Likewise.
519 (diagnostic_set_last_function): Likewise.
520 (diagnostic_last_module_changed): Likewise.
521 (diagnostic_set_last_module): Likewise.
522 (report_diagnostic): Now macro.
523 (diagnostic_set_info): Declare.
525 * diagnostic.c (report_problematic_module): Rename to
526 diagnostic_repor_current_module.
527 (set_diagnostic_context): Remove.
528 (count_error): Rename to diagnostic_error_count.
529 (error_function_changed): Remove.
530 (record_last_error_function): Likewise.
531 (error_module_changed): Likewise.
532 (record_last_error_module): Likewise.
533 (context_as_prefix): Rename to diagnostic_build_prefix.
534 (flush_diagnostic_buffer): Rename to diagnostic_flush_buffer.
535 (diagnostic_set_info): New function.
537 * objc/objc-act.c: #include diagnostic.h
538 (error_with_ivar): Adjust call to count_error.
539 (warn_with_method): Likewise.
540 * objc/Make-lang.in (objc-act.o): Depend on diagnostic.h
542 2002-06-05 Bob Wilson <bob.wilson@acm.org>
544 * config/xtensa/xtensa.c (xtensa_build_va_list): Use
545 lang_hooks.types.make_type instead of make_node; set up
546 __va_list_tag type decl.
547 (xtensa_builtin_saveregs): Remove broken use of
548 RTX_UNCHANGING_P and unnecessary use of MEM_IN_STRUCT_P
549 for saved registers; add varargs alias set.
551 2002-06-05 Neil Booth <neil@daikokuya.demon.co.uk>
554 * alpha/gnu.h: Undef TARGET_OS_CPP_BUILTINS.
555 * i386/beos-elf.h: Use TARGET_OS_CPP_BUILTINS rather than
556 CPP_PREDEFINES and part of CPP_SPEC.
557 i386/freebsd-aout.h, i386/gas.h, i386/gnu.h, i386/linux-aout.h,
558 i386/linux.h, i386/moss.h, i386/xm-vsta.h: Similarly.
560 Wed Jun 5 15:20:58 CEST 2002 Jan Hubicka <jh@suse.cz>
562 * reg-stack.c (reg_to_stack): Do not call find_basic_blocks.
564 2002-06-05 Alan Modra <amodra@bigpond.net.au>
566 * config/rs6000/linux64.h (ASM_OUTPUT_SOURCE_LINE): Define.
568 2002-06-04 Zack Weinberg <zack@codesourcery.com>
570 * gengtype-yacc.y: Make sure all rules end with a semicolon.
572 2002-06-04 Bob Wilson <bob.wilson@acm.org>
574 * config/xtensa/xtensa.c (xtensa_init_machine_status): Fix
575 typo in function prototype and include "ggc.h" header.
577 2002-06-04 Richard Henderson <rth@redhat.com>
579 * config/alpha/alpha.c (mode_mask_operand): Simplify without ifdefs.
580 (print_operand) ['U']: Likewise.
581 (alpha_expand_unaligned_store): Correct constants for 32-bit cross.
582 (alpha_expand_unaligned_store_words): Likewise.
583 (alpha_expand_builtin_vector_binop): Fix typo.
584 (enum alpha_builtin, code_for_builtin): Add remaining ext, ins, msk,
585 umulh, and cix insns.
586 (one_arg_builtins): Add cix builtins.
587 (two_arg_builtins): Add ext, ins, msk, umulh builtins.
588 (alpha_expand_builtin): Fix typo in arity.
589 * config/alpha/alpha.md (UNSPEC_CTLZ, UNSPEC_CTPOP): New.
590 (builtin_extbl, builtin_extwl, builtin_extll, builtin_extwh,
591 builtin_extlh, builtin_insbl, builtin_inswl, builtin_insll,
592 builtin_insql, builtin_inswh, builtin_inslh, builtin_insqh,
593 builtin_mskbl, builtin_mskwl, builtin_mskll, builtin_mskql,
594 builtin_mskwh, builtin_msklh, builtin_mskqh, builtin_cttz,
595 builtin_ctlz, builtin_ctpop): New.
596 * doc/extend.texi (Alpha Built-in Functions): Update.
598 2002-06-04 Geoffrey Keating <geoffk@redhat.com>
600 * gengtype.c (write_gc_root): Don't unnecessarily prevent
601 global variable-length arrays being roots.
603 * config.gcc (powerpc-*-darwin*): Set config_gtfiles.
604 * configure.in (config_gtfiles): New variable.
605 (all_gtfiles): Initialise from config_gtfiles.
606 * configure: Regenerate.
608 2002-06-04 Neil Booth <neil@daikokuya.demon.co.uk>
611 * beos-elf.h, cygwin.h, djgpp.h, gas.h, gnu.h, i386-interix.h,
612 i386-interix3.h, i386elf.h, linux-aout.h, linux.h, linux64.h,
613 mingw32.h, netbsd-elf.h, netbsd.h, netbsd64.h, rtemself.h,
614 sco5.h, sol2.h, sysv3.h, sysv4.h, sysv5.h, uwin.h, vxi386.h,
615 win32.h (CPP_SPEC): Remove cpp_cpu.
616 * i386.h (TARGET_CPU_CPP_BUILTINS): Use.
617 (CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Die!
619 2002-06-04 Janis Johnson <janis187@us.ibm.com>
621 * config/ia64/ia64.c (gen_thread_pointer): Fix variable name.
623 2002-06-04 Jeff Law <law@redhat.com.
624 David Edelsohn <edelsohn@gnu.org>
625 Michael Matz <matz@kde.org>
627 * sched-int.h (struct deps): New field libcall_block_tail_insn.
628 * sched_deps.c (init_deps): Initialize libcall_block_tail_insn.
629 * sched_deps.c (sched_analyze_insn): If libcall_block_tail_insn
630 is set, then mark the current insn as being part of a libcall
632 (sched_analyze): Set and clear libcall_block_tail_insn appropriately.
634 * haifa-sched.c (schedule_block): Do not count USE or CLOBBER
635 insns against the issue rate.
637 Tue Jun 4 19:29:42 CEST 2002 Jan Hubicka <jh@suse.cz>
639 * cfglayout.c (duplicate_insn_chain): Kill NOTE_INSN_RANGE notes.
640 * final.c (final_scan_insn): Likewise.
641 * ggc-common.c (ggc_mark_rtx_children_1): Likewise; use
642 NOTE_EXPECTED_VALUE instead of NOTE_RANGE.
643 * haifa-sched.c (unlink_other_notes): Likeewise.
644 (reemit_notes): Likewise.
645 * print-rtl.c (print_rtx): Likewise.
646 * sched-deps (sched-analyze): Likewise.
647 * rtl.c (note_insn_name): Likewise.
648 * rtl.h (NOTE_RANGE_INFO, NOTE_LIVE_INFO): Kill.
649 (enum insn_note): Kill NOTE_INSN_RANGE_*, NOTE_INSN_LIVE.
652 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
654 * varasm.c (mark_constants): Handle RTX format 'B'.
656 2002-06-04 Neil Booth <neil@daikokuya.demon.co.uk>
658 * cpphash.h (FIRST, LAST, CUR, RLIMIT): New.
659 (struct cpp_context): Add traditional fields.
660 * cppmacro.c (paste_all_tokens, push_ptoken_context,
661 push_token_context, cpp_get_token, _cpp_backup_tokens): Update.
662 * cpptrad.c (skip_comment, lex_identifier,
663 _cpp_read_logical_line_trad, scan_out_logical_line): Update.
665 2002-06-04 Kazu Hirata <kazu@cs.umass.edu>
667 * gbl-ctors.h: Fix formatting.
669 * gccspec.c: Likewise.
671 * gcov-io.h: Likewise.
673 * ggc-common.c: Likewise.
675 * ggc-page.c: Likewise.
676 * ggc-simple.c: Likewise.
677 * global.c: Likewise.
679 * gthr-dce.h: Likewise.
681 * gthr-posix.h: Likewise.
682 * gthr-rtems.h: Likewise.
683 * gthr-solaris.h: Likewise.
684 * gthr-win32.h: Likewise.
686 2002-06-03 Geoffrey Keating <geoffk@redhat.com>
688 Merge from pch-branch:
690 * gengtype.h (UNION_OR_STRUCT_P): New macro.
691 * gengtype.c (write_gc_structure_fields): Use it.
692 (write_gc_root): Use it here too.
694 * gengtype.c (write_gc_structure_fields): Assume that lengths
695 of typenames fit into an 'int'; don't pass a size_t to "%d" in
697 (write_gc_marker_routine_for_structure): Likewise.
698 (write_gc_types): Likewise.
699 (write_gc_root): Likewise.
701 * varray.h (VARRAY_CLEAR): New.
702 (varray_clear): Prototype.
703 * varray.c (varray_clear): New.
704 * cselib.c (reg_values_old): New.
705 (used_regs_old): New.
706 (cselib_init): Use cached varrays if available to avoid
707 generating large amounts of garbage.
708 (cselib_finish): Don't throw away old varrays.
710 * final.c (insn_addresses_): Move out of ifdef.
712 * varray.c (uses_ggc): Make more varray kinds GCable.
713 * varray.h (union varray_data_tag): Let gengtype see
714 fields 'generic' and 'te'.
715 * reg-stack.c: Include gt-reg-stack.h, ggc.h.
716 (stack_regs_mentioned_data): Move out of ifdef; mark with gengtype.
717 (reg_to_stack): Don't call VARRAY_FREE.
718 * insn-addr.h (INSN_ADDRESSES_FREE): Don't use VARRAY_FREE.
719 (insn_addresses_): Use gengtype to mark.
720 * gengtype.c (write_gc_structure_fields): Handle arrays of generic
721 pointers; handle generic pointers in unused union fields.
722 (get_output_file_with_visibility): Include cselib.h,
723 insn-addr.h in gtype-desc.c.
724 * function.c (prologue): Use gengtype to mark.
725 (epilogue): Likewise.
726 (sibcall_epilogue): Likewise.
727 * dependence.c: Include gt-dependence.h, ggc.h.
728 (struct def_use): Use gengtype to mark.
729 (struct loop): Likewise.
730 (struct induction): Likewise.
731 (struct dependence): Likewise.
732 (def_use_chain): Likewise.
733 (dep_chain): Likewise.
734 (loop_chain): Likewise.
735 (induction_chain): Likewise.
736 (init_dependence_analysis): Don't free anything, just clear pointers.
737 (build_def_use): Use GGC to allocate def_use.
738 (add_loop): Use GGC to allocate loop.
739 (find_induction_variable): Use GGC to allocate induction.
740 (check_node_dependence): Use GGC to allocate induction, dependence.
741 (dump_node_dependence): Don't free varrays.
742 (end_dependence_analysis): Likewise.
743 * cselib.h (struct cselib_val_struct): Use gengtype to mark.
744 (struct elt_loc_list): Likewise.
745 (struct elt_list): Likewise.
746 * cselib.c: Don't include obstack.h.
747 (hash_table): Use gengtype to mark.
748 (reg_values): Use gengtype to mark.
749 (used_regs): Use gengtype to mark.
750 (cselib_obstack): Delete.
751 (cselib_startobj): Delete.
752 (empty_vals): Mark as deletable.
753 (empty_elt_lists): Mark as deletable.
754 (empty_elt_loc_lists): Mark as deletable.
755 (new_elt_list): Use GGC to allocate struct elt_list.
756 (new_elt_loc_list): Use GGC to allocate struct elt_loc_list.
757 (clear_table): Don't delete obstack; don't unnecessarily clear
759 (new_cselib_val): Use GGC to allocate struct cselib_val.
760 (cselib_init): Don't set up obstacks. Use GGC to allocate
762 (cselib_finish): Just clear variables, don't free anything.
763 * Makefile.in (cselib.o): Remove dependency on $(OBSTACK_H).
764 (reg-stack.o): Add dependency on gt-reg-stack.h, $(GGC_H).
765 (dependence.o): Add dependency on gt-dependence.h, $(GGC_H).
766 (GTFILES): Add insn-addr.h, cselib.h, dependence.c, reg-stack.c.
767 (gt-reg-stack.h): New rule.
768 (gt-dependence.h): New rule.
769 (gtype-desc.o): Add cselib.h, insn-addr.h.
771 * varray.c: Use only necessary headers.
774 (varray_init): Take type, not size. Use GGC if appropriate.
775 (varray_grow): Update for change to struct varray_head_tag.
776 Use GGC if appropriate.
777 * varray.h (struct const_equiv_data): Use gengtype.
778 (enum varray_data_enum): New.
779 (union varray_data_tag): Use gengtype.
780 (struct varray_head_tag): Use gengtype. Replace size field with
781 enum varray_data_enum.
782 (varray_init): Update prototype.
783 (VARRAY_SCHED_INIT): Delete.
784 (VARRAY_*_INIT): Update for change to varray_init.
785 (VARRAY_SCHED): Delete.
786 (VARRAY_PUSH_SCHED): Delete.
787 (VARRAY_TOP_SCHED): Delete.
788 * tree.h: Update for change to length specifier.
789 * tree-inline.c (optimize_inline_calls): Don't use VARRAY_FREE.
790 (clone_body): Likewise.
791 * ssa.h (ssa_definition): Use gengtype to mark.
792 * ssa.c (convert_from_ssa): Don't use VARRAY_FREE.
793 * ssa-dce.c (ssa_eliminate_dead_code): Don't use VARRAY_FREE.
794 * rtl.h (struct rtvec_def): Update for change to length specifier.
795 * integrate.c (expand_inline_function): Don't use VARRAY_FREE.
796 (struct initial_value_struct): Update for change to length specifier.
797 * ggc.h (ggc_add_rtx_varray_root): Delete prototype.
798 (ggc_add_tree_varray_root): Delete prototype.
799 (ggc_mark_rtx_varray): Delete prototype.
800 (ggc_mark_tree_varray): Delete prototype.
801 * ggc-common.c (ggc_add_rtx_varray_root): Delete.
802 (ggc_add_tree_varray_root): Delete.
803 (ggc_mark_rtx_varray): Delete.
804 (ggc_mark_tree_varray): Delete.
805 (ggc_mark_rtx_varray_ptr): Delete.
806 (ggc_mark_tree_varray_ptr): Delete.
807 * gengtype.h (enum typekind): Remove TYPE_VARRAY.
808 (create_varray): Delete prototype.
809 * gengtype.c (varrays): Delete.
810 (create_varray): Delete.
811 (adjust_field_type): Detect array of string pointers.
812 (process_gc_options): Remove code to handle varray_type option.
813 (set_gc_used_type): Remove TYPE_VARRAY case.
814 (output_escaped_param): New.
815 (write_gc_structure_fields): Use output_escaped_param on all
816 parameters. Handle 'skip' with 'use_param' option. Handle
817 arrays of strings. Remove TYPE_VARRAY handling.
818 (write_gc_roots): Use boolean to detect 'length' option.
819 * gengtype-yacc.y (VARRAY_TYPE): Delete token.
820 (struct_fields): Call adjust_field_type on array fields.
821 (type): Remove VARRAY_TYPE case.
822 (type_option): Likewise.
823 * gengtype-lex.l: Don't consider varray_type a keyword.
824 * function.h: Update for change to length specifier.
825 (free_eh_status): Delete prototype.
826 * function.c (free_after_compilation): Don't call free_eh_status.
827 (reorder_blocks): Don't use VARRAY_FREE.
828 * except.c (struct eh_status): Update for change to length specifier.
829 remove varray_type specifier.
830 (free_eh_status): Delete.
831 * dwarf2out.c: Include gt-dwarf2out.h.
832 (used_rtx_varray): Use gengtype to mark, move
834 (incomplete_types): Likewise.
835 (decl_scope_table): Likewise.
836 (dwarf2out_init): Don't call ggc_add_tree_varray_root.
837 * cfglayout.c (scope_to_insns_finalize): Don't use VARRAY_FREE.
838 * c-tree.h (struct lang_type): Update for change to length specifier.
839 * c-parse.in (yylexstring): Don't use VARRAY_FREE.
840 * c-objc-common.c: Include gt-c-objc-common.h.
841 (deferred_fns): Mark for gengtype.
842 (c_objc_common_init): Don't call ggc_add_tree_varray_root.
843 (expand_deferred_fns): Just set deferred_fns to 0 to free it.
844 * Makefile.in (c-objc-common.o): Add gt-c-objc-common.h.
845 (gtype-desc.o): Update dependencies.
846 (dwarf2out.o): Add gt-dwarf2out.h.
847 (varray.o): Update dependencies.
848 (GTFILES): Add varray.h, ssa.h, dwarf2out.c, c-objc-common.c.
849 (gt-c-objc-common.h): New rule.
850 (gt-dwarf2out.h): New rule.
851 * objc/objc-act.c (build_objc_string_object): Don't use VARRAY_FREE.
853 * doc/gty.texi (GTY Options): Correct spelling.
854 (GGC Roots): Likewise.
855 * Makefile.in (TEXI_CPP_FILES): New.
856 (TEXI_GCC_FILES): New.
857 (TEXI_GCCINT_FILES): New.
858 (TEXI_CPPINT_FILES): New.
859 ($(docdir)/cpp.info): Use new macros.
860 ($(docdir)/gcc.info): Likewise.
861 ($(docdir)/gccint.info): Likewise.
862 ($(docdir)/cppinternals.info): Likewise.
865 (gccint.dvi): Likewise.
866 (cppinternals.dvi): Likewise.
868 * Makefile.in ($(docdir)/gccint.info): Depend on gty.texi.
869 * doc/gccint.texi (Top): Include gty.texi.
870 * doc/gty.texi: New file.
872 * bitmap.c: Include ggc.h, gt-bitmap.h.
873 (bitmap_ggc_free): New.
874 (bitmap_elem_to_freelist): New.
875 (bitmap_element_free): Use bitmap_elem_to_freelist.
876 (bitmap_element_allocate): Allow use of GGC.
877 (bitmap_clear): Use bitmap_elem_to_freelist.
878 (bitmap_copy): Update for change to bitmap_element_allocate.
879 (bitmap_set_bit): Likewise.
880 (bitmap_operation): Update for changes elsewhere.
881 (bitmap_initialize): Allow to create bitmaps that will use GGC.
882 * bitmap.h (struct bitmap_element_def): Use gengtype.
883 (struct bitmap_head_def): Likewise. Also add 'using_obstack' field.
884 (bitmap_initialize): Add extra parameter.
885 (BITMAP_OBSTACK_ALLOC): Update for change to bitmap_initialize.
886 (BITMAP_ALLOCA): Delete.
887 (BITMAP_XMALLOC): Update for change to bitmap_initialize.
888 (BITMAP_GGC_ALLOC): New.
889 * Makefile.in (gtype-desc.o): Add bitmap.h.
890 (bitmap.o): Add gt-bitmap.h, $(GGC_H).
891 (GTFILES): Add bitmap.c.
892 (gt-bitmap.h): New rule.
893 ($(HOST_PREFIX_1)bitmap.o): Add gt-bitmap.h.
894 * basic-block.h: Update for changes to bitmap_initialize.
895 * except.c (exception_handler_label_map): Move into...
896 (struct eh_status): Here.
897 (struct eh_region): Make 'aka' GCable.
898 (free_eh_status): Don't need to specially handle
899 exception_handler_label_map.
900 (add_ehl_entry): Update for changes to exception_handler_label_map.
901 (find_exception_handler_labels): Likewise.
902 (remove_exception_handler_label): Likewise.
903 (maybe_remove_eh_handler): Likewise.
904 (for_each_eh_label): Likewise.
905 (remove_eh_handler): Allocate 'aka' using GGC.
906 * gengtype.c (get_output_file_with_visibility): Add bitmap.h
909 * gengtype.c (write_gc_marker_routine_for_structure): Name
910 the routines 'gt_ggc_mx_*' instead of 'gt_ggc_m_*'.
911 (write_gc_types): Arrange for the tests with NULL to be inlined.
912 (write_gc_roots): Update uses of procedure pointers.
913 * ggc-common.c (gt_ggc_mx_rtx_def): Rename from gt_ggc_m_rtx_def.
915 * Makefile.in (explow.o): Add dependency on gt-explow.h.
916 (sdbout.o): Add dependency on gt-sdbout.h.
918 * emit-rtl.c (const_int_htab): Use gengtype to clear unused entries.
919 (mem_attrs_htab): Likewise.
920 (init_emit_once): Don't call ggc_add_deletable_htab.
921 * fold-const.c (size_htab): Use gengtype to clear unused entries.
922 (size_int_type_wide): Don't call ggc_add_deletable_htab.
923 * gengtype.c (finish_root_table): Add LASTNAME and TNAME
924 parameters, use them, change callers.
925 (write_gc_root): Add IF_MARKED parameter, use it, change callers.
926 (write_gc_roots): Handle 'if_marked' option.
927 (main): Don't need to call set_gc_used_type any more.
928 * ggc.h (ggc_htab_marked_p): Delete.
929 (ggc_htab_mark): Delete.
930 (struct ggc_cache_tab): New.
931 (gt_ggc_cache_rtab): New declaration.
932 * ggc-common.c (struct d_htab_root): Delete.
933 (d_htab_roots): Delete.
934 (ggc_add_deletable_htab): Delete.
935 (ggc_htab_delete): Handle new htab-deleting mechanism.
936 (ggc_mark_roots): Use new htab-deleting mechanism.
937 * tree.c (type_hash_table): Use gengtype to clear unused entries.
939 (init_obstacks): Don't call ggc_add_deletable_htab.
941 * objc/objc-act.h (struct hashed_attribute): Use gengtype.
942 (struct hashed_entry): Likewise.
943 (nst_method_hash_list): Likewise.
944 (cls_method_hash_list): Likewise.
945 (HASH_ALLOC_LIST_SIZE): Delete.
946 (ATTR_ALLOC_LIST_SIZE): Delete.
947 * objc/objc-act.c (hash_init): Use ggc to allocate
948 nst_method_hash_list, cls_method_hash_list.
949 (hash_enter): Use ggc to allocate; allocate one entry at a time.
950 (hash_add_attr): Likewise.
951 (ggc_mark_hash_table): Delete.
952 (objc_act_parse_init): Delete.
953 (objc_init): Delete reference to objc_act_parse_init.
954 * tlink.c: Replace hash.h with hashtab.h. Explicitly include
955 obstack.h. Replace references to 'struct hash_table' with htab_t.
956 (struct symbol_hash_entry): Replace hash header with key field.
957 (struct file_hash_entry): Replace hash header with key field.
958 (struct demangled_hash_entry): Replace hash header with key field.
959 (hash_string_eq): New.
960 (hash_string_hash): New.
961 (symbol_hash_newfunc): Delete.
962 (symbol_hash_lookup): Modify to use htab_t.
963 (file_hash_newfunc): Delete.
964 (file_hash_lookup): Modify to use htab_t.
965 (demangled_hash_newfunc): Delete.
966 (demangled_hash_lookup): Modify to use htab_t.
967 (tlink_init): Modify to use htab_t.
970 * ggc.h: Delete forward structure declarations.
971 Delete prototypes for deleted functions.
972 * ggc-common.c: Don't include hash.h.
973 (ggc_add_tree_hash_table_root): Delete.
974 (ggc_mark_tree_hash_table_entry): Delete.
975 (ggc_mark_tree_hash_table): Delete.
976 (ggc_mark_tree_hash_table_ptr): Delete.
977 * gengtype.c (write_gc_structure_fields): Allow param_is option.
978 (write_gc_marker_routine_for_structure): Use visibility of
979 the parameter if there is one.
980 * function.c: Replace hash.h with hashtab.h. Replace references
981 to 'struct hash_table *' with htab_t.
982 (struct insns_for_mem_entry): Include a plain key.
983 (fixup_var_refs_insns_with_hash): Update to use htab_t.
984 (insns_for_mem_newfunc): Delete.
985 (insns_for_mem_hash): Update to use htab_t.
986 (insns_for_mem_comp): Likewise.
987 (insns_for_mem_walk): Likewise.
988 * c-lang.c: Include ggc.h.
989 * Makefile.in (OBJS): Remove hash.o.
990 (c-lang.o): Add GGC_H.
991 (COLLECT2_OBJS): Remove hash.o.
992 (tlink.o): Remove hash.h, add HASHTAB_H and OBSTACK_H.
993 (ggc-common.o): Remove hash.h.
994 (function.o): Remove hash.h, add HASHTAB_H.
995 (genautomata.o): Remove hash.h, add HASHTAB_H.
997 * varasm.c (mark_const_str_htab_1): Delete.
998 (mark_const_str_htab): Delete.
999 (const_str_htab_del): Delete.
1000 (const_str_htab): Use gengtype to mark.
1001 (init_varasm_once): Use gengtype to mark hashtables. Use GC to
1003 * tree.c (mark_tree_hashtable_entry): Delete.
1004 (mark_tree_hashtable): Delete.
1005 * tree.h (mark_tree_hashtable): Delete prototype.
1006 * ggc.h (ggc_test_and_set_mark): Treat (void *)1 like NULL.
1007 (ggc_mark): Likewise.
1009 (htab_create_ggc): New.
1010 * ggc-common.c (ggc_calloc): New.
1011 * gengtype.h (enum typekind): Add TYPE_PARAM_STRUCT.
1012 (struct type): Add param_struct structure.
1013 * gengtype.c (param_structs): New.
1014 (adjust_field_type): Handle param_is option.
1015 (set_gc_used_type): Handle TYPE_PARAM_STRUCT.
1016 (get_output_file_with_visibility): Include hashtab.h in gtype-desc.c.
1017 (write_gc_structure_fields): Add new PARAM parameter. Update
1018 callers. Handle use_param option. Handle TYPE_PARAM_STRUCT.
1019 (write_gc_marker_routine_for_structure): Add new PARAM parameter.
1020 Use it to generate function name. Update callers.
1021 (write_gc_types): Add new PARAM_STRUCTS parameter. Update callers.
1023 (write_gc_roots): Handle TYPE_PARAM_STRUCT. Allow param_is
1025 (main): Define PTR as pointer-to-scalar. Don't specially
1026 mark deferred_string or ehl_map_entry.
1027 * gengtype-yacc.y (PARAM_IS): Add new token.
1028 (externstatic): Use adjust_field_type.
1029 (type_option): Add PARAM_IS.
1030 * gengtype-lex.l: Add rule for typedef of function pointers.
1031 Add rule for PARAM_IS.
1032 (IWORD): Add size_t.
1033 * except.c (exception_handler_label_map): Use gengtype to mark.
1034 (type_to_runtime_map): Likewise.
1035 (mark_ehl_map_entry): Delete.
1036 (mark_ehl_map): Delete.
1037 (init_eh): Use gengtype for roots; use GC to allocate hash tables.
1038 (t2r_mark_1): Delete.
1040 * Makefile.in (gtype-desc.o): Correct dependencies.
1041 (GTFILES): Add hashtab.h.
1042 (genautomata.o): Actually uses hashtab.h.
1044 * Makefile.in (stringpool.o): Add $(GGC_H).
1045 (dwarf2asm.o): Likewise.
1046 (GTFILES): Add hashtable.h.
1047 * c-common.h (struct c_common_identifier): Use gengtype.
1048 * c-decl.h (c_mark_tree): Delete.
1049 * c-lang.c (LANG_HOOKS_MARK_TREE): Delete.
1050 * c-tree.h (struct lang_identifier): Use gengtype.
1051 (union lang_tree_node): New.
1052 (c_mark_tree): Delete prototype.
1053 * dwarf2out.c [!DWARF2_DEBUGGING_INFO]: Define dummy
1055 * gengtype-lex.l (IWORD): Allow 'bool'.
1057 * gengtype-yacc.y (ALIAS): New token.
1058 (type_option): New rule.
1059 (option): Use type_option.
1060 * gengtype.c (process_gc_options): New.
1061 (set_gc_used_type): Use it.
1062 (write_gc_structure_fields): Add 'bitmap' parameter, change callers.
1063 Add new variable 't' to hold the type of the field being processed.
1064 Add more error checking. Use UNION_P when looking at 'desc' option.
1065 Handle language-specific structures containing other
1066 language-specific structures.
1067 (write_gc_types): Handle 'ptr_alias' option.
1068 (main): Don't need to specially output lang_type, lang_decl, lang_id2.
1069 * ggc-common.c (ggc_pending_trees): Delete.
1070 (ggc_mark_roots): Don't manipulate ggc_pending_trees.
1071 (ggc_mark_trees): Delete.
1072 (gt_ggc_m_tree_node): Delete.
1073 * ggc.h (ggc_pending_trees): Delete.
1074 (ggc_mark_tree): Make alias of gt_ggc_m_tree_node.
1075 * hashtable.h (ht_identifier): Use gengtype.
1076 * langhooks-def.h (LANG_HOOKS_MARK_TREE): Delete.
1077 * langhooks.h (struct lang_hooks): Delete mark_tree.
1078 * sdbout.c [! SDB_DEBUGGING_INFO]: Define dummy sdb_debug_hooks
1080 * system.h: Poison LANG_HOOKS_MARK_TREE.
1081 * tree.c (tree_node_structure): New.
1082 * tree.h (struct tree_common): Use gengtype.
1083 (struct tree_int_cst): Likewise.
1084 (struct tree_real_cst): Likewise.
1085 (struct tree_string): Likewise.
1086 (struct tree_complex): Likewise.
1087 (struct tree_vector): Likewise.
1088 (struct tree_identifier): Likewise.
1089 (struct tree_list): Likewise.
1090 (struct tree_vec): Likewise.
1091 (struct tree_exp): Likewise.
1092 (struct tree_block): Likewise.
1093 (struct tree_type): Likewise.
1094 (struct tree_decl): Likewise.
1095 (enum tree_structure_enum): New.
1096 (union tree_node): Use gengtype, with an alias.
1097 (tree_node_structure): Prototype.
1098 * objc/objc-lang.c (LANG_HOOKS_MARK_TREE): Delete.
1100 Merge to tag pch-merge-20020430. The LANG_HOOKS_FUNCTION_MARK
1101 macro was deleted. The LANG_HOOKS_FUNCTION_FREE macro was renamed
1102 to LANG_HOOKS_FUNCTION_FINAL.
1103 * Makefile.in (GTFILES): Add bitmap.h.
1104 * except.c (struct eh_region): Mark field 'aka' to be skipped.
1106 * config/alpha/alpha.c [TARGET_ABI_UNICOSMK]
1107 (alpha_init_machine_status): Give proper type.
1108 * Makefile.in (c-lang.o): Depend on gtype-c.h.
1109 (optabs.o): Depend on gt-optabs.h.
1110 (GTFILES): Add optabs.o.
1111 (gt-optabs.h): Add rule.
1112 * optabs.c: Include gt-optabs.h.
1114 * gengtype.c (set_gc_used_type): Correct some errors in last change.
1115 (write_gc_structure_fields): If a field which should be NULL is
1117 * c-pragma.c: Move struct align_stack and variable alignment_stack
1120 * config/xtensa/t-xtensa: Add dependencies for gt-xtensa.h.
1121 * config/xtensa/xtensa.c: Include gt-cris.h.
1122 (struct machine_function): Use gengtype to mark.
1123 * config/mmix/mmix.h (struct machine_function): Use gengtype
1125 * config/cris/t-cris: Add dependencies for gt-cris.h.
1126 * config/cris/cris.c: Include gt-cris.h.
1127 (struct machine_function): Use gengtype to mark.
1128 * config/rs6000/rs6000.h (struct machine_function): Use gengtype
1130 * doc/tm.texi (Per-Function Data): Delete references to
1131 mark_machine_status.
1132 * config/ia64/ia64.c (ia64_override_options): Don't set
1133 mark_machine_status.
1134 * config/i386/i386.c (override_options): Likewise.
1135 * config/d30v/d30v.c (d30v_init_expanders): Likewise.
1136 * config/arm/arm.c (arm_init_expanders): Likewise.
1137 * config/alpha/alpha.c (override_options): Likewise.
1138 * gengtype.h (enum gc_used_enum): Add GC_MAYBE_POINTED_TO.
1139 * gengtype.c (set_gc_used_type): Handle 'maybe_null' option.
1140 (write_gc_structure_fields): Don't handle 'really' option.
1141 Handle 'maybe_null' option.
1142 (write_gc_types): Handle 'maybe_null' option.
1143 * function.h (struct function): Don't use "really".
1144 (mark_machine_status): Delete declaration.
1145 (mark_lang_status): Delete declaration.
1146 (gt_ggc_mr_machine_function): Delete prototype.
1147 (gt_ggc_mr_language_function): Delete prototype.
1148 * function.c (mark_machine_status): Delete.
1149 (mark_lang_status): Delete.
1150 (gt_ggc_mr_machine_function): Delete.
1151 (gt_ggc_mr_language_function): Delete.
1152 * c-tree.h (mark_c_function_context): Delete prototype.
1153 * c-objc-common.c (c_objc_common_init): Don't set mark_lang_status.
1154 * c-decl.c (struct language_function): Rename from struct
1155 c_language_function. Update uses. Use gengtype to mark.
1156 (mark_c_function_context): Delete.
1157 * c-common.h (struct c_language_function): Rename from struct
1159 (mark_stmt_tree): Delete prototype.
1160 (c_mark_lang_decl): Delete prototype.
1161 (mark_c_language_function): Delete prototype.
1162 * c-common.c (mark_stmt_tree): Delete.
1163 (c_mark_lang_decl): Delete.
1164 (mark_c_language_function): Delete.
1166 * gengtype.h (enum typekind): Add TYPE_LANG_STRUCT.
1167 (lang_bitmap): New typedef. Use where appropriate.
1168 (struct type): Add gc_used field, lang_struct field.
1169 (UNION_P): New macro.
1170 (new_structure): New prototype.
1171 (find_structure): Remove 'pos' parameter. Change all callers.
1172 * gengtype-lex.l: Update for changes to find_structure.
1173 * gengtype-yacc.y (typedef_struct): Use new_structure.
1174 (yacc_ids): Suppress warning.
1175 (type): Use new_structure.
1176 * gengtype.c (string_type): Update for changes to struct type.
1177 (find_structure): Just find a structure, don't worry about
1179 (new_structure): New.
1180 (note_yacc_type): Use new_structure.
1181 (set_gc_used_type): New.
1183 (write_gc_structure_fields): Allow for pointers to TYPE_LANG_STRUCT.
1184 (write_gc_types): Handle TYPE_LANG_STRUCT.
1185 (write_gc_marker_routine_for_structure): New.
1186 (main): Call set_gc_used. Add some calls to set_gc_used_type
1187 for places where GCC doesn't use gengtype properly yet.
1188 * ggc.h (gt_ggc_m_rtx_def): Don't prototype.
1189 (gt_ggc_m_tree_node): Likewise.
1191 * varasm.c (copy_constant): Call expand_constant if we hit
1192 something we can't recognise.
1194 * ggc-common.c (ggc_mark_rtvec_children): Delete.
1195 (ggc_mark_rtx_children): Use generic name for ggc_mark_rtvec.
1196 (lang_mark_false_label_stack): Delete.
1197 * rtl.h (struct rtvec_def): Use gengtype to mark.
1198 * ggc.h (ggc_mark_rtvec): Delete.
1199 (gt_ggc_m_rtvec_def): Delete.
1200 (ggc_mark_nonnull_tree): Delete.
1201 (ggc_mark_rtvec_children): Delete prototype.
1202 (lang_mark_false_label_stack): Delete declaration.
1204 * gengtype.h (note_yacc_type): Add prototype.
1205 * gengtype.c (note_yacc_type): New function.
1206 * gengtype-lex.l: Add lexer support for yacc files.
1207 * gengtype-yacc.y (start): Extract union from yacc files.
1208 (yacc_union): New rule.
1209 (yacc_typematch): New rule.
1210 (yacc_ids): New rule.
1211 (enum_items): Tweak for efficiency.
1212 (optionseq): Likewise.
1214 * c-common.h (struct language_function): Use gengtype.
1215 (struct c_lang_decl): Likewise.
1216 * c-tree.h (struct lang_decl): Likewise.
1217 (struct lang_type): Likewise.
1218 * c-decl.c (lang_mark_tree): Use generated marker routines to mark
1219 tree language substructures.
1221 * stringpool.c (mark_ident): Replace ggc_mark_nonnull_tree with
1223 * dwarf2asm.c (mark_indirect_pool_entry): Likewise.
1225 * varasm.c (struct rtx_const): Remove 'skip' tags for scalar arrays.
1227 * stmt.c (struct nesting): Add discriminator. Use gengtype to
1228 mark. Remove 'data.block.cleanup_ptr' field.
1229 (struct stmt_status): Use usual technique to mark struct nesting.
1230 (gt_ggc_mr_nesting_cond): Delete.
1231 (gt_ggc_mr_nesting_loop): Delete.
1232 (gt_ggc_mr_nesting_block): Delete.
1233 (gt_ggc_mr_nesting_case_stmt): Delete.
1234 (expand_start_cond): Set discriminator.
1235 (expand_start_loop): Likewise.
1236 (expand_start_null_loop): Likewise.
1237 (expand_start_bindings_and_block): Set discriminator. Don't set
1239 (expand_decl_cleanup): Replace 'cleanup_ptr' with
1240 &thisblock->data.block.cleanups.
1241 (expand_start_case): Set discriminator.
1242 (expand_start_case_dummy): Set discriminator.
1244 * ggc-callbacks.c: Remove.
1246 * gengtype.h (struct type): Add 'u.s.bitmap' field.
1247 (find_structure): Add 'pos' parameter.
1248 * gengtype-lex.l: Update callers to find_structure.
1249 * gengtype-yacc.y: Likewise.
1250 * gengtype.c (find_structure): Allow for structures to be defined
1251 in multiple language backends.
1252 (get_output_file_with_visibility): Include debug.h in gtype-desc.c.
1253 (counter): Rename to gc_counter.
1254 (write_gc_structure_fields): Fail when writing out fields for
1255 an incomplete structure. Ignore arrays of scalars. Handle
1257 (write_gc_types): Reset counter for each procedure written.
1259 * stmt.c (add_case_node): Use GGC to allocate struct case_node.
1260 (free_case_nodes): Delete.
1261 (expand_end_case_type): Delete call to free_case_nodes.
1263 * Makefile.in (cselib.o): Include gt-<filename>.h.
1265 (profile.o): Likewise.
1266 (alias.o): Likewise.
1267 (GTFILES): Add alias.c, cselib.c, gcse.c, profile.c, and
1268 alphabetize backend files.
1269 (gt-alias.h, gt-cselib.h, gt-gcse.h, gt-profile.h): New rules.
1270 * alias.c: Use gengtype for roots.
1271 * c-common.h (struct stmt_tree_s): Use gengtype.
1272 * c-decl.c: Use gengtype for roots.
1273 * cselib.c: Use gengtype for roots.
1274 * expr.c: Use gengtype for roots.
1275 * fold-const.c: Use gengtype for roots.
1276 * gcse.c: Use gengtype for roots.
1277 * gengtype-lex.l: Handle typedefs of function types.
1278 Allow for empty array bounds.
1279 Allow processing to stop on initialisers.
1280 * gengtype-yacc.y (externstatic): Stop processing on initialisers.
1281 (semiequal): New rule.
1282 * gengtype.c (create_file): Tidy output files.
1283 (get_output_file_with_visibility): Fix paren warning. Fix bug
1284 involving multiple input files mapping to one output file.
1285 (write_gc_structure_fields): Skip arrays of scalars.
1286 (write_gc_types): Tidy output files.
1287 (write_gc_root): New function.
1288 (write_gc_roots): Fix bugs, add support for roots that are
1290 * ggc-common.c (ggc_mark_rtx_ptr): Delete.
1291 (ggc_mark_tree_ptr): Delete.
1292 (ggc_add_rtx_root): Delete.
1293 (ggc_add_tree_root): Delete.
1294 (ggc_del_root): Delete.
1295 * integrate.c (get_func_hard_reg_initial_val): Use ggc_alloc to
1296 allocate struct initial_value_struct.
1297 * profile.c: Use gengtype for roots.
1298 * sdbout.c: Use gengtype for roots.
1299 * varasm.c (mark_weak_decls): Delete unused prototype.
1300 (mark_const_hash_entry): Delete unused function.
1301 * config/darwin-protos.h: Use gengtype for roots.
1302 (machopic_add_gc_roots): Delete.
1303 * config/arm/arm.c: Use gengtype for roots.
1304 * config/arm/arm.h: Use gengtype for roots.
1305 * config/c4x/c4x-protos.h: Use gengtype for roots.
1306 * config/c4x/c4x.c (c4x_add_gc_roots): Delete.
1307 * config/d30v/d30v-protos.h: Use gengtype for roots.
1308 * config/d30v/d30v.c (d30v_add_gc_roots): Delete.
1309 * config/dsp16xx/dsp16xx.c (override_options): Use gengtype for roots.
1310 * config/dsp16xx/dsp16xx.h: Use gengtype for roots.
1311 * config/ia64/ia64-protos.h: Use gengtype for roots.
1312 * config/ia64/ia64.c (ia64_add_gc_roots): Delete.
1313 * config/m68hc11/m68hc11-protos.h: Use gengtype for roots.
1314 * config/m68hc11/m68hc11.c (z_reg): Make global.
1315 (z_reg_qi): Make global.
1316 (m68hc11_add_gc_roots): Delete.
1317 * config/mcore/mcore-protos.h: Use gengtype for roots.
1318 * config/mcore/mcore.c (mcore_add_gc_roots): Delete.
1319 * config/mips/mips.c (mips_add_gc_roots): Delete.
1320 * config/mips/mips.h: Use gengtype for roots.
1321 * config/mmix/mmix.c (override_options): Use gengtype for roots.
1322 * config/mmix/mmix.h: Use gengtype for roots.
1323 * config/mn10200/mn10200.c (asm_file_start): Use gengtype for roots.
1324 * config/mn10200/mn10200.h: Use gengtype for roots.
1325 * config/pa/pa.c: Use gengtype for roots, marking.
1326 (struct deferred_plabel): Use GGC, gengtype.
1327 (pa_add_gc_roots): Delete.
1328 (mark_deferred_plabels): Delete.
1329 * config/pj/pj-protos.h: Use gengtype for roots.
1330 * config/pj/pj.h (OVERRIDE_OPTIONS): Don't define.
1331 * config/rs6000/rs6000.c: Use gengtype for roots. Don't call
1332 machopic_add_gc_roots.
1333 * config/rs6000/rs6000.h: Use gengtype for roots.
1334 * config/rs6000/t-darwin (darwin.o): Add dependency on gt-darwin.h.
1335 (gt-darwin.h): Add rule.
1336 * config/sh/sh.c: Use gengtype for roots.
1337 * config/sh/t-sh ($(out_object_file)): Add dependency on gt-sh.h.
1338 (gt-sh.h): Add rule.
1339 * config/sparc/sparc.c: Use gengtype for roots.
1340 (sparc_add_gc_roots): Delete.
1341 (struct ultrasparc_pipeline_state): Use GGC, gengtype.
1342 (mark_ultrasparc_pipeline_state): Delete.
1343 * config/sparc/sparc.h: Use gengtype for roots.
1345 * Makefile.in (c-parse.o): Update dependencies.
1346 (c-common.o): Likewise.
1347 (GTFILES): Add c-common.h, c-tree.h, c-common.c, c-parse.in.
1348 Add dependencies for the files they generate.
1349 * c-common.c: Replace ggc_add_* uses with GTY annotations.
1350 * c-common.h: Likewise.
1351 * c-decl.c: Likewise.
1352 (gt_ggc_mp_binding_level): Delete.
1353 * c-lang.c: Include gtype-c.h.
1354 * c-parse.in: Replace ggc_add_* uses with GTY annotations. Include
1356 * c-pragma.h: Replace ggc_add_* uses with GTY annotations.
1357 (gt_ggc_mp_align_stack): Delete.
1358 * c-tree.h: Replace ggc_add_* uses with GTY annotations.
1359 * function.c: Replace ggc_add_* uses with GTY annotations.
1360 (gt_ggc_mp_function): Delete.
1361 * function.h: Replace ggc_add_* uses with GTY annotations.
1362 * gengtype.c (lang_names): New.
1363 (NUM_BASE_FILES): New.
1364 (open_base_files): Create language base files.
1366 (get_file_basename): New.
1367 (get_base_file_bitmap): New.
1368 (get_output_file_with_visibility): Rename from get_output_file.
1369 Add more mappings for various C/Objc filenames.
1370 (finish_root_table): New.
1371 (write_gc_roots): Handle dependencies and scoping properly.
1372 * gengtype.h: Add prototypes for new functions.
1373 * ggc-common.c (struct deletable_root): Delete.
1374 (deletables): Delete.
1375 (ggc_add_deletable_root): Delete.
1376 (ggc_mark_roots): No need to deal with deleted functionality.
1377 * ggc.h (ggc_add_deletable_root): Delete prototype.
1378 * objc/Make-lang.in (objc-act.o): Add gtype-objc.h dependency.
1379 (gtype-objc.h): Add rule to create.
1380 * objc/config-lang.in (gtfiles): New.
1381 * objc/objc-act.c: Allocate imp_list using GGC. Replace uses of
1382 ggc_add_* with GTY markers. Include gtype-objc.h.
1383 (ggc_mark_imp_list): Delete.
1384 * objc/objc-act.h: Replace uses of ggc_add_* with GTY markers.
1385 * objc/objc-lang.c: Random Whitespace Change.
1387 * except.h (exception_handler_labels): Delete.
1388 (get_exception_handler_labels): New.
1389 * except.c (exception_handler_labels): Delete.
1390 (struct eh_status): Add exception_handler_labels field.
1391 (doing_eh): Don't add exception_handler_labels as root.
1392 (free_eh_status): Don't need to free exception_handler_labels.
1393 (get_exception_handler_labels): New.
1394 (find_exception_handler_labels): Update for move of
1395 exception_handler_labels.
1396 (remove_exception_handler_label): Likewise.
1397 * cfgrtl.c (can_delete_label_p): Use get_exception_handler_labels.
1398 * jump.c (rebuild_jump_labels): Likewise.
1399 * loop.c (find_and_verify_loops): Likewise.
1400 * sched-rgn.c (is_cfg_nonregular): Likewise.
1402 * gengtype.c (write_gc_structure_fields): Handle variable-length
1405 * varasm.c (struct weak_syms): Use GGC, gengtype.
1406 (mark_weak_decls): Delete.
1407 (weak_decls): Likewise.
1408 (add_weak): Likewise.
1409 (remove_from_pending_weak_list): Likewise.
1410 (init_varasm_once): Likewise.
1412 * Makefile.in (gtype-desc.o): Add libfuncs.h dependency.
1413 (GTFILES): Add tree.h, libfuncs.h, emit-rtl.c, explow.c,
1414 stor-layout.c, regclass.c, and lists.c.
1415 Add dependencies of gt-emit-rtl.h gt-explow.h gt-stor-layout.h
1416 gt-regclass.h and gt-lists.h on s-gtype.
1417 * emit-rtl.c: Use gengtype for roots. Include gt-emit-rtl.h.
1418 * except.c: Use gengtype for roots.
1419 * explow.c: Use gengtype for roots. Include gt-explow.h.
1420 * expr.h (init_stor_layout_once): Delete prototype.
1421 * function.c: Use gengtype for roots.
1422 * gengtype-lex.l: Add ENT_EXTERNSTATIC lexing.
1423 * gengtype-yacc.y (start): Can also be an externstatic.
1424 (externstatic): New production.
1425 (struct_fields): Correct array bounds inversion for 2-d arrays.
1426 * gengtype.c (variables): New variable.
1427 (note_variable): New function.
1428 (get_output_file): Include libfuncs.h into gtype-desc.c.
1429 (get_output_file_name): New function.
1430 (write_gc_structure_fields): Suppress warnings.
1431 (write_gc_types): Make static.
1432 (put_mangled_filename): New function.
1433 (write_gc_roots): New function.
1434 (main): Call write_gc_roots.
1435 * gengtype.h (note_variable): Prototype.
1436 (get_output_file_name): Prototype.
1437 (write_gc_types): Delete prototype.
1438 * ggc.h: Clean up unnecessary structure predefinitions.
1439 (struct ggc_root_tab): Define.
1440 (gt_ggc_m_rtx_def): Make function, not macro.
1441 (gt_ggc_m_tree_node): Likewise.
1442 * libfuncs.h: Use gengtype for roots.
1443 * lists.c: Use gengtype for roots. Include gt-lists.h.
1444 (init_EXPR_INSN_LIST_cache): Delete.
1445 * optabs.c: Use gengtype for roots.
1446 (gt_ggc_mp_optab): Delete.
1447 * optabs.h: Use gengtype for roots.
1448 * regclass.c: Use gengtype for roots. Include gt-regclass.h.
1449 * rtl.h: Use gengtype for roots.
1450 (init_EXPR_INSN_LIST_cache): Delete prototype.
1451 * stor-layout.c: Use gengtype for roots.
1452 Include gt-stor-layout.h.
1453 (init_stor_layout_once): Delete.
1454 * toplev.c: Use gengtype for roots. Delete calls to deleted
1456 * tree.c: Use gengtype for roots.
1457 * tree.h: Use gengtype for roots.
1458 * varasm.c: Use gengtype for roots.
1460 * Makefile.in (GTFILES): Add @all_gtfiles@.
1461 * configure: Regenerate.
1462 * configure.in: Construct all_gtfiles from the gtfiles definitions
1464 * gengtype-yacc.y (type): Warn about duplicate structure names.
1465 * gengtype.c (get_output_file): Handle .c files in language
1468 * Makefile.in (GTFILES): Run gengtype on all the config files
1469 and on the target .c file.
1470 * except.c (mark_eh_region): Delete.
1471 (init_eh_for_function): Use GGC on struct eh_status.
1472 (mark_eh_status): Delete.
1473 (free_eh_status): Use GGC.
1474 (expand_eh_region_start): Use GGC to
1475 (collect_eh_region_array): Allocate last_region_number using GGC.
1476 (duplicate_eh_region_1): Use GGC to allocate struct eh_region.
1477 (remove_eh_handler): Let GGC free struct eh_region.
1478 (add_call_site): Use GGC to reallocate call_site_record array.
1479 * function.c (init_machine_status): Update calling sequence.
1480 (mark_machine_status): Likewise.
1481 (mark_lang_status): Likewise.
1482 (prepare_function_start): Update init_machine_status call.
1483 (mark_function_status): Delete.
1484 (maybe_mark_struct_function): Delete.
1485 (ggc_mark_struct_function): Delete.
1486 (gt_ggc_mp_function): New.
1487 (gt_ggc_mr_machine_function): New.
1488 (gt_ggc_mr_language_function): New.
1489 (init_function_once): Use canonical names.
1490 * function.h (struct function): Use gengtype.
1491 (init_machine_status): Return the structure.
1492 (mark_machine_status): Take a 'void *'.
1493 (mark_lang_status): Likewise.
1494 * ggc-common.c (ggc_mark_trees): Use canonical name for
1495 ggc_mark_struct_function.
1496 * tree.h (ggc_mark_struct_function): Delete prototype.
1497 * config/alpha/alpha.c (alpha_mark_machine_status): Delete.
1498 (alpha_init_machine_status): Likewise.
1499 (override_options): Use canonical name for alpha_mark_machine_status.
1500 * config/alpha/unicosmk.h (struct machine_function): Use gengtype.
1501 * config/arm/arm.h (struct machine_function): Use gengtype.
1502 * config/arm/arm.c (arm_mark_machine_status): Delete.
1503 (arm_init_machine_status): Update calling sequence.
1504 (arm_init_expanders): Use canonical name for arm_mark_machine_status.
1505 * config/cris/cris.c (cris_init_machine_status): Update
1507 * config/d30v/d30v.h (struct machine_function): Use gengtype.
1508 * config/d30v/d30v.c (d30v_init_machine_status): Update
1510 (d30v_mark_machine_status): Delete.
1511 * config/i386/i386.c: Include gt-i386.h.
1512 (struct machine_function): Use gengtype.
1513 (ix86_init_machine_status): Update calling sequence.
1514 (ix86_mark_machine_status): Delete.
1515 (override_options): Use canonical namke for ix86_mark_machine_status.
1516 * config/ia64/ia64.h (struct machine_function): Use gengtype.
1517 * config/ia64/ia64.c (ia64_init_machine_status): Update calling
1519 (ia64_mark_machine_status): Delete.
1520 (ia64_override_options): Use canonical name for
1521 ia64_mark_machine_status.
1522 * config/mmix/mmix.c (mmix_init_machine_status): Update calling
1524 * config/rs6000/rs6000.c (rs6000_init_machine_status): Likewise.
1525 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
1526 * gengtype.c (get_output_file): Fix warning.
1527 (main): Add prototype to suppress warning.
1528 * tree.c: Remove tree_hash_mark prototype.
1530 * tree.h (init_stmt): Delete prototype.
1531 * toplev.c (lang_independent_init): Don't call init_stmt.
1532 * stmt.c (ALLOC_NESTING): Use GGC for 'struct nesting'.
1533 (stmt_obstack): Delete.
1534 (POPSTACK): No need to free 'struct nesting'.
1535 (gt_ggc_mr_nesting_cond): Use canonical names.
1536 (gt_ggc_mr_nesting_loop): Use canonical names.
1537 (gt_ggc_mr_nesting_block): Use canonical names.
1538 (gt_ggc_mr_nesting_case_stmt): Use canonical names.
1539 (mark_stmt_status): Delete.
1540 (init_stmt): Delete.
1541 (clear_last_expr): Clear both last_expr_type and last_expr_value.
1542 Use it everywhere that last_expr_type was cleared.
1543 * lists.c (init_EXPR_INSN_LIST_cache): Use ggc_add_deletable_root.
1544 (zap_lists): Delete.
1545 * ggc.h (ggc_add_deletable_root): Prototype.
1546 (mark_stmt_status): Remove prototype.
1547 * ggc-common.c (ggc_add_deletable_root): New.
1548 (ggc_mark_roots): Handle deletable roots.
1549 * function.c (ggc_mark_struct_function): Use canonical name
1550 for mark_stmt_status.
1551 * emit-rtl.c (free_sequence_stack): New.
1552 (start_sequence): Use a freelist for sequences.
1553 (end_sequence): Likewise.
1554 (init_emit_once): Add free_sequence_stack as a deleteable root.
1555 * c-pragma.c Include gt-c-pragma.h.
1556 (struct align_stack): Use gengtype.
1557 (push_alignment): Use GGC for struct align_stack.
1558 (mark_align_stack): Delete.
1559 (gt_ggc_mp_align_stack): New.
1560 (init_pragma): Use canonical name for mark_align_stack.
1561 * c-decl.c: Include gt-c-decl.h.
1562 (struct binding_level): Use gengtype.
1563 (make_binding_level): Use GGC; handle the freelist here.
1564 (pop_binding_level): New.
1565 (pushlevel): Move code into make_binding_level.
1566 (push_label_level): Likewise.
1567 (poplevel): Move code into pop_binding_level.
1568 (pop_label_level): Likewise.
1569 (mark_binding_level): Delete.
1570 (gt_ggc_mp_binding_level): New.
1571 (c_init_decl_processing): Use canonical name for mark_binding_level.
1572 Add free_binding_level as deletable root.
1573 (mark_c_function_context): Use canonical name for mark_binding_level.
1574 * Makefile.in (c-decl.o): Add gt-c-decl.h.
1575 (c-pragma.o): Add gt-c-pragma.h.
1576 (GTFILES): Add c-decl.c and c-pragma.c.
1577 (gt-c-decl.h, gt-c-pragma.h): Create using gengtype.
1579 * tree.c (struct type_hash): Use gengtype.
1580 (init_obstacks): Use canonical name for type_hash_mark.
1581 (type_hash_mark): Delete.
1583 * rtl.h (struct mem_attrs): Use gengtype.
1584 * optabs.h (struct optab): Use gengtype.
1585 * optabs.c (expand_binop): Squish signed/unsigned warning.
1586 (mark_optab): Make local, use canonical name, use autogenerated
1588 (init_optabs): Use canonical name for mark_optab.
1589 (new_optab): Use GGC to allocate optabs.
1590 * ggc.h: Delete mark_optab prototype.
1591 * ggc-common.c (ggc_mark_rtx_children): Use canonical name for
1592 mem_attrs marker procedure.
1593 * gengtype.c (get_output_file): Include headers in gtype-desc.c
1594 explicitly rather than deducing them from file names.
1595 (write_gc_structure_fields): Handle arrays of structures.
1596 (main): Return non-zero exit code if errors occur during output.
1597 * emit-rtl.c (mem_attrs_mark): Delete.
1598 (init_emit_once): Use canonical name for mem_attrs marker procedure.
1599 * Makefile.in (gtype-desc.o): Explicitly name dependencies.
1600 (tree.o): Depend on gt-tree.h.
1601 (GTFILES): Add rtl.h, optabs.h, tree.c.
1602 (gt-tree.h): Add it to s-gtype rule.
1604 * .cvsignore: Ignore gengtype flex/bison generated files.
1605 * Makefile.in (GGC_H): Add gtype-desc.h.
1606 (OBJS): Add gtype-desc.o.
1607 (GEN): Add gengtype.
1608 (STAGESTUFF): Add gengtype.
1609 (varasm.o): Add gt-varasm.h.
1610 (stmt.o): Add gt-stmt.h.
1611 (except.o): Add gt-except.h.
1612 (integrate.o): Add gt-integrate.h.
1614 Add new rules for new files.
1615 * configure: Regenerate.
1616 * configure.in: Correct defaults.h paths.
1617 * emit-rtl.c (mark_sequence_stack): Delete.
1618 (mark_emit_status): Delete.
1619 (start_sequence): Allocate sequence structures using GGC.
1620 (end_sequence): Allocate sequence structures using GGC.
1621 * except.c: Use gengtype for various structures. Include
1623 * expr.c (mark_expr_status): Delete.
1624 * function.c: Use gengtype for various structures. Include
1626 (mark_function_status): Use standard gt_ggc names for marker functions.
1627 (ggc_mark_struct_function): Likewise.
1628 * function.h: Use gengtype for various structures.
1629 * gengtype-lex.l: New file.
1630 * gengtype-yacc.y: New file.
1631 * gengtype.c: New file.
1632 * gengtype.h: New file.
1633 * ggc.h: Include gtype-desc.h. Alias some marker procedures to
1634 the standard names. Remove some now-unnecessary prototypes.
1635 * integrate.c: Use gengtype for various structures. Include
1637 (mark_hard_reg_initial_vals): Delete.
1638 * integrate.h (mark_hard_reg_initial_vals): Delete.
1639 * stmt.c: Use gengtype for various structures. Include
1641 (mark_case_node): Delete.
1642 (mark_goto_fixup): Delete.
1643 (mark_stmt_status): Use standard gt_ggc names for marker functions.
1644 * system.h: Define GTY to empty. In flex/bison files,
1645 don't poison malloc or realloc, instead just define them to
1646 xmalloc and xrealloc.
1647 * varasm.c: Use gengtype for various structures. Include
1648 gt-varasm.h. Use standard gt_ggc names for marker functions.
1649 (mark_pool_constant): Delete.
1650 (mark_varasm_status): Delete.
1651 (decode_rtx_const): #if 0 out non-typesafe hack.
1653 * function.h (free_lang_status): Mark as obsolete.
1654 * function.c (free_lang_status): Mark as obsolete.
1655 * c-decl.c (push_c_function_context): Use GC to allocate and free
1656 struct language_function.
1657 (pop_c_function_context): Likewise.
1658 * c-common.c (mark_c_language_function): Mark struct
1661 * doc/tm.texi (Per-Function Data): Don't document free_machine_status.
1662 Document that the machine_function structures must be allocated
1663 using GC. Update mark_machine_status documentation.
1664 * function.h: Don't declare free_machine_status.
1665 * function.c (free_machine_status): Don't define.
1666 (free_after_compilation): Don't call free_machine_status.
1667 (ggc_mark_struct_function): Mark f->machine. Call
1668 mark_machine_status only on non-NULL pointers.
1669 * system.h: Poison free_machine_status.
1670 * config/xtensa/xtensa.c (xtensa_init_machine_status): Use GC on
1671 struct machine_function.
1672 (xtensa_free_machine_status): Delete.
1673 (override_options): Don't set free_machine_status.
1674 * config/rs6000/rs6000.c (rs6000_override_options): Don't set
1675 free_machine_status.
1676 (rs6000_init_machine_status): Use GC on struct machine_function.
1677 (rs6000_free_machine_status): Delete.
1678 * config/ia64/ia64.c (ia64_init_machine_status): Use GC on struct
1680 (ia64_mark_machine_status): Likewise.
1681 (ia64_free_machine_status): Delete.
1682 (ia64_override_options): Don't set free_machine_status.
1683 * config/i386/i386.c (override_options): Don't set
1684 free_machine_status.
1685 (ix86_init_machine_status): Use GC on struct machine_function.
1686 (ix86_mark_machine_status): Likewise.
1687 (ix86_free_machine_status): Delete.
1688 * config/d30v/d30v.c: (d30v_init_machine_status): Use GC on struct
1690 (d30v_mark_machine_status): Likewise.
1691 (d30v_free_machine_status): Delete.
1692 (d30v_init_expanders): Don't set free_machine_status.
1693 * config/arm/arm.c (arm_mark_machine_status): Use GC on struct
1695 (arm_init_machine_status): Likewise.
1696 (arm_free_machine_status): Delete.
1697 (arm_init_expanders): Don't set free_machine_status.
1698 * config/alpha/alpha.c (override_options): Don't set
1699 free_machine_status.
1700 (alpha_init_machine_status): Use GC on struct machine_function.
1701 (alpha_mark_machine_status): Likewise.
1702 (alpha_free_machine_status): Delete.
1704 * varasm.c (compare_constant): Fix typo.
1706 * varasm.c: Don't include obstack.h.
1707 (struct varasm_status): x_const_rtx_hash_table is a hash of rtxes.
1708 (struct rtx_const): Give substructures names, improve formatting.
1709 (struct constant_descriptor): Delete.
1710 (struct constant_descriptor_tree): New, based on constant_descriptor.
1711 (const_hash_table): Is a hash table of trees.
1712 (mark_const_hash_entry): Is used for hashes of trees. Mark
1713 constant_descriptor_tree structure.
1714 (mark_const_str_htab_1): Mark deferred_string structure.
1715 (compare_constant): Rewrite to compare trees.
1716 (compare_constant_1): Delete.
1717 (record_constant): Delete.
1718 (record_constant_1): Delete.
1719 (output_constant_def): Use struct constant_descriptor_tree.
1720 Don't duplicate trees twice.
1721 (struct constant_descriptor_rtx): New.
1722 (struct pool_constant): Used for rtx constants.
1723 (init_varasm_status): Update for change to struct varasm_status.
1724 (mark_varasm_status): Likewise.
1725 (free_varasm_status): Delete.
1726 (compare_constant_rtx): Rewrite to handle constant_descriptor_rtx.
1727 (record_constant_rtx): Likewise.
1728 (mem_for_const_double): Update to use struct constant_descriptor_rtx.
1729 (force_const_mem): Likewise.
1730 * Makefile.in (varasm.o): Doesn't depend on obstack.h.
1731 * function.c (free_after_compilation): Don't use free_varasm_status.
1732 * function.h: Don't prototype free_varasm_status.
1734 * ggc-common.c (ggc_realloc): Handle X being NULL.
1736 * ggc-common.c (ggc_realloc): New function.
1737 * ggc.h: Prototype it.
1738 * emit-rtl.c (free_emit_status): Delete.
1739 (init_emit): Allocate emit subarrays using GC.
1740 (gen_reg_rtx): Reallocate subarrays using GC.
1741 (init_emit): Use GC to allocate 'struct emit_status' and its
1743 (mark_emit_status): Mark structure and its subarrays.
1744 * stmt.c (free_stmt_status): Delete.
1745 * expr.c (free_expr_status): Delete.
1746 * function.h: Remove prototypes for deleted functions.
1747 * function.c (free_after_compilation): Don't use deleted functions.
1748 Don't call free() on x_parm_reg_stack_loc.
1749 (free_after_parsing): Don't use free_stmt_status.
1750 (assign_parms): Use GC to allocate and resize x_parm_reg_stack_loc.
1751 (mark_function_status): Mark x_parm_reg_stack_loc.
1753 * varasm.c (init_varasm_status): Use GC to allocate
1754 'struct varasm_status' and its fields x_const_rtx_hash_table
1755 and x_const_rtx_sym_hash_table.
1756 (mark_varasm_status): Mark them.
1757 (free_varasm_status): Use GC to free them.
1758 * expr.c (init_expr): Use GC to allocate 'struct expr_status'.
1759 (mark_expr_status): Mark the structure itself.
1760 (free_expr_status): Use GC to free the structure.
1761 * stmt.c (free_stmt_status): Use GC to free 'struct stmt_status'.
1762 (mark_stmt_status): Mark the 'struct stmt_status' itself.
1763 (init_stmt_for_function): Allocate the structure for GC.
1765 * dwarf2out.c (lookup_type_die): Use TYPE_SYMTAB_DIE.
1766 (equate_type_number_to_die): Likewise.
1767 * tree.h (TYPE_SYMTAB_DIE): New macro.
1768 (struct die_struct): Predeclare.
1769 (struct tree_type): Add field symtab.die. Add a tag
1770 to the union type of field symtab.
1772 * varray.h (VARRAY_RTVEC_INIT): A varray of rtvec contains
1773 'struct rtvec_def *', not 'struct rtvec_def'.
1775 * function.h (original_arg_vector): Make a real rtvec.
1776 * function.c (ggc_mark_struct_function): Adjust.
1777 * integrate.c (expand_inline_function): Adjust.
1779 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
1781 * config.gcc (sh5-*-netbsd*, sh5l*-*-netbsd*)
1782 (sh64-*-netbsd*, sh64l*-*-netbsd*): New targets.
1783 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN)
1784 (TARGET_VERSION_CPU): Define according to the
1786 (TARGET_VERSION): Use TARGET_VERSION_ENDIAN and
1788 (TARGET_OS_CPP_BUILTINS): Use NETBSD_OS_CPP_BUILTINS_LP64
1789 if TARGET_SHMEDIA64.
1790 (LINK_DEFAULT_CPU_EMUL): Define according to the
1792 (SUBTARGET_LINK_EMUL_SUFFIX): Define.
1793 (SUBTARGET_LINK_SPEC): Define.
1794 (LINK_SPEC): Use SH_LINK_SPEC.
1796 (TARGET_DEFAULT): Use TARGET_CPU_DEFAULT.
1797 (FUNCTION_PROFILER): Add cases for TARGET_SHMEDIA32
1798 and TARGET_SHMEDIA64 which abort, for now.
1799 * config/sh/t-netbsd-sh5: New file.
1800 * config/sh/t-netbsd-sh5-32: New file.
1801 * config/sh/t-netbsd-sh5-64: New file.
1803 2002-06-03 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
1804 Richard Henderson <rth@redhat.com>
1806 * config/alpha/alpha.c (reg_or_const_int_operand): New.
1807 (some_operand, input_operand): Accept CONST_VECTOR.
1808 (alpha_extra_constraint): Add 'W'.
1809 (alpha_expand_zap_mask): New.
1810 (alpha_expand_builtin_vector_binop): New.
1811 (enum alpha_builtin): New.
1812 (zero_arg_builtins, one_arg_builtins, two_arg_builtins): New.
1813 (alpha_init_builtins, alpha_expand_builtin): New.
1814 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): New.
1815 * config/alpha/alpha.h (VECTOR_MODE_SUPPORTED_P): New.
1816 (PREDICATE_CODES): Update.
1817 * config/alpha/alpha-protos.h: Update.
1818 * config/alpha/alpha.md (UNSPEC_CMPBGE, UNSPEC_ZAP,
1819 UNSPEC_AMASK, UNSPEC_IMPLVER, UNSPEC_PERR, UNSPECV_RPCC): New.
1820 (movv8qi, movv8qi_fix, movv8qi_nofix): New.
1821 (movv4hi, movv4hi_fix, movv4hi_nofix): New.
1822 (movv2si, movv2si_fix, movv2si_nofix): New.
1823 (uminv8qi3, sminv8qi3, uminv4hi3, sminv4hi3): New.
1824 (umaxv8qi3, smaxv8qi3, umaxv4hi3, smaxv4hi3): New.
1825 (builtin_cmpbge, builtin_extql, builtin_extqh, builtin_zap,
1826 builtin_zap_1, builtin_zapnot, builtin_zapnot_1, builtin_amask,
1827 builtin_implver, builtin_rpcc, builtin_minub8, builtin_minsb8,
1828 builtin_minuw4, builtin_minsw4, builtin_maxub8, builtin_maxsb8,
1829 builtin_maxuw4, builtin_maxsw4, builtin_perr, builtin_pklb,
1830 pklb, builtin_pkwb, pkwb, builtin_unpkbl, unpkbl,
1831 builtin_unpkbw, unpkbw): New.
1832 * doc/extend.texi (Alpha Built-in Functions): New.
1834 2002-06-03 Richard Henderson <rth@redhat.com>
1836 * crtstuff.c (__EH_FRAME_BEGIN__): Conditionalize on
1837 USE_EH_FRAME_REGISTRY, not EH_FRAME_SECTION_NAME.
1839 2002-06-03 Richard Henderson <rth@redhat.com>
1841 * config/alpha/alpha-protos.h: Eliminate unneeded ifdefs.
1843 * config/alpha/alpha.c (reg_or_0_operand): Use CONST0_RTX.
1844 (const0_operand): New.
1845 (reg_or_fp0_operand, fp0_operand): Remove.
1846 * config/alpha/alpha.h (PREDICATE_CODES): Update.
1847 * config/alpha/alpha-protos.h: Update.
1848 * config/alpha/alpha.md: Replace all uses of reg_or_fp0_operand
1849 and fp0_operand with reg_or_0_operand and const0_operand.
1851 2002-06-03 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
1853 * alias.c (nonoverlapping_memrefs_p): Fix off by one error.
1855 2002-06-03 Roger Sayle <roger@eyesopen.com>
1857 * gcse.c (cprop_jump): Use single_set to get the pattern
1858 from the setcc argument.
1860 2002-06-03 Gabriel Dos Reis <gdr@codesourcery.com>
1862 * diagnostic.h (diagnostic_count): Move from output_buffer to
1864 (diagnostic_kind_count): Adjust definition.
1866 Mon Jun 3 19:11:53 CEST 2002 Jan Hubicka <jh@suse.cz>
1868 * except.c (except.c): Do not rebuild CFG.
1869 * toplev.c (rest_of_compilation): Recompute CFG after sibcall
1872 Mon Jun 3 11:53:01 CEST 2002 Jan Hubicka <jh@suse.cz>
1874 * integrate.c (copy_insn_list): Properly pace the INSN_SCOPE copies.
1875 * toplev.c: Include cfglahout.h
1876 * Makefile.in (toplev.c): Add dependnecy.
1878 2002-06-03 Neil Booth <neil@daikokuya.demon.co.uk>
1880 * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): New.
1881 (CPP_CPU32_SPEC, CPP_CPU64_SPEC): Kill.
1882 (CPP_CPUCOMMON_SPEC): Rename CPP_CPU_SPEC.
1884 2002-06-03 Jason Thorpe <thorpej@wasabisystems.com>
1886 * config/ns32k/netbsd.h: Update copyright years.
1887 (TARGET_OS_CPP_BUILTINS): Define.
1888 (CPP_PREDEFINES): Remove.
1889 * config/ns32k/ns32k.h (CPP_PREDEFINES): Remove.
1890 (TARGET_CPU_CPP_BUILTINS): Define.
1892 2002-06-02 Kazu Hirata <kazu@cs.umass.edu>
1894 * emit-rtl.c: Fix formatting.
1895 * errors.h: Likewise.
1896 * except.c: Likewise.
1897 * explow.c: Likewise.
1898 * expmed.c: Likewise.
1902 2002-06-02 Kazu Hirata <kazu@cs.umass.edu>
1904 * config/h8300/elf.h: Fix formatting.
1905 * config/h8300/rtems.h: Likewise.
1907 2002-06-03 Jason Thorpe <thorpej@wasabisystems.com>
1909 * config/rs6000/netbsd.h (DRAFT_V4_STRUCT_RET): Remove.
1911 2002-06-02 Tom Tromey <tromey@redhat.com>
1913 * fixinc/fixincl.x: Rebuilt.
1914 * fixinc/inclhack.def (thread_keyword): Match `*__thread'.
1916 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
1919 * i370.h (TARGET_CPU_CPP_BUILTINS): Use.
1920 * linux.h: Use TARGET_OS_CPP_BUILTINS rather than CPP_PREDEFINES.
1924 Mon Jun 3 00:18:20 CEST 2002 Jan Hubicka <jh@suse.cz>
1926 * final.c (final): Allow notes to not have computed addresses;
1927 kill no longer needed STACK_REGS ifdef.
1929 2002-06-02 Richard Henderson <rth@redhat.com>
1931 * gcse.c (bypass_conditional_jumps): Fix typo last change.
1933 Sun Jun 2 23:02:11 CEST 2002 Jan Hubicka <jh@suse.cz>
1935 * loop.c (emit_prefetch_instructions): Properly place the address
1938 Sun Jun 2 22:56:48 CEST 2002 Jan Hubicka <jh@suse.cz>
1940 * basic-block.h (basic_block_for_insn, BLOCK_FOR_INSN): Kill.
1941 (set_block_for_insn): Turn into macro.
1942 * cfgbuild.c (find_basic_block): Do not clear basic_block_for_insn.
1943 * cfglayout.c (insn_scopes): Kill.
1944 (scope_to_insns_initialize): Do not use insn_scopes.
1945 (scope_to_insns_finalize): Likewise.
1946 (duplicate_insn_chain): Likewise.
1947 (cfg_layout_initialize, cfg_layout_finalize): Do not turn scopes to notes.
1948 * cfgrtl.c (basic_block_for_insn): Kill.
1949 (delete_insn_and_edges, delete_insn_chain_and_edges): Simplify.
1950 (create_basic_block_structure): Use reorder_insns.
1951 (compute_bb_for_insn): Do not use basic_block_for_insn.
1952 (merge_blocks_nomove): Likewise.
1953 (update_bb_for_insn): Likewise.
1954 (verify_flow_info): Likewise.
1955 (set_block_for_insn): Kill.
1956 * combine.c (try_combine): Update gen_rtx_INSN call.
1957 * emit-rtl.c (gen_label_rtx): Update gen_rtx_CODE_LABEL call.
1958 (mark_insn_raw, make_jump_insn_raw, make_call_insn_raw): Clear
1960 (add_insn_after, add_insn_before, remove_insn, reorder_insns): Simplify.
1961 (emit_note_before, emit_note_after, emit_line_note_after, emit_note):
1963 (emit_insns_after): Simplify.
1964 (emit_copy_of_insn_after): Copy scope.
1965 * final.c (final_start_function): Lower scopes.
1966 * flow.c (check_function_return_warnings): Do not rely on deleted insn.
1967 * integrate.c (copy_insn_list): Cope scopes.
1968 * jump.c (duplicate_loop_exit_test): LIkewise; simplify.
1969 * loop.c (loop_optimize): Do not care block notes.
1970 * print-rtl.c (print_rtx): Print BB.
1971 * recog.c (apply_change_group): Simplify.
1972 * rtl.c (copy_rtx): Handle 'B'.
1973 * rtl.def (INSN, CALL_INSN, JUMP_INSN, NOTE): Add extra fields.
1974 * rtl.h (Field accessors): Update indexes.
1975 * sched-ebb.c (schedule_ebbs): Do not lower notes.
1976 * sched-rgn.c (schedule_insns): Likewise.
1977 * toplev.c (rest_of_compilation): Lower notes.
1978 * unroll.c (unroll_loop): Do not care scoping notes.
1979 (copy_loop_body): Copy scopes.
1981 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
1984 * elf.h: Use TARGET_OS_CPP_BUILTINS rather than
1986 * rtems.h: Similarly.
1987 * h8300.h (CPP_PREDEFINES, CPP_SPEC, SUBTARGET_CPP_SPEC,
1988 EXTRA_SPECS, SUBTARGET_EXTRA_SPECS): Remove.
1989 (TARGET_CPU_CPP_BUILTINS): Use.
1991 2002-06-02 Richard Henderson <rth@redhat.com>
1993 * alias.c: Include target.h.
1994 (mark_constant_function): Use targetm.binds_local_p instead
1995 of checking TREE_PUBLIC ourselves.
1996 * Makefile.in (alias.o): Add TARGET_H.
1998 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
2000 * c-lex.c: Update copyright and file description.
2002 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
2004 * config/fr30/fr30.h: Update to new CPP macros.
2006 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
2008 * config/dsp16xx/dsp16xx.h: Update to new CPP macros.
2010 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
2011 Zack Weinberg <zack@codesourcery.com>
2013 * c-common.c (c_common_init): Override cpplib's default
2014 warn_long_long setting.
2015 * c-lex.c (lex_number): Replace with interpret_integer,
2016 interpret_float, narrowest_unsigned_type and
2017 narrowest_signed_type, taking advantage of the new
2018 cpplib functionality.
2019 * cpperror.c (_cpp_begin_message): If a warning is turned
2020 into an error, avoid printing "warning:".
2021 * cppexp.c (cpp_num_sign_extend): New.
2022 * cppinit.c: Update comment.
2023 * cpplib.h (cpp_num_sign_extend): New.
2024 * tree.h: Update comment.
2026 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
2028 * diagnostic.h (struct diagnostic_context): Add new member
2030 (internal_error_function): Remove declaration.
2031 * diagnostic.c (internal_error_function): Remove definition..
2032 (internal_error): Adjust use.
2034 2002-06-02 Richard Henderson <rth@redhat.com>
2036 * rtl.h (CC0_P): New.
2037 * gcse.c (cprop_jump): Use it with single_set. Tweak dump text.
2038 (cprop_insn): Allow any mode register; use CC0_P. CSE out single_set.
2039 (bypass_block): Save old dest block for dump text.
2040 (bypass_conditional_jumps): Allow any mode register; use CC0_P.
2041 Allow only true SET insns, not single_set.
2043 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
2045 * diagnostic.c (diagnostic_finish): Rename to output_flush.
2046 (clear_disgnostic_info): Rename to output_clear_data. Use false
2047 instead of 0 for boolean value.
2048 Adjust function call throughout.
2050 Sun Jun 2 19:15:27 CEST 2002 Jan Hubicka <jh@suse.cz>
2052 * cfgrtl.c (commit_one_edge_insertion): Fix warning.
2053 * gcse.c (bypass_conditional_jumps): CSE out single_set call.
2055 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
2057 * d30v.h (CPP_PREDEFINES): Replace with
2058 (TARGET_CPU_CPP_BUILTINS): New.
2060 2002-06-02 Roger Sayle <roger@eyesopen.com>
2062 * config/alpha/alpha.h [ASM_OUTPUT_LABELREF]: Fix typo.
2064 Sun Jun 2 12:11:52 CEST 2002 Jan Hubicka <jh@suse.cz>
2066 * gcse.c (bypass_conditional_jumps): Use single set to obtain set.
2068 2002-06-02 Richard Henderson <rth@redhat.com>
2070 * rtlanal.c (volatile_refs_p): Not automatically true for CALL.
2072 2002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
2074 Support for C++ constructors/destructors.
2075 * config/avr/avr.c (avr_output_function_epilogue): Jump to exit()
2076 instead of looping if main() returns.
2077 (asm_file_start): Output global symbols that cause .data and .bss
2078 initialization code to be linked in, unconditionally for now.
2079 (avr_asm_out_ctor, avr_asm_out_dtor): New functions.
2080 * config/avr/avr.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): New.
2081 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
2083 * config/avr/libgcc.S (_exit): Split in .fini9 and .fini0 sections.
2084 (__tablejump__): New.
2085 (__do_copy_data, __do_clear_bss): New.
2086 (__do_global_ctors, __do_global_dtors): New.
2087 * config/avr/t-avr (LIB1ASMFUNCS): Add _copy_data, _clear_bss,
2090 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
2092 * c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): New.
2093 (CPP_SPEC, CPP_PREDEFINES): Kill.
2094 * c4x/rtems.h (CPP_PREDEFINES): Kill.
2095 (TARGET_OS_CPP_BUILTINS): New.
2097 Sat Jun 1 23:29:51 CEST 2002 Jan Hubicka <jh@suse.cz>
2099 * Makefile.in (tracer.o): New.
2100 * params.def (TRACER_*): New options.
2101 * rtl.h (tracer): Declare.
2102 * timevar.def (TV_TRACER): New.
2103 * toplev.c (dump_file_index): Add DFI_tracer.
2104 (dump_file_info): Add tracer.
2106 (lang_indepdenent_options): Add tracer.
2107 (rest_of_compilation): Call tracer.
2108 * tracer.c: New file.
2109 * invoke.texi (-ftracer): Document.
2110 (--param tracer-*): Document.
2112 2002-06-01 Daniel Berlin <dberlin@dberlin.org>
2114 * tree-inline.c (expand_call_inline): Make the statement
2115 expression we generate have a COMPOUND_STMT.
2117 2002-06-01 Roger Sayle <roger@eyesopen.com>
2119 * gcse.c (cprop_cc0_jump): Function deleted.
2120 (cprop_jump): Take an additional argument which is the possibly
2121 NULL cc setting insn immediately before the conditional jump.
2122 When a MODE_CC set is present, substitute it into the JUMP_INSN
2123 before attempting the constant propagation.
2124 (cprop_insn): Recognize cc setters followed by conditional jumps
2125 as a special case. Use cprop_jump instead of cprop_cc0_jump.
2126 (cprop_one_pass): Call bypass_conditional_jumps if altering jumps.
2127 (find_bypass_set): New function based upon find_avail_set used by
2128 cprop, but finds constant expressions available at the end of
2130 (bypass_block): New function. Given a basic block that begins
2131 with a conditional jump and multiple incoming edges, perform
2132 the jump bypass optimization.
2133 (bypass_conditional_jumps): New function. Call bypass_block with
2134 each suitable basic block in the CFG using a simple single pass.
2136 2002-06-01 Roger Sayle <roger@eyesopen.com>
2138 * tree.c (real_minus_onep): New function to test for -1.0.
2139 * fold-const.c (fold) [MULT_EXPR]: Optimize -1.0*x into -x.
2141 2002-06-01 Roger Sayle <roger@eyesopen.com>
2143 * fold-const.c (fold_truthop): Transform "a || b" into "(a|b) != 0"
2144 and "!p && !q" into "(p|q) == 0" under suitable conditions.
2146 2002-06-01 Andreas Jaeger <aj@suse.de>
2148 * cppexp.c (cpp_classify_number): Cast precission to int for
2149 correct printf format.
2151 2002-06-01 Marek Michalkiewicz <marekm@amelek.gda.pl>
2153 * config/avr/avr.c (avr_mcu_types): Remove devices that were once
2154 expected, but don't really exist: atmega83, atmega85, attiny10.
2155 * config/avr/avr.h (LINK_SPEC): Update to use the new avr[1-5] ld
2156 emulations for all devices.
2157 (CRT_BINUTILS_SPECS): Remove atmega83, atmega85, attiny10.
2158 * config/avr/t-avr (MULTILIB_MATCHES): Remove atmega83, atmega85.
2160 2002-06-01 Kazu Hirata <kazu@cs.umass.edu>
2162 * config/h8300/h8300-protos.h: Add a prototype for
2163 h8300_shift_needs_scratch_p.
2164 * config/h8300/h8300.c (h8300_shift_needs_scratch_p): New.
2165 * config/h8300/h8300.h (OK_FOR_R): New.
2166 (OK_FOR_S): Likewise.
2167 (OK_FOR_T): Likewise.
2168 (EXTRA_CONSTRAINT): Call OK_FOR_R, OK_FOR_S, and OK_FOR_T.
2169 * config/h8300/h8300.md (anonymous shift patterns): Use
2170 constraints R, S, and T.
2172 Sat Jun 1 11:23:22 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2174 * basic-block.h (struct basic_block_def): New field loop_father.
2175 (BB_VISITED): New flag.
2176 (struct loop): New field pred, removed field shared.
2177 (struct loops): New field parray.
2178 (LOOP_EXITS_DOMS): Removed.
2179 (flow_loop_tree_node_add, flow_loop_tree_node_remove,
2180 flow_loop_nested_p, flow_bb_inside_loop_p, get_loop_body,
2181 dfs_enumerate_from, loop_preheader_edge, loop_latch_edge,
2182 add_bb_to_loop, remove_bb_from_loops, find_common_loop,
2183 verify_loop_structure): Declare.
2184 * cfg.c (entry_exit_blocks): Initialize loop_father field.
2185 * cfganal.c (dfs_enumerate_from): New function.
2186 * cfgloop.c (HEAVY_EDGE_RATIO): New constant.
2187 (flow_loop_entry_edges_find, flow_loop_exit_edges_find,
2188 flow_loop_nodes_find, flow_loop_level_compute, flow_loop_nested_p,
2189 flow_loop_dump, flow_loops_dump, flow_loops_free,
2190 flow_loop_tree_node_add, flow_loop_level_compute,
2191 flow_loops_level_compute, flow_loop_scan, flow_loops_update,
2192 flow_loop_outside_edge_p): Modified for new infrastructure.
2193 (make_forwarder_block, canonicalize_loop_headers, glb_enum_p,
2194 redirect_edge_with_latch_update, flow_loop_free): New static functions.
2195 (flow_loop_tree_node_remove, flow_bb_inside_loop_p,
2196 get_loop_body, add_bb_to_loop, remove_bb_from_loops,
2197 find_common_loop, verify_loop_structure, loop_latch_edge,
2198 loop_preheader_edge): New functions.
2199 (flow_loops_cfg_dump): Do not show dominators, as this information
2200 does not remain up to date long.
2201 (flow_loops_find): Store results in new format.
2202 * predict.c (propagate_freq, estimate_probability,
2203 estimate_loops_at_level, estimate_bb_frequencies): Use new loop
2206 2002-06-01 Alan Lehotsky <apl@alum.mit.edu>
2208 * except.c (nothrow_function_p): Walk epilogue delay list
2209 checking the insn, not the chain for potential throws.
2211 2002-05-31 Zack Weinberg <zack@codesourcery.com>
2213 * Makefile.in (INSTALL_CPP, UNINSTALL_CPP): Remove.
2214 (install): Refer to install-cpp directly.
2215 (uninstall-cpp): Folded into uninstall rule.
2216 * configure.in: Delete all code relating to --disable-cpp.
2217 * configure: Regenerate.
2218 * config/t-install-cpp: Delete.
2220 2002-05-31 Richard Henderson <rth@redhat.com>
2222 * configure.in (HAVE_AS_TLS): Add alpha tests.
2223 * configure: Rebuild.
2224 * config/alpha/alpha.c (TARGET_AS_TLS): New.
2225 (alpha_tls_size, alpha_tls_size_string): New.
2226 (overide_options): Set it. Always install machine_status hooks.
2227 (input_operand): Accept got tls predicates.
2228 (local_symbol_p): Merge into ...
2229 (local_symbolic_operand): ... here. Reject tls symbols.
2230 (global_symbolic_operand): Likewise.
2231 (tls_symbolic_operand_1, dtp16_symbolic_operand): New.
2232 (dtp32_symbolic_operand, gotdtp_symbolic_operand): New.
2233 (tp16_symbolic_operand, tp32_symbolic_operand): New.
2234 (gottp_symbolic_operand, tls_symbolic_operand_type): New.
2235 (alpha_encode_section_info): Handle TLS symbols.
2236 (alpha_strip_name_encoding): Likewise.
2237 (alpha_legitimate_address_p): Likewise.
2238 (alpha_legitimize_address): Likewise.
2239 (alpha_expand_mov): Early exit to avoid nop moves.
2240 (struct machine_function): Move from unicosmk.h. Add some_ld_name.
2241 (alpha_init_machine_status, alpha_mark_machine_status,
2242 alpha_free_machine_status): Always define.
2243 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
2244 (print_operand, print_operand_address): Add TLS relocs.
2245 * config/alpha/alpha.h (HAVE_AS_TLS): Default 0.
2246 (MASK_TLS_KERNEL, TARGET_TLS_KERNEL): New.
2247 (TARGET_SWITCHES): Add -mtls-kernel.
2248 (alpha_tls_size, alpha_tls_size_string): New.
2249 (TARGET_OPTIONS): Add -mtls-size=.
2250 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS,
2251 REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Add R0_REG.
2252 (ASM_OUTPUT_LABELREF): Skip %.
2253 (PRINT_OPERAND_PUNCT_VALID_P): Add &.
2254 (PREDICATE_CODES): Update.
2255 * config/alpha/alpha.md (UNSPEC_TLSGD_CALL, UNSPEC_TLSLDM_CALL,
2256 UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_DTPREL, UNSPEC_TPREL,
2257 UNSPEC_TP, UNSPECV_SET_TP): New.
2258 (adddi_er_lo16_dtp, adddi_er_hi32_dtp, adddi_er_lo32_dtp,
2259 adddi_er_lo16_tp, adddi_er_hi32_tp, adddi_er_lo32_tp, load_tp,
2260 set_tp, movdi_er_tlsgd, movdi_er_tlsldm, movdi_er_gotdtp,
2261 movdi_er_gottp, call_value_osf_tlsgd, call_value_osf_tlsldm): New.
2262 (call_value_osf_2_er): Accept anything as op4.
2263 * config/alpha/alpha-protos.h: Update.
2264 * config/alpha/unicosmk.h (struct machine_function): Move to alpha.c.
2266 2002-05-31 Zack Weinberg <zack@codesourcery.com>
2268 * cppinit.c (append_include_chain): Always pay attention to
2269 cxx_aware when setting new->sysp. Remove ATTRIBUTE_UNUSED
2272 2002-05-31 Kazu Hirata <kazu@cs.umass.edu>
2274 * target.h: Fix formatting.
2275 * timevar.h: Likewise.
2276 * tlink.c: Likewise.
2277 * toplev.c: Likewise.
2278 * toplev.h: Likewise.
2280 * tree-dump.h: Likewise.
2282 * tree-inline.h: Likewise.
2283 * unroll.c: Likewise.
2284 * unwind-dw2.c: Likewise.
2285 * unwind-dw2-fde.c: Likewise.
2286 * unwind-dw2-fde-glibc.c: Likewise.
2287 * unwind-dw2-fde.h: Likewise.
2288 * unwind.h: Likewise.
2289 * unwind-sjlj.c: Likewise.
2290 * varasm.c: Likewise.
2291 * varray.h: Likewise.
2292 * vmsdbg.h: Likewise.
2293 * vmsdbgout.c: Likewise.
2294 * xcoffout.h: Likewise.
2296 2002-05-31 Igor Shevlyakov <igor@microunity.com>
2298 * expr.c (compare_from_rtx): Generate comparison between op0 and op1
2299 rather than cc0 and 0 in a case when HAVE_cc0 is not defined.
2301 2002-05-31 Matthew Woodcraft <mattheww@chiark.greenend.org.uk>
2303 * gcc.c (cpp_unique_options): Remove "-d" options.
2304 (cpp_debug_options): New spec string.
2305 (default_compilers): Use it.
2306 * objc/lang-specs.h: Likewise.
2308 2002-05-31 Nathanael Nerode <neroden@twcny.rr.com>
2310 * gcc/Makefile.in: Replace HOST_PREFIX, HOST_PREFIX_1 with
2311 BUILD_PREFIX, BUILD_PREFIX_1, to correct nomenclature.
2312 * gcc/mklibgcc.in: Likewise.
2313 * gcc/config/arc/t-arc: Likewise.
2314 * gcc/configure.in: Likewise.
2315 * gcc/configure: Regenerate.
2317 2002-05-31 Stan Shebs <shebs@apple.com>
2318 Turly O'Connor <turly@apple.com>
2320 * c-decl.c (struct binding_level): Change int field n_incomplete
2321 to tree list incomplete_list.
2322 (clear_binding_level): Init field with NULL.
2323 (pushdecl): Add incomplete type to list.
2324 (mark_binding_level): Mark the incomplete list.
2325 (finish_struct): Scan the incomplete list for types instead
2326 of all decls in the current binding level.
2328 2002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
2330 * pa.c (output_millicode_call): Add missing '%' characters.
2331 (output_call): Likewise.
2333 2002-05-31 David Edelsohn <edelsohn@gnu.org>
2335 * config/rs6000/xcoff.h (HOT_TEXT_SECTION_NAME): Define.
2336 (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
2338 2002-05-31 Alan Lehotsky <apl@alum.mit.edu>
2340 * varasm.c (mark_constant_pool): Walk epilogue delay list
2341 checking the insn, not the chain for potential constants.
2343 Fri May 31 12:38:43 2002 J"orn Rennecke <joern.rennecke@superh.com>
2345 * config/sh/elf.h (ASM_SPEC): Use subtarget_endian_asm_spec.
2347 Fri May 31 13:50:19 CEST 2002 Jan Hubicka <jh@suse.cz>
2349 * i386.c (classify_argument): Properly handle base types.
2351 * dwarf2out.c (expand_builin_init_dwarf_reg_sizes):
2352 Store first DWARF_FRAME_REGISTERS dwarf registers, not pseudo
2355 Fri May 31 13:37:54 CEST 2002 Jan Hubicka <jh@suse.cz>
2357 * gcse.c (gcse_emit_move_after): New.
2358 (pre_delete, hoist_store): Use it.
2360 * reload1.c (emit_input_reload_insns): Use constrain_operands
2361 instead of constraint_accepts_reg_p to verify optimization.
2362 (constraint_accepts_reg_p): Kill
2364 * reload1.c (reload_cse_delete_noop_set): Kill.
2365 (reload_cse_simplify): use delte_insn_and_edges.
2367 2002-05-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2369 * cfgloop.c (flow_loops_find): Initialize first and last fields
2372 2002-05-31 Neil Booth <neil@daikokuya.demon.co.uk>
2374 * c-common.c (builtin_define_std): Correct logic.
2376 2002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
2378 * pa.c (output_millicode_call): Correct "be,l" insn for TARGET_PA_20.
2379 (output_call): Likewise.
2381 2002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
2383 * pa.c: Move output.h include after tree.h include.
2384 (pa_asm_output_mi_thunk): Constify identifier lab.
2386 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
2388 * config/ns32k/ns32k.h: Define named constants for the
2389 bits in target_flags and use them.
2390 * config/ns32k/netbsd.h (TARGET_DEFAULT): Use named constants.
2392 2002-05-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
2394 * config.gcc (tm_file): Prefix pa/pa-700.h to tm_file list for PA1.0
2395 architecture and pa/pa-7100.h for PA1.1 architecture, respectively.
2396 * pa/pa.c (override_options): Use TARGET_SCHED_DEFAULT to select
2397 default scheduling model.
2398 * pa/pa.h (TARGET_SCHED_DEFAULT): Define if not defined to "8000".
2399 * pa/pa-700.h (TARGET_SCHED_DEFAULT): New file for "700" scheduling.
2400 * pa/pa-7100.h (TARGET_SCHED_DEFAULT): New file for "7100" scheduling.
2401 * doc/install.texi (hppa*-*-*): Document default scheduling.
2403 2002-05-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
2405 * pa.c (following_call): Check TARGET_JUMP_IN_DELAY.
2407 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
2409 * config.gcc (ns32k-*-netbsd*): Set tm_file to
2410 "${tm_file} netbsd.h netbsd-aout.h ns32k/netbsd.h"
2411 * config/ns32k/netbsd.h: Don't include ns32k/ns32k.h,
2412 netbsd.h, or netbsd-aout.h.
2414 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
2416 * longlong.h (count_trailing_zeros): Add missing \, and clean up
2417 whitespace in __ns32000__ case.
2419 2002-05-31 Aldy Hernandez <aldyh@redhat.com>
2421 * expr.c (expand_expr): Output partially zeroed out vectors with
2422 output_constant_def.
2424 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
2426 * config.gcc (sh[123456789l]*-*-*): Set cpu_type to sh.
2428 (shl*-*-netbsdelf*): New targets.
2429 * config/sh/netbsd-elf.h: New file.
2430 * config/sh/t-netbsd: New file.
2432 2002-05-30 Richard Henderson <rth@redhat.com>
2433 Eric Botcazou <ebotcazou@multimania.com>
2435 PR optimization/6822
2436 * config/i386/i386.c (ix86_expand_int_movcc): Don't cast INTVAL
2437 to unsigned int for op1 comparisons. Use gen_int_mode.
2439 2002-05-30 Eric Botcazou <ebotcazou@multimania.com>
2441 * expmed.c (const_mult_add_overflow_p): New.
2442 * expr.h: Declare it.
2443 * loop.c (maybe_eliminate_biv_1) [COMPARE]: Use it.
2444 Don't eliminate the biv if the giv has a constant multiplier and
2445 the rhs argument of the comparison does satisfy the predicate.
2446 Use expand_mult_add to compute the replacement constant.
2448 2002-05-30 Osku Salerma <osku@iki.fi>
2450 * c-common.c (c_common_attribute_table): Add "may_alias" entry.
2451 (c_common_get_alias_set): Handle it.
2452 * doc/extend.texi: Document it.
2454 2002-05-30 Richard Henderson <rth@redhat.com>
2456 * defaults.h (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
2457 * toplev.c (process_options): Don't check it.
2458 * doc/tm.texi: Don't document it.
2459 * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): New.
2460 (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
2461 * config/i386/i386.c (ix86_frame_pointer_required): Suppress leaf
2462 frame pointer optimization if current_function_profile.
2464 2002-05-30 Kazu Hirata <kazu@cs.umass.edu>
2466 * langhooks.c: Fix formatting.
2467 * langhooks.h: Likewise.
2469 * libgcc2.c: Likewise.
2470 * lists.c: Likewise.
2471 * local-alloc.c: Likewise.
2475 2002-05-30 Marc Espie <espie@openbsd.org>
2477 * config.gcc (sparc64-*-openbsd*): New.
2478 * config/sparc/openbsd1-64.h: New.
2479 * config/sparc/openbsd64.h: New.
2481 2002-05-30 Jeff Law <law@redhat.com>
2483 * flow.c (propagate_one_insn): Revise yesterday's patch. Delete
2484 a dead insn with a REG_RETVAL note when the entire libcall is not
2485 dead and remove the associated REG_LIBCALL note at the same time.
2487 Thu May 30 19:54:30 2002 J"orn Rennecke <joern.rennecke@superh.com>
2489 * lcm.c (output.h): #include.
2490 (compute_earliest): Remove hack to treat renumbered EXIT_BLOCK
2491 as an ordinary block.
2492 (optimize_mode_switching): Don't pretend that the exit block is
2493 an ordinary block, or handle sucessors of entry block specially.
2494 Instead, split edges from entry block and to exit block, and
2495 put a computing definition on the thus gained post-entry-block,
2496 and a need on the pre-exit-block.
2498 Thu May 30 20:28:01 CEST 2002 Jan Hubicka <jh@suse.cz>
2500 * gengenrtl.c (type_from_format, accessor_from_format): Support 'B'.
2501 * rtl.texi: Document 'B'
2503 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
2505 * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Compute
2507 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Set to 96 if not __mc68010__.
2509 2002-05-30 Aldy Hernandez <aldyh@redhat.com>
2511 * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
2512 const0_rtx instead of NULL_RTX when in error.
2513 (altivec_expand_abs_builtin): Same.
2514 (rs6000_expand_binop_builtin): Same.
2515 (altivec_expand_predicate_builtin): Same.
2516 (altivec_expand_stv_builtin): Same.
2517 (rs6000_expand_ternop_builtin): Same.
2518 (altivec_expand_builtin): Same.
2520 2002-05-29 David S. Miller <davem@redhat.com>
2522 * rtl.h (clear_emit_caches): Delete.
2523 * integrate.c (output_inline_function): Don't call it.
2524 * emit-rtl.c (restore_emit_status, init_emit): Likewise.
2525 (clear_emit_caches): Delete definition.
2526 (SEQUENCE_RESULT_SIZE, sequence_result, free_insn): Likewise.
2528 2002-05-30 Hans-Peter Nilsson <hp@bitrange.com>
2530 * config/mmix/mmix.c: Include real.h.
2531 (mmix_constant_address_p): Remove redundant test before switch.
2533 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
2535 * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Define
2536 only if not already defined.
2538 2002-05-29 Kazu Hirata <kazu@cs.umass.edu>
2540 * config/h8300/h8300-protos.h: Remove prototypes for
2541 ok_for_bclr and small_power_of_two.
2542 * config/h8300/h8300.c (small_power_of_two): Remove.
2543 (ok_for_blcr): Likewise.
2544 (fix_bit_operand): Make WHAT deal with an integer instead of a
2545 constraint character.
2546 * config/h8300/h8300.h (CONST_OK_FOR_O): Remove.
2547 (CONST_OK_FOR_P): Likewise.
2548 (CONST_OK_FOR_LETTER_P): Do not call CONST_OK_FOR_O or
2549 CONST_OK_FOR_P any more.
2550 * config/h8300/h8300.md (andqi3): Adjust to the new prototype
2555 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
2557 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
2558 (CPP_PREDEFINES): Make sure this is undefined.
2559 (CPP_SPEC): Place -D__mips=1 at the beginning of the spec,
2560 since it is no longer in CPP_PREDEFINES. Don't -U__MIPSEL__
2561 or -U__MIPSEB__ before defining one or the other. Instead,
2562 use %(subtarget_endian_default) if neither -EB nor -EL are
2564 (SUBTARGET_EXTRA_SPECS): Define.
2565 (SUBTARGET_CPP_SPEC): Remove __LONG64 handling. Use
2568 2002-05-29 Hans-Peter Nilsson <hp@axis.com>
2570 * doc/md.texi (Patterns): Note pattern condition pitfall
2573 2002-05-29 Aldy Hernandez <aldyh@redhat.com>
2575 * rs6000.c: (altivec_expand_builtin): Only expand altivec builtins
2576 when TARGET_ALTIVEC. Move handling of generic unary, binary, and
2577 ternary operations from here...
2578 (rs6000_expand_builtin): ...to here.
2579 New argument expandedp.
2580 Change all instances of altivec_expand_binop_builtin to
2581 rs6000_expand_binop_builtin.
2582 (altivec_expand_unop_builtin): Rename to
2583 rs6000_expand_unop_builtin.
2584 (altivec_expand_binop_builtin): Rename to
2585 rs6000_expand_binop_builtin.
2586 (altivec_expand_ternop_builtin): Rename to
2587 rs6000_expand_ternop_builtin.
2589 2002-05-29 Richard Henderson <rth@redhat.com>
2591 * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Define with value.
2592 (TARGET_BI_ARCH): Likewise.
2593 * config/i386/i386.h: Test TARGET_64BIT_DEFAULT by value.
2594 (TARGET_SWITCHES): Combine target defaults here not in TARGET_DEFAULT.
2595 (TARGET_64BIT_DEFAULT): Default to 0.
2596 (TARGET_DEFAULT): Default to MASK_OMIT_LEAF_FRAME_POINTER.
2598 2002-05-29 Richard Henderson <rth@redhat.com>
2600 * config/i386/i386.c (USE_HIDDEN_LINKONCE): New.
2601 (get_pc_thunk_name): New.
2602 (output_set_got): Use it.
2603 (ix86_asm_file_end): If USE_HIDDEN_LINKONCE, emit get_pc thunks
2604 into linkonce sections.
2606 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
2608 * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
2609 (CPP_PREDEFINES): Make sure this is undefined.
2610 (CPP_SUBTARGET_SPEC64, CPP_SUBTARGET_SPEC32): Remove.
2611 (CPP_SUBTARGET_SPEC): Don't provide different versions for
2612 default-32 and default-64. Just always use %(netbsd_cpp_spec).
2613 (SUBTARGET_EXTRA_SPECS): Remove cpp_subtarget_spec32 and
2614 cpp_subtarget_spec64. Add netbsd_cpp_spec.
2615 * config/sparc/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
2616 (CPP_PREDEFINES): Make sure this is undefined.
2617 (SUBTARGET_EXTRA_SPECS): Define.
2618 (CPP_SPEC): Use %(netbsd_cpp_spec).
2620 2002-05-29 Jeff Law <law@redhat.com>
2622 * pa.h (ASM_OUTPUT_MI_THUNK): Remove unwanted semi-colon.
2624 * flow.c (propagate_one_insn): Do not remove a dead insn if it
2625 contains a REG_RETVAL note.
2627 * haifa-sched (sched_analyze): Remove another useless clearing
2628 of SCHED_GROUP_P I missed yesterday.
2630 * pa.h (ASM_OUTPUT_MI_THUNK): Move implementation into pa.c.
2631 * pa.c (pa_asm_output_mi_thunk): New function.
2632 * pa-protos.h (pa_asm_output_mi_thunk): Declare.
2634 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
2635 Marek Michalkiewicz <marekm@amelek.gda.pl>
2637 * config/avr/avr.c (avr_base_arch_macro, avr_extra_arch_macro): New.
2638 (avr_asm_only_p): Make non-static.
2639 (enum avr_arch): Remove.
2640 (avr_arch_types): New.
2641 (avr_mcu_types): Update.
2642 (avr_override_options): Use avr_arch_types table instead of switch.
2643 * avr.h (CPP_PREDEFINES): Die.
2644 (avr_base_arch_macro, avr_extra_arch_macro): New.
2645 (TARGET_CPU_CPP_BUILTINS): New.
2646 (CPP_SPEC, EXTRA_SPECS): Simplify.
2647 (CPP_AVR1_SPEC, CPP_AVR2_SPEC, CPP_AVR3_SPEC, CPP_AVR4_SPEC,
2648 CPP_AVR5_SPEC): Die.
2650 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
2652 * config/arm/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
2653 NETBSD_OS_CPP_BUILTINS_AOUT.
2654 (SUBTARGET_EXTRA_SPECS): Define.
2655 (CPP_SPEC): Use %(netbsd_cpp_spec).
2657 2002-05-29 Richard Henderson <rth@redhat.com>
2659 * config/i386/i386.c (ix86_output_function_epilogue): New.
2660 (TARGET_ASM_FUNCTION_EPILOGUE): New.
2661 (pic_label_name): Remove.
2662 (pic_labels_used): New.
2663 (ix86_asm_file_end): Emit one pc load stub for each register used.
2664 (output_set_got): Generate deep pc load to any register.
2665 (ix86_select_alt_pic_regnum): New.
2666 (ix86_save_reg): Don't save pic register if we can find a valid
2667 call-clobbered replacement.
2668 (ix86_expand_prologue): If we found a valid replacement, renumber
2669 pic_offset_table_rtx.
2670 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Look at
2671 pic_offset_table_rtx after reload.
2672 (REAL_PIC_OFFSET_TABLE_REGNUM): New.
2673 * config/i386/i386.md (set_got): Make insn, not expander.
2674 (set_got_nopic, set_got_deep, set_got_nodeep): Remove.
2676 2002-05-29 Richard Henderson <rth@redhat.com>
2678 * config/i386/i386.c (ix86_compute_frame_layout): Do add bottom
2679 alignment for alloca.
2681 2002-05-29 Richard Henderson <rth@redhat.com>
2683 * config/i386/i386.c (output_pic_addr_const): Lowercase rip.
2684 (print_operand_address): Only add rip for symbolic addresses
2685 for which we do not have another relocation type.
2687 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
2689 * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
2690 (EXTRA_SPECS): Add netbsd_cpp_spec.
2691 (CPP_SPEC): Use %(netbsd_cpp_spec).
2692 (CPP_PREDEFINES): Remove.
2693 * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
2694 (EXTRA_SPECS): Define.
2695 (CPP_SPEC): Use %(netbsd_cpp_spec).
2696 (CPP_PREDEFINES): Remove.
2698 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
2700 PR preprocessor/6844
2701 * cppmacro.c (cpp_macro_definition): Reserve space for terminating
2704 2002-05-29 Eric Christopher <echristo@redhat.com>
2706 * config/mips/linux.h (SUBTARGET_CPP_SPEC): Add support for
2707 mips5/mips32/mips64 and _MIPS_ISA_MIPSXX.
2709 2002-05-29 Nick Clifton <nickc@cambridge.redhat.com>
2711 * config/fr30/fr30.md: Remove previous restriction on splits.
2712 Enforce conformance through gen_lowpart and cont_int_operand.
2713 * config/fr30/fr30.h (BSS_SECTION_ASM_OP): Use ".section .bss"
2714 as the assembler does not support ".bss".
2716 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
2718 * config/i386/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
2719 (CPP_PREDEFINES): Remove.
2720 (SUBTARGET_EXTRA_SPECS): Define.
2721 (CPP_SPEC): Use %(netbsd_cpp_spec).
2722 * config/i386/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
2723 (CPP_PREDEFINES): Remove.
2724 (SUBTARGET_EXTRA_SPECS): Define.
2725 (CPP_SPEC): Use %(netbsd_cpp_spec).
2726 * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Define.
2727 (CPP_PREDEFINES, CPP_LP64_SPEC, CPP_SUBTARGET_SPEC): Remove.
2728 (SUBTARGET_EXTRA_SPECS): Remove cpp_lp64 and cpp_subtarget.
2729 Add netbsd_cpp_spec.
2730 (CPP_SPEC): Remove %(cpp_subtarget), add %(netbsd_cpp_spec).
2732 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
2733 Zack Weinberg <zack@codesourcery.com>
2735 * cppexp.c (cpp_num): Move to cpplib.h.
2736 (CPP_ERROR): Remove.
2737 (interpret_float_suffix, interpret_int_suffix): New.
2738 (struct suffix, vsuf_1, vsuf_2, vsuf_3): Remove.
2739 (cpp_classify_number, cpp_interpret_integer): New.
2740 (interpret_number): Remove.
2741 (eval_token): Update to use new routines.
2742 * cpphash.h (cpp_num_part): Move to cpplib.h.
2743 * cppinit.c (cpp_post_options): Set warn_long_long.
2744 * cpplib.h (struct cpp_options): Add warn_long_long.
2745 (cpp_num, cpp_num_part, CPP_N_CATEGORY, CPP_N_INVALID,
2746 CPP_N_INTEGER, CPP_N_FLOATING, CPP_N_WIDTH, CPP_N_SMALL,
2747 CPP_N_MEDIUM, CPP_N_LARGE, CPP_N_RADIX, CPP_N_DEC, CPP_N_HEX,
2748 CPP_N_OCTAL, CPP_N_UNSIGNED, CPP_N_IMAGINARY, cpp_classify_number,
2749 cpp_interpret_integer): New.
2751 2002-05-29 Joel Sherrill <joel@OARcorp.com>
2753 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Use -m403 and -m405.
2755 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
2757 * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
2758 NETBSD_OS_CPP_BUILTINS_ELF and NETBSD_OS_CPP_BUILTINS_LP64.
2759 (CPP_SUBTARGET_SPEC): Define.
2760 (SUBTARGET_EXTRA_SPECS): Define.
2763 2002-05-29 Chris Lattner <sabre@nondot.org>
2765 * ssa.c (rename_insn_1): Rename uses of undefined registers to
2766 prevent confusion if/when the register is defined.
2768 2002-05-29 Hans-Peter Nilsson <hp@axis.com>
2771 * config/cris/cris.md: Fix typos and thinkos in comments.
2772 ("*mov_sideqi_biap_mem"): Remove '*' in constraint for operand 4,
2774 ("*mov_sidehi_biap_mem", "*mov_sidesi_biap_mem"): Ditto.
2775 ("*mov_sideqi_mem"): Similar, but for operand 3.
2776 ("*mov_sidehi_mem", "*mov_sidesi_mem"): Ditto.
2777 (splitter for mov_sideqi_mem, mov_sidehi_mem, mov_sidesi_mem):
2778 Remove spurious mode specifier on operand 2.
2780 2002-05-29 Kazu Hirata <kazu@cs.umass.edu>
2782 * config/h8300/h8300-protos.h: Remove the prototype for
2784 Add prototypes for single_one_operand and single_zero_operand.
2785 * config/h8300/h8300.c (o_operand): Remove.
2786 (single_one_operand): New.
2787 (single_zero_operand): Likewise.
2788 (print_operand): For 'V' operand, and the operand with 0xff.
2789 For 'V' and 'W' operands, do not and the bit position with 7.
2790 * config/h8300/h8300.md (various anonymous patterns): Replace
2791 use of exact_log2 with single_one_operand/single_zero_operand.
2793 2002-05-29 Ulrich Weigand <uweigand@de.ibm.com>
2795 * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New.
2797 2002-05-29 Ulrich Weigand <uweigand@de.ibm.com>
2799 * config/s390/s390.c (legitimate_pic_operand_p): Do not
2800 accept symbolic LARL operands.
2801 (s390_emit_epilogue): Do not set FRAME_RELATED_P on
2804 2002-05-29 Hartmut Penner <hpenner@de.ibm.com>
2806 * config/s390/s390.md (cmpstr_64/31): Mark whole
2807 input registers as used.
2809 2002-05-28 Richard Henderson <rth@redhat.com>
2811 * config/i386/i386.c (ix86_save_reg): Examine regs_ever_live,
2812 not current_function_uses_pic_offset_table and
2813 current_function_uses_const_pool; examine current_function_profile.
2814 (ix86_expand_prologue): Likewise. Add pic_offset_table_rtx as
2815 input to blockage if needed.
2816 (ix86_expand_call): Do not set current_function_uses_pic_offset_table.
2817 (legitimize_pic_address): Likewise. Set regs_ever_live for
2818 pic_offset_table_rtx when invoked during reload.
2819 * config/i386/i386.h (FINALIZE_PIC): Remove.
2820 * config/i386/i386.md (tablejump): Reformat. Do not set
2821 current_function_uses_pic_offset_table.
2822 (tls_global_dynamic, tls_local_dynamic_base): Likewise.
2823 (blockage): Accept anything as operand 0.
2825 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
2827 * config/netbsd-aout.h (NETBSD_OS_CPP_BUILTINS_AOUT): Define
2828 common CPP built-ins for all NetBSD a.out targets.
2829 * config/netbsd-elf.h (NETBSD_OS_CPP_BUILTINS_ELF): Define
2830 common CPP built-ins for all NetBSD ELF targets.
2831 * config/netbsd.h: Add missing notice.
2832 (NETBSD_OS_CPP_BUILTINS_COMMON): Define common CPP built-ins
2833 for all NetBSD targets.
2834 (NETBSD_OS_CPP_BUILTINS_LP64): Define common CPP built-ins
2835 for all NetBSD targets using an LP64 code model.
2836 (NETBSD_CPP_SPEC): Define CPP_SPEC parts common to all
2839 2002-05-28 Richard Henderson <rth@redhat.com>
2841 * flow.c (update_life_info_in_dirty_blocks): Only do a partial
2842 update if UPDATE_LIFE_LOCAL.
2844 2002-05-28 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
2846 * config/sh/sh.c: Include real.h for REAL_VALUE_TYPE.
2848 Tue May 28 21:16:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
2849 Jason R. Thorpe <thorpej@wasabisystems.com>
2851 config/sh reorganization to factor out endianness and coff:
2853 * config/sh/little.h: New file.
2854 * config/sh/sh.h (TARGET_ENDIAN_DEFAULT): If not already
2855 defined, define to 0 to select big-endian.
2856 (SUBTARGET_ASM_ENDIAN_SPEC): Define according to TARGET_ENDIAN_DEFAULT.
2857 (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
2858 * config/sh/sh64.h (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
2859 * config/sh/t-be: New file.
2860 * config/sh/t-le: New file.
2862 * sh.h (SDB_DEBUGGING_INFO, #include "dbxcoff.h"): Moved to sh/coff.h.
2863 (SDB_DELIM, MAX_OFILE_ALIGNMENT, IDENT_ASM_OP): Likewise.
2864 (TARGET_ASM_NAMED_SECTION, ASM_OUTPUT_SKIP): Likewise.
2865 (USER_LABEL_PREFIX, LOCAL_LABEL_PREFIX): Likewise.
2866 (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Likewise.
2867 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
2868 (ASM_FILE_END, ASM_DECLARE_FUNCTION_NAME): Deleted.
2869 (CPP_SPEC, SUBTARGET_CPP_ENDIAN_SPEC): Likewise.
2870 (SUBTARGET_CPP_SPEC, CPP_DEFAULT_CPU_SPEC, CPP_PREDEFINES): Likewise.
2871 (EXTRA_SPECS): Remove SUBTARGET_CPP_ENDIAN_SPEC and
2872 CPP_DEFAULT_CPU_SPEC. Add LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL,
2873 SUBTARGET_LINK_EMUL_SUFFIX and SUBTARGET_LINK_SPEC.
2874 (LINK_SPEC): Define to SH_LINK_SPEC.
2875 (TARGET_CPU_CPP_BUILTINS, SH_LINK_SPEC): Define.
2876 (LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL): Likewise.
2877 (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
2878 (CPP_SPEC): Reduce to %(subtarget_cpp_spec).
2879 (TARGET_ENDIAN_DEFAULT): Define if not already defined.
2880 * config/sh/coff.h: New file.
2881 (TARGET_ASM_NAMED_SECTION): Now default_coff_asm_named_section
2882 (TARGET_OBJFMT_CPP_BUILTINS): Define.
2883 * config/sh/elf.h (IDENT_ASM_OP): No need to #undef at the start.
2884 (ASM_FILE_END, ASM_OUTPUT_SOURCE_LINE): Likewise.
2885 (DBX_OUTPUT_MAIN_SOURCE_FILE_END, TARGET_ASM_NAMED_SECTION): Likewise.
2886 (ASM_DECLARE_FUNCTION_NAME, MAX_OFILE_ALIGNMENT, SIZE_TYPE): Likewise.
2887 (PTRDIFF_TYPE): Likewise.
2888 ("dbxelf.h", "elfos.h", "svr4.h"): Don't #include.
2889 (CPP_PREDEFINES): Don't define.
2890 (TARGET_OBJFMT_CPP_BUILTINS): Define.
2891 (LINK_SPEC): Define to SH_LINK_SPEC.
2892 (LINK_EMUL_PREFIX): Redefine.
2893 * config/sh/linux.h: (SUBTARGET_CPP_SPEC): Remove -fpic / -fPIC cases.
2894 (SUBTARGET_CPP_ENDIAN_SPEC, CPP_DEFAULT_CPU_SPEC): Remove redefinition.
2895 (CPP_PREDEFINES, SUBTARGET_ASM_ENDIAN_SPEC): Likewise.
2896 (CC1_SPEC, CC1PLUS_SPEC, LINK_SPEC): Likewise.
2897 (TARGET_OS_CPP_BUILTINS): Define.
2898 (TARGET_DEFAULT): Redefine.
2899 (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
2900 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Remove.
2901 (LINK_SPEC): Don't redefine.
2902 (LINK_DEFAULT_CPU_EMUL): Redefine.
2903 (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
2904 * sh.c (sh_asm_named_section): Don't declare / define.
2905 * t-linux (MULTILIB_OPTIONS): Rely on pre-set endianness option.
2906 * config.gcc (sh-*-elf* tm_file): Add dbxelf.h elfos.h svr4.h.
2907 (sh64-*-elf* tm_file): Likewise.
2908 (sh-*-rtemself* tm_file): Likewise.
2909 (sh-*-linux* tm_file): Likewise. Add sh/little.h.
2910 (sh-*-linux* tmake_file): Add sh/t-le.
2911 (sh-*-rtems* tm_file): Add sh/coff.h
2912 (sh-*-* tm_file): Likewise.
2914 Tue May 28 21:16:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
2916 * sh.h (LEGITIMATE_PIC_OPERAND_P): Check for SYMBOL_REF before using
2917 CONSTANT_POOL_ADDRESS_P.
2919 * coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Define.
2921 2002-05-28 David Edelsohn <edelsohn@gnu.org>
2922 Jeff Law <law@redhat.com>
2924 * optabs.c (expand_binop): Fix nwords sign warnings.
2925 generate pseudo for add_optab.
2927 * sched-deps.c (sched_analyze): Do not clear SCHED_GROUP_P.
2928 * haifa-sched.c (move_insn): Clear SCHED_GROUP_P after it is used.
2930 2002-05-28 Marc Espie <espie@openbsd.org>
2932 * config/i386/openbsd.h (HAVE_GAS_MAX_SKIP_P2ALIGN): Remove,
2933 inherited from gas.h.
2934 (ASM_QUAD): Undef. OpenBSD does not support it.
2936 2002-05-28 Danny Smith <dannysmith@users.sourceforge.net>
2938 * doc/install.texi (binaries): Change mingw binaries
2939 link to www.mingw.org.
2941 2002-05-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2943 * cfgloop.c (flow_loops_cfg_dump): Use bb->index, not i.
2945 2002-05-28 Richard Henderson <rth@redhat.com>
2947 * config/i386/i386.c (ix86_compute_frame_layout): Do not add
2948 bottom alignment for leaf functions.
2950 2002-05-28 Zack Weinberg <zack@codesourcery.com>
2952 * config/pa/milli32.S, config/pa/lib1funcs.asm,
2953 config/sparc/sol2-g1.asm: Delete unused files.
2955 2002-05-28 Richard Henderson <rth@redhat.com>
2957 * cfg.c (dump_flow_info): Print bb->index, not i, for block number.
2959 * flow.c (calculate_global_regs_live): Rename call_used to
2960 invalidated_by_call. Initialize from regs_invalidated_by_call
2961 instead of call_used_regs.
2963 * varasm.c (default_binds_local_p): Check TREE_PUBLIC before
2966 2002-05-28 Zack Weinberg <zack@codesourcery.com>
2968 * tree.h: Don't include real.h.
2969 Forward-declare struct realvaluetype.
2970 (struct tree_real_cst): Point to the REAL_VALUE_TYPE, do not
2972 (TREE_REAL_CST_PTR): New accessor.
2973 (TREE_REAL_CST): Update.
2974 * real.h: Include machmode.h.
2975 (realvaluetype): Make it struct realvaluetype, not a typedef.
2976 (build_real): Prototype here.
2978 * tree.c: Include real.h.
2979 (build_real): Allocate the REAL_VALUE_TYPE as a separate
2980 object in GC memory, set TREE_REAL_CST_PTR to point to it.
2981 (build_real_from_int_cst): Use build_real.
2982 * ggc-common.c (ggc_mark_trees): Mark TREE_REAL_CST_PTR of a
2985 * builtins.c, c-common.c, c-lex.c, dwarf2out.c, expr.c,
2986 fold-const.c, print-tree.c, real.c: Include real.h.
2987 * Makefile.in: Update dependency lists.
2989 2002-05-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2991 * basic-block.h (last_basic_block): Declare.
2992 (expunge_block_nocompact): Declaration removed.
2993 (compact_blocks): Declare.
2994 * cfg.c (last_basic_block): New variable.
2995 (expunge_block_nocompact): Removed.
2996 (expunge_block): Do not compact basic blocks.
2997 (compact_blocks): New.
2998 * cfganal.c (flow_call_edges_add): Use the fact that bb indices no
3000 * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Set
3002 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Do not change
3003 real positions of blocks.
3004 (delete_unreachable_blocks): Simplified -- quadratic behavior now
3006 (cleanup_cfg): Compact blocks.
3007 * cfgrtl.c (create_basic_block): Insert basic blocks to the end of
3008 basic_block_info varray.
3009 (flow_delete_block): Comment update.
3010 (back_edge_of_syntactic_loop_p): Modify position check code.
3011 (verify_flow_info): Update checking.
3012 * flow.c (calculate_global_regs_live): Use FOR_EACH_BB.
3013 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
3014 (find_if_case_1, find_if_case_2, if_convert): Use the fact that bb
3015 indices no longer change.
3016 * lcm.c (optimize_mode_switching): Replace n_basic_blocks with
3018 * predict.c (estimate_bb_frequencies): Remove unneccessary code.
3019 * profile.c (branch_prob): Compact blocks.
3020 * sched-rgn.c (find_rgns): Replace n_basic_blocks with
3023 2002-05-28 Kazu Hirata <kazu@cs.umass.edu>
3025 * config/h8300/h8300.md (two anonymous patterns): New.
3027 2002-05-28 David S. Miller <davem@redhat.com>
3029 * config/sparc/sparc.md (cpu): Tidy.
3030 (type): Delete 'return', add 'ialuX', 'flushw', 'iflush', and
3032 (in_call_delay): Delete reference to 'return' type.
3033 (eligible_for_return_delay, in_return_delay, define_delay
3034 referencing those): Delete.
3035 (rest of file): Use new type attributes as appropriate.
3036 * config/sparc/sparc-protos.h (eligible_for_return_delay): Delete.
3037 * config/sparc/sparc.c (eligible_for_return_delay): Likewise.
3038 * config/sparc/ultra1_2.md (us1_single): New reservation.
3039 (us1_ialuX): Likewise.
3040 * config/sparc/ultra3.md (us3_single): Likewise.
3041 (us3_ialuX): Likewise.
3042 (us3_imul, us3_idiv): Tweak.
3044 2002-05-28 Richard Henderson <rth@redhat.com>
3046 * config/alpha/alpha.c (alpha_in_small_data_p): Return false for
3049 2002-05-28 Richard Henderson <rth@redhat.com>
3051 * config.gcc: Obsolete mn10200.
3053 2002-05-28 Neil Booth <neil@daikokuya.demon.co.uk>
3055 * cppexp.c (interpret_number): Optimize for single-digit
3056 and less-than-half-precision cases.
3057 (num_trim, num_positive, num_div_op): Cast constants.
3059 2002-05-27 Bo Thorsen <bo@suse.de>
3061 * config/i386/libgcc-x86_64-glibc.ver: Copy this file from the
3062 3.1 branch. The file was made by Jakub Jelinek.
3063 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Add i386
3064 support so multilib doesn't break. And don't define this at all
3065 when -Dinhibit_libc is used.
3066 (MULTILIB_DEFAULTS): Always set default to 64 bit compilation.
3067 * config/i386/t-linux64: Implement full multilib support. Patch
3068 originally done by Andreas Jaeger and Jakub Jelinek.
3070 2002-05-27 Roger Sayle <roger@eyesopen.com>
3072 * c-common.c: Add support for __attribute__((nothrow)) to specify
3073 that a function cannot throw an exception (using TREE_NOTHROW).
3074 (handle_nothrow_attribute): New function to process this attribute.
3076 * doc/extend.texi: Document the new nothrow function attribute.
3078 2002-05-27 H.J. Lu (hjl@gnu.org)
3080 * cppexp.c (num_trim): Use 1UL instead of 1 for long int.
3081 (num_positive): Likewise.
3082 (num_div_op): Likewise.
3084 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
3086 * c-common.c (c_common_init): Always use intmax_t.
3088 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
3090 * c-common.c (c_common_init): Use intmax_t for now.
3092 2002-05-24 Andrew Haley <aph@redhat.com>
3094 * fold-const.c (fold): Don't convert (T)(x & c) into (T)x & (T)c
3095 if T is a boolean type.
3097 2002-05-27 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3099 * basic-block.h (last_basic_block): Defined as synonym for
3101 * cfganal.c (mark_dfs_back_edges, flow_reverse_top_sort_order_compute,
3102 flow_depth_first_order_compute, flow_preorder_transversal_compute,
3103 flow_dfs_compute_reverse_init): Replaced relevant occurences of
3104 n_basic_blocks with last_basic_block.
3105 * cfgbuild.c (make_edges): Likewise.
3106 * cfgloop.c (flow_loop_scan, flow_loops_find): Likewise.
3107 * cfgrtl.c (verify_flow_info, purge_all_dead_edges): Likewise.
3108 * combine.c (combine_instructions): Likewise.
3109 * df.c (df_alloc, df_analyse_1, df_analyse, iterative_dataflow_sbitmap,
3110 iterative_dataflow_bitmap): Likewise.
3111 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
3112 calc_idoms, idoms_to_doms): Likewise.
3113 * flow.c (update_life_info_in_dirty_blocks, free_basic_block_vars):
3115 * gcse.c (gcse_main, alloc_gcse_mem, compute_local_properties,
3116 compute_hash_table, expr_reaches_here_p, one_classic_gcse_pass,
3117 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p,
3118 one_pre_gcse_pass, compute_transpout, delete_null_pointer_checks_1,
3119 delete_null_pointer_checks, compute_code_hoist_vbeinout,
3120 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
3121 compute_store_table, build_store_vectors): Likewise.
3122 * haifa-sched.c (sched_init): Likewise.
3123 * ifcvt.c (if_convert): Likewise.
3124 * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
3125 pre_edge_lcm, compute_available, compute_nearerout,
3126 compute_rev_insert_delete, pre_edge_rev_lcm, optimize_mode_switching):
3128 * predict.c (estimate_probability, process_note_prediction,
3129 note_prediction_to_br_prob): Likewise.
3130 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX): Likewise.
3131 * recog.c (split_all_insns, peephole2_optimize): Likewise.
3132 * regrename.c (copyprop_hardreg_forward): Likewise.
3133 * resource.c (init_resource_info): Likewise.
3134 * sched-rgn.c (build_control_flow, find_rgns, compute_trg_info,
3135 init_regions, schedule_insns): Likewise.
3136 * ssa-ccp.c (ssa_const_prop): Likewise.
3137 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
3138 * ssa.c (compute_dominance_frontiers,
3139 compute_iterated_dominance_frontiers, convert_to_ssa): Likewise.
3141 * df.c (df_refs_unlink): Fix FOR_EACH_BB usage (in #if 0'ed code)
3142 * gcse.c (alloc_rd_mem, alloc_avail_expr_mem): Use n_blocks for vector
3145 Mon May 27 14:28:12 CEST 2002 Jan Hubicka <jh@suse.cz>
3147 * basic-block.h (can_hoist_p, hoist_insn_after, hoist_insn_to_edge):
3149 * rtlanal.c (hoist_test_store, can_hoist_insn_p, hoist_update_store,
3150 hoist_insn_after, hoist_insn_to_edge): New.
3152 Mon May 27 12:14:02 CEST 2002 Jan Hubicka <jh@suse.cz>
3154 * basic-block.h (PEOP_SCAN_DEAD_STORES): New.
3155 (PROP_FINAL): Include.
3156 * flow.c (life_analysis, update_life_info,
3157 init_propagate_block_info, mark_set_1, mark_used_rgs):
3158 Support SCAN_DEAD_STORE.
3160 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
3162 * c-common.c (c_common_init): Set CPP arithmetic precision.
3163 * cppexp.c (cpp_num_part): Move typedef ...
3164 * cpphash.h: ...here; make unsigned HOST_WIDE_INT.
3165 * cppinit.c (cpp_create_reader): Default to host long arithmetic.
3166 (sanity_checks): Update.
3168 2002-05-26 Geoffrey Keating <geoffk@redhat.com>
3170 * Makefile.in (INSTALL_HEADERS): Add 'install-mkheaders'.
3171 (mkheaders): New rule.
3172 (install-mkheaders): New rule.
3173 * configure.in (all_outputs): Add mkheaders.
3174 * configure: Regenerate.
3175 * mkheaders.in: New file.
3177 2002-05-26 Jakub Jelinek <jakub@redhat.com>
3179 * cse.c (fold_rtx): Don't optimize if SUBREG changes mode class.
3181 2002-05-26 Andreas Jaeger <aj@suse.de>
3183 * cfg.c (dump_flow_info): Remove extra argument to fprintf.
3185 2002-05-26 Neil Booth <neil@daikokuya.demon.co.uk>
3187 * cppexp.c (possible_sum_sign, integer_overflow, left_shift,
3188 right_shift): Remove.
3189 (cpp_num, cpp_num_part, PART_PRECISION, HALF_MASK, LOW_PART,
3191 (struct op): Use cpp_num.
3192 (num_zerop, num_eq, num_positive, num_greater_freq, num_trim,
3193 num_part_mul, num_unary_op, num_binary_op, num_negate,
3194 num_bitwise_op, num_inequality_op, num_equality_op, num_mul,
3195 num_div_op, num_lshift, num_rshift, append_digit): New.
3196 (interpret_number, parse_defined, eval_token, reduce): Update
3197 for two-integer arithmetic.
3198 (binary_handler): New typedef.
3200 (COMPARE, EQUALITY, BITWISE, MINMAX, UNARY, SHIFT): Delete.
3201 (_cpp_parse_expr, reduce): Update to handle two-integers.
3202 * cpplib.c (_cpp_test_assertion): Back up on CPP_EOF.
3204 2002-05-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
3206 * config/avr/avr-protos.h (avr_out_sbxx_branch): Declare.
3207 * config/avr/avr.c (jump_over_one_insn_p): Take length of the
3208 branch insn into account, do not assume 1.
3209 (avr_out_sbxx_branch): New function. Optimize cases of skipping
3210 over single word insn. Handle upper half of I/O space too.
3211 * config/avr/avr.md (*sbrx_branch): Use it.
3212 (*sbrx_and_branchhi, *sbrx_and_branchsi): Likewise.
3213 (*sbix_branch, *sbix_branch_bit7): Likewise.
3214 (*sbix_branch_tmp, *sbix_branch_tmp_bit7): New.
3215 Use RTL peepholes to optimize register operand sign tests.
3217 2002-05-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
3219 * config/avr/avr.c (avr_asm_only_p): New variable.
3220 (avr_override_options): Set it here if AVR1.
3221 (asm_file_start): Test it here, report an error if set.
3223 2002-05-26 Kazu Hirata <kazu@cs.umass.edu>
3225 * alias.c: Fix formatting.
3226 * attribs.c: Likewise.
3227 * bb-reorder.c: Likewise.
3228 * bitmap.c: Likewise.
3229 * bitmap.h: Likewise.
3230 * builtins.c: Likewise.
3232 Sun May 26 14:00:44 CEST 2002 Jan Hubicka <jh@suse.cz>
3234 * reload.c (find_valid_class): Accept new argument DEST,
3235 choose class accordingly.
3236 (push_reload): Update callers.
3238 2002-05-26 Andreas Jaeger <aj@suse.de>
3240 * combine.c (combine_instructions): Do not indent #if for
3243 2002-05-25 Richard Henderson <rth@redhat.com>
3245 * c-pragma.c (apply_pragma_weak): Convert value identifier to
3246 string for decl_attributes.
3247 (handle_pragma_weak): Call assemble_alias if we're modifying
3250 2002-05-25 Richard Henderson <rth@redhat.com>
3253 * config/sparc/sparc.c (sparc_output_mi_thunk): New implementation
3254 using rtl instead of fprintf.
3255 * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Use it.
3256 * config/sparc/sparc-protos.h: Update.
3258 2002-05-25 Neil Booth <neil@daikokuya.demon.co.uk>
3260 * Makefile.in (C_COMMON_H): Fix.
3261 Update other targets.
3262 * c-common.c: Don't include c-lex.h.
3263 (builtin_define_with_value): Make static and prototype.
3264 (builtin_define_std): Move from c-lex.h.
3265 * c-common.h (init_c_lex): Move from c-lex.h.
3266 * c-decl.c: Don't include c-lex.h.
3267 (make_pointer_declarator): Move from c-parse.in.
3268 * c-lex.c: Don't include c-lex.h.
3270 * c-parse.in: Don't include c-lex.h; include c-pragma.h.
3271 (make_pointer_declarator): Move to c-decl.c.
3272 * c-pragma.c: Don't include c-lex.h.
3273 * c-pragma.h (yydebug, YYDEBUG, parse_in, c_lex): Move from c-lex.h.
3274 * c-tree.h (make_pointer_declarator): New.
3276 * passes.texi, tm.texi: Update.
3278 * Make-lang.in: Update and correct.
3279 * objc-act.c: Don't include c-lex.h or cpplib.h.
3281 * treetree.c: Don't include c-lex.h.
3283 * darwin-c.c: Don't include c-lex.h.
3284 * c4x/c4x-c.c: Don't include c-lex.h.
3285 * c4x/t-c4x: Update.
3286 * i370/i370-c.c: Don't include c-lex.h.
3287 * i370/t-i370: Update.
3288 * i960/i960-c.c: Don't include c-lex.h.
3289 * i960/i960.c: Don't include cpplib.h, c-lex.h or c-pragma.h.
3290 * i960/t-960bare: Update.
3291 * i960/t-vxworks: Update.
3292 * rs6000/rs6000-c.c: Don't include c-lex.h; include c-pragma.h.
3293 * rs6000/t-darwin: Update.
3294 * rs6000/t-rs6000-c-rule: Update.
3295 * v850/v850-c.c: Don't include c-lex.h.
3296 * v850/v850.c: Don't include c-lex.h or cpplib.h.
3299 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
3301 * tree.def: Fix typos.
3302 * doc/install.texi: Likewise.
3304 2002-05-25 Richard Henderson <rth@redhat.com>
3306 * configure.in (HAVE_AS_TLS): Add ia64 test.
3307 * configure: Rebuild.
3308 * config/ia64/ia64.c (ia64_tls_size_string, ia64_tls_size): New.
3309 (override_options): Set it.
3310 (TARGET_HAVE_TLS): New.
3311 (sdata_symbolic_operand): Look for 's'.
3312 (tls_symbolic_operand): New.
3313 (ia64_expand_load_address): Abort for tls symbols.
3314 (gen_tls_get_addr): New.
3315 (gen_thread_pointer): New.
3316 (ia64_expand_move): Split out from movdi. Handle tls symbols.
3317 (rtx_needs_barrier): Add new unspecs.
3318 (ia64_encode_section_info): Handle tls symbols.
3319 (ia64_strip_name_encoding): Strip two encoding chars.
3320 * config/ia64/ia64.h (ia64_tls_size, ia64_tls_size_string): New.
3321 (TARGET_TLS14, TARGET_TLS22, TARGET_TLS64): New.
3322 (TARGET_OPTIONS): Add tls-size.
3323 (ENCODE_SECTION_INFO_CHAR): Rename from SDATA_NAME_FLAG_CHAR.
3324 * config/ia64/ia64.md (UNSPEC_LTOFF_DTPMOD, UNSPEC_LTOFF_DTPREL,
3325 UNSPEC_DTPREL, UNSPEC_LTOFF_TPREL, UNSPEC_TPREL, UNSPEC_LD_BASE): New.
3326 (movqi, movhi, movsi, movdi, movti): Use ia64_expand_move.
3327 (movsf, movdf): Likewise.
3328 (movdi_symbolic): Use match_scratch. Don't split if we won't
3329 have a scratch availiable.
3330 (load_ltoff_dtpmod, load_dtprel, load_dtprel64, load_dtprel22,
3331 add_dtprel, add_dtprel14, add_dtprel22, load_ltoff_tprel, load_tprel,
3332 load_tprel64, load_tprel22, add_tprel, add_tprel14, add_tprel22): New.
3333 * config/ia64/ia64-protos.h: Update.
3334 * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
3335 sdata_symbolic_operand.
3336 (ASM_OUTPUT_LABELREF): Strip two characters.
3338 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
3340 * combine.c (simplify_set): Remove an unnecessary subreg.
3342 2002-05-25 Marek Michalkiewicz <marekm@amelek.gda.pl>
3344 * config/avr/avr.c (avr_handle_progmem_attribute): Handle TYPE_DECL.
3346 * config/avr/avr.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_BSS): New.
3348 2002-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
3350 * toplev.c (output_clean_symbol_name): Fix another thinko. Gosh.
3352 2002-05-25 Roger Sayle <roger@eyesopen.com>
3354 * simplify-rtx.c (simplify_gen_relational): Simplify the RTX
3355 (cond (compare x y) 0) into the equivalent (cond x y).
3357 2002-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
3359 * toplev.c (output_clean_symbol_name): Use xstrdup. Fix thinko.
3361 2002-05-24 Zack Weinberg <zack@codesourcery.com>
3363 * config.gcc: Remove all stanzas for previously obsoleted
3364 systems. Where necessary, add explicit error stanzas to
3365 prevent removed systems from being misidentified as something
3366 else. Begin a fresh obsoletions list, with the systems that
3367 were reprieved last round.
3368 * doc/install.texi: Remove all mention of dead targets.
3369 * fixinc/mkfixinc.sh: Likewise.
3371 * config/arm/arm.h: Bit 31 of target_flags is no longer
3374 * config/1750a/1750a-protos.h, config/1750a/1750a.c,
3375 config/1750a/1750a.h, config/1750a/1750a.md, config/1750a/ms1750.inc,
3376 config/a29k/a29k-protos.h, config/a29k/a29k.c, config/a29k/a29k.h,
3377 config/a29k/a29k.md, config/a29k/rtems.h, config/a29k/t-a29kbare,
3378 config/a29k/t-vx29k, config/a29k/unix.h, config/a29k/vx29k.h,
3379 config/alpha/osf12.h, config/alpha/osf2or3.h,
3380 config/arm/arm-wince-pe.h, config/arm/arm.h, config/arm/riscix.h,
3381 config/arm/riscix1-1.h, config/arm/rix-gas.h, config/arm/t-riscix,
3382 config/clipper/clipper-protos.h, config/clipper/clipper.c,
3383 config/clipper/clipper.h, config/clipper/clipper.md,
3384 config/clipper/clix.h, config/convex/convex-protos.h,
3385 config/convex/convex.c, config/convex/convex.h,
3386 config/convex/convex.md, config/convex/fixinc.convex,
3387 config/convex/proto.h, config/elxsi/elxsi-protos.h,
3388 config/elxsi/elxsi.c, config/elxsi/elxsi.h, config/elxsi/elxsi.md,
3389 config/i386/386bsd.h, config/i386/aix386.h, config/i386/aix386ng.h,
3390 config/i386/bsd386.h, config/i386/dgux.h, config/i386/djgpp-rtems.h,
3391 config/i386/isc.h, config/i386/iscdbx.h, config/i386/linux-oldld.h,
3392 config/i386/next.h, config/i386/osf1-ci.asm, config/i386/osf1-cn.asm,
3393 config/i386/osf1elf.h, config/i386/osf1elfgdb.h, config/i386/osfelf.h,
3394 config/i386/osfrose.h, config/i386/rtems.h, config/i386/seq-gas.h,
3395 config/i386/seq-sysv3.h, config/i386/seq2-sysv3.h,
3396 config/i386/sequent.h, config/i386/sun.h, config/i386/sun386.h,
3397 config/i386/t-dgux, config/i386/t-next, config/i386/t-osf,
3398 config/i386/t-osf1elf, config/i860/bsd-gas.h, config/i860/bsd.h,
3399 config/i860/fx2800.h, config/i860/i860-protos.h, config/i860/i860.c,
3400 config/i860/i860.h, config/i860/i860.md, config/i860/mach.h,
3401 config/i860/paragon.h, config/i860/sysv3.h, config/i860/sysv4.h,
3402 config/i860/t-fx2800, config/i860/varargs.asm, config/m68k/a-ux.h,
3403 config/m68k/altos3068.h, config/m68k/apollo68.h,
3404 config/m68k/aux-crt1.c, config/m68k/aux-crt2.asm,
3405 config/m68k/aux-crtn.asm, config/m68k/aux-exit.c,
3406 config/m68k/aux-low.gld, config/m68k/aux-mcount.c,
3407 config/m68k/auxas.h, config/m68k/auxgas.h, config/m68k/auxgld.h,
3408 config/m68k/auxld.h, config/m68k/ctix.h, config/m68k/dpx2.h,
3409 config/m68k/dpx2.ifile, config/m68k/dpx2cdbx.h, config/m68k/dpx2g.h,
3410 config/m68k/isi-nfp.h, config/m68k/isi.h, config/m68k/lynx-ng.h,
3411 config/m68k/lynx.h, config/m68k/math-3300.h, config/m68k/news.h,
3412 config/m68k/news3.h, config/m68k/news3gas.h, config/m68k/newsgas.h,
3413 config/m68k/next.h, config/m68k/next21.h, config/m68k/rtems.h,
3414 config/m68k/t-aux, config/m68k/t-lynx, config/m68k/t-next,
3415 config/m68k/x-next, config/m88k/dgux.h, config/m88k/dgux.ld,
3416 config/m88k/dguxbcs.h, config/m88k/dolph.h, config/m88k/dolphin.ld,
3417 config/m88k/luna.h, config/m88k/m88k-coff.h, config/m88k/sysv3.h,
3418 config/m88k/t-bug, config/m88k/t-dgux, config/m88k/t-dgux-gas,
3419 config/m88k/t-dguxbcs, config/m88k/t-dolph, config/m88k/t-m88k-gas,
3420 config/m88k/t-tekXD88, config/m88k/tekXD88.h, config/m88k/tekXD88.ld,
3421 config/mips/bsd-4.h, config/mips/bsd-5.h, config/mips/dec-bsd.h,
3422 config/mips/dec-osf1.h, config/mips/elflorion.h,
3423 config/mips/iris4loser.h, config/mips/mips-5.h, config/mips/news4.h,
3424 config/mips/news5.h, config/mips/nws3250v4.h, config/mips/osfrose.h,
3425 config/mips/svr3-4.h, config/mips/svr3-5.h, config/mips/svr4-4.h,
3426 config/mips/svr4-5.h, config/mips/svr4-t.h, config/mips/t-bsd,
3427 config/mips/t-bsd-gas, config/mips/t-svr3, config/mips/t-svr3-gas,
3428 config/mips/t-svr4, config/mips/t-svr4-gas, config/mips/t-ultrix,
3429 config/mips/ultrix.h, config/nextstep-protos.h, config/nextstep.c,
3430 config/nextstep.h, config/nextstep21.h, config/ns32k/encore.h,
3431 config/ns32k/merlin.h, config/ns32k/pc532-mach.h,
3432 config/ns32k/pc532-min.h, config/ns32k/pc532.h,
3433 config/ns32k/sequent.h, config/ns32k/tek6000.h,
3434 config/ns32k/tek6100.h, config/ns32k/tek6200.h, config/pj/lib1funcs.S,
3435 config/pj/linux.h, config/pj/pj-protos.h, config/pj/pj.c,
3436 config/pj/pj.h, config/pj/pj.md, config/pj/pjl.h, config/pj/t-pj,
3437 config/sparc/rtems.h, config/we32k/we32k-protos.h,
3438 config/we32k/we32k.c, config/we32k/we32k.h, config/we32k/we32k.md:
3441 2002-05-24 Richard Henderson <rth@redhat.com>
3443 * flags.h (TLS_MODEL_GLOBAL_DYNAMIC): Set to 1.
3444 * toplev.c (flag_tls_default) Set to TLS_MODEL_GLOBAL_DYNAMIC.
3445 * config/i386/i386.c (tls_model_chars): Add leading space.
3446 (tls_symbolic_operand): Don't bias by 1.
3447 (legitimize_address): Don't unbias by 1.
3449 2002-05-24 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
3451 * lcm.c (optimize_mode_switching): Change bb used as indices
3454 2002-05-24 Richard Henderson <rth@redhat.com>
3456 * config/ia64/ia64.c (ia64_reorg): Use update_life_info instead
3457 of update_life_info_in_dirty_blocks.
3459 2002-05-24 Jakub Jelinek <jakub@redhat.com>
3462 * final.c (get_mem_expr_from_op): Return 0 if op is NULL.
3464 2002-05-24 Neil Booth <neil@daikokuya.demon.co.uk>
3466 PR preprocessor/6780
3467 * cppmacro.c (enter_macro_context): Clear state.angled_headers.
3469 2002-05-24 Jim Blandy <jimb@redhat.com>
3471 * dwarf2out.c (dwarf2out_finish): Don't forget to emit a final
3472 entry with a type code of zero, marking the end of the compilation
3475 2002-05-24 Richard Henderson <rth@redhat.com>
3477 * varasm.c (asm_output_bss): Always output one byte.
3478 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
3480 2002-05-24 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
3482 * tree.c (decl_type_context): Return NULL_TREE if decl's context is a
3485 2002-05-24 Andreas Jaeger <aj@suse.de>
3487 * ggc-page.c (alloc_page): Cast variables of type size_t to
3488 unsigned long, adjust printf format string.
3489 (ggc_alloc): Likewise.
3490 (ggc_print_statistics): Likewise.
3491 (ggc_print_statistics): Correct printf format string for SCALE to
3494 2002-05-24 Danny Smith <dannysmith@users.sourceforge.net>
3496 * config/i386/mingw32.h (CPP_SPEC): Remove -remap.
3498 2002-05-23 Gabriel Dos Reis <gdr@codesourcery.com>
3499 Zack Weinberg <zack@codesourcery.com>
3501 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Properly output
3503 * dwarf2out.c (lookup_filename): Properly quote filename in .file
3504 directive in assembly file.
3505 * config/m68k/dpx2.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
3506 * config/m88k/m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
3507 * config/pj/pj.h (ASM_FILE_START): Likewise.
3508 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
3509 * config/avr/avr.c (asm_file_end): Likewise.
3510 * toplev.c (output_quoted_string): Handle possibly signed plain
3512 * toplev.h (output_clean_symbol_name): Declare
3513 * toplev.c (output_clean_symbol_name): Define.
3514 * config/alpha/alpha.c (unicosmk_output_module_name): Use it.
3515 * config/1750a/1750a.h (ASM_FILE_START): Likewise.
3517 2002-05-24 Alan Modra <amodra@bigpond.net.au>
3519 * config/rs6000/rs6000.c (output_toc): Mask longs to 32 bits.
3521 2002-05-23 Vladimir Makarov <vmakarov@redhat.com>
3523 * genautomata.c (reserv_sets_hash_value): Use shift equal to 3/4
3524 of size of unsigned.
3526 2002-05-23 Richard Henderson <rth@redhat.com>
3528 * configure.in (HAVE_AS_TLS): New test.
3529 * config.in, configure: Rebuild.
3530 * config/i386/i386.c (TARGET_HAVE_TLS): Set if HAVE_AS_TLS.
3531 (ix86_tls_dialect_string, ix86_tls_dialect): New.
3532 (override_options): Set it.
3533 (tls_model_chars, tls_symbolic_operand): New.
3534 (tls_symbolic_operand_1, global_dynamic_symbolic_operand): New.
3535 (local_dynamic_symbolic_operand, initial_exec_symbolic_operand): New.
3536 (local_exec_symbolic_operand): New.
3537 (get_pic_label_name): Merge into output_set_got.
3538 (ix86_asm_file_end): Emit pic_label_name if defined.
3539 (legitimate_constant_p, constant_address_p): New.
3540 (legitimate_pic_operand_p): New.
3541 (legitimate_pic_address_disp_p): Handle GOTTPOFF, NTPOFF, DTPOFF.
3542 (legitimate_address_p): Likewise.
3543 (ix86_encode_section_info): Rename from i386_; handle tls decls.
3544 (ix86_strip_name_encoding): New.
3545 (get_thread_pointer): New.
3546 (legitimize_address): Handle tls symbols.
3547 (output_pic_addr_const): Handle GOTTPOFF, TPOFF, NTPOFF, DTPOFF.
3549 (struct machine_function): Add some_ld_name.
3550 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Set it.
3551 (print_operand) [&]: Use it. Handle UNSPEC_TP.
3552 (output_addr_const_extra): New.
3553 (maybe_get_pool_constant): New.
3554 (ix86_split_to_parts): Use it.
3555 (ix86_expand_move): Handle tls symbols.
3556 (ix86_tls_get_addr): New.
3557 * config/i386/i386.h (TARGET_GNU_TLS, TARGET_SUN_TLS): New.
3558 (TARGET_OPTIONS): Add tls-dialect.
3559 (CONSTANT_ADDRESS_P): Use new out-of-line function.
3560 (LEGITIMATE_CONSTANT_P): Likewise.
3561 (LEGITIMATE_PIC_OPERAND_P): Likewise.
3562 (TARGET_STRIP_NAME_ENCODING): New.
3563 (ASM_OUTPUT_LABELREF): New.
3564 (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
3565 (OUTPUT_ADDR_CONST_EXTRA): New.
3566 (PREDICATE_CODES): Update.
3567 (ix86_tls_dialect, ix86_tls_dialect_string): New.
3568 * config/i386/i386.md: Regroup and renumber unspec constants.
3569 (tls_global_dynamic_gnu, tls_global_dynamic_sun): New.
3570 (tls_local_dynamic_base_gnu, tls_local_dynamic_base_sun): New.
3571 (tls_global_dynamic, tls_local_dynamic_base): New.
3572 (tls_local_dynamic_once): New.
3573 * config/i386/i386-protos.h: Update.
3575 2002-05-23 Richard Henderson <rth@redhat.com>
3577 * genemit.c (gen_insn): Print file:lineno comment before function.
3579 * gensupport.c (struct queue_elem): Add filename member.
3580 (queue_pattern): Initialize it; update all callers.
3581 (process_include): Don't free filename.
3582 (read_md_rtx): Set read_rtx_filename.
3584 2002-05-23 Hans Boehm <Hans_Boehm@hp.com>
3586 * config/ia64/linux.h (IA64_GATE_AREA_END): Adjust for 64K pages.
3588 2002-05-23 Richard Henderson <rth@redhat.com>
3590 * config/i386/i386.c (output_set_got): Fix typo in pic no-deep case.
3592 2002-05-23 Richard Henderson <rth@redhat.com>
3594 * doc/extend.texi (C++98 Thread-Local Edits): Update with
3595 commentary from Mark.
3597 2002-05-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3599 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1):
3600 Use FOR_EACH_BB macros to iterate over basic block chain.
3601 * cfg.c (clear_edges, clear_bb_flags, dump_flow_info,
3602 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges):
3604 * cfganal.c (set_edge_can_fallthru_flag, flow_call_edges_add,
3605 find_unreachable_blocks, create_edge_list, verify_edge_list,
3606 remove_fake_edges, add_noreturn_fake_exit_edges,
3607 flow_preorder_transversal_compute, flow_dfs_compute_reverse_execute):
3609 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
3610 find_sub_basic_blocks): Likewise.
3611 * cfgcleanup.c (try_optimize_cfg, delete_unreachable_blocks):
3613 * cfglayout.c (record_effective_endpoints, cleanup_unconditional_jumps):
3615 * cfgloop.c (flow_loops_cfg_dump, flow_loops_find):
3617 * cfgrtl.c (compute_bb_for_insn, tidy_fallthru_edges,
3618 commit_edge_insertions, commit_edge_insertions_watch_calls,
3619 print_rtl_with_bb, verify_flow_info, purge_all_dead_edges): Likewise.
3620 * combine.c (combine_instructions, reg_dead_at_p): Likewise.
3621 * conflict.c (conflict_graph_compute): Likewise.
3622 * df.c (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
3623 df_modified_p, df_refs_unlink, df_dump): Likewise.
3624 * dominance.c (calc_dfs_tree, calculate_dominance_info): Likewise.
3625 * final.c (compute_alignments): Likewise.
3626 * flow.c (update_life_info, update_life_info_in_dirty_blocks,
3627 delete_noop_moves, calculate_global_regs_live, allocate_bb_life_data,
3628 count_or_remove_death_notes): Likewise.
3629 * gcse.c (oprs_unchanged_p, record_last_reg_set_info,
3630 compute_hash_table, compute_kill_rd, compute_rd, compute_ae_kill,
3631 classic_gcse, compute_transp, cprop, compute_pre_data,
3632 compute_transpout, invalidate_nonnull_info,
3633 delete_null_pointer_checks_1, delete_null_pointer_checks,
3634 compute_code_hoist_vbeinout, hoist_code, compute_ld_motion_mems,
3635 compute_store_table, build_store_vectors, store_motion): Likewise.
3636 * global.c (global_conflicts, mark_elimination): Likewise.
3637 * graph.c (print_rtl_graph_with_bb): Likewise.
3638 * haifa-sched.c (sched_init): Likewise.
3639 * ifcvt.c (if_convert): Likewise.
3640 * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
3641 compute_available, compute_nearerout, compute_rev_insert_delete,
3642 optimize_mode_switching): Likewise.
3643 * local-alloc.c (local_alloc, update_equiv_regs): Likewise.
3644 * predict.c (estimate_probability, note_prediction_to_br_prob,
3645 propagate_freq, counts_to_freqs, expensive_function_p,
3646 estimate_bb_frequencies): Likewise.
3647 * profile.c (instrument_edges, get_exec_counts,
3648 compute_branch_probabilities, compute_checksum, branch_prob,
3649 find_spanning_tree): Likewise.
3650 * recog.c (split_all_insns, peephole2_optimize): Likewise.
3651 * reg-stack.c (reg_to_stack, convert_regs_entry, convert_regs):
3653 * regclass.c (scan_one_insn, regclass): Likewise.
3654 * regmove.c (mark_flags_life_zones, regmove_optimize,
3655 record_stack_memrefs): Likewise.
3656 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Likewise.
3657 * reload1.c (reload, reload_combine, fixup_abnormal_edges): Likewise.
3658 * resource.c (find_basic_block): Likewise.
3659 * sched-ebb.c (schedule_ebbs): Likewise.
3660 * sched-rgn.c (is_cfg_nonregular, build_control_flow,
3661 find_single_block_region, find_rgns, schedule_insns)
3662 * sibcall.c (optimize_sibling_and_tail_recursive_call)
3663 * ssa-ccp.c (optimize_unexecutable_edges,
3664 ssa_ccp_df_delete_unreachable_insns): Likewise.
3665 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
3666 * ssa.c (find_evaluations, compute_dominance_frontiers_1,
3667 rename_block, convert_to_ssa, compute_conservative_reg_partition,
3668 compute_coalesced_reg_partition, rename_equivalent_regs,
3669 convert_from_ssa): Likewise.
3670 * config/ia64/ia64.c (emit_predicate_relation_info, process_epilogue,
3671 process_for_unwind_directive): Likewise.
3673 * df.c (FOR_ALL_BBS): Removed.
3674 * gcse.c (struct null_pointer_info): Type of current_block field
3676 (struct reg_avail_info): Type of last_bb field changed.
3677 * config/ia64/ia64.c (block_num): Removed.
3678 (need_copy_state): Type changed.
3681 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
3683 * cppinit.c (mark_named_operators): Split out from init_builtins.
3684 (cpp_finish_options): Call it from here instead.
3686 2002-05-23 Jason Thorpe <thorpej@wasabisystems.com>
3688 * builtin-attrs.def: Update copyright years.
3689 (ATTR_NONNULL): New attribute identifier.
3690 (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_3): New
3691 attribute tree lists.
3692 (DEF_FORMAT_ATTRIBUTE): Chain a nonnull attribute for the
3694 (ATTR_FORMAT_ARG_1, ATTR_FORMAT_ARG_2): Use...
3695 (DEF_FORMAT_ARG_ATTRIBUTE): ...this to generate format_arg
3696 attribute lists. Chain the appropriate nonnull attribute.
3697 * c-format.c (check_format_arg): Remove null format string
3699 * testsuite/gcc.dg/format/null-1.c: New test.
3701 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3703 * Makefile.in (ADAC): Define.
3705 (.SUFFIXES): Move before language makefile fragments.
3706 (STAGE2_FLAGS_TO_PASS): Use stage CC as ADAC.
3708 2002-05-23 Mark Mitchell <mark@codesourcery.com>
3710 * varasm.c (make_decl_rtl): Don't allow weak variables to be
3713 Thu May 23 19:43:41 CEST 2002 Jan Hubicka <jh@suse.cz>
3715 * cfg.c (dump_flow_info): Print results of
3716 maybe_hot/probably_never_executed predicates.
3717 * toplev.c (open_dump_file): Print function frequency.
3719 2002-05-23 David S. Miller <davem@redhat.com>
3721 * cse.c (approx_reg_cost_1, approx_reg_cost): Recode to not use
3724 2002-05-23 Jason Thorpe <thorpej@wasabisystems.com>
3726 * c-common.c (warn_nonnull): Declare.
3727 (c_common_attribute_table): Add "nonnull" attribute.
3728 (handle_nonnull_attribute, check_function_nonnull, nonnull_check_p,
3729 check_nonnull_arg, get_nonnull_operand, check_function_arguments,
3730 check_function_arguments_recurse): New functions.
3731 * c-common.h (warn_nonnull): Declare extern.
3732 (check_function_arguments, check_function_arguments_recurse): New
3734 * c-decl.c (c_decode_option): Add -Wnonnull option.
3735 * c-format.c (set_Wformat): Set warn_nonnull if enabling
3737 (format_check_context): New structure.
3738 (check_format_info_recurse): Remove recursion and rename to...
3739 (check_format_arg): ...this. Update comment.
3740 (check_format_info): Use check_function_arguments_recurse.
3741 * c-typeck.c (build_function_call): Call check_function_arguments
3742 instead of check_function_format.
3743 * doc/extend.texi: Document "nonnull" attribute.
3744 * doc/invoke.texi: Docuemnt -Wnonnull option.
3745 * testsuite/gcc.dg/nonnull-1.c: New test.
3746 * testsuite/gcc.dg/nonnull-2.c: New test.
3748 2002-05-23 David S. Miller <davem@redhat.com>
3750 * basic-block.h (CLEANUP_NO_INSN_DEL): Define it.
3751 * cfgcleanup.c (cleanup_cfg): If it is set do not
3752 attempt to delete trivially dead insns.
3753 * except.c (finish_eh_generation): Pass it to cleanup_cfg.
3754 * toplev.c (rest_of_compilation): Document non-trivial aspect
3755 the RTL before optimize_save_area_alloca is run.
3757 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
3759 * c-lex.c (indent_level): Remove.
3760 (cb_file_change, c_lex): Remove indent level handling.
3761 * c-lex.h (indent_level): Remove.
3762 * input.h (struct file_stack): Remove indent_level.
3763 * toplev.c (push_srcloc): Remove indent_level handling.
3765 2002-05-23 Jakub Jelinek <jakub@redhat.com>
3768 * config/i386/i386.md (sse_movdfcc, sse_movdfcc_eq): Use Y instead
3769 of x in constraints for clarity.
3770 (sse_mov?fcc split): abort if op2 == op3.
3771 (sse_movsfcc_const0_1, sse_movsfcc_const0_2, sse_movsfcc_const0_3,
3772 sse_movsfcc_const0_4): Add earlyclobber.
3773 (sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
3774 sse_movdfcc_const0_4): Likewise. Use DFmode, not SFmode.
3775 Use Y instead of x in constraints.
3777 2002-05-23 Richard Henderson <rth@redhat.com>
3779 * doc/extend.texi (C99 Thread-Local Edits): New subsection.
3780 (C++98 Thread-Local Edits): New subsection.
3782 * config/i386/i386.c, config/i386/i386.h: Tidy comments and whitespace.
3783 (ix86_arch): Set type to enum processor_type.
3785 * config/i386/i386.md (movsi_1, movdi_1_rex64): Use
3786 LEGITIMATE_PIC_OPERAND_P not SYMBOLIC_CONST.
3788 2002-05-23 Jakub Jelinek <jakub@redhat.com>
3790 * configure.in: Fix as version test for binutils 2.12.1 releases
3792 * configure: Rebuilt.
3794 2002-05-23 Richard Henderson <rth@redhat.com>
3796 * config/i386/i386.c (get_pic_label_name): New.
3797 (load_pic_register): Remove.
3798 (output_set_got): New.
3799 (ix86_expand_prologue): Use gen_set_got; mark insn REG_MAYBE_DEAD.
3800 * config/i386/i386.md (UNSPEC_SET_GOT): New.
3801 (UNSPECV_PROLOGUE_SET_GOT, UNSPECV_PROLOGUE_GET_PC): Remove.
3802 (prologue_set_got, prologue_get_pc): Remove.
3803 (set_got, set_got_nopic, set_got_deep, set_got_nodeep): New.
3804 (builtin_setjmp_receiver): Use gen_set_got.
3805 * config/i386/i386-protos.h: Update.
3807 Thu May 23 09:22:23 CEST 2002 Jan Hubicka <jh@suse.cz>
3809 * gcse.c (hash_expr): Do not use alias set for hashing.
3811 2002-05-22 Kevin Buettner <kevinb@redhat.com>
3813 * dbxout.c (dbxout_class_name_qualifiers): New function.
3814 (dbxout_symbol): Output class/struct qualifiers for a .stabs entry.
3816 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
3818 * cpperror.c (_cpp_begin_message): No special casing
3820 * cppinit.c (sanity_checks): s/DL_FATAL/DL_ICE/.
3821 (output_deps, cpp_handle_option, cpp_post_options): Use DL_ERROR.
3822 * cpplib.c (do_include_common): Use DL_ERROR.
3823 * cpplib.h (CPP_FATAL_LIMIT, CPP_FATAL_ERRORS, DL_FATAL): Remove.
3825 * fix-header.c (read_scan_file): Update.
3827 2002-05-22 Richard Henderson <rth@redhat.com>
3829 * config/i386/i386.c (ix86_expand_call): New function, extracted
3830 from md call patterns. Add pic_offset_table_rtx to
3831 CALL_INSN_FUNCTION_USAGE when needed.
3832 * config/i386/i386.md (call_pop, call): Use ix86_expand_call.
3833 (call_value_pop, call_value, untyped_call): Likewise.
3834 (call_exp, call_value_exp): Remove.
3835 * config/i386/i386-protos.h: Update.
3837 2002-05-22 Richard Henderson <rth@redhat.com>
3839 * varasm.c (default_section_type_flags): Check for VAR_DECL
3840 before using DECL_THREAD_LOCAL.
3842 2002-05-22 David Edelsohn <edelsohn@gnu.org>
3844 * config/rs6000/aix43.h (LINK_SPEC): Add PE initializer.
3845 (STARTFILE_SPEC): Delete PE crt0.o.
3846 * config/rs6000/aix51.h: Same.
3847 * config/rs6000/rs6000.c: Use TARGET_XCOFF, not OBJECT_FORMAT_COFF.
3848 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Append [DS] to
3849 function descriptor symbol. Use RS6000_OUTPUT_BASENAME.
3850 (ASM_OUTPUT_DEF_FROM_DECLS): Use RS6000_OUTPUT_BASENAME.
3851 * config/rs6000/xcoff.h (ASM_OUTPUT_DEF): Define.
3853 2002-05-22 Richard Henderson <rth@redhat.com>
3855 * varasm.c (default_section_type_flags): Handle tls data and
3857 (default_unique_section): Handle tls sections.
3859 2002-05-23 Alan Modra <amodra@bigpond.net.au>
3861 * configure.in (CROSS): Define NATIVE_CROSS.
3862 * configure: Regenerate.
3863 * gcc.c (STARTFILE_PREFIX_SPEC): Define.
3864 (startfile_prefix_spec): New var.
3865 (static_specs): Add startfile_prefix_spec.
3866 (do_spec_2): Split out from..
3868 (main): Process startfile_prefix_spec.
3869 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC) Change name of
3871 (STARTFILE_PREFIX_SPEC): Define.
3872 (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Rewrite without
3875 2002-05-22 Kazu Hirata <kazu@cs.umass.edu>
3877 * cpperror.c: Fix formatting.
3878 * cppexp.c: Likewise.
3879 * cppfiles.c: Likewise.
3880 * cpphash.c: Likewise.
3881 * cpphash.h: Likewise.
3882 * cppinit.c: Likewise.
3883 * cpplex.c: Likewise.
3884 * cpplib.c: Likewise.
3885 * cppmacro.c: Likewise.
3886 * cppmain.c: Likewise.
3887 * cppspec.c: Likewise.
3889 2002-05-22 Jakub Jelinek <jakub@redhat.com>
3891 * combine.c (force_to_mode): Use gen_int_mode.
3892 Don't clear CONST_INT bits outside of mode.
3894 2002-05-22 Richard Henderson <rth@redhat.com>
3896 * fixinc/inclhack.def (thread_keyword): Match __thread as last arg.
3897 * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
3899 2002-05-22 Jakub Jelinek <jakub@redhat.com>
3902 * emit-rtl.c (widen_memory_access): Only call compare_tree_int
3903 if DECL_SIZE_UNIT is INTEGER_CST.
3905 2002-05-22 Richard Henderson <rth@redhat.com>
3907 * flow.c (life_analysis): Delete broken reg_label check.
3909 2002-05-22 Richard Henderson <rth@redhat.com>
3911 * fixinc/inclhack.def (thread_keyword): Allow as any prototype arg.
3912 * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
3914 Wed May 22 18:39:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
3916 * t-sh (LIB2FUNCS_EXTRA): Now embed-bb.c.
3917 (embed-bb.c): New rule.
3918 * t-sh64 (LIB2FUNCS_EXTRA): Don't change.
3919 * config/sh/embed_bb.c: Delete.
3921 Wed May 22 18:25:29 2002 J"orn Rennecke <joern.rennecke@superh.com>
3923 * c-common.c (cb_register_builtins): Don't indent '#' of #define.
3925 2002-05-22 Kazu Hirata <kazu@cs.umass.edu>
3927 * config/h8300/h8300.md (*andorqi3): New.
3929 2002-05-22 Neil Booth <neil@daikokuya.demon.co.uk>
3931 PR preprocessor/6517
3932 * Makefile.in: Update.
3933 * c-common.c (c_common_post_options): Add preprocessor
3934 errors to the error count.
3935 * c-lang.c (c_post_options): Kill.
3936 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
3937 * hooks.h: Add header guards.
3938 * langhooks-def.h: Include hooks.h.
3939 (LANG_HOOKS_POST_OPTIONS): Update.
3940 * langhooks.h (struct lang_hooks): Update post_options.
3941 * toplev.c (parse_options_and_default_flags): Update.
3943 * objc-lang.c (objc_post_options): Kill.
3944 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
3946 2002-05-21 Bruce Korb <bkorb@gnu.org>
3948 * fixinc/tests/base/pthread.h(THREAD_KEYWORD_CHECK): add fix check
3949 * fixinc/inclhack.def(thread_keyword): use c_fix = format.
3950 * fixinc/fixincl.x: regen.
3952 2002-05-21 Kazu Hirata <kazu@cs.umass.edu>
3954 * cfgbuild.c: Fix formatting.
3956 * cfgcleanup.c: Likewise.
3957 * cfglayout.c: Likewise.
3958 * cfgloop.c: Likewise.
3959 * cfgrtl.c: Likewise.
3961 2002-05-21 Richard Henderson <rth@redhat.com>
3963 * c-common.h (enum rid): Add RID_THREAD.
3964 * c-decl.c (start_decl): Do not set DECL_COMMON for tls variables.
3965 (grokdeclarator): Grok __thread.
3966 * c-parse.in (reswords): Add __thread.
3967 (rid_to_yy): Add RID_THREAD.
3969 * tree.h (DECL_THREAD_LOCAL): New.
3970 (struct tree_decl): Add thread_local_flag.
3971 * print-tree.c (print_node): Dump DECL_THREAD_LOCAL.
3972 * tree.c (staticp): TLS variables are not static.
3974 * target-def.h (TARGET_HAVE_TLS): New.
3975 * target.h (have_tls): New.
3976 * output.h (SECTION_TLS): New.
3977 * varasm.c (assemble_variable): TLS variables can't be common for now.
3978 (default_section_type_flags): Handle .tdata and .tbss.
3979 (default_elf_asm_named_section): Handle SECTION_TLS.
3980 (categorize_decl_for_section): Handle DECL_THREAD_LOCAL.
3982 * flags.h (flag_tls_default): Declare.
3983 * toplev.c (flag_tls_default): Define.
3984 (display_help): Display help for it.
3985 (decode_f_option): Set it.
3987 * doc/extend.texi (Thread-Local): New node describing language-level
3988 thread-local storage.
3989 * doc/invoke.texi (-ftls-model): Document.
3991 * fixinc/inclhack.def (thread_keyword): New.
3992 * fixinc/fixincl.x: Rebuild.
3994 2002-05-21 Jeffrey A Law <law@redhat.com>
3996 * optabs.c (expand_binop): For double-word integer multiplies,
3997 do not compute intermediate results into something that is
3998 not a register (such as a SUBREG or MEM).
4000 * i386.c (ix86_sched_reorder_ppro): Fix typo/thinko.
4001 (ix86_sched_reorder): Make sure to initialize scheduling
4002 data even when there's only one insn in the ready queue.
4004 2002-05-21 Vladimir Makarov <vmakarov@redhat.com>
4006 * genautomata.c (reserv_sets_hash_value): Fix a typo.
4008 2002-05-21 Vladimir Makarov <vmakarov@redhat.com>
4010 * genautomata.c (reserv_sets_hash_value): Define hash_value as
4011 set_el_t. Transform the hash value into unsigned.
4012 (output_cycle_reservs): Fix bug with output of repeated `nothing'.
4013 (transform_3): Add code to process `(A,B)+(D,E)'.
4015 2002-05-21 NIIBE Yutaka <gniibe@m17n.org>
4017 * reload1.c (do_output_reload): Run delete_output_reload
4020 2002-05-21 Roger Sayle <roger@eyesopen.com>
4023 * expr.c (STORE_MAX_PIECES): New macro to avoid immediate constants
4024 larger than INTEGER_CST. (store_by_pieces_1): Use it here...
4025 (can_store_by_pieces): ... and here to limit the largest mode used.
4026 Add a comment to document this function.
4028 2002-05-21 Richard Henderson <rth@redhat.com>
4030 * flow.c (life_analysis): Fix test for deleted label.
4032 2002-05-21 Neil Booth <neil@daikokuya.demon.co.uk>
4034 * doc/tm.texi: Fix typo.
4036 2002-05-21 Zack Weinberg <zack@codesourcery.com>
4038 * c-common.c (c_common_init): Set options->unsigned_char from
4040 (cb_register_builtins): Define __STRICT_ANSI__ and
4041 __CHAR_UNSIGNED__ here...
4042 * cppinit.c (init_builtins): Not here.
4043 (cpp_create_reader): unsigned_char option defaults to 0, not
4044 !DEFAULT_SIGNED_CHAR.
4045 (COMMAND_LINE_OPTIONS, cpp_handle_option): Lose -fsigned-char
4046 and -funsigned-char.
4048 * cpphash.h (struct spec_nodes): Kill n__STRICT_ANSI__.
4049 * cpphash.c (_cpp_init_hashtable): Don't set it.
4050 * cppmacro.c (builtin_macro) [BT_STDC]: Use the language setting
4051 directly. Clarify comment.
4053 2002-05-21 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4055 * bb-reorder.c (make_reorder_chain_1): Use prev_bb/next_bb to get to
4056 neighbouring basic blocks. Use ENTRY_BLOCK_PTR->next_bb instead of
4057 BASIC_BLOCK (0). Use EXIT_BLOCK_PTR->prev_bb instead of
4058 BASIC_BLOCK (n_basic_blocks - 1).
4059 * cfganal.c (can_fallthru, flow_call_edges_add,
4060 flow_preorder_transversal_compute): Too.
4061 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
4062 find_sub_basic_blocks): Too.
4063 * cfgcleanup.c (try_simplify_condjump, try_optimize_cfg): Too.
4064 * cfglayout.c (skip_insns_after_block, fixup_reorder_chain,
4065 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge): Too.
4066 * cfgrtl.c (tidy_fallthru_edges, verify_flow_info): Too.
4067 * combine.c (this_basic_block): Type changed to basic_block.
4068 (combine_instructions, set_nonzero_bits_and_sign_copies, try_combine,
4069 nonzero_bits, num_sign_bit_copies, get_last_value_validate,
4070 get_last_value, distribute_notes, distribute_links): Too.
4071 * final.c (compute_alignments): Too.
4072 * flow.c (regno_uninitialized, regno_clobbered_at_setjmp): Too.
4073 * function.c (thread_prologue_and_epilogue_insns): Too.
4074 * gcse.c (compute_code_hoist_vbeinout): Too.
4075 * global.c (build_insn_chain): Too.
4076 * ifcvt.c (find_if_block, find_cond_trap): Too.
4077 * predict.c (last_basic_block_p, note_prediction_to_br_prob): Too.
4078 * regmove.c (regmove_optimize): Too.
4079 * resource.c (find_basic_block): Too.
4080 * sched-ebb.c (schedule_ebbs): Too.
4081 * ssa-dce.c (find_control_dependence, find_pdom): Too.
4083 2002-05-21 Andreas Jaeger <aj@suse.de>
4085 * cppinit.c (sanity_checks): Avoid printf mismatch warnings.
4087 2002-05-21 Richard Henderson <rth@redhat.com>
4089 * reg-stack.c (swap_rtx_condition, subst_stack_regs_pat): Use
4090 unspec names, not numbers.
4092 2002-05-21 Joseph S. Myers <jsm28@cam.ac.uk>
4094 * doc/sourcebuild.texi: Mention snapshot-README and
4095 snapshot-index.html as needing updating for new front ends.
4097 2002-05-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4099 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Avoid warnings when
4100 disabling checking, and avoid multiple evaluation of RTX.
4102 2002-05-21 Richard Earnshaw <rearnsha@arm.com>
4104 * bitmap.c (bitmap_find_bit): Return early if we have the correct
4107 Tue May 21 10:51:54 CEST 2002 Jan Hubicka <jh@suse.cz>
4109 * profile.c (gen_edge_profiler): Set alias set before the memory is
4112 2002-05-20 David S. Miller <davem@redhat.com>
4114 * cselib.c (max_value_regs): New.
4115 (cselib_lookup, cselib_invalidate_regno): Initialize it when
4116 adding new entries to the REG_VALUES table and we are dealing with
4118 (clear_table): Initialize it.
4119 (cselib_invalidate_regno): Use it to determine which hard
4120 registers to scan when mode is not VOIDmode.
4122 2002-05-20 Duraid Madina <duraid@fl.net.au>
4124 * tradcpp.c (fixup_newlines): Use old-style function header.
4126 2002-05-20 Krister Walfridsson <cato@df.lth.se>
4128 * reload1.c (reload_cse_simplify): Fix typo in rtx code check.
4130 2002-05-20 H.J. Lu (hjl@gnu.org)
4132 Base on suggestions from Zhang Fuxin <fxzhang@ict.ac.cn>:
4134 * config/mips/mips.h (DFMODE_NAN): Defined.
4135 (SFMODE_NAN): Likewise.
4137 2002-05-20 Dale Johannesen <dalej@apple.com>
4139 * combine.c (cant_combine_insn_p): Back out my
4142 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
4144 * params.c: Fix formatting.
4145 * params.h: Likewise.
4146 * predict.c: Likewise.
4147 * prefix.c: Likewise.
4148 * print-rtl.c: Likewise.
4149 * print-tree.c: Likewise.
4150 * profile.c: Likewise.
4152 2002-05-20 H.J. Lu (hjl@gnu.org)
4154 * gcc/config/mips/linux.h (SDB_DEBUGGING_INFO): Undefine.
4156 2002-05-20 Nick Clifton <nickc@cambridge.redhat.com>
4158 * config/arm/arm-wince-pe.h (ASM_SPEC): Pass -mcpu and -march
4159 switches straight on to the assembler, do not abbreviate them.
4160 * config/arm/elf.h (ASM_SPEC): As above.
4161 * config/arm/semi.h (ASM_SPEC): As above.
4162 * config/arm/unknown-elf-oabi.h (ASM_SPEC): As above.
4163 * config/arm/xscale-coff.h (SUBTARGET_ASM_SPEC): Pass
4164 -mcpu=xscale on to the assembler by default.
4165 * config/arm/xscale-elf.h (SUBTARGET_ASM_SPEC): As above.
4167 2002-05-20 Richard Henderson <rth@redhat.com>
4169 * cse.c (canon_hash): Reorder do_not_record test. Always
4170 allow pic_offset_table_rtx.
4172 2002-05-19 Toon Moene <toon@moene.indiv.nluug.nl>
4174 * optabs.c (expand_cmplxdiv_wide): Use complex_part_zero_p.
4175 (expand_binop): Ditto (3 times).
4177 2002-05-19 Mark Mitchell <mitchell@doubledemon.codesourcery.com>
4179 * Makefile.in (distclean): Remove QMTest stuff.
4180 (QMTEST_PATH): New variable.
4181 (QMTESTFLAGS): Likewise.
4182 (QMTESTRUNFLAGS): Likewise.
4184 (QMTEST_GPP_TESTS): Likewise.
4185 (QMTEST_DIR): Likewise.
4186 (QMTEST_DIR/context): New target.
4187 (qmtest-g++): Likeise.
4188 (qmtest-gui): Likewise.
4189 (QMTEST_DIR/gpp-expected.qmr): Likewise.
4191 2002-05-19 Aldy Hernandez <aldyh@redhat.com>
4193 * config/rs6000/rs6000.h (FUNCTION_VALUE): Only return vectors in
4194 an altivec register if TARGET_ALTIVEC.
4196 * config/rs600/rs6000.c (rs6000_emit_move): Change VECTOR_MODE_P
4197 to ALTIVEC_VECTOR_MODE.
4198 (rs6000_va_arg): Only vectors of type AltiVec are 16 byte aligned.
4199 (rs6000_va_arg): Vectors may go in registers if they are not
4202 2002-05-19 Kazu Hirata <kazu@cs.umass.edu>
4204 * protoize.c: Fix formatting.
4206 2002-05-19 Richard Henderson <rth@redhat.com>
4208 * gensupport.c (init_include_reader): Merge into ...
4209 (process_include): ... here. Simplify composite path creation.
4210 Plug memory leaks. Fix file/line number tracking. Do not
4211 process_define_cond_exec. Return void.
4212 (process_rtx): Don't check process_include return value.
4214 2002-05-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4216 * basic_block.h (struct basic_block_def): Added prev_bb and next_bb
4218 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
4219 traversing basic block chain.
4220 (create_basic_block_structure, create_basic_block): Declaration changed.
4221 (link_block, unlink_block): Declare.
4222 * cfg.c (entry_exit_blocks): Initialize new fields.
4223 (link_block, unlink_block): New.
4224 (expunge_block_nocompact): Unlink basic block.
4225 (dump_flow_info): Print prev_bb/next_bb fields.
4226 * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Modified.
4227 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Modified.
4228 * cfglayout.c (fixup_reorder_chain, cfg_layout_duplicate_bb): Modified.
4229 * cfgrtl.c (create_basic_block_structure, create_basic_block,
4230 split_block, force_nonfallthru_and_redirect, split_edge): Modified.
4231 (verify_flow_info): Check that list agrees with numbering.
4233 2002-05-19 Neil Booth <neil@daikokuya.demon.co.uk>
4235 * c-common.c (preprocessing_asm): New macro.
4236 * c-lex.h (builtin_define, builtin_assert): Use pfile.
4240 * alpha.h (CPLUSPLUS_CPP_SPEC): Remove.
4241 (CPP_SPEC): Simplify.
4242 (TARGET_CPU_CPP_BUILTINS): Update.
4243 * freebsd.h (TARGET_OS_CPP_BUILTINS): New.
4244 (CPP_SPEC): Simplify.
4245 * linux.h (CPLUSPLUS_CPP_SPEC): Remove.
4246 (TARGET_OS_CPP_BUILTINS): Update.
4247 * osf.h (CPP_XFLOAT_SPEC): Kill.
4248 (TARGET_OS_CPP_BUILTINS): Update.
4249 (CPP_SUBTARGET_SPEC, SUBTARGET_EXTRA_SPECS): Simplify.
4250 * osf5.h (CPP_XFLOAT_SPEC): Kill.
4251 * vms.h (CPP_SUBTARGET_SPEC): Kill.
4252 (TARGET_OS_CPP_BUILTINS): Update.
4254 2002-05-19 Richard Henderson <rth@redhat.com>
4256 * varasm.c (default_binds_local_p): Fix typo.
4258 2002-05-19 Marek Michalkiewicz <marekm@amelek.gda.pl>
4260 * config/avr/avr.c (machine_dependent_reorg): Sign extend the
4261 CONST_INT operand to the correct mode after adding 1 to it.
4263 2002-05-19 Mark Mitchell <mark@codesourcery.com>
4265 * config.gcc (powerpc-wrs-windiss*): New target.
4267 2002-05-19 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4269 * config/rs6000/rs6000.md (ashrdi3_no_power): New.
4272 2002-05-18 Mark Mitchell <mark@codesourcery.com>
4274 * configure.in (AC_CHECK_FUNCS): Add checks for scandir and
4276 * config.in: Regenerated.
4277 * configure: Regenerated.
4279 2002-05-19 Richard Henderson <rth@redhat.com>
4281 * target-def.h (TARGET_BINDS_LOCAL_P): New.
4282 * target.h (struct gcc_target): Move boolean fields to the end.
4284 * varasm.c (default_binds_local_p): New.
4285 * output.h: Declare it.
4287 * config/alpha/alpha.c (alpha_encode_section_info): Use the new hook.
4288 * config/cris/cris.c (cris_encode_section_info): Likewise.
4289 * config/i386/i386.c (i386_encode_section_info): Likewise.
4290 * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
4291 * config/sh/sh.c (sh_encode_section_info): Likewise.
4293 * doc/tm.texi (TARGET_IN_SMALL_DATA_P): New.
4294 (TARGET_BINDS_LOCAL_P): New.
4296 2002-05-19 Richard Henderson <rth@redhat.com>
4298 * system.h (BLOCK_PROFILER, BLOCK_PROFILER_CODE,
4299 FUNCTION_BLOCK_PROFILER, FUNCTION_BLOCK_PROFILER_EXIT,
4300 MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Poison.
4302 * toplev.c (display_help): Kill -a -ax help.
4304 * config/1750a/1750a.h, config/alpha/alpha.h,
4305 config/clipper/clipper.h, config/dsp16xx/dsp16xx.h,
4306 config/h8300/h8300.h, config/i960/i960.h, config/m68k/tower-as.h,
4307 config/m88k/m88k.h, config/vax/vax.h, config/we32k/we32k.h:
4308 (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Kill.
4310 * libgcc2.c [L_bb] (BLOCK_PROFILER_CODE): Kill.
4311 * config/m68k/sun3.h (BLOCK_PROFILER_CODE): Kill.
4313 * config/i386/i386-protos.h (ix86_output_block_profiler): Kill.
4314 (ix86_output_function_block_profiler): Kill.
4315 * config/m68hc11/m68hc11.c (m68hc11_block_profiler): Kill.
4316 (m68hc11_function_block_profiler): Kill.
4317 * config/m68hc11/m68hc11-protos.h: Update.
4318 * config/m88k/m88k.c (output_block_profiler): Kill.
4319 (output_function_block_profiler): Kill.
4320 * config/m88k/m88k-protos.h: Update.
4322 2002-05-19 Richard Henderson <rth@redhat.com>
4324 * system.h (STRIP_NAME_ENCODING): Poison it.
4325 * output.h (STRIP_NAME_ENCODING): Remove.
4326 (default_strip_name_encoding): Declare.
4327 * target-def.h (TARGET_STRIP_NAME_ENCODING): New.
4328 * target.h (strip_name_encoding): New.
4329 * varasm.c (default_strip_name_encoding): New.
4331 * dwarf2asm.c, varasm.c, config/darwin.c, config/darwin.h,
4332 config/alpha/alpha.c, config/arm/pe.c, config/avr/avr.c,
4333 config/cris/cris.c, config/i386/cygwin.h, config/i386/interix.c,
4334 config/i386/winnt.c, config/m32r/m32r.h, config/mcore/mcore-elf.h,
4335 config/mcore/mcore-pe.h, config/mcore/mcore.c, config/mcore/mcore.h,
4336 config/mips/mips.c, config/mn10200/mn10200.h, config/mn10300/mn10300.h,
4337 config/pa/pa.c, config/pa/pa.h, config/pa/som.h,
4338 config/rs6000/rs6000.c, config/rs6000/sysv4.h, config/rs6000/xcoff.h,
4339 config/v850/v850.h: Use the hook, not the macro.
4341 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
4342 config/alpha/alpha.c, config/alpha/alpha.h, config/h8300/h8300.c,
4343 config/h8300/h8300.h, config/i386/cygwin.h, config/i386/i386-interix.h,
4344 config/i386/i386-protos.h, config/i386/win32.h, config/i386/winnt.c,
4345 config/ia64/ia64.c, config/ia64/ia64.h, config/m32r/m32r.c,
4346 config/m32r/m32r.h, config/mcore/mcore.c, config/mcore/mcore.h,
4347 config/pa/pa.c, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
4348 config/rs6000/xcoff.h, config/sh/sh.c, config/sh/sh.h,
4349 config/v850/v850.c, config/v850/v850.h:
4350 Move STRIP_NAME_ENCODING to out-of-line function and add
4351 TARGET_STRIP_NAME_ENCODING.
4353 * config/arm/arm.c, config/arm/arm.h, config/mmix/mmix-protos.h,
4354 config/mmix/mmix.c, config/mmix/mmix.h: Replace STRIP_NAME_ENCODING
4355 with TARGET_STRIP_NAME_ENCODING referencing existing function;
4356 make function static.
4358 * xcoffout.c: Include target.h
4359 * Makefile.in (xcoffout.o): Update.
4361 * config/avr/avr.c (avr_encode_section_info): Correct prototype.
4362 * config/avr/avr.h (STRIP_NAME_ENCODING): Remove.
4363 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Mark
4364 reloc argument unused.
4365 * config/sh/sh.c (TARGET_ENCODE_SECTION_INFO): New.
4367 * doc/tm.texi (TARGET_STRIP_NAME_ENCODING): Update from previous
4368 STRIP_NAME_ENCODING docs.
4370 2002-05-19 Andreas Jaeger <aj@suse.de>
4372 * gengenrtl.c: Add prototype for excluded_rtx.
4374 * real.h: Add prototype for exact_real_truncate.
4376 2002-05-18 Richard Henderson <rth@redhat.com>
4378 * system.h (ENCODE_SECTION_INFO): Poison it.
4379 * target-def.h (TARGET_ENCODE_SECTION_INFO): New.
4380 * target.h (encode_section_info): New.
4381 * varasm.c (make_decl_rtl, output_constant_def): Use it.
4382 * hooks.c (hook_tree_int_void): New.
4383 * hooks.h: Declare it.
4385 * config/darwin.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
4386 config/alpha/alpha.h, config/arm/pe.h, config/avr/avr-protos.h,
4387 config/avr/avr.c, config/avr/avr.h, config/c4x/c4x-protos.h,
4388 config/c4x/c4x.c, config/c4x/c4x.h, config/cris/cris-protos.h,
4389 config/cris/cris.c, config/cris/cris.h, config/i386/cygwin.h,
4390 config/i386/win32.h, config/ia64/ia64-protos.h, config/ia64/ia64.c,
4391 config/ia64/ia64.h, config/m32r/m32r-protos.h, config/m32r/m32r.c,
4392 config/m32r/m32r.h, config/m68hc11/m68hc11-protos.h,
4393 config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
4394 config/mcore/mcore-protos.h, config/mcore/mcore.c,
4395 config/mcore/mcore.h, config/mmix/mmix-protos.h, config/mmix/mmix.c,
4396 config/mmix/mmix.h, config/rs6000/rs6000-protos.h,
4397 config/rs6000/sysv4.h, config/stormy16/stormy16-protos.h,
4398 config/stormy16/stormy16.c, config/stormy16/stormy16.h:
4399 Replace ENCODE_SECTION_INFO with TARGET_ENCODE_SECTION_INFO
4400 referencing existing function. Make function static.
4402 * config/a29k/a29k.c, config/a29k/a29k.h, config/arc/arc.c,
4403 config/arc/arc.h, config/arm/arm.c, config/arm/arm.h,
4404 config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
4405 config/i370/i370.h, config/i386/i386-interix.h, config/i386/i386.c,
4406 config/i386/i386.h, config/i386/interix.c, config/m88k/m88k.c,
4407 config/m88k/m88k.h, config/mips/mips.c, config/mips/mips.h,
4408 config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa.c,
4409 config/pa/pa.h, config/romp/romp.c, config/romp/romp.h,
4410 config/rs6000/linux64.h, config/rs6000/xcoff.h, config/s390/s390.c,
4411 config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
4412 config/sparc/sparc.c, config/sparc/sparc.h, config/v850/v850.c,
4413 config/v850/v850.h, config/vax/vax.c, config/vax/vms.h,
4414 config/xtensa/xtensa.c, config/xtensa/xtensa.h:
4415 Move ENCODE_SECTION_INFO to out-of-line function and add
4416 TARGET_ENCODE_SECTION_INFO.
4418 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use hook, not macro.
4419 (ASM_DECLARE_OBJECT_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
4421 * config/arm/pe.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Rename
4423 (switch_to_section): Replace in_rdata case with in_readonly_data.
4425 * config/h8300/h8300.c (h8300_encode_label): Make static.
4426 * config/h8300/h8300-protos.h: Update.
4428 * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Rename
4429 from rs6000_encode_section_info; make static.
4430 (rs6000_xcoff_encode_section_info): New.
4432 * config/v850/v850.c (v850_encode_data_area): Make static.
4433 * config/v850/v850-protos.h: Update.
4435 * config/vax/vax.c: Include flags.h.
4436 (vms_select_section): Fix typo.
4438 * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update from previous
4439 ENCODE_SECTION_INFO docs.
4441 2002-05-18 Richard Henderson <rth@redhat.com>
4443 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Rename from
4444 REGISTER_TARGET_PRAGMAS.
4445 * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Redefine.
4447 * config.gcc: Do not use rs6000-c.c on powerpc-darwin.
4449 2002-05-18 Richard Henderson <rth@redhat.com>
4451 * system.h (SELECT_RTX_SECTION): Poison.
4452 * target-def.h (TARGET_ASM_SELECT_RTX_SECTION): New.
4453 * target.h (select_rtx_section): New.
4454 * varasm.c (output_constant_pool): Use it.
4455 (default_select_rtx_section, default_elf_select_rtx_section): New.
4456 * output.h: Declare them.
4458 * config/darwin.h (SELECT_RTX_SECTION): Move ...
4459 * config/darwin.c (machopic_select_rtx_section): ... here.
4460 * config/darwin-protos.h: Update.
4462 * config/nextstep.h (SELECT_RTX_SECTION): Move ...
4463 * config/nextstep.c (machopic_select_rtx_section): ... here.
4464 (nextstep_select_section): Rename variable to avoid macro clash.
4465 * config/nextstep-protos.h: Update.
4467 * config/elfos.h, config/svr3.h, config/arm/aof.h, config/c4x/c4x.h,
4468 config/i386/dgux.h, config/i386/osfrose.h, config/i386/sco5.h,
4469 config/i386/svr3gas.h, config/i860/paragon.h, config/ia64/aix.h,
4470 config/m32r/m32r.h, config/m68k/dpx2.h, config/m68k/lynx.h,
4471 config/m68k/m68k.h, config/m68k/tower-as.h, config/m88k/dgux.h,
4472 config/mcore/mcore-pe.h, config/mips/mips.h, config/mmix/mmix.h,
4473 config/pa/pa-linux.h, config/pa/pa.h, config/romp/romp.h,
4474 config/rs6000/lynx.h, config/rs6000/sysv4.h, config/s390/linux.h,
4475 config/sparc/sysv4.h, config/xtensa/elf.h, config/xtensa/linux.h
4476 (SELECT_RTX_SECTION): Remove.
4478 * config/darwin.h, config/elfos.h, config/nextstep.h,
4479 config/ia64/aix.h, config/ia64/sysv4.h, config/alpha/alpha.c,
4480 config/mips/mips.c, config/romp/romp.c, config/rs6000/sysv4.h,
4481 config/rs6000/xcoff.h, config/s390/s390.c, config/sparc/aout.h,
4482 config/sparc/lynx.h, config/xtensa/xtensa.c
4483 (TARGET_ASM_SELECT_RTX_SECTION): New.
4485 * config/alpha/elf.h (SELECT_RTX_SECTION): Move ...
4486 * config/alpha/alpha.c (alpha_elf_select_rtx_section): ... here.
4487 * config/ia64/sysv4.h (SELECT_RTX_SECTION): Move ...
4488 * config/ia64/ia64.c (ia64_select_rtx_section): ... here.
4489 (ia64_aix_select_rtx_section): New.
4490 * config/mips/iris6.h (READONLY_DATA_SECTION_ASM_OP): Undef before
4492 * config/mips/mips.c (mips_select_rtx_section): Make static.
4493 Support ELF SHF_MERGE features.
4494 * config/mips/mips-protos.h: Update.
4495 * config/rs6000/xcoff.h (SELECT_RTX_SECTION): Move ...
4496 * config/rs6000/rs6000.c (rs6000_xcoff_select_rtx_section): ... here.
4497 (rs6000_elf_select_rtx_section): Rename from rs6000_select_rtx_section;
4498 make static, fall back to default_elf_select_rtx_section.
4499 * config/rs6000/rs6000-protos.h: Update.
4500 * config/sparc/sparc.h (SELECT_RTX_SECTION): Move ...
4501 * config/sparc/sparc.c (sparc_aout_select_rtx_section): ... here.
4502 * config/sparc/sunos4.h (on_exit): Declare only if IN_LIBGCC2.
4503 * config/romp/romp.c (romp_select_rtx_section): New.
4504 * config/s390/s390.c (s390_select_rtx_section): New.
4505 * config/xtensa/xtensa.c: Include output.h. Shuffle local function
4506 declarations before target macro definition.
4507 (xtensa_emit_call): Use static buffer.
4508 (xtensa_select_rtx_section): New.
4509 * config/xtensa/xtensa.h (MAX_INT_TYPE_SIZE): Remove.
4510 (IMPLICIT_FIX_EXPR, EASY_DIV_EXPR): Remove.
4511 (ASM_OUTPUT_POOL_PROLOGUE): Update call to resolve_unique_section.
4513 * doc/tm.texi (TARGET_ASM_SELECT_RTX_SECTION): Update from
4514 SELECT_RTX_SECTION docs.
4516 Sun May 19 00:24:23 CEST 2002 Jan Hubicka <jh@suse.cz>
4518 * i386.md (movsi/movdi): Fix template.
4519 (sse2 patterns): Set attributes consistently.
4521 * i386.md (pushqi2, ashrqi_*): Fix constraint.
4523 2002-05-18 Toon Moene <toon@moene.indiv.nluug.nl>
4525 * optabs.c (complex_part_zero_p): New.
4526 * (expand_cmplxdiv_straight): Use it.
4527 * (expand_cmplxdiv_wide): Ditto.
4528 * (expand_binop): Ditto.
4530 2002-05-18 Richard Henderson <rth@redhat.com>
4532 * final.c (HAVE_READONLY_DATA_SECTION): New.
4533 (shorten_branches): Use it instead of ifdefs.
4534 * varasm.c (enum in_section): Add in_readonly_data.
4535 (text_section, data_section): Tidy.
4536 (readonly_data_section): Use READONLY_DATA_SECTION_ASM_OP if present.
4538 * config/darwin.h, config/nextstep.h, config/h8300/elf.h,
4539 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h
4540 (READONLY_DATA_SECTION): Don't undef.
4542 * config/alpha/unicosmk.h, config/h8300/elf.h, config/i386/aix386ng.h,
4543 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h,
4544 config/rs6000/lynx.h (READONLY_DATA_SECTION_ASM_OP): Undef.
4546 * config/elfos.h, config/svr3.h, config/alpha/alpha-interix.h,
4547 config/alpha/elf.h, config/c4x/c4x.h, config/i386/i386-interix.h,
4548 config/i386/sco5.h, config/i386/svr3gas.h, config/i860/sysv3.h,
4549 config/m88k/m88k.h, config/pa/pa64-hpux.h (USE_CONST_SECTION): Remove.
4551 * config/elfos.h, config/netware.h, config/alpha/alpha-interix.h,
4552 config/alpha/elf.h, config/alpha/vms.h, config/arc/arc.h,
4553 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
4554 config/i386/dgux.h, config/i386/i386-interix.h, config/i386/sco5.h,
4555 config/ia64/hpux.h, config/m32r/m32r.h, config/m68k/tower-as.h,
4556 config/m88k/m88k.h, config/mcore/mcore-pe.h, config/mips/iris6.h,
4557 config/mips/mips.h, config/mmix/mmix.h, config/pa/pa64-hpux.h,
4558 config/sparc/sysv4.h (READONLY_DATA_SECTION_ASM_OP): Rename from
4559 CONST_SECTION_ASM_OP/READONLY_SECTION_ASM_OP/RDATA_SECTION_ASM_OP.
4561 * config/elfos.h, config/netware.h, config/1750a/1750a.h,
4562 config/a29k/a29k.h, config/alpha/alpha-interix.h, config/alpha/alpha.h,
4563 config/arm/coff.h, config/h8300/h8300.h, config/i386/aix386ng.h,
4564 config/i386/i386-interix.h, config/i386/osfrose.h, config/mmix/mmix.h,
4565 config/pa/pa64-hpux.h, config/sparc/litecoff.h
4566 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
4568 * config/elfos.h, config/netware.h, config/svr3.h,
4569 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
4570 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
4571 config/h8300/h8300.h, config/i386/i386-interix.h,
4572 config/i386/osfrose.h, config/i386/svr3gas.h, config/mmix/mmix.h,
4573 config/pa/pa64-hpux.h (READONLY_DATA_SECTION): Remove.
4575 * config/elfos.h, config/netware.h, config/svr3.h,
4576 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
4577 config/c4x/c4x.h, config/i386/aix386ng.h, config/i386/i386-interix.h,
4578 config/i386/sco5.h, config/i386/svr3gas.h, config/mmix/mmix.h,
4579 config/pa/pa64-hpux.h (CONST_SECTION_FUNCTION): Remove.
4581 * config/lynx.h, config/svr3.h, config/alpha/elf.h, config/alpha/vms.h,
4582 config/c4x/c4x.h, config/dsp16xx/dsp16xx.h, config/i386/sco5.h,
4583 config/i386/svr3gas.h, config/i860/sysv3.h, config/i860/sysv4.h,
4584 config/ia64/sysv4.h, config/m32r/m32r.h, config/m88k/m88k.h,
4585 config/mcore/mcore-elf.h, config/mcore/mcore-pe.h, config/mips/elf.h,
4586 config/mips/elf64.h, config/mips/iris6.h, config/mips/linux.h,
4587 config/mips/mips.h, config/mips/rtems64.h, config/mips/vxworks.h,
4588 config/rs6000/sysv4.h, config/v850/v850.h
4589 (EXTRA_SECTIONS): Remove in_const/in_rdata.
4590 (EXTRA_SECTION_FUNCTIONS): Remove accompanying function.
4592 * config/svr3.h, config/c4x/c4x.h, config/i386/dgux.h,
4593 config/i386/sco5.h, config/i386/svr3gas.h, config/ia64/aix.h,
4594 config/m88k/dgux.h, config/mcore/mcore-pe.h, config/mmix/mmix.h,
4595 config/sparc/sysv4.h (SELECT_RTX_SECTION): Use readonly_data_section.
4596 * config/alpha/alpha.c (alpha_start_function): Likewise.
4597 (alpha_write_linkage): Likewise.
4598 * config/m32r/m32r.c (m32r_select_section): Likewise.
4599 * config/m88k/m88k.c (m88k_select_section): Likewise.
4600 * config/mips/mips.c (mips_select_rtx_section): Likewise.
4601 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Likewise.
4602 (rs6000_elf_select_section): Likewise.
4603 * config/v850/v850.c (v850_select_section): Likewise.
4605 * config/1750a/1750a.h, config/i860/sysv3.h
4606 (READONLY_DATA_SECTION_ASM_OP): New.
4607 READONLY_DATA_SECTION_ASM_OP.
4608 * config/i386/interix.c, config/i386/winnt.c
4609 (i386_pe_unique_section): Always use .rdata prefix.
4610 * config/pa/som.h (readonly_data): Always switch to read-only section.
4611 (READONLY_DATA_SECTION): Predicate on flag_pic.
4612 * config/we32k/we32k.h (READONLY_DATA_SECTION): Remove parenthesis.
4613 * doc/tm.texi (READONLY_DATA_SECTION_ASM_OP): New.
4614 (READONLY_DATA_SECTION): Update.
4616 2002-05-18 Jason Thorpe <thorpej@wasabisystems.com>
4618 * c-common.c (c_common_post_options): Warn if -Wformat-zero-length
4619 is used without -Wformat.
4620 * c-common.h (warn_format_zero_length): Declare extern.
4621 * c-decl.c (warn_options): Add "format-zero-length".
4622 * c-format.c (warn_format_zero_length): Declare.
4623 (set_Wformat): Set warn_format_zero_length for -Wformat.
4624 (check_format_info): Only warn about zero-length formats if
4625 warn_format_zero_length is true. Include the format type
4626 name in the warning message.
4627 * doc/invoke.texi: Document -Wformat-zero-length.
4628 * testsuite/gcc.dg/format/zero-length-1.c: New test.
4630 2002-05-18 Kazu Hirata <kazu@cs.umass.edu>
4632 * timevar.c: Fix formatting.
4633 * tlink.c: Likewise.
4634 * toplev.c: Likewise.
4635 * tree-dump.c: Likewise.
4636 * tree-inline.c: Likewise.
4638 2002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
4640 * cppinit.c (cpp_post_options): If preprocessed, turn off
4641 traditional. If traditional, turn off column numbers.
4642 * cpplib.c (cpp_push_buffer): Lex from stage 3 if traditional.
4643 * cpptrad.c (handle_newline): Update line_base.
4644 (skip_comment): Handle -Wcomment.
4646 2002-05-17 Zack Weinberg <zack@codesourcery.com>
4648 * cppinit.c (struct builtin): Remove unused fields.
4649 (CPLUS, BUILTIN, OPERATOR, O, builtin_array_end): Kill.
4650 (operator_array): New - was second half of builtin_array.
4651 (init_builtins): Simplify loop over builtin_array/operator_array.
4653 2002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
4655 * defaults.h (UNIQUE_SECTION): Remove.
4656 * system.h (UNIQUE_SECTION, SELECT_SECTION): Poison.
4658 2002-05-17 Richard Henderson <rth@redhat.com>
4660 * expr.c (init_expr_once): Don't use start/end_sequence.
4661 Use rtx_alloc instead of emit_insn.
4662 * toplev.c (lang_dependent_init): Run init_expr_once here ...
4663 (lang_independent_init): ... not here.
4665 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
4667 * config/sh/lib1funcs.asm (GLOBAL): Use __USER_LABEL_PREFIX__.
4669 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
4671 * config/avr/avr.c (avr_regs_to_save): New function. Also check
4672 for fixed registers, possibly used for global register variables.
4673 (initial_elimination_offset, avr_output_function_prologue,
4674 avr_output_function_epilogue): Move common code to avr_regs_to_save.
4676 2002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
4678 * Makefile.in: Update for cpptrad.c.
4679 * cpphash.h (struct cpp_buffer): New members for buffer
4681 (struct cpp_reader): New members for traditional output.
4682 (_cpp_read_logical_line, _cpp_overlay_buffer): New.
4683 * cppinit.c (cpp_create_reader): Set trad_line.
4684 (cpp_destroy): Free trad_out_base if used.
4685 (cpp_read_main_file): Overlay an empty buffer if traditional.
4686 (cpp_finish_options): Don't do builtins.
4687 (COMMAND_LINE_OPTIONS): Add -traditional-cpp.
4688 (cpp_handle_option): Handle it.
4689 * cpplex.c (continue_after_nul): New.
4690 (_cpp_lex_direct): Use handle_nul.
4691 * cpplib.h (struct cpp_options): New traditional option.
4692 * cpptrad.c: New file.
4694 2002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
4696 * c-common.c (c_common_init_options): Use C89 for Objective-C,
4697 and set the options flag.
4698 * cppinit.c (lang_flags): Remove objc.
4699 (lang_defaults): Remove OBJC and OBJCXX.
4701 (COMMAND_LINE_OPTIONS): Remove -+ and -lang-objc++.
4702 (cpp_handle_option): Remove -+ and -lang-objc++.
4703 For ObjC, just set a flag.
4704 (print_help): Update.
4705 * cpplib.h (enum c_lang): Remove CLK_OBJC and CLK_OBJCXX.
4707 2002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4709 * doc/install.texi (Specific, mips-sgi-irix6): Document need to
4710 bootstrap with -mips3.
4712 2002-05-17 Kazu Hirata <kazu@cs.umass.edu>
4714 * final.c: Fix formatting.
4715 * fix-header.c: Likewise.
4717 * fold-const.c: Likewise.
4718 * function.c: Likewise.
4720 2002-05-17 David S. Miller <davem@redhat.com>
4722 PR c/6689, PR optimization/6615
4723 * local-alloc.c (struct equivalence): Rename 'src' to 'src_p'
4724 and make it a pointer to rtx. Update comments.
4725 (update_equiv_regs): When scanning for equivalences, record
4726 address of SET_SRC (set) in reg_equiv[].src_p. Dereference
4727 it while making the equiv replacements.
4729 2002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4731 * config/sparc/sparc.c (sparc_aout_select_section): Fixed typo.
4733 2002-05-17 kaz Kojima <kkojima@rr.iij4u.or.jp>
4735 * config/sh/sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P
4736 when encoding visibility into SYMBOL_REF_FLAG.
4738 2002-05-17 Richard Sandiford <rsandifo@redhat.com>
4740 * expr.c (force_operand): Fix reversed move.
4742 2002-05-17 Kurt Wall <kwall@kurtwerks.com>
4744 * doc/install.texi (Testing): Mention two common DejaGnu warnings
4745 that can be ignored.
4747 2002-05-16 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4749 * doc/install.texi (Final install): Recommend to install into a
4750 "clean" target directory.
4752 2002-05-17 Richard Henderson <rth@redhat.com>
4754 * config/ia64/ia64.md: Use braced strings instead of quoted strings
4755 for code blocks. Tidy whitespace.
4757 2002-05-17 Richard Henderson <rth@redhat.com>
4759 * hooks.c (hook_tree_bool_false): New.
4760 * hooks.h: Declare it.
4761 * target-def.h (TARGET_ASM_SELECT_SECTION): New.
4762 (TARGET_ASM_UNIQUE_SECTION, TARGET_IN_SMALL_DATA_P): New.
4763 * target.h (select_section, unique_section): New.
4764 (in_small_data_p): New.
4765 * varasm.c (resolve_unique_section): Use hooks instead of macros.
4766 (variable_section, output_constant_def_contents): Likewise.
4767 (default_select_section, default_unique_section): New.
4768 (categorize_decl_for_section, default_elf_select_section): New.
4769 * output.h: Declare them.
4771 * config/darwin.h (ALIAS_SECTION, try_section_alias): Remove.
4772 (TARGET_ASM_SELECT_SECTION): New.
4773 (SELECT_SECTION): Move ...
4774 * config/darwin.c (machopic_select_section): ... here.
4775 * config/darwin-protos.h: Update.
4777 * config/nextstep.h (TARGET_ASM_SELECT_SECTION): New.
4778 (SELECT_SECTION): Move ...
4779 * config/nextstep.c (nextstep_select_section): ... here.
4780 * config/nextstep-protos.h: Update.
4782 * config/elfos.h (UNIQUE_SECTION, SELECT_SECTION): Remove.
4783 (TARGET_ASM_SELECT_SECTION): New.
4784 * config/svr3.h (SELECT_SECTION): Remove.
4786 * config/alpha/alpha.c (unicosmk_unique_section): Make static.
4787 (TARGET_ASM_UNIQUE_SECTION) [UNICOS]: New.
4788 (TARGET_IN_SMALL_DATA_P, alpha_in_small_data_p): New.
4789 (alpha_encode_section_info): Use it.
4790 * config/alpha/alpha-protos.h: Update.
4791 * config/alpha/elf.h (DO_SELECT_SECTION): Remove.
4792 (SELECT_SECTION, UNIQUE_SECTION): Remove.
4793 (TARGET_ASM_SELECT_SECTION): New.
4794 * config/alpha/unicosmk.h (UNIQUE_SECTION): Remove.
4796 * config/arm/pe.h (UNIQUE_SECTION): Remove.
4797 (TARGET_ASM_UNIQUE_SECTION): New.
4799 * config/avr/avr.c (TARGET_ASM_UNIQUE_SECTION): New.
4800 (avr_unique_section): Rename from unique_section; make static.
4801 * config/avr/avr-protos.h: Update.
4802 * config/avr/avr.h (UNIQUE_SECTION): Remove.
4804 * config/c4x/c4x.h (SELECT_SECTION): Remove.
4806 * config/i386/cygwin.h (UNIQUE_SECTION): Remove.
4807 (TARGET_ASM_UNIQUE_SECTION): New.
4808 * config/i386/i386-interix.h: Likewise.
4809 * config/i386/win32.h: Likewise.
4810 * config/i386/djgpp.h (UNIQUE_SECTION): Remove.
4811 * config/i386/i386.c (ix86_asm_file_end): Use target hook not macro.
4812 * config/i386/sco5.h (SELECT_SECTION): Remove.
4813 (TARGET_ASM_SELECT_SECTION): New.
4814 * config/i386/svr3gas.h (SELECT_SECTION): Remove.
4816 * config/i860/paragon.h: Undef TARGET_ASM_SELECT_SECTION
4817 instead of SELECT_SECTION.
4818 * config/m68k/dpx2.h: Likewise.
4819 * config/rs6000/lynx.h: Likewise.
4821 * config/ia64/aix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
4822 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
4823 * config/ia64/ia64.c (TARGET_IN_SMALL_DATA_P): New.
4824 (ia64_in_small_data_p): New.
4825 (ia64_encode_section_info): Use it. Reorganize overlarge conditional.
4826 (ia64_aix_select_section, ia64_aix_unique_section): New.
4827 * config/ia64/sysv4.h (DO_SELECT_SECTION): Remove.
4828 (SELECT_SECTION, UNIQUE_SECTION): Remove.
4830 * config/m32r/m32r.h (SELECT_SECTION): Remove.
4831 (TARGET_ASM_SELECT_SECTION): New.
4832 * config/m32r/m32r.c (m32r_select_section): Take align argument.
4833 * config/m32r/m32r-protos.h: Update.
4835 * config/m88k/m88k.h (TARGET_ASM_SELECT_SECTION): New.
4836 (SELECT_SECTION): Move ...
4837 * config/m88k/m88k.c (m88k_select_section): ... here.
4839 * config/mcore/mcore-pe.h (SELECT_SECTION): Remove.
4840 * config/mcore/mcore.h (UNIQUE_SECTION): Remove.
4841 * config/mcore/mcore.c (TARGET_ASM_UNIQUE_SECTION): New.
4842 (mcore_unique_section): Make static.
4843 * config/mcore/mcore-protos.h: Update.
4845 * config/mips/elf.h (UNIQUE_SECTION): Remove.
4846 (TARGET_ASM_UNIQUE_SECTION): New.
4847 * config/mips/elf64.h: Likewise.
4848 * config/mips/iris6gld.h: Likewise.
4849 * config/mips/linux.h: Likewise.
4850 * config/mips/mips-protos.h: Update.
4851 * config/mips/mips.c (mips_select_section): Add align argument.
4852 * config/mips/mips.h (SELECT_SECTION): Remove.
4853 (TARGET_ASM_SELECT_SECTION): New.
4855 * config/mmix/mmix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
4856 * config/mmix/mmix.c (mmix_select_section): Remove.
4857 (mmix_unique_section): Remove.
4858 * config/mmix/mmix-protos.h: Update.
4860 * config/pa/pa.h (TARGET_ASM_SELECT_SECTION): New.
4861 (SELECT_SECTION): Move ...
4862 * config/pa/pa.c (pa_select_section): ... here.
4863 * config/pa/pa64-hpux.h (UNIQUE_SECTION): Remove.
4865 * config/rs6000/rs6000.c (rs6000_elf_select_section): Rename
4866 from rs6000_select_section and make static.
4867 (rs6000_elf_unique_section): Similarly.
4868 (rs6000_xcoff_select_section): From xcoff.h.
4869 (rs6000_xcoff_unique_section): Likewise.
4870 * config/rs6000/rs6000-protos.h: Update.
4871 * config/rs6000/sysv4.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
4872 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
4873 * config/rs6000/xcoff.h: Likewise.
4875 * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): New.
4876 (SELECT_SECTION): Move ...
4877 * config/sparc/sparc.c (sparc_aout_select_section): ... here.
4879 * config/v850/v850.h (SELECT_SECTION): Move ...
4880 * config/v850/v850.c (v850_select_section): ... here.
4881 (TARGET_ASM_SELECT_SECTION): New.
4883 * config/vax/vms.h (SELECT_SECTION): Move ...
4884 * config/vax/vax.c (vms_select_section): ... here.
4885 (TARGET_ASM_SELECT_SECTION): New.
4887 * doc/tm.texi: Update SELECT_SECTION and UNIQUE_SECTION docs
4888 for the target hooks.
4890 2002-05-17 Nick Clifton <nickc@cambridge.redhat.com>
4892 * config/arm/arm.c (emit_multi_reg_push): Do not set
4893 RTX_FRAME_RELATED_P on the SEQUENCE.
4895 2002-05-16 Richard Henderson <rth@redhat.com>
4897 * config/ia64/ia64.c (ia64_reorg): Rebuild bb_for_insn before
4898 splitting. Use split_all_insns; update_life_info_in_dirty_blocks.
4900 2002-05-16 Richard Henderson <rth@redhat.com>
4902 * config/alpha/unicosmk.h (TARGET_OS_CPP_BUILTINS): Fix typo.
4904 * config/ia64/ia64.c (saveable_obstack): Do not declare.
4906 2002-05-16 Richard Henderson <rth@redhat.com>
4908 * basic-block.h, bb-reorder.c, cfg.c, cfganal.c, cfgbuild.c,
4909 cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c, combine.c,
4910 conflict.c, df.c, df.h, dominance.c, final.c, flow.c, function.c,
4911 gcse.c, global.c, graph.c, haifa-sched.c, ifcvt.c, lcm.c,
4912 local-alloc.c, loop.c, predict.c, print-rtl.c, profile.c,
4913 recog.c, reg-stack.c, regclass.c, regmove.c, regrename.c,
4914 reload1.c, reorg.c, resource.c, sbitmap.c, sched-deps.c,
4915 sched-ebb.c, sched-rgn.c, sibcall.c, ssa-ccp.c, ssa-dce.c, ssa.c:
4916 Revert "Basic block renumbering removal", and two followup patches.
4918 2002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
4920 * lcm.c (optimize_mode_switching): Revert previous change.
4922 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4924 * sched-rgn.c (schedule_insns): Initialize large_region_blocks
4925 with only extant block numbers.
4927 2002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
4929 * lcm.c (optimize_mode_switching): Fix typo.
4931 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4933 * flow.c (calculate_global_regs_live): Queue blocks in program order.
4935 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4937 * doc/install.texi (Configuration): Document PWDCMD.
4939 2002-05-16 Dale Johannesen <dalej@apple.com>
4941 * combine.c (cant_combine_insn_p): Reenable combinations
4942 involving hard regs unless CLASS_LIKELY_SPILLED_P.
4944 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
4946 * c-common.c (cb_register_builtins): Handle more built-ins
4947 here rather than in gcc.c specs.
4948 * gcc.c (cpp_unique_options): Move many built-ins to c-common.c.
4949 (cpp_options): Pass -O flags even when only preprocessing.
4950 * toplev.c (set_fast_math_flags): New prototype.
4951 (fast_math_flags_set_p): New.
4952 (set_no_fast_math_flags): Remove.
4953 (decode_f_option): Update.
4954 * toplev.h (set_fast_math_flags): Update.
4955 (fast_math_flags_set_p): New.
4956 (set_no_fast_math_flags): Remove.
4958 * c4x/c4x.c (c4x_override_options): Update.
4960 2002-05-16 Zack Weinberg <zack@codesourcery.com>
4962 * c-common.c (STDC_0_IN_SYSTEM_HEADERS, REGISTER_PREFIX):
4963 Default-define here.
4964 (builtin_define_with_value): Can now wrap the expansion in
4965 quotation marks if such is wanted.
4966 (cb_register_builtins): Update calls to builtin_define_with_value.
4967 Define __REGISTER_PREFIX__, __USER_LABEL_PREFIX__, and __VERSION__
4969 (c_common_init): Set options->stdc_0_in_system_headers.
4970 * c-lex.h: Update prototype of builtin_define_with_value.
4971 * cppdefault.h: Remove default definitions of USER_LABEL_PREFIX
4972 and REGISTER_PREFIX.
4974 * cppinit.c (VERS, ULP, C, X): Kill.
4975 (builtin_array): Remove entries for __VERSION__,
4976 __USER_LABEL_PREFIX__, __REGISTER_PREFIX__, and
4977 __HAVE_BUILTIN_SETJMP__. Make __STDC__ always a builtin, not
4979 (init_builtins): Kill off a bunch of now-dead code.
4980 (COMMAND_LINE_OPTIONS): Remove -fleading-underscore and
4981 -fno-leading-underscore.
4982 (cpp_handle_option): Remove code to set user_label_prefix.
4983 (cpp_post_options): Likewise.
4985 * cpplib.h (struct cpp_options): Remove user_label_prefix.
4986 (stdc_0_in_system_headers): New.
4987 * cppmacro.c (builtin_macro): Check CPP_OPTION (pfile,
4988 stdc_0_in_system_headers) too to decide the value of __STDC__.
4990 * tradcpp.c (user_label_prefix): Kill.
4991 (main): Remove code handling -f(no-)leading-underscore.
4992 (initialize_builtins): Don't define __REGISTER_PREFIX__
4993 or __USER_LABEL_PREFIX__.
4994 (install_value): Wrap compound statement in dummy loop so the
4995 macro works properly in an if statement.
4998 2002-05-16 Janis Johnson <janis187@us.ibm.com>
5000 * loop.h (struct loop_info): Add member has_prefetch.
5001 * loop.c (PREFETCH_CONDITIONAL): Change default to 1.
5002 (prescan_loop): Initialize has_prefetch.
5003 (struct prefetch_info): Change prefetch_in_loop and
5004 prefetch_before_loop from bit fields to ints.
5005 (emit_prefetch_instructions): Several small fixes.
5006 (check_dbra_loop): Don't reverse loop that uses prefetch.
5008 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5010 * Makefile.in: Allow for PWDCMD to override hardcoded pwd.
5011 * configure.in: Likewise.
5012 * fixinc/check.tpl: Likewise.
5013 * fixinc/fixinc.dgux: Likewise.
5014 * fixinc/fixinc.svr4: Likewise.
5015 * fixinc/fixinc.winnt: Likewise.
5016 * fixinc/fixincl.sh: Likewise.
5017 * fixproto: Likewise.
5018 * configure: Regenerate.
5020 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5022 Basic block renumbering removal:
5023 * basic_block.h (struct basic_block_def): Renamed index to sindex,
5024 added prev_bb and next_bb fields.
5025 (n_basic_blocks): Renamed to num_basic_blocks.
5026 (last_basic_block): New, index of last basic block.
5027 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
5028 traversing basic block chain.
5029 (BLOCK_NUM): index -> sindex.
5030 (create_basic_block_structure, create_basic_block): Declaration changed.
5031 (debug_num2bb): Declare.
5032 (expunge_block_nocompact): Declaration removed.
5033 (link_block, unlink_block, compact_blocks): Declare.
5034 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1): Modified.
5035 * cfg.c (entry_exit_blocks): Initialize new fields.
5036 (clear_edges, alloc_block, expunge_block, cached_make_edge,
5037 redirect_edge_pred, dump_flow_info, dump_edge_info,
5038 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges,
5039 free_aux_for_edges): Modified.
5040 (link_block, unlink_block, compact_blocks, debug_num2bb): New.
5041 (expunge_block_nocompact): Removed.
5042 * cfganal.c (can_fallthru, mark_dfs_back_edges, flow_call_edges_add,
5043 find_unreachable_blocks, create_edge_list, print_edge_list,
5044 verify_edge_list, flow_edge_list_print, remove_fake_successors,
5045 remove_fake_edges, flow_reverse_top_sort_order_compute,
5046 flow_depth_first_order_compute, flow_preorder_transversal_compute,
5047 flow_dfs_compute_reverse_init, flow_dfs_compute_reverse_add_bb,
5048 flow_dfs_compute_reverse_execute): Modified.
5049 * cfgbuild.c (make_edges, make_eh_edge, find_basic_blocks_1,
5050 find_basic_blocks, find_many_sub_basic_blocks, find_sub_basic_blocks):
5052 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
5053 merge_blocks_move_predecessor_nojumps,
5054 merge_blocks_move_successor_nojumps, merge_blocks,
5055 outgoing_edges_match, try_crossjump_to_edge, try_crossjump_bb,
5056 try_optimize_cfg, delete_unreachable_blocks, cleanup_cfg): Modified.
5057 * cfglayout.c (skip_insns_after_block, label_for_bb,
5058 record_effective_endpoints, scope_to_insns_finalize,
5059 fixup_reorder_chain, verify_insn_chain, cleanup_unconditional_jumps,
5060 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge,
5061 cfg_layout_duplicate_bb): Modified.
5062 * cfgloop.c (flow_loops_cfg_dump, flow_loop_dump, flow_loops_dump,
5063 flow_loop_entry_edges_find, flow_loop_exit_edges_find,
5064 flow_loop_nodes_find, flow_loop_pre_header_find, flow_loop_scan,
5065 flow_loops_find, flow_loop_outside_edge_p): Modified.
5066 * cfgrtl.c (create_basic_block_structure, create_basic_block,
5067 flow_delete_block, compute_bb_for_insn, split_block,
5068 try_redirect_by_replacing_jump, redirect_edge_and_branch,
5069 force_nonfallthru_and_redirect, tidy_fallthru_edge,
5070 back_edge_of_syntactic_loop_p, split_edge, commit_one_edge_insertion,
5071 commit_edge_insertions, commit_edge_insertions_watch_calls,
5072 dump_bb, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
5073 purge_all_dead_edges): Modified.
5074 * combine.c (combine_instructions, set_nonzero_bits_and_sign_copies,
5075 try_combine, nonzero_bits, num_sign_bit_copies, get_last_value_validate,
5076 get_last_value, reg_dead_at_p, distribute_notes, distribute_links):
5078 * conflict.c (conflict_graph_compute): Modified.
5079 * df.c (FOR_ALL_BBS): Removed.
5080 (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
5081 df_modified_p, df_analyse, df_refs_unlink, df_insn_modify,
5082 df_dump, hybrid_search_bitmap, iterative_dataflow_sbitmap): Modified.
5083 * df.h (DF_BB_INFO, DF_REF_BBNO): Modified.
5084 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
5085 calc_idoms, idoms_to_doms, calculate_dominance_info): Modified.
5086 * final.c (compute_alignments, final_scan_insn): Modified.
5087 * flow.c (verify_local_live_at_start, update_life_info,
5088 update_life_info_in_dirty_blocks, free_basic_block_vars,
5089 delete_noop_moves, calculate_global_regs_live,
5090 initialize_uninitialized_subregs, allocate_bb_life_data,
5091 regno_uninitialized, regno_clobbered_at_setjmp, mark_set_1,
5092 mark_used_reg, count_or_remove_death_notes): Modified.
5093 * function.c (thread_prologue_and_epilogue_insns): Modified.
5094 * gcse.c (struct null_pointer_info): Change typo of current_block
5096 (gcse_main, alloc_gcse_mem, compute_local_properties, compute_sets,
5097 oprs_unchanged_p, load_killed_in_block_p, record_last_reg_set_info,
5098 compute_hash_table, alloc_rd_mem, handle_rd_kill_set, compute_kill_rd,
5099 alloc_avail_expr_mem, expr_killed_p, compute_ae_kill,
5100 expr_reaches_here_p_work, expr_reaches_here_p, handle_avail_expr,
5101 classic_gcse, one_classic_gcse_pass, compute_transp, cprop,
5102 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p_work,
5103 pre_expr_reaches_here_p, insert_insn_end_bb, pre_edge_insert,
5104 pre_delete, one_pre_gcse_pass, compute_transpout,
5105 invalidate_nonnull_info, delete_null_pointer_checks_1,
5106 free_code_hoist_mem, compute_code_hoist_vbeinout,
5107 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
5108 compute_ld_motion_mems, store_ops_ok, find_moveable_store,
5109 compute_store_table, build_store_vectors, insert_insn_start_bb,
5110 insert_store, replace_store_insn, free_store_memory, store_motion):
5112 * global.c (global_alloc, global_conflicts, mark_elimination,
5113 build_insn_chain): Modified.
5114 * graph.c (print_rtl_graph_with_bb): Modified.
5115 * haifa-sched.c (sched_init): Modified.
5116 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
5117 (find_if_block, find_cond_trap, find_if_case_1, find_if_case_2,
5118 if_convert): Modified.
5119 * lcm.c (compute_antinout_edge, compute_earliest, compute_laterin,
5120 compute_insert_delete, pre_edge_lcm, compute_available,
5121 compute_farthest, compute_nearerout, compute_rev_insert_delete,
5122 pre_edge_rev_lcm, make_preds_opaque, optimize_mode_switching):
5124 * local-alloc.c (alloc_qty, local_alloc, update_equiv_regs): Modified.
5125 * loop.c (loop_dump_aux): Modified.
5126 * predict.c (combine_predictions_for_insn, estimate_probability,
5127 last_basic_block_p, process_note_prediction, process_note_predictions,
5128 note_prediction_to_br_prob, propagate_freq, counts_to_freqs,
5129 expensive_function_p, estimate_bb_frequencies,
5130 compute_function_frequency): Modified.
5131 * print-rtl.c (print_rtx): Modified.
5132 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX, instrument_edges,
5133 get_exec_counts, compute_branch_probabilities, compute_checksum,
5134 branch_prob, find_spanning_tree): Modified.
5135 * recog.c (split_all_insns, peephole2_optimize): Modified.
5136 * reg-stack.c (reg_to_stack, convert_regs_entry, compensate_edge,
5137 convert_regs_1, convert_regs_2, convert_regs): Modified.
5138 * regclass.c (scan_one_insn, regclass): Modified.
5139 * regmove.c (mark_flags_life_zones, regmove_optimize,
5140 combine_stack_adjustments): Modified.
5141 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Modified.
5142 * reload1.c (reload, reload_combine, copy_eh_notes): Modified.
5143 * reorg.c (dbr_schedule): Modified.
5144 * resource.c (find_basic_block, init_resource_info): Modified.
5145 * sbitmap.c (sbitmap_intersection_of_succs,
5146 sbitmap_intersection_of_preds, sbitmap_union_of_succs,
5147 sbitmap_union_of_preds): Modified.
5148 * sched-deps.c (init_dependency_caches): Modified.
5149 * sched-ebb.c (schedule_ebbs): Modified.
5150 * sched-rgn.c (is_cfg_nonregular, build_control_flow, debug_regions,
5151 find_rgns, compute_trg_info, init_regions, schedule_insns): Modified.
5152 * sibcall.c (optimize_sibling_and_tail_recursive_call): Modified.
5153 * ssa-ccp.c (examine_flow_edges, optimize_unexecutable_edges,
5154 ssa_ccp_substitute_constants, ssa_ccp_df_delete_unreachable_insns,
5155 ssa_const_prop): Modified.
5156 * ssa-dce.c (set_control_dependent_block_to_edge_map_,
5157 find_control_dependence, find_pdom, ssa_eliminate_dead_code): Modified.
5158 * ssa.c (remove_phi_alternative, find_evaluations,
5159 compute_dominance_frontiers_1, compute_iterated_dominance_frontiers,
5160 insert_phi_node, rename_block, convert_to_ssa, eliminate_phi,
5161 make_regs_equivalent_over_bad_edges,
5162 make_equivalent_phi_alternatives_equival,
5163 compute_conservative_reg_partition,
5164 coalesce_regs_in_successor_phi_nodes, compute_coalesced_reg_partition,
5165 rename_equivalent_regs, convert_from_ssa, for_each_successor_phi):
5168 2002-05-16 Mark Mitchell <mark@codesourcery.com>
5170 * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
5172 2002-05-16 Nick Clifton <nickc@cambridge.redhat.com>
5174 * config/arm/arm.c (arm_rtx_costs): Check for RTX being a
5175 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
5176 (arm_adjust_cost): Check for RTX being a SYMBOL_REF before
5177 calling CONSTANT_POOL_ADDRESS_P.
5178 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in code
5179 to decide whether to define __arm__ or __thumb.
5180 (THUMB_GO_IF_LEGITIMATE_ADDRESS): Check for RTX being a
5181 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
5183 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
5185 * config/arc/arc.h (CPP_PREDEFINES): Remove.
5187 (TARGET_CPU_CPP_BUILTINS): New.
5189 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
5191 * cpphash.h (cpp_macro): Move here, and make expansion a union.
5192 * cppmacro.c (cpp_macro): Remove.
5193 (enter_macro_context, replace_args, warn_of_redefinition,
5194 _cpp_create_definition, cpp_macro_definition): Update.
5196 2002-05-16 Jason Merrill <jason@redhat.com>
5198 * config/mips/mips.c (mips_output_external): Don't do sdata
5199 optimization for a variable with DECL_COMDAT set.
5201 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
5203 * config/rs6000/altivec.h: Cleanups for tighter typechecking.
5204 Cleanups for accepting modifiers on pointers.
5205 Fix predicate typos.
5206 Allow long pointers as well as int pointers.
5208 2002-05-15 Richard Henderson <rth@redhat.com>
5210 * varasm.c (merge_weak): Remove special case for extern and common.
5212 2002-05-15 Matt Hiller <hiller@redhat.com>
5214 * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
5216 * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
5217 * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
5218 * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
5219 * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
5220 * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
5221 * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
5223 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
5225 * reload1.c (forget_old_reloads_1): Do not use subreg offset.
5227 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
5229 * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
5230 ("altivec_mfvscr"): Read from VSCR.
5232 Add vscr sets for the following insns: altivec_vctuxs,
5233 altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
5234 altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
5235 altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
5236 altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
5237 altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
5238 altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
5239 altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
5240 altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
5241 altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
5242 altivec_vsum2sws, altivec_vsumsws.
5244 * config/rs6000/rs6000.h: Add VSCR fixed register.
5245 (CALL_REALLY_USED_REGISTERS): Add vscr.
5246 (CALL_USED_REGISTERS): Same.
5247 (FIXED_REGISTERS): Same.
5248 (REG_ALLOC_ORDER): Same.
5249 (reg_class): Add VSCR_REGS.
5250 (REG_CLASS_NAMES): Same.
5251 (REG_CLASS_CONTENTS): Same.
5253 (REGISTER_NAMES): Add vscr.
5254 (DEBUG_REGISTER_NAMES): Same.
5255 (ADDITIONAL_REGISTER_NAMES): Same.
5256 (FIRST_PSEUDO_REGISTER): Increment.
5257 (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
5259 2002-05-15 Jakub Jelinek <jakub@redhat.com>
5261 * fold-const.c (fold): Fix a typo.
5263 2002-05-15 Eric Botcazou <ebotcazou@multimania.com>
5265 * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
5266 comparison against the highest or lowest integer value before
5267 the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
5268 transformation and that of an unsigned comparison against 0
5271 2002-05-15 Richard Henderson <rth@redhat.com>
5273 * varasm.c (merge_weak): Error for any weakening after definition.
5274 Adjust weakening after use warning to catch more cases.
5275 (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
5276 * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
5278 Wed May 15 10:38:27 CEST 2002 Jan Hubicka <jh@suse.cz>
5280 * invoke.texi (-malign-double): Re-add lost warning.
5282 * i386-protos.h (x86_output_mi_thunk): Declare.
5283 * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
5284 * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
5286 * dwarf2out.c (output_call_frame_info): Do not skip unwind info
5287 when flag_asynchronous_unwind_tables is set.
5289 * flags.h (flag_reorder_functions): Declare.
5290 * function.c (prepare_function_start): Initialize frequnecy.
5291 * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
5292 * Makefile.in (predict.o): Add dependency on target.h and params.h
5293 * defaults.h (HOT_TEXT_SECTION_NAME,
5294 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
5295 * predict.c (choose_function_section): New function.
5296 (estimate_bb_frequencies): Use it.
5297 * toplev.c (flag_reorder_functions): New global variable.
5298 (lang_independent_options): New.
5299 (parse_options_and_default_flags): Set.
5300 * varasm.c (assemble_start_function): Bypass functdion alignment
5301 for never executed functions.
5302 * invoke.texi (-freorder-blocks, -freorder-functions): Document.
5303 (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
5304 * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
5307 Thu Jan 3 21:52:09 CET 2002 Jan Hubicka <jh@suse.cz>
5309 * predict.c: Inlude profile.h
5310 (MIN_COUNT): Rename to MIN_COUNT_FRACTION
5311 (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
5312 Use the information about maximal counter in the program.
5314 Thu Dec 20 22:14:00 CET 2001 Jan Hubicka <jh@suse.cz>
5316 * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
5317 probably_never_executed_bb_p): New functions.
5318 * cfgcleanup.c (outgoing_edges_match): Use them.
5319 * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
5320 (maybe_hot_bb_p, probably_cold_bb_p,
5321 probably_never_executed_bb_p): New functions.
5323 * function.h (function): Add new field function_frequency.
5324 * predict.c (compute_function_frequency): New function.
5325 (estimate_probability): Call it.
5327 2002-03-09 Jakub Jelinek <jakub@redhat.com>
5329 PR optimization/5172, optimization/5200
5330 * gcse.c (gcse_main): Disable store_motion.
5332 2002-05-14 Zack Weinberg <zack@codesourcery.com>
5334 * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
5335 (c_common_nodes_and_builtins): Use it.
5336 (builtin_define_with_value): New function.
5337 (cb_register_builtins): Define __SIZE_TYPE__,
5338 __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
5339 using builtin_define_with_value. Use consistent notation when
5340 defining __GXX_WEAK__.
5341 (WCHAR_TYPE_SIZE): Don't redefine.
5342 (combine_strings): Don't use WCHAR_TYPE_SIZE.
5344 * cppdefault.h: Don't provide defaults for SIZE_TYPE,
5345 PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
5346 * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
5347 * tradcpp.c (initialize_builtins): Likewise.
5348 * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
5350 * c-lex.h (builtin_define_with_value): Prototype.
5351 * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
5352 NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
5353 * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
5355 * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
5356 config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
5357 config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
5358 config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
5359 config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
5360 config/sparc/linux64.h, config/sparc/netbsd-elf.h,
5361 config/sparc/sol2-bi.h, config/sparc/sparc.h:
5362 Do not define NO_BUILTIN_SIZE_TYPE etc. Remove all references
5363 to __SIZE_TYPE__ etc from all spec strings. When this makes
5364 extra specs empty, delete them.
5366 2002-05-14 John David Anglin <dave@hiauly1.hia.nrc.ca>
5368 * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
5369 for PA8000 or generating dwarf2 call frame information.
5370 (output_call): Remove DO_FRAME_NOTES check from return pointer
5372 (following_call): Return 0 when scheduling for PA8000 or generating
5373 dwarf2 call frame information. Revise comment.
5375 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
5378 * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
5379 and __IEEE_FP_INEXACT as appropriate.
5380 (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
5381 (CPP_SPEC): Remove ieee defines.
5382 * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
5384 2002-05-14 Richard Henderson <rth@redhat.com>
5386 * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
5387 (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
5389 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
5391 * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
5393 (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
5394 CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
5395 CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
5396 CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
5397 (EXTRA_SPECS): Update.
5398 * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
5399 arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
5400 arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
5401 define TARGET_OS_CPP_BUILTINS if necessary.
5403 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
5405 * gcc.c (cpp_options): Must pass -m* and -f* options
5406 to the front end even when only preprocessing.
5407 (cc1_options): Remove redundant -lang-c.
5408 * tradcpp.c (main): Ignore -m options.
5410 * lang-specs.h: Similarly.
5412 2002-05-14 Vladimir Makarov <vmakarov@redhat.com>
5414 * genautomata.c (transform_3): Add code for transformation
5415 `(A,B,...)+C -> A+C,B,...'.
5417 Tue May 14 12:48:22 CEST 2002 Jan Hubicka <jh@suse.cz>
5419 * final.c (end_final): Do not output profile_arcs constructor, when
5420 no functions are instrumented.
5422 Tue May 14 12:38:30 CEST 2002 Jan Hubicka <jh@suse.cz>
5424 * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
5426 2002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
5428 * doc/install.texi: Remove special markup originally required for
5429 HTML generation with texi2html.
5431 2002-05-14 Andreas Schwab <schwab@suse.de>
5433 * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
5435 (UNIQUE_SECTION): Define to get small data correctly.
5437 * varasm.c (resolve_unique_section): Add third parameter
5438 flag_function_or_data_sections and use it instead of
5439 flag_function_sections.
5440 (assemble_start_function): Pass flag_function_sections.
5441 (asm_emit_uninitialised): Pass flag_data_sections.
5442 (assemble_variable): Likewise.
5444 2002-05-14 Richard Henderson <rth@redhat.com>
5446 * config/i386/i386.md: Use define_constants for unspec numbers.
5447 * config/i386/i386.c: Likewise.
5449 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
5451 * doc/contrib.texi: Update my entry.
5453 2002-05-13 Mark Mitchell <mark@codesourcery.com>
5455 * fixinc/inclhack.def (winidss_valist): Limit applicability.
5456 * fixinc/fixincl.x: Regenerated.
5457 * fixinc/tests/base/math.h: Update.
5458 * fixinc/tests/base/testing.h: Likewise.
5460 2002-05-13 Zack Weinberg <zack@codesourcery.com>
5462 * genattr.c (gen_attr): Don't emit a comma after the last
5465 2002-05-13 Richard Henderson <rth@redhat.com>
5467 * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
5469 * recog.c (peephole2_optimize): Likewise.
5471 2002-05-13 Andris Pavenis <pavenis@lanet.lv>
5473 * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
5476 2002-05-13 Jeffrey A Law (law@redhat.com)
5478 * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
5479 Update prototype and callers.
5480 (propagate_one_insn): Stack pointer adjustments kill MEMs on
5481 the mem_set_list which reference the stack pointer, as do
5482 calls to constant functions as they may clobber outgoing
5485 * i386.c (ia32_multipass_dfa_lookahead): Prototype.
5487 * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
5488 (ia32_multipass_dfa_lookahead): New function.
5490 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
5492 * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
5493 (translate_options): Remove 'V'.
5494 (process_command): Similarly.
5496 * invoke.texi: Remove documentation of 'V'.
5498 2002-05-13 Ulrich Weigand <uweigand@de.ibm.com>
5500 * config/s390/linux.h: Revert 2002-04-22 changes.
5502 2002-05-13 Scott Marks <SMarks@mobile-mind.com>
5504 * config/fr30/fr30.md: Only allow splits of immediate loads
5505 if the destination is a register.
5507 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
5509 * Makefile.in (c-common.o, cppinit.o): Update.
5510 * c-common.c: Include except.h.
5511 (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
5512 Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
5513 * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
5514 * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
5515 CPP_PREDEFINES): Handle here.
5517 * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
5518 alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
5519 alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
5520 TARGET_OS_CPP_BUILTINS.
5521 * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
5522 (CPP_SPEC, EXTRA_SPECS): Update.
5523 (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
5524 CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
5525 CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
5526 CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
5527 CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
5529 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
5530 (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
5532 2002-05-12 Zack Weinberg <zack@codesourcery.com>
5534 * emit-rtl.c (global_rtl): Update comment.
5535 (const_double_htab, const_double_htab_hash,
5536 const_double_htab_hash, lookup_const_double): New.
5537 (const_int_htab_hash, const_int_htab_eq): Remove const
5538 qualifiers, which cause tons of warnings with RTL checking on.
5539 (gen_rtx_CONST_DOUBLE): Deleted.
5540 (const_double_from_real_value): New function - bears some
5541 resemblance to the former immed_real_const_1.
5542 (immed_double_const): Moved here from varasm.c and
5544 (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
5545 (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
5546 (gen_rtx): Use immed_double_const.
5547 (init_emit_once): Initialize the const_double_htab. Use
5548 REAL_VALUE_FROM_INT where possible. Can now use
5549 CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
5550 * varasm.c (struct varasm_status): Remove x_const_double_chain.
5551 (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
5552 (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
5553 (init_varasm_status, mark_varasm_status): Don't touch
5554 x_const_double_chain.
5556 * output.h: Delete prototype for clear_const_double_mem.
5557 * real.h: Make REAL_VALUE_TYPE a macro again. Remove leading
5558 '0' slot from all CONST_DOUBLE_FORMAT definitions. Prototype
5559 const_double_from_real_value, not immed_real_const_1, and use
5560 it to define CONST_DOUBLE_FROM_REAL_VALUE. Define new macro
5562 * rtl.h (CONST_DOUBLE_CHAIN): Kill.
5563 (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
5564 (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
5565 (gen_rtx_REG): Second arg is unsigned.
5567 * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
5568 (excluded_rtx): New, return true for CONST_DOUBLE.
5569 (genmacro): Write nothing for excluded codes.
5570 * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
5571 * expr.c (expand_expr): Likewise.
5572 * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
5574 * toplev.c (rest_of_compilation): Don't call
5575 clear_const_double_mem.
5577 * config/rs6000/rs6000.c (rs6000_float_const): Delete.
5578 (rs6000_hash_constant): Remove CONST_DOUBLE special case.
5579 (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
5580 * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
5581 * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
5582 * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
5583 config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
5584 * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
5586 2002-05-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5588 * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
5590 2002-05-12 Tom Tromey <tromey@redhat.com>
5592 * tree.h (copy_node): Don't mention TREE_PERMANENT.
5594 2002-05-12 Zack Weinberg <zack@codesourcery.com>
5596 * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
5597 (scan_comma_elt): New function. Accepts whitespace in comma lists.
5598 * gensupport.h: Prototype new routines.
5599 * genattr.c (gen_attr): Use scan_comma_elt. Avoid unnecessary
5601 * genattrtab.c (n_comma_elts): Moved to gensupport.c.
5602 (next_comma_elt): Use scan_comma_elt.
5604 * config/i386/i386.md: Use new attribute notation to break up
5605 long lines in define_attr forms.
5607 2002-05-12 Richard Henderson <rth@redhat.com>
5609 * expr.c (compress_float_constant): New.
5610 (emit_move_insn): Use it.
5611 (float_extend_from_mem): New.
5612 (init_expr_once): Initialize it.
5613 * real.c (exact_real_truncate): New.
5615 * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
5616 dropped into memory; penalize for size.
5617 (RTX_COSTS): FLOAT_EXTEND is free.
5618 * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
5619 extenddfxf2, extenddftf2): Accept constants and drop them to memory.
5621 2002-05-12 Richard Henderson <rth@redhat.com>
5623 * profile.h (profile_info): Add missing extern to declaration.
5624 * profile.c (profile_info): Define it.
5626 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
5628 * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
5629 used for DImode and TImode.
5631 2002-05-11 Neil Booth <neil@daikokuya.demon.co.uk>
5633 * cpplex.c (_cpp_lex_direct): When in a directive at EOF
5636 2002-05-11 Zack Weinberg <zack@codesourcery.com>
5638 * config/rs6000/rs6000.c (rs6000_default_long_calls,
5639 rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
5640 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
5641 (rs6000_override_options): Handle -m(no-)longcall.
5642 (init_cumulative_args, output_mi_thunk): Check for both
5643 longcall and shortcall attributes on the function.
5644 (rs6000_attribute_table): Add "shortcall".
5645 (rs6000_handle_longcall_attribute): Update comment.
5646 (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
5647 altivec_expand_ternop_builtin): Add default clauses to switches
5648 to silence warnings.
5650 * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
5651 rs6000_default_long_calls. Define REGISTER_TARGET_PRAGMAS.
5652 (TARGET_OPTIONS): Add longcall and no-longcall.
5654 * config/rs6000/rs6000.md (call_nonlocal_sysv,
5655 call_value_nonlocal_sysv): Split by alternatives. One pair
5656 accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
5657 the call cookie. The other pair accepts only LR/CTR and has
5660 * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
5661 Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
5663 * config/rs6000/rs6000-c.c: New file.
5664 * config/rs6000/t-rs6000-c-rule: New file.
5665 * config/rs6000/rs6000-protos.c: Add multiple-include guard.
5666 Prototype rs6000_pragma_longcall.
5668 * doc/extend.texi: Document shortcall attribute.
5669 * doc/invoke.texi: Document -mlongcall, -mno-longcall.
5671 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
5673 * reorg.c (dbr_schedule): Remove unnecessary test.
5675 Sat May 11 14:34:35 CEST 2002 Jan Hubicka <jh@suse.cz>
5677 * i386.md (testsi to testqi spliters): New.
5679 2002-01-14 Josef Zlomek <zlomek@matfyz.cz>
5681 cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
5683 Wed Jan 9 2002 Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
5685 * basic-block.h: New flag EDGE_CAN_FALLTHRU
5686 * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
5687 that can be made fallthru.
5689 Mon Nov 12 16:25:53 CET 2001 Jan Hubicka <jh@suse.cz>
5691 * cfglayout.c (cleanup_unconditional_jumps): New static function.
5692 (cfg_layout_initialize): Use it.
5694 2002-05-11 Marek Michalkiewicz <marekm@amelek.gda.pl>
5696 * config/avr/avr.c (avr_mcu_types): Update supported devices.
5697 * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
5698 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
5700 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
5702 * dbxout.c: Fix formatting.
5703 * dependence.c: Likewise.
5705 * diagnostic.c: Likewise.
5706 * doloop.c: Likewise.
5707 * dominance.c: Likewise.
5708 * doschk.c: Likewise.
5709 * dwarf2asm.c: Likewise.
5710 * dwarf2out.c: Likewise.
5711 * dwarfout.c: Likewise.
5713 2002-05-10 Richard Henderson <rth@redhat.com>
5715 * final.c (end_final): Tidy whitespace. Don't honor flag_pack_struct.
5716 Convert integers constants as needed. Replace "nwords" field with
5718 (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
5719 * function.h: Fix typo in comment.
5720 * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
5722 2002-05-10 Roger Sayle <roger@eyesopen.com>
5724 * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
5725 into the equivalent (signed char)c > 0.
5727 2002-05-10 Janis Johnson <janis187@us.ibm.com>
5729 * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
5730 (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
5731 (struct prefetch_info): Fix spelling of member bytes_accessed.
5732 (emit_prefetch_instructions): Make dump messages more regular;
5733 restructure code to add more dump messages; use new macros for
5734 heuristics. (There are no code generation changes in any of this).
5736 2002-05-10 David S. Miller <davem@redhat.com>
5738 * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
5739 (struct rtx_def): Update unchanging flag comment.
5740 * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
5741 * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
5742 to be handled to INSN too.
5743 (dbr_schedule): Likewise.
5744 * resource.c (next_insn_no_annul): Likewise.
5746 * cse.c (rtx_cost): Remove multiplication by power of 2 special
5749 2002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
5751 * doc/install.texi (Specific, *-*-solaris2*): Update passus on
5752 setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
5753 (possibly) work around broken /bin/sh.
5755 2002-05-10 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5757 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
5758 . as N64/N32 libgcc_s.so subdirs.
5760 2002-05-10 David S. Miller <davem@redhat.com>
5762 * config/sparc/sparc.md: Use define_constants for unspec numbers.
5764 * rtl.h (struct rtx_def): Document unchanging and in_struct flags
5766 (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
5768 (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
5769 * doc/rtl.texi: Document these macros more accurately.
5770 * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
5771 JUMP_INSNs and CALL_INSNs.
5772 * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
5773 or INSN_FROM_TARGET_P if the code is appropriate.
5775 2002-05-10 Marek Michalkiewicz <marekm@amelek.gda.pl>
5777 * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
5778 before using SYMBOL_REF_FLAG (addr).
5780 * config/avr/avr-protos.h (avr_io_address_p): Declare.
5781 * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
5782 Make non-static. Update all callers.
5783 * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
5784 New insns to clear/set/test a single bit in I/O address space.
5786 2002-05-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5788 * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
5790 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
5792 * Makefile.in: Update.
5793 * c-common.c (flag_iso, flag_undef, cb_register_builtins,
5794 builtin_define_std): New.
5795 (c_common_init): Register CPP builtins callback.
5796 * c-common.h (flag_iso, flag_undef): New.
5797 * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
5798 * c-lex.c: Don't include target.h.
5799 (cb_register_builtins): Move to c-common.c.
5800 (init_c_lex): Don't register hook here.
5801 * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
5802 (cpp_define, cpp_assert): Remove.
5803 * gcc.c (cc1_options): Pass -undef to front end.
5804 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
5805 (TARGET_INITIALIZER): Update.
5806 * target.h (struct cpp_reader): Don't predeclare.
5807 (struct gcc_target): Remove cpp builtin hook.
5808 * tree.c (default_register_cpp_builtins): Remove.
5812 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
5814 * cppexp.c (_cpp_expand_op_stack): Set op_limit.
5816 2002-05-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5818 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
5819 (SHLIB_LINK, SHLIB_INSTALL): Adjust.
5821 2002-05-09 Jakub Jelinek <jakub@redhat.com>
5823 * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
5824 * config/sparc/libgcc-sparc-glibc.ver: New file.
5825 * config/cris/t-linux (SHLIB_MAPFILES): Remove.
5826 * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
5828 2002-05-09 Jakub Jelinek <jakub@redhat.com>
5831 * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
5832 * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
5833 shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
5835 * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
5836 * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
5837 * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
5838 * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
5840 2002-05-09 Richard Henderson <rth@redhat.com>
5842 * config/ia64/ia64.md: Use define_constants for unspec numbers.
5843 * config/ia64/ia64.c: Likewise.
5845 2002-05-09 Richard Sandiford <rsandifo@redhat.com>
5847 * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
5848 (save_restore_insns): Likewise.
5849 (mips_expand_prologue, mips_expand_epilogue): Update callers.
5850 (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
5852 Thu May 9 11:50:09 2002 Jeffrey A Law (law@redhat.com)
5854 * athlon.md, k6.md, pentium.md, ppro.md): New files.
5855 * i386.md: Move scheduling information into new files.
5857 * i386.md (type attribute): Add "rotate" for rotate insns.
5858 (rotate insns): Set type to "rotate".
5859 (various attributes and function units): Treat rotate like shift.
5860 (pent_pair attribute): Only rotates by one bit position are
5862 (sbb insns): Explicitly set pent_pair attribute on a couple
5863 that were missing it.
5865 Thu May 9 18:29:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
5867 * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
5868 make sure that buffer starts on odd word address.
5869 (sh_va_arg): Skip odd fp registers when reading a double precision
5872 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
5874 * tree.h (preserve_data, object_permanent_p, type_precision):
5877 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
5879 * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
5880 * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
5882 * cpp.texi: Update for removal of obsolete features.
5884 Thu May 9 07:46:18 2002 Jan Hubicka <jh@suse.cz>
5885 Jeffrey A Law (law@redhat.com)
5887 * i386.c (ia32_use_dfa_pipeline_interface): New function. Use
5888 the DFA interface for Pentium processors.
5889 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
5890 (attr_pent_pair, ix86_pent_find_pair): Remove.
5891 (ix86_sched_reorder_pentium): Remove.
5892 (ix86_sched_reorder): Remove reordering for Pentium.
5893 * i386.md (Pentium scheduling): Rewrite using DFA description.
5895 Thu May 9 14:55:39 CEST 2002 Jan Hubicka <jh@suse.cz>
5897 * cfganal.c (can_fallthru): Fix fast path.
5898 * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
5899 with edges to the next block.
5901 Thu May 9 14:52:45 CEST 2002 Jan Hubicka <jh@suse.cz>
5902 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
5904 * final.c (end_final): Use C trees to output data structures for profiling.
5906 * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
5907 (profile.o): New dependency profile.h
5908 (final.o): New dependency profile.h
5909 * profile.h: New file. New global structure profile_info.
5910 * final.h (count_edges_instrumented_now): Declare.
5911 (current_function_cfg_checksum): Declare.
5912 (function_list): New structure.
5913 (functions_head, functions_tail): New static variables.
5914 (end_final): Emits more data, removed some -ax stuff.
5915 (final): Stores function names and chcksums.
5916 * gcov-io.h (__write_gcov_string): New function.
5917 (__read_gcov_string): New function.
5918 * gcov.c (read_profile): New function.
5919 (create_program_flow_graph): Uses read_profile instead of reading
5921 (read_files): Removed da_file checking, it's done by read_profile now.
5922 * libgcc2.c (bb_function_info): New structure.
5923 (bb): New field in structure, removed some -ax stuff.
5924 (__bb_exit_func): Changed structure of da_file.
5925 * profile.c (count_edges_instrumented_now): New global variable.
5926 (current_function_cfg_checksum): New global variable.
5927 (max_counter_in_program): New global variable.
5928 (get_exec_counts): New function.
5929 (compute_checksum): New function.
5930 (instrument_edges): Sets count_edges_instrumented_now.
5931 (compute_branch_probabilities): Uses get_exec_counts instead of
5933 (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
5934 (init_branch_prob): Removed da_file checking, done in get_exec_counts
5936 (end_branch_prob): Removed da_file checking, done in get_exec_counts
5938 * gcov.texi: Updated information about gcov file format.
5940 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
5942 * sbitmap.c: Fix formatting.
5944 * scan-decls.c: Likewise.
5945 * sched-deps.c: Likewise.
5946 * sched-ebb.c: Likewise.
5947 * sched-rgn.c: Likewise.
5948 * sched-vis.c: Likewise.
5949 * sdbout.c: Likewise.
5950 * sibcall.c: Likewise.
5951 * simplify-rtx.c: Likewise.
5953 * ssa-ccp.c: Likewise.
5954 * ssa-dce.c: Likewise.
5956 * stor-layout.c: Likewise.
5957 * stringpool.c: Likewise.
5959 2002-05-09 David S. Miller <davem@redhat.com>
5961 * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
5963 2002-05-07 David S. Miller <davem@redhat.com>
5965 * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
5966 * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
5967 * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
5968 library implementation clobbers the output before the inputs
5969 are fully consumed, use stack temporary for the output.
5971 2002-05-09 Jason Thorpe <thorpej@wasabisystems.com>
5973 * config/netbsd.h (CPP_SPEC): Remove.
5974 * config/i386/netbsd-elf.h (CPP_SPEC): Define.
5975 * config/i386/netbsd.h (CPP_SPEC): Define.
5976 * config/ns32k/netbsd.h (CPP_SPEC): Define.
5977 * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
5978 * config/sparc/netbsd.h (CPP_SPEC): Define.
5979 * config/vax/netbsd.h (CPP_SPEC): Define.
5981 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
5983 * read-rtl.c: Fix formatting.
5985 * recog.c: Likewise.
5986 * regclass.c: Likewise.
5987 * regmove.c: Likewise.
5988 * reg-stack.c: Likewise.
5989 * reload1.c: Likewise.
5990 * reload.c: Likewise.
5991 * resource.c: Likewise.
5992 * rtlanal.c: Likewise.
5994 * rtl-error.c: Likewise.
5996 2002-05-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
5998 * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
5999 * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
6001 2002-05-08 Bernd Schmidt <bernds@redhat.com>
6003 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
6004 use __SSE2__ macro instead.
6005 * config/i386/xmmintrin.h: Likewise.
6007 2002-05-08 Janis Johnson <janis187@us.ibm.com>
6009 * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
6010 and use it in all invocations of these macros. Clean up comments.
6011 * rtl.c (rtl_check_failed_flag): Add an argument for the name
6012 of the flag access macro whose check failed.
6013 * doc/rtl.texi (Flags): Document additional flag uses.
6015 2002-05-08 Robert Spier <rspier@pobox.com>
6016 Neil Booth <neil@daikokuya.demon.co.uk>
6018 PR preprocessor/6521
6019 * cppfiles.c (handle_missing_header): Don't do anything
6020 different for <> includes.
6022 * cppopts.texi: Update documentation for -MG.
6024 2002-05-08 Neil Booth <neil@daikokuya.demon.co.uk>
6026 * cpplex.c (cpp_interpret_charconst): Truncate as well as
6029 * cpp.texi: Clarify multichar charconst valuation.
6031 2002-05-08 Mark Mitchell <mark@codesourcery.com>
6033 * doc/invoke.texi: Document -mwindiss option.
6035 2002-05-08 Jason Merrill <jason@redhat.com>
6037 * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
6039 * dwarf2out.c (gen_type_die): Abort on broken recursion.
6042 * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
6045 2002-05-08 Nick Clifton <nickc@cambridge.redhat.com>
6047 * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
6048 little-endian multilibs to override arm/thumb multilibs.
6049 Do not build hardware floating point multilibs, nor apcs-26
6050 multilibs for the Thumb.
6052 2002-05-08 Mark Mitchell <mark@codesourcery.com>
6055 * varasm.c (mark_weak): New function.
6056 (merge_weak): Use it. Do not call declare_weak.
6057 (declare_weak): Use merge_weak.
6059 Wed May 8 13:12:11 CEST 2002 Jan Hubicka <jh@suse.cz>
6061 * cse.c (dead_libcall_p): Update counts.
6062 (delete_trivially_dead_insns): Update call of dead_libcall_p.
6064 Wed May 8 11:08:50 CEST 2002 Jan Hubicka <jh@suse.cz>
6066 * cfglayout.c (function_tail_eff_head): Rename to ...
6067 (function_footer): ... this one.
6068 (unlink_insn_chain): New functions.
6069 (label_for_bb): Only call block_label and emit debug message.
6070 (record_effective_endpoints): Actually unlink the headers and footers.
6071 (fixup_reorder_cahin): Re-insert the unlinked sequences.
6072 (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
6073 * cfglayout.h (struct reorder_block_def): New fields footer/header;
6074 remove eff_head/eff_end.
6075 * rtl.h (set_first_insn): Declare.
6076 * emit-rtl.c (set_first_insn): New function.
6078 * cfglayout.c (fixup_reorder_chain): Dump duplicated
6079 (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
6080 cfg_layout_duplicate_bb): New global function.
6081 (duplicate_insn_chain): New static function.
6082 * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
6083 cfg_layout_duplicate_bb): Declare.
6084 (struct reorder_block_def): Add "original" field.
6085 * emit-rtl.c (emit_copy_of_insn_after): New function.
6086 * rtl.h (emit_copy_of_insn_after): Declare.
6088 * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
6089 (fixup_reorder_chain): properly handle edges to exit block.
6091 Wed May 8 11:10:31 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6092 Jan Hubicka <jh@suse.cz>
6094 * basic-block.h (note_prediction_to_br_prob): declare.
6095 * c-semantics.c: Inlucde predit.h
6096 (expand_stmt): predict GOTO_STMT as not taken.
6097 * cfgcleanup.c: (delete_unreachable_blocks): Make global.
6098 (cleanup_cfg): Do not free tail_recursion_list.
6099 * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
6100 (flow_delete_block): Kill predictions past end of basic block.
6101 * output.h (delete_unreachable_blocks): Declare.
6102 * predict.c (predicted_by_p, process_note_predictions,
6103 process_note_prediction, last_block_p): New function.
6104 (estimate_probability): Bypass loop on PRED_CONTINUE;
6105 do not handle noreturn heuristics; kill PRED_RETURN; add
6107 * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
6108 PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
6109 * predict.h (IS_TAKEN): New constant.
6110 * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
6111 * rtl.c (NOTE_INSN_PREDICTION): New.
6112 * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
6114 (insn_note): add NOTE_INSN_PREDICTION.
6115 * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
6116 CFG; free tail_recursion_label_list.
6117 * stmt.c: Include predict.h;
6118 (return_prediction): New.
6119 (expand_value_return): Use it.
6120 * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
6122 2002-05-08 Richard Sandiford <rsandifo@redhat.com>
6124 * config/mips/mips.md: Name the unspecs with define_constant.
6125 (*HILO_delay): Rename to 'hilo_delay' (no star).
6126 (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
6127 (reload_outdi, reload_outsi): Likewise.
6129 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
6131 * toplev.c: Fix formatting.
6133 2002-05-07 Janis Johnson <janis187@us.ibm.com>
6135 * config.in (ENABLE_RTL_FLAG_CHECKING): New.
6136 * configure.in (ac_rtlflag_checking): New.
6137 * doc/install.texi (--enable-checking): Document RTL flag checking.
6139 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
6141 * c-common.c (c_common_init): Set options->unsigned_wchar.
6142 * cppinit.c (cpp_create_reader): Default unsigned_wchar,
6143 group target dependencies.
6144 (init_builtins, cpp_handle_option): Update.
6145 * cpplex.c (cpp_interpret_charconst): Update.
6146 * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
6147 signed_char to unsigned_char, group target dependencies.
6148 * defaults.h (WCHAR_UNSIGNED): Remove.
6149 * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
6151 * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
6152 i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
6153 i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
6154 i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
6155 sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
6157 * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
6159 2002-05-07 Mark Mitchell <mark@codesourcery.com>
6161 * fixinc/inclhack.def (windiss_math1): New fix.
6162 (windiss_math2): Likewise.
6163 (windiss_valist): Likewise.
6164 * fixinc/fixincl.x: Regenerated.
6166 2002-05-07 Andreas Jaeger <aj@suse.de>
6168 * genautomata.c (output_internal_min_issue_delay_func): Add
6169 ATTRIBUTE_UNUSED to avoid warning with empty dfa.
6170 (output_internal_trans_func): Likewise.
6172 Tue May 7 10:06:22 2002 Jeffrey A Law (law@redhat.com)
6174 * pa.c (hppa_profile_hook): Use force_reg to get the address
6175 of the profile hook into an appropriate pseudo register.
6177 2002-05-07 Mark Mitchell <mark@codesourcery.com>
6179 * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
6180 (LINK_START_SPEC): Handle it.
6181 (LINK_OS_SPEC): Likewise.
6182 (CPP_SPEC): Likewise.
6183 (STARTFILE_SPEC): Likewise.
6184 (LIB_SPEC): Likewise.
6185 (ENDFILE_SPEC): Likewise. Do not assume crtsavres.o is used on
6187 (CRTSAVRES_DEFAULT_SPEC): New macro.
6188 (LIB_WINDISS_SPEC): New macro.
6189 (CPP_OS_WINDISS_SPEC): Likewise.
6190 (STARTFILE_WINDISS_SPEC): Likewise.
6191 (ENDFILE_WINDISS_SPEC): Likewise.
6192 (LINK_START_WINDISS_SPEC): Likewise.
6193 (LINK_OS_WINDISS_SPEC): Likewise.
6194 * config/rs6000/windiss.h: New file.
6196 2002-05-07 Aldy Hernandez <aldyh@redhat.com>
6198 * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
6200 2002-05-06 David S. Miller <davem@redhat.com>
6202 * config/sparc/sparc.md (shift insns): Do not mask off
6203 second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
6206 2002-05-06 Richard Henderson <rth@redhat.com>
6209 * expr.c (highest_pow2_factor_for_type): New.
6210 (expand_assignment): Use it.
6212 2002-05-06 Aldy Hernandez <aldyh@redhat.com>
6214 * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
6216 ("altivec_mfvscr"): Same.
6218 2002-05-06 Janis Johnson <janis187@us.ibm.com>
6220 * rtl.h (struct rtx_def): Update comments.
6221 (RTL_FLAG_CHECK[12345678]): New. (rtl_check_failed_flag): Declare.
6222 (RTL_FLAG): New. (CLEAR_RTX_FLAGS): New. (flag access macros): Use
6223 RTL_FLAG_CHECK macros with list of expected RTL codes.
6224 * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
6225 (rtl_check_failed_flag): New.
6226 * reload1.c (reload): Use REG macro before changing rtx to MEM.
6227 (reload_cse_noop_set_p): Check rtx code before using access macro.
6228 * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
6229 before using access macro.
6231 2002-05-06 Janis Johnson <janis187@us.ibm.com>
6233 * doc/rtl.texi (Flags): Update to reflect current usage.
6235 2002-05-06 Roger Sayle <roger@eyesopen.com>
6238 * fold-const.c (sign_bit_p): New function.
6239 (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
6240 (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
6241 Reapply fold when converting (A & C) == C into (A & C) != 0.
6242 (fold_binary_op_with_conditional_arg): Fix typo in comment.
6244 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
6246 * c-common.c (warn_multichar): New.
6247 (c_common_init): Set CPP's warn_multichar.
6248 * c-common.h (warn_multichar): New.
6249 * c-decl.c (warn_multichar): Remove.
6250 * c-lex.c (lex_charconst): Update.
6251 * c-tree.h (warn_multichar): Remove.
6252 * cppexp.c (eval_token): Sign-extend charconst value.
6253 * cppinit.c (cpp_create_reader): Set warn_multichar.
6254 * cpplex.c (cpp_interpret_charconst): Don't sign-extend
6255 each character. Update prototype. Sign-extend the result.
6256 * cpplib.h: Fix conditions.
6257 (struct cpp_options): Add new warning flag.
6258 (cpp_interpret_charconst): Update prototype.
6260 * cpp.texi: Update documentation.
6262 2002-05-06 Vladimir Makarov <vmakarov@redhat.com>
6264 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
6265 Fix typo in usage of allof instead of unit.
6267 2002-05-06 Richard Henderson <rth@redhat.com>
6269 * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
6270 and any jump or call for IN.
6272 2002-05-06 Bernd Schmidt <bernds@redhat.com>
6274 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
6276 * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
6278 2002-05-06 Roger Sayle <roger@eyesopen.com>
6280 * fold-const.c (lshift-double): Cast the high word to an unsigned
6281 HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
6282 (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
6283 avoid compiler warning. (fold): Remove redundant code from
6284 BIT_AND_EXPR as integer operands are canonicalized to be arg1.
6286 2002-05-06 Jeff Law <law@redhat.com>
6288 * pa-protos.h (hppa_fpstore_bypass_p): Declare.
6289 * pa.c (pa_adjust_cost): Remove all true dependency cost
6290 adjustments. Also remove support for non-DFA scheduling.
6291 * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
6292 to adjust true dependency costs. Update various comments.
6293 (7100lc, 7200, 7300 scheduling): Simplify by combining the
6294 FP ALU & MPY units into a single unit.
6296 2002-05-06 Catherine Moore <clm@redhat.com>
6298 * config/v850/v850.c (compute_register_save_size): Make sure
6299 to count all of the registers that will be saved.
6301 Mon May 6 18:03:11 CEST 2002 Jan Hubicka <jh@suse.cz>
6303 * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
6305 2002-05-06 David S. Miller <davem@redhat.com>
6307 * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
6308 allow result to overlap input operands in memory.
6310 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
6313 * cpp.texi: Update multichar charconst docs.
6315 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
6317 * cpplex.c (cpp_interpret_charconst): Sign-extend each
6318 character. Don't ignore excess characters. Treat
6319 multicharacter character constants as signed.
6320 (cpp_parse_escape): Clarify diagnostic.
6322 2002-05-05 Jakub Jelinek <jakub@redhat.com>
6324 * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
6325 use add instead of shift.
6326 (ashldi3_sp64): Likewise.
6327 (ashlsi3_const1, ashldi3_const1): Remove.
6328 * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
6329 * config/sparc/sparc.c (const1_operand): New.
6331 2002-05-05 Jason Thorpe <thorpej@wasabisystems.com>
6333 * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
6335 2002-05-05 Jakub Jelinek <jakub@redhat.com>
6338 * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
6340 2002-05-05 Richard Henderson <rth@redhat.com>
6342 * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
6343 memory latency adjustments.
6344 (alpha_variable_issue): Remove.
6345 (alpha_use_dfa_pipeline_interface): New.
6346 (alpha_multipass_dfa_lookahead): New.
6347 * config/alpha/alpha.md: Remove define_function_unit scheduling;
6348 include new dfa scheduling.
6349 (attr type): Add none.
6351 * config/alpha/ev4.md: New.
6352 * config/alpha/ev5.md: New.
6353 * config/alpha/ev6.md: New.
6355 2002-05-05 David S. Miller <davem@redhat.com>
6357 * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
6359 2002-05-05 Kazu Hirata <kazu@cs.umass.edu>
6361 * cse.c: Fix formatting.
6362 * emit-rtl.c: Likewise.
6364 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
6366 * genautomata.c (initiate_states): Add additional guard to
6367 initialize `units_array'.
6369 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
6371 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
6372 process_unit_to_form_the_same_automaton_unit_lists,
6373 form_the_same_automaton_unit_lists
6374 check_unit_distributions_to_automata): New prototypes and
6376 (check_automata): Rename it into `check_automata_insn_issues'.
6377 (unit_decl): New fields `the_same_automaton_unit' and
6378 `the_same_automaton_message_reported_p'.
6379 (unit_decl_t): New typedef.
6380 (the_same_automaton_lists): New gloval variable.
6381 (unit_regexp, unit_set_el, units_array, units_cmp,
6382 output_get_cpu_unit_code_func): Use the typedef.
6383 (evaluate_max_reserv_cycles): Increment
6384 `description->max_insn_reserv_cycles'.
6385 (initiate_states): Don't increment `max_cycles_num'.
6386 (transform_insn_regexps): Move code around transformation of
6387 regexps from `generate'.
6388 (generate): Remove call of `transform_insn_regexps'.
6389 (expand_automata): Call `transform_insn_regexps' and
6390 `check_unit_distributions_to_automata'. Check errors before
6393 * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
6394 automaton `ultrasparc3_1'.
6396 2002-05-05 Neil Booth <neil@daikokuya.demon.co.uk>
6398 * c-common.c (c_common_init): Set up CPP arithmetic.
6399 * cppinit.c (cpp_create_reader): Default CPP arithmetic to
6400 something reasonable for the host.
6401 (sanity_checks): Add checks.
6402 (cpp_read_main_file): Call sanity_checks() from here...
6403 (cpp_post_options): ... not here.
6404 * cpplex.c (cpp_interpret_charconst): Get max_chars right.
6405 * cpplib.h (struct cpp_options): New member int_precision.
6407 2002-05-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6409 * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
6411 2002-05-04 David S. Miller <davem@redhat.com>
6413 * config/sparc/linux.h, config/sparc/linux64.h
6414 (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
6416 * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
6418 * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
6420 * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
6423 2002-05-05 Tim Josling <tej@melbpc.org.au>
6425 * treelang; New directory for new sample language treelang.
6427 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
6429 * Makefile.in (c-lex.o): Update.
6430 * c-lex.c: Include target.h.
6431 (cb_register_builtins): New.
6432 (init_c_lex): Set builtins callback.
6433 * c-lex.h (cpp_define, cpp_assert): New prototypes.
6434 * cppinit.c (init_builtins): Use callback, including for
6436 * cpplib.h (struct cpp_callbacks): New member.
6437 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
6438 (TARGET_INITIALIZER): Update.
6439 * target.h (struct gcc_target): New hook.
6440 * tree.c (default_register_cpp_builtins): New.
6441 * tree.h (default_register_cpp_builtins): New.
6443 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
6445 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
6447 * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
6448 (cpp_post_options): Move sanity checks to...
6449 (sanity_checks): New.
6450 * cpplex.c (maybe_read_ucs): Fix prototype.
6451 (parse_string, cpp_parse_escape): Cast for %c format specifier.
6452 * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
6455 2002-05-04 Bernd Schmidt <bernds@redhat.com>
6457 * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
6458 builtins. Use V2DI patterns instead of TI for logical operations.
6459 (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
6460 Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
6461 (ix86_expand_builtins): Change the pattern used for movntdq.
6462 * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
6463 sse2_nandv2di3): New patterns.
6464 (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
6466 (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
6467 (cvtdq2pd): Correct mode on operand 1.
6468 (sse2_umulsidi3): Describe without unspec.
6469 (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
6471 (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
6472 (ashlv2di3): Likewise, from sse2_ashlv2di3.
6473 (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
6474 ashlv4si3, ashlv2di3): Use SImode for shift count.
6475 (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
6476 lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
6478 * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
6480 (__m128i, __m128d): New macros.
6481 (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
6482 _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
6483 _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
6484 _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
6485 _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
6486 _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
6487 _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
6488 _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
6489 _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
6490 _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
6491 _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
6492 _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
6493 _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
6494 _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
6495 _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
6496 _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
6497 _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
6498 _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
6499 _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
6500 _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
6501 _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
6502 _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
6503 _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
6504 _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
6505 _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
6506 _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
6507 _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
6508 _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
6509 _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
6510 _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
6511 _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
6512 _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
6513 _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
6514 _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
6515 _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
6516 _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
6517 _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
6519 (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
6520 _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
6522 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
6524 * dwarf2out.c: Fix formatting.
6525 * varasm.c: Likewise.
6527 2002-05-04 David Edelsohn <edelsohn@gnu.org>
6530 * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
6531 clobber and use result as temporary value.
6533 Sat May 4 13:20:54 CEST 2002 Jan Hubicka <jh@suse.cz>
6535 * expr.c (force_operand): Use expand_simple_* to handle more
6538 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
6540 * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
6542 (lex_charconst): Update for change in prototype of
6543 cpp_interpret_charconst. Extend from cppchar_t to HOST_WIDE_INT
6545 * cpphash.h (BITS_PER_CPPCHAR_T): New.
6546 * cppinit.c (cpp_create_reader): Initialize them for no
6547 change in semantics.
6548 (cpp_post_options): Add sanity checks.
6549 * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
6550 and truncation issues. Calculate in type cppchar_t.
6551 (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
6552 (cpp_interpret_charconst): Calculate in type cppchar_t. Handle
6553 run-time dependent precision correctly. Return whether the
6554 result is signed or not.
6555 * cpplib.c (dequote_string): Use cppchar_t; update.
6556 * cpplib.h (cppchar_signed_t): New.
6557 struct cpp_options): New precision members.
6558 (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
6559 * cppexp.c (eval_token): Update.
6561 2002-05-03 David S. Miller <davem@redhat.com>
6563 * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
6564 * config/sparc/sparc.c (sparc_rtx_costs): New function
6565 implementing RTX_COSTS and CONST_COSTS.
6566 * config/sparc/sparc.h (CONST_COSTS): Delete.
6567 (RTX_COSTS_CASES): Define.
6568 (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
6571 * config/sparc/sparc.md (DFA schedulers): Split out...
6572 * config/sparc/cypress.md, config/sparc/hypersparc.md,
6573 config/sparc/sparclet.md, config/sparc/supersparc.md,
6574 config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
6576 * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
6577 checks on it, always defined for Sparc.
6579 * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
6580 Tweak, and add more detailed comments.
6582 2002-05-03 Zack Weinberg <zack@codesourcery.com>
6584 * Re-apply patch accidentally reverted with
6585 DFA scheduler merge: remove all rules and variables to slurp
6586 source files out of libiberty and rebuild them with HOST_CC.
6587 ($(HOST_PREFIX_1)varray.o): New rule.
6588 (genattrtab rule): Word wrap.
6590 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
6592 * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
6593 (CPP_SUBTARGET_SPEC): Define.
6594 (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
6595 cpp_subtarget specs.
6596 (CPP_SPEC): Redefine to include %(cpp_subtarget).
6598 2002-05-03 David S. Miller <davem@redhat.com>
6600 * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
6601 * target.h (struct gcc_target): Delete cycle_display member.
6603 * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
6604 (rtx_needs_barrier): Delete reference to cycle_display unspec.
6605 (ia64_sched_reorder2): Mention need for cycle display handling
6606 once such notes exist.
6608 2002-05-03 Richard Henderson <rth@redhat.com>
6610 * real.c (etoasc): Strip most trailing zeros for clarity.
6611 * sched-vis.c: Include real.h.
6612 (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
6613 * Makefile.in (sched-vis.o): Add real.h.
6615 2002-05-03 David S. Miller <davem@redhat.com>
6617 * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
6620 2002-05-03 Aldy Hernandez <aldyh@redhat.com>
6622 * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
6623 when we get an out of range literal.
6624 (altivec_expand_ternop_builtin): Same.
6625 (altivec_expand_unop_builtin): Same.
6626 (altivec_expand_builtin): Same, for dss.
6627 (altivec_expand_builtin): Use trees instead of rtl when
6628 determining literal argument validity.
6630 2002-05-03 David S. Miller <davem@redhat.com>
6632 Delete cycle display scheduling hook.
6633 * config/ia64/ia64.c (ia64_cycle_display,
6634 TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
6635 (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
6636 and use emit_insn_before instead of ia64_emit_insn_before.
6637 * config/ia64/ia64.md (unspec usage): Delete cycle display.
6638 (cycle_display): Delete insn pattern.
6639 * config/sparc/sparc.md (unspec usage): Delete cycle display.
6640 (cycle_display): Delete insn pattern.
6641 * config/sparc/sparc.c (sparc_cycle_display,
6642 TARGET_SCHED_CYCLE_DISPLAY): Delete.
6643 * doc/md.texi (cycle_display): Don't mention.
6644 * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
6646 2002-05-03 Richard Henderson <rth@redhat.com>
6648 * recog.c (store_data_bypass_p, if_test_bypass_p): New.
6649 * recog.h: Declare them.
6651 * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
6652 * config/sparc/sparc.md: Use store_data_bypass_p instead.
6653 * config/sparc/sparc-protos.h: Update.
6655 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
6657 * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
6658 -D__arch64__. Add -D_LP64.
6659 (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
6661 (CPP_ARCH64_SPEC): Likewise.
6662 (NO_BUILTIN_PTRDIFF_TYPE): Undef.
6663 (NO_BUILTIN_SIZE_TYPE): Undef.
6665 2002-05-03 Vladimir Makarov <vmakarov@redhat.com>
6667 * genautomata.c (min_issue_delay_pass_states): Change return type
6669 (min_issue_delay_pass_states): Change the algorithm.
6670 (min_issue_delay): Set up min_insn_issue_delay for the state.
6671 (output_min_issue_delay_table): Interchange the nested loops and
6672 and initiate min_insn_issue_delay for states.
6674 Fri May 3 22:59:15 CEST 2002 Jan Hubicka <jh@suse.cz>
6676 * cfgcleanup.c (try_optimize_cfg): Call merge_block only when
6679 Fri May 3 22:53:37 CEST 2002 Jan Hubicka <jh@suse.cz>
6681 * i386.c (expand_movstr, expand_clrstr): Fix inline-all-stringops
6684 2002-05-03 Richard Henderson <rth@redhat.com>
6687 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
6688 noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
6689 noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
6690 code before JUMP, not EARLIEST.
6692 2002-05-03 Joseph S. Myers <jsm28@cam.ac.uk>
6694 * c-format.c (check_format_info_main): Don't check for presence of
6695 parameter for * width until after operand number has been read,
6696 and only check for it if format parameters are available.
6699 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
6701 * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
6702 (LINK_SPEC): Undef before defining.
6704 2002-05-03 Jakub Jelinek <jakub@redhat.com>
6706 PR preprocessor/6489
6707 * tradcpp.c (fixup_newlines): New.
6708 (main, finclude): Use it.
6710 2002-05-03 Richard Sandiford <rsandifo@redhat.com>
6712 * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
6713 * config/mips/mips.c (mips_unique_section): Strip encoding from
6716 2002-05-03 Jakub Jelinek <jakub@redhat.com>
6718 * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
6721 2002-05-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6723 * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
6724 (Specific): Removed buildstats references.
6725 (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
6726 (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
6727 Accomodate Solaris versions beyond 8.
6728 (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
6729 (Specific, *-*-solaris2.8): Removed, obsolete.
6731 2002-05-03 Jakub Jelinek <jakub@redhat.com>
6734 * config/sparc/sparc.h (leaf_reg_remap): Remove const.
6735 (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
6736 fill leaf_reg_remap with identity.
6737 * config/sparc/sparc.c (leaf_reg_remap): Remove const.
6739 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
6741 * config/h8300/crti.asm: Remove trailing spaces.
6742 * config/h8300/h8300.c: Likewise.
6743 * config/h8300/lib1funcs.asm: Likewise.
6745 2002-05-02 Jason Merrill <jason@redhat.com>
6747 * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
6748 * c-decl.c (c_init_decl_processing): Use it.
6749 * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
6750 * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
6751 * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
6753 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
6755 * regrename.c: Fix formatting.
6758 Fri May 3 13:34:43 CEST 2002 Jan Hubicka <jh@suse.cz>
6760 * i386.md (attribute memory): Handle compares properly.
6762 Fri May 3 10:51:38 CEST 2002 Jan Hubicka <jh@suse.cz>
6764 * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
6767 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
6769 * function.c: Fix formatting.
6771 2002-05-02 Jan Hubicka <jh@suse.cz>
6773 * haifa-sched.c (schedule_insn): Print table of instructions and
6775 (sched_block): Do not print ready list at verbosity level 1.
6776 * sched-vis.c (print_insn): Make global.
6777 * sched-ebb.c (ebb_print_insn): Rename from...
6778 (print_insn): ... this one.
6779 * sched-int.h (print_insn): Declare
6781 2002-05-02 Richard Henderson <rth@redhat.com>
6783 * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
6784 emitted by cycle_display.
6786 2002-05-02 Loren J. Rittle <ljrittle@acm.org>
6788 * doc/install.texi (*-*-freebsd*): Update to latest status.
6790 2002-05-02 Jakub Jelinek <jakub@redhat.com>
6793 * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
6794 * config/float-sparc.h: Assume 128-bit long double if
6795 __LONG_DOUBLE_128__ is defined.
6797 2002-05-02 Vladimir Makarov <vmakarov@redhat.com>
6799 * genattrtab.c (write_function_unit_info): Add a dummy element
6800 when num_units == 0.
6802 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
6804 * predict.c: (propagate_freq, estimate_bb_frequencies): Use
6805 TYPE_MODE (double_type_node) instead of DFmode.
6807 Thu May 2 19:50:04 CEST 2002 Jan Hubicka <jh@suse.cz>
6809 * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
6811 * toplev.c (rest_of_compilation): Revert Richard's patch.
6813 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
6815 * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
6817 2002-05-02 Catherine Moore <clm@redhat.com>
6819 * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
6821 2002-05-02 Kazu Hirata <kazu@hxi.com>
6823 * combine.c: Fix comment typos.
6825 * genautomata.c: Likewise.
6829 2002-05-02 Joseph S. Myers <jsm28@cam.ac.uk>
6831 * doc/install.texi: State GNAT version requirements.
6833 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
6835 * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
6836 of the frame pointer or arg pointer register which strict register
6837 checking is not enabled.
6839 2002-05-02 Aldy Hernandez <aldyh@redhat.com>
6841 * gcc.dg/altivec-8.c: New.
6843 * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
6844 PRE_INC and PRE_DEC for altivec modes.
6846 2002-05-01 Bruce Korb <bkorb@gnu.org>
6848 * fixinc/check.tpl(set-writable): make sure the function exists first
6849 * fixinc/inclhack.def(alpha_assert): fix test_text
6850 * fixinc/tests/base/assert.h: add in missing result
6852 2002-05-01 Jeff Law <law@redhat.com>
6854 * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
6857 2002-05-01 Joel Brobecker <brobecker@gnat.com>
6859 * dbxout.c (dbxout_type): Emit size information for range types,
6860 as well, but only when using GDB extensions.
6862 2002-05-01 Richard Henderson <rth@redhat.com>
6864 * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
6865 target-independent gnu binutils date test.
6867 2002-05-01 Richard Henderson <rth@redhat.com>
6869 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
6870 info before expunging the block.
6872 2002-05-01 Jakub Jelinek <jakub@redhat.com>
6874 * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
6875 (cpp_post_options): ...but here. Disable -dD, -dN and -dI when
6876 -M -or -MM is in effect.
6878 2002-05-01 Zack Weinberg <zack@codesourcery.com>
6880 * config.gcc: Correct test of --enable-obsolete. Obsolete all
6881 A29k configurations.
6882 * doc/install.texi: Update to match.
6884 2002-05-01 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6887 * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
6888 for duplicates. Always loop over whole list.
6890 Wed May 1 10:32:37 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6892 * reload.c (find_reloads, case 'p'): Set BADOP to 0.
6894 2002-05-01 Joel Sherrill <joel@OARcorp.com>
6896 * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
6899 2002-05-01 Joel Sherrill <joel@OARcorp.com>
6901 * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
6903 2002-05-01 David Edelsohn <edelsohn@gnu.org>
6905 * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
6906 (nabs_nopower): Same.
6907 (floatdisf2): New pattern.
6908 (absdi2): Convert to define_insn_and_split.
6913 (fix_trunctfdi2): Same.
6914 (fix_trunctfsi2): Same.
6916 2002-05-01 Joseph S. Myers <jsm28@cam.ac.uk>
6918 * doc/install.texi: Update Texinfo version requirement
6921 2002-05-01 Jakub Jelinek <jakub@redhat.com>
6923 PR target/6512, PR target/5628
6924 * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
6925 when memory is not aligned.
6926 (movdf_insn_v9only_vis): Likewise.
6927 * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
6928 temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
6929 (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
6931 2002-05-01 Aldy Hernandez <aldyh@redhat.com>
6933 * gcc.dg/altivec-7.c: New.
6935 * config/rs6000/altivec.h: Cleanup.
6937 2002-04-30 Aldy Hernandez <aldyh@redhat.com>
6939 * doc/invoke.texi (Option Summary): Add -mvrsave=.
6940 (RS/6000 and PowerPC Options): Document -mvrsave=.
6942 * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
6943 (rs6000_altivec_vrsave_string): Same.
6944 (rs6000_override_options): Call rs6000_parse_vrsave_option.
6945 (rs6000_parse_vrsave_option): New.
6946 (rs6000_stack_info): Only generate vrsave instructions when
6947 TARGET_ALTIVEC_VRSAVE.
6949 * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
6950 (rs6000_altivec_vrsave_string): Define extern.
6951 (rs6000_altivec_vrsave): Same.
6952 (TARGET_ALTIVEC_VRSAVE): New.
6954 2002-04-30 Richard Henderson <rth@redhat.com>
6957 * toplev.c (rest_of_compilation): Don't run cross-jump before
6960 2002-04-30 Tom Rix <trix@redhat.com>
6962 * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
6963 check which_alternative.
6965 2002-04-30 Kazu Hirata <kazu@hxi.com>
6967 * cpplex.c: Fix comment formatting.
6968 * function.c: Likewise.
6969 * integrate.c: Likewise.
6970 * regrename.c: Likewise.
6971 * sibcall.c: Likewise.
6972 * simplify-rtx.c: Likewise.
6973 * tree-inline.c: Likewise.
6975 2002-04-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
6977 * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
6978 hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
6979 hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
6980 hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
6981 * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
6982 * pa/x-ada: New file. Define ADA_CFLAGS.
6984 2002-04-30 Hans-Peter Nilsson <hp@bitrange.com>
6986 * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
6987 from MMIX_LAST_REGISTER_FILE_REGNUM.
6988 (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
6989 (struct machine_function): New member highest_saved_stack_register
6990 previously static variable in mmix.c.
6991 (MACHINE_DEPENDENT_REORG): Define.
6992 * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
6993 (MMIX_OUTPUT_REGNO): New.
6994 (mmix_target_asm_function_prologue): Move calculation of last used
6995 saved-stack-register into...
6996 (mmix_machine_dependent_reorg): New function. Update to also handle
6998 (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
6999 register names, simplify somewhat by new variable regno.
7000 <case 'p'>: Remove fixed FIXME. Always emit highest used saved
7002 (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
7003 emitting register names.
7004 (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
7005 (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
7007 * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
7010 * config/mmix/mmix.md ("divmoddi4"): Update head comment.
7012 2002-04-30 Richard Henderson <rth@redhat.com>
7014 * config/sparc/sparc.c (emit_soft_tfmode_libcall,
7015 emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
7016 emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
7017 emit_tfmode_cvt): New.
7018 * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
7019 trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
7020 fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
7021 addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
7022 * config/sparc/sparc-protos.h: Update.
7024 2002-04-30 Janis Johnson <janis187@us.ibm.com>
7026 * install.texi (Final install): Add to the list of info to include
7027 in a report of a successful bootstrap, and add link to 3.1 list.
7029 Tue Apr 30 19:15:36 CEST 2002 Jan Hubicka <jh@suse.cz>
7031 * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
7032 (mode): Add vector modes
7033 (i387): Kill attribute.
7034 (unit): New attribute.
7035 (length_immediate): Grok new types.
7036 (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
7037 (modrm): Use "unit".
7038 (memory): Handle MMX/SSE properly.
7039 (scheduling descriptions): Kill uses of fop1.
7040 (sse, mmx, fp patterns): Set type and mode properly.
7042 Tue Apr 30 09:31:59 2002 Jeffrey A Law (law@redhat.com)
7044 * pa.c (override_options): Default to PA8000 scheduling.
7045 * doc/invoke.texi (HP-PA options): Mention newly added 7300
7046 scheduling parameter.
7048 * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
7049 handling of double precision multiplies.
7051 * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
7052 fpdiv and fpsqrt instructions.
7053 (7200 & 7300 scheduling): Fix typo in handling of
7054 store-load and store-store penalties.
7056 2002-04-30 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7058 * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
7059 mips. Add two missing commas.
7061 2002-04-30 Paolo Carlini <pcarlini@unitus.it>
7063 * doc/contrib.texi (Contributors): Update Paolo Carlini's
7064 and Benjamin Kosnik's entries.
7066 2002-04-29 David S. Miller <davem@redhat.com>
7068 * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
7069 SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
7070 * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
7071 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
7073 2002-04-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7075 * combine.c (find_split_point): Use gen_int_mode.
7077 2002-04-29 Vladimir Makarov <vmakarov@redhat.com>
7079 Merging code from dfa-branch:
7081 2002-04-24 Vladimir Makarov <vmakarov@redhat.com>
7083 * genautomata.c (output_reserv_sets): Fix typo.
7085 2002-04-23 Vladimir Makarov <vmakarov@redhat.com>
7087 * genautomata.c (output_reserv_sets): Remove
7088 next_cycle_output_flag.
7090 Thu Apr 18 08:57:06 2002 Jeffrey A Law (law@redhat.com)
7092 * sched-rgn.c (init_ready_list): Make the DFA code handle
7093 USE/CLOBBER insns in the same way as the traditional
7095 (new_ready): Similarly..
7097 2002-04-17 Vladimir Makarov <vmakarov@redhat.com>
7099 * haifa-sched.c (schedule_block): Change the DFA state only after
7102 Wed Apr 17 15:38:36 2002 Jeffrey A Law (law@redhat.com)
7104 * pa.c (hppa_use_dfa_pipeline_interface): New function.
7105 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
7106 (override_options): Add PA7300 scheduling support.
7107 (pa_adjust_cost): Update various comments. Properly
7108 handle anti and output dependencies when using the
7110 (pa_issue_rate): Add PA7300 scheduling support.
7111 (pa_can_combine_p): Call extract_insn before calling
7112 constrain_operands (taken from mainline tree).
7113 * pa.h (enum processor_type): Add PROCESSOR_PA7300.
7114 * pa.md (cpu attr): Add 7300. Rewrite pipeline
7115 descriptions using DFA descriptions. Add PA7300
7118 2002-03-30 David S. Miller <davem@redhat.com>
7120 Add UltraSPARC-III DFA scheduling support.
7121 * config/sparc/sparc.md (define_attr type): Add fpcrmove.
7122 Update FP conditional move on register insn patterns to use it, as
7124 (define_attr cpu): Add ultrasparc3.
7125 (define_attr us3load_type): New, update integer load patterns to
7126 set it, as appropriate.
7127 (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
7128 (rest): Add UltraSPARC3 scheduling description.
7129 * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
7130 (PROCESSOR_ULTRASPARC3): New.
7131 ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
7132 ({ASM,CPP}_CPU_SPEC): Likewise.
7133 (REGISTER_MOVE_COST): Likewise.
7134 (RTX_COSTS): Likewise.
7135 * config/sparc/sparc.c (sparc_override_options,
7136 sparc_initialize_trampoline, sparc64_initialize_trampoline,
7137 sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
7138 sparc_issue_rate): Likewise.
7139 * config/sparc/sol2.h: Likewise.
7140 * config/sparc/sol2-sld-64.h: Likewise.
7141 * config/sparc/linux64.h: Likewise.
7143 2002-03-22 Vladimir Makarov <vmakarov@redhat.com>
7145 * doc/md.texi: Add comments about usage the latency time for the
7146 different dependencies and about case when two or more conditions
7147 in different define_insn_reservations returns TRUE for an insn.
7149 * doc/md.texi: Add reference for automaton based pipeline
7152 2002-03-04 Vladimir Makarov <vmakarov@redhat.com>
7154 * doc/passes.texi: Add missed information about genattrtab.
7156 2002-03-01 Vladimir Makarov <vmakarov@redhat.com>
7158 * genautomata.c (output_automata_list_transition_code): Check
7159 automata_list on NULL.
7161 2002-02-28 Vladimir Makarov <vmakarov@redhat.com>
7163 * genautomata.c (output_insn_code_cases,
7164 output_automata_list_min_issue_delay_code,
7165 output_automata_list_transition_code,
7166 output_automata_list_state_alts_code): Comment the functions.
7168 2002-02-22 Vladimir Makarov <vmakarov@redhat.com>
7170 * genautomata.c (automata_list_el_t): New typedef.
7171 (get_free_automata_list_el,free_automata_list_el,
7172 free_automata_list, automata_list_hash, automata_list_eq_p,
7173 initiate_automata_lists, automata_list_start, automata_list_add,
7174 automata_list_finish, finish_automata_lists,
7175 output_insn_code_cases, output_automata_list_min_issue_delay_code,
7176 output_automata_list_transition_code,
7177 output_automata_list_state_alts_code, add_automaton_state,
7178 form_important_insn_automata_lists): New functions and prototypes.
7179 (insn_reserv_decl): Add members important_automata_list and
7181 (ainsn): Add members important_p.
7182 (automata_list_el): New structure.
7183 (first_free_automata_list_el, current_automata_list,
7184 automata_list_table): New global variables.
7185 (create_ainsns): Initiate member important_p.
7186 (output_internal_min_issue_delay_func): Generate the switch and
7187 call output_insn_code_cases.
7188 (output_internal_trans_func, output_internal_state_alts_func):
7190 (generate): Call initiate_automata_lists.
7191 (automaton_states): New global variable.
7192 (expand_automata): Call form_important_insn_automata_lists.
7193 (write_automata): Call finish_automata_lists.
7195 2002-02-21 Vladimir Makarov <vmakarov@redhat.com>
7197 * genautomata.c (add_excls, add_presence_absence): Check that
7198 cpu units in the sets belong the same automaton.
7200 * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
7201 about that cpu units in the sets belong the same automaton.
7203 * doc/md.texi: Ditto.
7205 2001-12-20 Naveen Sharma <naveens@noida.hcltech.com>
7206 Nitin Gupta <niting@noida.hcltech.com>
7208 * config/sh/sh.c (sh_use_dfa_interface): New function.
7210 (sh_issue_rate): New Function.
7211 TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
7212 TARGET_SCHED_ISSUE_RATE: define.
7214 * config/sh/sh.md: Add DFA based pipeline description for SH4.
7216 (define_attr insn_class): New attribute used for DFA
7218 (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
7219 (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
7220 cmpeqdi_t): Likewise.
7222 (add,addc1,addsi3,subc,subc1,*subsi3_internal,
7223 negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
7225 (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
7227 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
7229 * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
7232 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
7234 * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
7235 (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
7237 (output_dfa_start_func): Initiate new variable insn_codes_length,
7238 (write_automata): Output definition of the new variable.
7240 2001-10-02 David S. Miller <davem@redhat.com>
7242 * haifa-sched.c (advance_one_cycle): New function.
7243 (schedule_block): Use it.
7244 (queue_to_ready): Use it, and also make sure to advance the DFA
7245 state on all stall cycles, not just those where insn_queue links
7248 2001-10-02 Richard Sandiford <rsandifo@redhat.com>
7250 * haifa-sched.c (max_issue): Remove last_p argument. Only return
7251 non-zero if the highest-priority instruction could be scheduled.
7252 (choose_ready): Remove last argument from max_issue call.
7254 2001-09-28 David S. Miller <davem@redhat.com>
7256 * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
7257 ultrasparc and 3 for other multi-issue sparcs.
7259 2001-09-27 David S. Miller <davem@redhat.com>
7261 * config/sparc/sparc.md (cycle_display): New pattern.
7262 * config/sparc/sparc.c (sparc_cycle_display): New.
7263 (TARGET_SCHED_CYCLE_DISPLAY): Set it.
7265 2001-09-25 David S. Miller <davem@redhat.com>
7267 Convert all of Sparc scheduling to DFA
7268 * config/sparc/sparc.md: Kill all define_function_unit
7269 directives and replace with DFA equivalent.
7270 * config/sparc/sparc.c (ultrasparc_adjust_cost,
7271 mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
7272 ultra_fpmode_conflict_exists, ultra_find_type,
7273 ultra_build_types_avail, ultra_flush_pipeline,
7274 ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
7275 ultrasparc_variable_issue, ultrasparc_sched_init,
7276 sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
7277 ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
7278 ultra_cur_hist, ultra_cycles_elapsed): Kill.
7279 (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
7280 ultrasparc_store_bypass_p): New.
7281 * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
7284 2001-09-24 David S. Miller <davem@redhat.com>
7286 * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
7287 ready->vec[foo] not ready[foo].
7289 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
7291 * doc/md.texi: Correct examples for define_insn_reservations
7294 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
7296 * genautomata.c (create_automata): Print message about creation of
7298 (generate): Remove printing meease about creation of
7301 2001-09-05 David S. Miller <davem@redhat.com>
7303 * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
7304 * config/sparc/linux64.h: Likewise.
7306 2001-08-31 Vladimir Makarov <vmakarov@redhat.com>
7308 * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
7309 schedule_block, sched_init, sched_finish): Add missed calls of
7310 use_dfa_pipeline_interface.
7312 * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
7315 * sched-vis.c (get_visual_tbl_length): Ditto.
7317 2001-08-27 Richard Henderson <rth@redhat.com>
7319 * genattr.c (main): Emit state_t even when not doing scheduling.
7321 2001-08-27 Richard Henderson <rth@redhat.com>
7323 * genautomata.c (expand_automata): Always create a description.
7325 2001-08-27 Vladimir Makarov <vmakarov@touchme.toronto.redhat.com>
7327 * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
7328 PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
7329 AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
7332 * genattr.c (main): New variable num_insn_reservations. Increase
7333 it if there is DEFINE_INSN_RESERVATION. Output automaton based
7334 pipeline hazard recognizer interface.
7336 * genattrtab.h: New file.
7338 * genattrtab.c: Include genattrtab.h.
7339 (attr_printf, check_attr_test, make_internal_attr,
7340 make_numeric_value): Move protypes into genattrtab.h. Define them
7342 (num_dfa_decls): New global variable.
7343 (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
7344 DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
7345 DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
7346 DEFINE_INSN_RESERVATION. Call expand_automata and write_automata.
7348 * genautomata.c: New file.
7350 * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
7352 * sched-int.h: (curr_state): Add the external definition for
7353 automaton pipeline interface.
7354 (haifa_insn_data): Add comments for members blockage and units.
7356 * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
7357 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
7358 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
7359 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
7360 TARGET_SCHED_DFA_POST_CYCLE_INSN,
7361 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
7362 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
7364 (TARGET_SCHED): Use the new macros.
7366 * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
7367 dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
7368 first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
7369 dfa_bubble): New members in gcc_target.sched.
7371 * haifa-sched.c (insert_schedule_bubbles_p): New variable.
7372 (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
7373 (insn_queue): Redefine it as pointer to array.
7374 (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
7376 (max_insn_queue_index_macro_value): New variable.
7377 (curr_state, dfa_state_size, ready_try): New varaibles for
7378 automaton interface.
7379 (ready_element, ready_remove, max_issue): New function prototypes
7380 for automaton interface.
7381 (choose_ready): New function prototype.
7382 (insn_unit, blockage_range): Add comments.
7383 (unit_last_insn, unit_tick, unit_n_insns): Define them for case
7384 FUNCTION_UNITS_SIZE == 0.
7385 (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
7386 actual_hazard, potential_hazard): Add comments.
7387 (insn_cost): Use cost -1 as undefined value. Remove
7388 LINK_COST_ZERO and LINK_COST_FREE. Add new code for automaton
7390 (ready_element, ready_remove): New functions for automaton
7392 (schedule_insn): Add new code for automaton pipeline interface.
7393 (queue_to_ready): Add new code for automaton pipeline interface.
7394 Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
7395 (debug_ready_list): Print newline when the queue is empty.
7396 (max_issue): New function for automaton pipeline interface.
7397 (choose_ready): New function.
7398 (schedule_block): Add new code for automaton pipeline interface.
7399 Print ready list before scheduling each insn.
7400 (sched_init): Add new code for automaton pipeline interface.
7401 Initiate insn cost by -1.
7402 (sched_finish): Free the current automaton state and finalize
7403 automaton pipeline interface.
7405 * sched-rgn.c: Include target.h.
7406 (init_ready_list, new_ready, debug_dependencies): Add new code for
7407 automaton pipeline interface.
7409 * sched-vis.c: Include target.h.
7410 (get_visual_tbl_length): Add code for automaton interface.
7411 (target_units, print_block_visualization): Add comments.
7413 * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
7414 USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
7415 (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
7416 (getruntime.o, genautomata.o): New entries.
7417 (genattrtab.o): Add new dependency file genattrtab.h.
7418 (genattrtab): Add new dependencies. Link it with `libm.a'.
7419 (getruntime.o, hashtab.o): New entries for canadian cross.
7421 * doc/md.texi: Description of automaton based model.
7423 * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
7425 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
7426 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
7427 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
7428 TARGET_SCHED_DFA_POST_CYCLE_INSN,
7429 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
7430 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
7431 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
7433 (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
7434 MAX_DFA_ISSUE_RATE): New macro descriptions.
7436 * doc/contrib.texi: Add dfa based scheduler contribution.
7438 * doc/gcc.texi: Add more information about genattrtab.
7440 Mon Apr 29 17:19:10 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7442 * reload1.c (eliminate_regs, case SUBREG): Fix typo in
7443 adjust_address_nv call.
7445 2002-04-29 Janis Johnson <janis187@us.ibm.com>
7447 * doc/install.texi (Testing): Provide additional information, and
7448 a stronger encouragement, for running the testsuites.
7450 2002-04-29 DJ Delorie <dj@redhat.com>
7452 * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
7453 given in upper case.
7455 2002-04-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7457 * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
7458 Solaris 2 <widec.h> if missing.
7459 * fixinc/fixincl.x: Regenerate.
7460 * fixinc/tests/base/widec.h: New file.
7462 2002-04-29 Nick Clifton <nickc@cambridge.redhat.com>
7464 * toplev.c (f_options): Add "profile" switch so that
7465 -fno-profile can be used to disable -p.
7467 2002-04-29 Bernd Schmidt <bernds@redhat.com>
7469 * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
7471 * tree.c (build_common_tree_nodes_2): Likewise.
7472 * tree.h (enum tree_index): Likewise.
7473 (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
7475 * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
7477 (init_mmx_sse_builtins): Initialize SSE2 builtins.
7478 (ix86_expand_builtin): Add support for SSE2 builtins.
7479 * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
7480 (VALID_SSE_REG_MODE): Use it.
7481 (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
7482 (enum ix86_builtins): Add SSE2 builtins.
7483 * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
7484 movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
7485 addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
7486 divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
7487 sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
7488 vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
7489 vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
7490 sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
7491 cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
7492 cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
7493 cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
7494 ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
7495 subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
7496 mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
7497 sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
7498 sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
7499 sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
7500 gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
7501 ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
7502 ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
7503 sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
7504 sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
7505 sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
7506 sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
7507 sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
7508 sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
7509 lfence_insn): New patterns.
7510 (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
7511 sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
7513 Mon Apr 29 17:03:24 CEST 2002 Jan Hubicka <jh@suse.cz>
7515 * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
7517 2002-04-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7519 * doc/contrib.texi (Contributors): Add Paolo Carlini and
7521 Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
7522 Refer to Objective-C instead of ObjC, SPARC instead of sparc,
7523 and CPU instead of cpu.
7525 Mon Apr 29 13:36:41 CEST 2002 Jan Hubicka <jh@suse.cz>
7527 * toplev.c (flag_if_conversion, flag_if_conversion2): New static
7529 (lang_independent_options): Add -fif-conversion, -fif-conversion2
7530 (rest_of_compilation): Do if conversion only when asked for.
7531 (parse_options_and_default_flags): Set new variables to 1 for -O1
7532 * invoke.texi (-fif-conversion, -fif-conversion2): Document.
7534 Mon Apr 29 13:02:50 CEST 2002 Jan Hubicka <jh@suse.cz>
7536 * i386.c (dbx64_register_map): Fix typo.
7538 Mon Apr 29 12:18:35 CEST 2002 Jan Hubicka <jh@suse.cz>
7540 * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
7541 real_one_half, real_bb_freq_max): New static variables.
7542 (debug_profile_bbauxs): Kill.
7543 (process_note_predictions): Kill unused variable.
7544 (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
7546 (propagate_freq): Use REAL_ARITHMETICS.
7547 (estimate_bb_frequencies): Likevise; init new static variables.
7548 * Makefile.in (predict.o): Add dependency on real.h
7550 2002-04-28 David S. Miller <davem@redhat.com>
7553 * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
7554 64-bit TARGET_V9. Do not use prefetch page, use prefetch for
7555 several {reads,writes} instead.
7556 * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
7559 2002-04-27 David S. Miller <davem@redhat.com>
7562 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
7565 * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
7566 including signal.h and sys/ucontext.h, not needed.
7568 2002-04-29 Hans-Peter Nilsson <hp@bitrange.com>
7570 * varasm.c (output_constant_def): Correct test for not calling
7571 ENCODE_SECTION_INFO for INTEGER_CST.
7573 2002-04-29 Neil Booth <neil@daikokuya.demon.co.uk>
7575 * cppexp.c (lex): Move some code to _cpp_parse_expr, but
7576 keep most cases as function eval_token.
7577 (eval_token): New function.
7578 (_cpp_parse_expr): Read token here for improved diagnostics.
7579 Don't use op_as_text. Detect bad ':' here.
7580 (reduce): Don't detect bad ':' here.
7581 (op_as_text): Remove.
7582 * cpphash.h (_cpp_test_assertion): Change prototype.
7583 * cpplib.c (_cpp_test_assertion): Change prototype.
7585 2002-04-28 Richard Henderson <rth@redhat.com>
7588 * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
7589 (ggc_mark_rtx_children): New.
7591 2002-04-28 Jakub Jelinek <jakub@redhat.com>
7594 * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
7595 after call peepholes for UltraSPARC.
7596 (call + jump 64-bit peepholes): Remove.
7598 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7601 * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
7602 result as temporary value.
7604 2002-04-28 Jakub Jelinek <jakub@redhat.com>
7607 * toplev.c (rest_of_compilation): Only run regrename and copy
7608 propagation if optimizing.
7610 2002-04-28 Jakub Jelinek <jakub@redhat.com>
7612 PR optimization/6475
7613 * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
7614 register of REGNO_DECL (i).
7615 * Makefile.in (reload1.o): Add $(TREE_H).
7617 2002-04-28 Neil Booth <neil@daikokuya.demon.co.uk>
7619 * cppexp.c (lex): Update to use state.skip_eval.
7620 (struct op): Remove prio and flags members.
7621 (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
7622 SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
7623 (LEFT_ASSOC): New macro.
7624 (optab): New table of operator priorities and flags.
7626 (_cpp_parse_expr): Clean up logic. Return bool. Use a
7627 malloc-ed parser stack.
7628 (reduce): New; reduce the operator stack.
7629 (_cpp_expand_op_stack): Expand the operator stack as necessary.
7630 * cpphash.h (struct op): Predeclare.
7631 (struct cpp_reader): New members op_stack, op_limit.
7632 (struct lexer_state): New member skip_eval.
7633 (_cpp_parse_expr): Update.
7634 (_cpp_expand_op_stack): New.
7635 * cpplib.c (do_if): Update.
7636 * cppinit.c (cpp_create_reader): Create op stack.
7637 (cpp_destroy): And destroy it.
7638 * cpplib.h (CPP_LAST_CPP_OP): Correct.
7639 (TTYPE_TABLE): Correct.
7641 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7644 * c-decl.c (duplicate_decls): Call merge_weak.
7645 * c-pragma.c (apply_pragma_weak): Warn about misuse.
7646 * output.h (merge_weak): Prototype merge_weak.
7647 * varasm.c (merge_weak): New function.
7648 (declare_weak): Make sure we don't give an error on VAR_DECLs.
7649 Mark RTL with SYMBOL_REF_WEAK.
7651 2002-04-27 Kurt Garloff <garloff@suse.de>
7653 * tree-inline.c (inlinable_function_p): Improve heuristics
7654 by using a smoother function to cut down allowable inlinable size.
7655 * param.def: Add parameters max-inline-insns-single,
7656 max-inline-slope, min-inline-insns that determine the exact
7657 shape of the above function.
7658 * param.h: Likewise.
7660 2002-04-26 Richard Henderson <rth@redhat.com>
7662 * c-parse.in (malloced_yyss, malloced_yyvs): New.
7663 (yyoverflow): Re-add. Set them.
7664 (free_parser_stacks): New.
7665 * c-common.h: Declare it.
7666 * c-lex.c (c_common_parse_file): Call it.
7668 2002-04-26 Richard Henderson <rth@redhat.com>
7670 * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
7671 for fallthru search.
7673 2002-04-26 Eric Christopher <echristo@redhat.com>
7675 PR optimization/3700
7676 * config/mips/mips.c (mips_issue_rate): Define. New function.
7677 (TARGET_SCHED_ISSUE_RATE): Use.
7679 2002-04-25 David S. Miller <davem@redhat.com>
7682 * reorg.c (optimize_skip): Do not allow exception causing
7683 instructions to be considered for delay slots.
7684 (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
7685 (relax_delay_slots): Do not try to consider exception causing
7686 instructions as redundant.
7688 2002-04-26 Richard Henderson <rth@redhat.com>
7691 * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
7693 2002-04-26 Mark Mitchell <mark@codesourcery.com>
7696 * config/i386/i386.md (untyped_call): Return the value in a float
7697 register if TARGET_FLOAT_RETURNS_IN_80387, not just if
7700 2002-04-26 Alexandre Oliva <aoliva@redhat.com>
7702 * tree.c (tree_int_cst_lt): Compare constants whose types differ
7703 in unsigned-ness correctly.
7705 2002-04-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
7707 * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
7708 portable runtime model.
7710 2002-04-26 Richard Henderson <rth@redhat.com>
7712 * c-parse.in (yyoverflow): Revert.
7714 2002-04-26 David Edelsohn <edelsohn@gnu.org>
7715 Richard Henderson <rth@redhat.com>
7717 * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
7718 result as temporary value.
7720 2002-04-26 Richard Henderson <rth@redhat.com>
7723 * c-common.c (fix_string_type): Split out of ...
7724 (combine_strings): ... here. Take a varray, not a tree list.
7725 (c_expand_builtin_printf): Use fix_string_type.
7726 * c-common.h: Update decls.
7727 * c-parse.in (string): Remove. Update all uses to use STRING
7728 instead, and not call combine_strings.
7731 * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
7732 (build_asm_stmt): Likewise.
7733 * objc/objc-act.c (my_build_string): Use fix_string_type.
7734 (build_objc_string_object): Build varray for combine_strings.
7736 2002-04-26 Bo Thorsen <bo@suse.co.uk>
7738 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
7741 2002-04-26 Neil Booth <neil@daikokuya.demon.co.uk>
7743 * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
7744 (HAVE_NO_R_OPERAND): Remove.
7745 (HAVE_VALUE): Remove.
7746 (op_to_prio): Update.
7747 (UNARY): Don't alter flags.
7748 (_cpp_parse_expr): want_value used to indicate whether
7749 a number or unary operator is expected next. Distinguish
7750 unary and binary +/-.
7751 (op_as_text): Update for unary operators.
7753 2002-04-25 Richard Henderson <rth@redhat.com>
7756 * c-parse.in (yyoverflow): New.
7758 2002-04-25 Richard Henderson <rth@redhat.com>
7761 * c-common.c (shorten_compare): Simplfy conditions leading to
7762 the generation of a warning.
7764 2002-04-25 Richard Henderson <rth@redhat.com>
7767 * expmed.c (extract_bit_field): Fall through to generic code rather
7768 than aborting on subreg special case.
7770 2002-04-25 David S. Miller <davem@redhat.com>
7772 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
7773 for DECL being NULL.
7775 2002-04-25 Steve Christiansen <smc@us.ibm.com>
7777 * doc/md.texi (Machine Constraints): Add IA-64 constraints.
7779 2002-04-25 Eric Botcazou <ebotcazou@multimania.com>
7781 * c-decl.c (grokdeclarator): Remove outdated ??? note
7782 on invalid declaration of flexible array members.
7784 2002-04-25 Richard Henderson <rth@redhat.com>
7786 * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
7788 2002-04-25 Ulrich Weigand <uweigand@de.ibm.com>
7790 * config/s390/s390.c (s390_emit_epilogue): Always restore registers
7791 needed by the compiler, even if they are used as global regs.
7793 2002-04-25 Matt Hiller <hiller@redhat.com>
7795 * mips.c (mips_class_max_nregs, mips_register_move_cost): New
7797 * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
7798 of the corresponding functions.
7799 * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
7802 2002-04-25 Matt Hiller <hiller@redhat.com>
7804 * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
7806 (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
7807 (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
7808 registers, adjust comment accordingly.
7809 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
7810 reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
7811 DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
7812 for coprocessor registers.
7813 (ADDITIONAL_REGISTER_NAMES): Include
7814 ALL_COP_ADDITIONAL_REGISTER_NAMES.
7816 (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
7817 COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
7818 COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
7819 COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
7820 COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
7822 (mips_char_to_class): Adjust comment to include coprocessor
7825 * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
7827 (mips_reg_names, mips_regno_to_class): Include coprocessor
7829 (mips_sw_reg_names): Ditto, make non-static.
7830 (mips_move_1word): Handle moves to and from coprocessor registers.
7831 (mips_move_2words): Handle moves to and from coprocessor
7833 (mips_class_max_nregs, mips_register_move_cost): Handle
7834 coprocessor register classes.
7835 (override_options): Initialize mips_char_to_class and
7836 mips_hard_regno_mode_ok properly for coprocessor registers.
7838 * config/mips/mips.md (movdi_internal, movdi_internal2,
7839 movsi_internal1, movsi_internal2): Add constraint-sets for
7840 coprocessor registers.
7841 * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
7842 * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
7844 * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
7845 * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
7847 * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
7848 * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
7850 * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
7851 * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
7854 * doc/tm.texi: Document feature.
7856 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
7858 * integrate.c (function_attribute_inlinable_p): Simplify.
7859 Check the table pointer is not NULL.
7861 2002-04-25 Steven Bosscher <S.Bosscher@student.tudelft.nl>
7863 * doc/c-tree.texi: Fix typo in introduction.
7865 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
7867 * c-common.h (c_common_parse_file): Update.
7868 * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
7869 * c-lex.c (YYDEBUG): Get from c-lex.h.
7870 (c_common_parse_file): Update.
7871 * c-lex.h (YYDEBUG, yydebug): New.
7872 * c-parse.in (YYDEBUG): Get from c-lex.h.
7873 (c_set_yydebug): Remove.
7874 * c-tree.h (c_set_yydebug): Remove.
7875 * langhooks-def.h (lhd_do_nothing_i): New.
7876 (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
7877 (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
7878 * langhooks.c (lhd_do_nothing_i): New.
7879 (lhd_set_yydebug): Remove.
7880 * langhooks.h (struct lang_hooks): Update.
7881 * toplev.c (set_yydebug): New.
7882 (compile_file): Update call to parse_file hook.
7883 (decode_d_option): Update.
7885 * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
7887 Wed Apr 24 23:45:37 2002 J"orn Rennecke <joern.rennecke@superh.com>
7889 * loop.c (load_mems): Don't change the interface of called functions.
7891 * calls.c (expand_call): Take current_function_pretend_args_size
7892 into account when setting argblock for sibcalls.
7894 2002-04-24 Matt Hiller <hiller@redhat.com>
7896 * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
7899 * cpplex.c (skip_line_comment): Process comment one multibyte
7900 character at a time rather than one char at a time, if
7902 (parse_string): Process string one multibyte character at a time
7903 rather than one char at a time, if appropriate.
7904 * c-lex.c (lex_string): Lex and copy multibyte strings
7906 * cpplib.h (cppchar_t): Change to unsigned.
7908 2002-04-24 Richard Henderson <rth@redhat.com>
7911 * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
7914 Wed Apr 24 21:51:54 2002 J"orn Rennecke <joern.rennecke@superh.com>
7916 * sh.c (sh_va_arg): If argument was passed by reference,
7917 dereference the pointer.
7919 * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
7921 * sh.md (divsi3_i4_media): Use match_operand for input values
7922 rather than hard registers.
7923 (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
7924 unnecessarily through hard registers. Keep copies of pseudo
7925 registers outside of the libcall sequence.
7927 * sh.md (casesi_shift_media): Add modes.
7929 * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
7932 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
7934 * attribs.c (c_common_attribute_table): Move table and handlers
7936 (format_attribute_table, lang_attribute_table,
7937 lang_attribute_common): Remove.
7938 (init_attributes): Replace NULL pointers with pointers to the
7940 (handle_packed_attribute, handle_nocommon_attribute,
7941 handle_common_attribute, handle_noreturn_attribute,
7942 handle_noinline_attribute, handle_always_inline_attribute,
7943 handle_used_attribute, handle_unused_attribute,
7944 handle_const_attribute, handle_transparent_union_attribute,
7945 handle_constructor_attribute, handle_destructor_attribute,
7946 handle_mode_attribute, handle_section_attribute,
7947 handle_aligned_attribute, handle_weak_attribute,
7948 handle_alias_attribute, handle_visibility_attribute,
7949 handle_no_instrument_function_attribute, handle_malloc_attribute,
7950 handle_no_limit_stack_attribute, handle_pure_attribute,
7951 handle_deprecated_attribute, handle_vector_size_attribute,
7952 vector_size_helper): Move to c-common.c.
7953 * c-common.c (c_common_attribute_table,
7954 handle_packed_attribute, handle_nocommon_attribute,
7955 handle_common_attribute, handle_noreturn_attribute,
7956 handle_noinline_attribute, handle_always_inline_attribute,
7957 handle_used_attribute, handle_unused_attribute,
7958 handle_const_attribute, handle_transparent_union_attribute,
7959 handle_constructor_attribute, handle_destructor_attribute,
7960 handle_mode_attribute, handle_section_attribute,
7961 handle_aligned_attribute, handle_weak_attribute,
7962 handle_alias_attribute, handle_visibility_attribute,
7963 handle_no_instrument_function_attribute, handle_malloc_attribute,
7964 handle_no_limit_stack_attribute, handle_pure_attribute,
7965 handle_deprecated_attribute, handle_vector_size_attribute,
7966 vector_size_helper): Move from attribs.c.
7967 * c-common.h (c_common_attribute_table,
7968 c_common_format_attribute_table): New.
7969 * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
7970 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
7971 * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
7972 LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
7973 (LANG_HOOKS_INITIALIZER): Update.
7974 * langhooks.h (struct lang_hooks): 3 new attribute hooks.
7975 * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
7976 * target.h: Update comment.
7977 * tree.c (default_target_attribute_table): Remove.
7978 * tree.h (default_target_attribute_table, format_attribute_table,
7979 lang_attribute_table, lang_attribute_common): Remove.
7981 * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
7982 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
7984 2002-04-24 Jason Merrill <jason@redhat.com>
7986 * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
7987 * dwarf2out.c (dwarf_attr_name): Support it.
7988 (gen_array_type_die): Emit it.
7989 (lookup_type_die): No special handling for VECTOR_TYPE.
7990 (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
7992 2002-04-24 Richard Henderson <rth@redhat.com>
7994 * config/mips/mips.md (movdi_usd): Renumber.
7996 2002-04-24 David S. Miller <davem@redhat.com>
7999 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
8000 32-bit Sparc and current_function_returns_struct is true.
8002 Wed Apr 24 13:48:25 CEST 2002 Jan Hubicka <jh@suse.cz>
8004 * loop.c (canonicalize_condition): Use gen_int_mode.
8006 2002-04-24 Aldy Hernandez <aldyh@redhat.com>
8008 * config/rs6000/altivec.h: Cleanup file. Add non individual
8030 (vec_vcmpequb): New.
8031 (vec_vcmpequh): New.
8032 (vec_vcmpequw): New.
8033 (vec_vcmpeqfp): New.
8034 (vec_vcmpgefp): New.
8035 (vec_vcmpgtub): New.
8036 (vec_vcmpgtsb): New.
8037 (vec_vcmpgtuh): New.
8038 (vec_vcmpgtsh): New.
8039 (vec_vcmpgtuw): New.
8040 (vec_vcmpgtsw): New.
8041 (vec_vcmpgtfp): New.
8042 (vec_vcmpgefp): New.
8047 (vec_vexptefp): New.
8052 (vec_lde): Add vector float variant.
8057 (vec_vmhaddshs): New.
8079 (vec_vmladduhm): New.
8080 (vec_vmhraddshs): New.
8082 (vec_vmsummbm): New.
8083 (vec_vmsumuhm): New.
8084 (vec_vmsumshm): New.
8085 (vec_vmsumuhs): New.
8086 (vec_vmsumshs): New.
8095 (vec_vnmsubfp): New.
8113 (vec_vrsqrtefp): New.
8124 (vec_vspltisb): New.
8125 (vec_vspltish): New.
8126 (vec_vspltisw): New.
8151 (vec_vsum4ubs): New.
8152 (vec_vsum4sbs): New.
8153 (vec_vsum4shs): New.
8154 (vec_vsum2sws): New.
8165 2002-04-23 Eric Botcazou <ebotcazou@multimania.com>
8168 * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
8169 added literals from substracted literals.
8170 (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
8171 (fold) [associate]: Preserve MINUS_EXPR if needed.
8173 2002-04-23 Zack Weinberg <zack@codesourcery.com>
8175 * doc/install.texi: Clarify which versions of alpha*-dec-osf*
8178 2002-04-23 Tom Tromey <tromey@redhat.com>
8180 * gcc.c: Added --resource. For PR java/6314.
8182 2002-04-23 David O'Brien <obrien@FreeBSD.org>
8184 * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
8185 * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
8188 2002-04-23 David O'Brien <obrien@FreeBSD.org>
8190 * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
8192 Tue Apr 23 14:24:25 CEST 2002 Jan Hubicka <jh@suse.cz>
8194 * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
8196 (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
8197 (ix86_expand_clrstr): Fix typo.
8198 * loop.c (gen_load_of_final_value): New.
8199 (loop_givs_rescan, strength_reduce, check_dbra_loop):
8202 2002-04-23 Roger Sayle <roger@eyesopen.com>
8204 * builtins.c (builtin_memset_gen_str): New function.
8205 (expand_builtin_memset): Optimize the case of constant length, but
8208 2002-04-23 Aldy Hernandez <aldyh@redhat.com>
8210 * config/rs6000/altivec.h (vec_step): Remove extraneous
8212 (vec_ctu): Cast return.
8214 2002-04-23 Alan Modra <amodra@bigpond.net.au>
8217 * function.h: (struct function): Add profile_label_no field.
8218 (current_function_profile_label_no): Define.
8219 * function.c: (profile_label_no): New static var.
8220 (expand_function_start): Increment it, and copy to
8221 current_function_profile_label_no.
8222 * output.h (profile_label_no): Delete.
8223 * final.c (profile_label_no): Delete.
8224 (profile_function): Use current_function_profile_label_no.
8225 (final_end_function): Don't increment profile_label_no here.
8226 * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
8227 profile_label_no with current_function_profile_label_no.
8228 * config/pa/pa.c (current_function_number): Delete.
8229 (pa_output_function_prologue): Don't output profile label here.
8230 (hppa_profile_hook): Use label_no param rather than
8231 current_function_number.
8232 (FUNC_BEGIN_PROLOG_LABEL): Move to ..
8233 * config/pa/pa.h: .. here.
8234 (FUNCTION_PROFILER): Output profile label here.
8236 2002-04-22 Eric Christopher <echristo@redhat.com>
8238 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
8239 patch of 2002-04-09 due to binutils issues.
8240 (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
8242 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
8244 * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
8245 constraint to 'o' for m=r and r=m alternatives.
8246 ("*movv8hi_internal1"): Same.
8247 ("*movv16qi_internal1"): Same.
8248 ("*movv4sf_internal1"): Same.
8250 2002-04-22 Janis Johnson <janis187@us.ibm.com>
8252 * rtl.h (RTX_FLAG): New macro.
8253 * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
8254 * final.c (alter_subreg): Use macro to access rtx flag.
8255 * integrate.c (copy_rtx_and_substitute): Use new access macro.
8256 * print-rtl.c (print_rtx): Use new access macro.
8258 * cse.c (insert): Check rtx code before accessing flag.
8260 * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
8261 ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
8262 (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
8263 convert_const_symbol_ref, make_canonical, make_alternative_compare,
8264 evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
8265 simplify_test_exp, optimize_attrs, simplify_by_exploding,
8266 find_and_mark_used_attributes, unmark_used_attributes,
8267 add_values_to_cover, simplify_with_current_value,
8268 simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
8269 copy_rtx_unchanging, main): Use new access macros.
8271 2002-04-22 Tom Rix <trix@redhat.com>
8273 * expmed.c (init_expmed): Generate shifted constant once.
8275 2002-04-22 Zack Weinberg <zack@codesourcery.com>
8277 * c-lex.c (lex_charconst): Call convert to get constant in
8278 proper type; don't just smash the type field.
8281 * config.gcc: Add list of obsolete configurations. Disallow
8282 building these without --enable-obsolete.
8283 * doc/install.texi: Document --enable-obsolete and obsoletion
8284 policy. Mention obsoletion of individual targets in
8287 2002-04-22 Richard Henderson <rth@redhat.com>
8289 * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
8291 2002-04-22 Mark Mitchell <mark@codesourcery.com>
8294 * function.c (fixup_memory_subreg): Add promoted_mode parameter.
8295 (walk_fixup_memory_subreg): Likewise.
8296 (fixup_var_refs_insn): Adjust accordingly.
8297 (fixup_var_refs_1): Likewise.
8299 2002-04-22 Ulrich Weigand <uweigand@de.ibm.com>
8301 * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
8302 LIBPATH_ARCH64_SPEC): Define.
8303 (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
8304 (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
8305 (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
8306 (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
8308 2002-04-22 Joel Sherrill <joel@OARcorp.com>
8310 * gthr-rtems.h: Correct prototypes to remove warnings.
8312 2002-04-22 Richard Henderson <rth@redhat.com>
8315 * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
8317 * gcse.c (free_insn_expr_list_list): New.
8318 (clear_modify_mem_tables): Use it. Fix bit set usage.
8319 (canon_list_insert): Use EXPR_LISTs for expressions.
8320 (record_last_mem_set_info): Factor BLOCK_NUM (insn).
8322 2002-04-22 Neil Booth <neil@daikokuya.demon.co.uk>
8324 * cppfiles.c (_cpp_pop_file_buffer): Return void. Move
8325 file change and include code to _cpp_pop_buffer.
8326 * cpphash.h (struct pending_option): Predeclare.
8327 (struct cpp_reader): New member next_include_file.
8328 (_cpp_pop_file_buffer): Update.
8329 (_cpp_push_next_buffer): Update, rename.
8330 * cppinit.c (cpp_destroy): Free include chain and pending here.
8331 (cpp_finish_options): Simplify.
8332 (_cpp_push_next_buffer): Rename and clean up.
8333 * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
8335 * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
8337 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
8339 * config/rs6000/altivec.h (vec_xor): Add variant for both args
8340 being vector signed int.
8342 (vec_xor): Add variant for both args being vector signed char.
8343 Remove redundant variant.
8346 2002-04-21 David S. Miller <davem@redhat.com>
8348 * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
8349 compare mode in output RTL.
8351 2002-04-22 David Edelsohn <edelsohn@gnu.org>
8353 * config/rs6000/rs6000.c (rs6000_override_options): Correct
8354 style and formatting of previous patch.
8356 2002-04-22 Alan Modra <amodra@bigpond.net.au>
8358 * config/rs6000/rs6000.c (rs6000_override_options): Always clear
8359 flag_pic for ABI_AIX.
8361 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
8363 * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
8364 * cppfiles.c (read_include_file): Similarly.
8365 * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
8366 uxstrdup ustrchr, ufputs): Similarly.
8367 * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
8368 * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
8369 cpp_ideq, parse_identifier, parse_number): Similarly.
8370 * cpplib.c (struct directive, dequote_string, D, run_directive,
8371 cpp_push_buffer): Similarly.
8372 * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
8373 _cpp_create_definition, check_trad_stringification,
8374 cpp_macro_definition): Similarly.
8376 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
8378 * cppmacro.c (funlike_invocation_p): Don't step back
8381 2002-04-21 David Edelsohn <edelsohn@gnu.org>
8383 * config/rs6000/rs6000.c (output_profile_hook): Do not increment
8386 2002-04-20 Joseph S. Myers <jsm28@cam.ac.uk>
8388 * doc/invoke.texi: Remove Chill references.
8389 * doc/gcc.texi: Update last modified date.
8391 2002-04-20 Kazu Hirata <kazu@hxi.com>
8393 * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
8394 push and pop. Replace add.l with add.w.
8396 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
8398 * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
8399 multiply instructions for H8/300H case.
8401 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
8403 * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
8404 Bum three instructions from each routine.
8406 2002-04-20 Neil Booth <neil@daikokuya.demon.co.uk>
8408 * Makefile.in: Update.
8409 * decl.c (push_c_function_context, pop_c_function_context,
8410 mark_c_function_context): Rename for consistency.
8411 * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
8412 * c-tree.h (push_c_function_context, pop_c_function_context,
8413 mark_c_function_context): Rename for consistency.
8414 * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
8415 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
8416 * function.c (init_lang_status, save_lang_status,
8417 restore_lang_status, mark_lang_status, free_lang_status):
8418 Move to langhooks.h.
8419 (push_function_context_to, pop_function_context_from,
8420 free_after_parsing, prepare_function_start, ggc_mark_struct_function):
8422 * function.h (init_lang_status, save_lang_status,
8423 restore_lang_status, mark_lang_status, free_lang_status):
8424 Move to langhooks.h.
8425 * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
8426 LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
8427 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
8428 LANG_HOOKS_FUNCTION_INITIALIZER): New.
8429 (LANG_HOOKS_INITIALIZER): Update.
8430 (lhd_do_nothing_f): New.
8431 * langhooks.h (struct lang_hooks_for_functions): New.
8432 (struct lang_hooks): New hooks.
8433 * langhooks.c (lhd_do_nothing_f): New.
8435 * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
8436 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
8438 2002-04-19 David S. Miller <davem@redhat.com>
8440 * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
8441 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
8443 2002-04-19 Jakub Jelinek <jakub@redhat.com>
8445 PR optimization/3756
8446 * config/i386/i386.c (ix86_expand_int_movcc): Optimize
8447 x = ((int) y < 0) ? cst1 : cst2.
8449 2002-04-19 Jakub Jelinek <jakub@redhat.com>
8452 * function.c: Reapply patch for c/6358.
8453 (expand_function_end): Copy decl_rtl's mode, not
8454 current_function_return_rtx mode.
8456 2002-04-19 Joel Sherrill <joel@OARcorp.com>
8458 * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
8461 2002-04-19 Tom Tromey <tromey@redhat.com>
8463 * doc/install.texi (Specific): Update status of Solaris 2.8.
8466 2002-04-19 Andreas Schwab <schwab@suse.de>
8468 * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
8469 (PUT_REAL): Restore old definition.
8471 2002-04-19 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
8472 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
8474 * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
8475 binutils 2.11.2 and higher generate smaller binaries than Sun's
8478 2002-04-19 Mark Mitchell <mark@codesourcery.com>
8481 * toplev.c (rest_of_compilation): Do not defer functions for which
8482 TREE_SYMBOL_REFERENCED has already been set.
8484 Fri Apr 19 15:53:03 CEST 2002 Jan Hubicka <jh@suse.cz>
8486 * i386.md (movsi_1, movhi_1): Force reload to use more flexible
8489 2002-04-19 Neil Booth <neil@daikokuya.demon.co.uk>
8491 * builtins.c: Include langhooks.h.
8492 (lang_type_promotes_to): Remove.
8493 (expand_builtin_va_arg): Use new hook.
8494 * c-common.c (c_common_nodes_and_builtins): Don't set hook.
8495 (simple_type_promotes_to): Move to c-typeck.c.
8496 * c-common.h (simple_type_promotes_to): Remove.
8497 * c-decl.c (duplicate_decls, grokdeclarator): Update.
8498 * c-format.c: Include langhooks.h.
8499 (check_format_types): Update.
8500 * c-tree.h (c_type_promotes_to): New.
8501 * c-typeck.c (c_type_promotes_to): Move from c-common.c.
8502 (type_lists_compatible_p): Update.
8503 * langhooks-def.h (lhd_type_promotes_to): New.
8504 (LANG_HOOKS_TYPE_PROMOTES_TO): New.
8505 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
8506 * langhooks.c (lhd_type_promotes_to): New.
8507 * langhooks.h (struct lang_hooks_for_types): New hook.
8508 * tree.h (lang_type_promotes_to): Remove.
8510 * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
8512 2002-04-18 Richard Henderson <rth@redhat.com>
8514 * function.c: Revert patch for c/6358.
8516 2002-04-18 Richard Henderson <rth@redhat.com>
8518 * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
8519 blocks. Handle multiple references to the TRAP block. Handle
8520 non-adjacent THEN and OTHER blocks.
8522 2002-04-18 Richard Henderson <rth@redhat.com>
8524 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
8525 crash with no type for by-mode libcalls.
8527 * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
8529 2002-04-18 Bob Wilson <bob.wilson@acm.org>
8531 * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
8532 __xtensa_nonlocal_goto): Use a syscall instructions to flush
8533 the register windows.
8535 2002-04-18 Zack Weinberg <zack@codesourcery.com>
8537 * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
8538 appropriate. Document need for extended precision even when
8539 MAX_LONG_DOUBLE_TYPE_SIZE is smaller. Define REAL_WIDTH here,
8540 based on REAL_VALUE_TYPE_SIZE. Use REAL_WIDTH to size
8541 REAL_VALUE_TYPE. Define CONST_DOUBLE_FORMAT here. Use #error
8542 instead of relying on later syntax error when REAL_WIDTH > 5.
8543 * real.c: Define NE based only on whether or not we have a
8544 full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
8545 Require sizeof(REAL_VALUE_TYPE) == 2*NE. Unconditionally
8546 define GET_REAL and PUT_REAL as simple memcpy operations; no
8547 need to byteswap or round.
8548 Use #error instead of #ifdef-ing out the entire file, for
8549 prompt error detection.
8551 * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
8553 2002-04-18 David S. Miller <davem@redhat.com>
8555 * config/sparc/sparc.h (BRANCH_COST): Define.
8557 * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
8560 2002-04-18 Hans-Peter Nilsson <hp@bitrange.com>
8562 * flow.c (update_life_info): Ignore return value of cleanup_cfg.
8563 Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
8564 propagate_block calls after relaxation loop using new variable
8565 stabilized_prop_flags.
8567 2002-04-18 Richard Henderson <rth@redhat.com>
8569 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
8570 (ia64_va_arg): Expect variable sized types by reference.
8571 * config/ia64/ia64-protos.h: Update.
8572 * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
8573 ia64_function_arg_pass_by_reference.
8575 2002-04-18 Richard Henderson <rth@redhat.com>
8577 * ifcvt.c: Include except.h.
8578 (block_has_only_trap): Break out from find_cond_trap.
8579 (find_cond_trap): Use it. Always delete the trap block.
8580 (merge_if_block): Allow then block null. Be less simplistic about
8581 what insns can end a block.
8582 * Makefile.in (ifcvt.o): Depend on except.h.
8584 * config/ia64/ia64.md (trap, conditional_trap): New.
8586 2002-04-18 Jakub Jelinek <jakub@redhat.com>
8589 * function.c (assign_parms): Assign hard current_function_return_rtx
8591 (expand_function_end): ...not here.
8593 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
8595 * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
8596 * c-tree.h (c_incomplete_type_error): New.
8597 * c-typeck.c (require_complete_type, build_component_ref): Update.
8598 (incomplete_type_error): Rename.
8599 * langhooks-def.h (lhd_incomplete_type_error): New.
8600 (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
8601 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
8602 * langhooks.c (lhd_incomplete_type_error): New.
8603 * langhooks.h (struct lang_hooks_for_types): New hook.
8604 * tree.c (size_in_bytes): Use new hook.
8605 * tree.h (incomplete_type_error): Remove.
8607 * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
8609 2002-04-18 Zack Weinberg <zack@codesourcery.com>
8611 * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
8612 TARGET_FLOAT_FORMAT blocks.
8614 2002-04-18 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
8616 * doc/install.texi (Downloading the source): Do not mention Chill
8617 any longer, but mention Ada.
8618 (Configuration): Do not mention Chill any longer.
8620 2002-04-18 Hans-Peter Nilsson <hp@axis.com>
8622 * config/cris/cris.h (TARGET_VERSION): Remove local version number.
8624 Thu Apr 18 17:14:08 CEST 2002 Jan Hubicka <jh@suse.cz>
8626 * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
8629 2002-04-18 Jakub Jelinek <jakub@redhat.com>
8631 * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
8632 instead of unsigned_type.
8634 Thu Apr 18 15:49:12 CEST 2002 Jan Hubicka <jh@suse.cz>
8636 * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
8637 * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
8640 2002-04-18 Bernd Schmidt <bernds@redhat.com>
8642 * attribs.c (vector_type_node_list): New static variable.
8643 (handle_vector_size_attribute): Use it to avoid generating a
8644 new type node each time we are called.
8646 * combine.c (subst): Avoid trying to make a vector mode subreg of
8647 an integer constant.
8648 (gen_lowpart_for_combine): Likewise.
8650 2002-04-18 Roger Sayle <roger@eyesopen.com>
8651 Jakub Jelinek <jakub@redhat.com>
8653 * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
8654 for integer constant c (if x has unsigned type or sign bit is not
8655 set in c). This folds the zero/sign extension into the bit-wise and
8658 2002-04-18 Jakub Jelinek <jakub@redhat.com>
8661 * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
8664 2002-04-17 NIIBE Yutaka <gniibe@m17n.org>
8666 * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
8668 2002-04-17 Nick Clifton <nickc@cambridge.redhat.com>
8670 * gcc.c (read_specs): Detect and fail if an attempt is made to
8671 rename a spec string to an already existing string.
8673 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
8675 * config/s390/s390.c (legitimize_pic_address): Do not generate
8676 illegal address constant without CONST.
8678 2002-04-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8680 * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
8681 * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
8683 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
8685 PR optimization/6305
8686 * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
8687 to make sure previous reloads are taken into account. Generate
8688 better code if one operand is an in-range immediate constant.
8690 2002-04-16 Andrew Haley <aph@cambridge.redhat.com>
8692 * doc/install.texi (Building): libgcj requires GNU make.
8694 2002-04-17 Jakub Jelinek <jakub@redhat.com>
8697 * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
8698 even if hard quad and register is not floating.
8699 (movtf reg<-mem split): Disallow splitting if hard quad and
8700 register is floating.
8701 (movtf mem<-reg split): Likewise.
8702 * config/sparc/sparc.c (fp_register_operand): New predicate.
8703 * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
8705 2002-04-17 Zack Weinberg <zack@codesourcery.com>
8707 * Makefile.in (PROTO_OBJS): Add cppdefault.o.
8708 (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
8709 (unprotoize.o): Ditto. Build from protoize.c. Define
8710 UNPROTOIZE on command line.
8711 * protoize.c: Include cppdefault.h. Delete include_defaults.
8712 (in_system_include_dir): Use cpp_include_defaults (defined in
8714 * unprotoize.c: Delete file.
8716 2002-04-17 Aldy Hernandez <aldyh@redhat.com>
8718 * config/rs6000/altivec.h (vec_ld): Add array variants.
8722 2002-04-17 Alan Matsuoka <alanm@redhat.com>
8723 Aldy Hernandez <aldyh@redhat.com>
8725 * config/rs6000/altivec.h: Define __ALTIVEC__.
8732 Add parentheses to all macro arguments.
8734 2002-04-16 Richard Henderson <rth@redhat.com>
8737 * except.c (remove_eh_handler): Insert inner regions at beginning
8738 of sibling chain. Refactor expressions.
8740 2002-04-16 Richard Henderson <rth@redhat.com>
8742 * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
8743 * config/sparc/sol2-gas-bi.h: New file.
8744 * config.gcc (sparc*-solaris): Add it as needed.
8745 * configure.in (AS_SPARC64_FLAG): Remove check.
8746 * config.in, configure: Regenerate.
8748 * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
8750 2002-04-16 Richard Henderson <rth@redhat.com>
8752 * config/mips/mips.c (override_options): Don't override N32 for
8756 * config/mips/mips.md (can_delay): Split out of existing define_delays.
8757 (HILO_delay): Set can_delay false.
8759 2002-04-16 Dale Johannesen <dalej@apple.com>
8761 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
8762 instruction addresses.
8763 (rs6000_output_function_epilogue): Likewise.
8765 2002-04-16 Paolo Carlini <pcarlini@unitus.it>
8767 * c-parse.in (poplevel, compstmt_start,
8768 compstmt_primary_start): Add ending ';', in accordance
8771 2002-04-16 Richard Henderson <rth@redhat.com>
8773 * config.gcc (sparcv9-solaris): Configure for 64-bit default.
8774 Adjust tm_file order to get TARGET_DEFAULT set properly.
8775 (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
8776 * doc/install.texi (sparc-solaris): Update.
8778 2002-04-16 Dale Johannesen <dalej@apple.com>
8780 * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
8781 comparison operands do not match each other or if modes of
8782 conditions do not match result.
8784 2002-04-16 Hartmut Penner <hpenner@de.ibm.com>
8787 * config/s390/s390.md (mulsidi3): Set both subregs of the
8790 2002-04-16 Aldy Hernandez <aldyh@redhat.com>
8792 * config/rs6000/altivec.h (vec_addc): Type check.
8794 2002-04-16 Jakub Jelinek <jakub@redhat.com>
8797 * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
8799 * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
8801 2002-04-15 Richard Henderson <rth@redhat.com>
8803 * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
8804 call_really_used_regs too.
8806 2002-04-15 Richard Henderson <rth@redhat.com>
8808 * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
8810 2002-04-15 David S. Miller <davem@redhat.com>
8812 * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
8815 2002-04-16 Jakub Jelinek <jakub@redhat.com>
8818 * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
8819 CONST_VECTOR is { 0, ... 0 }.
8821 2002-04-15 Loren J. Rittle <ljrittle@acm.org>
8823 * doc/install.texi (Installing GCC: Configuration): Clarify
8824 the only supported ways to configure gcc.
8826 2002-04-15 Roland McGrath <roland@frob.com>
8828 * config.gcc (alpha*-*-gnu*): New target configuration.
8829 * config/alpha/gnu.h: New file for it.
8830 * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
8832 2002-04-16 Mark Mitchell <mark@codesourcery.com>
8834 * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
8835 * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
8836 * tree.h (expand_start_stmt_expr): Update prototype.
8837 * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
8838 * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
8839 on the STMT_EXPR created for the inline function.
8841 2002-04-15 Richard Henderson <rth@redhat.com>
8843 * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
8844 config/i386/linux-aout.h, config/i386/linux-oldld.h,
8845 config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
8846 config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
8847 config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
8848 config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
8849 config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
8850 Define __gnu_linux__, not gnu_linux.
8851 * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
8853 2002-04-15 Mark Mitchell <mark@codesourcery.com>
8855 Remove Chill front end.
8856 * gcc.c (default_compilers): Remove Chill entries.
8857 * ch: Remove directory.
8858 * doc/frontends.texi: Remove information about Chill.
8859 * doc/sourcebuild.texi: Likewise.
8860 * doc/standards.texi: Likewise.
8862 2002-04-15 Douglas B Rupp <rupp@gnat.com>
8864 * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
8865 (LONGLONG_STANDALONE): Define.
8867 2002-04-15 David S. Miller <davem@redhat.com>
8869 * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
8870 Call emit_library_call with LCT_NORMAL.
8871 (sparc_initialize_trampoline): Use LCT_foo instead of
8872 magic constant in emit_library_call invocations.
8873 (sparc64_initialize_trampoline): Likewise.
8874 (sparc_profile_hook): Likewise.
8875 * config/sparc/sparc.md: Likewise.
8877 * config/sparc/sparc.c (sparc_extra_constraint_check):
8878 Fix type of argument 'c'.
8879 * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
8882 2002-04-15 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
8884 * diagnostic.h (output_buffer_state): Redefine.
8885 (output_format_decoder): New macro.
8886 (output_prefixing_rule): Likewise.
8887 (output_line_cutoff): Likewise.
8888 (diagnostic_format_decoder): Adjust.
8889 (diagnostic_prefixing_rule): Likewise.
8890 (diagnostic_line_cutoff): Likewise.
8891 (diagnostic_state): Likewise.
8892 (diagnostic_kind_count): Likewise.
8893 (diagnostic_buffer): Now a macro.
8895 * diagnostic.c (diagnostic_buffer): Remove definition.
8896 (output_is_line_wrapping): Adjust.
8897 (set_real_maximum_length): Likewise.
8898 (output_set_maximum_length): Likewise.
8899 (init_output_buffer): Likewise.
8900 (lhd_print_error_function): Likewise.
8901 (output_do_verbatim): Likewise.
8903 2002-04-14 Neil Booth <neil@daikokuya.demon.co.uk>
8905 * cpperror.c (print_location): Don't print include chain
8907 (cpp_begin_message): Update to use DL_ macros.
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 * cppexp.c (CPP_ICE): Remove.
8915 (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
8916 lex, integer_overflow, _cpp_parse_expr): Update.
8917 * cppfiles.c (read_include_file, find_include_file,
8918 handle_missing_header, _cpp_read_file, remap_filename): Update.
8919 * cpphash.h (enum error_type): Remove.
8920 (_cpp_begin_message): Update.
8921 * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
8922 cpp_handle_option, cpp_post_options): Update.
8923 * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
8924 skip_whitespace, parse_identifier, parse_slow, parse_string,
8925 _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
8926 cpp_interpret_charconst): Update.
8927 * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
8928 lex_macro_node, do_undef, glue_header_name, parse_include,
8929 do_include_common, read_flag, do_line, do_linemarker, do_ident,
8930 cpp_register_pragma, do_pragma_once, do_pragma_system_header,
8931 do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
8932 do_elif, do_endif, parse_answer, parse_assertion, do_assert,
8933 _cpp_pop_buffer, do_diagnostic): Update.
8934 * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
8935 DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
8936 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
8937 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
8938 cpp_notice, cpp_notice_from_errno): Remove.
8939 (cpp_error, cpp_error_with_line): Update to take a diagnostic
8942 * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
8943 collect_args, enter_macro_context, save_parameter, parse_params,
8944 _cpp_create_definition, check_trad_stringification,
8945 cpp_macro_definition): Update.
8946 * cppmain.c (cpp_preprocess_file): Update.
8947 * fix-header.c (read_scan_file): Update.
8949 2002-04-14 Andreas Schwab <schwab@suse.de>
8951 * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
8953 2002-04-14 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
8955 * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
8957 2002-04-13 Mark Mitchell <mark@codesourcery.com>
8959 * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
8962 2002-04-13 Hans-Peter Nilsson <hp@axis.com>
8964 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
8966 2002-04-13 Joel Sherrill <joel@OARcorp.com>
8968 * config/sparc/t-elf: Enable v8 multilibs. Impacts
8969 sparc-elf and sparc-rtems targets.
8971 2002-04-13 Mark Mitchell <mark@codesourcery.com>
8973 * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
8974 defined, and __gnu_hurd__ wherever __GNU__ is defined.
8975 * arm/linux-elf.h: Likewise.
8976 * cris/aout.h: Likewise.
8977 * cris/linux.h: Likewise.
8978 * i370/linux.h: Likewise.
8979 * i386/gnu.h: Likewise.
8980 * i386/linux-aout.h: Likewise.
8981 * i386/linux-oldld.h: Likewise.
8982 * i386/linux.h: Likewise.
8983 * i386/linux64.h: Likewise.
8984 * ia64/linux.h: Likewise.
8985 * m68k/linux-aout.h: Likewise.
8986 * m68k/linux.h: Likewise.
8987 * mips/linux.h: Likewise.
8988 * pa/pa-linux.h: Likewise.
8989 * pj/linux.h: Likewise.
8990 * rs6000/sysv4.h: Likewise.
8991 * s390/linux.h: Likewise.
8992 * sh/linux.h: Likewise.
8993 * sparc/linux-aout.h: Likewise.
8994 * sparc/linux.h: Likewise.
8995 * sparc/linux64.h: Likewise.
8996 * xtensa/linux.h: Likewise.
8998 2002-04-13 Richard Sandiford <rsandifo@redhat.com>
9000 * stmt.c (check_unique_operand_names): Expect operand names to
9001 be strings rather than identifiers. Use simple_cst_equal to
9003 (resolve_operand_name_1): Make same identifier to string change here.
9004 * c-parse.in (asm_operand): Convert a named operand into a string.
9005 * cp/parse.y (asm_operand): Likewise.
9007 2002-04-13 Andreas Schwab <schwab@suse.de>
9009 * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
9011 2002-04-12 Mark Mitchell <mark@codesourcery.com>
9013 Revert these changes:
9015 2002-04-06 Mark Mitchell <mark@codesourcery.com>
9018 * stor-layout.c (layout_decl): Reset the RTL for the decl.
9020 2002-04-12 Richard Henderson <rth@redhat.com>
9022 * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
9023 (sparc*-*-solaris): Clean up header files.
9024 * configure.in (AS_SPARC64_FLAG): Error out if can't find it
9025 and plan on generating 64-bit code.
9026 * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
9027 * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
9028 * config/sparc/sol2-sld-64.h: Rename ...
9029 * config/sparc/sol2-bi.h: ... here. Remove the bits that checked
9030 for AS_SPARC64_FLAG not defined.
9031 * config/sparc/sol2-gld-bi.h: New.
9032 * config/sparc/sol2-sld.h: Remove.
9033 * config/sparc/sol26-sld.h: New.
9034 * config/sparc/sol2.h: Tidy comments.
9035 * doc/install.texi: Document sparc-solaris configury changes.
9037 2002-04-12 Richard Henderson <rth@redhat.com>
9039 * recog.c (offsettable_address_p): Match the logic in adjust_address.
9041 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
9042 in 64-bit mode only. Use only for 32-bit or MEDLOW.
9044 2002-04-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9046 * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
9048 Fri Apr 12 15:42:59 2002 Jeffrey A Law (law@redhat.com)
9050 * pa.c (pa_can_combine_p): Call extract_insn before calling
9053 2002-04-12 Douglas B Rupp <rupp@gnat.com>
9055 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
9056 (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
9057 (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
9058 (CPP_PREDEFINES): Handle __declspec.
9059 * config/i386/t-interix (USER_H): Remove.
9061 2002-04-12 DJ Delorie <dj@redhat.com>
9063 * integrate.c (compare_blocks): Make comparisons safe for when
9064 sizeof(int) < sizeof(char *).
9065 (find_block): Likewise.
9067 2002-04-12 Jan Hubicka <jh@suse.cz>
9068 David Edelsohn <edelsohn@gnu.org>
9070 * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
9072 (symbol_ref_operand): New.
9073 * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
9074 * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
9076 2002-04-12 Andreas Schwab <schwab@suse.de>
9078 * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
9079 * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
9080 overrides the definition in config/svr4.h.
9082 2002-04-12 Eric Norum <eric.norum@usask.ca>
9084 * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
9085 config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
9086 config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
9087 config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
9088 config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
9089 config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
9090 config/v850/rtems.h (*-rtems*): Cleanup pass to move common
9091 definitions to config/rtems.h and make the targets more similar.
9093 Fri Apr 12 08:06:54 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9095 * expr.c (expand_assigment): Remove duplicate conversions #ifdef
9096 POINTERS_EXTEND_UNSIGNED.
9097 (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
9098 (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
9100 * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
9103 Fri Apr 12 12:11:26 2002 J"orn Rennecke <joern.rennecke@superh.com>
9105 * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
9106 depends on TARGET_SHMEDIA, not TARGET_SH5.
9108 2002-04-12 Hans-Peter Nilsson <hp@bitrange.com>
9110 * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
9111 For paradoxical (subreg VAR), replace VAR, don't try the subreg.
9113 Fri Apr 12 10:51:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
9115 * sh.c (broken_move): Constant 0. / 1. load is OK if there is
9118 2002-04-12 Andreas Schwab <schwab@suse.de>
9120 * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
9122 2002-04-12 Richard Henderson <rth@redhat.com>
9125 * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
9127 * flow.c (mark_used_reg): Manage reg_cond_dead properly for
9128 modes spanning multiple hard regs.
9130 * recog.c (peephole2_optimize): Rebuild jump labels as needed.
9132 2002-04-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
9134 * pa.c (pa_output_function_prologue): Don't accumulate the total
9135 number of code bytes when using TARGET_64BIT, or gas, SOM and not
9136 the portable runtime.
9137 (output_deferred_plabels): Handle 64bit plabels.
9138 (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
9139 generating pic code using the GAS assembler for object formats that
9140 are not SOM (ie., ELF32 and ELF64).
9141 (output_millicode_call): Check attribute type if attribute length is 28.
9142 Likewise use $PIC_pcrel$0. Only call get_attr_length and
9143 dbr_sequence_length once.
9144 (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
9145 dbr_sequence_length once.
9146 * pa.h (TARGET_SOM): Define if not defined.
9147 * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
9148 with GAS and not SOM.
9149 (jump, call_internal_reg, call_value_internal_reg): Likewise.
9150 * som.h (OBJ_SOM): Rename to TARGET_SOM. Undefine before defining.
9152 2002-04-11 David O'Brien <obrien@FreeBSD.org>
9154 * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
9155 (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
9156 (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
9157 DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
9158 elfos.h and dbxelf.h values are fine now.
9159 * config/i386/freebsd.h, config/alpha/freebsd.h
9160 (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
9162 2002-04-11 David O'Brien <obrien@FreeBSD.org>
9164 * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
9165 or set Acpu or Amachine. Reformat.
9166 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
9168 (LINK_SPEC): Do not need to undef.
9169 * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
9170 * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
9171 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
9173 * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
9174 (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
9175 (LINK_SPEC): Do not need to undef.
9176 (DONT_USE_BUILTIN_SETJMP): Do not define.
9177 * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
9178 (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine. Remove -Dia64.
9179 (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
9180 Remove trailing spaces.
9181 * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
9182 __ELF__, or set Acpu or Amachine. Reformat.
9183 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
9186 2002-04-11 David O'Brien <obrien@FreeBSD.org>
9188 * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
9189 all other *-*-freebsd* targets.
9191 2002-04-11 Richard Henderson <rth@redhat.com>
9193 * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
9195 2002-04-11 David O'Brien <obrien@FreeBSD.org>
9197 * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
9198 Include {cpu}/{cpu}.h thru tm_file.
9199 (alpha*-*-linux*ecoff): Remove target.
9200 * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
9201 (LINK_SPEC): Remove, is not OS independent.
9202 * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
9203 (LINK_SPEC): Do not need to #undef any longer.
9204 * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
9206 * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
9208 (LINK_SPEC): Moved here from alpha/elf.h.
9209 * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
9211 * config/alpha/linux-ecoff.h: Remove.
9212 * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
9213 (CPP_SPEC): Define _POSIX_SOURCE as needed.
9214 (CPP_SUBTARGET_SPEC): Do not define.
9215 (LINK_SPEC): Do not need to #undef any longer.
9216 * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
9217 * config/alpha/vms.h: Likewise.
9219 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
9221 * doc/extend.texi: Remove old claim that typedefs cannot have
9222 an alignment attribute.
9224 2002-04-11 Jakub Jelinek <jakub@redhat.com>
9226 PR optimization/6177
9227 * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
9228 bitpos is 0 and bitsize CONCAT size.
9230 2002-04-11 Jakub Jelinek <jakub@redhat.com>
9233 * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
9235 2002-04-10 David O'Brien <obrien@FreeBSD.org>
9237 * config/alpha/freebsd.h: Minor reformatting.
9238 (CPP_SPEC): Define ELF and add cpp_subtarget.
9239 (ASM_SPEC): No longer needed.
9241 2002-04-11 Richard Henderson <rth@redhat.com>
9243 * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
9244 (movdi_insn_sp32_v9): Likewise. Only allow stx with aligned memory.
9245 (dimode mem/zero splitter): New.
9247 2002-04-11 Hans-Peter Nilsson <hp@axis.com>
9249 * config/cris/cris.c (cris_override_options): Tweak error message
9250 for PIC not implemented.
9252 * config/cris/cris.h: Tweak comments related to parameter-passing.
9254 * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
9256 2002-04-10 Richard Henderson <rth@redhat.com>
9258 * except.c (add_ehl_entry): Allow duplicates after landing pad
9261 2002-04-10 David Edelsohn <edelsohn@gnu.org>
9263 * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
9265 2002-04-10 Toon Moene <toon@moene.indiv.nluug.nl>
9267 * c-decl.c (c_init_decl_processing): Move generation of
9268 decls for g77_integer_type_node and friends from here ...
9269 * c-common.c (c_common_nodes_and_builtins): ... to here.
9271 2002-04-10 Ulrich Weigand <uweigand@de.ibm.com>
9273 * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
9274 is only used as frame pointer when frame_pointer_needed is true.
9276 2002-04-10 Richard Earnshaw <rearnsha@arm.com>
9279 * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
9280 for the fact that the pool entry uses two words.
9281 (movdf_hard_insn): Similarly. Also, ADR instruction can span
9283 (movdf_soft_insn): Similarly.
9284 (movxf_hard_insn): Adjust neg_pool_range attribute to allow
9285 for the fact that the pool entry uses three words.
9287 2002-04-10 Richard Sandiford <rsandifo@redhat.com>
9289 * config/mips/mips.c (mips_va_arg): When using the struct version
9290 of the EABI va_list, allow arguments in the register save area to
9291 take up less room than a stack argument.
9293 2002-04-10 Richard Henderson <rth@redhat.com>
9295 * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
9296 if EXPAND_INITIALIZER.
9298 2002-04-09 Richard Henderson <rth@redhat.com>
9300 * config/alpha/alpha.md (movdi_er_maybe_g): New.
9301 * config/alpha/alpha.c (alpha_expand_mov): Use it.
9303 2002-04-10 Alan Modra <amodra@bigpond.net.au>
9305 PR optimization/6233
9306 * rtlanal.c (pure_call_p): New function.
9307 * rtl.h (pure_call_p): Declare.
9308 * loop.c (prescan_loop): Use it to set has_nonconst_call.
9309 * gcse.c (store_killed_in_insn): Use pure_call_p here too.
9311 2002-04-09 Eric Christopher <echristo@redhat.com>
9313 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
9314 information to .comm directive.
9316 2002-04-09 Richard Henderson <rth@redhat.com>
9319 * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
9321 2002-04-09 Richard Henderson <rth@redhat.com>
9323 * basic-block.h (flow_delete_block_noexpunge): Declare.
9324 (expunge_block_nocompact): Declare.
9325 * cfg.c (expunge_block_nocompact): Split out from ...
9326 (expunge_block): ... here.
9327 * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
9328 (flow_delete_block_noexpunge): Split out from ...
9329 (flow_delete_block): ... here.
9330 * cfgcleanup.c (delete_unreachable_blocks): Compact while
9331 removing dead blocks.
9332 * except.c (exception_handler_labels): Remove.
9333 (exception_handler_label_map): New.
9334 (struct eh_region): Add aka member.
9335 (mark_ehl_map_entry, mark_ehl_map, free_region): New.
9336 (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
9337 (for_each_eh_label, for_each_eh_label_1): New.
9338 (init_eh): Register exception_handler_label_map.
9339 (free_eh_status): Use free_region.
9340 (find_exception_handler_labels): Use the map, not the list.
9341 (remove_exception_handler_label): Likewise.
9342 (maybe_remove_eh_handler): Likewise.
9343 (remove_eh_handler): Use the region aka bitmap.
9344 * except.h (exception_handler_labels): Remove.
9345 (for_each_eh_label): Declare.
9346 * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
9347 * loop.c (invalidate_loops_containing_label): New.
9348 (find_and_verify_loops): Use it. Use for_each_eh_label.
9349 * sched-rgn.c (is_cfg_nonregular): Use
9350 current_function_has_exception_handlers.
9352 2002-04-09 Richard Henderson <rth@redhat.com>
9354 * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
9355 sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
9356 Do not return changed status.
9357 (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
9358 sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
9359 New functions that do return changed status.
9360 * sbitmap.h: Update decls.
9361 * gcse.c, lcm.c: Use _cg functions as needed.
9363 Tue Apr 9 19:15:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
9365 * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
9366 (sh64-*-elf*, sh-*-rtemself*): Likewise.
9367 * config/sh/embed_bb.c: New file.
9368 * config/sh/embed-elf.h: New file.
9369 * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
9370 if -m[12345]* option is given. Don't use subtarget_cpp_ptr_spec.
9371 (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
9373 (SUBTARGET_CPP_PTR_SPEC): Don't define.
9374 (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
9375 Add subtarget_asm_endian_spec.
9376 (ASM_SPEC): Use subtarget_asm_endian_spec.
9377 (SUBTARGET_ASM_ENDIAN_SPEC): Define.
9378 (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
9379 (WCHAR_UNSIGNED): Define.
9380 (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
9381 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
9382 (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
9384 * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
9385 (sh_adjust_cost): Likewise.
9386 sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
9388 (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
9389 (WCHAR_TYPE_SIZE): Likewise.
9390 (ASM_SPEC): Use subtarget_asm_endian_spec.
9391 (SH_ELF_WCHAR_TYPE): #undef/ #define.
9392 (MAX_WCHAR_TYPE_SIZE): Don't #undef.
9393 * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
9394 (MAX_WCHAR_TYPE_SIZE): Don't #define .
9395 (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
9396 (USER_LABEL_PREFIX): Don't #undef /#define .
9397 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
9398 * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
9399 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
9400 (ASM_SPEC): Likewise.
9401 (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
9402 (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
9403 * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
9404 (LIB2FUNCS_EXTRA): Define.
9405 * t-sh64 (LIB2FUNCS_EXTRA): Define.
9406 * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
9407 (LIB1ASMFUNCS_CACHE): Define.
9408 (LIB2FUNCS_EXTRA): Redefine empty.
9410 2002-04-08 Richard Henderson <rth@redhat.com>
9412 * reorg.c (get_branch_condition): Use reversed_comparison_code.
9414 2002-04-09 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9416 * config/m68hc11/larith.asm (__map_data_section): Fix condition
9417 and optimize for size.
9418 (__do_global_ctors): Fix pointer comparison.
9419 (__do_global_dtors): Likewise.
9421 2002-04-09 David S. Miller <davem@redhat.com>
9423 * config/sparc/sparc.c (sparc_extra_constraint_check): New
9424 function, implementing EXTRA_CONSTRAINTS. For memory constraints,
9425 allow reloading pseudos.
9426 * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
9427 * config/sparc/sparc-protos.h: Declare it.
9429 * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
9430 unsigned comparison warning.
9431 (output_restore_regs): Mark leaf_function as unused.
9433 Tue Apr 9 09:35:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9435 * expr.c (is_aligning_offset): New function.
9436 (expand_expr, case COMPONENT_EXPR): Call it.
9438 2002-04-08 David S. Miller <davem@redhat.com>
9441 * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
9443 Make init_priority work on Sparc when using GNU ld.
9444 * config/sparc/linux.h, config/sparc/linux64.h,
9445 config/sparc/netbsd-elf.h, config/sparc/freebsd.h
9446 (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
9447 * config/sparc/sol2-gld.h: New file to do the same.
9448 * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
9449 sparc/sol2-gld.h to tm_file.
9451 PR optimization/4328
9452 * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
9453 * doc/md.texi: Document it.
9454 * config/sparc/sparc.md (movdi_insn_sp64_novis,
9455 movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
9456 movdf_insn_v9only_vis, movdf_insn_sp64_novis,
9457 movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
9458 * config/sparc/sparc.c (mem_min_alignment): Fix comment.
9460 2002-04-08 Andreas Jaeger <aj@suse.de>
9462 * stmt.c (expand_asm_operands): Revert last patch from Richard
9465 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
9467 * doc/contrib.texi (Contributors): Add John David Anglin and Loren
9468 J. Rittle (the latter also to Testers). Update David O'Brien's entry.
9470 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
9472 * doc/contrib.texi (Contributors): Add David O'Brien.
9474 2002-04-08 Alan Modra <amodra@bigpond.net.au>
9476 * configure.in (auto-build.h): Use target_alias and build_alias
9477 when running configure.
9478 (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
9479 (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
9480 * configure: Regenerate.
9482 2002-04-07 David S. Miller <davem@redhat.com>
9484 * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
9486 2002-04-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
9489 * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
9490 generating 32-bit pic code.
9492 2002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
9494 * cppinit.c (cpp_create_reader): Initialize
9495 discard_comments_in_macro_exp.
9496 (COMMAND_LINE_OPTIONS): Add "-CC" option.
9497 (cpp_handle_option): Handle "-CC" option.
9498 * cpplex.c (save_comment): If saving a C++ comment in
9499 a directive, convert it to a C comment.
9500 (_cpp_lex_direct): Pass second comment start character to
9501 save_comment to indicate comment type.
9502 * cpplib.c (_cpp_handle_directive): If processing
9503 a "#define" directive and discard_comments_in_macro_exp
9504 is false, re-enable saving of comments.
9505 (lex_macro_node): If discard_comments_in_macro_exp is false,
9506 discard any comments before the macro identifier.
9507 * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
9509 * cppmacro.c (cpp_get_token): If expanding a macro while
9510 processing a directive, discard any comments we might encounter.
9511 (parse_params): If discard_comments_in_macro_exp is false,
9512 ignore comments in the macro parameter list.
9513 * gcc.c (cpp_unique_options): Add "-CC" option.
9514 (option_map): Map "--comments-in-macros" to "-CC".
9515 * doc/cppopts.texi: Document "-CC" option.
9516 * f/lang-specs.h: Add "-CC" option.
9517 * testsuite/gcc.dg/cpp/maccom1.c: New test.
9518 * testsuite/gcc.dg/cpp/maccom2.c: New test.
9519 * testsuite/gcc.dg/cpp/maccom3.c: New test.
9520 * testsuite/gcc.dg/cpp/maccom4.c: New test.
9521 * testsuite/gcc.dg/cpp/maccom5.c: New test.
9522 * testsuite/gcc.dg/cpp/maccom6.c: New test.
9524 2002-04-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
9527 * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
9529 2002-04-06 Mark Mitchell <mark@codesourcery.com>
9532 * stor-layout.c (layout_decl): Reset the RTL for the decl.
9535 * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
9536 RTX_UNCHANGING_P for the functions arguments when a tail call
9539 2002-04-06 Jason Merrill <jason@redhat.com>
9541 * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
9542 (parse_options_and_default_flags): Set them appropriately.
9543 * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
9545 2002-04-06 Hans-Peter Nilsson <hp@bitrange.com>
9547 * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
9550 * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
9553 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
9554 types come in by-reference. Fix typo in comment.
9556 2002-04-05 David S. Miller <davem@redhat.com>
9558 * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
9559 * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
9560 sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
9561 {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
9563 2002-04-05 David S. Miller <davem@redhat.com>
9565 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
9566 are not going to emit return instructions, emit at least a nop
9567 for the sake of sane backtraces.
9569 2002-04-05 Richard Henderson <rth@redhat.com>
9571 * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
9573 2002-04-05 Jakub Jeilnek <jakub@redhat.com>
9575 * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
9577 2002-04-05 Alexandre Oliva <aoliva@redhat.com>
9579 * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
9580 ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
9581 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
9583 2002-04-05 Andreas Schwab <schwab@suse.de>
9585 * c-convert.c: Include c-common.h.
9586 * Makefile.in (c-convert.o): Updated.
9588 2002-04-05 Jakub Jelinek <jakub@redhat.com>
9590 * mklibgcc.in: Use separate libgcc.map for each multilib.
9591 * Makefile.in (distclean): Don't remove libgcc.map here.
9593 2002-04-05 Jakub Jelinek <jakub@redhat.com>
9595 * Makefile.in (s-mlib): Handle --disable-multilib by separate
9596 genmultilib invocation.
9598 2002-04-04 Richard Sandiford <rsandifo@redhat.com>
9600 * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
9601 to avoid clash with Irix header file sys/ucontext.h. Rename gp_regs
9602 to num_gprs for symmetry.
9603 * config/mips/mips.c: Adjust accordingly.
9605 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
9607 * c-common.c (truthvalue_conversion): Rename, update.
9608 * c-common.h (c_common_truthvalue_conversion): New.
9609 * c-convert.c (convert): Update.
9610 * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
9611 * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
9612 * c-typeck.c (build_binary_op, build_unary_op,
9613 build_conditional_expr): Update.
9614 * fold-const.c (constant_boolean_node, fold): Use langhook.
9615 * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
9616 * langhooks.h (struct lang_hooks): New hook.
9617 * stmt.c (expand_decl_cleanup): Use langhook.
9618 * tree.h (truthvalue_conversion): Remove.
9620 * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
9622 2002-04-05 Alan Modra <amodra@bigpond.net.au>
9624 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
9625 Add rules to make null object file.
9627 2002-04-04 Jim Blandy <jimb@redhat.com>
9629 * cppmacro.c (cpp_macro_definition): Do not emit spaces after
9630 macro formal parameter names.
9632 2002-04-04 David S. Miller <davem@redhat.com>
9634 * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
9636 2002-04-04 Richard Henderson <rth@redhat.com>
9639 * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
9640 Support copies into and out of memory. Don't accept allows_reg
9641 and allows_mem as gospel.
9643 2002-04-04 Richard Henderson <rth@redhat.com>
9646 * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
9647 (write_dependence_p): Likewise.
9649 2002-04-04 Richard Henderson <rth@redhat.com>
9651 * predict.c (estimate_bb_frequencies): Do frequency calculation
9652 with a volatile temporary.
9654 2002-04-04 Ulrich Weigand <uweigand@de.ibm.com>
9656 * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
9658 2002-04-04 Jakub Jelinek <jakub@redhat.com>
9661 * final.c (final_start_function): Don't bump profile_label_no here...
9662 (final_end_function): ...but here.
9664 2002-04-04 Jakub Jelinek <jakub@redhat.com>
9666 * config/sparc/sparc.md (pic): New attribute.
9667 (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
9669 (split after do_builtin_setjmp_setup): New.
9671 2002-04-04 Jakub Jelinek <jakub@redhat.com>
9674 * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
9677 2002-04-04 Jakub Jelinek <jakub@redhat.com>
9679 * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
9680 UNITS_PER_WORD for zero sized aggregates.
9682 2002-04-03 David S. Miller <davem@redhat.com>
9684 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
9685 one-character spec for this, just use %(link_gcc_c_sequence).
9687 2002-04-03 David S. Miller <davem@redhat.com>
9689 * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
9692 2002-04-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
9694 * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
9695 (DWARF_FRAME_RETURN_COLUMN): Move.
9696 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
9697 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
9698 * pa.c (except.h, predict.h): Include.
9700 (store_reg_modify, set_reg_plus_d): Revise prototypes.
9701 (output_ascii): Add cast.
9702 (store_reg_modify): Revise to add frame notes.
9703 (set_reg_plus_d): Likewise.
9704 (compute_frame_size): Include space for eh data registers in frame if
9705 the current function calls eh_return.
9706 (hppa_expand_prologue): Ensure register %r2 is saved if the current
9707 function calls eh_return. Save eh data registers if the current
9708 function calls eh_return. Fix code to add frame notes. Emit
9709 blockage to prevent insns with frame notes being scheduled in the
9710 delay slot of calls.
9711 (hppa_expand_epilogue): Restore eh data registers and do final stack
9712 adjustment if the current function calls eh_return. Don't add frame
9714 (output_call): Revise for change in length of call insn. Don't do
9715 return pointer adjustment for an unconditional jump in the delay slot
9716 of a call when using frame notes.
9717 * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
9718 (EH_RETURN_HANDLER_RTX): Use saved value on stack.
9719 (ARG_POINTER_CFA_OFFSET): Define.
9720 * pa.md (return_external_pic): New pattern.
9721 (prologue): Correct formatting. Use return_external_pic if current
9722 function calls eh_return.
9723 (call_internal_symref, call_value_internal_symref,
9724 sibcall_internal_symref, sibcall_value_internal_symref): Change default
9725 lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
9727 (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
9729 * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
9730 list of targets to check using "nop" insn.
9731 * configure: Rebuilt.
9733 2002-04-04 Alan Modra <amodra@bigpond.net.au>
9735 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
9737 2002-04-03 David S. Miller <davem@redhat.com>
9739 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
9740 library sequence passed to the linker.
9741 (LINK_COMMAND_SPEC): Use it.
9742 * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
9743 a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
9744 * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
9746 2002-04-03 Jason Merrill <jason@redhat.com>
9748 * except.c (struct eh_status): Remove protect_list.
9749 (begin_protect_partials, end_protect_partials): Remove.
9750 (add_partial_entry): Remove.
9751 * except.h: Remove prototypes.
9753 * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
9754 expand_decl_cleanup_eh.
9757 * tree.h (CLEANUP_EH_ONLY): New macro.
9758 * stmt.c (expand_decl_cleanup_eh): New fn.
9759 (expand_cleanups): Check CLEANUP_EH_ONLY.
9760 * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
9761 Use expand_decl_cleanup_eh.
9762 (expand_stmt): Adjust.
9763 * c-common.h: Adjust prototype.
9765 2002-04-04 Hans-Peter Nilsson <hp@axis.com>
9767 * config/cris/cris.c (cris_target_asm_function_prologue): Cast
9768 uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
9769 (cris_target_asm_function_epilogue): Ditto.
9770 (cris_initial_frame_pointer_offset): Ditto.
9771 (cris_simple_epilogue): Ditto.
9772 (cris_expand_builtin_va_arg): Variable-size types come in
9775 2002-04-03 David S. Miller <davem@redhat.com>
9777 * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
9779 (set_fast_math): Correct 'fsr' type.
9781 2002-04-03 Richard Henderson <rth@redhat.com>
9784 * langhooks.h (lang_hooks.decls.warn_unused_global): New.
9785 * toplev.c (check_global_declarations): Use it.
9786 * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
9787 (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
9788 (LANG_HOOKS_DECLS): Add it.
9789 * langhooks.c (lhd_warn_unused_global_decl): New.
9790 * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
9791 * c-objc-common.c (c_warn_unused_global_decl): New.
9792 * c-tree.h (c_warn_unused_global_decl): Declare.
9793 * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
9795 2002-04-03 Neil Booth <neil@daikokuya.demon.co.uk>
9797 * langhooks-def.h (lhd_set_decl_assembler_name,
9798 LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
9799 (LANG_HOOKS_INITIALIZER): Update.
9800 * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
9801 * langhooks.h (struct lang_hooks): New hook.
9802 * tree.c (set_decl_assembler_name): Move to langhooks.c.
9803 (lang_set_decl_assembler_name): Remove.
9804 (init_obstacks): Don't set hook.
9805 (decl_assembler_name): New function.
9806 * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
9807 (decl_assembler_name): New.
9808 (lang_set_decl_assembler_name): Remove.
9810 2002-04-03 Jakub Jelinek <jakub@redhat.com>
9812 * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
9813 works properly with .hidden symbols.
9814 * configure: Rebuilt.
9815 * config.in: Rebuilt.
9816 * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
9817 DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
9818 properly with .hidden symbols.
9820 2002-04-03 Jakub Jelinek <jakub@redhat.com>
9823 * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
9826 2002-04-03 Richard Henderson <rth@redhat.com>
9829 * sched-rgn.c (sets_likely_spilled): New.
9830 (sets_likely_spilled_1): New.
9831 (add_branch_dependences): Use it.
9833 2002-04-02 Richard Henderson <rth@redhat.com>
9836 * loop.h (LOOP_FIRST_PASS): New.
9837 * loop.c (strength_reduce): Mind it when deciding to unroll.
9838 * toplev.c (rest_of_compilation): Set it.
9840 2002-04-02 David S. Miller <davem@redhat.com>
9842 * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
9843 mems_ok_for_ldd_peep when the order of the loads being examined
9845 * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
9846 existing comment to increase comprehension of this situation.
9848 2002-04-02 Zack Weinberg <zack@codesourcery.com>
9850 * config/sh/sh.md: Don't use union real_extract.
9852 2002-04-02 Richard Henderson <rth@redhat.com>
9854 * libgcc2.c (__bb_exit_func): Revert 03-31 change.
9856 2002-04-02 David O'Brien <obrien@FreeBSD.org>
9858 * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
9859 i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
9860 i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
9861 i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
9862 i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
9863 i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
9864 i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
9865 i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
9866 i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
9867 i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
9868 i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
9869 i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
9870 i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
9871 i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
9872 Include as many configury headers via tm_file as possible. This
9873 includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
9874 * config/openbsd-oldgas.h: New file.
9875 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
9876 config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
9877 config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
9878 config/i386/i386-coff.h, config/i386/i386-interix.h,
9879 config/i386/iscdbx.h, config/i386/linux-aout.h,
9880 config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
9881 config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
9882 config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
9883 config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
9884 config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
9885 config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
9886 config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
9887 config/i386/vxi386.h: Do not directly include configury headers.
9888 * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
9889 Directly include configury headers that are no longer automatically
9890 included by the above headers.
9891 * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
9892 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
9893 config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
9894 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
9895 config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
9896 config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
9897 config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
9898 (TARGET_VERSION): Define.
9899 * config/i386/beos-elf.h, config/i386/freebsd.h,
9900 config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
9901 config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
9902 config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
9903 config/i386/sco5.h, config/i386/sysv4.h
9904 (TARGET_VERSION): Do not need to protect.
9905 * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
9906 * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
9907 config/i386/freebsd-aout.h, config/i386/i386-aout.h,
9908 config/i386/i386-interix.h, config/i386/linux-aout.h,
9909 config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
9910 config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
9911 (YES_UNDERSCORES): Do not define - not needed.
9912 * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
9913 ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
9914 USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
9915 * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
9916 (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
9917 USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
9918 * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
9919 * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
9921 2002-04-02 Eric Botcazou <ebotcazou@multimania.com>
9922 Richard Henderson <rth@redhat.com>
9925 * function.c (assign_temp): Accept either type or decl argument.
9926 Detect variables whose size is too large to fit into an integer.
9927 * stmt.c (expand_decl): Pass the decl, not the type.
9929 2002-04-02 David O'Brien <obrien@FreeBSD.org>
9931 * protoize.c: Match include directory usage with cppdefault.c.
9933 2002-04-03 Jeffrey A Law (law@redhat.com)
9934 Hans-Peter Nilsson <hp@bitrange.com>
9936 * combine.c (simplify_comparison): Avoid narrowing a comparison
9937 with a paradoxical subreg when doing so would drop signficant bits.
9939 2002-04-02 Steve Ellcey <sje@cup.hp.com>
9941 * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
9942 if POINTERS_EXTEND_UNSIGNED is defined.
9944 2002-04-02 Richard Henderson <rth@redhat.com>
9947 * local-alloc.c (contains_replace_regs): LO_SUM may contain
9950 2002-04-02 Richard Henderson <rth@redhat.com>
9952 * doc/standards.texi: Document required freestanding libc entry points.
9954 2002-04-02 Alan Modra <amodra@bigpond.net.au>
9956 * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
9957 associated splitter. Remove MQ constraint.
9958 (ctrdi_internal4): Correct CCmode clobber.
9960 2002-04-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
9962 * milli64.S ($$dyncall): New function.
9963 * t-linux (LIB1ASMFUNCS): Revise module list.
9964 (LIB1ASMSRC): Use pa/milli64.S.
9966 2002-04-02 Richard Henderson <rth@redhat.com>
9968 * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
9969 rename solaris_sys_varargs_h.
9971 Tue Apr 2 06:47:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9973 * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
9974 the same mode as its component.
9976 2002-04-02 Richard Henderson <rth@redhat.com>
9979 * final.c (this_is_asm_operands): Export.
9980 * output.h (this_is_asm_operands): Declare.
9981 * config/i386/i386.c (print_operand): Error odd asm operands.
9983 2002-04-02 Richard Henderson <rth@redhat.com>
9986 * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
9988 2002-04-01 Richard Henderson <rth@redhat.com>
9991 * fixinc/inclhack.def (solaris_sys_varargs_h): New.
9992 * fixinc/fixincl.x: Rebuild.
9994 2002-04-01 Richard Henderson <rth@redhat.com>
9996 * config/ia64/unwind-ia64.c: Include ia64intrin.h.
9997 (atomic_alloc, atomic_free): New.
9998 (SIZE, MASK_FOR, PTR_IN): New.
9999 (emergency_reg_state, emergency_reg_state_free): New.
10000 (emergency_labeled_state, emergency_labeled_state_free): New.
10001 (reg_state_alloced, labeled_state_alloced): New.
10002 (alloc_reg_state, free_reg_state): New.
10003 (alloc_label_state, free_label_state, free_label_states): New.
10004 (push, pop, dup_state_stack, free_state_stack): Use them.
10005 (desc_label_state): Likewise.
10006 (uw_frame_state_for): Free label states and state stack.
10007 (uw_update_reg_address): Eliminate warnings.
10009 2002-04-01 Vladimir Makarov <vmakarov@redhat.com>
10011 * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
10012 ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
10014 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
10016 * c-decl.c (grokdeclarator): Update.
10017 * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
10018 * c-tree.h (c_mark_addressable): New.
10019 * c-typeck.c (default_function_array_conversion, build_unary_op,
10020 build_array_ref, convert_for_assignment): Update.
10021 (mark_addressable): Rename.
10022 * calls.c (try_to_integrate, expand_call): Use langhook.
10023 * expr.c (expand_expr): Use langhook.
10024 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
10025 * langhooks.h (struct lang_hooks): New hook.
10026 * stmt.c (expand_asm_operands): Use langhook.
10027 * tree.h (mark_addressable): Remove.
10029 * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
10031 2002-04-01 Bob Wilson <bob.wilson@acm.org>
10033 * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
10034 in previous change.
10036 2002-04-01 Bob Wilson <bob.wilson@acm.org>
10038 * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
10039 for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
10041 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
10043 * c-common.c (unsigned_conversion_warning, convert_and_check,
10044 unsigned_type, signed_type, shorten_compare,
10045 c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
10046 (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
10047 * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
10049 * c-decl.c (grokdeclarator): Update.
10050 * c-format.c (check_format_types): Update.
10051 * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
10052 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
10053 * c-typeck.c (build_binary_op, convert_for_assignment): Update.
10054 * convert.c (convert_to_integer): Use new hooks.
10055 * expmed.c (make_tree): Use new hooks.
10056 * expr.c (store_expr): Use new hooks.
10057 * fold-const.c (operand_equal_for_comparison_p, build_range_check,
10058 all_ones_mask_p, unextend, fold): Use new hooks.
10059 * langhooks.h (struct lang_hooks_for_types): New hooks.
10060 * tree.h (signed_or_unsigned_type, signed_type,
10061 unsigned_type): Remove.
10063 * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
10064 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
10066 2002-03-31 Richard Henderson <rth@redhat.com>
10068 * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
10069 (desc_frgr_mem): Fix reference to f16-f31.
10071 2002-03-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10073 * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
10074 RTVEC_ELT): Const-ify.
10075 * varray.h (VARRAY_CHECK): Const-ify.
10076 * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
10077 ggc_mark_rtvec, ggc_mark): Const-ify.
10079 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
10081 * diagnostic.c: Include langhooks-def.h.
10082 * Makefile.in (diagnostic.o): Update.
10084 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
10086 * c-common.c (c_unsafe_for_reeval): Rename.
10087 * c-common.h (c_unsafe_for_reeval): Rename.
10088 * c-decl.c (finish_incomplete_decl): Rename.
10089 (c_init_decl_processing): Don't set langhook.
10090 * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
10091 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
10092 * c-objc-common.c (c_objc_common_init): Don't set langhook.
10093 * c-tree.h (finish_incomplete_decl): Rename.
10094 * langhooks-def.h (lhd_unsafe_for_reeval): New.
10095 (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
10096 (LANG_HOOKS_INITIALIZER): Update.
10097 * langhooks.c (lhd_unsafe_For_reeval): New.
10098 * langhooks.h (struct langhooks): New hooks.
10099 * toplev.c (incomplete_decl_finalize_hook): Remove.
10100 (wrapup_global_declarations): Update.
10101 * tree.c (lang_unsafe_for_reeval): Remove.
10102 (unsafe_for_reeval): Update.
10103 * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
10106 * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
10107 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
10109 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
10111 * diagnostic.c (print_error_function): Remove.
10112 (default_print_error_function): Rename.
10113 (report_error_function): Update.
10114 * diagnostic.h (print_error_function): Remove.
10115 (default_print_error_function): Remove.
10116 * langhooks-def.h (struct diagnostic_context): Predeclare.
10117 (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
10118 (LANG_HOOKS_INITIALIZER): Update.
10119 * langhooks.h (struct diagnostic context): Predeclare.
10120 (struct lang_hooks): New hook.
10122 2002-03-31 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10124 * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
10125 (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
10127 (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
10128 * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
10129 of PIC_OFFSET_TABLE_REGNUM thruout.
10130 * config/rs6000/rs6000.md: Likewise.
10131 * config/rs6000/darwin.h: Likewise.
10133 Sun Mar 31 14:43:24 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10135 * emit-rtl.c (adjust_address_1, offset_address): Cast value to
10136 unsigned HOST_WIDE_INT, not unsigned int.
10138 2002-03-31 Jakub Jelinek <jakub@redhat.com>
10140 PR middle-end/6096, middle-end/6098, middle-end/6099
10141 * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
10143 (fill_slots_from_thread): Likewise.
10145 2002-03-31 Jakub Jelinek <jakub@redhat.com>
10147 * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
10148 floating fields in float regs.
10149 (function_arg_record_value_2): Likewise.
10151 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
10153 * config/mmix/mmix.md (define_constants): Remove misleading
10154 FIXME. Add MMIX_fp_rO_OFFSET.
10155 ("nonlocal_goto_receiver"): Don't have stack-frame address of
10156 saved rO as part of the pattern. Remove FIXME.
10157 ("*nonlocal_goto_receiver_expanded"): Similar. Generate address
10158 here, at output-time.
10160 2002-03-31 Jakub Jelinek <jakub@redhat.com>
10163 * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
10165 (output_v9branch): Likewise.
10167 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
10169 * gcc.c: Revert previous patch for now.
10170 * config/i386/djgpp.h: Likewise.
10172 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
10174 * config/mmix/crti.asm (_init): Register _fini with atexit.
10175 * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
10177 2002-03-31 Richard Henderson <rth@redhat.com>
10180 * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
10181 (ASM_OUTPUT_DEF_FROM_DECLS): New.
10183 2002-03-31 Richard Henderson <rth@redhat.com>
10185 * libgcc2.c (__bb_exit_func): Make static.
10187 * config/alpha/alpha.md (trap): New.
10189 2002-03-31 Richard Henderson <rth@redhat.com>
10191 * builtins.c (expand_builtin_va_arg): Give warnings not errors for
10192 promoted argument types; build trap.
10193 (expand_builtin_trap): New.
10194 (expand_builtin): Use it.
10195 * stmt.c (expand_nl_goto_receivers): Likewise.
10196 * expr.h (expand_builtin_trap): Declare.
10197 * libfuncs.h (LTI_abort, abort_libfunc): New.
10198 * optabs.c (init_optabs): Init abort_libfunc.
10200 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
10202 * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
10203 (LINK_COMMAND_SPEC): ... from here.
10204 (init_gcc_specs): Duplicate it here too, omitting
10205 shared_name in the second copy.
10206 (init_spec): Test for duplicate
10207 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
10209 2002-03-30 David S. Miller <davem@redhat.com>
10211 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
10212 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
10214 2002-03-30 Roger Sayle <roger@eyesopen.com>
10215 Richard Henderson <rth@redhat.com>
10217 * regmove.c (combine_stack_adjustments_for_block): Avoid
10218 emitting a stack adjustment of zero bytes. Let delete_insn
10221 2002-03-30 Richard Henderson <rth@redhat.com>
10223 * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
10224 (sparc_emitting_epilogue): New.
10225 (leaf_label, output_return, sparc_return_peephole_ok): Remove.
10226 * config/sparc/sparc-protos.h: Update.
10227 * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
10228 (TARGET_SWITCHES): Update.
10229 * config/sparc/sparc.md (return): Remove.
10230 (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
10231 * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
10232 config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
10233 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
10234 config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
10235 config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
10236 config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
10237 Remove MASK_EPILOGUE.
10238 * doc/invoke.texi: Update.
10240 2002-03-30 Daniel Berlin <dan@dberlin.org>
10242 * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
10243 CPP will start the file for us.
10245 2002-03-30 Richard Henderson <rth@redhat.com>
10248 * config/ia64/ia64.c (group_barrier_needed_p): Special case
10249 prologue_allocate_stack.
10250 (ia64_single_set): Use insn codes for recognition of special
10251 cases, not rtl matching.
10252 * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
10254 Sat Mar 30 23:48:41 CET 2002 Jan Hubicka <jh@suse.cz>
10256 * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
10258 2002-03-30 Richard Henderson <rth@redhat.com>
10261 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
10262 or -fomit-frame-pointer with profiling.
10263 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
10264 (FUNCTION_PROFILER): Do nothing.
10265 (PROFILE_HOOK): New.
10266 * config/sparc/sparc.c (sparc_override_options): Don't check
10267 code models for profiling.
10268 (sparc_function_profiler): Remove.
10269 (sparc_profile_hook): New.
10270 * config/sparc/sparc-protos.h: Update.
10272 2002-03-30 Jakub Jelinek <jakub@redhat.com>
10274 PR optimization/6086
10275 * combine.c (combine_simplify_rtx): If simplify_rtx failed because
10276 of SUBREG of volatile MEM or because the MEM was mode dependent,
10277 return CLOBBER instead of unmodified SUBREG.
10279 Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
10281 * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
10282 when not optimizing.
10284 * toplev.c (rest_of_compilation): Cann mark_constant_function
10285 only when optimizing.
10287 * flow.c (calculate_global_regs_live): Ensure that all AUX fields
10290 * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
10291 (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
10292 (try_optimize_cfg): clear all AUX fields.
10294 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
10295 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
10296 (ix86_address_cost): Be prepared for SUBREGed registers.
10297 (legitimate_address_p): Accept SUBREGed registers.
10299 2002-03-29 Richard Henderson <rth@redhat.com>
10302 * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
10304 2002-03-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10306 * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
10307 for aggregate and TFmode types.
10309 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
10311 * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
10313 2002-03-29 Richard Henderson <rth@redhat.com>
10316 * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
10317 * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
10319 2002-03-29 Richard Henderson <rth@redhat.com>
10322 * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
10323 (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
10324 * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
10325 * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
10327 * docs/invoke.texi: Update -mno-fancy-math-387 docs.
10329 2002-03-29 Dale Johannesen <dalej@apple.com>
10331 * loop.c (combine_movables): Do allow combination of pseudos.
10333 2002-03-29 Loren J. Rittle <ljrittle@acm.org>
10335 * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
10336 * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
10337 No functional change except ...
10338 * config/t-slibgcc-nolc-override (SHLIB_LC): Override it. New file.
10339 * doc/install.texi (*-*-freebsd*): Document port configuration.
10341 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
10343 * Makefile.in (convert.o, calls.o, expmed.o): Update.
10344 * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
10346 * builtin-types.def (BT_PTRMODE): Update.
10347 * c-common.c (type_for_size): Rename c_common_type_for_size.
10348 (type_for_mode): Similarly.
10349 (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
10351 * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
10352 * c-decl.c (finish_enum, build_enumerator): Use new hooks.
10353 * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
10355 * c-typeck.c (common_type, comptypes, default_conversion):
10357 * calls.c: Include langhooks.h.
10358 (emit_library_call_value_1): Use new hooks. Avoid redundant
10360 * convert.c: Include langhooks.h
10361 (convert_to_pointer, convert_to_integer): Use new hooks.
10362 * except.c (init_eh): Similarly.
10363 * expmed.c: Include langhooks.h.
10364 (expand_mult_add): Use new hooks.
10365 * expr.c (store_expr, store_constructor, expand_expr, do_jump,
10366 try_casesi): Similarly.
10367 * fold-const.c (optimize_bit_field_compare, make_range,
10368 decode_field_reference, fold_truthop, fold): Similarly.
10369 * function.c (assign_stack_local_1, assign_stack_temp_for_type,
10370 put_var_into_stack): Similarly.
10371 * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
10372 LANG_HOOKS_TYPE_FOR_SIZE): New.
10373 (LANG_HOOKS_TYPES_INITIALIZER): Update.
10374 * langhooks.h (lang_hooks_for_types): New hooks.
10375 * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
10376 * tree.c (get_unwidened, get_narrower): Similarly.
10377 * tree.h (type_for_mode, type_for_size): Remove.
10378 * varasm.c (force_const_mem): Use new hooks.
10379 * utils2.c (nonbinary_modular_operation): Update.
10381 * objc-act.c (handle_impent): Update.
10382 * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
10385 2002-03-29 Steve Ellcey <sje@cup.hp.com>
10387 * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
10388 * config/ia64/ia64.c (basereg_operand): New.
10389 * config/ia64/ia64-protos.h (basereg_operand): Declare.
10390 * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
10392 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
10394 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
10395 unwind information when frame_pointer_needed.
10396 (mmix_assemble_integer): Tweak wording in comment.
10398 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
10400 * Makefile.in (except.o): Update.
10401 * except.c: Include langhooks.h.
10402 (init_eh): Use langhook.
10403 * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
10404 LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
10405 (LANG_HOOKS_INITIALIZER): Update.
10406 * langhooks.h (lang_hooks_for_types): New.
10407 (struct lang_hooks): Add it.
10408 * tree.c (make_lang_type_fn, make_lang_type): Remove.
10409 * tree.h (make_lang_type_fn, make_lang_type): Remove.
10411 * alpha/alpha.c: Include langhooks.h.
10412 (alpha_build_va_list): Use langhook.
10413 * d30v/d30v.c: Include langhooks.h.
10414 (d30v_build_va_list): Use langhook.
10415 * i386/i386.c: Include langhooks.h.
10416 (ix86_build_va_list): Use langhook.
10417 * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
10418 * s390/s390.c: Include langhooks.h.
10419 (s390_build_va_list): Use langhook.
10420 * stormy16/stormy16.c: Include langhooks.h.
10421 (stormy16_build_va_list): Use langhook.
10423 2002-03-29 Jakub Jelinek <jakub@redhat.com>
10426 * config/sparc/sparc.md (empty_delay_slot, branch_type): New
10428 (length): Compute variable length for branches/calls/jumps here.
10429 (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
10430 normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
10431 define branch_type attribute.
10432 (divsi3_sp32): Maximum length is 6 not 7.
10433 (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
10434 call_address_untyped_struct_value_sp32,
10435 call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
10436 * config/sparc/sparc.c (empty_delay_slot): New function.
10437 * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
10438 * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
10440 2002-03-29 Jakub Jelinek <jakub@redhat.com>
10442 * combine.c (set_nonzero_bits_and_sign_copies): Don't call
10443 nonzero_bits if not needed.
10444 (nonzero_bits) [XOR]: Likewise.
10445 (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
10446 reg_last_set_mode and mode are both MODE_INT, but not equal.
10447 (record_value_for_reg): Compute reg_last_set_nonzero_bits
10448 in nonzero_bits_mode for MODE_INT modes.
10450 2002-03-28 Richard Henderson <rth@redhat.com>
10453 * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
10454 to GAS. Correct drift between alternatives.
10456 2002-03-28 Richard Henderson <rth@redhat.com>
10459 * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
10461 2002-03-28 Alexandre Oliva <aoliva@redhat.com>
10463 * config/i386/freebsd.h (LINK_SPEC): Don't pass default
10464 emulation to the linker.
10466 2002-03-28 Loren J. Rittle <ljrittle@acm.org>
10468 * config/alpha/freebsd.h (LINK_SPEC): Likewise.
10469 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
10471 Thu Mar 28 16:35:31 2002 Jeffrey A Law (law@redhat.com)
10473 * combine.c (simplify_and_const_int): Make sure to apply mask
10474 when force_to_mode returns a constant integer. PR3311.
10476 2002-03-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
10478 * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
10480 2002-03-28 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
10482 * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
10483 and Objective-C Dialect Options.
10485 2002-03-28 Richard Henderson <rth@redhat.com>
10487 * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
10488 comparison should be done vs !=0 not >0 return code. Tidy cases.
10490 2002-03-28 Richard Henderson <rth@redhat.com>
10492 * c-decl.c (finish_function): New arg can_defer_p. Pass it
10493 on to c_expand_body.
10494 * c-tree.h (finish_function): Update decl.
10495 * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
10497 Thu Mar 28 19:13:36 CET 2002 Jan Hubicka <jh@suse.cz>
10499 * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
10501 Thu Mar 28 13:21:53 CET 2002 Jan Hubicka <jh@suse.cz>
10503 * rtlanal.c: Include flags.h
10504 (may_trap_p): Do not mark FP operations if trapping
10505 if !flag_trapping_math
10506 * Makefile.in (rtlanal.o): Add dependency on flag.h
10507 * ifcvt.c (noce_operand_ok): Avoid the lameness.
10509 2002-03-27 Zack Weinberg <zack@codesourcery.com>
10511 * mips.md: Use dconst1, not 1.0, as first argument of
10512 REAL_VALUE_LDEXP. Don't use union real_extract.
10514 2002-03-28 Alan Modra <amodra@bigpond.net.au>
10516 * configure.in (gcc_cv_as): Use $target_alias in directory searchs
10517 rather than $target. Heed program_prefix and
10518 program_transform_name. Search for gas in cross-compiler case too.
10519 "test -x" rather than "test -f".
10520 (gcc_cv_ld): Likewise.
10521 (gcc_cv_nm): Heed program_prefix and program_transform_name.
10522 (gcc_cv_objdump): Likewise.
10523 * configure: Regenerate.
10525 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
10527 * Makefile.in (attribs.o): Update.
10528 * attribs.c: Include langhooks.h.
10529 (decl_attributes): Use langhook.
10530 * c-decl.c (insert_default_attributes): Rename.
10531 * c-tree.h (c_insert_default_attributes): New.
10532 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
10533 (LANG_HOOKS_INITIALIZER): Update.
10534 * langhooks.h (struct lang_hooks): New hook.
10535 * tree.h (insert_default_attributes): Remove.
10537 * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
10539 2002-03-27 Andreas Schwab <schwab@suse.de>
10541 * config/i386/i386.c (classify_argument): Also check for
10544 2002-03-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10546 * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
10549 Wed Mar 27 23:19:30 CET 2002 Jan Hubicka <jh@suse.cz>
10551 * i960.md (ret): Set PC.
10552 (nonlocal_goto): Fix expander.
10553 * builtins.c (epxand_builin_longjmp): Check that we've emitted
10556 Wed Mar 27 23:11:35 CET 2002 Jan Hubicka <jh@suse.cz>
10558 * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
10559 of libcall regions.
10561 Wed Mar 27 22:54:14 CET 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10563 * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
10564 assigning to BLOCK_FOR_INSN directly.
10566 Wed Mar 27 22:33:05 CET 2002 Jan Hubicka <jh@suse.cz>
10568 * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
10570 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
10572 * c-common.c (c_expand_expr): Fix prototype.
10573 * c-common.h (c_expand_expr): Always declare, update.
10574 * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
10575 * c-objc-common.c (c_objc_common_init): No global hook.
10576 * expr.c (expand_expr): Use langhook.
10577 * expr.h (enum expand_modifier): Conditionally declare.
10578 * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
10579 (LANG_HOOKS_INITIALIZER): Update.
10580 * langhooks.c (lhd_expand_expr): New.
10581 * langhooks.h (struct lang_hooks): New hook.
10582 * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
10583 (lang_independent_init): Don't default hook.
10585 * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
10587 2002-03-27 Richard Henderson <rth@redhat.com>
10590 * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
10591 TARGET_CONST_GP. Simplify conditions.
10593 2002-03-27 Richard Henderson <rth@redhat.com>
10595 * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
10596 config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
10597 config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
10599 2002-03-27 Danny Smith <dannysmith@users.sourceforge.net>
10601 * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
10602 TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
10603 (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
10604 Remove unnecessary masks.
10605 (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
10606 (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
10607 -mwindows, -mdll switches and their negations.
10609 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
10611 * gcc-common.c (lang_mark_false_label_stack): Remove.
10612 * ggc.h (lang_mark_false_label_stack): Similarly.
10614 2002-03-26 Vladimir Makarov <vmakarov@redhat.com>
10616 * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
10618 * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
10619 or __rtems_ is defined.
10621 2002-03-26 Richard Henderson <rth@redhat.com>
10623 * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
10624 if a non-trivial load was emitted.
10625 (alpha_emit_set_const_1): Remove obsolete extension. Fix thinko
10626 in high+extra+low case.
10628 2002-03-26 Richard Henderson <rth@redhat.com>
10630 * config.gcc (sparc*-solaris): Use float_format=sparc.
10632 2002-03-26 Richard Henderson <rth@redhat.com>
10634 * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
10635 * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
10636 * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
10637 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
10638 (WINT_TYPE_SIZE): Fix at 32.
10640 2002-03-26 Richard Henderson <rth@redhat.com>
10642 * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
10643 until after eh landing pad generation.
10644 * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
10645 * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
10647 2002-03-26 Richard Henderson <rth@redhat.com>
10649 * expr.h (ADD_PARM_SIZE): One more convert for INC.
10651 2002-03-26 Phil Edwards <pme@gcc.gnu.org>
10653 * gcc.c (cpp_options): Preserve relative ordering of -pedantic
10654 and warning switches.
10655 (cc1_options): Likewise.
10657 2002-03-26 Hans Boehm <Hans_Boehm@hp.com>
10659 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
10660 Restore more of the signal context. Set no_reg_stack_frame.
10661 * config/ia64/unwind-ia64.c (unw_state_record):
10662 Add no_reg_stack_frame, comments.
10663 (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
10664 (uw_update_context): Adjust bsp when unwinding from leaf,
10665 but not signal frame.
10667 2002-03-26 David Edelsohn <edelsohn@gnu.org>
10669 * config/rs6000/aix51.h (WCHAR_TYPE): Define.
10671 2002-03-26 Bob Wilson <bob.wilson@acm.org>
10673 * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
10675 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
10678 * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
10679 "Add a pool_range attribute", which was lost during the ARM/Thumb
10682 2002-03-26 Bob Wilson <bob.wilson@acm.org>
10684 * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
10685 a register into the MAC16 accumulator.
10687 2002-03-26 Andrew Cagney <ac131313@redhat.com>
10689 * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
10690 (Warning Options): Document -Wswitch-enum.
10691 * toplev.c (W_options): Add -Wswitch-enum. Update comment on
10693 (warn_switch_enum): Define variables.
10694 * flags.h (warn_switch_enum): Declare variables.
10695 * stmt.c (expand_end_case_type): When warn_switch_enum /
10696 -Wswitch-enum, perform switch checks.
10699 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
10701 * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
10702 (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
10703 (reload_muladdsi_compare0_scratch): Delete.
10705 2002-03-26 Loren J. Rittle <ljrittle@acm.org>
10707 * doc/install.texi (*-*-freebsd*): Update.
10709 2002-03-26 Richard Henderson <rth@redhat.com>
10711 * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
10712 (SUB_PARM_SIZE): Cast DEC to ssizetype.
10714 * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
10715 types from the normal argument frame.
10717 * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
10718 variable sized objects by reference.
10719 (sparc_va_arg): Receive them by reference too.
10721 2002-03-26 Hartmut Penner <hpenner@de.ibm.com>
10723 * config/s390/s390.c (s390_emit_epilogue): Change epilogue
10724 code to not restoring global registers.
10726 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
10728 * Makefile.in (ggc-common.o): Update.
10729 * c-decl.c (lang_mark_tree): Rename c_mark_tree.
10730 * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
10731 * c-tree.h (c_mark_tree): New.
10732 * ggc-common.c: Include langhooks.h.
10733 (gcc_mark_trees): Use new langhook.
10734 * ggc-callbacks.c: Delete file.
10735 * ggc.h (lang_mark_tree): Remove.
10736 * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
10737 (LANG_HOOKS_INITIALIZER): Update.
10738 * langhooks.h (struct lang_hooks): New hook.
10740 * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
10742 2002-03-25 Zack Weinberg <zack@codesourcery.com>
10744 * doc/cpp.texi: Exclude entire Top node from printed manual.
10745 Move option index after directive index. Insert page breaks
10746 before GFDL and concept index. Index environment variables
10747 with command line options.
10748 * doc/cppenv.texi: Use @vtable for environment variable list.
10749 Add paragraph explaining semantics of empty elements in path
10750 variables. Exclude a cross-reference to Fishkill from the
10751 manpage. Remove an unnecessary cross-reference of the entry
10752 right above the referer. Don't use @anchor in text that goes
10754 * doc/cppopts.texi: Cross-reference the environment variables
10755 section, not the specific environment variable, for consistency.
10757 2002-03-25 Richard Henderson <rth@redhat.com>
10759 * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
10760 anywhere in the block. Don't refer to insns that have been
10761 removed from the chain. Iterate backward through the new insns.
10762 Don't refer to edges that have been removed.
10764 2002-03-26 Alan Modra <amodra@bigpond.net.au>
10766 * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
10767 test for overflow of constant.
10769 2002-03-25 Richard Earnshaw <rearnsha@arm.com>
10772 * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
10773 (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
10774 these patterns on arm_archv4.
10776 2002-03-25 Danny Smith <dannysmith@sourceforge.users.net>
10778 * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
10781 2002-03-25 Zack Weinberg <zack@codesourcery.com>
10783 * toplev.c: Don't include setjmp.h. Kill float_handler_set,
10784 float_handled, float_handler, float_signal, set_float_handler,
10785 and do_float_handler. Set handler for SIGFPE to crash_signal.
10786 * toplev.h: Don't prototype do_float_handler.
10788 * c-lex.c: Fold parse_float into lex_number. Make warning
10789 about portability of hex float constants more informative, and
10790 don't issue it on top of a syntax error.
10791 * fold-const.c: Fold const_binop_1 and fold_convert_1 into
10793 * real.h: Define REAL_VALUE_ABS here...
10794 * simplify-rtx.c: ... not here. Fold check_fold_consts,
10795 simplify_unary_real, simplify_binary_real, and
10796 simplify_binary_is2orm1 into their callers.
10797 * tree.c: Fold build_real_from_int_cst_1 into caller.
10799 * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
10801 * tsystem.h: Include float.h here...
10802 * libgcc2.c: ... not here.
10804 2002-03-25 Nick Clifton <nickc@cambridge.redhat.com>
10806 Fixes for: PR bootstrap/3591, target/5676
10807 * config/mcore/mcore.h (CC1_SPEC): Define only if not already
10808 defined. Do not disable exceptions or rtti.
10809 * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
10810 mcore.h. Disable exceptions and rtti, since they are not
10813 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
10815 * c-decl.c (maybe_build_cleanup): Remove.
10816 * expr.c (expand_expr): Use langhook.
10817 * langhooks-def.h (lhd_return_null_tree,
10818 LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
10819 (LANGHOOKS_INITIALIZER): Update.
10820 * langhooks.c (lhd_return_null_tree): New.
10821 * langhooks.h (struct lang_hooks): New hook.
10822 * tree-inline.c (initialize_inlined_parameters): Use langhook.
10823 * tree.h (maybe_build_cleanup): Remove.
10825 2002-03-25 Jakub Jelinek <jakub@redhat.com>
10827 * regrename.c (build_def_use): Move recog_memoized
10828 before extract_insn.
10830 2002-03-25 Jakub Jelinek <jakub@redhat.com>
10833 * expr.c (emit_group_store): Handle storing into CONCAT.
10835 2002-03-25 Jakub Jelinek <jakub@redhat.com>
10837 * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
10838 corresponding MATCH_DUP.
10840 2002-03-24 Richard Henderson <rth@redhat.com>
10842 * unroll.c (unroll_loop): Zero label_map.
10844 * gcse.c: Include except.h.
10845 * Makefile.in (gcse.o): Update.
10847 2002-03-24 Richard Henderson <rth@redhat.com>
10849 * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
10850 Do resolve_unique_section before shared data clause.
10852 2002-03-24 Richard Henderson <rth@redhat.com>
10854 * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
10856 2002-03-24 Richard Henderson <rth@redhat.com>
10858 * recog.c (peephole2_optimize): Split blocks when EH insns are
10859 generated in the middle of a block. Do global life update if
10862 2002-03-24 Richard Henderson <rth@redhat.com>
10864 * mips.c (mips_function_value): Only promote_mode for non-libcalls.
10866 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
10869 * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
10870 * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
10871 (init_dependency_output): Don't make no_output decision here.
10873 2002-03-24 Andrew Cagney <ac131313@redhat.com>
10875 * stmt.c (check_for_full_enumeration_handling): Remove tests of
10876 warn_switch. Update description.
10877 (expand_end_case_type): Call check_for_full_enumeration_handling
10880 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
10882 * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
10883 (m68hc11_split_move): Call it to see if the source and destination
10884 operands use the same direction auto inc/dec mode, otherwise make the
10885 source an offsetable memory operand and generate an add.
10887 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
10889 * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
10890 register for operand 2.
10891 ("*subsi3_zero_extendqi"): Likewise.
10892 ("*iorhi3_gen"): Do the operation on the upper bits and then lower
10893 bits so that it is compatible with a pop.
10894 ("*andhi3_gen"): Likewise.
10895 ("xorhi3"): Likewise.
10897 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
10899 * cppinit.c (cpp_handle_option): Set warn_endif_labels if
10901 (cpp_post_options): ... not here.
10903 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
10904 Aldy Hernandez <aldyh@redhat.com>
10906 Removal of separate preprocessor cpp0.
10908 * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
10909 cpp0, install-common): Update.
10910 * c-common.c (flag_preprocess_only): New.
10911 (c_common_init): Preprocess for -E.
10912 * c-common.h (flag_preprocess_only): New.
10913 * c-decl.c (c_decode_option): Handle -E and -std=c++98.
10914 * c-objc-common.c (c_init_decl_processing): Exit quickly
10915 for NULL return from c_common_init.
10916 * cpplib.h (cpp_preprocess_file): New.
10917 * cppmain.c (main, general_init, pfile, progname): Remove.
10918 (do_preprocessing): Rename cpp_preprocess_file, don't call
10919 cpp_finish. Don't close stdout here.
10920 (setup_callbacks): Update prototype.
10921 * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
10923 * tradcpp.c (main): Ignore -quiet.
10925 * lang-specs.h (default_compilers): Preprocess with cc1obj.
10927 2002-03-24 Richard Henderson <rth@redhat.com>
10929 PR optimization/5742
10930 * machmode.def: Add inner mode field to complex modes.
10931 * config/mips/mips.c (mips_function_value): Always define. Add
10932 new argument to handle libcalls.
10933 * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
10934 (FUNCTION_VALUE): Likewise.
10935 * config/mips/abi64.h (FUNCTION_VALUE): Remove.
10936 * config/mips/mips-protos.h: Update.
10938 2002-03-23 Richard Henderson <rth@redhat.com>
10940 * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
10941 * config/sparc/sparc-protos.h: Update.
10942 * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
10944 2002-03-23 Richard Henderson <rth@redhat.com>
10946 * config/sparc/gmon-sol2.c (internal_mcount): Assume either
10947 _start or _init begins the text segment.
10949 2002-03-23 David Edelsohn <edelsohn@gnu.org>
10951 * config/rs6000/rs6000.h (RETURN_IN_MEMORY): Cast to HOST_WIDE_INT
10952 not HOST_WIDEST_INT.
10953 (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
10955 2002-03-23 Richard Earnshaw <rearnsha@arm.com>
10958 * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
10959 operand argument to output_return_instruction.
10960 * arm.c (arm_print_operand, case 'd'): If the operand is
10961 const_true_rtx then just return.
10962 (arm_print_operand, case 'D'): If the operand is const_true_rtx
10965 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10967 * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
10968 (Warning Options): Document -Wswitch-default.
10969 * toplev.c (W_options): Add -Wswitch-default. Update comment on
10971 (warn_switch_default): Define variable.
10972 (warn_switch): Update comment.
10973 * flags.h (warn_switch_default): Declare variable.
10974 (warn_switch): Update comment.
10975 * stmt.c (expand_end_case): Check for and, when
10976 warn_switch_no_default, warn of a missing default case.
10978 2002-03-23 Alan Modra <amodra@bigpond.net.au>
10980 * real.h (N): Special case 128 bit doubles.
10982 * combine.c (simplify_comparison): When widening modes, ignore
10983 sign extension on CONST_INTs.
10985 2002-03-22 Bob Wilson <bob.wilson@acm.org>
10987 * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
10988 passed to adjust_address. Fix comment formatting.
10991 2002-03-22 Zack Weinberg <zack@codesourcery.com>
10993 * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
10994 Always make REAL_VALUE_TYPE a struct containing an array of
10995 HOST_WIDE_INT, not a double. Tidy up the code deciding how
10996 big it is. Don't declare or use union real_extract.
10998 * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
10999 decode_rtx_const, output_constant_pool), config/a29k/a29k.c
11000 (print_operand), config/arm/arm.c (output_move_double),
11001 config/arm/arm.md (consttable_4, consttable_8),
11002 config/romp/romp.c (output_fpops), config/s390/s390.h
11003 (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
11004 (xtensa_output_literal): Don't use union real_extract.
11006 * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
11007 (sfmode_constant_to_ulong), config/ns32k/merlin.h
11008 (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
11009 config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
11010 (PRINT_OPERAND): Don't use local version of union
11013 * config/convex/convex.c (check_float_value), config/vax/vax.c
11014 (vax_float_literal), config/m88k/m88k.md (divdf3),
11015 config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
11016 config/pdp11/pdp11.c (output_move_quad): Don't do host
11017 arithmetic on target floating point quantities.
11019 * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
11020 (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
11022 * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
11023 Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
11025 * real.c (earith): Test INFINITY rather than REAL_INFINITY;
11026 NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
11028 * print-rtl.c (print_rtx): Disable code which needs
11029 floating-point emulator.
11030 * libgcc2.c: Include float.h and use DBL_MANT_DIG,
11031 FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
11032 depending on HOST_FLOAT_FORMAT to be defined properly.
11034 * config/1750a/1750a.c (get_double, float_label): Delete.
11035 (print_operand): Delete huge commented-out chunk. Use
11036 REAL_VALUE_TO_DECIMAL.
11037 * config/1750a/1750a-protos.h: Delete prototypes of deleted
11039 * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
11041 * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
11042 Use REAL_VALUE_TO_DECIMAL as ELF version does.
11043 * config/m88k/m88k.c (real_power_of_2_operand,
11044 legitimize_operand): Take the REAL_VALUE_TYPE and/or union
11045 real_extract out of the union; run the input through
11046 REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
11047 from that into the union.
11048 * config/pdp11/pdp11.c (output_move_double): Rearrange
11049 parentheses to make automatic indenter happy.
11051 * doc/tm.texi (Cross-compilation): Rename node to "Floating
11052 Point" and rewrite to describe current situation. Also adjust
11053 documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
11055 * doc/rtl.texi: Adjust cross reference.
11057 2002-03-22 Bob Wilson <bob.wilson@acm.org>
11059 * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
11060 (xtensa_valid_move, xtensa_preferred_reload_class): Define.
11061 * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
11062 (xtensa_valid_move, xtensa_preferred_reload_class): Define to
11063 prevent use of sp as a reload register.
11064 (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
11065 non_acc_reg_operand.
11066 * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
11067 (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
11068 * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
11069 movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
11071 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
11073 * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
11074 * cpplex.c (unterminated): Delete.
11075 (parse_string): No string literal may extend over multiple
11076 lines. Suppress the error when preprocessing assembly.
11077 * cppmain.c (scan_translation_unit): Strings are single-line.
11079 * doc/cpp.texi: Update to match.
11081 2002-03-22 Jakub Jelinek <jakub@redhat.com>
11083 PR optimization/5854
11084 * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
11086 (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
11087 (EXTRA_CONSTRAINT): Use S for non-push memory operand.
11088 * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
11089 const0 if scratch register was not allocated.
11090 (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
11091 m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
11092 with GEN_INT (...).
11093 (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
11094 * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
11095 with GEN_INT (...) everywhere. Remove constraints in define_split
11097 (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
11098 require scratch register for setting 0 into regs/non-pushable memory.
11100 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
11102 * config/mips/mips.h (MASK_RETURN_ADDR): Define.
11103 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
11105 2002-03-22 Phil Edwards <pme@gcc.gnu.org>
11107 * cpplib.h (struct cpp_options): New member, warn_endif_labels.
11108 * cppinit.c (cpp_create_reader): On by default.
11109 (cpp_handle_option): Handle -W[no-]endif-labels.
11110 (cpp_post_options): Also enable if -pedantic.
11111 * cpplib.c (do_else): Use it.
11112 (do_endif): Likewise.
11113 * doc/cppopts.texi: Document new option.
11114 * doc/invoke.texi: Document new option.
11116 2002-03-22 Lars Brinkhoff <lars@nocrew.org>
11118 * config/i386/i386.c, config/i386/i386.md: Change all occurences
11119 of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
11121 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
11123 * flow.c (calculate_global_regs_live): Clear aux fields of
11126 2002-03-22 Jakub Jelinek <jakub@redhat.com>
11128 * config/v850/v850.c (v850_reorg): Only call alter_subreg on
11129 REG or MEM subregs, pass rtx * instead of rtx to it.
11130 * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
11131 rtx * instead of rtx to alter_subreg.
11132 * config/m32r/m32r.c (gen_split_move_double): Likewise.
11133 * config/pj/pj.c (pj_output_rval): Likewise.
11135 2002-03-22 Richard Henderson <rth@redhat.com>
11138 * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
11139 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
11140 * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
11141 (ia64_expand_prologue): Look at int_regs, not words, for number
11142 of incomming int regs.
11144 2002-03-22 Andrew MacLeod <amacleod@redhat.com>
11146 * expr.c (expand_expr): A RESULT_DECL is part of a call.
11148 Fri Mar 22 16:30:42 CET 2002 Jan Hubicka <jh@suse.cz>
11150 * toplev.c (flag_loop_optimize, flag_crossjumping):
11151 New static variables.
11152 (rest_of_compilation): Conditionalize crossjumping and
11154 (parse_options_and_default_flags): Default loop_optimize and
11156 (lang_independent_options): Add -fcrossjumping and -floop-optimize
11157 * invoke.texi (crossjumping, loop-optimize): Document.
11159 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
11161 * real.c (eiisneg): Move outside #ifdef NANS.
11163 Fri Mar 22 12:08:36 CET 2002 Jan Hubicka <jh@suse.cz>
11165 * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
11166 frequencies match; avoid match on different loop depths.
11167 (try_crossjump_to_bb): Kill tests that no longer brings time
11169 * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
11171 (split_edge): Likewise.
11173 * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
11176 * Makefile.in (cfgrtl): Add insn-config.h depenendency.
11177 * cfgrtl.c: Include insn-config.h
11178 (split_block) Dirtify block in presence of conditional execution
11180 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
11182 * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
11183 * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
11184 (function_arg): Constify CUMULATIVE_ARGS.
11185 (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
11186 * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
11187 (UNITS_PER_DOUBLE): New macro.
11188 (SETUP_INCOMING_VARARGS): Define. Use mips_setup_incoming_varargs.
11189 (CUMULATIVE_ARGS): Reformat. Remove num_adjusts workaround and
11190 last_arg_fp field. Replace arg_words and fp_arg_words with gp_regs,
11191 fp_regs and stack_words.
11192 (EABI_FLOAT_VARARGS_P): New macro.
11193 * config/mips/mips.c (struct mips_arg_info): New.
11194 (mips_arg_info): New function.
11195 (function_arg_advance): Use it. Add adjustment instructions here
11196 rather than in function_arg.
11197 (function_arg): Constify CUMULATIVE_ARGS. Use mips_arg_info. Check
11198 for VOIDmode at the beginning of the function.
11199 (function_partial_nregs): Constify CUMULATIVE_ARGS. Use mips_arg_info.
11200 (function_arg_pass_by_reference): Likewise.
11201 (mips_setup_incoming_varags): New, largely based on old abi64.h code.
11202 (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
11203 (mips_va_start): Likewise. Use the new stack_words field of
11204 CUMULATIVE_ARGS to set up overflow area. Reformat.
11205 (mips_va_arg): Test EABI_FLOAT_VARARGS_P. Unify EABI handling of
11206 doubles and other types, aligning the overflow pointer for non-doubles
11207 too. Remove some code duplication. Replace hard-coded constants.
11209 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
11211 * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
11212 (CLASS_UNITS): Undefine.
11213 (CLASS_MAX_NREGS): Use FP_INC.
11214 * config/mips/mips.c (compute_frame_size): Likewise.
11215 (override_options): Use FP_INC and UNITS_PER_FPVALUE.
11217 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
11219 * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
11220 prototype, and handle lexing numbers and identifiers.
11221 (parse_identifier): Update to new form of parse_slow.
11222 (parse_number): Fast path only, use parse_slow otherwise.
11223 (_cpp_lex_direct): Update calls to parse_number.
11225 2002-03-21 DJ Delorie <dj@redhat.com>
11227 * bb-reorder.c (make_reorder_chain_1): Protect against
11228 when redundant edges are omitted.
11229 * predict.c (dump_prediction): Likewise.
11231 2002-03-21 Richard Henderson <rth@redhat.com>
11234 * fixinc/inclhack.def (solaris_stdio_tag): New.
11235 * fixinc/fixincl.x: Regenerate.
11237 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
11240 * c-typeck.c (process_init_element): Flag non-static
11241 initialization of a flexible array member as illegal.
11243 2002-03-22 Alan Modra <amodra@bigpond.net.au>
11245 * config/rs6000/t-linux64: New.
11246 * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
11247 t-ppccomm. Use t-rs6000 and t-linux64.
11248 (powerpc64-*-gnu* <tmake_file>): Likewise.
11249 * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
11250 * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
11251 * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
11253 2002-03-21 Aldy Hernandez <aldyh@redhat.com>
11255 * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
11256 flag_really_no_inline instead of optimize == 0.
11258 * c-objc-common.c (c_cannot_inline_tree_fn): Same.
11260 * cp/tree.c (cp_cannot_inline_tree_fn): Same.
11262 * flags.h (flag_really_no_inline): New.
11264 * c-common.c (c_common_post_options): Initialize
11265 flag_really_no_inline.
11267 * toplev.c (flag_really_no_inline): New.
11269 2002-03-21 Jakub Jelinek <jakub@redhat.com>
11271 * config/avr/avr.md (length): Fix length computation for
11272 conditional branches.
11274 2002-03-21 Neil Booth <neil@daikokuya.demon.co.uk>
11276 * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
11277 sdbout.o, profile.o): Update.
11278 * c-common.c (c_common_nodes_and_builtins): Use pushdecl
11280 * c-common.h (gettags): Move here from tree.h.
11281 * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
11282 insert_block, getdecls, kept_level_p, global_bindings_p): New.
11283 * dbxout.c (dbxout_init): Use getdecls langhook.
11284 * expr.c (expand_expr): Use insert_block langhook.
11285 * fold-const.c: Include langhooks.h.
11286 (fold_range_test, fold_binary_op_with_conditional_arg,
11287 fold): Use global_bindings_p langhook.
11288 * integrate.c (expand_inline_function): Use insert_block langhook.
11289 * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
11290 LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
11291 LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
11292 LANG_HOOKS_GETDECLS): New.
11293 (LANG_HOOKS_INITIALIZER): Update.
11294 * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
11296 * langhooks.h (struct lang_hooks_for_decls): New.
11297 (struct lang_hooks): Update.
11298 * profile.c: Include langhooks.h.
11299 (output_func_start_profiler): Use new langhooks.
11300 * sdbout.c: Include langhooks.h.
11301 (sdbout_init, sdbout_finish): Use getdecls langhook.
11302 * stmt.c: Include langhooks.h.
11303 (expand_fixup, fixup_gotos): Use new langhooks.
11304 * stor-layout.c: Include langhooks.h.
11305 (variable_size): Use global_bindings_p langhook.
11306 * toplev.c (compile_file): Use getdecls langhook.
11307 * tree-inline.c (remap_block): Use insert_block langhook.
11308 * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
11309 insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
11311 2002-03-21 Richard Henderson <rth@redhat.com>
11313 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
11314 constants in .data when -fpic.
11316 2002-03-21 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
11318 * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
11321 2002-03-21 Tom Tromey <tromey@redhat.com>
11323 * config/i386/sol2.h (ASM_QUAD): Undef. Fixes PR bootstrap/5948.
11325 Thu Mar 21 09:50:48 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11327 * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
11329 * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
11331 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
11332 Richard Henderson <rth@redhat.com>
11335 * c-common.c (c_expand_expr): Preserve result of a statement
11336 expression if needed.
11338 2002-03-21 Jakub Jelinek <jakub@redhat.com>
11341 * genrecog.c (maybe_both_true_mode): Remove.
11342 (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
11343 * machmode.def (Pmode): Likewise.
11345 Thu Mar 21 01:55:06 EST 2002 John Wehle (john@feith.com)
11347 * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
11348 (nonlocal_mentioned_p_1): New function.
11349 (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
11350 (nonlocal_set_p, nonlocal_set_p_1): Likewise.
11351 (mark_constant_function): Recognize pure functions.
11352 * rtl.h (global_reg_mentioned_p): New prototype.
11353 * rtlanal.c (global_reg_mentioned_p,
11354 global_reg_mentioned_p_1): New function.
11356 2002-03-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11358 * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
11360 * fixinc/fixincl.x: Regenerate.
11362 2002-03-20 Jason Merrill <jason@redhat.com>
11364 * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
11366 2002-03-20 Michael Meissner <meissner@redhat.com>
11368 * doc/invoke.texi (Optimize Options): Document that -O2 sets
11371 2002-03-20 Bob Wilson <bob.wilson@acm.org>
11373 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
11374 ".literal_position" directive before the constant pool.
11376 2002-03-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
11378 * doc/contrib.texi (Contributors): Update Geoffrey Keating.
11379 Add Craig Rodrigues.
11380 Add Brad Lucier to testers.
11382 2002-03-20 Jakub Jelinek <jakub@redhat.com>
11385 * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
11387 (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
11388 * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
11389 instead of insn_extract.
11391 2002-03-20 Jakub Jelinek <jakub@redhat.com>
11394 * config/fr30/fr30.md (jump): Remove clobber of fixed register.
11396 * genemit.c (output_added_clobbers_hard_reg_p): Only output return
11397 stmt if some case has been output.
11399 2002-03-20 Jakub Jelinek <jakub@redhat.com>
11402 * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
11403 movsfcc_1, movdfcc_1): Add %O2.
11404 * config/i386/i386.c (print_operand): Handle %ON.
11405 Print . before float condition codes in Sun as cmov syntax.
11406 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
11407 * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
11410 2002-03-20 Philip Blundell <pb@nexus.co.uk>
11412 * config/arm/arm.c (arm_output_epilogue): Don't generate separate
11413 return instruction if PC was popped.
11415 2002-03-20 Bob Wilson <bob.wilson@acm.org>
11417 * config/xtensa/xtensa.md: Remove unused type attributes.
11418 (adddi_carry, subddi_carry): Change type attribute to "multi".
11420 2002-03-19 Dale Johannesen <dalej@apple.com>
11422 PR optimization/5999, middle-end/5731
11423 * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
11424 multiplications by reciprocals.
11426 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
11428 * Makefile.in: Update.
11429 * c-common.c: Include langhooks.h.
11430 (inline_forbidden_p): Use new hook.
11431 * diagnostic.c: Include langhooks.h.
11432 (format_with_decl, announce_function,
11433 default_print_error_function): Use new hook.
11434 * dwarf2out.c (dwarf2_name): Use new hook.
11435 * function.c: Include langhooks.h.
11436 (init_function_start): Use new hook.
11437 * langhooks-def.h (lhd_decl_printable_name): New.
11438 (LANGHOOKS_DECL_PRINTABLE_NAME): New.
11439 (LANGHOOKS_INITIALIZER): Update.
11440 * langhooks.c (lhd_decl_printable_name): New.
11441 * langhooks.h (struct lang_hooks): New hook.
11442 * toplev.c (decl_name, decl_printable_name): Remove.
11443 (open_dump_file): Use new hook.
11444 (process_options): Remove old hook.
11445 * tree.h (decl_printable_name): Remove.
11447 * objc-act.c (objc_init): Remove old hook.
11448 (objc_printable_name): Export.
11449 * objc-act.h (objc_printable_name): New.
11450 * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
11452 2002-03-19 Jim Blandy <jimb@redhat.com>
11454 * c-lex.c (cb_file_change): Pass the #inclusion's line number to
11455 the start_source_file debug hook, not the current line number.
11457 2002-03-19 Richard Henderson <rth@redhat.com>
11459 * flow.c (EH_USES): Provide default.
11460 (calculate_global_regs_live): Use it for EH edges and noreturn calls.
11461 * doc/tm.texi (EH_USES): New.
11463 * config/ia64/ia64.c (ia64_eh_uses): New.
11464 * config/ia64/ia64-protos.h: Update.
11465 * config/ia64/ia64.h (EH_USES): New.
11467 2002-03-19 Richard Henderson <rth@redhat.com>
11469 * varasm.c (output_constant_def): Fix stupid typo.
11471 2002-03-19 Richard Henderson <rth@redhat.com>
11474 * except.c (current_function_has_exception_handlers): New.
11475 * except.h: Declare it.
11476 * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
11477 Combine tests that disable all sibcalls for the function.
11479 2002-03-19 Olivier Hainque <hainque@act-europe.fr>
11481 * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
11484 2002-03-19 Richard Henderson <rth@redhat.com>
11487 * config/ia64/ia64.c: Revert 2002-03-01 patch.
11488 * config/ia64/ia64.h (INIT_EXPANDERS): New.
11490 2002-03-19 Jim Blandy <jimb@redhat.com>
11492 * cppmacro.c (cpp_macro_definition): Emit a space after the macro
11493 name, even if the replacement list contains no tokens, as required
11496 2002-03-19 Jason Merrill <jason@redhat.com>
11498 * varasm.c (globalize_decl): Get the name from the RTL, not
11499 DECL_ASSEMBLER_NAME.
11501 * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
11503 2002-03-19 Bob Wilson <bob.wilson@acm.org>
11505 * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
11506 subdi_carry): Define.
11508 2002-03-19 David Edelsohn <edelsohn@gnu.org>
11510 * config/rs6000/rs6000.c (rs6000_override_options): Only warn
11511 about -fpic/-fPIC if extra_warnings set.
11513 2002-03-19 David Edelsohn <edelsohn@gnu.org>
11515 * expr.c (expand_expr): Sign-extend CONST_INT generated from
11516 TREE_STRING_POINTER.
11517 * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
11519 Tue Mar 19 14:12:32 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11521 * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
11522 in favor of SP if FRAME_POINTER_REQUIRED is false.
11524 2002-03-19 Lars Brinkhoff <lars@nocrew.org>
11526 * emit-rtl.c (gen_int_mode): New function.
11527 * rtl.h: Prototype for it.
11528 * combine.c (make_extraction, simplify_comparison), expmed.c
11529 (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
11530 (convert_modes, store_field), optabs.c (expand_fix),
11531 simplify-rtx.c (neg_const_int, simplify_unary_real),
11533 * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
11534 Use it instead of GEN_INT (trunc_int_for_mode (...)).
11536 2002-03-19 Jakub Jelinek <jakub@redhat.com>
11539 * langhooks.h (struct lang_hooks_for_tree_inlining): Add
11540 convert_parm_for_inlining.
11541 * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
11543 * langhooks-def.h: Likewise.
11544 * objc/objc-lang.c: Likewise.
11545 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
11547 * tree-inline.c (initialize_inlined_parameters):
11548 Call convert_parm_for_inlining lang hook if needed.
11549 * c-typeck.c (c_convert_parm_for_inlining): New function.
11550 * c-tree.h (c_convert_parm_for_inlining): Add prototype.
11552 2002-03-18 Mark Mitchell <mark@codesourcery.com>
11554 * calls.c (precompute_arguments): Do not assume that temporaries
11555 can be destroyed after expanding the argument.
11556 (expand_call): Likewise.
11558 2002-03-15 Eric Christopher <echristo@redhat.com>
11560 * config/mips/mips.md (movdf_internal2): Add two new move constraints.
11561 Fix register preference on last change.
11562 * config/mips/mips.c (mips_return_in_memory): New function.
11563 * config/mips/mips.h (RETURN_IN_MEMORY): Use.
11564 * config/mips/mips-protos.h: Declare.
11565 * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
11566 * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
11568 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
11570 * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
11572 (anddi3, iorsi3): Likewise.
11574 * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
11575 use %gprel for symbols that are going to be placed in linkonce
11578 * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
11579 RETURN_ADDRESS_POINTER_REGNUM to $ra.
11580 (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
11581 not needed. Disregard leaf_function_p().
11582 (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
11583 mips16 frame pointer.
11584 * config/mips/mips.md (store ra): Only to small SP offsets.
11585 2001-08-22 Graham Stott <grahams@redhat.com>
11586 * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
11587 return a REG rtx for the return address register.
11589 2002-03-18 Bob Wilson <bob.wilson@acm.org>
11591 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
11592 constant-pool addresses as "mode-dependent".
11593 (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
11595 2002-03-18 Jakub Jelinek <jakub@redhat.com>
11598 * expr.c (emit_group_load): Use extract_bit_field if
11599 needed for CONCAT arguments.
11601 2002-03-18 Richard Earnshaw <rearnsha@arm.com>
11604 * arm.md (tablejump): Make this a define_expand. For PIC add the
11605 offset to the base of the table.
11606 (thumb_tablejump): Matcher for Thumb tablejump insn.
11607 * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
11608 as the difference of two labels.
11609 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
11610 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
11611 tables in the code.
11612 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
11613 * arm.c (get_jump_table_size): If the table is not in the text
11614 section, return zero.
11616 2002-03-18 Bernd Schmidt <bernds@redhat.com>
11618 * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
11620 (arm_reload_out_hi): Use gen_lowpart instead of
11621 gen_rtx_SUBREG to access QImode components.
11622 * config/arm/arm.md: Disable zero_extend split for QImode
11623 subregs in BIG_ENDIAN mode.
11624 (storehi_bigend): Match use of least significant byte.
11625 (storeinthi): Remove extraneous SUBREG.
11626 Add missing construction of operands[2].
11627 (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
11628 (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
11629 Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
11631 2002-03-18 Aldy Hernandez <aldyh@redhat.com>
11633 * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
11636 2002-03-17 Richard Henderson <rth@redhat.com>
11638 * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
11641 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
11643 * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
11644 (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
11646 2002-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11648 * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
11650 * predict.c (estimate_bb_frequencies): Delete unused variables.
11652 2002-03-17 Richard Henderson <rth@redhat.com>
11654 * config/ia64/ia64.c (ia64_attribute_table): Move before
11655 targetm definition. Make static.
11657 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
11659 * c-common.h (yyparse, c_common_parse_file): New.
11660 * c-lang.c: Include c-common.h.
11661 (LANG_HOOKS_PARSE_FILE): Redefine.
11662 * c-lex.c: Include c-common.h.
11663 (yyparse): Rename c_common_parse_file. Call yyparse.
11664 * c-parse.in (yyparse): Remove macro.
11665 * c-tree.h (yyparse_1): Remove.
11666 * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
11667 (LANG_HOOKS_INITIALIZER): Update.
11668 * langhooks.h (struct lang_hoooks): New hook parse_file.
11669 * toplev.c (compile_file): Use parse_file hook.
11670 * tree.h (yyparse): Remove.
11671 * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
11673 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
11675 * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
11676 float_truncate, not fix.
11677 ("*truncdfsf2_real"): Ditto.
11678 ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
11680 * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
11682 2002-03-16 Alexandre Oliva <aoliva@redhat.com>
11684 * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
11685 (s8), but rather HARD_FRAME_POINTER_REGNUM. Add parentheses
11686 where appropriate. Make the second reference to
11687 leaf_function_p a function call, as intended. Reindented.
11689 * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
11690 * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
11692 * config/mips/mips.md (addsi3, adddi3): Use scratch register to
11693 add register to non-constant into sp.
11695 * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
11696 * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
11697 (mips16_gp_pseudo_rtx): Lose.
11698 (INIT_EXPANDERS): Deleted.
11699 * config/mips/mips.c (mips_init_machine_status): New.
11700 (mips_free_machine_status): New.
11701 (mips_mark_machine_status): New.
11702 (override_options): Set them.
11703 (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
11704 (struct machine_function): ... new. Replaced all references.
11705 (mips_add_gc_roots): Don't mark them.
11706 (embedded_pic_fnaddr_reg): New, extracted from...
11707 (embedded_pic_offset): ... here.
11708 * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
11711 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
11713 * cppinit.c: Revert -MD removal.
11715 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11717 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
11718 soft registers by default for 68HC12.
11719 (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
11720 when compiling with -fomit-frame-pointer.
11721 (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
11722 (expand_epilogue): Likewise.
11723 (m68hc11_gen_rotate): Use exg when rotating by 8.
11725 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11727 * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
11728 * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
11729 (splits): Remove unused add splits.
11730 ("*addhi3_68hc12"): Tune constraints.
11731 ("addhi_sp"): Try to use X instead of Y in all cases and if the
11732 constant fits in 8-bits and D is dead use abx/aby instructions.
11733 ("*addhi3"): Remove extern declaration of ix_reg.
11734 ("*subsi3"): Optimize and provide new split.
11735 ("subhi3"): Cleanup.
11736 ("*subhi3_sp"): Avoid saving X if we know it is dead.
11737 (arith splits): For 68hc12 save the address register on the stack
11738 and do the arithmetic operation with a pop.
11740 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11742 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
11743 allocating QImode in address registers.
11744 ("*movqi_m68hc11"): Likewise.
11746 Sat Mar 16 12:57:28 CET 2002 Jan HUbicka <jh@suse.cz>
11748 * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
11750 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
11752 * cppinit.c (print_help): Display -MD and -MMD.
11753 Don't display usage string. Update assertion syntax and
11755 (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
11756 (cpp_handle_option): Update.
11758 2002-03-15 Chris Demetriou <cgd@broadcom.com>
11760 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
11761 MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
11762 and define it so that regardless of target CPU size,
11763 __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
11764 of "int" rather than "long."
11766 2002-03-15 Richard Henderson <rth@redhat.com>
11768 * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
11771 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11773 * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
11774 ("tstqi" split): Avoid using memory for tstqi on address register.
11775 (splits): Remove constraints.
11776 ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
11777 ("cmpdf", "cmpsf"): Remove since not used.
11778 ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
11779 (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
11781 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11783 * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
11784 ("neghi2"): Tighten constraints.
11785 ("one_cmplsi2"): Optimize and simplify split.
11786 * config/m68hc11/larith.asm (__negsi2): Likewise for library.
11788 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11790 * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
11791 and split of AND operation to clear the upper bits.
11792 ("*logicalsi3_zextqi"): Likewise.
11793 ("*logicallhi3_zexthi_ashift8"): Likewise.
11794 ("*logicalsi3_silshr16"): Likewise.
11795 ("logicalsi3_silshl16"): Likewise.
11796 ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
11798 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11800 * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
11801 (m68hc11_indirect_p): New function.
11802 (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
11803 (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
11805 (asm_print_register): Likewise.
11806 * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
11807 (m68hc11_indirect_p): Declare.
11808 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
11809 (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
11810 (TARGET_SWITCHES): New option -mrelax.
11811 * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
11813 ("iorsi3", "xorsi3"): Likewise.
11814 ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
11815 ("*andhi3_mem"): New to handle destination in memory with bclr
11816 and a scratch register.
11817 ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
11818 ("*andhi3_const"): New when operand2 is constant.
11819 ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
11820 ("*andhi3_gen"): Cleanup of the old "andhi3".
11821 ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
11822 ("xorqi3"): Update constraints.
11824 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11826 * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
11827 for reg_equiv_memory_loc when the operand is a register that does
11828 not get a hard register (stack location).
11829 (tst_operand): After reload, accept all memory operand.
11830 (symbolic_memory_operand): Fix detection of symbolic references.
11831 * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
11832 accept symbols and any constant.
11834 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11836 * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
11837 note on the insn that sets the soft frame register.
11838 (must_parenthesize): ix and iy are also reserved names.
11839 (print_operand_address): One more place where parenthesis are required
11840 to avoid confusion with register names.
11841 (m68hc11_gen_movhi): Allow push of stack pointer.
11842 (m68hc11_check_z_replacement): Fix handling of parallel with a
11844 (m68hc11_z_replacement): Must update the REG_INC notes to tell what
11845 the replacement register is.
11846 * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
11847 and D8_REGS classes.
11848 (MODES_TIEABLE_P): All modes are tieable except QImode.
11850 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11852 * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
11853 (___subdi3): Likewise.
11854 (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
11855 (__map_data_section): Optimize 68hc11 case.
11857 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11859 * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
11860 than a shift to avoid adding a register with itself.
11861 (m68hc11_memory_move_cost): Take into account NO_REGS.
11862 (m68hc11_register_move_cost): Update and use memory move cost
11863 for soft registers.
11864 (m68hc11_address_cost): Make cost of valid offset not 0 so that
11865 it gives more opportunities to cse to optimize.
11866 * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
11867 * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
11869 2002-03-15 Mark Mitchell <mark@codesourcery.com>
11871 * c-common.c (statement_code_p): Handle CLEANUP_STMT.
11872 * c-common.def (CLEANUP_STMT): New tree node.
11873 * c-common.h (CLEANUP_DECL): New macro.
11874 (CLEANUP_EXPR): Likewise.
11875 * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
11876 * expr.c (expand_expr): Tidy.
11877 * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
11878 * tree-inline.c (initialize_inlined_parameters): Clean up
11879 new local variables.
11881 2002-03-15 Jakub Jelinek <jakub@redhat.com>
11884 * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
11885 before movrXX only, use reg_overlap_mentioned_p.
11886 Only special case NE if just one insn can be generated.
11888 2002-03-15 Jason Merrill <jason@redhat.com>
11890 * varasm.c (assemble_variable): Call resolve_unique_section before
11891 checking DECL_SECTION_NAME. Use zeros for a decl with DECL_INITIAL
11892 of error_mark_node.
11894 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
11897 * arm.md (split pattern for thumb shiftable immediates): Add comment
11898 explaining non-obvious test.
11900 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
11903 * arm.md (movaddr, movaddr_insn): Delete.
11905 2002-03-15 Jason Merrill <jason@redhat.com>
11907 * toplev.c (wrapup_global_declarations): Clarify variable handling.
11908 -fkeep-static-consts doesn't apply to comdats.
11910 2002-03-14 Richard Henderson <rth@redhat.com>
11912 * c-decl.c: Include c-pragma.h.
11913 (start_decl, start_function): Invoke maybe_apply_pragma_weak.
11914 (finish_function): Tidy.
11915 * c-pragma.c: Include c-common.h.
11916 (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
11917 (handle_pragma_weak): Use them.
11918 (init_pragma): Register pending_weaks.
11919 * c-pragma.h (maybe_apply_pragma_weak): Declare.
11920 * print-tree.c (print_node): Print DECL_WEAK.
11921 * varasm.c (mark_weak_decls): Remove.
11922 (remove_from_pending_weak_list): Remove.
11923 (add_weak): Remove.
11924 (asm_emit_uninitialised): Call globalize_decl for weak commons.
11925 (weak_decls): Make a tree_list.
11926 (declare_weak): Cons weak_decls directly.
11927 (globalize_decl): Remove weak_decls elements directly.
11928 (weak_finish): Simplify weak_decls walk. Don't weaken unused
11929 symbols. Don't pretend to handle aliases.
11930 (init_varasm_once): Update weak_decls registry.
11931 * Makefile.in: Update dependencies.
11933 2002-03-14 Richard Henderson <rth@redhat.com>
11936 * config/ia64/ia64.c: Include tm_p.h last.
11937 (gen_nop_type): Remove duplicate definition.
11938 (cycle_end_fill_slots): Set sched_data for second L slot.
11939 (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
11940 (nop_cycles_until): Fix typos.
11942 2002-03-15 Jakub Jelinek <jakub@redhat.com>
11944 PR optimization/5891
11945 * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
11947 2002-03-14 David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
11949 * config/ia64/unwind-ia64.c: Handle copy_state and label_state
11950 descriptors correctly.
11952 2002-03-14 Michael Meissner <meissner@redhat.com>
11954 * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
11955 100, allowing MAX_UNROLLED_INSNS to be overridden.
11957 * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
11960 * unroll.c (params.h): Include.
11961 (MAX_UNROLLED_INSNS): Delete, now in params.h.
11963 * doc/invoke.texi (--param max-unroll-insns): Document.
11965 * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
11967 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
11969 * arm.md: Fix warnings about constraints in peepholes and splits.
11971 2002-03-14 Zack Weinberg <zack@codesourcery.com>
11973 * cpphash.h (struct lexer_state): Remove line_extension member.
11974 * cpplib.c (dequote_string, do_linemarker): New functions.
11975 (linemarker_dir): New data object.
11976 (DIRECTIVE_TABLE): No longer need to interpret #line in
11977 preprocessed source. Delete obsolete comment about return
11978 values of handlers.
11979 (end_directive, directive_diagnostics, _cpp_handle_directive):
11980 Don't muck with line_extension.
11981 (directive_diagnostics): No need to issue warnings for
11983 (_cpp_handle_directive): Issue warnings for linemarkers here,
11984 when appropriate. Dispatch linemarkers to do_linemarker, not
11986 (do_line): Code to handle linemarkers split out to do_linemarker.
11987 Convert escape sequences in filename argument, both places.
11989 * cppmacro.c (quote_string): Rename cpp_quote_string and
11990 export. All callers changed.
11991 * cpplib.h (cpp_quote_string): Prototype.
11992 * cppmain.c (print_line): Call cpp_quote_string on to_file
11993 before printing it.
11995 * doc/cpp.texi: Document that escapes are now interpreted in
11996 #line and in linemarkers, and that non-printing characters are
11997 converted to octal escapes when linemarkers are generated.
11999 Thu Mar 14 19:04:29 CET 2002 Jan Hubicka <jh@suse.cz>
12001 * emit-rtl.c (try_split): Use delete_insns.
12002 * recog.c (split_all_insns): Fix terminating condition.
12004 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
12005 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
12008 * arm.c (arm_output_epilogue): Fix floating-point register save
12009 adjustment when using a frame pointer.
12011 2002-03-14 Richard Sandiford <rsandifo@redhat.com>
12013 * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
12014 * config/mips/mips.c (compute_frame_size): Retrofit them here.
12015 (save_restore_insns, mips_expand_epilogue): And here.
12016 (build_mips16_call_stub): And here.
12017 (mips_function_value): Use the new macros to decide whether a single
12018 or complex float can be returned in floating-point registers. Return
12019 a parallel rtx in the complex case.
12021 Thu Mar 14 11:03:12 CET 2002 Jan Hubicka <jh@suse.cz>
12023 * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
12024 call after liveness analysis.
12026 * recog.c (split_insn): Use delete_insn_and_edges.
12028 * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
12029 instructions to have branch prediction notes.
12030 * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
12032 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
12034 * configure.in: Don't pass -Wno-long-long to a ADA compiler
12035 that doesn't support it.
12036 * configure: Regenerate.
12038 2002-03-13 Jakub Jelinek <jakub@redhat.com>
12041 * config/sparc/sparc.md (normal_branch, inverted_branch,
12042 normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
12043 inverted_fp_branch): Adjust calls to output_cbranch.
12044 Set length attribute.
12045 (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
12046 output_v9branch. Set length attribute.
12047 * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
12049 (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
12050 (output_cbranch): Likewise. Handle far branches.
12051 (output_v9branch): Handle far branches.
12052 * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
12054 * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
12055 noov_compare64_op predicates.
12057 2002-03-13 Jason Merrill <jason@redhat.com>
12059 * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
12060 into the function and constify it.
12061 * gthr-dce.h, gthr-solaris.h: Likewise.
12063 2002-03-13 David Edelsohn <edelsohn@gnu.org>
12065 * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
12066 * config/rs6000/rs6000.c (rs6000_va_arg): Use
12067 std_expand_builtin_va_arg if not ABI_V4.
12069 2002-03-13 Jason Merrill <jason@redhat.com>
12071 * varasm.c (globalize_decl): New fn.
12072 (assemble_start_function): Use it.
12073 (asm_emit_uninitialized): Use it.
12074 (assemble_alias): Use it.
12075 (assemble_variable): Use it.
12077 2002-03-13 Hans-Peter Nilsson <hp@axis.com>
12079 * config/cris/cris.c (cris_target_asm_function_prologue): Revert
12080 2002-03-12 internal visibility change.
12081 (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
12082 visibility into SYMBOL_REF_FLAG.
12084 2002-03-13 Ulrich Weigand <uweigand@de.ibm.com>
12086 * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
12087 VOIDmode operand. Add compile-time optimization for constant results.
12089 2002-03-12 Jason Merrill <jason@redhat.com>
12091 * c-typeck.c (convert_for_assignment): Don't allow conversions
12092 between pointers and references. Only allow lvalues to convert to
12095 2002-03-13 Hartmut Penner <hpenner@de.ibm.com>
12097 * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
12098 before prologue, to avoid scheduling problems.
12100 2002-03-13 Jakub Jelinek <jakub@redhat.com>
12102 * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
12103 (ELIMINABLE_REGS): Add sfp->sp.
12104 (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
12106 2002-03-13 Jakub Jelinek <jakub@redhat.com>
12108 PR optimization/5892
12109 * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
12111 2002-03-13 Jakub Jelinek <jakub@redhat.com>
12113 * loop.c (basic_induction_var): Don't call convert_modes if mode
12114 classes are different.
12116 2002-03-12 Richard Henderson <rth@redhat.com>
12118 PR optimization/5901
12119 * function.c (reposition_prologue_and_epilogue_notes): Position
12120 the markers after/before the last/first insn not deleted.
12122 2002-03-12 Richard Henderson <rth@redhat.com>
12124 PR optimization/5878
12125 * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
12126 config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
12127 (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
12129 * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
12130 config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
12131 PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
12133 * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
12134 * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
12135 (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
12136 also. Don't set it if not flag_pic.
12137 * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
12138 to be INVALID_REGNUM when not used.
12140 2002-03-13 Aldy Hernandez <aldyh@redhat.com>
12142 * expmed.c (store_bit_field): Reset alias set for memory.
12143 (extract_bit_field): Same.
12145 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12147 * c-common.c (c_tree_code_type, c_tree_code_length,
12148 c_tree_code_name, add_c_tree_codes): Delete.
12149 * c-common.h (add_c_tree_codes): Delete.
12150 * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
12152 * c-objc-common.c (c_objc_common_init): Don't call
12153 add_c_tree_codes, instead set lang_unsafe_for_reeval.
12154 * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
12155 objc_tree_code_name, add_objc_tree_codes): Delete.
12156 (objc_init): Don't call add_objc_tree_codes.
12157 * objc/objc-lang.c (tree_code_type, tree_code_length,
12158 tree_code_name): Define.
12159 * toplev.c (lang_independent_init): Don't set
12160 tree_code_length[IDENTIFIER_NODE].
12161 * tree.c (tree_code_type, tree_code_length, tree_code_name):
12162 Delete definitions, moved to language front-ends.
12163 * tree.def (IDENTIFIER_NODE): Hardwire the length.
12164 * tree.h (tree_code_type, tree_code_length, tree_code_name):
12166 (tree_code_length): Change type to unsigned char.
12168 2002-03-12 Richard Henderson <rth@redhat.com>
12170 * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
12171 internal visibility change.
12173 2002-03-12 Bob Wilson <bob.wilson@acm.org>
12175 * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
12176 validize_mem() instead of change_address to avoid clobbering
12179 2002-03-12 Neil Booth <neil@daikokuya.demon.co.uk>
12181 * c-lex.h (position_after_whitespace): Remove.
12183 2002-03-12 Jakub Jelinek <jakub@redhat.com>
12185 * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
12186 (lex_string): Use unsigned char pointers.
12188 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
12190 * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
12191 is not a valid memory_operand.
12193 2002-03-12 Bob Wilson <bob.wilson@acm.org>
12195 * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
12196 * config/xtensa/lib1funcs.asm: Fix copyright to include
12197 special case for libgcc files.
12198 (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
12199 (__divsi3): Likewise.
12200 (__umodsi3): Likewise.
12201 (__modsi3): Likewise.
12202 * config/xtensa/lib2funcs.S: Fix copyright to include
12203 special case for libgcc files.
12205 2002-03-12 Tom Rix <trix@redhat.com>
12207 * collect2.c (resolve_lib_name): Move outside of
12208 OBJECT_FORMAT_COFF ifdef.
12209 (ignore_library): Same.
12211 2002-03-12 Bob Wilson <bob.wilson@acm.org>
12213 * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
12215 2002-03-12 Bob Wilson <bob.wilson@acm.org>
12217 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
12218 to function_section before writing out the constant pool.
12220 2002-03-12 David Edelsohn <edelsohn@gnu.org>
12222 * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
12224 * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
12226 2002-03-12 Alan Modra <amodra@bigpond.net.au>
12228 * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
12229 (adddi3): Likewise.
12232 (cmpsi splitter): Likewise.
12233 (modsi3): Fail if <= 0.
12234 * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
12235 redundant test when HOST_BITS_PER_WIDE_INT != 32.
12236 (reg_or_sub_cint64_operand): Likewise.
12237 (num_insns_constant_wide): Optimize sign extension.
12238 (rs6000_legitimize_address): Likewise.
12240 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
12242 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
12243 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
12245 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
12247 * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
12248 address calculation.
12250 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
12252 * config/s390/s390.md (reload_insi, reload_indi): Change mode of
12253 scratch register to DImode / TImode.
12254 config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
12255 register used does not overlap the target.
12257 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12259 * Makefile.in (debug.o): Depend on debug.h.
12260 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
12261 * debug.c (do_nothing_debug_hooks): Likewise.
12262 * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
12263 sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
12264 dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
12265 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
12266 * dwarfout.c (dwarf_debug_hooks): Likewise.
12267 * integrate.c (output_inline_function): Likewise.
12268 * objc/objc-act.c (synth_module_prologue): Likewise.
12269 * sdbout.c (sdb_debug_hooks): Likewise.
12270 * toplev.c (debug_hooks): Likewise.
12271 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
12273 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12275 * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
12276 dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
12277 m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
12278 ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
12279 v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
12280 * defaults.h (POINTER_SIZE): Define.
12281 * doc/tm.texi (POINTER_SIZE): Document default.
12283 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12285 * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
12287 2002-03-11 Richard Henderson <rth@redhat.com>
12289 * toplev.c (rest_of_compilation): Call purge_all_dead_edges
12290 if rebuild_label_notes_after_reload.
12292 2002-03-12 Hans-Peter Nilsson <hp@axis.com>
12294 * config/cris/cris.c (cris_target_asm_function_prologue): Do not
12295 emit pic register load if "internal" visibility.
12296 (cris_print_operand): Avoid traditional-warning for 0xffffffff.
12297 (cris_expand_builtin_va_arg): Do all computations on trees.
12299 2002-03-11 Richard Henderson <rth@redhat.com>
12301 * rtlanal.c: Include recog.h.
12302 (keep_with_call_p): Fix thinko.
12303 * Makefile.in (rtlanal.o): Update dependencies.
12305 2002-03-11 Chris Meyer <cmeyer@gatan.com>
12307 * genflags.c (gen_insn): Use IS_VSPACE.
12308 * genoutput.c (output_insn_data): Likewise.
12309 (process_template): Likewise.
12311 2002-03-11 Richard Henderson <rth@redhat.com>
12313 * toplev.c (rest_of_compilation): Don't compile if we've had errors.
12315 2002-03-11 Neil Booth <neil@daikokuya.demon.co.uk>
12317 * Makefile.in: Update.
12318 * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
12319 Update documentation.
12320 * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
12321 * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
12323 2002-03-11 Zack Weinberg <zack@codesourcery.com>
12325 * Makefile.in: Give texi2pod its input file as a command line
12326 argument, not on stdin.
12328 2002-03-11 Dan Nicolaescu <dann@ics.uci.edu>
12329 Daniel Berlin <dan@dberlin.org>
12331 C++ alias analysis improvement.
12332 * alias.c (record_component_aliases): Record aliases for base
12335 2002-03-11 Ulrich Weigand <uweigand@de.ibm.com>
12337 * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
12339 2002-03-11 Douglas B Rupp <rupp@gnat.com>
12341 * toplev.c (vms_fopen): Remove, not needed.
12343 * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
12345 * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
12347 * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
12348 for FP, already done later.
12350 * toplev.c (debug_args): Add entry for VMS_DEBUG.
12351 * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
12353 2002-03-11 Richard Sandiford <rsandifo@redhat.com>
12355 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
12356 (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
12357 LARGEST_EXPONENT_IS_NORMAL for the given mode.
12358 (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
12359 * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
12360 (ediv, emul, eldexp, esqrt): Likewise.
12361 (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
12362 (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
12363 (saturate): New function.
12364 (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
12365 (make_nan): Use a saturation value instead of a NaN if
12366 LARGEST_EXPONENT_IS_NORMAL. Warn when this happens.
12367 * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
12368 inputs if LARGEST_EXPONENT_IS_NORMAL. Represent subnormals as
12369 zero if NO_DENORMALS. Only round to nearest if !ROUND_TOWARDS_ZERO.
12370 (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
12371 (_fpmul_parts, _fpdiv_parts): Only round to nearest if
12372 !ROUND_TOWARDS_ZERO.
12373 * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
12374 (ROUND_TOWARDS_ZERO): Document.
12376 2002-03-11 Andreas Jaeger <aj@suse.de>
12378 * cfg.c (dump_flow_info): Remove unused variable.
12380 2002-03-11 Hans-Peter Nilsson <hp@bitrange.com>
12382 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
12383 computations on trees.
12385 2002-03-10 Richard Henderson <rth@redhat.com>
12388 * reload.c (copy_replacements_1): New.
12389 (copy_replacements): Use it to recurse through the rtx.
12391 2002-03-10 Richard Henderson <rth@redhat.com>
12393 * loop.c (strength_reduce): Compute number of iterations as
12394 unsigned HOST_WIDE_INT.
12396 2002-03-10 Richard Henderson <rth@redhat.com>
12398 * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
12399 to move away from the end of the block.
12401 2002-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
12403 PR preprocessor/5899
12404 * cppinit.c (init_dependency_output): Don't ignore -dM etc.
12406 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12408 * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
12410 * attribs.c (decl_attributes): Fix signed/unsigned warning.
12412 2002-03-10 Hans-Peter Nilsson <hp@bitrange.com>
12414 * config/mmix/mmix.c: Improve comments.
12415 (mmix_target_asm_function_prologue): Drop variable
12416 empty_stack_frame. Don't allocate unused slot above fp.
12417 (mmix_target_asm_function_epilogue): Mirror prologue changes.
12418 * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
12419 brace in first column.
12420 (enum reg_class): Ditto.
12421 (FIRST_PARM_OFFSET): Now 0.
12422 (USER_LABEL_PREFIX): Remove #if 0:d definition.
12424 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12426 * combine.c (make_extraction): Fix error in last change.
12428 2002-03-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12430 * c4x.c (c4x_fp_reglist): Const-ify.
12431 * cris.c (cris_print_operand): Likewise.
12432 * i386.c (ix86_va_arg): Likewise.
12433 * ia64/unwind-ia64.c (unw_decode_table): Likewise.
12434 * m32r.c (m32r_hard_regno_mode_ok): Likewise.
12435 * m32r.h (m32r_hard_regno_mode_ok): Likewise.
12436 * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
12437 * mcore.h (regno_reg_class): Likewise.
12438 * mips.c (gen_int_relational): Likewise.
12439 * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
12440 * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
12441 * pdp11.c (move_costs): Likewise.
12442 * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
12443 * s390.c (s390_branch_condition_mnemonic, regclass_map):
12445 * s390.h (regclass_map): Likewise.
12446 * sh.c (shift_amounts): Likewise.
12447 * sh.md (rotlsi3): Likewise.
12449 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
12451 * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
12452 (ne0+5): Use new clobber to generate proper shift pattern.
12453 Patch by Michael Matz <matz@kde.org>.
12455 2002-03-09 Andreas Schwab <schwab@suse.de>
12457 * gcc.c (validate_all_switches): Also handle `%W{...}'.
12459 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
12461 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
12463 2002-03-09 Jakub Jelinek <jakub@redhat.com>
12466 * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
12467 even for non-representable constants.
12469 Sat Mar 9 07:20:01 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12471 * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
12472 * function.c (fixup_var_refs): Add MAY_SHARE parameter.
12473 (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
12474 (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
12475 (pop_function_context): Compute MAY_SHARE parameter for
12477 (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
12478 (gen_mem_addressof): Call fixup_var_refs with new parm.
12480 * combine.c (make_extraction): Don't make extension of CONST_INT.
12482 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
12484 * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
12485 in o32 and o64 ABIs.
12486 * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
12487 but getting fixed-size structs passed in registers regardless of
12488 padding in o32 and o64 ABIs.
12490 * config/mips/mips.c (mips_va_arg): Apply big-endianness address
12491 offset before loading address of argument passed by transparent
12494 2002-03-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
12496 * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
12498 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
12500 * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
12501 marker such that registers after it are saved.
12503 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12505 * sparc.c (arith_4096_operand): Fix error in last change.
12507 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
12509 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
12510 defaults for MEABI.
12512 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
12514 * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
12517 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
12519 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
12521 Fri Mar 8 21:27:49 CET 2002 Jan Hubicka <jh@suse.cz>
12523 * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
12524 removed; fix return value.
12525 * combine.c (combine_instructions): Dirtify blocks where we failed to
12526 update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
12527 * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
12529 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12531 * gcse.c (insert_insn_end_bb): Fix typo in last change.
12533 Fri Mar 8 21:08:52 CET 2002 Jan Hubicka <jh@suse.cz>
12535 * recog.c (peephole2_optimize): Re-distribute EH edges.
12537 2002-03-08 Neil Booth <neil@daikokuya.demon.co.uk>
12539 * expr.c (expand_expr): Use unsave lang hook.
12540 * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
12541 (LANG_HOOKS_INITIALIZER): Update.
12542 * langhooks.h (struct lang_hooks): New hook unsave.
12543 * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
12544 (unsave_expr_1): Remove unused lang_unsave_expr_now.
12545 (unsave_expr_now_r): Rename lhd_unsave. Update. Return input.
12546 (unsave_expr_now): Remove.
12547 * tree.h (unsave_expr_now, lang_unsave,
12548 lang_unsave_expr_now): Remove.
12551 2002-03-08 Andreas Jaeger <aj@suse.de>
12553 * flow.c (propagate_block_delete_insn): Remove unused variable.
12555 2002-03-08 Kazu Hirata <kazu@hxi.com>
12557 * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
12558 insn length for memory load/store.
12560 2002-03-08 Craig Rodrigues <rodrigc@gcc.gnu.org>
12562 * doc/install.texi (--with-libiconv-prefix): Document.
12564 2002-03-08 Michael Y. Brukman <myb2@cornell.edu>
12566 * doc/sourcebuild.texi: Fix typo.
12568 2002-03-08 Jakub Jelinek <jakub@redhat.com>
12571 * builtins.c (std_expand_builtin_va_arg): Do all computations on
12574 Fri Mar 8 06:48:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12576 * rtl.c (copy_most_rtx): Move from here ...
12577 * emit-rtl.c (copy_most_rtx): ... to here.
12579 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
12581 * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
12582 SUBTARGET_CPP_SIZE_SPEC.
12583 * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
12585 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
12587 2002-03-07 Matt Hiller <hiller@redhat.com>
12589 * gensupport.c (first_dir_md_include): Renamed from include;
12590 change all references.
12591 (last_dir_md_include): Renamed from last_include; change all
12593 (init_md_reader): Unconditionally initialize base_dir whether or
12594 not filename is a relative path.
12596 2002-03-07 Alexandre Oliva <aoliva@redhat.com>
12598 * config/fp-bit.c (_unord_f2): Compile it in even if
12599 US_SOFTWARE_GOFAST is enabled.
12601 * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
12602 NULL_RTX. Set all HFmode operations as NULL_RTX.
12603 * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
12604 NULL_RTX, try reversing the comparison and the operands.
12606 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
12608 * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
12609 genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
12612 Thu Mar 7 16:54:10 CET 2002 Jan Hubicka <jh@suse.cz>
12614 * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
12616 Thu Mar 7 16:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
12618 * basic-block.h (fixup_abnormal_edges): Declare.
12619 * reload1.c (fixup_abnormal_edges): New function.
12620 * reg-stack.c (convert_regs): Use it.
12622 * gcse.c (insert_insn_end_bb): Handle trapping insns.
12624 * gcse.c (hash_scan_set): Refuse instructions with EH edges.
12626 2002-03-07 Richard Sandiford <rsandifo@redhat.com>
12628 * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
12629 (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
12630 * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
12631 (HONOR_SIGN_DEPENDENT_ROUNDING): New.
12632 * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
12633 * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
12634 unless x and y could be infinite.
12635 (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
12636 Check that the common type of both arguments is a real, even for
12637 targets without unordered comparisons. Allow an integer argument
12638 to be compared against a real.
12639 (expand_tree_builtin): Use expand_unordered_cmp.
12640 * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
12641 * cse.c (fold_rtx): Likewise. Fix indentation.
12642 * fold-const.c (fold_real_zero_addition_p): New.
12643 (fold): Use it, and the new HONOR_... macros.
12644 * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
12645 * jump.c (reversed_comparison_code_parts): After searching for
12646 the true comparison mode, use HONOR_NANS to decide whether it
12647 can be safely reversed.
12648 (reverse_condition_maybe_unordered): Remove IEEE check.
12649 * simplify-rtx.c (simplify_binary_operation): Use the new macros
12650 to decide which simplifications are valid. Allow the following
12651 simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
12652 and (a - -b) to (a + b).
12653 (simplify_relational_operation): Use HONOR_NANS.
12654 * doc/tm.texi: Document the MODE_HAS_... macros.
12656 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
12658 * combine.c (simplify_comparison): If simplifying a logical shift
12659 right and compare with constant, force the comparison to unsigned.
12661 2002-03-07 Aldy Hernandez <aldyh@redhat.com>
12663 * doc/invoke.texi: Add documentation for -mabi=no-altivec.
12665 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
12667 (alt_reg_names): Remove % for vrsave.
12669 2002-03-06 Richard Henderson <rth@redhat.com>
12671 PR optimization/5844
12672 * genemit.c (gen_exp): New argument used. Invoke copy_rtx
12673 if used indicates we've already emitted one copy of an operand.
12674 (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
12675 (gen_split): Supply a non-null used.
12677 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
12679 * reload1.c (reload): Unshare all rtl after reload is done.
12681 * simplify-rtx.c (simplify_plus_minus): Do not abort,
12682 but simply fail if the expression is too complex to simplify.
12683 (simplify_gen_binary): Handle simplify_plus_minus failures.
12685 Wed Mar 6 20:32:09 CET 2002 Jan Hubicka <jh@suse.cz>
12687 * toplev.c (rest_of_compilation): Do jump threading before SSA path;
12688 consistently call delete_trivially_dead_insns after CSE and GCSE;
12689 fix DFI_life dumping; do jump threading after liveness; do crossjumping
12690 after liveness2; update comment in last crossjumping.
12691 * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
12693 Wed Mar 6 12:27:10 2002 Jeffrey A Law (law@redhat.com)
12695 * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
12696 after completing fast dead code elimination.
12698 * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
12701 2002-03-06 Phil Edwards <pme@gcc.gnu.org>
12703 * version.c: Fix misplaced leading blanks on first line.
12705 Wed Mar 6 19:08:03 CET 2002 Jan Hubicka <jh@suse.cz>
12707 * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
12709 Wed Mar 6 18:14:43 CET 2002 Jan Hubicka <jh@suse.cz>
12711 * cfgcleanup.c (mentions_nonequal_regs): New function.
12712 (thread_jump): Use it.
12713 * toplev.c (rest_of_compilation): Run jump threading after
12716 2002-03-06 Jakub Jelinek <jakub@redhat.com>
12718 * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
12721 Wed Mar 6 11:28:19 CET 2002 Jan Hubicka <jh@suse.cz>
12723 * predict.c (estimate_bb_frequencies): Do not reload the
12724 frequencies from notes.
12726 Wed Mar 6 10:59:39 CET 2002 Jan Hubicka <jh@suse.cz>
12728 * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
12729 * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
12731 * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
12732 delete_noop_moves): Return indeger.
12733 * flow.c (ndead): New variable.
12734 (propagate_block_delete_insn): Use delete_insn_and_edges; remove
12735 BB argument; update callers.
12736 (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
12737 (life_analysis): Do not call purge_all_dead_edges.
12738 (update_life_info): Return number of deleted insns; print statistics.
12739 (update_life_info_in_dirty_blocks): likewise.
12740 (delete_noop_moves): Use delete_insn_and_edges; print statistics;
12741 return number of insns deleted.
12743 * cse.c: Include timevar.h
12744 (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
12745 iterate until stabilizes; print statistics; return number of killed
12747 * Makefile.in: (cse.o): Add timevar.h dependency
12748 * rtl.h (delete_trivially_dead_insns): New.
12749 * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
12750 * toplev.c (rest_of_compilation): Update callers.
12752 * cfgcleanup.c (try_optimize_cfg): Kill blocks.
12753 (try_optimize_cfg): Do not update liveness.
12754 (cleanup-cfg): Loop until try_optimize_cfg and dead code
12755 removal stabilizes; use delete_trivially_dead_insns.
12757 * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
12759 2002-03-05 Zack Weinberg <zack@codesourcery.com>
12761 * cppmain.c (setup_callbacks): Disable #pragma and #ident
12762 callbacks when processing assembly language.
12764 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
12766 * pa.h (ASM_FILE_END): Define.
12767 * som.h (ASM_FILE_END): Delete.
12769 * pa.c (function_arg): Don't pass floats in general registers in
12770 indirect calls if TARGET_ELF32.
12772 2002-03-05 Richard Henderson <rth@redhat.com>
12774 * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
12776 2002-03-05 Danny Smith <dannysmith@users.sourceforge.net>
12778 * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
12780 2002-03-05 Jakub Jelinek <jakub@redhat.com>
12782 * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
12783 -r command line. Don't hide any symbols if not building
12786 Tue Mar 5 18:31:27 CET 2002 Jan Hubicka <jh@suse.cz>
12788 * cfg.c (dump_flow_info): Warn about profile mismatches.
12789 * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
12790 (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
12792 2002-03-05 Jakub Jelinek <jakub@redhat.com>
12794 * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
12795 wide volatile memory by parts.
12797 2002-03-05 Jakub Jelinek <jakub@redhat.com>
12799 * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
12802 2002-03-05 Richard Henderson <rth@redhat.com>
12804 * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
12806 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
12808 * toplev.c (documented_lang_options): Document more
12809 language-specific options.
12810 * doc/invoke.texi (Warning Options): Correct documentation for
12811 -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
12812 * c-decl.c (c_decode_option): Use a table to handle warning options.
12814 2002-03-05 Hans-Peter Nilsson <hp@bitrange.com>
12816 * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
12817 parameter to mmix_encode_section_info.
12818 (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
12819 relocatably. Always produce ELF, not mmo if linking relocatably.
12820 * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
12821 first is non-zero, don't add symbol prefix.
12822 * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
12823 prototype accordingly.
12825 2002-03-04 Krister Walfridsson <cato@df.lth.se>
12827 * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
12829 2002-03-05 Joseph S. Myers <jsm28@cam.ac.uk>
12831 * configure.in: Increase required makeinfo version to 4.1.
12832 * configure: Regenerate.
12834 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
12836 * .cvsignore: Remove *.info* and genrtl*; these files are generated
12839 2002-03-04 Joseph S. Myers <jsm28@cam.ac.uk>
12841 * doc/include/texinfo.tex: Update to version 2002-03-01.06.
12842 * doc/invoke.texi: Fix @math uses.
12844 Mon Mar 4 15:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
12846 * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
12849 2002-03-03 Aldy Hernandez <aldyh@redhat.com>
12851 * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
12852 (powerpc-*-eabisimaltivec*): Same.
12854 * config/rs6000/t-ppcendian: New.
12856 2002-03-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
12858 * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
12859 nonimmediate_src_operand and nonimmediate_lsrc_operand to
12860 disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
12862 2002-03-03 Richard Henderson <rth@redhat.com>
12864 * toplev.c (rest_of_decl_compilation): Revert last two changes.
12866 2002-03-03 Zack Weinberg <zack@codesourcery.com>
12868 * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
12869 print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
12870 tree.c, config/m68k/m68k.c:
12871 Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
12872 REAL_ARITHMETIC blocks unconditional. Delete some further
12873 #ifdef blocks predicated on REAL_ARITHMETIC.
12874 * flags.h, toplev.c: Delete remaining references to
12875 flag_pretend_float.
12877 * doc/invoke.texi: Remove documentation of -fpretend-float.
12878 * doc/tm.texi: Describe the various REAL_* macros as provided by
12879 real.h, not by the target configuration files.
12881 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
12882 config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
12883 config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
12884 config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
12885 config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
12886 config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
12887 config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
12888 config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
12889 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
12890 config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
12891 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
12892 config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
12893 config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
12894 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
12895 config/xtensa/xtensa.h:
12896 Do not define, undefine, or mention in comments any of
12897 REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
12898 REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
12899 REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
12900 REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
12901 REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
12902 REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
12903 REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
12904 REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
12905 REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
12907 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12909 * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
12910 convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
12911 i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
12912 m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
12913 pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
12914 stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
12916 * defaults.h (BITS_PER_WORD): Define.
12917 * doc/tm.texi (BITS_PER_WORD): Document default value.
12919 * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
12920 m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
12921 stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
12923 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12925 * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
12926 lieu of explicit sizeof/sizeof.
12927 * i386.c (override_options, ix86_init_mmx_sse_builtins,
12928 ix86_expand_builtin): Likewise.
12929 * mips.c (mips_add_gc_roots): Likewise.
12930 * mmix.c (mmix_output_condition): Likewise.
12931 * rs6000.c (rs6000_override_options, altivec_expand_builtin,
12932 altivec_init_builtins): Likewise.
12933 * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
12934 * cppexp.c (Nsuff, parse_number): Likewise.
12935 * cppinit.c (builtin_array_end): Likewise.
12936 * gcc.c (n_default_compilers, process_command): Likewise.
12937 * genpreds.c (output_predicate_decls): Likewise.
12938 * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
12939 * lcm.c (N_ENTITIES): Likewise.
12940 * stor-layout.c (set_sizetype): Likewise.
12942 2002-03-03 Richard Henderson <rth@redhat.com>
12944 * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
12945 for types or labels.
12947 2002-03-03 Richard Henderson <rth@redhat.com>
12949 * c-decl.c (start_decl): Initialized variables are not common.
12951 2002-03-02 Per Bothner <per@bothner.com>
12953 * gcc.c (option_map): Suport new --bootclasspath option.
12954 --CLASSPATH is now just an alias for --classpath.
12956 2002-03-02 Richard Henderson <rth@redhat.com>
12958 * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
12959 load if "internal" visibility.
12960 * doc/extend.texi: Document visibility meanings.
12962 2002-03-02 Richard Henderson <rth@redhat.com>
12964 * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
12965 to functions as well.
12967 2002-03-02 Richard Henderson <rth@redhat.com>
12969 * attribs.c (handle_alias_attribute): Don't call assemble_alias.
12970 (handle_visibility_attribute): Don't call assemble_visibility.
12971 * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
12972 without asmspec. Invoke assemble_alias when needed.
12973 * varasm.c (maybe_assemble_visibility): New.
12974 (assemble_start_function, assemble_variable, assemble_alias): Use it.
12976 2002-03-02 Richard Henderson <rth@redhat.com>
12978 * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
12979 invoke ENCODE_SECTION_INFO with first call flag.
12981 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
12982 config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
12983 config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
12984 config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
12985 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
12986 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
12987 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
12988 config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
12989 config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
12990 config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
12991 config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
12992 config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
12993 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
12994 config/m68hc11/m68hc11.h, config/m88k/m88k.h,
12995 config/mcore/mcore-protos.h, config/mcore/mcore.c,
12996 config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
12997 config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
12998 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
12999 config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
13000 config/sh/sh.h, config/sparc/sparc.h,
13001 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
13002 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
13003 config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
13004 FIRST argument. As needed, examine it and do nothing.
13006 * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
13007 config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
13008 config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
13010 * config/arm/t-pe (pe.o): Add dependencies.
13012 2002-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13014 * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
13015 cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
13016 i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
13017 mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
13018 pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
13019 vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
13020 * defaults.h (BITS_PER_UNIT): Define.
13021 * doc/tm.texi (BITS_PER_UNIT): Document default value.
13023 2002-03-02 Kazu Hirata <kazu@hxi.com>
13025 * config/h8300/h8300-protos.h: Add a prototype for
13026 compute_a_shift_length.
13027 * config/h8300/h8300.c (h8300_asm_insn_count): New.
13028 (compute_a_shift_length): Likewise.
13029 (h8300_adjust_insn_length): Do not adjust insn length of shift
13031 * config/h8300/h8300.md (anonymous shift patterns): Use
13032 compute_a_shift_length.
13034 Sat Mar 2 06:30:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13036 * config/sparc/sparc.c (sparc_initialize_trampoline): Use
13037 trunc_int_for_mode.
13039 * emit-rtl.c (offset_address): Call update_temp_slot_address.
13041 2002-03-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13043 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
13044 * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
13045 * flags.h (flag_zero_initialized_in_bss): Declare.
13046 * toplev.c (flag_zero_initialized_in_bss): New flag.
13047 (lang_independent_options): Add flag_zero_initialized_in_bss.
13048 * tree.c (initializer_zerop): New function.
13049 * tree.h (initializer_zerop): Declare.
13050 * varasm.c (assemble_variable): If we can emit bss, put zero
13051 initializers in the bss section.
13053 2002-03-02 Alan Modra <amodra@bigpond.net.au>
13055 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
13056 like more than one symbol per .weak directive.
13058 2002-03-01 Richard Henderson <rth@redhat.com>
13060 * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
13061 adjust argument_pointer by pretend_args_size.
13062 (ia64_va_start): Adjust va_start address by -pretend_args_size.
13064 2002-03-01 Kazu Hirata <kazu@hxi.com>
13066 * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
13068 Fri Mar 1 20:59:14 CET 2002 Jan Hubicka <jh@suse.cz>
13070 * toplev.c (rest_of_compilation): Delete dead jumptables before
13072 * flow.c (delete_dead_jumptables): Make global.
13073 * rtl.h (delete_dead_jumptables): Declare.
13075 2002-03-01 David Edelsohn <edelsohn@gnu.org>
13077 * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
13078 * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
13079 * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
13081 2002-03-01 Kazu Hirata <kazu@hxi.com>
13083 * config/h8300/h8300-protos.h: Fix formatting.
13084 * config/h8300/h8300.c: Likewise.
13085 * config/h8300/h8300.h: Likewise.
13087 2002-03-01 Kazu Hirata <kazu@hxi.com>
13089 * config/h8300/h8300.c (print_operand): Support 16-bit
13090 constant addresses.
13091 * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
13093 2002-02-28 Richard Henderson <rth@redhat.com>
13095 * expmed.c (store_bit_field): Prevent generation of CONCATs;
13096 pun complex values as integers; use gen_lowpart instead of
13098 (extract_bit_field): Likewise.
13100 2002-03-01 Alan Modra <amodra@bigpond.net.au>
13101 David Edelsohn <edelsohn@gnu.org>
13103 * doc/tm.texi (ASM_WEAKEN_DECL): Document.
13104 (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
13105 (SUPPORTS_WEAK): Likewise.
13106 * output.h (add_weak): Add tree param.
13107 * varasm.c (add_weak): Likewise. Save decl.
13108 (struct weak_syms): Add decl field.
13109 (mark_weak_decls): New function.
13110 (init_varasm_once): ggc_add_root mark_weak_decls.
13111 (assemble_start_function): Use ASM_WEAKEN_DECL.
13112 (assemble_variable): Likewise.
13113 (assemble_alias): Likewise.
13114 (declare_weak): Pass decl to add_weak.
13115 (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
13116 (remove_from_pending_weak_list): Declare and define for
13118 * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
13119 * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
13120 * defaults.h (SUPPORTS_WEAK): Likewise.
13121 * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
13122 .weak for code sym. Do emit .size for descriptor sym.
13123 (ASM_DECLARE_FUNCTION_SIZE): Define.
13124 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
13125 (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here. Don't output
13126 .lglobl unless TARGET_XCOFF. Formatting fixes.
13127 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
13128 .weak for code sym.
13129 (HANDLE_PRAGMA_WEAK): Remove.
13130 (ASM_WEAKEN_LABEL): Remove.
13131 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
13133 2002-03-01 Jason Merrill <jason@redhat.com>
13135 * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
13136 (TARGET_EXPR_CLEANUP): New macro.
13138 2002-02-28 Steve Ellcey <sje@cup.hp.com>
13140 * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
13141 to take ptr_extend into account as third type of extension.
13142 (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
13143 fields used by SUBREG_PROMOTED_UNSIGNED_P.
13144 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
13145 (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
13146 * calls.c (precompute_arguments): Use new macro.
13147 (expand_call): Ditto.
13148 * combine.c (nonzero_bits): Ditto.
13149 (record_promoted_value): Ditto.
13150 * expr.c (store_expr): Ditto.
13151 (expand_expr): Ditto.
13152 * function.c (assign_parms): Ditto.
13154 2002-02-28 Alexandre Oliva <aoliva@redhat.com>
13156 * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
13157 override -shared and -shared-libgcc.
13159 2002-02-28 David O'Brien <obrien@FreeBSD.org>
13161 * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
13163 * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS. It appears
13166 2002-02-28 Richard Henderson <rth@redhat.com>
13168 * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
13169 4 cycle latency from MM producers.
13170 (ia64_internal_sched_reorder): Likewise with pipeline flush.
13172 2002-02-28 Jakub Jelinek <jakub@redhat.com>
13174 * mklibgcc.in: Don't use GNU make extension.
13176 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
13178 * c-parse.in (STATIC): New terminal.
13179 (scspec): New non-terminal. Update productions accordingly.
13180 (program): Remove bogus ifc / end ifc.
13181 (array_declarator): Simplify production using STATIC.
13183 2002-02-28 Jim Meyering <meyering@lucent.com>
13185 * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
13186 \a still means TARGET_BELL.
13188 2002-02-28 Richard Henderson <rth@redhat.com>
13190 * haifa-sched.c (sched_emit_insn): New.
13191 (schedule_block): Use last_scheduled_insn to track last insn.
13192 * sched-int.h (sched_emit_insn): Prototype.
13193 * config/ia64/ia64.c (last_issued): Remove.
13194 (ia64_variable_issue): Don't set it.
13195 (nop_cycles_until): Use sched_emit_insn.
13197 2002-02-28 Andrew MacLeod <amacleod@redhat.com>
13199 * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
13200 extended constants.
13202 2002-02-28 Kazu Hirata <kazu@hxi.com>
13204 * config/h8300/h8300.c: Fix formatting.
13205 * config/h8300/h8300.h: Likewise.
13207 2002-02-28 Marek Michalkiewicz <marekm@amelek.gda.pl>
13209 * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
13210 which may overwrite the high byte of the frame pointer.
13212 2002-02-28 Bo Thorsen <bo@suse.de>
13214 * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
13215 (STARTFILE_SPEC): Add 64 bit files.
13216 (ENDFILE_SPEC): Likewise.
13218 2002-02-28 Jason Merrill <jason@redhat.com>
13220 * c-decl.c (finish_function): Only warn about missing return
13221 statement with -Wreturn-type.
13223 Don Feb 28 11:24:30 CET 2002 Jan Hubicka <jh@suse.cz>
13225 * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
13227 * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
13228 PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
13230 Don Feb 28 11:07:36 CET 2002 Jan Hubicka <jh@suse.cz>
13232 * basic-block.h (BB_REACHABLE): Renumber.
13233 (BB_DIRTY, BB_NEW): New flags.
13234 (clear_bb_flags): Declare.
13235 (update_life_info_in_dirty_blocks): Declare.
13236 * cfg.c (clear_bb_flags): New function.
13237 * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
13238 * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
13239 reorder_insns, emit_insn_after): Mark block as dirty.
13240 * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
13241 (update_life_info_in_dirty_blocks): New function.
13242 * recog.c (apply_change_group): Dirtify block.
13244 * cse.c (cse_insn): Reorder emitting of jump insn to keep
13246 * gcse.c (delete_null_pointer_checks): Likewise.
13248 * toplev.c (dump_file_index): Move cse2 after bp,
13250 (dump_file_info): Similary.
13251 (rest_of_compilation): Avoid most of CFG rebuilds;
13252 do first if converision after null pointer checks, do cse2
13253 after branch prediction; avoid full liveness rebuild after
13254 initializing subregs.
13255 * invoke.texi (-d options): Document -du, renumber.
13257 * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
13258 (notice_new_block): Do not set BB_UPDATE_LIFE.
13259 (try_forward_edges, merge_blocks_move_predecessor_nojumps,
13260 merge_blocks_move_successor_nojumps, merge_blocks,
13261 try_crossjump_to_edge): Likewise.
13262 (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
13263 * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
13264 * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
13265 (merge_of_block): Do not use life_data_ok.
13266 (find_if_case_1): Do not use SET_UPDATE_LIFE.
13267 (if_convert): Use BB_DIRTY mechanizm to update life.
13268 * lcm.c (optimize_mode_switching): Update
13269 update_life_info_in_dirty_blocks
13271 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
13273 * Makefile.in (integrate.o): Update.
13274 * c-decl.c (copy_lang_decl): Rename.
13275 * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
13276 * integrate.c: Include langhooks.h.
13277 (copy_decl_for_inlining): Update to use langhook.
13278 * langhooks-def.h (lhd_do_nothing_t,
13279 LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
13280 (LANG_HOOKS_INITIALIZER): Update.
13281 * langhooks.c (lhd_do_nothing_t): New.
13282 * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
13283 * tree.h (copy_lang_decl): Remove.
13285 * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
13287 2002-02-27 Andrew MacLeod <amacleod@redhat.com>
13289 * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
13290 POST_DEC, and POST_MODIFY.
13292 2002-02-27 Zack Weinberg <zack@codesourcery.com>
13294 * c-typeck.c (digest_init): Remove unused parameter; all
13297 2002-02-27 Geoffrey Keating <geoffk@redhat.com>
13299 * expmed.c (expand_shift): Correctly test for low part of a
13302 2002-02-27 Ulrich Weigand <uweigand@de.ibm.com>
13304 * config/s390/s390.c (s390_chunkify_pool): Do not confuse
13305 insn UIDs with insn addresses.
13307 2002-02-27 Zack Weinberg <zack@codesourcery.com>
13309 * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
13310 c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
13311 cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
13312 builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
13313 gcc.c, toplev.c: Delete code implementing -traditional mode.
13315 * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
13316 doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
13317 Document removal of -traditional mode for compilation, and
13318 remove documentation only relevant to that mode.
13320 * config/nextstep.h, config/ptx4.h, config/svr4.h,
13321 config/convex/convex.h, config/d30v/d30v.h,
13322 config/i386/dgux.h, config/i386/osf1elf.h,
13323 config/i386/osfelf.h, config/i386/osfrose.h,
13324 config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
13325 config/m68k/hp310.h, config/m88k/dgux.h,
13326 config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
13327 config/m88k/m88k.h, config/m88k/openbsd.h,
13328 config/mips/abi64.h, config/mips/osfrose.h,
13329 config/mips/svr4-5.h, config/mips/svr4-t.h,
13330 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
13331 config/stormy16/stormy16.h: Remove all references to
13332 -traditional from target specs. Delete all mention of the
13333 no-longer-necessary TRADITIONAL_RETURN_FLOAT macro. Also
13334 delete a couple of commented-out definitions of
13335 DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
13338 * system.h: Poison TRADITIONAL_RETURN_FLOAT.
13339 * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
13341 2002-02-27 Zack Weinberg <zack@codesourcery.com>
13343 * mklibgcc.in: Don't use \n in a line subject to
13344 interpretation by echo.
13346 2002-02-27 Graham Stott <grahams@redhat.com>
13348 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
13351 * loop.c (prescan_loop): Handle PARALLEL.
13353 * unroll.c (loop_iterations): Return 0 if the add_val for
13356 * final.c (output_operand_lossage): Constify PFX_STR.
13358 * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
13360 Wed Feb 27 10:45:19 CET 2002 Jan Hubicka <jh@suse.cz>
13362 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
13363 * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
13365 Wed Feb 27 10:39:20 CET 2002 Jan Hubicka <jh@suse.cz>
13367 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
13369 2002-02-27 Neil Booth <neil@daikokuya.demon.co.uk>
13371 * cpplex.c (_cpp_lex_token): Handle directives in macro
13373 * cpplib.c (_cpp_handle_directive): Save and restore state
13374 if parsing macro args when entering a directive.
13375 * cppmacro.c (collect_args): No need to handle directives
13376 in macro arguments.
13377 (enter_macro_context, replace_args): Use the original macro
13378 definition in case it was redefined whilst collecting arguments.
13380 * cpp.texi: Update.
13382 2002-02-26 David Edelsohn <edelsohn@gnu.org>
13384 * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
13385 * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
13386 * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
13388 * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
13389 (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
13390 (load_toc_v4_PIC_2): Same.
13392 2002-02-26 Alan Modra <amodra@bigpond.net.au>
13394 * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
13396 2002-02-26 Richard Henderson <rth@redhat.com>
13398 * config/alpha/alpha.md (ashldi_se): Re-enable.
13400 2002-02-26 Richard Henderson <rth@redhat.com>
13402 * config/alpha/alpha.c (alpha_encode_section_info): Examine
13403 MODULE_LOCAL_P; improve commentary.
13405 2002-02-26 Zack Weinberg <zack@codesourcery.com>
13407 * doc/cpp.texi: Clarify documentation of relationship between
13408 #line and #include.
13410 2002-02-26 Kazu Hirata <kazu@hxi.com>
13412 * config/h8300/h8300-protos.h: Update the prototype for
13413 compute_logical_op_length. Add the prototype for
13414 compute_logical_op_cc.
13415 * config/h8300/h8300.c (compute_logical_op_length): Figure out
13416 code from operands.
13417 (compute_logical_op_cc): New.
13418 * config/h8300/h8300.md: Combine all the logical op patterns
13419 in HImode and SImode. Use compute_logical_op_cc.
13421 2002-02-26 Kelley Cook <kelleycook@comcast.net>
13423 * config/i386/i386.c (print_operand): Don't append ATT-style
13424 length suffixs to x87 opcodes when in Intel mode.
13426 2002-02-26 Ryan T. Sammartino <ryants@shaw.ca>
13428 * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
13429 (init_emit_once): Update calls.
13430 * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
13431 (init_syntax_once): Prototype.
13433 2002-02-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
13435 * pa-linux.h (LIB_SPEC): Update definition.
13436 * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
13438 2002-02-26 Richard Henderson <rth@redhat.com>
13440 * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
13441 if we emitted a stop bit.
13443 2002-02-26 Jakub Jelinek <jakub@redhat.com>
13445 * configure.in (libgcc_visibility): Substitute.
13446 * configure: Rebuilt.
13447 * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
13448 defined symbols .hidden.
13450 2002-02-26 Jakub Jelinek <jakub@redhat.com>
13452 * attribs.c (c_common_attribute_table): Add visibility.
13453 (handle_visibility_attribute): New function.
13454 * varasm.c (assemble_visibility): New function.
13455 * output.h (assemble_visibility): Add prototype.
13456 * tree.h (MODULE_LOCAL_P): Define.
13457 * crtstuff.c (__dso_handle): Use visibility attribute.
13458 * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
13459 for MODULE_LOCAL_P symbols too.
13460 * config/ia64/ia64.c (ia64_encode_section_info): Handle
13461 MODULE_LOCAL_P symbols the same way as local symbols.
13462 Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
13463 into .sdata/.sbss by the user.
13464 * doc/extend.texi (Function Attributes): Document visibility
13467 2002-02-26 Jakub Jelinek <jakub@redhat.com>
13470 * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
13471 STRING_CST initializer spanning the whole variable without
13473 If expand_expr returned MEM, don't use it.
13475 2002-02-26 Alexandre Oliva <aoliva@redhat.com>
13477 * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
13478 generate a die for the lexical block.
13480 2002-02-26 Kazu Hirata <kazu@hxi.com>
13482 * config/h8300/h8300-protos.h: Add a prototype for
13483 compute_logical_op_length.
13484 * config/h8300/h8300.c (compute_logical_op_length): New.
13485 * config/h8300/h8300.md (anonymous logical patterns): Use
13486 compute_logical_op_length for length.
13488 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
13490 * dwarf2out.c (modified_type_die): Do not call type_main_variant
13492 (gen_type_die): Same.
13494 * attribs.c (handle_vector_size_attribute): Set debug information.
13496 2002-02-26 Daniel Egger <degger@fhm.edu>
13498 * config/rs6000/rs6000.md: Swap define_insn attributes to
13499 fix incorrect generation of merge high instructions instead
13502 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
13504 * c-typeck.c (really_start_incremental_init): Use
13505 bitsize_zero_node for vectors.
13507 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
13509 * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
13510 ("*set_vrsave_internal"): Same.
13512 2002-02-25 Richard Henderson <rth@redhat.com>
13514 * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
13515 in EXPAND_SUM case. Use host_integerp/tree_low_cst.
13517 2002-02-25 Jakub Jelinek <jakub@redhat.com>
13520 * config/i386/i386.c (ix86_return_pops_args): Only pop
13521 fake structure return argument if it was passed on the stack.
13523 2002-02-25 Jason Merrill <jason@redhat.com>
13525 * attribs.c (decl_attributes): Also re-layout PARM_DECL and
13528 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
13530 * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
13531 link with shared_name only.
13532 * doc/invoke.texi (Link Options): Document new behavior.
13534 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
13536 * c-typeck.c (push_init_level): Handle vectors.
13538 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
13540 * config/sparc/sparc.c (const64_high_operand): Zero-extend
13541 operands of SPARC_SETHI_P.
13542 (input_operand): Likewise.
13543 (sparc_emit_set_const32): Likewise.
13544 * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
13545 (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
13546 (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'. Add `N' as SETHI.
13547 * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
13548 (movdi_insn_sp64_vis): Likewise.
13549 (movdi split, movdf split): Use SETHI32.
13550 * doc/md.texi: Document SPARC constraints L, M and N.
13552 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
13554 * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
13555 ("*set_vrsave_internal"): use mfspr for Darwin.
13557 * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
13558 gen_get_vrsave_internal.
13560 Sun Feb 24 16:38:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13562 * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
13564 2002-02-24 Neil Booth <neil@daikokuya.demon.co.uk>
13566 * cpplex.c (cpp_interpret_charconst): Get signedness or
13567 otherwise of wide character constants correct.
13568 * cppexp.c (lex): Get signedness of wide charconsts correct.
13570 Sun Feb 24 07:41:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13572 * optabs.c (widen_operand): Only call convert_modes for
13573 promoted SUBREG if signedness matches.
13574 * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
13576 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
13578 * cpplib.c (glue_header_name): Use local buffer to build up
13581 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
13583 * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
13585 2002-02-23 Kazu Hirata <kazu@hxi.com>
13587 * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
13588 H8/300[HS] separately.
13589 * config/h8300/h8300.md: Remove the early clobber constraint
13590 from bit field patterns.
13592 2002-02-23 Kazu Hirata <kazu@hxi.com>
13594 * config/h8300/h8300.md (mulqihi3): Tighten predicates to
13596 (mulhisi3): Likewise.
13597 (umulqisi3): Likewise.
13598 (umulhisi3): Likewise.
13600 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
13602 * cppinit.c (output_deps): Correct test for stdout output.
13603 (init_dependency_output): Cure warning.
13605 Sat Feb 23 08:42:47 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13607 * expr.c (store_expr): When converting expression to promoted
13608 equivalent type, allow using SUBREG_REG of TARGET as the target
13609 of the expansion of EXP.
13610 * loop.c (basic_induction_var, case SUBREG): Always look inside.
13611 * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
13612 (alpha_emit_set_const): Handle SImode when can't make new pseudos.
13613 (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
13614 * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
13616 2002-02-23 Joseph S. Myers <jsm28@cam.ac.uk>
13618 * doc/contribute.texi, doc/extend.texi, doc/install.texi,
13619 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
13620 doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
13622 2002-02-23 Jakub Jelinek <jakub@redhat.com>
13624 PR optimization/5747
13625 * loop.c (scan_loop): Update reg info if move_movables created new
13628 2002-02-23 David Edelsohn <edelsohn@gnu.org>
13630 * gcc.c (init_gcc_spec): Revert last change.
13632 2002-02-23 David Edelsohn <edelsohn@gnu.org>
13634 * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
13635 gpc_reg_operand constraint.
13637 2002-02-23 Alan Modra <amodra@bigpond.net.au>
13639 * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
13640 Simplify comparison of `low'.
13641 (add_operand): Fix formatting.
13642 (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
13643 (mask_operand): Disallow mask to wrap in 64-bit mode.
13644 (rs6000_stack_info): Remove redundant test setting push_p.
13645 (output_toc): Fix formatting.
13646 * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
13647 cc_reg_not_cr0_operand constraint.
13648 (booldi3, boolcdi3 splitters): Same.
13650 2002-02-23 Aldy Hernandez <aldyh@redhat.com>
13652 * config/rs6000/altivec.h: Add extra level of parentheses on casts.
13654 2002-02-22 David Edelsohn <edelsohn@gnu.org>
13656 * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
13657 gcc invoked with -shared-libgcc.
13659 2002-02-22 Jakub Jelinek <jakub@redhat.com>
13662 * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
13663 decl if any of elements was TREE_USED.
13665 2002-02-22 Alexandre Oliva <aoliva@redhat.com>
13667 * config/sparc/sol2.h: Don't include sys/mman.h.
13668 * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
13669 (arith_4096_operand): Don't throw high bits away.
13670 (const64_operand): Take sign extension of CONST_INTs into account.
13671 (const64_high_operand, sparc_emit_set_const32): Likewise.
13672 (GEN_HIGHINT64): Likewise.
13673 (sparc_emit_set_const64_quick1): Likewise.
13674 (const64_is_2insns): Likewise.
13675 (print_operand): Use trunc_int_for_mode for sign extension.
13676 * config/sparc/sparc.h (SMALL_INT32): Likewise.
13677 * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
13678 chars. Assume CONST_INT is already properly sign-extended.
13679 (movdi split): Sign-extend each SImode part.
13680 (andsi3 split): Don't mask high bits off, so that result
13681 remains properly sign-extend.
13682 (iorsi3 split): Likewise.
13683 (xorsi3 split): Likewise.
13685 2002-02-22 Richard Sandiford <rsandifo@redhat.com>
13687 * fold-const.c (fold): Fix typo in comments.
13689 2002-02-21 Diego Novillo <dnovillo@redhat.com>
13691 * Makefile.in (langhooks.o): Update dependencies.
13693 2002-02-21 Diego Novillo <dnovillo@redhat.com>
13695 * langhooks.c: Include flags.h.
13697 2002-02-21 Aldy Hernandez <aldyh@redhat.com>
13699 * testsuite/gcc.dg/attr-alwaysinline.c: New.
13701 * c-common.c (c_common_post_options): Set inline trees by
13704 * doc/extend.texi (Function Attributes): Document always_inline
13706 Update documentation about inlining when not optimizing.
13708 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
13710 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
13711 unless DECL_ALWAYS_INLINE.
13713 * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
13714 unless DECL_ALWAYS_INLINE.
13715 (c_disregard_inline_limits): Disregard if always_inline set.
13717 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
13718 Disregard if always_inline set.
13719 (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
13720 unless DECL_ALWAYS_INLINE.
13722 * attribs.c (handle_always_inline_attribute): New.
13723 (c_common_attribute_table): Add always_inline.
13725 * config/rs6000/altivec.h: Add prototypes for builtins
13726 requiring the always_inline attribute.
13728 2002-02-21 Eric Christopher <echristo@redhat.com>
13730 * expmed.c (store_bit_field): Try to simplify the subreg
13731 before generating a new one when when the mode size of
13732 value is less than maxmode.
13734 2002-02-21 Richard Henderson <rth@redhat.com>
13736 * emit-rtl.c (offset_address): Use simplify_gen_binary rather
13737 than gen_rtx_PLUS to form the sum.
13738 * explow.c (force_reg): Rearrange to not allocate new pseudo
13739 when force_operand returns a register.
13740 * expr.c (expand_assignment): Allow offset_rtx expansion to
13741 return a sum. Do not force addresses into registers.
13742 (expand_expr): Likewise.
13743 * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
13744 to canonicalize arithmetic that didn't simpify.
13745 (simplify_plus_minus): New argument force; update
13746 all callers. Don't split CONST unless we can do something with it,
13747 and wouldn't lose the constness of the operands.
13749 * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
13750 that we generated earlier.
13752 2002-02-21 Tom Tromey <tromey@redhat.com>
13754 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
13755 (output_line_info): Use constant `1', with a long explanatory
13757 * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
13759 Thu Feb 21 22:43:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
13761 * jump.c (redirect_jump): If old label has no UID, don't try to
13764 Thu Feb 21 21:17:21 2002 J"orn Rennecke <joern.rennecke@superh.com>
13766 * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
13767 If input is constant, do shifts at compile time.
13769 2002-02-21 Joseph S. Myers <jsm28@cam.ac.uk>
13771 * doc/extend.texi: Fix some more overfull hboxes.
13773 2002-02-21 Jakub Jelinek <jakub@redhat.com>
13775 PR optimization/4994
13776 * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
13779 2002-02-21 Jakub Jelinek <jakub@redhat.com>
13782 * expr.h (expand_and): Add mode argument.
13783 * expmed.c (expand_and): Add mode argument.
13784 (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
13785 * expr.c (store_field, expand_expr, do_store_flag): Likewise.
13786 * except.c (expand_builtin_extract_return_addr): Likewise.
13787 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
13788 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
13789 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
13790 Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
13791 * config/c4x/c4x.md: Use GEN_INT (x) instead of
13792 gen_rtx (CONST_INT, VOIDmode, x).
13794 2002-02-21 Jakub Jelinek <jakub@redhat.com>
13797 * stmt.c (warn_if_unused_value): Move side effects test once more.
13799 2002-02-20 Torbjorn Granlund <tege@swox.com>
13801 * config/avr/avr.md: Add more patterns for mized-mode add and subtract
13802 (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
13804 Thu Feb 21 16:20:46 2002 Alexandre Oliva <aoliva@redhat.com>
13806 * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
13807 SUBREG or ZERO_EXTEND.
13809 Thu Feb 21 15:35:46 2002 J"orn Rennecke <joern.rennecke@superh.com>
13811 * sh.h (current_function_anonymous_args): Remove.
13812 (SETUP_INCOMING_VARARGS): Don't set it - just check that one
13813 of current_function_varargs and current_function_stdarg is set.
13814 * sh.c (sh_expand_prologue): Check current_function_varargs /
13815 current_function_stdarg / TARGET_SH5 instead of
13816 current_function_anonymous_args.
13818 * sh64.h (TARGET_VERSION): Define.
13820 2002-02-20 David Edelsohn <edelsohn@gnu.org>
13822 * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
13823 VRSAVE_REGNO on TARGET_ALTIVEC.
13825 2002-02-20 Alan Modra <amodra@bigpond.net.au>
13827 * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
13828 bits of SImode const_int.
13829 (includes_rshift_p): Likewise.
13830 (print_operand): Call mask_operand and mask64_operand with correct
13832 (rs6000_output_function_epilogue): Pad traceback table to word.
13833 * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
13834 (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
13835 mask64_operand with correct mode.
13836 (FUNCTION_ARG_REGNO_P): Correct parentheses.
13838 2002-02-20 Jakub Jelinek <jakub@redhat.com>
13841 * varasm.c (get_pool_constant_mark): New.
13842 * rtl.h (get_pool_constant_mark): Add prototype.
13843 * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
13844 be represented if it has not been output.
13846 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
13848 * combine.c (do_SUBST): Sanity check substitutions of
13849 CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
13850 (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
13851 CONST_INT into its operand.
13852 (known_cond): Likewise, for ZERO_EXTEND.
13853 * simplify-rtx.c (simplify_unary_operation): Fix condition to
13854 allow for simplification of wide modes. Reject CONST_INTs in
13855 ZERO_EXTEND when their actual mode is not given.
13857 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
13859 * c-decl.c (pushdecl): If no global declaration is found for an
13860 extern declaration in block scope, try a limbo one.
13862 2002-02-20 Jakub Jelinek <jakub@redhat.com>
13865 * c-common.c (pointer_int_sum): Moved from...
13866 * c-typeck.c (pointer_int_sum): ...here.
13867 * c-common.h (pointer_int_sum): Add prototype.
13869 2002-02-20 Jakub Jelinek <jakub@redhat.com>
13872 * c-decl.c (duplicate_decls): Return 0 if issued error about
13875 2002-02-20 Roger Sayle <roger@eyesopen.com>
13876 Jakub Jelinek <jakub@redhat.com>
13879 * tree.c (host_integerp): Ensure that the constant integer is
13880 representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
13881 when pos is zero or non-zero respectively. Clarify comment.
13882 * c-format.c (check_format_info_recurse): Fix host_integerp
13883 usage; the pos argument should be zero when assigning to a
13884 signed HOST_WIDE_INT.
13886 2002-02-20 Richard Henderson <rth@redhat.com>
13888 * config/i386/i386.c (ix86_expand_vector_move): Use the mode
13889 of the operand, rather than assuming TImode.
13890 (ix86_expand_binop_builtin): Cope with commutative patterns
13891 using nonimmediate_operand for both operands.
13892 (ix86_expand_timode_binop_builtin): Likewise.
13893 (ix86_expand_store_builtin): Validate operand 1.
13894 (ix86_expand_unop1_builtin): Likewise.
13896 2002-02-20 Philip Blundell <philb@gnu.org>
13899 * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
13901 2002-02-20 Richard Henderson <rth@redhat.com>
13904 * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
13906 2002-02-20 Tom Tromey <tromey@redhat.com>
13908 * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
13909 * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
13910 * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
13911 * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
13912 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
13915 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
13917 * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
13918 for (const_int 0) in X not just INTVAL.
13920 2002-02-20 Joseph S. Myers <jsm28@cam.ac.uk>
13922 * doc/extend.texi: Avoid or reduce overfull hboxes.
13924 2002-02-20 Diego Novillo <dnovillo@redhat.com>
13926 * expmed.c (store_bit_field): Do not store bit fields using SUBREG
13927 operations if the field does not start at a mode boundary.
13929 2001-02-20 Joel Sherrill <joel@OARcorp.com>
13931 * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
13932 config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
13933 Also done for -Acpu and -Amachine.
13935 2002-02-20 Neil Booth <neil@daikokuya.demon.co.uk>
13937 * cppinit.c (init_dependency_output): Take deps output file
13938 from -o if none given with -MF. Suppress normal output.
13939 * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
13940 * doc/cpp.texi, doc/invoke.texi: Update.
13942 2002-02-19 Zack Weinberg <zack@codesourcery.com>
13944 * toplev.c (output_quoted_string): Write unprintable
13945 characters with octal escapes.
13947 2002-02-19 David Edelsohn <edelsohn@gnu.org>
13949 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
13950 really_call_used[VRSAVE_REGNO] if not Altivec.
13952 2002-02-19 Alan Modra <amodra@bigpond.net.au>
13954 * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
13956 (constant_pool_expr_1): Fix formatting.
13957 (rs6000_legitimize_reload_address): Likewise.
13959 Tue Feb 19 20:13:57 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13961 * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
13962 now that we have one.
13964 2002-02-19 Zack Weinberg <zack@codesourcery.com>
13966 * tree.h (struct tree_common): Remove aux. Add unused_0 at
13967 end of first block of bitfields (which was only seven bits);
13968 rename dummy to unused_1; remove comment which is no longer true.
13970 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
13972 * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
13974 2002-02-19 Philip Blundell <pb@nexus.co.uk>
13977 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
13981 * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
13982 arm_is_longcall_p rather than inspecting call-type cookie
13984 (call_value_insn) [TARGET_THUMB]: Likewise.
13986 2002-02-19 Graham Stott <grahams@redhat.com>
13988 * config/i386/i386.c (ix86_expand_builtin): Fix typo.
13990 2002-02-19 David Edelsohn <edelsohn@gnu.org>
13992 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
13993 ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
13994 (FP_SAVE_INLINE): Delete.
13996 * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
13997 * config/rs6000/eabi.asm: Remove ABI save restore routines.
13998 * config/rs6000/t-ppccomm: Build crtsavres.o.
13999 * config/rs6000/crtsavres.asm: New file.
14001 2002-02-19 Philip Blundell <philb@gnu.org>
14003 * config/arm/arm.c (use_return_insn): Don't reject interrupt
14005 (arm_compute_save_reg_mask): Save LR for interrupt functions too.
14006 (output_return_instruction): Allow interrupt functions to return with
14007 ldmfd sp!, {... pc}^. Use LDR to restore any single register.
14008 (arm_expand_prologue): Subtract 4 before stacking LR in an
14009 interrupt function.
14011 2002-02-19 Philip Blundell <pb@nexus.co.uk>
14013 * config/arm/arm.c (arm_encode_call_attribute): Operate on any
14014 decl, not just FUNCTION_DECL.
14015 (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
14016 (arm_assemble_integer): Likewise.
14017 * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
14020 2002-02-19 matthew green <mrg@eterna.com.au>
14022 * config.gcc (sparc-*-netbsdelf*): Enable target.
14023 (sparc64-*-netbsd*): New target.
14024 * config/sparc/netbsd-elf.h: New file.
14025 * config/sparc/t-netbsd64: New file.
14027 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
14029 * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
14031 2002-02-19 Ryan T. Sammartino <ryants@shaw.ca>
14033 * doc/invoke.texi: explicitly list the style guidelines that
14034 -Weffc++ checks for.
14036 Tue Feb 19 12:37:23 CET 2002 Jan Hubicka <jh@suse.cz>
14038 * regmove.c (regmove_optimize): Avoid increasing of register pressure.
14040 2002-02-19 Neil Booth <neil@daikokuya.demon.co.uk>
14043 * gcc.c (cpp_unique_options): Treat -o as indicating object file
14044 only if not -E. If -E, pass -o through to the preprocessor.
14046 2002-02-19 Kazu Hirata <kazu@hxi.com>
14048 * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
14049 register number with an appropriate macro.
14051 2002-02-19 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
14053 * doc/rtl.texi (Constants): Close @code tag.
14055 2002-02-19 Aldy Hernandez <aldyh@redhat.com>
14057 * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
14058 ("mmx_uavgv4hi3"): Same.
14059 ("pmulhrwv4hi3"): Same.
14061 * tree-inline.c (walk_tree): Handle vectors.
14063 * c-common.c (constant_expression_warning): Handle vectors.
14064 (overflow_warning): Same.
14066 * sched-deps.c (sched_analyze_2): Handle vectors.
14068 * rtlanal.c (rtx_unstable_p): Handle vectors.
14069 (rtx_varies_p): Same.
14070 (count_occurrences): Same.
14071 (regs_set_between_p): Same.
14072 (modified_between_p): Same.
14073 (modified_in_p): Same.
14074 (volatile_insn_p): Same.
14075 (volatile_refs_p): Same.
14076 (side_effects_p): Same.
14077 (may_trap_p): Same.
14078 (inequality_comparisons_p): Same.
14079 (replace_regs): Same.
14080 (computed_jump_p_1): Same.
14082 * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
14084 (inner_mode_array): New.
14085 (copy_rtx): Handle vectors.
14086 (copy_most_rtx): Same.
14087 (rtx_equal_p): Same.
14088 (get_mode_alignment): Adjust for vectors.
14090 * resource.c (mark_referenced_resources): Handle vectors.
14091 (mark_set_resources): Same.
14093 * reload1.c (eliminate_regs): Handle vectors.
14094 (elimination_effects): Same.
14095 (scan_paradoxical_subregs): Same.
14097 * reload.c (subst_reg_equivs): Handle vectors.
14099 * regrename.c (scan_rtx): Handle vectors.
14101 * regclass.c (reg_scan_mark_refs): Handle vectors.
14103 * recog.c (find_single_use_1): Handle vectors.
14105 * local-alloc.c (equiv_init_varies_p): Handle vectors.
14106 (contains_replace_regs): Same.
14107 (memref_referenced_p): Same.
14109 * integrate.c (copy_rtx_and_substitute): Handle vectors.
14110 (subst_constants): Same.
14112 * genattrtab.c (attr_copy_rtx): Handle vectors.
14113 (encode_units_mask): Same.
14114 (clear_struct_flag): Same.
14115 (count_sub_rtxs): Same.
14117 * gcse.c (want_to_gcse_p): Handle vectors.
14118 (oprs_unchanged_p): Same.
14119 (hash_expr_1): Same.
14120 (oprs_not_set_p): Same.
14121 (expr_killed_p): Same.
14122 (compute_transp): Same.
14123 (store_ops_ok): Same.
14125 * function.c (purge_addressof_1): Do not allow paradoxical subregs
14127 (fixup_var_refs_1): Same.
14128 (instantiate_virtual_regs_1): Same.
14130 * fold-const.c (operand_equal_p): Handle vectors.
14132 (rtl_expr_nonnegative_p): Same.
14134 * flow.c (mark_used_regs): Handle vectors.
14136 * df.c (df_uses_record): Handle vectors.
14138 * cselib.c (cselib_subst_to_values): Handle vectors.
14139 (cselib_mem_conflict_p): Same.
14142 * cse.c (canon_reg): Handle vectors.
14144 (cse_process_notes): Same.
14145 (count_reg_usage): Same.
14146 (canon_hash): Same.
14148 * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
14150 * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
14152 * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
14153 (gen_rtx): Handle CONST_VECTOR.
14154 (gen_const_vector_0): New.
14155 (copy_rtx_if_shared): CONST_VECTORs can be shared.
14156 (reset_used_flags): Same.
14157 (copy_insn_1): Same.
14158 (initializer_constant_valid_p): Handle VECTOR_CST.
14160 * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
14162 * doc/rtl.texi (Constants): Document const_vector.
14163 (CONST0_RTX): Update for vectors.
14164 (RTL sharing): Same.
14166 * print-tree.c (print_node): Add case for VECTOR_CST.
14168 * tree.h (TREE_VECTOR_CST_ELTS): New.
14169 (struct tree_vector): New.
14170 (union tree_node): Add vector node.
14171 (build_vector): Add prototype.
14173 * tree.def (VECTOR_CST): New.
14175 * tree.c (build_vector): New.
14177 * expmed.c (make_tree): Handle CONST_VECTOR.
14179 * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
14180 (CONST_VECTOR_ELT): New.
14181 (CONST_VECTOR_NUNITS): New.
14183 * machmode.h (GET_MODE_INNER): New.
14184 (DEF_MACHMODE): Accept 8th arg.
14186 * machmode.def: Add 8th argument for vector inner mode.
14187 Add inner vector modes for vectors.
14189 * rtl.def (VEC_CONST): Remove.
14190 (CONST_VECTOR): New.
14192 * expr.c (clear_storage): Allow vectors.
14193 (is_zeros_p): Handle VECTOR_CST.
14195 * varasm.c (output_constant_pool): Handle vectors.
14196 (rtx_const): Add veclo and vechi fields.
14197 (kind): Add RTX_VECTOR.
14198 (decode_rtx_const): Add case for vector.
14200 * config/rs6000/rs6000-protos.h: Add zero_constant.
14202 * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
14203 constants. Force easy vector constants into memory.
14204 (easy_vector_constant): New.
14205 (emit_easy_vector_constant): New.
14206 (rs6000_legitimize_reload_address): Do not generate bad reloads on
14209 * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
14211 ("altivec_lvxl"): Same.
14212 (altivec_lvebx): Same.
14213 (altivec_lvehx): Same.
14214 (altivec_lvewx): Same.
14215 ("*movv4si_const0"): New.
14216 ("*movv4sf_const0"): New.
14217 ("*movv8hi_const0"): New.
14218 ("*movv16qi_const0"): New.
14220 2002-02-18 Kazu Hirata <kazu@hxi.com>
14222 * config/h8300/h8300.c (notice_update_cc): Use
14225 2002-02-18 Kazu Hirata <kazu@hxi.com>
14227 * config/h8300/h8300.md (divmod patterns): Change the
14228 constraints for operands[1] to register_operand.
14230 2002-02-18 Kazu Hirata <kazu@hxi.com>
14232 * config/h8300/h8300-protos.h: Remove the prototype for
14234 * config/h8300/h8300.c (p_operand): Remove.
14235 * config/h8300/h8300.md: Replace p_operand with
14238 2002-02-18 Philip Blundell <pb@nexus.co.uk>
14240 * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
14242 (output_return_instruction): Allow use of LDR to unstack
14243 return addresss even for interrupt handlers or when
14244 interworking. If compiling for ARMv5, use interworking-safe
14245 return instructions by default. Remove duplicated code and
14246 lengthy "strcat" sequences.
14248 2002-02-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
14250 * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
14251 (LINK_EH_SPEC): Define.
14252 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
14254 2002-02-18 Ulrich Weigand <uweigand@de.ibm.com>
14256 * config/s390/s390.c (s390_emit_prologue): Do not set the
14257 frame_related flag for call-clobbered registers.
14259 Mon Feb 18 15:07:35 CET 2002 Jan Hubicka <jh@suse.cz>
14261 * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
14262 (construct_container): Fix handling of SSE operands.
14263 (ix86_expand_builtin): Fix handling of 64bit pointers.
14264 (mmx_maskmovq_rex): New pattern.
14266 Mon Feb 18 11:55:55 CET 2002 Jan Hubicka <jh@suse.cz>
14268 * regrename.c (kill_set_value): Handle subregs properly.
14270 2002-02-18 David Billinghurst <David.Billinghurst@riotinto.com>
14272 * objc/objc-act.c (handle_impent): Remove leading '*'
14273 from objc_class_name.
14275 2002-02-17 Richard Henderson <rth@redhat.com>
14277 * config/alpha/alpha.c (some_small_symbolic_operand,
14278 some_small_symbolic_operand_1, split_small_symbolic_operand,
14279 split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
14280 Handle small SYMBOL_REFs anywhere, not just inside memories.
14281 * config/alpha/alpha-protos.h: Update.
14282 * config/alpha/alpha.h (PREDICATE_CODES): Update.
14283 * config/alpha/alpha.md (small symbolic operand splitter): Update.
14285 2002-02-17 Roland McGrath <roland@frob.com>
14287 * config.gcc (powerpc-*-gnu-gnualtivec*,
14288 powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
14289 * config/rs6000/gnu.h: New file.
14290 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
14291 Grok "gnu" in rs6000_abi_name.
14292 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
14293 CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
14294 Grok -mcall-gnu analogous to -mcall-linux et al.
14295 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
14296 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
14297 (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
14299 2002-02-17 Jakub Jelinek <jakub@redhat.com>
14302 * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
14305 2002-02-17 Philipp Thomas <pthomas@suse.de>
14307 * config/cris/cris.h: Undefine STARTFILE_SPEC and
14308 ENDFILE_SPEC before (re)defining them.
14310 2002-02-17 Kazu Hirata <kazu@hxi.com>
14312 * config/h8300/h8300.c: Fix formatting.
14313 * config/h8300/h8300.h: Likewise.
14315 2002-02-17 Philipp Thomas <pthomas@suse.de>
14317 * doc/tm.texi: Explain why empty strings should not be
14318 marked for translation.
14320 2002-02-17 Philipp Thomas <pthomas@suse.de>
14322 * final.c (output_operand_lossage): Changed to accept
14323 printf style arguments. Change calls where necessary.
14324 * output.h (output_operand_lossage): Change declaration
14325 accordingly. Update copyright.
14326 * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
14327 config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
14328 Update copyright date where necessary.
14330 * config/i386/i386.c (print_operand): Likewise. Remove use of
14333 * config/cris/cris.c (cris_operand_lossage): Likewise.
14334 Rename parameter so that exgettext recognizes it as
14335 translatable message.
14336 (LOSE_AND_RETURN): Rename parameter to msgid.
14338 2002-02-17 Kazu Hirata <kazu@hxi.com>
14340 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
14341 hard coded register number with an appropriate macro.
14342 (HARD_REGNO_MODE_OK): Likewise.
14343 (ARG_POINTER_REGNUM): Likewise.
14344 (STATIC_CHAIN_REGNUM): Likewise.
14345 (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
14346 * config/h8300/h8300.md (define_constants): Define more
14349 2002-02-17 Philipp Thomas <pthomas@suse.de>
14351 * config/i386/i386.h: Don't mark empty strings for translation.
14353 2002-02-16 H.J. Lu <hjl@gnu.org>
14355 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
14357 2002-02-16 Zack Weinberg <zack@codesourcery.com>
14359 * cppinit.c (merge_include_chains): Check for brack being
14360 NULL before attempting to merge it with qtail.
14362 2002-02-16 Andrew Cagney <ac131313@redhat.com>
14364 * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
14367 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
14369 * pa/t-pa, pa/t-pro, som.h: Revert last patch.
14371 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
14373 * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
14374 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
14375 * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
14377 Sat Feb 16 13:48:50 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14379 * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
14380 now only if !TARGET_FIX.
14381 (*movsi_nt_vms_fix): New pattern.
14383 2002-02-16 Douglas B Rupp <rupp@gnat.com>
14385 * config/alpha/alpha.c: Implement null frame procedure types on VMS.
14386 (alpha_procedure_type): Replaces alpha_is_stack_procedure.
14387 (alpha_sa_mask, alpha_sa_size): Reflect above change.
14388 (alpha_pv_save_size, alpha_expand_prologue): Likewise.
14389 (alpha_start_function, alpha_expand_epilogue): Likewise.
14390 (unicosmk_gen_dsib): Likewise.
14392 Sat Feb 16 13:39:09 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14394 * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
14396 2002-02-16 Ulrich Weigand <uweigand@de.ibm.com>
14398 * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
14399 check_and_change_labels, s390_final_chunkify): Delete.
14400 (s390_split_branches, s390_chunkify_pool): New functions.
14401 (s390_function_prologue): Call them.
14403 * config/s390/s390.h (S390_REL_MAX): Delete.
14404 (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
14406 * config/s390/s390.md (cjump, icjump, jump): Fix length
14407 attribute calculation.
14410 2002-02-15 David Edelsohn <edelsohn@gnu.org>
14412 * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
14413 * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
14415 2002-02-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
14417 * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
14418 * config/pa/pa-linux.h (LIB_SPEC): Likewise.
14419 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
14421 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
14423 * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
14425 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
14427 * reload.c (find_dummy_reload): Check that an output register
14428 is valid for its mode.
14430 2002-02-14 Alexandre Oliva <aoliva@redhat.com>
14432 * combine.c (known_cond): After replacing the REG of a SUBREG, try
14435 * function.c (assign_parms): Demote promoted argument passed by
14436 transparent reference.
14438 2001-02-14 Joel Sherrill <joel@OARcorp.com>
14440 * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
14441 -Acpu() and -Amachine() to eliminate warnings.
14443 2002-02-14 Ulrich Weigand <uweigand@de.ibm.com>
14445 * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
14447 2002-02-14 Kazu Hirata <kazu@hxi.com>
14449 * config/h8300/h8300-protos.h: Update the prototype for
14451 * config/h8300/h8300.c (const_costs): Treat SET as a little
14452 more expensive operation.
14453 * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
14454 reference to const_costs.
14456 2002-02-14 Hans-Peter Nilsson <hp@axis.com>
14458 * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
14460 2002-02-14 Jakub Jelinek <jakub@redhat.com>
14463 * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
14464 use arguments from newtype.
14466 2002-02-13 Eric Christopher <echristo@redhat.com>
14468 * config/mips/mips.c (override_options): Add check for march/mipsX
14469 on the same command line. Fix error message in cpu processing.
14470 Remove architecture and ISA checks.
14472 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
14474 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
14476 * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
14478 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
14480 * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
14482 ("*movv8hi_internal1"): Same.
14483 ("*movv16qi_internal1"): Same.
14484 ("*movv4sf_internal1"): Same.
14486 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
14487 not push_reload for altivec modes.
14489 2002-02-13 Joel Sherrill <joel@OARcorp.com>
14491 * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
14492 all RTEMS targets including removal of #includes from config/*/rtems*.h
14493 file and adding them to tm_file setting. Added xm_defines=POSIX to
14495 * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
14496 * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
14497 * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
14498 * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
14499 * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
14500 config/m68k/rtemself.h: Ditto.
14501 * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
14502 config/mips/rtems64.h: Ditto.
14503 * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
14504 * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
14506 * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
14507 config/sparc/rtemself.h: Ditto.
14508 * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
14509 * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
14510 arm-rtems stanza closer to other arm-elf targets and made arm-rtems
14512 * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
14513 config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
14514 target made more similar to i386-elf.
14515 * config/i386/t-rtems-i386: Added soft float support and multilibs.
14516 * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
14517 be similar to config/m68k/t-m68kelf.
14518 * gthr-rtems.h: Encapsulate with extern "C" for C++.
14520 Wed Feb 13 23:41:15 CET 2002 Jan Hubicka <jh@suse.cz>
14522 * regmove.c (kill_value): Handle subregs.
14524 Wed Feb 13 23:34:30 CET 2002 Jan Hubicka <jh@suse.cz>
14526 * i386.md (mul patterns): Allow memory operand to be first;
14527 add expanders where needed; fix constraints.
14528 (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
14529 Allow memory operand to be the first.
14531 * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
14534 2002-02-13 Jakub Jelinek <jakub@redhat.com>
14537 * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
14540 2002-02-13 Jakub Jelinek <jakub@redhat.com>
14542 PR optimization/5547:
14543 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
14544 all valid IA-32 address modes involving non-scaled %ebx and
14545 GOT/GOTOFF as displacement.
14547 2002-02-13 Ulrich Weigand <uweigand@de.ibm.com>
14549 * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
14550 after emitting ltorg insns.
14552 * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
14553 *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
14554 *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
14555 *abssf2): Fix "op_type" attribute.
14557 2002-02-13 Douglas B Rupp <rupp@gnat.com>
14559 * mkconfig.sh: Avoid using a subshell redirect.
14560 ($output.T): Change to $(output)T.
14561 (ENABLE_NLS): Remove unneeded undef.
14563 * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
14564 * config/alpha/x-vms (libsubdir): Define.
14566 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
14567 register frame procedures. Optimize retrieving context.
14569 * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
14570 (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
14571 * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
14573 Wed Feb 13 09:45:08 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14575 * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
14576 Make same change as for find_base_value.
14578 2002-02-13 Kazu Hirata <kazu@hxi.com>
14580 * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
14581 of QImode and SImode.
14583 2002-02-13 Kazu Hirata <kazu@hxi.com>
14585 * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
14586 length computation of movsi.
14587 * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
14589 2002-02-13 Kazu Hirata <kazu@hxi.com>
14591 * config/h8300/h8300.md (subqi3): Tighten the predicate for
14592 operands[2] to register_operand.
14594 Wed Feb 13 10:35:56 CET 2002 Jan Hubicka <jh@suse.cz>
14596 * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
14598 2002-02-12 Aldy Hernandez <aldyh@redhat.com>
14600 * config/rs6000/rs6000.md: Use predicate altivec_register_operand
14601 for altivec_lvx* and altivec_stvx*.
14602 ("*movv4si_internal"): Add constraint for loading from GPRs.
14603 ("*movv8hi_internal1"): Same.
14604 ("*movv16qi_internal1"): Same.
14605 ("*movv4sf_internal1"): Same.
14607 * config/rs6000/rs6000.c (altivec_register_operand): New.
14609 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
14610 altivec_register_operand.
14612 2002-02-13 Hans-Peter Nilsson <hp@bitrange.com>
14614 * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
14617 2002-02-13 Stan Shebs <shebs@apple.com>
14619 * c-typeck.c (digest_init): Handle vectors.
14620 (really_start_incremental_init): Same.
14621 (pop_init_level): Same.
14622 (process_init_element): Same.
14624 * varasm.c (output_constant): Same.
14626 * expr.c (clear_storage): Same.
14627 (store_constructor): Same.
14629 2002-02-12 Eric Christopher <echristo@redhat.com>
14631 * explow.c (hard_function_value): Add comment explaining
14632 signed/unsigned comparison.
14634 2002-02-12 Jakub Jelinek <jakub@redhat.com>
14636 * jump.c (never_reached_warning): Add finish argument.
14637 If finish is NULL, stop on CODE_LABEL, otherwise stop before first
14638 real insn after end.
14639 * rtl.h (never_reached_warning): Adjust prototype.
14640 * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
14641 * cfgrtl.c (flow_delete_block): Pass b->end as finish to
14642 never_reached_warning.
14644 2002-02-12 Graham Stott <grahams@redhat.com>
14646 * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
14648 2002-02-12 Kazu Hirata <kazu@hxi.com>
14650 * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
14651 logical shifts on H8/300.
14652 (shift_alg_si): Improve several shifts on H8/300.
14653 (get_shift_alg): Likewise.
14655 2002-02-12 Graham Stott <grahams@redhat.com>
14657 * config/pa/pa.c (compute_movstrsi_length): Fix typos.
14659 Tue Feb 12 10:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14661 * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
14662 Handle #ifdef POINTERS_EXTEND_UNSIGNED.
14664 2002-02-11 Hans-Peter Nilsson <hp@bitrange.com>
14666 * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
14667 non-CONST_INT through default_assemble_integer.
14668 <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
14669 <case 8>: Abort for CONST_DOUBLE.
14671 2002-02-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
14673 * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
14675 * config/pa/pa-linux.h (LIB_SPEC): Delete.
14676 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
14678 2002-02-11 Andrew Haley <aph@cambridge.redhat.com>
14680 * config/stormy16/stormy16.md (zero_extendqihi2): New.
14682 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
14684 * regrename.c (regrename_optimize): Don't accept a
14685 part-clobbered register if the replaced register is not part
14688 * calls.c (store_one_arg): In the non-BLKmode non-partial case,
14689 take padding into account when computing the argument value.
14691 * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
14693 * combine.c (try_combine): Apply substitutions in
14694 CALL_INSN_FUNCTION_USAGE too.
14696 2002-02-11 Aldy Hernandez <aldyh@redhat.com>
14698 * config/rs6000/rs6000.c (altivec_init_builtins): Handle
14699 __builtin_altivec_abs*.
14702 * config/rs6000/rs6000.h (rs6000_builtins): Add
14703 ALTIVEC_BUILTIN_ABS*.
14705 * config/rs6000/altivec.h: Use const char for builtins expecting
14707 (vec_abs): New versions for C and C++.
14710 2002-02-10 Kazu Hirata <kazu@hxi.com>
14712 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
14715 2002-02-10 Kazu Hirata <kazu@hxi.com>
14717 * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
14718 constant definition from h8300.md.
14719 (FRAME_POINTER_REGNUM): Likewise.
14720 * config/h8300/h8300.md (define_constants): Add FP_REG.
14722 2002-02-10 Kazu Hirata <kazu@hxi.com>
14724 * config/h8300/h8300.c (print_operand): Remove redundant code.
14726 2002-02-10 Kazu Hirata <kazu@hxi.com>
14728 * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
14729 * config/h8300/h8300.c (byte_reg): Make it static.
14731 2002-02-10 Richard Henderson <rth@redhat.com>
14734 * c-typeck.c (incomplete_type_error): Handle flexible array members.
14736 2002-02-10 Richard Henderson <rth@redhat.com>
14739 * tree.c (append_random_chars): Don't abort if main_input_filename
14742 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
14744 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
14746 2002-02-10 Kazu Hirata <kazu@hxi.com>
14748 * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
14749 (pushhi1): Likewise.
14751 2002-02-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
14753 * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
14754 * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
14756 2002-02-09 David O'Brien <obrien@FreeBSD.org>
14758 * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
14760 (ASM_CPU_DEFAULT_SPEC): Remove. Default setting is fine.
14762 2002-02-09 Kazu Hirata <kazu@hxi.com>
14764 * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
14765 a half of an SImode register on H8/300.
14767 Sat Feb 9 18:28:02 CET 2002 Jan Hubicka <jh@suse.cz>
14769 * i386.md (movdi_2): Add missing '!'.
14771 2002-02-09 Kazu Hirata <kazu@hxi.com>
14773 * config/h8300/h8300.h: Fix formatting. Remove commented-out
14776 2002-02-09 Kazu Hirata <kazu@hxi.com>
14778 * config/h8300/h8300.md (length): Correct the distance valid
14779 for the short branch.
14781 2002-02-09 Kazu Hirata <kazu@hxi.com>
14783 * config/h8300/h8300.md (iorhi3): Tighten the predicates.
14785 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
14787 * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
14788 registers in SImode.
14789 (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
14792 * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
14795 Contribute sh64-elf.
14796 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
14797 * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
14798 (sh_cannot_modify_jumps_p): New function.
14799 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
14800 * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
14801 (sh_ms_bitfield_layout_p): New function.
14802 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
14803 Zack Weinberg <zack@codesourcery.com>
14804 * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
14805 expand_simple_binop instead of expand_binop.
14806 2002-02-03 Alexandre Oliva <aoliva@redhat.com>
14807 * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
14808 use of .quad and .uaquad.
14809 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
14810 TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
14811 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
14812 * config/sh/sh.md (movdi_const, movdi_const_32bit,
14813 movdi_const_16bit): Make sure all CONSTs have modes.
14814 (sym2PIC): Ditto, but by adjusting all callers.
14815 * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
14816 if the prologue calls the SHmedia argument decoder or register
14818 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
14819 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
14820 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
14821 (sh_expand_epilogue): Don't emit USE of return target register.
14822 (prepare_move_operands): Legitimize DImode PIC addresses.
14823 (sh_media_register_for_return): Skip tr0, used to initialize the
14825 (sh_expand_prologue): Remove explicit USE of return register.
14826 (nonpic_symbol_mentioned_p): PC is non-PIC. Don't recurse in
14827 CONST_DOUBLEs. UNSPEC_GOTPLT is PIC.
14828 * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
14829 (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
14830 (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
14831 EXTRA_CONSTRAINT_T.
14832 (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
14833 (MOVI_SHORI_BASE_OPERAND_P): New.
14834 (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
14835 (EXTRA_CONSTRAINT_T): Define in terms of them.
14836 (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
14837 * config/sh/sh.md (movsi_media, movsi_media_nofpu,
14838 movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
14839 alternatives supporting TARGET_REGS.
14840 (UNSPEC_GOTPLT): New constant.
14841 (movdi split): Move incrementing of LABEL_NUSES...
14842 (movdi_const, movdi_const_32bit): Here. Use
14843 MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
14844 (movdi_const_16bit): New.
14845 (call, call_value) [flag_pic]: Use GOTPLT.
14846 (call_pop, call_value_pop): New expands.
14847 (call_pop_compact, call_pop_rettramp): New insns.
14848 (call_value_pop_compact, call_value_pop_rettramp): New insns.
14849 (sibcall) [flag_pic]: Use GOT.
14850 (builtint_setjmp_receiver): Remove bogus, unused expand.
14851 (GOTaddr2picreg): Implement for SHcompact and SHmedia.
14852 (*pt, *ptb, ptrel): New insns.
14853 (sym2GOT): Handle DImode GOT.
14854 (sym2GOTPLT, symGOTPLT2reg): New expands.
14855 (sym2PIC): New expand.
14856 (shcompact_return_tramp): Use GOTPLT to return trampoline.
14857 (shcompact_return_tramp_i): Use return register explicitly.
14858 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
14859 disable flag_reorder_blocks.
14860 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
14861 * config/sh/sh.md (sibcall_compact): Reorder return, uses and
14862 clobbers, for clarity.
14863 (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
14864 restoring of r0 in macl as MAYBE_DEAD.
14865 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
14866 * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
14867 * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
14868 alter_subreg all over.
14869 (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
14870 reload, instead of emitting instructions that would require
14872 (casesi_load_media): Add missing modes.
14873 2001-11-09 Alexandre Oliva <aoliva@redhat.com>
14874 * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
14875 as used if the argument decoder is called.
14876 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
14877 * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
14878 Pmode, then extend it to DImode if necessary.
14879 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
14880 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
14881 constants in FPU-enabled SHmedia, let them be loaded from memory.
14882 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
14883 * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
14884 Adjust whitespace in assembly output templates.
14885 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
14886 * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
14887 mode of if_then_else.
14888 2001-08-04 Alexandre Oliva <aoliva@redhat.com>
14889 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
14891 2001-07-26 Andrew Haley <aph@cambridge.redhat.com>
14892 Joern Rennecke <amylaar@redhat.com>
14893 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
14894 (SUBTARGET_CPP_PTR_SPEC): New.
14895 (SUBTARGET_CPP_SPEC): Remove.
14896 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
14897 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
14898 Fix typo in previous checkin.
14899 2001-07-11 Chandrakala Chavva <cchavva@redhat.com>
14900 * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
14901 2001-07-10 Chandrakala Chavva <cchavva@cygnus.com>
14902 Alexandre Oliva <aoliva@redhat.com>
14903 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
14904 what single FP register can hold for SHmedia target.
14905 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
14906 Alexandre Oliva <aoliva@redhat.com>
14907 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
14908 Do not split into SUBREG.
14909 2001-06-14 Alexandre Oliva <aoliva@redhat.com>
14910 * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
14911 and added new functions as specified in SH5 ABI r9.
14912 2001-06-04 Alexandre Oliva <aoliva@redhat.com>
14913 * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
14915 2001-06-03 Alexandre Oliva <aoliva@redhat.com>
14916 * config/sh/sh.c (dump_table): Add const0_rtx in calls of
14917 gen_consttable_4 and gen_consttable_8. Emit multiple labels
14918 and consttable_window_ends.
14919 2001-06-03 Graham Stott <grahams@redhat,com>
14920 * config/sh/sh.md (movdi split): Remove unused variable last_insn.
14921 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
14922 * config/sh/sh.c (print_operand): Handle floating-point pair,
14923 vector and matrix registers.
14924 * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
14925 vector modes into account.
14926 * config/sh/sh.md (movv2sf): Split move between registers into
14928 (movv4sf, movv16sf): Introduce insns that get split only after
14930 * config/sh/shmedia.h: Fix Copyright dates.
14931 * config/sh/ushmedia.h: Likewise. Move loop counter
14932 declarations into conditionals that uses them.
14933 (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
14935 * config/sh/sshmedia.h: Fix Copyright dates.
14936 (sh_media_PUTCFG): Fix constraints.
14937 2001-05-12 Alexandre Oliva <aoliva@redhat.com>
14938 * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
14939 ptrmemfunc_vbit_in_delta for SH5.
14940 2001-05-08 Alexandre Oliva <aoliva@redhat.com>
14941 * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
14942 * invoke.texi: Likewise.
14943 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
14944 * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
14945 GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
14946 GCC_pop_shmedia_regs_nofpu): New global symbols.
14947 * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
14948 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
14949 * config/sh/sh.c (calc_live_regs): Account for PR's saving in
14950 compact function with nonlocal labels.
14951 (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
14952 (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
14953 (initial_elimination_offset): Account for their stack space.
14954 * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
14955 * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
14956 movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
14957 movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
14958 least one of the operands to be a register.
14959 (movv2sf): Likewise. Renamed to movv2sf_i.
14960 (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
14961 prepare_move_operands() before emitting SHmedia insns.
14962 2001-04-03 Alexandre Oliva <aoliva@redhat.com>
14963 * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
14964 Don't save nor initialize r12. Don't mis-align the stack.
14965 Pad the code with a nop.
14966 * config/sh/crti.asm: Don't restore r12. Don't mis-align the
14968 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
14969 * gcc/longlong.h (__umulsidi3, count_leading_zeros)
14970 [__SHMEDIA__]: Implement.
14971 2001-03-11 Alexandre Oliva <aoliva@redhat.com>
14972 * config/sh/sh.md: Set latency of `pt' closer to reality.
14973 (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
14974 movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
14975 Set move, load and store type attributes.
14976 * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
14977 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
14979 * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
14980 * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
14981 * config/sh/sh.c (sh_media_register_for_return): New function.
14982 (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
14983 branch-target register.
14984 (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
14985 * config/sh/sh.md (return_media_i): Use any call-clobbered
14986 branch-target register.
14987 (return_media): If r18 wasn't copied in the prologue, copy it
14989 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
14990 Clear class FP0_REGS.
14991 * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
14993 2001-03-08 DJ Delorie <dj@redhat.com>
14994 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
14995 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
14996 * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
14997 2001-02-07 Alexandre Oliva <aoliva@redhat.com>
14998 * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
14999 2001-02-03 Alexandre Oliva <aoliva@redhat.com>
15000 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
15001 return value correctly for call_cookie.
15002 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
15003 * config/sh/crt1.asm (start): Modified so as to call
15004 ___setup_argv_and_call_main.
15005 2001-01-26 Alexandre Oliva <aoliva@redhat.com>
15006 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
15008 2001-01-20 Alexandre Oliva <aoliva@redhat.com>
15009 * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
15010 (STRIP_NAME_ENCODING): Use it.
15011 (ASM_OUTPUT_LABELREF): Likewise. Don't call assemble_name().
15012 2001-01-19 Alexandre Oliva <aoliva@redhat.com>
15013 * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
15014 prepare_scc_operands().
15015 * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
15016 (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
15017 2001-01-17 Alexandre Oliva <aoliva@redhat.com>
15018 * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
15019 2001-01-13 Alexandre Oliva <aoliva@redhat.com>
15020 * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
15021 * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
15022 used in shcompact_incoming_args.
15023 * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
15025 * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
15027 * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
15028 Adjust accordingly.
15029 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
15030 Simplify. Adjust. Add sanity check.
15031 * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
15033 * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
15035 (udivsi3, divsi3): Use them.
15036 (force_mode_for_call): New insn.
15037 (call, call_value, sibcall_value): Emit it before SHcompact
15039 2001-01-11 Alexandre Oliva <aoliva@redhat.com>
15040 * config/sh/sh.md (call, call_value, sibcall): Make sure the
15041 call cookie is non-NULL before taking its value.
15042 2001-01-10 Alexandre Oliva <aoliva@redhat.com>
15043 * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
15044 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
15045 * config/sh/sh.md (shcompact_incoming_args): Set argument memory
15047 * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
15048 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
15049 temporary for stack adjusts. Use MACL and MACH to pass
15050 arguments to shcompact_incoming_args.
15051 * config/sh/sh.md (shcompact_incoming_args): Adjust. Don't
15053 * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
15054 (nested_trampoline): Load static chain address into r1.
15055 * config/sh/sh.md (movdi_media splits): Fix sign-extension.
15056 2001-01-07 Alexandre Oliva <aoliva@redhat.com
15057 * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
15058 fp_arith_reg_operand().
15059 2001-01-06 Alexandre Oliva <aoliva@redhat.com>
15060 * config/sh/sh.md (casesi): Sign-extend the first two operands,
15061 and use signed compares for them.
15062 * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
15063 4-byte ones. Instead, inter-leave them, maintaining the 8-byte
15064 ones properly aligned.
15065 (find_barrier): Account for extra alignment needed for 8-byte wide
15067 (machine_dependent_reorg): Require a label for the second 4-byte
15068 constant after an 8-byte one.
15069 * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
15071 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
15072 * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
15073 last_float when switching float modes.
15074 * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
15075 auto-increment for general-purpose registers.
15076 * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
15078 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
15080 * config/sh/sh.c (sh_builtin_saveregs): Support using all
15081 registers for varargs.
15082 2001-01-01 Alexandre Oliva <aoliva@redhat.com>
15083 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
15084 * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
15085 CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
15086 (CALL_COOKIE_INT_REG_SHIFT): Adjust.
15087 (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK. Adjust
15088 call_cookie accordingly.
15089 (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
15090 (SHCOMPACT_BYREF): Likewise.
15091 (SHCOMPACT_FORCE_ON_STACK): New macro.
15092 * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
15093 (sh_builtin_saveregs): Likewise.
15094 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
15095 shcompact_incoming_args): Use new shift values. Support
15096 sequences of consecutive and non-consecutive pushes/pops.
15097 * config/sh/sh.md (return): Don't explicitly use PR_REG.
15098 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
15099 * config/sh/sh.h (TEXT_SECTION): Define.
15100 * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
15101 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
15102 * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
15103 * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
15104 return values on FPU-enabled SHmedia.
15105 (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
15106 FPU-enabled SHmedia.
15107 (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
15108 value is returned in a non-FP reg and is not returned by
15110 * config/sh/sh.md (shcompact_return_tramp_i): Change type to
15112 2000-01-04 Alexandre Oliva <aoliva@redhat.com>
15113 * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
15114 (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
15115 quad-aligned to be passed by callee-copy reference.
15116 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
15117 * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
15118 * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
15119 2001-01-02 Alexandre Oliva <aoliva@redhat.com>
15120 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
15121 copying low-numbered FP regs to r7 and r8.
15122 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
15123 FP regs to general-purpose regs only if the copy was passed on the
15125 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
15126 copying FP reg to r9.
15127 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
15128 copy FP regs to general-purpose regs only in outgoing calls.
15129 * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
15130 change from 2000-10-30. Adjust for 64-bit (or 32-bit)
15132 * config/sh/sh.h (struct sh_args): Document all fields.
15133 (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
15134 passed partially on the stack should not consider making
15136 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
15137 stack_regs only for incoming calls. When passing FP args,
15138 make sure there are FP regs available before modifying
15140 (SHCOMPACT_BYREF): Pass double args in general-purpose
15141 registers by reference.
15142 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
15143 * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
15144 attempt to generate sibcalls if the caller got any arguments
15146 * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
15147 * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
15148 to 8-byte boundaries.
15149 * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
15150 * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
15151 * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
15152 stored in the stack.
15153 * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
15154 for the offsets to have the ISA bit set.
15155 (shcompact_call_trampoline): Document. Swap r0 and r1, to match
15156 invocation. Use beq instead of bgt to mark end of sequence of
15158 (shcompact_incoming_args): Fix store of r2. Use beq instead of
15159 bgt to mark end of sequence of stores.
15160 * config/sh/sh.c (arith_operand): Don't check whether
15161 CONST_OK_FOR_J for now.
15162 * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
15163 instead of long for conversion.
15164 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
15165 * config/sh/sh.c (print_operand_address): Convert INTVAL to int
15166 before passing it to fprintf.
15167 2000-12-28 Alexandre Oliva <aoliva@redhat.com>
15168 * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
15169 Call set_fpscr before reading/writing SR.
15170 * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
15172 * config/sh/lib1funcs.asm: Add `.align 2' directives before
15174 (FMOVD_WORKS): Define on SH5 with FPU.
15175 (set_fpscr): Define on SH5. Remove separate _fpscr_values
15177 * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
15179 2000-12-28 Hans-Peter Nilsson <hpn@cygnus.com>
15180 * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
15182 (ia_main_table): Ditto.
15183 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
15184 * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
15185 * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
15186 the definitions from sh.h.
15187 * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
15189 (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
15190 * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
15191 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
15192 2000-12-26 Alexandre Oliva <aoliva@redhat.com>
15193 * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
15194 Increment LABEL_NUSES.
15196 * config/sh/sh.h (SIZE_TYPE): Define as conditional on
15198 (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
15200 * config/sh/elf.h (SIZE_TYPE): Likewise.
15201 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
15202 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
15203 shcompact_incoming_args): Load switch table addresses using
15205 * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
15206 (NO_BUILTIN_SIZE_TYPE): Define.
15207 (SIZE_TYPE): Don't define.
15208 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
15209 * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
15210 definition of __SH5__=32 for -m5-compact-nofpu.
15211 * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
15213 2000-12-24 Alexandre Oliva <aoliva@redhat.com>
15214 * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
15215 2000-12-23 Alexandre Oliva <aoliva@redhat.com>
15216 * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
15217 (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
15218 (INSN_LENGTH_ALIGNMENT): Likewise.
15219 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
15220 * config/sh/sh.md (call, call_value, sibcall): Simplify
15221 copying of non-branch-target register.
15222 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
15223 * glimits.h (__LONG_MAX__): Revert 2000-12-13's patch.
15224 * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
15225 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
15226 * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
15227 floating-point values as structs.
15228 (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
15229 (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
15230 general-purpose register.
15231 (SH5_PROTOTYPED_FLOAT_ARG): New macro.
15232 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
15233 * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
15234 * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
15235 * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
15236 (ENCODE_SECTION_INFO): Enclose variables and constants in
15238 (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
15239 (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
15240 (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
15241 * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
15242 only for LABEL_REFs. For SYMBOL_REFs, prepend
15243 SH_DATALABEL_ENCODING to the symbol name.
15244 * config/sh/sh.md (indirect_jump): Use SUBREG instead of
15246 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
15247 * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
15249 * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
15250 * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
15251 (DATALABEL_REF_P): Don't require CONST.
15252 (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
15254 2000-12-19 Alexandre Oliva <aoliva@redhat.com>
15255 * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
15257 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
15258 * config/sh/sh.md (movsi_media, call, call_value, sibcall):
15259 Use shallow_copy_rtx and PUT_MODE to change the mode of
15260 SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
15261 * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
15262 on SHmedia using GENERAL_REGs.
15263 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
15264 bltu_media_i): Fix reversion of conditions.
15265 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
15266 * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
15267 * config/sh/sh.c (output_far_jump): Save r13 in macl.
15268 2000-12-17 Alexandre Oliva <aoliva@redhat.com>
15269 * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
15270 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
15271 * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
15272 (GCC_nested_trampoline): Likewise.
15273 * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
15274 * config/sh/sh.c (gen_datalabel_ref): Define.
15275 * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
15276 (INITIALIZE_TRAMPOLINE): Likewise.
15277 (TRAMPOLINE_ADJUST_ADDRESS): Define.
15278 (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
15279 (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
15280 (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
15281 * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
15282 (ic_invalidate): Adjust for SH5.
15283 (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
15284 * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
15285 _nested_trampoline.
15286 2000-12-15 Alexandre Oliva <aoliva@redhat.com>
15287 * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
15288 (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
15289 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
15290 * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
15291 * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
15292 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
15293 * config/sh/sh.c (target_reg_operand): Match only target-branch
15294 registers and pseudos that aren't virtual registers.
15295 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
15296 Copy operands that don't match target_reg_operand to pseudos.
15297 (call_media, call_value_media, sibcall_media): Use
15298 target_reg_operand instead of target_operand.
15299 2000-12-13 Alexandre Oliva <aoliva@redhat.com>
15300 * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
15301 * config/sh/sh.c (target_reg_operand): Match hardware registers
15302 other than branch-target registers.
15303 * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
15304 * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
15305 (fpscr_values) [SH5 == 32]: Define.
15306 * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
15307 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
15308 Handle function addresses coming in SUBREGs.
15309 2000-12-12 Alexandre Oliva <aoliva@redhat.com>
15310 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
15311 shcompact_return_trampoline): Use datalabel where appropriate.
15312 2000-12-09 Alexandre Oliva <aoliva@redhat.com>
15313 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
15314 general-purpose register to copy one branch-target register to
15316 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
15317 * config/sh/sh.c (target_operand): Accept LABEL_REFs and
15318 SYMBOL_REFs with VOIDmode.
15319 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
15320 bltu_media_i): New insns.
15321 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
15322 * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
15323 (INIT_CUMULATIVE_ARGS): Likewise.
15324 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
15325 * machmode.def (V16SFmode): New mode.
15326 * c-common.c (type_for_mode): Support V2SF and V16SF.
15327 * tree.c (build_common_tree_nodes_2): Likewise.
15328 * tree.h (tree_index): Likewise.
15329 * calls.c (emit_call_1): Take args_so_far. Adjust all
15330 callers. Introduce CALL_POPS_ARGS.
15331 * tm.texi (CALL_POPS_ARGS): Document.
15332 * config/sh/crt1.asm: Implement in SHmedia mode.
15333 * config/sh/crti.asm, config/sh/crtn.asm: Likewise
15334 * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
15335 (DBX_REGISTER_NUMBER): Renumber registers for SH5.
15336 * config/sh/lib1funcs.asm: Disable functions unused in SH5.
15337 Implement divsi and udivsi in SHmedia mode. Introduce
15338 SHcompact trampolines.
15339 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
15341 (regno_reg_class): Rewrite.
15342 (fp_reg_names): Remove.
15343 (sh_register_names, sh_additional_register_names): New.
15344 (print_operand): Added `u'. Support SUBREGs in addresses.
15345 Add parentheses around shifted CONSTs.
15346 (output_file_start): Output .mode and .abi directives.
15347 (shiftcosts, addsubcosts, multcosts): Adjust.
15348 (output_stack_adjust): Compute alignment. Sanity-check SIZE.
15349 (push_regs): Take array of HOST_WIDE_INTs. Adjust callers.
15350 (calc_live_regs): Output to array of HOST_WIDE_INTs. Count
15351 bytes, not registers. Take into account the need for the
15352 SHcompact incoming args trampoline. Adjust all callers.
15353 (sh_expand_prologue): Take stack_regs into account. Call
15354 incoming args trampoline. Keep stack aligned as per SH5 ABI.
15355 (sh_expand_epilogue): Take stack_regs into accoutn. Keep
15356 stack aligned as per SH5 ABI.
15357 (sh_builtin_saveregs): Support SH5 ABI.
15358 (sh_build_va_list, sh_va_start): Likewise.
15359 (initial_elimination_offset): Take alignment into account.
15360 Compute location of PR according to the SH5 stack frame.
15361 (arith_reg_operand): Reject branch-target registers.
15362 (shmedia_6bit_operand): New.
15363 (logical_operand): Use CONST_OK_FOR_P on SHmedia.
15364 (target_reg_operand): Match DImode only. Accept SUBREGs.
15365 (target_operand): New.
15366 * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
15367 (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI. Initialize
15368 SIBCALL_REGS for SHmedia.
15369 (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
15370 (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
15371 (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
15372 (TARGET_SWITCHES): New SH5 flags.
15373 (OVERRIDE_OPTIONS): Set SH5-specific options. Use
15374 VALID_REGISTER_P to disable unsupported registers.
15375 (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
15376 (POINTER_SIZE, PARM_BOUNDARY): Adjust.
15377 (FUNCTION_ARG_PADDING): Define.
15378 (FASTEST_ALIGNMENT): Adjust.
15379 (SH_REGISTER_NAMES_INITIALIZER): New.
15380 (sh_register_names): Declare.
15381 (DEBUG_REGISTER_NAMES): Define.
15382 (REGISTER_NAMES): Define based on sh_register_names.
15383 (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
15384 (sh_additional_register_names): Declare.
15385 (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
15386 (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
15387 (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
15388 (REGISTER_NATURAL_MODE): Define.
15389 (FIRST_PSEUDO_REGISTER): Adjust.
15390 (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
15391 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
15392 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
15393 (VECTOR_MODE_SUPPORTED_P): Define.
15394 (REG_CLASS_CONTENTS): Adjust.
15395 (SMALL_REGISTER_CLASSES): Adjust.
15396 (REG_ALLOC_ORDER): Adjust.
15397 (INDEX_REG_CLASS): Adjust.
15398 (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
15399 (CONST_OK_FOR_LETTER_P): Adjust.
15400 (PREFERRED_RELOAD_CLASS): Adjust.
15401 (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
15402 (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
15403 (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
15404 (FIRST_FP_PARM_REG): Adjust.
15405 (CALL_POPS_ARGS): Define.
15406 (FUNCTION_ARG_REGNO_P): Adjust.
15407 (struct sh_args): New fields.
15408 (GET_SH_ARG_CLASS): Adjust.
15409 (INIT_CUMULATIVE_ARGS): Adjust.
15410 (INIT_CUMULATIVE_INCOMING_ARGS): Define.
15411 (FUNCTION_ARG_ADVANCE): Adjust.
15412 (FUNCTION_ARG): Adjust.
15413 (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
15414 (FUNCTION_ARG_CALLEE_COPIES): Define.
15415 (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
15416 (STRICT_ARGUMENT_NAMING): Define.
15417 (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
15418 (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
15419 (SH5_WOULD_BE_PARTIAL_NREGS): Define.
15420 (SETUP_INCOMING_VARARGS): Adjust.
15421 (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
15422 (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
15423 (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
15424 (SUBREG_OK_FOR_INDEX_P): Adjust.
15425 (EXTRA_CONSTRAINT_S): Update.
15426 (EXTRA_CONSTRAINT_T): New.
15427 (EXTRA_CONSTRAINT): Adjust.
15428 (GO_IF_LEGITIMATE_INDEX): Adjust.
15429 (GO_IF_LEGITIMATE_ADDRESS): Adjust.
15430 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
15431 (MOVE_MAX): Adjust.
15432 (MAX_MOVE_MAX): Define.
15434 (CONST_COSTS): Adjust.
15435 (REGISTER_MOVE_COST): Adjust.
15436 (BRANCH_COST): Adjust.
15437 (TEXT_SECTION_ASM_OP): Adjust.
15438 (DBX_REGISTER_NUMBER): Adjust.
15439 (ASM_OUTPUT_DOUBLE_INT): New.
15440 (UNALIGNED_DOUBLE_INT_ASM_OP): New.
15441 (PREDICATE_CODES): Adjust.
15442 (PROMOTE_MODE): Adjust.
15443 (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
15444 * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
15445 (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
15446 (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
15447 (DR0_REG, DR2_REG, DR4_REG): Renumber.
15448 (TR0_REG, TR1_REG, TR2_REG): New.
15449 (XD0_REG): Renumber.
15450 (UNSPEC_COMPACT_ARGS): New.
15451 (type): Added pt and ptabs.
15452 (length): Default to 4 on SHmedia. Default pt length to 12
15453 and 20 on SHmedia32 and SHmedia64, respectively.
15454 (pt): New function unit.
15455 (movdi, movsi): Add types pt and ptabs. Don't increment LABEL_NUSES.
15456 Add whitespace between operands of SHmedia instructions.
15458 (adddi3_media, addsi3_media): Adjust constraints.
15459 (subsi3) [SHmedia]: Force operand 1 into a register.
15460 (udivsi3_i1_media, udivsi3_i4_media): New.
15461 (udivsi3): Support SHmedia.
15462 (divsi3_i1_media, divsi3_i4_media): New.
15463 (divsi3): Support SHmedia.
15464 (anddi3, iordi3, xordi3): Adjust constraints.
15465 (zero_extendhidi2, zero_extendqidi2): New.
15466 (extendsidi2, extendhidi2, extendqidi2): New.
15467 (push, pop, push_e, push_fpul, push_4): Disable on SH5.
15468 (pop_e, pop_fpul, pop_4): Likewise.
15469 (movsi_media): Support FP and BT registers.
15470 (movsi_media_nofpu): New. Adjust splits to DImode.
15471 (lduw, ldub): Renamed to zero_extend* above.
15472 (movqi_media): Fix typo.
15473 (movdi_media): Support FP and BT registers.
15474 (movdi_media_nofpu): New. Adjust splits for SHmedia32.
15475 (movdi_const_32bit): New.
15476 (shori_media): Require immediate operand. Use `u' for output.
15477 (movdf_media, movsf_media): Simplified.
15478 (movdf_media_nofpu, movsf_media_nofpu): New.
15479 (movdf, movsf): Adjust
15480 (movv2sf, movv2sf, movv16sf): New.
15481 (beq_media, beq_media_i): Adjust constraints. Don't use
15482 scratch BT register.
15483 (bne_media, bne_media_i): Likewise.
15484 (bgt_media, bgt_media_i): Likewise.
15485 (bge_media, bge_media_i): Likewise.
15486 (bgtu_media, bgtu_media_i): Likewise.
15487 (bgeu_media, bgeu_media_i): Likewise.
15488 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
15489 bunordered): Emit jump insn. Force operands to registers when
15491 (jump_media, jump): Simplify.
15492 (call_compact, call_compact_rettramp): New.
15493 (call_value_compact, call_value_compact_rettramp): New.
15494 (call_media, call_value_media): Simplify.
15495 (sibcall_compact, sibcall_media): New.
15496 (call, call_value): Adjust for SHmedia and SHcompact.
15497 (sibcall, sibcall_value, untyped_call): Likewise.
15498 (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
15499 (indirect_jump): Adjust for SHmedia.
15500 (casesi_jump_media): New.
15501 (nop): Re-enable for SHmedia.
15502 (call_site): Restrict to SH1.
15503 (casesi): Adjust for SHmedia.
15504 (casesi_shift_media, casesi_load_media): New.
15505 (return): Explicitly use PR register. Call return trampoline
15507 (return_i): Explicitly use PR register.
15508 (shcompact_return_tramp, shcompact_return_tramp_i): New.
15509 (return_media): Adjust.
15510 (shcompact_incoming_args): New.
15511 (epilogue): Adjust.
15512 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
15513 (movstrsi): Disable on SH5.
15514 (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
15515 (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
15516 (subsf3, subsf3_media): Likewise.
15517 (mulsf3, mulsf3_media, mac_media): Likewise.
15518 (divsf3, divsf3_media): Likewise.
15519 (floatdisf2, floatsisf2_media): Likewise. Adjust constraints.
15520 (floatsisf2, fux_truncsfsi2): Likewise.
15521 (fix_truncsfdi2, fix_truncsfsi2_media): Likewise. Adjust
15523 (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
15524 (cmpunsf_media, cmpsf): Likewise.
15525 (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
15526 (abssf2, abssf2_media): Likewise.
15527 (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
15528 (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
15529 (floatdidf2, floatsidf2_media): Likewise. Adjust constraints.
15530 (floatsidf2, fix_truncdfsi2): Likewise.
15531 (fix_truncdfdi2, fix_truncdfsi2_media): Likewise. Adjust
15533 (cmpeqdf_media, cmpgtdf_media): Likewise.
15534 (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
15535 (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
15536 (absdf2, absdf2_media): Likewise.
15537 (extendsfdf2, extendsfdf2_media): Likewise.
15538 (truncsfdf2, truncsfdf2_media): Likewise.
15539 * config/sh/sh64.h: New file.
15540 * config/sh/t-sh64: New file.
15541 * config/sh/shmedia.h: New file.
15542 * config/sh/ushmedia.h: New file.
15543 * config/sh/sshmedia.h: New file.
15544 * configure.in: Added sh64-*-elf.
15545 * configure: Rebuilt.
15546 2000-10-10 Alexandre Oliva <aoliva@redhat.com>
15547 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
15548 (reg_class_from_letter): Use `b' for TARGET_REGS.
15549 (print_operand): Support `%M', `%m', `AND' and
15550 `ASHIFTRT'. Do not precede constants with `#' on SHmedia.
15551 (andcosts): Adjust for SHmedia.
15552 (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
15554 (target_reg_operand): New function.
15555 * config/sh/sh-protos.h (target_reg_operand): Declare.
15556 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
15557 FP registers on SH5.
15558 (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
15560 (TARGET_REGISTER_P): New macro.
15561 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
15562 (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
15563 (EXTRA_CONSTRAINT_S): New macro.
15564 (EXTRA_CONSTRAINT): Adjust.
15565 (FLOAT_TYPE_SIZE): Define to 32.
15566 (Pmode): DImode on SHmedia.
15567 (CONST_COSTS): Adjust for SHmedia literals.
15568 (PREDICATE_CODES): Added target_reg_operand.
15569 (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
15570 * config/sh/sh.md: Remove all attrs from SHmedia insns.
15571 (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
15572 (cmpdi): Accept SHmedia.
15573 (movdicc_false, movdicc_true): New insns.
15574 (movdicc): New expand.
15575 (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
15577 (addsi3_media): Match `S' constraint.
15578 (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
15579 (negdi2): Expand for SHmedia.
15580 (one_cmpldi2): New expand.
15581 (zero_extendsidi2): Change from expand to insn.
15582 (extendsidi2): Add constraints.
15583 (movdi_media, movsi_media): Change `%x' to `%M'. Use `%m' for
15584 LD/ST address. Fix SI immediate loading split.
15585 (movhi_media, movqi_media, lduw, ldub): New insns.
15586 (movhi, movqi): Accept SHmedia.
15587 (shori_media, movdi_media): Relax input constraints. Split
15588 symbolic constants.
15589 (movdf_media, movsf_media): New insn. New split to movdi.
15590 (movdf, movsf): Match on SHmedia.
15591 (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
15592 bgeu_media): New insns and splits. New insns with `_i' suffix.
15593 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
15594 (bunordered): New expand.
15595 (jump_compact): Renamed from `jump'.
15596 (jump_media): New insn.
15597 (jump): New expand.
15598 (call_media, call_value_media): New insns.
15599 (call, call_value): Adjust.
15600 (indirect_jump_compact): Renamed from `indirect_jump'.
15601 (indirect_jump_media): New insn.
15602 (indirect_jump): New expand.
15603 (untyped_call, return): Accept SHmedia.
15604 (return_media): New insn.
15605 (prologue, epilogue, blockage): Accept SHmedia.
15606 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
15607 (sunordered): New expand.
15608 (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
15609 cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
15610 (addsf3_media, subsf3_media, mulsf3_media, mac_media,
15611 divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
15612 fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
15613 cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
15614 abssf2_media): New insns.
15615 (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
15616 cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
15617 (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
15618 floatdidf2, floatsidf2_media, fix_truncdfdi2,
15619 fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
15620 cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
15621 absdf2_media): New insns.
15622 (extendsfdf2, truncdfsf2): Adjust for SHmedia.
15623 (extendsfdf2_media, truncdfsf2_media): New insns.
15624 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
15625 * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
15626 * config/sh/sh.h (CONST_OK_FOR_J): Document.
15627 (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
15628 * config/sh/sh.md (adddi3): New expand.
15629 (adddi3_media, adddi3z_media): New insns.
15630 (adddi3_compact): Renamed from adddi3.
15631 (addsi3_media): Use add.l r63 to add constant zero.
15632 (subdi3): New expand.
15633 (subdi3_media): New insn.
15634 (subdi3_compact): Renamed from subdi3.
15635 (mulsidi3): New expand.
15636 (mulsidi3_media): New insn.
15637 (mulsidi3_compact): Renamed from mulsidi3.
15638 (umulsidi3): New expand.
15639 (umulsidi3_media): New insn.
15640 (umulsidi3_compact): Renamed from umulsidi3.
15641 (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
15642 (ashlsi3, ashrsi3, lshrsi3): Use them.
15643 (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
15644 (ashldi3, ashrdi3, lshrdi3): Use them.
15645 (zero_extendsidi2): New expand.
15646 (extendsidi2): New insn.
15647 (movsi_media): New insn. Split to movdi to load constants.
15648 (movsi): Enable for shmedia.
15649 (movdi_media): New insn. Use shori_media to load wide constants.
15650 (short_media): New insn.
15651 (movdi): Enable for shmedia.
15652 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
15653 * config/sh/sh.h (CPP_SPEC): Added `m5'.
15654 (SUBTARGET_CPP_SPEC): Added `!m5'.
15655 (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
15656 (TARGET_SWITCHES): Added `5' and `5-compact'. Added SH1_BIT
15657 to all other SH variants.
15658 (TARGET_DEFAULT): Set to SH1_BIT.
15659 (OVERRIDE_OPTIONS): Recognize sh5 CPU.
15660 (BITS_PER_WORD): Raise to 64 on shmedia.
15661 (MAX_BITS_PER_WORD): Change to 64.
15662 (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
15663 (INT_TYPE_SIZE): Keep as 32.
15664 (UNITS_PER_WORD): Raise to 8 on shmedia.
15665 (MIN_UNITS_PER_WORD): Keep as 4.
15666 (POINTER_SIZE): Raise to 64 on shmedia.
15667 (CONST_OK_FOR_J): New macro.
15668 (CONST_OK_FOR_LETTER_P): Use it.
15669 (processor_type): Add PROCESSOR_SH5.
15670 * config/sh/sh.md: Conditionalize all expands, insns and
15671 splits to TARGET_SH1.
15673 (addsi3_compact): Renamed from...
15674 (addsi3): Now an expand.
15675 (addsi3_media, subsi3_media): New insns.
15676 (subsi3): Don't negate constants with SHmedia.
15678 * hooks.c: New file.
15679 * hooks.h: New file.
15680 * Makefile.in (HOOKS_H): New.
15681 (TARGET_DEF_H): Added $(HOOKS_H).
15682 (OBJS): Added hooks.o.
15683 (cfgcleanup.o, bb-reorder.o): Added target.h.
15684 (hooks.o): Added dependencies.
15685 * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
15686 (TARGET_INITIALIZER): this.
15687 * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
15688 * target.h (struct gcc_target): Added cannot_modify_jumps_p.
15689 * bb-reorder.c: Include target.h.
15690 (reorder_basic_blocks): Skip if cannot modify jumps.
15691 * cfgcleanup.c: Include target.h.
15692 (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
15694 2002-02-08 Chris Demetriou <cgd@broadcom.com>
15696 * config/mips/mips.md (casesi_internal, casesi_internal_di):
15697 Protect jump delay slot instructions with .set noreorder and
15700 2002-02-08 Chris Demetriou <cgd@broadcom.com>
15702 * config/mips/mips.md (casesi_internal_di): Calculate
15703 the index into the target offset table correctly.
15705 2002-02-08 Richard Henderson <rth@redhat.com>
15707 * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
15708 * final.c (output_addr_const): Accept and discard SUBREG.
15709 * varasm.c (decode_addr_const): Don't abort on unknown expressions --
15710 mark them unknown instead.
15711 (simplify_subtraction): Handle RTX_UNKNOWN.
15712 (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
15714 2002-02-08 David Edelsohn <edelsohn@gnu.org>
15716 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
15718 2002-02-08 Richard Henderson <rth@redhat.com>
15720 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
15722 2002-02-08 Andreas Jaeger <aj@suse.de>
15724 * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
15725 * config/i386/t-linux64: New file.
15727 2002-02-08 Jakub Jelinek <jakub@redhat.com>
15729 * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
15730 * c-parse.in (compstmt): Clear last_expr_type.
15732 2002-02-07 Richard Henderson <rth@redhat.com>
15734 * loop.c (strength_reduce): Sink final_value when not
15737 2002-02-07 David O'Brien <obrien@FreeBSD.org>
15739 * config/sparc/freebsd.h: Fix mismatched spec {.
15741 2002-02-07 Richard Henderson <rth@redhat.com>
15743 * cfgrtl.c: Include recog.h and insn-config.h.
15744 (keep_with_call_p): Fix general_operand invocation.
15745 * Makefile.in (cfgrtl.o): Update dependencies.
15747 2002-02-07 Kazu Hirata <kazu@hxi.com>
15749 * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
15750 comment. Accept HImode only if TARGET_H8300.
15752 2002-02-07 Eric Christopher <echristo@redhat.com>
15754 * config/mips/crtn.asm: Cleanup #ifdefs.
15756 2002-02-07 Eric Christopher <echristo@redhat.com>
15758 * config/mips/crti.asm: Add changes for mips16. mips16 uses
15759 register 7 as RA instead of $31.
15760 * config/mips/crtn.asm: Ditto.
15761 * config/mips/mips.c (mips_move_2words): Add case for
15762 TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
15763 (compute_frame_size): Fix typo.
15764 (save_restore_insns): Ditto. Make documentation about using
15765 register $7 as return register more precise.
15766 (mips_expand_epilogue): Fix comment. Add code to work around not
15767 being able to add to the stack pointer directly.
15768 * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
15769 to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
15772 2002-02-07 Tom Rix <trix@redhat.com>
15774 * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
15775 immediates in ldu and stdu DS opcode field.
15776 * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
15777 * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
15778 * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
15780 2002-02-07 Jeff Sturm <jsturm@one-point.com>
15782 * config/sparc/sparc.c (compute_frame_size): Don't correct frame
15783 offset for stack bias.
15785 2002-02-07 H.J. Lu <hjl@gnu.org>
15787 * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
15789 2002-02-07 Ulrich Weigand <uweigand@de.ibm.com>
15791 * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
15793 Thu Feb 7 12:14:17 CET 2002 Jan Hubicka <jh@suse.cz>
15795 * i386-protos.h (x86_order_regs_for_local_alloc): Declare
15796 * i386.c (x86_order_regs_for_local_alloc): New global function.
15797 * i386.h (REG_ALLOC_ORDER): CLeanup.
15798 (ORDER_REGS_FOR_LOCAL_ALLOC): New.
15800 2002-02-07 Richard Henderson <rth@redhat.com>
15802 PR optimization/2463
15803 * alias.c (find_base_value): Recall base values for fixed hard regs.
15804 * loop.c (loop_regs_update): Don't use single_set on non-insns.
15806 2002-02-07 Alexandre Oliva <aoliva@redhat.com>
15808 * config/mips/mips.md (define_delay) [mips16]: Adjust required
15811 2002-02-06 Richard Henderson <rth@redhat.com>
15814 * stmt.c (resolve_operand_name_1): Take more care with mixed
15815 named and unnamed operands.
15817 2002-02-06 Janis Johnson <janis187@us.ibm.com>
15818 Jan Hubicka <jh@suse.cz>
15820 * loop.c (remove_constant_addition): Avoid clobbering a shared
15823 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
15825 * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
15826 * config/s390/t-linux64: New file.
15827 * config/s390/libgcc-glibc.ver: New file.
15829 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
15831 * config/s390/linux64.h: Delete file.
15832 * config/s390/s390x.h: New file.
15833 * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
15834 as target header file.
15835 * config/s390/linux.h (TARGET_VERSION): Define depending on
15836 DEFAULT_TARGET_64BIT.
15837 (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
15838 (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
15839 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
15840 (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
15841 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
15842 (EXTRA_SPEC): New define.
15843 * config/s390/s390.h (TARGET_VERSION): Define depending on
15844 DEFAULT_TARGET_64BIT.
15845 (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
15847 2002-02-06 Jason Merrill <jason@redhat.com>
15849 * c-decl.c (finish_function): Warn about a non-void function with
15850 no return statement and no abnormal exit.
15851 (current_function_returns_abnormally): New variable.
15852 (start_function): Clear it.
15853 (struct c_language_function): Add returns_abnormally.
15854 (push_c_function_context): Save it.
15855 (pop_c_function_context): Restore it.
15856 (builtin_function): Set TREE_THIS_VOLATILE on return fns.
15857 (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
15858 an explicit return type.
15859 * c-tree.h: Declare current_function_returns_abnormally.
15860 (C_FUNCTION_IMPLICIT_INT): New macro.
15861 * c-typeck.c (build_function_call): Set it.
15862 (c_expand_return): Set current_function_returns_value even if the
15863 value is erroneous.
15865 2002-02-06 Jakub Jelinek <jakub@redhat.com>
15868 * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
15869 unsafe for reevaluation.
15871 2002-02-06 Jakub Jelinek <jakub@redhat.com>
15874 * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
15875 EXPR_STMT, but COMPOUND_STMT, recurse into it.
15877 2002-02-06 Richard Henderson <rth@redhat.com>
15879 * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
15880 be a general_operand. Dest for function value must be a pseudo.
15882 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
15884 * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
15885 as SYMBOL_REFs from the constant pool.
15887 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
15889 * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
15890 passed by invisible reference.
15892 2002-02-05 Richard Henderson <rth@redhat.com>
15894 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
15896 2002-02-06 Hans-Peter Nilsson <hp@bitrange.com>
15898 Implement using "base addresses" in insn operands as default.
15899 * config/mmix/mmix.c (mmix_conditional_register_usage): if
15900 -mabi=gnu, modify fixed_regs to fit the GNU ABI.
15901 (mmix_extra_constraint): Use 'R' to indicate that GETA should be
15902 used to read the rtx value.
15903 (mmix_target_asm_function_epilogue): Fix spacing.
15904 (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
15905 (mmix_legitimate_address): Ditto.
15906 (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
15907 should be loaded with a GETA insn. Don't allocate needless extra
15908 char for nul termination and fix misleading comment.
15909 (mmix_print_operand_address): Handle constants if
15910 TARGET_BASE_ADDRESSES.
15911 (mmix_output_register_setting): Use base addressing if
15912 TARGET_BASE_ADDRESSES and the number of insns is 3.
15913 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
15914 * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
15915 to use R as constraint, add LDA to match s.
15916 * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
15917 (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
15918 (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
15919 (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
15920 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
15921 order with other fixed registers.
15922 (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
15923 other parameter/call-clobbered registers.
15924 * doc/invoke.texi (Option Summary) <MMIX Options>: Add
15925 -mbase-addresses, -mno-base-addresses.
15926 (MMIX Options): Ditto.
15928 2002-02-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
15930 * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
15932 2002-02-06 Aldy Hernandez <aldyh@redhat.com>
15934 * config/rs6000/altivec.h: Change elem to _S_elem.
15936 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
15938 * config/netbsd.h (WCHAR_TYPE): Define.
15939 (WCHAR_TYPE_SIZE): Ditto.
15940 (WINT_TYPE): Ditto.
15941 * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
15942 (WCHAR_UNSIGNED): Ditto.
15943 (WCHAR_TYPE_SIZE): Ditto.
15944 (WINT_TYPE): Ditto.
15945 * config/arm/netbsd.h: Likewise.
15946 * config/i386/netbsd-elf.h: Likewise.
15947 * config/i386/netbsd.h: Likewise.
15948 * config/m68k/netbsd-elf.h: Likewise.
15949 * config/m68k/netbsd.h: Likewise.
15950 * config/ns32k/netbsd.h: Likewise.
15951 * config/sparc/netbsd.h: Likewise.
15952 * config/vax/netbsd.: Likewise.
15954 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
15956 * target.h (struct gcc_target): Added ms_bitfield_layout_p.
15957 * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New. Added to...
15958 (TARGET_INITIALIZER): this.
15959 * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
15960 (BITFIELD_NBYTES_LIMITED): Markup fix.
15961 * tree.h (default_ms_bitfield_layout_p): Declare.
15962 (record_layout_info): Added prev_field.
15963 * tree.c (default_ms_bitfield_layout_p): New fn.
15964 * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
15965 PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
15966 * stor-layout.c: Include target.h.
15967 (start_record_layout): Initialize prev_field.
15968 (place_field): Handle MS bit-field layout, and disregard
15969 EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
15970 PCC_BITFIELD_TYPE_MATTERS in this case. Update prev_field.
15971 * Makefile.in (stor-layout.o): Adjust dependencies.
15973 2002-02-05 Jason Merrill <jason@redhat.com>
15975 * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
15977 2002-02-05 Andreas Jaeger <aj@suse.de>
15979 * crtstuff.c: Fix comments.
15981 2002-02-05 Richard Henderson <rth@redhat.com>
15984 * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
15985 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
15988 * config/mips/mips.c (function_arg): Handle TImode.
15989 (function_arg_advance): Likewise.
15991 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
15993 * config/rs6000/altivec.h (vec_step_help): Rename to
15996 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
15998 * config/rs6000/altivec.h: Fix typos.
16000 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
16002 * config/arm/netbsd.h: Correct a comment.
16004 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
16006 * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
16007 building void typed builtins.
16009 * config/rs6000/altivec.h (vec_ld*): Fix typos.
16010 (vec_step): Implement for C++.
16012 Mon Feb 4 19:23:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16014 * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
16016 2002-02-04 Richard Henderson <rth@redhat.com>
16018 * combine.c (nonzero_bits): Re-introduce special case for
16019 sp/fp/ap wrt REGNO_POINTER_ALIGN.
16021 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
16023 * doc/extend.texi: Warn about unsupported usage of altivec
16026 * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
16027 (altivec_predicate_*): New.
16029 * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
16030 Add C++ version of vec_*() functions.
16032 * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
16033 (bdesc_2arg): Remove altivec predicates.
16034 (altivec_expand_builtin): Handle predicates.
16035 (altivec_init_builtins): Handle predicates.
16036 (altivec_expand_predicate_builtin): New.
16038 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
16040 * pa.c (DO_FRAME_NOTES): Move forward.
16041 (store_reg): Revise handling of frame notes.
16042 (load_reg): Likewise.
16043 (set_reg_plus_d): Likewise.
16044 (hppa_expand_prologue): Likewise.
16045 (hppa_expand_epilogue): Likewise.
16047 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
16049 * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
16051 2002-02-04 Jakub Jelinek <jakub@redhat.com>
16053 PR c/4475, c++/3780:
16054 * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
16055 * c-common.h (SWITCH_TYPE): Define.
16056 * c-typeck.c (c_start_case): Set SWITCH_TYPE.
16057 * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
16058 Rename spareness variable to sparseness.
16059 (expand_end_case_type): Renamed from expand_end_case, use orig_type
16060 if non-NULL instead of TREE_TYPE (orig_index).
16061 * tree.h (expand_end_case_type): Renamed from expand_end_case.
16062 (expand_end_case): Define using expand_end_case_type.
16063 * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
16064 to expand_end_case_type.
16065 * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
16067 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
16069 * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
16070 (BIGGEST_ALIGNMENT): Change to 128.
16072 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
16074 * pa32-linux.h (LINK_COMMAND_SPEC): Define.
16076 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
16078 * pa.md (call_internal_reg_64bit): Remove unused variable.
16080 2002-02-04 Nick Clifton <nickc@cambridge.redhat.com>
16082 * config/arm/arm.h (machine_function): Add uses_anonymous_args
16084 (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
16085 * config/arm/arm.c (current_function_anonymous_args): Delete,
16086 replace uses with cfun->machine->uses_anonymous_args.
16087 (arm_reorg): Do not reset uses_anonymous_args.
16089 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
16090 any geenral register.
16092 2001-02-04 Bernd Schmidt <bernds@redhat.com>s
16094 * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
16097 2002-02-04 Richard Henderson <rth@redhat.com>
16099 * combine.c (force_to_mode): Remove STACK_BIAS code.
16100 (nonzero_bits): Likewise. Replace sp/fp special case with
16101 REGNO_POINTER_ALIGN.
16103 * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
16104 (HARD_FRAME_POINTER_REGNUM): New.
16105 (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
16106 (FIXED_REGS, CALL_USED_REGS): Update.
16107 (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
16108 (CONDITIONAL_REGISTER_USAGE): Update for HFP.
16109 (HARD_REGNO_NREGS): Update for SFP.
16110 (STACK_POINTER_OFFSET): Include bias here ...
16111 (FIRST_PARM_OFFSET): ... not here.
16112 (STACK_BIAS): Remove.
16113 (INIT_EXPANDERS): New.
16114 (STARTING_FRAME_OFFSET): Do not include bias.
16115 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
16116 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
16117 (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
16118 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
16119 * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
16120 * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
16121 (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
16122 (MUST_SAVE_REGISTER): Likewise.
16123 (sparc_flat_function_prologue): Likewise.
16124 (sparc_flat_function_epilogue): Likewise.
16125 (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
16126 (sparc_init_modes): SFP is GENERAL_REGS.
16127 (sparc_builtin_saveregs): SFP does not have bias applied.
16129 2002-02-04 Richard Henderson <rth@redhat.com>
16131 * config/alpha/alpha.c (current_function_is_thunk): Don't check
16132 current_function_is_thunk.
16133 (alpha_sa_mask): Distinguish between current_function_is_thunk
16134 called from ASM_OUTPUT_MI_THUNK and not.
16135 (alpha_does_function_need_gp): Thunks always need gp.
16136 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
16137 (alpha_output_mi_thunk_osf): New.
16138 * config/alpha/alpha-protos.h: Update.
16139 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
16141 2002-02-04 Richard Sandiford <rsandifo@redhat.com>
16143 * c-typeck.c (build_c_cast): Warn when qualifiers are added to
16144 function types, not when they're taken away.
16146 Mon Feb 4 09:05:58 2002 Jeffrey A Law (law@redhat.com)
16148 * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
16149 CODE_LABEL and jump table when replacing a table jump with a
16152 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
16154 * config/s390/s390-protos.h (legitimize_la_operand,
16155 s390_secondary_input_reload_class, s390_plus_operand,
16156 s390_expand_plus_operand): Add prototypes.
16158 config/s390/s390.c (s390_secondary_input_reload_class,
16159 s390_plus_operand, s390_expand_plus_operand): New functions.
16161 (struct s390_address): New member 'pointer'.
16162 (s390_decompose_address): Compute it.
16163 (legitimate_la_operand_p): Use it.
16164 (legitimize_la_operand): New function.
16165 (movti, movdi, movdf splitters): Call it.
16167 config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
16168 (PREDICATE_CODES): Add s390_plus_operand.
16170 config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
16171 (la_ccclobber): Allow GENERAL_REGS as output operand.
16173 (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
16174 *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
16175 (*la_64, *la_31, reload_indi, reload_insi): ... these.
16177 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
16179 * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
16180 register names for regular asm () construct.
16182 2002-02-04 Jakub Jelinek <jakub@redhat.com>
16184 * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
16187 2002-02-04 Jakub Jelinek <jakub@redhat.com>
16189 * combine.c (recog_for_combine): Create a dummy insn with PATTERN
16192 2002-02-04 Hartmut Penner <hpenner@de.ibm.com>
16194 * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
16195 constant pool to be identical by string address and index.
16197 2002-02-04 Anthony Green <green@redhat.com>
16199 * output.h (SECTION_OVERRIDE): Define.
16200 * varasm.c (named_section): Obey SECTION_OVERRIDE.
16202 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
16204 * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
16205 by existing arm*-*-netbsd* (a.out) target.
16206 (ns32k-*-netbsdelf*): Likewise.
16207 (sparc-*-netbsdelf*): Likewise.
16208 (vax-*-netbsdelf*): Likewise.
16210 2002-02-03 Danny Smith <dannysmith@users.sourceforge.net>
16212 * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
16213 headers and libobjc headers.
16215 2002-02-03 Mumit Khan <khan@nanotech.wisc.edu>
16217 * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
16218 (_mingw.h): Remove duplicate include.
16220 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
16222 * config.gcc: Set cpu_type to m68k for 68010, as well.
16223 (m68010-*-netbsdelf*): New...
16224 (m68k*-*-netbsdelf*): ...targets.
16225 * config/m68k/netbsd-elf.h: New file.
16227 2002-02-02 Kazu Hirata <kazu@hxi.com>
16229 * config/h8300/h8300.c (hand_list): Move inside function_arg.
16231 2002-02-02 Kazu Hirata <kazu@hxi.com>
16233 * config/h8300/h8300.c (h8_push_ops): Move inside
16235 (h8_pop_ops): Likewise.
16236 (h8_move_ops): Likewise.
16238 2002-02-02 Kazu Hirata <kazu@hxi.com>
16240 * config/h8300/h8300.c (os_task): Make it static.
16241 (monitor): Likewise.
16242 (pragma_saveall): Likewise.
16244 2002-02-02 Alexandre Oliva <aoliva@redhat.com>
16246 * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
16247 constant is a valid sign-extension for Pmode.
16249 2002-02-02 Kazu Hirata <kazu@hxi.com>
16251 * config/h8300/h8300.c: Fix formatting.
16253 2002-02-02 Kazu Hirata <kazu@hxi.com>
16255 * config/h8300/h8300.md: Fix formatting.
16257 2002-02-02 Kazu Hirata <kazu@hxi.com>
16259 * config/h8300/h8300.md (one_cmpl patterns): Tighten the
16260 predicates of operands[1]. Split the patterns for each
16263 2002-02-02 Kazu Hirata <kazu@hxi.com>
16265 * config/h8300/h8300.md (xor patterns): Tighten the predicates
16266 of operands[1] to register_operand.
16268 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
16270 * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
16271 * cpphash.c (_cpp_init_hashtable): Similarly.
16272 * cppinit.c (cpp_create_reader): Default the signed_char flag.
16273 (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
16274 (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
16275 (cpp_handle_option): Handle the new options.
16276 * cpplex.c (cpp_interpret_charconst): Use new flag.
16277 * cpplib.h (struct cpp_options): New member signed_char.
16278 * gcc.c (cpp_unique_options): Remove %c spec and documentation.
16279 (cpp_options): Handle -fsigned-char and -funsigned-char.
16280 (static_specs): Remove signed_char_spec.
16281 (do_spec1): Don't handle %c.
16282 * system.h: Poison SIGNED_CHAR_SPEC.
16283 * tradcif.y (yylex): Use flag_signed_char.
16284 * tradcpp.h (flag_signed_char): New.
16285 * tradcpp.c (flag_signed_char): New.
16286 (main): Handle new command-line options.
16287 (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
16289 * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
16290 * avr/avr.h: Remove old comments.
16291 * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
16292 (CC1_SPEC): Pass -fsigned-char if -mic*.
16293 (SIGNED_CHAR_SPEC): Remove.
16295 * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
16297 2002-02-01 Eric Christopher <echristo@redhat.com>
16299 From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
16300 * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
16301 * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
16302 (ASM_OUTPUT_REG_POP): Ditto.
16304 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
16306 * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
16309 2002-02-02 Jakub Jelinek <jakub@redhat.com>
16311 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
16313 2002-02-02 Jakub Jelinek <jakub@redhat.com>
16316 * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
16319 2002-02-01 Janis Johnson <janis187@us.ibm.com>
16321 * cfganal.c: Include tm_p.h.
16322 (keep_with_call_p): Fix the test that determines if a register holds
16323 the return value of a call.
16325 2002-02-01 DJ Delorie <dj@redhat.com>
16327 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
16328 we are given conflicting registers, switch to the other one we
16329 had allocated for us.
16330 * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
16331 as TImode so we know when the "other" register is available.
16333 2002-02-01 David O'Brien <obrien@FreeBSD.org>
16335 * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
16338 2002-02-01 Janis Johnson <janis187@us.ibm.com>
16340 * cfganal.c (keep_with_call_p): New function.
16341 (flow_call_edges_add): Prevent splitting a block between a call and
16342 a single-set instruction that should be kept in the same block.
16344 2002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
16346 * doc/install.texi (avr): Update outdated URL.
16348 2002-01-30 Andrew Haley <aph@cambridge.redhat.com>
16350 * config/stormy16/stormy16.md (pushqi): New.
16354 (movhi): Remove stack operands.
16356 * config/stormy16/stormy16.h (PREDICATE_CODES): Add
16357 nonimmediate_nonstack_operand.
16358 * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
16360 * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
16363 2002-01-31 Jason Merrill <jason@redhat.com>
16365 * Makefile.in (c-parse.c): Handle .output file.
16366 * objc/Make-lang.in (objc-parse.c): Likewise.
16368 2002-02-01 Alexandre Oliva <aoliva@redhat.com>
16370 * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
16371 the -me[lb] option is given. Don't output the default flag
16374 2002-01-31 Zack Weinberg <zack@codesourcery.com>
16376 * c-lex.c (yyparse): Call debug_hooks->start_source_file for
16377 the primary source file; this has not been done yet.
16378 * c-decl.c (c_expand_body): Reset input_filename from
16379 DECL_SOURCE_FILE (fndecl) before calling init_function_start.
16381 2002-01-31 Kazu Hirata <kazu@hxi.com>
16383 * rtlanal.c (subreg_regno_offset): Do not use
16384 SUBREG_REGNO_OFFSET.
16385 * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
16386 * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
16388 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
16390 * gccbug.in: Follow GNU Coding Standards for --version. Use GCC
16391 version rather than GNATS version in --version output.
16393 2002-01-31 Richard Sandiford <rsandifo@redhat.com>
16395 * ifcvt.c (noce_process_if_block): Make a copy of the destination
16396 when copying back from a temporary.
16398 2002-01-30 Richard Henderson <rth@redhat.com>
16400 * ifcvt.c (dead_or_predicable): Handling merging when other_bb
16401 and new_dest are the same.
16403 2002-01-30 Richard Henderson <rth@redhat.com>
16406 * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
16407 * rtl.c (note_insn_name): Update.
16408 * emit-rtl.c (remove_unnecessary_notes): Kill it.
16409 * stmt.c (expand_end_loop): Kill jump opt code. Use LOOP_END_TOP_COND
16410 to perform loop rotation.
16411 (expand_exit_loop_top_cond): New.
16412 * tree.h (expand_exit_loop_top_cond): Declare it.
16413 * c-semantics.c (genrtl_while_stmt): Use it.
16414 (genrtl_for_stmt): Likewise.
16416 2002-01-30 Alexandre Oliva <aoliva@redhat.com>
16418 * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
16419 arguments to 64-bit boundaries on 64-bit ABIs.
16421 2002-01-30 Steve Ellcey <sje@cup.hp.com>
16423 * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
16425 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
16427 * c-decl.c (grokdeclarator): Handle type being a typedef for an
16430 2002-01-30 David O'Brien <obrien@FreeBSD.org>
16432 * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
16433 * config/sparc/sparc_bi.h: Remove file.
16434 * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
16436 2002-01-30 Richard Henderson <rth@redhat.com>
16438 * sched-deps.c (sched_analyze): Make a call read the frame pointer.
16440 2002-01-30 Zack Weinberg <zack@codesourcery.com>
16442 * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
16444 2002-01-30 Jason Merrill <jason@redhat.com>
16446 * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
16447 (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
16448 (reg_save): Use DW_CFA_offset_extended_sf instead.
16450 * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
16452 2002-01-29 Jakub Jelinek <jakub@redhat.com>
16454 * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
16457 2002-01-29 Aldy Hernandez <aldyh@redhat.com>
16459 * rs6000.md ("*call_value_local32"): Remove constraints.
16460 ("*call_value_local64"): Same.
16461 ("*call_value_indirect_nonlocal_aix32"): Same.
16462 ("*call_value_nonlocal_aix32"): Same.
16463 ("*call_value_indirect_nonlocal_aix64"): Same.
16464 ("*call_value_nonlocal_aix64"): Same.
16465 ("*call_value_nonlocal_sysv"): Same.
16467 2002-01-29 Richard Henderson <rth@redhat.com>
16469 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
16471 2002-01-29 Richard Henderson <rth@redhat.com>
16473 * expr.c (force_operand): Ignore flag_pic for detecting pic
16475 * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
16476 for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
16477 * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
16478 instead of open-coded loop.
16479 * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
16480 be fixed when in use.
16482 2002-01-29 Richard Henderson <rth@redhat.com>
16484 * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
16485 * sched-rgn.c (propagate_deps): Update them.
16486 * sched-deps.c (sched_analyze_insn): Update them. Flush the
16487 clobbers list when either gets too long.
16489 2002-01-29 Jakub Jelinek <jakub@redhat.com>
16491 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
16492 and INDEX_REGS the same as GENERAL_REGS.
16493 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
16495 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
16497 * tree.c (build_nonstandard_integer_type): Correct prototype.
16499 2002-01-29 Ulrich Weigand <uweigand@de.ibm.com>
16501 * config/s390/s390.md (movstrsico, movstrdix_64,
16502 movstrsix_31): Remove, replace by ...
16503 (movstrdi_short, movstrsi_short, movstrdi_long,
16504 movstrsi_long): ... these. New.
16505 (movstrdi, movstrsi): Adapt.
16507 (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
16508 ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
16509 Remove unnecessary CC clobber.
16510 (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
16511 *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
16513 (divmoddi4): Don't partially initialize TImode register.
16515 2002-01-29 Geoffrey Keating <geoffk@redhat.com>
16517 * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
16519 2002-01-29 Richard Henderson <rth@redhat.com>
16521 * flow.c (print_rtl_and_abort): Remove.
16522 (print_rtl_and_abort_fcn): Remove.
16523 (verify_local_live_at_start): Use dump_bb instead.
16524 (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
16525 (verify_wide_reg_1): Return 2 on mode test failure.
16527 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
16529 PR c/3325, c/3326, c/2511, c/3347
16530 * c-decl.c (enum_decl_context): Remove BITFIELD.
16531 (grokdeclarator): Take bitfield width as an input.
16532 Ensure bitfields are given the correct type. Perform
16533 bitfield width validation with build_bitfield_integer_type
16534 rather than waiting for finish_struct.
16535 (grok_typename, grok_typename_in_parm_context, start_decl,
16536 push_parmdecl, grokfield, start_function): Update calls to
16538 (build_bitfield_integer_type): New function.
16539 (finish_struct): Move bitfield validation to grokdeclarator
16540 and build_bitfield_integer_type.
16541 * tree.c (build_nonstandard_integer_type): New function.
16542 * tree.h (build_nonstandard_integer_type): New prototype.
16544 * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
16546 2002-01-29 Jakub Jelinek <jakub@redhat.com>
16549 * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
16550 don't ignore unrecognized -W* options.
16551 (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
16552 * cpplib.h (cpp_handle_option): Adjust prototype.
16553 * c-decl.c (c_decode_options): Pass 0 as last argument to
16557 * gcc.c (cpp_unique_options): Split from cpp_options.
16558 (cpp_options): Source cpp_unique_options.
16559 (default_compilers): Use cpp_unique_options instead of cpp_options
16560 when used together with cc1_options.
16561 (static_specs): Add cpp_unique_options.
16562 * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
16563 when used together with cc1_options.
16565 2002-01-29 Kazu Hirata <kazu@hxi.com>
16567 * config/h8300/h8300-protos.h: Update the prototype of
16569 * config/h8300/h8300.c (output_a_shift): Remove an unused
16570 argument 'insn'. Remove redundant code.
16571 * config/h8300/h8300.md: Adust to the new prototype of
16574 2002-01-29 Kazu Hirata <kazu@hxi.com>
16576 * config/h8300/h8300-protos.h: Update the prototypes of
16577 emit_a_rotate and expand_a_rotate.
16578 * config/h8300/h8300.c (emit_a_rotate): Change the type of the
16579 first argument to 'enum rtx_code'.
16580 (expand_a_rotate): Likewise.
16582 2002-01-28 Kazu Hirata <kazu@hxi.com>
16584 * config/h8300/h8300-protos.h: Update the prototype of
16586 * config/h8300/h8300.c (output_simode_bld): Remove an argumen
16588 * config/h8300/h8300.md: Adjust to the new prototype.
16590 2002-01-28 Kazu Hirata <kazu@hxi.com>
16592 * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
16595 2002-01-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
16597 * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
16598 is a fixed register before returning pic_offset_table_rtx.
16599 * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
16600 when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
16602 2002-01-28 Jason Merrill <jason@redhat.com>
16604 * dwarf2.h: Sync with src version.
16606 2002-01-28 Paul Koning <pkoning@equallogic.com>
16608 * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
16609 BT_FN_VOID_PTR_VAR.
16610 * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
16611 * doc/extend.texi (__builtin_prefetch): Update documentation:
16612 first argument is now const void ptr.
16614 2002-01-28 Kazu Hirata <kazu@hxi.com>
16616 * config/h8300/h8300-protos.h: Remove an unused prototype.
16618 2002-01-28 Roman Zippel <zippel@linux-m68k.org>
16620 * toplev.c (lang_independent_init): Round up identifier size.
16622 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
16624 * config.gcc: Revert previous change.
16626 2002-01-28 Andris Pavenis <pavenis@latnet.lv>
16628 * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
16630 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
16632 * config.gcc (*-*-netbsdelf*): Set up generic parameters.
16633 (*-*-netbsd*): Always use collect2. Remove collect2 settings from
16634 other non-elf netbsd config frags.
16635 * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
16636 collect2 will does that.
16637 * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
16638 shared-lib frobbing will work.
16640 2002-01-28 Kazu Hirata <kazu@hxi.com>
16642 * config/h8300/h8300.h: Fix formatting.
16643 * config/h8300/h8300.md: Likewise.
16645 2002-01-28 Loren J. Rittle <ljrittle@acm.org>
16647 * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
16648 the old, removed AAA_standards fix.
16649 * fixinc/fixincl.x: Rebuilt.
16651 2002-01-28 Hans-Peter Nilsson <hp@axis.com>
16653 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
16654 atexit call in crtbegin, hooked in after call to frame_dummy;
16655 register EH before registering __fini__start.
16657 2002-01-28 Aldy Hernandez <aldyh@redhat.com>
16659 * config/rs6000/altivec.h: Remove spurious semicolons.
16661 2002-01-27 Kazu Hirata <kazu@hxi.com>
16663 * config/h8300/h8300.md: Replace dead bit extraction patterns
16664 with ones that work.
16666 Sun Jan 27 13:23:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16668 * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
16669 if not STRICT_ALIGNMENT.
16670 * rtl.h (MEM_ALIGN): Likewise.
16672 2002-01-27 Craig Rodrigues <rodrigc@gcc.gnu.org>
16674 * doc/invoke.texi (-fdump-translation-unit): Revert this
16675 patch: 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
16677 2002-01-27 Kazu Hirata <kazu@hxi.com>
16679 * config/h8300/h8300.md (define_constants): New.
16680 (anonymous patterns) Use defined constants appropriately.
16682 2002-01-27 Kazu Hirata <kazu@hxi.com>
16684 * config/h8300/h8300.c (function_arg): Remove redundant code.
16686 2002-01-26 Richard Henderson <rth@redhat.com>
16688 * sched-deps.c (reg_pending_uses_head): New.
16689 (reg_pending_barrier): Rename from reg_pending_sets_all.
16690 (find_insn_list): Don't mark inline.
16691 (find_insn_mem_list): Remove.
16692 (add_dependence_list, add_dependence_list_and_free): New.
16693 (flush_pending_lists): Replace only_write param with separate
16694 for_read and for_write parameters. Update all callers. Use
16695 add_dependence_list_and_free.
16696 (sched_analyze_1): Do not add reg dependencies here; just set
16697 the pending bits. Use add_dependence_list.
16698 (sched_analyze_2): Likewise.
16699 (sched_analyze_insn): Replace schedule_barrier_found with
16700 reg_pending_barrier. Add all dependencies for pending reg
16701 uses, sets, and clobbers.
16702 (sched_analyze): Don't add reg dependencies for calls, just
16703 set pending bits. Use regs_invalidated_by_call. Treat
16704 sched_before_next_call as a normal list, not a fake insn.
16705 (init_deps): No funny init for sched_before_next_call.
16706 (free_deps): Free pending mems lists. Don't zero reg_last.
16707 (init_deps_global): Init reg_pending_uses.
16708 (finish_deps_global): Free it.
16709 * sched-int.h (deps): Make in_post_call_group_p boolean. Update docs.
16710 (find_insn_mem_list): Remove.
16711 * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
16712 (propagate_deps): Use them. Zero temp mem lists.
16714 2002-01-26 Richard Henderson <rth@redhat.com>
16716 * Makefile.in (CRTSTUFF_CFLAGS): New.
16717 (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
16718 * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
16719 crtstuff.c instead of alpha assembly version.
16720 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
16721 entire dummy function sequence. Use FORCE_CODE_SECTION_ALIGN
16722 not FORCE_{INIT,FINI}_SECTION_ALIGN.
16723 (__do_global_dtors_aux): Mark used.
16724 (frame_dummy, __do_global_ctors_aux): Mark used.
16725 (fini_dummy, init_dummy): Remove.
16727 * config/alpha/crtbegin.asm: Remove file.
16728 * config/alpha/crtend.asm: Remove file.
16729 * config/alpha/t-crtbe: Remove file.
16730 * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
16731 (LINK_EH_SPEC): New.
16733 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
16734 FORCE_INIT_SECTION_ALIGN hack. Register __fini_start before
16735 calling constructors.
16736 * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
16738 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
16739 * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
16740 CRT_END_INIT_DUMMY hack.
16741 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
16742 FORCE_{INIT,FINI}_SECTION_ALIGN.
16744 * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
16745 FORCE_{INIT,FINI}_SECTION_ALIGN.
16747 * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
16748 invocation sequence.
16749 * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
16751 * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
16752 (FORCE_CODE_SECTION_ALIGN): New.
16754 2002-01-26 Richard Henderson <rth@redhat.com>
16756 * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
16758 2002-01-26 Richard Henderson <rth@redhat.com>
16760 * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
16761 (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
16763 2002-01-26 Kazu Hirata <kazu@hxi.com>
16765 * config/h8300/h8300.md: Remove bit extraction patterns that
16766 cannot be triggered.
16767 Restrict each bit extraction pattern to a variant on which the
16770 2002-01-26 Joseph S. Myers <jsm28@cam.ac.uk>
16772 * doc/include/texinfo.tex: Update to version 2002-01-04.07.
16774 2002-01-26 Kazu Hirata <kazu@hxi.com>
16776 * config/h8300/h8300.md: Remove bit test patterns that cannot
16778 Restrict each bit test pattern to a variant on which the
16781 2002-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16783 * builtins.c (expand_builtin_strncat): Remove redundant check for
16786 2002-01-25 David O'Brien <obrien@FreeBSD.org>
16788 * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
16790 * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
16793 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
16795 * dbxout.c (dbxout_init): Use assemble_name rather than just
16796 stripping off the first character.
16797 (dbxout_source_file): Likewise.
16799 2002-01-25 DJ Delorie <dj@redhat.com>
16801 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
16802 using rtx_equal_p, not by comparing pointers.
16804 2002-01-25 Steve Ellcey <sje@cup.hp.com>
16806 * emit-rtl.c (gen_rtx_REG): Always return the same rtx
16807 for PIC_OFFSET_TABLE_REGNUM.
16808 (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
16810 2002-01-25 David O'Brien <obrien@FreeBSD.org>
16812 * config.gcc (x86_64-*-freebsd*): New target.
16813 (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
16815 (i[34567]86-*-freebsd*): Don't include svr4.h.
16816 * config/i386/freebsd64.h: New file.
16818 2002-01-25 Douglas B Rupp <rupp@gnat.com>
16820 * config/alpha/x-vms (version): Make static.
16822 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
16823 in previous checkin.
16825 * Makefile.in (install-headers-cp): New target.
16826 * config.gcc (alpha-dec-*vms*): Install headers with
16829 Fri Jan 25 22:42:49 CET 2002 Jan Hubicka <jh@suse.cz>
16831 * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
16834 Fri Jan 25 08:26:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16836 * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
16837 of compare_tree_int.
16838 (expand_builtin_strncat): Likewise.
16839 * c-decl.c (finish_struct): Use tree_low_cst.
16840 * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
16841 * tree.c (compare_tree_int): Likewise.
16843 2002-01-25 Ulrich Weigand <uweigand@de.ibm.com>
16845 * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
16846 adjustments even if they are implemented by more than two insns.
16848 Fri Jan 25 20:43:56 CET 2002 Jan Hubicka <jh@suse.cz>
16850 * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
16851 * df.h (struct ref): Kill B.
16852 (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
16854 * basic-block.h (PROP_EQUAL_NOTES): New flag.
16855 * flow.c (propagate_one_insn): Use it.
16856 (mark_used_regs): Handle NIL.
16858 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
16860 * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
16863 2002-01-25 David Edelsohn <edelsohn@gnu.org>
16865 * rs6000.md (prefetch): Make address V4SI mode so that the address
16866 is restricted to legitimate form for instruction.
16868 2002-01-25 Bob Wilson <bob.wilson@acm.org>
16870 * doc/install.texi (xtensa-*-elf): New target.
16871 (xtensa-*-linux*): New target.
16872 * doc/contrib.texi: Add myself.
16874 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
16876 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
16877 purpose register to hold an SImode (or smaller) value.
16879 2002-01-25 Jakub Jelinek <jakub@redhat.com>
16881 * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
16883 * crtstuff.c: Likewise.
16885 2002-01-25 Kazu Hirata <kazu@hxi.com>
16887 * config/h8300/h8300.md (negation patterns): Tighten
16888 predicates to register_operand.
16890 2002-01-24 Aldy Hernandez <aldyh@redhat.com>
16892 * loop.c (emit_prefetch_instructions): Use the prefetch insn's
16895 * builtins.c (expand_builtin_prefetch): Same.
16897 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
16899 * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
16902 2002-01-24 Kazu Hirata <kazu@hxi.com>
16904 * config/h8300/h8300.c (print_operand): Remove support for
16905 operand character 'A'.
16906 * config/h8300/h8300.md (three anonymous patterns): Replace
16907 operand character 'A' with either 'T' or 'S'.
16909 2002-01-24 Kazu Hirata <kazu@hxi.com>
16911 * config/h8300/h8300.c (print_operand): Remove support for
16912 operand character 'U'.
16914 2002-01-24 Andris Pavenis <pavenis@latnet.lv>
16916 * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
16918 2002-01-24 Nick Clifton <nickc@cambridge.redhat.com>
16920 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
16921 values to be assigned to the stack pointer.
16923 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
16925 * emit_rtl.c (gen_lowpart_common): Conversion from const_int
16926 to const_double needs to be done right for big-endian systems.
16928 2002-01-24 Jason Merrill <jason@redhat.com>
16931 * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
16932 to can_throw_internal.
16934 2002-01-23 Richard Henderson <rth@redhat.com>
16936 * fold-const.c (fold): Change UINT_MAX test to check vs precision
16937 rather than TYPE_MAX_VALUE. Fix indentation and a bogus negation.
16939 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
16941 * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
16942 (symGOT2reg): Use them, then set as GOT value as unchanging.
16943 (symGOTOFF2reg): Set REG_EQUAL note. Use a different pseudo
16944 as a temporary, if possible.
16945 (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC. Emit
16946 sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
16948 2002-01-23 Kazu Hirata <kazu@hxi.com>
16950 * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
16951 accept to accept 0x80 as operands[2].
16953 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
16955 * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
16957 2002-01-23 Richard Henderson <rth@redhat.com>
16959 * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
16961 2002-01-23 Aldy Hernandez <aldyh@redhat.com>
16963 * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
16964 (parmlist_or_identifiers_1): Verify that only a parmlist follows
16967 2002-01-23 Richard Henderson <rth@redhat.com>
16969 * expr.c (move_by_pieces_1): Extend size before negation.
16971 * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
16972 (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
16973 (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
16974 * config/m68k/t-m68kelf: Likewise.
16976 2002-01-23 Bob Wilson <bob.wilson@acm.org>
16978 * config/xtensa/elf.h: New file.
16979 * config/xtensa/lib1funcs.asm: New file.
16980 * config/xtensa/lib2funcs.S: New file.
16981 * config/xtensa/linux.h: New file.
16982 * config/xtensa/t-xtensa: New file.
16983 * config/xtensa/xtensa-config.h: New file.
16984 * config/xtensa/xtensa-protos.h: New file.
16985 * config/xtensa/xtensa.c: New file.
16986 * config/xtensa/xtensa.h: New file.
16987 * config/xtensa/xtensa.md: New file.
16988 * config.gcc (xtensa-*-elf*): New target.
16989 (xtensa-*-linux*): New target.
16990 * cse.c (canon_hash): Compare rtx pointers instead of register
16991 numbers. This is required for the Xtensa port.
16992 * integrate.c (copy_insn_list): Handle case where the static
16993 chain is in memory and the memory address has to be copied to
16995 * doc/invoke.texi (Option Summary): Add Xtensa options.
16996 (Xtensa Options): New node.
16997 * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
16999 2002-01-23 Zack Weinberg <zack@codesourcery.com>
17001 * diagnostic.c (internal_error): Do ICE suppression only
17002 when ENABLE_CHECKING is not defined.
17004 * c-typeck.c (require_complete_type): Return error_mark_node
17005 if type is error_mark_node.
17007 2002-01-23 Janis Johnson <janis187@us.ibm.com>
17009 * toplev.c (process_options): Disable -fprefetch-loop-arrays with
17010 -Os and issue a warning.
17012 2002-01-23 Zack Weinberg <zack@codesourcery.com>
17014 * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
17015 current (lack of) need for host configuration by hand.
17017 * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
17018 references. Documentation of some target macros moved from
17019 hostconfig.texi to tm.texi.
17021 2002-01-23 Will Cohen <wcohen@redhat.com>
17023 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
17026 2002-01-23 Kazu Hirata <kazu@hxi.com>
17028 * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
17031 2002-01-23 Jason Merrill <jason@redhat.com>
17033 * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
17035 * function.c (assign_parms): Don't put args of inline functions
17036 into registers when not optimizing.
17038 2002-01-23 Nick Clifton <nickc@cambridge.redhat.com>
17040 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
17041 (prologue_use): New pattern.
17042 * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
17043 preference to gen_rtx_USE.
17044 (thumb_expand_prologue): Use gen_prologue_use in preference to
17046 (thumb_expand_epilogue): Use gen_prologue_use in preference to
17049 2002-01-23 Hans-Peter Nilsson <hp@bitrange.com>
17051 * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
17053 2002-01-23 Neil Booth <neil@daikokuya.demon.co.uk>
17056 * doc/extend.texi: Correct documentation of __alignof__.
17058 2002-01-22 Zack Weinberg <zack@codesourcery.com>
17060 * params.h: Rename arguments of DEFPARAM so that it will be
17061 recognized as a translation keyword.
17063 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
17065 * extend.texi: Document altivec functions.
17066 Fix N-bit adjectives in X86 builtin documentation.
17068 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
17070 * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
17071 auto_inc_dec values.
17073 2002-01-22 Richard Earnshaw <rearnsha@arm.com>
17075 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
17077 (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
17079 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
17081 * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
17083 2002-01-22 Richard Henderson <rth@redhat.com>
17085 * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
17086 copy_insn not copy_rtx.
17088 2002-01-23 Alan Modra <amodra@bigpond.net.au>
17090 * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
17091 "nonzero" as that might add "1" bits. Ensure "constop" is
17092 properly sign extened.
17093 (force_to_mode): Tweak for sign extended constop.
17095 2002-01-22 Richard Henderson <rth@redhat.com>
17097 * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
17098 for_each_rtx instead of assuming we're already looking at the MEM.
17099 (split_small_symbolic_mem_operand): Likewise.
17100 * config/alpha/alpha.h (PREDICATE_CODES): Update.
17101 * config/alpha/alpha.md (small symbolic memory splitters): Update.
17103 2002-01-22 Richard Henderson <rth@redhat.com>
17105 * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
17106 sequence number for the literal.
17107 (divmoddi_internal_er): Likewise.
17109 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
17112 * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
17113 in LIBICONV variable.
17114 * configure: Regenerated.
17116 2002-01-22 Krister Walfridsson <cato@df.lth.se>
17118 * dependence.c (build_def_use): Remove array_idx.
17120 * dwarfout.c (last_filename): Remove.
17121 (output_compile_unit_die): Remove last_filename.
17123 2002-01-22 Roger Sayle <roger@eyesopen.com>
17124 Richard Henderson <rth@redhat.com>
17127 * fold-const.c (fold): Optimize unsigned comparisons against
17128 UINT_MAX (and similar unsigned constants).
17130 2002-01-22 Janis Johnson <janis187@us.ibm.com>
17132 * Makefile.in (loop.o): Depend on OPTABS_H.
17133 * loop.c (emit_prefetch_instructions): Check the prefetch operand
17134 against the predicate.
17137 * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
17138 for the address operand.
17140 2002-01-22 Richard Henderson <rth@redhat.com>
17142 * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
17144 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
17147 * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
17148 preprocessor flags.
17150 2002-01-22 Jason Thorpe <thorpej@wasabisystems.com>
17152 * config.gcc (x86_64-*-netbsd*): New target.
17153 * config/i386/netbsd64.h: New file.
17155 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
17157 * regrename.c (kill_value): Fix typo.
17159 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
17161 * doc/tm.texi: Remove STARTING_FRAME_PHASE.
17163 * config/rs6000/rs6000.h: Same.
17165 * function.c (instantiate_virtual_regs): Remove
17166 STARTING_FRAME_PHASE.
17167 (assign_stack_local_1): Same.
17168 Calculate frame phase.
17170 2002-01-22 Nick Clifton <nickc@redhat.com>
17172 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
17173 variable declaration to outer scope in order to simplify
17175 (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
17176 arm_hard_regno_mode_ok.
17177 * config/arm/arm-protos.h: Add a prototype for
17178 arm_hard_regno_mode_ok.
17179 * config/arm/arm.c (soft_df_operand): Remove now redundant
17180 check for DImode values using IP_REGNUM.
17181 (nonimmediate_soft_df_operand): Remove now redundant check for
17182 DImode values using IP_REGNUM.
17183 (arm_hard_regno_mode_ok): New function. New check: make sure
17184 that DImode values are not stored in IP_REGNUM.
17186 * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
17188 (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
17190 2002-01-22 Jason Merrill <jason@redhat.com>
17192 * c-semantics.c (genrtl_compound_stmt): Only check nesting
17193 consistency if this COMPOUND_STMT is scoped.
17195 2002-01-22 Kazu Hirata <kazu@hxi.com>
17197 * predict.c: Fix formatting.
17198 * print-tree.c: Likewise.
17199 * protoize.c: Likewise.
17200 * real.h: Likewise.
17202 * sbitmap.h: Likewise.
17203 * scan.c: Likewise.
17204 * sched-deps.c: Likewise.
17205 * sched-vis.c: Likewise.
17206 * sdbout.c: Likewise.
17207 * sibcall.c: Likewise.
17209 * ssa-ccp.c: Likewise.
17210 * ssa-dce.c: Likewise.
17211 * stmt.c: Likewise.
17212 * stor-layout.c: Likewise.
17213 * system.h: Likewise.
17215 Tue Jan 22 06:26:33 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17217 * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
17218 if fits in bounds of base type.
17220 * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
17221 (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
17222 (add_bound_info, default): If can't find a context, make a
17224 (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
17226 2002-01-22 Hans-Peter Nilsson <hp@axis.com>
17228 * c-typeck.c (parser_build_binary_op): If result from
17229 build_binary_op is ERROR_MARK just return error_mark_node without
17230 further processing.
17232 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
17234 * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
17235 Split a.out-specific bits into...
17236 * config/netbsd-aout.h: ...this.
17237 * config/netbsd-elf.h: New file.
17238 * config/alpha/netbsd-elf.h: Remove.
17239 * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
17240 * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
17241 (STARTFILE_SPEC): Remove redundant definition.
17242 (ENDFILE_SPEC): Likewise.
17243 (LINK_SPEC): Likewise.
17244 (CPP_SPEC): Likewise.
17245 (ASM_SPEC): Likewise.
17246 (LIB_SPEC): Likewise.
17247 (SWITCH_TAKES_ARG): Likewise.
17248 (TARGET_MEM_FUNCTIONS): Likewise.
17249 (CPP_PREDEFINES): Redefine.
17250 (ASM_FINAL_SPEC): Remove redefinition.
17251 (ASM_COMMENT_START): Redefine.
17252 (FUNCTION_PROFILER): Define.
17253 (TARGET_VERSION): Redefine.
17254 Comment and formatting cleanup.
17255 * config/i386/netbsd.h: Include <netbsd-aout.h>.
17256 * config/m68k/netbsd.h: Include <netbsd-aout.h>.
17257 * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
17258 big- or little-endian.
17259 * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
17260 * config.gcc (*-*-netbsd*): Add definitions common to all
17262 (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
17263 gnu_ld definitions. Add netbsd-elf.h to and remove
17264 alpha/netbsd-elf.h from tm_file. Remove alpha/t-crtfm from
17265 tmake_file, and don't lose previous tmake_file contents.
17266 (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
17267 (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
17268 gnu_ld definitions. Add netbsd-elf.h to tm_file.
17269 (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
17270 (mipsel-*-netbsd*): Rename this to...
17271 (mips*-*-netbsd*): ...this. Add elfos.h to tm_file. Add
17272 mips/little.h to tm_file for mips*el-*.
17273 (powerpc-*-netbsd*): Remove redundant xm_defines definition.
17274 (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
17275 (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
17277 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
17279 * pa-protos.h (reg_before_reload_operand): New function prototype.
17280 * pa.c (reg_before_reload_operand): New function implementation.
17281 * pa.md (decrement_and_branch_until_zero, movb): Use it. Change "!*m"
17282 contraints to "*m".
17284 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
17286 * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
17288 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
17290 * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
17291 (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
17292 (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
17293 (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
17294 (ENDFILE_SPEC): Undefine.
17295 (STARTFILE_SPEC): Redefine for PA.
17297 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
17299 * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
17301 2002-01-21 Daniel Jacobowitz <drow@mvista.com>
17303 * config.gcc: Add entries to supported PowerPC --with-cpu
17306 2002-01-21 Jakub Jelinek <jakub@redhat.com>
17308 * config/i386/i386.c (ix86_function_arg_regno_p): Never return
17309 true for 64-bit mode only SSE registers in 32-bit mode.
17311 2002-01-21 Kazu Hirata <kazu@hxi.com>
17313 * unwind-dw2.c: Fix formatting.
17314 * unwind-dw2-fde.c: Likewise.
17315 * unwind-dw2-fde.h: Likewise.
17316 * unwind-pe.h: Likewise.
17317 * varasm.c: Likewise.
17318 * varray.h: Likewise.
17320 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
17322 Remove workaround for register stack overwrite bug in mmix.
17323 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
17324 support for TARGET_REG_STACK_FILL_BUG.
17325 * config/mmix/mmix.h: Remove member has_call_without_parameters.
17326 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
17328 (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
17329 (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
17330 -mno-reg-stack-fill-bug-workaround.
17331 * config/mmix/mmix.md ("call", "call_value"): Don't set struct
17332 machine member has_call_without_parameters.
17333 * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
17334 -mreg-stack-fill-bug-workaround and
17335 -mno-reg-stack-fill-bug-workaround.
17336 (MMIX Options): Ditto.
17338 2002-01-21 Kazu Hirata <kazu@hxi.com>
17340 * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
17342 Remove redundant code.
17344 2002-01-21 Joseph S. Myers <jsm28@cam.ac.uk>
17346 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
17347 config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
17348 config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
17349 config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
17350 config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
17351 out target macro definitions and non-target-specific comments
17352 mostly taken from old versions of the manual.
17354 2002-01-20 Kazu Hirata <kazu@hxi.com>
17356 * config/h8300/h8300.h: Fix comment formatting.
17357 * config/ia64/aix.h: Likewise.
17358 * config/ia64/ia64-protos.h: Likewise.
17359 * config/ia64/ia64.c: Likewise.
17360 * config/ia64/ia64.h: Likewise.
17361 * config/ia64/ia64intrin.h: Likewise.
17362 * config/ia64/linux.h: Likewise.
17363 * config/ia64/unwind-aix.c: Likewise.
17364 * config/ia64/unwind-ia64.c: Likewise.
17366 2002-01-20 Kazu Hirata <kazu@hxi.com>
17368 * config/h8300/h8300.c: Revise comments about shift code.
17370 2002-01-20 Kazu Hirata <kazu@hxi.com>
17372 * config/h8300/h8300.c (function_arg): Update a comment.
17374 2002-01-20 Kazu Hirata <kazu@hxi.com>
17376 * config/h8300/h8300.md: Update the comments at the beginning
17379 2002-01-20 Kazu Hirata <kazu@hxi.com>
17381 * config/i370/i370.c: Fix comment formatting.
17382 * config/i370/i370.h: Likewise.
17383 * config/i370/i370.md: Likewise.
17384 * config/i370/linux.h: Likewise.
17386 Sun Jan 20 18:40:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17388 * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
17390 * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
17391 (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
17392 in incomplete case.
17394 2002-01-20 Graham Stott <grahams@redhat.com>
17396 * cfgloop.c (flow_loop_preheader_scan): Fix typo.
17398 2002-01-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
17400 * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
17402 2002-01-19 Tom Rix <trix@redhat.com>
17404 * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
17406 2002-01-18 Aldy Hernandez <aldyh@redhat.com>
17408 * doc/tm.texi (STARTING_FRAME_PHASE): Document.
17410 * function.c (assign_stack_local_1): Adjust x_frame_offset with
17411 STARTING_FRAME_PHASE.
17412 (STARTING_FRAME_PHASE): New.
17413 (instantiate_virtual_regs): Check saneness of
17414 STARTING_FRAME_PHASE.
17416 * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
17418 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
17420 * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
17422 2002-01-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
17424 * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
17425 be used for bootstrapping GCC 3.0.
17427 2002-01-18 Kazu Hirata <kazu@hxi.com>
17429 * config/h8300/h8300.md: Fix an insn length.
17431 2002-01-18 Kazu Hirata <kazu@hxi.com>
17433 * bitmap.h: Fix comment formatting.
17434 * combine.c: Likewise.
17435 * cppfiles.c: Likewise.
17436 * c-pragma.h: Likewise.
17437 * c-typeck.c: Likewise.
17439 * dwarf2out.c: Likewise.
17440 * function.c: Likewise.
17442 * genattrtab.c: Likewise.
17443 * gthr-win32.h: Likewise.
17444 * haifa-sched.c: Likewise.
17445 * predict.c: Likewise.
17446 * rtlanal.c: Likewise.
17448 * unwind-dw2-fde.h: Likewise.
17449 * unwind-pe.h: Likewise.
17450 * vmsdbgout.c: Likewise.
17452 Thu Jan 17 15:28:26 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17454 * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
17455 if type_required and passed decl.
17457 2002-01-17 Aldy Hernandez <aldyh@redhat.com>
17459 * config.gcc (cpu_type): Include altivec.h in powerpc
17463 * config/rs6000/altivec.h: New.
17465 2002-01-17 David Edelsohn <edelsohn@gnu.org>
17467 * doc/install.texi (*-ibm-aix*): Update assembler and exception
17468 handling information.
17469 * doc/trouble.texi (Interoperation): Add libstdc++ information
17471 (Misunderstandings): Add template instantiation and static template
17472 member information for AIX.
17474 2002-01-17 Jason Merrill <jason@redhat.com>
17476 * dbxout.c (dbxout_type): Support const and volatile.
17478 * except.c (add_partial_entry): Remove backwards compatibility code.
17479 (end_protect_partials): Likewise.
17481 2002-01-17 Jakub Jelinek <jakub@redhat.com>
17483 * config/ia64/ia64.md (prologue_use): New.
17484 * config/ia64/ia64.c (ia64_expand_prologue): Use
17485 gen_prologue_use instead of gen_rtx_USE.
17486 (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
17487 as CODE_FOR_pred_rel_mutex.
17488 (ia64_sched_reorder2): Likewise.
17490 2002-01-16 Eric Christopher <echristo@redhat.com>
17492 * config/mips/r3900.h: Reformat.
17493 (SUBTARGET_CPP_SIZE_SPEC): Remove.
17494 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
17495 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
17496 (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
17497 * config/mips/t-elf: Remove mips3 multilib.
17499 2002-01-16 H.J. Lu <hjl@gnu.org>
17501 * config/mips/linux.h: Include "mips/abi64.h".
17503 2002-01-16 H.J. Lu <hjl@gnu.org>
17505 * config/mips/t-linux: New.
17507 * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
17509 * config/mips/linux.h: Don't include "gofast.h".
17510 (INIT_SUBTARGET_OPTABS): Removed.
17512 2002-01-16 Kazu Hirata <kazu@hxi.com>
17514 * config/h8300/h8300-protos.h: Replace emit_a_shift with
17516 * config/h8300/h8300.c: Likewise.
17517 * config/h8300/h8300.md: Likewise.
17519 2002-01-16 Kazu Hirata <kazu@hxi.com>
17521 * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
17522 spaces after an opcode name.
17523 (pushqi1_h8300hs): Likewise.
17524 (pushhi1_h8300hs): Likewise.
17526 2002-01-16 Kazu Hirata <kazu@hxi.com>
17528 * doc/extend.texi: Replace "option" with "attribute"
17531 2002-01-16 Jakub Jelinek <jakub@redhat.com>
17533 * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
17534 (and:DI () (const_int -8)).
17535 (split_small_symbolic_mem_operand): Split
17536 (mem (and:DI () (const_int -8)).
17538 2002-01-16 Jakub Jelinek <jakub@redhat.com>
17541 * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
17542 same way as TYPE_IMUL.
17543 (ultrasparc_sched_reorder): Likewise.
17544 * config/sparc/sparc.md (type): Add comment to update
17545 ultrasparc_sched_reorder when making changes.
17547 2002-01-16 Kazu Hirata <kazu@hxi.com>
17549 * doc/invoke.texi: Change the dump file name of block
17550 reordering pass from 28.bbro to 29.bbro.
17551 Mention -dk option.
17553 Wed Jan 16 17:54:22 CET 2002 Jan Hubicka <jh@suse.cz>
17555 * i386.md (minsf splitter): Fix pasto.
17557 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
17559 * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
17560 to frame pointer initialisation instruction.
17561 (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
17562 initialisation instruction.
17563 (soft_df_operand): Do not accept the IP register.
17564 (nonimmediate_soft_df_operand): Do not accept the IP register.
17566 2002-01-16 Jakub Jelinek <jakub@redhat.com>
17569 * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
17570 MASK_V8 being both set.
17572 2002-01-16 Ulrich Weigand <uweigand@de.ibm.com>
17574 * config/s390/s390.c (s390_emit_prologue): Do not emit USE
17575 insn for GOT register; add REG_MAYBE_DEAD notes instead.
17576 config/s390/s390.md (call, call_value): Add GOT register to
17577 CALL_INSN_FUNCTION_USAGE where needed.
17578 (call_exp, call_value_exp): New.
17580 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
17582 * config/arm/arm.c: General formatting tidy up.
17584 2002-01-16 Graham Stott <grahams@redhat.com>
17586 * calls.c (try_to_integrate): Use "(size_t)" intermediate
17587 cast and when casting an integer literal to "rtx" pointer.
17588 (expand_call): Likewise.
17589 * flow.c (try_pre_increment): Likewise.
17590 (find_use_as_address): Likewise.
17591 * integrate.c (expand_iline_function): Likewise.
17592 * regmove.c (try_auto_increment): Likewise.
17594 2002-01-16 Graham Stott <grahams@redhat.com>
17596 * sched-rgn.c (passed): Use sbitmap_free.
17597 (header): Likewise.
17599 (in_queue): Likewise.
17600 (in_stack): Likewise.
17602 2002-01-15 Eric Christopher <echristo@redhat.com>
17604 * flow.c (propagate_one_insn): Change to use fatal_insn.
17606 2002-01-15 Kazu Hirata <kazu@hxi.com>
17608 * expmed.c (extract_fixed_bit_field): Remove unused code.
17609 * system.h: Poison SLOW_ZERO_EXTEND.
17610 * doc/tm.texi: Remove.
17611 * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
17612 * config/arm/arm.h: Likewise.
17613 * config/avr/avr.h: Likewise.
17614 * config/clipper/clipper.h: Likewise.
17615 * config/convex/convex.h: Likewise.
17616 * config/d30v/d30v.h: Likewise.
17617 * config/dsp16xx/dsp16xx.h: Likewise.
17618 * config/elxsi/elxsi.h: Likewise.
17619 * config/fr30/fr30.h: Likewise.
17620 * config/h8300/h8300.h: Likewise.
17621 * config/i370/i370.h: Likewise.
17622 * config/i386/i386.h: Likewise.
17623 * config/m68k/m68k.h: Likewise.
17624 * config/mips/mips.h: Likewise.
17625 * config/ns32k/ns32k.h: Likewise.
17626 * config/pdp11/pdp11.h: Likewise.
17627 * config/pj/pj.h: Likewise.
17628 * config/s390/s390.h: Likewise.
17629 * config/sh/sh.h: Likewise.
17630 * config/stormy16/stormy16.h: Likewise.
17631 * config/v850/v850.h: Likewise.
17632 * config/vax/vax.h: Likewise.
17633 * config/we32k/we32k.h: Likewise.
17635 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
17637 * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
17638 (altivec_lvsl): Change constraint to b.
17639 (altivec_lvsr): Same.
17640 (altivec_lvebx): Same.
17641 (altivec_lvehx): Same.
17642 (altivec_lvewx): Same.
17643 (altivec_lvxl): Same.
17644 (altivec_lvx): Same.
17645 (altivec_stvx): Add parallel.
17646 (altivec_stvxl): Same.
17647 (altivec_stvehx): Same.
17648 (altivec_stvebx): Same.
17649 (altivec_stvebx): Same.
17651 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
17653 * config.gcc: Change altivec.h to altivec-defs.h.
17655 * config/rs6000/altivec.h: Delete.
17657 * config/rs6000/altivec-defs.h: Add.
17659 2002-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
17661 * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
17664 * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
17665 less than or equal to eight bytes.
17667 * vax.md (andsi3): Remove constraints and change SET destination
17668 operand type to nonimmediate_operand.
17669 (andhi3, andqi3): Likewise. Don't clear high order bits of operand 1
17670 when it is a CONST_INT.
17672 2002-01-15 Jason Merrill <jason@redhat.com>
17674 * c-common.def (FILE_STMT): New code.
17675 * c-common.c (statement_code_p): It's a statement.
17676 * c-common.h (stmt_tree_s): Add x_last_filename.
17677 (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
17678 (last_expr_filename): New macro.
17679 * c-semantics.c (begin_stmt_tree): Initialize it.
17680 (add_stmt): If the filename changed, also insert a
17682 (expand_stmt): Handle seeing one.
17684 2002-01-15 Eric Christopher <echristo@redhat.com>
17686 * flow.c (propagate_one_insn): Add error message and print out
17687 insn for debugging.
17689 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
17691 * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
17692 ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
17693 * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
17694 TRAMPOLINE_ALIGNMENT.
17695 * config/arm/arm.h, config/mcore/mcore.h: Likewise. Change value
17697 * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
17698 PCC_BITFIELD_TYPE_MATTERS.
17699 * config/interix.h (STDC_VALUE): Remove. Use
17700 STDC_0_IN_SYSTEM_HEADERS.
17701 * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
17702 (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
17703 ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
17705 2002-01-15 Craig Rodrigues <rodrigc@gcc.gnu.org>
17707 * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
17708 not work on this platform currently.
17710 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
17712 * c-typeck.c (build_unary_op): Don't wrap msgid argument of
17713 readonly_warning in _().
17715 2002-01-15 Douglas B Rupp <rupp@gnat.com>
17717 * gcc.c (delete_if_ordinary): Backout previous change.
17719 2002-01-15 Kazu Hirata <kazu@hxi.com>
17721 * config/h8300/h8300.c (print_operand): Remove support for
17722 unused operand characters.
17724 * read-rtl.c: Fix formatting.
17725 * real.c: Likewise.
17726 * recog.c: Likewise.
17727 * regclass.c: Likewise.
17728 * regmove.c: Likewise.
17729 * reg-stack.c: Likewise.
17730 * reload1.c: Likewise.
17731 * rtlanal.c: Likewise.
17733 2002-01-15 Kazu Hirata <kazu@hxi.com>
17735 * config/i386/i386.c: Fix formatting.
17737 2002-01-15 Jakub Jelinek <jakub@redhat.com>
17739 * c-typeck.c (process_init_element): Don't save_expr
17740 COMPOUND_LITERAL_EXPR if just its initializer will be used.
17742 2002-01-15 David Edelsohn <edelsohn@gnu.org>
17744 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
17745 emit optional traceback table if optimize_size or TARGET_ELF.
17746 * config/rs6000/rs6000.md (prefetch): New.
17748 2002-01-15 Andreas Jaeger <aj@suse.de>
17750 * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
17752 2002-01-15 Kazu Hirata <kazu@hxi.com>
17754 * mips-tfile.c: Fix formatting.
17756 Tue Jan 15 00:56:11 CET 2002 Jan Hubicka <jh@suse.cz>
17758 * unroll.c (final_reg_note_copy): Fix previous commit.
17760 2002-01-14 Kazu Hirata <kazu@hxi.com>
17762 * config/h8300/h8300-protos.h: Remove the prototype for
17764 * config/h8300/h8300.c (eq_operator): Remove.
17766 2002-01-14 Richard Henderson <rth@redhat.com>
17768 * config/i386/i386.md (prefetch): Tidy.
17769 (prefetch_3dnow): Fix locality operand.
17771 2002-01-14 Richard Henderson <rth@redhat.com>
17773 * config/mips/mips.h (HI_AND_FP_REGS): New register class.
17774 (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
17776 2002-01-14 Hans-Peter Nilsson <hp@bitrange.com>
17778 * reload1.c (reload_combine): Pass reg_sum replacement through
17779 copy_rtx in loop performing multiple changes.
17781 2002-01-14 Jakub Jelinek <jakub@redhat.com>
17783 * except.c (remove_unreachable_regions): New.
17784 (free_eh_status): Clear exception_handler_labels.
17785 (convert_from_eh_region_ranges): Call remove_unreachable_regions.
17786 (find_exception_handler_labels): Don't add the same label more than
17788 (remove_exception_handler_label): Don't die if
17789 find_exception_handler_labels hasn't been called for the current
17792 Mon Jan 14 21:26:13 CET 2002 Jan Hubicka <jh@suse.cz>
17794 * toplev.c (rest_of_compilation): Rebuild jump labels after
17797 2002-01-14 Joseph S. Myers <jsm28@cam.ac.uk>
17799 * doc/extend.texi: Move documentation of X86 built-in functions
17801 * doc/invoke.texi: From here.
17802 * doc/sourcebuild.texi: Document location of documentation for
17803 machine built-in functions.
17805 2002-01-13 Christopher Faylor <cgf@redhat.com>
17807 * cppfiles.c (TEST_THRESHOLD): New macro.
17808 (SHOULD_MMAP): Ditto.
17809 (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
17812 Mon Jan 14 20:23:34 CET 2002 Jan Hubicka <jh@suse.cz>
17814 * unroll.c (final_reg_note_copy): Properly handle
17816 (unroll_loops): Fix LOOP_CONDITION heuristics.
17818 2002-01-14 Geoffrey Keating <geoffk@redhat.com>
17820 * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
17821 * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
17823 Mon Jan 14 20:18:19 CET 2002 Jan Hubicka <jh@suse.cz>
17825 * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
17828 2002-01-14 Tom Rix <trix@redhat.com>
17830 * config/rs6000/rs6000.md: Fix typo with sradi.
17832 2002-01-14 Ulrich Weigand <uweigand@de.ibm.com>
17834 * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
17835 movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
17836 (clrstrdi, clrstrsi): Adapt callers.
17838 (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
17840 (movti splitter): Never use register 0 as base register.
17842 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
17844 * combine.c (simplify_shift_const): Always generate new rtx
17845 for shift expression instead of reusing given expression.
17847 Mon Jan 14 07:08:55 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17849 * config/alpha/alpha.c (alpha_expand_mov): Don't call
17850 alpha_legitimize_address unless mode is Pmode.
17852 2002-01-13 Geoffrey Keating <geoffk@redhat.com>
17854 * doc/md.texi (Modifiers): Document the '*' constraint for the
17857 * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
17858 * doc/extend.texi (Function Attributes): 'interrupt' is valid
17861 2002-01-13 Richard Henderson <rth@redhat.com>
17863 * reload.c (find_reloads): Use a hard reg destination as reload reg
17864 for an input reload of the source.
17866 2002-01-13 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
17868 * doc/install.texi (Binaries): Make link to ftp.writtenword.com
17871 Sun Jan 13 07:23:01 2002 Douglas B Rupp <rupp@gnat.com>
17873 * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
17874 * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
17876 * config/alpha/x-vms (USE_COLLECT2): Set to empty.
17878 Sun Jan 13 06:55:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17880 * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
17882 2002-01-12 Tom Rix <trix@redhat.com>
17884 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
17887 2002-01-12 Richard Henderson <rth@redhat.com>
17889 * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
17891 * doc/invoke.texi: Update Alpha options.
17893 * doc/invoke.texi: Update i386 built-in function lists.
17895 Sat Jan 12 17:38:11 CET 2002 Jan Hubicka <jh@suse.cz>
17897 * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
17898 referencing outside.
17900 Sat Jan 12 08:54:51 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17902 * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
17903 * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
17904 offsets, and change line folding.
17905 * optabs.c (expand_binop): Remove warnings.
17906 * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
17908 2002-01-12 Graham Stott <grahams@redhat.com>
17910 * attribs.c (handle_deprecated_attribute): constify WHAT.
17911 * diagnostic.c (warn_deprecated_use): Add braces, fixes
17912 dangling else warning and constify WHAT.
17913 * except.h (struct function, struct inline_remap): Move
17914 struct tag forward defs before all prototypes.
17915 (duplicate_eh_regions): Whitespace.
17917 2002-01-12 Nick Clifton <nickc@cambridge.redhat.com>
17919 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
17920 MODE_BASE_REG_CLASS.
17921 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
17923 2002-01-12 Richard Henderson <rth@redhat.com>
17925 * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
17926 (ix86_expand_vector_move): New.
17927 (bdesc_2arg): Remove andps, andnps, orps, xorps.
17928 (ix86_init_mmx_sse_builtins): Make static. Remove composite builtins.
17929 Remove old prefetch builtins. Special case the logicals removed above.
17930 (ix86_expand_builtin): Likewise.
17931 (safe_vector_operand): Use V4SFmode, not TImode.
17932 (ix86_expand_store_builtin): Remove shuffle arg. Update callers.
17933 (ix86_expand_timode_binop_builtin): New.
17934 * config/i386/i386-protos.h: Update.
17935 * config/i386/i386.h (enum ix86_builtins): Update.
17936 * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
17937 Use ix86_expand_vector_move in vector move expanders.
17938 (movti_internal, movti_rex64): Add xorps alternative.
17939 (sse_clrv4sf): Rename and adjust from sse_clrti.
17940 (prefetch): Don't work so hard.
17941 (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
17942 * config/i386/xmmintrin.h (__m128): Use V4SFmode.
17943 (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
17945 2002-01-11 Richard Henderson <rth@redhat.com>
17947 * config/i386/mmintrin.h: New file.
17948 * config/i386/xmmintrin.h: New file.
17949 * config.gcc (i?86-*-*): Add extra_headers.
17950 * simplify-rtx.c (simplify_unary_operation): Handle saturating
17952 (simplify_binary_operation): Handle saturating arithmetic codes.
17953 * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
17954 not the lowpart subreg.
17955 (ix86_expand_builtin): Return a TImode dummy register instead of 0
17957 * config/i386/i386.md (mmx_clrdi): Override memory attribute.
17959 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
17961 * conflict.c (conflict_graph_compute): Free regsets when finished.
17962 * ssa.c (compute_coalesced_reg_partition): Likewise.
17964 2002-01-12 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
17966 * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
17967 every where we allocate a register.
17969 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
17971 * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
17972 * lcm.c (compute_earliest, compute_farthest): Likewise.
17974 2002-01-11 Janis Johnson <janis187@us.ibm.com>
17976 * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
17978 2002-01-11 Janis Johnson <janis187@us.ibm.com>
17980 * doc/rtl.texi (Insns): Fix 2 typos.
17982 2002-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
17984 * doc/invoke.texi: Avoid overfull hboxes. Add summary of D30V
17985 options. Use @table @gcctabopt for MMIX options. Add index
17986 entries for MMIX options. Start new paragraph with first
17987 heading of the machine-dependent options.
17989 2002-01-11 Craig Rodrigues <rodrigc@gcc.gnu.org>
17992 * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
17993 * combine.c (force_to_mode): Same.
17994 * reload1.c (clear_reload_reg_in_use): Same.
17996 2002-01-11 Nick Clifton <nickc@cambridge.redhat.com>
17998 * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
18001 2002-01-11 Andreas Jaeger <aj@suse.de>,
18002 Brad Lucier <lucier@math.purdue.edu>
18004 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
18007 Fri Jan 11 07:35:12 2002 Douglas B Rupp <rupp@gnat.com>
18009 * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
18010 Protect with IN_LIBGCC.
18011 (LINK_EH_SPEC): Add required trailing space.
18013 Fri Jan 11 09:25:05 2002 Nicola Pero <n.pero@mi.flashnet.it>
18015 * c-tree.h: Move function declarations so that they are listed
18016 under the filename which contains them.
18017 (check_identifier, finish_decl_top_level,
18018 lookup_name_current_level_global, shadow_record_fields): Remove.
18020 2002-01-11 Andreas Jaeger <aj@suse.de>
18022 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
18025 2002-01-10 Richard Henderson <rth@redhat.com>
18027 * config/alpha/alpha.c (print_operand): Add 'J'.
18028 * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
18029 new operand with the sequence number for the lituse. When splitting
18030 the insns, use gen_movdi_er_high_g and generate a sequence number.
18031 (gen_movdi_er_high_g): Print the sequence number if non-zero.
18033 2002-01-10 Aldy Hernandez <aldyh@redhat.com>
18035 * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
18036 lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
18038 (altivec_expand_builtin): Same.
18039 (altivec_expand_stv_builtin): New.
18041 * config/rs6000/rs6000.h (rs6000_builtins): Same.
18043 * config/rs6000/rs6000.md ("altivec_lvebx"): New.
18044 ("altivec_lvehx"): New.
18045 ("altivec_lvewx"): New.
18046 ("altivec_lvxl"): New.
18047 ("altivec_lvx"): New.
18048 ("altivec_stvx"): New.
18049 ("altivec_stvebx"): New.
18050 ("altivec_stvehx"): New.
18051 ("altivec_stvewx"): New.
18052 ("altivec_stvxl"): New.
18054 2002-01-10 Richard Henderson <rth@redhat.com>
18056 * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
18057 * reload1.c (delete_output_reload): Zap spill_reg_store. Take
18058 care not to delete instructions twice.
18060 2002-01-10 Zack Weinberg <zack@codesourcery.com>
18062 * toplev.c: Don't declare environ (it's not used anywhere).
18063 * configure.in: Don't check for declaration of environ.
18064 * config/i386/xm-mingw32.h: Don't #define environ.
18065 * config.in, configure: Regenerate.
18067 2002-01-10 Zack Weinberg <zack@codesourcery.com>
18069 * configure.in: Set stage1_cflags for powerpc-*-darwin*.
18070 * configure: Regenerate.
18072 * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
18073 DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
18074 * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
18076 * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
18077 LIMITS_H_TEST here, not in m68k/x-next.
18078 * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
18079 SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
18081 * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
18082 LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
18083 * config/alpha/x-vms: Don't set USE_COLLECT2. Add comments.
18085 * config/i386/x-djgpp: Renamed i386/t-djgpp.
18086 * config/m88k/x-dolph: Renamed m88k/t-dolph.
18087 * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
18088 * config/pa/x-pa-mpeix: Renamed pa/t-mpeix. Update for
18089 replacement of quadlib.asm with quadlib.c.
18091 * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
18092 config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
18093 config/rs6000/xm-beos.h: Delete file.
18095 * config.gcc: Update to match above changes.
18097 2002-01-10 Kazu Hirata <kazu@hxi.com>
18099 * config/h8300/h8300.h: Fix comment typos.
18100 * config/h8300/h8300.md: Likewise.
18101 * config/h8300/lib1funcs.asm: Likewise.
18103 2002-01-10 Dale Johannesen <dalej@apple.com>
18105 PR optimization/5269
18106 * unroll.c (precondition_loop_p): Make *increment be the correct
18107 sign when n_iterations known, to avoid confusing caller.
18109 2002-01-10 Kazu Hirata <kazu@hxi.com>
18111 * doc/extend.texi (deprecated): Fix a typo.
18113 Thu Jan 10 22:35:54 CET 2002 Jan Hubicka <jh@suse.cz>
18115 * basic-block.h (update_br_prob_note): Declare.
18116 * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
18117 (try_forward_edges): Care negative frequencies and update note.
18118 (outgoing_edges_match): Tweek conditional merging heuristics.
18119 (try_crossjump_to_edge): use update_br_prob_note.
18120 * cfglayout.c (fixup_reorder_chain): Likewise.
18121 * cfrtl.c (update_br_prob_note): New.
18122 * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
18124 * i386.c (ix86_decompose_address): Return -1 if address contains
18126 (legitimate_address_p): Require ix86_decompose_address to return 1.
18128 * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
18129 (cprop_insn): Likewise.
18131 2002-01-10 Kazu Hirata <kazu@hxi.com>
18133 * toplev.c: Fix formatting.
18134 * tree.c: Likewise.
18135 * tree-dump.c: Likewise.
18136 * unroll.c: Likewise.
18137 * unwind-dw2.c: Likewise.
18138 * unwind-dw2-fde.c: Likewise.
18139 * unwind-dw2-fde-glibc.c: Likewise.
18140 * unwind-sjlj.c: Likewise.
18142 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
18144 * doc/invoke.texi: Document PDP-11 options.
18146 2002-01-10 Kazu Hirata <kazu@hxi.com>
18148 * config/h8300/h8300.h: Fix formatting.
18150 2002-01-10 Ira Ruben <ira@apple.com>
18152 Add __attribute__ ((deprecated)).
18153 * extend.texi: Document __attribute__ ((deprecated)).
18154 * invoke.texi: Document -Wno-deprecated-declarations.
18155 * testsuite/g++.dg/other/deprecated.C: New C++ test.
18156 * testsuite/gcc.dg/deprecated.c: New C test.
18157 * attribs.c (enum attrs): Declare handle_deprecated_attribute().
18158 (c_common_attribute_table): Add "deprecated" entry.
18159 (handle_deprecated_attribute): New function.
18160 * c-decl.c (deprecated_states): New enum.
18161 deprecated_state: State of "deprecated" handling.
18162 (start_decl): Set deprecated_state based on attributes.
18163 (grokdeclarator): Test for deprecated uses, propagate attribute.
18164 * c-typeck.c (build_component_ref): Test for deprecated fields.
18165 (build_external_ref): Test for deprecated primaries.
18166 * diagnostic.c (warn_deprecated_use) New function to issue
18167 warnings about __attribute__ ((depricated)) references.
18168 * flags.h (warn_deprecated_decl): Extern declared for
18169 -W[no-]deprecated-declarations option.
18170 * print-tree.c (print_node): Show deprecated flag status.
18171 * toplev.c (warn_deprecated_decl): Defined.
18172 (W_options): Added "deprecated-declaration".
18173 * toplev.h (warn_deprecated_use): Extern declared.
18174 * tree.h (struct tree_common): Define deprecated_flag.
18175 (TREE_DEPRECATED): New macro to access flag.
18176 * cp/call.c (build_call): Test for deprecated calls.
18177 * cp/class.c (add_implicitly_declared_members): Set global
18178 flag to tell grokdeclarator to not issue deprecated warnings.
18179 * cp/cp-tree.h: Add extern for adding_implicit_members.
18180 * cp/decl.c (deprecated_states): New enum.
18181 (start_decl): Set deprecated_state based on attributes.
18182 (grokdeclarator): Test for deprecated uses, propagate attribute.
18183 * cp/lex.c (do_identifier): Test for deprecated primaries.
18184 * cp/typeck.c (build_component_ref): Test for deprecated fields.
18186 2002-01-10 Ira Ruben <ira@apple.com>
18188 Fix to assign attributes to inline member functions.
18189 * cp/decl.c (start_method): Handle attrlist.
18191 2002-01-10 Kazu Hirata <kazu@hxi.com>
18193 * combine.c (expand_field_assignment): Use subreg_lsb().
18195 2002-01-10 David Edelsohn <edelsohn@gnu.org>
18197 * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
18198 POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
18199 (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
18200 Recurse for any operand of AND as long as constant is non-zero.
18202 2002-01-10 Kazu Hirata <kazu@hxi.com>
18204 * config/h8300/h8300.md: Remove constraints from expanders.
18206 2002-01-10 Kazu Hirata <kazu@hxi.com>
18208 * varasm.c: Fix formatting.
18209 * varray.c: Likewise.
18210 * vmsdbgout.c: Likewise.
18211 * xcoffout.c: Likewise.
18213 Thu Jan 10 17:19:12 CET 2002 Jan Hubicka <jh@suse.cz>
18215 * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
18216 update edge probabilities to match.
18218 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
18220 * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
18222 * doc/languages.texi, doc/sourcebuild.texi: New files.
18223 * doc/configfiles.texi: Make a subsubsection. Update.
18224 * doc/configterms.texi: Add @node. Remove warning that this isn't
18225 instructions for building GCC.
18226 * doc/makefile.texi: Make a subsection.
18227 * doc/gccint.texi: Update.
18229 Thu Jan 10 16:39:58 CET 2002 Jan Hubicka <jh@suse.cz>
18231 * i386.md (sse_mov?fcc_const0_?): Fix constraints.
18233 Thu Jan 10 12:45:50 2002 Nicola Pero <n.pero@mi.flashnet.it>
18235 * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
18237 Thu Jan 10 11:19:18 CET 2002 Jan Hubicka <jh@suse.cz>
18239 * optabs.c (expand_fix): Look for wider integer modes first.
18241 * i386.md (mov?f): Avoid the fake const double trick for medium
18243 (min?f*/max?f*): Prohibit memory operands for i387 variant.
18244 (fop_df_4): Disable for SSE compilation.
18246 2002-01-10 Graham Stott <grahams@redhat.com>
18248 * dwarf2out.c (indirect_string_alloc, output_indirect_string):
18249 Move prototype into DWARF2_DEBUGGING_INFO conditional block.
18251 2002-01-10 Richard Henderson <rth@redhat.com>
18253 * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
18255 2002-01-10 Richard Henderson <rth@redhat.com>
18257 * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
18258 (copyprop_hardreg_forward_1): Likewise. Use mode_change_ok.
18260 2002-01-10 Kazu Hirata <kazu@hxi.com>
18262 * combine.c (can_combine_p): Fix a comment typo.
18264 2002-01-09 Zack Weinberg <zack@codesourcery.com>
18266 * Makefile.in (s-gencheck, s-options, s-specs): Handle an
18267 empty list correctly. Change loop index $t to $f for
18268 consistency with rest of Makefile.
18270 2002-01-08 Aldy Hernandez <aldyh@redhat.com>
18272 * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
18273 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
18275 * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
18276 mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
18277 (altivec_init_builtins): Same.
18278 (altivec_expand_unop_builtin): Return NULL_RTX on error.
18279 (altivec_expand_binop_builtin): Same.
18280 (altivec_expand_ternop_builtin): Same.
18283 * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
18284 ("altivec_vctuxs"): Fix typo.
18285 ("altivec_vnmsubfp"): Same.
18286 ("altivec_dssall"): New.
18287 ("altivec_mfvscr"): New.
18288 ("altivec_dss"): New.
18289 ("altivec_lvsl"): New.
18290 ("altivec_lvsr"): New.
18291 ("altivec_dstt"): New.
18292 ("altivec_dstst"): New.
18293 ("altivec_dststt"): New.
18294 ("altivec_dst"): New.
18296 * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
18297 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
18299 2002-01-09 Richard Henderson <rth@redhat.com>
18301 * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
18303 2002-01-10 Hans-Peter Nilsson <hp@bitrange.com>
18305 * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
18307 * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
18309 * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
18311 2002-01-09 Kazu Hirata <kazu@hxi.com>
18313 * read-rtl.c: Fix formatting.
18314 * real.c: Likewise.
18315 * regclass.c: Likewise.
18316 * regrename.c: Likewise.
18317 * reg-stack.c: Likewise.
18318 * reload1.c: Likewise.
18319 * reload.c: Likewise.
18322 2002-01-09 Kazu Hirata <kazu@hxi.com>
18324 * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
18325 to extract items in the expr_list chain.
18327 2002-01-09 Richard Henderson <rth@redhat.com>
18329 * config/vax/vax.c (vax_rtx_cost): Never abort.
18331 * config/vax/vax.h (REAL_ARITHMETIC): Define.
18333 2002-01-09 Jan Hubicka <jh@suse.cz>
18335 * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
18337 2002-01-09 Richard Henderson <rth@redhat.com>
18339 * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
18340 Unify code from various alternatives.
18342 2002-01-09 Richard Henderson <rth@redhat.com>
18344 * regrename.c (copy_value): Ignore the copy if the source register
18345 is present in the value chain with a narrower mode.
18347 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
18349 * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
18350 for the c4x target. Also improve layout.
18352 2002-01-09 Richard Henderson <rth@redhat.com>
18354 * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
18355 * config/m32r/m32r.md (and ior xor splitters): Swap operands
18356 to match insn patterns.
18358 2002-01-09 Richard Henderson <rth@redhat.com>
18360 * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
18361 (copyprop_hardreg_forward_1): Likewise.
18363 2002-01-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
18365 * pa.md (decrement_and_branch_until_zero): Change predicate for
18366 operand 0 from register_operand to reg_or_nonsymb_mem_operand.
18368 2002-01-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
18370 * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
18371 gets undefined. For Darwin.
18373 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
18375 * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
18377 2002-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
18379 * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
18381 2002-01-08 Richard Henderson <rth@redhat.com>
18383 * regrename.c (copy_value): Ignore overlapping copies.
18385 2002-01-08 Richard Henderson <rth@redhat.com>
18387 * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
18388 as needed to avoid shared structure.
18390 2002-01-08 Kazu Hirata <kazu@hxi.com>
18392 * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
18395 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
18397 * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
18398 LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
18399 documentation of obsolete macros.
18400 * system.h: Poison these macros.
18401 * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
18402 config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
18403 config/c4x/c4x.h, config/clipper/clipper.h,
18404 config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
18405 config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
18406 config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
18407 config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
18408 config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
18409 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
18410 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
18411 config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
18412 config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
18413 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
18414 config/sparc/sparc.h, config/stormy16/stormy16.h,
18415 config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
18416 definitions and commented out definitions of obsolete macros.
18417 * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
18418 of MAX_INT_TYPE_SIZE.
18420 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
18422 * config/s390/s390.c (s390_preferred_reload_class): Never
18423 return ADDR_REGS if it isn't a subset of the given class.
18424 * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
18425 FP_REGS, but all superclasses as well.
18427 * config/s390/s390.c (s390_function_profiler): Fix thinko.
18429 * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
18430 cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
18431 must not be a const_int.
18433 2002-01-08 Richard Henderson <rth@redhat.com>
18435 * Makefile.in (toplev.o): Depend on options.h.
18436 (gcc.o): Depend on specs.h.
18438 2002-01-08 Jakub Jelinek <jakub@redhat.com>
18440 * expr.c (store_expr): Convert VOIDmode constants back to target's
18443 2002-01-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
18445 * doc/invoke.texi: Markup gcc as @command. Refer to
18446 http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
18447 of http://gcc.gnu.org/thanks.html.
18449 2002-01-08 Dale Johannesen <dalej@apple.com>
18451 * config/rs6000/rs6000.md: Add missing int register
18452 target case to movdf_low.
18454 2002-01-08 Zack Weinberg <zack@codesourcery.com>
18456 * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
18457 except.h. Remove commands to define USING_SJLJ_EXCEPTIONS.
18458 (cppinit.o): Depend on except.h.
18459 (gencheck.h, options.h, specs.h, s-gencheck, s-options,
18460 s-specs): New rules.
18462 * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
18463 Don't create specs.h/options.h/gencheck.h here. Remove
18464 unnecessary variable settings from last argument of AC_OUTPUT.
18465 * config.in, configure: Regenerate.
18466 * intl.c: Hardcode package name as "gcc".
18468 * cppinit.c: Include except.h.
18469 (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
18471 * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
18472 Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
18473 (!)USING_SJLJ_EXCEPTIONS.
18474 * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
18476 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
18478 * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
18479 ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
18480 OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
18481 documentation of obsolete macros.
18482 * system.h: Poison these macros.
18483 * config/d30v/d30v.h, config/ns32k/encore.h,
18484 config/stormy16/stormy16.h: Remove definitions and commented out
18485 definitions of obsolete macros.
18487 Tue Jan 8 15:56:41 2002 Nicola Pero <nicola@brainstorm.co.uk>
18489 * objc/objc-act.c (handle_class_ref): Mark the declaration of
18490 %sobjc_class_ref_%s as used - to prevent unwanted compiler
18493 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
18495 * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
18496 * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
18497 to insn adjusting stack/frame pointer.
18498 * config/s390/s390.md (reload_la_64, reload_la_31): Do not
18499 accept operands that cause the insn to be non-splittable.
18501 2002-01-08 Graham Stott <grahams@redhat.com>
18503 * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
18504 (C_TYPE_FIELDS_VOLATILE): Likewise.
18505 (C_TYPE_BEING_DEFINED): Likewise.
18506 (C_IS_RESERVED_WORD): Likewise.
18507 (C_TYPE_VARIABLE_SIZE): Likewise.
18508 (C_DECL_VARIABLE_SIZE): Likewise.
18509 (C_MISSING_PROTOTYPE_WARNED): Likewise.
18510 (C_SET_EXP_ORIGINAL_CODE): Likewise.
18511 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
18513 (C_DECL_ANTICIPATED): Likewise.
18514 (c_build_type_variant): Add parenthesis.
18516 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
18518 * gcc.c (option_map): Remove --version.
18519 (process_command): Handle -fversion following the GNU Coding
18520 Standards. Partially addresses PR other/704.
18522 2002-01-08 Graham Stott <grahams@redhat.com>
18524 * combine.c (combine_instructions): Fix typo.
18526 2002-01-08 Graham Stott <grahams@redhat.com>
18528 * debug.h: Use "tree" and "rtx" throughout.
18530 * debug.c: Likewise.
18532 2002-01-08 Nick Clifton <nickc@cambridge.redhat.com>
18534 * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
18535 constant pool, use the pool's version of the symbol instead.
18537 2002-01-07 Richard Henderson <rth@redhat.com>
18539 * regrename.c (find_oldest_value_reg): Ignore the value chain if
18540 the original register was copied in a mode with a fewer number of
18541 hard registers than the desired mode.
18542 (copyprop_hardreg_forward_1): Likewise.
18543 (debug_value_data): Fix loop test.
18544 * toplev.c (parse_options_and_default_flags): Reenable
18545 -fcprop-registers at -O1.
18547 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
18549 * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
18550 (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
18552 * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
18555 * config/rs6000/rs6000.md: Add altivec predicate patterns.
18557 2002-01-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
18559 * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
18560 (pa_output_function_prologue): Output local label at the beginning of
18561 the prologue when profiling.
18562 (hppa_profile_hook): Use the local label rather than the function label.
18563 * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
18565 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
18567 * config/rs6000/rs6000.c (print_operand): Remove extra space.
18568 (altivec_expand_unop_builtin): Fix thinko.
18569 (altivec_expand_binop_builtin): Same.
18570 (altivec_expand_ternop_builtin): Same.
18571 (altivec_expand_builtin): Same.
18573 2002-01-07 Richard Henderson <rth@redhat.com>
18575 * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
18577 2002-01-07 Jason Merrill <jason@redhat.com>
18579 * unwind-dw2.c (execute_cfa_program): Use < again.
18581 2002-01-07 Jakub Jelinek <jakub@redhat.com>
18583 * predict.c (combine_predictions_for_insn): Avoid division by zero.
18585 2002-01-07 Jakub Jelinek <jakub@redhat.com>
18587 * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
18588 Don't allow -1 - x -> ~x simplifications in the first pass.
18590 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
18592 * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
18594 (altivec_expand_binop_builtin): Same.
18595 (altivec_expand_unop_builtin): Same.
18596 (print_operand): Fix typo.
18597 (bdesc_1arg): Add vupk* variants.
18599 * rs6000.h (rs6000_builtins): Add vupk* enums.
18601 * rs6000.md: Add altivec_vupk* variants.
18603 2002-01-07 Joseph S. Myers <jsm28@cam.ac.uk>
18605 * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
18606 doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
18607 and last update dates.
18609 2002-01-07 Janis Johnson <janis187@us.ibm.com>
18611 * doc/rtl.texi (Flags): Clean up documentation of RTL flags
18613 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
18615 * config/avr/avr.c (avr_mcu_types): Add new MCU types.
18616 * config/avr/avr.h (CPP_SPEC): Likewise.
18617 (LINK_SPEC): Likewise.
18618 (CRT_BINUTILS_SPECS): Likewise.
18619 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
18620 * doc/invoke.texi (AVR Options): Document them.
18622 Mon Jan 7 11:59:34 CET 2002 Jan Hubicka <jh@suse.cz>
18624 * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
18627 2002-01-07 Graham Stott <grahams@redhat.com>
18629 * config/i386/i386.h: Update copyright date.
18630 (HALF_PIC_PTR): Add parenthesis.
18631 (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
18632 (CONSTANT_ALIGNMENT): Add parenthesis.
18633 (DATA_ALIGNMENT): Likewise.
18634 (LOCAL_ALIGNMENT): Likewise.
18635 (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
18636 (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
18637 (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
18638 (HARD_REGNO_NREGS): Add paranethesis.
18639 (VALID_SSE_REG_MODE): Whitespace.
18640 (VALID_MMX_REG_MODE): Whitespace.
18641 (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
18642 (ix86_hard_regno_mode_ok): Add parenthesis.
18643 (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
18644 (RETURN_IN_MEMORY): Whitespace.
18645 (N_REG_CLASSES): Add parenthesis.
18646 (INTEGER_CLASS_P): Add parenthesis and wrap.
18647 (FLOAT_CLASS_P): Likewise.
18648 (SSE_CLASS_P): Likewise.
18649 (MMX_CLASS_P): Likewise.
18650 (MAYBE_INTEGER_CLASS_P): Likewise.
18651 (MAYBE_FLOAT_CLASS_P): Likewise.
18652 (MAYBE_SSE_CLASS_P): Likewise.
18653 (MAYBE_MMX_CLASS_P): Likewise.
18654 (Q_CLASS_P): Likewise.
18655 (GENERAL_REGNO_P): Uppercase macro parameter.
18656 (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
18657 (FP_REGNO_P): Likewise.
18658 (ANY_FP_REGNO_P): Uppercase macro parameter.
18659 (SSE_REGNO_P): Likewise.
18660 (SSE_REGNO): Likewise.
18661 (SSE_REG_P): Likewise.
18662 (SSE_FLOAT_MODE_P): Likewise.
18663 (MMX_REGNO_P): Likewise.
18664 (MMX_REG_P):Likewise.
18665 (STACK_REG_P): Likewise.
18666 (NON_STACK_REG_P): Likewise.
18667 (STACK_TOP_P): Likewise.
18668 (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
18669 (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
18670 (SECONDARY_MEMORY_NEEDED): Likewise.
18671 (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
18672 (MD_ASM_CLOBBERS): Whitespace and wrap.
18673 (MUST_PASS_IN_STACK): Whitespace and wrap.
18674 (RETURN_POPS_ARGS): Add parenthesis.
18675 (INIT_CUMULATIVE_ARGS): Likewise.
18676 (FUNCTION_ARG): Likewise.
18677 (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
18678 (SETUP_INCOMING_VARARGS): Likewise.
18679 (BUILD_VA_LIST_TYPE): Add parenthesis.
18680 (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
18682 (EXPAND_BUILTIN_VA_ARG): Likewise.
18683 (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
18684 (INITIALIZE_TRAMPOLINE): Add parenthesis.
18685 (INITIAL_ELIMINATION_OFFSET): Likewise.
18686 (REGNO_OK_FOR_INDEX_P): Add parenthesis.
18687 (REGNO_OK_FOR_BASE_P): Likewise.
18688 (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
18689 (REGNO_OK_FOR_DIREG_P): Likewise.
18690 (REG_OK_FOR_INDEX_P): Whitespace.
18691 (REG_OK_FOR_BASE_P): Whitespace.
18692 (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
18694 (FIND_BASE_TERM): Fix typo.
18695 (LEGITIMIZE_ADDRESS): Wrap in { .. } while (0) and add parenthesis.
18696 (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
18697 (SYMBOLIC_CONST; Whitespace.
18698 (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in { .. } while (0) and wrap.
18699 (ENCODE_SECTION_INFO): Whitespace.
18700 (FINALIZE_PIC): Remove do { ... } while (0).
18701 (PROMOTE_MODE): Wrap in do { ... } while (0).
18702 (CONST_COSTS): Whitespace.
18703 (RTX_COSTS): Add paramethesis, whitespace and wrap.
18704 (REGISTER_MOVE_COST): Add parenthesis.
18705 (MEMORY_MOVE_COST): Likewise.
18706 (EXTRA_CC_MODES): Whitespace.
18707 (SELECT_CC_MODE): Add parenthesis and whitespace.
18708 (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
18709 (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
18710 (ASM_OUTPUT_LABEL): Add paramethesis.
18711 (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
18712 (ASM_OUTPUT_REG_POP): Likewise.
18713 (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
18714 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
18716 * config/i386/i386.c: Update copyright.
18717 (CHECK_STACK_LIMIT): Add parenthesis.
18718 (AT_BP): Uppercase macro parameter.
18719 (x86_64_int_parameter_registers): Constify.
18720 (x86_64_int_return_registers): Likewise.
18721 (ix86_compare_op0): Use rtx.
18722 (construct_container): Constify INTREG parameter.
18723 (function_arg): Use rtx.
18725 * diagnostic.h: Update copyright date.
18726 (output_buffer_state): Add parenthesis.
18727 (output_buffer_format_args): Likewise.
18729 * combine.c (combine_instructions): Replace XEXP (links, 0)
18732 2002-01-06 H.J. Lu <hjl@gnu.org>
18734 * cfgcleanup.c (thread_jump): Fix 2 typos.
18736 2002-01-06 Aldy Hernandez <aldyh@redhat.com>
18738 * config.gcc: Add support for --enable-altivec.
18740 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
18742 * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
18744 2002-01-06 Jakub Jelinek <jakub@redhat.com>
18746 * objc/objc-act.c (handle_impent): Use assemble_variable to emit
18747 __objc_class_name_*.
18749 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
18751 * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
18753 2002-01-06 Richard Henderson <rth@redhat.com>
18755 * reorg.c (emit_delay_sequence): Remove death notes, not merely
18756 nop them out. Increment label reference count for REG_LABEL.
18757 (fill_slots_from_thread): Frob label reference count around
18758 delete_related_insns.
18760 2002-01-05 Richard Henderson <rth@redhat.com>
18762 * cfgcleanup.c (try_forward_edges): Detect infinite loops while
18765 2002-01-05 Richard Henderson <rth@redhat.com>
18767 * c-decl.c (c_expand_body): Don't call outlining_inline_function.
18768 * integrate.c (output_inline_function): Likewise.
18769 * toplev.c (rest_of_compilation): Do it here instead. Move call
18770 to remove_unnecessary_notes after emitting abstract instance.
18771 Force an emitted nested function to have its parent emited as well.
18772 * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
18774 (rtl_for_decl_location): Do not look at reload data structures
18775 before reload has run.
18777 2002-01-05 Kazu Hirata <kazu@hxi.com>
18779 * cse.c: Fix formatting.
18780 * dwarf2asm.c: Likewise.
18781 * dwarf2out.c: Likewise.
18782 * explow.c: Likewise.
18783 * expmed.c: Likewise.
18784 * function.c: Likewise.
18785 * gcov.c: Likewise.
18786 * gencheck.c: Likewise.
18787 * genrecog.c: Likewise.
18788 * ggc-common.c: Likewise.
18789 * ggc-page.c: Likewise.
18790 * global.c: Likewise.
18792 2002-01-05 Kazu Hirata <kazu@hxi.com>
18794 * combine.c: Fix formatting.
18796 2002-01-05 Craig Rodrigues <crodrigu@bbn.com>
18799 * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
18801 2002-01-05 David Edelsohn <edelsohn@gnu.org>
18803 * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
18804 as 1 for __powerpc64__ as well.
18806 * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
18808 * alias.c (find_base_value, PLUS/MINUS): If we found a base,
18811 2002-01-05 Daniel Berlin <dan@dberlin.org>
18813 * lcm.c: Revert change, due to performance regression it causes on
18814 SPEC because it's slightly more conservative (sigh, I hate
18817 Sat Jan 5 11:52:05 CET 2002 Jan Hubicka <jh@suse.cz>
18819 * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
18821 2002-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
18823 * doc/cppinternals.texi: Update.
18825 2002-01-05 Hans-Peter Nilsson <hp@bitrange.com>
18827 * doc/invoke.texi (Option Summary) <MMIX Options>: Document
18828 -mbranch-predict, -mreg-stack-fill-bug-workaround and their
18830 (MMIX Options): Ditto. Fix item/itemx typo for -mno-zero-extend.
18831 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
18832 kludge for pre-october-14th mmix versions to handle new-found bug
18833 with PUSHJ/PUSHGO and the register stack.
18834 * config/mmix/mmix.h (struct machine_function): Rename member
18835 has_call_value_without_parameters to has_call_without_parameters.
18836 All referers changed.
18837 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
18838 TARGET_MASK_BRANCH_PREDICT): New macros.
18839 (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
18840 -mno-reg-stack-fill-bug-workaround.
18841 * config/mmix/mmix.md ("call"): Set struct machine member
18842 has_call_without_parameters.
18844 Sat Jan 5 02:20:22 CET 2002 Jan Hubicka <jh@suse.cz>
18846 * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
18848 Sat Jan 5 01:35:29 CET 2002 Jan Hubicka <jh@suse.cz>
18850 * cfgcleanup.c: Include tm_p.h
18851 (mark_effect): Fix handling of hard register; fix handling of SET
18853 2002-01-04 Kazu Hirata <kazu@hxi.com>
18855 * config/h8300/h8300.md (anonymous patterns): Check that
18856 operands are registers before using REGNO on them.
18858 2002-01-03 Roland McGrath <roland@frob.com>
18860 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
18862 2002-01-04 Jakub Jelinek <jakub@redhat.com>
18864 * tree.h (expand_expr_stmt_value): Add maybe_last argument.
18865 * c-common.h (genrtl_expr_stmt_value): Likewise.
18866 * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
18867 (expand_expr_stmt_value): Add maybe_last argument.
18868 Don't warn about statement with no effect if it is the last statement
18869 in expression statement.
18870 * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
18871 (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
18872 expand_expr_stmt_value.
18873 (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
18874 genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
18875 * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
18876 as maybe_last to expand_expr_stmt_value.
18878 Fri Jan 4 11:45:05 2002 Jeffrey A Law (law@redhat.com)
18880 * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
18881 be passed in, do not build it.
18882 (c_begin_if_stmt): New function.
18883 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
18884 * c-common.h (c_expand_start_cond): Update prototype.
18885 (c_begin_if_stmt): Prototype new function.
18886 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
18887 * c-parse.in (if_prefix): Use c_begin_if_stmt,
18888 c_begin_while_stmt and c_finish_while_stmt_cond.
18890 2002-01-04 William Cohen <wcohen@redhat.com>
18892 * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
18893 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
18894 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
18895 * config/pa/som.h (ASM_FILE_START): Likewise.
18897 2002-01-04 Daniel Berlin <dan@cgsoftware.com>
18899 * lcm.c: Include df.h.
18900 Add available_transfer_function prototype.
18901 (compute_available): Rework to use iterative dataflow framework.
18902 (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
18903 with bb_info in df.h
18904 (available_transfer_function): New function.
18906 * Makefile.in (lcm.o): add df.h to dependencies.
18908 2002-01-04 Richard Henderson <rth@redhat.com>
18910 * config/alpha/alpha.c (some_operand): Accept HIGH.
18911 (input_operand): Likewise; accept simple references to globals.
18912 (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
18913 (alpha_const_double_ok_for_letter_p): Likewise.
18914 (alpha_extra_constraint): Likewise.
18915 (alpha_preferred_reload_class): Likewise. Do not force
18916 symbolic constants to memory.
18917 (alpha_legitimate_address_p): Accept simple references
18918 to small_symbolic_operand.
18919 (alpha_legitimize_address): New arg scratch. Be prepared to be
18920 called when no_new_pseudos. Emit simple symbolic references.
18921 Split integers into low, high, and rest.
18922 (alpha_expand_mov): Use alpha_legitimize_address.
18923 (some_small_symbolic_mem_operand): New.
18924 (split_small_symbolic_mem_operand): New.
18925 * config/alpha/alpha-protos.h: Update.
18926 * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
18927 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
18928 (EXTRA_CONSTRAINT): Likewise.
18929 (PREFERRED_RELOAD_CLASS): Likewise.
18930 (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
18931 (PREDICATE_CODES): Update.
18932 * config/alpha/alpha.md: New post-reload splitters to convert
18933 simplfied symbolic operands to the form that references $29.
18934 (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
18935 (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
18937 2002-01-03 Richard Henderson <rth@redhat.com>
18939 * local-alloc.c (function_invariant_p): Update commentary.
18941 2002-01-04 H.J. Lu <hjl@gnu.org>
18943 * toplev.c (rest_of_compilation): Fix a typo when calling
18946 2002-01-03 Kazu Hirata <kazu@hxi.com>
18948 * c-common.c: Fix formatting.
18949 * diagnostic.c: Likewise.
18950 * doloop.c: Likewise.
18951 * dwarf2out.c: Likewise.
18953 2002-01-03 Kazu Hirata <kazu@hxi.com>
18955 * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
18956 of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
18958 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
18960 * cpperror.c: Update comments and copyright.
18961 * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
18962 cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
18964 2002-01-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
18966 * collect2.c (main): Use strcmp when testing for "-shared".
18968 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
18970 * cppmacro.c: Don't include intl.h. Update comments.
18971 (new_number_token): Allocate enough buffer for 64-bit unsigned
18972 integers; update prototype.
18973 * cppmain.c: Update comments.
18975 2002-01-03 William Cohen <wcohen@redhat.com>
18977 * function.h (struct function): Add profile.
18978 (current_function_profile): New.
18979 doc/extend.texi: Update documentation.
18980 * final.c (final_start_function): Use current_function_profile
18981 instead of profile_flag.
18982 (profile_after_prologue): Likewise.
18983 * function.c (expand_function_start): Likewise.
18984 (expand_function_start): Likewise.
18985 * config/alpha/alpha.c (direct_call_operand):
18986 (alpha_does_function_need_gp): Likewise.
18987 (alpha_expand_prologue): Likewise.
18988 * config/arm/arm.c (arm_expand_prologue): Likewise.
18989 thumb_expand_prologue: Likewise.
18990 * config/d30v/d30v.c (d30v_stack_info): Likewise.
18991 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
18992 (fr30_expand_prologue): Likewise.
18993 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
18994 * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
18995 * config/i386/i386.h (FINALIZE_PIC): Likewise.
18996 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
18997 * config/i960/i960.c (i960_output_function_prologue): Likewise.
18998 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
18999 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
19000 (m32r_expand_prologue): Likewise.
19001 * config/m88k/m88k.c (m88k_layout_frame): Likewise.
19002 (m88k_expand_prologue): Likewise.
19003 * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
19004 * config/mips/mips.c (compute_frame_size): Likewise.
19005 (mips_expand_prologue): Likewise.
19006 (mips_can_use_return_insn): Likewise.
19007 * config/pa/elf.h (ASM_FILE_START): Likewise.
19008 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
19009 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
19010 * config/pa/som.h (ASM_FILE_START): Likewise.
19011 * config/romp/romp.c (romp_using_r14): Likewise.
19012 * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
19013 (rs6000_stack_info): Likewise.
19014 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
19015 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
19016 * config/v850/v850.c (compute_register_save_size): Likewise.
19018 2002-01-03 Jakub Jelinek <jakub@redhat.com>
19020 * simplify-rtx.c (simplify_binary_operation) [DIV]: If
19021 gen_lowpart_common fails, use gen_lowpart_SUBREG.
19023 2002-01-03 Turly O'Connor <turly@apple.com>
19025 * darwin.c (machopic_output_possible_stub_label): Don't generate
19026 stub routines for pseudo-stubs which we've just defined.
19028 2002-01-03 Kazu Hirata <kazu@hxi.com>
19030 * builtins.c: Fix formatting.
19031 * c-typeck.c: Likewise.
19032 * combine.c: Likewise.
19033 * expr.c: Likewise.
19034 * loop.c: Likewise.
19036 2002-01-03 Andreas Schwab <schwab@suse.de>
19038 * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
19039 and return true if _cpp_push_next_buffer pushed a new include
19041 * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
19042 _cpp_pop_file_buffer did not push a new file.
19043 * cpphash.h (_cpp_pop_file_buffer): Update declaration.
19045 2002-01-02 Eric Christopher <echristo@redhat.com>
19047 * final.c (final_scan_insn): Change 0 -> NULL_RTX in
19048 FIND_REG_INC_NOTE call. Update copyright.
19049 * loop.c (canonicalize_condition): Ditto.
19050 * reorg.c (delete_scheduled_jump): Ditto.
19052 2002-01-03 Kazu Hirata <kazu@hxi.com>
19054 * gcse.c: Fix formatting.
19056 2002-01-03 Graham Stott <grahams@redhat.com>
19058 * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
19059 forward defs for struct tags rtx_def, union_tree, rtvec_def
19060 also output corresponding typedefs for rtx, tree, and rtvec.
19062 * system.h: Move forward defs for struct tags rtx_def, union_tree,
19063 rtvec_def along with corresponding typedefs for rtx, tree, and
19064 rtvec to config.h, hconfig.h, tconfig.h.
19066 2002-01-03 Graham Stott <grahams@redhat.com>
19068 * tree.h: Update copyright date.
19069 (IS_EXPR_CODE_CLASS): Add parenthesis.
19070 (TREE_SET_CODE): Add whitespace.
19071 (TREE_CHECK): Add parenthesis.
19072 (TREE_CLASS_CODE): Add parenthesis and wrap long line.
19073 (CST_OR_CONSTRUCTOR_CHECK):
19074 (EXPR_CHECK): Add parenthis, whitespace and wrap line.
19075 (TREE_SYMBOL_REFERENCED): Whitespace.
19076 (INT_CST_LT): Likewise.
19077 (INT_CST_LT_UNSIGNED): Likewise.
19078 (tree_real_cst): Unwrap comment.
19079 (tree_string): Likewise.
19080 (tree_complex): Likewise.
19081 (IDENTIFIER_POINTER): correct cast.
19082 (SAVE_EXPR_CONTEXT): Whitespace.
19083 (EXPR_WFL_FILENAME_NODE): Likewise.
19084 (EXPR_WFL_FILENAME): Remove parenthesis.
19085 (DECL_ORIGIN): Add parenthesis.
19086 (DECL_FROM_INLINE): Use NULL_TREE.
19087 (build_int_2): Whitespace.
19088 (build_type_variant): Add parenthesis.
19090 * gcc/jcf-parse.c: Update copyright date.
19091 (yyparse): Constify resource_filename.
19093 2002-01-03 Graham Stott <grahams@redhat.com>
19095 * rtl.h: Update copyright date.
19096 (RTL_CHECK1): Wrap long line.
19097 (RTL_CHECK2): Likewise.
19098 (RTL_CHECKC1): Wrap long line and whitespace.
19099 (RTL_CHECKC2): Likewise.
19100 (XWINT): Whitespace.
19106 (XBITMAP): Likewise.
19108 (XBBDEF): Likewise.
19110 (X0WINT): Likewise.
19112 (X0UINT): Likewise.
19116 (X0MODE): Likewise.
19117 (X0BITMAP): Likewise.
19118 (X0TREE): Likewise.
19119 (X0BBDEF): Likewise.
19120 (X0ADVFLAGS): Likewise.
19121 (X0CSELIB): Likewise.
19122 (X0MEMATTR): Likewise.
19123 (XCWINT): Likewise.
19125 (XCUINT): Likewise.
19129 (XCMODE): Likewise.
19130 (XCBITMAP): Likewise.
19131 (XCTREE): Likewise.
19132 (XCBBDEF): Likewise.
19133 (XCADVFLAGS): Likewise.
19134 (XCCSELIB): Likewise.
19135 (XC2EXP): Likewise.
19136 (INSN_UID): Likewise.
19137 (PREV_INSN): Likewise.
19138 (PATTERN): Likewise.
19139 (INSN_CODE): Likewise.
19140 (PUT_REG_NOTE_KIND): Likewise.
19141 (CODE_LABEL_NUMBER): Likewise.
19142 (NOTE_SOURCE_FILE): Likewise.
19143 (NOTE_BLOCK): Likewise.
19144 (NOTE_EH_HANDLER): Likewise.
19145 (NOTE_RANGE_INFO): Likewise.
19146 (NOTE_LIVE_INFO): Likewise.
19147 (NOTE_BASIC_BLOCK): Likewise.
19148 (NOTE_EXPECTED_VALUE): Likewise.
19149 (NOTE_LINE_NUMBER): Likewise.
19150 (LABEL_NAME): Likewise.
19151 (LABEL_NUSES): Likewise.
19152 (LABEL_ALTERNATE_NAME): Likewise.
19153 (ADDRESSOF_DECL): Likewise.
19154 (JUMP_LABEL): Likewise.
19155 (LABEL_NEXTREF): Likewise.
19157 (ORIGINAL_REGNO: Likewise.
19158 (HARD_REGISTER_NUM_P): Add parenthesis.
19159 (SUBREG_REG): Whitespace.
19160 (SUBREG_BYTE): Likewise.
19161 (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
19162 (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
19163 (ASM_OPERANDS_OUTPUT_IDX): Likewise.
19164 (ASM_OPERANDS_INPUT_VEC): Likewise.
19165 (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
19166 (ASM_OPERANDS_INPUT): Likewise.
19167 (ASM_OPERANDS_INPUT_LENGTH): Likewise.
19168 (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
19169 (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
19170 (ASM_OPERANDS_INPUT_MODE): Likewise.
19171 (ASM_OPERANDS_SOURCE_FILE): Likewise.
19172 (ASM_OPERANDS_SOURCE_LINE): Likewise.
19173 (MEM_SET_IN_STRUCT_P): Minor reformat.
19174 (TRAP_CONDITION): Whitespace.
19175 (TRAP_CODE): Likewise.
19176 (COND_EXEC_TEST): Likewise.
19177 (COND_EXEC_CODE): Likewise.
19178 (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
19179 (PHI_NODE_P): Add parenthesis.
19180 (plus_constant): Whitespace and add parenthesis.
19182 2002-01-03 Kazu Hirata <kazu@hxi.com>
19184 * config/avr/avr.c: Fix comment typos.
19185 * config/c4x/c4x.md: Likewise.
19186 * config/dsp16xx/dsp16xx.h: Likewise.
19187 * config/dsp16xx/dsp16xx.md: Likewise.
19188 * config/i386/i386.md: Likewise.
19189 * config/ia64/ia64.c: Likewise.
19190 * config/m32r/m32r.h: Likewise.
19191 * config/m68hc11/m68hc11.md: Likewise.
19192 * config/mmix/mmix.c: Likewise.
19193 * config/mn10200/mn10200.c: Likewise.
19194 * config/romp/romp.c: Likewise.
19195 * config/sh/sh.c: Likewise.
19196 * config/stormy16/stormy16.c: Likewise.
19197 * config/stormy16/stormy16.h: Likewise.
19198 * config/stormy16/stormy16.md: Likewise.
19200 2002-01-03 Graham Stott <grahams@redhat.com>
19202 * loop.h: Update copyright date.
19203 (LOOP_MOVABLES): Fix typo.
19204 (LOOP_REGS): Likewise.
19205 (LOOP_IVS): Likewise.
19207 2002-01-03 Graham Stott <grahams@redhat.com>
19209 * cppinit.c: Update copyright date.
19210 Don't include output.h
19211 * Makefile.in: Update copyright date.
19214 2002-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
19217 * invoke.texi (-mthreads): Remove from documented RS/6000 options.
19218 (-pthread) Add to RS/6000 options.
19220 2002-01-02 Kazu Hirata <kazu@hxi.com>
19222 * except.c: Fix comment typos.
19223 * loop.c: Likewise.
19224 * varasm.c: Likewise.
19225 * doc/tm.texi: Fix a typo.
19227 2002-01-02 Jakub Jelinek <jakub@redhat.com>
19229 * c-typeck.c (output_init_element): Allow initializing static storage
19230 duration objects with compound literals.
19232 2002-01-02 Richard Henderson <rth@redhat.com>
19234 * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
19237 2002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19239 * gcc.c (default_compilers): Const-ify.
19240 * mips-tdump.c (stab_names): Likewise.
19241 * mips-tfile.c (map_coff_types, map_coff_storage,
19242 map_coff_sym_type, map_coff_derived_type, stabs_symbol,
19243 pseudo_ops_t, pseudo_ops): Likewise.
19244 * protoize.c (default_include): Likewise
19246 * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
19247 (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
19248 Add array size in declaration.
19249 (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
19250 emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
19251 esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
19252 etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
19253 eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
19254 efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
19255 c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
19256 emtens, make_nan): Const-ify.
19257 (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
19258 DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
19260 2002-01-02 Joseph S. Myers <jsm28@cam.ac.uk>
19262 * config.gcc (ia64-*-*): Set extra_headers.
19263 (alpha*-dec-osf*): Likewise. Don't use alpha/t-osf.
19264 * config/alpha/t-osf: Remove.
19265 * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
19267 2002-01-02 David Edelsohn <edelsohn@gnu.org>
19269 * config/rs6000/t-aix43: Revert previous change.
19271 2002-01-02 Jason Merrill <jason@redhat.com>
19273 * c-decl.c (c_expand_body): Call outlining_inline_function when
19274 emitting an inline function out of line.
19276 2002-01-02 Richard Henderson <rth@redhat.com>
19278 * dwarf2out.c (limbo_die_node): Add created_for member.
19279 (new_die): New argument created_for. Update all callers.
19280 (mark_limbo_die_list): New.
19281 (dwarf2out_init): Register limbo_die_list as a root.
19282 (dwarf2out_finish): Force insert limbo dies into their function
19285 2002-01-02 Nathan Sidwell <nathan@codesourcery.com>
19288 * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
19290 2002-01-02 Kazu Hirata <kazu@hxi.com>
19292 * config/h8300/fixunssfsi.c: Update copyright.
19295 * config/h8300/h8300.c: Update copyright.
19296 Eliminate warnings.
19298 2002-01-02 Kazu Hirata <kazu@hxi.com>
19300 * config/romp/romp.c: Fix comment formatting.
19301 * config/romp/romp.h: Likewise.
19302 * config/romp/romp.md: Likewise.
19303 * config/s390/s390.c: Likewise.
19304 * config/stormy16/stormy16.c: Likewise.
19305 * config/stormy16/stormy16.h: Likewise.
19307 2002-01-02 Alexandre Oliva <aoliva@redhat.com>
19309 * c-common.h (genrtl_expr_stmt_value): Declare.
19310 * c-semantics.c (genrtl_goto_stmt): Redirect to...
19311 (genrtl_goto_stmt_value): ... this new function. Pass new
19312 argument down to expand_expr_stmt_value, taking
19313 TREE_ADDRESSABLE into account.
19314 * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
19315 STMT_EXPR as addressable, i.e., one whose result we want.
19316 * expr.c (expand_expr): Don't save expression statement value
19317 of labeled_blocks or loop_exprs.
19318 * stmt.c (expand_expr_stmt): Redirect to...
19319 (expand_expr_stmt_value): ... this new function. Use new
19320 argument to tell whether to save expression value.
19321 (expand_end_stmt_expr): Reset last_expr_type and
19322 last_expr_value if we don't have either.
19323 * tree-inline.c (declare_return_variable): Mark its use
19324 statement as addressable.
19325 * tree.h: Document new use of TREE_ADDRESSABLE.
19326 (expand_expr_stmt_value): Declare.
19328 2002-01-01 Tom Rix <trix@redhat.com>
19330 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
19331 rs6000_emit_allocate_stack.
19333 2002-01-01 Joseph S. Myers <jsm28@cam.ac.uk>
19335 * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
19336 ${srcdir}/ginclude/ to every entry in extra_headers.
19337 * configure: Regenerate.
19338 * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
19339 * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
19340 * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
19341 * ginclude/proto.h: Rename to config/convex/proto.h.
19343 Tue Jan 1 17:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19345 * attribs.c (handle_vector_size_attribute): Use host_integerp
19346 and tree_int_cst; remove warnings.
19347 * caller-save.c (insert_restore): Add cast to get rid of warning.
19348 (insert_save): Likewise.
19349 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
19350 * regmove.c (find_matches): Add temporary var to kill a warning.
19352 2002-01-01 Douglas B Rupp <rupp@gnat.com>
19354 * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
19355 LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
19356 * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
19357 (vms-dwarf2eh.o): Add Makefile rule.
19358 * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
19359 * config/alpha/vms-dwarf2eh.asm: New file.
19361 * gcc.c (delete_if_ordinary): Delete all versions.
19363 2002-01-01 Hans-Peter Nilsson <hp@bitrange.com>
19365 * config/mmix/mmix.md: Update FIXME to not mention
19367 (MMIX_rJ_REGNUM): New define_constants constant.
19368 ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
19369 "*movdicc_real"): Adjust contraints formatting.
19370 ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
19371 for branch prediction.
19372 ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
19374 ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
19375 "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
19376 number. Delete related FIXMEs.
19377 * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
19378 from number to MMIX_rJ_REGNUM.
19379 (TARGET_MASK_BRANCH_PREDICT): New.
19380 (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
19381 (TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols
19382 value. Add -mbranch-predict and -mno-branch-predict.
19383 (TARGET_VERSION): Drop date.
19384 (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
19385 * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
19386 for finding out global symbols.
19387 (mmix_asm_output_labelref): Revert condition for global symbol.
19388 (mmix_print_operand): <case '+'>: Emit P for a likely branch.
19389 (mmix_print_operand_punct_valid_p): A '+' is valid.
19391 See ChangeLog.6 for earlier changes.