1 2000-07-10 Nick Clifton <nickc@cygnus.com>
3 * libgcc2.c (next_stack_level): Cast result of computation to
4 (void **) so that the assignment doe snot generate a warning.
6 2000-07-10 Chandrakala Chavva <cchavva@redhat.com>
8 * flags.h : Add new variable flag_single_precision_constant.
9 * toplev.c (display_help) : Add -fsingle-precision-constant option.
10 (flag_single_precision_constant): New.
11 * c-lex.c (yylex): Convert floating point constant to single
13 * invoke.texi : Add documentation for this new option.
15 2000-07-10 Gabriel Dos Reis <gdr@codesourcery.com>
17 * diagnostic.c (output_octal): Second parameter is unsigned.
18 (output_long_octal): Likewise.
19 (output_hexadecimal): Likewise.
20 (output_long_hexadecimal): Likewise.
21 (output_format): Adjust arguments extraction. Tweak.
22 (output_verbatim, verbatim): End variable argument list.
23 (report_diagnostic): Improve documentation.
25 2000-07-10 Benjamin Chelf <chelf@codesourcery.com>
27 * c-common.h (build_stmt): Declare.
28 (build_continue_stmt): Likewise.
29 (build_break_stmt): Likewise.
30 (build_return_stmt): Likewise.
32 * c-decl.c (do_case): Rewrite to do what previously done in
35 * c-semantics.c (build_stmt): Define.
36 (build_return_stmt): Likewise.
37 (build_break_stmt): Likewise.
38 (build_continue_stmt): Likewise.
39 (build_case_label): Likewise.
41 * c-parse.in (BREAK): Change to build tree, then generate RTL.
47 * c-parse.y: Regenerate.
48 * c-pasre.c: Likewise.
50 2000-07-09 Jason Merrill <jason@redhat.com>
52 * expr.c (expand_expr): Bail earlier if we get an error_mark_node.
54 * tree.h (STRIP_NOPS): Check for error_mark_node.
55 (STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Likewise.
56 (dwarf2out_*): Remove duplicate declarations.
58 * c-decl.c (duplicate_decls): Copy DECL_ABSTRACT_ORIGIN from
59 DECL_ABSTRACT_ORIGIN, not DECL_ORIGIN.
61 2000-07-10 Gabriel Dos Reis <gdr@codesourcery.com>
63 * diagnostic.c (wrap_text): New function.
64 (maybe_wrap_text): Likewise.
65 (output_add_string): Use it.
66 (output_format): Likewise.
67 (count_error): Use verbatim instead of notice.
68 (report_error_function): Likewise. Don't use plain fprintf.
69 (finish_diagnostic): New function.
70 (output_do_verbatim): Tweak. Commonalize functionalities in
71 output_verbatim and verbatim.
72 (output_verbatim): Adjust.
74 (report_diagnostic): Define.
76 * diagnostic.h (report_diagnostic): Prototype.
78 2000-07-09 Zack Weinberg <zack@wolery.cumb.org>
80 * cppexp.c (_cpp_parse_expr): Don't use unary plus.
82 2000-07-09 Neil Booth <NeilB@earthling.net>
84 * cpphash.h: ISvspace, is_vspace, is_nvspace: New.
85 IShspace, ISspace: Update.
87 * cppinit.c: ISTABLE: Update.
90 * cpplex.c (IS_HSPACE, S_NEWLINE): Remove.
91 (IS_DIRECTIVE): Rename KNOWN_DIRECTIVE.
92 (skip_block_comment, skip_line_comment, parse_string,
93 lex_line): Use is_vspace rather than IS_NEWLINE.
94 (skip_whitespace, lex_line): Clean up to use is_nvspace.
95 (lex_line): Use KNOWN_DIRECTIVE. Any kind of directive
97 (lex_next): Unconditionally stop if within a directive.
98 Treat directives within macro invocations as directives
99 (after parse_args emits error), not as the argument.
101 2000-07-09 Gabriel Dos Reis <gdr@codesourcery.com>
103 * diagnostic.c (diagnostic_args): New macro.
104 (diagnostic_msg): Likewise.
105 (output_formatted_integer): Likewise.
106 (output_state): New data type.
107 (digit_buffer): Make global.
108 (output_add_integer): Rename to output_decimal. Squeeze
110 (output_long_decimal, output_unsigned_decimal,
111 output_long_unsigned_decimal, output_octal, output_long_octal,
112 output_hexadecimal, output_long_hexadecimal): New functions.
113 (output_append_r): New function.
114 (output_append): Tweak.
115 (output_flush_on): Rename to output_to_stream.
116 (output_format): Change prototype. Improve documentation. Handle
117 more format specifiers.
118 (build_location_prefix): Rename to context_as_prefix.
119 (output_notice): Rename to output_do_printf.
120 (output_printf): Tweak.
121 (line_wrapper_printf): Likewise.
122 (vline_wrapper_message_with_location): Adjust call to renamed
124 (v_message_with_decl): Likewise.
125 (default_print_error_function): Likewise.
126 (save_output_state): New function.
127 (restore_output_state): Likewise.
128 (output_do_verbatim): Likewise.
129 (output_verbatim): Define.
130 (verbatim): Likewise.
132 * diagnostic.h (printer_fn): Change return type from void to int.
133 Improve documentation.
134 (output_add_integer): Rename to output_decimal.
135 (output_flush_on, output_format): Don't export.
136 (output_verbatim, verbatim): Declare.
138 2000-07-08 Toon Moene <toon@moene.indiv.nluug.nl>
140 * fold-const.c (extract_muldiv) case PLUS_EXPR, MINUS_EXPR:
141 Check whether c divides op1 exactly if operation is not
144 2000-07-08 Richard Henderson <rth@cygnus.com>
146 * final.c (final): Do not abort when reg-stack introduces
149 2000-07-08 Zack Weinberg <zack@wolery.cumb.org>
151 * cpplib.h (struct cpp_name): Now struct cpp_string.
152 (CPP_INT, CPP_FLOAT, CPP_NUMBER, CPP_COMMENT,
153 CPP_HEADER_NAME): Change to type S.
154 (struct cpp_token): Rename 'name' field to 'str'. Add 'node'
155 field, a cpp_hashnode *. All references to val.name updated
156 to use val.str or val.node as appropriate.
157 (struct cpp_reader): Add spec_nodes field.
158 (cpp_idcmp): Now cpp_ideq; takes a token * and a char *.
160 * cpphash.h (struct spec_nodes): New.
161 (enum spell_type): Reorder. Only SPELL_STRING tokens use
162 val.str. All references to 'spelling > SPELL_NONE' updated to
165 (CPP_IN_SYSTEM_HEADER): Check pfile->buffer and
166 pfile->buffer->inc are not NULL before dereferencing them.
168 * cpplex.c (parse_name): Take a pointer to the current token,
169 plus current position and limit as args; return the new
170 position; don't copy the text of a name into the string
171 buffer, instead call cpp_lookup and store the node pointer.
172 If extending a token, copy out the text of the old into a
173 scratch buffer, append the new, look that up and store the new
174 node pointer. Inline.
175 (maybe_paste_with_next): If the result of paste is a NAME,
176 then look up the pasted text and store its node pointer.
177 (lex_line): Adjust for new parse_name interface.
178 Check for L"str", L'str' using spec_nodes->n_L.
179 (spell_token): SPELL_IDENT tokens have their spelling in
180 val.node->name. Handle SPELL_STRING tokens that don't have
182 (_cpp_expand_name_space,
183 (can_paste): Check for L ## "str" using spec_nodes->n_L.
184 (cpp_get_token, special_symbol): No need to call cpp_lookup.
185 (cpp_idcmp): Now cpp_ideq; take a token * and a const char *;
186 return 1=equal 0=not, not a tristate.
188 * cpphash.c (var_args_str): Delete.
189 (find_param): Compare node fields directly.
190 (is__va_args__): Use CPP_PEDANTIC. Just compare
191 token->val.node with spec_nodes->n__VA_ARGS__.
192 (dump_funlike_macro): Don't use var_args_str.
194 * cpplib.c (_cpp_check_directive): Just walk through
195 spec_nodes->dirs comparing pointers.
196 (get_define_node, do_pragma_poison, detect_if_not_defined,
197 parse_ifdef): The identifier has already been looked up.
198 (do_ifdef, do_ifndef): parse_ifdef won't return a poisoned
200 (do_if): Only call detect_if_not_defined at beginning of file.
201 (_cpp_parse_assertion): Only copy string pointers for
203 (pragma_dispatch): Take a node pointer and examine its name
205 (_cpp_init_stacks): Also initialize the spec_nodes structure.
207 * cppinit.c (cpp_reader_init): Call _cpp_init_stacks after
209 (cpp_cleanup): Free pfile->spec_nodes. Call _cpp_cleanup_* in
210 reverse order from the corresponding _cpp_init_* routines.
212 * cppexp.c (parse_number, parse_charconst, parse_defined,
213 lex): Check val.node->type instead of calling cpp_defined.
214 Use spec_nodes entries where appropriate.
216 * fix-header.c, scan-decls.c: Update for interface changes.
218 2000-07-08 Geoffrey Keating <geoffk@cygnus.com>
220 * config/rs6000/rs6000.c (rs6000_emit_move): Fix conditions for
221 emitting aux_truncdfsf2.
223 2000-07-03 Donn Terry (donnte@microsoft.com)
225 * cppinit.c (print_help): split overlong line into ISO C89
228 2000-07-07 Zack Weinberg <zack@wolery.cumb.org>
230 * cppexp.c: Update all code for new lexer interface.
231 (op_t, operator codes, struct token, tokentab2, op_to_str): Remove.
232 (struct suffix, vsuf_1, vsuf_2, vsuf_3, op_to_prio): New.
233 * cpplex.c (token_names): Trim leading CPP_ from names; make
234 the strings unsigned.
235 (_cpp_spell_operator): New.
236 (is_macro_disabled): Disable all macros if rescanning
238 (_cpp_get_directive_token): Remove.
240 * cppinit.c: Don't set no_macro_expand.
241 * cpplib.c (read_line_number, do_line): Check only for EOF,
243 * cpphash.h: Update prototypes.
244 * cpplib.h (CPP_VSPACE): Remove.
245 (struct cpp_reader): Remove no_macro_expand.
247 2000-07-08 Neil Booth <NeilB@earthling.net>
249 * cpphash.c (is__va_args__): New function.
250 (count_params): Fix line reported in error messages. Use
251 is__va_args__. Don't return ')' on error. Flag GNU style
252 rest args macro definitions.
253 (parse_define): Check macro name is not __VA_ARGS__.
254 (save_expansion): Check identifier in non-varargs-macro is
255 not __VA_ARGS__. Don't flag GNU_VARARGS.
256 * cpplex.c (parse_args): Accept no argument iff GNU_REST_ARGS.
257 (maybe_paste_with_next): Use per-macro GNU_REST_ARGS rather
258 than per-token GNU_VARARGS.
259 * cpplib.h (GNU_VARARGS): Remove.
260 (GNU_REST_ARGS): New.
262 Sat Jul 8 01:38:25 MET DST 2000 Jan Hubicka <jh@suse.cz>
264 * i386.md (call_pop, call, call_value_pop): Do not set
265 current_function_uses_pic_offset_table for calls to static
266 functions or indirect calls.
268 2000-07-07 Jim Wilson <wilson@cygnus.com>
270 * config/ia64/ia64.c (rws_access_reg): New local write_count. If
271 is_predicate_reg, then take max write_count of register pair.
273 2000-07-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
275 * tradcpp.c (main): Rename label `include' to `add_include' to
276 avoid conflicts with variable `include' in traditional C.
278 2000-07-07 Jakub Jelinek <jakub@redhat.com>
280 * integrate.c (copy_insn_list): Remove REG_LABEL notes.
282 2000-07-07 Jakub Jelinek <jakub@redhat.com>
284 * sibcall.c (uses_addressof): Add INMEM argument, check for
285 current_function_internal_arg_pointer outside of MEM rtxs in addition
287 (sequence_uses_addressof): Update caller.
289 2000-07-07 Zack Weinberg <zack@wolery.cumb.org>
291 * tradcpp.c (initialize_builtins): Honor NO_BUILTIN_SIZE_TYPE
294 2000-07-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
296 * system.h (UNION_INIT_ZERO): New macro for initializing union
299 * cpplex.c (placemarker_token, eof_token): Use UNION_INIT_ZERO.
301 2000-07-07 Neil Booth <NeilB@earthling.net>
305 Fri Jul 7 07:47:35 2000 Jeffrey A Law (law@cygnus.com)
307 * final.c (final): Detect out of bounds array access to
308 the insn_lengths array.
310 2000-07-07 Kazu Hirata <kazu@hxi.com>
312 * fold-const.c (fold): Fix a comment typo.
314 2000-07-07 Neil Booth <NeilB@earthling.net>
316 * cpp.texi: Update to new lexer.
318 2000-07-06 Zack Weinberg <zack@wolery.cumb.org>
320 * tradcpp.c: New file.
321 * tradcif.y: New file.
322 * tradcif.c: New generated file.
324 * Makefile.in: Add rules to build tradcpp.o, tradcif.o,
325 $(srcdir)/tradcif.c. Add tradcpp to STAGESTUFF and
326 dependencies of C. Install tradcpp from install-common, in
329 2000-07-06 Zack Weinberg <zack@wolery.cumb.org>
331 * cppinit.c: Include cppdefault.h. Refer to
332 cpp_GCC_INCLUDE_DIR and cpp_GCC_INCLUDE_DIR_len, not directly
333 to GCC_INCLUDE_DIR and its length.
334 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
335 USER_LABEL_PREFIX, REGISTER_PREFIX, struct default_include,
336 STANDARD_INCLUDE_DIR, STANDARD_INCLUDE_COMPONENT): Move to
338 (include_defaults_array): Move to cppdefault.c.
340 * cppdefault.h: New file.
341 * cppdefault.c: New file.
343 * Makefile.in (LIBCPP_OBJS): Add cppdefault.o.
344 (cppinit.o): Don't apply $(PREPROCESSOR_DEFINES) to this file.
345 (cppdefault.o): New rule; apply $(PREPROCESSOR_DEFINES) to
348 Thu Jul 6 18:30:36 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
350 * reload.c (push_reload): When seeing if can reuse a register,
351 check extra registers against widest of INMODE and OUTMODE.
353 2000-07-06 Neil Booth <NeilB@earthling.net>
355 * cpplib.c: (_cpp_parse_assertion): Perform hash lookups
356 based on full length of predicate.
358 2000-07-06 Hans-Peter Nilsson <hp@axis.com>
360 * timevar.c: [HAVE_SYS_RESOURCE_H]: Include <sys/resource.h>.
361 [NEED_DECLARATION_GETRUSAGE]: Declare getrusage.
363 2000-07-05 Kazu Hirata <kazu@hxi.com>
365 * h8300-proto.h: Fix formatting.
369 2000-07-05 Jim Wilson <wilson@cygnus.com>
371 * config/ia64/ia64.h (HARD_REGNO_MODE_OK): If FR_REGNO_P, disallow
374 2000-07-05 Rodney Brown <RodneyBrown@pmsc.com>
376 * invoke.texi: Fix minor typos
377 * md.texi: Fix minor typos
379 2000-07-05 Zack Weinberg <zack@wolery.cumb.org>
381 * cpplib.c (_cpp_parse_assertion): Fix buffer overrun.
383 2000-07-04 Zack Weinberg <zack@wolery.cumb.org>
385 * cpplex.c: Don't include sys/mman.h.
386 (cpp_push_buffer, cpp_pop_buffer): Moved to cpplib.c.
388 * cpplib.c: Include sys/mman.h and obstack.h.
389 (cpp_push_buffer): Moved from cpplex.c; allocate buffers on an
391 (cpp_pop_buffer): Moved from cpplex.c; free buffers from an obstack.
392 (_cpp_unwind_if_stack): Now static, unwind_if_stack. Don't
393 bother freeing if stack entries (they will be freed with their buffer).
394 (do_endif): Free if stack entries from the buffer obstack.
395 (push_conditional): Allocate if stack entries from the buffer obstack.
397 (find_answer): Rename to _cpp_find_answer.
398 (do_assert, do_unassert): Update.
400 * cpphash.h: Update prototypes.
401 (xobnew): New convenience macro.
402 * cpplib.h (struct cpp_reader): Add hash_ob and buffer_ob fields.
404 (struct cpp_hashnode): Remove disabled field.
406 * cppinit.c: Don't include hashtab.h or splay-tree.h.
407 (report_missing_guard): Moved to cppfiles.c.
408 (cpp_reader_init): Call cpp_init_stacks, cpp_init_macros,
410 (cpp_cleanup): Call cpp_cleanup_stacks, cpp_cleanup_macros,
411 cpp_cleanup_includes. Don't destroy hashtab or
412 all_include_files here.
413 (cpp_finish): Use _cpp_report_missing_guards.
415 * cppfiles.c (report_missing_guard): Moved from cppinit.c.
416 (_cpp_init_include_table): Rename _cpp_init_includes.
417 (_cpp_cleanup_includes, _cpp_report_missing_guards): New.
419 * cppexp.c (parse_assertion): Update for new name of
422 * Makefile.in (cpplib.o, cpphash.o, cppinit.o): Update deps.
424 2000-07-04 Zack Weinberg <zack@wolery.cumb.org>
426 * cpplib.c (do_ident): s/VSPACE/EOF/
428 2000-07-05 Neil Booth <NeilB@earthling.net>
430 * cpplex.c: Fix trigraph replacement within strings.
432 2000-07-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
434 * rs6000/aix.h (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier.
436 * xcoffout.c (assign_type_number): Constify.
437 (xcoffout_source_file): Add static prototype. Don't needlessly
438 cast away const-ness.
440 2000-07-04 Jason Merrill <jason@redhat.com>
442 * frame.h (frame_state): Move base_offset to end.
444 Mon Jul 3 21:31:43 2000 Clinton Popetz <cpopetz@cygnus.com>
446 * calls.c (emit_library_call_value_1): Revert previous change.
448 2000-07-03 Zack Weinberg <zack@wolery.cumb.org>
450 * fix-header.c (struct partial_proto): Remove unnecessary fields.
451 (recognized_extern, recognized_function, read_scan_file):
452 Update for new scheme.
453 (check_protection): It's still a multiple include guard even
454 if it doesn't always trigger.
455 * scan-decls.c (skip_to_closing_brace, scan_decls): Update for
457 * scan.h: Declare struct cpp_token. Update prototypes.
459 2000-07-03 Neil Booth <neilb@earthling.net>
460 Zack Weinberg <zack@wolery.cumb.org>
462 Complete overhaul of the lexer and macro expander.
464 * cpphash.c (object_defn, funct_defn, push_macro_expansion,
465 arg, arglist, argdata, reflist, collect_objlike_expansion,
466 collect_funlike_expansion, collect_params,
467 warn_trad_stringify, trad_stringify, duplicate_arg_p, add_pat,
468 unsafe_chars, macarg, compare_defs, special_symbol,
469 scan_arguments, stringify, funlike_macroexpand,
470 _cpp_quote_string, monthnames): Delete.
471 (cpp_lookup, _cpp_free_definition, dump_funlike_macro,
472 _cpp_create_definition, _cpp_dump_definition,
473 dump_hash_helper): Adjust.
474 (find_param, count_params, parse_define, var_args_str,
475 check_macro_redefinition, save_expansion): New.
477 * cpplex.c (skip_block_comment, skip_line_comment, parse_name,
478 parse_string, output_line_command, trigraph_replace,
479 lex_line, cpp_push_buffer, cpp_pop_buffer, cpp_output_tokens,
480 cpp_scan_buffer_nooutput, cpp_scan_buffer, cpp_free_toklist,
481 cpp_idcmp, _cpp_get_directive_token, _cpp_init_input_buffer,
482 _cpp_skip_rest_of_line): Modify.
484 (maybe_macroexpand, skip_comment, copy_comment, skip_string,
485 find_position, null_warning, bump_column, expand_name_space,
486 pedantic_whitespace, _cpp_output_list, _cpp_slice_toklist,
487 _cpp_squeeze_toklist, _cpp_scan_until, _cpp_skip_hspace,
488 _cpp_parse_name, _cpp_lex_token, cpp_get_non_space_token,
489 _cpp_prescan): Delete.
491 (dump_param_spelling, process_directive, lex_next,
492 is_macro_disabled, stringify_arg, expand_context_stack,
493 output_token, make_string_token, alloc_number_token,
494 special_symbol, duplicate_token, maybe_paste_with_next,
495 can_paste, prevent_macro_expansion, restore_macro_expansion,
496 get_temp_token, release_temp_tokens, quote_string,
497 token_names, token_spellings, _cpp_expand_name_space,
498 _cpp_glue_header_name, _cpp_reserve_name_space,
499 digraph_spellings, trigraph_ok, skip_whitespace, save_comment,
500 placemarker_token, eof_token, cpp_context, macro_args,
501 get_raw_token, parse_arg, parse_args, save_token,
502 push_arg_context, push_macro_context, pop_context,
503 do_pop_context, free_macro_args, _cpp_get_line,
504 _cpp_run_directive): New.
506 * cpplib.c (validate_else, parse_include, push_conditional,
507 pass_thru_directive, read_line_number, parse_ifdef,
508 detect_if_not_defined, _cpp_check_directive, do_define,
509 do_undef, do_include, do_import, do_include_next, do_error,
510 do_warning, do_ident, do_pragma, pragma_dispatch, gcc_pragmas,
511 top_pragmas, do_pragma_gcc, do_pragma_implementation,
512 do_pragma_poison, do_pragma_system_header,
513 do_pragma_dependency, do_sccs, do_ifdef, do_ifndef, do_else,
514 dl_elif, do_endif, _cpp_unwind_if_stack, do_assert,
515 do_unassert, cpp_define, cpp_undef, cpp_assert, cpp_unassert,
516 cpp_defined): Update for new scheme.
517 (strtoul_for_line, get_define_node, dump_macro_name,
518 _cpp_check_linemarker, _cpp_parse_assertion): New.
519 (_cpp_handle_directive, do_pragma_default): Delete.
521 * cpphash.h (struct predicate): Now struct answer.
522 (enum spell_type, struct token_spelling, struct directive,
523 directive_handler): New.
524 Update prototypes. Remove unused macros.
525 * cpplib.h: Update prototypes. Remove unused macros,
526 structure definitions, and fields.
528 * cpperror.c (print_containing_files, v_message): Adjust.
529 * cppexp.c (parse_assertion, lex, parse_escape,
530 _cpp_parse_expr): Adjust.
531 * cppfiles.c (open_include_file, _cpp_execute_include,
532 _cpp_compare_file_date, cpp_read_file, read_include_file):
534 * cppinit.c (dump_special_to_buffer): Delete.
535 (append_include_chain, merge_include_chains, cpp_reader_init,
536 cpp_cleanup, initialize_builtins, builtin_array, cpp_start_read,
537 cpp_finish, handle_option, print_help): Adjust.
538 * cppmain.c (main): Adjust.
540 2000-07-03 Zack Weinberg <zack@wolery.cumb.org>
542 * cppspec.c (lang_specific_driver): Use double quotes in error
545 Mon Jul 3 16:53:43 2000 Clinton Popetz <cpopetz@cygnus.com>
547 * calls.c (emit_library_call_value_1): Use valreg instead
548 of hard_libcall_value.
550 2000-07-03 Geoff Keating <geoffk@cygnus.com>
552 * config/rs6000/rs6000.c (rs6000_emit_move): New function.
553 * config/rs6000/rs6000-proto.h: Prototype rs6000_emit_move.
554 * config/rs6000/rs6000.md (movsi): Use rs6000_emit_move.
562 * expmed.c (expand_mult_highpart): Use op1 instead of wide_op1 when
563 mode instead of wider_mode is being used.
565 2000-07-03 Jakub Jelinek <jakub@redhat.com>
567 * config/i386/i386.md (movstrictqi_xor): Use 'q' constraint instead
568 of 'r'. Use q_regs_operand.
569 (andsi_1+2): Use q_regs_operand.
571 2000-07-03 Jakub Jelinek <jakub@redhat.com>
573 * builtins.c (get_memory_rtx): Always put into alias set 0.
575 2000-07-03 Nick Clifton <nickc@cygnus.com>
577 * config/arm/arm.md: Fix post increment and pre increment
578 peepholes so that they do not generate UNPREDICATBLE opcodes.
579 (ie ones where the increment clobbers the source/destination).
581 2000-07-01 Marek Michalkiewicz <marekm@linux.org.pl>
583 * config/avr/avr.c (out_adj_frame_ptr): Make "frame pointer
584 change too big for -mtiny-stack" a warning, if larger than 63.
585 (out_set_stack_ptr): Change the logic so -mno-interrupts is
586 always safe to use on possible future devices.
587 (function_prologue): Write SPH before SPL, for consistency.
588 If interrupt_func_p true, we know we have enabled interrupts.
589 (avr_num_arg_regs): New function. Round up to even number of
590 bytes if no -mpack-args or if calling a libgcc function.
591 (function_arg, function_arg_advance): Use it.
592 (output_movsisf, ashlsi3_out, ashrsi3_out, lshrsi3_out):
593 Output "movw" if available.
594 (out_tsthi, out_tstsi, ashlqi3_out, lshrqi3_out): Change uses
595 of TEST_HARD_REG_CLASS macro to test_hard_reg_class function.
596 (asm_output_section_name): Add blanks for consistent output.
597 (encode_section_info): Set TREE_READONLY for progmem data to
598 avoid gas warnings about changed section attributes.
599 (avr_hard_regno_mode_ok): Force non-QImode data to start in
600 even numbered registers on devices with "movw".
601 * config/avr/avr.h (MASK_*): Define bits for target_flags.
602 (TARGET_SWITCHES): Mark help strings for translation.
603 Add new -mpack-args and -menhanced switches.
604 (TARGET_OPTIONS): Mark help strings for translation.
605 (progmem_section): Add section attributes.
606 * config/avr/avr.md (*movhi, call_insn, call_value_insn):
607 Output "movw" if available.
608 (mulqi3, mulqihi3, umulqihi3, mulhi3, *tablejump_enh):
610 * config/avr/libgcc.S (_mulqi3, _divqi3): Update to the new
611 call convention (arguments aligned on even registers).
612 (_cleanup, _exit): Make weak symbols libc can override.
614 2000-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
616 * fp-bit.h: New file.
618 * fp-bit.c: Move common code, prototypes, etc into fp-bit.h.
619 Comment #endif statements.
620 (__thenan_sf, __thenan_df): Add missing braces around initializer.
622 Mon Jul 3 00:32:47 2000 Jeffrey A Law (law@cygnus.com)
624 * gcse.c (compute_pre_data): Compute ae_kill using other local
625 properties instead of calling compute_ae_kill.
627 * alias.c (init_alias_analysis): Do not call
628 prologue_epilogue_contains until after reload has completed.
630 2000-07-02 Benjamin Chelf <chelf@codesourcery.com>
632 * c-common.h (genrtl_begin_compound_stmt): Remove declaration.
633 (genrtl_finish_compound_stmt): Likewise.
634 (genrtl_compound_stmt): Change to return void.
636 * c-semantics.c (genrtl_begin_compound_stmt): Remove function and
637 move code from here to ...
638 (genrtl_compound_stmt): ... here.
639 (genrtl_finish_compound_stmt): Remove.
640 (expand_stmt): Add comment.
642 2000-07-02 Zack Weinberg <zack@wolery.cumb.org>
644 * c-typeck.c (build_indirect_ref): Use COMPLETE_OR_VOID_TYPE_P
647 2000-07-02 Jakub Jelinek <jakub@redhat.com>
649 * cpplib.h (struct cpp_reader): New field include_depth.
650 (struct cpp_printer): Rename last_bsd to last_id.
651 * cppfiles.c (read_include_file): Bump include_depth.
652 * cpplex.c (cpp_pop_buffer): Decrement include_depth.
653 (output_line_command): Output correct #line if a header
654 is including itself and is not protected against multiple inclusion.
655 Use include_depth instead of buffer_stack_depth, last_id instead of
657 * cppinit.c (cpp_start_read): Initialize last_id instead of
660 2000-07-01 Benjamin Chelf <chelf@codesourcery.com>
662 * Makefile.in (C_AND_OBJC_OBJS): Added c-semantics.o.
663 (c-semantics.o): New target.
665 * c-common.h (TREE_LANG_FLAG_?): Added documentation.
666 (genrtl_do_pushlevel): Moved from cp/cp-tree.h.
667 (genrtl_clear_out_block): Likewise.
668 (genrtl_goto_stmt): Likewise.
669 (genrtl_expr_stmt): Likewise.
670 (genrtl_decl_stmt): Likewise.
671 (genrtl_if_stmt): Likewise.
672 (genrtl_while_stmt): Likewise.
673 (genrtl_do_stmt): Likewise.
674 (genrtl_return_stmt): Likewise.
675 (genrtl_for_stmt): Likewise.
676 (genrtl_break_stmt): Likewise.
677 (genrtl_continue_stmt): Likewise.
678 (genrtl_scope_stmt): Likewise.
679 (genrtl_switch_stmt): Likewise.
680 (genrtl_case_label): Likewise.
681 (genrtl_begin_compound_stmt): Likewise.
682 (gerntl_finish_compound_stmt): Likewise.
683 (genrtl_compound_stmt): Likewise.
684 (genrtl_asm_stmt): Likewise.
685 (genrtl_decl_cleanup): Likewise.
686 (DECL_ANON_UNION_ELEMS): Likewise.
687 (emit_local_var): Likewise.
688 (make_rtl_for_local_static): Likewise.
689 (expand_cond): Likewise.
690 (expand_stmt): Likewise.
691 (c_expand_return): Likewise.
692 (c_expand_start_case): Likewise.
694 (COMPOUND_STMT_NO_SCOPE): Likewise.
695 (c_expand_asm_operands): Likewise.
696 (NEW_FOR_SCOPE_P): New macro.
697 (expand_expr_stmt_fn): New type.
699 (set_current_function_name_declared): Likewise.
700 (current_function_name_declared): Likewise.
701 (lang_expand_stmt): Likewise.
702 (stmts_are_full_exprs_p): Likewise.
703 (anon_aggr_type_p): Likewise.
704 (lang_expand_expr_stmt): Likewise.
705 (build_case_label): Likewise.
707 * c-decl.c (lang_expand_expr_stmt): Initialize.
708 (stmts_are_full_exprs_p): Define.
709 (current_function_name_declared): Likewise.
711 (lang_expand_stmt): Likewise.
712 (set_current_function_name_declared): Likewise.
713 (anon_aggr_type_p): Likewise.
715 * c-semantics.c: New file.
716 (expand_cond): Moved from cp/semantics.c.
717 (genrtl_do_pushlevel): Likewise.
718 (genrtl_clear_out_block): Likewise.
719 (genrtl_goto_stmt): Likewise.
720 (genrtl_expr_stmt): Likewise.
721 (genrtl_decl_stmt): Likewise.
722 (genrtl_if_stmt): Likewise.
723 (genrtl_while_stmt): Likewise.
724 (genrtl_do_stmt): Likewise.
725 (genrtl_return_stmt): Likewise.
726 (genrtl_for_stmt): Likewise.
727 (genrtl_break_stmt): Likewise.
728 (genrtl_continue_stmt): Likewise.
729 (genrtl_scope_stmt): Likewise.
730 (genrtl_switch_stmt): Likewise.
731 (genrtl_case_label): Likewise.
732 (genrtl_begin_compound_stmt): Likewise.
733 (genrtl_finish_compound_stmt): Likewise.
734 (genrtl_compound_stmt): Likewise.
735 (genrtl_asm_stmt): Likewise.
736 (genrtl_decl_cleanup): Likewise.
737 (make_rtl_for_local_static): Moved from cp/decl.c.
738 (emit_local_var): Likewise.
739 (expand_stmt): Define.
741 * c-tree.h: (c_expand_asm_operands): Moved to c-common.h.
742 (c_expand_return): Likewise.
743 (c_expand_start_case): Likewise.
745 2000-07-01 Richard Henderson <rth@cygnus.com>
747 * config/ia64/ia64.c (symbolic_operand): Reject CONST expressions
748 with the low 13 bits set.
749 (move_operand): Check for CONST|SYMBOL_REF|LABEL_REF directly.
750 * config/ia64/ia64.md (movdi): Likewise. Expand a CONST with one
751 of the low 13 bits into a CONST plus an adddi3.
752 (load_symptr): Set RTX_UNCHANGING_P.
754 2000-06-30 Mark Mitchell <mark@codesourcery.com>
756 * Makefile.in (c-common.o): Don't depend on c-tree.h or c-lex.h.
757 * c-common.c (ridpointers): Declare.
758 * c-common.h (enum rid): Declare.
760 (ridpointers): Likewise.
761 * c-lex.c (ridpointers): Don't declare.
762 (init_lex): Initialize ridpointers.
763 * c-lex.h (enum rid): Don't declare.
765 (RID_FIRST_MODIFIER): Likewise.
766 (ridpointers): Likewise.
768 2000-06-30 J. David Anglin <dave@hiauly1.hia.nrc.ca>
770 * pa/som.h (ASM_WEAKEN_LABEL): Export weak data symbols so that they
773 2000-06-30 Martin von Loewis <loewis@informatik.hu-berlin.de>
775 * invoke.texi (-Wreturn-type): In C++, a missing return type is
778 2000-06-30 Catherine Moore <clm@cygnus.com>
780 * c-common.c (decl_attributes): Differentiate between
781 types and type decls for alignment.
783 2000-06-30 Nathan Sidwell <nathan@codesourcery.com>
785 * cpp.texi: Document #pragma GCC dependency
786 * cppfiles.c (open_include_file): Set date to unknown.
787 (_cpp_compare_file_date): New function.
788 (read_include_file): Set file date.
789 * cpphash.h (struct include_file): Add date member.
790 (_cpp_compare_file_date): Prototype.
791 * cpplib.c (parse_include): Add trail parameter. Adjust.
792 (do_include): Adjust parse_include call.
793 (do_import): Likewise.
794 (do_include_next): Likewise.
795 (gcc_pragmas): Add dependency pragma.
796 (do_pragma_dependancy): New pragma.
798 2000-06-29 Jason Merrill <jason@redhat.com>
800 * dwarf2out.c (output_loc_operands): Don't abort on codes that have
803 2000-06-29 Jim Wilson <wilson@cygnus.com>
805 * config/ia64/ia64.h (PREFERRED_RELOAD_CLASS): Return NO_REGS for
806 a volatile mem and FR_REGS.
808 2000-06-29 Mark Mitchell <mark@codesourcery.com>
810 * c-common.c: Include c-common.h, not c-lex.h or c-tree.h.
811 * c-common.h (flag_const_strings): Declare.
812 (warn_format): Likewise.
813 (flag_traditional): Likewise.
814 (flag_isoc99): Likewise.
815 (warn_parentheses): Likewise.
816 (warn_conversion): Likewise.
817 (C_TYPE_OBJECT_P): Likewise.
818 (C_TYPE_INCOMPLETE_P): Likewise.
819 (C_TYPE_FUNCTION_P): Likewise.
820 (C_TYPE_OBJECT_OR_INCOMPLETE_P): Likewise.
821 (C_EXP_ORIGINAL_CODE): Likewise.
822 (build_unary_op): Likewise.
823 (build_binary_op): Likewise.
824 (lvalue_p): Likewise.
825 (default_conversion): Likewise.
826 (common_type): Likewise.
827 * c-tree.h (C_TYPE_OBJECT_P): Remove.
828 (C_TYPE_INCOMPLETE_P): Likewise.
829 (C_TYPE_FUNCTION_P): Likewise.
830 (C_TYPE_OBJECT_OR_INCOMPLETE_P): Likewise.
831 (C_EXP_ORIGINAL_CODE): Likewise.
832 (common_type): Likewise.
833 (default_conversion): Likewise.
834 (build_binary_op): Likewise.
835 (build_unary_op): Likewise.
836 (lvalue_p): Likewise.
837 (flag_const_strings): Likewise.
838 (warn_format): Likewise.
839 (warn_conversion): Likewise.
840 (flag_traditional): Likewise.
841 (flag_isoc99): Likewise.
842 (warn_parentheses): Likewise.
844 2000-06-29 James E. Wilson <wilson@cygnus.com>
846 * config/ia64/linux.h (LINK_SPEC): Change so.1 to so.2.
848 * config/ia64/ia64.h (MODES_TIEABLE_P): Only tie if mode class is the
849 same. Only tie XFmode with XFmode.
851 2000-06-29 Zack Weinberg <zack@wolery.cumb.org>
853 * c-decl.c, timevar.c, tlink.c: Include intl.h.
854 * Makefile.in: Update deps.
856 2000-06-29 Andrew Haley <aph@cygnus.com>
858 * toplev.c (main): On an IA-64, make flag_unwind_tables defauit
861 2000-06-29 Andrew Haley <aph@cygnus.com>
863 * config/ia64/linux.h (JMP_BUF_SIZE): Size is in Pmode units, not
864 bytes: remove the multiply by 8.
866 2000-06-29 Philipp Thomas <pthomas@suse.de>
868 * rtl.c : Revert NLS changes.
869 * gcc.c : Fix bug in display_help introced by my last changes.
871 Wed Jun 28 21:09:33 2000 Raja R Harinath <harinath@cs.umn.edu>
873 * dbxout.c (dbxout_symbol, case RESULT_DECL, VAR_DECL): Use
874 DECL_CONTEXT, not DECL_FIELD_CONTEXT.
876 2000-06-29 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
878 * flow.c (flow_depth_first_order_compute): Fix algorithm.
880 2000-06-28 Philipp Thomas <pthomas@suse.de>
882 * c-decl.c : Mark strings for translation.
883 (parmlist_tags_warning): Use distinct messages instead
884 of conditional expressions.
885 * diagnostic.c (v_message_with_decl): Mark string for translation.
886 * gcc.c: Mark messages for translation.
887 (display_help): Combine messages into one string where necessary.
888 * mips-tfile: Add intl.h. Mark messages for translation.
889 * rtl.c (fatal_with_file_and_line): Modify function for NLS. Mark
890 messages for translation.
891 * timevar.c: Mark messages for translation.
893 * toplev.c: Likewise.
895 Wed Jun 28 15:39:26 2000 Donn Terry (donnte@microsoft.com)
897 * i386-interix.h (STRIP_NAME_ENCODING): Declare _new_name properly.
899 * alpha/alpha-interix.h: Delete redundant -Asystem(interix),
900 use -isystem instead of -idirafter.
901 * i386/i386-interix.h: Likewise.
903 2000-06-28 Jason Merrill <jason@redhat.com>
905 * dwarf2out.c (output_loc_operands): Don't support >1 byte output
906 unless DWARF2_DEBUGGING_INFO is defined.
907 (ASM_OUTPUT_DWARF_*): Wrap normal output defs with #ifndefs.
909 2000-06-28 Richard Henderson <rth@cygnus.com>
911 * config/alpha/alpha.c (summarize_insn): Ignore SCRATCH.
913 2000-06-28 Jakub Jelinek <jakub@redhat.com>
915 * cpplex.c (output_line_command): Output correct #line if a header
916 is including itself and is not protected against multiple inclusion.
918 2000-06-28 Zack Weinberg <zack@wolery.cumb.org>
920 * cppfiles.c (open_include_file): If open(2) returns EMFILE or
921 ENFILE, close all cached file descriptors and try again.
922 (_cpp_execute_include): Keep a count of the number of times
923 each header is included.
924 (close_cached_fd): New function.
925 * cpphash.h (struct include_file): Rename before to
926 include_count; all users updated. Make include_count and sysp
928 * cppinit.c (cpp_finish): If -H, report headers that could use
930 (report_missing_guard): New function.
932 Wed Jun 28 14:46:58 MET DST 2000 Jan Hubicka <jh@suse.cz>
934 * i386.md (prologue_set_got): Set length_immediate field.
935 (testqi_ccno_1): Add missing '@' character.
937 2000-06-27 Jason Merrill <jason@redhat.com>
939 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes): Use
942 2000-06-27 Andrew Macleod <amacleod@cygnus.com>
944 * dwarf2out.c (ASM_OUTPUT_DWARF_DATA2): Provide default when no
945 unsigned macros available.
947 2000-06-27 Richard Henderson <rth@cygnus.com>
949 * config/ia64/ia64.c (emit_insn_group_barriers): Special case
950 epilogue_deallocate_stack.
952 * config/ia64/ia64.c (ia64_print_operand) [case D]: Emit
953 completers for UNORDERED and ORDERED as well.
954 * config/ia64/ia64.md (bunordered, bordered): New.
955 (sunordered, sordered): New.
957 Tue Jun 27 12:14:12 MET DST 2000 Jan Hubicka <jh@suse.cz>
959 * genattrtab.c (write_attr_value): Do not abort for CONST_INT operands.
960 * i386.c (ix86_attr_length_default): Kill.
961 (ix86_attr_length_immediate_default, ix86_attr_length_address_default):
963 * i386-protos.h (ix86_attr_length_default): Kill
964 (ix86_attr_length_immediate_default, ix86_attr_length_address_default):
966 * i386.md (attribute type): Add "test".
967 (attribute length_prefix): Kill.
968 (attribute length_opcode): Kill.
969 (attribute i387, mode, length_immediate, length_address, prefix_data16,
970 prefix_rep, prefix_0f, modrm): New.
971 (attribute length): Compute using the new attributes.
972 (attribute pent_prefix): New.
973 (attribute pent_pair): Compute using pent_prefix.
974 (all insn patterns): Set mode,modrm and immediate_length attributes where
976 (cmpsi patterns): Compute sizes propertly for test instruction.
977 (movsi, movhi patterns): Compute sizes propertly for eax shortcuts.
978 (movstricthi_xor, movstrictqi_xor): New patterns.
979 (andsi/andhi): Use splitters to generate xor instructions.
980 (xorqi_ext_1): New pattern.
981 (movstricthi->movstricthi_xor peep2): New.
983 Tue Jun 27 12:03:03 MET DST 2000 Jan Hubicka <jh@suse.cz>
985 * i386.md (addqi_low_1): Remove.
987 2000-06-27 Philipp Thomas <pthomas@suse.de>
989 * 1750a.h: Mark help strings for options/switches for translation.
994 * riscix.h: Likewise.
996 * clipper.h: Likewise.
997 * convex.h: Likewise.
1001 * h8300.h: Likewise.
1003 * cygwin.h: Likewise.
1005 * djgpp.h: Likewise.
1007 * osf1elf.h: Likewise.
1008 * osfrose.h: Likewise.
1010 * win32.h: Likewise.
1012 * paragon.h: Likewise.
1016 * mcore.h: Likewise.
1018 * mn10300.h: Likewise.
1019 * ns32k.h: Likewise.
1020 * pdp11.h: Likewise.
1023 * aix41.h: Likewise.
1024 * aix43.h: Likewise.
1026 * rs6000.h: Likewise.
1027 * sysv4.h: Likewise.
1028 * linux.h: Likewise.
1029 * linux64.h: Likewise.
1030 * sp64-elf.h: Likewise.
1031 * sparc.h: Likewise.
1032 * splet.h: Likewise.
1034 * convex.h (TARGET_SWITCHES): Provide descriptions and mark them
1036 * sp86x-aout.h: Remove bogus first definition of SUBTARGET_SWITCHES.
1037 Properly document option and mark for translation.
1038 * sp86x-elf.h: Likewise.
1040 2000-06-27 Bernd Schmidt <bernds@cygnus.co.uk>
1042 Add MMX and SSE registers to i386 machine description.
1043 * i386-protos.h (ix86_constant_alignment, ix86_data_alignment,
1044 ix86_local_alignment): Declare.
1046 * i386.h (TARGET_MMX, TARGET_SSE): New.
1047 (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS, CALL_USED_REGISTERS,
1048 REG_ALLOC_ORDER, HARD_REGNO_NREGS, HARD_REGNO_MODE_OK,
1049 REG_CLASS_NAMES, REG_CLASS_CONTENTS,REG_CLASS_FROM_LETTER,
1050 enum reg_class, HI_REGISTER_NAMES): Added MMX/SSE registers.
1051 (FIRST_SSE_REG, LAST_SSE_REG, SSE_REGNO_P): New.
1052 (FIRST_MMX_REG, LAST_MMX_REG, MMX_REGNO_P, MMX_REG_P): New macros.
1053 (RETURN_IN_MEMORY): Handle MMX/SSE.
1054 (REG_PARM_STACK_SPACE): Added so the first three TImode parameters
1055 also get stack space.
1056 (MUST_PASS_IN_STACK): Added TImode to the default definition.
1057 (CUMULATIVE_ARGS): Added sse_nregs, sse_regno and sse_words.
1058 (MMX_REGISTER_NAMES): New.
1059 (ALIGN_MODE_128): New macro.
1060 (CONSTANT_ALIGNMENT): Code moved out-of-line; just call the function.
1061 (DATA_ALIGNMENT): Likewise.
1062 (LOCAL_ALIGNMENT): Likewise.
1063 (CONDITIONAL_REGISTER_USAGE): Make MMX/SSE regs fixed if not
1064 TARGET_MMX/TARGET_SSE.
1065 (VALID_SSE_REG_MODE, VALID_MMX_REG_MODE): New macros.
1066 (REG_CLASS_FROM_LETTER): 'y' for MMX regs.
1067 (SECONDARY_MEMORY_NEEDED): Be conservative about copying between
1068 SSE/MMX regs and something else.
1069 (CLASS_MAX_NREGS): 1 for SSE and MMX regs.
1070 (REGISTER_MOVE_COST): 10 if trying to move between MMX and SSE regs,
1071 3 if moving between MMX regs and something else.
1073 * i386.c (reg_class): Add SSE_REGS, MMX_REGS.
1074 (regclass_map): Add MMX/SSE registers.
1075 (print_operand): Add code to print XMMWORD as appropriate.
1076 (ix86_split_movdi): Abort for MMX regs.
1077 (init_cumulative_args): Also allow SSE_REGS
1078 (function_arg_advance, function_arg): Likewise
1079 (print_reg): Support 'm'. Add case for TImode.
1080 (override_options): TARGET_SSE implies TARGET_MMX.
1081 (ix86_constant_alignment, ix86_data_alignment, ix86_local_alignment):
1084 * config/i386/unix.h (VALUE_REGNO): VECTOR_MODE values go to
1086 * config/i386/ptx4-i.h (RETURN_IN_MEMORY): Return MMX values in
1088 * config/i386/sysv4.h (RETURN_IN_MEMORY): Likewise.
1089 * config/i386/i386elf.h (RETURN_IN_MEMORY): Likewise.
1091 2000-06-26 Geoff Keating <geoffk@cygnus.com>
1093 * ssa.c (struct rename_set_data): Change the name of field
1094 'set_dest' to 'old_reg'. Add comments.
1095 (struct rename_context): Change the name of 'set_data' to
1096 'new_renames'. Add new field 'done_renames'.
1097 (create_delayed_rename): New function.
1098 (apply_delayed_renames): New function.
1099 (rename_insn_1): Use the new functions. Handle CLOBBERS. Handle
1100 SUBREGs and similar by emitting a move.
1101 (new_registers_for_updates): Delete, functionality moved to
1102 apply_delayed_renames.
1103 (rename_block): Handle moves emitted by rename_insn_1 by putting
1104 them into a SEQUENCE with the original insn. Add sanity checks
1106 (rename_equivalent_regs_in_insn): Don't handle SUBREGs specially.
1107 (rename_equivalent_regs): Expand SEQUENCEs out to individual insns.
1109 2000-06-26 Andrew Macleod <amacleod@cygnus.com>
1110 Jason Merrill <jason@redhat.com>
1112 * dwarf2.h (enum dwarf_call_frame_info): Add
1113 DW_CFA_def_cfa_expression.
1114 * dwarf2out.c (union dw_cfi_oprnd_struct): Add a pointer to a
1115 dw_loc_descr_struct entry.
1116 (struct cfa_loc): New structure to track a CFA location.
1117 (lookup_cfa): Take a cfa_loc parameter instead of a reg and an offset.
1118 (lookup_cfa_1): Take a cfa_loc parameter instead of a reg and an
1119 offset, plus handle DW_CFA_def_cfa_expression.
1120 (def_cfa_1): Use to be dwarf2out_def_cfa, only now it uses a
1122 (dwarf2out_def_cfa): Entry point maintained for compatability.
1123 (dwarf_cfi_name): Add DW_CFA_def_cfa_expression.
1124 (cfa_reg, cfa_offset): Replace with cfa_loc record 'cfa'.
1125 (cfa_store_reg, cfa_store_offset): Replace with cfa_loc 'cfa_store'.
1126 (initial_return_save, dwarf2out_stack_adjust): Use cfa.reg, not
1128 (dwarf2out_frame_debug_expr): Use new cfa_loc records. Recognize rtl
1129 sequences for the new DW_CFA_def_cfa_expression record.
1130 (dwarf2out_frame_debug): Use new variables/fields.A
1131 (output_cfi): Handle DW_CFA_def_cfa_expression.
1132 (output_cfa_loc): New function to generate a CFI record for
1133 DW_CFA_def_cfa_expression.
1134 (get_cfa_from_loc_descr): New function to get a cfa_loc record from
1135 a dw_loc_descr sequeunce.
1136 (build_loc_descr): Build a dw_loc_descr from a cfa_loc record.
1137 (dwarf_stack_op_name, new_loc_descr, add_loc_descr, size_of_loc_descr,
1138 size_of_locs, output_loc_operands, output_loc_sequence): Move into
1139 unwind info section.
1140 * frame.h (frame_state): Add base_offset and indirect fields.
1141 * frame-dwarf2.c (decode_stack_op): New function to interpret a
1142 dw_loc_descr operation.
1143 (execute_cfa_insn): Add support for DW_CFA_def_cfa_expression.
1144 (struct frame_state): Add base offset and indirect fields.
1145 * libgcc2.c (next_stack_level): Support indirect loading for CFA.
1147 2000-06-26 Joseph S. Myers <jsm28@cam.ac.uk>
1149 * c-decl.c (grokdeclarator): Don't warn about `long long' in C99.
1150 Make warnings about implicit int be pedwarns in C99. Don't warn
1151 about duplicate type qualifiers in C99.
1152 (start_function): Make warning about implict int return type be a
1154 * c-lex.c (yylex): Don't warn about `long long' in C99.
1155 * c-typeck.c (c_expand_return): In C99, always pedwarn about
1156 `return' with no value in function returning non-void.
1158 2000-06-26 Richard Henderson <rth@cygnus.com>
1160 * c-typeck.c (pedwarn_c99): New.
1161 * diagnostic.c (verror, vwarning, vpedwarn): Export.
1162 * toplev.h: Prototype them.
1164 2000-06-26 J. David Anglin <dave@hiauly1.hia.nrc.ca>
1166 * c-typeck.c (digest_init): Return error_mark_node node when
1167 TREE_TYPE (init) == error_mark_node.
1169 2000-06-26 Philipp Thomas <pthomas@suse.de>
1171 * aclocal.m4 (AM_WITH_NLS): Don't set MSGFMT or GMSGFMT to no,
1172 test for msgfmt without path instead.
1173 * configure: Rebuilt.
1175 2000-06-25 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
1177 * gengenrtl.c (special_rtx): Fix typo in comment.
1179 2000-06-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
1181 * mklibgcc.in (LIB2FUNCS): Add missing space.
1183 2000-06-24 Bernd Schmidt <bernds@cygnus.co.uk>
1185 * tree.h (enum tree_index): Add vector type nodes.
1186 Add accessor macros for them.
1187 (TYPE_REPRESENATION_TYPE): New macro.
1188 * tree.c (build_common_tree_nodes_2): Build these nodes.
1189 (finish_vector_type): New function.
1190 * c-common.c (type_for_mode): Handle vector modes.
1191 * tm.texi (VECTOR_MODE_SUPPORTED_P): Document.
1193 * dbxout.c (dbxout_type): Handle VECTOR_TYPEs.
1194 * dwarf.h (enum dwarf_fundamental_type): Add 128 bit integers.
1195 * dwarf2out.c (lookup_type_die): Handle VECTOR_TYPEs.
1196 (gen_type_die): Likewise.
1197 * dwarfout.c (dwarf_fund_type_name): Handle 128 bit integers.
1198 (fundamental_type_code): Likewise.
1199 (type_is_fundamental): VECTOR_TYPEs aren't.
1200 (output_type): Handle VECTOR_TYPEs.
1202 2000-06-25 Kazu Hirata <kazu@hxi.com>
1204 * config/arm.c: Fix a comment typo.
1205 * config/arm.h: Likewise.
1207 2000-06-25 Philipp Thomas <pthomas@suse.de>
1209 * aclocal.m4 (AM_WITH_NLS): Set create_catalogs=no if no catalog
1211 AM_GNU_GETTEXT: Don't set CATALOGS if create_catalogs=no.
1212 * configure: Rebuilt.
1214 2000-06-25 John David Anglin <dave.anglin@nrc.ca>
1216 * config/vax/vax.h (TARGET_SWITCHES): Provide descriptions.
1218 2000-06-25 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
1220 * mklibgcc.in: Prefer LIB1ASMFUNCS over LIB2FUNCS when generating
1223 2000-06-24 Marc Espie <espie@cvs.openbsd.org>
1225 * collect2.c (resolve_lib_name): Move '/' check out of loop.
1227 2000-06-24 Dirk Duellmann <Dirk.Duellmann@cern.ch>
1229 * ginclude/stddef.h (NULL): define for non-gnu C++ parsers as 0.
1231 2000-06-24 Jakub Jelinek <jakub@redhat.com>
1233 * stmt.c (expand_decl_cleanup): Emit a dummy insn after
1234 last_unconditional_cleanup.
1236 2000-06-24 Bernd Schmidt <bernds@cygnus.co.uk>
1238 * tree.def (VECTOR_TYPE): New node type.
1239 * tree.h: Adjust some comments to reflect addition of vector types.
1240 (TYPE_VECTOR_SUBPARTS): New macro.
1241 * stor-layout.c (layout_type): Handle VECTOR_TYPE.
1242 * c-convert.c (convert): Likewise.
1243 * convert.c (convert_to_integer): Handle vector modes.
1244 (convert_to_vector): New function.
1245 * convert.h (convert_to_vector): Declare.
1246 * expr.c (convert_move): Handle vector modes.
1247 * expmed.c (extract_bit_field): Don't abort for vector modes.
1249 2000-06-24 Marek Michalkiewicz <marekm@linux.org.pl>
1251 * config/avr/avr-protos.h (avr_hard_regno_mode_ok): New prototype.
1252 * config/avr/avr.c (out_adj_frame_ptr, out_set_stack_ptr):
1253 New functions, common code moved from function_{prologue,epilogue}
1254 and extended to support the -mtiny-stack option.
1255 (function_prologue, function_epilogue): Use them.
1256 Use lo8/hi8 consistently for asm output readability.
1257 (avr_hard_regno_mode_ok): New function.
1258 * config/avr/avr.h (TARGET_SWITCHES): Fix typo. Add -mtiny-stack.
1259 (UNITS_PER_WORD): Define as 4 (not 1) when compiling libgcc2.c.
1260 (HARD_REGNO_MODE_OK): Call the avr_hard_regno_mode_ok function.
1261 * config/avr/avr.md (*mov_sp_r): Add support for -mtiny-stack.
1262 Write SPH before SPL.
1263 (*movqi): No need to disable interrupts for just one "out"
1264 in alternative 5. Change length attribute from 4 to 1.
1265 * config/avr/libgcc.S (__prologue_saves__, __epilogue_restores__):
1266 Write SPH before SPL.
1268 2000-06-24 Bernd Schmidt <bernds@cygnus.co.uk>
1270 * rtl.texi (Vector Operations): New node.
1271 (Arithmetic): Add ss_plus, us_plus, ss_minus, us_minus.
1272 (Conversions): Add ss_truncate, us_truncate.
1273 * rtl.def (VEC_MERGE, VEC_SELECT, VEC_CONCAT, VEC_REORDER,
1274 VEC_CONST, VEC_DUPLICATE, SS_PLUS, SS_MINUS, SS_TRUNCATE,
1275 US_TRUNCATE): New rtx codes.
1276 * machmode.def: Add vector modes.
1277 * machmode.h (enum mode_class): Add MODE_VECTOR_INT and
1279 (INTEGER_MODE_P): Check for MODE_VECTOR_INT.
1280 (FLOAT_MODE_P): Check for MODE_VECTOR_FLOAT.
1281 (VECTOR_MODE_P): New.
1283 2000-06-24 Nathan Sidwell <nathan@codesourcery.com>
1285 * cpp.texi: Clarify #pragma GCC namespace.
1287 2000-06-24 Philipp Thomas <pthomas@suse.de>
1289 * aclocal.m4(AM_GNU_GETTEXT): If LINGUAS isn't set, build
1290 all catalogs specified in ALL_LINGUAS.
1291 * configure: Rebuilt.
1293 2000-06-23 Jakub Jelinek <jakub@redhat.com>
1295 * config/sparc/sparc.md (reload_outdi+1): Handle
1296 HOST_BITS_PER_WIDE_INT == 64 case correctly.
1297 (adddi3_insn_sp32+1, adddi3_insn_sp32+2, andsi3+2): Likewise.
1299 2000-06-23 Geoffrey Keating <geoffk@cygnus.com>
1301 * alias.c (fixed_scalar_and_varying_struct_p): Don't examine
1302 struct vs. scalar-ness when -fno-strict-aliasing.
1304 2000-06-23 Nathan Sidwell <nathan@codesourcery.com>
1306 * cpplib.c (struct pragma_entry): New structure.
1307 (pragma_dispatch): Pragma dispatcher.
1308 (top_pragmas, gcc_pragmas): New static variables.
1309 (do_pragma): Use pragma_dispatch.
1310 (do_pragma_gcc): New pragma handler.
1313 2000-06-23 Jakub Jelinek <jakub@redhat.com>
1315 * calls.c (compute_argument_addresses): Force stack slots into
1317 * expr.c (emit_push_insn): Force pushes into alias set 0.
1319 2000-06-23 Richard Henderson <rth@cygnus.com>
1321 * config/ia64/ia64.md (pred_rel_mutex): Only take one register.
1322 * config/ia64/ia64.c (emit_predicate_relation_info): Adjust to match.
1324 2000-06-22 Jason Merrill <jason@redhat.com>
1326 * toplev.c (compile_file): Always call timevar_print.
1327 * Makefile.in (calls.o): Depend on TIMEVAR_H.
1329 2000-06-22 Nathan Sidwell <nathan@codesourcery.com>
1331 * varasm.c (constant_descriptor): Make contents unsigned char.
1332 (mark_const_hash_entry): Adjust.
1333 (const_hash): Just hash the code of unknown nodes.
1334 (compare_constant_1): Adjust for unsigned char.
1335 Use language specific expander on unknown nodes.
1336 (record_constant_1): Likewise.
1338 2000-06-21 Zack Weinberg <zack@wolery.cumb.org>
1340 * cppfiles.c (cpp_make_system_header): New function.
1341 * cpplib.h: Prototype it.
1342 * cpplib.c (do_line, do_pragma_system_header): Use it.
1343 * fix-header.c (read_scan_file): Use it.
1345 * fix-header.c (check_macro_names): Cast second arg of
1346 cpp_defined to const unsigned char *.
1347 (read_scan_file): Make getchar_call const unsigned char.
1349 2000-06-21 Zack Weinberg <zack@wolery.cumb.org>
1351 * cppfiles.c: Include splay-tree.h, not hashtab.h.
1352 (redundant_include_p, make_IHASH, hash_IHASH, eq_IHASH): Delete.
1353 (destroy_include_file_node): New.
1354 (_cpp_init_include_hash): Rename _cpp_init_include_table.
1355 Create a splay tree, not a hash table.
1356 (open_include_file): Look up the path in the include table,
1357 do the multiple include optimization here, etc.
1358 (cpp_included): Walk the path.
1359 (find_include_file): Just walk the path calling
1360 open_include_file, or call it directly for an absolute path.
1361 (_cpp_fake_ihash): Rename _cpp_fake_include and update for new
1363 (read_include_file): Update for new scheme. Don't close the
1364 file unless reading fails.
1365 (_cpp_execute_include, cpp_read_file): Tweak for new scheme.
1367 * cpphash.h (struct ihash, NEVER_REINCLUDE): Delete.
1368 (struct include_file): New.
1369 (NEVER_REREAD, DO_NOT_REREAD, CPP_IN_SYSTEM_HEADER): New
1371 (CPP_PEDANTIC, CPP_WTRADITIONAL): Update.
1374 * cppinit.c: Include splay-tree.h.
1375 (cpp_reader_init, cpp_cleanup): Update.
1377 * cpplib.h (struct cpp_buffer): Change ihash field to
1378 'struct include_file *inc'. Remove system_header_p.
1379 (struct cpp_reader): Change all_include_files to a
1380 struct splay_tree_s *.
1382 * cpplex.c: Update all references to cpp_buffer->ihash and/or
1383 cpp_buffer->system_header_p.
1384 (cpp_pop_buffer): Close file here, only if DO_NOT_REREAD.
1386 * Makefile.in (SPLAY_TREE_H): New macro.
1387 (cppfiles.o, cppinit.o): Update dependencies.
1389 Wed Jun 21 11:05:48 2000 Martin Buchholz <martin@xemacs.org>
1391 * invoke.texi (g++): "g++" is not a script anymore.
1393 2000-06-20 J. David Anglin <dave@hiauly1.hia.nrc.ca>
1395 * function.c (round_down): Delete obsolete prototype.
1397 * pa.h (CPP_SPEC): Add whitespace after -D__STDC_EXT__.
1399 2000-06-20 Zack Weinberg <zack@wolery.cumb.org>
1401 * configure.in: Use 'test a = b' not 'test a == b'.
1404 * Makefile.in (fix-header): Link with $(LIBS) not $(HOST_LIBS).
1406 * Makefile.in: Remove all references to HOST_INTLLIBS.
1408 * cpplex.c (parse_name): Don't warn about $ in identifiers if
1411 2000-06-20 Philipp Thomas <pthomas@suse.de>
1413 * config/pa/pa.h(TARGET_SWITCHES): Require binutils 2.10 or later
1416 Mon Jun 19 23:26:40 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
1418 * Take REG_INC notes into account.
1420 2000-06-19 Zack Weinberg <zack@wolery.cumb.org>
1422 * c-parse.in (undeclared_variable_notice): Moved to c-typeck.c.
1423 (primary: IDENTIFIER): Just call build_external_ref.
1424 * c-parse.y, c-parse.c, objc/objc-parse.y, objc/objc-parse.c:
1426 * c-lex.c (lastiddecl): Remove.
1427 (yylex): Replace all instances of lastiddecl with local
1430 * c-typeck.c (build_external_ref): New function. Treat decls
1431 with C_DECL_ANTICIPATED mostly the same as nonexistent decls.
1432 Look up the decl from the id here. Call lookup_objc_ivar.
1433 * c-lang.c (lookup_objc_ivar): Stub.
1434 * objc/objc-act.c (lookup_objc_ivar): New function.
1436 * c-tree.h: Prototype lookup_objc_ivar and build_external_ref.
1437 * c-lex.h: Don't declare lastiddecl.
1439 2000-06-19 Benjamin Chelf <chelf@codesourcery.com>
1441 * c-common.h (IF_COND): Added documentation.
1442 (THEN_CLAUSE): Likewise.
1443 (ELSE_CLAUSE): Likewise.
1444 (WHILE_COND): Likewise.
1445 (WHILE_BODY): Likewise.
1446 (DO_COND): Likewise.
1447 (DO_BODY): Likewise.
1448 (RETURN_EXPR): Likewise.
1449 (EXPR_STMT_EXPR): Likewise.
1450 (FOR_INIT_STMT): Likewise.
1451 (FOR_COND): Likewise.
1452 (FOR_EXPR): Likewise.
1453 (FOR_BODY): Likewise.
1454 (SWITCH_COND): Likewise.
1455 (SWITCH_BODY): Likewise.
1456 (CASE_LOW): Likewise.
1457 (CASE_HIGH): Likewise.
1458 (GOTO_DESTINATION): Likewise.
1459 (COMPOUND_BODY): Likewise.
1460 (ASM_CV_QUAL): Likewise.
1461 (ASM_STRING): Likewise.
1462 (ASM_OUTPUTS): Likewise.
1463 (ASM_INPUTS): Likewise.
1464 (ASM_CLOBBERS): Likewise.
1465 (DECL_STMT_DECL): Likewise.
1466 (STMT_EXPR_STMT): Likewise.
1467 (LABEL_STMT_LABEL): Likewise.
1469 * c-common.def: Added documenetion for SRCLOC, EXPR_STMT,
1470 COMPOUND_STMT, DECL_STMT, IF_STMT, FOR_STMT, WHILE_STMT, DO_STMT,
1471 RETURN_STMT, BREAK_STMT, CONTINUE_STMT, SWITCH_STMT, GOTO_STMT,
1472 LABEL_STMT, ASM_STMT, SCOPE_STMT, CASE_LABEL, STMT_EXPR.
1474 2000-06-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1476 * configure.in (--enable-checking): Update --help doc to reflect
1477 new defaults. Ensure $ac_save_IFS is set before $IFS is changed.
1479 Sun Jun 18 21:42:15 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1481 * gcse.c (insert_insn_end_bb): Always put after NOTE_INSN_BASIC_BLOCK.
1483 * function.c (put_var_into_stack): Don't reference DECL_ fields
1484 if input is a SAVE_EXPR.
1485 Use set_mem_attributes in COMPLEX case.
1487 2000-06-18 Richard Henderson <rth@cygnus.com>
1489 * config/ia64/ia64-protos.h (process_for_unwind_directive): Declare.
1490 (ia64_file_start): Declare.
1491 * config/ia64/ia64.h (ADDL_REGNO_P): Don't compare unsigned against 0.
1492 (GR_REGNO_P): Likewise.
1493 * config/ia64/ia64.c: Many prototypes.
1494 (ia64_reg_numbers): Constify.
1495 (ia64_input_reg_names, ia64_local_reg_names): Likewise.
1496 (ia64_section_threshold): Make unsigned.
1497 (ia64_print_operand): Constify.
1498 (fix_range): Constify.
1499 (ia64_init_builtins): Don't compare signed vs unsigned.
1500 (ia64_expand_builtin): Likewise.
1502 * config/ia64/ia64.h (EXTRA_CONSTRAINT): New.
1503 (CONSTRAINT_OK_FOR_Q): New.
1504 * config/ia64/ia64.md (movdi_internal): Use Q for fp<->mem.
1505 (movsf_internal, movdf_internal): Likewise.
1506 (cmovdi_internal): Rewrite so that constraints and predicates match;
1508 (cmovsi_internal): Likewise.
1510 * config/ia64/ia64.h (ASM_SPEC): Add -x for gas.
1511 (ASM_FILE_START): New.
1512 * config/ia64/ia64.c (ia64_file_start): New.
1513 (rtx_needs_barrier): Handle pred.rel.mutex.
1514 (emit_predicate_relation_info): New.
1515 * config/ia64/ia64.md (pred_rel_mutex): New.
1516 * config/ia64/linux.h (ASM_SPEC): Define.
1517 * config/ia64/sysv4.h (ASM_FILE_START): Define.
1519 * config/ia64/ia64.c (ia64_encode_section_info): Fix thinko
1520 filtering global register variables.
1522 2000-06-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1524 * c-common.c (add_c_tree_codes): Fix definition for traditional C.
1526 2000-06-17 Michael Meissner <meissner@redhat.com>
1528 * gcc.c (do_spec_1, '%v3' case): Do not abort if patch level is
1529 not present and there is a field after a '-'.
1531 2000-06-17 Bruce Korb <bkorb@gnu.org>
1533 * fixinc/check.tpl: finish the implementation of multiple tests
1535 * fixinc/inclhack.def(ctrl_quotes_def): add a second test
1536 (io_quotes_def): add a second test
1537 (various): reorder `files' so that "limits.h" is never first
1538 * fixinc/tests/base/*: update the testing output
1540 Sat Jun 17 10:33:59 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1542 * gcc.texi: Remove reference to stupid.c.
1544 2000-06-16 Benjamin Chelf <chelf@codesourcery.com>
1546 * c-common.c (c_tree_code_type): New array.
1547 (c_tree_code_length): Likewise.
1548 (c_tree_code_name): Likewise.
1549 (add_c_tree_codes): New function.
1551 * c-common.h (add_c_tree_codes): Declare.
1552 (enum c_tree_code): New enum.
1554 * c-lex.c (init_parse): Added call to add_c_tree_codes.
1556 2000-06-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1558 * fixinc/inclhack.def (ctrl_quotes_def, io_quotes_def): Modify
1559 select pattern to also match macro defs with only one argument.
1561 Thu Jun 15 18:56:12 2000 Jeffrey A Law (law@cygnus.com)
1563 * i386.md: Create new [right,left] rotate and right shift
1564 patterns to optimize shift by 1 bit for certain ia32 processors.
1565 Update patterns which perform left shifts to optimize shift by
1566 1 bit for certain ia32 processors.
1567 * i386.c (const_int_1_operand): New predicate.
1568 * i386.h (PREDICATE_CODES): Handle const_int_1_operand.
1569 * i386-protos.h (const_int_1_operand): Prototype.
1571 Wed Jun 14 23:46:26 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
1573 * mips.c (machine_dependent_reorg): Fix braces for nested if.
1575 2000-06-14 Geoff Keating <geoffk@cygnus.com>
1577 * rs6000.c (toc_hash_eq): Use CODE_LABEL_NUMBER to compare
1580 2000-06-14 Richard Henderson <rth@cygnus.com>
1582 * conflict.c (conflict_graph_compute): Don't look for REG_INC.
1584 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Don't emit
1587 * print-rtl.c (print_rtx): Emit space before mem alias set.
1589 2000-06-14 David Edelsohn <edelsohn@gnu.org>
1591 * rs6000.c (expand_block_move): Fix typo in earlier change.
1592 (print_operand): Remove unused variables neg and op.
1593 (toc_hash_mark_entry): Fix prototype.
1595 2000-06-14 Benjamin Chelf <chelf@codesourcery.com>
1597 * c-common.h (IF_COND): Moved here from cp/cp-tree.h.
1598 (THEN_CLAUSE): Likewise.
1599 (ELSE_CLAUSE): Likewise.
1600 (WHILE_COND): Likewise.
1601 (WHILE_BODY): Likewise.
1602 (DO_COND): Likewise.
1603 (DO_BODY): Likewise.
1604 (RETURN_EXPR): Likewise.
1605 (EXPR_STMT_EXPR): Likewise.
1606 (FOR_INIT_STMT): Likewise.
1607 (FOR_COND): Likewise.
1608 (FOR_EXPR): Likewise.
1609 (FOR_BODY): Likewise.
1610 (SWITCH_COND): Likewise.
1611 (SWITCH_BODY): Likewise.
1612 (CASE_LOW): Likewise.
1613 (CASE_HIGH): Likewise.
1614 (GOTO_DESTINATION): Likewise.
1615 (COMPOUND_BODY): Likewise.
1616 (ASM_CV_QUAL): Likewise.
1617 (ASM_STRING): Likewise.
1618 (ASM_OUTPUTS): Likewise.
1619 (ASM_INPUTS): Likewise.
1620 (ASM_CLOBBERS): Likewise.
1621 (DECL_STMT_DECL): Likewise.
1622 (STMT_EXPR_STMT): Likewise.
1623 (LABEL_STMT_LABEL): Likewise.
1624 (SCOPE_BEGIN_P): Likewise.
1625 (SCOPE_END_P): Likewise.
1626 (SCOPE_STMT_BLOCK): Likewise.
1627 (SCOPE_NULLIFIED_P): Likewise.
1628 (SCOPE_NO_CLEANUPS_P): Likewise.
1629 (SCOPE_PARTIAL_P): Likewise.
1630 (ASM_VOLATILE_P): Likewise.
1631 (STMT_LINENO): Likewise.
1632 (STMT_LINENO_FOR_FN_P): Likewise.
1634 * c-common.def: New file. Added SRCLOC, SIZEOF_EXPR, ARROW_EXPR,
1635 ALIGNOF_EXPR, EXPR_STMT, COMPOUND_STMT, DECL_STMT, IF_STMT,
1636 FOR_STMT, WHILE_STMT, DO_STMT, RETURN_STMT, BREAK_STMT,
1637 CONTINUE_STMT, SWITCH_STMT, GOTO_STMT, LABEL_STMT, ASM_STMT,
1638 SCOPE_STMT, CASE_LABEL, STMT_EXPR.
1640 * gencheck.c (tree_codes[]): Added '#include "c-common.def"'.
1642 2000-06-14 David O'Brien <obrien@FreeBSD.org>
1644 * gcc.c (main): Quiet compiler warnings. argv is assumed to be
1645 writable in parts of the GCC code.
1647 * config/elfos.h (ASM_GENERATE_INTERNAL_LABEL): Make printf
1648 specification match cast.
1650 Wed Jun 14 09:25:57 2000 Jeffrey A Law (law@cygnus.com)
1652 * configure.in: Revert AC_TYPE_GETGROUPS patch from June 13.
1653 * configure, config.in: Rebuilt.
1654 * sys-protos.h: Similarly.
1656 Wed Jun 14 03:39:58 EDT 2000 John Wehle (john@feith.com)
1658 * ifcvt.c (EDGE_COMPLEX): Move definition ...
1659 * basic-block.h (EDGE_COMPLEX): ... here.
1661 * loop.c (check_dbra_loop): Specify the register when
1662 generating REG_NONNEG notes and don't generate duplicates.
1664 2000-06-13 Jakub Jelinek <jakub@redhat.com>
1666 * tree.h (TYPE_USER_ALIGN, DECL_USER_ALIGN): Define.
1667 (struct tree_type, struct tree_decl): Add user_align member.
1668 * stor-layout.c (layout_decl): Set DECL_USER_ALIGN.
1669 (place_union_field): If BIGGEST_FIELD_ALIGNMENT is defined
1670 and DECL_USER_ALIGN 0, cap alignment to this value.
1671 (place_field): Likewise.
1672 (finalize_type_size): Set TYPE_USER_ALIGN.
1673 (layout_type): Likewise.
1674 (initialize_sizetypes): Likewise.
1675 * c-common.c (decl_attributes): Set TYPE_USER_ALIGN resp.
1676 DECL_USER_ALIGN to 1.
1677 * c-decl.c (duplicate_decls): Set DECL_USER_ALIGN.
1678 (xfer_tag): Set TYPE_USER_ALIGN.
1679 (finish_struct): Set DECL_USER_ALIGN resp. TYPE_USER_ALIGN.
1680 (finish_enum): Likewise.
1681 * stmt.c (expand_decl): Set DECL_USER_ALIGN.
1682 (expand_anon_union_decl): Likewise.
1683 * tree.c (make_node): Set DECL_USER_ALIGN resp. TYPE_USER_ALIGN.
1684 (build_index_type): Set TYPE_USER_ALIGN.
1685 (build_range_type): Likewise.
1686 (build_common_tree_nodes_2): Likewise.
1687 * tm.texi (BIGGEST_FIELD_ALIGNMENT): Document the changed meaning.
1689 2000-06-13 Andreas Jaeger <aj@suse.de>
1691 * configure.in: Use --enable-checking=misc,tree,gc by default if
1692 no --enable-checking option is given and for
1693 --enable-checking=yes.
1694 * configure: Rebuilt.
1696 2000-06-13 Richard Henderson <rth@cygnus.com>
1698 * libgcc2.c (ia64_throw_helper): Use __builtin_return_address.
1699 (__throw): Don't pass the address of a label.
1701 * config/ia64/ia64.c (ia64_compute_frame_size): Use
1702 current_function_is_leaf.
1703 (ia64_expand_prologue): Likewise. Modify return_address_pointer_rtx
1704 instead of reg_names[RETURN_ADDRESS_REGNUM].
1705 (ia64_init_machine_status): Reset return_address_pointer_rtx.
1706 * config/ia64/ia64.h (RETURN_ADDRESS_POINTER_REGNUM): Rename
1707 from RETURN_ADDRESS_REGNUM. Update all uses.
1708 (RETURN_ADDR_RTX): Use return_address_pointer_rtx; return
1709 zero instead of null on failure.
1710 (ELIMINABLE_REGS): Add ra->b0 elimination.
1711 (CAN_ELIMINATE): Update accordingly.
1712 (INITIAL_ELIMINATION_OFFSET): Likewise.
1713 (REGISTER_NAMES): Use an illegal assembler name for
1714 RETURN_ADDRESS_POINTER_REGNUM.
1716 2000-06-13 Richard Henderson <rth@cygnus.com>
1718 * config/ia64/ia64.h (enum reg_class): Remove FR_INT_REGS, FR_FP_REGS,
1719 GR_AND_FR_INT_REGS, GR_AND_FR_FP_REGS.
1720 (REG_CLASS_NAMES): Likewise.
1721 (REG_CLASS_CONTENTS): Likewise.
1722 (FR_FP_REGNO_P, FR_INT_REGNO_P): Remove.
1723 (HARD_REGNO_MODE_OK): Remove references to them.
1724 (REGNO_REG_CLASS): Likewise.
1725 (REG_CLASS_FROM_LETTER): Likewise.
1726 (CLASS_MAX_NREGS): Likewise.
1727 (REGISTER_MOVE_COST): Likewise.
1728 * config/ia64/ia64.c (ia64_secondary_reload_class): Likewise.
1729 * config/ia64/ia64.md (*): Replace "e" constraints with "f".
1730 (movqi_internal): Special case moves from zero.
1731 (movhi_internal, movsi_internal): Likewise.
1732 (movdi_internal): Likewise. Fill out "f" constraints.
1733 (movsf_internal): Fill out "r" constraints.
1734 (movdf_internal): Likewise.
1736 2000-06-13 Richard Henderson <rth@cygnus.com>
1738 * flow.c (insn_dead_p): Keep sets to PIC_OFFSET_TABLE_REGNUM
1739 alive before reload.
1741 * haifa-sched.c (struct deps): Add in_post_call_group_p.
1742 (add_dependence): Handle notes between SCHED_GROUP_P insns.
1743 (remove_dependence): Always define.
1744 (set_sched_group_p): New.
1745 (sched_analyze_2): Use it.
1746 (sched_analyze_insn): Don't special-case naked uses. Look for
1747 and extend in_post_call_group_p.
1748 (sched_analyze): Clear stale SCHED_GROUP_P. Set in_post_call_group_p.
1749 (init_deps): Clear in_post_call_group_p.
1751 2000-06-13 Richard Henderson <rth@cygnus.com>
1753 * combine.c (subst): Use CLASS_CANNOT_CHANGE_MODE and
1754 CLASS_CANNOT_CHANGE_MODE_P instead of CLASS_CANNOT_CHANGE_SIZE
1755 and hard-coded tests.
1756 (simplify_set): Likewise.
1757 (gen_lowpart_for_combine): Likewise.
1758 * emit-rtl.c (gen_lowpart_common): Likewise.
1759 * global.c (find_reg): Likewise.
1760 * local-alloc.c (find_free_reg): Likewise.
1761 * recog.c (register_operand): Likewise.
1762 * regclass.c (init_reg_sets_1): Likewise.
1763 (record_operand_costs, regclass): Likewise.
1764 * reload.c (push_reload): Likewise.
1765 * reload1.c (choose_reload_regs): Likewise.
1766 * flow.c (mark_used_regs): Conditionally set REG_CHANGES_MODE.
1767 * local-alloc.c (struct qty): Rename changes_size to changes_mode.
1768 Update all references.
1769 * regs.h (struct reg_info_def): Likewise.
1770 (REG_CHANGES_MODE): Rename from REG_CHANGES_SIZE.
1771 * tm.texi (CLASS_CANNOT_CHANGE_MODE): Document.
1772 (CLASS_CANNOT_CHANGE_MODE_P): Likewise.
1774 * config/alpha/alpha.h (CLASS_CANNOT_CHANGE_MODE): Rename.
1775 (CLASS_CANNOT_CHANGE_MODE_P): New.
1776 * config/mips/mips.h: Likewise.
1777 * config/pa/pa32-regs.h: Likewise.
1778 * config/pa/pa64-regs.h: Likewise.
1779 * config/rs6000/rs6000.h: Likewise.
1780 * config/sh/sh.h: Likewise.
1781 * config/ia64/ia64.h (CLASS_CANNOT_CHANGE_MODE): New.
1782 (CLASS_CANNOT_CHANGE_MODE_P): New.
1783 * config/avr/avr.h (CLASS_CANNOT_CHANGE_SIZE): Remove dead code.
1784 * config/d30v/d30v.h: Likewise.
1786 2000-06-13 J. David Anglin <dave@hiauly1.hia.nrc.ca>
1788 * configure.in: Add AC_TYPE_GETGROUPS test.
1789 * sys-protos.h: Use GETGROUPS_T * for second arg of getgroups.
1790 * configure: Rebuilt.
1791 * config.in: Rebuilt.
1793 2000-06-13 Richard Henderson <rth@cygnus.com>
1795 * explow.c (set_mem_attributes): Do nothing for NULL type.
1797 Tue Jun 13 14:45:10 2000 Jeffrey A Law (law@cygnus.com)
1799 * config/m68k/openbsd.h (ASM_SPEC): pass down options to assembler
1802 2000-06-13 James E. Wilson <wilson@cygnus.com>
1804 * config/ia64/ia64.md (movxf_internal): Add missing "e" to ldf/stf.
1806 Tue Jun 13 14:05:35 2000 Jeffrey A Law (law@cygnus.com)
1808 * Makefile.in (gensupport.o): Remove bogus $(HOST_PREFIX) reference.
1810 2000-06-13 Philipp Thomas <pthomas@suse.de>
1812 * configure.in(ALL_LINGUAS): Changed en_UK to en_GB.
1813 * configure: Rebuilt.
1815 2000-06-07 David O'Brien <obrien@FreeBSD.org>
1817 * configure.in: Adjust FreeBSD bits to match changes to config.guess.
1818 We now default to ELF for the i386, and a.out is the special case.
1819 * configure: Rebuilt.
1821 Tue Jun 13 10:05:30 2000 Hans-Peter Nilsson <hp@axis.com>
1823 * final.c (final_scan_insn): Delete notes between cc0 setter and
1824 user when restarting from setter.
1826 2000-06-13 J. David Anglin <dave@hiauly1.hia.nrc.ca>
1828 * vax.h (INDEX_TERM_P): Define evaluation order of &&'s in || and
1829 cast to squelch signed/unsigned warnings.
1831 2000-06-13 Zack Weinberg <zack@wolery.cumb.org>
1833 * cpplib.c (handle_directive): Print non-NUL-terminated string
1836 2000-06-12 Michael Meissner <meissner@redhat.com>
1838 * ifcvt.c (dead_or_predicable): Don't do conditional execution
1839 path if the machine needs extra support to do conditional
1842 Mon Jun 12 17:04:17 2000 Jeffrey A Law (law@cygnus.com)
1844 * print-rtl.c (print_rtx, case MEM): Use HOST_WIDE_INT_PRINT_DEC
1845 to print the alias set.
1846 * print-tree.c (print_node, DECL_* nodes and case 't'): Similarly.
1848 2000-06-12 J. David Anglin <dave@hiauly1.hia.nrc.ca>
1850 * config/float-vax.h: Add GFLOAT defines.
1852 Mon Jun 12 9:44:00 2000 Mark Klein <mklein@dis.com>
1854 * configure.in: Update tm dependencies for MPE.
1855 * configure: Rebuilt.
1857 2000-06-12 H.J. Lu <hjl@gnu.org>
1859 * gengenrtl.c (obstack_alloc_rtx): Correct the allocated size.
1861 2000-06-12 David Edelsohn <edelsohn@gnu.org>
1863 * aix41.h (SUBTARGET_SWITCHES): Delete threads.
1864 (CPP_SPEC): Change mthreads to pthread.
1865 (LIB_SPEC): Likewise.
1866 (STARTFILE_SPEC): Likewise.
1867 * aix43.h (SUBTARGET_SWITCHES): Delete threads.
1868 (CPP_SPEC): Change mthreads to pthread.
1869 (LIB_SPEC): Likewise.
1870 (STARTFILE_SPEC): Likewise.
1871 * rs6000-protos.h (reg_or_arith_cint_operand): New.
1872 * rs6000.c (reg_or_arith_cint_operand): New.
1873 (num_insns_constant_wide): Decorate unsigned constant.
1874 * rs6000.h (PREDICATE_CODES): Add reg_or_arith_cint_operand.
1875 * rs6000.md (addsi3): Use new predicate.
1876 (subsi3, adddi3, subdi3): Likewise.
1878 2000-06-12 Mark Mitchell <mark@codesourcery.com>
1880 * c-common.c (lang_get_alias_set): Fix typo.
1882 2000-06-12 Richard Earnshaw <rearnsha@arm.com>
1884 * flow.c (mark_used_regs): Revert last change.
1885 (life_analysis): Remove PROP_AUTOINC if running after reload.
1886 (propagate_one_insn): PROP_AUTOINC is always off after reload.
1888 2000-06-11 Richard Earnshaw <rearnsha@arm.com>
1890 * flow.c (mark_used_regs): Don't call find_auto_inc after reload
1893 2000-06-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1895 * bb-reorder.c (build_scope_forest): Initialize variable
1898 * calls.c (expand_call): Likewise for variables
1899 `save_pending_stack_adjust' and `save_stack_pointer_delta'.
1901 * i386.c (function_arg_advance, function_arg): Cast to avoid
1902 signed/unsigned warnings.
1904 * i386.h (MEMORY_MOVE_COST): Likewise.
1906 * ifcvt.c (cond_exec_process_if_block): Initialize variables
1907 `else_start' and `else_end'.
1909 * libgcc2.h (__eh_alloc, __eh_free): Prototype.
1911 * regrename.c (rr_replace_reg): Initialize variable `dest_subregno'.
1913 2000-06-10 Mark Mitchell <mark@codesourcery.com>
1915 * Makefile.in (libintl.a): Depend on intl.all.
1917 2000-06-09 H.J. Lu (hjl@gnu.org)
1919 * Makefile.in (c-parse.o): Also depend on output.h.
1921 2000-06-09 Rodney Brown <RodneyBrown@mynd.com>
1923 * mcore-protos.h: discards const warning removal.
1924 * mcore.c: discards const warning removal.
1926 2000-06-09 Kazu Hirata <kazu@hxi.com>
1928 * config/h8300/lib1funcs.asm: Declare the machine architecture at
1929 the beginning of the file.
1931 2000-06-09 J. David Anglin <dave@hiauly1.hia.nrc.ca>
1933 * real.h: Add prototype for ldexp.
1935 2000-06-09 Zack Weinberg <zack@wolery.cumb.org>
1937 * ggc-none.c, ggc-simple.c, ggc-page.c (ggc_alloc_obj): Rename
1938 it ggc_alloc, drop second argument, never clear returned memory.
1939 * ggc-common.c (ggc_alloc_string): Use ggc_alloc.
1940 (ggc_alloc_cleared): New.
1941 * ggc.h: Prototype ggc_alloc and ggc_alloc_cleared, not
1942 ggc_alloc_obj. Remove ggc_alloc macro.
1943 (ggc_alloc_rtx, ggc_alloc_rtvec, ggc_alloc_tree): Use ggc_alloc.
1945 * rtl.c (rtvec_alloc): Clear the vector always.
1946 (rtx_alloc): Clear the first word always. Remove dirty
1947 obstack tricks (this routine is no longer a bottleneck).
1948 * tree.c (make_node): Clear the new node always.
1949 (make_tree_vec): Likewise.
1950 (tree_cons): Clear the common structure always.
1951 (build1): Likewise; also, clear TREE_COMPLEXITY.
1952 * gengenrtl.c: Use puts wherever possible. Remove extra
1954 (gendef): Clear the first word of an RTX in the generator
1955 function, irrespective of ggc_p. Initialize '0' slots to
1957 (genlegend): Don't generate obstack_alloc_rtx routine, just a
1958 thin wrapper macro around obstack_alloc.
1960 * stmt.c (expand_fixup): Use ggc_alloc.
1961 * c-typeck.c (add_pending_init): Use ggc_alloc.
1962 * emit-rtl.c (init_emit_once): Clear CONST_DOUBLE_CHAIN(tem).
1963 * varasm.c (immed_double_const): Set CONST_DOUBLE_MEM(r) to
1964 const0_rtx when it is created.
1965 (immed_real_const_1): Set CONST_DOUBLE_CHAIN(r) to NULL_RTX if
1966 we are not in a function.
1968 * tree.c (tree_class_check_failed): Make second arg an int.
1969 * tree.h: Update prototype.
1971 2000-06-09 Geoff Keating <geoffk@cygnus.com>
1973 * tree.h (VOID_TYPE_P): Don't look at the TYPE_MAIN_VARIANT
1974 of an error_mark_node.
1976 Fri Jun 9 20:35:13 2000 Denis Chertykov <denisc@overta.ru>
1978 * config/avr/avr.c (asm_output_section_name): bugfix.
1980 2000-06-09 Jason Merrill <jason@casey.soma.redhat.com>
1982 * timevar.def: Add TV_EXPAND.
1983 * timevar.c (timevar_print): Update timing information.
1984 * calls.c (try_to_integrate): Push to TV_INTEGRATION for inlining.
1986 * stmt.c (expand_return): Check for error_mark_node.
1988 2000-06-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1990 * configure.in: Also avoid wrapping auto-build.h with IN_GCC.
1992 * scan-types.sh (VALUE) Wrap use with double quotes to protect
1993 variable against filename expansion when it contains "char *".
1995 * system.h (SSIZE_MAX): Delete backup definition.
1997 * cppfiles.c (read_include_file): Use INTTYPE_MAXIMUM(ssize_t)
1998 instead of SSIZE_MAX.
2000 2000-06-09 Jakub Jelinek <jakub@redhat.com>
2002 * configure.in: Check whether gas supports -relax.
2003 * configure, config.in: Rebuilt.
2004 * config/sparc/sparc.h (ASM_RELAX_SPEC): Define.
2005 (EXTRA_SPECS): Add asm_relax.
2006 (ASM_SPEC): Add %(asm_relax).
2007 (TARGET_SWITCHES): Add -mrelax and -mno-relax.
2008 * config/sparc/linux64.h (LINK_ARCH_SPEC): Rename to LINK_SPEC.
2009 (LINK_SPEC): Pass -relax to linker unless -mno-relax or -r.
2010 (ASM_SPEC): Add %(asm_relax).
2011 * config/sparc/linux.h (LINK_SPEC, ASM_SPEC): Likewise.
2012 * config/sparc/sparc.c (output_sibcall): If HAVE_AS_RELAX_OPTION,
2013 never use sethi/jmpl for leaf tail calls. Use or with rs2 %g0
2014 instead of mov, so that gas can further optimize it.
2016 2000-06-08 James E. Wilson <wilson@bletchleypark.cygnus.com>
2018 * dwarf2out.c (size_of_die, case dw_val_class_const): Use
2020 (value_format, case dw_val_class_const): Use sdata format.
2021 (output_die): Call output_sleb128.
2023 2000-06-08 James E. Wilson <wilson@cygnus.com>
2025 * dwarf2out.c (ASM_OUTPUT_DWARF_DATA8): Add new macro that uses
2026 UNALIGNED_DOUBLE_INT_ASM_OP. Rename old macro to
2027 ASM_OUTPUT_DWARF_CONST_DOUBLE.
2028 (output_die, case dw_val_class_unsigned_const): Correct call to
2029 ASM_OUTPUT_DWARF_DATA8.
2030 (output_die, case dw_val_class_long_long): Use
2031 ASM_OUTPUT_DWARF_CONST_DOUBLE.
2032 * tree.c (host_integerp): Accept unsigned HOST_WIDE_INT values when
2035 * config/ia64/ia64-protos.h (ia64_output_end_prologue): Add.
2036 (output_function_prologue): Fix mispelling.
2037 (output_function_prologue, output_function_epilogue): Reorder to
2038 match ia64.c definition order.
2039 * config/ia64/ia64.c (ia64_expand_prologue): Add comment.
2040 (ia64_expand_epilogue): Set RTX_FRAME_RELATED_P on stack restore insns.
2041 Use r3 instead of r2 for large stack restores.
2042 (ia64_output_end_prologue): New function.
2043 (process_set): Emit ".restore sp" for epilogue stack restores.
2044 * config/ia64/ia64.h (FUNCTION_END_PROLOGUE): Define.
2046 2000-06-08 Jakub Jelinek <jakub@redhat.com>
2048 * dbxout.c (dbxout_type_fields): Don't segfault on fields with
2051 2000-06-08 Nathan Sidwell <nathan@codesourcery.com>
2053 * frame.c (end_fde_sort): Remove extraneous erratic array test.
2055 2000-06-08 Denis Perchine <dyp@perchine.com>
2057 * frame.c (start_fde_sort): Don't malloc (0).
2059 2000-06-07 Zack Weinberg <zack@wolery.cumb.org>
2061 * c-decl.c (pushdecl): Do not call COMPLETE_TYPE_P on
2063 * print-tree.c (print_node): The transparent_union_flag means
2064 different things for unions and arrays. Do not inspect it
2065 with TYPE_TRANSPARENT_UNION.
2067 2000-06-06 Jakub Jelinek <jakub@redhat.com>
2069 * cpplib.c (do_ifdef, do_ifndef): Don't segfault if parse_ifdef
2072 Wed Jun 7 20:34:33 2000 Denis Chertykov <denisc@overta.ru>
2074 * config/avr/avr.c (asm_output_section_name): output section
2076 * config/avr/libgcc.S (.text.libgcc): declare section attributes.
2078 2000-06-06 James E. Wilson <wilson@cygnus.com>
2080 * frame.h (struct unwind_info_ptr): Collapse version, flags, and length
2081 fields into header field.
2082 (IA64_UNW_HDR_LENGTH, IA64_UNW_HDR_FLAGS, IA64_UNW_HDR_VERSION): New
2083 macros to access length, flags, and version info from header field.
2084 * config/ia64/crtbegin.asm (__do_frame_setup_aux): Delete here.
2085 * config/ia64/crtend.asm (__do_frame_setup_aux): Add here.
2086 (__do_global_ctors_aux): Fix caller.
2087 * config/ia64/frame-ia64.c (get_unwind_record): Change parameter
2088 prologue_flag to header. Pass to read_P_record.
2089 (read_P_record): New argument header. Implement P4 format.
2090 Multiply P7_T_SIZE by 16.
2091 (execute_one_ia64_descriptor): New static local region_header. Pass to
2092 get_unwind_record. Copy r to region_header if r is a header record.
2093 (print_all_records): Likewise.
2094 (__build_ia64_frame_state): Use IA64_UNW_HDR_LENGTH.
2095 (__get_personality, __get_except_table): Likewise.
2096 * config/ia64/ia64.c (process_set): Do not divide offsets by 4.
2098 2000-06-06 Philipp Thomas <pthomas@suse.de>
2100 * configure.in (AC_C_INLINE): Added.
2101 * aclocal.m4 (AM_WITH_NLS): Enable --with-included-gettext by default.
2102 * configure: Regenerate.
2104 2000-06-06 Mark Mitchell <mark@codesourcery.com>
2106 * c-common.h (c_language_kind): New type.
2107 (c_language): New variab.e
2108 * c-common.c (lang_get_alias_set): Don't put structures in
2109 non-zero alias sets in C++.
2110 * c-decl.c (c_language): Define it.
2111 * c-lex.c (doing_objc_thang): Remove.
2112 * c-tree.h (doing_objc_thang): Make it a macro.
2113 * objc/objc-act.c (lang_decode_option): Set c_language, not
2116 2000-06-06 Gabriel Dos Reis <gdr@codesourcery.com>
2118 * diagnostic.c (output_maximum_width): Remove.
2119 (doing_line_wrapping): Tweak.
2120 (diagnostic_buffer): New object.
2121 (global_output_buffer): New object.
2122 (output_destroy_prefix): New function.
2123 (default_initialize_buffer): Likewise.
2124 (reshape_diagnostic_buffer): Likewise.
2125 (initialize_diagnostics): Likewise.
2126 (output_clear): Tweak.
2127 (line_wrapper_printf): Adjust call to init_output_buffer.
2128 (vline_wrapper_message_with_location): Likewise. Use
2129 output_destroy_prefix.
2130 (v_message_with_decl): Likewise.
2132 * diagnostic.h (struct output_buffer): Constify prefix.
2133 (init_output_buffer, output_get_prefix): Constify.
2134 (diagnostic_message_length_per_line): Likewise.
2135 (reshape_diagnostic_buffer): Declare.
2136 (default_initialize_buffer): Declare.
2137 (initialize_diagnostics): Declare.
2138 (diagnostic_buffer): Declare new obbject.
2140 * toplev.c: #include diagnostic.h
2141 (display_help): Document diagnostic formatting options.
2142 (decode_f_option): Handle diagnostic formatting options.
2143 (main): Setup initialization for diagnostic messages outputter.
2145 * toplev.h (set_message_length): Remove.
2147 * Makefile.in (toplev.o): Depends upon diagnostic.h
2149 * invoke.texi : Document diagnostics formatting options.
2151 Tue Jun 6 19:25:32 2000 Philippe De Muyter <phdm@macqel.be>
2153 * configure.in (Make the links): Typo fix : the file that must be
2154 included without #ifdef IN_GCC is `auto-host.h', not `auto-config.h'.
2155 * configure: File rebuilt.
2157 2000-06-06 Nathan Sidwell <nathan@codesourcery.com>
2159 * eh-common.h (EH_ALLOC_SIZE, EH_ALLOC_ALIGN): New #defines.
2160 (eh_context): Add alloc_mask and alloc_buffer emergency fallback
2162 * libgcc2.c (__eh_alloc): Moved from cp/exception.cc. Fallback on
2163 emergency eh_context buffer, if malloc fails.
2164 (__eh_free): Moved from cp/exception.cc. Release to emergency
2165 eh_context buffer, if appropriate.
2167 2000-06-06 Jason Merrill <jason@casey.soma.redhat.com>
2169 * expr.c (store_expr): Fix typo.
2171 2000-06-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2173 * m68k.c (legitimize_pic_address): Move prototype ...
2175 * m68k-protos.h (legitimize_pic_address): ... here.
2177 * m68k.md (legitimize_pic_address): Delete prototypes.
2178 (untyped_call): Invoke GEN_CALL(), not gen_call().
2180 * nextstep.c: Include system.h and toplev.h.
2181 (get_directive_line): Don't prototype.
2182 (handle_pragma): Mark parameters with ATTRIBUTE_UNUSED and constify.
2184 * nextstep.h (handle_pragma): Prototype.
2185 (SECTION_FUNCTION): Prototype FUNCTION(). Move prototype of
2186 objc_section_init ...
2187 (EXTRA_SECTION_FUNCTIONS): ... here.
2189 Tue Jun 6 08:17:26 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2191 * sdbout.c (struct sdb_file): NAME now const.
2192 (sdbout_init): input_file_name now const.
2193 (sdbout_start_new_source_file): FILENAME now const.
2194 * sdbout.c (sdbout_init, sdbout_start_new_source_file): Reflect above.
2196 2000-06-06 Gabriel Dos Reis <gdr@codesourcery.com>
2198 * c-typeck.c (build_conditional_expr): Handle complex data types.
2200 2000-06-05 Jason Merrill <jason@casey.soma.redhat.com>
2202 * explow.c (maybe_set_unchanging): New function, broken out from...
2203 (set_mem_attributes): Here.
2204 * expr.h: Declare it.
2205 * stmt.c (expand_decl): Call it.
2207 2000-06-05 Richard Henderson <rth@cygnus.com>
2209 * reload1.c (choose_reload_regs): Mind CLASS_CANNOT_CHANGE_SIZE
2210 while looking for a register to inherit from.
2212 2000-06-05 Jason Merrill <jason@casey.soma.redhat.com>
2214 * Makefile.in (libgcc.ready): Lose.
2215 (libgcc.mk): Just use mv, not move-if-change.
2216 (LIBGCC_DEPS): New macro.
2218 (stmp-multilib): Likewise.
2219 * mklibgcc.in (stmp-dirs): New target. Make everything depend on
2220 it rather than the directories themselves.
2221 (LIB2ADD): Depend on the list file rather than 'force'.
2223 * fold-const.c (fold, case COND_EXPR): Elide conversion between
2224 cv-qualified versions of types.
2226 Mon Jun 5 14:06:18 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2228 * config/sparc/sparc.c (short_branch): Correct error in range
2231 2000-06-05 J. David Anglin <dave@hiauly1.hia.nrc.ca>
2233 * fixinc/inclhack.def: New include hacks for ultrix.
2234 * (nested_ultrix): Replaced by ultrix_nested_svc.
2235 * (ultrix_atof_param): test_text string added.
2236 * (ultrix_ifdef): Modified select string.
2238 2000-06-05 Zack Weinberg <zack@wolery.cumb.org>
2240 * objc/objc-act.c (generate_method_descriptors): Register
2241 objc_method_prototype_template as a GC root.
2242 (comp_method_with_proto): Register function_type as a GC root.
2243 (comp_proto_with_proto): Replace function_type1 and
2244 function_type2 with a two-element array; register it as a GC root.
2246 (generate_protocols, build_protocol_initializer,
2247 generate_protocol_list, build_category_initializer,
2248 build_shared_structure_initializer): Do not cache cast_type
2251 2000-06-05 J. David Anglin <dave@hiauly1.hia.nrc.ca>
2253 * function.c (assign_parms): Add missing argument to set_mem_attributes
2256 2000-06-05 Nathan Sidwell <nathan@codesourcery.com>
2258 * tree.h (VOID_TYPE_P): New macro.
2259 (COMPLETE_OR_VOID_TYPE_P): Use VOID_TYPE_P.
2260 * c-decl.c (grokdeclarator): Use VOID_TYPE_P.
2261 (get_parm_info): Likewise.
2262 (store_parm_decls): Likewise.
2263 (combine_parm_decls): Likewise.
2264 (finish_function): Likewise.
2265 * c-typeck.c (build_function_call): Likewise.
2266 (build_binary_op): Likewise.
2267 (build_conditional_expr): Likewise.
2268 (internal_build_compound_expr): Likewise.
2269 (convert_for_assignment): Likewise.
2270 * stmt.c (expend_expr_stmt): Likewise.
2271 (warn_if_unused_value): Likewise.
2272 (expand_return): Likewise.
2273 * c-parse.in (primary): Likewise.
2274 * c-parse.y, c-parse.c, c-parse.h: Regenerate.
2275 * objc/objc-parse.y, objc/objc-parse.c: Regenerate.
2277 Mon Jun 5 06:46:28 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2279 * alias.c (get_alias_set): If compnent is addressable, use alias
2281 * c-decl.c (init_decl_processing): Don't call record_component_aliases.
2282 (grokdeclarator): Likewise.
2283 * c-typeck.c (common_type): Likewise.
2285 2000-06-04 Alex Samuel <samuel@codesourcery.com>
2287 * Makefile.in (OBJS): Remove dyn_string.o
2288 (dyn-string.o): Delete rule.
2289 * dyn-string.c: Delete file
2290 * dyn-string.h: Likewise.
2292 2000-06-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2294 * Makefile.in (intl.*): Honor non-zero exit codes in the intl
2297 2000-06-03 Geoff Keating <geoffk@cygnus.com>
2299 * alias.c (record_component_aliases): Don't inspect
2300 DECL_NONADDRESSABLE_P of non-FIELD_DECL components of structures.
2302 Sat Jun 3 19:05:30 2000 Michael Meissner <meissner@redhat.com>
2304 * ifcvt.c (process_insns): If IFCVT_MODIFY_INSN is defined, call
2305 it with the pattern to do machine dependent work.
2306 (cond_exec_process_if_block): If IFCVT_MODIFY_TESTS is defined,
2307 use it to modify the true/false tests used in conditional
2308 execution. If IFCVT_MODIFY_FINAL and IFCVT_MODIFY_CANCEL are
2309 defined, invoke them if the conversion to conditional execution
2310 was successful or not.
2312 * tm.texi (IFCVT_MODIFY_TESTS): Document.
2313 (IFCVT_MODIFY_INSN): Ditto.
2314 (IFCVT_MODIFY_FINAL): Ditto.
2315 (IFCVT_MODIFY_CANCEL): Ditto.
2317 Sat Jun 3 15:26:13 2000 Matt Kraai <kraai@alumni.carnegiemellon.edu>
2319 * toplev.c (main): Fix misspellings of possibility and language.
2321 2000-06-03 Richard Henderson <rth@cygnus.com>
2323 * alias.c (record_alias_subset): Initialize has_zero_child in the
2326 2000-06-03 Richard Earnshaw (rearnsha@arm.com)
2328 * arm.md (untyped_call): Use GEN_CALL macro.
2330 2000-06-02 Pekka Nikander <pnr@teldanex.tcm.hut.fi>
2332 * Makefile.in: Use $(MAKE) not "make"
2334 Fri Jun 2 19:31:03 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2336 * alias.c (struct alias_set_entry): New field has_zero_child.
2337 (mem_in_disjoint_alias_sets_p): Return 0 if set in either ase.
2338 (get_alias_set): If language-dependent routine set TYPE_ALIAS_SET,
2340 Call record_component_aliases for aggregate types.
2341 (record_alias_subset): Set has_zero_child.
2342 (record_component_aliases, case ARRAY_TYPE): Do nothing if
2343 TYPE_NONALIASES_COMPONENT.
2344 (record_component_aliases, case RECORD_TYPE): Test
2345 DECL_NONADDRESSABLE_P.
2346 * c-decl.c (grokdeclarator): Set DECL_NONADDRESSABLE_P instead
2347 of TREE_ADDRESSABLE.
2348 * calls.c (initialize_argument_information): Only test
2349 TYPE_TRANSPARENT_UNION for UNION_TYPE.
2350 * function.c (assign_parms): Likewise.
2351 * integrate.c (function_cannot_inline_p): Likewise.
2352 * stor-layout.c (finish_record_layout): Don't call
2353 record_component_aliases.
2354 * tree.h (struct tree_int_cst): Use struct tree_common.
2355 (struct tree_real_cst, struct tree_string): Likewise.
2356 (struct tree_complex, struct tree_identifier): Likewise.
2357 (struct tree_list, struct tree_vec, struct tree_exp): Likewise.
2358 (struct tree_block, struct tree_type, struct tree_decl): Likewise.
2359 (TYPE_TRANSPARENT_UNION): Use UNION_TYPE_CHECK.
2360 (TYPE_NONALIASES_COMPONENT): New macro.
2361 (TYPE_AMBIENT_BOUNDEDNESS): Use FUNCTION_TYPE_CHECK.
2362 (DECL_NONADDRESSABLE_P): New macro.
2363 (struct tree_decl): Reorder bits for clarity of how many left;
2366 2000-06-02 Jason Merrill <jason@casey.soma.redhat.com>
2368 * Makefile.in (libgcc.a): Also depend on $(LIB2ADD).
2369 * mklibgcc.in (force): New target.
2370 Make LIB2ADD stuff depend on it.
2372 2000-06-02 Richard Henderson <rth@cygnus.com>
2374 * alias.c (lang_get_alias_set): Remove.
2375 (get_alias_set): Call it directly, not indirectly.
2376 * c-common.c (lang_get_alias_set): Rename from c_get_alias_set.
2377 * c-common.h (c_get_alias_set): Don't declare.
2378 * c-decl.c (init_decl_processing): Don't set lang_get_alias_set.
2379 * expr.h (lang_get_alias_set): Declare as function, not pointer.
2381 2000-06-02 Bruce Korb <bkorb@gnu.org>
2383 * fixinc/server.c(sig_handler): resume closing server on SIGPIPE
2384 (server_setup): define the server's master pid
2385 (close_server): actually do the deed IFF we are the server's master
2387 2000-06-02 Jakub Jelinek <jakub@redhat.com>
2389 * c-common.c (c_get_alias_set): Check whether signed_type did not
2390 return its argument before calling get_alias_set on the result.
2392 2000-06-02 Andrew MacLeod <amacleod@cygnus.com>
2394 * expr.c (emit_group_load): Fix typo, GET_MODE not GET_CODE.
2396 Fri Jun 2 00:22:52 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
2398 * sh.h (CPP_SPEC): Add -D__NOMACSAVE__ for -mnomacsave.
2399 (CONDITIONAL_REGISTER_USAGE): Mac registers are call used
2400 for TARGET_NOMACSAVE.
2401 (NOMACSAVE_BIT): Define.
2402 (TARGET_NOMACSAVE): Define.
2403 (TARGET_SWITCHES): Add "nomacsave".
2405 2000-06-02 Toshiyasu Morita <toshi.morita@sega.com>
2407 * sh.md (untyped_call): Remove excess parameters
2409 2000-06-01 Loren J. Rittle <ljrittle@acm.org>
2411 * fixinc/inclhack.def (osf_namespace_a): Relax expression to
2412 match that used before the conversion to c_fix style.
2413 * fixinc/fixincl.x: regenerate
2415 2000-06-01 Stan Cox <scox@cygnus.com>
2417 * varray.h (VARRAY_PUSH_GENERIC_PTR, VARRAY_PUSH_CHAR_PTR): Fix
2418 macro argument typo.
2420 2000-06-01 Zack Weinberg <zack@wolery.cumb.org>
2422 * cpplex.c (maybe_macroexpand): Use CPP_WTRADITIONAL. Improve
2424 * cpplib.c (parse_include): Remove support for VAX-C
2425 "#include starlet" misfeature.
2427 2000-05-31 Laurynas Biveinis <lauras@softhome.net>
2429 * cppfiles.c: conditionally define O_BINARY.
2430 (open_include_file): pass O_BINARY to open().
2432 2000-06-01 Richard Henderson <rth@cygnus.com>
2434 * i960.c (i960_br_predict_opcode): Remove.
2435 (i960_print_operand) [+]: Emit branch prediction hints.
2436 (i960_function_arg): Return early for VOIDmode.
2437 (i960_round_align): Return early for incomplete types.
2438 * i960.h (PRINT_OPERAND_PUNCT_VALID_P): New.
2439 * i960.md (all conditional branches): Add "%+".
2441 Thu Jun 1 12:24:21 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2443 * alias.c (get_alias_set): Don't call language-specific routine more
2444 than is needed and clean up code a bit.
2445 * c-common.c (c_get_alias_set): All references whose type
2446 is char get alias set 0, but character types need not.
2447 * varasm.c (make_function_rtl): Don't call set_mem_attributes.
2448 (make_decl_rtl): Don't call it for FUNCTION_DECL.
2450 2000-06-01 Bruce Korb <bkorb@gnu.org>
2452 * fixinc/tests/base/...: new base result files
2454 Thu Jun 1 09:37:35 2000 Clinton Popetz <cpopetz@cygnus.com>
2456 * config/i386/i386.c (ix86_use_fcomi_compare): Make global.
2457 * config/i386/i386-protos.h (ix86_use_fcomi_compare): Declare.
2458 * config/i386/i386.md (*fp_jcc_3, *fp_jcc_4): Disable if we
2461 2000-06-01 Richard Henderson <rth@cygnus.com>
2463 * Makefile.in (c-decl.o): Depend on $(EXPR_H), not expr.h.
2465 * c-decl.c (init_decl_processing): Set lang_get_alias_set first thing.
2467 2000-05-31 Richard Henderson <rth@cygnus.com>
2469 * config/ia64/ia64.c (sdata_symbolic_operand): Consider small
2470 CONSTANT_POOL_ADDRESS_P addresses for .sdata.
2471 * config/ia64/sysv4.h (SELECT_RTX_SECTION): New.
2473 2000-05-31 Richard Henderson <rth@cygnus.com>
2475 * config/ia64/ia64-protos.h (ia64_expand_prediction): Remove.
2476 * config/ia64/ia64.c (ia64_expand_prediction): Move code ...
2477 (ia64_print_operand) [+]: ... here. Use current_output_insn.
2478 * config/ia64/ia64.h (PRINT_OPERAND_PUNCT_VALID_P): New.
2479 * config/ia64/ia64.md (all branch/call patterns): Use %+.
2481 2000-05-31 Richard Henderson <rth@cygnus.com>
2483 * ifcvt.c (cond_exec_process_insns): Don't ever ignore clobbers.
2485 2000-05-31 Richard Henderson <rth@cygnus.com>
2487 * ifcvt.c (merge_if_block): Be prepared for JOIN to have no
2489 (find_if_block): Allow THEN with no outgoing edges.
2490 * flow.c (merge_blocks_nomove): Remove a barrier not following
2493 2000-05-31 Richard Henderson <rth@cygnus.com>
2495 * flow.c (propagate_block): Move initialization of mem_set_list ...
2496 (init_propagate_block_info): ... here. Also track blocks with
2497 no successors; don't scan insns if ! PROP_SCAN_DEAD_CODE.
2499 2000-05-31 Richard Henderson <rth@cygnus.com>
2501 * jump.c (jump_optimize_1): Revert 05-18 change.
2503 2000-05-31 Mark Mitchell <mark@codesourcery.com>
2505 * invoke.texi: Remove documentation for -fguiding-decls.
2507 2000-05-31 Richard Henderson <rth@cygnus.com>
2509 * configure.in: Fix typo last change.
2511 2000-05-31 Philipp Thomas <pthomas@suse.de>
2513 * configure.in (enable-nls): Enable if build == host, i.e. when
2514 not building a canadian cross compiler.
2515 (enable-maintainer-mode): Added for use with i18n.
2516 * aclocal.m4 (AM_GNU_GETTEXT): Only build catalogs that are a
2517 cross section of ALL_LINGUAS and LINGUAS.
2518 * configure: Rebuild.
2520 2000-05-31 Bruce Korb <bkorb@gnu.org>
2522 * fixinc/check.tpl: rework to use test result tree
2523 * fixinc/Makefile.in: change invocation of check script
2524 * fixinc/check.diff: No longer needed
2525 * fixinc/fixincl.x: regenerate
2526 * fixinc/inclhack.def: add new tests
2527 * fixinc/tests/base/arch/i960/archI960.h: New test result
2528 * fixinc/tests/base/curses.h: modified test result
2529 * fixinc/tests/base/stdio.h: ditto
2530 * fixinc/tests/base/time.h: ditto
2531 * fixinc/tests/base/sys/asm.h: ditto
2532 * fixinc/tests/base/sys/stat.h: ditto
2533 * fixinc/tests/base/sys/wait.h: ditto
2535 Wed May 31 13:17:20 2000 Philippe De Muyter <phdm@macqel.be>
2537 * except.c (clear_function_eh_region): Do not free NULL.
2539 Wed May 31 08:07:52 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2541 * Makefile.in (c-decl.o): Depend on rtl.h and expr.h.
2542 * alias.c (struct alias_entry): alias_set is HOST_WIDE_INT.
2543 (REG_BASE_VALUE): Remove unneeded cast to unsigned.
2544 (get_alias_set_entry): ALIAS_SET arg is HOST_WIDE_INT.
2545 (find_base_decl): New function, from c_find_base_decl in c-common.c.
2546 (new_alias_set): Moved from tree.c; return is HOST_WIDE_INT.
2547 (get_alias_set): Likewise.
2548 Major rework to do more things and allow language-specific code
2549 to just handle special-cases.
2550 (record_alias_subset): Args are HOST_WIDE_INT.
2551 (record_component_alias): Local vars are HOST_WIDE_INT.
2552 Don't handle COMPLEX_EXPR.
2553 (get_varargs_alias_set): Moved from builtins.c.
2554 (get_frame_alias_set): New function.
2555 * builtins.c (expand_builtin_return_address): Use frame alias set.
2556 (expand_builtin_setjmp, expand_builtin_longjmp): Use alias set
2558 (get_memory_rtx): Rework to use set_mem_attributes.
2559 (get_varargs_alias_set): Deleted from here.
2560 * c-common.c (c_apply_type_quals_to_decl): Alias sets now HOST_WIDE_INT.
2561 (c_find_base_decl): Deleted from here.
2562 (c_get_alias_set): Remove many cases and rework to just handle
2564 * c-common.h (c_get_alias_set): Returns HOST_WIDE_INT.
2565 * c-decl.c (rtl.h, expr.h): Now included.
2566 (init_decl_processing): Call record_component_aliases on array types.
2567 (grokdeclarator): Likewise.
2568 Set TREE_ADDRESSABLE for all fields that are not bitfields.
2569 * c-typeck.c (common_type): Call record_component_aliases for array.
2570 * caller-save.c (setup_save_areas): Rework register loop for unsigned.
2571 Set all save areas to the frame alias set.
2572 * calls.c (initialie_argument_information): Call set_mem_attributes.
2573 (compute_argument_addresses, expand_call): Likewise.
2574 * explow.c (set_mem_attributes): New function.
2575 (stabilize): Use MEM_COPY_ATTRIBUTES and force_reg.
2576 * expr.c (struct move_by_pieces): Remove {to,from}_{struct,readonly}.
2577 LEN and OFFSET now HOST_WIDE_INT.
2578 (clear_by_pieces): Similar changes.
2579 (move_by_pieces): LEN now HOST_WIDE_INT; don't set deleted fields.
2580 (move_by_pieces_ninsns): Now returns unsigned HOST_WIDE_INT.
2581 (move_by_pieces_1): Don't use deleted fields, use MEM_COPY_ATTRIBUTES.
2582 (clear_by_pieces_1): Likewise.
2583 (emit_push_insn): Call set_mem_attributes.
2584 (expand_expr, case INDIRECT_REF): Likewise.
2585 (expand_expr, case VAR_DECL): Call change_address.
2586 * expr.h (ADD_PARM_SIZE, SUB_PARM_SIZE): Use host_integerp and
2588 (get_varargs_alias_set, get_frame_alias_set): New decls.
2589 (record_base_value, record_alias_subset, lang_get_alias_set): Likewise.
2590 (new_alias_set, set_mem_attributes): Likewse.
2591 * function.c (struct temp_slot): ALIAS_SET is HOST_WIDE_INT.
2592 (assign_stack_temp_for_type): Likewise.
2593 Can split slot even if alias set since can copy.
2594 Set MEM_ALIAS_SET and MEM_SET_IN_STRUCT_P.
2595 (assign_temp): Use host_integerp and tree_low_cst.
2596 (put_var_into_stack): Properly handle SAVE_EXPR.
2597 (put_addressof_into_stack): Likewise.
2598 (assign_parms): Call set_mem_attributes.
2600 (fix_lexical_address): Put reference to chain into frame alias set.
2601 (expand_function_start): Call set_mem_attributes.
2602 * integrate.c (expand_inline_function): Likewise.
2603 * recog.c (adj_offsettable_operand): Use MEM_COPY_ATTRIBUTES.
2604 * regmove.c (try_apply_stack_adjustment): Likewise.
2605 * reload.c (push_reload, make_memloc): Likewise.
2606 * reload1.c (alter_reg): Make alias sets for spilled pseudos.
2607 * rtl.def (MEM): Update comment.
2608 * rtl.h (MEM_ALIAS_SET): Now uses XCWINT.
2609 (move_by_pieces): Change length to HOST_WIDE_INT.
2610 (record_base_value, record_alias_subset): Delete from here.
2611 * stmt.c (expand_decl): Call set_mem_attributes.
2612 * stor-layout.c (finish_record_layout): Call record_component_aliases.i
2613 * toplev.c (compile_file): Call init_alias_once earlier.
2614 * tree.c (lang_get_alias_set, get_alias_set, new_alias_set): Deleted
2615 from here: now in alias.c.
2616 * tree.h (struct tree_type): alias_set is HOST_WIDE_INT.
2617 (struct tree_decl): Likewise.
2618 (get_alias_set, new_alias_set, lang_get_alias_set): Deleted from here.
2619 * varasm.c (make_function_rtl, make_decl_rtl): Call set_mem_attributes.
2620 (output_constant_def, force_const_mem): Likewise.
2622 * flow.c (propagate_block): If block has no successors, stores to
2623 frame are dead if not used.
2625 2000-05-31 Nathan Sidwell <nathan@codesourcery.com>
2627 * stmt (expand_end_case): Reorder conversion sequence for jump
2628 table to avoid extra truncations.
2630 Wed May 31 01:31:42 2000 Jeffrey A Law (law@cygnus.com)
2632 * ifcvt.c (cond_exec_process_if_block): Do nothing if the last insn
2633 in the block is more than just a simple conditional branch.
2634 (noce_process_if_block): Similarly.
2636 Tue May 30 22:25:57 2000 Alexandre Oliva <aoliva@cygnus.com>
2638 * optabs.c (prepare_float_lib_cmp): Protect *px and *py from
2641 2000-05-30 Michael Meissner <meissner@redhat.com>
2643 * dwarf2out.c (dwarf2out_frame_debug_expr): Ignore HIGH
2644 instructions. Treat LO_SUM operations as loading the full integer
2647 2000-05-30 Richard Henderson <rth@cygnus.com>
2649 * combine.c (get_pos_from_mask): Test exact_log2 result as signed.
2651 2000-05-30 Richard Henderson <rth@cygnus.com>
2653 * bb-reorder.c (emit_jump_to_block_after): Protect use of HAVE_return.
2655 2000-05-30 Bruce Korb <bkorb@gnu.org>
2657 * fixinc/tests/*: Added expected result files for fixinc's make check
2658 * fixinc/fixfixes(char_macro_*_fix): Restore original algorithm
2660 2000-05-30 Richard Henderson <rth@cygnus.com>
2662 * config/alpha/alpha.md (*setne_internal): Use match_operator
2663 instead of working down from insn.
2665 2000-05-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2667 * invoke.texi (-Wtraditional): Update WRT function macros.
2669 Tue May 30 09:57:32 2000 Philippe De Muyter <phdm@macqel.be>
2671 * except.c (free_exception_table): Do not free NULL.
2673 2000-05-29 Zack Weinberg <zack@wolery.cumb.org>
2675 * cpplib.c (do_if): Don't save and restore only_seen_white here.
2676 * cppexp.c (_cpp_parse_expr): Save and restore only_seen_white
2679 2000-05-29 Richard Earnshaw (rearnsha@arm.com)
2681 * flow.c (mark_used_reg): If a register is unconditionally live,
2682 remove any conditional death information.
2684 2000-05-29 Richard Henderson <rth@cygnus.com>
2686 * final.c (current_output_insn): New.
2687 (final_scan_insn): Set it.
2688 * output.h: Declare it.
2690 2000-05-29 Richard Henderson <rth@cygnus.com>
2692 * stor-layout.c (finalize_record_size): Fix typo.
2694 * jump.c (redirect_jump): Don't emit NOTE_INSN_FUNCTION_END
2697 2000-05-29 Zack Weinberg <zack@wolery.cumb.org>
2699 * cpplib.h (cpp_reader): Remove if_stack. Change
2700 potential_control_macro to a cpp_hashnode *. Add skipping flag.
2701 * cpphash.h (struct ihash): Change control_macro to a
2702 cpp_hashnode * and shorten name to cmacro.
2703 Add NEVER_REINCLUDE constant.
2705 * cppfiles.c (redundant_include_p): Drop cpp_reader argument.
2706 Examine the cmacro node directly, no need to call cpp_defined.
2707 (_cpp_execute_include, read_include_file): Set cmacro to
2708 NEVER_REINCLUDE, not U"".
2709 * cpplex.c (cpp_push_buffer): Don't set new->if_stack.
2710 (cpp_get_token): If pfile->skipping is true, discard text and
2711 keep scanning until we hit a directive; don't expand macros.
2713 * cpplib.c (struct if_stack): Remove if_succeeded, add
2714 was_skipping. Change control_macro to a cpp_hashnode * and
2715 shorten name to cmacro. Remove typedef IF_STACK.
2716 (parse_ifdef), detect_if_not_defined): Return a cpp_hashnode *.
2717 (conditional_skip, skip_if_group,
2718 consider_directive_while_skipping): Delete.
2719 (push_conditional): New.
2720 (_cpp_handle_directive): Don't process directives other than
2721 conditionals if we are skipping.
2723 (do_ifdef, do_ifndef, do_if, do_else, do_elif, do_endif):
2724 Update to new scheme.
2725 (validate_else): Skip rest of line here, unconditionally.
2726 (_cpp_unwind_if_stack): The stack is per-buffer. Force
2727 pfile->skipping off.
2729 (all): Remove `scare quotes' from error messages.
2731 2000-05-29 Richard Henderson <rth@cygnus.com>
2733 * function.c (emit_return_into_block): New line_note arg; emit it.
2734 (thread_prologue_and_epilogue_insns): Attempt to locate a line note
2735 for the close brace to accompany HAVE_return. Move all line notes
2736 following the epilogue to before the NOTE_INSN_EPILOGUE_BEG.
2738 2000-05-29 Richard Henderson <rth@cygnus.com>
2740 * longlong.h [__alpha] (count_leading_zeros): New.
2741 (count_trailing_zeros): New.
2742 (COUNT_LEADING_ZEROS_0): New.
2744 * config/alpha/alpha.c (alpha_zero_comparison_operator): New.
2745 (alpha_split_conditional_move): New.
2746 * config/alpha/alpha-protos.h: Prototype them.
2747 * config/alpha/alpha.h (PREDICATE_CODES): Update.
2748 (CPP_CPU_DEFAULT_SPEC): Fix typo for EV67.
2749 * config/alpha/alpha.md: Update ffs cix commentary.
2751 (*nabssf2, *nabsdf2): New.
2752 (*mov[qhsd]icc_internal): Use add_operand.
2753 (if_then_else constant splitters): New.
2754 (*cmp_sadd_di, *cmp_sadd_si, *cmp_sadd_sidi): New.
2755 (*cmp_ssub_di, *cmp_ssub_si, *cmp_ssub_sidi): New.
2757 2000-05-29 Richard Henderson <rth@cygnus.com>
2759 * combine.c (force_to_mode) [MINUS]: Convert subtraction from
2760 a constant to NEG or NOT when conditions allow.
2762 * combine.c (combine_simplify_rtx): Don't create an if_then_else
2763 unless both args are general_operand. Don't canonicalize plus
2764 to ior unless it helps.
2766 * toplev.c (rest_of_compilation): Set no_new_pseudos after flow1;
2767 instead track register_life_up_to_date. Toggle no_new_pseudos
2770 2000-05-28 Geoff Keating <geoffk@cygnus.com>
2772 * config/rs6000/rs6000.c (output_cbranch): Escape '%' characters
2773 so output_operand doesn't see them.
2775 Sun May 28 18:37:07 2000 Clinton Popetz <cpopetz@cygnus.com>
2777 * lcm.c (make_preds_opaque): Fix comment.
2778 (optimize_mode_switching): Use NORMAL_MODE instead of
2779 MODE_USES_IN_EXIT_BLOCK. Change leftover instance of
2780 FP_MODE_NONE to no_mode. Rename MODE_AT_ENTRY to NORMAL_MODE.
2781 Handle insertions before an existing NOTE_INSN_BASIC_BLOCK.
2782 * tm.texi (OPTIMIZE_MODE_SWITCHING): Refer to NORMAL_MODE.
2783 (MODE_USES_IN_EXIT_BLOCK): Delete.
2784 (MODE_AT_ENTRY) Rename to NORMAL_MODE.
2785 * sh.h (MODE_USES_IN_EXIT_BLOCK): Delete.
2786 (MODE_AT_ENTRY): Rename to NORMAL_MODE.
2787 (MODE_NEEDED): Don't look for USE.
2788 (EPILOGUE_USES): Define.
2790 Sun May 28 23:26:59 2000 Philippe De Muyter <phdm@macqel.be>
2792 * mklibgcc.in (all): Variable initialised to `libgcc'.
2794 2000-05-28 Gabriel Dos Reis <gdr@codesourcery.com>
2796 * toplev.h (skip_leading_substring): New macro.
2797 * toplev.c (decode_f_option): Use skip_leading_substring instead
2799 (decode_W_option): Likewise.
2801 2000-05-28 Nick Clifton <nickc@cygnus.com>
2803 * tm.texi (CONDITIONAL_REGISTER_USAGE): Document that it can
2806 2000-05-28 Richard Henderson <rth@cygnus.com>
2808 * regclass.c (record_operand_costs): Protect reg_changes_size
2809 with CLASS_CANNOT_CHANGE_SIZE.
2811 * loop.c (instrument_loop_bct): Set JUMP_LABEL on the new insn.
2813 2000-05-28 Richard Henderson <rth@cygnus.com>
2815 * function.c (diddle_return_value): A pcc-style struct return
2818 2000-05-27 Zack Weinberg <zack@wolery.cumb.org>
2820 * cppfiles.c: Read files in, using mmap if possible, then
2821 prescan them separately.
2822 (read_file, read_with_read): New functions.
2823 * cpplex.c: Don't define UCHAR_MAX.
2824 (_cpp_read_and_prescan): Rename to _cpp_prescan. Don't read
2827 * cppinit.c (handle_option): Automatically define __cplusplus,
2828 __OBJC__, __ASEEMBLER__, _LANGUAGE_FORTRAN here when we see
2829 the respective -lang switch.
2831 * cpphash.h (enum node_type, struct hashnode, _cpp_lookup
2832 prototype): Move to...
2833 * cpplib.h: ... here. Rename struct hashnode to struct
2834 cpp_hashnode and give it a typedef. Rename _cpp_lookup to
2835 cpp_lookup. Add 'fe_value' slot, a union tree_node *.
2837 2000-05-27 Geoffrey Keating <geoffk@cygnus.com>
2839 * config/rs6000/rs6000.md (movsi): Constify 'name'.
2841 * regclass.c [CLASS_CANNOT_CHANGE_SIZE]
2842 (class_can_change_size): New variable.
2843 (reg_changes_size): New variable.
2844 (init_reg_sets_1): Initialise class_can_change_size.
2845 (record_operand_costs): Remove subreg_changes_size.
2846 Don't pass it around. Instead update reg_changes_size.
2847 (regclass): Initialise and free reg_changes_size. If a register
2848 changes size, don't preference it to a class that contains
2849 registers that can't change size.
2850 (record_reg_classes): Don't look at subreg_changes_size.
2852 2000-05-27 Richard Henderson <rth@cygnus.com>
2854 * print-rtl.c (reg_names): Remove const.
2855 * regclass.c (reg_names): Likewise.
2856 * regs.h (reg_names): Likewise.
2857 * hard-reg-set.h (reg_names): Likewise.
2859 2000-05-27 Richard Henderson <rth@cygnus.com>
2861 * config/rs6000/rs6000.md (untyped_call): Use GEN_CALL.
2863 2000-05-27 Richard Henderson <rth@cygnus.com>
2865 * config/alpha/alpha.c (alpha_does_function_need_gp): Test
2866 TARGET_PROFILING_NEEDS_GP in the if, instead of with an ifdef.
2867 (alpha_expand_prologue): Emit prologue_mcount if needed.
2868 * config/alpha/alpha.h (TARGET_PROFILING_NEEDS_GP): Default to 0.
2869 * config/alpha/alpha.md (prologue_mcount): New.
2870 * config/alpha/linux.h (FUNCTION_PROFILER): Remove.
2871 (TARGET_PROFILING_NEEDS_GP): Undef before redefining.
2872 * config/alpha/netbsd.h: Likewise.
2874 2000-05-27 Richard Henderson <rth@cygnus.com>
2876 * config/alpha/elf.h (SELECT_SECTION): Mirror Kenner's May 19
2877 change to config/elfos.h.
2879 2000-05-27 Richard Henderson <rth@cygnus.com>
2881 * Makefile.in (resource.o): Depend on except.h.
2882 * except.h (output_exception_table_data): Prototype.
2883 * genconfig.c (gen_peephole2): Prototype.
2884 * genemit.c (main): Include ggc.h.
2885 * genoutput.c: Revert parts of last change: include errors.h
2886 (main): Set progname.
2887 * recog.c: Include hard-reg-set.h before recog.h.
2888 * resource.c: Include except.h.
2890 * config/alpha/alpha-protos.h (alpha_arg_info_reg_val): Protect
2892 (alpha_write_linkage): Protect with BUFSIZ.
2893 (alpha_need_linkage): Update prototype.
2894 * config/alpha/alpha.c (function_arg): Move VMS code here.
2895 (alpha_links_base): Remove.
2897 (mark_alpha_links_node, mark_alpha_links): New.
2898 (alpha_write_one_linkage): New.
2899 (alpha_need_linkage): Use a splay tree. Build the linkage symbol.
2900 (alpha_write_linkage): Use splay_tree_foreach.
2901 * config/alpha/alpha.md (call_vms): Use alpha_need_linkage
2902 to get the linkage symbol.
2903 (call_value_vms): Likewise.
2904 * config/alpha/elf.h (output_file_directive): Remove decl.
2905 (ctors_section, dtors_section): Prototype.
2906 (sbss_section, sdata_section): Prototype.
2907 * config/alpha/vms.h (FUNCTION_ARG): Remove.
2908 (readonly_section, link_section, literals_section): Prototype.
2909 (ctors_section, dtors_section): Prototype.
2910 (vms_valid_decl_attribute_p): Remove decl.
2911 (alpha_arg_type, alpha_arg_info_reg_val): Likewise.
2913 2000-05-27 Geoff Keating <geoffk@cygnus.com>
2915 * reload.c (get_secondary_mem): Don't widen floating-point modes.
2917 * combine.c (subst): Honour CLASS_CANNOT_CHANGE_SIZE when
2918 substituting the REG in a (subreg:X (reg:Y ...)).
2920 2000-05-28 Neil Booth <NeilB@earthling.net>
2922 * cpplex.c (_cpp_lex_line): Merge vertical space. Flag
2923 first token of a line BOL. Update EOF code for this.
2924 Remove illegal directive check - it appears in the (not
2925 yet committed) caller.
2926 * cpplib.h (BOL): New flag.
2928 2000-05-28 Neil Booth <NeilB@earthling.net>
2930 * cpplex.c (_cpp_init_toklist): No comment space to initialise.
2931 (_cpp_free_toklist): No comment space to free.
2932 (expand_comment_space): Remove.
2933 (save_comment_space): Place the comment in the current token and
2934 not in a separate comment space.
2935 (_cpp_lex_line): Save comments during plain code and #define
2937 * cpplib.h (struct _cpp_toklist): Remove comment space.
2939 2000-05-28 Neil Booth <NeilB@earthling.net>
2941 * cppexp.c (parse_assertion): Supply extra argument to
2943 * cpplib.c (do_assert, do_unassert): Similarly.
2944 * cpphash.h (_cpp_init_toklist) Update.
2945 (_cpp_expand_token_space): New.
2946 (DUMMY_TOKEN, NO_DUMMY_TOKEN): New.
2947 * cpplex.c (_cpp_init_toklist): New argument.
2948 (parse_string2): New argument multiline_ok.
2949 (spell_token): Take a const cpp_token *.
2950 (INIT_NAME): Replace with INIT_TOKEN_NAME. Update tokens_used.
2951 (SPELL_ macros): Replace with enum.
2952 (expand_token_space): Replace with _cpp_expand_token_space.
2953 Take COUNT argument.
2954 (IS_DIRECTIVE): Update.
2955 (_cpp_lex_line): Update token structure before parsing number.
2956 Don't assume start at beginning of token list.
2957 (save_comment): Use INIT_TOKEN_NAME.
2959 2000-05-27 Zack Weinberg <zack@wolery.cumb.org>
2961 * configure.in (stage1_warn_cflags): Add -Wstrict-prototypes
2962 -Wmissing-prototypes.
2963 * configure: Regenerate.
2964 * gcc.texi: Remove explanation of MD_CALL_PROTOTYPES.
2966 * builtins.c, calls.c: Change all instances of gen_call_* or
2967 gen_sibcall_* to GEN_CALL_* and GEN_SIBCALL_*.
2968 * calls.c (struct_value_size_rtx): Separate definition from
2969 initialization to avoid unused variable warning.
2971 * genflags.c (gen_macro): New function.
2972 (gen_proto): Call it for gen_call_* and gen_sibcall_*.
2973 (gen_nonproto): Delete.
2974 (gen_insn): Put all insns on the same obstack.
2975 (main): Generate prototypes for everything unconditionally.
2977 * configure.in: Add AC_CHECK_TYPE(ssize_t). Remove commented
2978 out check for wchar_t.
2979 * acconfig.h: Add template for ssize_t. Remove @TOP@.
2980 * system.h: Add infrastructure for defining missing
2981 TYPE_MAX/TYPE_MIN macros. Use it to provide fallback
2982 definitions of UCHAR_MAX and SSIZE_MAX.
2983 * configure: Regenerate.
2984 * config.in: Regenerate.
2986 * Makefile.in (libgcc2.ready): Rename to libgcc.ready.
2987 Depend on $(LANGUAGES) as well as $(GCC_PATCHES) and fixed
2989 (clean): No need to delete libgcc1.a, libgcc1-asm.a,
2990 libgcc2.a, or libgcc1.null.
2992 2000-05-27 Richard Henderson <rth@cygnus.com>
2994 * Makefile.in (recog.o): Don't depend on resource.h.
2995 * recog.c: Don't include resource.h.
2996 (recog_last_allowed_insn): Remove.
2997 (recog_next_insn): Remove.
2998 (struct peep2_insn_data): New.
2999 (peep2_insn_data, peep2_current): New.
3000 (peep2_next_insn): New.
3001 (peep2_regno_dead_p, peep2_reg_dead_p): New.
3002 (peep2_find_free_register): New.
3003 (peephole2_optimize): Track life information by insn as we go.
3004 * recog.h: Update declarations.
3005 * resource.c (find_free_register, reg_dead_p): Remove.
3006 * resource.h: Remove their declarations.
3007 * toplev.c: Include hard-reg-set.h before recog.h.
3009 * genconfig.c (max_insns_per_peep2): New.
3010 (gen_peephole2): New.
3012 * genemit.c (output_peephole2_scratches): Generate calls to
3013 peep2_find_free_register; adjust surrounding code.
3014 (main): Have insn-emit.c include hard-reg-set.h before recog.h.
3015 * genrecog.c (change_state): Don't track last_insn.
3016 (write_action): Write into *_pmatch_len before accepting.
3017 (write_tree): Adjust peephole2_insns and subroutines to match.
3019 * config/i386/i386.md (all peepholes): Use peep2_regno_dead_p.
3021 * config/alpha/alpha.c (hard_fp_register_operand): Mind the mode.
3022 (hard_int_register_operand): New.
3023 * config/alpha/alpha-protos.h: Declare it.
3024 * config/alpha/alpha.h (PREDICATE_CODES): Update.
3025 * config/alpha/alpha.md (peep2 patterns): Use hard_int_register_operand
3026 as needed; use peep2_reg_dead_p instead of dead_or_set_p.
3028 2000-05-27 Richard Henderson <rth@cygnus.com>
3030 * function.c (thread_prologue_epilogue_insns): Don't move the
3031 line note at the head of the chain. Only force a lineno note
3032 before the end of block 0.
3034 2000-05-27 Richard Henderson <rth@cygnus.com>
3036 * gensupport.c (collect_insn_data): Record the maximum number
3037 of alternatives, not the last seen.
3039 * genoutput.c: Don't include errors.h.
3040 (struct data): Add lineno member.
3042 (scan_operands): Use message_with_line instead of error.
3043 (validate_insn_alternatives): Likewise.
3044 (gen_insn): Accept and store the pattern's line number.
3045 (gen_peephole, gen_expand, gen_split): Likewise.
3046 (main): Don't set progname. Pass line_no to gen_foo.
3048 2000-05-27 Richard Henderson <rth@cygnus.com>
3050 * config/d30v/d30v.c (d30v_print_operand): Handle ':'.
3051 * config/d30v/d30v.h (PRINT_OPERAND_PUNCT_VALID_P): Accept ':'.
3052 * config/d30v/d30v.md (attr predicable): New.
3053 (all insn patterns): Mark non-predicable patterns; use %: on the rest.
3054 (andsi3*): Unify into one pattern.
3055 (iorsi3*, xorsi3*): Likewise.
3056 (peephole2 patterns): Use peep2_reg_dead_p; verify not a
3058 (old cond_exec patterns): Remove.
3059 (define_cond_exec): New.
3061 Sat May 27 11:01:27 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3063 * tree.h (TREE_CODE_LENGTH): New macro.
3064 * c-common.c (c_find_base_decl): Use it.
3065 * expr.c (safe_from_p): Likewise.
3066 * print-tree.c (print_node): Likewise.
3067 * tree.c (make_node, copy_node, get_identifier): Likewie.
3068 (first_rtl_op, contains_placeholder_p, substitute_in_expr): Likewise.
3069 (build, build_nt, build_parse_node, simple_cst_equal): Likewise.
3070 * fold-const.c (make_range): Likewise.
3071 (fold): Likewise; also use first_rtl_op.
3072 * c-iterate.c (collect_iterators): Use first_rtl_op.
3073 * calls.c (calls_function_1): Likewise; also rename TYPE to CLASS.
3074 Use IS_EXPR_CODE_CLASS.
3075 (preexpand_calls): Likewise.
3076 * ggc-common.c (ggc_mark_trees): Rework to use first_rtl_op
3077 and TREE_CODE_LENGTH.
3078 * stmt.c (warn_if_unused_value): If no operands, no unused value.
3080 2000-05-26 Geoffrey Keating <geoffk@cygnus.com>
3082 * config/rs6000/rs6000.md (movsi_internal1): Use '%a1' rather
3084 (movdi_internal64): Likewise.
3086 * config/rs6000/rs6000.md: Correct order of operands for DImode
3089 * config/rs6000/rs6000.c (boolean_or_operator): New function.
3090 * config/rs6000/rs6000-protos.h (boolean_or_operator): Prototype it.
3091 * config/rs6000/rs6000.h (PREDICATE_CODES): Add boolean_or_operator.
3092 * config/rs6000/rs6000.md: Use boolean_or_operator instead of
3093 boolean_operator for the boolean patterns without NOTs.
3095 * config/rs6000/rs6000.c (reg_or_logical_cint_operand): Rename
3096 from reg_or_u_cint_operand. Change comment and behaviour.
3097 (logical_operand): Clean up, add assertion.
3098 (non_logical_cint_operand): Also check for
3099 reg_or_logical_cint_operand.
3100 * config/rs6000/rs6000.h (PREDICATE_CODES): Update.
3101 * config/rs6000/rs6000.md (iorsi3): Use reg_or_logical_cint_operand
3107 2000-05-26 Mark Mitchell <mark@codesourcery.com>
3109 * tree.h (struct record_layout_info): Rename to (struct
3110 record_layout_info_s).
3111 * stor-layout.c (start_record_layout): Replace
3112 `record_layout_info' with `record_layout_info_s'.
3114 2000-05-26 Richard Earnshaw <rearnsha@arm.com>
3116 * flow.c (find_label_refs): New function.
3117 (find_basic_blocks_1): Call it for each alternative of a call
3120 2000-05-26 Richard Earnshaw <rearnsha@arm.com>
3122 * ifcvt.c (cond_exec_get_condition): Set test_if to the SET_SRC
3125 2000-05-25 Richard Henderson <rth@cygnus.com>
3127 * config/alpha/alpha.c (alpha_comparison_operator): Don't be
3128 so strict about DImode.
3129 (alpha_swapped_comparison_operator): Likewise.
3130 * config/alpha/alpha.md (*setne_internal): Name it. Allow
3131 any integer output mode.
3132 (*setcc_internal): Likewise.
3133 (*setcc_swapped_internal): Likewise.
3134 (*movdicc_internal, *movdicc_lbc, *movdicc_lbs): Name them.
3135 (*mov[qhs]icc_internal): New.
3136 (*mov[qhs]icc_lbc, *mov[qhs]icc_lbs): New.
3138 2000-05-25 J. David Anglin <dave@hiauly1.hia.nrc.ca>
3140 * vax.h (CPP_SPEC): Define __GFLOAT and GFLOAT when -mg is specified.
3142 2000-05-25 Richard Henderson <rth@cygnus.com>
3144 * bb-reorder.c (reorder_block_def): Reorder elements for size.
3145 Remove add_jump; add next; replace flags with visited.
3147 (REORDER_BLOCK_HEAD, REORDER_BLOCK_VISITED): Remove.
3148 (REORDER_BLOCK_FLAGS, REORDER_BLOCK_INDEX): Remove.
3149 (REORDER_BLOCK_ADD_JUMP, REORDER_BLOCK_EFF_HEAD): Remove.
3150 (REORDER_BLOCK_EFF_END, REORDER_BLOCK_SCOPE): Remove.
3152 (reorder_index, reorder_last_visited): Remove.
3153 (skip_insns_after_block): Rewrite to use a switch.
3154 (get_common_dest): Remove.
3155 (chain_reorder_blocks): Remove.
3156 (record_effective_endpoints): Split out from reorder_basic_blocks.
3157 (make_reorder_chain): Likewise. Loop until all blocks are placed.
3158 (make_reorder_chain_1): Renamed from old make_reorder_chain.
3159 Only construct the reorder chain, do not move insns. Try harder
3161 (label_for_bb, emit_jump_to_block_after): New.
3162 (fixup_reorder_chain): Use them. Do bulk block movement. Examine
3163 and adjust the jump insns appropriately. Fixup basic_block_info.
3164 (verify_insn_chain): Always define.
3165 (relate_bbs_with_scopes): Call xmalloc, not xcalloc. Fix thinko
3167 (make_new_scope): Don't write zeros to calloc'd space.
3168 (build_scope_forest): Rely on xrealloc to DTRT.
3169 (reorder_basic_blocks): Don't build loop nest. Don't fail if
3170 profile_arc_flag. Streamline EH test.
3172 * flow.c (redirect_edge_succ, redirect_edge_pred): New.
3173 * basic-block.h: Declare them.
3175 2000-05-25 Alexandre Oliva <aoliva@cygnus.com>
3177 * emit-rtl.c (reset_used_decls): New function.
3178 (unshare_all_rtl_again): Call it.
3180 2000-05-25 Zack Weinberg <zack@wolery.cumb.org>
3182 * cpplex.c (maybe_macroexpand): Warn about function-like
3183 macros used in non-function context, if -Wtraditional.
3185 2000-05-25 Mark Mitchell <mark@codesourcery.com>
3187 * recog.c (peephole2_optimize): Use INSN_P.
3189 2000-05-25 Richard Henderson <rth@cygnus.com>
3191 * ifcvt.c (seq_contains_jump): New.
3192 (noce_try_store_flag_constants): Use it to fail conversion.
3193 (noce_try_store_flag_inc, noce_try_store_flag_mask): Likewise.
3195 2000-05-25 Mark Mitchell <mark@codesourcery.com>
3197 * except.h (can_throw): Declare it.
3198 * except.c (can_throw): Give it external linkage.
3199 * resource.c (find_dead_or_set_registers): Use can_throw.
3201 2000-05-25 Richard Henderson <rth@cygnus.com>
3203 * flow.c (mark_set_1): Don't record conditionally dead memory.
3205 2000-05-25 Jan Hubicka <jh@suse.cz>
3207 * combine.c (try_combine): Use any_condjump_p, any_uncondjump_p
3208 and pc_set at the place of simplejump_p and condjump_p.
3209 * cse.c (record_jump_equiv): Likewise.
3210 * emit-rtl.c (emit): Likewise.
3211 * explow.c (find_next_ref): Likewise.
3212 * flow.c (tidy_fallthru_edge): Likewise.
3213 (init_propagate_block_info): Likewise.
3214 * gcse.c (delete_null_pointer_checks): Likewise.
3215 * ifcvt.c (cond_exec_get_condition, noce_get_condition,
3216 dead_or_predicable): Likewise.
3217 * integrate.c (copy_insn_list): Likewise.
3218 * loop.c (scan_loop, verify_dominator, find_and_verify_loops,
3219 for_each_insn_in_loop, check_dbra_loop, get_condition,
3220 insert_bct, load_mems): Likewise.
3221 * resource.c (find_dead_or_set_registers): Likewise.
3222 * sibcalls.c (simplejump_p): Likewise.
3223 * unroll.c (copy_loop_body, reg_dead_after_loop): Likewise.
3225 2000-05-25 David Edelsohn <edelsohn@gnu.org>
3227 * rs6000.c (expand_block_move): Add 64-bit PowerPC doubleword move
3228 to STRING case. Use doubleword STRING move for TARGET_POWERPC64
3230 * rs6000.h (CONST_OK_FOR_LETTER_P, 'J'): unsigned HOST_WIDE_INT.
3231 (RETURN_ADDR_RTX): Use COUNT and FRAME, not count and frame.
3232 (LEGITIMIZE_RELOAD_ADDRESS): unsigned HOST_WIDE_INT high.
3233 * rs6000.md: Name various internal patterns.
3235 2000-05-25 Jan Hubicka <jh@suse.cz>
3237 * jump.c (invert_exp_1): Remove first argument, use pc_set
3238 to get the expression.
3239 (redirect_exp): Make static; redirect only the pc_set expression,
3240 remove first argument.
3241 (invert_exp): Remove first argument, make static.
3242 (jump_optimize): Use any_condjump_p, any_uncondjump_p and
3243 any_onlyjump at most places where we originaly did condjump_p
3245 (jump_back_p, follow_jumps, thread_jumps): Likewise.
3246 (delete_barrier_succesors): Use pc_set.
3247 (invert_jump_1, invert_jump, redirect_jump_1, redirect_jump): Update
3248 calls of invert_exp and redirect_exp.
3249 * rtl.h (redirect_exp, invert_exp): Remove.
3250 * unroll.c (copy_loop_body): Use invert_jump and redirect_jump.
3252 2000-05-25 Richard Henderson <rth@cygnus.com>
3254 * stmt.c (expand_end_bindings): Fix thinko last change.
3256 2000-05-25 Andrew MacLeod <amacleod@cygnus.com>
3257 Andrew Haley <aph@cygnus.com>
3259 * except.c (func_eh_entry): Add emitted field.
3260 (new_eh_region_entry): Set emitted field to 0;
3261 (output_exception_table_entry): Only emit previously un-emitted data,
3262 and send it to the eh_data section.
3263 (output_exception_table): Break out common parts. Output
3264 exception table for entire compilation unit to eh_data section.
3265 (output_exception_table_data): Common parts of output_exception_table.
3266 Send output to eh_data section.
3267 (output_function_exception_table): Output exception table data for
3268 a single function to eh_data section.
3269 (free_exception_table): New external to free the table.
3270 * except.h (free_exception_table): Add prototype.
3271 (output_function_exception_table): Add prototype.
3272 * final.c (final_end_function): Output function exception table
3273 for IA64_UNWIND_INFO.
3274 (final_scan_insn): Emit any unwind directives for an insn.
3276 * frame-dwarf2.c: New file containing all DWARF 2 specific code
3278 * frame.c: Remove all DWARF 2 specific code.
3279 * config/ia64/frame-ia64.c: New file.
3280 (gthread_stuff): Make all gthread available with
3282 (dwarf_fde): Define an IA64 struct for dwarf_fde.
3283 (__register_frame_info, __register_frame): Move to common area of file.
3284 (__register_frame_info_table, __register_frame_table): Move to common i
3286 (__deregister_frame_info, __deregister_frame): Move to common area.
3287 (__frame_init, find_fde): New versions for IA64_UNWIND_INFO.
3288 (read_uleb128): New version for ia64.
3289 (get_unwind_record): Read the next IA-64 unwind record.
3290 (read_R_record): Read a region header record.
3291 (process_a_b_reg_code): X record helper.
3292 (read_X_record): Read an X format record.
3293 (read_B_record): Read a B format record.
3294 (P3_record_types): List of record types matching the P3 format.
3295 (P7_record_types): List of record types matching the P7 format.
3296 (P8_record_types): List of record types matching the P8 format.
3297 (read_P_record): Read a P format record.
3298 (init_ia64_reg_loc): Set default fields for a register.
3299 (init_ia64_unwind_frame): Set defaults for all register records.
3300 (execute_one_ia64_descriptor): Execute one descriptor record.
3301 (rse_address_add): Calculate the position of a local reg in memory.
3302 (normalize_reg_loc): Turn a location descriptor into a memory address.
3303 (maybe_normalize_reg_loc): Only normalize a descriptor if it falls
3304 within a specified PC offset range.
3305 (get_real_reg_value): Given a register location, retrieve its value.
3306 (set_real_reg_value): Change the value of a register location.
3307 (copy_reg_value): Copy reg values, if needed.
3308 (copy_saved_reg_state): Copy all registers that need to be copied.
3309 (process_state_between): Normalize all frame register records that
3310 fall within the specified PC range.
3311 (frame_translate): Take a processed frame description, and turn
3312 everything into addresses.
3313 (build_ia64_frame_state ): Find and create frame state record for a PC.
3314 (get_personality): Get the personality routine for a given frame.
3315 (get_except_table): Get the exception table for a given frame.
3316 (record_name): Unwind record names for debugging.
3317 (print_record): Print and unwind record.
3318 (print_all_records): Print an entire unwind image.
3319 (__ia64_backtrace): Print a backtrace.
3320 (ia64_backtrace_helper): New function.
3321 (__register_frame_info_aux): New function.
3322 * config/ia64/crtend.asm (__do_frame_setup_aux): New function.
3324 * frame.h (enum unw_record_type): New unwind record types.
3325 (struct unw_p_record, unw_b_record, unw_x_record) : New unwind records.
3326 (struct unw_r_record, unwind_record): New unwind record structs.
3327 (struct unwind_info_ptr): Unwind information layout.
3328 (IA64_UNW_LOC_TYPE_*): Macros for different types for location
3330 (struct ia64_reg_loc): Register location description.
3331 (struct ia64_frame_state): Location of all registers in a frame.
3332 (struct object): Add pc_base and fde_end for IA64_UNWIND_INFO.
3333 * libgcc2.c (__ia64_personality_v1): Personality routine.
3334 (__calc_caller_bsp): Calculate the bsp register for the caller's
3336 (ia64_throw_helper): Figure out who to return to and set up the
3338 (__throw): Throw routine.
3340 * output.h (assemble_eh_align, assemble_eh_label): New functions
3341 to generate EH info where we want it.
3342 (assemble_eh_integer): New function.
3343 * toplev.c (compile_file): Output module level exception table for
3345 (main): Set exceptions_via_longjump and flag_new_exceptions based
3346 on IA64_UNWIND_INFO too.
3348 * varasm.c (assemble_eh_label): Generate a label via
3349 ASM_OUTPUT_EH_LABEL if it has been specified.
3350 (assemble_eh_align): Generate an alignment directive via
3351 ASM_OUTPUT_EH_ALIGN if it has been specified.
3352 (assemble_eh_label): Generate an integer value via
3353 ASM_OUTPUT_EH_type if they have been specified.
3354 * config/ia64/ia64.c (rtx_needs_barrier): Add flushrs.
3355 (ia64_init_builtins): Add __builtin_ia64_bsp
3356 and __builtin_ia64_flushrs.
3357 (ia64_expand_builtin): Add IA64_BUILTIN_BSP and
3358 IA64_BUILTIN_FLUSHRS.
3359 * config/ia64/ia64.h (ia64_builtins): Add IA64_BUILTIN_BSP and
3360 IA64_BUILTIN_FLUSHRS.
3362 * config/ia64/ia64.md (flushrs): New insn to flush the register
3363 stack. Add to unspec list.
3365 * config/ia64/crtbegin.asm (frame_object): Change size.
3366 (__do_frame_setup_aux): New function.
3367 * config/ia64/crtend.asm: call __do_frame_setup_aux.
3368 * config/ia64/t-ia64 (LIB2ADDEH): Add.
3369 * Makefile.in (LIB2ADDEH): Add.
3370 (LIB2ADD): Use LIB2ADDEH.
3372 2000-05-24 Richard Henderson <rth@cygnus.com>
3374 * recog.c (offsettable_address_p): If mode size is zero, assume
3377 2000-05-24 J. David Anglin <dave@hiauly.hia.nrc.ca>
3379 * configure.in: Check for -Wno-long-long option support and improve
3380 handling of warning CFLAGS for stages 1 and 2.
3381 * Makefile.in (WARN_CFLAGS): Move definition to configure.in.
3382 * configure: Regenerate.
3384 Wed May 24 19:37:53 2000 Jeffrey A Law (law@cygnus.com)
3386 * gcc.texi: Remove contributor list. Instead include contrib.texi.
3387 * contrib.texi: New file.
3389 Thu May 25 02:27:22 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
3391 * loop.c (basic_induction_var): Avoid double recording of an increment.
3393 Thu May 25 02:19:27 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
3395 * Back out this patch:
3396 Tue Dec 7 19:22:06 1999 Richard Henderson <rth@cygnus.com>
3397 * loop.h (struct induction): Add multi_insn_incr.
3398 * loop.c (basic_induction_var): New multi_insn_incr argument.
3399 Set it if we search back through previous insns for the biv.
3400 (record_biv): New multi_insn_incr argument; fill in struct induction.
3401 (strength_reduce): Discard an iv with multiple bivs, any of
3402 which require multiple insns to increment.
3404 * loop.c (check_insn_for_bivs): Remove bits copied from above patch.
3406 Thu May 25 02:09:10 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
3408 * rtl.h (loc_mentioned_in_p): Declare.
3409 * reload.c (loc_mentioned_in_p): Moved from here...
3410 * rtlanal.c (loc_mentioned_in_p): to here. No longer static.
3411 Fix loop increment for 'E' handling.
3412 * loop.c (strength_reduce): When doing biv->giv conversion,
3413 take multi-insn biv increments into account.
3415 2000-05-24 Jason Merrill <jason@casey.soma.redhat.com>
3417 * stmt.c (expand_end_bindings): Look through NOTEs to find a
3420 2000-05-24 Mark Mitchell <mark@codesourcery.com>
3422 * calls.c (expand_call): Handle cleanups in tail-recursion
3423 arguments analagously to cleanups in sibling calls.
3425 2000-05-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3427 * simplify-rtx.c: Rename macro SIGN_EXTEND to HWI_SIGN_EXTEND.
3428 All callers changed.
3430 2000-05-24 Alexandre Oliva <aoliva@cygnus.com>
3432 * expr.c (expand_assignment, store_expr, expand_expr,
3433 expand_expr_unaligned): Set in_check_memory_usage while emitting
3434 chkr_check_addr libcall.
3436 2000-05-24 Nick Clifton <nickc@cygnus.com>
3438 * fold-const.c (extract_muldiv): When constructing a
3439 multiplier/divisor, do not expect const_binop to correctly
3440 determine if overflow has occured, so check explicitly.
3442 2000-05-24 Alexandre Oliva <aoliva@cygnus.com>
3444 * c-decl.c (build_enumerator): Don't modify the value's type,
3447 2000-05-24 Andreas Jaeger <aj@suse.de>
3449 * mips.h (LINKER_ENDIAN_SPEC): Pass -EL to linker by default.
3451 2000-05-24 Eric Christopher <echristo@cygnus.com>
3453 * configure.in: Redefine inhibit_libc conditions.
3454 * libgcc2.c: Remove inhibit_libc conditional define.
3455 * configure: Regenerate.
3457 2000-05-24 Phil Edwards <pme@sourceware.cygnus.com>
3459 * configure.in: For --enable-languages=LIST, check for empty LIST.
3460 * configure: Regenerate.
3462 2000-05-24 Lars Brinkhoff <lars@nocrew.org>
3464 * pdp11.h (STACK_BOUNDARY): Define.
3466 2000-05-24 Jakub Jelinek <jakub@redhat.com>
3468 * ifcvt.c (if_convert): Update life info globally.
3470 2000-05-24 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
3472 * emit-rtl.c (unshare_all_decls): New function.
3473 (unshare_all_rtl): Call it.
3475 2000-05-23 Nick Clifton <nickc@cygnus.com>
3477 * configure.in: Treat 'strongarm' as if it were 'arm' when
3478 determining cpu type.
3480 * configure: Regenerate.
3482 * config/arm/arm.c: Change 'char *' to 'const char *' for cases
3483 where constant strings are involved.
3485 * config/arm/arm.h (arm_condition_codes): Change type to 'const
3488 * config/arm/arm-protos.h: Change 'char *' to 'const char *' for
3489 cases where constant strings are involved.
3491 Tue May 23 15:08:31 2000 Clinton Popetz <cpopetz@cygnus.com>
3493 * config/sh/sh.c (gen_far_branch, split_branches): Update
3494 to reflect new prototypes for redirect_jump and invert_jump.
3495 (sh_insn_length_adjustment): Get rid of const warnings.
3497 2000-05-23 Kazu Hirata <kazu@hxi.com>
3499 * invoke.texi (Options for Debugging Your Program or GCC): Update
3500 the names of dump files.
3502 Tue May 23 13:58:52 2000 Philippe De Muyter <phdm@macqel.be>
3504 * configure.in (NO_MINUS_C_MINUS_O): Fix thinko in previous fix.
3505 * configure: Regenerated.
3507 2000-05-23 Zack Weinberg <zack@wolery.cumb.org>
3509 * simplify-rtx.c (SIGN_EXTEND): New macro.
3510 (simplify_unary_operation, simplify_binary_operation,
3511 simplify_relational_operation): Use SIGN_EXTEND. Make low
3512 halves of (low, high) pairs unsigned if they weren't already.
3513 (simplify_ternary_operation): Cast INTVAL to unsigned before
3514 comparing to a MODE_BITSIZE.
3516 2000-05-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3518 * aclocal.m4 (gcc_AC_CHECK_DECL, gcc_AC_CHECK_DECLS): New macros
3519 rewritten from the internals of gcc_AC_NEED_DECLARATION{S}.
3521 * configure.in (gcc_AC_CHECK_DECLS): Call this instead of
3522 gcc_AC_NEED_DECLARATIONS.
3524 * dwarfout.c: Don't prototype time().
3526 * gcc.c: Check HAVE_DECL_* instead of NEED_DECLARATION_*.
3528 * system.h: Likewise.
3530 * toplev.c: Likewise.
3532 2000-05-23 Zack Weinberg <zack@wolery.cumb.org>
3534 * c-decl.c (pushdecl): Invert sense of test for non-global types.
3536 Tue May 23 18:11:42 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
3538 * reload1.c (reload_cse_move2add): Honor TRULY_NOOP_TRUNCATION.
3540 2000-05-23 Jonathan Larmour <jlarmour@redhat.co.uk>
3542 * config/mips/elf64.h (CTOR_LISTS_DEFINED_EXTERNALLY): Define
3544 Tue May 23 06:50:29 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3546 * config/alpha/alpha.c: Remove #ifdef HAIFA since now only scheduler.
3547 (alpha_start_function): Never write ..ng label if VMS or NT.
3548 (alpha_align_insns): Remove GP_IN_USE arg.
3549 Alignment now unsigned.
3550 (alpha_reorg): Don't pass GP_IN_USE arg to alpha_align_insns.
3551 * config/alpha/alpha.md (prologue_ldgp): Split into one define_expand
3552 and two define_insn's.
3554 2000-05-22 Richard Henderson <rth@cygnus.com>
3556 * combine.c (simplify_comparison): Use trunc_int_for_mode.
3558 2000-05-22 Richard Henderson <rth@cygnus.com>
3560 * stor-layout.c (place_field): Change rli->size to rli->offset.
3562 2000-05-22 Richard Henderson <rth@cygnus.com>
3564 * function.c (thread_prologue_and_epilogue_insns): Make sure
3565 existing line number notes appear after the prologue.
3567 Mon May 22 21:49:00 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3569 * config/alpha/alpha.c (alpha_fnname): New static variable.
3570 (print_operand, case '~'): New case.
3571 (alpha_expand_prologue): Emit prologue_ldgp insn if needed.
3572 (alpha_start_function): Set alpha_fnname.
3573 Write "ng" label if no ldgp; don't write ldgp insn.
3574 * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): New case '~'.
3575 * config/alpha/alpha.md (prologue_ldgp): New define_insn.
3577 Mon May 22 11:30:48 2000 Clinton Popetz <cpopetz@cygnus.com>
3579 * jump.c (jump_optimize_1): Don't increment LABEL_NUSES
3582 2000-05-22 Zack Weinberg <zack@wolery.cumb.org>
3584 * varasm.c (eh_frame_section): Revert change to argument list.
3586 Mon May 22 13:14:03 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3588 * optabs.c (can_extend_p): Allow unsignedp to have any nonzero value.
3589 (gen_extend_insn, can_fix_p, can_float_p): Likewise.
3591 * final.c (final_scan_insn, case NOTE_INSN_FUNCTION_BEG): Remove
3592 dangling "else" that causes "break" to be conditional.
3593 Also remove unneeded code at start.
3595 Mon May 22 17:31:35 2000 Philippe De Muyter <phdm@macqel.be>
3597 * m68k/m68k.h (STORE_FLAG_VALUE): Macro set to (-1), not -1.
3598 * fx80/fx80.h, i370/i370.h, m88k/m88k.h (STORE_FLAG_VALUE): Ditto.
3599 * gmicro/gmicro.h, we32k/we32k.h (STORE_FLAG_VALUE): Ditto.
3601 2000-05-22 Jakub Jelinek <jakub@redhat.com>
3603 * config/sparc/sparc.md (movdf_insn_v9only_vis): fzero has
3606 Mon May 22 06:57:49 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3608 * alias.c (record_component_aliases): New function.
3609 * tree.h: Clean up some declarations and comments.
3610 (record_component_aliases): New declaration.
3611 * tree.c (get_alias_set): If type and has alias set, use it.
3613 2000-05-22 Richard Henderson <rth@cygnus.com>
3615 * simplify-rtx.c (simplify_ternary_operation): Try to simplify
3616 IF_THEN_ELSE to a setcc form.
3617 * jump.c (can_reverse_comparison_p): Be prepared for insn null.
3619 2000-05-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3621 * fixinc/inclhack.def (sun_malloc): Handle `calloc'.
3622 (sun_malloc, sysz_stdtypes_for_sun): Add test_text.
3624 Sun May 21 16:42:31 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3626 * combine.c (try_combine): Handle i3_subst_into_i2 case when I2 is
3629 2000-05-20 Alexandre Oliva <aoliva@cygnus.com>
3631 * config/mn10300/mn10300.md (movdi, movdf): 64-bit clean-up.
3632 * config/mn10300/mn10300.c (print_operand): Likewise.
3634 * final.c (split_double): Right shift of negative values is not
3637 * ifcvt.c (if_convert): Scan and kill dead code.
3639 * emit-rtl.c (unshare_all_rtl): Store the copied rtx.
3641 2000-05-20 Zack Weinberg <zack@wolery.cumb.org>
3643 * diagnostic.c: Eliminate implicit int.
3644 * except.c, gcc.c: Add static prototypes.
3645 * final.c (final_end_function): Mark file arg ATTRIBUTE_UNUSED.
3646 * gensupport.c (process_rtx): Use XVEC to initialize vector
3649 * print-rtl.c: If DEBUG_REGISTER_NAMES, define static
3650 debug_reg_names instead of static reg_names. If not, define
3652 * regclass.c: Don't define global reg_names unless
3653 DEBUG_REGISTER_NAMES is defined.
3655 * reload1.c (order_regs_for_reload): Remove unused variable.
3656 * varasm.c: Include output.h after defaults.h. Define
3657 eh_frame_section as function of no args, not of unspecified args.
3659 * gcc.c: Constify argbuf; arguments to store_arg,
3660 process_command, main; elements of struct command and struct
3661 switchstr; local variables in execute, process_command, main.
3663 2000-05-20 Bruce Korb <bkorb@gnu.org>
3665 * fixinc/inclhack.def: many applications of c_fix=format + tests
3666 * fixinc/check.diff: regenerated
3667 * fixinc/fixincl.x: regenerated
3669 Sat May 20 09:30:55 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3671 * alias.c: Clarify some comments.
3672 (record_base_value): REGNO is unsigned.
3673 * rtl.h (record_base_value): Likewise.
3675 * alias.c (aliases_everything_p): Don't special-case QImode here.
3676 * c-common.c (c_get_alias_set): Do it here.
3677 Handle BIT_FIELD_REF by getting alias info for arg.
3680 2000-05-20 Alexandre Oliva <aoliva@cygnus.com>
3682 * mklibgcc.in: Restore rule to create ${dir}.
3684 Sat May 20 08:45:41 2000 H.J. Lu <hjl@gnu.org>
3686 * Makefile.in (libgcc.mk): Depend on xgcc$(exeext) for
3687 GCC_FOR_TARGET used by MULTILIBS.
3688 * mklibgcc.in: Make sure each .o file depends on the
3689 directory it will be in.
3690 Make the multilib directory depends libgcc.
3692 Sat May 20 08:29:28 2000 H.J. Lu <hjl@gnu.org>
3694 * Makefile.in (bootstrap): Unset LANG_LIB2FUNCS for stage 1.
3696 Sat May 20 07:27:35 2000 Alexandre Oliva <aoliva@cygnus.com>
3698 * fold-const.c (make_range): Handle degenerated intervals.
3699 Fixes c-torture/execute/991221-1.c
3701 Fri May 19 18:16:31 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3703 * cse.c (cse_basic_block): Only call find_reg_note if REG_NOTES not 0.
3704 * reload.c (find_equiv_reg): Likewise.
3705 * alias.c (init_alias_analysis): Likewise.
3706 Only call prologue_epilogue_contains on insns.
3707 * basic-block.h (REG_SET_TO_HARD_REG_SET): Call new function.
3708 * bb-reorder.c (hard-reg-set.h): Include earlier.
3709 * haifa-sched.c (hard-reg-set.h): Likewise.
3710 * ifcvt.c (hard-reg-set.h): Likewise.
3711 * local-alloc.c (hard-reg-set.h): Likewise.
3712 * loop.c (hard-reg-set.h): Likewise.
3713 * predict.c (hard-reg-set.h): Likewise.
3714 * regrename.c (hard-reg-set.h): Likewise.
3715 * flow.c (hard-reg-set.h): Likewise.
3716 (reg_set_to_hard_reg_set): New function.
3717 * bitmap.c (regs.h, basic-block.h): No longer include.
3718 (bitmap.h): Now include.
3719 * conflict.c (hard-reg-set.h): Include.
3720 * profile.c (hard-reg-set.h): Likewise.
3721 * print-rtl.c (hard-reg-set.h): Likewise.
3722 * sbitmap.c (hard-reg-set.h): Likewise.
3723 * toplev.c (hard-reg-set.h): Likewise.
3724 * unroll.c (hard-reg-set.h, basic-block.h): Likewise.
3725 * hard-reg-set.h (reg_names): Now constant.
3726 * regs.h (reg_names): Likewise.
3727 * regclass.c (reg_names): Likewise.
3728 * loop.h (basic-block.h): No longer include.
3729 (bitmap.h): Now include.
3730 * reload1.c (order_regs_for_reload): Avoid loop over reg sets.
3731 * Makefile.in (LOOP_H, sbitmap.o, profile.o): Reflect above changes.
3732 (toplev.o, print-rtl.o, conflict.o, unroll.o, bitmap.o): Likewise.
3734 2000-05-19 Jan Hubicka <jh@suse.cz>
3735 Richard Henderson <rth@cygnus.com>
3737 * basic-block.h (struct edge_def): New field "count".
3738 (struct basic_block_def): Likewise.
3739 * flow.c (entry_exit_blocks): Add count fileds.
3740 (split_edge): Keep count information up-to-date.
3741 (dump_edge_info, dump_flow_info): Dump count fields.
3743 * final.c (count_instrumented_edges): Rename to edge from arc.
3744 (end_final): Update users.
3745 * profile.c: Include expr.h, basic-block.h.
3746 (struct adj_list, ARC_TARGET, ARC_SOURCE, ARC_COUNT): Kill.
3747 (struct bb_info, label_to_bb, label_to_bb_size, bb_graph): Kill.
3748 (ignore_next_note, return_label_execution_count): Kill.
3749 (bbg_file_name, da_file_name): Kill.
3750 (edge_info, bb_info): New structures.
3751 (EDGE_INFO, BB_INFO, GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX): New macros.
3752 (count_instrumented_edges, total_num_edges): Rename to edge from arc.
3753 (total_num_edges_instrumented): Likewise.
3754 (init_arc, expand_spanning_tree): Kill.
3755 (fill_spanning_tree, tablejump_entry_p): Kill.
3756 (instrument_edges): Rewrite from instrument_arcs to use
3757 commit_edge_insertions infrastructure.
3758 (compute_branch_probabilities): Remove arguments; rewrite for
3759 CFG infrastructure; use rtl_dump_file directly.
3760 (branch_prob, find_spanning_tree): Likewise.
3761 (union_groups, find_group): New.
3762 (init_branch_prob): Make bbg_file_name and da_file_name local.
3763 (end_branch_prob): Use rtl_dump_file directly.
3764 (init_edge_profiler): Rename to edge from arc.
3765 (output_arc_profiler): Kill.
3766 (gen_edge_profiler): New.
3767 (output_func_start_profiler): Turn off profiling. Make the
3768 constructor static when we can.
3769 * rtl.h (branch_prob, end_branch_prob): Update prototypes.
3771 * toplev.c (DFI_flow): Remove.
3772 (DFI_cfg, DFI_life): New.
3773 (dump_file): Update accordingly.
3774 (compile_file): Call end_branch_prob if profile_arc_flag too.
3775 (rest_of_compilation): Move flow1 cfg creation to DFI_cfg. Do edge
3776 profiling after the CFG is built. Move flow1 life analysis to
3777 DFI_life. Always estimate remaining probabilities.
3779 2000-05-19 Richard Henderson <rth@cygnus.com>
3781 * ifcvt.c (find_if_case_2): Don't allow THEN to be EXIT.
3783 * flow.c (make_edges): The sibling call edge to exit is abnormal.
3785 2000-05-19 Richard Henderson <rth@cygnus.com>
3787 * jump.c (redirect_jump): Add delete_unused argument. Don't
3788 remove labels and code following when LABEL_NUSES goes to zero.
3789 (invert_jump): Likewise.
3790 (jump_optimize_1): Fix redirect/invert arguments.
3791 (do_cross_jump, thread_jumps): Likewise.
3792 * flow.c (split_edge): Likewise.
3793 * reorg.c (optimize_skip): Likewise.
3794 (reorg_redirect_jump, relax_delay_slots, dbr_schedule): Likewise.
3795 * profile.c (instrument_arcs): Likewise.
3796 * loop.c (find_and_verify_loops): Likewise. Fix indentation.
3797 * rtl.h: Update prototypes.
3799 Fri May 19 12:05:13 2000 Clinton Popetz <cpopetz@cygnus.com>
3801 * ssa.c (convert_from_ssa): Tell life_analysis we need death
3803 (make_regs_equivalent_over_bad_edges): Only look at abnormal
3806 2000-05-19 Zack Weinberg <zack@wolery.cumb.org>
3808 * cpphash.c (funlike_macroexpand): Make sure not to walk p1
3809 past l1 when deleting whitespace and markers.
3811 * cpplex.c (_cpp_scan_until): Clear AUX field of tokens.
3812 * cpplib.c (do_unassert): Put the list to compare against on
3815 2000-05-19 Bruce Korb <bkorb@gnu.org>
3817 * fixinc/README: cleaned up old documentation
3818 * fixinc/check.diff: regenerated & verified on OSR5 on ix86
3819 * fixinc/check.tpl: compute the list of needed directories
3820 emit "#if defined(name)" because of conflict
3821 omit machine name differences from output differences
3822 * fixinc/inclhack.def( m88k_multi_incl ): Use `wrap' function
3823 (machine_name): change test text to use `sed' markers
3824 * fixinc/fixincl.x: regen
3826 Fri May 19 06:49:35 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3828 * config/elfos.h (SELECT_SECTION): Don't access DECL_INITIAL of
3831 2000-05-18 Chris Demetriou <cgd@sibyte.com>
3833 * gcc.texi (MULTILIB_EXCEPTIONS): Correct example and update
3834 it to match the current practice.
3836 2000-05-18 Mark Mitchell <mark@codesourcery.com>
3838 * Makefile.in (STAGESTUFF): Fix typo in spelling of s-under.
3840 2000-05-18 Richard Henderson <rth@cygnus.com>
3842 * rtlanal.c (insn_dependant_p, insn_dependant_p_1): New.
3843 * rtl.h (insn_dependant_p): Declare it.
3844 * loop.c (strength_reduce): Use it.
3846 2000-05-18 Alexandre Oliva <aoliva@cygnus.com>
3848 * config/mn10300/mn10300.c (expand_prologue, expand_epilogue):
3849 16-bit and 64-bit clean-up.
3851 2000-05-18 Mark Elbrecht <snowball3@bigfoot.com>
3853 * configure.in (*-pc-msdosdjgpp): Set float_format to none.
3854 * configure: Rebuilt.
3856 2000-05-18 Zack Weinberg <zack@wolery.cumb.org>
3858 * genopinit.c: Use $ for escape sequences in optab patterns.
3859 Remove backslashes from optab patterns. Change $A, $B, $C to
3860 expand to (int) whatever instead of just whatever; remove
3861 explicit (int) from all optab patterns.
3863 * gensupport.c (xmalloc, xrealloc, xstrdup): Provide.
3864 * genattr.c, genattrtab.c, gencodes.c, genconfig.c, genemit.c,
3865 genextract.c, genflags.c, genopinit.c, genoutput.c, genpeep.c,
3866 genrecog.c: Remove private copies of xmalloc, xrealloc, and
3869 2000-05-18 Richard Henderson <rth@cygnus.com>
3871 * jump.c (jump_optimize_1): Base minimum insn count during
3872 find_cross_jump on BRANCH_COST.
3874 2000-05-18 Jakub Jelinek <jakub@redhat.com>
3876 * print-rtl.c (print_rtx): Only print note line number as string
3877 if between NOTE_INSN_BIAS and NOTE_INSN_MAX.
3878 * final.c (final_scan_insn): Do nothing for note line number 0.
3880 2000-05-18 Jakub Jelinek <jakub@redhat.com>
3882 * gcc-common.c (ggc_mark_rtx_children): Mark NOTE_EXPECTED_VALUE
3883 from NOTE_INSN_EXPECTED_VALUE notes and NOTE_SOURCE_FILE from
3884 NOTE_INSN_DELETED_LABEL.
3886 2000-05-18 Nick Clifton <nickc@cygnus.com>
3888 * config/arm/unknown-elf.h (UNIQUE_SECTION): Place constant,
3889 uninitialised data in .rodata not .bss, and do not interpret an
3890 error in the initialisation value as meaning that the variable
3891 should be placed in the .bss section.
3893 Thu May 18 12:10:18 2000 Philippe De Muyter <phdm@macqel.be>
3895 * configure.in (NO_MINUS_C_MINUS_O): Test `$ac_cv_prog_cc_${ac_cc}_c_o',
3896 not `$ac_cv_prog_cc_cc_c_o'.
3897 * configure: Regenerated.
3899 2000-05-18 Chris Demetriou <cgd@sibyte.com>
3900 Richard Henderson <rth@cygnus.com>
3902 * c-common.h (enum c_tree_index): Add g77 type entries.
3903 (g77_integer_type_node, g77_uinteger_type_node): New.
3904 (g77_longint_type_node, g77_ulongint_type_node): New.
3905 * c-decl.c (init_decl_processing): Initialize them.
3907 2000-05-18 Richard Henderson <rth@cygnus.com>
3909 * config/h8300/h8300.md (subs patterns): Use %G to negate.
3911 * config/h8300/h8300.c (ok_for_bclr): Take a HOST_WIDE_INT.
3912 (small_power_of_two): Likewise; use exact_log2.
3913 (adds_subs_operand, one_insn_adds_subs_operand): Remove.
3914 (output_adds_subs): Remove.
3915 (two_insn_adds_subs_operand): New.
3916 (split_adds_subs): New.
3917 * config/h8300/h8300-protos.h: Update.
3918 * config/h8300/h8300.h (CONST_OK_FOR_J): Cast to uns HOST_WIDE_INT.
3919 (CONST_OK_FOR_L): Match strict adds operands.
3920 (CONST_OK_FOR_N): Match struct subs operands.
3921 * config/h8300/h8300.md (adds_subs insns): Remove.
3922 (addhi patterns): Output adds/subs directly.
3923 (addsi_h8300h): Likewise.
3924 (addhi/addsi splitters): New. Decompose two_insn_adds_subs_operand.
3926 2000-05-18 Zack Weinberg <zack@wolery.cumb.org>
3928 * cppexp.c (parse_assertion): New.
3929 (lex): Call it for CPP_HASH. Remove CPP_ASSERTION case.
3930 (_cpp_parse_expr): Remove case '#'. Don't set
3931 parsing_if_directive.
3932 * cpphash.c (collect_objlike_expansion,
3933 collect_funlike_expansion, collect_params,
3934 _cpp_create_definition): The list no longer has a trailing
3936 * cpphash.h (enum node_type): Add T_ASSERTION.
3937 (struct hashnode): Remove aschain, add pred.
3938 (struct predicate): New.
3941 * cpplex.c (expand_token_space): Handle both offset and
3943 (init_token_list, _cpp_free_token_list, _cpp_parse_assertion): Delete.
3944 (_cpp_init_toklist, _cpp_clear_toklist, _cpp_free_toklist,
3945 _cpp_slice_toklist, _cpp_squeeze_toklist, _cpp_equiv_tokens,
3946 _cpp_equiv_toklists): New.
3947 (_cpp_scan_line): Rename to _cpp_scan_until; add ability to
3948 stop at any single-character token, not just newline.
3949 (_cpp_lex_token): Remove special cases for #define and #if.
3950 (cpp_get_token): Expect # as a separate token type. Remove
3952 (_cpp_get_directive_token): Remove DIRECTIVE case.
3953 (_cpp_lex_line, _cpp_lex_file, _cpp_init_input_buffer): Update.
3955 * cpplib.c (_cpp_check_directive): Set dirno and
3956 SYNTAX_INCLUDE bit of flags, not dir_handler and dir_flags.
3957 (_cpp_handle_directive): Run # <number> through the same logic
3958 as normal directives.
3959 (do_define): Don't set parsing_define_directive. Use
3960 _cpp_scan_until. The list does not have a VSPACE at the end.
3961 (do_if): Save, clear, and restore only_seen_white around
3963 (skip_if_group): s/CPP_DIRECTIVE/CPP_HASH/
3964 (do_assert, do_unassert): Rewrite.
3966 * cpplib.h (TTYPE_TABLE): Remove CPP_ASSERTION.
3967 (LIST_OFFSET): New flag.
3968 (struct cpp_toklist): Replace dir_handler and dir_flags with
3970 (struct cpp_reader): Remove parsing_if_directive and
3971 parsing_define_directive.
3973 2000-05-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3975 * fixinc/inclhack.def (broken_cabs): Update fix to handle comments
3976 following the cabs decl which terminate on the following line.
3977 Add the corresponding test_text case.
3979 2000-05-18 Neil Booth <NeilB@earthling.net>
3981 * cppinit.c (cpp_reader_init): Initialise col_adjust and
3982 default tab stop size.
3983 (no_num, OPT_ftabstop): New.
3984 (handle_option): Handle "ftabstop=" command-line option.
3985 (print_help): Document it.
3986 * cpplex.c (COLUMN): Remove.
3987 (handle_newline): Reset col_adjust.
3988 (skip_whitespace): Update col_adjust as tabs encountered.
3989 (_cpp_lex_line): Update to use col_adjust. Call
3990 skip_whitespace for all whitespace.
3991 * cpplib.h (struct cpp_options): New member tabstop.
3992 (struct cpp_reader): New member col_adjust.
3993 (CPP_BUF_COL): Update.
3994 (CPP_BUF_COLUMN): New.
3995 * cpp.texi: Document "-ftabstop=" command line option.
3997 Wed May 17 18:19:41 2000 Philippe De Muyter <phdm@macqel.be>
3999 * configure.in (NO_MINUS_C_MINUS_O): Macro made availabe for AC_OUTPUT
4001 * configure: Rebuilt.
4003 Wed May 17 18:06:12 2000 John David Anglin <dave@hiauly1.hia.nrc.ca>
4005 * mklibgcc.in Add missing -DL$name when compiling modules in libgcc1.c.
4007 * tree.c (build_common_tree_nodes): Do not build TI nodes unless
4008 HOST_BITS_PER_WIDE_INT is >= 64.
4010 2000-05-17 Richard Henderson <rth@cygnus.com>
4012 * jump.c (jump_optimize_1): Remove inactive but real insns
4013 in jump-to-next-insn optimization.
4015 2000-05-17 Richard Henderson <rth@cygnus.com>
4017 * toplev.c (rest_of_compilation): Don't call optimize_mode_switching
4018 unless OPTIMIZE_MODE_SWITCHING. Conditionally set no_new_pseudos.
4019 Don't call recompute_reg_usage if no_new_pseudos is true.
4020 * lcm.c (optimize_mode_switching): Move ifdefs outside function.
4021 Return true if we did work; update global life information.
4022 * basic-block.h (optimize_mode_switching): Update decl.
4024 2000-05-17 Neil Booth <neilb@earthling.net>
4026 * cpplex.c (expand_name_space): Don't use ptrdiff_t.
4028 2000-05-17 Zack Weinberg <zack@wolery.cumb.org>
4030 * cpplib.c: New feature, #pragma system_header.
4031 * cpp.texi: Document special treatment of system headers, and
4032 the various mechanisms to get a header that special treatment.
4034 2000-05-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4036 * system.h (offsetof): Define at the very end, to ensure we prefer
4037 the platform's definition if available.
4039 2000-05-16 Bruce Korb <bkorb@gnu.org>
4041 * fixinc/fixincl.c: improve the debug displays, ignore SIGPIPE
4042 * fixinc/server.c: likewise
4043 * fixinc/fixfixes.c( char_macro_def_fix ): fix regex
4044 + #ifdef debugging code + use #def constant for
4046 * fixinc/inclhack.def( hpux11_fabsf ): Keep HP-UX 11 from stomping
4047 on C++ math namespace
4049 2000-05-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4051 * fixinc/fixfixes.c (char_macro_use_fix, char_macro_def_fix):
4052 Don't check the return value of sprintf. Use asprintf to avoid
4055 Wed May 17 17:27:44 2000 Andrew Cagney <cagney@b1.cygnus.com>
4057 * flags.h (warn_unused_function, warn_unused_label,
4058 warn_unused_parameter, warn_unused_variable, warn_unused_value):
4059 Replace ``warn_unused''.
4060 (set_Wunused): Add declaration.
4061 * toplev.c (set_Wunused): New function.
4062 (warn_unused_function, warn_unused_label, warn_unused_parameter,
4063 warn_unused_variable, warn_unused_value): New variables.
4064 (W_options): Add -Wunused-function, -Wunused-function,
4065 -Wunused-label, -Wunused-parameter, -Wunused-variable and
4066 -Wunused-value. Delete -Wunused. Handled in decode_W_option.
4068 * toplev.c (decode_W_option): Update -Wunused flags by calling
4070 * c-decl.c (c_decode_option): Ditto for -Wall.
4072 * stmt.c (expand_expr_stmt, expand_expr_stmt,
4073 warn_about_unused_variables): Replace warn_unused with more
4074 explicit warn_unused_value et.al.
4075 * function.c (expand_function_end): Ditto.
4076 * c-typeck.c (internal_build_compound_expr,
4077 internal_build_compound_expr): Ditto.
4078 * c-decl.c (poplevel, pop_label_level): Ditto.
4079 * toplev.c (check_global_declarations): Replace warn_unused with
4080 check for either warn_unused_function or warn_unused_variable.
4082 * gcc.1, invoke.texi (Warning Options): Document
4083 -Wunused-function, -Wunused-function, -Wunused-label,
4084 -Wunused-parameter, -Wunused-variable and -Wunused-value options.
4086 Wed May 17 10:28:12 2000 Philippe De Muyter <phdm@macqel.be>
4088 * mklibgcc.in (building libgcc1) [Xlibgcc1.a]: Find libgcc1.c in
4089 $(srcdir), not in the current directory.
4091 2000-05-16 Richard Henderson <rth@cygnus.com>
4093 * config/ia64/crtbegin.asm (__dso_handle): Mark hidden if the
4094 assembler supports it.
4095 (.fini, .init): Use a gp-relative indirect call.
4096 (__do_global_dtors_aux): Preserve the gp; rebundle.
4097 (__do_frame_setup): Likewise.
4098 * config/ia64/crtend.asm (.IA_64.unwind): Don't terminate with -1.
4099 (.init): Use a gp-relative indirect call.
4100 (__do_global_ctors_aux): Preserve the gp.
4102 2000-05-16 Richard Henderson <rth@cygnus.com>
4104 * flow.c (commit_one_edge_insertion): Be prepared for a return
4105 insn to be inserted on the edge with a normal jump.
4106 * jump.c (jump_optimize_1): Don't look to create return isns.
4108 * flow.c (flow_delete_insn): Don't adjust reference count of notes.
4109 * jump.c (jump_optimize_1): Likewise.
4110 (returnjump_p): Verify the argument is a JUMP_INSN.
4111 * rtl.def (NOTE): Add 5th element for NOTE_INSN_DELETED_LABEL.
4113 2000-05-16 Nick Clifton <nickc@cygnus.com>
4115 * config/m32r/m32r.c (small_insn_p): Use INSN_P() to replace
4116 GET_RTX_CLASS (GET_CODE ()) == 'i'.
4117 (large_insn_p): Ditto.
4118 (m32r_is_insn): New function: Return true if the insn contains
4119 an executable instruction.
4120 (m32r_adjust_insn): Use m32r_is_insn.
4121 (m32r_sched_reorder): Use m32r_is_insn.
4122 (m32r_sched_variable_issue): Use m32r_is_insn.
4124 2000-05-16 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4126 * rs6000/rs6000.c (rs6000_select_section): Treat CONSTRUCTOR like
4129 * rs6000/sysv4.h (ASM_OUTPUT_DWARF_ADDR): Delete unused variable.
4131 * rs6000/sysv4.h (CPP_OS_LINUX_SPEC): Define __unix and __linux
4132 according to given options.
4134 Tue May 16 12:17:31 2000 Jeffrey A Law (law@cygnus.com)
4136 * mn10200.h (PREFERRED_RELOAD_CLASS): Do not prefer DATA_REGS
4137 if X has VOIDmode either.
4138 (LIMIT_RELOAD_CLASS): Similarly.
4140 * mn10200.md (indirect_jump, tablejump): Use "register_operand",
4141 not "general_operand" to match the processor's capabilities.
4143 2000-05-16 Bruce Korb <bkorb@gnu.org>
4145 * fixinc/README: corrected return address
4146 * fixinc/check.diff: regenerate, now that test works
4147 * fixinc/fixfixes.c(format_fix,format_write): reformatted
4148 (char_macro_def_fix,char_macro_use_fix): corrected and
4149 rewrote to use regex to parse the text
4150 * fixinc/inclhack.def: more testing
4151 * fixinc/fixincl.x: regenerated
4153 * fixinc/inclhack.def: added several "test_text" attributes
4154 changed several fixes to use `c_fix = format'
4155 re-alphabetized the fixes
4157 * fixinc/check.diff: regenerate
4158 * fixinc/fixincl.x: regenerate
4159 * fixinc/check.tpl: added `sparc' and `netinet' to the list
4163 2000-05-16 Alexandre Oliva <aoliva@cygnus.com>
4165 * config/mn10300/mn10300.h (ASM_OUTPUT_DWARF2_ADDR_CONST): Remove.
4167 2000-05-15 Richard Henderson <rth@cygnus.com>
4169 * toplev.c (rest_of_compilation): Run full jump pass before
4170 find_basic_blocks of flow2.
4172 2000-05-15 Richard Henderson <rth@cygnus.com>
4174 * jump.c: Fix typos and clarify commentary from last change.
4175 (any_condjump_p): Verify SET_SRC is an IF_THEN_ELSE.
4176 (safe_to_remove_jump_p): Remove.
4177 (condjump_label): Use pc_set.
4179 2000-05-15 Richard Henderson <rth@cygnus.com>
4181 * ifcvt.c (cond_exec_process_insns): Drop USE and CLOBBER insns
4182 that get in the way after reload.
4183 (cond_exec_process_if_block): Skip a label heading THEN block.
4185 2000-05-15 Richard Henderson <rth@cygnus.com>
4187 * varasm.c (output_constant_pool): Abort instead of converting
4188 (improperly) deleted labels to zero.
4190 2000-05-16 Neil Booth <NeilB@earthling.net>
4192 * cpplex.c (parse_string2): Update comment.
4193 (cpp_lex_line): No special assertion treatment for '('.
4194 * cpplib.c (DIRECTIVE_TABLE): Remove SYNTAX_ASSERT.
4195 * cpplib.h (SYNTAX_ASSERT): Remove.
4197 Mon May 15 21:45:36 MET DST 2000 Jan Hubicka <jh@suse.cz>
4199 * jump.c (condjump_p): Mark as depreached.
4200 (any_condump_p): New.
4201 (any_uncondump_p): New.
4203 (safe_to_remove_jump_p): New.
4204 * rtl.h (any_condump_p, any_uncondjump_p, pc_set
4205 safe_to_remove_jump_p): Declare.
4207 Mon May 15 21:07:20 MET DST 2000 Jan Hubicka <jh@suse.cz>
4209 * calls.c: Re-install both patches reverted by last patch.
4210 (struct arg_data): New field tail_call_reg.
4211 (initialize_argument_information): Initialize tail_call_reg
4212 (load_register_parameters): New argument flags, use
4213 tail_call_reg when emiting tail call sequence.
4214 (expand_call): Update call of load_register_parameters;
4215 copy unadjusted_args_size to adjusted_args_size.
4217 Mon May 15 19:01:42 MET DST 2000 Jan Hubicka <jh@suse.cz>
4219 * loop.c (scan_loop, strength_reduce, loop_optimize): Change unroll_p
4220 and bct_p parameters to flags.
4221 * loop.h (LOOP_UNROLL, LOOP_BCT): New constants.
4222 * rtl.h (loop_optimize): Update prototype.
4223 * toplev.c (rest_of_compilation): Update call of loop_optimize.
4225 2000-05-15 Jakub Jelinek <jakub@redhat.com>
4227 * calls.c (expand_call): Move expand_start_target_temps call after
4230 2000-05-15 Neil Booth <NeilB@earthling.net>
4232 * cpphash.c (trad_stringify, warn_trad_stringify,
4233 collect_params): Make some pointers pointers to const.
4234 * cpplex.c (auto_expand_name_space) Guaranteed to always
4235 expand by at least one character.
4236 (SPELL_CHAR, SPELL_NONE): Temporarily reverse order.
4237 (struct token_spelling): Use const U_CHAR * rather than PTR.
4238 (expand_name_space): Fix up token pointers if name space
4239 is moved when expanding.
4240 (INIT_NAME, cpp_scan_line, parse_name, parse_number,
4241 parse_string2, save_comment, spell_token, cpp_output_list):
4242 Update so the routines handle tokens with a direct pointer to
4243 their text, rather than an offset into the token's list's namebuf.
4244 (_cpp_lex_line): Rearrange for clarity.
4246 * cpplib.c (_cpp_check_directive): Similarly.
4247 (do_define): Make SYM a pointer to const.
4248 * cpplib.h (struct cpp_name): Replace offset with direct pointer.
4249 (CPP_INT, CPP_FLOAT): Spelling type should be SPELL_IDENT.
4250 (TOK_OFFSET): Delete.
4253 2000-05-14 Geoffrey Keating <geoffk@cygnus.com>
4255 * config/rs6000/rs6000.h (RETURN_ADDRESS_OFFSET): Correct for
4258 * config/rs6000/rs6000.c (logical_operand): Rewrite to take MODE
4260 (logical_u_operand): Delete.
4261 (non_logical_cint_operand): Rewrite to take MODE into account.
4262 (non_logical_u_cint_operand): Delete.
4263 (boolean_operator): New function.
4264 (print_operand): Add new %q operand.
4265 * config/rs6000/rs6000.h (PREDICATE_CODES): Add boolean_operator,
4266 remove logical_u_operand and non_logical_u_cint_operand,
4267 update logical_operand and non_logical_cint_operand.
4268 * config/rs6000/rs6000.md: Rewrite the patterns for performing
4269 logical operations to use %q.
4271 * config/rs6000/rs6000.md (movsi): Don't modify RTL in-place.
4272 (movdi): Make similar to movsi.
4273 * config/rs6000/rs6000.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): There
4274 is no such thing as a DImode CONST_DOUBLE.
4275 * config/rs6000/rs6000.c (output_toc): Likewise.
4277 * config/rs6000/rs6000.c (output_cbranch): Don't output prediction
4278 codes when old mnemonics are in use. Print register names
4279 for cc registers when requested.
4281 * optabs.c (expand_float): Don't allow mode widening that causes
4284 * invoke.texi (RS/6000 and PowerPC Options): Update -m64/-m32
4285 flags to their current names -maix64 and -maix32.
4287 2000-05-14 Bruce Korb <bkorb@gnu.org>
4289 * fixinc/fixfixes.c(wrap_fix): new fix - inserts text before
4290 and/or after current text of file
4291 * fixinc/fixlib.c(must_malloc):
4292 * fixinc/fixlib.h(must_malloc): + reformatting
4293 * fixinc/inclhack.def: replace the "1i" and "$a" sed commands
4294 with usages of ``c_fix = wrap;''
4295 Add several tests and use the ``c_fix = format'' fixer more.
4296 * fixinc/fixincl.x: regen
4297 * fixinc/check.diff: regen
4298 * fixinc/check.tpl: emit the associated header with the missing
4301 Sun May 14 17:58:59 2000 Hans-Peter Nilsson <hp@axis.com>
4303 * mklibgcc.in (building libgcc1) [Xlibgcc1.a]: Do not use unset
4304 variables $src and $dst.
4306 2000-05-13 Gabriel Dos Reis <gdr@codesourcery.com>
4308 * diagnostic.h (DIAGNOSTICS_SHOW_PREFIX_ONCE): New macro.
4309 (DIAGNOSTICS_SHOW_PREFIX_NEVER): Likewise.
4310 (DIAGNOSTICS_SHOW_PREFIX_EVERY_LINE): Likewise.
4311 (struct output_buffer: emitted_prefix_p, prefixing_rule): New
4313 (set_message_prefixing_rule): Declare.
4315 * diagnostic.c: (current_prefixing_rule): New variable.
4316 (set_message_prefixing_rule): Define.
4317 (output_set_prefix): Adjust buffer->emitted_prefix_p.
4318 (init_output_buffer): Adjust Initialization.
4319 (output_emit_prefix): Rewrite. Take prefixing rules into account.
4321 Sat May 13 11:05:47 2000 Philippe De Muyter <phdm@macqel.be>
4323 * ifcvt.c (if_convert): Do not free NULL.
4325 2000-05-12 Nick Clifton <nickc@cygnus.com>
4327 * config/fr30/fr30.c (fr30_move_double): New function: Emit code
4328 to move a double word value.
4329 (di_operand): New function: Return true if the operand is suitbale
4330 for a double word move operation.
4331 (nonimmediate_di_operand): New function: Return true if the
4332 operand is a DImode register or MEM.
4334 * config/fr30/fr30.h (PREDICATE_CODES): Add di_operand and
4335 nonimmediate_di_operand.
4337 * config/fr30/fr30-protos.h Add fr30_move_double, di_operand, and
4338 nonimmediate_di_operand.
4340 * config/fr30/fr30.md (movdi): New pattern. Required because
4341 other patterns generate DImode results.
4342 (movdi_insn): New pattern.
4344 2000-05-12 Richard Henderson <rth@cygnus.com>
4346 * config/alpha/alpha.c (struct shadow_summary): Define
4347 bitfields as type unsigned int.
4349 Sat May 13 00:09:59 2000 Denis Chertykov <denisc@overta.ru>
4351 * config/avr/t-avr: Added definition of FLOAT while generates
4354 * config/avr/avr.md: `NEXT_INSN (insn)' substituted to `insn' in
4355 peepholes for tst+jump = sbrs/sbrc optimization.
4357 Fry May 12 20:03:00 CEST 2000 Jan Hubicka <jh@suse.cz>
4359 * expr.c (emit_push_insn): Do not adjust stack pointer when
4362 Fri May 12 19:03:58 2000 Philippe De Muyter <phdm@macqel.be>
4364 * ggc-simple.c (offsetof): Macro fallback definition moved from here ..
4365 * system.h (offsetof): ... to here.
4367 2000-05-12 Richard Henderson <rth@cygnus.com>
4369 * Makefile.in (final.o): Depend on BASIC_BLOCK_H.
4370 * final.c (final_end_function): Use app_disable. Rearrange note
4371 handling into a switch. Emit deleted labels.
4372 (output_asm_label): Generate label strings for deleted labels.
4373 * flow.c (tail_recursion_label_list): New.
4374 (find_basic_blocks_1): Set label_value_list directly. Collect list
4375 of tail recursion labels from call_placeholders. Don't add deleted
4376 labels to the label value list.
4377 (cleanup_cfg): Use free_EXPR_LIST_list.
4378 (flow_delete_insn_chain): Turn non-removable labels into notes.
4379 (flow_delete_block): Don't disable deleting the block because of
4380 a non-removable label.
4381 (tail_recursion_label_p): New.
4382 (merge_blocks_move_predecessor_nojumps): Don't disable the merge
4384 (merge_blocks_move_successor_nojumps): Likewise. Also move a
4386 (merge_blocks): Disable a merge because of tail recursion labels.
4387 * ifcvt.c (merge_if_block): Don't disable a merge because of a label.
4388 Use a more accurate measure of not merging the join block.
4389 (find_if_block): Don't disable conversion because of a label.
4390 (find_if_case_1, find_if_case_2): Likewise.
4391 * jump.c (duplicate_loop_exit_test): Preserve the kind of list
4392 element when copying.
4393 (squeeze_notes): Also leave EH notes.
4394 (mark_jump_label): Ignore deleted labels. Use an INSN_LIST for
4396 (delete_insn): Preserve LABEL_NAME in NOTE_SOURCE_FILE when
4398 * print-rtl.c (print_rtx): Print NOTE_SOURCE_FILE for
4399 NOTE_INSN_DELETED_LABEL. Print `[# deleted]' for a label_ref
4400 referring to a deleted label. Convert tail handling to a switch.
4401 * rtl.def (CODE_LABEL): Rearrange elements to be compatible with NOTE
4402 for NOTE_INSN_DELETED_LABEL.
4403 (NOTE): Fix commentary.
4404 * rtl.h (REG_LABEL): Update commentary wrt INSN_LIST.
4405 (REG_CC_SETTER, REG_CC_USER, REG_LIBCALL): Likewise.
4406 (CODE_LABEL_NUMBER, LABEL_NAME): Update index.
4407 (LABEL_NUSES, LABEL_REFS): Likewise.
4408 * unroll.c (copy_loop_body): Don't copy NOTE_INSN_DELETED_LABEL.
4410 2000-05-12 Bruce Korb <bkorb@gnu.org>
4412 * fixinc/fixfixes.c(format_write): buglet & relaxed rules
4413 * fixinc/check.diff: updated
4414 * fixinc/inclhack.def: corrected & added some test_text-s
4415 * fixinc/genfixes: removed unneeded options to autogen invocation
4416 * fixinc/fixincl.tpl: Specified the output file
4417 * fixinc/fixfixes.c: visual appearance
4418 * fixinc/fixincl.x: regenerate
4420 2000-05-12 Zack Weinberg <zack@wolery.cumb.org>
4422 * fixinc/fixfixes.c (IO_use_fix, IO_defn_fix, CTRL_use_fix,
4423 CTRL_defn_fix): Delete.
4424 (fix_char_macro_defines, fix_char_macro_uses): Rename to
4425 char_macro_def_fix and char_macro_use_fix, respectively. Put
4426 them into the FIXUP_TABLE. Get the string to search for from
4429 (format_write): New function.
4430 (format_fix): Use it.
4432 (FIX_PROC_HEAD): Constify text parameter.
4433 (machine_name_fix): Constify all char *s.
4434 * fixtests.c (skip_quote): Remove double static.
4436 * inclhack.def (io_def_quotes, io_use_quotes, ctrl_def_quotes,
4437 ctrl_use_quotes): Update for new scheme.
4438 * fixincl.x: Regenerate.
4440 2000-05-12 Alexandre Oliva <aoliva@cygnus.com>
4442 * config/mn10300/mn10300.h (PREFERRED_DEBUGGING_TYPE): Redefine as
4444 (DWARF2_ASM_LINE_DEBUG_INFO): Define.
4445 (ASM_OUTPUT_DWARF2_ADDR_CONST): Define.
4447 2000-05-11 Robert Lipe <robertlipe@usa.net>
4449 * fixinc/inclhack.def (hpux8_bogus_inlines): Delete bypass for SCO.
4450 * fixincl.x: Regenerate.
4452 2000-05-11 Richard Henderson <rth@cygnus.com>
4454 * calls.c: Revert both 05-09 patches.
4456 2000-05-11 Alexandre Oliva <aoliva@cygnus.com>
4458 * config/mn10300/mn10300.c (print_operand): Print FP constants in
4460 * config/mn10300/mn10300.md (movsf, movdf): Use the `F' constraint
4463 * mklibgcc.in (EQ): Define it to an equal sign in the Makefile,
4464 and replace any occurrences of `=' in multilib dirs with `$(EQ)'.
4466 2000-05-11 Jason Merrill <jason@casey.cygnus.com>
4468 * fixinc/fixincl.c (run_compiles): Don't crash on null pz_machine.
4470 2000-05-11 Zack Weinberg <zack@wolery.cumb.org>
4472 * fixinc/fixfixes.c, fixinc/fixtests.c: Update commentary.
4474 Thu May 11 22:28:05 2000 Denis Chertykov <denisc@overta.ru>
4476 * config/avr/avr-protos.c (jump_over_one_insn_p): New declaration.
4477 * config/avr/avr.c (jump_over_one_insn_p): New function.
4478 * config/avr/avr.md: New peepholes added. Output test and
4479 conditional jump to "sbrc" or "sbrs" command.
4481 2000-05-11 Mark Elbrecht <snowball3@bigfoot.com>
4483 * cppmain.c (main): Use IS_DIR_SEPARATOR.
4485 2000-05-11 Jakub Jelinek <jakub@redhat.com>
4487 * except.c (find_exception_handler_labels_1): New function.
4488 (find_exception_handler_labels): Split into two functions, dive
4489 into CALL_PLACEHOLDERs when looking for exception handler labels.
4491 2000-05-11 Stan Cox <scox@cygnus.com>
4493 * regrename.c (replace_reg_in_block): Improve REG_DEAD handling.
4494 * timevar.def (TV_RENAME_REGISTERS): Move before TV_SCHED2.
4495 * toplev.c (rest_of_compilation): Call regrename_optimize before sched2.
4497 2000-05-11 Bruce Korb <bkorb@gnu.org>
4499 * fixinc/fixfixes.c (double_slash_fix): obsolete
4500 (else_endif_label_fix): obsolete
4501 (format_fix): new, unused as yet
4503 * fixinc/fixlib.h: added fix description struct for use by format_fix
4504 * fixinc/fixincl.c: removed the struct & test for SIGIOT befure using
4505 * fixinc/Makefile.in: compile fixfixes.c and fixtests.c as separate
4506 modules. Removed the vestiges of the script version.
4507 Added support for "make check".
4508 * fixinc/check.diff: base diff file (needs work!!)
4509 * fixinc/check.tpl: quiet the fixup output
4510 * fixinc/fixtests.c (main): obsolete
4511 * fixinc/fixincl.sh: don't bother copying fixincl to ..
4512 * fixinc/fixincl.tpl: provide for arguments to c_fix routines
4514 Thu May 11 11:57:02 MET DST 2000 Jan Hubicka <jh@suse.cz>
4516 * toplev.c (rest_of_compilation): Remove dead code after
4519 2000-05-11 Zack Weinberg <zack@wolery.cumb.org>
4521 * cpphash.c (collect_funlike_expansion): Make "# is not
4522 followed by a macro argument name" a pedwarn, not an error.
4523 Preserve the # in the output. Suppress the warning if lang_asm.
4525 Thu May 11 01:19:31 2000 Jeffrey A Law (law@cygnus.com)
4527 * configure.in (hppa*64*-*-hpux11*): New target for PA64 support.
4528 * configure: Rebuilt.
4530 2000-05-10 Laurynas Biveinis <lauras@softhome.net>
4532 * i386/xm-djgpp.h (XREF_FILE_NAME): Add mising brace.
4534 2000-05-10 Kazu Hirata <kazu@hxi.com>
4536 * combine.c (try_combine): Fix a typo.
4538 Wed May 10 21:31:44 2000 Jim Wilson <wilson@cygnus.com>
4540 * config/ia64/ia64.md (insv): Add comment.
4542 2000-05-10 Richard Henderson <rth@cygnus.com>
4544 * Makefile.in (libgcc.a, stmp-multilib): Depend on FPBIT and DPBIT.
4545 * mklibgcc.in: Rewrite to not use functions. Don't shortcut
4546 dependancies on FPBIT and DPBIT.
4548 2000-05-10 Nick Clifton <nickc@redhat.com>
4550 * flow.c (find_auto_inc): Do not bias REG_N_REFS by loop_depth
4551 when optimising for size.
4552 (mark_used_regs:) Ditto.
4553 (try_pre_increment_1): Ditto.
4555 2000-05-10 Zack Weinberg <zack@wolery.cumb.org>
4557 * cppexp.c (lex): Use %.*s to print non-NUL-terminated string.
4558 Make error message friendlier.
4560 * cpphash.h (struct hashnode): Use struct hack for name
4562 * cpphash.c (struct hashdummy): New.
4563 (eq_HASHNODE): Second argument is a hashdummy, not a HASHNODE.
4564 (make_HASHNODE): No need to set ->name pointer. Correct
4566 (cpp_lookup): Make 'dummy' a struct hashdummy. Tidy up a bit.
4568 2000-05-10 Richard Henderson <rth@cygnus.com>
4570 * flow.c (find_basic_blocks_1): Remove any spare bb_note
4573 2000-05-10 Bruce Korb <bkorb@gnu.org>
4575 * fixinc/gnu-regex.c: reg_syntax_t re_syntax_options must be static
4577 2000-05-10 Eric Schweitz <schweitz@nortelnetworks.com>
4579 * dwarfout.c (dwarfout_finish): Call retry_incomplete_types
4580 after we enter .debug.
4582 2000-05-10 Jason Merrill <jason@casey.cygnus.com>
4584 * dwarf2out.c (gen_subprogram_die): Fixup die_parent for the
4585 abstract instance of a nested inline function.
4587 * stor-layout.c (finish_record_layout): finalize_type_size
4588 before laying out the pending_statics.
4590 Wed 10 May 09:36:47 2000 Neil Booth <NeilB@earthling.net>
4592 * cpplex.c (spell_token): New function.
4593 (spell_string, spell_comment, spell_name): fold into
4596 (E, H): Remove macros.
4597 (save_comment): Save comment opening characters too.
4598 (_cpp_lex_file): Update to use spell_token. Tidy up comment
4600 * cpplib.h (I, S): Add macros.
4601 (E, H): Remove macros.
4602 (TTYPE_TABLE): Update entries for new speller.
4603 (SYNTAX_ASSERT): Remove.
4605 Wed 10 May 09:08:30 2000 Neil Booth <NeilB@earthling.net>
4607 * cpplex.c (_cpp_lex_line): Maintain PREV_WHITESPACE flag
4608 when removing escaped newlines. Reverse sense of test for
4611 2000-05-09 Richard Henderson <rth@cygnus.com>
4613 * flow.c (find_basic_blocks_1): Do not delete the first
4614 bb_note we run across.
4615 (create_basic_block): Use reorder_insns to move an existing
4616 bb_note to the correct place.
4618 2000-05-09 Richard Henderson <rth@cygnus.com>
4620 * calls.c (expand_call): Increment currently_expanding_call
4621 before calling optimize_tail_recursion.
4623 Tue May 9 18:54:16 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4625 * reload1.c (reload_combine): Fix errors in last change.
4627 2000-05-09 Zack Weinberg <zack@wolery.cumb.org>
4629 * gcc.c (used_arg): Skip over a semicolon at the end of the
4630 split-up loop; don't break out of it.
4632 * Makefile.in (WARN_CFLAGS): Add -Wwrite-strings.
4633 (tree.o): Depend on output.h.
4635 * c-decl.c (pending_invalid_xref_file,
4636 current_function_prototype_file): Constify.
4637 (pushdecl): Constify a local char *.
4638 (define_label): Constify filename parameter.
4639 * c-lex.c (init_parse): Constify parameter and return value.
4640 * c-typeck.c (c_expand_asm_operands): Constify filename parameter.
4641 * c-tree.h: Update prototypes.
4642 * c-parse.in: Constify filename member of %union, and if_stmt_file.
4643 * c-parse.y, c-parse.c, c-parse.h, objc/objc-parse.y,
4644 objc/objc-parse.c: Regenerate.
4646 * dwarfout.c (dwarfout_init): Constify main_input_filename parameter.
4647 * dwarfout.h: Update prototypes.
4648 * expr.c (expand_expr): Constify a local char *.
4649 * flags.h: Constify main_input_filename.
4650 * function.c (expand_function_end): Constify filename parameter.
4651 * genrecog.c (make_insn_sequence): Use a character array for
4653 (main): Remove unused variables.
4654 * input.h: Constify input_filename, main_input_filename, and
4655 file_stack.name. Update prototypes.
4656 * output.h: Declare first_global_object_name and
4657 weak_global_object_name here, as const char *.
4658 * stmt.c (expand_asm_operands): Constify filename parameter.
4659 * toplev.c (compile_file, push_srcloc, debug_start_source_file):
4660 Constify filename parameter.
4661 (input_filename, main_input_filename): Constify.
4662 * toplev.h: Update prototypes.
4663 * tree.c: Include output.h. Don't declare
4664 first_global_object_name or weak_global_object_name. Clean up string
4665 bashing in get_file_function_name_long.
4666 * tree.h (struct tree_decl): Constify filename member.
4667 (input_filename): Constify.
4669 * varasm.c (first_global_object_name, weak_global_object_name):
4671 (assemble_start_function, assemble_variable): Clean up string bashing.
4673 * gcc.c: Constify all spec-related strings initialized,
4674 transitively, from string constants. Constify all strings
4675 and string variables related to multilibs.
4676 (set_spec, read_specs): Cast argument to free to PTR.
4677 (used_arg): Do not modify multilib_matches. Use strncmp plus
4678 length comparison to compare multilib switches.
4679 * genmultilib: Constify everything declared in multilib.h.
4681 Tue May 9 22:28:03 2000 Denis Chertykov <denisc@overta.ru>
4683 * flow.c (flow_delete_insn): Use INSN_DELETED_P for marking insn
4686 Tue May 9 20:52:43 2000 Denis Chertykov <denisc@overta.ru>
4688 * config/avr/avr-protos.h (extra_constraint): change a type of
4689 second argument from char to int to avoid warnings.
4690 (asm_output_byte): Likewise.
4692 * config/avr/avr.c (MAX_LD_OFFSET) New macro.
4693 (initial_elimination_offset): Handle elimination from
4694 FRAME_POINTER_REGNUM to STACK_POINTER_REGNUM.
4695 (legitimate_address_p): Use MAX_LD_OFFSET.
4696 (legitimize_address): Likewise.
4697 (out_movqi_r_mr): Likewise.
4698 (out_movhi_r_mr): Likewise, use `fatal_insn' instead of `fatal'.
4699 (out_movsi_r_mr): Use MAX_LD_OFFSET.
4700 (out_movsi_mr_r): Likewise.
4701 (out_movqi_mr_r): Likewise.
4702 (out_movhi_mr_r): Likewise.
4703 (notice_update_cc): Correct CC for the ashrqi3 with the shift
4704 count as CONST_INT != 6.
4705 (ashlqi3_out): Coding style modifications. Run `fatal_insn' if
4706 shift count is a CONSTANT_P, but not a CONST_INT.
4707 (ashlhi3_out): Coding style modifications.
4708 (ashlsi3_out): Likewise.
4709 (ashrhi3_out): Likewise.
4710 (ashrsi3_out): Likewise.
4711 (lshrhi3_out): Likewise.
4712 (lshrsi3_out): Likewise.
4713 (ashrqi3_out): Generate shift for any known constant count without
4714 scratch register. Run `fatal_insn' if shift count is a CONSTANT_P,
4715 but not a CONST_INT.
4716 (lshrqi3_out): Coding style modifications. Run `fatal_insn' if
4717 shift count is a CONSTANT_P, but not a CONST_INT.
4718 (extra_constraint): change a type of
4719 second argument from char to int to avoid warnings.
4720 (asm_output_byte): Likewise.
4721 (asm_file_end): Output size generated commands count as a hex
4724 * config/avr/avr.h (RETURN_ADDR_RTX): New macro.
4726 * config/avr/avr.md (addhi3): Fragment commented by &&0 is
4728 (ashlqi3): Values of "length" attribute changed. Shift count
4729 uses constraints 'n' instead of 'i'.
4730 (ashrqi3): Likewise. Values of "cc" attribute changed. Generate
4731 shifts without clobber register.
4732 (lshrqi3): Shift count uses constraints 'n' instead of 'i'.
4733 (call_insn): Correct test for which_alternative == 1 (was 0).
4734 (call_value_insn): Likewise.
4736 * config/avr/t-avr: Remove definition of FLOAT while generates
4739 2000-05-09 Bruce Korb <bkorb@gnu.org>
4741 * fixinc/check.tpl: Template for checking fixes
4742 * fixinc/inclhack.def: Added 'test_text' for many fixes
4743 disable hpux8_bogus_inlines on SCO
4744 * fixinc/fixinc.sco: Oh, yes, we don't need this any more.
4746 Tue May 9 16:30:27 MET DST 2000 Jan Hubicka <jh@suse.cz>
4748 * calls.c (expand_call): Reorganize somewhat in order
4749 to avoid unnecesary recalculation inside loop and make
4750 tail call failure code cleaner.
4752 Tue May 9 06:30:20 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4754 * alias.c (nonlocal_reference_p): Minor reformatting.
4755 * reload.c (find_equiv_reg): Simplify logic for
4756 CALL_INSN_FUNCTION_USAGE since can't have SUBREG or pseudos and
4757 some some reformatting.
4758 * reload1.c (reload_combine): Don't assume everything in
4759 CALL_INSN_FUNCTION_USAGE is a REG and clean up code a bit.
4761 2000-05-08 Richard Henderson <rth@cygnus.com>
4763 * final.c (current_insn_predicate): New.
4764 (final_scan_insn): Set it.
4765 * output.h (current_insn_predicate): Declare.
4767 * ifcvt.c (cond_exec_process_insns): New argument prob_val.
4768 Attach it to call insns.
4769 (cond_exec_process_if_block): Track probability for true and
4771 (dead_or_predicable): Likewise.
4773 * predict.c (PROB_NEVER, PROB_VERY_UNLIKELY): New.
4774 (PROB_UNLIKELY, PROB_EVEN, PROB_LIKELY): New.
4775 (PROB_VERY_LIKELY, PROB_ALWAYS): New.
4776 (estimate_probability, expected_value_to_br_prob): Use them.
4778 * config/ia64/ia64-protos.h (ia64_expand_prediction): Declare.
4779 * config/ia64/ia64.c (ia64_print_operand_address): Handle 'j'.
4780 (ia64_expand_prediction): New.
4781 (emit_insn_group_barriers): Don't look at notes. Emit barriers
4782 as needed after calls.
4783 (ia64_epilogue_uses): Mark b0 used.
4784 * config/ia64/ia64.md (beq_true, beq_false): Remove.
4785 (bne_true, bne_false): Remove.
4786 (eq_return, eq_not_return, ne_return, ne_not_return): Remove.
4787 (br_true, br_false): New. Use predicate_operator and
4788 ia64_expand_prediction.
4789 (return_true, return_false): Likewise.
4790 (call_internal): Use ia64_expand_prediction. Don't emit stop bit.
4791 (call_internal1, call_value_internal): Likewise.
4792 (call_value_internal1, call_multiple_values_internal1): Likewise.
4794 * config/ia64/ia64.c (ia64_direct_return): Require frame size zero.
4796 * config/ia64/ia64.md (extendsfdf2): Split only after reload.
4798 2000-05-08 Richard Henderson <rth@cygnus.com>
4800 * rtlanal.c (may_trap_p): Consider old-style and volatile
4803 Mon May 8 17:16:48 2000 Jim Wilson <wilson@cygnus.com>
4805 * config/ia64/ia64.h (RETURN_ADDR_RTX): Use COUNT not count.
4807 2000-05-08 Richard Henderson <rth@cygnus.com>
4809 * config/ia64/ia64.h (predicate_operator): Declare.
4811 * config/ia64/ia64.md (extendsfdf2): Split the nop case out
4814 * gensupport.c (process_rtx): Copy and post-process each member
4815 of the define_insn rtvec individually.
4817 Mon 8 May 22:17:35 2000 Neil Booth <NeilB@earthling.net>
4819 * cpplex.c (spell_token): New function.
4820 (TOKEN_LEN): Add 1 for whitespace.
4821 (_cpp_lex_file): Update to use spell_token.
4822 * cpplib.h (E): Remove.
4823 (TTYPE_TABLE): Update CPP_VSPACE entry.
4825 2000-05-08 Richard Henderson <rth@cygnus.com>
4827 * flow.c (init_propagate_block_info): Watch out for conditional
4828 branch to next instruction, and thus one outgoing edge.
4830 * config/ia64/ia64.c (ia64_encode_section_info): Exit early
4831 for global register variables; don't special case __[CD]TOR_LIST__;
4832 mind ggc_p for string allocation.
4834 2000-05-08 Nick Clifton <nickc@cygnus.com>
4836 * config/i386/i386.h (ELIMINABLE_REGS): Fix comment.
4838 2000-05-08 Bruce Korb <bkorb@gnu.org>
4840 * fixinc/mkfixinc.sh: fixinc.sco is no longer used
4841 i?86-*-msdosdjgpp* no longer uses fixincludes
4842 * fixinc/genfixes: inclhack.sh and fixincl.sh are no longer generated
4843 * fixinc/inclhack.sh: deleted
4844 * fixinc/hackshell.tpl: deleted
4845 * fixinc/inclhack.tpl: deleted
4846 * fixinc/Makefile.in: Remove dependencies on above
4847 * fixinc/fixincl.sh: "DO NOT EDIT" text modified
4849 2000-05-08 Andreas Jaeger <aj@suse.de>
4851 * config/mips/linux.h: Remove undefines which disabled .ctor/.dtor
4854 2000-05-07 Zack Weinberg <zack@wolery.cumb.org>
4856 * Makefile.in (LOOSE_CFLAGS): Add /g modifiers to both sed
4859 Sun 7 May 08:43:53 2000 Neil Booth <NeilB@earthling.net>
4861 * cpplex.c: Move new lexer definitions and prototypes
4862 to top. Conditional include these and the code if
4863 NEW_LEXER is defined. Rename functions whose names
4864 clash if this code included.
4866 Sun May 7 00:54:57 EDT 2000 John Wehle (john@feith.com)
4868 * rtl.def (COND_EXEC): Clarify.
4870 * i386.md (extendsidi2): Clobber (reg:CC 17) in the
4871 same fashion as zero_extendsidi2.
4873 2000-05-06 Richard Henderson <rth@cygnus.com>
4875 * config/ia64/ia64.c (predicate_operator): New.
4876 (ia64_print_operand): Handle 'J'.
4877 (rtx_needs_barrier): Handle COND_EXEC.
4878 * config/ia64/ia64.h (BRANCH_COST): Define.
4879 (PREDICATE_CODES): Update.
4880 * config/ia64/ia64.md: Docuement used unspec values.
4881 (attr predicable): New.
4882 (movxf, movxf_internal): New.
4883 (extendsfdf2): Don't comment out nop.
4884 (floatdidf2): Remove.
4885 (truncxfsf2, truncxfdf2, floatdixf2): New.
4886 (abssi2, absdi2): Put the neg in the "true" slot.
4887 (conditional branch instructions): Mark not predicable.
4888 (cmov*_internal): Use predicate_operator. Split to cond_exec.
4889 (abs*_internal): Likewise.
4890 (alloc, set_bsp): Mark not predicable.
4891 (barrier, insn_group_barrier, flush_cache): Likewise.
4892 (define_cond_exec): New.
4894 2000-05-06 Richard Henderson <rth@cygnus.com>
4896 * c-decl.c: Include "tm_p.h".
4898 * config/ia64/ia64-protos.h: Rearrange decls to reduce ifdef madness.
4899 (fetchadd_operand, ia64_expand_fetch_and_op): Declare.
4900 (ia64_expand_op_and_fetch): Declare.
4901 * config/ia64/ia64.c: Include "toplev.h". Kill trailing whitespace.
4902 (setjmp_operand): Constify variables for XSTR.
4903 (ia64_encode_section_info): Likewise.
4904 (ia64_print_operand): Use %d for exact_log2; cast 32-bit printed
4906 (ia64_asm_output_external): Constify name.
4907 (process_set): Use HOST_WIDE_INT_PRINT_DEC for frame size.
4908 (process_for_unwind_directive): Provide switch default.
4909 (ia64_expand_compare_and_swap): Remove unused variables.
4910 (ia64_expand_builtin): Likewise.
4911 * config/ia64/ia64.h (ASM_OUTPUT_BYTE): Mask and cast value to int
4914 * config/ia64/ia64.c (sdata_symbolic_operand): Mark unused args.
4915 (symbolic_operand, function_operand, setjmp_operand): Likewise.
4916 (shift_count_operand, shift_32bit_count_operand): Likewise.
4917 (shladd_operand, fetchadd_operand, ia64_function_prologue): Likewise.
4918 (ia64_function_epilogue, ia64_setup_incoming_varargs): Likewise.
4919 (ia64_function_arg_partial_nregs, ia64_function_value): Likewise.
4920 (ia64_print_operand_address, ia64_secondary_reload_class): Likewise.
4921 (ia64_expand_builtin): Likewise.
4922 (call_multiple_values_operation): Make dest_regno unsigned.
4924 2000-05-06 Richard Henderson <rth@cygnus.com>
4926 * rtl.def (DEFINE_COND_EXEC): New.
4927 * md.texi: Document it.
4929 * gensupport.c (input_file): Remove.
4930 (struct queue_elem): Add lineno.
4931 (rtx_ready_queue): Remove.
4933 (predicable_default): New.
4934 (predicable_true, predicable_false): New.
4935 (define_attr_queue, define_attr_tail): New.
4936 (define_insn_queue, define_insn_tail): New.
4937 (define_cond_exec_queue, define_cond_exec_tail): New.
4938 (other_queue, other_tail): New.
4939 (queue_pattern): New.
4940 (process_rtx): Add patterns to the appropriate queues.
4941 (is_predicable, identify_predicable_attribute): New.
4942 (n_alternatives, collect_insn_data): New.
4943 (alter_predicate_for_insn, alter_test_for_insn): New.
4944 (shift_output_template, alter_output_for_insn): New.
4945 (process_one_cond_exec, process_define_cond_exec): New.
4946 (init_md_reader): Read the entire file. Process define_cond_exec.
4947 (read_md_rtx): Return elements from the queues.
4949 2000-05-06 Richard Henderson <rth@cygnus.com>
4951 * flow.c (mark_set_1): Don't update conditional life info
4952 if the register is not_dead.
4954 2000-05-06 Zack Weinberg <zack@wolery.cumb.org>
4956 * Makefile.in (STAGESTUFF): Add genrtl.c and genrtl.h.
4957 (mostlyclean): Also delete fixincl, fixinc.sh, and
4958 specs.ready, and make clean in the fixinc subdir.
4960 2000-05-06 Richard Henderson <rth@cygnus.com>
4962 * Makefile.in (gensupport.o): Compile for the host.
4963 (host-prefix gensuuprt.o): Remove.
4964 (genflags.o): Depend on gensupport.h and OBSTACK_H.
4965 (genattrtab.o): Likewise.
4966 (gencodes.o): Depend on gensupport.h.
4967 (genemit.o, genopinit.o, genrecog.o, genextract.o): Likewise.
4968 (genpeep.o, genattr.o, genoutput.o): Likewise.
4970 * gensupport.c (obstack, rtl_obstack): New.
4971 (init_md_reader): Initialize rtl_obstack.
4972 * gensupport.h (rtl_obstack): Declare.
4973 (message_with_line): Declare.
4975 * genattr.c: Remove all traces of obstack manipulation.
4976 * gencodes.c, genconfig.c, genemit.c, genextract.c: Likewise.
4977 * genopinit.c, genoutput.c, genpeep.c, genrecog.c: Likewise.
4979 * genattrtab.c (obstack, rtl_obstack): Remove.
4980 (main): Don't init rtl_obstack.
4981 * genflags.c: Likewise.
4983 * genrecog.c (message_with_line): Move ...
4984 * gensupport.c: ... here.
4986 2000-05-06 Richard Henderson <rth@cygnus.com>
4988 * c-typeck.c (build_c_cast): Remove dead code.
4990 2000-05-06 Richard Henderson <rth@cygnus.com>
4992 * flow.c (split_edge): Don't allocate global_live_at_start for
4993 the new block unless the old blocks had them as well.
4995 * flow.c (mark_set_1): Respect not_dead when updating reg_live.
4997 * ifcvt.c (noce_process_if_block): Don't use an insn_b from
4998 test_bb if a or b uses x.
5000 2000-05-06 Zack Weinberg <zack@wolery.cumb.org>
5002 * cpphash.h: Remove conditional #define of __extension__.
5003 * rtl.h: Add __extension__ to RTL_CHECK1, RTL_CHECK2,
5004 RTL_CHECKC1, RTL_CHECKC2, and RTVEC_ELT macros
5005 (ENABLE_RTL_CHECKING only).
5006 * tree.h: Add __extension__ to TREE_CHECK, TREE_CLASS_CHECK,
5007 CST_OR_CONSTRUCTOR_CHECK, and EXPR_CHECK macros
5008 (ENABLE_TREE_CHECKING only).
5009 * varray.h: Add __extension__ to VARRAY_CHECK macro
5010 (ENABLE_CHECKING only).
5012 2000-05-06 Richard Earnshaw (reanrsha@arm.com)
5014 Use new tail-calling mechanism on ARM.
5015 * arm.md (sibcall, sibcall_value): New expands.
5016 (sibcall_insn, sibcall_value_insn, sibcall_epilogue): New insns.
5017 (tailcalling peepholes): Delete.
5018 (push_multi): Simplify.
5019 * arm.c (lr_save_eliminated): Delete definition.
5020 (pattern_really_clobbers_lr, function_really_clobbers_lr): Delete.
5021 (output_return_instruction): Remove checks on lr_save_eliminated.
5022 (output_arm_prologue): Remove old tail-calling code.
5023 (arm_output_epilogue): New parameter, really_return. All callers
5024 changed. Handle tail-calling epilogues.
5025 * arm.h (lr_save_eliminated): Delete declaration.
5026 (frame_pointer_needed): Delete declaration.
5027 * arm-protos.h (arm_output_epilogue): Adjust prototype.
5029 * arm.md (is_thumb): Examine symbol thumb_code, not expression
5031 * arm.c (thumb_code): Define it.
5032 (arm_override_options): Set it.
5033 * arm.h (thumb_code): Declare it.
5035 2000-05-06 Richard Earnshaw (reanrsha@arm.com)
5037 * arm-protos.h (arm_dllexport_name_p, arm_dllimport_name_p): Constify.
5039 2000-05-06 Richard Earnshaw (reanrsha@arm.com)
5041 * arm.c (arm_gen_load_multiple, arm_gen_store_mulitple): Don't add
5042 bogus clobber to insns.
5043 (load_multiple_operation, store_mulitple_operation): Don't check
5045 * arm.md (ldmsi_postinc, stmsi_postinc): Adjust accordingly.
5047 * arm.md (and_scc, ior_scc): Add missing mode.
5049 * arm.md (call_value_symbol): Remove predicate from op2.
5051 * arm.h (SPECIAL_MODE_PREDICATES): Define.
5053 Sat May 6 06:25:56 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5055 * expr.c (get_subtarget): New function.
5056 (force_operand, expand_expr, do_store_flag): Use it.
5058 * toplev.c (compile_file): Don't take strlen of NAME if null.
5060 2000-05-06 David Edelsohn <edelsohn@gnu.org>
5062 * xcoffout.c (xcoff_current_include_file,
5063 xcoff_current_function_file, xcoff_lastfile): Constify char *.
5064 (xcoffout_source_file, xcoffout_source_line): Make filename 'const
5066 (xcoffout_declare_function): Make name 'const char *'.
5067 (xcoffout_end_epilogue): Make fname 'const char *'
5068 * xcoffout.h (xcoff_current_include_file, xcoff_lastfile,
5069 xcoffout_declare_function, xcoffout_source_line): Match above.
5071 * aix43.h (SUBTARGET_OVERRIDE_OPTIONS): -mpowerpc64 without
5073 * rs6000.c (print_operand): Fix lossage typo.
5074 (output_cbranch): Remove "cr" decoration for now.
5075 * rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Make alias 'const char *'.
5077 Sat May 6 06:55:32 2000 Denis Chertykov <denisc@overta.ru>
5079 * config/avr/avr.c (out_shift_with_cnt): Bugfix for shift by
5082 2000-05-05 Bruce Korb <bkorb@gnu.org>
5084 * fixinc/genfixes: Improve the matching for make target names
5086 2000-05-05 Catherine Moore <clm@cygnus.com>
5088 * c-common.c (decl_attributes): For TYPE_DECLs attach the
5089 attribute to the decl.
5090 * c-decl.c (pushdecl): Propagate the USED attribute to the
5093 2000-05-05 Richard Henderson <rth@cygnus.com>
5095 * rtlanal.c (reg_overlap_mentioned_p): Treat parallels in the
5096 same way emit_group_load does.
5098 2000-05-05 Mark Elbrecht <snowball3@bigfoot.com>
5100 * gcc.c (set_input) [HAVE_DOS_STYLE_FILE_SYSTEM]: Skip drive name.
5102 * toplev.c (output_file_directive): Use IS_DIR_SEPARATOR.
5105 2000-05-05 Rodney Brown <RodneyBrown@mynd.com>
5107 * pa.h (FUNCTION_ARG_ADVANCE): Warning removal.
5109 Fri May 5 10:29:21 2000 Marc Espie <espie@cvs.openbsd.org>
5111 * config/openbsd.h (LINK_SPEC): pass correct flags to ld
5112 to support -shared, on platforms with dynamic libraries.
5114 Fri May 5 10:27:06 2000 Philippe De Muyter <phdm@macqel.be>
5116 * system.h (S_ISBLK): Provide fallback definition.
5118 2000-05-05 Geoff Berry <geoffb@bops.com>
5120 * extend.texi (Extended Asm): Document inability to give asm
5121 statements access to condition codes.
5123 2000-05-05 Marek Michalkiewicz <marekm@linux.org.pl>
5125 * varasm.c (asm_emit_uninitialised): Use 0, not NULL
5126 as arg 2 of UNIQUE_SECTION.
5128 Fri May 5 10:11:41 2000 Jeffrey A Law (law@cygnus.com)
5130 * predict.c: Remove May 4 change.
5131 * bb-reorder.c (make_reorder_chain): Do not perform block movement
5132 if we have predicted the branch at 50-50 probability.
5134 2000-05-05 Richard Henderson <rth@cygnus.com>
5136 * flow.c (init_propagate_block_info): Fix merge error
5137 in HAVE_conditional_execution code.
5139 Fri May 5 07:43:50 2000 Denis Chertykov <denisc@overta.ru>
5141 * config/avr/avr.c (out_shift_with_cnt): Genetare a more optimal
5142 shift cycle for unknown shift count. Also generates dec + brpl.
5143 (ashlqi3_out): Don't generate dec + brpl which now generates by
5144 `out_shift_with_cnt'.
5145 (ashlhi3_out): Likewise.
5146 (ashlsi3_out): Likewise.
5147 (ashrqi3_out): Likewise.
5148 (ashrhi3_out): Likewise.
5149 (ashrsi3_out): Likewise.
5150 (lshrqi3_out): Likewise.
5151 (lshrhi3_out): Likewise.
5152 (lshrsi3_out): Likewise.
5154 2000-05-04 Mark Elbrecht <snowball3@bigfoot.com>
5156 * gcc.c (free_split_directories): Correct typo in explanation
5157 of make_relative_prefix.
5159 2000-05-04 Geoff Keating <geoffk@cygnus.com>
5161 * config/rs6000/rs6000.h (PREDICATE_CODES): Add floating-point
5162 comparison codes to branch_comparison_operator.
5164 2000-05-04 Richard Henderson <rth@cygnus.com>
5166 * ifcvt.c (noce_process_if_block): Always reset X in the A == B case.
5168 2000-05-04 Richard Henderson <rth@cygnus.com>
5170 * Makefile.in (FPBIT_FUNCS): Remove _df_to_usi.
5171 (DPBIT_FUNCS): Remove _sf_to_usi.
5172 (stmp-multilib): Pass LIB1ASMSRC to libgcc.mk.
5174 * ifcvt.c (noce_process_if_block): Fail if A or B modified
5175 between condition and jump.
5177 * libgcc2.c (near eh_context_specific): Comment #endif string.
5178 * longlong.h: Don't use strings with embedded newlines.
5180 2000-05-04 Geoff Keating <geoffk@cygnus.com>
5182 * config/rs6000/rs6000-protos.h: Add output_cbranch.
5183 * config/rs6000/rs6000.c (ccr_bit_negated_p): Delete.
5184 (print_operand): Delete %t and %T codes.
5185 (output_cbranch): New function. Support branch prediction.
5186 * config/rs6000/rs6000.md: Use output_cbranch for
5187 conditional branches and returns.
5189 2000-05-04 Jason Merrill <jason@casey.cygnus.com>
5191 * simplify-rtx.c (simplify_ternary_operation): Cast to unsigned.
5192 * stor-layout.c (place_field): Likewise.
5193 * integrate.h (struct inline_remap): Make regno_pointer_align unsigned.
5194 * expr.c (store_expr): Make align unsigned.
5195 * explow.c (plus_constant_wide): Make low words unsigned.
5196 * expmed.c (choose_multiplier): Likewise.
5197 * fold-const.c (fold): Likewise.
5198 * tree.h (build_int_2): Likewise.
5199 * tree.c (build_int_2_wide, tree_int_cst_msb): Likewise.
5200 * emit-rtl.c (gen_reg_rtx): Add cast to unsigned char*.
5201 (init_emit): Change cast to unsigned char*.
5202 * varasm.c (compare_constant_1): Add cast to char*.
5203 * gcse.c (delete_null_pointer_checks): Change cast to unsigned int*.
5204 * reload1.c (reload): Likewise.
5206 * rtl.h (MEM_SET_IN_STRUCT_P): Use do { } while (0).
5208 Thu May 4 14:37:23 2000 Jeffrey A Law (law@cygnus.com)
5210 * predict.c (estimate_probability): If no prediction was found, then
5211 predict the successor that is the next physical block (if such a
5214 2000-05-04 Richard Henderson <rth@cygnus.com>
5216 * config/alpha/t-alpha (LIB2FUNCS_EXTRA): Use qrrnd.asm in place.
5218 2000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5220 * system.h: Don't wrap <sys/types.h> with HAVE_SYS_TYPES_H.
5222 2000-05-04 Mumit Khan <khan@xraylith.wisc.edu>
5224 * i386/cygwin.h (CPP_PREDEFINES): Don't define __STDC__. Move
5225 attribute macros from here ...
5226 (CPP_SPEC): to here.
5227 * i386/mingw32.h (CPP_PREDEFINES): Likewise.
5228 (CPP_SPEC): Likewise.
5229 * i386/crtdll.h (CPP_PREDEFINES): Delete attribute macros.
5231 * Makefile.in ($(HOST_PREFIX_1)gensupport.o): Add build rule.
5232 (libgcc.a): Pass LIB1ASMSRC to libgcc.mk.
5234 2000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5236 * bb-reorder.c (get_next_bb_note, get_prev_bb_note): Prototype.
5238 * diagnostic (vbuild_message_string, build_message_string,
5239 build_location_prefix, output_get_prefix, init_output_buffer,
5240 output_notice, vline_wrapper_message_with_location,
5241 v_message_with_decl, default_print_error_function): De-constify.
5242 (set_real_maximum_length): Prototype.
5244 * diagnostic.h (struct output_buffer, init_output_buffer,
5245 output_get_prefix, output_set_prefix): De-constify.
5247 * function.c (init_function_start): Constify.
5249 * gensupport.c (remove_constraints, process_rtx): Prototype.
5251 * gthr-posix.h: Indent uses of #pragma.
5253 * objc/objc-act.c (ggc_mark_imp_list, ggc_mark_hash_table):
5256 * predict.c (find_expected_value): Delete prototype.
5257 (expected_value_to_br_prob): Initialize variable `ev_reg'.
5259 * sbitmap.h (debug_sbitmap): Prototype.
5261 * ssa.c (compute_coalesced_reg_partition): Prototype.
5263 * stor-layout.c (debug_rli): Prototype.
5265 * tree.h (round_down): Prototype.
5266 (init_function_start): Constify.
5268 2000-05-04 Zack Weinberg <zack@wolery.cumb.org>
5270 * cpphash.h: #define __extension__ away if GCC_VERSION < 2095
5271 (overly conservative). Change extern inline wrappers to
5272 static inline, define them always, use PARAMS properly.
5273 * cpplex.c (_cpp_get_directive_token): Don't issue pedantic
5274 whitespace warnings for \f and \v at the beginning of a line.
5276 Thu May 4 10:03:50 2000 Jeffrey A Law (law@cygnus.com)
5278 * haifa-sched.c (schedule_insns): Free the flow edge list when it
5281 2000-05-04 Bruce Korb <bkorb@gnu.org>
5283 * fixincl/inclhack.def: added broken_cabs -
5284 Remove `extern double cabs' declarations from math.h
5285 * fixincl/inclhack.sh: regen
5286 * fixincl/fixincl.x: regen
5287 * fixincl/fixincl.c: Remove BOGOSITY code
5288 * fixincl/mkfixinc.sh: Remove code for installing "shell" version
5290 Thu May 4 09:45:12 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5292 * rtl.h (MEM_COPY_ATTRIBUTES): Also copy RTX_UNCHANGING_P and
5294 * alias.c (canon_rtx): Don't copy RTX_UNCHANGING_P or MEM_ALIAS_SET
5295 when calling MEM_COPY_ATTRIBUTES.
5296 * emit-rtl.c (operand_subword, change_address): Likewise.
5297 * explow.c (stabilize): Likewise.
5298 * expr.c (protect_from_queue, emit_move_insn_1): Likewise.
5299 * integrate.c (copy_rtx_and_substitute): Likewise.
5300 * combine.c (combine_simplify_rtx): Don't copy RTX_UNCHANGING_P
5301 when calling MEM_COPY_ATTRIBUTES.
5302 (make_extraction, simplify_shift_const, gen_lowpart_for_combine):
5304 * cse.c (gen_lowpart_if_possible): Likewise.
5305 * function.c (fixup_var_refs_1, purge_addressof_1): Likewise.
5306 * optabs.c (gen_move_insn): Likewise.
5307 * recog.c (validate_replace_rtx_1): Likewise.
5308 * simplify-rtx.c (add_mem_for_addr): Likewise.
5309 * stmt.c (expand_anon_union_decl): Likewise.
5310 * config/arm/arm.md: Likewise.
5311 * config/h8300/h7300.c (fix_bit_operand): Likewise.
5312 * config/m88k/m88k.c (legitimize_address, block_move_loop): Likewise.
5313 (block_move_no_loop, block_move_sequence): Likewise.
5314 * config/rs6000/rs6000.c (expand_block_move_mem): Likewise.
5315 * config/alpha/alpha.c (get_aligned_mem): Likewise.
5316 Clear MEM_ALIAS_SET.
5317 * final.c (alter_subreg): Don't copy MEM_ALIAS_SET when calling
5318 MEM_COPY_ATTRIBUTES.
5320 2000-05-03 Robert Lipe <robertlipe@usa.net>
5322 * configure.in (i[34567]86-*-isc*) [tmake_file]: Add t-i386bare
5323 to suppress libgcc1.
5324 (i[34567]86-*-sco3.2v5*) Likewise.
5325 (i[34567]86-*-sco3.2v4*) Likewise.
5326 (i[34567]86-*-sco) Likewise.
5327 (i[34567]86-*-solaris2) Likewise.
5328 (i[34567]86-*-sysv5*) Likewise.
5329 (i[34567]86-*-sysv4*) Likewise.
5330 (i[34567]86-*-udk*) Likewise.
5331 (i[34567]86-*-sysv*) Likewise.
5333 2000-05-03 Zack Weinberg <zack@wolery.cumb.org>
5335 * cpphash.h (U): New define, to correct type of string constants.
5336 (ustrcmp, ustrncmp, ustrlen, uxstrdup, ustrchr): New wrapper
5337 routines, to do casts when passing unsigned strings to libc.
5338 * cppexp.c, cppfiles.c, cpphash.c, cppinit.c, cpplib.c: Use them.
5340 * cppfiles.c (_cpp_execute_include): Make filename an U_CHAR *.
5341 * cpphash.c (_cpp_quote_string): Make string an U_CHAR *.
5342 * cppinit.c (dump_special_to_buffer): Make macro name an U_CHAR *.
5343 * cpplex.c (parse_ifdef, parse_include, validate_else): Make
5344 second argument an U_CHAR *.
5346 * cppinit.c (builtin_array): Make name and value U_CHAR *, add
5347 length field, clean up initializer.
5348 (ISTABLE): Add __extension__ to designated-
5349 initializers version.
5350 * cpplex.c (CHARTAB): Likewise.
5352 * mbchar.c: Add dummy external declaration to the !MULTIBYTE_CHARS
5353 case so the file won't be empty.
5355 Wed May 3 21:01:46 2000 Jason Eckhardt <jle@cygnus.com>
5357 * bb-reorder.c (struct reorder_block_def): Member succ removed.
5358 (REORDER_BLOCK_SUCC): Removed.
5359 (enum reorder_skip_type): Removed.
5360 (skip_insns_between_block): Renamed to skip_insns_after_block.
5361 Removed second argument. Removed dead code and cleaned up.
5362 (make_reorder_chain): Removed use of REORDER_BLOCK_SUCC.
5363 (reorder_basic_blocks): Remove use of REORDER_SKIP_AFTER. Removed
5364 second parameter to skip_insns_after_block.
5366 Wed May 3 13:29:54 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5368 * tree.c (staticp, case LABEL_DECL): New case.
5370 2000-05-03 Richard Henderson <rth@cygnus.com>
5372 * Makefile.in (start.encap): Do not depend on LIBGCC1.
5374 * mklibgcc1.in: Fix typo last change.
5376 2000-05-03 Jason Merrill <jason@casey.cygnus.com>
5378 * Makefile.in (WARN_CFLAGS): Add -pedantic -Wno-long-long.
5379 (LOOSE_CFLAGS): New: CFLAGS without -pedantic and -Wtraditional.
5380 (GCC_CFLAGS): Use it.
5381 (LANG_FLAGS_TO_PASS): New: SUBDIR_FLAGS_TO_PASS with LOOSE_CFLAGS.
5382 * cp/Make-lang.in, java/Make-lang.in, f/Make-lang.in, ch/Make-lang.in,
5383 objc/Make-lang.in: Use it.
5385 2000-05-03 Jason R Thorpe <thorpej@zembu.com>
5387 * config/i386/i386.md (lshrqi2_cmpno): Use q not r in constraint.
5389 2000-05-03 Richard Henderson <rth@cygnus.com>
5391 * mklibgcc.in: Restrict OLDCC=GCC test to native. Equate
5392 LIBGCC1 empty with libgcc1.null.
5394 Wed May 3 12:55:46 2000 Jim Wilson <wilson@cygnus.com>
5396 * fold-const.c (extract_muldiv, case MAX_EXPR): Don't allow signedness
5399 2000-05-03 Greg McGary <gkm@gnu.org>
5401 * tree.h (tree_common): Add bounded_flag member. Remove
5402 inaccurate comment about number of remaining bits.
5403 (BOUNDED_INDIRECT_TYPE_P, BOUNDED_POINTER_TYPE_P,
5404 BOUNDED_REFERENCE_TYPE_P, MAYBE_BOUNDED_INDIRECT_TYPE_P,
5405 MAYBE_BOUNDED_POINTER_TYPE_P, MAYBE_BOUNDED_REFERENCE_TYPE_P,
5406 TREE_BOUNDED, TYPE_MAIN_VARIANTS_PHYSICALLY_EQUAL_P,
5407 TYPE_MAIN_PHYSICAL_VARIANT, TYPE_BOUNDED): New macros.
5408 (TYPE_QUAL_BOUNDED): New constant.
5409 (TYPE_QUALS): Handle bounded qualifier.
5410 (TREE_EXPR_QUALS, TREE_FUNC_QUALS): New macros.
5411 (TYPE_BOUNDED_VALUE, TYPE_BOUNDED_BASE, TYPE_BOUNDED_EXTENT,
5412 TYPE_BOUNDED_SUBTYPE, TYPE_UNBOUNDED_VARIANT, TYPE_POINTER_DEPTH,
5413 TYPE_AMBIENT_BOUNDEDNESS): New macros.
5414 (MAX_POINTER_DEPTH, VA_LIST_POINTER_DEPTH): New constants.
5415 (tree_type): Add pointer_depth member. Remove
5416 inaccurate comment about number of remaining bits.
5417 (DECL_POINTER_DEPTH): Add macro.
5418 (tree_decl): Add pointer_depth member.
5420 Wed May 3 22:52:53 2000 Denis Chertykov <denisc@overta.ru>
5422 * config/avr/avr-protos.h (test_hard_reg_class): Declared.
5423 * config/avr/avr.c (ashrhi3_out): optimized shift by 15.
5424 (lshrhi3_out): Likewise.
5425 (ashrsi3_out): bugfix in shift by 8.
5426 (test_hard_reg_class): New function.
5427 * config/avr/avr.md: Bugfix inside conditions in peepholes.
5428 (ashlhi3): removed define_expand of this pattern.
5429 (*ashlhi3_insn): renamed to ashlhi3.
5430 (ashlsi3): removed define_expand of this pattern.
5431 (*ashlsi3_insn): renamed to ashlsi3.
5432 (ashrqi3): removed define_expand of this pattern.
5433 (*ashrqi3_insn): renamed to ashrqi3.
5434 (ashrhi3): removed define_expand of this pattern.
5435 (*ashrhi3_insn): renamed to ashrhi3.
5436 (ashrsi3): removed define_expand of this pattern.
5437 (*ashrsi3_insn): renamed to ashrsi3.
5438 (lshrhi3): removed define_expand of this pattern.
5439 (*lshrhi3_insn): renamed to lshrhi3.
5440 (lshrsi3): removed define_expand of this pattern.
5441 (*lshrsi3_insn): renamed to lshrsi3.
5443 2000-05-03 Rodney Brown <RodneyBrown@pmsc.com>
5445 * config/mcore/mcore.c: Replacing inclusion of "stdio,h" with
5446 inclusion of "system.h".
5448 Wed May 3 11:43:53 2000 Jim Wilson <wilson@cygnus.com>
5450 * config/ia64/ia64.c (ia64_encode_section_info): Add check for
5453 2000-05-03 David Mosberger <davidm@hpl.hp.com>
5455 * config/ia64/ia64.c (ia64_override_options): Force -mconstant-gp
5456 if -mauto-pic is on.
5457 (ia64_epilogue_uses): Mark "gp" (r1) as used by the epilogue if
5458 -mconstant-gp is in effect and function-descriptors are being used
5459 to make indirect calls.
5460 * config/ia64/ia64.h (MASK_CONST_GP): New macro.
5461 (MASK_AUTO_PIC): Ditto.
5462 (TARGET_CONST_GP): Ditto.
5463 (TARGET_AUTO_PIC): Ditto.
5464 (TARGET_SWITCHES): Add -mconstant-gp and -mauto-pic options.
5465 (ASM_OUTPUT_DOUBLE_INT): Don't generate @fptr() if -mauto-pic or
5466 -mno-pic is in effect.
5467 (ASM_OUTPUT_XDATA_DOUBLE_INT): Ditto.
5468 * config/ia64/ia64.md (movdi): Use gen_load_gprel64() if
5469 -mauto-pic is in effect.
5470 (gprel64_offset): New pattern.
5471 (load_gprel64): Ditto.
5472 (call): Handle -mauto-pic like -mno-pic (don't use fptr). If
5473 -mconstant-gp is in effect, no need to preserve gp around direct
5475 (call_value): Ditto.
5476 * config/ia64/linux.h (PROFILE_BEFORE_PROLOGUE): Define.
5477 (FUNCTION_PROFILER): Define.
5478 * config/ia64/sysv4.h (ASM_OUTPUT_CONSTRUCTOR): Don't generate
5479 @fptr() directive when -mno-pic or -mauto-pic is in effect.
5480 (ASM_OUTPUT_DESTRUCTOR): Ditto.
5482 2000-05-03 Richard Henderson <rth@cygnus.com>
5484 * Makefile.in (STAGESTUFF): Add libgcc libgcc.mk.
5485 (libgcc1.null, libgcc1.cross, libgcc1.a): Remove targets.
5486 (libgcc1-asm.a, libgcc1.S, libgcc2.a): Remove targets.
5487 (mklibgcc, libgcc.mk): New targets.
5488 (libgcc.a): Use libgcc.mk.
5489 (stmp-multilib): Likewise.
5490 (stmp-multilib-sub): Remove.
5491 (mostlyclean): Don't delete libgcc2 temp files.
5492 * configure.in (AC_PROG_CC_C_O): Add.
5493 (NO_MINUS_C_MINUS_O): Substitute it.
5494 (all_outputs): Add mklibgcc.
5495 * mklibgcc.in: New file.
5497 2000-05-03 Jason Merrill <jason@casey.cygnus.com>
5499 * cppexp.c (op_t): Make an int.
5501 * rtlanal.c (dead_or_set_regno_p): Remove unused variable.
5503 * varasm.c (initializer_constant_valid_p): Fix parenthesis.
5505 * gensupport.c (process_rtx): Fix macros used.
5507 2000-05-03 Richard Henderson <rth@cygnus.com>
5509 * flow.c (propagate_one_insn): Also don't PROP_REG_INFO for
5510 call-clobbered registers of a call.
5512 Wed May 3 12:40:53 2000 Clinton Popetz <cpopetz@cygnus.com>
5514 * gensupport.c: New file.
5515 * gensupport.h: New file.
5516 * Makefile.in (HOST_RTL): Depend on gensupport.
5517 (gensupport.o) New rule.
5518 * genattr.c: Use gensupport for reading .md files.
5519 * genattrtab.c: Ditto.
5520 * gencodes.c: Ditto.
5521 * genconfig.c: Ditto.
5523 * genextract.c: Ditto.
5524 * genflags.c: Ditto.
5525 * genopinit.c: Ditto.
5526 * genoutput.c: Ditto.
5528 * genrecog.c: Ditto.
5529 * rtl.def (define_insn_and_split): New DEF_RTL_EXPR.
5530 * md.texi (Insn Splitting): Document define_insn_and_split.
5532 Tue May 2 00:20:30 2000 Jason Eckhardt <jle@cygnus.com>
5534 * flow.c (verify_flow_info): Added two more sanity checks. The
5535 first checks that the blocks are numbered consecutively. The second
5536 checks that n_basic_blocks is actually equal to the number of
5537 basic blocks in the insn chain.
5539 2000-05-03 Zack Weinberg <zack@wolery.cumb.org>
5541 * cpplib.h: Add accessor macros for token lists.
5542 * cpplib.c, cpphash.c, cpplex.c: Use them.
5544 Wed May 3 09:29:17 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5546 * expr.c (expand_expr, case COMPONENT_REF): Don't check for checking
5547 memory usage if not in a function.
5548 * varasm.c (initializer_constant_valid_p, case ADDR_EXPR): Only
5549 return address if static.
5551 Wed May 3 13:14:49 MET DST 2000 Jan Hubicka <jh@suse.cz>
5553 * ifcvt.c (noce_try_cmove_arith): Use may_trap_p to thest
5554 whether address may trap.
5556 Tue May 2 23:38:37 2000 Jason Eckhardt <jle@cygnus.com>
5558 * bb-reorder (chain_reorder_blocks): Changed code to test for
5559 EDGE_FALLTHRU rather than making erroneous assumption that the
5560 first outgoing edge is the fall-through edge.
5562 Tue May 2 18:20:31 2000 Donald Lindsay <dlindsay@hound.cygnus.com>
5564 * config/mips/mips.c (mips_build_va_list,mips_va_start,mips_va_arg): new
5565 ABI for varargs, across all MIPS. This is incompatible because the
5566 va_list (__builtin_va_list) structure is different, so a compilation
5567 unit passing a va_list and a compilation unit being passed one, should
5568 both be compiled with the same ABI. (The old structure had two
5569 pointers, now it has three.)
5571 Tue May 2 19:18:43 2000 Jason Eckhardt <jle@cygnus.com>
5573 * bb-reorder.c (struct reorder_block_def): Remove members end,
5574 block_begin, and block_end.
5575 (REORDER_BLOCK_OLD_END): Delete.
5576 (REORDER_BLOCK_BEGIN): Delete.
5577 (REORDER_BLOCK_END): Delete.
5578 (chain_reorder_blocks): Remove dead code.
5580 Tue May 2 17:06:53 2000 Jason Eckhardt <jle@cygnus.com>
5582 * bb-reorder.c (remove_scope_notes): Check for both types of scope
5583 notes as the end of a basic block before deleting.
5585 2000-05-02 Mumit Khan <khan@xraylith.wisc.edu>
5587 * final.c (final_start_function): Fix spelling of "necessary".
5589 2000-05-02 Jason Merrill <jason@casey.cygnus.com>
5591 * toplev.c (debug_ignore_block): Return int.
5592 * dwarf2out.c (dwarf2out_ignore_block): Likewise.
5593 * toplev.h, dwarf2out.h: Adjust.
5594 * emit-rtl.c (remove_unnecessary_notes): Test return value.
5596 * emit-rtl.c (remove_unnecessary_notes): Fix spelling of "necessary".
5597 * toplev.c, final.c, rtl.h: Adjust.
5599 2000-05-02 Zack Weinberg <zack@wolery.cumb.org>
5601 * aclocal.m4 (gcc_AC_CHECK_PROG_VER): New macro.
5602 * configure.in: Look for makeinfo in the unified tree, then
5603 for a system makeinfo which is sufficiently new.
5604 * Makefile.in: If configure says makeinfo is too old, don't
5605 build or install Info documentation.
5607 2000-05-02 Zack Weinberg <zack@wolery.cumb.org>
5609 * cpphash.c (collect_params): Fix off-by-one error.
5610 (dump_hash_helper): Dump all four macro nodetypes.
5612 2000-05-02 Jakub Jelinek <jakub@redhat.com>
5614 * cpphash.c (trad_stringify): Adjust p after stringification as
5617 2000-05-02 Zack Weinberg <zack@wolery.cumb.org>
5619 * cpplib.h (CPP_POP, parse_cleanup_t): Delete.
5620 (cpp_buffer): Remove cleanup, seen_eof, manual_pop members.
5622 * cppfiles.c (file_cleanup): Delete.
5623 * cpphash.c (macro_cleanup): Delete.
5624 (collect_objlike_expansion, collect_funlike_expansion,
5625 macarg, scan_arguments): Remove CPP_POP case.
5627 * cpplex.c (null_cleanup): Delete.
5628 (cpp_pop_buffer): Do the work that was done in the cleanups
5629 here. Call _cpp_unwind_if_stack from here.
5630 (_cpp_expand_to_buffer, cpp_scan_buffer_nooutput,
5631 cpp_scan_buffer): Run until we see CPP_EOF and the top of
5632 stack is the buffer _below_ the one we stacked.
5633 (cpp_get_token): Always pop an exhausted buffer. Return
5634 CPP_EOF unless it's a macro buffer. Don't call _cpp_handle_eof.
5635 * cpplib.c (skip_if_group): Don't call cpp_get_token to
5636 increment the line number.
5637 (_cpp_handle_eof): Rename to _cpp_unwind_if_stack.
5639 * fix-header.c (read_scan_file) [parsing getchar()]: Run until
5640 we see CPP_EOF and the top of stack is the buffer _below_ the
5642 * scan-decls.c: Likewise.
5644 2000-05-02 Andrew Haley <aph@cygnus.com>
5646 * config/ia64/ia64.c (ia64_encode_section_info): Handle the case
5647 where this function is called for the second time on a decl that
5648 has had its section info changed in such a way as to move it out
5650 * config/ia64/ia64.h (REDO_SECTION_INFO_P): New definition.
5652 2000-05-01 Richard Henderson <rth@cygnus.com>
5654 * ifcvt.c (dead_or_predicable): Set merge_bb->end to the insn before
5655 the sequence we're moving, not to merge_bb->head.
5657 2000-05-01 Richard Henderson <rth@cygnus.com>
5659 * configure.in (alpha*-*-linux-gnulibc1*) [tmake_file]: Remove
5660 reference to alpha/t-linux.
5661 (alpha*-*-linux-gnu*): Likewise.
5662 * configure: Rebuild.
5664 * calls.c (expand_call): Don't emit reg notes for a sibcall.
5666 * flow.c (calculate_global_regs_live): Skip for_each_successor_phi
5669 * ifcvt.c (if_convert): Only verify_flow_info if ENABLE_CHECKING.
5671 2000-05-01 Jason Merrill <jason@casey.cygnus.com>
5673 * integrate.c (copy_decl_for_inlining): Copy TREE_READONLY and
5676 2000-05-01 Richard Henderson <rth@cygnus.com>
5678 * ifcvt.c (noce_emit_cmove): Conditionally compile call to
5679 emit_conditional_move.
5681 2000-05-01 Jakub Jelinek <jakub@redhat.com>
5683 * config/ia64/linux.h (LINK_SPEC): Use /lib/ld-linux-ia64.so.1
5684 as the dynamic linker.
5686 2000-05-01 Zack Weinberg <zack@wolery.cumb.org>
5688 * cppfiles.c (open_include_file): Open file in blocking mode.
5689 (read_include_file): Don't fcntl(fd, F_SETFL, 0) anymore.
5690 Only exclude block devices and directories.
5692 * cpphash.c (_cpp_make_hashnode): Rename make_HASHNODE, now
5693 static. Allocate the hashnode and its string in the same
5695 (del_HASHNODE): Don't free h->name.
5696 (_cpp_lookup): If there is no entry for this string, create
5697 one, of type T_VOID.
5698 (_cpp_lookup_slot): Delete.
5699 * cpphash.h: Update prototypes.
5701 * cpplex.c (maybe_macroexpand): Check for hp->type == T_VOID,
5703 * cpplib.c (do_define, do_undef, do_pragma_poison, do_assert,
5704 do_unassert, cpp_defined): Use _cpp_lookup. Don't create a
5705 node here, just fill in the value field properly. "Delete"
5706 entries by setting the value field to T_VOID. Check for
5707 hp->type == T_VOID, not hp == NULL.
5709 * Makefile.in (cpplib.o): Don't depend on $(HASHTAB_H).
5710 * cpperror.c, cppexp.c, cpplex.c, cpplib.c: Don't include
5713 2000-05-01 Alexandre Oliva <aoliva@cygnus.com>
5715 * config/mn10300/mn10300.c (print_operand_address): Do not add
5718 * config/mn10300/mn10300.c (expand_epilogue): If SP is to be
5719 adjusted by less than 256 bytes, use ret regardless of having any
5720 callee-saved register to restore.
5722 2000-05-01 Laurynas Biveinis <lauras@softhome.net>
5724 * tm.texi (TARGET_HAS_F_SETFLKW): Fix typo.
5726 2000-05-01 Mark Elbrecht <snowball3@bigfoot.com>
5728 * config/i386/djgpp.h (INT_ASM_OP): Define.
5729 (CPP_PREDEFINES): Rename MSDOS to __MSDOS__.
5730 (ASM_WEAKEN_LABEL): Define.
5731 (MASK_BNU210): Define.
5732 (SUBTARGET_SWITCHES): Define.
5733 (SUPPORTS_WEAK, SUPPORTS_ONE_ONLY): Define.
5734 (MAKE_DECL_ONE_ONLY): Define.
5735 (UNIQUE_SECTION_P, UNIQUE_SECTION): Define.
5737 2000-05-01 Mumit Khan <khan@xraylith.wisc.edu>
5739 * i386/cygwin.h (INT_ASM_OP): Define.
5741 Mon May 1 18:20:06 2000 Denis Chertykov <denisc@overta.ru>
5743 * config/avr/avr.c (address_cost): renamed to avr_address_cost.
5744 * config/avr/avr.h (ADDRESS_COST): use avr_address_cost.
5746 Mon May 1 17:50:44 2000 Denis Chertykov <denisc@overta.ru>
5748 * config/avr/avr.c (asm_file_start): output 0 as r0 and 1 as r1 in
5749 __tmp_reg__ and __zero_reg__ initialization.
5751 2000-04-30 Richard Henderson <rth@cygnus.com>
5753 * flow.c (propagate_one_insn): Mark sets even when the insn is dead.
5755 * ifcvt.c (noce_process_if_block): Fail the conversion if X is
5756 referenced bewteen the condition and the jump. Don't delete
5757 anything but the jump.
5759 Sun Apr 30 22:48:24 2000 Jason Eckhardt <jle@cygnus.com>
5761 * bb-reorder.c (scope_def): New struct.
5762 (scope_forest_info): New struct.
5763 (struct reorder_block_def): New member "scope".
5764 (REORDER_BLOCK_SCOPE): New macro.
5765 (relate_bbs_with_scopes): New function and prototype.
5766 (make_new_scope): Likewise.
5767 (build_scope_forest): Likewise.
5768 (remove_scope_notes): Likewise.
5769 (insert_intra_1): Likewise.
5770 (insert_intra_bb_scope_notes): Likewise.
5771 (insert_inter_bb_scope_notes): Likewise.
5772 (rebuild_scope_notes): Likewise.
5773 (free_scope_forest_1): Likewise.
5774 (free_scope_forest): Likewise.
5775 (dump_scope_forest): Likewise.
5776 (dump_scope_forest_1): Likewise.
5777 (chain_reorder_blocks): Set REORDER_BLOCK_SCOPE for new block.
5778 Update REORDER_BLOCK_EFF_HEAD and REORDER_BLOCK_EFF_END for new
5780 (reorder_basic_blocks): Added calls to build_scope_scope_forest
5781 and remove_scope_notes before reordering is done. Added calls to
5782 rebuild_scope_notes, free_scope_forest, and reorder_blocks after
5783 after reordering is done.
5785 2000-40-30 Bruce Korb <bkorb@gnu.org>
5787 * fixinc/inclhack.def: Added definitions needed by OSR5,
5788 removed two stale entries (defined away with OLD_CPP).
5789 * fixinc/inclhack.sh: regen
5790 * fixinc/fixincl.x: regen
5792 2000-04-30 Richard Henderson <rth@cygnus.com>
5794 * ifcvt.c (dead_or_predicable): Manually squeeze non-movable notes
5795 from the last insn in the sequence.
5797 2000-04-30 Zack Weinberg <zack@wolery.cumb.org>
5799 * cpplex.c (cpp_idcmp): New function.
5800 * cpplib.h: Prototype it.
5801 * scan_decls.c (scan_decls): Use it to inspect token names.
5802 * fix-header.c (read_scan_file): Likewise. Set system_header_p on
5803 the file being run through the preprocessor.
5804 (check_macro_names): Provide length of token to cpp_defined.
5806 * Makefile.in: Remove stale warning message.
5808 * cppfiles.c (redundant_include_p): Provide length of token to
5810 * cpphash.c (_cpp_make_hashnode, _cpp_lookup_slot): Hash
5811 values are unsigned int.
5812 (_cpp_lookup, _cpp_lookup_slot): Do not calculate the length.
5813 (_cpp_lookup_slot): Do not calculate the hash, either.
5814 * cpphash.h: Update prototypes.
5815 * cpplib.c (do_define, do_undef, do_pragma_poison, do_assert):
5816 Hashes are unsigned int. Calculate hash here, pass by value
5817 to _cpp_lookup_slot.
5819 2000-04-30 Bernd Schmidt <bernds@cygnus.co.uk>
5821 * simplify-rtx.c (check_value_useless): Delete function.
5822 (discard_useless_locs): Don't call it; manage N_USELES_VALUES counter
5824 (cselib_invalidate_regno): Likewise.
5825 (cselib_invalidate_mem_1): Likewise.
5826 (references_value_p): Recognize useless values by the fact that they
5828 (discard_useless_values): Likewise.
5829 (cselib_record_set): This may turn a useless value
5832 2000-04-30 Richard Henderson <rth@cygnus.com>
5834 * config/d30v: New port.
5836 * configure.in (d30v-*): Set fp format.
5837 * configure: Rebuild.
5839 2000-04-30 Richard Henderson <rth@cygnus.com>
5841 * ifcvt.c: New file.
5842 * Makefile.in (OBJS): Add it.
5843 (ifcvt.o): New target.
5844 * jump.c (jump_optimize_1): Remove all code related to if-conversion,
5845 and conditional arithmetic.
5846 (find_insert_position): Remove.
5847 * timevar.def (TV_IFCVT, TV_IFCVT2): New.
5848 * toplev.c (DFI_ce, DFI_ce2): New.
5849 (dump_file): Add ce and ce2 dumps.
5850 (rest_of_compilation): Run if_convert a couple o times. Set
5851 cse_not_expected after cse2. Don't set no_new_pseudos until
5852 after sched1 or recompute_reg_usage.
5854 2000-04-30 Richard Henderson <rth@cygnus.com>
5856 * config/alpha/t-crtbe (crtbegin.o): Add "-I.".
5857 (crtend.o, crtbeginS.o, crtendS.o): Likewise.
5859 2000-04-30 Richard Henderson <rth@cygnus.com>
5861 * flow.c (struct reg_cond_life_info): New.
5862 (struct propagate_block_info): Add reg_cond_dead and reg_cond_reg.
5863 (init_propagate_block_info): Initialize them.
5864 (free_propagate_block_info): Destruct them.
5865 (mark_set_1): Consider conditional life before killing a register.
5866 (mark_regno_cond_dead): New.
5867 (free_reg_cond_life_info): New.
5868 (flush_reg_cond_reg_1, flush_reg_cond_reg): New.
5869 (ior_reg_cond, not_reg_cond, nand_reg_cond): New.
5870 (mark_used_reg): Record conditional life.
5872 * haifa-sched.c (schedule_insns): Disable death counting
5873 sanity check for HAVE_conditional_execution.
5875 2000-04-30 Richard Henderson <rth@cygnus.com>
5877 * Makefile.in (TIMEVAR_H): New.
5878 (ggc-simple.o, ggc-page.o, toplev.o, timevar.o): Use it.
5879 (timevar.h): Remove rule.
5881 2000-04-29 Richard Henderson <rth@cygnus.com>
5883 * config/alpha/crtend.asm: Use C comments instead of #.
5884 * config/alpha/crtbegin.asm: Likewise. Mark __dso_handle hidden.
5886 * config/alpha/elf.h (SELECT_SECTION): Treat CONSTRUCTOR like VAR_DECL.
5888 2000-04-29 Zack Weinberg <zack@wolery.cumb.org>
5890 * cpphash.h (enum node_type: Take out T_MCONST.
5891 (union hashval): Move into struct hashnode.
5892 (struct hashnode): Pack tighter. Remove file, line, col
5894 * cpphash.c: Constify most of the macro-definition structures.
5895 (struct definition): Replace by struct object_defn
5896 and struct funct_defn. Put file, line, column information
5897 here. All users updated to match.
5898 (_cpp_create_definition, _cpp_macroexpand): Remove special
5899 case for #define WORD OTHERWORD.
5900 * cpplib.c (do_undef): Remove T_MCONST case.
5902 * cpphash.h: Move struct reflist, struct definition, and the
5903 DEFINITION typedef to cpphash.c. Use 'struct definition *' in
5904 union hashval. _cpp_free_definition takes a HASHNODE pointer.
5905 * cpphash.c (_cpp_free_definition): Free data pointed to by
5906 MCONST, XCONST, MACRO, and FMACRO nodes properly.
5907 (_cpp_create_definition, del_HASHNODE): Just call
5908 _cpp_free_definition to clear out a hashnode.
5909 * cpplib.c (do_pragma_poison): Likewise.
5911 Sat Apr 29 12:25:17 2000 Alexandre Oliva <aoliva@cygnus.com>
5913 * config/mn10300/mn10300.h (FIRST_DATA_REGNUM,
5914 LAST_DATA_REGNUM, FIRST_ADDRESS_REGNUM, LAST_ADDRESS_REGNUM,
5915 FIRST_EXTENDED_REGNUM, LAST_EXTENDED_REGNUM): New macros.
5916 (REGNO_SP_P): Redefine in terms of STACK_POINTER_REGNUM.
5917 (REGNO_DATA_P, REGNO_ADDRESS_P, REGNO_EXTENDED_P,
5918 REGNO_AM33_P): Redefine in terms of the new macros.
5919 (CONDITIONAL_REGISTER_USAGE, REGNO_REG_CLASS): Likewise.
5920 (FUNCTION_VALUE, LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P,
5921 STRUCT_VALUE): Likewise.
5922 (STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM,
5923 ARG_POINTER_REGNUM, STATIC_CHAIN_REGNUM): Likewise. Moved.
5925 Sat Apr 29 01:18:45 MET DST 2000 Jan Hubicka <jh@suse.cz>
5927 * regmove.c (struct record_stack_memrefs_data): New.
5928 (record_stack_memrefs): New function.
5929 (combine_stack_adjustments_for_block): Use it.
5931 Sat Apr 29 01:15:27 MET DST 2000 Jan Hubicka <jh@suse.cz>
5933 * calls.c (calls_function_1): Propertly handle TREE_LIST expressions;
5934 use special_function_p to detect alloca.
5936 Fri Apr 28 16:30:33 2000 Marc Espie <espie@cvs.openbsd.org>
5938 * gcc.texi: Fixes for makeinfo 4.0 --html.
5940 2000-04-28 Zack Weinberg <zack@wolery.cumb.org>
5942 * pcp.h: Delete file.
5944 2000-04-28 Kazu Hirata <kazu@hxi.com>
5946 * h8300.c (function_epilogue): Clean up flags when the last insn
5947 in a function is a barrier.
5949 2000-04-28 Chris Demetriou <cgd@sibyte.com>
5951 * configure.in (sparc-hal-solaris2*): protect [] glob from
5953 (mips*-*-ecoff*, mips*-*-elf*, mips*-*-*): use MASK_ defines
5954 rather than hard-coded constants in target_cpu_default2.
5955 * configure: Regenerate.
5957 2000-04-28 Jason Merrill <jason@casey.cygnus.com>
5959 * tree.c (get_callee_fndecl): Extract the initial value from
5962 2000-04-28 Richard Henderson <rth@cygnus.com>
5964 * varasm.c (record_constant_1): Record the CODE_LABEL when
5965 taking the address of a LABEL_REF.
5967 2000-04-28 Richard Henderson <rth@cygnus.com>
5968 Jan Hubicka <jh@suse.cz>
5970 * calls.c (combine_pending_stack_adjustment_and_call): Return the
5971 adjustment; don't do the stack adjust.
5972 (expand_call): Call compute_argument_block_size right before
5973 allocating the block; update comment; don't do alignment sanity
5974 checking for sibling call; use args_size instead of
5975 unadjusted_args_size before args_size is adjusted. Use
5976 combine_pending_stack_adjustment_and_call to compute stack adjust
5977 for must_preallocate case.
5979 * expr.c (push_block): Remove shadow `temp' in inner scope.
5981 2000-04-28 Jason Merrill <jason@casey.cygnus.com>
5983 * toplev.c (rest_of_compilation): Call
5984 note_deferral_of_defined_inline_function even if the function
5987 2000-04-28 Scott Bambrough <scottb@netwinder.org>
5989 * cpplex.c (_cpp_scan_line): Fix buffer overwrite.
5991 2000-04-28 Richard Henderson <rth@cygnus.com>
5993 * toplev.c (rest_of_type_compilation): Fix sdb TIMEVAR typo.
5995 2000-04-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5997 * timevar.c (init_timevar): DeANSIfy function definition.
5999 2000-04-27 Alex Samuel <samuel@codesourcery.com>
6001 * Makefile.in (timevar.o): Depend on flags.h.
6002 * timevar.c (unused_stack_instances): New variable.
6003 (timevar_push): Take a timevar_stack_def from
6004 unused_stack_instances if available.
6005 (timevar_pop): Push the popped timevar_stack_def onto
6006 unused_stack_instances.
6007 (TIMEVAR_ENABLE): New macro.
6008 (timevar_def): Make standalone a 1-bit field. Add field used.
6009 (get_time): Rename parameter to now. Return after clearing it if
6011 (init_timevar): Do nothing if not TIMEVAR_ENABLE.
6012 (timevar_pop): Likewise.
6013 (timevar_stop): Likewise.
6014 (timevar_push): Likewise. Mark the timing variable as used.
6015 (timevar_start): Likewise.
6016 (timevar_print): Do nothing if not TIMEVAR_ENABLE. Don't print
6017 timevars that were never used.
6019 2000-04-27 Mark Mitchell <mark@codesourcery.com>
6021 * c-common.c (c_apply_type_quals_to_decl): REFERENCE_TYPES are
6022 always TREE_READONLY.
6024 2000-04-27 Ulrich Drepper <drepper@cygnus.com>
6026 * i386.h (FUNCTION_BLOCK_PROFILER_EXIT): Generate mem reference
6027 for call instruction with mode QImode.
6029 2000-04-27 Alex Samuel <samuel@codesourcery.com>
6031 * Makefile.in (OBJS): Add timevar.o.
6032 (toplev.o): Depend on timevar.h.
6033 (ggc-simple.o): Likewise.
6034 (ggc-page.o): Likewise.
6035 (timevar.o): New rule.
6036 (timevar.h): New rule.
6038 * timevar.h: New file.
6039 * timevar.c: Likewise.
6040 * timevar.def: Likewise.
6042 * toplev.h (gc_time, parse_time, varconst_time): Remove.
6043 * toplev.c: Use timevar_push and timevar_pop instead of TIMEVAR
6045 (TIMEVAR): Remove macro.
6046 (gc_time, parse_time, varconst_time, integration_time, jump_time,
6047 cse_time, gcse_time, loop_time, cse2_time, branch_prob_time,
6048 flow_time, combine_time, regmove_time, sched_time,
6049 local_alloc_time, global_alloc_time, flow2_time, peephole2_time,
6050 sched2_time, dbr_sched_time, reorder_blocks_time,
6051 rename_registers_time, shorten_branch_time, stack_reg_time,
6052 to_ssa_time, from_ssa_time, final_time, symout_time, dump_time,
6054 (compile_file): Don't initialize time variables. Call
6055 init_timevar and start TV_TOTAL timer. Call timevar_print instead
6056 of many calls to print_time.
6057 (rest_of_compilation): Add timing for reload_cse_regs.
6058 (get_run_time): Removed to timevar.c.
6059 (print_time): Likewise.
6060 (get_run_time): Implement using TV_TOTAL time variable.
6061 (print_time): Get total run time from get_run_time.
6062 * ggc-page.c (ggc_collect): Push and pop TV_GC instead of
6063 computing elapsed time explicitly.
6064 * ggc-simple.c (ggc_collect): Likewise.
6065 (gc_time): Remove declaration.
6067 2000-04-27 Mark Mitchell <mark@codesourcery.com>
6069 * calls.c (combine_pending_stack_adjustment_and_call): New function.
6070 (expand_call): Use it.
6072 2000-04-27 Jan Hubicka <jh@suse.cz>
6074 * flow.c (mark_set_1): Handle MEMs in ZERO_EXTRACT/SIGN_EXTRACT
6077 Thu Apr 27 12:47:00 2000 Alexandre Oliva <aoliva@cygnus.com>
6079 * config/mn10300/mn10300.md (movhi): Simplify. Prefer data
6082 Thu Apr 27 17:33:05 MET DST 2000 Jan Hubicka <jh@suse.cz>
6084 * function.c (epilogue_done): Pass whole insn to record_insns.
6086 Thu Apr 27 16:55:28 MET DST 2000 Jan Hubicka <jh@suse.cz>
6088 * cse.c (CSE_ADDRESS_COST): Remove.
6089 (find_best_addr): Add new parameter "MODE", use address_cost instead
6091 (address_cost): New.
6092 (fold_rtx): Update call of find_best_addr.
6093 * rtl.h (address_cost): Declare.
6094 * loop.c (general_induction_var): Add new parameter "MODE", use
6095 address_cost instead of ADDRESS_COST
6096 (init_loop): Use address_cost instead of ADDRESS_COST.
6097 (check_insn_for_givs): Update call of general_induction_var.
6098 (find_mem_givs): Likewise.
6099 (consec_sets_giv): Likewise.
6100 * config/i386/i386.h (ADDRESS_COST): Call ix86_address_cost.
6101 * i386.c (ix86_address_cost): New.
6102 * i386-protos.h (ix86_address_cost): Declare.
6104 Thu Apr 27 11:45:16 2000 Alexandre Oliva <aoliva@cygnus.com>
6106 * config/mn10300/mn10300.md (movqi): Simplify. Prefer data
6109 Thu Apr 27 16:11:00 MET DST 2000 Jan Hubicka <jh@suse.cz>
6111 * expr.c (store_expr): Use clear_storage instead of direct memset
6114 Thu Apr 27 10:36:51 2000 Alexandre Oliva <aoliva@cygnus.com>
6116 * config/mn10300/mn10300.c (mn10300_address_cost): Test
6117 ASHIFT, AND and LABEL_REF.
6119 Thu Apr 27 15:08:46 MET DST 2000 Jan Hubicka <jh@suse.cz>
6121 * invoke.texi (-foptimize-sibling-calls): Fix.
6123 Thu Apr 27 14:54:22 MET DST 2000 Jan Hubicka <jh@suse.cz>
6125 * loop.c (load_mems) Don't use hard registers for the hoisting.
6127 * unroll.c (unroll_loop): Avoid overflow in the n_iterations
6128 calculation; rename const_equiv array in the preconditioning code
6129 from loop_unroll to loop_unroll_precondition
6131 2000-04-27 Richard Henderson <rth@cygnus.com>
6133 * flow.c (struct propagate_block_info): Remove new_dead, new_live;
6135 (propagate_one_insn): Clear it. Don't update reg_live here.
6136 (init_propagate_block_info): Update for pbi member changes.
6137 (free_propagate_block_info): Likewise.
6138 (mark_set_1): Know that zero_extract, sign_extract, and
6139 strict_low_part don't kill their argument. Alter hard subregs.
6140 Update new_set for non-CLOBBER sets. Update reg_live.
6141 (find_auto_inc): Update reg_live, not new_dead.
6142 (mark_used_reg): Update reg_live, not new_live. Examine new_set
6143 to determine if the reg in question was set this insn. Only update
6144 reg info with PROP_REG_INFO.
6146 2000-04-26 Richard Henderson <rth@cygnus.com>
6148 * flow.c (allocate_reg_life_data): Set max_regno here ...
6149 (life_analysis): ... not here.
6151 * flow.c (calculate_global_regs_live): Force stack pointer
6154 2000-04-26 Richard Henderson <rth@cygnus.com>
6156 * jump.c (redirect_exp_1): Rework from old redirect_exp. Never
6157 commit change group changes.
6158 (invert_exp_1): Similarly.
6159 (redirect_exp, invert_exp): Use them.
6160 (redirect_jump_1): New.
6161 (invert_jump_1): New.
6162 (jump_optimize_1): Remove code subsumed by condexec.c.
6163 * rtl.h (invert_jump_1, redirect_jump_1): Declare.
6165 2000-04-26 Richard Henderson <rth@cygnus.com>
6167 * rtlanal.c (dead_or_set_regno_p): Use find_regno_note.
6169 * genconfig.c (main): Set all HAVE_foo to 1.
6171 * graph.c (node_data): Use GET_NOTE_INSN_NAME instead of local array.
6173 2000-04-26 Alex Samuel <samuel@codesourcery.com>
6175 * invoke.texi: Document -fssa flag.
6177 2000-04-26 Richard Henderson <rth@cygnus.com>
6179 * flow.c (count_reg_sets_1): Remove.
6180 (count_reg_sets, count_reg_references): Remove.
6181 (recompute_reg_usage): Implement with update_life_info.
6182 Reallocate life data.
6184 2000-04-26 Richard Henderson <rth@cygnus.com>
6186 * flow.c (update_life_info): Consider blocks null to mean the
6188 (calculate_global_regs_live): Likewise.
6189 (life_analysis): Do that instead of collecting all_blocks.
6191 2000-04-26 Richard Henderson <rth@cygnus.com>
6193 * flow.c (tidy_fallthru_edge): Don't delete the jump when it's
6194 a still-valid conditional jump.
6196 2000-04-26 Richard Henderson <rth@cygnus.com>
6198 * jump.c (invert_jump): Always invert REG_BR_PROB. Do it correctly.
6200 * bb-reorder.c (reorder_basic_blocks): Don't run estimate_probability.
6201 * flow.c (calculate_loop_depth): Remove.
6202 * output.h (calculate_loop_depth): Don't declare.
6203 * toplev.c (rest_of_compilation): Expand calculate_loop_depth
6204 inline; run estimate_probability at the same time.
6206 2000-04-26 Neil Booth <NeilB@earthling.net>
6208 * cpplib.h: "~=" is not a single pp-token.
6209 * cpplex.c: Correct commentary.
6211 2000-04-26 Richard Henderson <rth@cygnus.com>
6213 * flow.c (mark_set_1): New arguments code and flags; update all
6214 callers. Track regno_first and regno_last; do HARD_REGNO_NREGS
6215 test in one place. Tidy flags tests. Don't bias REG_N_REFS by
6216 loop_depth when optimizing for size. Do new_dead update after
6217 emitting REG_UNUSED notes. Merge mark_set_reg code.
6218 (mark_set_reg): Remove.
6219 (propagate_one_insn): Use mark_set_1 for call-clobbered registers;
6220 arrange to not emit REG_UNUSED notes.
6222 2000-04-26 Richard Henderson <rth@cygnus.com>
6224 * flow.c (find_auto_inc): Use pbi->bb instead of BLOCK_FOR_INSN.
6225 * ssa.c (convert_from_ssa): Don't run compute_bb_for_insn.
6227 2000-04-26 Richard Henderson <rth@cygnus.com>
6229 * flow.c (propagate_one_insn): Break out from propagate_block.
6230 (init_propagate_block_info): Likewise.
6231 (free_propagate_block_info): Likewise.
6232 (propagate_block): Use them. Export.
6233 * basic-block.h: Declare them all.
6235 2000-04-26 Richard Henderson <rth@cygnus.com>
6237 * basic-block.h (life_analysis): Declare here ...
6238 * output.h: ... not here.
6239 * flow.c (life_analysis): Remove nregs parameter; replace
6240 remove_dead_code with flags. Remove ssa dead code check.
6241 Only init alias analysis if we'll use it.
6242 * reg-stack.c (reg_to_stack): Update life_analysis arguments.
6243 * ssa.c (convert_to_ssa): Likewise.
6244 (convert_from_ssa): Likewise.
6245 * toplev.c (rest_of_compilation): Likewise.
6247 2000-04-26 Richard Henderson <rth@cygnus.com>
6249 * flow.c (flow_delete_block): Rename from delete_block. Export.
6250 * basic-block.h (flow_delete_block): Declare.
6252 2000-04-26 David S. Miller <davem@redhat.com>
6254 * optabs.c (emit_libcall_block): Verify insns with INSN_P before
6255 taking a PATTERN of it.
6257 2000-04-26 <NeilB@earthling.net>
6259 * cpplex.c (spell_other, spell_char): Remove.
6261 (token_spelling, trigraph_map): Use unsigned chars.
6262 (_cpp_lex_line): Tidy up the switch statement.
6263 * cpplib.h: Implement spell_char with spell_string.
6266 2000-04-26 <RodneyBrown@pmsc.com>
6268 * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Warning removal.
6269 * pa/pa64-regs.h (HARD_REGNO_MODE_OK): Warning removal.
6271 2000-04-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6273 * dwarf2out.c (dw_cfi_oprnd_struct, dw_fde_struct, add_fde_cfi,
6274 reg_save, dwarf2out_frame_debug_expr, dwarf2out_def_cfa,
6275 dwarf2out_window_save, dwarf2out_args_size, dwarf2out_reg_save,
6276 dwarf2out_return_save, dwarf2out_return_reg,
6277 dwarf2out_stack_adjust, dwarf2out_frame_debug, primary_filename,
6278 add_AT_lbl_id, add_AT_lbl_offset, type_tag, decl_start_label,
6279 gen_compile_unit_die, dwarf2out_init): Constify a char*.
6281 * dwarf2out.h (dwarf2out_init): Likewise.
6283 * dwarfout.c (filename_entry, primary_filename, last_filename,
6284 type_tag, output_compile_unit_die, dwarfout_init): Likewise.
6286 * tree.h (dwarf2out_def_cfa, dwarf2out_window_save,
6287 dwarf2out_args_size, dwarf2out_reg_save, dwarf2out_return_save,
6288 dwarf2out_return_reg): Likewise.
6290 2000-04-26 Andreas Jaeger <aj@suse.de>
6292 * extend.texi (Function Attributes): Fix description of pure
6295 2000-04-26 Jason Merrill <jason@casey.cygnus.com>
6297 * integrate.c (output_inline_function): Do clear DECL_DEFER_OUTPUT
6298 before calling rest_of_compilation.
6300 2000-04-26 Andreas Jaeger <aj@suse.de>
6302 * config/mips/linux.h: Remove erroneous commit of #if 0/#endif in
6305 2000-04-25 Richard Henderson <rth@cygnus.com>
6307 * cse.c (cse_insn): Emit barrier after unconditional jump.
6309 * calls.c (expand_call): Disable tail call generation once
6310 rtx_equal_function_value_matters is false.
6312 * reg-stack.c (convert_regs_1): Treat EDGE_ABNORMAL_CALL edges
6315 2000-04-25 Jason Merrill <jason@casey.cygnus.com>
6317 * dwarf2out.c (add_bound_info): Don't crash on an unexpanded SAVE_EXPR.
6319 * dwarfout.c (output_decl): Ignore NAMESPACE_DECLs.
6321 * dwarf2out.c (gen_subprogram_die): The class-scope declaration DIE
6322 is the primary DIE for a member function.
6323 (gen_decl_die): Call set_decl_origin_self here.
6324 * dwarfout.c (output_decl): And here.
6325 * integrate.c (output_inline_function): Not here.
6326 Don't clear DECL_INLINE until after calling rest_of_compilation.
6327 (set_decl_origin_self): No longer static.
6328 * tree.h: Add prototype.
6329 * toplev.c (note_deferral_of_defined_inline_function): Only write
6330 out abstract instance for actual inlines.
6332 2000-04-25 Alexandre Oliva <aoliva@cygnus.com>
6334 * config/mn10300/mn10300.h (REG_CLASS_FROM_LETTER): Return
6335 EXTENDED_REGS only if TARGET_AM33.
6336 * config/mn10300/mn10300.md (movsi, addsi): Avoid exposing
6337 SP_REGS to register allocation and reloading unless absolutely
6339 (movsi3): Remove special-case of adding non-constants to SP.
6341 2000-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6343 * aclocal.m4 (gcc_AC_NEED_DECLARATION): This macro now requires
6344 INCLUDES to search and does not provide any of its own. Also it
6345 now accepts optional ACTION-IF-NEEDED and ACTION-IF-NOT-NEEDED
6346 parameters. Also it does not call AC_DEFINE.
6347 (gcc_AC_NEED_DECLARATIONS): Likewise. Also this macro now calls
6348 AC_DEFINE and provides for automatic entries for autoheader.
6349 (gcc_AC_FUNC_PRINTF_PTR): Cleanup C code in test.
6351 * configure.in (gcc_AC_NEED_DECLARATIONS): Save and restore CFLAGS
6352 so we can pass -I flags and include gansidecl.h/system.h in this
6355 * acconfig.h: Delete all NEED_DECLARATION_* entries.
6357 2000-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6359 * acconfig.h (ENABLE_STD_NAMESPACE, ENABLE_CHECKING,
6360 ENABLE_TREE_CHECKING, ENABLE_RTL_CHECKING, ENABLE_GC_CHECKING,
6361 ENABLE_GC_ALWAYS_COLLECT): Delete entries.
6363 * configure.in (ENABLE_STD_NAMESPACE, ENABLE_CHECKING,
6364 ENABLE_TREE_CHECKING, ENABLE_RTL_CHECKING, ENABLE_GC_CHECKING,
6365 ENABLE_GC_ALWAYS_COLLECT): Use three argument form of AC_DEFINE
6366 for these macros. Clean up spacing and linewraps.
6368 2000-04-26 Jason Merrill <jason@casey.cygnus.com>
6370 * calls.c (expand_call): Use get_callee_fndecl.
6372 * print-tree.c (print_node): Print the chain of an _EXPR.
6374 Tue Apr 25 16:16:04 2000 Andrew MacLeod <amacleod@cygnus.com>
6375 Jim Wilson <wilson@cygnus.com>
6376 Andrew Haley <aph@cygnus.com>
6378 * config/ia64/crtbegin.asm: Add IA-64 unwind support. Correct alloc
6379 and gp save/restore problems.
6380 * config/ia64/crtend.asm: Add IA-64 unwind support.
6381 * config/ia64/ia64.c (ia64_compute_frame_size): Don't include pr_size
6382 in fr_pad_size calculation.
6383 (save_restore_insns): Move PR save area. Correct uses of
6384 RTX_FRAME_RELATED_P.
6385 (ia64_expand_prologue): Mark alloc with RTX_FRAME_RELATED_P.
6386 (ia64_expand_epilogue): Add eh_epilogue support.
6387 (ia64_function_prologue): Emit .prologue directive.
6388 (ia64_init_machine_status, ia64_mark_machine_status): New functions.
6389 (ia64_override_options): Set init_machine_status and
6390 mark_machine_status.
6391 (rtx_needs_barrier): Handle bsp reads and writes.
6392 (spill_offset, sp_offset, spill_offset_emitted, tmp_reg, tmp_saved):
6393 New static variables.
6394 (process_set, process_for_unwind_directive): New functions.
6395 * config/ia64/ia64.h (ASM_OUTPUT_XDATA_CHAR, ASM_OUTPUT_XDATA_SHORT,
6396 ASM_OUTPUT_XDATA_INT, ASM_OUTPUT_XDATA_DOUBLE_INT, ASM_OUTPUT_EH_CHAR,
6397 ASM_OUTPUT_EH_SHORT, ASM_OUTPUT_EH_INT, ASM_OUTPUT_EH_DOUBLE_INT): New
6399 (EH_FRAME_SECTION_ASM_OP): Define to IA_64.unwind section.
6400 (IA64_UNWIND_INFO, HANDLER_SECTION, IA64_UNWIND_EMIT): Define.
6401 (struct machine_function): Define.
6402 * config/ia64/ia64.md (bsp_value, set_bsp, eh_epilogue): New patterns.
6404 2000-04-25 Bruce Korb <bkorb@gnu.org>
6406 * fixinc/Makefile.in: make the removal of old programs more
6408 * fixinc/mkfixinc.sh: use the two new targets in the Makefile:
6409 install-bin and install-sh
6411 2000-04-25 Nick Clifton <nickc@cygnus.com>
6413 * integrate.c (FUNCTION_ATTRIBUTE_INLINABLE_P): If not
6414 defined, define to return zero.
6415 (function_cannot_inline_p): If a function has any target
6416 specific attributes, then use the macro
6417 FUNCTION_ATTRIBUTE_INLINABLE_P to allow the target to decide
6418 whether it can be inlined. If it cannot, issue a suitable
6421 * tm.texi: Add a new node 'Inlining' to document the new macro
6422 FUNCTION_ATTRIBUTE_INLINABLE_P.
6424 2000-04-25 Zack Weinberg <zack@wolery.cumb.org>
6426 * cpplib.h (struct cpp_buffer): Add 'mapped' flag; fix
6429 2000-04-25 Neil Booth <NeilB@earthling.net>
6431 Restore previous patch, plus the following fixes:
6433 * cpphash.c (_cpp_create_definition): Test PREV_WHITESPACE in
6434 flags, not CPP_OPEN_PAREN.
6435 * cpplex.c (expand_token_space, init_token_list,
6436 cpp_free_token_list): Put the dummy token at list->tokens[-1].
6437 (_cpp_lex_line, _cpp_lex_file): token list is 0-based.
6439 Tue Apr 25 14:06:40 2000 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
6441 * config/i386/freebsd.h (INT_ASM_OP): Define.
6443 Tue Apr 25 14:51:07 MET DST 2000 Jan Hubicka <jh@suse.cz>
6445 * loop.c (strength_reduce): Fix typo in the last checkin.
6447 Tue Apr 25 07:33:12 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6449 * stor-layout.c (finalize_record_size): Simplify to use existing
6451 (compute_record_mode): No longer static.
6452 * tree.h (compute_record_mode): New declaration.
6454 2000-04-25 Neil Booth <NeilB@earthling.net>
6456 * Revert my patch below until cause of build failures
6459 2000-04-25 Richard Henderson <rth@cygnus.com>
6461 * combine.c (combine_instructions): Add missing argument
6464 * toplev.c (rest_of_compilation): Delay sibcall optimization
6465 until after emit_eh_context.
6467 2000-04-24 Nick Clifton <nickc@redhat.com>
6469 * combine.c (combine_instructions): Do not try to combine a
6470 sequence of insns when the second insn has been replaced by a
6473 Mon Apr 24 17:34:18 2000 Mumit Khan <khan@xraylith.wisc.edu>
6475 * gcc.c (load_specs): New static function.
6476 (read_specs): Use it.
6478 * gcc.c (lookup_compiler): Make multiple passes for case
6479 insensitive filesystems.
6481 2000-04-24 Neil Booth <NeilB@earthling.net>
6483 * cpphash.c: replace HSPACE_BEFORE with PREV_WHITESPACE.
6484 * cpphash.h (_cpp_check_directive): new.
6485 * cpplex.c (handle_newline, cpp_free_token_list,
6486 init_trigraph_map, trigraph_ok, trigraph_replace,
6487 backslash_start, skip_block_comment, skip_line_comment,
6488 skip_whitespace, parse_name, parse_number, parse_string,
6489 copy_comment, _cpp_lex_line, spell_char, spell_string,
6490 spell_comment, spell_name, spell_other, _cpp_lex_file,
6491 _cpp_output_list): new.
6492 (expand_name_space): take length argument.
6493 (init_token_list): add comment list initialisation.
6494 (cpp_scan_line): use auto_expand_name_space. PREV_WHITESPACE
6495 instead of HSPACE_BEFORE.
6497 * cpplib.c (_cpp_check_directive): new
6498 * cpplib.h (cpp_name, PREV_WHITESPACE, PREV_COMMENT,
6499 DIGRAPH, UNSIGNED_INT, TOK_NAME): new.
6500 (HSPACE_BEFORE): delete.
6501 (TTYPE_TABLE): rearrange.
6502 (struct cpp_toklist): update.
6504 2000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6506 * aclocal.m4 (gcc_AC_HEADER_STRING, gcc_AC_FUNC_PRINTF_PTR,
6507 gcc_AC_C_VOLATILE, gcc_AC_FUNC_MKDIR_TAKES_ONE_ARG): Use the three
6508 argument form of AC_DEFINE.
6510 * configure.in (DEFAULT_LINKER, DEFAULT_ASSEMBLER,
6511 HAVE_INTTYPES_H, PACKAGE, VERSION, ENABLE_WIN32_REGISTRY,
6512 WIN32_REGISTRY_KEY, HAVE_GAS_SUBSECTION_ORDERING, HAVE_GAS_WEAK,
6513 HAVE_GAS_HIDDEN, HAVE_AS_REGISTER_PSEUDO_OP, AS_SPARC64_FLAG,
6514 HAVE_AS_OFFSETABLE_LO10, ENABLE_NEW_GXX_ABI): Likewise.
6516 * acconfig.h: Delete stubs made redundant by 3-arg AC_DEFINE.
6518 2000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6520 * Makefile.in (GCC_FOR_TARGET, GCC_CFLAGS, LIBGCC2_INCLUDES,
6521 deduced.h): Use -isystem, not -I, for including system headers.
6523 2000-04-24 Nick Clifton <nickc@cygnus.com>
6525 * config/fr30/fr30.md (addsi3): Do not use small add instruction if
6526 the source register is the frame pointer or arg pointer.
6527 (addsi3_small_int): Disallow if source register is the frame
6528 pointer or arg pointer.
6530 2000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6532 * configure.in (ENUM_BITFIELDS_ARE_UNSIGNED): Delete redundant
6533 call to AC_MSG_RESULT.
6535 2000-04-24 Martin v. Löwis <loewis@informatik.hu-berlin.de>
6537 * invoke.texi: Correct grammatical errors, document
6538 -fno-gnu-keywords as identical to -fno-asm for C++.
6540 2000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6542 * aclocal.m4: (GCC_HEADER_STRING, GCC_NEED_DECLARATION,
6543 GCC_NEED_DECLARATIONS, GCC_FUNC_VFPRINTF_DOPRNT,
6544 GCC_FUNC_PRINTF_PTR, GCC_PROG_LN_S, GCC_PROG_LN, GCC_C_VOLATILE,
6545 AC_GCC_C_LONG_DOUBLE, GCC_FUNC_MKDIR_TAKES_ONE_ARG,
6546 EGCS_PROG_INSTALL): Rename autoconf macros with prefix gcc_AC_.
6548 * configure.in (AC_GCC_C_LONG_DOUBLE, GCC_PROG_LN, GCC_PROG_LN_S,
6549 GCC_C_VOLATILE, EGCS_PROG_INSTALL, GCC_HEADER_STRING,
6550 GCC_FUNC_VFPRINTF_DOPRNT, GCC_FUNC_PRINTF_PTR,
6551 GCC_NEED_DECLARATIONS, GCC_FUNC_MKDIR_TAKES_ONE_ARG): Invoke with
6554 2000-04-24 Mumit Khan <khan@xraylith.wisc.edu>
6556 * c-pragma.c (push_alignment): Use BITS_PER_UNIT macro.
6557 (pop_alignment): Likewise.
6558 (handle_pragma_token): Likewise.
6560 2000-04-24 Robert Lipe <robertlipe@usa.net>
6562 * tree.h (tree_decl): Member `mode' now ENUM_BITFIELD.
6564 2000-04-24 Hiroyuki Machida <machida@sm.sony.co.jp>
6566 * combine.c (try_combine): Update reg_nonzero_bits of
6567 newi2pat before newpat.
6569 Mon Apr 24 10:19:48 MET DST 2000 Jan Hubicka <jh@suse.cz>
6571 * loop.c (strength_reduce): Simplify test to INSN_P.
6572 (record_giv): Attempt to simplify the add value, use CONSTANT_P
6573 expressions instead of CONST_INT.
6574 (express_from_1): Likewise.
6576 2000-04-24 Mark Mitchell <mark@codesourcery.com>
6578 * regs.h (reg_n_max): Don't declare.
6579 * flow.c (reg_n_max): Don't define.
6580 * regclass.c (renumber): Don't initialize to zero.
6581 (regno_allocated): Likewise.
6582 (reg_n_max): Define.
6583 (allocate_reg_info): Don't initialize unnecessarily.
6585 Mon Apr 24 00:21:36 2000 Jeffrey A Law (law@cygnus.com)
6587 * genattrtab.c (find_attr): Initialize unsigned_p, func_units_p
6588 and blockage_p in the newly allocated attribute.
6590 Sun Apr 23 20:16:49 2000 Alexandre Oliva <aoliva@cygnus.com>
6592 * config/mn10300/mn10300.md (addsi): `inc4' on address
6593 registers does not modify cc, but `inc' on an extended
6596 Sun Apr 23 16:24:35 2000 Denis Chertykov <denisc@overta.ru>
6598 * reload.c (find_equiv_reg): Checks all valueno regs
6599 as a reload_reg_p regs.
6601 2000-04-23 Zack Weinberg <zack@wolery.cumb.org>
6603 * cpphash.c (collect_objlike_expansion): Add sanity check.
6604 (special_symbol): Remove case T_CONST, T_XCONST, T_MCONST. If
6605 the buffer is the empty string, return. Mark __DATE__ and
6606 __TIME__ as XCONST nodes, not MCONST.
6607 (_cpp_macroexpand): Avoid pushing an empty buffer.
6608 (funlike_macroexpand): Don't pop token_buffer here.
6610 Sun Apr 23 18:37:53 2000 Alexandre Oliva <aoliva@cygnus.com>
6612 * config/mn10300/mn10300.h (REGNO_IN_RANGE_P): New macro.
6613 (REGNO_DATA_P, REGNO_ADDRESS_P, REGNO_SP_P): New macros.
6614 (REGNO_EXTENDED_P, REGNO_AM33_P): New macros.
6615 (REGNO_OK_FOR_BASE_P): Define in terms of them.
6616 (REGNO_OK_FOR_BIT_BASE_P, REGNO_OK_FOR_INDEX_P): Likewise.
6617 (REG_OK_FOR_BASE_P): Define in terms of the REGNO macro.
6618 (REG_OK_FOR_BIT_BASE_P, REG_OK_FOR_INDEX_P): Likewise.
6620 Sun Apr 23 22:23:08 MET DST 2000 Jan Hubicka <jh@suse.cz>
6622 * loop.c (simplify_giv_expr): Be more agressive on simplifying
6625 2000-04-23 Zack Weinberg <zack@wolery.cumb.org>
6627 * cpphash.h (struct definition): Move file, line, col members...
6628 (struct hashnode): ... here. Also add 'disabled' flag.
6629 (enum node_type): Add T_VOID, T_XCONST, T_FMACRO, and
6630 T_IDENTITY. Remove T_DISABLED.
6633 * cpphash.c (_cpp_dump_definition): Split out dump_DEFINITION.
6634 (collect_expansion): Split into collect_objlike_expansion and
6635 collect_funlike_expansion.
6636 (_cpp_macroexpand): Split out scan_arguments, stringify, and
6637 funlike_macroexpand.
6638 (_cpp_compare_defs): Rename compare_defs, make static.
6639 (_cpp_make_hashnode): Initialize hp->disabled.
6640 (macro_cleanup): Adjust for new token types. Clear
6642 (_cpp_create_definition): Move code here to determine what
6643 sort of macro it is, and code to check for redefinitions, from
6644 do_define. Implement a few simple cases without creating a
6646 (_cpp_macroexpand, special_symbol, _cpp_dump_definition):
6647 Handle the simple cases.
6648 (push_macro_expansion): Set buf->has_escapes and hp->disabled
6651 * cppinit.c (builtin_array): Change MCONST to XCONST
6653 * cpplex.c (maybe_macroexpand): Handle IDENTITY macros here;
6654 fix check for disabled and function-like macros.
6655 * cpplib.c (do_define): Move most logic to
6656 _cpp_create_definition.
6657 (do_undef): Handle new special token types.
6659 Sun Apr 23 14:27:44 MET DST 2000 Jan Hubicka <jh@suse.cz>
6661 * loop.c (maybe_eliminate_biv_1): Use GET_CODE (x) == CONST_INT instead
6662 of CONSTANT_P for mult_val; always use validate_change to update insn.
6664 2000-04-22 Zack Weinberg <zack@wolery.cumb.org>
6666 * cpphash.c (trad_stringify, add_pat): New functions.
6667 (collect_expansion): Restore support for -traditional syntax.
6668 Use trad_stringify and add_pat.
6669 (_cpp_macroexpand): Restore support for -traditional semantics.
6670 * cpplex.c (_cpp_scan_line): Don't change space_before if we
6671 get a COMMENT token.
6672 (_cpp_lex_token): Provide COMMENT tokens to caller if
6673 traditional and parsing_define_directive.
6674 (skip_comment): Warn about // comments if -Wtraditional.
6675 * cpplib.c (do_define): Fix typo. Create EMPTY nodes with
6677 (do_undef): Don't warn about undefining EMPTY nodes.
6679 Sat Apr 22 22:35:38 MET DST 2000 Jan Hubicka <jh@suse.cz>
6681 * loop.c (strength_reduce): Fix biv removal code.
6683 2000-04-22 Richard Henderson <rth@cygnus.com>
6685 * predict.c (estimate_probability): Examine both sides of
6686 a branch for no exits. Use 90% not 50% for predict taken.
6687 Reorg for one copy of note generation code.
6689 2000-04-22 Richard Henderson <rth@cygnus.com>
6691 * flow.c (mark_used_reg): Hack around rs6000 eliminable pic reg.
6693 2000-04-22 Richard Henderson <rth@cygnus.com>
6695 * diagnostic.c (init_output_buffer): Don't initialize format_args.
6696 (output_clear): Likewise.
6697 (output_printf): Use va_copy.
6698 (vline_wrapper_message_with_location): Likewise.
6699 (v_message_with_decl): Likewise.
6700 (line_wrapper_printf): VA_START infor buffer.format_args directly.
6701 * system.h (va_copy): Provide default implementation.
6703 2000-04-22 Richard Henderson <rth@cygnus.com>
6705 * predict.c (expected_value_to_br_prob): Don't bomb if op1 of
6706 the collected condition is not a constant.
6708 2000-04-22 Gabriel Dos Reis <gdr@codesourcery.com>
6710 * diagnostic.h: New file.
6712 * Makefile.in (diagnostic.o): Depends on diagnostic.h
6714 * diagnostic.c: Tweak. Rationalize the output logic. Adjust
6715 various function prototypes.
6716 (diagnostic.h): #include.
6717 (struct output_buffer): Move into diagnostic.h.
6718 (get_output_prefix): Rename to output_get_prefix. Export.
6719 (init_output_buffer): Export. Break out. Ajust intialization.
6720 (output_space_left, output_append): Export.
6721 (output_newline): Rename to output_add_newline. Export.
6722 (output_clear): Nullify additional output_buffer fields.
6723 (output_puts): Rename to output_add_string. Export.
6724 (dump_output): Rename to output_flush_on. Export.
6725 (build_location_prefix): Constify return-type.
6726 (emit_output_prefix): Rename to output_emit_prefix. Export.
6727 (set_real_maximum_length): New function.
6728 (output_set_maximum_length): Ditto
6729 (output_clear): Ditto.
6730 (output_add_character): Ditto.
6731 (output_add_integer): Ditto.
6732 (output_add_space): Ditto.
6733 (output_format): Ditto.
6734 (output_printf): Adjust buffer initialization.
6735 (vline_wrapper_message_with_location): Ditto.
6736 (v_message_with_decl): Ditto. Adjust call to output_puts
6737 and get_output_prefix.
6738 (default_print_error_function): Adjust buffer intialization.
6740 Sat Apr 22 06:45:04 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6742 * expr.c (preexpand_calls, case CALL_EXPR): Don't look at TYPE_SIZE
6745 Fri Apr 21 18:33:09 2000 Alexandre Oliva <aoliva@cygnus.com>
6747 * config/mn10300/mn10300.h (REGNO_REG_CLASS): Use NO_REGS instead
6750 Fri Apr 21 18:30:00 2000 Alexandre Oliva <aoliva@cygnus.com>
6752 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Provide more
6753 accurate data about SP moves.
6755 Fri Apr 21 18:28:28 2000 Alexandre Oliva <aoliva@cygnus.com>
6757 * config/mn10300/mn10300.h (ADDITIONAL_REGISTER_NAMES): Added
6758 aliases to AM33 registers.
6760 Fri Apr 21 18:26:17 2000 Alexandre Oliva <aoliva@cygnus.com>
6762 * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Added register 16
6763 to all EXTENDED bitmaps.
6765 Fri Apr 21 18:17:12 2000 Alexandre Oliva <aoliva@cygnus.com>
6767 * config/mn10300/mn10300-protos.h (mn10300_address_cost): Declare.
6768 * config/mn10300/mn10300.h (ADDRESS_COST): New macro.
6769 * config/mn10300/mn10300.c (mn10300_address_cost): New function.
6771 Fri Apr 21 18:11:56 2000 Alexandre Oliva <aoliva@cygnus.com>
6773 * config/mn10300/mn10300.md (movdi, movdf): Do not use `movu' when
6774 the operand is not constant.
6776 Fri Apr 21 14:58:29 2000 Denis Chertykov <denisc@overta.ru>
6778 * reload.c (find_equiv_reg): Checks all valueno and regno regs
6779 as a call-clobbered regs.
6781 Fri Apr 21 13:30:26 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6783 * rtl.c: Use NOTE_INSN_REPEATED_LINE_NUMBER and NOTE_INSN_RANGE_BEG.
6785 * rtl.def: Update comment.
6786 * function.c (expand_function): Use NOTE_INSN_REPEATED_LINE_NUMBER.
6787 * integrate.c (expand_inline_function): Likewise.
6788 * profile.c (branch_prob): Likewise.
6789 * ggc-common.c (ggc_mark_rtx_children): Use NOTE_INSN_RANGE_BEG.
6790 * print-rtl.c (print_rtx): Likewise.
6791 * haifa-sched.c (sched_analyze, unlink_other_notes): Likewise.
6792 (reemit_notes): Likewise; also use enum insn_note.
6794 * stor-layout.c (layout_decl): Only set DECL_MODE if not already set.
6795 (place_field): Properly compute know and actual alignment.
6797 * gengenrtl.c (gencode): Write obstack_alloc_rtx function start
6800 * cse.c (cse_insn): In (set REG0 REG1) case, remove a REG_EQUAL
6803 2000-04-21 Zack Weinberg <zack@wolery.cumb.org>
6805 * cpphash.c (struct arg, struct arglist): Const-ify strings.
6806 (warn_trad_stringify, duplicate_arg_p): New helper functions.
6807 (collect_expansion): Rewrite to scan over a token list.
6808 Remove -traditional support.
6809 (collect_formal_parameters): Rename to collect_params; rewrite
6810 to scan over a token list.
6811 (_cpp_create_definition): Adjust to scan a token list.
6812 (_cpp_macroexpand): Remove -traditional support.
6813 (_cpp_compare_defs): Whitespace is now canonicalized.
6814 (comp_def_part): Delete function.
6816 * cpphash.h: Update prototypes.
6817 * cpplex.c (init_token_list): Don't set lineno if there is no
6819 (pedantic_whitespace): New function.
6820 (_cpp_scan_line): Mark tokens that had hspace before. Don't
6821 consume a newline. Use pedantic_whitespace.
6822 (_cpp_lex_token): Remove support for -traditional macros.
6823 (_cpp_get_define_token): Delete.
6824 (_cpp_get_directive_token): Do the real work here. Use
6825 pedantic_whitespace.
6826 (_cpp_init_input_buffer): Initialize pfile->directbuf.
6828 * cpplib.c (get_macro_name): Delete.
6829 (do_define): Read the entire line into pfile->directbuf, then
6830 feed the token list to _cpp_create_definition.
6831 * cpplib.h (HSPACE_BEFORE): new define.
6832 (struct cpp_reader): Add a toklist member, "directbuf".
6834 * predict.c (estimate_probability): New heuristic: if a jump
6835 branches around a block with no successors, predict it taken.
6836 Disentangle control flow.
6838 2000-04-20 Richard Henderson <rth@cygnus.com>
6840 * loop.c (emit_iv_add_mult): Revert last change.
6842 2000-04-20 Zack Weinberg <zack@wolery.cumb.org>
6844 * cpplib.h (enum cpp_ttype): Add token types for all
6845 punctuators. Distinguish pp-numbers from valid C numbers.
6846 Give some tokens better names. Initialize from macro.
6847 (struct cpp_name, cpp_token, cpp_toklist): New data
6850 * cpplex.c (bump_column, expand_name_space,
6851 expand_token_space, init_token_list, cpp_output_list,
6852 _cpp_scan_line): New functions.
6853 (output_line_command): Add third argument, new line number.
6854 * cpphash.h: Update prototypes.
6855 * cppexp.c, cpphash.c, cpplib.c, scan-decls.c: Update for new
6858 2000-04-20 Richard Henderson <rth@cygnus.com>
6860 * config/alpha/alpha.c (alpha_emit_floatuns): Emit missing barrier.
6862 2000-04-20 Zack Weinberg <zack@wolery.cumb.org>
6864 * c-common.c (decl_attributes) [A_ALIAS]: Set TREE_USED on the
6867 Thu Apr 20 14:19:18 MET DST 2000 Jan Hubicka <jh@suse.cz>
6869 * loop.c (emit_iv_add_mult): Simplify it's input and emit
6870 REG_EQUAL note explaining the calculated value.
6872 * calls.c (expand_call): Avoid unnecesary precalculation
6873 and outgoing parameters space guarding for sibling calls.
6874 (store_one_arg): Likewise.
6876 Thu Apr 20 08:01:07 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6878 * toplev.c (enum dump_file_index, dump_file): Add DFI_sibling.
6879 (rest_of_compilation): Write sibling dump file and account
6880 for time as jump time.
6881 * invoke.texi: Update documentation on dump flags.
6883 2000-04-19 Marek Michalkiewicz <marekm@linux.org.pl>
6885 * avr.c: #include "system.h" instead of <stdio.h> and <stdlib.h>.
6887 2000-04-19 Zack Weinberg <zack@wolery.cumb.org>
6889 * cpphash.c (special_symbol): Represent an empty macro with
6890 "\r \r " not just "\r ".
6891 (_cpp_macroexpand): Correct condition for the foo ( ) special
6893 (unsafe_chars): Handle EOF as second argument.
6894 (push_macro_expansion): Simplify test for removing escape at
6895 end. Do not trim both escapes if there is no text in between.
6897 2000-04-19 Jim Blandy <jimb@redhat.com>
6899 * dwarf2out.c (DWARF2_ADDR_SIZE): New macro. Use it instead
6900 of PTR_SIZE, when appropriate.
6902 2000-04-19 Mark Mitchell <mark@codesourcery.com>
6904 * system.h (ONLY_INT_FIELDS): Make sure it is defined.
6905 (USE_ENUM_BITFIELDS): Fix typo.
6907 Wed Apr 19 12:14:55 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6909 * stor-layout.c (place_field): Set rli->offset_align properly.
6911 2000-04-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6913 * mips.h (BITS_PER_WORD, UNITS_PER_WORD, UNITS_PER_FPREG,
6914 INT_TYPE_SIZE, LONG_TYPE_SIZE, POINTER_SIZE, POINTER_BOUNDARY,
6915 PARM_BOUNDARY): Remove unnecessary casts.
6917 Wed Apr 19 12:02:37 MET DST 2000 Jan Hubicka <jh@suse.cz>
6919 * calls.c (precompute_arguments): Remove must_preallocate and
6921 (expand_call): Update call of precompute_arguments.
6923 * loop.c (check_insn_for_bivs, for_every_insn_in_loop,
6924 check_insn_for_givs): Break out from ...
6925 (strength_reduce) ... here; use for_every_insn_in_loop to call
6926 check_insn_for_givs.
6927 * loop.h (for_every_insn_in_loop): Declare.
6928 (loop_insn_callback): New type.
6930 2000-04-18 Zack Weinberg <zack@wolery.cumb.org>
6932 * cpplib.c (do_pragma_poison): Strings in the token buffer are
6935 Tue Apr 18 16:04:12 2000 Jim Wilson <wilson@cygnus.com>
6937 * config/ia64/sysv4.h (SELECT_SECTION): Use data_section if
6940 2000-04-18 Zack Weinberg <zack@wolery.cumb.org>
6942 * cccp.c, cexp.y, cexp.c, cccp.1: Removed.
6944 * configure.in: Delete --disable-cpplib option and all
6945 references to cpp_main.
6946 * configure: Regenerate.
6947 * Makefile.in: Remove all references to CCCP, CCCP_OBJS,
6948 @cpp_main@, cccp.c, cexp.c, cexp.y, cexp.output, cexp.o,
6949 cccp.o, cccp, or cppmain. Link cppmain.o straight to
6950 cpp$(exeext). Add --no-headers to makeinfo command line when
6951 generating INSTALL. Install and uninstall cpp.1 manpage, not
6953 * install.texi: Delete all references to cexp.y/cexp.c.
6954 Delete ancient instructions for compiling GCC on 3b1.
6955 * INSTALL: Regenerate.
6957 * cppfiles.c, cpplib.h, jump.c, protoize.c, c-lex.c, mips/t-ecoff,
6958 mips/t-elf, mips/t-r3900: Remove references to cccp.c.
6959 * convex.h, fx80.h, m68k.h, pdp11.h: Remove references to
6961 * xm-linux.h, xm-os2.h, romp.h: Remove definition of BSTRING,
6962 which is no longer tested anywhere.
6964 * cppinit.c (handle_option): Don't run error message through
6967 Tue Apr 18 14:16:47 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6969 * conflict.c (conflict_graph_add): Pass enum type to htab_find_slot.
6970 * cpperror.c (hashtab.h): Now include.
6971 * cppexp.c (hashtab.h): Likewise.
6972 * cpplex.c (hashtab.h): Likewise.
6973 * cppfiles.c (hashtab.h): Likewise.
6974 (find_include_file, _cpp_calc_hash, cpp_read_file): Pass enum type
6975 to htab_find_slot_with_hash.
6976 * cpphash.c (hashtab.h): Now include.
6977 (_cpp_lookup_slot): INSERT is now enum insert_option.
6978 * cpphash.h (_cpp_lookup_slot): Likewise.
6979 * cppinit.c (hashtab.h): Include earlier.
6980 (initialize_builtins): Pass enum to htab_find_slot.
6981 * cpplib.c (hashtab.h): Now include.
6982 (do_define, do_undef): Pass enum type to _cpp_lookup_slot.
6983 (do_pragma_poison, do_assert): Likewise.
6984 * emit-rtl.c (gen_rtx_CONST_INT): Pass enum to
6985 htab_find_slot_with_hash.
6986 * simplify-rtx.c (cselib_lookup_mem, cselib_lookup): Likewise.
6987 * tree.c (type_hash_add): Likewise.
6988 (build1): Minor cleanup.
6990 * ggc-common.c: Add missing blanks.
6991 * print-tree.c (print_node): Print DECL_OFFSET_ALIGN.
6992 * tree.h (DECL_OFFSET_ALIGN): Fix typo in comment.
6994 * stmt.c (mark_case_node): New function.
6995 (mark_case_nesting): Call it.
6997 * expmed.c (emit_store_flag): If comparing two-word integer
6998 with zero, can optimize NE, EQ, GE, and LT.
7000 * c-decl.c (mark_binding_level): Use 'for' instead of `while'.
7001 * conflict.c: Minor cleanups.
7002 * optabs.c: Add blank line
7003 * simplify-rtx.c: Minor cleanups.
7005 2000-04-18 Stan Cox <scox@cygnus.com>
7007 * gengenrtl.c (genlegend): Fix misspelling.
7009 2000-04-18 Robert Lipe <robertlipe@usa.net>
7011 * configure.in (ENUM_BITFIELDS_ARE_UNSIGNED): Added. Check that
7012 bitfields of the host compiler are not signed quantities.
7013 * config.in: Regenerate.
7014 * configure: Regenerate.
7015 * system.h (USE_ENUM_BITFIELDS): Added.
7016 (ENUM_BITFIELDS): Added.
7017 * rtl.h (rtx_def): Members `code', `mode', now ENUM_BITFIELD.
7018 (SHORT_ENUM_BUG): Deleted.
7019 * tree.h (tree_common): Members `code', `mode', `built_in_class',
7021 * config/i386/xm-sco.h (ONLY_INT_FIELDS): Deleted.
7022 (CODE_FIELD_BUG): Likewise.
7023 * config/m68k/x-apollo68 (CC): Deleted SHORT_ENUM_BUG.
7025 * config/m68k/x-ccur (X_CFLAGS): Likewise.
7027 2000-04-18 Mark Mitchell <mark@codesourcery.com>
7029 * cpplex.c (_cpp_lex_token): Don't call CPP_BUMP_LINE when the
7032 2000-04-17 Zack Weinberg <zack@wolery.cumb.org>
7034 * cppexp.c (lex): Don't assume tokens are NUL terminated.
7035 * cpplib.c (do_include, do_import, do_include_next,
7036 read_line_number, detect_if_not_defined): Likewise.
7037 * cpphash.c (collect_expansion): Likewise.
7038 (special_symbol, _cpp_macroexpand): Check return from
7040 * cpphash.h (CPP_NUL_TERMINATE, CPP_NUL_TERMINATE_Q): Delete
7041 macros. Delete all uses.
7043 * gcc.dg/cpp-mi.c: Add two more test cases.
7044 * gcc.dg/cpp-mind.h, gcc.dg/cpp-mindp.h: New files.
7046 2000-04-17 Richard Henderson <rth@cygnus.com>
7048 * bb-reorder.c (fixup_reorder_chain): Don't look up new block again.
7049 (reorder_basic_blocks): If no epilogue in rtl, force last block last.
7051 2000-04-17 Mark Mitchell <mark@codesourcery.com>
7053 * function.c (expand_function_start): Use hard_function_value to
7054 compute the RTL to use for DECL_RESULT.
7056 Mon Apr 17 23:35:29 MET DST 2000 Jan Hubicka <jh@suse.cz>
7058 * i386.c (athlon_cost): Fix lea, divide and XFmode move costs.
7059 (x86_integer_DFmode_moves, x86_partial_reg_dependency,
7060 x86_memory_mismatch_stall): New global variables.
7061 (ix86_adjust_cost): Handle MEMORY_BOTH on places MEMORY_STORE was only
7062 alloved; fix load penalties for Athlon.
7063 * i386.h (x86_integer_DFmode_moves, x86_partial_reg_dependency,
7064 x86_memory_mismatch_stall): Declare.
7065 (TARGET_INTEGER_DFMODE_MOVES, TARGET_PARTIAL_REG_DEPENDENCY,
7066 TARGET_MEMORY_MISMATCH_STALL): New.
7067 * i386.md (athlon scheduling parameters): Fix latencies according to
7068 Athlon Optimization Manual.
7069 (sahf, xchg, fldcw, leave instruction patterns): Set athlon_decode to
7071 (fsqrt instruction patterns): Set athlon_decode to direct.
7072 (movhi_1): Promote for TARGET_PARTIAL_REG_DEPENDENCY and for
7073 PARTIAL_REGISTER_STALL with !TARGET_HIMODE_MATH machines.
7074 (movqi_1): Handle promoting correctly for TARGET_PARTIAL_REG_DEPENDENCY
7075 and TARGET_PARTIAL_REGISTER_STALL machines.
7076 (pushdf_nointeger): New pattern.
7077 (pushdf_integer): Rename from pushdf.
7078 (movdf_nointger): Enable for !TARGET_INTEGER_DFMODE_MOVES machines.
7079 (movdf_intger): Disable for !TARGET_INTEGER_DFMODE_MOVES machines.
7081 2000-04-17 Richard Henderson <rth@cygnus.com>
7083 * loop.c (canonicalize_condition): Add WANT_REG argument.
7084 Stop the search if we match it.
7085 * expr.h (canonicalize_condition): Update decl.
7086 * predict.c (expected_value_to_br_prob): Use it. Track last
7087 expected value note.
7088 (find_expected_value): Remove.
7090 * reorg.c (mostly_true_jump): Always use BR_PROB if present.
7092 2000-04-17 Zack Weinberg <zack@wolery.cumb.org>
7094 * aclocal.m4 (AM_GNU_GETTEXT): Don't AC_REQUIRE([AC_FUNC_MMAP]).
7095 (AC_FUNC_MMAP_FILE): New macro, tests read-only private map of
7097 * configure.in: Call AC_FUNC_MMAP_FILE.
7098 * configure: Regenerate.
7099 * config.in: Regenerate.
7101 * intl/loadmsgcat.c: Test HAVE_MMAP_FILE not HAVE_MMAP.
7102 * fixinc/fixincl.c: Likewise.
7104 2000-04-17 Richard Henderson <rth@cygnus.com>
7106 * builtins.c (expand_builtin_expect): New.
7107 (expand_builtin): Call it.
7108 * builtins.def (BUILT_IN_EXPECT): New.
7109 * c-common.c (c_common_nodes_and_builtins): Declare __builtin_expect.
7110 * extend.texi: Document it.
7112 * predict.c (expected_value_to_br_prob): New.
7113 (find_expected_value): New.
7114 * basic-block.h (expected_value_to_br_prob): Declare.
7115 * toplev.c (rest_of_compilation): Invoke it.
7117 * rtl.h (NOTE_EXPECTED_VALUE): New.
7118 (NOTE_INSN_EXPECTED_VALUE): New.
7119 * rtl.c (note_insn_name): Update.
7120 * print-rtl.c (print_rtx): Reorg NOTE_LINE_NUMBER special
7121 cases; handle NOTE_INSN_EXPECTED_VALUE.
7123 2000-04-17 Jakub Jelinek <jakub@redhat.com>
7125 * config/sparc/sparc.c (eligible_for_sibcall_delay): Cannot use
7126 leaf sibcall delay slot if flag_pic.
7127 (output_sibcall): Always emit call for leaf sibcall if flag_pic.
7129 2000-04-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7131 * Makefile.in (stmp-fixproto): Acknowledge errors in fixproto.
7133 * fixproto: If fix-header fails, exit with an error.
7135 Mon Apr 17 14:59:36 MET DST 2000 Jan Hubicka <jh@suse.cz>
7137 * cse.c (struct check_depdendence_data): New.
7138 (check_dependence): New function.
7139 (invalidate): Use check_depdenence.
7141 2000-04-16 Mark Mitchell <mark@codesourcery.com>
7143 * dwarf2out.c (DWARF_CIE_DATA_ALIGNMENT): Adjust, now that
7144 UNITS_PER_WORD is unsigned.
7146 * tree.h (struct tree_common): Remove misleading comment.
7148 2000-04-16 Dave Pitts <dpitts@cozx.com>
7150 * Makefile.in ($(srcdir)/c-parse.y: c-parse.in): Enclose the whole
7151 message in quotes. Otherwise, IBM's make program treats the '#' as the
7152 start of a comment and ignores the remainder of the line.
7154 * c-lex.c (yylex): Change for EBCDIC, lower case characters preceed
7156 * cccp.c (initialize_char_syntax): Allow for holes in EBCDIC.
7157 * cexp.y (initialize_random_junk): Likewise.
7158 * cppfiles.c (find_include_file): Cast alloca return value.
7159 * cppinit.c (initialize_standard_includes): Likewise.
7160 * cpplib.c (cpp_define, cpp_undef): Likewise.
7161 * defaults.h (ASM_OUTPUT_ASCII): Use ISPRINT.
7162 * final.c (output_asm_insn): Allow for holes in EBCDIC.
7163 * fold-const.c (CHARMASK): New.
7164 (real_hex_to_f): Use it.
7165 * real.c (CHARMASK): New.
7166 (etoasc, asctoeg): Use it.
7167 (asctoeg): EBCDIC lower case characters preceed upper case.
7169 * i370.c (mvs_add_label): Change spacing for coding conventions.
7170 * i370.h (ASM_OUTPUT_CASE_LABEL): Change to the data CSECT for the
7171 outputing case vectors.
7172 (ASM_OUTPUT_CASE_END): New, put assembler back into code CSECT.
7173 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove page check,
7174 since vector in in the data CSECT.
7175 (ASM_OUTPUT_REG_POP, ASM_OUTPUT_REG_PUSH): Restore to correct operation.
7176 * i370.md (Many patterns): Put the length in the XL directives.
7177 (movdi): Put back STM and MVC in definition.
7178 (floatsidf2): Correct TARGET_ELF_ABI pattern and add back the LE370
7179 pattern using the TCA.
7180 * oe.h (CPP_SPEC): Added to allow trigraphs.
7181 * xm-oe.h (HOST_BITS_PER_LONGLONG): Change to 32. IBM's compiler does
7182 not support the "long long" type.
7184 2000-04-16 Mark Mitchell <mark@codesourcery.com>
7186 * config/mips/mips-protos.h (mips_legitimate_address_p): New
7188 (mips_reg_mode_ok_for_base_p): Likewise.
7189 * config/mips/mips.h (REG_OK_STRICT_P): Don't define.
7190 (REG_OK_FOR_INDEX_P): Define unconditionally.
7191 (REG_MODE_OK_FOR_BASE_P): Use mips_reg_mode_ok_for_base_p.
7192 (GO_IF_LEGITIMATE_ADDRESS): Use mips_legitimate_address_p.
7193 * config/mips/mips.c (mips16_simple_memory_operand): Adjust now
7194 that GET_MODE_SIZE is unsigned.
7195 (mips_reg_mode_ok_for_base_p): Define.
7196 (mips_legitimate_address_p): Likewise. Adjust now
7197 that GET_MODE_SIZE is unsigned.
7198 (block_move_loop): Make the number of bytes unsigned.
7199 (expand_block_move): Likewise.
7200 (function_arg): Make the loop counter unsigned to match the
7203 2000-04-16 Richard Henderson <rth@cygnus.com>
7205 * rtl.h (enum insn_note): New enumeration. Subsume
7206 NOTE_INSN_DELETED and friends.
7207 (GET_NOTE_INSN_NAME): Adjust index by NOTE_INSN_BIAS.
7208 * rtl.c (note_insn_name): Tweak string order.
7210 2000-04-15 Zack Weinberg <zack@wolery.cumb.org>
7212 * cpplex.c (_cpp_read_and_prescan): Enlarge len by setting it
7215 * cpplex.c (output_line_command): Remove debugging prints.
7216 (cpp_output_tokens): Don't write out a zero-length buffer or
7217 try to see if it has a newline in it.
7218 (_cpp_expand_to_buffer): Copy the source buffer before pushing.
7219 (_cpp_read_and_prescan): Move shift-down of pushback bytes to
7220 the end of the loop. Use memmove. Don't read past the end of
7221 the buffer. Remove trailing newlines from error messages.
7223 2004-04-16 Neil Booth <NeilB@earthling.net>
7225 * cpphash.h (SYNTAX_INCLUDE, SYNTAX_ASSERT, directive_handler): new.
7226 * cpplib.c: Add new syntax flags to directive table, and
7229 2000-04-15 Ulrich Drepper <drepper@redhat.com>
7231 * i386.c (ix86_expand_epilogue): Yes, the x86 can pop 64k at once
7234 2000-04-15 David Edelsohn <edelsohn@gnu.org>
7236 * toplev.c (display_help): Prefix "f" to "sched-verbose=".
7237 * haifa-sched.c: Update -fsched-verbose comments to use "=".
7239 Sat Apr 15 10:59:19 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7241 * Makefile.in (ggc-page.o): Now includes toplev.h.
7242 * ggc-page.c (toplev.h): Now included.
7243 (gc_time): Remove declaration.
7244 (ggc_collect): TIME now long.
7245 * toplev.c (parse_time, varasm_time, gc_time): Still global; all
7247 * toplev.h (gc_time, parse_time, gc_time): New declarations.
7249 * toplev.c: Make *_time variable long to reduce chance of overflow.
7250 (TIMEVAR): Likewise for `otime'.
7251 (print_time): Arg is now long; compute percentage in FP and round.
7252 * toplev.h (print_time): Arg is long.
7254 * tree.c: Minor whitespace changes.
7256 * configure.in (alpha*-*-*): Add config/alpha/t-alpha.
7257 * configure: Rebuilt.
7258 * libgcc2.c (__fixunstfDI): Renamed from __fixunstfdi.
7259 (__fixunsxfDI): Renamed from __fixunsxfdi.
7260 (__fixunsdfDI): Renamed from __fixunsdfdi.
7261 (__fixunssfDI): Renamed from __fixunssfdi.
7262 (__floatdisf): Use proper type in REP_BIT macro.
7263 (__fixunsxfSI): Renamed from __fixunsxfsi.
7264 (__fixunsdfSI): Renamed from __fixunsdfsi.
7265 (__fixunssfSI): Renamed from __fixunssfsi.
7266 * libgcc2.h: Add cases for MIN_UNITS_PER_WORD > 4.
7267 Change location of macros and upper-case some names as above.
7268 * longlong.h ([alpha]): Use PARAMS, not __P in decl of __udiv__qrnnd.
7269 * config/alpha/t-alpha, config/alpha/qrnnd.asm: New files.
7271 * varasm.c (assemble_variable): Add cast to remove warning.
7272 (immed_real_const_1): Only use CONST[01]_RTX if not in nested function.
7274 * flow.c (count_basic_blocks, find_basic_blocks_1): Remove last change.
7275 * optabs.c (emit_libcall_block): If have REG_EH_REGION, update
7276 region number to -1.
7278 2000-04-15 Richard Earnshaw (rearnsah@arm.com)
7280 * emit-rtl.c (unshare_all_rtl_again): Unmark everything, then
7281 call unshare_all_rtl.
7283 * arm.md (movhi): REGNO_POINTER_ALIGN is now bits.
7285 Fri Apr 14 16:58:45 2000 Jim Wilson <wilson@cygnus.com>
7287 * config/ia64/lib1funcs.asm (__divdi3, __moddi3, __udivdi3, __umoddi3):
7288 Use .s1 not .s0 for all FP instructions.
7290 2000-04-14 Zack Weinberg <zack@wolery.cumb.org>
7292 * cpplex.c (cpp_output_tokens, cpp_scan_buffer_nooutput): New public
7294 (safe_fwrite, output_line_command): New static functions.
7295 (cpp_expand_to_buffer): Now private to cpplib.
7296 (cpp_scan_buffer): Take a printer.
7298 * cpphash.h: Update prototypes.
7299 * cpplib.h: Update prototypes.
7301 (cpp_buffer): Remove last_nominal_fname.
7302 (cpp_reader): Remove lineno.
7304 * cppmain.c: Use a cpp_printer.
7305 * fix-header.c: No need to inhibit line commands. Call
7306 cpp_start_read with no printer.
7308 * cpperror.c (cpp_notice_from_errno): Provide default name.
7309 * cppfiles.c (make_IHASH, _cpp_fake_ihash): New functions.
7310 (find_include_file, cpp_read_file): Use make_IHASH.
7311 (file_cleanup): Set control_macro and clear
7312 input_stack_listing_current here.
7313 (_cpp_execute_include): Don't output entering-file marker.
7314 * cpphash.c (special_symbol): Look for the line number in the
7315 buffer, not the reader.
7316 (_cpp_macroexpand): No need to disable line commands.
7317 (_cpp_dump_definition): No need to generate line commands.
7318 (dump_hash_helper): Remove excess newline from output.
7319 * cppinit.c (dump_special_to_buffer): No need to generate line
7321 (cpp_printer_init): New.
7322 (cpp_start_read): Take a printer, and start it up if it's not
7323 NULL. No need to generate line commands.
7324 (cpp_finish): Expect no buffers stacked at all. Take a
7325 printer argument, and flush the output buffer if it's not
7327 * cpplex.c (_cpp_lex_token): Return EOF if there's no buffer.
7328 Don't put two hashes at the beginning of an assertion.
7329 (cpp_get_token): Don't increment pfile->lineno or emit line
7330 commands here. Return EOF if there's no buffer when we get
7332 * cpplib.c (do_define, skip_if_group):
7333 No need to disable line commands.
7334 (_cpp_output_line_command): Delete function.
7335 (do_line): Don't emit line commands here, but set things up so
7336 they will be emitted if necessary. Use _cpp_fake_ihash to
7337 make unique nominal_fnames if necessary.
7338 (do_elif, do_else, _cpp_handle_eof): Call cpp_error_with_line
7339 with 0 for column, not -1.
7340 (_cpp_handle_eof): Don't set the control macro here. Don't
7341 clear input_stack_listing_current here. Don't emit line
7344 2000-04-14 Geoff Keating <geoffk@cygnus.com>
7346 * config/rs6000/sysv4.h (LINK_START_SOLARIS_SPEC): Define to empty
7347 always, use the default SVR4 start address.
7349 * config/rs6000/linux.h (LINK_SPEC): Don't define.
7350 (LINK_SHLIB_SPEC): Define.
7351 (LINK_START_DEFAULT_SPEC): Define.
7352 (LINK_OS_DEFAULT_SPEC): Define.
7354 * config/rs6000/sysv4.h (ENDFILE_SPEC): Use the %(endfile_*) macros.
7356 * config/rs6000/eabi.asm (__eabi): Call __init rather than
7357 __do_global_ctors to handle constructors.
7358 * config/rs6000/sysv4.h (STARTFILE_ADS_SPEC): Use crtbegin.
7359 (STARTFILE_YELLOWKNIFE_SPEC): Likewise.
7360 (STARTFILE_MVME_SPEC): Likewise.
7361 (STARTFILE_SIM_SPEC): Likewise.
7362 (ENDFILE_ADS_SPEC): Use crtend.
7363 (ENDFILE_YELLOWKNIFE_SPEC): Likewise.
7364 (ENDFILE_MVME_SPEC): Likewise.
7365 (ENDFILE_SIM_SPEC): Likewise.
7366 (STARTFILE_SOLARIS_SPEC): Use crtbegin/crtbeginS.
7367 (ENDFILE_SOLARIS_SPEC): Use crtend/crtendS.
7368 (STARTFILE_LINUX_SPEC): Use crtbeginS for shared objects.
7369 (ENDFILE_LINUX_SPEC): Use crtendS for shared objects.
7370 * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Don't build eabi-ctors.o.
7371 (EXTRA_MULTILIB_PARTS): Build crtbeginS/crtendS.
7372 (CRTSTUFF_T_CFLAGS_S): Define.
7373 * config/rs6000/eabi-ctors.c: Delete.
7375 * config/rs6000/eabi-ci.asm (__init): Align stack to 16-byte
7378 * config/rs6000/eabi-cn.asm (__init): Allow for 16-byte stack frame.
7382 Fri Apr 14 16:09:02 2000 Jim Wilson <wilson@cygnus.com>
7384 * combine.c (force_to_mode, case LSHIFTRT): Check that shift shift
7385 plus mask size is smaller or equal to the mode size.
7387 Fri Apr 14 18:07:30 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7389 * print-rtl.c (print_rtx, case NOTE): Don't blow up if NOTE_BASIC_BLOCK
7392 * expr.c (reload.h): Now included.
7393 (emit_block_move): Set volatile_ok when checking for movstr.
7394 (emit_move_1): Check for replacements in addresses in multi-word case.
7395 * Makefile.in (expr.o): Now includes reload.h.
7397 * flow.c (count_basic_blocks): Remove unused var PREV_CALL.
7398 Never have a LIBCALL end a basic block.
7399 (find_basic_blocks_1): Likewise.
7400 Reorganize CALL_INSN cases.
7402 * sbitmap.h (EXECUTE_IF_SET_IN_SBITMAP): Revert last change.
7404 Fri Apr 14 10:54:22 2000 Jim Wilson <wilson@cygnus.com>
7406 * config/ia64/lib1funcs.asm (__ia64_nonlocal_goto): Drop obsolete
7407 completers from mov.ret instruction.
7409 2000-04-14 Richard Henderson <rth@cygnus.com>
7411 * fold-const.c (extract_muldiv): Don't distribute and widen
7412 multiply across plus for non-sizetype unsigned types.
7414 2000-04-14 Richard Henderson <rth@cygnus.com>
7416 * flow.c (find_auto_inc): Don't autoinc eliminable registers.
7417 If the original source is dead in the incr insn, it's dead now.
7419 Fri Apr 14 07:40:32 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7421 * stor-layout.c (layout_decl): Properly compare KNOWN_ALIGN to
7422 see if DECL_BIT_FIELD needs to still be set.
7424 * tree.h (struct tree_type): Make PRECISION 9 bits and MODE 7.
7426 * dbxout.c (dbxout_type, case INTEGER_TYPE): Don't call
7427 print_int_cst_octal with something that's not an INTEGER_CST.
7429 * config/alpha/alpha.c (alpha_emit_floatuns): Ensure we pass a REG
7430 and not a SUBREG to a FLOAT rtl.
7432 Thu Apr 13 19:39:56 2000 Clinton Popetz <cpopetz@cygnus.com>
7434 * emit-rtl.c (try_split): Avoid infinite loop if the split
7435 results in a sequence that contains the original insn.
7437 2000-04-13 Andreas Jaeger <aj@suse.de>
7439 * config/mips/mips.c (expand_block_move): Pass alignment
7440 argument to move_by_pieces in bits, not bytes.
7442 * config/mips/linux.h (CPP_PREDEFINES): Also define __PIC__ and
7443 __pic__ for little endian.
7445 2000-04-13 Andreas Jaeger <aj@suse.de>
7447 * config/i386/i386-protos.h: Add prototype for
7448 uno_comparison_operator.
7450 Thu Apr 13 15:55:08 MET DST 2000 Jan Hubicka <jh@suse.cz>
7452 * alias.c (nonlocal_reference_p): Take care of CALL_INSNS's fusage.
7453 * calls.c (ECF_PURE): New flag.
7454 (emit_call_1): Handle ECF_PURE calls.
7455 (initialize_argument_information): Unset ECF_PURE flag too.
7456 (precompute_arguments): Precompute for ECF_PURE too.
7457 (expand_call): Handle ECF_PURE calls too.
7458 (emit_library_call_value_1): Rename no_queue argument to fn_type,
7459 accept value of 2 as pure function.
7460 (emit_library_call_value, emit_library_call): Rename no_queue argument
7462 * optabs.c (prepare_cmp_insn): Pass fn_type 2 to memcmp call.
7464 * tree.h (DECL_IS_PURE): New macro.
7465 (struct tree_decl): Add pure_flag.
7466 * c-common.c (enum attrs): Add attribute "pure".
7467 (init_attributes): Initialize attribute "pure"
7468 (decl_attributes): Handle attribute "pure".
7469 * extend.texi (Attribute "pure"): Document.
7470 * calls.c (expand_call): Add (mem:BLK (scratch)) to "equal from"
7472 (flags_from_decl_or_type): Support attribute "pure".
7474 2000-04-13 Jason Merrill <jason@casey.cygnus.com>
7476 * cpplex.c (_cpp_lex_token): Handle digraphs. Don't null-terminate
7477 the token except for numbers and identifiers.
7479 Thu Apr 13 00:09:16 EDT 2000 John Wehle (john@feith.com)
7481 * i386.c (ix86_expand_binary_operator,
7482 ix86_expand_unary_operator): Check no_new_pseudos
7483 instead of reload_in_progress and reload_completed.
7484 (ix86_split_ashldi, ix86_split_ashrdi,
7485 ix86_split_lshrdi): Check no_new_pseudos instead
7486 of reload_completed.
7488 2000-04-12 Jeffrey A Law (law@cygnus.com)
7490 * function.c (purge_addressof): Unshare any shared rtl created by
7491 purge_addressof and its children.
7493 2000-04-12 Mark Mitchell <mark@codesourcery.com>
7495 * function.c (aggregate_value_p): VOID_TYPE nodes are never
7498 2000-04-05 Andreas Jaeger <aj@suse.de>
7500 * config/mips/linux.h (SUBTARGET_ASM_SPEC): Use proper flags if
7501 not compiling PIC code, add flags for mabi=64.
7502 (SUBTARGET_CPP_SIZE_SPEC): New.
7503 (SUBTARGET_CPP_SPEC): New.
7504 (CPP_PREDEFINES): Define __PIC__ and __pic__. PIC code is default
7505 for MIPS/Linux and lots of code needs these defines.
7507 Wed Apr 12 22:44:11 2000 Hans-Peter Nilsson <hp@axis.com>
7509 * reorg.c (fill_slots_from_thread): Check side_effects_p when
7510 trying the "opposite arithmetic" approach.
7512 Wed Apr 12 20:51:20 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
7514 * sh.h (STRUCT_VALUE): Just 0 for TARGET_HITACHI.
7515 (struct sh_args): Add new field force_mem.
7516 (INIT_CUMULATIVE_ARGS): Initialize it.
7517 (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Act on it.
7519 Wed Apr 12 17:20:41 MET DST 2000 Jan Hubicka <jh@suse.cz>
7521 * calls.c (expand_call): Do not reverse args in "equal from" field.
7522 (emit_library_call_value_1): Emit_libcall_block for const and pure
7525 Wed Apr 12 16:00:25 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
7527 * reload1.c (reload_combine): Don't enable optimization for fixed
7528 registers when encountering a BARRIER.
7530 Wed Apr 12 15:54:11 MET DST 2000 Jan Hubicka <jh@suse.cz>
7532 * builtins.c (expand_builtin_memcmp): Do expansion even with
7533 !HAVE_cmpstrsi, do libcall when gen_strcmpsi fails.
7535 * calls.c (expand_call): Do NO_DEFER_POP unconditionally once
7536 stack is propertly aligned; add sanity checking for aligned
7538 (expand_library_call_value_1): Add sanity checking for aligned
7541 Wed Apr 12 07:51:54 2000 Catherine Moore <clm@cygnus.com>
7543 * calls.c (emit_library_call_value_1): Change 3rd arg to
7544 locate_and_pad_parm to disregard the setting of partial.
7546 Wed Apr 12 08:47:38 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7548 * tree.c (unsave_expr_now_r, unsafe_for_reeval): Properly do TREE_LIST.
7550 * print-rtl.c (print_rtx): For CALL_PLACEHOLDER, output the
7551 CALL_INSN from the normal case.
7553 Fri Apr 7 12:23:04 MET DST 2000 Jan Hubicka <jh@suse.cz>
7555 * i386.c (x86_sub_esp_4, x86_sub_esp_8, x86_add_esp_4, x86_add_esp_8):
7556 New global variables.
7557 (ix86_emit_epilogue_adjustment): Do not attempt to use pop for the
7559 * i386.h (x86_sub_esp_4, x86_sub_esp_8, x86_add_esp_4, x86_add_esp_8):
7561 (TARGET_SUB_ESP_4, TARGET_SUB_ESP_8, TARGET_ADD_ESP_4,
7562 TARGET_ADD_ESP_8): New macros.
7563 * i386.md: Add peep2s to convert esp adjustments to push and pop
7565 (pushsi_prologue, popsi_epilogue): New patterns.
7567 2000-04-12 Jakub Jelinek <jakub@redhat.com>
7569 * real.c (toe64): Remove stale #endif from the last change.
7571 2000-04-12 Stephen L Moshier <moshier@mediaone.net>
7573 * real.h (MAX_LONG_DOUBLE_TYPE_SIZE): Comment.
7574 * real.c (toe64): Revert previous change.
7576 2000-04-12 Jakub Jelinek <jakub@redhat.com>
7578 * objc/objc-act.c: Include ggc.h.
7579 (objc_tree_index, objc_global_trees): Convert most of the
7580 static tree variables into a static array with previous names
7582 (objc_ellipsis_node): New variable.
7583 (lang_init): Call objc_act_parse_init and c_parse_init.
7584 Create objc_ellipsis_node.
7585 (build_selector_translation_table): Use objc_ellipsis_node instead
7587 (hack_method_prototype): Likewise.
7588 (get_arg_type_list): Likewise.
7589 (start_method_def): Likewise.
7590 (continue_method_def): Likewise.
7591 (gen_method_decl): Likewise.
7592 (ggc_mark_imp_list): New function.
7593 (ggc_mark_hash_table): New function.
7594 (objc_act_parse_init): New function.
7595 * objc/objc-act.h (objc_ellipsis_node): Add extern variable.
7596 * c-parse.in (c_parse_init): For objc add roots of objc specific
7597 local tree variables.
7598 * objc/objc-parse.y: Rebuilt.
7599 * objc/objc-parse.c: Rebuilt.
7600 (opt_parm_list): Use objc_ellipsis_node instead of (tree)1.
7602 Wed Apr 12 01:00:44 EDT 2000 John Wehle (john@feith.com)
7604 * cse.c (delete_trivially_dead_insns): Also delete insns
7605 that copy a register to itself where the destination is
7608 2000-04-11 Richard Henderson <rth@cygnus.com>
7610 * flow.c (struct propagate_block_info): Add new_dead, new_live.
7611 (propagate_block): Initialize them. Use them in parallel instead
7612 of one tmp variable, ie revert much of the 0408 and 0407 functional
7613 changes, but keep the structural changes.
7614 (mark_set_regs): Take new_dead from propagate_block_info instead.
7615 (mark_set_1, mark_set_reg): Likewise.
7616 (mark_used_regs): Likewise with new_live.
7617 (mark_used_reg): Likewise. Revert 0408 change.
7619 2000-04-11 Nick Clifton <nickc@cygnus.com>
7621 * config/arm/arm.h: (INCOMING_RETURN_ADDR_RTX): Remove Dwarf2
7623 (DWARF_FRAME_RETURN_COLUMN): Remove Dwarf2 restriction.
7625 2000-04-11 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
7627 * config/elfos.h (SELECT_SECTION): Decide whether to use a data or
7628 const section to output a CONSTRUCTOR based on the same conditions
7631 Tue Apr 11 09:55:59 2000 Jeffrey A Law (law@cygnus.com)
7633 * pa/long-double.h (FIX_TRUNCTFSI2_LIBCALL): Tweak for PA64.
7634 * pa/pa-protos.h (output_call): Add additional argument indicating
7635 if the call is a sibling/tail call.
7636 (compute_zdepdi_operands, output_64bit_and): Prototype new functions.
7637 (compute_64bit_ior, cmpib_comparison_operator): Likewise.
7638 (function_arg, function_arg_partial_nregs): Likewise
7639 * pa/pa.c (override_options): Always set flag_pic for TARGET_64BIT.
7640 (emit_move_sequence): Zero extend certain constants as needed
7642 (compute_zdepdi_operands, output_64bit_and): New functions.
7643 (output_64bit_ior, function_arg): Likewise.
7644 (cmpib_comparison_operator, function_arg_partial_nregs): Likewise.
7645 (compute_frame_size, hppa_expand_prologue): Handle TARGET_64BIT.
7646 (hppa_expand_epilogue, return_addr_rtx, hppa_va_arg): Likewise.
7647 (hppa_builtin_saveregs, output_cbranch, output_bb): Likewise.
7648 (output_bvb): Likewise.
7649 (output_millicode_call): Return pointer is in %r2 for TARGET_64BIT.
7650 (output_call): New argument 'sibcall'. Generate sibcall sequences
7652 (print_operand); Handle cases 'Q', 'p', and 'z' for TARGET_64BIT. For
7653 (ouput_arg_descriptor): Do not emit argument descriptors for
7655 * pa/pa.h (TARGET_PA_11, TARGET_PA_20): Only define if not already
7657 (TARGET_64BIT, PROMOTE_FUNCTION_RETURN): Define.
7658 (FUNCTION_OK_FOR_SIBALL): Define.
7659 (CPP_PA10_SPEC, CPP_PA11_SPEC, CPP_PA20_SPEC): Define.
7660 (CPP_CPU_DEFAULT_SPEC, SUBTARGET_EXTRA_SPECS, EXTRA_SPECS): Likewise.
7661 (CPP_SPEC): Use new spec infrastructure.
7662 (BITS_PER_WORD, UNITS_PER_WORD): Handle TARGET_64BIT.
7663 (STACK_BOUNDARY, FUNCTION_BOUNDARY, PIC_OFFSET_TABLE_REGNUM): Likewise.
7664 (RETURN_IN_MEMORY, EXTRA_CONSTRAINT, FIRST_PARM_OFFSET): Likewise.
7665 (REG_PARM_STACK_SPACE, STACK_POINTER_OFFSET): Likewise.
7666 (STACK_DYNAMIC_OFFSET, FUNCTION_VALUE): Likewise.
7667 (FUNCTION_ARG_PASS_BY_REFERENCE, FUNCTION_ARG_CALLEE_COPIES): Likewise.
7668 (TRAMPOLINE_TEMPLATE, TRAMPOLINE_SIZE): Likewise.
7669 (INITIALIZE_TRAMPOLINE, LEGITIMATE_CONSTANT_P): Likewise.
7670 (CONST_OK_FOR_LETTER_P, MOVE_RATIO): Likewise.
7671 (FUNCTION_ARG); Call out to C code.
7672 (FUNCTION_ARG_PARTIAL_NREGS): Likewise.
7673 (MAX_BITS_PER_WORD, MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Define.
7674 (MIN_UNITS_PER_WORD): Likewise.
7675 * pa/pa.md (cmpdi): New expander.
7676 (scc patterns, movstrsi): Not available for TARGET_64BIT.
7677 (64bit conditional arithmetic): New patterns.
7678 (absdi2, smindi3, umindi3, smaxdi3, umaxdi3): New patterns.
7679 (movsicc): Not available if modes on all the operands to not match.
7680 (movdicc): New expander and associated patterns.
7681 (64bit branches): New patterns.
7682 (pre_load, post_store): Generate appropriate code for TARGET_64BIT.
7683 (pre_ldd, post_std): New patterns.
7684 (64bit addil, load low part): New patterns.
7685 (special movsf constant): Not available for TARGET_64BIT.
7686 (movsf, movdf expanders): Force constants into memory.
7687 (32bit movdf/movdi patterns): Disable for TARGET_64BIT.
7688 (64bit movdf/movdi patterns): New patterns.
7689 (zero_extendqidi2, zero_extendhidi2, zero_extendsidi2): New patterns
7691 (extendqidi2, extendhidi2, extendsidi2): Similarly.
7692 (adddi3 expander): Allow "arith_operand" for second input.
7693 (32bit adddi3, subdi3, uaddcm): Disable for TARGET_64BIT.
7694 (64bit adddi3, subsi3, uaddcm): New patterns for TARGET_64BIT.
7695 (mulsi3 expander): Revamp slightly so it supports TARGET_64BIT too.
7696 (muldi3): New expander for TARGET_64BIT.
7697 (divsi3, udivsi3, modsi3, umodsi3): Fourth operand must be (reg:SI 2)
7699 (32bit anddi3, iordi3, xordi3, andcm, negdi2, uaddcm): Disable
7700 patterns for TARGET_64BIT.
7701 (64bit anddi3, iordi3, xordi3, andcm, negdi2, uaddcm, shadd): New
7702 patterns for TARGET_64BIT.
7703 (64bit bit insertion/extractions): New patterns for TARGET_64BIT.
7704 (64bit shifts/rotates): New patterns/expanders for TARGET_64BIT.
7705 (sibcall_epilogue): New expander.
7706 (casesi): Tweak for TARGET_64BIT.
7707 (call expanders): Set & use the outgoing argument pointer. Use the
7708 64bit call patterns as needed. Add additional arg to output_call.
7709 (call_internal_reg_64bit, call_value_internal_reg_64bit): New pattern.
7710 (sibcall, sibcall_internal_symref): New expanders.
7711 (sibcall_value, sibcall_value_internal_symref
7712 (interspace_jump): Turn into an expander + matching patterns.
7713 (canonicalize_funcptr_for_compare): Not needed for TARGET_64BIT.
7714 * pa/pa64-regs.h: Eliminate trigraph sequences.
7715 * pa/pa64-start.h (TARGET_PA_20): Fix typo.
7717 2000-04-11 Zack Weinberg <zack@wolery.cumb.org>
7719 * cppexp.c, cpphash.c, cpphash.h, cpplex.c, cpplib.c,
7720 cpplib.h, cppmain.c, fix-header.c, scan-decls.c: Replace
7721 cpp_token with cpp_ttype everywhere.
7722 * cpperror.c, cpphash.c, cpplex.c, cpplib.c, scan-decls.c:
7723 Replace cpp_buf_line_and_col with CPP_BUF_LINE and/or
7724 CPP_BUF_COL. Line and column numbers are unsigned int, not
7726 * cpplex.c (cpp_buf_line_and_col): Delete.
7727 * cpplib.h (struct cpp_buffer, struct cpp_reader): Change
7728 'long lineno' to 'unsigned int lineno'.
7729 (CPP_BUF_LINE, CPP_BUF_COL): New macros.
7731 2000-04-11 Martin v. Löwis <loewis@informatik.hu-berlin.de>
7733 * extend.texi: ISO C99 is not a draft anymore.
7734 * invoke.texi: ISO C++ is not a draft anymore.
7735 * cpp.texi: __cplusplus is required by the ISO standard.
7737 * extend.texi (-fthis-is-variable): Undocument.
7738 * flags.h (warn_template_debugging): Remove declaration.
7739 * gcc.1 (-fall-virtual, -fenum-int-equiv, -fthis-is-variable,
7740 -Wenum-clash, -Wtemplate-debugging): Undocument.
7742 2000-04-10 Nick Clifton <nickc@cygnus.com>
7744 * config/arm/arm.h (HOST_INT): New macro: Declare a HOST_WIDE_INT
7746 (HOST_UINT): New macro: Declare an unsigned HOST_WIDE_INT
7748 (ARM_SIGN_EXTEND): Use HOST_UINT.
7749 (STRIP_NAME_ENCODING): Prevent warnings about redefinitions.
7750 (ASM_OUTPUT_LABELREF): Prevent warnings about redefinitions.
7751 (INCOMING_RETURN_ADDR_RTX): Only define if Dwarf2 is supported.
7752 (DWARF_FRAME_RETURN_COLUMN): Only define if Dwarf2 is supported.
7754 * config/arm/arm.c: (const_ok_for_arm): Use HOST_UINT.
7755 (arm_gen_constant): Use HOST_UINT.
7756 (arm_canonicalize_constant): Use HOST_UINT.
7757 (arm_reload_in_hi): Use HOST_UINT.
7758 (arm_reload_out_hi): Use HOST_UINT.
7759 (output_multi_immediate): Use HOST_UINT.
7760 (int_log2): Use HOST_UINT.
7761 (arm_poke_function_name): Use HOST_UINT.
7762 (arm_output_epilogue): Use arm_volatile_func().
7763 (output_thumb_prologue): Use arm_strip_name_encoding().
7765 Mon Apr 10 15:40:59 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7767 * sbitmap.c (sbitmap_a_subset_b_p): Rework loop to avoid potential
7768 of sequence point problems.
7770 2000-04-10 Nathan Sidwell <nathan@codesourcery.com>
7772 * rtl.def (ASHIFT, ROTATE, ASHIFTRT, LSHIFTRT, ROTATERT):
7774 * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Recomment.
7776 Mon Apr 10 07:21:13 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7778 * sbitmap.h: Whitespace changes and use upper-case macro args.
7779 (struct simple_bitmap_def): All sizes now unsigned.
7780 (EXECUTE_IF_SET_IN_SBITMAP): Internal vars now _X instead of X_.
7781 * sbitmap.c (sbitmap_alloc): N_ELMS now unsigned; also local vars.
7782 (sbitmap_vector_alloc): Parms and local vars now unsigned.
7783 (sbitmap_zero): Cast bzero arg to PTR.
7784 (sbitmap_vector_zero, sbitmap_vector_one): Parm and Local var unsigned.
7785 (sbitmap_union_of_diffs): Change loop index to unsigned and rework
7786 loop to make structure clearer.
7787 (sbitmap_not, sbitmap_difference, sbitmap_a_and_b): Likewise.
7788 (sbitmap_a_or_b, sbitmap_a_subset_b_p, sbitmap_a_or_b_and_c): Likewise.
7789 (sbitmap_a_and_b_or_c): Likewise.
7790 (sbitmap_intersection_of_succs): Minor cleanups.
7791 (sbitmap_intersection_of_preds, sbitmap_union_of_succs): Likewise.
7792 (sbitmap_union_of_preds): Likewise.
7793 (sbitmap_first_set_bit, dump_sbitmap): Local variables now unsigned.
7794 (debug_sbitmap): New function.
7796 * c-convert.c (convert): Handle REFERENCE_TYPE like POINTER_TYPE.
7797 * c-typeck.c (convert_for_assignment): Likewise.
7799 * expmed.c (init_expmed): Don't free objects we make.
7800 * emit-rtl.c (gen_rtx_CONST_INT, init_emit_once): Minor cleanups.
7802 * expr.c (get_inner_reference): Correct some WITH_RECORD_EXPR cases.
7803 (expand_expr, case CONVERT_EXPR): Pass proper alignment to store_field.
7805 * gcse.c (expr_hash_table_size): Now unsigned.
7806 (compute_ae_gen): Local variable `i' now unsigned.
7807 (compute_ae_kill, pre_insert_copies, pre_delete, pre_gcse): Likewise.
7808 (compute_transout, hoist_code): Likewise.
7809 (compute_local_properties): Likewise, also hash_table_size.
7810 (alloc_expr_hash_table): N_INSNS now unsigned.
7811 (delete_null_pointer_checks): Mark arg F as unused.
7813 * regrename.c: Minor cleanups, including chang some variables
7816 2000-04-10 Neil Booth <NeilB@earthling.net>
7818 * cpplex.c (skip_block_comment): Use pointer arithmetic rather
7820 * cpphash.h: (CPP_BUMP_BUFFER_LINE_CUR, CPP_BUMP_LINE_CUR): New.
7822 2000-04-10 Martin v. Löwis <loewis@informatik.hu-berlin.de>
7824 * invoke.texi (-fno-gnu-keywords): Remove classof, headof,
7825 __classof__, and __headof__ from the list of gnu keywords.
7826 (-ansi): Remove -foperator-names from list of implied options.
7827 Do not call it ANSI C++.
7828 (-foperator-names): Document as -fno-operator-names.
7830 2000-04-09 Zack Weinberg <zack@wolery.cumb.org>
7832 * cpphash.c (timestamp): Delete.
7833 (del_HASHNODE): If type is T_MCONST, free value.cpval.
7834 (special_symbol): Remove unnecessary braces. Remove
7835 T_VERSION. Treat T_STDC like T_CONST unless
7836 STDC_0_IN_SYSTEM_HEADERS. Render both __DATE__ and __TIME__
7837 when one is encountered, then convert them into T_MCONST
7839 * cppinit.c (builtin_array): version_string is T_MCONST.
7840 __STDC__ has a "1" in its cpval. Don't have a terminator
7841 entry. Clean up which entries are dumped.
7842 (initialize_builtins): Only __STDC__ gets the special
7843 -traditional treatment. Count the length of builtin_array.
7844 Render version_string here.
7845 * cpphash.h: Remove T_VERSION. Add T_MCONST.
7846 * cpplib.h (struct cpp_reader): Remove timebuf.
7848 2000-04-09 Richard Henderson <rth@cygnus.com>
7850 * genrecog.c (pred): Update comparison_operator for the unordered
7853 * config/i386/i386.c (no_comparison_operator): Disallow unordered
7855 (fcmov_comparison_operator): Allow UNORDERED/ORDERED.
7856 (uno_comparison_operator): New.
7857 (put_condition_code): Handle UNORDERED/ORDERED.
7858 (unsigned_comparison): Likewise.
7859 (ix86_fp_compare_mode): Broken out of ix86_expand_fp_compare.
7860 (ix86_use_fcomi_compare, ix86_prepare_fp_compare_args): Likewise.
7861 (ix86_expand_fp_compare): Use them. Take scratch as argument,
7862 update all callers. Handle all 8 unordered operators.
7863 (ix86_expand_setcc): Lose the unordered argument, update all callers.
7864 (ix86_expand_branch): Likewise. Don't fully expand fp branches.
7865 * config/i386/i386.h (PREDICATE_CODES): Update.
7866 * config/i386/i386-protos.h (ix86_expand_fp_compare): Declare.
7867 (ix86_expand_branch, ix86_expand_setcc): Update.
7868 * config/i386/i386.md (sunordered, sordered): New.
7869 (suneq, sunge, sungt, sunle, sunlt, sltgt): New.
7870 (bunordered, bordered): New.
7871 (buneq, bunge, bungt, bunle, bunlt, bltgt): New.
7872 (*fp_jcc_1, *fp_jcc_2, *fp_jcc_3, *fp_jcc_4): New.
7873 (*fp_jcc_5, *fp_jcc_6, and splitters): New.
7875 2000-04-09 Philip Blundell <philb@gnu.org>
7877 * config/arm/arm.h (ARM_NAME_ENCODING_LENGTHS): Strip `*' too.
7879 Sun Apr 9 15:16:14 EDT 2000 John Wehle (john@feith.com)
7881 * i386.md (fix_truncsfhi2, fix_truncdfhi2,
7882 fix_truncxfhi2): New patterns.
7883 * i386.c (output_fix_trunc): Handle converting to HImode.
7885 2000-04-08 Alex Samuel <samuel@codesourcery.com>
7887 * ssa.c (convert_to_ssa): Eliminate dead code when calling
7889 (convert_from_ssa): Call compute_bb_for_insn before life_analysis.
7890 (for_each_successor_phi): Change parameter to basic_block.
7891 (coalesce_regs_in_successor_phi_nodes): Likewise.
7892 (coalesce_regs_in_copies): Likewise.
7893 (compute_coalesced_reg_partition): Use basic_block instead of index.
7894 * rtl.h (convert_to_ssa): Delete.
7895 (convert_from_ssa): Likewise.
7896 (successor_phi_fn): Likewise.
7897 (for_each_successor_phi): Likewise.
7898 (in_ssa_form): Likewise.
7899 * basic-block.h (convert_to_ssa): Moved from rtl.h.
7900 (convert_from_ssa): Likewise.
7901 (successor_phi_fn): Likewise.
7902 (in_ssa_form): Likewise.
7903 (for_each_successor_phi): Likewise. Change parameter to basic_block.
7904 * flow.c (calculate_global_regs_live): Pass a basic_block to
7905 for_each_successor_phi.
7907 2000-04-08 Richard Henderson <rth@cygnus.com>
7909 * flow.c (mark_used_reg): Use reg_set_p to determine if a register
7910 was modified in the current insn.
7912 2000-04-08 Richard Earnshaw (rearnsha@arm.com)
7914 * arm/thumb.md: Delete.
7915 * arm/thumb-protos.h: Delete.
7917 2000-04-08 Richard Earnshaw (rearnsha@arm.com)
7919 Merge changes from merged-arm-thumb-backend-branch onto trunk.
7921 2000-04-08 Richard Earnshaw (rearnsha@arm.com)
7923 * Merge trunk code from tag merged-arm-thumb-backend-merge_20000408
7926 * arm.md (nop): Use the standard RTL expression. Don't code as a
7928 (*arm_nop, *thumb_nop): Delete.
7930 * arm.c (const_ok_for_arm): Don't use ANSI extensions for defining
7931 constants. Use casts instead.
7932 (arm_gen_constant, arm_rtx_costs, arm_reload_in_hi, arm_reload_out_hi,
7933 output_multi_immediate, arm_poke_function_name): Likewise.
7934 * arm.h (ARM_LEGITIIMIZE_RELOAD_ADDRESS, ARM_SIGN_EXTEND,
7935 MASK_RETURN_ADDDR): Likewise.
7937 2000-03-31 Richard Earnshaw (rearnsha@arm.com)
7939 * Merge trunk code from tag merged-arm-thumb-backend-merge_20000325
7942 * arm.md (eh_epilogue): New function.
7943 * arm.h (struct machine_function): Move to here ...
7944 * arm.c: ... from here.
7945 (arm_output_epilogue): Support epilogues for __builtin_eh_return.
7946 (thumb_exit): Extra parameter eh_ofs. All callers changed.
7947 Handle epilogues for __builtin_eh_return. Make bit-fields unsigned.
7949 2000-03-30 Nick Clifton <nickc@cygnus.com>
7951 * config/arm/semi.h (ASM_SPEC): Restore definition.
7952 (SUBTARGET_EXTRA_ASM_SPEC): Define if not already defined.
7954 * config/arm/elf.h (ASM_SPEC): Restore definition.
7955 (SUBTARGET_EXTRA_ASM_SPEC): Define if not already defined.
7957 * config/arm/arm.h (ASM_SPEC): Remove definition.
7958 (SUBTARGET_EXTRA_ASM_SPEC): Remove definition.
7960 2000-03-26 Bernd Schmidt <bernds@cygnus.co.uk>
7962 * config/arm/arm.c: Disable -fschedule-insns for Thumb.
7964 2000-03-24 Nick Clifton <nickc@cygnus.com>
7966 Various formating tidyups, elimination of compile time
7967 warnings and synchronisation with internal sources:
7969 * config/arm/arm-protos.h (assemble_align): Add prototype.
7970 (gen_rotated_half_load): Rename to arm_gen_rotated_half_load.
7971 (gen_comapre_reg): Rename to arm_gen_compare_reg.
7972 (arm_return_addr_rtx): Rename to arm_return_addr.
7974 * config/arm/arm.c: Include except.h.
7975 Define shorter typenames for strict minipool_node and struct
7977 (arm_return_in_memory): For WinCE return all structures <= 32 bits
7979 (gen_rotated_half_load): Rename to arm_gen_rotated_half_load.
7980 (gen_comapre_reg): Rename to arm_gen_compare_reg.
7982 * config/arm/arm.h (SUBTARGET_EXTRA_ASM_SPEC): Define if not
7984 (ASM_SPEC): Define if not already defined.
7985 (ASM_OUTPUT_DEF_FROM_DECLS): Define.
7987 * config/arm/arm.md: Rename references to gen_rotated_half_load to
7988 arm_gen_rotated_half_load, and references to gen_comapre_reg to
7989 arm_gen_compare_reg.
7990 (indirect_jump): Only accept register operands.
7991 (load_indirect_jump): Keep this pattern since combine can generate
7994 * config/arm/coff.h: Include aout.h.
7995 (MULTILIB_DEFAULTS): Only define if not already defined.
7997 * config/arm/elf.h (ASM_OUTPUT_DEF_FROM_DECLS): Move definition
7998 into arm.h (so that COFF ports can support thumb based aliases).
7999 (ASM_SPEC): Move definition into arm.h
8001 * config/arm/linux-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Remove
8002 redundant apcs spec.
8003 (ASM_SPEC): Move definition to arm.h
8005 * config/arm/semi.h (ASM_SPEC): Move definition to arm.h
8007 * config/arm/unknown-elf.h (ASM_OUTPUT_SECTION_NAME): Add support
8008 for entries in the .bss section
8010 2000-03-23 Nick Clifton <nickc@cygnus.com>
8012 * config/arm/arm.h (THUMB_INITIAL_ELIMINATION_OFFSET): Pass 0
8013 to thumb_far_jump_used_p.
8015 * config/arm/arm-protos.h (thumb_far_jump_used_p): Take a
8016 single integer parameter.
8018 * config/arm/arm.c (struct machine_function): Add two new
8019 fields, 'far_jump_used' and 'arg_pointer_live'.
8020 (thumb_far_jump_used_p): Once the decision has been made that
8021 far jumps might be used, always return true.
8022 If being called from the initial elimination offset macro then
8023 do not bother to perform the test if the arg pointer is not
8025 (thumb_unexpand_epilogue): Pass 1 to thumb_far_jump_used_p().
8026 (output_thumb_prologue): Pass 1 to thumb_far_jump_used_p().
8028 2000-03-23 Richard Earnshaw (rearnsha@arm.com)
8030 * arm.c (output_return_instruction): Handle more cases where we can
8031 return from a function with an ldr instruction.
8032 (arm_output_epilogue): Likewise.
8034 * arm.c (thumb_expand_prologue): Don't clobber the frame pointer
8035 if we need to push a large stack frame and there are no callee-saved
8038 * arm.c (arm_debugger_arg_offset): An offset of 0 is also valid
8039 in ARM code if the frame pointer has been eliminated.
8041 * arm.md (epilogue, *epilogue_insns, consttable_*, align_4): Renumber
8042 unspec_volatile arguments to avoid duplicates.
8043 (consttable_1, consttable_2): Fixes for big-endian mode.
8045 * arm.md (all ARM-mode load insns): Add neg_pool_range attribute
8048 Re-write constant pool code.
8049 * arm.c (minipool_node, minipool_fix): New types.
8050 (minifix): Delete type.
8051 (arm_add_minipool_constant): Delete.
8052 (arm_compute_minipool_offsets, arm_find_barrier,
8053 arm_find_minipool_constant, fixup_compare, sort_fixups): Likewise.
8054 (get_jump_table_size): Now returns HOST_WIDE_INT.
8055 (move_minipool_fix_forward_ref, add_minipool_forward_ref): New
8057 (move_minipool_fix_backward_ref, add_minipool_backward_ref): Likewise.
8058 (assign_minipool_offsets, arm_print_value): Likewise.
8059 (dump_minipool): Rewrite.
8060 (arm_barrier_cost): New function.
8061 (create_fix_barrier): New function.
8062 (push_minipool_barrier): New function.
8063 (push_minipool_fix): Record additional information about the fixup
8065 (note_invalid_constants): Remove push for (UNSPEC 3). Don't
8066 check the mode of what needs fixing.
8067 (arm_reorg): Rewrite.
8069 2000-03-08 Nick Clifton <nickc@cygnus.com>
8071 * config/arm/arm.md (indirect_jump): Force constant addresses into
8074 2000-03-01 Bernd Schmidt <bernds@cygnus.co.uk>
8076 * config/arm/arm.md: Add splitter to turn SF moves into SI moves.
8078 2000-02-24 Nick Clifton <nickc@cygnus.com>
8080 * config/arm/arm.c (thumb_expand_prologue): Make sure that stack
8081 adjust is word aligned.
8082 (thumb_expand_epilogue): Make sure that stack adjust is word
8085 * config/arm/elf.h (ASM_FILE_START): Fix type of version string.
8087 2000-02-24 Bernd Schmidt <bernds@cygnus.com>
8089 * config/arm/arm.h (THUMB_GO_IF_LEGITIMATE_ADDRESS): Allow frame
8090 pointer relative addresses.
8092 2000-02-10 Richard Earnshaw <rearnsha@arm.com>
8094 * arm.c (find_barrier): Find the last barrier within the allowed
8097 2000-02-09 Nick Clifton <nickc@cygnus.com>
8099 * config/arm/arm-protos.h: Replace PROTO with PARAMS.
8101 2000-02-09 Nick Clifton <nickc@cygnus.com>
8103 * config/arm/linux-elf.h (FUNCTION_PROFILER): Rename to
8104 ARM_FUNCTION_PROFILER.
8106 * config/arm/netbsd.h (FUNCTION_PROFILER): Rename to
8107 ARM_FUNCTION_PROFILER.
8109 * config/arm/linux-oldld.h: Imported from mainline sources.
8111 2000-02-07 Nick Clifton <nickc@cygnus.com>
8113 * config/arm/lib1funcs.asm: Merge in thumb functions from
8116 * config/arm/lib1thumb.asm: Delete.
8118 2000-02-04 Nick Clifton <nickc@cygnus.com>
8120 * config/arm/arm.c: Sychronised with current Red hat local
8122 * config/arm/arm.h: Ditto.
8123 * config/arm/arm-protos.h: Ditto.
8125 2000-02-02 Bernd Schmidt <bernds@cygnus.co.uk>
8127 * arm.c (soft_df_operand): Reject SUBREGs containing a constant.
8129 * arm.c (arm_gen_movstrqi): Generate halfword stores rather than two
8132 2000-02-02 Nick Clifton <nickc@cygnus.com>
8134 * config/arm/thumb.c (thumb_exit): Additional fix for same bug.
8136 * config/arm/arm.md (epilogue): Fix rtl checking abort because
8137 (return) was emited using an emit_insn() call.
8139 2000-01-31 Nick Clifton <nickc@cygnus.com>
8141 * config/arm/arm.c (output_thumb_prologue): Fix bug generating
8143 (thumb_exit): Move frame pointer back into hard frame pointer
8144 register if backtracing is being used.
8146 2000-01-13 Richard Earnshaw (rearnsha@arm.com)
8148 * Merge trunk code from tag merged-arm-thumb-backend-merge_20000113
8151 1999-12-15 Bernd Schmidt <bernds@cygnus.co.uk>
8153 * config/arm/arm.md (neg_pool_offset): Provide default for new
8155 (arm_movsi_insn): Add neg_pool_offset attribute.
8156 * config/arm/arm.c (arm_find_barrier): Replace arg FIX with an
8157 rtx for the insn that starts the scan and an unsigned long for its
8158 address. Add MIN_OFFSET and PINSERTED args. All callers changed.
8159 Change scan to ignore insns before MIN_OFFSET. Store size of inserted
8160 instructions in *PINSERTED.
8161 (struct minipool_fixup): Add MIN_ADDRESS elt.
8162 (sort_fixups): Compute it.
8163 (arm_reorg): Changes to support inserting pools before the insn to be
8166 1999-12-08 Bernd Schmidt <bernds@cygnus.co.uk>
8168 * config/arm/elf.h (MULTILIB_DEFAULTS): Add "marm".
8169 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Add "marm".
8170 * config/arm/coff.h (MULTILIB_DEFAULTS): Add "marm".
8172 Wed Nov 3 10:04:07 1999 Nick Clifton <nickc@cygnus.com>
8174 * config/arm/semi.h (TARGET_VERSION): Do not define if already
8176 (TARGET_DEFAULT): Do not define if already defined.
8178 Tue Nov 2 10:37:25 1999 Nick Clifton <nickc@cygnus.com>
8180 * config/arm/arm.md (anddi3): Allow disjoint source operands.
8181 (iordi3): Allow disjoint source operands.
8182 (xordi3): Allow disjoint source operands.
8183 (negdi2): Permit construction for ARM and Thumb.
8184 (arm_negdi2): Renamed version of old negdi2 pattern.
8185 (thumb_negdi2): New pattern: Only permit non-overlapping
8186 source and destination.
8188 Fri Oct 29 18:52:38 1999 Nick Clifton <nickc@cygnus.com>
8190 * config/arm/arm.c (thumb_expand_prologue): Emit a USE of the
8191 scratch low register so that it will not be deleted.
8193 Fri Oct 29 15:23:48 1999 Nick Clifton <nickc@cygnus.com>
8195 * config/arm/pe.h (ARM_PE): Define.
8197 * config/arm/arm.c (arm_valid_machine_decl_attribute): Allow
8198 interfacearm attribute if this is a PE toolchain.
8199 (output_return_instruction): Do not emit anything if the function
8200 has the naked attribute set.
8201 (is_called_in_ARM_mode): If the function has the interfacearm
8202 attribute then return true.
8203 (thumb_expand_prologue): Do not generate a prologue for naked
8205 (thumb_expand_epilogue): Do not generate an epilogie for a naked
8207 (output_thumb_prologue): Do not bother if the function is naked.
8208 Strip PE encoding from function name before emitting.
8210 Thu Oct 28 11:05:13 1999 Richard Earnshaw <rearnsha@arm.com>
8212 * arm.md (pic_load_addr): Fix constraints.
8214 * arm.md (casesi_insn): Fix mis-applied patch.
8216 * arm.md ("core" function unit): Add rules for single- and
8218 (All TARGET_THUMB patterns): Add "type" attribute information
8220 * arm.c (arm_adjust_cost): Reduce the cost of a data dependency if
8221 the following insn is a CALL.
8223 * arm.c (thumb_expand_epilogue): Add a use of the adjusted stack
8225 * arm.h (CONDITIONAL_REGISTER_USAGE): Nail down the
8226 ARM_HARD_FRAME_POINTER_REGNUM when TARGET_APCS_FRAME.
8227 (FRAME_POINTER_REQUIRED): Only check TARGET_APCS_FRAME if TARGET_ARM.
8229 Wed Oct 27 14:40:48 1999 Nick Clifton <nickc@cygnus.com>
8231 * config/arm/linux-gas.h: oops - this file was missed out when the
8232 branch was created...
8234 Tue Oct 26 17:07:38 1999 Richard Earnshaw <rearnsha@arm.com>
8236 * thumb.c: Deleted. Move contents to ...
8238 * t-arm-aout, t-arm-coff, t-arm-elf, t-linux, t-netbsd, t-semi: Remove
8240 * configure.in (arm*-*-*): Remove thumb.o from extra_objs list.
8243 * arm-protos.h: Use RTX_CODE and tidy up long lines. Don't
8244 declare a prototype for asm_output_align();
8246 * arm.c (thumb_condition_code): Delete.
8247 (arm_print_operand): Always use arm_condition_code array.
8249 * arm.c (thumb_return_addr_rtx): Delete.
8250 (arm_save_machine_status, arm_restore_machine_status): Delete.
8251 (arm_init_machine_status, arm_mark_machine_status): New functions.
8252 (arm_init_expanders): Update accordingly.
8253 (arm_return_addr): Renamed from arm_return_addr_rtx. Rewrite.
8254 (thumb_expand_prologue): Delete code referencing thumb_return_addr_rtx.
8255 * arm.h (RETURN_ADDR_RTX): Call arm_return_addr().
8257 Tue Oct 26 13:24:16 1999 Nick Clifton <nickc@cygnus.com>
8259 * configure.in : Fix arm-*-aout target to use new t-arm-aout
8261 * config/arm/t-arm-aout: New file: Makefile script for arm-*-aout
8264 Tue Oct 26 11:27:12 1999 Nick Clifton <nickc@cygnus.com>
8266 * config/arm/thumb.c (output_thumb_prologue): Fix bug creating
8267 stack backtrace structure.
8269 * config/arm/arm-protos.h: Add prototypes for functions defined in
8272 * config/arm/arm.c (arm_override_options): Fix selection of
8273 attributes of default processor.
8275 * config/arm/coff.h: Delete needless #include.
8277 * config/arm/pe.c: Delete unused code.
8279 * config/arm/pe.h (CPP_DEFINES): Delete
8280 (SUBTARGET_CPP_SPEC): Define.
8281 (ASM_DECLARE_FUNCTION_NAME): Use ARM_DECLARE_FUNCTION_NAME.
8283 * config/arm/t-pe: Add -DInhibit_libc to allof libgcc.a to build.
8285 Mon Oct 25 15:42:09 1999 Richard Earnshaw (rearnsha@arm.com)
8287 * arm.h (TARGET_APCS_FRAME): Renamed from TARGET_APCS -- all uses
8289 (CAN_DEBUG_WITHOUT_FP): Define.
8290 (FIXED_REGISTERS): Make r11 call-saved.
8291 (CALL_USED_REGISTERS): Likewise.
8292 (CONDITIONAL_REGISTER_USAGE): Fix r11 if TARGET_APCS_FRAME.
8293 (FRAME_POINTER_REQUIRED): Correct logic for determining when a
8294 frame-pointer is required.
8295 (TARGET_DEFAULT): Make default setting include ARM_FLAG_APCS_FRAME.
8296 * arm.c (arm_override_options): Warn about -mno-apcs-frame and -g
8297 if the target normally needs a stack frame in non-leaf functions.
8298 (use_return_insn): Correct logic for determining when a return
8299 instruction can be used.
8300 (output_return_instruction): Handle the frame-pointer register as
8301 a normal register when not TARGET_APCS_FRAME.
8302 (arm_output_prologue): Likewise.
8303 (arm_output_epilogue): Likewise.
8304 (output_func_epilogue): Likewise.
8305 (arm_expand_prologue): Likewise.
8306 * netbsd.h semi.h (TARGET_DEFAULT): Add ARM_FLAG_APCS_FRAME.
8308 * arm.c (use_return_insn): No need to check floating point regs if
8310 (arm_find_minipool_constant): Correct typo; use GET_CODE to get
8311 the code of value stored in the minipool array.
8312 (arm_add_minipool_constant): Likewise.
8314 2000-04-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8316 * basic-block.h (conflict_graph_enum_fn): K&R fix.
8318 2000-04-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8320 * tree.c (tree_expr_nonnegative_p): New function.
8322 * tree.h (tree_expr_nonnegative_p): Declare.
8324 * c-typeck.c (build_binary_op): Call `tree_expr_nonnegative_p' to
8325 elide some sign_compare warnings.
8326 (build_conditional_expr): Likewise.
8328 Sat Apr 8 00:21:51 EDT 2000 John Wehle (john@feith.com)
8330 * i386.md (ashrsi3, ashrhi3, ashrqi3): Fix typo.
8332 * i386.md (floathisf2, floathidf2, floathixf2): New patterns.
8333 * i386.c (print_operand): Use the proper suffix for a 387 HImode
8334 operand. Abort if a 387 operand has an unsupported size.
8336 2000-04-08 Neil Booth <NeilB@earthling.net>
8338 * cppexp.c (parse_charconst): Null does not end character
8340 * cppinit.c (ISTABLE): Null character handled as whitespace.
8341 * cpplex.c (null_warning): new function.
8342 (skip_string): Emit warning if nulls encountered.
8343 (_cpp_skip_hspace): Emit warning if nulls encountered.
8344 (_cpp_lex_token): Emit warning if nulls encountered. Drop
8348 2000-04-07 Richard Henderson <rth@cygnus.com>
8350 * flow.c (loop_depth): Remove.
8351 (reg_next_use, cc0_live, mem_set_list): Replace with ...
8352 (struct propagate_block_info): New.
8353 (life_analysis): Don't allocate reg_next_use.
8354 (propagate_block_delete_insn): Break out of propagate_block.
8355 Use flow_delete_insn to unlink rather than use NOTE_INSN_DELETED.
8356 (propagate_block_delete_libcall): Likewise.
8357 (propagate_block): Create a propagate_block_info struct to pass
8358 to subroutines. Allocate one not two temporary regsets. Don't
8359 clobber memory for const calls. Look for clobbers in
8360 CALL_INSN_FUNCTION_USAGE.
8361 (mark_set_regs): Recognize COND_EXEC.
8362 (mark_set_reg): Break out of mark_set_1.
8363 (mark_used_reg): Break out of mark_used_regs.
8364 (mark_used_regs): Recognize COND_EXEC.
8365 (insn_dead_p): Use propagate_block_info struct.
8366 (libcall_dead_p, invalidate_mems_from_autoinc): Likewise.
8367 (find_auto_inc, try_pre_increment_1): Likewise.
8368 (print_rtl_with_bb): Dump regs live at end too.
8369 (count_reg_sets_1): Pass in loop_depth.
8370 (count_reg_sets, count_reg_references): Likewise.
8371 (recompute_reg_usage): Provide it.
8373 2000-04-07 Richard Henderson <rth@cygnus.com>
8375 * Makefile.in (conflict.o): Depend on $(RTL_H) and $(BASIC_BLOCK_H)
8378 2000-04-07 Zack Weinberg <zack@wolery.cumb.org>
8380 * cpplib.c (do_elif): Skip the rest of the line if we're
8381 not going to bother evaluating it.
8382 (skip_if_group): Clear pfile->only_seen_white. Reorder loop
8383 to avoid pointless calls to the lexer.
8385 Fri Apr 7 11:50:54 2000 Jim Wilson <wilson@cygnus.com>
8387 * config/ia64/ia64.c: Delete stdio.h and ctype.h includes.
8389 2000-04-07 Jason Merrill <jason@casey.cygnus.com>
8391 * calls.c (expand_call): emit_queue if we're trying a sibcall.
8393 2000-04-07 Jakub Jelinek <jakub@redhat.com>
8395 * config/sparc/t-linux64 (tcrtbeginS.o, tcrtendS.o): Remove.
8397 2000-04-06 Geoff Keating <geoffk@cygnus.com>
8399 * Makefile.in: Build crtbeginS and crtendS like crtbegin and
8400 crtend so they can be multilibbed.
8401 (STAGESTUFF): Remove s-crt and s-crtS.
8403 2000-04-07 Richard Henderson <rth@cygnus.com>
8405 * config/alpha/alpha.c (alpha_emit_conditional_move): Fail
8406 if we discover we need a pseudo and no_new_pseudos is true.
8407 * config/alpha/alpha.md (ne:DI insn): New.
8408 (trunctfsf2, sne): Emit NE instead of non-canonical LTU.
8410 2000-04-07 Richard Henderson <rth@cygnus.com>
8412 * rtl.def (COND_EXEC): New.
8413 * rtl.h (COND_EXEC_TEST, COND_EXEC_CODE): New.
8414 * tm.texi (MAX_CONDITIONAL_EXECUTE): Document.
8416 * genconfig.c (have_cond_arith_flag): Remove.
8417 (have_cond_exec_flag): New.
8418 (walk_insn_part): Detect COND_EXEC, not arithmetic in IF_THEN_ELSE.
8419 (main): Print HAVE_conditional_execution.
8421 * haifa-sched.c (haifa_classify_insn): Recognize COND_EXEC.
8422 (sched_analyze_insn, print_pattern): Likewise.
8423 * reload.c (find_equiv_reg): Likewise.
8424 * rtlanal.c (reg_referenced_p): Likewise.
8425 (note_stores, dead_or_set_regno_p): Likewise.
8426 (reg_overlap_mentioned_p): Rewrite to use a switch.
8428 * ggc.h (struct rtx_def): Forward declare.
8430 * print-rtl.c (debug_rtx_range): New.
8431 * rtl.h (debug_rtx_range): Declare.
8433 * varray.h (VARRAY_ACTIVE_SIZE, VARRAY_POP_ALL): New.
8435 * gcse.c (gcse_main): Don't rebuild the CFG here.
8436 (delete_null_pointer_checks): Likewise.
8437 * ssa.c (convert_to_ssa): Likewise.
8438 * toplev.c (rest_of_compilation): Do it here instead. Combine
8439 sequential calls to TIMEVAR. Consistently use `insns' instead of
8440 `get_insns()'. Always split insns after reload when optimizing.
8442 * basic-block.h (merge_blocks_nomove): Declare.
8443 (tidy_fallthru_edge): Declare.
8444 * flow.c (merge_blocks_nomove): Document as merging into previous
8445 blocks. Remove cruft from between blocks; remove all edges out of A.
8446 (tidy_fallthru_edge): Export.
8448 2000-04-06 Alex Samuel <samuel@codesourcery.com>
8450 * ssa.c (compute_conservative_reg_partition): Declare with
8452 * toplev.c (clean_dump_file): Remove previously-deleted function
8453 inadvertantly merged back in.
8454 * conflict.c (conflict_graph_add): Use a single call to
8455 htab_find_slot to look up and insert.
8457 2000-04-06 Richard Henderson <rth@cygnus.com>
8459 * genrecog.c (*): Rename _last_insn to last_insn.
8460 (make_insn_sequence): Set the position of the peephole2 C test
8461 to be at the last insn.
8463 2000-04-06 Richard Henderson <rth@cygnus.com>
8465 * flow.c (compute_flow_dominators): Free worklist.
8467 2000-04-06 Michael Matz <matzmich@cs.tu-berlin.de>
8469 * flow.c (compute_flow_dominators): Process blocks FIFO not LIFO.
8471 2000-04-06 Alex Samuel <samuel@codesourcery.com>
8473 * rtl.h (INSN_P): New macro.
8474 (successor_phi_fn): New typedef.
8475 (for_each_successor_phi): New prototype.
8476 (in_ssa_form): New variable.
8477 (PHI_NODE_P): Likewise.
8478 * flow.c (calculate_global_regs_live): Add to new_live_at_end from
8479 phi nodes in successors.
8480 (mark_used_regs): Add PHI case.
8481 (set_phi_alternative_reg): New function.
8482 (life_analysis): Assert that dead code elimination is not selected
8484 * toplev.c (to_ssa_time): New variable.
8485 (from_ssa_time): Likewise.
8486 (compile_file): Zero to_ssa_time and from_ssa_time.
8487 Print time to convert to and from SSA.
8488 (rest_of_compilation): Time convert_to_ssa and convert_from_ssa.
8489 (print_time): Compute percent fraction as integer.
8490 * ssa.c (PHI_NODE_P): Moved to rtl.h.
8491 (convert_to_ssa): Check if we're already in SSA.
8492 Don't eliminate dead code in life_analysis.
8493 Rerun flow and life analysis at bottom.
8494 (eliminate_phi): Use canonical regnos when adding nodes.
8495 (mark_reg_in_phi): New function.
8496 (mark_phi_and_copy_regs): Likewise.
8497 (convert_from_ssa): Rerun life analysis at top.
8498 Use coalesced partition.
8499 Check for removing a phi node at the end of the block.
8500 (compute_coalesced_reg_partition): New function.
8501 (coalesce_regs_in_copies): Likewise.
8502 (coalesce_reg_in_phi): Likewise.
8503 (coalesce_regs_in_sucessor_phi_nodes): Likewise.
8504 (for_each_successor_phi): Likewise.
8505 (rename_context): New struct.
8506 (rename_block): Use a rename_context with rename_insn_1. When
8507 renaming sets of a subreg, emit a copy of the entire reg first.
8508 (rename_insn_1): Treat data as a rename_context *. Save current
8510 (rename_set_data): Add field set_insn.
8511 * Makefile.in (HASHTAB_H): Move up in file.
8512 (OBSTACK_H): New macro.
8513 (collect2.o): Use OBSTACK_H in dependencies.
8514 (sdbout.o): Likewise.
8515 (emit-rtl.o): Likewise.
8516 (simplify-rtx.o): Likewise.
8517 (fix-header.o): Likewise.
8518 (OBJS): Add conflict.o.
8519 (conflict.o): New rule.
8520 * basic-block.h: Include partition.h.
8521 (conflict_graph): New typedef.
8522 (conflict_graph_enum_fn): Likewise.
8523 (conflict_graph_new): New prototype.
8524 (conflict_graph_delete): Likewise.
8525 (conflict_graph_add): Likewise.
8526 (conflict_graph_conflict_p): Likewise.
8527 (conflict_graph_enum): Likewise.
8528 (conflict_graph_merge_regs): Likewise.
8529 (conflict_graph_print): Likewise.
8530 (conflict_graph_compute): Likewise.
8531 * conflict.c: New file.
8533 2000-04-06 Jason Merrill <jason@yorick.cygnus.com>
8535 * tlink.c (read_repo_files): Don't look for .rpo info for
8538 Thu Apr 6 20:39:26 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
8540 * sh.h (STRUCT_VALUE, RETURN_IN_MEMORY): Define.
8542 Thu Apr 6 19:34:08 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
8544 * config/sh/lib1funcs.asm (___udivsi3_i4):
8545 ( __SH4_SINGLE__ / __SH4_SINGLE_ONLY__ variant): value for fpscr
8546 only depends on FMOVD_WORKS.
8548 Thu Apr 6 19:11:47 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
8550 * config/sh/lib1funcs.asm (___udivsi3_i4): When using fmovd,
8551 make double constant 8-byte aligned.
8553 2000-04-06 Jakub Jelinek <jakub@redhat.com>
8555 * config/sparc/sparc.md (movtf_insn_sp32, movtf_insn_vis_sp32,
8556 movtf_no_e_insn_sp32, movtf_insn_hq_sp64, movtf_insn_hq_vis_sp64,
8557 movtf_no_e_insn_sp64): Accept loading 0.0 into GENERAL_REGS.
8558 (movtf_insn_sp64, movtf_insn_vis_sp64): Likewise.
8559 Accept storing GENERAL_REGS into offsetable memory.
8560 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Don't allow
8561 building a TFmode constant other than 0.0L into GENERAL_REGS.
8563 2000-04-06 Clinton Popetz <cpopetz@cygnus.com>
8565 * regrename.c (regrename_optimize): Handle no REG_ALLOC_ORDER.
8567 2000-04-06 Zack Weinberg <zack@wolery.cumb.org>
8569 * cpphash.c (CPP_IS_MACRO_BUFFER, FORWARD, PEEKC): Delete.
8570 (macro_cleanup): No need to cast pbuf->macro.
8571 (collect_expansion): Use _cpp_get_define_token. Goto done if
8572 it returns VSPACE. Remove check for trailing space after
8574 (_cpp_create_definition): Don't diddle flags here. Return
8576 (unsafe_chars): Handle c1 being EOF.
8577 (push_macro_expansion): Use unsafe_chars for both accidental-paste
8578 checks. Don't push the buffer till after we're done with
8580 * cpplex.c (PEEKBUF, GETBUF, FORWARDBUF): New.
8581 (PEEKN, FORWARD, GETC, PEEKC): Use them.
8582 (cpp_push_buffer): Don't set new->alimit. Set new->mark
8584 (_cpp_parse_assertion): Don't NUL terminate.
8585 (_cpp_lex_token): Fix -traditional macro handling. Don't skip
8586 hspace before calling _cpp_parse_assertion. Remove all sets
8587 of only_seen_white. Treat '\f' as hspace. Don't do anything
8588 special with '\n' here.
8589 (maybe_macroexpand): Handle T_EMPTY hash entries without
8590 pushing a buffer at all.
8591 (cpp_get_token): Handle clearing only_seen_white here. Handle
8592 incrementing the line number here. Clear
8593 potential_control_macro as well as only_seen_white, if
8595 (cpp_get_non_space_token): Don't eat CPP_POP tokens.
8596 (_cpp_get_define_token): New function, basically like
8597 _cpp_get_directive_token was but doesn't eat horizontal space.
8598 Don't do anything with only_seen_white here.
8599 (_cpp_get_directive_token): Just call _cpp_get_define_token
8600 repeatedly till it returns non-hspace.
8602 * cpplib.c (PEEKN, FORWARD, GETC, PEEKC): Delete.
8603 (conditional_skip, skip_if_group): Return int.
8604 (DIRECTIVE_TABLE): Change origin of all conditional directives
8606 (TRAD_DIRECT_P): New macro.
8607 (_cpp_handle_directive): Use _cpp_get_directive_token. Issue
8608 an error for a bogus directive, unless -lang-asm. Use
8609 TRAD_DIRECT_P. Loop calling handler functions till one returns
8611 (get_macro_name): Don't diddle flags here.
8612 (do_define): Diddle flags here. Use _cpp_get_directive_token.
8613 Create T_EMPTY nodes for #define macro /* nothing */.
8614 (do_undef): Don't copy the name. Use _cpp_get_directive_token.
8615 Use hp->name when calling pass_thru_directive.
8616 (do_if, do_else, do_elif, do_ifdef, do_ifndef, conditional_skip):
8617 Return the result of conditional_skip and/or skip_if_group.
8618 Don't call _cpp_output_line_command.
8619 (consider_directive_while_skipping): Use _cpp_get_directive_token.
8620 Issue -Wtraditional warnings as appropriate. Don't complain
8621 about unrecognized directives. If we are to stop skipping,
8622 return the number of the directive that ended the skip.
8623 (skip_if_group): Use _cpp_get_directive_token. Turn off macro
8624 expansion and line commands while skipping. Return the result
8625 of consider_directive_while_skipping, if nonzero.
8626 (do_endif): Just set potential_control_macro here.
8627 (validate_else): Use _cpp_get_directive_token.
8628 (do_assert, do_unassert): Don't save pointers into the
8629 token_buffer across calls to the lexer. Use
8630 _cpp_get_directive_token.
8632 * cpplib.h (cpp_buffer): Remove alimit and colno. Make mark a
8633 pointer, not an offset. Replace 'data', which was a generic
8634 pointer, with 'macro', which points to a struct hashnode.
8635 (cpp_reader): Add 'potential_control_macro' pointer.
8636 * cpphash.h (T_UNUSED): Replace with T_EMPTY.
8637 (CPP_BUF_GET, CPP_FORWARD): Delete.
8638 (CPP_IN_COLUMN_1, ADJACENT_TO_MARK): New macros.
8639 (CPP_IS_MACRO_BUFFER, CPP_SET_BUF_MARK, CPP_GOTO_BUF_MARK,
8640 ACTIVE_MARK_P): Update.
8641 (_cpp_get_define_token): New internal function.
8642 * cppfiles.c (read_include_file): Don't set fp->alimit or fp->colno.
8644 2000-04-05 Benjamin Kosnik <bkoz@cygnus.com>
8646 * configure.in: And here.
8647 * configure: Regenerate.
8648 * acconfig.h: Add ENABLE_STD_NAMESPACE to set flag_honor_std if
8649 --enable-libstdcxx-v3 is passed at configure time.
8650 * config.h.in: Regenerate.
8652 2000-04-05 Mark Mitchell <mark@codesourcery.com>
8654 * final.c (final): Use xcalloc to allocate line_note_exists.
8655 * function.c (free_after_compilation): Free the temp_slots.
8656 (assign_stack_temp_for_type): Use xmalloc to allocate temp_slots.
8657 (combine_temp_slot): Free temp_slots when they get combined.
8658 (purge_addressof): Fix typo in comment.
8659 * stmt.c (mark_goto_fixup): Mark the fixup itself.
8660 (expand_fixup): Allocate the fixup with ggc_alloc_obj.
8662 * ggc.h: Include varray.h.
8663 (ggc_pending_trees): Declare.
8664 (ggc_mark_tree_children): Remove declaration.
8665 (ggc_mark_tree): Just push unmarked trees on ggc_pending_trees.
8666 * ggc-common.c (ggc_pending_trees): New variable.
8667 (ggc_mark_roots): Call ggc_mark_trees.
8668 (ggc_mark_tree_children): Rename to ggc_mark_trees. Process all
8669 the ggc_pending_trees.
8670 * Makefile.in (GGC_H): New variable. Use it throughout in place
8673 Thu Apr 6 00:30:50 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
8675 * sh.h (FUNCTION_ARG_PARTIAL_NREGS): Accomodate an unsigned
8678 Wed Apr 5 23:17:10 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
8680 * sh.c (sh_insn_length_adjustment): New function.
8681 * sh-protos.h (sh_insn_length_adjustment): Declare.
8682 * sh.h (ADJUST_INSN_LENGTH): Use it.
8684 Wed Apr 5 12:35:18 2000 Hans-Peter Nilsson <hp@axis.com>
8686 * optabs.c (emit_libcall_block): Remove spurious REG_EQUAL notes
8687 from the insn where REG_RETVAL is added.
8688 (emit_no_conflict_block): Ditto.
8690 * md.texi (Standard Names): Clarify when movX is needed.
8692 * combine.c (simplify_comparison) [MINUS]: Do not replace
8693 all (op (minus A B) 0) with (op A B).
8695 Wed Apr 5 18:03:31 2000 Toshiyasu Morita (toshi.morita@sega.com)
8696 J"orn Rennecke <amylaar@cygnus.co.uk>
8698 * sh.md (block_lump_real_i4): Add missing clobber of T_REG
8699 (block_lump_real): Likewise.
8701 2000-04-05 Chris Demetriou <cgd@netbsd.org>
8703 * mips.h (MASK_DEBUG_A, MASK_DEBUG_B, MASK_DEBUG_C): Zero the
8704 remaining non-zero debugging masks.
8706 Wed Apr 5 09:44:07 2000 Jeffrey A Law (law@cygnus.com)
8708 * basic-block.h (verify_flow_info): Declare.
8709 (flow_loop_outside_edge_p): Declare.
8710 * flow.c (verify_flow_info): Remove declaration.
8711 (clear_log_links, flow_loop_outside_edge_p): Likewise.
8713 Wed Apr 5 09:34:26 2000 Philippe De Muyter <phdm@macqel.be>
8715 * m68k/m68k-protos.h (finalize_pic): Turn prototype off using `#if 0',
8718 2000-04-05 Jakub Jelinek <jakub@redhat.com>
8720 * config/sparc/sparc.md (snedi_zero+1, neg_snedi_zero+1,
8721 snedi_zero_trunc+1, seqdi_zero+1, neg_seqdi_zero+1,
8722 seqdi_zero_trunc+1): Allow splits only if registers are
8725 2000-04-04 Ulrich Drepper <drepper@cygnus.com>
8727 * acconfig.h: Add HAVE_GAS_HIDDEN.
8728 * config.in: Regenerated.
8729 * configure.in: Add test for .hidden pseudo-op in gas.
8730 * configure: Regenerated.
8731 * crtstuff.c: Include auto-host.h.
8732 Emit additional .hidden pseudo-op for __dso_handle if the
8733 assembler knows about it.
8735 2000-04-04 Philippe De Muyter <phdm@macqel.be>
8737 * cpphash.c (_cpp_free_definition): Test argnames, not nargs >= 0,
8738 before freeing argnames.
8739 * cpplib.c (do_ifndef): Cast return value of xstrdup.
8741 2000-04-05 Michael Meissner <meissner@redhat.com>
8743 * config/rs6000/rs6000.c (print_operand): Patch from Jonathan
8744 Walton <jonboy@gordian.com> to make memory references with update
8745 work wtih -mregnames.
8747 2000-04-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8749 * regrename.c (regno_first_use_in): Wrap prototype in PARAMS.
8750 (regrename_optimize): Rename variables `def_uses' and
8751 `ext_basic_blocks' to avoid conflicts with similarly named
8752 typedefs in traditional C.
8754 * calls.c (initialize_argument_information): Fix typo in previous
8757 2000-04-04 Richard Henderson <rth@cygnus.com>
8759 * regrename.c (consider_available): Test fixed_regs not
8760 PIC_OFFSET_TABLE_REGNUM.
8762 2000-04-04 Geoff Keating <geoffk@cygnus.com>
8764 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbegin,
8766 (CRTSTUFF_T_CFLAGS_S): Delete definition.
8767 * config/rs6000/sysv4.h (STARTFILE_LINUX_SPEC): Always use crtbegin.
8768 (ENDFILE_LINUX_SPEC): Always use crtend.
8769 * configure.in (powerpc-*-linux-gnulibc1): Don't define extra_parts.
8770 (powerpc-*-linux-gnu): Likewise.
8771 * configure: Regenerate.
8773 * config/rs6000/eabi.h: Don't include sysv4.h.
8774 (MULTILIB_DEFAULTS): Don't define.
8775 * config/rs6000/eabiaix.h: Don't include eabi.h.
8776 * config/rs6000/eabile.h: Delete.
8777 * config/rs6000/eabilesim.h: Delete.
8778 * config/rs6000/eabisim.h: Don't include eabi.h.
8779 * config/rs6000/linux.h: Don't include sysv4.h.
8780 (JUMP_TABLES_IN_TEXT_SECTION): Don't redefine.
8781 (MULTILIB_DEFAULTS): Don't redefine.
8782 * config/rs6000/rtems.h: Don't include eabi.h.
8783 * config/rs6000/sol2.h: Don't include sysv4le.h.
8784 * config/rs6000/sysv4le.h: Don't include sysv4.h.
8785 * config/rs6000/t-ppc: Delete.
8786 * config/rs6000/t-ppcgas: Correct comment.
8787 * config/rs6000/t-ppcos: Correct comment. Don't build
8788 multilibs for -fPIC, rather use -fPIC -mstrict-align
8790 * config/rs6000/t-ppc: Delete.
8791 * config/rs6000/vxppc.h: Don't include sysv4.h.
8792 * config/rs6000/vxppcle.h: Delete.
8793 * configure.in: Use multiple header files for p2pc ELF targets
8794 powerpc-eabiaix, powerpc-eabisim, powerpc-rtems, powerpcle-eabi,
8795 powerpcle-eabisim, powerpc-elf, powerpcle-elf, powerpc-linux-gnu,
8796 powerpc-linux-gnulibc1, powerpc-sysv, powerpcle-sysv,
8797 powerpc-vxworks, powerpcle-vxworks. Assume GAS functionality is
8798 always available for these platforms.
8800 2000-04-04 Richard Henderson <rth@cygnus.com>
8802 * calls.c (try_to_integrate): Initialize reg_parm_stack_space.
8804 2000-04-04 Stan Cox <scox@cygnus.com>
8806 * Makefile.in: Add rules for regrename.o
8807 * regrename.c: New file.
8808 * rtl.h (regrename_optimize): Add prototype.
8809 * toplev.c (rename_registers_dump, flag_rename_registers): New variables
8810 (compile_file, decode_d_option): Add support for -frename-registers.
8811 (rest_of_compilation): Call regrename_optimize.
8812 * config/ia64/ia64.h (HARD_REGNO_RENAME_OK, RENAME_EXTENDED_BLOCKS):
8815 2000-04-04 Martin v. Löwis <loewis@informatik.hu-berlin.de>
8817 * Makefile (gccbug): New target.
8818 (doc): Depend on it.
8819 * gcc.texi (Bugs): Link subnodes.
8821 * gccbug.in (CATEGORIES): Remove gc, host, profiling, libgcc.
8822 Document severities, priorities, and classes in bug form.
8824 2000-04-04 Zack Weinberg <zack@wolery.cumb.org>
8826 * cpplex.c (trigraph_map, speccase): Combine into single
8828 (NORMAL, NONTRI): New macros.
8829 (_cpp_read_and_prescan): Change to use unified table. Use
8830 is_hspace to test for whitespace.
8832 * dbxout.c (CONTIN): If it doesn't have to do anything, give it a
8833 definition that doesn't provoke the "empty body in an
8834 if-statement" warning.
8836 2000-04-04 Clinton Popetz <cpopetz@cygnus.com>
8838 * builtins.c (expand_builtin_strlen): Force the source to
8839 be a memory address.
8841 2000-04-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8843 * cpplib.c (D): Adjust to call CONCAT2 macro without whitespace.
8845 Tue Apr 4 19:17:20 MET DST 2000 Jan Hubicka <jh@suse.cz>
8847 * calls.c (ECF_MALLOC, ECF_MAY_BE_ALLOCA, ECF_RETURNS_TWICE,
8848 ECF_LONGJMP, ECF_FORK_OR_EXEC): New constants.
8849 (ECF_IS_CONST): Rename to ECF_CONST.
8850 (special_function_p): Make static, change interface.
8851 (flags_from_decl_or_type, try_to_integrate): Break out from ...
8852 (expand_call) ... here; convert number of variables to flags.
8853 (emit_library_call_vlue_1): Likewise.
8854 (setjmp_call_p): New function.
8855 (initialize_argument_information): Accepts flags as argument;
8857 (precompute_arguments): Likewise.
8858 * tree.h (special_function_p): Remove.
8859 (setjmp_call_p): Add prototype.
8861 2000-04-04 Jakub Jelinek <jakub@redhat.com>
8863 * config/sparc/sparc.h (RTX_OK_FOR_OFFSET_P): Leave minor margin
8864 so that addresses are offsetable by up to 16 bytes.
8865 (GO_IF_LEGITIMATE_ADDRESS): Don't allow REG+REG addresses for
8866 non-optimizing TARGET_ARCH32 in DF or DI modes because it is not
8869 * config/sparc/sparc.md (movdi_insn_sp64_novis): New pattern.
8870 (movdi_insn_sp64_vis): Renamed from movdi_insn_sp64.
8871 (movsf): Don't force any constant to memory if target is integer
8873 Move fp_zero_operand check below the const0_rtx check.
8874 (movtf): Likewise. Also allow fp_zero_operand for stores into
8876 (movdf): Likewise. Also allow fp_zero_operand for stores into
8877 memory and into integer hard registers.
8878 (clear_df, clear_dfp, movdf_const_intreg_sp32,
8879 movdf_const_intreg_sp64): Remove.
8880 (movdf_insn_sp32, movdf_no_e_insn_sp32): Redo constraints and
8882 (movdf_no_e_insn_v9_sp32): New pattern.
8883 (movdf_insn_v9only): Remove.
8884 (movdf_insn_v9only_novis, movdf_insn_v9only_vis): New patterns.
8885 (movdf_insn_sp64): Remove.
8886 (movdf_insn_sp64_novis, movdf_insn_sp64_vis): New patterns.
8887 (movdf_no_e_insn_sp64): Allow storing 0.0 into memory.
8888 (following splits): Rewrite conditions. Add two new splits
8889 for storing 0.0 into memory and registers.
8890 (clear_tf, clear_tf+1, clear_tfp, clear_tfp+1): Remove.
8891 (movtf_insn_sp32): Redo constraints and conditions.
8892 (movtf_insn_vis_sp32): New pattern.
8893 (movtf_no_e_insn_sp32): Redo constraints and conditions.
8894 (movtf_insn_hq_sp64): Likewise.
8895 (movtf_insn_hq_vis_sp64): New pattern.
8896 (movtf_insn_sp64): Redo constraints and conditions.
8897 (movtf_insn_vis_sp64): New pattern.
8898 (movtf_no_e_insn_sp64): Redo constraints and conditions.
8899 (movtf_no_e_insn_sp64+1): New split for storing 0.0L into registers
8901 * config/sparc/sparc.c (sparc_override_options): Assume v9 if either
8902 -mvis or -m64 to take down the number of various reload patterns.
8904 Tue Apr 4 00:41:53 2000 Jeffrey A Law (law@cygnus.com)
8906 * pa/pa-64.h: New file.
8907 * pa/pa64-regs.h: New file.
8908 * pa/pa64-start.h: New file.
8909 * pa/t-pa64: New file.
8910 * pa/xm-pa64hpux.h: New file.
8912 2000-04-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8914 * sparc.c (output_restore_regs): Prototype.
8915 (sparc_emit_float_lib_cmp): Constification.
8917 * emit-rtl.c (const_int_htab_hash, const_int_htab_eq): Likewise.
8919 * reload1.c (reload_cse_delete_noop_set, reload_cse_simplify):
8922 * simplify-rtx.c (entry_and_rtx_equal_p): Constification.
8923 (get_value_hash, hash_rtx): Likewise.
8925 * ssa.c (compute_conservative_reg_partition): Prototype.
8927 * tree.c (mark_hash_entry): Prototype.
8929 2000-04-03 Zack Weinberg <zack@wolery.cumb.org>
8931 * bb-reorder.c (verify_insn_chain): #ifdef out unless ENABLE_CHECKING.
8932 * i386.h (FUNCTION_ARG_REGNO_P): Remove unnecessary test for N >= 0.
8933 * i386.md (call_value, call_value_pop): Remove unused variable 'addr'.
8935 * gcc.c (C specs): Pass -fno-show-column to the preprocessor.
8936 * objc/lang-specs.h: Likewise.
8938 2000-04-03 Neil Booth <NeilB@earthling.net>
8940 * cppexp.c: wrap long lines. New macros CPP_ICE, SYNTAX_ERROR
8941 and SYNTAX_ERROR2. Replace `' in messages with ''.
8942 (op_to_str): Make re-entrant.
8943 (_cpp_parse_expr): Implement new error macros. Use | rather
8944 than || to logically or 2 boolean integers. Simply expression
8945 checking we have a left operand iff needed.
8947 2000-04-03 Nick Clifton <nickc@cygnus.com>
8949 * Makefile.in (diagnostic.o): Depend upon diagnostic.c
8951 2000-04-03 Philip Blundell <philb@gnu.org>
8953 * config/arm/linux-elf.h (SUBTARGET_EXTRA_LINK_SPEC): Fix typos.
8955 2000-04-03 Felix Lee <flee@cygnus.com>
8957 * fixinc/server.c (find_shell): New function. Avoid $SHELL.
8958 (run_shell): Use it.
8960 2000-04-03 Jonathan Larmour <jlarmour@redhat.co.uk>
8962 * Makefile.in (stmp-int-hdrs): Make include subdir here...
8963 (stmp-fixproto): ...rather than here.
8965 Mon Apr 3 00:50:06 2000 Jason Eckhardt <jle@cygnus.com>
8967 * pa.c (print_operand): Compute 'base' only inside the code paths
8970 2000-04-03 Geoffrey Keating <geoffk@cygnus.com>
8972 * stor-layout.c (byte_from_pos): Use TRUNC_DIV_EXPR rather than
8975 2000-04-03 Philipp Thomas <pthomas@suse.de>
8977 * i386.h (TARGET_SWITCHES): Remove bogus empty strings, fix typo.
8979 Mon Apr 3 00:02:59 2000 Brad Lucier <lucier@math.purdue.edu>
8981 * Makefile.in (alias.o): Depend on $(TREE_H).
8983 2000-04-02 Zack Weinberg <zack@wolery.cumb.org>
8985 * cppinit.c (cpp_start_read): Turn off -Wtraditional if
8987 * cpplib.c (_cpp_handle_directive): Improve warnings for
8988 traditional C and indented directives.
8990 * enquire.c, gsyslimits.h, limity.h, config/convex/fixinc.convex,
8991 fixinc/fixinc.irix, fixinc/fixinc.sco, fixinc/fixinc.wrap,
8992 fixinc/inclhack.def: Indent the # of #include_next one space.
8993 * cp/rtti.c: Un-indent #if and #endif.
8995 * cppexp.c (_cpp_parse_expr): If lex returns '#', it's a
8996 syntax error, but an error has already been printed.
8997 * cpplex.c (_cpp_parse_assertion): Give a more specific error
8998 message when called with nothing remaining on the line.
8999 (_cpp_lex_token): If _cpp_parse_assertion fails, return an
9000 OTHER token, not an ASSERTION.
9001 * cpplib.c (do_assert): When we create a 'base' node, clear
9002 its aschain pointer.
9004 2000-04-02 Neil Booth <NeilB@earthling.net>
9006 * cppexp.c: New typedef op_t. struct operation and struct
9007 token updated to use it.
9008 (op_to_str): New function.
9009 (_cpp_parse_expr): Error messages modified to use op_to_str.
9011 2000-04-02 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
9013 * config/c4x/c4x.c (c4x_function_arg): Check for void_type_node
9014 before checking MUST_PASS_IN_STACK.
9016 2000-04-02 Neil Booth <NeilB@earthling.net>
9018 * cppexp.c: New FINISHED dummy token. Combine operator initial
9019 flags and initial priority into a single constant. New
9020 EQUALITY macro. New operator flag SHORT_CIRCUIT.
9021 (_parse_cpp_expr): Implement new constants. Take left operand
9022 checks out of reduction loop. Handle SHORT_CIRCUIT. End of
9023 parse indicated by reducing FINISHED token. Remove new lines
9024 from cpp_error messages.
9026 2000-04-01 Mark Mitchell <mark@codesourcery.com>
9028 * emit-rtl.c (gen_rtx_CONST_INT): Create cached CONST_INTs on the
9031 2000-04-01 Zack Weinberg <zack@wolery.cumb.org>
9033 * cpplib.c: Include symcat.h. Add 'origin' field to struct
9034 directive. Add origin values to DIRECTIVE_TABLE. Generate
9035 the strings and function names on the fly. Take the #sccs
9036 entry out of the table if SCCS_DIRECTIVE is not defined.
9037 (_cpp_handle_directive): Decide if the # was at the beginning
9038 of the line here. Issue -pedantic warnings for extended
9039 directives here. Warn about K+R directives with the #
9040 indented, and C89/extended directives with the # not indented,
9042 (do_import, do_include_next, do_warning, do_ident, do_sccs,
9043 do_assert, do_unassert): Don't issue pedantic warning here.
9045 * cpphash.h: Add CPP_WTRADITIONAL macro.
9046 * cpplib.h (struct cpp_options): Rename warn_stringify to
9047 warn_traditional; update comments.
9048 * cppinit.c (handle_option): Set warn_traditional not
9050 * cpphash.c: Replace CPP_OPTION (pfile, warn_stringify) with
9051 CPP_WTRADITIONAL (pfile).
9052 * cpplex.c (_cpp_lex_token): Don't decide if directives should
9053 be ignored in -traditional mode here.
9055 * cpplex.c: Copy ISTABLE macros from cppinit.c, and adapt them
9056 to initialize speccase[] and trigraph_map[]. Delete all
9057 references to pfile->input_speccase. Always treat '?' as a
9058 special character. Remove table-initialization code from
9059 _cpp_init_input_buffer.
9061 * cpplib.h (struct cpp_reader): Remove input_speccase field.
9062 * cppinit.c (cpp_cleanup): Don't free input_speccase.
9064 2000-04-01 Richard Henderson <rth@cygnus.com>
9066 * Makefile.in (STAGESTUFF): Wildcard all debugging dumps at once.
9067 (mostlyclean): Likewise.
9069 * toplev.c (rtl_dump, jump_opt_dump, etc): Remove.
9070 (struct dump_file_info, enum dump_file_index, dump_file): New.
9071 (open_dump_file): Take a dump_file_index not a suffix, and a decl
9072 not a string. Clean out file if we havn't yet done so. Do nothing
9073 if the dump isn't enabled.
9074 (close_dump_file): Do nothing if the dump isn't open. Dump
9075 graph data if requested.
9076 (dump_rtl, clean_dump_file): Remove.
9077 (compile_file): Don't clean the dump files. Only finalize .bp dump
9078 if flag_test_coverage or flag_branch_probabilities. Only finalize
9079 .combine dump if optimizing. Iterate over dump_file to finalize the
9081 (rest_of_compilation): Update for open_dump_file/close_dump_file.
9082 Convert all uses of dump_rtl.
9083 (decode_d_option): Iterate over dump_file to implement 'a' and to
9084 locate pass-specific dumps.
9086 2000-04-01 Neil Booth <NeilB@earthling.net>
9088 * cppexp.c: Redefine priority constants.
9089 (_cpp_parse_expr): Replace left and right priority scheme with
9090 single priority logic. Move LOGICAL to same place as COMPARE.
9091 Remove bogus check for multiple unary +/- operators.
9093 2000-04-01 Neil Booth <NeilB@earthling.net>
9095 * cppexp.c: (_cpp_parse_expr): Numerical constants are pushed
9096 within the switch statement. Binary operations break out of
9097 the switch naturally. '(' tokens handled by forcing
9098 immediate shift. ')' handled by forcing immediate reduce to
9099 the previous '('. New error messages.
9101 2000-03-31 Geoff Keating <geoffk@cygnus.com>
9103 * config/rs6000/rs6000.c (print_operand): Don't use %l for 'low
9104 part', it's already in use. Use %K instead. Add a return at the
9105 end of what is now %K.
9106 * config/rs6000/rs6000.md (elf_low): Use %K instead of %l.
9108 Sat Apr 1 02:05:29 MET DST 2000 Jan Hubicka <jh@suse.cz>
9110 * builtins.c (expand_builtin_apply): Pass proper parameters to
9111 allocate_dynamic_stack_space.
9112 * calls.c (emit_call_1): Do not adjust stack pointer for SIB,
9113 update stack_pointer_delta; do not update arg_size_so_far.
9114 (compute_argument_block_size): Use stack_delta instead of
9115 stack_pointer_pending and arg_size_so_far.
9116 (expand_call): Add sanity checking for stack_pointer_delta;
9117 save and restore stack_pointer_delta for SIB, use
9118 stack_pointer_delta for alignment; do not update arg_space_so_far.
9119 (emit_library_call_value): Use stack_pointer_delta for alignment.
9120 (store_one_arg): Do not update arg_space_so_far.
9121 * explow.c (adjust_stack, anti_adjust_stack): Update
9122 stack_pointer_delta.
9123 (allocate_dynamic_stack_space): Add sanity checking for
9124 stack_pointer_delta.
9125 * expr.c (init_expr, clear_pending_stack_adjust): Clear
9126 stack_pointer_delta.
9127 (emit_push_insn): Update stack_pointer_delta.
9128 * function.h (struct expr_status): Add x_stack_pointer_delta;
9129 remove x_arg_space_so_far.
9130 (arg_space_so_far): Remove.
9131 (stack_pointer_delta): New macro.
9133 2000-03-31 Zack Weinberg <zack@wolery.cumb.org>
9135 * cpplib.h: Merge struct cpp_options into struct cpp_reader.
9136 Reorder struct cpp_options and struct cpp_reader for better
9137 packing. Replace CPP_OPTIONS macro with CPP_OPTION which
9138 takes two args. Change all 'char' flags to 'unsigned char'.
9139 Move show_column flag into struct cpp_options. Don't
9140 prototype cpp_options_init.
9141 * cpphash.h, cpperror.c, cppexp.c, cppfiles.c, cpphash.c,
9142 cppinit.c, cpplex.c, cpplib.c:
9143 Replace CPP_OPTIONS (pfile)->whatever with
9144 CPP_OPTION (pfile, whatever), and likewise for
9145 opts = CPP_OPTIONS (pfile); ... opts->whatever;
9147 * cppinit.c (merge_include_chains): Take a cpp_reader *.
9148 Extract CPP_OPTION (pfile, pending) and work with that
9150 (cpp_options_init): Delete.
9151 (cpp_reader_init): Turn on on-by-default options here.
9152 Allocate the pending structure here.
9153 (cl_options, enum opt_code): Define these from the same table,
9154 kept in a large macro. Add -fshow-column and -fno-show-column
9157 * cpperror.c (v_message): If show_column is off, don't print
9160 * cppmain.c: Update for new interface.
9161 * fix-header.c: Likewise.
9163 2000-03-30 Geoff Keating <geoffk@cygnus.com>
9165 * config/rs6000/t-aix43 (AR_FLAGS_FOR_TARGET): Adjust for new
9167 * Makefile.in (AR_FLAGS_FOR_TARGET): Is now the flags that
9168 are passed to any invocation of AR_FOR_TARGET.
9169 (AR_CREATE_FOR_TARGET): New macro.
9170 (AR_EXTRACT_FOR_TARGET): New macro.
9171 (ORDINARY_FLAGS_TO_PASS): Add AR_CREATE_FOR_TARGET,
9172 AR_EXTRACT_FOR_TARGET.
9173 (many places): Use AR_CREATE_FOR_TARGET, AR_EXTRACT_FOR_TARGET
9174 in place of `$(AR_FOR_TARGET) $(AR_FLAGS_FOR_TARGET)' and
9175 `$(AR_FOR_TARGET) x'. Pass AR_CREATE_FOR_TARGET and
9176 AR_EXTRACT_FOR_TARGET to sub-makes.
9178 2000-03-31 Neil Booth <NeilB@earthling.net>
9180 * cppexp.c: Delete SKIP_OPERAND. Correct priority
9182 (_cpp_parse_expr): Check for multiple unary +/- operators.
9183 Correct priorities of ':' and '?'. Treat ')' as having a
9184 value. Ensure conditional expression is not void.
9186 2000-03-31 Mark Mitchell <mark@codesourcery.com>
9188 * alias.c (canon_rtx): Make it global.
9189 (rtx_equal_for_memref_p): CONST_INT equality is now pointer
9191 * cse.c (struct table_elt): Add canon_exp.
9193 (invalidate): Canonicalize expressions only once.
9194 * rtl.h (canon_rtx): Declare.
9196 2000-03-30 Mark Mitchell <mark@codesourcery.com>
9198 * Makefile.in (emit-rtl.o): Depend on HASHTAB_H.
9199 * alias.c (reg_known_value): Add comments.
9200 (init_alias_analysis): Likewise.
9201 * cse.c (exp_equiv_p): CONST_INTs are equal iff they have the same
9203 (cse_basic_block): Fix typo in comment.
9204 * emit-rtl.c: Include hashtab.h.
9205 (const_int_htab): New variable.
9206 (const_int_htab_hash): New function.
9207 (const_int_htab_eq): Likewise.
9208 (rtx_htab_mark_1): Likewise.
9209 (rtx_htab_mark): Likewise.
9210 (gen_rtx_CONST_INT): Cache all CONST_INTs.
9211 (unshare_all_rtx): Fix formatting.
9212 (init_emit_once): Initialize const_int_htab.
9213 * rtl.c (rtx_equal_p): CONST_INTs are equal iff they have the same
9215 * rtl.texi: Document the fact that all CONST_INTs with the same
9218 2000-03-30 Richard Henderson <rth@cygnus.com>
9220 * alpha.h (FUNCTION_BOUNDARY): Reduce to 128 bits.
9222 2000-03-30 Zack Weinberg <zack@wolery.cumb.org>
9224 * configure.in: Comment out --enable-c-cpplib stanza.
9225 * configure: Regenerate.
9227 Thu Mar 30 06:32:51 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9229 * expr.c (store_constructor): Properly compute displacement and
9230 alignment when offset is variable.
9232 * expmed.c (store_bit_field, store_fixed_bit_field): Fix more
9233 cases of alignment in bytes.
9235 Thu Mar 30 13:30:40 2000 Jeffrey A Law (law@cygnus.com)
9237 * c-parse.in (cast_expr): Move change from March 21 into c-parse.in
9238 since it is used to generate c-parse.y.
9239 * objc-parse.c, objc-parse.y: Regenerated.
9241 * function.c (expand_function_end): Pass alignment argument to
9242 emit_block_move in bits, not bytes.
9244 Thu Mar 30 06:32:51 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9246 * expr.c (move_by_pieces_ninsns): Fix one more missing align
9249 * expmed.c (store_fixed_bit_field): STRUCT_ALIGN is in bits.
9251 * calls.c (expand_call): Pass bit alignment to mark_reg_pointer.
9252 * explow.c (memory_address, allocate_dynamic_stack_space): Likewise.
9253 * function.c (assign_parms): Likewise.
9254 * integrate.c (expand_inline_function): Likewise.
9255 * stmt.c (expand_decl): Likewise.
9256 (copy_rtx_and_substitute): Likewise.
9257 * expr.c (expand_expr, expand_expr_unaligned): Likewise.
9258 (clear_by_pieces): Fix error in last change.
9259 * emit-rtl.c (init_emit): Set known registers alignment in bits.
9260 * function.h (regno_pointer_align): Now unsigned.
9261 * config/arm/arm.c (alignable_memory_operand): REGNO_POINTER_ALIGN
9263 * config/i386/i386.c (aligned_operand): Likewise.
9264 * config/sparc/sparc.c (mem_min_alignment): Likewise.
9265 * config/alpha/alpha.c (aligned_memory_operand): Likewise.
9266 (unaligned_memory_operand): Likewise.
9267 (alpha_expand_block_move, alpha_expand_block_clear): Likewise.
9268 Also make alignments and sizes unsigned and some whitespace cleanup.
9269 (alpha_va_start): Do nothing if VALIST's type is error_mark_node.
9271 * builtins.c (get_pointer_alignment): Use host_integerp & tree_low_cst.
9272 (expand_builtin_apply): Pass alignment to emit_block_move in bits.
9273 (expand_builtin_memcpy, expand_builtin_va_copy): Likewise.
9274 (expand_builtin_memset): Likewise, but to clear_storage.
9275 * calls.c (save_fixed_argument_area): Likewise, to move_by_pieces.
9276 (restore_fixed_argument_area): Likewise.
9277 (store_unaligned_arguments_into_pseudos): Likewise, to store_bit_field.
9278 (load_register_parameters): Likewise, to emit_group_load.
9279 (expand_call): Likewise, to emit_group_store and emit_block_move.
9280 (emit_library_call_value_1): Likewise, to emit_block_move.
9281 (store_one_arg): Likewise, and to emit_push_insn.
9282 * expmed.c (extract_bit_field): Alignment is in bits, not bytes.
9283 (extract_fixed_bit_field, extract_split_bit_field): Likewise.
9284 * expr.c (move_by_pieces, move_by_pieces_ninsns): Likewise.
9285 (emit_block_move, emit_group_load, emit_group_store): Likewise.
9286 (clear_by_pieces, clear_storage, emit_push_insn): Likewise.
9287 (expand_assigment, store_expr, store_constructor_field): Likewise.
9288 (expand_expr_unaligned, do_jump, do_compare_and_jump): Likewise.
9289 (store_constructor, store_field, get_inner_reference): Likewise.
9290 Use host_integerp and tree_low_cst; sizes and positions HOST_WIDE_INT.
9291 (expand_expr, case COMPONENT_REF): Likewise.
9292 (copy_blkmode_from_regs): Use UNSIGNED_HOST_WIDE_INT for sizes
9293 and positions; reindent code.
9294 * expr.h (emit_cmp_insn, emit_cmp_and_jump_insns): Alignment unsigned.
9295 * function.c (purge_addressof_1): Pass bit align to store_bit_field.
9296 (assign_parms): Likewise to emit_group_store.
9297 * optabs.c (prepare_cmp_insn): Alignment is in bits.
9298 (emit_cmp_and_jump_insns, emit_cmp_insn): Likewise, and also unsigned.
9299 * stmt.c (expand_value_return): Pass align in bits to emit_group_load.
9300 (expand_return): Likewise to {extract,store}_bit_field.
9301 * stor-layout.c (get_mode_alignment): Minor cleanup.
9302 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Align is in bits.
9303 * config/sh/sh.h (MOVE_BY_PIECES_P): Likewise.
9305 2000-03-29 Nick Clifton <nickc@cygnus.com>
9307 * config/arm/arm.h: Undo effects of previous delta:
9308 (ASM_SPEC): Do not define.
9309 (SUBTARGET_EXTRA_ASM_SPEC): Do not define.
9311 * config/arm/linux-elf.h: (SUBTARGET_EXTRA_ASM_SPEC) Fix
9314 2000-03-29 Zack Weinberg <zack@wolery.cumb.org>
9316 * cppinit.c (cpp_start_read): Call initialize_dependency_output
9317 only after reading in the primary source file.
9319 2000-03-29 Geoff Keating <geoffk@cygnus.com>
9321 * c-common.c (c_common_nodes_and_builtins): The first parameter to
9322 __builtin_va_start and __builtin_va_copy is now either a 'va_list'
9323 or a reference to a va_list.
9324 * builtins.c (stabilize_va_list): Simplify now we don't have to
9325 work around C array address decay.
9326 * c-typeck.c (convert_for_assignment): Handle assignment to
9327 a reference parameter by taking the address of the RHS.
9328 * ginclude/stdarg.h (va_start): Don't take address of first parameter.
9329 (va_copy): Likewise.
9330 (__va_copy): Likewise.
9331 * ginclude/varargs.h (va_start): Likewise.
9332 (__va_copy): Likewise.
9334 Wed Mar 29 15:44:53 2000 Jeffrey A Law (law@cygnus.com)
9336 * i386/djgpp.h: Remove extraneous "+".
9338 * stmt.c (stmt_loop_nest_empty): Fix thinko in last change.
9340 * calls.c (expand_call): Fix typo in last change.
9342 2000-03-29 Jason Merrill <jason@casey.cygnus.com>
9344 * tree.c (unsave_expr_1): Don't mess with a TARGET_EXPR that hasn't
9347 Wed Mar 29 15:39:10 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9349 * stor-layout.c (bit_from_pos, byte_from_pos): New functions.
9350 (pos_from_byte, pos_from_bit, normalize_offset): Likewise.
9351 (normalize_rli, rli_size_so_far, rli_size_unit_so_far): Use them.
9352 * tree.c (bit_position, byte_position): Likewise.
9353 * tree.h: Declare new functions.
9355 2000-03-29 Nick Clifton <nickc@cygnus.com>
9357 * config/arm/arm.c: Minor formatting changes/
9358 * config/arm/arm.h (SUBTARGET_EXTRA_ASM_SPEC): Define if not
9360 (ASM_SPEC): Define if not already defined.
9362 2000-03-29 Zack Weinberg <zack@wolery.cumb.org>
9364 * cppfiles.c (cpp_read_file): Don't pass zero-length string to
9367 2000-03-29 Jakub Jelinek <jakub@redhat.com>
9369 * dwarf2out.c (gen_enumeration_type_die): If enum has a negative
9370 value, don't output it as unsigned.
9372 Wed Mar 29 10:53:49 2000 Jeffrey A Law (law@cygnus.com)
9374 * stmt.c (stmt_loop_nest_empty): Allow cfun->stmt to be NULL.
9376 2000-03-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9378 * c-common.c (c_common_nodes_and_builtins): Don't special case
9379 cplus_mode when declaring builtin bzero/bcmp, always avoid
9380 prototype arguments.
9382 2000-03-29 Bruce Korb <bkorb@gnu.org>
9384 * fixinc/mkfixinc.sh: Initially set the variable "fixincludes"
9387 Wed Mar 29 15:08:01 MET DST 2000 Jan Hubicka <jh@suse.cz>
9389 Convert ACCUMULATE_OUTGOING_ARGS to an expression.
9390 * calls.c (PUSH_ARGS_REVERSED) Change to expression.
9391 (ACCUMULATE_OUTGOING_ARGS, PUSH_ARGS): Provide default value.
9392 (struct arg_data): Remove #ifdef ACCUMULATE_OUTGOING_ARGS.
9393 (save_fixed_argument_area, restore_fixed_argument_area):
9394 conditionize by #ifdef REG_PARM_STACK_SPACE only.
9395 (emit_call): Change #ifdefs on ACCUMULATE_OUTGOING_ARGS
9396 to conditions, handle RETURN_POPS_ARGS on ACCUMULATE_OUTGOING_ARGS.
9397 (precompute_register_parameters): Avoid #ifdefs on
9398 ACCUMULATE_OUTGOING_ARGS and PUSH_ARGS_REVERSED.
9399 (stire_one_args): Likewise.
9400 (expand_call): Likewise; conditionize PUSH_ROUNDING code by PUSH_ARGS.
9401 (emit_library_call_value_1): Likewise.
9402 (compute_argument_block_size): Align to STACK_BOUNDARY only for
9403 ACCUMULATE_OUTGOING_ARGS.
9404 * combine.c (ACCUMULATE_OUTGOING_ARGS, PUSH_ARGS): Provide default
9406 (nonzero_bits): Conditionize PUSH_ROUNDING code by USE_PUSH.
9407 (use_crosses_set_p): Likewise.
9408 * all targets (ACCUMULATE_OUTGOING_ARGS define): Change to
9409 #define ACCUMULATE_OUTGOING_ARGS 1.
9410 * i386.c (ix86_compute_frame_size): Handle ACCUMULATE_OUTGOING_ARGS
9412 * i386.h (MASK_NO_PUSH_ARGS, MASK_ACCUMULATE_OUTGOING_ARGS): New
9414 (TARGET_PUSH_ARGS, TARGET_ACCUMULATE_OUTGOING_ARGS): New macros.
9415 (TARGET_SWITCHES): Add push-args, no-push-args,
9416 accumulate-outgoing-args and no-accumulate-outgoing-args.
9417 (ACCUMULATE_OUTGOING_ARGS, PUSH_ARGS): New macro.
9418 * expr.c (ACCUMULATE_OUTGONG_ARGS, PUSH_ARGS): Provide default.
9419 (push_block): Avoid ifdefs on ACCUMULATE_OUTGONG_ARGS
9421 (emit_push_insn): Likewise.
9422 * final.c (ACCUMULATE_OUTGOING_ARGS): Provide default.
9423 (final_scan_insn): Avoid ifdefs on ACCUMULATE_OUTGOING_ARGS.
9424 * function.c (ACCUMULATE_OUTGOING_ARGS): Provide default.
9425 (STACK_DYNAMIC_OFFSET): Define correctly for both
9426 ACCUMULATE_OUTGOING_ARGS and normal mode.
9427 * invoke.texi (-mpush_args, -maccumulate-outgoing-args): Document.
9428 * tm.texi (PUSH_ARGS): Document.
9429 (ACCUMULATE_OUTGOING_ARGS, PUSH_ROUNDING): Update documentation.
9431 Wed Mar 29 11:51:13 MET DST 2000 Jan Hubicka <jh@suse.cz>
9433 * flags.h (flag_optimize_sibling_calls): Declare.
9434 * calls.c (expand_call): Fail sibcall when
9435 !flag_optimize_sibling_calls
9436 * invoke.texi (flag_optimize_sibling_calls): Document.
9437 * toplev.c (flag_optimize_sibling_calls): New global variable.
9438 (f_options): Add flag_optimize_sibling_calls.
9439 (rest_of_compilation): Conditionize
9440 optimize_sibling_and_tail_recursive_calls by
9441 flag_optimize_sibling_calls.
9442 (main): Set flag_optimize_sibling_calls for -O2.
9443 * stmt.c (expand_return): Conditionize tail recursion by
9444 flag_optimize_sibling_calls.
9446 2000-03-29 Richard Henderson <rth@cygnus.com>
9448 * config/i386/att.h (LOCAL_LABEL_PREFIX): Define.
9449 (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Use it.
9451 2000-03-29 Nathan Sidwell <nathan@codesourcery.com>
9453 * except.c (add_eh_table_entry): Mark type_info's as referenced.
9455 2000-03-29 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
9457 * config/rs6000/aix41.h (CPP_SPEC): Define _ANSI_C_SOURCE if -ansi
9459 * config/rs6000/aix43.h (CPP_SPEC): Likewise.
9460 * config/rs6000/rs6000.h (CPP_SPEC): Moved to...
9461 * config/rs6000/aix.h: then modified likewise.
9463 2000-03-28 Richard Henderson <rth@cygnus.com>
9465 * rtl.h: Redistribute enum reg_note documentation.
9466 Kill trailing whitespace.
9467 * rtl.c (reg_note_name): Adjust to match enum reg_note tweeks.
9468 Kill trailing whitespace.
9470 2000-03-28 Zack Weinberg <zack@wolery.cumb.org>
9472 * cppfiles.c (hash_IHASH): Just return i->hash.
9473 (cpp_included): Set dummy.hash using _cpp_calc_hash. Use
9474 htab_find_with_hash.
9475 (cpp_read_file): Likewise.
9476 (find_include_file): Likewise. Properly initialize
9477 ih->nshort. Share ih->name and ih->nshort if possible.
9478 * cpphash.c (_cpp_calc_hash): New function.
9479 (hash_HASHNODE): Just return h->hash.
9480 (_cpp_lookup): Set dummy.hash using _cpp_calc_hash. Use
9481 htab_find_with_hash.
9482 * cpphash.h: Prototype _cpp_calc_hash.
9483 * cppinit.c (initialize_builtins): Provide a valid hash
9484 to _cpp_make_hashnode, using _cpp_calc_hash.
9486 * cpphash.c (collect_expansion): # is not a special character
9487 in object-like macros. In -traditional mode, /**/ is not
9488 token paste at the beginning or end of the line.
9489 * cpplib.c (do_include, do_import, do_include_next): If
9490 parse_include fails, return immediately.
9492 2000-03-28 Jason Merrill <jason@casey.cygnus.com>
9494 * config/arm/arm.md (return peepholes): Update to reflect the new
9496 * config/arm/arm.c (arm_volatile_func): Also check
9497 current_function_nothrow.
9498 (output_return_instruction, output_func_prologue): Use it.
9499 (arm_output_epilogue, arm_expand_prologue): Likewise.
9501 2000-03-27 Tom Tromey <tromey@cygnus.com>
9503 * gcc.c (handle_braces): In {x*...} case, break out of loop if
9506 Tue Mar 28 11:55:48 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9508 * expr.c (store_constructor): SIZE now signed.
9509 For EXPR_SIZE, don't evaluate size; just needed if constant.
9510 * fold-const.c (fold): Fix a number of cases when folded tree is
9512 * function.c (flush_addressof): Reenable.
9513 * tree.h (flush_addressof): Likewise.
9514 * toplev.c (independent_decode_option): Look at strings_processed.
9515 * config/alpha/alpha.h (MINIMUM_ATOMIC_ALIGNMENT): Cast to unsigned.
9517 Tue Mar 28 08:29:46 2000 Jan Hubicka <jh@suse.cz>
9519 * sibcall.c (indentify_call_return_value): Find last call in the chain;
9520 Allow stack adjustment after function call.
9522 * regmove.c (struct csa_memlist): Make mem field rtx *.
9523 (record_one_stack_ref): Accept rtx * instead of rtx as parameter.
9524 (try_apply_stack_adjustment): Replace whole MEM rtx.
9525 (combine_stack_adjustments_for_block): Update calls
9526 to record_one_stack_ref.
9528 2000-03-28 Neil Booth <NeilB@earthling.net>
9530 * cpplex.c (_cpp_read_and_prescan): Mark end of input buffer with
9531 '\\' rather than a null character, so nulls are not special. Fix
9532 "\\\n" handling in end-of-buffer conditions. Use trigraph map to
9533 speed trigraph conversion.
9534 (_cpp_init_input_buffer): Initialize trigraph map.
9536 2000-03-27 Alan Modra <alan@linuxcare.com.au>
9538 * config/i386/i386.c (output_387_binary_op): Correct intel
9539 mode assembly output, and add spaces after commas in AT&T
9540 output. Correct Unixware assembler comment. Document input
9541 constraints. Comment fp operations. Reduce profligate buffer
9542 size. Remove extraneous abort. Localize temp var.
9543 (SYSV386_COMPAT): Define. Add !SYSV386_COMPAT code.
9544 (output_fix_trunc): Add spaces after commas in assembly output.
9546 2000-03-27 Richard Henderson <rth@cygnus.com>
9548 * i386-protos.h (ix86_match_ccmode): Declare.
9549 * i386.c (ix86_match_ccmode): New.
9550 (ix86_expand_fp_compare): Update for pattern renames.
9551 (ix86_expand_strlensi_unroll_1): Likewise.
9552 * i386.h (EXTRA_CC_MODES): Add CCZ.
9553 (SELECT_CC_MODE): Use it for EQ/NE zero.
9554 * i386.md (cmpsi_ccz_1): New.
9556 (*testsi_ccz_1): New.
9557 (testqi_ccz_1): New.
9558 (cmpsi_ccno_1): Rename from cmpsi_0.
9559 (testsi_ccno_1): Rename from testsi_1.
9560 (testqi_ccno_1): Rename from testqi_1.
9561 (*testqi_ext_ccz_0): Rename from testqi_ext_0.
9562 (testqi_ext_ccno_0): Rename from *testqi_ext_1.
9563 (*cmphi_0): Use ix86_match_ccmode.
9564 (*cmpqi_ext_2, *addsi_2, *addhi_2, *addqi_2): Likewise.
9565 (*subsi_2, *subhi_2, *subqi_2, *testhi_1): Likewise.
9566 (*testqi_ext_1, *testqi_ext_2, *testqi_ext_3): Likewise.
9567 (*andsi_2, *andhi_2, *andqi_2, *andqi_ext_0_cc): Likewise.
9568 (*iorsi_2, *iorhi_2, *iorqi_2): Likewise.
9569 (*xorsi_2, *xorhi_2, *xorqi_cc_1): Likewise.
9570 (*one_cmplsi2_2, *one_cmplhi2_2, *one_cmplqi2_2): Likewise.
9571 (*ashlsi3_cmpno, *ashlhi3_cmpno, *ashlqi3_cmpno): Likewise.
9572 (*ashrsi3_cmpno, *ashrhi3_cmpno, *ashrqi3_cmpno): Likewise.
9573 (*lshrsi3_cmpno, *lshrhi3_cmpno, *lshrqi3_cmpno): Likewise.
9574 (appropriate peepholes): Likewise.
9575 (*cmphi_1, *cmpqi_ccno_1, *cmpqi_1): Star out name.
9576 (*subsi_3, *subhi_3, *subqi_3): Remove.
9577 (*negdi2_1+1 splitter): Use CCZ for neg patterns.
9578 (*negsi2_cmp, *neghi2_cmp, *negqi2_cmp): Remove.
9579 (*negsi2_cmpz): Rename from *negsi2_cmpno, use CCZ.
9580 (*neghi2_cmpz, *negqi2_cmpz): Similarly.
9581 (x86_shift_adj_1): Use CCZ.
9582 (*dbra_ge+1, *dbra_ge+2, ffssi2, ffssi_1): Likewise.
9584 2000-03-27 Stan Cox <scox@cygnus.com>
9586 * resource.h (mark_resource_type): New.
9587 * resource.c (find_dead_or_set_registers, mark_target_live_regs,
9588 find_free_register): Use mark_resource_type.
9589 (mark_set_resources): Change include_delayed_effects
9590 to mark_resource_type.
9591 * reorg.c (steal_delay_list_from_target, try_merge_delay_insns,
9592 redundant_insn, fill_simple_delay_slots, fill_slots_from_thread):
9593 Use mark_resource_type.
9595 2000-03-27 Richard Henderson <rth@cygnus.com>
9597 * i386.md (call_pop_0, call_value_pop_0): New.
9598 (call_pop_1): Remove constraint from unused arg. Support sibcalls.
9599 (call_value_pop_1): Likewise.
9600 (call_0, call_value_0): New.
9601 (call_1, call_value_1): Remove constraint from unused arg.
9603 2000-03-27 Nick Clifton <nickc@cygnus.com>
9605 * invoke.texi (Spec Files): Document new spec % command created by
9606 Tom Tromey's recent patch.
9608 2000-03-27 Jakub Jelinek <jakub@redhat.com>
9610 * libgcc2.h (MIN_UNITS_PER_WORD): Define to UNITS_PER_WORD
9613 Mon Mar 27 06:04:22 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9615 * expr.c (expand_assignment): Fix typo in last change.
9617 * libgcc2.h: Use MIN_UNITS_PER_WORD, not UNITS_PER_WORD.
9619 Sun Mar 26 20:15:26 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9621 * c-convert.c (convert): Return if output or input type is ERROR_MARK.
9622 * c-decl.c (duplicate_decls): Only look at DECL_BUILT_IN_NONANSI
9623 and DECL_INLINE if FUNCTION_DECL.
9624 (pushdecl, redeclaration_error_message): Likewise, for DECL_INLINE.
9625 (store_parm_decls): Check for type of PARM_DECL being ERROR_MARK.
9626 Use DECL_WEAK, not DECL_RESULT, to flag for already seen.
9627 (combine_parm_decls): Likewise.
9628 * ggc-common.c (gcc_mark_tree_children, case 'd'): Use DECL_RESULT_FLD.
9629 * print-tree.c (print_node): Likewise.
9630 Only test DECL_PACKED, DECL_INLINE, DECL_BIT_FIELD, and
9631 DECL_TRANSPARENT_UNION on proper decl types.
9632 Properly handly DECL_INCOMING_RTL and DECL_SAVED_INSNS.
9633 * stor-layout.c (layout_decl): Only check DECL_PACKED and
9634 DECL_BIT_FIELD of FIELD_DECL.
9635 * tree.h (DECL_RESULT_FLD): New macro.
9637 * expr.c (expand_assignment): Add code to handle variable-sized
9640 2000-03-26 Richard Henderson <rth@cygnus.com>
9642 * calls.c (expand_call): Pass parms not original exp to
9643 optimize_tail_recursion. Mind return value instead of looking
9645 * stmt.c (optimize_tail_recursion): Take parameter list, not entire
9646 call_expr. Move checks for call_expr and current_function_decl ...
9647 (expand_return): ... here.
9649 2000-03-26 Tom Tromey <tromey@cygnus.com>
9651 * gcc.c (handle_braces): Recognize `%{<S}' construct.
9652 (SWITCH_OK, SWITCH_FALSE, SWITCH_IGNORE, SWITCH_LIVE): New
9654 (process_command): Use them.
9655 (check_live_switch): Likewise.
9656 (give_switch): Skip ignored switches.
9658 2000-03-26 Jan Hubicka <jh@suse.cz>
9660 * jump.c (jump_optimize_1): Fix typo in elide optimizations
9661 for minimal jump pass test.
9663 2000-03-26 Mark Mitchell <mark@codesourcery.com>
9665 * integrate.c (function_cannot_inline_p): Do inline functions that
9668 Sun Mar 26 11:37:55 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9670 * stor-layout.c (layout_type, set_sizetype): early_type_list is
9671 now a list of TREE_LIST entries, not types.
9672 * tree.c (build_common_tree_nodes_2): Eliminate dupliate type sets.
9674 * expmed.c (extract_bit_field): Ensure BITS_PER_WORD is signed in MAX.
9675 * config/arm/pe.c (arm_pe_return_in_memory): Use host_integerp and
9677 * config/mips/mips.c (function_arg): Likewise; also remove cast
9678 and make variables unsigned or HOST_WIDE_INT and use tree_low_cst.
9679 (mips_function_value): Use int_byte_position and make HOST_WIDE_INT.
9680 * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Offsets are unsigned.
9681 * config/mips/mips.h (BITS_PER_WORD, UNITS_PER_WORD): Cast to unsigned.
9682 (UNITS_PER_FPREG, INT_TYPE_SIZE, LONG_TYPE_SIZE): Likewise.
9683 (POINTER_SIZE, POINTER_BOUNDARY,PARM_BOUNDARY): Likewise.
9684 (GP_REG_P, FP_REG_P, MD_REG_P, ST_REG_P): Ensure subtraction signed.
9685 (struct mips_arg): arg_number, arg_words, fp_arg_words, and
9686 num_adjusts now unsigned.
9687 (FUNCTION_ARG_BOUNDARY): Remove unneeded cast.
9688 * config/sparc/sparc.c (struct function_arg_record_value_parms):
9690 (function_arg_record_value_1): STARTBITPOS arg now HOST_WIDE_INT
9691 as is BITPOS variable; use host_integerp and int_bit_position.
9692 (function_arg_record_value_2): Likewise.
9693 (function_arg_record_value_3): Arg BITPOS now HOST_WIDE_INT.
9694 Variable REGNO now unsigned.
9695 (function_arg_record_value): NREGS now unsigned.
9697 2000-03-26 Bernd Schmidt <bernds@cygnus.co.uk>
9699 * jump.c (mark_all_labels): Handle CALL_PLACEHOLDERs.
9701 Sat Mar 25 09:12:10 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9703 * Rework fields used to describe positions of bitfields and
9704 modify sizes to be unsigned and use HOST_WIDE_INT.
9705 * alias.c (reg_known_value_size): Now unsigned.
9706 * c-typeck.c (build_unary_op, case ADDR_EXPR): Use byte_position.
9707 (really_start_incremental_init): Use bitsize_zero_node.
9708 (push_init_level, pop_init_level, output_init_element): Likewise.
9709 Use bitsize_unit_node and bitsize_one_node.
9710 (output_pending_init_elements, process_init_element): Likewise.
9711 * combine.c (combine_max_regno, reg_sign_bit_copies): Now unsigned.
9712 (make_extraction): Position and length HOST_WIDE_INT and unsigned
9713 HOST_WIDE_INT, respectively.
9714 (get_pos_from_mask): Passed in value is unsigned HOST_WIDE_INT.
9715 (num_sign_bit_copies): Returns unsigned.
9716 BITWIDTH now unsigned; rework arithmetic.
9717 Remove recursive call from arg to MAX.
9718 (combine_instructions, init_reg_last_arrays): NREGS now unsigned.
9719 (setup_incoming_promotions, can_combine_p, try_combine, simplify_set):
9721 (set_nonzero_bit_and_sign_copies): NUM now unsigned.
9722 (find_split_point, expand_compound_operation, make_extraction): LEN
9723 now unsigned HOST_WIDE_INT, POS now HOST_WIDE_INT.
9724 (make_field_assignment): Likewise.
9725 (combine_simplify_rtx): Add cast.
9726 (expand_compound_operation): MODEWIDTH now unsigned; rework arithmetic.
9727 (force_to_mode): WIDTH now unsigned; add cast.
9728 (if_then_else_cond): SIZE now unsigned.
9729 (nonzero_bits): MODE_WIDTH, RESULT_WIDTH, and WIDTH now unsigned.
9730 (extended_count): Now returns unsigned.
9731 (simplify_shift_const): COUNT unsigned; arg is now INPUT_COUNT.
9732 Add SIGNED_COUNT variable; MODE_WORDS and FIRST_COUNT now unsigned.
9733 (simplify_comparison): MODE_WIDTH now unsigned.
9734 (update_table_tick): REGNO and ENDREGNO now unsigned; new var R.
9735 (mark_used_regs_combine): Likewise; rework arithmetic.
9736 (record_value_for_reg): REGNO, ENDREGNO, and I now unsigned.
9737 (record_dead_and_set_regs, reg_dead_at_p, distribute_notes): Likewise.
9738 (record_promoted_value): REGNO now unsigned.
9739 (get_last_value_validate): REGNO, ENDREGNO, and J now unsigned.
9740 (get_last_value): REGNO now unsigned.
9741 (use_crosses_set_p): REGNO and ENDREGNO now unsigned.
9742 (reg_dead_regno, reg_dead_endregno): Now unsigned.
9743 (remove_death): Arg REGNO now unsigned.
9744 (move_deaths): REGNO, DEADREGNO, DEADEND, OUREND, and I now unsigned.
9745 (reg_bitfield_target_p): REGNO, REGNO, ENDREGNO, and ENDTREGNO
9747 * convert.c (convert_to_integer): INPREC and OUTPREC now unsigned.
9748 * cse.c (struct qty_table_elem): FIRST_REG and LAST_REG now unsigned.
9749 (struct cse_reg_info): REGNO now unsigned.
9750 (cached_regno): Now unsigned.
9751 (REGNO_QTY_VALID_P): Add cast.
9752 (make_new_qty, make_regs_eqv, delete_reg_eqiv): Regno args unsigned.
9753 (remove_invalid_regs): Likewise.
9754 (remove_invalid_subreg_refs): Likewise; arg WORD also unsigned
9755 as are variables END and I.
9756 (get_cse_reg_info, insert): Likewise.
9757 (mention_regs, invalidate_for_call): REGNO, ENDREGNO, and I unsigned.
9758 (canon_hash): Likewise.
9759 (insert_regs, lookup_for_remove): REGNO now unsigned.
9760 (invalidate): REGNO, ENDREGNO, TREGNO, and TENDREGNO now unsigned.
9762 * dbxout.c (dbxout_parms, dbxout_reg_parms): Don't check for REGNO < 0.
9763 * dwarf2out.c (dwarf2ou_frame_debug_expr): Remove cast.
9764 * emit-rtl.c (subreg_realpart_p): Add cast.
9765 (operand_subword): Arg I is now unsigned as is var PARTWORDS.
9766 (operand_subword_force): Arg I is now unsigned.
9767 * except.c (eh_regs): Variable I is now unsigned.
9768 * explow.c (hard_function_value): BYTES is unsigned HOST_WIDE_INT.
9769 * expmed.c (store_fixed_bit_field): Position is HOST_WIDE_INT;
9770 length is unsigned HOST_WIDE_INT; likewise for internal variables.
9771 (store_split_bit_field, extract_fixed_bit_field): Likewise.
9772 (extract_split_bit_field, store_bit_field, extract_bit_field):
9774 * expr.c (store_constructor_fields, store_constructor, store_field):
9775 Positions are HOST_WIDE_INT and lengths are unsigned HOST_WIDE_INT.
9776 (expand_assignment, expand_expr, expand_expr_unaligned): Likewise.
9777 (do_jump): Likewise.
9778 (move_by_pieces, move_by_pieces_ninsns, clear_by_pieces):
9779 MAX_SIZE is now unsigned.
9780 (emit_group_load): BYTEPOS is HOST_WIDE_INT; BYTELEN is unsigned.
9781 (emit_group_store): Likewise.
9782 (emit_move_insn): I now unsigned.
9783 (store_constructor): Use host_integerp, tree_low_cst, and
9785 (get_inner_reference): Return bitpos and bitsize as HOST_WIDE_INT.
9786 Rework all calculations to use trees and new fields.
9787 * expr.h (promoted_input_arg): Regno now unsigned.
9788 (store_bit_field, extract_bit_field): Adjust types of pos and size.
9789 (mark_seen_cases): Arg is HOST_WIDE_INT.
9790 * flow.c (verify_wide_reg_1): REGNO now unsigned.
9791 * fold-const.c (decode_field_reference): Size and pos HOST_WIDE_INT;
9792 precisions and alignments are unsigned.
9793 (optimize_bit_field_compare, fold_truthop): Likewise.
9794 (int_const_binop): Adjust threshold for size_int_type_wide call.
9795 (fold_convert): Likewise.
9796 (size_int_type_wide): Make table larger and fix thinko that only
9797 had half of table used.
9798 (all_ones_mask_p, fold): Precisions are unsigned.
9799 * function.c (put_reg_info_stack): REGNO is unsigned.
9800 (instantiate_decl): Size is HOST_WIDE_INT.
9801 (instantiate_virtual_regs): I is unsigned.
9802 (assign_parms): REGNO, REGNOI, and REGNOR are unsigned.
9803 (promoted_input_arg): REGNO is unsigned.
9804 * function.h (struct function): x_max_parm_reg is now unsigned.
9805 * gcse.c (max_gcse_regno): Now unsigned.
9806 (struct null_pointer_info): min_reg and max_reg now unsigned.
9807 (lookup_set, next_set): REGNO arg now unsigned.
9808 (compute_hash_table): REGNO and I now unsigned.
9809 (handle_avail_expr): regnum_for_replacing now unsigned.
9810 (cprop_insn): REGNO now unsigned.
9811 (delete_null_pointer_checks_1): BLOCK_REG now pointer to unsigned.
9812 * ggc-common.c (ggc_mark_tree_children, case FIELD_DECL): New case.
9813 * global.c (set_preference): SRC_REGNO, DEST_REGNO, and I now unsigned.
9814 * hard-reg-set.h (reg_class_size): Now unsigned.
9815 * integrate.c (mark_stores): LAST_REG and I now unsigned; new UREGNO.
9816 * jump.c (mark_modified_reg): I now unsigned; add cast.
9817 (rtx_equal_for_thread_p): Add cast.
9818 * loop.c (max_reg_before_loop): Now unsigned.
9819 (struct_movable): REGNO now unsigned.
9820 (try_copy_prop): REGNO arg unsigned.
9821 (regs_match_p): XN and YN now unsigned.
9822 (consec_sets_invariant_p, maybe_eliminate_biv): REGNO now unsigned.
9823 (strength_reduce): Likewise; NREGS also unsigned.
9824 (first_increment_giv, last_increment_giv unsigned): Now unsigned.
9825 * loop.h (struct iv_class): REGNO now unsigned.
9826 (max_reg_before_loop, first_increment_giv, last_increment_giv):
9828 * machmode.h (mode_size, mode_unit_size): Now unsigned.
9829 (mode_for_size, smallest_mode_for_size): Pass size as unsigned.
9830 * optabs.c (expand_binop): I and NWORDS now unsigned.
9831 (expand_unop): I now unsigned.
9832 * print-tree.c (print_node): Don't print DECL_FIELD_BITPOS, but do
9833 print DECL_FIELD_OFFSET and DECL_FIELD_BIT_OFFSET.
9834 * real.c (significand_size): Now returns unsigned.
9835 * real.h (significand_size): Likewise.
9836 * regclass.c (reg_class_size): Now unsigned.
9837 (choose_hard_reg_mode): Both operands now unsigned.
9838 (record_reg_classes): REGNO and NR now unsigned.
9839 (reg_scan): NREGS now unsigned.
9840 (reg_scan_update): old_max_regno now unsigned.
9841 (reg_scan_mark_refs): Arg MIN_REGNO and var REGNO now unsigned.
9842 * reload.c (find_valid_class): BEST_SIZE now unsigned.
9843 (find_dummy_reload): REGNO, NWORDS, and I now unsigned.
9844 (hard_reg_set_here_p): Args BEG_REGNO and END_REGNO now unsigned.
9845 Likewise for variable R.
9846 (refers_to_regno_for_reload_p): Args REGNO and END_REGNO now unsigned,
9847 as are variables INNER_REGNO and INNER_ENDREGNO; add new variable R.
9848 (find_equiv_reg): Add casts.
9849 (regno_clobbered_p): Arg REGNO now unsigned.
9850 * reload.h (struct reload): NREGS now unsigned.
9851 (refers_to_regno_for_reload_p): Regno args are unsigned.
9852 (regno_clobbered_p): Likewise.
9853 * reload1.c (reg_max_ref_width, spill_stack_slot_width): Now unsigned.
9854 (compute_use_by_pseudos): REGNO now unsigned.
9855 (find_reg): I and J now unsigned, new variable K, and change loop
9856 variables accordingly; THIS_NREGS now unsigned.
9857 (alter_reg): INHERENT_SIZE and TOTAL_SIZE now unsigned.
9858 (spill_hard_reg): REGNO arg now unsigned; add casts.
9859 (forget_old_reloads_1): REGNO, NR, and I now unsigned.
9860 (mark_reload_reg_in_use): Arg REGNO and vars NREGS and I now unsigned.
9861 (clear_reload_reg_in_use): Arg REGNO and vars NREGS, START_REGNO,
9862 END_REGNO, CONFLICT_START, and CONFLICT_END now unsigned.
9863 (reload_reg_free_p, reload_reg_reaches_end_p): Arg REGNO now unsigned.
9864 (choose_reload_regs): MAX_GROUP_SIZE now unsigned.
9865 (emit_reload_insns): REGNO now unsigned.
9866 (reload_cse_move2add): Add cast.
9867 (move2add_note_store): REGNO and I now unsigned; new variable ENDREGNO
9869 * resource.c (mark_referenced_resources, mark_set_resources): New
9870 variable R; REGNO and LAST_REGNO now unsigned.
9871 (mark_target_live_regs): J and REGNO now unsigned.
9872 * rtl.c (mode_size, mode_unit_size): Now unsigned.
9873 * rtl.h (union rtunion_def): New field rtuint.
9874 (XCUINT): New macro.
9875 (ADDRESSOF_REGNO, REGNO, SUBREG_WORD): New XCUINT.
9876 (operand_subword, operand_subword_force): Word number is unsigned.
9877 (choose_hard_reg_mode): Operands are unsigned.
9878 (refers_to-regno_p, dead_or_set_regno_p): Regno arg is unsigned.
9879 (find_regno_note, find_regno_fusage, replace_regs): Likewise.
9880 (regno_use_in, combine_instructions, remove_death): Likewise.
9881 (reg_scan, reg_scan_update): Likewise.
9882 (extended_count): Return is unsigned.
9883 * rtlanal.c (refers_to_regno_p): Args REGNO and ENDREGNO and vars I,
9884 INNER_REGNO, and INNER_ENDREGNO now unsigned; new variable X_REGNO.
9885 (reg_overlap_mentioned_p): REGNO and ENDREGNO now unsigned.
9886 (reg_set_last_first_regno, reg_set_last_last_regno): Now unsigned.
9887 (reg_reg_last_1): FIRS and LAST now unsigned.
9888 (dead_or_set_p): REGNO, LAST_REGNO, and I now unsigned.
9889 (dead_or_set_regno_p): Arg TEST_REGNO and vars REGNO and ENDREGNO
9891 (find_regno_note, regno_use_in): Arg REGNO now unsigned.
9892 (find_regno_fusage): Likewise; also var REGNOTE now unsigned.
9893 (find_reg_fusage): Variables REGNO, END_REGNO, and I now unsigned.
9894 (replace_regs): Arg NREGS now unsigned.
9895 * sdbout.c (sdbout_parms, sdbout_reg_parms): Don't check REGNO < 0.
9896 * simplify-rtx.c (simplify_unary_operation): WIDTH now unsigned.
9897 (simplify_binary_operation): Likewise.
9898 (cselib_invalidate_regno): Arg REGNO and variables ENDREGNO, I, and
9899 THIS_LAST now unsigned.
9900 (cselib_record_set): Add cast.
9901 * ssa.c (ssa_max_reg_num): Now unsigned.
9902 (rename_block): REGNO now unsigned.
9903 * stmt.c (expand_return): Bit positions unsigned HOST_WIDE_INT;
9905 (all_cases_count): Just return -1 not -2.
9906 COUNT, MINVAL, and LASTVAL now HOST_WIDE_INT.
9907 Rework tests to use trees whenever possible.
9908 Use host_integerp and tree_low_cst.
9909 (mark_seen_cases): COUNT arg now HOST_WIDE_INT;
9910 Likewise variable NEXT_NODE_OFFSET; XLO now unsigned.
9911 (check_for_full_enumeration_handing): BYTES_NEEDED, I to HOST_WIDE_INT.
9912 * stor-layout.c (mode_for_size): SIZE arg now unsigned.
9913 (smallest_mode_for_size): Likewise.
9914 (layout_decl): Simplify handing of a specified DECL_SIZE_UNIT.
9915 KNOWN_ALIGN is now an alignment, so simplify code.
9916 Don't turn off DECL_BIT_FIELD if field is BLKmode, but not type.
9917 (start_record_layout): Renamed from new_record_layout_info.
9918 Update to new fields.
9919 (debug_rli, normalize_rli, rli_size_unit_so_far, rli_size_so_far):
9921 (place_union_field): Renamed from layout_union_field.
9922 Update to use new fields in rli.
9923 (place_field): Renamed from layout_field.
9924 Major rewrite to use new fields in rli; pass alignment to layout_decl.
9925 (finalize_record_size): Rework to use new fields in rli and handle
9927 (compute_record_mode): Rework to simplify and to use new DECL fields.
9928 (finalize_type_size): Make rounding more consistent.
9929 (finish_union_layout): Deleted.
9930 (layout_type, case VOID_TYPE): Don't set TYPE_SIZE_UNIT either.
9931 (layout_type, case RECORD_TYPE): Call new function names.
9932 (initialize_sizetypes): Set TYPE_IS_SIZETYPE.
9933 (set_sizetype): Set TYPE_IS_SIZETYPE earlier.
9934 (get_best_mode): UNIT is now unsigned; remove casts.
9935 * tree.c (bit_position): Compute from new fields.
9936 (byte_position, int_byte_position): New functions.
9937 (print_type_hash_statistics): Cast to remove warning.
9938 (build_range_type): Use host_integerp and tree_low_cst to try to hash.
9939 (build_index_type): Likewise; make subtype of sizetype.
9940 (build_index_2_type): Pass sizetype to build_range_type.
9941 (build_common_tree_nodes): Use size_int and bitsize_int to
9942 initialize nodes; add bitsize_{zero,one,unit}_node.
9943 * tree.h (DECL_FIELD_CONTEXT): Use FIELD_DECL_CHECK.
9944 (DECL_BIT_FIELD_TYPE, DECL_QUALIFIER, DECL_FCONTEXT): Likewise.
9945 (DECL_PACKED, DECL_BIT_FIELD): Likewise.
9946 (DECL_FIELD_BITPOS): Deleted.
9947 (DECL_FIELD_OFFSET, DECL_FIELD_BIT_OFFSET): New fields.
9948 (DECL_RESULT, DECL_SAVED_INSNS): Use FUNCTION_DECL_CHECK.
9949 (DECL_FRAME_SIZE, DECL_FUNCTION_CODE, DECL_NO_STATIC_CHAIN): Likewise.
9950 (DECL_INLINE, DECL_BUILT_IN_NONANSI, DECL_IS_MALLOC): Likewise.
9951 (DECL_BUILT_IN_CLASS, DECL_STATIC_CONSTRUCTOR): Likewise.
9952 (DECL_STATIC_DESTRUCTOR, DECL_NO_CHECK_MEMORY_USAGE): Likewise.
9953 (DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT, DECL_NO_LIMIT_STACK) Likewise.
9954 (DECL_ORIGINAL_TYPE, TYPE_DECL_SUPPRESS_DEBUG): Use TYPE_DECL_CHECK.
9955 (DECL_ARG_TYPE_AS_WRITEN, DECL_ARG_TYPE): Use PARM_DECL_CHECK.
9956 (DECL_INCOMING_RTL, DECL_TRANSPARENT_UNION): Likewise.
9957 (DECL_ALIGN): Adjust to new field in union.
9958 (DECL_OFFSET_ALIGN): New field.
9959 (DECL_ERROR_ISSUED, DECL_TOO_LATE): Use LABEL_DECL_CHECK.
9960 (DECL_IN_TEXT_SECTION): Use VAR_DECL_CHECK.
9961 (union tree_decl): Add struct for both aligns.
9962 (enum tree_index): Add TI_BITSIZE_{ZERO,ONE,UNIT}.
9963 (bitsize_zero_node, bitsize_one_node, bitsize_unit_node): Added.
9964 (struct record_layout_info): Rework fields to have offset
9965 alignment and byte and bit position.
9966 (start_record_layout, place_field): Renamed from old names.
9967 (rli_size_so_far, rli_size_unit_so_far, normalize_rli): New decls.
9968 (byte_position, int_byte_position): Likewise.
9969 (get_inner_reference): Change types of position and length.
9970 * unroll.c (unroll_loop): New variable R; use for some loops.
9971 MAX_LOCAL_REGNUM and MAXREGNUM now unsigned.
9972 (calculate_giv_inc): Arg REGNO now unsigned.
9973 (copy_loop_body): REGNO and SRC_REGNO now unsigned.
9974 * varasm.c (assemble_variable): Clean up handling of size using
9975 host_integerp and tree_low_cst.
9976 (decode_addr_const): Use byte, not bit, position.
9977 (output_constructor): bitpos and offsets are HOST_WIDE_INT;
9978 use tree_low_cst and int_bit_position.
9979 * objc/objc-act.c (build_ivar_list_initializer): Use byte_position.
9981 Fri Mar 24 20:13:49 2000 Jason Eckhardt <jle@cygnus.com>
9983 * bb-reorder.c (REORDER_MOVED_BLOCK_END): Removed.
9984 (reorder_block_def): New members eff_head and eff_end.
9985 (REORDER_BLOCK_EFF_HEAD, REORDER_BLOCK_EFF_END): New macros.
9986 (verify_insn_chain): New function.
9987 (skip_insns_between_block): Add code to skip deleted insns.
9988 Check for note before using.
9989 (chain_reorder_blocks): Replace calls to skip_insns_between_block
9990 with references to REORDER_BLOCK_EFF_HEAD and REORDER_BLOCK_EFF_END.
9991 Check for note before using.
9992 (make_reorder_chain): Use INTVAL rather than XINT to get REG_BR_PROB.
9993 (fixup_reorder_chain): Restructure, clean up, defect removal.
9994 (reorder_basic_blocks): Remove last_insn and references to it.
9995 Moved insn chain verification code into a new function (see above).
9996 Delete defective code that sets last insn.
9997 Initialize REORDER_BLOCK_EFF_HEAD and REORDER_BLOCK_EFF_END for
10000 2000-03-25 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
10002 * config/c4x/c4x.h (CPP_SPEC): Remove erroneous space.
10004 2000-03-24 Richard Henderson <rth@cygnus.com>
10006 * tree.c (lang_safe_for_unsave): Remove.
10007 (unsafe_for_reeval): Transmute and rename from safe_for_unsave,
10008 allowing for two levels of unsafeness. Remove lang hook.
10009 * tree.h: Update declarations.
10010 * calls.c (expand_call): Rename safe_for_reeval to try_tail_call.
10011 Create temporary VAR_DECLs to protect very unsafe_for_reeval trees.
10012 Always fail sibcalls when there are pending cleanups.
10014 2000-03-24 Geoff Keating <geoffk@cygnus.com>
10016 * flow.c (propagate_block): When we delete an ADDR_VEC,
10017 also delete the BARRIER following it if there is one.
10019 2000-03-24 Richard Henderson <rth@cygnus.com>
10021 * builtins.c (expand_builtin_bzero): Convert `length' argument
10024 2000-03-24 Jakub Jelinek <jakub@redhat.com>
10026 * sibcall.c (skip_copy_to_return_value): Use OUTGOING_REGNO for
10027 comparison if regno's are equal.
10028 * calls.c (initialize_argument_informat): Add ecf_flags argument.
10029 Use FUNCTION_INCOMING_ARG if available and ECF_SIBCALL.
10030 (expand_call): Update caller.
10031 Avoid making a sibling call if argument size of the callee is larger
10032 than argument size of the caller.
10033 Call hard_function_value with outgoing set if in sibcall pass.
10034 Use FUNCTION_INCOMING_ARG if available and ECF_SIBCALL.
10036 * final.c (permitted_reg_in_leaf_functions, only_leaf_regs_used):
10037 Change LEAF_REGISTERS from an array initializer to actual array
10038 identifier. Move static global variable into the function.
10039 (leaf_function_p): Allow SIBLING_CALL_P calls even outside of
10040 sequences for leaf functions.
10041 * global.c (global_alloc): Likewise.
10042 * tm.texi (LEAF_REGISTERS): Update documentation.
10044 * config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Remove the ugly
10045 TARGET_FLAT leaf disabling hack.
10046 (LEAF_REGISTERS): Changed from an array initializer to actual array
10047 identifier to avoid duplication and remove the above hack.
10048 (FUNCTION_OK_FOR_SIBCALL): Define.
10049 * config/sparc/sparc.md (sibcall): New attr type. Use it almost
10050 always like call attribute.
10051 (eligible_for_sibcall_delay): New attribute.
10052 (sibcall): New delay type.
10053 (sibcall, sibcall_value, sibcall_epilogue): New expands.
10054 (sibcall_symbolic_sp32, sibcall_symbolic_sp64,
10055 sibcall_value_symbolic_sp32, sibcall_value_symbolic_sp64): New insns.
10056 * config/sparc/sparc.c (sparc_leaf_regs): New array.
10057 (eligible_for_sibcall_delay, output_restore_regs, output_sibcall):
10059 (output_function_epilogue): Move part of the code into
10060 output_restore_regs.
10061 (ultra_code_from_mask, ultrasparc_sched_reorder): Handle
10063 * sparc-protos.h (output_sibcall, eligible_for_sibcall_delay): New
10066 * config/sparc/sparc.h (REVERSIBLE_CC_MODE): Revert Jan, 25 change
10067 until infrastructure is finished.
10069 Fri Mar 24 13:49:45 2000 Jeffrey A Law (law@cygnus.com)
10071 * integrate.c (save_for_inline_nocopy): Clear in_nonparm_insns here.
10072 (save_parm_insns): Not here.
10074 2000-03-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10076 * builtins.c (expand_builtin_bzero): New function.
10077 (expand_builtin): Handle bzero.
10079 * builtins.def: Add BUILT_IN_BZERO.
10081 * c-common.c (c_common_nodes_and_builtins): Provide builtin
10082 prototype & function for bzero.
10084 2000-03-23 Michael Meissner <meissner@redhat.com>
10086 * config/alpha/alpha.md (TF floating point insns): Undo 2000-03-21
10087 change adding TARGET_FP to the TF floating point insns, except for
10088 trunctfsf2, which generates direct calls to truncdfsf2.
10090 2000-03-23 Geoff Keating <geoffk@cygnus.com>
10092 * config/rs6000/rs6000.h (ARG_POINTER_CFA_OFFSET): New definition,
10093 try to protect against middle-end changes that break binary
10095 (DWARF_FRAME_REGISTERS): New definition, likewise for backend.
10097 2000-03-24 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
10099 * config/c4x/c4x.md (load_immed_address): Add DP reg clobber.
10101 Thu Mar 23 17:10:48 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10103 * calls.c (expand_call): If TARGET is passed by reference and
10104 is readonly, write a CLOBBER.
10106 2000-03-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10108 * builtins.c (expand_builtin): Handle bcmp.
10110 * builtins.def: Add BUILT_IN_BCMP.
10112 * c-common.c (c_common_nodes_and_builtins): Provide builtin
10113 prototype & function for bcmp.
10115 Thu Mar 23 11:34:39 2000 Jim Wilson <wilson@cygnus.com>
10117 * config/ia64/ia64.c (rtx_needs_barrier, case UNSPEC): Move case 6...
10118 (rtx_needs_barrier, case UNSPEC_VOLATILE): to here.
10119 * config/ia64/ia64.md (pr_restore): Change UNSPEC to UNSPEC_VOLATILE.
10121 Thu Mar 23 16:04:40 2000 Andrew Haley <aph@cygnus.com>
10123 * config/mips/mips.md (movdf_internal1a): Delete (set 'f', 'F')
10124 alternative when using -fp64 -gp32.
10126 2000-03-22 Jason Merrill <jason@casey.cygnus.com>
10128 * config/rs6000/rs6000.h (DWARF_FRAME_RETURN_COLUMN): Define.
10129 * config/alpha/alpha.h (DWARF_FRAME_RETURN_COLUMN): Define.
10130 * config/sparc/sparc.h (DWARF_FRAME_RETURN_COLUMN): Define.
10132 * frame.h (frame_state): Revert last change.
10133 * frame.c (execute_cfa_insn): Just don't record the save of a CFA reg.
10134 * libgcc2.c (throw_helper): Revert last change.
10136 2000-03-22 Richard Henderson <rth@cygnus.com>
10138 * stmt.c (expand_asm_operands): Don't promote the temporary.
10140 2000-03-22 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
10142 * builtin.c (get_pointer_alignment): Use DECL_P and TYPE_P macros.
10143 * c-common.c (decl_attributes,check_format_info,truthvalue_conversion,
10144 c_get_alias_set): Likewise.
10145 * c-decl.c (duplicate_decls): Likewise.
10146 * c-typeck.c (default_conversion,build_unary_op): Likewise.
10147 * calls.c (initialize_argument_information): Likewise.
10148 * dwarf2out.c (decl_class_context,add_abstract_origin_attribute):
10150 * dwarfout.c (decl_class_context,output_type): Likewise.
10151 * expr.c (get_inner_reference): Likewise.
10152 * fold-const.c (simple_operand_p,fold): Likewise.
10153 * function.c (aggregate_value_p): Likewise.
10154 * stmt.c (expand_asm_operands): Likewise.
10155 * varasm.c (named_section): Likewise.
10157 2000-03-22 Jason Merrill <jason@casey.cygnus.com>
10159 Implement dwarf2 exception handling for the ARM.
10160 * config/arm/arm.h (INCOMING_RETURN_ADDR_RTX): Define.
10161 (DWARF_FRAME_RETURN_COLUMN): Define.
10162 * config/arm/arm.c (emit_multi_reg_push): Return rtx. Attach
10163 REG_FRAME_RELATED_EXPR note.
10164 (emit_sfm): Likewise.
10165 (arm_expand_prologue): Set RTX_FRAME_RELATED_P on everything.
10166 * dwarf2out.c (reg_save): Handle saving a register to itself.
10167 (dwarf2out_frame_debug_expr): Handle an intermediate cfa reg.
10168 * except.c (eh_regs): Don't use the static chain reg if it's
10170 * frame.h (frame_state): Add cfa_saved field.
10171 * frame.c (execute_cfa_insn): Set it.
10172 * libgcc2.c (throw_helper): Don't adjust sp if it's restored in
10174 * function.c (ARG_POINTER_CFA_OFFSET): Default to FIRST_PARM_OFFSET.
10176 (instantiate_virtual_regs): Adjust.
10178 * config/m68k/m68k.h (ARG_POINTER_CFA_OFFSET): Don't define.
10179 * config/ns32k/ns32k.h (ARG_POINTER_CFA_OFFSET): Don't define.
10180 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): Take a parm.
10182 * dwarf2out.c (reg_number): Refer to FIRST_PSEUDO_REGISTER.
10183 (initial_return_save): Use DWARF_FRAME_REGNUM, not reg_number.
10185 2000-03-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10187 * builtins.def: New file.
10189 * Makefile.in (TREE_H): Depend on builtins.def.
10191 * builtins.c (built_in_names): Use builtins.def.
10193 * tree.h (built_in_function): Likewise.
10195 2000-03-22 Mark Mitchell <mark@codesourcery.com>
10197 * tree.c (size_in_bytes): Return size_zero_node, not
10200 2000-03-22 Geoff Keating <geoffk@cygnus.com>
10202 * config/fp-bit.c (pack_d): Correct the case when a denormal
10203 is rounded up and stops being denormal.
10205 2000-03-21 Richard Henderson <rth@cygnus.com>
10207 * config/alpha/alpha.c (function_arg): Check for void_type_node
10208 before using MUST_PASS_IN_STACK.
10210 2000-03-21 Stephane Carrez <stcarrez@worldnet.fr>
10212 * regmove.c (combine_stack_adjustments_for_block): Check that
10213 the stack pointer is a valid memory address.
10215 Wed Mar 22 11:44:50 MET 2000 Jan Hubicka <jh@suse.cz>
10217 * calls.c: re-install Mar 16 emit_library_call merge.
10219 2000-03-21 Jakub Jelinek <jakub@redhat.com>
10221 * config/sparc/sparc.c (mem_min_alignment): If not optimizing,
10222 we cannot be sure that if reload_completed base register will
10223 be properly aligned.
10225 2000-03-21 Richard Henderson <rth@cygnus.com>
10227 * flow.c (delete_block): Fix typo last change.
10229 2000-03-21 Mark Mitchell <mark@codesourcery.com>
10231 * c-common.c (c_expand_expr_stmt): Use COMPLETE_TYPE_OR_VOID_P,
10232 not COMPLETE_TYPE_P, to check the type of the expression.
10234 2000-03-21 Michael Meissner <meissner@redhat.com>
10236 * config/alpha/alpha.md (floating point insns): Add TARGET_FP to
10237 all floating point insns that just tested the macro
10238 TARGET_HAS_XFLOATING_LIBS.
10239 (movsf/movdf recognizers): Add separate insns if -mno-fp-regs is
10240 used to only use the gprs.
10242 2000-03-21 Nathan Sidwell <nathan@codesourcery.com>
10244 * tree.h (COMPLETE_TYPE_P): New macro.
10245 (COMPLETE_OR_VOID_TYPE_P): New macro.
10246 (COMPLETE_OR_UNBOUND_ARRAY_TYPE_P): New macro.
10247 * stor-layout.c (layout_type, case VOID_TYPE): Don't set TYPE_SIZE.
10248 * c-aux-info.c (gen_type): Use them.
10249 * c-common.c (c_expand_expr_stmt): Likewise.
10250 * c-decl.c (poplevel, pushdecl, start_decl, finish_decl,
10251 grokdeclarator, grokparms, finish_struct, start_function,
10252 store_parm_decls, combine_parm_decls): Likewise.
10253 * c-parse.y (cast_expr): Likewise.
10254 * c-typeck.c (require_complete_type, c_sizeof, c_sizeof_nowarn,
10255 c_size_in_bytes, c_alignof, build_component_ref,
10256 build_indirect_ref, build_array_ref, convert_arguments,
10257 build_binary_op, pointer_diff, build_unary_op, digest_init: Likewise.
10258 * calls.c (initialize_argument_information): Likewise.
10259 * convert.c (convert_to_integer): Likewise.
10260 * dbxout.c (dbxout_typedefs, dbxout_type, dbxout_symbol): Likewise.
10261 * dwarfout.c (location_or_const_value_attribute,
10262 output_enumeration_type_die, output_structure_type_die,
10263 output_union_type_die, output_type): Likewise.
10264 * expr.c (safe_from_p, expand_expr): Likewise.
10265 * function.c (assign_parms): Likewise.
10266 * sdbout.c (sdbout_symbol, sdbout_one_type): Likewise.
10267 * tree.c (build_array_type, build_function_type,
10268 build_method_type, build_offset_type, build_complex_type): Likewise.
10269 * c-parse.c, c-parse.h: Regenerated.
10271 2000-03-21 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
10273 * config/c4x/rtems.h: Include config/rtems.h.
10275 Tue Mar 21 09:24:00 2000 Denis Chertykov <denisc@overta.ru>
10277 * config/avr/avr.c (encode_section_info): sets SYMBOL_REF_FLAG if
10278 decl is a FUNCTION_DECL
10280 Mon Mar 20 19:53:53 2000 Jim Wilson <wilson@cygnus.com>
10282 * config/ia64/ia64.c (ia64_expand_prologue): Don't abort if leaf
10283 function uses output registers. Don't save RP for leaf functions.
10284 Do save RP even if no epilogue.
10285 * config/ia64/ia64.h (FIXED_REGISTERS): Unmark in/out registers.
10286 (CALL_USED_REGISTERS): Unmark in registers.
10287 (REG_ALLOC_ORDER): Move out regs up, to near the top. Move in regs up,
10288 to near the middle.
10290 2000-03-20 Geoff Keating <geoffk@cygnus.com>
10292 * config/rs6000/rs6000.md (bunordered): New expander.
10293 (bordered): New expander.
10294 (buneq): New expander.
10295 (bunge): New expander.
10296 (bungt): New expander.
10297 (bunle): New expander.
10298 (bunlt): New expander.
10299 (bltgt): New expander.
10301 * config/rs6000/rs6000.c (ccr_bit): Handle unordered comparisons.
10302 (ccr_bit_negated_p): New function.
10303 (print_operand): For %C, generate appropriate cror for UNEQ,
10304 UNLT, UNGT, and LTGT. For %T and %t, use ccr_bit_negated_p.
10306 2000-03-20 Andreas Jaeger <aj@suse.de>
10308 * sdbout.c (sdbout_one_type): Add braces to avoid "ambigous else"
10311 * tree.h (safe_for_unsave): Prototype.
10313 2000-03-20 Richard Henderson <rth@cygnus.com>
10315 * regmove.c (stack_memref_p): Fix typo, reorg for readability.
10316 (combine_stack_adjustments_for_block): Don't allow sp references
10317 in the side of a set we're not fixing up.
10318 * toplev.c (rest_of_compilation): Run combine_stack_adjustments
10319 after life_analysis.
10321 2000-03-20 Richard Henderson <rth@cygnus.com>
10323 * calls.c (expand_call): Don't bother generating tail call
10324 sequences if there are pending cleanups. Use
10325 expand_start_target_temps/expand_end_target_temps to elide
10326 cleanups created during sibcall expansion.
10328 2000-03-20 Geoff Keating <geoffk@cygnus.com>
10330 * configure.in: Set $IFS to a value if it doesn't already have one
10331 in the --enable-checking handling.
10332 * configure: Regenerate.
10334 2000-03-20 Martin v. Löwis <loewis@informatik.hu-berlin.de>
10336 * c-parse.in (SAVE_WARN_FLAGS): Use size_int.
10337 * c-parse.y, c-parse.c, objc/objc-parse.y, objc/objc-parse.c:
10340 Mon Mar 20 11:43:15 MET 2000 Jan Hubicka <jh@suse.cz>
10342 * jump.c (delete_noop_moves): Remove code attempting to
10343 combine stack adjustments.
10345 2000-03-19 Martin v. Löwis <loewis@informatik.hu-berlin.de>
10347 * emit-rtl.c (push_to_full_sequence, end_full_sequence): New functions.
10348 * except.c (emit_cleanup_handler): Use them.
10349 (expand_end_all_catch): Likewise.
10350 * function.c (fixup_var_refs): Likewise.
10351 (expand_function_end): Clear catch_clauses_last.
10352 * rtl.h (push_to_full_sequence, end_full_sequence): Declare.
10353 * except.h (struct eh_status): New field x_catch_clauses_last.
10354 (catch_clauses_last): New define.
10356 * Makefile.in (tree.o): Depend on HASHTAB_H.
10357 * tree.c: Include hashtab.h.
10358 (struct type_hash): Remove next field.
10359 (TYPE_HASH_SIZE): Remove.
10360 (TYPE_HASH_INITIAL_SIZE): New define.
10361 (type_hash_table): Change type to htab_t.
10362 (type_hash_eq, type_hash_hash, print_type_hash_statistics,
10363 mark_hash_entry): New functions.
10364 (init_obstacks): Allocate type hash.
10365 (type_hash_lookup): Use htab functions.
10366 (type_hash_add, mark_type_hash): Likewise.
10367 (dump_tree_statistics): Call print_type_hash_statistics.
10369 2000-03-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10371 * rs6000/t-aix41: New file.
10373 * configure.in ({rs6000,powerpc}-ibm-aix4.[12]*): Use it.
10375 Sun Mar 19 13:27:30 2000 Hans-Peter Nilsson <hp@axis.com>
10377 * tm.texi (Driver): Fix typos and tweak entry for
10379 Move misplaced STRUCT_FORCE_BLK entry ...
10380 (Storage Layout): ... to here.
10381 (Run-time Target): Recommend having TARGET_MASK_... helper macros.
10383 2000-03-19 Richard Henderson <rth@cygnus.com>
10385 * flow.c (delete_block): Delete the addr_vec along with the block.
10386 (flow_delete_insn): Decrement LABEL_NUSES when deleting insns that
10389 * fold-const.c (extract_muldiv): Apply type check for defined
10390 overflow to multiply as well as divide.
10392 * stor-layout.c (layout_decl): Don't abort on any zero sized decl.
10394 2000-03-18 Mark Mitchell <mark@codesourcery.com>
10396 * emit-rtl.c (remove_unncessary_notes): Check that all
10397 NOTE_INSN_BLOCK_BEG and NOTE_INSN_BLOCK_END notes have an
10398 associated NOTE_BLOCK.
10399 * function.h (identify_blocks): Update comments.
10400 (reorder_blocks): Declare.
10401 * function.c (identify_blocks): Don't take paramters.
10402 (reorder_blocks): Don't take parameters.
10403 * loop.h (find_loop_tree_blocks): Remove.
10404 (unroll_block_trees): Likewise.
10405 * loop.c (loop_optimize): Don't call find_loop_tree_blocks. Use
10406 reorder_blocks instead of unroll_block_trees.h
10407 * sibcall.c (optimize_sibling_and_tail_recursive_calls): Likewise.
10408 * stmt.c (find_loop_tree_blocks): Remove.
10409 (unroll_block_trees): Likewise.
10410 * toplev.c (rest_of_compilation): Don't call find_loop_tree_blocks
10411 in whole-function mode.
10412 * tree.h (reorder_blocks): Remove declaration.
10414 * expr.c: Include intl.h.
10415 * Makefile.in (expr.o): Depend on intl.h.
10417 2000-03-18 Richard Henderson <rth@cygnus.com>
10419 * expr.c (emit_move_insn_1): Clarify cannot_inline message.
10421 2000-03-18 Mark Mitchell <mark@codesourcery.com>
10423 * tree.h (tree_index): Remove enumerals for integer types.
10424 (integer_type_kind): New type.
10425 (integer_types): New variable.
10426 (char_type_node): Adjust.
10427 (signed_char_type_node): Likewise.
10428 (unsigned_char_type_node): Likewise.
10429 (short_integer_type_node): Likewise.
10430 (short_unsigned_type_node): Likewise.
10431 (integer_type_node): Likewise.
10432 (unsigned_type_node): Likewise.
10433 (long_integer_type_node): Likewise.
10434 (long_unsigned_type_node): Likewise.
10435 (long_long_integer_type_node): Likewise.
10436 (long_long_unsigned_type_node): Likewise.
10437 * tree.c (integer_types): New variable.
10438 (init_obstacks): Register it as a root.
10440 Sat Mar 18 14:38:00 2000 Jason Eckhardt <jle@cygnus.com>
10442 * bb-reorder.c (reorder_basic_blocks): Update PREV_INSN as well as
10443 NEXT_INSN. Update last insn in chain.
10445 2000-03-17 Jason Merrill <jason@casey.cygnus.com>
10447 * dwarf2out.c (dwarf2out_decl): Don't emit anything for types
10448 with TYPE_DECL_SUPPRESS_DEBUG set.
10450 2000-03-18 Richard Henderson <rth@cygnus.com>
10452 * flow.c (make_edges): Use INTVAL to access REG_EH_REGION value.
10454 2000-03-18 Richard Henderson <rth@cygnus.com>
10456 * i386.c (call_insn_operand): Always allow SYMBOL_REF,
10457 care for HALF_PIC_P.
10458 (expander_call_insn_operand): Remove.
10459 (ix86_expand_epilogue): New arg `emit_return' to control return insn.
10460 * i386.h (PREDICATE_CODES): Update.
10461 * i386.md (all call expanders): Remove predicates, remove special
10462 handling for half-pic.
10463 (*call_1, *call_value_1): Handle SIBLING_CALL_P insns.
10464 (*call_pop_pic2, *call_pic2, *call_value_pop_2, *call_value_2): Remove.
10465 (sibcall_epilogue): New.
10467 2000-03-17 Richard Henderson <rth@cygnus.com>
10469 * rtlanal.c (single_set): Reject if the parallel has anything
10470 except SET or USE or CLOBBER.
10472 2000-03-17 Jeff Law <law@cygnus.com>
10473 Richard Henderson <rth@cygnus.com>
10475 * Makefile.in (OBJS): Add sibcall.o.
10477 * sibcall.c: New file.
10478 * calls.c (FUNCTION_OK_FOR_SIBCALL): Provide default.
10479 (ECF_IS_CONST, ECF_NOTHROW, ECF_SIBCALL): New.
10480 (emit_call_1): Replace `is_const' and `nothrow' with `ecf_flags'.
10481 Emit sibcall patterns when requested. Update all callers.
10482 (expand_call): Generate CALL_PLACEHOLDER insns when tail call
10483 elimination seems feasable.
10484 * final.c (leaf_function_p): Sibling calls don't discount being
10486 * flow.c (HAVE_sibcall_epilogue): Provide default.
10487 (find_basic_blocks_1): Sibling calls don't throw.
10488 (make_edges): Make edge from sibling call to EXIT.
10489 (propagate_block): Don't remove sibcall_epilogue insns.
10490 * function.c (prologue, epilogue): Turn into varrays. Update all uses.
10491 (sibcall_epilogue): New.
10492 (fixup_var_refs): Scan CALL_PLACEHOLDER sub-sequences.
10493 (identify_blocks_1): Likewise. Break out from ...
10494 (identify_blocks): ... here.
10495 (reorder_blocks_1): Scan CALL_PLACEHOLDER. Break out from ...
10496 (reorder_blocks): ... here.
10497 (init_function_for_compilation): Zap prologue/epilogue as varrays.
10498 (record_insns): Extend a varray instead of mallocing new memory.
10499 (contains): Read a varray not array of ints.
10500 (sibcall_epilogue_contains): New.
10501 (thread_prologue_and_epilogue_insns): Emit and record
10502 sibcall_epilogue patterns.
10503 (init_function_once): Allocate prologue/epilogue varrays.
10504 * genflags.c (gen_insn): Treat sibcall patterns as calls.
10505 * integrate.c (save_parm_insns): Recurse on CALL_PLACEHOLDER patterns.
10506 Broken out from ...
10507 (save_for_inline_nocopy): ... here.
10508 (copy_insn_list): Recurse on CALL_PLACEHOLDER patterns.
10509 Broken out from ...
10510 (expand_inline_function): ... here.
10511 (copy_rtx_and_substitute): Handle NOTE_INSN_DELETED_LABEL.
10512 (subst_constants): Handle 'n' formats.
10513 * jump.c (jump_optimize_minimal): New.
10514 (jump_optimize_1): New arg `minimal'; update callers. Elide most
10515 optimizations if it's set.
10516 * rtl.c (copy_rtx): Do copy jump & call for insns.
10517 * rtl.h (struct rtx_def): Document use of jump and call for insns.
10518 (SIBLING_CALL_P): New.
10519 (sibcall_use_t): New.
10520 * toplev.c (rest_of_compilation): Do init_EXPR_INSN_LIST_cache earlier.
10521 Invoke optimize_sibling_and_tail_recursive_calls.
10522 * tree.c (lang_safe_for_unsave): New.
10523 (safe_for_unsave): New.
10524 * tree.h (lang_safe_for_unsave, safe_for_unsave): Declare.
10526 * alpha.h (FUNCTION_OK_FOR_SIBCALL): New.
10527 * alpha.md (sibcall, sibcall_value, sibcall_epilogue): New.
10528 (*sibcall_osf_1, *sibcall_value_osf_1): New.
10530 2000-03-17 Mark Mitchell <mark@codesourcery.com>
10532 * objc/objc-act.c (encode_method_prototype): Pass types, not
10533 PARM_DECLs, to int_size_in_bytes.
10535 Fri Mar 17 11:51:34 2000 Jim Wilson <wilson@cygnus.com>
10537 * config/ia64/ia64.md (mix4right_3op): Swap %1 and %2 in template.
10539 * config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
10540 config/ia64/ia64.md, config/ia64/xm-ia64.h: Fix copyrights again.
10542 Fri Mar 17 08:09:14 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10544 * Clean up usages of TREE_INT_CST_LOW.
10545 * c-parse.in (RESTORE_WARN_FLAGS): Use tree_low_cst.
10546 * c-parse.y, c-parse.c, objc/objc-parse.y, objc/objc-parse.c:
10548 * c-tree.h (min_precision): Move declaration to here.
10549 * c-typeck.c (build_binary_op): Use host_integerp and tree_low_cst.
10550 (build_unary_op, add_pending_init): Use bit_position.
10551 (pending_init_member, process_init_element): Likewise.
10552 (really_start_incremental_init, push_init_level, pop_init_level):
10553 Don't make copies of nodes or modify them in place, use consistent
10554 types when tracking positions, and use tree routines computations.
10555 (set_init_index, output_init_element): Likewise.
10556 (output_pending_init_elements, process_init_element): Likewise.
10557 * dbxout.c (dbxout_type_fields): Use bit_position, host_integerp,
10558 tree_low_cst and int_bit_position; also minor cleanup.
10559 (dbxout_type_method_1, dbxout_range_type, dbxout_type): Likewise.
10560 (print_cst_octal): Precision is unsigned.
10561 (dbxout_symbol): Ensure DECL_INITIAL is in-range and use tree_low_cst.
10562 * dwarf2out.c (ceiling): Input and output are unsigned HOST_WIDE_INT.
10563 (simple_type_align_in_bits): Result is unsigned int.
10564 Use tree_int_low_cst and host_integerp.
10565 (simple_type_size_in_bits): Result is unsigned HOST_WIDE_INT.
10566 (field_byte_offset): Result is HOST_WIDE_INT.
10567 Change types of internal variables so alignments are unsigned int,
10568 offsets are HOST_WIDE_INT and sizes are unsigned HOST_WIDE_INT.
10569 Use host_integerp, tree_low_cst, and int_bit_position.
10570 (add_bit_offset_attribute): Likewise.
10571 (add_data_member_location_attribute): Use tree_cst_low.
10572 (add_bound_info): Use host_integerp, integer_zerop, and integer_onep.
10573 (add_bit_size_attribute): Use tree_low_cst.
10574 (add_pure_or_virtual_attribute, gen_enumeration_type_die): Likewise.
10575 * dwarfout.c: Similar changes to dwarf2out.c.
10576 * expr.c (expand_expr, case ARRAY_REF): Remove redundant code.
10577 * genoutput.c (n_occurences): Return -1 for null string.
10578 (strip_whitespace): Accept null string and make into function.
10579 (scan_operands): Reflect above changes.
10580 * sdbout.c (plain_type_1): Use host_integerp and tree_low_cst.
10581 (sdbout_field_types, sdbout_one_type): Likewise; also use bit_position.
10582 * ssa.c (rename_registers): Add missing cast of arg to bzero.
10583 * tree.c (int_size_in_bytes): Check for too big to represent.
10584 (bit_position, int_bit_position, host_integerp, tree_low_cst): New fns.
10585 * tree.h (host_integerp, tree_low_cst, bit_position, int_bit_position):
10587 (min_precision): Delete from here.
10588 * varasm.c (decode_addr_const): Use host_integerp, bit_position,
10589 and int_bit_position.
10590 * objc/objc-act.c (encode_method_prototype): Sizes are HOST_WIDE_INT.
10591 (encode_method_def): Likewise.
10592 (build_ivar_list_initializer): Use int_bit_position.
10593 (generate_shared_structures): Convert size.
10594 (encode_type, encode_complete_bitfield): Use integer_zerop.
10595 (encode_bitfield): Use tree_low_cst and int_bit_position.
10597 2000-03-17 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
10599 * config/c4x/c4x.h (CPP_SPEC): Fix typo.
10601 2000-03-17 Martin v. Löwis <loewis@informatik.hu-berlin.de>
10603 * call.c (special_function_p): It is only malloc if it returns
10606 2000-03-17 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
10608 * config/c4x/c4x.h (ASM_SPEC, CPP_SPEC, LINK_SPEC): Support C33.
10609 (C33_FLAG, TARGET_C3X): Add macros.
10610 (TARGET_SWITCHES): Add -m33 option.
10611 * config/c4x/c4x.c (c4x_override_options): Test for TARGET_C33.
10613 2000-03-17 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
10615 * config/c4x/c4x.h (PARALLEL_INSN_FLAG): Add.
10616 (PARALLEL_PACK_FLAG): Delete.
10617 (TARGET_SWITCHES): Update.
10618 (TARGET_PARALLEL): Use PARALLEL_INSN_FLAG.
10620 Thu Mar 16 18:52:32 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10622 * fold-const.c (fold): Fix a few cases when the returned result
10623 is not of the same type as the input.
10625 2000-03-16 Nick Clifton <nickc@cygnus.com>
10627 * config/arm/arm.h (ASM_OUTPUT_MI_THUNK): Fix compile time
10630 2000-03-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10632 * libgcc2.h: Move prototypes above macros with the same name.
10633 Wrap some function prototypes in the conditional which indicates
10634 whether they are supported, i.e. "BITS_PER_UNIT == 8".
10636 2000-03-16 Richard Henderson <rth@cygnus.com>
10638 * calls.c: Revert last two changes.
10640 2000-03-16 Bernd Schmidt <bernds@cygnus.co.uk>
10642 * fp-bit.c (_unpack_d): If NO_DENORMALS is defined, anything that
10643 has exponent 0 is a zero.
10645 * simplify-rtx.c (hash_rtx, case MEM/REG): Take into account that
10646 HASH may already be nonzero. Add code/mode into hash value
10647 immediately after repeat label.
10648 (cselib_lookup): Don't leave the hash table in an inconsistent
10649 state before a hash lookup operation.
10651 Thu Mar 16 17:03:10 MET 2000 Jan Hubicka <jh@suse.cz>
10653 * i386.md (all HI and QI mode non-move patterns): Conditionize
10654 by TARGET_[HQ]IMODE_MATH.
10655 * i386.h (x86_himode_math, x86_qimode_math, x86_promote_hi_regs,
10656 x86_promote_qi_regs): Declare.
10657 (TARGET_HIMODE_MATH, TARGET_QIMODE_MATH, TARGET_PROMOTE_HI_REGS,
10658 TARGET_PROMOTE_QI_REGS): New macros.
10659 (PROMOTE_MODE): New macro.
10660 * i386.c (x86_himode_math, x86_qimode_math, x86_promote_hi_regs,
10661 x86_promote_qi_regs): New global variables.
10663 Thu Mar 16 16:50:44 MET 2000 Jan Hubicka <jh@suse.cz>
10665 * calls.c (emit_library_call_value_1): Break out from ...; handle
10666 VOIDmode function calls too.
10667 (emit_library_call_value): ... here.
10668 (emit_library_call): Implement by calling emit_library_call_value_1.
10670 Thu Mar 16 16:01:30 MET 2000 Jan Hubicka <jh@suse.cz>
10672 * calls.c (expand_call): Do sanity checking on arg_space_so_far.
10673 Update arg_space_so_far on stack adjustments.
10674 (emit_library_call, emit_library_call_value): Likewise; take into
10675 account arg_space_so_far and pending_stack_adjust when calculcating
10678 Thu Mar 16 09:02:19 2000 Jason Eckhardt <jle@cygnus.com>
10680 * flow.c: Move all basic block reordering code into its own file.
10681 (create_basic_block): Externalize.
10682 * bb-reorder.c: New file. Copy all basic block reordering code from
10683 flow.c to this file.
10684 (reorder_basic_blocks): Fix fencepost error in for-loop.
10685 (reorder_basic_blocks): Remove braces from single statement for-loops.
10686 * basic-block.h: Add declaration for create_basic_block.
10687 * Makefile.in: Add rules for bb-reorder.o.
10689 2000-03-16 Neil Booth <NeilB@earthling.net>
10691 * cppinit.c (handle_option): Implement #unassert directive
10692 as -A- command line option.
10693 (print_help): Update.
10694 * cpptexi.c: Update.
10696 Thu Mar 16 02:14:16 2000 Hans-Peter Nilsson <hp@bitrange.com>
10698 * md.texi (Standard Names): Document `jump'.
10700 2000-03-15 Jason Merrill <jason@casey.cygnus.com>
10702 * calls.c (emit_call_1): Nothrow functions can still have nonlocal
10705 2000-03-15 Geoff Keating <geoffk@cygnus.com>
10707 Merge changes from newppc-branch onto trunk.
10709 2000-03-15 Geoff Keating <geoffk@cygnus.com>
10711 * rs6000.c (toc_hash_table): Update for new hash table functions.
10712 (toc_hash_function): Likewise.
10713 (toc_hash_eq): Likewise.
10714 (toc_hash_mark_entry): Likewise.
10715 (toc_hash_mark_table): Likewise.
10716 (output_toc): Likewise.
10717 (rs6000_add_gc_roots): Likewise.
10719 2000-03-15 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
10721 * t-aix43 (AR_FOR_TARGET): Deleted. Moved `-X32_64'...
10722 (AR_FLAGS_FOR_TARGET): here. New macro.
10724 2000-03-05 Clinton Popetz <cpopetz@cygnus.com>
10726 * config/rs6000/rs6000.c (rs6000_fpmem_offset, rs6000_fpmem_size,
10727 fpmem_operand) Delete.
10729 (rs6000_reg_names, alt_reg_names): Change fpmem to xer.
10730 (machine_function): Remove fpmem_size, fpmem_offset, save_toc_p.
10731 (rs6000_save_machine_status, rs6000_restore_machine_status,
10732 rs6000_init_expanders, rs6000_stack_info, debug_stack_info): Remove
10733 references to above variables.
10734 (gpc_reg_operand): Use XER_REGNO_P instead of FPMEM_REGNO_P.
10735 * config/rs6000/rs6000.h (REG_ALLOC_ORDER, REGISTER_NAMES,
10736 DEBUG_REGISTER_NAMES): Chagne fpmem to xer.
10737 (FPMEM_REGNO_P, FPMEM_REGNUM): Delete.
10738 (XER_REGNO_P, XER_REGNO): New.
10739 (rs6000_stack): Remove fpmem_p, fpmem_offset, fpmem_size.
10740 (PREDICATE_CODES): Change fpmem_operand to xer_operand.
10741 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Change FPMEM_REGNO_P to
10743 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS,
10744 REG_CLASS_FROM_LETTER, CLASS_MAX_NREGS): Change FPMEM_REGS to XER_REGS, and remove FLOAT_OR_FPMEM_REGS.
10745 (CLASS_CANNOT_CHANGE_SIZE): Change to FLOAT_REGS.
10747 2000-02-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10749 * aix.h (FP_SAVE_INLINE, ASM_OUTPUT_INTERNAL_LABEL_PREFIX,
10750 TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP): Move here...
10751 * rs6000.h: from here.
10753 * rs6000-protos.h (rs6000_select_section): Provide prototype.
10754 (rs6000_select_rtx_section): Likewise.
10755 (rs6000_encode_section_info): Likewise.
10756 (sdata_section): Likewise.
10757 (sdata2_section): Likewise.
10758 (sbss_section): Likewise.
10759 * sysv4.h (rs6000_select_section): Delete prototype.
10760 (rs6000_select_rtx_section): Likewise.
10761 (rs6000_encode_section_info): Likewise.
10762 (sdata_section): Likewise.
10763 (sdata2_section): Likewise.
10764 (sbss_section): Likewise.
10765 (REG_SAVE_AREA): Delete definition duplicated in rs6000.h.
10767 * sysv4.h: Delete various unnecessary #undef's and put a comment
10768 on the remaining ones.
10769 Change various comments according to coding standard.
10771 2000-02-29 Clinton Popetz <cpopetz@cygnus.com>
10773 * config/rs6000/rs6000.h (MQ_REGNO, CR0_REGNO, CR1_REGNO, CR2_REGNO,
10774 CR3_REGNO, CR4_REGNO, MAX_CR_REGNO): Define.
10775 (CR0_REGNO_P) Remove.
10776 * config/rs6000/rs6000.c (gpc_reg_operand, and64_operand, and_operand,
10777 setup_incoming_varargs, mtcrf_operation, print_operand,
10778 rs6000_stack_info, rs6000_emit_prologue, rs6000_emit_epilogue):
10779 Use the above macros.
10781 2000-02-24 Clinton Popetz <cpopetz@cygnus.com>
10783 * config/rs6000/rs6000.md: Added a new alternative for each
10784 pattern that had a 'x' alternative but no 'y' alternative.
10785 Added a new split for each of the above patterns.
10787 2000-02-18 Geoff Keating <geoffk@cygnus.com>
10789 * aix41.h (ASM_CPU_SPEC): Delete.
10790 (CPP_CPU_SPEC): Delete.
10792 * aix.h (RS6000_OUTPUT_BASENAME): Define.
10793 (ASM_OUTPUT_LABEL): Define.
10794 (ASM_GLOBALIZE_LABEL): Define.
10795 (STRIP_NAME_ENCODING): Define.
10796 * rs6000.h (RS6000_OUTPUT_BASENAME): Don't define.
10797 (STRIP_NAME_ENCODING): Don't define.
10798 (ASM_OUTPUT_LABEL): Don't define.
10799 (ASM_GLOBALIZE_LABEL): Don't define.
10800 * sysv4.h (ASM_DECLARE_FUNCTION_NAME): Use assemble_name to output
10801 names, and ASM_OUTPUT_LABEL to output labels, rather than
10803 (ASM_OUTPUT_LABEL): Define.
10804 (ASM_OUTPUT_INT): Use assemble_name.
10805 (ASM_OUTPUT_DWARF_ADDR): Use assemble_name.
10806 (STRIP_NAME_ENCODING): Don't undefine first.
10807 (RS6000_OUTPUT_BASENAME): Make equivalent to assemble_name for
10809 (ASM_OUTPUT_LABELREF): Don't prepend underscores to labels
10810 specified with 'asm' even with -fleading-underscore.
10811 * rs6000.c (print_operand): Use assemble_name when !TARGET_AIX.
10812 (output_epilog): Likewise.
10813 (output_toc): Likewise.
10814 * tramp.asm: Handle -fleading-underscore correctly.
10816 * rs6000.md (builtin_setjmp_receiver): Also run for -fPIC and
10818 (nonlocal_goto_receiver): Delete.
10819 * rs6000.h (DONT_ACCESS_GBLS_AFTER_EPILOGUE): Delete.
10821 * rs6000.h (ASM_OUTPUT_DEF): Don't define.
10822 (SET_ASM_OP): Define.
10823 * sysv4.h (ASM_OUTPUT_DEF): Don't undefine.
10825 * rs6000.h (ASM_OUTPUT_ADDR_VEC_ELT): Don't define.
10826 (ASM_LONG): Define.
10828 * rs6000.c (rs6000_dll_import_ref): Delete, not used.
10829 * rs6000-protos.h (rs6000_dll_import_ref): Delete.
10831 * rs6000.h: Add 'u' to more constants.
10833 2000-02-18 David Edelsohn <edelsohn@gnu.org>
10835 * rs6000.md (mfcr+shift): Delete PowerPC64 version.
10837 2000-02-15 David Edelsohn <edelsohn@gnu.org>
10839 * rs6000.c (reg_or_u_cint_operand): New function.
10840 (logical_operand): Handle 64-bit hosts.
10841 (logical_u_operand): New function.
10842 (non_logical_cint_operand): Handle 64-bit hosts.
10843 (non_logical_u_cint_operand): New function.
10844 * rs6000.h (DATA_SECTION_ASM_OP): Add tab.
10845 (PREDICATE_CODES): Define new functions.
10846 * rs6000-protos.h: Declare new functions.
10847 * rs6000.md (iordi3, xordi3): Constant int must be unsigned 32-bits.
10848 (movdi_64): Bracket code intended for 64-bit hosts. Create
10849 CONST_DOUBLE for 32-bit values.
10850 (scc insns): Generate DImode compares.
10851 (mfcr insns): Create DImode versions.
10852 (sge matchers): New patterns.
10854 2000-02-15 Gabriel Paubert <paubert@iram.es>
10856 * rs6000.md: Correct instructions length attributes and
10857 constraints on unsigned compare instructions.
10858 (*ne0): Disable for PowerPC64.
10860 2000-02-11 Geoff Keating <geoffk@cygnus.com>
10862 * rs6000.c (output_function_profiler): Use .long for a 32-bit
10863 quantity, fix profile1.C test failure under -fPIC.
10865 * rs6000.c: Add 'u' to many constants to suppress warnings.
10866 (constant_pool_expr_1): Make static.
10867 (rs6000_emit_eh_toc_restore): Remove unused 'r2'.
10868 * rs6000.h: Add 'u' to many constants to suppress warnings.
10870 * rs6000.c (rs6000_emit_load_toc_table): Use LCTOC..1 under AIX
10871 for the start of the TOC, instead of LCTOC..0.
10872 * aix.h (toc_section): Use LCTOC..1 under AIX for the start
10874 * rs6000.md (load_toc_aix_si): Use LCTOC..1.
10875 (load_toc_aix_di): Use LCTOC..1.
10877 * rs6000.h (LEGITIMIZE_ADDRESS): Turn into a function.
10878 * rs6000.c (rs6000_legitimize_address): New function from
10879 LEGITIMIZE_ADDRESS. Only use create_TOC_reference on
10880 symbols in the constant pool that really are TOC references.
10881 (print_operand_address): For ELF, write TOC offsets under
10882 -fPIC as subtractions in the insn.
10883 (output_toc): For ELF, define symbols in TOC as normal labels,
10885 (create_TOC_reference): Use gen_rtx_PLUS rather than gen_rtx.
10886 * rs6000-protos.h (rs6000_legitimize_address): Prototype.
10887 (create_TOC_reference): Prototype only when RTX_CODE is defined.
10888 * rs6000.md (movsi): Only use create_TOC_reference on
10889 symbols in the constant pool that really are TOC references.
10891 * rs6000.h (MACHINE_DEPENDENT_REORG): Don't define.
10892 * rs6000.c (rs6000_reorg): Delete.
10893 * rs6000-protos.h (rs6000_reorg): Delete.
10895 2000-02-09 Geoff Keating <geoffk@cygnus.com>
10897 * rs6000.h (INCOMING_RETURN_ADDR_RTX): New macro.
10899 * aix.h (SETUP_FRAME_ADDRESSES): Define.
10900 * rs6000.c [TARGET_AIX] (insn_after_throw): New static variable.
10901 [TARGET_AIX] (rs6000_aix_emit_builtin_unwind_init): New function.
10902 [TARGET_AIX] (rs6000_emit_eh_toc_restore): New function.
10903 * rs6000-protos.h: Prototype rs6000_emit_eh_toc_restore,
10904 rs6000_aix_emit_builtin_unwind_init.
10905 * rs6000.md (eh_epilogue) [TARGET_AIX]: Call
10906 rs6000_emit_eh_toc_restore on AIX.
10907 (return_eh_si): Use r2.
10908 (return_eh_di): Use r2.
10910 * aix43.h: Turn on HAS_INIT_SECTION and LD_INIT_SWITCH,
10911 since we're breaking binary compatibility anyway.
10913 2000-02-09 Clinton Popetz <cpopetz@cygnus.com>
10915 * config/rs6000/rs6000-protos.h: (get_TOC_alias_set, uses_TOC,
10916 constant_pool_expr_p): Declare them.
10917 (constant_pool_expr_p): Declare it.
10918 * config/rs6000/rs6000.c (toc_label_name): Define.
10919 (rs6000_override_options): Set toc_label_name.
10920 (input_operand): Allow any TOC_RELATIVE_EXPR_P.
10921 (get_TOC_alias_set, constant_pool_expr_p, constant_pool_expr_1,
10922 uses_TOC): New functions.
10923 (print_operand): Delete old '*' case.
10924 (print_operand_address): Use LEGITIMATE_CONSTANT_POOL_ADDRESS_P,
10925 and strip off rtl for TOC before calling output_addr_const.
10926 (rs6000_emit_load_toc_table): Use toc_label_name.
10927 * config/rs6000/rs6000.h (TARGET_SWITCHES): Make msched-prolog
10929 (LEGITIMATE_CONSTANT_POOL_BASE_P): Delete.
10930 (CONSTANT_POOL_EXPR_P, TOC_RELATIVE_EXPR_P): New macros.
10931 (LEGITIMATE_CONSTANT_POOL_ADDRESS_P): Use CONSTANT_POOL_EXPR_P.
10932 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Turn symbol_refs
10933 into explicit TOC_REGISTER offsets.
10934 (TOC_REGISTER): New macro.
10935 * config/rs6000/rs6000.md (movsi, movdi): Emit rtl under
10936 TARGET_TOC to reference TOC_REGISTER.
10937 (load_toc_v4_PIC_1b): Add 4 to offset for toc reload.
10938 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Call
10939 uses_TOC before emitting label references.
10941 2000-02-05 Geoff Keating <geoffk@cygnus.com>
10943 * rs6000.md (stack_tie): Fix warning.
10945 * eabi-ctors.c: Use 'asm' names for the start/end variables,
10946 to handle -fleading-underscore.
10947 * sysv4.h (ASM_DECLARE_FUNCTION_NAME): Use asm_fprintf and %U.
10948 (USER_LABEL_PREFIX): New macro.
10949 (ASM_OUTPUT_INTERNAL_LABEL_PREFIX): Use asm_fprintf and %L.
10950 (ASM_OUTPUT_LABELREF): Use asm_fprintf and %U.
10951 * t-ppccomm (MULTILIB_MATCHES_SYSV): Note that call-sysv and
10952 call-linux can use the same multilibs.
10953 * t-ppcgas (MULTILIB_OPTIONS): Don't need to have separate call-sysv
10954 and call-linux multilibs. Do multilib with -fleading-underscore.
10955 (MULTILIB_DIRNAMES): Follow MULTILIB_OPTIONS change.
10956 (MULTILIB_EXCEPTIONS): Remove call-linux exceptions. Add restrictions
10959 * sysv4.h (CPP_SYSV_SPEC): Define _SOFT_FLOAT for all those CPUs that
10960 have MASK_SOFT_FLOAT set.
10961 (CPP_FLOAT_DEFAULT_SPEC): New macro.
10962 (SUBTARGET_EXTRA_SPECS): Set `cpp_float_default' to the value of
10963 CPP_FLOAT_DEFAULT_SPEC.
10965 * rs6000.c (ccr_bit): Add some consistency checks and a variable 'reg'.
10966 * rs6000.md: Whitespace change.
10967 * sysv4.h (LINK_TARGET_SPEC): Whitespace change.
10968 * sysv4le.h (LINK_TARGET_SPEC): Whitespace change.
10970 2000-02-05 Geoff Keating <geoffk@cygnus.com>
10972 * rs6000.md (eh_epilogue): New expander.
10973 (eh_reg_restore): New expand/split/insn combination.
10974 (return_eh_si): New insn.
10975 (return_eh_di): New insn.
10977 * eabi-ci.asm: Put a label at the start of the .eh_frame section.
10978 * eabi-cn.asm: Put a zero at the end of the .eh_frame section.
10979 * eabi-ctors.c (__do_global_ctors): Register this object's
10980 frame. Clean up. Call atexit() after the constructors.
10981 (__do_global_dtors): Deregister this object's frame. Clean up.
10982 Allow for recursive calls to exit().
10983 * rs6000.c (fixuplabelno): New variable.
10984 * sysv4.h (ASM_OUTPUT_INT): Don't do .fixup if not
10985 TARGET_RELOCATABLE, it slows down exec() under linux.
10986 (ASM_OUTPUT_DWARF_ADDR): Do .fixup if TARGET_RELOCATABLE.
10988 * aix.h (ASM_OUTPUT_DWARF_ADDR_VAR): New macro.
10989 (ASM_OUTPUT_DWARF_DELTA_VAR): New macro.
10990 (ASM_OUTPUT_DWARF_DELTA2): New macro.
10991 (ASM_OUTPUT_DWARF_DELTA4): New macro.
10992 (ASM_OUTPUT_DWARF_ADDR_DELTA): New macro.
10993 (ASM_OUTPUT_DWARF_ADDR): New macro.
10994 (ASM_OUTPUT_DWARF_DATA4): New macro.
10995 (ASM_OUTPUT_DWARF_DATA2): New macro.
10996 (ASM_OUTPUT_DWARF_OFFSET4): New macro.
10997 (ASM_OUTPUT_DWARF_OFFSET): New macro.
10998 (UNALIGNED_INT_ASM_OP): New macro, fake definition.
11000 2000-02-03 Geoff Keating <geoffk@cygnus.com>
11002 * rs6000.c (rs6000_sr_alias_set): New variable.
11003 (rs6000_override_options): Initialise rs6000_sr_alias_set.
11004 (rs6000_emit_stack_tie): New function.
11005 (rs6000_emit_allocate_stack): Specify RTX_FRAME_RELATED_P
11006 in a way that dwarf2out can understand.
11007 (rs6000_frame_related): New function.
11008 (rs6000_emit_prologue): Use rs6000_sr_alias_set. Specify
11009 RTX_FRAME_RELATED_P in a way that dwarf2out can understand.
11010 Use rs6000_emit_stack_tie when needed.
11011 (rs6000_emit_epilogue): Use rs6000_sr_alias_set. Don't set
11012 RTX_FRAME_RELATED_P. Use rs6000_emit_stack_tie when needed.
11013 * rs6000.md (stack_tie): New insn.
11014 (return_internal_si): Allow return value to be in the count
11016 (return_internal_di): Likewise.
11018 * rs6000.c (output_mi_thunk): Remove unused variable `sp'.
11020 2000-02-03 Geoff Keating <geoffk@cygnus.com>
11022 * sysv4.h (LOCAL_LABEL_PREFIX): Define, for the use of dbxelf.h.
11024 2000-01-31 Geoff Keating <geoffk@cygnus.com>
11026 * rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): New macro.
11028 * rs6000.md (stmw): Use the right POWER opcode.
11031 2000-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11033 * rs6000-protos.h: New file.
11035 * rs6000.c: Include tm_p.h. Fix compile time warnings.
11037 * rs6000.h: Move prototypes to rs6000-protos.h. Fix compile time
11040 * sysv4.h: Likewise.
11042 2000-01-28 Geoff Keating <geoffk@cygnus.com>
11044 * ../../configure.in: Delete powerpcle-*-winnt*
11045 and powerpcle-*-pe|powerpcle-*-cygwin*.
11046 * ../../configure: Regenerated.
11047 * cygwin.h: Delete.
11048 * rs6000.h (OBJECT_WINDOWS_NT): Delete.
11049 (TARGET_WINDOWS_NT): Delete.
11051 (CALL_NT_DLLIMPORT): Delete.
11052 Delete NT-specific code.
11053 * rs6000.md, rs6000.c, sysv4.h: Delete NT-specific code.
11054 * win-nt.h: Delete.
11056 * nt-ci.asm: Delete.
11057 * nt-cn.asm: Delete.
11058 * ntstack.asm: Delete.
11060 2000-01-27 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11062 * rs6000.h (SELECT_RTX_SECTION): Move to aix.h.
11063 (ASM_FILE_START): Likewise.
11064 (ASM_DECLARE_FUNCTION_NAME): Likewise.
11065 (ASM_OUTPUT_LABELREF): Likewise.
11066 (ASM_OUTPUT_SKIP): Likewise.
11067 (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
11068 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
11069 (ASM_OUTPUT_CASE_LABEL): Likewise.
11070 (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
11071 (ASM_OUTPUT_ASCII): Likewise.
11073 2000-01-27 Clinton Popetz <cpopetz@cygnus.com>
11075 * rs6000.c (rs6000_emit_load_toc_table): Use "LCG" and
11076 reload_toc_labelno for non-prologue TOC reloads. Also, don't
11077 increment rs6000_pic_labelno here.
11078 (rs6000_emit_prologue): Pass TRUE to rs6000_emit_load_toc_table,
11079 and increment rs6000_pic_labelno here.
11081 2000-01-24 Geoffrey Keating <geoffk@cygnus.com>
11083 * rs6000.md (fctiwz): Use (set (reg) (unspec:DI [(fix:SI ...)]))
11084 rather than (set (subreg:SI (reg)) (fix:SI ...)) so that register
11085 allocation knows (reg) is dead before the insn.
11087 2000-01-21 Geoff Keating <geoffk@cygnus.com>
11089 * rs6000.md (movsi_to_cr): Correct typo in output template.
11091 2000-01-19 Geoffrey Keating <geoffk@cygnus.com>
11093 * rs6000.c (rs6000_pic_labelno): Always define.
11094 (rs6000_pic_func_labelno): Delete.
11095 (lmw_operation): Check for a zero base register,
11096 which doesn't mean what we want.
11097 (stmw_operation): New function.
11098 (print_operand): Define new 'l' modifier.
11099 (rs6000_stack_info): We must save all 64 bits of the registers
11100 if TARGET_POWERPC64.
11101 (rs6000_output_load_toc_table): Delete.
11102 (rs6000_emit_load_toc_table): New function.
11103 (rs6000_allocate_stack_space): Delete.
11104 (rs6000_emit_allocate_stack): New function.
11105 (rs6000_emit_prologue): New function.
11106 (output_prolog): Use rs6000_emit_prologue.
11107 (rs6000_emit_epilogue): Change a few variable names to be
11108 more accurate. Restore all 64 bits of the registers if
11109 TARGET_POWERPC64. Only restore the FP registers which were used
11110 if they are being saved/restored one-at-a-time.
11111 (output_mi_thunk): Delete inefficient code generation.
11112 (output_function_profiler): Don't use rs6000_output_load_toc_table.
11113 * rs6000.h: Declare rs6000_emit_load_toc_table,
11114 rs6000_allocate_stack_space, stmw_operation. Don't declare
11115 rs6000_output_load_toc_table.
11116 * rs6000.md (elf_high): Allow register 0, but discourage it
11118 (elf_low): Support loading into register 0.
11119 (load_toc_aix_si): New pattern.
11120 (load_toc_aix_di): New pattern.
11121 (load_toc_v4_pic_si): New pattern.
11122 (load_toc_v4_pic_di): New pattern.
11123 (load_toc_v4_PIC_1): New pattern.
11124 (load_toc_v4_PIC_1b): New pattern.
11125 (load_toc_v4_PIC_2): New pattern.
11126 (builtin_setjmp_receiver): Use rs6000_emit_load_toc_table.
11127 (nonlocal_goto_receiver): Use rs6000_emit_load_toc_table.
11128 (prologue): New expander.
11129 (movesi_from_cr): New pattern.
11130 (stmw): New pattern.
11131 (save_fpregs_si): New pattern.
11132 (save_fpregs_di): New pattern.
11134 2000-01-19 Geoff Keating <geoffk@cygnus.com>
11136 * rs6000.md (movsi): Don't use force_reg when no_new_pseudos.
11141 2000-01-19 Geoff Keating <geoffk@cygnus.com>
11143 * rs6000.md (movsi_got): 'unspec 8' returns a SImode result,
11145 (movsi_got_internal): Likewise.
11146 (movsi_got_internal+1): Likewise.
11147 (set_sp): 'unspec 7' does a SImode clobber.
11149 2000-01-19 Geoff Keating <geoffk@cygnus.com>
11151 * rs6000.md (floatsidf2): Don't use the fpmem "register", just
11152 allocate a stack temporary.
11153 (floatsidf2_internal): Likewise.
11154 (floatsidf2_internal+1): Likewise. Don't do bizzare hacks
11156 (floatunssidf2): Don't use the fpmem "register", just
11157 allocate a stack temporary.
11158 (floatunssidf2_internal): Likewise.
11159 (floatunssidf2_internal+1): Likewise. Don't do bizzare hacks
11161 (floatsidf2_loadaddr): Delete.
11162 (floatsidf2_store1): Delete.
11163 (floatsidf2_store2): Delete.
11164 (floatsidf2_load): Delete.
11165 (fix_truncdfsi2): Don't use the fpmem "register", just
11166 allocate a stack temporary.
11167 (fix_truncdfsi2_internal_si): Delete.
11168 (fix_truncdfsi2_internal_di): Delete.
11169 (fix_truncdfsi2_internal): New insn.
11170 (fix_truncdfsi2_internal+1): Don't use the fpmem "register".
11171 (fix_truncdfsi2_store): Delete.
11172 (fix_truncdfsi2_load): Delete.
11173 (fctiwz): Produce gen_fctiwz.
11175 2000-01-19 Geoffrey Keating <geoffk@cygnus.com>
11177 * eabi.h (INVOKE__main): Define.
11178 * rs6000.c (rs6000_stack_info): Don't handle call to NAME__MAIN
11180 (rs6000_emit_prologue): Likewise.
11181 * rs6000.h (struct rs6000_stack): Don't keep track of whether
11182 this is the main program.
11184 2000-01-19 Geoff Keating <geoffk@cygnus.com>
11186 * rs6000.c (rs6000_va_arg): Delete some unused variables.
11188 2000-01-19 Geoff Keating <geoffk@cygnus.com>
11190 * rs6000.c (rs6000_va_arg): On AIX, padding for small arguments
11191 goes after the argument.
11193 2000-01-12 Geoff Keating <geoffk@cygnus.com>
11195 * rs6000.md: Document 'unspec' values used.
11196 (epilogue): New expander.
11197 (movesi_to_cr_one): New expander.
11198 (movesi_to_cr and following): New pattern.
11199 (lmw): New pattern.
11200 (return_internal_si): New pattern.
11201 (return_internal_di): New pattern.
11202 (return_and_restore_fpregs_si): New pattern.
11203 (return_and_restore_fpregs_di): New pattern.
11204 * rs6000.h: Declare new functions.
11205 * rs6000.c (rs6000_stack_info): Use current_function_is_leaf
11206 rather than rs6000_calls_p.
11207 (rs6000_makes_calls): Delete.
11208 (lmw_operation): New function.
11209 (mtcrf_operation): New function.
11210 (rs6000_emit_epilogue): New function.
11211 (output_epilog): Call rs6000_emit_epilogue and final if
11212 !TARGET_SCHED_PROLOG, instead of writing text unconditionally.
11214 2000-01-12 Geoff Keating <geoffk@cygnus.com>
11216 * aix43.h (SUBSUBTARGET_SWITCHES): Document switches.
11217 * aix41.h (SUBSUBTARGET_SWITCHES): Document switches.
11218 * aix.h (SUBTARGET_SWITCHES): Document switches.
11219 * rs6000.h: (TARGET_SWITCHES): Don't print options twice. Make
11220 sched-prolog and sched-epilog the same. Document all the
11222 (TARGET_OPTIONS): No longer allow -mdebug-.
11224 2000-01-12 Geoff Keating <geoffk@cygnus.com>
11226 * rs6000.h (ASM_FILE_END): Move to aix.h.
11227 (EXTRA_SECTIONS): Move to aix.h.
11228 (READONLY_DATA_SECTION): Move to aix.h.
11229 (EXTRA_SECTION_FUNCTIONS): Move to aix.h.
11230 (SELECT_SECTION): Move to aix.h.
11231 (JUMP_TABLES_IN_TEXT_SECTION): Move to aix.h.
11232 (INT_REGNO_P): Use symbolic name for ARG_POINTER_REGNUM.
11233 (LINK_REGISTER_REGNUM): New definition.
11234 (RETURN_ADDR_RTX): Use symbolic name for LINK_REGISTER_REGNUM.
11235 (SLOW_UNALIGNED_ACCESS): Define in a way suitable for both
11237 * sysv4.h: Delete the code between the inclusion of rs6000.h
11239 (DWARF_DEBUGGING_INFO): Don't define, it's defined in elfos.h.
11240 (FP_ARG_MAX_REG): Move generic definition to rs6000.h.
11241 (RS6000_REG_SAVE): Move generic definition to rs6000.h.
11242 (RS6000_SAVE_AREA): Move generic definition to rs6000.h.
11243 * rs6000.md (floatsidf2_loadaddr): The first arg here is Pmode.
11244 (fix_truncdfsi2_internal): Rename to fix_truncdfsi2_internal_si.
11245 (fix_truncdfsi2_internal_di): New pattern.
11246 (fix_truncdfsi2_store): The second arg here is Pmode too.
11247 (fix_truncdfsi2_load): The second arg here is Pmode too.
11248 (tablejumpdi): Now that switch tables hold only SImode values,
11249 gcc needs to know how to add them to the pc which is DImode.
11250 * rs6000.c (rs6000_stack_info): Use symbolic name for
11251 LINK_REGISTER_REGNUM.
11252 (output_mi_thunk) [!TARGET_ELF]: Don't define sp, it's not used.
11253 (output_toc): Delete unused variables s1 and s2.
11254 (output_ascii): Use fputs not fprintf on a variable string.
11256 2000-01-07 David Edelsohn <edelsohn@gnu.org>
11258 * rs6000.c (processor_target_table): Add power3 as alias for 630.
11259 * aix43.h: Revert Aug 2 change.
11260 (HAS_INIT_SECTION): Define, not visible yet.
11261 (LD_INIT_SWITCH): Define, not visible yet.
11262 * t-aix43 (MULTILIB_OPTIONS): Revert Aug 2 change.
11264 2000-01-04 Joel Sherrill (joel@OARcorp.com>
11266 * config/rs6000/rtems.h: Include config/rtems.h.
11268 2000-01-04 David Edelsohn <edelsohn@gnu.org>
11270 * rs6000.h (HANDLE_PRAGMA_PACK): Define.
11271 (SLOW_UNALIGNED_ACCESS): Define.
11272 (CASE_VECTOR_MODE): Always use 32-bit offsets.
11273 (ASM_FILE_END): Generate 64-bit symbol in 64-bit mode.
11274 (EXTRA_SECTOIN_FUNCTIONS): Indent .csect pseudo-op.
11275 (toc_section): Likewise and .toc pseudo-op.
11276 (ASM_DECLARE_FUNCTION): Likewise. Align text more strictly in
11278 (TEXT_SECTION_ASM_OP): Likewise.
11279 (ASM_OUTPUT_ADD_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Always use
11282 1999-12-17 Jakub Jelinek <jakub@redhat.com>
11284 * config/rs6000/rs6000.h (TARGET_POWERPC64): Make sure
11285 UNITS_PER_WORD and BITS_PER_WORD are compile time constants when
11288 2000-01-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11290 * rs6000.h: Move more stuff from here...
11292 * sysv4.h: Cleanup accordingly.
11293 * netware.h: Likewise
11295 2000-01-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11297 * rs6000.h: Continue cleanup.
11299 * lynx.h: Likewise.
11300 * netware.h: Likewise.
11301 * sol2.h: Likewise.
11302 * sysv4.h: Likewise.
11303 * win-nt.h: Likewise.
11305 * rs6000.h (TARGET_SWITCHES): Add descriptions.
11306 (TARGET_OPTIONS): Likewise.
11308 * sysv4.h (SUBTARGET_SWITCHES): Add descriptions.
11309 (SUBTARGET_OPTIONS): Likewise.
11311 * rs6000.md: Fix compile time warnings.
11313 2000-01-04 Geoff Keating <geoffk@cygnus.com>
11315 vxworks patches from the Cygnus tree originally by
11316 Michael Meissner <meissner@cygnus.com> and Vladimir Makarov
11317 <vmakarov@cygnus.com>.
11318 * sysv4.h (SUBTARGET_SWITCHES): Add vxworks.
11319 (ENDFILE_SPEC): Likewise.
11320 (LIB_VXWORKS_SPEC): New macro.
11321 (STARTFILE_VXWORKS_SPEC): New macro.
11322 (ENDFILE_VXWORKS_SPEC): New macro.
11323 (LINK_START_VXWORKS_SPEC): New macro.
11324 (LINK_OS_VXWORKS_SPEC): New macro.
11325 (CPP_OS_VXWORKS_SPEC): New macro.
11326 (SUBTARGET_EXTRA_SPECS): Add all the vxworks specs.
11327 * vxppc.h: Rewrite to use proper configuration method.
11328 * vxppcle.h: New file.
11329 * ../../configure.in: Add powerpcle-wrs-vxworks*.
11330 * ../../configure: Rebuilt.
11332 2000-01-04 Geoff Keating <geoffk@cygnus.com>
11334 Lots of changes to rs6000.h, sysv4.h, aix.h,
11335 aix31.h, aix3newas.h, aix41.h, aix43.h, beos.h,
11336 with the aim that rs6000.h is the first header
11337 included and the others override it.
11340 * x-aix41-gld: Remove.
11342 * x-aix41: Remove target-specific switches, and don't specify
11343 -Wl,-bbigtoc as we don't need it any more.
11344 * ../../configure.in: Use x-aix41 for ppc AIX 4.1 and above.
11345 Use t-aix43 for AIX 4.3 and above.
11346 * ../../configure: Regenerated.
11348 * rs6000.h (TARGET_SWITCHES): Add some initial prolog-scheduling
11349 options, that don't do anything yet.
11350 (MASK_SCHED_PROLOG): New macro.
11351 (MASK_SCHED_EPILOG): New macro.
11352 (TARGET_SCHED_PROLOG): New macro.
11353 (TARGET_SCHED_EPILOG): New macro.
11355 2000-01-04 Geoff Keating <geoffk@cygnus.com>
11357 * rs6000.c: Correct comment, the `minimal' TOCs are actually
11358 one per translation unit, not one per function.
11359 (output_toc): Also do duplicate constant elimination
11360 for per-translation-unit TOCs.
11362 * rs6000.md (nonlocal_goto_receiver): Put it back as before. Add
11363 a comment explaining _exactly_ when this pattern gets used.
11364 (builtin_setjmp_receiver): New pattern for better clarity.
11365 (init_v4_pic): Move it into a section dealing with TOC registers.
11367 1999-12-30 Geoff Keating <geoffk@cygnus.com>
11369 * rs6000.c (toc_hash_table): New variable.
11370 (rs6000_hash_constant): New function.
11371 (toc_hash_function): New function.
11372 (toc_hash_eq): New function.
11373 (toc_hash_mark_entry): New function.
11374 (toc_hash_mark_table): New function.
11375 (output_toc): Don't output duplicate TOC entries in
11377 (rs6000_add_gc_roots): Add the hash table as a GC root.
11378 * t-aix43: Move AR_FOR_TARGET and CLIB here from x-aix43,
11379 where they clearly shouldn't be. This may need to be fixed
11380 later when there is a GNU ar for AIX.
11381 * x-aix43: Don't define CLIB or AR_FOR_TARGET.
11382 Don't define BOOT_LDFLAGS as it is now not necessary.
11384 1999-12-29 Geoff Keating <geoffk@cygnus.com>
11386 * rs6000.c (rs6000_build_va_list): Use 'char *' rather than 'void *'
11387 for va_list on AIX. Use unsigned_char_type_node rather than
11388 constructing our own version on svr4.
11390 1999-12-17 Geoff Keating <geoffk@cygnus.com>
11392 * tramp.asm (__trampoline_size): Delete CYGNUS LOCAL comment,
11393 since patently it's not.
11395 1999-12-08 Geoff Keating <geoffk@cygnus.com>
11397 * config/rs6000/rs6000.md (nonlocal_goto_receiver): Turn into
11398 define_expand/define_insn pair, and handle restore of the
11399 SVR4 -fpic register.
11401 Wed Mar 15 15:43:38 2000 Jeffrey A Law (law@cygnus.com)
11403 * acconfig.h (HAVE_GAS_WEAK): New define.
11404 * configure.in (assembler weak support): Check for .weak support.
11405 * config.in, configure: Rebuilt.
11406 * pa/som.h (MAKE_DECL_ONE_ONLY, ASM_WEAKEN_LABEL): Only define if
11407 HAVE_GAS_WEAK is defined.
11409 2000-03-15 Nick Clifton <nickc@cygnus.com>
11411 * config/arm/arm.c (arm_output_epilogue): Do not pass %c to
11414 2000-03-15 Zack Weinberg <zack@wolery.cumb.org>
11416 * cppfiles.c (open_include_file): New function.
11417 (find_include_file, cpp_read_file): Use it.
11419 2000-03-15 Jason Merrill <jason@casey.cygnus.com>
11421 * cpphash.c (dump_hash_helper): Take the slot, not the element.
11423 Wed Mar 15 14:28:54 2000 Jason Eckhardt <jle@cygnus.com>
11425 * flow.c (verify_flow_info): Check for unconditional return.
11427 Wed Mar 15 11:34:27 2000 Jim Wilson <wilson@cygnus.com>
11429 * config/ia64/ia64.md (restore_stack_nonlocal): New.
11430 * config/ia64/lib1funcs.asm (__ia64_nonlocal_goto): Delete padding nop.
11431 (__ia64_restore_stack_nonlocal): New.
11432 * config/ia64/t-ia64 (LIB1ASMFUNCS): Add __restore_stack_nonlocal.
11434 2000-03-15 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
11436 * cpphash.c (collect_formal_parameters): Do not complain about
11437 parameter names that just start with `__VA_ARGS__'.
11439 Wed Mar 15 13:26:58 MET 2000 Jan Hubicka <jh@suse.cz>
11441 * i386.md (movhi_1): Promote movw imm, reg to movl imm, reg and
11442 movw reg, reg to movzwl reg, reg on PARTIAL_REGISTER_STALL machines.
11443 * i386.c (pentiumpro_cost): Set mul cost to 4.
11444 (x86_use_movx): Set for PPro.
11446 Wed Mar 15 13:07:05 MET 2000 Jan Hubicka <jh@suse.cz>
11448 * i386.md (ix86_compute_frame_size): stack_alignment_needed is
11449 STACK_BOUNDARY for empty frames now.
11451 2000-03-14 Mark Mitchell <mark@codesourcery.com>
11453 * stor-layout.c (layout_union): Remove.
11454 (layout_union_field): New function, split out from layout_union.
11455 (finish_union_layout): Likewise.
11456 (layout_field): Handle unions by calling layout_union_field.
11457 (finish_record_layout): Handle unions.
11458 (layout_type): Combine RECORD_TYPE, UNION_TYPE, and
11459 QUAL_UNION_TYPE handling.
11461 Wed Feb 23 13:00:06 CET 2000 Jan Hubicka <jh@suse.cz>
11463 * flow.c (fixup_reorder_chain): Avoid double labels in the basic block;
11464 end of basic block is jump_insn, not barrier; use create_basic_block
11465 instead of creating basic block by hand.
11467 2000-03-14 Jason Eckhardt <jle@cygnus.com>
11469 * flow.c (reorder_basic_blocks): Account for barriers when writing
11470 over NEXT_INSN (last_bb->end).
11471 (verify_flow_info): Add check for missing barriers.
11473 2000-03-14 Greg McGary <gkm@gnu.org>
11475 * c-lex.h (enum rid): Add RID_BOUNDED & RID_UNBOUNDED.
11476 * c-lex.c (init_lex): Handle RID_BOUNDED & RID_UNBOUNDED.
11477 * c-parse.gperf (__bounded, __bounded__, __ptrbase, __ptrbase__,
11478 __ptrextent, __ptrextent__, __ptrvalue, __ptrvalue__,
11479 __unbounded, __unbounded__): New keywords.
11480 * c-parse.in (PTR_VALUE PTR_BASE PTR_EXTENT): New tokens.
11481 * c-parse.y, c-parse.c, c-parse.h: Regenerate.
11482 * objc/objc-parse.y, objc/objc-parse.c: Regenerate.
11484 2000-03-14 Bernd Schmidt <bernds@cygnus.co.uk>
11486 * cselib.h: New file.
11487 * alias.c: Include "cselib.h".
11488 (fixed_scalar_and_varying_struct_p): Accept the addresses of the
11489 MEMs as two new arguments.
11490 (get_addr): New static function.
11491 (find_base_term): Handle VALUEs.
11492 (memrefs_conflict_p): Likewise.
11493 (true_dependence): Call get_addr on the addresses.
11494 Call fixed_scalar_and_varying_struct_p with addresses that have been
11495 passed through get_addr and canon_rtx.
11496 (write_dependence_p): Move DIFFERENT_ALIAS_SETS_P test for consistency
11497 with true_dependence.
11498 Call get_addr on the addresses; don't call canon_rtx on the MEMs.
11499 * loop.c: Include "cselib.h".
11500 (load_mems): Process extended basic block that enters the loop with
11501 cselib. Use that information to change initialization of the shadow
11502 register so that a constant equivalence is seen by later passes.
11503 * reload1.c: Include "cselib.h".
11504 (reload_cse_invalidate_regno): Delete function.
11505 (reload_cse_mem_conflict_p): Likewise.
11506 (reload_cse_invalidate_mem): Likewise.
11507 (reload_cse_invalidate_rtx): Likewise.
11508 (reload_cse_regno_equal_p): Likewise.
11509 (reload_cse_check_clobber): Likewise.
11510 (reload_cse_record_set): Likewise.
11511 (reg_values): Delete static variable.
11512 (invalidate_regno_rtx): Likewise.
11513 (reload_cse_delete_noop_set): New static function.
11514 (reload_cse_simplify): New static function, broken out of
11516 (reload_cse_noop_set_p): Delete unused argument INSN.
11517 Just call rtx_equal_for_cselib_p on set source and destination.
11518 (reload_cse_regs_1): Break out some code into reload_cse_simplify and
11519 reload_cse_delete_noop_set. Delete code to keep track of values; use
11520 cselib functions instead. Delete code to push/pop obstacks.
11521 (reload_cse_simplify_set): Use cselib to find equivalent values.
11522 Delete code to push/pop obstacks.
11523 (reload_cse_simplify_operands): Likewise.
11524 * rtl.def (VALUE): New rtx code.
11525 * rtl.h (union rtunion_def): New elt rt_cselib.
11526 (X0CSELIB, CSELIB_VAL_PTR): New macros.
11527 * simplify_rtx.c: Include "ggc.h", "obstack.h", "cselib.h".
11528 (new_elt_list, new_elt_loc_list, unchain_one_value, clear_table,
11529 unchain_one_elt_list, unchain_one_elt_loc_list, check_useless_values,
11530 discard_useless_locs, discard_useless_values, entry_and_rtx_equal_p,
11531 hash_rtx, new_cselib_val, add_mem_for_addr, get_value_hash,
11532 cselib_lookup_mem, cselib_subst_to_values, cselib_invalidate_regno,
11533 cselib_mem_conflict_p, cselib_invalidate_mem, cselib_invalidate_rtx,
11534 cselib_record_set, cselib_record_sets): New static functions.
11535 (cselib_lookup, cselib_update_varray_sizes, cselib_init,
11536 cselib_finish, cselib_process_insn, rtx_equal_for_cselib_p,
11537 references_value_p): New functions.
11538 (MAX_USELESS_VALUES, REG_VALUES): New macros.
11539 (table, cselib_current_insn, next_unknown_value, cselib_nregs,
11540 n_useless_values, reg_values, callmem, cselib_obstack,
11541 cselib_startobj, empty_vals, empty_elt_lists, empty_elt_loc_lists):
11542 New static variables.
11543 * varray.h (union varray_data_tag): New elt te.
11544 (VARRAY_ELT_LIST_INIT, VARRAY_ELT_LIST): New macros.
11545 * Makefile.in (reload1.o, loop.o, simplify-rtx.o, alias.o): Update
11548 2000-03-14 Nick Clifton <nickc@cygnus.com>
11550 * gcc.c (do_spec_1): Catch the case where %* is used in a
11551 substitution pattern, but it has not been initialised.
11552 Issue a meaningful error message if an unrecognised operator
11553 is encountered in a spec string.
11555 2000-03-14 Richard Earnshaw <rearnsha@arm.com>
11557 * function.c (prepare_function_start): Correctly initialize
11558 cfun->stack_alignment_needed.
11560 2000-03-14 Zack Weinberg <zack@wolery.cumb.org>
11562 * cppfiles.c (find_include_file): Don't assume nshort is a
11565 Tue Mar 14 08:42:21 2000 Jeffrey A Law (law@cygnus.com)
11567 * configure.in (hppa configurations): Add pa32-regs.h to the
11568 list of tm files as appropriate.
11569 * configure: Rebuilt.
11570 * pa.c (compute_frame_size): Remove explicit knowledge about FP
11571 register numbering.
11572 (hppa_expand_prologue, hppa_expand_epilogue): Likewise.
11573 (fmpyaddoperands, fmpysuboperands): Likewise.
11574 * pa.h: Remove various definitions which depend on knowing
11575 how registers are numbered.
11576 * pa32-regs.h: New file with PA32 register numbering specific
11579 2000-03-14 Richard Henderson <rth@cygnus.com>
11581 * regmove.c (combine_stack_adjustments): New.
11582 (stack_memref_p, single_set_for_csa): New.
11583 (free_csa_memlist, record_one_stack_memref): New.
11584 (try_apply_stack_adjustment): New.
11585 (combine_stack_adjustments_for_block): New.
11586 * rtl.h (combine_stack_adjustments): Declare.
11587 * toplev.c (rest_of_compilation): Call it.
11589 * i386.md: Revert 2000-01-16 change.
11591 2000-03-14 Martin v. Löwis <loewis@informatik.hu-berlin.de>
11593 * gccbug.in: Add web category, gcc specific classes.
11595 2000-03-14 Nathan Sidwell <nathan@codesourcery.com>
11597 * stor-layout.c (finalize_record_size): Fix typo.
11599 2000-03-14 Stan Shebs <shebs@apple.com>
11601 * c-typeck.c (c_alignof): Error on incomplete types.
11602 * extend.texi (Alignment): Document this.
11604 2000-03-13 Zack Weinberg <zack@wolery.cumb.org>
11606 * cppfiles.c: Include mkdeps.h.
11607 (find_include_file, read_include_file): Remove _cpp_ prefix
11608 from name, make static.
11609 (_cpp_execute_include): New function, broken out of
11612 * cpplib.c: Don't include mkdeps.h.
11613 (struct directive): Remove type field. Reorder entries. The
11614 function takes only one argument.
11615 (struct if_stack): Make type field an int.
11616 (directive_table): Rename to dtable. Generate it, the
11617 prototypes of the directive handlers, and the enum for the
11618 directive numbers, from a template macro.
11619 (do_ifndef, do_include_next, do_import): New functions.
11620 (do_define, do_include, do_endif, do_ifdef, do_if, do_else,
11621 do_undef, do_line, do_elif, do_error, do_pragma, do_warning,
11622 do_ident, do_assert, do_unassert, do_sccs): Take only one
11624 (do_sccs): Define always, but alter behavior based on
11626 (_cpp_handle_directive, consider_directive_while_skipping):
11627 Restructure for new directive table layout.
11629 (pass_thru_directive): Take a directive number, not a pointer
11630 to a struct directive.
11631 (parse_include): New function, broken out of do_include.
11632 (do_include, do_import, do_include_next): Use parse_include
11633 and _cpp_execute_include.
11634 (do_elif, do_else): Test for T_ELSE specifically when checking
11635 for #elif/#else after #else.
11636 (parse_ifdef): New function, broken out of do_ifdef.
11637 (validate_else): Expect a name arg without a leading #.
11638 (if_directive_name): Delete.
11639 (cpp_define, cpp_assert, cpp_undef, cpp_unassert): Call
11640 directive handlers with only one argument.
11642 * cpphash.h: Update prototypes.
11643 (enum node_type): Remove entries for directives.
11644 * Makefile.in: Update dependencies.
11646 * cpphash.c (dump_hash_helper): Only dump nodes of type
11647 T_MACRO. Emit a newline after each definition.
11649 2000-03-14 Martin v. Löwis <loewis@informatik.hu-berlin.de>
11651 * gccbug.in: New file.
11652 * configure.in (all_outputs): Add gccbug.
11653 * Makefile.in (install-common): Install gccbug.
11654 (GCCBUG_INSTALL_NAME): New variable.
11655 * configure: Rebuilt.
11657 2000-03-13 Jason Merrill <jason@casey.cygnus.com>
11659 * function.c (put_var_into_stack): Use type_for_mode to calculate
11660 part_type. Use MEM_SET_IN_STRUCT_P.
11661 * expr.c (store_field): Handle CONCAT.
11662 (store_constructor): Use fields_length.
11663 * tree.c (fields_length): New fn.
11664 * tree.h: Declare it.
11666 2000-03-13 Zack Weinberg <zack@wolery.cumb.org>
11668 * Makefile.in (LIBCPP_OBJS): Add cpplex.o.
11669 (cpplex.o): New target.
11670 * po/POTFILES.in: Add cpplex.c.
11672 * cpplex.c (_cpp_grow_token_buffer, null_cleanup,
11673 cpp_push_buffer, cpp_pop_buffer, cpp_scan_buffer,
11674 cpp_expand_to_buffer, cpp_buf_line_and_col, cpp_file_buffer,
11675 skip_block_comment, skip_line_comment, skip_comment,
11676 copy_comment, _cpp_skip_hspace, _cpp_skip_rest_of_line,
11677 _cpp_parse_name, skip_string, parse_string,
11678 _cpp_parse_assertion, cpp_get_token, cpp_get_non_space_token,
11679 _cpp_get_directive_token, find_position,
11680 _cpp_read_and_prescan, _cpp_init_input_buffer): Move here.
11681 (maybe_macroexpand, _cpp_lex_token): New functions.
11683 * cpplib.c (SKIP_WHITE_SPACE, eval_if_expr, parse_set_mark,
11684 parse_goto_mark): Delete.
11685 (_cpp_handle_eof): New function.
11686 (_cpp_handle_directive): Rename from handle_directive.
11687 (_cpp_output_line_command): Rename from output_line_command.
11688 (do_if, do_elif): Call _cpp_parse_expr directly.
11689 * cppfiles.c (_cpp_read_include_file): Don't call
11690 init_input_buffer here.
11691 * cpphash.c (quote_string): Move here, rename _cpp_quote_string.
11692 * cppexp.c (_cpp_parse_expr): Diddle parsing_if_directive
11693 here; pop the token_buffer and skip the rest of the line here.
11694 * cppinit.c (cpp_start_read): Call _cpp_init_input_buffer
11697 * cpphash.h (CPP_RESERVE, CPP_IS_MACRO_BUFFER, ACTIVE_MARK_P):
11699 (CPP_SET_BUF_MARK, CPP_GOTO_BUF_MARK, CPP_SET_MARK,
11700 CPP_GOTO_MARK): New macros.
11701 (_cpp_quote_string, _cpp_parse_name, _cpp_skip_rest_of_line,
11702 _cpp_skip_hspace, _cpp_parse_assertion, _cpp_lex_token,
11703 _cpp_read_and_prescan, _cpp_init_input_buffer,
11704 _cpp_grow_token_buffer, _cpp_get_directive_token,
11705 _cpp_handle_directive, _cpp_handle_eof,
11706 _cpp_output_line_command): Prototype them here.
11707 * cpplib.h (enum cpp_token): Add CPP_MACRO.
11708 (CPP_RESERVE, get_directive_token, cpp_grow_buffer,
11709 quote_string, output_line_command): Remove.
11711 2000-03-13 Bernd Schmidt <bernds@cygnus.co.uk>
11713 * stmt.c (expand_end_case): RANGE may be signed, and when checking
11714 whether it is too large we must also verify that it isn't negative.
11716 2000-03-13 Jakub Jelinek <jakub@redhat.com>
11718 * config/sparc/sparc.md: Remove all traces of TARGET_LIVE_G0.
11719 (movsi_zero_liveg0): Remove.
11720 (movsf_insn_novis_liveg0): Remove.
11722 (negsi2_not_liveg0): Rename to negsi2.
11723 (one_cmplsi2): Remove.
11724 (one_cmplsi2_not_liveg0): Rename to one_cmplsi2.
11725 (one_cmplsi2_liveg0): Remove.
11726 * config/sparc/sparc.h (TARGET_LIVE_G0, TARGET_BROKEN_SAVERESTORE,
11727 MASK_LIVE_G0, MASK_BROKEN_SAVERESTORE): Remove.
11728 (CONDITIONAL_REGISTER_USAGE): Remove TARGET_LIVE_G0 if.
11729 (PREDICATE_CODES): Remove zero_operand.
11730 * config/sparc/sparc.c: Remove all traces of TARGET_LIVE_G0 and
11731 TARGET_BROKEN_SAVERESTORE.
11732 (zero_operand): Remove.
11733 * config/sparc/splet.h (SUBTARGET_SWITCHES): Remove -mlive-g0,
11734 -mno-live-g0, -mbroken-saverestore and -mno-broken-saverestore
11736 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
11737 * config/sparc/linux-aout.h (TARGET_LIVE_G0,
11738 TARGET_BROKEN_SAVERESTORE): Remove.
11739 * config/sparc/linux.h (TARGET_LIVE_G0, TARGET_BROKEN_SAVERESTORE):
11741 * config/sparc/linux64.h (TARGET_LIVE_G0, TARGET_BROKEN_SAVERESTORE):
11743 * config/sparc/sol2.h (TARGET_LIVE_G0, TARGET_BROKEN_SAVERESTORE):
11746 * config/sparc/sparc.md (return_df_no_fpu): New pattern.
11748 2000-03-13 Zack Weinberg <zack@wolery.cumb.org>
11750 * cpplib.c (do_pragma_implementation): Fix off-by-one error
11751 truncating a string. Don't assume tokens are nul terminated.
11752 Problem noted by Andreas Jaeger <aj@suse.de>
11754 2000-03-13 Jason Merrill <jason@casey.cygnus.com>
11756 * dwarf2out.c (add_name_and_src_coords_attributes): Only add
11757 DW_AT_MIPS_linkage_name for TREE_PUBLIC decls.
11758 (ASM_OUTPUT_DWARF_ADDR_CONST): Don't output trailing newline.
11760 2000-03-13 Richard Earnshaw <rearnsha@arm.com>
11762 * stor-layout.c (new_record_layout_info): Fix typo inside ifdef
11763 STRUCTURE_SIZE_BOUNDARY.
11765 2000-03-13 Mark Mitchell <mark@codesourcery.com>
11767 * tree.h (record_layout_info_s): New structure.
11768 (record_layout_info): New type.
11769 (new_record_layout_info): New function.
11770 (layout_field): Likewise.
11771 (finish_record_layout): Likewise.
11772 * stor-layout.c (layout_record): Remove.
11773 (new_record_layout_info): New function.
11774 (layout_field): New function, broken out from layout_record.
11775 (finalize_record_size): Likewise.
11776 (compute_record_mode): Likewise.
11777 (finalize_type_size): New function, broken out from layout_type.
11778 (finish_record_layout): Likewise.
11779 (layout_type): Use them.
11781 2000-03-12 Zack Weinberg <zack@wolery.cumb.org>
11783 * cpphash.c: Don't include version.h.
11784 (special_symbol) [case T_VERSION]: Look for the string in
11785 hp->value.cpval; don't use version_string.
11786 * cppinit.c (initialize_builtins): Set hp->value.cpval for
11787 __VERSION__ to version_string.
11788 * Makefile.in (cpphash.o): Update deps.
11790 2000-03-12 Zack Weinberg <zack@wolery.cumb.org>
11792 Convert cpplib to use libiberty/hashtab.c.
11794 * cpplib.h (struct cpp_reader): Make hashtab and
11795 all_include_files of type 'struct htab *'. Delete HASHSIZE
11796 and ALL_INCLUDE_HASHSIZE macros.
11798 * cpphash.h: Update prototypes.
11799 (struct hashnode): Remove next, prev, and bucket_hdr members.
11800 Make length a size_t. Add hash member.
11801 (struct ihash): Remove next member. Add hash member. Make
11802 name a flexible array member.
11804 * cppfiles.c: Include hashtab.h.
11805 (include_hash): Delete.
11806 (IHASHSIZE): New macro.
11807 (hash_IHASH, eq_IHASH, _cpp_init_include_hash): New functions.
11808 (cpp_included): Do the hash lookup here.
11809 (_cpp_find_include_file): Rewrite.
11810 (cpp_read_file): Put the "fake" hash entry into the hash
11811 table. Honor the control_macro, if it turns out we've seen
11812 the file before. Don't push the buffer here.
11813 (_cpp_read_include_file): Push the buffer here.
11814 (OMODES): New macro. Use it whenever we call open(2).
11816 * cpphash.c: Include hashtab.h.
11817 (hash_HASHNODE, eq_HASHNODE, del_HASHNODE, dump_hash_helper,
11818 _cpp_init_macro_hash, _cpp_dump_macro_hash, _cpp_make_hashnode,
11819 _cpp_lookup_slot): New functions.
11820 (HASHSIZE): new macro.
11821 (hashf, _cpp_install, _cpp_delete_macro): Delete.
11822 (_cpp_lookup): Use hashtab.h routines.
11824 * cppinit.c: Include hashtab.h.
11825 (cpp_reader_init): Call _cpp_init_macro_hash and
11826 _cpp_init_include_hash. Don't allocate hashtab directly.
11827 (cpp_cleanup): Just call htab_delete on pfile->hashtab and
11828 pfile->all_include_files.
11829 (initialize_builtins): Use _cpp_make_hashnode and
11830 htab_find_slot to add hash entries.
11831 (cpp_finish): Just call _cpp_dump_macro_hash.
11832 * cpplib.c: Include hashtab.h.
11833 (do_define): Use _cpp_lookup_slot and _cpp_make_hashnode to
11834 create hash entries.
11835 (do_pragma_poison, do_assert): Likewise.
11836 (do_include): Don't push the buffer here. Don't increment
11837 system_include_depth unless _cpp_read_include_file succeeds.
11838 (do_undef, do_unassert): Use _cpp_lookup_slot and htab_clear_slot
11839 or htab_remove_elt.
11840 (do_pragma_implementation): Use alloca to create copy.
11842 * Makefile.in: Update dependencies.
11844 2000-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11846 * cppinit.c (cl_directive_handler): More K&R fixing.
11848 Sat Mar 11 23:54:26 2000 Jim Wilson <wilson@cygnus.com>
11850 * config/ia64/ia64.c (ia64_compute_frame_size): Align size to
11852 * config/ia64/ia64.h (REGISTER_MOVE_COST): Add missing parentheses.
11854 2000-03-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11856 * cppinit.c (no_arg, no_ass, no_dir, no_fil, no_mac, no_pth):
11857 Change from char[] to macros.
11859 2000-03-12 Neil Booth <NeilB@earthling.net>
11861 * cppinit.c (cpp_start_read): Update indirect function
11864 Sat Mar 11 16:18:12 2000 Jim Wilson <wilson@cygnus.com>
11866 * config/ia64/ia64.h (ADDITIONAL_REGISTER_NAMES): Fix typo in loc79
11869 * config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
11870 config/ia64/ia64.md, config/ia64/xm-ia64.h: Fix copyright messages.
11872 2000-03-11 Neil Booth <NeilB@earthling.net>
11874 * cppinit.c (struct pending option): Replace undef with a
11875 pointer to a directive handling routine.
11876 (struct cpp_pending): Replace separate assert_ and define_
11877 lists with one directive_ list.
11878 (new_pending_define): Rename new_pending_directive. Extra
11879 argument is the directive's handling routine.
11880 (handle_option): Update to use new_pending_directive.
11882 2000-03-11 Neil Booth <NeilB@earthling.net>
11884 * cppfiles.c (file_cleanup, _cpp_find_include_file,
11885 remap_filename, _cpp_read_include_file, actual_directory,
11886 hack_vms_include_specification): Replace bcopy(), index() etc
11887 calls. Add casts to some allocations. Make some variables
11888 pointers to const [unsigned] char.
11889 * cpphash.c (_cpp_install, macro_cleanup, collect_expansion,
11890 collect_formal_parameters): Similarly.
11891 * cppinit.c (struct pending_option, append_include_chain,
11892 cpp_options_init, cpp_reader_init, initialize_standard_includes,
11893 cpp_start_read, new_pending_define, handle_option): Similarly.
11894 * cpplib.c (cpp_define, copy_comment, do_define, do_include,
11895 do_undef, do_error, do_warning, do_pragma, do_pragma_once,
11896 do_pragma_implementation, detect_if_not_defined,
11897 do_ifdef, skip_if_group, cpp_get_token, parse_string,
11898 do_assert, do_unassert): Similarly.
11899 * cpplib.h (cpp_buffer, cpp_options): Update types. Update
11900 function prototypes.
11901 * mkdeps.c (deps_add_target, deps_add_dep): cast allocations.
11903 2000-03-10 Richard Henderson <rth@cygnus.com>
11905 * builtins.c (expand_builtin_strlen): Revert last change.
11906 Use emit_insn_before if we're at the beginning of a sequence.
11908 2000-03-10 Jason Merrill <jason@casey.cygnus.com>
11910 * builtins.c (expand_builtin_strlen): Make sure that we have something
11911 at the beginning of the sequence.
11913 * toplev.c (rest_of_compilation): Also set TREE_NOTHROW for
11916 * invoke.texi (C++ Dialect Options): Document -fno-enforce-eh-specs.
11918 2000-03-10 Richard Henderson <rth@cygnus.com>
11920 * except.c (can_throw): Use INTVAL on a CONST_INT.
11921 (reachable_handlers): Likewise.
11922 * flow.c (count_basic_blocks, find_basic_blocks_1): Likewise.
11924 2000-03-10 Andreas Jaeger <aj@suse.de>
11926 * config/mips/linux.h: Undefine MD_EXEC_PREFIX and
11927 MD_STARTFILE_PREFIX since those are not needed on linux.
11928 (ASM_FILE_START): New, from mips/gnu.h.
11930 2000-03-09 Richard Henderson <rth@cygnus.com>
11931 Alex Samuel <samuel@codesourcery.com> and others
11933 * Makefile.in (ssa.o): New rule.
11935 (STAGESTUFF): Add *.ssa and *.ussa.
11936 (mostlyclean): Delete *.ssa, *.ussa, */*.ssa, */*.ussa.
11937 * rtl.def (PHI): New RTL expression.
11938 * rtl.h (clear_log_links): New declaration.
11939 (convert_to_ssa): Likewise.
11940 (convert_from_ssa): Likewise.
11941 * flow.c (split_edge): If the entry node falls through to the
11942 split edge's source block, split the entry edge.
11943 (clear_log_links): New function.
11944 * toplev.c (ssa_dump): New variable.
11945 (flag_ssa): Likewise.
11946 (f_options): Add "ssa".
11947 (compile_file): Create SSA dump files.
11948 (rest_of_compilation): Go to and from SSA if enabled.
11949 (decide_d_option): Handle -de for SSA dump files.
11952 Thu Mar 9 20:01:38 2000 Jim Wilson <wilson@cygnus.com>
11954 * expr.c (expand_assignment): For a CALL_EXPR, special case PARM_DECL
11957 2000-03-09 Benjamin Kosnik <bkoz@cygnus.com>
11959 * config/alpha/linux.h (WCHAR_TYPE): Make consistent.
11961 Thu Mar 9 18:10:02 2000 Jeffrey A Law (law@cygnus.com)
11963 * config/pa/pa-hpux10.h (LIB_SPEC): Correct typo in !p case.
11964 (MD_STARTFILE_PREFIX_1): New macro.
11966 2000-03-09 Robert Lipe <robertl@sco.com>
11968 * config/ia64/ia64.c: Include system.h.
11970 2000-03-09 Jason Merrill <jason@casey.cygnus.com>
11972 * except.c (nothrow_function_p): If -fno-exceptions, just return.
11973 (init_eh_nesting_info): Likewise.
11975 * tree.h (struct tree_common): Rename raises_flag to nothrow_flag.
11976 (TREE_NOTHROW): Rename from TREE_RAISES.
11977 * toplev.c (rest_of_compilation): Set it.
11978 * print-tree.c (print_node): Adjust.
11979 * tree.c (stabilize_reference, build, build1): Don't set TREE_RAISES.
11980 (stabilize_reference_1, get_unwidened, get_narrower): Likewise.
11981 * calls.c (emit_call_1): Add 'nothrow' parm. Add
11982 REG_EH_REGION note as appropriate.
11983 (libfunc_nothrow): New fn.
11984 (emit_library_call, emit_library_call_value): Use it.
11985 (expand_call): Check TREE_NOTHROW.
11987 * varasm.c (make_decl_rtl): Skip initial '*' when setting
11988 DECL_ASSEMBLER_NAME.
11990 2000-03-09 Andreas Jaeger <aj@suse.de>
11992 * mips/linux.h (NO_IMPLICIT_EXTERN_C): Define.
11993 (TARGET_MEM_FUNCTIONS): Define.
11995 2000-03-09 Jason Merrill <jason@casey.cygnus.com>
11997 * i386.c (ix86_valid_type_attribute_p): Use compare_tree_int.
11999 * except.c (can_throw): See through a SEQUENCE.
12000 (nothrow_function_p): New fn.
12001 * except.h: Declare it.
12002 * function.c (current_function_nothrow): New var.
12003 (prepare_function_start): Initialize it.
12004 * output.h: Declare it.
12005 * toplev.c (rest_of_compilation): Set it.
12006 * dwarf2out.c (dwarf2out_begin_prologue): Use it.
12008 2000-03-09 Zack Weinberg <zack@wolery.cumb.org>
12010 * cpphash.c (collect_formal_parameters): strncmp returns 0 for
12011 match. (cpp_compare_defs): Count the nul separator when
12012 advancing over argument names.
12014 2000-03-09 Bernd Schmidt <bernds@cygnus.co.uk>
12016 * recog.c (preprocess_constraints): Matching constraints affect
12017 same alternative/different operand, not same operand/different
12020 * reload1.c (eliminate_regs_in_insn): Handle additions of eliminable
12021 register and a constant specially.
12023 2000-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12025 * libgcc2.h: New file.
12026 * libgcc2.c: Move macros, typedefs and prototypes to libgcc2.h.
12028 Wed Mar 8 16:19:42 2000 Jim Wilson <wilson@cygnus.com>
12030 * configure.in (ia64*-*-elf*, ia64*-*-linux*): New.
12031 * configure: Regenerate.
12032 * config/ia64: New.
12034 2000-03-08 Zack Weinberg <zack@wolery.cumb.org>
12036 * Makefile.in (LIBCPP_DEPS): New macro.
12037 (cpplib.o, cpphash.o, cpperror.o, cppexp.o, cppfiles.o): Use
12038 it to declare deps.
12039 * cpperror.c: Include cpphash.h.
12040 * cppexp.c: Include cpphash.h. Remove MULTIBYTE_CHARS
12042 (lex): Don't use CPP_WARN_UNDEF.
12043 (_cpp_parse_expr): Return an int, the truth value.
12044 * cppfiles.c: Include cpphash.h.
12045 (_cpp_merge_include_chains): Move to cppinit.c and make static.
12046 * cppinit.c (include_defaults_array): Disentangle.
12047 (cpp_cleanup): Don't free the if stack here.
12048 (cpp_finish): Pop off all buffers, not just one.
12049 * cpplib.c (eval_if_expr): Return int.
12050 (do_xifdef): Rename do_ifdef.
12051 (handle_directive): Don't use CPP_PREPROCESSED.
12052 (cpp_get_token): Don't use CPP_C89.
12053 * fix-header.c: Don't use CPP_OPTIONS.
12055 * cpplib.h: Move U_CHAR, enum node_type, struct
12056 file_name_list, struct ihash, is_idchar, is_idstart,
12057 is_numchar, is_numstart, is_hspace, is_space, CPP_BUF_PEEK,
12058 CPP_BUF_GET, CPP_FORWARD, CPP_PUTS, CPP_PUTS_Q, CPP_PUTC,
12059 CPP_PUTC_Q, CPP_NUL_TERMINATE, CPP_NUL_TERMINATE_Q,
12060 CPP_BUMP_BUFFER_LINE, CPP_BUMP_LINE, CPP_PREV_BUFFER,
12061 CPP_PRINT_DEPS, CPP_TRADITIONAL, CPP_PEDANTIC, and prototypes
12062 of _cpp_simplify_pathname, _cpp_find_include_file,
12063 _cpp_read_include_file, and _cpp_parse_expr to cpphash.h.
12064 Move struct if_stack to cpplib.c. Move struct cpp_pending to
12066 Change all uses of U_CHAR to be unsigned char instead.
12067 Delete CPP_WARN_UNDEF, CPP_C89, and CPP_PREPROCESSED.
12069 2000-03-08 Jason Merrill <jason@casey.cygnus.com>
12071 * dwarf2out.c (dw_fde_struct): Add 'nothrow'.
12072 (dwarf2out_begin_prologue): Set it.
12073 (output_call_frame_info): Don't emit EH unwind info for leaves.
12075 * flow.c (count_basic_blocks, find_basic_blocks_1): A rethrow
12076 can occur outside of an EH region.
12077 * except.c: Correct comments about rethrow behavior.
12078 (rethrow_symbol_map): Do nothing if !flag_new_exceptions.
12080 2000-03-08 Andrew MacLeod <amacleod@cygnus.com>
12082 * flow.c (make_edges): Always call make_eh_edge for calls.
12084 2000-03-08 Zack Weinberg <zack@wolery.cumb.org>
12086 * cpplib.h (parse_underflow_t, CPP_NULL_BUFFER): Delete.
12087 (struct cpp_buffer): Remove fname and underflow fields.
12088 (struct cpp_reader): Remove get_token field.
12089 (struct include_hash): Rename to struct ihash. Add typedef to
12091 (struct if_stack): Remove fname field.
12092 (IF_STACK_FRAME): Rename to IF_STACK.
12094 * cpperror.c (print_containing_files): Trust that there are no
12095 macro buffers below the top file buffer.
12096 * cppfiles.c: Replace all references to 'struct include_hash'
12097 with 'IHASH'. Rename initialize_input_buffer to
12098 init_input_buffer. Don't set or reference cpp_buffer->fname,
12099 use buffer->ihash->name instead.
12100 * cpphash.c (special_symbol): Use cpp_file_buffer. Use NULL
12101 not CPP_NULL_BUFFER.
12102 * cppinit.c: Use NULL not CPP_NULL_BUFFER, IF_STACK not
12103 IF_STACK_FRAME, IHASH not struct include_hash.
12104 * cpplib.c: Rename eval_if_expression to eval_if_expr. Remove
12105 null_underflow. Use IF_STACK not IF_STACK_FRAME, IHASH not
12106 struct include_hash, NULL not CPP_NULL_BUFFER. Remove all
12107 references to cpp_buffer->fname (delete entirely, or use
12108 ->ihash->name instead) and IF_STACK->fname.
12109 (cpp_push_buffer): Don't set new->underflow.
12110 (do_include): Use cpp_file_buffer.
12112 * cpphash.c (collect_formal_parameters): Remove duplicate
12113 increment of argslen. Pedwarn in C99 mode if __VA_ARGS__ is
12114 used as a macro argument name. Don't append "..." to namebuf
12115 for varargs macros. After we're done scanning, go through
12116 namebuf and make it NUL separated, not comma separated.
12117 (_cpp_compare_defs): Remove register tag from variables.
12118 Expect defn->argnames to be NUL separated.
12119 (_cpp_dump_definition): Expect defn->argnames to be NUL
12120 separated and in forward order.
12121 * cpphash.h: Update documentation of argnames field.
12123 2000-03-08 Richard Henderson <rth@cygnus.com>
12125 * builtins.c (expand_builtin_strlen): Be prepared for strlensi
12126 to fail. Don't pre-expand the source operand.
12128 * i386.md (strlensi): Initialize eoschar and align before use.
12130 2000-03-08 Jason Merrill <jason@casey.cygnus.com>
12132 * expr.c (expand_expr, case ARRAY_REF): Still check for missing
12133 CONSTRUCTOR element.
12135 2000-03-08 Gavin Romig-Koch <gavin@cetus.cygnus.com>
12137 * mips.c (mips_expand_prologue): If the last
12138 named argument is the vararg marker "va_list", treat it as
12139 an unnamed argument.
12141 2000-03-08 Clinton Popetz <cpopetz@cygnus.com>
12143 * dbxout.c (dbxout_parms): When correcting for promoted
12144 big-endian parameters, use the mode of the DECL_RTL rather
12145 than UNITS_PER_WORD.
12147 2000-03-08 Nathan Sidwell <nathan@codesourcery.com>
12149 * c-common.h (make_fname_decl): Declare.
12150 * c-common.c (make_fname_decl): Define.
12151 (declare_hidden_char_array): Remove.
12152 (declare_function_name): Use make_fname_decl.
12153 * c-decl.c (c_make_fname_decl): New function.
12154 (init_decl_processing): Set make_fname_decl.
12156 Tue Mar 7 23:50:31 2000 Jeffrey A Law (law@cygnus.com)
12158 * cccp.c (handle_directive): Initialize backslash_newlines_p.
12160 2000-03-07 Philipp Thomas <pthomas@suse.de>
12162 * po/POTFILES.in: Remove cppalloc.c from file list.
12164 2000-03-07 Steve Chamberlain <sac@pobox.com>
12166 * pj.c (pj_expand_prologue): current_function->args_info is
12167 now current_function_args_info.
12169 * pj.h (STORE_FLAG_VALUE, USER_LABEL_PREFIX,
12170 LOCAL_LABEL_PREFIX, ASM_GENERATE_INTERNAL_LABEL,
12171 ASM_OUTPUT_INTERNAL_LABEL, ASM_OUTPUT_SKIP): Define.
12173 2000-03-08 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
12175 * config/c4x/c4x.h (PUT_SDB_TYPE): Define so that the type info is
12176 output as hexadecimal rather than the default octal.
12178 2000-03-07 Zack Weinberg <zack@wolery.cumb.org>
12180 * cpphash.c (special_symbol): Fix thinko in previous commit.
12182 2000-03-07 Neil Booth <NeilB@earthling.net>
12184 * cppexp.c (struct operation, left_shift, right_shift,
12185 cpp_parse_expr): Change some "char"s to "U_CHAR"s, and some
12186 "int"s to "unsigned int"s.
12187 * cpplib.c (detect_if_not_defined, do_assert, do_unassert):
12189 * cpplib.h: Update for above.
12190 * mkdeps.c (deps_init, deps_calc_target): Cast pointers
12191 returned from allocations.
12193 * cppinit.c (opt_comp, parse_options): New functions.
12194 (handle_option): Use parse_option to parse a single command
12195 line option, that possibly takes an argument.
12196 (cpp_handle_options): Sort the array of command line options on
12197 first invocation (non-ASCII hosts only).
12198 (print_help): Update.
12200 2000-03-07 Zack Weinberg <zack@wolery.cumb.org>
12202 * mkdeps.c (munge): Fix off-by-one bug and inconsistencies in
12203 backslash counting loops. Problem noted by Matt Kraai <kraai@ghs.com>.
12205 * cppfiles.c (_cpp_find_include_file): Make sure ih->name is
12207 * cppinit.c (cpp_cleanup): Free imp->nshort also.
12209 * cpperror.c (cpp_print_containing_files,
12210 cpp_print_file_and_line, v_cpp_message): Rename to
12211 print_containing_files, print_file_and_line, and v_message.
12212 * cppexp.c (cpp_parse_expr, cpp_parse_escape, cpp_lex): Rename
12213 to _cpp_parse_expr, parse_escape, and lex.
12214 (parse_charconst): Remove broken multibyte support.
12215 * cppfiles.c (include_hash): Make static.
12216 (cpp_included): New function.
12217 (merge_include_chains, find_include_file, finclude,
12218 simplify_pathname): Rename to _cpp_merge_include_chains,
12219 _cpp_find_include_file, _cpp_read_include_file, and
12220 _cpp_simplify_pathname.
12221 * cpphash.c (cpp_lookup, free_definition, delete_macro,
12222 cpp_install, create_definition, macroexpand, compare_defs,
12223 dump_definition): Rename to _cpp_lookup, _cpp_free_definition,
12224 _cpp_delete_macro, _cpp_install, _cpp_create_definition,
12225 _cpp_macroexpand, _cpp_compare_defs, and _cpp_dump_definition.
12226 * cppinit.c (cpp_handle_option): Rename to handle_option, make
12228 * cpplib.c: Remove extern prototype of cpp_parse_expr.
12230 * cpphash.h: Update prototypes.
12231 * cpplib.h: Likewise. Prototype _cpp_parse_expr here.
12233 2000-03-07 Andrew Haley <aph@cygnus.com>
12235 * config/mips/mips.h (PTRDIFF_TYPE): Revert broken change;
12236 PTRDIFF_TYPE should be based solely on Pmode.
12237 (SIZE_TYPE): ditto.
12239 2000-03-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12241 * rtl.h (rtunion_def): Constify member `rtstr'.
12242 (emit_line_note_after, emit_line_note, emit_line_note_force,
12243 emit_note, decode_asm_operands): Constify.
12245 * cse.c (canon_hash): Likewise.
12247 * dbxout.c (dbxout_block): Likewise.
12249 * diagnostic.c (file_and_line_for_asm, v_error_for_asm,
12250 v_warning_for_asm): Likewise.
12252 * dwarfout.c (function_start_label): Likewise.
12254 * emit-rtl.c (emit_line_note_after, emit_line_note, emit_note,
12255 emit_line_note_force): Likewise.
12257 * final.c (last_filename, asm_insn_count, final_scan_insn,
12258 output_source_line): Likewise.
12260 * function.h (struct emit_status): Likewise.
12262 * gcse.c (hash_expr_1): Likewise.
12264 * genattr.c (gen_attr, main): Likewise.
12266 * genattrtab.c (struct function_unit, current_alternative_string,
12267 write_attr_valueq, n_comma_elts, next_comma_elt, attr_eq,
12268 attr_numeral, check_attr_test, check_attr_value,
12269 convert_set_attr_alternative, convert_set_attr,
12270 compute_alternative_mask, simplify_by_exploding, gen_attr,
12271 gen_unit): Likewise.
12273 * genflags.c (gen_insn): Likewise.
12275 * gengenrtl.c (type_from_format): Likewise.
12277 * genopinit.c (gen_insn): Likewise.
12279 * genoutput.c (n_occurrences, process_template, process_template):
12282 * ggc-page.c (ggc_set_mark, ggc_mark_if_gcable, ggc_get_size):
12285 * ggc-simple.c (ggc_set_mark, ggc_mark_if_gcable, ggc_get_size):
12288 * ggc.h (ggc_mark_string, ggc_mark, ggc_mark_if_gcable,
12289 ggc_set_mark, ggc_get_size): Likewise.
12291 * objc/objc-act.c (build_module_descriptor, finish_objc): Likewise.
12293 * optabs.c (init_one_libfunc): Likewise.
12295 * output.h (assemble_start_function): Likewise.
12297 * recog.c (decode_asm_operands): Likewise.
12299 * toplev.c (rest_of_compilation): Likewise.
12301 * tree.h (emit_line_note_after, emit_line_note,
12302 emit_line_note_force): Likewise.
12304 * varasm.c (asm_output_bss, asm_output_aligned_bss,
12305 asm_emit_uninitialised, assemble_start_function,
12306 assemble_variable, const_hash, compare_constant_1,
12307 find_pool_constant, mark_constant_pool, assemble_alias): Likewise.
12309 * xcoffout.h (DBX_FINISH_SYMBOL): Likewise.
12311 * alpha/alpha.md (call_vms, call_value_vms): Likewise.
12313 * arm/aof.h (ASM_OUTPUT_ASCII): Likewise.
12315 * arm/aout.h (ASM_OUTPUT_ASCII): Likewise.
12317 * arm/arm-protos.h (output_ascii_pseudo_op, arm_dllexport_name_p,
12318 arm_dllimport_name_p): Likewise.
12320 * arm/arm.c (arm_encode_call_attribute, output_ascii_pseudo_op):
12323 * arm/arm.h (ASM_OUTPUT_MI_THUNK): Likewise.
12325 * arm/elf.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
12327 * arm/pe.c (arm_dllexport_name_p, arm_dllimport_name_p,
12328 arm_mark_dllexport, arm_mark_dllimport,
12329 arm_pe_encode_section_info): Likewise.
12331 * arm/telf.h (ASM_OUTPUT_DEF_FROM_DECLS,
12332 ASM_FINISH_DECLARE_OBJECT): Likewise.
12334 * arm/thumb.c (thumb_function_prologue): Likewise.
12336 * arm/thumb.h (ASM_OUTPUT_ASCII): Likewise.
12338 * avr/avr.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
12340 * clipper/clix.h (ASM_OUTPUT_ASCII): Likewise.
12342 * fx80/fx80.h (ASM_OUTPUT_ASCII): Likewise.
12344 * i386/cygwin.h (ASM_OUTPUT_SECTION_NAME): Likewise.
12346 * i386/freebsd.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
12348 * i386/i386-interix.h (ASM_OUTPUT_LIMITED_STRING,
12349 ASM_OUTPUT_ASCII, ASM_OUTPUT_SECTION_NAME): Likewise.
12351 * i386/i386-protos.h (asm_output_function_prefix): Likewise.
12353 * i386/i386.c (asm_output_function_prefix): Likewise.
12355 * i386/i386elf.h (ASM_OUTPUT_ASCII): Likewise.
12357 * i386/osfrose.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
12359 * i386/ptx4-i.h (ASM_OUTPUT_ASCII): Likewise.
12361 * i386/sco5.h (ASM_FINISH_DECLARE_OBJECT,
12362 ASM_OUTPUT_LIMITED_STRING, ASM_OUTPUT_ASCII,
12363 ASM_OUTPUT_SECTION_NAME): Likewise.
12365 * i386/sysv4.h (ASM_OUTPUT_ASCII): Likewise.
12367 * i860/paragon.h (ASM_OUTPUT_ASCII): Likewise.
12369 * i860/sysv3.h (ASM_OUTPUT_ASCII): Likewise.
12371 * m32r/m32r.c (m32r_encode_section_info): Likewise.
12373 * mcore-elf.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
12375 * mcore/mcore.c (mcore_encode_section_info): Likewise.
12377 * mips/elf.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
12379 * mips/elf64.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
12381 * mips/iris6.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
12383 * mips/mips.h (ASM_OUTPUT_IDENT): Likewise.
12385 * mips/mips.md (movdi, movsi): Likewise.
12387 * mips/netbsd.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
12389 * netbsd.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
12391 * openbsd.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
12393 * ptx4.h (ASM_FINISH_DECLARE_OBJECT, ASM_OUTPUT_LIMITED_STRING,
12394 ASM_OUTPUT_ASCII): Likewise.
12396 * rs6000/rs6000.c (rs6000_allocate_stack_space, output_epilog,
12397 output_mi_thunk, output_toc): Likewise.
12399 * rs6000/rs6000.md (movsi): Likewise.
12401 * rs6000/sysv4.h (ASM_OUTPUT_INT, ASM_OUTPUT_SECTION_NAME): Likewise.
12403 * tahoe/harris.h (ASM_OUTPUT_ASCII): Likewise.
12405 * v850/v850.c (print_operand, print_operand_address,
12406 v850_encode_data_area): Likewise.
12408 2000-03-07 Clinton Popetz <cpopetz@cygnus.com>
12410 * config/mips/mips.md (zero_extendsidi2): Always force operand
12411 one to memory for mips16.
12413 Mon Mar 6 15:22:29 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12415 * tree.h (INT_CST_LT, INT_CST_LT_UNSIGNED): Remove unneeded casts.
12416 (struct tree_int_cst): int_cst_low is now unsigned HOST_WIDE_INT.
12417 (attribute_hash_list, type_hash_canon): hashcode is now unsigned.
12418 (type_hash_lookup, type_hash_add, type_hash_list): Likewise.
12419 (min_precision): Result is unsigned.
12420 (add_double, neg_double, mul_double): Low word is unsigned.
12421 (lshift_double, rshift_double, lrotate_double): Likewise.
12422 (rrotate_double, div_and_round_double): Likewise.
12423 (tree_floor_log2, compare_tree_int): New functions.
12424 (preserve_rtl_expr_temps): New declaration.
12425 * c-common.c (declare_hidden_char_array): Use compare_tree_int.
12426 (decl_attributes): Use tree_log2 to find alignment.
12427 Check for TREE_INT_CST_HIGH for format args.
12428 (min_precision): Now unsigned.
12429 Use tree_floor_log2.
12430 (truthvalue_conversion): Delete long-disabled code.
12431 * c-decl.c (finish_struct): Clean up tests on field width.
12432 (finish_function): Use compare_tree_int.
12433 * c-pragma.c (handle_pragma_token): Use tree_log2 for alignment.
12434 * c-typeck.c (comptypes): Use tree_int_cst_equal.
12435 (default_conversion, digest_init): Use compare_tree_int.
12436 (build_binary_op): Use integer_all_onesp and compare_tree_int.
12437 Fix type errors in forming masks.
12438 * calls.c (initialize_argument_information): Use compare_tree_int.
12439 * dbxout.c (dbxout_type): Cast TREE_INT_CST_LOW to HOST_WIDE_INT.
12440 * except.c (expand_eh_region_start_tree): Use compare_tree_int.
12441 * expr.c (is_zeros_p, case INTEGER_CST): Use integer_zerop.
12442 (store_field): Use compare_tree_int.
12443 (expand_expr, case CONSTRUCTOR): Use TYPE_SIZE_UNIT.
12444 (expand_expr, case ARRAY_REF): Use compare_tree_int.
12445 (do_jump, case BIT_AND_EXPR): Use tree_floor_log2.
12446 (do_store_flag): Use compare_tree_int.
12447 * fold-const.c (encode, decode): Low part is always unsigned.
12448 (force_fit_type, add_double, neg_double, mul_double): Likewise.
12449 (lshift_double, rshift_double, lrotate_double): Likewise.
12450 (rrotate_double, div_and_round_double, int_const_binop): Likewise.
12451 (fold_convert): Use compare_tree_int.
12452 (operand_equal_p, case INTEGER_CST): Use tree_int_cst_equal.
12453 (invert_truthvalue, case INTEGER_CST): Likewise.
12454 (fold): Use compare_tree_int; add casts for unsigned TREE_INT_CST_LOW.
12455 * mkdeps.c (deps_dummy_targets): Make I unsigned.
12456 * rtl.h (add_double, neg_double, mul_double): Low words are unsigned.
12457 (lshift_double, rshift_double, lrotate_double, rrotate_double):
12459 * stmt.c (expand_decl): Use compare_tree_int and mode_for_size_tree.
12460 (expand_end_case): Use compare_tree_int.
12461 (estimate_case_costs): Cast TREE_INT_CST_LOW to HOST_WIDE_INT.
12462 * stor-layout.c (mode_for_size_tree): Use compare_tree_int.
12463 (layout_decl): Likewise.
12464 (layout_record, layout_union): Make sizes unsigned.
12465 (layout_type, case VOID_TYPE): TYPE_SIZE must be bitsizetype.
12466 (layout_type, case QUAL_UNION_TYPE): Use compare_tree_int.
12467 * tree.c (struct type_hash): hashcode is unsigned.
12468 (build_type_attribute_variant, type_hash_list): Likewise.
12469 (type_hash_lookup, type_hash_add, type_hash_canon): Likewise.
12470 (attribute_hash_list, build_array_type, build_method_type): Likewise.
12471 (build_complex_type): Likewise.
12472 (real_value_from_int_cst): Remove unneeded casts.
12473 (integer_all_onesp): Add casts.
12474 (tree_floor_log2, compare_tree_int): New functions.
12475 (build_index_type): Use tree_int_cst_sgn.
12476 * varasm.c (assemble_variable): Use compare_tree_int.
12478 2000-03-06 Jason Merrill <jason@casey.cygnus.com>
12480 * cpphash.c (collect_expansion): Also catch ## at start of macro.
12482 * varasm.c (make_decl_rtl): Don't add a number to members of
12484 (make_function_rtl): Likewise.
12486 2000-03-06 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
12488 * gcse.c (compute_can_copy): Adjust if/else blocks from rth's
12489 patch from 2000-01-28.
12491 2000-03-06 Clinton Popetz <cpopetz@cygnus.com>
12493 * config/sh/sh.c: (barrier_align): Handle a delay slot that is
12494 filled with an insn from the jump target.
12496 2000-03-07 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
12498 * config/c4x/c4x-protos.h (c4x_global_name): Constify char *.
12499 (c4x_external_ref): Likewise.
12500 * config/c4x/c4x.c (struct name_list): Likewise.
12502 1999-12-16 Ben Collins <bcollins@debian.org>
12504 * Makefile.in: Pass a new MULTILIB_EXCLUSIONS option as the sixth
12505 argument to genmultilib.
12506 * genmultilib: accept new MULTILIB_EXCLUSIONS option and output
12507 the contents into the multilib.h header.
12508 * gcc.c: Declare multilib_exclusions for the specs file.
12509 (set_multilib_dir): Use it.
12510 (print_multilib_info): Likewise.
12511 * t-linux64: Declare arguments for new MULTILIB_EXCLUSIONS option
12512 to pass to genmultilib.
12514 2000-03-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12516 * builtins.c (built_in_class_names, built_in_names): Constify a
12519 * gmon-sol2.c (monstartup, moncontrol): Cast ptrs to long, not
12521 (_mcleanup): Ensure value matches format specifier in sprintf.
12523 * cpphash.c (special_symbol): Don't needlessly cast away
12526 * cppinit.c (base_name): Delete unused prototype.
12528 * mkdeps.c (deps_init): Make definition K&R safe.
12530 * tree.h (built_in_class_names, built_in_names): Constify a
12533 2000-03-06 Jakub Jelinek <jakub@redhat.com>
12535 * config/sparc/sparc.c (eligible_for_epilogue_delay): Accept
12536 floating point instructions for epilogue delay.
12538 * config/sparc/sparc.h (ASM_ARCH64_SPEC): Pass -no-undeclared-regs
12539 to gas if it supports .register pseudo.
12541 * real.h (MAX_LONG_DOUBLE_TYPE_SIZE): Define to
12542 LONG_DOUBLE_TYPE_SIZE if not defined.
12543 Use MAX_LONG_DOUBLE_TYPE_SIZE instead of
12544 LONG_DOUBLE_TYPE_SIZE in preprocessor if clauses.
12545 * real.c: Likewise.
12546 * gengenrtl.c: Likewise.
12547 * print-rtl.c: Likewise.
12549 * config/sparc/sol2-sld-64.h (TARGET_DEFAULT): Set
12550 MASK_LONG_DOUBLE_128.
12551 * config/sparc/sol2.h (TARGET_DEFAULT): Likewise.
12552 * config/sparc/sp64-elf.h (TARGET_DEFAULT): Likewise.
12553 * config/sparc/linux64 (TARGET_DEFAULT): Likewise.
12554 (SUBTARGET_SWITCHES): Define.
12555 (CPP_ARCH32_SPEC): Define __LONG_DOUBLE_128__ if compiling
12556 with -mlong-double-128.
12557 (LONG_DOUBLE_TYPE_SIZE): Define depending on target_flags.
12558 (MAX_LONG_DOUBLE_TYPE_SIZE): Define.
12559 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define depending on CPP macros.
12560 (CC1_SPEC): Include -mlong-double-{64,128} as needed.
12561 * config/sparc/linux.h (SUBTARGET_SWITCHES): Define.
12562 (CPP_SUBTARGET_SPEC): Define __LONG_DOUBLE_128__ if compiling
12563 with -mlong-double-128.
12564 (LONG_DOUBLE_TYPE_SIZE): Define depending on target_flags.
12565 (MAX_LONG_DOUBLE_TYPE_SIZE): Define.
12566 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define depending on CPP macros.
12567 * config/sparc/sparc.h (MASK_LONG_DOUBLE_128,
12568 TARGET_LONG_DOUBLE_128): Define.
12569 * config/sparc/linux-aout.h (LONG_DOUBLE_TYPE_SIZE): Remove.
12570 * config/sparc/sparc.c (sparc_override_options): Disallow 64bit
12571 long double on TARGET_ARCH64.
12573 2000-03-06 Mark Mitchell <mark@codesourcery.com>
12575 * function.c (free_temps_for_rtl_expr): Don't free slots
12576 that have been pushed into a higher level.
12579 2000-03-05 Mark Mitchell <mark@codesourcery.com>
12581 2000-03-05 Mark Mitchell <mark@codesourcery.com>
12583 * basic-block.h (ALLOCA_REG_SET): Remove.
12584 (INITIALIZE_REG_SET): New macro.
12585 * flow.c (update_life_info): Use it.
12586 (calculate_global_regs_live): Likewise.
12587 (propagate_block): Likewise.
12588 * global.c (build_insn_chain): Likewise.
12589 * haifa-sched.c (schedule_region): Likewise.
12591 2000-03-05 Stephane Carrez <stcarrez@worldnet.fr>
12593 * dwarf2out.c (UNALIGNED_WORD_ASM_OP): Support 2 bytes pointer.
12594 (ASM_OUTPUT_DWARF_ADDR_CONST): Use UNALIGNED_WORD_ASM_OP.
12595 (DWARF_ARANGES_PAD_SIZE): New define.
12596 (output_aranges): Use it to pad the address range header.
12597 (DWARF_ROUND): Fix for non power of 2 rounding.
12599 2000-03-05 Jason Merrill <jason@casey.cygnus.com>
12601 * mkdeps.c (deps_calc_target): Remove incorrect 'const'.
12603 2000-03-05 Mark Mitchell <mark@codesourcery.com>
12605 * tree.def (RTL_EXPR): Update documentation.
12606 * tree.h (RTL_EXPR_HAS_NO_SCOPE): New macro.
12607 * expr.c (expand_expr): Handle RTL_EXPR_HAS_NO_SCOPE.
12608 * function.c (preserve_rtl_expr_temp): New function.
12609 (preserve_rtl_expr_temps): Likewise.
12610 (preserve_rtl_expr_result): Use it.
12613 2000-03-04 Mark Mitchell <mark@codesourcery.com>
12615 2000-03-04 Thomas Schuster <Thomas.Schuster@gmx.net>
12617 * regmove.c (copy_src_to_dest) Do not create src->dest move
12618 for unchanging destination.
12620 2000-03-04 Mark Mitchell <mark@codesourcery.com>
12622 * function.h (struct sequence_stack): Remove rtl_expr.
12623 (struct emit_staus): Likewise.
12624 (seq_rtl_expr): Remove.
12625 * tree.h (free_temps_for_rtl_expr): Don't declare.
12626 (start_sequence_for_rtl_expr): Likewise.
12627 * rtl.h (preserve_rtl_expr_result): Likewise.
12628 * emit-rtl.c (start_sequence): Don't set sequence_rtl_expr.
12629 (start_sequence_for_rtl_expr): Remove.
12630 (push_topmost_sequence): Don't save sequence_rtl_expr.
12631 (pop_topmost_sequence): Remove comment about not restoring it.
12632 (end_sequence): Don't set seq_rtl_expr.
12633 (init_emit): Don't initialize it.
12634 (mark_sequence_stack): Don't mark it.
12635 (mark_emit_status): Likewise.
12636 * except.c (protect_with_terminate): Use
12637 start_sequence_for_rtl_expr, not start_sequence.
12638 * expr.c (expand_expr, case RTL_EXPR): Don't call
12639 preserve_rtl_expr_result or free_temps_for_rtl_expr.
12640 * function.c (assign_stack_temp_for_type): Don't set rtl_expr.
12641 (preserve_rtl_expr_result): Remove.
12642 (free_temps_for_rtl_expr): Likewise.
12643 (pop_temp_slots): Likewise.
12644 (mark_temp_slot): Don't mark the rtl_expr.
12645 * stmt.c (expand_start_stmt_expr): Use start_sequence, not
12646 start_sequence_for_rtl_expr.
12648 2000-03-04 Zack Weinberg <zack@wolery.cumb.org>
12650 * mkdeps.c, mkdeps.h: New files.
12651 * po/POTFILES.in: Add them.
12652 * Makefile.in (LIBCPP_OBJS): Add mkdeps.o.
12653 (cpplib.o, cppinit.o): Depend on mkdeps.h.
12654 (mkdeps.o): New target.
12656 * cppfiles.c: Delete deps_output.
12657 * cppinit.c: Include mkdeps.h. Delete known_suffixes,
12658 OBJECT_SUFFIX, and base_name.
12659 (cpp_cleanup): Use deps_free. Free ihash->name when clearing
12661 (initialize_dependency_output): Use deps_init,
12662 deps_add_target, deps_calc_target, and deps_add_dep. Remove
12663 all the unnecessary string bashing.
12664 (cpp_finish): Use deps_write. Remove an unnecessary nesting
12666 * cpplib.c (do_include): Use deps_add_dep.
12667 * cpplib.h (struct cpp_reader): Replace deps_buffer,
12668 deps_allocated_size, deps_size, deps_column members with
12669 single pointer to a struct deps. Delete prototype of
12672 * cppinit.c: Fix thinko in previous patch.
12674 Sat Mar 4 11:32:30 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12676 * machmode.h (mode_for_size, smallest_mode_for_size): SIZE now signed.
12677 * stor-layout.c (mode_for_size, smallest_mode_for_size): Likewise.
12678 (mode_for_size_tree): New function.
12679 (layout_decl, layout_type): Call it and clean up BLKmode checks.
12680 * tree.h (mode_for_size_tree): New declaration.
12682 * toplev.c (debug_ignore_block): Mark arg BLOCK as possibly unused.
12684 2000-03-04 Jason Merrill <jason@casey.cygnus.com>
12686 * stmt.c (is_body_block): Move...
12687 * dwarfout.c, dwarf2out.c: ...from here.
12688 * tree.h: Declare it.
12689 * emit-rtl.c (remove_unncessary_notes): Don't remove the body block.
12690 * final.c (final_start_function): Do call remove_unnecessary_notes
12693 2000-03-03 Zack Weinberg <zack@wolery.cumb.org>
12695 * config/vax/xm-vms.h: Define OBJECT_SUFFIX and EXECUTABLE_SUFFIX.
12697 * cpplib.h (_dollar_ok): New macro.
12698 (is_idchar, is_idstart): Use it.
12699 (IStable): Rename to _cpp_IStable. Declare it const if
12700 gcc >=2.7 or C99. Delete all references to FAKE_CONST.
12701 (is_idchar, is_idstart, is_numchar, is_numstart, is_hspace,
12702 is_space): Update for renamed IStable.
12704 * cppinit.c: Delete all references to FAKE_CONST and CAT
12705 macros. Define init_IStable as empty macro if gcc >=2.7 or
12706 C99. Change TABLE() to ISTABLE and hardcode name of table.
12707 (cpp_start_read): Don't change the IStable based on
12710 * cpphash.c (unsafe_chars): Add pfile argument. All callers
12711 changed. Handle '$' for char1 correctly.
12712 * cpplib.c (cpp_get_token): Use is_numchar when parsing numbers.
12714 * cppexp.c (tokentab2): Make const.
12715 (cpp_lex): Make toktab const.
12716 * cppinit.c (include_defaults_array): Make const.
12717 (initialize_standard_includes): Make default_include const.
12719 2000-03-03 Jason Merrill <jason@casey.cygnus.com>
12721 * dwarf2out.c (dwarf2out_frame_debug): Add cast to silence warning.
12722 (dwarf2out_decl): Functions can now have DECL_IGNORED_P.
12723 (gen_decl_die): Likewise.
12724 * dwarfout.c (dwarfout_file_scope_decl): Likewise.
12725 (output_decl): Likewise.
12727 * varasm.c (make_function_rtl): If we change the name used in the
12728 rtl, update DECL_ASSEMBLER_NAME accordingly.
12729 (make_decl_rtl): Likewise.
12731 * toplev.c (rest_of_compilation): Tweak formatting.
12733 * toplev.c (rest_of_compilation): find_loop_tree_blocks before
12734 remove_unnecessary_notes.
12735 (debug_ignore_block): New fn.
12736 * toplev.h: Declare it.
12737 * emit-rtl.c (remove_unncessary_notes): Call it.
12738 * dwarf2out.c (dwarf2out_ignore_block): New fn.
12739 * dwarf2out.h: Declare it.
12740 * final.c (final_start_function): Don't call remove_unnecessary_notes
12741 if we did insn scheduling.
12743 2000-03-03 Zack Weinberg <zack@wolery.cumb.org>
12745 * cppinit.c (cpp_handle_option): Set opts->pedantic directly.
12746 * cpplib.h: Delete SET_CPP_PEDANTIC.
12748 Fri Mar 3 14:56:12 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12750 * expr.c (expand_expr, case COMPONENT_REF): Use bitfield case if
12751 result is a RECORD_TYPE.
12753 2000-03-03 Jonathan Larmour <jlarmour@cygnus.co.uk>
12755 * mips/elf.h (CTOR_LISTS_DEFINED_EXTERNALLY): Added.
12757 2000-03-03 Richard Henderson <rth@cygnus.com>
12759 * alpha.c (alpha_emit_set_const_1): Re-order cases to prefer
12760 addition over compliments over shifts.
12762 Fri Mar 3 12:49:28 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
12764 * reload1.c (reload_combine_note_use): Handle return register USEs.
12765 REG case: Handle multi-hard-register hard regs.
12767 Fri Mar 3 07:38:34 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12769 * md.texi: Document use of '*' in insn pattern name.
12771 2000-03-03 Jason Merrill <jason@casey.cygnus.com>
12773 * calls.c (special_function_p): operator new may not be malloc-like.
12775 * gcse.c (dump_hash_table): Really fix error in last change.
12777 2000-03-02 Denis Chertykov <denisc@overta.ru>
12779 * avr.c (print_operand): Use print_operand_address instead of
12781 * avr/libgcc.S: Cleanup code.
12783 2000-03-02 Richard Henderson <rth@cygnus.com>
12785 * alpha.c (alpha_emit_set_const_1): Also try c + small constant.
12787 2000-03-02 Mark Mitchell <mark@codesourcery.com>
12789 * tree.h (TYPE_ALIGN_UNIT): New macro.
12791 2000-03-02 Clinton Popetz <cpopetz@cygnus.com>
12793 * i386.c: (constant_call_address_operand): Reject CONST_INT.
12795 2000-03-02 Jason Merrill <jason@casey.cygnus.com>
12797 * cpplib.h (CPP_PEDANTIC): Only true if system_header_p is not set
12799 (SET_CPP_PEDANTIC): New macro.
12800 * cpplib.c (do_include): Don't bother checking system_header_p.
12801 (do_warning, do_ident, do_assert, do_unassert): Likewise.
12802 * cppinit.c (cpp_handle_option): Use SET_CPP_PEDANTIC.
12804 * function.h (struct expr_status): Add x_arg_space_so_far.
12805 (arg_space_so_far): New macro.
12806 * expr.c (init_expr): Initialize it.
12807 * calls.c (emit_call_1): Reset it.
12808 (compute_argument_block_size, expand_call): Use it.
12809 (expand_call, store_one_arg): Increment it.
12811 Thu Mar 2 17:27:13 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12813 * varasm.c (output_constant): Strip off a CONVERT_EXPR to
12816 2000-03-02 Zack Weinberg <zack@wolery.cumb.org>
12818 * cppfiles.c (cpp_read_file): New function.
12820 * cpphash.c (collect_expansion): Make sure to reset last_token
12821 to NORM when we hit a string. Handle trailing whitespace
12822 properly when the expansion is empty.
12823 (create_definition): Disable line commands while parsing the
12825 (dump_definition): If pfile->lineno == 0, output a line
12826 command ahead of the dump, and add a trailing newline.
12828 * cppinit.c (append_include_chain): Add fifth argument, which
12829 indicates whether or not system headers are C++ aware.
12830 (initialize_standard_includes): New function,
12831 broken out of read_and_prescan. Pass 'cxx_aware' value from
12832 the include_defaults_array on to append_include_chain.
12833 (dump_special_to_buffer): Const-ify char array.
12834 (builtin_array): Don't dump __BASE_FILE__.
12835 (cpp_start_read): Use cpp_read_file. Reorder code for
12836 clarity. Don't output line commands here for -D/-A/-U
12837 switches. Don't call deps_output for files included with
12838 -include or -imacros.
12840 * cpplib.c (do_define): Don't pay any attention to the second
12842 (cpp_expand_to_buffer): Disable line commands while scanning.
12843 (output_line_command): Work in the file buffer.
12844 * cpplib.h: Remove no_record_file flag from struct cpp_reader.
12845 Fix formatting of comments. Prototype cpp_read_file.
12847 Thu Mar 2 13:29:46 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12849 * c-common.c (c_common_nodes_and_builtins): Make sizetype_endlink
12850 reference the language-equivalent of sizetype.
12851 * c-typeck.c (comptypes): Treat sizetype like its language equivalent.
12852 * fold-const.c (size_binop, size_diffop): Put back checks.
12853 * gcse.c (dump_hash_table): Fix minor error in last change.
12854 * stor-layout.c (set_sizetype): Set TYPE_DOMAIN of sizetype.
12855 Clear TYPE_{NEXT,MAIN}_VARIANT and TYPE_{POINTER,REFERENCE}_to of
12858 Thu Mar 2 12:48:45 MET 2000 Jan Hubicka <jh@suse.cz>
12860 * calls.c (expand_call) Do not attempt to combine stack adjustments
12861 with inhibit_defer_pop set.
12863 2000-03-01 Mark Mitchell <mark@codesourcery.com>
12865 * stor-layout.c (layout_decl): Allow front-ends to explicitly set
12866 the DECL_SIZE for a FIELD_DECL.
12868 2000-03-01 Bruce Korb <bkorb@gnu.org>
12870 * fixinc/inclhack.tpl: remove unused symlinks
12871 * fixinc/README: GCC Maintainer info
12872 * fixinc/inclhack.sh: regen
12873 * fixinc/fixincl.sh: regen
12875 2000-03-01 Zack Weinberg <zack@wolery.cumb.org>
12877 * cpphash.c (collect_expansion): Trim trailing white space
12878 from macro definitions, but don't go past the last insertion
12881 Wed Mar 1 12:14:31 MET 2000 Jan Hubicka <jh@suse.cz>
12883 * i386.md (mulqi3): New pattern.
12885 2000-02-29 Zack Weinberg <zack@wolery.cumb.org>
12887 * cpplib.h (CPP_ASSERTION, CPP_STRINGIZE, CPP_TOKPASTE): New
12889 (struct cpp_reader): Add parsing_if_directive and
12890 parsing_define_directive flags.
12891 (struct cpp_options): Remove output_conditionals flag.
12892 (check_macro_name): Delete prototype.
12894 * cpphash.h (struct macrodef): Delete.
12895 (struct reflist): Separate from struct definition.
12896 (struct definition): Remove unused fields. Add column number.
12897 (create_definition): Returns a DEFINITION *. Takes a
12898 cpp_reader * and an int.
12900 * cpphash.c (SKIP_WHITE_SPACE): Delete.
12901 (PEEKC): Copy defn from cpplib.c.
12902 (rest_extension, REST_EXTENSION_LENGTH): Delete.
12904 (struct arglist): Simplify.
12905 (collect_expansion): Rewrite. Get tokens by calling
12906 cpp_get_token. Add more error checking.
12907 (collect_formal_parameters): New function, broken out of
12908 create_definition and reworked to use get_directive_token.
12909 (create_definition): All real work is now in collect_expansion
12910 and collect_formal_parameters. do_define handles finding the
12911 macro name. Return a DEFINITION, not a MACRODEF.
12912 (macroexpand): Replace bcopy with memcpy throughout. Replace
12913 character-at-a-time copy loop with memcpy and pointer increments.
12914 (compare-defs): d1->argnames / d2->argnames might be null.
12916 * cpplib.c (copy_rest_of_line): Delete function.
12917 (skip_rest_of_line): Do all the work ourselves.
12918 (skip_string): New function.
12919 (parse_string): Use skip_string.
12920 (get_macro_name): New function.
12921 (check_macro_name): Delete.
12922 (copy_comment): Use CPP_RESERVE and CPP_PUTC_Q.
12923 (cpp_skip_hspace): Use CPP_BUMP_LINE.
12924 (handle_directive): ICE if we're called on a macro buffer.
12925 (do_define): Determine macro name and type (funlike/objlike)
12926 here. Expunge all uses of MACRODEF.
12927 (cpp_push_buffer): Set line_base to NULL.
12928 (do_undef, read_line_number): Don't worry about getting a POP token.
12929 (eval_if_expression): Set/reset parsing_if_directive around
12930 cpp_parse_expr. Don't clear only_seen_white.
12931 (skip_if_group): Remove output_conditionals logic. Use
12933 (cpp_get_token): Return ASSERTION, STRINGIZE, and TOKPASTE
12934 tokens under appropriate conditions.
12935 (cpp_unassert): Call do_unassert not do_assert. Oops.
12937 * cppexp.c (parse_defined): New function, break out of
12939 (cpp_lex): We now get CPP_ASSERTION tokens and can check them
12940 ourselves, with cpp_defined.
12941 * cppinit.c (cpp_handle_option, print_help): Delete -ifoutput.
12943 * gcc.dg/20000209-2.c: Turn off -pedantic-errors.
12944 * gcc.dg/strpaste-2.c: New.
12946 2000-02-29 Mark Mitchell <mark@codesourcery.com>
12948 * fold-const.c (size_binop): Don't asert inputs are the same and
12949 have TYPE_IS_SIZETYPE set.
12950 (size_diffop): Likewise.
12952 2000-02-29 Jason Merrill <jason@casey.cygnus.com>
12954 * dwarfout.c (output_block): Output abstract blocks even if they
12955 don't have TREE_ASM_WRITTEN set.
12957 * calls.c (emit_library_call): Check for null REG.
12959 2000-03-01 Martin von Loewis <loewis@informatik.hu-berlin.de>
12961 * c-decl.c (current_function_decl): Move to toplev.c.
12962 (init_decl_processing): Don't add current_function_decl as a ggc
12964 * dbxout.c (dbxout_symbol): Change return type to int.
12965 (dbxout_symbol_location, dbxout_syms): Likewise.
12966 (dbxout_block): Don't emit LBRAC/RBRAC pairs for blocks without
12967 any locals. Use current_function_func_begin_label if set.
12968 * dbxout.h (dbxout_symbol, dbxout_syms): Change return type.
12969 * dwarf2out.c (dwarf2out_begin_prologue): Set
12970 current_function_func_begin_label.
12971 * final.c (final_start_function): Reset it.
12972 * toplev.c (current_function_decl): Define it here.
12973 (current_function_func_begin_label): New variable.
12974 (main): Add both as ggc roots.
12975 * tree.h (current_function_func_begin_label): Declare.
12977 Tue Feb 29 14:07:04 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12979 * gcse.c: Cleanups throughout: mostly white-space, but also
12980 some minor rearrangement of code.
12982 Tue Feb 29 10:45:59 2000 Jeffrey A Law (law@cygnus.com)
12984 * calls.c (emit_library_call): Do not abort if FUNCTION_ARG
12985 returns a PARALLEL. Use emit_group_load and use_group_regs
12987 (emit_library_call_value): Similarly.
12989 * pa/t-pa: Use quadlib.c instead of quadlib.asm.
12990 * pa/quadlib.asm: Remove.
12991 * pa/quadlib.c: New file.
12993 * configure.in (hpux10, hpux11, PA32 mode): Use i128 float format.
12994 * configure: Rebuilt.
12996 2000-02-29 Philip Blundell <pb@futuretv.com>
12998 * config/arm/conix-elf.h: New file.
12999 * configure.in (arm*-*-conix*): New configuration.
13000 * configure: Regenerate.
13002 2000-02-28 Jason Merrill <jason@casey.cygnus.com>
13004 * dwarf2out.c (gen_block_die): Output abstract blocks even if they
13005 don't have TREE_ASM_WRITTEN set.
13007 Mon Feb 28 21:07:59 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13009 * Eliminate DECL_FIELD_SIZE.
13010 * builtins.c (built_in_class_names, built_in_names): New variables.
13011 * c-decl.c (finish_struct): Set specified size in DECL_SIZE.
13012 * expr.c (expand_expr, case COMPONENT_REF): Get field size from
13013 DECL_SIZE, not DECL_FIELD_SIZE.
13014 * print-tree.c (print_node): Remove code that prints extra blank
13015 lines in some cases.
13016 Properly handle inline and builtin function cases.
13017 * stor-layout.c (layout_decl): Get specified size from DEC_SIZE.
13018 * tree.h (built_in_class_named, built_in_names): New declarations.
13019 (union tree_decl): Rename internal unions to u1 and u2 and change
13020 some of their components.
13021 Add new field built_in_class.
13022 (DECL_ALIGN, DECL_INCOMING_RTL, DECL_SAVED_INSNS, DECL_FRAME_SIZE):
13023 Reflect above changes.
13024 (DECL_FUNCTION_CODE, DECL_BUILT_IN_CLASS): Likewise.
13025 (DECL_SET_FUNCTION_CODE, DECL_FIELD_SIZE): Deleted.
13026 * objc/objc-act.c (objc_copy_list): Use DECL_SIZE, not DECL_FIELD_SIZE.
13027 (encode_field_decl): Likewise; also remove obsolete test for bitfield.
13029 2000-02-28 Dmitri Makarov <dim@windriver.com>
13031 * extend.texi: Document ARM's support for long/short calls.
13033 * invoke.texi: Document ARM's -mlong-calls command line switch.
13035 * config/arm/arm-protos.h (arm_is_longcall_p): Add prototype.
13036 (arm_encode_call_attribute): Add prototype.
13037 (arm_set_default_type_attribute): Add prototype.
13038 (arm_strip_name_encoding): Add prototype.
13040 * config/arm/arm.c (arm_init_cumulative_args): replace
13041 initialisation og 'long_calls' field with initialisation of
13042 'call_cookie' field.
13043 (enum arm_pragma_enum): New enum.
13044 (arm_pragma_long_calls): New static variable.
13045 (arm_process_pragma): Also process "#pragma long_calls_off".
13046 (arm_valid_type_attribute_p): Accept short_call attribute.
13047 (arm_comp_type_attributes): Check long/short call attributes.
13048 (arm_encode_call_attribute): New function: Encode long_call
13049 or short_call attribute in function name.
13050 (arm_set_default_type_attributes): New function: Assign
13051 default attributes to newly defined type.
13052 (current_file_function_operand): New function: Return true if
13053 the symbol is a function which has already been compiled.
13054 (arm_is_longcall_p): New function: Return true if the
13055 indicated function should be called via a long call.
13056 (arm_get_strip_length): New function. Returns number of
13057 prefix characters to be stripped from a function's name.
13058 (arm_strip_name_encoding): New function. Strip prefix characters
13059 from a function's name.
13061 * config/arm/arm.h (CUMULATIVE_ARGS): Replace 'long_call' field
13062 with 'call_cookie'.
13063 (SHORT_CALL_FAG_CHAR): Define.
13064 (LONG_CALL_FAG_CHAR): Define.
13065 (ENCODED_SHORT_CALL_ATTR_P): Define.
13066 (ENCODED_LONG_CALL_ATTR_P): Define.
13067 (ARM_NAME_ENCODING_LENGTHS): Define.
13068 (STRIP_NAME_ENCODING): Define.
13069 (ASM_OUTPUT_LABELREF): Define, and use to strip name encoding.
13070 (ARM_ENCODE_CALL_TYPE): Define.
13071 (ENCODE_SECTION): Invoke ARM_ENCODE_CALL_TYPE.
13072 (ARM_DECLARE_FUNCTION_SIZE): Define.
13073 (SET_DEFAULT_TYPE_ATTRIBUTES): Define.
13075 * config/arm/arm.md (call): Call arm_is_longcall_p to decide
13076 if a long call is needed.
13077 (call_value): Ditto.
13078 (call_symbol): Ditto.
13080 * config/arm/elf.h (ASM_DECLARE_FUNCTION_SIZE): Add invocation of
13081 ARM_DECLARE_FUNCTION_SIZE.
13083 * config/arm/pe.h (ARM_PE_FLAG_CHAR): Define.
13084 (SUBTARGET_NAME_ENCODING_LENGTHS): Define.
13085 (ARM_STRIP_NAME_ENCODING): Undefine.
13086 (STRIP_NAME_ENCODING): Undefine.
13087 (ASM_OUTPUT_LABELREF): Use arm_strip_name_encoding.
13088 (ASM_DECLARE_FUNCTION_NAME): Ditto.
13089 (ASM_OUTPUT_COMMON): Ditto.
13090 (ASM_DECLARE_OBJECT_NAME): Ditto.
13092 * config/arm/pe.c (arm_dllexport_name_p): Check for
13094 (arm_dllimport_name_p): Ditto.
13095 (arm_mark_dllexport): Use ARM_PE_FLAG_CHAR.
13096 (arm_mark_dllimport): Ditto.
13098 Mon Feb 28 22:11:12 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
13100 * sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Define.
13102 2000-02-28 Mark Mitchell <mark@codesourcery.com>
13104 * xcoffout.c (xcoffout_begin_function): Fix typo in previous change.
13106 2000-02-28 Zack Weinberg <zack@wolery.cumb.org>
13108 * tm.texi: Document new target switch, NO_BUILTIN_WCHAR_TYPE.
13109 * cppinit.c (builtin_array): Define __WCHAR_TYPE__ only if
13110 NO_BUILTIN_WCHAR_TYPE is not defined.
13111 (CPP_WCHAR_TYPE): Delete.
13112 * cccp.c (main): Don't change wchar_type if cplusplus.
13113 (special_symbol, initialize_builtins): Honor NO_BUILTIN_WCHAR_TYPE.
13115 2000-02-28 Nick Clifton <nickc@cygnus.com>
13117 * config/arm/arm-wince-pe.h (SIZE_TYPE): Define to "unsigned long".
13119 Mon Feb 28 14:21:15 2000 Catherine Moore <clm@cygnus.com>
13121 * config/pa/som.h (MAKE_DECL_ONE_ONLY): Define.
13122 (ASM_WEAKEN_LABEL): Define.
13124 Mon Feb 28 13:07:19 MET 2000 Jan Hubicka <jh@suse.cz>
13126 * expr.c (store_constructor): Do not emit USE.
13127 * rtl.h (stupid_life_analysis): Remove.
13129 Mon Feb 28 07:03:27 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13131 * function.c (number_blocks): Reset next_block_index based on
13132 what debugging format is used, not what is defined.
13134 * lcm.c: Minor reformatting throughout.
13135 (reg_dies, reg_becomes_live): Properly handle multiple hard regs.
13137 * toplev.c (rest_of_compilation): Account for time in
13138 optimize_mode_switching.
13140 * jump.c (jump_optimize_1): Don't call delete_barrier_successors
13141 if only marking labels.
13143 Mon Feb 28 12:53:57 MET 2000 Jan Hubicka <jh@suse.cz>
13145 * calls.c (expand_call): Attempt to combine stack adjustments with
13146 pending stack adjustments.
13148 Mon Feb 28 11:34:43 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
13150 * loop.c (reg_in_basic_block_p): Don't abort when falling through
13151 to the end of the function.
13153 2000-02-27 Mark Mitchell <mark@codesourcery.com>
13155 * emit-rtl.c (remove_unncessary_notes): Remove notes for empty
13157 * final.c (next_block_index): Remove.
13158 (max_block_depth): Likewise.
13159 (pending_blocks): Likewise.
13160 (init_final): Don't initialize them.
13161 (final_start_function): Don't set next_block_index. Set up
13163 (final_scan_insn): Use BLOCK_NUMBER, not next_block_index.
13164 * function.h (number_blocks): New function.
13165 * function.c (get_block_vector): New function.
13166 (identify_blocks): Use it.
13167 (reorder_blocks): Set NOTE_BLOCK.
13168 (number_blocks): New function.
13169 * tree.def (BLOCK): Add documentation for TREE_ASM_WRITTEN flag.
13170 * tree.h (BLOCK_NUMBER): New macro.
13171 (tree_block): Add block_num field.
13172 * dbxout.c (next_block_number): Remove.
13173 (dbxout_init): Don't set it.
13174 (dbxout_block): Only output blocks that have TREE_ASM_WRITTEN
13175 set. Use BLOCK_NUMBER, rather than next_block_num, to determine
13177 * toplev.c (rest_of_compilation): Always call
13178 find_loop_tree_blocks. Fix indentation.
13179 * dwarf2out.c (next_block_number): Remove.
13180 (gen_lexical_block_die): Use BLOCK_NUMBER, not next_block_number,
13181 to determine block numbers.
13182 (gen_inlined_subroutine_die): Likewise.
13183 (gen_block_die): Only output blocks that have TREE_ASM_WRITTEN set.
13184 (decls_for_scope): Don't increment next_block_number.
13185 * dwarfout.c (next_block_number): Remove.
13186 (output_lexical_block_die): Use BLOCK_NUMBER, not next_block_number,
13187 to determine block numbers.
13188 (output_inlined_subroutine_die): Likewise.
13189 (output_block): Only output blocks that have TREE_ASM_WRITTEN set.
13190 (output_decls_for_scope): Don't increment next_block_number.
13191 * sdbout.c (next_block_number): Remove.
13192 (sdbout_block): Use BLOCK_NUMBER.
13193 (sdbout_begin_block): Simplify.
13194 * xcoffout.c (next_block_number): Remove.
13195 (xcoffout_block): Use BLOCK_NUMBER, not next_block_number.
13196 (xcoffout_begin_block): Don't set next_block_number.
13197 (xcoffout_begin_function): Likewise. Use BLOCK_NUMBER, not
13200 Sun Feb 27 16:40:33 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13202 * builtins.c (c_strlen): Use size_diffop and return ssizetype value.
13203 (expand_builtin_strcpy): Pass correct type to size_binop.
13204 (expand_builtin_strcmp): Likewise.
13205 Clean up conditional structure.
13206 * c-decl.c (init_decl_processing): Don't call set_sizetype twice.
13207 (complete_array_type): Don't use size_binop for MAXINDEX.
13208 * c-typeck.c (c_sizeof): Use size_one_node and TYPE_SIZE_UNIT.
13209 (c_sizeof_nowarn, c_size_in_bytes): Likewise.
13210 (c_alignof): Use size_one_node.
13211 (build_unary_op): Pass arg of proper type to size_binop.
13212 (really_start_incremental_init, push_init_level): Use sizetype for
13213 constructor{,_bit,_unfilled}_index.
13214 (pop_init_label, output_init_element): Likewise.
13215 (output_pending_init_elements, process_init_element): Likewise.
13216 * calls.c (compute_argument_block_size): Field VAR is ssizetype.
13217 * expr.c (store_expr): Use size_int.
13218 (store_constructor): Use proper types for size_binop args.
13219 (get_inner_reference, expand_expr, case ARRAY_REF): Likewise.
13220 (expand_expr_unaligned): Likewise.
13221 (string_contant): Return object of sizetype.
13222 * expr.h (SUB_PARM_SIZE): Call size_diffop and pass proper types.
13223 (ARGS_SIZE_RTX): Call ARGS_SIZE_TREE.
13224 (ARGS_SIZE_TREE): Pass proper types to size_binop.
13225 * fold-const.c (int_const_binop): Refine when size_int is called.
13226 (fold_convert): Likewise.
13227 (size_int_wide): Rework to take KIND as arg, only take low order
13228 bits, handle new sizetype_tab datatype, and chain entries in
13230 (size_int_type_wide): New function.
13231 (size_binop): Validate types of arguments.
13232 (ssize_binop): Deleted.
13233 (size_diffop): New function.
13234 (extract_muldiv): Only fold division into multiplication for sizetypes.
13235 * function.c (assign_parms): Use size_diffop and make sure
13236 VAR field is of ssizetype; also pass proper type to size_binop.
13237 (locate_and_pad_parm, pad_to_arg_alignment): Likewise.
13238 (round_down): Deleted from here.
13239 * store-layout.c (sizetype_tab): Now an array.
13240 (sizetype_set, early_root_list): New variables.
13241 (variable_size): Use size_one_node.
13242 (round_up): Pass proper type to size_binop.
13243 (round_down): Moved to here and corrected as above.
13244 (layout_record): Pass proper arg types to size_binop.
13245 (layout_type): Likewise.
13246 If sizetype_set is zero, record the type just laid out.
13247 (make_unsigned_type): Don't call set_sizetype;
13248 (make_signed_type): Likewise; also, call fixup_signed_type.
13249 (initialize_sizetypes): New function.
13250 (set_sizetype): Make copy of types, set TYPE_IS_SIZETYPE, and
13251 set name of bitsizetype to "bit_size_type".
13252 Fix up type of sizes of all types made before call.
13253 * tm.texi (ROUND_TYPE_SIZE_UNIT): New macro.
13254 * tree.c (fix_sizetype): Deleted.
13255 (build_common_tree_nodes): Call initialize_sizetypes.
13256 (build_common_tree_nodes_2): Don't call fix_sizetype.
13257 * tree.h (TYPE_IS_SIZETYPE): New macro.
13258 (initialize_sizetype): New declaration.
13259 (enum size_type_kind): New type.
13260 (struct sizetype_tab): Deleted.
13261 (sizetype_tab): Now array; adjust sizetype macros.
13262 (size_diffop, size_int_type_wide): New functions.
13263 (size_int_wide): Change number of args and type; access macros changed.
13264 (ssize_int, sbitsize_int): New macros.
13265 * config/i960/i960.h (ROUND_TYPE_SIZE): Use size_int.
13266 (ROUND_TYPE_SIZE_UNIT): New macro.
13268 2000-02-27 Zack Weinberg <zack@wolery.cumb.org>
13270 * c-lex.c (putback_buffer): Make 'buffer' an unsigned char *.
13272 Sun Feb 27 07:44:17 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13274 * gcov-io.h (__fetch_long, __store_long, __read_long, __write_long):
13275 Mark as possibly unused.
13277 * cse.c (cse_insn): Delete dead code involving tablejump.
13278 Pass CODE_LABEL, not LABEL_REF to gen_jump and reset INSN_CODE.
13280 * Makefile.in (libcpp.a): Start by deleting it.
13282 2000-02-27 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
13284 * cpplib.h (enum file_change_code): Added rename_file.
13285 * cpplib.c (do_line): If a filename is given, set file_change to
13287 (output_line_command): If file_change is rename_file, always
13288 output a # directive with the file name.
13290 * cpplib.c (do_pragma): Accept #pragma without consecutive token.
13292 2000-02-26 Mark Mitchell <mark@codesourcery.com>
13294 * integrate.c (copy_decl_for_inlining): Preserve TREE_ADDRESSABLE
13295 when copying a PARM_DECL or RESULT_DECL.
13297 2000-02-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13299 * fix-header.c (recognized_function): Also fix prototypes for
13300 functions taking "void".
13302 2000-02-26 Geoff Keating <geoffk@cygnus.com>
13304 * reload1.c (do_output_reload): Check reg_reloaded_valid before
13305 looking at reg_reloaded_contents.
13307 2000-02-26 Zack Weinberg <zack@wolery.cumb.org>
13309 * Makefile.in (STMP_FIXINC): New toggle.
13310 (LIBGCC2_DEPS): Delete all references.
13311 (stmp-headers): Delete target. All references either deleted
13312 or changed to stmp-int-headers.
13313 (all.cross): Don't depend on stmp-headers or STMP_FIXPROTO.
13314 (LIBCPP_OBJS): Take out cppalloc.o.
13315 (cppalloc.o): Delete target.
13316 (stmp-int-hdrs): Depend on $(STMP_FIXINC).
13317 (gen-protos, fix-header): Link with libiberty.a.
13318 * build-make: Don't change FIXINCLUDES. Override STMP_FIXINC
13321 * configure.in: Remove refs to strerror.
13322 * acconfig.h: Take out NEED_DECLARATION_STRERROR.
13323 * system.h: Take out strerror stanza.
13325 * cpperror.c (my_strerror): Delete function.
13326 (cpp_error_from_errno, cpp_notice_from_errno): Use xstrerror.
13327 * cppmain.c (main): Call xmalloc_set_program_name first thing.
13328 * cppalloc.c: Delete file.
13329 * gen-protos.c: Don't provide xrealloc.
13331 * fixinc/fixincl.c, fixinc/fixlib.c, fixinc/procopen.c: Use
13332 xstrerror throughout.
13334 2000-02-26 Bruce Korb <bkorb@gnu.org>
13336 * fixinc/inclhack.def (undefine_null): the bypass pattern needs to
13337 match for DOS headers, too.
13338 * fixinc/inclhack.sh,fixincl.x: Regenerate.
13340 2000-02-26 Geoff Keating <geoffk@cygnus.com>
13342 * config/elfos.h (ASM_OUTPUT_LABELREF): Don't define. The default
13343 is right for most ELF targets.
13344 * config/ns32k/ns32k.h (ASM_OUTPUT_LABELREF): Don't define.
13345 Let the default file use %U properly.
13346 * config/sh/elf.h (ASM_OUTPUT_LABELREF): Don't define. Use the
13349 * config/fp-bit.c (pack_d): Properly handle rounding of denormal
13352 Sat Feb 26 09:39:16 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13354 * toplev.c (documented_lang_options): Correct spelling error.
13355 (decode_d_option, decode_f_option, main): Likewise.
13357 * toplev.c (print_time): Avoid SIGFPE when all_time is zero.
13359 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): Use .set at
13360 to tell assembler it is permitted to expand large constants.
13362 2000-02-25 Mumit Khan <khan@xraylith.wisc.edu>
13364 * protoize.c: (AUX_INFO_SUFFIX): New macro.
13365 (aux_info_suffix): Use.
13366 (SAVE_SUFFIX): New macro.
13367 (save_suffix): Use.
13368 (munge_compile_parms): Fix typo in NUL. DJGPP supports /dev/null.
13369 (gen_aux_info_file): Use aux_info_suffix instead of ".X".
13370 (edit_file): Handle 8.3 restriction for DOS/DJGPP filenames.
13372 * invoke.texi (Running Protoize): Update documentation.
13374 2000-02-25 Mark Elbrecht <snowball3@bigfoot.com>
13376 * i386/djgpp.h (CPP_PREDEFINES): Remove Unix defines.
13378 2000-02-25 John Wehle (john@feith.com)
13380 * rtlanal.c (find_last_value): Allow NULL_RTX for valid_to.
13382 2000-02-25 Anthony Green <green@cygnus.com>
13384 * toplev.c (rest_of_compilation): Rebuild jump labels if
13385 combine_instructions has created a new direct jump.
13386 * combine.c (try_combine): Add new_direct_jump_p argument. Set it
13388 (combine_instructions): Call try_combine with new argument.
13389 Return non-null value when new direct jump instruction is created.
13390 * rtl.h: combine_instructions returns an int.
13392 Fri Feb 25 19:49:08 2000 Jeffrey A Law (law@cygnus.com)
13394 * cse.c (cse_insn): Replace the PATTERN of the insn with an new
13395 jump when changing a computed jump into a jump to a known
13398 Fri Feb 25 19:22:44 2000 Graham Stott <grahams@rcp.co.uk>
13400 * resource.c (mark_referenced_resources): Changed use SET_DEST (...)
13401 to XEXP (..., 0) on RTL nodes which are not SET or CLOBBER.
13403 * i386.md (define_expand "clrstrsi"): Fix typo.
13405 Fri Feb 25 18:49:39 2000 "K. Richard Pixley" <rich@microunity.com>
13407 * rtl.texi: Fix typo.
13409 Fri Feb 25 20:02:35 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
13411 * sh.c (calc_live_regs): Multiply value assigned to *COUNT_PTR by
13412 UNITS_PER_WORD. Change caller initial_elimination_offset.
13413 (rounded_frame_size): Take into account that argument pushed has
13414 changed. Fix TARGET_ALIGN_DOUBLE problem.
13416 2000-02-25 Geoff Keating <geoffk@cygnus.com>
13418 * haifa-sched.c (schedule_block): Explain the real reason
13419 we delete REG_SAVE_NOTEs on the first insn of a block.
13420 Don't delete REG_SAVE_NOTES for NOTE_INSN_SETJMP.
13422 2000-02-24 Mark Mitchell <mark@codesourcery.com>
13424 * input.h (push_srcloc): New function.
13425 (pop_srcloc): Likewise.
13426 * toplev.c (push_srcloc): Define it.
13427 (pop_srcloc): Likewise.
13429 2000-02-24 Richard Henderson <rth@cygnus.com>
13431 * flow.c (life_analysis): When collecting reg info, clear
13434 Thu Feb 24 22:06:52 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
13436 Fix bug exposed by reload.c no longer rounding the frame
13437 size to BIGGEST_ALIGNMENT:
13438 * sh.c (rounded_frame_size): New function.
13439 (sh_expand_prologue, sh_expand_epilogue): Use it.
13440 (initial_elimination_offset): Likewise.
13442 Thu Feb 24 20:04:11 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
13444 Fix breakage from 6th Feb thread_prologue_and_epilogue_insns change:
13445 * sh-protos.h (sh_need_epilogue): Declare.
13446 * sh.c (sh_need_epilogue_known): New static variable.
13447 (sh_need_epilogue): New function.
13448 (function_epilogue): Clear need_epilogue_known.
13449 * sh.md (return): Split into expander / insn pattern.
13450 Make the expander conditional on ! sh_need_epilogue ().
13452 2000-02-24 Nathan Sidwell <nathan@codesourcery.com>
13454 * machmode.h (get_mode_alignment): Declare.
13455 (GET_MODE_ALIGNMENT): Call it.
13456 * stor-layout.c (get_mode_alignment): New function. Make
13457 sure alignment is always power of 2.
13459 2000-02-23 Zack Weinberg <zack@wolery.cumb.org>
13461 * i386.h: Remove useless definition of "I386" and misleading
13464 2000-02-23 Zack Weinberg <zack@wolery.cumb.org>
13466 * tree.h (TREE_SET_PERMANENT): New macro. Document conditions
13467 under which TREE_PERMANENT will be set.
13468 * tree.c (make_node, copy_node, make_tree_vec, tree_cons,
13469 build1): Use TREE_SET_PERMANENT.
13470 * print-tree.c (print_node): Don't report value of
13471 TREE_PERMANENT if ggc_p is true.
13473 * c-common.c (c_get_alias_set): Don't use TREE_PERMANENT to
13474 decide whether to give a type a new alias set.
13475 * objc/objc-act.c (build_objc_string_object): Never copy the string.
13476 * tree.c (make_node): Set DECL_IN_SYSTEM_HEADER irrespective
13477 of value of 'obstack'.
13480 2000-02-24 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
13482 * config/c4x/c4x.c (c4x_process_after_reload): Split all insns.
13484 2000-02-23 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
13486 * cpplib.h (enum cpp_token): Added CPP_WCHAR and CPP_WSTRING.
13487 * cpplib.c (cpp_get_token): Produce them.
13488 * cppexp.c (cpp_lex): Handle them.
13490 2000-02-23 Nick Clifton <nickc@cygnus.com>
13492 * config/arm/arm.c (arm_comp_type_attributes): Simply and
13493 comment tests on type attributes.
13495 Wed Feb 23 16:42:21 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
13497 * final.c (shorten_branches): Make value passed to LOOP_ALIGN
13498 conform to documentation.
13499 * sh.h (LOOP_ALIGN): If aligning loops, call sh_loop_align
13500 to check for special cases.
13501 * sh-protos.h (sh_loop_align): Declare.
13502 * sh.c (sh_loop_align): Define.
13504 2000-02-22 Andrew Haley <aph@cygnus.com>
13506 * config/mips/mips.h (GAS_ASM_SPEC): Pass -mgp32/-mgp64 to gas.
13507 (SIZE_TYPE): Is 32 bits when using -mgp32.
13508 (PTRDIFF_TYPE): Ditto.
13510 Wed Feb 23 07:26:27 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13512 * diagnostic.c (init_output_buffer): Handle case of null PREFIX.
13514 2000-02-23 Zack Weinberg <zack@wolery.cumb.org>
13516 * config/i386/i386.h: If IN_TARGET_LIBS is defined, make
13517 BIGGEST_FIELD_ALIGNMENT a constant.
13519 2000-02-21 Jason Merrill <jason@casey.cygnus.com>
13521 * dwarf2out.c (output_line_info): Put the marker for the end of
13522 the line number info at the actual end.
13523 (gen_struct_or_union_type_die): Use decl_function_context
13524 to check for local classes.
13525 * dwarfout.c (output_type): Likewise.
13527 Tue Feb 22 01:38:57 2000 Jeffrey A Law (law@cygnus.com)
13529 * pa.h (FUNCTION_ARG_PASS_BY_REFERENCE): Handle pass-by-reference
13530 for arguments with a mode, but no type.
13531 (FUNCTION_ARG_CALLEE_COPIES): Similarly.
13532 * t-pa (LIB2FUNCS_EXTRA): Add quadlib.asm.
13533 * pa/long_double.h: New file.
13534 * configure.in (hpux10, hpux11 configurations): hpux10 and hpux11
13535 both have 128bit wide long doubles.
13536 * configure: Rebuilt.
13538 2000-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13540 * defaults.h (ASM_OUTPUT_ASCII): Constify a char*.
13542 * flow.c (get_common_dest, chain_reorder_blocks, make_reorder_chain,
13543 fixup_reorder_chain, skip_insns_between_block): Add static prototypes.
13544 (life_analysis): Wrap variable `i' with macro ELIMINABLE_REGS.
13546 * haifa-sched.c (rank_for_schedule): Don't cast away const-ness.
13548 * integrate.c (compare_blocks, find_block): Likewise.
13550 * rtl.c (fatal_with_file_and_line): Add ATTRIBUTE_PRINTF_2.
13552 * rtl.h (set_file_and_line_for_stmt): Constify a char*.
13554 * stmt.c (stmt_status, set_file_and_line_for_stmt,
13555 expand_asm_operands): Likewise.
13557 Mon Feb 21 17:06:27 2000 Jason Eckhardt <jle@cygnus.com>
13559 * predict.c (estimate_probability): Added the pointer heuristic to
13560 the collection of static branch predictors.
13562 2000-02-21 Catherine Moore <clm@cygnus.com>
13564 * config/mips/mips.h (ASM_SPEC): Add -mfix700.
13565 * invoke.texi (-mfix7000): Document.
13567 2000-02-21 Gabriel Dos Reis <gdr@codesourcery.com>
13569 * diagnostic.c (init_output_buffer): Make it possible to output at
13570 least 32 characters if we're given a too long prefix.
13572 2000-02-20 Mark Mitchell <mark@codesourcery.com>
13574 * varasm.c (initializer_constant_valid_p): Call
13575 lang_expand_constant to simplify the constant.
13577 2000-02-20 Bruce Korb <bkorb@gnu.org>
13579 * fixinc/inclhack.def(stdio_va_list):
13580 typedef needs to be disabled.
13581 * fixinc/inclhack.sh: regen
13582 * fixinc/fixincl.x: regen
13584 2000-02-20 Geoff Keating <geoffk@cygnus.com>
13586 * print-rtl.c (print_rtx): Don't print addresses when
13587 flag_dump_unnumbered.
13589 2000-02-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13591 * sparc.c (sparc_output_scratch_registers): Mark parameter with
13593 (sparc_va_arg, sparc_flat_output_function_prologue,
13594 sparc_flat_output_function_epilogue): Cast value to unsigned in
13596 (sparc_emit_float_lib_cmp): Remove unused variable `cmp'.
13598 * sparc.md: Add default case in switch.
13600 2000-02-19 Richard Henderson <rth@cygnus.com>
13602 * c-typeck.c (add_pending_init): Don't abort for multiple
13603 fields at the same offset.
13604 (pending_init_member): Test the correct member.
13606 2000-02-19 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
13608 * except.c (start_dynamic_handler) : Use TYPE_MODE (integer_type_node)
13610 (start_catch_handler) : Same.
13612 2000-02-19 Brad Lucier (lucier@math.purdue.edu)
13614 * Makefile.in: Have flow.o depend on $(EXPR_H)
13616 Sat Feb 19 18:43:13 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13618 * c-common.c (decl_attributes): Set DECL_SIZE_UNIT.
13619 * c-decl.c (duplicate_decls, finish_enum): Likewise.
13620 (finish_decl): Remove -Wlarger-than code from here.
13621 * flags.h (id_clash_len): Now int.
13622 (larger_than_size): Now HOST_WIDE_INT.
13623 * fold-const.c (size_int_wide): No more HIGH parm; NUMBER is signed.
13624 Clean up checking to see if in table.
13625 (make_bit_field_ref): Remove extra parm to bitsize_int.
13626 * ggc-common.c (ggc_mark_tree_children): Mark DECL_SIZE_UNIT.
13627 * print-tree.c (print_node): Print DECL_SIZE_UNIT and TYPE_SIZE_UNIT.
13628 * stmt.c (expand_decl): Use DECL_SIZE_UNIT for stack checking size
13629 and for computing size of decl.
13630 * stor-layout.c (layout_decl): Set DECL_SIZE_UNIT.
13631 Move -Wlarger-than code to here.
13632 (layout_record): Remove extra arg to bitsize_int.
13633 Set TYPE_BINFO_SIZE_UNIT.
13634 (layout_union): Remove extra arg to bitsize_int.
13635 Use proper type for size of QUAL_UNION.
13636 (layout_type): Remove extra arg to bitsize_int.
13637 * toplev.c (id_clash_len): Now int.
13638 (larger_than_size): Now HOST_WIDE_INT.
13639 (decode_W_option): Clean up id-clash and larger-than- cases.
13640 * tree.c (get_identifier, maybe_get_identifier): Remove unneeded casts.
13641 (expr_align, case FUNCTION_DECL): DECL_ALIGN is not defined.
13642 * tree.h (BINFO_SIZE_UNIT, TYPE_BINFO_SIZE_UNIT, DECL_SIZE_UNIT): New.
13643 (struct tree_decl): New field size_unit.
13644 (size_int_wide): No HIGH operand; NUMBER is now signed.
13645 (size_int_2): Deleted.
13646 (size_int, bitsize_int): Don't use it and rework args.
13647 * varasm.c (assemble_variable, output_constructor): Use DECL_SIZE_UNIT.
13649 Fri Feb 18 20:01:58 2000 Jeffrey A Law (law@cygnus.com)
13651 * pa/quadlib.asm (_U_QFgt, _U_Qfge): Fix flags for _U_Qfcmp call.
13653 2000-02-18 Geoff Keating <geoffk@cygnus.com>
13655 * invoke.texi (Warning Options): Add an explanation of why
13656 you might want the -Wfloat-equal flag.
13658 Fri Feb 18 20:08:57 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13660 * bitmap.c (bitmap_operation): Avoid using -1 for index since unsigned.
13661 * cppinit.c (new_pending_define): Add cast to avoid warning.
13662 * expmed.c (extract_bit_field): Likewise.
13663 * flow.c (enum reorder_skip_type): New type.
13664 (skip_insns_between_blcok): New it.
13665 Rework to avoid warning about possibly undefined variable.
13666 * function.c (assign_parms): Make thisparm_boundary unsigned.
13667 * genrecog.c (write_switch): Cast XWINT result to int.
13668 * lcm.c: Many static fcns and vars now #ifdef OPTIMIZE_MODE_SWITCHING.
13669 * mips-tfile.c (init_file): Make two versions of FDR intializer:
13670 one for MIPS and one for Alpha.
13671 (get_tag, copy_object): Add casts to avoid warnings.
13672 * optabs.c (init_one_libfunc): Cast NAME to (char *).
13673 * reload.c (find_reloads): Make TYPE enum reload_type.
13674 * sbitmap.c (dump_sbitmap): J is unsigned; don't use "1L".
13675 * unroll.c (unroll_loop): Initialize UNROLL_NUMBER.
13676 * varasm.c (compare_constant_1): Add cast to avoid warning.
13677 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Cast FUNC
13679 (alpha_expand_unaligned_load, alpha_expand_unaligned_store):
13680 Cast switch operand of size to int.
13681 (alpha_expand_epilogue): Always initialize fp_offset and sa_reg.
13682 * config/alpha/alpha.h (INITIAL_ELIMINATION_OFFSET): Add abort
13685 2000-02-18 Nick Clifton <nickc@cygnus.com>
13687 * config/arm/elf.h (ASM_OUTPUT_ALIGN): Do not generate
13688 anything for an alignment of zero.
13690 * config/arm/thumb.h (ASM_OUTPUT_ALIGN): Do not generate
13691 anything for an alignment of zero.
13693 2000-02-18 Martin von Loewis <loewis@informatik.hu-berlin.de>
13695 * gcc.texi (Bug Reporting): Refer to bugs.html.
13696 (Bug Lists): Likewise.
13697 * system.h (GCCBUGURL): New preprocessor define.
13698 * rtl.c (fancy_abort): Use it.
13699 * gcc.c (main): Likewise.
13701 2000-02-18 Richard Henderson <rth@cygnus.com>
13703 * flow.c (INSN_VOLATILE, SET_INSN_VOLATILE, uid_volatile): Remove.
13704 (life_analysis_1): Subsume into ...
13705 (life_analysis): ... here. Force PROP_REG_INFO off after reload.
13706 Use update_life_info for the relaxation.
13707 (update_life_info): Update REG_BASIC_BLOCK for registers live on
13708 entry and regs_live_at_setjmp.
13709 (set_noop_p): Simplify.
13710 (notice_stack_pointer_modification_1): Renamed from s/_1//.
13711 (record_volatile_insns): Split into ...
13712 (delete_noop_moves): ... here,
13713 (notice_stack_pointer_modification): ... here,
13714 (insn_dead_p): ... and here.
13715 (propagate_block): Don't query INSN_VOLATILE.
13716 (mark_used_regs): Mind !PROP_REG_INFO.
13717 * toplev.c (rest_of_compilation): Call mark_constant_function here,
13718 not in life_analysis.
13720 Fri Feb 18 01:29:22 EST 2000 John Wehle (john@feith.com)
13722 * loop.c (canonicalize_condition): New function,
13723 broken out of get_condition.
13724 (get_condition): Use it.
13725 * expr.h (canonicalize_condition): Prototype it.
13727 * tree.h (tree_int_cst_msb): Declare.
13728 * tree.c (tree_int_cst_msb): New function.
13730 2000-02-17 Mark Mitchell <mark@codesourcery.com>
13732 * stmt.c (set_file_and_line_for_stmt): Don't crash if cfun->stmt
13735 * invoke.texi (-fmessage-length=n): Document.
13737 2000-02-17 Jason Merrill <jason@casey.cygnus.com>
13739 * bitmap.c (bitmap_operation): Don't leak bitmap elements.
13741 2000-02-17 Mark Mitchell <mark@codesourcery.com>
13743 * function.c (thread_prologue_and_epilogue_insns): Put a line note
13744 after the prologue.
13746 2000-02-17 Nick Clifton <nickc@cygnus.com>
13748 * config/arm/thumb.c: Replace includes of system headers with
13749 #include "system.h".
13751 2000-02-16 Richard Henderson <rth@cygnus.com>
13753 * configure.in (alpha-linux*, alpha-netbsd) [extra_parts]:
13754 Add crtbeginS.o and crtendS.o.
13755 * alpha/elf.h (STARTFILE_SPEC): Use crtbeginS.o.
13756 (ENDFILE_SPEC): Use crtendS.o.
13757 * alpha/t-crtbe (crtbeginS.o, crtendS.o): New targets.
13759 * alpha/crtbegin.asm (__do_frame_takedown): Merge into ...
13760 (__do_global_dtors_aux): ... here. Call __cxa_finalize if
13761 shared and present.
13762 (__dso_handle): New variable.
13763 * alpha/crtend.asm (__do_global_ctors_aux): Remove runtime
13764 bias to __CTOR_END__.
13766 2000-02-16 Richard Henderson <rth@cygnus.com>
13768 * Makefile.in (s-crtS, crtbeginS, crtendS): Prefix usage with $(T).
13770 Wed Feb 16 21:40:04 2000 Hans-Peter Nilsson <hp@bitrange.com>
13772 * longlong.h (__clz_tab): Declare as static to match definition.
13774 2000-02-16 Mark Elbrecht <snowball3@bigfoot.com>
13776 * i386/xm-djgpp.h (LIBSTDCXX): Delete. Moved to config/i386/djgpp.h.
13777 (XREF_FILE_NAME): Define.
13779 * i386/djgpp.h (DATA_SECTION_ASM_OP): Define.
13780 (EH_FRAME_SECTION_ASM_OP): Define.
13781 (IDENT_ASM_OP): Define.
13782 (TEXT_SECTION_ASM_OP): Define.
13783 (CPP_SPEC): Define.
13784 (CTORS_SECTION_ASM_OP): Define.
13785 (CTOR_SECTION_FUNCTION): Use it.
13786 (DTORS_SECTION_ASM_OP): Define.
13787 (DTOR_SECTION_FUNCTION): Use it.
13789 2000-02-16 Zack Weinberg <zack@wolery.cumb.org>
13791 * reg-stack.c (emit_swap_insn): Do not put a new insn before a
13794 * flow.c (dump_regset, debug_regset, dump_bb, debug_bb,
13795 debug_bb_n): New functions.
13796 (dump_flow_info, print_rtl_with_bb): Use dump_regset.
13797 * basic-block.h: Prototype new functions.
13799 Wed Feb 16 21:07:53 2000 Denis Chertykov <denisc@overta.ru>
13801 * configure.in: Add support for avr target.
13802 * configure: Rebuilt.
13804 * invoke.texi: Add AVR invocation docs.
13805 * install.texi: Add information about AVR.
13806 * md.texi: Add AVR constraint letters description.
13807 * extend.texi: Add description for AVR specific attributes.
13809 2000-02-16 Jason Merrill <jason@casey.cygnus.com>
13811 * fixinc/fixinc.svr4: Wrap byteorder.h with extern "C".
13813 2000-02-16 Nick Clifton <nickc@cygnus.com>
13815 * emit-rtl.c (emit_insn): Move RTL check into make_insn_raw.
13816 (make_insn_raw): Move RTL check here.
13818 2000-02-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13820 * version.c: Include gansidecl.h and version.h.
13822 * version.h: Wrap entire file in macro __GCC_VERSION_H__.
13824 * configure.in (gcc_version): When setting, narrow search to
13825 lines containing `version_string'.
13827 * Makefile.in (mainversion): Likewise.
13828 (GCC_H): New variable.
13829 (gcc.h): Delete target.
13830 (gcc.o, gccspec.o, cppspec.o): Depend on $(GCC_H), not gcc.h.
13831 (version.o): Depend on version.h.
13832 (dbxout.o): Don't depend on gcc.h.
13834 Wed Feb 16 15:04:49 2000 Hans-Peter Nilsson <hp@bitrange.com>
13835 Michael Meissner <meissner@cygnus.com>
13837 * md.texi (Simple Constraints): Add item about whitespace.
13838 * genoutput.c (strip_whitespace): New.
13839 (scan_operands) [MATCH_OPERAND, MATCH_SCRATCH]: Call
13840 strip_whitespace for constraints.
13841 Test pointer using NULL, not 0.
13843 2000-02-16 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
13845 * cpplib.c (do_line): Pedwarn for #line > 32767.
13847 * c-lex.c (readescape): Warn about '\x', but do not reject it.
13849 2000-02-15 Jonathan Larmour <jlarmour@redhat.co.uk>
13851 * gcc.c (default_compilers): Add new __GNUC_PATCHLEVEL__ define
13852 to default cpp spec.
13853 (do_spec_1): Add support for %v3 spec used by __GNUC_PATCHLEVEL__.
13854 * cpp.texi: Document __GNUC_PATCHLEVEL__.
13857 * objc/lang-specs.h: Add new __GNUC_PATCHLEVEL__ define to
13860 2000-02-15 Denis Chertykov <denisc@overta.ru>
13862 * configure.in: Add support for avr target.
13864 Wed Feb 16 03:21:43 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
13866 * sh.h (OVERRIDE_OPTIONS): Don't set sh_addr_diff_vec_mode.
13867 (sh_addr_diff_vec_mode): Don't declare.
13868 * sh.c (sh_addr_diff_vec_mode): Delete.
13870 Wed Feb 16 01:27:52 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
13872 * sh.md (mulsi3_highpart): Add REG_EQUAL note to last insn.
13874 Wed Feb 16 00:58:06 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
13876 * sh.md (udivsi3_i1, divsi3_i1, umulhisi3_i, mulhisi3_i): Name.
13877 (smulsi3_highpart_i): Name.
13878 (udivsi3): Wrap emitted insns in REG_LIBCALL / REG_RETVAL notes.
13879 (divsi3, mulhisi3, umulhisi3, mulsidi3, umulsidi3): Likewise.
13880 (smulsi3_highpart, umulsi3_highpart): Likewise.
13882 (mulsidi3_i, umulsidi3_i): Make rtl describe operation
13883 correctly independent of endianness.
13884 (mulsidi3, umulsidi3): Now define_insn. Hide details that
13885 confuse the optimizers.
13886 (mulsidi3+1, umulsidi3+1): New define_split.
13888 Tue Feb 15 23:22:26 2000 Andrew Haley <aph@cygnus.com>
13890 * config/sh/sh.md: Guard insn splits against illegal registers.
13891 * config/sh/sh.h: Correct comment about macros.
13893 Tue Feb 15 22:30:36 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
13894 Andrew MacLeod <amacleod@cygnus.com>
13896 * Makefile.in (lcm.o): Depend on insn-attr.h.
13897 * basic-block.h (optimize_mode_switching): Declare.
13898 * lcm.c (tm_p.h, insn-attr.h): #include.
13899 (seginfo, bb_info): New structs.
13900 (antic, transp, comp, delete, insert) : New file-scope static variables.
13901 (new_seginfo, add_seginfo, make_preds_opaque, reg_dies): New functions.
13902 (reg_becomes_live, optimize_mode_switching): Likewise.
13903 * tm.texi: Add description of mode switching macros.
13904 * toplev.c (rest_of_compilation): Call optimize_mode_switching.
13906 * sh-protos.h (remove_dead_before_cse): Remove prototype.
13907 (fldi_ok, fpscr_set_from_mem): New prototypes.
13908 * sh.h (OPTIMIZATION_OPTION): Remove sh_flag_remove_dead_before_cse set.
13909 (CONST_DOUBLE_OK_FOR_LETTER_P, SECONDARY_INPUT_RELOAD_CLASS):
13910 Disable fldi for (TARGET_SH4 && ! TARGET_FMOVD).
13911 (sh_flag_remove_dead_before_cse): Remove declaration.
13912 (NUM_MODES_FOR_MODE_SWITCHING, OPTIMIZE_MODE_SWITCHING): New macros.
13913 (MODE_USES_IN_EXIT_BLOCK, MODE_NEEDED, MODE_AT_ENTRY): Likewise.
13914 (MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
13915 * sh.c (broken_move): Disable fldi for (TARGET_SH4 && ! TARGET_FMOVD).
13916 (barrier_align): Allow for JUMP_INSNS containing a parallel.
13917 (machine_dependent_reorg): Remove sh_flag_remove_dead_before_cse set.
13918 (fldi_ok): New function.
13919 (get_fpscr_rtx): Add fpscr_rtx as GC root.
13920 (emit_sf_insn): Only generate fpu switches when optimize < 1.
13921 (emit_df_insn): Likewise.
13922 (expand_fp_branch, emit_fpscr_use, remove_dead_before_cse): Delete.
13923 (sh_flag_remove_dead_before_cse): Delete.
13924 (get_free_reg, fpscr_set_from_mem): New functions.
13925 * sh.md (movdf, movsf): Remove no_new_pseudos code.
13926 (return): Remove emit_fpscr_use / remove_dead_before_cse calls.
13928 2000-02-15 Loren Rittle <ljrittle@acm.org>
13930 * ginclude/stddef.h: Correct usage of _BSD_RUNE_T_ for FreeBSD.
13932 2000-02-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13934 * Makefile.in (TREE_H, collect2.o, gcc.h, mips-tfile.o, cccp.o,
13935 cpphash.o, cppinit.o, protoize.o, unprotoize.o): Depend on version.h.
13937 * cccp.c: Include version.h and/or don't declare `version_string'.
13938 * collect2.c: Likewise.
13939 * alpha.c: Likewise.
13940 * arm/aof.h: Likewise.
13941 * arm/coff.h: Likewise.
13942 * arm/elf.h: Likewise.
13943 * arm/pe.h: Likewise.
13944 * arm/tcoff.h: Likewise.
13945 * arm/telf.h: Likewise.
13946 * arm/tpe.h: Likewise.
13947 * arm/vxarm.h: Likewise.
13948 * convex/convex.c: Likewise.
13949 * i386/dgux.c: Likewise.
13950 * i386/sun386.h: Likewise.
13951 * m88k/m88k.c: Likewise.
13952 * mcore/mcore-pe.h: Likewise.
13953 * mips/mips.h: Likewise.
13954 * romp/romp.h: Likewise.
13955 * sh/sh.c: Likewise.
13956 * cpphash.c: Likewise.
13957 * cppinit.c: Likewise.
13958 * dwarf2out.c: Likewise.
13959 * dwarfout.c: Likewise.
13962 * mips-tfile.c: Likewise.
13963 * protoize.c: Likewise.
13964 * toplev.c: Likewise.
13965 * tree.h: Likewise.
13967 * version.c (version_string): Constify a char*.
13969 * version.h: New file.
13971 2000-02-14 Nick Clifton <nickc@cygnus.com>
13973 * configure.in: Add mcore-elf and mcore-pe targets.
13974 * configure: Regenerate.
13976 * NEWS: Add note that MCore port has been contributed.
13978 * invoke.texi: Document command line switches for MCore port.
13979 * install.texi: Add MCore to list of supported targets.
13981 2000-02-14 Geoff Keating <geoffk@cygnus.com>
13983 * collect2.c (main) [COLLECT_EXPORT_LIST]: If we have frames,
13984 then we will need to import the frame handling functions.
13985 (scan_prog_file) [COLLECT_EXPORT_LIST]: We will also need
13986 to import the frames themselves.
13988 Mon Feb 14 13:31:01 2000 Stan Cox <scox@cygnus.com>
13989 Jason Eckhardt <jle@cygnus.com>
13991 * basic_block.h: Added prototype for reorder_basic_blocks.
13992 * toplev.c: Changes to add -freorder-blocks and graph dump after
13993 block reordering is done.
13994 * flow.c (reorder_block_def): New structure for use during block
13996 (REORDER_BLOCK_*): New macros to access members of above structure.
13997 (skip_insns_between_block, get_common_dest, chain_reorder_blocks,
13998 make_reorder_chain, fixup_reorder_chain, reorder_basic_blocks): New
13999 functions for block reordering.
14001 Mon Feb 14 11:24:44 2000 Hans-Peter Nilsson <hp@bitrange.com>
14003 * gcc.texi (Passes): Fix typo.
14004 * md.texi (Standard Names): Ditto.
14005 * tm.texi (Storage Layout): Ditto.
14007 2000-02-13 Zack Weinberg <zack@wolery.cumb.org>
14009 * cpplib.c (do_define): Only free the old definition if it
14012 2000-02-13 Neil Booth <NeilB@earthling.net>
14014 * cppfiles.c (read_and_prescan): When emitting deferred
14015 newlines, test speccase[] again instead of checking each
14016 possible whitespace character in turn. When we encounter \r,
14017 look behind for \n first, then ahead.
14019 2000-02-13 Zack Weinberg <zack@wolery.cumb.org>
14021 * cse.c (cse_altered): New internal flag.
14022 (cse_insn): Set it if we changed an insn.
14023 (cse_main): Clear cse_altered before each basic block.
14024 Only garbage collect if cse_altered is true afterward.
14026 Sun Feb 13 14:12:28 2000 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
14028 * sparc/sol2.h (LIB_SPEC): Link -ldl if profiling.
14030 Sun Feb 13 13:21:55 2000 Jeffrey A Law (law@cygnus.com)
14032 * combine.c (simplify_comparison): Fix typo.
14034 Sun Feb 13 12:57:52 2000 Neil Booth <NeilB@earthling.net>
14036 * prefix.c (concat, lookup_key): Use xmalloc and xrealloc
14039 2000-02-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14041 * flow.c (flow_loop_tree_node_add): Use better algorithm by passing
14042 previously inserted node instead of root node. Caller changed.
14044 2000-02-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14046 * basic-block.h (FLOW_LOOP_FIRST_BLOCK, FLOW_LOOP_LAST_BLOCK): Delete.
14048 2000-02-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14050 * crtstuff.c (__do_global_ctors_aux, __reg_frame_ctor,
14051 __dereg_frame_dtor): Add prototype argument.
14053 * gthr-dce.h (__gthread_active_p, __gthread_once): Likewise.
14055 * gthr-posix.h (__gthread_active_p, __gthread_once): Likewise.
14057 * gthr-solaris.h (__gthread_active_p, __gthread_once): Likewise.
14059 * gthr-vxworks.h (__gthread_once): Likewise.
14061 * gthr-win32.h (__gthread_active_p, __gthread_once): Likewise.
14063 Sat Feb 12 01:44:26 MET 2000 Jan Hubicka <jh@suse.cz>
14065 * i386.c (ix86_emit_restore_regs_using_mov): Break out from ...
14066 (ix86_expand_epilogue): ... here. Use mov instead of add to restore
14067 stack pointer in functions w/o saved registers, output LEAVE more often
14068 on TARGET_USE_LEAVE machines.
14070 2000-02-07 Dmitri Makarov <dim@wrs.com> & Bernd Schmidt <bernds@redhat.com>
14072 * config/arm/arm.c (arm_init_cumulative_args); New function:
14073 Initlaise the CUMULATIE_ARGS strcuture for a function
14075 (arm_function_arg): New function: Determine where to place a
14076 function's argument. Also handles deciding the function's
14078 (current_file_function_operand): New function: Return true if
14079 the symbol is a function which has already been compiled.
14080 (arm_is_long_call_p): New function: Return true if the
14081 indicated function should be called via a long call.
14082 (arm_valid_type_attribute_p): New function: Return true if the
14083 attribute is a valid, arm specific, attribute.
14084 (arm_comp_type_attribute): New function: Return true if the
14085 two types have compatable, arm specific, attributes.
14087 * config/arm/arm.h (CUMULATIVE_ARGS): Redefine to be a
14089 (FUNCTION_ARG): Redefine to call arm_function_arg.
14090 (FUNCTION_ARG_PARTIAL_NREGS): Redefine to use correct
14092 (INIT_CUMULATIVE_ARGS): Redefine to call
14093 arm_init_cumulative_args.
14094 (FUNCTION_ARG_ADVANCE): Redefine to use correct structure
14096 (SETUP_INCOMING_VARARGS): Redefine to use correct structure
14098 (ARM_MARK_NEARBY_FUNCTION): New macro: Mark already compiled
14100 (ENCODE_SECTION): Add call to ARM_MARK_NEARBY_FUNCTION.
14101 (VALID_MACHINE_TYPE_ATTRIBUTE): Define.
14102 (COMP_TYPE_ATTRIBUTES): Define.
14104 * config/arm/arm.md (call): Call arm_is_long_call_p to decide
14105 if a long call is needed.
14106 (call_value): Call arm_is_long_call_p to decide if a long call
14108 (call_symbol): Call arm_is_long_call_p to decide if a long call
14111 * config/arm/arm-protos.h: Add prototype for arm_is_long_call_p.
14113 2000-02-11 Denis Chertykov <denisc@overta.ru>
14115 * README.AVR: New file with information about the avr ports.
14116 * config/avr: New directory with avr port files.
14118 2000-02-11 Andreas Jaeger <aj@suse.de>
14120 * fixinc/Makefile.in (FIXINC_DEFS): Remove unneeded @fixinc_defs@.
14122 2000-02-11 Zack Weinberg <zack@wolery.cumb.org>
14124 * cpphash.c: Fix formatting, update commentary.
14125 (dump_definition): Take three separate arguments instead of a
14126 MACRODEF structure argument.
14127 * cpphash.h: Update prototype of dump_definition.
14128 * cppinit.c (cpp_finish): Update call of dump_definition.
14130 * cpplib.c (do_define): Always create new hash entry with
14131 T_MACRO type. Remove redundant check for redefinition of
14132 poisoned identifier. Update call of dump_definition.
14133 (do_undef): Don't call check_macro_name. Rename sym_length to
14135 (do_error, do_warning): Don't use copy_rest_of_line or
14137 (do_warning): Don't use pedwarn for the actual warning,
14138 only the notice about its not being in the standard. (Fixes
14139 bug with #warning in system headers.)
14140 (do_ident): Stricter argument checking - accept only a single
14141 string after #ident. Also, macro-expand the line.
14142 (do_xifdef): Use cpp_defined. De-obfuscate.
14144 (do_pragma): Split out specific pragma handling to separate
14145 functions. Use get_directive_token. Update commentary. Do
14146 not pass on #pragma once or #pragma poison to the front end.
14147 (do_pragma_once, do_pragma_implementation, do_pragma_poison,
14148 do_pragma_default): New.
14150 Feb 11 12:30:53 2000 Jeffrey A Law (law@cygnus.com)
14152 * jump.c (jump_optimize_1): The first operand in a relational
14153 can be a CONST_INT.
14154 * optabs.c (emit_conditional_move): Handle relationals which
14155 have a known true/false result.
14157 2000-02-11 Geoff Keating <geoffk@cygnus.com>
14159 * function.c (thread_prologue_and_epilogue_insns): Don't insert
14160 a RETURN insn into a block which already ends with a jump.
14162 2000-02-11 Geoff Keating <geoffk@cygnus.com>
14164 * haifa-sched.c (BUF_LEN): Increase a lot.
14166 2000-02-11 Nick Clifton <nickc@cygnus.com>
14168 * configure.in: Add tm_p_file specification for thumb targets.
14169 * configure: Regenerate.
14171 * config/arm/thumb-protos.h: New file: Prototypes for exported
14172 functions defined in thumb.c.
14174 2000-02-11 Robert Lipe <robertl@sco.com>
14176 * Makefile.in (bootstrap-lean): Remove additional files.
14177 (bootstrap2-lean): Likewise.
14178 (VOL_FILES): List of files for above.
14180 2000-02-11 Nathan Sidwell <nathan@acm.org>
14182 * cpphash.c (special_symbol): Remove spurious argument to
14185 2000-02-11 Joel Sherrill (joel@OARcorp.com>
14187 * configure.in: (i*86-*-rtems*): Swapped elf and coff
14189 * configure: Rebuilt.
14191 2000-02-11 Rodney Brown <RodneyBrown@pmsc.com>
14193 * pa-protos.h: Wrap function_arg_padding in TREE_CODE #ifdef.
14195 Fri Feb 11 02:59:05 2000 Jeffrey A Law (law@cygnus.com)
14197 * pa.c, pa.h: Remove trigraph sequences within comments.
14199 Fri Feb 11 02:51:56 2000 Pavel Roskin <pavel_roskin@geocities.com>
14201 * invoke.texi (PPC Options): -mno-new-mnenomics -> -mold-mnemonics.
14203 Fri Feb 11 02:48:30 2000 Brad Lucier (lucier@math.purdue.edu)
14205 * sbitmap.h: Make SBITMAP_ELT_BITS unsigned.
14207 2000-02-11 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14209 * config/c4x/c4x.c (fp_zero_operand): Check for CONST_DOUBLE.
14211 2000-02-11 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14213 * config/c4x/c4x.h (ASM_GLOBALIZE_LABEL): Use c4x_global_label.
14214 (ASM_OUTPUT_EXTERNAL): Use c4x_external_ref.
14215 (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
14216 (ASM_FILE_END): Use c4x_file_end.
14217 * config/c4x/c4x.c (c4x_global_label): New function.
14218 (c4x_external_ref, c4x_file_end): Likewise.
14220 * config/c4x/c4x-protos.h (c4x_global_label): Add prototype.
14221 (c4x_external_ref, c4x_end_file): Likewise.
14223 2000-02-10 Zack Weinberg <zack@wolery.cumb.org>
14225 * cppexp.c: Don't include cpphash.h.
14226 (parse_charconst, cpp_lex): Use cpp_defined.
14227 (cpp_lex): Use get_directive_token throughout. Remove
14228 unnecessary cases from switch. Move assertion-handling code
14229 down to OTHER case.
14230 (cpp_parse_expr): If we see '+' or '-', check the context to
14231 determine if they are unary or binary operators. Streamline
14232 the jumps a bit. Do not call skip_rest_of_line.
14234 * cpplib.c: Make skip_rest_of_line and cpp_skip_hspace
14235 static. Export get_directive_token. Update commentary.
14236 (cpp_defined): New function.
14237 (do_define): Remove reference to T_PCSTRING. Call
14238 free_definition to release memory for old definition, when
14239 redefining a macro.
14240 (eval_if_expression): Set only_seen_white to 0 before calling
14241 cpp_parse_expr. Call skip_rest_of_line after it returns.
14242 (cpp_read_check_assertion): Don't preserve a pointer into the
14243 token buffer across a call to cpp_get_token.
14245 * Makefile.in (cppexp.o): Don't depend on cpphash.h.
14246 * cppfiles.c (redundant_include_p): Use cpp_defined.
14247 * cpphash.c (free_definition): New function.
14248 (delete_macro): Use it. Update commentary.
14249 * cpphash.h: Typedef HASHNODE here. Prototype cpp_lookup and
14251 * cpplib.h: Don't typedef HASHNODE here. Delete T_PCSTRING
14252 from enum node_type. Prototype cpp_defined and get_directive_token.
14253 Don't prototype cpp_lookup, skip_rest_of_line, or cpp_skip_hspace.
14255 * fix-header.c (check_macro_names): Use cpp_defined.
14256 (read_scan_file): Set inhibit_warnings and inhibit_errors in
14257 the options structure.
14259 2000-02-10 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
14261 * c-pragma.c (maximum_field_alignment): Remove duplicate declaration.
14263 2000-02-10 Jason Merrill <jason@casey.cygnus.com>
14265 * dwarf2out.c (add_abstract_origin_attribute): Check TREE_CODE (origin)
14266 rather than die->die_tag.
14268 Thu Feb 10 16:26:49 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14270 * combine.c (make_extraction, force_to_mode): Avoid warning on
14271 mixed-signedness conditionals.
14272 (make_field_assignment, nonzero_bits): Likewise.
14273 * expmed.c (store_fixed_bit_field): ALIGN arg now unsigned.
14274 (store_split_bit_field, extract_split_bit_field): Likewise.
14275 (extract_fixed_bit_field, store_bit_field,
14276 * expr.c: Change alignment to be unsigned everywhere.
14277 (move_by_pieces, store_constructor_field, store_constructor):
14278 Alignment parm is unsigned.
14279 (emit_block_move, emit_group_load, emit_group_store): Likewise.
14280 (clear_storage, emit_push_insn, compare_from_rtx): Likewise.
14281 (do_compare_rtx_and_jump): Likewise.
14282 (move_by_pieces_ninsns, clear_by_pieces): Likewise.
14283 Compare align with GET_MODE_ALIGNMENT.
14284 (expand_expr_unaligned): Pointer to alignment is pointer to unsigned.
14285 (get_inner_reference): Likewise.
14286 (copy_blkmode_from_reg, emit_push_insn): Remove unneeded casts.
14287 (expand_assignment): Local vars for alignment now unsigned.
14288 (store_constructor, store_field, expand_expr, do_jump): Likewise.
14289 (do_compare_and_jump): Likewise.
14290 (store_field): Call new function expr_align.
14291 * expr.h (emit_block_move, emit_group_load, emit_group_store):
14292 Alignment arg now unsigned.
14293 (clear_storage, emit_push_insn, compare_from_rtx): Likewise.
14294 (do_compare_rtx_and_jump, store_bit_field): Likewise.
14295 (extract_bit_field): Likewise.
14296 * fold-const.c (add_double): Add cast to eliminate signedness warning.
14297 * machmode.h (GET_MODE_ALIGNMENT): Result is unsigned.
14298 (get_best_mode): Alignment arg is unsigned.
14299 * rtl.h (move_by_pieces): Likewise.
14300 * store-layout.c (maximum_field_alignment, set_alignment):
14302 (layout_decl): Alignment arg is now unsigned.
14303 Remove unneeded casts.
14304 (layout_record, layout_union, layout_type): Remove unneeded casts.
14305 Local alignment variables now unsigned.
14306 (get_best_mode): Alignment arg now unsigned.
14307 * tree.c (expr_align): New function.
14308 * tree.h (expr_align): Likewise.
14309 (maximum_field_alignment, set_alignment): Now unsigned.
14310 (get_inner_reference): Alignment argument is now pointer to unsigned.
14311 * varasm.c (assemble_variable): Add cast to eliminate warning.
14313 Thu Feb 10 12:56:47 2000 Jim Wilson <wilson@cygnus.com>
14315 * expmed.c (store_bit_field): If op0 and fieldmode are the same size,
14316 then store directly into op0.
14318 * calls.c (expand_call): When emitting a NOTE_INSN_SETJMP, search for
14319 the CALL_INSN, and emit the note immediately after it.
14321 2000-02-10 Nick Clifton <nickc@cygnus.com>
14323 * config/arm/thumb.md (epilogue): Include a (return) in the
14324 generated insn, and emit it using emit_jump_insn not
14327 Thu Feb 10 18:28:59 MET 2000 Jan Hubicka <jh@suse.cz>
14329 * function.c (assign_temp): Change zero-sized arrays to size 1.
14330 * integrate.c (expand_inline_function): Do not update
14331 stack_alignment_needed
14332 * i386.c (compute_frame_size): Remove #ifdef PREFERRED_FRAME_BOUNDARY,
14333 add some sanity checking, remove optimization for function with
14336 2000-02-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14338 * flow.c (mark_regs_live_at_end): Delete unused variables.
14340 * ggc-page.c (ggc_page_print_statistics): bzero -> memset.
14342 * integrate.c (copy_rtx_and_substitute): Wrap variable `alignment'
14343 in macro FRAME_GROWS_DOWNWARD.
14345 * stmt.c (expand_end_bindings): Delete unused variable.
14347 * unroll.c (iteration_info): Mark parameter `loop' with
14350 2000-02-10 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
14352 * fixinc/server.c (load_data): Return NULL if the marker line is
14354 (run_shell): If load_data returns NULL, retry the command once, in
14357 * configure: Rebuilt.
14359 2000-02-09 Bruce Korb <bkorb@gnu.org>
14361 * gcc/fixincludes: ** DELETED **
14362 * gcc/fixcpp: ** DELETED **
14363 * gcc/fixinc-nt.sed: ** DELETED **
14364 * gcc/just-fixinc: ** DELETED **
14365 * gcc/Makefile.in: Removed out-dated commentary
14366 * gcc/configure.in: Removed fast-fixincludes disablement.
14367 * MAINTAINERS(Ian Taylor) moved to "Write after approval" group.
14369 2000-02-09 Clinton Popetz <cpopetz@cygnus.com>
14370 * function.c (thread_prologue_and_epilogue_insns): Uncomment
14373 2000-02-09 Richard Henderson <rth@cygnus.com>
14375 * jump.c (delete_insn): Don't delete user labels at -O0.
14377 2000-02-09 Robert Lipe <robertl@sco.com>
14379 * Makefile.in (gen-protos): Don't depend on HOST_LIBDEPS.
14380 Don't link with HOST_LIBS.
14382 2000-02-09 Zack Weinberg <zack@wolery.cumb.org>
14384 * configure.in: Correct --help text for --with-dwarf2.
14385 Put tm-dwarf2.h after other tm files, if it's requested.
14386 * configure: Regenerate.
14387 * config/tm-dwarf2.h: #undef PREFERRED_DEBUGGING_TYPE before
14390 2000-02-09 Zack Weinberg <zack@wolery.cumb.org>
14392 * cpplib.h: Provide HASHNODE typedef and forward decl of
14393 struct hashnode only. Kill cpp_hashnode typedef. MACRODEF,
14394 DEFINITION, struct hashnode, struct macrodef, struct
14395 definition, scan_decls prototype, default defn of
14396 INCLUDE_LEN_FUDGE moved elsewhere.
14398 * cpphash.h: MACRODEF, DEFINITION, struct macrodef, struct
14399 definition, and struct hashnode moved here. Remove the unused
14400 'predefined' field from struct definition. Replace the 'args'
14401 union with its sole member. All users updated (cpphash.c).
14402 Delete HASHSTEP and MAKE_POS macros, and hashf prototype. Add
14403 multiple include guard.
14405 * cpphash.c (hashf): Make static; use better algorithm; drop
14406 HASHSIZE parameter; return an unsigned int.
14407 (cpp_lookup): Drop HASH parameter. PFILE parameter is
14408 used. Calculate HASHSIZE modulus here.
14409 (cpp_install): Drop HASH parameter. Calculate HASHSIZE modulus
14411 (create_definition): Drop PREDEFINITION parameter.
14412 * cpplib.c (do_define): Don't calculate a hash value here.
14413 Don't pass (keyword == NULL) to create_definition.
14415 * scan.h: Prototype scan_decls here.
14416 * cppfiles.c: Move INCLUDE_LEN_FUDGE default defn here.
14417 * cppexp.c, cppfiles.c, cppinit.c, cpplib.c, fix-header.c: All
14418 callers of cpp_lookup and cpp_install updated.
14420 * cpphash.c (macarg): Hoist all the flag diddling out of the
14422 (macroexpand): ... and out of the loop that calls macarg.
14423 Skip over the initial paren before macro arguments with
14424 cpp_get_non_space_token; point may be some distance before
14425 that paren. Abort if it's not there.
14427 * cpplib.c (parse_clear_mark): Delete function.
14428 (parse_set_mark, parse_goto_mark): Make static.
14429 (ACTIVE_MARK_P): New macro.
14430 (skip_block_comment, skip_line_comment): Do not bump the line
14431 if ACTIVE_MARK_P is true.
14432 (cpp_pop_buffer): The buffer to be popped may not have an
14434 (cpp_get_token): When looking for the initial paren before
14435 macro arguments, only set a mark in a file buffer, Always
14436 return to that mark before proceeding to call macroexpand or
14437 return a NAME token.
14439 * cpplib.h: Remove prototypes of parse_set_mark,
14440 parse_clear_mark, parse_goto_mark.
14441 (struct cpp_options): Rename 'put_out_comments' to
14442 'discard_comments' and invert its sense.
14443 * cppinit.c, cpphash.c, cpplib.c: All users of
14444 put_out_comments changed to use discard_comments, with
14447 2000-02-09 Clinton Popetz <cpopetz@cygnus.com>
14449 * function.c (thread_prologue_and_epilogue_insns): Don't delete
14450 the edge from a block that both jumps and falls through to the
14453 2000-02-09 Scott Bambrough <scottb@netwinder.org>
14455 * config/arm/arm.md (movsi): In PIC mode, make sure that a
14456 constant source address is legitimate.
14458 2000-02-09 Philip Blundell <pb@futuretv.com>
14460 * config/arm/arm.c (legitimize_pic_address): Handle LABEL_REF
14463 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Allow anything when
14465 (LEGITIMATE_PIC_OPERAND): Disallow references to labels.
14467 2000-02-09 Zack Weinberg <zack@wolery.cumb.org>
14469 * cpplib.c (cpp_define, cpp_undef): Make sure the stacked buffer
14470 ends with a newline and a NUL. Don't be so clever manipulating
14473 Wed Feb 9 14:18:08 MET 2000 Jan Hubicka <jh@suse.cz>
14475 * reload1.c (reload) Align stack frame to cfun->stack_alignment_needed,
14476 not to BIGGEST_ALIGNMENT.
14478 2000-02-08 Geoff Keating <geoffk@cygnus.com>
14480 * dwarf2.h (DW_CFA_GNU_negative_offset_extended): New constant.
14481 * dwarf2out.c (dwarf_cfi_name): Print name of new constant.
14482 (reg_save): Use DW_CFA_GNU_negative_offset_extended when needed.
14483 (output_cfi): Handle output of DW_CFA_GNU_negative_offset_extended.
14484 * frame.c (execute_cfa_insn): Handle
14485 DW_CFA_GNU_negative_offset_extended.
14487 2000-02-08 Richard Henderson <rth@cygnus.com>
14489 * flow.c (tidy_fallthru_edges): Split out from ...
14490 (delete_unreachable_blocks): ... here.
14491 (find_basic_blocks): Use it.
14493 Tue Feb 8 15:51:50 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14495 * stmt.c (expand_decl): Do set RTX_UNCHANGING_P for TREE_READONLY.
14497 2000-02-08 Zack Weinberg <zack@wolery.cumb.org>
14499 * Makefile.in (GEN_PROTOS_OBJS): Remove libcpp.a.
14500 (gen_protos.o): Don't depend on cpplib.h or cpphash.h.
14501 (fix-header.o): Don't depend on cpphash.h.
14503 * scan.c (hashstr): New function.
14504 * scan.h: Prototype it.
14505 * fix-header.c: Don't include cpphash.h. Use hashstr.
14506 * gen-protos.c: Don't include cpphash.h or cpplib.h. Use
14507 hashstr. Report hash table statistics. Add private
14508 definition of xrealloc.
14510 2000-02-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14512 * i386.h (TARGET_SWITCHES): Fix typo in option name.
14514 2000-02-08 Clinton Popetz <cpopetz@cygnus.com>
14516 * function.c (thread_prologue_and_epilogue_insns): Don't replace
14517 jumps with returns unless they are jumps to the fallthru block.
14519 Tue Feb 8 07:53:55 2000 Jan Hubicka <jh@suse.cz>
14521 * i386.md (addqi3_cc): Fix contraints.
14523 Tue Feb 8 01:39:45 2000 Hans-Peter Nilsson <hp@bitrange.com>
14525 * function.c (emit_return_into_block): Wrap in #ifdef HAVE_return.
14527 2000-02-07 Mark Mitchell <mark@codesourcery.com>
14529 * cpplib.c (cpp_get_token): Call CPP_BUMP_LINE after reading a
14530 carriage return after a macro name.
14532 2000-02-07 Fred Fish <fnf@be.com>
14534 * i386/beos-elf.h: (ASM_IDENTIFY_GCC): Define to nothing
14535 so the gcc2_compiled symbol doesn't confuse BeOS debuggers.
14537 2000-02-07 Zack Weinberg <zack@wolery.cumb.org>
14539 * cppfiles.c (deps_output): Count spacers in deps_column.
14541 2000-02-07 Neil Booth <NeilB@earthling.net>
14543 * cppinit.c (initialize_dependency_output): If there is no
14544 suffix, don't try to look for known suffixes. Use strrchr.
14545 (cpp_start_read): Remove duplicate initialization.
14547 Mon Feb 7 18:36:41 MET 2000 Jan Hubicka <jh@suse.cz>
14549 * calls.c (compute_argument_block_size): New argument
14550 preferred_stack_boundary.
14551 (expand_call): update cfun->preferred_stack_boundary, update call of
14552 compute_argument_block_size
14553 (emit_library_call): Increate cfun->preferred_stack_boundary
14554 to PREFERRED_STACK_BOUNDARY
14555 (emit_library_call_value): Likewise.
14556 * explow.c (allocate_dynamic_stack_spave): Likewise.
14557 * function.c (prepare_function_start): Set
14558 cfun->preferred_stack_boundary
14559 * function.h (struct function): Add preferred_stack_boundary field.
14560 * integrate.c (expand_inline_function): Update
14561 cfun->preferred_stack_boundary and cfun->stack_alignment_needed.
14562 (copy_rtx_and_substitute): Align frame to stack_alignment_needed only.
14563 * i386.c (compute_frame_size): Use cfun->preferred_stack_boundary.
14565 2000-02-06 Zack Weinberg <zack@wolery.cumb.org>
14567 * cpplib.c (my_strerror, cpp_error, cpp_error_with_line,
14568 cpp_error_from_errno, cpp_warning, cpp_warning_with_line,
14569 cpp_pedwarn, cpp_pedwarn_with_line,
14570 cpp_pedwarn_with_file_and_line): Move to cpperror.c.
14571 (cpp_print_file_and_line, v_cpp_error, v_cpp_warning,
14572 v_cpp_error_with_line, v_cpp_warning_with_line,
14573 cpp_message_from_errno, cpp_perror_with_name): Delete.
14575 * cpperror.c (cpp_print_containing_files): Take starting
14576 buffer as argument.
14577 (cpp_file_line_for_message): Rename to cpp_print_file_and_line.
14578 (v_cpp_message): Now called directly by all entry points.
14580 (cpp_pfatal_with_name, cpp_message): Delete.
14581 (cpp_notice_from_errno, cpp_ice): New functions.
14582 (cpp_notice): Is now for reporting error conditions, just
14583 without an associated file.
14584 (cpp_error, cpp_error_with_line): Don't do anything if
14585 opts->inhibit_errors is on.
14586 (cpp_pedwarn_with_file_and_line): Take column argument also.
14588 * cpplib.h: Update prototypes of exported functions.
14589 (struct cpp_options): Add inhibit_errors.
14591 * cppalloc.c, cppfiles.c: Use fprintf not cpp_notice for
14592 non-error messages. Include intl.h.
14594 * cppinit.c, cppmain.c: Likewise. Also, use
14595 cpp_notice_from_errno instead of cpp_perror_with_name or
14596 cpp_pfatal_with_name, and cpp_notice instead of cpp_message.
14598 * cppexp.c, cpphash.c, cppinit.c, cpplib.c: Use cpp_ice to
14599 report internal errors.
14601 * cpplib.c (do_define): Switch bcopy to memcpy.
14602 Give cpp_pedwarn_with_file_and_line a dummy column argument.
14604 * cpplib.c (copy_rest_of_line): Revert previous change: don't
14605 bail out early if we hit a line comment.
14607 2000-02-06 Richard Henderson <rth@cygnus.com>
14609 * flow.c (flow_delete_insn, make_edge, remove_edge): Export.
14610 * basic-block.h: Declare them.
14611 * emit-rtl.h (active_insn_p): New.
14612 (next_active_insn, prev_active_insn): Use it.
14613 * rtl.h: Declare it.
14614 * function.c (emit_return_into_block): New.
14615 (thread_prologue_and_epilogue_insns): Insert return insns instead
14616 of epilogues when possible.
14617 * jump.c (jump_optimize_1): Remove code to insert a return insn
14618 on the fallthru to the exit block.
14620 * i386.c (ix86_can_use_return_insn_p): Fail for large poped args
14621 and for non-empty stack frames.
14622 * i386.md (return): Expand to return-pop as needed.
14624 2000-02-06 Richard Henderson <rth@cygnus.com>
14626 * simplify-rtx.c (simplify_relational_operation): Canonicalize
14627 constant to op1 for testing.
14629 2000-02-06 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14631 * config/c4x/c4x.md (*ldi_on_overflow): New pattern.
14632 (fixuns_truncqfqi2): Use it.
14634 2000-02-06 Richard Henderson <rth@cygnus.com>
14636 * i386.c (ix86_agi_dependant): Handle pro_epilogue_adjust_stack
14637 as a TYPE_LEA insn.
14639 * i386.md (widening and peepholes): Mask the constant instead of
14642 2000-02-05 Zack Weinberg <zack@wolery.cumb.org>
14644 * cppfiles.c (read_and_prescan) [case SPECCASE_QUESTION]: Bump
14645 input pointer before possibly branching off to the backslash
14647 * cpphash.c (macroexpand): Correctly delete \r escapes when
14648 stringifying parameters.
14649 * cpplib.c (copy_rest_of_line): Go directly to skip_block_comment
14650 if we can; bail out early if we hit a line comment.
14651 (handle_directive): Treat '# 123' in an .S file just like
14652 '# <punctuation>'. Discard the shifted '#' if we hit '#\n'.
14653 Return 1 for '# not_a_directive'.
14654 (get_directive_token): Pop macro buffers here, so that
14655 cpp_get_token can't sneakily move past a newline.
14657 (cpp_get_token): goto randomchar if handle_directive returns 0.
14659 * cppalloc.c: Update copyright.
14660 * cpplib.c: Merge all the static function prototypes into one
14662 * cpplib.h: Remove #if 0 block.
14664 * cpperror.c: Remove #ifdef EMACS block.
14665 * cppmain.c: Likewise.
14666 * cpphash.c: Remove #if 0 blocks.
14667 * cppinit.c: Remove #if 0 blocks, and the -lint option.
14668 * cpplib.c: Remove #if 0 blocks and code referencing
14669 pcp_inside_if or for_lint. Remove duplicate error message.
14670 Fix error messages for #else after #else or #elif. Reformat.
14671 Remove archaic TODO list.
14672 * cpplib.h: Remove pcp_inside_if and for_lint flags.
14674 2000-02-05 Zack Weinberg <zack@wolery.cumb.org>
14676 * i386/osf1elf.h: Add missing backslash to multiline string.
14678 2000-02-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14680 * longlong.h [sparc] (udiv_qrnnd): Avoid stringifying macro arg.
14682 2000-02-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14684 * Makefile.in (c-common.o): Depend on $(EXPR_H).
14686 * c-common.c: Include expr.h.
14688 * c-pragma.c (mark_align_stack): Add prototype.
14690 * caller-save.c (add_stored_regs): Likewise.
14692 * combine.c (record_promoted_value): Likewise.
14694 * i386.c (ix86_sched_reorder_pentium, ix86_sched_reorder_ppro):
14697 * cppinit.c (new_pending_define): Likewise.
14699 * cpplib.c (skip_block_comment, skip_line_comment): Likewise.
14701 * dwarf2out.c (save_rtx, splice_child_die, reverse_die_lists,
14702 AT_class, AT_flag, AT_int, AT_unsigned, AT_string, AT_ref, AT_loc,
14703 AT_addr, AT_lbl, get_AT_ref, free_AT, free_die, local_scope_p,
14704 class_scope_p): Likewise.
14706 * dwarf2out.h (dwarf2out_set_demangle_name_func,
14707 dwarf2out_add_library_unit_info): Likewise.
14709 * ggc.h (ggc_page_print_statistics): Likewise.
14711 * haifa-sched.c (propagate_deps): Likewise.
14713 * reg-stack.c (next_flags_user, record_label_references): Likewise.
14715 * rtl.h (set_stack_check_libfunc): Likewise.
14717 * toplev.h (set_fatal_function): Likewise.
14719 * toplev.c (set_fatal_function): Delete prototype.
14721 * diagnostic.c: Deconstify functions returning malloc'ed ptrs.
14723 2000-02-05 Geoff Keating <geoffk@cygnus.com>
14725 * ginclude/ppc-asm.h (FUNC_START): Use USER_LABEL_PREFIX.
14726 (FUNC_END): Likewise.
14728 2000-02-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14730 * caller-save.c: Include tm_p.h.
14732 2000-02-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14734 * Makefile.in (libgcc.a): Add $(LIBGCC1) to libgcc.a after $(LIBGCC2).
14736 2000-02-04 Neil Booth <NeilB@earthling.net>
14738 * cccp.c (main): Check 'dir' for a NULL pointer before passing
14741 2000-02-04 Zack Weinberg <zack@wolery.cumb.org>
14743 * recog.h: Remove NO_MD_PROTOTYPES ifdefs.
14744 * genflags.c: Use the max_operand_1 logic from genemit.c to
14745 calculate how many arguments gen_insn prototypes have. Remove
14746 NO_MD_PROTOTYPES ifdefs from the generated file.
14747 * genoutput.c: Don't define NO_MD_PROTOTYPES in the generated
14748 file. Cast gen_insn initializers to insn_gen_fn.
14749 * config/alpha/vms.h: Don't define NO_MD_PROTOTYPES.
14750 * gcc.texi: Remove documentation of NO_MD_PROTOTYPES.
14752 2000-02-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14754 * fixinc/Makefile.in (HDR): Add machname.h.
14757 2000-02-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14759 * config/c4x/c4x.h (c4x_compare_op0, c4x_compare_op1): Move ...
14760 (c4x_regclass_map, c4x_caller_save_map, c4x_rpts_cycles): Ditto.
14761 (c4x_cpu_version): Ditto.
14762 * config/c4x/c4x-protos.h: ... here.
14764 2000-02-04 Jason Merrill <jason@casey.cygnus.com>
14766 * dwarf2out.c (add_abstract_origin_attribute): Don't call
14767 gen_abstract_function on our context if we're a nested function.
14769 2000-02-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14771 * config/c4x/c4x.md (fixuns_truncqfqi2): Rewrite.
14772 * config/c4x/libgcc.S (ufix_truncqfhi2n): Fix.
14774 2000-02-04 Bruce Korb <bkorb@gnu.org>
14776 * fixinc/genfixes(machname.h):
14777 Move the functionality from gen-machine.h into this file.
14778 UNdef MN_NAME_PAT if there are no names to change.
14779 Also, be a little kinder when AutoGen is not present.
14781 * fixinc/Makefile.in(machname.h):
14782 Change the generation rule to use genfixes.
14784 * fixinc/fixfixes.c(machine_name):
14785 machine_name_fix's functionality now dependent upon whether
14786 MN_NAME_PAT is defined.
14788 * fixinc/fixtests.c(machine_name):
14791 * fixinc/fixlib.c(mn_get_regexps): conditional on definition
14794 * fixinc/fixlib.h(mn_get_regexps):
14797 * fixinc/gen-machine.h: DELETED
14799 2000-02-04 Jan Hubicka <jh@suse.cz>
14800 Richard Henderson <rth@cygnus.com>
14802 * i386.c (SAVE_REGS_FIRST): Remove.
14803 (ix86_initial_elimination_offset): Handle only SAVE_REGS_FIRST mode.
14804 (ix86_compute_frame_size): Likewise.
14805 (ix86_expand_prologue): Likewise. Use pro_epilogue_adjust_stack.
14806 (ix86_emit_restore_regs): Remove.
14807 (ix86_emit_epilogue_esp_adjustment): Use pro_epilogue_adjust_stack
14808 when a frame pointer is in use.
14809 (ix86_expand_epilogue): Handle only SAVE_REGS_FIRST mode. Use mov
14810 instead of pop to restore a register when profitable; emit leave
14812 (ix86_attr_length_default): Handle pro_epilogue_adjust_stack
14813 as a TYPE_LEA insn.
14814 (ix86_adjust_cost): Handle pro_epilogue_adjust_stack as TYPE_ALU.
14815 * i386.md (prologue_allocate_stack): Remove.
14816 (epilogue_deallocate_stack): Remove.
14817 (pro_epilogue_adjust_stack): New.
14819 2000-02-04 Richard Henderson <rth@cygnus.com>
14821 * function.c (diddle_return_value): Rework to use a callback function.
14822 Use current_function_return_rtx if it's been set up.
14823 (do_clobber_return_reg, clobber_return_register): New.
14824 (do_use_return_reg, use_return_register): New.
14825 (expand_function_end): Use them.
14826 * stmt.c (expand_null_return): Likewise.
14827 * function.h: Declare them.
14828 * flow.c (mark_regs_live_at_end): Use diddle_return_value.
14829 (mark_reg): Change arguments as appropriate for callback.
14830 * integrate.c (expand_inline_function): Revert 19 Jan change.
14832 Fri Feb 4 20:25:42 2000 Hans-Peter Nilsson <hp@bitrange.com>
14834 * tm.texi (Values in Registers): Fix typo: "fo" "for".
14835 (Misc): Say the scheduler, not the Haifa scheduler.
14837 2000-02-04 Clinton Popetz <cpopetz@cygnus.com>
14839 * jump.c (mark_jump_label): Add in_mem param, check SYMBOL_REFs
14840 when in_mem is set. Update all callers.
14842 2000-02-04 Richard Henderson <rth@cygnus.com>
14844 * i386/openbsd.h (INT_ASM_OP): Define.
14846 Fri Feb 4 10:51:30 2000 Hans-Peter Nilsson <hp@bitrange.com>
14848 * tm.texi: Fix various typos.
14850 Thu Feb 3 17:17:32 2000 Steve Ellcey <sje@cup.hp.com>
14852 * config/pa/pa-hpux11.h (LIB_SPEC): Correct typo in !p case.
14853 (MD_STARTFILE_PREFIX_1): New macro.
14855 Thu Feb 3 15:08:13 MET 2000 Jan Hubicka <jh@suse.cz>
14857 * i386.md (movstrsi, clrstrsi): Support variable sized copies, align
14858 destination when needed.
14859 (strmovsi, strsetsi): New expander.
14860 (strmovsi_1, strsetsi_1): New pattern.
14861 * i386.h (MASK_NO_ALIGN_STROP, MASK_INLINE_ALL_STROP,
14862 TARGET_ALIGN_STRINGOPS, TARGET_INLINE_ALL_STRINGOPS): New macros.
14863 (TARGET_SWITCHES) Add align-stringops and inline-all-stringops.
14864 * invoke.texi (align-stringops, inline-all-stringops): Document.
14866 Wed Feb 2 23:04:47 2000 Krister Walfridsson <cato@df.lth.se>
14868 * i386/netbsd.h (INT_ASM_OP): Define.
14870 2000-02-02 Zack Weinberg <zack@wolery.cumb.org>
14872 * cpplib.h (cpp_reader): Add new flag, no_directives.
14873 * cpphash.c (macarg): Set it.
14874 * cpplib.c (handle_directive): If no_directives is on and we
14875 find a directive, issue an error and discard the line.
14877 Wed Feb 2 13:07:10 2000 Jim Wilson <wilson@cygnus.com>
14879 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Delete 'E' check for
14880 FP constants. Add ! TARGET_FPU check for FP constants.
14882 2000-02-02 Clinton Popetz <cpopetz@cygnus.com>
14884 * flow.c (find_basic_blocks): Don't kill label_value_list
14886 (cleanup_cfg): Kill it here.
14888 Wed Feb 2 08:12:30 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14890 * expr.c (store_field): Ensure ALIGN is no stricter than the
14893 2000-02-02 Richard Henderson <rth@cygnus.com>
14895 * jump.c (delete_insn): Partially revert 19 Jan change;
14896 don't convert unused code labels to notes at -O0.
14898 2000-02-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
14900 * toplev.c (rest_of_compilation): Run rebuild_jump_labels after
14901 split_all_insns to recreate REG_LABEL notes for flow2 pass.
14903 2000-02-01 Richard Henderson <rth@cygnus.com>
14905 * i386.c (general_no_elim_operand): New.
14906 (nonmemory_no_elim_operand): New.
14907 (ix86_expand_move): Copy eliminable operands before a push.
14908 * i386-protos.h: Declare new functions.
14909 * i386.h (CAN_ELIMINATE): Simplify.
14910 (PREDICATE_CODES): Update.
14911 * i386.md (push insns): Don't allow eliminable register operands.
14913 2000-02-01 Richard Henderson <rth@cygnus.com>
14915 * flow.c (mark_regs_live_at_end): Follow expand_function_end and
14916 replace BLKmode with DECL_RTL's mode.
14918 2000-02-01 Zack Weinberg <zack@wolery.cumb.org>
14920 * frame.c (find_fde): Convert for loop to do-while so compiler
14921 sees it's always executed at least once.
14922 * libgcc2.c (BBINBUFSIZE): Kill.
14923 (__bb_init_prg): Use fgets.
14924 (__bb_exit_trace_func): Don't paste strings.
14925 * unroll.c (unroll_loop): Initialize unroll_type, not
14926 unroll_number, and tweak logic to match.
14928 * i386.c (ix86_expand_int_movcc): Add explicit 'return 0' in
14930 (ix86_flags_dependant): Likewise. Disentangle control flow.
14931 (ix86_sched_reorder): Break guts out to
14932 ix86_sched_reorder_pentium and ix86_sched_reorder_ppro.
14933 (ix86_sched_reorder_ppro): Initialize pair2 and insnp before
14936 * i386.h (MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Don't
14937 use string concatenation. Don't save and restore esi.
14939 * fixinc/Makefile.in (fixincl.sh): Don't depend on inclhack.def.
14940 (machname.h): Remove script to separate file. Use two-step
14941 sequence so target is not created if script fails.
14942 * fixinc/gen-machname.h: New file. Handle case where no non-reserved
14943 identifiers are defined.
14944 * fixinc/fixlib.c (mn_get_regexps): Return a flag: if MN_NAME_PAT is
14945 an empty string, machine_name doesn't need to do anything at
14947 (is_cxx_header): Add more cases to regexp.
14948 * fixinc/fixlib.h: Update prototype.
14949 * fixinc/fixtests.c, fixinc/fixfixes.c: Update callers of
14951 * fixinc/fixincl.c: Define NO_BOGOSITY.
14953 * fixinc/inclhack.def (no_double_slash, else_endif_label): Ifdef out.
14954 (hp_sysfile): Add missing comma.
14955 (math_exception): Put the wrapper ifdefs at the beginning and
14956 the end of the file.
14957 * fixinc/fixincl.x, fixinc/inclhack.sh: Regenerate.
14959 2000-02-01 Richard Henderson <rth@cygnus.com>
14961 * sparc.c (fp_zero_operand): Turn into a normal predicate.
14962 Use CONST0_RTX. Update all callers.
14963 * sparc.h, sparc-protos.h: Update accordingly.
14964 * sparc.md (fp mov insns): Use fp_zero_operand directly
14967 Wed Feb 2 02:59:45 2000 Hans-Peter Nilsson <hp@bitrange.com>
14969 * tm.texi (Values in Registers): Fix typo in HARD_REGNO_NREGS
14972 2000-02-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14974 * Makefile.in (specs.ready): New target.
14975 (fixinc.sh): Depend on `specs.ready' instead of `specs'.
14977 2000-02-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14979 * fixinc.irix: Use unique filenames for writing into /tmp,
14980 * fixinc.ptx: Likewise.
14981 * fixinc.sco: Likewise.
14982 * fixinc.svr4: Likewise.
14983 * fixinc.winnt: Likewise.
14985 2000-02-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14987 * tsystem.h: New file.
14989 * Makefile.in (libgcc2.a, stmp-multilib, crtbegin.o, crtend.o,
14990 s-crtS): Depend on tsystem.h.
14992 * crtstuff.c: Include tsystem.h.
14993 * frame.c: Likewise.
14994 * libgcc2.c: Likewise.
14996 Tue Feb 1 19:53:27 CET 2000 Jan Hubicka <jh@suse.cz>
14998 * builtins.c (expand_builtin_memset): Expand for variable sized
15001 2000-02-01 David Billinghurst <David.Billinghurst@riotinto.com.au>
15003 * config/mips/iris6.h (SUBTARGET_ASM_SPEC) : Default ISA based
15006 Tue Feb 1 00:57:40 2000 Hans-Peter Nilsson <hp@bitrange.com>
15008 * dwarfout.c (SHORT_TYPE_SIZE): Correct default.
15010 * tm.texi (Type Layout): Correct entry for CHAR_TYPE_SIZE.
15012 2000-01-31 Chandra Chavva <cchavva@cygnus.com>
15014 * combine.c (try_combine) [HAVE_cc0]: Trying to check the missed
15015 case 3->2 combining (combining with splitting) in which 2 is CC0
15016 setter/user and 3 is user. The rest of cases 2->1 and 3->2 are
15017 checked at the begining of the function with the aid of calling
15018 function 'can_combine_p'.
15020 2000-01-31 Dave Brolley <brolley@redhat.com>
15022 * cccp.c (struct argdata): Redeclare 'newlines' field as 'int'.
15024 2000-01-31 Jason Merrill <jason@casey.cygnus.com>
15026 * jump.c (redirect_jump): Move a NOTE_INSN_FUNCTION_END to the
15029 2000-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15031 * gansidecl.h (PROTO, VPROTO, PVPROTO): Delete macros.
15033 * sbitmap.h (sbitmap_first_set_bit, sbitmap_last_set_bit):
15036 2000-01-30 Zack Weinberg <zack@wolery.cumb.org>
15038 * i386/386bsd.h, i386/beos-pe.h, i386/bsd386.h, i386/crtdll.h,
15039 i386/cygwin.h, i386/dgux.h, i386/djgpp-rtems.h, i386/djgpp.h,
15040 i386/freebsd.h, i386/gnu.h, i386/i386-aout.h, i386/i386-coff.h,
15041 i386/i386-interix.h, i386/i386elf.h, i386/linux.h, i386/lynx-ng.h,
15042 i386/lynx.h, i386/mach.h, i386/mingw32.h, i386/moss.h,
15043 i386/netbsd.h, i386/next.h, i386/openbsd.h, i386/osf1elf.h,
15044 i386/ptx4-i.h, i386/rtems.h, i386/rtemself.h, i386/sco.h,
15045 i386/sequent.h, i386/sun.h, i386/sysv4.h, i386/uwin.h, i386/vsta.h,
15046 i386/vxi386.h, i386/win-nt.h, i386/win32.h:
15047 Remove -Di386 -Acpu(i386) -Amachine(i386) from CPP_PREDEFINES.
15049 * i386/osf1elf.h, i386/scodbx.h, i386/seq-sysv3.h, i386/sysv5.h:
15050 Add %(cpp_cpu) to CPP_SPEC.
15052 * i386/osf1elf.h, i386/osfelf.h, i386/osfrose.h:
15053 Add %(cc1_cpu) to CC1_SPEC.
15055 2000-01-28 Ulrich Drepper <drepper@redhat.com>
15057 * c-decl.c (c_decode_option): Accept optional numeric argument to
15058 -Wformat and set warn_format.
15059 * c-common.c: Don't emit warning about non-constant printf format
15060 string unless warn_format > 1.
15062 2000-01-30 Richard Henderson <rth@cygnus.com>
15064 * alpha.md (return_internal): Allow after reload only.
15066 2000-01-30 Richard Henderson <rth@cygnus.com>
15068 * i386.c (ix86_compute_frame_size): Omit padding1 if the
15069 local frame size is zero.
15071 2000-01-30 Richard Henderson <rth@cygnus.com>
15073 * alpha.c (alpha_expand_epilogue): Don't emit the return insn.
15074 * alpha.h (EPILOGUE_USES): New. Mark $26 live.
15075 * alpha.md (return): Turn into an expander.
15076 (return_internal): Don't use $26.
15077 (epilogue): Emit the return insn.
15079 2000-01-30 Richard Henderson <rth@cygnus.com>
15081 * alpha.md (negtf2, abstf2): Fix word order thinko.
15082 (extendsftf2): New.
15083 (trunctfsf2): Avoid intermediate rounding errors.
15085 2000-01-30 Zack Weinberg <zack@wolery.cumb.org>
15087 * cppfiles.c (find_position): Drop 'colp' argument, return the
15089 (read_and_prescan): Adjust to match. Don't ever manipulate
15090 line or line_base except via find_position.
15092 2000-01-29 Zack Weinberg <zack@wolery.cumb.org>
15094 * c-parse.in: Apply Ulrich's changes from c-parse.y.
15095 * c-parse.y, objc/objc-parse.y, c-parse.c, objc/objc-parse.c:
15098 2000-01-29 Zack Weinberg <zack@wolery.cumb.org>
15100 * cpperror.c (cpp_file_line_for_message): If 'line' is zero,
15101 just print "<command line>". If 'filename' is null or an
15102 empty string, print "<stdin>" for the filename.
15103 * cpplib.c (do_define): Don't print the 'location of the
15104 previous definition' message if we're still parsing the
15106 (cpp_pedwarn_with_file_and_line): Always call
15107 cpp_file_line_for_message.
15109 2000-01-29 Mark Mitchell <mark@codesourcery.com>
15111 * flow.c (mark_regs_live_at_end): Fix typo.
15113 2000-01-28 Ulrich Drepper <drepper@redhat.com>
15115 * c-common.c: Adjust variable names, comments, help strings to c99.
15116 * c-lex.c: Likewise.
15117 * c-parse.y: Likewise.
15118 * c-tree.h: Likewise.
15119 * cccp.c: Likewise.
15120 * cpplib.h: Likewise.
15121 * c-decl.c: Likewise. Recognize options with names "*99" as well.
15122 * cppinit.c: Likewise.
15124 2000-01-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
15126 * c4x.h (INIT_TARGET_OPTABS): Add all missing local optab entries.
15127 * c4x.c: Define the optab rtx values.
15128 (c4x_add_gc_roots): Add the ggc roots for these optab rtx values.
15129 (c4x_emit_libcall): Use new optab rtx values.
15130 (c4x_emit_libcall3): Likewise.
15131 (c4x_emit_libcall_mulhi): Likewise.
15132 * c4x-protos.h: Add prototypes for optab rtx values and change
15133 prototypes for above c4x_emit_libcall functions.
15135 2000-01-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
15137 * c4x.c (c4x_output_ascii): Restrict line length of output when TI
15139 (c4x_function_prologue): Use regnames intead of float_reg_names when
15141 (c4x_function_epilogue): Likewise.
15142 (c4x_print_operand): Likewise.
15143 * c4x.h (HOST_WIDE_INT_PRINT_HEX): Redefine.
15144 * c4x.md (set_high): Disable for TARGET_TI.
15146 2000-01-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
15148 * c4x.h (PREFERRED_RELOAD_CLASS): Change to restrict the reloading
15149 of framepointer + constant to ADDR_REGS class.
15150 * c4x.md (addqi3, addqi3_noclobber_reload): Update.
15151 * c4x.c (std_or_reg_operand): New function.
15152 * c4x-protos.h (std_or_reg_operand): Prototype it.
15154 2000-01-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
15156 * t-c4x: Change qi,qf,di,df into si,sf,hi,hf to generate same
15157 object names as libgcc2.c.
15158 * libgcc.S: Use newly defined names.
15160 Fri Jan 7 19:48:04 CET 2000 Jan Hubicka <jh@suse.cz>
15161 * sbitmap.c (sbitmap_first_set_bit, sbitmap_last_set_bit): New
15163 * sbitmap.h (sbitmap_first_set_bit, sbitmap_last_set_bit): Declare.
15164 * basic_block.h (FLOW_LOOP_FIRST_BLOCK): New macro.
15165 (FLOW_LOOP_LAST_BLOCK): Likewise.
15167 2000-01-21 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
15169 * basic-block.h (struct loop): New fields 'first' and 'last'.
15170 * flow.c (flow_loops_find): Compute loop->first and loop->last.
15171 (flow_loops_dump): Use loop->first to check for NOTE_INSN_LOOP_BEG
15172 and loop->last to check for NOTE_INSN_LOOP_END.
15174 Fri Jan 28 10:57:58 2000 Jason Eckhardt <jle@cygnus.com>
15176 * predict.c (estimate_probability): Use the new FIRST and LAST fields
15177 of the loop descriptor rather than HEADER and LATCH. Also added
15178 missing break statements as well making some coding style modifications
15179 as suggested by Michael Hayes.
15181 2000-01-28 Richard Henderson <rth@cygnus.com>
15183 * flow.c (find_basic_blocks): Remove do_cleanup argument.
15184 Break out that code ...
15185 (cleanup_cfg): ... here.
15186 (commit_one_edge_insertion): Detect a return instruction being
15187 emitted to an edge. Emit a barrier following; clear fallthru.
15188 (commit_edge_insertions): Verify CFG consistency.
15189 * function.c (expand_function_start): Kill unused variable.
15190 (expand_function_end): Likewise.
15191 (thread_prologue_and_epilogue_insns): Use insert_insn_on_edge
15192 to insert the epilogue.
15194 * gcse.c (gcse_main): Adjust for find_basic_blocks change.
15195 (delete_null_pointer_checks): Likewise.
15196 * output.h: Likewise.
15197 * reg-stack.c (reg_to_stack): Likewise.
15198 * toplev.c (rest_of_compilation): Likewise. Run
15199 thread_prologue_and_epilogue_insns after rebuilding the CFG.
15201 2000-01-28 Richard Henderson <rth@cygnus.com>
15203 * Makefile.in (flow.o): Revert 24 Jan change.
15204 * flow.c (mark_regs_live_at_end): Likewise. Force BLKmode
15205 FUNCTION_VALUE result to DECL_RESULT's mode.
15207 * haifa-sched.c (schedule_insns): Don't recompute reg info
15210 2000-01-28 Zack Weinberg <zack@wolery.cumb.org>
15212 * configure.in: Make --enable-cpplib the default.
15213 * configure: Regenerate.
15214 * gcc.dg/990119-1.c: No longer expected to fail.
15216 2000-01-28 Bernd Schmidt <bernds@cygnus.co.uk>
15218 * jump.c (jump_optimize_1): Delete an optimization that is also done
15219 by merge_blocks in flow.
15221 2000-01-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15223 * diagnostic.c (build_message_string, output_printf,
15224 line_wrapper_printf): Add ATTRIBUTE_PRINTF_*.
15225 (build_location_prefix): Fix non-literal format string.
15227 2000-01-27 Richard Henderson <rth@cygnus.com>
15229 * alpha.md (trunctfsf2): New.
15231 2000-01-27 Andrew Hobson <ahobson@eng.mindspring.net>
15233 * configure.in (alpha-dec-osf5): Enable MASK_SUPPORT_ARCH.
15235 2000-01-27 Zack Weinberg <zack@wolery.cumb.org>
15237 * cppinit.c (cpp_handle_option): Recognize C++ comments under
15239 * cpplib.c (skip_block_comment, skip_line_comment): Split code
15241 (skip_comment) ... here. Permit C++ comments in system
15242 headers always. Warn about C++ comments in user code under
15243 -std=gnu89 -pedantic.
15244 (copy_comment): Use skip_comment.
15245 (cpp_skip_hspace, cpp_get_token): skip_comment can no longer
15247 (consider_directive_while_skipping, do_else, do_endif): Call
15248 validate_else unconditionally.
15249 (validate_else): Check CPP_PEDANTIC here. Accept non-comment
15250 text after the conditional in a system header.
15251 * cpplib.h (struct cpp_buffer): Add flag
15252 warned_cplusplus_comments.
15254 2000-01-27 Geoffrey Keating <geoffk@cygnus.com>
15256 * emit-rtl.c (unshare_all_rtl): Unshare virtual parameters too.
15257 Use unshare_all_rtl_1.
15258 (unshare_all_rtl_again): New function.
15259 (unshare_all_rtl_1): New function split out of unshare_all_rtl.
15261 * function.c (purge_addressof_1): Use unshare_all_rtl_again
15262 rather than resetting the 'used' flags ourself.
15264 * toplev.c (rest_of_compilation): Add current_function_decl
15265 to the unshare_all_rtl call.
15266 * tree.h: Prototype unshare_all_rtl.
15267 * rtl.h: Prototype unshare_all_rtl_again here.
15269 2000-01-27 Geoffrey Keating <geoffk@cygnus.com>
15271 * genoutput.c (output_prologue): Include ggc.h in generated
15273 * Makefile.in (insn-output.o): Depends on ggc.h.
15275 2000-01-27 Ian Dall <ian@sibyl.beware.dropbear.id.au>
15276 Hans-Peter Nilsson <hp@bitrange.com>
15278 * ns32k/xm-ns32k.h (memcpy, memset, memcmp): Delete.
15279 Remove redundant include of xm-ns32k.h.
15280 * ns32k/xm-genix.h (memcpy, memset, memcmp): Add definitions.
15281 Remove redundant include of xm-ns32k.h.
15282 * ns32k/xm-netbsd.h (memcpy, memset, memcmp): No longer undefine.
15283 Remove redundant include of xm-ns32k.h.
15284 * ns32k/netbsd.h (TARGET_DEFAULT): Enable multiply-add instructions.
15286 * ns32k/ns32k.h: Update comment on multiply-add instructions.
15287 (TARGET_SWITCHES): Add documentation strings.
15288 (DWARF_FRAME_REGNUM): Override default definition.
15289 (REG_CLASS_CONTENTS): Add comments.
15290 (SUBSET_P): Format to reduce line length.
15291 (SMALL_REGISTER_CLASSES): Make a run time option.
15292 (GO_IF_NONINDEXED_ADDRESS): Reformat.
15293 (GO_IF_LEGITIMATE_ADDRESS): Ensure that cfun is non NULL before
15294 dereferencing it. Braces to avoid "ambiguous else" were misplaced.
15295 (regclass_map): fix typo in comment.
15296 * ns32k/ns32k.c: Add spaces before parentheses for consistant style.
15297 Prefer gen_rtx_FOO(...) to gen_rtx(FOO,...).
15298 (trace, reg_or_mem_operand): Delete, unused function.
15299 (calc_address_cost): Small offsets are cheaper than large ones.
15300 (expand_block_move): Generate more efficient code when bytes is a
15301 known at compile time.
15302 * ns32k/ns32k.md: Alternate constraints for multiply-add instructions.
15303 (udivmodsi4, udivmodhi4, udivmodqi4): Use nonimmediate_operand
15304 instead of reg_or_mem_operand.
15306 * ns32k/ns32k.md: Use nonimmediate_operand or stricter for outputs,
15307 not general_operand. Similarly use "=rm" or stricter, not "=g".
15308 For input operands, use stricter constraints than "g" if not
15309 general_operand. Similarly use stricter predicate than
15310 "general_operand" when stricter constraints than "g" are present,
15311 except for matching constraints.
15312 (movstrsi): Use "memory_operand" for operands 0 and 1.
15313 (truncsiqi2, truncsihi2, trunchiqi2): Remove.
15314 (udivmoddisi4_internal): Use nonimmediate_operand for operand 0,
15315 not reg_or_mem_operand.
15316 (udivmoddisi4): Ditto.
15317 Use nonimmediate_operand for operand 1, not reg_or_mem_operand.
15318 Use nonimmediate_operand for operand 3, not register_operand.
15319 (udivmoddiqi4_internal): Use register_operand for operand 1, not
15320 reg_or_mem_operand.
15322 2000-01-27 Fred Fish <fnf@be.com>
15324 * gthr-posix.h: Fix typo; compatibily -> compatibility.
15325 * gthr-single.h: Likewise.
15326 * gthr-solaris.h: Likewise.
15327 * gthr-vxworks.h: Likewise.
15328 * gthr-win32.h: Likewise.
15329 * gthr.h: Likewise.
15331 2000-01-27 Zack Weinberg <zack@wolery.cumb.org>
15333 * cppinit.c: Add " (cpplib)" to end of string printed by
15336 2000-01-27 Richard Henderson <rth@cygnus.com>
15338 * alpha.c (alpha_emit_conditional_move): Use VOIDmode when
15339 testing for a signed comparison.
15340 (alpha_emit_floatuns): New.
15341 * alpha-protos.h: Declare it.
15342 * alpha.md (floatunsdisf2, floatunsdidf2): New.
15343 (extendsfdf2): Tidy.
15345 2000-01-27 Jakub Jelinek <jakub@redhat.com>
15347 * config/sparc/linux64.h (CC1_SPEC): If compiling -m32 with -g but
15348 no -g option specifying debugging format, default to -gstabs+.
15350 Wed Jan 26 22:19:14 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
15352 * calls.c (special_function_p): New argument fork_or_exec.
15353 (expand_call): When profile_arc_flag is set and the function
15354 is in the fork_or_exec group, call __bb_fork_func first.
15355 * libgcc2.c, _bb module (__bb_fork_func): New function.
15356 (__bb_exit_func): If fcntl F_SETLKW is available, use it to lock
15358 * config/svr4.h (TARGET_HAS_F_SETLKW): Define.
15359 * tree.h (special_function_p): Update prototype.
15361 2000-01-26 Richard Henderson <rth@cygnus.com>
15363 * alpha.c (alpha_split_tfmode_pair): New.
15364 * alpha-protos.h: Declare it.
15365 * alpha.md (abstf2, negtf2): New.
15366 (movtf insn): Add input G constraint.
15367 (movtf splitter): Use alpha_split_tfmode_pair.
15369 2000-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15371 * i386/cygwin.h: PROTO -> PARAMS.
15373 2000-01-26 Jakub Jelinek <jakub@redhat.com>
15375 * config/sparc/sparc.c (sparc_emit_float_lib_cmp): Handle
15376 TARGET_ARCH32 again. Handle ORDERED, UN* and LTGT comparisons
15377 using _Qp_cmp/_Q_cmp and testing the return value.
15378 (print_operand): Call reverse_condition_maybe_unordered if
15379 we are handling CCFPmode or CCFPEmode.
15380 Handle ORDERED, UN* and LTGT comparisons.
15381 * config/sparc/sparc.md (cmptf): Use even on TARGET_ARCH32
15382 if not TARGET_HARD_QUAD.
15383 (seq, sne, sgt, slt, sge, sle, beq, bne, bgt, blt, bge, ble,
15384 bunordered, bordered, bungt, bunlt, buneq, bunge, bunle, bltgt):
15385 Call sparc_emit_float_lib_cmp even on TARGET_ARCH32.
15386 Adjust gen_b* calls so that they reflect return comparison of
15387 sparc_emit_float_lib_cmp.
15389 2000-01-26 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
15391 * config/alpha/alpha.c (alpha_emit_xfloating_cvt): Do not assume
15392 incoming operands array is large enough for one more operand.
15393 (alpha_emit_xfloating_arith): Likewise.
15395 2000-01-25 Zack Weinberg <zack@wolery.cumb.org>
15397 * fixinc/Makefile.in (machname.h): SunOS 4 sed can't handle a
15398 file with one line and no trailing newline.
15399 Patch by Kaveh Ghazi <ghazi@caip.rutgers.edu>.
15400 * fixinc/fixtests.c (machine_name_test): Fix fencepost error
15401 checking if the match is on the line.
15402 * fixinc/gnu-regex.c: Provide regerror not __regerror.
15404 2000-01-25 Richard Henderson <rth@cygnus.com>
15406 * sparc.c (output_cbranch): Fix accidental squashing of the
15407 fp branch pre-delay nop.
15409 2000-01-25 Richard Henderson <rth@cygnus.com>
15411 * tree.def (UNNE_EXPR): Remove.
15412 * c-typeck.c (build_binary_op): Don't handle it.
15413 * expr.c (expand_expr, do_jump, do_store_flag): Likewise.
15415 * rtl.def (UNNE): Remove.
15417 * jump.c (reverse_condition): Update accordingly.
15418 (swap_condition): Likewise.
15419 (comparison_dominates_p): Handle unordered comparisons.
15420 (reverse_condition_maybe_unordered): New.
15421 * rtl.h (reverse_condition_maybe_unordered): Declare.
15423 * sparc.c (select_cc_mode): Update for UNNE/LTGT.
15424 (output_cbranch): Use reverse_condition_maybe_unordered and LTGT.
15425 * sparc.h (REVERSIBLE_CC_MODE): Always true. Update docs.
15426 * sparc.md (bltgt): New.
15428 2000-01-25 Nick Clifton <nickc@redhat.com>
15430 * emit-rtl.c (emit_insn): Only check machine class insns for
15431 improper emission of a RETURN.
15433 2000-01-25 Richard Henderson <rth@cygnus.com>
15435 * Makefile.in (flow.o): Depend on $(EXPR_H).
15436 * flow.c (mark_regs_live_at_end): Use hard_function_value, i.e.
15437 duplicate the structure of diddle_return_value for keeping regs live.
15439 2000-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
15441 * loop.c (current_loop_info): Delete.
15442 (consec_sets_invariant_p): Add loop argument, update callers.
15443 (get_condition_for_loop): Likewise.
15444 (count_nonfixed_reads, update_giv_derive): Likewise.
15445 (simplify_giv_expr, general_induction_var): Likewise.
15446 (consec_sets_giv, recombine_givs): Likewise.
15447 (move_movables): Delete loop_start and loop_end arguments,
15448 add loop argument, and update callers.
15449 (find_mem_givs, check_final_value): Likewise.
15450 (record_giv, maybe_eliminate_biv, maybe_eliminate_biv_1): Likewise.
15451 (loop_invariant_p): Rename from invariant_p, add loop argument, and
15453 (basic_induction_var): Add loop argument, delete loop_level argument,
15454 and update callers.
15455 * unroll.c (iteration_info): Delete loop_start and loop_end arguments,
15456 add loop argument, and update callers.
15457 (find_splittable_regs, find_splittable_givs): Likewise.
15458 (reg_dead_after_loop, loop_find_equiv_value): Likewise.
15459 (final_biv_value, final_giv_value, back_branch_in_range_p): Likewise.
15460 (biv_total_increment): Delete loop_start and loop_end arguments;
15462 (precondition_loop_p): Delete loop_start and loop_info arguments;
15464 * loop.h (get_condition_for_loop): Add loop argument.
15465 (biv_total_increment): Delete loop_start and loop_end arguments.
15466 (precondition_loop_p): Delete loop_start and loop_info arguments;
15468 (final_biv_value): Delete loop_start and loop_end arguments;
15470 (final_giv_value, back_branch_in_range_p): Likewise.
15472 2000-01-25 Gavin Romig-Koch <gavin@cygnus.com>
15474 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Fix for mips16.
15476 2000-01-25 Gavin Romig-Koch <gavin@cygnus.com>
15478 * Makefile.in (c-gperf.h) : Change the "See" pointer to
15479 point to the new "generated_files" doc.
15481 2000-01-25 Clinton Popetz <cpopetz@cygnus.com>
15483 * config/fp-bit.c (_unord_f2): Fix typo.
15485 2000-01-25 Zack Weinberg <zack@wolery.cumb.org>
15487 * c-common.c, c-decl.c, c-lang.c, c-lex.c, c-parse.in, c-pragma.c,
15488 c-typeck.c, objc/objc-act.c: Remove all references to obstack
15489 functions obsoleted by GC, such as push_obstacks_nochange,
15490 end_temporary_allocation, savealloc, saveable_tree_cons, etc.
15491 and code which existed only to decide whether or not to call
15492 them. Remove now-unused NESTED argument from start_function;
15493 all callers changed. Do not change behavior based on ggc_p.
15494 The use of the ixp_obstack in c-iterate.c and the util_obstack
15495 in objc/objc-act.c remain; these are not obsoleted by garbage
15497 * c-tree.h: Update prototype for start_function.
15499 * c-parse.y, c-parse.c, objc/objc-parse.c, objc/objc-parse.y: Rebuild.
15501 2000-01-25 Clinton Popetz <cpopetz@cygnus.com>
15503 * config/mips/mips.md (zero_extendsidi2_internal): Disable for
15506 2000-01-25 Richard Henderson <rth@cygnus.com>
15508 * sparc-protos.h (select_cc_mode): Declare.
15509 * sparc.c (select_cc_mode): New. Handle unordered compares.
15510 (output_cbranch): Always reverse via code change. Handle
15511 unordered compares. Factor tests and string updates.
15512 * sparc.h (SELECT_CC_MODE): Split out to select_cc_mode.
15513 (REVERSIBLE_CC_MODE): Also exclude CCFPmode.
15514 * sparc.md (bunordered, bordered): New.
15515 (bungt, bunlt, buneq, bunge, bunle): New.
15517 2000-01-25 Richard Henderson <rth@cygnus.com>
15519 * dwarf2out.c (dwarf2out_init): Use ggc_add_rtx_varray_root.
15520 * ggc-common.c (ggc_add_rtx_varray_root): New.
15521 (ggc_mark_rtx_varray): New.
15522 (ggc_mark_rtx_varray_ptr): New. Shift all ggc_mark_foo_ptr
15523 functions down below ggc_mark_foo.
15524 * ggc.h (ggc_add_rtx_varray_root, ggc_mark_rtx_varray): Declare.
15526 2000-01-25 Richard Henderson <rth@cygnus.com>
15528 * alpha.c (secondary_reload_class): Don't allocate a secondary
15529 for integral mode memories into FLOAT_REGS. Rearrange the more
15530 complicated memory expression inward.
15532 2000-01-25 Zack Weinberg <zack@wolery.cumb.org>
15534 * inclhack.def: Fixes to play nicer with FreeBSD, and
15535 corrections to comments.
15536 (cxx_unready): Add select expression.
15537 (irix_sockaddr): Add bypass expression.
15538 (machine_ansi_h_va_list): New fix.
15539 (stdio_va_list): No need to edit _BSD_VA_LIST_.
15540 Split out addition of "#include <stdarg.h>" to...
15541 (stdio_stdarg_h): ... here.
15542 (systypes_for_aix): Rename to systypes_stdlib_size_t. Apply
15543 to stdlib.h also. Do not munge _BSD_SIZE_T_.
15544 (sysz_stdlib_for_sun): Delete duplicate fix for unprotected
15546 (ultrix_ifdef): Tighten up select expression.
15548 * fixincl.tpl: Exorcise 'exesel'. Rewrite calculations of
15549 re_ct and max_mach to avoid use of shell. Make printed names
15550 match names in inclhack.def. Use static copyright date.
15551 Don't count c_test and test expressions as requiring regex_t
15552 slots. Add some commentary.
15553 * inclhack.tpl: Do not include the 'This script contains N
15554 fixup scripts' line if PROGRAM is defined. Use static
15557 2000-01-24 Jason Merrill <jason@casey.cygnus.com>
15559 * dwarf2out.c: include "varray.h", not dyn-string.h.
15560 (ASM_OUTPUT_DWARF2_ADDR_CONST, ASM_NAME_TO_STRING): Lose.
15561 (addr_const_to_string, addr_to_string): Lose.
15562 (ASM_OUTPUT_DWARF_ADDR_CONST): Copy from dwarfout.c.
15563 (struct dw_val_struct): val_addr is now an rtx.
15564 (add_AT_addr, AT_addr, free_AT, output_aranges): Adjust.
15565 (used_rtx_varray): New varray.
15566 (dwarf2out_init): Initialize it.
15567 (save_rtx): New fn.
15568 (mem_loc_descriptor, add_const_value_attribute): Call it instead of
15570 * arm/telf.h, arm/unknown-elf.h, mn10200.h, mn10300.h,
15571 sparc/sp64-elf.h: Remove definition of ASM_OUTPUT_DWARF2_ADDR_CONST.
15572 * Makefile.in (dwarf2out.o): Update dependencies.
15574 2000-01-24 Richard Henderson <rth@cygnus.com>
15576 * i386.c (i386_dwarf_output_addr_const): New.
15577 * i386.h (ASM_OUTPUT_DWARF_ADDR_CONST): New.
15579 * dwarf2out.c (mem_loc_descriptor): Call ASM_SIMPLIFY_DWARF_ADDR
15581 * dwarfout.c (output_mem_loc_descriptor): Likewise.
15582 * i386.c (i386_simplify_dwarf_addr): New.
15583 * i386.h (ASM_SIMPLIFY_DWARF_ADDR): New.
15585 Mon Jan 24 16:56:10 2000 Jim Wilson <wilson@cygnus.com>
15587 * dwarf2out.c (gen_struct_or_union_type_die): Set complete if
15588 TYPE_STUB_DECL is NULL.
15590 2000-01-24 Richard Henderson <rth@cygnus.com>
15592 * builtins.c (expand_tree_builtin): Move ...
15593 * c-common.c (expand_tree_builtin): ... here.
15595 2000-01-25 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
15597 * loop.h (LOOP_INFO): New accessor macro.
15598 * basic-block.h (struct loop): Rename field `info' to `aux'.
15599 * loop.c (scan_loop): Replace loop->info with LOOP_INFO (loop).
15600 (prescan_loop, strength_reduce, check_dbra_loop, insert_bct): Likewise.
15601 * unroll.c (loop_iterations, unroll_loop): Likewise.
15603 2000-01-24 Christopher Faylor <cgf@cygnus.com>
15605 * config/i386/t-cygwin: Accomodate new winsup directory layout
15606 when searching for include files.
15608 2000-01-24 Richard Henderson <rth@cygnus.com>
15610 * rtl.def: Add unordered fp comparisions.
15611 * tree.def: Likewise.
15612 * tree.h: Add ISO C 9x unordered fp comparision builtins.
15614 * builtins.c (expand_tree_builtin): New function.
15615 * c-typeck.c (build_function_call): Use it.
15616 (build_binary_op): Support unordered compares.
15617 * c-common.c (c_common_nodes_and_builtins): Add unordered compares.
15619 * combine.c (known_cond): Handle reverse_condition returning UNKNOWN.
15620 (reversible_comparison_p): Allow UNORDERED/ORDERED to be reversed.
15621 * cse.c (fold_rtx): Check FLOAT_MODE_P before reversing.
15622 (record_jump_equiv): Handle reverse_condition returning UNKNOWN.
15623 * jump.c (reverse_condition): Don't abort for UNLE etc, but
15625 (swap_condition): Handle unordered compares.
15626 (thread_jumps): Check can_reverse before reversing.
15627 * loop.c (get_condition): Likewise. Allow UNORERED/ORDERED to be
15630 * optabs.c (can_compare_p): New argument CODE. Verify branch or
15631 setcc is present before acking for cmp_optab. Update all callers.
15632 (prepare_float_lib_cmp, init_optabs): Handle UNORDERED.
15633 * expmed.c (do_cmp_and_jump): Update for can_compare_p.
15634 * expr.c (expand_expr): Likewise. Support unordered compares.
15635 (do_jump, do_store_flag): Likewise.
15636 * expr.h (enum libfunc_index): Add unordered compares.
15638 * Makefile.in (FPBIT_FUNCS): Add _unord_sf.
15639 (DPBIT_FUNCS): Add _unord_df.
15640 * config/fp-bit.c (_unord_f2): New.
15641 * fp-test.c (main): Try unordered compare builtins.
15643 * alpha-protos.h (alpha_fp_comparison_operator): Declare.
15644 * alpha.c (alpha_comparison_operator): Check mode properly.
15645 (alpha_swapped_comparison_operator): Likewise.
15646 (signed_comparison_operator): Likewise.
15647 (alpha_fp_comparison_operator): New.
15648 (alpha_emit_conditional_branch): Handle unordered compares.
15649 * alpha.h (PREDICATE_CODES): Update.
15650 * alpha.md (fp compares): Use alpha_fp_comparison_operator.
15651 (bunordered, bordered): New.
15653 2000-01-24 Richard Henderson <rth@cygnus.com>
15655 * alpha.c (alpha_emit_xfloating_cvt): Thinko in operand manipulation.
15656 * alpha.md (movtf): New expander, insn, and splitter.
15658 Mon Jan 24 19:49:47 MET 2000 Jan Hubicka <jh@suse.cz>
15660 * reg-stack.c (subst_stack_regs_pat): Handle correctly USEs of
15663 Mon Jan 24 17:37:31 MET 2000 Jan Hubicka <jh@suse.cz>
15665 * i386.h (FIRST_PSEUDO_REGISTER): Set to 21.
15666 (FIXED_REGISTERS, CALL_USED_REGISTERS,
15667 REG_ALLOC_ORDER): Add frame pointer
15668 (FRAME_POINTER_REGNUM): Set to 20
15669 (HARD_FRAME_POINTER_REGNUM): New macro.
15670 (ELIMINABLE_REGS): Eliminate ARG_POINTER and FRAME_POINTER
15671 to HARD_FRAME_POINTER.
15672 (REGNO_OK_FOR_BASE_P): Accept FRAME_POINTER_REGNUM
15673 (REG_OK_FOR_INDEX_NONSTRICT_P): Likewise.
15674 (REG_OK_FOR_BASE_NONSTRICT_P): Likewise.
15675 (HI_REGISTER_NAMES): Add "frame".
15676 (CAN_ELIMINATE): Handle FRAME_POINTER_REGNUM elimination.
15677 (debug_reg): Handle FRAME_POINTER_REGNUM.
15678 (reg_class): Add arg pointer and frame pointer to NON_Q_REGS,
15679 GENERAL_REGS and INDEX_REGS.
15680 * i386.c (SAVED_REGS_FIRST): new macro.
15681 (AT_BP): Use hard_frame_pointer_rtx instead of frame_pointer_rtx
15682 (ix86_decompose_address, memory_address_length): Likewise.
15683 (regclass_map): Add frame pointer.
15684 (call_insn_operand): Handle frame_pointer_rtx.
15685 (reg_no_sp_operand): Likewise.
15686 (ix86_decompose_address): Handle frame_pointer_rtx as stack_pointer_rtx.
15687 (print_operand, legitimize_pic_address): Fix formating.
15688 (ix86_compute_frame_size): Make static, update prototype, new
15689 parameters padding1, padding2, use ix86_nsaved_regs, use
15690 stack_alignment_needed.
15691 (ix86_initial_elimination_offset): Handle FRAME_POINTER_REGNUM
15692 to HARD_FRAME_POINTER_REGNUM conversions.
15693 (ix86_expand_prologue): Handle SAVED_REGS_FIRST prologues.
15694 (ix86_expand_epilogue): Handle SAVED_REGS_FIRST epilogues.
15695 (print_reg): Abort on FRAME_POINTER_REGNUM
15697 Mon Jan 24 16:50:08 MET 2000 Jan Hubicka <jh@suse.cz>
15699 * i386.h (PREDICATE_CODES): Add aligned_operand.
15700 * i386.c (aligned_operand): New function.
15701 (ix86_aligned_p): Kill.
15702 * i386.md (movhi_1): Emit mov for aligned operands.
15703 (promoting peep2s): Use aligned_operand.
15705 2000-01-23 Zack Weinberg <zack@wolery.cumb.org>
15707 * fixinc/fixfixes.c (fix_char_macro_uses): Correct regular
15708 expression to allow underscores in macro names.
15709 (fix_char_macro_defines): Increment scanning pointer.
15711 2000-01-23 Richard Henderson <rth@cygnus.com>
15713 * alpha/osf.h (TARGET_HAS_XFLOATING_LIBS): Define.
15714 * alpha/osf5.h: New file.
15715 * configure.in (alpha-*-osf5): Add it to tm_file.
15717 * emit-rtl.c (operand_subword): Support TFmode on a 64-bit target.
15719 * alpha-protos.h (alpha_emit_xfloating_arith): Declare.
15720 (alpha_emit_xfloating_cvt, function_arg): Declare.
15721 * alpha.c (alpha_emit_conditional_branch): Call
15722 alpha_emit_xfloating_compare for TFmode compares.
15723 (alpha_lookup_xfloating_lib_func): New.
15724 (alpha_compute_xfloating_mode_arg): New.
15725 (alpha_emit_xfloating_libcall): New.
15726 (alpha_emit_xfloating_arith): New.
15727 (alpha_emit_xfloating_compare): New.
15728 (alpha_emit_xfloating_cvt): New.
15729 (print_operand): Add default abort case.
15730 (function_arg): Mind FUNCTION_ARG_PASS_BY_REFERENCE.
15731 * alpha.h (TARGET_HAS_XFLOATING_LIBS): New.
15732 (BIGGEST_ALIGNMENT): Increase to 128 bits.
15733 (RETURN_IN_MEMORY): True for TF/TCmode.
15734 (ALPHA_ARG_SIZE): TF/TCmode is passed indirect.
15735 (FUNCTION_ARG): Move to function_arg.
15736 (FUNCTION_ARG_PASS_BY_REFERENCE): New.
15737 (ASM_OUTPUT_LONG_DOUBLE): New.
15738 (ASM_OUTPUT_DOUBLE): Always output bits.
15739 * alpha.md (addtf3, divtf3, multf3, subtf3, cmptf): New.
15740 (fix_trunctfdi2, floatditf2, floatunsditf2): New.
15741 (extenddftf2, trunctfdf2): New.
15743 2000-01-23 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
15745 * config/sparc/sol2-sld-64.h (TRANSFER_FROM_TRAMPOLINE): Moved...
15746 * config/sparc/sol2.h: ... here.
15748 2000-01-24 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
15750 * basic-block.h (struct loops): New field `levels'.
15751 * flow.c (flow_loops_level_compute): Traverse all outer loops.
15752 (flow_loop_level_compute): Initialise level to 1.
15753 (flow_loops_find): Set loops->levels.
15754 (flow_loops_dump): Print loops->levels.
15756 2000-01-23 Richard Henderson <rth@cygnus.com>
15758 * libgcc2.c (dwarf_reg_size_table): Size with DWARF_FRAME_REGISTERS.
15759 (throw_helper): Iterate over DWARF_FRAME_REGISTERS.
15761 2000-01-23 Richard Henderson <rth@cygnus.com>
15763 * i386.c (dbx_register_map, svr4_dbx_register_map): New.
15764 * i386.h (DBX_REGISTER_NUMBER): Use them.
15765 * i386/beos-elf.h, i386/freebsd-elf.h, i386/i386elf.h: Likewise.
15766 * i386/linux.h, i386/osfrose.h, i386/ptx4-i.h: Likewise.
15767 * i386/rtemself.h, i386/sco5.h, i386/sysv4.h: Likewise.
15768 * i386/sequent.h: Kill incorrect comment.
15770 2000-01-23 Mark Mitchell <mark@codesourcery.com>
15772 * ggc-page.c (struct page_entry): Make `context_depth' an
15774 (struct globals): Likewise.
15776 2000-01-23 Clinton Popetz <cpopetz@cygnus.com>
15778 * loop.c (check_dbra_loop): When checking a loop for
15779 reversability, check the source of any stores to ensure
15780 they don't depend on an initial value.
15782 2000-01-23 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
15784 * config/c4x/c4x.h (ASM_OUTPUT_BSS): Redefine.
15786 2000-01-22 Zack Weinberg <zack@wolery.cumb.org>
15788 * fixinc/fixincl.c: Move declarations of 'pz_fname' and
15789 'pz_scan' into scope of entire function. Only affects
15790 compiles with -DDEBUG.
15792 2000-01-22 Alan Modra <alan@SPRI.Levels.UniSA.Edu.Au>
15794 * config/elfos.h (UNIQUE_SECTION): Restore uninitialised data
15795 section naming to that prior to 2000-01-07 patch.
15796 * config/mips/elf.h (UNIQUE_SECTION): Ditto.
15797 * config/mips/elf64.h (UNIQUE_SECTION): Ditto.
15798 * config/mips/iris6gld.h (UNIQUE_SECTION): Ditto.
15799 * config/i386/interix.c (UNIQUE_SECTION): Ditto.
15800 * config/i386/winnt.c (UNIQUE_SECTION): Ditto.
15802 2000-01-22 Bernd Schmidt <bernds@cygnus.co.uk>
15804 * config/arm/arm.c (soft_df_operand): Reject SUBREGs containing a
15807 2000-01-21 Jim Wilson <wilson@cygnus.com>
15809 * fixinc/inclhack.tpl: Test for directory before trying to cd into it.
15810 * fixinc/fixincl.sh, fixinc/inclhack.sh: Regenerate.
15812 2000-01-21 Zack Weinberg <zack@wolery.cumb.org>
15814 * cpphash.c (change_newlines): Delete function.
15815 (struct argdata): Delete 'newlines' and 'use_count' fields.
15816 (macroexpand): Remove code referencing those fields.
15818 2000-01-22 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
15820 * loop.c (loops_info): New variable.
15821 (loop_optimize): Allocate loops->array and free it on exit.
15822 Allocate memory for loops_info and assign to each loop,
15824 (find_and_verify_loops): Do not allocate loops->array.
15826 2000-01-21 Zack Weinberg <zack@wolery.cumb.org>
15828 * fixinc/fixfixes.c (machine_name_fix): Don't free 'scratch'.
15830 2000-01-21 Jakub Jelinek <jakub@redhat.com>
15832 * config/sparc/sparc.md (movsi_pic_label_ref): Avoid creating new
15833 pseudos if expanded after first flow.
15834 (movdi_pic_label_ref): Likewise.
15836 2000-01-20 Richard Henderson <rth@cygnus.com>
15838 * jump.c (jump_optimize_1): Don't do addr_vec optimizations at -O0.
15840 2000-01-20 Zack Weinberg <zack@wolery.cumb.org>
15842 * Makefile.in (fixinc.sh): Depend on specs.
15843 * fixinc/Makefile.in: Add rule to create machname.h.
15844 (fixlib.o): Depend on machname.h.
15845 * fixinc/fixtests.c (machine_name): New test.
15846 * fixinc/fixfixes.c (machine_name): New fix.
15847 * fixinc/fixlib.c (mn_get_regexps): New helper function for
15848 the machine_name test and fix.
15849 * fixinc/fixlib.h: Prototype it.
15850 * fixinc/inclhack.def (machine_name): Use the C test and fix.
15851 * fixinc/fixincl.x, fixinc/inclhack.sh: Rebuild.
15853 * gcc.c (do_spec_1) [case P]: Take care not to create
15854 identifiers with three leading or trailing underscores.
15856 * fixinc/Makefile.in (FIXINC_DEFS): Add -DIN_GCC.
15857 (fixincl): Don't specify libraries twice on link line.
15858 (gnu-regex.o): Remove special rule.
15859 * fixinc/gnu-regex.c: Define REGEX_MALLOC if C_ALLOCA was
15860 defined by config.h. Do not define _REGEX_RE_COMP.
15861 (regcomp): Allocate and initialize a fastmap.
15862 * fixinc/gnu-regex.h: Do not define _REGEX_RE_COMP.
15864 2000-01-20 Brad Lucier <lucier@math.purdue.edu>
15866 * Makefile.in (predict.o): Depend on $(EXPR_H), not expr.h.
15868 2000-01-19 Richard Henderson <rth@cygnus.com>
15870 * flow.c (propagate_block): Replace FIRST, LAST and BNUM
15871 arguments with BB. Update all callers. Tidy line wrapping.
15873 2000-01-19 Clinton Popetz <cpopetz@cygnus.com>
15875 * emit-rtl.c (try_split): Return last_insn if we split the
15878 Thu Jan 20 01:01:23 MET 2000 Jan Hubicka <jh@suse.cz>
15880 * i386-protos.h (ix86_compute_frame_size): Remove prototype.
15881 (ix86_initial_elimination_offset): Declare.
15882 * i386.c (ix86_nsaved_regs): Break out from ...
15883 (ix86_can_use_return_insn_p): ... here.
15884 (ix86_emit_save_regs): Break out from ...
15885 (ix86_expand_prologue): ... here.
15886 (ix86_emit_epilogue_esp_adjustment, ix86_emit_restore_regs): Break
15888 (ix86_expand_epilogue): ... here.
15889 (ix86_compute_frame_size): Make static, add prototype.
15890 (ix86_initial_elimination_offset): Break out from ...
15891 * i386.h (INITIAL_ELIMINATION_OFFSET): ... here.
15893 2000-01-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15895 * recog.h (OUT_FCN): Delete.
15897 * vax.md: Call `get_insn_template' instead of OUT_FCN.
15899 2000-01-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15901 * cppalloc.c: PROTO -> PARAMS.
15902 * cpperror.c: Likewise.
15903 * cppfiles.c: Likewise.
15904 * cpplib.c: Likewise.
15905 * cpplib.h: Likewise.
15907 * config/arm/arm-protos.h: PROTO -> PARAMS.
15908 * config/arm/arm.c: Likewise.
15909 * config/c4x/c4x.c: Likewise.
15910 * config/fr30/fr30-protos.h: Likewise.
15911 * config/nextstep.c: Likewise.
15912 * config/pa/pa.c: Likewise.
15913 * config/pj/pj.c: Likewise.
15914 * config/rs6000/rs6000.c: Likewise.
15915 * config/v850/v850-protos.h: Likewise.
15916 * config/v850/v850.c: Likewise.
15918 2000-01-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15920 * i370-protos.h: New file.
15922 * i370.c: Include tm_p.h. Fix compile time warnings.
15924 * i370.h: Move prototypes to i370-protos.h. Fix compile time
15927 * i370.md: Likewise.
15929 2000-01-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15931 * real.c (enan, einan, eiisnan, eiisneg, make_nan): Wrap in NANS.
15932 (target_isinf, target_isnan, eisnan): Mark parameter with
15934 (eiisinf): Wrap in INFINITY.
15935 (etoe113, etoe64, etoe53, etoe24): Wrap label `nonorm' in INFINITY.
15936 (ibmtoe): Remove unused variable `rndsav'.
15938 Wed Jan 19 20:23:06 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
15940 * sh.h (PASS_IN_REG_P): Remove extraneous paranthesis.
15941 (GO_IF_LEGITIMATE_ADDRESS): Added missing tab.
15943 2000-01-19 Zack Weinberg <zack@wolery.cumb.org>
15945 * fixinc/Makefile.in: Correct dependencies of fixincl and fixincl.o.
15946 * fixinc/fixfixes.c (IO_use, CTRL_use, IO_defn, CTRL_defn): New fixes.
15947 (fix_char_macro_defines, fix_char_macro_uses): New functions.
15949 * fixinc/fixlib.c (is_cxx_header): Do the text scan with a regexp.
15950 Recognize Emacs mode markers also.
15951 * fixinc/fixtests.c (else_endif_label): Fix bug in recognition of
15952 C++ comments in C++ headers. Call is_cxx_header only if
15955 * fixinc/inclhack.def (avoid_bool): Add select for the problem and
15956 bypass for ncurses.
15957 (bsd43_io_macros, io_def_quotes, ioctl_fix_ctrl): Replace with...
15958 (io_def_quotes, io_use_quotes, ctrl_def_quotes, ctrl_use_quotes):
15959 ... these, which use the new C fixes.
15960 (math_exception): Escape literal '+' in bypass expression.
15962 * fixinc/fixincl.x, fixinc/fixincl.sh, fixinc/inclhack.sh:
15965 2000-01-19 Geoff Keating <geoffk@cygnus.com>
15967 * rtlanal.c (reg_referenced_p): A CLOBBER of a MEM uses any REGs
15970 2000-01-20 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
15972 * loop.c (loop_optimize): Allocate loop_info structure for each loop
15973 prior to calling scan_loop.
15975 Wed Jan 19 19:54:38 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
15977 * sh.c (find_barrier, gen_block_redirect): Fix indentation.
15978 (split_branches, calc_live_regs): Likewise.
15980 Wed Jan 19 19:12:36 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
15982 * sh.md (fpu_single, fp_mode): New attributes.
15984 2000-01-20 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
15986 * loop.c (current_loop_info): Renamed from loop_info_data
15987 and changed to a pointer.
15988 (loop_optimize): Allocate loop_info structure for each loop
15989 and initialise to zero.
15990 (scan_loop): Set current_loop_info.
15992 * unroll.c (loop_iterations): Don't abort if REG_USERVAR_P set
15995 2000-01-19 Richard Henderson <rth@cygnus.com>
15997 * stupid.c: Die die die.
15998 * Makefile.in (OBJS): Remove stupid.o.
15999 (stupid.o): Likewise.
16001 * except.c (emit_eh_context): Don't emit USEs for stupid.
16002 * explow.c (probe_stack_range): Likewise.
16003 * flags.h (obey_regdecls): Remove.
16004 * flow.c (find_basic_blocks): Don't run try_merge_blocks
16005 when not optimizing.
16006 (life_analysis): Limit data collection when not optimizing.
16007 (mark_regs_live_at_end): Always mark the return value registers.
16008 (mark_used_regs): Remove dummy RETURN case.
16009 (print_rtl_with_bb): Don't consult obey_regdecls.
16010 * function.c (use_variable, use_variable_after): Remove.
16011 (assign_parms): Consult optimize not obey_regdecls.
16012 (expand_function_start): Don't emit USEs for stupid.
16013 (expand_function_end): Likewise.
16014 * global.c (build_insn_chain): Export.
16015 * integrate.c (expand_inline_function): Kill return-value USE
16017 * jump.c (jump_optimize_1): Do simple jump optimizations and
16018 dead code elimination.
16019 (calculate_can_reach_end): Remove check_deleted argument.
16020 (delete_insn): Patch out insns even when not optimizing.
16021 * local-alloc.c (block_alloc): Don't do tying when not optimizing.
16022 * rtl.h (use_variable, use_variable_after): Remove declarations.
16023 (build_insn_chain): Declare.
16024 * stmt.c (expand_value_return): Don't emit USEs for stupid.
16025 (expand_end_bindings): Likewise.
16026 (expand_decl): Likewise. Consult optimize not obey_regdecls.
16027 * toplev.c (obey_regdecls): Remove.
16028 (rest_of_compilation): Don't set it. Kill stupid in favour of
16029 flow1, local-alloc, and reload.
16030 (main): Don't set obey_regdecls.
16032 * config/nextstep.c (handle_pragma): Likewise.
16034 * alpha/alpha.md (allocate_stack): Don't emit USEs for stupid.
16036 * arm/arm.h (CONDITIONAL_REGISTER_USAGE): Don't fix reg 0 for stupid.
16038 2000-01-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16040 * alpha-protos.h: PROTO -> PARAMS.
16041 * alpha.c: Likewise.
16043 * h8300.c: Likewise.
16044 * i386-protos.h: Likewise.
16045 * i386.c: Likewise.
16046 * m32r-protos.h: Likewise.
16047 * m32r.c: Likewise.
16048 * mips.c: Likewise.
16049 * mips.md: Likewise.
16050 * gmon-sol2.c: Likewise.
16051 * sparc.c: Likewise.
16053 2000-01-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16055 * ns32k-protos.h: New file.
16057 * ns32k.c: Fix compile time warnings.
16059 * ns32k.h: Move prototypes to ns32k-protos.h. Fix compile time
16062 * ns32k.md: Likewise.
16064 2000-01-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16066 * vax-protos.h: New file.
16068 * vax.c: Fix compile time warnings.
16070 * vax.h: Move prototypes to vax-protos.h. Fix compile time
16073 * vax.md: Likewise.
16075 * vaxv.md: Likewise.
16077 2000-01-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16079 * romp-protos.h: New file.
16081 * romp.c: Fix compile time warnings.
16083 * romp.h: Move prototypes to romp-protos.h. Fix compile time
16086 * romp.md: Likewise.
16088 2000-01-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16090 * we32k-protos.h: New file.
16092 * we32k.c: Fix compile time warnings.
16094 * we32k.h: Move prototypes to we32k-protos.h. Fix compile time
16097 2000-01-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16099 * calls.c (emit_call_1): Mark parameter with ATTRIBUTE_UNUSED.
16101 * except.c (eh_regs): Likewise.
16103 * final.c (output_operand): Likewise.
16105 * fold-const.c (target_isinf, target_isnan): Likewise.
16107 Tue Jan 18 16:19:55 MET 2000 Jan Hubicka <hubicka@freesoft.cz>
16109 * i386.h (BIGGEST_ALIGNMENT): Set to 128.
16110 (BIGGEST_FIELD_ALIGNMENT): Set to (TARGET_ALIGN_DOUBLE ? 64 : 32)
16112 * i386.md (memstr): Do not use rep stosb for counts divisible by 4
16113 when optimize_size.
16114 (clrstrsi): Rewrite.
16115 (strsethi, strsetqi): New expanders.
16116 (strsethi_1, strsetqi_1, rep_stossi, rep_stosqi): New insn patterns.
16117 (cmpstrsi): Emit compare insn before cmpstrsi_1
16118 (cmpstrsi_nz): use flags, set type to str, prefix_length to 1.
16119 (strlensi_1): Likewise.
16120 (cmpstrsi_1): Likewise; do not output compare.
16121 (strlen expander): Do not unroll when optimizing for size.
16122 (*subsi3_carry): Rename to subsi3_carry
16123 (addqi3_cc): New pattern.
16124 * i386.h (processor_costs): Add move_ratio field.
16125 (MOVE_RATIO): Use move_ratio field, set to 3 for OPTIMIZE_SIZE
16126 * i386.c (*_cost): Set move_ratio.
16127 (x86_unroll_strlen): Enable for Athlon, PPro and K6 too.
16128 (x86_expand_strlensi_1): Rewrite the main loop.
16130 2000-01-17 Richard Henderson <rth@cygnus.com>
16132 * combine.c (combine_simplify_rtx): Give FLOAT_STORE_FLAG_VALUE a mode.
16133 * cse.c (find_comparison_args, fold_rtx): Likewise.
16134 * integrate.c (subst_constants): Likewise.
16135 * loop.c (get_condition): Likewise.
16137 * tm.texi (FLOAT_STORE_FLAG_VALUE): Update docs.
16139 * alpha.h (FLOAT_STORE_FLAG_VALUE): Use REAL_VALUE_ATOF.
16141 2000-01-18 Martin v. Löwis <loewis@informatik.hu-berlin.de>
16143 * c-parse.in (SAVE_WARN_FLAGS): Create an INTEGER_CST.
16144 (RESTORE_WARN_FLAGS): Unpack it.
16145 Change semantic type of extension to ttype.
16146 * c-common.c (split_specs_attrs): Expect an INTEGER_CST.
16147 * c-parse.y, c-parse.c, objc/objc-parse.y,
16148 objc/objc-parse.c: Regenerate.
16150 2000-01-17 Zack Weinberg <zack@wolery.cumb.org>
16152 * fixinc/fixlib.c: Add copyright notice.
16153 (compile_re): New function.
16154 * fixinc/fixlib.h: Prototype compile_re.
16156 * fixinc/fixfixes.c, fixinc/fixtests.c, fixinc/fixincl.c:
16157 Use compile_re to compile regular expressions.
16159 * fixinc/fixincl.c (egrep_test): Don't bother asking regexec
16160 where the pattern matched.
16162 * fixinc/inclhack.def (sun_memcpy): Move to AAB_sun_memcpy,
16164 (ultrix_ansi_compat): Likewise.
16165 (interactv_add1): Rename to 'isc_omits_with_stdc', remove shell test,
16167 (interactv_add2, interactv_add3): Delete.
16168 (x11_sprintf): Don't use filename glob.
16169 * fixinc/fixincl.x, fixinc/inclhack.sh, fixinc/fixincl.sh:
16172 2000-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16174 * print-rtl.c: PROTO -> PARAMS.
16175 * real.c: Likewise.
16176 * reg-stack.c: Likewise.
16177 * resource.c: Likewise.
16178 * sdbout.h: Likewise.
16179 * simplify-rtx.c: Likewise.
16180 * stor-layout.c: Likewise.
16181 * stupid.c: Likewise.
16182 * xcoffout.c: Likewise.
16183 * xcoffout.h: Likewise.
16185 2000-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16187 * toplev.c: PROTO -> PARAMS.
16188 * toplev.h: Likewise.
16189 * tree.c: Likewise.
16190 * tree.h: Likewise.
16191 * unroll.c: Likewise.
16192 * varasm.c: Likewise.
16193 * varray.c: Likewise.
16194 * varray.h: Likewise.
16196 2000-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16198 * reload.c: PROTO -> PARAMS.
16199 * reload.h: Likewise.
16200 * reload1.c: Likewise.
16201 * reorg.c: Likewise.
16202 * resource.h: Likewise.
16205 * rtlanal.c: Likewise.
16206 * sbitmap.h: Likewise.
16207 * sdbout.c: Likewise.
16208 * stack.h: Likewise.
16209 * stmt.c: Likewise.
16210 * system.h: Likewise.
16212 2000-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16214 * machmode.h: PROTO -> PARAMS.
16215 * mbchar.h: Likewise.
16216 * mips-tdump.c: Likewise.
16217 * mips-tfile.c: Likewise.
16218 * optabs.c: Likewise.
16219 * output.h: Likewise.
16220 * prefix.c: Likewise.
16221 * profile.c: Likewise.
16222 * protoize.c: Likewise.
16223 * real.h: Likewise.
16224 * recog.c: Likewise.
16225 * recog.h: Likewise.
16226 * regclass.c: Likewise.
16227 * regmove.c: Likewise.
16228 * regs.h: Likewise.
16230 2000-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16232 * ggc-common.c: PROTO -> PARAMS.
16233 * ggc-page.c: Likewise.
16234 * ggc-simple.c: Likewise.
16236 * global.c: Likewise.
16237 * graph.c: Likewise.
16238 * gthr-win32.h: Likewise.
16239 * haifa-sched.c: Likewise.
16240 * halfpic.h: Likewise.
16241 * integrate.c: Likewise.
16242 * integrate.h: Likewise.
16243 * jump.c: Likewise.
16245 * local-alloc.c: Likewise.
16246 * loop.c: Likewise.
16247 * loop.h: Likewise.
16249 2000-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16251 * genattr.c: PROTO -> PARAMS.
16252 * genattrtab.c: Likewise.
16253 * gencheck.c: Likewise.
16254 * gencodes.c: Likewise.
16255 * genconfig.c: Likewise.
16256 * genemit.c: Likewise.
16257 * genextract.c: Likewise.
16258 * genflags.c: Likewise.
16259 * gengenrtl.c: Likewise.
16260 * genopinit.c: Likewise.
16261 * genoutput.c: Likewise.
16262 * genpeep.c: Likewise.
16263 * genrecog.c: Likewise.
16265 2000-01-16 Mark Mitchell <mark@codesourcery.com>
16267 * tree.h (BINFO_VPTR_FIELD): Augment documentation.
16269 2000-01-16 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
16271 * aclocal.m4 (AC_FUNC_MMAP_ZERO): New macro.
16272 * configure.in (AC_FUNC_MMAP_ZERO): Use instead of AC_FUNC_MMAP.
16273 * ggc-page.c: Replace HAVE_MMAP with HAVE_MMAP_ZERO.
16274 * configure, config.in: Rebuilt.
16276 2000-01-16 Zack Weinberg <zack@wolery.cumb.org>
16278 * config/i386/i386.md: Add peephole to merge successive stack
16281 Sat Jan 15 15:41:14 EST 2000 John Wehle (john@feith.com)
16283 * gcse.c (insert_insn_end_bb): Use emit_block_insn_before
16284 instead of emit_insn_before. Also handle NOTE_INSN_BASIC_BLOCK
16285 when walking backwards to find all the parameter loads when
16286 the basic block ends in a call.
16288 2000-01-15 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
16290 * loop.c (this_loop_info): Delete.
16291 (uid_loop): Add in place of uid_loop_num. All uses updated.
16292 (loop_number_exit_count): Delete and replace with entry in loop
16293 structure. All uses updated.
16294 (loop_number_loop_starts, loop_number_loop_ends): Likewise.
16295 (loop_number_loop_cont, loop_number_cont_dominator): Likewise.
16296 (loop_outer_loop): Likewise.
16297 (loop_invalid, loop_number_exit_labels): Likewise.
16298 (loop_used_count_register): Delete and replace with entry in
16299 loop_info structure.
16300 (find_and_verify_loops): Add loops argument.
16301 (verify_dominator, mark_loop_jump, prescan_loop): Replace loop_start,
16302 loop_end, etc. arguments with loop structure pointer. All callers
16304 (loop_reg_used_before_p, scan_loop, strength_reduce): Likewise.
16305 (check_dbra_loop, next_insn_in_loop, try_copy_prop): Likewise.
16306 (load_mems_and_recount_loop_regs_set, load_mems): Likewise.
16307 (insert_bct): Likewise.
16308 (basic_induction_var): New argument level.
16309 * loop.h (struct loop_info): Delete fields num, loops_enclosed,
16310 vtop, and cont. Add used_count_register.
16311 (uid_loop): Delete declaration.
16312 (loop_number_exit_count): Likewise.
16313 (loop_number_loop_starts, loop_number_loop_ends): Likewise.
16314 (loop_number_loop_cont, loop_number_cont_dominator): Likewise.
16315 (loop_outer_loop, loop_used_count_register): Likewise.
16316 (loop_invalid, loop_number_exit_labels): Likewise.
16317 (unroll_loop): Replace loop_start and loop_end arguments
16318 with loop structure pointer.
16319 (loop_precondition_p, loop_iterations): Likewise.
16320 Include basic-block.h.
16321 * unroll.c: (unroll_loop): Replace loop_start and loop_end arguments
16322 with loop structure pointer.
16323 (loop_precondition_p, loop_iterations): Likewise.
16324 * basic-block.h (struct loop): New entries vtop, cont,
16325 cont_dominator, start, end, top, scan_start, exit_labels,
16327 * Makefile.in (LOOP_H): Add basic-block.h to dependencies.
16329 2000-01-15 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
16331 * defaults.h (ASM_OUTPUT_ASCII): Use ISDIGIT.
16333 2000-01-14 Nathan Sidwell <sidwell@codesourcery.com>
16335 * config.in: Rebuilt for 2000-01-13 change to acconfig.h.
16337 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16339 * pdp11-protos.h: New file.
16341 * pdp11.c: Include tm_p.h. Add static prototypes. Fix compile
16344 * pdp11.h: Move prototypes to pdp11-protos.h. Fix compile time
16347 * pdp11.md: Likewise.
16349 * 2bsd.h: Likewise.
16351 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16353 * mn10300-protos.h: New file.
16355 * mn10300.c: Include tm_p.h. Add static prototypes. Fix compile
16358 * mn10300.h: Move prototypes to mn10300-protos.h. Fix compile time
16361 * mn10300.md: Likewise.
16363 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16365 * mn10200-protos.h: New file.
16367 * mn10200.c: Include tm_p.h. Add static prototypes. Fix compile
16370 * mn10200.h: Move prototypes to mn10200-protos.h. Fix compile time
16373 * mn10200.md: Likewise.
16375 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16377 * h8300-protos.h: New file.
16379 * h8300.c: Include tm_p.h. Add static prototypes. Fix compile
16382 * h8300.h: Move prototypes to h8300-protos.h. Fix compile time
16385 * h8300.md: Likewise.
16387 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16389 * varasm.c (asm_output_bss): Mark parameters with ATTRIBUTE_UNUSED.
16390 (asm_emit_uninitialised): Likewise.
16392 2000-01-13 Gavin Romig-Koch <gavin@cygnus.com>
16394 * config/mips/mips.h (ISA_HAS_INT_CONDMOVE): New.
16395 * config/mips/mips.md: Use ISA_HAS_INT_CONDMOVE.
16397 2000-01-14 Clinton Popetz <cpopetz@cygnus.com>
16399 * config/mips/mips.c (override_options): Don't turn on extra
16400 alignment for mips16.
16402 2000-01-14 Clinton Popetz <cpopetz@cygnus.com>
16404 * config/mips/mips.c (mips_va_arg): Fix fprv for the 32 bit
16405 eabi, and make sure queued POSTINCREMENT rtl is emitted at
16408 2000-01-14 Clinton Popetz <cpopetz@cygnus.com>
16410 * builtins.c (PAD_VARARGS_DOWN): Define.
16411 (std_expand_builtin_va_arg): Use the above macro.
16412 * config/mips/mips.h (PAD_VARARGS_DOWN): Define.
16413 * tm.texi (Register Arguments): Document the above macro.
16415 2000-01-14 Nick Clifton <nickc@cygnus.com>
16417 * emit-rtl.c (emit_insn): If checking is enabled, make sure
16418 that this function has not been used to emit a jump
16421 * jump.c (return_jump_1): Cope with being passed a null rtx.
16423 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16425 * eh-common.h: PROTO -> PARAMS.
16426 * emit-rtl.c: Likewise.
16427 * errors.c: Likewise.
16428 * errors.h: Likewise.
16429 * except.c: Likewise.
16430 * except.h: Likewise.
16431 * explow.c: Likewise.
16432 * expmed.c: Likewise.
16433 * expr.c: Likewise.
16434 * expr.h: Likewise.
16435 * final.c: Likewise.
16436 * fix-header.c: Likewise.
16437 * flow.c: Likewise.
16438 * fold-const.c: Likewise.
16439 * function.c: Likewise.
16440 * function.h: Likewise.
16442 * gcov-io.h: Likewise.
16443 * gcov.c: Likewise.
16444 * gcse.c: Likewise.
16446 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16448 * sh-protos.h: New file.
16450 * sh.c: Include insn-config.h, toplev.h, recog.h and tm_p.h.
16451 Add static prototypes. Fix compile time warnings.
16453 * sh.h: Move prototypes to sh-protos.h. Fix compile time warnings.
16457 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16459 * arc-protos.h: New file.
16461 * arc.c: Include tm_p.h. Add static prototypes. Fix compile
16464 * arc.h: Move prototypes to arc-protos.h. Fix compile time
16467 * arc.md: Likewise.
16469 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16471 * dsp16xx-protos.h: New file.
16473 * dsp16xx.c: Include tm_p.h. Add static prototypes. Fix compile
16476 * dsp16xx.h: Move prototypes to dsp16xx-protos.h. Fix compile time
16479 * dsp16xx.md: Likewise.
16481 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16483 * convex-protos.h: New file.
16485 * convex.c: Include tm_p.h. Add static prototypes. Fix compile
16488 * convex.h: Move prototypes to convex-protos.h. Fix compile time
16491 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16493 * elxsi-protos.h: New file.
16495 * elxsi.c: Include tm_p.h. Add static prototypes. Fix compile
16498 * elxsi.h: Move prototypes to elxsi-protos.h. Fix compile time
16501 * elxsi.md: Likewise.
16503 2000-01-14 Clinton Popetz <cpopetz@cygnus.com>
16505 * config/mips/mips.h (REGISTER_MOVE_COST): Remove redundant
16506 case for moving from HI/LO/HI_LO_REG. This makes the behavior
16507 match the comment for MIPS16.
16509 Fri Jan 14 00:28:06 2000 Jeffrey A Law (law@cygnus.com)
16511 * flow.c (split_edge): Do not call set_block_for_insn if we
16512 do not have a basic_block_for_insn structure.
16514 * fr30.h (TRAMPOLINE_TEMPLATE): Use nops to ensure the static chain
16515 and destination functions are 32bit aligned within the trampoline.
16516 (TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE): Corresponding changes.
16517 (TRAMPOLINE_ALIGNMENT): Define.
16519 * cse.c (cse_insn): When changing (set (pc) (reg)) to
16520 (set (pc) (label_ref)), verify the change creates a valid insn.
16522 * fr30.c (call_operand): Tighten and rework to match rules for
16523 call RTL expressions.
16524 * fr30.h (PREDICATE_CODES, case call_operand): Only allow MEMs.
16525 * fr30.md (call patterns): Improve constraints.
16527 Thu Jan 13 23:44:03 2000 Richard Henderson <rth@cygnus.com>
16529 * fr30.c (fr30_expand_epilogue): Revert last change.
16530 Use emit_jump_insn for the return insn.
16532 Thu Jan 13 14:46:03 2000 Jason Eckhardt <jle@cygnus.com>
16533 Stan Cox <scox@cygnus.com>
16535 * predict.c: New file. Preliminary infrastructure work for static
16536 branch prediction and basic block reordering.
16537 * basic-block.h: Add prototype for estimate_probability.
16538 * Makefile.in: Add rules for predict.o.
16540 2000-01-13 Jason Merrill <jason@yorick.cygnus.com>
16542 * fixincludes (va_list): Use __not_va_list__ for the dummy.
16543 * fixinc/*: Likewise.
16545 2000-01-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16547 * cccp.c: PROTO -> PARAMS.
16548 * cexp.y: Likewise.
16549 * collect2.c: Likewise.
16550 * combine.c: Likewise.
16551 * convert.h: Likewise.
16553 * dbxout.c: Likewise.
16554 * dbxout.h: Likewise.
16555 * diagnostic.c: Likewise.
16556 * doprint.c: Likewise.
16557 * dwarf2out.c: Likewise.
16558 * dwarf2out.h: Likewise.
16559 * dwarfout.c: Likewise.
16560 * dwarfout.h: Likewise.
16561 * dyn-string.h: Likewise.
16563 2000-01-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16565 * calls.c (emit_call_1): Wrap varaible `struct_value_size_rtx' in
16566 macro conditionals guarding use.
16568 * dwarf2out.c: Include "tm_p.h".
16570 * function.c (locate_and_pad_parm): Mark parameter with
16572 (expand_function_end): Likewise for variable `context'.
16574 * reorg.c (make_return_insns): Wrap prototype in macro HAVE_return.
16576 2000-01-13 Nick Clifton <nickc@cygnus.com>
16578 * config/fr30/fr30.c (fr30_expand_epilogue): Emit USEs of pop'ed
16579 register to prevent compile time warnings.
16581 2000-01-13 Zack Weinberg <zack@wolery.cumb.org>
16583 * longlong.h [i386] (udiv_qrnnd): Rename 'd' argument to 'dv'
16584 to avoid -Wtraditional warning.
16586 2000-01-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16588 * 1750a-protos.h: New file.
16590 * 1750a.c: Include tm_p.h. Add static prototypes. Fix compile
16593 * 1750a.h: Move prototypes to 1750a-protos.h. Fix compile time
16596 * 1750a.md: Likewise.
16598 2000-01-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16600 * a29k-protos.h: New file.
16602 * a29k.c: Include tm_p.h. Add static prototypes. Fix compile
16605 * a29k.h: Move prototypes to a29k-protos.h. Fix compile time
16608 2000-01-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16610 * clipper-protos.h: New file.
16612 * clipper.c: Include tm_p.h. Add static prototypes. Fix compile
16615 * clipper.h: Move prototypes to clipper-protos.h. Fix compile time
16618 Thu Jan 13 16:03:06 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
16620 * reload1.c (reload_combine_note_store): Use HARD_REGNO_NREGS.
16622 2000-01-13 Nathan Sidwell <sidwell@codesourcery.com>
16624 * configure.in (--enable-new-gxx-abi): New option.
16625 * acconfig.h (ENABLE_NEW_GXX_ABI): New define.
16626 * Makefile.in (GXX_ABI_FLAG): New variable.
16627 * configure: Regenerate.
16629 2000-01-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
16631 * stor-layout.c (layout_type): Use FORCE_STRUCT_BLK.
16632 * tm.texi (FORCE_STRUCT_BLK): Document.
16633 * config/c4x/c4x.h (FORCE_STRUCT_BLK): New macro.
16635 Wed Jan 12 23:12:47 2000 Hans-Peter Nilsson <hp@axis.com>
16637 * config/ns32k/ns32k.md: Revert Jan 9 change.
16639 * genrecog.c (maybe_both_true_2): Do not compare a predicate-test
16640 to a mode-test, if the predicate is address_operand.
16642 Wed Jan 12 22:34:00 2000 Jeffrey A Law (law@cygnus.com)
16644 * combine.c (if_then_else_cond): Be careful about what kinds
16645 of RTL expressions are passed to operand_subword.
16647 * flow.c (split_edge): If we have to insert a new jump, make
16648 sure to associate it with a basic block.
16650 * flow.c (commit_one_edge_insertion): A block with one successor
16651 can end in a JUMP_INSN that is not a simplejump.
16653 2000-01-12 Robert Lipe <robertl@sco.com>
16655 * i386/sco5.h (INIT_SECTION_ASM_OP_COFF): Rename section to "ctor".
16656 (BUILD_VA_LIST_TYPE): Define.
16657 (EH_FRAME_SECTION_ASM_OP): Explictly define to better interact
16660 2000-01-12 Jason Merrill <jason@casey.cygnus.com>
16662 * cccp.c (do_pragma): Add cast to (char *).
16664 2000-01-12 Richard Henderson <rth@cygnus.com>
16665 Fred Fish <fnf@be.com>
16666 Jason Merrill <jason@cygnus.com>
16668 * configure.in (i?86-*-beos{pe,elf,}*): Recognize.
16669 * i386/t-beos, i386/x-beos, i386/xm-beos.h: New files.
16670 * i386/beos-elf.h, i386/beos-pe.h: New files.
16672 * Makefile.in (CROSS_SYSTEM_HEADER_DIR): New.
16673 * cross-make (SYSTEM_HEADER_DIR): Define using
16674 CROSS_SYSTEM_HEADER_DIR.
16676 * gcc.c (LIBRARY_PATH_ENV): Provide default.
16677 (process_command): Use it.
16678 (main): Likewise. Kill trailing = from env vars.
16679 (build_search_list): Put it back.
16680 * collect2.c (main): Use LIBRARY_PATH_ENV.
16682 * configure.in (GCC_NEED_DECLARATIONS): Add environ.
16683 * toplev.c: Use NEED_DECLARATION_ENVIRON.
16685 * tm.texi (Frame Layout): Document SMALL_STACK.
16686 * c-common.c (c_common_nodes_and_builtins): Check it.
16688 * system.h: Undef alloca after including glibc's <stdlib.h>,
16689 if USE_C_ALLOCA is defined.
16691 * gcc.c (set_input): New fn.
16692 (main): After all input files are compiled, reset the input file
16695 * aclocal.m4 (rindex, index): If already defined, don't attempt
16698 * ginclude/varargs.h: (__va_list__): Define ifndef.
16699 * ginclude/stdarg.h: Likewise.
16701 * ginclude/stddef.h (__WCHAR_TYPE__) [BEOS]: Use int
16702 instead of unsigned char.
16704 * hash.h (true, false, boolean): Undef before enum.
16706 * expmed.c (choose_multiplier): Cast &mhigh_lo and &mhigh_hi to be
16707 proper type of "HOST_WIDE_INT *", rather than their natural type of
16708 "unsigned HOST_WIDE_INT *".
16710 2000-01-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16712 * svr3.h (ASM_FILE_START): Wrap if-clause in squigly brackets.
16714 * recog.c (memory_address_p): Mark parameter with ATTRIBUTE_UNUSED.
16716 * regclass.c (choose_hard_reg_mode): Likewise.
16718 * reload.c (find_valid_class, strict_memory_address_p): Likewise.
16720 * reorg.c (optimize_skip): Wrap prototype in macro conditionals.
16722 2000-01-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16724 * c-common.c: PROTO -> PARAMS.
16725 * c-common.h: Likewise.
16726 * c-decl.c: Likewise.
16727 * c-iterate.c: Likewise.
16728 * c-lang.c: Likewise.
16729 * c-lex.c: Likewise.
16730 * c-lex.h: Likewise.
16731 * c-parse.in: Likewise.
16732 * c-pragma.c: Likewise.
16733 * c-pragma.h: Likewise.
16734 * c-tree.h: Likewise.
16735 * c-typeck.c: Likewise.
16736 * objc/objc-act.c: Likewise.
16737 * objc/objc-act.h: Likewise.
16739 2000-01-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16741 * m88k-protos.h: New file.
16743 * m88k.c: Include tm_p.h. Add static prototypes. Fix compile
16746 * m88k.h: Move prototypes to m88k-protos.h. Fix compile time warnings.
16748 * m88k.md: Likewise.
16750 * tekXD88.h: Likewise.
16752 2000-01-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16754 * m68k-protos.h: New file.
16756 * m68k.c: Include tm_p.h. Add static prototypes. Fix compile
16759 * m68k.h: Move prototypes to m68k-protos.h. Fix compile time warnings.
16761 * mot3300.h: Likewise.
16763 2000-01-12 Richard Earnshaw <rearnsha@arm.com>
16765 * haifa-sched.c (split_edges): Pass edgeset_size as second arg to
16767 (extract_bitlist): Declare bitlen.
16769 2000-01-12 Zack Weinberg <zack@wolery.cumb.org
16771 * cccp.c: Accept and ignore -lang-fortran.
16773 * c-typeck.c (build_c_cast): Issue -Wcast-qual warnings if the
16774 qualifiers don't match at any level of pointerness.
16776 2000-01-12 Robert Lipe <robertl@sco.com>
16778 * i386/sysv5.h (CPP_SPEC, LIBSPEC): Add -pthreadT.
16780 2000-01-12 Bernd Schmidt <bernds@cygnus.co.uk>
16782 * reload1.c (reload_reg_unavailable): New static variable.
16783 (reload_reg_free_p): Test it.
16784 (reload_reg_free_for_value_p): Test it instead of
16786 (choose_reload_regs_init): Compute it.
16788 Wed Jan 12 03:24:41 2000 Toshiyasu Morita (toshi.morita@sega.com)
16790 * reorg.c (fill_slots_from_thread): Check modified_in_p
16793 Wed Jan 12 03:20:31 2000 John Marshall <john_w_marshall@palm.com>
16795 * gcc.texi (Funding, GNU/Linux, Copying, Contributors): Format
16796 these nodes even if INTERNALS is not set.
16798 Wed Jan 12 09:39:22 2000 Nick Burrett <nick.burrett@btinternet.com>
16800 * gcse.c (delete_null_pointer_checks_1): Cope when
16801 get_condition cannot determine the condition.
16803 2000-01-12 Gabriel Dos Reis <gdr@codesourcery.com>
16805 * toplev.h (set_message_length): Declare.
16807 * diagnostic.c (obstack_chunk_alloc): Define macro.
16808 (obstack_chunk_free): Likewise.
16809 (struct output_buffer): New data structure.
16810 (vmessage): Remove.
16811 (output_maximum_width): New variable.
16812 (doing_line_wrapping, set_message_length, init_output_buffer,
16813 get_output_prefix, output_space_left, emit_output_prefix,
16814 output_newline, output_append, output_puts, dump_output,
16815 vbuild_message_string, build_message_string, build_location_prefix,
16816 voutput_notice, output_printf, line_wrapper_printf,
16817 vline_wrapper_message_with_location): New functions. Implement
16818 automatic line wrapping.
16819 (v_message_with_decl): Make it handle automatic line wrapping.
16820 (v_error_with_file_and_line): Likewise.
16821 (v_warning_with_file_and_line): Likewise.
16822 (announce_function): Likewise.
16823 (default_print_error_function): Likewise.
16825 2000-01-11 16:24 -0800 Zack Weinberg <zack@wolery.cumb.org>
16827 * cpplib.h (struct cpp_options): Change lang_asm to char.
16829 * cppinit.c (builtin_array): Take out __STDC_VERSION__, it's
16830 done in cpp_handle_option now.
16831 (initialize_builtins): Take out special case code used only by
16833 (cpp_handle_option): Turn off trigraphs and trigraph warnings
16834 if -traditional. Recognize -lang-fortran and set
16835 lang_fortran, also turn off cplusplus_comments.
16836 (print_help): Document -lang-fortran.
16837 * cpplib.c (handle_directive): Ignore `# 123 "file"' if
16838 lang_asm. Ignore all directives other than `# 123 "file"' if
16840 (cpp_get_token): If -traditional, don't recognize directives
16841 unless the # is in column 1.
16842 (parse_string): If lang_fortran or lang_asm, silently
16843 terminate strings ('' or "") at end of line.
16844 Remove unnecessary braces.
16846 2000-01-11 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
16847 Richard Henderson <rth@cygnus.com>
16849 * resource.c (mark_referenced_resources): Mark a set strict_low_part
16851 * config/i386/i386.c (ix86_expand_setcc): Re-enable clear + set
16852 strict_low_part when possible.
16854 2000-01-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16856 * alias.c: PROTO -> PARAMS.
16857 * basic-block.h: Likewise.
16858 * bitmap.c: Likewise.
16859 * bitmap.h: Likewise.
16860 * builtins.c: Likewise.
16861 * c-aux-info.c: Likewise.
16862 * caller-save.c: Likewise.
16863 * calls.c: Likewise.
16865 2000-01-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16867 * Makefile.in (toplev.o): Depend on regs.h.
16869 * output.h (tdesc_section): Prototype.
16871 * regclass.c (copy_cost): Mark parameters with ATTRIBUTE_UNUSED.
16873 * sdbout.c: Include "tm_p.h".
16875 * toplev.c: Include "regs.h".
16877 Tue Jan 11 11:37:58 2000 Mike Stump <mrs@wrs.com>
16879 * unroll.c (unroll_loop): Add EH support.
16881 2000-01-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16883 * pa-protos.h: New file.
16885 * pa.c: Include recog.h and tm_p.h.
16886 (compute_zdepwi_operands, compute_movstrsi_length,
16887 remove_useless_addtr_insns, store_reg, load_reg, set_reg_plus_d,
16888 find_addr_reg, import_milli): Add static prototypes.
16889 (pa_cpu_string, pa_arch_string): Constify a char*.
16890 (legitimize_pic_address): Pass argument `mode' to pic_label_operand.
16891 (read_only_operand): Add argument `mode'.
16892 (singlemove_string, output_move_double, output_fp_move_double,
16893 output_block_move, output_and, output_ior, output_ascii,
16894 remove_useless_addtr_insns, milli_names, output_mul_insn,
16895 output_div_insn, output_mod_insn, output_arg_descriptor,
16896 output_cbranch, output_bb, output_bvb, output_dbra, ,
16897 output_millicode_call, output_call, hppa_encode_label,
16898 output_parallel_movb, output_parallel_addb): Constify a char*.
16899 (hppa_va_start): Mark parameter `stdarg_p' with ATTRIBUTE_UNUSED.
16900 (output_parallel_addb): Remove extra arg to `constrain_operands'
16902 * pa.h: Move all prototypes to pa-protos.h.
16903 (pa_cpu_string, pa_arch_string): Constify a char*.
16904 (LEGITIMIZE_ADDRESS): Call `symbolic_operand' with mode argument.
16906 * pa.md: Call `function_label_operand' with mode argument.
16907 Likewise for `read_only_operand'.
16908 Fix nesting of parens in call to `symbolic_operand'.
16910 2000-01-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16912 * i860-protos.h: New file.
16914 * i860.c: Include tm_p.h. Add static prototypes. Fix compile
16917 * i860.h: Move prototypes to i860-protos.h. Fix compile time warnings.
16919 * i860.md: Likewise.
16921 Tue Jan 11 18:59:35 MET 2000 Jan Hubicka <jh@suse.cz>
16923 * i386.md (movstrsi expander): Rewrite.
16924 (movstrsi_1 insn): Deleted.
16925 (strmovhi, strmovqi expander): New expanders.
16926 (movshi_1, movsqi_1, rep_movsi, rep_movqi): New patterns.
16927 * i386.c (x86_single_stringop): New global variable.
16928 * i386.h (x86_single_stringop): Declare.
16929 (TARGET_SINGLE_STRINGOP): New macro.
16931 2000-01-11 Clinton Popetz <cpopetz@cygnus.com>
16933 * config/mips/mips.c (mips_va_arg): For EABI, emit the queued
16934 integer vararg POSTINCREMENT before the destination of the jump
16935 for the hard fp case.
16936 (function_arg_pass_by_reference): Pass a copy of CUM to
16939 * config/mips/mips.h (GO_IF_LEGITIMATE_ADDRESS): Move check
16940 for CONSTANT_ADDRESS_P above while loop for subreg.
16942 2000-01-11 Clinton Popetz <cpopetz@cygnus.com>
16944 * flow.c (propagate_block): When a prologue/epilogue insn
16945 is marked dead, unconditionally clear libcall_is_dead and
16946 insn_is_dead, and only dump rtl if warnings aren't being
16949 Tue Jan 11 16:26:47 MET 2000 Jan Hubicka <jh@suse.cz>
16951 * i386.c (ix86_attr_length_default): Handle TYPE_STR and TYPE_CLD.
16952 * i386.md (FIRST_PSEUDO_REGISTER): Set to 20.
16953 (FIXED_REGISTERS): Set dirflag as fixed.
16954 (CALL_USED_REGISTERS): Set dirflag as used.
16955 (REG_ALLOC_ORDER): Set dirflag as last one.
16956 (DIRFLAG_REG): New macro.
16957 (MD_ASM_CLOBBERS): Asm clobber dirflag for backward compatibility.
16958 (HI_REGISTER_NAMES): Add dirflag.
16959 (DEBUF_PRINT_REG): Handle dirflag.
16960 * i386.md (type attribute): New cld and str types.
16961 (length_opcode attribute): Set cld and str to 1.
16962 (memory attribute): Set str to unknown - it is not clear from the
16964 (pent_np function unit): Prefixed string operations takes 12 cycles
16965 minimally; cld takes 2 cycles.
16966 (ppro_uops attribute): Str is "many" and cld is "few".
16967 (ppro_p0 unit): Handle cld here.
16968 (k6_alux unit): Handle cld and str types.
16969 (k6_load unit): It is ocupied by str opcodes.
16970 (k6_store unit): It is ocupied by str opcodes.
16971 (athlon_decode): Str is vector decoded.
16972 (athlon_ieu): Handle str and cld.
16973 (cld pattern): New.
16974 (movstrsi, clrstr, cmpstr, strlen expander): Emit cld instruction
16975 (movstrsi_1, clrstrsi_1, cmpstrsi_1, strlensi_1,
16976 cmpstrsi_nz_1 insn): Do not output cld instruction
16978 Tue Jan 11 06:14:39 2000 David Starner <dstarner98@aasaa.ofe.org>
16980 * gcc.texi (G++ and GCC): Add Java and Chill.
16981 (Bug Critera): Don't list languages.
16983 * gcc.texi (Incompatibilities): No longer claim most C compilers
16986 * gcc.texi (G++ and GCC): Update other front-ends list.
16988 Tue Jan 11 05:49:01 2000 Jeffrey A Law (law@cygnus.com)
16990 * i386.c (ix86_expand_setcc): Fix typo.
16991 (ix86_expand_movcc): Similarly.
16993 * Band-aid until haifa's bitset implementation is nuked.
16994 * haifa-sched.c (extract_bitlst): New parameter for size of the
16995 bitset in bits. All callers changed. Avoid looking at undefined
16996 bits in the bitset.
16997 (edgeset_bitsize): New variable.
16998 (schedule_region): Initialize edgeset_bitsize.
17000 2000-01-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17002 * Makefile.in (optabs.o): Depend on real.h
17003 (resource.o): Depend on insn-attr.h
17005 * builtins.c (result_vector): Wrap prototype in macro conditions
17006 governing definition and use.
17008 * c-common.c: Include tm_p.h.
17010 * c-lex.c: Likewise.
17012 * elfos.h: Constify a char*.
17014 * final.c (align_fuzz): Wrap prototype in macro HAVE_ATTR_length.
17015 (get_attr_length, shorten_branches, profile_after_prologue): Mark
17016 parameter with ATTRIBUTE_UNUSED.
17018 * fold-const.c (exact_real_inverse): Wrap variable `i' in
17021 * haifa-sched.c (schedule_insns): Mark parameter with
17024 * optabs.c: Include real.h.
17026 * real.h (ereal_atof): Add prototype arguments.
17028 * resource.c: Include insn-attr.h.
17030 * sdbout.c (sdbout_queue_anonymous_type,
17031 sdbout_dequeue_anonymous_types): Wrap in macro
17032 SDB_ALLOW_FORWARD_REFERENCES.
17033 (sdbout_init, sdbout_start_new_source_file): Mark parameter with
17036 * stmt.c (expand_return): Wrap variable `op0' in macro HAVE_return.
17038 * stupid.c: Include tm_p.h.
17040 * tree.c (real_value_from_int_cst): Mark parameter with
17043 2000-01-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17045 * i960-protos.h: New file.
17047 * i960.c: Include tm_p.h. Add static prototypes. Fix compile
17050 * i960.h: Move prototypes to i960-protos.h. Fix compile time warnings.
17052 2000-01-10 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
17054 * combine.c (expand_field_assignment): Do not discard SUBREGs
17055 while computing nonzero_bits.
17057 2000-01-09 Nick Clifton <nickc@cygnus.com>
17059 * config/arm/arm.c: Fix compile time warnings about signed vs
17060 unsigned constants.
17061 * config/arm/arm.h: Fix compile time warnings about signed vs
17062 unsigned constants.
17064 2000-01-09 Philip Blundell <philb@gnu.org>
17066 * config/arm/arm.c (output_return_instruction): Use `ldr' rather
17067 than `ldm' with only one register.
17068 * config/arm/arm.md (push_multi): Use `str' rather than `stm' with
17071 * config/arm/linux-gas.h (CLEAR_INSN_CACHE): Say that R0 is
17074 Sun Jan 9 17:50:23 2000 Hans-Peter Nilsson <hp@axis.com>
17076 * config/ns32k/ns32k.md (load or push effective address): Operand 1
17079 2000-01-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17081 * elfos.h (ASM_OUTPUT_LIMITED_STRING): Add parentheses around
17082 assignment used as truth value.
17084 * function.c (assign_temp): Mark parameter `dont_promote' with
17085 ATTRIBUTE_UNUSED. Wrap variable `unsignedp' with macro
17086 PROMOTE_FOR_CALL_ONLY.
17088 * genrecog.c (write_subroutine): Mark variable `operands' with
17091 * optabs.c (prepare_cmp_insn): Mark parameter `align' with
17094 * sdbout.c (sdbout_init): Likewise for parameter `asm_file'.
17095 (sdbout_begin_block, sdbout_end_block): Likewise for `file'.
17097 * toplev.c (note_deferral_of_defined_inline_function): Likewise
17100 2000-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
17102 * config/c4x.h: Tidy up comments.
17103 * config/c4x.c: Likewise.
17105 Sun Jan 9 01:02:55 EST 2000 John Wehle (john@feith.com)
17107 * fold-const.c (lshift_double, rshift_double): Handle
17108 shifting by 2 * HOST_BITS_PER_WIDE_INT correctly.
17110 2000-01-08 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
17112 * toplev.c (rest_of_compilation): Initialize cse_not_expected as
17113 in prepare_function_start().
17115 Sat Jan 8 12:12:46 2000 Nick Clifton <nickc@cygnus.com>
17117 * config/v850/v850.c (expand_epilogue): Interrupt functions no
17118 longer allocate extra stack for function calls.
17120 2000-01-08 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
17122 * config/c4x/c4x.md (*subqf3_set): Fix typo.
17124 2000-01-08 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
17126 * config/c4x/c4x.h (CALLER_SAVE_PROFITABLE): Define as 0.
17128 2000-01-07 David Edelsohn <edelsohn@gnu.org>
17130 * rs6000.c (processor_target_table): Add power3 as alias for 630.
17131 * aix43.h: Revert Aug 2 change.
17132 (HAS_INIT_SECTION): Define, not visible yet.
17133 (LD_INIT_SWITCH): Define, not visible yet.
17134 * t-aix43 (MULTILIB_OPTIONS): Revert Aug 2 change.
17136 * glimits.h (__LONG_MAX__): Recognize 64-bit AIX too.
17138 * collect2.c (main): Expand ld2 size further.
17139 (export_object_lst): Cast assignment to avoid warning.
17140 (main, LD_INIT_SWITCH): Add AIX 4.2+ -binitfini support.
17141 (scan_prog_file, COFF): Do not collect initialization or
17142 finalization functions generated for entire shared object if
17143 init/fini support present.
17145 2000-01-07 Nick Clifton <nickc@cygnus.com>
17147 * config/elfos.h: Tidy up formatting of marcos. Make sure
17148 that .section directives are always prefixed by a tab.
17150 * config/svr4.h: Add #include "elfos.h" and remove duplicate
17153 2000-01-07 Matt Austern <austern@sgi.com>
17155 * fold-const.c (real_hex_to_f): Remove duplicate declaration of
17158 Fri Jan 7 01:55:34 2000 Jeffrey A Law (law@cygnus.com)
17160 * Makefile.in (crtend.o): Pass @inhibit_libc@ to compilation of
17162 (crtbegin.o, s-crtS): Likewise.
17164 2000-01-06 Richard Henderson <rth@cygnus.com>
17166 * alpha.md (adddi_2+1): Limit offset such that it will be
17167 loadable with a single ldah+lda pair.
17168 (adddi_2+2): Explicitly fail split if we can't make it work.
17170 2000-01-06 Mumit Khan <khan@xraylith.wisc.edu>
17172 * protoize.c: Conditionally include unistd.h.
17173 (IS_SAME_PATH_CHAR): New macro.
17174 (IS_SAME_PATH): New macro.
17175 (CPLUS_FILE_SUFFIX): New macro.
17176 (cplus_suffix): New static variable.
17177 (is_abspath): New static function.
17178 (in_system_include_dir): Handle DOS style pathnames.
17179 (file_could_be_converted): Likewise.
17180 (file_normally_convertible): Likewise.
17181 (directory_specified_p): Likewise.
17182 (file_excluded_p): Likewise.
17183 (abspath): Likewise.
17184 (shortpath): Likewise.
17185 (referenced_file_is_newer): Likewise.
17186 (save_def_or_dec): Likewise.
17187 (do_processing): Likewise.
17189 (edit_file): Likewise. Use rename instead of link.
17190 (rename_c_file): Likewise. Don't rename syscalls file.
17191 (munge_compile_params): Define null device for DOS based systems.
17192 (process_aux_info_file): Use binary mode if appliable.
17193 (edit_file): Likewise.
17194 * invoke.texi (Running Protoize): Document C++ suffixes used.
17196 * cccp.c: Delete PATH_SEPARATOR, DIR_SEPARATOR and
17197 IS_DIR_SEPARATOR macros.
17198 * collect2.c: Likewise.
17199 * cppinit.c: Likewise.
17200 * dwarf2out.c: Likewise.
17202 * gcov.c: Likewise.
17203 * prefix.c: Likewise.
17205 * toplev.c: Likewise.
17206 * system.h: And move to here.
17208 * prefix.c (update_path): Fix typo in variable name.
17210 2000-01-06 Richard Henderson <rth@cygnus.com>
17212 * flow.c (mark_set_1): Use loop_depth+1 as reference weight.
17213 (find_auto_inc, mark_used_regs, try_pre_increment_1): Likewise.
17214 (count_reg_sets_1, count_reg_references): Likewise.
17215 (flow_loops_level_compute): Start counting actual loop depth at 1.
17216 (flow_loops_find): Likewise.
17217 * local-alloc.c (update_equiv_regs): Likewise.
17218 * regclass.c (regclass): Re-instate Jan 4 0-based loop_depth change.
17220 2000-01-06 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
17222 * defaults.h (DWARF_FRAME_REGISTERS): if not defined, default to
17223 FIRST_PSEUDO_REGISTER
17224 * dwarf2out.c: Don't include frame.h
17225 * dwarfout.c: Likewise
17226 * Makefile.in (dwarfout.o, dwarf2out.o): Remove dependence on
17229 Thu Jan 6 13:44:59 CET 2000 Jan Hubicka <jh@suse.cz>
17231 * reg-stack.c (subst_stack_regs_pat): Handle correctly USEs of
17234 * i386.c (movsf splitter): Fix typo in my last checkin.
17236 2000-01-05 Nick Clifton <nickc@cygnus.com>
17238 * varasm.c (IN_NAMED_SECTION): Allow targets to provide their
17239 own definition of this macro.
17240 (asm_emit_uninitialised): Invoke UNIQUE_SECTION if either
17241 flag_data_sections or UNIQUE_SECTION_P are true.
17243 * tm.texi (UNIQUE_SECTION): Document that it can be called for
17244 unitialised data decls.
17246 * config/i386/winnt.c (i386_pe_unique_section): Cope with
17247 being called for uninitialised data.
17249 * config/i386/interix.c (i386_pe_unique_section): Cope with
17250 being called for uninitialised data.
17252 * config/mips/elf.h (UNIQUE_SECTION): Cope with being called
17253 for uninitialised data.
17255 * config/mips/elf64.h (UNIQUE_SECTION): Cope with being called
17256 for uninitialised data.
17258 * config/mips/iri6gld.h (UNIQUE_SECTION): Cope with being called
17259 for uninitialised data.
17261 * config/arm/unknown-elf.h (IN_NAMED_SECTION): Define.
17262 (UNIQUE_SECTION_P): Always generate a unique section if
17263 flag_data_sections is true.
17264 (UNIQUE_SECTION): Also generate unique sections for
17265 uninitialised data.
17266 (ASM_OUTPUT_ALIGNED_BSS): Redefine to use named_section().
17267 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Redefine to use
17270 2000-01-06 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
17272 * config/c4x/t-c4x (TARGET_LIBGCC2_CFLAGS): Don't redefine SF, DF,
17275 2000-01-06 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
17277 * config/c4x/c4x.md (udivqi3, divqi3): Delete.
17278 (umodqi3, modqi3, udivhi3, divhi3, umodhi3, modhi3, ffsqi2): Likewise.
17279 (*smulqi3_highpart_noclobber, *umulqi3_highpart_noclobber): New.
17280 (*lshrqi3_const_noclobber, *lshrqi3_nonconst_noclobber): Likewise.
17281 (*ashrqi3_const_noclobber, *ashrqi3_nonconst_noclobber): Likewise.
17283 * c4x.h (INIT_TARGET_OPTABS): Define to init libcalls.
17285 2000-01-05 11:25 -0800 Zack Weinberg <zack@rabi.columbia.edu>
17287 * c-decl.c (finish_enum): Simplify code to determine minimum and
17288 maximum values of the enum, and calculate the type. Remove check
17289 for FUNCTION_DECLs in the values list, which cannot happen. Replace
17290 the DECL_INITIAL of each enumeration constant with a copy converted
17291 to the enumeration type. When updating variant types, don't bother
17292 updating the type itself.
17294 * c-typeck.c (build_binary_op): Simplify conditional expressions
17295 when weeding out spurious signed-unsigned warnings. Add new
17296 spurious warning category: if the unsigned quantity is an enum
17297 and its maximum value fits in signed_type(result_type). Update
17299 (build_conditional_expr): Warn here if one alternative is signed
17300 and the other is unsigned.
17302 2000-01-05 Nick Clifton <nickc@cygnus.com>
17304 * config/fr30/fr30.h: Remove extraneous comments.
17306 2000-01-05 Bernd Schmidt <bernds@cygnus.co.uk>
17308 * reload1.c (choose_reload_regs): When disabling a reload, also
17309 set reload_spill_index to -1.
17311 2000-01-04 Joel Sherrill (joel@OARcorp.com>
17313 * configure.in (m68*-*-rtemscoff*): New target, formal name for
17315 (m68*-*-rtemself*): New target.
17316 (mips64orion-*-rtems*): Remove duplicate definition of tm_file.
17317 (sparc*-*-rtemsaout*): New target, formal name for old sparc*-*-rtems*.
17318 (sparc*-*-rtemself*): New target.
17319 (sparc*-*-rtems*): Now elf not a.out.
17320 * config/i386/rtems.h: Include config/rtems.h.
17321 * config/i386/rtemself.h: Include config/rtems.h.
17322 * config/i960/rtems.h: Include config/rtems.h.
17323 * config/m68k/rtems.h: Include config/rtems.h.
17324 * config/m68k/rtemself.h: Include config/rtems.h.
17325 * config/mips/rtems64.h: Include config/rtems.h.
17326 * config/pa/rtems.h: Include config/rtems.h.
17327 * config/rs6000/rtems.h: Include config/rtems.h.
17328 * config/sh/rtems.h: Include config/rtems.h.
17329 * config/sh/rtemself.h: Include config/rtems.h.
17330 * config/sparc/rtems.h: Include config/rtems.h.
17331 * config/sparc/rtemself.h: Include config/rtems.h
17333 Tue Jan 4 23:59:26 2000 Denis Chertykov <denisc@overta.ru>
17335 * final.c (shorten_branches): Correctly compute length of
17336 asms without operands.
17338 Tue Jan 4 22:55:41 2000 Steve Chamberlain <sac@pobox.com>
17340 * configure.in: Add pj target.
17341 * configure: Regenerate.
17342 * config/pj: New directory.
17343 * config/pj/lib1funcs.S: New file.
17344 * config/pj/linux.h: New file.
17345 * config/pj/pj.c: New file.
17346 * config/pj/pj.md: New file.
17347 * config/pj/pjl.h: New file.
17348 * config/pj/t-pj: New file.
17349 * config/pj/xm-pj.h: New file
17351 Tue Jan 4 22:30:16 2000 Jeffrey A Law (law@cygnus.com)
17353 * toplev.c (rest_of_compilation): Run shorten-branches before
17356 2000-01-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
17358 * config/c4x/c4x.h (IS_XXX_REG, IS_XXX_REGNO): Swap behaviour of
17359 macros so that they're consistent with their names.
17360 * config/c4x/c4x.c (IS_XXX_REG, IS_XXX_REGNO): Likewise.
17361 * config/c4x/c4x.md (IS_XXX_REG, IS_XXX_REGNO): Likewise.
17363 2000-01-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
17365 * config/c4x/c4x.md (*addqi3_noclobber_reload): Ensure that CC never
17366 modified inadvertently.
17368 2000-01-04 Joel Sherrill <joel@OARcorp.com>
17370 * configure.in (v850*-*-rtems*): New target.
17371 * configure: Regenerate.
17372 * config/v850/rtems.h: New file.
17374 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
17376 * gthr-win32.h (__gthread_active_p): Support Mingw MT runtime.
17377 (__gthread_key_create): Likewise.
17378 (__gthread_key_dtor): Likewise.
17379 (__gthread_once): Fix logic.
17380 (__gthread_key_delete): Cast away constness.
17382 * i386/cygwin.h (SUBTARGET_SWITCHES): Add -mthreads option.
17383 * invoke.texi: Document.
17384 * i386/mingw32.h (CPP_SPEC): Use.
17385 (LIBGCC_SPEC): Likewise.
17386 * i386/crtdll.h (LIBGCC_SPEC): Likewise.
17388 2000-01-04 David Edelsohn <edelsohn@gnu.org>
17390 * rs6000/sysv4.h (ASM_OUTPUT_DEF): Undefine.
17391 (HANDLE_PRAGMA_PACK): Undefine.
17392 (SLOW_UNALIGNED_ACCESS): Define.
17394 2000-01-04 David Edelsohn <edelsohn@gnu.org>
17396 * expmed.c (SLOW_UNALIGNED_ACCESS): Add mode and align parameters
17397 to default definition.
17398 (store_bit_field): Call SLOW_UNALIGNED_ACCESS with mode and alignment.
17399 (store_fixed_bit_field): Call macro with word_mode and alignment.
17400 (extract_bit_field): Call macro with relevant mode and alignment.
17401 * expr.c (SLOW_UNALIGNED_ACCESS): Add mode and align parameters
17402 to default definition.
17403 (move_by_pieces): Call SLOW_UNALIGNED_ACCESS with word_mode
17405 (move_by_pieces_ninsns): Likewise.
17406 (clear_by_pieces): Likewise.
17407 (emit_push_insn): Likewise.
17408 (store_field): Call macro with relevant mode and alignment.
17409 (expand_expr): Likewise.
17410 (expand_expr_unaligned): Likewise.
17412 * rs6000.h (HANDLE_PRAGMA_PACK): Define.
17413 (SLOW_UNALIGNED_ACCESS): Define.
17414 (CASE_VECTOR_MODE): Always use 32-bit offsets.
17415 (ASM_FILE_END): Generate 64-bit symbol in 64-bit mode.
17416 (EXTRA_SECTION_FUNCTIONS): Indent .csect pseudo-op.
17417 (toc_section): Likewise and .toc pseudo-op.
17418 (ASM_DECLARE_FUNCTION): Likewise. Align text more strictly in
17420 (TEXT_SECTION_ASM_OP): Likewise.
17421 (ASM_OUTPUT_ADD_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Always use
17424 * a29k.h (SLOW_UNALIGNED_ACCESS): Add MODE and ALIGN parameters.
17425 * alpha.h (SLOW_UNALIGNED_ACCESS): Likewise.
17426 * arm/thumb.h (SLOW_UNALIGNED_ACCESS): Likewise.
17427 * gmicro.h (SLOW_UNALIGNED_ACCESS): Likewise.
17428 * fr30.h (SLOW_UNALIGNED_ACCESS): Likewise.
17430 Tue Jan 4 11:44:13 2000 Jeffrey A Law (law@cygnus.com)
17432 * regclass.c: Revert my Jan 4 change to loop cost computation.
17434 Tue Jan 4 19:22:39 MET 2000 Jan Hubicka <hubicka@freesoft.cz>
17436 * regclass.c (regclass): Do not obey REG_N_REFS in non-optimizing
17439 2000-01-04 Stan Cox <scox@cygnus.com>
17441 * haifa-sched.c (build_control_flow): Change unreachable simple
17442 loop test to check if current block has only one predecessor.
17443 (find_rgns): Initialize degree. Use dest as degree index, not src.
17445 2000-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17447 * builtins.c (expand_builtin_strlen): Initialize variable `icode'.
17449 * calls.c (expand_call): Likewise for
17450 `old_stack_arg_under_construction'.
17452 * cpphash.c (macroexpand): Likewise for `args' and `rest_zero'.
17454 * function.c (pad_to_arg_alignment): Likewise for `save_var' and
17457 * gcc.c (execute): Likewise for `ut' and `st'.
17459 * genattrtab.c (attr_rtx): Likewise for `rt_val'.
17461 * genopinit.c (gen_insn): Likewise for `m1', `m2' and `op'.
17463 * jump.c (jump_optimize_1): Likewise for `temp2'.
17465 * local-alloc.c (block_alloc): Likewise for `r1'.
17467 * loop.c (recombine_givs): Likewise for `life_start' and `life_end'.
17469 * reg-stack.c (check_asm_stack_operands): Likewise for `clobber_reg'.
17470 (subst_asm_stack_regs): Likewise for `clobber_reg' and `clobber_loc'.
17472 * regmove.c (fixup_match_1): Likewise for `insn_const', `dst_node'
17475 * reload.c (find_reloads): Likewise for `goal_alternative_number'
17476 and `goal_earlyclobber'.
17478 * scan-decls.c (scan_decls): Likewise for `prev_id_end'.
17480 * sdbout.c (sdbout_one_type): Likewise for `member_scl'.
17482 * stupid.c (stupid_life_analysis): Likewise for `chain'.
17484 * unroll.c (copy_loop_body): Likewise for `copy'.
17486 * varasm.c (output_constructor): Likewise for `byte'.
17488 Tue Jan 4 15:34:34 MET 2000 Jan Hubicka <hubicka@freesoft.cz>
17490 * i386.c (ix86_expand_move): Allow pushes of memory, offload to memory
17491 all FP constants for constant->reg moves.
17492 (ix86_split_to_parts): Try to convert memory address into immediate
17493 when available in the constant pool.
17494 * i386.h (PREFERRED_RELOAD_CLASS): Allow CONST_DOUBLE->integer reg
17496 (LEGITIMATE_CONSTANT_P): Return 1.
17497 * i386.md (pushsf): New splitter to convert constant pool memory
17498 reference to immediate.
17499 (mov?f): Likewise; do not allow CONST_DOUBLE for reg moves before
17502 2000-01-04 Bernd Schmidt <bernds@cygnus.co.uk>
17504 * i386.md (ashlsi3_cmpno): Don't accept variables shifts.
17505 (ashlhi3_cmpno, ashlqi3_cmpno, ashrsi3_cmpno, ashrhi3_cmpno,
17506 ashrqi3_cmpno, lshrsi3_cmpno, lshrhi3_cmpno, lshrqi3_cmpno): Likewise.
17507 (rotlsi3_cmpno, rotlhi3_cmpno, rotlqi3_cmpno, rotrsi3_cmpno,
17508 rotrhi3_cmpno, rotrqi3_cmpno): Likewise.
17510 2000-01-04 Martin von Löwis <loewis@informatik.hu-berlin.de>
17512 * ginclude/stdbool.h: Support compilation as C++.
17514 Tue Jan 4 01:35:13 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
17516 * fold-const.c (make_range): Don't try to reverse an unbounded range.
17518 Tue Jan 4 00:18:46 2000 Jeffrey A Law (law@cygnus.com)
17520 * regclass.c (regclass): Properly compute loop_cost. Adjust
17523 * regclass.c: Fix minor whitespace problems.
17525 2000-01-03 Anthony Green <green@cygnus.com>
17527 * config/i386/i386.md (builtin_setjmp_receiver): New pattern.
17528 Restore the pic register if required.
17530 2000-01-03 Ulrich Drepper <drepper@cygnus.com>
17532 * c-common.c (format_char_info): Update comment.
17533 (check_format_info): Recognize 'z' modifier in the same way 'Z'
17534 was recognized. Emit warning for formats new in ISO C99 only
17535 if flag_isoc9x is not set.
17537 Mon Jan 3 12:59:54 2000 Mark P. Mitchell <mark@codesourcery.com>
17539 * config/mips/iris6gld.h: Fix typo in -mabi=n32 specs.
17541 Mon Jan 3 15:33:37 MET 2000 Jan Hubicka <hubicka@freesoft.cz>
17543 * combine.c (expand_compound_operation): Do not convert ZERO_EXTEND to
17544 SIGN_EXTEND, convert SIGN_EXTEND to ZERO_EXTEND.
17545 (make_compound_operation): Choose cheaper alternative between
17546 ZERO_EXTEND and SIGN_EXTEND when sign bit is not set.
17548 * regclass.c (op_costs): Remove global variable.
17549 (record_reg_classes): New parameter "op_costs" and "reg_pref".
17550 (record_operand_costs): Break out from ...
17551 (scan_one_insn): ... here.
17552 (dump_regclass): Make dumps nicer.
17553 (regclass): Dump preferrences choosed and changes done during passes.
17555 2000-01-03 Jakub Jelinek <jakub@redhat.com>
17557 * config/sparc/sparc.c (gen_df_reg): Fix for 32bit SPARC.
17559 2000-01-03 Jakub Jelinek <jakub@redhat.com>
17561 * config/sparc/sparc.c (gen_df_reg): New function.
17562 * config/sparc/sparc-protos.h (gen_df_reg): Add prototype.
17563 * config/sparc/sparc.md (movtf_no_e_insn_sp64+1,
17564 movtf_no_e_insn_sp64+2, movtf_no_e_insn_sp64+3, movtf_cc_sp64+1,
17565 movtf_cc_reg_sp64+1): Use it.
17567 2000-01-02 Mark Mitchell <mark@codesourcery.com>
17569 * integrate.c (copy_decl_for_inlining): Clear TREE_ADDRESSABLE on
17570 copied LABEL_DECLs.
17572 Mon Jan 3 02:54:40 2000 Hans-Peter Nilsson <hp@bitrange.com>
17574 * config/i386/i386.c (ix86_expand_unary_operator): Function
17575 definition made void.
17576 (ix86_expand_binary_operator): Update outdated preceding comment.
17577 * config/i386/i386-protos.h (ix86_expand_unary_operator): Update
17580 * config/i386/i386.c (override_options): Fix option-name typo.
17582 2000-01-02 Mark Mitchell <mark@codesourcery.com>
17584 * system.h (CEIL): Define.
17585 * builtins.c (CEIL): Remove.
17586 * expmed.c (CEIL): Likewise.
17587 * expr.c (CEIL): Likewise.
17588 * stor-layout.c (CEIL): Likewise.
17590 2000-01-02 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
17592 * expr.c (store_constructor_field): Fix typo introduced with last
17595 2000-01-01 Mark Mitchell <mark@codesourcery.com>
17597 * tree.h (BINFO_N_BASETYPES): New macro.
17599 2000-01-01 Bernd Schmidt <bernds@cygnus.co.uk>
17601 * expmed.c (emit_store_flag): Prevent losing a pending stack
17602 adjust the same way we prevent losing queued increments.
17604 See ChangeLog.2 for earlier changes.