1 2000-07-17 Joseph S. Myers <jsm28@cam.ac.uk>
3 * c-lex.c (yylex): Don't pedwarn for hexadecimal floating point
6 2000-07-17 Kazu Hirata <kazu@hxi.com>
8 * fold-const.c: Fix comment typos.
10 2000-07-16 Laurynas Biveinis <lauras@softhome.net>
12 * cppfiles.c (read_name_map): Set map_list_ptr->map_list_map to NULL.
14 2000-07-16 Mark Mitchell <mark@codesourcery.com>
16 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes): Fix typo.
18 2000-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20 * fixinc/fixfixes.c (emit_gnu_type): Avoid string concatenation.
22 2000-07-16 Neil Booth <NeilB@earthling.net>
24 * cpplex.c: Update comments.
25 * README.Portability: Small update.
27 2000-07-16 Neil Booth <NeilB@earthling.net>
29 * README.Portability: Small update.
31 2000-07-15 Richard Henderson <rth@cygnus.com>
33 * config/ia64/ia64-protos.h (ia64_move_ok): Prototype.
34 * config/ia64/ia64.c (ia64_move_ok): New function.
35 * config/ia64/ia64.md (movqi, movqi_internal): Use it.
36 (movhi, movsi, movdi, movsf, movdf, movxf): Likewise.
38 2000-07-15 Zack Weinberg <zack@wolery.cumb.org>
40 * cpphash.c (save_expansion): Clear PREV_WHITE on tokens
41 immediately following a paste operator.
42 * cppinit.c (sort_options): New function (only for HOST_EBCDIC).
43 (cpp_reader_init): Call it, if HOST_EBCDIC.
44 (cpp_handle_options): Do not sort option list here.
45 (handle_option): Rename to cpp_handle_option and export.
46 * cpplex.c (cpp_scan_buffer_nooutput, cpp_scan_buffer): Use
47 _cpp_get_token directly.
48 (cpp_scan_line): Return 0 at EOF, 1 otherwise.
49 * cpplib.c (cpp_push_buffer): Don't set new->lineno to 1.
50 * cpplib.h: Prototype cpp_handle_option. Update prototype of
53 2000-07-15 Richard Henderson <rth@cygnus.com>
55 * fold-const.c (extract_muldiv): Don't optimize past an unsigned
56 cast around an expression. Tidy other unsigned tests.
58 2000-07-15 Gabriel Dos Reis <gdr@codesourcery.com>
60 * diagnostic.c (doing_line_wrapping, line_wrapper_printf, notice,
61 v_error_with_decl, v_warning_with_decl, v_pedwarn_with_decl): Remove.
62 (v_message_with_decl): Rename to ...
63 (format_with_decl): ... this. Tweak
64 (diagnostic_for_decl): New function.
65 (fatal_io_error): Use verbatim in lieu of notice.
66 (announce_function): Use verbatim.
67 (default_print_error_function): Likewise.
68 (error_with_decl, warning_with_decl, pedwarn_with_decl): Use new
71 2000-07-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
73 * mips.c (function_arg_pass_by_reference): Don't do automatic
74 aggregate initialization.
75 (machine_dependent_reorg): Initialize variable `mode'.
77 * mips.md (absdi2): Change variable `regno1' to unsigned int.
78 (reload_indi): Rename loword/hiword to lo_word/hi_word to avoid
79 conflicts with sys/param.h macro of the same name.
80 (reload_outdi): Likewise.
82 2000-07-15 Michael Meissner <meissner@redhat.com>
84 * fold-const.c (fold): When optimizing FOO++ == CONST into ++FOO
85 == CONST + INCREMENT, don't overwrite the tree node for FOO++,
86 create a new node instead.
88 2000-07-15 Neil Booth <NeilB@earthling.net>
90 * README.Portability: Correct example about calling a function
91 through a pointer to function. Format wide paragraphs.
93 2000-07-15 Michael Meissner <meissner@redhat.com>
95 * README.Portability: Update integer suffixes and function
98 2000-07-15 Neil Booth <NeilB@earthling.net>
100 * README.Portability: Small update.
102 2000-07-15 Neil Booth <NeilB@earthling.net>
104 * README.Portability: New file.
106 Fri Jul 14 18:13:53 2000 Mark P Mitchell <mark@codesourcery.com>
108 * INSTALL: Give special instructions for building GCC on Irix 6.
109 * config/mips/x-iris6 (CC): Don't set it.
112 2000-07-14 Jason Merrill <jason@redhat.com>
114 * dwarf2out.c (dwarf2out_frame_debug_expr): If we store the CFA
115 register in the stack and later in another register, use the new
118 Fri Jul 14 10:25:53 2000 Clinton Popetz <cpopetz@cygnus.com>
120 * config/mips/mips.md: (absdi2): Handle sign_extend for
123 2000-07-14 Nathan Sidwell <nathan@codesourcery.com>
125 * cpplib.c (do_pragma_dependency): Tidy warning messages.
127 2000-07-14 Zack Weinberg <zack@wolery.cumb.org>
129 * .cvsignore: Correct typo.
131 2000-07-13 Mark Mitchell <mark@codesourcery.com>
133 * .cvsignore: Add generated YACC files.
134 * objc/.cvsignore: New file.
136 2000-07-14 Neil Booth <NeilB@earthling.net>
138 * cpplex.c (adjust_column): New funcion.
139 (skip_whitespace): Use it.
140 (skip_block_comment): Use it, and warn about /*/* with
143 2000-07-14 Neil Booth <NeilB@earthling.net>
145 * cpphash.c (struct macro_info): Add new members.
146 (_cpp_free_definition): Delete the macro directly.
147 (count_params): Return void, with first token of
148 expansion in struct macro_info on success.
149 (parse_define): Return int. Hoist syntax checking from
150 save_macro_expansion. Leave call to save_expansion to
151 _cpp_create_definition.
152 (alloc_macro): Needs just 2 arguments.
153 (free_macro): Delete.
154 (save_expansion): Don't perform syntax check.
155 (_cpp_create_definition): Call save_expansion.
157 2000-07-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
159 * genrecog.c (write_header): Split long string.
161 * cpphash.c (macro_info): Don't use the `signed' keyword.
163 * system.h (alloca): Prototype if __GNUC__ && __SIZE_TYPE__.
165 2000-07-13 Jakub Jelinek <jakub@redhat.com>
167 * calls.c (stored_args_map): New variable.
168 (check_sibcall_argument_overlap_1): New.
169 (check_sibcall_argument_overlap): New.
170 (expand_call): Initialize stored_args_map.
171 Call check_sibcall_argument_overlap.
173 2000-07-13 Bruce Korb <bkorb@gnu.org>
175 * fixinc/fixfixes.c: move EXIT_BROKEN to header, add sub-expr max count
176 (emit_gnu_type): utility procedure for gnu_type_fix
177 (gnu_type_fix): implement various pre-processor guards around
178 standard types so these types can be defined over and over
179 * fixinc/fixincl.tpl: add a "gnu_type_map" that forces the standard
180 types alluded to above will have GNU-compliant base types
181 * fixinc/fixlib.h: add EXIT_BROKEN define and the gnu_type_map struct
182 * fixinc/inclhack.def: add test_text entries and utilize the new
183 "gnu_types" fix for the ptrdiff_t, size_t and wchar_t types.
184 * fixinc/fixincl.x: regenerate
186 2000-07-12 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
188 * diagnostic.c (vline_wrapper_message_with_location,
189 v_message_with_file_and_line, v_error_with_file_and_file,
190 v_error_for_asm, v_warning_for_asm, vfatal,
191 v_warning_with_file_and_line, v_pedwarn_with_file_and_line,
192 vsorry, verror, vwarning, vpedwarn): Remove.
193 (diagnostic_for_asm): New function.
194 (pedwarn, error, warning, pedwarn_with_file_and_line,
195 error_with_file_and_line, warning_with_file_and_line, sorry,
196 error_for_asm, warning_for_asm, fatal): Reimplement.
197 (finish_diagnostic): Clear diagnostic info as well.
199 2000-07-13 Neil Booth <NeilB@earthling.net>
201 * c-common.h (flag_digraphs): New.
202 * c-decl.c (c_decode_option): Set flag_digraphs as appropriate.
203 * c-lex.c (yylex): Use flag_digraphs to decide whether to
206 2000-07-13 Zack Weinberg <zack@wolery.cumb.org>
208 * gcc.c (do_spec_1): Add new %B operator.
209 (set_input): Prepare for %B.
211 (link_command_spec): Move up with the other tm.h-
212 overrideable specs. Factor out the portion conditional on
213 LINK_LIBGCC_SPECIAL into a new spec, %(link_libgcc).
214 (struct compiler): Just have a single spec string. All users
216 (default_compilers): Remove unnecessary braces.
217 (static_specs): Update.
219 (trad_capable_cpp, cpp_options, cc1_options, asm_options): New
221 (C and assembly specs): Use the new named specs, as appropriate.
223 * objc/lang-specs.h: Use the new named specs.
224 Remove unnecessary braces.
226 2000-07-12 Zack Weinberg <zack@wolery.cumb.org>
228 * gcc.c (execute): If a subprocess gets a fatal signal, report
229 strsignal() of the signal number, and ask for a bug report.
230 Do not do this for SIGPIPE if there's already been an error.
232 * tradcpp.c: Don't include signal.h. Don't catch SIGPIPE.
237 2000-07-12 Zack Weinberg <zack@wolery.cumb.org>
239 * final.c (profile_function): Do not emit profile counters in
240 the data section, if NO_PROFILE_COUNTERS is defined.
241 * tm.texi: Document NO_PROFILE_COUNTERS. Update doc for
244 * config/i386/linux.h (NO_PROFILE_COUNTERS): Define.
245 (FUNCTION_PROFILER): Just emit a call to mcount.
247 2000-07-12 Zack Weinberg <zack@wolery.cumb.org>
249 * tradcpp.c (main): Rename 'perror' label to 'sys_error'.
251 * cppexp.c, cpphash.c, cpphash.h, cppinit.c, cpplex.c,
252 cpplib.c, cpplib.h: Eradicate all traces of code dependent on
253 traditional, lang_chill, or lang_fortran.
255 * cppfiles.c: #undef strcmp to suppress warning about macros
256 used without arguments.
257 (_cpp_execute_include): Use f, not fname, in "No include path"
259 (_cpp_pop_file_buffer): New function.
260 * cpplib.c: Don't include <sys/mman.h>.
261 (cpp_push_buffer): Set line_base and lineno in new buffer.
262 (cpp_pop_buffer): Use _cpp_pop_file_buffer.
264 * cpplex.c: Move all prototypes and structure declarations to the
265 top of the file. Properly parenthesise some macro arguments.
266 (cpp_scan_line): New function.
267 (special_symbol [case T_INCLUDE_DEPTH]): Use pfile->include_depth,
268 don't need to walk up the stack counting.
270 2000-07-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
272 * c-common.c (combine_strings): Emit a pedantic warning when a
273 string length is greater than the minimum ANSI C is required
276 Wed Jul 12 13:24:30 2000 Jeffrey A Law (law@cygnus.com)
278 * pa/xm-pa64.h (NO_SYS_SIGLIST): Kill.
279 * d30v/xm-d30v.h (NO_SYS_SIGLIST): Kill.
281 2000-07-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
283 * c-decl.c (define_label): Warn about identifier conflicts with
284 labels in traditional C.
286 * c-parse.in (unop +): Warn about the unary plus operator for
289 * c-typeck.c (store_init_value): Warn about automatic aggregate
290 initialization for traditional C.
292 * invoke.texi (-Wtraditional): Document new warnings.
294 2000-07-12 Gabriel Dos Reis <gdr@codesourcery.com>
296 * Makefile.in (c-errors.o): Fix thinko in dependency.
298 2000-07-12 Zack Weinberg <zack@wolery.cumb.org>
300 * gcc.c (C specs [!USE_CPPLIB]): Invoke tradcpp if any of
301 -traditional, -ftraditional, or -traditional-cpp was given.
302 Do not pass -traditional to the preprocessor.
303 (.S spec): Likewise. Don't bother defining __ASSEMBLER__, the
304 preprocessor does it automatically.
305 * objc/lang-specs.h: Likewise. Don't bother defining __OBJC__.
307 * ch/lang-specs.h: Always use tradcpp. Do not pass
308 -traditional, -trigraphs, or -pedantic to the preprocessor.
309 * f/lang-specs.h (.F spec): Likewise. Don't bother defining
312 2000-07-12 Zack Weinberg <zack@wolery.cumb.org>
314 * cppexp.c (LOGICAL): Delete macro.
315 (_cpp_parse_expr): Do not use UNARY for unary +. Implement ||
318 * cpphash.c (HASHSIZE): Increase to 4096.
319 (struct hashdummy): Add hash field.
320 (eq_HASHNODE): Compare unreduced hashes, then lengths, then
321 the string values using memcmp.
322 (cpp_lookup): Set dummy.hash.
324 Wed Jul 12 13:15:16 2000 Marc Espie <espie@openbsd.org>
326 * configure.in (m88k-openbsd): Express configuration using new fragment
328 * configure: Rebuilt.
329 * m88k/aout-dbx.h: New.
330 * m88k/openbsd.h: New.
331 * m88k/xm-openbsd.h: New.
333 2000-07-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
335 * expr.c (expand_expr): Return const0_rtx, not error_mark_node.
337 2000-07-12 Richard Henderson <rth@cygnus.com>
339 * reload.c (push_secondary_reload): Make sure to add the new
340 reload at the end, after acquiring secondary memory.
342 2000-07-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
344 * cpplex.c (is_macro_disabled): Use CPP_WTRADITIONAL.
346 * c-decl.c (set_current_function_name_declared, anon_aggr_type_p,
347 lang_expand_stmt): Mark parameters with ATTRIBUTE_UNUSED.
349 * c-parse.in (stmt): Delete unused variables.
351 * convert.c (convert_to_vector): Likewise.
353 * gensupport.c (process_rtx): Declare attr as `rtvec' not `rtx'.
355 * tree.c (finish_vector_type): Prototype.
357 2000-07-12 Bruce Korb <bkorb@gnu.org>
359 * fixinc/fixfixes.c: use xmalloc
360 * fixinc/fixincl.c(initialize): set program name for xmalloc
361 * fixinc/fixlib.c(must_malloc): obsolete
362 (is_cxx_header): no longer used - disabled
363 (skip_quote): inserted and disabled for future use
364 * fixinc/fixlib.h: reflects above
365 * fixinc/fixtests.c: removed dinkleberries
367 2000-07-12 Neil Booth <NeilB@earthling.net>
369 * cpphash.h: (TOKEN_SPELL) Pulled from cpplex.c.
370 * cpplex.c (TOKEN_SPELL) Move to cpphash.h.
372 * cpphash.c: (struct macro_info, alloc_macro, free_macro,
373 struct toklist_dummy): New.
374 (cpp_free_definition): Free macros with free_macro.
375 (count_params): Don't save paramter spellings. Save macro
376 information in a struct macro_info.
377 (parse_define): Don't allocate a token list.
378 (save_expansion): Allocate the macro's token list, and
379 save parameter spellings if necessary. Use TOKEN_SPELL.
380 (cpp_create_definition): Make list const.
382 2000-07-12 Gabriel Dos Reis <gdr@codesourcery.com>
384 * c-typeck.c (pedwarn_c99): Move to
385 * c-errors.c: ... Here.
386 * toplev.h (verror, vwarning, vpedwarn): Remove prototypes.
387 * diagnostic.c (verror, vwarning, vpedwarn): Make static.
388 * Makefile.in (C_AND_OBJC_OBJS): Include c-errors.o
389 (c-errors.o): List dependency.
391 2000-07-12 Mark Mitchell <mark@codesourcery.com>
394 * c-parse.h: Likewise.
395 * c-parse.y: Likewise.
396 * objc/objc-parse.c: Likewise.
397 * objc/objc-pasre.y: Likewise.
399 2000-07-11 Rodney Brown <RodneyBrown@pmsc.com>
401 * gcc.texi: Fix minor typos
402 * extend.texi: Fix minor typos
404 2000-07-11 Marc Espie <espie@openbsd.org>
406 * collect2.c (main): Recognize .lo as object files.
408 2000-07-11 J. David Anglin <dave@hiauly1.hia.nrc.ca>
410 * pa.c (hppa_encode_label): Store labels in gc memory when ggc_p is
413 * aclocal.m4 (AC_FUNC_MMAP_ANYWHERE): Extend test to detect systems
414 with MAP_ANONYMOUS and MAP_ANON.
415 * configure, config.in: Rebuilt.
417 2000-07-12 Gabriel Dos Reis <gdr@codesourcery.com>
419 * diagnostic.c (save_output_state): Remove.
420 (restore_output_state): Likewise.
421 (clear_text_info): New function.
422 (clear_diagnostic_info): Likewise.
423 (output_text_length, is_starting_newline, output_prefix,
424 line_wrap_cutoff, ideal_line_wrap_cutoff, prefix_was_emitted_for,
425 prefixing_policy, output_buffer_ptr_to_format_args): New macros
426 (set_real_maximum_length, output_set_maximum_length,
427 output_set_prefix, output_get_prefix, output_set_maximum_length,
428 output_destroy_prefix, init_output_buffer,
429 reshape_diagnostic_buffer, output_space_left, output_emit_prefix,
430 output_add_newline, output_add_character, output_add_space,
431 output_append_r, output_append, wrap_text, output_format,
432 output_do_printf, output_printf, output_do_verbatim,
433 output_verbatim, verbatim): Use them.
434 (output_clear): Split into cleat_text_info and
435 clear_diagnostic_info.
436 (struct output_state): Move to...
438 * diagnostic.h: ...Here
439 (struct output_buffer): Adjust.
441 2000-07-11 Zack Weinberg <zack@wolery.cumb.org>
443 * cpplex.c (parse_name): No longer inline (premature optimization).
444 (do_pop_context): Fold into pop_context.
445 (pop_context): Returns int.
446 (lex_next): Hoist test for end of directive into pop_context.
447 (push_macro_context): Returns int; takes just reader and token.
448 Hoist test for excessive nesting to caller.
449 (push_arg_context): Returns void; takes just reader and token.
450 Do not call stringify_arg or get_raw_token.
451 (get_raw_token): Convert tail recursion through push_arg_context
452 to a loop at this level. Call stringify_arg here if appropriate.
453 (maybe_paste_with_next): Convert tail recursion to a while loop.
454 Hoist test of paste_level to caller.
456 (stringify_arg): Push arg context at beginning.
457 (cpp_get_token): Split out core into _cpp_get_token. Call
458 process_directive here. Throw away CPP_PLACEMARKER tokens.
459 (_cpp_get_token): Convert tail recursion through
460 push_macro_context to a loop at this level.
461 (_cpp_glue_header_name, is_macro_disabled, stringify_arg,
462 _cpp_get_raw_token): Use _cpp_get_token.
463 (_cpp_skip_rest_of_line): Drop the context stack directly; do
464 not call pop_context.
465 (_cpp_run_directive): Call lex_next directly.
467 * cpphash.h: Prototype _cpp_get_token.
468 * cppexp.c (lex): Use it.
469 * cpphash.c (parse_define): Use it.
470 * cpplib.c (get_define_node, do_undef, parse_include,
471 read_line_number, do_line, do_ident, do_pragma, do_pragma_gcc,
472 do_pragma_implementation, do_pragma_poison, do_pragma_dependency,
473 parse_ifdef, validate_else): Use it.
474 (cpp_push_buffer): Tweak error message; abort if anyone tries
475 to push a buffer while macro expansions are stacked.
477 2000-07-11 Donn Terry <donnte@microsoft.com>
479 * cpplex.c (free_macro_args, save_token): Cast arg of free
480 and/or xrealloc to PTR.
481 (_cpp_init_input_buffer): Clear all fields of the base context.
483 Tue Jul 11 15:28:21 CDT 2000 Clinton Popetz <cpopetz@cygnus.com>
485 * gensupport.c (process_rtx): Make rtl checking stop
486 complaining about the define_insn while it is being
487 converted from a define_insn_and_split.
489 Tue Jul 11 16:26:17 2000 Clinton Popetz <cpopetz@cygnus.com>
491 * config/mips/mips.c (simple_memory_operand): Access the
492 INTVAL of the address, not it's containing MEM.
494 2000-07-11 Bruce Korb <bkorb@gnu.org>
496 * fixinc/fixtests.c(double_slash): obsolete
497 (else_endif_label): likewise
498 * fixinc/inclhack.def(irix_multiline_cmnt): obsolete
499 (libc1_ifdefd_memx): correct initial comment
500 and omit the #if/#endif pair from the memxxx declarations
501 * fixinc/fixincl.x: regen
503 2000-07-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
505 * cpplex.c (T, I, S, C, N): Avoid non-constant initializers.
507 2000-07-11 Neil Booth <NeilB@earthling.net>
511 2000-07-11 Neil Booth <NeilB@earthling.net>
513 * cppinit.c: (cpp_reader_init): Allow digraphs by default.
514 (handle_option): Set digraphs according to standard.
515 Merge OPT_lang_c89 handler with OPT_std_c89.
517 * cpplex.c: (lex_line, can_paste): Honour digraphs in
518 accordance with the digraphs flag.
520 * cpplib.h: (struct cpp_options): New option digraphs.
522 2000-07-10 Hans-Peter Nilsson <hp@axis.com>
523 Bruce Korb <bkorb@gnu.org>
525 * fixinc/inclhack.def (libc1_ifdefd_memx): New fix.
526 * fixinc/fixincl.x: Regenerate.
527 * fixinc/tests/base/testing.h: Add testcase.
529 2000-07-10 Richard Henderson <rth@cygnus.com>
531 * config/ia64/ia64.c (got_symbolic_operand): New.
532 (symbolic_operand, move_operand): Revert 0701 change.
533 * config/ia64/ia64.h (PREDICATE_CODES): Update.
534 * config/ia64/ia64-protos.h (got_symbolic_operand): Declare.
535 * config/ia64/ia64.md (movdi): Revert 0701 wrt symbolic_operand;
536 split the offset into a 14-bit low part instead of a 13-bit low part.
537 (load_fptr): Mark the mem as unchanging.
538 (load_symptr): Use got_symbolic_operand.
540 2000-07-10 Nick Clifton <nickc@cygnus.com>
542 * libgcc2.c (next_stack_level): Cast result of computation to
543 (void **) so that the assignment does not generate a warning.
545 2000-07-10 Chandrakala Chavva <cchavva@redhat.com>
547 * flags.h : Add new variable flag_single_precision_constant.
548 * toplev.c (display_help) : Add -fsingle-precision-constant option.
549 (flag_single_precision_constant): New.
550 * c-lex.c (yylex): Convert floating point constant to single
552 * invoke.texi : Add documentation for this new option.
554 2000-07-10 Gabriel Dos Reis <gdr@codesourcery.com>
556 * diagnostic.c (output_octal): Second parameter is unsigned.
557 (output_long_octal): Likewise.
558 (output_hexadecimal): Likewise.
559 (output_long_hexadecimal): Likewise.
560 (output_format): Adjust arguments extraction. Tweak.
561 (output_verbatim, verbatim): End variable argument list.
562 (report_diagnostic): Improve documentation.
564 2000-07-10 Benjamin Chelf <chelf@codesourcery.com>
566 * c-common.h (build_stmt): Declare.
567 (build_continue_stmt): Likewise.
568 (build_break_stmt): Likewise.
569 (build_return_stmt): Likewise.
571 * c-decl.c (do_case): Rewrite to do what previously done in
574 * c-semantics.c (build_stmt): Define.
575 (build_return_stmt): Likewise.
576 (build_break_stmt): Likewise.
577 (build_continue_stmt): Likewise.
578 (build_case_label): Likewise.
580 * c-parse.in (BREAK): Change to build tree, then generate RTL.
581 (CONTINUE): Likewise.
586 * c-parse.y: Regenerate.
587 * c-pasre.c: Likewise.
589 2000-07-09 Jason Merrill <jason@redhat.com>
591 * expr.c (expand_expr): Bail earlier if we get an error_mark_node.
593 * tree.h (STRIP_NOPS): Check for error_mark_node.
594 (STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Likewise.
595 (dwarf2out_*): Remove duplicate declarations.
597 * c-decl.c (duplicate_decls): Copy DECL_ABSTRACT_ORIGIN from
598 DECL_ABSTRACT_ORIGIN, not DECL_ORIGIN.
600 2000-07-10 Gabriel Dos Reis <gdr@codesourcery.com>
602 * diagnostic.c (wrap_text): New function.
603 (maybe_wrap_text): Likewise.
604 (output_add_string): Use it.
605 (output_format): Likewise.
606 (count_error): Use verbatim instead of notice.
607 (report_error_function): Likewise. Don't use plain fprintf.
608 (finish_diagnostic): New function.
609 (output_do_verbatim): Tweak. Commonalize functionalities in
610 output_verbatim and verbatim.
611 (output_verbatim): Adjust.
612 (verbatim): Likewise.
613 (report_diagnostic): Define.
615 * diagnostic.h (report_diagnostic): Prototype.
617 2000-07-09 Zack Weinberg <zack@wolery.cumb.org>
619 * cppexp.c (_cpp_parse_expr): Don't use unary plus.
621 2000-07-09 Neil Booth <NeilB@earthling.net>
623 * cpphash.h: ISvspace, is_vspace, is_nvspace: New.
624 IShspace, ISspace: Update.
626 * cppinit.c: ISTABLE: Update.
629 * cpplex.c (IS_HSPACE, S_NEWLINE): Remove.
630 (IS_DIRECTIVE): Rename KNOWN_DIRECTIVE.
631 (skip_block_comment, skip_line_comment, parse_string,
632 lex_line): Use is_vspace rather than IS_NEWLINE.
633 (skip_whitespace, lex_line): Clean up to use is_nvspace.
634 (lex_line): Use KNOWN_DIRECTIVE. Any kind of directive
636 (lex_next): Unconditionally stop if within a directive.
637 Treat directives within macro invocations as directives
638 (after parse_args emits error), not as the argument.
640 2000-07-09 Gabriel Dos Reis <gdr@codesourcery.com>
642 * diagnostic.c (diagnostic_args): New macro.
643 (diagnostic_msg): Likewise.
644 (output_formatted_integer): Likewise.
645 (output_state): New data type.
646 (digit_buffer): Make global.
647 (output_add_integer): Rename to output_decimal. Squeeze
649 (output_long_decimal, output_unsigned_decimal,
650 output_long_unsigned_decimal, output_octal, output_long_octal,
651 output_hexadecimal, output_long_hexadecimal): New functions.
652 (output_append_r): New function.
653 (output_append): Tweak.
654 (output_flush_on): Rename to output_to_stream.
655 (output_format): Change prototype. Improve documentation. Handle
656 more format specifiers.
657 (build_location_prefix): Rename to context_as_prefix.
658 (output_notice): Rename to output_do_printf.
659 (output_printf): Tweak.
660 (line_wrapper_printf): Likewise.
661 (vline_wrapper_message_with_location): Adjust call to renamed
663 (v_message_with_decl): Likewise.
664 (default_print_error_function): Likewise.
665 (save_output_state): New function.
666 (restore_output_state): Likewise.
667 (output_do_verbatim): Likewise.
668 (output_verbatim): Define.
669 (verbatim): Likewise.
671 * diagnostic.h (printer_fn): Change return type from void to int.
672 Improve documentation.
673 (output_add_integer): Rename to output_decimal.
674 (output_flush_on, output_format): Don't export.
675 (output_verbatim, verbatim): Declare.
677 2000-07-08 Toon Moene <toon@moene.indiv.nluug.nl>
679 * fold-const.c (extract_muldiv) case PLUS_EXPR, MINUS_EXPR:
680 Check whether c divides op1 exactly if operation is not
683 2000-07-08 Richard Henderson <rth@cygnus.com>
685 * final.c (final): Do not abort when reg-stack introduces
688 2000-07-08 Zack Weinberg <zack@wolery.cumb.org>
690 * cpplib.h (struct cpp_name): Now struct cpp_string.
691 (CPP_INT, CPP_FLOAT, CPP_NUMBER, CPP_COMMENT,
692 CPP_HEADER_NAME): Change to type S.
693 (struct cpp_token): Rename 'name' field to 'str'. Add 'node'
694 field, a cpp_hashnode *. All references to val.name updated
695 to use val.str or val.node as appropriate.
696 (struct cpp_reader): Add spec_nodes field.
697 (cpp_idcmp): Now cpp_ideq; takes a token * and a char *.
699 * cpphash.h (struct spec_nodes): New.
700 (enum spell_type): Reorder. Only SPELL_STRING tokens use
701 val.str. All references to 'spelling > SPELL_NONE' updated to
704 (CPP_IN_SYSTEM_HEADER): Check pfile->buffer and
705 pfile->buffer->inc are not NULL before dereferencing them.
707 * cpplex.c (parse_name): Take a pointer to the current token,
708 plus current position and limit as args; return the new
709 position; don't copy the text of a name into the string
710 buffer, instead call cpp_lookup and store the node pointer.
711 If extending a token, copy out the text of the old into a
712 scratch buffer, append the new, look that up and store the new
713 node pointer. Inline.
714 (maybe_paste_with_next): If the result of paste is a NAME,
715 then look up the pasted text and store its node pointer.
716 (lex_line): Adjust for new parse_name interface.
717 Check for L"str", L'str' using spec_nodes->n_L.
718 (spell_token): SPELL_IDENT tokens have their spelling in
719 val.node->name. Handle SPELL_STRING tokens that don't have
721 (_cpp_expand_name_space,
722 (can_paste): Check for L ## "str" using spec_nodes->n_L.
723 (cpp_get_token, special_symbol): No need to call cpp_lookup.
724 (cpp_idcmp): Now cpp_ideq; take a token * and a const char *;
725 return 1=equal 0=not, not a tristate.
727 * cpphash.c (var_args_str): Delete.
728 (find_param): Compare node fields directly.
729 (is__va_args__): Use CPP_PEDANTIC. Just compare
730 token->val.node with spec_nodes->n__VA_ARGS__.
731 (dump_funlike_macro): Don't use var_args_str.
733 * cpplib.c (_cpp_check_directive): Just walk through
734 spec_nodes->dirs comparing pointers.
735 (get_define_node, do_pragma_poison, detect_if_not_defined,
736 parse_ifdef): The identifier has already been looked up.
737 (do_ifdef, do_ifndef): parse_ifdef won't return a poisoned
739 (do_if): Only call detect_if_not_defined at beginning of file.
740 (_cpp_parse_assertion): Only copy string pointers for
742 (pragma_dispatch): Take a node pointer and examine its name
744 (_cpp_init_stacks): Also initialize the spec_nodes structure.
746 * cppinit.c (cpp_reader_init): Call _cpp_init_stacks after
748 (cpp_cleanup): Free pfile->spec_nodes. Call _cpp_cleanup_* in
749 reverse order from the corresponding _cpp_init_* routines.
751 * cppexp.c (parse_number, parse_charconst, parse_defined,
752 lex): Check val.node->type instead of calling cpp_defined.
753 Use spec_nodes entries where appropriate.
755 * fix-header.c, scan-decls.c: Update for interface changes.
757 2000-07-08 Geoffrey Keating <geoffk@cygnus.com>
759 * config/rs6000/rs6000.c (rs6000_emit_move): Fix conditions for
760 emitting aux_truncdfsf2.
762 2000-07-03 Donn Terry (donnte@microsoft.com)
764 * cppinit.c (print_help): split overlong line into ISO C89
767 2000-07-07 Zack Weinberg <zack@wolery.cumb.org>
769 * cppexp.c: Update all code for new lexer interface.
770 (op_t, operator codes, struct token, tokentab2, op_to_str): Remove.
771 (struct suffix, vsuf_1, vsuf_2, vsuf_3, op_to_prio): New.
772 * cpplex.c (token_names): Trim leading CPP_ from names; make
773 the strings unsigned.
774 (_cpp_spell_operator): New.
775 (is_macro_disabled): Disable all macros if rescanning
777 (_cpp_get_directive_token): Remove.
779 * cppinit.c: Don't set no_macro_expand.
780 * cpplib.c (read_line_number, do_line): Check only for EOF,
782 * cpphash.h: Update prototypes.
783 * cpplib.h (CPP_VSPACE): Remove.
784 (struct cpp_reader): Remove no_macro_expand.
786 2000-07-08 Neil Booth <NeilB@earthling.net>
788 * cpphash.c (is__va_args__): New function.
789 (count_params): Fix line reported in error messages. Use
790 is__va_args__. Don't return ')' on error. Flag GNU style
791 rest args macro definitions.
792 (parse_define): Check macro name is not __VA_ARGS__.
793 (save_expansion): Check identifier in non-varargs-macro is
794 not __VA_ARGS__. Don't flag GNU_VARARGS.
795 * cpplex.c (parse_args): Accept no argument iff GNU_REST_ARGS.
796 (maybe_paste_with_next): Use per-macro GNU_REST_ARGS rather
797 than per-token GNU_VARARGS.
798 * cpplib.h (GNU_VARARGS): Remove.
799 (GNU_REST_ARGS): New.
801 Sat Jul 8 01:38:25 MET DST 2000 Jan Hubicka <jh@suse.cz>
803 * i386.md (call_pop, call, call_value_pop): Do not set
804 current_function_uses_pic_offset_table for calls to static
805 functions or indirect calls.
807 2000-07-07 Jim Wilson <wilson@cygnus.com>
809 * config/ia64/ia64.c (rws_access_reg): New local write_count. If
810 is_predicate_reg, then take max write_count of register pair.
812 2000-07-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
814 * tradcpp.c (main): Rename label `include' to `add_include' to
815 avoid conflicts with variable `include' in traditional C.
817 2000-07-07 Jakub Jelinek <jakub@redhat.com>
819 * integrate.c (copy_insn_list): Remove REG_LABEL notes.
821 2000-07-07 Jakub Jelinek <jakub@redhat.com>
823 * sibcall.c (uses_addressof): Add INMEM argument, check for
824 current_function_internal_arg_pointer outside of MEM rtxs in addition
826 (sequence_uses_addressof): Update caller.
828 2000-07-07 Zack Weinberg <zack@wolery.cumb.org>
830 * tradcpp.c (initialize_builtins): Honor NO_BUILTIN_SIZE_TYPE
833 2000-07-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
835 * system.h (UNION_INIT_ZERO): New macro for initializing union
838 * cpplex.c (placemarker_token, eof_token): Use UNION_INIT_ZERO.
840 2000-07-07 Neil Booth <NeilB@earthling.net>
844 Fri Jul 7 07:47:35 2000 Jeffrey A Law (law@cygnus.com)
846 * final.c (final): Detect out of bounds array access to
847 the insn_lengths array.
849 2000-07-07 Kazu Hirata <kazu@hxi.com>
851 * fold-const.c (fold): Fix a comment typo.
853 2000-07-07 Neil Booth <NeilB@earthling.net>
855 * cpp.texi: Update to new lexer.
857 2000-07-06 Zack Weinberg <zack@wolery.cumb.org>
859 * tradcpp.c: New file.
860 * tradcif.y: New file.
861 * tradcif.c: New generated file.
863 * Makefile.in: Add rules to build tradcpp.o, tradcif.o,
864 $(srcdir)/tradcif.c. Add tradcpp to STAGESTUFF and
865 dependencies of C. Install tradcpp from install-common, in
868 2000-07-06 Zack Weinberg <zack@wolery.cumb.org>
870 * cppinit.c: Include cppdefault.h. Refer to
871 cpp_GCC_INCLUDE_DIR and cpp_GCC_INCLUDE_DIR_len, not directly
872 to GCC_INCLUDE_DIR and its length.
873 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
874 USER_LABEL_PREFIX, REGISTER_PREFIX, struct default_include,
875 STANDARD_INCLUDE_DIR, STANDARD_INCLUDE_COMPONENT): Move to
877 (include_defaults_array): Move to cppdefault.c.
879 * cppdefault.h: New file.
880 * cppdefault.c: New file.
882 * Makefile.in (LIBCPP_OBJS): Add cppdefault.o.
883 (cppinit.o): Don't apply $(PREPROCESSOR_DEFINES) to this file.
884 (cppdefault.o): New rule; apply $(PREPROCESSOR_DEFINES) to
887 Thu Jul 6 18:30:36 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
889 * reload.c (push_reload): When seeing if can reuse a register,
890 check extra registers against widest of INMODE and OUTMODE.
892 2000-07-06 Neil Booth <NeilB@earthling.net>
894 * cpplib.c: (_cpp_parse_assertion): Perform hash lookups
895 based on full length of predicate.
897 2000-07-06 Hans-Peter Nilsson <hp@axis.com>
899 * timevar.c: [HAVE_SYS_RESOURCE_H]: Include <sys/resource.h>.
900 [NEED_DECLARATION_GETRUSAGE]: Declare getrusage.
902 2000-07-05 Kazu Hirata <kazu@hxi.com>
904 * h8300-proto.h: Fix formatting.
908 2000-07-05 Jim Wilson <wilson@cygnus.com>
910 * config/ia64/ia64.h (HARD_REGNO_MODE_OK): If FR_REGNO_P, disallow
913 2000-07-05 Rodney Brown <RodneyBrown@pmsc.com>
915 * invoke.texi: Fix minor typos
916 * md.texi: Fix minor typos
918 2000-07-05 Zack Weinberg <zack@wolery.cumb.org>
920 * cpplib.c (_cpp_parse_assertion): Fix buffer overrun.
922 2000-07-04 Zack Weinberg <zack@wolery.cumb.org>
924 * cpplex.c: Don't include sys/mman.h.
925 (cpp_push_buffer, cpp_pop_buffer): Moved to cpplib.c.
927 * cpplib.c: Include sys/mman.h and obstack.h.
928 (cpp_push_buffer): Moved from cpplex.c; allocate buffers on an
930 (cpp_pop_buffer): Moved from cpplex.c; free buffers from an obstack.
931 (_cpp_unwind_if_stack): Now static, unwind_if_stack. Don't
932 bother freeing if stack entries (they will be freed with their buffer).
933 (do_endif): Free if stack entries from the buffer obstack.
934 (push_conditional): Allocate if stack entries from the buffer obstack.
936 (find_answer): Rename to _cpp_find_answer.
937 (do_assert, do_unassert): Update.
939 * cpphash.h: Update prototypes.
940 (xobnew): New convenience macro.
941 * cpplib.h (struct cpp_reader): Add hash_ob and buffer_ob fields.
943 (struct cpp_hashnode): Remove disabled field.
945 * cppinit.c: Don't include hashtab.h or splay-tree.h.
946 (report_missing_guard): Moved to cppfiles.c.
947 (cpp_reader_init): Call cpp_init_stacks, cpp_init_macros,
949 (cpp_cleanup): Call cpp_cleanup_stacks, cpp_cleanup_macros,
950 cpp_cleanup_includes. Don't destroy hashtab or
951 all_include_files here.
952 (cpp_finish): Use _cpp_report_missing_guards.
954 * cppfiles.c (report_missing_guard): Moved from cppinit.c.
955 (_cpp_init_include_table): Rename _cpp_init_includes.
956 (_cpp_cleanup_includes, _cpp_report_missing_guards): New.
958 * cppexp.c (parse_assertion): Update for new name of
961 * Makefile.in (cpplib.o, cpphash.o, cppinit.o): Update deps.
963 2000-07-04 Zack Weinberg <zack@wolery.cumb.org>
965 * cpplib.c (do_ident): s/VSPACE/EOF/
967 2000-07-05 Neil Booth <NeilB@earthling.net>
969 * cpplex.c: Fix trigraph replacement within strings.
971 2000-07-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
973 * rs6000/aix.h (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier.
975 * xcoffout.c (assign_type_number): Constify.
976 (xcoffout_source_file): Add static prototype. Don't needlessly
977 cast away const-ness.
979 2000-07-04 Jason Merrill <jason@redhat.com>
981 * frame.h (frame_state): Move base_offset to end.
983 Mon Jul 3 21:31:43 2000 Clinton Popetz <cpopetz@cygnus.com>
985 * calls.c (emit_library_call_value_1): Revert previous change.
987 2000-07-03 Zack Weinberg <zack@wolery.cumb.org>
989 * fix-header.c (struct partial_proto): Remove unnecessary fields.
990 (recognized_extern, recognized_function, read_scan_file):
991 Update for new scheme.
992 (check_protection): It's still a multiple include guard even
993 if it doesn't always trigger.
994 * scan-decls.c (skip_to_closing_brace, scan_decls): Update for
996 * scan.h: Declare struct cpp_token. Update prototypes.
998 2000-07-03 Neil Booth <neilb@earthling.net>
999 Zack Weinberg <zack@wolery.cumb.org>
1001 Complete overhaul of the lexer and macro expander.
1003 * cpphash.c (object_defn, funct_defn, push_macro_expansion,
1004 arg, arglist, argdata, reflist, collect_objlike_expansion,
1005 collect_funlike_expansion, collect_params,
1006 warn_trad_stringify, trad_stringify, duplicate_arg_p, add_pat,
1007 unsafe_chars, macarg, compare_defs, special_symbol,
1008 scan_arguments, stringify, funlike_macroexpand,
1009 _cpp_quote_string, monthnames): Delete.
1010 (cpp_lookup, _cpp_free_definition, dump_funlike_macro,
1011 _cpp_create_definition, _cpp_dump_definition,
1012 dump_hash_helper): Adjust.
1013 (find_param, count_params, parse_define, var_args_str,
1014 check_macro_redefinition, save_expansion): New.
1016 * cpplex.c (skip_block_comment, skip_line_comment, parse_name,
1017 parse_string, output_line_command, trigraph_replace,
1018 lex_line, cpp_push_buffer, cpp_pop_buffer, cpp_output_tokens,
1019 cpp_scan_buffer_nooutput, cpp_scan_buffer, cpp_free_toklist,
1020 cpp_idcmp, _cpp_get_directive_token, _cpp_init_input_buffer,
1021 _cpp_skip_rest_of_line): Modify.
1023 (maybe_macroexpand, skip_comment, copy_comment, skip_string,
1024 find_position, null_warning, bump_column, expand_name_space,
1025 pedantic_whitespace, _cpp_output_list, _cpp_slice_toklist,
1026 _cpp_squeeze_toklist, _cpp_scan_until, _cpp_skip_hspace,
1027 _cpp_parse_name, _cpp_lex_token, cpp_get_non_space_token,
1028 _cpp_prescan): Delete.
1030 (dump_param_spelling, process_directive, lex_next,
1031 is_macro_disabled, stringify_arg, expand_context_stack,
1032 output_token, make_string_token, alloc_number_token,
1033 special_symbol, duplicate_token, maybe_paste_with_next,
1034 can_paste, prevent_macro_expansion, restore_macro_expansion,
1035 get_temp_token, release_temp_tokens, quote_string,
1036 token_names, token_spellings, _cpp_expand_name_space,
1037 _cpp_glue_header_name, _cpp_reserve_name_space,
1038 digraph_spellings, trigraph_ok, skip_whitespace, save_comment,
1039 placemarker_token, eof_token, cpp_context, macro_args,
1040 get_raw_token, parse_arg, parse_args, save_token,
1041 push_arg_context, push_macro_context, pop_context,
1042 do_pop_context, free_macro_args, _cpp_get_line,
1043 _cpp_run_directive): New.
1045 * cpplib.c (validate_else, parse_include, push_conditional,
1046 pass_thru_directive, read_line_number, parse_ifdef,
1047 detect_if_not_defined, _cpp_check_directive, do_define,
1048 do_undef, do_include, do_import, do_include_next, do_error,
1049 do_warning, do_ident, do_pragma, pragma_dispatch, gcc_pragmas,
1050 top_pragmas, do_pragma_gcc, do_pragma_implementation,
1051 do_pragma_poison, do_pragma_system_header,
1052 do_pragma_dependency, do_sccs, do_ifdef, do_ifndef, do_else,
1053 dl_elif, do_endif, _cpp_unwind_if_stack, do_assert,
1054 do_unassert, cpp_define, cpp_undef, cpp_assert, cpp_unassert,
1055 cpp_defined): Update for new scheme.
1056 (strtoul_for_line, get_define_node, dump_macro_name,
1057 _cpp_check_linemarker, _cpp_parse_assertion): New.
1058 (_cpp_handle_directive, do_pragma_default): Delete.
1060 * cpphash.h (struct predicate): Now struct answer.
1061 (enum spell_type, struct token_spelling, struct directive,
1062 directive_handler): New.
1063 Update prototypes. Remove unused macros.
1064 * cpplib.h: Update prototypes. Remove unused macros,
1065 structure definitions, and fields.
1067 * cpperror.c (print_containing_files, v_message): Adjust.
1068 * cppexp.c (parse_assertion, lex, parse_escape,
1069 _cpp_parse_expr): Adjust.
1070 * cppfiles.c (open_include_file, _cpp_execute_include,
1071 _cpp_compare_file_date, cpp_read_file, read_include_file):
1073 * cppinit.c (dump_special_to_buffer): Delete.
1074 (append_include_chain, merge_include_chains, cpp_reader_init,
1075 cpp_cleanup, initialize_builtins, builtin_array, cpp_start_read,
1076 cpp_finish, handle_option, print_help): Adjust.
1077 * cppmain.c (main): Adjust.
1079 2000-07-03 Zack Weinberg <zack@wolery.cumb.org>
1081 * cppspec.c (lang_specific_driver): Use double quotes in error
1084 Mon Jul 3 16:53:43 2000 Clinton Popetz <cpopetz@cygnus.com>
1086 * calls.c (emit_library_call_value_1): Use valreg instead
1087 of hard_libcall_value.
1089 2000-07-03 Geoff Keating <geoffk@cygnus.com>
1091 * config/rs6000/rs6000.c (rs6000_emit_move): New function.
1092 * config/rs6000/rs6000-proto.h: Prototype rs6000_emit_move.
1093 * config/rs6000/rs6000.md (movsi): Use rs6000_emit_move.
1101 * expmed.c (expand_mult_highpart): Use op1 instead of wide_op1 when
1102 mode instead of wider_mode is being used.
1104 2000-07-03 Jakub Jelinek <jakub@redhat.com>
1106 * config/i386/i386.md (movstrictqi_xor): Use 'q' constraint instead
1107 of 'r'. Use q_regs_operand.
1108 (andsi_1+2): Use q_regs_operand.
1110 2000-07-03 Jakub Jelinek <jakub@redhat.com>
1112 * builtins.c (get_memory_rtx): Always put into alias set 0.
1114 2000-07-03 Nick Clifton <nickc@cygnus.com>
1116 * config/arm/arm.md: Fix post increment and pre increment
1117 peepholes so that they do not generate UNPREDICATBLE opcodes.
1118 (ie ones where the increment clobbers the source/destination).
1120 2000-07-01 Marek Michalkiewicz <marekm@linux.org.pl>
1122 * config/avr/avr.c (out_adj_frame_ptr): Make "frame pointer
1123 change too big for -mtiny-stack" a warning, if larger than 63.
1124 (out_set_stack_ptr): Change the logic so -mno-interrupts is
1125 always safe to use on possible future devices.
1126 (function_prologue): Write SPH before SPL, for consistency.
1127 If interrupt_func_p true, we know we have enabled interrupts.
1128 (avr_num_arg_regs): New function. Round up to even number of
1129 bytes if no -mpack-args or if calling a libgcc function.
1130 (function_arg, function_arg_advance): Use it.
1131 (output_movsisf, ashlsi3_out, ashrsi3_out, lshrsi3_out):
1132 Output "movw" if available.
1133 (out_tsthi, out_tstsi, ashlqi3_out, lshrqi3_out): Change uses
1134 of TEST_HARD_REG_CLASS macro to test_hard_reg_class function.
1135 (asm_output_section_name): Add blanks for consistent output.
1136 (encode_section_info): Set TREE_READONLY for progmem data to
1137 avoid gas warnings about changed section attributes.
1138 (avr_hard_regno_mode_ok): Force non-QImode data to start in
1139 even numbered registers on devices with "movw".
1140 * config/avr/avr.h (MASK_*): Define bits for target_flags.
1141 (TARGET_SWITCHES): Mark help strings for translation.
1142 Add new -mpack-args and -menhanced switches.
1143 (TARGET_OPTIONS): Mark help strings for translation.
1144 (progmem_section): Add section attributes.
1145 * config/avr/avr.md (*movhi, call_insn, call_value_insn):
1146 Output "movw" if available.
1147 (mulqi3, mulqihi3, umulqihi3, mulhi3, *tablejump_enh):
1149 * config/avr/libgcc.S (_mulqi3, _divqi3): Update to the new
1150 call convention (arguments aligned on even registers).
1151 (_cleanup, _exit): Make weak symbols libc can override.
1153 2000-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1155 * fp-bit.h: New file.
1157 * fp-bit.c: Move common code, prototypes, etc into fp-bit.h.
1158 Comment #endif statements.
1159 (__thenan_sf, __thenan_df): Add missing braces around initializer.
1161 Mon Jul 3 00:32:47 2000 Jeffrey A Law (law@cygnus.com)
1163 * gcse.c (compute_pre_data): Compute ae_kill using other local
1164 properties instead of calling compute_ae_kill.
1166 * alias.c (init_alias_analysis): Do not call
1167 prologue_epilogue_contains until after reload has completed.
1169 2000-07-02 Benjamin Chelf <chelf@codesourcery.com>
1171 * c-common.h (genrtl_begin_compound_stmt): Remove declaration.
1172 (genrtl_finish_compound_stmt): Likewise.
1173 (genrtl_compound_stmt): Change to return void.
1175 * c-semantics.c (genrtl_begin_compound_stmt): Remove function and
1176 move code from here to ...
1177 (genrtl_compound_stmt): ... here.
1178 (genrtl_finish_compound_stmt): Remove.
1179 (expand_stmt): Add comment.
1181 2000-07-02 Zack Weinberg <zack@wolery.cumb.org>
1183 * c-typeck.c (build_indirect_ref): Use COMPLETE_OR_VOID_TYPE_P
1186 2000-07-02 Jakub Jelinek <jakub@redhat.com>
1188 * cpplib.h (struct cpp_reader): New field include_depth.
1189 (struct cpp_printer): Rename last_bsd to last_id.
1190 * cppfiles.c (read_include_file): Bump include_depth.
1191 * cpplex.c (cpp_pop_buffer): Decrement include_depth.
1192 (output_line_command): Output correct #line if a header
1193 is including itself and is not protected against multiple inclusion.
1194 Use include_depth instead of buffer_stack_depth, last_id instead of
1196 * cppinit.c (cpp_start_read): Initialize last_id instead of
1199 2000-07-01 Benjamin Chelf <chelf@codesourcery.com>
1201 * Makefile.in (C_AND_OBJC_OBJS): Added c-semantics.o.
1202 (c-semantics.o): New target.
1204 * c-common.h (TREE_LANG_FLAG_?): Added documentation.
1205 (genrtl_do_pushlevel): Moved from cp/cp-tree.h.
1206 (genrtl_clear_out_block): Likewise.
1207 (genrtl_goto_stmt): Likewise.
1208 (genrtl_expr_stmt): Likewise.
1209 (genrtl_decl_stmt): Likewise.
1210 (genrtl_if_stmt): Likewise.
1211 (genrtl_while_stmt): Likewise.
1212 (genrtl_do_stmt): Likewise.
1213 (genrtl_return_stmt): Likewise.
1214 (genrtl_for_stmt): Likewise.
1215 (genrtl_break_stmt): Likewise.
1216 (genrtl_continue_stmt): Likewise.
1217 (genrtl_scope_stmt): Likewise.
1218 (genrtl_switch_stmt): Likewise.
1219 (genrtl_case_label): Likewise.
1220 (genrtl_begin_compound_stmt): Likewise.
1221 (gerntl_finish_compound_stmt): Likewise.
1222 (genrtl_compound_stmt): Likewise.
1223 (genrtl_asm_stmt): Likewise.
1224 (genrtl_decl_cleanup): Likewise.
1225 (DECL_ANON_UNION_ELEMS): Likewise.
1226 (emit_local_var): Likewise.
1227 (make_rtl_for_local_static): Likewise.
1228 (expand_cond): Likewise.
1229 (expand_stmt): Likewise.
1230 (c_expand_return): Likewise.
1231 (c_expand_start_case): Likewise.
1232 (do_case): Likewise.
1233 (COMPOUND_STMT_NO_SCOPE): Likewise.
1234 (c_expand_asm_operands): Likewise.
1235 (NEW_FOR_SCOPE_P): New macro.
1236 (expand_expr_stmt_fn): New type.
1238 (set_current_function_name_declared): Likewise.
1239 (current_function_name_declared): Likewise.
1240 (lang_expand_stmt): Likewise.
1241 (stmts_are_full_exprs_p): Likewise.
1242 (anon_aggr_type_p): Likewise.
1243 (lang_expand_expr_stmt): Likewise.
1244 (build_case_label): Likewise.
1246 * c-decl.c (lang_expand_expr_stmt): Initialize.
1247 (stmts_are_full_exprs_p): Define.
1248 (current_function_name_declared): Likewise.
1249 (do_case): Likewise.
1250 (lang_expand_stmt): Likewise.
1251 (set_current_function_name_declared): Likewise.
1252 (anon_aggr_type_p): Likewise.
1254 * c-semantics.c: New file.
1255 (expand_cond): Moved from cp/semantics.c.
1256 (genrtl_do_pushlevel): Likewise.
1257 (genrtl_clear_out_block): Likewise.
1258 (genrtl_goto_stmt): Likewise.
1259 (genrtl_expr_stmt): Likewise.
1260 (genrtl_decl_stmt): Likewise.
1261 (genrtl_if_stmt): Likewise.
1262 (genrtl_while_stmt): Likewise.
1263 (genrtl_do_stmt): Likewise.
1264 (genrtl_return_stmt): Likewise.
1265 (genrtl_for_stmt): Likewise.
1266 (genrtl_break_stmt): Likewise.
1267 (genrtl_continue_stmt): Likewise.
1268 (genrtl_scope_stmt): Likewise.
1269 (genrtl_switch_stmt): Likewise.
1270 (genrtl_case_label): Likewise.
1271 (genrtl_begin_compound_stmt): Likewise.
1272 (genrtl_finish_compound_stmt): Likewise.
1273 (genrtl_compound_stmt): Likewise.
1274 (genrtl_asm_stmt): Likewise.
1275 (genrtl_decl_cleanup): Likewise.
1276 (make_rtl_for_local_static): Moved from cp/decl.c.
1277 (emit_local_var): Likewise.
1278 (expand_stmt): Define.
1280 * c-tree.h: (c_expand_asm_operands): Moved to c-common.h.
1281 (c_expand_return): Likewise.
1282 (c_expand_start_case): Likewise.
1284 2000-07-01 Richard Henderson <rth@cygnus.com>
1286 * config/ia64/ia64.c (symbolic_operand): Reject CONST expressions
1287 with the low 13 bits set.
1288 (move_operand): Check for CONST|SYMBOL_REF|LABEL_REF directly.
1289 * config/ia64/ia64.md (movdi): Likewise. Expand a CONST with one
1290 of the low 13 bits into a CONST plus an adddi3.
1291 (load_symptr): Set RTX_UNCHANGING_P.
1293 2000-06-30 Mark Mitchell <mark@codesourcery.com>
1295 * Makefile.in (c-common.o): Don't depend on c-tree.h or c-lex.h.
1296 * c-common.c (ridpointers): Declare.
1297 * c-common.h (enum rid): Declare.
1299 (ridpointers): Likewise.
1300 * c-lex.c (ridpointers): Don't declare.
1301 (init_lex): Initialize ridpointers.
1302 * c-lex.h (enum rid): Don't declare.
1304 (RID_FIRST_MODIFIER): Likewise.
1305 (ridpointers): Likewise.
1307 2000-06-30 J. David Anglin <dave@hiauly1.hia.nrc.ca>
1309 * pa/som.h (ASM_WEAKEN_LABEL): Export weak data symbols so that they
1312 2000-06-30 Martin von Loewis <loewis@informatik.hu-berlin.de>
1314 * invoke.texi (-Wreturn-type): In C++, a missing return type is
1317 2000-06-30 Catherine Moore <clm@cygnus.com>
1319 * c-common.c (decl_attributes): Differentiate between
1320 types and type decls for alignment.
1322 2000-06-30 Nathan Sidwell <nathan@codesourcery.com>
1324 * cpp.texi: Document #pragma GCC dependency
1325 * cppfiles.c (open_include_file): Set date to unknown.
1326 (_cpp_compare_file_date): New function.
1327 (read_include_file): Set file date.
1328 * cpphash.h (struct include_file): Add date member.
1329 (_cpp_compare_file_date): Prototype.
1330 * cpplib.c (parse_include): Add trail parameter. Adjust.
1331 (do_include): Adjust parse_include call.
1332 (do_import): Likewise.
1333 (do_include_next): Likewise.
1334 (gcc_pragmas): Add dependency pragma.
1335 (do_pragma_dependancy): New pragma.
1337 2000-06-29 Jason Merrill <jason@redhat.com>
1339 * dwarf2out.c (output_loc_operands): Don't abort on codes that have
1342 2000-06-29 Jim Wilson <wilson@cygnus.com>
1344 * config/ia64/ia64.h (PREFERRED_RELOAD_CLASS): Return NO_REGS for
1345 a volatile mem and FR_REGS.
1347 2000-06-29 Mark Mitchell <mark@codesourcery.com>
1349 * c-common.c: Include c-common.h, not c-lex.h or c-tree.h.
1350 * c-common.h (flag_const_strings): Declare.
1351 (warn_format): Likewise.
1352 (flag_traditional): Likewise.
1353 (flag_isoc99): Likewise.
1354 (warn_parentheses): Likewise.
1355 (warn_conversion): Likewise.
1356 (C_TYPE_OBJECT_P): Likewise.
1357 (C_TYPE_INCOMPLETE_P): Likewise.
1358 (C_TYPE_FUNCTION_P): Likewise.
1359 (C_TYPE_OBJECT_OR_INCOMPLETE_P): Likewise.
1360 (C_EXP_ORIGINAL_CODE): Likewise.
1361 (build_unary_op): Likewise.
1362 (build_binary_op): Likewise.
1363 (lvalue_p): Likewise.
1364 (default_conversion): Likewise.
1365 (common_type): Likewise.
1366 * c-tree.h (C_TYPE_OBJECT_P): Remove.
1367 (C_TYPE_INCOMPLETE_P): Likewise.
1368 (C_TYPE_FUNCTION_P): Likewise.
1369 (C_TYPE_OBJECT_OR_INCOMPLETE_P): Likewise.
1370 (C_EXP_ORIGINAL_CODE): Likewise.
1371 (common_type): Likewise.
1372 (default_conversion): Likewise.
1373 (build_binary_op): Likewise.
1374 (build_unary_op): Likewise.
1375 (lvalue_p): Likewise.
1376 (flag_const_strings): Likewise.
1377 (warn_format): Likewise.
1378 (warn_conversion): Likewise.
1379 (flag_traditional): Likewise.
1380 (flag_isoc99): Likewise.
1381 (warn_parentheses): Likewise.
1383 2000-06-29 James E. Wilson <wilson@cygnus.com>
1385 * config/ia64/linux.h (LINK_SPEC): Change so.1 to so.2.
1387 * config/ia64/ia64.h (MODES_TIEABLE_P): Only tie if mode class is the
1388 same. Only tie XFmode with XFmode.
1390 2000-06-29 Zack Weinberg <zack@wolery.cumb.org>
1392 * c-decl.c, timevar.c, tlink.c: Include intl.h.
1393 * Makefile.in: Update deps.
1395 2000-06-29 Andrew Haley <aph@cygnus.com>
1397 * toplev.c (main): On an IA-64, make flag_unwind_tables defauit
1400 2000-06-29 Andrew Haley <aph@cygnus.com>
1402 * config/ia64/linux.h (JMP_BUF_SIZE): Size is in Pmode units, not
1403 bytes: remove the multiply by 8.
1405 2000-06-29 Philipp Thomas <pthomas@suse.de>
1407 * rtl.c : Revert NLS changes.
1408 * gcc.c : Fix bug in display_help introced by my last changes.
1410 Wed Jun 28 21:09:33 2000 Raja R Harinath <harinath@cs.umn.edu>
1412 * dbxout.c (dbxout_symbol, case RESULT_DECL, VAR_DECL): Use
1413 DECL_CONTEXT, not DECL_FIELD_CONTEXT.
1415 2000-06-29 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
1417 * flow.c (flow_depth_first_order_compute): Fix algorithm.
1419 2000-06-28 Philipp Thomas <pthomas@suse.de>
1421 * c-decl.c : Mark strings for translation.
1422 (parmlist_tags_warning): Use distinct messages instead
1423 of conditional expressions.
1424 * diagnostic.c (v_message_with_decl): Mark string for translation.
1425 * gcc.c: Mark messages for translation.
1426 (display_help): Combine messages into one string where necessary.
1427 * mips-tfile: Add intl.h. Mark messages for translation.
1428 * rtl.c (fatal_with_file_and_line): Modify function for NLS. Mark
1429 messages for translation.
1430 * timevar.c: Mark messages for translation.
1431 * tlink.c: Likewise.
1432 * toplev.c: Likewise.
1434 Wed Jun 28 15:39:26 2000 Donn Terry (donnte@microsoft.com)
1436 * i386-interix.h (STRIP_NAME_ENCODING): Declare _new_name properly.
1438 * alpha/alpha-interix.h: Delete redundant -Asystem(interix),
1439 use -isystem instead of -idirafter.
1440 * i386/i386-interix.h: Likewise.
1442 2000-06-28 Jason Merrill <jason@redhat.com>
1444 * dwarf2out.c (output_loc_operands): Don't support >1 byte output
1445 unless DWARF2_DEBUGGING_INFO is defined.
1446 (ASM_OUTPUT_DWARF_*): Wrap normal output defs with #ifndefs.
1448 2000-06-28 Richard Henderson <rth@cygnus.com>
1450 * config/alpha/alpha.c (summarize_insn): Ignore SCRATCH.
1452 2000-06-28 Jakub Jelinek <jakub@redhat.com>
1454 * cpplex.c (output_line_command): Output correct #line if a header
1455 is including itself and is not protected against multiple inclusion.
1457 2000-06-28 Zack Weinberg <zack@wolery.cumb.org>
1459 * cppfiles.c (open_include_file): If open(2) returns EMFILE or
1460 ENFILE, close all cached file descriptors and try again.
1461 (_cpp_execute_include): Keep a count of the number of times
1462 each header is included.
1463 (close_cached_fd): New function.
1464 * cpphash.h (struct include_file): Rename before to
1465 include_count; all users updated. Make include_count and sysp
1467 * cppinit.c (cpp_finish): If -H, report headers that could use
1469 (report_missing_guard): New function.
1471 Wed Jun 28 14:46:58 MET DST 2000 Jan Hubicka <jh@suse.cz>
1473 * i386.md (prologue_set_got): Set length_immediate field.
1474 (testqi_ccno_1): Add missing '@' character.
1476 2000-06-27 Jason Merrill <jason@redhat.com>
1478 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes): Use
1481 2000-06-27 Andrew Macleod <amacleod@cygnus.com>
1483 * dwarf2out.c (ASM_OUTPUT_DWARF_DATA2): Provide default when no
1484 unsigned macros available.
1486 2000-06-27 Richard Henderson <rth@cygnus.com>
1488 * config/ia64/ia64.c (emit_insn_group_barriers): Special case
1489 epilogue_deallocate_stack.
1491 * config/ia64/ia64.c (ia64_print_operand) [case D]: Emit
1492 completers for UNORDERED and ORDERED as well.
1493 * config/ia64/ia64.md (bunordered, bordered): New.
1494 (sunordered, sordered): New.
1496 Tue Jun 27 12:14:12 MET DST 2000 Jan Hubicka <jh@suse.cz>
1498 * genattrtab.c (write_attr_value): Do not abort for CONST_INT operands.
1499 * i386.c (ix86_attr_length_default): Kill.
1500 (ix86_attr_length_immediate_default, ix86_attr_length_address_default):
1502 * i386-protos.h (ix86_attr_length_default): Kill
1503 (ix86_attr_length_immediate_default, ix86_attr_length_address_default):
1505 * i386.md (attribute type): Add "test".
1506 (attribute length_prefix): Kill.
1507 (attribute length_opcode): Kill.
1508 (attribute i387, mode, length_immediate, length_address, prefix_data16,
1509 prefix_rep, prefix_0f, modrm): New.
1510 (attribute length): Compute using the new attributes.
1511 (attribute pent_prefix): New.
1512 (attribute pent_pair): Compute using pent_prefix.
1513 (all insn patterns): Set mode,modrm and immediate_length attributes where
1515 (cmpsi patterns): Compute sizes propertly for test instruction.
1516 (movsi, movhi patterns): Compute sizes propertly for eax shortcuts.
1517 (movstricthi_xor, movstrictqi_xor): New patterns.
1518 (andsi/andhi): Use splitters to generate xor instructions.
1519 (xorqi_ext_1): New pattern.
1520 (movstricthi->movstricthi_xor peep2): New.
1522 Tue Jun 27 12:03:03 MET DST 2000 Jan Hubicka <jh@suse.cz>
1524 * i386.md (addqi_low_1): Remove.
1526 2000-06-27 Philipp Thomas <pthomas@suse.de>
1528 * 1750a.h: Mark help strings for options/switches for translation.
1530 * alpha.h: Likewise.
1533 * riscix.h: Likewise.
1535 * clipper.h: Likewise.
1536 * convex.h: Likewise.
1537 * elxsi.h: Likewise.
1540 * h8300.h: Likewise.
1542 * cygwin.h: Likewise.
1544 * djgpp.h: Likewise.
1546 * osf1elf.h: Likewise.
1547 * osfrose.h: Likewise.
1549 * win32.h: Likewise.
1551 * paragon.h: Likewise.
1555 * mcore.h: Likewise.
1557 * mn10300.h: Likewise.
1558 * ns32k.h: Likewise.
1559 * pdp11.h: Likewise.
1562 * aix41.h: Likewise.
1563 * aix43.h: Likewise.
1565 * rs6000.h: Likewise.
1566 * sysv4.h: Likewise.
1567 * linux.h: Likewise.
1568 * linux64.h: Likewise.
1569 * sp64-elf.h: Likewise.
1570 * sparc.h: Likewise.
1571 * splet.h: Likewise.
1573 * convex.h (TARGET_SWITCHES): Provide descriptions and mark them
1575 * sp86x-aout.h: Remove bogus first definition of SUBTARGET_SWITCHES.
1576 Properly document option and mark for translation.
1577 * sp86x-elf.h: Likewise.
1579 2000-06-27 Bernd Schmidt <bernds@cygnus.co.uk>
1581 Add MMX and SSE registers to i386 machine description.
1582 * i386-protos.h (ix86_constant_alignment, ix86_data_alignment,
1583 ix86_local_alignment): Declare.
1585 * i386.h (TARGET_MMX, TARGET_SSE): New.
1586 (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS, CALL_USED_REGISTERS,
1587 REG_ALLOC_ORDER, HARD_REGNO_NREGS, HARD_REGNO_MODE_OK,
1588 REG_CLASS_NAMES, REG_CLASS_CONTENTS,REG_CLASS_FROM_LETTER,
1589 enum reg_class, HI_REGISTER_NAMES): Added MMX/SSE registers.
1590 (FIRST_SSE_REG, LAST_SSE_REG, SSE_REGNO_P): New.
1591 (FIRST_MMX_REG, LAST_MMX_REG, MMX_REGNO_P, MMX_REG_P): New macros.
1592 (RETURN_IN_MEMORY): Handle MMX/SSE.
1593 (REG_PARM_STACK_SPACE): Added so the first three TImode parameters
1594 also get stack space.
1595 (MUST_PASS_IN_STACK): Added TImode to the default definition.
1596 (CUMULATIVE_ARGS): Added sse_nregs, sse_regno and sse_words.
1597 (MMX_REGISTER_NAMES): New.
1598 (ALIGN_MODE_128): New macro.
1599 (CONSTANT_ALIGNMENT): Code moved out-of-line; just call the function.
1600 (DATA_ALIGNMENT): Likewise.
1601 (LOCAL_ALIGNMENT): Likewise.
1602 (CONDITIONAL_REGISTER_USAGE): Make MMX/SSE regs fixed if not
1603 TARGET_MMX/TARGET_SSE.
1604 (VALID_SSE_REG_MODE, VALID_MMX_REG_MODE): New macros.
1605 (REG_CLASS_FROM_LETTER): 'y' for MMX regs.
1606 (SECONDARY_MEMORY_NEEDED): Be conservative about copying between
1607 SSE/MMX regs and something else.
1608 (CLASS_MAX_NREGS): 1 for SSE and MMX regs.
1609 (REGISTER_MOVE_COST): 10 if trying to move between MMX and SSE regs,
1610 3 if moving between MMX regs and something else.
1612 * i386.c (reg_class): Add SSE_REGS, MMX_REGS.
1613 (regclass_map): Add MMX/SSE registers.
1614 (print_operand): Add code to print XMMWORD as appropriate.
1615 (ix86_split_movdi): Abort for MMX regs.
1616 (init_cumulative_args): Also allow SSE_REGS
1617 (function_arg_advance, function_arg): Likewise
1618 (print_reg): Support 'm'. Add case for TImode.
1619 (override_options): TARGET_SSE implies TARGET_MMX.
1620 (ix86_constant_alignment, ix86_data_alignment, ix86_local_alignment):
1623 * config/i386/unix.h (VALUE_REGNO): VECTOR_MODE values go to
1625 * config/i386/ptx4-i.h (RETURN_IN_MEMORY): Return MMX values in
1627 * config/i386/sysv4.h (RETURN_IN_MEMORY): Likewise.
1628 * config/i386/i386elf.h (RETURN_IN_MEMORY): Likewise.
1630 2000-06-26 Geoff Keating <geoffk@cygnus.com>
1632 * ssa.c (struct rename_set_data): Change the name of field
1633 'set_dest' to 'old_reg'. Add comments.
1634 (struct rename_context): Change the name of 'set_data' to
1635 'new_renames'. Add new field 'done_renames'.
1636 (create_delayed_rename): New function.
1637 (apply_delayed_renames): New function.
1638 (rename_insn_1): Use the new functions. Handle CLOBBERS. Handle
1639 SUBREGs and similar by emitting a move.
1640 (new_registers_for_updates): Delete, functionality moved to
1641 apply_delayed_renames.
1642 (rename_block): Handle moves emitted by rename_insn_1 by putting
1643 them into a SEQUENCE with the original insn. Add sanity checks
1645 (rename_equivalent_regs_in_insn): Don't handle SUBREGs specially.
1646 (rename_equivalent_regs): Expand SEQUENCEs out to individual insns.
1648 2000-06-26 Andrew Macleod <amacleod@cygnus.com>
1649 Jason Merrill <jason@redhat.com>
1651 * dwarf2.h (enum dwarf_call_frame_info): Add
1652 DW_CFA_def_cfa_expression.
1653 * dwarf2out.c (union dw_cfi_oprnd_struct): Add a pointer to a
1654 dw_loc_descr_struct entry.
1655 (struct cfa_loc): New structure to track a CFA location.
1656 (lookup_cfa): Take a cfa_loc parameter instead of a reg and an offset.
1657 (lookup_cfa_1): Take a cfa_loc parameter instead of a reg and an
1658 offset, plus handle DW_CFA_def_cfa_expression.
1659 (def_cfa_1): Use to be dwarf2out_def_cfa, only now it uses a
1661 (dwarf2out_def_cfa): Entry point maintained for compatability.
1662 (dwarf_cfi_name): Add DW_CFA_def_cfa_expression.
1663 (cfa_reg, cfa_offset): Replace with cfa_loc record 'cfa'.
1664 (cfa_store_reg, cfa_store_offset): Replace with cfa_loc 'cfa_store'.
1665 (initial_return_save, dwarf2out_stack_adjust): Use cfa.reg, not
1667 (dwarf2out_frame_debug_expr): Use new cfa_loc records. Recognize rtl
1668 sequences for the new DW_CFA_def_cfa_expression record.
1669 (dwarf2out_frame_debug): Use new variables/fields.A
1670 (output_cfi): Handle DW_CFA_def_cfa_expression.
1671 (output_cfa_loc): New function to generate a CFI record for
1672 DW_CFA_def_cfa_expression.
1673 (get_cfa_from_loc_descr): New function to get a cfa_loc record from
1674 a dw_loc_descr sequeunce.
1675 (build_loc_descr): Build a dw_loc_descr from a cfa_loc record.
1676 (dwarf_stack_op_name, new_loc_descr, add_loc_descr, size_of_loc_descr,
1677 size_of_locs, output_loc_operands, output_loc_sequence): Move into
1678 unwind info section.
1679 * frame.h (frame_state): Add base_offset and indirect fields.
1680 * frame-dwarf2.c (decode_stack_op): New function to interpret a
1681 dw_loc_descr operation.
1682 (execute_cfa_insn): Add support for DW_CFA_def_cfa_expression.
1683 (struct frame_state): Add base offset and indirect fields.
1684 * libgcc2.c (next_stack_level): Support indirect loading for CFA.
1686 2000-06-26 Joseph S. Myers <jsm28@cam.ac.uk>
1688 * c-decl.c (grokdeclarator): Don't warn about `long long' in C99.
1689 Make warnings about implicit int be pedwarns in C99. Don't warn
1690 about duplicate type qualifiers in C99.
1691 (start_function): Make warning about implict int return type be a
1693 * c-lex.c (yylex): Don't warn about `long long' in C99.
1694 * c-typeck.c (c_expand_return): In C99, always pedwarn about
1695 `return' with no value in function returning non-void.
1697 2000-06-26 Richard Henderson <rth@cygnus.com>
1699 * c-typeck.c (pedwarn_c99): New.
1700 * diagnostic.c (verror, vwarning, vpedwarn): Export.
1701 * toplev.h: Prototype them.
1703 2000-06-26 J. David Anglin <dave@hiauly1.hia.nrc.ca>
1705 * c-typeck.c (digest_init): Return error_mark_node node when
1706 TREE_TYPE (init) == error_mark_node.
1708 2000-06-26 Philipp Thomas <pthomas@suse.de>
1710 * aclocal.m4 (AM_WITH_NLS): Don't set MSGFMT or GMSGFMT to no,
1711 test for msgfmt without path instead.
1712 * configure: Rebuilt.
1714 2000-06-25 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
1716 * gengenrtl.c (special_rtx): Fix typo in comment.
1718 2000-06-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
1720 * mklibgcc.in (LIB2FUNCS): Add missing space.
1722 2000-06-24 Bernd Schmidt <bernds@cygnus.co.uk>
1724 * tree.h (enum tree_index): Add vector type nodes.
1725 Add accessor macros for them.
1726 (TYPE_REPRESENATION_TYPE): New macro.
1727 * tree.c (build_common_tree_nodes_2): Build these nodes.
1728 (finish_vector_type): New function.
1729 * c-common.c (type_for_mode): Handle vector modes.
1730 * tm.texi (VECTOR_MODE_SUPPORTED_P): Document.
1732 * dbxout.c (dbxout_type): Handle VECTOR_TYPEs.
1733 * dwarf.h (enum dwarf_fundamental_type): Add 128 bit integers.
1734 * dwarf2out.c (lookup_type_die): Handle VECTOR_TYPEs.
1735 (gen_type_die): Likewise.
1736 * dwarfout.c (dwarf_fund_type_name): Handle 128 bit integers.
1737 (fundamental_type_code): Likewise.
1738 (type_is_fundamental): VECTOR_TYPEs aren't.
1739 (output_type): Handle VECTOR_TYPEs.
1741 2000-06-25 Kazu Hirata <kazu@hxi.com>
1743 * config/arm.c: Fix a comment typo.
1744 * config/arm.h: Likewise.
1746 2000-06-25 Philipp Thomas <pthomas@suse.de>
1748 * aclocal.m4 (AM_WITH_NLS): Set create_catalogs=no if no catalog
1750 AM_GNU_GETTEXT: Don't set CATALOGS if create_catalogs=no.
1751 * configure: Rebuilt.
1753 2000-06-25 John David Anglin <dave.anglin@nrc.ca>
1755 * config/vax/vax.h (TARGET_SWITCHES): Provide descriptions.
1757 2000-06-25 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
1759 * mklibgcc.in: Prefer LIB1ASMFUNCS over LIB2FUNCS when generating
1762 2000-06-24 Marc Espie <espie@cvs.openbsd.org>
1764 * collect2.c (resolve_lib_name): Move '/' check out of loop.
1766 2000-06-24 Dirk Duellmann <Dirk.Duellmann@cern.ch>
1768 * ginclude/stddef.h (NULL): define for non-gnu C++ parsers as 0.
1770 2000-06-24 Jakub Jelinek <jakub@redhat.com>
1772 * stmt.c (expand_decl_cleanup): Emit a dummy insn after
1773 last_unconditional_cleanup.
1775 2000-06-24 Bernd Schmidt <bernds@cygnus.co.uk>
1777 * tree.def (VECTOR_TYPE): New node type.
1778 * tree.h: Adjust some comments to reflect addition of vector types.
1779 (TYPE_VECTOR_SUBPARTS): New macro.
1780 * stor-layout.c (layout_type): Handle VECTOR_TYPE.
1781 * c-convert.c (convert): Likewise.
1782 * convert.c (convert_to_integer): Handle vector modes.
1783 (convert_to_vector): New function.
1784 * convert.h (convert_to_vector): Declare.
1785 * expr.c (convert_move): Handle vector modes.
1786 * expmed.c (extract_bit_field): Don't abort for vector modes.
1788 2000-06-24 Marek Michalkiewicz <marekm@linux.org.pl>
1790 * config/avr/avr-protos.h (avr_hard_regno_mode_ok): New prototype.
1791 * config/avr/avr.c (out_adj_frame_ptr, out_set_stack_ptr):
1792 New functions, common code moved from function_{prologue,epilogue}
1793 and extended to support the -mtiny-stack option.
1794 (function_prologue, function_epilogue): Use them.
1795 Use lo8/hi8 consistently for asm output readability.
1796 (avr_hard_regno_mode_ok): New function.
1797 * config/avr/avr.h (TARGET_SWITCHES): Fix typo. Add -mtiny-stack.
1798 (UNITS_PER_WORD): Define as 4 (not 1) when compiling libgcc2.c.
1799 (HARD_REGNO_MODE_OK): Call the avr_hard_regno_mode_ok function.
1800 * config/avr/avr.md (*mov_sp_r): Add support for -mtiny-stack.
1801 Write SPH before SPL.
1802 (*movqi): No need to disable interrupts for just one "out"
1803 in alternative 5. Change length attribute from 4 to 1.
1804 * config/avr/libgcc.S (__prologue_saves__, __epilogue_restores__):
1805 Write SPH before SPL.
1807 2000-06-24 Bernd Schmidt <bernds@cygnus.co.uk>
1809 * rtl.texi (Vector Operations): New node.
1810 (Arithmetic): Add ss_plus, us_plus, ss_minus, us_minus.
1811 (Conversions): Add ss_truncate, us_truncate.
1812 * rtl.def (VEC_MERGE, VEC_SELECT, VEC_CONCAT, VEC_REORDER,
1813 VEC_CONST, VEC_DUPLICATE, SS_PLUS, SS_MINUS, SS_TRUNCATE,
1814 US_TRUNCATE): New rtx codes.
1815 * machmode.def: Add vector modes.
1816 * machmode.h (enum mode_class): Add MODE_VECTOR_INT and
1818 (INTEGER_MODE_P): Check for MODE_VECTOR_INT.
1819 (FLOAT_MODE_P): Check for MODE_VECTOR_FLOAT.
1820 (VECTOR_MODE_P): New.
1822 2000-06-24 Nathan Sidwell <nathan@codesourcery.com>
1824 * cpp.texi: Clarify #pragma GCC namespace.
1826 2000-06-24 Philipp Thomas <pthomas@suse.de>
1828 * aclocal.m4(AM_GNU_GETTEXT): If LINGUAS isn't set, build
1829 all catalogs specified in ALL_LINGUAS.
1830 * configure: Rebuilt.
1832 2000-06-23 Jakub Jelinek <jakub@redhat.com>
1834 * config/sparc/sparc.md (reload_outdi+1): Handle
1835 HOST_BITS_PER_WIDE_INT == 64 case correctly.
1836 (adddi3_insn_sp32+1, adddi3_insn_sp32+2, andsi3+2): Likewise.
1838 2000-06-23 Geoffrey Keating <geoffk@cygnus.com>
1840 * alias.c (fixed_scalar_and_varying_struct_p): Don't examine
1841 struct vs. scalar-ness when -fno-strict-aliasing.
1843 2000-06-23 Nathan Sidwell <nathan@codesourcery.com>
1845 * cpplib.c (struct pragma_entry): New structure.
1846 (pragma_dispatch): Pragma dispatcher.
1847 (top_pragmas, gcc_pragmas): New static variables.
1848 (do_pragma): Use pragma_dispatch.
1849 (do_pragma_gcc): New pragma handler.
1852 2000-06-23 Jakub Jelinek <jakub@redhat.com>
1854 * calls.c (compute_argument_addresses): Force stack slots into
1856 * expr.c (emit_push_insn): Force pushes into alias set 0.
1858 2000-06-23 Richard Henderson <rth@cygnus.com>
1860 * config/ia64/ia64.md (pred_rel_mutex): Only take one register.
1861 * config/ia64/ia64.c (emit_predicate_relation_info): Adjust to match.
1863 2000-06-22 Jason Merrill <jason@redhat.com>
1865 * toplev.c (compile_file): Always call timevar_print.
1866 * Makefile.in (calls.o): Depend on TIMEVAR_H.
1868 2000-06-22 Nathan Sidwell <nathan@codesourcery.com>
1870 * varasm.c (constant_descriptor): Make contents unsigned char.
1871 (mark_const_hash_entry): Adjust.
1872 (const_hash): Just hash the code of unknown nodes.
1873 (compare_constant_1): Adjust for unsigned char.
1874 Use language specific expander on unknown nodes.
1875 (record_constant_1): Likewise.
1877 2000-06-21 Zack Weinberg <zack@wolery.cumb.org>
1879 * cppfiles.c (cpp_make_system_header): New function.
1880 * cpplib.h: Prototype it.
1881 * cpplib.c (do_line, do_pragma_system_header): Use it.
1882 * fix-header.c (read_scan_file): Use it.
1884 * fix-header.c (check_macro_names): Cast second arg of
1885 cpp_defined to const unsigned char *.
1886 (read_scan_file): Make getchar_call const unsigned char.
1888 2000-06-21 Zack Weinberg <zack@wolery.cumb.org>
1890 * cppfiles.c: Include splay-tree.h, not hashtab.h.
1891 (redundant_include_p, make_IHASH, hash_IHASH, eq_IHASH): Delete.
1892 (destroy_include_file_node): New.
1893 (_cpp_init_include_hash): Rename _cpp_init_include_table.
1894 Create a splay tree, not a hash table.
1895 (open_include_file): Look up the path in the include table,
1896 do the multiple include optimization here, etc.
1897 (cpp_included): Walk the path.
1898 (find_include_file): Just walk the path calling
1899 open_include_file, or call it directly for an absolute path.
1900 (_cpp_fake_ihash): Rename _cpp_fake_include and update for new
1902 (read_include_file): Update for new scheme. Don't close the
1903 file unless reading fails.
1904 (_cpp_execute_include, cpp_read_file): Tweak for new scheme.
1906 * cpphash.h (struct ihash, NEVER_REINCLUDE): Delete.
1907 (struct include_file): New.
1908 (NEVER_REREAD, DO_NOT_REREAD, CPP_IN_SYSTEM_HEADER): New
1910 (CPP_PEDANTIC, CPP_WTRADITIONAL): Update.
1913 * cppinit.c: Include splay-tree.h.
1914 (cpp_reader_init, cpp_cleanup): Update.
1916 * cpplib.h (struct cpp_buffer): Change ihash field to
1917 'struct include_file *inc'. Remove system_header_p.
1918 (struct cpp_reader): Change all_include_files to a
1919 struct splay_tree_s *.
1921 * cpplex.c: Update all references to cpp_buffer->ihash and/or
1922 cpp_buffer->system_header_p.
1923 (cpp_pop_buffer): Close file here, only if DO_NOT_REREAD.
1925 * Makefile.in (SPLAY_TREE_H): New macro.
1926 (cppfiles.o, cppinit.o): Update dependencies.
1928 Wed Jun 21 11:05:48 2000 Martin Buchholz <martin@xemacs.org>
1930 * invoke.texi (g++): "g++" is not a script anymore.
1932 2000-06-20 J. David Anglin <dave@hiauly1.hia.nrc.ca>
1934 * function.c (round_down): Delete obsolete prototype.
1936 * pa.h (CPP_SPEC): Add whitespace after -D__STDC_EXT__.
1938 2000-06-20 Zack Weinberg <zack@wolery.cumb.org>
1940 * configure.in: Use 'test a = b' not 'test a == b'.
1943 * Makefile.in (fix-header): Link with $(LIBS) not $(HOST_LIBS).
1945 * Makefile.in: Remove all references to HOST_INTLLIBS.
1947 * cpplex.c (parse_name): Don't warn about $ in identifiers if
1950 2000-06-20 Philipp Thomas <pthomas@suse.de>
1952 * config/pa/pa.h(TARGET_SWITCHES): Require binutils 2.10 or later
1955 Mon Jun 19 23:26:40 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
1957 * Take REG_INC notes into account.
1959 2000-06-19 Zack Weinberg <zack@wolery.cumb.org>
1961 * c-parse.in (undeclared_variable_notice): Moved to c-typeck.c.
1962 (primary: IDENTIFIER): Just call build_external_ref.
1963 * c-parse.y, c-parse.c, objc/objc-parse.y, objc/objc-parse.c:
1965 * c-lex.c (lastiddecl): Remove.
1966 (yylex): Replace all instances of lastiddecl with local
1969 * c-typeck.c (build_external_ref): New function. Treat decls
1970 with C_DECL_ANTICIPATED mostly the same as nonexistent decls.
1971 Look up the decl from the id here. Call lookup_objc_ivar.
1972 * c-lang.c (lookup_objc_ivar): Stub.
1973 * objc/objc-act.c (lookup_objc_ivar): New function.
1975 * c-tree.h: Prototype lookup_objc_ivar and build_external_ref.
1976 * c-lex.h: Don't declare lastiddecl.
1978 2000-06-19 Benjamin Chelf <chelf@codesourcery.com>
1980 * c-common.h (IF_COND): Added documentation.
1981 (THEN_CLAUSE): Likewise.
1982 (ELSE_CLAUSE): Likewise.
1983 (WHILE_COND): Likewise.
1984 (WHILE_BODY): Likewise.
1985 (DO_COND): Likewise.
1986 (DO_BODY): Likewise.
1987 (RETURN_EXPR): Likewise.
1988 (EXPR_STMT_EXPR): Likewise.
1989 (FOR_INIT_STMT): Likewise.
1990 (FOR_COND): Likewise.
1991 (FOR_EXPR): Likewise.
1992 (FOR_BODY): Likewise.
1993 (SWITCH_COND): Likewise.
1994 (SWITCH_BODY): Likewise.
1995 (CASE_LOW): Likewise.
1996 (CASE_HIGH): Likewise.
1997 (GOTO_DESTINATION): Likewise.
1998 (COMPOUND_BODY): Likewise.
1999 (ASM_CV_QUAL): Likewise.
2000 (ASM_STRING): Likewise.
2001 (ASM_OUTPUTS): Likewise.
2002 (ASM_INPUTS): Likewise.
2003 (ASM_CLOBBERS): Likewise.
2004 (DECL_STMT_DECL): Likewise.
2005 (STMT_EXPR_STMT): Likewise.
2006 (LABEL_STMT_LABEL): Likewise.
2008 * c-common.def: Added documenetion for SRCLOC, EXPR_STMT,
2009 COMPOUND_STMT, DECL_STMT, IF_STMT, FOR_STMT, WHILE_STMT, DO_STMT,
2010 RETURN_STMT, BREAK_STMT, CONTINUE_STMT, SWITCH_STMT, GOTO_STMT,
2011 LABEL_STMT, ASM_STMT, SCOPE_STMT, CASE_LABEL, STMT_EXPR.
2013 2000-06-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2015 * configure.in (--enable-checking): Update --help doc to reflect
2016 new defaults. Ensure $ac_save_IFS is set before $IFS is changed.
2018 Sun Jun 18 21:42:15 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2020 * gcse.c (insert_insn_end_bb): Always put after NOTE_INSN_BASIC_BLOCK.
2022 * function.c (put_var_into_stack): Don't reference DECL_ fields
2023 if input is a SAVE_EXPR.
2024 Use set_mem_attributes in COMPLEX case.
2026 2000-06-18 Richard Henderson <rth@cygnus.com>
2028 * config/ia64/ia64-protos.h (process_for_unwind_directive): Declare.
2029 (ia64_file_start): Declare.
2030 * config/ia64/ia64.h (ADDL_REGNO_P): Don't compare unsigned against 0.
2031 (GR_REGNO_P): Likewise.
2032 * config/ia64/ia64.c: Many prototypes.
2033 (ia64_reg_numbers): Constify.
2034 (ia64_input_reg_names, ia64_local_reg_names): Likewise.
2035 (ia64_section_threshold): Make unsigned.
2036 (ia64_print_operand): Constify.
2037 (fix_range): Constify.
2038 (ia64_init_builtins): Don't compare signed vs unsigned.
2039 (ia64_expand_builtin): Likewise.
2041 * config/ia64/ia64.h (EXTRA_CONSTRAINT): New.
2042 (CONSTRAINT_OK_FOR_Q): New.
2043 * config/ia64/ia64.md (movdi_internal): Use Q for fp<->mem.
2044 (movsf_internal, movdf_internal): Likewise.
2045 (cmovdi_internal): Rewrite so that constraints and predicates match;
2047 (cmovsi_internal): Likewise.
2049 * config/ia64/ia64.h (ASM_SPEC): Add -x for gas.
2050 (ASM_FILE_START): New.
2051 * config/ia64/ia64.c (ia64_file_start): New.
2052 (rtx_needs_barrier): Handle pred.rel.mutex.
2053 (emit_predicate_relation_info): New.
2054 * config/ia64/ia64.md (pred_rel_mutex): New.
2055 * config/ia64/linux.h (ASM_SPEC): Define.
2056 * config/ia64/sysv4.h (ASM_FILE_START): Define.
2058 * config/ia64/ia64.c (ia64_encode_section_info): Fix thinko
2059 filtering global register variables.
2061 2000-06-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2063 * c-common.c (add_c_tree_codes): Fix definition for traditional C.
2065 2000-06-17 Michael Meissner <meissner@redhat.com>
2067 * gcc.c (do_spec_1, '%v3' case): Do not abort if patch level is
2068 not present and there is a field after a '-'.
2070 2000-06-17 Bruce Korb <bkorb@gnu.org>
2072 * fixinc/check.tpl: finish the implementation of multiple tests
2074 * fixinc/inclhack.def(ctrl_quotes_def): add a second test
2075 (io_quotes_def): add a second test
2076 (various): reorder `files' so that "limits.h" is never first
2077 * fixinc/tests/base/*: update the testing output
2079 Sat Jun 17 10:33:59 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2081 * gcc.texi: Remove reference to stupid.c.
2083 2000-06-16 Benjamin Chelf <chelf@codesourcery.com>
2085 * c-common.c (c_tree_code_type): New array.
2086 (c_tree_code_length): Likewise.
2087 (c_tree_code_name): Likewise.
2088 (add_c_tree_codes): New function.
2090 * c-common.h (add_c_tree_codes): Declare.
2091 (enum c_tree_code): New enum.
2093 * c-lex.c (init_parse): Added call to add_c_tree_codes.
2095 2000-06-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2097 * fixinc/inclhack.def (ctrl_quotes_def, io_quotes_def): Modify
2098 select pattern to also match macro defs with only one argument.
2100 Thu Jun 15 18:56:12 2000 Jeffrey A Law (law@cygnus.com)
2102 * i386.md: Create new [right,left] rotate and right shift
2103 patterns to optimize shift by 1 bit for certain ia32 processors.
2104 Update patterns which perform left shifts to optimize shift by
2105 1 bit for certain ia32 processors.
2106 * i386.c (const_int_1_operand): New predicate.
2107 * i386.h (PREDICATE_CODES): Handle const_int_1_operand.
2108 * i386-protos.h (const_int_1_operand): Prototype.
2110 Wed Jun 14 23:46:26 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
2112 * mips.c (machine_dependent_reorg): Fix braces for nested if.
2114 2000-06-14 Geoff Keating <geoffk@cygnus.com>
2116 * rs6000.c (toc_hash_eq): Use CODE_LABEL_NUMBER to compare
2119 2000-06-14 Richard Henderson <rth@cygnus.com>
2121 * conflict.c (conflict_graph_compute): Don't look for REG_INC.
2123 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Don't emit
2126 * print-rtl.c (print_rtx): Emit space before mem alias set.
2128 2000-06-14 David Edelsohn <edelsohn@gnu.org>
2130 * rs6000.c (expand_block_move): Fix typo in earlier change.
2131 (print_operand): Remove unused variables neg and op.
2132 (toc_hash_mark_entry): Fix prototype.
2134 2000-06-14 Benjamin Chelf <chelf@codesourcery.com>
2136 * c-common.h (IF_COND): Moved here from cp/cp-tree.h.
2137 (THEN_CLAUSE): Likewise.
2138 (ELSE_CLAUSE): Likewise.
2139 (WHILE_COND): Likewise.
2140 (WHILE_BODY): Likewise.
2141 (DO_COND): Likewise.
2142 (DO_BODY): Likewise.
2143 (RETURN_EXPR): Likewise.
2144 (EXPR_STMT_EXPR): Likewise.
2145 (FOR_INIT_STMT): Likewise.
2146 (FOR_COND): Likewise.
2147 (FOR_EXPR): Likewise.
2148 (FOR_BODY): Likewise.
2149 (SWITCH_COND): Likewise.
2150 (SWITCH_BODY): Likewise.
2151 (CASE_LOW): Likewise.
2152 (CASE_HIGH): Likewise.
2153 (GOTO_DESTINATION): Likewise.
2154 (COMPOUND_BODY): Likewise.
2155 (ASM_CV_QUAL): Likewise.
2156 (ASM_STRING): Likewise.
2157 (ASM_OUTPUTS): Likewise.
2158 (ASM_INPUTS): Likewise.
2159 (ASM_CLOBBERS): Likewise.
2160 (DECL_STMT_DECL): Likewise.
2161 (STMT_EXPR_STMT): Likewise.
2162 (LABEL_STMT_LABEL): Likewise.
2163 (SCOPE_BEGIN_P): Likewise.
2164 (SCOPE_END_P): Likewise.
2165 (SCOPE_STMT_BLOCK): Likewise.
2166 (SCOPE_NULLIFIED_P): Likewise.
2167 (SCOPE_NO_CLEANUPS_P): Likewise.
2168 (SCOPE_PARTIAL_P): Likewise.
2169 (ASM_VOLATILE_P): Likewise.
2170 (STMT_LINENO): Likewise.
2171 (STMT_LINENO_FOR_FN_P): Likewise.
2173 * c-common.def: New file. Added SRCLOC, SIZEOF_EXPR, ARROW_EXPR,
2174 ALIGNOF_EXPR, EXPR_STMT, COMPOUND_STMT, DECL_STMT, IF_STMT,
2175 FOR_STMT, WHILE_STMT, DO_STMT, RETURN_STMT, BREAK_STMT,
2176 CONTINUE_STMT, SWITCH_STMT, GOTO_STMT, LABEL_STMT, ASM_STMT,
2177 SCOPE_STMT, CASE_LABEL, STMT_EXPR.
2179 * gencheck.c (tree_codes[]): Added '#include "c-common.def"'.
2181 2000-06-14 David O'Brien <obrien@FreeBSD.org>
2183 * gcc.c (main): Quiet compiler warnings. argv is assumed to be
2184 writable in parts of the GCC code.
2186 * config/elfos.h (ASM_GENERATE_INTERNAL_LABEL): Make printf
2187 specification match cast.
2189 Wed Jun 14 09:25:57 2000 Jeffrey A Law (law@cygnus.com)
2191 * configure.in: Revert AC_TYPE_GETGROUPS patch from June 13.
2192 * configure, config.in: Rebuilt.
2193 * sys-protos.h: Similarly.
2195 Wed Jun 14 03:39:58 EDT 2000 John Wehle (john@feith.com)
2197 * ifcvt.c (EDGE_COMPLEX): Move definition ...
2198 * basic-block.h (EDGE_COMPLEX): ... here.
2200 * loop.c (check_dbra_loop): Specify the register when
2201 generating REG_NONNEG notes and don't generate duplicates.
2203 2000-06-13 Jakub Jelinek <jakub@redhat.com>
2205 * tree.h (TYPE_USER_ALIGN, DECL_USER_ALIGN): Define.
2206 (struct tree_type, struct tree_decl): Add user_align member.
2207 * stor-layout.c (layout_decl): Set DECL_USER_ALIGN.
2208 (place_union_field): If BIGGEST_FIELD_ALIGNMENT is defined
2209 and DECL_USER_ALIGN 0, cap alignment to this value.
2210 (place_field): Likewise.
2211 (finalize_type_size): Set TYPE_USER_ALIGN.
2212 (layout_type): Likewise.
2213 (initialize_sizetypes): Likewise.
2214 * c-common.c (decl_attributes): Set TYPE_USER_ALIGN resp.
2215 DECL_USER_ALIGN to 1.
2216 * c-decl.c (duplicate_decls): Set DECL_USER_ALIGN.
2217 (xfer_tag): Set TYPE_USER_ALIGN.
2218 (finish_struct): Set DECL_USER_ALIGN resp. TYPE_USER_ALIGN.
2219 (finish_enum): Likewise.
2220 * stmt.c (expand_decl): Set DECL_USER_ALIGN.
2221 (expand_anon_union_decl): Likewise.
2222 * tree.c (make_node): Set DECL_USER_ALIGN resp. TYPE_USER_ALIGN.
2223 (build_index_type): Set TYPE_USER_ALIGN.
2224 (build_range_type): Likewise.
2225 (build_common_tree_nodes_2): Likewise.
2226 * tm.texi (BIGGEST_FIELD_ALIGNMENT): Document the changed meaning.
2228 2000-06-13 Andreas Jaeger <aj@suse.de>
2230 * configure.in: Use --enable-checking=misc,tree,gc by default if
2231 no --enable-checking option is given and for
2232 --enable-checking=yes.
2233 * configure: Rebuilt.
2235 2000-06-13 Richard Henderson <rth@cygnus.com>
2237 * libgcc2.c (ia64_throw_helper): Use __builtin_return_address.
2238 (__throw): Don't pass the address of a label.
2240 * config/ia64/ia64.c (ia64_compute_frame_size): Use
2241 current_function_is_leaf.
2242 (ia64_expand_prologue): Likewise. Modify return_address_pointer_rtx
2243 instead of reg_names[RETURN_ADDRESS_REGNUM].
2244 (ia64_init_machine_status): Reset return_address_pointer_rtx.
2245 * config/ia64/ia64.h (RETURN_ADDRESS_POINTER_REGNUM): Rename
2246 from RETURN_ADDRESS_REGNUM. Update all uses.
2247 (RETURN_ADDR_RTX): Use return_address_pointer_rtx; return
2248 zero instead of null on failure.
2249 (ELIMINABLE_REGS): Add ra->b0 elimination.
2250 (CAN_ELIMINATE): Update accordingly.
2251 (INITIAL_ELIMINATION_OFFSET): Likewise.
2252 (REGISTER_NAMES): Use an illegal assembler name for
2253 RETURN_ADDRESS_POINTER_REGNUM.
2255 2000-06-13 Richard Henderson <rth@cygnus.com>
2257 * config/ia64/ia64.h (enum reg_class): Remove FR_INT_REGS, FR_FP_REGS,
2258 GR_AND_FR_INT_REGS, GR_AND_FR_FP_REGS.
2259 (REG_CLASS_NAMES): Likewise.
2260 (REG_CLASS_CONTENTS): Likewise.
2261 (FR_FP_REGNO_P, FR_INT_REGNO_P): Remove.
2262 (HARD_REGNO_MODE_OK): Remove references to them.
2263 (REGNO_REG_CLASS): Likewise.
2264 (REG_CLASS_FROM_LETTER): Likewise.
2265 (CLASS_MAX_NREGS): Likewise.
2266 (REGISTER_MOVE_COST): Likewise.
2267 * config/ia64/ia64.c (ia64_secondary_reload_class): Likewise.
2268 * config/ia64/ia64.md (*): Replace "e" constraints with "f".
2269 (movqi_internal): Special case moves from zero.
2270 (movhi_internal, movsi_internal): Likewise.
2271 (movdi_internal): Likewise. Fill out "f" constraints.
2272 (movsf_internal): Fill out "r" constraints.
2273 (movdf_internal): Likewise.
2275 2000-06-13 Richard Henderson <rth@cygnus.com>
2277 * flow.c (insn_dead_p): Keep sets to PIC_OFFSET_TABLE_REGNUM
2278 alive before reload.
2280 * haifa-sched.c (struct deps): Add in_post_call_group_p.
2281 (add_dependence): Handle notes between SCHED_GROUP_P insns.
2282 (remove_dependence): Always define.
2283 (set_sched_group_p): New.
2284 (sched_analyze_2): Use it.
2285 (sched_analyze_insn): Don't special-case naked uses. Look for
2286 and extend in_post_call_group_p.
2287 (sched_analyze): Clear stale SCHED_GROUP_P. Set in_post_call_group_p.
2288 (init_deps): Clear in_post_call_group_p.
2290 2000-06-13 Richard Henderson <rth@cygnus.com>
2292 * combine.c (subst): Use CLASS_CANNOT_CHANGE_MODE and
2293 CLASS_CANNOT_CHANGE_MODE_P instead of CLASS_CANNOT_CHANGE_SIZE
2294 and hard-coded tests.
2295 (simplify_set): Likewise.
2296 (gen_lowpart_for_combine): Likewise.
2297 * emit-rtl.c (gen_lowpart_common): Likewise.
2298 * global.c (find_reg): Likewise.
2299 * local-alloc.c (find_free_reg): Likewise.
2300 * recog.c (register_operand): Likewise.
2301 * regclass.c (init_reg_sets_1): Likewise.
2302 (record_operand_costs, regclass): Likewise.
2303 * reload.c (push_reload): Likewise.
2304 * reload1.c (choose_reload_regs): Likewise.
2305 * flow.c (mark_used_regs): Conditionally set REG_CHANGES_MODE.
2306 * local-alloc.c (struct qty): Rename changes_size to changes_mode.
2307 Update all references.
2308 * regs.h (struct reg_info_def): Likewise.
2309 (REG_CHANGES_MODE): Rename from REG_CHANGES_SIZE.
2310 * tm.texi (CLASS_CANNOT_CHANGE_MODE): Document.
2311 (CLASS_CANNOT_CHANGE_MODE_P): Likewise.
2313 * config/alpha/alpha.h (CLASS_CANNOT_CHANGE_MODE): Rename.
2314 (CLASS_CANNOT_CHANGE_MODE_P): New.
2315 * config/mips/mips.h: Likewise.
2316 * config/pa/pa32-regs.h: Likewise.
2317 * config/pa/pa64-regs.h: Likewise.
2318 * config/rs6000/rs6000.h: Likewise.
2319 * config/sh/sh.h: Likewise.
2320 * config/ia64/ia64.h (CLASS_CANNOT_CHANGE_MODE): New.
2321 (CLASS_CANNOT_CHANGE_MODE_P): New.
2322 * config/avr/avr.h (CLASS_CANNOT_CHANGE_SIZE): Remove dead code.
2323 * config/d30v/d30v.h: Likewise.
2325 2000-06-13 J. David Anglin <dave@hiauly1.hia.nrc.ca>
2327 * configure.in: Add AC_TYPE_GETGROUPS test.
2328 * sys-protos.h: Use GETGROUPS_T * for second arg of getgroups.
2329 * configure: Rebuilt.
2330 * config.in: Rebuilt.
2332 2000-06-13 Richard Henderson <rth@cygnus.com>
2334 * explow.c (set_mem_attributes): Do nothing for NULL type.
2336 Tue Jun 13 14:45:10 2000 Jeffrey A Law (law@cygnus.com)
2338 * config/m68k/openbsd.h (ASM_SPEC): pass down options to assembler
2341 2000-06-13 James E. Wilson <wilson@cygnus.com>
2343 * config/ia64/ia64.md (movxf_internal): Add missing "e" to ldf/stf.
2345 Tue Jun 13 14:05:35 2000 Jeffrey A Law (law@cygnus.com)
2347 * Makefile.in (gensupport.o): Remove bogus $(HOST_PREFIX) reference.
2349 2000-06-13 Philipp Thomas <pthomas@suse.de>
2351 * configure.in(ALL_LINGUAS): Changed en_UK to en_GB.
2352 * configure: Rebuilt.
2354 2000-06-07 David O'Brien <obrien@FreeBSD.org>
2356 * configure.in: Adjust FreeBSD bits to match changes to config.guess.
2357 We now default to ELF for the i386, and a.out is the special case.
2358 * configure: Rebuilt.
2360 Tue Jun 13 10:05:30 2000 Hans-Peter Nilsson <hp@axis.com>
2362 * final.c (final_scan_insn): Delete notes between cc0 setter and
2363 user when restarting from setter.
2365 2000-06-13 J. David Anglin <dave@hiauly1.hia.nrc.ca>
2367 * vax.h (INDEX_TERM_P): Define evaluation order of &&'s in || and
2368 cast to squelch signed/unsigned warnings.
2370 2000-06-13 Zack Weinberg <zack@wolery.cumb.org>
2372 * cpplib.c (handle_directive): Print non-NUL-terminated string
2375 2000-06-12 Michael Meissner <meissner@redhat.com>
2377 * ifcvt.c (dead_or_predicable): Don't do conditional execution
2378 path if the machine needs extra support to do conditional
2381 Mon Jun 12 17:04:17 2000 Jeffrey A Law (law@cygnus.com)
2383 * print-rtl.c (print_rtx, case MEM): Use HOST_WIDE_INT_PRINT_DEC
2384 to print the alias set.
2385 * print-tree.c (print_node, DECL_* nodes and case 't'): Similarly.
2387 2000-06-12 J. David Anglin <dave@hiauly1.hia.nrc.ca>
2389 * config/float-vax.h: Add GFLOAT defines.
2391 Mon Jun 12 9:44:00 2000 Mark Klein <mklein@dis.com>
2393 * configure.in: Update tm dependencies for MPE.
2394 * configure: Rebuilt.
2396 2000-06-12 H.J. Lu <hjl@gnu.org>
2398 * gengenrtl.c (obstack_alloc_rtx): Correct the allocated size.
2400 2000-06-12 David Edelsohn <edelsohn@gnu.org>
2402 * aix41.h (SUBTARGET_SWITCHES): Delete threads.
2403 (CPP_SPEC): Change mthreads to pthread.
2404 (LIB_SPEC): Likewise.
2405 (STARTFILE_SPEC): Likewise.
2406 * aix43.h (SUBTARGET_SWITCHES): Delete threads.
2407 (CPP_SPEC): Change mthreads to pthread.
2408 (LIB_SPEC): Likewise.
2409 (STARTFILE_SPEC): Likewise.
2410 * rs6000-protos.h (reg_or_arith_cint_operand): New.
2411 * rs6000.c (reg_or_arith_cint_operand): New.
2412 (num_insns_constant_wide): Decorate unsigned constant.
2413 * rs6000.h (PREDICATE_CODES): Add reg_or_arith_cint_operand.
2414 * rs6000.md (addsi3): Use new predicate.
2415 (subsi3, adddi3, subdi3): Likewise.
2417 2000-06-12 Mark Mitchell <mark@codesourcery.com>
2419 * c-common.c (lang_get_alias_set): Fix typo.
2421 2000-06-12 Richard Earnshaw <rearnsha@arm.com>
2423 * flow.c (mark_used_regs): Revert last change.
2424 (life_analysis): Remove PROP_AUTOINC if running after reload.
2425 (propagate_one_insn): PROP_AUTOINC is always off after reload.
2427 2000-06-11 Richard Earnshaw <rearnsha@arm.com>
2429 * flow.c (mark_used_regs): Don't call find_auto_inc after reload
2432 2000-06-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2434 * bb-reorder.c (build_scope_forest): Initialize variable
2437 * calls.c (expand_call): Likewise for variables
2438 `save_pending_stack_adjust' and `save_stack_pointer_delta'.
2440 * i386.c (function_arg_advance, function_arg): Cast to avoid
2441 signed/unsigned warnings.
2443 * i386.h (MEMORY_MOVE_COST): Likewise.
2445 * ifcvt.c (cond_exec_process_if_block): Initialize variables
2446 `else_start' and `else_end'.
2448 * libgcc2.h (__eh_alloc, __eh_free): Prototype.
2450 * regrename.c (rr_replace_reg): Initialize variable `dest_subregno'.
2452 2000-06-10 Mark Mitchell <mark@codesourcery.com>
2454 * Makefile.in (libintl.a): Depend on intl.all.
2456 2000-06-09 H.J. Lu (hjl@gnu.org)
2458 * Makefile.in (c-parse.o): Also depend on output.h.
2460 2000-06-09 Rodney Brown <RodneyBrown@mynd.com>
2462 * mcore-protos.h: discards const warning removal.
2463 * mcore.c: discards const warning removal.
2465 2000-06-09 Kazu Hirata <kazu@hxi.com>
2467 * config/h8300/lib1funcs.asm: Declare the machine architecture at
2468 the beginning of the file.
2470 2000-06-09 J. David Anglin <dave@hiauly1.hia.nrc.ca>
2472 * real.h: Add prototype for ldexp.
2474 2000-06-09 Zack Weinberg <zack@wolery.cumb.org>
2476 * ggc-none.c, ggc-simple.c, ggc-page.c (ggc_alloc_obj): Rename
2477 it ggc_alloc, drop second argument, never clear returned memory.
2478 * ggc-common.c (ggc_alloc_string): Use ggc_alloc.
2479 (ggc_alloc_cleared): New.
2480 * ggc.h: Prototype ggc_alloc and ggc_alloc_cleared, not
2481 ggc_alloc_obj. Remove ggc_alloc macro.
2482 (ggc_alloc_rtx, ggc_alloc_rtvec, ggc_alloc_tree): Use ggc_alloc.
2484 * rtl.c (rtvec_alloc): Clear the vector always.
2485 (rtx_alloc): Clear the first word always. Remove dirty
2486 obstack tricks (this routine is no longer a bottleneck).
2487 * tree.c (make_node): Clear the new node always.
2488 (make_tree_vec): Likewise.
2489 (tree_cons): Clear the common structure always.
2490 (build1): Likewise; also, clear TREE_COMPLEXITY.
2491 * gengenrtl.c: Use puts wherever possible. Remove extra
2493 (gendef): Clear the first word of an RTX in the generator
2494 function, irrespective of ggc_p. Initialize '0' slots to
2496 (genlegend): Don't generate obstack_alloc_rtx routine, just a
2497 thin wrapper macro around obstack_alloc.
2499 * stmt.c (expand_fixup): Use ggc_alloc.
2500 * c-typeck.c (add_pending_init): Use ggc_alloc.
2501 * emit-rtl.c (init_emit_once): Clear CONST_DOUBLE_CHAIN(tem).
2502 * varasm.c (immed_double_const): Set CONST_DOUBLE_MEM(r) to
2503 const0_rtx when it is created.
2504 (immed_real_const_1): Set CONST_DOUBLE_CHAIN(r) to NULL_RTX if
2505 we are not in a function.
2507 * tree.c (tree_class_check_failed): Make second arg an int.
2508 * tree.h: Update prototype.
2510 2000-06-09 Geoff Keating <geoffk@cygnus.com>
2512 * tree.h (VOID_TYPE_P): Don't look at the TYPE_MAIN_VARIANT
2513 of an error_mark_node.
2515 Fri Jun 9 20:35:13 2000 Denis Chertykov <denisc@overta.ru>
2517 * config/avr/avr.c (asm_output_section_name): bugfix.
2519 2000-06-09 Jason Merrill <jason@casey.soma.redhat.com>
2521 * timevar.def: Add TV_EXPAND.
2522 * timevar.c (timevar_print): Update timing information.
2523 * calls.c (try_to_integrate): Push to TV_INTEGRATION for inlining.
2525 * stmt.c (expand_return): Check for error_mark_node.
2527 2000-06-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2529 * configure.in: Also avoid wrapping auto-build.h with IN_GCC.
2531 * scan-types.sh (VALUE) Wrap use with double quotes to protect
2532 variable against filename expansion when it contains "char *".
2534 * system.h (SSIZE_MAX): Delete backup definition.
2536 * cppfiles.c (read_include_file): Use INTTYPE_MAXIMUM(ssize_t)
2537 instead of SSIZE_MAX.
2539 2000-06-09 Jakub Jelinek <jakub@redhat.com>
2541 * configure.in: Check whether gas supports -relax.
2542 * configure, config.in: Rebuilt.
2543 * config/sparc/sparc.h (ASM_RELAX_SPEC): Define.
2544 (EXTRA_SPECS): Add asm_relax.
2545 (ASM_SPEC): Add %(asm_relax).
2546 (TARGET_SWITCHES): Add -mrelax and -mno-relax.
2547 * config/sparc/linux64.h (LINK_ARCH_SPEC): Rename to LINK_SPEC.
2548 (LINK_SPEC): Pass -relax to linker unless -mno-relax or -r.
2549 (ASM_SPEC): Add %(asm_relax).
2550 * config/sparc/linux.h (LINK_SPEC, ASM_SPEC): Likewise.
2551 * config/sparc/sparc.c (output_sibcall): If HAVE_AS_RELAX_OPTION,
2552 never use sethi/jmpl for leaf tail calls. Use or with rs2 %g0
2553 instead of mov, so that gas can further optimize it.
2555 2000-06-08 James E. Wilson <wilson@bletchleypark.cygnus.com>
2557 * dwarf2out.c (size_of_die, case dw_val_class_const): Use
2559 (value_format, case dw_val_class_const): Use sdata format.
2560 (output_die): Call output_sleb128.
2562 2000-06-08 James E. Wilson <wilson@cygnus.com>
2564 * dwarf2out.c (ASM_OUTPUT_DWARF_DATA8): Add new macro that uses
2565 UNALIGNED_DOUBLE_INT_ASM_OP. Rename old macro to
2566 ASM_OUTPUT_DWARF_CONST_DOUBLE.
2567 (output_die, case dw_val_class_unsigned_const): Correct call to
2568 ASM_OUTPUT_DWARF_DATA8.
2569 (output_die, case dw_val_class_long_long): Use
2570 ASM_OUTPUT_DWARF_CONST_DOUBLE.
2571 * tree.c (host_integerp): Accept unsigned HOST_WIDE_INT values when
2574 * config/ia64/ia64-protos.h (ia64_output_end_prologue): Add.
2575 (output_function_prologue): Fix mispelling.
2576 (output_function_prologue, output_function_epilogue): Reorder to
2577 match ia64.c definition order.
2578 * config/ia64/ia64.c (ia64_expand_prologue): Add comment.
2579 (ia64_expand_epilogue): Set RTX_FRAME_RELATED_P on stack restore insns.
2580 Use r3 instead of r2 for large stack restores.
2581 (ia64_output_end_prologue): New function.
2582 (process_set): Emit ".restore sp" for epilogue stack restores.
2583 * config/ia64/ia64.h (FUNCTION_END_PROLOGUE): Define.
2585 2000-06-08 Jakub Jelinek <jakub@redhat.com>
2587 * dbxout.c (dbxout_type_fields): Don't segfault on fields with
2590 2000-06-08 Nathan Sidwell <nathan@codesourcery.com>
2592 * frame.c (end_fde_sort): Remove extraneous erratic array test.
2594 2000-06-08 Denis Perchine <dyp@perchine.com>
2596 * frame.c (start_fde_sort): Don't malloc (0).
2598 2000-06-07 Zack Weinberg <zack@wolery.cumb.org>
2600 * c-decl.c (pushdecl): Do not call COMPLETE_TYPE_P on
2602 * print-tree.c (print_node): The transparent_union_flag means
2603 different things for unions and arrays. Do not inspect it
2604 with TYPE_TRANSPARENT_UNION.
2606 2000-06-06 Jakub Jelinek <jakub@redhat.com>
2608 * cpplib.c (do_ifdef, do_ifndef): Don't segfault if parse_ifdef
2611 Wed Jun 7 20:34:33 2000 Denis Chertykov <denisc@overta.ru>
2613 * config/avr/avr.c (asm_output_section_name): output section
2615 * config/avr/libgcc.S (.text.libgcc): declare section attributes.
2617 2000-06-06 James E. Wilson <wilson@cygnus.com>
2619 * frame.h (struct unwind_info_ptr): Collapse version, flags, and length
2620 fields into header field.
2621 (IA64_UNW_HDR_LENGTH, IA64_UNW_HDR_FLAGS, IA64_UNW_HDR_VERSION): New
2622 macros to access length, flags, and version info from header field.
2623 * config/ia64/crtbegin.asm (__do_frame_setup_aux): Delete here.
2624 * config/ia64/crtend.asm (__do_frame_setup_aux): Add here.
2625 (__do_global_ctors_aux): Fix caller.
2626 * config/ia64/frame-ia64.c (get_unwind_record): Change parameter
2627 prologue_flag to header. Pass to read_P_record.
2628 (read_P_record): New argument header. Implement P4 format.
2629 Multiply P7_T_SIZE by 16.
2630 (execute_one_ia64_descriptor): New static local region_header. Pass to
2631 get_unwind_record. Copy r to region_header if r is a header record.
2632 (print_all_records): Likewise.
2633 (__build_ia64_frame_state): Use IA64_UNW_HDR_LENGTH.
2634 (__get_personality, __get_except_table): Likewise.
2635 * config/ia64/ia64.c (process_set): Do not divide offsets by 4.
2637 2000-06-06 Philipp Thomas <pthomas@suse.de>
2639 * configure.in (AC_C_INLINE): Added.
2640 * aclocal.m4 (AM_WITH_NLS): Enable --with-included-gettext by default.
2641 * configure: Regenerate.
2643 2000-06-06 Mark Mitchell <mark@codesourcery.com>
2645 * c-common.h (c_language_kind): New type.
2646 (c_language): New variab.e
2647 * c-common.c (lang_get_alias_set): Don't put structures in
2648 non-zero alias sets in C++.
2649 * c-decl.c (c_language): Define it.
2650 * c-lex.c (doing_objc_thang): Remove.
2651 * c-tree.h (doing_objc_thang): Make it a macro.
2652 * objc/objc-act.c (lang_decode_option): Set c_language, not
2655 2000-06-06 Gabriel Dos Reis <gdr@codesourcery.com>
2657 * diagnostic.c (output_maximum_width): Remove.
2658 (doing_line_wrapping): Tweak.
2659 (diagnostic_buffer): New object.
2660 (global_output_buffer): New object.
2661 (output_destroy_prefix): New function.
2662 (default_initialize_buffer): Likewise.
2663 (reshape_diagnostic_buffer): Likewise.
2664 (initialize_diagnostics): Likewise.
2665 (output_clear): Tweak.
2666 (line_wrapper_printf): Adjust call to init_output_buffer.
2667 (vline_wrapper_message_with_location): Likewise. Use
2668 output_destroy_prefix.
2669 (v_message_with_decl): Likewise.
2671 * diagnostic.h (struct output_buffer): Constify prefix.
2672 (init_output_buffer, output_get_prefix): Constify.
2673 (diagnostic_message_length_per_line): Likewise.
2674 (reshape_diagnostic_buffer): Declare.
2675 (default_initialize_buffer): Declare.
2676 (initialize_diagnostics): Declare.
2677 (diagnostic_buffer): Declare new obbject.
2679 * toplev.c: #include diagnostic.h
2680 (display_help): Document diagnostic formatting options.
2681 (decode_f_option): Handle diagnostic formatting options.
2682 (main): Setup initialization for diagnostic messages outputter.
2684 * toplev.h (set_message_length): Remove.
2686 * Makefile.in (toplev.o): Depends upon diagnostic.h
2688 * invoke.texi : Document diagnostics formatting options.
2690 Tue Jun 6 19:25:32 2000 Philippe De Muyter <phdm@macqel.be>
2692 * configure.in (Make the links): Typo fix : the file that must be
2693 included without #ifdef IN_GCC is `auto-host.h', not `auto-config.h'.
2694 * configure: File rebuilt.
2696 2000-06-06 Nathan Sidwell <nathan@codesourcery.com>
2698 * eh-common.h (EH_ALLOC_SIZE, EH_ALLOC_ALIGN): New #defines.
2699 (eh_context): Add alloc_mask and alloc_buffer emergency fallback
2701 * libgcc2.c (__eh_alloc): Moved from cp/exception.cc. Fallback on
2702 emergency eh_context buffer, if malloc fails.
2703 (__eh_free): Moved from cp/exception.cc. Release to emergency
2704 eh_context buffer, if appropriate.
2706 2000-06-06 Jason Merrill <jason@casey.soma.redhat.com>
2708 * expr.c (store_expr): Fix typo.
2710 2000-06-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2712 * m68k.c (legitimize_pic_address): Move prototype ...
2714 * m68k-protos.h (legitimize_pic_address): ... here.
2716 * m68k.md (legitimize_pic_address): Delete prototypes.
2717 (untyped_call): Invoke GEN_CALL(), not gen_call().
2719 * nextstep.c: Include system.h and toplev.h.
2720 (get_directive_line): Don't prototype.
2721 (handle_pragma): Mark parameters with ATTRIBUTE_UNUSED and constify.
2723 * nextstep.h (handle_pragma): Prototype.
2724 (SECTION_FUNCTION): Prototype FUNCTION(). Move prototype of
2725 objc_section_init ...
2726 (EXTRA_SECTION_FUNCTIONS): ... here.
2728 Tue Jun 6 08:17:26 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2730 * sdbout.c (struct sdb_file): NAME now const.
2731 (sdbout_init): input_file_name now const.
2732 (sdbout_start_new_source_file): FILENAME now const.
2733 * sdbout.c (sdbout_init, sdbout_start_new_source_file): Reflect above.
2735 2000-06-06 Gabriel Dos Reis <gdr@codesourcery.com>
2737 * c-typeck.c (build_conditional_expr): Handle complex data types.
2739 2000-06-05 Jason Merrill <jason@casey.soma.redhat.com>
2741 * explow.c (maybe_set_unchanging): New function, broken out from...
2742 (set_mem_attributes): Here.
2743 * expr.h: Declare it.
2744 * stmt.c (expand_decl): Call it.
2746 2000-06-05 Richard Henderson <rth@cygnus.com>
2748 * reload1.c (choose_reload_regs): Mind CLASS_CANNOT_CHANGE_SIZE
2749 while looking for a register to inherit from.
2751 2000-06-05 Jason Merrill <jason@casey.soma.redhat.com>
2753 * Makefile.in (libgcc.ready): Lose.
2754 (libgcc.mk): Just use mv, not move-if-change.
2755 (LIBGCC_DEPS): New macro.
2757 (stmp-multilib): Likewise.
2758 * mklibgcc.in (stmp-dirs): New target. Make everything depend on
2759 it rather than the directories themselves.
2760 (LIB2ADD): Depend on the list file rather than 'force'.
2762 * fold-const.c (fold, case COND_EXPR): Elide conversion between
2763 cv-qualified versions of types.
2765 Mon Jun 5 14:06:18 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2767 * config/sparc/sparc.c (short_branch): Correct error in range
2770 2000-06-05 J. David Anglin <dave@hiauly1.hia.nrc.ca>
2772 * fixinc/inclhack.def: New include hacks for ultrix.
2773 * (nested_ultrix): Replaced by ultrix_nested_svc.
2774 * (ultrix_atof_param): test_text string added.
2775 * (ultrix_ifdef): Modified select string.
2777 2000-06-05 Zack Weinberg <zack@wolery.cumb.org>
2779 * objc/objc-act.c (generate_method_descriptors): Register
2780 objc_method_prototype_template as a GC root.
2781 (comp_method_with_proto): Register function_type as a GC root.
2782 (comp_proto_with_proto): Replace function_type1 and
2783 function_type2 with a two-element array; register it as a GC root.
2785 (generate_protocols, build_protocol_initializer,
2786 generate_protocol_list, build_category_initializer,
2787 build_shared_structure_initializer): Do not cache cast_type
2790 2000-06-05 J. David Anglin <dave@hiauly1.hia.nrc.ca>
2792 * function.c (assign_parms): Add missing argument to set_mem_attributes
2795 2000-06-05 Nathan Sidwell <nathan@codesourcery.com>
2797 * tree.h (VOID_TYPE_P): New macro.
2798 (COMPLETE_OR_VOID_TYPE_P): Use VOID_TYPE_P.
2799 * c-decl.c (grokdeclarator): Use VOID_TYPE_P.
2800 (get_parm_info): Likewise.
2801 (store_parm_decls): Likewise.
2802 (combine_parm_decls): Likewise.
2803 (finish_function): Likewise.
2804 * c-typeck.c (build_function_call): Likewise.
2805 (build_binary_op): Likewise.
2806 (build_conditional_expr): Likewise.
2807 (internal_build_compound_expr): Likewise.
2808 (convert_for_assignment): Likewise.
2809 * stmt.c (expend_expr_stmt): Likewise.
2810 (warn_if_unused_value): Likewise.
2811 (expand_return): Likewise.
2812 * c-parse.in (primary): Likewise.
2813 * c-parse.y, c-parse.c, c-parse.h: Regenerate.
2814 * objc/objc-parse.y, objc/objc-parse.c: Regenerate.
2816 Mon Jun 5 06:46:28 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2818 * alias.c (get_alias_set): If compnent is addressable, use alias
2820 * c-decl.c (init_decl_processing): Don't call record_component_aliases.
2821 (grokdeclarator): Likewise.
2822 * c-typeck.c (common_type): Likewise.
2824 2000-06-04 Alex Samuel <samuel@codesourcery.com>
2826 * Makefile.in (OBJS): Remove dyn_string.o
2827 (dyn-string.o): Delete rule.
2828 * dyn-string.c: Delete file
2829 * dyn-string.h: Likewise.
2831 2000-06-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2833 * Makefile.in (intl.*): Honor non-zero exit codes in the intl
2836 2000-06-03 Geoff Keating <geoffk@cygnus.com>
2838 * alias.c (record_component_aliases): Don't inspect
2839 DECL_NONADDRESSABLE_P of non-FIELD_DECL components of structures.
2841 Sat Jun 3 19:05:30 2000 Michael Meissner <meissner@redhat.com>
2843 * ifcvt.c (process_insns): If IFCVT_MODIFY_INSN is defined, call
2844 it with the pattern to do machine dependent work.
2845 (cond_exec_process_if_block): If IFCVT_MODIFY_TESTS is defined,
2846 use it to modify the true/false tests used in conditional
2847 execution. If IFCVT_MODIFY_FINAL and IFCVT_MODIFY_CANCEL are
2848 defined, invoke them if the conversion to conditional execution
2849 was successful or not.
2851 * tm.texi (IFCVT_MODIFY_TESTS): Document.
2852 (IFCVT_MODIFY_INSN): Ditto.
2853 (IFCVT_MODIFY_FINAL): Ditto.
2854 (IFCVT_MODIFY_CANCEL): Ditto.
2856 Sat Jun 3 15:26:13 2000 Matt Kraai <kraai@alumni.carnegiemellon.edu>
2858 * toplev.c (main): Fix misspellings of possibility and language.
2860 2000-06-03 Richard Henderson <rth@cygnus.com>
2862 * alias.c (record_alias_subset): Initialize has_zero_child in the
2865 2000-06-03 Richard Earnshaw (rearnsha@arm.com)
2867 * arm.md (untyped_call): Use GEN_CALL macro.
2869 2000-06-02 Pekka Nikander <pnr@teldanex.tcm.hut.fi>
2871 * Makefile.in: Use $(MAKE) not "make"
2873 Fri Jun 2 19:31:03 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2875 * alias.c (struct alias_set_entry): New field has_zero_child.
2876 (mem_in_disjoint_alias_sets_p): Return 0 if set in either ase.
2877 (get_alias_set): If language-dependent routine set TYPE_ALIAS_SET,
2879 Call record_component_aliases for aggregate types.
2880 (record_alias_subset): Set has_zero_child.
2881 (record_component_aliases, case ARRAY_TYPE): Do nothing if
2882 TYPE_NONALIASES_COMPONENT.
2883 (record_component_aliases, case RECORD_TYPE): Test
2884 DECL_NONADDRESSABLE_P.
2885 * c-decl.c (grokdeclarator): Set DECL_NONADDRESSABLE_P instead
2886 of TREE_ADDRESSABLE.
2887 * calls.c (initialize_argument_information): Only test
2888 TYPE_TRANSPARENT_UNION for UNION_TYPE.
2889 * function.c (assign_parms): Likewise.
2890 * integrate.c (function_cannot_inline_p): Likewise.
2891 * stor-layout.c (finish_record_layout): Don't call
2892 record_component_aliases.
2893 * tree.h (struct tree_int_cst): Use struct tree_common.
2894 (struct tree_real_cst, struct tree_string): Likewise.
2895 (struct tree_complex, struct tree_identifier): Likewise.
2896 (struct tree_list, struct tree_vec, struct tree_exp): Likewise.
2897 (struct tree_block, struct tree_type, struct tree_decl): Likewise.
2898 (TYPE_TRANSPARENT_UNION): Use UNION_TYPE_CHECK.
2899 (TYPE_NONALIASES_COMPONENT): New macro.
2900 (TYPE_AMBIENT_BOUNDEDNESS): Use FUNCTION_TYPE_CHECK.
2901 (DECL_NONADDRESSABLE_P): New macro.
2902 (struct tree_decl): Reorder bits for clarity of how many left;
2905 2000-06-02 Jason Merrill <jason@casey.soma.redhat.com>
2907 * Makefile.in (libgcc.a): Also depend on $(LIB2ADD).
2908 * mklibgcc.in (force): New target.
2909 Make LIB2ADD stuff depend on it.
2911 2000-06-02 Richard Henderson <rth@cygnus.com>
2913 * alias.c (lang_get_alias_set): Remove.
2914 (get_alias_set): Call it directly, not indirectly.
2915 * c-common.c (lang_get_alias_set): Rename from c_get_alias_set.
2916 * c-common.h (c_get_alias_set): Don't declare.
2917 * c-decl.c (init_decl_processing): Don't set lang_get_alias_set.
2918 * expr.h (lang_get_alias_set): Declare as function, not pointer.
2920 2000-06-02 Bruce Korb <bkorb@gnu.org>
2922 * fixinc/server.c(sig_handler): resume closing server on SIGPIPE
2923 (server_setup): define the server's master pid
2924 (close_server): actually do the deed IFF we are the server's master
2926 2000-06-02 Jakub Jelinek <jakub@redhat.com>
2928 * c-common.c (c_get_alias_set): Check whether signed_type did not
2929 return its argument before calling get_alias_set on the result.
2931 2000-06-02 Andrew MacLeod <amacleod@cygnus.com>
2933 * expr.c (emit_group_load): Fix typo, GET_MODE not GET_CODE.
2935 Fri Jun 2 00:22:52 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
2937 * sh.h (CPP_SPEC): Add -D__NOMACSAVE__ for -mnomacsave.
2938 (CONDITIONAL_REGISTER_USAGE): Mac registers are call used
2939 for TARGET_NOMACSAVE.
2940 (NOMACSAVE_BIT): Define.
2941 (TARGET_NOMACSAVE): Define.
2942 (TARGET_SWITCHES): Add "nomacsave".
2944 2000-06-02 Toshiyasu Morita <toshi.morita@sega.com>
2946 * sh.md (untyped_call): Remove excess parameters
2948 2000-06-01 Loren J. Rittle <ljrittle@acm.org>
2950 * fixinc/inclhack.def (osf_namespace_a): Relax expression to
2951 match that used before the conversion to c_fix style.
2952 * fixinc/fixincl.x: regenerate
2954 2000-06-01 Stan Cox <scox@cygnus.com>
2956 * varray.h (VARRAY_PUSH_GENERIC_PTR, VARRAY_PUSH_CHAR_PTR): Fix
2957 macro argument typo.
2959 2000-06-01 Zack Weinberg <zack@wolery.cumb.org>
2961 * cpplex.c (maybe_macroexpand): Use CPP_WTRADITIONAL. Improve
2963 * cpplib.c (parse_include): Remove support for VAX-C
2964 "#include starlet" misfeature.
2966 2000-05-31 Laurynas Biveinis <lauras@softhome.net>
2968 * cppfiles.c: conditionally define O_BINARY.
2969 (open_include_file): pass O_BINARY to open().
2971 2000-06-01 Richard Henderson <rth@cygnus.com>
2973 * i960.c (i960_br_predict_opcode): Remove.
2974 (i960_print_operand) [+]: Emit branch prediction hints.
2975 (i960_function_arg): Return early for VOIDmode.
2976 (i960_round_align): Return early for incomplete types.
2977 * i960.h (PRINT_OPERAND_PUNCT_VALID_P): New.
2978 * i960.md (all conditional branches): Add "%+".
2980 Thu Jun 1 12:24:21 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2982 * alias.c (get_alias_set): Don't call language-specific routine more
2983 than is needed and clean up code a bit.
2984 * c-common.c (c_get_alias_set): All references whose type
2985 is char get alias set 0, but character types need not.
2986 * varasm.c (make_function_rtl): Don't call set_mem_attributes.
2987 (make_decl_rtl): Don't call it for FUNCTION_DECL.
2989 2000-06-01 Bruce Korb <bkorb@gnu.org>
2991 * fixinc/tests/base/...: new base result files
2993 Thu Jun 1 09:37:35 2000 Clinton Popetz <cpopetz@cygnus.com>
2995 * config/i386/i386.c (ix86_use_fcomi_compare): Make global.
2996 * config/i386/i386-protos.h (ix86_use_fcomi_compare): Declare.
2997 * config/i386/i386.md (*fp_jcc_3, *fp_jcc_4): Disable if we
3000 2000-06-01 Richard Henderson <rth@cygnus.com>
3002 * Makefile.in (c-decl.o): Depend on $(EXPR_H), not expr.h.
3004 * c-decl.c (init_decl_processing): Set lang_get_alias_set first thing.
3006 2000-05-31 Richard Henderson <rth@cygnus.com>
3008 * config/ia64/ia64.c (sdata_symbolic_operand): Consider small
3009 CONSTANT_POOL_ADDRESS_P addresses for .sdata.
3010 * config/ia64/sysv4.h (SELECT_RTX_SECTION): New.
3012 2000-05-31 Richard Henderson <rth@cygnus.com>
3014 * config/ia64/ia64-protos.h (ia64_expand_prediction): Remove.
3015 * config/ia64/ia64.c (ia64_expand_prediction): Move code ...
3016 (ia64_print_operand) [+]: ... here. Use current_output_insn.
3017 * config/ia64/ia64.h (PRINT_OPERAND_PUNCT_VALID_P): New.
3018 * config/ia64/ia64.md (all branch/call patterns): Use %+.
3020 2000-05-31 Richard Henderson <rth@cygnus.com>
3022 * ifcvt.c (cond_exec_process_insns): Don't ever ignore clobbers.
3024 2000-05-31 Richard Henderson <rth@cygnus.com>
3026 * ifcvt.c (merge_if_block): Be prepared for JOIN to have no
3028 (find_if_block): Allow THEN with no outgoing edges.
3029 * flow.c (merge_blocks_nomove): Remove a barrier not following
3032 2000-05-31 Richard Henderson <rth@cygnus.com>
3034 * flow.c (propagate_block): Move initialization of mem_set_list ...
3035 (init_propagate_block_info): ... here. Also track blocks with
3036 no successors; don't scan insns if ! PROP_SCAN_DEAD_CODE.
3038 2000-05-31 Richard Henderson <rth@cygnus.com>
3040 * jump.c (jump_optimize_1): Revert 05-18 change.
3042 2000-05-31 Mark Mitchell <mark@codesourcery.com>
3044 * invoke.texi: Remove documentation for -fguiding-decls.
3046 2000-05-31 Richard Henderson <rth@cygnus.com>
3048 * configure.in: Fix typo last change.
3050 2000-05-31 Philipp Thomas <pthomas@suse.de>
3052 * configure.in (enable-nls): Enable if build == host, i.e. when
3053 not building a canadian cross compiler.
3054 (enable-maintainer-mode): Added for use with i18n.
3055 * aclocal.m4 (AM_GNU_GETTEXT): Only build catalogs that are a
3056 cross section of ALL_LINGUAS and LINGUAS.
3057 * configure: Rebuild.
3059 2000-05-31 Bruce Korb <bkorb@gnu.org>
3061 * fixinc/check.tpl: rework to use test result tree
3062 * fixinc/Makefile.in: change invocation of check script
3063 * fixinc/check.diff: No longer needed
3064 * fixinc/fixincl.x: regenerate
3065 * fixinc/inclhack.def: add new tests
3066 * fixinc/tests/base/arch/i960/archI960.h: New test result
3067 * fixinc/tests/base/curses.h: modified test result
3068 * fixinc/tests/base/stdio.h: ditto
3069 * fixinc/tests/base/time.h: ditto
3070 * fixinc/tests/base/sys/asm.h: ditto
3071 * fixinc/tests/base/sys/stat.h: ditto
3072 * fixinc/tests/base/sys/wait.h: ditto
3074 Wed May 31 13:17:20 2000 Philippe De Muyter <phdm@macqel.be>
3076 * except.c (clear_function_eh_region): Do not free NULL.
3078 Wed May 31 08:07:52 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3080 * Makefile.in (c-decl.o): Depend on rtl.h and expr.h.
3081 * alias.c (struct alias_entry): alias_set is HOST_WIDE_INT.
3082 (REG_BASE_VALUE): Remove unneeded cast to unsigned.
3083 (get_alias_set_entry): ALIAS_SET arg is HOST_WIDE_INT.
3084 (find_base_decl): New function, from c_find_base_decl in c-common.c.
3085 (new_alias_set): Moved from tree.c; return is HOST_WIDE_INT.
3086 (get_alias_set): Likewise.
3087 Major rework to do more things and allow language-specific code
3088 to just handle special-cases.
3089 (record_alias_subset): Args are HOST_WIDE_INT.
3090 (record_component_alias): Local vars are HOST_WIDE_INT.
3091 Don't handle COMPLEX_EXPR.
3092 (get_varargs_alias_set): Moved from builtins.c.
3093 (get_frame_alias_set): New function.
3094 * builtins.c (expand_builtin_return_address): Use frame alias set.
3095 (expand_builtin_setjmp, expand_builtin_longjmp): Use alias set
3097 (get_memory_rtx): Rework to use set_mem_attributes.
3098 (get_varargs_alias_set): Deleted from here.
3099 * c-common.c (c_apply_type_quals_to_decl): Alias sets now HOST_WIDE_INT.
3100 (c_find_base_decl): Deleted from here.
3101 (c_get_alias_set): Remove many cases and rework to just handle
3103 * c-common.h (c_get_alias_set): Returns HOST_WIDE_INT.
3104 * c-decl.c (rtl.h, expr.h): Now included.
3105 (init_decl_processing): Call record_component_aliases on array types.
3106 (grokdeclarator): Likewise.
3107 Set TREE_ADDRESSABLE for all fields that are not bitfields.
3108 * c-typeck.c (common_type): Call record_component_aliases for array.
3109 * caller-save.c (setup_save_areas): Rework register loop for unsigned.
3110 Set all save areas to the frame alias set.
3111 * calls.c (initialie_argument_information): Call set_mem_attributes.
3112 (compute_argument_addresses, expand_call): Likewise.
3113 * explow.c (set_mem_attributes): New function.
3114 (stabilize): Use MEM_COPY_ATTRIBUTES and force_reg.
3115 * expr.c (struct move_by_pieces): Remove {to,from}_{struct,readonly}.
3116 LEN and OFFSET now HOST_WIDE_INT.
3117 (clear_by_pieces): Similar changes.
3118 (move_by_pieces): LEN now HOST_WIDE_INT; don't set deleted fields.
3119 (move_by_pieces_ninsns): Now returns unsigned HOST_WIDE_INT.
3120 (move_by_pieces_1): Don't use deleted fields, use MEM_COPY_ATTRIBUTES.
3121 (clear_by_pieces_1): Likewise.
3122 (emit_push_insn): Call set_mem_attributes.
3123 (expand_expr, case INDIRECT_REF): Likewise.
3124 (expand_expr, case VAR_DECL): Call change_address.
3125 * expr.h (ADD_PARM_SIZE, SUB_PARM_SIZE): Use host_integerp and
3127 (get_varargs_alias_set, get_frame_alias_set): New decls.
3128 (record_base_value, record_alias_subset, lang_get_alias_set): Likewise.
3129 (new_alias_set, set_mem_attributes): Likewse.
3130 * function.c (struct temp_slot): ALIAS_SET is HOST_WIDE_INT.
3131 (assign_stack_temp_for_type): Likewise.
3132 Can split slot even if alias set since can copy.
3133 Set MEM_ALIAS_SET and MEM_SET_IN_STRUCT_P.
3134 (assign_temp): Use host_integerp and tree_low_cst.
3135 (put_var_into_stack): Properly handle SAVE_EXPR.
3136 (put_addressof_into_stack): Likewise.
3137 (assign_parms): Call set_mem_attributes.
3139 (fix_lexical_address): Put reference to chain into frame alias set.
3140 (expand_function_start): Call set_mem_attributes.
3141 * integrate.c (expand_inline_function): Likewise.
3142 * recog.c (adj_offsettable_operand): Use MEM_COPY_ATTRIBUTES.
3143 * regmove.c (try_apply_stack_adjustment): Likewise.
3144 * reload.c (push_reload, make_memloc): Likewise.
3145 * reload1.c (alter_reg): Make alias sets for spilled pseudos.
3146 * rtl.def (MEM): Update comment.
3147 * rtl.h (MEM_ALIAS_SET): Now uses XCWINT.
3148 (move_by_pieces): Change length to HOST_WIDE_INT.
3149 (record_base_value, record_alias_subset): Delete from here.
3150 * stmt.c (expand_decl): Call set_mem_attributes.
3151 * stor-layout.c (finish_record_layout): Call record_component_aliases.i
3152 * toplev.c (compile_file): Call init_alias_once earlier.
3153 * tree.c (lang_get_alias_set, get_alias_set, new_alias_set): Deleted
3154 from here: now in alias.c.
3155 * tree.h (struct tree_type): alias_set is HOST_WIDE_INT.
3156 (struct tree_decl): Likewise.
3157 (get_alias_set, new_alias_set, lang_get_alias_set): Deleted from here.
3158 * varasm.c (make_function_rtl, make_decl_rtl): Call set_mem_attributes.
3159 (output_constant_def, force_const_mem): Likewise.
3161 * flow.c (propagate_block): If block has no successors, stores to
3162 frame are dead if not used.
3164 2000-05-31 Nathan Sidwell <nathan@codesourcery.com>
3166 * stmt (expand_end_case): Reorder conversion sequence for jump
3167 table to avoid extra truncations.
3169 Wed May 31 01:31:42 2000 Jeffrey A Law (law@cygnus.com)
3171 * ifcvt.c (cond_exec_process_if_block): Do nothing if the last insn
3172 in the block is more than just a simple conditional branch.
3173 (noce_process_if_block): Similarly.
3175 Tue May 30 22:25:57 2000 Alexandre Oliva <aoliva@cygnus.com>
3177 * optabs.c (prepare_float_lib_cmp): Protect *px and *py from
3180 2000-05-30 Michael Meissner <meissner@redhat.com>
3182 * dwarf2out.c (dwarf2out_frame_debug_expr): Ignore HIGH
3183 instructions. Treat LO_SUM operations as loading the full integer
3186 2000-05-30 Richard Henderson <rth@cygnus.com>
3188 * combine.c (get_pos_from_mask): Test exact_log2 result as signed.
3190 2000-05-30 Richard Henderson <rth@cygnus.com>
3192 * bb-reorder.c (emit_jump_to_block_after): Protect use of HAVE_return.
3194 2000-05-30 Bruce Korb <bkorb@gnu.org>
3196 * fixinc/tests/*: Added expected result files for fixinc's make check
3197 * fixinc/fixfixes(char_macro_*_fix): Restore original algorithm
3199 2000-05-30 Richard Henderson <rth@cygnus.com>
3201 * config/alpha/alpha.md (*setne_internal): Use match_operator
3202 instead of working down from insn.
3204 2000-05-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3206 * invoke.texi (-Wtraditional): Update WRT function macros.
3208 Tue May 30 09:57:32 2000 Philippe De Muyter <phdm@macqel.be>
3210 * except.c (free_exception_table): Do not free NULL.
3212 2000-05-29 Zack Weinberg <zack@wolery.cumb.org>
3214 * cpplib.c (do_if): Don't save and restore only_seen_white here.
3215 * cppexp.c (_cpp_parse_expr): Save and restore only_seen_white
3218 2000-05-29 Richard Earnshaw (rearnsha@arm.com)
3220 * flow.c (mark_used_reg): If a register is unconditionally live,
3221 remove any conditional death information.
3223 2000-05-29 Richard Henderson <rth@cygnus.com>
3225 * final.c (current_output_insn): New.
3226 (final_scan_insn): Set it.
3227 * output.h: Declare it.
3229 2000-05-29 Richard Henderson <rth@cygnus.com>
3231 * stor-layout.c (finalize_record_size): Fix typo.
3233 * jump.c (redirect_jump): Don't emit NOTE_INSN_FUNCTION_END
3236 2000-05-29 Zack Weinberg <zack@wolery.cumb.org>
3238 * cpplib.h (cpp_reader): Remove if_stack. Change
3239 potential_control_macro to a cpp_hashnode *. Add skipping flag.
3240 * cpphash.h (struct ihash): Change control_macro to a
3241 cpp_hashnode * and shorten name to cmacro.
3242 Add NEVER_REINCLUDE constant.
3244 * cppfiles.c (redundant_include_p): Drop cpp_reader argument.
3245 Examine the cmacro node directly, no need to call cpp_defined.
3246 (_cpp_execute_include, read_include_file): Set cmacro to
3247 NEVER_REINCLUDE, not U"".
3248 * cpplex.c (cpp_push_buffer): Don't set new->if_stack.
3249 (cpp_get_token): If pfile->skipping is true, discard text and
3250 keep scanning until we hit a directive; don't expand macros.
3252 * cpplib.c (struct if_stack): Remove if_succeeded, add
3253 was_skipping. Change control_macro to a cpp_hashnode * and
3254 shorten name to cmacro. Remove typedef IF_STACK.
3255 (parse_ifdef), detect_if_not_defined): Return a cpp_hashnode *.
3256 (conditional_skip, skip_if_group,
3257 consider_directive_while_skipping): Delete.
3258 (push_conditional): New.
3259 (_cpp_handle_directive): Don't process directives other than
3260 conditionals if we are skipping.
3262 (do_ifdef, do_ifndef, do_if, do_else, do_elif, do_endif):
3263 Update to new scheme.
3264 (validate_else): Skip rest of line here, unconditionally.
3265 (_cpp_unwind_if_stack): The stack is per-buffer. Force
3266 pfile->skipping off.
3268 (all): Remove `scare quotes' from error messages.
3270 2000-05-29 Richard Henderson <rth@cygnus.com>
3272 * function.c (emit_return_into_block): New line_note arg; emit it.
3273 (thread_prologue_and_epilogue_insns): Attempt to locate a line note
3274 for the close brace to accompany HAVE_return. Move all line notes
3275 following the epilogue to before the NOTE_INSN_EPILOGUE_BEG.
3277 2000-05-29 Richard Henderson <rth@cygnus.com>
3279 * longlong.h [__alpha] (count_leading_zeros): New.
3280 (count_trailing_zeros): New.
3281 (COUNT_LEADING_ZEROS_0): New.
3283 * config/alpha/alpha.c (alpha_zero_comparison_operator): New.
3284 (alpha_split_conditional_move): New.
3285 * config/alpha/alpha-protos.h: Prototype them.
3286 * config/alpha/alpha.h (PREDICATE_CODES): Update.
3287 (CPP_CPU_DEFAULT_SPEC): Fix typo for EV67.
3288 * config/alpha/alpha.md: Update ffs cix commentary.
3290 (*nabssf2, *nabsdf2): New.
3291 (*mov[qhsd]icc_internal): Use add_operand.
3292 (if_then_else constant splitters): New.
3293 (*cmp_sadd_di, *cmp_sadd_si, *cmp_sadd_sidi): New.
3294 (*cmp_ssub_di, *cmp_ssub_si, *cmp_ssub_sidi): New.
3296 2000-05-29 Richard Henderson <rth@cygnus.com>
3298 * combine.c (force_to_mode) [MINUS]: Convert subtraction from
3299 a constant to NEG or NOT when conditions allow.
3301 * combine.c (combine_simplify_rtx): Don't create an if_then_else
3302 unless both args are general_operand. Don't canonicalize plus
3303 to ior unless it helps.
3305 * toplev.c (rest_of_compilation): Set no_new_pseudos after flow1;
3306 instead track register_life_up_to_date. Toggle no_new_pseudos
3309 2000-05-28 Geoff Keating <geoffk@cygnus.com>
3311 * config/rs6000/rs6000.c (output_cbranch): Escape '%' characters
3312 so output_operand doesn't see them.
3314 Sun May 28 18:37:07 2000 Clinton Popetz <cpopetz@cygnus.com>
3316 * lcm.c (make_preds_opaque): Fix comment.
3317 (optimize_mode_switching): Use NORMAL_MODE instead of
3318 MODE_USES_IN_EXIT_BLOCK. Change leftover instance of
3319 FP_MODE_NONE to no_mode. Rename MODE_AT_ENTRY to NORMAL_MODE.
3320 Handle insertions before an existing NOTE_INSN_BASIC_BLOCK.
3321 * tm.texi (OPTIMIZE_MODE_SWITCHING): Refer to NORMAL_MODE.
3322 (MODE_USES_IN_EXIT_BLOCK): Delete.
3323 (MODE_AT_ENTRY) Rename to NORMAL_MODE.
3324 * sh.h (MODE_USES_IN_EXIT_BLOCK): Delete.
3325 (MODE_AT_ENTRY): Rename to NORMAL_MODE.
3326 (MODE_NEEDED): Don't look for USE.
3327 (EPILOGUE_USES): Define.
3329 Sun May 28 23:26:59 2000 Philippe De Muyter <phdm@macqel.be>
3331 * mklibgcc.in (all): Variable initialised to `libgcc'.
3333 2000-05-28 Gabriel Dos Reis <gdr@codesourcery.com>
3335 * toplev.h (skip_leading_substring): New macro.
3336 * toplev.c (decode_f_option): Use skip_leading_substring instead
3338 (decode_W_option): Likewise.
3340 2000-05-28 Nick Clifton <nickc@cygnus.com>
3342 * tm.texi (CONDITIONAL_REGISTER_USAGE): Document that it can
3345 2000-05-28 Richard Henderson <rth@cygnus.com>
3347 * regclass.c (record_operand_costs): Protect reg_changes_size
3348 with CLASS_CANNOT_CHANGE_SIZE.
3350 * loop.c (instrument_loop_bct): Set JUMP_LABEL on the new insn.
3352 2000-05-28 Richard Henderson <rth@cygnus.com>
3354 * function.c (diddle_return_value): A pcc-style struct return
3357 2000-05-27 Zack Weinberg <zack@wolery.cumb.org>
3359 * cppfiles.c: Read files in, using mmap if possible, then
3360 prescan them separately.
3361 (read_file, read_with_read): New functions.
3362 * cpplex.c: Don't define UCHAR_MAX.
3363 (_cpp_read_and_prescan): Rename to _cpp_prescan. Don't read
3366 * cppinit.c (handle_option): Automatically define __cplusplus,
3367 __OBJC__, __ASEEMBLER__, _LANGUAGE_FORTRAN here when we see
3368 the respective -lang switch.
3370 * cpphash.h (enum node_type, struct hashnode, _cpp_lookup
3371 prototype): Move to...
3372 * cpplib.h: ... here. Rename struct hashnode to struct
3373 cpp_hashnode and give it a typedef. Rename _cpp_lookup to
3374 cpp_lookup. Add 'fe_value' slot, a union tree_node *.
3376 2000-05-27 Geoffrey Keating <geoffk@cygnus.com>
3378 * config/rs6000/rs6000.md (movsi): Constify 'name'.
3380 * regclass.c [CLASS_CANNOT_CHANGE_SIZE]
3381 (class_can_change_size): New variable.
3382 (reg_changes_size): New variable.
3383 (init_reg_sets_1): Initialise class_can_change_size.
3384 (record_operand_costs): Remove subreg_changes_size.
3385 Don't pass it around. Instead update reg_changes_size.
3386 (regclass): Initialise and free reg_changes_size. If a register
3387 changes size, don't preference it to a class that contains
3388 registers that can't change size.
3389 (record_reg_classes): Don't look at subreg_changes_size.
3391 2000-05-27 Richard Henderson <rth@cygnus.com>
3393 * print-rtl.c (reg_names): Remove const.
3394 * regclass.c (reg_names): Likewise.
3395 * regs.h (reg_names): Likewise.
3396 * hard-reg-set.h (reg_names): Likewise.
3398 2000-05-27 Richard Henderson <rth@cygnus.com>
3400 * config/rs6000/rs6000.md (untyped_call): Use GEN_CALL.
3402 2000-05-27 Richard Henderson <rth@cygnus.com>
3404 * config/alpha/alpha.c (alpha_does_function_need_gp): Test
3405 TARGET_PROFILING_NEEDS_GP in the if, instead of with an ifdef.
3406 (alpha_expand_prologue): Emit prologue_mcount if needed.
3407 * config/alpha/alpha.h (TARGET_PROFILING_NEEDS_GP): Default to 0.
3408 * config/alpha/alpha.md (prologue_mcount): New.
3409 * config/alpha/linux.h (FUNCTION_PROFILER): Remove.
3410 (TARGET_PROFILING_NEEDS_GP): Undef before redefining.
3411 * config/alpha/netbsd.h: Likewise.
3413 2000-05-27 Richard Henderson <rth@cygnus.com>
3415 * config/alpha/elf.h (SELECT_SECTION): Mirror Kenner's May 19
3416 change to config/elfos.h.
3418 2000-05-27 Richard Henderson <rth@cygnus.com>
3420 * Makefile.in (resource.o): Depend on except.h.
3421 * except.h (output_exception_table_data): Prototype.
3422 * genconfig.c (gen_peephole2): Prototype.
3423 * genemit.c (main): Include ggc.h.
3424 * genoutput.c: Revert parts of last change: include errors.h
3425 (main): Set progname.
3426 * recog.c: Include hard-reg-set.h before recog.h.
3427 * resource.c: Include except.h.
3429 * config/alpha/alpha-protos.h (alpha_arg_info_reg_val): Protect
3431 (alpha_write_linkage): Protect with BUFSIZ.
3432 (alpha_need_linkage): Update prototype.
3433 * config/alpha/alpha.c (function_arg): Move VMS code here.
3434 (alpha_links_base): Remove.
3436 (mark_alpha_links_node, mark_alpha_links): New.
3437 (alpha_write_one_linkage): New.
3438 (alpha_need_linkage): Use a splay tree. Build the linkage symbol.
3439 (alpha_write_linkage): Use splay_tree_foreach.
3440 * config/alpha/alpha.md (call_vms): Use alpha_need_linkage
3441 to get the linkage symbol.
3442 (call_value_vms): Likewise.
3443 * config/alpha/elf.h (output_file_directive): Remove decl.
3444 (ctors_section, dtors_section): Prototype.
3445 (sbss_section, sdata_section): Prototype.
3446 * config/alpha/vms.h (FUNCTION_ARG): Remove.
3447 (readonly_section, link_section, literals_section): Prototype.
3448 (ctors_section, dtors_section): Prototype.
3449 (vms_valid_decl_attribute_p): Remove decl.
3450 (alpha_arg_type, alpha_arg_info_reg_val): Likewise.
3452 2000-05-27 Geoff Keating <geoffk@cygnus.com>
3454 * reload.c (get_secondary_mem): Don't widen floating-point modes.
3456 * combine.c (subst): Honour CLASS_CANNOT_CHANGE_SIZE when
3457 substituting the REG in a (subreg:X (reg:Y ...)).
3459 2000-05-28 Neil Booth <NeilB@earthling.net>
3461 * cpplex.c (_cpp_lex_line): Merge vertical space. Flag
3462 first token of a line BOL. Update EOF code for this.
3463 Remove illegal directive check - it appears in the (not
3464 yet committed) caller.
3465 * cpplib.h (BOL): New flag.
3467 2000-05-28 Neil Booth <NeilB@earthling.net>
3469 * cpplex.c (_cpp_init_toklist): No comment space to initialise.
3470 (_cpp_free_toklist): No comment space to free.
3471 (expand_comment_space): Remove.
3472 (save_comment_space): Place the comment in the current token and
3473 not in a separate comment space.
3474 (_cpp_lex_line): Save comments during plain code and #define
3476 * cpplib.h (struct _cpp_toklist): Remove comment space.
3478 2000-05-28 Neil Booth <NeilB@earthling.net>
3480 * cppexp.c (parse_assertion): Supply extra argument to
3482 * cpplib.c (do_assert, do_unassert): Similarly.
3483 * cpphash.h (_cpp_init_toklist) Update.
3484 (_cpp_expand_token_space): New.
3485 (DUMMY_TOKEN, NO_DUMMY_TOKEN): New.
3486 * cpplex.c (_cpp_init_toklist): New argument.
3487 (parse_string2): New argument multiline_ok.
3488 (spell_token): Take a const cpp_token *.
3489 (INIT_NAME): Replace with INIT_TOKEN_NAME. Update tokens_used.
3490 (SPELL_ macros): Replace with enum.
3491 (expand_token_space): Replace with _cpp_expand_token_space.
3492 Take COUNT argument.
3493 (IS_DIRECTIVE): Update.
3494 (_cpp_lex_line): Update token structure before parsing number.
3495 Don't assume start at beginning of token list.
3496 (save_comment): Use INIT_TOKEN_NAME.
3498 2000-05-27 Zack Weinberg <zack@wolery.cumb.org>
3500 * configure.in (stage1_warn_cflags): Add -Wstrict-prototypes
3501 -Wmissing-prototypes.
3502 * configure: Regenerate.
3503 * gcc.texi: Remove explanation of MD_CALL_PROTOTYPES.
3505 * builtins.c, calls.c: Change all instances of gen_call_* or
3506 gen_sibcall_* to GEN_CALL_* and GEN_SIBCALL_*.
3507 * calls.c (struct_value_size_rtx): Separate definition from
3508 initialization to avoid unused variable warning.
3510 * genflags.c (gen_macro): New function.
3511 (gen_proto): Call it for gen_call_* and gen_sibcall_*.
3512 (gen_nonproto): Delete.
3513 (gen_insn): Put all insns on the same obstack.
3514 (main): Generate prototypes for everything unconditionally.
3516 * configure.in: Add AC_CHECK_TYPE(ssize_t). Remove commented
3517 out check for wchar_t.
3518 * acconfig.h: Add template for ssize_t. Remove @TOP@.
3519 * system.h: Add infrastructure for defining missing
3520 TYPE_MAX/TYPE_MIN macros. Use it to provide fallback
3521 definitions of UCHAR_MAX and SSIZE_MAX.
3522 * configure: Regenerate.
3523 * config.in: Regenerate.
3525 * Makefile.in (libgcc2.ready): Rename to libgcc.ready.
3526 Depend on $(LANGUAGES) as well as $(GCC_PATCHES) and fixed
3528 (clean): No need to delete libgcc1.a, libgcc1-asm.a,
3529 libgcc2.a, or libgcc1.null.
3531 2000-05-27 Richard Henderson <rth@cygnus.com>
3533 * Makefile.in (recog.o): Don't depend on resource.h.
3534 * recog.c: Don't include resource.h.
3535 (recog_last_allowed_insn): Remove.
3536 (recog_next_insn): Remove.
3537 (struct peep2_insn_data): New.
3538 (peep2_insn_data, peep2_current): New.
3539 (peep2_next_insn): New.
3540 (peep2_regno_dead_p, peep2_reg_dead_p): New.
3541 (peep2_find_free_register): New.
3542 (peephole2_optimize): Track life information by insn as we go.
3543 * recog.h: Update declarations.
3544 * resource.c (find_free_register, reg_dead_p): Remove.
3545 * resource.h: Remove their declarations.
3546 * toplev.c: Include hard-reg-set.h before recog.h.
3548 * genconfig.c (max_insns_per_peep2): New.
3549 (gen_peephole2): New.
3551 * genemit.c (output_peephole2_scratches): Generate calls to
3552 peep2_find_free_register; adjust surrounding code.
3553 (main): Have insn-emit.c include hard-reg-set.h before recog.h.
3554 * genrecog.c (change_state): Don't track last_insn.
3555 (write_action): Write into *_pmatch_len before accepting.
3556 (write_tree): Adjust peephole2_insns and subroutines to match.
3558 * config/i386/i386.md (all peepholes): Use peep2_regno_dead_p.
3560 * config/alpha/alpha.c (hard_fp_register_operand): Mind the mode.
3561 (hard_int_register_operand): New.
3562 * config/alpha/alpha-protos.h: Declare it.
3563 * config/alpha/alpha.h (PREDICATE_CODES): Update.
3564 * config/alpha/alpha.md (peep2 patterns): Use hard_int_register_operand
3565 as needed; use peep2_reg_dead_p instead of dead_or_set_p.
3567 2000-05-27 Richard Henderson <rth@cygnus.com>
3569 * function.c (thread_prologue_epilogue_insns): Don't move the
3570 line note at the head of the chain. Only force a lineno note
3571 before the end of block 0.
3573 2000-05-27 Richard Henderson <rth@cygnus.com>
3575 * gensupport.c (collect_insn_data): Record the maximum number
3576 of alternatives, not the last seen.
3578 * genoutput.c: Don't include errors.h.
3579 (struct data): Add lineno member.
3581 (scan_operands): Use message_with_line instead of error.
3582 (validate_insn_alternatives): Likewise.
3583 (gen_insn): Accept and store the pattern's line number.
3584 (gen_peephole, gen_expand, gen_split): Likewise.
3585 (main): Don't set progname. Pass line_no to gen_foo.
3587 2000-05-27 Richard Henderson <rth@cygnus.com>
3589 * config/d30v/d30v.c (d30v_print_operand): Handle ':'.
3590 * config/d30v/d30v.h (PRINT_OPERAND_PUNCT_VALID_P): Accept ':'.
3591 * config/d30v/d30v.md (attr predicable): New.
3592 (all insn patterns): Mark non-predicable patterns; use %: on the rest.
3593 (andsi3*): Unify into one pattern.
3594 (iorsi3*, xorsi3*): Likewise.
3595 (peephole2 patterns): Use peep2_reg_dead_p; verify not a
3597 (old cond_exec patterns): Remove.
3598 (define_cond_exec): New.
3600 Sat May 27 11:01:27 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3602 * tree.h (TREE_CODE_LENGTH): New macro.
3603 * c-common.c (c_find_base_decl): Use it.
3604 * expr.c (safe_from_p): Likewise.
3605 * print-tree.c (print_node): Likewise.
3606 * tree.c (make_node, copy_node, get_identifier): Likewie.
3607 (first_rtl_op, contains_placeholder_p, substitute_in_expr): Likewise.
3608 (build, build_nt, build_parse_node, simple_cst_equal): Likewise.
3609 * fold-const.c (make_range): Likewise.
3610 (fold): Likewise; also use first_rtl_op.
3611 * c-iterate.c (collect_iterators): Use first_rtl_op.
3612 * calls.c (calls_function_1): Likewise; also rename TYPE to CLASS.
3613 Use IS_EXPR_CODE_CLASS.
3614 (preexpand_calls): Likewise.
3615 * ggc-common.c (ggc_mark_trees): Rework to use first_rtl_op
3616 and TREE_CODE_LENGTH.
3617 * stmt.c (warn_if_unused_value): If no operands, no unused value.
3619 2000-05-26 Geoffrey Keating <geoffk@cygnus.com>
3621 * config/rs6000/rs6000.md (movsi_internal1): Use '%a1' rather
3623 (movdi_internal64): Likewise.
3625 * config/rs6000/rs6000.md: Correct order of operands for DImode
3628 * config/rs6000/rs6000.c (boolean_or_operator): New function.
3629 * config/rs6000/rs6000-protos.h (boolean_or_operator): Prototype it.
3630 * config/rs6000/rs6000.h (PREDICATE_CODES): Add boolean_or_operator.
3631 * config/rs6000/rs6000.md: Use boolean_or_operator instead of
3632 boolean_operator for the boolean patterns without NOTs.
3634 * config/rs6000/rs6000.c (reg_or_logical_cint_operand): Rename
3635 from reg_or_u_cint_operand. Change comment and behaviour.
3636 (logical_operand): Clean up, add assertion.
3637 (non_logical_cint_operand): Also check for
3638 reg_or_logical_cint_operand.
3639 * config/rs6000/rs6000.h (PREDICATE_CODES): Update.
3640 * config/rs6000/rs6000.md (iorsi3): Use reg_or_logical_cint_operand
3646 2000-05-26 Mark Mitchell <mark@codesourcery.com>
3648 * tree.h (struct record_layout_info): Rename to (struct
3649 record_layout_info_s).
3650 * stor-layout.c (start_record_layout): Replace
3651 `record_layout_info' with `record_layout_info_s'.
3653 2000-05-26 Richard Earnshaw <rearnsha@arm.com>
3655 * flow.c (find_label_refs): New function.
3656 (find_basic_blocks_1): Call it for each alternative of a call
3659 2000-05-26 Richard Earnshaw <rearnsha@arm.com>
3661 * ifcvt.c (cond_exec_get_condition): Set test_if to the SET_SRC
3664 2000-05-25 Richard Henderson <rth@cygnus.com>
3666 * config/alpha/alpha.c (alpha_comparison_operator): Don't be
3667 so strict about DImode.
3668 (alpha_swapped_comparison_operator): Likewise.
3669 * config/alpha/alpha.md (*setne_internal): Name it. Allow
3670 any integer output mode.
3671 (*setcc_internal): Likewise.
3672 (*setcc_swapped_internal): Likewise.
3673 (*movdicc_internal, *movdicc_lbc, *movdicc_lbs): Name them.
3674 (*mov[qhs]icc_internal): New.
3675 (*mov[qhs]icc_lbc, *mov[qhs]icc_lbs): New.
3677 2000-05-25 J. David Anglin <dave@hiauly1.hia.nrc.ca>
3679 * vax.h (CPP_SPEC): Define __GFLOAT and GFLOAT when -mg is specified.
3681 2000-05-25 Richard Henderson <rth@cygnus.com>
3683 * bb-reorder.c (reorder_block_def): Reorder elements for size.
3684 Remove add_jump; add next; replace flags with visited.
3686 (REORDER_BLOCK_HEAD, REORDER_BLOCK_VISITED): Remove.
3687 (REORDER_BLOCK_FLAGS, REORDER_BLOCK_INDEX): Remove.
3688 (REORDER_BLOCK_ADD_JUMP, REORDER_BLOCK_EFF_HEAD): Remove.
3689 (REORDER_BLOCK_EFF_END, REORDER_BLOCK_SCOPE): Remove.
3691 (reorder_index, reorder_last_visited): Remove.
3692 (skip_insns_after_block): Rewrite to use a switch.
3693 (get_common_dest): Remove.
3694 (chain_reorder_blocks): Remove.
3695 (record_effective_endpoints): Split out from reorder_basic_blocks.
3696 (make_reorder_chain): Likewise. Loop until all blocks are placed.
3697 (make_reorder_chain_1): Renamed from old make_reorder_chain.
3698 Only construct the reorder chain, do not move insns. Try harder
3700 (label_for_bb, emit_jump_to_block_after): New.
3701 (fixup_reorder_chain): Use them. Do bulk block movement. Examine
3702 and adjust the jump insns appropriately. Fixup basic_block_info.
3703 (verify_insn_chain): Always define.
3704 (relate_bbs_with_scopes): Call xmalloc, not xcalloc. Fix thinko
3706 (make_new_scope): Don't write zeros to calloc'd space.
3707 (build_scope_forest): Rely on xrealloc to DTRT.
3708 (reorder_basic_blocks): Don't build loop nest. Don't fail if
3709 profile_arc_flag. Streamline EH test.
3711 * flow.c (redirect_edge_succ, redirect_edge_pred): New.
3712 * basic-block.h: Declare them.
3714 2000-05-25 Alexandre Oliva <aoliva@cygnus.com>
3716 * emit-rtl.c (reset_used_decls): New function.
3717 (unshare_all_rtl_again): Call it.
3719 2000-05-25 Zack Weinberg <zack@wolery.cumb.org>
3721 * cpplex.c (maybe_macroexpand): Warn about function-like
3722 macros used in non-function context, if -Wtraditional.
3724 2000-05-25 Mark Mitchell <mark@codesourcery.com>
3726 * recog.c (peephole2_optimize): Use INSN_P.
3728 2000-05-25 Richard Henderson <rth@cygnus.com>
3730 * ifcvt.c (seq_contains_jump): New.
3731 (noce_try_store_flag_constants): Use it to fail conversion.
3732 (noce_try_store_flag_inc, noce_try_store_flag_mask): Likewise.
3734 2000-05-25 Mark Mitchell <mark@codesourcery.com>
3736 * except.h (can_throw): Declare it.
3737 * except.c (can_throw): Give it external linkage.
3738 * resource.c (find_dead_or_set_registers): Use can_throw.
3740 2000-05-25 Richard Henderson <rth@cygnus.com>
3742 * flow.c (mark_set_1): Don't record conditionally dead memory.
3744 2000-05-25 Jan Hubicka <jh@suse.cz>
3746 * combine.c (try_combine): Use any_condjump_p, any_uncondjump_p
3747 and pc_set at the place of simplejump_p and condjump_p.
3748 * cse.c (record_jump_equiv): Likewise.
3749 * emit-rtl.c (emit): Likewise.
3750 * explow.c (find_next_ref): Likewise.
3751 * flow.c (tidy_fallthru_edge): Likewise.
3752 (init_propagate_block_info): Likewise.
3753 * gcse.c (delete_null_pointer_checks): Likewise.
3754 * ifcvt.c (cond_exec_get_condition, noce_get_condition,
3755 dead_or_predicable): Likewise.
3756 * integrate.c (copy_insn_list): Likewise.
3757 * loop.c (scan_loop, verify_dominator, find_and_verify_loops,
3758 for_each_insn_in_loop, check_dbra_loop, get_condition,
3759 insert_bct, load_mems): Likewise.
3760 * resource.c (find_dead_or_set_registers): Likewise.
3761 * sibcalls.c (simplejump_p): Likewise.
3762 * unroll.c (copy_loop_body, reg_dead_after_loop): Likewise.
3764 2000-05-25 David Edelsohn <edelsohn@gnu.org>
3766 * rs6000.c (expand_block_move): Add 64-bit PowerPC doubleword move
3767 to STRING case. Use doubleword STRING move for TARGET_POWERPC64
3769 * rs6000.h (CONST_OK_FOR_LETTER_P, 'J'): unsigned HOST_WIDE_INT.
3770 (RETURN_ADDR_RTX): Use COUNT and FRAME, not count and frame.
3771 (LEGITIMIZE_RELOAD_ADDRESS): unsigned HOST_WIDE_INT high.
3772 * rs6000.md: Name various internal patterns.
3774 2000-05-25 Jan Hubicka <jh@suse.cz>
3776 * jump.c (invert_exp_1): Remove first argument, use pc_set
3777 to get the expression.
3778 (redirect_exp): Make static; redirect only the pc_set expression,
3779 remove first argument.
3780 (invert_exp): Remove first argument, make static.
3781 (jump_optimize): Use any_condjump_p, any_uncondjump_p and
3782 any_onlyjump at most places where we originaly did condjump_p
3784 (jump_back_p, follow_jumps, thread_jumps): Likewise.
3785 (delete_barrier_succesors): Use pc_set.
3786 (invert_jump_1, invert_jump, redirect_jump_1, redirect_jump): Update
3787 calls of invert_exp and redirect_exp.
3788 * rtl.h (redirect_exp, invert_exp): Remove.
3789 * unroll.c (copy_loop_body): Use invert_jump and redirect_jump.
3791 2000-05-25 Richard Henderson <rth@cygnus.com>
3793 * stmt.c (expand_end_bindings): Fix thinko last change.
3795 2000-05-25 Andrew MacLeod <amacleod@cygnus.com>
3796 Andrew Haley <aph@cygnus.com>
3798 * except.c (func_eh_entry): Add emitted field.
3799 (new_eh_region_entry): Set emitted field to 0;
3800 (output_exception_table_entry): Only emit previously un-emitted data,
3801 and send it to the eh_data section.
3802 (output_exception_table): Break out common parts. Output
3803 exception table for entire compilation unit to eh_data section.
3804 (output_exception_table_data): Common parts of output_exception_table.
3805 Send output to eh_data section.
3806 (output_function_exception_table): Output exception table data for
3807 a single function to eh_data section.
3808 (free_exception_table): New external to free the table.
3809 * except.h (free_exception_table): Add prototype.
3810 (output_function_exception_table): Add prototype.
3811 * final.c (final_end_function): Output function exception table
3812 for IA64_UNWIND_INFO.
3813 (final_scan_insn): Emit any unwind directives for an insn.
3815 * frame-dwarf2.c: New file containing all DWARF 2 specific code
3817 * frame.c: Remove all DWARF 2 specific code.
3818 * config/ia64/frame-ia64.c: New file.
3819 (gthread_stuff): Make all gthread available with
3821 (dwarf_fde): Define an IA64 struct for dwarf_fde.
3822 (__register_frame_info, __register_frame): Move to common area of file.
3823 (__register_frame_info_table, __register_frame_table): Move to common i
3825 (__deregister_frame_info, __deregister_frame): Move to common area.
3826 (__frame_init, find_fde): New versions for IA64_UNWIND_INFO.
3827 (read_uleb128): New version for ia64.
3828 (get_unwind_record): Read the next IA-64 unwind record.
3829 (read_R_record): Read a region header record.
3830 (process_a_b_reg_code): X record helper.
3831 (read_X_record): Read an X format record.
3832 (read_B_record): Read a B format record.
3833 (P3_record_types): List of record types matching the P3 format.
3834 (P7_record_types): List of record types matching the P7 format.
3835 (P8_record_types): List of record types matching the P8 format.
3836 (read_P_record): Read a P format record.
3837 (init_ia64_reg_loc): Set default fields for a register.
3838 (init_ia64_unwind_frame): Set defaults for all register records.
3839 (execute_one_ia64_descriptor): Execute one descriptor record.
3840 (rse_address_add): Calculate the position of a local reg in memory.
3841 (normalize_reg_loc): Turn a location descriptor into a memory address.
3842 (maybe_normalize_reg_loc): Only normalize a descriptor if it falls
3843 within a specified PC offset range.
3844 (get_real_reg_value): Given a register location, retrieve its value.
3845 (set_real_reg_value): Change the value of a register location.
3846 (copy_reg_value): Copy reg values, if needed.
3847 (copy_saved_reg_state): Copy all registers that need to be copied.
3848 (process_state_between): Normalize all frame register records that
3849 fall within the specified PC range.
3850 (frame_translate): Take a processed frame description, and turn
3851 everything into addresses.
3852 (build_ia64_frame_state ): Find and create frame state record for a PC.
3853 (get_personality): Get the personality routine for a given frame.
3854 (get_except_table): Get the exception table for a given frame.
3855 (record_name): Unwind record names for debugging.
3856 (print_record): Print and unwind record.
3857 (print_all_records): Print an entire unwind image.
3858 (__ia64_backtrace): Print a backtrace.
3859 (ia64_backtrace_helper): New function.
3860 (__register_frame_info_aux): New function.
3861 * config/ia64/crtend.asm (__do_frame_setup_aux): New function.
3863 * frame.h (enum unw_record_type): New unwind record types.
3864 (struct unw_p_record, unw_b_record, unw_x_record) : New unwind records.
3865 (struct unw_r_record, unwind_record): New unwind record structs.
3866 (struct unwind_info_ptr): Unwind information layout.
3867 (IA64_UNW_LOC_TYPE_*): Macros for different types for location
3869 (struct ia64_reg_loc): Register location description.
3870 (struct ia64_frame_state): Location of all registers in a frame.
3871 (struct object): Add pc_base and fde_end for IA64_UNWIND_INFO.
3872 * libgcc2.c (__ia64_personality_v1): Personality routine.
3873 (__calc_caller_bsp): Calculate the bsp register for the caller's
3875 (ia64_throw_helper): Figure out who to return to and set up the
3877 (__throw): Throw routine.
3879 * output.h (assemble_eh_align, assemble_eh_label): New functions
3880 to generate EH info where we want it.
3881 (assemble_eh_integer): New function.
3882 * toplev.c (compile_file): Output module level exception table for
3884 (main): Set exceptions_via_longjump and flag_new_exceptions based
3885 on IA64_UNWIND_INFO too.
3887 * varasm.c (assemble_eh_label): Generate a label via
3888 ASM_OUTPUT_EH_LABEL if it has been specified.
3889 (assemble_eh_align): Generate an alignment directive via
3890 ASM_OUTPUT_EH_ALIGN if it has been specified.
3891 (assemble_eh_label): Generate an integer value via
3892 ASM_OUTPUT_EH_type if they have been specified.
3893 * config/ia64/ia64.c (rtx_needs_barrier): Add flushrs.
3894 (ia64_init_builtins): Add __builtin_ia64_bsp
3895 and __builtin_ia64_flushrs.
3896 (ia64_expand_builtin): Add IA64_BUILTIN_BSP and
3897 IA64_BUILTIN_FLUSHRS.
3898 * config/ia64/ia64.h (ia64_builtins): Add IA64_BUILTIN_BSP and
3899 IA64_BUILTIN_FLUSHRS.
3901 * config/ia64/ia64.md (flushrs): New insn to flush the register
3902 stack. Add to unspec list.
3904 * config/ia64/crtbegin.asm (frame_object): Change size.
3905 (__do_frame_setup_aux): New function.
3906 * config/ia64/crtend.asm: call __do_frame_setup_aux.
3907 * config/ia64/t-ia64 (LIB2ADDEH): Add.
3908 * Makefile.in (LIB2ADDEH): Add.
3909 (LIB2ADD): Use LIB2ADDEH.
3911 2000-05-24 Richard Henderson <rth@cygnus.com>
3913 * recog.c (offsettable_address_p): If mode size is zero, assume
3916 2000-05-24 J. David Anglin <dave@hiauly.hia.nrc.ca>
3918 * configure.in: Check for -Wno-long-long option support and improve
3919 handling of warning CFLAGS for stages 1 and 2.
3920 * Makefile.in (WARN_CFLAGS): Move definition to configure.in.
3921 * configure: Regenerate.
3923 Wed May 24 19:37:53 2000 Jeffrey A Law (law@cygnus.com)
3925 * gcc.texi: Remove contributor list. Instead include contrib.texi.
3926 * contrib.texi: New file.
3928 Thu May 25 02:27:22 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
3930 * loop.c (basic_induction_var): Avoid double recording of an increment.
3932 Thu May 25 02:19:27 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
3934 * Back out this patch:
3935 Tue Dec 7 19:22:06 1999 Richard Henderson <rth@cygnus.com>
3936 * loop.h (struct induction): Add multi_insn_incr.
3937 * loop.c (basic_induction_var): New multi_insn_incr argument.
3938 Set it if we search back through previous insns for the biv.
3939 (record_biv): New multi_insn_incr argument; fill in struct induction.
3940 (strength_reduce): Discard an iv with multiple bivs, any of
3941 which require multiple insns to increment.
3943 * loop.c (check_insn_for_bivs): Remove bits copied from above patch.
3945 Thu May 25 02:09:10 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
3947 * rtl.h (loc_mentioned_in_p): Declare.
3948 * reload.c (loc_mentioned_in_p): Moved from here...
3949 * rtlanal.c (loc_mentioned_in_p): to here. No longer static.
3950 Fix loop increment for 'E' handling.
3951 * loop.c (strength_reduce): When doing biv->giv conversion,
3952 take multi-insn biv increments into account.
3954 2000-05-24 Jason Merrill <jason@casey.soma.redhat.com>
3956 * stmt.c (expand_end_bindings): Look through NOTEs to find a
3959 2000-05-24 Mark Mitchell <mark@codesourcery.com>
3961 * calls.c (expand_call): Handle cleanups in tail-recursion
3962 arguments analagously to cleanups in sibling calls.
3964 2000-05-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3966 * simplify-rtx.c: Rename macro SIGN_EXTEND to HWI_SIGN_EXTEND.
3967 All callers changed.
3969 2000-05-24 Alexandre Oliva <aoliva@cygnus.com>
3971 * expr.c (expand_assignment, store_expr, expand_expr,
3972 expand_expr_unaligned): Set in_check_memory_usage while emitting
3973 chkr_check_addr libcall.
3975 2000-05-24 Nick Clifton <nickc@cygnus.com>
3977 * fold-const.c (extract_muldiv): When constructing a
3978 multiplier/divisor, do not expect const_binop to correctly
3979 determine if overflow has occured, so check explicitly.
3981 2000-05-24 Alexandre Oliva <aoliva@cygnus.com>
3983 * c-decl.c (build_enumerator): Don't modify the value's type,
3986 2000-05-24 Andreas Jaeger <aj@suse.de>
3988 * mips.h (LINKER_ENDIAN_SPEC): Pass -EL to linker by default.
3990 2000-05-24 Eric Christopher <echristo@cygnus.com>
3992 * configure.in: Redefine inhibit_libc conditions.
3993 * libgcc2.c: Remove inhibit_libc conditional define.
3994 * configure: Regenerate.
3996 2000-05-24 Phil Edwards <pme@sourceware.cygnus.com>
3998 * configure.in: For --enable-languages=LIST, check for empty LIST.
3999 * configure: Regenerate.
4001 2000-05-24 Lars Brinkhoff <lars@nocrew.org>
4003 * pdp11.h (STACK_BOUNDARY): Define.
4005 2000-05-24 Jakub Jelinek <jakub@redhat.com>
4007 * ifcvt.c (if_convert): Update life info globally.
4009 2000-05-24 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
4011 * emit-rtl.c (unshare_all_decls): New function.
4012 (unshare_all_rtl): Call it.
4014 2000-05-23 Nick Clifton <nickc@cygnus.com>
4016 * configure.in: Treat 'strongarm' as if it were 'arm' when
4017 determining cpu type.
4019 * configure: Regenerate.
4021 * config/arm/arm.c: Change 'char *' to 'const char *' for cases
4022 where constant strings are involved.
4024 * config/arm/arm.h (arm_condition_codes): Change type to 'const
4027 * config/arm/arm-protos.h: Change 'char *' to 'const char *' for
4028 cases where constant strings are involved.
4030 Tue May 23 15:08:31 2000 Clinton Popetz <cpopetz@cygnus.com>
4032 * config/sh/sh.c (gen_far_branch, split_branches): Update
4033 to reflect new prototypes for redirect_jump and invert_jump.
4034 (sh_insn_length_adjustment): Get rid of const warnings.
4036 2000-05-23 Kazu Hirata <kazu@hxi.com>
4038 * invoke.texi (Options for Debugging Your Program or GCC): Update
4039 the names of dump files.
4041 Tue May 23 13:58:52 2000 Philippe De Muyter <phdm@macqel.be>
4043 * configure.in (NO_MINUS_C_MINUS_O): Fix thinko in previous fix.
4044 * configure: Regenerated.
4046 2000-05-23 Zack Weinberg <zack@wolery.cumb.org>
4048 * simplify-rtx.c (SIGN_EXTEND): New macro.
4049 (simplify_unary_operation, simplify_binary_operation,
4050 simplify_relational_operation): Use SIGN_EXTEND. Make low
4051 halves of (low, high) pairs unsigned if they weren't already.
4052 (simplify_ternary_operation): Cast INTVAL to unsigned before
4053 comparing to a MODE_BITSIZE.
4055 2000-05-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4057 * aclocal.m4 (gcc_AC_CHECK_DECL, gcc_AC_CHECK_DECLS): New macros
4058 rewritten from the internals of gcc_AC_NEED_DECLARATION{S}.
4060 * configure.in (gcc_AC_CHECK_DECLS): Call this instead of
4061 gcc_AC_NEED_DECLARATIONS.
4063 * dwarfout.c: Don't prototype time().
4065 * gcc.c: Check HAVE_DECL_* instead of NEED_DECLARATION_*.
4067 * system.h: Likewise.
4069 * toplev.c: Likewise.
4071 2000-05-23 Zack Weinberg <zack@wolery.cumb.org>
4073 * c-decl.c (pushdecl): Invert sense of test for non-global types.
4075 Tue May 23 18:11:42 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
4077 * reload1.c (reload_cse_move2add): Honor TRULY_NOOP_TRUNCATION.
4079 2000-05-23 Jonathan Larmour <jlarmour@redhat.co.uk>
4081 * config/mips/elf64.h (CTOR_LISTS_DEFINED_EXTERNALLY): Define
4083 Tue May 23 06:50:29 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4085 * config/alpha/alpha.c: Remove #ifdef HAIFA since now only scheduler.
4086 (alpha_start_function): Never write ..ng label if VMS or NT.
4087 (alpha_align_insns): Remove GP_IN_USE arg.
4088 Alignment now unsigned.
4089 (alpha_reorg): Don't pass GP_IN_USE arg to alpha_align_insns.
4090 * config/alpha/alpha.md (prologue_ldgp): Split into one define_expand
4091 and two define_insn's.
4093 2000-05-22 Richard Henderson <rth@cygnus.com>
4095 * combine.c (simplify_comparison): Use trunc_int_for_mode.
4097 2000-05-22 Richard Henderson <rth@cygnus.com>
4099 * stor-layout.c (place_field): Change rli->size to rli->offset.
4101 2000-05-22 Richard Henderson <rth@cygnus.com>
4103 * function.c (thread_prologue_and_epilogue_insns): Make sure
4104 existing line number notes appear after the prologue.
4106 Mon May 22 21:49:00 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4108 * config/alpha/alpha.c (alpha_fnname): New static variable.
4109 (print_operand, case '~'): New case.
4110 (alpha_expand_prologue): Emit prologue_ldgp insn if needed.
4111 (alpha_start_function): Set alpha_fnname.
4112 Write "ng" label if no ldgp; don't write ldgp insn.
4113 * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): New case '~'.
4114 * config/alpha/alpha.md (prologue_ldgp): New define_insn.
4116 Mon May 22 11:30:48 2000 Clinton Popetz <cpopetz@cygnus.com>
4118 * jump.c (jump_optimize_1): Don't increment LABEL_NUSES
4121 2000-05-22 Zack Weinberg <zack@wolery.cumb.org>
4123 * varasm.c (eh_frame_section): Revert change to argument list.
4125 Mon May 22 13:14:03 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4127 * optabs.c (can_extend_p): Allow unsignedp to have any nonzero value.
4128 (gen_extend_insn, can_fix_p, can_float_p): Likewise.
4130 * final.c (final_scan_insn, case NOTE_INSN_FUNCTION_BEG): Remove
4131 dangling "else" that causes "break" to be conditional.
4132 Also remove unneeded code at start.
4134 Mon May 22 17:31:35 2000 Philippe De Muyter <phdm@macqel.be>
4136 * m68k/m68k.h (STORE_FLAG_VALUE): Macro set to (-1), not -1.
4137 * fx80/fx80.h, i370/i370.h, m88k/m88k.h (STORE_FLAG_VALUE): Ditto.
4138 * gmicro/gmicro.h, we32k/we32k.h (STORE_FLAG_VALUE): Ditto.
4140 2000-05-22 Jakub Jelinek <jakub@redhat.com>
4142 * config/sparc/sparc.md (movdf_insn_v9only_vis): fzero has
4145 Mon May 22 06:57:49 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4147 * alias.c (record_component_aliases): New function.
4148 * tree.h: Clean up some declarations and comments.
4149 (record_component_aliases): New declaration.
4150 * tree.c (get_alias_set): If type and has alias set, use it.
4152 2000-05-22 Richard Henderson <rth@cygnus.com>
4154 * simplify-rtx.c (simplify_ternary_operation): Try to simplify
4155 IF_THEN_ELSE to a setcc form.
4156 * jump.c (can_reverse_comparison_p): Be prepared for insn null.
4158 2000-05-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4160 * fixinc/inclhack.def (sun_malloc): Handle `calloc'.
4161 (sun_malloc, sysz_stdtypes_for_sun): Add test_text.
4163 Sun May 21 16:42:31 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4165 * combine.c (try_combine): Handle i3_subst_into_i2 case when I2 is
4168 2000-05-20 Alexandre Oliva <aoliva@cygnus.com>
4170 * config/mn10300/mn10300.md (movdi, movdf): 64-bit clean-up.
4171 * config/mn10300/mn10300.c (print_operand): Likewise.
4173 * final.c (split_double): Right shift of negative values is not
4176 * ifcvt.c (if_convert): Scan and kill dead code.
4178 * emit-rtl.c (unshare_all_rtl): Store the copied rtx.
4180 2000-05-20 Zack Weinberg <zack@wolery.cumb.org>
4182 * diagnostic.c: Eliminate implicit int.
4183 * except.c, gcc.c: Add static prototypes.
4184 * final.c (final_end_function): Mark file arg ATTRIBUTE_UNUSED.
4185 * gensupport.c (process_rtx): Use XVEC to initialize vector
4188 * print-rtl.c: If DEBUG_REGISTER_NAMES, define static
4189 debug_reg_names instead of static reg_names. If not, define
4191 * regclass.c: Don't define global reg_names unless
4192 DEBUG_REGISTER_NAMES is defined.
4194 * reload1.c (order_regs_for_reload): Remove unused variable.
4195 * varasm.c: Include output.h after defaults.h. Define
4196 eh_frame_section as function of no args, not of unspecified args.
4198 * gcc.c: Constify argbuf; arguments to store_arg,
4199 process_command, main; elements of struct command and struct
4200 switchstr; local variables in execute, process_command, main.
4202 2000-05-20 Bruce Korb <bkorb@gnu.org>
4204 * fixinc/inclhack.def: many applications of c_fix=format + tests
4205 * fixinc/check.diff: regenerated
4206 * fixinc/fixincl.x: regenerated
4208 Sat May 20 09:30:55 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4210 * alias.c: Clarify some comments.
4211 (record_base_value): REGNO is unsigned.
4212 * rtl.h (record_base_value): Likewise.
4214 * alias.c (aliases_everything_p): Don't special-case QImode here.
4215 * c-common.c (c_get_alias_set): Do it here.
4216 Handle BIT_FIELD_REF by getting alias info for arg.
4219 2000-05-20 Alexandre Oliva <aoliva@cygnus.com>
4221 * mklibgcc.in: Restore rule to create ${dir}.
4223 Sat May 20 08:45:41 2000 H.J. Lu <hjl@gnu.org>
4225 * Makefile.in (libgcc.mk): Depend on xgcc$(exeext) for
4226 GCC_FOR_TARGET used by MULTILIBS.
4227 * mklibgcc.in: Make sure each .o file depends on the
4228 directory it will be in.
4229 Make the multilib directory depends libgcc.
4231 Sat May 20 08:29:28 2000 H.J. Lu <hjl@gnu.org>
4233 * Makefile.in (bootstrap): Unset LANG_LIB2FUNCS for stage 1.
4235 Sat May 20 07:27:35 2000 Alexandre Oliva <aoliva@cygnus.com>
4237 * fold-const.c (make_range): Handle degenerated intervals.
4238 Fixes c-torture/execute/991221-1.c
4240 Fri May 19 18:16:31 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4242 * cse.c (cse_basic_block): Only call find_reg_note if REG_NOTES not 0.
4243 * reload.c (find_equiv_reg): Likewise.
4244 * alias.c (init_alias_analysis): Likewise.
4245 Only call prologue_epilogue_contains on insns.
4246 * basic-block.h (REG_SET_TO_HARD_REG_SET): Call new function.
4247 * bb-reorder.c (hard-reg-set.h): Include earlier.
4248 * haifa-sched.c (hard-reg-set.h): Likewise.
4249 * ifcvt.c (hard-reg-set.h): Likewise.
4250 * local-alloc.c (hard-reg-set.h): Likewise.
4251 * loop.c (hard-reg-set.h): Likewise.
4252 * predict.c (hard-reg-set.h): Likewise.
4253 * regrename.c (hard-reg-set.h): Likewise.
4254 * flow.c (hard-reg-set.h): Likewise.
4255 (reg_set_to_hard_reg_set): New function.
4256 * bitmap.c (regs.h, basic-block.h): No longer include.
4257 (bitmap.h): Now include.
4258 * conflict.c (hard-reg-set.h): Include.
4259 * profile.c (hard-reg-set.h): Likewise.
4260 * print-rtl.c (hard-reg-set.h): Likewise.
4261 * sbitmap.c (hard-reg-set.h): Likewise.
4262 * toplev.c (hard-reg-set.h): Likewise.
4263 * unroll.c (hard-reg-set.h, basic-block.h): Likewise.
4264 * hard-reg-set.h (reg_names): Now constant.
4265 * regs.h (reg_names): Likewise.
4266 * regclass.c (reg_names): Likewise.
4267 * loop.h (basic-block.h): No longer include.
4268 (bitmap.h): Now include.
4269 * reload1.c (order_regs_for_reload): Avoid loop over reg sets.
4270 * Makefile.in (LOOP_H, sbitmap.o, profile.o): Reflect above changes.
4271 (toplev.o, print-rtl.o, conflict.o, unroll.o, bitmap.o): Likewise.
4273 2000-05-19 Jan Hubicka <jh@suse.cz>
4274 Richard Henderson <rth@cygnus.com>
4276 * basic-block.h (struct edge_def): New field "count".
4277 (struct basic_block_def): Likewise.
4278 * flow.c (entry_exit_blocks): Add count fileds.
4279 (split_edge): Keep count information up-to-date.
4280 (dump_edge_info, dump_flow_info): Dump count fields.
4282 * final.c (count_instrumented_edges): Rename to edge from arc.
4283 (end_final): Update users.
4284 * profile.c: Include expr.h, basic-block.h.
4285 (struct adj_list, ARC_TARGET, ARC_SOURCE, ARC_COUNT): Kill.
4286 (struct bb_info, label_to_bb, label_to_bb_size, bb_graph): Kill.
4287 (ignore_next_note, return_label_execution_count): Kill.
4288 (bbg_file_name, da_file_name): Kill.
4289 (edge_info, bb_info): New structures.
4290 (EDGE_INFO, BB_INFO, GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX): New macros.
4291 (count_instrumented_edges, total_num_edges): Rename to edge from arc.
4292 (total_num_edges_instrumented): Likewise.
4293 (init_arc, expand_spanning_tree): Kill.
4294 (fill_spanning_tree, tablejump_entry_p): Kill.
4295 (instrument_edges): Rewrite from instrument_arcs to use
4296 commit_edge_insertions infrastructure.
4297 (compute_branch_probabilities): Remove arguments; rewrite for
4298 CFG infrastructure; use rtl_dump_file directly.
4299 (branch_prob, find_spanning_tree): Likewise.
4300 (union_groups, find_group): New.
4301 (init_branch_prob): Make bbg_file_name and da_file_name local.
4302 (end_branch_prob): Use rtl_dump_file directly.
4303 (init_edge_profiler): Rename to edge from arc.
4304 (output_arc_profiler): Kill.
4305 (gen_edge_profiler): New.
4306 (output_func_start_profiler): Turn off profiling. Make the
4307 constructor static when we can.
4308 * rtl.h (branch_prob, end_branch_prob): Update prototypes.
4310 * toplev.c (DFI_flow): Remove.
4311 (DFI_cfg, DFI_life): New.
4312 (dump_file): Update accordingly.
4313 (compile_file): Call end_branch_prob if profile_arc_flag too.
4314 (rest_of_compilation): Move flow1 cfg creation to DFI_cfg. Do edge
4315 profiling after the CFG is built. Move flow1 life analysis to
4316 DFI_life. Always estimate remaining probabilities.
4318 2000-05-19 Richard Henderson <rth@cygnus.com>
4320 * ifcvt.c (find_if_case_2): Don't allow THEN to be EXIT.
4322 * flow.c (make_edges): The sibling call edge to exit is abnormal.
4324 2000-05-19 Richard Henderson <rth@cygnus.com>
4326 * jump.c (redirect_jump): Add delete_unused argument. Don't
4327 remove labels and code following when LABEL_NUSES goes to zero.
4328 (invert_jump): Likewise.
4329 (jump_optimize_1): Fix redirect/invert arguments.
4330 (do_cross_jump, thread_jumps): Likewise.
4331 * flow.c (split_edge): Likewise.
4332 * reorg.c (optimize_skip): Likewise.
4333 (reorg_redirect_jump, relax_delay_slots, dbr_schedule): Likewise.
4334 * profile.c (instrument_arcs): Likewise.
4335 * loop.c (find_and_verify_loops): Likewise. Fix indentation.
4336 * rtl.h: Update prototypes.
4338 Fri May 19 12:05:13 2000 Clinton Popetz <cpopetz@cygnus.com>
4340 * ssa.c (convert_from_ssa): Tell life_analysis we need death
4342 (make_regs_equivalent_over_bad_edges): Only look at abnormal
4345 2000-05-19 Zack Weinberg <zack@wolery.cumb.org>
4347 * cpphash.c (funlike_macroexpand): Make sure not to walk p1
4348 past l1 when deleting whitespace and markers.
4350 * cpplex.c (_cpp_scan_until): Clear AUX field of tokens.
4351 * cpplib.c (do_unassert): Put the list to compare against on
4354 2000-05-19 Bruce Korb <bkorb@gnu.org>
4356 * fixinc/README: cleaned up old documentation
4357 * fixinc/check.diff: regenerated & verified on OSR5 on ix86
4358 * fixinc/check.tpl: compute the list of needed directories
4359 emit "#if defined(name)" because of conflict
4360 omit machine name differences from output differences
4361 * fixinc/inclhack.def( m88k_multi_incl ): Use `wrap' function
4362 (machine_name): change test text to use `sed' markers
4363 * fixinc/fixincl.x: regen
4365 Fri May 19 06:49:35 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4367 * config/elfos.h (SELECT_SECTION): Don't access DECL_INITIAL of
4370 2000-05-18 Chris Demetriou <cgd@sibyte.com>
4372 * gcc.texi (MULTILIB_EXCEPTIONS): Correct example and update
4373 it to match the current practice.
4375 2000-05-18 Mark Mitchell <mark@codesourcery.com>
4377 * Makefile.in (STAGESTUFF): Fix typo in spelling of s-under.
4379 2000-05-18 Richard Henderson <rth@cygnus.com>
4381 * rtlanal.c (insn_dependant_p, insn_dependant_p_1): New.
4382 * rtl.h (insn_dependant_p): Declare it.
4383 * loop.c (strength_reduce): Use it.
4385 2000-05-18 Alexandre Oliva <aoliva@cygnus.com>
4387 * config/mn10300/mn10300.c (expand_prologue, expand_epilogue):
4388 16-bit and 64-bit clean-up.
4390 2000-05-18 Mark Elbrecht <snowball3@bigfoot.com>
4392 * configure.in (*-pc-msdosdjgpp): Set float_format to none.
4393 * configure: Rebuilt.
4395 2000-05-18 Zack Weinberg <zack@wolery.cumb.org>
4397 * genopinit.c: Use $ for escape sequences in optab patterns.
4398 Remove backslashes from optab patterns. Change $A, $B, $C to
4399 expand to (int) whatever instead of just whatever; remove
4400 explicit (int) from all optab patterns.
4402 * gensupport.c (xmalloc, xrealloc, xstrdup): Provide.
4403 * genattr.c, genattrtab.c, gencodes.c, genconfig.c, genemit.c,
4404 genextract.c, genflags.c, genopinit.c, genoutput.c, genpeep.c,
4405 genrecog.c: Remove private copies of xmalloc, xrealloc, and
4408 2000-05-18 Richard Henderson <rth@cygnus.com>
4410 * jump.c (jump_optimize_1): Base minimum insn count during
4411 find_cross_jump on BRANCH_COST.
4413 2000-05-18 Jakub Jelinek <jakub@redhat.com>
4415 * print-rtl.c (print_rtx): Only print note line number as string
4416 if between NOTE_INSN_BIAS and NOTE_INSN_MAX.
4417 * final.c (final_scan_insn): Do nothing for note line number 0.
4419 2000-05-18 Jakub Jelinek <jakub@redhat.com>
4421 * gcc-common.c (ggc_mark_rtx_children): Mark NOTE_EXPECTED_VALUE
4422 from NOTE_INSN_EXPECTED_VALUE notes and NOTE_SOURCE_FILE from
4423 NOTE_INSN_DELETED_LABEL.
4425 2000-05-18 Nick Clifton <nickc@cygnus.com>
4427 * config/arm/unknown-elf.h (UNIQUE_SECTION): Place constant,
4428 uninitialised data in .rodata not .bss, and do not interpret an
4429 error in the initialisation value as meaning that the variable
4430 should be placed in the .bss section.
4432 Thu May 18 12:10:18 2000 Philippe De Muyter <phdm@macqel.be>
4434 * configure.in (NO_MINUS_C_MINUS_O): Test `$ac_cv_prog_cc_${ac_cc}_c_o',
4435 not `$ac_cv_prog_cc_cc_c_o'.
4436 * configure: Regenerated.
4438 2000-05-18 Chris Demetriou <cgd@sibyte.com>
4439 Richard Henderson <rth@cygnus.com>
4441 * c-common.h (enum c_tree_index): Add g77 type entries.
4442 (g77_integer_type_node, g77_uinteger_type_node): New.
4443 (g77_longint_type_node, g77_ulongint_type_node): New.
4444 * c-decl.c (init_decl_processing): Initialize them.
4446 2000-05-18 Richard Henderson <rth@cygnus.com>
4448 * config/h8300/h8300.md (subs patterns): Use %G to negate.
4450 * config/h8300/h8300.c (ok_for_bclr): Take a HOST_WIDE_INT.
4451 (small_power_of_two): Likewise; use exact_log2.
4452 (adds_subs_operand, one_insn_adds_subs_operand): Remove.
4453 (output_adds_subs): Remove.
4454 (two_insn_adds_subs_operand): New.
4455 (split_adds_subs): New.
4456 * config/h8300/h8300-protos.h: Update.
4457 * config/h8300/h8300.h (CONST_OK_FOR_J): Cast to uns HOST_WIDE_INT.
4458 (CONST_OK_FOR_L): Match strict adds operands.
4459 (CONST_OK_FOR_N): Match struct subs operands.
4460 * config/h8300/h8300.md (adds_subs insns): Remove.
4461 (addhi patterns): Output adds/subs directly.
4462 (addsi_h8300h): Likewise.
4463 (addhi/addsi splitters): New. Decompose two_insn_adds_subs_operand.
4465 2000-05-18 Zack Weinberg <zack@wolery.cumb.org>
4467 * cppexp.c (parse_assertion): New.
4468 (lex): Call it for CPP_HASH. Remove CPP_ASSERTION case.
4469 (_cpp_parse_expr): Remove case '#'. Don't set
4470 parsing_if_directive.
4471 * cpphash.c (collect_objlike_expansion,
4472 collect_funlike_expansion, collect_params,
4473 _cpp_create_definition): The list no longer has a trailing
4475 * cpphash.h (enum node_type): Add T_ASSERTION.
4476 (struct hashnode): Remove aschain, add pred.
4477 (struct predicate): New.
4480 * cpplex.c (expand_token_space): Handle both offset and
4482 (init_token_list, _cpp_free_token_list, _cpp_parse_assertion): Delete.
4483 (_cpp_init_toklist, _cpp_clear_toklist, _cpp_free_toklist,
4484 _cpp_slice_toklist, _cpp_squeeze_toklist, _cpp_equiv_tokens,
4485 _cpp_equiv_toklists): New.
4486 (_cpp_scan_line): Rename to _cpp_scan_until; add ability to
4487 stop at any single-character token, not just newline.
4488 (_cpp_lex_token): Remove special cases for #define and #if.
4489 (cpp_get_token): Expect # as a separate token type. Remove
4491 (_cpp_get_directive_token): Remove DIRECTIVE case.
4492 (_cpp_lex_line, _cpp_lex_file, _cpp_init_input_buffer): Update.
4494 * cpplib.c (_cpp_check_directive): Set dirno and
4495 SYNTAX_INCLUDE bit of flags, not dir_handler and dir_flags.
4496 (_cpp_handle_directive): Run # <number> through the same logic
4497 as normal directives.
4498 (do_define): Don't set parsing_define_directive. Use
4499 _cpp_scan_until. The list does not have a VSPACE at the end.
4500 (do_if): Save, clear, and restore only_seen_white around
4502 (skip_if_group): s/CPP_DIRECTIVE/CPP_HASH/
4503 (do_assert, do_unassert): Rewrite.
4505 * cpplib.h (TTYPE_TABLE): Remove CPP_ASSERTION.
4506 (LIST_OFFSET): New flag.
4507 (struct cpp_toklist): Replace dir_handler and dir_flags with
4509 (struct cpp_reader): Remove parsing_if_directive and
4510 parsing_define_directive.
4512 2000-05-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4514 * fixinc/inclhack.def (broken_cabs): Update fix to handle comments
4515 following the cabs decl which terminate on the following line.
4516 Add the corresponding test_text case.
4518 2000-05-18 Neil Booth <NeilB@earthling.net>
4520 * cppinit.c (cpp_reader_init): Initialise col_adjust and
4521 default tab stop size.
4522 (no_num, OPT_ftabstop): New.
4523 (handle_option): Handle "ftabstop=" command-line option.
4524 (print_help): Document it.
4525 * cpplex.c (COLUMN): Remove.
4526 (handle_newline): Reset col_adjust.
4527 (skip_whitespace): Update col_adjust as tabs encountered.
4528 (_cpp_lex_line): Update to use col_adjust. Call
4529 skip_whitespace for all whitespace.
4530 * cpplib.h (struct cpp_options): New member tabstop.
4531 (struct cpp_reader): New member col_adjust.
4532 (CPP_BUF_COL): Update.
4533 (CPP_BUF_COLUMN): New.
4534 * cpp.texi: Document "-ftabstop=" command line option.
4536 Wed May 17 18:19:41 2000 Philippe De Muyter <phdm@macqel.be>
4538 * configure.in (NO_MINUS_C_MINUS_O): Macro made availabe for AC_OUTPUT
4540 * configure: Rebuilt.
4542 Wed May 17 18:06:12 2000 John David Anglin <dave@hiauly1.hia.nrc.ca>
4544 * mklibgcc.in Add missing -DL$name when compiling modules in libgcc1.c.
4546 * tree.c (build_common_tree_nodes): Do not build TI nodes unless
4547 HOST_BITS_PER_WIDE_INT is >= 64.
4549 2000-05-17 Richard Henderson <rth@cygnus.com>
4551 * jump.c (jump_optimize_1): Remove inactive but real insns
4552 in jump-to-next-insn optimization.
4554 2000-05-17 Richard Henderson <rth@cygnus.com>
4556 * toplev.c (rest_of_compilation): Don't call optimize_mode_switching
4557 unless OPTIMIZE_MODE_SWITCHING. Conditionally set no_new_pseudos.
4558 Don't call recompute_reg_usage if no_new_pseudos is true.
4559 * lcm.c (optimize_mode_switching): Move ifdefs outside function.
4560 Return true if we did work; update global life information.
4561 * basic-block.h (optimize_mode_switching): Update decl.
4563 2000-05-17 Neil Booth <neilb@earthling.net>
4565 * cpplex.c (expand_name_space): Don't use ptrdiff_t.
4567 2000-05-17 Zack Weinberg <zack@wolery.cumb.org>
4569 * cpplib.c: New feature, #pragma system_header.
4570 * cpp.texi: Document special treatment of system headers, and
4571 the various mechanisms to get a header that special treatment.
4573 2000-05-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4575 * system.h (offsetof): Define at the very end, to ensure we prefer
4576 the platform's definition if available.
4578 2000-05-16 Bruce Korb <bkorb@gnu.org>
4580 * fixinc/fixincl.c: improve the debug displays, ignore SIGPIPE
4581 * fixinc/server.c: likewise
4582 * fixinc/fixfixes.c( char_macro_def_fix ): fix regex
4583 + #ifdef debugging code + use #def constant for
4585 * fixinc/inclhack.def( hpux11_fabsf ): Keep HP-UX 11 from stomping
4586 on C++ math namespace
4588 2000-05-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4590 * fixinc/fixfixes.c (char_macro_use_fix, char_macro_def_fix):
4591 Don't check the return value of sprintf. Use asprintf to avoid
4594 Wed May 17 17:27:44 2000 Andrew Cagney <cagney@b1.cygnus.com>
4596 * flags.h (warn_unused_function, warn_unused_label,
4597 warn_unused_parameter, warn_unused_variable, warn_unused_value):
4598 Replace ``warn_unused''.
4599 (set_Wunused): Add declaration.
4600 * toplev.c (set_Wunused): New function.
4601 (warn_unused_function, warn_unused_label, warn_unused_parameter,
4602 warn_unused_variable, warn_unused_value): New variables.
4603 (W_options): Add -Wunused-function, -Wunused-function,
4604 -Wunused-label, -Wunused-parameter, -Wunused-variable and
4605 -Wunused-value. Delete -Wunused. Handled in decode_W_option.
4607 * toplev.c (decode_W_option): Update -Wunused flags by calling
4609 * c-decl.c (c_decode_option): Ditto for -Wall.
4611 * stmt.c (expand_expr_stmt, expand_expr_stmt,
4612 warn_about_unused_variables): Replace warn_unused with more
4613 explicit warn_unused_value et.al.
4614 * function.c (expand_function_end): Ditto.
4615 * c-typeck.c (internal_build_compound_expr,
4616 internal_build_compound_expr): Ditto.
4617 * c-decl.c (poplevel, pop_label_level): Ditto.
4618 * toplev.c (check_global_declarations): Replace warn_unused with
4619 check for either warn_unused_function or warn_unused_variable.
4621 * gcc.1, invoke.texi (Warning Options): Document
4622 -Wunused-function, -Wunused-function, -Wunused-label,
4623 -Wunused-parameter, -Wunused-variable and -Wunused-value options.
4625 Wed May 17 10:28:12 2000 Philippe De Muyter <phdm@macqel.be>
4627 * mklibgcc.in (building libgcc1) [Xlibgcc1.a]: Find libgcc1.c in
4628 $(srcdir), not in the current directory.
4630 2000-05-16 Richard Henderson <rth@cygnus.com>
4632 * config/ia64/crtbegin.asm (__dso_handle): Mark hidden if the
4633 assembler supports it.
4634 (.fini, .init): Use a gp-relative indirect call.
4635 (__do_global_dtors_aux): Preserve the gp; rebundle.
4636 (__do_frame_setup): Likewise.
4637 * config/ia64/crtend.asm (.IA_64.unwind): Don't terminate with -1.
4638 (.init): Use a gp-relative indirect call.
4639 (__do_global_ctors_aux): Preserve the gp.
4641 2000-05-16 Richard Henderson <rth@cygnus.com>
4643 * flow.c (commit_one_edge_insertion): Be prepared for a return
4644 insn to be inserted on the edge with a normal jump.
4645 * jump.c (jump_optimize_1): Don't look to create return isns.
4647 * flow.c (flow_delete_insn): Don't adjust reference count of notes.
4648 * jump.c (jump_optimize_1): Likewise.
4649 (returnjump_p): Verify the argument is a JUMP_INSN.
4650 * rtl.def (NOTE): Add 5th element for NOTE_INSN_DELETED_LABEL.
4652 2000-05-16 Nick Clifton <nickc@cygnus.com>
4654 * config/m32r/m32r.c (small_insn_p): Use INSN_P() to replace
4655 GET_RTX_CLASS (GET_CODE ()) == 'i'.
4656 (large_insn_p): Ditto.
4657 (m32r_is_insn): New function: Return true if the insn contains
4658 an executable instruction.
4659 (m32r_adjust_insn): Use m32r_is_insn.
4660 (m32r_sched_reorder): Use m32r_is_insn.
4661 (m32r_sched_variable_issue): Use m32r_is_insn.
4663 2000-05-16 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4665 * rs6000/rs6000.c (rs6000_select_section): Treat CONSTRUCTOR like
4668 * rs6000/sysv4.h (ASM_OUTPUT_DWARF_ADDR): Delete unused variable.
4670 * rs6000/sysv4.h (CPP_OS_LINUX_SPEC): Define __unix and __linux
4671 according to given options.
4673 Tue May 16 12:17:31 2000 Jeffrey A Law (law@cygnus.com)
4675 * mn10200.h (PREFERRED_RELOAD_CLASS): Do not prefer DATA_REGS
4676 if X has VOIDmode either.
4677 (LIMIT_RELOAD_CLASS): Similarly.
4679 * mn10200.md (indirect_jump, tablejump): Use "register_operand",
4680 not "general_operand" to match the processor's capabilities.
4682 2000-05-16 Bruce Korb <bkorb@gnu.org>
4684 * fixinc/README: corrected return address
4685 * fixinc/check.diff: regenerate, now that test works
4686 * fixinc/fixfixes.c(format_fix,format_write): reformatted
4687 (char_macro_def_fix,char_macro_use_fix): corrected and
4688 rewrote to use regex to parse the text
4689 * fixinc/inclhack.def: more testing
4690 * fixinc/fixincl.x: regenerated
4692 * fixinc/inclhack.def: added several "test_text" attributes
4693 changed several fixes to use `c_fix = format'
4694 re-alphabetized the fixes
4696 * fixinc/check.diff: regenerate
4697 * fixinc/fixincl.x: regenerate
4698 * fixinc/check.tpl: added `sparc' and `netinet' to the list
4702 2000-05-16 Alexandre Oliva <aoliva@cygnus.com>
4704 * config/mn10300/mn10300.h (ASM_OUTPUT_DWARF2_ADDR_CONST): Remove.
4706 2000-05-15 Richard Henderson <rth@cygnus.com>
4708 * toplev.c (rest_of_compilation): Run full jump pass before
4709 find_basic_blocks of flow2.
4711 2000-05-15 Richard Henderson <rth@cygnus.com>
4713 * jump.c: Fix typos and clarify commentary from last change.
4714 (any_condjump_p): Verify SET_SRC is an IF_THEN_ELSE.
4715 (safe_to_remove_jump_p): Remove.
4716 (condjump_label): Use pc_set.
4718 2000-05-15 Richard Henderson <rth@cygnus.com>
4720 * ifcvt.c (cond_exec_process_insns): Drop USE and CLOBBER insns
4721 that get in the way after reload.
4722 (cond_exec_process_if_block): Skip a label heading THEN block.
4724 2000-05-15 Richard Henderson <rth@cygnus.com>
4726 * varasm.c (output_constant_pool): Abort instead of converting
4727 (improperly) deleted labels to zero.
4729 2000-05-16 Neil Booth <NeilB@earthling.net>
4731 * cpplex.c (parse_string2): Update comment.
4732 (cpp_lex_line): No special assertion treatment for '('.
4733 * cpplib.c (DIRECTIVE_TABLE): Remove SYNTAX_ASSERT.
4734 * cpplib.h (SYNTAX_ASSERT): Remove.
4736 Mon May 15 21:45:36 MET DST 2000 Jan Hubicka <jh@suse.cz>
4738 * jump.c (condjump_p): Mark as depreached.
4739 (any_condump_p): New.
4740 (any_uncondump_p): New.
4742 (safe_to_remove_jump_p): New.
4743 * rtl.h (any_condump_p, any_uncondjump_p, pc_set
4744 safe_to_remove_jump_p): Declare.
4746 Mon May 15 21:07:20 MET DST 2000 Jan Hubicka <jh@suse.cz>
4748 * calls.c: Re-install both patches reverted by last patch.
4749 (struct arg_data): New field tail_call_reg.
4750 (initialize_argument_information): Initialize tail_call_reg
4751 (load_register_parameters): New argument flags, use
4752 tail_call_reg when emiting tail call sequence.
4753 (expand_call): Update call of load_register_parameters;
4754 copy unadjusted_args_size to adjusted_args_size.
4756 Mon May 15 19:01:42 MET DST 2000 Jan Hubicka <jh@suse.cz>
4758 * loop.c (scan_loop, strength_reduce, loop_optimize): Change unroll_p
4759 and bct_p parameters to flags.
4760 * loop.h (LOOP_UNROLL, LOOP_BCT): New constants.
4761 * rtl.h (loop_optimize): Update prototype.
4762 * toplev.c (rest_of_compilation): Update call of loop_optimize.
4764 2000-05-15 Jakub Jelinek <jakub@redhat.com>
4766 * calls.c (expand_call): Move expand_start_target_temps call after
4769 2000-05-15 Neil Booth <NeilB@earthling.net>
4771 * cpphash.c (trad_stringify, warn_trad_stringify,
4772 collect_params): Make some pointers pointers to const.
4773 * cpplex.c (auto_expand_name_space) Guaranteed to always
4774 expand by at least one character.
4775 (SPELL_CHAR, SPELL_NONE): Temporarily reverse order.
4776 (struct token_spelling): Use const U_CHAR * rather than PTR.
4777 (expand_name_space): Fix up token pointers if name space
4778 is moved when expanding.
4779 (INIT_NAME, cpp_scan_line, parse_name, parse_number,
4780 parse_string2, save_comment, spell_token, cpp_output_list):
4781 Update so the routines handle tokens with a direct pointer to
4782 their text, rather than an offset into the token's list's namebuf.
4783 (_cpp_lex_line): Rearrange for clarity.
4785 * cpplib.c (_cpp_check_directive): Similarly.
4786 (do_define): Make SYM a pointer to const.
4787 * cpplib.h (struct cpp_name): Replace offset with direct pointer.
4788 (CPP_INT, CPP_FLOAT): Spelling type should be SPELL_IDENT.
4789 (TOK_OFFSET): Delete.
4792 2000-05-14 Geoffrey Keating <geoffk@cygnus.com>
4794 * config/rs6000/rs6000.h (RETURN_ADDRESS_OFFSET): Correct for
4797 * config/rs6000/rs6000.c (logical_operand): Rewrite to take MODE
4799 (logical_u_operand): Delete.
4800 (non_logical_cint_operand): Rewrite to take MODE into account.
4801 (non_logical_u_cint_operand): Delete.
4802 (boolean_operator): New function.
4803 (print_operand): Add new %q operand.
4804 * config/rs6000/rs6000.h (PREDICATE_CODES): Add boolean_operator,
4805 remove logical_u_operand and non_logical_u_cint_operand,
4806 update logical_operand and non_logical_cint_operand.
4807 * config/rs6000/rs6000.md: Rewrite the patterns for performing
4808 logical operations to use %q.
4810 * config/rs6000/rs6000.md (movsi): Don't modify RTL in-place.
4811 (movdi): Make similar to movsi.
4812 * config/rs6000/rs6000.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): There
4813 is no such thing as a DImode CONST_DOUBLE.
4814 * config/rs6000/rs6000.c (output_toc): Likewise.
4816 * config/rs6000/rs6000.c (output_cbranch): Don't output prediction
4817 codes when old mnemonics are in use. Print register names
4818 for cc registers when requested.
4820 * optabs.c (expand_float): Don't allow mode widening that causes
4823 * invoke.texi (RS/6000 and PowerPC Options): Update -m64/-m32
4824 flags to their current names -maix64 and -maix32.
4826 2000-05-14 Bruce Korb <bkorb@gnu.org>
4828 * fixinc/fixfixes.c(wrap_fix): new fix - inserts text before
4829 and/or after current text of file
4830 * fixinc/fixlib.c(must_malloc):
4831 * fixinc/fixlib.h(must_malloc): + reformatting
4832 * fixinc/inclhack.def: replace the "1i" and "$a" sed commands
4833 with usages of ``c_fix = wrap;''
4834 Add several tests and use the ``c_fix = format'' fixer more.
4835 * fixinc/fixincl.x: regen
4836 * fixinc/check.diff: regen
4837 * fixinc/check.tpl: emit the associated header with the missing
4840 Sun May 14 17:58:59 2000 Hans-Peter Nilsson <hp@axis.com>
4842 * mklibgcc.in (building libgcc1) [Xlibgcc1.a]: Do not use unset
4843 variables $src and $dst.
4845 2000-05-13 Gabriel Dos Reis <gdr@codesourcery.com>
4847 * diagnostic.h (DIAGNOSTICS_SHOW_PREFIX_ONCE): New macro.
4848 (DIAGNOSTICS_SHOW_PREFIX_NEVER): Likewise.
4849 (DIAGNOSTICS_SHOW_PREFIX_EVERY_LINE): Likewise.
4850 (struct output_buffer: emitted_prefix_p, prefixing_rule): New
4852 (set_message_prefixing_rule): Declare.
4854 * diagnostic.c: (current_prefixing_rule): New variable.
4855 (set_message_prefixing_rule): Define.
4856 (output_set_prefix): Adjust buffer->emitted_prefix_p.
4857 (init_output_buffer): Adjust Initialization.
4858 (output_emit_prefix): Rewrite. Take prefixing rules into account.
4860 Sat May 13 11:05:47 2000 Philippe De Muyter <phdm@macqel.be>
4862 * ifcvt.c (if_convert): Do not free NULL.
4864 2000-05-12 Nick Clifton <nickc@cygnus.com>
4866 * config/fr30/fr30.c (fr30_move_double): New function: Emit code
4867 to move a double word value.
4868 (di_operand): New function: Return true if the operand is suitbale
4869 for a double word move operation.
4870 (nonimmediate_di_operand): New function: Return true if the
4871 operand is a DImode register or MEM.
4873 * config/fr30/fr30.h (PREDICATE_CODES): Add di_operand and
4874 nonimmediate_di_operand.
4876 * config/fr30/fr30-protos.h Add fr30_move_double, di_operand, and
4877 nonimmediate_di_operand.
4879 * config/fr30/fr30.md (movdi): New pattern. Required because
4880 other patterns generate DImode results.
4881 (movdi_insn): New pattern.
4883 2000-05-12 Richard Henderson <rth@cygnus.com>
4885 * config/alpha/alpha.c (struct shadow_summary): Define
4886 bitfields as type unsigned int.
4888 Sat May 13 00:09:59 2000 Denis Chertykov <denisc@overta.ru>
4890 * config/avr/t-avr: Added definition of FLOAT while generates
4893 * config/avr/avr.md: `NEXT_INSN (insn)' substituted to `insn' in
4894 peepholes for tst+jump = sbrs/sbrc optimization.
4896 Fry May 12 20:03:00 CEST 2000 Jan Hubicka <jh@suse.cz>
4898 * expr.c (emit_push_insn): Do not adjust stack pointer when
4901 Fri May 12 19:03:58 2000 Philippe De Muyter <phdm@macqel.be>
4903 * ggc-simple.c (offsetof): Macro fallback definition moved from here ..
4904 * system.h (offsetof): ... to here.
4906 2000-05-12 Richard Henderson <rth@cygnus.com>
4908 * Makefile.in (final.o): Depend on BASIC_BLOCK_H.
4909 * final.c (final_end_function): Use app_disable. Rearrange note
4910 handling into a switch. Emit deleted labels.
4911 (output_asm_label): Generate label strings for deleted labels.
4912 * flow.c (tail_recursion_label_list): New.
4913 (find_basic_blocks_1): Set label_value_list directly. Collect list
4914 of tail recursion labels from call_placeholders. Don't add deleted
4915 labels to the label value list.
4916 (cleanup_cfg): Use free_EXPR_LIST_list.
4917 (flow_delete_insn_chain): Turn non-removable labels into notes.
4918 (flow_delete_block): Don't disable deleting the block because of
4919 a non-removable label.
4920 (tail_recursion_label_p): New.
4921 (merge_blocks_move_predecessor_nojumps): Don't disable the merge
4923 (merge_blocks_move_successor_nojumps): Likewise. Also move a
4925 (merge_blocks): Disable a merge because of tail recursion labels.
4926 * ifcvt.c (merge_if_block): Don't disable a merge because of a label.
4927 Use a more accurate measure of not merging the join block.
4928 (find_if_block): Don't disable conversion because of a label.
4929 (find_if_case_1, find_if_case_2): Likewise.
4930 * jump.c (duplicate_loop_exit_test): Preserve the kind of list
4931 element when copying.
4932 (squeeze_notes): Also leave EH notes.
4933 (mark_jump_label): Ignore deleted labels. Use an INSN_LIST for
4935 (delete_insn): Preserve LABEL_NAME in NOTE_SOURCE_FILE when
4937 * print-rtl.c (print_rtx): Print NOTE_SOURCE_FILE for
4938 NOTE_INSN_DELETED_LABEL. Print `[# deleted]' for a label_ref
4939 referring to a deleted label. Convert tail handling to a switch.
4940 * rtl.def (CODE_LABEL): Rearrange elements to be compatible with NOTE
4941 for NOTE_INSN_DELETED_LABEL.
4942 (NOTE): Fix commentary.
4943 * rtl.h (REG_LABEL): Update commentary wrt INSN_LIST.
4944 (REG_CC_SETTER, REG_CC_USER, REG_LIBCALL): Likewise.
4945 (CODE_LABEL_NUMBER, LABEL_NAME): Update index.
4946 (LABEL_NUSES, LABEL_REFS): Likewise.
4947 * unroll.c (copy_loop_body): Don't copy NOTE_INSN_DELETED_LABEL.
4949 2000-05-12 Bruce Korb <bkorb@gnu.org>
4951 * fixinc/fixfixes.c(format_write): buglet & relaxed rules
4952 * fixinc/check.diff: updated
4953 * fixinc/inclhack.def: corrected & added some test_text-s
4954 * fixinc/genfixes: removed unneeded options to autogen invocation
4955 * fixinc/fixincl.tpl: Specified the output file
4956 * fixinc/fixfixes.c: visual appearance
4957 * fixinc/fixincl.x: regenerate
4959 2000-05-12 Zack Weinberg <zack@wolery.cumb.org>
4961 * fixinc/fixfixes.c (IO_use_fix, IO_defn_fix, CTRL_use_fix,
4962 CTRL_defn_fix): Delete.
4963 (fix_char_macro_defines, fix_char_macro_uses): Rename to
4964 char_macro_def_fix and char_macro_use_fix, respectively. Put
4965 them into the FIXUP_TABLE. Get the string to search for from
4968 (format_write): New function.
4969 (format_fix): Use it.
4971 (FIX_PROC_HEAD): Constify text parameter.
4972 (machine_name_fix): Constify all char *s.
4973 * fixtests.c (skip_quote): Remove double static.
4975 * inclhack.def (io_def_quotes, io_use_quotes, ctrl_def_quotes,
4976 ctrl_use_quotes): Update for new scheme.
4977 * fixincl.x: Regenerate.
4979 2000-05-12 Alexandre Oliva <aoliva@cygnus.com>
4981 * config/mn10300/mn10300.h (PREFERRED_DEBUGGING_TYPE): Redefine as
4983 (DWARF2_ASM_LINE_DEBUG_INFO): Define.
4984 (ASM_OUTPUT_DWARF2_ADDR_CONST): Define.
4986 2000-05-11 Robert Lipe <robertlipe@usa.net>
4988 * fixinc/inclhack.def (hpux8_bogus_inlines): Delete bypass for SCO.
4989 * fixincl.x: Regenerate.
4991 2000-05-11 Richard Henderson <rth@cygnus.com>
4993 * calls.c: Revert both 05-09 patches.
4995 2000-05-11 Alexandre Oliva <aoliva@cygnus.com>
4997 * config/mn10300/mn10300.c (print_operand): Print FP constants in
4999 * config/mn10300/mn10300.md (movsf, movdf): Use the `F' constraint
5002 * mklibgcc.in (EQ): Define it to an equal sign in the Makefile,
5003 and replace any occurrences of `=' in multilib dirs with `$(EQ)'.
5005 2000-05-11 Jason Merrill <jason@casey.cygnus.com>
5007 * fixinc/fixincl.c (run_compiles): Don't crash on null pz_machine.
5009 2000-05-11 Zack Weinberg <zack@wolery.cumb.org>
5011 * fixinc/fixfixes.c, fixinc/fixtests.c: Update commentary.
5013 Thu May 11 22:28:05 2000 Denis Chertykov <denisc@overta.ru>
5015 * config/avr/avr-protos.c (jump_over_one_insn_p): New declaration.
5016 * config/avr/avr.c (jump_over_one_insn_p): New function.
5017 * config/avr/avr.md: New peepholes added. Output test and
5018 conditional jump to "sbrc" or "sbrs" command.
5020 2000-05-11 Mark Elbrecht <snowball3@bigfoot.com>
5022 * cppmain.c (main): Use IS_DIR_SEPARATOR.
5024 2000-05-11 Jakub Jelinek <jakub@redhat.com>
5026 * except.c (find_exception_handler_labels_1): New function.
5027 (find_exception_handler_labels): Split into two functions, dive
5028 into CALL_PLACEHOLDERs when looking for exception handler labels.
5030 2000-05-11 Stan Cox <scox@cygnus.com>
5032 * regrename.c (replace_reg_in_block): Improve REG_DEAD handling.
5033 * timevar.def (TV_RENAME_REGISTERS): Move before TV_SCHED2.
5034 * toplev.c (rest_of_compilation): Call regrename_optimize before sched2.
5036 2000-05-11 Bruce Korb <bkorb@gnu.org>
5038 * fixinc/fixfixes.c (double_slash_fix): obsolete
5039 (else_endif_label_fix): obsolete
5040 (format_fix): new, unused as yet
5042 * fixinc/fixlib.h: added fix description struct for use by format_fix
5043 * fixinc/fixincl.c: removed the struct & test for SIGIOT befure using
5044 * fixinc/Makefile.in: compile fixfixes.c and fixtests.c as separate
5045 modules. Removed the vestiges of the script version.
5046 Added support for "make check".
5047 * fixinc/check.diff: base diff file (needs work!!)
5048 * fixinc/check.tpl: quiet the fixup output
5049 * fixinc/fixtests.c (main): obsolete
5050 * fixinc/fixincl.sh: don't bother copying fixincl to ..
5051 * fixinc/fixincl.tpl: provide for arguments to c_fix routines
5053 Thu May 11 11:57:02 MET DST 2000 Jan Hubicka <jh@suse.cz>
5055 * toplev.c (rest_of_compilation): Remove dead code after
5058 2000-05-11 Zack Weinberg <zack@wolery.cumb.org>
5060 * cpphash.c (collect_funlike_expansion): Make "# is not
5061 followed by a macro argument name" a pedwarn, not an error.
5062 Preserve the # in the output. Suppress the warning if lang_asm.
5064 Thu May 11 01:19:31 2000 Jeffrey A Law (law@cygnus.com)
5066 * configure.in (hppa*64*-*-hpux11*): New target for PA64 support.
5067 * configure: Rebuilt.
5069 2000-05-10 Laurynas Biveinis <lauras@softhome.net>
5071 * i386/xm-djgpp.h (XREF_FILE_NAME): Add mising brace.
5073 2000-05-10 Kazu Hirata <kazu@hxi.com>
5075 * combine.c (try_combine): Fix a typo.
5077 Wed May 10 21:31:44 2000 Jim Wilson <wilson@cygnus.com>
5079 * config/ia64/ia64.md (insv): Add comment.
5081 2000-05-10 Richard Henderson <rth@cygnus.com>
5083 * Makefile.in (libgcc.a, stmp-multilib): Depend on FPBIT and DPBIT.
5084 * mklibgcc.in: Rewrite to not use functions. Don't shortcut
5085 dependancies on FPBIT and DPBIT.
5087 2000-05-10 Nick Clifton <nickc@redhat.com>
5089 * flow.c (find_auto_inc): Do not bias REG_N_REFS by loop_depth
5090 when optimising for size.
5091 (mark_used_regs:) Ditto.
5092 (try_pre_increment_1): Ditto.
5094 2000-05-10 Zack Weinberg <zack@wolery.cumb.org>
5096 * cppexp.c (lex): Use %.*s to print non-NUL-terminated string.
5097 Make error message friendlier.
5099 * cpphash.h (struct hashnode): Use struct hack for name
5101 * cpphash.c (struct hashdummy): New.
5102 (eq_HASHNODE): Second argument is a hashdummy, not a HASHNODE.
5103 (make_HASHNODE): No need to set ->name pointer. Correct
5105 (cpp_lookup): Make 'dummy' a struct hashdummy. Tidy up a bit.
5107 2000-05-10 Richard Henderson <rth@cygnus.com>
5109 * flow.c (find_basic_blocks_1): Remove any spare bb_note
5112 2000-05-10 Bruce Korb <bkorb@gnu.org>
5114 * fixinc/gnu-regex.c: reg_syntax_t re_syntax_options must be static
5116 2000-05-10 Eric Schweitz <schweitz@nortelnetworks.com>
5118 * dwarfout.c (dwarfout_finish): Call retry_incomplete_types
5119 after we enter .debug.
5121 2000-05-10 Jason Merrill <jason@casey.cygnus.com>
5123 * dwarf2out.c (gen_subprogram_die): Fixup die_parent for the
5124 abstract instance of a nested inline function.
5126 * stor-layout.c (finish_record_layout): finalize_type_size
5127 before laying out the pending_statics.
5129 Wed 10 May 09:36:47 2000 Neil Booth <NeilB@earthling.net>
5131 * cpplex.c (spell_token): New function.
5132 (spell_string, spell_comment, spell_name): fold into
5135 (E, H): Remove macros.
5136 (save_comment): Save comment opening characters too.
5137 (_cpp_lex_file): Update to use spell_token. Tidy up comment
5139 * cpplib.h (I, S): Add macros.
5140 (E, H): Remove macros.
5141 (TTYPE_TABLE): Update entries for new speller.
5142 (SYNTAX_ASSERT): Remove.
5144 Wed 10 May 09:08:30 2000 Neil Booth <NeilB@earthling.net>
5146 * cpplex.c (_cpp_lex_line): Maintain PREV_WHITESPACE flag
5147 when removing escaped newlines. Reverse sense of test for
5150 2000-05-09 Richard Henderson <rth@cygnus.com>
5152 * flow.c (find_basic_blocks_1): Do not delete the first
5153 bb_note we run across.
5154 (create_basic_block): Use reorder_insns to move an existing
5155 bb_note to the correct place.
5157 2000-05-09 Richard Henderson <rth@cygnus.com>
5159 * calls.c (expand_call): Increment currently_expanding_call
5160 before calling optimize_tail_recursion.
5162 Tue May 9 18:54:16 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5164 * reload1.c (reload_combine): Fix errors in last change.
5166 2000-05-09 Zack Weinberg <zack@wolery.cumb.org>
5168 * gcc.c (used_arg): Skip over a semicolon at the end of the
5169 split-up loop; don't break out of it.
5171 * Makefile.in (WARN_CFLAGS): Add -Wwrite-strings.
5172 (tree.o): Depend on output.h.
5174 * c-decl.c (pending_invalid_xref_file,
5175 current_function_prototype_file): Constify.
5176 (pushdecl): Constify a local char *.
5177 (define_label): Constify filename parameter.
5178 * c-lex.c (init_parse): Constify parameter and return value.
5179 * c-typeck.c (c_expand_asm_operands): Constify filename parameter.
5180 * c-tree.h: Update prototypes.
5181 * c-parse.in: Constify filename member of %union, and if_stmt_file.
5182 * c-parse.y, c-parse.c, c-parse.h, objc/objc-parse.y,
5183 objc/objc-parse.c: Regenerate.
5185 * dwarfout.c (dwarfout_init): Constify main_input_filename parameter.
5186 * dwarfout.h: Update prototypes.
5187 * expr.c (expand_expr): Constify a local char *.
5188 * flags.h: Constify main_input_filename.
5189 * function.c (expand_function_end): Constify filename parameter.
5190 * genrecog.c (make_insn_sequence): Use a character array for
5192 (main): Remove unused variables.
5193 * input.h: Constify input_filename, main_input_filename, and
5194 file_stack.name. Update prototypes.
5195 * output.h: Declare first_global_object_name and
5196 weak_global_object_name here, as const char *.
5197 * stmt.c (expand_asm_operands): Constify filename parameter.
5198 * toplev.c (compile_file, push_srcloc, debug_start_source_file):
5199 Constify filename parameter.
5200 (input_filename, main_input_filename): Constify.
5201 * toplev.h: Update prototypes.
5202 * tree.c: Include output.h. Don't declare
5203 first_global_object_name or weak_global_object_name. Clean up string
5204 bashing in get_file_function_name_long.
5205 * tree.h (struct tree_decl): Constify filename member.
5206 (input_filename): Constify.
5208 * varasm.c (first_global_object_name, weak_global_object_name):
5210 (assemble_start_function, assemble_variable): Clean up string bashing.
5212 * gcc.c: Constify all spec-related strings initialized,
5213 transitively, from string constants. Constify all strings
5214 and string variables related to multilibs.
5215 (set_spec, read_specs): Cast argument to free to PTR.
5216 (used_arg): Do not modify multilib_matches. Use strncmp plus
5217 length comparison to compare multilib switches.
5218 * genmultilib: Constify everything declared in multilib.h.
5220 Tue May 9 22:28:03 2000 Denis Chertykov <denisc@overta.ru>
5222 * flow.c (flow_delete_insn): Use INSN_DELETED_P for marking insn
5225 Tue May 9 20:52:43 2000 Denis Chertykov <denisc@overta.ru>
5227 * config/avr/avr-protos.h (extra_constraint): change a type of
5228 second argument from char to int to avoid warnings.
5229 (asm_output_byte): Likewise.
5231 * config/avr/avr.c (MAX_LD_OFFSET) New macro.
5232 (initial_elimination_offset): Handle elimination from
5233 FRAME_POINTER_REGNUM to STACK_POINTER_REGNUM.
5234 (legitimate_address_p): Use MAX_LD_OFFSET.
5235 (legitimize_address): Likewise.
5236 (out_movqi_r_mr): Likewise.
5237 (out_movhi_r_mr): Likewise, use `fatal_insn' instead of `fatal'.
5238 (out_movsi_r_mr): Use MAX_LD_OFFSET.
5239 (out_movsi_mr_r): Likewise.
5240 (out_movqi_mr_r): Likewise.
5241 (out_movhi_mr_r): Likewise.
5242 (notice_update_cc): Correct CC for the ashrqi3 with the shift
5243 count as CONST_INT != 6.
5244 (ashlqi3_out): Coding style modifications. Run `fatal_insn' if
5245 shift count is a CONSTANT_P, but not a CONST_INT.
5246 (ashlhi3_out): Coding style modifications.
5247 (ashlsi3_out): Likewise.
5248 (ashrhi3_out): Likewise.
5249 (ashrsi3_out): Likewise.
5250 (lshrhi3_out): Likewise.
5251 (lshrsi3_out): Likewise.
5252 (ashrqi3_out): Generate shift for any known constant count without
5253 scratch register. Run `fatal_insn' if shift count is a CONSTANT_P,
5254 but not a CONST_INT.
5255 (lshrqi3_out): Coding style modifications. Run `fatal_insn' if
5256 shift count is a CONSTANT_P, but not a CONST_INT.
5257 (extra_constraint): change a type of
5258 second argument from char to int to avoid warnings.
5259 (asm_output_byte): Likewise.
5260 (asm_file_end): Output size generated commands count as a hex
5263 * config/avr/avr.h (RETURN_ADDR_RTX): New macro.
5265 * config/avr/avr.md (addhi3): Fragment commented by &&0 is
5267 (ashlqi3): Values of "length" attribute changed. Shift count
5268 uses constraints 'n' instead of 'i'.
5269 (ashrqi3): Likewise. Values of "cc" attribute changed. Generate
5270 shifts without clobber register.
5271 (lshrqi3): Shift count uses constraints 'n' instead of 'i'.
5272 (call_insn): Correct test for which_alternative == 1 (was 0).
5273 (call_value_insn): Likewise.
5275 * config/avr/t-avr: Remove definition of FLOAT while generates
5278 2000-05-09 Bruce Korb <bkorb@gnu.org>
5280 * fixinc/check.tpl: Template for checking fixes
5281 * fixinc/inclhack.def: Added 'test_text' for many fixes
5282 disable hpux8_bogus_inlines on SCO
5283 * fixinc/fixinc.sco: Oh, yes, we don't need this any more.
5285 Tue May 9 16:30:27 MET DST 2000 Jan Hubicka <jh@suse.cz>
5287 * calls.c (expand_call): Reorganize somewhat in order
5288 to avoid unnecesary recalculation inside loop and make
5289 tail call failure code cleaner.
5291 Tue May 9 06:30:20 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5293 * alias.c (nonlocal_reference_p): Minor reformatting.
5294 * reload.c (find_equiv_reg): Simplify logic for
5295 CALL_INSN_FUNCTION_USAGE since can't have SUBREG or pseudos and
5296 some some reformatting.
5297 * reload1.c (reload_combine): Don't assume everything in
5298 CALL_INSN_FUNCTION_USAGE is a REG and clean up code a bit.
5300 2000-05-08 Richard Henderson <rth@cygnus.com>
5302 * final.c (current_insn_predicate): New.
5303 (final_scan_insn): Set it.
5304 * output.h (current_insn_predicate): Declare.
5306 * ifcvt.c (cond_exec_process_insns): New argument prob_val.
5307 Attach it to call insns.
5308 (cond_exec_process_if_block): Track probability for true and
5310 (dead_or_predicable): Likewise.
5312 * predict.c (PROB_NEVER, PROB_VERY_UNLIKELY): New.
5313 (PROB_UNLIKELY, PROB_EVEN, PROB_LIKELY): New.
5314 (PROB_VERY_LIKELY, PROB_ALWAYS): New.
5315 (estimate_probability, expected_value_to_br_prob): Use them.
5317 * config/ia64/ia64-protos.h (ia64_expand_prediction): Declare.
5318 * config/ia64/ia64.c (ia64_print_operand_address): Handle 'j'.
5319 (ia64_expand_prediction): New.
5320 (emit_insn_group_barriers): Don't look at notes. Emit barriers
5321 as needed after calls.
5322 (ia64_epilogue_uses): Mark b0 used.
5323 * config/ia64/ia64.md (beq_true, beq_false): Remove.
5324 (bne_true, bne_false): Remove.
5325 (eq_return, eq_not_return, ne_return, ne_not_return): Remove.
5326 (br_true, br_false): New. Use predicate_operator and
5327 ia64_expand_prediction.
5328 (return_true, return_false): Likewise.
5329 (call_internal): Use ia64_expand_prediction. Don't emit stop bit.
5330 (call_internal1, call_value_internal): Likewise.
5331 (call_value_internal1, call_multiple_values_internal1): Likewise.
5333 * config/ia64/ia64.c (ia64_direct_return): Require frame size zero.
5335 * config/ia64/ia64.md (extendsfdf2): Split only after reload.
5337 2000-05-08 Richard Henderson <rth@cygnus.com>
5339 * rtlanal.c (may_trap_p): Consider old-style and volatile
5342 Mon May 8 17:16:48 2000 Jim Wilson <wilson@cygnus.com>
5344 * config/ia64/ia64.h (RETURN_ADDR_RTX): Use COUNT not count.
5346 2000-05-08 Richard Henderson <rth@cygnus.com>
5348 * config/ia64/ia64.h (predicate_operator): Declare.
5350 * config/ia64/ia64.md (extendsfdf2): Split the nop case out
5353 * gensupport.c (process_rtx): Copy and post-process each member
5354 of the define_insn rtvec individually.
5356 Mon 8 May 22:17:35 2000 Neil Booth <NeilB@earthling.net>
5358 * cpplex.c (spell_token): New function.
5359 (TOKEN_LEN): Add 1 for whitespace.
5360 (_cpp_lex_file): Update to use spell_token.
5361 * cpplib.h (E): Remove.
5362 (TTYPE_TABLE): Update CPP_VSPACE entry.
5364 2000-05-08 Richard Henderson <rth@cygnus.com>
5366 * flow.c (init_propagate_block_info): Watch out for conditional
5367 branch to next instruction, and thus one outgoing edge.
5369 * config/ia64/ia64.c (ia64_encode_section_info): Exit early
5370 for global register variables; don't special case __[CD]TOR_LIST__;
5371 mind ggc_p for string allocation.
5373 2000-05-08 Nick Clifton <nickc@cygnus.com>
5375 * config/i386/i386.h (ELIMINABLE_REGS): Fix comment.
5377 2000-05-08 Bruce Korb <bkorb@gnu.org>
5379 * fixinc/mkfixinc.sh: fixinc.sco is no longer used
5380 i?86-*-msdosdjgpp* no longer uses fixincludes
5381 * fixinc/genfixes: inclhack.sh and fixincl.sh are no longer generated
5382 * fixinc/inclhack.sh: deleted
5383 * fixinc/hackshell.tpl: deleted
5384 * fixinc/inclhack.tpl: deleted
5385 * fixinc/Makefile.in: Remove dependencies on above
5386 * fixinc/fixincl.sh: "DO NOT EDIT" text modified
5388 2000-05-08 Andreas Jaeger <aj@suse.de>
5390 * config/mips/linux.h: Remove undefines which disabled .ctor/.dtor
5393 2000-05-07 Zack Weinberg <zack@wolery.cumb.org>
5395 * Makefile.in (LOOSE_CFLAGS): Add /g modifiers to both sed
5398 Sun 7 May 08:43:53 2000 Neil Booth <NeilB@earthling.net>
5400 * cpplex.c: Move new lexer definitions and prototypes
5401 to top. Conditional include these and the code if
5402 NEW_LEXER is defined. Rename functions whose names
5403 clash if this code included.
5405 Sun May 7 00:54:57 EDT 2000 John Wehle (john@feith.com)
5407 * rtl.def (COND_EXEC): Clarify.
5409 * i386.md (extendsidi2): Clobber (reg:CC 17) in the
5410 same fashion as zero_extendsidi2.
5412 2000-05-06 Richard Henderson <rth@cygnus.com>
5414 * config/ia64/ia64.c (predicate_operator): New.
5415 (ia64_print_operand): Handle 'J'.
5416 (rtx_needs_barrier): Handle COND_EXEC.
5417 * config/ia64/ia64.h (BRANCH_COST): Define.
5418 (PREDICATE_CODES): Update.
5419 * config/ia64/ia64.md: Docuement used unspec values.
5420 (attr predicable): New.
5421 (movxf, movxf_internal): New.
5422 (extendsfdf2): Don't comment out nop.
5423 (floatdidf2): Remove.
5424 (truncxfsf2, truncxfdf2, floatdixf2): New.
5425 (abssi2, absdi2): Put the neg in the "true" slot.
5426 (conditional branch instructions): Mark not predicable.
5427 (cmov*_internal): Use predicate_operator. Split to cond_exec.
5428 (abs*_internal): Likewise.
5429 (alloc, set_bsp): Mark not predicable.
5430 (barrier, insn_group_barrier, flush_cache): Likewise.
5431 (define_cond_exec): New.
5433 2000-05-06 Richard Henderson <rth@cygnus.com>
5435 * c-decl.c: Include "tm_p.h".
5437 * config/ia64/ia64-protos.h: Rearrange decls to reduce ifdef madness.
5438 (fetchadd_operand, ia64_expand_fetch_and_op): Declare.
5439 (ia64_expand_op_and_fetch): Declare.
5440 * config/ia64/ia64.c: Include "toplev.h". Kill trailing whitespace.
5441 (setjmp_operand): Constify variables for XSTR.
5442 (ia64_encode_section_info): Likewise.
5443 (ia64_print_operand): Use %d for exact_log2; cast 32-bit printed
5445 (ia64_asm_output_external): Constify name.
5446 (process_set): Use HOST_WIDE_INT_PRINT_DEC for frame size.
5447 (process_for_unwind_directive): Provide switch default.
5448 (ia64_expand_compare_and_swap): Remove unused variables.
5449 (ia64_expand_builtin): Likewise.
5450 * config/ia64/ia64.h (ASM_OUTPUT_BYTE): Mask and cast value to int
5453 * config/ia64/ia64.c (sdata_symbolic_operand): Mark unused args.
5454 (symbolic_operand, function_operand, setjmp_operand): Likewise.
5455 (shift_count_operand, shift_32bit_count_operand): Likewise.
5456 (shladd_operand, fetchadd_operand, ia64_function_prologue): Likewise.
5457 (ia64_function_epilogue, ia64_setup_incoming_varargs): Likewise.
5458 (ia64_function_arg_partial_nregs, ia64_function_value): Likewise.
5459 (ia64_print_operand_address, ia64_secondary_reload_class): Likewise.
5460 (ia64_expand_builtin): Likewise.
5461 (call_multiple_values_operation): Make dest_regno unsigned.
5463 2000-05-06 Richard Henderson <rth@cygnus.com>
5465 * rtl.def (DEFINE_COND_EXEC): New.
5466 * md.texi: Document it.
5468 * gensupport.c (input_file): Remove.
5469 (struct queue_elem): Add lineno.
5470 (rtx_ready_queue): Remove.
5472 (predicable_default): New.
5473 (predicable_true, predicable_false): New.
5474 (define_attr_queue, define_attr_tail): New.
5475 (define_insn_queue, define_insn_tail): New.
5476 (define_cond_exec_queue, define_cond_exec_tail): New.
5477 (other_queue, other_tail): New.
5478 (queue_pattern): New.
5479 (process_rtx): Add patterns to the appropriate queues.
5480 (is_predicable, identify_predicable_attribute): New.
5481 (n_alternatives, collect_insn_data): New.
5482 (alter_predicate_for_insn, alter_test_for_insn): New.
5483 (shift_output_template, alter_output_for_insn): New.
5484 (process_one_cond_exec, process_define_cond_exec): New.
5485 (init_md_reader): Read the entire file. Process define_cond_exec.
5486 (read_md_rtx): Return elements from the queues.
5488 2000-05-06 Richard Henderson <rth@cygnus.com>
5490 * flow.c (mark_set_1): Don't update conditional life info
5491 if the register is not_dead.
5493 2000-05-06 Zack Weinberg <zack@wolery.cumb.org>
5495 * Makefile.in (STAGESTUFF): Add genrtl.c and genrtl.h.
5496 (mostlyclean): Also delete fixincl, fixinc.sh, and
5497 specs.ready, and make clean in the fixinc subdir.
5499 2000-05-06 Richard Henderson <rth@cygnus.com>
5501 * Makefile.in (gensupport.o): Compile for the host.
5502 (host-prefix gensuuprt.o): Remove.
5503 (genflags.o): Depend on gensupport.h and OBSTACK_H.
5504 (genattrtab.o): Likewise.
5505 (gencodes.o): Depend on gensupport.h.
5506 (genemit.o, genopinit.o, genrecog.o, genextract.o): Likewise.
5507 (genpeep.o, genattr.o, genoutput.o): Likewise.
5509 * gensupport.c (obstack, rtl_obstack): New.
5510 (init_md_reader): Initialize rtl_obstack.
5511 * gensupport.h (rtl_obstack): Declare.
5512 (message_with_line): Declare.
5514 * genattr.c: Remove all traces of obstack manipulation.
5515 * gencodes.c, genconfig.c, genemit.c, genextract.c: Likewise.
5516 * genopinit.c, genoutput.c, genpeep.c, genrecog.c: Likewise.
5518 * genattrtab.c (obstack, rtl_obstack): Remove.
5519 (main): Don't init rtl_obstack.
5520 * genflags.c: Likewise.
5522 * genrecog.c (message_with_line): Move ...
5523 * gensupport.c: ... here.
5525 2000-05-06 Richard Henderson <rth@cygnus.com>
5527 * c-typeck.c (build_c_cast): Remove dead code.
5529 2000-05-06 Richard Henderson <rth@cygnus.com>
5531 * flow.c (split_edge): Don't allocate global_live_at_start for
5532 the new block unless the old blocks had them as well.
5534 * flow.c (mark_set_1): Respect not_dead when updating reg_live.
5536 * ifcvt.c (noce_process_if_block): Don't use an insn_b from
5537 test_bb if a or b uses x.
5539 2000-05-06 Zack Weinberg <zack@wolery.cumb.org>
5541 * cpphash.h: Remove conditional #define of __extension__.
5542 * rtl.h: Add __extension__ to RTL_CHECK1, RTL_CHECK2,
5543 RTL_CHECKC1, RTL_CHECKC2, and RTVEC_ELT macros
5544 (ENABLE_RTL_CHECKING only).
5545 * tree.h: Add __extension__ to TREE_CHECK, TREE_CLASS_CHECK,
5546 CST_OR_CONSTRUCTOR_CHECK, and EXPR_CHECK macros
5547 (ENABLE_TREE_CHECKING only).
5548 * varray.h: Add __extension__ to VARRAY_CHECK macro
5549 (ENABLE_CHECKING only).
5551 2000-05-06 Richard Earnshaw (reanrsha@arm.com)
5553 Use new tail-calling mechanism on ARM.
5554 * arm.md (sibcall, sibcall_value): New expands.
5555 (sibcall_insn, sibcall_value_insn, sibcall_epilogue): New insns.
5556 (tailcalling peepholes): Delete.
5557 (push_multi): Simplify.
5558 * arm.c (lr_save_eliminated): Delete definition.
5559 (pattern_really_clobbers_lr, function_really_clobbers_lr): Delete.
5560 (output_return_instruction): Remove checks on lr_save_eliminated.
5561 (output_arm_prologue): Remove old tail-calling code.
5562 (arm_output_epilogue): New parameter, really_return. All callers
5563 changed. Handle tail-calling epilogues.
5564 * arm.h (lr_save_eliminated): Delete declaration.
5565 (frame_pointer_needed): Delete declaration.
5566 * arm-protos.h (arm_output_epilogue): Adjust prototype.
5568 * arm.md (is_thumb): Examine symbol thumb_code, not expression
5570 * arm.c (thumb_code): Define it.
5571 (arm_override_options): Set it.
5572 * arm.h (thumb_code): Declare it.
5574 2000-05-06 Richard Earnshaw (reanrsha@arm.com)
5576 * arm-protos.h (arm_dllexport_name_p, arm_dllimport_name_p): Constify.
5578 2000-05-06 Richard Earnshaw (reanrsha@arm.com)
5580 * arm.c (arm_gen_load_multiple, arm_gen_store_mulitple): Don't add
5581 bogus clobber to insns.
5582 (load_multiple_operation, store_mulitple_operation): Don't check
5584 * arm.md (ldmsi_postinc, stmsi_postinc): Adjust accordingly.
5586 * arm.md (and_scc, ior_scc): Add missing mode.
5588 * arm.md (call_value_symbol): Remove predicate from op2.
5590 * arm.h (SPECIAL_MODE_PREDICATES): Define.
5592 Sat May 6 06:25:56 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5594 * expr.c (get_subtarget): New function.
5595 (force_operand, expand_expr, do_store_flag): Use it.
5597 * toplev.c (compile_file): Don't take strlen of NAME if null.
5599 2000-05-06 David Edelsohn <edelsohn@gnu.org>
5601 * xcoffout.c (xcoff_current_include_file,
5602 xcoff_current_function_file, xcoff_lastfile): Constify char *.
5603 (xcoffout_source_file, xcoffout_source_line): Make filename 'const
5605 (xcoffout_declare_function): Make name 'const char *'.
5606 (xcoffout_end_epilogue): Make fname 'const char *'
5607 * xcoffout.h (xcoff_current_include_file, xcoff_lastfile,
5608 xcoffout_declare_function, xcoffout_source_line): Match above.
5610 * aix43.h (SUBTARGET_OVERRIDE_OPTIONS): -mpowerpc64 without
5612 * rs6000.c (print_operand): Fix lossage typo.
5613 (output_cbranch): Remove "cr" decoration for now.
5614 * rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Make alias 'const char *'.
5616 Sat May 6 06:55:32 2000 Denis Chertykov <denisc@overta.ru>
5618 * config/avr/avr.c (out_shift_with_cnt): Bugfix for shift by
5621 2000-05-05 Bruce Korb <bkorb@gnu.org>
5623 * fixinc/genfixes: Improve the matching for make target names
5625 2000-05-05 Catherine Moore <clm@cygnus.com>
5627 * c-common.c (decl_attributes): For TYPE_DECLs attach the
5628 attribute to the decl.
5629 * c-decl.c (pushdecl): Propagate the USED attribute to the
5632 2000-05-05 Richard Henderson <rth@cygnus.com>
5634 * rtlanal.c (reg_overlap_mentioned_p): Treat parallels in the
5635 same way emit_group_load does.
5637 2000-05-05 Mark Elbrecht <snowball3@bigfoot.com>
5639 * gcc.c (set_input) [HAVE_DOS_STYLE_FILE_SYSTEM]: Skip drive name.
5641 * toplev.c (output_file_directive): Use IS_DIR_SEPARATOR.
5644 2000-05-05 Rodney Brown <RodneyBrown@mynd.com>
5646 * pa.h (FUNCTION_ARG_ADVANCE): Warning removal.
5648 Fri May 5 10:29:21 2000 Marc Espie <espie@cvs.openbsd.org>
5650 * config/openbsd.h (LINK_SPEC): pass correct flags to ld
5651 to support -shared, on platforms with dynamic libraries.
5653 Fri May 5 10:27:06 2000 Philippe De Muyter <phdm@macqel.be>
5655 * system.h (S_ISBLK): Provide fallback definition.
5657 2000-05-05 Geoff Berry <geoffb@bops.com>
5659 * extend.texi (Extended Asm): Document inability to give asm
5660 statements access to condition codes.
5662 2000-05-05 Marek Michalkiewicz <marekm@linux.org.pl>
5664 * varasm.c (asm_emit_uninitialised): Use 0, not NULL
5665 as arg 2 of UNIQUE_SECTION.
5667 Fri May 5 10:11:41 2000 Jeffrey A Law (law@cygnus.com)
5669 * predict.c: Remove May 4 change.
5670 * bb-reorder.c (make_reorder_chain): Do not perform block movement
5671 if we have predicted the branch at 50-50 probability.
5673 2000-05-05 Richard Henderson <rth@cygnus.com>
5675 * flow.c (init_propagate_block_info): Fix merge error
5676 in HAVE_conditional_execution code.
5678 Fri May 5 07:43:50 2000 Denis Chertykov <denisc@overta.ru>
5680 * config/avr/avr.c (out_shift_with_cnt): Genetare a more optimal
5681 shift cycle for unknown shift count. Also generates dec + brpl.
5682 (ashlqi3_out): Don't generate dec + brpl which now generates by
5683 `out_shift_with_cnt'.
5684 (ashlhi3_out): Likewise.
5685 (ashlsi3_out): Likewise.
5686 (ashrqi3_out): Likewise.
5687 (ashrhi3_out): Likewise.
5688 (ashrsi3_out): Likewise.
5689 (lshrqi3_out): Likewise.
5690 (lshrhi3_out): Likewise.
5691 (lshrsi3_out): Likewise.
5693 2000-05-04 Mark Elbrecht <snowball3@bigfoot.com>
5695 * gcc.c (free_split_directories): Correct typo in explanation
5696 of make_relative_prefix.
5698 2000-05-04 Geoff Keating <geoffk@cygnus.com>
5700 * config/rs6000/rs6000.h (PREDICATE_CODES): Add floating-point
5701 comparison codes to branch_comparison_operator.
5703 2000-05-04 Richard Henderson <rth@cygnus.com>
5705 * ifcvt.c (noce_process_if_block): Always reset X in the A == B case.
5707 2000-05-04 Richard Henderson <rth@cygnus.com>
5709 * Makefile.in (FPBIT_FUNCS): Remove _df_to_usi.
5710 (DPBIT_FUNCS): Remove _sf_to_usi.
5711 (stmp-multilib): Pass LIB1ASMSRC to libgcc.mk.
5713 * ifcvt.c (noce_process_if_block): Fail if A or B modified
5714 between condition and jump.
5716 * libgcc2.c (near eh_context_specific): Comment #endif string.
5717 * longlong.h: Don't use strings with embedded newlines.
5719 2000-05-04 Geoff Keating <geoffk@cygnus.com>
5721 * config/rs6000/rs6000-protos.h: Add output_cbranch.
5722 * config/rs6000/rs6000.c (ccr_bit_negated_p): Delete.
5723 (print_operand): Delete %t and %T codes.
5724 (output_cbranch): New function. Support branch prediction.
5725 * config/rs6000/rs6000.md: Use output_cbranch for
5726 conditional branches and returns.
5728 2000-05-04 Jason Merrill <jason@casey.cygnus.com>
5730 * simplify-rtx.c (simplify_ternary_operation): Cast to unsigned.
5731 * stor-layout.c (place_field): Likewise.
5732 * integrate.h (struct inline_remap): Make regno_pointer_align unsigned.
5733 * expr.c (store_expr): Make align unsigned.
5734 * explow.c (plus_constant_wide): Make low words unsigned.
5735 * expmed.c (choose_multiplier): Likewise.
5736 * fold-const.c (fold): Likewise.
5737 * tree.h (build_int_2): Likewise.
5738 * tree.c (build_int_2_wide, tree_int_cst_msb): Likewise.
5739 * emit-rtl.c (gen_reg_rtx): Add cast to unsigned char*.
5740 (init_emit): Change cast to unsigned char*.
5741 * varasm.c (compare_constant_1): Add cast to char*.
5742 * gcse.c (delete_null_pointer_checks): Change cast to unsigned int*.
5743 * reload1.c (reload): Likewise.
5745 * rtl.h (MEM_SET_IN_STRUCT_P): Use do { } while (0).
5747 Thu May 4 14:37:23 2000 Jeffrey A Law (law@cygnus.com)
5749 * predict.c (estimate_probability): If no prediction was found, then
5750 predict the successor that is the next physical block (if such a
5753 2000-05-04 Richard Henderson <rth@cygnus.com>
5755 * config/alpha/t-alpha (LIB2FUNCS_EXTRA): Use qrrnd.asm in place.
5757 2000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5759 * system.h: Don't wrap <sys/types.h> with HAVE_SYS_TYPES_H.
5761 2000-05-04 Mumit Khan <khan@xraylith.wisc.edu>
5763 * i386/cygwin.h (CPP_PREDEFINES): Don't define __STDC__. Move
5764 attribute macros from here ...
5765 (CPP_SPEC): to here.
5766 * i386/mingw32.h (CPP_PREDEFINES): Likewise.
5767 (CPP_SPEC): Likewise.
5768 * i386/crtdll.h (CPP_PREDEFINES): Delete attribute macros.
5770 * Makefile.in ($(HOST_PREFIX_1)gensupport.o): Add build rule.
5771 (libgcc.a): Pass LIB1ASMSRC to libgcc.mk.
5773 2000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5775 * bb-reorder.c (get_next_bb_note, get_prev_bb_note): Prototype.
5777 * diagnostic (vbuild_message_string, build_message_string,
5778 build_location_prefix, output_get_prefix, init_output_buffer,
5779 output_notice, vline_wrapper_message_with_location,
5780 v_message_with_decl, default_print_error_function): De-constify.
5781 (set_real_maximum_length): Prototype.
5783 * diagnostic.h (struct output_buffer, init_output_buffer,
5784 output_get_prefix, output_set_prefix): De-constify.
5786 * function.c (init_function_start): Constify.
5788 * gensupport.c (remove_constraints, process_rtx): Prototype.
5790 * gthr-posix.h: Indent uses of #pragma.
5792 * objc/objc-act.c (ggc_mark_imp_list, ggc_mark_hash_table):
5795 * predict.c (find_expected_value): Delete prototype.
5796 (expected_value_to_br_prob): Initialize variable `ev_reg'.
5798 * sbitmap.h (debug_sbitmap): Prototype.
5800 * ssa.c (compute_coalesced_reg_partition): Prototype.
5802 * stor-layout.c (debug_rli): Prototype.
5804 * tree.h (round_down): Prototype.
5805 (init_function_start): Constify.
5807 2000-05-04 Zack Weinberg <zack@wolery.cumb.org>
5809 * cpphash.h: #define __extension__ away if GCC_VERSION < 2095
5810 (overly conservative). Change extern inline wrappers to
5811 static inline, define them always, use PARAMS properly.
5812 * cpplex.c (_cpp_get_directive_token): Don't issue pedantic
5813 whitespace warnings for \f and \v at the beginning of a line.
5815 Thu May 4 10:03:50 2000 Jeffrey A Law (law@cygnus.com)
5817 * haifa-sched.c (schedule_insns): Free the flow edge list when it
5820 2000-05-04 Bruce Korb <bkorb@gnu.org>
5822 * fixincl/inclhack.def: added broken_cabs -
5823 Remove `extern double cabs' declarations from math.h
5824 * fixincl/inclhack.sh: regen
5825 * fixincl/fixincl.x: regen
5826 * fixincl/fixincl.c: Remove BOGOSITY code
5827 * fixincl/mkfixinc.sh: Remove code for installing "shell" version
5829 Thu May 4 09:45:12 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5831 * rtl.h (MEM_COPY_ATTRIBUTES): Also copy RTX_UNCHANGING_P and
5833 * alias.c (canon_rtx): Don't copy RTX_UNCHANGING_P or MEM_ALIAS_SET
5834 when calling MEM_COPY_ATTRIBUTES.
5835 * emit-rtl.c (operand_subword, change_address): Likewise.
5836 * explow.c (stabilize): Likewise.
5837 * expr.c (protect_from_queue, emit_move_insn_1): Likewise.
5838 * integrate.c (copy_rtx_and_substitute): Likewise.
5839 * combine.c (combine_simplify_rtx): Don't copy RTX_UNCHANGING_P
5840 when calling MEM_COPY_ATTRIBUTES.
5841 (make_extraction, simplify_shift_const, gen_lowpart_for_combine):
5843 * cse.c (gen_lowpart_if_possible): Likewise.
5844 * function.c (fixup_var_refs_1, purge_addressof_1): Likewise.
5845 * optabs.c (gen_move_insn): Likewise.
5846 * recog.c (validate_replace_rtx_1): Likewise.
5847 * simplify-rtx.c (add_mem_for_addr): Likewise.
5848 * stmt.c (expand_anon_union_decl): Likewise.
5849 * config/arm/arm.md: Likewise.
5850 * config/h8300/h7300.c (fix_bit_operand): Likewise.
5851 * config/m88k/m88k.c (legitimize_address, block_move_loop): Likewise.
5852 (block_move_no_loop, block_move_sequence): Likewise.
5853 * config/rs6000/rs6000.c (expand_block_move_mem): Likewise.
5854 * config/alpha/alpha.c (get_aligned_mem): Likewise.
5855 Clear MEM_ALIAS_SET.
5856 * final.c (alter_subreg): Don't copy MEM_ALIAS_SET when calling
5857 MEM_COPY_ATTRIBUTES.
5859 2000-05-03 Robert Lipe <robertlipe@usa.net>
5861 * configure.in (i[34567]86-*-isc*) [tmake_file]: Add t-i386bare
5862 to suppress libgcc1.
5863 (i[34567]86-*-sco3.2v5*) Likewise.
5864 (i[34567]86-*-sco3.2v4*) Likewise.
5865 (i[34567]86-*-sco) Likewise.
5866 (i[34567]86-*-solaris2) Likewise.
5867 (i[34567]86-*-sysv5*) Likewise.
5868 (i[34567]86-*-sysv4*) Likewise.
5869 (i[34567]86-*-udk*) Likewise.
5870 (i[34567]86-*-sysv*) Likewise.
5872 2000-05-03 Zack Weinberg <zack@wolery.cumb.org>
5874 * cpphash.h (U): New define, to correct type of string constants.
5875 (ustrcmp, ustrncmp, ustrlen, uxstrdup, ustrchr): New wrapper
5876 routines, to do casts when passing unsigned strings to libc.
5877 * cppexp.c, cppfiles.c, cpphash.c, cppinit.c, cpplib.c: Use them.
5879 * cppfiles.c (_cpp_execute_include): Make filename an U_CHAR *.
5880 * cpphash.c (_cpp_quote_string): Make string an U_CHAR *.
5881 * cppinit.c (dump_special_to_buffer): Make macro name an U_CHAR *.
5882 * cpplex.c (parse_ifdef, parse_include, validate_else): Make
5883 second argument an U_CHAR *.
5885 * cppinit.c (builtin_array): Make name and value U_CHAR *, add
5886 length field, clean up initializer.
5887 (ISTABLE): Add __extension__ to designated-
5888 initializers version.
5889 * cpplex.c (CHARTAB): Likewise.
5891 * mbchar.c: Add dummy external declaration to the !MULTIBYTE_CHARS
5892 case so the file won't be empty.
5894 Wed May 3 21:01:46 2000 Jason Eckhardt <jle@cygnus.com>
5896 * bb-reorder.c (struct reorder_block_def): Member succ removed.
5897 (REORDER_BLOCK_SUCC): Removed.
5898 (enum reorder_skip_type): Removed.
5899 (skip_insns_between_block): Renamed to skip_insns_after_block.
5900 Removed second argument. Removed dead code and cleaned up.
5901 (make_reorder_chain): Removed use of REORDER_BLOCK_SUCC.
5902 (reorder_basic_blocks): Remove use of REORDER_SKIP_AFTER. Removed
5903 second parameter to skip_insns_after_block.
5905 Wed May 3 13:29:54 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5907 * tree.c (staticp, case LABEL_DECL): New case.
5909 2000-05-03 Richard Henderson <rth@cygnus.com>
5911 * Makefile.in (start.encap): Do not depend on LIBGCC1.
5913 * mklibgcc1.in: Fix typo last change.
5915 2000-05-03 Jason Merrill <jason@casey.cygnus.com>
5917 * Makefile.in (WARN_CFLAGS): Add -pedantic -Wno-long-long.
5918 (LOOSE_CFLAGS): New: CFLAGS without -pedantic and -Wtraditional.
5919 (GCC_CFLAGS): Use it.
5920 (LANG_FLAGS_TO_PASS): New: SUBDIR_FLAGS_TO_PASS with LOOSE_CFLAGS.
5921 * cp/Make-lang.in, java/Make-lang.in, f/Make-lang.in, ch/Make-lang.in,
5922 objc/Make-lang.in: Use it.
5924 2000-05-03 Jason R Thorpe <thorpej@zembu.com>
5926 * config/i386/i386.md (lshrqi2_cmpno): Use q not r in constraint.
5928 2000-05-03 Richard Henderson <rth@cygnus.com>
5930 * mklibgcc.in: Restrict OLDCC=GCC test to native. Equate
5931 LIBGCC1 empty with libgcc1.null.
5933 Wed May 3 12:55:46 2000 Jim Wilson <wilson@cygnus.com>
5935 * fold-const.c (extract_muldiv, case MAX_EXPR): Don't allow signedness
5938 2000-05-03 Greg McGary <gkm@gnu.org>
5940 * tree.h (tree_common): Add bounded_flag member. Remove
5941 inaccurate comment about number of remaining bits.
5942 (BOUNDED_INDIRECT_TYPE_P, BOUNDED_POINTER_TYPE_P,
5943 BOUNDED_REFERENCE_TYPE_P, MAYBE_BOUNDED_INDIRECT_TYPE_P,
5944 MAYBE_BOUNDED_POINTER_TYPE_P, MAYBE_BOUNDED_REFERENCE_TYPE_P,
5945 TREE_BOUNDED, TYPE_MAIN_VARIANTS_PHYSICALLY_EQUAL_P,
5946 TYPE_MAIN_PHYSICAL_VARIANT, TYPE_BOUNDED): New macros.
5947 (TYPE_QUAL_BOUNDED): New constant.
5948 (TYPE_QUALS): Handle bounded qualifier.
5949 (TREE_EXPR_QUALS, TREE_FUNC_QUALS): New macros.
5950 (TYPE_BOUNDED_VALUE, TYPE_BOUNDED_BASE, TYPE_BOUNDED_EXTENT,
5951 TYPE_BOUNDED_SUBTYPE, TYPE_UNBOUNDED_VARIANT, TYPE_POINTER_DEPTH,
5952 TYPE_AMBIENT_BOUNDEDNESS): New macros.
5953 (MAX_POINTER_DEPTH, VA_LIST_POINTER_DEPTH): New constants.
5954 (tree_type): Add pointer_depth member. Remove
5955 inaccurate comment about number of remaining bits.
5956 (DECL_POINTER_DEPTH): Add macro.
5957 (tree_decl): Add pointer_depth member.
5959 Wed May 3 22:52:53 2000 Denis Chertykov <denisc@overta.ru>
5961 * config/avr/avr-protos.h (test_hard_reg_class): Declared.
5962 * config/avr/avr.c (ashrhi3_out): optimized shift by 15.
5963 (lshrhi3_out): Likewise.
5964 (ashrsi3_out): bugfix in shift by 8.
5965 (test_hard_reg_class): New function.
5966 * config/avr/avr.md: Bugfix inside conditions in peepholes.
5967 (ashlhi3): removed define_expand of this pattern.
5968 (*ashlhi3_insn): renamed to ashlhi3.
5969 (ashlsi3): removed define_expand of this pattern.
5970 (*ashlsi3_insn): renamed to ashlsi3.
5971 (ashrqi3): removed define_expand of this pattern.
5972 (*ashrqi3_insn): renamed to ashrqi3.
5973 (ashrhi3): removed define_expand of this pattern.
5974 (*ashrhi3_insn): renamed to ashrhi3.
5975 (ashrsi3): removed define_expand of this pattern.
5976 (*ashrsi3_insn): renamed to ashrsi3.
5977 (lshrhi3): removed define_expand of this pattern.
5978 (*lshrhi3_insn): renamed to lshrhi3.
5979 (lshrsi3): removed define_expand of this pattern.
5980 (*lshrsi3_insn): renamed to lshrsi3.
5982 2000-05-03 Rodney Brown <RodneyBrown@pmsc.com>
5984 * config/mcore/mcore.c: Replacing inclusion of "stdio,h" with
5985 inclusion of "system.h".
5987 Wed May 3 11:43:53 2000 Jim Wilson <wilson@cygnus.com>
5989 * config/ia64/ia64.c (ia64_encode_section_info): Add check for
5992 2000-05-03 David Mosberger <davidm@hpl.hp.com>
5994 * config/ia64/ia64.c (ia64_override_options): Force -mconstant-gp
5995 if -mauto-pic is on.
5996 (ia64_epilogue_uses): Mark "gp" (r1) as used by the epilogue if
5997 -mconstant-gp is in effect and function-descriptors are being used
5998 to make indirect calls.
5999 * config/ia64/ia64.h (MASK_CONST_GP): New macro.
6000 (MASK_AUTO_PIC): Ditto.
6001 (TARGET_CONST_GP): Ditto.
6002 (TARGET_AUTO_PIC): Ditto.
6003 (TARGET_SWITCHES): Add -mconstant-gp and -mauto-pic options.
6004 (ASM_OUTPUT_DOUBLE_INT): Don't generate @fptr() if -mauto-pic or
6005 -mno-pic is in effect.
6006 (ASM_OUTPUT_XDATA_DOUBLE_INT): Ditto.
6007 * config/ia64/ia64.md (movdi): Use gen_load_gprel64() if
6008 -mauto-pic is in effect.
6009 (gprel64_offset): New pattern.
6010 (load_gprel64): Ditto.
6011 (call): Handle -mauto-pic like -mno-pic (don't use fptr). If
6012 -mconstant-gp is in effect, no need to preserve gp around direct
6014 (call_value): Ditto.
6015 * config/ia64/linux.h (PROFILE_BEFORE_PROLOGUE): Define.
6016 (FUNCTION_PROFILER): Define.
6017 * config/ia64/sysv4.h (ASM_OUTPUT_CONSTRUCTOR): Don't generate
6018 @fptr() directive when -mno-pic or -mauto-pic is in effect.
6019 (ASM_OUTPUT_DESTRUCTOR): Ditto.
6021 2000-05-03 Richard Henderson <rth@cygnus.com>
6023 * Makefile.in (STAGESTUFF): Add libgcc libgcc.mk.
6024 (libgcc1.null, libgcc1.cross, libgcc1.a): Remove targets.
6025 (libgcc1-asm.a, libgcc1.S, libgcc2.a): Remove targets.
6026 (mklibgcc, libgcc.mk): New targets.
6027 (libgcc.a): Use libgcc.mk.
6028 (stmp-multilib): Likewise.
6029 (stmp-multilib-sub): Remove.
6030 (mostlyclean): Don't delete libgcc2 temp files.
6031 * configure.in (AC_PROG_CC_C_O): Add.
6032 (NO_MINUS_C_MINUS_O): Substitute it.
6033 (all_outputs): Add mklibgcc.
6034 * mklibgcc.in: New file.
6036 2000-05-03 Jason Merrill <jason@casey.cygnus.com>
6038 * cppexp.c (op_t): Make an int.
6040 * rtlanal.c (dead_or_set_regno_p): Remove unused variable.
6042 * varasm.c (initializer_constant_valid_p): Fix parenthesis.
6044 * gensupport.c (process_rtx): Fix macros used.
6046 2000-05-03 Richard Henderson <rth@cygnus.com>
6048 * flow.c (propagate_one_insn): Also don't PROP_REG_INFO for
6049 call-clobbered registers of a call.
6051 Wed May 3 12:40:53 2000 Clinton Popetz <cpopetz@cygnus.com>
6053 * gensupport.c: New file.
6054 * gensupport.h: New file.
6055 * Makefile.in (HOST_RTL): Depend on gensupport.
6056 (gensupport.o) New rule.
6057 * genattr.c: Use gensupport for reading .md files.
6058 * genattrtab.c: Ditto.
6059 * gencodes.c: Ditto.
6060 * genconfig.c: Ditto.
6062 * genextract.c: Ditto.
6063 * genflags.c: Ditto.
6064 * genopinit.c: Ditto.
6065 * genoutput.c: Ditto.
6067 * genrecog.c: Ditto.
6068 * rtl.def (define_insn_and_split): New DEF_RTL_EXPR.
6069 * md.texi (Insn Splitting): Document define_insn_and_split.
6071 Tue May 2 00:20:30 2000 Jason Eckhardt <jle@cygnus.com>
6073 * flow.c (verify_flow_info): Added two more sanity checks. The
6074 first checks that the blocks are numbered consecutively. The second
6075 checks that n_basic_blocks is actually equal to the number of
6076 basic blocks in the insn chain.
6078 2000-05-03 Zack Weinberg <zack@wolery.cumb.org>
6080 * cpplib.h: Add accessor macros for token lists.
6081 * cpplib.c, cpphash.c, cpplex.c: Use them.
6083 Wed May 3 09:29:17 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6085 * expr.c (expand_expr, case COMPONENT_REF): Don't check for checking
6086 memory usage if not in a function.
6087 * varasm.c (initializer_constant_valid_p, case ADDR_EXPR): Only
6088 return address if static.
6090 Wed May 3 13:14:49 MET DST 2000 Jan Hubicka <jh@suse.cz>
6092 * ifcvt.c (noce_try_cmove_arith): Use may_trap_p to thest
6093 whether address may trap.
6095 Tue May 2 23:38:37 2000 Jason Eckhardt <jle@cygnus.com>
6097 * bb-reorder (chain_reorder_blocks): Changed code to test for
6098 EDGE_FALLTHRU rather than making erroneous assumption that the
6099 first outgoing edge is the fall-through edge.
6101 Tue May 2 18:20:31 2000 Donald Lindsay <dlindsay@hound.cygnus.com>
6103 * config/mips/mips.c (mips_build_va_list,mips_va_start,mips_va_arg): new
6104 ABI for varargs, across all MIPS. This is incompatible because the
6105 va_list (__builtin_va_list) structure is different, so a compilation
6106 unit passing a va_list and a compilation unit being passed one, should
6107 both be compiled with the same ABI. (The old structure had two
6108 pointers, now it has three.)
6110 Tue May 2 19:18:43 2000 Jason Eckhardt <jle@cygnus.com>
6112 * bb-reorder.c (struct reorder_block_def): Remove members end,
6113 block_begin, and block_end.
6114 (REORDER_BLOCK_OLD_END): Delete.
6115 (REORDER_BLOCK_BEGIN): Delete.
6116 (REORDER_BLOCK_END): Delete.
6117 (chain_reorder_blocks): Remove dead code.
6119 Tue May 2 17:06:53 2000 Jason Eckhardt <jle@cygnus.com>
6121 * bb-reorder.c (remove_scope_notes): Check for both types of scope
6122 notes as the end of a basic block before deleting.
6124 2000-05-02 Mumit Khan <khan@xraylith.wisc.edu>
6126 * final.c (final_start_function): Fix spelling of "necessary".
6128 2000-05-02 Jason Merrill <jason@casey.cygnus.com>
6130 * toplev.c (debug_ignore_block): Return int.
6131 * dwarf2out.c (dwarf2out_ignore_block): Likewise.
6132 * toplev.h, dwarf2out.h: Adjust.
6133 * emit-rtl.c (remove_unnecessary_notes): Test return value.
6135 * emit-rtl.c (remove_unnecessary_notes): Fix spelling of "necessary".
6136 * toplev.c, final.c, rtl.h: Adjust.
6138 2000-05-02 Zack Weinberg <zack@wolery.cumb.org>
6140 * aclocal.m4 (gcc_AC_CHECK_PROG_VER): New macro.
6141 * configure.in: Look for makeinfo in the unified tree, then
6142 for a system makeinfo which is sufficiently new.
6143 * Makefile.in: If configure says makeinfo is too old, don't
6144 build or install Info documentation.
6146 2000-05-02 Zack Weinberg <zack@wolery.cumb.org>
6148 * cpphash.c (collect_params): Fix off-by-one error.
6149 (dump_hash_helper): Dump all four macro nodetypes.
6151 2000-05-02 Jakub Jelinek <jakub@redhat.com>
6153 * cpphash.c (trad_stringify): Adjust p after stringification as
6156 2000-05-02 Zack Weinberg <zack@wolery.cumb.org>
6158 * cpplib.h (CPP_POP, parse_cleanup_t): Delete.
6159 (cpp_buffer): Remove cleanup, seen_eof, manual_pop members.
6161 * cppfiles.c (file_cleanup): Delete.
6162 * cpphash.c (macro_cleanup): Delete.
6163 (collect_objlike_expansion, collect_funlike_expansion,
6164 macarg, scan_arguments): Remove CPP_POP case.
6166 * cpplex.c (null_cleanup): Delete.
6167 (cpp_pop_buffer): Do the work that was done in the cleanups
6168 here. Call _cpp_unwind_if_stack from here.
6169 (_cpp_expand_to_buffer, cpp_scan_buffer_nooutput,
6170 cpp_scan_buffer): Run until we see CPP_EOF and the top of
6171 stack is the buffer _below_ the one we stacked.
6172 (cpp_get_token): Always pop an exhausted buffer. Return
6173 CPP_EOF unless it's a macro buffer. Don't call _cpp_handle_eof.
6174 * cpplib.c (skip_if_group): Don't call cpp_get_token to
6175 increment the line number.
6176 (_cpp_handle_eof): Rename to _cpp_unwind_if_stack.
6178 * fix-header.c (read_scan_file) [parsing getchar()]: Run until
6179 we see CPP_EOF and the top of stack is the buffer _below_ the
6181 * scan-decls.c: Likewise.
6183 2000-05-02 Andrew Haley <aph@cygnus.com>
6185 * config/ia64/ia64.c (ia64_encode_section_info): Handle the case
6186 where this function is called for the second time on a decl that
6187 has had its section info changed in such a way as to move it out
6189 * config/ia64/ia64.h (REDO_SECTION_INFO_P): New definition.
6191 2000-05-01 Richard Henderson <rth@cygnus.com>
6193 * ifcvt.c (dead_or_predicable): Set merge_bb->end to the insn before
6194 the sequence we're moving, not to merge_bb->head.
6196 2000-05-01 Richard Henderson <rth@cygnus.com>
6198 * configure.in (alpha*-*-linux-gnulibc1*) [tmake_file]: Remove
6199 reference to alpha/t-linux.
6200 (alpha*-*-linux-gnu*): Likewise.
6201 * configure: Rebuild.
6203 * calls.c (expand_call): Don't emit reg notes for a sibcall.
6205 * flow.c (calculate_global_regs_live): Skip for_each_successor_phi
6208 * ifcvt.c (if_convert): Only verify_flow_info if ENABLE_CHECKING.
6210 2000-05-01 Jason Merrill <jason@casey.cygnus.com>
6212 * integrate.c (copy_decl_for_inlining): Copy TREE_READONLY and
6215 2000-05-01 Richard Henderson <rth@cygnus.com>
6217 * ifcvt.c (noce_emit_cmove): Conditionally compile call to
6218 emit_conditional_move.
6220 2000-05-01 Jakub Jelinek <jakub@redhat.com>
6222 * config/ia64/linux.h (LINK_SPEC): Use /lib/ld-linux-ia64.so.1
6223 as the dynamic linker.
6225 2000-05-01 Zack Weinberg <zack@wolery.cumb.org>
6227 * cppfiles.c (open_include_file): Open file in blocking mode.
6228 (read_include_file): Don't fcntl(fd, F_SETFL, 0) anymore.
6229 Only exclude block devices and directories.
6231 * cpphash.c (_cpp_make_hashnode): Rename make_HASHNODE, now
6232 static. Allocate the hashnode and its string in the same
6234 (del_HASHNODE): Don't free h->name.
6235 (_cpp_lookup): If there is no entry for this string, create
6236 one, of type T_VOID.
6237 (_cpp_lookup_slot): Delete.
6238 * cpphash.h: Update prototypes.
6240 * cpplex.c (maybe_macroexpand): Check for hp->type == T_VOID,
6242 * cpplib.c (do_define, do_undef, do_pragma_poison, do_assert,
6243 do_unassert, cpp_defined): Use _cpp_lookup. Don't create a
6244 node here, just fill in the value field properly. "Delete"
6245 entries by setting the value field to T_VOID. Check for
6246 hp->type == T_VOID, not hp == NULL.
6248 * Makefile.in (cpplib.o): Don't depend on $(HASHTAB_H).
6249 * cpperror.c, cppexp.c, cpplex.c, cpplib.c: Don't include
6252 2000-05-01 Alexandre Oliva <aoliva@cygnus.com>
6254 * config/mn10300/mn10300.c (print_operand_address): Do not add
6257 * config/mn10300/mn10300.c (expand_epilogue): If SP is to be
6258 adjusted by less than 256 bytes, use ret regardless of having any
6259 callee-saved register to restore.
6261 2000-05-01 Laurynas Biveinis <lauras@softhome.net>
6263 * tm.texi (TARGET_HAS_F_SETFLKW): Fix typo.
6265 2000-05-01 Mark Elbrecht <snowball3@bigfoot.com>
6267 * config/i386/djgpp.h (INT_ASM_OP): Define.
6268 (CPP_PREDEFINES): Rename MSDOS to __MSDOS__.
6269 (ASM_WEAKEN_LABEL): Define.
6270 (MASK_BNU210): Define.
6271 (SUBTARGET_SWITCHES): Define.
6272 (SUPPORTS_WEAK, SUPPORTS_ONE_ONLY): Define.
6273 (MAKE_DECL_ONE_ONLY): Define.
6274 (UNIQUE_SECTION_P, UNIQUE_SECTION): Define.
6276 2000-05-01 Mumit Khan <khan@xraylith.wisc.edu>
6278 * i386/cygwin.h (INT_ASM_OP): Define.
6280 Mon May 1 18:20:06 2000 Denis Chertykov <denisc@overta.ru>
6282 * config/avr/avr.c (address_cost): renamed to avr_address_cost.
6283 * config/avr/avr.h (ADDRESS_COST): use avr_address_cost.
6285 Mon May 1 17:50:44 2000 Denis Chertykov <denisc@overta.ru>
6287 * config/avr/avr.c (asm_file_start): output 0 as r0 and 1 as r1 in
6288 __tmp_reg__ and __zero_reg__ initialization.
6290 2000-04-30 Richard Henderson <rth@cygnus.com>
6292 * flow.c (propagate_one_insn): Mark sets even when the insn is dead.
6294 * ifcvt.c (noce_process_if_block): Fail the conversion if X is
6295 referenced bewteen the condition and the jump. Don't delete
6296 anything but the jump.
6298 Sun Apr 30 22:48:24 2000 Jason Eckhardt <jle@cygnus.com>
6300 * bb-reorder.c (scope_def): New struct.
6301 (scope_forest_info): New struct.
6302 (struct reorder_block_def): New member "scope".
6303 (REORDER_BLOCK_SCOPE): New macro.
6304 (relate_bbs_with_scopes): New function and prototype.
6305 (make_new_scope): Likewise.
6306 (build_scope_forest): Likewise.
6307 (remove_scope_notes): Likewise.
6308 (insert_intra_1): Likewise.
6309 (insert_intra_bb_scope_notes): Likewise.
6310 (insert_inter_bb_scope_notes): Likewise.
6311 (rebuild_scope_notes): Likewise.
6312 (free_scope_forest_1): Likewise.
6313 (free_scope_forest): Likewise.
6314 (dump_scope_forest): Likewise.
6315 (dump_scope_forest_1): Likewise.
6316 (chain_reorder_blocks): Set REORDER_BLOCK_SCOPE for new block.
6317 Update REORDER_BLOCK_EFF_HEAD and REORDER_BLOCK_EFF_END for new
6319 (reorder_basic_blocks): Added calls to build_scope_scope_forest
6320 and remove_scope_notes before reordering is done. Added calls to
6321 rebuild_scope_notes, free_scope_forest, and reorder_blocks after
6322 after reordering is done.
6324 2000-40-30 Bruce Korb <bkorb@gnu.org>
6326 * fixinc/inclhack.def: Added definitions needed by OSR5,
6327 removed two stale entries (defined away with OLD_CPP).
6328 * fixinc/inclhack.sh: regen
6329 * fixinc/fixincl.x: regen
6331 2000-04-30 Richard Henderson <rth@cygnus.com>
6333 * ifcvt.c (dead_or_predicable): Manually squeeze non-movable notes
6334 from the last insn in the sequence.
6336 2000-04-30 Zack Weinberg <zack@wolery.cumb.org>
6338 * cpplex.c (cpp_idcmp): New function.
6339 * cpplib.h: Prototype it.
6340 * scan_decls.c (scan_decls): Use it to inspect token names.
6341 * fix-header.c (read_scan_file): Likewise. Set system_header_p on
6342 the file being run through the preprocessor.
6343 (check_macro_names): Provide length of token to cpp_defined.
6345 * Makefile.in: Remove stale warning message.
6347 * cppfiles.c (redundant_include_p): Provide length of token to
6349 * cpphash.c (_cpp_make_hashnode, _cpp_lookup_slot): Hash
6350 values are unsigned int.
6351 (_cpp_lookup, _cpp_lookup_slot): Do not calculate the length.
6352 (_cpp_lookup_slot): Do not calculate the hash, either.
6353 * cpphash.h: Update prototypes.
6354 * cpplib.c (do_define, do_undef, do_pragma_poison, do_assert):
6355 Hashes are unsigned int. Calculate hash here, pass by value
6356 to _cpp_lookup_slot.
6358 2000-04-30 Bernd Schmidt <bernds@cygnus.co.uk>
6360 * simplify-rtx.c (check_value_useless): Delete function.
6361 (discard_useless_locs): Don't call it; manage N_USELES_VALUES counter
6363 (cselib_invalidate_regno): Likewise.
6364 (cselib_invalidate_mem_1): Likewise.
6365 (references_value_p): Recognize useless values by the fact that they
6367 (discard_useless_values): Likewise.
6368 (cselib_record_set): This may turn a useless value
6371 2000-04-30 Richard Henderson <rth@cygnus.com>
6373 * config/d30v: New port.
6375 * configure.in (d30v-*): Set fp format.
6376 * configure: Rebuild.
6378 2000-04-30 Richard Henderson <rth@cygnus.com>
6380 * ifcvt.c: New file.
6381 * Makefile.in (OBJS): Add it.
6382 (ifcvt.o): New target.
6383 * jump.c (jump_optimize_1): Remove all code related to if-conversion,
6384 and conditional arithmetic.
6385 (find_insert_position): Remove.
6386 * timevar.def (TV_IFCVT, TV_IFCVT2): New.
6387 * toplev.c (DFI_ce, DFI_ce2): New.
6388 (dump_file): Add ce and ce2 dumps.
6389 (rest_of_compilation): Run if_convert a couple o times. Set
6390 cse_not_expected after cse2. Don't set no_new_pseudos until
6391 after sched1 or recompute_reg_usage.
6393 2000-04-30 Richard Henderson <rth@cygnus.com>
6395 * config/alpha/t-crtbe (crtbegin.o): Add "-I.".
6396 (crtend.o, crtbeginS.o, crtendS.o): Likewise.
6398 2000-04-30 Richard Henderson <rth@cygnus.com>
6400 * flow.c (struct reg_cond_life_info): New.
6401 (struct propagate_block_info): Add reg_cond_dead and reg_cond_reg.
6402 (init_propagate_block_info): Initialize them.
6403 (free_propagate_block_info): Destruct them.
6404 (mark_set_1): Consider conditional life before killing a register.
6405 (mark_regno_cond_dead): New.
6406 (free_reg_cond_life_info): New.
6407 (flush_reg_cond_reg_1, flush_reg_cond_reg): New.
6408 (ior_reg_cond, not_reg_cond, nand_reg_cond): New.
6409 (mark_used_reg): Record conditional life.
6411 * haifa-sched.c (schedule_insns): Disable death counting
6412 sanity check for HAVE_conditional_execution.
6414 2000-04-30 Richard Henderson <rth@cygnus.com>
6416 * Makefile.in (TIMEVAR_H): New.
6417 (ggc-simple.o, ggc-page.o, toplev.o, timevar.o): Use it.
6418 (timevar.h): Remove rule.
6420 2000-04-29 Richard Henderson <rth@cygnus.com>
6422 * config/alpha/crtend.asm: Use C comments instead of #.
6423 * config/alpha/crtbegin.asm: Likewise. Mark __dso_handle hidden.
6425 * config/alpha/elf.h (SELECT_SECTION): Treat CONSTRUCTOR like VAR_DECL.
6427 2000-04-29 Zack Weinberg <zack@wolery.cumb.org>
6429 * cpphash.h (enum node_type: Take out T_MCONST.
6430 (union hashval): Move into struct hashnode.
6431 (struct hashnode): Pack tighter. Remove file, line, col
6433 * cpphash.c: Constify most of the macro-definition structures.
6434 (struct definition): Replace by struct object_defn
6435 and struct funct_defn. Put file, line, column information
6436 here. All users updated to match.
6437 (_cpp_create_definition, _cpp_macroexpand): Remove special
6438 case for #define WORD OTHERWORD.
6439 * cpplib.c (do_undef): Remove T_MCONST case.
6441 * cpphash.h: Move struct reflist, struct definition, and the
6442 DEFINITION typedef to cpphash.c. Use 'struct definition *' in
6443 union hashval. _cpp_free_definition takes a HASHNODE pointer.
6444 * cpphash.c (_cpp_free_definition): Free data pointed to by
6445 MCONST, XCONST, MACRO, and FMACRO nodes properly.
6446 (_cpp_create_definition, del_HASHNODE): Just call
6447 _cpp_free_definition to clear out a hashnode.
6448 * cpplib.c (do_pragma_poison): Likewise.
6450 Sat Apr 29 12:25:17 2000 Alexandre Oliva <aoliva@cygnus.com>
6452 * config/mn10300/mn10300.h (FIRST_DATA_REGNUM,
6453 LAST_DATA_REGNUM, FIRST_ADDRESS_REGNUM, LAST_ADDRESS_REGNUM,
6454 FIRST_EXTENDED_REGNUM, LAST_EXTENDED_REGNUM): New macros.
6455 (REGNO_SP_P): Redefine in terms of STACK_POINTER_REGNUM.
6456 (REGNO_DATA_P, REGNO_ADDRESS_P, REGNO_EXTENDED_P,
6457 REGNO_AM33_P): Redefine in terms of the new macros.
6458 (CONDITIONAL_REGISTER_USAGE, REGNO_REG_CLASS): Likewise.
6459 (FUNCTION_VALUE, LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P,
6460 STRUCT_VALUE): Likewise.
6461 (STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM,
6462 ARG_POINTER_REGNUM, STATIC_CHAIN_REGNUM): Likewise. Moved.
6464 Sat Apr 29 01:18:45 MET DST 2000 Jan Hubicka <jh@suse.cz>
6466 * regmove.c (struct record_stack_memrefs_data): New.
6467 (record_stack_memrefs): New function.
6468 (combine_stack_adjustments_for_block): Use it.
6470 Sat Apr 29 01:15:27 MET DST 2000 Jan Hubicka <jh@suse.cz>
6472 * calls.c (calls_function_1): Propertly handle TREE_LIST expressions;
6473 use special_function_p to detect alloca.
6475 Fri Apr 28 16:30:33 2000 Marc Espie <espie@cvs.openbsd.org>
6477 * gcc.texi: Fixes for makeinfo 4.0 --html.
6479 2000-04-28 Zack Weinberg <zack@wolery.cumb.org>
6481 * pcp.h: Delete file.
6483 2000-04-28 Kazu Hirata <kazu@hxi.com>
6485 * h8300.c (function_epilogue): Clean up flags when the last insn
6486 in a function is a barrier.
6488 2000-04-28 Chris Demetriou <cgd@sibyte.com>
6490 * configure.in (sparc-hal-solaris2*): protect [] glob from
6492 (mips*-*-ecoff*, mips*-*-elf*, mips*-*-*): use MASK_ defines
6493 rather than hard-coded constants in target_cpu_default2.
6494 * configure: Regenerate.
6496 2000-04-28 Jason Merrill <jason@casey.cygnus.com>
6498 * tree.c (get_callee_fndecl): Extract the initial value from
6501 2000-04-28 Richard Henderson <rth@cygnus.com>
6503 * varasm.c (record_constant_1): Record the CODE_LABEL when
6504 taking the address of a LABEL_REF.
6506 2000-04-28 Richard Henderson <rth@cygnus.com>
6507 Jan Hubicka <jh@suse.cz>
6509 * calls.c (combine_pending_stack_adjustment_and_call): Return the
6510 adjustment; don't do the stack adjust.
6511 (expand_call): Call compute_argument_block_size right before
6512 allocating the block; update comment; don't do alignment sanity
6513 checking for sibling call; use args_size instead of
6514 unadjusted_args_size before args_size is adjusted. Use
6515 combine_pending_stack_adjustment_and_call to compute stack adjust
6516 for must_preallocate case.
6518 * expr.c (push_block): Remove shadow `temp' in inner scope.
6520 2000-04-28 Jason Merrill <jason@casey.cygnus.com>
6522 * toplev.c (rest_of_compilation): Call
6523 note_deferral_of_defined_inline_function even if the function
6526 2000-04-28 Scott Bambrough <scottb@netwinder.org>
6528 * cpplex.c (_cpp_scan_line): Fix buffer overwrite.
6530 2000-04-28 Richard Henderson <rth@cygnus.com>
6532 * toplev.c (rest_of_type_compilation): Fix sdb TIMEVAR typo.
6534 2000-04-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6536 * timevar.c (init_timevar): DeANSIfy function definition.
6538 2000-04-27 Alex Samuel <samuel@codesourcery.com>
6540 * Makefile.in (timevar.o): Depend on flags.h.
6541 * timevar.c (unused_stack_instances): New variable.
6542 (timevar_push): Take a timevar_stack_def from
6543 unused_stack_instances if available.
6544 (timevar_pop): Push the popped timevar_stack_def onto
6545 unused_stack_instances.
6546 (TIMEVAR_ENABLE): New macro.
6547 (timevar_def): Make standalone a 1-bit field. Add field used.
6548 (get_time): Rename parameter to now. Return after clearing it if
6550 (init_timevar): Do nothing if not TIMEVAR_ENABLE.
6551 (timevar_pop): Likewise.
6552 (timevar_stop): Likewise.
6553 (timevar_push): Likewise. Mark the timing variable as used.
6554 (timevar_start): Likewise.
6555 (timevar_print): Do nothing if not TIMEVAR_ENABLE. Don't print
6556 timevars that were never used.
6558 2000-04-27 Mark Mitchell <mark@codesourcery.com>
6560 * c-common.c (c_apply_type_quals_to_decl): REFERENCE_TYPES are
6561 always TREE_READONLY.
6563 2000-04-27 Ulrich Drepper <drepper@cygnus.com>
6565 * i386.h (FUNCTION_BLOCK_PROFILER_EXIT): Generate mem reference
6566 for call instruction with mode QImode.
6568 2000-04-27 Alex Samuel <samuel@codesourcery.com>
6570 * Makefile.in (OBJS): Add timevar.o.
6571 (toplev.o): Depend on timevar.h.
6572 (ggc-simple.o): Likewise.
6573 (ggc-page.o): Likewise.
6574 (timevar.o): New rule.
6575 (timevar.h): New rule.
6577 * timevar.h: New file.
6578 * timevar.c: Likewise.
6579 * timevar.def: Likewise.
6581 * toplev.h (gc_time, parse_time, varconst_time): Remove.
6582 * toplev.c: Use timevar_push and timevar_pop instead of TIMEVAR
6584 (TIMEVAR): Remove macro.
6585 (gc_time, parse_time, varconst_time, integration_time, jump_time,
6586 cse_time, gcse_time, loop_time, cse2_time, branch_prob_time,
6587 flow_time, combine_time, regmove_time, sched_time,
6588 local_alloc_time, global_alloc_time, flow2_time, peephole2_time,
6589 sched2_time, dbr_sched_time, reorder_blocks_time,
6590 rename_registers_time, shorten_branch_time, stack_reg_time,
6591 to_ssa_time, from_ssa_time, final_time, symout_time, dump_time,
6593 (compile_file): Don't initialize time variables. Call
6594 init_timevar and start TV_TOTAL timer. Call timevar_print instead
6595 of many calls to print_time.
6596 (rest_of_compilation): Add timing for reload_cse_regs.
6597 (get_run_time): Removed to timevar.c.
6598 (print_time): Likewise.
6599 (get_run_time): Implement using TV_TOTAL time variable.
6600 (print_time): Get total run time from get_run_time.
6601 * ggc-page.c (ggc_collect): Push and pop TV_GC instead of
6602 computing elapsed time explicitly.
6603 * ggc-simple.c (ggc_collect): Likewise.
6604 (gc_time): Remove declaration.
6606 2000-04-27 Mark Mitchell <mark@codesourcery.com>
6608 * calls.c (combine_pending_stack_adjustment_and_call): New function.
6609 (expand_call): Use it.
6611 2000-04-27 Jan Hubicka <jh@suse.cz>
6613 * flow.c (mark_set_1): Handle MEMs in ZERO_EXTRACT/SIGN_EXTRACT
6616 Thu Apr 27 12:47:00 2000 Alexandre Oliva <aoliva@cygnus.com>
6618 * config/mn10300/mn10300.md (movhi): Simplify. Prefer data
6621 Thu Apr 27 17:33:05 MET DST 2000 Jan Hubicka <jh@suse.cz>
6623 * function.c (epilogue_done): Pass whole insn to record_insns.
6625 Thu Apr 27 16:55:28 MET DST 2000 Jan Hubicka <jh@suse.cz>
6627 * cse.c (CSE_ADDRESS_COST): Remove.
6628 (find_best_addr): Add new parameter "MODE", use address_cost instead
6630 (address_cost): New.
6631 (fold_rtx): Update call of find_best_addr.
6632 * rtl.h (address_cost): Declare.
6633 * loop.c (general_induction_var): Add new parameter "MODE", use
6634 address_cost instead of ADDRESS_COST
6635 (init_loop): Use address_cost instead of ADDRESS_COST.
6636 (check_insn_for_givs): Update call of general_induction_var.
6637 (find_mem_givs): Likewise.
6638 (consec_sets_giv): Likewise.
6639 * config/i386/i386.h (ADDRESS_COST): Call ix86_address_cost.
6640 * i386.c (ix86_address_cost): New.
6641 * i386-protos.h (ix86_address_cost): Declare.
6643 Thu Apr 27 11:45:16 2000 Alexandre Oliva <aoliva@cygnus.com>
6645 * config/mn10300/mn10300.md (movqi): Simplify. Prefer data
6648 Thu Apr 27 16:11:00 MET DST 2000 Jan Hubicka <jh@suse.cz>
6650 * expr.c (store_expr): Use clear_storage instead of direct memset
6653 Thu Apr 27 10:36:51 2000 Alexandre Oliva <aoliva@cygnus.com>
6655 * config/mn10300/mn10300.c (mn10300_address_cost): Test
6656 ASHIFT, AND and LABEL_REF.
6658 Thu Apr 27 15:08:46 MET DST 2000 Jan Hubicka <jh@suse.cz>
6660 * invoke.texi (-foptimize-sibling-calls): Fix.
6662 Thu Apr 27 14:54:22 MET DST 2000 Jan Hubicka <jh@suse.cz>
6664 * loop.c (load_mems) Don't use hard registers for the hoisting.
6666 * unroll.c (unroll_loop): Avoid overflow in the n_iterations
6667 calculation; rename const_equiv array in the preconditioning code
6668 from loop_unroll to loop_unroll_precondition
6670 2000-04-27 Richard Henderson <rth@cygnus.com>
6672 * flow.c (struct propagate_block_info): Remove new_dead, new_live;
6674 (propagate_one_insn): Clear it. Don't update reg_live here.
6675 (init_propagate_block_info): Update for pbi member changes.
6676 (free_propagate_block_info): Likewise.
6677 (mark_set_1): Know that zero_extract, sign_extract, and
6678 strict_low_part don't kill their argument. Alter hard subregs.
6679 Update new_set for non-CLOBBER sets. Update reg_live.
6680 (find_auto_inc): Update reg_live, not new_dead.
6681 (mark_used_reg): Update reg_live, not new_live. Examine new_set
6682 to determine if the reg in question was set this insn. Only update
6683 reg info with PROP_REG_INFO.
6685 2000-04-26 Richard Henderson <rth@cygnus.com>
6687 * flow.c (allocate_reg_life_data): Set max_regno here ...
6688 (life_analysis): ... not here.
6690 * flow.c (calculate_global_regs_live): Force stack pointer
6693 2000-04-26 Richard Henderson <rth@cygnus.com>
6695 * jump.c (redirect_exp_1): Rework from old redirect_exp. Never
6696 commit change group changes.
6697 (invert_exp_1): Similarly.
6698 (redirect_exp, invert_exp): Use them.
6699 (redirect_jump_1): New.
6700 (invert_jump_1): New.
6701 (jump_optimize_1): Remove code subsumed by condexec.c.
6702 * rtl.h (invert_jump_1, redirect_jump_1): Declare.
6704 2000-04-26 Richard Henderson <rth@cygnus.com>
6706 * rtlanal.c (dead_or_set_regno_p): Use find_regno_note.
6708 * genconfig.c (main): Set all HAVE_foo to 1.
6710 * graph.c (node_data): Use GET_NOTE_INSN_NAME instead of local array.
6712 2000-04-26 Alex Samuel <samuel@codesourcery.com>
6714 * invoke.texi: Document -fssa flag.
6716 2000-04-26 Richard Henderson <rth@cygnus.com>
6718 * flow.c (count_reg_sets_1): Remove.
6719 (count_reg_sets, count_reg_references): Remove.
6720 (recompute_reg_usage): Implement with update_life_info.
6721 Reallocate life data.
6723 2000-04-26 Richard Henderson <rth@cygnus.com>
6725 * flow.c (update_life_info): Consider blocks null to mean the
6727 (calculate_global_regs_live): Likewise.
6728 (life_analysis): Do that instead of collecting all_blocks.
6730 2000-04-26 Richard Henderson <rth@cygnus.com>
6732 * flow.c (tidy_fallthru_edge): Don't delete the jump when it's
6733 a still-valid conditional jump.
6735 2000-04-26 Richard Henderson <rth@cygnus.com>
6737 * jump.c (invert_jump): Always invert REG_BR_PROB. Do it correctly.
6739 * bb-reorder.c (reorder_basic_blocks): Don't run estimate_probability.
6740 * flow.c (calculate_loop_depth): Remove.
6741 * output.h (calculate_loop_depth): Don't declare.
6742 * toplev.c (rest_of_compilation): Expand calculate_loop_depth
6743 inline; run estimate_probability at the same time.
6745 2000-04-26 Neil Booth <NeilB@earthling.net>
6747 * cpplib.h: "~=" is not a single pp-token.
6748 * cpplex.c: Correct commentary.
6750 2000-04-26 Richard Henderson <rth@cygnus.com>
6752 * flow.c (mark_set_1): New arguments code and flags; update all
6753 callers. Track regno_first and regno_last; do HARD_REGNO_NREGS
6754 test in one place. Tidy flags tests. Don't bias REG_N_REFS by
6755 loop_depth when optimizing for size. Do new_dead update after
6756 emitting REG_UNUSED notes. Merge mark_set_reg code.
6757 (mark_set_reg): Remove.
6758 (propagate_one_insn): Use mark_set_1 for call-clobbered registers;
6759 arrange to not emit REG_UNUSED notes.
6761 2000-04-26 Richard Henderson <rth@cygnus.com>
6763 * flow.c (find_auto_inc): Use pbi->bb instead of BLOCK_FOR_INSN.
6764 * ssa.c (convert_from_ssa): Don't run compute_bb_for_insn.
6766 2000-04-26 Richard Henderson <rth@cygnus.com>
6768 * flow.c (propagate_one_insn): Break out from propagate_block.
6769 (init_propagate_block_info): Likewise.
6770 (free_propagate_block_info): Likewise.
6771 (propagate_block): Use them. Export.
6772 * basic-block.h: Declare them all.
6774 2000-04-26 Richard Henderson <rth@cygnus.com>
6776 * basic-block.h (life_analysis): Declare here ...
6777 * output.h: ... not here.
6778 * flow.c (life_analysis): Remove nregs parameter; replace
6779 remove_dead_code with flags. Remove ssa dead code check.
6780 Only init alias analysis if we'll use it.
6781 * reg-stack.c (reg_to_stack): Update life_analysis arguments.
6782 * ssa.c (convert_to_ssa): Likewise.
6783 (convert_from_ssa): Likewise.
6784 * toplev.c (rest_of_compilation): Likewise.
6786 2000-04-26 Richard Henderson <rth@cygnus.com>
6788 * flow.c (flow_delete_block): Rename from delete_block. Export.
6789 * basic-block.h (flow_delete_block): Declare.
6791 2000-04-26 David S. Miller <davem@redhat.com>
6793 * optabs.c (emit_libcall_block): Verify insns with INSN_P before
6794 taking a PATTERN of it.
6796 2000-04-26 <NeilB@earthling.net>
6798 * cpplex.c (spell_other, spell_char): Remove.
6800 (token_spelling, trigraph_map): Use unsigned chars.
6801 (_cpp_lex_line): Tidy up the switch statement.
6802 * cpplib.h: Implement spell_char with spell_string.
6805 2000-04-26 <RodneyBrown@pmsc.com>
6807 * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Warning removal.
6808 * pa/pa64-regs.h (HARD_REGNO_MODE_OK): Warning removal.
6810 2000-04-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6812 * dwarf2out.c (dw_cfi_oprnd_struct, dw_fde_struct, add_fde_cfi,
6813 reg_save, dwarf2out_frame_debug_expr, dwarf2out_def_cfa,
6814 dwarf2out_window_save, dwarf2out_args_size, dwarf2out_reg_save,
6815 dwarf2out_return_save, dwarf2out_return_reg,
6816 dwarf2out_stack_adjust, dwarf2out_frame_debug, primary_filename,
6817 add_AT_lbl_id, add_AT_lbl_offset, type_tag, decl_start_label,
6818 gen_compile_unit_die, dwarf2out_init): Constify a char*.
6820 * dwarf2out.h (dwarf2out_init): Likewise.
6822 * dwarfout.c (filename_entry, primary_filename, last_filename,
6823 type_tag, output_compile_unit_die, dwarfout_init): Likewise.
6825 * tree.h (dwarf2out_def_cfa, dwarf2out_window_save,
6826 dwarf2out_args_size, dwarf2out_reg_save, dwarf2out_return_save,
6827 dwarf2out_return_reg): Likewise.
6829 2000-04-26 Andreas Jaeger <aj@suse.de>
6831 * extend.texi (Function Attributes): Fix description of pure
6834 2000-04-26 Jason Merrill <jason@casey.cygnus.com>
6836 * integrate.c (output_inline_function): Do clear DECL_DEFER_OUTPUT
6837 before calling rest_of_compilation.
6839 2000-04-26 Andreas Jaeger <aj@suse.de>
6841 * config/mips/linux.h: Remove erroneous commit of #if 0/#endif in
6844 2000-04-25 Richard Henderson <rth@cygnus.com>
6846 * cse.c (cse_insn): Emit barrier after unconditional jump.
6848 * calls.c (expand_call): Disable tail call generation once
6849 rtx_equal_function_value_matters is false.
6851 * reg-stack.c (convert_regs_1): Treat EDGE_ABNORMAL_CALL edges
6854 2000-04-25 Jason Merrill <jason@casey.cygnus.com>
6856 * dwarf2out.c (add_bound_info): Don't crash on an unexpanded SAVE_EXPR.
6858 * dwarfout.c (output_decl): Ignore NAMESPACE_DECLs.
6860 * dwarf2out.c (gen_subprogram_die): The class-scope declaration DIE
6861 is the primary DIE for a member function.
6862 (gen_decl_die): Call set_decl_origin_self here.
6863 * dwarfout.c (output_decl): And here.
6864 * integrate.c (output_inline_function): Not here.
6865 Don't clear DECL_INLINE until after calling rest_of_compilation.
6866 (set_decl_origin_self): No longer static.
6867 * tree.h: Add prototype.
6868 * toplev.c (note_deferral_of_defined_inline_function): Only write
6869 out abstract instance for actual inlines.
6871 2000-04-25 Alexandre Oliva <aoliva@cygnus.com>
6873 * config/mn10300/mn10300.h (REG_CLASS_FROM_LETTER): Return
6874 EXTENDED_REGS only if TARGET_AM33.
6875 * config/mn10300/mn10300.md (movsi, addsi): Avoid exposing
6876 SP_REGS to register allocation and reloading unless absolutely
6878 (movsi3): Remove special-case of adding non-constants to SP.
6880 2000-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6882 * aclocal.m4 (gcc_AC_NEED_DECLARATION): This macro now requires
6883 INCLUDES to search and does not provide any of its own. Also it
6884 now accepts optional ACTION-IF-NEEDED and ACTION-IF-NOT-NEEDED
6885 parameters. Also it does not call AC_DEFINE.
6886 (gcc_AC_NEED_DECLARATIONS): Likewise. Also this macro now calls
6887 AC_DEFINE and provides for automatic entries for autoheader.
6888 (gcc_AC_FUNC_PRINTF_PTR): Cleanup C code in test.
6890 * configure.in (gcc_AC_NEED_DECLARATIONS): Save and restore CFLAGS
6891 so we can pass -I flags and include gansidecl.h/system.h in this
6894 * acconfig.h: Delete all NEED_DECLARATION_* entries.
6896 2000-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6898 * acconfig.h (ENABLE_STD_NAMESPACE, ENABLE_CHECKING,
6899 ENABLE_TREE_CHECKING, ENABLE_RTL_CHECKING, ENABLE_GC_CHECKING,
6900 ENABLE_GC_ALWAYS_COLLECT): Delete entries.
6902 * configure.in (ENABLE_STD_NAMESPACE, ENABLE_CHECKING,
6903 ENABLE_TREE_CHECKING, ENABLE_RTL_CHECKING, ENABLE_GC_CHECKING,
6904 ENABLE_GC_ALWAYS_COLLECT): Use three argument form of AC_DEFINE
6905 for these macros. Clean up spacing and linewraps.
6907 2000-04-26 Jason Merrill <jason@casey.cygnus.com>
6909 * calls.c (expand_call): Use get_callee_fndecl.
6911 * print-tree.c (print_node): Print the chain of an _EXPR.
6913 Tue Apr 25 16:16:04 2000 Andrew MacLeod <amacleod@cygnus.com>
6914 Jim Wilson <wilson@cygnus.com>
6915 Andrew Haley <aph@cygnus.com>
6917 * config/ia64/crtbegin.asm: Add IA-64 unwind support. Correct alloc
6918 and gp save/restore problems.
6919 * config/ia64/crtend.asm: Add IA-64 unwind support.
6920 * config/ia64/ia64.c (ia64_compute_frame_size): Don't include pr_size
6921 in fr_pad_size calculation.
6922 (save_restore_insns): Move PR save area. Correct uses of
6923 RTX_FRAME_RELATED_P.
6924 (ia64_expand_prologue): Mark alloc with RTX_FRAME_RELATED_P.
6925 (ia64_expand_epilogue): Add eh_epilogue support.
6926 (ia64_function_prologue): Emit .prologue directive.
6927 (ia64_init_machine_status, ia64_mark_machine_status): New functions.
6928 (ia64_override_options): Set init_machine_status and
6929 mark_machine_status.
6930 (rtx_needs_barrier): Handle bsp reads and writes.
6931 (spill_offset, sp_offset, spill_offset_emitted, tmp_reg, tmp_saved):
6932 New static variables.
6933 (process_set, process_for_unwind_directive): New functions.
6934 * config/ia64/ia64.h (ASM_OUTPUT_XDATA_CHAR, ASM_OUTPUT_XDATA_SHORT,
6935 ASM_OUTPUT_XDATA_INT, ASM_OUTPUT_XDATA_DOUBLE_INT, ASM_OUTPUT_EH_CHAR,
6936 ASM_OUTPUT_EH_SHORT, ASM_OUTPUT_EH_INT, ASM_OUTPUT_EH_DOUBLE_INT): New
6938 (EH_FRAME_SECTION_ASM_OP): Define to IA_64.unwind section.
6939 (IA64_UNWIND_INFO, HANDLER_SECTION, IA64_UNWIND_EMIT): Define.
6940 (struct machine_function): Define.
6941 * config/ia64/ia64.md (bsp_value, set_bsp, eh_epilogue): New patterns.
6943 2000-04-25 Bruce Korb <bkorb@gnu.org>
6945 * fixinc/Makefile.in: make the removal of old programs more
6947 * fixinc/mkfixinc.sh: use the two new targets in the Makefile:
6948 install-bin and install-sh
6950 2000-04-25 Nick Clifton <nickc@cygnus.com>
6952 * integrate.c (FUNCTION_ATTRIBUTE_INLINABLE_P): If not
6953 defined, define to return zero.
6954 (function_cannot_inline_p): If a function has any target
6955 specific attributes, then use the macro
6956 FUNCTION_ATTRIBUTE_INLINABLE_P to allow the target to decide
6957 whether it can be inlined. If it cannot, issue a suitable
6960 * tm.texi: Add a new node 'Inlining' to document the new macro
6961 FUNCTION_ATTRIBUTE_INLINABLE_P.
6963 2000-04-25 Zack Weinberg <zack@wolery.cumb.org>
6965 * cpplib.h (struct cpp_buffer): Add 'mapped' flag; fix
6968 2000-04-25 Neil Booth <NeilB@earthling.net>
6970 Restore previous patch, plus the following fixes:
6972 * cpphash.c (_cpp_create_definition): Test PREV_WHITESPACE in
6973 flags, not CPP_OPEN_PAREN.
6974 * cpplex.c (expand_token_space, init_token_list,
6975 cpp_free_token_list): Put the dummy token at list->tokens[-1].
6976 (_cpp_lex_line, _cpp_lex_file): token list is 0-based.
6978 Tue Apr 25 14:06:40 2000 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
6980 * config/i386/freebsd.h (INT_ASM_OP): Define.
6982 Tue Apr 25 14:51:07 MET DST 2000 Jan Hubicka <jh@suse.cz>
6984 * loop.c (strength_reduce): Fix typo in the last checkin.
6986 Tue Apr 25 07:33:12 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6988 * stor-layout.c (finalize_record_size): Simplify to use existing
6990 (compute_record_mode): No longer static.
6991 * tree.h (compute_record_mode): New declaration.
6993 2000-04-25 Neil Booth <NeilB@earthling.net>
6995 * Revert my patch below until cause of build failures
6998 2000-04-25 Richard Henderson <rth@cygnus.com>
7000 * combine.c (combine_instructions): Add missing argument
7003 * toplev.c (rest_of_compilation): Delay sibcall optimization
7004 until after emit_eh_context.
7006 2000-04-24 Nick Clifton <nickc@redhat.com>
7008 * combine.c (combine_instructions): Do not try to combine a
7009 sequence of insns when the second insn has been replaced by a
7012 Mon Apr 24 17:34:18 2000 Mumit Khan <khan@xraylith.wisc.edu>
7014 * gcc.c (load_specs): New static function.
7015 (read_specs): Use it.
7017 * gcc.c (lookup_compiler): Make multiple passes for case
7018 insensitive filesystems.
7020 2000-04-24 Neil Booth <NeilB@earthling.net>
7022 * cpphash.c: replace HSPACE_BEFORE with PREV_WHITESPACE.
7023 * cpphash.h (_cpp_check_directive): new.
7024 * cpplex.c (handle_newline, cpp_free_token_list,
7025 init_trigraph_map, trigraph_ok, trigraph_replace,
7026 backslash_start, skip_block_comment, skip_line_comment,
7027 skip_whitespace, parse_name, parse_number, parse_string,
7028 copy_comment, _cpp_lex_line, spell_char, spell_string,
7029 spell_comment, spell_name, spell_other, _cpp_lex_file,
7030 _cpp_output_list): new.
7031 (expand_name_space): take length argument.
7032 (init_token_list): add comment list initialisation.
7033 (cpp_scan_line): use auto_expand_name_space. PREV_WHITESPACE
7034 instead of HSPACE_BEFORE.
7036 * cpplib.c (_cpp_check_directive): new
7037 * cpplib.h (cpp_name, PREV_WHITESPACE, PREV_COMMENT,
7038 DIGRAPH, UNSIGNED_INT, TOK_NAME): new.
7039 (HSPACE_BEFORE): delete.
7040 (TTYPE_TABLE): rearrange.
7041 (struct cpp_toklist): update.
7043 2000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7045 * aclocal.m4 (gcc_AC_HEADER_STRING, gcc_AC_FUNC_PRINTF_PTR,
7046 gcc_AC_C_VOLATILE, gcc_AC_FUNC_MKDIR_TAKES_ONE_ARG): Use the three
7047 argument form of AC_DEFINE.
7049 * configure.in (DEFAULT_LINKER, DEFAULT_ASSEMBLER,
7050 HAVE_INTTYPES_H, PACKAGE, VERSION, ENABLE_WIN32_REGISTRY,
7051 WIN32_REGISTRY_KEY, HAVE_GAS_SUBSECTION_ORDERING, HAVE_GAS_WEAK,
7052 HAVE_GAS_HIDDEN, HAVE_AS_REGISTER_PSEUDO_OP, AS_SPARC64_FLAG,
7053 HAVE_AS_OFFSETABLE_LO10, ENABLE_NEW_GXX_ABI): Likewise.
7055 * acconfig.h: Delete stubs made redundant by 3-arg AC_DEFINE.
7057 2000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7059 * Makefile.in (GCC_FOR_TARGET, GCC_CFLAGS, LIBGCC2_INCLUDES,
7060 deduced.h): Use -isystem, not -I, for including system headers.
7062 2000-04-24 Nick Clifton <nickc@cygnus.com>
7064 * config/fr30/fr30.md (addsi3): Do not use small add instruction if
7065 the source register is the frame pointer or arg pointer.
7066 (addsi3_small_int): Disallow if source register is the frame
7067 pointer or arg pointer.
7069 2000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7071 * configure.in (ENUM_BITFIELDS_ARE_UNSIGNED): Delete redundant
7072 call to AC_MSG_RESULT.
7074 2000-04-24 Martin v. Löwis <loewis@informatik.hu-berlin.de>
7076 * invoke.texi: Correct grammatical errors, document
7077 -fno-gnu-keywords as identical to -fno-asm for C++.
7079 2000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7081 * aclocal.m4: (GCC_HEADER_STRING, GCC_NEED_DECLARATION,
7082 GCC_NEED_DECLARATIONS, GCC_FUNC_VFPRINTF_DOPRNT,
7083 GCC_FUNC_PRINTF_PTR, GCC_PROG_LN_S, GCC_PROG_LN, GCC_C_VOLATILE,
7084 AC_GCC_C_LONG_DOUBLE, GCC_FUNC_MKDIR_TAKES_ONE_ARG,
7085 EGCS_PROG_INSTALL): Rename autoconf macros with prefix gcc_AC_.
7087 * configure.in (AC_GCC_C_LONG_DOUBLE, GCC_PROG_LN, GCC_PROG_LN_S,
7088 GCC_C_VOLATILE, EGCS_PROG_INSTALL, GCC_HEADER_STRING,
7089 GCC_FUNC_VFPRINTF_DOPRNT, GCC_FUNC_PRINTF_PTR,
7090 GCC_NEED_DECLARATIONS, GCC_FUNC_MKDIR_TAKES_ONE_ARG): Invoke with
7093 2000-04-24 Mumit Khan <khan@xraylith.wisc.edu>
7095 * c-pragma.c (push_alignment): Use BITS_PER_UNIT macro.
7096 (pop_alignment): Likewise.
7097 (handle_pragma_token): Likewise.
7099 2000-04-24 Robert Lipe <robertlipe@usa.net>
7101 * tree.h (tree_decl): Member `mode' now ENUM_BITFIELD.
7103 2000-04-24 Hiroyuki Machida <machida@sm.sony.co.jp>
7105 * combine.c (try_combine): Update reg_nonzero_bits of
7106 newi2pat before newpat.
7108 Mon Apr 24 10:19:48 MET DST 2000 Jan Hubicka <jh@suse.cz>
7110 * loop.c (strength_reduce): Simplify test to INSN_P.
7111 (record_giv): Attempt to simplify the add value, use CONSTANT_P
7112 expressions instead of CONST_INT.
7113 (express_from_1): Likewise.
7115 2000-04-24 Mark Mitchell <mark@codesourcery.com>
7117 * regs.h (reg_n_max): Don't declare.
7118 * flow.c (reg_n_max): Don't define.
7119 * regclass.c (renumber): Don't initialize to zero.
7120 (regno_allocated): Likewise.
7121 (reg_n_max): Define.
7122 (allocate_reg_info): Don't initialize unnecessarily.
7124 Mon Apr 24 00:21:36 2000 Jeffrey A Law (law@cygnus.com)
7126 * genattrtab.c (find_attr): Initialize unsigned_p, func_units_p
7127 and blockage_p in the newly allocated attribute.
7129 Sun Apr 23 20:16:49 2000 Alexandre Oliva <aoliva@cygnus.com>
7131 * config/mn10300/mn10300.md (addsi): `inc4' on address
7132 registers does not modify cc, but `inc' on an extended
7135 Sun Apr 23 16:24:35 2000 Denis Chertykov <denisc@overta.ru>
7137 * reload.c (find_equiv_reg): Checks all valueno regs
7138 as a reload_reg_p regs.
7140 2000-04-23 Zack Weinberg <zack@wolery.cumb.org>
7142 * cpphash.c (collect_objlike_expansion): Add sanity check.
7143 (special_symbol): Remove case T_CONST, T_XCONST, T_MCONST. If
7144 the buffer is the empty string, return. Mark __DATE__ and
7145 __TIME__ as XCONST nodes, not MCONST.
7146 (_cpp_macroexpand): Avoid pushing an empty buffer.
7147 (funlike_macroexpand): Don't pop token_buffer here.
7149 Sun Apr 23 18:37:53 2000 Alexandre Oliva <aoliva@cygnus.com>
7151 * config/mn10300/mn10300.h (REGNO_IN_RANGE_P): New macro.
7152 (REGNO_DATA_P, REGNO_ADDRESS_P, REGNO_SP_P): New macros.
7153 (REGNO_EXTENDED_P, REGNO_AM33_P): New macros.
7154 (REGNO_OK_FOR_BASE_P): Define in terms of them.
7155 (REGNO_OK_FOR_BIT_BASE_P, REGNO_OK_FOR_INDEX_P): Likewise.
7156 (REG_OK_FOR_BASE_P): Define in terms of the REGNO macro.
7157 (REG_OK_FOR_BIT_BASE_P, REG_OK_FOR_INDEX_P): Likewise.
7159 Sun Apr 23 22:23:08 MET DST 2000 Jan Hubicka <jh@suse.cz>
7161 * loop.c (simplify_giv_expr): Be more agressive on simplifying
7164 2000-04-23 Zack Weinberg <zack@wolery.cumb.org>
7166 * cpphash.h (struct definition): Move file, line, col members...
7167 (struct hashnode): ... here. Also add 'disabled' flag.
7168 (enum node_type): Add T_VOID, T_XCONST, T_FMACRO, and
7169 T_IDENTITY. Remove T_DISABLED.
7172 * cpphash.c (_cpp_dump_definition): Split out dump_DEFINITION.
7173 (collect_expansion): Split into collect_objlike_expansion and
7174 collect_funlike_expansion.
7175 (_cpp_macroexpand): Split out scan_arguments, stringify, and
7176 funlike_macroexpand.
7177 (_cpp_compare_defs): Rename compare_defs, make static.
7178 (_cpp_make_hashnode): Initialize hp->disabled.
7179 (macro_cleanup): Adjust for new token types. Clear
7181 (_cpp_create_definition): Move code here to determine what
7182 sort of macro it is, and code to check for redefinitions, from
7183 do_define. Implement a few simple cases without creating a
7185 (_cpp_macroexpand, special_symbol, _cpp_dump_definition):
7186 Handle the simple cases.
7187 (push_macro_expansion): Set buf->has_escapes and hp->disabled
7190 * cppinit.c (builtin_array): Change MCONST to XCONST
7192 * cpplex.c (maybe_macroexpand): Handle IDENTITY macros here;
7193 fix check for disabled and function-like macros.
7194 * cpplib.c (do_define): Move most logic to
7195 _cpp_create_definition.
7196 (do_undef): Handle new special token types.
7198 Sun Apr 23 14:27:44 MET DST 2000 Jan Hubicka <jh@suse.cz>
7200 * loop.c (maybe_eliminate_biv_1): Use GET_CODE (x) == CONST_INT instead
7201 of CONSTANT_P for mult_val; always use validate_change to update insn.
7203 2000-04-22 Zack Weinberg <zack@wolery.cumb.org>
7205 * cpphash.c (trad_stringify, add_pat): New functions.
7206 (collect_expansion): Restore support for -traditional syntax.
7207 Use trad_stringify and add_pat.
7208 (_cpp_macroexpand): Restore support for -traditional semantics.
7209 * cpplex.c (_cpp_scan_line): Don't change space_before if we
7210 get a COMMENT token.
7211 (_cpp_lex_token): Provide COMMENT tokens to caller if
7212 traditional and parsing_define_directive.
7213 (skip_comment): Warn about // comments if -Wtraditional.
7214 * cpplib.c (do_define): Fix typo. Create EMPTY nodes with
7216 (do_undef): Don't warn about undefining EMPTY nodes.
7218 Sat Apr 22 22:35:38 MET DST 2000 Jan Hubicka <jh@suse.cz>
7220 * loop.c (strength_reduce): Fix biv removal code.
7222 2000-04-22 Richard Henderson <rth@cygnus.com>
7224 * predict.c (estimate_probability): Examine both sides of
7225 a branch for no exits. Use 90% not 50% for predict taken.
7226 Reorg for one copy of note generation code.
7228 2000-04-22 Richard Henderson <rth@cygnus.com>
7230 * flow.c (mark_used_reg): Hack around rs6000 eliminable pic reg.
7232 2000-04-22 Richard Henderson <rth@cygnus.com>
7234 * diagnostic.c (init_output_buffer): Don't initialize format_args.
7235 (output_clear): Likewise.
7236 (output_printf): Use va_copy.
7237 (vline_wrapper_message_with_location): Likewise.
7238 (v_message_with_decl): Likewise.
7239 (line_wrapper_printf): VA_START infor buffer.format_args directly.
7240 * system.h (va_copy): Provide default implementation.
7242 2000-04-22 Richard Henderson <rth@cygnus.com>
7244 * predict.c (expected_value_to_br_prob): Don't bomb if op1 of
7245 the collected condition is not a constant.
7247 2000-04-22 Gabriel Dos Reis <gdr@codesourcery.com>
7249 * diagnostic.h: New file.
7251 * Makefile.in (diagnostic.o): Depends on diagnostic.h
7253 * diagnostic.c: Tweak. Rationalize the output logic. Adjust
7254 various function prototypes.
7255 (diagnostic.h): #include.
7256 (struct output_buffer): Move into diagnostic.h.
7257 (get_output_prefix): Rename to output_get_prefix. Export.
7258 (init_output_buffer): Export. Break out. Ajust intialization.
7259 (output_space_left, output_append): Export.
7260 (output_newline): Rename to output_add_newline. Export.
7261 (output_clear): Nullify additional output_buffer fields.
7262 (output_puts): Rename to output_add_string. Export.
7263 (dump_output): Rename to output_flush_on. Export.
7264 (build_location_prefix): Constify return-type.
7265 (emit_output_prefix): Rename to output_emit_prefix. Export.
7266 (set_real_maximum_length): New function.
7267 (output_set_maximum_length): Ditto
7268 (output_clear): Ditto.
7269 (output_add_character): Ditto.
7270 (output_add_integer): Ditto.
7271 (output_add_space): Ditto.
7272 (output_format): Ditto.
7273 (output_printf): Adjust buffer initialization.
7274 (vline_wrapper_message_with_location): Ditto.
7275 (v_message_with_decl): Ditto. Adjust call to output_puts
7276 and get_output_prefix.
7277 (default_print_error_function): Adjust buffer intialization.
7279 Sat Apr 22 06:45:04 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7281 * expr.c (preexpand_calls, case CALL_EXPR): Don't look at TYPE_SIZE
7284 Fri Apr 21 18:33:09 2000 Alexandre Oliva <aoliva@cygnus.com>
7286 * config/mn10300/mn10300.h (REGNO_REG_CLASS): Use NO_REGS instead
7289 Fri Apr 21 18:30:00 2000 Alexandre Oliva <aoliva@cygnus.com>
7291 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Provide more
7292 accurate data about SP moves.
7294 Fri Apr 21 18:28:28 2000 Alexandre Oliva <aoliva@cygnus.com>
7296 * config/mn10300/mn10300.h (ADDITIONAL_REGISTER_NAMES): Added
7297 aliases to AM33 registers.
7299 Fri Apr 21 18:26:17 2000 Alexandre Oliva <aoliva@cygnus.com>
7301 * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Added register 16
7302 to all EXTENDED bitmaps.
7304 Fri Apr 21 18:17:12 2000 Alexandre Oliva <aoliva@cygnus.com>
7306 * config/mn10300/mn10300-protos.h (mn10300_address_cost): Declare.
7307 * config/mn10300/mn10300.h (ADDRESS_COST): New macro.
7308 * config/mn10300/mn10300.c (mn10300_address_cost): New function.
7310 Fri Apr 21 18:11:56 2000 Alexandre Oliva <aoliva@cygnus.com>
7312 * config/mn10300/mn10300.md (movdi, movdf): Do not use `movu' when
7313 the operand is not constant.
7315 Fri Apr 21 14:58:29 2000 Denis Chertykov <denisc@overta.ru>
7317 * reload.c (find_equiv_reg): Checks all valueno and regno regs
7318 as a call-clobbered regs.
7320 Fri Apr 21 13:30:26 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7322 * rtl.c: Use NOTE_INSN_REPEATED_LINE_NUMBER and NOTE_INSN_RANGE_BEG.
7324 * rtl.def: Update comment.
7325 * function.c (expand_function): Use NOTE_INSN_REPEATED_LINE_NUMBER.
7326 * integrate.c (expand_inline_function): Likewise.
7327 * profile.c (branch_prob): Likewise.
7328 * ggc-common.c (ggc_mark_rtx_children): Use NOTE_INSN_RANGE_BEG.
7329 * print-rtl.c (print_rtx): Likewise.
7330 * haifa-sched.c (sched_analyze, unlink_other_notes): Likewise.
7331 (reemit_notes): Likewise; also use enum insn_note.
7333 * stor-layout.c (layout_decl): Only set DECL_MODE if not already set.
7334 (place_field): Properly compute know and actual alignment.
7336 * gengenrtl.c (gencode): Write obstack_alloc_rtx function start
7339 * cse.c (cse_insn): In (set REG0 REG1) case, remove a REG_EQUAL
7342 2000-04-21 Zack Weinberg <zack@wolery.cumb.org>
7344 * cpphash.c (struct arg, struct arglist): Const-ify strings.
7345 (warn_trad_stringify, duplicate_arg_p): New helper functions.
7346 (collect_expansion): Rewrite to scan over a token list.
7347 Remove -traditional support.
7348 (collect_formal_parameters): Rename to collect_params; rewrite
7349 to scan over a token list.
7350 (_cpp_create_definition): Adjust to scan a token list.
7351 (_cpp_macroexpand): Remove -traditional support.
7352 (_cpp_compare_defs): Whitespace is now canonicalized.
7353 (comp_def_part): Delete function.
7355 * cpphash.h: Update prototypes.
7356 * cpplex.c (init_token_list): Don't set lineno if there is no
7358 (pedantic_whitespace): New function.
7359 (_cpp_scan_line): Mark tokens that had hspace before. Don't
7360 consume a newline. Use pedantic_whitespace.
7361 (_cpp_lex_token): Remove support for -traditional macros.
7362 (_cpp_get_define_token): Delete.
7363 (_cpp_get_directive_token): Do the real work here. Use
7364 pedantic_whitespace.
7365 (_cpp_init_input_buffer): Initialize pfile->directbuf.
7367 * cpplib.c (get_macro_name): Delete.
7368 (do_define): Read the entire line into pfile->directbuf, then
7369 feed the token list to _cpp_create_definition.
7370 * cpplib.h (HSPACE_BEFORE): new define.
7371 (struct cpp_reader): Add a toklist member, "directbuf".
7373 * predict.c (estimate_probability): New heuristic: if a jump
7374 branches around a block with no successors, predict it taken.
7375 Disentangle control flow.
7377 2000-04-20 Richard Henderson <rth@cygnus.com>
7379 * loop.c (emit_iv_add_mult): Revert last change.
7381 2000-04-20 Zack Weinberg <zack@wolery.cumb.org>
7383 * cpplib.h (enum cpp_ttype): Add token types for all
7384 punctuators. Distinguish pp-numbers from valid C numbers.
7385 Give some tokens better names. Initialize from macro.
7386 (struct cpp_name, cpp_token, cpp_toklist): New data
7389 * cpplex.c (bump_column, expand_name_space,
7390 expand_token_space, init_token_list, cpp_output_list,
7391 _cpp_scan_line): New functions.
7392 (output_line_command): Add third argument, new line number.
7393 * cpphash.h: Update prototypes.
7394 * cppexp.c, cpphash.c, cpplib.c, scan-decls.c: Update for new
7397 2000-04-20 Richard Henderson <rth@cygnus.com>
7399 * config/alpha/alpha.c (alpha_emit_floatuns): Emit missing barrier.
7401 2000-04-20 Zack Weinberg <zack@wolery.cumb.org>
7403 * c-common.c (decl_attributes) [A_ALIAS]: Set TREE_USED on the
7406 Thu Apr 20 14:19:18 MET DST 2000 Jan Hubicka <jh@suse.cz>
7408 * loop.c (emit_iv_add_mult): Simplify it's input and emit
7409 REG_EQUAL note explaining the calculated value.
7411 * calls.c (expand_call): Avoid unnecesary precalculation
7412 and outgoing parameters space guarding for sibling calls.
7413 (store_one_arg): Likewise.
7415 Thu Apr 20 08:01:07 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7417 * toplev.c (enum dump_file_index, dump_file): Add DFI_sibling.
7418 (rest_of_compilation): Write sibling dump file and account
7419 for time as jump time.
7420 * invoke.texi: Update documentation on dump flags.
7422 2000-04-19 Marek Michalkiewicz <marekm@linux.org.pl>
7424 * avr.c: #include "system.h" instead of <stdio.h> and <stdlib.h>.
7426 2000-04-19 Zack Weinberg <zack@wolery.cumb.org>
7428 * cpphash.c (special_symbol): Represent an empty macro with
7429 "\r \r " not just "\r ".
7430 (_cpp_macroexpand): Correct condition for the foo ( ) special
7432 (unsafe_chars): Handle EOF as second argument.
7433 (push_macro_expansion): Simplify test for removing escape at
7434 end. Do not trim both escapes if there is no text in between.
7436 2000-04-19 Jim Blandy <jimb@redhat.com>
7438 * dwarf2out.c (DWARF2_ADDR_SIZE): New macro. Use it instead
7439 of PTR_SIZE, when appropriate.
7441 2000-04-19 Mark Mitchell <mark@codesourcery.com>
7443 * system.h (ONLY_INT_FIELDS): Make sure it is defined.
7444 (USE_ENUM_BITFIELDS): Fix typo.
7446 Wed Apr 19 12:14:55 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7448 * stor-layout.c (place_field): Set rli->offset_align properly.
7450 2000-04-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7452 * mips.h (BITS_PER_WORD, UNITS_PER_WORD, UNITS_PER_FPREG,
7453 INT_TYPE_SIZE, LONG_TYPE_SIZE, POINTER_SIZE, POINTER_BOUNDARY,
7454 PARM_BOUNDARY): Remove unnecessary casts.
7456 Wed Apr 19 12:02:37 MET DST 2000 Jan Hubicka <jh@suse.cz>
7458 * calls.c (precompute_arguments): Remove must_preallocate and
7460 (expand_call): Update call of precompute_arguments.
7462 * loop.c (check_insn_for_bivs, for_every_insn_in_loop,
7463 check_insn_for_givs): Break out from ...
7464 (strength_reduce) ... here; use for_every_insn_in_loop to call
7465 check_insn_for_givs.
7466 * loop.h (for_every_insn_in_loop): Declare.
7467 (loop_insn_callback): New type.
7469 2000-04-18 Zack Weinberg <zack@wolery.cumb.org>
7471 * cpplib.c (do_pragma_poison): Strings in the token buffer are
7474 Tue Apr 18 16:04:12 2000 Jim Wilson <wilson@cygnus.com>
7476 * config/ia64/sysv4.h (SELECT_SECTION): Use data_section if
7479 2000-04-18 Zack Weinberg <zack@wolery.cumb.org>
7481 * cccp.c, cexp.y, cexp.c, cccp.1: Removed.
7483 * configure.in: Delete --disable-cpplib option and all
7484 references to cpp_main.
7485 * configure: Regenerate.
7486 * Makefile.in: Remove all references to CCCP, CCCP_OBJS,
7487 @cpp_main@, cccp.c, cexp.c, cexp.y, cexp.output, cexp.o,
7488 cccp.o, cccp, or cppmain. Link cppmain.o straight to
7489 cpp$(exeext). Add --no-headers to makeinfo command line when
7490 generating INSTALL. Install and uninstall cpp.1 manpage, not
7492 * install.texi: Delete all references to cexp.y/cexp.c.
7493 Delete ancient instructions for compiling GCC on 3b1.
7494 * INSTALL: Regenerate.
7496 * cppfiles.c, cpplib.h, jump.c, protoize.c, c-lex.c, mips/t-ecoff,
7497 mips/t-elf, mips/t-r3900: Remove references to cccp.c.
7498 * convex.h, fx80.h, m68k.h, pdp11.h: Remove references to
7500 * xm-linux.h, xm-os2.h, romp.h: Remove definition of BSTRING,
7501 which is no longer tested anywhere.
7503 * cppinit.c (handle_option): Don't run error message through
7506 Tue Apr 18 14:16:47 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7508 * conflict.c (conflict_graph_add): Pass enum type to htab_find_slot.
7509 * cpperror.c (hashtab.h): Now include.
7510 * cppexp.c (hashtab.h): Likewise.
7511 * cpplex.c (hashtab.h): Likewise.
7512 * cppfiles.c (hashtab.h): Likewise.
7513 (find_include_file, _cpp_calc_hash, cpp_read_file): Pass enum type
7514 to htab_find_slot_with_hash.
7515 * cpphash.c (hashtab.h): Now include.
7516 (_cpp_lookup_slot): INSERT is now enum insert_option.
7517 * cpphash.h (_cpp_lookup_slot): Likewise.
7518 * cppinit.c (hashtab.h): Include earlier.
7519 (initialize_builtins): Pass enum to htab_find_slot.
7520 * cpplib.c (hashtab.h): Now include.
7521 (do_define, do_undef): Pass enum type to _cpp_lookup_slot.
7522 (do_pragma_poison, do_assert): Likewise.
7523 * emit-rtl.c (gen_rtx_CONST_INT): Pass enum to
7524 htab_find_slot_with_hash.
7525 * simplify-rtx.c (cselib_lookup_mem, cselib_lookup): Likewise.
7526 * tree.c (type_hash_add): Likewise.
7527 (build1): Minor cleanup.
7529 * ggc-common.c: Add missing blanks.
7530 * print-tree.c (print_node): Print DECL_OFFSET_ALIGN.
7531 * tree.h (DECL_OFFSET_ALIGN): Fix typo in comment.
7533 * stmt.c (mark_case_node): New function.
7534 (mark_case_nesting): Call it.
7536 * expmed.c (emit_store_flag): If comparing two-word integer
7537 with zero, can optimize NE, EQ, GE, and LT.
7539 * c-decl.c (mark_binding_level): Use 'for' instead of `while'.
7540 * conflict.c: Minor cleanups.
7541 * optabs.c: Add blank line
7542 * simplify-rtx.c: Minor cleanups.
7544 2000-04-18 Stan Cox <scox@cygnus.com>
7546 * gengenrtl.c (genlegend): Fix misspelling.
7548 2000-04-18 Robert Lipe <robertlipe@usa.net>
7550 * configure.in (ENUM_BITFIELDS_ARE_UNSIGNED): Added. Check that
7551 bitfields of the host compiler are not signed quantities.
7552 * config.in: Regenerate.
7553 * configure: Regenerate.
7554 * system.h (USE_ENUM_BITFIELDS): Added.
7555 (ENUM_BITFIELDS): Added.
7556 * rtl.h (rtx_def): Members `code', `mode', now ENUM_BITFIELD.
7557 (SHORT_ENUM_BUG): Deleted.
7558 * tree.h (tree_common): Members `code', `mode', `built_in_class',
7560 * config/i386/xm-sco.h (ONLY_INT_FIELDS): Deleted.
7561 (CODE_FIELD_BUG): Likewise.
7562 * config/m68k/x-apollo68 (CC): Deleted SHORT_ENUM_BUG.
7564 * config/m68k/x-ccur (X_CFLAGS): Likewise.
7566 2000-04-18 Mark Mitchell <mark@codesourcery.com>
7568 * cpplex.c (_cpp_lex_token): Don't call CPP_BUMP_LINE when the
7571 2000-04-17 Zack Weinberg <zack@wolery.cumb.org>
7573 * cppexp.c (lex): Don't assume tokens are NUL terminated.
7574 * cpplib.c (do_include, do_import, do_include_next,
7575 read_line_number, detect_if_not_defined): Likewise.
7576 * cpphash.c (collect_expansion): Likewise.
7577 (special_symbol, _cpp_macroexpand): Check return from
7579 * cpphash.h (CPP_NUL_TERMINATE, CPP_NUL_TERMINATE_Q): Delete
7580 macros. Delete all uses.
7582 * gcc.dg/cpp-mi.c: Add two more test cases.
7583 * gcc.dg/cpp-mind.h, gcc.dg/cpp-mindp.h: New files.
7585 2000-04-17 Richard Henderson <rth@cygnus.com>
7587 * bb-reorder.c (fixup_reorder_chain): Don't look up new block again.
7588 (reorder_basic_blocks): If no epilogue in rtl, force last block last.
7590 2000-04-17 Mark Mitchell <mark@codesourcery.com>
7592 * function.c (expand_function_start): Use hard_function_value to
7593 compute the RTL to use for DECL_RESULT.
7595 Mon Apr 17 23:35:29 MET DST 2000 Jan Hubicka <jh@suse.cz>
7597 * i386.c (athlon_cost): Fix lea, divide and XFmode move costs.
7598 (x86_integer_DFmode_moves, x86_partial_reg_dependency,
7599 x86_memory_mismatch_stall): New global variables.
7600 (ix86_adjust_cost): Handle MEMORY_BOTH on places MEMORY_STORE was only
7601 alloved; fix load penalties for Athlon.
7602 * i386.h (x86_integer_DFmode_moves, x86_partial_reg_dependency,
7603 x86_memory_mismatch_stall): Declare.
7604 (TARGET_INTEGER_DFMODE_MOVES, TARGET_PARTIAL_REG_DEPENDENCY,
7605 TARGET_MEMORY_MISMATCH_STALL): New.
7606 * i386.md (athlon scheduling parameters): Fix latencies according to
7607 Athlon Optimization Manual.
7608 (sahf, xchg, fldcw, leave instruction patterns): Set athlon_decode to
7610 (fsqrt instruction patterns): Set athlon_decode to direct.
7611 (movhi_1): Promote for TARGET_PARTIAL_REG_DEPENDENCY and for
7612 PARTIAL_REGISTER_STALL with !TARGET_HIMODE_MATH machines.
7613 (movqi_1): Handle promoting correctly for TARGET_PARTIAL_REG_DEPENDENCY
7614 and TARGET_PARTIAL_REGISTER_STALL machines.
7615 (pushdf_nointeger): New pattern.
7616 (pushdf_integer): Rename from pushdf.
7617 (movdf_nointger): Enable for !TARGET_INTEGER_DFMODE_MOVES machines.
7618 (movdf_intger): Disable for !TARGET_INTEGER_DFMODE_MOVES machines.
7620 2000-04-17 Richard Henderson <rth@cygnus.com>
7622 * loop.c (canonicalize_condition): Add WANT_REG argument.
7623 Stop the search if we match it.
7624 * expr.h (canonicalize_condition): Update decl.
7625 * predict.c (expected_value_to_br_prob): Use it. Track last
7626 expected value note.
7627 (find_expected_value): Remove.
7629 * reorg.c (mostly_true_jump): Always use BR_PROB if present.
7631 2000-04-17 Zack Weinberg <zack@wolery.cumb.org>
7633 * aclocal.m4 (AM_GNU_GETTEXT): Don't AC_REQUIRE([AC_FUNC_MMAP]).
7634 (AC_FUNC_MMAP_FILE): New macro, tests read-only private map of
7636 * configure.in: Call AC_FUNC_MMAP_FILE.
7637 * configure: Regenerate.
7638 * config.in: Regenerate.
7640 * intl/loadmsgcat.c: Test HAVE_MMAP_FILE not HAVE_MMAP.
7641 * fixinc/fixincl.c: Likewise.
7643 2000-04-17 Richard Henderson <rth@cygnus.com>
7645 * builtins.c (expand_builtin_expect): New.
7646 (expand_builtin): Call it.
7647 * builtins.def (BUILT_IN_EXPECT): New.
7648 * c-common.c (c_common_nodes_and_builtins): Declare __builtin_expect.
7649 * extend.texi: Document it.
7651 * predict.c (expected_value_to_br_prob): New.
7652 (find_expected_value): New.
7653 * basic-block.h (expected_value_to_br_prob): Declare.
7654 * toplev.c (rest_of_compilation): Invoke it.
7656 * rtl.h (NOTE_EXPECTED_VALUE): New.
7657 (NOTE_INSN_EXPECTED_VALUE): New.
7658 * rtl.c (note_insn_name): Update.
7659 * print-rtl.c (print_rtx): Reorg NOTE_LINE_NUMBER special
7660 cases; handle NOTE_INSN_EXPECTED_VALUE.
7662 2000-04-17 Jakub Jelinek <jakub@redhat.com>
7664 * config/sparc/sparc.c (eligible_for_sibcall_delay): Cannot use
7665 leaf sibcall delay slot if flag_pic.
7666 (output_sibcall): Always emit call for leaf sibcall if flag_pic.
7668 2000-04-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7670 * Makefile.in (stmp-fixproto): Acknowledge errors in fixproto.
7672 * fixproto: If fix-header fails, exit with an error.
7674 Mon Apr 17 14:59:36 MET DST 2000 Jan Hubicka <jh@suse.cz>
7676 * cse.c (struct check_depdendence_data): New.
7677 (check_dependence): New function.
7678 (invalidate): Use check_depdenence.
7680 2000-04-16 Mark Mitchell <mark@codesourcery.com>
7682 * dwarf2out.c (DWARF_CIE_DATA_ALIGNMENT): Adjust, now that
7683 UNITS_PER_WORD is unsigned.
7685 * tree.h (struct tree_common): Remove misleading comment.
7687 2000-04-16 Dave Pitts <dpitts@cozx.com>
7689 * Makefile.in ($(srcdir)/c-parse.y: c-parse.in): Enclose the whole
7690 message in quotes. Otherwise, IBM's make program treats the '#' as the
7691 start of a comment and ignores the remainder of the line.
7693 * c-lex.c (yylex): Change for EBCDIC, lower case characters preceed
7695 * cccp.c (initialize_char_syntax): Allow for holes in EBCDIC.
7696 * cexp.y (initialize_random_junk): Likewise.
7697 * cppfiles.c (find_include_file): Cast alloca return value.
7698 * cppinit.c (initialize_standard_includes): Likewise.
7699 * cpplib.c (cpp_define, cpp_undef): Likewise.
7700 * defaults.h (ASM_OUTPUT_ASCII): Use ISPRINT.
7701 * final.c (output_asm_insn): Allow for holes in EBCDIC.
7702 * fold-const.c (CHARMASK): New.
7703 (real_hex_to_f): Use it.
7704 * real.c (CHARMASK): New.
7705 (etoasc, asctoeg): Use it.
7706 (asctoeg): EBCDIC lower case characters preceed upper case.
7708 * i370.c (mvs_add_label): Change spacing for coding conventions.
7709 * i370.h (ASM_OUTPUT_CASE_LABEL): Change to the data CSECT for the
7710 outputing case vectors.
7711 (ASM_OUTPUT_CASE_END): New, put assembler back into code CSECT.
7712 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove page check,
7713 since vector in in the data CSECT.
7714 (ASM_OUTPUT_REG_POP, ASM_OUTPUT_REG_PUSH): Restore to correct operation.
7715 * i370.md (Many patterns): Put the length in the XL directives.
7716 (movdi): Put back STM and MVC in definition.
7717 (floatsidf2): Correct TARGET_ELF_ABI pattern and add back the LE370
7718 pattern using the TCA.
7719 * oe.h (CPP_SPEC): Added to allow trigraphs.
7720 * xm-oe.h (HOST_BITS_PER_LONGLONG): Change to 32. IBM's compiler does
7721 not support the "long long" type.
7723 2000-04-16 Mark Mitchell <mark@codesourcery.com>
7725 * config/mips/mips-protos.h (mips_legitimate_address_p): New
7727 (mips_reg_mode_ok_for_base_p): Likewise.
7728 * config/mips/mips.h (REG_OK_STRICT_P): Don't define.
7729 (REG_OK_FOR_INDEX_P): Define unconditionally.
7730 (REG_MODE_OK_FOR_BASE_P): Use mips_reg_mode_ok_for_base_p.
7731 (GO_IF_LEGITIMATE_ADDRESS): Use mips_legitimate_address_p.
7732 * config/mips/mips.c (mips16_simple_memory_operand): Adjust now
7733 that GET_MODE_SIZE is unsigned.
7734 (mips_reg_mode_ok_for_base_p): Define.
7735 (mips_legitimate_address_p): Likewise. Adjust now
7736 that GET_MODE_SIZE is unsigned.
7737 (block_move_loop): Make the number of bytes unsigned.
7738 (expand_block_move): Likewise.
7739 (function_arg): Make the loop counter unsigned to match the
7742 2000-04-16 Richard Henderson <rth@cygnus.com>
7744 * rtl.h (enum insn_note): New enumeration. Subsume
7745 NOTE_INSN_DELETED and friends.
7746 (GET_NOTE_INSN_NAME): Adjust index by NOTE_INSN_BIAS.
7747 * rtl.c (note_insn_name): Tweak string order.
7749 2000-04-15 Zack Weinberg <zack@wolery.cumb.org>
7751 * cpplex.c (_cpp_read_and_prescan): Enlarge len by setting it
7754 * cpplex.c (output_line_command): Remove debugging prints.
7755 (cpp_output_tokens): Don't write out a zero-length buffer or
7756 try to see if it has a newline in it.
7757 (_cpp_expand_to_buffer): Copy the source buffer before pushing.
7758 (_cpp_read_and_prescan): Move shift-down of pushback bytes to
7759 the end of the loop. Use memmove. Don't read past the end of
7760 the buffer. Remove trailing newlines from error messages.
7762 2004-04-16 Neil Booth <NeilB@earthling.net>
7764 * cpphash.h (SYNTAX_INCLUDE, SYNTAX_ASSERT, directive_handler): new.
7765 * cpplib.c: Add new syntax flags to directive table, and
7768 2000-04-15 Ulrich Drepper <drepper@redhat.com>
7770 * i386.c (ix86_expand_epilogue): Yes, the x86 can pop 64k at once
7773 2000-04-15 David Edelsohn <edelsohn@gnu.org>
7775 * toplev.c (display_help): Prefix "f" to "sched-verbose=".
7776 * haifa-sched.c: Update -fsched-verbose comments to use "=".
7778 Sat Apr 15 10:59:19 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7780 * Makefile.in (ggc-page.o): Now includes toplev.h.
7781 * ggc-page.c (toplev.h): Now included.
7782 (gc_time): Remove declaration.
7783 (ggc_collect): TIME now long.
7784 * toplev.c (parse_time, varasm_time, gc_time): Still global; all
7786 * toplev.h (gc_time, parse_time, gc_time): New declarations.
7788 * toplev.c: Make *_time variable long to reduce chance of overflow.
7789 (TIMEVAR): Likewise for `otime'.
7790 (print_time): Arg is now long; compute percentage in FP and round.
7791 * toplev.h (print_time): Arg is long.
7793 * tree.c: Minor whitespace changes.
7795 * configure.in (alpha*-*-*): Add config/alpha/t-alpha.
7796 * configure: Rebuilt.
7797 * libgcc2.c (__fixunstfDI): Renamed from __fixunstfdi.
7798 (__fixunsxfDI): Renamed from __fixunsxfdi.
7799 (__fixunsdfDI): Renamed from __fixunsdfdi.
7800 (__fixunssfDI): Renamed from __fixunssfdi.
7801 (__floatdisf): Use proper type in REP_BIT macro.
7802 (__fixunsxfSI): Renamed from __fixunsxfsi.
7803 (__fixunsdfSI): Renamed from __fixunsdfsi.
7804 (__fixunssfSI): Renamed from __fixunssfsi.
7805 * libgcc2.h: Add cases for MIN_UNITS_PER_WORD > 4.
7806 Change location of macros and upper-case some names as above.
7807 * longlong.h ([alpha]): Use PARAMS, not __P in decl of __udiv__qrnnd.
7808 * config/alpha/t-alpha, config/alpha/qrnnd.asm: New files.
7810 * varasm.c (assemble_variable): Add cast to remove warning.
7811 (immed_real_const_1): Only use CONST[01]_RTX if not in nested function.
7813 * flow.c (count_basic_blocks, find_basic_blocks_1): Remove last change.
7814 * optabs.c (emit_libcall_block): If have REG_EH_REGION, update
7815 region number to -1.
7817 2000-04-15 Richard Earnshaw (rearnsah@arm.com)
7819 * emit-rtl.c (unshare_all_rtl_again): Unmark everything, then
7820 call unshare_all_rtl.
7822 * arm.md (movhi): REGNO_POINTER_ALIGN is now bits.
7824 Fri Apr 14 16:58:45 2000 Jim Wilson <wilson@cygnus.com>
7826 * config/ia64/lib1funcs.asm (__divdi3, __moddi3, __udivdi3, __umoddi3):
7827 Use .s1 not .s0 for all FP instructions.
7829 2000-04-14 Zack Weinberg <zack@wolery.cumb.org>
7831 * cpplex.c (cpp_output_tokens, cpp_scan_buffer_nooutput): New public
7833 (safe_fwrite, output_line_command): New static functions.
7834 (cpp_expand_to_buffer): Now private to cpplib.
7835 (cpp_scan_buffer): Take a printer.
7837 * cpphash.h: Update prototypes.
7838 * cpplib.h: Update prototypes.
7840 (cpp_buffer): Remove last_nominal_fname.
7841 (cpp_reader): Remove lineno.
7843 * cppmain.c: Use a cpp_printer.
7844 * fix-header.c: No need to inhibit line commands. Call
7845 cpp_start_read with no printer.
7847 * cpperror.c (cpp_notice_from_errno): Provide default name.
7848 * cppfiles.c (make_IHASH, _cpp_fake_ihash): New functions.
7849 (find_include_file, cpp_read_file): Use make_IHASH.
7850 (file_cleanup): Set control_macro and clear
7851 input_stack_listing_current here.
7852 (_cpp_execute_include): Don't output entering-file marker.
7853 * cpphash.c (special_symbol): Look for the line number in the
7854 buffer, not the reader.
7855 (_cpp_macroexpand): No need to disable line commands.
7856 (_cpp_dump_definition): No need to generate line commands.
7857 (dump_hash_helper): Remove excess newline from output.
7858 * cppinit.c (dump_special_to_buffer): No need to generate line
7860 (cpp_printer_init): New.
7861 (cpp_start_read): Take a printer, and start it up if it's not
7862 NULL. No need to generate line commands.
7863 (cpp_finish): Expect no buffers stacked at all. Take a
7864 printer argument, and flush the output buffer if it's not
7866 * cpplex.c (_cpp_lex_token): Return EOF if there's no buffer.
7867 Don't put two hashes at the beginning of an assertion.
7868 (cpp_get_token): Don't increment pfile->lineno or emit line
7869 commands here. Return EOF if there's no buffer when we get
7871 * cpplib.c (do_define, skip_if_group):
7872 No need to disable line commands.
7873 (_cpp_output_line_command): Delete function.
7874 (do_line): Don't emit line commands here, but set things up so
7875 they will be emitted if necessary. Use _cpp_fake_ihash to
7876 make unique nominal_fnames if necessary.
7877 (do_elif, do_else, _cpp_handle_eof): Call cpp_error_with_line
7878 with 0 for column, not -1.
7879 (_cpp_handle_eof): Don't set the control macro here. Don't
7880 clear input_stack_listing_current here. Don't emit line
7883 2000-04-14 Geoff Keating <geoffk@cygnus.com>
7885 * config/rs6000/sysv4.h (LINK_START_SOLARIS_SPEC): Define to empty
7886 always, use the default SVR4 start address.
7888 * config/rs6000/linux.h (LINK_SPEC): Don't define.
7889 (LINK_SHLIB_SPEC): Define.
7890 (LINK_START_DEFAULT_SPEC): Define.
7891 (LINK_OS_DEFAULT_SPEC): Define.
7893 * config/rs6000/sysv4.h (ENDFILE_SPEC): Use the %(endfile_*) macros.
7895 * config/rs6000/eabi.asm (__eabi): Call __init rather than
7896 __do_global_ctors to handle constructors.
7897 * config/rs6000/sysv4.h (STARTFILE_ADS_SPEC): Use crtbegin.
7898 (STARTFILE_YELLOWKNIFE_SPEC): Likewise.
7899 (STARTFILE_MVME_SPEC): Likewise.
7900 (STARTFILE_SIM_SPEC): Likewise.
7901 (ENDFILE_ADS_SPEC): Use crtend.
7902 (ENDFILE_YELLOWKNIFE_SPEC): Likewise.
7903 (ENDFILE_MVME_SPEC): Likewise.
7904 (ENDFILE_SIM_SPEC): Likewise.
7905 (STARTFILE_SOLARIS_SPEC): Use crtbegin/crtbeginS.
7906 (ENDFILE_SOLARIS_SPEC): Use crtend/crtendS.
7907 (STARTFILE_LINUX_SPEC): Use crtbeginS for shared objects.
7908 (ENDFILE_LINUX_SPEC): Use crtendS for shared objects.
7909 * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Don't build eabi-ctors.o.
7910 (EXTRA_MULTILIB_PARTS): Build crtbeginS/crtendS.
7911 (CRTSTUFF_T_CFLAGS_S): Define.
7912 * config/rs6000/eabi-ctors.c: Delete.
7914 * config/rs6000/eabi-ci.asm (__init): Align stack to 16-byte
7917 * config/rs6000/eabi-cn.asm (__init): Allow for 16-byte stack frame.
7921 Fri Apr 14 16:09:02 2000 Jim Wilson <wilson@cygnus.com>
7923 * combine.c (force_to_mode, case LSHIFTRT): Check that shift shift
7924 plus mask size is smaller or equal to the mode size.
7926 Fri Apr 14 18:07:30 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7928 * print-rtl.c (print_rtx, case NOTE): Don't blow up if NOTE_BASIC_BLOCK
7931 * expr.c (reload.h): Now included.
7932 (emit_block_move): Set volatile_ok when checking for movstr.
7933 (emit_move_1): Check for replacements in addresses in multi-word case.
7934 * Makefile.in (expr.o): Now includes reload.h.
7936 * flow.c (count_basic_blocks): Remove unused var PREV_CALL.
7937 Never have a LIBCALL end a basic block.
7938 (find_basic_blocks_1): Likewise.
7939 Reorganize CALL_INSN cases.
7941 * sbitmap.h (EXECUTE_IF_SET_IN_SBITMAP): Revert last change.
7943 Fri Apr 14 10:54:22 2000 Jim Wilson <wilson@cygnus.com>
7945 * config/ia64/lib1funcs.asm (__ia64_nonlocal_goto): Drop obsolete
7946 completers from mov.ret instruction.
7948 2000-04-14 Richard Henderson <rth@cygnus.com>
7950 * fold-const.c (extract_muldiv): Don't distribute and widen
7951 multiply across plus for non-sizetype unsigned types.
7953 2000-04-14 Richard Henderson <rth@cygnus.com>
7955 * flow.c (find_auto_inc): Don't autoinc eliminable registers.
7956 If the original source is dead in the incr insn, it's dead now.
7958 Fri Apr 14 07:40:32 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7960 * stor-layout.c (layout_decl): Properly compare KNOWN_ALIGN to
7961 see if DECL_BIT_FIELD needs to still be set.
7963 * tree.h (struct tree_type): Make PRECISION 9 bits and MODE 7.
7965 * dbxout.c (dbxout_type, case INTEGER_TYPE): Don't call
7966 print_int_cst_octal with something that's not an INTEGER_CST.
7968 * config/alpha/alpha.c (alpha_emit_floatuns): Ensure we pass a REG
7969 and not a SUBREG to a FLOAT rtl.
7971 Thu Apr 13 19:39:56 2000 Clinton Popetz <cpopetz@cygnus.com>
7973 * emit-rtl.c (try_split): Avoid infinite loop if the split
7974 results in a sequence that contains the original insn.
7976 2000-04-13 Andreas Jaeger <aj@suse.de>
7978 * config/mips/mips.c (expand_block_move): Pass alignment
7979 argument to move_by_pieces in bits, not bytes.
7981 * config/mips/linux.h (CPP_PREDEFINES): Also define __PIC__ and
7982 __pic__ for little endian.
7984 2000-04-13 Andreas Jaeger <aj@suse.de>
7986 * config/i386/i386-protos.h: Add prototype for
7987 uno_comparison_operator.
7989 Thu Apr 13 15:55:08 MET DST 2000 Jan Hubicka <jh@suse.cz>
7991 * alias.c (nonlocal_reference_p): Take care of CALL_INSNS's fusage.
7992 * calls.c (ECF_PURE): New flag.
7993 (emit_call_1): Handle ECF_PURE calls.
7994 (initialize_argument_information): Unset ECF_PURE flag too.
7995 (precompute_arguments): Precompute for ECF_PURE too.
7996 (expand_call): Handle ECF_PURE calls too.
7997 (emit_library_call_value_1): Rename no_queue argument to fn_type,
7998 accept value of 2 as pure function.
7999 (emit_library_call_value, emit_library_call): Rename no_queue argument
8001 * optabs.c (prepare_cmp_insn): Pass fn_type 2 to memcmp call.
8003 * tree.h (DECL_IS_PURE): New macro.
8004 (struct tree_decl): Add pure_flag.
8005 * c-common.c (enum attrs): Add attribute "pure".
8006 (init_attributes): Initialize attribute "pure"
8007 (decl_attributes): Handle attribute "pure".
8008 * extend.texi (Attribute "pure"): Document.
8009 * calls.c (expand_call): Add (mem:BLK (scratch)) to "equal from"
8011 (flags_from_decl_or_type): Support attribute "pure".
8013 2000-04-13 Jason Merrill <jason@casey.cygnus.com>
8015 * cpplex.c (_cpp_lex_token): Handle digraphs. Don't null-terminate
8016 the token except for numbers and identifiers.
8018 Thu Apr 13 00:09:16 EDT 2000 John Wehle (john@feith.com)
8020 * i386.c (ix86_expand_binary_operator,
8021 ix86_expand_unary_operator): Check no_new_pseudos
8022 instead of reload_in_progress and reload_completed.
8023 (ix86_split_ashldi, ix86_split_ashrdi,
8024 ix86_split_lshrdi): Check no_new_pseudos instead
8025 of reload_completed.
8027 2000-04-12 Jeffrey A Law (law@cygnus.com)
8029 * function.c (purge_addressof): Unshare any shared rtl created by
8030 purge_addressof and its children.
8032 2000-04-12 Mark Mitchell <mark@codesourcery.com>
8034 * function.c (aggregate_value_p): VOID_TYPE nodes are never
8037 2000-04-05 Andreas Jaeger <aj@suse.de>
8039 * config/mips/linux.h (SUBTARGET_ASM_SPEC): Use proper flags if
8040 not compiling PIC code, add flags for mabi=64.
8041 (SUBTARGET_CPP_SIZE_SPEC): New.
8042 (SUBTARGET_CPP_SPEC): New.
8043 (CPP_PREDEFINES): Define __PIC__ and __pic__. PIC code is default
8044 for MIPS/Linux and lots of code needs these defines.
8046 Wed Apr 12 22:44:11 2000 Hans-Peter Nilsson <hp@axis.com>
8048 * reorg.c (fill_slots_from_thread): Check side_effects_p when
8049 trying the "opposite arithmetic" approach.
8051 Wed Apr 12 20:51:20 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
8053 * sh.h (STRUCT_VALUE): Just 0 for TARGET_HITACHI.
8054 (struct sh_args): Add new field force_mem.
8055 (INIT_CUMULATIVE_ARGS): Initialize it.
8056 (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Act on it.
8058 Wed Apr 12 17:20:41 MET DST 2000 Jan Hubicka <jh@suse.cz>
8060 * calls.c (expand_call): Do not reverse args in "equal from" field.
8061 (emit_library_call_value_1): Emit_libcall_block for const and pure
8064 Wed Apr 12 16:00:25 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
8066 * reload1.c (reload_combine): Don't enable optimization for fixed
8067 registers when encountering a BARRIER.
8069 Wed Apr 12 15:54:11 MET DST 2000 Jan Hubicka <jh@suse.cz>
8071 * builtins.c (expand_builtin_memcmp): Do expansion even with
8072 !HAVE_cmpstrsi, do libcall when gen_strcmpsi fails.
8074 * calls.c (expand_call): Do NO_DEFER_POP unconditionally once
8075 stack is propertly aligned; add sanity checking for aligned
8077 (expand_library_call_value_1): Add sanity checking for aligned
8080 Wed Apr 12 07:51:54 2000 Catherine Moore <clm@cygnus.com>
8082 * calls.c (emit_library_call_value_1): Change 3rd arg to
8083 locate_and_pad_parm to disregard the setting of partial.
8085 Wed Apr 12 08:47:38 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8087 * tree.c (unsave_expr_now_r, unsafe_for_reeval): Properly do TREE_LIST.
8089 * print-rtl.c (print_rtx): For CALL_PLACEHOLDER, output the
8090 CALL_INSN from the normal case.
8092 Fri Apr 7 12:23:04 MET DST 2000 Jan Hubicka <jh@suse.cz>
8094 * i386.c (x86_sub_esp_4, x86_sub_esp_8, x86_add_esp_4, x86_add_esp_8):
8095 New global variables.
8096 (ix86_emit_epilogue_adjustment): Do not attempt to use pop for the
8098 * i386.h (x86_sub_esp_4, x86_sub_esp_8, x86_add_esp_4, x86_add_esp_8):
8100 (TARGET_SUB_ESP_4, TARGET_SUB_ESP_8, TARGET_ADD_ESP_4,
8101 TARGET_ADD_ESP_8): New macros.
8102 * i386.md: Add peep2s to convert esp adjustments to push and pop
8104 (pushsi_prologue, popsi_epilogue): New patterns.
8106 2000-04-12 Jakub Jelinek <jakub@redhat.com>
8108 * real.c (toe64): Remove stale #endif from the last change.
8110 2000-04-12 Stephen L Moshier <moshier@mediaone.net>
8112 * real.h (MAX_LONG_DOUBLE_TYPE_SIZE): Comment.
8113 * real.c (toe64): Revert previous change.
8115 2000-04-12 Jakub Jelinek <jakub@redhat.com>
8117 * objc/objc-act.c: Include ggc.h.
8118 (objc_tree_index, objc_global_trees): Convert most of the
8119 static tree variables into a static array with previous names
8121 (objc_ellipsis_node): New variable.
8122 (lang_init): Call objc_act_parse_init and c_parse_init.
8123 Create objc_ellipsis_node.
8124 (build_selector_translation_table): Use objc_ellipsis_node instead
8126 (hack_method_prototype): Likewise.
8127 (get_arg_type_list): Likewise.
8128 (start_method_def): Likewise.
8129 (continue_method_def): Likewise.
8130 (gen_method_decl): Likewise.
8131 (ggc_mark_imp_list): New function.
8132 (ggc_mark_hash_table): New function.
8133 (objc_act_parse_init): New function.
8134 * objc/objc-act.h (objc_ellipsis_node): Add extern variable.
8135 * c-parse.in (c_parse_init): For objc add roots of objc specific
8136 local tree variables.
8137 * objc/objc-parse.y: Rebuilt.
8138 * objc/objc-parse.c: Rebuilt.
8139 (opt_parm_list): Use objc_ellipsis_node instead of (tree)1.
8141 Wed Apr 12 01:00:44 EDT 2000 John Wehle (john@feith.com)
8143 * cse.c (delete_trivially_dead_insns): Also delete insns
8144 that copy a register to itself where the destination is
8147 2000-04-11 Richard Henderson <rth@cygnus.com>
8149 * flow.c (struct propagate_block_info): Add new_dead, new_live.
8150 (propagate_block): Initialize them. Use them in parallel instead
8151 of one tmp variable, ie revert much of the 0408 and 0407 functional
8152 changes, but keep the structural changes.
8153 (mark_set_regs): Take new_dead from propagate_block_info instead.
8154 (mark_set_1, mark_set_reg): Likewise.
8155 (mark_used_regs): Likewise with new_live.
8156 (mark_used_reg): Likewise. Revert 0408 change.
8158 2000-04-11 Nick Clifton <nickc@cygnus.com>
8160 * config/arm/arm.h: (INCOMING_RETURN_ADDR_RTX): Remove Dwarf2
8162 (DWARF_FRAME_RETURN_COLUMN): Remove Dwarf2 restriction.
8164 2000-04-11 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
8166 * config/elfos.h (SELECT_SECTION): Decide whether to use a data or
8167 const section to output a CONSTRUCTOR based on the same conditions
8170 Tue Apr 11 09:55:59 2000 Jeffrey A Law (law@cygnus.com)
8172 * pa/long-double.h (FIX_TRUNCTFSI2_LIBCALL): Tweak for PA64.
8173 * pa/pa-protos.h (output_call): Add additional argument indicating
8174 if the call is a sibling/tail call.
8175 (compute_zdepdi_operands, output_64bit_and): Prototype new functions.
8176 (compute_64bit_ior, cmpib_comparison_operator): Likewise.
8177 (function_arg, function_arg_partial_nregs): Likewise
8178 * pa/pa.c (override_options): Always set flag_pic for TARGET_64BIT.
8179 (emit_move_sequence): Zero extend certain constants as needed
8181 (compute_zdepdi_operands, output_64bit_and): New functions.
8182 (output_64bit_ior, function_arg): Likewise.
8183 (cmpib_comparison_operator, function_arg_partial_nregs): Likewise.
8184 (compute_frame_size, hppa_expand_prologue): Handle TARGET_64BIT.
8185 (hppa_expand_epilogue, return_addr_rtx, hppa_va_arg): Likewise.
8186 (hppa_builtin_saveregs, output_cbranch, output_bb): Likewise.
8187 (output_bvb): Likewise.
8188 (output_millicode_call): Return pointer is in %r2 for TARGET_64BIT.
8189 (output_call): New argument 'sibcall'. Generate sibcall sequences
8191 (print_operand); Handle cases 'Q', 'p', and 'z' for TARGET_64BIT. For
8192 (ouput_arg_descriptor): Do not emit argument descriptors for
8194 * pa/pa.h (TARGET_PA_11, TARGET_PA_20): Only define if not already
8196 (TARGET_64BIT, PROMOTE_FUNCTION_RETURN): Define.
8197 (FUNCTION_OK_FOR_SIBALL): Define.
8198 (CPP_PA10_SPEC, CPP_PA11_SPEC, CPP_PA20_SPEC): Define.
8199 (CPP_CPU_DEFAULT_SPEC, SUBTARGET_EXTRA_SPECS, EXTRA_SPECS): Likewise.
8200 (CPP_SPEC): Use new spec infrastructure.
8201 (BITS_PER_WORD, UNITS_PER_WORD): Handle TARGET_64BIT.
8202 (STACK_BOUNDARY, FUNCTION_BOUNDARY, PIC_OFFSET_TABLE_REGNUM): Likewise.
8203 (RETURN_IN_MEMORY, EXTRA_CONSTRAINT, FIRST_PARM_OFFSET): Likewise.
8204 (REG_PARM_STACK_SPACE, STACK_POINTER_OFFSET): Likewise.
8205 (STACK_DYNAMIC_OFFSET, FUNCTION_VALUE): Likewise.
8206 (FUNCTION_ARG_PASS_BY_REFERENCE, FUNCTION_ARG_CALLEE_COPIES): Likewise.
8207 (TRAMPOLINE_TEMPLATE, TRAMPOLINE_SIZE): Likewise.
8208 (INITIALIZE_TRAMPOLINE, LEGITIMATE_CONSTANT_P): Likewise.
8209 (CONST_OK_FOR_LETTER_P, MOVE_RATIO): Likewise.
8210 (FUNCTION_ARG); Call out to C code.
8211 (FUNCTION_ARG_PARTIAL_NREGS): Likewise.
8212 (MAX_BITS_PER_WORD, MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Define.
8213 (MIN_UNITS_PER_WORD): Likewise.
8214 * pa/pa.md (cmpdi): New expander.
8215 (scc patterns, movstrsi): Not available for TARGET_64BIT.
8216 (64bit conditional arithmetic): New patterns.
8217 (absdi2, smindi3, umindi3, smaxdi3, umaxdi3): New patterns.
8218 (movsicc): Not available if modes on all the operands to not match.
8219 (movdicc): New expander and associated patterns.
8220 (64bit branches): New patterns.
8221 (pre_load, post_store): Generate appropriate code for TARGET_64BIT.
8222 (pre_ldd, post_std): New patterns.
8223 (64bit addil, load low part): New patterns.
8224 (special movsf constant): Not available for TARGET_64BIT.
8225 (movsf, movdf expanders): Force constants into memory.
8226 (32bit movdf/movdi patterns): Disable for TARGET_64BIT.
8227 (64bit movdf/movdi patterns): New patterns.
8228 (zero_extendqidi2, zero_extendhidi2, zero_extendsidi2): New patterns
8230 (extendqidi2, extendhidi2, extendsidi2): Similarly.
8231 (adddi3 expander): Allow "arith_operand" for second input.
8232 (32bit adddi3, subdi3, uaddcm): Disable for TARGET_64BIT.
8233 (64bit adddi3, subsi3, uaddcm): New patterns for TARGET_64BIT.
8234 (mulsi3 expander): Revamp slightly so it supports TARGET_64BIT too.
8235 (muldi3): New expander for TARGET_64BIT.
8236 (divsi3, udivsi3, modsi3, umodsi3): Fourth operand must be (reg:SI 2)
8238 (32bit anddi3, iordi3, xordi3, andcm, negdi2, uaddcm): Disable
8239 patterns for TARGET_64BIT.
8240 (64bit anddi3, iordi3, xordi3, andcm, negdi2, uaddcm, shadd): New
8241 patterns for TARGET_64BIT.
8242 (64bit bit insertion/extractions): New patterns for TARGET_64BIT.
8243 (64bit shifts/rotates): New patterns/expanders for TARGET_64BIT.
8244 (sibcall_epilogue): New expander.
8245 (casesi): Tweak for TARGET_64BIT.
8246 (call expanders): Set & use the outgoing argument pointer. Use the
8247 64bit call patterns as needed. Add additional arg to output_call.
8248 (call_internal_reg_64bit, call_value_internal_reg_64bit): New pattern.
8249 (sibcall, sibcall_internal_symref): New expanders.
8250 (sibcall_value, sibcall_value_internal_symref
8251 (interspace_jump): Turn into an expander + matching patterns.
8252 (canonicalize_funcptr_for_compare): Not needed for TARGET_64BIT.
8253 * pa/pa64-regs.h: Eliminate trigraph sequences.
8254 * pa/pa64-start.h (TARGET_PA_20): Fix typo.
8256 2000-04-11 Zack Weinberg <zack@wolery.cumb.org>
8258 * cppexp.c, cpphash.c, cpphash.h, cpplex.c, cpplib.c,
8259 cpplib.h, cppmain.c, fix-header.c, scan-decls.c: Replace
8260 cpp_token with cpp_ttype everywhere.
8261 * cpperror.c, cpphash.c, cpplex.c, cpplib.c, scan-decls.c:
8262 Replace cpp_buf_line_and_col with CPP_BUF_LINE and/or
8263 CPP_BUF_COL. Line and column numbers are unsigned int, not
8265 * cpplex.c (cpp_buf_line_and_col): Delete.
8266 * cpplib.h (struct cpp_buffer, struct cpp_reader): Change
8267 'long lineno' to 'unsigned int lineno'.
8268 (CPP_BUF_LINE, CPP_BUF_COL): New macros.
8270 2000-04-11 Martin v. Löwis <loewis@informatik.hu-berlin.de>
8272 * extend.texi: ISO C99 is not a draft anymore.
8273 * invoke.texi: ISO C++ is not a draft anymore.
8274 * cpp.texi: __cplusplus is required by the ISO standard.
8276 * extend.texi (-fthis-is-variable): Undocument.
8277 * flags.h (warn_template_debugging): Remove declaration.
8278 * gcc.1 (-fall-virtual, -fenum-int-equiv, -fthis-is-variable,
8279 -Wenum-clash, -Wtemplate-debugging): Undocument.
8281 2000-04-10 Nick Clifton <nickc@cygnus.com>
8283 * config/arm/arm.h (HOST_INT): New macro: Declare a HOST_WIDE_INT
8285 (HOST_UINT): New macro: Declare an unsigned HOST_WIDE_INT
8287 (ARM_SIGN_EXTEND): Use HOST_UINT.
8288 (STRIP_NAME_ENCODING): Prevent warnings about redefinitions.
8289 (ASM_OUTPUT_LABELREF): Prevent warnings about redefinitions.
8290 (INCOMING_RETURN_ADDR_RTX): Only define if Dwarf2 is supported.
8291 (DWARF_FRAME_RETURN_COLUMN): Only define if Dwarf2 is supported.
8293 * config/arm/arm.c: (const_ok_for_arm): Use HOST_UINT.
8294 (arm_gen_constant): Use HOST_UINT.
8295 (arm_canonicalize_constant): Use HOST_UINT.
8296 (arm_reload_in_hi): Use HOST_UINT.
8297 (arm_reload_out_hi): Use HOST_UINT.
8298 (output_multi_immediate): Use HOST_UINT.
8299 (int_log2): Use HOST_UINT.
8300 (arm_poke_function_name): Use HOST_UINT.
8301 (arm_output_epilogue): Use arm_volatile_func().
8302 (output_thumb_prologue): Use arm_strip_name_encoding().
8304 Mon Apr 10 15:40:59 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8306 * sbitmap.c (sbitmap_a_subset_b_p): Rework loop to avoid potential
8307 of sequence point problems.
8309 2000-04-10 Nathan Sidwell <nathan@codesourcery.com>
8311 * rtl.def (ASHIFT, ROTATE, ASHIFTRT, LSHIFTRT, ROTATERT):
8313 * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Recomment.
8315 Mon Apr 10 07:21:13 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8317 * sbitmap.h: Whitespace changes and use upper-case macro args.
8318 (struct simple_bitmap_def): All sizes now unsigned.
8319 (EXECUTE_IF_SET_IN_SBITMAP): Internal vars now _X instead of X_.
8320 * sbitmap.c (sbitmap_alloc): N_ELMS now unsigned; also local vars.
8321 (sbitmap_vector_alloc): Parms and local vars now unsigned.
8322 (sbitmap_zero): Cast bzero arg to PTR.
8323 (sbitmap_vector_zero, sbitmap_vector_one): Parm and Local var unsigned.
8324 (sbitmap_union_of_diffs): Change loop index to unsigned and rework
8325 loop to make structure clearer.
8326 (sbitmap_not, sbitmap_difference, sbitmap_a_and_b): Likewise.
8327 (sbitmap_a_or_b, sbitmap_a_subset_b_p, sbitmap_a_or_b_and_c): Likewise.
8328 (sbitmap_a_and_b_or_c): Likewise.
8329 (sbitmap_intersection_of_succs): Minor cleanups.
8330 (sbitmap_intersection_of_preds, sbitmap_union_of_succs): Likewise.
8331 (sbitmap_union_of_preds): Likewise.
8332 (sbitmap_first_set_bit, dump_sbitmap): Local variables now unsigned.
8333 (debug_sbitmap): New function.
8335 * c-convert.c (convert): Handle REFERENCE_TYPE like POINTER_TYPE.
8336 * c-typeck.c (convert_for_assignment): Likewise.
8338 * expmed.c (init_expmed): Don't free objects we make.
8339 * emit-rtl.c (gen_rtx_CONST_INT, init_emit_once): Minor cleanups.
8341 * expr.c (get_inner_reference): Correct some WITH_RECORD_EXPR cases.
8342 (expand_expr, case CONVERT_EXPR): Pass proper alignment to store_field.
8344 * gcse.c (expr_hash_table_size): Now unsigned.
8345 (compute_ae_gen): Local variable `i' now unsigned.
8346 (compute_ae_kill, pre_insert_copies, pre_delete, pre_gcse): Likewise.
8347 (compute_transout, hoist_code): Likewise.
8348 (compute_local_properties): Likewise, also hash_table_size.
8349 (alloc_expr_hash_table): N_INSNS now unsigned.
8350 (delete_null_pointer_checks): Mark arg F as unused.
8352 * regrename.c: Minor cleanups, including chang some variables
8355 2000-04-10 Neil Booth <NeilB@earthling.net>
8357 * cpplex.c (skip_block_comment): Use pointer arithmetic rather
8359 * cpphash.h: (CPP_BUMP_BUFFER_LINE_CUR, CPP_BUMP_LINE_CUR): New.
8361 2000-04-10 Martin v. Löwis <loewis@informatik.hu-berlin.de>
8363 * invoke.texi (-fno-gnu-keywords): Remove classof, headof,
8364 __classof__, and __headof__ from the list of gnu keywords.
8365 (-ansi): Remove -foperator-names from list of implied options.
8366 Do not call it ANSI C++.
8367 (-foperator-names): Document as -fno-operator-names.
8369 2000-04-09 Zack Weinberg <zack@wolery.cumb.org>
8371 * cpphash.c (timestamp): Delete.
8372 (del_HASHNODE): If type is T_MCONST, free value.cpval.
8373 (special_symbol): Remove unnecessary braces. Remove
8374 T_VERSION. Treat T_STDC like T_CONST unless
8375 STDC_0_IN_SYSTEM_HEADERS. Render both __DATE__ and __TIME__
8376 when one is encountered, then convert them into T_MCONST
8378 * cppinit.c (builtin_array): version_string is T_MCONST.
8379 __STDC__ has a "1" in its cpval. Don't have a terminator
8380 entry. Clean up which entries are dumped.
8381 (initialize_builtins): Only __STDC__ gets the special
8382 -traditional treatment. Count the length of builtin_array.
8383 Render version_string here.
8384 * cpphash.h: Remove T_VERSION. Add T_MCONST.
8385 * cpplib.h (struct cpp_reader): Remove timebuf.
8387 2000-04-09 Richard Henderson <rth@cygnus.com>
8389 * genrecog.c (pred): Update comparison_operator for the unordered
8392 * config/i386/i386.c (no_comparison_operator): Disallow unordered
8394 (fcmov_comparison_operator): Allow UNORDERED/ORDERED.
8395 (uno_comparison_operator): New.
8396 (put_condition_code): Handle UNORDERED/ORDERED.
8397 (unsigned_comparison): Likewise.
8398 (ix86_fp_compare_mode): Broken out of ix86_expand_fp_compare.
8399 (ix86_use_fcomi_compare, ix86_prepare_fp_compare_args): Likewise.
8400 (ix86_expand_fp_compare): Use them. Take scratch as argument,
8401 update all callers. Handle all 8 unordered operators.
8402 (ix86_expand_setcc): Lose the unordered argument, update all callers.
8403 (ix86_expand_branch): Likewise. Don't fully expand fp branches.
8404 * config/i386/i386.h (PREDICATE_CODES): Update.
8405 * config/i386/i386-protos.h (ix86_expand_fp_compare): Declare.
8406 (ix86_expand_branch, ix86_expand_setcc): Update.
8407 * config/i386/i386.md (sunordered, sordered): New.
8408 (suneq, sunge, sungt, sunle, sunlt, sltgt): New.
8409 (bunordered, bordered): New.
8410 (buneq, bunge, bungt, bunle, bunlt, bltgt): New.
8411 (*fp_jcc_1, *fp_jcc_2, *fp_jcc_3, *fp_jcc_4): New.
8412 (*fp_jcc_5, *fp_jcc_6, and splitters): New.
8414 2000-04-09 Philip Blundell <philb@gnu.org>
8416 * config/arm/arm.h (ARM_NAME_ENCODING_LENGTHS): Strip `*' too.
8418 Sun Apr 9 15:16:14 EDT 2000 John Wehle (john@feith.com)
8420 * i386.md (fix_truncsfhi2, fix_truncdfhi2,
8421 fix_truncxfhi2): New patterns.
8422 * i386.c (output_fix_trunc): Handle converting to HImode.
8424 2000-04-08 Alex Samuel <samuel@codesourcery.com>
8426 * ssa.c (convert_to_ssa): Eliminate dead code when calling
8428 (convert_from_ssa): Call compute_bb_for_insn before life_analysis.
8429 (for_each_successor_phi): Change parameter to basic_block.
8430 (coalesce_regs_in_successor_phi_nodes): Likewise.
8431 (coalesce_regs_in_copies): Likewise.
8432 (compute_coalesced_reg_partition): Use basic_block instead of index.
8433 * rtl.h (convert_to_ssa): Delete.
8434 (convert_from_ssa): Likewise.
8435 (successor_phi_fn): Likewise.
8436 (for_each_successor_phi): Likewise.
8437 (in_ssa_form): Likewise.
8438 * basic-block.h (convert_to_ssa): Moved from rtl.h.
8439 (convert_from_ssa): Likewise.
8440 (successor_phi_fn): Likewise.
8441 (in_ssa_form): Likewise.
8442 (for_each_successor_phi): Likewise. Change parameter to basic_block.
8443 * flow.c (calculate_global_regs_live): Pass a basic_block to
8444 for_each_successor_phi.
8446 2000-04-08 Richard Henderson <rth@cygnus.com>
8448 * flow.c (mark_used_reg): Use reg_set_p to determine if a register
8449 was modified in the current insn.
8451 2000-04-08 Richard Earnshaw (rearnsha@arm.com)
8453 * arm/thumb.md: Delete.
8454 * arm/thumb-protos.h: Delete.
8456 2000-04-08 Richard Earnshaw (rearnsha@arm.com)
8458 Merge changes from merged-arm-thumb-backend-branch onto trunk.
8460 2000-04-08 Richard Earnshaw (rearnsha@arm.com)
8462 * Merge trunk code from tag merged-arm-thumb-backend-merge_20000408
8465 * arm.md (nop): Use the standard RTL expression. Don't code as a
8467 (*arm_nop, *thumb_nop): Delete.
8469 * arm.c (const_ok_for_arm): Don't use ANSI extensions for defining
8470 constants. Use casts instead.
8471 (arm_gen_constant, arm_rtx_costs, arm_reload_in_hi, arm_reload_out_hi,
8472 output_multi_immediate, arm_poke_function_name): Likewise.
8473 * arm.h (ARM_LEGITIIMIZE_RELOAD_ADDRESS, ARM_SIGN_EXTEND,
8474 MASK_RETURN_ADDDR): Likewise.
8476 2000-03-31 Richard Earnshaw (rearnsha@arm.com)
8478 * Merge trunk code from tag merged-arm-thumb-backend-merge_20000325
8481 * arm.md (eh_epilogue): New function.
8482 * arm.h (struct machine_function): Move to here ...
8483 * arm.c: ... from here.
8484 (arm_output_epilogue): Support epilogues for __builtin_eh_return.
8485 (thumb_exit): Extra parameter eh_ofs. All callers changed.
8486 Handle epilogues for __builtin_eh_return. Make bit-fields unsigned.
8488 2000-03-30 Nick Clifton <nickc@cygnus.com>
8490 * config/arm/semi.h (ASM_SPEC): Restore definition.
8491 (SUBTARGET_EXTRA_ASM_SPEC): Define if not already defined.
8493 * config/arm/elf.h (ASM_SPEC): Restore definition.
8494 (SUBTARGET_EXTRA_ASM_SPEC): Define if not already defined.
8496 * config/arm/arm.h (ASM_SPEC): Remove definition.
8497 (SUBTARGET_EXTRA_ASM_SPEC): Remove definition.
8499 2000-03-26 Bernd Schmidt <bernds@cygnus.co.uk>
8501 * config/arm/arm.c: Disable -fschedule-insns for Thumb.
8503 2000-03-24 Nick Clifton <nickc@cygnus.com>
8505 Various formating tidyups, elimination of compile time
8506 warnings and synchronisation with internal sources:
8508 * config/arm/arm-protos.h (assemble_align): Add prototype.
8509 (gen_rotated_half_load): Rename to arm_gen_rotated_half_load.
8510 (gen_comapre_reg): Rename to arm_gen_compare_reg.
8511 (arm_return_addr_rtx): Rename to arm_return_addr.
8513 * config/arm/arm.c: Include except.h.
8514 Define shorter typenames for strict minipool_node and struct
8516 (arm_return_in_memory): For WinCE return all structures <= 32 bits
8518 (gen_rotated_half_load): Rename to arm_gen_rotated_half_load.
8519 (gen_comapre_reg): Rename to arm_gen_compare_reg.
8521 * config/arm/arm.h (SUBTARGET_EXTRA_ASM_SPEC): Define if not
8523 (ASM_SPEC): Define if not already defined.
8524 (ASM_OUTPUT_DEF_FROM_DECLS): Define.
8526 * config/arm/arm.md: Rename references to gen_rotated_half_load to
8527 arm_gen_rotated_half_load, and references to gen_comapre_reg to
8528 arm_gen_compare_reg.
8529 (indirect_jump): Only accept register operands.
8530 (load_indirect_jump): Keep this pattern since combine can generate
8533 * config/arm/coff.h: Include aout.h.
8534 (MULTILIB_DEFAULTS): Only define if not already defined.
8536 * config/arm/elf.h (ASM_OUTPUT_DEF_FROM_DECLS): Move definition
8537 into arm.h (so that COFF ports can support thumb based aliases).
8538 (ASM_SPEC): Move definition into arm.h
8540 * config/arm/linux-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Remove
8541 redundant apcs spec.
8542 (ASM_SPEC): Move definition to arm.h
8544 * config/arm/semi.h (ASM_SPEC): Move definition to arm.h
8546 * config/arm/unknown-elf.h (ASM_OUTPUT_SECTION_NAME): Add support
8547 for entries in the .bss section
8549 2000-03-23 Nick Clifton <nickc@cygnus.com>
8551 * config/arm/arm.h (THUMB_INITIAL_ELIMINATION_OFFSET): Pass 0
8552 to thumb_far_jump_used_p.
8554 * config/arm/arm-protos.h (thumb_far_jump_used_p): Take a
8555 single integer parameter.
8557 * config/arm/arm.c (struct machine_function): Add two new
8558 fields, 'far_jump_used' and 'arg_pointer_live'.
8559 (thumb_far_jump_used_p): Once the decision has been made that
8560 far jumps might be used, always return true.
8561 If being called from the initial elimination offset macro then
8562 do not bother to perform the test if the arg pointer is not
8564 (thumb_unexpand_epilogue): Pass 1 to thumb_far_jump_used_p().
8565 (output_thumb_prologue): Pass 1 to thumb_far_jump_used_p().
8567 2000-03-23 Richard Earnshaw (rearnsha@arm.com)
8569 * arm.c (output_return_instruction): Handle more cases where we can
8570 return from a function with an ldr instruction.
8571 (arm_output_epilogue): Likewise.
8573 * arm.c (thumb_expand_prologue): Don't clobber the frame pointer
8574 if we need to push a large stack frame and there are no callee-saved
8577 * arm.c (arm_debugger_arg_offset): An offset of 0 is also valid
8578 in ARM code if the frame pointer has been eliminated.
8580 * arm.md (epilogue, *epilogue_insns, consttable_*, align_4): Renumber
8581 unspec_volatile arguments to avoid duplicates.
8582 (consttable_1, consttable_2): Fixes for big-endian mode.
8584 * arm.md (all ARM-mode load insns): Add neg_pool_range attribute
8587 Re-write constant pool code.
8588 * arm.c (minipool_node, minipool_fix): New types.
8589 (minifix): Delete type.
8590 (arm_add_minipool_constant): Delete.
8591 (arm_compute_minipool_offsets, arm_find_barrier,
8592 arm_find_minipool_constant, fixup_compare, sort_fixups): Likewise.
8593 (get_jump_table_size): Now returns HOST_WIDE_INT.
8594 (move_minipool_fix_forward_ref, add_minipool_forward_ref): New
8596 (move_minipool_fix_backward_ref, add_minipool_backward_ref): Likewise.
8597 (assign_minipool_offsets, arm_print_value): Likewise.
8598 (dump_minipool): Rewrite.
8599 (arm_barrier_cost): New function.
8600 (create_fix_barrier): New function.
8601 (push_minipool_barrier): New function.
8602 (push_minipool_fix): Record additional information about the fixup
8604 (note_invalid_constants): Remove push for (UNSPEC 3). Don't
8605 check the mode of what needs fixing.
8606 (arm_reorg): Rewrite.
8608 2000-03-08 Nick Clifton <nickc@cygnus.com>
8610 * config/arm/arm.md (indirect_jump): Force constant addresses into
8613 2000-03-01 Bernd Schmidt <bernds@cygnus.co.uk>
8615 * config/arm/arm.md: Add splitter to turn SF moves into SI moves.
8617 2000-02-24 Nick Clifton <nickc@cygnus.com>
8619 * config/arm/arm.c (thumb_expand_prologue): Make sure that stack
8620 adjust is word aligned.
8621 (thumb_expand_epilogue): Make sure that stack adjust is word
8624 * config/arm/elf.h (ASM_FILE_START): Fix type of version string.
8626 2000-02-24 Bernd Schmidt <bernds@cygnus.com>
8628 * config/arm/arm.h (THUMB_GO_IF_LEGITIMATE_ADDRESS): Allow frame
8629 pointer relative addresses.
8631 2000-02-10 Richard Earnshaw <rearnsha@arm.com>
8633 * arm.c (find_barrier): Find the last barrier within the allowed
8636 2000-02-09 Nick Clifton <nickc@cygnus.com>
8638 * config/arm/arm-protos.h: Replace PROTO with PARAMS.
8640 2000-02-09 Nick Clifton <nickc@cygnus.com>
8642 * config/arm/linux-elf.h (FUNCTION_PROFILER): Rename to
8643 ARM_FUNCTION_PROFILER.
8645 * config/arm/netbsd.h (FUNCTION_PROFILER): Rename to
8646 ARM_FUNCTION_PROFILER.
8648 * config/arm/linux-oldld.h: Imported from mainline sources.
8650 2000-02-07 Nick Clifton <nickc@cygnus.com>
8652 * config/arm/lib1funcs.asm: Merge in thumb functions from
8655 * config/arm/lib1thumb.asm: Delete.
8657 2000-02-04 Nick Clifton <nickc@cygnus.com>
8659 * config/arm/arm.c: Sychronised with current Red hat local
8661 * config/arm/arm.h: Ditto.
8662 * config/arm/arm-protos.h: Ditto.
8664 2000-02-02 Bernd Schmidt <bernds@cygnus.co.uk>
8666 * arm.c (soft_df_operand): Reject SUBREGs containing a constant.
8668 * arm.c (arm_gen_movstrqi): Generate halfword stores rather than two
8671 2000-02-02 Nick Clifton <nickc@cygnus.com>
8673 * config/arm/thumb.c (thumb_exit): Additional fix for same bug.
8675 * config/arm/arm.md (epilogue): Fix rtl checking abort because
8676 (return) was emited using an emit_insn() call.
8678 2000-01-31 Nick Clifton <nickc@cygnus.com>
8680 * config/arm/arm.c (output_thumb_prologue): Fix bug generating
8682 (thumb_exit): Move frame pointer back into hard frame pointer
8683 register if backtracing is being used.
8685 2000-01-13 Richard Earnshaw (rearnsha@arm.com)
8687 * Merge trunk code from tag merged-arm-thumb-backend-merge_20000113
8690 1999-12-15 Bernd Schmidt <bernds@cygnus.co.uk>
8692 * config/arm/arm.md (neg_pool_offset): Provide default for new
8694 (arm_movsi_insn): Add neg_pool_offset attribute.
8695 * config/arm/arm.c (arm_find_barrier): Replace arg FIX with an
8696 rtx for the insn that starts the scan and an unsigned long for its
8697 address. Add MIN_OFFSET and PINSERTED args. All callers changed.
8698 Change scan to ignore insns before MIN_OFFSET. Store size of inserted
8699 instructions in *PINSERTED.
8700 (struct minipool_fixup): Add MIN_ADDRESS elt.
8701 (sort_fixups): Compute it.
8702 (arm_reorg): Changes to support inserting pools before the insn to be
8705 1999-12-08 Bernd Schmidt <bernds@cygnus.co.uk>
8707 * config/arm/elf.h (MULTILIB_DEFAULTS): Add "marm".
8708 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Add "marm".
8709 * config/arm/coff.h (MULTILIB_DEFAULTS): Add "marm".
8711 Wed Nov 3 10:04:07 1999 Nick Clifton <nickc@cygnus.com>
8713 * config/arm/semi.h (TARGET_VERSION): Do not define if already
8715 (TARGET_DEFAULT): Do not define if already defined.
8717 Tue Nov 2 10:37:25 1999 Nick Clifton <nickc@cygnus.com>
8719 * config/arm/arm.md (anddi3): Allow disjoint source operands.
8720 (iordi3): Allow disjoint source operands.
8721 (xordi3): Allow disjoint source operands.
8722 (negdi2): Permit construction for ARM and Thumb.
8723 (arm_negdi2): Renamed version of old negdi2 pattern.
8724 (thumb_negdi2): New pattern: Only permit non-overlapping
8725 source and destination.
8727 Fri Oct 29 18:52:38 1999 Nick Clifton <nickc@cygnus.com>
8729 * config/arm/arm.c (thumb_expand_prologue): Emit a USE of the
8730 scratch low register so that it will not be deleted.
8732 Fri Oct 29 15:23:48 1999 Nick Clifton <nickc@cygnus.com>
8734 * config/arm/pe.h (ARM_PE): Define.
8736 * config/arm/arm.c (arm_valid_machine_decl_attribute): Allow
8737 interfacearm attribute if this is a PE toolchain.
8738 (output_return_instruction): Do not emit anything if the function
8739 has the naked attribute set.
8740 (is_called_in_ARM_mode): If the function has the interfacearm
8741 attribute then return true.
8742 (thumb_expand_prologue): Do not generate a prologue for naked
8744 (thumb_expand_epilogue): Do not generate an epilogie for a naked
8746 (output_thumb_prologue): Do not bother if the function is naked.
8747 Strip PE encoding from function name before emitting.
8749 Thu Oct 28 11:05:13 1999 Richard Earnshaw <rearnsha@arm.com>
8751 * arm.md (pic_load_addr): Fix constraints.
8753 * arm.md (casesi_insn): Fix mis-applied patch.
8755 * arm.md ("core" function unit): Add rules for single- and
8757 (All TARGET_THUMB patterns): Add "type" attribute information
8759 * arm.c (arm_adjust_cost): Reduce the cost of a data dependency if
8760 the following insn is a CALL.
8762 * arm.c (thumb_expand_epilogue): Add a use of the adjusted stack
8764 * arm.h (CONDITIONAL_REGISTER_USAGE): Nail down the
8765 ARM_HARD_FRAME_POINTER_REGNUM when TARGET_APCS_FRAME.
8766 (FRAME_POINTER_REQUIRED): Only check TARGET_APCS_FRAME if TARGET_ARM.
8768 Wed Oct 27 14:40:48 1999 Nick Clifton <nickc@cygnus.com>
8770 * config/arm/linux-gas.h: oops - this file was missed out when the
8771 branch was created...
8773 Tue Oct 26 17:07:38 1999 Richard Earnshaw <rearnsha@arm.com>
8775 * thumb.c: Deleted. Move contents to ...
8777 * t-arm-aout, t-arm-coff, t-arm-elf, t-linux, t-netbsd, t-semi: Remove
8779 * configure.in (arm*-*-*): Remove thumb.o from extra_objs list.
8782 * arm-protos.h: Use RTX_CODE and tidy up long lines. Don't
8783 declare a prototype for asm_output_align();
8785 * arm.c (thumb_condition_code): Delete.
8786 (arm_print_operand): Always use arm_condition_code array.
8788 * arm.c (thumb_return_addr_rtx): Delete.
8789 (arm_save_machine_status, arm_restore_machine_status): Delete.
8790 (arm_init_machine_status, arm_mark_machine_status): New functions.
8791 (arm_init_expanders): Update accordingly.
8792 (arm_return_addr): Renamed from arm_return_addr_rtx. Rewrite.
8793 (thumb_expand_prologue): Delete code referencing thumb_return_addr_rtx.
8794 * arm.h (RETURN_ADDR_RTX): Call arm_return_addr().
8796 Tue Oct 26 13:24:16 1999 Nick Clifton <nickc@cygnus.com>
8798 * configure.in : Fix arm-*-aout target to use new t-arm-aout
8800 * config/arm/t-arm-aout: New file: Makefile script for arm-*-aout
8803 Tue Oct 26 11:27:12 1999 Nick Clifton <nickc@cygnus.com>
8805 * config/arm/thumb.c (output_thumb_prologue): Fix bug creating
8806 stack backtrace structure.
8808 * config/arm/arm-protos.h: Add prototypes for functions defined in
8811 * config/arm/arm.c (arm_override_options): Fix selection of
8812 attributes of default processor.
8814 * config/arm/coff.h: Delete needless #include.
8816 * config/arm/pe.c: Delete unused code.
8818 * config/arm/pe.h (CPP_DEFINES): Delete
8819 (SUBTARGET_CPP_SPEC): Define.
8820 (ASM_DECLARE_FUNCTION_NAME): Use ARM_DECLARE_FUNCTION_NAME.
8822 * config/arm/t-pe: Add -DInhibit_libc to allof libgcc.a to build.
8824 Mon Oct 25 15:42:09 1999 Richard Earnshaw (rearnsha@arm.com)
8826 * arm.h (TARGET_APCS_FRAME): Renamed from TARGET_APCS -- all uses
8828 (CAN_DEBUG_WITHOUT_FP): Define.
8829 (FIXED_REGISTERS): Make r11 call-saved.
8830 (CALL_USED_REGISTERS): Likewise.
8831 (CONDITIONAL_REGISTER_USAGE): Fix r11 if TARGET_APCS_FRAME.
8832 (FRAME_POINTER_REQUIRED): Correct logic for determining when a
8833 frame-pointer is required.
8834 (TARGET_DEFAULT): Make default setting include ARM_FLAG_APCS_FRAME.
8835 * arm.c (arm_override_options): Warn about -mno-apcs-frame and -g
8836 if the target normally needs a stack frame in non-leaf functions.
8837 (use_return_insn): Correct logic for determining when a return
8838 instruction can be used.
8839 (output_return_instruction): Handle the frame-pointer register as
8840 a normal register when not TARGET_APCS_FRAME.
8841 (arm_output_prologue): Likewise.
8842 (arm_output_epilogue): Likewise.
8843 (output_func_epilogue): Likewise.
8844 (arm_expand_prologue): Likewise.
8845 * netbsd.h semi.h (TARGET_DEFAULT): Add ARM_FLAG_APCS_FRAME.
8847 * arm.c (use_return_insn): No need to check floating point regs if
8849 (arm_find_minipool_constant): Correct typo; use GET_CODE to get
8850 the code of value stored in the minipool array.
8851 (arm_add_minipool_constant): Likewise.
8853 2000-04-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8855 * basic-block.h (conflict_graph_enum_fn): K&R fix.
8857 2000-04-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8859 * tree.c (tree_expr_nonnegative_p): New function.
8861 * tree.h (tree_expr_nonnegative_p): Declare.
8863 * c-typeck.c (build_binary_op): Call `tree_expr_nonnegative_p' to
8864 elide some sign_compare warnings.
8865 (build_conditional_expr): Likewise.
8867 Sat Apr 8 00:21:51 EDT 2000 John Wehle (john@feith.com)
8869 * i386.md (ashrsi3, ashrhi3, ashrqi3): Fix typo.
8871 * i386.md (floathisf2, floathidf2, floathixf2): New patterns.
8872 * i386.c (print_operand): Use the proper suffix for a 387 HImode
8873 operand. Abort if a 387 operand has an unsupported size.
8875 2000-04-08 Neil Booth <NeilB@earthling.net>
8877 * cppexp.c (parse_charconst): Null does not end character
8879 * cppinit.c (ISTABLE): Null character handled as whitespace.
8880 * cpplex.c (null_warning): new function.
8881 (skip_string): Emit warning if nulls encountered.
8882 (_cpp_skip_hspace): Emit warning if nulls encountered.
8883 (_cpp_lex_token): Emit warning if nulls encountered. Drop
8887 2000-04-07 Richard Henderson <rth@cygnus.com>
8889 * flow.c (loop_depth): Remove.
8890 (reg_next_use, cc0_live, mem_set_list): Replace with ...
8891 (struct propagate_block_info): New.
8892 (life_analysis): Don't allocate reg_next_use.
8893 (propagate_block_delete_insn): Break out of propagate_block.
8894 Use flow_delete_insn to unlink rather than use NOTE_INSN_DELETED.
8895 (propagate_block_delete_libcall): Likewise.
8896 (propagate_block): Create a propagate_block_info struct to pass
8897 to subroutines. Allocate one not two temporary regsets. Don't
8898 clobber memory for const calls. Look for clobbers in
8899 CALL_INSN_FUNCTION_USAGE.
8900 (mark_set_regs): Recognize COND_EXEC.
8901 (mark_set_reg): Break out of mark_set_1.
8902 (mark_used_reg): Break out of mark_used_regs.
8903 (mark_used_regs): Recognize COND_EXEC.
8904 (insn_dead_p): Use propagate_block_info struct.
8905 (libcall_dead_p, invalidate_mems_from_autoinc): Likewise.
8906 (find_auto_inc, try_pre_increment_1): Likewise.
8907 (print_rtl_with_bb): Dump regs live at end too.
8908 (count_reg_sets_1): Pass in loop_depth.
8909 (count_reg_sets, count_reg_references): Likewise.
8910 (recompute_reg_usage): Provide it.
8912 2000-04-07 Richard Henderson <rth@cygnus.com>
8914 * Makefile.in (conflict.o): Depend on $(RTL_H) and $(BASIC_BLOCK_H)
8917 2000-04-07 Zack Weinberg <zack@wolery.cumb.org>
8919 * cpplib.c (do_elif): Skip the rest of the line if we're
8920 not going to bother evaluating it.
8921 (skip_if_group): Clear pfile->only_seen_white. Reorder loop
8922 to avoid pointless calls to the lexer.
8924 Fri Apr 7 11:50:54 2000 Jim Wilson <wilson@cygnus.com>
8926 * config/ia64/ia64.c: Delete stdio.h and ctype.h includes.
8928 2000-04-07 Jason Merrill <jason@casey.cygnus.com>
8930 * calls.c (expand_call): emit_queue if we're trying a sibcall.
8932 2000-04-07 Jakub Jelinek <jakub@redhat.com>
8934 * config/sparc/t-linux64 (tcrtbeginS.o, tcrtendS.o): Remove.
8936 2000-04-06 Geoff Keating <geoffk@cygnus.com>
8938 * Makefile.in: Build crtbeginS and crtendS like crtbegin and
8939 crtend so they can be multilibbed.
8940 (STAGESTUFF): Remove s-crt and s-crtS.
8942 2000-04-07 Richard Henderson <rth@cygnus.com>
8944 * config/alpha/alpha.c (alpha_emit_conditional_move): Fail
8945 if we discover we need a pseudo and no_new_pseudos is true.
8946 * config/alpha/alpha.md (ne:DI insn): New.
8947 (trunctfsf2, sne): Emit NE instead of non-canonical LTU.
8949 2000-04-07 Richard Henderson <rth@cygnus.com>
8951 * rtl.def (COND_EXEC): New.
8952 * rtl.h (COND_EXEC_TEST, COND_EXEC_CODE): New.
8953 * tm.texi (MAX_CONDITIONAL_EXECUTE): Document.
8955 * genconfig.c (have_cond_arith_flag): Remove.
8956 (have_cond_exec_flag): New.
8957 (walk_insn_part): Detect COND_EXEC, not arithmetic in IF_THEN_ELSE.
8958 (main): Print HAVE_conditional_execution.
8960 * haifa-sched.c (haifa_classify_insn): Recognize COND_EXEC.
8961 (sched_analyze_insn, print_pattern): Likewise.
8962 * reload.c (find_equiv_reg): Likewise.
8963 * rtlanal.c (reg_referenced_p): Likewise.
8964 (note_stores, dead_or_set_regno_p): Likewise.
8965 (reg_overlap_mentioned_p): Rewrite to use a switch.
8967 * ggc.h (struct rtx_def): Forward declare.
8969 * print-rtl.c (debug_rtx_range): New.
8970 * rtl.h (debug_rtx_range): Declare.
8972 * varray.h (VARRAY_ACTIVE_SIZE, VARRAY_POP_ALL): New.
8974 * gcse.c (gcse_main): Don't rebuild the CFG here.
8975 (delete_null_pointer_checks): Likewise.
8976 * ssa.c (convert_to_ssa): Likewise.
8977 * toplev.c (rest_of_compilation): Do it here instead. Combine
8978 sequential calls to TIMEVAR. Consistently use `insns' instead of
8979 `get_insns()'. Always split insns after reload when optimizing.
8981 * basic-block.h (merge_blocks_nomove): Declare.
8982 (tidy_fallthru_edge): Declare.
8983 * flow.c (merge_blocks_nomove): Document as merging into previous
8984 blocks. Remove cruft from between blocks; remove all edges out of A.
8985 (tidy_fallthru_edge): Export.
8987 2000-04-06 Alex Samuel <samuel@codesourcery.com>
8989 * ssa.c (compute_conservative_reg_partition): Declare with
8991 * toplev.c (clean_dump_file): Remove previously-deleted function
8992 inadvertantly merged back in.
8993 * conflict.c (conflict_graph_add): Use a single call to
8994 htab_find_slot to look up and insert.
8996 2000-04-06 Richard Henderson <rth@cygnus.com>
8998 * genrecog.c (*): Rename _last_insn to last_insn.
8999 (make_insn_sequence): Set the position of the peephole2 C test
9000 to be at the last insn.
9002 2000-04-06 Richard Henderson <rth@cygnus.com>
9004 * flow.c (compute_flow_dominators): Free worklist.
9006 2000-04-06 Michael Matz <matzmich@cs.tu-berlin.de>
9008 * flow.c (compute_flow_dominators): Process blocks FIFO not LIFO.
9010 2000-04-06 Alex Samuel <samuel@codesourcery.com>
9012 * rtl.h (INSN_P): New macro.
9013 (successor_phi_fn): New typedef.
9014 (for_each_successor_phi): New prototype.
9015 (in_ssa_form): New variable.
9016 (PHI_NODE_P): Likewise.
9017 * flow.c (calculate_global_regs_live): Add to new_live_at_end from
9018 phi nodes in successors.
9019 (mark_used_regs): Add PHI case.
9020 (set_phi_alternative_reg): New function.
9021 (life_analysis): Assert that dead code elimination is not selected
9023 * toplev.c (to_ssa_time): New variable.
9024 (from_ssa_time): Likewise.
9025 (compile_file): Zero to_ssa_time and from_ssa_time.
9026 Print time to convert to and from SSA.
9027 (rest_of_compilation): Time convert_to_ssa and convert_from_ssa.
9028 (print_time): Compute percent fraction as integer.
9029 * ssa.c (PHI_NODE_P): Moved to rtl.h.
9030 (convert_to_ssa): Check if we're already in SSA.
9031 Don't eliminate dead code in life_analysis.
9032 Rerun flow and life analysis at bottom.
9033 (eliminate_phi): Use canonical regnos when adding nodes.
9034 (mark_reg_in_phi): New function.
9035 (mark_phi_and_copy_regs): Likewise.
9036 (convert_from_ssa): Rerun life analysis at top.
9037 Use coalesced partition.
9038 Check for removing a phi node at the end of the block.
9039 (compute_coalesced_reg_partition): New function.
9040 (coalesce_regs_in_copies): Likewise.
9041 (coalesce_reg_in_phi): Likewise.
9042 (coalesce_regs_in_sucessor_phi_nodes): Likewise.
9043 (for_each_successor_phi): Likewise.
9044 (rename_context): New struct.
9045 (rename_block): Use a rename_context with rename_insn_1. When
9046 renaming sets of a subreg, emit a copy of the entire reg first.
9047 (rename_insn_1): Treat data as a rename_context *. Save current
9049 (rename_set_data): Add field set_insn.
9050 * Makefile.in (HASHTAB_H): Move up in file.
9051 (OBSTACK_H): New macro.
9052 (collect2.o): Use OBSTACK_H in dependencies.
9053 (sdbout.o): Likewise.
9054 (emit-rtl.o): Likewise.
9055 (simplify-rtx.o): Likewise.
9056 (fix-header.o): Likewise.
9057 (OBJS): Add conflict.o.
9058 (conflict.o): New rule.
9059 * basic-block.h: Include partition.h.
9060 (conflict_graph): New typedef.
9061 (conflict_graph_enum_fn): Likewise.
9062 (conflict_graph_new): New prototype.
9063 (conflict_graph_delete): Likewise.
9064 (conflict_graph_add): Likewise.
9065 (conflict_graph_conflict_p): Likewise.
9066 (conflict_graph_enum): Likewise.
9067 (conflict_graph_merge_regs): Likewise.
9068 (conflict_graph_print): Likewise.
9069 (conflict_graph_compute): Likewise.
9070 * conflict.c: New file.
9072 2000-04-06 Jason Merrill <jason@yorick.cygnus.com>
9074 * tlink.c (read_repo_files): Don't look for .rpo info for
9077 Thu Apr 6 20:39:26 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
9079 * sh.h (STRUCT_VALUE, RETURN_IN_MEMORY): Define.
9081 Thu Apr 6 19:34:08 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
9083 * config/sh/lib1funcs.asm (___udivsi3_i4):
9084 ( __SH4_SINGLE__ / __SH4_SINGLE_ONLY__ variant): value for fpscr
9085 only depends on FMOVD_WORKS.
9087 Thu Apr 6 19:11:47 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
9089 * config/sh/lib1funcs.asm (___udivsi3_i4): When using fmovd,
9090 make double constant 8-byte aligned.
9092 2000-04-06 Jakub Jelinek <jakub@redhat.com>
9094 * config/sparc/sparc.md (movtf_insn_sp32, movtf_insn_vis_sp32,
9095 movtf_no_e_insn_sp32, movtf_insn_hq_sp64, movtf_insn_hq_vis_sp64,
9096 movtf_no_e_insn_sp64): Accept loading 0.0 into GENERAL_REGS.
9097 (movtf_insn_sp64, movtf_insn_vis_sp64): Likewise.
9098 Accept storing GENERAL_REGS into offsetable memory.
9099 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Don't allow
9100 building a TFmode constant other than 0.0L into GENERAL_REGS.
9102 2000-04-06 Clinton Popetz <cpopetz@cygnus.com>
9104 * regrename.c (regrename_optimize): Handle no REG_ALLOC_ORDER.
9106 2000-04-06 Zack Weinberg <zack@wolery.cumb.org>
9108 * cpphash.c (CPP_IS_MACRO_BUFFER, FORWARD, PEEKC): Delete.
9109 (macro_cleanup): No need to cast pbuf->macro.
9110 (collect_expansion): Use _cpp_get_define_token. Goto done if
9111 it returns VSPACE. Remove check for trailing space after
9113 (_cpp_create_definition): Don't diddle flags here. Return
9115 (unsafe_chars): Handle c1 being EOF.
9116 (push_macro_expansion): Use unsafe_chars for both accidental-paste
9117 checks. Don't push the buffer till after we're done with
9119 * cpplex.c (PEEKBUF, GETBUF, FORWARDBUF): New.
9120 (PEEKN, FORWARD, GETC, PEEKC): Use them.
9121 (cpp_push_buffer): Don't set new->alimit. Set new->mark
9123 (_cpp_parse_assertion): Don't NUL terminate.
9124 (_cpp_lex_token): Fix -traditional macro handling. Don't skip
9125 hspace before calling _cpp_parse_assertion. Remove all sets
9126 of only_seen_white. Treat '\f' as hspace. Don't do anything
9127 special with '\n' here.
9128 (maybe_macroexpand): Handle T_EMPTY hash entries without
9129 pushing a buffer at all.
9130 (cpp_get_token): Handle clearing only_seen_white here. Handle
9131 incrementing the line number here. Clear
9132 potential_control_macro as well as only_seen_white, if
9134 (cpp_get_non_space_token): Don't eat CPP_POP tokens.
9135 (_cpp_get_define_token): New function, basically like
9136 _cpp_get_directive_token was but doesn't eat horizontal space.
9137 Don't do anything with only_seen_white here.
9138 (_cpp_get_directive_token): Just call _cpp_get_define_token
9139 repeatedly till it returns non-hspace.
9141 * cpplib.c (PEEKN, FORWARD, GETC, PEEKC): Delete.
9142 (conditional_skip, skip_if_group): Return int.
9143 (DIRECTIVE_TABLE): Change origin of all conditional directives
9145 (TRAD_DIRECT_P): New macro.
9146 (_cpp_handle_directive): Use _cpp_get_directive_token. Issue
9147 an error for a bogus directive, unless -lang-asm. Use
9148 TRAD_DIRECT_P. Loop calling handler functions till one returns
9150 (get_macro_name): Don't diddle flags here.
9151 (do_define): Diddle flags here. Use _cpp_get_directive_token.
9152 Create T_EMPTY nodes for #define macro /* nothing */.
9153 (do_undef): Don't copy the name. Use _cpp_get_directive_token.
9154 Use hp->name when calling pass_thru_directive.
9155 (do_if, do_else, do_elif, do_ifdef, do_ifndef, conditional_skip):
9156 Return the result of conditional_skip and/or skip_if_group.
9157 Don't call _cpp_output_line_command.
9158 (consider_directive_while_skipping): Use _cpp_get_directive_token.
9159 Issue -Wtraditional warnings as appropriate. Don't complain
9160 about unrecognized directives. If we are to stop skipping,
9161 return the number of the directive that ended the skip.
9162 (skip_if_group): Use _cpp_get_directive_token. Turn off macro
9163 expansion and line commands while skipping. Return the result
9164 of consider_directive_while_skipping, if nonzero.
9165 (do_endif): Just set potential_control_macro here.
9166 (validate_else): Use _cpp_get_directive_token.
9167 (do_assert, do_unassert): Don't save pointers into the
9168 token_buffer across calls to the lexer. Use
9169 _cpp_get_directive_token.
9171 * cpplib.h (cpp_buffer): Remove alimit and colno. Make mark a
9172 pointer, not an offset. Replace 'data', which was a generic
9173 pointer, with 'macro', which points to a struct hashnode.
9174 (cpp_reader): Add 'potential_control_macro' pointer.
9175 * cpphash.h (T_UNUSED): Replace with T_EMPTY.
9176 (CPP_BUF_GET, CPP_FORWARD): Delete.
9177 (CPP_IN_COLUMN_1, ADJACENT_TO_MARK): New macros.
9178 (CPP_IS_MACRO_BUFFER, CPP_SET_BUF_MARK, CPP_GOTO_BUF_MARK,
9179 ACTIVE_MARK_P): Update.
9180 (_cpp_get_define_token): New internal function.
9181 * cppfiles.c (read_include_file): Don't set fp->alimit or fp->colno.
9183 2000-04-05 Benjamin Kosnik <bkoz@cygnus.com>
9185 * configure.in: And here.
9186 * configure: Regenerate.
9187 * acconfig.h: Add ENABLE_STD_NAMESPACE to set flag_honor_std if
9188 --enable-libstdcxx-v3 is passed at configure time.
9189 * config.h.in: Regenerate.
9191 2000-04-05 Mark Mitchell <mark@codesourcery.com>
9193 * final.c (final): Use xcalloc to allocate line_note_exists.
9194 * function.c (free_after_compilation): Free the temp_slots.
9195 (assign_stack_temp_for_type): Use xmalloc to allocate temp_slots.
9196 (combine_temp_slot): Free temp_slots when they get combined.
9197 (purge_addressof): Fix typo in comment.
9198 * stmt.c (mark_goto_fixup): Mark the fixup itself.
9199 (expand_fixup): Allocate the fixup with ggc_alloc_obj.
9201 * ggc.h: Include varray.h.
9202 (ggc_pending_trees): Declare.
9203 (ggc_mark_tree_children): Remove declaration.
9204 (ggc_mark_tree): Just push unmarked trees on ggc_pending_trees.
9205 * ggc-common.c (ggc_pending_trees): New variable.
9206 (ggc_mark_roots): Call ggc_mark_trees.
9207 (ggc_mark_tree_children): Rename to ggc_mark_trees. Process all
9208 the ggc_pending_trees.
9209 * Makefile.in (GGC_H): New variable. Use it throughout in place
9212 Thu Apr 6 00:30:50 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
9214 * sh.h (FUNCTION_ARG_PARTIAL_NREGS): Accomodate an unsigned
9217 Wed Apr 5 23:17:10 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
9219 * sh.c (sh_insn_length_adjustment): New function.
9220 * sh-protos.h (sh_insn_length_adjustment): Declare.
9221 * sh.h (ADJUST_INSN_LENGTH): Use it.
9223 Wed Apr 5 12:35:18 2000 Hans-Peter Nilsson <hp@axis.com>
9225 * optabs.c (emit_libcall_block): Remove spurious REG_EQUAL notes
9226 from the insn where REG_RETVAL is added.
9227 (emit_no_conflict_block): Ditto.
9229 * md.texi (Standard Names): Clarify when movX is needed.
9231 * combine.c (simplify_comparison) [MINUS]: Do not replace
9232 all (op (minus A B) 0) with (op A B).
9234 Wed Apr 5 18:03:31 2000 Toshiyasu Morita (toshi.morita@sega.com)
9235 J"orn Rennecke <amylaar@cygnus.co.uk>
9237 * sh.md (block_lump_real_i4): Add missing clobber of T_REG
9238 (block_lump_real): Likewise.
9240 2000-04-05 Chris Demetriou <cgd@netbsd.org>
9242 * mips.h (MASK_DEBUG_A, MASK_DEBUG_B, MASK_DEBUG_C): Zero the
9243 remaining non-zero debugging masks.
9245 Wed Apr 5 09:44:07 2000 Jeffrey A Law (law@cygnus.com)
9247 * basic-block.h (verify_flow_info): Declare.
9248 (flow_loop_outside_edge_p): Declare.
9249 * flow.c (verify_flow_info): Remove declaration.
9250 (clear_log_links, flow_loop_outside_edge_p): Likewise.
9252 Wed Apr 5 09:34:26 2000 Philippe De Muyter <phdm@macqel.be>
9254 * m68k/m68k-protos.h (finalize_pic): Turn prototype off using `#if 0',
9257 2000-04-05 Jakub Jelinek <jakub@redhat.com>
9259 * config/sparc/sparc.md (snedi_zero+1, neg_snedi_zero+1,
9260 snedi_zero_trunc+1, seqdi_zero+1, neg_seqdi_zero+1,
9261 seqdi_zero_trunc+1): Allow splits only if registers are
9264 2000-04-04 Ulrich Drepper <drepper@cygnus.com>
9266 * acconfig.h: Add HAVE_GAS_HIDDEN.
9267 * config.in: Regenerated.
9268 * configure.in: Add test for .hidden pseudo-op in gas.
9269 * configure: Regenerated.
9270 * crtstuff.c: Include auto-host.h.
9271 Emit additional .hidden pseudo-op for __dso_handle if the
9272 assembler knows about it.
9274 2000-04-04 Philippe De Muyter <phdm@macqel.be>
9276 * cpphash.c (_cpp_free_definition): Test argnames, not nargs >= 0,
9277 before freeing argnames.
9278 * cpplib.c (do_ifndef): Cast return value of xstrdup.
9280 2000-04-05 Michael Meissner <meissner@redhat.com>
9282 * config/rs6000/rs6000.c (print_operand): Patch from Jonathan
9283 Walton <jonboy@gordian.com> to make memory references with update
9284 work wtih -mregnames.
9286 2000-04-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9288 * regrename.c (regno_first_use_in): Wrap prototype in PARAMS.
9289 (regrename_optimize): Rename variables `def_uses' and
9290 `ext_basic_blocks' to avoid conflicts with similarly named
9291 typedefs in traditional C.
9293 * calls.c (initialize_argument_information): Fix typo in previous
9296 2000-04-04 Richard Henderson <rth@cygnus.com>
9298 * regrename.c (consider_available): Test fixed_regs not
9299 PIC_OFFSET_TABLE_REGNUM.
9301 2000-04-04 Geoff Keating <geoffk@cygnus.com>
9303 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbegin,
9305 (CRTSTUFF_T_CFLAGS_S): Delete definition.
9306 * config/rs6000/sysv4.h (STARTFILE_LINUX_SPEC): Always use crtbegin.
9307 (ENDFILE_LINUX_SPEC): Always use crtend.
9308 * configure.in (powerpc-*-linux-gnulibc1): Don't define extra_parts.
9309 (powerpc-*-linux-gnu): Likewise.
9310 * configure: Regenerate.
9312 * config/rs6000/eabi.h: Don't include sysv4.h.
9313 (MULTILIB_DEFAULTS): Don't define.
9314 * config/rs6000/eabiaix.h: Don't include eabi.h.
9315 * config/rs6000/eabile.h: Delete.
9316 * config/rs6000/eabilesim.h: Delete.
9317 * config/rs6000/eabisim.h: Don't include eabi.h.
9318 * config/rs6000/linux.h: Don't include sysv4.h.
9319 (JUMP_TABLES_IN_TEXT_SECTION): Don't redefine.
9320 (MULTILIB_DEFAULTS): Don't redefine.
9321 * config/rs6000/rtems.h: Don't include eabi.h.
9322 * config/rs6000/sol2.h: Don't include sysv4le.h.
9323 * config/rs6000/sysv4le.h: Don't include sysv4.h.
9324 * config/rs6000/t-ppc: Delete.
9325 * config/rs6000/t-ppcgas: Correct comment.
9326 * config/rs6000/t-ppcos: Correct comment. Don't build
9327 multilibs for -fPIC, rather use -fPIC -mstrict-align
9329 * config/rs6000/t-ppc: Delete.
9330 * config/rs6000/vxppc.h: Don't include sysv4.h.
9331 * config/rs6000/vxppcle.h: Delete.
9332 * configure.in: Use multiple header files for p2pc ELF targets
9333 powerpc-eabiaix, powerpc-eabisim, powerpc-rtems, powerpcle-eabi,
9334 powerpcle-eabisim, powerpc-elf, powerpcle-elf, powerpc-linux-gnu,
9335 powerpc-linux-gnulibc1, powerpc-sysv, powerpcle-sysv,
9336 powerpc-vxworks, powerpcle-vxworks. Assume GAS functionality is
9337 always available for these platforms.
9339 2000-04-04 Richard Henderson <rth@cygnus.com>
9341 * calls.c (try_to_integrate): Initialize reg_parm_stack_space.
9343 2000-04-04 Stan Cox <scox@cygnus.com>
9345 * Makefile.in: Add rules for regrename.o
9346 * regrename.c: New file.
9347 * rtl.h (regrename_optimize): Add prototype.
9348 * toplev.c (rename_registers_dump, flag_rename_registers): New variables
9349 (compile_file, decode_d_option): Add support for -frename-registers.
9350 (rest_of_compilation): Call regrename_optimize.
9351 * config/ia64/ia64.h (HARD_REGNO_RENAME_OK, RENAME_EXTENDED_BLOCKS):
9354 2000-04-04 Martin v. Löwis <loewis@informatik.hu-berlin.de>
9356 * Makefile (gccbug): New target.
9357 (doc): Depend on it.
9358 * gcc.texi (Bugs): Link subnodes.
9360 * gccbug.in (CATEGORIES): Remove gc, host, profiling, libgcc.
9361 Document severities, priorities, and classes in bug form.
9363 2000-04-04 Zack Weinberg <zack@wolery.cumb.org>
9365 * cpplex.c (trigraph_map, speccase): Combine into single
9367 (NORMAL, NONTRI): New macros.
9368 (_cpp_read_and_prescan): Change to use unified table. Use
9369 is_hspace to test for whitespace.
9371 * dbxout.c (CONTIN): If it doesn't have to do anything, give it a
9372 definition that doesn't provoke the "empty body in an
9373 if-statement" warning.
9375 2000-04-04 Clinton Popetz <cpopetz@cygnus.com>
9377 * builtins.c (expand_builtin_strlen): Force the source to
9378 be a memory address.
9380 2000-04-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9382 * cpplib.c (D): Adjust to call CONCAT2 macro without whitespace.
9384 Tue Apr 4 19:17:20 MET DST 2000 Jan Hubicka <jh@suse.cz>
9386 * calls.c (ECF_MALLOC, ECF_MAY_BE_ALLOCA, ECF_RETURNS_TWICE,
9387 ECF_LONGJMP, ECF_FORK_OR_EXEC): New constants.
9388 (ECF_IS_CONST): Rename to ECF_CONST.
9389 (special_function_p): Make static, change interface.
9390 (flags_from_decl_or_type, try_to_integrate): Break out from ...
9391 (expand_call) ... here; convert number of variables to flags.
9392 (emit_library_call_vlue_1): Likewise.
9393 (setjmp_call_p): New function.
9394 (initialize_argument_information): Accepts flags as argument;
9396 (precompute_arguments): Likewise.
9397 * tree.h (special_function_p): Remove.
9398 (setjmp_call_p): Add prototype.
9400 2000-04-04 Jakub Jelinek <jakub@redhat.com>
9402 * config/sparc/sparc.h (RTX_OK_FOR_OFFSET_P): Leave minor margin
9403 so that addresses are offsetable by up to 16 bytes.
9404 (GO_IF_LEGITIMATE_ADDRESS): Don't allow REG+REG addresses for
9405 non-optimizing TARGET_ARCH32 in DF or DI modes because it is not
9408 * config/sparc/sparc.md (movdi_insn_sp64_novis): New pattern.
9409 (movdi_insn_sp64_vis): Renamed from movdi_insn_sp64.
9410 (movsf): Don't force any constant to memory if target is integer
9412 Move fp_zero_operand check below the const0_rtx check.
9413 (movtf): Likewise. Also allow fp_zero_operand for stores into
9415 (movdf): Likewise. Also allow fp_zero_operand for stores into
9416 memory and into integer hard registers.
9417 (clear_df, clear_dfp, movdf_const_intreg_sp32,
9418 movdf_const_intreg_sp64): Remove.
9419 (movdf_insn_sp32, movdf_no_e_insn_sp32): Redo constraints and
9421 (movdf_no_e_insn_v9_sp32): New pattern.
9422 (movdf_insn_v9only): Remove.
9423 (movdf_insn_v9only_novis, movdf_insn_v9only_vis): New patterns.
9424 (movdf_insn_sp64): Remove.
9425 (movdf_insn_sp64_novis, movdf_insn_sp64_vis): New patterns.
9426 (movdf_no_e_insn_sp64): Allow storing 0.0 into memory.
9427 (following splits): Rewrite conditions. Add two new splits
9428 for storing 0.0 into memory and registers.
9429 (clear_tf, clear_tf+1, clear_tfp, clear_tfp+1): Remove.
9430 (movtf_insn_sp32): Redo constraints and conditions.
9431 (movtf_insn_vis_sp32): New pattern.
9432 (movtf_no_e_insn_sp32): Redo constraints and conditions.
9433 (movtf_insn_hq_sp64): Likewise.
9434 (movtf_insn_hq_vis_sp64): New pattern.
9435 (movtf_insn_sp64): Redo constraints and conditions.
9436 (movtf_insn_vis_sp64): New pattern.
9437 (movtf_no_e_insn_sp64): Redo constraints and conditions.
9438 (movtf_no_e_insn_sp64+1): New split for storing 0.0L into registers
9440 * config/sparc/sparc.c (sparc_override_options): Assume v9 if either
9441 -mvis or -m64 to take down the number of various reload patterns.
9443 Tue Apr 4 00:41:53 2000 Jeffrey A Law (law@cygnus.com)
9445 * pa/pa-64.h: New file.
9446 * pa/pa64-regs.h: New file.
9447 * pa/pa64-start.h: New file.
9448 * pa/t-pa64: New file.
9449 * pa/xm-pa64hpux.h: New file.
9451 2000-04-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9453 * sparc.c (output_restore_regs): Prototype.
9454 (sparc_emit_float_lib_cmp): Constification.
9456 * emit-rtl.c (const_int_htab_hash, const_int_htab_eq): Likewise.
9458 * reload1.c (reload_cse_delete_noop_set, reload_cse_simplify):
9461 * simplify-rtx.c (entry_and_rtx_equal_p): Constification.
9462 (get_value_hash, hash_rtx): Likewise.
9464 * ssa.c (compute_conservative_reg_partition): Prototype.
9466 * tree.c (mark_hash_entry): Prototype.
9468 2000-04-03 Zack Weinberg <zack@wolery.cumb.org>
9470 * bb-reorder.c (verify_insn_chain): #ifdef out unless ENABLE_CHECKING.
9471 * i386.h (FUNCTION_ARG_REGNO_P): Remove unnecessary test for N >= 0.
9472 * i386.md (call_value, call_value_pop): Remove unused variable 'addr'.
9474 * gcc.c (C specs): Pass -fno-show-column to the preprocessor.
9475 * objc/lang-specs.h: Likewise.
9477 2000-04-03 Neil Booth <NeilB@earthling.net>
9479 * cppexp.c: wrap long lines. New macros CPP_ICE, SYNTAX_ERROR
9480 and SYNTAX_ERROR2. Replace `' in messages with ''.
9481 (op_to_str): Make re-entrant.
9482 (_cpp_parse_expr): Implement new error macros. Use | rather
9483 than || to logically or 2 boolean integers. Simply expression
9484 checking we have a left operand iff needed.
9486 2000-04-03 Nick Clifton <nickc@cygnus.com>
9488 * Makefile.in (diagnostic.o): Depend upon diagnostic.c
9490 2000-04-03 Philip Blundell <philb@gnu.org>
9492 * config/arm/linux-elf.h (SUBTARGET_EXTRA_LINK_SPEC): Fix typos.
9494 2000-04-03 Felix Lee <flee@cygnus.com>
9496 * fixinc/server.c (find_shell): New function. Avoid $SHELL.
9497 (run_shell): Use it.
9499 2000-04-03 Jonathan Larmour <jlarmour@redhat.co.uk>
9501 * Makefile.in (stmp-int-hdrs): Make include subdir here...
9502 (stmp-fixproto): ...rather than here.
9504 Mon Apr 3 00:50:06 2000 Jason Eckhardt <jle@cygnus.com>
9506 * pa.c (print_operand): Compute 'base' only inside the code paths
9509 2000-04-03 Geoffrey Keating <geoffk@cygnus.com>
9511 * stor-layout.c (byte_from_pos): Use TRUNC_DIV_EXPR rather than
9514 2000-04-03 Philipp Thomas <pthomas@suse.de>
9516 * i386.h (TARGET_SWITCHES): Remove bogus empty strings, fix typo.
9518 Mon Apr 3 00:02:59 2000 Brad Lucier <lucier@math.purdue.edu>
9520 * Makefile.in (alias.o): Depend on $(TREE_H).
9522 2000-04-02 Zack Weinberg <zack@wolery.cumb.org>
9524 * cppinit.c (cpp_start_read): Turn off -Wtraditional if
9526 * cpplib.c (_cpp_handle_directive): Improve warnings for
9527 traditional C and indented directives.
9529 * enquire.c, gsyslimits.h, limity.h, config/convex/fixinc.convex,
9530 fixinc/fixinc.irix, fixinc/fixinc.sco, fixinc/fixinc.wrap,
9531 fixinc/inclhack.def: Indent the # of #include_next one space.
9532 * cp/rtti.c: Un-indent #if and #endif.
9534 * cppexp.c (_cpp_parse_expr): If lex returns '#', it's a
9535 syntax error, but an error has already been printed.
9536 * cpplex.c (_cpp_parse_assertion): Give a more specific error
9537 message when called with nothing remaining on the line.
9538 (_cpp_lex_token): If _cpp_parse_assertion fails, return an
9539 OTHER token, not an ASSERTION.
9540 * cpplib.c (do_assert): When we create a 'base' node, clear
9541 its aschain pointer.
9543 2000-04-02 Neil Booth <NeilB@earthling.net>
9545 * cppexp.c: New typedef op_t. struct operation and struct
9546 token updated to use it.
9547 (op_to_str): New function.
9548 (_cpp_parse_expr): Error messages modified to use op_to_str.
9550 2000-04-02 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
9552 * config/c4x/c4x.c (c4x_function_arg): Check for void_type_node
9553 before checking MUST_PASS_IN_STACK.
9555 2000-04-02 Neil Booth <NeilB@earthling.net>
9557 * cppexp.c: New FINISHED dummy token. Combine operator initial
9558 flags and initial priority into a single constant. New
9559 EQUALITY macro. New operator flag SHORT_CIRCUIT.
9560 (_parse_cpp_expr): Implement new constants. Take left operand
9561 checks out of reduction loop. Handle SHORT_CIRCUIT. End of
9562 parse indicated by reducing FINISHED token. Remove new lines
9563 from cpp_error messages.
9565 2000-04-01 Mark Mitchell <mark@codesourcery.com>
9567 * emit-rtl.c (gen_rtx_CONST_INT): Create cached CONST_INTs on the
9570 2000-04-01 Zack Weinberg <zack@wolery.cumb.org>
9572 * cpplib.c: Include symcat.h. Add 'origin' field to struct
9573 directive. Add origin values to DIRECTIVE_TABLE. Generate
9574 the strings and function names on the fly. Take the #sccs
9575 entry out of the table if SCCS_DIRECTIVE is not defined.
9576 (_cpp_handle_directive): Decide if the # was at the beginning
9577 of the line here. Issue -pedantic warnings for extended
9578 directives here. Warn about K+R directives with the #
9579 indented, and C89/extended directives with the # not indented,
9581 (do_import, do_include_next, do_warning, do_ident, do_sccs,
9582 do_assert, do_unassert): Don't issue pedantic warning here.
9584 * cpphash.h: Add CPP_WTRADITIONAL macro.
9585 * cpplib.h (struct cpp_options): Rename warn_stringify to
9586 warn_traditional; update comments.
9587 * cppinit.c (handle_option): Set warn_traditional not
9589 * cpphash.c: Replace CPP_OPTION (pfile, warn_stringify) with
9590 CPP_WTRADITIONAL (pfile).
9591 * cpplex.c (_cpp_lex_token): Don't decide if directives should
9592 be ignored in -traditional mode here.
9594 * cpplex.c: Copy ISTABLE macros from cppinit.c, and adapt them
9595 to initialize speccase[] and trigraph_map[]. Delete all
9596 references to pfile->input_speccase. Always treat '?' as a
9597 special character. Remove table-initialization code from
9598 _cpp_init_input_buffer.
9600 * cpplib.h (struct cpp_reader): Remove input_speccase field.
9601 * cppinit.c (cpp_cleanup): Don't free input_speccase.
9603 2000-04-01 Richard Henderson <rth@cygnus.com>
9605 * Makefile.in (STAGESTUFF): Wildcard all debugging dumps at once.
9606 (mostlyclean): Likewise.
9608 * toplev.c (rtl_dump, jump_opt_dump, etc): Remove.
9609 (struct dump_file_info, enum dump_file_index, dump_file): New.
9610 (open_dump_file): Take a dump_file_index not a suffix, and a decl
9611 not a string. Clean out file if we havn't yet done so. Do nothing
9612 if the dump isn't enabled.
9613 (close_dump_file): Do nothing if the dump isn't open. Dump
9614 graph data if requested.
9615 (dump_rtl, clean_dump_file): Remove.
9616 (compile_file): Don't clean the dump files. Only finalize .bp dump
9617 if flag_test_coverage or flag_branch_probabilities. Only finalize
9618 .combine dump if optimizing. Iterate over dump_file to finalize the
9620 (rest_of_compilation): Update for open_dump_file/close_dump_file.
9621 Convert all uses of dump_rtl.
9622 (decode_d_option): Iterate over dump_file to implement 'a' and to
9623 locate pass-specific dumps.
9625 2000-04-01 Neil Booth <NeilB@earthling.net>
9627 * cppexp.c: Redefine priority constants.
9628 (_cpp_parse_expr): Replace left and right priority scheme with
9629 single priority logic. Move LOGICAL to same place as COMPARE.
9630 Remove bogus check for multiple unary +/- operators.
9632 2000-04-01 Neil Booth <NeilB@earthling.net>
9634 * cppexp.c: (_cpp_parse_expr): Numerical constants are pushed
9635 within the switch statement. Binary operations break out of
9636 the switch naturally. '(' tokens handled by forcing
9637 immediate shift. ')' handled by forcing immediate reduce to
9638 the previous '('. New error messages.
9640 2000-03-31 Geoff Keating <geoffk@cygnus.com>
9642 * config/rs6000/rs6000.c (print_operand): Don't use %l for 'low
9643 part', it's already in use. Use %K instead. Add a return at the
9644 end of what is now %K.
9645 * config/rs6000/rs6000.md (elf_low): Use %K instead of %l.
9647 Sat Apr 1 02:05:29 MET DST 2000 Jan Hubicka <jh@suse.cz>
9649 * builtins.c (expand_builtin_apply): Pass proper parameters to
9650 allocate_dynamic_stack_space.
9651 * calls.c (emit_call_1): Do not adjust stack pointer for SIB,
9652 update stack_pointer_delta; do not update arg_size_so_far.
9653 (compute_argument_block_size): Use stack_delta instead of
9654 stack_pointer_pending and arg_size_so_far.
9655 (expand_call): Add sanity checking for stack_pointer_delta;
9656 save and restore stack_pointer_delta for SIB, use
9657 stack_pointer_delta for alignment; do not update arg_space_so_far.
9658 (emit_library_call_value): Use stack_pointer_delta for alignment.
9659 (store_one_arg): Do not update arg_space_so_far.
9660 * explow.c (adjust_stack, anti_adjust_stack): Update
9661 stack_pointer_delta.
9662 (allocate_dynamic_stack_space): Add sanity checking for
9663 stack_pointer_delta.
9664 * expr.c (init_expr, clear_pending_stack_adjust): Clear
9665 stack_pointer_delta.
9666 (emit_push_insn): Update stack_pointer_delta.
9667 * function.h (struct expr_status): Add x_stack_pointer_delta;
9668 remove x_arg_space_so_far.
9669 (arg_space_so_far): Remove.
9670 (stack_pointer_delta): New macro.
9672 2000-03-31 Zack Weinberg <zack@wolery.cumb.org>
9674 * cpplib.h: Merge struct cpp_options into struct cpp_reader.
9675 Reorder struct cpp_options and struct cpp_reader for better
9676 packing. Replace CPP_OPTIONS macro with CPP_OPTION which
9677 takes two args. Change all 'char' flags to 'unsigned char'.
9678 Move show_column flag into struct cpp_options. Don't
9679 prototype cpp_options_init.
9680 * cpphash.h, cpperror.c, cppexp.c, cppfiles.c, cpphash.c,
9681 cppinit.c, cpplex.c, cpplib.c:
9682 Replace CPP_OPTIONS (pfile)->whatever with
9683 CPP_OPTION (pfile, whatever), and likewise for
9684 opts = CPP_OPTIONS (pfile); ... opts->whatever;
9686 * cppinit.c (merge_include_chains): Take a cpp_reader *.
9687 Extract CPP_OPTION (pfile, pending) and work with that
9689 (cpp_options_init): Delete.
9690 (cpp_reader_init): Turn on on-by-default options here.
9691 Allocate the pending structure here.
9692 (cl_options, enum opt_code): Define these from the same table,
9693 kept in a large macro. Add -fshow-column and -fno-show-column
9696 * cpperror.c (v_message): If show_column is off, don't print
9699 * cppmain.c: Update for new interface.
9700 * fix-header.c: Likewise.
9702 2000-03-30 Geoff Keating <geoffk@cygnus.com>
9704 * config/rs6000/t-aix43 (AR_FLAGS_FOR_TARGET): Adjust for new
9706 * Makefile.in (AR_FLAGS_FOR_TARGET): Is now the flags that
9707 are passed to any invocation of AR_FOR_TARGET.
9708 (AR_CREATE_FOR_TARGET): New macro.
9709 (AR_EXTRACT_FOR_TARGET): New macro.
9710 (ORDINARY_FLAGS_TO_PASS): Add AR_CREATE_FOR_TARGET,
9711 AR_EXTRACT_FOR_TARGET.
9712 (many places): Use AR_CREATE_FOR_TARGET, AR_EXTRACT_FOR_TARGET
9713 in place of `$(AR_FOR_TARGET) $(AR_FLAGS_FOR_TARGET)' and
9714 `$(AR_FOR_TARGET) x'. Pass AR_CREATE_FOR_TARGET and
9715 AR_EXTRACT_FOR_TARGET to sub-makes.
9717 2000-03-31 Neil Booth <NeilB@earthling.net>
9719 * cppexp.c: Delete SKIP_OPERAND. Correct priority
9721 (_cpp_parse_expr): Check for multiple unary +/- operators.
9722 Correct priorities of ':' and '?'. Treat ')' as having a
9723 value. Ensure conditional expression is not void.
9725 2000-03-31 Mark Mitchell <mark@codesourcery.com>
9727 * alias.c (canon_rtx): Make it global.
9728 (rtx_equal_for_memref_p): CONST_INT equality is now pointer
9730 * cse.c (struct table_elt): Add canon_exp.
9732 (invalidate): Canonicalize expressions only once.
9733 * rtl.h (canon_rtx): Declare.
9735 2000-03-30 Mark Mitchell <mark@codesourcery.com>
9737 * Makefile.in (emit-rtl.o): Depend on HASHTAB_H.
9738 * alias.c (reg_known_value): Add comments.
9739 (init_alias_analysis): Likewise.
9740 * cse.c (exp_equiv_p): CONST_INTs are equal iff they have the same
9742 (cse_basic_block): Fix typo in comment.
9743 * emit-rtl.c: Include hashtab.h.
9744 (const_int_htab): New variable.
9745 (const_int_htab_hash): New function.
9746 (const_int_htab_eq): Likewise.
9747 (rtx_htab_mark_1): Likewise.
9748 (rtx_htab_mark): Likewise.
9749 (gen_rtx_CONST_INT): Cache all CONST_INTs.
9750 (unshare_all_rtx): Fix formatting.
9751 (init_emit_once): Initialize const_int_htab.
9752 * rtl.c (rtx_equal_p): CONST_INTs are equal iff they have the same
9754 * rtl.texi: Document the fact that all CONST_INTs with the same
9757 2000-03-30 Richard Henderson <rth@cygnus.com>
9759 * alpha.h (FUNCTION_BOUNDARY): Reduce to 128 bits.
9761 2000-03-30 Zack Weinberg <zack@wolery.cumb.org>
9763 * configure.in: Comment out --enable-c-cpplib stanza.
9764 * configure: Regenerate.
9766 Thu Mar 30 06:32:51 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9768 * expr.c (store_constructor): Properly compute displacement and
9769 alignment when offset is variable.
9771 * expmed.c (store_bit_field, store_fixed_bit_field): Fix more
9772 cases of alignment in bytes.
9774 Thu Mar 30 13:30:40 2000 Jeffrey A Law (law@cygnus.com)
9776 * c-parse.in (cast_expr): Move change from March 21 into c-parse.in
9777 since it is used to generate c-parse.y.
9778 * objc-parse.c, objc-parse.y: Regenerated.
9780 * function.c (expand_function_end): Pass alignment argument to
9781 emit_block_move in bits, not bytes.
9783 Thu Mar 30 06:32:51 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9785 * expr.c (move_by_pieces_ninsns): Fix one more missing align
9788 * expmed.c (store_fixed_bit_field): STRUCT_ALIGN is in bits.
9790 * calls.c (expand_call): Pass bit alignment to mark_reg_pointer.
9791 * explow.c (memory_address, allocate_dynamic_stack_space): Likewise.
9792 * function.c (assign_parms): Likewise.
9793 * integrate.c (expand_inline_function): Likewise.
9794 * stmt.c (expand_decl): Likewise.
9795 (copy_rtx_and_substitute): Likewise.
9796 * expr.c (expand_expr, expand_expr_unaligned): Likewise.
9797 (clear_by_pieces): Fix error in last change.
9798 * emit-rtl.c (init_emit): Set known registers alignment in bits.
9799 * function.h (regno_pointer_align): Now unsigned.
9800 * config/arm/arm.c (alignable_memory_operand): REGNO_POINTER_ALIGN
9802 * config/i386/i386.c (aligned_operand): Likewise.
9803 * config/sparc/sparc.c (mem_min_alignment): Likewise.
9804 * config/alpha/alpha.c (aligned_memory_operand): Likewise.
9805 (unaligned_memory_operand): Likewise.
9806 (alpha_expand_block_move, alpha_expand_block_clear): Likewise.
9807 Also make alignments and sizes unsigned and some whitespace cleanup.
9808 (alpha_va_start): Do nothing if VALIST's type is error_mark_node.
9810 * builtins.c (get_pointer_alignment): Use host_integerp & tree_low_cst.
9811 (expand_builtin_apply): Pass alignment to emit_block_move in bits.
9812 (expand_builtin_memcpy, expand_builtin_va_copy): Likewise.
9813 (expand_builtin_memset): Likewise, but to clear_storage.
9814 * calls.c (save_fixed_argument_area): Likewise, to move_by_pieces.
9815 (restore_fixed_argument_area): Likewise.
9816 (store_unaligned_arguments_into_pseudos): Likewise, to store_bit_field.
9817 (load_register_parameters): Likewise, to emit_group_load.
9818 (expand_call): Likewise, to emit_group_store and emit_block_move.
9819 (emit_library_call_value_1): Likewise, to emit_block_move.
9820 (store_one_arg): Likewise, and to emit_push_insn.
9821 * expmed.c (extract_bit_field): Alignment is in bits, not bytes.
9822 (extract_fixed_bit_field, extract_split_bit_field): Likewise.
9823 * expr.c (move_by_pieces, move_by_pieces_ninsns): Likewise.
9824 (emit_block_move, emit_group_load, emit_group_store): Likewise.
9825 (clear_by_pieces, clear_storage, emit_push_insn): Likewise.
9826 (expand_assigment, store_expr, store_constructor_field): Likewise.
9827 (expand_expr_unaligned, do_jump, do_compare_and_jump): Likewise.
9828 (store_constructor, store_field, get_inner_reference): Likewise.
9829 Use host_integerp and tree_low_cst; sizes and positions HOST_WIDE_INT.
9830 (expand_expr, case COMPONENT_REF): Likewise.
9831 (copy_blkmode_from_regs): Use UNSIGNED_HOST_WIDE_INT for sizes
9832 and positions; reindent code.
9833 * expr.h (emit_cmp_insn, emit_cmp_and_jump_insns): Alignment unsigned.
9834 * function.c (purge_addressof_1): Pass bit align to store_bit_field.
9835 (assign_parms): Likewise to emit_group_store.
9836 * optabs.c (prepare_cmp_insn): Alignment is in bits.
9837 (emit_cmp_and_jump_insns, emit_cmp_insn): Likewise, and also unsigned.
9838 * stmt.c (expand_value_return): Pass align in bits to emit_group_load.
9839 (expand_return): Likewise to {extract,store}_bit_field.
9840 * stor-layout.c (get_mode_alignment): Minor cleanup.
9841 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Align is in bits.
9842 * config/sh/sh.h (MOVE_BY_PIECES_P): Likewise.
9844 2000-03-29 Nick Clifton <nickc@cygnus.com>
9846 * config/arm/arm.h: Undo effects of previous delta:
9847 (ASM_SPEC): Do not define.
9848 (SUBTARGET_EXTRA_ASM_SPEC): Do not define.
9850 * config/arm/linux-elf.h: (SUBTARGET_EXTRA_ASM_SPEC) Fix
9853 2000-03-29 Zack Weinberg <zack@wolery.cumb.org>
9855 * cppinit.c (cpp_start_read): Call initialize_dependency_output
9856 only after reading in the primary source file.
9858 2000-03-29 Geoff Keating <geoffk@cygnus.com>
9860 * c-common.c (c_common_nodes_and_builtins): The first parameter to
9861 __builtin_va_start and __builtin_va_copy is now either a 'va_list'
9862 or a reference to a va_list.
9863 * builtins.c (stabilize_va_list): Simplify now we don't have to
9864 work around C array address decay.
9865 * c-typeck.c (convert_for_assignment): Handle assignment to
9866 a reference parameter by taking the address of the RHS.
9867 * ginclude/stdarg.h (va_start): Don't take address of first parameter.
9868 (va_copy): Likewise.
9869 (__va_copy): Likewise.
9870 * ginclude/varargs.h (va_start): Likewise.
9871 (__va_copy): Likewise.
9873 Wed Mar 29 15:44:53 2000 Jeffrey A Law (law@cygnus.com)
9875 * i386/djgpp.h: Remove extraneous "+".
9877 * stmt.c (stmt_loop_nest_empty): Fix thinko in last change.
9879 * calls.c (expand_call): Fix typo in last change.
9881 2000-03-29 Jason Merrill <jason@casey.cygnus.com>
9883 * tree.c (unsave_expr_1): Don't mess with a TARGET_EXPR that hasn't
9886 Wed Mar 29 15:39:10 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9888 * stor-layout.c (bit_from_pos, byte_from_pos): New functions.
9889 (pos_from_byte, pos_from_bit, normalize_offset): Likewise.
9890 (normalize_rli, rli_size_so_far, rli_size_unit_so_far): Use them.
9891 * tree.c (bit_position, byte_position): Likewise.
9892 * tree.h: Declare new functions.
9894 2000-03-29 Nick Clifton <nickc@cygnus.com>
9896 * config/arm/arm.c: Minor formatting changes/
9897 * config/arm/arm.h (SUBTARGET_EXTRA_ASM_SPEC): Define if not
9899 (ASM_SPEC): Define if not already defined.
9901 2000-03-29 Zack Weinberg <zack@wolery.cumb.org>
9903 * cppfiles.c (cpp_read_file): Don't pass zero-length string to
9906 2000-03-29 Jakub Jelinek <jakub@redhat.com>
9908 * dwarf2out.c (gen_enumeration_type_die): If enum has a negative
9909 value, don't output it as unsigned.
9911 Wed Mar 29 10:53:49 2000 Jeffrey A Law (law@cygnus.com)
9913 * stmt.c (stmt_loop_nest_empty): Allow cfun->stmt to be NULL.
9915 2000-03-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9917 * c-common.c (c_common_nodes_and_builtins): Don't special case
9918 cplus_mode when declaring builtin bzero/bcmp, always avoid
9919 prototype arguments.
9921 2000-03-29 Bruce Korb <bkorb@gnu.org>
9923 * fixinc/mkfixinc.sh: Initially set the variable "fixincludes"
9926 Wed Mar 29 15:08:01 MET DST 2000 Jan Hubicka <jh@suse.cz>
9928 Convert ACCUMULATE_OUTGOING_ARGS to an expression.
9929 * calls.c (PUSH_ARGS_REVERSED) Change to expression.
9930 (ACCUMULATE_OUTGOING_ARGS, PUSH_ARGS): Provide default value.
9931 (struct arg_data): Remove #ifdef ACCUMULATE_OUTGOING_ARGS.
9932 (save_fixed_argument_area, restore_fixed_argument_area):
9933 conditionize by #ifdef REG_PARM_STACK_SPACE only.
9934 (emit_call): Change #ifdefs on ACCUMULATE_OUTGOING_ARGS
9935 to conditions, handle RETURN_POPS_ARGS on ACCUMULATE_OUTGOING_ARGS.
9936 (precompute_register_parameters): Avoid #ifdefs on
9937 ACCUMULATE_OUTGOING_ARGS and PUSH_ARGS_REVERSED.
9938 (stire_one_args): Likewise.
9939 (expand_call): Likewise; conditionize PUSH_ROUNDING code by PUSH_ARGS.
9940 (emit_library_call_value_1): Likewise.
9941 (compute_argument_block_size): Align to STACK_BOUNDARY only for
9942 ACCUMULATE_OUTGOING_ARGS.
9943 * combine.c (ACCUMULATE_OUTGOING_ARGS, PUSH_ARGS): Provide default
9945 (nonzero_bits): Conditionize PUSH_ROUNDING code by USE_PUSH.
9946 (use_crosses_set_p): Likewise.
9947 * all targets (ACCUMULATE_OUTGOING_ARGS define): Change to
9948 #define ACCUMULATE_OUTGOING_ARGS 1.
9949 * i386.c (ix86_compute_frame_size): Handle ACCUMULATE_OUTGOING_ARGS
9951 * i386.h (MASK_NO_PUSH_ARGS, MASK_ACCUMULATE_OUTGOING_ARGS): New
9953 (TARGET_PUSH_ARGS, TARGET_ACCUMULATE_OUTGOING_ARGS): New macros.
9954 (TARGET_SWITCHES): Add push-args, no-push-args,
9955 accumulate-outgoing-args and no-accumulate-outgoing-args.
9956 (ACCUMULATE_OUTGOING_ARGS, PUSH_ARGS): New macro.
9957 * expr.c (ACCUMULATE_OUTGONG_ARGS, PUSH_ARGS): Provide default.
9958 (push_block): Avoid ifdefs on ACCUMULATE_OUTGONG_ARGS
9960 (emit_push_insn): Likewise.
9961 * final.c (ACCUMULATE_OUTGOING_ARGS): Provide default.
9962 (final_scan_insn): Avoid ifdefs on ACCUMULATE_OUTGOING_ARGS.
9963 * function.c (ACCUMULATE_OUTGOING_ARGS): Provide default.
9964 (STACK_DYNAMIC_OFFSET): Define correctly for both
9965 ACCUMULATE_OUTGOING_ARGS and normal mode.
9966 * invoke.texi (-mpush_args, -maccumulate-outgoing-args): Document.
9967 * tm.texi (PUSH_ARGS): Document.
9968 (ACCUMULATE_OUTGOING_ARGS, PUSH_ROUNDING): Update documentation.
9970 Wed Mar 29 11:51:13 MET DST 2000 Jan Hubicka <jh@suse.cz>
9972 * flags.h (flag_optimize_sibling_calls): Declare.
9973 * calls.c (expand_call): Fail sibcall when
9974 !flag_optimize_sibling_calls
9975 * invoke.texi (flag_optimize_sibling_calls): Document.
9976 * toplev.c (flag_optimize_sibling_calls): New global variable.
9977 (f_options): Add flag_optimize_sibling_calls.
9978 (rest_of_compilation): Conditionize
9979 optimize_sibling_and_tail_recursive_calls by
9980 flag_optimize_sibling_calls.
9981 (main): Set flag_optimize_sibling_calls for -O2.
9982 * stmt.c (expand_return): Conditionize tail recursion by
9983 flag_optimize_sibling_calls.
9985 2000-03-29 Richard Henderson <rth@cygnus.com>
9987 * config/i386/att.h (LOCAL_LABEL_PREFIX): Define.
9988 (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Use it.
9990 2000-03-29 Nathan Sidwell <nathan@codesourcery.com>
9992 * except.c (add_eh_table_entry): Mark type_info's as referenced.
9994 2000-03-29 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
9996 * config/rs6000/aix41.h (CPP_SPEC): Define _ANSI_C_SOURCE if -ansi
9998 * config/rs6000/aix43.h (CPP_SPEC): Likewise.
9999 * config/rs6000/rs6000.h (CPP_SPEC): Moved to...
10000 * config/rs6000/aix.h: then modified likewise.
10002 2000-03-28 Richard Henderson <rth@cygnus.com>
10004 * rtl.h: Redistribute enum reg_note documentation.
10005 Kill trailing whitespace.
10006 * rtl.c (reg_note_name): Adjust to match enum reg_note tweeks.
10007 Kill trailing whitespace.
10009 2000-03-28 Zack Weinberg <zack@wolery.cumb.org>
10011 * cppfiles.c (hash_IHASH): Just return i->hash.
10012 (cpp_included): Set dummy.hash using _cpp_calc_hash. Use
10013 htab_find_with_hash.
10014 (cpp_read_file): Likewise.
10015 (find_include_file): Likewise. Properly initialize
10016 ih->nshort. Share ih->name and ih->nshort if possible.
10017 * cpphash.c (_cpp_calc_hash): New function.
10018 (hash_HASHNODE): Just return h->hash.
10019 (_cpp_lookup): Set dummy.hash using _cpp_calc_hash. Use
10020 htab_find_with_hash.
10021 * cpphash.h: Prototype _cpp_calc_hash.
10022 * cppinit.c (initialize_builtins): Provide a valid hash
10023 to _cpp_make_hashnode, using _cpp_calc_hash.
10025 * cpphash.c (collect_expansion): # is not a special character
10026 in object-like macros. In -traditional mode, /**/ is not
10027 token paste at the beginning or end of the line.
10028 * cpplib.c (do_include, do_import, do_include_next): If
10029 parse_include fails, return immediately.
10031 2000-03-28 Jason Merrill <jason@casey.cygnus.com>
10033 * config/arm/arm.md (return peepholes): Update to reflect the new
10034 call insn patterns.
10035 * config/arm/arm.c (arm_volatile_func): Also check
10036 current_function_nothrow.
10037 (output_return_instruction, output_func_prologue): Use it.
10038 (arm_output_epilogue, arm_expand_prologue): Likewise.
10040 2000-03-27 Tom Tromey <tromey@cygnus.com>
10042 * gcc.c (handle_braces): In {x*...} case, break out of loop if
10045 Tue Mar 28 11:55:48 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10047 * expr.c (store_constructor): SIZE now signed.
10048 For EXPR_SIZE, don't evaluate size; just needed if constant.
10049 * fold-const.c (fold): Fix a number of cases when folded tree is
10051 * function.c (flush_addressof): Reenable.
10052 * tree.h (flush_addressof): Likewise.
10053 * toplev.c (independent_decode_option): Look at strings_processed.
10054 * config/alpha/alpha.h (MINIMUM_ATOMIC_ALIGNMENT): Cast to unsigned.
10056 Tue Mar 28 08:29:46 2000 Jan Hubicka <jh@suse.cz>
10058 * sibcall.c (indentify_call_return_value): Find last call in the chain;
10059 Allow stack adjustment after function call.
10061 * regmove.c (struct csa_memlist): Make mem field rtx *.
10062 (record_one_stack_ref): Accept rtx * instead of rtx as parameter.
10063 (try_apply_stack_adjustment): Replace whole MEM rtx.
10064 (combine_stack_adjustments_for_block): Update calls
10065 to record_one_stack_ref.
10067 2000-03-28 Neil Booth <NeilB@earthling.net>
10069 * cpplex.c (_cpp_read_and_prescan): Mark end of input buffer with
10070 '\\' rather than a null character, so nulls are not special. Fix
10071 "\\\n" handling in end-of-buffer conditions. Use trigraph map to
10072 speed trigraph conversion.
10073 (_cpp_init_input_buffer): Initialize trigraph map.
10075 2000-03-27 Alan Modra <alan@linuxcare.com.au>
10077 * config/i386/i386.c (output_387_binary_op): Correct intel
10078 mode assembly output, and add spaces after commas in AT&T
10079 output. Correct Unixware assembler comment. Document input
10080 constraints. Comment fp operations. Reduce profligate buffer
10081 size. Remove extraneous abort. Localize temp var.
10082 (SYSV386_COMPAT): Define. Add !SYSV386_COMPAT code.
10083 (output_fix_trunc): Add spaces after commas in assembly output.
10085 2000-03-27 Richard Henderson <rth@cygnus.com>
10087 * i386-protos.h (ix86_match_ccmode): Declare.
10088 * i386.c (ix86_match_ccmode): New.
10089 (ix86_expand_fp_compare): Update for pattern renames.
10090 (ix86_expand_strlensi_unroll_1): Likewise.
10091 * i386.h (EXTRA_CC_MODES): Add CCZ.
10092 (SELECT_CC_MODE): Use it for EQ/NE zero.
10093 * i386.md (cmpsi_ccz_1): New.
10094 (cmpqi_ccz_1): New.
10095 (*testsi_ccz_1): New.
10096 (testqi_ccz_1): New.
10097 (cmpsi_ccno_1): Rename from cmpsi_0.
10098 (testsi_ccno_1): Rename from testsi_1.
10099 (testqi_ccno_1): Rename from testqi_1.
10100 (*testqi_ext_ccz_0): Rename from testqi_ext_0.
10101 (testqi_ext_ccno_0): Rename from *testqi_ext_1.
10102 (*cmphi_0): Use ix86_match_ccmode.
10103 (*cmpqi_ext_2, *addsi_2, *addhi_2, *addqi_2): Likewise.
10104 (*subsi_2, *subhi_2, *subqi_2, *testhi_1): Likewise.
10105 (*testqi_ext_1, *testqi_ext_2, *testqi_ext_3): Likewise.
10106 (*andsi_2, *andhi_2, *andqi_2, *andqi_ext_0_cc): Likewise.
10107 (*iorsi_2, *iorhi_2, *iorqi_2): Likewise.
10108 (*xorsi_2, *xorhi_2, *xorqi_cc_1): Likewise.
10109 (*one_cmplsi2_2, *one_cmplhi2_2, *one_cmplqi2_2): Likewise.
10110 (*ashlsi3_cmpno, *ashlhi3_cmpno, *ashlqi3_cmpno): Likewise.
10111 (*ashrsi3_cmpno, *ashrhi3_cmpno, *ashrqi3_cmpno): Likewise.
10112 (*lshrsi3_cmpno, *lshrhi3_cmpno, *lshrqi3_cmpno): Likewise.
10113 (appropriate peepholes): Likewise.
10114 (*cmphi_1, *cmpqi_ccno_1, *cmpqi_1): Star out name.
10115 (*subsi_3, *subhi_3, *subqi_3): Remove.
10116 (*negdi2_1+1 splitter): Use CCZ for neg patterns.
10117 (*negsi2_cmp, *neghi2_cmp, *negqi2_cmp): Remove.
10118 (*negsi2_cmpz): Rename from *negsi2_cmpno, use CCZ.
10119 (*neghi2_cmpz, *negqi2_cmpz): Similarly.
10120 (x86_shift_adj_1): Use CCZ.
10121 (*dbra_ge+1, *dbra_ge+2, ffssi2, ffssi_1): Likewise.
10123 2000-03-27 Stan Cox <scox@cygnus.com>
10125 * resource.h (mark_resource_type): New.
10126 * resource.c (find_dead_or_set_registers, mark_target_live_regs,
10127 find_free_register): Use mark_resource_type.
10128 (mark_set_resources): Change include_delayed_effects
10129 to mark_resource_type.
10130 * reorg.c (steal_delay_list_from_target, try_merge_delay_insns,
10131 redundant_insn, fill_simple_delay_slots, fill_slots_from_thread):
10132 Use mark_resource_type.
10134 2000-03-27 Richard Henderson <rth@cygnus.com>
10136 * i386.md (call_pop_0, call_value_pop_0): New.
10137 (call_pop_1): Remove constraint from unused arg. Support sibcalls.
10138 (call_value_pop_1): Likewise.
10139 (call_0, call_value_0): New.
10140 (call_1, call_value_1): Remove constraint from unused arg.
10142 2000-03-27 Nick Clifton <nickc@cygnus.com>
10144 * invoke.texi (Spec Files): Document new spec % command created by
10145 Tom Tromey's recent patch.
10147 2000-03-27 Jakub Jelinek <jakub@redhat.com>
10149 * libgcc2.h (MIN_UNITS_PER_WORD): Define to UNITS_PER_WORD
10152 Mon Mar 27 06:04:22 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10154 * expr.c (expand_assignment): Fix typo in last change.
10156 * libgcc2.h: Use MIN_UNITS_PER_WORD, not UNITS_PER_WORD.
10158 Sun Mar 26 20:15:26 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10160 * c-convert.c (convert): Return if output or input type is ERROR_MARK.
10161 * c-decl.c (duplicate_decls): Only look at DECL_BUILT_IN_NONANSI
10162 and DECL_INLINE if FUNCTION_DECL.
10163 (pushdecl, redeclaration_error_message): Likewise, for DECL_INLINE.
10164 (store_parm_decls): Check for type of PARM_DECL being ERROR_MARK.
10165 Use DECL_WEAK, not DECL_RESULT, to flag for already seen.
10166 (combine_parm_decls): Likewise.
10167 * ggc-common.c (gcc_mark_tree_children, case 'd'): Use DECL_RESULT_FLD.
10168 * print-tree.c (print_node): Likewise.
10169 Only test DECL_PACKED, DECL_INLINE, DECL_BIT_FIELD, and
10170 DECL_TRANSPARENT_UNION on proper decl types.
10171 Properly handly DECL_INCOMING_RTL and DECL_SAVED_INSNS.
10172 * stor-layout.c (layout_decl): Only check DECL_PACKED and
10173 DECL_BIT_FIELD of FIELD_DECL.
10174 * tree.h (DECL_RESULT_FLD): New macro.
10176 * expr.c (expand_assignment): Add code to handle variable-sized
10179 2000-03-26 Richard Henderson <rth@cygnus.com>
10181 * calls.c (expand_call): Pass parms not original exp to
10182 optimize_tail_recursion. Mind return value instead of looking
10184 * stmt.c (optimize_tail_recursion): Take parameter list, not entire
10185 call_expr. Move checks for call_expr and current_function_decl ...
10186 (expand_return): ... here.
10188 2000-03-26 Tom Tromey <tromey@cygnus.com>
10190 * gcc.c (handle_braces): Recognize `%{<S}' construct.
10191 (SWITCH_OK, SWITCH_FALSE, SWITCH_IGNORE, SWITCH_LIVE): New
10193 (process_command): Use them.
10194 (check_live_switch): Likewise.
10195 (give_switch): Skip ignored switches.
10197 2000-03-26 Jan Hubicka <jh@suse.cz>
10199 * jump.c (jump_optimize_1): Fix typo in elide optimizations
10200 for minimal jump pass test.
10202 2000-03-26 Mark Mitchell <mark@codesourcery.com>
10204 * integrate.c (function_cannot_inline_p): Do inline functions that
10207 Sun Mar 26 11:37:55 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10209 * stor-layout.c (layout_type, set_sizetype): early_type_list is
10210 now a list of TREE_LIST entries, not types.
10211 * tree.c (build_common_tree_nodes_2): Eliminate dupliate type sets.
10213 * expmed.c (extract_bit_field): Ensure BITS_PER_WORD is signed in MAX.
10214 * config/arm/pe.c (arm_pe_return_in_memory): Use host_integerp and
10216 * config/mips/mips.c (function_arg): Likewise; also remove cast
10217 and make variables unsigned or HOST_WIDE_INT and use tree_low_cst.
10218 (mips_function_value): Use int_byte_position and make HOST_WIDE_INT.
10219 * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Offsets are unsigned.
10220 * config/mips/mips.h (BITS_PER_WORD, UNITS_PER_WORD): Cast to unsigned.
10221 (UNITS_PER_FPREG, INT_TYPE_SIZE, LONG_TYPE_SIZE): Likewise.
10222 (POINTER_SIZE, POINTER_BOUNDARY,PARM_BOUNDARY): Likewise.
10223 (GP_REG_P, FP_REG_P, MD_REG_P, ST_REG_P): Ensure subtraction signed.
10224 (struct mips_arg): arg_number, arg_words, fp_arg_words, and
10225 num_adjusts now unsigned.
10226 (FUNCTION_ARG_BOUNDARY): Remove unneeded cast.
10227 * config/sparc/sparc.c (struct function_arg_record_value_parms):
10228 NREGS now unsigned.
10229 (function_arg_record_value_1): STARTBITPOS arg now HOST_WIDE_INT
10230 as is BITPOS variable; use host_integerp and int_bit_position.
10231 (function_arg_record_value_2): Likewise.
10232 (function_arg_record_value_3): Arg BITPOS now HOST_WIDE_INT.
10233 Variable REGNO now unsigned.
10234 (function_arg_record_value): NREGS now unsigned.
10236 2000-03-26 Bernd Schmidt <bernds@cygnus.co.uk>
10238 * jump.c (mark_all_labels): Handle CALL_PLACEHOLDERs.
10240 Sat Mar 25 09:12:10 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10242 * Rework fields used to describe positions of bitfields and
10243 modify sizes to be unsigned and use HOST_WIDE_INT.
10244 * alias.c (reg_known_value_size): Now unsigned.
10245 * c-typeck.c (build_unary_op, case ADDR_EXPR): Use byte_position.
10246 (really_start_incremental_init): Use bitsize_zero_node.
10247 (push_init_level, pop_init_level, output_init_element): Likewise.
10248 Use bitsize_unit_node and bitsize_one_node.
10249 (output_pending_init_elements, process_init_element): Likewise.
10250 * combine.c (combine_max_regno, reg_sign_bit_copies): Now unsigned.
10251 (make_extraction): Position and length HOST_WIDE_INT and unsigned
10252 HOST_WIDE_INT, respectively.
10253 (get_pos_from_mask): Passed in value is unsigned HOST_WIDE_INT.
10254 (num_sign_bit_copies): Returns unsigned.
10255 BITWIDTH now unsigned; rework arithmetic.
10256 Remove recursive call from arg to MAX.
10257 (combine_instructions, init_reg_last_arrays): NREGS now unsigned.
10258 (setup_incoming_promotions, can_combine_p, try_combine, simplify_set):
10259 REGNO now unsigned.
10260 (set_nonzero_bit_and_sign_copies): NUM now unsigned.
10261 (find_split_point, expand_compound_operation, make_extraction): LEN
10262 now unsigned HOST_WIDE_INT, POS now HOST_WIDE_INT.
10263 (make_field_assignment): Likewise.
10264 (combine_simplify_rtx): Add cast.
10265 (expand_compound_operation): MODEWIDTH now unsigned; rework arithmetic.
10266 (force_to_mode): WIDTH now unsigned; add cast.
10267 (if_then_else_cond): SIZE now unsigned.
10268 (nonzero_bits): MODE_WIDTH, RESULT_WIDTH, and WIDTH now unsigned.
10269 (extended_count): Now returns unsigned.
10270 (simplify_shift_const): COUNT unsigned; arg is now INPUT_COUNT.
10271 Add SIGNED_COUNT variable; MODE_WORDS and FIRST_COUNT now unsigned.
10272 (simplify_comparison): MODE_WIDTH now unsigned.
10273 (update_table_tick): REGNO and ENDREGNO now unsigned; new var R.
10274 (mark_used_regs_combine): Likewise; rework arithmetic.
10275 (record_value_for_reg): REGNO, ENDREGNO, and I now unsigned.
10276 (record_dead_and_set_regs, reg_dead_at_p, distribute_notes): Likewise.
10277 (record_promoted_value): REGNO now unsigned.
10278 (get_last_value_validate): REGNO, ENDREGNO, and J now unsigned.
10279 (get_last_value): REGNO now unsigned.
10280 (use_crosses_set_p): REGNO and ENDREGNO now unsigned.
10281 (reg_dead_regno, reg_dead_endregno): Now unsigned.
10282 (remove_death): Arg REGNO now unsigned.
10283 (move_deaths): REGNO, DEADREGNO, DEADEND, OUREND, and I now unsigned.
10284 (reg_bitfield_target_p): REGNO, REGNO, ENDREGNO, and ENDTREGNO
10286 * convert.c (convert_to_integer): INPREC and OUTPREC now unsigned.
10287 * cse.c (struct qty_table_elem): FIRST_REG and LAST_REG now unsigned.
10288 (struct cse_reg_info): REGNO now unsigned.
10289 (cached_regno): Now unsigned.
10290 (REGNO_QTY_VALID_P): Add cast.
10291 (make_new_qty, make_regs_eqv, delete_reg_eqiv): Regno args unsigned.
10292 (remove_invalid_regs): Likewise.
10293 (remove_invalid_subreg_refs): Likewise; arg WORD also unsigned
10294 as are variables END and I.
10295 (get_cse_reg_info, insert): Likewise.
10296 (mention_regs, invalidate_for_call): REGNO, ENDREGNO, and I unsigned.
10297 (canon_hash): Likewise.
10298 (insert_regs, lookup_for_remove): REGNO now unsigned.
10299 (invalidate): REGNO, ENDREGNO, TREGNO, and TENDREGNO now unsigned.
10301 * dbxout.c (dbxout_parms, dbxout_reg_parms): Don't check for REGNO < 0.
10302 * dwarf2out.c (dwarf2ou_frame_debug_expr): Remove cast.
10303 * emit-rtl.c (subreg_realpart_p): Add cast.
10304 (operand_subword): Arg I is now unsigned as is var PARTWORDS.
10305 (operand_subword_force): Arg I is now unsigned.
10306 * except.c (eh_regs): Variable I is now unsigned.
10307 * explow.c (hard_function_value): BYTES is unsigned HOST_WIDE_INT.
10308 * expmed.c (store_fixed_bit_field): Position is HOST_WIDE_INT;
10309 length is unsigned HOST_WIDE_INT; likewise for internal variables.
10310 (store_split_bit_field, extract_fixed_bit_field): Likewise.
10311 (extract_split_bit_field, store_bit_field, extract_bit_field):
10313 * expr.c (store_constructor_fields, store_constructor, store_field):
10314 Positions are HOST_WIDE_INT and lengths are unsigned HOST_WIDE_INT.
10315 (expand_assignment, expand_expr, expand_expr_unaligned): Likewise.
10316 (do_jump): Likewise.
10317 (move_by_pieces, move_by_pieces_ninsns, clear_by_pieces):
10318 MAX_SIZE is now unsigned.
10319 (emit_group_load): BYTEPOS is HOST_WIDE_INT; BYTELEN is unsigned.
10320 (emit_group_store): Likewise.
10321 (emit_move_insn): I now unsigned.
10322 (store_constructor): Use host_integerp, tree_low_cst, and
10324 (get_inner_reference): Return bitpos and bitsize as HOST_WIDE_INT.
10325 Rework all calculations to use trees and new fields.
10326 * expr.h (promoted_input_arg): Regno now unsigned.
10327 (store_bit_field, extract_bit_field): Adjust types of pos and size.
10328 (mark_seen_cases): Arg is HOST_WIDE_INT.
10329 * flow.c (verify_wide_reg_1): REGNO now unsigned.
10330 * fold-const.c (decode_field_reference): Size and pos HOST_WIDE_INT;
10331 precisions and alignments are unsigned.
10332 (optimize_bit_field_compare, fold_truthop): Likewise.
10333 (int_const_binop): Adjust threshold for size_int_type_wide call.
10334 (fold_convert): Likewise.
10335 (size_int_type_wide): Make table larger and fix thinko that only
10336 had half of table used.
10337 (all_ones_mask_p, fold): Precisions are unsigned.
10338 * function.c (put_reg_info_stack): REGNO is unsigned.
10339 (instantiate_decl): Size is HOST_WIDE_INT.
10340 (instantiate_virtual_regs): I is unsigned.
10341 (assign_parms): REGNO, REGNOI, and REGNOR are unsigned.
10342 (promoted_input_arg): REGNO is unsigned.
10343 * function.h (struct function): x_max_parm_reg is now unsigned.
10344 * gcse.c (max_gcse_regno): Now unsigned.
10345 (struct null_pointer_info): min_reg and max_reg now unsigned.
10346 (lookup_set, next_set): REGNO arg now unsigned.
10347 (compute_hash_table): REGNO and I now unsigned.
10348 (handle_avail_expr): regnum_for_replacing now unsigned.
10349 (cprop_insn): REGNO now unsigned.
10350 (delete_null_pointer_checks_1): BLOCK_REG now pointer to unsigned.
10351 * ggc-common.c (ggc_mark_tree_children, case FIELD_DECL): New case.
10352 * global.c (set_preference): SRC_REGNO, DEST_REGNO, and I now unsigned.
10353 * hard-reg-set.h (reg_class_size): Now unsigned.
10354 * integrate.c (mark_stores): LAST_REG and I now unsigned; new UREGNO.
10355 * jump.c (mark_modified_reg): I now unsigned; add cast.
10356 (rtx_equal_for_thread_p): Add cast.
10357 * loop.c (max_reg_before_loop): Now unsigned.
10358 (struct_movable): REGNO now unsigned.
10359 (try_copy_prop): REGNO arg unsigned.
10360 (regs_match_p): XN and YN now unsigned.
10361 (consec_sets_invariant_p, maybe_eliminate_biv): REGNO now unsigned.
10362 (strength_reduce): Likewise; NREGS also unsigned.
10363 (first_increment_giv, last_increment_giv unsigned): Now unsigned.
10364 * loop.h (struct iv_class): REGNO now unsigned.
10365 (max_reg_before_loop, first_increment_giv, last_increment_giv):
10367 * machmode.h (mode_size, mode_unit_size): Now unsigned.
10368 (mode_for_size, smallest_mode_for_size): Pass size as unsigned.
10369 * optabs.c (expand_binop): I and NWORDS now unsigned.
10370 (expand_unop): I now unsigned.
10371 * print-tree.c (print_node): Don't print DECL_FIELD_BITPOS, but do
10372 print DECL_FIELD_OFFSET and DECL_FIELD_BIT_OFFSET.
10373 * real.c (significand_size): Now returns unsigned.
10374 * real.h (significand_size): Likewise.
10375 * regclass.c (reg_class_size): Now unsigned.
10376 (choose_hard_reg_mode): Both operands now unsigned.
10377 (record_reg_classes): REGNO and NR now unsigned.
10378 (reg_scan): NREGS now unsigned.
10379 (reg_scan_update): old_max_regno now unsigned.
10380 (reg_scan_mark_refs): Arg MIN_REGNO and var REGNO now unsigned.
10381 * reload.c (find_valid_class): BEST_SIZE now unsigned.
10382 (find_dummy_reload): REGNO, NWORDS, and I now unsigned.
10383 (hard_reg_set_here_p): Args BEG_REGNO and END_REGNO now unsigned.
10384 Likewise for variable R.
10385 (refers_to_regno_for_reload_p): Args REGNO and END_REGNO now unsigned,
10386 as are variables INNER_REGNO and INNER_ENDREGNO; add new variable R.
10387 (find_equiv_reg): Add casts.
10388 (regno_clobbered_p): Arg REGNO now unsigned.
10389 * reload.h (struct reload): NREGS now unsigned.
10390 (refers_to_regno_for_reload_p): Regno args are unsigned.
10391 (regno_clobbered_p): Likewise.
10392 * reload1.c (reg_max_ref_width, spill_stack_slot_width): Now unsigned.
10393 (compute_use_by_pseudos): REGNO now unsigned.
10394 (find_reg): I and J now unsigned, new variable K, and change loop
10395 variables accordingly; THIS_NREGS now unsigned.
10396 (alter_reg): INHERENT_SIZE and TOTAL_SIZE now unsigned.
10397 (spill_hard_reg): REGNO arg now unsigned; add casts.
10398 (forget_old_reloads_1): REGNO, NR, and I now unsigned.
10399 (mark_reload_reg_in_use): Arg REGNO and vars NREGS and I now unsigned.
10400 (clear_reload_reg_in_use): Arg REGNO and vars NREGS, START_REGNO,
10401 END_REGNO, CONFLICT_START, and CONFLICT_END now unsigned.
10402 (reload_reg_free_p, reload_reg_reaches_end_p): Arg REGNO now unsigned.
10403 (choose_reload_regs): MAX_GROUP_SIZE now unsigned.
10404 (emit_reload_insns): REGNO now unsigned.
10405 (reload_cse_move2add): Add cast.
10406 (move2add_note_store): REGNO and I now unsigned; new variable ENDREGNO
10408 * resource.c (mark_referenced_resources, mark_set_resources): New
10409 variable R; REGNO and LAST_REGNO now unsigned.
10410 (mark_target_live_regs): J and REGNO now unsigned.
10411 * rtl.c (mode_size, mode_unit_size): Now unsigned.
10412 * rtl.h (union rtunion_def): New field rtuint.
10413 (XCUINT): New macro.
10414 (ADDRESSOF_REGNO, REGNO, SUBREG_WORD): New XCUINT.
10415 (operand_subword, operand_subword_force): Word number is unsigned.
10416 (choose_hard_reg_mode): Operands are unsigned.
10417 (refers_to-regno_p, dead_or_set_regno_p): Regno arg is unsigned.
10418 (find_regno_note, find_regno_fusage, replace_regs): Likewise.
10419 (regno_use_in, combine_instructions, remove_death): Likewise.
10420 (reg_scan, reg_scan_update): Likewise.
10421 (extended_count): Return is unsigned.
10422 * rtlanal.c (refers_to_regno_p): Args REGNO and ENDREGNO and vars I,
10423 INNER_REGNO, and INNER_ENDREGNO now unsigned; new variable X_REGNO.
10424 (reg_overlap_mentioned_p): REGNO and ENDREGNO now unsigned.
10425 (reg_set_last_first_regno, reg_set_last_last_regno): Now unsigned.
10426 (reg_reg_last_1): FIRS and LAST now unsigned.
10427 (dead_or_set_p): REGNO, LAST_REGNO, and I now unsigned.
10428 (dead_or_set_regno_p): Arg TEST_REGNO and vars REGNO and ENDREGNO
10430 (find_regno_note, regno_use_in): Arg REGNO now unsigned.
10431 (find_regno_fusage): Likewise; also var REGNOTE now unsigned.
10432 (find_reg_fusage): Variables REGNO, END_REGNO, and I now unsigned.
10433 (replace_regs): Arg NREGS now unsigned.
10434 * sdbout.c (sdbout_parms, sdbout_reg_parms): Don't check REGNO < 0.
10435 * simplify-rtx.c (simplify_unary_operation): WIDTH now unsigned.
10436 (simplify_binary_operation): Likewise.
10437 (cselib_invalidate_regno): Arg REGNO and variables ENDREGNO, I, and
10438 THIS_LAST now unsigned.
10439 (cselib_record_set): Add cast.
10440 * ssa.c (ssa_max_reg_num): Now unsigned.
10441 (rename_block): REGNO now unsigned.
10442 * stmt.c (expand_return): Bit positions unsigned HOST_WIDE_INT;
10443 sizes now unsigned.
10444 (all_cases_count): Just return -1 not -2.
10445 COUNT, MINVAL, and LASTVAL now HOST_WIDE_INT.
10446 Rework tests to use trees whenever possible.
10447 Use host_integerp and tree_low_cst.
10448 (mark_seen_cases): COUNT arg now HOST_WIDE_INT;
10449 Likewise variable NEXT_NODE_OFFSET; XLO now unsigned.
10450 (check_for_full_enumeration_handing): BYTES_NEEDED, I to HOST_WIDE_INT.
10451 * stor-layout.c (mode_for_size): SIZE arg now unsigned.
10452 (smallest_mode_for_size): Likewise.
10453 (layout_decl): Simplify handing of a specified DECL_SIZE_UNIT.
10454 KNOWN_ALIGN is now an alignment, so simplify code.
10455 Don't turn off DECL_BIT_FIELD if field is BLKmode, but not type.
10456 (start_record_layout): Renamed from new_record_layout_info.
10457 Update to new fields.
10458 (debug_rli, normalize_rli, rli_size_unit_so_far, rli_size_so_far):
10460 (place_union_field): Renamed from layout_union_field.
10461 Update to use new fields in rli.
10462 (place_field): Renamed from layout_field.
10463 Major rewrite to use new fields in rli; pass alignment to layout_decl.
10464 (finalize_record_size): Rework to use new fields in rli and handle
10466 (compute_record_mode): Rework to simplify and to use new DECL fields.
10467 (finalize_type_size): Make rounding more consistent.
10468 (finish_union_layout): Deleted.
10469 (layout_type, case VOID_TYPE): Don't set TYPE_SIZE_UNIT either.
10470 (layout_type, case RECORD_TYPE): Call new function names.
10471 (initialize_sizetypes): Set TYPE_IS_SIZETYPE.
10472 (set_sizetype): Set TYPE_IS_SIZETYPE earlier.
10473 (get_best_mode): UNIT is now unsigned; remove casts.
10474 * tree.c (bit_position): Compute from new fields.
10475 (byte_position, int_byte_position): New functions.
10476 (print_type_hash_statistics): Cast to remove warning.
10477 (build_range_type): Use host_integerp and tree_low_cst to try to hash.
10478 (build_index_type): Likewise; make subtype of sizetype.
10479 (build_index_2_type): Pass sizetype to build_range_type.
10480 (build_common_tree_nodes): Use size_int and bitsize_int to
10481 initialize nodes; add bitsize_{zero,one,unit}_node.
10482 * tree.h (DECL_FIELD_CONTEXT): Use FIELD_DECL_CHECK.
10483 (DECL_BIT_FIELD_TYPE, DECL_QUALIFIER, DECL_FCONTEXT): Likewise.
10484 (DECL_PACKED, DECL_BIT_FIELD): Likewise.
10485 (DECL_FIELD_BITPOS): Deleted.
10486 (DECL_FIELD_OFFSET, DECL_FIELD_BIT_OFFSET): New fields.
10487 (DECL_RESULT, DECL_SAVED_INSNS): Use FUNCTION_DECL_CHECK.
10488 (DECL_FRAME_SIZE, DECL_FUNCTION_CODE, DECL_NO_STATIC_CHAIN): Likewise.
10489 (DECL_INLINE, DECL_BUILT_IN_NONANSI, DECL_IS_MALLOC): Likewise.
10490 (DECL_BUILT_IN_CLASS, DECL_STATIC_CONSTRUCTOR): Likewise.
10491 (DECL_STATIC_DESTRUCTOR, DECL_NO_CHECK_MEMORY_USAGE): Likewise.
10492 (DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT, DECL_NO_LIMIT_STACK) Likewise.
10493 (DECL_ORIGINAL_TYPE, TYPE_DECL_SUPPRESS_DEBUG): Use TYPE_DECL_CHECK.
10494 (DECL_ARG_TYPE_AS_WRITEN, DECL_ARG_TYPE): Use PARM_DECL_CHECK.
10495 (DECL_INCOMING_RTL, DECL_TRANSPARENT_UNION): Likewise.
10496 (DECL_ALIGN): Adjust to new field in union.
10497 (DECL_OFFSET_ALIGN): New field.
10498 (DECL_ERROR_ISSUED, DECL_TOO_LATE): Use LABEL_DECL_CHECK.
10499 (DECL_IN_TEXT_SECTION): Use VAR_DECL_CHECK.
10500 (union tree_decl): Add struct for both aligns.
10501 (enum tree_index): Add TI_BITSIZE_{ZERO,ONE,UNIT}.
10502 (bitsize_zero_node, bitsize_one_node, bitsize_unit_node): Added.
10503 (struct record_layout_info): Rework fields to have offset
10504 alignment and byte and bit position.
10505 (start_record_layout, place_field): Renamed from old names.
10506 (rli_size_so_far, rli_size_unit_so_far, normalize_rli): New decls.
10507 (byte_position, int_byte_position): Likewise.
10508 (get_inner_reference): Change types of position and length.
10509 * unroll.c (unroll_loop): New variable R; use for some loops.
10510 MAX_LOCAL_REGNUM and MAXREGNUM now unsigned.
10511 (calculate_giv_inc): Arg REGNO now unsigned.
10512 (copy_loop_body): REGNO and SRC_REGNO now unsigned.
10513 * varasm.c (assemble_variable): Clean up handling of size using
10514 host_integerp and tree_low_cst.
10515 (decode_addr_const): Use byte, not bit, position.
10516 (output_constructor): bitpos and offsets are HOST_WIDE_INT;
10517 use tree_low_cst and int_bit_position.
10518 * objc/objc-act.c (build_ivar_list_initializer): Use byte_position.
10520 Fri Mar 24 20:13:49 2000 Jason Eckhardt <jle@cygnus.com>
10522 * bb-reorder.c (REORDER_MOVED_BLOCK_END): Removed.
10523 (reorder_block_def): New members eff_head and eff_end.
10524 (REORDER_BLOCK_EFF_HEAD, REORDER_BLOCK_EFF_END): New macros.
10525 (verify_insn_chain): New function.
10526 (skip_insns_between_block): Add code to skip deleted insns.
10527 Check for note before using.
10528 (chain_reorder_blocks): Replace calls to skip_insns_between_block
10529 with references to REORDER_BLOCK_EFF_HEAD and REORDER_BLOCK_EFF_END.
10530 Check for note before using.
10531 (make_reorder_chain): Use INTVAL rather than XINT to get REG_BR_PROB.
10532 (fixup_reorder_chain): Restructure, clean up, defect removal.
10533 (reorder_basic_blocks): Remove last_insn and references to it.
10534 Moved insn chain verification code into a new function (see above).
10535 Delete defective code that sets last insn.
10536 Initialize REORDER_BLOCK_EFF_HEAD and REORDER_BLOCK_EFF_END for
10539 2000-03-25 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
10541 * config/c4x/c4x.h (CPP_SPEC): Remove erroneous space.
10543 2000-03-24 Richard Henderson <rth@cygnus.com>
10545 * tree.c (lang_safe_for_unsave): Remove.
10546 (unsafe_for_reeval): Transmute and rename from safe_for_unsave,
10547 allowing for two levels of unsafeness. Remove lang hook.
10548 * tree.h: Update declarations.
10549 * calls.c (expand_call): Rename safe_for_reeval to try_tail_call.
10550 Create temporary VAR_DECLs to protect very unsafe_for_reeval trees.
10551 Always fail sibcalls when there are pending cleanups.
10553 2000-03-24 Geoff Keating <geoffk@cygnus.com>
10555 * flow.c (propagate_block): When we delete an ADDR_VEC,
10556 also delete the BARRIER following it if there is one.
10558 2000-03-24 Richard Henderson <rth@cygnus.com>
10560 * builtins.c (expand_builtin_bzero): Convert `length' argument
10563 2000-03-24 Jakub Jelinek <jakub@redhat.com>
10565 * sibcall.c (skip_copy_to_return_value): Use OUTGOING_REGNO for
10566 comparison if regno's are equal.
10567 * calls.c (initialize_argument_informat): Add ecf_flags argument.
10568 Use FUNCTION_INCOMING_ARG if available and ECF_SIBCALL.
10569 (expand_call): Update caller.
10570 Avoid making a sibling call if argument size of the callee is larger
10571 than argument size of the caller.
10572 Call hard_function_value with outgoing set if in sibcall pass.
10573 Use FUNCTION_INCOMING_ARG if available and ECF_SIBCALL.
10575 * final.c (permitted_reg_in_leaf_functions, only_leaf_regs_used):
10576 Change LEAF_REGISTERS from an array initializer to actual array
10577 identifier. Move static global variable into the function.
10578 (leaf_function_p): Allow SIBLING_CALL_P calls even outside of
10579 sequences for leaf functions.
10580 * global.c (global_alloc): Likewise.
10581 * tm.texi (LEAF_REGISTERS): Update documentation.
10583 * config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Remove the ugly
10584 TARGET_FLAT leaf disabling hack.
10585 (LEAF_REGISTERS): Changed from an array initializer to actual array
10586 identifier to avoid duplication and remove the above hack.
10587 (FUNCTION_OK_FOR_SIBCALL): Define.
10588 * config/sparc/sparc.md (sibcall): New attr type. Use it almost
10589 always like call attribute.
10590 (eligible_for_sibcall_delay): New attribute.
10591 (sibcall): New delay type.
10592 (sibcall, sibcall_value, sibcall_epilogue): New expands.
10593 (sibcall_symbolic_sp32, sibcall_symbolic_sp64,
10594 sibcall_value_symbolic_sp32, sibcall_value_symbolic_sp64): New insns.
10595 * config/sparc/sparc.c (sparc_leaf_regs): New array.
10596 (eligible_for_sibcall_delay, output_restore_regs, output_sibcall):
10598 (output_function_epilogue): Move part of the code into
10599 output_restore_regs.
10600 (ultra_code_from_mask, ultrasparc_sched_reorder): Handle
10602 * sparc-protos.h (output_sibcall, eligible_for_sibcall_delay): New
10605 * config/sparc/sparc.h (REVERSIBLE_CC_MODE): Revert Jan, 25 change
10606 until infrastructure is finished.
10608 Fri Mar 24 13:49:45 2000 Jeffrey A Law (law@cygnus.com)
10610 * integrate.c (save_for_inline_nocopy): Clear in_nonparm_insns here.
10611 (save_parm_insns): Not here.
10613 2000-03-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10615 * builtins.c (expand_builtin_bzero): New function.
10616 (expand_builtin): Handle bzero.
10618 * builtins.def: Add BUILT_IN_BZERO.
10620 * c-common.c (c_common_nodes_and_builtins): Provide builtin
10621 prototype & function for bzero.
10623 2000-03-23 Michael Meissner <meissner@redhat.com>
10625 * config/alpha/alpha.md (TF floating point insns): Undo 2000-03-21
10626 change adding TARGET_FP to the TF floating point insns, except for
10627 trunctfsf2, which generates direct calls to truncdfsf2.
10629 2000-03-23 Geoff Keating <geoffk@cygnus.com>
10631 * config/rs6000/rs6000.h (ARG_POINTER_CFA_OFFSET): New definition,
10632 try to protect against middle-end changes that break binary
10634 (DWARF_FRAME_REGISTERS): New definition, likewise for backend.
10636 2000-03-24 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
10638 * config/c4x/c4x.md (load_immed_address): Add DP reg clobber.
10640 Thu Mar 23 17:10:48 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10642 * calls.c (expand_call): If TARGET is passed by reference and
10643 is readonly, write a CLOBBER.
10645 2000-03-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10647 * builtins.c (expand_builtin): Handle bcmp.
10649 * builtins.def: Add BUILT_IN_BCMP.
10651 * c-common.c (c_common_nodes_and_builtins): Provide builtin
10652 prototype & function for bcmp.
10654 Thu Mar 23 11:34:39 2000 Jim Wilson <wilson@cygnus.com>
10656 * config/ia64/ia64.c (rtx_needs_barrier, case UNSPEC): Move case 6...
10657 (rtx_needs_barrier, case UNSPEC_VOLATILE): to here.
10658 * config/ia64/ia64.md (pr_restore): Change UNSPEC to UNSPEC_VOLATILE.
10660 Thu Mar 23 16:04:40 2000 Andrew Haley <aph@cygnus.com>
10662 * config/mips/mips.md (movdf_internal1a): Delete (set 'f', 'F')
10663 alternative when using -fp64 -gp32.
10665 2000-03-22 Jason Merrill <jason@casey.cygnus.com>
10667 * config/rs6000/rs6000.h (DWARF_FRAME_RETURN_COLUMN): Define.
10668 * config/alpha/alpha.h (DWARF_FRAME_RETURN_COLUMN): Define.
10669 * config/sparc/sparc.h (DWARF_FRAME_RETURN_COLUMN): Define.
10671 * frame.h (frame_state): Revert last change.
10672 * frame.c (execute_cfa_insn): Just don't record the save of a CFA reg.
10673 * libgcc2.c (throw_helper): Revert last change.
10675 2000-03-22 Richard Henderson <rth@cygnus.com>
10677 * stmt.c (expand_asm_operands): Don't promote the temporary.
10679 2000-03-22 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
10681 * builtin.c (get_pointer_alignment): Use DECL_P and TYPE_P macros.
10682 * c-common.c (decl_attributes,check_format_info,truthvalue_conversion,
10683 c_get_alias_set): Likewise.
10684 * c-decl.c (duplicate_decls): Likewise.
10685 * c-typeck.c (default_conversion,build_unary_op): Likewise.
10686 * calls.c (initialize_argument_information): Likewise.
10687 * dwarf2out.c (decl_class_context,add_abstract_origin_attribute):
10689 * dwarfout.c (decl_class_context,output_type): Likewise.
10690 * expr.c (get_inner_reference): Likewise.
10691 * fold-const.c (simple_operand_p,fold): Likewise.
10692 * function.c (aggregate_value_p): Likewise.
10693 * stmt.c (expand_asm_operands): Likewise.
10694 * varasm.c (named_section): Likewise.
10696 2000-03-22 Jason Merrill <jason@casey.cygnus.com>
10698 Implement dwarf2 exception handling for the ARM.
10699 * config/arm/arm.h (INCOMING_RETURN_ADDR_RTX): Define.
10700 (DWARF_FRAME_RETURN_COLUMN): Define.
10701 * config/arm/arm.c (emit_multi_reg_push): Return rtx. Attach
10702 REG_FRAME_RELATED_EXPR note.
10703 (emit_sfm): Likewise.
10704 (arm_expand_prologue): Set RTX_FRAME_RELATED_P on everything.
10705 * dwarf2out.c (reg_save): Handle saving a register to itself.
10706 (dwarf2out_frame_debug_expr): Handle an intermediate cfa reg.
10707 * except.c (eh_regs): Don't use the static chain reg if it's
10709 * frame.h (frame_state): Add cfa_saved field.
10710 * frame.c (execute_cfa_insn): Set it.
10711 * libgcc2.c (throw_helper): Don't adjust sp if it's restored in
10713 * function.c (ARG_POINTER_CFA_OFFSET): Default to FIRST_PARM_OFFSET.
10715 (instantiate_virtual_regs): Adjust.
10717 * config/m68k/m68k.h (ARG_POINTER_CFA_OFFSET): Don't define.
10718 * config/ns32k/ns32k.h (ARG_POINTER_CFA_OFFSET): Don't define.
10719 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): Take a parm.
10721 * dwarf2out.c (reg_number): Refer to FIRST_PSEUDO_REGISTER.
10722 (initial_return_save): Use DWARF_FRAME_REGNUM, not reg_number.
10724 2000-03-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10726 * builtins.def: New file.
10728 * Makefile.in (TREE_H): Depend on builtins.def.
10730 * builtins.c (built_in_names): Use builtins.def.
10732 * tree.h (built_in_function): Likewise.
10734 2000-03-22 Mark Mitchell <mark@codesourcery.com>
10736 * tree.c (size_in_bytes): Return size_zero_node, not
10739 2000-03-22 Geoff Keating <geoffk@cygnus.com>
10741 * config/fp-bit.c (pack_d): Correct the case when a denormal
10742 is rounded up and stops being denormal.
10744 2000-03-21 Richard Henderson <rth@cygnus.com>
10746 * config/alpha/alpha.c (function_arg): Check for void_type_node
10747 before using MUST_PASS_IN_STACK.
10749 2000-03-21 Stephane Carrez <stcarrez@worldnet.fr>
10751 * regmove.c (combine_stack_adjustments_for_block): Check that
10752 the stack pointer is a valid memory address.
10754 Wed Mar 22 11:44:50 MET 2000 Jan Hubicka <jh@suse.cz>
10756 * calls.c: re-install Mar 16 emit_library_call merge.
10758 2000-03-21 Jakub Jelinek <jakub@redhat.com>
10760 * config/sparc/sparc.c (mem_min_alignment): If not optimizing,
10761 we cannot be sure that if reload_completed base register will
10762 be properly aligned.
10764 2000-03-21 Richard Henderson <rth@cygnus.com>
10766 * flow.c (delete_block): Fix typo last change.
10768 2000-03-21 Mark Mitchell <mark@codesourcery.com>
10770 * c-common.c (c_expand_expr_stmt): Use COMPLETE_TYPE_OR_VOID_P,
10771 not COMPLETE_TYPE_P, to check the type of the expression.
10773 2000-03-21 Michael Meissner <meissner@redhat.com>
10775 * config/alpha/alpha.md (floating point insns): Add TARGET_FP to
10776 all floating point insns that just tested the macro
10777 TARGET_HAS_XFLOATING_LIBS.
10778 (movsf/movdf recognizers): Add separate insns if -mno-fp-regs is
10779 used to only use the gprs.
10781 2000-03-21 Nathan Sidwell <nathan@codesourcery.com>
10783 * tree.h (COMPLETE_TYPE_P): New macro.
10784 (COMPLETE_OR_VOID_TYPE_P): New macro.
10785 (COMPLETE_OR_UNBOUND_ARRAY_TYPE_P): New macro.
10786 * stor-layout.c (layout_type, case VOID_TYPE): Don't set TYPE_SIZE.
10787 * c-aux-info.c (gen_type): Use them.
10788 * c-common.c (c_expand_expr_stmt): Likewise.
10789 * c-decl.c (poplevel, pushdecl, start_decl, finish_decl,
10790 grokdeclarator, grokparms, finish_struct, start_function,
10791 store_parm_decls, combine_parm_decls): Likewise.
10792 * c-parse.y (cast_expr): Likewise.
10793 * c-typeck.c (require_complete_type, c_sizeof, c_sizeof_nowarn,
10794 c_size_in_bytes, c_alignof, build_component_ref,
10795 build_indirect_ref, build_array_ref, convert_arguments,
10796 build_binary_op, pointer_diff, build_unary_op, digest_init: Likewise.
10797 * calls.c (initialize_argument_information): Likewise.
10798 * convert.c (convert_to_integer): Likewise.
10799 * dbxout.c (dbxout_typedefs, dbxout_type, dbxout_symbol): Likewise.
10800 * dwarfout.c (location_or_const_value_attribute,
10801 output_enumeration_type_die, output_structure_type_die,
10802 output_union_type_die, output_type): Likewise.
10803 * expr.c (safe_from_p, expand_expr): Likewise.
10804 * function.c (assign_parms): Likewise.
10805 * sdbout.c (sdbout_symbol, sdbout_one_type): Likewise.
10806 * tree.c (build_array_type, build_function_type,
10807 build_method_type, build_offset_type, build_complex_type): Likewise.
10808 * c-parse.c, c-parse.h: Regenerated.
10810 2000-03-21 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
10812 * config/c4x/rtems.h: Include config/rtems.h.
10814 Tue Mar 21 09:24:00 2000 Denis Chertykov <denisc@overta.ru>
10816 * config/avr/avr.c (encode_section_info): sets SYMBOL_REF_FLAG if
10817 decl is a FUNCTION_DECL
10819 Mon Mar 20 19:53:53 2000 Jim Wilson <wilson@cygnus.com>
10821 * config/ia64/ia64.c (ia64_expand_prologue): Don't abort if leaf
10822 function uses output registers. Don't save RP for leaf functions.
10823 Do save RP even if no epilogue.
10824 * config/ia64/ia64.h (FIXED_REGISTERS): Unmark in/out registers.
10825 (CALL_USED_REGISTERS): Unmark in registers.
10826 (REG_ALLOC_ORDER): Move out regs up, to near the top. Move in regs up,
10827 to near the middle.
10829 2000-03-20 Geoff Keating <geoffk@cygnus.com>
10831 * config/rs6000/rs6000.md (bunordered): New expander.
10832 (bordered): New expander.
10833 (buneq): New expander.
10834 (bunge): New expander.
10835 (bungt): New expander.
10836 (bunle): New expander.
10837 (bunlt): New expander.
10838 (bltgt): New expander.
10840 * config/rs6000/rs6000.c (ccr_bit): Handle unordered comparisons.
10841 (ccr_bit_negated_p): New function.
10842 (print_operand): For %C, generate appropriate cror for UNEQ,
10843 UNLT, UNGT, and LTGT. For %T and %t, use ccr_bit_negated_p.
10845 2000-03-20 Andreas Jaeger <aj@suse.de>
10847 * sdbout.c (sdbout_one_type): Add braces to avoid "ambigous else"
10850 * tree.h (safe_for_unsave): Prototype.
10852 2000-03-20 Richard Henderson <rth@cygnus.com>
10854 * regmove.c (stack_memref_p): Fix typo, reorg for readability.
10855 (combine_stack_adjustments_for_block): Don't allow sp references
10856 in the side of a set we're not fixing up.
10857 * toplev.c (rest_of_compilation): Run combine_stack_adjustments
10858 after life_analysis.
10860 2000-03-20 Richard Henderson <rth@cygnus.com>
10862 * calls.c (expand_call): Don't bother generating tail call
10863 sequences if there are pending cleanups. Use
10864 expand_start_target_temps/expand_end_target_temps to elide
10865 cleanups created during sibcall expansion.
10867 2000-03-20 Geoff Keating <geoffk@cygnus.com>
10869 * configure.in: Set $IFS to a value if it doesn't already have one
10870 in the --enable-checking handling.
10871 * configure: Regenerate.
10873 2000-03-20 Martin v. Löwis <loewis@informatik.hu-berlin.de>
10875 * c-parse.in (SAVE_WARN_FLAGS): Use size_int.
10876 * c-parse.y, c-parse.c, objc/objc-parse.y, objc/objc-parse.c:
10879 Mon Mar 20 11:43:15 MET 2000 Jan Hubicka <jh@suse.cz>
10881 * jump.c (delete_noop_moves): Remove code attempting to
10882 combine stack adjustments.
10884 2000-03-19 Martin v. Löwis <loewis@informatik.hu-berlin.de>
10886 * emit-rtl.c (push_to_full_sequence, end_full_sequence): New functions.
10887 * except.c (emit_cleanup_handler): Use them.
10888 (expand_end_all_catch): Likewise.
10889 * function.c (fixup_var_refs): Likewise.
10890 (expand_function_end): Clear catch_clauses_last.
10891 * rtl.h (push_to_full_sequence, end_full_sequence): Declare.
10892 * except.h (struct eh_status): New field x_catch_clauses_last.
10893 (catch_clauses_last): New define.
10895 * Makefile.in (tree.o): Depend on HASHTAB_H.
10896 * tree.c: Include hashtab.h.
10897 (struct type_hash): Remove next field.
10898 (TYPE_HASH_SIZE): Remove.
10899 (TYPE_HASH_INITIAL_SIZE): New define.
10900 (type_hash_table): Change type to htab_t.
10901 (type_hash_eq, type_hash_hash, print_type_hash_statistics,
10902 mark_hash_entry): New functions.
10903 (init_obstacks): Allocate type hash.
10904 (type_hash_lookup): Use htab functions.
10905 (type_hash_add, mark_type_hash): Likewise.
10906 (dump_tree_statistics): Call print_type_hash_statistics.
10908 2000-03-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10910 * rs6000/t-aix41: New file.
10912 * configure.in ({rs6000,powerpc}-ibm-aix4.[12]*): Use it.
10914 Sun Mar 19 13:27:30 2000 Hans-Peter Nilsson <hp@axis.com>
10916 * tm.texi (Driver): Fix typos and tweak entry for
10918 Move misplaced STRUCT_FORCE_BLK entry ...
10919 (Storage Layout): ... to here.
10920 (Run-time Target): Recommend having TARGET_MASK_... helper macros.
10922 2000-03-19 Richard Henderson <rth@cygnus.com>
10924 * flow.c (delete_block): Delete the addr_vec along with the block.
10925 (flow_delete_insn): Decrement LABEL_NUSES when deleting insns that
10928 * fold-const.c (extract_muldiv): Apply type check for defined
10929 overflow to multiply as well as divide.
10931 * stor-layout.c (layout_decl): Don't abort on any zero sized decl.
10933 2000-03-18 Mark Mitchell <mark@codesourcery.com>
10935 * emit-rtl.c (remove_unncessary_notes): Check that all
10936 NOTE_INSN_BLOCK_BEG and NOTE_INSN_BLOCK_END notes have an
10937 associated NOTE_BLOCK.
10938 * function.h (identify_blocks): Update comments.
10939 (reorder_blocks): Declare.
10940 * function.c (identify_blocks): Don't take paramters.
10941 (reorder_blocks): Don't take parameters.
10942 * loop.h (find_loop_tree_blocks): Remove.
10943 (unroll_block_trees): Likewise.
10944 * loop.c (loop_optimize): Don't call find_loop_tree_blocks. Use
10945 reorder_blocks instead of unroll_block_trees.h
10946 * sibcall.c (optimize_sibling_and_tail_recursive_calls): Likewise.
10947 * stmt.c (find_loop_tree_blocks): Remove.
10948 (unroll_block_trees): Likewise.
10949 * toplev.c (rest_of_compilation): Don't call find_loop_tree_blocks
10950 in whole-function mode.
10951 * tree.h (reorder_blocks): Remove declaration.
10953 * expr.c: Include intl.h.
10954 * Makefile.in (expr.o): Depend on intl.h.
10956 2000-03-18 Richard Henderson <rth@cygnus.com>
10958 * expr.c (emit_move_insn_1): Clarify cannot_inline message.
10960 2000-03-18 Mark Mitchell <mark@codesourcery.com>
10962 * tree.h (tree_index): Remove enumerals for integer types.
10963 (integer_type_kind): New type.
10964 (integer_types): New variable.
10965 (char_type_node): Adjust.
10966 (signed_char_type_node): Likewise.
10967 (unsigned_char_type_node): Likewise.
10968 (short_integer_type_node): Likewise.
10969 (short_unsigned_type_node): Likewise.
10970 (integer_type_node): Likewise.
10971 (unsigned_type_node): Likewise.
10972 (long_integer_type_node): Likewise.
10973 (long_unsigned_type_node): Likewise.
10974 (long_long_integer_type_node): Likewise.
10975 (long_long_unsigned_type_node): Likewise.
10976 * tree.c (integer_types): New variable.
10977 (init_obstacks): Register it as a root.
10979 Sat Mar 18 14:38:00 2000 Jason Eckhardt <jle@cygnus.com>
10981 * bb-reorder.c (reorder_basic_blocks): Update PREV_INSN as well as
10982 NEXT_INSN. Update last insn in chain.
10984 2000-03-17 Jason Merrill <jason@casey.cygnus.com>
10986 * dwarf2out.c (dwarf2out_decl): Don't emit anything for types
10987 with TYPE_DECL_SUPPRESS_DEBUG set.
10989 2000-03-18 Richard Henderson <rth@cygnus.com>
10991 * flow.c (make_edges): Use INTVAL to access REG_EH_REGION value.
10993 2000-03-18 Richard Henderson <rth@cygnus.com>
10995 * i386.c (call_insn_operand): Always allow SYMBOL_REF,
10996 care for HALF_PIC_P.
10997 (expander_call_insn_operand): Remove.
10998 (ix86_expand_epilogue): New arg `emit_return' to control return insn.
10999 * i386.h (PREDICATE_CODES): Update.
11000 * i386.md (all call expanders): Remove predicates, remove special
11001 handling for half-pic.
11002 (*call_1, *call_value_1): Handle SIBLING_CALL_P insns.
11003 (*call_pop_pic2, *call_pic2, *call_value_pop_2, *call_value_2): Remove.
11004 (sibcall_epilogue): New.
11006 2000-03-17 Richard Henderson <rth@cygnus.com>
11008 * rtlanal.c (single_set): Reject if the parallel has anything
11009 except SET or USE or CLOBBER.
11011 2000-03-17 Jeff Law <law@cygnus.com>
11012 Richard Henderson <rth@cygnus.com>
11014 * Makefile.in (OBJS): Add sibcall.o.
11016 * sibcall.c: New file.
11017 * calls.c (FUNCTION_OK_FOR_SIBCALL): Provide default.
11018 (ECF_IS_CONST, ECF_NOTHROW, ECF_SIBCALL): New.
11019 (emit_call_1): Replace `is_const' and `nothrow' with `ecf_flags'.
11020 Emit sibcall patterns when requested. Update all callers.
11021 (expand_call): Generate CALL_PLACEHOLDER insns when tail call
11022 elimination seems feasable.
11023 * final.c (leaf_function_p): Sibling calls don't discount being
11025 * flow.c (HAVE_sibcall_epilogue): Provide default.
11026 (find_basic_blocks_1): Sibling calls don't throw.
11027 (make_edges): Make edge from sibling call to EXIT.
11028 (propagate_block): Don't remove sibcall_epilogue insns.
11029 * function.c (prologue, epilogue): Turn into varrays. Update all uses.
11030 (sibcall_epilogue): New.
11031 (fixup_var_refs): Scan CALL_PLACEHOLDER sub-sequences.
11032 (identify_blocks_1): Likewise. Break out from ...
11033 (identify_blocks): ... here.
11034 (reorder_blocks_1): Scan CALL_PLACEHOLDER. Break out from ...
11035 (reorder_blocks): ... here.
11036 (init_function_for_compilation): Zap prologue/epilogue as varrays.
11037 (record_insns): Extend a varray instead of mallocing new memory.
11038 (contains): Read a varray not array of ints.
11039 (sibcall_epilogue_contains): New.
11040 (thread_prologue_and_epilogue_insns): Emit and record
11041 sibcall_epilogue patterns.
11042 (init_function_once): Allocate prologue/epilogue varrays.
11043 * genflags.c (gen_insn): Treat sibcall patterns as calls.
11044 * integrate.c (save_parm_insns): Recurse on CALL_PLACEHOLDER patterns.
11045 Broken out from ...
11046 (save_for_inline_nocopy): ... here.
11047 (copy_insn_list): Recurse on CALL_PLACEHOLDER patterns.
11048 Broken out from ...
11049 (expand_inline_function): ... here.
11050 (copy_rtx_and_substitute): Handle NOTE_INSN_DELETED_LABEL.
11051 (subst_constants): Handle 'n' formats.
11052 * jump.c (jump_optimize_minimal): New.
11053 (jump_optimize_1): New arg `minimal'; update callers. Elide most
11054 optimizations if it's set.
11055 * rtl.c (copy_rtx): Do copy jump & call for insns.
11056 * rtl.h (struct rtx_def): Document use of jump and call for insns.
11057 (SIBLING_CALL_P): New.
11058 (sibcall_use_t): New.
11059 * toplev.c (rest_of_compilation): Do init_EXPR_INSN_LIST_cache earlier.
11060 Invoke optimize_sibling_and_tail_recursive_calls.
11061 * tree.c (lang_safe_for_unsave): New.
11062 (safe_for_unsave): New.
11063 * tree.h (lang_safe_for_unsave, safe_for_unsave): Declare.
11065 * alpha.h (FUNCTION_OK_FOR_SIBCALL): New.
11066 * alpha.md (sibcall, sibcall_value, sibcall_epilogue): New.
11067 (*sibcall_osf_1, *sibcall_value_osf_1): New.
11069 2000-03-17 Mark Mitchell <mark@codesourcery.com>
11071 * objc/objc-act.c (encode_method_prototype): Pass types, not
11072 PARM_DECLs, to int_size_in_bytes.
11074 Fri Mar 17 11:51:34 2000 Jim Wilson <wilson@cygnus.com>
11076 * config/ia64/ia64.md (mix4right_3op): Swap %1 and %2 in template.
11078 * config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
11079 config/ia64/ia64.md, config/ia64/xm-ia64.h: Fix copyrights again.
11081 Fri Mar 17 08:09:14 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11083 * Clean up usages of TREE_INT_CST_LOW.
11084 * c-parse.in (RESTORE_WARN_FLAGS): Use tree_low_cst.
11085 * c-parse.y, c-parse.c, objc/objc-parse.y, objc/objc-parse.c:
11087 * c-tree.h (min_precision): Move declaration to here.
11088 * c-typeck.c (build_binary_op): Use host_integerp and tree_low_cst.
11089 (build_unary_op, add_pending_init): Use bit_position.
11090 (pending_init_member, process_init_element): Likewise.
11091 (really_start_incremental_init, push_init_level, pop_init_level):
11092 Don't make copies of nodes or modify them in place, use consistent
11093 types when tracking positions, and use tree routines computations.
11094 (set_init_index, output_init_element): Likewise.
11095 (output_pending_init_elements, process_init_element): Likewise.
11096 * dbxout.c (dbxout_type_fields): Use bit_position, host_integerp,
11097 tree_low_cst and int_bit_position; also minor cleanup.
11098 (dbxout_type_method_1, dbxout_range_type, dbxout_type): Likewise.
11099 (print_cst_octal): Precision is unsigned.
11100 (dbxout_symbol): Ensure DECL_INITIAL is in-range and use tree_low_cst.
11101 * dwarf2out.c (ceiling): Input and output are unsigned HOST_WIDE_INT.
11102 (simple_type_align_in_bits): Result is unsigned int.
11103 Use tree_int_low_cst and host_integerp.
11104 (simple_type_size_in_bits): Result is unsigned HOST_WIDE_INT.
11105 (field_byte_offset): Result is HOST_WIDE_INT.
11106 Change types of internal variables so alignments are unsigned int,
11107 offsets are HOST_WIDE_INT and sizes are unsigned HOST_WIDE_INT.
11108 Use host_integerp, tree_low_cst, and int_bit_position.
11109 (add_bit_offset_attribute): Likewise.
11110 (add_data_member_location_attribute): Use tree_cst_low.
11111 (add_bound_info): Use host_integerp, integer_zerop, and integer_onep.
11112 (add_bit_size_attribute): Use tree_low_cst.
11113 (add_pure_or_virtual_attribute, gen_enumeration_type_die): Likewise.
11114 * dwarfout.c: Similar changes to dwarf2out.c.
11115 * expr.c (expand_expr, case ARRAY_REF): Remove redundant code.
11116 * genoutput.c (n_occurences): Return -1 for null string.
11117 (strip_whitespace): Accept null string and make into function.
11118 (scan_operands): Reflect above changes.
11119 * sdbout.c (plain_type_1): Use host_integerp and tree_low_cst.
11120 (sdbout_field_types, sdbout_one_type): Likewise; also use bit_position.
11121 * ssa.c (rename_registers): Add missing cast of arg to bzero.
11122 * tree.c (int_size_in_bytes): Check for too big to represent.
11123 (bit_position, int_bit_position, host_integerp, tree_low_cst): New fns.
11124 * tree.h (host_integerp, tree_low_cst, bit_position, int_bit_position):
11126 (min_precision): Delete from here.
11127 * varasm.c (decode_addr_const): Use host_integerp, bit_position,
11128 and int_bit_position.
11129 * objc/objc-act.c (encode_method_prototype): Sizes are HOST_WIDE_INT.
11130 (encode_method_def): Likewise.
11131 (build_ivar_list_initializer): Use int_bit_position.
11132 (generate_shared_structures): Convert size.
11133 (encode_type, encode_complete_bitfield): Use integer_zerop.
11134 (encode_bitfield): Use tree_low_cst and int_bit_position.
11136 2000-03-17 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
11138 * config/c4x/c4x.h (CPP_SPEC): Fix typo.
11140 2000-03-17 Martin v. Löwis <loewis@informatik.hu-berlin.de>
11142 * call.c (special_function_p): It is only malloc if it returns
11145 2000-03-17 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
11147 * config/c4x/c4x.h (ASM_SPEC, CPP_SPEC, LINK_SPEC): Support C33.
11148 (C33_FLAG, TARGET_C3X): Add macros.
11149 (TARGET_SWITCHES): Add -m33 option.
11150 * config/c4x/c4x.c (c4x_override_options): Test for TARGET_C33.
11152 2000-03-17 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
11154 * config/c4x/c4x.h (PARALLEL_INSN_FLAG): Add.
11155 (PARALLEL_PACK_FLAG): Delete.
11156 (TARGET_SWITCHES): Update.
11157 (TARGET_PARALLEL): Use PARALLEL_INSN_FLAG.
11159 Thu Mar 16 18:52:32 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11161 * fold-const.c (fold): Fix a few cases when the returned result
11162 is not of the same type as the input.
11164 2000-03-16 Nick Clifton <nickc@cygnus.com>
11166 * config/arm/arm.h (ASM_OUTPUT_MI_THUNK): Fix compile time
11169 2000-03-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11171 * libgcc2.h: Move prototypes above macros with the same name.
11172 Wrap some function prototypes in the conditional which indicates
11173 whether they are supported, i.e. "BITS_PER_UNIT == 8".
11175 2000-03-16 Richard Henderson <rth@cygnus.com>
11177 * calls.c: Revert last two changes.
11179 2000-03-16 Bernd Schmidt <bernds@cygnus.co.uk>
11181 * fp-bit.c (_unpack_d): If NO_DENORMALS is defined, anything that
11182 has exponent 0 is a zero.
11184 * simplify-rtx.c (hash_rtx, case MEM/REG): Take into account that
11185 HASH may already be nonzero. Add code/mode into hash value
11186 immediately after repeat label.
11187 (cselib_lookup): Don't leave the hash table in an inconsistent
11188 state before a hash lookup operation.
11190 Thu Mar 16 17:03:10 MET 2000 Jan Hubicka <jh@suse.cz>
11192 * i386.md (all HI and QI mode non-move patterns): Conditionize
11193 by TARGET_[HQ]IMODE_MATH.
11194 * i386.h (x86_himode_math, x86_qimode_math, x86_promote_hi_regs,
11195 x86_promote_qi_regs): Declare.
11196 (TARGET_HIMODE_MATH, TARGET_QIMODE_MATH, TARGET_PROMOTE_HI_REGS,
11197 TARGET_PROMOTE_QI_REGS): New macros.
11198 (PROMOTE_MODE): New macro.
11199 * i386.c (x86_himode_math, x86_qimode_math, x86_promote_hi_regs,
11200 x86_promote_qi_regs): New global variables.
11202 Thu Mar 16 16:50:44 MET 2000 Jan Hubicka <jh@suse.cz>
11204 * calls.c (emit_library_call_value_1): Break out from ...; handle
11205 VOIDmode function calls too.
11206 (emit_library_call_value): ... here.
11207 (emit_library_call): Implement by calling emit_library_call_value_1.
11209 Thu Mar 16 16:01:30 MET 2000 Jan Hubicka <jh@suse.cz>
11211 * calls.c (expand_call): Do sanity checking on arg_space_so_far.
11212 Update arg_space_so_far on stack adjustments.
11213 (emit_library_call, emit_library_call_value): Likewise; take into
11214 account arg_space_so_far and pending_stack_adjust when calculcating
11217 Thu Mar 16 09:02:19 2000 Jason Eckhardt <jle@cygnus.com>
11219 * flow.c: Move all basic block reordering code into its own file.
11220 (create_basic_block): Externalize.
11221 * bb-reorder.c: New file. Copy all basic block reordering code from
11222 flow.c to this file.
11223 (reorder_basic_blocks): Fix fencepost error in for-loop.
11224 (reorder_basic_blocks): Remove braces from single statement for-loops.
11225 * basic-block.h: Add declaration for create_basic_block.
11226 * Makefile.in: Add rules for bb-reorder.o.
11228 2000-03-16 Neil Booth <NeilB@earthling.net>
11230 * cppinit.c (handle_option): Implement #unassert directive
11231 as -A- command line option.
11232 (print_help): Update.
11233 * cpptexi.c: Update.
11235 Thu Mar 16 02:14:16 2000 Hans-Peter Nilsson <hp@bitrange.com>
11237 * md.texi (Standard Names): Document `jump'.
11239 2000-03-15 Jason Merrill <jason@casey.cygnus.com>
11241 * calls.c (emit_call_1): Nothrow functions can still have nonlocal
11244 2000-03-15 Geoff Keating <geoffk@cygnus.com>
11246 Merge changes from newppc-branch onto trunk.
11248 2000-03-15 Geoff Keating <geoffk@cygnus.com>
11250 * rs6000.c (toc_hash_table): Update for new hash table functions.
11251 (toc_hash_function): Likewise.
11252 (toc_hash_eq): Likewise.
11253 (toc_hash_mark_entry): Likewise.
11254 (toc_hash_mark_table): Likewise.
11255 (output_toc): Likewise.
11256 (rs6000_add_gc_roots): Likewise.
11258 2000-03-15 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
11260 * t-aix43 (AR_FOR_TARGET): Deleted. Moved `-X32_64'...
11261 (AR_FLAGS_FOR_TARGET): here. New macro.
11263 2000-03-05 Clinton Popetz <cpopetz@cygnus.com>
11265 * config/rs6000/rs6000.c (rs6000_fpmem_offset, rs6000_fpmem_size,
11266 fpmem_operand) Delete.
11268 (rs6000_reg_names, alt_reg_names): Change fpmem to xer.
11269 (machine_function): Remove fpmem_size, fpmem_offset, save_toc_p.
11270 (rs6000_save_machine_status, rs6000_restore_machine_status,
11271 rs6000_init_expanders, rs6000_stack_info, debug_stack_info): Remove
11272 references to above variables.
11273 (gpc_reg_operand): Use XER_REGNO_P instead of FPMEM_REGNO_P.
11274 * config/rs6000/rs6000.h (REG_ALLOC_ORDER, REGISTER_NAMES,
11275 DEBUG_REGISTER_NAMES): Chagne fpmem to xer.
11276 (FPMEM_REGNO_P, FPMEM_REGNUM): Delete.
11277 (XER_REGNO_P, XER_REGNO): New.
11278 (rs6000_stack): Remove fpmem_p, fpmem_offset, fpmem_size.
11279 (PREDICATE_CODES): Change fpmem_operand to xer_operand.
11280 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Change FPMEM_REGNO_P to
11282 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS,
11283 REG_CLASS_FROM_LETTER, CLASS_MAX_NREGS): Change FPMEM_REGS to XER_REGS, and remove FLOAT_OR_FPMEM_REGS.
11284 (CLASS_CANNOT_CHANGE_SIZE): Change to FLOAT_REGS.
11286 2000-02-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11288 * aix.h (FP_SAVE_INLINE, ASM_OUTPUT_INTERNAL_LABEL_PREFIX,
11289 TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP): Move here...
11290 * rs6000.h: from here.
11292 * rs6000-protos.h (rs6000_select_section): Provide prototype.
11293 (rs6000_select_rtx_section): Likewise.
11294 (rs6000_encode_section_info): Likewise.
11295 (sdata_section): Likewise.
11296 (sdata2_section): Likewise.
11297 (sbss_section): Likewise.
11298 * sysv4.h (rs6000_select_section): Delete prototype.
11299 (rs6000_select_rtx_section): Likewise.
11300 (rs6000_encode_section_info): Likewise.
11301 (sdata_section): Likewise.
11302 (sdata2_section): Likewise.
11303 (sbss_section): Likewise.
11304 (REG_SAVE_AREA): Delete definition duplicated in rs6000.h.
11306 * sysv4.h: Delete various unnecessary #undef's and put a comment
11307 on the remaining ones.
11308 Change various comments according to coding standard.
11310 2000-02-29 Clinton Popetz <cpopetz@cygnus.com>
11312 * config/rs6000/rs6000.h (MQ_REGNO, CR0_REGNO, CR1_REGNO, CR2_REGNO,
11313 CR3_REGNO, CR4_REGNO, MAX_CR_REGNO): Define.
11314 (CR0_REGNO_P) Remove.
11315 * config/rs6000/rs6000.c (gpc_reg_operand, and64_operand, and_operand,
11316 setup_incoming_varargs, mtcrf_operation, print_operand,
11317 rs6000_stack_info, rs6000_emit_prologue, rs6000_emit_epilogue):
11318 Use the above macros.
11320 2000-02-24 Clinton Popetz <cpopetz@cygnus.com>
11322 * config/rs6000/rs6000.md: Added a new alternative for each
11323 pattern that had a 'x' alternative but no 'y' alternative.
11324 Added a new split for each of the above patterns.
11326 2000-02-18 Geoff Keating <geoffk@cygnus.com>
11328 * aix41.h (ASM_CPU_SPEC): Delete.
11329 (CPP_CPU_SPEC): Delete.
11331 * aix.h (RS6000_OUTPUT_BASENAME): Define.
11332 (ASM_OUTPUT_LABEL): Define.
11333 (ASM_GLOBALIZE_LABEL): Define.
11334 (STRIP_NAME_ENCODING): Define.
11335 * rs6000.h (RS6000_OUTPUT_BASENAME): Don't define.
11336 (STRIP_NAME_ENCODING): Don't define.
11337 (ASM_OUTPUT_LABEL): Don't define.
11338 (ASM_GLOBALIZE_LABEL): Don't define.
11339 * sysv4.h (ASM_DECLARE_FUNCTION_NAME): Use assemble_name to output
11340 names, and ASM_OUTPUT_LABEL to output labels, rather than
11342 (ASM_OUTPUT_LABEL): Define.
11343 (ASM_OUTPUT_INT): Use assemble_name.
11344 (ASM_OUTPUT_DWARF_ADDR): Use assemble_name.
11345 (STRIP_NAME_ENCODING): Don't undefine first.
11346 (RS6000_OUTPUT_BASENAME): Make equivalent to assemble_name for
11348 (ASM_OUTPUT_LABELREF): Don't prepend underscores to labels
11349 specified with 'asm' even with -fleading-underscore.
11350 * rs6000.c (print_operand): Use assemble_name when !TARGET_AIX.
11351 (output_epilog): Likewise.
11352 (output_toc): Likewise.
11353 * tramp.asm: Handle -fleading-underscore correctly.
11355 * rs6000.md (builtin_setjmp_receiver): Also run for -fPIC and
11357 (nonlocal_goto_receiver): Delete.
11358 * rs6000.h (DONT_ACCESS_GBLS_AFTER_EPILOGUE): Delete.
11360 * rs6000.h (ASM_OUTPUT_DEF): Don't define.
11361 (SET_ASM_OP): Define.
11362 * sysv4.h (ASM_OUTPUT_DEF): Don't undefine.
11364 * rs6000.h (ASM_OUTPUT_ADDR_VEC_ELT): Don't define.
11365 (ASM_LONG): Define.
11367 * rs6000.c (rs6000_dll_import_ref): Delete, not used.
11368 * rs6000-protos.h (rs6000_dll_import_ref): Delete.
11370 * rs6000.h: Add 'u' to more constants.
11372 2000-02-18 David Edelsohn <edelsohn@gnu.org>
11374 * rs6000.md (mfcr+shift): Delete PowerPC64 version.
11376 2000-02-15 David Edelsohn <edelsohn@gnu.org>
11378 * rs6000.c (reg_or_u_cint_operand): New function.
11379 (logical_operand): Handle 64-bit hosts.
11380 (logical_u_operand): New function.
11381 (non_logical_cint_operand): Handle 64-bit hosts.
11382 (non_logical_u_cint_operand): New function.
11383 * rs6000.h (DATA_SECTION_ASM_OP): Add tab.
11384 (PREDICATE_CODES): Define new functions.
11385 * rs6000-protos.h: Declare new functions.
11386 * rs6000.md (iordi3, xordi3): Constant int must be unsigned 32-bits.
11387 (movdi_64): Bracket code intended for 64-bit hosts. Create
11388 CONST_DOUBLE for 32-bit values.
11389 (scc insns): Generate DImode compares.
11390 (mfcr insns): Create DImode versions.
11391 (sge matchers): New patterns.
11393 2000-02-15 Gabriel Paubert <paubert@iram.es>
11395 * rs6000.md: Correct instructions length attributes and
11396 constraints on unsigned compare instructions.
11397 (*ne0): Disable for PowerPC64.
11399 2000-02-11 Geoff Keating <geoffk@cygnus.com>
11401 * rs6000.c (output_function_profiler): Use .long for a 32-bit
11402 quantity, fix profile1.C test failure under -fPIC.
11404 * rs6000.c: Add 'u' to many constants to suppress warnings.
11405 (constant_pool_expr_1): Make static.
11406 (rs6000_emit_eh_toc_restore): Remove unused 'r2'.
11407 * rs6000.h: Add 'u' to many constants to suppress warnings.
11409 * rs6000.c (rs6000_emit_load_toc_table): Use LCTOC..1 under AIX
11410 for the start of the TOC, instead of LCTOC..0.
11411 * aix.h (toc_section): Use LCTOC..1 under AIX for the start
11413 * rs6000.md (load_toc_aix_si): Use LCTOC..1.
11414 (load_toc_aix_di): Use LCTOC..1.
11416 * rs6000.h (LEGITIMIZE_ADDRESS): Turn into a function.
11417 * rs6000.c (rs6000_legitimize_address): New function from
11418 LEGITIMIZE_ADDRESS. Only use create_TOC_reference on
11419 symbols in the constant pool that really are TOC references.
11420 (print_operand_address): For ELF, write TOC offsets under
11421 -fPIC as subtractions in the insn.
11422 (output_toc): For ELF, define symbols in TOC as normal labels,
11424 (create_TOC_reference): Use gen_rtx_PLUS rather than gen_rtx.
11425 * rs6000-protos.h (rs6000_legitimize_address): Prototype.
11426 (create_TOC_reference): Prototype only when RTX_CODE is defined.
11427 * rs6000.md (movsi): Only use create_TOC_reference on
11428 symbols in the constant pool that really are TOC references.
11430 * rs6000.h (MACHINE_DEPENDENT_REORG): Don't define.
11431 * rs6000.c (rs6000_reorg): Delete.
11432 * rs6000-protos.h (rs6000_reorg): Delete.
11434 2000-02-09 Geoff Keating <geoffk@cygnus.com>
11436 * rs6000.h (INCOMING_RETURN_ADDR_RTX): New macro.
11438 * aix.h (SETUP_FRAME_ADDRESSES): Define.
11439 * rs6000.c [TARGET_AIX] (insn_after_throw): New static variable.
11440 [TARGET_AIX] (rs6000_aix_emit_builtin_unwind_init): New function.
11441 [TARGET_AIX] (rs6000_emit_eh_toc_restore): New function.
11442 * rs6000-protos.h: Prototype rs6000_emit_eh_toc_restore,
11443 rs6000_aix_emit_builtin_unwind_init.
11444 * rs6000.md (eh_epilogue) [TARGET_AIX]: Call
11445 rs6000_emit_eh_toc_restore on AIX.
11446 (return_eh_si): Use r2.
11447 (return_eh_di): Use r2.
11449 * aix43.h: Turn on HAS_INIT_SECTION and LD_INIT_SWITCH,
11450 since we're breaking binary compatibility anyway.
11452 2000-02-09 Clinton Popetz <cpopetz@cygnus.com>
11454 * config/rs6000/rs6000-protos.h: (get_TOC_alias_set, uses_TOC,
11455 constant_pool_expr_p): Declare them.
11456 (constant_pool_expr_p): Declare it.
11457 * config/rs6000/rs6000.c (toc_label_name): Define.
11458 (rs6000_override_options): Set toc_label_name.
11459 (input_operand): Allow any TOC_RELATIVE_EXPR_P.
11460 (get_TOC_alias_set, constant_pool_expr_p, constant_pool_expr_1,
11461 uses_TOC): New functions.
11462 (print_operand): Delete old '*' case.
11463 (print_operand_address): Use LEGITIMATE_CONSTANT_POOL_ADDRESS_P,
11464 and strip off rtl for TOC before calling output_addr_const.
11465 (rs6000_emit_load_toc_table): Use toc_label_name.
11466 * config/rs6000/rs6000.h (TARGET_SWITCHES): Make msched-prolog
11468 (LEGITIMATE_CONSTANT_POOL_BASE_P): Delete.
11469 (CONSTANT_POOL_EXPR_P, TOC_RELATIVE_EXPR_P): New macros.
11470 (LEGITIMATE_CONSTANT_POOL_ADDRESS_P): Use CONSTANT_POOL_EXPR_P.
11471 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Turn symbol_refs
11472 into explicit TOC_REGISTER offsets.
11473 (TOC_REGISTER): New macro.
11474 * config/rs6000/rs6000.md (movsi, movdi): Emit rtl under
11475 TARGET_TOC to reference TOC_REGISTER.
11476 (load_toc_v4_PIC_1b): Add 4 to offset for toc reload.
11477 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Call
11478 uses_TOC before emitting label references.
11480 2000-02-05 Geoff Keating <geoffk@cygnus.com>
11482 * rs6000.md (stack_tie): Fix warning.
11484 * eabi-ctors.c: Use 'asm' names for the start/end variables,
11485 to handle -fleading-underscore.
11486 * sysv4.h (ASM_DECLARE_FUNCTION_NAME): Use asm_fprintf and %U.
11487 (USER_LABEL_PREFIX): New macro.
11488 (ASM_OUTPUT_INTERNAL_LABEL_PREFIX): Use asm_fprintf and %L.
11489 (ASM_OUTPUT_LABELREF): Use asm_fprintf and %U.
11490 * t-ppccomm (MULTILIB_MATCHES_SYSV): Note that call-sysv and
11491 call-linux can use the same multilibs.
11492 * t-ppcgas (MULTILIB_OPTIONS): Don't need to have separate call-sysv
11493 and call-linux multilibs. Do multilib with -fleading-underscore.
11494 (MULTILIB_DIRNAMES): Follow MULTILIB_OPTIONS change.
11495 (MULTILIB_EXCEPTIONS): Remove call-linux exceptions. Add restrictions
11498 * sysv4.h (CPP_SYSV_SPEC): Define _SOFT_FLOAT for all those CPUs that
11499 have MASK_SOFT_FLOAT set.
11500 (CPP_FLOAT_DEFAULT_SPEC): New macro.
11501 (SUBTARGET_EXTRA_SPECS): Set `cpp_float_default' to the value of
11502 CPP_FLOAT_DEFAULT_SPEC.
11504 * rs6000.c (ccr_bit): Add some consistency checks and a variable 'reg'.
11505 * rs6000.md: Whitespace change.
11506 * sysv4.h (LINK_TARGET_SPEC): Whitespace change.
11507 * sysv4le.h (LINK_TARGET_SPEC): Whitespace change.
11509 2000-02-05 Geoff Keating <geoffk@cygnus.com>
11511 * rs6000.md (eh_epilogue): New expander.
11512 (eh_reg_restore): New expand/split/insn combination.
11513 (return_eh_si): New insn.
11514 (return_eh_di): New insn.
11516 * eabi-ci.asm: Put a label at the start of the .eh_frame section.
11517 * eabi-cn.asm: Put a zero at the end of the .eh_frame section.
11518 * eabi-ctors.c (__do_global_ctors): Register this object's
11519 frame. Clean up. Call atexit() after the constructors.
11520 (__do_global_dtors): Deregister this object's frame. Clean up.
11521 Allow for recursive calls to exit().
11522 * rs6000.c (fixuplabelno): New variable.
11523 * sysv4.h (ASM_OUTPUT_INT): Don't do .fixup if not
11524 TARGET_RELOCATABLE, it slows down exec() under linux.
11525 (ASM_OUTPUT_DWARF_ADDR): Do .fixup if TARGET_RELOCATABLE.
11527 * aix.h (ASM_OUTPUT_DWARF_ADDR_VAR): New macro.
11528 (ASM_OUTPUT_DWARF_DELTA_VAR): New macro.
11529 (ASM_OUTPUT_DWARF_DELTA2): New macro.
11530 (ASM_OUTPUT_DWARF_DELTA4): New macro.
11531 (ASM_OUTPUT_DWARF_ADDR_DELTA): New macro.
11532 (ASM_OUTPUT_DWARF_ADDR): New macro.
11533 (ASM_OUTPUT_DWARF_DATA4): New macro.
11534 (ASM_OUTPUT_DWARF_DATA2): New macro.
11535 (ASM_OUTPUT_DWARF_OFFSET4): New macro.
11536 (ASM_OUTPUT_DWARF_OFFSET): New macro.
11537 (UNALIGNED_INT_ASM_OP): New macro, fake definition.
11539 2000-02-03 Geoff Keating <geoffk@cygnus.com>
11541 * rs6000.c (rs6000_sr_alias_set): New variable.
11542 (rs6000_override_options): Initialise rs6000_sr_alias_set.
11543 (rs6000_emit_stack_tie): New function.
11544 (rs6000_emit_allocate_stack): Specify RTX_FRAME_RELATED_P
11545 in a way that dwarf2out can understand.
11546 (rs6000_frame_related): New function.
11547 (rs6000_emit_prologue): Use rs6000_sr_alias_set. Specify
11548 RTX_FRAME_RELATED_P in a way that dwarf2out can understand.
11549 Use rs6000_emit_stack_tie when needed.
11550 (rs6000_emit_epilogue): Use rs6000_sr_alias_set. Don't set
11551 RTX_FRAME_RELATED_P. Use rs6000_emit_stack_tie when needed.
11552 * rs6000.md (stack_tie): New insn.
11553 (return_internal_si): Allow return value to be in the count
11555 (return_internal_di): Likewise.
11557 * rs6000.c (output_mi_thunk): Remove unused variable `sp'.
11559 2000-02-03 Geoff Keating <geoffk@cygnus.com>
11561 * sysv4.h (LOCAL_LABEL_PREFIX): Define, for the use of dbxelf.h.
11563 2000-01-31 Geoff Keating <geoffk@cygnus.com>
11565 * rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): New macro.
11567 * rs6000.md (stmw): Use the right POWER opcode.
11570 2000-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11572 * rs6000-protos.h: New file.
11574 * rs6000.c: Include tm_p.h. Fix compile time warnings.
11576 * rs6000.h: Move prototypes to rs6000-protos.h. Fix compile time
11579 * sysv4.h: Likewise.
11581 2000-01-28 Geoff Keating <geoffk@cygnus.com>
11583 * ../../configure.in: Delete powerpcle-*-winnt*
11584 and powerpcle-*-pe|powerpcle-*-cygwin*.
11585 * ../../configure: Regenerated.
11586 * cygwin.h: Delete.
11587 * rs6000.h (OBJECT_WINDOWS_NT): Delete.
11588 (TARGET_WINDOWS_NT): Delete.
11590 (CALL_NT_DLLIMPORT): Delete.
11591 Delete NT-specific code.
11592 * rs6000.md, rs6000.c, sysv4.h: Delete NT-specific code.
11593 * win-nt.h: Delete.
11595 * nt-ci.asm: Delete.
11596 * nt-cn.asm: Delete.
11597 * ntstack.asm: Delete.
11599 2000-01-27 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11601 * rs6000.h (SELECT_RTX_SECTION): Move to aix.h.
11602 (ASM_FILE_START): Likewise.
11603 (ASM_DECLARE_FUNCTION_NAME): Likewise.
11604 (ASM_OUTPUT_LABELREF): Likewise.
11605 (ASM_OUTPUT_SKIP): Likewise.
11606 (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
11607 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
11608 (ASM_OUTPUT_CASE_LABEL): Likewise.
11609 (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
11610 (ASM_OUTPUT_ASCII): Likewise.
11612 2000-01-27 Clinton Popetz <cpopetz@cygnus.com>
11614 * rs6000.c (rs6000_emit_load_toc_table): Use "LCG" and
11615 reload_toc_labelno for non-prologue TOC reloads. Also, don't
11616 increment rs6000_pic_labelno here.
11617 (rs6000_emit_prologue): Pass TRUE to rs6000_emit_load_toc_table,
11618 and increment rs6000_pic_labelno here.
11620 2000-01-24 Geoffrey Keating <geoffk@cygnus.com>
11622 * rs6000.md (fctiwz): Use (set (reg) (unspec:DI [(fix:SI ...)]))
11623 rather than (set (subreg:SI (reg)) (fix:SI ...)) so that register
11624 allocation knows (reg) is dead before the insn.
11626 2000-01-21 Geoff Keating <geoffk@cygnus.com>
11628 * rs6000.md (movsi_to_cr): Correct typo in output template.
11630 2000-01-19 Geoffrey Keating <geoffk@cygnus.com>
11632 * rs6000.c (rs6000_pic_labelno): Always define.
11633 (rs6000_pic_func_labelno): Delete.
11634 (lmw_operation): Check for a zero base register,
11635 which doesn't mean what we want.
11636 (stmw_operation): New function.
11637 (print_operand): Define new 'l' modifier.
11638 (rs6000_stack_info): We must save all 64 bits of the registers
11639 if TARGET_POWERPC64.
11640 (rs6000_output_load_toc_table): Delete.
11641 (rs6000_emit_load_toc_table): New function.
11642 (rs6000_allocate_stack_space): Delete.
11643 (rs6000_emit_allocate_stack): New function.
11644 (rs6000_emit_prologue): New function.
11645 (output_prolog): Use rs6000_emit_prologue.
11646 (rs6000_emit_epilogue): Change a few variable names to be
11647 more accurate. Restore all 64 bits of the registers if
11648 TARGET_POWERPC64. Only restore the FP registers which were used
11649 if they are being saved/restored one-at-a-time.
11650 (output_mi_thunk): Delete inefficient code generation.
11651 (output_function_profiler): Don't use rs6000_output_load_toc_table.
11652 * rs6000.h: Declare rs6000_emit_load_toc_table,
11653 rs6000_allocate_stack_space, stmw_operation. Don't declare
11654 rs6000_output_load_toc_table.
11655 * rs6000.md (elf_high): Allow register 0, but discourage it
11657 (elf_low): Support loading into register 0.
11658 (load_toc_aix_si): New pattern.
11659 (load_toc_aix_di): New pattern.
11660 (load_toc_v4_pic_si): New pattern.
11661 (load_toc_v4_pic_di): New pattern.
11662 (load_toc_v4_PIC_1): New pattern.
11663 (load_toc_v4_PIC_1b): New pattern.
11664 (load_toc_v4_PIC_2): New pattern.
11665 (builtin_setjmp_receiver): Use rs6000_emit_load_toc_table.
11666 (nonlocal_goto_receiver): Use rs6000_emit_load_toc_table.
11667 (prologue): New expander.
11668 (movesi_from_cr): New pattern.
11669 (stmw): New pattern.
11670 (save_fpregs_si): New pattern.
11671 (save_fpregs_di): New pattern.
11673 2000-01-19 Geoff Keating <geoffk@cygnus.com>
11675 * rs6000.md (movsi): Don't use force_reg when no_new_pseudos.
11680 2000-01-19 Geoff Keating <geoffk@cygnus.com>
11682 * rs6000.md (movsi_got): 'unspec 8' returns a SImode result,
11684 (movsi_got_internal): Likewise.
11685 (movsi_got_internal+1): Likewise.
11686 (set_sp): 'unspec 7' does a SImode clobber.
11688 2000-01-19 Geoff Keating <geoffk@cygnus.com>
11690 * rs6000.md (floatsidf2): Don't use the fpmem "register", just
11691 allocate a stack temporary.
11692 (floatsidf2_internal): Likewise.
11693 (floatsidf2_internal+1): Likewise. Don't do bizzare hacks
11695 (floatunssidf2): Don't use the fpmem "register", just
11696 allocate a stack temporary.
11697 (floatunssidf2_internal): Likewise.
11698 (floatunssidf2_internal+1): Likewise. Don't do bizzare hacks
11700 (floatsidf2_loadaddr): Delete.
11701 (floatsidf2_store1): Delete.
11702 (floatsidf2_store2): Delete.
11703 (floatsidf2_load): Delete.
11704 (fix_truncdfsi2): Don't use the fpmem "register", just
11705 allocate a stack temporary.
11706 (fix_truncdfsi2_internal_si): Delete.
11707 (fix_truncdfsi2_internal_di): Delete.
11708 (fix_truncdfsi2_internal): New insn.
11709 (fix_truncdfsi2_internal+1): Don't use the fpmem "register".
11710 (fix_truncdfsi2_store): Delete.
11711 (fix_truncdfsi2_load): Delete.
11712 (fctiwz): Produce gen_fctiwz.
11714 2000-01-19 Geoffrey Keating <geoffk@cygnus.com>
11716 * eabi.h (INVOKE__main): Define.
11717 * rs6000.c (rs6000_stack_info): Don't handle call to NAME__MAIN
11719 (rs6000_emit_prologue): Likewise.
11720 * rs6000.h (struct rs6000_stack): Don't keep track of whether
11721 this is the main program.
11723 2000-01-19 Geoff Keating <geoffk@cygnus.com>
11725 * rs6000.c (rs6000_va_arg): Delete some unused variables.
11727 2000-01-19 Geoff Keating <geoffk@cygnus.com>
11729 * rs6000.c (rs6000_va_arg): On AIX, padding for small arguments
11730 goes after the argument.
11732 2000-01-12 Geoff Keating <geoffk@cygnus.com>
11734 * rs6000.md: Document 'unspec' values used.
11735 (epilogue): New expander.
11736 (movesi_to_cr_one): New expander.
11737 (movesi_to_cr and following): New pattern.
11738 (lmw): New pattern.
11739 (return_internal_si): New pattern.
11740 (return_internal_di): New pattern.
11741 (return_and_restore_fpregs_si): New pattern.
11742 (return_and_restore_fpregs_di): New pattern.
11743 * rs6000.h: Declare new functions.
11744 * rs6000.c (rs6000_stack_info): Use current_function_is_leaf
11745 rather than rs6000_calls_p.
11746 (rs6000_makes_calls): Delete.
11747 (lmw_operation): New function.
11748 (mtcrf_operation): New function.
11749 (rs6000_emit_epilogue): New function.
11750 (output_epilog): Call rs6000_emit_epilogue and final if
11751 !TARGET_SCHED_PROLOG, instead of writing text unconditionally.
11753 2000-01-12 Geoff Keating <geoffk@cygnus.com>
11755 * aix43.h (SUBSUBTARGET_SWITCHES): Document switches.
11756 * aix41.h (SUBSUBTARGET_SWITCHES): Document switches.
11757 * aix.h (SUBTARGET_SWITCHES): Document switches.
11758 * rs6000.h: (TARGET_SWITCHES): Don't print options twice. Make
11759 sched-prolog and sched-epilog the same. Document all the
11761 (TARGET_OPTIONS): No longer allow -mdebug-.
11763 2000-01-12 Geoff Keating <geoffk@cygnus.com>
11765 * rs6000.h (ASM_FILE_END): Move to aix.h.
11766 (EXTRA_SECTIONS): Move to aix.h.
11767 (READONLY_DATA_SECTION): Move to aix.h.
11768 (EXTRA_SECTION_FUNCTIONS): Move to aix.h.
11769 (SELECT_SECTION): Move to aix.h.
11770 (JUMP_TABLES_IN_TEXT_SECTION): Move to aix.h.
11771 (INT_REGNO_P): Use symbolic name for ARG_POINTER_REGNUM.
11772 (LINK_REGISTER_REGNUM): New definition.
11773 (RETURN_ADDR_RTX): Use symbolic name for LINK_REGISTER_REGNUM.
11774 (SLOW_UNALIGNED_ACCESS): Define in a way suitable for both
11776 * sysv4.h: Delete the code between the inclusion of rs6000.h
11778 (DWARF_DEBUGGING_INFO): Don't define, it's defined in elfos.h.
11779 (FP_ARG_MAX_REG): Move generic definition to rs6000.h.
11780 (RS6000_REG_SAVE): Move generic definition to rs6000.h.
11781 (RS6000_SAVE_AREA): Move generic definition to rs6000.h.
11782 * rs6000.md (floatsidf2_loadaddr): The first arg here is Pmode.
11783 (fix_truncdfsi2_internal): Rename to fix_truncdfsi2_internal_si.
11784 (fix_truncdfsi2_internal_di): New pattern.
11785 (fix_truncdfsi2_store): The second arg here is Pmode too.
11786 (fix_truncdfsi2_load): The second arg here is Pmode too.
11787 (tablejumpdi): Now that switch tables hold only SImode values,
11788 gcc needs to know how to add them to the pc which is DImode.
11789 * rs6000.c (rs6000_stack_info): Use symbolic name for
11790 LINK_REGISTER_REGNUM.
11791 (output_mi_thunk) [!TARGET_ELF]: Don't define sp, it's not used.
11792 (output_toc): Delete unused variables s1 and s2.
11793 (output_ascii): Use fputs not fprintf on a variable string.
11795 2000-01-07 David Edelsohn <edelsohn@gnu.org>
11797 * rs6000.c (processor_target_table): Add power3 as alias for 630.
11798 * aix43.h: Revert Aug 2 change.
11799 (HAS_INIT_SECTION): Define, not visible yet.
11800 (LD_INIT_SWITCH): Define, not visible yet.
11801 * t-aix43 (MULTILIB_OPTIONS): Revert Aug 2 change.
11803 2000-01-04 Joel Sherrill (joel@OARcorp.com>
11805 * config/rs6000/rtems.h: Include config/rtems.h.
11807 2000-01-04 David Edelsohn <edelsohn@gnu.org>
11809 * rs6000.h (HANDLE_PRAGMA_PACK): Define.
11810 (SLOW_UNALIGNED_ACCESS): Define.
11811 (CASE_VECTOR_MODE): Always use 32-bit offsets.
11812 (ASM_FILE_END): Generate 64-bit symbol in 64-bit mode.
11813 (EXTRA_SECTOIN_FUNCTIONS): Indent .csect pseudo-op.
11814 (toc_section): Likewise and .toc pseudo-op.
11815 (ASM_DECLARE_FUNCTION): Likewise. Align text more strictly in
11817 (TEXT_SECTION_ASM_OP): Likewise.
11818 (ASM_OUTPUT_ADD_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Always use
11821 1999-12-17 Jakub Jelinek <jakub@redhat.com>
11823 * config/rs6000/rs6000.h (TARGET_POWERPC64): Make sure
11824 UNITS_PER_WORD and BITS_PER_WORD are compile time constants when
11827 2000-01-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11829 * rs6000.h: Move more stuff from here...
11831 * sysv4.h: Cleanup accordingly.
11832 * netware.h: Likewise
11834 2000-01-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11836 * rs6000.h: Continue cleanup.
11838 * lynx.h: Likewise.
11839 * netware.h: Likewise.
11840 * sol2.h: Likewise.
11841 * sysv4.h: Likewise.
11842 * win-nt.h: Likewise.
11844 * rs6000.h (TARGET_SWITCHES): Add descriptions.
11845 (TARGET_OPTIONS): Likewise.
11847 * sysv4.h (SUBTARGET_SWITCHES): Add descriptions.
11848 (SUBTARGET_OPTIONS): Likewise.
11850 * rs6000.md: Fix compile time warnings.
11852 2000-01-04 Geoff Keating <geoffk@cygnus.com>
11854 vxworks patches from the Cygnus tree originally by
11855 Michael Meissner <meissner@cygnus.com> and Vladimir Makarov
11856 <vmakarov@cygnus.com>.
11857 * sysv4.h (SUBTARGET_SWITCHES): Add vxworks.
11858 (ENDFILE_SPEC): Likewise.
11859 (LIB_VXWORKS_SPEC): New macro.
11860 (STARTFILE_VXWORKS_SPEC): New macro.
11861 (ENDFILE_VXWORKS_SPEC): New macro.
11862 (LINK_START_VXWORKS_SPEC): New macro.
11863 (LINK_OS_VXWORKS_SPEC): New macro.
11864 (CPP_OS_VXWORKS_SPEC): New macro.
11865 (SUBTARGET_EXTRA_SPECS): Add all the vxworks specs.
11866 * vxppc.h: Rewrite to use proper configuration method.
11867 * vxppcle.h: New file.
11868 * ../../configure.in: Add powerpcle-wrs-vxworks*.
11869 * ../../configure: Rebuilt.
11871 2000-01-04 Geoff Keating <geoffk@cygnus.com>
11873 Lots of changes to rs6000.h, sysv4.h, aix.h,
11874 aix31.h, aix3newas.h, aix41.h, aix43.h, beos.h,
11875 with the aim that rs6000.h is the first header
11876 included and the others override it.
11879 * x-aix41-gld: Remove.
11881 * x-aix41: Remove target-specific switches, and don't specify
11882 -Wl,-bbigtoc as we don't need it any more.
11883 * ../../configure.in: Use x-aix41 for ppc AIX 4.1 and above.
11884 Use t-aix43 for AIX 4.3 and above.
11885 * ../../configure: Regenerated.
11887 * rs6000.h (TARGET_SWITCHES): Add some initial prolog-scheduling
11888 options, that don't do anything yet.
11889 (MASK_SCHED_PROLOG): New macro.
11890 (MASK_SCHED_EPILOG): New macro.
11891 (TARGET_SCHED_PROLOG): New macro.
11892 (TARGET_SCHED_EPILOG): New macro.
11894 2000-01-04 Geoff Keating <geoffk@cygnus.com>
11896 * rs6000.c: Correct comment, the `minimal' TOCs are actually
11897 one per translation unit, not one per function.
11898 (output_toc): Also do duplicate constant elimination
11899 for per-translation-unit TOCs.
11901 * rs6000.md (nonlocal_goto_receiver): Put it back as before. Add
11902 a comment explaining _exactly_ when this pattern gets used.
11903 (builtin_setjmp_receiver): New pattern for better clarity.
11904 (init_v4_pic): Move it into a section dealing with TOC registers.
11906 1999-12-30 Geoff Keating <geoffk@cygnus.com>
11908 * rs6000.c (toc_hash_table): New variable.
11909 (rs6000_hash_constant): New function.
11910 (toc_hash_function): New function.
11911 (toc_hash_eq): New function.
11912 (toc_hash_mark_entry): New function.
11913 (toc_hash_mark_table): New function.
11914 (output_toc): Don't output duplicate TOC entries in
11916 (rs6000_add_gc_roots): Add the hash table as a GC root.
11917 * t-aix43: Move AR_FOR_TARGET and CLIB here from x-aix43,
11918 where they clearly shouldn't be. This may need to be fixed
11919 later when there is a GNU ar for AIX.
11920 * x-aix43: Don't define CLIB or AR_FOR_TARGET.
11921 Don't define BOOT_LDFLAGS as it is now not necessary.
11923 1999-12-29 Geoff Keating <geoffk@cygnus.com>
11925 * rs6000.c (rs6000_build_va_list): Use 'char *' rather than 'void *'
11926 for va_list on AIX. Use unsigned_char_type_node rather than
11927 constructing our own version on svr4.
11929 1999-12-17 Geoff Keating <geoffk@cygnus.com>
11931 * tramp.asm (__trampoline_size): Delete CYGNUS LOCAL comment,
11932 since patently it's not.
11934 1999-12-08 Geoff Keating <geoffk@cygnus.com>
11936 * config/rs6000/rs6000.md (nonlocal_goto_receiver): Turn into
11937 define_expand/define_insn pair, and handle restore of the
11938 SVR4 -fpic register.
11940 Wed Mar 15 15:43:38 2000 Jeffrey A Law (law@cygnus.com)
11942 * acconfig.h (HAVE_GAS_WEAK): New define.
11943 * configure.in (assembler weak support): Check for .weak support.
11944 * config.in, configure: Rebuilt.
11945 * pa/som.h (MAKE_DECL_ONE_ONLY, ASM_WEAKEN_LABEL): Only define if
11946 HAVE_GAS_WEAK is defined.
11948 2000-03-15 Nick Clifton <nickc@cygnus.com>
11950 * config/arm/arm.c (arm_output_epilogue): Do not pass %c to
11953 2000-03-15 Zack Weinberg <zack@wolery.cumb.org>
11955 * cppfiles.c (open_include_file): New function.
11956 (find_include_file, cpp_read_file): Use it.
11958 2000-03-15 Jason Merrill <jason@casey.cygnus.com>
11960 * cpphash.c (dump_hash_helper): Take the slot, not the element.
11962 Wed Mar 15 14:28:54 2000 Jason Eckhardt <jle@cygnus.com>
11964 * flow.c (verify_flow_info): Check for unconditional return.
11966 Wed Mar 15 11:34:27 2000 Jim Wilson <wilson@cygnus.com>
11968 * config/ia64/ia64.md (restore_stack_nonlocal): New.
11969 * config/ia64/lib1funcs.asm (__ia64_nonlocal_goto): Delete padding nop.
11970 (__ia64_restore_stack_nonlocal): New.
11971 * config/ia64/t-ia64 (LIB1ASMFUNCS): Add __restore_stack_nonlocal.
11973 2000-03-15 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
11975 * cpphash.c (collect_formal_parameters): Do not complain about
11976 parameter names that just start with `__VA_ARGS__'.
11978 Wed Mar 15 13:26:58 MET 2000 Jan Hubicka <jh@suse.cz>
11980 * i386.md (movhi_1): Promote movw imm, reg to movl imm, reg and
11981 movw reg, reg to movzwl reg, reg on PARTIAL_REGISTER_STALL machines.
11982 * i386.c (pentiumpro_cost): Set mul cost to 4.
11983 (x86_use_movx): Set for PPro.
11985 Wed Mar 15 13:07:05 MET 2000 Jan Hubicka <jh@suse.cz>
11987 * i386.md (ix86_compute_frame_size): stack_alignment_needed is
11988 STACK_BOUNDARY for empty frames now.
11990 2000-03-14 Mark Mitchell <mark@codesourcery.com>
11992 * stor-layout.c (layout_union): Remove.
11993 (layout_union_field): New function, split out from layout_union.
11994 (finish_union_layout): Likewise.
11995 (layout_field): Handle unions by calling layout_union_field.
11996 (finish_record_layout): Handle unions.
11997 (layout_type): Combine RECORD_TYPE, UNION_TYPE, and
11998 QUAL_UNION_TYPE handling.
12000 Wed Feb 23 13:00:06 CET 2000 Jan Hubicka <jh@suse.cz>
12002 * flow.c (fixup_reorder_chain): Avoid double labels in the basic block;
12003 end of basic block is jump_insn, not barrier; use create_basic_block
12004 instead of creating basic block by hand.
12006 2000-03-14 Jason Eckhardt <jle@cygnus.com>
12008 * flow.c (reorder_basic_blocks): Account for barriers when writing
12009 over NEXT_INSN (last_bb->end).
12010 (verify_flow_info): Add check for missing barriers.
12012 2000-03-14 Greg McGary <gkm@gnu.org>
12014 * c-lex.h (enum rid): Add RID_BOUNDED & RID_UNBOUNDED.
12015 * c-lex.c (init_lex): Handle RID_BOUNDED & RID_UNBOUNDED.
12016 * c-parse.gperf (__bounded, __bounded__, __ptrbase, __ptrbase__,
12017 __ptrextent, __ptrextent__, __ptrvalue, __ptrvalue__,
12018 __unbounded, __unbounded__): New keywords.
12019 * c-parse.in (PTR_VALUE PTR_BASE PTR_EXTENT): New tokens.
12020 * c-parse.y, c-parse.c, c-parse.h: Regenerate.
12021 * objc/objc-parse.y, objc/objc-parse.c: Regenerate.
12023 2000-03-14 Bernd Schmidt <bernds@cygnus.co.uk>
12025 * cselib.h: New file.
12026 * alias.c: Include "cselib.h".
12027 (fixed_scalar_and_varying_struct_p): Accept the addresses of the
12028 MEMs as two new arguments.
12029 (get_addr): New static function.
12030 (find_base_term): Handle VALUEs.
12031 (memrefs_conflict_p): Likewise.
12032 (true_dependence): Call get_addr on the addresses.
12033 Call fixed_scalar_and_varying_struct_p with addresses that have been
12034 passed through get_addr and canon_rtx.
12035 (write_dependence_p): Move DIFFERENT_ALIAS_SETS_P test for consistency
12036 with true_dependence.
12037 Call get_addr on the addresses; don't call canon_rtx on the MEMs.
12038 * loop.c: Include "cselib.h".
12039 (load_mems): Process extended basic block that enters the loop with
12040 cselib. Use that information to change initialization of the shadow
12041 register so that a constant equivalence is seen by later passes.
12042 * reload1.c: Include "cselib.h".
12043 (reload_cse_invalidate_regno): Delete function.
12044 (reload_cse_mem_conflict_p): Likewise.
12045 (reload_cse_invalidate_mem): Likewise.
12046 (reload_cse_invalidate_rtx): Likewise.
12047 (reload_cse_regno_equal_p): Likewise.
12048 (reload_cse_check_clobber): Likewise.
12049 (reload_cse_record_set): Likewise.
12050 (reg_values): Delete static variable.
12051 (invalidate_regno_rtx): Likewise.
12052 (reload_cse_delete_noop_set): New static function.
12053 (reload_cse_simplify): New static function, broken out of
12055 (reload_cse_noop_set_p): Delete unused argument INSN.
12056 Just call rtx_equal_for_cselib_p on set source and destination.
12057 (reload_cse_regs_1): Break out some code into reload_cse_simplify and
12058 reload_cse_delete_noop_set. Delete code to keep track of values; use
12059 cselib functions instead. Delete code to push/pop obstacks.
12060 (reload_cse_simplify_set): Use cselib to find equivalent values.
12061 Delete code to push/pop obstacks.
12062 (reload_cse_simplify_operands): Likewise.
12063 * rtl.def (VALUE): New rtx code.
12064 * rtl.h (union rtunion_def): New elt rt_cselib.
12065 (X0CSELIB, CSELIB_VAL_PTR): New macros.
12066 * simplify_rtx.c: Include "ggc.h", "obstack.h", "cselib.h".
12067 (new_elt_list, new_elt_loc_list, unchain_one_value, clear_table,
12068 unchain_one_elt_list, unchain_one_elt_loc_list, check_useless_values,
12069 discard_useless_locs, discard_useless_values, entry_and_rtx_equal_p,
12070 hash_rtx, new_cselib_val, add_mem_for_addr, get_value_hash,
12071 cselib_lookup_mem, cselib_subst_to_values, cselib_invalidate_regno,
12072 cselib_mem_conflict_p, cselib_invalidate_mem, cselib_invalidate_rtx,
12073 cselib_record_set, cselib_record_sets): New static functions.
12074 (cselib_lookup, cselib_update_varray_sizes, cselib_init,
12075 cselib_finish, cselib_process_insn, rtx_equal_for_cselib_p,
12076 references_value_p): New functions.
12077 (MAX_USELESS_VALUES, REG_VALUES): New macros.
12078 (table, cselib_current_insn, next_unknown_value, cselib_nregs,
12079 n_useless_values, reg_values, callmem, cselib_obstack,
12080 cselib_startobj, empty_vals, empty_elt_lists, empty_elt_loc_lists):
12081 New static variables.
12082 * varray.h (union varray_data_tag): New elt te.
12083 (VARRAY_ELT_LIST_INIT, VARRAY_ELT_LIST): New macros.
12084 * Makefile.in (reload1.o, loop.o, simplify-rtx.o, alias.o): Update
12087 2000-03-14 Nick Clifton <nickc@cygnus.com>
12089 * gcc.c (do_spec_1): Catch the case where %* is used in a
12090 substitution pattern, but it has not been initialised.
12091 Issue a meaningful error message if an unrecognised operator
12092 is encountered in a spec string.
12094 2000-03-14 Richard Earnshaw <rearnsha@arm.com>
12096 * function.c (prepare_function_start): Correctly initialize
12097 cfun->stack_alignment_needed.
12099 2000-03-14 Zack Weinberg <zack@wolery.cumb.org>
12101 * cppfiles.c (find_include_file): Don't assume nshort is a
12104 Tue Mar 14 08:42:21 2000 Jeffrey A Law (law@cygnus.com)
12106 * configure.in (hppa configurations): Add pa32-regs.h to the
12107 list of tm files as appropriate.
12108 * configure: Rebuilt.
12109 * pa.c (compute_frame_size): Remove explicit knowledge about FP
12110 register numbering.
12111 (hppa_expand_prologue, hppa_expand_epilogue): Likewise.
12112 (fmpyaddoperands, fmpysuboperands): Likewise.
12113 * pa.h: Remove various definitions which depend on knowing
12114 how registers are numbered.
12115 * pa32-regs.h: New file with PA32 register numbering specific
12118 2000-03-14 Richard Henderson <rth@cygnus.com>
12120 * regmove.c (combine_stack_adjustments): New.
12121 (stack_memref_p, single_set_for_csa): New.
12122 (free_csa_memlist, record_one_stack_memref): New.
12123 (try_apply_stack_adjustment): New.
12124 (combine_stack_adjustments_for_block): New.
12125 * rtl.h (combine_stack_adjustments): Declare.
12126 * toplev.c (rest_of_compilation): Call it.
12128 * i386.md: Revert 2000-01-16 change.
12130 2000-03-14 Martin v. Löwis <loewis@informatik.hu-berlin.de>
12132 * gccbug.in: Add web category, gcc specific classes.
12134 2000-03-14 Nathan Sidwell <nathan@codesourcery.com>
12136 * stor-layout.c (finalize_record_size): Fix typo.
12138 2000-03-14 Stan Shebs <shebs@apple.com>
12140 * c-typeck.c (c_alignof): Error on incomplete types.
12141 * extend.texi (Alignment): Document this.
12143 2000-03-13 Zack Weinberg <zack@wolery.cumb.org>
12145 * cppfiles.c: Include mkdeps.h.
12146 (find_include_file, read_include_file): Remove _cpp_ prefix
12147 from name, make static.
12148 (_cpp_execute_include): New function, broken out of
12151 * cpplib.c: Don't include mkdeps.h.
12152 (struct directive): Remove type field. Reorder entries. The
12153 function takes only one argument.
12154 (struct if_stack): Make type field an int.
12155 (directive_table): Rename to dtable. Generate it, the
12156 prototypes of the directive handlers, and the enum for the
12157 directive numbers, from a template macro.
12158 (do_ifndef, do_include_next, do_import): New functions.
12159 (do_define, do_include, do_endif, do_ifdef, do_if, do_else,
12160 do_undef, do_line, do_elif, do_error, do_pragma, do_warning,
12161 do_ident, do_assert, do_unassert, do_sccs): Take only one
12163 (do_sccs): Define always, but alter behavior based on
12165 (_cpp_handle_directive, consider_directive_while_skipping):
12166 Restructure for new directive table layout.
12168 (pass_thru_directive): Take a directive number, not a pointer
12169 to a struct directive.
12170 (parse_include): New function, broken out of do_include.
12171 (do_include, do_import, do_include_next): Use parse_include
12172 and _cpp_execute_include.
12173 (do_elif, do_else): Test for T_ELSE specifically when checking
12174 for #elif/#else after #else.
12175 (parse_ifdef): New function, broken out of do_ifdef.
12176 (validate_else): Expect a name arg without a leading #.
12177 (if_directive_name): Delete.
12178 (cpp_define, cpp_assert, cpp_undef, cpp_unassert): Call
12179 directive handlers with only one argument.
12181 * cpphash.h: Update prototypes.
12182 (enum node_type): Remove entries for directives.
12183 * Makefile.in: Update dependencies.
12185 * cpphash.c (dump_hash_helper): Only dump nodes of type
12186 T_MACRO. Emit a newline after each definition.
12188 2000-03-14 Martin v. Löwis <loewis@informatik.hu-berlin.de>
12190 * gccbug.in: New file.
12191 * configure.in (all_outputs): Add gccbug.
12192 * Makefile.in (install-common): Install gccbug.
12193 (GCCBUG_INSTALL_NAME): New variable.
12194 * configure: Rebuilt.
12196 2000-03-13 Jason Merrill <jason@casey.cygnus.com>
12198 * function.c (put_var_into_stack): Use type_for_mode to calculate
12199 part_type. Use MEM_SET_IN_STRUCT_P.
12200 * expr.c (store_field): Handle CONCAT.
12201 (store_constructor): Use fields_length.
12202 * tree.c (fields_length): New fn.
12203 * tree.h: Declare it.
12205 2000-03-13 Zack Weinberg <zack@wolery.cumb.org>
12207 * Makefile.in (LIBCPP_OBJS): Add cpplex.o.
12208 (cpplex.o): New target.
12209 * po/POTFILES.in: Add cpplex.c.
12211 * cpplex.c (_cpp_grow_token_buffer, null_cleanup,
12212 cpp_push_buffer, cpp_pop_buffer, cpp_scan_buffer,
12213 cpp_expand_to_buffer, cpp_buf_line_and_col, cpp_file_buffer,
12214 skip_block_comment, skip_line_comment, skip_comment,
12215 copy_comment, _cpp_skip_hspace, _cpp_skip_rest_of_line,
12216 _cpp_parse_name, skip_string, parse_string,
12217 _cpp_parse_assertion, cpp_get_token, cpp_get_non_space_token,
12218 _cpp_get_directive_token, find_position,
12219 _cpp_read_and_prescan, _cpp_init_input_buffer): Move here.
12220 (maybe_macroexpand, _cpp_lex_token): New functions.
12222 * cpplib.c (SKIP_WHITE_SPACE, eval_if_expr, parse_set_mark,
12223 parse_goto_mark): Delete.
12224 (_cpp_handle_eof): New function.
12225 (_cpp_handle_directive): Rename from handle_directive.
12226 (_cpp_output_line_command): Rename from output_line_command.
12227 (do_if, do_elif): Call _cpp_parse_expr directly.
12228 * cppfiles.c (_cpp_read_include_file): Don't call
12229 init_input_buffer here.
12230 * cpphash.c (quote_string): Move here, rename _cpp_quote_string.
12231 * cppexp.c (_cpp_parse_expr): Diddle parsing_if_directive
12232 here; pop the token_buffer and skip the rest of the line here.
12233 * cppinit.c (cpp_start_read): Call _cpp_init_input_buffer
12236 * cpphash.h (CPP_RESERVE, CPP_IS_MACRO_BUFFER, ACTIVE_MARK_P):
12238 (CPP_SET_BUF_MARK, CPP_GOTO_BUF_MARK, CPP_SET_MARK,
12239 CPP_GOTO_MARK): New macros.
12240 (_cpp_quote_string, _cpp_parse_name, _cpp_skip_rest_of_line,
12241 _cpp_skip_hspace, _cpp_parse_assertion, _cpp_lex_token,
12242 _cpp_read_and_prescan, _cpp_init_input_buffer,
12243 _cpp_grow_token_buffer, _cpp_get_directive_token,
12244 _cpp_handle_directive, _cpp_handle_eof,
12245 _cpp_output_line_command): Prototype them here.
12246 * cpplib.h (enum cpp_token): Add CPP_MACRO.
12247 (CPP_RESERVE, get_directive_token, cpp_grow_buffer,
12248 quote_string, output_line_command): Remove.
12250 2000-03-13 Bernd Schmidt <bernds@cygnus.co.uk>
12252 * stmt.c (expand_end_case): RANGE may be signed, and when checking
12253 whether it is too large we must also verify that it isn't negative.
12255 2000-03-13 Jakub Jelinek <jakub@redhat.com>
12257 * config/sparc/sparc.md: Remove all traces of TARGET_LIVE_G0.
12258 (movsi_zero_liveg0): Remove.
12259 (movsf_insn_novis_liveg0): Remove.
12261 (negsi2_not_liveg0): Rename to negsi2.
12262 (one_cmplsi2): Remove.
12263 (one_cmplsi2_not_liveg0): Rename to one_cmplsi2.
12264 (one_cmplsi2_liveg0): Remove.
12265 * config/sparc/sparc.h (TARGET_LIVE_G0, TARGET_BROKEN_SAVERESTORE,
12266 MASK_LIVE_G0, MASK_BROKEN_SAVERESTORE): Remove.
12267 (CONDITIONAL_REGISTER_USAGE): Remove TARGET_LIVE_G0 if.
12268 (PREDICATE_CODES): Remove zero_operand.
12269 * config/sparc/sparc.c: Remove all traces of TARGET_LIVE_G0 and
12270 TARGET_BROKEN_SAVERESTORE.
12271 (zero_operand): Remove.
12272 * config/sparc/splet.h (SUBTARGET_SWITCHES): Remove -mlive-g0,
12273 -mno-live-g0, -mbroken-saverestore and -mno-broken-saverestore
12275 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
12276 * config/sparc/linux-aout.h (TARGET_LIVE_G0,
12277 TARGET_BROKEN_SAVERESTORE): Remove.
12278 * config/sparc/linux.h (TARGET_LIVE_G0, TARGET_BROKEN_SAVERESTORE):
12280 * config/sparc/linux64.h (TARGET_LIVE_G0, TARGET_BROKEN_SAVERESTORE):
12282 * config/sparc/sol2.h (TARGET_LIVE_G0, TARGET_BROKEN_SAVERESTORE):
12285 * config/sparc/sparc.md (return_df_no_fpu): New pattern.
12287 2000-03-13 Zack Weinberg <zack@wolery.cumb.org>
12289 * cpplib.c (do_pragma_implementation): Fix off-by-one error
12290 truncating a string. Don't assume tokens are nul terminated.
12291 Problem noted by Andreas Jaeger <aj@suse.de>
12293 2000-03-13 Jason Merrill <jason@casey.cygnus.com>
12295 * dwarf2out.c (add_name_and_src_coords_attributes): Only add
12296 DW_AT_MIPS_linkage_name for TREE_PUBLIC decls.
12297 (ASM_OUTPUT_DWARF_ADDR_CONST): Don't output trailing newline.
12299 2000-03-13 Richard Earnshaw <rearnsha@arm.com>
12301 * stor-layout.c (new_record_layout_info): Fix typo inside ifdef
12302 STRUCTURE_SIZE_BOUNDARY.
12304 2000-03-13 Mark Mitchell <mark@codesourcery.com>
12306 * tree.h (record_layout_info_s): New structure.
12307 (record_layout_info): New type.
12308 (new_record_layout_info): New function.
12309 (layout_field): Likewise.
12310 (finish_record_layout): Likewise.
12311 * stor-layout.c (layout_record): Remove.
12312 (new_record_layout_info): New function.
12313 (layout_field): New function, broken out from layout_record.
12314 (finalize_record_size): Likewise.
12315 (compute_record_mode): Likewise.
12316 (finalize_type_size): New function, broken out from layout_type.
12317 (finish_record_layout): Likewise.
12318 (layout_type): Use them.
12320 2000-03-12 Zack Weinberg <zack@wolery.cumb.org>
12322 * cpphash.c: Don't include version.h.
12323 (special_symbol) [case T_VERSION]: Look for the string in
12324 hp->value.cpval; don't use version_string.
12325 * cppinit.c (initialize_builtins): Set hp->value.cpval for
12326 __VERSION__ to version_string.
12327 * Makefile.in (cpphash.o): Update deps.
12329 2000-03-12 Zack Weinberg <zack@wolery.cumb.org>
12331 Convert cpplib to use libiberty/hashtab.c.
12333 * cpplib.h (struct cpp_reader): Make hashtab and
12334 all_include_files of type 'struct htab *'. Delete HASHSIZE
12335 and ALL_INCLUDE_HASHSIZE macros.
12337 * cpphash.h: Update prototypes.
12338 (struct hashnode): Remove next, prev, and bucket_hdr members.
12339 Make length a size_t. Add hash member.
12340 (struct ihash): Remove next member. Add hash member. Make
12341 name a flexible array member.
12343 * cppfiles.c: Include hashtab.h.
12344 (include_hash): Delete.
12345 (IHASHSIZE): New macro.
12346 (hash_IHASH, eq_IHASH, _cpp_init_include_hash): New functions.
12347 (cpp_included): Do the hash lookup here.
12348 (_cpp_find_include_file): Rewrite.
12349 (cpp_read_file): Put the "fake" hash entry into the hash
12350 table. Honor the control_macro, if it turns out we've seen
12351 the file before. Don't push the buffer here.
12352 (_cpp_read_include_file): Push the buffer here.
12353 (OMODES): New macro. Use it whenever we call open(2).
12355 * cpphash.c: Include hashtab.h.
12356 (hash_HASHNODE, eq_HASHNODE, del_HASHNODE, dump_hash_helper,
12357 _cpp_init_macro_hash, _cpp_dump_macro_hash, _cpp_make_hashnode,
12358 _cpp_lookup_slot): New functions.
12359 (HASHSIZE): new macro.
12360 (hashf, _cpp_install, _cpp_delete_macro): Delete.
12361 (_cpp_lookup): Use hashtab.h routines.
12363 * cppinit.c: Include hashtab.h.
12364 (cpp_reader_init): Call _cpp_init_macro_hash and
12365 _cpp_init_include_hash. Don't allocate hashtab directly.
12366 (cpp_cleanup): Just call htab_delete on pfile->hashtab and
12367 pfile->all_include_files.
12368 (initialize_builtins): Use _cpp_make_hashnode and
12369 htab_find_slot to add hash entries.
12370 (cpp_finish): Just call _cpp_dump_macro_hash.
12371 * cpplib.c: Include hashtab.h.
12372 (do_define): Use _cpp_lookup_slot and _cpp_make_hashnode to
12373 create hash entries.
12374 (do_pragma_poison, do_assert): Likewise.
12375 (do_include): Don't push the buffer here. Don't increment
12376 system_include_depth unless _cpp_read_include_file succeeds.
12377 (do_undef, do_unassert): Use _cpp_lookup_slot and htab_clear_slot
12378 or htab_remove_elt.
12379 (do_pragma_implementation): Use alloca to create copy.
12381 * Makefile.in: Update dependencies.
12383 2000-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12385 * cppinit.c (cl_directive_handler): More K&R fixing.
12387 Sat Mar 11 23:54:26 2000 Jim Wilson <wilson@cygnus.com>
12389 * config/ia64/ia64.c (ia64_compute_frame_size): Align size to
12391 * config/ia64/ia64.h (REGISTER_MOVE_COST): Add missing parentheses.
12393 2000-03-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12395 * cppinit.c (no_arg, no_ass, no_dir, no_fil, no_mac, no_pth):
12396 Change from char[] to macros.
12398 2000-03-12 Neil Booth <NeilB@earthling.net>
12400 * cppinit.c (cpp_start_read): Update indirect function
12403 Sat Mar 11 16:18:12 2000 Jim Wilson <wilson@cygnus.com>
12405 * config/ia64/ia64.h (ADDITIONAL_REGISTER_NAMES): Fix typo in loc79
12408 * config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
12409 config/ia64/ia64.md, config/ia64/xm-ia64.h: Fix copyright messages.
12411 2000-03-11 Neil Booth <NeilB@earthling.net>
12413 * cppinit.c (struct pending option): Replace undef with a
12414 pointer to a directive handling routine.
12415 (struct cpp_pending): Replace separate assert_ and define_
12416 lists with one directive_ list.
12417 (new_pending_define): Rename new_pending_directive. Extra
12418 argument is the directive's handling routine.
12419 (handle_option): Update to use new_pending_directive.
12421 2000-03-11 Neil Booth <NeilB@earthling.net>
12423 * cppfiles.c (file_cleanup, _cpp_find_include_file,
12424 remap_filename, _cpp_read_include_file, actual_directory,
12425 hack_vms_include_specification): Replace bcopy(), index() etc
12426 calls. Add casts to some allocations. Make some variables
12427 pointers to const [unsigned] char.
12428 * cpphash.c (_cpp_install, macro_cleanup, collect_expansion,
12429 collect_formal_parameters): Similarly.
12430 * cppinit.c (struct pending_option, append_include_chain,
12431 cpp_options_init, cpp_reader_init, initialize_standard_includes,
12432 cpp_start_read, new_pending_define, handle_option): Similarly.
12433 * cpplib.c (cpp_define, copy_comment, do_define, do_include,
12434 do_undef, do_error, do_warning, do_pragma, do_pragma_once,
12435 do_pragma_implementation, detect_if_not_defined,
12436 do_ifdef, skip_if_group, cpp_get_token, parse_string,
12437 do_assert, do_unassert): Similarly.
12438 * cpplib.h (cpp_buffer, cpp_options): Update types. Update
12439 function prototypes.
12440 * mkdeps.c (deps_add_target, deps_add_dep): cast allocations.
12442 2000-03-10 Richard Henderson <rth@cygnus.com>
12444 * builtins.c (expand_builtin_strlen): Revert last change.
12445 Use emit_insn_before if we're at the beginning of a sequence.
12447 2000-03-10 Jason Merrill <jason@casey.cygnus.com>
12449 * builtins.c (expand_builtin_strlen): Make sure that we have something
12450 at the beginning of the sequence.
12452 * toplev.c (rest_of_compilation): Also set TREE_NOTHROW for
12455 * invoke.texi (C++ Dialect Options): Document -fno-enforce-eh-specs.
12457 2000-03-10 Richard Henderson <rth@cygnus.com>
12459 * except.c (can_throw): Use INTVAL on a CONST_INT.
12460 (reachable_handlers): Likewise.
12461 * flow.c (count_basic_blocks, find_basic_blocks_1): Likewise.
12463 2000-03-10 Andreas Jaeger <aj@suse.de>
12465 * config/mips/linux.h: Undefine MD_EXEC_PREFIX and
12466 MD_STARTFILE_PREFIX since those are not needed on linux.
12467 (ASM_FILE_START): New, from mips/gnu.h.
12469 2000-03-09 Richard Henderson <rth@cygnus.com>
12470 Alex Samuel <samuel@codesourcery.com> and others
12472 * Makefile.in (ssa.o): New rule.
12474 (STAGESTUFF): Add *.ssa and *.ussa.
12475 (mostlyclean): Delete *.ssa, *.ussa, */*.ssa, */*.ussa.
12476 * rtl.def (PHI): New RTL expression.
12477 * rtl.h (clear_log_links): New declaration.
12478 (convert_to_ssa): Likewise.
12479 (convert_from_ssa): Likewise.
12480 * flow.c (split_edge): If the entry node falls through to the
12481 split edge's source block, split the entry edge.
12482 (clear_log_links): New function.
12483 * toplev.c (ssa_dump): New variable.
12484 (flag_ssa): Likewise.
12485 (f_options): Add "ssa".
12486 (compile_file): Create SSA dump files.
12487 (rest_of_compilation): Go to and from SSA if enabled.
12488 (decide_d_option): Handle -de for SSA dump files.
12491 Thu Mar 9 20:01:38 2000 Jim Wilson <wilson@cygnus.com>
12493 * expr.c (expand_assignment): For a CALL_EXPR, special case PARM_DECL
12496 2000-03-09 Benjamin Kosnik <bkoz@cygnus.com>
12498 * config/alpha/linux.h (WCHAR_TYPE): Make consistent.
12500 Thu Mar 9 18:10:02 2000 Jeffrey A Law (law@cygnus.com)
12502 * config/pa/pa-hpux10.h (LIB_SPEC): Correct typo in !p case.
12503 (MD_STARTFILE_PREFIX_1): New macro.
12505 2000-03-09 Robert Lipe <robertl@sco.com>
12507 * config/ia64/ia64.c: Include system.h.
12509 2000-03-09 Jason Merrill <jason@casey.cygnus.com>
12511 * except.c (nothrow_function_p): If -fno-exceptions, just return.
12512 (init_eh_nesting_info): Likewise.
12514 * tree.h (struct tree_common): Rename raises_flag to nothrow_flag.
12515 (TREE_NOTHROW): Rename from TREE_RAISES.
12516 * toplev.c (rest_of_compilation): Set it.
12517 * print-tree.c (print_node): Adjust.
12518 * tree.c (stabilize_reference, build, build1): Don't set TREE_RAISES.
12519 (stabilize_reference_1, get_unwidened, get_narrower): Likewise.
12520 * calls.c (emit_call_1): Add 'nothrow' parm. Add
12521 REG_EH_REGION note as appropriate.
12522 (libfunc_nothrow): New fn.
12523 (emit_library_call, emit_library_call_value): Use it.
12524 (expand_call): Check TREE_NOTHROW.
12526 * varasm.c (make_decl_rtl): Skip initial '*' when setting
12527 DECL_ASSEMBLER_NAME.
12529 2000-03-09 Andreas Jaeger <aj@suse.de>
12531 * mips/linux.h (NO_IMPLICIT_EXTERN_C): Define.
12532 (TARGET_MEM_FUNCTIONS): Define.
12534 2000-03-09 Jason Merrill <jason@casey.cygnus.com>
12536 * i386.c (ix86_valid_type_attribute_p): Use compare_tree_int.
12538 * except.c (can_throw): See through a SEQUENCE.
12539 (nothrow_function_p): New fn.
12540 * except.h: Declare it.
12541 * function.c (current_function_nothrow): New var.
12542 (prepare_function_start): Initialize it.
12543 * output.h: Declare it.
12544 * toplev.c (rest_of_compilation): Set it.
12545 * dwarf2out.c (dwarf2out_begin_prologue): Use it.
12547 2000-03-09 Zack Weinberg <zack@wolery.cumb.org>
12549 * cpphash.c (collect_formal_parameters): strncmp returns 0 for
12550 match. (cpp_compare_defs): Count the nul separator when
12551 advancing over argument names.
12553 2000-03-09 Bernd Schmidt <bernds@cygnus.co.uk>
12555 * recog.c (preprocess_constraints): Matching constraints affect
12556 same alternative/different operand, not same operand/different
12559 * reload1.c (eliminate_regs_in_insn): Handle additions of eliminable
12560 register and a constant specially.
12562 2000-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12564 * libgcc2.h: New file.
12565 * libgcc2.c: Move macros, typedefs and prototypes to libgcc2.h.
12567 Wed Mar 8 16:19:42 2000 Jim Wilson <wilson@cygnus.com>
12569 * configure.in (ia64*-*-elf*, ia64*-*-linux*): New.
12570 * configure: Regenerate.
12571 * config/ia64: New.
12573 2000-03-08 Zack Weinberg <zack@wolery.cumb.org>
12575 * Makefile.in (LIBCPP_DEPS): New macro.
12576 (cpplib.o, cpphash.o, cpperror.o, cppexp.o, cppfiles.o): Use
12577 it to declare deps.
12578 * cpperror.c: Include cpphash.h.
12579 * cppexp.c: Include cpphash.h. Remove MULTIBYTE_CHARS
12581 (lex): Don't use CPP_WARN_UNDEF.
12582 (_cpp_parse_expr): Return an int, the truth value.
12583 * cppfiles.c: Include cpphash.h.
12584 (_cpp_merge_include_chains): Move to cppinit.c and make static.
12585 * cppinit.c (include_defaults_array): Disentangle.
12586 (cpp_cleanup): Don't free the if stack here.
12587 (cpp_finish): Pop off all buffers, not just one.
12588 * cpplib.c (eval_if_expr): Return int.
12589 (do_xifdef): Rename do_ifdef.
12590 (handle_directive): Don't use CPP_PREPROCESSED.
12591 (cpp_get_token): Don't use CPP_C89.
12592 * fix-header.c: Don't use CPP_OPTIONS.
12594 * cpplib.h: Move U_CHAR, enum node_type, struct
12595 file_name_list, struct ihash, is_idchar, is_idstart,
12596 is_numchar, is_numstart, is_hspace, is_space, CPP_BUF_PEEK,
12597 CPP_BUF_GET, CPP_FORWARD, CPP_PUTS, CPP_PUTS_Q, CPP_PUTC,
12598 CPP_PUTC_Q, CPP_NUL_TERMINATE, CPP_NUL_TERMINATE_Q,
12599 CPP_BUMP_BUFFER_LINE, CPP_BUMP_LINE, CPP_PREV_BUFFER,
12600 CPP_PRINT_DEPS, CPP_TRADITIONAL, CPP_PEDANTIC, and prototypes
12601 of _cpp_simplify_pathname, _cpp_find_include_file,
12602 _cpp_read_include_file, and _cpp_parse_expr to cpphash.h.
12603 Move struct if_stack to cpplib.c. Move struct cpp_pending to
12605 Change all uses of U_CHAR to be unsigned char instead.
12606 Delete CPP_WARN_UNDEF, CPP_C89, and CPP_PREPROCESSED.
12608 2000-03-08 Jason Merrill <jason@casey.cygnus.com>
12610 * dwarf2out.c (dw_fde_struct): Add 'nothrow'.
12611 (dwarf2out_begin_prologue): Set it.
12612 (output_call_frame_info): Don't emit EH unwind info for leaves.
12614 * flow.c (count_basic_blocks, find_basic_blocks_1): A rethrow
12615 can occur outside of an EH region.
12616 * except.c: Correct comments about rethrow behavior.
12617 (rethrow_symbol_map): Do nothing if !flag_new_exceptions.
12619 2000-03-08 Andrew MacLeod <amacleod@cygnus.com>
12621 * flow.c (make_edges): Always call make_eh_edge for calls.
12623 2000-03-08 Zack Weinberg <zack@wolery.cumb.org>
12625 * cpplib.h (parse_underflow_t, CPP_NULL_BUFFER): Delete.
12626 (struct cpp_buffer): Remove fname and underflow fields.
12627 (struct cpp_reader): Remove get_token field.
12628 (struct include_hash): Rename to struct ihash. Add typedef to
12630 (struct if_stack): Remove fname field.
12631 (IF_STACK_FRAME): Rename to IF_STACK.
12633 * cpperror.c (print_containing_files): Trust that there are no
12634 macro buffers below the top file buffer.
12635 * cppfiles.c: Replace all references to 'struct include_hash'
12636 with 'IHASH'. Rename initialize_input_buffer to
12637 init_input_buffer. Don't set or reference cpp_buffer->fname,
12638 use buffer->ihash->name instead.
12639 * cpphash.c (special_symbol): Use cpp_file_buffer. Use NULL
12640 not CPP_NULL_BUFFER.
12641 * cppinit.c: Use NULL not CPP_NULL_BUFFER, IF_STACK not
12642 IF_STACK_FRAME, IHASH not struct include_hash.
12643 * cpplib.c: Rename eval_if_expression to eval_if_expr. Remove
12644 null_underflow. Use IF_STACK not IF_STACK_FRAME, IHASH not
12645 struct include_hash, NULL not CPP_NULL_BUFFER. Remove all
12646 references to cpp_buffer->fname (delete entirely, or use
12647 ->ihash->name instead) and IF_STACK->fname.
12648 (cpp_push_buffer): Don't set new->underflow.
12649 (do_include): Use cpp_file_buffer.
12651 * cpphash.c (collect_formal_parameters): Remove duplicate
12652 increment of argslen. Pedwarn in C99 mode if __VA_ARGS__ is
12653 used as a macro argument name. Don't append "..." to namebuf
12654 for varargs macros. After we're done scanning, go through
12655 namebuf and make it NUL separated, not comma separated.
12656 (_cpp_compare_defs): Remove register tag from variables.
12657 Expect defn->argnames to be NUL separated.
12658 (_cpp_dump_definition): Expect defn->argnames to be NUL
12659 separated and in forward order.
12660 * cpphash.h: Update documentation of argnames field.
12662 2000-03-08 Richard Henderson <rth@cygnus.com>
12664 * builtins.c (expand_builtin_strlen): Be prepared for strlensi
12665 to fail. Don't pre-expand the source operand.
12667 * i386.md (strlensi): Initialize eoschar and align before use.
12669 2000-03-08 Jason Merrill <jason@casey.cygnus.com>
12671 * expr.c (expand_expr, case ARRAY_REF): Still check for missing
12672 CONSTRUCTOR element.
12674 2000-03-08 Gavin Romig-Koch <gavin@cetus.cygnus.com>
12676 * mips.c (mips_expand_prologue): If the last
12677 named argument is the vararg marker "va_list", treat it as
12678 an unnamed argument.
12680 2000-03-08 Clinton Popetz <cpopetz@cygnus.com>
12682 * dbxout.c (dbxout_parms): When correcting for promoted
12683 big-endian parameters, use the mode of the DECL_RTL rather
12684 than UNITS_PER_WORD.
12686 2000-03-08 Nathan Sidwell <nathan@codesourcery.com>
12688 * c-common.h (make_fname_decl): Declare.
12689 * c-common.c (make_fname_decl): Define.
12690 (declare_hidden_char_array): Remove.
12691 (declare_function_name): Use make_fname_decl.
12692 * c-decl.c (c_make_fname_decl): New function.
12693 (init_decl_processing): Set make_fname_decl.
12695 Tue Mar 7 23:50:31 2000 Jeffrey A Law (law@cygnus.com)
12697 * cccp.c (handle_directive): Initialize backslash_newlines_p.
12699 2000-03-07 Philipp Thomas <pthomas@suse.de>
12701 * po/POTFILES.in: Remove cppalloc.c from file list.
12703 2000-03-07 Steve Chamberlain <sac@pobox.com>
12705 * pj.c (pj_expand_prologue): current_function->args_info is
12706 now current_function_args_info.
12708 * pj.h (STORE_FLAG_VALUE, USER_LABEL_PREFIX,
12709 LOCAL_LABEL_PREFIX, ASM_GENERATE_INTERNAL_LABEL,
12710 ASM_OUTPUT_INTERNAL_LABEL, ASM_OUTPUT_SKIP): Define.
12712 2000-03-08 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
12714 * config/c4x/c4x.h (PUT_SDB_TYPE): Define so that the type info is
12715 output as hexadecimal rather than the default octal.
12717 2000-03-07 Zack Weinberg <zack@wolery.cumb.org>
12719 * cpphash.c (special_symbol): Fix thinko in previous commit.
12721 2000-03-07 Neil Booth <NeilB@earthling.net>
12723 * cppexp.c (struct operation, left_shift, right_shift,
12724 cpp_parse_expr): Change some "char"s to "U_CHAR"s, and some
12725 "int"s to "unsigned int"s.
12726 * cpplib.c (detect_if_not_defined, do_assert, do_unassert):
12728 * cpplib.h: Update for above.
12729 * mkdeps.c (deps_init, deps_calc_target): Cast pointers
12730 returned from allocations.
12732 * cppinit.c (opt_comp, parse_options): New functions.
12733 (handle_option): Use parse_option to parse a single command
12734 line option, that possibly takes an argument.
12735 (cpp_handle_options): Sort the array of command line options on
12736 first invocation (non-ASCII hosts only).
12737 (print_help): Update.
12739 2000-03-07 Zack Weinberg <zack@wolery.cumb.org>
12741 * mkdeps.c (munge): Fix off-by-one bug and inconsistencies in
12742 backslash counting loops. Problem noted by Matt Kraai <kraai@ghs.com>.
12744 * cppfiles.c (_cpp_find_include_file): Make sure ih->name is
12746 * cppinit.c (cpp_cleanup): Free imp->nshort also.
12748 * cpperror.c (cpp_print_containing_files,
12749 cpp_print_file_and_line, v_cpp_message): Rename to
12750 print_containing_files, print_file_and_line, and v_message.
12751 * cppexp.c (cpp_parse_expr, cpp_parse_escape, cpp_lex): Rename
12752 to _cpp_parse_expr, parse_escape, and lex.
12753 (parse_charconst): Remove broken multibyte support.
12754 * cppfiles.c (include_hash): Make static.
12755 (cpp_included): New function.
12756 (merge_include_chains, find_include_file, finclude,
12757 simplify_pathname): Rename to _cpp_merge_include_chains,
12758 _cpp_find_include_file, _cpp_read_include_file, and
12759 _cpp_simplify_pathname.
12760 * cpphash.c (cpp_lookup, free_definition, delete_macro,
12761 cpp_install, create_definition, macroexpand, compare_defs,
12762 dump_definition): Rename to _cpp_lookup, _cpp_free_definition,
12763 _cpp_delete_macro, _cpp_install, _cpp_create_definition,
12764 _cpp_macroexpand, _cpp_compare_defs, and _cpp_dump_definition.
12765 * cppinit.c (cpp_handle_option): Rename to handle_option, make
12767 * cpplib.c: Remove extern prototype of cpp_parse_expr.
12769 * cpphash.h: Update prototypes.
12770 * cpplib.h: Likewise. Prototype _cpp_parse_expr here.
12772 2000-03-07 Andrew Haley <aph@cygnus.com>
12774 * config/mips/mips.h (PTRDIFF_TYPE): Revert broken change;
12775 PTRDIFF_TYPE should be based solely on Pmode.
12776 (SIZE_TYPE): ditto.
12778 2000-03-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12780 * rtl.h (rtunion_def): Constify member `rtstr'.
12781 (emit_line_note_after, emit_line_note, emit_line_note_force,
12782 emit_note, decode_asm_operands): Constify.
12784 * cse.c (canon_hash): Likewise.
12786 * dbxout.c (dbxout_block): Likewise.
12788 * diagnostic.c (file_and_line_for_asm, v_error_for_asm,
12789 v_warning_for_asm): Likewise.
12791 * dwarfout.c (function_start_label): Likewise.
12793 * emit-rtl.c (emit_line_note_after, emit_line_note, emit_note,
12794 emit_line_note_force): Likewise.
12796 * final.c (last_filename, asm_insn_count, final_scan_insn,
12797 output_source_line): Likewise.
12799 * function.h (struct emit_status): Likewise.
12801 * gcse.c (hash_expr_1): Likewise.
12803 * genattr.c (gen_attr, main): Likewise.
12805 * genattrtab.c (struct function_unit, current_alternative_string,
12806 write_attr_valueq, n_comma_elts, next_comma_elt, attr_eq,
12807 attr_numeral, check_attr_test, check_attr_value,
12808 convert_set_attr_alternative, convert_set_attr,
12809 compute_alternative_mask, simplify_by_exploding, gen_attr,
12810 gen_unit): Likewise.
12812 * genflags.c (gen_insn): Likewise.
12814 * gengenrtl.c (type_from_format): Likewise.
12816 * genopinit.c (gen_insn): Likewise.
12818 * genoutput.c (n_occurrences, process_template, process_template):
12821 * ggc-page.c (ggc_set_mark, ggc_mark_if_gcable, ggc_get_size):
12824 * ggc-simple.c (ggc_set_mark, ggc_mark_if_gcable, ggc_get_size):
12827 * ggc.h (ggc_mark_string, ggc_mark, ggc_mark_if_gcable,
12828 ggc_set_mark, ggc_get_size): Likewise.
12830 * objc/objc-act.c (build_module_descriptor, finish_objc): Likewise.
12832 * optabs.c (init_one_libfunc): Likewise.
12834 * output.h (assemble_start_function): Likewise.
12836 * recog.c (decode_asm_operands): Likewise.
12838 * toplev.c (rest_of_compilation): Likewise.
12840 * tree.h (emit_line_note_after, emit_line_note,
12841 emit_line_note_force): Likewise.
12843 * varasm.c (asm_output_bss, asm_output_aligned_bss,
12844 asm_emit_uninitialised, assemble_start_function,
12845 assemble_variable, const_hash, compare_constant_1,
12846 find_pool_constant, mark_constant_pool, assemble_alias): Likewise.
12848 * xcoffout.h (DBX_FINISH_SYMBOL): Likewise.
12850 * alpha/alpha.md (call_vms, call_value_vms): Likewise.
12852 * arm/aof.h (ASM_OUTPUT_ASCII): Likewise.
12854 * arm/aout.h (ASM_OUTPUT_ASCII): Likewise.
12856 * arm/arm-protos.h (output_ascii_pseudo_op, arm_dllexport_name_p,
12857 arm_dllimport_name_p): Likewise.
12859 * arm/arm.c (arm_encode_call_attribute, output_ascii_pseudo_op):
12862 * arm/arm.h (ASM_OUTPUT_MI_THUNK): Likewise.
12864 * arm/elf.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
12866 * arm/pe.c (arm_dllexport_name_p, arm_dllimport_name_p,
12867 arm_mark_dllexport, arm_mark_dllimport,
12868 arm_pe_encode_section_info): Likewise.
12870 * arm/telf.h (ASM_OUTPUT_DEF_FROM_DECLS,
12871 ASM_FINISH_DECLARE_OBJECT): Likewise.
12873 * arm/thumb.c (thumb_function_prologue): Likewise.
12875 * arm/thumb.h (ASM_OUTPUT_ASCII): Likewise.
12877 * avr/avr.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
12879 * clipper/clix.h (ASM_OUTPUT_ASCII): Likewise.
12881 * fx80/fx80.h (ASM_OUTPUT_ASCII): Likewise.
12883 * i386/cygwin.h (ASM_OUTPUT_SECTION_NAME): Likewise.
12885 * i386/freebsd.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
12887 * i386/i386-interix.h (ASM_OUTPUT_LIMITED_STRING,
12888 ASM_OUTPUT_ASCII, ASM_OUTPUT_SECTION_NAME): Likewise.
12890 * i386/i386-protos.h (asm_output_function_prefix): Likewise.
12892 * i386/i386.c (asm_output_function_prefix): Likewise.
12894 * i386/i386elf.h (ASM_OUTPUT_ASCII): Likewise.
12896 * i386/osfrose.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
12898 * i386/ptx4-i.h (ASM_OUTPUT_ASCII): Likewise.
12900 * i386/sco5.h (ASM_FINISH_DECLARE_OBJECT,
12901 ASM_OUTPUT_LIMITED_STRING, ASM_OUTPUT_ASCII,
12902 ASM_OUTPUT_SECTION_NAME): Likewise.
12904 * i386/sysv4.h (ASM_OUTPUT_ASCII): Likewise.
12906 * i860/paragon.h (ASM_OUTPUT_ASCII): Likewise.
12908 * i860/sysv3.h (ASM_OUTPUT_ASCII): Likewise.
12910 * m32r/m32r.c (m32r_encode_section_info): Likewise.
12912 * mcore-elf.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
12914 * mcore/mcore.c (mcore_encode_section_info): Likewise.
12916 * mips/elf.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
12918 * mips/elf64.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
12920 * mips/iris6.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
12922 * mips/mips.h (ASM_OUTPUT_IDENT): Likewise.
12924 * mips/mips.md (movdi, movsi): Likewise.
12926 * mips/netbsd.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
12928 * netbsd.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
12930 * openbsd.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
12932 * ptx4.h (ASM_FINISH_DECLARE_OBJECT, ASM_OUTPUT_LIMITED_STRING,
12933 ASM_OUTPUT_ASCII): Likewise.
12935 * rs6000/rs6000.c (rs6000_allocate_stack_space, output_epilog,
12936 output_mi_thunk, output_toc): Likewise.
12938 * rs6000/rs6000.md (movsi): Likewise.
12940 * rs6000/sysv4.h (ASM_OUTPUT_INT, ASM_OUTPUT_SECTION_NAME): Likewise.
12942 * tahoe/harris.h (ASM_OUTPUT_ASCII): Likewise.
12944 * v850/v850.c (print_operand, print_operand_address,
12945 v850_encode_data_area): Likewise.
12947 2000-03-07 Clinton Popetz <cpopetz@cygnus.com>
12949 * config/mips/mips.md (zero_extendsidi2): Always force operand
12950 one to memory for mips16.
12952 Mon Mar 6 15:22:29 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12954 * tree.h (INT_CST_LT, INT_CST_LT_UNSIGNED): Remove unneeded casts.
12955 (struct tree_int_cst): int_cst_low is now unsigned HOST_WIDE_INT.
12956 (attribute_hash_list, type_hash_canon): hashcode is now unsigned.
12957 (type_hash_lookup, type_hash_add, type_hash_list): Likewise.
12958 (min_precision): Result is unsigned.
12959 (add_double, neg_double, mul_double): Low word is unsigned.
12960 (lshift_double, rshift_double, lrotate_double): Likewise.
12961 (rrotate_double, div_and_round_double): Likewise.
12962 (tree_floor_log2, compare_tree_int): New functions.
12963 (preserve_rtl_expr_temps): New declaration.
12964 * c-common.c (declare_hidden_char_array): Use compare_tree_int.
12965 (decl_attributes): Use tree_log2 to find alignment.
12966 Check for TREE_INT_CST_HIGH for format args.
12967 (min_precision): Now unsigned.
12968 Use tree_floor_log2.
12969 (truthvalue_conversion): Delete long-disabled code.
12970 * c-decl.c (finish_struct): Clean up tests on field width.
12971 (finish_function): Use compare_tree_int.
12972 * c-pragma.c (handle_pragma_token): Use tree_log2 for alignment.
12973 * c-typeck.c (comptypes): Use tree_int_cst_equal.
12974 (default_conversion, digest_init): Use compare_tree_int.
12975 (build_binary_op): Use integer_all_onesp and compare_tree_int.
12976 Fix type errors in forming masks.
12977 * calls.c (initialize_argument_information): Use compare_tree_int.
12978 * dbxout.c (dbxout_type): Cast TREE_INT_CST_LOW to HOST_WIDE_INT.
12979 * except.c (expand_eh_region_start_tree): Use compare_tree_int.
12980 * expr.c (is_zeros_p, case INTEGER_CST): Use integer_zerop.
12981 (store_field): Use compare_tree_int.
12982 (expand_expr, case CONSTRUCTOR): Use TYPE_SIZE_UNIT.
12983 (expand_expr, case ARRAY_REF): Use compare_tree_int.
12984 (do_jump, case BIT_AND_EXPR): Use tree_floor_log2.
12985 (do_store_flag): Use compare_tree_int.
12986 * fold-const.c (encode, decode): Low part is always unsigned.
12987 (force_fit_type, add_double, neg_double, mul_double): Likewise.
12988 (lshift_double, rshift_double, lrotate_double): Likewise.
12989 (rrotate_double, div_and_round_double, int_const_binop): Likewise.
12990 (fold_convert): Use compare_tree_int.
12991 (operand_equal_p, case INTEGER_CST): Use tree_int_cst_equal.
12992 (invert_truthvalue, case INTEGER_CST): Likewise.
12993 (fold): Use compare_tree_int; add casts for unsigned TREE_INT_CST_LOW.
12994 * mkdeps.c (deps_dummy_targets): Make I unsigned.
12995 * rtl.h (add_double, neg_double, mul_double): Low words are unsigned.
12996 (lshift_double, rshift_double, lrotate_double, rrotate_double):
12998 * stmt.c (expand_decl): Use compare_tree_int and mode_for_size_tree.
12999 (expand_end_case): Use compare_tree_int.
13000 (estimate_case_costs): Cast TREE_INT_CST_LOW to HOST_WIDE_INT.
13001 * stor-layout.c (mode_for_size_tree): Use compare_tree_int.
13002 (layout_decl): Likewise.
13003 (layout_record, layout_union): Make sizes unsigned.
13004 (layout_type, case VOID_TYPE): TYPE_SIZE must be bitsizetype.
13005 (layout_type, case QUAL_UNION_TYPE): Use compare_tree_int.
13006 * tree.c (struct type_hash): hashcode is unsigned.
13007 (build_type_attribute_variant, type_hash_list): Likewise.
13008 (type_hash_lookup, type_hash_add, type_hash_canon): Likewise.
13009 (attribute_hash_list, build_array_type, build_method_type): Likewise.
13010 (build_complex_type): Likewise.
13011 (real_value_from_int_cst): Remove unneeded casts.
13012 (integer_all_onesp): Add casts.
13013 (tree_floor_log2, compare_tree_int): New functions.
13014 (build_index_type): Use tree_int_cst_sgn.
13015 * varasm.c (assemble_variable): Use compare_tree_int.
13017 2000-03-06 Jason Merrill <jason@casey.cygnus.com>
13019 * cpphash.c (collect_expansion): Also catch ## at start of macro.
13021 * varasm.c (make_decl_rtl): Don't add a number to members of
13023 (make_function_rtl): Likewise.
13025 2000-03-06 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
13027 * gcse.c (compute_can_copy): Adjust if/else blocks from rth's
13028 patch from 2000-01-28.
13030 2000-03-06 Clinton Popetz <cpopetz@cygnus.com>
13032 * config/sh/sh.c: (barrier_align): Handle a delay slot that is
13033 filled with an insn from the jump target.
13035 2000-03-07 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
13037 * config/c4x/c4x-protos.h (c4x_global_name): Constify char *.
13038 (c4x_external_ref): Likewise.
13039 * config/c4x/c4x.c (struct name_list): Likewise.
13041 1999-12-16 Ben Collins <bcollins@debian.org>
13043 * Makefile.in: Pass a new MULTILIB_EXCLUSIONS option as the sixth
13044 argument to genmultilib.
13045 * genmultilib: accept new MULTILIB_EXCLUSIONS option and output
13046 the contents into the multilib.h header.
13047 * gcc.c: Declare multilib_exclusions for the specs file.
13048 (set_multilib_dir): Use it.
13049 (print_multilib_info): Likewise.
13050 * t-linux64: Declare arguments for new MULTILIB_EXCLUSIONS option
13051 to pass to genmultilib.
13053 2000-03-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13055 * builtins.c (built_in_class_names, built_in_names): Constify a
13058 * gmon-sol2.c (monstartup, moncontrol): Cast ptrs to long, not
13060 (_mcleanup): Ensure value matches format specifier in sprintf.
13062 * cpphash.c (special_symbol): Don't needlessly cast away
13065 * cppinit.c (base_name): Delete unused prototype.
13067 * mkdeps.c (deps_init): Make definition K&R safe.
13069 * tree.h (built_in_class_names, built_in_names): Constify a
13072 2000-03-06 Jakub Jelinek <jakub@redhat.com>
13074 * config/sparc/sparc.c (eligible_for_epilogue_delay): Accept
13075 floating point instructions for epilogue delay.
13077 * config/sparc/sparc.h (ASM_ARCH64_SPEC): Pass -no-undeclared-regs
13078 to gas if it supports .register pseudo.
13080 * real.h (MAX_LONG_DOUBLE_TYPE_SIZE): Define to
13081 LONG_DOUBLE_TYPE_SIZE if not defined.
13082 Use MAX_LONG_DOUBLE_TYPE_SIZE instead of
13083 LONG_DOUBLE_TYPE_SIZE in preprocessor if clauses.
13084 * real.c: Likewise.
13085 * gengenrtl.c: Likewise.
13086 * print-rtl.c: Likewise.
13088 * config/sparc/sol2-sld-64.h (TARGET_DEFAULT): Set
13089 MASK_LONG_DOUBLE_128.
13090 * config/sparc/sol2.h (TARGET_DEFAULT): Likewise.
13091 * config/sparc/sp64-elf.h (TARGET_DEFAULT): Likewise.
13092 * config/sparc/linux64 (TARGET_DEFAULT): Likewise.
13093 (SUBTARGET_SWITCHES): Define.
13094 (CPP_ARCH32_SPEC): Define __LONG_DOUBLE_128__ if compiling
13095 with -mlong-double-128.
13096 (LONG_DOUBLE_TYPE_SIZE): Define depending on target_flags.
13097 (MAX_LONG_DOUBLE_TYPE_SIZE): Define.
13098 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define depending on CPP macros.
13099 (CC1_SPEC): Include -mlong-double-{64,128} as needed.
13100 * config/sparc/linux.h (SUBTARGET_SWITCHES): Define.
13101 (CPP_SUBTARGET_SPEC): Define __LONG_DOUBLE_128__ if compiling
13102 with -mlong-double-128.
13103 (LONG_DOUBLE_TYPE_SIZE): Define depending on target_flags.
13104 (MAX_LONG_DOUBLE_TYPE_SIZE): Define.
13105 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define depending on CPP macros.
13106 * config/sparc/sparc.h (MASK_LONG_DOUBLE_128,
13107 TARGET_LONG_DOUBLE_128): Define.
13108 * config/sparc/linux-aout.h (LONG_DOUBLE_TYPE_SIZE): Remove.
13109 * config/sparc/sparc.c (sparc_override_options): Disallow 64bit
13110 long double on TARGET_ARCH64.
13112 2000-03-06 Mark Mitchell <mark@codesourcery.com>
13114 * function.c (free_temps_for_rtl_expr): Don't free slots
13115 that have been pushed into a higher level.
13118 2000-03-05 Mark Mitchell <mark@codesourcery.com>
13120 2000-03-05 Mark Mitchell <mark@codesourcery.com>
13122 * basic-block.h (ALLOCA_REG_SET): Remove.
13123 (INITIALIZE_REG_SET): New macro.
13124 * flow.c (update_life_info): Use it.
13125 (calculate_global_regs_live): Likewise.
13126 (propagate_block): Likewise.
13127 * global.c (build_insn_chain): Likewise.
13128 * haifa-sched.c (schedule_region): Likewise.
13130 2000-03-05 Stephane Carrez <stcarrez@worldnet.fr>
13132 * dwarf2out.c (UNALIGNED_WORD_ASM_OP): Support 2 bytes pointer.
13133 (ASM_OUTPUT_DWARF_ADDR_CONST): Use UNALIGNED_WORD_ASM_OP.
13134 (DWARF_ARANGES_PAD_SIZE): New define.
13135 (output_aranges): Use it to pad the address range header.
13136 (DWARF_ROUND): Fix for non power of 2 rounding.
13138 2000-03-05 Jason Merrill <jason@casey.cygnus.com>
13140 * mkdeps.c (deps_calc_target): Remove incorrect 'const'.
13142 2000-03-05 Mark Mitchell <mark@codesourcery.com>
13144 * tree.def (RTL_EXPR): Update documentation.
13145 * tree.h (RTL_EXPR_HAS_NO_SCOPE): New macro.
13146 * expr.c (expand_expr): Handle RTL_EXPR_HAS_NO_SCOPE.
13147 * function.c (preserve_rtl_expr_temp): New function.
13148 (preserve_rtl_expr_temps): Likewise.
13149 (preserve_rtl_expr_result): Use it.
13152 2000-03-04 Mark Mitchell <mark@codesourcery.com>
13154 2000-03-04 Thomas Schuster <Thomas.Schuster@gmx.net>
13156 * regmove.c (copy_src_to_dest) Do not create src->dest move
13157 for unchanging destination.
13159 2000-03-04 Mark Mitchell <mark@codesourcery.com>
13161 * function.h (struct sequence_stack): Remove rtl_expr.
13162 (struct emit_staus): Likewise.
13163 (seq_rtl_expr): Remove.
13164 * tree.h (free_temps_for_rtl_expr): Don't declare.
13165 (start_sequence_for_rtl_expr): Likewise.
13166 * rtl.h (preserve_rtl_expr_result): Likewise.
13167 * emit-rtl.c (start_sequence): Don't set sequence_rtl_expr.
13168 (start_sequence_for_rtl_expr): Remove.
13169 (push_topmost_sequence): Don't save sequence_rtl_expr.
13170 (pop_topmost_sequence): Remove comment about not restoring it.
13171 (end_sequence): Don't set seq_rtl_expr.
13172 (init_emit): Don't initialize it.
13173 (mark_sequence_stack): Don't mark it.
13174 (mark_emit_status): Likewise.
13175 * except.c (protect_with_terminate): Use
13176 start_sequence_for_rtl_expr, not start_sequence.
13177 * expr.c (expand_expr, case RTL_EXPR): Don't call
13178 preserve_rtl_expr_result or free_temps_for_rtl_expr.
13179 * function.c (assign_stack_temp_for_type): Don't set rtl_expr.
13180 (preserve_rtl_expr_result): Remove.
13181 (free_temps_for_rtl_expr): Likewise.
13182 (pop_temp_slots): Likewise.
13183 (mark_temp_slot): Don't mark the rtl_expr.
13184 * stmt.c (expand_start_stmt_expr): Use start_sequence, not
13185 start_sequence_for_rtl_expr.
13187 2000-03-04 Zack Weinberg <zack@wolery.cumb.org>
13189 * mkdeps.c, mkdeps.h: New files.
13190 * po/POTFILES.in: Add them.
13191 * Makefile.in (LIBCPP_OBJS): Add mkdeps.o.
13192 (cpplib.o, cppinit.o): Depend on mkdeps.h.
13193 (mkdeps.o): New target.
13195 * cppfiles.c: Delete deps_output.
13196 * cppinit.c: Include mkdeps.h. Delete known_suffixes,
13197 OBJECT_SUFFIX, and base_name.
13198 (cpp_cleanup): Use deps_free. Free ihash->name when clearing
13200 (initialize_dependency_output): Use deps_init,
13201 deps_add_target, deps_calc_target, and deps_add_dep. Remove
13202 all the unnecessary string bashing.
13203 (cpp_finish): Use deps_write. Remove an unnecessary nesting
13205 * cpplib.c (do_include): Use deps_add_dep.
13206 * cpplib.h (struct cpp_reader): Replace deps_buffer,
13207 deps_allocated_size, deps_size, deps_column members with
13208 single pointer to a struct deps. Delete prototype of
13211 * cppinit.c: Fix thinko in previous patch.
13213 Sat Mar 4 11:32:30 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13215 * machmode.h (mode_for_size, smallest_mode_for_size): SIZE now signed.
13216 * stor-layout.c (mode_for_size, smallest_mode_for_size): Likewise.
13217 (mode_for_size_tree): New function.
13218 (layout_decl, layout_type): Call it and clean up BLKmode checks.
13219 * tree.h (mode_for_size_tree): New declaration.
13221 * toplev.c (debug_ignore_block): Mark arg BLOCK as possibly unused.
13223 2000-03-04 Jason Merrill <jason@casey.cygnus.com>
13225 * stmt.c (is_body_block): Move...
13226 * dwarfout.c, dwarf2out.c: ...from here.
13227 * tree.h: Declare it.
13228 * emit-rtl.c (remove_unncessary_notes): Don't remove the body block.
13229 * final.c (final_start_function): Do call remove_unnecessary_notes
13232 2000-03-03 Zack Weinberg <zack@wolery.cumb.org>
13234 * config/vax/xm-vms.h: Define OBJECT_SUFFIX and EXECUTABLE_SUFFIX.
13236 * cpplib.h (_dollar_ok): New macro.
13237 (is_idchar, is_idstart): Use it.
13238 (IStable): Rename to _cpp_IStable. Declare it const if
13239 gcc >=2.7 or C99. Delete all references to FAKE_CONST.
13240 (is_idchar, is_idstart, is_numchar, is_numstart, is_hspace,
13241 is_space): Update for renamed IStable.
13243 * cppinit.c: Delete all references to FAKE_CONST and CAT
13244 macros. Define init_IStable as empty macro if gcc >=2.7 or
13245 C99. Change TABLE() to ISTABLE and hardcode name of table.
13246 (cpp_start_read): Don't change the IStable based on
13249 * cpphash.c (unsafe_chars): Add pfile argument. All callers
13250 changed. Handle '$' for char1 correctly.
13251 * cpplib.c (cpp_get_token): Use is_numchar when parsing numbers.
13253 * cppexp.c (tokentab2): Make const.
13254 (cpp_lex): Make toktab const.
13255 * cppinit.c (include_defaults_array): Make const.
13256 (initialize_standard_includes): Make default_include const.
13258 2000-03-03 Jason Merrill <jason@casey.cygnus.com>
13260 * dwarf2out.c (dwarf2out_frame_debug): Add cast to silence warning.
13261 (dwarf2out_decl): Functions can now have DECL_IGNORED_P.
13262 (gen_decl_die): Likewise.
13263 * dwarfout.c (dwarfout_file_scope_decl): Likewise.
13264 (output_decl): Likewise.
13266 * varasm.c (make_function_rtl): If we change the name used in the
13267 rtl, update DECL_ASSEMBLER_NAME accordingly.
13268 (make_decl_rtl): Likewise.
13270 * toplev.c (rest_of_compilation): Tweak formatting.
13272 * toplev.c (rest_of_compilation): find_loop_tree_blocks before
13273 remove_unnecessary_notes.
13274 (debug_ignore_block): New fn.
13275 * toplev.h: Declare it.
13276 * emit-rtl.c (remove_unncessary_notes): Call it.
13277 * dwarf2out.c (dwarf2out_ignore_block): New fn.
13278 * dwarf2out.h: Declare it.
13279 * final.c (final_start_function): Don't call remove_unnecessary_notes
13280 if we did insn scheduling.
13282 2000-03-03 Zack Weinberg <zack@wolery.cumb.org>
13284 * cppinit.c (cpp_handle_option): Set opts->pedantic directly.
13285 * cpplib.h: Delete SET_CPP_PEDANTIC.
13287 Fri Mar 3 14:56:12 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13289 * expr.c (expand_expr, case COMPONENT_REF): Use bitfield case if
13290 result is a RECORD_TYPE.
13292 2000-03-03 Jonathan Larmour <jlarmour@cygnus.co.uk>
13294 * mips/elf.h (CTOR_LISTS_DEFINED_EXTERNALLY): Added.
13296 2000-03-03 Richard Henderson <rth@cygnus.com>
13298 * alpha.c (alpha_emit_set_const_1): Re-order cases to prefer
13299 addition over compliments over shifts.
13301 Fri Mar 3 12:49:28 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
13303 * reload1.c (reload_combine_note_use): Handle return register USEs.
13304 REG case: Handle multi-hard-register hard regs.
13306 Fri Mar 3 07:38:34 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13308 * md.texi: Document use of '*' in insn pattern name.
13310 2000-03-03 Jason Merrill <jason@casey.cygnus.com>
13312 * calls.c (special_function_p): operator new may not be malloc-like.
13314 * gcse.c (dump_hash_table): Really fix error in last change.
13316 2000-03-02 Denis Chertykov <denisc@overta.ru>
13318 * avr.c (print_operand): Use print_operand_address instead of
13320 * avr/libgcc.S: Cleanup code.
13322 2000-03-02 Richard Henderson <rth@cygnus.com>
13324 * alpha.c (alpha_emit_set_const_1): Also try c + small constant.
13326 2000-03-02 Mark Mitchell <mark@codesourcery.com>
13328 * tree.h (TYPE_ALIGN_UNIT): New macro.
13330 2000-03-02 Clinton Popetz <cpopetz@cygnus.com>
13332 * i386.c: (constant_call_address_operand): Reject CONST_INT.
13334 2000-03-02 Jason Merrill <jason@casey.cygnus.com>
13336 * cpplib.h (CPP_PEDANTIC): Only true if system_header_p is not set
13338 (SET_CPP_PEDANTIC): New macro.
13339 * cpplib.c (do_include): Don't bother checking system_header_p.
13340 (do_warning, do_ident, do_assert, do_unassert): Likewise.
13341 * cppinit.c (cpp_handle_option): Use SET_CPP_PEDANTIC.
13343 * function.h (struct expr_status): Add x_arg_space_so_far.
13344 (arg_space_so_far): New macro.
13345 * expr.c (init_expr): Initialize it.
13346 * calls.c (emit_call_1): Reset it.
13347 (compute_argument_block_size, expand_call): Use it.
13348 (expand_call, store_one_arg): Increment it.
13350 Thu Mar 2 17:27:13 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13352 * varasm.c (output_constant): Strip off a CONVERT_EXPR to
13355 2000-03-02 Zack Weinberg <zack@wolery.cumb.org>
13357 * cppfiles.c (cpp_read_file): New function.
13359 * cpphash.c (collect_expansion): Make sure to reset last_token
13360 to NORM when we hit a string. Handle trailing whitespace
13361 properly when the expansion is empty.
13362 (create_definition): Disable line commands while parsing the
13364 (dump_definition): If pfile->lineno == 0, output a line
13365 command ahead of the dump, and add a trailing newline.
13367 * cppinit.c (append_include_chain): Add fifth argument, which
13368 indicates whether or not system headers are C++ aware.
13369 (initialize_standard_includes): New function,
13370 broken out of read_and_prescan. Pass 'cxx_aware' value from
13371 the include_defaults_array on to append_include_chain.
13372 (dump_special_to_buffer): Const-ify char array.
13373 (builtin_array): Don't dump __BASE_FILE__.
13374 (cpp_start_read): Use cpp_read_file. Reorder code for
13375 clarity. Don't output line commands here for -D/-A/-U
13376 switches. Don't call deps_output for files included with
13377 -include or -imacros.
13379 * cpplib.c (do_define): Don't pay any attention to the second
13381 (cpp_expand_to_buffer): Disable line commands while scanning.
13382 (output_line_command): Work in the file buffer.
13383 * cpplib.h: Remove no_record_file flag from struct cpp_reader.
13384 Fix formatting of comments. Prototype cpp_read_file.
13386 Thu Mar 2 13:29:46 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13388 * c-common.c (c_common_nodes_and_builtins): Make sizetype_endlink
13389 reference the language-equivalent of sizetype.
13390 * c-typeck.c (comptypes): Treat sizetype like its language equivalent.
13391 * fold-const.c (size_binop, size_diffop): Put back checks.
13392 * gcse.c (dump_hash_table): Fix minor error in last change.
13393 * stor-layout.c (set_sizetype): Set TYPE_DOMAIN of sizetype.
13394 Clear TYPE_{NEXT,MAIN}_VARIANT and TYPE_{POINTER,REFERENCE}_to of
13397 Thu Mar 2 12:48:45 MET 2000 Jan Hubicka <jh@suse.cz>
13399 * calls.c (expand_call) Do not attempt to combine stack adjustments
13400 with inhibit_defer_pop set.
13402 2000-03-01 Mark Mitchell <mark@codesourcery.com>
13404 * stor-layout.c (layout_decl): Allow front-ends to explicitly set
13405 the DECL_SIZE for a FIELD_DECL.
13407 2000-03-01 Bruce Korb <bkorb@gnu.org>
13409 * fixinc/inclhack.tpl: remove unused symlinks
13410 * fixinc/README: GCC Maintainer info
13411 * fixinc/inclhack.sh: regen
13412 * fixinc/fixincl.sh: regen
13414 2000-03-01 Zack Weinberg <zack@wolery.cumb.org>
13416 * cpphash.c (collect_expansion): Trim trailing white space
13417 from macro definitions, but don't go past the last insertion
13420 Wed Mar 1 12:14:31 MET 2000 Jan Hubicka <jh@suse.cz>
13422 * i386.md (mulqi3): New pattern.
13424 2000-02-29 Zack Weinberg <zack@wolery.cumb.org>
13426 * cpplib.h (CPP_ASSERTION, CPP_STRINGIZE, CPP_TOKPASTE): New
13428 (struct cpp_reader): Add parsing_if_directive and
13429 parsing_define_directive flags.
13430 (struct cpp_options): Remove output_conditionals flag.
13431 (check_macro_name): Delete prototype.
13433 * cpphash.h (struct macrodef): Delete.
13434 (struct reflist): Separate from struct definition.
13435 (struct definition): Remove unused fields. Add column number.
13436 (create_definition): Returns a DEFINITION *. Takes a
13437 cpp_reader * and an int.
13439 * cpphash.c (SKIP_WHITE_SPACE): Delete.
13440 (PEEKC): Copy defn from cpplib.c.
13441 (rest_extension, REST_EXTENSION_LENGTH): Delete.
13443 (struct arglist): Simplify.
13444 (collect_expansion): Rewrite. Get tokens by calling
13445 cpp_get_token. Add more error checking.
13446 (collect_formal_parameters): New function, broken out of
13447 create_definition and reworked to use get_directive_token.
13448 (create_definition): All real work is now in collect_expansion
13449 and collect_formal_parameters. do_define handles finding the
13450 macro name. Return a DEFINITION, not a MACRODEF.
13451 (macroexpand): Replace bcopy with memcpy throughout. Replace
13452 character-at-a-time copy loop with memcpy and pointer increments.
13453 (compare-defs): d1->argnames / d2->argnames might be null.
13455 * cpplib.c (copy_rest_of_line): Delete function.
13456 (skip_rest_of_line): Do all the work ourselves.
13457 (skip_string): New function.
13458 (parse_string): Use skip_string.
13459 (get_macro_name): New function.
13460 (check_macro_name): Delete.
13461 (copy_comment): Use CPP_RESERVE and CPP_PUTC_Q.
13462 (cpp_skip_hspace): Use CPP_BUMP_LINE.
13463 (handle_directive): ICE if we're called on a macro buffer.
13464 (do_define): Determine macro name and type (funlike/objlike)
13465 here. Expunge all uses of MACRODEF.
13466 (cpp_push_buffer): Set line_base to NULL.
13467 (do_undef, read_line_number): Don't worry about getting a POP token.
13468 (eval_if_expression): Set/reset parsing_if_directive around
13469 cpp_parse_expr. Don't clear only_seen_white.
13470 (skip_if_group): Remove output_conditionals logic. Use
13472 (cpp_get_token): Return ASSERTION, STRINGIZE, and TOKPASTE
13473 tokens under appropriate conditions.
13474 (cpp_unassert): Call do_unassert not do_assert. Oops.
13476 * cppexp.c (parse_defined): New function, break out of
13478 (cpp_lex): We now get CPP_ASSERTION tokens and can check them
13479 ourselves, with cpp_defined.
13480 * cppinit.c (cpp_handle_option, print_help): Delete -ifoutput.
13482 * gcc.dg/20000209-2.c: Turn off -pedantic-errors.
13483 * gcc.dg/strpaste-2.c: New.
13485 2000-02-29 Mark Mitchell <mark@codesourcery.com>
13487 * fold-const.c (size_binop): Don't asert inputs are the same and
13488 have TYPE_IS_SIZETYPE set.
13489 (size_diffop): Likewise.
13491 2000-02-29 Jason Merrill <jason@casey.cygnus.com>
13493 * dwarfout.c (output_block): Output abstract blocks even if they
13494 don't have TREE_ASM_WRITTEN set.
13496 * calls.c (emit_library_call): Check for null REG.
13498 2000-03-01 Martin von Loewis <loewis@informatik.hu-berlin.de>
13500 * c-decl.c (current_function_decl): Move to toplev.c.
13501 (init_decl_processing): Don't add current_function_decl as a ggc
13503 * dbxout.c (dbxout_symbol): Change return type to int.
13504 (dbxout_symbol_location, dbxout_syms): Likewise.
13505 (dbxout_block): Don't emit LBRAC/RBRAC pairs for blocks without
13506 any locals. Use current_function_func_begin_label if set.
13507 * dbxout.h (dbxout_symbol, dbxout_syms): Change return type.
13508 * dwarf2out.c (dwarf2out_begin_prologue): Set
13509 current_function_func_begin_label.
13510 * final.c (final_start_function): Reset it.
13511 * toplev.c (current_function_decl): Define it here.
13512 (current_function_func_begin_label): New variable.
13513 (main): Add both as ggc roots.
13514 * tree.h (current_function_func_begin_label): Declare.
13516 Tue Feb 29 14:07:04 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13518 * gcse.c: Cleanups throughout: mostly white-space, but also
13519 some minor rearrangement of code.
13521 Tue Feb 29 10:45:59 2000 Jeffrey A Law (law@cygnus.com)
13523 * calls.c (emit_library_call): Do not abort if FUNCTION_ARG
13524 returns a PARALLEL. Use emit_group_load and use_group_regs
13526 (emit_library_call_value): Similarly.
13528 * pa/t-pa: Use quadlib.c instead of quadlib.asm.
13529 * pa/quadlib.asm: Remove.
13530 * pa/quadlib.c: New file.
13532 * configure.in (hpux10, hpux11, PA32 mode): Use i128 float format.
13533 * configure: Rebuilt.
13535 2000-02-29 Philip Blundell <pb@futuretv.com>
13537 * config/arm/conix-elf.h: New file.
13538 * configure.in (arm*-*-conix*): New configuration.
13539 * configure: Regenerate.
13541 2000-02-28 Jason Merrill <jason@casey.cygnus.com>
13543 * dwarf2out.c (gen_block_die): Output abstract blocks even if they
13544 don't have TREE_ASM_WRITTEN set.
13546 Mon Feb 28 21:07:59 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13548 * Eliminate DECL_FIELD_SIZE.
13549 * builtins.c (built_in_class_names, built_in_names): New variables.
13550 * c-decl.c (finish_struct): Set specified size in DECL_SIZE.
13551 * expr.c (expand_expr, case COMPONENT_REF): Get field size from
13552 DECL_SIZE, not DECL_FIELD_SIZE.
13553 * print-tree.c (print_node): Remove code that prints extra blank
13554 lines in some cases.
13555 Properly handle inline and builtin function cases.
13556 * stor-layout.c (layout_decl): Get specified size from DEC_SIZE.
13557 * tree.h (built_in_class_named, built_in_names): New declarations.
13558 (union tree_decl): Rename internal unions to u1 and u2 and change
13559 some of their components.
13560 Add new field built_in_class.
13561 (DECL_ALIGN, DECL_INCOMING_RTL, DECL_SAVED_INSNS, DECL_FRAME_SIZE):
13562 Reflect above changes.
13563 (DECL_FUNCTION_CODE, DECL_BUILT_IN_CLASS): Likewise.
13564 (DECL_SET_FUNCTION_CODE, DECL_FIELD_SIZE): Deleted.
13565 * objc/objc-act.c (objc_copy_list): Use DECL_SIZE, not DECL_FIELD_SIZE.
13566 (encode_field_decl): Likewise; also remove obsolete test for bitfield.
13568 2000-02-28 Dmitri Makarov <dim@windriver.com>
13570 * extend.texi: Document ARM's support for long/short calls.
13572 * invoke.texi: Document ARM's -mlong-calls command line switch.
13574 * config/arm/arm-protos.h (arm_is_longcall_p): Add prototype.
13575 (arm_encode_call_attribute): Add prototype.
13576 (arm_set_default_type_attribute): Add prototype.
13577 (arm_strip_name_encoding): Add prototype.
13579 * config/arm/arm.c (arm_init_cumulative_args): replace
13580 initialisation og 'long_calls' field with initialisation of
13581 'call_cookie' field.
13582 (enum arm_pragma_enum): New enum.
13583 (arm_pragma_long_calls): New static variable.
13584 (arm_process_pragma): Also process "#pragma long_calls_off".
13585 (arm_valid_type_attribute_p): Accept short_call attribute.
13586 (arm_comp_type_attributes): Check long/short call attributes.
13587 (arm_encode_call_attribute): New function: Encode long_call
13588 or short_call attribute in function name.
13589 (arm_set_default_type_attributes): New function: Assign
13590 default attributes to newly defined type.
13591 (current_file_function_operand): New function: Return true if
13592 the symbol is a function which has already been compiled.
13593 (arm_is_longcall_p): New function: Return true if the
13594 indicated function should be called via a long call.
13595 (arm_get_strip_length): New function. Returns number of
13596 prefix characters to be stripped from a function's name.
13597 (arm_strip_name_encoding): New function. Strip prefix characters
13598 from a function's name.
13600 * config/arm/arm.h (CUMULATIVE_ARGS): Replace 'long_call' field
13601 with 'call_cookie'.
13602 (SHORT_CALL_FAG_CHAR): Define.
13603 (LONG_CALL_FAG_CHAR): Define.
13604 (ENCODED_SHORT_CALL_ATTR_P): Define.
13605 (ENCODED_LONG_CALL_ATTR_P): Define.
13606 (ARM_NAME_ENCODING_LENGTHS): Define.
13607 (STRIP_NAME_ENCODING): Define.
13608 (ASM_OUTPUT_LABELREF): Define, and use to strip name encoding.
13609 (ARM_ENCODE_CALL_TYPE): Define.
13610 (ENCODE_SECTION): Invoke ARM_ENCODE_CALL_TYPE.
13611 (ARM_DECLARE_FUNCTION_SIZE): Define.
13612 (SET_DEFAULT_TYPE_ATTRIBUTES): Define.
13614 * config/arm/arm.md (call): Call arm_is_longcall_p to decide
13615 if a long call is needed.
13616 (call_value): Ditto.
13617 (call_symbol): Ditto.
13619 * config/arm/elf.h (ASM_DECLARE_FUNCTION_SIZE): Add invocation of
13620 ARM_DECLARE_FUNCTION_SIZE.
13622 * config/arm/pe.h (ARM_PE_FLAG_CHAR): Define.
13623 (SUBTARGET_NAME_ENCODING_LENGTHS): Define.
13624 (ARM_STRIP_NAME_ENCODING): Undefine.
13625 (STRIP_NAME_ENCODING): Undefine.
13626 (ASM_OUTPUT_LABELREF): Use arm_strip_name_encoding.
13627 (ASM_DECLARE_FUNCTION_NAME): Ditto.
13628 (ASM_OUTPUT_COMMON): Ditto.
13629 (ASM_DECLARE_OBJECT_NAME): Ditto.
13631 * config/arm/pe.c (arm_dllexport_name_p): Check for
13633 (arm_dllimport_name_p): Ditto.
13634 (arm_mark_dllexport): Use ARM_PE_FLAG_CHAR.
13635 (arm_mark_dllimport): Ditto.
13637 Mon Feb 28 22:11:12 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
13639 * sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Define.
13641 2000-02-28 Mark Mitchell <mark@codesourcery.com>
13643 * xcoffout.c (xcoffout_begin_function): Fix typo in previous change.
13645 2000-02-28 Zack Weinberg <zack@wolery.cumb.org>
13647 * tm.texi: Document new target switch, NO_BUILTIN_WCHAR_TYPE.
13648 * cppinit.c (builtin_array): Define __WCHAR_TYPE__ only if
13649 NO_BUILTIN_WCHAR_TYPE is not defined.
13650 (CPP_WCHAR_TYPE): Delete.
13651 * cccp.c (main): Don't change wchar_type if cplusplus.
13652 (special_symbol, initialize_builtins): Honor NO_BUILTIN_WCHAR_TYPE.
13654 2000-02-28 Nick Clifton <nickc@cygnus.com>
13656 * config/arm/arm-wince-pe.h (SIZE_TYPE): Define to "unsigned long".
13658 Mon Feb 28 14:21:15 2000 Catherine Moore <clm@cygnus.com>
13660 * config/pa/som.h (MAKE_DECL_ONE_ONLY): Define.
13661 (ASM_WEAKEN_LABEL): Define.
13663 Mon Feb 28 13:07:19 MET 2000 Jan Hubicka <jh@suse.cz>
13665 * expr.c (store_constructor): Do not emit USE.
13666 * rtl.h (stupid_life_analysis): Remove.
13668 Mon Feb 28 07:03:27 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13670 * function.c (number_blocks): Reset next_block_index based on
13671 what debugging format is used, not what is defined.
13673 * lcm.c: Minor reformatting throughout.
13674 (reg_dies, reg_becomes_live): Properly handle multiple hard regs.
13676 * toplev.c (rest_of_compilation): Account for time in
13677 optimize_mode_switching.
13679 * jump.c (jump_optimize_1): Don't call delete_barrier_successors
13680 if only marking labels.
13682 Mon Feb 28 12:53:57 MET 2000 Jan Hubicka <jh@suse.cz>
13684 * calls.c (expand_call): Attempt to combine stack adjustments with
13685 pending stack adjustments.
13687 Mon Feb 28 11:34:43 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
13689 * loop.c (reg_in_basic_block_p): Don't abort when falling through
13690 to the end of the function.
13692 2000-02-27 Mark Mitchell <mark@codesourcery.com>
13694 * emit-rtl.c (remove_unncessary_notes): Remove notes for empty
13696 * final.c (next_block_index): Remove.
13697 (max_block_depth): Likewise.
13698 (pending_blocks): Likewise.
13699 (init_final): Don't initialize them.
13700 (final_start_function): Don't set next_block_index. Set up
13702 (final_scan_insn): Use BLOCK_NUMBER, not next_block_index.
13703 * function.h (number_blocks): New function.
13704 * function.c (get_block_vector): New function.
13705 (identify_blocks): Use it.
13706 (reorder_blocks): Set NOTE_BLOCK.
13707 (number_blocks): New function.
13708 * tree.def (BLOCK): Add documentation for TREE_ASM_WRITTEN flag.
13709 * tree.h (BLOCK_NUMBER): New macro.
13710 (tree_block): Add block_num field.
13711 * dbxout.c (next_block_number): Remove.
13712 (dbxout_init): Don't set it.
13713 (dbxout_block): Only output blocks that have TREE_ASM_WRITTEN
13714 set. Use BLOCK_NUMBER, rather than next_block_num, to determine
13716 * toplev.c (rest_of_compilation): Always call
13717 find_loop_tree_blocks. Fix indentation.
13718 * dwarf2out.c (next_block_number): Remove.
13719 (gen_lexical_block_die): Use BLOCK_NUMBER, not next_block_number,
13720 to determine block numbers.
13721 (gen_inlined_subroutine_die): Likewise.
13722 (gen_block_die): Only output blocks that have TREE_ASM_WRITTEN set.
13723 (decls_for_scope): Don't increment next_block_number.
13724 * dwarfout.c (next_block_number): Remove.
13725 (output_lexical_block_die): Use BLOCK_NUMBER, not next_block_number,
13726 to determine block numbers.
13727 (output_inlined_subroutine_die): Likewise.
13728 (output_block): Only output blocks that have TREE_ASM_WRITTEN set.
13729 (output_decls_for_scope): Don't increment next_block_number.
13730 * sdbout.c (next_block_number): Remove.
13731 (sdbout_block): Use BLOCK_NUMBER.
13732 (sdbout_begin_block): Simplify.
13733 * xcoffout.c (next_block_number): Remove.
13734 (xcoffout_block): Use BLOCK_NUMBER, not next_block_number.
13735 (xcoffout_begin_block): Don't set next_block_number.
13736 (xcoffout_begin_function): Likewise. Use BLOCK_NUMBER, not
13739 Sun Feb 27 16:40:33 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13741 * builtins.c (c_strlen): Use size_diffop and return ssizetype value.
13742 (expand_builtin_strcpy): Pass correct type to size_binop.
13743 (expand_builtin_strcmp): Likewise.
13744 Clean up conditional structure.
13745 * c-decl.c (init_decl_processing): Don't call set_sizetype twice.
13746 (complete_array_type): Don't use size_binop for MAXINDEX.
13747 * c-typeck.c (c_sizeof): Use size_one_node and TYPE_SIZE_UNIT.
13748 (c_sizeof_nowarn, c_size_in_bytes): Likewise.
13749 (c_alignof): Use size_one_node.
13750 (build_unary_op): Pass arg of proper type to size_binop.
13751 (really_start_incremental_init, push_init_level): Use sizetype for
13752 constructor{,_bit,_unfilled}_index.
13753 (pop_init_label, output_init_element): Likewise.
13754 (output_pending_init_elements, process_init_element): Likewise.
13755 * calls.c (compute_argument_block_size): Field VAR is ssizetype.
13756 * expr.c (store_expr): Use size_int.
13757 (store_constructor): Use proper types for size_binop args.
13758 (get_inner_reference, expand_expr, case ARRAY_REF): Likewise.
13759 (expand_expr_unaligned): Likewise.
13760 (string_contant): Return object of sizetype.
13761 * expr.h (SUB_PARM_SIZE): Call size_diffop and pass proper types.
13762 (ARGS_SIZE_RTX): Call ARGS_SIZE_TREE.
13763 (ARGS_SIZE_TREE): Pass proper types to size_binop.
13764 * fold-const.c (int_const_binop): Refine when size_int is called.
13765 (fold_convert): Likewise.
13766 (size_int_wide): Rework to take KIND as arg, only take low order
13767 bits, handle new sizetype_tab datatype, and chain entries in
13769 (size_int_type_wide): New function.
13770 (size_binop): Validate types of arguments.
13771 (ssize_binop): Deleted.
13772 (size_diffop): New function.
13773 (extract_muldiv): Only fold division into multiplication for sizetypes.
13774 * function.c (assign_parms): Use size_diffop and make sure
13775 VAR field is of ssizetype; also pass proper type to size_binop.
13776 (locate_and_pad_parm, pad_to_arg_alignment): Likewise.
13777 (round_down): Deleted from here.
13778 * store-layout.c (sizetype_tab): Now an array.
13779 (sizetype_set, early_root_list): New variables.
13780 (variable_size): Use size_one_node.
13781 (round_up): Pass proper type to size_binop.
13782 (round_down): Moved to here and corrected as above.
13783 (layout_record): Pass proper arg types to size_binop.
13784 (layout_type): Likewise.
13785 If sizetype_set is zero, record the type just laid out.
13786 (make_unsigned_type): Don't call set_sizetype;
13787 (make_signed_type): Likewise; also, call fixup_signed_type.
13788 (initialize_sizetypes): New function.
13789 (set_sizetype): Make copy of types, set TYPE_IS_SIZETYPE, and
13790 set name of bitsizetype to "bit_size_type".
13791 Fix up type of sizes of all types made before call.
13792 * tm.texi (ROUND_TYPE_SIZE_UNIT): New macro.
13793 * tree.c (fix_sizetype): Deleted.
13794 (build_common_tree_nodes): Call initialize_sizetypes.
13795 (build_common_tree_nodes_2): Don't call fix_sizetype.
13796 * tree.h (TYPE_IS_SIZETYPE): New macro.
13797 (initialize_sizetype): New declaration.
13798 (enum size_type_kind): New type.
13799 (struct sizetype_tab): Deleted.
13800 (sizetype_tab): Now array; adjust sizetype macros.
13801 (size_diffop, size_int_type_wide): New functions.
13802 (size_int_wide): Change number of args and type; access macros changed.
13803 (ssize_int, sbitsize_int): New macros.
13804 * config/i960/i960.h (ROUND_TYPE_SIZE): Use size_int.
13805 (ROUND_TYPE_SIZE_UNIT): New macro.
13807 2000-02-27 Zack Weinberg <zack@wolery.cumb.org>
13809 * c-lex.c (putback_buffer): Make 'buffer' an unsigned char *.
13811 Sun Feb 27 07:44:17 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13813 * gcov-io.h (__fetch_long, __store_long, __read_long, __write_long):
13814 Mark as possibly unused.
13816 * cse.c (cse_insn): Delete dead code involving tablejump.
13817 Pass CODE_LABEL, not LABEL_REF to gen_jump and reset INSN_CODE.
13819 * Makefile.in (libcpp.a): Start by deleting it.
13821 2000-02-27 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
13823 * cpplib.h (enum file_change_code): Added rename_file.
13824 * cpplib.c (do_line): If a filename is given, set file_change to
13826 (output_line_command): If file_change is rename_file, always
13827 output a # directive with the file name.
13829 * cpplib.c (do_pragma): Accept #pragma without consecutive token.
13831 2000-02-26 Mark Mitchell <mark@codesourcery.com>
13833 * integrate.c (copy_decl_for_inlining): Preserve TREE_ADDRESSABLE
13834 when copying a PARM_DECL or RESULT_DECL.
13836 2000-02-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13838 * fix-header.c (recognized_function): Also fix prototypes for
13839 functions taking "void".
13841 2000-02-26 Geoff Keating <geoffk@cygnus.com>
13843 * reload1.c (do_output_reload): Check reg_reloaded_valid before
13844 looking at reg_reloaded_contents.
13846 2000-02-26 Zack Weinberg <zack@wolery.cumb.org>
13848 * Makefile.in (STMP_FIXINC): New toggle.
13849 (LIBGCC2_DEPS): Delete all references.
13850 (stmp-headers): Delete target. All references either deleted
13851 or changed to stmp-int-headers.
13852 (all.cross): Don't depend on stmp-headers or STMP_FIXPROTO.
13853 (LIBCPP_OBJS): Take out cppalloc.o.
13854 (cppalloc.o): Delete target.
13855 (stmp-int-hdrs): Depend on $(STMP_FIXINC).
13856 (gen-protos, fix-header): Link with libiberty.a.
13857 * build-make: Don't change FIXINCLUDES. Override STMP_FIXINC
13860 * configure.in: Remove refs to strerror.
13861 * acconfig.h: Take out NEED_DECLARATION_STRERROR.
13862 * system.h: Take out strerror stanza.
13864 * cpperror.c (my_strerror): Delete function.
13865 (cpp_error_from_errno, cpp_notice_from_errno): Use xstrerror.
13866 * cppmain.c (main): Call xmalloc_set_program_name first thing.
13867 * cppalloc.c: Delete file.
13868 * gen-protos.c: Don't provide xrealloc.
13870 * fixinc/fixincl.c, fixinc/fixlib.c, fixinc/procopen.c: Use
13871 xstrerror throughout.
13873 2000-02-26 Bruce Korb <bkorb@gnu.org>
13875 * fixinc/inclhack.def (undefine_null): the bypass pattern needs to
13876 match for DOS headers, too.
13877 * fixinc/inclhack.sh,fixincl.x: Regenerate.
13879 2000-02-26 Geoff Keating <geoffk@cygnus.com>
13881 * config/elfos.h (ASM_OUTPUT_LABELREF): Don't define. The default
13882 is right for most ELF targets.
13883 * config/ns32k/ns32k.h (ASM_OUTPUT_LABELREF): Don't define.
13884 Let the default file use %U properly.
13885 * config/sh/elf.h (ASM_OUTPUT_LABELREF): Don't define. Use the
13888 * config/fp-bit.c (pack_d): Properly handle rounding of denormal
13891 Sat Feb 26 09:39:16 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13893 * toplev.c (documented_lang_options): Correct spelling error.
13894 (decode_d_option, decode_f_option, main): Likewise.
13896 * toplev.c (print_time): Avoid SIGFPE when all_time is zero.
13898 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): Use .set at
13899 to tell assembler it is permitted to expand large constants.
13901 2000-02-25 Mumit Khan <khan@xraylith.wisc.edu>
13903 * protoize.c: (AUX_INFO_SUFFIX): New macro.
13904 (aux_info_suffix): Use.
13905 (SAVE_SUFFIX): New macro.
13906 (save_suffix): Use.
13907 (munge_compile_parms): Fix typo in NUL. DJGPP supports /dev/null.
13908 (gen_aux_info_file): Use aux_info_suffix instead of ".X".
13909 (edit_file): Handle 8.3 restriction for DOS/DJGPP filenames.
13911 * invoke.texi (Running Protoize): Update documentation.
13913 2000-02-25 Mark Elbrecht <snowball3@bigfoot.com>
13915 * i386/djgpp.h (CPP_PREDEFINES): Remove Unix defines.
13917 2000-02-25 John Wehle (john@feith.com)
13919 * rtlanal.c (find_last_value): Allow NULL_RTX for valid_to.
13921 2000-02-25 Anthony Green <green@cygnus.com>
13923 * toplev.c (rest_of_compilation): Rebuild jump labels if
13924 combine_instructions has created a new direct jump.
13925 * combine.c (try_combine): Add new_direct_jump_p argument. Set it
13927 (combine_instructions): Call try_combine with new argument.
13928 Return non-null value when new direct jump instruction is created.
13929 * rtl.h: combine_instructions returns an int.
13931 Fri Feb 25 19:49:08 2000 Jeffrey A Law (law@cygnus.com)
13933 * cse.c (cse_insn): Replace the PATTERN of the insn with an new
13934 jump when changing a computed jump into a jump to a known
13937 Fri Feb 25 19:22:44 2000 Graham Stott <grahams@rcp.co.uk>
13939 * resource.c (mark_referenced_resources): Changed use SET_DEST (...)
13940 to XEXP (..., 0) on RTL nodes which are not SET or CLOBBER.
13942 * i386.md (define_expand "clrstrsi"): Fix typo.
13944 Fri Feb 25 18:49:39 2000 "K. Richard Pixley" <rich@microunity.com>
13946 * rtl.texi: Fix typo.
13948 Fri Feb 25 20:02:35 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
13950 * sh.c (calc_live_regs): Multiply value assigned to *COUNT_PTR by
13951 UNITS_PER_WORD. Change caller initial_elimination_offset.
13952 (rounded_frame_size): Take into account that argument pushed has
13953 changed. Fix TARGET_ALIGN_DOUBLE problem.
13955 2000-02-25 Geoff Keating <geoffk@cygnus.com>
13957 * haifa-sched.c (schedule_block): Explain the real reason
13958 we delete REG_SAVE_NOTEs on the first insn of a block.
13959 Don't delete REG_SAVE_NOTES for NOTE_INSN_SETJMP.
13961 2000-02-24 Mark Mitchell <mark@codesourcery.com>
13963 * input.h (push_srcloc): New function.
13964 (pop_srcloc): Likewise.
13965 * toplev.c (push_srcloc): Define it.
13966 (pop_srcloc): Likewise.
13968 2000-02-24 Richard Henderson <rth@cygnus.com>
13970 * flow.c (life_analysis): When collecting reg info, clear
13973 Thu Feb 24 22:06:52 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
13975 Fix bug exposed by reload.c no longer rounding the frame
13976 size to BIGGEST_ALIGNMENT:
13977 * sh.c (rounded_frame_size): New function.
13978 (sh_expand_prologue, sh_expand_epilogue): Use it.
13979 (initial_elimination_offset): Likewise.
13981 Thu Feb 24 20:04:11 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
13983 Fix breakage from 6th Feb thread_prologue_and_epilogue_insns change:
13984 * sh-protos.h (sh_need_epilogue): Declare.
13985 * sh.c (sh_need_epilogue_known): New static variable.
13986 (sh_need_epilogue): New function.
13987 (function_epilogue): Clear need_epilogue_known.
13988 * sh.md (return): Split into expander / insn pattern.
13989 Make the expander conditional on ! sh_need_epilogue ().
13991 2000-02-24 Nathan Sidwell <nathan@codesourcery.com>
13993 * machmode.h (get_mode_alignment): Declare.
13994 (GET_MODE_ALIGNMENT): Call it.
13995 * stor-layout.c (get_mode_alignment): New function. Make
13996 sure alignment is always power of 2.
13998 2000-02-23 Zack Weinberg <zack@wolery.cumb.org>
14000 * i386.h: Remove useless definition of "I386" and misleading
14003 2000-02-23 Zack Weinberg <zack@wolery.cumb.org>
14005 * tree.h (TREE_SET_PERMANENT): New macro. Document conditions
14006 under which TREE_PERMANENT will be set.
14007 * tree.c (make_node, copy_node, make_tree_vec, tree_cons,
14008 build1): Use TREE_SET_PERMANENT.
14009 * print-tree.c (print_node): Don't report value of
14010 TREE_PERMANENT if ggc_p is true.
14012 * c-common.c (c_get_alias_set): Don't use TREE_PERMANENT to
14013 decide whether to give a type a new alias set.
14014 * objc/objc-act.c (build_objc_string_object): Never copy the string.
14015 * tree.c (make_node): Set DECL_IN_SYSTEM_HEADER irrespective
14016 of value of 'obstack'.
14019 2000-02-24 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14021 * config/c4x/c4x.c (c4x_process_after_reload): Split all insns.
14023 2000-02-23 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
14025 * cpplib.h (enum cpp_token): Added CPP_WCHAR and CPP_WSTRING.
14026 * cpplib.c (cpp_get_token): Produce them.
14027 * cppexp.c (cpp_lex): Handle them.
14029 2000-02-23 Nick Clifton <nickc@cygnus.com>
14031 * config/arm/arm.c (arm_comp_type_attributes): Simply and
14032 comment tests on type attributes.
14034 Wed Feb 23 16:42:21 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
14036 * final.c (shorten_branches): Make value passed to LOOP_ALIGN
14037 conform to documentation.
14038 * sh.h (LOOP_ALIGN): If aligning loops, call sh_loop_align
14039 to check for special cases.
14040 * sh-protos.h (sh_loop_align): Declare.
14041 * sh.c (sh_loop_align): Define.
14043 2000-02-22 Andrew Haley <aph@cygnus.com>
14045 * config/mips/mips.h (GAS_ASM_SPEC): Pass -mgp32/-mgp64 to gas.
14046 (SIZE_TYPE): Is 32 bits when using -mgp32.
14047 (PTRDIFF_TYPE): Ditto.
14049 Wed Feb 23 07:26:27 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14051 * diagnostic.c (init_output_buffer): Handle case of null PREFIX.
14053 2000-02-23 Zack Weinberg <zack@wolery.cumb.org>
14055 * config/i386/i386.h: If IN_TARGET_LIBS is defined, make
14056 BIGGEST_FIELD_ALIGNMENT a constant.
14058 2000-02-21 Jason Merrill <jason@casey.cygnus.com>
14060 * dwarf2out.c (output_line_info): Put the marker for the end of
14061 the line number info at the actual end.
14062 (gen_struct_or_union_type_die): Use decl_function_context
14063 to check for local classes.
14064 * dwarfout.c (output_type): Likewise.
14066 Tue Feb 22 01:38:57 2000 Jeffrey A Law (law@cygnus.com)
14068 * pa.h (FUNCTION_ARG_PASS_BY_REFERENCE): Handle pass-by-reference
14069 for arguments with a mode, but no type.
14070 (FUNCTION_ARG_CALLEE_COPIES): Similarly.
14071 * t-pa (LIB2FUNCS_EXTRA): Add quadlib.asm.
14072 * pa/long_double.h: New file.
14073 * configure.in (hpux10, hpux11 configurations): hpux10 and hpux11
14074 both have 128bit wide long doubles.
14075 * configure: Rebuilt.
14077 2000-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14079 * defaults.h (ASM_OUTPUT_ASCII): Constify a char*.
14081 * flow.c (get_common_dest, chain_reorder_blocks, make_reorder_chain,
14082 fixup_reorder_chain, skip_insns_between_block): Add static prototypes.
14083 (life_analysis): Wrap variable `i' with macro ELIMINABLE_REGS.
14085 * haifa-sched.c (rank_for_schedule): Don't cast away const-ness.
14087 * integrate.c (compare_blocks, find_block): Likewise.
14089 * rtl.c (fatal_with_file_and_line): Add ATTRIBUTE_PRINTF_2.
14091 * rtl.h (set_file_and_line_for_stmt): Constify a char*.
14093 * stmt.c (stmt_status, set_file_and_line_for_stmt,
14094 expand_asm_operands): Likewise.
14096 Mon Feb 21 17:06:27 2000 Jason Eckhardt <jle@cygnus.com>
14098 * predict.c (estimate_probability): Added the pointer heuristic to
14099 the collection of static branch predictors.
14101 2000-02-21 Catherine Moore <clm@cygnus.com>
14103 * config/mips/mips.h (ASM_SPEC): Add -mfix700.
14104 * invoke.texi (-mfix7000): Document.
14106 2000-02-21 Gabriel Dos Reis <gdr@codesourcery.com>
14108 * diagnostic.c (init_output_buffer): Make it possible to output at
14109 least 32 characters if we're given a too long prefix.
14111 2000-02-20 Mark Mitchell <mark@codesourcery.com>
14113 * varasm.c (initializer_constant_valid_p): Call
14114 lang_expand_constant to simplify the constant.
14116 2000-02-20 Bruce Korb <bkorb@gnu.org>
14118 * fixinc/inclhack.def(stdio_va_list):
14119 typedef needs to be disabled.
14120 * fixinc/inclhack.sh: regen
14121 * fixinc/fixincl.x: regen
14123 2000-02-20 Geoff Keating <geoffk@cygnus.com>
14125 * print-rtl.c (print_rtx): Don't print addresses when
14126 flag_dump_unnumbered.
14128 2000-02-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14130 * sparc.c (sparc_output_scratch_registers): Mark parameter with
14132 (sparc_va_arg, sparc_flat_output_function_prologue,
14133 sparc_flat_output_function_epilogue): Cast value to unsigned in
14135 (sparc_emit_float_lib_cmp): Remove unused variable `cmp'.
14137 * sparc.md: Add default case in switch.
14139 2000-02-19 Richard Henderson <rth@cygnus.com>
14141 * c-typeck.c (add_pending_init): Don't abort for multiple
14142 fields at the same offset.
14143 (pending_init_member): Test the correct member.
14145 2000-02-19 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
14147 * except.c (start_dynamic_handler) : Use TYPE_MODE (integer_type_node)
14149 (start_catch_handler) : Same.
14151 2000-02-19 Brad Lucier (lucier@math.purdue.edu)
14153 * Makefile.in: Have flow.o depend on $(EXPR_H)
14155 Sat Feb 19 18:43:13 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14157 * c-common.c (decl_attributes): Set DECL_SIZE_UNIT.
14158 * c-decl.c (duplicate_decls, finish_enum): Likewise.
14159 (finish_decl): Remove -Wlarger-than code from here.
14160 * flags.h (id_clash_len): Now int.
14161 (larger_than_size): Now HOST_WIDE_INT.
14162 * fold-const.c (size_int_wide): No more HIGH parm; NUMBER is signed.
14163 Clean up checking to see if in table.
14164 (make_bit_field_ref): Remove extra parm to bitsize_int.
14165 * ggc-common.c (ggc_mark_tree_children): Mark DECL_SIZE_UNIT.
14166 * print-tree.c (print_node): Print DECL_SIZE_UNIT and TYPE_SIZE_UNIT.
14167 * stmt.c (expand_decl): Use DECL_SIZE_UNIT for stack checking size
14168 and for computing size of decl.
14169 * stor-layout.c (layout_decl): Set DECL_SIZE_UNIT.
14170 Move -Wlarger-than code to here.
14171 (layout_record): Remove extra arg to bitsize_int.
14172 Set TYPE_BINFO_SIZE_UNIT.
14173 (layout_union): Remove extra arg to bitsize_int.
14174 Use proper type for size of QUAL_UNION.
14175 (layout_type): Remove extra arg to bitsize_int.
14176 * toplev.c (id_clash_len): Now int.
14177 (larger_than_size): Now HOST_WIDE_INT.
14178 (decode_W_option): Clean up id-clash and larger-than- cases.
14179 * tree.c (get_identifier, maybe_get_identifier): Remove unneeded casts.
14180 (expr_align, case FUNCTION_DECL): DECL_ALIGN is not defined.
14181 * tree.h (BINFO_SIZE_UNIT, TYPE_BINFO_SIZE_UNIT, DECL_SIZE_UNIT): New.
14182 (struct tree_decl): New field size_unit.
14183 (size_int_wide): No HIGH operand; NUMBER is now signed.
14184 (size_int_2): Deleted.
14185 (size_int, bitsize_int): Don't use it and rework args.
14186 * varasm.c (assemble_variable, output_constructor): Use DECL_SIZE_UNIT.
14188 Fri Feb 18 20:01:58 2000 Jeffrey A Law (law@cygnus.com)
14190 * pa/quadlib.asm (_U_QFgt, _U_Qfge): Fix flags for _U_Qfcmp call.
14192 2000-02-18 Geoff Keating <geoffk@cygnus.com>
14194 * invoke.texi (Warning Options): Add an explanation of why
14195 you might want the -Wfloat-equal flag.
14197 Fri Feb 18 20:08:57 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14199 * bitmap.c (bitmap_operation): Avoid using -1 for index since unsigned.
14200 * cppinit.c (new_pending_define): Add cast to avoid warning.
14201 * expmed.c (extract_bit_field): Likewise.
14202 * flow.c (enum reorder_skip_type): New type.
14203 (skip_insns_between_blcok): New it.
14204 Rework to avoid warning about possibly undefined variable.
14205 * function.c (assign_parms): Make thisparm_boundary unsigned.
14206 * genrecog.c (write_switch): Cast XWINT result to int.
14207 * lcm.c: Many static fcns and vars now #ifdef OPTIMIZE_MODE_SWITCHING.
14208 * mips-tfile.c (init_file): Make two versions of FDR intializer:
14209 one for MIPS and one for Alpha.
14210 (get_tag, copy_object): Add casts to avoid warnings.
14211 * optabs.c (init_one_libfunc): Cast NAME to (char *).
14212 * reload.c (find_reloads): Make TYPE enum reload_type.
14213 * sbitmap.c (dump_sbitmap): J is unsigned; don't use "1L".
14214 * unroll.c (unroll_loop): Initialize UNROLL_NUMBER.
14215 * varasm.c (compare_constant_1): Add cast to avoid warning.
14216 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Cast FUNC
14218 (alpha_expand_unaligned_load, alpha_expand_unaligned_store):
14219 Cast switch operand of size to int.
14220 (alpha_expand_epilogue): Always initialize fp_offset and sa_reg.
14221 * config/alpha/alpha.h (INITIAL_ELIMINATION_OFFSET): Add abort
14224 2000-02-18 Nick Clifton <nickc@cygnus.com>
14226 * config/arm/elf.h (ASM_OUTPUT_ALIGN): Do not generate
14227 anything for an alignment of zero.
14229 * config/arm/thumb.h (ASM_OUTPUT_ALIGN): Do not generate
14230 anything for an alignment of zero.
14232 2000-02-18 Martin von Loewis <loewis@informatik.hu-berlin.de>
14234 * gcc.texi (Bug Reporting): Refer to bugs.html.
14235 (Bug Lists): Likewise.
14236 * system.h (GCCBUGURL): New preprocessor define.
14237 * rtl.c (fancy_abort): Use it.
14238 * gcc.c (main): Likewise.
14240 2000-02-18 Richard Henderson <rth@cygnus.com>
14242 * flow.c (INSN_VOLATILE, SET_INSN_VOLATILE, uid_volatile): Remove.
14243 (life_analysis_1): Subsume into ...
14244 (life_analysis): ... here. Force PROP_REG_INFO off after reload.
14245 Use update_life_info for the relaxation.
14246 (update_life_info): Update REG_BASIC_BLOCK for registers live on
14247 entry and regs_live_at_setjmp.
14248 (set_noop_p): Simplify.
14249 (notice_stack_pointer_modification_1): Renamed from s/_1//.
14250 (record_volatile_insns): Split into ...
14251 (delete_noop_moves): ... here,
14252 (notice_stack_pointer_modification): ... here,
14253 (insn_dead_p): ... and here.
14254 (propagate_block): Don't query INSN_VOLATILE.
14255 (mark_used_regs): Mind !PROP_REG_INFO.
14256 * toplev.c (rest_of_compilation): Call mark_constant_function here,
14257 not in life_analysis.
14259 Fri Feb 18 01:29:22 EST 2000 John Wehle (john@feith.com)
14261 * loop.c (canonicalize_condition): New function,
14262 broken out of get_condition.
14263 (get_condition): Use it.
14264 * expr.h (canonicalize_condition): Prototype it.
14266 * tree.h (tree_int_cst_msb): Declare.
14267 * tree.c (tree_int_cst_msb): New function.
14269 2000-02-17 Mark Mitchell <mark@codesourcery.com>
14271 * stmt.c (set_file_and_line_for_stmt): Don't crash if cfun->stmt
14274 * invoke.texi (-fmessage-length=n): Document.
14276 2000-02-17 Jason Merrill <jason@casey.cygnus.com>
14278 * bitmap.c (bitmap_operation): Don't leak bitmap elements.
14280 2000-02-17 Mark Mitchell <mark@codesourcery.com>
14282 * function.c (thread_prologue_and_epilogue_insns): Put a line note
14283 after the prologue.
14285 2000-02-17 Nick Clifton <nickc@cygnus.com>
14287 * config/arm/thumb.c: Replace includes of system headers with
14288 #include "system.h".
14290 2000-02-16 Richard Henderson <rth@cygnus.com>
14292 * configure.in (alpha-linux*, alpha-netbsd) [extra_parts]:
14293 Add crtbeginS.o and crtendS.o.
14294 * alpha/elf.h (STARTFILE_SPEC): Use crtbeginS.o.
14295 (ENDFILE_SPEC): Use crtendS.o.
14296 * alpha/t-crtbe (crtbeginS.o, crtendS.o): New targets.
14298 * alpha/crtbegin.asm (__do_frame_takedown): Merge into ...
14299 (__do_global_dtors_aux): ... here. Call __cxa_finalize if
14300 shared and present.
14301 (__dso_handle): New variable.
14302 * alpha/crtend.asm (__do_global_ctors_aux): Remove runtime
14303 bias to __CTOR_END__.
14305 2000-02-16 Richard Henderson <rth@cygnus.com>
14307 * Makefile.in (s-crtS, crtbeginS, crtendS): Prefix usage with $(T).
14309 Wed Feb 16 21:40:04 2000 Hans-Peter Nilsson <hp@bitrange.com>
14311 * longlong.h (__clz_tab): Declare as static to match definition.
14313 2000-02-16 Mark Elbrecht <snowball3@bigfoot.com>
14315 * i386/xm-djgpp.h (LIBSTDCXX): Delete. Moved to config/i386/djgpp.h.
14316 (XREF_FILE_NAME): Define.
14318 * i386/djgpp.h (DATA_SECTION_ASM_OP): Define.
14319 (EH_FRAME_SECTION_ASM_OP): Define.
14320 (IDENT_ASM_OP): Define.
14321 (TEXT_SECTION_ASM_OP): Define.
14322 (CPP_SPEC): Define.
14323 (CTORS_SECTION_ASM_OP): Define.
14324 (CTOR_SECTION_FUNCTION): Use it.
14325 (DTORS_SECTION_ASM_OP): Define.
14326 (DTOR_SECTION_FUNCTION): Use it.
14328 2000-02-16 Zack Weinberg <zack@wolery.cumb.org>
14330 * reg-stack.c (emit_swap_insn): Do not put a new insn before a
14333 * flow.c (dump_regset, debug_regset, dump_bb, debug_bb,
14334 debug_bb_n): New functions.
14335 (dump_flow_info, print_rtl_with_bb): Use dump_regset.
14336 * basic-block.h: Prototype new functions.
14338 Wed Feb 16 21:07:53 2000 Denis Chertykov <denisc@overta.ru>
14340 * configure.in: Add support for avr target.
14341 * configure: Rebuilt.
14343 * invoke.texi: Add AVR invocation docs.
14344 * install.texi: Add information about AVR.
14345 * md.texi: Add AVR constraint letters description.
14346 * extend.texi: Add description for AVR specific attributes.
14348 2000-02-16 Jason Merrill <jason@casey.cygnus.com>
14350 * fixinc/fixinc.svr4: Wrap byteorder.h with extern "C".
14352 2000-02-16 Nick Clifton <nickc@cygnus.com>
14354 * emit-rtl.c (emit_insn): Move RTL check into make_insn_raw.
14355 (make_insn_raw): Move RTL check here.
14357 2000-02-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14359 * version.c: Include gansidecl.h and version.h.
14361 * version.h: Wrap entire file in macro __GCC_VERSION_H__.
14363 * configure.in (gcc_version): When setting, narrow search to
14364 lines containing `version_string'.
14366 * Makefile.in (mainversion): Likewise.
14367 (GCC_H): New variable.
14368 (gcc.h): Delete target.
14369 (gcc.o, gccspec.o, cppspec.o): Depend on $(GCC_H), not gcc.h.
14370 (version.o): Depend on version.h.
14371 (dbxout.o): Don't depend on gcc.h.
14373 Wed Feb 16 15:04:49 2000 Hans-Peter Nilsson <hp@bitrange.com>
14374 Michael Meissner <meissner@cygnus.com>
14376 * md.texi (Simple Constraints): Add item about whitespace.
14377 * genoutput.c (strip_whitespace): New.
14378 (scan_operands) [MATCH_OPERAND, MATCH_SCRATCH]: Call
14379 strip_whitespace for constraints.
14380 Test pointer using NULL, not 0.
14382 2000-02-16 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
14384 * cpplib.c (do_line): Pedwarn for #line > 32767.
14386 * c-lex.c (readescape): Warn about '\x', but do not reject it.
14388 2000-02-15 Jonathan Larmour <jlarmour@redhat.co.uk>
14390 * gcc.c (default_compilers): Add new __GNUC_PATCHLEVEL__ define
14391 to default cpp spec.
14392 (do_spec_1): Add support for %v3 spec used by __GNUC_PATCHLEVEL__.
14393 * cpp.texi: Document __GNUC_PATCHLEVEL__.
14396 * objc/lang-specs.h: Add new __GNUC_PATCHLEVEL__ define to
14399 2000-02-15 Denis Chertykov <denisc@overta.ru>
14401 * configure.in: Add support for avr target.
14403 Wed Feb 16 03:21:43 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
14405 * sh.h (OVERRIDE_OPTIONS): Don't set sh_addr_diff_vec_mode.
14406 (sh_addr_diff_vec_mode): Don't declare.
14407 * sh.c (sh_addr_diff_vec_mode): Delete.
14409 Wed Feb 16 01:27:52 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
14411 * sh.md (mulsi3_highpart): Add REG_EQUAL note to last insn.
14413 Wed Feb 16 00:58:06 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
14415 * sh.md (udivsi3_i1, divsi3_i1, umulhisi3_i, mulhisi3_i): Name.
14416 (smulsi3_highpart_i): Name.
14417 (udivsi3): Wrap emitted insns in REG_LIBCALL / REG_RETVAL notes.
14418 (divsi3, mulhisi3, umulhisi3, mulsidi3, umulsidi3): Likewise.
14419 (smulsi3_highpart, umulsi3_highpart): Likewise.
14421 (mulsidi3_i, umulsidi3_i): Make rtl describe operation
14422 correctly independent of endianness.
14423 (mulsidi3, umulsidi3): Now define_insn. Hide details that
14424 confuse the optimizers.
14425 (mulsidi3+1, umulsidi3+1): New define_split.
14427 Tue Feb 15 23:22:26 2000 Andrew Haley <aph@cygnus.com>
14429 * config/sh/sh.md: Guard insn splits against illegal registers.
14430 * config/sh/sh.h: Correct comment about macros.
14432 Tue Feb 15 22:30:36 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
14433 Andrew MacLeod <amacleod@cygnus.com>
14435 * Makefile.in (lcm.o): Depend on insn-attr.h.
14436 * basic-block.h (optimize_mode_switching): Declare.
14437 * lcm.c (tm_p.h, insn-attr.h): #include.
14438 (seginfo, bb_info): New structs.
14439 (antic, transp, comp, delete, insert) : New file-scope static variables.
14440 (new_seginfo, add_seginfo, make_preds_opaque, reg_dies): New functions.
14441 (reg_becomes_live, optimize_mode_switching): Likewise.
14442 * tm.texi: Add description of mode switching macros.
14443 * toplev.c (rest_of_compilation): Call optimize_mode_switching.
14445 * sh-protos.h (remove_dead_before_cse): Remove prototype.
14446 (fldi_ok, fpscr_set_from_mem): New prototypes.
14447 * sh.h (OPTIMIZATION_OPTION): Remove sh_flag_remove_dead_before_cse set.
14448 (CONST_DOUBLE_OK_FOR_LETTER_P, SECONDARY_INPUT_RELOAD_CLASS):
14449 Disable fldi for (TARGET_SH4 && ! TARGET_FMOVD).
14450 (sh_flag_remove_dead_before_cse): Remove declaration.
14451 (NUM_MODES_FOR_MODE_SWITCHING, OPTIMIZE_MODE_SWITCHING): New macros.
14452 (MODE_USES_IN_EXIT_BLOCK, MODE_NEEDED, MODE_AT_ENTRY): Likewise.
14453 (MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
14454 * sh.c (broken_move): Disable fldi for (TARGET_SH4 && ! TARGET_FMOVD).
14455 (barrier_align): Allow for JUMP_INSNS containing a parallel.
14456 (machine_dependent_reorg): Remove sh_flag_remove_dead_before_cse set.
14457 (fldi_ok): New function.
14458 (get_fpscr_rtx): Add fpscr_rtx as GC root.
14459 (emit_sf_insn): Only generate fpu switches when optimize < 1.
14460 (emit_df_insn): Likewise.
14461 (expand_fp_branch, emit_fpscr_use, remove_dead_before_cse): Delete.
14462 (sh_flag_remove_dead_before_cse): Delete.
14463 (get_free_reg, fpscr_set_from_mem): New functions.
14464 * sh.md (movdf, movsf): Remove no_new_pseudos code.
14465 (return): Remove emit_fpscr_use / remove_dead_before_cse calls.
14467 2000-02-15 Loren Rittle <ljrittle@acm.org>
14469 * ginclude/stddef.h: Correct usage of _BSD_RUNE_T_ for FreeBSD.
14471 2000-02-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14473 * Makefile.in (TREE_H, collect2.o, gcc.h, mips-tfile.o, cccp.o,
14474 cpphash.o, cppinit.o, protoize.o, unprotoize.o): Depend on version.h.
14476 * cccp.c: Include version.h and/or don't declare `version_string'.
14477 * collect2.c: Likewise.
14478 * alpha.c: Likewise.
14479 * arm/aof.h: Likewise.
14480 * arm/coff.h: Likewise.
14481 * arm/elf.h: Likewise.
14482 * arm/pe.h: Likewise.
14483 * arm/tcoff.h: Likewise.
14484 * arm/telf.h: Likewise.
14485 * arm/tpe.h: Likewise.
14486 * arm/vxarm.h: Likewise.
14487 * convex/convex.c: Likewise.
14488 * i386/dgux.c: Likewise.
14489 * i386/sun386.h: Likewise.
14490 * m88k/m88k.c: Likewise.
14491 * mcore/mcore-pe.h: Likewise.
14492 * mips/mips.h: Likewise.
14493 * romp/romp.h: Likewise.
14494 * sh/sh.c: Likewise.
14495 * cpphash.c: Likewise.
14496 * cppinit.c: Likewise.
14497 * dwarf2out.c: Likewise.
14498 * dwarfout.c: Likewise.
14501 * mips-tfile.c: Likewise.
14502 * protoize.c: Likewise.
14503 * toplev.c: Likewise.
14504 * tree.h: Likewise.
14506 * version.c (version_string): Constify a char*.
14508 * version.h: New file.
14510 2000-02-14 Nick Clifton <nickc@cygnus.com>
14512 * configure.in: Add mcore-elf and mcore-pe targets.
14513 * configure: Regenerate.
14515 * NEWS: Add note that MCore port has been contributed.
14517 * invoke.texi: Document command line switches for MCore port.
14518 * install.texi: Add MCore to list of supported targets.
14520 2000-02-14 Geoff Keating <geoffk@cygnus.com>
14522 * collect2.c (main) [COLLECT_EXPORT_LIST]: If we have frames,
14523 then we will need to import the frame handling functions.
14524 (scan_prog_file) [COLLECT_EXPORT_LIST]: We will also need
14525 to import the frames themselves.
14527 Mon Feb 14 13:31:01 2000 Stan Cox <scox@cygnus.com>
14528 Jason Eckhardt <jle@cygnus.com>
14530 * basic_block.h: Added prototype for reorder_basic_blocks.
14531 * toplev.c: Changes to add -freorder-blocks and graph dump after
14532 block reordering is done.
14533 * flow.c (reorder_block_def): New structure for use during block
14535 (REORDER_BLOCK_*): New macros to access members of above structure.
14536 (skip_insns_between_block, get_common_dest, chain_reorder_blocks,
14537 make_reorder_chain, fixup_reorder_chain, reorder_basic_blocks): New
14538 functions for block reordering.
14540 Mon Feb 14 11:24:44 2000 Hans-Peter Nilsson <hp@bitrange.com>
14542 * gcc.texi (Passes): Fix typo.
14543 * md.texi (Standard Names): Ditto.
14544 * tm.texi (Storage Layout): Ditto.
14546 2000-02-13 Zack Weinberg <zack@wolery.cumb.org>
14548 * cpplib.c (do_define): Only free the old definition if it
14551 2000-02-13 Neil Booth <NeilB@earthling.net>
14553 * cppfiles.c (read_and_prescan): When emitting deferred
14554 newlines, test speccase[] again instead of checking each
14555 possible whitespace character in turn. When we encounter \r,
14556 look behind for \n first, then ahead.
14558 2000-02-13 Zack Weinberg <zack@wolery.cumb.org>
14560 * cse.c (cse_altered): New internal flag.
14561 (cse_insn): Set it if we changed an insn.
14562 (cse_main): Clear cse_altered before each basic block.
14563 Only garbage collect if cse_altered is true afterward.
14565 Sun Feb 13 14:12:28 2000 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
14567 * sparc/sol2.h (LIB_SPEC): Link -ldl if profiling.
14569 Sun Feb 13 13:21:55 2000 Jeffrey A Law (law@cygnus.com)
14571 * combine.c (simplify_comparison): Fix typo.
14573 Sun Feb 13 12:57:52 2000 Neil Booth <NeilB@earthling.net>
14575 * prefix.c (concat, lookup_key): Use xmalloc and xrealloc
14578 2000-02-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14580 * flow.c (flow_loop_tree_node_add): Use better algorithm by passing
14581 previously inserted node instead of root node. Caller changed.
14583 2000-02-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14585 * basic-block.h (FLOW_LOOP_FIRST_BLOCK, FLOW_LOOP_LAST_BLOCK): Delete.
14587 2000-02-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14589 * crtstuff.c (__do_global_ctors_aux, __reg_frame_ctor,
14590 __dereg_frame_dtor): Add prototype argument.
14592 * gthr-dce.h (__gthread_active_p, __gthread_once): Likewise.
14594 * gthr-posix.h (__gthread_active_p, __gthread_once): Likewise.
14596 * gthr-solaris.h (__gthread_active_p, __gthread_once): Likewise.
14598 * gthr-vxworks.h (__gthread_once): Likewise.
14600 * gthr-win32.h (__gthread_active_p, __gthread_once): Likewise.
14602 Sat Feb 12 01:44:26 MET 2000 Jan Hubicka <jh@suse.cz>
14604 * i386.c (ix86_emit_restore_regs_using_mov): Break out from ...
14605 (ix86_expand_epilogue): ... here. Use mov instead of add to restore
14606 stack pointer in functions w/o saved registers, output LEAVE more often
14607 on TARGET_USE_LEAVE machines.
14609 2000-02-07 Dmitri Makarov <dim@wrs.com> & Bernd Schmidt <bernds@redhat.com>
14611 * config/arm/arm.c (arm_init_cumulative_args); New function:
14612 Initlaise the CUMULATIE_ARGS strcuture for a function
14614 (arm_function_arg): New function: Determine where to place a
14615 function's argument. Also handles deciding the function's
14617 (current_file_function_operand): New function: Return true if
14618 the symbol is a function which has already been compiled.
14619 (arm_is_long_call_p): New function: Return true if the
14620 indicated function should be called via a long call.
14621 (arm_valid_type_attribute_p): New function: Return true if the
14622 attribute is a valid, arm specific, attribute.
14623 (arm_comp_type_attribute): New function: Return true if the
14624 two types have compatable, arm specific, attributes.
14626 * config/arm/arm.h (CUMULATIVE_ARGS): Redefine to be a
14628 (FUNCTION_ARG): Redefine to call arm_function_arg.
14629 (FUNCTION_ARG_PARTIAL_NREGS): Redefine to use correct
14631 (INIT_CUMULATIVE_ARGS): Redefine to call
14632 arm_init_cumulative_args.
14633 (FUNCTION_ARG_ADVANCE): Redefine to use correct structure
14635 (SETUP_INCOMING_VARARGS): Redefine to use correct structure
14637 (ARM_MARK_NEARBY_FUNCTION): New macro: Mark already compiled
14639 (ENCODE_SECTION): Add call to ARM_MARK_NEARBY_FUNCTION.
14640 (VALID_MACHINE_TYPE_ATTRIBUTE): Define.
14641 (COMP_TYPE_ATTRIBUTES): Define.
14643 * config/arm/arm.md (call): Call arm_is_long_call_p to decide
14644 if a long call is needed.
14645 (call_value): Call arm_is_long_call_p to decide if a long call
14647 (call_symbol): Call arm_is_long_call_p to decide if a long call
14650 * config/arm/arm-protos.h: Add prototype for arm_is_long_call_p.
14652 2000-02-11 Denis Chertykov <denisc@overta.ru>
14654 * README.AVR: New file with information about the avr ports.
14655 * config/avr: New directory with avr port files.
14657 2000-02-11 Andreas Jaeger <aj@suse.de>
14659 * fixinc/Makefile.in (FIXINC_DEFS): Remove unneeded @fixinc_defs@.
14661 2000-02-11 Zack Weinberg <zack@wolery.cumb.org>
14663 * cpphash.c: Fix formatting, update commentary.
14664 (dump_definition): Take three separate arguments instead of a
14665 MACRODEF structure argument.
14666 * cpphash.h: Update prototype of dump_definition.
14667 * cppinit.c (cpp_finish): Update call of dump_definition.
14669 * cpplib.c (do_define): Always create new hash entry with
14670 T_MACRO type. Remove redundant check for redefinition of
14671 poisoned identifier. Update call of dump_definition.
14672 (do_undef): Don't call check_macro_name. Rename sym_length to
14674 (do_error, do_warning): Don't use copy_rest_of_line or
14676 (do_warning): Don't use pedwarn for the actual warning,
14677 only the notice about its not being in the standard. (Fixes
14678 bug with #warning in system headers.)
14679 (do_ident): Stricter argument checking - accept only a single
14680 string after #ident. Also, macro-expand the line.
14681 (do_xifdef): Use cpp_defined. De-obfuscate.
14683 (do_pragma): Split out specific pragma handling to separate
14684 functions. Use get_directive_token. Update commentary. Do
14685 not pass on #pragma once or #pragma poison to the front end.
14686 (do_pragma_once, do_pragma_implementation, do_pragma_poison,
14687 do_pragma_default): New.
14689 Feb 11 12:30:53 2000 Jeffrey A Law (law@cygnus.com)
14691 * jump.c (jump_optimize_1): The first operand in a relational
14692 can be a CONST_INT.
14693 * optabs.c (emit_conditional_move): Handle relationals which
14694 have a known true/false result.
14696 2000-02-11 Geoff Keating <geoffk@cygnus.com>
14698 * function.c (thread_prologue_and_epilogue_insns): Don't insert
14699 a RETURN insn into a block which already ends with a jump.
14701 2000-02-11 Geoff Keating <geoffk@cygnus.com>
14703 * haifa-sched.c (BUF_LEN): Increase a lot.
14705 2000-02-11 Nick Clifton <nickc@cygnus.com>
14707 * configure.in: Add tm_p_file specification for thumb targets.
14708 * configure: Regenerate.
14710 * config/arm/thumb-protos.h: New file: Prototypes for exported
14711 functions defined in thumb.c.
14713 2000-02-11 Robert Lipe <robertl@sco.com>
14715 * Makefile.in (bootstrap-lean): Remove additional files.
14716 (bootstrap2-lean): Likewise.
14717 (VOL_FILES): List of files for above.
14719 2000-02-11 Nathan Sidwell <nathan@acm.org>
14721 * cpphash.c (special_symbol): Remove spurious argument to
14724 2000-02-11 Joel Sherrill (joel@OARcorp.com>
14726 * configure.in: (i*86-*-rtems*): Swapped elf and coff
14728 * configure: Rebuilt.
14730 2000-02-11 Rodney Brown <RodneyBrown@pmsc.com>
14732 * pa-protos.h: Wrap function_arg_padding in TREE_CODE #ifdef.
14734 Fri Feb 11 02:59:05 2000 Jeffrey A Law (law@cygnus.com)
14736 * pa.c, pa.h: Remove trigraph sequences within comments.
14738 Fri Feb 11 02:51:56 2000 Pavel Roskin <pavel_roskin@geocities.com>
14740 * invoke.texi (PPC Options): -mno-new-mnenomics -> -mold-mnemonics.
14742 Fri Feb 11 02:48:30 2000 Brad Lucier (lucier@math.purdue.edu)
14744 * sbitmap.h: Make SBITMAP_ELT_BITS unsigned.
14746 2000-02-11 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14748 * config/c4x/c4x.c (fp_zero_operand): Check for CONST_DOUBLE.
14750 2000-02-11 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14752 * config/c4x/c4x.h (ASM_GLOBALIZE_LABEL): Use c4x_global_label.
14753 (ASM_OUTPUT_EXTERNAL): Use c4x_external_ref.
14754 (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
14755 (ASM_FILE_END): Use c4x_file_end.
14756 * config/c4x/c4x.c (c4x_global_label): New function.
14757 (c4x_external_ref, c4x_file_end): Likewise.
14759 * config/c4x/c4x-protos.h (c4x_global_label): Add prototype.
14760 (c4x_external_ref, c4x_end_file): Likewise.
14762 2000-02-10 Zack Weinberg <zack@wolery.cumb.org>
14764 * cppexp.c: Don't include cpphash.h.
14765 (parse_charconst, cpp_lex): Use cpp_defined.
14766 (cpp_lex): Use get_directive_token throughout. Remove
14767 unnecessary cases from switch. Move assertion-handling code
14768 down to OTHER case.
14769 (cpp_parse_expr): If we see '+' or '-', check the context to
14770 determine if they are unary or binary operators. Streamline
14771 the jumps a bit. Do not call skip_rest_of_line.
14773 * cpplib.c: Make skip_rest_of_line and cpp_skip_hspace
14774 static. Export get_directive_token. Update commentary.
14775 (cpp_defined): New function.
14776 (do_define): Remove reference to T_PCSTRING. Call
14777 free_definition to release memory for old definition, when
14778 redefining a macro.
14779 (eval_if_expression): Set only_seen_white to 0 before calling
14780 cpp_parse_expr. Call skip_rest_of_line after it returns.
14781 (cpp_read_check_assertion): Don't preserve a pointer into the
14782 token buffer across a call to cpp_get_token.
14784 * Makefile.in (cppexp.o): Don't depend on cpphash.h.
14785 * cppfiles.c (redundant_include_p): Use cpp_defined.
14786 * cpphash.c (free_definition): New function.
14787 (delete_macro): Use it. Update commentary.
14788 * cpphash.h: Typedef HASHNODE here. Prototype cpp_lookup and
14790 * cpplib.h: Don't typedef HASHNODE here. Delete T_PCSTRING
14791 from enum node_type. Prototype cpp_defined and get_directive_token.
14792 Don't prototype cpp_lookup, skip_rest_of_line, or cpp_skip_hspace.
14794 * fix-header.c (check_macro_names): Use cpp_defined.
14795 (read_scan_file): Set inhibit_warnings and inhibit_errors in
14796 the options structure.
14798 2000-02-10 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
14800 * c-pragma.c (maximum_field_alignment): Remove duplicate declaration.
14802 2000-02-10 Jason Merrill <jason@casey.cygnus.com>
14804 * dwarf2out.c (add_abstract_origin_attribute): Check TREE_CODE (origin)
14805 rather than die->die_tag.
14807 Thu Feb 10 16:26:49 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14809 * combine.c (make_extraction, force_to_mode): Avoid warning on
14810 mixed-signedness conditionals.
14811 (make_field_assignment, nonzero_bits): Likewise.
14812 * expmed.c (store_fixed_bit_field): ALIGN arg now unsigned.
14813 (store_split_bit_field, extract_split_bit_field): Likewise.
14814 (extract_fixed_bit_field, store_bit_field,
14815 * expr.c: Change alignment to be unsigned everywhere.
14816 (move_by_pieces, store_constructor_field, store_constructor):
14817 Alignment parm is unsigned.
14818 (emit_block_move, emit_group_load, emit_group_store): Likewise.
14819 (clear_storage, emit_push_insn, compare_from_rtx): Likewise.
14820 (do_compare_rtx_and_jump): Likewise.
14821 (move_by_pieces_ninsns, clear_by_pieces): Likewise.
14822 Compare align with GET_MODE_ALIGNMENT.
14823 (expand_expr_unaligned): Pointer to alignment is pointer to unsigned.
14824 (get_inner_reference): Likewise.
14825 (copy_blkmode_from_reg, emit_push_insn): Remove unneeded casts.
14826 (expand_assignment): Local vars for alignment now unsigned.
14827 (store_constructor, store_field, expand_expr, do_jump): Likewise.
14828 (do_compare_and_jump): Likewise.
14829 (store_field): Call new function expr_align.
14830 * expr.h (emit_block_move, emit_group_load, emit_group_store):
14831 Alignment arg now unsigned.
14832 (clear_storage, emit_push_insn, compare_from_rtx): Likewise.
14833 (do_compare_rtx_and_jump, store_bit_field): Likewise.
14834 (extract_bit_field): Likewise.
14835 * fold-const.c (add_double): Add cast to eliminate signedness warning.
14836 * machmode.h (GET_MODE_ALIGNMENT): Result is unsigned.
14837 (get_best_mode): Alignment arg is unsigned.
14838 * rtl.h (move_by_pieces): Likewise.
14839 * store-layout.c (maximum_field_alignment, set_alignment):
14841 (layout_decl): Alignment arg is now unsigned.
14842 Remove unneeded casts.
14843 (layout_record, layout_union, layout_type): Remove unneeded casts.
14844 Local alignment variables now unsigned.
14845 (get_best_mode): Alignment arg now unsigned.
14846 * tree.c (expr_align): New function.
14847 * tree.h (expr_align): Likewise.
14848 (maximum_field_alignment, set_alignment): Now unsigned.
14849 (get_inner_reference): Alignment argument is now pointer to unsigned.
14850 * varasm.c (assemble_variable): Add cast to eliminate warning.
14852 Thu Feb 10 12:56:47 2000 Jim Wilson <wilson@cygnus.com>
14854 * expmed.c (store_bit_field): If op0 and fieldmode are the same size,
14855 then store directly into op0.
14857 * calls.c (expand_call): When emitting a NOTE_INSN_SETJMP, search for
14858 the CALL_INSN, and emit the note immediately after it.
14860 2000-02-10 Nick Clifton <nickc@cygnus.com>
14862 * config/arm/thumb.md (epilogue): Include a (return) in the
14863 generated insn, and emit it using emit_jump_insn not
14866 Thu Feb 10 18:28:59 MET 2000 Jan Hubicka <jh@suse.cz>
14868 * function.c (assign_temp): Change zero-sized arrays to size 1.
14869 * integrate.c (expand_inline_function): Do not update
14870 stack_alignment_needed
14871 * i386.c (compute_frame_size): Remove #ifdef PREFERRED_FRAME_BOUNDARY,
14872 add some sanity checking, remove optimization for function with
14875 2000-02-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14877 * flow.c (mark_regs_live_at_end): Delete unused variables.
14879 * ggc-page.c (ggc_page_print_statistics): bzero -> memset.
14881 * integrate.c (copy_rtx_and_substitute): Wrap variable `alignment'
14882 in macro FRAME_GROWS_DOWNWARD.
14884 * stmt.c (expand_end_bindings): Delete unused variable.
14886 * unroll.c (iteration_info): Mark parameter `loop' with
14889 2000-02-10 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
14891 * fixinc/server.c (load_data): Return NULL if the marker line is
14893 (run_shell): If load_data returns NULL, retry the command once, in
14896 * configure: Rebuilt.
14898 2000-02-09 Bruce Korb <bkorb@gnu.org>
14900 * gcc/fixincludes: ** DELETED **
14901 * gcc/fixcpp: ** DELETED **
14902 * gcc/fixinc-nt.sed: ** DELETED **
14903 * gcc/just-fixinc: ** DELETED **
14904 * gcc/Makefile.in: Removed out-dated commentary
14905 * gcc/configure.in: Removed fast-fixincludes disablement.
14906 * MAINTAINERS(Ian Taylor) moved to "Write after approval" group.
14908 2000-02-09 Clinton Popetz <cpopetz@cygnus.com>
14909 * function.c (thread_prologue_and_epilogue_insns): Uncomment
14912 2000-02-09 Richard Henderson <rth@cygnus.com>
14914 * jump.c (delete_insn): Don't delete user labels at -O0.
14916 2000-02-09 Robert Lipe <robertl@sco.com>
14918 * Makefile.in (gen-protos): Don't depend on HOST_LIBDEPS.
14919 Don't link with HOST_LIBS.
14921 2000-02-09 Zack Weinberg <zack@wolery.cumb.org>
14923 * configure.in: Correct --help text for --with-dwarf2.
14924 Put tm-dwarf2.h after other tm files, if it's requested.
14925 * configure: Regenerate.
14926 * config/tm-dwarf2.h: #undef PREFERRED_DEBUGGING_TYPE before
14929 2000-02-09 Zack Weinberg <zack@wolery.cumb.org>
14931 * cpplib.h: Provide HASHNODE typedef and forward decl of
14932 struct hashnode only. Kill cpp_hashnode typedef. MACRODEF,
14933 DEFINITION, struct hashnode, struct macrodef, struct
14934 definition, scan_decls prototype, default defn of
14935 INCLUDE_LEN_FUDGE moved elsewhere.
14937 * cpphash.h: MACRODEF, DEFINITION, struct macrodef, struct
14938 definition, and struct hashnode moved here. Remove the unused
14939 'predefined' field from struct definition. Replace the 'args'
14940 union with its sole member. All users updated (cpphash.c).
14941 Delete HASHSTEP and MAKE_POS macros, and hashf prototype. Add
14942 multiple include guard.
14944 * cpphash.c (hashf): Make static; use better algorithm; drop
14945 HASHSIZE parameter; return an unsigned int.
14946 (cpp_lookup): Drop HASH parameter. PFILE parameter is
14947 used. Calculate HASHSIZE modulus here.
14948 (cpp_install): Drop HASH parameter. Calculate HASHSIZE modulus
14950 (create_definition): Drop PREDEFINITION parameter.
14951 * cpplib.c (do_define): Don't calculate a hash value here.
14952 Don't pass (keyword == NULL) to create_definition.
14954 * scan.h: Prototype scan_decls here.
14955 * cppfiles.c: Move INCLUDE_LEN_FUDGE default defn here.
14956 * cppexp.c, cppfiles.c, cppinit.c, cpplib.c, fix-header.c: All
14957 callers of cpp_lookup and cpp_install updated.
14959 * cpphash.c (macarg): Hoist all the flag diddling out of the
14961 (macroexpand): ... and out of the loop that calls macarg.
14962 Skip over the initial paren before macro arguments with
14963 cpp_get_non_space_token; point may be some distance before
14964 that paren. Abort if it's not there.
14966 * cpplib.c (parse_clear_mark): Delete function.
14967 (parse_set_mark, parse_goto_mark): Make static.
14968 (ACTIVE_MARK_P): New macro.
14969 (skip_block_comment, skip_line_comment): Do not bump the line
14970 if ACTIVE_MARK_P is true.
14971 (cpp_pop_buffer): The buffer to be popped may not have an
14973 (cpp_get_token): When looking for the initial paren before
14974 macro arguments, only set a mark in a file buffer, Always
14975 return to that mark before proceeding to call macroexpand or
14976 return a NAME token.
14978 * cpplib.h: Remove prototypes of parse_set_mark,
14979 parse_clear_mark, parse_goto_mark.
14980 (struct cpp_options): Rename 'put_out_comments' to
14981 'discard_comments' and invert its sense.
14982 * cppinit.c, cpphash.c, cpplib.c: All users of
14983 put_out_comments changed to use discard_comments, with
14986 2000-02-09 Clinton Popetz <cpopetz@cygnus.com>
14988 * function.c (thread_prologue_and_epilogue_insns): Don't delete
14989 the edge from a block that both jumps and falls through to the
14992 2000-02-09 Scott Bambrough <scottb@netwinder.org>
14994 * config/arm/arm.md (movsi): In PIC mode, make sure that a
14995 constant source address is legitimate.
14997 2000-02-09 Philip Blundell <pb@futuretv.com>
14999 * config/arm/arm.c (legitimize_pic_address): Handle LABEL_REF
15002 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Allow anything when
15004 (LEGITIMATE_PIC_OPERAND): Disallow references to labels.
15006 2000-02-09 Zack Weinberg <zack@wolery.cumb.org>
15008 * cpplib.c (cpp_define, cpp_undef): Make sure the stacked buffer
15009 ends with a newline and a NUL. Don't be so clever manipulating
15012 Wed Feb 9 14:18:08 MET 2000 Jan Hubicka <jh@suse.cz>
15014 * reload1.c (reload) Align stack frame to cfun->stack_alignment_needed,
15015 not to BIGGEST_ALIGNMENT.
15017 2000-02-08 Geoff Keating <geoffk@cygnus.com>
15019 * dwarf2.h (DW_CFA_GNU_negative_offset_extended): New constant.
15020 * dwarf2out.c (dwarf_cfi_name): Print name of new constant.
15021 (reg_save): Use DW_CFA_GNU_negative_offset_extended when needed.
15022 (output_cfi): Handle output of DW_CFA_GNU_negative_offset_extended.
15023 * frame.c (execute_cfa_insn): Handle
15024 DW_CFA_GNU_negative_offset_extended.
15026 2000-02-08 Richard Henderson <rth@cygnus.com>
15028 * flow.c (tidy_fallthru_edges): Split out from ...
15029 (delete_unreachable_blocks): ... here.
15030 (find_basic_blocks): Use it.
15032 Tue Feb 8 15:51:50 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15034 * stmt.c (expand_decl): Do set RTX_UNCHANGING_P for TREE_READONLY.
15036 2000-02-08 Zack Weinberg <zack@wolery.cumb.org>
15038 * Makefile.in (GEN_PROTOS_OBJS): Remove libcpp.a.
15039 (gen_protos.o): Don't depend on cpplib.h or cpphash.h.
15040 (fix-header.o): Don't depend on cpphash.h.
15042 * scan.c (hashstr): New function.
15043 * scan.h: Prototype it.
15044 * fix-header.c: Don't include cpphash.h. Use hashstr.
15045 * gen-protos.c: Don't include cpphash.h or cpplib.h. Use
15046 hashstr. Report hash table statistics. Add private
15047 definition of xrealloc.
15049 2000-02-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15051 * i386.h (TARGET_SWITCHES): Fix typo in option name.
15053 2000-02-08 Clinton Popetz <cpopetz@cygnus.com>
15055 * function.c (thread_prologue_and_epilogue_insns): Don't replace
15056 jumps with returns unless they are jumps to the fallthru block.
15058 Tue Feb 8 07:53:55 2000 Jan Hubicka <jh@suse.cz>
15060 * i386.md (addqi3_cc): Fix contraints.
15062 Tue Feb 8 01:39:45 2000 Hans-Peter Nilsson <hp@bitrange.com>
15064 * function.c (emit_return_into_block): Wrap in #ifdef HAVE_return.
15066 2000-02-07 Mark Mitchell <mark@codesourcery.com>
15068 * cpplib.c (cpp_get_token): Call CPP_BUMP_LINE after reading a
15069 carriage return after a macro name.
15071 2000-02-07 Fred Fish <fnf@be.com>
15073 * i386/beos-elf.h: (ASM_IDENTIFY_GCC): Define to nothing
15074 so the gcc2_compiled symbol doesn't confuse BeOS debuggers.
15076 2000-02-07 Zack Weinberg <zack@wolery.cumb.org>
15078 * cppfiles.c (deps_output): Count spacers in deps_column.
15080 2000-02-07 Neil Booth <NeilB@earthling.net>
15082 * cppinit.c (initialize_dependency_output): If there is no
15083 suffix, don't try to look for known suffixes. Use strrchr.
15084 (cpp_start_read): Remove duplicate initialization.
15086 Mon Feb 7 18:36:41 MET 2000 Jan Hubicka <jh@suse.cz>
15088 * calls.c (compute_argument_block_size): New argument
15089 preferred_stack_boundary.
15090 (expand_call): update cfun->preferred_stack_boundary, update call of
15091 compute_argument_block_size
15092 (emit_library_call): Increate cfun->preferred_stack_boundary
15093 to PREFERRED_STACK_BOUNDARY
15094 (emit_library_call_value): Likewise.
15095 * explow.c (allocate_dynamic_stack_spave): Likewise.
15096 * function.c (prepare_function_start): Set
15097 cfun->preferred_stack_boundary
15098 * function.h (struct function): Add preferred_stack_boundary field.
15099 * integrate.c (expand_inline_function): Update
15100 cfun->preferred_stack_boundary and cfun->stack_alignment_needed.
15101 (copy_rtx_and_substitute): Align frame to stack_alignment_needed only.
15102 * i386.c (compute_frame_size): Use cfun->preferred_stack_boundary.
15104 2000-02-06 Zack Weinberg <zack@wolery.cumb.org>
15106 * cpplib.c (my_strerror, cpp_error, cpp_error_with_line,
15107 cpp_error_from_errno, cpp_warning, cpp_warning_with_line,
15108 cpp_pedwarn, cpp_pedwarn_with_line,
15109 cpp_pedwarn_with_file_and_line): Move to cpperror.c.
15110 (cpp_print_file_and_line, v_cpp_error, v_cpp_warning,
15111 v_cpp_error_with_line, v_cpp_warning_with_line,
15112 cpp_message_from_errno, cpp_perror_with_name): Delete.
15114 * cpperror.c (cpp_print_containing_files): Take starting
15115 buffer as argument.
15116 (cpp_file_line_for_message): Rename to cpp_print_file_and_line.
15117 (v_cpp_message): Now called directly by all entry points.
15119 (cpp_pfatal_with_name, cpp_message): Delete.
15120 (cpp_notice_from_errno, cpp_ice): New functions.
15121 (cpp_notice): Is now for reporting error conditions, just
15122 without an associated file.
15123 (cpp_error, cpp_error_with_line): Don't do anything if
15124 opts->inhibit_errors is on.
15125 (cpp_pedwarn_with_file_and_line): Take column argument also.
15127 * cpplib.h: Update prototypes of exported functions.
15128 (struct cpp_options): Add inhibit_errors.
15130 * cppalloc.c, cppfiles.c: Use fprintf not cpp_notice for
15131 non-error messages. Include intl.h.
15133 * cppinit.c, cppmain.c: Likewise. Also, use
15134 cpp_notice_from_errno instead of cpp_perror_with_name or
15135 cpp_pfatal_with_name, and cpp_notice instead of cpp_message.
15137 * cppexp.c, cpphash.c, cppinit.c, cpplib.c: Use cpp_ice to
15138 report internal errors.
15140 * cpplib.c (do_define): Switch bcopy to memcpy.
15141 Give cpp_pedwarn_with_file_and_line a dummy column argument.
15143 * cpplib.c (copy_rest_of_line): Revert previous change: don't
15144 bail out early if we hit a line comment.
15146 2000-02-06 Richard Henderson <rth@cygnus.com>
15148 * flow.c (flow_delete_insn, make_edge, remove_edge): Export.
15149 * basic-block.h: Declare them.
15150 * emit-rtl.h (active_insn_p): New.
15151 (next_active_insn, prev_active_insn): Use it.
15152 * rtl.h: Declare it.
15153 * function.c (emit_return_into_block): New.
15154 (thread_prologue_and_epilogue_insns): Insert return insns instead
15155 of epilogues when possible.
15156 * jump.c (jump_optimize_1): Remove code to insert a return insn
15157 on the fallthru to the exit block.
15159 * i386.c (ix86_can_use_return_insn_p): Fail for large poped args
15160 and for non-empty stack frames.
15161 * i386.md (return): Expand to return-pop as needed.
15163 2000-02-06 Richard Henderson <rth@cygnus.com>
15165 * simplify-rtx.c (simplify_relational_operation): Canonicalize
15166 constant to op1 for testing.
15168 2000-02-06 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
15170 * config/c4x/c4x.md (*ldi_on_overflow): New pattern.
15171 (fixuns_truncqfqi2): Use it.
15173 2000-02-06 Richard Henderson <rth@cygnus.com>
15175 * i386.c (ix86_agi_dependant): Handle pro_epilogue_adjust_stack
15176 as a TYPE_LEA insn.
15178 * i386.md (widening and peepholes): Mask the constant instead of
15181 2000-02-05 Zack Weinberg <zack@wolery.cumb.org>
15183 * cppfiles.c (read_and_prescan) [case SPECCASE_QUESTION]: Bump
15184 input pointer before possibly branching off to the backslash
15186 * cpphash.c (macroexpand): Correctly delete \r escapes when
15187 stringifying parameters.
15188 * cpplib.c (copy_rest_of_line): Go directly to skip_block_comment
15189 if we can; bail out early if we hit a line comment.
15190 (handle_directive): Treat '# 123' in an .S file just like
15191 '# <punctuation>'. Discard the shifted '#' if we hit '#\n'.
15192 Return 1 for '# not_a_directive'.
15193 (get_directive_token): Pop macro buffers here, so that
15194 cpp_get_token can't sneakily move past a newline.
15196 (cpp_get_token): goto randomchar if handle_directive returns 0.
15198 * cppalloc.c: Update copyright.
15199 * cpplib.c: Merge all the static function prototypes into one
15201 * cpplib.h: Remove #if 0 block.
15203 * cpperror.c: Remove #ifdef EMACS block.
15204 * cppmain.c: Likewise.
15205 * cpphash.c: Remove #if 0 blocks.
15206 * cppinit.c: Remove #if 0 blocks, and the -lint option.
15207 * cpplib.c: Remove #if 0 blocks and code referencing
15208 pcp_inside_if or for_lint. Remove duplicate error message.
15209 Fix error messages for #else after #else or #elif. Reformat.
15210 Remove archaic TODO list.
15211 * cpplib.h: Remove pcp_inside_if and for_lint flags.
15213 2000-02-05 Zack Weinberg <zack@wolery.cumb.org>
15215 * i386/osf1elf.h: Add missing backslash to multiline string.
15217 2000-02-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15219 * longlong.h [sparc] (udiv_qrnnd): Avoid stringifying macro arg.
15221 2000-02-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15223 * Makefile.in (c-common.o): Depend on $(EXPR_H).
15225 * c-common.c: Include expr.h.
15227 * c-pragma.c (mark_align_stack): Add prototype.
15229 * caller-save.c (add_stored_regs): Likewise.
15231 * combine.c (record_promoted_value): Likewise.
15233 * i386.c (ix86_sched_reorder_pentium, ix86_sched_reorder_ppro):
15236 * cppinit.c (new_pending_define): Likewise.
15238 * cpplib.c (skip_block_comment, skip_line_comment): Likewise.
15240 * dwarf2out.c (save_rtx, splice_child_die, reverse_die_lists,
15241 AT_class, AT_flag, AT_int, AT_unsigned, AT_string, AT_ref, AT_loc,
15242 AT_addr, AT_lbl, get_AT_ref, free_AT, free_die, local_scope_p,
15243 class_scope_p): Likewise.
15245 * dwarf2out.h (dwarf2out_set_demangle_name_func,
15246 dwarf2out_add_library_unit_info): Likewise.
15248 * ggc.h (ggc_page_print_statistics): Likewise.
15250 * haifa-sched.c (propagate_deps): Likewise.
15252 * reg-stack.c (next_flags_user, record_label_references): Likewise.
15254 * rtl.h (set_stack_check_libfunc): Likewise.
15256 * toplev.h (set_fatal_function): Likewise.
15258 * toplev.c (set_fatal_function): Delete prototype.
15260 * diagnostic.c: Deconstify functions returning malloc'ed ptrs.
15262 2000-02-05 Geoff Keating <geoffk@cygnus.com>
15264 * ginclude/ppc-asm.h (FUNC_START): Use USER_LABEL_PREFIX.
15265 (FUNC_END): Likewise.
15267 2000-02-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
15269 * caller-save.c: Include tm_p.h.
15271 2000-02-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
15273 * Makefile.in (libgcc.a): Add $(LIBGCC1) to libgcc.a after $(LIBGCC2).
15275 2000-02-04 Neil Booth <NeilB@earthling.net>
15277 * cccp.c (main): Check 'dir' for a NULL pointer before passing
15280 2000-02-04 Zack Weinberg <zack@wolery.cumb.org>
15282 * recog.h: Remove NO_MD_PROTOTYPES ifdefs.
15283 * genflags.c: Use the max_operand_1 logic from genemit.c to
15284 calculate how many arguments gen_insn prototypes have. Remove
15285 NO_MD_PROTOTYPES ifdefs from the generated file.
15286 * genoutput.c: Don't define NO_MD_PROTOTYPES in the generated
15287 file. Cast gen_insn initializers to insn_gen_fn.
15288 * config/alpha/vms.h: Don't define NO_MD_PROTOTYPES.
15289 * gcc.texi: Remove documentation of NO_MD_PROTOTYPES.
15291 2000-02-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15293 * fixinc/Makefile.in (HDR): Add machname.h.
15296 2000-02-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
15298 * config/c4x/c4x.h (c4x_compare_op0, c4x_compare_op1): Move ...
15299 (c4x_regclass_map, c4x_caller_save_map, c4x_rpts_cycles): Ditto.
15300 (c4x_cpu_version): Ditto.
15301 * config/c4x/c4x-protos.h: ... here.
15303 2000-02-04 Jason Merrill <jason@casey.cygnus.com>
15305 * dwarf2out.c (add_abstract_origin_attribute): Don't call
15306 gen_abstract_function on our context if we're a nested function.
15308 2000-02-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
15310 * config/c4x/c4x.md (fixuns_truncqfqi2): Rewrite.
15311 * config/c4x/libgcc.S (ufix_truncqfhi2n): Fix.
15313 2000-02-04 Bruce Korb <bkorb@gnu.org>
15315 * fixinc/genfixes(machname.h):
15316 Move the functionality from gen-machine.h into this file.
15317 UNdef MN_NAME_PAT if there are no names to change.
15318 Also, be a little kinder when AutoGen is not present.
15320 * fixinc/Makefile.in(machname.h):
15321 Change the generation rule to use genfixes.
15323 * fixinc/fixfixes.c(machine_name):
15324 machine_name_fix's functionality now dependent upon whether
15325 MN_NAME_PAT is defined.
15327 * fixinc/fixtests.c(machine_name):
15330 * fixinc/fixlib.c(mn_get_regexps): conditional on definition
15333 * fixinc/fixlib.h(mn_get_regexps):
15336 * fixinc/gen-machine.h: DELETED
15338 2000-02-04 Jan Hubicka <jh@suse.cz>
15339 Richard Henderson <rth@cygnus.com>
15341 * i386.c (SAVE_REGS_FIRST): Remove.
15342 (ix86_initial_elimination_offset): Handle only SAVE_REGS_FIRST mode.
15343 (ix86_compute_frame_size): Likewise.
15344 (ix86_expand_prologue): Likewise. Use pro_epilogue_adjust_stack.
15345 (ix86_emit_restore_regs): Remove.
15346 (ix86_emit_epilogue_esp_adjustment): Use pro_epilogue_adjust_stack
15347 when a frame pointer is in use.
15348 (ix86_expand_epilogue): Handle only SAVE_REGS_FIRST mode. Use mov
15349 instead of pop to restore a register when profitable; emit leave
15351 (ix86_attr_length_default): Handle pro_epilogue_adjust_stack
15352 as a TYPE_LEA insn.
15353 (ix86_adjust_cost): Handle pro_epilogue_adjust_stack as TYPE_ALU.
15354 * i386.md (prologue_allocate_stack): Remove.
15355 (epilogue_deallocate_stack): Remove.
15356 (pro_epilogue_adjust_stack): New.
15358 2000-02-04 Richard Henderson <rth@cygnus.com>
15360 * function.c (diddle_return_value): Rework to use a callback function.
15361 Use current_function_return_rtx if it's been set up.
15362 (do_clobber_return_reg, clobber_return_register): New.
15363 (do_use_return_reg, use_return_register): New.
15364 (expand_function_end): Use them.
15365 * stmt.c (expand_null_return): Likewise.
15366 * function.h: Declare them.
15367 * flow.c (mark_regs_live_at_end): Use diddle_return_value.
15368 (mark_reg): Change arguments as appropriate for callback.
15369 * integrate.c (expand_inline_function): Revert 19 Jan change.
15371 Fri Feb 4 20:25:42 2000 Hans-Peter Nilsson <hp@bitrange.com>
15373 * tm.texi (Values in Registers): Fix typo: "fo" "for".
15374 (Misc): Say the scheduler, not the Haifa scheduler.
15376 2000-02-04 Clinton Popetz <cpopetz@cygnus.com>
15378 * jump.c (mark_jump_label): Add in_mem param, check SYMBOL_REFs
15379 when in_mem is set. Update all callers.
15381 2000-02-04 Richard Henderson <rth@cygnus.com>
15383 * i386/openbsd.h (INT_ASM_OP): Define.
15385 Fri Feb 4 10:51:30 2000 Hans-Peter Nilsson <hp@bitrange.com>
15387 * tm.texi: Fix various typos.
15389 Thu Feb 3 17:17:32 2000 Steve Ellcey <sje@cup.hp.com>
15391 * config/pa/pa-hpux11.h (LIB_SPEC): Correct typo in !p case.
15392 (MD_STARTFILE_PREFIX_1): New macro.
15394 Thu Feb 3 15:08:13 MET 2000 Jan Hubicka <jh@suse.cz>
15396 * i386.md (movstrsi, clrstrsi): Support variable sized copies, align
15397 destination when needed.
15398 (strmovsi, strsetsi): New expander.
15399 (strmovsi_1, strsetsi_1): New pattern.
15400 * i386.h (MASK_NO_ALIGN_STROP, MASK_INLINE_ALL_STROP,
15401 TARGET_ALIGN_STRINGOPS, TARGET_INLINE_ALL_STRINGOPS): New macros.
15402 (TARGET_SWITCHES) Add align-stringops and inline-all-stringops.
15403 * invoke.texi (align-stringops, inline-all-stringops): Document.
15405 Wed Feb 2 23:04:47 2000 Krister Walfridsson <cato@df.lth.se>
15407 * i386/netbsd.h (INT_ASM_OP): Define.
15409 2000-02-02 Zack Weinberg <zack@wolery.cumb.org>
15411 * cpplib.h (cpp_reader): Add new flag, no_directives.
15412 * cpphash.c (macarg): Set it.
15413 * cpplib.c (handle_directive): If no_directives is on and we
15414 find a directive, issue an error and discard the line.
15416 Wed Feb 2 13:07:10 2000 Jim Wilson <wilson@cygnus.com>
15418 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Delete 'E' check for
15419 FP constants. Add ! TARGET_FPU check for FP constants.
15421 2000-02-02 Clinton Popetz <cpopetz@cygnus.com>
15423 * flow.c (find_basic_blocks): Don't kill label_value_list
15425 (cleanup_cfg): Kill it here.
15427 Wed Feb 2 08:12:30 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15429 * expr.c (store_field): Ensure ALIGN is no stricter than the
15432 2000-02-02 Richard Henderson <rth@cygnus.com>
15434 * jump.c (delete_insn): Partially revert 19 Jan change;
15435 don't convert unused code labels to notes at -O0.
15437 2000-02-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
15439 * toplev.c (rest_of_compilation): Run rebuild_jump_labels after
15440 split_all_insns to recreate REG_LABEL notes for flow2 pass.
15442 2000-02-01 Richard Henderson <rth@cygnus.com>
15444 * i386.c (general_no_elim_operand): New.
15445 (nonmemory_no_elim_operand): New.
15446 (ix86_expand_move): Copy eliminable operands before a push.
15447 * i386-protos.h: Declare new functions.
15448 * i386.h (CAN_ELIMINATE): Simplify.
15449 (PREDICATE_CODES): Update.
15450 * i386.md (push insns): Don't allow eliminable register operands.
15452 2000-02-01 Richard Henderson <rth@cygnus.com>
15454 * flow.c (mark_regs_live_at_end): Follow expand_function_end and
15455 replace BLKmode with DECL_RTL's mode.
15457 2000-02-01 Zack Weinberg <zack@wolery.cumb.org>
15459 * frame.c (find_fde): Convert for loop to do-while so compiler
15460 sees it's always executed at least once.
15461 * libgcc2.c (BBINBUFSIZE): Kill.
15462 (__bb_init_prg): Use fgets.
15463 (__bb_exit_trace_func): Don't paste strings.
15464 * unroll.c (unroll_loop): Initialize unroll_type, not
15465 unroll_number, and tweak logic to match.
15467 * i386.c (ix86_expand_int_movcc): Add explicit 'return 0' in
15469 (ix86_flags_dependant): Likewise. Disentangle control flow.
15470 (ix86_sched_reorder): Break guts out to
15471 ix86_sched_reorder_pentium and ix86_sched_reorder_ppro.
15472 (ix86_sched_reorder_ppro): Initialize pair2 and insnp before
15475 * i386.h (MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Don't
15476 use string concatenation. Don't save and restore esi.
15478 * fixinc/Makefile.in (fixincl.sh): Don't depend on inclhack.def.
15479 (machname.h): Remove script to separate file. Use two-step
15480 sequence so target is not created if script fails.
15481 * fixinc/gen-machname.h: New file. Handle case where no non-reserved
15482 identifiers are defined.
15483 * fixinc/fixlib.c (mn_get_regexps): Return a flag: if MN_NAME_PAT is
15484 an empty string, machine_name doesn't need to do anything at
15486 (is_cxx_header): Add more cases to regexp.
15487 * fixinc/fixlib.h: Update prototype.
15488 * fixinc/fixtests.c, fixinc/fixfixes.c: Update callers of
15490 * fixinc/fixincl.c: Define NO_BOGOSITY.
15492 * fixinc/inclhack.def (no_double_slash, else_endif_label): Ifdef out.
15493 (hp_sysfile): Add missing comma.
15494 (math_exception): Put the wrapper ifdefs at the beginning and
15495 the end of the file.
15496 * fixinc/fixincl.x, fixinc/inclhack.sh: Regenerate.
15498 2000-02-01 Richard Henderson <rth@cygnus.com>
15500 * sparc.c (fp_zero_operand): Turn into a normal predicate.
15501 Use CONST0_RTX. Update all callers.
15502 * sparc.h, sparc-protos.h: Update accordingly.
15503 * sparc.md (fp mov insns): Use fp_zero_operand directly
15506 Wed Feb 2 02:59:45 2000 Hans-Peter Nilsson <hp@bitrange.com>
15508 * tm.texi (Values in Registers): Fix typo in HARD_REGNO_NREGS
15511 2000-02-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15513 * Makefile.in (specs.ready): New target.
15514 (fixinc.sh): Depend on `specs.ready' instead of `specs'.
15516 2000-02-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15518 * fixinc.irix: Use unique filenames for writing into /tmp,
15519 * fixinc.ptx: Likewise.
15520 * fixinc.sco: Likewise.
15521 * fixinc.svr4: Likewise.
15522 * fixinc.winnt: Likewise.
15524 2000-02-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15526 * tsystem.h: New file.
15528 * Makefile.in (libgcc2.a, stmp-multilib, crtbegin.o, crtend.o,
15529 s-crtS): Depend on tsystem.h.
15531 * crtstuff.c: Include tsystem.h.
15532 * frame.c: Likewise.
15533 * libgcc2.c: Likewise.
15535 Tue Feb 1 19:53:27 CET 2000 Jan Hubicka <jh@suse.cz>
15537 * builtins.c (expand_builtin_memset): Expand for variable sized
15540 2000-02-01 David Billinghurst <David.Billinghurst@riotinto.com.au>
15542 * config/mips/iris6.h (SUBTARGET_ASM_SPEC) : Default ISA based
15545 Tue Feb 1 00:57:40 2000 Hans-Peter Nilsson <hp@bitrange.com>
15547 * dwarfout.c (SHORT_TYPE_SIZE): Correct default.
15549 * tm.texi (Type Layout): Correct entry for CHAR_TYPE_SIZE.
15551 2000-01-31 Chandra Chavva <cchavva@cygnus.com>
15553 * combine.c (try_combine) [HAVE_cc0]: Trying to check the missed
15554 case 3->2 combining (combining with splitting) in which 2 is CC0
15555 setter/user and 3 is user. The rest of cases 2->1 and 3->2 are
15556 checked at the begining of the function with the aid of calling
15557 function 'can_combine_p'.
15559 2000-01-31 Dave Brolley <brolley@redhat.com>
15561 * cccp.c (struct argdata): Redeclare 'newlines' field as 'int'.
15563 2000-01-31 Jason Merrill <jason@casey.cygnus.com>
15565 * jump.c (redirect_jump): Move a NOTE_INSN_FUNCTION_END to the
15568 2000-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15570 * gansidecl.h (PROTO, VPROTO, PVPROTO): Delete macros.
15572 * sbitmap.h (sbitmap_first_set_bit, sbitmap_last_set_bit):
15575 2000-01-30 Zack Weinberg <zack@wolery.cumb.org>
15577 * i386/386bsd.h, i386/beos-pe.h, i386/bsd386.h, i386/crtdll.h,
15578 i386/cygwin.h, i386/dgux.h, i386/djgpp-rtems.h, i386/djgpp.h,
15579 i386/freebsd.h, i386/gnu.h, i386/i386-aout.h, i386/i386-coff.h,
15580 i386/i386-interix.h, i386/i386elf.h, i386/linux.h, i386/lynx-ng.h,
15581 i386/lynx.h, i386/mach.h, i386/mingw32.h, i386/moss.h,
15582 i386/netbsd.h, i386/next.h, i386/openbsd.h, i386/osf1elf.h,
15583 i386/ptx4-i.h, i386/rtems.h, i386/rtemself.h, i386/sco.h,
15584 i386/sequent.h, i386/sun.h, i386/sysv4.h, i386/uwin.h, i386/vsta.h,
15585 i386/vxi386.h, i386/win-nt.h, i386/win32.h:
15586 Remove -Di386 -Acpu(i386) -Amachine(i386) from CPP_PREDEFINES.
15588 * i386/osf1elf.h, i386/scodbx.h, i386/seq-sysv3.h, i386/sysv5.h:
15589 Add %(cpp_cpu) to CPP_SPEC.
15591 * i386/osf1elf.h, i386/osfelf.h, i386/osfrose.h:
15592 Add %(cc1_cpu) to CC1_SPEC.
15594 2000-01-28 Ulrich Drepper <drepper@redhat.com>
15596 * c-decl.c (c_decode_option): Accept optional numeric argument to
15597 -Wformat and set warn_format.
15598 * c-common.c: Don't emit warning about non-constant printf format
15599 string unless warn_format > 1.
15601 2000-01-30 Richard Henderson <rth@cygnus.com>
15603 * alpha.md (return_internal): Allow after reload only.
15605 2000-01-30 Richard Henderson <rth@cygnus.com>
15607 * i386.c (ix86_compute_frame_size): Omit padding1 if the
15608 local frame size is zero.
15610 2000-01-30 Richard Henderson <rth@cygnus.com>
15612 * alpha.c (alpha_expand_epilogue): Don't emit the return insn.
15613 * alpha.h (EPILOGUE_USES): New. Mark $26 live.
15614 * alpha.md (return): Turn into an expander.
15615 (return_internal): Don't use $26.
15616 (epilogue): Emit the return insn.
15618 2000-01-30 Richard Henderson <rth@cygnus.com>
15620 * alpha.md (negtf2, abstf2): Fix word order thinko.
15621 (extendsftf2): New.
15622 (trunctfsf2): Avoid intermediate rounding errors.
15624 2000-01-30 Zack Weinberg <zack@wolery.cumb.org>
15626 * cppfiles.c (find_position): Drop 'colp' argument, return the
15628 (read_and_prescan): Adjust to match. Don't ever manipulate
15629 line or line_base except via find_position.
15631 2000-01-29 Zack Weinberg <zack@wolery.cumb.org>
15633 * c-parse.in: Apply Ulrich's changes from c-parse.y.
15634 * c-parse.y, objc/objc-parse.y, c-parse.c, objc/objc-parse.c:
15637 2000-01-29 Zack Weinberg <zack@wolery.cumb.org>
15639 * cpperror.c (cpp_file_line_for_message): If 'line' is zero,
15640 just print "<command line>". If 'filename' is null or an
15641 empty string, print "<stdin>" for the filename.
15642 * cpplib.c (do_define): Don't print the 'location of the
15643 previous definition' message if we're still parsing the
15645 (cpp_pedwarn_with_file_and_line): Always call
15646 cpp_file_line_for_message.
15648 2000-01-29 Mark Mitchell <mark@codesourcery.com>
15650 * flow.c (mark_regs_live_at_end): Fix typo.
15652 2000-01-28 Ulrich Drepper <drepper@redhat.com>
15654 * c-common.c: Adjust variable names, comments, help strings to c99.
15655 * c-lex.c: Likewise.
15656 * c-parse.y: Likewise.
15657 * c-tree.h: Likewise.
15658 * cccp.c: Likewise.
15659 * cpplib.h: Likewise.
15660 * c-decl.c: Likewise. Recognize options with names "*99" as well.
15661 * cppinit.c: Likewise.
15663 2000-01-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
15665 * c4x.h (INIT_TARGET_OPTABS): Add all missing local optab entries.
15666 * c4x.c: Define the optab rtx values.
15667 (c4x_add_gc_roots): Add the ggc roots for these optab rtx values.
15668 (c4x_emit_libcall): Use new optab rtx values.
15669 (c4x_emit_libcall3): Likewise.
15670 (c4x_emit_libcall_mulhi): Likewise.
15671 * c4x-protos.h: Add prototypes for optab rtx values and change
15672 prototypes for above c4x_emit_libcall functions.
15674 2000-01-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
15676 * c4x.c (c4x_output_ascii): Restrict line length of output when TI
15678 (c4x_function_prologue): Use regnames intead of float_reg_names when
15680 (c4x_function_epilogue): Likewise.
15681 (c4x_print_operand): Likewise.
15682 * c4x.h (HOST_WIDE_INT_PRINT_HEX): Redefine.
15683 * c4x.md (set_high): Disable for TARGET_TI.
15685 2000-01-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
15687 * c4x.h (PREFERRED_RELOAD_CLASS): Change to restrict the reloading
15688 of framepointer + constant to ADDR_REGS class.
15689 * c4x.md (addqi3, addqi3_noclobber_reload): Update.
15690 * c4x.c (std_or_reg_operand): New function.
15691 * c4x-protos.h (std_or_reg_operand): Prototype it.
15693 2000-01-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
15695 * t-c4x: Change qi,qf,di,df into si,sf,hi,hf to generate same
15696 object names as libgcc2.c.
15697 * libgcc.S: Use newly defined names.
15699 Fri Jan 7 19:48:04 CET 2000 Jan Hubicka <jh@suse.cz>
15700 * sbitmap.c (sbitmap_first_set_bit, sbitmap_last_set_bit): New
15702 * sbitmap.h (sbitmap_first_set_bit, sbitmap_last_set_bit): Declare.
15703 * basic_block.h (FLOW_LOOP_FIRST_BLOCK): New macro.
15704 (FLOW_LOOP_LAST_BLOCK): Likewise.
15706 2000-01-21 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
15708 * basic-block.h (struct loop): New fields 'first' and 'last'.
15709 * flow.c (flow_loops_find): Compute loop->first and loop->last.
15710 (flow_loops_dump): Use loop->first to check for NOTE_INSN_LOOP_BEG
15711 and loop->last to check for NOTE_INSN_LOOP_END.
15713 Fri Jan 28 10:57:58 2000 Jason Eckhardt <jle@cygnus.com>
15715 * predict.c (estimate_probability): Use the new FIRST and LAST fields
15716 of the loop descriptor rather than HEADER and LATCH. Also added
15717 missing break statements as well making some coding style modifications
15718 as suggested by Michael Hayes.
15720 2000-01-28 Richard Henderson <rth@cygnus.com>
15722 * flow.c (find_basic_blocks): Remove do_cleanup argument.
15723 Break out that code ...
15724 (cleanup_cfg): ... here.
15725 (commit_one_edge_insertion): Detect a return instruction being
15726 emitted to an edge. Emit a barrier following; clear fallthru.
15727 (commit_edge_insertions): Verify CFG consistency.
15728 * function.c (expand_function_start): Kill unused variable.
15729 (expand_function_end): Likewise.
15730 (thread_prologue_and_epilogue_insns): Use insert_insn_on_edge
15731 to insert the epilogue.
15733 * gcse.c (gcse_main): Adjust for find_basic_blocks change.
15734 (delete_null_pointer_checks): Likewise.
15735 * output.h: Likewise.
15736 * reg-stack.c (reg_to_stack): Likewise.
15737 * toplev.c (rest_of_compilation): Likewise. Run
15738 thread_prologue_and_epilogue_insns after rebuilding the CFG.
15740 2000-01-28 Richard Henderson <rth@cygnus.com>
15742 * Makefile.in (flow.o): Revert 24 Jan change.
15743 * flow.c (mark_regs_live_at_end): Likewise. Force BLKmode
15744 FUNCTION_VALUE result to DECL_RESULT's mode.
15746 * haifa-sched.c (schedule_insns): Don't recompute reg info
15749 2000-01-28 Zack Weinberg <zack@wolery.cumb.org>
15751 * configure.in: Make --enable-cpplib the default.
15752 * configure: Regenerate.
15753 * gcc.dg/990119-1.c: No longer expected to fail.
15755 2000-01-28 Bernd Schmidt <bernds@cygnus.co.uk>
15757 * jump.c (jump_optimize_1): Delete an optimization that is also done
15758 by merge_blocks in flow.
15760 2000-01-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15762 * diagnostic.c (build_message_string, output_printf,
15763 line_wrapper_printf): Add ATTRIBUTE_PRINTF_*.
15764 (build_location_prefix): Fix non-literal format string.
15766 2000-01-27 Richard Henderson <rth@cygnus.com>
15768 * alpha.md (trunctfsf2): New.
15770 2000-01-27 Andrew Hobson <ahobson@eng.mindspring.net>
15772 * configure.in (alpha-dec-osf5): Enable MASK_SUPPORT_ARCH.
15774 2000-01-27 Zack Weinberg <zack@wolery.cumb.org>
15776 * cppinit.c (cpp_handle_option): Recognize C++ comments under
15778 * cpplib.c (skip_block_comment, skip_line_comment): Split code
15780 (skip_comment) ... here. Permit C++ comments in system
15781 headers always. Warn about C++ comments in user code under
15782 -std=gnu89 -pedantic.
15783 (copy_comment): Use skip_comment.
15784 (cpp_skip_hspace, cpp_get_token): skip_comment can no longer
15786 (consider_directive_while_skipping, do_else, do_endif): Call
15787 validate_else unconditionally.
15788 (validate_else): Check CPP_PEDANTIC here. Accept non-comment
15789 text after the conditional in a system header.
15790 * cpplib.h (struct cpp_buffer): Add flag
15791 warned_cplusplus_comments.
15793 2000-01-27 Geoffrey Keating <geoffk@cygnus.com>
15795 * emit-rtl.c (unshare_all_rtl): Unshare virtual parameters too.
15796 Use unshare_all_rtl_1.
15797 (unshare_all_rtl_again): New function.
15798 (unshare_all_rtl_1): New function split out of unshare_all_rtl.
15800 * function.c (purge_addressof_1): Use unshare_all_rtl_again
15801 rather than resetting the 'used' flags ourself.
15803 * toplev.c (rest_of_compilation): Add current_function_decl
15804 to the unshare_all_rtl call.
15805 * tree.h: Prototype unshare_all_rtl.
15806 * rtl.h: Prototype unshare_all_rtl_again here.
15808 2000-01-27 Geoffrey Keating <geoffk@cygnus.com>
15810 * genoutput.c (output_prologue): Include ggc.h in generated
15812 * Makefile.in (insn-output.o): Depends on ggc.h.
15814 2000-01-27 Ian Dall <ian@sibyl.beware.dropbear.id.au>
15815 Hans-Peter Nilsson <hp@bitrange.com>
15817 * ns32k/xm-ns32k.h (memcpy, memset, memcmp): Delete.
15818 Remove redundant include of xm-ns32k.h.
15819 * ns32k/xm-genix.h (memcpy, memset, memcmp): Add definitions.
15820 Remove redundant include of xm-ns32k.h.
15821 * ns32k/xm-netbsd.h (memcpy, memset, memcmp): No longer undefine.
15822 Remove redundant include of xm-ns32k.h.
15823 * ns32k/netbsd.h (TARGET_DEFAULT): Enable multiply-add instructions.
15825 * ns32k/ns32k.h: Update comment on multiply-add instructions.
15826 (TARGET_SWITCHES): Add documentation strings.
15827 (DWARF_FRAME_REGNUM): Override default definition.
15828 (REG_CLASS_CONTENTS): Add comments.
15829 (SUBSET_P): Format to reduce line length.
15830 (SMALL_REGISTER_CLASSES): Make a run time option.
15831 (GO_IF_NONINDEXED_ADDRESS): Reformat.
15832 (GO_IF_LEGITIMATE_ADDRESS): Ensure that cfun is non NULL before
15833 dereferencing it. Braces to avoid "ambiguous else" were misplaced.
15834 (regclass_map): fix typo in comment.
15835 * ns32k/ns32k.c: Add spaces before parentheses for consistant style.
15836 Prefer gen_rtx_FOO(...) to gen_rtx(FOO,...).
15837 (trace, reg_or_mem_operand): Delete, unused function.
15838 (calc_address_cost): Small offsets are cheaper than large ones.
15839 (expand_block_move): Generate more efficient code when bytes is a
15840 known at compile time.
15841 * ns32k/ns32k.md: Alternate constraints for multiply-add instructions.
15842 (udivmodsi4, udivmodhi4, udivmodqi4): Use nonimmediate_operand
15843 instead of reg_or_mem_operand.
15845 * ns32k/ns32k.md: Use nonimmediate_operand or stricter for outputs,
15846 not general_operand. Similarly use "=rm" or stricter, not "=g".
15847 For input operands, use stricter constraints than "g" if not
15848 general_operand. Similarly use stricter predicate than
15849 "general_operand" when stricter constraints than "g" are present,
15850 except for matching constraints.
15851 (movstrsi): Use "memory_operand" for operands 0 and 1.
15852 (truncsiqi2, truncsihi2, trunchiqi2): Remove.
15853 (udivmoddisi4_internal): Use nonimmediate_operand for operand 0,
15854 not reg_or_mem_operand.
15855 (udivmoddisi4): Ditto.
15856 Use nonimmediate_operand for operand 1, not reg_or_mem_operand.
15857 Use nonimmediate_operand for operand 3, not register_operand.
15858 (udivmoddiqi4_internal): Use register_operand for operand 1, not
15859 reg_or_mem_operand.
15861 2000-01-27 Fred Fish <fnf@be.com>
15863 * gthr-posix.h: Fix typo; compatibily -> compatibility.
15864 * gthr-single.h: Likewise.
15865 * gthr-solaris.h: Likewise.
15866 * gthr-vxworks.h: Likewise.
15867 * gthr-win32.h: Likewise.
15868 * gthr.h: Likewise.
15870 2000-01-27 Zack Weinberg <zack@wolery.cumb.org>
15872 * cppinit.c: Add " (cpplib)" to end of string printed by
15875 2000-01-27 Richard Henderson <rth@cygnus.com>
15877 * alpha.c (alpha_emit_conditional_move): Use VOIDmode when
15878 testing for a signed comparison.
15879 (alpha_emit_floatuns): New.
15880 * alpha-protos.h: Declare it.
15881 * alpha.md (floatunsdisf2, floatunsdidf2): New.
15882 (extendsfdf2): Tidy.
15884 2000-01-27 Jakub Jelinek <jakub@redhat.com>
15886 * config/sparc/linux64.h (CC1_SPEC): If compiling -m32 with -g but
15887 no -g option specifying debugging format, default to -gstabs+.
15889 Wed Jan 26 22:19:14 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
15891 * calls.c (special_function_p): New argument fork_or_exec.
15892 (expand_call): When profile_arc_flag is set and the function
15893 is in the fork_or_exec group, call __bb_fork_func first.
15894 * libgcc2.c, _bb module (__bb_fork_func): New function.
15895 (__bb_exit_func): If fcntl F_SETLKW is available, use it to lock
15897 * config/svr4.h (TARGET_HAS_F_SETLKW): Define.
15898 * tree.h (special_function_p): Update prototype.
15900 2000-01-26 Richard Henderson <rth@cygnus.com>
15902 * alpha.c (alpha_split_tfmode_pair): New.
15903 * alpha-protos.h: Declare it.
15904 * alpha.md (abstf2, negtf2): New.
15905 (movtf insn): Add input G constraint.
15906 (movtf splitter): Use alpha_split_tfmode_pair.
15908 2000-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15910 * i386/cygwin.h: PROTO -> PARAMS.
15912 2000-01-26 Jakub Jelinek <jakub@redhat.com>
15914 * config/sparc/sparc.c (sparc_emit_float_lib_cmp): Handle
15915 TARGET_ARCH32 again. Handle ORDERED, UN* and LTGT comparisons
15916 using _Qp_cmp/_Q_cmp and testing the return value.
15917 (print_operand): Call reverse_condition_maybe_unordered if
15918 we are handling CCFPmode or CCFPEmode.
15919 Handle ORDERED, UN* and LTGT comparisons.
15920 * config/sparc/sparc.md (cmptf): Use even on TARGET_ARCH32
15921 if not TARGET_HARD_QUAD.
15922 (seq, sne, sgt, slt, sge, sle, beq, bne, bgt, blt, bge, ble,
15923 bunordered, bordered, bungt, bunlt, buneq, bunge, bunle, bltgt):
15924 Call sparc_emit_float_lib_cmp even on TARGET_ARCH32.
15925 Adjust gen_b* calls so that they reflect return comparison of
15926 sparc_emit_float_lib_cmp.
15928 2000-01-26 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
15930 * config/alpha/alpha.c (alpha_emit_xfloating_cvt): Do not assume
15931 incoming operands array is large enough for one more operand.
15932 (alpha_emit_xfloating_arith): Likewise.
15934 2000-01-25 Zack Weinberg <zack@wolery.cumb.org>
15936 * fixinc/Makefile.in (machname.h): SunOS 4 sed can't handle a
15937 file with one line and no trailing newline.
15938 Patch by Kaveh Ghazi <ghazi@caip.rutgers.edu>.
15939 * fixinc/fixtests.c (machine_name_test): Fix fencepost error
15940 checking if the match is on the line.
15941 * fixinc/gnu-regex.c: Provide regerror not __regerror.
15943 2000-01-25 Richard Henderson <rth@cygnus.com>
15945 * sparc.c (output_cbranch): Fix accidental squashing of the
15946 fp branch pre-delay nop.
15948 2000-01-25 Richard Henderson <rth@cygnus.com>
15950 * tree.def (UNNE_EXPR): Remove.
15951 * c-typeck.c (build_binary_op): Don't handle it.
15952 * expr.c (expand_expr, do_jump, do_store_flag): Likewise.
15954 * rtl.def (UNNE): Remove.
15956 * jump.c (reverse_condition): Update accordingly.
15957 (swap_condition): Likewise.
15958 (comparison_dominates_p): Handle unordered comparisons.
15959 (reverse_condition_maybe_unordered): New.
15960 * rtl.h (reverse_condition_maybe_unordered): Declare.
15962 * sparc.c (select_cc_mode): Update for UNNE/LTGT.
15963 (output_cbranch): Use reverse_condition_maybe_unordered and LTGT.
15964 * sparc.h (REVERSIBLE_CC_MODE): Always true. Update docs.
15965 * sparc.md (bltgt): New.
15967 2000-01-25 Nick Clifton <nickc@redhat.com>
15969 * emit-rtl.c (emit_insn): Only check machine class insns for
15970 improper emission of a RETURN.
15972 2000-01-25 Richard Henderson <rth@cygnus.com>
15974 * Makefile.in (flow.o): Depend on $(EXPR_H).
15975 * flow.c (mark_regs_live_at_end): Use hard_function_value, i.e.
15976 duplicate the structure of diddle_return_value for keeping regs live.
15978 2000-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
15980 * loop.c (current_loop_info): Delete.
15981 (consec_sets_invariant_p): Add loop argument, update callers.
15982 (get_condition_for_loop): Likewise.
15983 (count_nonfixed_reads, update_giv_derive): Likewise.
15984 (simplify_giv_expr, general_induction_var): Likewise.
15985 (consec_sets_giv, recombine_givs): Likewise.
15986 (move_movables): Delete loop_start and loop_end arguments,
15987 add loop argument, and update callers.
15988 (find_mem_givs, check_final_value): Likewise.
15989 (record_giv, maybe_eliminate_biv, maybe_eliminate_biv_1): Likewise.
15990 (loop_invariant_p): Rename from invariant_p, add loop argument, and
15992 (basic_induction_var): Add loop argument, delete loop_level argument,
15993 and update callers.
15994 * unroll.c (iteration_info): Delete loop_start and loop_end arguments,
15995 add loop argument, and update callers.
15996 (find_splittable_regs, find_splittable_givs): Likewise.
15997 (reg_dead_after_loop, loop_find_equiv_value): Likewise.
15998 (final_biv_value, final_giv_value, back_branch_in_range_p): Likewise.
15999 (biv_total_increment): Delete loop_start and loop_end arguments;
16001 (precondition_loop_p): Delete loop_start and loop_info arguments;
16003 * loop.h (get_condition_for_loop): Add loop argument.
16004 (biv_total_increment): Delete loop_start and loop_end arguments.
16005 (precondition_loop_p): Delete loop_start and loop_info arguments;
16007 (final_biv_value): Delete loop_start and loop_end arguments;
16009 (final_giv_value, back_branch_in_range_p): Likewise.
16011 2000-01-25 Gavin Romig-Koch <gavin@cygnus.com>
16013 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Fix for mips16.
16015 2000-01-25 Gavin Romig-Koch <gavin@cygnus.com>
16017 * Makefile.in (c-gperf.h) : Change the "See" pointer to
16018 point to the new "generated_files" doc.
16020 2000-01-25 Clinton Popetz <cpopetz@cygnus.com>
16022 * config/fp-bit.c (_unord_f2): Fix typo.
16024 2000-01-25 Zack Weinberg <zack@wolery.cumb.org>
16026 * c-common.c, c-decl.c, c-lang.c, c-lex.c, c-parse.in, c-pragma.c,
16027 c-typeck.c, objc/objc-act.c: Remove all references to obstack
16028 functions obsoleted by GC, such as push_obstacks_nochange,
16029 end_temporary_allocation, savealloc, saveable_tree_cons, etc.
16030 and code which existed only to decide whether or not to call
16031 them. Remove now-unused NESTED argument from start_function;
16032 all callers changed. Do not change behavior based on ggc_p.
16033 The use of the ixp_obstack in c-iterate.c and the util_obstack
16034 in objc/objc-act.c remain; these are not obsoleted by garbage
16036 * c-tree.h: Update prototype for start_function.
16038 * c-parse.y, c-parse.c, objc/objc-parse.c, objc/objc-parse.y: Rebuild.
16040 2000-01-25 Clinton Popetz <cpopetz@cygnus.com>
16042 * config/mips/mips.md (zero_extendsidi2_internal): Disable for
16045 2000-01-25 Richard Henderson <rth@cygnus.com>
16047 * sparc-protos.h (select_cc_mode): Declare.
16048 * sparc.c (select_cc_mode): New. Handle unordered compares.
16049 (output_cbranch): Always reverse via code change. Handle
16050 unordered compares. Factor tests and string updates.
16051 * sparc.h (SELECT_CC_MODE): Split out to select_cc_mode.
16052 (REVERSIBLE_CC_MODE): Also exclude CCFPmode.
16053 * sparc.md (bunordered, bordered): New.
16054 (bungt, bunlt, buneq, bunge, bunle): New.
16056 2000-01-25 Richard Henderson <rth@cygnus.com>
16058 * dwarf2out.c (dwarf2out_init): Use ggc_add_rtx_varray_root.
16059 * ggc-common.c (ggc_add_rtx_varray_root): New.
16060 (ggc_mark_rtx_varray): New.
16061 (ggc_mark_rtx_varray_ptr): New. Shift all ggc_mark_foo_ptr
16062 functions down below ggc_mark_foo.
16063 * ggc.h (ggc_add_rtx_varray_root, ggc_mark_rtx_varray): Declare.
16065 2000-01-25 Richard Henderson <rth@cygnus.com>
16067 * alpha.c (secondary_reload_class): Don't allocate a secondary
16068 for integral mode memories into FLOAT_REGS. Rearrange the more
16069 complicated memory expression inward.
16071 2000-01-25 Zack Weinberg <zack@wolery.cumb.org>
16073 * inclhack.def: Fixes to play nicer with FreeBSD, and
16074 corrections to comments.
16075 (cxx_unready): Add select expression.
16076 (irix_sockaddr): Add bypass expression.
16077 (machine_ansi_h_va_list): New fix.
16078 (stdio_va_list): No need to edit _BSD_VA_LIST_.
16079 Split out addition of "#include <stdarg.h>" to...
16080 (stdio_stdarg_h): ... here.
16081 (systypes_for_aix): Rename to systypes_stdlib_size_t. Apply
16082 to stdlib.h also. Do not munge _BSD_SIZE_T_.
16083 (sysz_stdlib_for_sun): Delete duplicate fix for unprotected
16085 (ultrix_ifdef): Tighten up select expression.
16087 * fixincl.tpl: Exorcise 'exesel'. Rewrite calculations of
16088 re_ct and max_mach to avoid use of shell. Make printed names
16089 match names in inclhack.def. Use static copyright date.
16090 Don't count c_test and test expressions as requiring regex_t
16091 slots. Add some commentary.
16092 * inclhack.tpl: Do not include the 'This script contains N
16093 fixup scripts' line if PROGRAM is defined. Use static
16096 2000-01-24 Jason Merrill <jason@casey.cygnus.com>
16098 * dwarf2out.c: include "varray.h", not dyn-string.h.
16099 (ASM_OUTPUT_DWARF2_ADDR_CONST, ASM_NAME_TO_STRING): Lose.
16100 (addr_const_to_string, addr_to_string): Lose.
16101 (ASM_OUTPUT_DWARF_ADDR_CONST): Copy from dwarfout.c.
16102 (struct dw_val_struct): val_addr is now an rtx.
16103 (add_AT_addr, AT_addr, free_AT, output_aranges): Adjust.
16104 (used_rtx_varray): New varray.
16105 (dwarf2out_init): Initialize it.
16106 (save_rtx): New fn.
16107 (mem_loc_descriptor, add_const_value_attribute): Call it instead of
16109 * arm/telf.h, arm/unknown-elf.h, mn10200.h, mn10300.h,
16110 sparc/sp64-elf.h: Remove definition of ASM_OUTPUT_DWARF2_ADDR_CONST.
16111 * Makefile.in (dwarf2out.o): Update dependencies.
16113 2000-01-24 Richard Henderson <rth@cygnus.com>
16115 * i386.c (i386_dwarf_output_addr_const): New.
16116 * i386.h (ASM_OUTPUT_DWARF_ADDR_CONST): New.
16118 * dwarf2out.c (mem_loc_descriptor): Call ASM_SIMPLIFY_DWARF_ADDR
16120 * dwarfout.c (output_mem_loc_descriptor): Likewise.
16121 * i386.c (i386_simplify_dwarf_addr): New.
16122 * i386.h (ASM_SIMPLIFY_DWARF_ADDR): New.
16124 Mon Jan 24 16:56:10 2000 Jim Wilson <wilson@cygnus.com>
16126 * dwarf2out.c (gen_struct_or_union_type_die): Set complete if
16127 TYPE_STUB_DECL is NULL.
16129 2000-01-24 Richard Henderson <rth@cygnus.com>
16131 * builtins.c (expand_tree_builtin): Move ...
16132 * c-common.c (expand_tree_builtin): ... here.
16134 2000-01-25 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
16136 * loop.h (LOOP_INFO): New accessor macro.
16137 * basic-block.h (struct loop): Rename field `info' to `aux'.
16138 * loop.c (scan_loop): Replace loop->info with LOOP_INFO (loop).
16139 (prescan_loop, strength_reduce, check_dbra_loop, insert_bct): Likewise.
16140 * unroll.c (loop_iterations, unroll_loop): Likewise.
16142 2000-01-24 Christopher Faylor <cgf@cygnus.com>
16144 * config/i386/t-cygwin: Accomodate new winsup directory layout
16145 when searching for include files.
16147 2000-01-24 Richard Henderson <rth@cygnus.com>
16149 * rtl.def: Add unordered fp comparisions.
16150 * tree.def: Likewise.
16151 * tree.h: Add ISO C 9x unordered fp comparision builtins.
16153 * builtins.c (expand_tree_builtin): New function.
16154 * c-typeck.c (build_function_call): Use it.
16155 (build_binary_op): Support unordered compares.
16156 * c-common.c (c_common_nodes_and_builtins): Add unordered compares.
16158 * combine.c (known_cond): Handle reverse_condition returning UNKNOWN.
16159 (reversible_comparison_p): Allow UNORDERED/ORDERED to be reversed.
16160 * cse.c (fold_rtx): Check FLOAT_MODE_P before reversing.
16161 (record_jump_equiv): Handle reverse_condition returning UNKNOWN.
16162 * jump.c (reverse_condition): Don't abort for UNLE etc, but
16164 (swap_condition): Handle unordered compares.
16165 (thread_jumps): Check can_reverse before reversing.
16166 * loop.c (get_condition): Likewise. Allow UNORERED/ORDERED to be
16169 * optabs.c (can_compare_p): New argument CODE. Verify branch or
16170 setcc is present before acking for cmp_optab. Update all callers.
16171 (prepare_float_lib_cmp, init_optabs): Handle UNORDERED.
16172 * expmed.c (do_cmp_and_jump): Update for can_compare_p.
16173 * expr.c (expand_expr): Likewise. Support unordered compares.
16174 (do_jump, do_store_flag): Likewise.
16175 * expr.h (enum libfunc_index): Add unordered compares.
16177 * Makefile.in (FPBIT_FUNCS): Add _unord_sf.
16178 (DPBIT_FUNCS): Add _unord_df.
16179 * config/fp-bit.c (_unord_f2): New.
16180 * fp-test.c (main): Try unordered compare builtins.
16182 * alpha-protos.h (alpha_fp_comparison_operator): Declare.
16183 * alpha.c (alpha_comparison_operator): Check mode properly.
16184 (alpha_swapped_comparison_operator): Likewise.
16185 (signed_comparison_operator): Likewise.
16186 (alpha_fp_comparison_operator): New.
16187 (alpha_emit_conditional_branch): Handle unordered compares.
16188 * alpha.h (PREDICATE_CODES): Update.
16189 * alpha.md (fp compares): Use alpha_fp_comparison_operator.
16190 (bunordered, bordered): New.
16192 2000-01-24 Richard Henderson <rth@cygnus.com>
16194 * alpha.c (alpha_emit_xfloating_cvt): Thinko in operand manipulation.
16195 * alpha.md (movtf): New expander, insn, and splitter.
16197 Mon Jan 24 19:49:47 MET 2000 Jan Hubicka <jh@suse.cz>
16199 * reg-stack.c (subst_stack_regs_pat): Handle correctly USEs of
16202 Mon Jan 24 17:37:31 MET 2000 Jan Hubicka <jh@suse.cz>
16204 * i386.h (FIRST_PSEUDO_REGISTER): Set to 21.
16205 (FIXED_REGISTERS, CALL_USED_REGISTERS,
16206 REG_ALLOC_ORDER): Add frame pointer
16207 (FRAME_POINTER_REGNUM): Set to 20
16208 (HARD_FRAME_POINTER_REGNUM): New macro.
16209 (ELIMINABLE_REGS): Eliminate ARG_POINTER and FRAME_POINTER
16210 to HARD_FRAME_POINTER.
16211 (REGNO_OK_FOR_BASE_P): Accept FRAME_POINTER_REGNUM
16212 (REG_OK_FOR_INDEX_NONSTRICT_P): Likewise.
16213 (REG_OK_FOR_BASE_NONSTRICT_P): Likewise.
16214 (HI_REGISTER_NAMES): Add "frame".
16215 (CAN_ELIMINATE): Handle FRAME_POINTER_REGNUM elimination.
16216 (debug_reg): Handle FRAME_POINTER_REGNUM.
16217 (reg_class): Add arg pointer and frame pointer to NON_Q_REGS,
16218 GENERAL_REGS and INDEX_REGS.
16219 * i386.c (SAVED_REGS_FIRST): new macro.
16220 (AT_BP): Use hard_frame_pointer_rtx instead of frame_pointer_rtx
16221 (ix86_decompose_address, memory_address_length): Likewise.
16222 (regclass_map): Add frame pointer.
16223 (call_insn_operand): Handle frame_pointer_rtx.
16224 (reg_no_sp_operand): Likewise.
16225 (ix86_decompose_address): Handle frame_pointer_rtx as stack_pointer_rtx.
16226 (print_operand, legitimize_pic_address): Fix formating.
16227 (ix86_compute_frame_size): Make static, update prototype, new
16228 parameters padding1, padding2, use ix86_nsaved_regs, use
16229 stack_alignment_needed.
16230 (ix86_initial_elimination_offset): Handle FRAME_POINTER_REGNUM
16231 to HARD_FRAME_POINTER_REGNUM conversions.
16232 (ix86_expand_prologue): Handle SAVED_REGS_FIRST prologues.
16233 (ix86_expand_epilogue): Handle SAVED_REGS_FIRST epilogues.
16234 (print_reg): Abort on FRAME_POINTER_REGNUM
16236 Mon Jan 24 16:50:08 MET 2000 Jan Hubicka <jh@suse.cz>
16238 * i386.h (PREDICATE_CODES): Add aligned_operand.
16239 * i386.c (aligned_operand): New function.
16240 (ix86_aligned_p): Kill.
16241 * i386.md (movhi_1): Emit mov for aligned operands.
16242 (promoting peep2s): Use aligned_operand.
16244 2000-01-23 Zack Weinberg <zack@wolery.cumb.org>
16246 * fixinc/fixfixes.c (fix_char_macro_uses): Correct regular
16247 expression to allow underscores in macro names.
16248 (fix_char_macro_defines): Increment scanning pointer.
16250 2000-01-23 Richard Henderson <rth@cygnus.com>
16252 * alpha/osf.h (TARGET_HAS_XFLOATING_LIBS): Define.
16253 * alpha/osf5.h: New file.
16254 * configure.in (alpha-*-osf5): Add it to tm_file.
16256 * emit-rtl.c (operand_subword): Support TFmode on a 64-bit target.
16258 * alpha-protos.h (alpha_emit_xfloating_arith): Declare.
16259 (alpha_emit_xfloating_cvt, function_arg): Declare.
16260 * alpha.c (alpha_emit_conditional_branch): Call
16261 alpha_emit_xfloating_compare for TFmode compares.
16262 (alpha_lookup_xfloating_lib_func): New.
16263 (alpha_compute_xfloating_mode_arg): New.
16264 (alpha_emit_xfloating_libcall): New.
16265 (alpha_emit_xfloating_arith): New.
16266 (alpha_emit_xfloating_compare): New.
16267 (alpha_emit_xfloating_cvt): New.
16268 (print_operand): Add default abort case.
16269 (function_arg): Mind FUNCTION_ARG_PASS_BY_REFERENCE.
16270 * alpha.h (TARGET_HAS_XFLOATING_LIBS): New.
16271 (BIGGEST_ALIGNMENT): Increase to 128 bits.
16272 (RETURN_IN_MEMORY): True for TF/TCmode.
16273 (ALPHA_ARG_SIZE): TF/TCmode is passed indirect.
16274 (FUNCTION_ARG): Move to function_arg.
16275 (FUNCTION_ARG_PASS_BY_REFERENCE): New.
16276 (ASM_OUTPUT_LONG_DOUBLE): New.
16277 (ASM_OUTPUT_DOUBLE): Always output bits.
16278 * alpha.md (addtf3, divtf3, multf3, subtf3, cmptf): New.
16279 (fix_trunctfdi2, floatditf2, floatunsditf2): New.
16280 (extenddftf2, trunctfdf2): New.
16282 2000-01-23 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
16284 * config/sparc/sol2-sld-64.h (TRANSFER_FROM_TRAMPOLINE): Moved...
16285 * config/sparc/sol2.h: ... here.
16287 2000-01-24 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
16289 * basic-block.h (struct loops): New field `levels'.
16290 * flow.c (flow_loops_level_compute): Traverse all outer loops.
16291 (flow_loop_level_compute): Initialise level to 1.
16292 (flow_loops_find): Set loops->levels.
16293 (flow_loops_dump): Print loops->levels.
16295 2000-01-23 Richard Henderson <rth@cygnus.com>
16297 * libgcc2.c (dwarf_reg_size_table): Size with DWARF_FRAME_REGISTERS.
16298 (throw_helper): Iterate over DWARF_FRAME_REGISTERS.
16300 2000-01-23 Richard Henderson <rth@cygnus.com>
16302 * i386.c (dbx_register_map, svr4_dbx_register_map): New.
16303 * i386.h (DBX_REGISTER_NUMBER): Use them.
16304 * i386/beos-elf.h, i386/freebsd-elf.h, i386/i386elf.h: Likewise.
16305 * i386/linux.h, i386/osfrose.h, i386/ptx4-i.h: Likewise.
16306 * i386/rtemself.h, i386/sco5.h, i386/sysv4.h: Likewise.
16307 * i386/sequent.h: Kill incorrect comment.
16309 2000-01-23 Mark Mitchell <mark@codesourcery.com>
16311 * ggc-page.c (struct page_entry): Make `context_depth' an
16313 (struct globals): Likewise.
16315 2000-01-23 Clinton Popetz <cpopetz@cygnus.com>
16317 * loop.c (check_dbra_loop): When checking a loop for
16318 reversability, check the source of any stores to ensure
16319 they don't depend on an initial value.
16321 2000-01-23 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
16323 * config/c4x/c4x.h (ASM_OUTPUT_BSS): Redefine.
16325 2000-01-22 Zack Weinberg <zack@wolery.cumb.org>
16327 * fixinc/fixincl.c: Move declarations of 'pz_fname' and
16328 'pz_scan' into scope of entire function. Only affects
16329 compiles with -DDEBUG.
16331 2000-01-22 Alan Modra <alan@SPRI.Levels.UniSA.Edu.Au>
16333 * config/elfos.h (UNIQUE_SECTION): Restore uninitialised data
16334 section naming to that prior to 2000-01-07 patch.
16335 * config/mips/elf.h (UNIQUE_SECTION): Ditto.
16336 * config/mips/elf64.h (UNIQUE_SECTION): Ditto.
16337 * config/mips/iris6gld.h (UNIQUE_SECTION): Ditto.
16338 * config/i386/interix.c (UNIQUE_SECTION): Ditto.
16339 * config/i386/winnt.c (UNIQUE_SECTION): Ditto.
16341 2000-01-22 Bernd Schmidt <bernds@cygnus.co.uk>
16343 * config/arm/arm.c (soft_df_operand): Reject SUBREGs containing a
16346 2000-01-21 Jim Wilson <wilson@cygnus.com>
16348 * fixinc/inclhack.tpl: Test for directory before trying to cd into it.
16349 * fixinc/fixincl.sh, fixinc/inclhack.sh: Regenerate.
16351 2000-01-21 Zack Weinberg <zack@wolery.cumb.org>
16353 * cpphash.c (change_newlines): Delete function.
16354 (struct argdata): Delete 'newlines' and 'use_count' fields.
16355 (macroexpand): Remove code referencing those fields.
16357 2000-01-22 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
16359 * loop.c (loops_info): New variable.
16360 (loop_optimize): Allocate loops->array and free it on exit.
16361 Allocate memory for loops_info and assign to each loop,
16363 (find_and_verify_loops): Do not allocate loops->array.
16365 2000-01-21 Zack Weinberg <zack@wolery.cumb.org>
16367 * fixinc/fixfixes.c (machine_name_fix): Don't free 'scratch'.
16369 2000-01-21 Jakub Jelinek <jakub@redhat.com>
16371 * config/sparc/sparc.md (movsi_pic_label_ref): Avoid creating new
16372 pseudos if expanded after first flow.
16373 (movdi_pic_label_ref): Likewise.
16375 2000-01-20 Richard Henderson <rth@cygnus.com>
16377 * jump.c (jump_optimize_1): Don't do addr_vec optimizations at -O0.
16379 2000-01-20 Zack Weinberg <zack@wolery.cumb.org>
16381 * Makefile.in (fixinc.sh): Depend on specs.
16382 * fixinc/Makefile.in: Add rule to create machname.h.
16383 (fixlib.o): Depend on machname.h.
16384 * fixinc/fixtests.c (machine_name): New test.
16385 * fixinc/fixfixes.c (machine_name): New fix.
16386 * fixinc/fixlib.c (mn_get_regexps): New helper function for
16387 the machine_name test and fix.
16388 * fixinc/fixlib.h: Prototype it.
16389 * fixinc/inclhack.def (machine_name): Use the C test and fix.
16390 * fixinc/fixincl.x, fixinc/inclhack.sh: Rebuild.
16392 * gcc.c (do_spec_1) [case P]: Take care not to create
16393 identifiers with three leading or trailing underscores.
16395 * fixinc/Makefile.in (FIXINC_DEFS): Add -DIN_GCC.
16396 (fixincl): Don't specify libraries twice on link line.
16397 (gnu-regex.o): Remove special rule.
16398 * fixinc/gnu-regex.c: Define REGEX_MALLOC if C_ALLOCA was
16399 defined by config.h. Do not define _REGEX_RE_COMP.
16400 (regcomp): Allocate and initialize a fastmap.
16401 * fixinc/gnu-regex.h: Do not define _REGEX_RE_COMP.
16403 2000-01-20 Brad Lucier <lucier@math.purdue.edu>
16405 * Makefile.in (predict.o): Depend on $(EXPR_H), not expr.h.
16407 2000-01-19 Richard Henderson <rth@cygnus.com>
16409 * flow.c (propagate_block): Replace FIRST, LAST and BNUM
16410 arguments with BB. Update all callers. Tidy line wrapping.
16412 2000-01-19 Clinton Popetz <cpopetz@cygnus.com>
16414 * emit-rtl.c (try_split): Return last_insn if we split the
16417 Thu Jan 20 01:01:23 MET 2000 Jan Hubicka <jh@suse.cz>
16419 * i386-protos.h (ix86_compute_frame_size): Remove prototype.
16420 (ix86_initial_elimination_offset): Declare.
16421 * i386.c (ix86_nsaved_regs): Break out from ...
16422 (ix86_can_use_return_insn_p): ... here.
16423 (ix86_emit_save_regs): Break out from ...
16424 (ix86_expand_prologue): ... here.
16425 (ix86_emit_epilogue_esp_adjustment, ix86_emit_restore_regs): Break
16427 (ix86_expand_epilogue): ... here.
16428 (ix86_compute_frame_size): Make static, add prototype.
16429 (ix86_initial_elimination_offset): Break out from ...
16430 * i386.h (INITIAL_ELIMINATION_OFFSET): ... here.
16432 2000-01-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16434 * recog.h (OUT_FCN): Delete.
16436 * vax.md: Call `get_insn_template' instead of OUT_FCN.
16438 2000-01-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16440 * cppalloc.c: PROTO -> PARAMS.
16441 * cpperror.c: Likewise.
16442 * cppfiles.c: Likewise.
16443 * cpplib.c: Likewise.
16444 * cpplib.h: Likewise.
16446 * config/arm/arm-protos.h: PROTO -> PARAMS.
16447 * config/arm/arm.c: Likewise.
16448 * config/c4x/c4x.c: Likewise.
16449 * config/fr30/fr30-protos.h: Likewise.
16450 * config/nextstep.c: Likewise.
16451 * config/pa/pa.c: Likewise.
16452 * config/pj/pj.c: Likewise.
16453 * config/rs6000/rs6000.c: Likewise.
16454 * config/v850/v850-protos.h: Likewise.
16455 * config/v850/v850.c: Likewise.
16457 2000-01-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16459 * i370-protos.h: New file.
16461 * i370.c: Include tm_p.h. Fix compile time warnings.
16463 * i370.h: Move prototypes to i370-protos.h. Fix compile time
16466 * i370.md: Likewise.
16468 2000-01-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16470 * real.c (enan, einan, eiisnan, eiisneg, make_nan): Wrap in NANS.
16471 (target_isinf, target_isnan, eisnan): Mark parameter with
16473 (eiisinf): Wrap in INFINITY.
16474 (etoe113, etoe64, etoe53, etoe24): Wrap label `nonorm' in INFINITY.
16475 (ibmtoe): Remove unused variable `rndsav'.
16477 Wed Jan 19 20:23:06 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
16479 * sh.h (PASS_IN_REG_P): Remove extraneous paranthesis.
16480 (GO_IF_LEGITIMATE_ADDRESS): Added missing tab.
16482 2000-01-19 Zack Weinberg <zack@wolery.cumb.org>
16484 * fixinc/Makefile.in: Correct dependencies of fixincl and fixincl.o.
16485 * fixinc/fixfixes.c (IO_use, CTRL_use, IO_defn, CTRL_defn): New fixes.
16486 (fix_char_macro_defines, fix_char_macro_uses): New functions.
16488 * fixinc/fixlib.c (is_cxx_header): Do the text scan with a regexp.
16489 Recognize Emacs mode markers also.
16490 * fixinc/fixtests.c (else_endif_label): Fix bug in recognition of
16491 C++ comments in C++ headers. Call is_cxx_header only if
16494 * fixinc/inclhack.def (avoid_bool): Add select for the problem and
16495 bypass for ncurses.
16496 (bsd43_io_macros, io_def_quotes, ioctl_fix_ctrl): Replace with...
16497 (io_def_quotes, io_use_quotes, ctrl_def_quotes, ctrl_use_quotes):
16498 ... these, which use the new C fixes.
16499 (math_exception): Escape literal '+' in bypass expression.
16501 * fixinc/fixincl.x, fixinc/fixincl.sh, fixinc/inclhack.sh:
16504 2000-01-19 Geoff Keating <geoffk@cygnus.com>
16506 * rtlanal.c (reg_referenced_p): A CLOBBER of a MEM uses any REGs
16509 2000-01-20 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
16511 * loop.c (loop_optimize): Allocate loop_info structure for each loop
16512 prior to calling scan_loop.
16514 Wed Jan 19 19:54:38 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
16516 * sh.c (find_barrier, gen_block_redirect): Fix indentation.
16517 (split_branches, calc_live_regs): Likewise.
16519 Wed Jan 19 19:12:36 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
16521 * sh.md (fpu_single, fp_mode): New attributes.
16523 2000-01-20 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
16525 * loop.c (current_loop_info): Renamed from loop_info_data
16526 and changed to a pointer.
16527 (loop_optimize): Allocate loop_info structure for each loop
16528 and initialise to zero.
16529 (scan_loop): Set current_loop_info.
16531 * unroll.c (loop_iterations): Don't abort if REG_USERVAR_P set
16534 2000-01-19 Richard Henderson <rth@cygnus.com>
16536 * stupid.c: Die die die.
16537 * Makefile.in (OBJS): Remove stupid.o.
16538 (stupid.o): Likewise.
16540 * except.c (emit_eh_context): Don't emit USEs for stupid.
16541 * explow.c (probe_stack_range): Likewise.
16542 * flags.h (obey_regdecls): Remove.
16543 * flow.c (find_basic_blocks): Don't run try_merge_blocks
16544 when not optimizing.
16545 (life_analysis): Limit data collection when not optimizing.
16546 (mark_regs_live_at_end): Always mark the return value registers.
16547 (mark_used_regs): Remove dummy RETURN case.
16548 (print_rtl_with_bb): Don't consult obey_regdecls.
16549 * function.c (use_variable, use_variable_after): Remove.
16550 (assign_parms): Consult optimize not obey_regdecls.
16551 (expand_function_start): Don't emit USEs for stupid.
16552 (expand_function_end): Likewise.
16553 * global.c (build_insn_chain): Export.
16554 * integrate.c (expand_inline_function): Kill return-value USE
16556 * jump.c (jump_optimize_1): Do simple jump optimizations and
16557 dead code elimination.
16558 (calculate_can_reach_end): Remove check_deleted argument.
16559 (delete_insn): Patch out insns even when not optimizing.
16560 * local-alloc.c (block_alloc): Don't do tying when not optimizing.
16561 * rtl.h (use_variable, use_variable_after): Remove declarations.
16562 (build_insn_chain): Declare.
16563 * stmt.c (expand_value_return): Don't emit USEs for stupid.
16564 (expand_end_bindings): Likewise.
16565 (expand_decl): Likewise. Consult optimize not obey_regdecls.
16566 * toplev.c (obey_regdecls): Remove.
16567 (rest_of_compilation): Don't set it. Kill stupid in favour of
16568 flow1, local-alloc, and reload.
16569 (main): Don't set obey_regdecls.
16571 * config/nextstep.c (handle_pragma): Likewise.
16573 * alpha/alpha.md (allocate_stack): Don't emit USEs for stupid.
16575 * arm/arm.h (CONDITIONAL_REGISTER_USAGE): Don't fix reg 0 for stupid.
16577 2000-01-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16579 * alpha-protos.h: PROTO -> PARAMS.
16580 * alpha.c: Likewise.
16582 * h8300.c: Likewise.
16583 * i386-protos.h: Likewise.
16584 * i386.c: Likewise.
16585 * m32r-protos.h: Likewise.
16586 * m32r.c: Likewise.
16587 * mips.c: Likewise.
16588 * mips.md: Likewise.
16589 * gmon-sol2.c: Likewise.
16590 * sparc.c: Likewise.
16592 2000-01-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16594 * ns32k-protos.h: New file.
16596 * ns32k.c: Fix compile time warnings.
16598 * ns32k.h: Move prototypes to ns32k-protos.h. Fix compile time
16601 * ns32k.md: Likewise.
16603 2000-01-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16605 * vax-protos.h: New file.
16607 * vax.c: Fix compile time warnings.
16609 * vax.h: Move prototypes to vax-protos.h. Fix compile time
16612 * vax.md: Likewise.
16614 * vaxv.md: Likewise.
16616 2000-01-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16618 * romp-protos.h: New file.
16620 * romp.c: Fix compile time warnings.
16622 * romp.h: Move prototypes to romp-protos.h. Fix compile time
16625 * romp.md: Likewise.
16627 2000-01-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16629 * we32k-protos.h: New file.
16631 * we32k.c: Fix compile time warnings.
16633 * we32k.h: Move prototypes to we32k-protos.h. Fix compile time
16636 2000-01-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16638 * calls.c (emit_call_1): Mark parameter with ATTRIBUTE_UNUSED.
16640 * except.c (eh_regs): Likewise.
16642 * final.c (output_operand): Likewise.
16644 * fold-const.c (target_isinf, target_isnan): Likewise.
16646 Tue Jan 18 16:19:55 MET 2000 Jan Hubicka <hubicka@freesoft.cz>
16648 * i386.h (BIGGEST_ALIGNMENT): Set to 128.
16649 (BIGGEST_FIELD_ALIGNMENT): Set to (TARGET_ALIGN_DOUBLE ? 64 : 32)
16651 * i386.md (memstr): Do not use rep stosb for counts divisible by 4
16652 when optimize_size.
16653 (clrstrsi): Rewrite.
16654 (strsethi, strsetqi): New expanders.
16655 (strsethi_1, strsetqi_1, rep_stossi, rep_stosqi): New insn patterns.
16656 (cmpstrsi): Emit compare insn before cmpstrsi_1
16657 (cmpstrsi_nz): use flags, set type to str, prefix_length to 1.
16658 (strlensi_1): Likewise.
16659 (cmpstrsi_1): Likewise; do not output compare.
16660 (strlen expander): Do not unroll when optimizing for size.
16661 (*subsi3_carry): Rename to subsi3_carry
16662 (addqi3_cc): New pattern.
16663 * i386.h (processor_costs): Add move_ratio field.
16664 (MOVE_RATIO): Use move_ratio field, set to 3 for OPTIMIZE_SIZE
16665 * i386.c (*_cost): Set move_ratio.
16666 (x86_unroll_strlen): Enable for Athlon, PPro and K6 too.
16667 (x86_expand_strlensi_1): Rewrite the main loop.
16669 2000-01-17 Richard Henderson <rth@cygnus.com>
16671 * combine.c (combine_simplify_rtx): Give FLOAT_STORE_FLAG_VALUE a mode.
16672 * cse.c (find_comparison_args, fold_rtx): Likewise.
16673 * integrate.c (subst_constants): Likewise.
16674 * loop.c (get_condition): Likewise.
16676 * tm.texi (FLOAT_STORE_FLAG_VALUE): Update docs.
16678 * alpha.h (FLOAT_STORE_FLAG_VALUE): Use REAL_VALUE_ATOF.
16680 2000-01-18 Martin v. Löwis <loewis@informatik.hu-berlin.de>
16682 * c-parse.in (SAVE_WARN_FLAGS): Create an INTEGER_CST.
16683 (RESTORE_WARN_FLAGS): Unpack it.
16684 Change semantic type of extension to ttype.
16685 * c-common.c (split_specs_attrs): Expect an INTEGER_CST.
16686 * c-parse.y, c-parse.c, objc/objc-parse.y,
16687 objc/objc-parse.c: Regenerate.
16689 2000-01-17 Zack Weinberg <zack@wolery.cumb.org>
16691 * fixinc/fixlib.c: Add copyright notice.
16692 (compile_re): New function.
16693 * fixinc/fixlib.h: Prototype compile_re.
16695 * fixinc/fixfixes.c, fixinc/fixtests.c, fixinc/fixincl.c:
16696 Use compile_re to compile regular expressions.
16698 * fixinc/fixincl.c (egrep_test): Don't bother asking regexec
16699 where the pattern matched.
16701 * fixinc/inclhack.def (sun_memcpy): Move to AAB_sun_memcpy,
16703 (ultrix_ansi_compat): Likewise.
16704 (interactv_add1): Rename to 'isc_omits_with_stdc', remove shell test,
16706 (interactv_add2, interactv_add3): Delete.
16707 (x11_sprintf): Don't use filename glob.
16708 * fixinc/fixincl.x, fixinc/inclhack.sh, fixinc/fixincl.sh:
16711 2000-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16713 * print-rtl.c: PROTO -> PARAMS.
16714 * real.c: Likewise.
16715 * reg-stack.c: Likewise.
16716 * resource.c: Likewise.
16717 * sdbout.h: Likewise.
16718 * simplify-rtx.c: Likewise.
16719 * stor-layout.c: Likewise.
16720 * stupid.c: Likewise.
16721 * xcoffout.c: Likewise.
16722 * xcoffout.h: Likewise.
16724 2000-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16726 * toplev.c: PROTO -> PARAMS.
16727 * toplev.h: Likewise.
16728 * tree.c: Likewise.
16729 * tree.h: Likewise.
16730 * unroll.c: Likewise.
16731 * varasm.c: Likewise.
16732 * varray.c: Likewise.
16733 * varray.h: Likewise.
16735 2000-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16737 * reload.c: PROTO -> PARAMS.
16738 * reload.h: Likewise.
16739 * reload1.c: Likewise.
16740 * reorg.c: Likewise.
16741 * resource.h: Likewise.
16744 * rtlanal.c: Likewise.
16745 * sbitmap.h: Likewise.
16746 * sdbout.c: Likewise.
16747 * stack.h: Likewise.
16748 * stmt.c: Likewise.
16749 * system.h: Likewise.
16751 2000-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16753 * machmode.h: PROTO -> PARAMS.
16754 * mbchar.h: Likewise.
16755 * mips-tdump.c: Likewise.
16756 * mips-tfile.c: Likewise.
16757 * optabs.c: Likewise.
16758 * output.h: Likewise.
16759 * prefix.c: Likewise.
16760 * profile.c: Likewise.
16761 * protoize.c: Likewise.
16762 * real.h: Likewise.
16763 * recog.c: Likewise.
16764 * recog.h: Likewise.
16765 * regclass.c: Likewise.
16766 * regmove.c: Likewise.
16767 * regs.h: Likewise.
16769 2000-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16771 * ggc-common.c: PROTO -> PARAMS.
16772 * ggc-page.c: Likewise.
16773 * ggc-simple.c: Likewise.
16775 * global.c: Likewise.
16776 * graph.c: Likewise.
16777 * gthr-win32.h: Likewise.
16778 * haifa-sched.c: Likewise.
16779 * halfpic.h: Likewise.
16780 * integrate.c: Likewise.
16781 * integrate.h: Likewise.
16782 * jump.c: Likewise.
16784 * local-alloc.c: Likewise.
16785 * loop.c: Likewise.
16786 * loop.h: Likewise.
16788 2000-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16790 * genattr.c: PROTO -> PARAMS.
16791 * genattrtab.c: Likewise.
16792 * gencheck.c: Likewise.
16793 * gencodes.c: Likewise.
16794 * genconfig.c: Likewise.
16795 * genemit.c: Likewise.
16796 * genextract.c: Likewise.
16797 * genflags.c: Likewise.
16798 * gengenrtl.c: Likewise.
16799 * genopinit.c: Likewise.
16800 * genoutput.c: Likewise.
16801 * genpeep.c: Likewise.
16802 * genrecog.c: Likewise.
16804 2000-01-16 Mark Mitchell <mark@codesourcery.com>
16806 * tree.h (BINFO_VPTR_FIELD): Augment documentation.
16808 2000-01-16 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
16810 * aclocal.m4 (AC_FUNC_MMAP_ZERO): New macro.
16811 * configure.in (AC_FUNC_MMAP_ZERO): Use instead of AC_FUNC_MMAP.
16812 * ggc-page.c: Replace HAVE_MMAP with HAVE_MMAP_ZERO.
16813 * configure, config.in: Rebuilt.
16815 2000-01-16 Zack Weinberg <zack@wolery.cumb.org>
16817 * config/i386/i386.md: Add peephole to merge successive stack
16820 Sat Jan 15 15:41:14 EST 2000 John Wehle (john@feith.com)
16822 * gcse.c (insert_insn_end_bb): Use emit_block_insn_before
16823 instead of emit_insn_before. Also handle NOTE_INSN_BASIC_BLOCK
16824 when walking backwards to find all the parameter loads when
16825 the basic block ends in a call.
16827 2000-01-15 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
16829 * loop.c (this_loop_info): Delete.
16830 (uid_loop): Add in place of uid_loop_num. All uses updated.
16831 (loop_number_exit_count): Delete and replace with entry in loop
16832 structure. All uses updated.
16833 (loop_number_loop_starts, loop_number_loop_ends): Likewise.
16834 (loop_number_loop_cont, loop_number_cont_dominator): Likewise.
16835 (loop_outer_loop): Likewise.
16836 (loop_invalid, loop_number_exit_labels): Likewise.
16837 (loop_used_count_register): Delete and replace with entry in
16838 loop_info structure.
16839 (find_and_verify_loops): Add loops argument.
16840 (verify_dominator, mark_loop_jump, prescan_loop): Replace loop_start,
16841 loop_end, etc. arguments with loop structure pointer. All callers
16843 (loop_reg_used_before_p, scan_loop, strength_reduce): Likewise.
16844 (check_dbra_loop, next_insn_in_loop, try_copy_prop): Likewise.
16845 (load_mems_and_recount_loop_regs_set, load_mems): Likewise.
16846 (insert_bct): Likewise.
16847 (basic_induction_var): New argument level.
16848 * loop.h (struct loop_info): Delete fields num, loops_enclosed,
16849 vtop, and cont. Add used_count_register.
16850 (uid_loop): Delete declaration.
16851 (loop_number_exit_count): Likewise.
16852 (loop_number_loop_starts, loop_number_loop_ends): Likewise.
16853 (loop_number_loop_cont, loop_number_cont_dominator): Likewise.
16854 (loop_outer_loop, loop_used_count_register): Likewise.
16855 (loop_invalid, loop_number_exit_labels): Likewise.
16856 (unroll_loop): Replace loop_start and loop_end arguments
16857 with loop structure pointer.
16858 (loop_precondition_p, loop_iterations): Likewise.
16859 Include basic-block.h.
16860 * unroll.c: (unroll_loop): Replace loop_start and loop_end arguments
16861 with loop structure pointer.
16862 (loop_precondition_p, loop_iterations): Likewise.
16863 * basic-block.h (struct loop): New entries vtop, cont,
16864 cont_dominator, start, end, top, scan_start, exit_labels,
16866 * Makefile.in (LOOP_H): Add basic-block.h to dependencies.
16868 2000-01-15 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
16870 * defaults.h (ASM_OUTPUT_ASCII): Use ISDIGIT.
16872 2000-01-14 Nathan Sidwell <sidwell@codesourcery.com>
16874 * config.in: Rebuilt for 2000-01-13 change to acconfig.h.
16876 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16878 * pdp11-protos.h: New file.
16880 * pdp11.c: Include tm_p.h. Add static prototypes. Fix compile
16883 * pdp11.h: Move prototypes to pdp11-protos.h. Fix compile time
16886 * pdp11.md: Likewise.
16888 * 2bsd.h: Likewise.
16890 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16892 * mn10300-protos.h: New file.
16894 * mn10300.c: Include tm_p.h. Add static prototypes. Fix compile
16897 * mn10300.h: Move prototypes to mn10300-protos.h. Fix compile time
16900 * mn10300.md: Likewise.
16902 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16904 * mn10200-protos.h: New file.
16906 * mn10200.c: Include tm_p.h. Add static prototypes. Fix compile
16909 * mn10200.h: Move prototypes to mn10200-protos.h. Fix compile time
16912 * mn10200.md: Likewise.
16914 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16916 * h8300-protos.h: New file.
16918 * h8300.c: Include tm_p.h. Add static prototypes. Fix compile
16921 * h8300.h: Move prototypes to h8300-protos.h. Fix compile time
16924 * h8300.md: Likewise.
16926 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16928 * varasm.c (asm_output_bss): Mark parameters with ATTRIBUTE_UNUSED.
16929 (asm_emit_uninitialised): Likewise.
16931 2000-01-13 Gavin Romig-Koch <gavin@cygnus.com>
16933 * config/mips/mips.h (ISA_HAS_INT_CONDMOVE): New.
16934 * config/mips/mips.md: Use ISA_HAS_INT_CONDMOVE.
16936 2000-01-14 Clinton Popetz <cpopetz@cygnus.com>
16938 * config/mips/mips.c (override_options): Don't turn on extra
16939 alignment for mips16.
16941 2000-01-14 Clinton Popetz <cpopetz@cygnus.com>
16943 * config/mips/mips.c (mips_va_arg): Fix fprv for the 32 bit
16944 eabi, and make sure queued POSTINCREMENT rtl is emitted at
16947 2000-01-14 Clinton Popetz <cpopetz@cygnus.com>
16949 * builtins.c (PAD_VARARGS_DOWN): Define.
16950 (std_expand_builtin_va_arg): Use the above macro.
16951 * config/mips/mips.h (PAD_VARARGS_DOWN): Define.
16952 * tm.texi (Register Arguments): Document the above macro.
16954 2000-01-14 Nick Clifton <nickc@cygnus.com>
16956 * emit-rtl.c (emit_insn): If checking is enabled, make sure
16957 that this function has not been used to emit a jump
16960 * jump.c (return_jump_1): Cope with being passed a null rtx.
16962 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16964 * eh-common.h: PROTO -> PARAMS.
16965 * emit-rtl.c: Likewise.
16966 * errors.c: Likewise.
16967 * errors.h: Likewise.
16968 * except.c: Likewise.
16969 * except.h: Likewise.
16970 * explow.c: Likewise.
16971 * expmed.c: Likewise.
16972 * expr.c: Likewise.
16973 * expr.h: Likewise.
16974 * final.c: Likewise.
16975 * fix-header.c: Likewise.
16976 * flow.c: Likewise.
16977 * fold-const.c: Likewise.
16978 * function.c: Likewise.
16979 * function.h: Likewise.
16981 * gcov-io.h: Likewise.
16982 * gcov.c: Likewise.
16983 * gcse.c: Likewise.
16985 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16987 * sh-protos.h: New file.
16989 * sh.c: Include insn-config.h, toplev.h, recog.h and tm_p.h.
16990 Add static prototypes. Fix compile time warnings.
16992 * sh.h: Move prototypes to sh-protos.h. Fix compile time warnings.
16996 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16998 * arc-protos.h: New file.
17000 * arc.c: Include tm_p.h. Add static prototypes. Fix compile
17003 * arc.h: Move prototypes to arc-protos.h. Fix compile time
17006 * arc.md: Likewise.
17008 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17010 * dsp16xx-protos.h: New file.
17012 * dsp16xx.c: Include tm_p.h. Add static prototypes. Fix compile
17015 * dsp16xx.h: Move prototypes to dsp16xx-protos.h. Fix compile time
17018 * dsp16xx.md: Likewise.
17020 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17022 * convex-protos.h: New file.
17024 * convex.c: Include tm_p.h. Add static prototypes. Fix compile
17027 * convex.h: Move prototypes to convex-protos.h. Fix compile time
17030 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17032 * elxsi-protos.h: New file.
17034 * elxsi.c: Include tm_p.h. Add static prototypes. Fix compile
17037 * elxsi.h: Move prototypes to elxsi-protos.h. Fix compile time
17040 * elxsi.md: Likewise.
17042 2000-01-14 Clinton Popetz <cpopetz@cygnus.com>
17044 * config/mips/mips.h (REGISTER_MOVE_COST): Remove redundant
17045 case for moving from HI/LO/HI_LO_REG. This makes the behavior
17046 match the comment for MIPS16.
17048 Fri Jan 14 00:28:06 2000 Jeffrey A Law (law@cygnus.com)
17050 * flow.c (split_edge): Do not call set_block_for_insn if we
17051 do not have a basic_block_for_insn structure.
17053 * fr30.h (TRAMPOLINE_TEMPLATE): Use nops to ensure the static chain
17054 and destination functions are 32bit aligned within the trampoline.
17055 (TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE): Corresponding changes.
17056 (TRAMPOLINE_ALIGNMENT): Define.
17058 * cse.c (cse_insn): When changing (set (pc) (reg)) to
17059 (set (pc) (label_ref)), verify the change creates a valid insn.
17061 * fr30.c (call_operand): Tighten and rework to match rules for
17062 call RTL expressions.
17063 * fr30.h (PREDICATE_CODES, case call_operand): Only allow MEMs.
17064 * fr30.md (call patterns): Improve constraints.
17066 Thu Jan 13 23:44:03 2000 Richard Henderson <rth@cygnus.com>
17068 * fr30.c (fr30_expand_epilogue): Revert last change.
17069 Use emit_jump_insn for the return insn.
17071 Thu Jan 13 14:46:03 2000 Jason Eckhardt <jle@cygnus.com>
17072 Stan Cox <scox@cygnus.com>
17074 * predict.c: New file. Preliminary infrastructure work for static
17075 branch prediction and basic block reordering.
17076 * basic-block.h: Add prototype for estimate_probability.
17077 * Makefile.in: Add rules for predict.o.
17079 2000-01-13 Jason Merrill <jason@yorick.cygnus.com>
17081 * fixincludes (va_list): Use __not_va_list__ for the dummy.
17082 * fixinc/*: Likewise.
17084 2000-01-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17086 * cccp.c: PROTO -> PARAMS.
17087 * cexp.y: Likewise.
17088 * collect2.c: Likewise.
17089 * combine.c: Likewise.
17090 * convert.h: Likewise.
17092 * dbxout.c: Likewise.
17093 * dbxout.h: Likewise.
17094 * diagnostic.c: Likewise.
17095 * doprint.c: Likewise.
17096 * dwarf2out.c: Likewise.
17097 * dwarf2out.h: Likewise.
17098 * dwarfout.c: Likewise.
17099 * dwarfout.h: Likewise.
17100 * dyn-string.h: Likewise.
17102 2000-01-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17104 * calls.c (emit_call_1): Wrap varaible `struct_value_size_rtx' in
17105 macro conditionals guarding use.
17107 * dwarf2out.c: Include "tm_p.h".
17109 * function.c (locate_and_pad_parm): Mark parameter with
17111 (expand_function_end): Likewise for variable `context'.
17113 * reorg.c (make_return_insns): Wrap prototype in macro HAVE_return.
17115 2000-01-13 Nick Clifton <nickc@cygnus.com>
17117 * config/fr30/fr30.c (fr30_expand_epilogue): Emit USEs of pop'ed
17118 register to prevent compile time warnings.
17120 2000-01-13 Zack Weinberg <zack@wolery.cumb.org>
17122 * longlong.h [i386] (udiv_qrnnd): Rename 'd' argument to 'dv'
17123 to avoid -Wtraditional warning.
17125 2000-01-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17127 * 1750a-protos.h: New file.
17129 * 1750a.c: Include tm_p.h. Add static prototypes. Fix compile
17132 * 1750a.h: Move prototypes to 1750a-protos.h. Fix compile time
17135 * 1750a.md: Likewise.
17137 2000-01-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17139 * a29k-protos.h: New file.
17141 * a29k.c: Include tm_p.h. Add static prototypes. Fix compile
17144 * a29k.h: Move prototypes to a29k-protos.h. Fix compile time
17147 2000-01-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17149 * clipper-protos.h: New file.
17151 * clipper.c: Include tm_p.h. Add static prototypes. Fix compile
17154 * clipper.h: Move prototypes to clipper-protos.h. Fix compile time
17157 Thu Jan 13 16:03:06 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
17159 * reload1.c (reload_combine_note_store): Use HARD_REGNO_NREGS.
17161 2000-01-13 Nathan Sidwell <sidwell@codesourcery.com>
17163 * configure.in (--enable-new-gxx-abi): New option.
17164 * acconfig.h (ENABLE_NEW_GXX_ABI): New define.
17165 * Makefile.in (GXX_ABI_FLAG): New variable.
17166 * configure: Regenerate.
17168 2000-01-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
17170 * stor-layout.c (layout_type): Use FORCE_STRUCT_BLK.
17171 * tm.texi (FORCE_STRUCT_BLK): Document.
17172 * config/c4x/c4x.h (FORCE_STRUCT_BLK): New macro.
17174 Wed Jan 12 23:12:47 2000 Hans-Peter Nilsson <hp@axis.com>
17176 * config/ns32k/ns32k.md: Revert Jan 9 change.
17178 * genrecog.c (maybe_both_true_2): Do not compare a predicate-test
17179 to a mode-test, if the predicate is address_operand.
17181 Wed Jan 12 22:34:00 2000 Jeffrey A Law (law@cygnus.com)
17183 * combine.c (if_then_else_cond): Be careful about what kinds
17184 of RTL expressions are passed to operand_subword.
17186 * flow.c (split_edge): If we have to insert a new jump, make
17187 sure to associate it with a basic block.
17189 * flow.c (commit_one_edge_insertion): A block with one successor
17190 can end in a JUMP_INSN that is not a simplejump.
17192 2000-01-12 Robert Lipe <robertl@sco.com>
17194 * i386/sco5.h (INIT_SECTION_ASM_OP_COFF): Rename section to "ctor".
17195 (BUILD_VA_LIST_TYPE): Define.
17196 (EH_FRAME_SECTION_ASM_OP): Explictly define to better interact
17199 2000-01-12 Jason Merrill <jason@casey.cygnus.com>
17201 * cccp.c (do_pragma): Add cast to (char *).
17203 2000-01-12 Richard Henderson <rth@cygnus.com>
17204 Fred Fish <fnf@be.com>
17205 Jason Merrill <jason@cygnus.com>
17207 * configure.in (i?86-*-beos{pe,elf,}*): Recognize.
17208 * i386/t-beos, i386/x-beos, i386/xm-beos.h: New files.
17209 * i386/beos-elf.h, i386/beos-pe.h: New files.
17211 * Makefile.in (CROSS_SYSTEM_HEADER_DIR): New.
17212 * cross-make (SYSTEM_HEADER_DIR): Define using
17213 CROSS_SYSTEM_HEADER_DIR.
17215 * gcc.c (LIBRARY_PATH_ENV): Provide default.
17216 (process_command): Use it.
17217 (main): Likewise. Kill trailing = from env vars.
17218 (build_search_list): Put it back.
17219 * collect2.c (main): Use LIBRARY_PATH_ENV.
17221 * configure.in (GCC_NEED_DECLARATIONS): Add environ.
17222 * toplev.c: Use NEED_DECLARATION_ENVIRON.
17224 * tm.texi (Frame Layout): Document SMALL_STACK.
17225 * c-common.c (c_common_nodes_and_builtins): Check it.
17227 * system.h: Undef alloca after including glibc's <stdlib.h>,
17228 if USE_C_ALLOCA is defined.
17230 * gcc.c (set_input): New fn.
17231 (main): After all input files are compiled, reset the input file
17234 * aclocal.m4 (rindex, index): If already defined, don't attempt
17237 * ginclude/varargs.h: (__va_list__): Define ifndef.
17238 * ginclude/stdarg.h: Likewise.
17240 * ginclude/stddef.h (__WCHAR_TYPE__) [BEOS]: Use int
17241 instead of unsigned char.
17243 * hash.h (true, false, boolean): Undef before enum.
17245 * expmed.c (choose_multiplier): Cast &mhigh_lo and &mhigh_hi to be
17246 proper type of "HOST_WIDE_INT *", rather than their natural type of
17247 "unsigned HOST_WIDE_INT *".
17249 2000-01-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17251 * svr3.h (ASM_FILE_START): Wrap if-clause in squigly brackets.
17253 * recog.c (memory_address_p): Mark parameter with ATTRIBUTE_UNUSED.
17255 * regclass.c (choose_hard_reg_mode): Likewise.
17257 * reload.c (find_valid_class, strict_memory_address_p): Likewise.
17259 * reorg.c (optimize_skip): Wrap prototype in macro conditionals.
17261 2000-01-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17263 * c-common.c: PROTO -> PARAMS.
17264 * c-common.h: Likewise.
17265 * c-decl.c: Likewise.
17266 * c-iterate.c: Likewise.
17267 * c-lang.c: Likewise.
17268 * c-lex.c: Likewise.
17269 * c-lex.h: Likewise.
17270 * c-parse.in: Likewise.
17271 * c-pragma.c: Likewise.
17272 * c-pragma.h: Likewise.
17273 * c-tree.h: Likewise.
17274 * c-typeck.c: Likewise.
17275 * objc/objc-act.c: Likewise.
17276 * objc/objc-act.h: Likewise.
17278 2000-01-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17280 * m88k-protos.h: New file.
17282 * m88k.c: Include tm_p.h. Add static prototypes. Fix compile
17285 * m88k.h: Move prototypes to m88k-protos.h. Fix compile time warnings.
17287 * m88k.md: Likewise.
17289 * tekXD88.h: Likewise.
17291 2000-01-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17293 * m68k-protos.h: New file.
17295 * m68k.c: Include tm_p.h. Add static prototypes. Fix compile
17298 * m68k.h: Move prototypes to m68k-protos.h. Fix compile time warnings.
17300 * mot3300.h: Likewise.
17302 2000-01-12 Richard Earnshaw <rearnsha@arm.com>
17304 * haifa-sched.c (split_edges): Pass edgeset_size as second arg to
17306 (extract_bitlist): Declare bitlen.
17308 2000-01-12 Zack Weinberg <zack@wolery.cumb.org
17310 * cccp.c: Accept and ignore -lang-fortran.
17312 * c-typeck.c (build_c_cast): Issue -Wcast-qual warnings if the
17313 qualifiers don't match at any level of pointerness.
17315 2000-01-12 Robert Lipe <robertl@sco.com>
17317 * i386/sysv5.h (CPP_SPEC, LIBSPEC): Add -pthreadT.
17319 2000-01-12 Bernd Schmidt <bernds@cygnus.co.uk>
17321 * reload1.c (reload_reg_unavailable): New static variable.
17322 (reload_reg_free_p): Test it.
17323 (reload_reg_free_for_value_p): Test it instead of
17325 (choose_reload_regs_init): Compute it.
17327 Wed Jan 12 03:24:41 2000 Toshiyasu Morita (toshi.morita@sega.com)
17329 * reorg.c (fill_slots_from_thread): Check modified_in_p
17332 Wed Jan 12 03:20:31 2000 John Marshall <john_w_marshall@palm.com>
17334 * gcc.texi (Funding, GNU/Linux, Copying, Contributors): Format
17335 these nodes even if INTERNALS is not set.
17337 Wed Jan 12 09:39:22 2000 Nick Burrett <nick.burrett@btinternet.com>
17339 * gcse.c (delete_null_pointer_checks_1): Cope when
17340 get_condition cannot determine the condition.
17342 2000-01-12 Gabriel Dos Reis <gdr@codesourcery.com>
17344 * toplev.h (set_message_length): Declare.
17346 * diagnostic.c (obstack_chunk_alloc): Define macro.
17347 (obstack_chunk_free): Likewise.
17348 (struct output_buffer): New data structure.
17349 (vmessage): Remove.
17350 (output_maximum_width): New variable.
17351 (doing_line_wrapping, set_message_length, init_output_buffer,
17352 get_output_prefix, output_space_left, emit_output_prefix,
17353 output_newline, output_append, output_puts, dump_output,
17354 vbuild_message_string, build_message_string, build_location_prefix,
17355 voutput_notice, output_printf, line_wrapper_printf,
17356 vline_wrapper_message_with_location): New functions. Implement
17357 automatic line wrapping.
17358 (v_message_with_decl): Make it handle automatic line wrapping.
17359 (v_error_with_file_and_line): Likewise.
17360 (v_warning_with_file_and_line): Likewise.
17361 (announce_function): Likewise.
17362 (default_print_error_function): Likewise.
17364 2000-01-11 16:24 -0800 Zack Weinberg <zack@wolery.cumb.org>
17366 * cpplib.h (struct cpp_options): Change lang_asm to char.
17368 * cppinit.c (builtin_array): Take out __STDC_VERSION__, it's
17369 done in cpp_handle_option now.
17370 (initialize_builtins): Take out special case code used only by
17372 (cpp_handle_option): Turn off trigraphs and trigraph warnings
17373 if -traditional. Recognize -lang-fortran and set
17374 lang_fortran, also turn off cplusplus_comments.
17375 (print_help): Document -lang-fortran.
17376 * cpplib.c (handle_directive): Ignore `# 123 "file"' if
17377 lang_asm. Ignore all directives other than `# 123 "file"' if
17379 (cpp_get_token): If -traditional, don't recognize directives
17380 unless the # is in column 1.
17381 (parse_string): If lang_fortran or lang_asm, silently
17382 terminate strings ('' or "") at end of line.
17383 Remove unnecessary braces.
17385 2000-01-11 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
17386 Richard Henderson <rth@cygnus.com>
17388 * resource.c (mark_referenced_resources): Mark a set strict_low_part
17390 * config/i386/i386.c (ix86_expand_setcc): Re-enable clear + set
17391 strict_low_part when possible.
17393 2000-01-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17395 * alias.c: PROTO -> PARAMS.
17396 * basic-block.h: Likewise.
17397 * bitmap.c: Likewise.
17398 * bitmap.h: Likewise.
17399 * builtins.c: Likewise.
17400 * c-aux-info.c: Likewise.
17401 * caller-save.c: Likewise.
17402 * calls.c: Likewise.
17404 2000-01-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17406 * Makefile.in (toplev.o): Depend on regs.h.
17408 * output.h (tdesc_section): Prototype.
17410 * regclass.c (copy_cost): Mark parameters with ATTRIBUTE_UNUSED.
17412 * sdbout.c: Include "tm_p.h".
17414 * toplev.c: Include "regs.h".
17416 Tue Jan 11 11:37:58 2000 Mike Stump <mrs@wrs.com>
17418 * unroll.c (unroll_loop): Add EH support.
17420 2000-01-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17422 * pa-protos.h: New file.
17424 * pa.c: Include recog.h and tm_p.h.
17425 (compute_zdepwi_operands, compute_movstrsi_length,
17426 remove_useless_addtr_insns, store_reg, load_reg, set_reg_plus_d,
17427 find_addr_reg, import_milli): Add static prototypes.
17428 (pa_cpu_string, pa_arch_string): Constify a char*.
17429 (legitimize_pic_address): Pass argument `mode' to pic_label_operand.
17430 (read_only_operand): Add argument `mode'.
17431 (singlemove_string, output_move_double, output_fp_move_double,
17432 output_block_move, output_and, output_ior, output_ascii,
17433 remove_useless_addtr_insns, milli_names, output_mul_insn,
17434 output_div_insn, output_mod_insn, output_arg_descriptor,
17435 output_cbranch, output_bb, output_bvb, output_dbra, ,
17436 output_millicode_call, output_call, hppa_encode_label,
17437 output_parallel_movb, output_parallel_addb): Constify a char*.
17438 (hppa_va_start): Mark parameter `stdarg_p' with ATTRIBUTE_UNUSED.
17439 (output_parallel_addb): Remove extra arg to `constrain_operands'
17441 * pa.h: Move all prototypes to pa-protos.h.
17442 (pa_cpu_string, pa_arch_string): Constify a char*.
17443 (LEGITIMIZE_ADDRESS): Call `symbolic_operand' with mode argument.
17445 * pa.md: Call `function_label_operand' with mode argument.
17446 Likewise for `read_only_operand'.
17447 Fix nesting of parens in call to `symbolic_operand'.
17449 2000-01-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17451 * i860-protos.h: New file.
17453 * i860.c: Include tm_p.h. Add static prototypes. Fix compile
17456 * i860.h: Move prototypes to i860-protos.h. Fix compile time warnings.
17458 * i860.md: Likewise.
17460 Tue Jan 11 18:59:35 MET 2000 Jan Hubicka <jh@suse.cz>
17462 * i386.md (movstrsi expander): Rewrite.
17463 (movstrsi_1 insn): Deleted.
17464 (strmovhi, strmovqi expander): New expanders.
17465 (movshi_1, movsqi_1, rep_movsi, rep_movqi): New patterns.
17466 * i386.c (x86_single_stringop): New global variable.
17467 * i386.h (x86_single_stringop): Declare.
17468 (TARGET_SINGLE_STRINGOP): New macro.
17470 2000-01-11 Clinton Popetz <cpopetz@cygnus.com>
17472 * config/mips/mips.c (mips_va_arg): For EABI, emit the queued
17473 integer vararg POSTINCREMENT before the destination of the jump
17474 for the hard fp case.
17475 (function_arg_pass_by_reference): Pass a copy of CUM to
17478 * config/mips/mips.h (GO_IF_LEGITIMATE_ADDRESS): Move check
17479 for CONSTANT_ADDRESS_P above while loop for subreg.
17481 2000-01-11 Clinton Popetz <cpopetz@cygnus.com>
17483 * flow.c (propagate_block): When a prologue/epilogue insn
17484 is marked dead, unconditionally clear libcall_is_dead and
17485 insn_is_dead, and only dump rtl if warnings aren't being
17488 Tue Jan 11 16:26:47 MET 2000 Jan Hubicka <jh@suse.cz>
17490 * i386.c (ix86_attr_length_default): Handle TYPE_STR and TYPE_CLD.
17491 * i386.md (FIRST_PSEUDO_REGISTER): Set to 20.
17492 (FIXED_REGISTERS): Set dirflag as fixed.
17493 (CALL_USED_REGISTERS): Set dirflag as used.
17494 (REG_ALLOC_ORDER): Set dirflag as last one.
17495 (DIRFLAG_REG): New macro.
17496 (MD_ASM_CLOBBERS): Asm clobber dirflag for backward compatibility.
17497 (HI_REGISTER_NAMES): Add dirflag.
17498 (DEBUF_PRINT_REG): Handle dirflag.
17499 * i386.md (type attribute): New cld and str types.
17500 (length_opcode attribute): Set cld and str to 1.
17501 (memory attribute): Set str to unknown - it is not clear from the
17503 (pent_np function unit): Prefixed string operations takes 12 cycles
17504 minimally; cld takes 2 cycles.
17505 (ppro_uops attribute): Str is "many" and cld is "few".
17506 (ppro_p0 unit): Handle cld here.
17507 (k6_alux unit): Handle cld and str types.
17508 (k6_load unit): It is ocupied by str opcodes.
17509 (k6_store unit): It is ocupied by str opcodes.
17510 (athlon_decode): Str is vector decoded.
17511 (athlon_ieu): Handle str and cld.
17512 (cld pattern): New.
17513 (movstrsi, clrstr, cmpstr, strlen expander): Emit cld instruction
17514 (movstrsi_1, clrstrsi_1, cmpstrsi_1, strlensi_1,
17515 cmpstrsi_nz_1 insn): Do not output cld instruction
17517 Tue Jan 11 06:14:39 2000 David Starner <dstarner98@aasaa.ofe.org>
17519 * gcc.texi (G++ and GCC): Add Java and Chill.
17520 (Bug Critera): Don't list languages.
17522 * gcc.texi (Incompatibilities): No longer claim most C compilers
17525 * gcc.texi (G++ and GCC): Update other front-ends list.
17527 Tue Jan 11 05:49:01 2000 Jeffrey A Law (law@cygnus.com)
17529 * i386.c (ix86_expand_setcc): Fix typo.
17530 (ix86_expand_movcc): Similarly.
17532 * Band-aid until haifa's bitset implementation is nuked.
17533 * haifa-sched.c (extract_bitlst): New parameter for size of the
17534 bitset in bits. All callers changed. Avoid looking at undefined
17535 bits in the bitset.
17536 (edgeset_bitsize): New variable.
17537 (schedule_region): Initialize edgeset_bitsize.
17539 2000-01-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17541 * Makefile.in (optabs.o): Depend on real.h
17542 (resource.o): Depend on insn-attr.h
17544 * builtins.c (result_vector): Wrap prototype in macro conditions
17545 governing definition and use.
17547 * c-common.c: Include tm_p.h.
17549 * c-lex.c: Likewise.
17551 * elfos.h: Constify a char*.
17553 * final.c (align_fuzz): Wrap prototype in macro HAVE_ATTR_length.
17554 (get_attr_length, shorten_branches, profile_after_prologue): Mark
17555 parameter with ATTRIBUTE_UNUSED.
17557 * fold-const.c (exact_real_inverse): Wrap variable `i' in
17560 * haifa-sched.c (schedule_insns): Mark parameter with
17563 * optabs.c: Include real.h.
17565 * real.h (ereal_atof): Add prototype arguments.
17567 * resource.c: Include insn-attr.h.
17569 * sdbout.c (sdbout_queue_anonymous_type,
17570 sdbout_dequeue_anonymous_types): Wrap in macro
17571 SDB_ALLOW_FORWARD_REFERENCES.
17572 (sdbout_init, sdbout_start_new_source_file): Mark parameter with
17575 * stmt.c (expand_return): Wrap variable `op0' in macro HAVE_return.
17577 * stupid.c: Include tm_p.h.
17579 * tree.c (real_value_from_int_cst): Mark parameter with
17582 2000-01-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17584 * i960-protos.h: New file.
17586 * i960.c: Include tm_p.h. Add static prototypes. Fix compile
17589 * i960.h: Move prototypes to i960-protos.h. Fix compile time warnings.
17591 2000-01-10 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
17593 * combine.c (expand_field_assignment): Do not discard SUBREGs
17594 while computing nonzero_bits.
17596 2000-01-09 Nick Clifton <nickc@cygnus.com>
17598 * config/arm/arm.c: Fix compile time warnings about signed vs
17599 unsigned constants.
17600 * config/arm/arm.h: Fix compile time warnings about signed vs
17601 unsigned constants.
17603 2000-01-09 Philip Blundell <philb@gnu.org>
17605 * config/arm/arm.c (output_return_instruction): Use `ldr' rather
17606 than `ldm' with only one register.
17607 * config/arm/arm.md (push_multi): Use `str' rather than `stm' with
17610 * config/arm/linux-gas.h (CLEAR_INSN_CACHE): Say that R0 is
17613 Sun Jan 9 17:50:23 2000 Hans-Peter Nilsson <hp@axis.com>
17615 * config/ns32k/ns32k.md (load or push effective address): Operand 1
17618 2000-01-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17620 * elfos.h (ASM_OUTPUT_LIMITED_STRING): Add parentheses around
17621 assignment used as truth value.
17623 * function.c (assign_temp): Mark parameter `dont_promote' with
17624 ATTRIBUTE_UNUSED. Wrap variable `unsignedp' with macro
17625 PROMOTE_FOR_CALL_ONLY.
17627 * genrecog.c (write_subroutine): Mark variable `operands' with
17630 * optabs.c (prepare_cmp_insn): Mark parameter `align' with
17633 * sdbout.c (sdbout_init): Likewise for parameter `asm_file'.
17634 (sdbout_begin_block, sdbout_end_block): Likewise for `file'.
17636 * toplev.c (note_deferral_of_defined_inline_function): Likewise
17639 2000-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
17641 * config/c4x.h: Tidy up comments.
17642 * config/c4x.c: Likewise.
17644 Sun Jan 9 01:02:55 EST 2000 John Wehle (john@feith.com)
17646 * fold-const.c (lshift_double, rshift_double): Handle
17647 shifting by 2 * HOST_BITS_PER_WIDE_INT correctly.
17649 2000-01-08 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
17651 * toplev.c (rest_of_compilation): Initialize cse_not_expected as
17652 in prepare_function_start().
17654 Sat Jan 8 12:12:46 2000 Nick Clifton <nickc@cygnus.com>
17656 * config/v850/v850.c (expand_epilogue): Interrupt functions no
17657 longer allocate extra stack for function calls.
17659 2000-01-08 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
17661 * config/c4x/c4x.md (*subqf3_set): Fix typo.
17663 2000-01-08 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
17665 * config/c4x/c4x.h (CALLER_SAVE_PROFITABLE): Define as 0.
17667 2000-01-07 David Edelsohn <edelsohn@gnu.org>
17669 * rs6000.c (processor_target_table): Add power3 as alias for 630.
17670 * aix43.h: Revert Aug 2 change.
17671 (HAS_INIT_SECTION): Define, not visible yet.
17672 (LD_INIT_SWITCH): Define, not visible yet.
17673 * t-aix43 (MULTILIB_OPTIONS): Revert Aug 2 change.
17675 * glimits.h (__LONG_MAX__): Recognize 64-bit AIX too.
17677 * collect2.c (main): Expand ld2 size further.
17678 (export_object_lst): Cast assignment to avoid warning.
17679 (main, LD_INIT_SWITCH): Add AIX 4.2+ -binitfini support.
17680 (scan_prog_file, COFF): Do not collect initialization or
17681 finalization functions generated for entire shared object if
17682 init/fini support present.
17684 2000-01-07 Nick Clifton <nickc@cygnus.com>
17686 * config/elfos.h: Tidy up formatting of marcos. Make sure
17687 that .section directives are always prefixed by a tab.
17689 * config/svr4.h: Add #include "elfos.h" and remove duplicate
17692 2000-01-07 Matt Austern <austern@sgi.com>
17694 * fold-const.c (real_hex_to_f): Remove duplicate declaration of
17697 Fri Jan 7 01:55:34 2000 Jeffrey A Law (law@cygnus.com)
17699 * Makefile.in (crtend.o): Pass @inhibit_libc@ to compilation of
17701 (crtbegin.o, s-crtS): Likewise.
17703 2000-01-06 Richard Henderson <rth@cygnus.com>
17705 * alpha.md (adddi_2+1): Limit offset such that it will be
17706 loadable with a single ldah+lda pair.
17707 (adddi_2+2): Explicitly fail split if we can't make it work.
17709 2000-01-06 Mumit Khan <khan@xraylith.wisc.edu>
17711 * protoize.c: Conditionally include unistd.h.
17712 (IS_SAME_PATH_CHAR): New macro.
17713 (IS_SAME_PATH): New macro.
17714 (CPLUS_FILE_SUFFIX): New macro.
17715 (cplus_suffix): New static variable.
17716 (is_abspath): New static function.
17717 (in_system_include_dir): Handle DOS style pathnames.
17718 (file_could_be_converted): Likewise.
17719 (file_normally_convertible): Likewise.
17720 (directory_specified_p): Likewise.
17721 (file_excluded_p): Likewise.
17722 (abspath): Likewise.
17723 (shortpath): Likewise.
17724 (referenced_file_is_newer): Likewise.
17725 (save_def_or_dec): Likewise.
17726 (do_processing): Likewise.
17728 (edit_file): Likewise. Use rename instead of link.
17729 (rename_c_file): Likewise. Don't rename syscalls file.
17730 (munge_compile_params): Define null device for DOS based systems.
17731 (process_aux_info_file): Use binary mode if appliable.
17732 (edit_file): Likewise.
17733 * invoke.texi (Running Protoize): Document C++ suffixes used.
17735 * cccp.c: Delete PATH_SEPARATOR, DIR_SEPARATOR and
17736 IS_DIR_SEPARATOR macros.
17737 * collect2.c: Likewise.
17738 * cppinit.c: Likewise.
17739 * dwarf2out.c: Likewise.
17741 * gcov.c: Likewise.
17742 * prefix.c: Likewise.
17744 * toplev.c: Likewise.
17745 * system.h: And move to here.
17747 * prefix.c (update_path): Fix typo in variable name.
17749 2000-01-06 Richard Henderson <rth@cygnus.com>
17751 * flow.c (mark_set_1): Use loop_depth+1 as reference weight.
17752 (find_auto_inc, mark_used_regs, try_pre_increment_1): Likewise.
17753 (count_reg_sets_1, count_reg_references): Likewise.
17754 (flow_loops_level_compute): Start counting actual loop depth at 1.
17755 (flow_loops_find): Likewise.
17756 * local-alloc.c (update_equiv_regs): Likewise.
17757 * regclass.c (regclass): Re-instate Jan 4 0-based loop_depth change.
17759 2000-01-06 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
17761 * defaults.h (DWARF_FRAME_REGISTERS): if not defined, default to
17762 FIRST_PSEUDO_REGISTER
17763 * dwarf2out.c: Don't include frame.h
17764 * dwarfout.c: Likewise
17765 * Makefile.in (dwarfout.o, dwarf2out.o): Remove dependence on
17768 Thu Jan 6 13:44:59 CET 2000 Jan Hubicka <jh@suse.cz>
17770 * reg-stack.c (subst_stack_regs_pat): Handle correctly USEs of
17773 * i386.c (movsf splitter): Fix typo in my last checkin.
17775 2000-01-05 Nick Clifton <nickc@cygnus.com>
17777 * varasm.c (IN_NAMED_SECTION): Allow targets to provide their
17778 own definition of this macro.
17779 (asm_emit_uninitialised): Invoke UNIQUE_SECTION if either
17780 flag_data_sections or UNIQUE_SECTION_P are true.
17782 * tm.texi (UNIQUE_SECTION): Document that it can be called for
17783 unitialised data decls.
17785 * config/i386/winnt.c (i386_pe_unique_section): Cope with
17786 being called for uninitialised data.
17788 * config/i386/interix.c (i386_pe_unique_section): Cope with
17789 being called for uninitialised data.
17791 * config/mips/elf.h (UNIQUE_SECTION): Cope with being called
17792 for uninitialised data.
17794 * config/mips/elf64.h (UNIQUE_SECTION): Cope with being called
17795 for uninitialised data.
17797 * config/mips/iri6gld.h (UNIQUE_SECTION): Cope with being called
17798 for uninitialised data.
17800 * config/arm/unknown-elf.h (IN_NAMED_SECTION): Define.
17801 (UNIQUE_SECTION_P): Always generate a unique section if
17802 flag_data_sections is true.
17803 (UNIQUE_SECTION): Also generate unique sections for
17804 uninitialised data.
17805 (ASM_OUTPUT_ALIGNED_BSS): Redefine to use named_section().
17806 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Redefine to use
17809 2000-01-06 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
17811 * config/c4x/t-c4x (TARGET_LIBGCC2_CFLAGS): Don't redefine SF, DF,
17814 2000-01-06 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
17816 * config/c4x/c4x.md (udivqi3, divqi3): Delete.
17817 (umodqi3, modqi3, udivhi3, divhi3, umodhi3, modhi3, ffsqi2): Likewise.
17818 (*smulqi3_highpart_noclobber, *umulqi3_highpart_noclobber): New.
17819 (*lshrqi3_const_noclobber, *lshrqi3_nonconst_noclobber): Likewise.
17820 (*ashrqi3_const_noclobber, *ashrqi3_nonconst_noclobber): Likewise.
17822 * c4x.h (INIT_TARGET_OPTABS): Define to init libcalls.
17824 2000-01-05 11:25 -0800 Zack Weinberg <zack@rabi.columbia.edu>
17826 * c-decl.c (finish_enum): Simplify code to determine minimum and
17827 maximum values of the enum, and calculate the type. Remove check
17828 for FUNCTION_DECLs in the values list, which cannot happen. Replace
17829 the DECL_INITIAL of each enumeration constant with a copy converted
17830 to the enumeration type. When updating variant types, don't bother
17831 updating the type itself.
17833 * c-typeck.c (build_binary_op): Simplify conditional expressions
17834 when weeding out spurious signed-unsigned warnings. Add new
17835 spurious warning category: if the unsigned quantity is an enum
17836 and its maximum value fits in signed_type(result_type). Update
17838 (build_conditional_expr): Warn here if one alternative is signed
17839 and the other is unsigned.
17841 2000-01-05 Nick Clifton <nickc@cygnus.com>
17843 * config/fr30/fr30.h: Remove extraneous comments.
17845 2000-01-05 Bernd Schmidt <bernds@cygnus.co.uk>
17847 * reload1.c (choose_reload_regs): When disabling a reload, also
17848 set reload_spill_index to -1.
17850 2000-01-04 Joel Sherrill (joel@OARcorp.com>
17852 * configure.in (m68*-*-rtemscoff*): New target, formal name for
17854 (m68*-*-rtemself*): New target.
17855 (mips64orion-*-rtems*): Remove duplicate definition of tm_file.
17856 (sparc*-*-rtemsaout*): New target, formal name for old sparc*-*-rtems*.
17857 (sparc*-*-rtemself*): New target.
17858 (sparc*-*-rtems*): Now elf not a.out.
17859 * config/i386/rtems.h: Include config/rtems.h.
17860 * config/i386/rtemself.h: Include config/rtems.h.
17861 * config/i960/rtems.h: Include config/rtems.h.
17862 * config/m68k/rtems.h: Include config/rtems.h.
17863 * config/m68k/rtemself.h: Include config/rtems.h.
17864 * config/mips/rtems64.h: Include config/rtems.h.
17865 * config/pa/rtems.h: Include config/rtems.h.
17866 * config/rs6000/rtems.h: Include config/rtems.h.
17867 * config/sh/rtems.h: Include config/rtems.h.
17868 * config/sh/rtemself.h: Include config/rtems.h.
17869 * config/sparc/rtems.h: Include config/rtems.h.
17870 * config/sparc/rtemself.h: Include config/rtems.h
17872 Tue Jan 4 23:59:26 2000 Denis Chertykov <denisc@overta.ru>
17874 * final.c (shorten_branches): Correctly compute length of
17875 asms without operands.
17877 Tue Jan 4 22:55:41 2000 Steve Chamberlain <sac@pobox.com>
17879 * configure.in: Add pj target.
17880 * configure: Regenerate.
17881 * config/pj: New directory.
17882 * config/pj/lib1funcs.S: New file.
17883 * config/pj/linux.h: New file.
17884 * config/pj/pj.c: New file.
17885 * config/pj/pj.md: New file.
17886 * config/pj/pjl.h: New file.
17887 * config/pj/t-pj: New file.
17888 * config/pj/xm-pj.h: New file
17890 Tue Jan 4 22:30:16 2000 Jeffrey A Law (law@cygnus.com)
17892 * toplev.c (rest_of_compilation): Run shorten-branches before
17895 2000-01-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
17897 * config/c4x/c4x.h (IS_XXX_REG, IS_XXX_REGNO): Swap behaviour of
17898 macros so that they're consistent with their names.
17899 * config/c4x/c4x.c (IS_XXX_REG, IS_XXX_REGNO): Likewise.
17900 * config/c4x/c4x.md (IS_XXX_REG, IS_XXX_REGNO): Likewise.
17902 2000-01-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
17904 * config/c4x/c4x.md (*addqi3_noclobber_reload): Ensure that CC never
17905 modified inadvertently.
17907 2000-01-04 Joel Sherrill <joel@OARcorp.com>
17909 * configure.in (v850*-*-rtems*): New target.
17910 * configure: Regenerate.
17911 * config/v850/rtems.h: New file.
17913 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
17915 * gthr-win32.h (__gthread_active_p): Support Mingw MT runtime.
17916 (__gthread_key_create): Likewise.
17917 (__gthread_key_dtor): Likewise.
17918 (__gthread_once): Fix logic.
17919 (__gthread_key_delete): Cast away constness.
17921 * i386/cygwin.h (SUBTARGET_SWITCHES): Add -mthreads option.
17922 * invoke.texi: Document.
17923 * i386/mingw32.h (CPP_SPEC): Use.
17924 (LIBGCC_SPEC): Likewise.
17925 * i386/crtdll.h (LIBGCC_SPEC): Likewise.
17927 2000-01-04 David Edelsohn <edelsohn@gnu.org>
17929 * rs6000/sysv4.h (ASM_OUTPUT_DEF): Undefine.
17930 (HANDLE_PRAGMA_PACK): Undefine.
17931 (SLOW_UNALIGNED_ACCESS): Define.
17933 2000-01-04 David Edelsohn <edelsohn@gnu.org>
17935 * expmed.c (SLOW_UNALIGNED_ACCESS): Add mode and align parameters
17936 to default definition.
17937 (store_bit_field): Call SLOW_UNALIGNED_ACCESS with mode and alignment.
17938 (store_fixed_bit_field): Call macro with word_mode and alignment.
17939 (extract_bit_field): Call macro with relevant mode and alignment.
17940 * expr.c (SLOW_UNALIGNED_ACCESS): Add mode and align parameters
17941 to default definition.
17942 (move_by_pieces): Call SLOW_UNALIGNED_ACCESS with word_mode
17944 (move_by_pieces_ninsns): Likewise.
17945 (clear_by_pieces): Likewise.
17946 (emit_push_insn): Likewise.
17947 (store_field): Call macro with relevant mode and alignment.
17948 (expand_expr): Likewise.
17949 (expand_expr_unaligned): Likewise.
17951 * rs6000.h (HANDLE_PRAGMA_PACK): Define.
17952 (SLOW_UNALIGNED_ACCESS): Define.
17953 (CASE_VECTOR_MODE): Always use 32-bit offsets.
17954 (ASM_FILE_END): Generate 64-bit symbol in 64-bit mode.
17955 (EXTRA_SECTION_FUNCTIONS): Indent .csect pseudo-op.
17956 (toc_section): Likewise and .toc pseudo-op.
17957 (ASM_DECLARE_FUNCTION): Likewise. Align text more strictly in
17959 (TEXT_SECTION_ASM_OP): Likewise.
17960 (ASM_OUTPUT_ADD_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Always use
17963 * a29k.h (SLOW_UNALIGNED_ACCESS): Add MODE and ALIGN parameters.
17964 * alpha.h (SLOW_UNALIGNED_ACCESS): Likewise.
17965 * arm/thumb.h (SLOW_UNALIGNED_ACCESS): Likewise.
17966 * gmicro.h (SLOW_UNALIGNED_ACCESS): Likewise.
17967 * fr30.h (SLOW_UNALIGNED_ACCESS): Likewise.
17969 Tue Jan 4 11:44:13 2000 Jeffrey A Law (law@cygnus.com)
17971 * regclass.c: Revert my Jan 4 change to loop cost computation.
17973 Tue Jan 4 19:22:39 MET 2000 Jan Hubicka <hubicka@freesoft.cz>
17975 * regclass.c (regclass): Do not obey REG_N_REFS in non-optimizing
17978 2000-01-04 Stan Cox <scox@cygnus.com>
17980 * haifa-sched.c (build_control_flow): Change unreachable simple
17981 loop test to check if current block has only one predecessor.
17982 (find_rgns): Initialize degree. Use dest as degree index, not src.
17984 2000-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17986 * builtins.c (expand_builtin_strlen): Initialize variable `icode'.
17988 * calls.c (expand_call): Likewise for
17989 `old_stack_arg_under_construction'.
17991 * cpphash.c (macroexpand): Likewise for `args' and `rest_zero'.
17993 * function.c (pad_to_arg_alignment): Likewise for `save_var' and
17996 * gcc.c (execute): Likewise for `ut' and `st'.
17998 * genattrtab.c (attr_rtx): Likewise for `rt_val'.
18000 * genopinit.c (gen_insn): Likewise for `m1', `m2' and `op'.
18002 * jump.c (jump_optimize_1): Likewise for `temp2'.
18004 * local-alloc.c (block_alloc): Likewise for `r1'.
18006 * loop.c (recombine_givs): Likewise for `life_start' and `life_end'.
18008 * reg-stack.c (check_asm_stack_operands): Likewise for `clobber_reg'.
18009 (subst_asm_stack_regs): Likewise for `clobber_reg' and `clobber_loc'.
18011 * regmove.c (fixup_match_1): Likewise for `insn_const', `dst_node'
18014 * reload.c (find_reloads): Likewise for `goal_alternative_number'
18015 and `goal_earlyclobber'.
18017 * scan-decls.c (scan_decls): Likewise for `prev_id_end'.
18019 * sdbout.c (sdbout_one_type): Likewise for `member_scl'.
18021 * stupid.c (stupid_life_analysis): Likewise for `chain'.
18023 * unroll.c (copy_loop_body): Likewise for `copy'.
18025 * varasm.c (output_constructor): Likewise for `byte'.
18027 Tue Jan 4 15:34:34 MET 2000 Jan Hubicka <hubicka@freesoft.cz>
18029 * i386.c (ix86_expand_move): Allow pushes of memory, offload to memory
18030 all FP constants for constant->reg moves.
18031 (ix86_split_to_parts): Try to convert memory address into immediate
18032 when available in the constant pool.
18033 * i386.h (PREFERRED_RELOAD_CLASS): Allow CONST_DOUBLE->integer reg
18035 (LEGITIMATE_CONSTANT_P): Return 1.
18036 * i386.md (pushsf): New splitter to convert constant pool memory
18037 reference to immediate.
18038 (mov?f): Likewise; do not allow CONST_DOUBLE for reg moves before
18041 2000-01-04 Bernd Schmidt <bernds@cygnus.co.uk>
18043 * i386.md (ashlsi3_cmpno): Don't accept variables shifts.
18044 (ashlhi3_cmpno, ashlqi3_cmpno, ashrsi3_cmpno, ashrhi3_cmpno,
18045 ashrqi3_cmpno, lshrsi3_cmpno, lshrhi3_cmpno, lshrqi3_cmpno): Likewise.
18046 (rotlsi3_cmpno, rotlhi3_cmpno, rotlqi3_cmpno, rotrsi3_cmpno,
18047 rotrhi3_cmpno, rotrqi3_cmpno): Likewise.
18049 2000-01-04 Martin von Löwis <loewis@informatik.hu-berlin.de>
18051 * ginclude/stdbool.h: Support compilation as C++.
18053 Tue Jan 4 01:35:13 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
18055 * fold-const.c (make_range): Don't try to reverse an unbounded range.
18057 Tue Jan 4 00:18:46 2000 Jeffrey A Law (law@cygnus.com)
18059 * regclass.c (regclass): Properly compute loop_cost. Adjust
18062 * regclass.c: Fix minor whitespace problems.
18064 2000-01-03 Anthony Green <green@cygnus.com>
18066 * config/i386/i386.md (builtin_setjmp_receiver): New pattern.
18067 Restore the pic register if required.
18069 2000-01-03 Ulrich Drepper <drepper@cygnus.com>
18071 * c-common.c (format_char_info): Update comment.
18072 (check_format_info): Recognize 'z' modifier in the same way 'Z'
18073 was recognized. Emit warning for formats new in ISO C99 only
18074 if flag_isoc9x is not set.
18076 Mon Jan 3 12:59:54 2000 Mark P. Mitchell <mark@codesourcery.com>
18078 * config/mips/iris6gld.h: Fix typo in -mabi=n32 specs.
18080 Mon Jan 3 15:33:37 MET 2000 Jan Hubicka <hubicka@freesoft.cz>
18082 * combine.c (expand_compound_operation): Do not convert ZERO_EXTEND to
18083 SIGN_EXTEND, convert SIGN_EXTEND to ZERO_EXTEND.
18084 (make_compound_operation): Choose cheaper alternative between
18085 ZERO_EXTEND and SIGN_EXTEND when sign bit is not set.
18087 * regclass.c (op_costs): Remove global variable.
18088 (record_reg_classes): New parameter "op_costs" and "reg_pref".
18089 (record_operand_costs): Break out from ...
18090 (scan_one_insn): ... here.
18091 (dump_regclass): Make dumps nicer.
18092 (regclass): Dump preferrences choosed and changes done during passes.
18094 2000-01-03 Jakub Jelinek <jakub@redhat.com>
18096 * config/sparc/sparc.c (gen_df_reg): Fix for 32bit SPARC.
18098 2000-01-03 Jakub Jelinek <jakub@redhat.com>
18100 * config/sparc/sparc.c (gen_df_reg): New function.
18101 * config/sparc/sparc-protos.h (gen_df_reg): Add prototype.
18102 * config/sparc/sparc.md (movtf_no_e_insn_sp64+1,
18103 movtf_no_e_insn_sp64+2, movtf_no_e_insn_sp64+3, movtf_cc_sp64+1,
18104 movtf_cc_reg_sp64+1): Use it.
18106 2000-01-02 Mark Mitchell <mark@codesourcery.com>
18108 * integrate.c (copy_decl_for_inlining): Clear TREE_ADDRESSABLE on
18109 copied LABEL_DECLs.
18111 Mon Jan 3 02:54:40 2000 Hans-Peter Nilsson <hp@bitrange.com>
18113 * config/i386/i386.c (ix86_expand_unary_operator): Function
18114 definition made void.
18115 (ix86_expand_binary_operator): Update outdated preceding comment.
18116 * config/i386/i386-protos.h (ix86_expand_unary_operator): Update
18119 * config/i386/i386.c (override_options): Fix option-name typo.
18121 2000-01-02 Mark Mitchell <mark@codesourcery.com>
18123 * system.h (CEIL): Define.
18124 * builtins.c (CEIL): Remove.
18125 * expmed.c (CEIL): Likewise.
18126 * expr.c (CEIL): Likewise.
18127 * stor-layout.c (CEIL): Likewise.
18129 2000-01-02 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
18131 * expr.c (store_constructor_field): Fix typo introduced with last
18134 2000-01-01 Mark Mitchell <mark@codesourcery.com>
18136 * tree.h (BINFO_N_BASETYPES): New macro.
18138 2000-01-01 Bernd Schmidt <bernds@cygnus.co.uk>
18140 * expmed.c (emit_store_flag): Prevent losing a pending stack
18141 adjust the same way we prevent losing queued increments.
18143 See ChangeLog.2 for earlier changes.