1 2000-07-11 Marc Espie <espie@openbsd.org>
3 * collect2.c (main): Recognize .lo as object files.
5 2000-07-11 J. David Anglin <dave@hiauly1.hia.nrc.ca>
7 * aclocal.m4 (AC_FUNC_MMAP_ANYWHERE): Extend test to detect systems
8 with MAP_ANONYMOUS and MAP_ANON.
9 * configure, config.in: Rebuilt.
11 2000-07-12 Gabriel Dos Reis <gdr@codesourcery.com>
13 * diagnostic.c (save_output_state): Remove.
14 (restore_output_state): Likewise.
15 (clear_text_info): New function.
16 (clear_diagnostic_info): Likewise.
17 (output_text_length, is_starting_newline, output_prefix,
18 line_wrap_cutoff, ideal_line_wrap_cutoff, prefix_was_emitted_for,
19 prefixing_policy, output_buffer_ptr_to_format_args): New macros
20 (set_real_maximum_length, output_set_maximum_length,
21 output_set_prefix, output_get_prefix, output_set_maximum_length,
22 output_destroy_prefix, init_output_buffer,
23 reshape_diagnostic_buffer, output_space_left, output_emit_prefix,
24 output_add_newline, output_add_character, output_add_space,
25 output_append_r, output_append, wrap_text, output_format,
26 output_do_printf, output_printf, output_do_verbatim,
27 output_verbatim, verbatim): Use them.
28 (output_clear): Split into cleat_text_info and
29 clear_diagnostic_info.
30 (struct output_state): Move to...
32 * diagnostic.h: ...Here
33 (struct output_buffer): Adjust.
35 2000-07-11 Zack Weinberg <zack@wolery.cumb.org>
37 * cpplex.c (parse_name): No longer inline (premature optimization).
38 (do_pop_context): Fold into pop_context.
39 (pop_context): Returns int.
40 (lex_next): Hoist test for end of directive into pop_context.
41 (push_macro_context): Returns int; takes just reader and token.
42 Hoist test for excessive nesting to caller.
43 (push_arg_context): Returns void; takes just reader and token.
44 Do not call stringify_arg or get_raw_token.
45 (get_raw_token): Convert tail recursion through push_arg_context
46 to a loop at this level. Call stringify_arg here if appropriate.
47 (maybe_paste_with_next): Convert tail recursion to a while loop.
48 Hoist test of paste_level to caller.
50 (stringify_arg): Push arg context at beginning.
51 (cpp_get_token): Split out core into _cpp_get_token. Call
52 process_directive here. Throw away CPP_PLACEMARKER tokens.
53 (_cpp_get_token): Convert tail recursion through
54 push_macro_context to a loop at this level.
55 (_cpp_glue_header_name, is_macro_disabled, stringify_arg,
56 _cpp_get_raw_token): Use _cpp_get_token.
57 (_cpp_skip_rest_of_line): Drop the context stack directly; do
59 (_cpp_run_directive): Call lex_next directly.
61 * cpphash.h: Prototype _cpp_get_token.
62 * cppexp.c (lex): Use it.
63 * cpphash.c (parse_define): Use it.
64 * cpplib.c (get_define_node, do_undef, parse_include,
65 read_line_number, do_line, do_ident, do_pragma, do_pragma_gcc,
66 do_pragma_implementation, do_pragma_poison, do_pragma_dependency,
67 parse_ifdef, validate_else): Use it.
68 (cpp_push_buffer): Tweak error message; abort if anyone tries
69 to push a buffer while macro expansions are stacked.
71 2000-07-11 Donn Terry <donnte@microsoft.com>
73 * cpplex.c (free_macro_args, save_token): Cast arg of free
74 and/or xrealloc to PTR.
75 (_cpp_init_input_buffer): Clear all fields of the base context.
77 Tue Jul 11 15:28:21 CDT 2000 Clinton Popetz <cpopetz@cygnus.com>
79 * gensupport.c (process_rtx): Make rtl checking stop
80 complaining about the define_insn while it is being
81 converted from a define_insn_and_split.
83 Tue Jul 11 16:26:17 2000 Clinton Popetz <cpopetz@cygnus.com>
85 * config/mips/mips.c (simple_memory_operand): Access the
86 INTVAL of the address, not it's containing MEM.
88 2000-07-11 Bruce Korb <bkorb@gnu.org>
90 * fixinc/fixtests.c(double_slash): obsolete
91 (else_endif_label): likewise
92 * fixinc/inclhack.def(irix_multiline_cmnt): obsolete
93 (libc1_ifdefd_memx): correct initial comment
94 and omit the #if/#endif pair from the memxxx declarations
95 * fixinc/fixincl.x: regen
97 2000-07-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
99 * cpplex.c (T, I, S, C, N): Avoid non-constant initializers.
101 2000-07-11 Neil Booth <NeilB@earthling.net>
105 2000-07-11 Neil Booth <NeilB@earthling.net>
107 * cppinit.c: (cpp_reader_init): Allow digraphs by default.
108 (handle_option): Set digraphs according to standard.
109 Merge OPT_lang_c89 handler with OPT_std_c89.
111 * cpplex.c: (lex_line, can_paste): Honour digraphs in
112 accordance with the digraphs flag.
114 * cpplib.h: (struct cpp_options): New option digraphs.
116 2000-07-10 Hans-Peter Nilsson <hp@axis.com>
117 Bruce Korb <bkorb@gnu.org>
119 * fixinc/inclhack.def (libc1_ifdefd_memx): New fix.
120 * fixinc/fixincl.x: Regenerate.
121 * fixinc/tests/base/testing.h: Add testcase.
123 2000-07-10 Richard Henderson <rth@cygnus.com>
125 * config/ia64/ia64.c (got_symbolic_operand): New.
126 (symbolic_operand, move_operand): Revert 0701 change.
127 * config/ia64/ia64.h (PREDICATE_CODES): Update.
128 * config/ia64/ia64-protos.h (got_symbolic_operand): Declare.
129 * config/ia64/ia64.md (movdi): Revert 0701 wrt symbolic_operand;
130 split the offset into a 14-bit low part instead of a 13-bit low part.
131 (load_fptr): Mark the mem as unchanging.
132 (load_symptr): Use got_symbolic_operand.
134 2000-07-10 Nick Clifton <nickc@cygnus.com>
136 * libgcc2.c (next_stack_level): Cast result of computation to
137 (void **) so that the assignment does not generate a warning.
139 2000-07-10 Chandrakala Chavva <cchavva@redhat.com>
141 * flags.h : Add new variable flag_single_precision_constant.
142 * toplev.c (display_help) : Add -fsingle-precision-constant option.
143 (flag_single_precision_constant): New.
144 * c-lex.c (yylex): Convert floating point constant to single
146 * invoke.texi : Add documentation for this new option.
148 2000-07-10 Gabriel Dos Reis <gdr@codesourcery.com>
150 * diagnostic.c (output_octal): Second parameter is unsigned.
151 (output_long_octal): Likewise.
152 (output_hexadecimal): Likewise.
153 (output_long_hexadecimal): Likewise.
154 (output_format): Adjust arguments extraction. Tweak.
155 (output_verbatim, verbatim): End variable argument list.
156 (report_diagnostic): Improve documentation.
158 2000-07-10 Benjamin Chelf <chelf@codesourcery.com>
160 * c-common.h (build_stmt): Declare.
161 (build_continue_stmt): Likewise.
162 (build_break_stmt): Likewise.
163 (build_return_stmt): Likewise.
165 * c-decl.c (do_case): Rewrite to do what previously done in
168 * c-semantics.c (build_stmt): Define.
169 (build_return_stmt): Likewise.
170 (build_break_stmt): Likewise.
171 (build_continue_stmt): Likewise.
172 (build_case_label): Likewise.
174 * c-parse.in (BREAK): Change to build tree, then generate RTL.
175 (CONTINUE): Likewise.
180 * c-parse.y: Regenerate.
181 * c-pasre.c: Likewise.
183 2000-07-09 Jason Merrill <jason@redhat.com>
185 * expr.c (expand_expr): Bail earlier if we get an error_mark_node.
187 * tree.h (STRIP_NOPS): Check for error_mark_node.
188 (STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Likewise.
189 (dwarf2out_*): Remove duplicate declarations.
191 * c-decl.c (duplicate_decls): Copy DECL_ABSTRACT_ORIGIN from
192 DECL_ABSTRACT_ORIGIN, not DECL_ORIGIN.
194 2000-07-10 Gabriel Dos Reis <gdr@codesourcery.com>
196 * diagnostic.c (wrap_text): New function.
197 (maybe_wrap_text): Likewise.
198 (output_add_string): Use it.
199 (output_format): Likewise.
200 (count_error): Use verbatim instead of notice.
201 (report_error_function): Likewise. Don't use plain fprintf.
202 (finish_diagnostic): New function.
203 (output_do_verbatim): Tweak. Commonalize functionalities in
204 output_verbatim and verbatim.
205 (output_verbatim): Adjust.
206 (verbatim): Likewise.
207 (report_diagnostic): Define.
209 * diagnostic.h (report_diagnostic): Prototype.
211 2000-07-09 Zack Weinberg <zack@wolery.cumb.org>
213 * cppexp.c (_cpp_parse_expr): Don't use unary plus.
215 2000-07-09 Neil Booth <NeilB@earthling.net>
217 * cpphash.h: ISvspace, is_vspace, is_nvspace: New.
218 IShspace, ISspace: Update.
220 * cppinit.c: ISTABLE: Update.
223 * cpplex.c (IS_HSPACE, S_NEWLINE): Remove.
224 (IS_DIRECTIVE): Rename KNOWN_DIRECTIVE.
225 (skip_block_comment, skip_line_comment, parse_string,
226 lex_line): Use is_vspace rather than IS_NEWLINE.
227 (skip_whitespace, lex_line): Clean up to use is_nvspace.
228 (lex_line): Use KNOWN_DIRECTIVE. Any kind of directive
230 (lex_next): Unconditionally stop if within a directive.
231 Treat directives within macro invocations as directives
232 (after parse_args emits error), not as the argument.
234 2000-07-09 Gabriel Dos Reis <gdr@codesourcery.com>
236 * diagnostic.c (diagnostic_args): New macro.
237 (diagnostic_msg): Likewise.
238 (output_formatted_integer): Likewise.
239 (output_state): New data type.
240 (digit_buffer): Make global.
241 (output_add_integer): Rename to output_decimal. Squeeze
243 (output_long_decimal, output_unsigned_decimal,
244 output_long_unsigned_decimal, output_octal, output_long_octal,
245 output_hexadecimal, output_long_hexadecimal): New functions.
246 (output_append_r): New function.
247 (output_append): Tweak.
248 (output_flush_on): Rename to output_to_stream.
249 (output_format): Change prototype. Improve documentation. Handle
250 more format specifiers.
251 (build_location_prefix): Rename to context_as_prefix.
252 (output_notice): Rename to output_do_printf.
253 (output_printf): Tweak.
254 (line_wrapper_printf): Likewise.
255 (vline_wrapper_message_with_location): Adjust call to renamed
257 (v_message_with_decl): Likewise.
258 (default_print_error_function): Likewise.
259 (save_output_state): New function.
260 (restore_output_state): Likewise.
261 (output_do_verbatim): Likewise.
262 (output_verbatim): Define.
263 (verbatim): Likewise.
265 * diagnostic.h (printer_fn): Change return type from void to int.
266 Improve documentation.
267 (output_add_integer): Rename to output_decimal.
268 (output_flush_on, output_format): Don't export.
269 (output_verbatim, verbatim): Declare.
271 2000-07-08 Toon Moene <toon@moene.indiv.nluug.nl>
273 * fold-const.c (extract_muldiv) case PLUS_EXPR, MINUS_EXPR:
274 Check whether c divides op1 exactly if operation is not
277 2000-07-08 Richard Henderson <rth@cygnus.com>
279 * final.c (final): Do not abort when reg-stack introduces
282 2000-07-08 Zack Weinberg <zack@wolery.cumb.org>
284 * cpplib.h (struct cpp_name): Now struct cpp_string.
285 (CPP_INT, CPP_FLOAT, CPP_NUMBER, CPP_COMMENT,
286 CPP_HEADER_NAME): Change to type S.
287 (struct cpp_token): Rename 'name' field to 'str'. Add 'node'
288 field, a cpp_hashnode *. All references to val.name updated
289 to use val.str or val.node as appropriate.
290 (struct cpp_reader): Add spec_nodes field.
291 (cpp_idcmp): Now cpp_ideq; takes a token * and a char *.
293 * cpphash.h (struct spec_nodes): New.
294 (enum spell_type): Reorder. Only SPELL_STRING tokens use
295 val.str. All references to 'spelling > SPELL_NONE' updated to
298 (CPP_IN_SYSTEM_HEADER): Check pfile->buffer and
299 pfile->buffer->inc are not NULL before dereferencing them.
301 * cpplex.c (parse_name): Take a pointer to the current token,
302 plus current position and limit as args; return the new
303 position; don't copy the text of a name into the string
304 buffer, instead call cpp_lookup and store the node pointer.
305 If extending a token, copy out the text of the old into a
306 scratch buffer, append the new, look that up and store the new
307 node pointer. Inline.
308 (maybe_paste_with_next): If the result of paste is a NAME,
309 then look up the pasted text and store its node pointer.
310 (lex_line): Adjust for new parse_name interface.
311 Check for L"str", L'str' using spec_nodes->n_L.
312 (spell_token): SPELL_IDENT tokens have their spelling in
313 val.node->name. Handle SPELL_STRING tokens that don't have
315 (_cpp_expand_name_space,
316 (can_paste): Check for L ## "str" using spec_nodes->n_L.
317 (cpp_get_token, special_symbol): No need to call cpp_lookup.
318 (cpp_idcmp): Now cpp_ideq; take a token * and a const char *;
319 return 1=equal 0=not, not a tristate.
321 * cpphash.c (var_args_str): Delete.
322 (find_param): Compare node fields directly.
323 (is__va_args__): Use CPP_PEDANTIC. Just compare
324 token->val.node with spec_nodes->n__VA_ARGS__.
325 (dump_funlike_macro): Don't use var_args_str.
327 * cpplib.c (_cpp_check_directive): Just walk through
328 spec_nodes->dirs comparing pointers.
329 (get_define_node, do_pragma_poison, detect_if_not_defined,
330 parse_ifdef): The identifier has already been looked up.
331 (do_ifdef, do_ifndef): parse_ifdef won't return a poisoned
333 (do_if): Only call detect_if_not_defined at beginning of file.
334 (_cpp_parse_assertion): Only copy string pointers for
336 (pragma_dispatch): Take a node pointer and examine its name
338 (_cpp_init_stacks): Also initialize the spec_nodes structure.
340 * cppinit.c (cpp_reader_init): Call _cpp_init_stacks after
342 (cpp_cleanup): Free pfile->spec_nodes. Call _cpp_cleanup_* in
343 reverse order from the corresponding _cpp_init_* routines.
345 * cppexp.c (parse_number, parse_charconst, parse_defined,
346 lex): Check val.node->type instead of calling cpp_defined.
347 Use spec_nodes entries where appropriate.
349 * fix-header.c, scan-decls.c: Update for interface changes.
351 2000-07-08 Geoffrey Keating <geoffk@cygnus.com>
353 * config/rs6000/rs6000.c (rs6000_emit_move): Fix conditions for
354 emitting aux_truncdfsf2.
356 2000-07-03 Donn Terry (donnte@microsoft.com)
358 * cppinit.c (print_help): split overlong line into ISO C89
361 2000-07-07 Zack Weinberg <zack@wolery.cumb.org>
363 * cppexp.c: Update all code for new lexer interface.
364 (op_t, operator codes, struct token, tokentab2, op_to_str): Remove.
365 (struct suffix, vsuf_1, vsuf_2, vsuf_3, op_to_prio): New.
366 * cpplex.c (token_names): Trim leading CPP_ from names; make
367 the strings unsigned.
368 (_cpp_spell_operator): New.
369 (is_macro_disabled): Disable all macros if rescanning
371 (_cpp_get_directive_token): Remove.
373 * cppinit.c: Don't set no_macro_expand.
374 * cpplib.c (read_line_number, do_line): Check only for EOF,
376 * cpphash.h: Update prototypes.
377 * cpplib.h (CPP_VSPACE): Remove.
378 (struct cpp_reader): Remove no_macro_expand.
380 2000-07-08 Neil Booth <NeilB@earthling.net>
382 * cpphash.c (is__va_args__): New function.
383 (count_params): Fix line reported in error messages. Use
384 is__va_args__. Don't return ')' on error. Flag GNU style
385 rest args macro definitions.
386 (parse_define): Check macro name is not __VA_ARGS__.
387 (save_expansion): Check identifier in non-varargs-macro is
388 not __VA_ARGS__. Don't flag GNU_VARARGS.
389 * cpplex.c (parse_args): Accept no argument iff GNU_REST_ARGS.
390 (maybe_paste_with_next): Use per-macro GNU_REST_ARGS rather
391 than per-token GNU_VARARGS.
392 * cpplib.h (GNU_VARARGS): Remove.
393 (GNU_REST_ARGS): New.
395 Sat Jul 8 01:38:25 MET DST 2000 Jan Hubicka <jh@suse.cz>
397 * i386.md (call_pop, call, call_value_pop): Do not set
398 current_function_uses_pic_offset_table for calls to static
399 functions or indirect calls.
401 2000-07-07 Jim Wilson <wilson@cygnus.com>
403 * config/ia64/ia64.c (rws_access_reg): New local write_count. If
404 is_predicate_reg, then take max write_count of register pair.
406 2000-07-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
408 * tradcpp.c (main): Rename label `include' to `add_include' to
409 avoid conflicts with variable `include' in traditional C.
411 2000-07-07 Jakub Jelinek <jakub@redhat.com>
413 * integrate.c (copy_insn_list): Remove REG_LABEL notes.
415 2000-07-07 Jakub Jelinek <jakub@redhat.com>
417 * sibcall.c (uses_addressof): Add INMEM argument, check for
418 current_function_internal_arg_pointer outside of MEM rtxs in addition
420 (sequence_uses_addressof): Update caller.
422 2000-07-07 Zack Weinberg <zack@wolery.cumb.org>
424 * tradcpp.c (initialize_builtins): Honor NO_BUILTIN_SIZE_TYPE
427 2000-07-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
429 * system.h (UNION_INIT_ZERO): New macro for initializing union
432 * cpplex.c (placemarker_token, eof_token): Use UNION_INIT_ZERO.
434 2000-07-07 Neil Booth <NeilB@earthling.net>
438 Fri Jul 7 07:47:35 2000 Jeffrey A Law (law@cygnus.com)
440 * final.c (final): Detect out of bounds array access to
441 the insn_lengths array.
443 2000-07-07 Kazu Hirata <kazu@hxi.com>
445 * fold-const.c (fold): Fix a comment typo.
447 2000-07-07 Neil Booth <NeilB@earthling.net>
449 * cpp.texi: Update to new lexer.
451 2000-07-06 Zack Weinberg <zack@wolery.cumb.org>
453 * tradcpp.c: New file.
454 * tradcif.y: New file.
455 * tradcif.c: New generated file.
457 * Makefile.in: Add rules to build tradcpp.o, tradcif.o,
458 $(srcdir)/tradcif.c. Add tradcpp to STAGESTUFF and
459 dependencies of C. Install tradcpp from install-common, in
462 2000-07-06 Zack Weinberg <zack@wolery.cumb.org>
464 * cppinit.c: Include cppdefault.h. Refer to
465 cpp_GCC_INCLUDE_DIR and cpp_GCC_INCLUDE_DIR_len, not directly
466 to GCC_INCLUDE_DIR and its length.
467 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
468 USER_LABEL_PREFIX, REGISTER_PREFIX, struct default_include,
469 STANDARD_INCLUDE_DIR, STANDARD_INCLUDE_COMPONENT): Move to
471 (include_defaults_array): Move to cppdefault.c.
473 * cppdefault.h: New file.
474 * cppdefault.c: New file.
476 * Makefile.in (LIBCPP_OBJS): Add cppdefault.o.
477 (cppinit.o): Don't apply $(PREPROCESSOR_DEFINES) to this file.
478 (cppdefault.o): New rule; apply $(PREPROCESSOR_DEFINES) to
481 Thu Jul 6 18:30:36 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
483 * reload.c (push_reload): When seeing if can reuse a register,
484 check extra registers against widest of INMODE and OUTMODE.
486 2000-07-06 Neil Booth <NeilB@earthling.net>
488 * cpplib.c: (_cpp_parse_assertion): Perform hash lookups
489 based on full length of predicate.
491 2000-07-06 Hans-Peter Nilsson <hp@axis.com>
493 * timevar.c: [HAVE_SYS_RESOURCE_H]: Include <sys/resource.h>.
494 [NEED_DECLARATION_GETRUSAGE]: Declare getrusage.
496 2000-07-05 Kazu Hirata <kazu@hxi.com>
498 * h8300-proto.h: Fix formatting.
502 2000-07-05 Jim Wilson <wilson@cygnus.com>
504 * config/ia64/ia64.h (HARD_REGNO_MODE_OK): If FR_REGNO_P, disallow
507 2000-07-05 Rodney Brown <RodneyBrown@pmsc.com>
509 * invoke.texi: Fix minor typos
510 * md.texi: Fix minor typos
512 2000-07-05 Zack Weinberg <zack@wolery.cumb.org>
514 * cpplib.c (_cpp_parse_assertion): Fix buffer overrun.
516 2000-07-04 Zack Weinberg <zack@wolery.cumb.org>
518 * cpplex.c: Don't include sys/mman.h.
519 (cpp_push_buffer, cpp_pop_buffer): Moved to cpplib.c.
521 * cpplib.c: Include sys/mman.h and obstack.h.
522 (cpp_push_buffer): Moved from cpplex.c; allocate buffers on an
524 (cpp_pop_buffer): Moved from cpplex.c; free buffers from an obstack.
525 (_cpp_unwind_if_stack): Now static, unwind_if_stack. Don't
526 bother freeing if stack entries (they will be freed with their buffer).
527 (do_endif): Free if stack entries from the buffer obstack.
528 (push_conditional): Allocate if stack entries from the buffer obstack.
530 (find_answer): Rename to _cpp_find_answer.
531 (do_assert, do_unassert): Update.
533 * cpphash.h: Update prototypes.
534 (xobnew): New convenience macro.
535 * cpplib.h (struct cpp_reader): Add hash_ob and buffer_ob fields.
537 (struct cpp_hashnode): Remove disabled field.
539 * cppinit.c: Don't include hashtab.h or splay-tree.h.
540 (report_missing_guard): Moved to cppfiles.c.
541 (cpp_reader_init): Call cpp_init_stacks, cpp_init_macros,
543 (cpp_cleanup): Call cpp_cleanup_stacks, cpp_cleanup_macros,
544 cpp_cleanup_includes. Don't destroy hashtab or
545 all_include_files here.
546 (cpp_finish): Use _cpp_report_missing_guards.
548 * cppfiles.c (report_missing_guard): Moved from cppinit.c.
549 (_cpp_init_include_table): Rename _cpp_init_includes.
550 (_cpp_cleanup_includes, _cpp_report_missing_guards): New.
552 * cppexp.c (parse_assertion): Update for new name of
555 * Makefile.in (cpplib.o, cpphash.o, cppinit.o): Update deps.
557 2000-07-04 Zack Weinberg <zack@wolery.cumb.org>
559 * cpplib.c (do_ident): s/VSPACE/EOF/
561 2000-07-05 Neil Booth <NeilB@earthling.net>
563 * cpplex.c: Fix trigraph replacement within strings.
565 2000-07-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
567 * rs6000/aix.h (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier.
569 * xcoffout.c (assign_type_number): Constify.
570 (xcoffout_source_file): Add static prototype. Don't needlessly
571 cast away const-ness.
573 2000-07-04 Jason Merrill <jason@redhat.com>
575 * frame.h (frame_state): Move base_offset to end.
577 Mon Jul 3 21:31:43 2000 Clinton Popetz <cpopetz@cygnus.com>
579 * calls.c (emit_library_call_value_1): Revert previous change.
581 2000-07-03 Zack Weinberg <zack@wolery.cumb.org>
583 * fix-header.c (struct partial_proto): Remove unnecessary fields.
584 (recognized_extern, recognized_function, read_scan_file):
585 Update for new scheme.
586 (check_protection): It's still a multiple include guard even
587 if it doesn't always trigger.
588 * scan-decls.c (skip_to_closing_brace, scan_decls): Update for
590 * scan.h: Declare struct cpp_token. Update prototypes.
592 2000-07-03 Neil Booth <neilb@earthling.net>
593 Zack Weinberg <zack@wolery.cumb.org>
595 Complete overhaul of the lexer and macro expander.
597 * cpphash.c (object_defn, funct_defn, push_macro_expansion,
598 arg, arglist, argdata, reflist, collect_objlike_expansion,
599 collect_funlike_expansion, collect_params,
600 warn_trad_stringify, trad_stringify, duplicate_arg_p, add_pat,
601 unsafe_chars, macarg, compare_defs, special_symbol,
602 scan_arguments, stringify, funlike_macroexpand,
603 _cpp_quote_string, monthnames): Delete.
604 (cpp_lookup, _cpp_free_definition, dump_funlike_macro,
605 _cpp_create_definition, _cpp_dump_definition,
606 dump_hash_helper): Adjust.
607 (find_param, count_params, parse_define, var_args_str,
608 check_macro_redefinition, save_expansion): New.
610 * cpplex.c (skip_block_comment, skip_line_comment, parse_name,
611 parse_string, output_line_command, trigraph_replace,
612 lex_line, cpp_push_buffer, cpp_pop_buffer, cpp_output_tokens,
613 cpp_scan_buffer_nooutput, cpp_scan_buffer, cpp_free_toklist,
614 cpp_idcmp, _cpp_get_directive_token, _cpp_init_input_buffer,
615 _cpp_skip_rest_of_line): Modify.
617 (maybe_macroexpand, skip_comment, copy_comment, skip_string,
618 find_position, null_warning, bump_column, expand_name_space,
619 pedantic_whitespace, _cpp_output_list, _cpp_slice_toklist,
620 _cpp_squeeze_toklist, _cpp_scan_until, _cpp_skip_hspace,
621 _cpp_parse_name, _cpp_lex_token, cpp_get_non_space_token,
622 _cpp_prescan): Delete.
624 (dump_param_spelling, process_directive, lex_next,
625 is_macro_disabled, stringify_arg, expand_context_stack,
626 output_token, make_string_token, alloc_number_token,
627 special_symbol, duplicate_token, maybe_paste_with_next,
628 can_paste, prevent_macro_expansion, restore_macro_expansion,
629 get_temp_token, release_temp_tokens, quote_string,
630 token_names, token_spellings, _cpp_expand_name_space,
631 _cpp_glue_header_name, _cpp_reserve_name_space,
632 digraph_spellings, trigraph_ok, skip_whitespace, save_comment,
633 placemarker_token, eof_token, cpp_context, macro_args,
634 get_raw_token, parse_arg, parse_args, save_token,
635 push_arg_context, push_macro_context, pop_context,
636 do_pop_context, free_macro_args, _cpp_get_line,
637 _cpp_run_directive): New.
639 * cpplib.c (validate_else, parse_include, push_conditional,
640 pass_thru_directive, read_line_number, parse_ifdef,
641 detect_if_not_defined, _cpp_check_directive, do_define,
642 do_undef, do_include, do_import, do_include_next, do_error,
643 do_warning, do_ident, do_pragma, pragma_dispatch, gcc_pragmas,
644 top_pragmas, do_pragma_gcc, do_pragma_implementation,
645 do_pragma_poison, do_pragma_system_header,
646 do_pragma_dependency, do_sccs, do_ifdef, do_ifndef, do_else,
647 dl_elif, do_endif, _cpp_unwind_if_stack, do_assert,
648 do_unassert, cpp_define, cpp_undef, cpp_assert, cpp_unassert,
649 cpp_defined): Update for new scheme.
650 (strtoul_for_line, get_define_node, dump_macro_name,
651 _cpp_check_linemarker, _cpp_parse_assertion): New.
652 (_cpp_handle_directive, do_pragma_default): Delete.
654 * cpphash.h (struct predicate): Now struct answer.
655 (enum spell_type, struct token_spelling, struct directive,
656 directive_handler): New.
657 Update prototypes. Remove unused macros.
658 * cpplib.h: Update prototypes. Remove unused macros,
659 structure definitions, and fields.
661 * cpperror.c (print_containing_files, v_message): Adjust.
662 * cppexp.c (parse_assertion, lex, parse_escape,
663 _cpp_parse_expr): Adjust.
664 * cppfiles.c (open_include_file, _cpp_execute_include,
665 _cpp_compare_file_date, cpp_read_file, read_include_file):
667 * cppinit.c (dump_special_to_buffer): Delete.
668 (append_include_chain, merge_include_chains, cpp_reader_init,
669 cpp_cleanup, initialize_builtins, builtin_array, cpp_start_read,
670 cpp_finish, handle_option, print_help): Adjust.
671 * cppmain.c (main): Adjust.
673 2000-07-03 Zack Weinberg <zack@wolery.cumb.org>
675 * cppspec.c (lang_specific_driver): Use double quotes in error
678 Mon Jul 3 16:53:43 2000 Clinton Popetz <cpopetz@cygnus.com>
680 * calls.c (emit_library_call_value_1): Use valreg instead
681 of hard_libcall_value.
683 2000-07-03 Geoff Keating <geoffk@cygnus.com>
685 * config/rs6000/rs6000.c (rs6000_emit_move): New function.
686 * config/rs6000/rs6000-proto.h: Prototype rs6000_emit_move.
687 * config/rs6000/rs6000.md (movsi): Use rs6000_emit_move.
695 * expmed.c (expand_mult_highpart): Use op1 instead of wide_op1 when
696 mode instead of wider_mode is being used.
698 2000-07-03 Jakub Jelinek <jakub@redhat.com>
700 * config/i386/i386.md (movstrictqi_xor): Use 'q' constraint instead
701 of 'r'. Use q_regs_operand.
702 (andsi_1+2): Use q_regs_operand.
704 2000-07-03 Jakub Jelinek <jakub@redhat.com>
706 * builtins.c (get_memory_rtx): Always put into alias set 0.
708 2000-07-03 Nick Clifton <nickc@cygnus.com>
710 * config/arm/arm.md: Fix post increment and pre increment
711 peepholes so that they do not generate UNPREDICATBLE opcodes.
712 (ie ones where the increment clobbers the source/destination).
714 2000-07-01 Marek Michalkiewicz <marekm@linux.org.pl>
716 * config/avr/avr.c (out_adj_frame_ptr): Make "frame pointer
717 change too big for -mtiny-stack" a warning, if larger than 63.
718 (out_set_stack_ptr): Change the logic so -mno-interrupts is
719 always safe to use on possible future devices.
720 (function_prologue): Write SPH before SPL, for consistency.
721 If interrupt_func_p true, we know we have enabled interrupts.
722 (avr_num_arg_regs): New function. Round up to even number of
723 bytes if no -mpack-args or if calling a libgcc function.
724 (function_arg, function_arg_advance): Use it.
725 (output_movsisf, ashlsi3_out, ashrsi3_out, lshrsi3_out):
726 Output "movw" if available.
727 (out_tsthi, out_tstsi, ashlqi3_out, lshrqi3_out): Change uses
728 of TEST_HARD_REG_CLASS macro to test_hard_reg_class function.
729 (asm_output_section_name): Add blanks for consistent output.
730 (encode_section_info): Set TREE_READONLY for progmem data to
731 avoid gas warnings about changed section attributes.
732 (avr_hard_regno_mode_ok): Force non-QImode data to start in
733 even numbered registers on devices with "movw".
734 * config/avr/avr.h (MASK_*): Define bits for target_flags.
735 (TARGET_SWITCHES): Mark help strings for translation.
736 Add new -mpack-args and -menhanced switches.
737 (TARGET_OPTIONS): Mark help strings for translation.
738 (progmem_section): Add section attributes.
739 * config/avr/avr.md (*movhi, call_insn, call_value_insn):
740 Output "movw" if available.
741 (mulqi3, mulqihi3, umulqihi3, mulhi3, *tablejump_enh):
743 * config/avr/libgcc.S (_mulqi3, _divqi3): Update to the new
744 call convention (arguments aligned on even registers).
745 (_cleanup, _exit): Make weak symbols libc can override.
747 2000-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
749 * fp-bit.h: New file.
751 * fp-bit.c: Move common code, prototypes, etc into fp-bit.h.
752 Comment #endif statements.
753 (__thenan_sf, __thenan_df): Add missing braces around initializer.
755 Mon Jul 3 00:32:47 2000 Jeffrey A Law (law@cygnus.com)
757 * gcse.c (compute_pre_data): Compute ae_kill using other local
758 properties instead of calling compute_ae_kill.
760 * alias.c (init_alias_analysis): Do not call
761 prologue_epilogue_contains until after reload has completed.
763 2000-07-02 Benjamin Chelf <chelf@codesourcery.com>
765 * c-common.h (genrtl_begin_compound_stmt): Remove declaration.
766 (genrtl_finish_compound_stmt): Likewise.
767 (genrtl_compound_stmt): Change to return void.
769 * c-semantics.c (genrtl_begin_compound_stmt): Remove function and
770 move code from here to ...
771 (genrtl_compound_stmt): ... here.
772 (genrtl_finish_compound_stmt): Remove.
773 (expand_stmt): Add comment.
775 2000-07-02 Zack Weinberg <zack@wolery.cumb.org>
777 * c-typeck.c (build_indirect_ref): Use COMPLETE_OR_VOID_TYPE_P
780 2000-07-02 Jakub Jelinek <jakub@redhat.com>
782 * cpplib.h (struct cpp_reader): New field include_depth.
783 (struct cpp_printer): Rename last_bsd to last_id.
784 * cppfiles.c (read_include_file): Bump include_depth.
785 * cpplex.c (cpp_pop_buffer): Decrement include_depth.
786 (output_line_command): Output correct #line if a header
787 is including itself and is not protected against multiple inclusion.
788 Use include_depth instead of buffer_stack_depth, last_id instead of
790 * cppinit.c (cpp_start_read): Initialize last_id instead of
793 2000-07-01 Benjamin Chelf <chelf@codesourcery.com>
795 * Makefile.in (C_AND_OBJC_OBJS): Added c-semantics.o.
796 (c-semantics.o): New target.
798 * c-common.h (TREE_LANG_FLAG_?): Added documentation.
799 (genrtl_do_pushlevel): Moved from cp/cp-tree.h.
800 (genrtl_clear_out_block): Likewise.
801 (genrtl_goto_stmt): Likewise.
802 (genrtl_expr_stmt): Likewise.
803 (genrtl_decl_stmt): Likewise.
804 (genrtl_if_stmt): Likewise.
805 (genrtl_while_stmt): Likewise.
806 (genrtl_do_stmt): Likewise.
807 (genrtl_return_stmt): Likewise.
808 (genrtl_for_stmt): Likewise.
809 (genrtl_break_stmt): Likewise.
810 (genrtl_continue_stmt): Likewise.
811 (genrtl_scope_stmt): Likewise.
812 (genrtl_switch_stmt): Likewise.
813 (genrtl_case_label): Likewise.
814 (genrtl_begin_compound_stmt): Likewise.
815 (gerntl_finish_compound_stmt): Likewise.
816 (genrtl_compound_stmt): Likewise.
817 (genrtl_asm_stmt): Likewise.
818 (genrtl_decl_cleanup): Likewise.
819 (DECL_ANON_UNION_ELEMS): Likewise.
820 (emit_local_var): Likewise.
821 (make_rtl_for_local_static): Likewise.
822 (expand_cond): Likewise.
823 (expand_stmt): Likewise.
824 (c_expand_return): Likewise.
825 (c_expand_start_case): Likewise.
827 (COMPOUND_STMT_NO_SCOPE): Likewise.
828 (c_expand_asm_operands): Likewise.
829 (NEW_FOR_SCOPE_P): New macro.
830 (expand_expr_stmt_fn): New type.
832 (set_current_function_name_declared): Likewise.
833 (current_function_name_declared): Likewise.
834 (lang_expand_stmt): Likewise.
835 (stmts_are_full_exprs_p): Likewise.
836 (anon_aggr_type_p): Likewise.
837 (lang_expand_expr_stmt): Likewise.
838 (build_case_label): Likewise.
840 * c-decl.c (lang_expand_expr_stmt): Initialize.
841 (stmts_are_full_exprs_p): Define.
842 (current_function_name_declared): Likewise.
844 (lang_expand_stmt): Likewise.
845 (set_current_function_name_declared): Likewise.
846 (anon_aggr_type_p): Likewise.
848 * c-semantics.c: New file.
849 (expand_cond): Moved from cp/semantics.c.
850 (genrtl_do_pushlevel): Likewise.
851 (genrtl_clear_out_block): Likewise.
852 (genrtl_goto_stmt): Likewise.
853 (genrtl_expr_stmt): Likewise.
854 (genrtl_decl_stmt): Likewise.
855 (genrtl_if_stmt): Likewise.
856 (genrtl_while_stmt): Likewise.
857 (genrtl_do_stmt): Likewise.
858 (genrtl_return_stmt): Likewise.
859 (genrtl_for_stmt): Likewise.
860 (genrtl_break_stmt): Likewise.
861 (genrtl_continue_stmt): Likewise.
862 (genrtl_scope_stmt): Likewise.
863 (genrtl_switch_stmt): Likewise.
864 (genrtl_case_label): Likewise.
865 (genrtl_begin_compound_stmt): Likewise.
866 (genrtl_finish_compound_stmt): Likewise.
867 (genrtl_compound_stmt): Likewise.
868 (genrtl_asm_stmt): Likewise.
869 (genrtl_decl_cleanup): Likewise.
870 (make_rtl_for_local_static): Moved from cp/decl.c.
871 (emit_local_var): Likewise.
872 (expand_stmt): Define.
874 * c-tree.h: (c_expand_asm_operands): Moved to c-common.h.
875 (c_expand_return): Likewise.
876 (c_expand_start_case): Likewise.
878 2000-07-01 Richard Henderson <rth@cygnus.com>
880 * config/ia64/ia64.c (symbolic_operand): Reject CONST expressions
881 with the low 13 bits set.
882 (move_operand): Check for CONST|SYMBOL_REF|LABEL_REF directly.
883 * config/ia64/ia64.md (movdi): Likewise. Expand a CONST with one
884 of the low 13 bits into a CONST plus an adddi3.
885 (load_symptr): Set RTX_UNCHANGING_P.
887 2000-06-30 Mark Mitchell <mark@codesourcery.com>
889 * Makefile.in (c-common.o): Don't depend on c-tree.h or c-lex.h.
890 * c-common.c (ridpointers): Declare.
891 * c-common.h (enum rid): Declare.
893 (ridpointers): Likewise.
894 * c-lex.c (ridpointers): Don't declare.
895 (init_lex): Initialize ridpointers.
896 * c-lex.h (enum rid): Don't declare.
898 (RID_FIRST_MODIFIER): Likewise.
899 (ridpointers): Likewise.
901 2000-06-30 J. David Anglin <dave@hiauly1.hia.nrc.ca>
903 * pa/som.h (ASM_WEAKEN_LABEL): Export weak data symbols so that they
906 2000-06-30 Martin von Loewis <loewis@informatik.hu-berlin.de>
908 * invoke.texi (-Wreturn-type): In C++, a missing return type is
911 2000-06-30 Catherine Moore <clm@cygnus.com>
913 * c-common.c (decl_attributes): Differentiate between
914 types and type decls for alignment.
916 2000-06-30 Nathan Sidwell <nathan@codesourcery.com>
918 * cpp.texi: Document #pragma GCC dependency
919 * cppfiles.c (open_include_file): Set date to unknown.
920 (_cpp_compare_file_date): New function.
921 (read_include_file): Set file date.
922 * cpphash.h (struct include_file): Add date member.
923 (_cpp_compare_file_date): Prototype.
924 * cpplib.c (parse_include): Add trail parameter. Adjust.
925 (do_include): Adjust parse_include call.
926 (do_import): Likewise.
927 (do_include_next): Likewise.
928 (gcc_pragmas): Add dependency pragma.
929 (do_pragma_dependancy): New pragma.
931 2000-06-29 Jason Merrill <jason@redhat.com>
933 * dwarf2out.c (output_loc_operands): Don't abort on codes that have
936 2000-06-29 Jim Wilson <wilson@cygnus.com>
938 * config/ia64/ia64.h (PREFERRED_RELOAD_CLASS): Return NO_REGS for
939 a volatile mem and FR_REGS.
941 2000-06-29 Mark Mitchell <mark@codesourcery.com>
943 * c-common.c: Include c-common.h, not c-lex.h or c-tree.h.
944 * c-common.h (flag_const_strings): Declare.
945 (warn_format): Likewise.
946 (flag_traditional): Likewise.
947 (flag_isoc99): Likewise.
948 (warn_parentheses): Likewise.
949 (warn_conversion): Likewise.
950 (C_TYPE_OBJECT_P): Likewise.
951 (C_TYPE_INCOMPLETE_P): Likewise.
952 (C_TYPE_FUNCTION_P): Likewise.
953 (C_TYPE_OBJECT_OR_INCOMPLETE_P): Likewise.
954 (C_EXP_ORIGINAL_CODE): Likewise.
955 (build_unary_op): Likewise.
956 (build_binary_op): Likewise.
957 (lvalue_p): Likewise.
958 (default_conversion): Likewise.
959 (common_type): Likewise.
960 * c-tree.h (C_TYPE_OBJECT_P): Remove.
961 (C_TYPE_INCOMPLETE_P): Likewise.
962 (C_TYPE_FUNCTION_P): Likewise.
963 (C_TYPE_OBJECT_OR_INCOMPLETE_P): Likewise.
964 (C_EXP_ORIGINAL_CODE): Likewise.
965 (common_type): Likewise.
966 (default_conversion): Likewise.
967 (build_binary_op): Likewise.
968 (build_unary_op): Likewise.
969 (lvalue_p): Likewise.
970 (flag_const_strings): Likewise.
971 (warn_format): Likewise.
972 (warn_conversion): Likewise.
973 (flag_traditional): Likewise.
974 (flag_isoc99): Likewise.
975 (warn_parentheses): Likewise.
977 2000-06-29 James E. Wilson <wilson@cygnus.com>
979 * config/ia64/linux.h (LINK_SPEC): Change so.1 to so.2.
981 * config/ia64/ia64.h (MODES_TIEABLE_P): Only tie if mode class is the
982 same. Only tie XFmode with XFmode.
984 2000-06-29 Zack Weinberg <zack@wolery.cumb.org>
986 * c-decl.c, timevar.c, tlink.c: Include intl.h.
987 * Makefile.in: Update deps.
989 2000-06-29 Andrew Haley <aph@cygnus.com>
991 * toplev.c (main): On an IA-64, make flag_unwind_tables defauit
994 2000-06-29 Andrew Haley <aph@cygnus.com>
996 * config/ia64/linux.h (JMP_BUF_SIZE): Size is in Pmode units, not
997 bytes: remove the multiply by 8.
999 2000-06-29 Philipp Thomas <pthomas@suse.de>
1001 * rtl.c : Revert NLS changes.
1002 * gcc.c : Fix bug in display_help introced by my last changes.
1004 Wed Jun 28 21:09:33 2000 Raja R Harinath <harinath@cs.umn.edu>
1006 * dbxout.c (dbxout_symbol, case RESULT_DECL, VAR_DECL): Use
1007 DECL_CONTEXT, not DECL_FIELD_CONTEXT.
1009 2000-06-29 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
1011 * flow.c (flow_depth_first_order_compute): Fix algorithm.
1013 2000-06-28 Philipp Thomas <pthomas@suse.de>
1015 * c-decl.c : Mark strings for translation.
1016 (parmlist_tags_warning): Use distinct messages instead
1017 of conditional expressions.
1018 * diagnostic.c (v_message_with_decl): Mark string for translation.
1019 * gcc.c: Mark messages for translation.
1020 (display_help): Combine messages into one string where necessary.
1021 * mips-tfile: Add intl.h. Mark messages for translation.
1022 * rtl.c (fatal_with_file_and_line): Modify function for NLS. Mark
1023 messages for translation.
1024 * timevar.c: Mark messages for translation.
1025 * tlink.c: Likewise.
1026 * toplev.c: Likewise.
1028 Wed Jun 28 15:39:26 2000 Donn Terry (donnte@microsoft.com)
1030 * i386-interix.h (STRIP_NAME_ENCODING): Declare _new_name properly.
1032 * alpha/alpha-interix.h: Delete redundant -Asystem(interix),
1033 use -isystem instead of -idirafter.
1034 * i386/i386-interix.h: Likewise.
1036 2000-06-28 Jason Merrill <jason@redhat.com>
1038 * dwarf2out.c (output_loc_operands): Don't support >1 byte output
1039 unless DWARF2_DEBUGGING_INFO is defined.
1040 (ASM_OUTPUT_DWARF_*): Wrap normal output defs with #ifndefs.
1042 2000-06-28 Richard Henderson <rth@cygnus.com>
1044 * config/alpha/alpha.c (summarize_insn): Ignore SCRATCH.
1046 2000-06-28 Jakub Jelinek <jakub@redhat.com>
1048 * cpplex.c (output_line_command): Output correct #line if a header
1049 is including itself and is not protected against multiple inclusion.
1051 2000-06-28 Zack Weinberg <zack@wolery.cumb.org>
1053 * cppfiles.c (open_include_file): If open(2) returns EMFILE or
1054 ENFILE, close all cached file descriptors and try again.
1055 (_cpp_execute_include): Keep a count of the number of times
1056 each header is included.
1057 (close_cached_fd): New function.
1058 * cpphash.h (struct include_file): Rename before to
1059 include_count; all users updated. Make include_count and sysp
1061 * cppinit.c (cpp_finish): If -H, report headers that could use
1063 (report_missing_guard): New function.
1065 Wed Jun 28 14:46:58 MET DST 2000 Jan Hubicka <jh@suse.cz>
1067 * i386.md (prologue_set_got): Set length_immediate field.
1068 (testqi_ccno_1): Add missing '@' character.
1070 2000-06-27 Jason Merrill <jason@redhat.com>
1072 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes): Use
1075 2000-06-27 Andrew Macleod <amacleod@cygnus.com>
1077 * dwarf2out.c (ASM_OUTPUT_DWARF_DATA2): Provide default when no
1078 unsigned macros available.
1080 2000-06-27 Richard Henderson <rth@cygnus.com>
1082 * config/ia64/ia64.c (emit_insn_group_barriers): Special case
1083 epilogue_deallocate_stack.
1085 * config/ia64/ia64.c (ia64_print_operand) [case D]: Emit
1086 completers for UNORDERED and ORDERED as well.
1087 * config/ia64/ia64.md (bunordered, bordered): New.
1088 (sunordered, sordered): New.
1090 Tue Jun 27 12:14:12 MET DST 2000 Jan Hubicka <jh@suse.cz>
1092 * genattrtab.c (write_attr_value): Do not abort for CONST_INT operands.
1093 * i386.c (ix86_attr_length_default): Kill.
1094 (ix86_attr_length_immediate_default, ix86_attr_length_address_default):
1096 * i386-protos.h (ix86_attr_length_default): Kill
1097 (ix86_attr_length_immediate_default, ix86_attr_length_address_default):
1099 * i386.md (attribute type): Add "test".
1100 (attribute length_prefix): Kill.
1101 (attribute length_opcode): Kill.
1102 (attribute i387, mode, length_immediate, length_address, prefix_data16,
1103 prefix_rep, prefix_0f, modrm): New.
1104 (attribute length): Compute using the new attributes.
1105 (attribute pent_prefix): New.
1106 (attribute pent_pair): Compute using pent_prefix.
1107 (all insn patterns): Set mode,modrm and immediate_length attributes where
1109 (cmpsi patterns): Compute sizes propertly for test instruction.
1110 (movsi, movhi patterns): Compute sizes propertly for eax shortcuts.
1111 (movstricthi_xor, movstrictqi_xor): New patterns.
1112 (andsi/andhi): Use splitters to generate xor instructions.
1113 (xorqi_ext_1): New pattern.
1114 (movstricthi->movstricthi_xor peep2): New.
1116 Tue Jun 27 12:03:03 MET DST 2000 Jan Hubicka <jh@suse.cz>
1118 * i386.md (addqi_low_1): Remove.
1120 2000-06-27 Philipp Thomas <pthomas@suse.de>
1122 * 1750a.h: Mark help strings for options/switches for translation.
1124 * alpha.h: Likewise.
1127 * riscix.h: Likewise.
1129 * clipper.h: Likewise.
1130 * convex.h: Likewise.
1131 * elxsi.h: Likewise.
1134 * h8300.h: Likewise.
1136 * cygwin.h: Likewise.
1138 * djgpp.h: Likewise.
1140 * osf1elf.h: Likewise.
1141 * osfrose.h: Likewise.
1143 * win32.h: Likewise.
1145 * paragon.h: Likewise.
1149 * mcore.h: Likewise.
1151 * mn10300.h: Likewise.
1152 * ns32k.h: Likewise.
1153 * pdp11.h: Likewise.
1156 * aix41.h: Likewise.
1157 * aix43.h: Likewise.
1159 * rs6000.h: Likewise.
1160 * sysv4.h: Likewise.
1161 * linux.h: Likewise.
1162 * linux64.h: Likewise.
1163 * sp64-elf.h: Likewise.
1164 * sparc.h: Likewise.
1165 * splet.h: Likewise.
1167 * convex.h (TARGET_SWITCHES): Provide descriptions and mark them
1169 * sp86x-aout.h: Remove bogus first definition of SUBTARGET_SWITCHES.
1170 Properly document option and mark for translation.
1171 * sp86x-elf.h: Likewise.
1173 2000-06-27 Bernd Schmidt <bernds@cygnus.co.uk>
1175 Add MMX and SSE registers to i386 machine description.
1176 * i386-protos.h (ix86_constant_alignment, ix86_data_alignment,
1177 ix86_local_alignment): Declare.
1179 * i386.h (TARGET_MMX, TARGET_SSE): New.
1180 (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS, CALL_USED_REGISTERS,
1181 REG_ALLOC_ORDER, HARD_REGNO_NREGS, HARD_REGNO_MODE_OK,
1182 REG_CLASS_NAMES, REG_CLASS_CONTENTS,REG_CLASS_FROM_LETTER,
1183 enum reg_class, HI_REGISTER_NAMES): Added MMX/SSE registers.
1184 (FIRST_SSE_REG, LAST_SSE_REG, SSE_REGNO_P): New.
1185 (FIRST_MMX_REG, LAST_MMX_REG, MMX_REGNO_P, MMX_REG_P): New macros.
1186 (RETURN_IN_MEMORY): Handle MMX/SSE.
1187 (REG_PARM_STACK_SPACE): Added so the first three TImode parameters
1188 also get stack space.
1189 (MUST_PASS_IN_STACK): Added TImode to the default definition.
1190 (CUMULATIVE_ARGS): Added sse_nregs, sse_regno and sse_words.
1191 (MMX_REGISTER_NAMES): New.
1192 (ALIGN_MODE_128): New macro.
1193 (CONSTANT_ALIGNMENT): Code moved out-of-line; just call the function.
1194 (DATA_ALIGNMENT): Likewise.
1195 (LOCAL_ALIGNMENT): Likewise.
1196 (CONDITIONAL_REGISTER_USAGE): Make MMX/SSE regs fixed if not
1197 TARGET_MMX/TARGET_SSE.
1198 (VALID_SSE_REG_MODE, VALID_MMX_REG_MODE): New macros.
1199 (REG_CLASS_FROM_LETTER): 'y' for MMX regs.
1200 (SECONDARY_MEMORY_NEEDED): Be conservative about copying between
1201 SSE/MMX regs and something else.
1202 (CLASS_MAX_NREGS): 1 for SSE and MMX regs.
1203 (REGISTER_MOVE_COST): 10 if trying to move between MMX and SSE regs,
1204 3 if moving between MMX regs and something else.
1206 * i386.c (reg_class): Add SSE_REGS, MMX_REGS.
1207 (regclass_map): Add MMX/SSE registers.
1208 (print_operand): Add code to print XMMWORD as appropriate.
1209 (ix86_split_movdi): Abort for MMX regs.
1210 (init_cumulative_args): Also allow SSE_REGS
1211 (function_arg_advance, function_arg): Likewise
1212 (print_reg): Support 'm'. Add case for TImode.
1213 (override_options): TARGET_SSE implies TARGET_MMX.
1214 (ix86_constant_alignment, ix86_data_alignment, ix86_local_alignment):
1217 * config/i386/unix.h (VALUE_REGNO): VECTOR_MODE values go to
1219 * config/i386/ptx4-i.h (RETURN_IN_MEMORY): Return MMX values in
1221 * config/i386/sysv4.h (RETURN_IN_MEMORY): Likewise.
1222 * config/i386/i386elf.h (RETURN_IN_MEMORY): Likewise.
1224 2000-06-26 Geoff Keating <geoffk@cygnus.com>
1226 * ssa.c (struct rename_set_data): Change the name of field
1227 'set_dest' to 'old_reg'. Add comments.
1228 (struct rename_context): Change the name of 'set_data' to
1229 'new_renames'. Add new field 'done_renames'.
1230 (create_delayed_rename): New function.
1231 (apply_delayed_renames): New function.
1232 (rename_insn_1): Use the new functions. Handle CLOBBERS. Handle
1233 SUBREGs and similar by emitting a move.
1234 (new_registers_for_updates): Delete, functionality moved to
1235 apply_delayed_renames.
1236 (rename_block): Handle moves emitted by rename_insn_1 by putting
1237 them into a SEQUENCE with the original insn. Add sanity checks
1239 (rename_equivalent_regs_in_insn): Don't handle SUBREGs specially.
1240 (rename_equivalent_regs): Expand SEQUENCEs out to individual insns.
1242 2000-06-26 Andrew Macleod <amacleod@cygnus.com>
1243 Jason Merrill <jason@redhat.com>
1245 * dwarf2.h (enum dwarf_call_frame_info): Add
1246 DW_CFA_def_cfa_expression.
1247 * dwarf2out.c (union dw_cfi_oprnd_struct): Add a pointer to a
1248 dw_loc_descr_struct entry.
1249 (struct cfa_loc): New structure to track a CFA location.
1250 (lookup_cfa): Take a cfa_loc parameter instead of a reg and an offset.
1251 (lookup_cfa_1): Take a cfa_loc parameter instead of a reg and an
1252 offset, plus handle DW_CFA_def_cfa_expression.
1253 (def_cfa_1): Use to be dwarf2out_def_cfa, only now it uses a
1255 (dwarf2out_def_cfa): Entry point maintained for compatability.
1256 (dwarf_cfi_name): Add DW_CFA_def_cfa_expression.
1257 (cfa_reg, cfa_offset): Replace with cfa_loc record 'cfa'.
1258 (cfa_store_reg, cfa_store_offset): Replace with cfa_loc 'cfa_store'.
1259 (initial_return_save, dwarf2out_stack_adjust): Use cfa.reg, not
1261 (dwarf2out_frame_debug_expr): Use new cfa_loc records. Recognize rtl
1262 sequences for the new DW_CFA_def_cfa_expression record.
1263 (dwarf2out_frame_debug): Use new variables/fields.A
1264 (output_cfi): Handle DW_CFA_def_cfa_expression.
1265 (output_cfa_loc): New function to generate a CFI record for
1266 DW_CFA_def_cfa_expression.
1267 (get_cfa_from_loc_descr): New function to get a cfa_loc record from
1268 a dw_loc_descr sequeunce.
1269 (build_loc_descr): Build a dw_loc_descr from a cfa_loc record.
1270 (dwarf_stack_op_name, new_loc_descr, add_loc_descr, size_of_loc_descr,
1271 size_of_locs, output_loc_operands, output_loc_sequence): Move into
1272 unwind info section.
1273 * frame.h (frame_state): Add base_offset and indirect fields.
1274 * frame-dwarf2.c (decode_stack_op): New function to interpret a
1275 dw_loc_descr operation.
1276 (execute_cfa_insn): Add support for DW_CFA_def_cfa_expression.
1277 (struct frame_state): Add base offset and indirect fields.
1278 * libgcc2.c (next_stack_level): Support indirect loading for CFA.
1280 2000-06-26 Joseph S. Myers <jsm28@cam.ac.uk>
1282 * c-decl.c (grokdeclarator): Don't warn about `long long' in C99.
1283 Make warnings about implicit int be pedwarns in C99. Don't warn
1284 about duplicate type qualifiers in C99.
1285 (start_function): Make warning about implict int return type be a
1287 * c-lex.c (yylex): Don't warn about `long long' in C99.
1288 * c-typeck.c (c_expand_return): In C99, always pedwarn about
1289 `return' with no value in function returning non-void.
1291 2000-06-26 Richard Henderson <rth@cygnus.com>
1293 * c-typeck.c (pedwarn_c99): New.
1294 * diagnostic.c (verror, vwarning, vpedwarn): Export.
1295 * toplev.h: Prototype them.
1297 2000-06-26 J. David Anglin <dave@hiauly1.hia.nrc.ca>
1299 * c-typeck.c (digest_init): Return error_mark_node node when
1300 TREE_TYPE (init) == error_mark_node.
1302 2000-06-26 Philipp Thomas <pthomas@suse.de>
1304 * aclocal.m4 (AM_WITH_NLS): Don't set MSGFMT or GMSGFMT to no,
1305 test for msgfmt without path instead.
1306 * configure: Rebuilt.
1308 2000-06-25 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
1310 * gengenrtl.c (special_rtx): Fix typo in comment.
1312 2000-06-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
1314 * mklibgcc.in (LIB2FUNCS): Add missing space.
1316 2000-06-24 Bernd Schmidt <bernds@cygnus.co.uk>
1318 * tree.h (enum tree_index): Add vector type nodes.
1319 Add accessor macros for them.
1320 (TYPE_REPRESENATION_TYPE): New macro.
1321 * tree.c (build_common_tree_nodes_2): Build these nodes.
1322 (finish_vector_type): New function.
1323 * c-common.c (type_for_mode): Handle vector modes.
1324 * tm.texi (VECTOR_MODE_SUPPORTED_P): Document.
1326 * dbxout.c (dbxout_type): Handle VECTOR_TYPEs.
1327 * dwarf.h (enum dwarf_fundamental_type): Add 128 bit integers.
1328 * dwarf2out.c (lookup_type_die): Handle VECTOR_TYPEs.
1329 (gen_type_die): Likewise.
1330 * dwarfout.c (dwarf_fund_type_name): Handle 128 bit integers.
1331 (fundamental_type_code): Likewise.
1332 (type_is_fundamental): VECTOR_TYPEs aren't.
1333 (output_type): Handle VECTOR_TYPEs.
1335 2000-06-25 Kazu Hirata <kazu@hxi.com>
1337 * config/arm.c: Fix a comment typo.
1338 * config/arm.h: Likewise.
1340 2000-06-25 Philipp Thomas <pthomas@suse.de>
1342 * aclocal.m4 (AM_WITH_NLS): Set create_catalogs=no if no catalog
1344 AM_GNU_GETTEXT: Don't set CATALOGS if create_catalogs=no.
1345 * configure: Rebuilt.
1347 2000-06-25 John David Anglin <dave.anglin@nrc.ca>
1349 * config/vax/vax.h (TARGET_SWITCHES): Provide descriptions.
1351 2000-06-25 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
1353 * mklibgcc.in: Prefer LIB1ASMFUNCS over LIB2FUNCS when generating
1356 2000-06-24 Marc Espie <espie@cvs.openbsd.org>
1358 * collect2.c (resolve_lib_name): Move '/' check out of loop.
1360 2000-06-24 Dirk Duellmann <Dirk.Duellmann@cern.ch>
1362 * ginclude/stddef.h (NULL): define for non-gnu C++ parsers as 0.
1364 2000-06-24 Jakub Jelinek <jakub@redhat.com>
1366 * stmt.c (expand_decl_cleanup): Emit a dummy insn after
1367 last_unconditional_cleanup.
1369 2000-06-24 Bernd Schmidt <bernds@cygnus.co.uk>
1371 * tree.def (VECTOR_TYPE): New node type.
1372 * tree.h: Adjust some comments to reflect addition of vector types.
1373 (TYPE_VECTOR_SUBPARTS): New macro.
1374 * stor-layout.c (layout_type): Handle VECTOR_TYPE.
1375 * c-convert.c (convert): Likewise.
1376 * convert.c (convert_to_integer): Handle vector modes.
1377 (convert_to_vector): New function.
1378 * convert.h (convert_to_vector): Declare.
1379 * expr.c (convert_move): Handle vector modes.
1380 * expmed.c (extract_bit_field): Don't abort for vector modes.
1382 2000-06-24 Marek Michalkiewicz <marekm@linux.org.pl>
1384 * config/avr/avr-protos.h (avr_hard_regno_mode_ok): New prototype.
1385 * config/avr/avr.c (out_adj_frame_ptr, out_set_stack_ptr):
1386 New functions, common code moved from function_{prologue,epilogue}
1387 and extended to support the -mtiny-stack option.
1388 (function_prologue, function_epilogue): Use them.
1389 Use lo8/hi8 consistently for asm output readability.
1390 (avr_hard_regno_mode_ok): New function.
1391 * config/avr/avr.h (TARGET_SWITCHES): Fix typo. Add -mtiny-stack.
1392 (UNITS_PER_WORD): Define as 4 (not 1) when compiling libgcc2.c.
1393 (HARD_REGNO_MODE_OK): Call the avr_hard_regno_mode_ok function.
1394 * config/avr/avr.md (*mov_sp_r): Add support for -mtiny-stack.
1395 Write SPH before SPL.
1396 (*movqi): No need to disable interrupts for just one "out"
1397 in alternative 5. Change length attribute from 4 to 1.
1398 * config/avr/libgcc.S (__prologue_saves__, __epilogue_restores__):
1399 Write SPH before SPL.
1401 2000-06-24 Bernd Schmidt <bernds@cygnus.co.uk>
1403 * rtl.texi (Vector Operations): New node.
1404 (Arithmetic): Add ss_plus, us_plus, ss_minus, us_minus.
1405 (Conversions): Add ss_truncate, us_truncate.
1406 * rtl.def (VEC_MERGE, VEC_SELECT, VEC_CONCAT, VEC_REORDER,
1407 VEC_CONST, VEC_DUPLICATE, SS_PLUS, SS_MINUS, SS_TRUNCATE,
1408 US_TRUNCATE): New rtx codes.
1409 * machmode.def: Add vector modes.
1410 * machmode.h (enum mode_class): Add MODE_VECTOR_INT and
1412 (INTEGER_MODE_P): Check for MODE_VECTOR_INT.
1413 (FLOAT_MODE_P): Check for MODE_VECTOR_FLOAT.
1414 (VECTOR_MODE_P): New.
1416 2000-06-24 Nathan Sidwell <nathan@codesourcery.com>
1418 * cpp.texi: Clarify #pragma GCC namespace.
1420 2000-06-24 Philipp Thomas <pthomas@suse.de>
1422 * aclocal.m4(AM_GNU_GETTEXT): If LINGUAS isn't set, build
1423 all catalogs specified in ALL_LINGUAS.
1424 * configure: Rebuilt.
1426 2000-06-23 Jakub Jelinek <jakub@redhat.com>
1428 * config/sparc/sparc.md (reload_outdi+1): Handle
1429 HOST_BITS_PER_WIDE_INT == 64 case correctly.
1430 (adddi3_insn_sp32+1, adddi3_insn_sp32+2, andsi3+2): Likewise.
1432 2000-06-23 Geoffrey Keating <geoffk@cygnus.com>
1434 * alias.c (fixed_scalar_and_varying_struct_p): Don't examine
1435 struct vs. scalar-ness when -fno-strict-aliasing.
1437 2000-06-23 Nathan Sidwell <nathan@codesourcery.com>
1439 * cpplib.c (struct pragma_entry): New structure.
1440 (pragma_dispatch): Pragma dispatcher.
1441 (top_pragmas, gcc_pragmas): New static variables.
1442 (do_pragma): Use pragma_dispatch.
1443 (do_pragma_gcc): New pragma handler.
1446 2000-06-23 Jakub Jelinek <jakub@redhat.com>
1448 * calls.c (compute_argument_addresses): Force stack slots into
1450 * expr.c (emit_push_insn): Force pushes into alias set 0.
1452 2000-06-23 Richard Henderson <rth@cygnus.com>
1454 * config/ia64/ia64.md (pred_rel_mutex): Only take one register.
1455 * config/ia64/ia64.c (emit_predicate_relation_info): Adjust to match.
1457 2000-06-22 Jason Merrill <jason@redhat.com>
1459 * toplev.c (compile_file): Always call timevar_print.
1460 * Makefile.in (calls.o): Depend on TIMEVAR_H.
1462 2000-06-22 Nathan Sidwell <nathan@codesourcery.com>
1464 * varasm.c (constant_descriptor): Make contents unsigned char.
1465 (mark_const_hash_entry): Adjust.
1466 (const_hash): Just hash the code of unknown nodes.
1467 (compare_constant_1): Adjust for unsigned char.
1468 Use language specific expander on unknown nodes.
1469 (record_constant_1): Likewise.
1471 2000-06-21 Zack Weinberg <zack@wolery.cumb.org>
1473 * cppfiles.c (cpp_make_system_header): New function.
1474 * cpplib.h: Prototype it.
1475 * cpplib.c (do_line, do_pragma_system_header): Use it.
1476 * fix-header.c (read_scan_file): Use it.
1478 * fix-header.c (check_macro_names): Cast second arg of
1479 cpp_defined to const unsigned char *.
1480 (read_scan_file): Make getchar_call const unsigned char.
1482 2000-06-21 Zack Weinberg <zack@wolery.cumb.org>
1484 * cppfiles.c: Include splay-tree.h, not hashtab.h.
1485 (redundant_include_p, make_IHASH, hash_IHASH, eq_IHASH): Delete.
1486 (destroy_include_file_node): New.
1487 (_cpp_init_include_hash): Rename _cpp_init_include_table.
1488 Create a splay tree, not a hash table.
1489 (open_include_file): Look up the path in the include table,
1490 do the multiple include optimization here, etc.
1491 (cpp_included): Walk the path.
1492 (find_include_file): Just walk the path calling
1493 open_include_file, or call it directly for an absolute path.
1494 (_cpp_fake_ihash): Rename _cpp_fake_include and update for new
1496 (read_include_file): Update for new scheme. Don't close the
1497 file unless reading fails.
1498 (_cpp_execute_include, cpp_read_file): Tweak for new scheme.
1500 * cpphash.h (struct ihash, NEVER_REINCLUDE): Delete.
1501 (struct include_file): New.
1502 (NEVER_REREAD, DO_NOT_REREAD, CPP_IN_SYSTEM_HEADER): New
1504 (CPP_PEDANTIC, CPP_WTRADITIONAL): Update.
1507 * cppinit.c: Include splay-tree.h.
1508 (cpp_reader_init, cpp_cleanup): Update.
1510 * cpplib.h (struct cpp_buffer): Change ihash field to
1511 'struct include_file *inc'. Remove system_header_p.
1512 (struct cpp_reader): Change all_include_files to a
1513 struct splay_tree_s *.
1515 * cpplex.c: Update all references to cpp_buffer->ihash and/or
1516 cpp_buffer->system_header_p.
1517 (cpp_pop_buffer): Close file here, only if DO_NOT_REREAD.
1519 * Makefile.in (SPLAY_TREE_H): New macro.
1520 (cppfiles.o, cppinit.o): Update dependencies.
1522 Wed Jun 21 11:05:48 2000 Martin Buchholz <martin@xemacs.org>
1524 * invoke.texi (g++): "g++" is not a script anymore.
1526 2000-06-20 J. David Anglin <dave@hiauly1.hia.nrc.ca>
1528 * function.c (round_down): Delete obsolete prototype.
1530 * pa.h (CPP_SPEC): Add whitespace after -D__STDC_EXT__.
1532 2000-06-20 Zack Weinberg <zack@wolery.cumb.org>
1534 * configure.in: Use 'test a = b' not 'test a == b'.
1537 * Makefile.in (fix-header): Link with $(LIBS) not $(HOST_LIBS).
1539 * Makefile.in: Remove all references to HOST_INTLLIBS.
1541 * cpplex.c (parse_name): Don't warn about $ in identifiers if
1544 2000-06-20 Philipp Thomas <pthomas@suse.de>
1546 * config/pa/pa.h(TARGET_SWITCHES): Require binutils 2.10 or later
1549 Mon Jun 19 23:26:40 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
1551 * Take REG_INC notes into account.
1553 2000-06-19 Zack Weinberg <zack@wolery.cumb.org>
1555 * c-parse.in (undeclared_variable_notice): Moved to c-typeck.c.
1556 (primary: IDENTIFIER): Just call build_external_ref.
1557 * c-parse.y, c-parse.c, objc/objc-parse.y, objc/objc-parse.c:
1559 * c-lex.c (lastiddecl): Remove.
1560 (yylex): Replace all instances of lastiddecl with local
1563 * c-typeck.c (build_external_ref): New function. Treat decls
1564 with C_DECL_ANTICIPATED mostly the same as nonexistent decls.
1565 Look up the decl from the id here. Call lookup_objc_ivar.
1566 * c-lang.c (lookup_objc_ivar): Stub.
1567 * objc/objc-act.c (lookup_objc_ivar): New function.
1569 * c-tree.h: Prototype lookup_objc_ivar and build_external_ref.
1570 * c-lex.h: Don't declare lastiddecl.
1572 2000-06-19 Benjamin Chelf <chelf@codesourcery.com>
1574 * c-common.h (IF_COND): Added documentation.
1575 (THEN_CLAUSE): Likewise.
1576 (ELSE_CLAUSE): Likewise.
1577 (WHILE_COND): Likewise.
1578 (WHILE_BODY): Likewise.
1579 (DO_COND): Likewise.
1580 (DO_BODY): Likewise.
1581 (RETURN_EXPR): Likewise.
1582 (EXPR_STMT_EXPR): Likewise.
1583 (FOR_INIT_STMT): Likewise.
1584 (FOR_COND): Likewise.
1585 (FOR_EXPR): Likewise.
1586 (FOR_BODY): Likewise.
1587 (SWITCH_COND): Likewise.
1588 (SWITCH_BODY): Likewise.
1589 (CASE_LOW): Likewise.
1590 (CASE_HIGH): Likewise.
1591 (GOTO_DESTINATION): Likewise.
1592 (COMPOUND_BODY): Likewise.
1593 (ASM_CV_QUAL): Likewise.
1594 (ASM_STRING): Likewise.
1595 (ASM_OUTPUTS): Likewise.
1596 (ASM_INPUTS): Likewise.
1597 (ASM_CLOBBERS): Likewise.
1598 (DECL_STMT_DECL): Likewise.
1599 (STMT_EXPR_STMT): Likewise.
1600 (LABEL_STMT_LABEL): Likewise.
1602 * c-common.def: Added documenetion for SRCLOC, EXPR_STMT,
1603 COMPOUND_STMT, DECL_STMT, IF_STMT, FOR_STMT, WHILE_STMT, DO_STMT,
1604 RETURN_STMT, BREAK_STMT, CONTINUE_STMT, SWITCH_STMT, GOTO_STMT,
1605 LABEL_STMT, ASM_STMT, SCOPE_STMT, CASE_LABEL, STMT_EXPR.
1607 2000-06-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1609 * configure.in (--enable-checking): Update --help doc to reflect
1610 new defaults. Ensure $ac_save_IFS is set before $IFS is changed.
1612 Sun Jun 18 21:42:15 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1614 * gcse.c (insert_insn_end_bb): Always put after NOTE_INSN_BASIC_BLOCK.
1616 * function.c (put_var_into_stack): Don't reference DECL_ fields
1617 if input is a SAVE_EXPR.
1618 Use set_mem_attributes in COMPLEX case.
1620 2000-06-18 Richard Henderson <rth@cygnus.com>
1622 * config/ia64/ia64-protos.h (process_for_unwind_directive): Declare.
1623 (ia64_file_start): Declare.
1624 * config/ia64/ia64.h (ADDL_REGNO_P): Don't compare unsigned against 0.
1625 (GR_REGNO_P): Likewise.
1626 * config/ia64/ia64.c: Many prototypes.
1627 (ia64_reg_numbers): Constify.
1628 (ia64_input_reg_names, ia64_local_reg_names): Likewise.
1629 (ia64_section_threshold): Make unsigned.
1630 (ia64_print_operand): Constify.
1631 (fix_range): Constify.
1632 (ia64_init_builtins): Don't compare signed vs unsigned.
1633 (ia64_expand_builtin): Likewise.
1635 * config/ia64/ia64.h (EXTRA_CONSTRAINT): New.
1636 (CONSTRAINT_OK_FOR_Q): New.
1637 * config/ia64/ia64.md (movdi_internal): Use Q for fp<->mem.
1638 (movsf_internal, movdf_internal): Likewise.
1639 (cmovdi_internal): Rewrite so that constraints and predicates match;
1641 (cmovsi_internal): Likewise.
1643 * config/ia64/ia64.h (ASM_SPEC): Add -x for gas.
1644 (ASM_FILE_START): New.
1645 * config/ia64/ia64.c (ia64_file_start): New.
1646 (rtx_needs_barrier): Handle pred.rel.mutex.
1647 (emit_predicate_relation_info): New.
1648 * config/ia64/ia64.md (pred_rel_mutex): New.
1649 * config/ia64/linux.h (ASM_SPEC): Define.
1650 * config/ia64/sysv4.h (ASM_FILE_START): Define.
1652 * config/ia64/ia64.c (ia64_encode_section_info): Fix thinko
1653 filtering global register variables.
1655 2000-06-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1657 * c-common.c (add_c_tree_codes): Fix definition for traditional C.
1659 2000-06-17 Michael Meissner <meissner@redhat.com>
1661 * gcc.c (do_spec_1, '%v3' case): Do not abort if patch level is
1662 not present and there is a field after a '-'.
1664 2000-06-17 Bruce Korb <bkorb@gnu.org>
1666 * fixinc/check.tpl: finish the implementation of multiple tests
1668 * fixinc/inclhack.def(ctrl_quotes_def): add a second test
1669 (io_quotes_def): add a second test
1670 (various): reorder `files' so that "limits.h" is never first
1671 * fixinc/tests/base/*: update the testing output
1673 Sat Jun 17 10:33:59 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1675 * gcc.texi: Remove reference to stupid.c.
1677 2000-06-16 Benjamin Chelf <chelf@codesourcery.com>
1679 * c-common.c (c_tree_code_type): New array.
1680 (c_tree_code_length): Likewise.
1681 (c_tree_code_name): Likewise.
1682 (add_c_tree_codes): New function.
1684 * c-common.h (add_c_tree_codes): Declare.
1685 (enum c_tree_code): New enum.
1687 * c-lex.c (init_parse): Added call to add_c_tree_codes.
1689 2000-06-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1691 * fixinc/inclhack.def (ctrl_quotes_def, io_quotes_def): Modify
1692 select pattern to also match macro defs with only one argument.
1694 Thu Jun 15 18:56:12 2000 Jeffrey A Law (law@cygnus.com)
1696 * i386.md: Create new [right,left] rotate and right shift
1697 patterns to optimize shift by 1 bit for certain ia32 processors.
1698 Update patterns which perform left shifts to optimize shift by
1699 1 bit for certain ia32 processors.
1700 * i386.c (const_int_1_operand): New predicate.
1701 * i386.h (PREDICATE_CODES): Handle const_int_1_operand.
1702 * i386-protos.h (const_int_1_operand): Prototype.
1704 Wed Jun 14 23:46:26 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
1706 * mips.c (machine_dependent_reorg): Fix braces for nested if.
1708 2000-06-14 Geoff Keating <geoffk@cygnus.com>
1710 * rs6000.c (toc_hash_eq): Use CODE_LABEL_NUMBER to compare
1713 2000-06-14 Richard Henderson <rth@cygnus.com>
1715 * conflict.c (conflict_graph_compute): Don't look for REG_INC.
1717 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Don't emit
1720 * print-rtl.c (print_rtx): Emit space before mem alias set.
1722 2000-06-14 David Edelsohn <edelsohn@gnu.org>
1724 * rs6000.c (expand_block_move): Fix typo in earlier change.
1725 (print_operand): Remove unused variables neg and op.
1726 (toc_hash_mark_entry): Fix prototype.
1728 2000-06-14 Benjamin Chelf <chelf@codesourcery.com>
1730 * c-common.h (IF_COND): Moved here from cp/cp-tree.h.
1731 (THEN_CLAUSE): Likewise.
1732 (ELSE_CLAUSE): Likewise.
1733 (WHILE_COND): Likewise.
1734 (WHILE_BODY): Likewise.
1735 (DO_COND): Likewise.
1736 (DO_BODY): Likewise.
1737 (RETURN_EXPR): Likewise.
1738 (EXPR_STMT_EXPR): Likewise.
1739 (FOR_INIT_STMT): Likewise.
1740 (FOR_COND): Likewise.
1741 (FOR_EXPR): Likewise.
1742 (FOR_BODY): Likewise.
1743 (SWITCH_COND): Likewise.
1744 (SWITCH_BODY): Likewise.
1745 (CASE_LOW): Likewise.
1746 (CASE_HIGH): Likewise.
1747 (GOTO_DESTINATION): Likewise.
1748 (COMPOUND_BODY): Likewise.
1749 (ASM_CV_QUAL): Likewise.
1750 (ASM_STRING): Likewise.
1751 (ASM_OUTPUTS): Likewise.
1752 (ASM_INPUTS): Likewise.
1753 (ASM_CLOBBERS): Likewise.
1754 (DECL_STMT_DECL): Likewise.
1755 (STMT_EXPR_STMT): Likewise.
1756 (LABEL_STMT_LABEL): Likewise.
1757 (SCOPE_BEGIN_P): Likewise.
1758 (SCOPE_END_P): Likewise.
1759 (SCOPE_STMT_BLOCK): Likewise.
1760 (SCOPE_NULLIFIED_P): Likewise.
1761 (SCOPE_NO_CLEANUPS_P): Likewise.
1762 (SCOPE_PARTIAL_P): Likewise.
1763 (ASM_VOLATILE_P): Likewise.
1764 (STMT_LINENO): Likewise.
1765 (STMT_LINENO_FOR_FN_P): Likewise.
1767 * c-common.def: New file. Added SRCLOC, SIZEOF_EXPR, ARROW_EXPR,
1768 ALIGNOF_EXPR, EXPR_STMT, COMPOUND_STMT, DECL_STMT, IF_STMT,
1769 FOR_STMT, WHILE_STMT, DO_STMT, RETURN_STMT, BREAK_STMT,
1770 CONTINUE_STMT, SWITCH_STMT, GOTO_STMT, LABEL_STMT, ASM_STMT,
1771 SCOPE_STMT, CASE_LABEL, STMT_EXPR.
1773 * gencheck.c (tree_codes[]): Added '#include "c-common.def"'.
1775 2000-06-14 David O'Brien <obrien@FreeBSD.org>
1777 * gcc.c (main): Quiet compiler warnings. argv is assumed to be
1778 writable in parts of the GCC code.
1780 * config/elfos.h (ASM_GENERATE_INTERNAL_LABEL): Make printf
1781 specification match cast.
1783 Wed Jun 14 09:25:57 2000 Jeffrey A Law (law@cygnus.com)
1785 * configure.in: Revert AC_TYPE_GETGROUPS patch from June 13.
1786 * configure, config.in: Rebuilt.
1787 * sys-protos.h: Similarly.
1789 Wed Jun 14 03:39:58 EDT 2000 John Wehle (john@feith.com)
1791 * ifcvt.c (EDGE_COMPLEX): Move definition ...
1792 * basic-block.h (EDGE_COMPLEX): ... here.
1794 * loop.c (check_dbra_loop): Specify the register when
1795 generating REG_NONNEG notes and don't generate duplicates.
1797 2000-06-13 Jakub Jelinek <jakub@redhat.com>
1799 * tree.h (TYPE_USER_ALIGN, DECL_USER_ALIGN): Define.
1800 (struct tree_type, struct tree_decl): Add user_align member.
1801 * stor-layout.c (layout_decl): Set DECL_USER_ALIGN.
1802 (place_union_field): If BIGGEST_FIELD_ALIGNMENT is defined
1803 and DECL_USER_ALIGN 0, cap alignment to this value.
1804 (place_field): Likewise.
1805 (finalize_type_size): Set TYPE_USER_ALIGN.
1806 (layout_type): Likewise.
1807 (initialize_sizetypes): Likewise.
1808 * c-common.c (decl_attributes): Set TYPE_USER_ALIGN resp.
1809 DECL_USER_ALIGN to 1.
1810 * c-decl.c (duplicate_decls): Set DECL_USER_ALIGN.
1811 (xfer_tag): Set TYPE_USER_ALIGN.
1812 (finish_struct): Set DECL_USER_ALIGN resp. TYPE_USER_ALIGN.
1813 (finish_enum): Likewise.
1814 * stmt.c (expand_decl): Set DECL_USER_ALIGN.
1815 (expand_anon_union_decl): Likewise.
1816 * tree.c (make_node): Set DECL_USER_ALIGN resp. TYPE_USER_ALIGN.
1817 (build_index_type): Set TYPE_USER_ALIGN.
1818 (build_range_type): Likewise.
1819 (build_common_tree_nodes_2): Likewise.
1820 * tm.texi (BIGGEST_FIELD_ALIGNMENT): Document the changed meaning.
1822 2000-06-13 Andreas Jaeger <aj@suse.de>
1824 * configure.in: Use --enable-checking=misc,tree,gc by default if
1825 no --enable-checking option is given and for
1826 --enable-checking=yes.
1827 * configure: Rebuilt.
1829 2000-06-13 Richard Henderson <rth@cygnus.com>
1831 * libgcc2.c (ia64_throw_helper): Use __builtin_return_address.
1832 (__throw): Don't pass the address of a label.
1834 * config/ia64/ia64.c (ia64_compute_frame_size): Use
1835 current_function_is_leaf.
1836 (ia64_expand_prologue): Likewise. Modify return_address_pointer_rtx
1837 instead of reg_names[RETURN_ADDRESS_REGNUM].
1838 (ia64_init_machine_status): Reset return_address_pointer_rtx.
1839 * config/ia64/ia64.h (RETURN_ADDRESS_POINTER_REGNUM): Rename
1840 from RETURN_ADDRESS_REGNUM. Update all uses.
1841 (RETURN_ADDR_RTX): Use return_address_pointer_rtx; return
1842 zero instead of null on failure.
1843 (ELIMINABLE_REGS): Add ra->b0 elimination.
1844 (CAN_ELIMINATE): Update accordingly.
1845 (INITIAL_ELIMINATION_OFFSET): Likewise.
1846 (REGISTER_NAMES): Use an illegal assembler name for
1847 RETURN_ADDRESS_POINTER_REGNUM.
1849 2000-06-13 Richard Henderson <rth@cygnus.com>
1851 * config/ia64/ia64.h (enum reg_class): Remove FR_INT_REGS, FR_FP_REGS,
1852 GR_AND_FR_INT_REGS, GR_AND_FR_FP_REGS.
1853 (REG_CLASS_NAMES): Likewise.
1854 (REG_CLASS_CONTENTS): Likewise.
1855 (FR_FP_REGNO_P, FR_INT_REGNO_P): Remove.
1856 (HARD_REGNO_MODE_OK): Remove references to them.
1857 (REGNO_REG_CLASS): Likewise.
1858 (REG_CLASS_FROM_LETTER): Likewise.
1859 (CLASS_MAX_NREGS): Likewise.
1860 (REGISTER_MOVE_COST): Likewise.
1861 * config/ia64/ia64.c (ia64_secondary_reload_class): Likewise.
1862 * config/ia64/ia64.md (*): Replace "e" constraints with "f".
1863 (movqi_internal): Special case moves from zero.
1864 (movhi_internal, movsi_internal): Likewise.
1865 (movdi_internal): Likewise. Fill out "f" constraints.
1866 (movsf_internal): Fill out "r" constraints.
1867 (movdf_internal): Likewise.
1869 2000-06-13 Richard Henderson <rth@cygnus.com>
1871 * flow.c (insn_dead_p): Keep sets to PIC_OFFSET_TABLE_REGNUM
1872 alive before reload.
1874 * haifa-sched.c (struct deps): Add in_post_call_group_p.
1875 (add_dependence): Handle notes between SCHED_GROUP_P insns.
1876 (remove_dependence): Always define.
1877 (set_sched_group_p): New.
1878 (sched_analyze_2): Use it.
1879 (sched_analyze_insn): Don't special-case naked uses. Look for
1880 and extend in_post_call_group_p.
1881 (sched_analyze): Clear stale SCHED_GROUP_P. Set in_post_call_group_p.
1882 (init_deps): Clear in_post_call_group_p.
1884 2000-06-13 Richard Henderson <rth@cygnus.com>
1886 * combine.c (subst): Use CLASS_CANNOT_CHANGE_MODE and
1887 CLASS_CANNOT_CHANGE_MODE_P instead of CLASS_CANNOT_CHANGE_SIZE
1888 and hard-coded tests.
1889 (simplify_set): Likewise.
1890 (gen_lowpart_for_combine): Likewise.
1891 * emit-rtl.c (gen_lowpart_common): Likewise.
1892 * global.c (find_reg): Likewise.
1893 * local-alloc.c (find_free_reg): Likewise.
1894 * recog.c (register_operand): Likewise.
1895 * regclass.c (init_reg_sets_1): Likewise.
1896 (record_operand_costs, regclass): Likewise.
1897 * reload.c (push_reload): Likewise.
1898 * reload1.c (choose_reload_regs): Likewise.
1899 * flow.c (mark_used_regs): Conditionally set REG_CHANGES_MODE.
1900 * local-alloc.c (struct qty): Rename changes_size to changes_mode.
1901 Update all references.
1902 * regs.h (struct reg_info_def): Likewise.
1903 (REG_CHANGES_MODE): Rename from REG_CHANGES_SIZE.
1904 * tm.texi (CLASS_CANNOT_CHANGE_MODE): Document.
1905 (CLASS_CANNOT_CHANGE_MODE_P): Likewise.
1907 * config/alpha/alpha.h (CLASS_CANNOT_CHANGE_MODE): Rename.
1908 (CLASS_CANNOT_CHANGE_MODE_P): New.
1909 * config/mips/mips.h: Likewise.
1910 * config/pa/pa32-regs.h: Likewise.
1911 * config/pa/pa64-regs.h: Likewise.
1912 * config/rs6000/rs6000.h: Likewise.
1913 * config/sh/sh.h: Likewise.
1914 * config/ia64/ia64.h (CLASS_CANNOT_CHANGE_MODE): New.
1915 (CLASS_CANNOT_CHANGE_MODE_P): New.
1916 * config/avr/avr.h (CLASS_CANNOT_CHANGE_SIZE): Remove dead code.
1917 * config/d30v/d30v.h: Likewise.
1919 2000-06-13 J. David Anglin <dave@hiauly1.hia.nrc.ca>
1921 * configure.in: Add AC_TYPE_GETGROUPS test.
1922 * sys-protos.h: Use GETGROUPS_T * for second arg of getgroups.
1923 * configure: Rebuilt.
1924 * config.in: Rebuilt.
1926 2000-06-13 Richard Henderson <rth@cygnus.com>
1928 * explow.c (set_mem_attributes): Do nothing for NULL type.
1930 Tue Jun 13 14:45:10 2000 Jeffrey A Law (law@cygnus.com)
1932 * config/m68k/openbsd.h (ASM_SPEC): pass down options to assembler
1935 2000-06-13 James E. Wilson <wilson@cygnus.com>
1937 * config/ia64/ia64.md (movxf_internal): Add missing "e" to ldf/stf.
1939 Tue Jun 13 14:05:35 2000 Jeffrey A Law (law@cygnus.com)
1941 * Makefile.in (gensupport.o): Remove bogus $(HOST_PREFIX) reference.
1943 2000-06-13 Philipp Thomas <pthomas@suse.de>
1945 * configure.in(ALL_LINGUAS): Changed en_UK to en_GB.
1946 * configure: Rebuilt.
1948 2000-06-07 David O'Brien <obrien@FreeBSD.org>
1950 * configure.in: Adjust FreeBSD bits to match changes to config.guess.
1951 We now default to ELF for the i386, and a.out is the special case.
1952 * configure: Rebuilt.
1954 Tue Jun 13 10:05:30 2000 Hans-Peter Nilsson <hp@axis.com>
1956 * final.c (final_scan_insn): Delete notes between cc0 setter and
1957 user when restarting from setter.
1959 2000-06-13 J. David Anglin <dave@hiauly1.hia.nrc.ca>
1961 * vax.h (INDEX_TERM_P): Define evaluation order of &&'s in || and
1962 cast to squelch signed/unsigned warnings.
1964 2000-06-13 Zack Weinberg <zack@wolery.cumb.org>
1966 * cpplib.c (handle_directive): Print non-NUL-terminated string
1969 2000-06-12 Michael Meissner <meissner@redhat.com>
1971 * ifcvt.c (dead_or_predicable): Don't do conditional execution
1972 path if the machine needs extra support to do conditional
1975 Mon Jun 12 17:04:17 2000 Jeffrey A Law (law@cygnus.com)
1977 * print-rtl.c (print_rtx, case MEM): Use HOST_WIDE_INT_PRINT_DEC
1978 to print the alias set.
1979 * print-tree.c (print_node, DECL_* nodes and case 't'): Similarly.
1981 2000-06-12 J. David Anglin <dave@hiauly1.hia.nrc.ca>
1983 * config/float-vax.h: Add GFLOAT defines.
1985 Mon Jun 12 9:44:00 2000 Mark Klein <mklein@dis.com>
1987 * configure.in: Update tm dependencies for MPE.
1988 * configure: Rebuilt.
1990 2000-06-12 H.J. Lu <hjl@gnu.org>
1992 * gengenrtl.c (obstack_alloc_rtx): Correct the allocated size.
1994 2000-06-12 David Edelsohn <edelsohn@gnu.org>
1996 * aix41.h (SUBTARGET_SWITCHES): Delete threads.
1997 (CPP_SPEC): Change mthreads to pthread.
1998 (LIB_SPEC): Likewise.
1999 (STARTFILE_SPEC): Likewise.
2000 * aix43.h (SUBTARGET_SWITCHES): Delete threads.
2001 (CPP_SPEC): Change mthreads to pthread.
2002 (LIB_SPEC): Likewise.
2003 (STARTFILE_SPEC): Likewise.
2004 * rs6000-protos.h (reg_or_arith_cint_operand): New.
2005 * rs6000.c (reg_or_arith_cint_operand): New.
2006 (num_insns_constant_wide): Decorate unsigned constant.
2007 * rs6000.h (PREDICATE_CODES): Add reg_or_arith_cint_operand.
2008 * rs6000.md (addsi3): Use new predicate.
2009 (subsi3, adddi3, subdi3): Likewise.
2011 2000-06-12 Mark Mitchell <mark@codesourcery.com>
2013 * c-common.c (lang_get_alias_set): Fix typo.
2015 2000-06-12 Richard Earnshaw <rearnsha@arm.com>
2017 * flow.c (mark_used_regs): Revert last change.
2018 (life_analysis): Remove PROP_AUTOINC if running after reload.
2019 (propagate_one_insn): PROP_AUTOINC is always off after reload.
2021 2000-06-11 Richard Earnshaw <rearnsha@arm.com>
2023 * flow.c (mark_used_regs): Don't call find_auto_inc after reload
2026 2000-06-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2028 * bb-reorder.c (build_scope_forest): Initialize variable
2031 * calls.c (expand_call): Likewise for variables
2032 `save_pending_stack_adjust' and `save_stack_pointer_delta'.
2034 * i386.c (function_arg_advance, function_arg): Cast to avoid
2035 signed/unsigned warnings.
2037 * i386.h (MEMORY_MOVE_COST): Likewise.
2039 * ifcvt.c (cond_exec_process_if_block): Initialize variables
2040 `else_start' and `else_end'.
2042 * libgcc2.h (__eh_alloc, __eh_free): Prototype.
2044 * regrename.c (rr_replace_reg): Initialize variable `dest_subregno'.
2046 2000-06-10 Mark Mitchell <mark@codesourcery.com>
2048 * Makefile.in (libintl.a): Depend on intl.all.
2050 2000-06-09 H.J. Lu (hjl@gnu.org)
2052 * Makefile.in (c-parse.o): Also depend on output.h.
2054 2000-06-09 Rodney Brown <RodneyBrown@mynd.com>
2056 * mcore-protos.h: discards const warning removal.
2057 * mcore.c: discards const warning removal.
2059 2000-06-09 Kazu Hirata <kazu@hxi.com>
2061 * config/h8300/lib1funcs.asm: Declare the machine architecture at
2062 the beginning of the file.
2064 2000-06-09 J. David Anglin <dave@hiauly1.hia.nrc.ca>
2066 * real.h: Add prototype for ldexp.
2068 2000-06-09 Zack Weinberg <zack@wolery.cumb.org>
2070 * ggc-none.c, ggc-simple.c, ggc-page.c (ggc_alloc_obj): Rename
2071 it ggc_alloc, drop second argument, never clear returned memory.
2072 * ggc-common.c (ggc_alloc_string): Use ggc_alloc.
2073 (ggc_alloc_cleared): New.
2074 * ggc.h: Prototype ggc_alloc and ggc_alloc_cleared, not
2075 ggc_alloc_obj. Remove ggc_alloc macro.
2076 (ggc_alloc_rtx, ggc_alloc_rtvec, ggc_alloc_tree): Use ggc_alloc.
2078 * rtl.c (rtvec_alloc): Clear the vector always.
2079 (rtx_alloc): Clear the first word always. Remove dirty
2080 obstack tricks (this routine is no longer a bottleneck).
2081 * tree.c (make_node): Clear the new node always.
2082 (make_tree_vec): Likewise.
2083 (tree_cons): Clear the common structure always.
2084 (build1): Likewise; also, clear TREE_COMPLEXITY.
2085 * gengenrtl.c: Use puts wherever possible. Remove extra
2087 (gendef): Clear the first word of an RTX in the generator
2088 function, irrespective of ggc_p. Initialize '0' slots to
2090 (genlegend): Don't generate obstack_alloc_rtx routine, just a
2091 thin wrapper macro around obstack_alloc.
2093 * stmt.c (expand_fixup): Use ggc_alloc.
2094 * c-typeck.c (add_pending_init): Use ggc_alloc.
2095 * emit-rtl.c (init_emit_once): Clear CONST_DOUBLE_CHAIN(tem).
2096 * varasm.c (immed_double_const): Set CONST_DOUBLE_MEM(r) to
2097 const0_rtx when it is created.
2098 (immed_real_const_1): Set CONST_DOUBLE_CHAIN(r) to NULL_RTX if
2099 we are not in a function.
2101 * tree.c (tree_class_check_failed): Make second arg an int.
2102 * tree.h: Update prototype.
2104 2000-06-09 Geoff Keating <geoffk@cygnus.com>
2106 * tree.h (VOID_TYPE_P): Don't look at the TYPE_MAIN_VARIANT
2107 of an error_mark_node.
2109 Fri Jun 9 20:35:13 2000 Denis Chertykov <denisc@overta.ru>
2111 * config/avr/avr.c (asm_output_section_name): bugfix.
2113 2000-06-09 Jason Merrill <jason@casey.soma.redhat.com>
2115 * timevar.def: Add TV_EXPAND.
2116 * timevar.c (timevar_print): Update timing information.
2117 * calls.c (try_to_integrate): Push to TV_INTEGRATION for inlining.
2119 * stmt.c (expand_return): Check for error_mark_node.
2121 2000-06-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2123 * configure.in: Also avoid wrapping auto-build.h with IN_GCC.
2125 * scan-types.sh (VALUE) Wrap use with double quotes to protect
2126 variable against filename expansion when it contains "char *".
2128 * system.h (SSIZE_MAX): Delete backup definition.
2130 * cppfiles.c (read_include_file): Use INTTYPE_MAXIMUM(ssize_t)
2131 instead of SSIZE_MAX.
2133 2000-06-09 Jakub Jelinek <jakub@redhat.com>
2135 * configure.in: Check whether gas supports -relax.
2136 * configure, config.in: Rebuilt.
2137 * config/sparc/sparc.h (ASM_RELAX_SPEC): Define.
2138 (EXTRA_SPECS): Add asm_relax.
2139 (ASM_SPEC): Add %(asm_relax).
2140 (TARGET_SWITCHES): Add -mrelax and -mno-relax.
2141 * config/sparc/linux64.h (LINK_ARCH_SPEC): Rename to LINK_SPEC.
2142 (LINK_SPEC): Pass -relax to linker unless -mno-relax or -r.
2143 (ASM_SPEC): Add %(asm_relax).
2144 * config/sparc/linux.h (LINK_SPEC, ASM_SPEC): Likewise.
2145 * config/sparc/sparc.c (output_sibcall): If HAVE_AS_RELAX_OPTION,
2146 never use sethi/jmpl for leaf tail calls. Use or with rs2 %g0
2147 instead of mov, so that gas can further optimize it.
2149 2000-06-08 James E. Wilson <wilson@bletchleypark.cygnus.com>
2151 * dwarf2out.c (size_of_die, case dw_val_class_const): Use
2153 (value_format, case dw_val_class_const): Use sdata format.
2154 (output_die): Call output_sleb128.
2156 2000-06-08 James E. Wilson <wilson@cygnus.com>
2158 * dwarf2out.c (ASM_OUTPUT_DWARF_DATA8): Add new macro that uses
2159 UNALIGNED_DOUBLE_INT_ASM_OP. Rename old macro to
2160 ASM_OUTPUT_DWARF_CONST_DOUBLE.
2161 (output_die, case dw_val_class_unsigned_const): Correct call to
2162 ASM_OUTPUT_DWARF_DATA8.
2163 (output_die, case dw_val_class_long_long): Use
2164 ASM_OUTPUT_DWARF_CONST_DOUBLE.
2165 * tree.c (host_integerp): Accept unsigned HOST_WIDE_INT values when
2168 * config/ia64/ia64-protos.h (ia64_output_end_prologue): Add.
2169 (output_function_prologue): Fix mispelling.
2170 (output_function_prologue, output_function_epilogue): Reorder to
2171 match ia64.c definition order.
2172 * config/ia64/ia64.c (ia64_expand_prologue): Add comment.
2173 (ia64_expand_epilogue): Set RTX_FRAME_RELATED_P on stack restore insns.
2174 Use r3 instead of r2 for large stack restores.
2175 (ia64_output_end_prologue): New function.
2176 (process_set): Emit ".restore sp" for epilogue stack restores.
2177 * config/ia64/ia64.h (FUNCTION_END_PROLOGUE): Define.
2179 2000-06-08 Jakub Jelinek <jakub@redhat.com>
2181 * dbxout.c (dbxout_type_fields): Don't segfault on fields with
2184 2000-06-08 Nathan Sidwell <nathan@codesourcery.com>
2186 * frame.c (end_fde_sort): Remove extraneous erratic array test.
2188 2000-06-08 Denis Perchine <dyp@perchine.com>
2190 * frame.c (start_fde_sort): Don't malloc (0).
2192 2000-06-07 Zack Weinberg <zack@wolery.cumb.org>
2194 * c-decl.c (pushdecl): Do not call COMPLETE_TYPE_P on
2196 * print-tree.c (print_node): The transparent_union_flag means
2197 different things for unions and arrays. Do not inspect it
2198 with TYPE_TRANSPARENT_UNION.
2200 2000-06-06 Jakub Jelinek <jakub@redhat.com>
2202 * cpplib.c (do_ifdef, do_ifndef): Don't segfault if parse_ifdef
2205 Wed Jun 7 20:34:33 2000 Denis Chertykov <denisc@overta.ru>
2207 * config/avr/avr.c (asm_output_section_name): output section
2209 * config/avr/libgcc.S (.text.libgcc): declare section attributes.
2211 2000-06-06 James E. Wilson <wilson@cygnus.com>
2213 * frame.h (struct unwind_info_ptr): Collapse version, flags, and length
2214 fields into header field.
2215 (IA64_UNW_HDR_LENGTH, IA64_UNW_HDR_FLAGS, IA64_UNW_HDR_VERSION): New
2216 macros to access length, flags, and version info from header field.
2217 * config/ia64/crtbegin.asm (__do_frame_setup_aux): Delete here.
2218 * config/ia64/crtend.asm (__do_frame_setup_aux): Add here.
2219 (__do_global_ctors_aux): Fix caller.
2220 * config/ia64/frame-ia64.c (get_unwind_record): Change parameter
2221 prologue_flag to header. Pass to read_P_record.
2222 (read_P_record): New argument header. Implement P4 format.
2223 Multiply P7_T_SIZE by 16.
2224 (execute_one_ia64_descriptor): New static local region_header. Pass to
2225 get_unwind_record. Copy r to region_header if r is a header record.
2226 (print_all_records): Likewise.
2227 (__build_ia64_frame_state): Use IA64_UNW_HDR_LENGTH.
2228 (__get_personality, __get_except_table): Likewise.
2229 * config/ia64/ia64.c (process_set): Do not divide offsets by 4.
2231 2000-06-06 Philipp Thomas <pthomas@suse.de>
2233 * configure.in (AC_C_INLINE): Added.
2234 * aclocal.m4 (AM_WITH_NLS): Enable --with-included-gettext by default.
2235 * configure: Regenerate.
2237 2000-06-06 Mark Mitchell <mark@codesourcery.com>
2239 * c-common.h (c_language_kind): New type.
2240 (c_language): New variab.e
2241 * c-common.c (lang_get_alias_set): Don't put structures in
2242 non-zero alias sets in C++.
2243 * c-decl.c (c_language): Define it.
2244 * c-lex.c (doing_objc_thang): Remove.
2245 * c-tree.h (doing_objc_thang): Make it a macro.
2246 * objc/objc-act.c (lang_decode_option): Set c_language, not
2249 2000-06-06 Gabriel Dos Reis <gdr@codesourcery.com>
2251 * diagnostic.c (output_maximum_width): Remove.
2252 (doing_line_wrapping): Tweak.
2253 (diagnostic_buffer): New object.
2254 (global_output_buffer): New object.
2255 (output_destroy_prefix): New function.
2256 (default_initialize_buffer): Likewise.
2257 (reshape_diagnostic_buffer): Likewise.
2258 (initialize_diagnostics): Likewise.
2259 (output_clear): Tweak.
2260 (line_wrapper_printf): Adjust call to init_output_buffer.
2261 (vline_wrapper_message_with_location): Likewise. Use
2262 output_destroy_prefix.
2263 (v_message_with_decl): Likewise.
2265 * diagnostic.h (struct output_buffer): Constify prefix.
2266 (init_output_buffer, output_get_prefix): Constify.
2267 (diagnostic_message_length_per_line): Likewise.
2268 (reshape_diagnostic_buffer): Declare.
2269 (default_initialize_buffer): Declare.
2270 (initialize_diagnostics): Declare.
2271 (diagnostic_buffer): Declare new obbject.
2273 * toplev.c: #include diagnostic.h
2274 (display_help): Document diagnostic formatting options.
2275 (decode_f_option): Handle diagnostic formatting options.
2276 (main): Setup initialization for diagnostic messages outputter.
2278 * toplev.h (set_message_length): Remove.
2280 * Makefile.in (toplev.o): Depends upon diagnostic.h
2282 * invoke.texi : Document diagnostics formatting options.
2284 Tue Jun 6 19:25:32 2000 Philippe De Muyter <phdm@macqel.be>
2286 * configure.in (Make the links): Typo fix : the file that must be
2287 included without #ifdef IN_GCC is `auto-host.h', not `auto-config.h'.
2288 * configure: File rebuilt.
2290 2000-06-06 Nathan Sidwell <nathan@codesourcery.com>
2292 * eh-common.h (EH_ALLOC_SIZE, EH_ALLOC_ALIGN): New #defines.
2293 (eh_context): Add alloc_mask and alloc_buffer emergency fallback
2295 * libgcc2.c (__eh_alloc): Moved from cp/exception.cc. Fallback on
2296 emergency eh_context buffer, if malloc fails.
2297 (__eh_free): Moved from cp/exception.cc. Release to emergency
2298 eh_context buffer, if appropriate.
2300 2000-06-06 Jason Merrill <jason@casey.soma.redhat.com>
2302 * expr.c (store_expr): Fix typo.
2304 2000-06-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2306 * m68k.c (legitimize_pic_address): Move prototype ...
2308 * m68k-protos.h (legitimize_pic_address): ... here.
2310 * m68k.md (legitimize_pic_address): Delete prototypes.
2311 (untyped_call): Invoke GEN_CALL(), not gen_call().
2313 * nextstep.c: Include system.h and toplev.h.
2314 (get_directive_line): Don't prototype.
2315 (handle_pragma): Mark parameters with ATTRIBUTE_UNUSED and constify.
2317 * nextstep.h (handle_pragma): Prototype.
2318 (SECTION_FUNCTION): Prototype FUNCTION(). Move prototype of
2319 objc_section_init ...
2320 (EXTRA_SECTION_FUNCTIONS): ... here.
2322 Tue Jun 6 08:17:26 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2324 * sdbout.c (struct sdb_file): NAME now const.
2325 (sdbout_init): input_file_name now const.
2326 (sdbout_start_new_source_file): FILENAME now const.
2327 * sdbout.c (sdbout_init, sdbout_start_new_source_file): Reflect above.
2329 2000-06-06 Gabriel Dos Reis <gdr@codesourcery.com>
2331 * c-typeck.c (build_conditional_expr): Handle complex data types.
2333 2000-06-05 Jason Merrill <jason@casey.soma.redhat.com>
2335 * explow.c (maybe_set_unchanging): New function, broken out from...
2336 (set_mem_attributes): Here.
2337 * expr.h: Declare it.
2338 * stmt.c (expand_decl): Call it.
2340 2000-06-05 Richard Henderson <rth@cygnus.com>
2342 * reload1.c (choose_reload_regs): Mind CLASS_CANNOT_CHANGE_SIZE
2343 while looking for a register to inherit from.
2345 2000-06-05 Jason Merrill <jason@casey.soma.redhat.com>
2347 * Makefile.in (libgcc.ready): Lose.
2348 (libgcc.mk): Just use mv, not move-if-change.
2349 (LIBGCC_DEPS): New macro.
2351 (stmp-multilib): Likewise.
2352 * mklibgcc.in (stmp-dirs): New target. Make everything depend on
2353 it rather than the directories themselves.
2354 (LIB2ADD): Depend on the list file rather than 'force'.
2356 * fold-const.c (fold, case COND_EXPR): Elide conversion between
2357 cv-qualified versions of types.
2359 Mon Jun 5 14:06:18 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2361 * config/sparc/sparc.c (short_branch): Correct error in range
2364 2000-06-05 J. David Anglin <dave@hiauly1.hia.nrc.ca>
2366 * fixinc/inclhack.def: New include hacks for ultrix.
2367 * (nested_ultrix): Replaced by ultrix_nested_svc.
2368 * (ultrix_atof_param): test_text string added.
2369 * (ultrix_ifdef): Modified select string.
2371 2000-06-05 Zack Weinberg <zack@wolery.cumb.org>
2373 * objc/objc-act.c (generate_method_descriptors): Register
2374 objc_method_prototype_template as a GC root.
2375 (comp_method_with_proto): Register function_type as a GC root.
2376 (comp_proto_with_proto): Replace function_type1 and
2377 function_type2 with a two-element array; register it as a GC root.
2379 (generate_protocols, build_protocol_initializer,
2380 generate_protocol_list, build_category_initializer,
2381 build_shared_structure_initializer): Do not cache cast_type
2384 2000-06-05 J. David Anglin <dave@hiauly1.hia.nrc.ca>
2386 * function.c (assign_parms): Add missing argument to set_mem_attributes
2389 2000-06-05 Nathan Sidwell <nathan@codesourcery.com>
2391 * tree.h (VOID_TYPE_P): New macro.
2392 (COMPLETE_OR_VOID_TYPE_P): Use VOID_TYPE_P.
2393 * c-decl.c (grokdeclarator): Use VOID_TYPE_P.
2394 (get_parm_info): Likewise.
2395 (store_parm_decls): Likewise.
2396 (combine_parm_decls): Likewise.
2397 (finish_function): Likewise.
2398 * c-typeck.c (build_function_call): Likewise.
2399 (build_binary_op): Likewise.
2400 (build_conditional_expr): Likewise.
2401 (internal_build_compound_expr): Likewise.
2402 (convert_for_assignment): Likewise.
2403 * stmt.c (expend_expr_stmt): Likewise.
2404 (warn_if_unused_value): Likewise.
2405 (expand_return): Likewise.
2406 * c-parse.in (primary): Likewise.
2407 * c-parse.y, c-parse.c, c-parse.h: Regenerate.
2408 * objc/objc-parse.y, objc/objc-parse.c: Regenerate.
2410 Mon Jun 5 06:46:28 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2412 * alias.c (get_alias_set): If compnent is addressable, use alias
2414 * c-decl.c (init_decl_processing): Don't call record_component_aliases.
2415 (grokdeclarator): Likewise.
2416 * c-typeck.c (common_type): Likewise.
2418 2000-06-04 Alex Samuel <samuel@codesourcery.com>
2420 * Makefile.in (OBJS): Remove dyn_string.o
2421 (dyn-string.o): Delete rule.
2422 * dyn-string.c: Delete file
2423 * dyn-string.h: Likewise.
2425 2000-06-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2427 * Makefile.in (intl.*): Honor non-zero exit codes in the intl
2430 2000-06-03 Geoff Keating <geoffk@cygnus.com>
2432 * alias.c (record_component_aliases): Don't inspect
2433 DECL_NONADDRESSABLE_P of non-FIELD_DECL components of structures.
2435 Sat Jun 3 19:05:30 2000 Michael Meissner <meissner@redhat.com>
2437 * ifcvt.c (process_insns): If IFCVT_MODIFY_INSN is defined, call
2438 it with the pattern to do machine dependent work.
2439 (cond_exec_process_if_block): If IFCVT_MODIFY_TESTS is defined,
2440 use it to modify the true/false tests used in conditional
2441 execution. If IFCVT_MODIFY_FINAL and IFCVT_MODIFY_CANCEL are
2442 defined, invoke them if the conversion to conditional execution
2443 was successful or not.
2445 * tm.texi (IFCVT_MODIFY_TESTS): Document.
2446 (IFCVT_MODIFY_INSN): Ditto.
2447 (IFCVT_MODIFY_FINAL): Ditto.
2448 (IFCVT_MODIFY_CANCEL): Ditto.
2450 Sat Jun 3 15:26:13 2000 Matt Kraai <kraai@alumni.carnegiemellon.edu>
2452 * toplev.c (main): Fix misspellings of possibility and language.
2454 2000-06-03 Richard Henderson <rth@cygnus.com>
2456 * alias.c (record_alias_subset): Initialize has_zero_child in the
2459 2000-06-03 Richard Earnshaw (rearnsha@arm.com)
2461 * arm.md (untyped_call): Use GEN_CALL macro.
2463 2000-06-02 Pekka Nikander <pnr@teldanex.tcm.hut.fi>
2465 * Makefile.in: Use $(MAKE) not "make"
2467 Fri Jun 2 19:31:03 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2469 * alias.c (struct alias_set_entry): New field has_zero_child.
2470 (mem_in_disjoint_alias_sets_p): Return 0 if set in either ase.
2471 (get_alias_set): If language-dependent routine set TYPE_ALIAS_SET,
2473 Call record_component_aliases for aggregate types.
2474 (record_alias_subset): Set has_zero_child.
2475 (record_component_aliases, case ARRAY_TYPE): Do nothing if
2476 TYPE_NONALIASES_COMPONENT.
2477 (record_component_aliases, case RECORD_TYPE): Test
2478 DECL_NONADDRESSABLE_P.
2479 * c-decl.c (grokdeclarator): Set DECL_NONADDRESSABLE_P instead
2480 of TREE_ADDRESSABLE.
2481 * calls.c (initialize_argument_information): Only test
2482 TYPE_TRANSPARENT_UNION for UNION_TYPE.
2483 * function.c (assign_parms): Likewise.
2484 * integrate.c (function_cannot_inline_p): Likewise.
2485 * stor-layout.c (finish_record_layout): Don't call
2486 record_component_aliases.
2487 * tree.h (struct tree_int_cst): Use struct tree_common.
2488 (struct tree_real_cst, struct tree_string): Likewise.
2489 (struct tree_complex, struct tree_identifier): Likewise.
2490 (struct tree_list, struct tree_vec, struct tree_exp): Likewise.
2491 (struct tree_block, struct tree_type, struct tree_decl): Likewise.
2492 (TYPE_TRANSPARENT_UNION): Use UNION_TYPE_CHECK.
2493 (TYPE_NONALIASES_COMPONENT): New macro.
2494 (TYPE_AMBIENT_BOUNDEDNESS): Use FUNCTION_TYPE_CHECK.
2495 (DECL_NONADDRESSABLE_P): New macro.
2496 (struct tree_decl): Reorder bits for clarity of how many left;
2499 2000-06-02 Jason Merrill <jason@casey.soma.redhat.com>
2501 * Makefile.in (libgcc.a): Also depend on $(LIB2ADD).
2502 * mklibgcc.in (force): New target.
2503 Make LIB2ADD stuff depend on it.
2505 2000-06-02 Richard Henderson <rth@cygnus.com>
2507 * alias.c (lang_get_alias_set): Remove.
2508 (get_alias_set): Call it directly, not indirectly.
2509 * c-common.c (lang_get_alias_set): Rename from c_get_alias_set.
2510 * c-common.h (c_get_alias_set): Don't declare.
2511 * c-decl.c (init_decl_processing): Don't set lang_get_alias_set.
2512 * expr.h (lang_get_alias_set): Declare as function, not pointer.
2514 2000-06-02 Bruce Korb <bkorb@gnu.org>
2516 * fixinc/server.c(sig_handler): resume closing server on SIGPIPE
2517 (server_setup): define the server's master pid
2518 (close_server): actually do the deed IFF we are the server's master
2520 2000-06-02 Jakub Jelinek <jakub@redhat.com>
2522 * c-common.c (c_get_alias_set): Check whether signed_type did not
2523 return its argument before calling get_alias_set on the result.
2525 2000-06-02 Andrew MacLeod <amacleod@cygnus.com>
2527 * expr.c (emit_group_load): Fix typo, GET_MODE not GET_CODE.
2529 Fri Jun 2 00:22:52 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
2531 * sh.h (CPP_SPEC): Add -D__NOMACSAVE__ for -mnomacsave.
2532 (CONDITIONAL_REGISTER_USAGE): Mac registers are call used
2533 for TARGET_NOMACSAVE.
2534 (NOMACSAVE_BIT): Define.
2535 (TARGET_NOMACSAVE): Define.
2536 (TARGET_SWITCHES): Add "nomacsave".
2538 2000-06-02 Toshiyasu Morita <toshi.morita@sega.com>
2540 * sh.md (untyped_call): Remove excess parameters
2542 2000-06-01 Loren J. Rittle <ljrittle@acm.org>
2544 * fixinc/inclhack.def (osf_namespace_a): Relax expression to
2545 match that used before the conversion to c_fix style.
2546 * fixinc/fixincl.x: regenerate
2548 2000-06-01 Stan Cox <scox@cygnus.com>
2550 * varray.h (VARRAY_PUSH_GENERIC_PTR, VARRAY_PUSH_CHAR_PTR): Fix
2551 macro argument typo.
2553 2000-06-01 Zack Weinberg <zack@wolery.cumb.org>
2555 * cpplex.c (maybe_macroexpand): Use CPP_WTRADITIONAL. Improve
2557 * cpplib.c (parse_include): Remove support for VAX-C
2558 "#include starlet" misfeature.
2560 2000-05-31 Laurynas Biveinis <lauras@softhome.net>
2562 * cppfiles.c: conditionally define O_BINARY.
2563 (open_include_file): pass O_BINARY to open().
2565 2000-06-01 Richard Henderson <rth@cygnus.com>
2567 * i960.c (i960_br_predict_opcode): Remove.
2568 (i960_print_operand) [+]: Emit branch prediction hints.
2569 (i960_function_arg): Return early for VOIDmode.
2570 (i960_round_align): Return early for incomplete types.
2571 * i960.h (PRINT_OPERAND_PUNCT_VALID_P): New.
2572 * i960.md (all conditional branches): Add "%+".
2574 Thu Jun 1 12:24:21 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2576 * alias.c (get_alias_set): Don't call language-specific routine more
2577 than is needed and clean up code a bit.
2578 * c-common.c (c_get_alias_set): All references whose type
2579 is char get alias set 0, but character types need not.
2580 * varasm.c (make_function_rtl): Don't call set_mem_attributes.
2581 (make_decl_rtl): Don't call it for FUNCTION_DECL.
2583 2000-06-01 Bruce Korb <bkorb@gnu.org>
2585 * fixinc/tests/base/...: new base result files
2587 Thu Jun 1 09:37:35 2000 Clinton Popetz <cpopetz@cygnus.com>
2589 * config/i386/i386.c (ix86_use_fcomi_compare): Make global.
2590 * config/i386/i386-protos.h (ix86_use_fcomi_compare): Declare.
2591 * config/i386/i386.md (*fp_jcc_3, *fp_jcc_4): Disable if we
2594 2000-06-01 Richard Henderson <rth@cygnus.com>
2596 * Makefile.in (c-decl.o): Depend on $(EXPR_H), not expr.h.
2598 * c-decl.c (init_decl_processing): Set lang_get_alias_set first thing.
2600 2000-05-31 Richard Henderson <rth@cygnus.com>
2602 * config/ia64/ia64.c (sdata_symbolic_operand): Consider small
2603 CONSTANT_POOL_ADDRESS_P addresses for .sdata.
2604 * config/ia64/sysv4.h (SELECT_RTX_SECTION): New.
2606 2000-05-31 Richard Henderson <rth@cygnus.com>
2608 * config/ia64/ia64-protos.h (ia64_expand_prediction): Remove.
2609 * config/ia64/ia64.c (ia64_expand_prediction): Move code ...
2610 (ia64_print_operand) [+]: ... here. Use current_output_insn.
2611 * config/ia64/ia64.h (PRINT_OPERAND_PUNCT_VALID_P): New.
2612 * config/ia64/ia64.md (all branch/call patterns): Use %+.
2614 2000-05-31 Richard Henderson <rth@cygnus.com>
2616 * ifcvt.c (cond_exec_process_insns): Don't ever ignore clobbers.
2618 2000-05-31 Richard Henderson <rth@cygnus.com>
2620 * ifcvt.c (merge_if_block): Be prepared for JOIN to have no
2622 (find_if_block): Allow THEN with no outgoing edges.
2623 * flow.c (merge_blocks_nomove): Remove a barrier not following
2626 2000-05-31 Richard Henderson <rth@cygnus.com>
2628 * flow.c (propagate_block): Move initialization of mem_set_list ...
2629 (init_propagate_block_info): ... here. Also track blocks with
2630 no successors; don't scan insns if ! PROP_SCAN_DEAD_CODE.
2632 2000-05-31 Richard Henderson <rth@cygnus.com>
2634 * jump.c (jump_optimize_1): Revert 05-18 change.
2636 2000-05-31 Mark Mitchell <mark@codesourcery.com>
2638 * invoke.texi: Remove documentation for -fguiding-decls.
2640 2000-05-31 Richard Henderson <rth@cygnus.com>
2642 * configure.in: Fix typo last change.
2644 2000-05-31 Philipp Thomas <pthomas@suse.de>
2646 * configure.in (enable-nls): Enable if build == host, i.e. when
2647 not building a canadian cross compiler.
2648 (enable-maintainer-mode): Added for use with i18n.
2649 * aclocal.m4 (AM_GNU_GETTEXT): Only build catalogs that are a
2650 cross section of ALL_LINGUAS and LINGUAS.
2651 * configure: Rebuild.
2653 2000-05-31 Bruce Korb <bkorb@gnu.org>
2655 * fixinc/check.tpl: rework to use test result tree
2656 * fixinc/Makefile.in: change invocation of check script
2657 * fixinc/check.diff: No longer needed
2658 * fixinc/fixincl.x: regenerate
2659 * fixinc/inclhack.def: add new tests
2660 * fixinc/tests/base/arch/i960/archI960.h: New test result
2661 * fixinc/tests/base/curses.h: modified test result
2662 * fixinc/tests/base/stdio.h: ditto
2663 * fixinc/tests/base/time.h: ditto
2664 * fixinc/tests/base/sys/asm.h: ditto
2665 * fixinc/tests/base/sys/stat.h: ditto
2666 * fixinc/tests/base/sys/wait.h: ditto
2668 Wed May 31 13:17:20 2000 Philippe De Muyter <phdm@macqel.be>
2670 * except.c (clear_function_eh_region): Do not free NULL.
2672 Wed May 31 08:07:52 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2674 * Makefile.in (c-decl.o): Depend on rtl.h and expr.h.
2675 * alias.c (struct alias_entry): alias_set is HOST_WIDE_INT.
2676 (REG_BASE_VALUE): Remove unneeded cast to unsigned.
2677 (get_alias_set_entry): ALIAS_SET arg is HOST_WIDE_INT.
2678 (find_base_decl): New function, from c_find_base_decl in c-common.c.
2679 (new_alias_set): Moved from tree.c; return is HOST_WIDE_INT.
2680 (get_alias_set): Likewise.
2681 Major rework to do more things and allow language-specific code
2682 to just handle special-cases.
2683 (record_alias_subset): Args are HOST_WIDE_INT.
2684 (record_component_alias): Local vars are HOST_WIDE_INT.
2685 Don't handle COMPLEX_EXPR.
2686 (get_varargs_alias_set): Moved from builtins.c.
2687 (get_frame_alias_set): New function.
2688 * builtins.c (expand_builtin_return_address): Use frame alias set.
2689 (expand_builtin_setjmp, expand_builtin_longjmp): Use alias set
2691 (get_memory_rtx): Rework to use set_mem_attributes.
2692 (get_varargs_alias_set): Deleted from here.
2693 * c-common.c (c_apply_type_quals_to_decl): Alias sets now HOST_WIDE_INT.
2694 (c_find_base_decl): Deleted from here.
2695 (c_get_alias_set): Remove many cases and rework to just handle
2697 * c-common.h (c_get_alias_set): Returns HOST_WIDE_INT.
2698 * c-decl.c (rtl.h, expr.h): Now included.
2699 (init_decl_processing): Call record_component_aliases on array types.
2700 (grokdeclarator): Likewise.
2701 Set TREE_ADDRESSABLE for all fields that are not bitfields.
2702 * c-typeck.c (common_type): Call record_component_aliases for array.
2703 * caller-save.c (setup_save_areas): Rework register loop for unsigned.
2704 Set all save areas to the frame alias set.
2705 * calls.c (initialie_argument_information): Call set_mem_attributes.
2706 (compute_argument_addresses, expand_call): Likewise.
2707 * explow.c (set_mem_attributes): New function.
2708 (stabilize): Use MEM_COPY_ATTRIBUTES and force_reg.
2709 * expr.c (struct move_by_pieces): Remove {to,from}_{struct,readonly}.
2710 LEN and OFFSET now HOST_WIDE_INT.
2711 (clear_by_pieces): Similar changes.
2712 (move_by_pieces): LEN now HOST_WIDE_INT; don't set deleted fields.
2713 (move_by_pieces_ninsns): Now returns unsigned HOST_WIDE_INT.
2714 (move_by_pieces_1): Don't use deleted fields, use MEM_COPY_ATTRIBUTES.
2715 (clear_by_pieces_1): Likewise.
2716 (emit_push_insn): Call set_mem_attributes.
2717 (expand_expr, case INDIRECT_REF): Likewise.
2718 (expand_expr, case VAR_DECL): Call change_address.
2719 * expr.h (ADD_PARM_SIZE, SUB_PARM_SIZE): Use host_integerp and
2721 (get_varargs_alias_set, get_frame_alias_set): New decls.
2722 (record_base_value, record_alias_subset, lang_get_alias_set): Likewise.
2723 (new_alias_set, set_mem_attributes): Likewse.
2724 * function.c (struct temp_slot): ALIAS_SET is HOST_WIDE_INT.
2725 (assign_stack_temp_for_type): Likewise.
2726 Can split slot even if alias set since can copy.
2727 Set MEM_ALIAS_SET and MEM_SET_IN_STRUCT_P.
2728 (assign_temp): Use host_integerp and tree_low_cst.
2729 (put_var_into_stack): Properly handle SAVE_EXPR.
2730 (put_addressof_into_stack): Likewise.
2731 (assign_parms): Call set_mem_attributes.
2733 (fix_lexical_address): Put reference to chain into frame alias set.
2734 (expand_function_start): Call set_mem_attributes.
2735 * integrate.c (expand_inline_function): Likewise.
2736 * recog.c (adj_offsettable_operand): Use MEM_COPY_ATTRIBUTES.
2737 * regmove.c (try_apply_stack_adjustment): Likewise.
2738 * reload.c (push_reload, make_memloc): Likewise.
2739 * reload1.c (alter_reg): Make alias sets for spilled pseudos.
2740 * rtl.def (MEM): Update comment.
2741 * rtl.h (MEM_ALIAS_SET): Now uses XCWINT.
2742 (move_by_pieces): Change length to HOST_WIDE_INT.
2743 (record_base_value, record_alias_subset): Delete from here.
2744 * stmt.c (expand_decl): Call set_mem_attributes.
2745 * stor-layout.c (finish_record_layout): Call record_component_aliases.i
2746 * toplev.c (compile_file): Call init_alias_once earlier.
2747 * tree.c (lang_get_alias_set, get_alias_set, new_alias_set): Deleted
2748 from here: now in alias.c.
2749 * tree.h (struct tree_type): alias_set is HOST_WIDE_INT.
2750 (struct tree_decl): Likewise.
2751 (get_alias_set, new_alias_set, lang_get_alias_set): Deleted from here.
2752 * varasm.c (make_function_rtl, make_decl_rtl): Call set_mem_attributes.
2753 (output_constant_def, force_const_mem): Likewise.
2755 * flow.c (propagate_block): If block has no successors, stores to
2756 frame are dead if not used.
2758 2000-05-31 Nathan Sidwell <nathan@codesourcery.com>
2760 * stmt (expand_end_case): Reorder conversion sequence for jump
2761 table to avoid extra truncations.
2763 Wed May 31 01:31:42 2000 Jeffrey A Law (law@cygnus.com)
2765 * ifcvt.c (cond_exec_process_if_block): Do nothing if the last insn
2766 in the block is more than just a simple conditional branch.
2767 (noce_process_if_block): Similarly.
2769 Tue May 30 22:25:57 2000 Alexandre Oliva <aoliva@cygnus.com>
2771 * optabs.c (prepare_float_lib_cmp): Protect *px and *py from
2774 2000-05-30 Michael Meissner <meissner@redhat.com>
2776 * dwarf2out.c (dwarf2out_frame_debug_expr): Ignore HIGH
2777 instructions. Treat LO_SUM operations as loading the full integer
2780 2000-05-30 Richard Henderson <rth@cygnus.com>
2782 * combine.c (get_pos_from_mask): Test exact_log2 result as signed.
2784 2000-05-30 Richard Henderson <rth@cygnus.com>
2786 * bb-reorder.c (emit_jump_to_block_after): Protect use of HAVE_return.
2788 2000-05-30 Bruce Korb <bkorb@gnu.org>
2790 * fixinc/tests/*: Added expected result files for fixinc's make check
2791 * fixinc/fixfixes(char_macro_*_fix): Restore original algorithm
2793 2000-05-30 Richard Henderson <rth@cygnus.com>
2795 * config/alpha/alpha.md (*setne_internal): Use match_operator
2796 instead of working down from insn.
2798 2000-05-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2800 * invoke.texi (-Wtraditional): Update WRT function macros.
2802 Tue May 30 09:57:32 2000 Philippe De Muyter <phdm@macqel.be>
2804 * except.c (free_exception_table): Do not free NULL.
2806 2000-05-29 Zack Weinberg <zack@wolery.cumb.org>
2808 * cpplib.c (do_if): Don't save and restore only_seen_white here.
2809 * cppexp.c (_cpp_parse_expr): Save and restore only_seen_white
2812 2000-05-29 Richard Earnshaw (rearnsha@arm.com)
2814 * flow.c (mark_used_reg): If a register is unconditionally live,
2815 remove any conditional death information.
2817 2000-05-29 Richard Henderson <rth@cygnus.com>
2819 * final.c (current_output_insn): New.
2820 (final_scan_insn): Set it.
2821 * output.h: Declare it.
2823 2000-05-29 Richard Henderson <rth@cygnus.com>
2825 * stor-layout.c (finalize_record_size): Fix typo.
2827 * jump.c (redirect_jump): Don't emit NOTE_INSN_FUNCTION_END
2830 2000-05-29 Zack Weinberg <zack@wolery.cumb.org>
2832 * cpplib.h (cpp_reader): Remove if_stack. Change
2833 potential_control_macro to a cpp_hashnode *. Add skipping flag.
2834 * cpphash.h (struct ihash): Change control_macro to a
2835 cpp_hashnode * and shorten name to cmacro.
2836 Add NEVER_REINCLUDE constant.
2838 * cppfiles.c (redundant_include_p): Drop cpp_reader argument.
2839 Examine the cmacro node directly, no need to call cpp_defined.
2840 (_cpp_execute_include, read_include_file): Set cmacro to
2841 NEVER_REINCLUDE, not U"".
2842 * cpplex.c (cpp_push_buffer): Don't set new->if_stack.
2843 (cpp_get_token): If pfile->skipping is true, discard text and
2844 keep scanning until we hit a directive; don't expand macros.
2846 * cpplib.c (struct if_stack): Remove if_succeeded, add
2847 was_skipping. Change control_macro to a cpp_hashnode * and
2848 shorten name to cmacro. Remove typedef IF_STACK.
2849 (parse_ifdef), detect_if_not_defined): Return a cpp_hashnode *.
2850 (conditional_skip, skip_if_group,
2851 consider_directive_while_skipping): Delete.
2852 (push_conditional): New.
2853 (_cpp_handle_directive): Don't process directives other than
2854 conditionals if we are skipping.
2856 (do_ifdef, do_ifndef, do_if, do_else, do_elif, do_endif):
2857 Update to new scheme.
2858 (validate_else): Skip rest of line here, unconditionally.
2859 (_cpp_unwind_if_stack): The stack is per-buffer. Force
2860 pfile->skipping off.
2862 (all): Remove `scare quotes' from error messages.
2864 2000-05-29 Richard Henderson <rth@cygnus.com>
2866 * function.c (emit_return_into_block): New line_note arg; emit it.
2867 (thread_prologue_and_epilogue_insns): Attempt to locate a line note
2868 for the close brace to accompany HAVE_return. Move all line notes
2869 following the epilogue to before the NOTE_INSN_EPILOGUE_BEG.
2871 2000-05-29 Richard Henderson <rth@cygnus.com>
2873 * longlong.h [__alpha] (count_leading_zeros): New.
2874 (count_trailing_zeros): New.
2875 (COUNT_LEADING_ZEROS_0): New.
2877 * config/alpha/alpha.c (alpha_zero_comparison_operator): New.
2878 (alpha_split_conditional_move): New.
2879 * config/alpha/alpha-protos.h: Prototype them.
2880 * config/alpha/alpha.h (PREDICATE_CODES): Update.
2881 (CPP_CPU_DEFAULT_SPEC): Fix typo for EV67.
2882 * config/alpha/alpha.md: Update ffs cix commentary.
2884 (*nabssf2, *nabsdf2): New.
2885 (*mov[qhsd]icc_internal): Use add_operand.
2886 (if_then_else constant splitters): New.
2887 (*cmp_sadd_di, *cmp_sadd_si, *cmp_sadd_sidi): New.
2888 (*cmp_ssub_di, *cmp_ssub_si, *cmp_ssub_sidi): New.
2890 2000-05-29 Richard Henderson <rth@cygnus.com>
2892 * combine.c (force_to_mode) [MINUS]: Convert subtraction from
2893 a constant to NEG or NOT when conditions allow.
2895 * combine.c (combine_simplify_rtx): Don't create an if_then_else
2896 unless both args are general_operand. Don't canonicalize plus
2897 to ior unless it helps.
2899 * toplev.c (rest_of_compilation): Set no_new_pseudos after flow1;
2900 instead track register_life_up_to_date. Toggle no_new_pseudos
2903 2000-05-28 Geoff Keating <geoffk@cygnus.com>
2905 * config/rs6000/rs6000.c (output_cbranch): Escape '%' characters
2906 so output_operand doesn't see them.
2908 Sun May 28 18:37:07 2000 Clinton Popetz <cpopetz@cygnus.com>
2910 * lcm.c (make_preds_opaque): Fix comment.
2911 (optimize_mode_switching): Use NORMAL_MODE instead of
2912 MODE_USES_IN_EXIT_BLOCK. Change leftover instance of
2913 FP_MODE_NONE to no_mode. Rename MODE_AT_ENTRY to NORMAL_MODE.
2914 Handle insertions before an existing NOTE_INSN_BASIC_BLOCK.
2915 * tm.texi (OPTIMIZE_MODE_SWITCHING): Refer to NORMAL_MODE.
2916 (MODE_USES_IN_EXIT_BLOCK): Delete.
2917 (MODE_AT_ENTRY) Rename to NORMAL_MODE.
2918 * sh.h (MODE_USES_IN_EXIT_BLOCK): Delete.
2919 (MODE_AT_ENTRY): Rename to NORMAL_MODE.
2920 (MODE_NEEDED): Don't look for USE.
2921 (EPILOGUE_USES): Define.
2923 Sun May 28 23:26:59 2000 Philippe De Muyter <phdm@macqel.be>
2925 * mklibgcc.in (all): Variable initialised to `libgcc'.
2927 2000-05-28 Gabriel Dos Reis <gdr@codesourcery.com>
2929 * toplev.h (skip_leading_substring): New macro.
2930 * toplev.c (decode_f_option): Use skip_leading_substring instead
2932 (decode_W_option): Likewise.
2934 2000-05-28 Nick Clifton <nickc@cygnus.com>
2936 * tm.texi (CONDITIONAL_REGISTER_USAGE): Document that it can
2939 2000-05-28 Richard Henderson <rth@cygnus.com>
2941 * regclass.c (record_operand_costs): Protect reg_changes_size
2942 with CLASS_CANNOT_CHANGE_SIZE.
2944 * loop.c (instrument_loop_bct): Set JUMP_LABEL on the new insn.
2946 2000-05-28 Richard Henderson <rth@cygnus.com>
2948 * function.c (diddle_return_value): A pcc-style struct return
2951 2000-05-27 Zack Weinberg <zack@wolery.cumb.org>
2953 * cppfiles.c: Read files in, using mmap if possible, then
2954 prescan them separately.
2955 (read_file, read_with_read): New functions.
2956 * cpplex.c: Don't define UCHAR_MAX.
2957 (_cpp_read_and_prescan): Rename to _cpp_prescan. Don't read
2960 * cppinit.c (handle_option): Automatically define __cplusplus,
2961 __OBJC__, __ASEEMBLER__, _LANGUAGE_FORTRAN here when we see
2962 the respective -lang switch.
2964 * cpphash.h (enum node_type, struct hashnode, _cpp_lookup
2965 prototype): Move to...
2966 * cpplib.h: ... here. Rename struct hashnode to struct
2967 cpp_hashnode and give it a typedef. Rename _cpp_lookup to
2968 cpp_lookup. Add 'fe_value' slot, a union tree_node *.
2970 2000-05-27 Geoffrey Keating <geoffk@cygnus.com>
2972 * config/rs6000/rs6000.md (movsi): Constify 'name'.
2974 * regclass.c [CLASS_CANNOT_CHANGE_SIZE]
2975 (class_can_change_size): New variable.
2976 (reg_changes_size): New variable.
2977 (init_reg_sets_1): Initialise class_can_change_size.
2978 (record_operand_costs): Remove subreg_changes_size.
2979 Don't pass it around. Instead update reg_changes_size.
2980 (regclass): Initialise and free reg_changes_size. If a register
2981 changes size, don't preference it to a class that contains
2982 registers that can't change size.
2983 (record_reg_classes): Don't look at subreg_changes_size.
2985 2000-05-27 Richard Henderson <rth@cygnus.com>
2987 * print-rtl.c (reg_names): Remove const.
2988 * regclass.c (reg_names): Likewise.
2989 * regs.h (reg_names): Likewise.
2990 * hard-reg-set.h (reg_names): Likewise.
2992 2000-05-27 Richard Henderson <rth@cygnus.com>
2994 * config/rs6000/rs6000.md (untyped_call): Use GEN_CALL.
2996 2000-05-27 Richard Henderson <rth@cygnus.com>
2998 * config/alpha/alpha.c (alpha_does_function_need_gp): Test
2999 TARGET_PROFILING_NEEDS_GP in the if, instead of with an ifdef.
3000 (alpha_expand_prologue): Emit prologue_mcount if needed.
3001 * config/alpha/alpha.h (TARGET_PROFILING_NEEDS_GP): Default to 0.
3002 * config/alpha/alpha.md (prologue_mcount): New.
3003 * config/alpha/linux.h (FUNCTION_PROFILER): Remove.
3004 (TARGET_PROFILING_NEEDS_GP): Undef before redefining.
3005 * config/alpha/netbsd.h: Likewise.
3007 2000-05-27 Richard Henderson <rth@cygnus.com>
3009 * config/alpha/elf.h (SELECT_SECTION): Mirror Kenner's May 19
3010 change to config/elfos.h.
3012 2000-05-27 Richard Henderson <rth@cygnus.com>
3014 * Makefile.in (resource.o): Depend on except.h.
3015 * except.h (output_exception_table_data): Prototype.
3016 * genconfig.c (gen_peephole2): Prototype.
3017 * genemit.c (main): Include ggc.h.
3018 * genoutput.c: Revert parts of last change: include errors.h
3019 (main): Set progname.
3020 * recog.c: Include hard-reg-set.h before recog.h.
3021 * resource.c: Include except.h.
3023 * config/alpha/alpha-protos.h (alpha_arg_info_reg_val): Protect
3025 (alpha_write_linkage): Protect with BUFSIZ.
3026 (alpha_need_linkage): Update prototype.
3027 * config/alpha/alpha.c (function_arg): Move VMS code here.
3028 (alpha_links_base): Remove.
3030 (mark_alpha_links_node, mark_alpha_links): New.
3031 (alpha_write_one_linkage): New.
3032 (alpha_need_linkage): Use a splay tree. Build the linkage symbol.
3033 (alpha_write_linkage): Use splay_tree_foreach.
3034 * config/alpha/alpha.md (call_vms): Use alpha_need_linkage
3035 to get the linkage symbol.
3036 (call_value_vms): Likewise.
3037 * config/alpha/elf.h (output_file_directive): Remove decl.
3038 (ctors_section, dtors_section): Prototype.
3039 (sbss_section, sdata_section): Prototype.
3040 * config/alpha/vms.h (FUNCTION_ARG): Remove.
3041 (readonly_section, link_section, literals_section): Prototype.
3042 (ctors_section, dtors_section): Prototype.
3043 (vms_valid_decl_attribute_p): Remove decl.
3044 (alpha_arg_type, alpha_arg_info_reg_val): Likewise.
3046 2000-05-27 Geoff Keating <geoffk@cygnus.com>
3048 * reload.c (get_secondary_mem): Don't widen floating-point modes.
3050 * combine.c (subst): Honour CLASS_CANNOT_CHANGE_SIZE when
3051 substituting the REG in a (subreg:X (reg:Y ...)).
3053 2000-05-28 Neil Booth <NeilB@earthling.net>
3055 * cpplex.c (_cpp_lex_line): Merge vertical space. Flag
3056 first token of a line BOL. Update EOF code for this.
3057 Remove illegal directive check - it appears in the (not
3058 yet committed) caller.
3059 * cpplib.h (BOL): New flag.
3061 2000-05-28 Neil Booth <NeilB@earthling.net>
3063 * cpplex.c (_cpp_init_toklist): No comment space to initialise.
3064 (_cpp_free_toklist): No comment space to free.
3065 (expand_comment_space): Remove.
3066 (save_comment_space): Place the comment in the current token and
3067 not in a separate comment space.
3068 (_cpp_lex_line): Save comments during plain code and #define
3070 * cpplib.h (struct _cpp_toklist): Remove comment space.
3072 2000-05-28 Neil Booth <NeilB@earthling.net>
3074 * cppexp.c (parse_assertion): Supply extra argument to
3076 * cpplib.c (do_assert, do_unassert): Similarly.
3077 * cpphash.h (_cpp_init_toklist) Update.
3078 (_cpp_expand_token_space): New.
3079 (DUMMY_TOKEN, NO_DUMMY_TOKEN): New.
3080 * cpplex.c (_cpp_init_toklist): New argument.
3081 (parse_string2): New argument multiline_ok.
3082 (spell_token): Take a const cpp_token *.
3083 (INIT_NAME): Replace with INIT_TOKEN_NAME. Update tokens_used.
3084 (SPELL_ macros): Replace with enum.
3085 (expand_token_space): Replace with _cpp_expand_token_space.
3086 Take COUNT argument.
3087 (IS_DIRECTIVE): Update.
3088 (_cpp_lex_line): Update token structure before parsing number.
3089 Don't assume start at beginning of token list.
3090 (save_comment): Use INIT_TOKEN_NAME.
3092 2000-05-27 Zack Weinberg <zack@wolery.cumb.org>
3094 * configure.in (stage1_warn_cflags): Add -Wstrict-prototypes
3095 -Wmissing-prototypes.
3096 * configure: Regenerate.
3097 * gcc.texi: Remove explanation of MD_CALL_PROTOTYPES.
3099 * builtins.c, calls.c: Change all instances of gen_call_* or
3100 gen_sibcall_* to GEN_CALL_* and GEN_SIBCALL_*.
3101 * calls.c (struct_value_size_rtx): Separate definition from
3102 initialization to avoid unused variable warning.
3104 * genflags.c (gen_macro): New function.
3105 (gen_proto): Call it for gen_call_* and gen_sibcall_*.
3106 (gen_nonproto): Delete.
3107 (gen_insn): Put all insns on the same obstack.
3108 (main): Generate prototypes for everything unconditionally.
3110 * configure.in: Add AC_CHECK_TYPE(ssize_t). Remove commented
3111 out check for wchar_t.
3112 * acconfig.h: Add template for ssize_t. Remove @TOP@.
3113 * system.h: Add infrastructure for defining missing
3114 TYPE_MAX/TYPE_MIN macros. Use it to provide fallback
3115 definitions of UCHAR_MAX and SSIZE_MAX.
3116 * configure: Regenerate.
3117 * config.in: Regenerate.
3119 * Makefile.in (libgcc2.ready): Rename to libgcc.ready.
3120 Depend on $(LANGUAGES) as well as $(GCC_PATCHES) and fixed
3122 (clean): No need to delete libgcc1.a, libgcc1-asm.a,
3123 libgcc2.a, or libgcc1.null.
3125 2000-05-27 Richard Henderson <rth@cygnus.com>
3127 * Makefile.in (recog.o): Don't depend on resource.h.
3128 * recog.c: Don't include resource.h.
3129 (recog_last_allowed_insn): Remove.
3130 (recog_next_insn): Remove.
3131 (struct peep2_insn_data): New.
3132 (peep2_insn_data, peep2_current): New.
3133 (peep2_next_insn): New.
3134 (peep2_regno_dead_p, peep2_reg_dead_p): New.
3135 (peep2_find_free_register): New.
3136 (peephole2_optimize): Track life information by insn as we go.
3137 * recog.h: Update declarations.
3138 * resource.c (find_free_register, reg_dead_p): Remove.
3139 * resource.h: Remove their declarations.
3140 * toplev.c: Include hard-reg-set.h before recog.h.
3142 * genconfig.c (max_insns_per_peep2): New.
3143 (gen_peephole2): New.
3145 * genemit.c (output_peephole2_scratches): Generate calls to
3146 peep2_find_free_register; adjust surrounding code.
3147 (main): Have insn-emit.c include hard-reg-set.h before recog.h.
3148 * genrecog.c (change_state): Don't track last_insn.
3149 (write_action): Write into *_pmatch_len before accepting.
3150 (write_tree): Adjust peephole2_insns and subroutines to match.
3152 * config/i386/i386.md (all peepholes): Use peep2_regno_dead_p.
3154 * config/alpha/alpha.c (hard_fp_register_operand): Mind the mode.
3155 (hard_int_register_operand): New.
3156 * config/alpha/alpha-protos.h: Declare it.
3157 * config/alpha/alpha.h (PREDICATE_CODES): Update.
3158 * config/alpha/alpha.md (peep2 patterns): Use hard_int_register_operand
3159 as needed; use peep2_reg_dead_p instead of dead_or_set_p.
3161 2000-05-27 Richard Henderson <rth@cygnus.com>
3163 * function.c (thread_prologue_epilogue_insns): Don't move the
3164 line note at the head of the chain. Only force a lineno note
3165 before the end of block 0.
3167 2000-05-27 Richard Henderson <rth@cygnus.com>
3169 * gensupport.c (collect_insn_data): Record the maximum number
3170 of alternatives, not the last seen.
3172 * genoutput.c: Don't include errors.h.
3173 (struct data): Add lineno member.
3175 (scan_operands): Use message_with_line instead of error.
3176 (validate_insn_alternatives): Likewise.
3177 (gen_insn): Accept and store the pattern's line number.
3178 (gen_peephole, gen_expand, gen_split): Likewise.
3179 (main): Don't set progname. Pass line_no to gen_foo.
3181 2000-05-27 Richard Henderson <rth@cygnus.com>
3183 * config/d30v/d30v.c (d30v_print_operand): Handle ':'.
3184 * config/d30v/d30v.h (PRINT_OPERAND_PUNCT_VALID_P): Accept ':'.
3185 * config/d30v/d30v.md (attr predicable): New.
3186 (all insn patterns): Mark non-predicable patterns; use %: on the rest.
3187 (andsi3*): Unify into one pattern.
3188 (iorsi3*, xorsi3*): Likewise.
3189 (peephole2 patterns): Use peep2_reg_dead_p; verify not a
3191 (old cond_exec patterns): Remove.
3192 (define_cond_exec): New.
3194 Sat May 27 11:01:27 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3196 * tree.h (TREE_CODE_LENGTH): New macro.
3197 * c-common.c (c_find_base_decl): Use it.
3198 * expr.c (safe_from_p): Likewise.
3199 * print-tree.c (print_node): Likewise.
3200 * tree.c (make_node, copy_node, get_identifier): Likewie.
3201 (first_rtl_op, contains_placeholder_p, substitute_in_expr): Likewise.
3202 (build, build_nt, build_parse_node, simple_cst_equal): Likewise.
3203 * fold-const.c (make_range): Likewise.
3204 (fold): Likewise; also use first_rtl_op.
3205 * c-iterate.c (collect_iterators): Use first_rtl_op.
3206 * calls.c (calls_function_1): Likewise; also rename TYPE to CLASS.
3207 Use IS_EXPR_CODE_CLASS.
3208 (preexpand_calls): Likewise.
3209 * ggc-common.c (ggc_mark_trees): Rework to use first_rtl_op
3210 and TREE_CODE_LENGTH.
3211 * stmt.c (warn_if_unused_value): If no operands, no unused value.
3213 2000-05-26 Geoffrey Keating <geoffk@cygnus.com>
3215 * config/rs6000/rs6000.md (movsi_internal1): Use '%a1' rather
3217 (movdi_internal64): Likewise.
3219 * config/rs6000/rs6000.md: Correct order of operands for DImode
3222 * config/rs6000/rs6000.c (boolean_or_operator): New function.
3223 * config/rs6000/rs6000-protos.h (boolean_or_operator): Prototype it.
3224 * config/rs6000/rs6000.h (PREDICATE_CODES): Add boolean_or_operator.
3225 * config/rs6000/rs6000.md: Use boolean_or_operator instead of
3226 boolean_operator for the boolean patterns without NOTs.
3228 * config/rs6000/rs6000.c (reg_or_logical_cint_operand): Rename
3229 from reg_or_u_cint_operand. Change comment and behaviour.
3230 (logical_operand): Clean up, add assertion.
3231 (non_logical_cint_operand): Also check for
3232 reg_or_logical_cint_operand.
3233 * config/rs6000/rs6000.h (PREDICATE_CODES): Update.
3234 * config/rs6000/rs6000.md (iorsi3): Use reg_or_logical_cint_operand
3240 2000-05-26 Mark Mitchell <mark@codesourcery.com>
3242 * tree.h (struct record_layout_info): Rename to (struct
3243 record_layout_info_s).
3244 * stor-layout.c (start_record_layout): Replace
3245 `record_layout_info' with `record_layout_info_s'.
3247 2000-05-26 Richard Earnshaw <rearnsha@arm.com>
3249 * flow.c (find_label_refs): New function.
3250 (find_basic_blocks_1): Call it for each alternative of a call
3253 2000-05-26 Richard Earnshaw <rearnsha@arm.com>
3255 * ifcvt.c (cond_exec_get_condition): Set test_if to the SET_SRC
3258 2000-05-25 Richard Henderson <rth@cygnus.com>
3260 * config/alpha/alpha.c (alpha_comparison_operator): Don't be
3261 so strict about DImode.
3262 (alpha_swapped_comparison_operator): Likewise.
3263 * config/alpha/alpha.md (*setne_internal): Name it. Allow
3264 any integer output mode.
3265 (*setcc_internal): Likewise.
3266 (*setcc_swapped_internal): Likewise.
3267 (*movdicc_internal, *movdicc_lbc, *movdicc_lbs): Name them.
3268 (*mov[qhs]icc_internal): New.
3269 (*mov[qhs]icc_lbc, *mov[qhs]icc_lbs): New.
3271 2000-05-25 J. David Anglin <dave@hiauly1.hia.nrc.ca>
3273 * vax.h (CPP_SPEC): Define __GFLOAT and GFLOAT when -mg is specified.
3275 2000-05-25 Richard Henderson <rth@cygnus.com>
3277 * bb-reorder.c (reorder_block_def): Reorder elements for size.
3278 Remove add_jump; add next; replace flags with visited.
3280 (REORDER_BLOCK_HEAD, REORDER_BLOCK_VISITED): Remove.
3281 (REORDER_BLOCK_FLAGS, REORDER_BLOCK_INDEX): Remove.
3282 (REORDER_BLOCK_ADD_JUMP, REORDER_BLOCK_EFF_HEAD): Remove.
3283 (REORDER_BLOCK_EFF_END, REORDER_BLOCK_SCOPE): Remove.
3285 (reorder_index, reorder_last_visited): Remove.
3286 (skip_insns_after_block): Rewrite to use a switch.
3287 (get_common_dest): Remove.
3288 (chain_reorder_blocks): Remove.
3289 (record_effective_endpoints): Split out from reorder_basic_blocks.
3290 (make_reorder_chain): Likewise. Loop until all blocks are placed.
3291 (make_reorder_chain_1): Renamed from old make_reorder_chain.
3292 Only construct the reorder chain, do not move insns. Try harder
3294 (label_for_bb, emit_jump_to_block_after): New.
3295 (fixup_reorder_chain): Use them. Do bulk block movement. Examine
3296 and adjust the jump insns appropriately. Fixup basic_block_info.
3297 (verify_insn_chain): Always define.
3298 (relate_bbs_with_scopes): Call xmalloc, not xcalloc. Fix thinko
3300 (make_new_scope): Don't write zeros to calloc'd space.
3301 (build_scope_forest): Rely on xrealloc to DTRT.
3302 (reorder_basic_blocks): Don't build loop nest. Don't fail if
3303 profile_arc_flag. Streamline EH test.
3305 * flow.c (redirect_edge_succ, redirect_edge_pred): New.
3306 * basic-block.h: Declare them.
3308 2000-05-25 Alexandre Oliva <aoliva@cygnus.com>
3310 * emit-rtl.c (reset_used_decls): New function.
3311 (unshare_all_rtl_again): Call it.
3313 2000-05-25 Zack Weinberg <zack@wolery.cumb.org>
3315 * cpplex.c (maybe_macroexpand): Warn about function-like
3316 macros used in non-function context, if -Wtraditional.
3318 2000-05-25 Mark Mitchell <mark@codesourcery.com>
3320 * recog.c (peephole2_optimize): Use INSN_P.
3322 2000-05-25 Richard Henderson <rth@cygnus.com>
3324 * ifcvt.c (seq_contains_jump): New.
3325 (noce_try_store_flag_constants): Use it to fail conversion.
3326 (noce_try_store_flag_inc, noce_try_store_flag_mask): Likewise.
3328 2000-05-25 Mark Mitchell <mark@codesourcery.com>
3330 * except.h (can_throw): Declare it.
3331 * except.c (can_throw): Give it external linkage.
3332 * resource.c (find_dead_or_set_registers): Use can_throw.
3334 2000-05-25 Richard Henderson <rth@cygnus.com>
3336 * flow.c (mark_set_1): Don't record conditionally dead memory.
3338 2000-05-25 Jan Hubicka <jh@suse.cz>
3340 * combine.c (try_combine): Use any_condjump_p, any_uncondjump_p
3341 and pc_set at the place of simplejump_p and condjump_p.
3342 * cse.c (record_jump_equiv): Likewise.
3343 * emit-rtl.c (emit): Likewise.
3344 * explow.c (find_next_ref): Likewise.
3345 * flow.c (tidy_fallthru_edge): Likewise.
3346 (init_propagate_block_info): Likewise.
3347 * gcse.c (delete_null_pointer_checks): Likewise.
3348 * ifcvt.c (cond_exec_get_condition, noce_get_condition,
3349 dead_or_predicable): Likewise.
3350 * integrate.c (copy_insn_list): Likewise.
3351 * loop.c (scan_loop, verify_dominator, find_and_verify_loops,
3352 for_each_insn_in_loop, check_dbra_loop, get_condition,
3353 insert_bct, load_mems): Likewise.
3354 * resource.c (find_dead_or_set_registers): Likewise.
3355 * sibcalls.c (simplejump_p): Likewise.
3356 * unroll.c (copy_loop_body, reg_dead_after_loop): Likewise.
3358 2000-05-25 David Edelsohn <edelsohn@gnu.org>
3360 * rs6000.c (expand_block_move): Add 64-bit PowerPC doubleword move
3361 to STRING case. Use doubleword STRING move for TARGET_POWERPC64
3363 * rs6000.h (CONST_OK_FOR_LETTER_P, 'J'): unsigned HOST_WIDE_INT.
3364 (RETURN_ADDR_RTX): Use COUNT and FRAME, not count and frame.
3365 (LEGITIMIZE_RELOAD_ADDRESS): unsigned HOST_WIDE_INT high.
3366 * rs6000.md: Name various internal patterns.
3368 2000-05-25 Jan Hubicka <jh@suse.cz>
3370 * jump.c (invert_exp_1): Remove first argument, use pc_set
3371 to get the expression.
3372 (redirect_exp): Make static; redirect only the pc_set expression,
3373 remove first argument.
3374 (invert_exp): Remove first argument, make static.
3375 (jump_optimize): Use any_condjump_p, any_uncondjump_p and
3376 any_onlyjump at most places where we originaly did condjump_p
3378 (jump_back_p, follow_jumps, thread_jumps): Likewise.
3379 (delete_barrier_succesors): Use pc_set.
3380 (invert_jump_1, invert_jump, redirect_jump_1, redirect_jump): Update
3381 calls of invert_exp and redirect_exp.
3382 * rtl.h (redirect_exp, invert_exp): Remove.
3383 * unroll.c (copy_loop_body): Use invert_jump and redirect_jump.
3385 2000-05-25 Richard Henderson <rth@cygnus.com>
3387 * stmt.c (expand_end_bindings): Fix thinko last change.
3389 2000-05-25 Andrew MacLeod <amacleod@cygnus.com>
3390 Andrew Haley <aph@cygnus.com>
3392 * except.c (func_eh_entry): Add emitted field.
3393 (new_eh_region_entry): Set emitted field to 0;
3394 (output_exception_table_entry): Only emit previously un-emitted data,
3395 and send it to the eh_data section.
3396 (output_exception_table): Break out common parts. Output
3397 exception table for entire compilation unit to eh_data section.
3398 (output_exception_table_data): Common parts of output_exception_table.
3399 Send output to eh_data section.
3400 (output_function_exception_table): Output exception table data for
3401 a single function to eh_data section.
3402 (free_exception_table): New external to free the table.
3403 * except.h (free_exception_table): Add prototype.
3404 (output_function_exception_table): Add prototype.
3405 * final.c (final_end_function): Output function exception table
3406 for IA64_UNWIND_INFO.
3407 (final_scan_insn): Emit any unwind directives for an insn.
3409 * frame-dwarf2.c: New file containing all DWARF 2 specific code
3411 * frame.c: Remove all DWARF 2 specific code.
3412 * config/ia64/frame-ia64.c: New file.
3413 (gthread_stuff): Make all gthread available with
3415 (dwarf_fde): Define an IA64 struct for dwarf_fde.
3416 (__register_frame_info, __register_frame): Move to common area of file.
3417 (__register_frame_info_table, __register_frame_table): Move to common i
3419 (__deregister_frame_info, __deregister_frame): Move to common area.
3420 (__frame_init, find_fde): New versions for IA64_UNWIND_INFO.
3421 (read_uleb128): New version for ia64.
3422 (get_unwind_record): Read the next IA-64 unwind record.
3423 (read_R_record): Read a region header record.
3424 (process_a_b_reg_code): X record helper.
3425 (read_X_record): Read an X format record.
3426 (read_B_record): Read a B format record.
3427 (P3_record_types): List of record types matching the P3 format.
3428 (P7_record_types): List of record types matching the P7 format.
3429 (P8_record_types): List of record types matching the P8 format.
3430 (read_P_record): Read a P format record.
3431 (init_ia64_reg_loc): Set default fields for a register.
3432 (init_ia64_unwind_frame): Set defaults for all register records.
3433 (execute_one_ia64_descriptor): Execute one descriptor record.
3434 (rse_address_add): Calculate the position of a local reg in memory.
3435 (normalize_reg_loc): Turn a location descriptor into a memory address.
3436 (maybe_normalize_reg_loc): Only normalize a descriptor if it falls
3437 within a specified PC offset range.
3438 (get_real_reg_value): Given a register location, retrieve its value.
3439 (set_real_reg_value): Change the value of a register location.
3440 (copy_reg_value): Copy reg values, if needed.
3441 (copy_saved_reg_state): Copy all registers that need to be copied.
3442 (process_state_between): Normalize all frame register records that
3443 fall within the specified PC range.
3444 (frame_translate): Take a processed frame description, and turn
3445 everything into addresses.
3446 (build_ia64_frame_state ): Find and create frame state record for a PC.
3447 (get_personality): Get the personality routine for a given frame.
3448 (get_except_table): Get the exception table for a given frame.
3449 (record_name): Unwind record names for debugging.
3450 (print_record): Print and unwind record.
3451 (print_all_records): Print an entire unwind image.
3452 (__ia64_backtrace): Print a backtrace.
3453 (ia64_backtrace_helper): New function.
3454 (__register_frame_info_aux): New function.
3455 * config/ia64/crtend.asm (__do_frame_setup_aux): New function.
3457 * frame.h (enum unw_record_type): New unwind record types.
3458 (struct unw_p_record, unw_b_record, unw_x_record) : New unwind records.
3459 (struct unw_r_record, unwind_record): New unwind record structs.
3460 (struct unwind_info_ptr): Unwind information layout.
3461 (IA64_UNW_LOC_TYPE_*): Macros for different types for location
3463 (struct ia64_reg_loc): Register location description.
3464 (struct ia64_frame_state): Location of all registers in a frame.
3465 (struct object): Add pc_base and fde_end for IA64_UNWIND_INFO.
3466 * libgcc2.c (__ia64_personality_v1): Personality routine.
3467 (__calc_caller_bsp): Calculate the bsp register for the caller's
3469 (ia64_throw_helper): Figure out who to return to and set up the
3471 (__throw): Throw routine.
3473 * output.h (assemble_eh_align, assemble_eh_label): New functions
3474 to generate EH info where we want it.
3475 (assemble_eh_integer): New function.
3476 * toplev.c (compile_file): Output module level exception table for
3478 (main): Set exceptions_via_longjump and flag_new_exceptions based
3479 on IA64_UNWIND_INFO too.
3481 * varasm.c (assemble_eh_label): Generate a label via
3482 ASM_OUTPUT_EH_LABEL if it has been specified.
3483 (assemble_eh_align): Generate an alignment directive via
3484 ASM_OUTPUT_EH_ALIGN if it has been specified.
3485 (assemble_eh_label): Generate an integer value via
3486 ASM_OUTPUT_EH_type if they have been specified.
3487 * config/ia64/ia64.c (rtx_needs_barrier): Add flushrs.
3488 (ia64_init_builtins): Add __builtin_ia64_bsp
3489 and __builtin_ia64_flushrs.
3490 (ia64_expand_builtin): Add IA64_BUILTIN_BSP and
3491 IA64_BUILTIN_FLUSHRS.
3492 * config/ia64/ia64.h (ia64_builtins): Add IA64_BUILTIN_BSP and
3493 IA64_BUILTIN_FLUSHRS.
3495 * config/ia64/ia64.md (flushrs): New insn to flush the register
3496 stack. Add to unspec list.
3498 * config/ia64/crtbegin.asm (frame_object): Change size.
3499 (__do_frame_setup_aux): New function.
3500 * config/ia64/crtend.asm: call __do_frame_setup_aux.
3501 * config/ia64/t-ia64 (LIB2ADDEH): Add.
3502 * Makefile.in (LIB2ADDEH): Add.
3503 (LIB2ADD): Use LIB2ADDEH.
3505 2000-05-24 Richard Henderson <rth@cygnus.com>
3507 * recog.c (offsettable_address_p): If mode size is zero, assume
3510 2000-05-24 J. David Anglin <dave@hiauly.hia.nrc.ca>
3512 * configure.in: Check for -Wno-long-long option support and improve
3513 handling of warning CFLAGS for stages 1 and 2.
3514 * Makefile.in (WARN_CFLAGS): Move definition to configure.in.
3515 * configure: Regenerate.
3517 Wed May 24 19:37:53 2000 Jeffrey A Law (law@cygnus.com)
3519 * gcc.texi: Remove contributor list. Instead include contrib.texi.
3520 * contrib.texi: New file.
3522 Thu May 25 02:27:22 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
3524 * loop.c (basic_induction_var): Avoid double recording of an increment.
3526 Thu May 25 02:19:27 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
3528 * Back out this patch:
3529 Tue Dec 7 19:22:06 1999 Richard Henderson <rth@cygnus.com>
3530 * loop.h (struct induction): Add multi_insn_incr.
3531 * loop.c (basic_induction_var): New multi_insn_incr argument.
3532 Set it if we search back through previous insns for the biv.
3533 (record_biv): New multi_insn_incr argument; fill in struct induction.
3534 (strength_reduce): Discard an iv with multiple bivs, any of
3535 which require multiple insns to increment.
3537 * loop.c (check_insn_for_bivs): Remove bits copied from above patch.
3539 Thu May 25 02:09:10 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
3541 * rtl.h (loc_mentioned_in_p): Declare.
3542 * reload.c (loc_mentioned_in_p): Moved from here...
3543 * rtlanal.c (loc_mentioned_in_p): to here. No longer static.
3544 Fix loop increment for 'E' handling.
3545 * loop.c (strength_reduce): When doing biv->giv conversion,
3546 take multi-insn biv increments into account.
3548 2000-05-24 Jason Merrill <jason@casey.soma.redhat.com>
3550 * stmt.c (expand_end_bindings): Look through NOTEs to find a
3553 2000-05-24 Mark Mitchell <mark@codesourcery.com>
3555 * calls.c (expand_call): Handle cleanups in tail-recursion
3556 arguments analagously to cleanups in sibling calls.
3558 2000-05-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3560 * simplify-rtx.c: Rename macro SIGN_EXTEND to HWI_SIGN_EXTEND.
3561 All callers changed.
3563 2000-05-24 Alexandre Oliva <aoliva@cygnus.com>
3565 * expr.c (expand_assignment, store_expr, expand_expr,
3566 expand_expr_unaligned): Set in_check_memory_usage while emitting
3567 chkr_check_addr libcall.
3569 2000-05-24 Nick Clifton <nickc@cygnus.com>
3571 * fold-const.c (extract_muldiv): When constructing a
3572 multiplier/divisor, do not expect const_binop to correctly
3573 determine if overflow has occured, so check explicitly.
3575 2000-05-24 Alexandre Oliva <aoliva@cygnus.com>
3577 * c-decl.c (build_enumerator): Don't modify the value's type,
3580 2000-05-24 Andreas Jaeger <aj@suse.de>
3582 * mips.h (LINKER_ENDIAN_SPEC): Pass -EL to linker by default.
3584 2000-05-24 Eric Christopher <echristo@cygnus.com>
3586 * configure.in: Redefine inhibit_libc conditions.
3587 * libgcc2.c: Remove inhibit_libc conditional define.
3588 * configure: Regenerate.
3590 2000-05-24 Phil Edwards <pme@sourceware.cygnus.com>
3592 * configure.in: For --enable-languages=LIST, check for empty LIST.
3593 * configure: Regenerate.
3595 2000-05-24 Lars Brinkhoff <lars@nocrew.org>
3597 * pdp11.h (STACK_BOUNDARY): Define.
3599 2000-05-24 Jakub Jelinek <jakub@redhat.com>
3601 * ifcvt.c (if_convert): Update life info globally.
3603 2000-05-24 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
3605 * emit-rtl.c (unshare_all_decls): New function.
3606 (unshare_all_rtl): Call it.
3608 2000-05-23 Nick Clifton <nickc@cygnus.com>
3610 * configure.in: Treat 'strongarm' as if it were 'arm' when
3611 determining cpu type.
3613 * configure: Regenerate.
3615 * config/arm/arm.c: Change 'char *' to 'const char *' for cases
3616 where constant strings are involved.
3618 * config/arm/arm.h (arm_condition_codes): Change type to 'const
3621 * config/arm/arm-protos.h: Change 'char *' to 'const char *' for
3622 cases where constant strings are involved.
3624 Tue May 23 15:08:31 2000 Clinton Popetz <cpopetz@cygnus.com>
3626 * config/sh/sh.c (gen_far_branch, split_branches): Update
3627 to reflect new prototypes for redirect_jump and invert_jump.
3628 (sh_insn_length_adjustment): Get rid of const warnings.
3630 2000-05-23 Kazu Hirata <kazu@hxi.com>
3632 * invoke.texi (Options for Debugging Your Program or GCC): Update
3633 the names of dump files.
3635 Tue May 23 13:58:52 2000 Philippe De Muyter <phdm@macqel.be>
3637 * configure.in (NO_MINUS_C_MINUS_O): Fix thinko in previous fix.
3638 * configure: Regenerated.
3640 2000-05-23 Zack Weinberg <zack@wolery.cumb.org>
3642 * simplify-rtx.c (SIGN_EXTEND): New macro.
3643 (simplify_unary_operation, simplify_binary_operation,
3644 simplify_relational_operation): Use SIGN_EXTEND. Make low
3645 halves of (low, high) pairs unsigned if they weren't already.
3646 (simplify_ternary_operation): Cast INTVAL to unsigned before
3647 comparing to a MODE_BITSIZE.
3649 2000-05-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3651 * aclocal.m4 (gcc_AC_CHECK_DECL, gcc_AC_CHECK_DECLS): New macros
3652 rewritten from the internals of gcc_AC_NEED_DECLARATION{S}.
3654 * configure.in (gcc_AC_CHECK_DECLS): Call this instead of
3655 gcc_AC_NEED_DECLARATIONS.
3657 * dwarfout.c: Don't prototype time().
3659 * gcc.c: Check HAVE_DECL_* instead of NEED_DECLARATION_*.
3661 * system.h: Likewise.
3663 * toplev.c: Likewise.
3665 2000-05-23 Zack Weinberg <zack@wolery.cumb.org>
3667 * c-decl.c (pushdecl): Invert sense of test for non-global types.
3669 Tue May 23 18:11:42 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
3671 * reload1.c (reload_cse_move2add): Honor TRULY_NOOP_TRUNCATION.
3673 2000-05-23 Jonathan Larmour <jlarmour@redhat.co.uk>
3675 * config/mips/elf64.h (CTOR_LISTS_DEFINED_EXTERNALLY): Define
3677 Tue May 23 06:50:29 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3679 * config/alpha/alpha.c: Remove #ifdef HAIFA since now only scheduler.
3680 (alpha_start_function): Never write ..ng label if VMS or NT.
3681 (alpha_align_insns): Remove GP_IN_USE arg.
3682 Alignment now unsigned.
3683 (alpha_reorg): Don't pass GP_IN_USE arg to alpha_align_insns.
3684 * config/alpha/alpha.md (prologue_ldgp): Split into one define_expand
3685 and two define_insn's.
3687 2000-05-22 Richard Henderson <rth@cygnus.com>
3689 * combine.c (simplify_comparison): Use trunc_int_for_mode.
3691 2000-05-22 Richard Henderson <rth@cygnus.com>
3693 * stor-layout.c (place_field): Change rli->size to rli->offset.
3695 2000-05-22 Richard Henderson <rth@cygnus.com>
3697 * function.c (thread_prologue_and_epilogue_insns): Make sure
3698 existing line number notes appear after the prologue.
3700 Mon May 22 21:49:00 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3702 * config/alpha/alpha.c (alpha_fnname): New static variable.
3703 (print_operand, case '~'): New case.
3704 (alpha_expand_prologue): Emit prologue_ldgp insn if needed.
3705 (alpha_start_function): Set alpha_fnname.
3706 Write "ng" label if no ldgp; don't write ldgp insn.
3707 * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): New case '~'.
3708 * config/alpha/alpha.md (prologue_ldgp): New define_insn.
3710 Mon May 22 11:30:48 2000 Clinton Popetz <cpopetz@cygnus.com>
3712 * jump.c (jump_optimize_1): Don't increment LABEL_NUSES
3715 2000-05-22 Zack Weinberg <zack@wolery.cumb.org>
3717 * varasm.c (eh_frame_section): Revert change to argument list.
3719 Mon May 22 13:14:03 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3721 * optabs.c (can_extend_p): Allow unsignedp to have any nonzero value.
3722 (gen_extend_insn, can_fix_p, can_float_p): Likewise.
3724 * final.c (final_scan_insn, case NOTE_INSN_FUNCTION_BEG): Remove
3725 dangling "else" that causes "break" to be conditional.
3726 Also remove unneeded code at start.
3728 Mon May 22 17:31:35 2000 Philippe De Muyter <phdm@macqel.be>
3730 * m68k/m68k.h (STORE_FLAG_VALUE): Macro set to (-1), not -1.
3731 * fx80/fx80.h, i370/i370.h, m88k/m88k.h (STORE_FLAG_VALUE): Ditto.
3732 * gmicro/gmicro.h, we32k/we32k.h (STORE_FLAG_VALUE): Ditto.
3734 2000-05-22 Jakub Jelinek <jakub@redhat.com>
3736 * config/sparc/sparc.md (movdf_insn_v9only_vis): fzero has
3739 Mon May 22 06:57:49 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3741 * alias.c (record_component_aliases): New function.
3742 * tree.h: Clean up some declarations and comments.
3743 (record_component_aliases): New declaration.
3744 * tree.c (get_alias_set): If type and has alias set, use it.
3746 2000-05-22 Richard Henderson <rth@cygnus.com>
3748 * simplify-rtx.c (simplify_ternary_operation): Try to simplify
3749 IF_THEN_ELSE to a setcc form.
3750 * jump.c (can_reverse_comparison_p): Be prepared for insn null.
3752 2000-05-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3754 * fixinc/inclhack.def (sun_malloc): Handle `calloc'.
3755 (sun_malloc, sysz_stdtypes_for_sun): Add test_text.
3757 Sun May 21 16:42:31 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3759 * combine.c (try_combine): Handle i3_subst_into_i2 case when I2 is
3762 2000-05-20 Alexandre Oliva <aoliva@cygnus.com>
3764 * config/mn10300/mn10300.md (movdi, movdf): 64-bit clean-up.
3765 * config/mn10300/mn10300.c (print_operand): Likewise.
3767 * final.c (split_double): Right shift of negative values is not
3770 * ifcvt.c (if_convert): Scan and kill dead code.
3772 * emit-rtl.c (unshare_all_rtl): Store the copied rtx.
3774 2000-05-20 Zack Weinberg <zack@wolery.cumb.org>
3776 * diagnostic.c: Eliminate implicit int.
3777 * except.c, gcc.c: Add static prototypes.
3778 * final.c (final_end_function): Mark file arg ATTRIBUTE_UNUSED.
3779 * gensupport.c (process_rtx): Use XVEC to initialize vector
3782 * print-rtl.c: If DEBUG_REGISTER_NAMES, define static
3783 debug_reg_names instead of static reg_names. If not, define
3785 * regclass.c: Don't define global reg_names unless
3786 DEBUG_REGISTER_NAMES is defined.
3788 * reload1.c (order_regs_for_reload): Remove unused variable.
3789 * varasm.c: Include output.h after defaults.h. Define
3790 eh_frame_section as function of no args, not of unspecified args.
3792 * gcc.c: Constify argbuf; arguments to store_arg,
3793 process_command, main; elements of struct command and struct
3794 switchstr; local variables in execute, process_command, main.
3796 2000-05-20 Bruce Korb <bkorb@gnu.org>
3798 * fixinc/inclhack.def: many applications of c_fix=format + tests
3799 * fixinc/check.diff: regenerated
3800 * fixinc/fixincl.x: regenerated
3802 Sat May 20 09:30:55 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3804 * alias.c: Clarify some comments.
3805 (record_base_value): REGNO is unsigned.
3806 * rtl.h (record_base_value): Likewise.
3808 * alias.c (aliases_everything_p): Don't special-case QImode here.
3809 * c-common.c (c_get_alias_set): Do it here.
3810 Handle BIT_FIELD_REF by getting alias info for arg.
3813 2000-05-20 Alexandre Oliva <aoliva@cygnus.com>
3815 * mklibgcc.in: Restore rule to create ${dir}.
3817 Sat May 20 08:45:41 2000 H.J. Lu <hjl@gnu.org>
3819 * Makefile.in (libgcc.mk): Depend on xgcc$(exeext) for
3820 GCC_FOR_TARGET used by MULTILIBS.
3821 * mklibgcc.in: Make sure each .o file depends on the
3822 directory it will be in.
3823 Make the multilib directory depends libgcc.
3825 Sat May 20 08:29:28 2000 H.J. Lu <hjl@gnu.org>
3827 * Makefile.in (bootstrap): Unset LANG_LIB2FUNCS for stage 1.
3829 Sat May 20 07:27:35 2000 Alexandre Oliva <aoliva@cygnus.com>
3831 * fold-const.c (make_range): Handle degenerated intervals.
3832 Fixes c-torture/execute/991221-1.c
3834 Fri May 19 18:16:31 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3836 * cse.c (cse_basic_block): Only call find_reg_note if REG_NOTES not 0.
3837 * reload.c (find_equiv_reg): Likewise.
3838 * alias.c (init_alias_analysis): Likewise.
3839 Only call prologue_epilogue_contains on insns.
3840 * basic-block.h (REG_SET_TO_HARD_REG_SET): Call new function.
3841 * bb-reorder.c (hard-reg-set.h): Include earlier.
3842 * haifa-sched.c (hard-reg-set.h): Likewise.
3843 * ifcvt.c (hard-reg-set.h): Likewise.
3844 * local-alloc.c (hard-reg-set.h): Likewise.
3845 * loop.c (hard-reg-set.h): Likewise.
3846 * predict.c (hard-reg-set.h): Likewise.
3847 * regrename.c (hard-reg-set.h): Likewise.
3848 * flow.c (hard-reg-set.h): Likewise.
3849 (reg_set_to_hard_reg_set): New function.
3850 * bitmap.c (regs.h, basic-block.h): No longer include.
3851 (bitmap.h): Now include.
3852 * conflict.c (hard-reg-set.h): Include.
3853 * profile.c (hard-reg-set.h): Likewise.
3854 * print-rtl.c (hard-reg-set.h): Likewise.
3855 * sbitmap.c (hard-reg-set.h): Likewise.
3856 * toplev.c (hard-reg-set.h): Likewise.
3857 * unroll.c (hard-reg-set.h, basic-block.h): Likewise.
3858 * hard-reg-set.h (reg_names): Now constant.
3859 * regs.h (reg_names): Likewise.
3860 * regclass.c (reg_names): Likewise.
3861 * loop.h (basic-block.h): No longer include.
3862 (bitmap.h): Now include.
3863 * reload1.c (order_regs_for_reload): Avoid loop over reg sets.
3864 * Makefile.in (LOOP_H, sbitmap.o, profile.o): Reflect above changes.
3865 (toplev.o, print-rtl.o, conflict.o, unroll.o, bitmap.o): Likewise.
3867 2000-05-19 Jan Hubicka <jh@suse.cz>
3868 Richard Henderson <rth@cygnus.com>
3870 * basic-block.h (struct edge_def): New field "count".
3871 (struct basic_block_def): Likewise.
3872 * flow.c (entry_exit_blocks): Add count fileds.
3873 (split_edge): Keep count information up-to-date.
3874 (dump_edge_info, dump_flow_info): Dump count fields.
3876 * final.c (count_instrumented_edges): Rename to edge from arc.
3877 (end_final): Update users.
3878 * profile.c: Include expr.h, basic-block.h.
3879 (struct adj_list, ARC_TARGET, ARC_SOURCE, ARC_COUNT): Kill.
3880 (struct bb_info, label_to_bb, label_to_bb_size, bb_graph): Kill.
3881 (ignore_next_note, return_label_execution_count): Kill.
3882 (bbg_file_name, da_file_name): Kill.
3883 (edge_info, bb_info): New structures.
3884 (EDGE_INFO, BB_INFO, GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX): New macros.
3885 (count_instrumented_edges, total_num_edges): Rename to edge from arc.
3886 (total_num_edges_instrumented): Likewise.
3887 (init_arc, expand_spanning_tree): Kill.
3888 (fill_spanning_tree, tablejump_entry_p): Kill.
3889 (instrument_edges): Rewrite from instrument_arcs to use
3890 commit_edge_insertions infrastructure.
3891 (compute_branch_probabilities): Remove arguments; rewrite for
3892 CFG infrastructure; use rtl_dump_file directly.
3893 (branch_prob, find_spanning_tree): Likewise.
3894 (union_groups, find_group): New.
3895 (init_branch_prob): Make bbg_file_name and da_file_name local.
3896 (end_branch_prob): Use rtl_dump_file directly.
3897 (init_edge_profiler): Rename to edge from arc.
3898 (output_arc_profiler): Kill.
3899 (gen_edge_profiler): New.
3900 (output_func_start_profiler): Turn off profiling. Make the
3901 constructor static when we can.
3902 * rtl.h (branch_prob, end_branch_prob): Update prototypes.
3904 * toplev.c (DFI_flow): Remove.
3905 (DFI_cfg, DFI_life): New.
3906 (dump_file): Update accordingly.
3907 (compile_file): Call end_branch_prob if profile_arc_flag too.
3908 (rest_of_compilation): Move flow1 cfg creation to DFI_cfg. Do edge
3909 profiling after the CFG is built. Move flow1 life analysis to
3910 DFI_life. Always estimate remaining probabilities.
3912 2000-05-19 Richard Henderson <rth@cygnus.com>
3914 * ifcvt.c (find_if_case_2): Don't allow THEN to be EXIT.
3916 * flow.c (make_edges): The sibling call edge to exit is abnormal.
3918 2000-05-19 Richard Henderson <rth@cygnus.com>
3920 * jump.c (redirect_jump): Add delete_unused argument. Don't
3921 remove labels and code following when LABEL_NUSES goes to zero.
3922 (invert_jump): Likewise.
3923 (jump_optimize_1): Fix redirect/invert arguments.
3924 (do_cross_jump, thread_jumps): Likewise.
3925 * flow.c (split_edge): Likewise.
3926 * reorg.c (optimize_skip): Likewise.
3927 (reorg_redirect_jump, relax_delay_slots, dbr_schedule): Likewise.
3928 * profile.c (instrument_arcs): Likewise.
3929 * loop.c (find_and_verify_loops): Likewise. Fix indentation.
3930 * rtl.h: Update prototypes.
3932 Fri May 19 12:05:13 2000 Clinton Popetz <cpopetz@cygnus.com>
3934 * ssa.c (convert_from_ssa): Tell life_analysis we need death
3936 (make_regs_equivalent_over_bad_edges): Only look at abnormal
3939 2000-05-19 Zack Weinberg <zack@wolery.cumb.org>
3941 * cpphash.c (funlike_macroexpand): Make sure not to walk p1
3942 past l1 when deleting whitespace and markers.
3944 * cpplex.c (_cpp_scan_until): Clear AUX field of tokens.
3945 * cpplib.c (do_unassert): Put the list to compare against on
3948 2000-05-19 Bruce Korb <bkorb@gnu.org>
3950 * fixinc/README: cleaned up old documentation
3951 * fixinc/check.diff: regenerated & verified on OSR5 on ix86
3952 * fixinc/check.tpl: compute the list of needed directories
3953 emit "#if defined(name)" because of conflict
3954 omit machine name differences from output differences
3955 * fixinc/inclhack.def( m88k_multi_incl ): Use `wrap' function
3956 (machine_name): change test text to use `sed' markers
3957 * fixinc/fixincl.x: regen
3959 Fri May 19 06:49:35 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3961 * config/elfos.h (SELECT_SECTION): Don't access DECL_INITIAL of
3964 2000-05-18 Chris Demetriou <cgd@sibyte.com>
3966 * gcc.texi (MULTILIB_EXCEPTIONS): Correct example and update
3967 it to match the current practice.
3969 2000-05-18 Mark Mitchell <mark@codesourcery.com>
3971 * Makefile.in (STAGESTUFF): Fix typo in spelling of s-under.
3973 2000-05-18 Richard Henderson <rth@cygnus.com>
3975 * rtlanal.c (insn_dependant_p, insn_dependant_p_1): New.
3976 * rtl.h (insn_dependant_p): Declare it.
3977 * loop.c (strength_reduce): Use it.
3979 2000-05-18 Alexandre Oliva <aoliva@cygnus.com>
3981 * config/mn10300/mn10300.c (expand_prologue, expand_epilogue):
3982 16-bit and 64-bit clean-up.
3984 2000-05-18 Mark Elbrecht <snowball3@bigfoot.com>
3986 * configure.in (*-pc-msdosdjgpp): Set float_format to none.
3987 * configure: Rebuilt.
3989 2000-05-18 Zack Weinberg <zack@wolery.cumb.org>
3991 * genopinit.c: Use $ for escape sequences in optab patterns.
3992 Remove backslashes from optab patterns. Change $A, $B, $C to
3993 expand to (int) whatever instead of just whatever; remove
3994 explicit (int) from all optab patterns.
3996 * gensupport.c (xmalloc, xrealloc, xstrdup): Provide.
3997 * genattr.c, genattrtab.c, gencodes.c, genconfig.c, genemit.c,
3998 genextract.c, genflags.c, genopinit.c, genoutput.c, genpeep.c,
3999 genrecog.c: Remove private copies of xmalloc, xrealloc, and
4002 2000-05-18 Richard Henderson <rth@cygnus.com>
4004 * jump.c (jump_optimize_1): Base minimum insn count during
4005 find_cross_jump on BRANCH_COST.
4007 2000-05-18 Jakub Jelinek <jakub@redhat.com>
4009 * print-rtl.c (print_rtx): Only print note line number as string
4010 if between NOTE_INSN_BIAS and NOTE_INSN_MAX.
4011 * final.c (final_scan_insn): Do nothing for note line number 0.
4013 2000-05-18 Jakub Jelinek <jakub@redhat.com>
4015 * gcc-common.c (ggc_mark_rtx_children): Mark NOTE_EXPECTED_VALUE
4016 from NOTE_INSN_EXPECTED_VALUE notes and NOTE_SOURCE_FILE from
4017 NOTE_INSN_DELETED_LABEL.
4019 2000-05-18 Nick Clifton <nickc@cygnus.com>
4021 * config/arm/unknown-elf.h (UNIQUE_SECTION): Place constant,
4022 uninitialised data in .rodata not .bss, and do not interpret an
4023 error in the initialisation value as meaning that the variable
4024 should be placed in the .bss section.
4026 Thu May 18 12:10:18 2000 Philippe De Muyter <phdm@macqel.be>
4028 * configure.in (NO_MINUS_C_MINUS_O): Test `$ac_cv_prog_cc_${ac_cc}_c_o',
4029 not `$ac_cv_prog_cc_cc_c_o'.
4030 * configure: Regenerated.
4032 2000-05-18 Chris Demetriou <cgd@sibyte.com>
4033 Richard Henderson <rth@cygnus.com>
4035 * c-common.h (enum c_tree_index): Add g77 type entries.
4036 (g77_integer_type_node, g77_uinteger_type_node): New.
4037 (g77_longint_type_node, g77_ulongint_type_node): New.
4038 * c-decl.c (init_decl_processing): Initialize them.
4040 2000-05-18 Richard Henderson <rth@cygnus.com>
4042 * config/h8300/h8300.md (subs patterns): Use %G to negate.
4044 * config/h8300/h8300.c (ok_for_bclr): Take a HOST_WIDE_INT.
4045 (small_power_of_two): Likewise; use exact_log2.
4046 (adds_subs_operand, one_insn_adds_subs_operand): Remove.
4047 (output_adds_subs): Remove.
4048 (two_insn_adds_subs_operand): New.
4049 (split_adds_subs): New.
4050 * config/h8300/h8300-protos.h: Update.
4051 * config/h8300/h8300.h (CONST_OK_FOR_J): Cast to uns HOST_WIDE_INT.
4052 (CONST_OK_FOR_L): Match strict adds operands.
4053 (CONST_OK_FOR_N): Match struct subs operands.
4054 * config/h8300/h8300.md (adds_subs insns): Remove.
4055 (addhi patterns): Output adds/subs directly.
4056 (addsi_h8300h): Likewise.
4057 (addhi/addsi splitters): New. Decompose two_insn_adds_subs_operand.
4059 2000-05-18 Zack Weinberg <zack@wolery.cumb.org>
4061 * cppexp.c (parse_assertion): New.
4062 (lex): Call it for CPP_HASH. Remove CPP_ASSERTION case.
4063 (_cpp_parse_expr): Remove case '#'. Don't set
4064 parsing_if_directive.
4065 * cpphash.c (collect_objlike_expansion,
4066 collect_funlike_expansion, collect_params,
4067 _cpp_create_definition): The list no longer has a trailing
4069 * cpphash.h (enum node_type): Add T_ASSERTION.
4070 (struct hashnode): Remove aschain, add pred.
4071 (struct predicate): New.
4074 * cpplex.c (expand_token_space): Handle both offset and
4076 (init_token_list, _cpp_free_token_list, _cpp_parse_assertion): Delete.
4077 (_cpp_init_toklist, _cpp_clear_toklist, _cpp_free_toklist,
4078 _cpp_slice_toklist, _cpp_squeeze_toklist, _cpp_equiv_tokens,
4079 _cpp_equiv_toklists): New.
4080 (_cpp_scan_line): Rename to _cpp_scan_until; add ability to
4081 stop at any single-character token, not just newline.
4082 (_cpp_lex_token): Remove special cases for #define and #if.
4083 (cpp_get_token): Expect # as a separate token type. Remove
4085 (_cpp_get_directive_token): Remove DIRECTIVE case.
4086 (_cpp_lex_line, _cpp_lex_file, _cpp_init_input_buffer): Update.
4088 * cpplib.c (_cpp_check_directive): Set dirno and
4089 SYNTAX_INCLUDE bit of flags, not dir_handler and dir_flags.
4090 (_cpp_handle_directive): Run # <number> through the same logic
4091 as normal directives.
4092 (do_define): Don't set parsing_define_directive. Use
4093 _cpp_scan_until. The list does not have a VSPACE at the end.
4094 (do_if): Save, clear, and restore only_seen_white around
4096 (skip_if_group): s/CPP_DIRECTIVE/CPP_HASH/
4097 (do_assert, do_unassert): Rewrite.
4099 * cpplib.h (TTYPE_TABLE): Remove CPP_ASSERTION.
4100 (LIST_OFFSET): New flag.
4101 (struct cpp_toklist): Replace dir_handler and dir_flags with
4103 (struct cpp_reader): Remove parsing_if_directive and
4104 parsing_define_directive.
4106 2000-05-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4108 * fixinc/inclhack.def (broken_cabs): Update fix to handle comments
4109 following the cabs decl which terminate on the following line.
4110 Add the corresponding test_text case.
4112 2000-05-18 Neil Booth <NeilB@earthling.net>
4114 * cppinit.c (cpp_reader_init): Initialise col_adjust and
4115 default tab stop size.
4116 (no_num, OPT_ftabstop): New.
4117 (handle_option): Handle "ftabstop=" command-line option.
4118 (print_help): Document it.
4119 * cpplex.c (COLUMN): Remove.
4120 (handle_newline): Reset col_adjust.
4121 (skip_whitespace): Update col_adjust as tabs encountered.
4122 (_cpp_lex_line): Update to use col_adjust. Call
4123 skip_whitespace for all whitespace.
4124 * cpplib.h (struct cpp_options): New member tabstop.
4125 (struct cpp_reader): New member col_adjust.
4126 (CPP_BUF_COL): Update.
4127 (CPP_BUF_COLUMN): New.
4128 * cpp.texi: Document "-ftabstop=" command line option.
4130 Wed May 17 18:19:41 2000 Philippe De Muyter <phdm@macqel.be>
4132 * configure.in (NO_MINUS_C_MINUS_O): Macro made availabe for AC_OUTPUT
4134 * configure: Rebuilt.
4136 Wed May 17 18:06:12 2000 John David Anglin <dave@hiauly1.hia.nrc.ca>
4138 * mklibgcc.in Add missing -DL$name when compiling modules in libgcc1.c.
4140 * tree.c (build_common_tree_nodes): Do not build TI nodes unless
4141 HOST_BITS_PER_WIDE_INT is >= 64.
4143 2000-05-17 Richard Henderson <rth@cygnus.com>
4145 * jump.c (jump_optimize_1): Remove inactive but real insns
4146 in jump-to-next-insn optimization.
4148 2000-05-17 Richard Henderson <rth@cygnus.com>
4150 * toplev.c (rest_of_compilation): Don't call optimize_mode_switching
4151 unless OPTIMIZE_MODE_SWITCHING. Conditionally set no_new_pseudos.
4152 Don't call recompute_reg_usage if no_new_pseudos is true.
4153 * lcm.c (optimize_mode_switching): Move ifdefs outside function.
4154 Return true if we did work; update global life information.
4155 * basic-block.h (optimize_mode_switching): Update decl.
4157 2000-05-17 Neil Booth <neilb@earthling.net>
4159 * cpplex.c (expand_name_space): Don't use ptrdiff_t.
4161 2000-05-17 Zack Weinberg <zack@wolery.cumb.org>
4163 * cpplib.c: New feature, #pragma system_header.
4164 * cpp.texi: Document special treatment of system headers, and
4165 the various mechanisms to get a header that special treatment.
4167 2000-05-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4169 * system.h (offsetof): Define at the very end, to ensure we prefer
4170 the platform's definition if available.
4172 2000-05-16 Bruce Korb <bkorb@gnu.org>
4174 * fixinc/fixincl.c: improve the debug displays, ignore SIGPIPE
4175 * fixinc/server.c: likewise
4176 * fixinc/fixfixes.c( char_macro_def_fix ): fix regex
4177 + #ifdef debugging code + use #def constant for
4179 * fixinc/inclhack.def( hpux11_fabsf ): Keep HP-UX 11 from stomping
4180 on C++ math namespace
4182 2000-05-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4184 * fixinc/fixfixes.c (char_macro_use_fix, char_macro_def_fix):
4185 Don't check the return value of sprintf. Use asprintf to avoid
4188 Wed May 17 17:27:44 2000 Andrew Cagney <cagney@b1.cygnus.com>
4190 * flags.h (warn_unused_function, warn_unused_label,
4191 warn_unused_parameter, warn_unused_variable, warn_unused_value):
4192 Replace ``warn_unused''.
4193 (set_Wunused): Add declaration.
4194 * toplev.c (set_Wunused): New function.
4195 (warn_unused_function, warn_unused_label, warn_unused_parameter,
4196 warn_unused_variable, warn_unused_value): New variables.
4197 (W_options): Add -Wunused-function, -Wunused-function,
4198 -Wunused-label, -Wunused-parameter, -Wunused-variable and
4199 -Wunused-value. Delete -Wunused. Handled in decode_W_option.
4201 * toplev.c (decode_W_option): Update -Wunused flags by calling
4203 * c-decl.c (c_decode_option): Ditto for -Wall.
4205 * stmt.c (expand_expr_stmt, expand_expr_stmt,
4206 warn_about_unused_variables): Replace warn_unused with more
4207 explicit warn_unused_value et.al.
4208 * function.c (expand_function_end): Ditto.
4209 * c-typeck.c (internal_build_compound_expr,
4210 internal_build_compound_expr): Ditto.
4211 * c-decl.c (poplevel, pop_label_level): Ditto.
4212 * toplev.c (check_global_declarations): Replace warn_unused with
4213 check for either warn_unused_function or warn_unused_variable.
4215 * gcc.1, invoke.texi (Warning Options): Document
4216 -Wunused-function, -Wunused-function, -Wunused-label,
4217 -Wunused-parameter, -Wunused-variable and -Wunused-value options.
4219 Wed May 17 10:28:12 2000 Philippe De Muyter <phdm@macqel.be>
4221 * mklibgcc.in (building libgcc1) [Xlibgcc1.a]: Find libgcc1.c in
4222 $(srcdir), not in the current directory.
4224 2000-05-16 Richard Henderson <rth@cygnus.com>
4226 * config/ia64/crtbegin.asm (__dso_handle): Mark hidden if the
4227 assembler supports it.
4228 (.fini, .init): Use a gp-relative indirect call.
4229 (__do_global_dtors_aux): Preserve the gp; rebundle.
4230 (__do_frame_setup): Likewise.
4231 * config/ia64/crtend.asm (.IA_64.unwind): Don't terminate with -1.
4232 (.init): Use a gp-relative indirect call.
4233 (__do_global_ctors_aux): Preserve the gp.
4235 2000-05-16 Richard Henderson <rth@cygnus.com>
4237 * flow.c (commit_one_edge_insertion): Be prepared for a return
4238 insn to be inserted on the edge with a normal jump.
4239 * jump.c (jump_optimize_1): Don't look to create return isns.
4241 * flow.c (flow_delete_insn): Don't adjust reference count of notes.
4242 * jump.c (jump_optimize_1): Likewise.
4243 (returnjump_p): Verify the argument is a JUMP_INSN.
4244 * rtl.def (NOTE): Add 5th element for NOTE_INSN_DELETED_LABEL.
4246 2000-05-16 Nick Clifton <nickc@cygnus.com>
4248 * config/m32r/m32r.c (small_insn_p): Use INSN_P() to replace
4249 GET_RTX_CLASS (GET_CODE ()) == 'i'.
4250 (large_insn_p): Ditto.
4251 (m32r_is_insn): New function: Return true if the insn contains
4252 an executable instruction.
4253 (m32r_adjust_insn): Use m32r_is_insn.
4254 (m32r_sched_reorder): Use m32r_is_insn.
4255 (m32r_sched_variable_issue): Use m32r_is_insn.
4257 2000-05-16 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4259 * rs6000/rs6000.c (rs6000_select_section): Treat CONSTRUCTOR like
4262 * rs6000/sysv4.h (ASM_OUTPUT_DWARF_ADDR): Delete unused variable.
4264 * rs6000/sysv4.h (CPP_OS_LINUX_SPEC): Define __unix and __linux
4265 according to given options.
4267 Tue May 16 12:17:31 2000 Jeffrey A Law (law@cygnus.com)
4269 * mn10200.h (PREFERRED_RELOAD_CLASS): Do not prefer DATA_REGS
4270 if X has VOIDmode either.
4271 (LIMIT_RELOAD_CLASS): Similarly.
4273 * mn10200.md (indirect_jump, tablejump): Use "register_operand",
4274 not "general_operand" to match the processor's capabilities.
4276 2000-05-16 Bruce Korb <bkorb@gnu.org>
4278 * fixinc/README: corrected return address
4279 * fixinc/check.diff: regenerate, now that test works
4280 * fixinc/fixfixes.c(format_fix,format_write): reformatted
4281 (char_macro_def_fix,char_macro_use_fix): corrected and
4282 rewrote to use regex to parse the text
4283 * fixinc/inclhack.def: more testing
4284 * fixinc/fixincl.x: regenerated
4286 * fixinc/inclhack.def: added several "test_text" attributes
4287 changed several fixes to use `c_fix = format'
4288 re-alphabetized the fixes
4290 * fixinc/check.diff: regenerate
4291 * fixinc/fixincl.x: regenerate
4292 * fixinc/check.tpl: added `sparc' and `netinet' to the list
4296 2000-05-16 Alexandre Oliva <aoliva@cygnus.com>
4298 * config/mn10300/mn10300.h (ASM_OUTPUT_DWARF2_ADDR_CONST): Remove.
4300 2000-05-15 Richard Henderson <rth@cygnus.com>
4302 * toplev.c (rest_of_compilation): Run full jump pass before
4303 find_basic_blocks of flow2.
4305 2000-05-15 Richard Henderson <rth@cygnus.com>
4307 * jump.c: Fix typos and clarify commentary from last change.
4308 (any_condjump_p): Verify SET_SRC is an IF_THEN_ELSE.
4309 (safe_to_remove_jump_p): Remove.
4310 (condjump_label): Use pc_set.
4312 2000-05-15 Richard Henderson <rth@cygnus.com>
4314 * ifcvt.c (cond_exec_process_insns): Drop USE and CLOBBER insns
4315 that get in the way after reload.
4316 (cond_exec_process_if_block): Skip a label heading THEN block.
4318 2000-05-15 Richard Henderson <rth@cygnus.com>
4320 * varasm.c (output_constant_pool): Abort instead of converting
4321 (improperly) deleted labels to zero.
4323 2000-05-16 Neil Booth <NeilB@earthling.net>
4325 * cpplex.c (parse_string2): Update comment.
4326 (cpp_lex_line): No special assertion treatment for '('.
4327 * cpplib.c (DIRECTIVE_TABLE): Remove SYNTAX_ASSERT.
4328 * cpplib.h (SYNTAX_ASSERT): Remove.
4330 Mon May 15 21:45:36 MET DST 2000 Jan Hubicka <jh@suse.cz>
4332 * jump.c (condjump_p): Mark as depreached.
4333 (any_condump_p): New.
4334 (any_uncondump_p): New.
4336 (safe_to_remove_jump_p): New.
4337 * rtl.h (any_condump_p, any_uncondjump_p, pc_set
4338 safe_to_remove_jump_p): Declare.
4340 Mon May 15 21:07:20 MET DST 2000 Jan Hubicka <jh@suse.cz>
4342 * calls.c: Re-install both patches reverted by last patch.
4343 (struct arg_data): New field tail_call_reg.
4344 (initialize_argument_information): Initialize tail_call_reg
4345 (load_register_parameters): New argument flags, use
4346 tail_call_reg when emiting tail call sequence.
4347 (expand_call): Update call of load_register_parameters;
4348 copy unadjusted_args_size to adjusted_args_size.
4350 Mon May 15 19:01:42 MET DST 2000 Jan Hubicka <jh@suse.cz>
4352 * loop.c (scan_loop, strength_reduce, loop_optimize): Change unroll_p
4353 and bct_p parameters to flags.
4354 * loop.h (LOOP_UNROLL, LOOP_BCT): New constants.
4355 * rtl.h (loop_optimize): Update prototype.
4356 * toplev.c (rest_of_compilation): Update call of loop_optimize.
4358 2000-05-15 Jakub Jelinek <jakub@redhat.com>
4360 * calls.c (expand_call): Move expand_start_target_temps call after
4363 2000-05-15 Neil Booth <NeilB@earthling.net>
4365 * cpphash.c (trad_stringify, warn_trad_stringify,
4366 collect_params): Make some pointers pointers to const.
4367 * cpplex.c (auto_expand_name_space) Guaranteed to always
4368 expand by at least one character.
4369 (SPELL_CHAR, SPELL_NONE): Temporarily reverse order.
4370 (struct token_spelling): Use const U_CHAR * rather than PTR.
4371 (expand_name_space): Fix up token pointers if name space
4372 is moved when expanding.
4373 (INIT_NAME, cpp_scan_line, parse_name, parse_number,
4374 parse_string2, save_comment, spell_token, cpp_output_list):
4375 Update so the routines handle tokens with a direct pointer to
4376 their text, rather than an offset into the token's list's namebuf.
4377 (_cpp_lex_line): Rearrange for clarity.
4379 * cpplib.c (_cpp_check_directive): Similarly.
4380 (do_define): Make SYM a pointer to const.
4381 * cpplib.h (struct cpp_name): Replace offset with direct pointer.
4382 (CPP_INT, CPP_FLOAT): Spelling type should be SPELL_IDENT.
4383 (TOK_OFFSET): Delete.
4386 2000-05-14 Geoffrey Keating <geoffk@cygnus.com>
4388 * config/rs6000/rs6000.h (RETURN_ADDRESS_OFFSET): Correct for
4391 * config/rs6000/rs6000.c (logical_operand): Rewrite to take MODE
4393 (logical_u_operand): Delete.
4394 (non_logical_cint_operand): Rewrite to take MODE into account.
4395 (non_logical_u_cint_operand): Delete.
4396 (boolean_operator): New function.
4397 (print_operand): Add new %q operand.
4398 * config/rs6000/rs6000.h (PREDICATE_CODES): Add boolean_operator,
4399 remove logical_u_operand and non_logical_u_cint_operand,
4400 update logical_operand and non_logical_cint_operand.
4401 * config/rs6000/rs6000.md: Rewrite the patterns for performing
4402 logical operations to use %q.
4404 * config/rs6000/rs6000.md (movsi): Don't modify RTL in-place.
4405 (movdi): Make similar to movsi.
4406 * config/rs6000/rs6000.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): There
4407 is no such thing as a DImode CONST_DOUBLE.
4408 * config/rs6000/rs6000.c (output_toc): Likewise.
4410 * config/rs6000/rs6000.c (output_cbranch): Don't output prediction
4411 codes when old mnemonics are in use. Print register names
4412 for cc registers when requested.
4414 * optabs.c (expand_float): Don't allow mode widening that causes
4417 * invoke.texi (RS/6000 and PowerPC Options): Update -m64/-m32
4418 flags to their current names -maix64 and -maix32.
4420 2000-05-14 Bruce Korb <bkorb@gnu.org>
4422 * fixinc/fixfixes.c(wrap_fix): new fix - inserts text before
4423 and/or after current text of file
4424 * fixinc/fixlib.c(must_malloc):
4425 * fixinc/fixlib.h(must_malloc): + reformatting
4426 * fixinc/inclhack.def: replace the "1i" and "$a" sed commands
4427 with usages of ``c_fix = wrap;''
4428 Add several tests and use the ``c_fix = format'' fixer more.
4429 * fixinc/fixincl.x: regen
4430 * fixinc/check.diff: regen
4431 * fixinc/check.tpl: emit the associated header with the missing
4434 Sun May 14 17:58:59 2000 Hans-Peter Nilsson <hp@axis.com>
4436 * mklibgcc.in (building libgcc1) [Xlibgcc1.a]: Do not use unset
4437 variables $src and $dst.
4439 2000-05-13 Gabriel Dos Reis <gdr@codesourcery.com>
4441 * diagnostic.h (DIAGNOSTICS_SHOW_PREFIX_ONCE): New macro.
4442 (DIAGNOSTICS_SHOW_PREFIX_NEVER): Likewise.
4443 (DIAGNOSTICS_SHOW_PREFIX_EVERY_LINE): Likewise.
4444 (struct output_buffer: emitted_prefix_p, prefixing_rule): New
4446 (set_message_prefixing_rule): Declare.
4448 * diagnostic.c: (current_prefixing_rule): New variable.
4449 (set_message_prefixing_rule): Define.
4450 (output_set_prefix): Adjust buffer->emitted_prefix_p.
4451 (init_output_buffer): Adjust Initialization.
4452 (output_emit_prefix): Rewrite. Take prefixing rules into account.
4454 Sat May 13 11:05:47 2000 Philippe De Muyter <phdm@macqel.be>
4456 * ifcvt.c (if_convert): Do not free NULL.
4458 2000-05-12 Nick Clifton <nickc@cygnus.com>
4460 * config/fr30/fr30.c (fr30_move_double): New function: Emit code
4461 to move a double word value.
4462 (di_operand): New function: Return true if the operand is suitbale
4463 for a double word move operation.
4464 (nonimmediate_di_operand): New function: Return true if the
4465 operand is a DImode register or MEM.
4467 * config/fr30/fr30.h (PREDICATE_CODES): Add di_operand and
4468 nonimmediate_di_operand.
4470 * config/fr30/fr30-protos.h Add fr30_move_double, di_operand, and
4471 nonimmediate_di_operand.
4473 * config/fr30/fr30.md (movdi): New pattern. Required because
4474 other patterns generate DImode results.
4475 (movdi_insn): New pattern.
4477 2000-05-12 Richard Henderson <rth@cygnus.com>
4479 * config/alpha/alpha.c (struct shadow_summary): Define
4480 bitfields as type unsigned int.
4482 Sat May 13 00:09:59 2000 Denis Chertykov <denisc@overta.ru>
4484 * config/avr/t-avr: Added definition of FLOAT while generates
4487 * config/avr/avr.md: `NEXT_INSN (insn)' substituted to `insn' in
4488 peepholes for tst+jump = sbrs/sbrc optimization.
4490 Fry May 12 20:03:00 CEST 2000 Jan Hubicka <jh@suse.cz>
4492 * expr.c (emit_push_insn): Do not adjust stack pointer when
4495 Fri May 12 19:03:58 2000 Philippe De Muyter <phdm@macqel.be>
4497 * ggc-simple.c (offsetof): Macro fallback definition moved from here ..
4498 * system.h (offsetof): ... to here.
4500 2000-05-12 Richard Henderson <rth@cygnus.com>
4502 * Makefile.in (final.o): Depend on BASIC_BLOCK_H.
4503 * final.c (final_end_function): Use app_disable. Rearrange note
4504 handling into a switch. Emit deleted labels.
4505 (output_asm_label): Generate label strings for deleted labels.
4506 * flow.c (tail_recursion_label_list): New.
4507 (find_basic_blocks_1): Set label_value_list directly. Collect list
4508 of tail recursion labels from call_placeholders. Don't add deleted
4509 labels to the label value list.
4510 (cleanup_cfg): Use free_EXPR_LIST_list.
4511 (flow_delete_insn_chain): Turn non-removable labels into notes.
4512 (flow_delete_block): Don't disable deleting the block because of
4513 a non-removable label.
4514 (tail_recursion_label_p): New.
4515 (merge_blocks_move_predecessor_nojumps): Don't disable the merge
4517 (merge_blocks_move_successor_nojumps): Likewise. Also move a
4519 (merge_blocks): Disable a merge because of tail recursion labels.
4520 * ifcvt.c (merge_if_block): Don't disable a merge because of a label.
4521 Use a more accurate measure of not merging the join block.
4522 (find_if_block): Don't disable conversion because of a label.
4523 (find_if_case_1, find_if_case_2): Likewise.
4524 * jump.c (duplicate_loop_exit_test): Preserve the kind of list
4525 element when copying.
4526 (squeeze_notes): Also leave EH notes.
4527 (mark_jump_label): Ignore deleted labels. Use an INSN_LIST for
4529 (delete_insn): Preserve LABEL_NAME in NOTE_SOURCE_FILE when
4531 * print-rtl.c (print_rtx): Print NOTE_SOURCE_FILE for
4532 NOTE_INSN_DELETED_LABEL. Print `[# deleted]' for a label_ref
4533 referring to a deleted label. Convert tail handling to a switch.
4534 * rtl.def (CODE_LABEL): Rearrange elements to be compatible with NOTE
4535 for NOTE_INSN_DELETED_LABEL.
4536 (NOTE): Fix commentary.
4537 * rtl.h (REG_LABEL): Update commentary wrt INSN_LIST.
4538 (REG_CC_SETTER, REG_CC_USER, REG_LIBCALL): Likewise.
4539 (CODE_LABEL_NUMBER, LABEL_NAME): Update index.
4540 (LABEL_NUSES, LABEL_REFS): Likewise.
4541 * unroll.c (copy_loop_body): Don't copy NOTE_INSN_DELETED_LABEL.
4543 2000-05-12 Bruce Korb <bkorb@gnu.org>
4545 * fixinc/fixfixes.c(format_write): buglet & relaxed rules
4546 * fixinc/check.diff: updated
4547 * fixinc/inclhack.def: corrected & added some test_text-s
4548 * fixinc/genfixes: removed unneeded options to autogen invocation
4549 * fixinc/fixincl.tpl: Specified the output file
4550 * fixinc/fixfixes.c: visual appearance
4551 * fixinc/fixincl.x: regenerate
4553 2000-05-12 Zack Weinberg <zack@wolery.cumb.org>
4555 * fixinc/fixfixes.c (IO_use_fix, IO_defn_fix, CTRL_use_fix,
4556 CTRL_defn_fix): Delete.
4557 (fix_char_macro_defines, fix_char_macro_uses): Rename to
4558 char_macro_def_fix and char_macro_use_fix, respectively. Put
4559 them into the FIXUP_TABLE. Get the string to search for from
4562 (format_write): New function.
4563 (format_fix): Use it.
4565 (FIX_PROC_HEAD): Constify text parameter.
4566 (machine_name_fix): Constify all char *s.
4567 * fixtests.c (skip_quote): Remove double static.
4569 * inclhack.def (io_def_quotes, io_use_quotes, ctrl_def_quotes,
4570 ctrl_use_quotes): Update for new scheme.
4571 * fixincl.x: Regenerate.
4573 2000-05-12 Alexandre Oliva <aoliva@cygnus.com>
4575 * config/mn10300/mn10300.h (PREFERRED_DEBUGGING_TYPE): Redefine as
4577 (DWARF2_ASM_LINE_DEBUG_INFO): Define.
4578 (ASM_OUTPUT_DWARF2_ADDR_CONST): Define.
4580 2000-05-11 Robert Lipe <robertlipe@usa.net>
4582 * fixinc/inclhack.def (hpux8_bogus_inlines): Delete bypass for SCO.
4583 * fixincl.x: Regenerate.
4585 2000-05-11 Richard Henderson <rth@cygnus.com>
4587 * calls.c: Revert both 05-09 patches.
4589 2000-05-11 Alexandre Oliva <aoliva@cygnus.com>
4591 * config/mn10300/mn10300.c (print_operand): Print FP constants in
4593 * config/mn10300/mn10300.md (movsf, movdf): Use the `F' constraint
4596 * mklibgcc.in (EQ): Define it to an equal sign in the Makefile,
4597 and replace any occurrences of `=' in multilib dirs with `$(EQ)'.
4599 2000-05-11 Jason Merrill <jason@casey.cygnus.com>
4601 * fixinc/fixincl.c (run_compiles): Don't crash on null pz_machine.
4603 2000-05-11 Zack Weinberg <zack@wolery.cumb.org>
4605 * fixinc/fixfixes.c, fixinc/fixtests.c: Update commentary.
4607 Thu May 11 22:28:05 2000 Denis Chertykov <denisc@overta.ru>
4609 * config/avr/avr-protos.c (jump_over_one_insn_p): New declaration.
4610 * config/avr/avr.c (jump_over_one_insn_p): New function.
4611 * config/avr/avr.md: New peepholes added. Output test and
4612 conditional jump to "sbrc" or "sbrs" command.
4614 2000-05-11 Mark Elbrecht <snowball3@bigfoot.com>
4616 * cppmain.c (main): Use IS_DIR_SEPARATOR.
4618 2000-05-11 Jakub Jelinek <jakub@redhat.com>
4620 * except.c (find_exception_handler_labels_1): New function.
4621 (find_exception_handler_labels): Split into two functions, dive
4622 into CALL_PLACEHOLDERs when looking for exception handler labels.
4624 2000-05-11 Stan Cox <scox@cygnus.com>
4626 * regrename.c (replace_reg_in_block): Improve REG_DEAD handling.
4627 * timevar.def (TV_RENAME_REGISTERS): Move before TV_SCHED2.
4628 * toplev.c (rest_of_compilation): Call regrename_optimize before sched2.
4630 2000-05-11 Bruce Korb <bkorb@gnu.org>
4632 * fixinc/fixfixes.c (double_slash_fix): obsolete
4633 (else_endif_label_fix): obsolete
4634 (format_fix): new, unused as yet
4636 * fixinc/fixlib.h: added fix description struct for use by format_fix
4637 * fixinc/fixincl.c: removed the struct & test for SIGIOT befure using
4638 * fixinc/Makefile.in: compile fixfixes.c and fixtests.c as separate
4639 modules. Removed the vestiges of the script version.
4640 Added support for "make check".
4641 * fixinc/check.diff: base diff file (needs work!!)
4642 * fixinc/check.tpl: quiet the fixup output
4643 * fixinc/fixtests.c (main): obsolete
4644 * fixinc/fixincl.sh: don't bother copying fixincl to ..
4645 * fixinc/fixincl.tpl: provide for arguments to c_fix routines
4647 Thu May 11 11:57:02 MET DST 2000 Jan Hubicka <jh@suse.cz>
4649 * toplev.c (rest_of_compilation): Remove dead code after
4652 2000-05-11 Zack Weinberg <zack@wolery.cumb.org>
4654 * cpphash.c (collect_funlike_expansion): Make "# is not
4655 followed by a macro argument name" a pedwarn, not an error.
4656 Preserve the # in the output. Suppress the warning if lang_asm.
4658 Thu May 11 01:19:31 2000 Jeffrey A Law (law@cygnus.com)
4660 * configure.in (hppa*64*-*-hpux11*): New target for PA64 support.
4661 * configure: Rebuilt.
4663 2000-05-10 Laurynas Biveinis <lauras@softhome.net>
4665 * i386/xm-djgpp.h (XREF_FILE_NAME): Add mising brace.
4667 2000-05-10 Kazu Hirata <kazu@hxi.com>
4669 * combine.c (try_combine): Fix a typo.
4671 Wed May 10 21:31:44 2000 Jim Wilson <wilson@cygnus.com>
4673 * config/ia64/ia64.md (insv): Add comment.
4675 2000-05-10 Richard Henderson <rth@cygnus.com>
4677 * Makefile.in (libgcc.a, stmp-multilib): Depend on FPBIT and DPBIT.
4678 * mklibgcc.in: Rewrite to not use functions. Don't shortcut
4679 dependancies on FPBIT and DPBIT.
4681 2000-05-10 Nick Clifton <nickc@redhat.com>
4683 * flow.c (find_auto_inc): Do not bias REG_N_REFS by loop_depth
4684 when optimising for size.
4685 (mark_used_regs:) Ditto.
4686 (try_pre_increment_1): Ditto.
4688 2000-05-10 Zack Weinberg <zack@wolery.cumb.org>
4690 * cppexp.c (lex): Use %.*s to print non-NUL-terminated string.
4691 Make error message friendlier.
4693 * cpphash.h (struct hashnode): Use struct hack for name
4695 * cpphash.c (struct hashdummy): New.
4696 (eq_HASHNODE): Second argument is a hashdummy, not a HASHNODE.
4697 (make_HASHNODE): No need to set ->name pointer. Correct
4699 (cpp_lookup): Make 'dummy' a struct hashdummy. Tidy up a bit.
4701 2000-05-10 Richard Henderson <rth@cygnus.com>
4703 * flow.c (find_basic_blocks_1): Remove any spare bb_note
4706 2000-05-10 Bruce Korb <bkorb@gnu.org>
4708 * fixinc/gnu-regex.c: reg_syntax_t re_syntax_options must be static
4710 2000-05-10 Eric Schweitz <schweitz@nortelnetworks.com>
4712 * dwarfout.c (dwarfout_finish): Call retry_incomplete_types
4713 after we enter .debug.
4715 2000-05-10 Jason Merrill <jason@casey.cygnus.com>
4717 * dwarf2out.c (gen_subprogram_die): Fixup die_parent for the
4718 abstract instance of a nested inline function.
4720 * stor-layout.c (finish_record_layout): finalize_type_size
4721 before laying out the pending_statics.
4723 Wed 10 May 09:36:47 2000 Neil Booth <NeilB@earthling.net>
4725 * cpplex.c (spell_token): New function.
4726 (spell_string, spell_comment, spell_name): fold into
4729 (E, H): Remove macros.
4730 (save_comment): Save comment opening characters too.
4731 (_cpp_lex_file): Update to use spell_token. Tidy up comment
4733 * cpplib.h (I, S): Add macros.
4734 (E, H): Remove macros.
4735 (TTYPE_TABLE): Update entries for new speller.
4736 (SYNTAX_ASSERT): Remove.
4738 Wed 10 May 09:08:30 2000 Neil Booth <NeilB@earthling.net>
4740 * cpplex.c (_cpp_lex_line): Maintain PREV_WHITESPACE flag
4741 when removing escaped newlines. Reverse sense of test for
4744 2000-05-09 Richard Henderson <rth@cygnus.com>
4746 * flow.c (find_basic_blocks_1): Do not delete the first
4747 bb_note we run across.
4748 (create_basic_block): Use reorder_insns to move an existing
4749 bb_note to the correct place.
4751 2000-05-09 Richard Henderson <rth@cygnus.com>
4753 * calls.c (expand_call): Increment currently_expanding_call
4754 before calling optimize_tail_recursion.
4756 Tue May 9 18:54:16 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4758 * reload1.c (reload_combine): Fix errors in last change.
4760 2000-05-09 Zack Weinberg <zack@wolery.cumb.org>
4762 * gcc.c (used_arg): Skip over a semicolon at the end of the
4763 split-up loop; don't break out of it.
4765 * Makefile.in (WARN_CFLAGS): Add -Wwrite-strings.
4766 (tree.o): Depend on output.h.
4768 * c-decl.c (pending_invalid_xref_file,
4769 current_function_prototype_file): Constify.
4770 (pushdecl): Constify a local char *.
4771 (define_label): Constify filename parameter.
4772 * c-lex.c (init_parse): Constify parameter and return value.
4773 * c-typeck.c (c_expand_asm_operands): Constify filename parameter.
4774 * c-tree.h: Update prototypes.
4775 * c-parse.in: Constify filename member of %union, and if_stmt_file.
4776 * c-parse.y, c-parse.c, c-parse.h, objc/objc-parse.y,
4777 objc/objc-parse.c: Regenerate.
4779 * dwarfout.c (dwarfout_init): Constify main_input_filename parameter.
4780 * dwarfout.h: Update prototypes.
4781 * expr.c (expand_expr): Constify a local char *.
4782 * flags.h: Constify main_input_filename.
4783 * function.c (expand_function_end): Constify filename parameter.
4784 * genrecog.c (make_insn_sequence): Use a character array for
4786 (main): Remove unused variables.
4787 * input.h: Constify input_filename, main_input_filename, and
4788 file_stack.name. Update prototypes.
4789 * output.h: Declare first_global_object_name and
4790 weak_global_object_name here, as const char *.
4791 * stmt.c (expand_asm_operands): Constify filename parameter.
4792 * toplev.c (compile_file, push_srcloc, debug_start_source_file):
4793 Constify filename parameter.
4794 (input_filename, main_input_filename): Constify.
4795 * toplev.h: Update prototypes.
4796 * tree.c: Include output.h. Don't declare
4797 first_global_object_name or weak_global_object_name. Clean up string
4798 bashing in get_file_function_name_long.
4799 * tree.h (struct tree_decl): Constify filename member.
4800 (input_filename): Constify.
4802 * varasm.c (first_global_object_name, weak_global_object_name):
4804 (assemble_start_function, assemble_variable): Clean up string bashing.
4806 * gcc.c: Constify all spec-related strings initialized,
4807 transitively, from string constants. Constify all strings
4808 and string variables related to multilibs.
4809 (set_spec, read_specs): Cast argument to free to PTR.
4810 (used_arg): Do not modify multilib_matches. Use strncmp plus
4811 length comparison to compare multilib switches.
4812 * genmultilib: Constify everything declared in multilib.h.
4814 Tue May 9 22:28:03 2000 Denis Chertykov <denisc@overta.ru>
4816 * flow.c (flow_delete_insn): Use INSN_DELETED_P for marking insn
4819 Tue May 9 20:52:43 2000 Denis Chertykov <denisc@overta.ru>
4821 * config/avr/avr-protos.h (extra_constraint): change a type of
4822 second argument from char to int to avoid warnings.
4823 (asm_output_byte): Likewise.
4825 * config/avr/avr.c (MAX_LD_OFFSET) New macro.
4826 (initial_elimination_offset): Handle elimination from
4827 FRAME_POINTER_REGNUM to STACK_POINTER_REGNUM.
4828 (legitimate_address_p): Use MAX_LD_OFFSET.
4829 (legitimize_address): Likewise.
4830 (out_movqi_r_mr): Likewise.
4831 (out_movhi_r_mr): Likewise, use `fatal_insn' instead of `fatal'.
4832 (out_movsi_r_mr): Use MAX_LD_OFFSET.
4833 (out_movsi_mr_r): Likewise.
4834 (out_movqi_mr_r): Likewise.
4835 (out_movhi_mr_r): Likewise.
4836 (notice_update_cc): Correct CC for the ashrqi3 with the shift
4837 count as CONST_INT != 6.
4838 (ashlqi3_out): Coding style modifications. Run `fatal_insn' if
4839 shift count is a CONSTANT_P, but not a CONST_INT.
4840 (ashlhi3_out): Coding style modifications.
4841 (ashlsi3_out): Likewise.
4842 (ashrhi3_out): Likewise.
4843 (ashrsi3_out): Likewise.
4844 (lshrhi3_out): Likewise.
4845 (lshrsi3_out): Likewise.
4846 (ashrqi3_out): Generate shift for any known constant count without
4847 scratch register. Run `fatal_insn' if shift count is a CONSTANT_P,
4848 but not a CONST_INT.
4849 (lshrqi3_out): Coding style modifications. Run `fatal_insn' if
4850 shift count is a CONSTANT_P, but not a CONST_INT.
4851 (extra_constraint): change a type of
4852 second argument from char to int to avoid warnings.
4853 (asm_output_byte): Likewise.
4854 (asm_file_end): Output size generated commands count as a hex
4857 * config/avr/avr.h (RETURN_ADDR_RTX): New macro.
4859 * config/avr/avr.md (addhi3): Fragment commented by &&0 is
4861 (ashlqi3): Values of "length" attribute changed. Shift count
4862 uses constraints 'n' instead of 'i'.
4863 (ashrqi3): Likewise. Values of "cc" attribute changed. Generate
4864 shifts without clobber register.
4865 (lshrqi3): Shift count uses constraints 'n' instead of 'i'.
4866 (call_insn): Correct test for which_alternative == 1 (was 0).
4867 (call_value_insn): Likewise.
4869 * config/avr/t-avr: Remove definition of FLOAT while generates
4872 2000-05-09 Bruce Korb <bkorb@gnu.org>
4874 * fixinc/check.tpl: Template for checking fixes
4875 * fixinc/inclhack.def: Added 'test_text' for many fixes
4876 disable hpux8_bogus_inlines on SCO
4877 * fixinc/fixinc.sco: Oh, yes, we don't need this any more.
4879 Tue May 9 16:30:27 MET DST 2000 Jan Hubicka <jh@suse.cz>
4881 * calls.c (expand_call): Reorganize somewhat in order
4882 to avoid unnecesary recalculation inside loop and make
4883 tail call failure code cleaner.
4885 Tue May 9 06:30:20 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4887 * alias.c (nonlocal_reference_p): Minor reformatting.
4888 * reload.c (find_equiv_reg): Simplify logic for
4889 CALL_INSN_FUNCTION_USAGE since can't have SUBREG or pseudos and
4890 some some reformatting.
4891 * reload1.c (reload_combine): Don't assume everything in
4892 CALL_INSN_FUNCTION_USAGE is a REG and clean up code a bit.
4894 2000-05-08 Richard Henderson <rth@cygnus.com>
4896 * final.c (current_insn_predicate): New.
4897 (final_scan_insn): Set it.
4898 * output.h (current_insn_predicate): Declare.
4900 * ifcvt.c (cond_exec_process_insns): New argument prob_val.
4901 Attach it to call insns.
4902 (cond_exec_process_if_block): Track probability for true and
4904 (dead_or_predicable): Likewise.
4906 * predict.c (PROB_NEVER, PROB_VERY_UNLIKELY): New.
4907 (PROB_UNLIKELY, PROB_EVEN, PROB_LIKELY): New.
4908 (PROB_VERY_LIKELY, PROB_ALWAYS): New.
4909 (estimate_probability, expected_value_to_br_prob): Use them.
4911 * config/ia64/ia64-protos.h (ia64_expand_prediction): Declare.
4912 * config/ia64/ia64.c (ia64_print_operand_address): Handle 'j'.
4913 (ia64_expand_prediction): New.
4914 (emit_insn_group_barriers): Don't look at notes. Emit barriers
4915 as needed after calls.
4916 (ia64_epilogue_uses): Mark b0 used.
4917 * config/ia64/ia64.md (beq_true, beq_false): Remove.
4918 (bne_true, bne_false): Remove.
4919 (eq_return, eq_not_return, ne_return, ne_not_return): Remove.
4920 (br_true, br_false): New. Use predicate_operator and
4921 ia64_expand_prediction.
4922 (return_true, return_false): Likewise.
4923 (call_internal): Use ia64_expand_prediction. Don't emit stop bit.
4924 (call_internal1, call_value_internal): Likewise.
4925 (call_value_internal1, call_multiple_values_internal1): Likewise.
4927 * config/ia64/ia64.c (ia64_direct_return): Require frame size zero.
4929 * config/ia64/ia64.md (extendsfdf2): Split only after reload.
4931 2000-05-08 Richard Henderson <rth@cygnus.com>
4933 * rtlanal.c (may_trap_p): Consider old-style and volatile
4936 Mon May 8 17:16:48 2000 Jim Wilson <wilson@cygnus.com>
4938 * config/ia64/ia64.h (RETURN_ADDR_RTX): Use COUNT not count.
4940 2000-05-08 Richard Henderson <rth@cygnus.com>
4942 * config/ia64/ia64.h (predicate_operator): Declare.
4944 * config/ia64/ia64.md (extendsfdf2): Split the nop case out
4947 * gensupport.c (process_rtx): Copy and post-process each member
4948 of the define_insn rtvec individually.
4950 Mon 8 May 22:17:35 2000 Neil Booth <NeilB@earthling.net>
4952 * cpplex.c (spell_token): New function.
4953 (TOKEN_LEN): Add 1 for whitespace.
4954 (_cpp_lex_file): Update to use spell_token.
4955 * cpplib.h (E): Remove.
4956 (TTYPE_TABLE): Update CPP_VSPACE entry.
4958 2000-05-08 Richard Henderson <rth@cygnus.com>
4960 * flow.c (init_propagate_block_info): Watch out for conditional
4961 branch to next instruction, and thus one outgoing edge.
4963 * config/ia64/ia64.c (ia64_encode_section_info): Exit early
4964 for global register variables; don't special case __[CD]TOR_LIST__;
4965 mind ggc_p for string allocation.
4967 2000-05-08 Nick Clifton <nickc@cygnus.com>
4969 * config/i386/i386.h (ELIMINABLE_REGS): Fix comment.
4971 2000-05-08 Bruce Korb <bkorb@gnu.org>
4973 * fixinc/mkfixinc.sh: fixinc.sco is no longer used
4974 i?86-*-msdosdjgpp* no longer uses fixincludes
4975 * fixinc/genfixes: inclhack.sh and fixincl.sh are no longer generated
4976 * fixinc/inclhack.sh: deleted
4977 * fixinc/hackshell.tpl: deleted
4978 * fixinc/inclhack.tpl: deleted
4979 * fixinc/Makefile.in: Remove dependencies on above
4980 * fixinc/fixincl.sh: "DO NOT EDIT" text modified
4982 2000-05-08 Andreas Jaeger <aj@suse.de>
4984 * config/mips/linux.h: Remove undefines which disabled .ctor/.dtor
4987 2000-05-07 Zack Weinberg <zack@wolery.cumb.org>
4989 * Makefile.in (LOOSE_CFLAGS): Add /g modifiers to both sed
4992 Sun 7 May 08:43:53 2000 Neil Booth <NeilB@earthling.net>
4994 * cpplex.c: Move new lexer definitions and prototypes
4995 to top. Conditional include these and the code if
4996 NEW_LEXER is defined. Rename functions whose names
4997 clash if this code included.
4999 Sun May 7 00:54:57 EDT 2000 John Wehle (john@feith.com)
5001 * rtl.def (COND_EXEC): Clarify.
5003 * i386.md (extendsidi2): Clobber (reg:CC 17) in the
5004 same fashion as zero_extendsidi2.
5006 2000-05-06 Richard Henderson <rth@cygnus.com>
5008 * config/ia64/ia64.c (predicate_operator): New.
5009 (ia64_print_operand): Handle 'J'.
5010 (rtx_needs_barrier): Handle COND_EXEC.
5011 * config/ia64/ia64.h (BRANCH_COST): Define.
5012 (PREDICATE_CODES): Update.
5013 * config/ia64/ia64.md: Docuement used unspec values.
5014 (attr predicable): New.
5015 (movxf, movxf_internal): New.
5016 (extendsfdf2): Don't comment out nop.
5017 (floatdidf2): Remove.
5018 (truncxfsf2, truncxfdf2, floatdixf2): New.
5019 (abssi2, absdi2): Put the neg in the "true" slot.
5020 (conditional branch instructions): Mark not predicable.
5021 (cmov*_internal): Use predicate_operator. Split to cond_exec.
5022 (abs*_internal): Likewise.
5023 (alloc, set_bsp): Mark not predicable.
5024 (barrier, insn_group_barrier, flush_cache): Likewise.
5025 (define_cond_exec): New.
5027 2000-05-06 Richard Henderson <rth@cygnus.com>
5029 * c-decl.c: Include "tm_p.h".
5031 * config/ia64/ia64-protos.h: Rearrange decls to reduce ifdef madness.
5032 (fetchadd_operand, ia64_expand_fetch_and_op): Declare.
5033 (ia64_expand_op_and_fetch): Declare.
5034 * config/ia64/ia64.c: Include "toplev.h". Kill trailing whitespace.
5035 (setjmp_operand): Constify variables for XSTR.
5036 (ia64_encode_section_info): Likewise.
5037 (ia64_print_operand): Use %d for exact_log2; cast 32-bit printed
5039 (ia64_asm_output_external): Constify name.
5040 (process_set): Use HOST_WIDE_INT_PRINT_DEC for frame size.
5041 (process_for_unwind_directive): Provide switch default.
5042 (ia64_expand_compare_and_swap): Remove unused variables.
5043 (ia64_expand_builtin): Likewise.
5044 * config/ia64/ia64.h (ASM_OUTPUT_BYTE): Mask and cast value to int
5047 * config/ia64/ia64.c (sdata_symbolic_operand): Mark unused args.
5048 (symbolic_operand, function_operand, setjmp_operand): Likewise.
5049 (shift_count_operand, shift_32bit_count_operand): Likewise.
5050 (shladd_operand, fetchadd_operand, ia64_function_prologue): Likewise.
5051 (ia64_function_epilogue, ia64_setup_incoming_varargs): Likewise.
5052 (ia64_function_arg_partial_nregs, ia64_function_value): Likewise.
5053 (ia64_print_operand_address, ia64_secondary_reload_class): Likewise.
5054 (ia64_expand_builtin): Likewise.
5055 (call_multiple_values_operation): Make dest_regno unsigned.
5057 2000-05-06 Richard Henderson <rth@cygnus.com>
5059 * rtl.def (DEFINE_COND_EXEC): New.
5060 * md.texi: Document it.
5062 * gensupport.c (input_file): Remove.
5063 (struct queue_elem): Add lineno.
5064 (rtx_ready_queue): Remove.
5066 (predicable_default): New.
5067 (predicable_true, predicable_false): New.
5068 (define_attr_queue, define_attr_tail): New.
5069 (define_insn_queue, define_insn_tail): New.
5070 (define_cond_exec_queue, define_cond_exec_tail): New.
5071 (other_queue, other_tail): New.
5072 (queue_pattern): New.
5073 (process_rtx): Add patterns to the appropriate queues.
5074 (is_predicable, identify_predicable_attribute): New.
5075 (n_alternatives, collect_insn_data): New.
5076 (alter_predicate_for_insn, alter_test_for_insn): New.
5077 (shift_output_template, alter_output_for_insn): New.
5078 (process_one_cond_exec, process_define_cond_exec): New.
5079 (init_md_reader): Read the entire file. Process define_cond_exec.
5080 (read_md_rtx): Return elements from the queues.
5082 2000-05-06 Richard Henderson <rth@cygnus.com>
5084 * flow.c (mark_set_1): Don't update conditional life info
5085 if the register is not_dead.
5087 2000-05-06 Zack Weinberg <zack@wolery.cumb.org>
5089 * Makefile.in (STAGESTUFF): Add genrtl.c and genrtl.h.
5090 (mostlyclean): Also delete fixincl, fixinc.sh, and
5091 specs.ready, and make clean in the fixinc subdir.
5093 2000-05-06 Richard Henderson <rth@cygnus.com>
5095 * Makefile.in (gensupport.o): Compile for the host.
5096 (host-prefix gensuuprt.o): Remove.
5097 (genflags.o): Depend on gensupport.h and OBSTACK_H.
5098 (genattrtab.o): Likewise.
5099 (gencodes.o): Depend on gensupport.h.
5100 (genemit.o, genopinit.o, genrecog.o, genextract.o): Likewise.
5101 (genpeep.o, genattr.o, genoutput.o): Likewise.
5103 * gensupport.c (obstack, rtl_obstack): New.
5104 (init_md_reader): Initialize rtl_obstack.
5105 * gensupport.h (rtl_obstack): Declare.
5106 (message_with_line): Declare.
5108 * genattr.c: Remove all traces of obstack manipulation.
5109 * gencodes.c, genconfig.c, genemit.c, genextract.c: Likewise.
5110 * genopinit.c, genoutput.c, genpeep.c, genrecog.c: Likewise.
5112 * genattrtab.c (obstack, rtl_obstack): Remove.
5113 (main): Don't init rtl_obstack.
5114 * genflags.c: Likewise.
5116 * genrecog.c (message_with_line): Move ...
5117 * gensupport.c: ... here.
5119 2000-05-06 Richard Henderson <rth@cygnus.com>
5121 * c-typeck.c (build_c_cast): Remove dead code.
5123 2000-05-06 Richard Henderson <rth@cygnus.com>
5125 * flow.c (split_edge): Don't allocate global_live_at_start for
5126 the new block unless the old blocks had them as well.
5128 * flow.c (mark_set_1): Respect not_dead when updating reg_live.
5130 * ifcvt.c (noce_process_if_block): Don't use an insn_b from
5131 test_bb if a or b uses x.
5133 2000-05-06 Zack Weinberg <zack@wolery.cumb.org>
5135 * cpphash.h: Remove conditional #define of __extension__.
5136 * rtl.h: Add __extension__ to RTL_CHECK1, RTL_CHECK2,
5137 RTL_CHECKC1, RTL_CHECKC2, and RTVEC_ELT macros
5138 (ENABLE_RTL_CHECKING only).
5139 * tree.h: Add __extension__ to TREE_CHECK, TREE_CLASS_CHECK,
5140 CST_OR_CONSTRUCTOR_CHECK, and EXPR_CHECK macros
5141 (ENABLE_TREE_CHECKING only).
5142 * varray.h: Add __extension__ to VARRAY_CHECK macro
5143 (ENABLE_CHECKING only).
5145 2000-05-06 Richard Earnshaw (reanrsha@arm.com)
5147 Use new tail-calling mechanism on ARM.
5148 * arm.md (sibcall, sibcall_value): New expands.
5149 (sibcall_insn, sibcall_value_insn, sibcall_epilogue): New insns.
5150 (tailcalling peepholes): Delete.
5151 (push_multi): Simplify.
5152 * arm.c (lr_save_eliminated): Delete definition.
5153 (pattern_really_clobbers_lr, function_really_clobbers_lr): Delete.
5154 (output_return_instruction): Remove checks on lr_save_eliminated.
5155 (output_arm_prologue): Remove old tail-calling code.
5156 (arm_output_epilogue): New parameter, really_return. All callers
5157 changed. Handle tail-calling epilogues.
5158 * arm.h (lr_save_eliminated): Delete declaration.
5159 (frame_pointer_needed): Delete declaration.
5160 * arm-protos.h (arm_output_epilogue): Adjust prototype.
5162 * arm.md (is_thumb): Examine symbol thumb_code, not expression
5164 * arm.c (thumb_code): Define it.
5165 (arm_override_options): Set it.
5166 * arm.h (thumb_code): Declare it.
5168 2000-05-06 Richard Earnshaw (reanrsha@arm.com)
5170 * arm-protos.h (arm_dllexport_name_p, arm_dllimport_name_p): Constify.
5172 2000-05-06 Richard Earnshaw (reanrsha@arm.com)
5174 * arm.c (arm_gen_load_multiple, arm_gen_store_mulitple): Don't add
5175 bogus clobber to insns.
5176 (load_multiple_operation, store_mulitple_operation): Don't check
5178 * arm.md (ldmsi_postinc, stmsi_postinc): Adjust accordingly.
5180 * arm.md (and_scc, ior_scc): Add missing mode.
5182 * arm.md (call_value_symbol): Remove predicate from op2.
5184 * arm.h (SPECIAL_MODE_PREDICATES): Define.
5186 Sat May 6 06:25:56 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5188 * expr.c (get_subtarget): New function.
5189 (force_operand, expand_expr, do_store_flag): Use it.
5191 * toplev.c (compile_file): Don't take strlen of NAME if null.
5193 2000-05-06 David Edelsohn <edelsohn@gnu.org>
5195 * xcoffout.c (xcoff_current_include_file,
5196 xcoff_current_function_file, xcoff_lastfile): Constify char *.
5197 (xcoffout_source_file, xcoffout_source_line): Make filename 'const
5199 (xcoffout_declare_function): Make name 'const char *'.
5200 (xcoffout_end_epilogue): Make fname 'const char *'
5201 * xcoffout.h (xcoff_current_include_file, xcoff_lastfile,
5202 xcoffout_declare_function, xcoffout_source_line): Match above.
5204 * aix43.h (SUBTARGET_OVERRIDE_OPTIONS): -mpowerpc64 without
5206 * rs6000.c (print_operand): Fix lossage typo.
5207 (output_cbranch): Remove "cr" decoration for now.
5208 * rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Make alias 'const char *'.
5210 Sat May 6 06:55:32 2000 Denis Chertykov <denisc@overta.ru>
5212 * config/avr/avr.c (out_shift_with_cnt): Bugfix for shift by
5215 2000-05-05 Bruce Korb <bkorb@gnu.org>
5217 * fixinc/genfixes: Improve the matching for make target names
5219 2000-05-05 Catherine Moore <clm@cygnus.com>
5221 * c-common.c (decl_attributes): For TYPE_DECLs attach the
5222 attribute to the decl.
5223 * c-decl.c (pushdecl): Propagate the USED attribute to the
5226 2000-05-05 Richard Henderson <rth@cygnus.com>
5228 * rtlanal.c (reg_overlap_mentioned_p): Treat parallels in the
5229 same way emit_group_load does.
5231 2000-05-05 Mark Elbrecht <snowball3@bigfoot.com>
5233 * gcc.c (set_input) [HAVE_DOS_STYLE_FILE_SYSTEM]: Skip drive name.
5235 * toplev.c (output_file_directive): Use IS_DIR_SEPARATOR.
5238 2000-05-05 Rodney Brown <RodneyBrown@mynd.com>
5240 * pa.h (FUNCTION_ARG_ADVANCE): Warning removal.
5242 Fri May 5 10:29:21 2000 Marc Espie <espie@cvs.openbsd.org>
5244 * config/openbsd.h (LINK_SPEC): pass correct flags to ld
5245 to support -shared, on platforms with dynamic libraries.
5247 Fri May 5 10:27:06 2000 Philippe De Muyter <phdm@macqel.be>
5249 * system.h (S_ISBLK): Provide fallback definition.
5251 2000-05-05 Geoff Berry <geoffb@bops.com>
5253 * extend.texi (Extended Asm): Document inability to give asm
5254 statements access to condition codes.
5256 2000-05-05 Marek Michalkiewicz <marekm@linux.org.pl>
5258 * varasm.c (asm_emit_uninitialised): Use 0, not NULL
5259 as arg 2 of UNIQUE_SECTION.
5261 Fri May 5 10:11:41 2000 Jeffrey A Law (law@cygnus.com)
5263 * predict.c: Remove May 4 change.
5264 * bb-reorder.c (make_reorder_chain): Do not perform block movement
5265 if we have predicted the branch at 50-50 probability.
5267 2000-05-05 Richard Henderson <rth@cygnus.com>
5269 * flow.c (init_propagate_block_info): Fix merge error
5270 in HAVE_conditional_execution code.
5272 Fri May 5 07:43:50 2000 Denis Chertykov <denisc@overta.ru>
5274 * config/avr/avr.c (out_shift_with_cnt): Genetare a more optimal
5275 shift cycle for unknown shift count. Also generates dec + brpl.
5276 (ashlqi3_out): Don't generate dec + brpl which now generates by
5277 `out_shift_with_cnt'.
5278 (ashlhi3_out): Likewise.
5279 (ashlsi3_out): Likewise.
5280 (ashrqi3_out): Likewise.
5281 (ashrhi3_out): Likewise.
5282 (ashrsi3_out): Likewise.
5283 (lshrqi3_out): Likewise.
5284 (lshrhi3_out): Likewise.
5285 (lshrsi3_out): Likewise.
5287 2000-05-04 Mark Elbrecht <snowball3@bigfoot.com>
5289 * gcc.c (free_split_directories): Correct typo in explanation
5290 of make_relative_prefix.
5292 2000-05-04 Geoff Keating <geoffk@cygnus.com>
5294 * config/rs6000/rs6000.h (PREDICATE_CODES): Add floating-point
5295 comparison codes to branch_comparison_operator.
5297 2000-05-04 Richard Henderson <rth@cygnus.com>
5299 * ifcvt.c (noce_process_if_block): Always reset X in the A == B case.
5301 2000-05-04 Richard Henderson <rth@cygnus.com>
5303 * Makefile.in (FPBIT_FUNCS): Remove _df_to_usi.
5304 (DPBIT_FUNCS): Remove _sf_to_usi.
5305 (stmp-multilib): Pass LIB1ASMSRC to libgcc.mk.
5307 * ifcvt.c (noce_process_if_block): Fail if A or B modified
5308 between condition and jump.
5310 * libgcc2.c (near eh_context_specific): Comment #endif string.
5311 * longlong.h: Don't use strings with embedded newlines.
5313 2000-05-04 Geoff Keating <geoffk@cygnus.com>
5315 * config/rs6000/rs6000-protos.h: Add output_cbranch.
5316 * config/rs6000/rs6000.c (ccr_bit_negated_p): Delete.
5317 (print_operand): Delete %t and %T codes.
5318 (output_cbranch): New function. Support branch prediction.
5319 * config/rs6000/rs6000.md: Use output_cbranch for
5320 conditional branches and returns.
5322 2000-05-04 Jason Merrill <jason@casey.cygnus.com>
5324 * simplify-rtx.c (simplify_ternary_operation): Cast to unsigned.
5325 * stor-layout.c (place_field): Likewise.
5326 * integrate.h (struct inline_remap): Make regno_pointer_align unsigned.
5327 * expr.c (store_expr): Make align unsigned.
5328 * explow.c (plus_constant_wide): Make low words unsigned.
5329 * expmed.c (choose_multiplier): Likewise.
5330 * fold-const.c (fold): Likewise.
5331 * tree.h (build_int_2): Likewise.
5332 * tree.c (build_int_2_wide, tree_int_cst_msb): Likewise.
5333 * emit-rtl.c (gen_reg_rtx): Add cast to unsigned char*.
5334 (init_emit): Change cast to unsigned char*.
5335 * varasm.c (compare_constant_1): Add cast to char*.
5336 * gcse.c (delete_null_pointer_checks): Change cast to unsigned int*.
5337 * reload1.c (reload): Likewise.
5339 * rtl.h (MEM_SET_IN_STRUCT_P): Use do { } while (0).
5341 Thu May 4 14:37:23 2000 Jeffrey A Law (law@cygnus.com)
5343 * predict.c (estimate_probability): If no prediction was found, then
5344 predict the successor that is the next physical block (if such a
5347 2000-05-04 Richard Henderson <rth@cygnus.com>
5349 * config/alpha/t-alpha (LIB2FUNCS_EXTRA): Use qrrnd.asm in place.
5351 2000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5353 * system.h: Don't wrap <sys/types.h> with HAVE_SYS_TYPES_H.
5355 2000-05-04 Mumit Khan <khan@xraylith.wisc.edu>
5357 * i386/cygwin.h (CPP_PREDEFINES): Don't define __STDC__. Move
5358 attribute macros from here ...
5359 (CPP_SPEC): to here.
5360 * i386/mingw32.h (CPP_PREDEFINES): Likewise.
5361 (CPP_SPEC): Likewise.
5362 * i386/crtdll.h (CPP_PREDEFINES): Delete attribute macros.
5364 * Makefile.in ($(HOST_PREFIX_1)gensupport.o): Add build rule.
5365 (libgcc.a): Pass LIB1ASMSRC to libgcc.mk.
5367 2000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5369 * bb-reorder.c (get_next_bb_note, get_prev_bb_note): Prototype.
5371 * diagnostic (vbuild_message_string, build_message_string,
5372 build_location_prefix, output_get_prefix, init_output_buffer,
5373 output_notice, vline_wrapper_message_with_location,
5374 v_message_with_decl, default_print_error_function): De-constify.
5375 (set_real_maximum_length): Prototype.
5377 * diagnostic.h (struct output_buffer, init_output_buffer,
5378 output_get_prefix, output_set_prefix): De-constify.
5380 * function.c (init_function_start): Constify.
5382 * gensupport.c (remove_constraints, process_rtx): Prototype.
5384 * gthr-posix.h: Indent uses of #pragma.
5386 * objc/objc-act.c (ggc_mark_imp_list, ggc_mark_hash_table):
5389 * predict.c (find_expected_value): Delete prototype.
5390 (expected_value_to_br_prob): Initialize variable `ev_reg'.
5392 * sbitmap.h (debug_sbitmap): Prototype.
5394 * ssa.c (compute_coalesced_reg_partition): Prototype.
5396 * stor-layout.c (debug_rli): Prototype.
5398 * tree.h (round_down): Prototype.
5399 (init_function_start): Constify.
5401 2000-05-04 Zack Weinberg <zack@wolery.cumb.org>
5403 * cpphash.h: #define __extension__ away if GCC_VERSION < 2095
5404 (overly conservative). Change extern inline wrappers to
5405 static inline, define them always, use PARAMS properly.
5406 * cpplex.c (_cpp_get_directive_token): Don't issue pedantic
5407 whitespace warnings for \f and \v at the beginning of a line.
5409 Thu May 4 10:03:50 2000 Jeffrey A Law (law@cygnus.com)
5411 * haifa-sched.c (schedule_insns): Free the flow edge list when it
5414 2000-05-04 Bruce Korb <bkorb@gnu.org>
5416 * fixincl/inclhack.def: added broken_cabs -
5417 Remove `extern double cabs' declarations from math.h
5418 * fixincl/inclhack.sh: regen
5419 * fixincl/fixincl.x: regen
5420 * fixincl/fixincl.c: Remove BOGOSITY code
5421 * fixincl/mkfixinc.sh: Remove code for installing "shell" version
5423 Thu May 4 09:45:12 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5425 * rtl.h (MEM_COPY_ATTRIBUTES): Also copy RTX_UNCHANGING_P and
5427 * alias.c (canon_rtx): Don't copy RTX_UNCHANGING_P or MEM_ALIAS_SET
5428 when calling MEM_COPY_ATTRIBUTES.
5429 * emit-rtl.c (operand_subword, change_address): Likewise.
5430 * explow.c (stabilize): Likewise.
5431 * expr.c (protect_from_queue, emit_move_insn_1): Likewise.
5432 * integrate.c (copy_rtx_and_substitute): Likewise.
5433 * combine.c (combine_simplify_rtx): Don't copy RTX_UNCHANGING_P
5434 when calling MEM_COPY_ATTRIBUTES.
5435 (make_extraction, simplify_shift_const, gen_lowpart_for_combine):
5437 * cse.c (gen_lowpart_if_possible): Likewise.
5438 * function.c (fixup_var_refs_1, purge_addressof_1): Likewise.
5439 * optabs.c (gen_move_insn): Likewise.
5440 * recog.c (validate_replace_rtx_1): Likewise.
5441 * simplify-rtx.c (add_mem_for_addr): Likewise.
5442 * stmt.c (expand_anon_union_decl): Likewise.
5443 * config/arm/arm.md: Likewise.
5444 * config/h8300/h7300.c (fix_bit_operand): Likewise.
5445 * config/m88k/m88k.c (legitimize_address, block_move_loop): Likewise.
5446 (block_move_no_loop, block_move_sequence): Likewise.
5447 * config/rs6000/rs6000.c (expand_block_move_mem): Likewise.
5448 * config/alpha/alpha.c (get_aligned_mem): Likewise.
5449 Clear MEM_ALIAS_SET.
5450 * final.c (alter_subreg): Don't copy MEM_ALIAS_SET when calling
5451 MEM_COPY_ATTRIBUTES.
5453 2000-05-03 Robert Lipe <robertlipe@usa.net>
5455 * configure.in (i[34567]86-*-isc*) [tmake_file]: Add t-i386bare
5456 to suppress libgcc1.
5457 (i[34567]86-*-sco3.2v5*) Likewise.
5458 (i[34567]86-*-sco3.2v4*) Likewise.
5459 (i[34567]86-*-sco) Likewise.
5460 (i[34567]86-*-solaris2) Likewise.
5461 (i[34567]86-*-sysv5*) Likewise.
5462 (i[34567]86-*-sysv4*) Likewise.
5463 (i[34567]86-*-udk*) Likewise.
5464 (i[34567]86-*-sysv*) Likewise.
5466 2000-05-03 Zack Weinberg <zack@wolery.cumb.org>
5468 * cpphash.h (U): New define, to correct type of string constants.
5469 (ustrcmp, ustrncmp, ustrlen, uxstrdup, ustrchr): New wrapper
5470 routines, to do casts when passing unsigned strings to libc.
5471 * cppexp.c, cppfiles.c, cpphash.c, cppinit.c, cpplib.c: Use them.
5473 * cppfiles.c (_cpp_execute_include): Make filename an U_CHAR *.
5474 * cpphash.c (_cpp_quote_string): Make string an U_CHAR *.
5475 * cppinit.c (dump_special_to_buffer): Make macro name an U_CHAR *.
5476 * cpplex.c (parse_ifdef, parse_include, validate_else): Make
5477 second argument an U_CHAR *.
5479 * cppinit.c (builtin_array): Make name and value U_CHAR *, add
5480 length field, clean up initializer.
5481 (ISTABLE): Add __extension__ to designated-
5482 initializers version.
5483 * cpplex.c (CHARTAB): Likewise.
5485 * mbchar.c: Add dummy external declaration to the !MULTIBYTE_CHARS
5486 case so the file won't be empty.
5488 Wed May 3 21:01:46 2000 Jason Eckhardt <jle@cygnus.com>
5490 * bb-reorder.c (struct reorder_block_def): Member succ removed.
5491 (REORDER_BLOCK_SUCC): Removed.
5492 (enum reorder_skip_type): Removed.
5493 (skip_insns_between_block): Renamed to skip_insns_after_block.
5494 Removed second argument. Removed dead code and cleaned up.
5495 (make_reorder_chain): Removed use of REORDER_BLOCK_SUCC.
5496 (reorder_basic_blocks): Remove use of REORDER_SKIP_AFTER. Removed
5497 second parameter to skip_insns_after_block.
5499 Wed May 3 13:29:54 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5501 * tree.c (staticp, case LABEL_DECL): New case.
5503 2000-05-03 Richard Henderson <rth@cygnus.com>
5505 * Makefile.in (start.encap): Do not depend on LIBGCC1.
5507 * mklibgcc1.in: Fix typo last change.
5509 2000-05-03 Jason Merrill <jason@casey.cygnus.com>
5511 * Makefile.in (WARN_CFLAGS): Add -pedantic -Wno-long-long.
5512 (LOOSE_CFLAGS): New: CFLAGS without -pedantic and -Wtraditional.
5513 (GCC_CFLAGS): Use it.
5514 (LANG_FLAGS_TO_PASS): New: SUBDIR_FLAGS_TO_PASS with LOOSE_CFLAGS.
5515 * cp/Make-lang.in, java/Make-lang.in, f/Make-lang.in, ch/Make-lang.in,
5516 objc/Make-lang.in: Use it.
5518 2000-05-03 Jason R Thorpe <thorpej@zembu.com>
5520 * config/i386/i386.md (lshrqi2_cmpno): Use q not r in constraint.
5522 2000-05-03 Richard Henderson <rth@cygnus.com>
5524 * mklibgcc.in: Restrict OLDCC=GCC test to native. Equate
5525 LIBGCC1 empty with libgcc1.null.
5527 Wed May 3 12:55:46 2000 Jim Wilson <wilson@cygnus.com>
5529 * fold-const.c (extract_muldiv, case MAX_EXPR): Don't allow signedness
5532 2000-05-03 Greg McGary <gkm@gnu.org>
5534 * tree.h (tree_common): Add bounded_flag member. Remove
5535 inaccurate comment about number of remaining bits.
5536 (BOUNDED_INDIRECT_TYPE_P, BOUNDED_POINTER_TYPE_P,
5537 BOUNDED_REFERENCE_TYPE_P, MAYBE_BOUNDED_INDIRECT_TYPE_P,
5538 MAYBE_BOUNDED_POINTER_TYPE_P, MAYBE_BOUNDED_REFERENCE_TYPE_P,
5539 TREE_BOUNDED, TYPE_MAIN_VARIANTS_PHYSICALLY_EQUAL_P,
5540 TYPE_MAIN_PHYSICAL_VARIANT, TYPE_BOUNDED): New macros.
5541 (TYPE_QUAL_BOUNDED): New constant.
5542 (TYPE_QUALS): Handle bounded qualifier.
5543 (TREE_EXPR_QUALS, TREE_FUNC_QUALS): New macros.
5544 (TYPE_BOUNDED_VALUE, TYPE_BOUNDED_BASE, TYPE_BOUNDED_EXTENT,
5545 TYPE_BOUNDED_SUBTYPE, TYPE_UNBOUNDED_VARIANT, TYPE_POINTER_DEPTH,
5546 TYPE_AMBIENT_BOUNDEDNESS): New macros.
5547 (MAX_POINTER_DEPTH, VA_LIST_POINTER_DEPTH): New constants.
5548 (tree_type): Add pointer_depth member. Remove
5549 inaccurate comment about number of remaining bits.
5550 (DECL_POINTER_DEPTH): Add macro.
5551 (tree_decl): Add pointer_depth member.
5553 Wed May 3 22:52:53 2000 Denis Chertykov <denisc@overta.ru>
5555 * config/avr/avr-protos.h (test_hard_reg_class): Declared.
5556 * config/avr/avr.c (ashrhi3_out): optimized shift by 15.
5557 (lshrhi3_out): Likewise.
5558 (ashrsi3_out): bugfix in shift by 8.
5559 (test_hard_reg_class): New function.
5560 * config/avr/avr.md: Bugfix inside conditions in peepholes.
5561 (ashlhi3): removed define_expand of this pattern.
5562 (*ashlhi3_insn): renamed to ashlhi3.
5563 (ashlsi3): removed define_expand of this pattern.
5564 (*ashlsi3_insn): renamed to ashlsi3.
5565 (ashrqi3): removed define_expand of this pattern.
5566 (*ashrqi3_insn): renamed to ashrqi3.
5567 (ashrhi3): removed define_expand of this pattern.
5568 (*ashrhi3_insn): renamed to ashrhi3.
5569 (ashrsi3): removed define_expand of this pattern.
5570 (*ashrsi3_insn): renamed to ashrsi3.
5571 (lshrhi3): removed define_expand of this pattern.
5572 (*lshrhi3_insn): renamed to lshrhi3.
5573 (lshrsi3): removed define_expand of this pattern.
5574 (*lshrsi3_insn): renamed to lshrsi3.
5576 2000-05-03 Rodney Brown <RodneyBrown@pmsc.com>
5578 * config/mcore/mcore.c: Replacing inclusion of "stdio,h" with
5579 inclusion of "system.h".
5581 Wed May 3 11:43:53 2000 Jim Wilson <wilson@cygnus.com>
5583 * config/ia64/ia64.c (ia64_encode_section_info): Add check for
5586 2000-05-03 David Mosberger <davidm@hpl.hp.com>
5588 * config/ia64/ia64.c (ia64_override_options): Force -mconstant-gp
5589 if -mauto-pic is on.
5590 (ia64_epilogue_uses): Mark "gp" (r1) as used by the epilogue if
5591 -mconstant-gp is in effect and function-descriptors are being used
5592 to make indirect calls.
5593 * config/ia64/ia64.h (MASK_CONST_GP): New macro.
5594 (MASK_AUTO_PIC): Ditto.
5595 (TARGET_CONST_GP): Ditto.
5596 (TARGET_AUTO_PIC): Ditto.
5597 (TARGET_SWITCHES): Add -mconstant-gp and -mauto-pic options.
5598 (ASM_OUTPUT_DOUBLE_INT): Don't generate @fptr() if -mauto-pic or
5599 -mno-pic is in effect.
5600 (ASM_OUTPUT_XDATA_DOUBLE_INT): Ditto.
5601 * config/ia64/ia64.md (movdi): Use gen_load_gprel64() if
5602 -mauto-pic is in effect.
5603 (gprel64_offset): New pattern.
5604 (load_gprel64): Ditto.
5605 (call): Handle -mauto-pic like -mno-pic (don't use fptr). If
5606 -mconstant-gp is in effect, no need to preserve gp around direct
5608 (call_value): Ditto.
5609 * config/ia64/linux.h (PROFILE_BEFORE_PROLOGUE): Define.
5610 (FUNCTION_PROFILER): Define.
5611 * config/ia64/sysv4.h (ASM_OUTPUT_CONSTRUCTOR): Don't generate
5612 @fptr() directive when -mno-pic or -mauto-pic is in effect.
5613 (ASM_OUTPUT_DESTRUCTOR): Ditto.
5615 2000-05-03 Richard Henderson <rth@cygnus.com>
5617 * Makefile.in (STAGESTUFF): Add libgcc libgcc.mk.
5618 (libgcc1.null, libgcc1.cross, libgcc1.a): Remove targets.
5619 (libgcc1-asm.a, libgcc1.S, libgcc2.a): Remove targets.
5620 (mklibgcc, libgcc.mk): New targets.
5621 (libgcc.a): Use libgcc.mk.
5622 (stmp-multilib): Likewise.
5623 (stmp-multilib-sub): Remove.
5624 (mostlyclean): Don't delete libgcc2 temp files.
5625 * configure.in (AC_PROG_CC_C_O): Add.
5626 (NO_MINUS_C_MINUS_O): Substitute it.
5627 (all_outputs): Add mklibgcc.
5628 * mklibgcc.in: New file.
5630 2000-05-03 Jason Merrill <jason@casey.cygnus.com>
5632 * cppexp.c (op_t): Make an int.
5634 * rtlanal.c (dead_or_set_regno_p): Remove unused variable.
5636 * varasm.c (initializer_constant_valid_p): Fix parenthesis.
5638 * gensupport.c (process_rtx): Fix macros used.
5640 2000-05-03 Richard Henderson <rth@cygnus.com>
5642 * flow.c (propagate_one_insn): Also don't PROP_REG_INFO for
5643 call-clobbered registers of a call.
5645 Wed May 3 12:40:53 2000 Clinton Popetz <cpopetz@cygnus.com>
5647 * gensupport.c: New file.
5648 * gensupport.h: New file.
5649 * Makefile.in (HOST_RTL): Depend on gensupport.
5650 (gensupport.o) New rule.
5651 * genattr.c: Use gensupport for reading .md files.
5652 * genattrtab.c: Ditto.
5653 * gencodes.c: Ditto.
5654 * genconfig.c: Ditto.
5656 * genextract.c: Ditto.
5657 * genflags.c: Ditto.
5658 * genopinit.c: Ditto.
5659 * genoutput.c: Ditto.
5661 * genrecog.c: Ditto.
5662 * rtl.def (define_insn_and_split): New DEF_RTL_EXPR.
5663 * md.texi (Insn Splitting): Document define_insn_and_split.
5665 Tue May 2 00:20:30 2000 Jason Eckhardt <jle@cygnus.com>
5667 * flow.c (verify_flow_info): Added two more sanity checks. The
5668 first checks that the blocks are numbered consecutively. The second
5669 checks that n_basic_blocks is actually equal to the number of
5670 basic blocks in the insn chain.
5672 2000-05-03 Zack Weinberg <zack@wolery.cumb.org>
5674 * cpplib.h: Add accessor macros for token lists.
5675 * cpplib.c, cpphash.c, cpplex.c: Use them.
5677 Wed May 3 09:29:17 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5679 * expr.c (expand_expr, case COMPONENT_REF): Don't check for checking
5680 memory usage if not in a function.
5681 * varasm.c (initializer_constant_valid_p, case ADDR_EXPR): Only
5682 return address if static.
5684 Wed May 3 13:14:49 MET DST 2000 Jan Hubicka <jh@suse.cz>
5686 * ifcvt.c (noce_try_cmove_arith): Use may_trap_p to thest
5687 whether address may trap.
5689 Tue May 2 23:38:37 2000 Jason Eckhardt <jle@cygnus.com>
5691 * bb-reorder (chain_reorder_blocks): Changed code to test for
5692 EDGE_FALLTHRU rather than making erroneous assumption that the
5693 first outgoing edge is the fall-through edge.
5695 Tue May 2 18:20:31 2000 Donald Lindsay <dlindsay@hound.cygnus.com>
5697 * config/mips/mips.c (mips_build_va_list,mips_va_start,mips_va_arg): new
5698 ABI for varargs, across all MIPS. This is incompatible because the
5699 va_list (__builtin_va_list) structure is different, so a compilation
5700 unit passing a va_list and a compilation unit being passed one, should
5701 both be compiled with the same ABI. (The old structure had two
5702 pointers, now it has three.)
5704 Tue May 2 19:18:43 2000 Jason Eckhardt <jle@cygnus.com>
5706 * bb-reorder.c (struct reorder_block_def): Remove members end,
5707 block_begin, and block_end.
5708 (REORDER_BLOCK_OLD_END): Delete.
5709 (REORDER_BLOCK_BEGIN): Delete.
5710 (REORDER_BLOCK_END): Delete.
5711 (chain_reorder_blocks): Remove dead code.
5713 Tue May 2 17:06:53 2000 Jason Eckhardt <jle@cygnus.com>
5715 * bb-reorder.c (remove_scope_notes): Check for both types of scope
5716 notes as the end of a basic block before deleting.
5718 2000-05-02 Mumit Khan <khan@xraylith.wisc.edu>
5720 * final.c (final_start_function): Fix spelling of "necessary".
5722 2000-05-02 Jason Merrill <jason@casey.cygnus.com>
5724 * toplev.c (debug_ignore_block): Return int.
5725 * dwarf2out.c (dwarf2out_ignore_block): Likewise.
5726 * toplev.h, dwarf2out.h: Adjust.
5727 * emit-rtl.c (remove_unnecessary_notes): Test return value.
5729 * emit-rtl.c (remove_unnecessary_notes): Fix spelling of "necessary".
5730 * toplev.c, final.c, rtl.h: Adjust.
5732 2000-05-02 Zack Weinberg <zack@wolery.cumb.org>
5734 * aclocal.m4 (gcc_AC_CHECK_PROG_VER): New macro.
5735 * configure.in: Look for makeinfo in the unified tree, then
5736 for a system makeinfo which is sufficiently new.
5737 * Makefile.in: If configure says makeinfo is too old, don't
5738 build or install Info documentation.
5740 2000-05-02 Zack Weinberg <zack@wolery.cumb.org>
5742 * cpphash.c (collect_params): Fix off-by-one error.
5743 (dump_hash_helper): Dump all four macro nodetypes.
5745 2000-05-02 Jakub Jelinek <jakub@redhat.com>
5747 * cpphash.c (trad_stringify): Adjust p after stringification as
5750 2000-05-02 Zack Weinberg <zack@wolery.cumb.org>
5752 * cpplib.h (CPP_POP, parse_cleanup_t): Delete.
5753 (cpp_buffer): Remove cleanup, seen_eof, manual_pop members.
5755 * cppfiles.c (file_cleanup): Delete.
5756 * cpphash.c (macro_cleanup): Delete.
5757 (collect_objlike_expansion, collect_funlike_expansion,
5758 macarg, scan_arguments): Remove CPP_POP case.
5760 * cpplex.c (null_cleanup): Delete.
5761 (cpp_pop_buffer): Do the work that was done in the cleanups
5762 here. Call _cpp_unwind_if_stack from here.
5763 (_cpp_expand_to_buffer, cpp_scan_buffer_nooutput,
5764 cpp_scan_buffer): Run until we see CPP_EOF and the top of
5765 stack is the buffer _below_ the one we stacked.
5766 (cpp_get_token): Always pop an exhausted buffer. Return
5767 CPP_EOF unless it's a macro buffer. Don't call _cpp_handle_eof.
5768 * cpplib.c (skip_if_group): Don't call cpp_get_token to
5769 increment the line number.
5770 (_cpp_handle_eof): Rename to _cpp_unwind_if_stack.
5772 * fix-header.c (read_scan_file) [parsing getchar()]: Run until
5773 we see CPP_EOF and the top of stack is the buffer _below_ the
5775 * scan-decls.c: Likewise.
5777 2000-05-02 Andrew Haley <aph@cygnus.com>
5779 * config/ia64/ia64.c (ia64_encode_section_info): Handle the case
5780 where this function is called for the second time on a decl that
5781 has had its section info changed in such a way as to move it out
5783 * config/ia64/ia64.h (REDO_SECTION_INFO_P): New definition.
5785 2000-05-01 Richard Henderson <rth@cygnus.com>
5787 * ifcvt.c (dead_or_predicable): Set merge_bb->end to the insn before
5788 the sequence we're moving, not to merge_bb->head.
5790 2000-05-01 Richard Henderson <rth@cygnus.com>
5792 * configure.in (alpha*-*-linux-gnulibc1*) [tmake_file]: Remove
5793 reference to alpha/t-linux.
5794 (alpha*-*-linux-gnu*): Likewise.
5795 * configure: Rebuild.
5797 * calls.c (expand_call): Don't emit reg notes for a sibcall.
5799 * flow.c (calculate_global_regs_live): Skip for_each_successor_phi
5802 * ifcvt.c (if_convert): Only verify_flow_info if ENABLE_CHECKING.
5804 2000-05-01 Jason Merrill <jason@casey.cygnus.com>
5806 * integrate.c (copy_decl_for_inlining): Copy TREE_READONLY and
5809 2000-05-01 Richard Henderson <rth@cygnus.com>
5811 * ifcvt.c (noce_emit_cmove): Conditionally compile call to
5812 emit_conditional_move.
5814 2000-05-01 Jakub Jelinek <jakub@redhat.com>
5816 * config/ia64/linux.h (LINK_SPEC): Use /lib/ld-linux-ia64.so.1
5817 as the dynamic linker.
5819 2000-05-01 Zack Weinberg <zack@wolery.cumb.org>
5821 * cppfiles.c (open_include_file): Open file in blocking mode.
5822 (read_include_file): Don't fcntl(fd, F_SETFL, 0) anymore.
5823 Only exclude block devices and directories.
5825 * cpphash.c (_cpp_make_hashnode): Rename make_HASHNODE, now
5826 static. Allocate the hashnode and its string in the same
5828 (del_HASHNODE): Don't free h->name.
5829 (_cpp_lookup): If there is no entry for this string, create
5830 one, of type T_VOID.
5831 (_cpp_lookup_slot): Delete.
5832 * cpphash.h: Update prototypes.
5834 * cpplex.c (maybe_macroexpand): Check for hp->type == T_VOID,
5836 * cpplib.c (do_define, do_undef, do_pragma_poison, do_assert,
5837 do_unassert, cpp_defined): Use _cpp_lookup. Don't create a
5838 node here, just fill in the value field properly. "Delete"
5839 entries by setting the value field to T_VOID. Check for
5840 hp->type == T_VOID, not hp == NULL.
5842 * Makefile.in (cpplib.o): Don't depend on $(HASHTAB_H).
5843 * cpperror.c, cppexp.c, cpplex.c, cpplib.c: Don't include
5846 2000-05-01 Alexandre Oliva <aoliva@cygnus.com>
5848 * config/mn10300/mn10300.c (print_operand_address): Do not add
5851 * config/mn10300/mn10300.c (expand_epilogue): If SP is to be
5852 adjusted by less than 256 bytes, use ret regardless of having any
5853 callee-saved register to restore.
5855 2000-05-01 Laurynas Biveinis <lauras@softhome.net>
5857 * tm.texi (TARGET_HAS_F_SETFLKW): Fix typo.
5859 2000-05-01 Mark Elbrecht <snowball3@bigfoot.com>
5861 * config/i386/djgpp.h (INT_ASM_OP): Define.
5862 (CPP_PREDEFINES): Rename MSDOS to __MSDOS__.
5863 (ASM_WEAKEN_LABEL): Define.
5864 (MASK_BNU210): Define.
5865 (SUBTARGET_SWITCHES): Define.
5866 (SUPPORTS_WEAK, SUPPORTS_ONE_ONLY): Define.
5867 (MAKE_DECL_ONE_ONLY): Define.
5868 (UNIQUE_SECTION_P, UNIQUE_SECTION): Define.
5870 2000-05-01 Mumit Khan <khan@xraylith.wisc.edu>
5872 * i386/cygwin.h (INT_ASM_OP): Define.
5874 Mon May 1 18:20:06 2000 Denis Chertykov <denisc@overta.ru>
5876 * config/avr/avr.c (address_cost): renamed to avr_address_cost.
5877 * config/avr/avr.h (ADDRESS_COST): use avr_address_cost.
5879 Mon May 1 17:50:44 2000 Denis Chertykov <denisc@overta.ru>
5881 * config/avr/avr.c (asm_file_start): output 0 as r0 and 1 as r1 in
5882 __tmp_reg__ and __zero_reg__ initialization.
5884 2000-04-30 Richard Henderson <rth@cygnus.com>
5886 * flow.c (propagate_one_insn): Mark sets even when the insn is dead.
5888 * ifcvt.c (noce_process_if_block): Fail the conversion if X is
5889 referenced bewteen the condition and the jump. Don't delete
5890 anything but the jump.
5892 Sun Apr 30 22:48:24 2000 Jason Eckhardt <jle@cygnus.com>
5894 * bb-reorder.c (scope_def): New struct.
5895 (scope_forest_info): New struct.
5896 (struct reorder_block_def): New member "scope".
5897 (REORDER_BLOCK_SCOPE): New macro.
5898 (relate_bbs_with_scopes): New function and prototype.
5899 (make_new_scope): Likewise.
5900 (build_scope_forest): Likewise.
5901 (remove_scope_notes): Likewise.
5902 (insert_intra_1): Likewise.
5903 (insert_intra_bb_scope_notes): Likewise.
5904 (insert_inter_bb_scope_notes): Likewise.
5905 (rebuild_scope_notes): Likewise.
5906 (free_scope_forest_1): Likewise.
5907 (free_scope_forest): Likewise.
5908 (dump_scope_forest): Likewise.
5909 (dump_scope_forest_1): Likewise.
5910 (chain_reorder_blocks): Set REORDER_BLOCK_SCOPE for new block.
5911 Update REORDER_BLOCK_EFF_HEAD and REORDER_BLOCK_EFF_END for new
5913 (reorder_basic_blocks): Added calls to build_scope_scope_forest
5914 and remove_scope_notes before reordering is done. Added calls to
5915 rebuild_scope_notes, free_scope_forest, and reorder_blocks after
5916 after reordering is done.
5918 2000-40-30 Bruce Korb <bkorb@gnu.org>
5920 * fixinc/inclhack.def: Added definitions needed by OSR5,
5921 removed two stale entries (defined away with OLD_CPP).
5922 * fixinc/inclhack.sh: regen
5923 * fixinc/fixincl.x: regen
5925 2000-04-30 Richard Henderson <rth@cygnus.com>
5927 * ifcvt.c (dead_or_predicable): Manually squeeze non-movable notes
5928 from the last insn in the sequence.
5930 2000-04-30 Zack Weinberg <zack@wolery.cumb.org>
5932 * cpplex.c (cpp_idcmp): New function.
5933 * cpplib.h: Prototype it.
5934 * scan_decls.c (scan_decls): Use it to inspect token names.
5935 * fix-header.c (read_scan_file): Likewise. Set system_header_p on
5936 the file being run through the preprocessor.
5937 (check_macro_names): Provide length of token to cpp_defined.
5939 * Makefile.in: Remove stale warning message.
5941 * cppfiles.c (redundant_include_p): Provide length of token to
5943 * cpphash.c (_cpp_make_hashnode, _cpp_lookup_slot): Hash
5944 values are unsigned int.
5945 (_cpp_lookup, _cpp_lookup_slot): Do not calculate the length.
5946 (_cpp_lookup_slot): Do not calculate the hash, either.
5947 * cpphash.h: Update prototypes.
5948 * cpplib.c (do_define, do_undef, do_pragma_poison, do_assert):
5949 Hashes are unsigned int. Calculate hash here, pass by value
5950 to _cpp_lookup_slot.
5952 2000-04-30 Bernd Schmidt <bernds@cygnus.co.uk>
5954 * simplify-rtx.c (check_value_useless): Delete function.
5955 (discard_useless_locs): Don't call it; manage N_USELES_VALUES counter
5957 (cselib_invalidate_regno): Likewise.
5958 (cselib_invalidate_mem_1): Likewise.
5959 (references_value_p): Recognize useless values by the fact that they
5961 (discard_useless_values): Likewise.
5962 (cselib_record_set): This may turn a useless value
5965 2000-04-30 Richard Henderson <rth@cygnus.com>
5967 * config/d30v: New port.
5969 * configure.in (d30v-*): Set fp format.
5970 * configure: Rebuild.
5972 2000-04-30 Richard Henderson <rth@cygnus.com>
5974 * ifcvt.c: New file.
5975 * Makefile.in (OBJS): Add it.
5976 (ifcvt.o): New target.
5977 * jump.c (jump_optimize_1): Remove all code related to if-conversion,
5978 and conditional arithmetic.
5979 (find_insert_position): Remove.
5980 * timevar.def (TV_IFCVT, TV_IFCVT2): New.
5981 * toplev.c (DFI_ce, DFI_ce2): New.
5982 (dump_file): Add ce and ce2 dumps.
5983 (rest_of_compilation): Run if_convert a couple o times. Set
5984 cse_not_expected after cse2. Don't set no_new_pseudos until
5985 after sched1 or recompute_reg_usage.
5987 2000-04-30 Richard Henderson <rth@cygnus.com>
5989 * config/alpha/t-crtbe (crtbegin.o): Add "-I.".
5990 (crtend.o, crtbeginS.o, crtendS.o): Likewise.
5992 2000-04-30 Richard Henderson <rth@cygnus.com>
5994 * flow.c (struct reg_cond_life_info): New.
5995 (struct propagate_block_info): Add reg_cond_dead and reg_cond_reg.
5996 (init_propagate_block_info): Initialize them.
5997 (free_propagate_block_info): Destruct them.
5998 (mark_set_1): Consider conditional life before killing a register.
5999 (mark_regno_cond_dead): New.
6000 (free_reg_cond_life_info): New.
6001 (flush_reg_cond_reg_1, flush_reg_cond_reg): New.
6002 (ior_reg_cond, not_reg_cond, nand_reg_cond): New.
6003 (mark_used_reg): Record conditional life.
6005 * haifa-sched.c (schedule_insns): Disable death counting
6006 sanity check for HAVE_conditional_execution.
6008 2000-04-30 Richard Henderson <rth@cygnus.com>
6010 * Makefile.in (TIMEVAR_H): New.
6011 (ggc-simple.o, ggc-page.o, toplev.o, timevar.o): Use it.
6012 (timevar.h): Remove rule.
6014 2000-04-29 Richard Henderson <rth@cygnus.com>
6016 * config/alpha/crtend.asm: Use C comments instead of #.
6017 * config/alpha/crtbegin.asm: Likewise. Mark __dso_handle hidden.
6019 * config/alpha/elf.h (SELECT_SECTION): Treat CONSTRUCTOR like VAR_DECL.
6021 2000-04-29 Zack Weinberg <zack@wolery.cumb.org>
6023 * cpphash.h (enum node_type: Take out T_MCONST.
6024 (union hashval): Move into struct hashnode.
6025 (struct hashnode): Pack tighter. Remove file, line, col
6027 * cpphash.c: Constify most of the macro-definition structures.
6028 (struct definition): Replace by struct object_defn
6029 and struct funct_defn. Put file, line, column information
6030 here. All users updated to match.
6031 (_cpp_create_definition, _cpp_macroexpand): Remove special
6032 case for #define WORD OTHERWORD.
6033 * cpplib.c (do_undef): Remove T_MCONST case.
6035 * cpphash.h: Move struct reflist, struct definition, and the
6036 DEFINITION typedef to cpphash.c. Use 'struct definition *' in
6037 union hashval. _cpp_free_definition takes a HASHNODE pointer.
6038 * cpphash.c (_cpp_free_definition): Free data pointed to by
6039 MCONST, XCONST, MACRO, and FMACRO nodes properly.
6040 (_cpp_create_definition, del_HASHNODE): Just call
6041 _cpp_free_definition to clear out a hashnode.
6042 * cpplib.c (do_pragma_poison): Likewise.
6044 Sat Apr 29 12:25:17 2000 Alexandre Oliva <aoliva@cygnus.com>
6046 * config/mn10300/mn10300.h (FIRST_DATA_REGNUM,
6047 LAST_DATA_REGNUM, FIRST_ADDRESS_REGNUM, LAST_ADDRESS_REGNUM,
6048 FIRST_EXTENDED_REGNUM, LAST_EXTENDED_REGNUM): New macros.
6049 (REGNO_SP_P): Redefine in terms of STACK_POINTER_REGNUM.
6050 (REGNO_DATA_P, REGNO_ADDRESS_P, REGNO_EXTENDED_P,
6051 REGNO_AM33_P): Redefine in terms of the new macros.
6052 (CONDITIONAL_REGISTER_USAGE, REGNO_REG_CLASS): Likewise.
6053 (FUNCTION_VALUE, LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P,
6054 STRUCT_VALUE): Likewise.
6055 (STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM,
6056 ARG_POINTER_REGNUM, STATIC_CHAIN_REGNUM): Likewise. Moved.
6058 Sat Apr 29 01:18:45 MET DST 2000 Jan Hubicka <jh@suse.cz>
6060 * regmove.c (struct record_stack_memrefs_data): New.
6061 (record_stack_memrefs): New function.
6062 (combine_stack_adjustments_for_block): Use it.
6064 Sat Apr 29 01:15:27 MET DST 2000 Jan Hubicka <jh@suse.cz>
6066 * calls.c (calls_function_1): Propertly handle TREE_LIST expressions;
6067 use special_function_p to detect alloca.
6069 Fri Apr 28 16:30:33 2000 Marc Espie <espie@cvs.openbsd.org>
6071 * gcc.texi: Fixes for makeinfo 4.0 --html.
6073 2000-04-28 Zack Weinberg <zack@wolery.cumb.org>
6075 * pcp.h: Delete file.
6077 2000-04-28 Kazu Hirata <kazu@hxi.com>
6079 * h8300.c (function_epilogue): Clean up flags when the last insn
6080 in a function is a barrier.
6082 2000-04-28 Chris Demetriou <cgd@sibyte.com>
6084 * configure.in (sparc-hal-solaris2*): protect [] glob from
6086 (mips*-*-ecoff*, mips*-*-elf*, mips*-*-*): use MASK_ defines
6087 rather than hard-coded constants in target_cpu_default2.
6088 * configure: Regenerate.
6090 2000-04-28 Jason Merrill <jason@casey.cygnus.com>
6092 * tree.c (get_callee_fndecl): Extract the initial value from
6095 2000-04-28 Richard Henderson <rth@cygnus.com>
6097 * varasm.c (record_constant_1): Record the CODE_LABEL when
6098 taking the address of a LABEL_REF.
6100 2000-04-28 Richard Henderson <rth@cygnus.com>
6101 Jan Hubicka <jh@suse.cz>
6103 * calls.c (combine_pending_stack_adjustment_and_call): Return the
6104 adjustment; don't do the stack adjust.
6105 (expand_call): Call compute_argument_block_size right before
6106 allocating the block; update comment; don't do alignment sanity
6107 checking for sibling call; use args_size instead of
6108 unadjusted_args_size before args_size is adjusted. Use
6109 combine_pending_stack_adjustment_and_call to compute stack adjust
6110 for must_preallocate case.
6112 * expr.c (push_block): Remove shadow `temp' in inner scope.
6114 2000-04-28 Jason Merrill <jason@casey.cygnus.com>
6116 * toplev.c (rest_of_compilation): Call
6117 note_deferral_of_defined_inline_function even if the function
6120 2000-04-28 Scott Bambrough <scottb@netwinder.org>
6122 * cpplex.c (_cpp_scan_line): Fix buffer overwrite.
6124 2000-04-28 Richard Henderson <rth@cygnus.com>
6126 * toplev.c (rest_of_type_compilation): Fix sdb TIMEVAR typo.
6128 2000-04-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6130 * timevar.c (init_timevar): DeANSIfy function definition.
6132 2000-04-27 Alex Samuel <samuel@codesourcery.com>
6134 * Makefile.in (timevar.o): Depend on flags.h.
6135 * timevar.c (unused_stack_instances): New variable.
6136 (timevar_push): Take a timevar_stack_def from
6137 unused_stack_instances if available.
6138 (timevar_pop): Push the popped timevar_stack_def onto
6139 unused_stack_instances.
6140 (TIMEVAR_ENABLE): New macro.
6141 (timevar_def): Make standalone a 1-bit field. Add field used.
6142 (get_time): Rename parameter to now. Return after clearing it if
6144 (init_timevar): Do nothing if not TIMEVAR_ENABLE.
6145 (timevar_pop): Likewise.
6146 (timevar_stop): Likewise.
6147 (timevar_push): Likewise. Mark the timing variable as used.
6148 (timevar_start): Likewise.
6149 (timevar_print): Do nothing if not TIMEVAR_ENABLE. Don't print
6150 timevars that were never used.
6152 2000-04-27 Mark Mitchell <mark@codesourcery.com>
6154 * c-common.c (c_apply_type_quals_to_decl): REFERENCE_TYPES are
6155 always TREE_READONLY.
6157 2000-04-27 Ulrich Drepper <drepper@cygnus.com>
6159 * i386.h (FUNCTION_BLOCK_PROFILER_EXIT): Generate mem reference
6160 for call instruction with mode QImode.
6162 2000-04-27 Alex Samuel <samuel@codesourcery.com>
6164 * Makefile.in (OBJS): Add timevar.o.
6165 (toplev.o): Depend on timevar.h.
6166 (ggc-simple.o): Likewise.
6167 (ggc-page.o): Likewise.
6168 (timevar.o): New rule.
6169 (timevar.h): New rule.
6171 * timevar.h: New file.
6172 * timevar.c: Likewise.
6173 * timevar.def: Likewise.
6175 * toplev.h (gc_time, parse_time, varconst_time): Remove.
6176 * toplev.c: Use timevar_push and timevar_pop instead of TIMEVAR
6178 (TIMEVAR): Remove macro.
6179 (gc_time, parse_time, varconst_time, integration_time, jump_time,
6180 cse_time, gcse_time, loop_time, cse2_time, branch_prob_time,
6181 flow_time, combine_time, regmove_time, sched_time,
6182 local_alloc_time, global_alloc_time, flow2_time, peephole2_time,
6183 sched2_time, dbr_sched_time, reorder_blocks_time,
6184 rename_registers_time, shorten_branch_time, stack_reg_time,
6185 to_ssa_time, from_ssa_time, final_time, symout_time, dump_time,
6187 (compile_file): Don't initialize time variables. Call
6188 init_timevar and start TV_TOTAL timer. Call timevar_print instead
6189 of many calls to print_time.
6190 (rest_of_compilation): Add timing for reload_cse_regs.
6191 (get_run_time): Removed to timevar.c.
6192 (print_time): Likewise.
6193 (get_run_time): Implement using TV_TOTAL time variable.
6194 (print_time): Get total run time from get_run_time.
6195 * ggc-page.c (ggc_collect): Push and pop TV_GC instead of
6196 computing elapsed time explicitly.
6197 * ggc-simple.c (ggc_collect): Likewise.
6198 (gc_time): Remove declaration.
6200 2000-04-27 Mark Mitchell <mark@codesourcery.com>
6202 * calls.c (combine_pending_stack_adjustment_and_call): New function.
6203 (expand_call): Use it.
6205 2000-04-27 Jan Hubicka <jh@suse.cz>
6207 * flow.c (mark_set_1): Handle MEMs in ZERO_EXTRACT/SIGN_EXTRACT
6210 Thu Apr 27 12:47:00 2000 Alexandre Oliva <aoliva@cygnus.com>
6212 * config/mn10300/mn10300.md (movhi): Simplify. Prefer data
6215 Thu Apr 27 17:33:05 MET DST 2000 Jan Hubicka <jh@suse.cz>
6217 * function.c (epilogue_done): Pass whole insn to record_insns.
6219 Thu Apr 27 16:55:28 MET DST 2000 Jan Hubicka <jh@suse.cz>
6221 * cse.c (CSE_ADDRESS_COST): Remove.
6222 (find_best_addr): Add new parameter "MODE", use address_cost instead
6224 (address_cost): New.
6225 (fold_rtx): Update call of find_best_addr.
6226 * rtl.h (address_cost): Declare.
6227 * loop.c (general_induction_var): Add new parameter "MODE", use
6228 address_cost instead of ADDRESS_COST
6229 (init_loop): Use address_cost instead of ADDRESS_COST.
6230 (check_insn_for_givs): Update call of general_induction_var.
6231 (find_mem_givs): Likewise.
6232 (consec_sets_giv): Likewise.
6233 * config/i386/i386.h (ADDRESS_COST): Call ix86_address_cost.
6234 * i386.c (ix86_address_cost): New.
6235 * i386-protos.h (ix86_address_cost): Declare.
6237 Thu Apr 27 11:45:16 2000 Alexandre Oliva <aoliva@cygnus.com>
6239 * config/mn10300/mn10300.md (movqi): Simplify. Prefer data
6242 Thu Apr 27 16:11:00 MET DST 2000 Jan Hubicka <jh@suse.cz>
6244 * expr.c (store_expr): Use clear_storage instead of direct memset
6247 Thu Apr 27 10:36:51 2000 Alexandre Oliva <aoliva@cygnus.com>
6249 * config/mn10300/mn10300.c (mn10300_address_cost): Test
6250 ASHIFT, AND and LABEL_REF.
6252 Thu Apr 27 15:08:46 MET DST 2000 Jan Hubicka <jh@suse.cz>
6254 * invoke.texi (-foptimize-sibling-calls): Fix.
6256 Thu Apr 27 14:54:22 MET DST 2000 Jan Hubicka <jh@suse.cz>
6258 * loop.c (load_mems) Don't use hard registers for the hoisting.
6260 * unroll.c (unroll_loop): Avoid overflow in the n_iterations
6261 calculation; rename const_equiv array in the preconditioning code
6262 from loop_unroll to loop_unroll_precondition
6264 2000-04-27 Richard Henderson <rth@cygnus.com>
6266 * flow.c (struct propagate_block_info): Remove new_dead, new_live;
6268 (propagate_one_insn): Clear it. Don't update reg_live here.
6269 (init_propagate_block_info): Update for pbi member changes.
6270 (free_propagate_block_info): Likewise.
6271 (mark_set_1): Know that zero_extract, sign_extract, and
6272 strict_low_part don't kill their argument. Alter hard subregs.
6273 Update new_set for non-CLOBBER sets. Update reg_live.
6274 (find_auto_inc): Update reg_live, not new_dead.
6275 (mark_used_reg): Update reg_live, not new_live. Examine new_set
6276 to determine if the reg in question was set this insn. Only update
6277 reg info with PROP_REG_INFO.
6279 2000-04-26 Richard Henderson <rth@cygnus.com>
6281 * flow.c (allocate_reg_life_data): Set max_regno here ...
6282 (life_analysis): ... not here.
6284 * flow.c (calculate_global_regs_live): Force stack pointer
6287 2000-04-26 Richard Henderson <rth@cygnus.com>
6289 * jump.c (redirect_exp_1): Rework from old redirect_exp. Never
6290 commit change group changes.
6291 (invert_exp_1): Similarly.
6292 (redirect_exp, invert_exp): Use them.
6293 (redirect_jump_1): New.
6294 (invert_jump_1): New.
6295 (jump_optimize_1): Remove code subsumed by condexec.c.
6296 * rtl.h (invert_jump_1, redirect_jump_1): Declare.
6298 2000-04-26 Richard Henderson <rth@cygnus.com>
6300 * rtlanal.c (dead_or_set_regno_p): Use find_regno_note.
6302 * genconfig.c (main): Set all HAVE_foo to 1.
6304 * graph.c (node_data): Use GET_NOTE_INSN_NAME instead of local array.
6306 2000-04-26 Alex Samuel <samuel@codesourcery.com>
6308 * invoke.texi: Document -fssa flag.
6310 2000-04-26 Richard Henderson <rth@cygnus.com>
6312 * flow.c (count_reg_sets_1): Remove.
6313 (count_reg_sets, count_reg_references): Remove.
6314 (recompute_reg_usage): Implement with update_life_info.
6315 Reallocate life data.
6317 2000-04-26 Richard Henderson <rth@cygnus.com>
6319 * flow.c (update_life_info): Consider blocks null to mean the
6321 (calculate_global_regs_live): Likewise.
6322 (life_analysis): Do that instead of collecting all_blocks.
6324 2000-04-26 Richard Henderson <rth@cygnus.com>
6326 * flow.c (tidy_fallthru_edge): Don't delete the jump when it's
6327 a still-valid conditional jump.
6329 2000-04-26 Richard Henderson <rth@cygnus.com>
6331 * jump.c (invert_jump): Always invert REG_BR_PROB. Do it correctly.
6333 * bb-reorder.c (reorder_basic_blocks): Don't run estimate_probability.
6334 * flow.c (calculate_loop_depth): Remove.
6335 * output.h (calculate_loop_depth): Don't declare.
6336 * toplev.c (rest_of_compilation): Expand calculate_loop_depth
6337 inline; run estimate_probability at the same time.
6339 2000-04-26 Neil Booth <NeilB@earthling.net>
6341 * cpplib.h: "~=" is not a single pp-token.
6342 * cpplex.c: Correct commentary.
6344 2000-04-26 Richard Henderson <rth@cygnus.com>
6346 * flow.c (mark_set_1): New arguments code and flags; update all
6347 callers. Track regno_first and regno_last; do HARD_REGNO_NREGS
6348 test in one place. Tidy flags tests. Don't bias REG_N_REFS by
6349 loop_depth when optimizing for size. Do new_dead update after
6350 emitting REG_UNUSED notes. Merge mark_set_reg code.
6351 (mark_set_reg): Remove.
6352 (propagate_one_insn): Use mark_set_1 for call-clobbered registers;
6353 arrange to not emit REG_UNUSED notes.
6355 2000-04-26 Richard Henderson <rth@cygnus.com>
6357 * flow.c (find_auto_inc): Use pbi->bb instead of BLOCK_FOR_INSN.
6358 * ssa.c (convert_from_ssa): Don't run compute_bb_for_insn.
6360 2000-04-26 Richard Henderson <rth@cygnus.com>
6362 * flow.c (propagate_one_insn): Break out from propagate_block.
6363 (init_propagate_block_info): Likewise.
6364 (free_propagate_block_info): Likewise.
6365 (propagate_block): Use them. Export.
6366 * basic-block.h: Declare them all.
6368 2000-04-26 Richard Henderson <rth@cygnus.com>
6370 * basic-block.h (life_analysis): Declare here ...
6371 * output.h: ... not here.
6372 * flow.c (life_analysis): Remove nregs parameter; replace
6373 remove_dead_code with flags. Remove ssa dead code check.
6374 Only init alias analysis if we'll use it.
6375 * reg-stack.c (reg_to_stack): Update life_analysis arguments.
6376 * ssa.c (convert_to_ssa): Likewise.
6377 (convert_from_ssa): Likewise.
6378 * toplev.c (rest_of_compilation): Likewise.
6380 2000-04-26 Richard Henderson <rth@cygnus.com>
6382 * flow.c (flow_delete_block): Rename from delete_block. Export.
6383 * basic-block.h (flow_delete_block): Declare.
6385 2000-04-26 David S. Miller <davem@redhat.com>
6387 * optabs.c (emit_libcall_block): Verify insns with INSN_P before
6388 taking a PATTERN of it.
6390 2000-04-26 <NeilB@earthling.net>
6392 * cpplex.c (spell_other, spell_char): Remove.
6394 (token_spelling, trigraph_map): Use unsigned chars.
6395 (_cpp_lex_line): Tidy up the switch statement.
6396 * cpplib.h: Implement spell_char with spell_string.
6399 2000-04-26 <RodneyBrown@pmsc.com>
6401 * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Warning removal.
6402 * pa/pa64-regs.h (HARD_REGNO_MODE_OK): Warning removal.
6404 2000-04-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6406 * dwarf2out.c (dw_cfi_oprnd_struct, dw_fde_struct, add_fde_cfi,
6407 reg_save, dwarf2out_frame_debug_expr, dwarf2out_def_cfa,
6408 dwarf2out_window_save, dwarf2out_args_size, dwarf2out_reg_save,
6409 dwarf2out_return_save, dwarf2out_return_reg,
6410 dwarf2out_stack_adjust, dwarf2out_frame_debug, primary_filename,
6411 add_AT_lbl_id, add_AT_lbl_offset, type_tag, decl_start_label,
6412 gen_compile_unit_die, dwarf2out_init): Constify a char*.
6414 * dwarf2out.h (dwarf2out_init): Likewise.
6416 * dwarfout.c (filename_entry, primary_filename, last_filename,
6417 type_tag, output_compile_unit_die, dwarfout_init): Likewise.
6419 * tree.h (dwarf2out_def_cfa, dwarf2out_window_save,
6420 dwarf2out_args_size, dwarf2out_reg_save, dwarf2out_return_save,
6421 dwarf2out_return_reg): Likewise.
6423 2000-04-26 Andreas Jaeger <aj@suse.de>
6425 * extend.texi (Function Attributes): Fix description of pure
6428 2000-04-26 Jason Merrill <jason@casey.cygnus.com>
6430 * integrate.c (output_inline_function): Do clear DECL_DEFER_OUTPUT
6431 before calling rest_of_compilation.
6433 2000-04-26 Andreas Jaeger <aj@suse.de>
6435 * config/mips/linux.h: Remove erroneous commit of #if 0/#endif in
6438 2000-04-25 Richard Henderson <rth@cygnus.com>
6440 * cse.c (cse_insn): Emit barrier after unconditional jump.
6442 * calls.c (expand_call): Disable tail call generation once
6443 rtx_equal_function_value_matters is false.
6445 * reg-stack.c (convert_regs_1): Treat EDGE_ABNORMAL_CALL edges
6448 2000-04-25 Jason Merrill <jason@casey.cygnus.com>
6450 * dwarf2out.c (add_bound_info): Don't crash on an unexpanded SAVE_EXPR.
6452 * dwarfout.c (output_decl): Ignore NAMESPACE_DECLs.
6454 * dwarf2out.c (gen_subprogram_die): The class-scope declaration DIE
6455 is the primary DIE for a member function.
6456 (gen_decl_die): Call set_decl_origin_self here.
6457 * dwarfout.c (output_decl): And here.
6458 * integrate.c (output_inline_function): Not here.
6459 Don't clear DECL_INLINE until after calling rest_of_compilation.
6460 (set_decl_origin_self): No longer static.
6461 * tree.h: Add prototype.
6462 * toplev.c (note_deferral_of_defined_inline_function): Only write
6463 out abstract instance for actual inlines.
6465 2000-04-25 Alexandre Oliva <aoliva@cygnus.com>
6467 * config/mn10300/mn10300.h (REG_CLASS_FROM_LETTER): Return
6468 EXTENDED_REGS only if TARGET_AM33.
6469 * config/mn10300/mn10300.md (movsi, addsi): Avoid exposing
6470 SP_REGS to register allocation and reloading unless absolutely
6472 (movsi3): Remove special-case of adding non-constants to SP.
6474 2000-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6476 * aclocal.m4 (gcc_AC_NEED_DECLARATION): This macro now requires
6477 INCLUDES to search and does not provide any of its own. Also it
6478 now accepts optional ACTION-IF-NEEDED and ACTION-IF-NOT-NEEDED
6479 parameters. Also it does not call AC_DEFINE.
6480 (gcc_AC_NEED_DECLARATIONS): Likewise. Also this macro now calls
6481 AC_DEFINE and provides for automatic entries for autoheader.
6482 (gcc_AC_FUNC_PRINTF_PTR): Cleanup C code in test.
6484 * configure.in (gcc_AC_NEED_DECLARATIONS): Save and restore CFLAGS
6485 so we can pass -I flags and include gansidecl.h/system.h in this
6488 * acconfig.h: Delete all NEED_DECLARATION_* entries.
6490 2000-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6492 * acconfig.h (ENABLE_STD_NAMESPACE, ENABLE_CHECKING,
6493 ENABLE_TREE_CHECKING, ENABLE_RTL_CHECKING, ENABLE_GC_CHECKING,
6494 ENABLE_GC_ALWAYS_COLLECT): Delete entries.
6496 * configure.in (ENABLE_STD_NAMESPACE, ENABLE_CHECKING,
6497 ENABLE_TREE_CHECKING, ENABLE_RTL_CHECKING, ENABLE_GC_CHECKING,
6498 ENABLE_GC_ALWAYS_COLLECT): Use three argument form of AC_DEFINE
6499 for these macros. Clean up spacing and linewraps.
6501 2000-04-26 Jason Merrill <jason@casey.cygnus.com>
6503 * calls.c (expand_call): Use get_callee_fndecl.
6505 * print-tree.c (print_node): Print the chain of an _EXPR.
6507 Tue Apr 25 16:16:04 2000 Andrew MacLeod <amacleod@cygnus.com>
6508 Jim Wilson <wilson@cygnus.com>
6509 Andrew Haley <aph@cygnus.com>
6511 * config/ia64/crtbegin.asm: Add IA-64 unwind support. Correct alloc
6512 and gp save/restore problems.
6513 * config/ia64/crtend.asm: Add IA-64 unwind support.
6514 * config/ia64/ia64.c (ia64_compute_frame_size): Don't include pr_size
6515 in fr_pad_size calculation.
6516 (save_restore_insns): Move PR save area. Correct uses of
6517 RTX_FRAME_RELATED_P.
6518 (ia64_expand_prologue): Mark alloc with RTX_FRAME_RELATED_P.
6519 (ia64_expand_epilogue): Add eh_epilogue support.
6520 (ia64_function_prologue): Emit .prologue directive.
6521 (ia64_init_machine_status, ia64_mark_machine_status): New functions.
6522 (ia64_override_options): Set init_machine_status and
6523 mark_machine_status.
6524 (rtx_needs_barrier): Handle bsp reads and writes.
6525 (spill_offset, sp_offset, spill_offset_emitted, tmp_reg, tmp_saved):
6526 New static variables.
6527 (process_set, process_for_unwind_directive): New functions.
6528 * config/ia64/ia64.h (ASM_OUTPUT_XDATA_CHAR, ASM_OUTPUT_XDATA_SHORT,
6529 ASM_OUTPUT_XDATA_INT, ASM_OUTPUT_XDATA_DOUBLE_INT, ASM_OUTPUT_EH_CHAR,
6530 ASM_OUTPUT_EH_SHORT, ASM_OUTPUT_EH_INT, ASM_OUTPUT_EH_DOUBLE_INT): New
6532 (EH_FRAME_SECTION_ASM_OP): Define to IA_64.unwind section.
6533 (IA64_UNWIND_INFO, HANDLER_SECTION, IA64_UNWIND_EMIT): Define.
6534 (struct machine_function): Define.
6535 * config/ia64/ia64.md (bsp_value, set_bsp, eh_epilogue): New patterns.
6537 2000-04-25 Bruce Korb <bkorb@gnu.org>
6539 * fixinc/Makefile.in: make the removal of old programs more
6541 * fixinc/mkfixinc.sh: use the two new targets in the Makefile:
6542 install-bin and install-sh
6544 2000-04-25 Nick Clifton <nickc@cygnus.com>
6546 * integrate.c (FUNCTION_ATTRIBUTE_INLINABLE_P): If not
6547 defined, define to return zero.
6548 (function_cannot_inline_p): If a function has any target
6549 specific attributes, then use the macro
6550 FUNCTION_ATTRIBUTE_INLINABLE_P to allow the target to decide
6551 whether it can be inlined. If it cannot, issue a suitable
6554 * tm.texi: Add a new node 'Inlining' to document the new macro
6555 FUNCTION_ATTRIBUTE_INLINABLE_P.
6557 2000-04-25 Zack Weinberg <zack@wolery.cumb.org>
6559 * cpplib.h (struct cpp_buffer): Add 'mapped' flag; fix
6562 2000-04-25 Neil Booth <NeilB@earthling.net>
6564 Restore previous patch, plus the following fixes:
6566 * cpphash.c (_cpp_create_definition): Test PREV_WHITESPACE in
6567 flags, not CPP_OPEN_PAREN.
6568 * cpplex.c (expand_token_space, init_token_list,
6569 cpp_free_token_list): Put the dummy token at list->tokens[-1].
6570 (_cpp_lex_line, _cpp_lex_file): token list is 0-based.
6572 Tue Apr 25 14:06:40 2000 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
6574 * config/i386/freebsd.h (INT_ASM_OP): Define.
6576 Tue Apr 25 14:51:07 MET DST 2000 Jan Hubicka <jh@suse.cz>
6578 * loop.c (strength_reduce): Fix typo in the last checkin.
6580 Tue Apr 25 07:33:12 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6582 * stor-layout.c (finalize_record_size): Simplify to use existing
6584 (compute_record_mode): No longer static.
6585 * tree.h (compute_record_mode): New declaration.
6587 2000-04-25 Neil Booth <NeilB@earthling.net>
6589 * Revert my patch below until cause of build failures
6592 2000-04-25 Richard Henderson <rth@cygnus.com>
6594 * combine.c (combine_instructions): Add missing argument
6597 * toplev.c (rest_of_compilation): Delay sibcall optimization
6598 until after emit_eh_context.
6600 2000-04-24 Nick Clifton <nickc@redhat.com>
6602 * combine.c (combine_instructions): Do not try to combine a
6603 sequence of insns when the second insn has been replaced by a
6606 Mon Apr 24 17:34:18 2000 Mumit Khan <khan@xraylith.wisc.edu>
6608 * gcc.c (load_specs): New static function.
6609 (read_specs): Use it.
6611 * gcc.c (lookup_compiler): Make multiple passes for case
6612 insensitive filesystems.
6614 2000-04-24 Neil Booth <NeilB@earthling.net>
6616 * cpphash.c: replace HSPACE_BEFORE with PREV_WHITESPACE.
6617 * cpphash.h (_cpp_check_directive): new.
6618 * cpplex.c (handle_newline, cpp_free_token_list,
6619 init_trigraph_map, trigraph_ok, trigraph_replace,
6620 backslash_start, skip_block_comment, skip_line_comment,
6621 skip_whitespace, parse_name, parse_number, parse_string,
6622 copy_comment, _cpp_lex_line, spell_char, spell_string,
6623 spell_comment, spell_name, spell_other, _cpp_lex_file,
6624 _cpp_output_list): new.
6625 (expand_name_space): take length argument.
6626 (init_token_list): add comment list initialisation.
6627 (cpp_scan_line): use auto_expand_name_space. PREV_WHITESPACE
6628 instead of HSPACE_BEFORE.
6630 * cpplib.c (_cpp_check_directive): new
6631 * cpplib.h (cpp_name, PREV_WHITESPACE, PREV_COMMENT,
6632 DIGRAPH, UNSIGNED_INT, TOK_NAME): new.
6633 (HSPACE_BEFORE): delete.
6634 (TTYPE_TABLE): rearrange.
6635 (struct cpp_toklist): update.
6637 2000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6639 * aclocal.m4 (gcc_AC_HEADER_STRING, gcc_AC_FUNC_PRINTF_PTR,
6640 gcc_AC_C_VOLATILE, gcc_AC_FUNC_MKDIR_TAKES_ONE_ARG): Use the three
6641 argument form of AC_DEFINE.
6643 * configure.in (DEFAULT_LINKER, DEFAULT_ASSEMBLER,
6644 HAVE_INTTYPES_H, PACKAGE, VERSION, ENABLE_WIN32_REGISTRY,
6645 WIN32_REGISTRY_KEY, HAVE_GAS_SUBSECTION_ORDERING, HAVE_GAS_WEAK,
6646 HAVE_GAS_HIDDEN, HAVE_AS_REGISTER_PSEUDO_OP, AS_SPARC64_FLAG,
6647 HAVE_AS_OFFSETABLE_LO10, ENABLE_NEW_GXX_ABI): Likewise.
6649 * acconfig.h: Delete stubs made redundant by 3-arg AC_DEFINE.
6651 2000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6653 * Makefile.in (GCC_FOR_TARGET, GCC_CFLAGS, LIBGCC2_INCLUDES,
6654 deduced.h): Use -isystem, not -I, for including system headers.
6656 2000-04-24 Nick Clifton <nickc@cygnus.com>
6658 * config/fr30/fr30.md (addsi3): Do not use small add instruction if
6659 the source register is the frame pointer or arg pointer.
6660 (addsi3_small_int): Disallow if source register is the frame
6661 pointer or arg pointer.
6663 2000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6665 * configure.in (ENUM_BITFIELDS_ARE_UNSIGNED): Delete redundant
6666 call to AC_MSG_RESULT.
6668 2000-04-24 Martin v. Löwis <loewis@informatik.hu-berlin.de>
6670 * invoke.texi: Correct grammatical errors, document
6671 -fno-gnu-keywords as identical to -fno-asm for C++.
6673 2000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6675 * aclocal.m4: (GCC_HEADER_STRING, GCC_NEED_DECLARATION,
6676 GCC_NEED_DECLARATIONS, GCC_FUNC_VFPRINTF_DOPRNT,
6677 GCC_FUNC_PRINTF_PTR, GCC_PROG_LN_S, GCC_PROG_LN, GCC_C_VOLATILE,
6678 AC_GCC_C_LONG_DOUBLE, GCC_FUNC_MKDIR_TAKES_ONE_ARG,
6679 EGCS_PROG_INSTALL): Rename autoconf macros with prefix gcc_AC_.
6681 * configure.in (AC_GCC_C_LONG_DOUBLE, GCC_PROG_LN, GCC_PROG_LN_S,
6682 GCC_C_VOLATILE, EGCS_PROG_INSTALL, GCC_HEADER_STRING,
6683 GCC_FUNC_VFPRINTF_DOPRNT, GCC_FUNC_PRINTF_PTR,
6684 GCC_NEED_DECLARATIONS, GCC_FUNC_MKDIR_TAKES_ONE_ARG): Invoke with
6687 2000-04-24 Mumit Khan <khan@xraylith.wisc.edu>
6689 * c-pragma.c (push_alignment): Use BITS_PER_UNIT macro.
6690 (pop_alignment): Likewise.
6691 (handle_pragma_token): Likewise.
6693 2000-04-24 Robert Lipe <robertlipe@usa.net>
6695 * tree.h (tree_decl): Member `mode' now ENUM_BITFIELD.
6697 2000-04-24 Hiroyuki Machida <machida@sm.sony.co.jp>
6699 * combine.c (try_combine): Update reg_nonzero_bits of
6700 newi2pat before newpat.
6702 Mon Apr 24 10:19:48 MET DST 2000 Jan Hubicka <jh@suse.cz>
6704 * loop.c (strength_reduce): Simplify test to INSN_P.
6705 (record_giv): Attempt to simplify the add value, use CONSTANT_P
6706 expressions instead of CONST_INT.
6707 (express_from_1): Likewise.
6709 2000-04-24 Mark Mitchell <mark@codesourcery.com>
6711 * regs.h (reg_n_max): Don't declare.
6712 * flow.c (reg_n_max): Don't define.
6713 * regclass.c (renumber): Don't initialize to zero.
6714 (regno_allocated): Likewise.
6715 (reg_n_max): Define.
6716 (allocate_reg_info): Don't initialize unnecessarily.
6718 Mon Apr 24 00:21:36 2000 Jeffrey A Law (law@cygnus.com)
6720 * genattrtab.c (find_attr): Initialize unsigned_p, func_units_p
6721 and blockage_p in the newly allocated attribute.
6723 Sun Apr 23 20:16:49 2000 Alexandre Oliva <aoliva@cygnus.com>
6725 * config/mn10300/mn10300.md (addsi): `inc4' on address
6726 registers does not modify cc, but `inc' on an extended
6729 Sun Apr 23 16:24:35 2000 Denis Chertykov <denisc@overta.ru>
6731 * reload.c (find_equiv_reg): Checks all valueno regs
6732 as a reload_reg_p regs.
6734 2000-04-23 Zack Weinberg <zack@wolery.cumb.org>
6736 * cpphash.c (collect_objlike_expansion): Add sanity check.
6737 (special_symbol): Remove case T_CONST, T_XCONST, T_MCONST. If
6738 the buffer is the empty string, return. Mark __DATE__ and
6739 __TIME__ as XCONST nodes, not MCONST.
6740 (_cpp_macroexpand): Avoid pushing an empty buffer.
6741 (funlike_macroexpand): Don't pop token_buffer here.
6743 Sun Apr 23 18:37:53 2000 Alexandre Oliva <aoliva@cygnus.com>
6745 * config/mn10300/mn10300.h (REGNO_IN_RANGE_P): New macro.
6746 (REGNO_DATA_P, REGNO_ADDRESS_P, REGNO_SP_P): New macros.
6747 (REGNO_EXTENDED_P, REGNO_AM33_P): New macros.
6748 (REGNO_OK_FOR_BASE_P): Define in terms of them.
6749 (REGNO_OK_FOR_BIT_BASE_P, REGNO_OK_FOR_INDEX_P): Likewise.
6750 (REG_OK_FOR_BASE_P): Define in terms of the REGNO macro.
6751 (REG_OK_FOR_BIT_BASE_P, REG_OK_FOR_INDEX_P): Likewise.
6753 Sun Apr 23 22:23:08 MET DST 2000 Jan Hubicka <jh@suse.cz>
6755 * loop.c (simplify_giv_expr): Be more agressive on simplifying
6758 2000-04-23 Zack Weinberg <zack@wolery.cumb.org>
6760 * cpphash.h (struct definition): Move file, line, col members...
6761 (struct hashnode): ... here. Also add 'disabled' flag.
6762 (enum node_type): Add T_VOID, T_XCONST, T_FMACRO, and
6763 T_IDENTITY. Remove T_DISABLED.
6766 * cpphash.c (_cpp_dump_definition): Split out dump_DEFINITION.
6767 (collect_expansion): Split into collect_objlike_expansion and
6768 collect_funlike_expansion.
6769 (_cpp_macroexpand): Split out scan_arguments, stringify, and
6770 funlike_macroexpand.
6771 (_cpp_compare_defs): Rename compare_defs, make static.
6772 (_cpp_make_hashnode): Initialize hp->disabled.
6773 (macro_cleanup): Adjust for new token types. Clear
6775 (_cpp_create_definition): Move code here to determine what
6776 sort of macro it is, and code to check for redefinitions, from
6777 do_define. Implement a few simple cases without creating a
6779 (_cpp_macroexpand, special_symbol, _cpp_dump_definition):
6780 Handle the simple cases.
6781 (push_macro_expansion): Set buf->has_escapes and hp->disabled
6784 * cppinit.c (builtin_array): Change MCONST to XCONST
6786 * cpplex.c (maybe_macroexpand): Handle IDENTITY macros here;
6787 fix check for disabled and function-like macros.
6788 * cpplib.c (do_define): Move most logic to
6789 _cpp_create_definition.
6790 (do_undef): Handle new special token types.
6792 Sun Apr 23 14:27:44 MET DST 2000 Jan Hubicka <jh@suse.cz>
6794 * loop.c (maybe_eliminate_biv_1): Use GET_CODE (x) == CONST_INT instead
6795 of CONSTANT_P for mult_val; always use validate_change to update insn.
6797 2000-04-22 Zack Weinberg <zack@wolery.cumb.org>
6799 * cpphash.c (trad_stringify, add_pat): New functions.
6800 (collect_expansion): Restore support for -traditional syntax.
6801 Use trad_stringify and add_pat.
6802 (_cpp_macroexpand): Restore support for -traditional semantics.
6803 * cpplex.c (_cpp_scan_line): Don't change space_before if we
6804 get a COMMENT token.
6805 (_cpp_lex_token): Provide COMMENT tokens to caller if
6806 traditional and parsing_define_directive.
6807 (skip_comment): Warn about // comments if -Wtraditional.
6808 * cpplib.c (do_define): Fix typo. Create EMPTY nodes with
6810 (do_undef): Don't warn about undefining EMPTY nodes.
6812 Sat Apr 22 22:35:38 MET DST 2000 Jan Hubicka <jh@suse.cz>
6814 * loop.c (strength_reduce): Fix biv removal code.
6816 2000-04-22 Richard Henderson <rth@cygnus.com>
6818 * predict.c (estimate_probability): Examine both sides of
6819 a branch for no exits. Use 90% not 50% for predict taken.
6820 Reorg for one copy of note generation code.
6822 2000-04-22 Richard Henderson <rth@cygnus.com>
6824 * flow.c (mark_used_reg): Hack around rs6000 eliminable pic reg.
6826 2000-04-22 Richard Henderson <rth@cygnus.com>
6828 * diagnostic.c (init_output_buffer): Don't initialize format_args.
6829 (output_clear): Likewise.
6830 (output_printf): Use va_copy.
6831 (vline_wrapper_message_with_location): Likewise.
6832 (v_message_with_decl): Likewise.
6833 (line_wrapper_printf): VA_START infor buffer.format_args directly.
6834 * system.h (va_copy): Provide default implementation.
6836 2000-04-22 Richard Henderson <rth@cygnus.com>
6838 * predict.c (expected_value_to_br_prob): Don't bomb if op1 of
6839 the collected condition is not a constant.
6841 2000-04-22 Gabriel Dos Reis <gdr@codesourcery.com>
6843 * diagnostic.h: New file.
6845 * Makefile.in (diagnostic.o): Depends on diagnostic.h
6847 * diagnostic.c: Tweak. Rationalize the output logic. Adjust
6848 various function prototypes.
6849 (diagnostic.h): #include.
6850 (struct output_buffer): Move into diagnostic.h.
6851 (get_output_prefix): Rename to output_get_prefix. Export.
6852 (init_output_buffer): Export. Break out. Ajust intialization.
6853 (output_space_left, output_append): Export.
6854 (output_newline): Rename to output_add_newline. Export.
6855 (output_clear): Nullify additional output_buffer fields.
6856 (output_puts): Rename to output_add_string. Export.
6857 (dump_output): Rename to output_flush_on. Export.
6858 (build_location_prefix): Constify return-type.
6859 (emit_output_prefix): Rename to output_emit_prefix. Export.
6860 (set_real_maximum_length): New function.
6861 (output_set_maximum_length): Ditto
6862 (output_clear): Ditto.
6863 (output_add_character): Ditto.
6864 (output_add_integer): Ditto.
6865 (output_add_space): Ditto.
6866 (output_format): Ditto.
6867 (output_printf): Adjust buffer initialization.
6868 (vline_wrapper_message_with_location): Ditto.
6869 (v_message_with_decl): Ditto. Adjust call to output_puts
6870 and get_output_prefix.
6871 (default_print_error_function): Adjust buffer intialization.
6873 Sat Apr 22 06:45:04 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6875 * expr.c (preexpand_calls, case CALL_EXPR): Don't look at TYPE_SIZE
6878 Fri Apr 21 18:33:09 2000 Alexandre Oliva <aoliva@cygnus.com>
6880 * config/mn10300/mn10300.h (REGNO_REG_CLASS): Use NO_REGS instead
6883 Fri Apr 21 18:30:00 2000 Alexandre Oliva <aoliva@cygnus.com>
6885 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Provide more
6886 accurate data about SP moves.
6888 Fri Apr 21 18:28:28 2000 Alexandre Oliva <aoliva@cygnus.com>
6890 * config/mn10300/mn10300.h (ADDITIONAL_REGISTER_NAMES): Added
6891 aliases to AM33 registers.
6893 Fri Apr 21 18:26:17 2000 Alexandre Oliva <aoliva@cygnus.com>
6895 * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Added register 16
6896 to all EXTENDED bitmaps.
6898 Fri Apr 21 18:17:12 2000 Alexandre Oliva <aoliva@cygnus.com>
6900 * config/mn10300/mn10300-protos.h (mn10300_address_cost): Declare.
6901 * config/mn10300/mn10300.h (ADDRESS_COST): New macro.
6902 * config/mn10300/mn10300.c (mn10300_address_cost): New function.
6904 Fri Apr 21 18:11:56 2000 Alexandre Oliva <aoliva@cygnus.com>
6906 * config/mn10300/mn10300.md (movdi, movdf): Do not use `movu' when
6907 the operand is not constant.
6909 Fri Apr 21 14:58:29 2000 Denis Chertykov <denisc@overta.ru>
6911 * reload.c (find_equiv_reg): Checks all valueno and regno regs
6912 as a call-clobbered regs.
6914 Fri Apr 21 13:30:26 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6916 * rtl.c: Use NOTE_INSN_REPEATED_LINE_NUMBER and NOTE_INSN_RANGE_BEG.
6918 * rtl.def: Update comment.
6919 * function.c (expand_function): Use NOTE_INSN_REPEATED_LINE_NUMBER.
6920 * integrate.c (expand_inline_function): Likewise.
6921 * profile.c (branch_prob): Likewise.
6922 * ggc-common.c (ggc_mark_rtx_children): Use NOTE_INSN_RANGE_BEG.
6923 * print-rtl.c (print_rtx): Likewise.
6924 * haifa-sched.c (sched_analyze, unlink_other_notes): Likewise.
6925 (reemit_notes): Likewise; also use enum insn_note.
6927 * stor-layout.c (layout_decl): Only set DECL_MODE if not already set.
6928 (place_field): Properly compute know and actual alignment.
6930 * gengenrtl.c (gencode): Write obstack_alloc_rtx function start
6933 * cse.c (cse_insn): In (set REG0 REG1) case, remove a REG_EQUAL
6936 2000-04-21 Zack Weinberg <zack@wolery.cumb.org>
6938 * cpphash.c (struct arg, struct arglist): Const-ify strings.
6939 (warn_trad_stringify, duplicate_arg_p): New helper functions.
6940 (collect_expansion): Rewrite to scan over a token list.
6941 Remove -traditional support.
6942 (collect_formal_parameters): Rename to collect_params; rewrite
6943 to scan over a token list.
6944 (_cpp_create_definition): Adjust to scan a token list.
6945 (_cpp_macroexpand): Remove -traditional support.
6946 (_cpp_compare_defs): Whitespace is now canonicalized.
6947 (comp_def_part): Delete function.
6949 * cpphash.h: Update prototypes.
6950 * cpplex.c (init_token_list): Don't set lineno if there is no
6952 (pedantic_whitespace): New function.
6953 (_cpp_scan_line): Mark tokens that had hspace before. Don't
6954 consume a newline. Use pedantic_whitespace.
6955 (_cpp_lex_token): Remove support for -traditional macros.
6956 (_cpp_get_define_token): Delete.
6957 (_cpp_get_directive_token): Do the real work here. Use
6958 pedantic_whitespace.
6959 (_cpp_init_input_buffer): Initialize pfile->directbuf.
6961 * cpplib.c (get_macro_name): Delete.
6962 (do_define): Read the entire line into pfile->directbuf, then
6963 feed the token list to _cpp_create_definition.
6964 * cpplib.h (HSPACE_BEFORE): new define.
6965 (struct cpp_reader): Add a toklist member, "directbuf".
6967 * predict.c (estimate_probability): New heuristic: if a jump
6968 branches around a block with no successors, predict it taken.
6969 Disentangle control flow.
6971 2000-04-20 Richard Henderson <rth@cygnus.com>
6973 * loop.c (emit_iv_add_mult): Revert last change.
6975 2000-04-20 Zack Weinberg <zack@wolery.cumb.org>
6977 * cpplib.h (enum cpp_ttype): Add token types for all
6978 punctuators. Distinguish pp-numbers from valid C numbers.
6979 Give some tokens better names. Initialize from macro.
6980 (struct cpp_name, cpp_token, cpp_toklist): New data
6983 * cpplex.c (bump_column, expand_name_space,
6984 expand_token_space, init_token_list, cpp_output_list,
6985 _cpp_scan_line): New functions.
6986 (output_line_command): Add third argument, new line number.
6987 * cpphash.h: Update prototypes.
6988 * cppexp.c, cpphash.c, cpplib.c, scan-decls.c: Update for new
6991 2000-04-20 Richard Henderson <rth@cygnus.com>
6993 * config/alpha/alpha.c (alpha_emit_floatuns): Emit missing barrier.
6995 2000-04-20 Zack Weinberg <zack@wolery.cumb.org>
6997 * c-common.c (decl_attributes) [A_ALIAS]: Set TREE_USED on the
7000 Thu Apr 20 14:19:18 MET DST 2000 Jan Hubicka <jh@suse.cz>
7002 * loop.c (emit_iv_add_mult): Simplify it's input and emit
7003 REG_EQUAL note explaining the calculated value.
7005 * calls.c (expand_call): Avoid unnecesary precalculation
7006 and outgoing parameters space guarding for sibling calls.
7007 (store_one_arg): Likewise.
7009 Thu Apr 20 08:01:07 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7011 * toplev.c (enum dump_file_index, dump_file): Add DFI_sibling.
7012 (rest_of_compilation): Write sibling dump file and account
7013 for time as jump time.
7014 * invoke.texi: Update documentation on dump flags.
7016 2000-04-19 Marek Michalkiewicz <marekm@linux.org.pl>
7018 * avr.c: #include "system.h" instead of <stdio.h> and <stdlib.h>.
7020 2000-04-19 Zack Weinberg <zack@wolery.cumb.org>
7022 * cpphash.c (special_symbol): Represent an empty macro with
7023 "\r \r " not just "\r ".
7024 (_cpp_macroexpand): Correct condition for the foo ( ) special
7026 (unsafe_chars): Handle EOF as second argument.
7027 (push_macro_expansion): Simplify test for removing escape at
7028 end. Do not trim both escapes if there is no text in between.
7030 2000-04-19 Jim Blandy <jimb@redhat.com>
7032 * dwarf2out.c (DWARF2_ADDR_SIZE): New macro. Use it instead
7033 of PTR_SIZE, when appropriate.
7035 2000-04-19 Mark Mitchell <mark@codesourcery.com>
7037 * system.h (ONLY_INT_FIELDS): Make sure it is defined.
7038 (USE_ENUM_BITFIELDS): Fix typo.
7040 Wed Apr 19 12:14:55 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7042 * stor-layout.c (place_field): Set rli->offset_align properly.
7044 2000-04-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7046 * mips.h (BITS_PER_WORD, UNITS_PER_WORD, UNITS_PER_FPREG,
7047 INT_TYPE_SIZE, LONG_TYPE_SIZE, POINTER_SIZE, POINTER_BOUNDARY,
7048 PARM_BOUNDARY): Remove unnecessary casts.
7050 Wed Apr 19 12:02:37 MET DST 2000 Jan Hubicka <jh@suse.cz>
7052 * calls.c (precompute_arguments): Remove must_preallocate and
7054 (expand_call): Update call of precompute_arguments.
7056 * loop.c (check_insn_for_bivs, for_every_insn_in_loop,
7057 check_insn_for_givs): Break out from ...
7058 (strength_reduce) ... here; use for_every_insn_in_loop to call
7059 check_insn_for_givs.
7060 * loop.h (for_every_insn_in_loop): Declare.
7061 (loop_insn_callback): New type.
7063 2000-04-18 Zack Weinberg <zack@wolery.cumb.org>
7065 * cpplib.c (do_pragma_poison): Strings in the token buffer are
7068 Tue Apr 18 16:04:12 2000 Jim Wilson <wilson@cygnus.com>
7070 * config/ia64/sysv4.h (SELECT_SECTION): Use data_section if
7073 2000-04-18 Zack Weinberg <zack@wolery.cumb.org>
7075 * cccp.c, cexp.y, cexp.c, cccp.1: Removed.
7077 * configure.in: Delete --disable-cpplib option and all
7078 references to cpp_main.
7079 * configure: Regenerate.
7080 * Makefile.in: Remove all references to CCCP, CCCP_OBJS,
7081 @cpp_main@, cccp.c, cexp.c, cexp.y, cexp.output, cexp.o,
7082 cccp.o, cccp, or cppmain. Link cppmain.o straight to
7083 cpp$(exeext). Add --no-headers to makeinfo command line when
7084 generating INSTALL. Install and uninstall cpp.1 manpage, not
7086 * install.texi: Delete all references to cexp.y/cexp.c.
7087 Delete ancient instructions for compiling GCC on 3b1.
7088 * INSTALL: Regenerate.
7090 * cppfiles.c, cpplib.h, jump.c, protoize.c, c-lex.c, mips/t-ecoff,
7091 mips/t-elf, mips/t-r3900: Remove references to cccp.c.
7092 * convex.h, fx80.h, m68k.h, pdp11.h: Remove references to
7094 * xm-linux.h, xm-os2.h, romp.h: Remove definition of BSTRING,
7095 which is no longer tested anywhere.
7097 * cppinit.c (handle_option): Don't run error message through
7100 Tue Apr 18 14:16:47 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7102 * conflict.c (conflict_graph_add): Pass enum type to htab_find_slot.
7103 * cpperror.c (hashtab.h): Now include.
7104 * cppexp.c (hashtab.h): Likewise.
7105 * cpplex.c (hashtab.h): Likewise.
7106 * cppfiles.c (hashtab.h): Likewise.
7107 (find_include_file, _cpp_calc_hash, cpp_read_file): Pass enum type
7108 to htab_find_slot_with_hash.
7109 * cpphash.c (hashtab.h): Now include.
7110 (_cpp_lookup_slot): INSERT is now enum insert_option.
7111 * cpphash.h (_cpp_lookup_slot): Likewise.
7112 * cppinit.c (hashtab.h): Include earlier.
7113 (initialize_builtins): Pass enum to htab_find_slot.
7114 * cpplib.c (hashtab.h): Now include.
7115 (do_define, do_undef): Pass enum type to _cpp_lookup_slot.
7116 (do_pragma_poison, do_assert): Likewise.
7117 * emit-rtl.c (gen_rtx_CONST_INT): Pass enum to
7118 htab_find_slot_with_hash.
7119 * simplify-rtx.c (cselib_lookup_mem, cselib_lookup): Likewise.
7120 * tree.c (type_hash_add): Likewise.
7121 (build1): Minor cleanup.
7123 * ggc-common.c: Add missing blanks.
7124 * print-tree.c (print_node): Print DECL_OFFSET_ALIGN.
7125 * tree.h (DECL_OFFSET_ALIGN): Fix typo in comment.
7127 * stmt.c (mark_case_node): New function.
7128 (mark_case_nesting): Call it.
7130 * expmed.c (emit_store_flag): If comparing two-word integer
7131 with zero, can optimize NE, EQ, GE, and LT.
7133 * c-decl.c (mark_binding_level): Use 'for' instead of `while'.
7134 * conflict.c: Minor cleanups.
7135 * optabs.c: Add blank line
7136 * simplify-rtx.c: Minor cleanups.
7138 2000-04-18 Stan Cox <scox@cygnus.com>
7140 * gengenrtl.c (genlegend): Fix misspelling.
7142 2000-04-18 Robert Lipe <robertlipe@usa.net>
7144 * configure.in (ENUM_BITFIELDS_ARE_UNSIGNED): Added. Check that
7145 bitfields of the host compiler are not signed quantities.
7146 * config.in: Regenerate.
7147 * configure: Regenerate.
7148 * system.h (USE_ENUM_BITFIELDS): Added.
7149 (ENUM_BITFIELDS): Added.
7150 * rtl.h (rtx_def): Members `code', `mode', now ENUM_BITFIELD.
7151 (SHORT_ENUM_BUG): Deleted.
7152 * tree.h (tree_common): Members `code', `mode', `built_in_class',
7154 * config/i386/xm-sco.h (ONLY_INT_FIELDS): Deleted.
7155 (CODE_FIELD_BUG): Likewise.
7156 * config/m68k/x-apollo68 (CC): Deleted SHORT_ENUM_BUG.
7158 * config/m68k/x-ccur (X_CFLAGS): Likewise.
7160 2000-04-18 Mark Mitchell <mark@codesourcery.com>
7162 * cpplex.c (_cpp_lex_token): Don't call CPP_BUMP_LINE when the
7165 2000-04-17 Zack Weinberg <zack@wolery.cumb.org>
7167 * cppexp.c (lex): Don't assume tokens are NUL terminated.
7168 * cpplib.c (do_include, do_import, do_include_next,
7169 read_line_number, detect_if_not_defined): Likewise.
7170 * cpphash.c (collect_expansion): Likewise.
7171 (special_symbol, _cpp_macroexpand): Check return from
7173 * cpphash.h (CPP_NUL_TERMINATE, CPP_NUL_TERMINATE_Q): Delete
7174 macros. Delete all uses.
7176 * gcc.dg/cpp-mi.c: Add two more test cases.
7177 * gcc.dg/cpp-mind.h, gcc.dg/cpp-mindp.h: New files.
7179 2000-04-17 Richard Henderson <rth@cygnus.com>
7181 * bb-reorder.c (fixup_reorder_chain): Don't look up new block again.
7182 (reorder_basic_blocks): If no epilogue in rtl, force last block last.
7184 2000-04-17 Mark Mitchell <mark@codesourcery.com>
7186 * function.c (expand_function_start): Use hard_function_value to
7187 compute the RTL to use for DECL_RESULT.
7189 Mon Apr 17 23:35:29 MET DST 2000 Jan Hubicka <jh@suse.cz>
7191 * i386.c (athlon_cost): Fix lea, divide and XFmode move costs.
7192 (x86_integer_DFmode_moves, x86_partial_reg_dependency,
7193 x86_memory_mismatch_stall): New global variables.
7194 (ix86_adjust_cost): Handle MEMORY_BOTH on places MEMORY_STORE was only
7195 alloved; fix load penalties for Athlon.
7196 * i386.h (x86_integer_DFmode_moves, x86_partial_reg_dependency,
7197 x86_memory_mismatch_stall): Declare.
7198 (TARGET_INTEGER_DFMODE_MOVES, TARGET_PARTIAL_REG_DEPENDENCY,
7199 TARGET_MEMORY_MISMATCH_STALL): New.
7200 * i386.md (athlon scheduling parameters): Fix latencies according to
7201 Athlon Optimization Manual.
7202 (sahf, xchg, fldcw, leave instruction patterns): Set athlon_decode to
7204 (fsqrt instruction patterns): Set athlon_decode to direct.
7205 (movhi_1): Promote for TARGET_PARTIAL_REG_DEPENDENCY and for
7206 PARTIAL_REGISTER_STALL with !TARGET_HIMODE_MATH machines.
7207 (movqi_1): Handle promoting correctly for TARGET_PARTIAL_REG_DEPENDENCY
7208 and TARGET_PARTIAL_REGISTER_STALL machines.
7209 (pushdf_nointeger): New pattern.
7210 (pushdf_integer): Rename from pushdf.
7211 (movdf_nointger): Enable for !TARGET_INTEGER_DFMODE_MOVES machines.
7212 (movdf_intger): Disable for !TARGET_INTEGER_DFMODE_MOVES machines.
7214 2000-04-17 Richard Henderson <rth@cygnus.com>
7216 * loop.c (canonicalize_condition): Add WANT_REG argument.
7217 Stop the search if we match it.
7218 * expr.h (canonicalize_condition): Update decl.
7219 * predict.c (expected_value_to_br_prob): Use it. Track last
7220 expected value note.
7221 (find_expected_value): Remove.
7223 * reorg.c (mostly_true_jump): Always use BR_PROB if present.
7225 2000-04-17 Zack Weinberg <zack@wolery.cumb.org>
7227 * aclocal.m4 (AM_GNU_GETTEXT): Don't AC_REQUIRE([AC_FUNC_MMAP]).
7228 (AC_FUNC_MMAP_FILE): New macro, tests read-only private map of
7230 * configure.in: Call AC_FUNC_MMAP_FILE.
7231 * configure: Regenerate.
7232 * config.in: Regenerate.
7234 * intl/loadmsgcat.c: Test HAVE_MMAP_FILE not HAVE_MMAP.
7235 * fixinc/fixincl.c: Likewise.
7237 2000-04-17 Richard Henderson <rth@cygnus.com>
7239 * builtins.c (expand_builtin_expect): New.
7240 (expand_builtin): Call it.
7241 * builtins.def (BUILT_IN_EXPECT): New.
7242 * c-common.c (c_common_nodes_and_builtins): Declare __builtin_expect.
7243 * extend.texi: Document it.
7245 * predict.c (expected_value_to_br_prob): New.
7246 (find_expected_value): New.
7247 * basic-block.h (expected_value_to_br_prob): Declare.
7248 * toplev.c (rest_of_compilation): Invoke it.
7250 * rtl.h (NOTE_EXPECTED_VALUE): New.
7251 (NOTE_INSN_EXPECTED_VALUE): New.
7252 * rtl.c (note_insn_name): Update.
7253 * print-rtl.c (print_rtx): Reorg NOTE_LINE_NUMBER special
7254 cases; handle NOTE_INSN_EXPECTED_VALUE.
7256 2000-04-17 Jakub Jelinek <jakub@redhat.com>
7258 * config/sparc/sparc.c (eligible_for_sibcall_delay): Cannot use
7259 leaf sibcall delay slot if flag_pic.
7260 (output_sibcall): Always emit call for leaf sibcall if flag_pic.
7262 2000-04-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7264 * Makefile.in (stmp-fixproto): Acknowledge errors in fixproto.
7266 * fixproto: If fix-header fails, exit with an error.
7268 Mon Apr 17 14:59:36 MET DST 2000 Jan Hubicka <jh@suse.cz>
7270 * cse.c (struct check_depdendence_data): New.
7271 (check_dependence): New function.
7272 (invalidate): Use check_depdenence.
7274 2000-04-16 Mark Mitchell <mark@codesourcery.com>
7276 * dwarf2out.c (DWARF_CIE_DATA_ALIGNMENT): Adjust, now that
7277 UNITS_PER_WORD is unsigned.
7279 * tree.h (struct tree_common): Remove misleading comment.
7281 2000-04-16 Dave Pitts <dpitts@cozx.com>
7283 * Makefile.in ($(srcdir)/c-parse.y: c-parse.in): Enclose the whole
7284 message in quotes. Otherwise, IBM's make program treats the '#' as the
7285 start of a comment and ignores the remainder of the line.
7287 * c-lex.c (yylex): Change for EBCDIC, lower case characters preceed
7289 * cccp.c (initialize_char_syntax): Allow for holes in EBCDIC.
7290 * cexp.y (initialize_random_junk): Likewise.
7291 * cppfiles.c (find_include_file): Cast alloca return value.
7292 * cppinit.c (initialize_standard_includes): Likewise.
7293 * cpplib.c (cpp_define, cpp_undef): Likewise.
7294 * defaults.h (ASM_OUTPUT_ASCII): Use ISPRINT.
7295 * final.c (output_asm_insn): Allow for holes in EBCDIC.
7296 * fold-const.c (CHARMASK): New.
7297 (real_hex_to_f): Use it.
7298 * real.c (CHARMASK): New.
7299 (etoasc, asctoeg): Use it.
7300 (asctoeg): EBCDIC lower case characters preceed upper case.
7302 * i370.c (mvs_add_label): Change spacing for coding conventions.
7303 * i370.h (ASM_OUTPUT_CASE_LABEL): Change to the data CSECT for the
7304 outputing case vectors.
7305 (ASM_OUTPUT_CASE_END): New, put assembler back into code CSECT.
7306 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove page check,
7307 since vector in in the data CSECT.
7308 (ASM_OUTPUT_REG_POP, ASM_OUTPUT_REG_PUSH): Restore to correct operation.
7309 * i370.md (Many patterns): Put the length in the XL directives.
7310 (movdi): Put back STM and MVC in definition.
7311 (floatsidf2): Correct TARGET_ELF_ABI pattern and add back the LE370
7312 pattern using the TCA.
7313 * oe.h (CPP_SPEC): Added to allow trigraphs.
7314 * xm-oe.h (HOST_BITS_PER_LONGLONG): Change to 32. IBM's compiler does
7315 not support the "long long" type.
7317 2000-04-16 Mark Mitchell <mark@codesourcery.com>
7319 * config/mips/mips-protos.h (mips_legitimate_address_p): New
7321 (mips_reg_mode_ok_for_base_p): Likewise.
7322 * config/mips/mips.h (REG_OK_STRICT_P): Don't define.
7323 (REG_OK_FOR_INDEX_P): Define unconditionally.
7324 (REG_MODE_OK_FOR_BASE_P): Use mips_reg_mode_ok_for_base_p.
7325 (GO_IF_LEGITIMATE_ADDRESS): Use mips_legitimate_address_p.
7326 * config/mips/mips.c (mips16_simple_memory_operand): Adjust now
7327 that GET_MODE_SIZE is unsigned.
7328 (mips_reg_mode_ok_for_base_p): Define.
7329 (mips_legitimate_address_p): Likewise. Adjust now
7330 that GET_MODE_SIZE is unsigned.
7331 (block_move_loop): Make the number of bytes unsigned.
7332 (expand_block_move): Likewise.
7333 (function_arg): Make the loop counter unsigned to match the
7336 2000-04-16 Richard Henderson <rth@cygnus.com>
7338 * rtl.h (enum insn_note): New enumeration. Subsume
7339 NOTE_INSN_DELETED and friends.
7340 (GET_NOTE_INSN_NAME): Adjust index by NOTE_INSN_BIAS.
7341 * rtl.c (note_insn_name): Tweak string order.
7343 2000-04-15 Zack Weinberg <zack@wolery.cumb.org>
7345 * cpplex.c (_cpp_read_and_prescan): Enlarge len by setting it
7348 * cpplex.c (output_line_command): Remove debugging prints.
7349 (cpp_output_tokens): Don't write out a zero-length buffer or
7350 try to see if it has a newline in it.
7351 (_cpp_expand_to_buffer): Copy the source buffer before pushing.
7352 (_cpp_read_and_prescan): Move shift-down of pushback bytes to
7353 the end of the loop. Use memmove. Don't read past the end of
7354 the buffer. Remove trailing newlines from error messages.
7356 2004-04-16 Neil Booth <NeilB@earthling.net>
7358 * cpphash.h (SYNTAX_INCLUDE, SYNTAX_ASSERT, directive_handler): new.
7359 * cpplib.c: Add new syntax flags to directive table, and
7362 2000-04-15 Ulrich Drepper <drepper@redhat.com>
7364 * i386.c (ix86_expand_epilogue): Yes, the x86 can pop 64k at once
7367 2000-04-15 David Edelsohn <edelsohn@gnu.org>
7369 * toplev.c (display_help): Prefix "f" to "sched-verbose=".
7370 * haifa-sched.c: Update -fsched-verbose comments to use "=".
7372 Sat Apr 15 10:59:19 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7374 * Makefile.in (ggc-page.o): Now includes toplev.h.
7375 * ggc-page.c (toplev.h): Now included.
7376 (gc_time): Remove declaration.
7377 (ggc_collect): TIME now long.
7378 * toplev.c (parse_time, varasm_time, gc_time): Still global; all
7380 * toplev.h (gc_time, parse_time, gc_time): New declarations.
7382 * toplev.c: Make *_time variable long to reduce chance of overflow.
7383 (TIMEVAR): Likewise for `otime'.
7384 (print_time): Arg is now long; compute percentage in FP and round.
7385 * toplev.h (print_time): Arg is long.
7387 * tree.c: Minor whitespace changes.
7389 * configure.in (alpha*-*-*): Add config/alpha/t-alpha.
7390 * configure: Rebuilt.
7391 * libgcc2.c (__fixunstfDI): Renamed from __fixunstfdi.
7392 (__fixunsxfDI): Renamed from __fixunsxfdi.
7393 (__fixunsdfDI): Renamed from __fixunsdfdi.
7394 (__fixunssfDI): Renamed from __fixunssfdi.
7395 (__floatdisf): Use proper type in REP_BIT macro.
7396 (__fixunsxfSI): Renamed from __fixunsxfsi.
7397 (__fixunsdfSI): Renamed from __fixunsdfsi.
7398 (__fixunssfSI): Renamed from __fixunssfsi.
7399 * libgcc2.h: Add cases for MIN_UNITS_PER_WORD > 4.
7400 Change location of macros and upper-case some names as above.
7401 * longlong.h ([alpha]): Use PARAMS, not __P in decl of __udiv__qrnnd.
7402 * config/alpha/t-alpha, config/alpha/qrnnd.asm: New files.
7404 * varasm.c (assemble_variable): Add cast to remove warning.
7405 (immed_real_const_1): Only use CONST[01]_RTX if not in nested function.
7407 * flow.c (count_basic_blocks, find_basic_blocks_1): Remove last change.
7408 * optabs.c (emit_libcall_block): If have REG_EH_REGION, update
7409 region number to -1.
7411 2000-04-15 Richard Earnshaw (rearnsah@arm.com)
7413 * emit-rtl.c (unshare_all_rtl_again): Unmark everything, then
7414 call unshare_all_rtl.
7416 * arm.md (movhi): REGNO_POINTER_ALIGN is now bits.
7418 Fri Apr 14 16:58:45 2000 Jim Wilson <wilson@cygnus.com>
7420 * config/ia64/lib1funcs.asm (__divdi3, __moddi3, __udivdi3, __umoddi3):
7421 Use .s1 not .s0 for all FP instructions.
7423 2000-04-14 Zack Weinberg <zack@wolery.cumb.org>
7425 * cpplex.c (cpp_output_tokens, cpp_scan_buffer_nooutput): New public
7427 (safe_fwrite, output_line_command): New static functions.
7428 (cpp_expand_to_buffer): Now private to cpplib.
7429 (cpp_scan_buffer): Take a printer.
7431 * cpphash.h: Update prototypes.
7432 * cpplib.h: Update prototypes.
7434 (cpp_buffer): Remove last_nominal_fname.
7435 (cpp_reader): Remove lineno.
7437 * cppmain.c: Use a cpp_printer.
7438 * fix-header.c: No need to inhibit line commands. Call
7439 cpp_start_read with no printer.
7441 * cpperror.c (cpp_notice_from_errno): Provide default name.
7442 * cppfiles.c (make_IHASH, _cpp_fake_ihash): New functions.
7443 (find_include_file, cpp_read_file): Use make_IHASH.
7444 (file_cleanup): Set control_macro and clear
7445 input_stack_listing_current here.
7446 (_cpp_execute_include): Don't output entering-file marker.
7447 * cpphash.c (special_symbol): Look for the line number in the
7448 buffer, not the reader.
7449 (_cpp_macroexpand): No need to disable line commands.
7450 (_cpp_dump_definition): No need to generate line commands.
7451 (dump_hash_helper): Remove excess newline from output.
7452 * cppinit.c (dump_special_to_buffer): No need to generate line
7454 (cpp_printer_init): New.
7455 (cpp_start_read): Take a printer, and start it up if it's not
7456 NULL. No need to generate line commands.
7457 (cpp_finish): Expect no buffers stacked at all. Take a
7458 printer argument, and flush the output buffer if it's not
7460 * cpplex.c (_cpp_lex_token): Return EOF if there's no buffer.
7461 Don't put two hashes at the beginning of an assertion.
7462 (cpp_get_token): Don't increment pfile->lineno or emit line
7463 commands here. Return EOF if there's no buffer when we get
7465 * cpplib.c (do_define, skip_if_group):
7466 No need to disable line commands.
7467 (_cpp_output_line_command): Delete function.
7468 (do_line): Don't emit line commands here, but set things up so
7469 they will be emitted if necessary. Use _cpp_fake_ihash to
7470 make unique nominal_fnames if necessary.
7471 (do_elif, do_else, _cpp_handle_eof): Call cpp_error_with_line
7472 with 0 for column, not -1.
7473 (_cpp_handle_eof): Don't set the control macro here. Don't
7474 clear input_stack_listing_current here. Don't emit line
7477 2000-04-14 Geoff Keating <geoffk@cygnus.com>
7479 * config/rs6000/sysv4.h (LINK_START_SOLARIS_SPEC): Define to empty
7480 always, use the default SVR4 start address.
7482 * config/rs6000/linux.h (LINK_SPEC): Don't define.
7483 (LINK_SHLIB_SPEC): Define.
7484 (LINK_START_DEFAULT_SPEC): Define.
7485 (LINK_OS_DEFAULT_SPEC): Define.
7487 * config/rs6000/sysv4.h (ENDFILE_SPEC): Use the %(endfile_*) macros.
7489 * config/rs6000/eabi.asm (__eabi): Call __init rather than
7490 __do_global_ctors to handle constructors.
7491 * config/rs6000/sysv4.h (STARTFILE_ADS_SPEC): Use crtbegin.
7492 (STARTFILE_YELLOWKNIFE_SPEC): Likewise.
7493 (STARTFILE_MVME_SPEC): Likewise.
7494 (STARTFILE_SIM_SPEC): Likewise.
7495 (ENDFILE_ADS_SPEC): Use crtend.
7496 (ENDFILE_YELLOWKNIFE_SPEC): Likewise.
7497 (ENDFILE_MVME_SPEC): Likewise.
7498 (ENDFILE_SIM_SPEC): Likewise.
7499 (STARTFILE_SOLARIS_SPEC): Use crtbegin/crtbeginS.
7500 (ENDFILE_SOLARIS_SPEC): Use crtend/crtendS.
7501 (STARTFILE_LINUX_SPEC): Use crtbeginS for shared objects.
7502 (ENDFILE_LINUX_SPEC): Use crtendS for shared objects.
7503 * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Don't build eabi-ctors.o.
7504 (EXTRA_MULTILIB_PARTS): Build crtbeginS/crtendS.
7505 (CRTSTUFF_T_CFLAGS_S): Define.
7506 * config/rs6000/eabi-ctors.c: Delete.
7508 * config/rs6000/eabi-ci.asm (__init): Align stack to 16-byte
7511 * config/rs6000/eabi-cn.asm (__init): Allow for 16-byte stack frame.
7515 Fri Apr 14 16:09:02 2000 Jim Wilson <wilson@cygnus.com>
7517 * combine.c (force_to_mode, case LSHIFTRT): Check that shift shift
7518 plus mask size is smaller or equal to the mode size.
7520 Fri Apr 14 18:07:30 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7522 * print-rtl.c (print_rtx, case NOTE): Don't blow up if NOTE_BASIC_BLOCK
7525 * expr.c (reload.h): Now included.
7526 (emit_block_move): Set volatile_ok when checking for movstr.
7527 (emit_move_1): Check for replacements in addresses in multi-word case.
7528 * Makefile.in (expr.o): Now includes reload.h.
7530 * flow.c (count_basic_blocks): Remove unused var PREV_CALL.
7531 Never have a LIBCALL end a basic block.
7532 (find_basic_blocks_1): Likewise.
7533 Reorganize CALL_INSN cases.
7535 * sbitmap.h (EXECUTE_IF_SET_IN_SBITMAP): Revert last change.
7537 Fri Apr 14 10:54:22 2000 Jim Wilson <wilson@cygnus.com>
7539 * config/ia64/lib1funcs.asm (__ia64_nonlocal_goto): Drop obsolete
7540 completers from mov.ret instruction.
7542 2000-04-14 Richard Henderson <rth@cygnus.com>
7544 * fold-const.c (extract_muldiv): Don't distribute and widen
7545 multiply across plus for non-sizetype unsigned types.
7547 2000-04-14 Richard Henderson <rth@cygnus.com>
7549 * flow.c (find_auto_inc): Don't autoinc eliminable registers.
7550 If the original source is dead in the incr insn, it's dead now.
7552 Fri Apr 14 07:40:32 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7554 * stor-layout.c (layout_decl): Properly compare KNOWN_ALIGN to
7555 see if DECL_BIT_FIELD needs to still be set.
7557 * tree.h (struct tree_type): Make PRECISION 9 bits and MODE 7.
7559 * dbxout.c (dbxout_type, case INTEGER_TYPE): Don't call
7560 print_int_cst_octal with something that's not an INTEGER_CST.
7562 * config/alpha/alpha.c (alpha_emit_floatuns): Ensure we pass a REG
7563 and not a SUBREG to a FLOAT rtl.
7565 Thu Apr 13 19:39:56 2000 Clinton Popetz <cpopetz@cygnus.com>
7567 * emit-rtl.c (try_split): Avoid infinite loop if the split
7568 results in a sequence that contains the original insn.
7570 2000-04-13 Andreas Jaeger <aj@suse.de>
7572 * config/mips/mips.c (expand_block_move): Pass alignment
7573 argument to move_by_pieces in bits, not bytes.
7575 * config/mips/linux.h (CPP_PREDEFINES): Also define __PIC__ and
7576 __pic__ for little endian.
7578 2000-04-13 Andreas Jaeger <aj@suse.de>
7580 * config/i386/i386-protos.h: Add prototype for
7581 uno_comparison_operator.
7583 Thu Apr 13 15:55:08 MET DST 2000 Jan Hubicka <jh@suse.cz>
7585 * alias.c (nonlocal_reference_p): Take care of CALL_INSNS's fusage.
7586 * calls.c (ECF_PURE): New flag.
7587 (emit_call_1): Handle ECF_PURE calls.
7588 (initialize_argument_information): Unset ECF_PURE flag too.
7589 (precompute_arguments): Precompute for ECF_PURE too.
7590 (expand_call): Handle ECF_PURE calls too.
7591 (emit_library_call_value_1): Rename no_queue argument to fn_type,
7592 accept value of 2 as pure function.
7593 (emit_library_call_value, emit_library_call): Rename no_queue argument
7595 * optabs.c (prepare_cmp_insn): Pass fn_type 2 to memcmp call.
7597 * tree.h (DECL_IS_PURE): New macro.
7598 (struct tree_decl): Add pure_flag.
7599 * c-common.c (enum attrs): Add attribute "pure".
7600 (init_attributes): Initialize attribute "pure"
7601 (decl_attributes): Handle attribute "pure".
7602 * extend.texi (Attribute "pure"): Document.
7603 * calls.c (expand_call): Add (mem:BLK (scratch)) to "equal from"
7605 (flags_from_decl_or_type): Support attribute "pure".
7607 2000-04-13 Jason Merrill <jason@casey.cygnus.com>
7609 * cpplex.c (_cpp_lex_token): Handle digraphs. Don't null-terminate
7610 the token except for numbers and identifiers.
7612 Thu Apr 13 00:09:16 EDT 2000 John Wehle (john@feith.com)
7614 * i386.c (ix86_expand_binary_operator,
7615 ix86_expand_unary_operator): Check no_new_pseudos
7616 instead of reload_in_progress and reload_completed.
7617 (ix86_split_ashldi, ix86_split_ashrdi,
7618 ix86_split_lshrdi): Check no_new_pseudos instead
7619 of reload_completed.
7621 2000-04-12 Jeffrey A Law (law@cygnus.com)
7623 * function.c (purge_addressof): Unshare any shared rtl created by
7624 purge_addressof and its children.
7626 2000-04-12 Mark Mitchell <mark@codesourcery.com>
7628 * function.c (aggregate_value_p): VOID_TYPE nodes are never
7631 2000-04-05 Andreas Jaeger <aj@suse.de>
7633 * config/mips/linux.h (SUBTARGET_ASM_SPEC): Use proper flags if
7634 not compiling PIC code, add flags for mabi=64.
7635 (SUBTARGET_CPP_SIZE_SPEC): New.
7636 (SUBTARGET_CPP_SPEC): New.
7637 (CPP_PREDEFINES): Define __PIC__ and __pic__. PIC code is default
7638 for MIPS/Linux and lots of code needs these defines.
7640 Wed Apr 12 22:44:11 2000 Hans-Peter Nilsson <hp@axis.com>
7642 * reorg.c (fill_slots_from_thread): Check side_effects_p when
7643 trying the "opposite arithmetic" approach.
7645 Wed Apr 12 20:51:20 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
7647 * sh.h (STRUCT_VALUE): Just 0 for TARGET_HITACHI.
7648 (struct sh_args): Add new field force_mem.
7649 (INIT_CUMULATIVE_ARGS): Initialize it.
7650 (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Act on it.
7652 Wed Apr 12 17:20:41 MET DST 2000 Jan Hubicka <jh@suse.cz>
7654 * calls.c (expand_call): Do not reverse args in "equal from" field.
7655 (emit_library_call_value_1): Emit_libcall_block for const and pure
7658 Wed Apr 12 16:00:25 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
7660 * reload1.c (reload_combine): Don't enable optimization for fixed
7661 registers when encountering a BARRIER.
7663 Wed Apr 12 15:54:11 MET DST 2000 Jan Hubicka <jh@suse.cz>
7665 * builtins.c (expand_builtin_memcmp): Do expansion even with
7666 !HAVE_cmpstrsi, do libcall when gen_strcmpsi fails.
7668 * calls.c (expand_call): Do NO_DEFER_POP unconditionally once
7669 stack is propertly aligned; add sanity checking for aligned
7671 (expand_library_call_value_1): Add sanity checking for aligned
7674 Wed Apr 12 07:51:54 2000 Catherine Moore <clm@cygnus.com>
7676 * calls.c (emit_library_call_value_1): Change 3rd arg to
7677 locate_and_pad_parm to disregard the setting of partial.
7679 Wed Apr 12 08:47:38 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7681 * tree.c (unsave_expr_now_r, unsafe_for_reeval): Properly do TREE_LIST.
7683 * print-rtl.c (print_rtx): For CALL_PLACEHOLDER, output the
7684 CALL_INSN from the normal case.
7686 Fri Apr 7 12:23:04 MET DST 2000 Jan Hubicka <jh@suse.cz>
7688 * i386.c (x86_sub_esp_4, x86_sub_esp_8, x86_add_esp_4, x86_add_esp_8):
7689 New global variables.
7690 (ix86_emit_epilogue_adjustment): Do not attempt to use pop for the
7692 * i386.h (x86_sub_esp_4, x86_sub_esp_8, x86_add_esp_4, x86_add_esp_8):
7694 (TARGET_SUB_ESP_4, TARGET_SUB_ESP_8, TARGET_ADD_ESP_4,
7695 TARGET_ADD_ESP_8): New macros.
7696 * i386.md: Add peep2s to convert esp adjustments to push and pop
7698 (pushsi_prologue, popsi_epilogue): New patterns.
7700 2000-04-12 Jakub Jelinek <jakub@redhat.com>
7702 * real.c (toe64): Remove stale #endif from the last change.
7704 2000-04-12 Stephen L Moshier <moshier@mediaone.net>
7706 * real.h (MAX_LONG_DOUBLE_TYPE_SIZE): Comment.
7707 * real.c (toe64): Revert previous change.
7709 2000-04-12 Jakub Jelinek <jakub@redhat.com>
7711 * objc/objc-act.c: Include ggc.h.
7712 (objc_tree_index, objc_global_trees): Convert most of the
7713 static tree variables into a static array with previous names
7715 (objc_ellipsis_node): New variable.
7716 (lang_init): Call objc_act_parse_init and c_parse_init.
7717 Create objc_ellipsis_node.
7718 (build_selector_translation_table): Use objc_ellipsis_node instead
7720 (hack_method_prototype): Likewise.
7721 (get_arg_type_list): Likewise.
7722 (start_method_def): Likewise.
7723 (continue_method_def): Likewise.
7724 (gen_method_decl): Likewise.
7725 (ggc_mark_imp_list): New function.
7726 (ggc_mark_hash_table): New function.
7727 (objc_act_parse_init): New function.
7728 * objc/objc-act.h (objc_ellipsis_node): Add extern variable.
7729 * c-parse.in (c_parse_init): For objc add roots of objc specific
7730 local tree variables.
7731 * objc/objc-parse.y: Rebuilt.
7732 * objc/objc-parse.c: Rebuilt.
7733 (opt_parm_list): Use objc_ellipsis_node instead of (tree)1.
7735 Wed Apr 12 01:00:44 EDT 2000 John Wehle (john@feith.com)
7737 * cse.c (delete_trivially_dead_insns): Also delete insns
7738 that copy a register to itself where the destination is
7741 2000-04-11 Richard Henderson <rth@cygnus.com>
7743 * flow.c (struct propagate_block_info): Add new_dead, new_live.
7744 (propagate_block): Initialize them. Use them in parallel instead
7745 of one tmp variable, ie revert much of the 0408 and 0407 functional
7746 changes, but keep the structural changes.
7747 (mark_set_regs): Take new_dead from propagate_block_info instead.
7748 (mark_set_1, mark_set_reg): Likewise.
7749 (mark_used_regs): Likewise with new_live.
7750 (mark_used_reg): Likewise. Revert 0408 change.
7752 2000-04-11 Nick Clifton <nickc@cygnus.com>
7754 * config/arm/arm.h: (INCOMING_RETURN_ADDR_RTX): Remove Dwarf2
7756 (DWARF_FRAME_RETURN_COLUMN): Remove Dwarf2 restriction.
7758 2000-04-11 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
7760 * config/elfos.h (SELECT_SECTION): Decide whether to use a data or
7761 const section to output a CONSTRUCTOR based on the same conditions
7764 Tue Apr 11 09:55:59 2000 Jeffrey A Law (law@cygnus.com)
7766 * pa/long-double.h (FIX_TRUNCTFSI2_LIBCALL): Tweak for PA64.
7767 * pa/pa-protos.h (output_call): Add additional argument indicating
7768 if the call is a sibling/tail call.
7769 (compute_zdepdi_operands, output_64bit_and): Prototype new functions.
7770 (compute_64bit_ior, cmpib_comparison_operator): Likewise.
7771 (function_arg, function_arg_partial_nregs): Likewise
7772 * pa/pa.c (override_options): Always set flag_pic for TARGET_64BIT.
7773 (emit_move_sequence): Zero extend certain constants as needed
7775 (compute_zdepdi_operands, output_64bit_and): New functions.
7776 (output_64bit_ior, function_arg): Likewise.
7777 (cmpib_comparison_operator, function_arg_partial_nregs): Likewise.
7778 (compute_frame_size, hppa_expand_prologue): Handle TARGET_64BIT.
7779 (hppa_expand_epilogue, return_addr_rtx, hppa_va_arg): Likewise.
7780 (hppa_builtin_saveregs, output_cbranch, output_bb): Likewise.
7781 (output_bvb): Likewise.
7782 (output_millicode_call): Return pointer is in %r2 for TARGET_64BIT.
7783 (output_call): New argument 'sibcall'. Generate sibcall sequences
7785 (print_operand); Handle cases 'Q', 'p', and 'z' for TARGET_64BIT. For
7786 (ouput_arg_descriptor): Do not emit argument descriptors for
7788 * pa/pa.h (TARGET_PA_11, TARGET_PA_20): Only define if not already
7790 (TARGET_64BIT, PROMOTE_FUNCTION_RETURN): Define.
7791 (FUNCTION_OK_FOR_SIBALL): Define.
7792 (CPP_PA10_SPEC, CPP_PA11_SPEC, CPP_PA20_SPEC): Define.
7793 (CPP_CPU_DEFAULT_SPEC, SUBTARGET_EXTRA_SPECS, EXTRA_SPECS): Likewise.
7794 (CPP_SPEC): Use new spec infrastructure.
7795 (BITS_PER_WORD, UNITS_PER_WORD): Handle TARGET_64BIT.
7796 (STACK_BOUNDARY, FUNCTION_BOUNDARY, PIC_OFFSET_TABLE_REGNUM): Likewise.
7797 (RETURN_IN_MEMORY, EXTRA_CONSTRAINT, FIRST_PARM_OFFSET): Likewise.
7798 (REG_PARM_STACK_SPACE, STACK_POINTER_OFFSET): Likewise.
7799 (STACK_DYNAMIC_OFFSET, FUNCTION_VALUE): Likewise.
7800 (FUNCTION_ARG_PASS_BY_REFERENCE, FUNCTION_ARG_CALLEE_COPIES): Likewise.
7801 (TRAMPOLINE_TEMPLATE, TRAMPOLINE_SIZE): Likewise.
7802 (INITIALIZE_TRAMPOLINE, LEGITIMATE_CONSTANT_P): Likewise.
7803 (CONST_OK_FOR_LETTER_P, MOVE_RATIO): Likewise.
7804 (FUNCTION_ARG); Call out to C code.
7805 (FUNCTION_ARG_PARTIAL_NREGS): Likewise.
7806 (MAX_BITS_PER_WORD, MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Define.
7807 (MIN_UNITS_PER_WORD): Likewise.
7808 * pa/pa.md (cmpdi): New expander.
7809 (scc patterns, movstrsi): Not available for TARGET_64BIT.
7810 (64bit conditional arithmetic): New patterns.
7811 (absdi2, smindi3, umindi3, smaxdi3, umaxdi3): New patterns.
7812 (movsicc): Not available if modes on all the operands to not match.
7813 (movdicc): New expander and associated patterns.
7814 (64bit branches): New patterns.
7815 (pre_load, post_store): Generate appropriate code for TARGET_64BIT.
7816 (pre_ldd, post_std): New patterns.
7817 (64bit addil, load low part): New patterns.
7818 (special movsf constant): Not available for TARGET_64BIT.
7819 (movsf, movdf expanders): Force constants into memory.
7820 (32bit movdf/movdi patterns): Disable for TARGET_64BIT.
7821 (64bit movdf/movdi patterns): New patterns.
7822 (zero_extendqidi2, zero_extendhidi2, zero_extendsidi2): New patterns
7824 (extendqidi2, extendhidi2, extendsidi2): Similarly.
7825 (adddi3 expander): Allow "arith_operand" for second input.
7826 (32bit adddi3, subdi3, uaddcm): Disable for TARGET_64BIT.
7827 (64bit adddi3, subsi3, uaddcm): New patterns for TARGET_64BIT.
7828 (mulsi3 expander): Revamp slightly so it supports TARGET_64BIT too.
7829 (muldi3): New expander for TARGET_64BIT.
7830 (divsi3, udivsi3, modsi3, umodsi3): Fourth operand must be (reg:SI 2)
7832 (32bit anddi3, iordi3, xordi3, andcm, negdi2, uaddcm): Disable
7833 patterns for TARGET_64BIT.
7834 (64bit anddi3, iordi3, xordi3, andcm, negdi2, uaddcm, shadd): New
7835 patterns for TARGET_64BIT.
7836 (64bit bit insertion/extractions): New patterns for TARGET_64BIT.
7837 (64bit shifts/rotates): New patterns/expanders for TARGET_64BIT.
7838 (sibcall_epilogue): New expander.
7839 (casesi): Tweak for TARGET_64BIT.
7840 (call expanders): Set & use the outgoing argument pointer. Use the
7841 64bit call patterns as needed. Add additional arg to output_call.
7842 (call_internal_reg_64bit, call_value_internal_reg_64bit): New pattern.
7843 (sibcall, sibcall_internal_symref): New expanders.
7844 (sibcall_value, sibcall_value_internal_symref
7845 (interspace_jump): Turn into an expander + matching patterns.
7846 (canonicalize_funcptr_for_compare): Not needed for TARGET_64BIT.
7847 * pa/pa64-regs.h: Eliminate trigraph sequences.
7848 * pa/pa64-start.h (TARGET_PA_20): Fix typo.
7850 2000-04-11 Zack Weinberg <zack@wolery.cumb.org>
7852 * cppexp.c, cpphash.c, cpphash.h, cpplex.c, cpplib.c,
7853 cpplib.h, cppmain.c, fix-header.c, scan-decls.c: Replace
7854 cpp_token with cpp_ttype everywhere.
7855 * cpperror.c, cpphash.c, cpplex.c, cpplib.c, scan-decls.c:
7856 Replace cpp_buf_line_and_col with CPP_BUF_LINE and/or
7857 CPP_BUF_COL. Line and column numbers are unsigned int, not
7859 * cpplex.c (cpp_buf_line_and_col): Delete.
7860 * cpplib.h (struct cpp_buffer, struct cpp_reader): Change
7861 'long lineno' to 'unsigned int lineno'.
7862 (CPP_BUF_LINE, CPP_BUF_COL): New macros.
7864 2000-04-11 Martin v. Löwis <loewis@informatik.hu-berlin.de>
7866 * extend.texi: ISO C99 is not a draft anymore.
7867 * invoke.texi: ISO C++ is not a draft anymore.
7868 * cpp.texi: __cplusplus is required by the ISO standard.
7870 * extend.texi (-fthis-is-variable): Undocument.
7871 * flags.h (warn_template_debugging): Remove declaration.
7872 * gcc.1 (-fall-virtual, -fenum-int-equiv, -fthis-is-variable,
7873 -Wenum-clash, -Wtemplate-debugging): Undocument.
7875 2000-04-10 Nick Clifton <nickc@cygnus.com>
7877 * config/arm/arm.h (HOST_INT): New macro: Declare a HOST_WIDE_INT
7879 (HOST_UINT): New macro: Declare an unsigned HOST_WIDE_INT
7881 (ARM_SIGN_EXTEND): Use HOST_UINT.
7882 (STRIP_NAME_ENCODING): Prevent warnings about redefinitions.
7883 (ASM_OUTPUT_LABELREF): Prevent warnings about redefinitions.
7884 (INCOMING_RETURN_ADDR_RTX): Only define if Dwarf2 is supported.
7885 (DWARF_FRAME_RETURN_COLUMN): Only define if Dwarf2 is supported.
7887 * config/arm/arm.c: (const_ok_for_arm): Use HOST_UINT.
7888 (arm_gen_constant): Use HOST_UINT.
7889 (arm_canonicalize_constant): Use HOST_UINT.
7890 (arm_reload_in_hi): Use HOST_UINT.
7891 (arm_reload_out_hi): Use HOST_UINT.
7892 (output_multi_immediate): Use HOST_UINT.
7893 (int_log2): Use HOST_UINT.
7894 (arm_poke_function_name): Use HOST_UINT.
7895 (arm_output_epilogue): Use arm_volatile_func().
7896 (output_thumb_prologue): Use arm_strip_name_encoding().
7898 Mon Apr 10 15:40:59 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7900 * sbitmap.c (sbitmap_a_subset_b_p): Rework loop to avoid potential
7901 of sequence point problems.
7903 2000-04-10 Nathan Sidwell <nathan@codesourcery.com>
7905 * rtl.def (ASHIFT, ROTATE, ASHIFTRT, LSHIFTRT, ROTATERT):
7907 * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Recomment.
7909 Mon Apr 10 07:21:13 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7911 * sbitmap.h: Whitespace changes and use upper-case macro args.
7912 (struct simple_bitmap_def): All sizes now unsigned.
7913 (EXECUTE_IF_SET_IN_SBITMAP): Internal vars now _X instead of X_.
7914 * sbitmap.c (sbitmap_alloc): N_ELMS now unsigned; also local vars.
7915 (sbitmap_vector_alloc): Parms and local vars now unsigned.
7916 (sbitmap_zero): Cast bzero arg to PTR.
7917 (sbitmap_vector_zero, sbitmap_vector_one): Parm and Local var unsigned.
7918 (sbitmap_union_of_diffs): Change loop index to unsigned and rework
7919 loop to make structure clearer.
7920 (sbitmap_not, sbitmap_difference, sbitmap_a_and_b): Likewise.
7921 (sbitmap_a_or_b, sbitmap_a_subset_b_p, sbitmap_a_or_b_and_c): Likewise.
7922 (sbitmap_a_and_b_or_c): Likewise.
7923 (sbitmap_intersection_of_succs): Minor cleanups.
7924 (sbitmap_intersection_of_preds, sbitmap_union_of_succs): Likewise.
7925 (sbitmap_union_of_preds): Likewise.
7926 (sbitmap_first_set_bit, dump_sbitmap): Local variables now unsigned.
7927 (debug_sbitmap): New function.
7929 * c-convert.c (convert): Handle REFERENCE_TYPE like POINTER_TYPE.
7930 * c-typeck.c (convert_for_assignment): Likewise.
7932 * expmed.c (init_expmed): Don't free objects we make.
7933 * emit-rtl.c (gen_rtx_CONST_INT, init_emit_once): Minor cleanups.
7935 * expr.c (get_inner_reference): Correct some WITH_RECORD_EXPR cases.
7936 (expand_expr, case CONVERT_EXPR): Pass proper alignment to store_field.
7938 * gcse.c (expr_hash_table_size): Now unsigned.
7939 (compute_ae_gen): Local variable `i' now unsigned.
7940 (compute_ae_kill, pre_insert_copies, pre_delete, pre_gcse): Likewise.
7941 (compute_transout, hoist_code): Likewise.
7942 (compute_local_properties): Likewise, also hash_table_size.
7943 (alloc_expr_hash_table): N_INSNS now unsigned.
7944 (delete_null_pointer_checks): Mark arg F as unused.
7946 * regrename.c: Minor cleanups, including chang some variables
7949 2000-04-10 Neil Booth <NeilB@earthling.net>
7951 * cpplex.c (skip_block_comment): Use pointer arithmetic rather
7953 * cpphash.h: (CPP_BUMP_BUFFER_LINE_CUR, CPP_BUMP_LINE_CUR): New.
7955 2000-04-10 Martin v. Löwis <loewis@informatik.hu-berlin.de>
7957 * invoke.texi (-fno-gnu-keywords): Remove classof, headof,
7958 __classof__, and __headof__ from the list of gnu keywords.
7959 (-ansi): Remove -foperator-names from list of implied options.
7960 Do not call it ANSI C++.
7961 (-foperator-names): Document as -fno-operator-names.
7963 2000-04-09 Zack Weinberg <zack@wolery.cumb.org>
7965 * cpphash.c (timestamp): Delete.
7966 (del_HASHNODE): If type is T_MCONST, free value.cpval.
7967 (special_symbol): Remove unnecessary braces. Remove
7968 T_VERSION. Treat T_STDC like T_CONST unless
7969 STDC_0_IN_SYSTEM_HEADERS. Render both __DATE__ and __TIME__
7970 when one is encountered, then convert them into T_MCONST
7972 * cppinit.c (builtin_array): version_string is T_MCONST.
7973 __STDC__ has a "1" in its cpval. Don't have a terminator
7974 entry. Clean up which entries are dumped.
7975 (initialize_builtins): Only __STDC__ gets the special
7976 -traditional treatment. Count the length of builtin_array.
7977 Render version_string here.
7978 * cpphash.h: Remove T_VERSION. Add T_MCONST.
7979 * cpplib.h (struct cpp_reader): Remove timebuf.
7981 2000-04-09 Richard Henderson <rth@cygnus.com>
7983 * genrecog.c (pred): Update comparison_operator for the unordered
7986 * config/i386/i386.c (no_comparison_operator): Disallow unordered
7988 (fcmov_comparison_operator): Allow UNORDERED/ORDERED.
7989 (uno_comparison_operator): New.
7990 (put_condition_code): Handle UNORDERED/ORDERED.
7991 (unsigned_comparison): Likewise.
7992 (ix86_fp_compare_mode): Broken out of ix86_expand_fp_compare.
7993 (ix86_use_fcomi_compare, ix86_prepare_fp_compare_args): Likewise.
7994 (ix86_expand_fp_compare): Use them. Take scratch as argument,
7995 update all callers. Handle all 8 unordered operators.
7996 (ix86_expand_setcc): Lose the unordered argument, update all callers.
7997 (ix86_expand_branch): Likewise. Don't fully expand fp branches.
7998 * config/i386/i386.h (PREDICATE_CODES): Update.
7999 * config/i386/i386-protos.h (ix86_expand_fp_compare): Declare.
8000 (ix86_expand_branch, ix86_expand_setcc): Update.
8001 * config/i386/i386.md (sunordered, sordered): New.
8002 (suneq, sunge, sungt, sunle, sunlt, sltgt): New.
8003 (bunordered, bordered): New.
8004 (buneq, bunge, bungt, bunle, bunlt, bltgt): New.
8005 (*fp_jcc_1, *fp_jcc_2, *fp_jcc_3, *fp_jcc_4): New.
8006 (*fp_jcc_5, *fp_jcc_6, and splitters): New.
8008 2000-04-09 Philip Blundell <philb@gnu.org>
8010 * config/arm/arm.h (ARM_NAME_ENCODING_LENGTHS): Strip `*' too.
8012 Sun Apr 9 15:16:14 EDT 2000 John Wehle (john@feith.com)
8014 * i386.md (fix_truncsfhi2, fix_truncdfhi2,
8015 fix_truncxfhi2): New patterns.
8016 * i386.c (output_fix_trunc): Handle converting to HImode.
8018 2000-04-08 Alex Samuel <samuel@codesourcery.com>
8020 * ssa.c (convert_to_ssa): Eliminate dead code when calling
8022 (convert_from_ssa): Call compute_bb_for_insn before life_analysis.
8023 (for_each_successor_phi): Change parameter to basic_block.
8024 (coalesce_regs_in_successor_phi_nodes): Likewise.
8025 (coalesce_regs_in_copies): Likewise.
8026 (compute_coalesced_reg_partition): Use basic_block instead of index.
8027 * rtl.h (convert_to_ssa): Delete.
8028 (convert_from_ssa): Likewise.
8029 (successor_phi_fn): Likewise.
8030 (for_each_successor_phi): Likewise.
8031 (in_ssa_form): Likewise.
8032 * basic-block.h (convert_to_ssa): Moved from rtl.h.
8033 (convert_from_ssa): Likewise.
8034 (successor_phi_fn): Likewise.
8035 (in_ssa_form): Likewise.
8036 (for_each_successor_phi): Likewise. Change parameter to basic_block.
8037 * flow.c (calculate_global_regs_live): Pass a basic_block to
8038 for_each_successor_phi.
8040 2000-04-08 Richard Henderson <rth@cygnus.com>
8042 * flow.c (mark_used_reg): Use reg_set_p to determine if a register
8043 was modified in the current insn.
8045 2000-04-08 Richard Earnshaw (rearnsha@arm.com)
8047 * arm/thumb.md: Delete.
8048 * arm/thumb-protos.h: Delete.
8050 2000-04-08 Richard Earnshaw (rearnsha@arm.com)
8052 Merge changes from merged-arm-thumb-backend-branch onto trunk.
8054 2000-04-08 Richard Earnshaw (rearnsha@arm.com)
8056 * Merge trunk code from tag merged-arm-thumb-backend-merge_20000408
8059 * arm.md (nop): Use the standard RTL expression. Don't code as a
8061 (*arm_nop, *thumb_nop): Delete.
8063 * arm.c (const_ok_for_arm): Don't use ANSI extensions for defining
8064 constants. Use casts instead.
8065 (arm_gen_constant, arm_rtx_costs, arm_reload_in_hi, arm_reload_out_hi,
8066 output_multi_immediate, arm_poke_function_name): Likewise.
8067 * arm.h (ARM_LEGITIIMIZE_RELOAD_ADDRESS, ARM_SIGN_EXTEND,
8068 MASK_RETURN_ADDDR): Likewise.
8070 2000-03-31 Richard Earnshaw (rearnsha@arm.com)
8072 * Merge trunk code from tag merged-arm-thumb-backend-merge_20000325
8075 * arm.md (eh_epilogue): New function.
8076 * arm.h (struct machine_function): Move to here ...
8077 * arm.c: ... from here.
8078 (arm_output_epilogue): Support epilogues for __builtin_eh_return.
8079 (thumb_exit): Extra parameter eh_ofs. All callers changed.
8080 Handle epilogues for __builtin_eh_return. Make bit-fields unsigned.
8082 2000-03-30 Nick Clifton <nickc@cygnus.com>
8084 * config/arm/semi.h (ASM_SPEC): Restore definition.
8085 (SUBTARGET_EXTRA_ASM_SPEC): Define if not already defined.
8087 * config/arm/elf.h (ASM_SPEC): Restore definition.
8088 (SUBTARGET_EXTRA_ASM_SPEC): Define if not already defined.
8090 * config/arm/arm.h (ASM_SPEC): Remove definition.
8091 (SUBTARGET_EXTRA_ASM_SPEC): Remove definition.
8093 2000-03-26 Bernd Schmidt <bernds@cygnus.co.uk>
8095 * config/arm/arm.c: Disable -fschedule-insns for Thumb.
8097 2000-03-24 Nick Clifton <nickc@cygnus.com>
8099 Various formating tidyups, elimination of compile time
8100 warnings and synchronisation with internal sources:
8102 * config/arm/arm-protos.h (assemble_align): Add prototype.
8103 (gen_rotated_half_load): Rename to arm_gen_rotated_half_load.
8104 (gen_comapre_reg): Rename to arm_gen_compare_reg.
8105 (arm_return_addr_rtx): Rename to arm_return_addr.
8107 * config/arm/arm.c: Include except.h.
8108 Define shorter typenames for strict minipool_node and struct
8110 (arm_return_in_memory): For WinCE return all structures <= 32 bits
8112 (gen_rotated_half_load): Rename to arm_gen_rotated_half_load.
8113 (gen_comapre_reg): Rename to arm_gen_compare_reg.
8115 * config/arm/arm.h (SUBTARGET_EXTRA_ASM_SPEC): Define if not
8117 (ASM_SPEC): Define if not already defined.
8118 (ASM_OUTPUT_DEF_FROM_DECLS): Define.
8120 * config/arm/arm.md: Rename references to gen_rotated_half_load to
8121 arm_gen_rotated_half_load, and references to gen_comapre_reg to
8122 arm_gen_compare_reg.
8123 (indirect_jump): Only accept register operands.
8124 (load_indirect_jump): Keep this pattern since combine can generate
8127 * config/arm/coff.h: Include aout.h.
8128 (MULTILIB_DEFAULTS): Only define if not already defined.
8130 * config/arm/elf.h (ASM_OUTPUT_DEF_FROM_DECLS): Move definition
8131 into arm.h (so that COFF ports can support thumb based aliases).
8132 (ASM_SPEC): Move definition into arm.h
8134 * config/arm/linux-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Remove
8135 redundant apcs spec.
8136 (ASM_SPEC): Move definition to arm.h
8138 * config/arm/semi.h (ASM_SPEC): Move definition to arm.h
8140 * config/arm/unknown-elf.h (ASM_OUTPUT_SECTION_NAME): Add support
8141 for entries in the .bss section
8143 2000-03-23 Nick Clifton <nickc@cygnus.com>
8145 * config/arm/arm.h (THUMB_INITIAL_ELIMINATION_OFFSET): Pass 0
8146 to thumb_far_jump_used_p.
8148 * config/arm/arm-protos.h (thumb_far_jump_used_p): Take a
8149 single integer parameter.
8151 * config/arm/arm.c (struct machine_function): Add two new
8152 fields, 'far_jump_used' and 'arg_pointer_live'.
8153 (thumb_far_jump_used_p): Once the decision has been made that
8154 far jumps might be used, always return true.
8155 If being called from the initial elimination offset macro then
8156 do not bother to perform the test if the arg pointer is not
8158 (thumb_unexpand_epilogue): Pass 1 to thumb_far_jump_used_p().
8159 (output_thumb_prologue): Pass 1 to thumb_far_jump_used_p().
8161 2000-03-23 Richard Earnshaw (rearnsha@arm.com)
8163 * arm.c (output_return_instruction): Handle more cases where we can
8164 return from a function with an ldr instruction.
8165 (arm_output_epilogue): Likewise.
8167 * arm.c (thumb_expand_prologue): Don't clobber the frame pointer
8168 if we need to push a large stack frame and there are no callee-saved
8171 * arm.c (arm_debugger_arg_offset): An offset of 0 is also valid
8172 in ARM code if the frame pointer has been eliminated.
8174 * arm.md (epilogue, *epilogue_insns, consttable_*, align_4): Renumber
8175 unspec_volatile arguments to avoid duplicates.
8176 (consttable_1, consttable_2): Fixes for big-endian mode.
8178 * arm.md (all ARM-mode load insns): Add neg_pool_range attribute
8181 Re-write constant pool code.
8182 * arm.c (minipool_node, minipool_fix): New types.
8183 (minifix): Delete type.
8184 (arm_add_minipool_constant): Delete.
8185 (arm_compute_minipool_offsets, arm_find_barrier,
8186 arm_find_minipool_constant, fixup_compare, sort_fixups): Likewise.
8187 (get_jump_table_size): Now returns HOST_WIDE_INT.
8188 (move_minipool_fix_forward_ref, add_minipool_forward_ref): New
8190 (move_minipool_fix_backward_ref, add_minipool_backward_ref): Likewise.
8191 (assign_minipool_offsets, arm_print_value): Likewise.
8192 (dump_minipool): Rewrite.
8193 (arm_barrier_cost): New function.
8194 (create_fix_barrier): New function.
8195 (push_minipool_barrier): New function.
8196 (push_minipool_fix): Record additional information about the fixup
8198 (note_invalid_constants): Remove push for (UNSPEC 3). Don't
8199 check the mode of what needs fixing.
8200 (arm_reorg): Rewrite.
8202 2000-03-08 Nick Clifton <nickc@cygnus.com>
8204 * config/arm/arm.md (indirect_jump): Force constant addresses into
8207 2000-03-01 Bernd Schmidt <bernds@cygnus.co.uk>
8209 * config/arm/arm.md: Add splitter to turn SF moves into SI moves.
8211 2000-02-24 Nick Clifton <nickc@cygnus.com>
8213 * config/arm/arm.c (thumb_expand_prologue): Make sure that stack
8214 adjust is word aligned.
8215 (thumb_expand_epilogue): Make sure that stack adjust is word
8218 * config/arm/elf.h (ASM_FILE_START): Fix type of version string.
8220 2000-02-24 Bernd Schmidt <bernds@cygnus.com>
8222 * config/arm/arm.h (THUMB_GO_IF_LEGITIMATE_ADDRESS): Allow frame
8223 pointer relative addresses.
8225 2000-02-10 Richard Earnshaw <rearnsha@arm.com>
8227 * arm.c (find_barrier): Find the last barrier within the allowed
8230 2000-02-09 Nick Clifton <nickc@cygnus.com>
8232 * config/arm/arm-protos.h: Replace PROTO with PARAMS.
8234 2000-02-09 Nick Clifton <nickc@cygnus.com>
8236 * config/arm/linux-elf.h (FUNCTION_PROFILER): Rename to
8237 ARM_FUNCTION_PROFILER.
8239 * config/arm/netbsd.h (FUNCTION_PROFILER): Rename to
8240 ARM_FUNCTION_PROFILER.
8242 * config/arm/linux-oldld.h: Imported from mainline sources.
8244 2000-02-07 Nick Clifton <nickc@cygnus.com>
8246 * config/arm/lib1funcs.asm: Merge in thumb functions from
8249 * config/arm/lib1thumb.asm: Delete.
8251 2000-02-04 Nick Clifton <nickc@cygnus.com>
8253 * config/arm/arm.c: Sychronised with current Red hat local
8255 * config/arm/arm.h: Ditto.
8256 * config/arm/arm-protos.h: Ditto.
8258 2000-02-02 Bernd Schmidt <bernds@cygnus.co.uk>
8260 * arm.c (soft_df_operand): Reject SUBREGs containing a constant.
8262 * arm.c (arm_gen_movstrqi): Generate halfword stores rather than two
8265 2000-02-02 Nick Clifton <nickc@cygnus.com>
8267 * config/arm/thumb.c (thumb_exit): Additional fix for same bug.
8269 * config/arm/arm.md (epilogue): Fix rtl checking abort because
8270 (return) was emited using an emit_insn() call.
8272 2000-01-31 Nick Clifton <nickc@cygnus.com>
8274 * config/arm/arm.c (output_thumb_prologue): Fix bug generating
8276 (thumb_exit): Move frame pointer back into hard frame pointer
8277 register if backtracing is being used.
8279 2000-01-13 Richard Earnshaw (rearnsha@arm.com)
8281 * Merge trunk code from tag merged-arm-thumb-backend-merge_20000113
8284 1999-12-15 Bernd Schmidt <bernds@cygnus.co.uk>
8286 * config/arm/arm.md (neg_pool_offset): Provide default for new
8288 (arm_movsi_insn): Add neg_pool_offset attribute.
8289 * config/arm/arm.c (arm_find_barrier): Replace arg FIX with an
8290 rtx for the insn that starts the scan and an unsigned long for its
8291 address. Add MIN_OFFSET and PINSERTED args. All callers changed.
8292 Change scan to ignore insns before MIN_OFFSET. Store size of inserted
8293 instructions in *PINSERTED.
8294 (struct minipool_fixup): Add MIN_ADDRESS elt.
8295 (sort_fixups): Compute it.
8296 (arm_reorg): Changes to support inserting pools before the insn to be
8299 1999-12-08 Bernd Schmidt <bernds@cygnus.co.uk>
8301 * config/arm/elf.h (MULTILIB_DEFAULTS): Add "marm".
8302 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Add "marm".
8303 * config/arm/coff.h (MULTILIB_DEFAULTS): Add "marm".
8305 Wed Nov 3 10:04:07 1999 Nick Clifton <nickc@cygnus.com>
8307 * config/arm/semi.h (TARGET_VERSION): Do not define if already
8309 (TARGET_DEFAULT): Do not define if already defined.
8311 Tue Nov 2 10:37:25 1999 Nick Clifton <nickc@cygnus.com>
8313 * config/arm/arm.md (anddi3): Allow disjoint source operands.
8314 (iordi3): Allow disjoint source operands.
8315 (xordi3): Allow disjoint source operands.
8316 (negdi2): Permit construction for ARM and Thumb.
8317 (arm_negdi2): Renamed version of old negdi2 pattern.
8318 (thumb_negdi2): New pattern: Only permit non-overlapping
8319 source and destination.
8321 Fri Oct 29 18:52:38 1999 Nick Clifton <nickc@cygnus.com>
8323 * config/arm/arm.c (thumb_expand_prologue): Emit a USE of the
8324 scratch low register so that it will not be deleted.
8326 Fri Oct 29 15:23:48 1999 Nick Clifton <nickc@cygnus.com>
8328 * config/arm/pe.h (ARM_PE): Define.
8330 * config/arm/arm.c (arm_valid_machine_decl_attribute): Allow
8331 interfacearm attribute if this is a PE toolchain.
8332 (output_return_instruction): Do not emit anything if the function
8333 has the naked attribute set.
8334 (is_called_in_ARM_mode): If the function has the interfacearm
8335 attribute then return true.
8336 (thumb_expand_prologue): Do not generate a prologue for naked
8338 (thumb_expand_epilogue): Do not generate an epilogie for a naked
8340 (output_thumb_prologue): Do not bother if the function is naked.
8341 Strip PE encoding from function name before emitting.
8343 Thu Oct 28 11:05:13 1999 Richard Earnshaw <rearnsha@arm.com>
8345 * arm.md (pic_load_addr): Fix constraints.
8347 * arm.md (casesi_insn): Fix mis-applied patch.
8349 * arm.md ("core" function unit): Add rules for single- and
8351 (All TARGET_THUMB patterns): Add "type" attribute information
8353 * arm.c (arm_adjust_cost): Reduce the cost of a data dependency if
8354 the following insn is a CALL.
8356 * arm.c (thumb_expand_epilogue): Add a use of the adjusted stack
8358 * arm.h (CONDITIONAL_REGISTER_USAGE): Nail down the
8359 ARM_HARD_FRAME_POINTER_REGNUM when TARGET_APCS_FRAME.
8360 (FRAME_POINTER_REQUIRED): Only check TARGET_APCS_FRAME if TARGET_ARM.
8362 Wed Oct 27 14:40:48 1999 Nick Clifton <nickc@cygnus.com>
8364 * config/arm/linux-gas.h: oops - this file was missed out when the
8365 branch was created...
8367 Tue Oct 26 17:07:38 1999 Richard Earnshaw <rearnsha@arm.com>
8369 * thumb.c: Deleted. Move contents to ...
8371 * t-arm-aout, t-arm-coff, t-arm-elf, t-linux, t-netbsd, t-semi: Remove
8373 * configure.in (arm*-*-*): Remove thumb.o from extra_objs list.
8376 * arm-protos.h: Use RTX_CODE and tidy up long lines. Don't
8377 declare a prototype for asm_output_align();
8379 * arm.c (thumb_condition_code): Delete.
8380 (arm_print_operand): Always use arm_condition_code array.
8382 * arm.c (thumb_return_addr_rtx): Delete.
8383 (arm_save_machine_status, arm_restore_machine_status): Delete.
8384 (arm_init_machine_status, arm_mark_machine_status): New functions.
8385 (arm_init_expanders): Update accordingly.
8386 (arm_return_addr): Renamed from arm_return_addr_rtx. Rewrite.
8387 (thumb_expand_prologue): Delete code referencing thumb_return_addr_rtx.
8388 * arm.h (RETURN_ADDR_RTX): Call arm_return_addr().
8390 Tue Oct 26 13:24:16 1999 Nick Clifton <nickc@cygnus.com>
8392 * configure.in : Fix arm-*-aout target to use new t-arm-aout
8394 * config/arm/t-arm-aout: New file: Makefile script for arm-*-aout
8397 Tue Oct 26 11:27:12 1999 Nick Clifton <nickc@cygnus.com>
8399 * config/arm/thumb.c (output_thumb_prologue): Fix bug creating
8400 stack backtrace structure.
8402 * config/arm/arm-protos.h: Add prototypes for functions defined in
8405 * config/arm/arm.c (arm_override_options): Fix selection of
8406 attributes of default processor.
8408 * config/arm/coff.h: Delete needless #include.
8410 * config/arm/pe.c: Delete unused code.
8412 * config/arm/pe.h (CPP_DEFINES): Delete
8413 (SUBTARGET_CPP_SPEC): Define.
8414 (ASM_DECLARE_FUNCTION_NAME): Use ARM_DECLARE_FUNCTION_NAME.
8416 * config/arm/t-pe: Add -DInhibit_libc to allof libgcc.a to build.
8418 Mon Oct 25 15:42:09 1999 Richard Earnshaw (rearnsha@arm.com)
8420 * arm.h (TARGET_APCS_FRAME): Renamed from TARGET_APCS -- all uses
8422 (CAN_DEBUG_WITHOUT_FP): Define.
8423 (FIXED_REGISTERS): Make r11 call-saved.
8424 (CALL_USED_REGISTERS): Likewise.
8425 (CONDITIONAL_REGISTER_USAGE): Fix r11 if TARGET_APCS_FRAME.
8426 (FRAME_POINTER_REQUIRED): Correct logic for determining when a
8427 frame-pointer is required.
8428 (TARGET_DEFAULT): Make default setting include ARM_FLAG_APCS_FRAME.
8429 * arm.c (arm_override_options): Warn about -mno-apcs-frame and -g
8430 if the target normally needs a stack frame in non-leaf functions.
8431 (use_return_insn): Correct logic for determining when a return
8432 instruction can be used.
8433 (output_return_instruction): Handle the frame-pointer register as
8434 a normal register when not TARGET_APCS_FRAME.
8435 (arm_output_prologue): Likewise.
8436 (arm_output_epilogue): Likewise.
8437 (output_func_epilogue): Likewise.
8438 (arm_expand_prologue): Likewise.
8439 * netbsd.h semi.h (TARGET_DEFAULT): Add ARM_FLAG_APCS_FRAME.
8441 * arm.c (use_return_insn): No need to check floating point regs if
8443 (arm_find_minipool_constant): Correct typo; use GET_CODE to get
8444 the code of value stored in the minipool array.
8445 (arm_add_minipool_constant): Likewise.
8447 2000-04-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8449 * basic-block.h (conflict_graph_enum_fn): K&R fix.
8451 2000-04-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8453 * tree.c (tree_expr_nonnegative_p): New function.
8455 * tree.h (tree_expr_nonnegative_p): Declare.
8457 * c-typeck.c (build_binary_op): Call `tree_expr_nonnegative_p' to
8458 elide some sign_compare warnings.
8459 (build_conditional_expr): Likewise.
8461 Sat Apr 8 00:21:51 EDT 2000 John Wehle (john@feith.com)
8463 * i386.md (ashrsi3, ashrhi3, ashrqi3): Fix typo.
8465 * i386.md (floathisf2, floathidf2, floathixf2): New patterns.
8466 * i386.c (print_operand): Use the proper suffix for a 387 HImode
8467 operand. Abort if a 387 operand has an unsupported size.
8469 2000-04-08 Neil Booth <NeilB@earthling.net>
8471 * cppexp.c (parse_charconst): Null does not end character
8473 * cppinit.c (ISTABLE): Null character handled as whitespace.
8474 * cpplex.c (null_warning): new function.
8475 (skip_string): Emit warning if nulls encountered.
8476 (_cpp_skip_hspace): Emit warning if nulls encountered.
8477 (_cpp_lex_token): Emit warning if nulls encountered. Drop
8481 2000-04-07 Richard Henderson <rth@cygnus.com>
8483 * flow.c (loop_depth): Remove.
8484 (reg_next_use, cc0_live, mem_set_list): Replace with ...
8485 (struct propagate_block_info): New.
8486 (life_analysis): Don't allocate reg_next_use.
8487 (propagate_block_delete_insn): Break out of propagate_block.
8488 Use flow_delete_insn to unlink rather than use NOTE_INSN_DELETED.
8489 (propagate_block_delete_libcall): Likewise.
8490 (propagate_block): Create a propagate_block_info struct to pass
8491 to subroutines. Allocate one not two temporary regsets. Don't
8492 clobber memory for const calls. Look for clobbers in
8493 CALL_INSN_FUNCTION_USAGE.
8494 (mark_set_regs): Recognize COND_EXEC.
8495 (mark_set_reg): Break out of mark_set_1.
8496 (mark_used_reg): Break out of mark_used_regs.
8497 (mark_used_regs): Recognize COND_EXEC.
8498 (insn_dead_p): Use propagate_block_info struct.
8499 (libcall_dead_p, invalidate_mems_from_autoinc): Likewise.
8500 (find_auto_inc, try_pre_increment_1): Likewise.
8501 (print_rtl_with_bb): Dump regs live at end too.
8502 (count_reg_sets_1): Pass in loop_depth.
8503 (count_reg_sets, count_reg_references): Likewise.
8504 (recompute_reg_usage): Provide it.
8506 2000-04-07 Richard Henderson <rth@cygnus.com>
8508 * Makefile.in (conflict.o): Depend on $(RTL_H) and $(BASIC_BLOCK_H)
8511 2000-04-07 Zack Weinberg <zack@wolery.cumb.org>
8513 * cpplib.c (do_elif): Skip the rest of the line if we're
8514 not going to bother evaluating it.
8515 (skip_if_group): Clear pfile->only_seen_white. Reorder loop
8516 to avoid pointless calls to the lexer.
8518 Fri Apr 7 11:50:54 2000 Jim Wilson <wilson@cygnus.com>
8520 * config/ia64/ia64.c: Delete stdio.h and ctype.h includes.
8522 2000-04-07 Jason Merrill <jason@casey.cygnus.com>
8524 * calls.c (expand_call): emit_queue if we're trying a sibcall.
8526 2000-04-07 Jakub Jelinek <jakub@redhat.com>
8528 * config/sparc/t-linux64 (tcrtbeginS.o, tcrtendS.o): Remove.
8530 2000-04-06 Geoff Keating <geoffk@cygnus.com>
8532 * Makefile.in: Build crtbeginS and crtendS like crtbegin and
8533 crtend so they can be multilibbed.
8534 (STAGESTUFF): Remove s-crt and s-crtS.
8536 2000-04-07 Richard Henderson <rth@cygnus.com>
8538 * config/alpha/alpha.c (alpha_emit_conditional_move): Fail
8539 if we discover we need a pseudo and no_new_pseudos is true.
8540 * config/alpha/alpha.md (ne:DI insn): New.
8541 (trunctfsf2, sne): Emit NE instead of non-canonical LTU.
8543 2000-04-07 Richard Henderson <rth@cygnus.com>
8545 * rtl.def (COND_EXEC): New.
8546 * rtl.h (COND_EXEC_TEST, COND_EXEC_CODE): New.
8547 * tm.texi (MAX_CONDITIONAL_EXECUTE): Document.
8549 * genconfig.c (have_cond_arith_flag): Remove.
8550 (have_cond_exec_flag): New.
8551 (walk_insn_part): Detect COND_EXEC, not arithmetic in IF_THEN_ELSE.
8552 (main): Print HAVE_conditional_execution.
8554 * haifa-sched.c (haifa_classify_insn): Recognize COND_EXEC.
8555 (sched_analyze_insn, print_pattern): Likewise.
8556 * reload.c (find_equiv_reg): Likewise.
8557 * rtlanal.c (reg_referenced_p): Likewise.
8558 (note_stores, dead_or_set_regno_p): Likewise.
8559 (reg_overlap_mentioned_p): Rewrite to use a switch.
8561 * ggc.h (struct rtx_def): Forward declare.
8563 * print-rtl.c (debug_rtx_range): New.
8564 * rtl.h (debug_rtx_range): Declare.
8566 * varray.h (VARRAY_ACTIVE_SIZE, VARRAY_POP_ALL): New.
8568 * gcse.c (gcse_main): Don't rebuild the CFG here.
8569 (delete_null_pointer_checks): Likewise.
8570 * ssa.c (convert_to_ssa): Likewise.
8571 * toplev.c (rest_of_compilation): Do it here instead. Combine
8572 sequential calls to TIMEVAR. Consistently use `insns' instead of
8573 `get_insns()'. Always split insns after reload when optimizing.
8575 * basic-block.h (merge_blocks_nomove): Declare.
8576 (tidy_fallthru_edge): Declare.
8577 * flow.c (merge_blocks_nomove): Document as merging into previous
8578 blocks. Remove cruft from between blocks; remove all edges out of A.
8579 (tidy_fallthru_edge): Export.
8581 2000-04-06 Alex Samuel <samuel@codesourcery.com>
8583 * ssa.c (compute_conservative_reg_partition): Declare with
8585 * toplev.c (clean_dump_file): Remove previously-deleted function
8586 inadvertantly merged back in.
8587 * conflict.c (conflict_graph_add): Use a single call to
8588 htab_find_slot to look up and insert.
8590 2000-04-06 Richard Henderson <rth@cygnus.com>
8592 * genrecog.c (*): Rename _last_insn to last_insn.
8593 (make_insn_sequence): Set the position of the peephole2 C test
8594 to be at the last insn.
8596 2000-04-06 Richard Henderson <rth@cygnus.com>
8598 * flow.c (compute_flow_dominators): Free worklist.
8600 2000-04-06 Michael Matz <matzmich@cs.tu-berlin.de>
8602 * flow.c (compute_flow_dominators): Process blocks FIFO not LIFO.
8604 2000-04-06 Alex Samuel <samuel@codesourcery.com>
8606 * rtl.h (INSN_P): New macro.
8607 (successor_phi_fn): New typedef.
8608 (for_each_successor_phi): New prototype.
8609 (in_ssa_form): New variable.
8610 (PHI_NODE_P): Likewise.
8611 * flow.c (calculate_global_regs_live): Add to new_live_at_end from
8612 phi nodes in successors.
8613 (mark_used_regs): Add PHI case.
8614 (set_phi_alternative_reg): New function.
8615 (life_analysis): Assert that dead code elimination is not selected
8617 * toplev.c (to_ssa_time): New variable.
8618 (from_ssa_time): Likewise.
8619 (compile_file): Zero to_ssa_time and from_ssa_time.
8620 Print time to convert to and from SSA.
8621 (rest_of_compilation): Time convert_to_ssa and convert_from_ssa.
8622 (print_time): Compute percent fraction as integer.
8623 * ssa.c (PHI_NODE_P): Moved to rtl.h.
8624 (convert_to_ssa): Check if we're already in SSA.
8625 Don't eliminate dead code in life_analysis.
8626 Rerun flow and life analysis at bottom.
8627 (eliminate_phi): Use canonical regnos when adding nodes.
8628 (mark_reg_in_phi): New function.
8629 (mark_phi_and_copy_regs): Likewise.
8630 (convert_from_ssa): Rerun life analysis at top.
8631 Use coalesced partition.
8632 Check for removing a phi node at the end of the block.
8633 (compute_coalesced_reg_partition): New function.
8634 (coalesce_regs_in_copies): Likewise.
8635 (coalesce_reg_in_phi): Likewise.
8636 (coalesce_regs_in_sucessor_phi_nodes): Likewise.
8637 (for_each_successor_phi): Likewise.
8638 (rename_context): New struct.
8639 (rename_block): Use a rename_context with rename_insn_1. When
8640 renaming sets of a subreg, emit a copy of the entire reg first.
8641 (rename_insn_1): Treat data as a rename_context *. Save current
8643 (rename_set_data): Add field set_insn.
8644 * Makefile.in (HASHTAB_H): Move up in file.
8645 (OBSTACK_H): New macro.
8646 (collect2.o): Use OBSTACK_H in dependencies.
8647 (sdbout.o): Likewise.
8648 (emit-rtl.o): Likewise.
8649 (simplify-rtx.o): Likewise.
8650 (fix-header.o): Likewise.
8651 (OBJS): Add conflict.o.
8652 (conflict.o): New rule.
8653 * basic-block.h: Include partition.h.
8654 (conflict_graph): New typedef.
8655 (conflict_graph_enum_fn): Likewise.
8656 (conflict_graph_new): New prototype.
8657 (conflict_graph_delete): Likewise.
8658 (conflict_graph_add): Likewise.
8659 (conflict_graph_conflict_p): Likewise.
8660 (conflict_graph_enum): Likewise.
8661 (conflict_graph_merge_regs): Likewise.
8662 (conflict_graph_print): Likewise.
8663 (conflict_graph_compute): Likewise.
8664 * conflict.c: New file.
8666 2000-04-06 Jason Merrill <jason@yorick.cygnus.com>
8668 * tlink.c (read_repo_files): Don't look for .rpo info for
8671 Thu Apr 6 20:39:26 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
8673 * sh.h (STRUCT_VALUE, RETURN_IN_MEMORY): Define.
8675 Thu Apr 6 19:34:08 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
8677 * config/sh/lib1funcs.asm (___udivsi3_i4):
8678 ( __SH4_SINGLE__ / __SH4_SINGLE_ONLY__ variant): value for fpscr
8679 only depends on FMOVD_WORKS.
8681 Thu Apr 6 19:11:47 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
8683 * config/sh/lib1funcs.asm (___udivsi3_i4): When using fmovd,
8684 make double constant 8-byte aligned.
8686 2000-04-06 Jakub Jelinek <jakub@redhat.com>
8688 * config/sparc/sparc.md (movtf_insn_sp32, movtf_insn_vis_sp32,
8689 movtf_no_e_insn_sp32, movtf_insn_hq_sp64, movtf_insn_hq_vis_sp64,
8690 movtf_no_e_insn_sp64): Accept loading 0.0 into GENERAL_REGS.
8691 (movtf_insn_sp64, movtf_insn_vis_sp64): Likewise.
8692 Accept storing GENERAL_REGS into offsetable memory.
8693 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Don't allow
8694 building a TFmode constant other than 0.0L into GENERAL_REGS.
8696 2000-04-06 Clinton Popetz <cpopetz@cygnus.com>
8698 * regrename.c (regrename_optimize): Handle no REG_ALLOC_ORDER.
8700 2000-04-06 Zack Weinberg <zack@wolery.cumb.org>
8702 * cpphash.c (CPP_IS_MACRO_BUFFER, FORWARD, PEEKC): Delete.
8703 (macro_cleanup): No need to cast pbuf->macro.
8704 (collect_expansion): Use _cpp_get_define_token. Goto done if
8705 it returns VSPACE. Remove check for trailing space after
8707 (_cpp_create_definition): Don't diddle flags here. Return
8709 (unsafe_chars): Handle c1 being EOF.
8710 (push_macro_expansion): Use unsafe_chars for both accidental-paste
8711 checks. Don't push the buffer till after we're done with
8713 * cpplex.c (PEEKBUF, GETBUF, FORWARDBUF): New.
8714 (PEEKN, FORWARD, GETC, PEEKC): Use them.
8715 (cpp_push_buffer): Don't set new->alimit. Set new->mark
8717 (_cpp_parse_assertion): Don't NUL terminate.
8718 (_cpp_lex_token): Fix -traditional macro handling. Don't skip
8719 hspace before calling _cpp_parse_assertion. Remove all sets
8720 of only_seen_white. Treat '\f' as hspace. Don't do anything
8721 special with '\n' here.
8722 (maybe_macroexpand): Handle T_EMPTY hash entries without
8723 pushing a buffer at all.
8724 (cpp_get_token): Handle clearing only_seen_white here. Handle
8725 incrementing the line number here. Clear
8726 potential_control_macro as well as only_seen_white, if
8728 (cpp_get_non_space_token): Don't eat CPP_POP tokens.
8729 (_cpp_get_define_token): New function, basically like
8730 _cpp_get_directive_token was but doesn't eat horizontal space.
8731 Don't do anything with only_seen_white here.
8732 (_cpp_get_directive_token): Just call _cpp_get_define_token
8733 repeatedly till it returns non-hspace.
8735 * cpplib.c (PEEKN, FORWARD, GETC, PEEKC): Delete.
8736 (conditional_skip, skip_if_group): Return int.
8737 (DIRECTIVE_TABLE): Change origin of all conditional directives
8739 (TRAD_DIRECT_P): New macro.
8740 (_cpp_handle_directive): Use _cpp_get_directive_token. Issue
8741 an error for a bogus directive, unless -lang-asm. Use
8742 TRAD_DIRECT_P. Loop calling handler functions till one returns
8744 (get_macro_name): Don't diddle flags here.
8745 (do_define): Diddle flags here. Use _cpp_get_directive_token.
8746 Create T_EMPTY nodes for #define macro /* nothing */.
8747 (do_undef): Don't copy the name. Use _cpp_get_directive_token.
8748 Use hp->name when calling pass_thru_directive.
8749 (do_if, do_else, do_elif, do_ifdef, do_ifndef, conditional_skip):
8750 Return the result of conditional_skip and/or skip_if_group.
8751 Don't call _cpp_output_line_command.
8752 (consider_directive_while_skipping): Use _cpp_get_directive_token.
8753 Issue -Wtraditional warnings as appropriate. Don't complain
8754 about unrecognized directives. If we are to stop skipping,
8755 return the number of the directive that ended the skip.
8756 (skip_if_group): Use _cpp_get_directive_token. Turn off macro
8757 expansion and line commands while skipping. Return the result
8758 of consider_directive_while_skipping, if nonzero.
8759 (do_endif): Just set potential_control_macro here.
8760 (validate_else): Use _cpp_get_directive_token.
8761 (do_assert, do_unassert): Don't save pointers into the
8762 token_buffer across calls to the lexer. Use
8763 _cpp_get_directive_token.
8765 * cpplib.h (cpp_buffer): Remove alimit and colno. Make mark a
8766 pointer, not an offset. Replace 'data', which was a generic
8767 pointer, with 'macro', which points to a struct hashnode.
8768 (cpp_reader): Add 'potential_control_macro' pointer.
8769 * cpphash.h (T_UNUSED): Replace with T_EMPTY.
8770 (CPP_BUF_GET, CPP_FORWARD): Delete.
8771 (CPP_IN_COLUMN_1, ADJACENT_TO_MARK): New macros.
8772 (CPP_IS_MACRO_BUFFER, CPP_SET_BUF_MARK, CPP_GOTO_BUF_MARK,
8773 ACTIVE_MARK_P): Update.
8774 (_cpp_get_define_token): New internal function.
8775 * cppfiles.c (read_include_file): Don't set fp->alimit or fp->colno.
8777 2000-04-05 Benjamin Kosnik <bkoz@cygnus.com>
8779 * configure.in: And here.
8780 * configure: Regenerate.
8781 * acconfig.h: Add ENABLE_STD_NAMESPACE to set flag_honor_std if
8782 --enable-libstdcxx-v3 is passed at configure time.
8783 * config.h.in: Regenerate.
8785 2000-04-05 Mark Mitchell <mark@codesourcery.com>
8787 * final.c (final): Use xcalloc to allocate line_note_exists.
8788 * function.c (free_after_compilation): Free the temp_slots.
8789 (assign_stack_temp_for_type): Use xmalloc to allocate temp_slots.
8790 (combine_temp_slot): Free temp_slots when they get combined.
8791 (purge_addressof): Fix typo in comment.
8792 * stmt.c (mark_goto_fixup): Mark the fixup itself.
8793 (expand_fixup): Allocate the fixup with ggc_alloc_obj.
8795 * ggc.h: Include varray.h.
8796 (ggc_pending_trees): Declare.
8797 (ggc_mark_tree_children): Remove declaration.
8798 (ggc_mark_tree): Just push unmarked trees on ggc_pending_trees.
8799 * ggc-common.c (ggc_pending_trees): New variable.
8800 (ggc_mark_roots): Call ggc_mark_trees.
8801 (ggc_mark_tree_children): Rename to ggc_mark_trees. Process all
8802 the ggc_pending_trees.
8803 * Makefile.in (GGC_H): New variable. Use it throughout in place
8806 Thu Apr 6 00:30:50 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
8808 * sh.h (FUNCTION_ARG_PARTIAL_NREGS): Accomodate an unsigned
8811 Wed Apr 5 23:17:10 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
8813 * sh.c (sh_insn_length_adjustment): New function.
8814 * sh-protos.h (sh_insn_length_adjustment): Declare.
8815 * sh.h (ADJUST_INSN_LENGTH): Use it.
8817 Wed Apr 5 12:35:18 2000 Hans-Peter Nilsson <hp@axis.com>
8819 * optabs.c (emit_libcall_block): Remove spurious REG_EQUAL notes
8820 from the insn where REG_RETVAL is added.
8821 (emit_no_conflict_block): Ditto.
8823 * md.texi (Standard Names): Clarify when movX is needed.
8825 * combine.c (simplify_comparison) [MINUS]: Do not replace
8826 all (op (minus A B) 0) with (op A B).
8828 Wed Apr 5 18:03:31 2000 Toshiyasu Morita (toshi.morita@sega.com)
8829 J"orn Rennecke <amylaar@cygnus.co.uk>
8831 * sh.md (block_lump_real_i4): Add missing clobber of T_REG
8832 (block_lump_real): Likewise.
8834 2000-04-05 Chris Demetriou <cgd@netbsd.org>
8836 * mips.h (MASK_DEBUG_A, MASK_DEBUG_B, MASK_DEBUG_C): Zero the
8837 remaining non-zero debugging masks.
8839 Wed Apr 5 09:44:07 2000 Jeffrey A Law (law@cygnus.com)
8841 * basic-block.h (verify_flow_info): Declare.
8842 (flow_loop_outside_edge_p): Declare.
8843 * flow.c (verify_flow_info): Remove declaration.
8844 (clear_log_links, flow_loop_outside_edge_p): Likewise.
8846 Wed Apr 5 09:34:26 2000 Philippe De Muyter <phdm@macqel.be>
8848 * m68k/m68k-protos.h (finalize_pic): Turn prototype off using `#if 0',
8851 2000-04-05 Jakub Jelinek <jakub@redhat.com>
8853 * config/sparc/sparc.md (snedi_zero+1, neg_snedi_zero+1,
8854 snedi_zero_trunc+1, seqdi_zero+1, neg_seqdi_zero+1,
8855 seqdi_zero_trunc+1): Allow splits only if registers are
8858 2000-04-04 Ulrich Drepper <drepper@cygnus.com>
8860 * acconfig.h: Add HAVE_GAS_HIDDEN.
8861 * config.in: Regenerated.
8862 * configure.in: Add test for .hidden pseudo-op in gas.
8863 * configure: Regenerated.
8864 * crtstuff.c: Include auto-host.h.
8865 Emit additional .hidden pseudo-op for __dso_handle if the
8866 assembler knows about it.
8868 2000-04-04 Philippe De Muyter <phdm@macqel.be>
8870 * cpphash.c (_cpp_free_definition): Test argnames, not nargs >= 0,
8871 before freeing argnames.
8872 * cpplib.c (do_ifndef): Cast return value of xstrdup.
8874 2000-04-05 Michael Meissner <meissner@redhat.com>
8876 * config/rs6000/rs6000.c (print_operand): Patch from Jonathan
8877 Walton <jonboy@gordian.com> to make memory references with update
8878 work wtih -mregnames.
8880 2000-04-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8882 * regrename.c (regno_first_use_in): Wrap prototype in PARAMS.
8883 (regrename_optimize): Rename variables `def_uses' and
8884 `ext_basic_blocks' to avoid conflicts with similarly named
8885 typedefs in traditional C.
8887 * calls.c (initialize_argument_information): Fix typo in previous
8890 2000-04-04 Richard Henderson <rth@cygnus.com>
8892 * regrename.c (consider_available): Test fixed_regs not
8893 PIC_OFFSET_TABLE_REGNUM.
8895 2000-04-04 Geoff Keating <geoffk@cygnus.com>
8897 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbegin,
8899 (CRTSTUFF_T_CFLAGS_S): Delete definition.
8900 * config/rs6000/sysv4.h (STARTFILE_LINUX_SPEC): Always use crtbegin.
8901 (ENDFILE_LINUX_SPEC): Always use crtend.
8902 * configure.in (powerpc-*-linux-gnulibc1): Don't define extra_parts.
8903 (powerpc-*-linux-gnu): Likewise.
8904 * configure: Regenerate.
8906 * config/rs6000/eabi.h: Don't include sysv4.h.
8907 (MULTILIB_DEFAULTS): Don't define.
8908 * config/rs6000/eabiaix.h: Don't include eabi.h.
8909 * config/rs6000/eabile.h: Delete.
8910 * config/rs6000/eabilesim.h: Delete.
8911 * config/rs6000/eabisim.h: Don't include eabi.h.
8912 * config/rs6000/linux.h: Don't include sysv4.h.
8913 (JUMP_TABLES_IN_TEXT_SECTION): Don't redefine.
8914 (MULTILIB_DEFAULTS): Don't redefine.
8915 * config/rs6000/rtems.h: Don't include eabi.h.
8916 * config/rs6000/sol2.h: Don't include sysv4le.h.
8917 * config/rs6000/sysv4le.h: Don't include sysv4.h.
8918 * config/rs6000/t-ppc: Delete.
8919 * config/rs6000/t-ppcgas: Correct comment.
8920 * config/rs6000/t-ppcos: Correct comment. Don't build
8921 multilibs for -fPIC, rather use -fPIC -mstrict-align
8923 * config/rs6000/t-ppc: Delete.
8924 * config/rs6000/vxppc.h: Don't include sysv4.h.
8925 * config/rs6000/vxppcle.h: Delete.
8926 * configure.in: Use multiple header files for p2pc ELF targets
8927 powerpc-eabiaix, powerpc-eabisim, powerpc-rtems, powerpcle-eabi,
8928 powerpcle-eabisim, powerpc-elf, powerpcle-elf, powerpc-linux-gnu,
8929 powerpc-linux-gnulibc1, powerpc-sysv, powerpcle-sysv,
8930 powerpc-vxworks, powerpcle-vxworks. Assume GAS functionality is
8931 always available for these platforms.
8933 2000-04-04 Richard Henderson <rth@cygnus.com>
8935 * calls.c (try_to_integrate): Initialize reg_parm_stack_space.
8937 2000-04-04 Stan Cox <scox@cygnus.com>
8939 * Makefile.in: Add rules for regrename.o
8940 * regrename.c: New file.
8941 * rtl.h (regrename_optimize): Add prototype.
8942 * toplev.c (rename_registers_dump, flag_rename_registers): New variables
8943 (compile_file, decode_d_option): Add support for -frename-registers.
8944 (rest_of_compilation): Call regrename_optimize.
8945 * config/ia64/ia64.h (HARD_REGNO_RENAME_OK, RENAME_EXTENDED_BLOCKS):
8948 2000-04-04 Martin v. Löwis <loewis@informatik.hu-berlin.de>
8950 * Makefile (gccbug): New target.
8951 (doc): Depend on it.
8952 * gcc.texi (Bugs): Link subnodes.
8954 * gccbug.in (CATEGORIES): Remove gc, host, profiling, libgcc.
8955 Document severities, priorities, and classes in bug form.
8957 2000-04-04 Zack Weinberg <zack@wolery.cumb.org>
8959 * cpplex.c (trigraph_map, speccase): Combine into single
8961 (NORMAL, NONTRI): New macros.
8962 (_cpp_read_and_prescan): Change to use unified table. Use
8963 is_hspace to test for whitespace.
8965 * dbxout.c (CONTIN): If it doesn't have to do anything, give it a
8966 definition that doesn't provoke the "empty body in an
8967 if-statement" warning.
8969 2000-04-04 Clinton Popetz <cpopetz@cygnus.com>
8971 * builtins.c (expand_builtin_strlen): Force the source to
8972 be a memory address.
8974 2000-04-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8976 * cpplib.c (D): Adjust to call CONCAT2 macro without whitespace.
8978 Tue Apr 4 19:17:20 MET DST 2000 Jan Hubicka <jh@suse.cz>
8980 * calls.c (ECF_MALLOC, ECF_MAY_BE_ALLOCA, ECF_RETURNS_TWICE,
8981 ECF_LONGJMP, ECF_FORK_OR_EXEC): New constants.
8982 (ECF_IS_CONST): Rename to ECF_CONST.
8983 (special_function_p): Make static, change interface.
8984 (flags_from_decl_or_type, try_to_integrate): Break out from ...
8985 (expand_call) ... here; convert number of variables to flags.
8986 (emit_library_call_vlue_1): Likewise.
8987 (setjmp_call_p): New function.
8988 (initialize_argument_information): Accepts flags as argument;
8990 (precompute_arguments): Likewise.
8991 * tree.h (special_function_p): Remove.
8992 (setjmp_call_p): Add prototype.
8994 2000-04-04 Jakub Jelinek <jakub@redhat.com>
8996 * config/sparc/sparc.h (RTX_OK_FOR_OFFSET_P): Leave minor margin
8997 so that addresses are offsetable by up to 16 bytes.
8998 (GO_IF_LEGITIMATE_ADDRESS): Don't allow REG+REG addresses for
8999 non-optimizing TARGET_ARCH32 in DF or DI modes because it is not
9002 * config/sparc/sparc.md (movdi_insn_sp64_novis): New pattern.
9003 (movdi_insn_sp64_vis): Renamed from movdi_insn_sp64.
9004 (movsf): Don't force any constant to memory if target is integer
9006 Move fp_zero_operand check below the const0_rtx check.
9007 (movtf): Likewise. Also allow fp_zero_operand for stores into
9009 (movdf): Likewise. Also allow fp_zero_operand for stores into
9010 memory and into integer hard registers.
9011 (clear_df, clear_dfp, movdf_const_intreg_sp32,
9012 movdf_const_intreg_sp64): Remove.
9013 (movdf_insn_sp32, movdf_no_e_insn_sp32): Redo constraints and
9015 (movdf_no_e_insn_v9_sp32): New pattern.
9016 (movdf_insn_v9only): Remove.
9017 (movdf_insn_v9only_novis, movdf_insn_v9only_vis): New patterns.
9018 (movdf_insn_sp64): Remove.
9019 (movdf_insn_sp64_novis, movdf_insn_sp64_vis): New patterns.
9020 (movdf_no_e_insn_sp64): Allow storing 0.0 into memory.
9021 (following splits): Rewrite conditions. Add two new splits
9022 for storing 0.0 into memory and registers.
9023 (clear_tf, clear_tf+1, clear_tfp, clear_tfp+1): Remove.
9024 (movtf_insn_sp32): Redo constraints and conditions.
9025 (movtf_insn_vis_sp32): New pattern.
9026 (movtf_no_e_insn_sp32): Redo constraints and conditions.
9027 (movtf_insn_hq_sp64): Likewise.
9028 (movtf_insn_hq_vis_sp64): New pattern.
9029 (movtf_insn_sp64): Redo constraints and conditions.
9030 (movtf_insn_vis_sp64): New pattern.
9031 (movtf_no_e_insn_sp64): Redo constraints and conditions.
9032 (movtf_no_e_insn_sp64+1): New split for storing 0.0L into registers
9034 * config/sparc/sparc.c (sparc_override_options): Assume v9 if either
9035 -mvis or -m64 to take down the number of various reload patterns.
9037 Tue Apr 4 00:41:53 2000 Jeffrey A Law (law@cygnus.com)
9039 * pa/pa-64.h: New file.
9040 * pa/pa64-regs.h: New file.
9041 * pa/pa64-start.h: New file.
9042 * pa/t-pa64: New file.
9043 * pa/xm-pa64hpux.h: New file.
9045 2000-04-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9047 * sparc.c (output_restore_regs): Prototype.
9048 (sparc_emit_float_lib_cmp): Constification.
9050 * emit-rtl.c (const_int_htab_hash, const_int_htab_eq): Likewise.
9052 * reload1.c (reload_cse_delete_noop_set, reload_cse_simplify):
9055 * simplify-rtx.c (entry_and_rtx_equal_p): Constification.
9056 (get_value_hash, hash_rtx): Likewise.
9058 * ssa.c (compute_conservative_reg_partition): Prototype.
9060 * tree.c (mark_hash_entry): Prototype.
9062 2000-04-03 Zack Weinberg <zack@wolery.cumb.org>
9064 * bb-reorder.c (verify_insn_chain): #ifdef out unless ENABLE_CHECKING.
9065 * i386.h (FUNCTION_ARG_REGNO_P): Remove unnecessary test for N >= 0.
9066 * i386.md (call_value, call_value_pop): Remove unused variable 'addr'.
9068 * gcc.c (C specs): Pass -fno-show-column to the preprocessor.
9069 * objc/lang-specs.h: Likewise.
9071 2000-04-03 Neil Booth <NeilB@earthling.net>
9073 * cppexp.c: wrap long lines. New macros CPP_ICE, SYNTAX_ERROR
9074 and SYNTAX_ERROR2. Replace `' in messages with ''.
9075 (op_to_str): Make re-entrant.
9076 (_cpp_parse_expr): Implement new error macros. Use | rather
9077 than || to logically or 2 boolean integers. Simply expression
9078 checking we have a left operand iff needed.
9080 2000-04-03 Nick Clifton <nickc@cygnus.com>
9082 * Makefile.in (diagnostic.o): Depend upon diagnostic.c
9084 2000-04-03 Philip Blundell <philb@gnu.org>
9086 * config/arm/linux-elf.h (SUBTARGET_EXTRA_LINK_SPEC): Fix typos.
9088 2000-04-03 Felix Lee <flee@cygnus.com>
9090 * fixinc/server.c (find_shell): New function. Avoid $SHELL.
9091 (run_shell): Use it.
9093 2000-04-03 Jonathan Larmour <jlarmour@redhat.co.uk>
9095 * Makefile.in (stmp-int-hdrs): Make include subdir here...
9096 (stmp-fixproto): ...rather than here.
9098 Mon Apr 3 00:50:06 2000 Jason Eckhardt <jle@cygnus.com>
9100 * pa.c (print_operand): Compute 'base' only inside the code paths
9103 2000-04-03 Geoffrey Keating <geoffk@cygnus.com>
9105 * stor-layout.c (byte_from_pos): Use TRUNC_DIV_EXPR rather than
9108 2000-04-03 Philipp Thomas <pthomas@suse.de>
9110 * i386.h (TARGET_SWITCHES): Remove bogus empty strings, fix typo.
9112 Mon Apr 3 00:02:59 2000 Brad Lucier <lucier@math.purdue.edu>
9114 * Makefile.in (alias.o): Depend on $(TREE_H).
9116 2000-04-02 Zack Weinberg <zack@wolery.cumb.org>
9118 * cppinit.c (cpp_start_read): Turn off -Wtraditional if
9120 * cpplib.c (_cpp_handle_directive): Improve warnings for
9121 traditional C and indented directives.
9123 * enquire.c, gsyslimits.h, limity.h, config/convex/fixinc.convex,
9124 fixinc/fixinc.irix, fixinc/fixinc.sco, fixinc/fixinc.wrap,
9125 fixinc/inclhack.def: Indent the # of #include_next one space.
9126 * cp/rtti.c: Un-indent #if and #endif.
9128 * cppexp.c (_cpp_parse_expr): If lex returns '#', it's a
9129 syntax error, but an error has already been printed.
9130 * cpplex.c (_cpp_parse_assertion): Give a more specific error
9131 message when called with nothing remaining on the line.
9132 (_cpp_lex_token): If _cpp_parse_assertion fails, return an
9133 OTHER token, not an ASSERTION.
9134 * cpplib.c (do_assert): When we create a 'base' node, clear
9135 its aschain pointer.
9137 2000-04-02 Neil Booth <NeilB@earthling.net>
9139 * cppexp.c: New typedef op_t. struct operation and struct
9140 token updated to use it.
9141 (op_to_str): New function.
9142 (_cpp_parse_expr): Error messages modified to use op_to_str.
9144 2000-04-02 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
9146 * config/c4x/c4x.c (c4x_function_arg): Check for void_type_node
9147 before checking MUST_PASS_IN_STACK.
9149 2000-04-02 Neil Booth <NeilB@earthling.net>
9151 * cppexp.c: New FINISHED dummy token. Combine operator initial
9152 flags and initial priority into a single constant. New
9153 EQUALITY macro. New operator flag SHORT_CIRCUIT.
9154 (_parse_cpp_expr): Implement new constants. Take left operand
9155 checks out of reduction loop. Handle SHORT_CIRCUIT. End of
9156 parse indicated by reducing FINISHED token. Remove new lines
9157 from cpp_error messages.
9159 2000-04-01 Mark Mitchell <mark@codesourcery.com>
9161 * emit-rtl.c (gen_rtx_CONST_INT): Create cached CONST_INTs on the
9164 2000-04-01 Zack Weinberg <zack@wolery.cumb.org>
9166 * cpplib.c: Include symcat.h. Add 'origin' field to struct
9167 directive. Add origin values to DIRECTIVE_TABLE. Generate
9168 the strings and function names on the fly. Take the #sccs
9169 entry out of the table if SCCS_DIRECTIVE is not defined.
9170 (_cpp_handle_directive): Decide if the # was at the beginning
9171 of the line here. Issue -pedantic warnings for extended
9172 directives here. Warn about K+R directives with the #
9173 indented, and C89/extended directives with the # not indented,
9175 (do_import, do_include_next, do_warning, do_ident, do_sccs,
9176 do_assert, do_unassert): Don't issue pedantic warning here.
9178 * cpphash.h: Add CPP_WTRADITIONAL macro.
9179 * cpplib.h (struct cpp_options): Rename warn_stringify to
9180 warn_traditional; update comments.
9181 * cppinit.c (handle_option): Set warn_traditional not
9183 * cpphash.c: Replace CPP_OPTION (pfile, warn_stringify) with
9184 CPP_WTRADITIONAL (pfile).
9185 * cpplex.c (_cpp_lex_token): Don't decide if directives should
9186 be ignored in -traditional mode here.
9188 * cpplex.c: Copy ISTABLE macros from cppinit.c, and adapt them
9189 to initialize speccase[] and trigraph_map[]. Delete all
9190 references to pfile->input_speccase. Always treat '?' as a
9191 special character. Remove table-initialization code from
9192 _cpp_init_input_buffer.
9194 * cpplib.h (struct cpp_reader): Remove input_speccase field.
9195 * cppinit.c (cpp_cleanup): Don't free input_speccase.
9197 2000-04-01 Richard Henderson <rth@cygnus.com>
9199 * Makefile.in (STAGESTUFF): Wildcard all debugging dumps at once.
9200 (mostlyclean): Likewise.
9202 * toplev.c (rtl_dump, jump_opt_dump, etc): Remove.
9203 (struct dump_file_info, enum dump_file_index, dump_file): New.
9204 (open_dump_file): Take a dump_file_index not a suffix, and a decl
9205 not a string. Clean out file if we havn't yet done so. Do nothing
9206 if the dump isn't enabled.
9207 (close_dump_file): Do nothing if the dump isn't open. Dump
9208 graph data if requested.
9209 (dump_rtl, clean_dump_file): Remove.
9210 (compile_file): Don't clean the dump files. Only finalize .bp dump
9211 if flag_test_coverage or flag_branch_probabilities. Only finalize
9212 .combine dump if optimizing. Iterate over dump_file to finalize the
9214 (rest_of_compilation): Update for open_dump_file/close_dump_file.
9215 Convert all uses of dump_rtl.
9216 (decode_d_option): Iterate over dump_file to implement 'a' and to
9217 locate pass-specific dumps.
9219 2000-04-01 Neil Booth <NeilB@earthling.net>
9221 * cppexp.c: Redefine priority constants.
9222 (_cpp_parse_expr): Replace left and right priority scheme with
9223 single priority logic. Move LOGICAL to same place as COMPARE.
9224 Remove bogus check for multiple unary +/- operators.
9226 2000-04-01 Neil Booth <NeilB@earthling.net>
9228 * cppexp.c: (_cpp_parse_expr): Numerical constants are pushed
9229 within the switch statement. Binary operations break out of
9230 the switch naturally. '(' tokens handled by forcing
9231 immediate shift. ')' handled by forcing immediate reduce to
9232 the previous '('. New error messages.
9234 2000-03-31 Geoff Keating <geoffk@cygnus.com>
9236 * config/rs6000/rs6000.c (print_operand): Don't use %l for 'low
9237 part', it's already in use. Use %K instead. Add a return at the
9238 end of what is now %K.
9239 * config/rs6000/rs6000.md (elf_low): Use %K instead of %l.
9241 Sat Apr 1 02:05:29 MET DST 2000 Jan Hubicka <jh@suse.cz>
9243 * builtins.c (expand_builtin_apply): Pass proper parameters to
9244 allocate_dynamic_stack_space.
9245 * calls.c (emit_call_1): Do not adjust stack pointer for SIB,
9246 update stack_pointer_delta; do not update arg_size_so_far.
9247 (compute_argument_block_size): Use stack_delta instead of
9248 stack_pointer_pending and arg_size_so_far.
9249 (expand_call): Add sanity checking for stack_pointer_delta;
9250 save and restore stack_pointer_delta for SIB, use
9251 stack_pointer_delta for alignment; do not update arg_space_so_far.
9252 (emit_library_call_value): Use stack_pointer_delta for alignment.
9253 (store_one_arg): Do not update arg_space_so_far.
9254 * explow.c (adjust_stack, anti_adjust_stack): Update
9255 stack_pointer_delta.
9256 (allocate_dynamic_stack_space): Add sanity checking for
9257 stack_pointer_delta.
9258 * expr.c (init_expr, clear_pending_stack_adjust): Clear
9259 stack_pointer_delta.
9260 (emit_push_insn): Update stack_pointer_delta.
9261 * function.h (struct expr_status): Add x_stack_pointer_delta;
9262 remove x_arg_space_so_far.
9263 (arg_space_so_far): Remove.
9264 (stack_pointer_delta): New macro.
9266 2000-03-31 Zack Weinberg <zack@wolery.cumb.org>
9268 * cpplib.h: Merge struct cpp_options into struct cpp_reader.
9269 Reorder struct cpp_options and struct cpp_reader for better
9270 packing. Replace CPP_OPTIONS macro with CPP_OPTION which
9271 takes two args. Change all 'char' flags to 'unsigned char'.
9272 Move show_column flag into struct cpp_options. Don't
9273 prototype cpp_options_init.
9274 * cpphash.h, cpperror.c, cppexp.c, cppfiles.c, cpphash.c,
9275 cppinit.c, cpplex.c, cpplib.c:
9276 Replace CPP_OPTIONS (pfile)->whatever with
9277 CPP_OPTION (pfile, whatever), and likewise for
9278 opts = CPP_OPTIONS (pfile); ... opts->whatever;
9280 * cppinit.c (merge_include_chains): Take a cpp_reader *.
9281 Extract CPP_OPTION (pfile, pending) and work with that
9283 (cpp_options_init): Delete.
9284 (cpp_reader_init): Turn on on-by-default options here.
9285 Allocate the pending structure here.
9286 (cl_options, enum opt_code): Define these from the same table,
9287 kept in a large macro. Add -fshow-column and -fno-show-column
9290 * cpperror.c (v_message): If show_column is off, don't print
9293 * cppmain.c: Update for new interface.
9294 * fix-header.c: Likewise.
9296 2000-03-30 Geoff Keating <geoffk@cygnus.com>
9298 * config/rs6000/t-aix43 (AR_FLAGS_FOR_TARGET): Adjust for new
9300 * Makefile.in (AR_FLAGS_FOR_TARGET): Is now the flags that
9301 are passed to any invocation of AR_FOR_TARGET.
9302 (AR_CREATE_FOR_TARGET): New macro.
9303 (AR_EXTRACT_FOR_TARGET): New macro.
9304 (ORDINARY_FLAGS_TO_PASS): Add AR_CREATE_FOR_TARGET,
9305 AR_EXTRACT_FOR_TARGET.
9306 (many places): Use AR_CREATE_FOR_TARGET, AR_EXTRACT_FOR_TARGET
9307 in place of `$(AR_FOR_TARGET) $(AR_FLAGS_FOR_TARGET)' and
9308 `$(AR_FOR_TARGET) x'. Pass AR_CREATE_FOR_TARGET and
9309 AR_EXTRACT_FOR_TARGET to sub-makes.
9311 2000-03-31 Neil Booth <NeilB@earthling.net>
9313 * cppexp.c: Delete SKIP_OPERAND. Correct priority
9315 (_cpp_parse_expr): Check for multiple unary +/- operators.
9316 Correct priorities of ':' and '?'. Treat ')' as having a
9317 value. Ensure conditional expression is not void.
9319 2000-03-31 Mark Mitchell <mark@codesourcery.com>
9321 * alias.c (canon_rtx): Make it global.
9322 (rtx_equal_for_memref_p): CONST_INT equality is now pointer
9324 * cse.c (struct table_elt): Add canon_exp.
9326 (invalidate): Canonicalize expressions only once.
9327 * rtl.h (canon_rtx): Declare.
9329 2000-03-30 Mark Mitchell <mark@codesourcery.com>
9331 * Makefile.in (emit-rtl.o): Depend on HASHTAB_H.
9332 * alias.c (reg_known_value): Add comments.
9333 (init_alias_analysis): Likewise.
9334 * cse.c (exp_equiv_p): CONST_INTs are equal iff they have the same
9336 (cse_basic_block): Fix typo in comment.
9337 * emit-rtl.c: Include hashtab.h.
9338 (const_int_htab): New variable.
9339 (const_int_htab_hash): New function.
9340 (const_int_htab_eq): Likewise.
9341 (rtx_htab_mark_1): Likewise.
9342 (rtx_htab_mark): Likewise.
9343 (gen_rtx_CONST_INT): Cache all CONST_INTs.
9344 (unshare_all_rtx): Fix formatting.
9345 (init_emit_once): Initialize const_int_htab.
9346 * rtl.c (rtx_equal_p): CONST_INTs are equal iff they have the same
9348 * rtl.texi: Document the fact that all CONST_INTs with the same
9351 2000-03-30 Richard Henderson <rth@cygnus.com>
9353 * alpha.h (FUNCTION_BOUNDARY): Reduce to 128 bits.
9355 2000-03-30 Zack Weinberg <zack@wolery.cumb.org>
9357 * configure.in: Comment out --enable-c-cpplib stanza.
9358 * configure: Regenerate.
9360 Thu Mar 30 06:32:51 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9362 * expr.c (store_constructor): Properly compute displacement and
9363 alignment when offset is variable.
9365 * expmed.c (store_bit_field, store_fixed_bit_field): Fix more
9366 cases of alignment in bytes.
9368 Thu Mar 30 13:30:40 2000 Jeffrey A Law (law@cygnus.com)
9370 * c-parse.in (cast_expr): Move change from March 21 into c-parse.in
9371 since it is used to generate c-parse.y.
9372 * objc-parse.c, objc-parse.y: Regenerated.
9374 * function.c (expand_function_end): Pass alignment argument to
9375 emit_block_move in bits, not bytes.
9377 Thu Mar 30 06:32:51 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9379 * expr.c (move_by_pieces_ninsns): Fix one more missing align
9382 * expmed.c (store_fixed_bit_field): STRUCT_ALIGN is in bits.
9384 * calls.c (expand_call): Pass bit alignment to mark_reg_pointer.
9385 * explow.c (memory_address, allocate_dynamic_stack_space): Likewise.
9386 * function.c (assign_parms): Likewise.
9387 * integrate.c (expand_inline_function): Likewise.
9388 * stmt.c (expand_decl): Likewise.
9389 (copy_rtx_and_substitute): Likewise.
9390 * expr.c (expand_expr, expand_expr_unaligned): Likewise.
9391 (clear_by_pieces): Fix error in last change.
9392 * emit-rtl.c (init_emit): Set known registers alignment in bits.
9393 * function.h (regno_pointer_align): Now unsigned.
9394 * config/arm/arm.c (alignable_memory_operand): REGNO_POINTER_ALIGN
9396 * config/i386/i386.c (aligned_operand): Likewise.
9397 * config/sparc/sparc.c (mem_min_alignment): Likewise.
9398 * config/alpha/alpha.c (aligned_memory_operand): Likewise.
9399 (unaligned_memory_operand): Likewise.
9400 (alpha_expand_block_move, alpha_expand_block_clear): Likewise.
9401 Also make alignments and sizes unsigned and some whitespace cleanup.
9402 (alpha_va_start): Do nothing if VALIST's type is error_mark_node.
9404 * builtins.c (get_pointer_alignment): Use host_integerp & tree_low_cst.
9405 (expand_builtin_apply): Pass alignment to emit_block_move in bits.
9406 (expand_builtin_memcpy, expand_builtin_va_copy): Likewise.
9407 (expand_builtin_memset): Likewise, but to clear_storage.
9408 * calls.c (save_fixed_argument_area): Likewise, to move_by_pieces.
9409 (restore_fixed_argument_area): Likewise.
9410 (store_unaligned_arguments_into_pseudos): Likewise, to store_bit_field.
9411 (load_register_parameters): Likewise, to emit_group_load.
9412 (expand_call): Likewise, to emit_group_store and emit_block_move.
9413 (emit_library_call_value_1): Likewise, to emit_block_move.
9414 (store_one_arg): Likewise, and to emit_push_insn.
9415 * expmed.c (extract_bit_field): Alignment is in bits, not bytes.
9416 (extract_fixed_bit_field, extract_split_bit_field): Likewise.
9417 * expr.c (move_by_pieces, move_by_pieces_ninsns): Likewise.
9418 (emit_block_move, emit_group_load, emit_group_store): Likewise.
9419 (clear_by_pieces, clear_storage, emit_push_insn): Likewise.
9420 (expand_assigment, store_expr, store_constructor_field): Likewise.
9421 (expand_expr_unaligned, do_jump, do_compare_and_jump): Likewise.
9422 (store_constructor, store_field, get_inner_reference): Likewise.
9423 Use host_integerp and tree_low_cst; sizes and positions HOST_WIDE_INT.
9424 (expand_expr, case COMPONENT_REF): Likewise.
9425 (copy_blkmode_from_regs): Use UNSIGNED_HOST_WIDE_INT for sizes
9426 and positions; reindent code.
9427 * expr.h (emit_cmp_insn, emit_cmp_and_jump_insns): Alignment unsigned.
9428 * function.c (purge_addressof_1): Pass bit align to store_bit_field.
9429 (assign_parms): Likewise to emit_group_store.
9430 * optabs.c (prepare_cmp_insn): Alignment is in bits.
9431 (emit_cmp_and_jump_insns, emit_cmp_insn): Likewise, and also unsigned.
9432 * stmt.c (expand_value_return): Pass align in bits to emit_group_load.
9433 (expand_return): Likewise to {extract,store}_bit_field.
9434 * stor-layout.c (get_mode_alignment): Minor cleanup.
9435 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Align is in bits.
9436 * config/sh/sh.h (MOVE_BY_PIECES_P): Likewise.
9438 2000-03-29 Nick Clifton <nickc@cygnus.com>
9440 * config/arm/arm.h: Undo effects of previous delta:
9441 (ASM_SPEC): Do not define.
9442 (SUBTARGET_EXTRA_ASM_SPEC): Do not define.
9444 * config/arm/linux-elf.h: (SUBTARGET_EXTRA_ASM_SPEC) Fix
9447 2000-03-29 Zack Weinberg <zack@wolery.cumb.org>
9449 * cppinit.c (cpp_start_read): Call initialize_dependency_output
9450 only after reading in the primary source file.
9452 2000-03-29 Geoff Keating <geoffk@cygnus.com>
9454 * c-common.c (c_common_nodes_and_builtins): The first parameter to
9455 __builtin_va_start and __builtin_va_copy is now either a 'va_list'
9456 or a reference to a va_list.
9457 * builtins.c (stabilize_va_list): Simplify now we don't have to
9458 work around C array address decay.
9459 * c-typeck.c (convert_for_assignment): Handle assignment to
9460 a reference parameter by taking the address of the RHS.
9461 * ginclude/stdarg.h (va_start): Don't take address of first parameter.
9462 (va_copy): Likewise.
9463 (__va_copy): Likewise.
9464 * ginclude/varargs.h (va_start): Likewise.
9465 (__va_copy): Likewise.
9467 Wed Mar 29 15:44:53 2000 Jeffrey A Law (law@cygnus.com)
9469 * i386/djgpp.h: Remove extraneous "+".
9471 * stmt.c (stmt_loop_nest_empty): Fix thinko in last change.
9473 * calls.c (expand_call): Fix typo in last change.
9475 2000-03-29 Jason Merrill <jason@casey.cygnus.com>
9477 * tree.c (unsave_expr_1): Don't mess with a TARGET_EXPR that hasn't
9480 Wed Mar 29 15:39:10 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9482 * stor-layout.c (bit_from_pos, byte_from_pos): New functions.
9483 (pos_from_byte, pos_from_bit, normalize_offset): Likewise.
9484 (normalize_rli, rli_size_so_far, rli_size_unit_so_far): Use them.
9485 * tree.c (bit_position, byte_position): Likewise.
9486 * tree.h: Declare new functions.
9488 2000-03-29 Nick Clifton <nickc@cygnus.com>
9490 * config/arm/arm.c: Minor formatting changes/
9491 * config/arm/arm.h (SUBTARGET_EXTRA_ASM_SPEC): Define if not
9493 (ASM_SPEC): Define if not already defined.
9495 2000-03-29 Zack Weinberg <zack@wolery.cumb.org>
9497 * cppfiles.c (cpp_read_file): Don't pass zero-length string to
9500 2000-03-29 Jakub Jelinek <jakub@redhat.com>
9502 * dwarf2out.c (gen_enumeration_type_die): If enum has a negative
9503 value, don't output it as unsigned.
9505 Wed Mar 29 10:53:49 2000 Jeffrey A Law (law@cygnus.com)
9507 * stmt.c (stmt_loop_nest_empty): Allow cfun->stmt to be NULL.
9509 2000-03-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9511 * c-common.c (c_common_nodes_and_builtins): Don't special case
9512 cplus_mode when declaring builtin bzero/bcmp, always avoid
9513 prototype arguments.
9515 2000-03-29 Bruce Korb <bkorb@gnu.org>
9517 * fixinc/mkfixinc.sh: Initially set the variable "fixincludes"
9520 Wed Mar 29 15:08:01 MET DST 2000 Jan Hubicka <jh@suse.cz>
9522 Convert ACCUMULATE_OUTGOING_ARGS to an expression.
9523 * calls.c (PUSH_ARGS_REVERSED) Change to expression.
9524 (ACCUMULATE_OUTGOING_ARGS, PUSH_ARGS): Provide default value.
9525 (struct arg_data): Remove #ifdef ACCUMULATE_OUTGOING_ARGS.
9526 (save_fixed_argument_area, restore_fixed_argument_area):
9527 conditionize by #ifdef REG_PARM_STACK_SPACE only.
9528 (emit_call): Change #ifdefs on ACCUMULATE_OUTGOING_ARGS
9529 to conditions, handle RETURN_POPS_ARGS on ACCUMULATE_OUTGOING_ARGS.
9530 (precompute_register_parameters): Avoid #ifdefs on
9531 ACCUMULATE_OUTGOING_ARGS and PUSH_ARGS_REVERSED.
9532 (stire_one_args): Likewise.
9533 (expand_call): Likewise; conditionize PUSH_ROUNDING code by PUSH_ARGS.
9534 (emit_library_call_value_1): Likewise.
9535 (compute_argument_block_size): Align to STACK_BOUNDARY only for
9536 ACCUMULATE_OUTGOING_ARGS.
9537 * combine.c (ACCUMULATE_OUTGOING_ARGS, PUSH_ARGS): Provide default
9539 (nonzero_bits): Conditionize PUSH_ROUNDING code by USE_PUSH.
9540 (use_crosses_set_p): Likewise.
9541 * all targets (ACCUMULATE_OUTGOING_ARGS define): Change to
9542 #define ACCUMULATE_OUTGOING_ARGS 1.
9543 * i386.c (ix86_compute_frame_size): Handle ACCUMULATE_OUTGOING_ARGS
9545 * i386.h (MASK_NO_PUSH_ARGS, MASK_ACCUMULATE_OUTGOING_ARGS): New
9547 (TARGET_PUSH_ARGS, TARGET_ACCUMULATE_OUTGOING_ARGS): New macros.
9548 (TARGET_SWITCHES): Add push-args, no-push-args,
9549 accumulate-outgoing-args and no-accumulate-outgoing-args.
9550 (ACCUMULATE_OUTGOING_ARGS, PUSH_ARGS): New macro.
9551 * expr.c (ACCUMULATE_OUTGONG_ARGS, PUSH_ARGS): Provide default.
9552 (push_block): Avoid ifdefs on ACCUMULATE_OUTGONG_ARGS
9554 (emit_push_insn): Likewise.
9555 * final.c (ACCUMULATE_OUTGOING_ARGS): Provide default.
9556 (final_scan_insn): Avoid ifdefs on ACCUMULATE_OUTGOING_ARGS.
9557 * function.c (ACCUMULATE_OUTGOING_ARGS): Provide default.
9558 (STACK_DYNAMIC_OFFSET): Define correctly for both
9559 ACCUMULATE_OUTGOING_ARGS and normal mode.
9560 * invoke.texi (-mpush_args, -maccumulate-outgoing-args): Document.
9561 * tm.texi (PUSH_ARGS): Document.
9562 (ACCUMULATE_OUTGOING_ARGS, PUSH_ROUNDING): Update documentation.
9564 Wed Mar 29 11:51:13 MET DST 2000 Jan Hubicka <jh@suse.cz>
9566 * flags.h (flag_optimize_sibling_calls): Declare.
9567 * calls.c (expand_call): Fail sibcall when
9568 !flag_optimize_sibling_calls
9569 * invoke.texi (flag_optimize_sibling_calls): Document.
9570 * toplev.c (flag_optimize_sibling_calls): New global variable.
9571 (f_options): Add flag_optimize_sibling_calls.
9572 (rest_of_compilation): Conditionize
9573 optimize_sibling_and_tail_recursive_calls by
9574 flag_optimize_sibling_calls.
9575 (main): Set flag_optimize_sibling_calls for -O2.
9576 * stmt.c (expand_return): Conditionize tail recursion by
9577 flag_optimize_sibling_calls.
9579 2000-03-29 Richard Henderson <rth@cygnus.com>
9581 * config/i386/att.h (LOCAL_LABEL_PREFIX): Define.
9582 (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Use it.
9584 2000-03-29 Nathan Sidwell <nathan@codesourcery.com>
9586 * except.c (add_eh_table_entry): Mark type_info's as referenced.
9588 2000-03-29 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
9590 * config/rs6000/aix41.h (CPP_SPEC): Define _ANSI_C_SOURCE if -ansi
9592 * config/rs6000/aix43.h (CPP_SPEC): Likewise.
9593 * config/rs6000/rs6000.h (CPP_SPEC): Moved to...
9594 * config/rs6000/aix.h: then modified likewise.
9596 2000-03-28 Richard Henderson <rth@cygnus.com>
9598 * rtl.h: Redistribute enum reg_note documentation.
9599 Kill trailing whitespace.
9600 * rtl.c (reg_note_name): Adjust to match enum reg_note tweeks.
9601 Kill trailing whitespace.
9603 2000-03-28 Zack Weinberg <zack@wolery.cumb.org>
9605 * cppfiles.c (hash_IHASH): Just return i->hash.
9606 (cpp_included): Set dummy.hash using _cpp_calc_hash. Use
9607 htab_find_with_hash.
9608 (cpp_read_file): Likewise.
9609 (find_include_file): Likewise. Properly initialize
9610 ih->nshort. Share ih->name and ih->nshort if possible.
9611 * cpphash.c (_cpp_calc_hash): New function.
9612 (hash_HASHNODE): Just return h->hash.
9613 (_cpp_lookup): Set dummy.hash using _cpp_calc_hash. Use
9614 htab_find_with_hash.
9615 * cpphash.h: Prototype _cpp_calc_hash.
9616 * cppinit.c (initialize_builtins): Provide a valid hash
9617 to _cpp_make_hashnode, using _cpp_calc_hash.
9619 * cpphash.c (collect_expansion): # is not a special character
9620 in object-like macros. In -traditional mode, /**/ is not
9621 token paste at the beginning or end of the line.
9622 * cpplib.c (do_include, do_import, do_include_next): If
9623 parse_include fails, return immediately.
9625 2000-03-28 Jason Merrill <jason@casey.cygnus.com>
9627 * config/arm/arm.md (return peepholes): Update to reflect the new
9629 * config/arm/arm.c (arm_volatile_func): Also check
9630 current_function_nothrow.
9631 (output_return_instruction, output_func_prologue): Use it.
9632 (arm_output_epilogue, arm_expand_prologue): Likewise.
9634 2000-03-27 Tom Tromey <tromey@cygnus.com>
9636 * gcc.c (handle_braces): In {x*...} case, break out of loop if
9639 Tue Mar 28 11:55:48 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9641 * expr.c (store_constructor): SIZE now signed.
9642 For EXPR_SIZE, don't evaluate size; just needed if constant.
9643 * fold-const.c (fold): Fix a number of cases when folded tree is
9645 * function.c (flush_addressof): Reenable.
9646 * tree.h (flush_addressof): Likewise.
9647 * toplev.c (independent_decode_option): Look at strings_processed.
9648 * config/alpha/alpha.h (MINIMUM_ATOMIC_ALIGNMENT): Cast to unsigned.
9650 Tue Mar 28 08:29:46 2000 Jan Hubicka <jh@suse.cz>
9652 * sibcall.c (indentify_call_return_value): Find last call in the chain;
9653 Allow stack adjustment after function call.
9655 * regmove.c (struct csa_memlist): Make mem field rtx *.
9656 (record_one_stack_ref): Accept rtx * instead of rtx as parameter.
9657 (try_apply_stack_adjustment): Replace whole MEM rtx.
9658 (combine_stack_adjustments_for_block): Update calls
9659 to record_one_stack_ref.
9661 2000-03-28 Neil Booth <NeilB@earthling.net>
9663 * cpplex.c (_cpp_read_and_prescan): Mark end of input buffer with
9664 '\\' rather than a null character, so nulls are not special. Fix
9665 "\\\n" handling in end-of-buffer conditions. Use trigraph map to
9666 speed trigraph conversion.
9667 (_cpp_init_input_buffer): Initialize trigraph map.
9669 2000-03-27 Alan Modra <alan@linuxcare.com.au>
9671 * config/i386/i386.c (output_387_binary_op): Correct intel
9672 mode assembly output, and add spaces after commas in AT&T
9673 output. Correct Unixware assembler comment. Document input
9674 constraints. Comment fp operations. Reduce profligate buffer
9675 size. Remove extraneous abort. Localize temp var.
9676 (SYSV386_COMPAT): Define. Add !SYSV386_COMPAT code.
9677 (output_fix_trunc): Add spaces after commas in assembly output.
9679 2000-03-27 Richard Henderson <rth@cygnus.com>
9681 * i386-protos.h (ix86_match_ccmode): Declare.
9682 * i386.c (ix86_match_ccmode): New.
9683 (ix86_expand_fp_compare): Update for pattern renames.
9684 (ix86_expand_strlensi_unroll_1): Likewise.
9685 * i386.h (EXTRA_CC_MODES): Add CCZ.
9686 (SELECT_CC_MODE): Use it for EQ/NE zero.
9687 * i386.md (cmpsi_ccz_1): New.
9689 (*testsi_ccz_1): New.
9690 (testqi_ccz_1): New.
9691 (cmpsi_ccno_1): Rename from cmpsi_0.
9692 (testsi_ccno_1): Rename from testsi_1.
9693 (testqi_ccno_1): Rename from testqi_1.
9694 (*testqi_ext_ccz_0): Rename from testqi_ext_0.
9695 (testqi_ext_ccno_0): Rename from *testqi_ext_1.
9696 (*cmphi_0): Use ix86_match_ccmode.
9697 (*cmpqi_ext_2, *addsi_2, *addhi_2, *addqi_2): Likewise.
9698 (*subsi_2, *subhi_2, *subqi_2, *testhi_1): Likewise.
9699 (*testqi_ext_1, *testqi_ext_2, *testqi_ext_3): Likewise.
9700 (*andsi_2, *andhi_2, *andqi_2, *andqi_ext_0_cc): Likewise.
9701 (*iorsi_2, *iorhi_2, *iorqi_2): Likewise.
9702 (*xorsi_2, *xorhi_2, *xorqi_cc_1): Likewise.
9703 (*one_cmplsi2_2, *one_cmplhi2_2, *one_cmplqi2_2): Likewise.
9704 (*ashlsi3_cmpno, *ashlhi3_cmpno, *ashlqi3_cmpno): Likewise.
9705 (*ashrsi3_cmpno, *ashrhi3_cmpno, *ashrqi3_cmpno): Likewise.
9706 (*lshrsi3_cmpno, *lshrhi3_cmpno, *lshrqi3_cmpno): Likewise.
9707 (appropriate peepholes): Likewise.
9708 (*cmphi_1, *cmpqi_ccno_1, *cmpqi_1): Star out name.
9709 (*subsi_3, *subhi_3, *subqi_3): Remove.
9710 (*negdi2_1+1 splitter): Use CCZ for neg patterns.
9711 (*negsi2_cmp, *neghi2_cmp, *negqi2_cmp): Remove.
9712 (*negsi2_cmpz): Rename from *negsi2_cmpno, use CCZ.
9713 (*neghi2_cmpz, *negqi2_cmpz): Similarly.
9714 (x86_shift_adj_1): Use CCZ.
9715 (*dbra_ge+1, *dbra_ge+2, ffssi2, ffssi_1): Likewise.
9717 2000-03-27 Stan Cox <scox@cygnus.com>
9719 * resource.h (mark_resource_type): New.
9720 * resource.c (find_dead_or_set_registers, mark_target_live_regs,
9721 find_free_register): Use mark_resource_type.
9722 (mark_set_resources): Change include_delayed_effects
9723 to mark_resource_type.
9724 * reorg.c (steal_delay_list_from_target, try_merge_delay_insns,
9725 redundant_insn, fill_simple_delay_slots, fill_slots_from_thread):
9726 Use mark_resource_type.
9728 2000-03-27 Richard Henderson <rth@cygnus.com>
9730 * i386.md (call_pop_0, call_value_pop_0): New.
9731 (call_pop_1): Remove constraint from unused arg. Support sibcalls.
9732 (call_value_pop_1): Likewise.
9733 (call_0, call_value_0): New.
9734 (call_1, call_value_1): Remove constraint from unused arg.
9736 2000-03-27 Nick Clifton <nickc@cygnus.com>
9738 * invoke.texi (Spec Files): Document new spec % command created by
9739 Tom Tromey's recent patch.
9741 2000-03-27 Jakub Jelinek <jakub@redhat.com>
9743 * libgcc2.h (MIN_UNITS_PER_WORD): Define to UNITS_PER_WORD
9746 Mon Mar 27 06:04:22 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9748 * expr.c (expand_assignment): Fix typo in last change.
9750 * libgcc2.h: Use MIN_UNITS_PER_WORD, not UNITS_PER_WORD.
9752 Sun Mar 26 20:15:26 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9754 * c-convert.c (convert): Return if output or input type is ERROR_MARK.
9755 * c-decl.c (duplicate_decls): Only look at DECL_BUILT_IN_NONANSI
9756 and DECL_INLINE if FUNCTION_DECL.
9757 (pushdecl, redeclaration_error_message): Likewise, for DECL_INLINE.
9758 (store_parm_decls): Check for type of PARM_DECL being ERROR_MARK.
9759 Use DECL_WEAK, not DECL_RESULT, to flag for already seen.
9760 (combine_parm_decls): Likewise.
9761 * ggc-common.c (gcc_mark_tree_children, case 'd'): Use DECL_RESULT_FLD.
9762 * print-tree.c (print_node): Likewise.
9763 Only test DECL_PACKED, DECL_INLINE, DECL_BIT_FIELD, and
9764 DECL_TRANSPARENT_UNION on proper decl types.
9765 Properly handly DECL_INCOMING_RTL and DECL_SAVED_INSNS.
9766 * stor-layout.c (layout_decl): Only check DECL_PACKED and
9767 DECL_BIT_FIELD of FIELD_DECL.
9768 * tree.h (DECL_RESULT_FLD): New macro.
9770 * expr.c (expand_assignment): Add code to handle variable-sized
9773 2000-03-26 Richard Henderson <rth@cygnus.com>
9775 * calls.c (expand_call): Pass parms not original exp to
9776 optimize_tail_recursion. Mind return value instead of looking
9778 * stmt.c (optimize_tail_recursion): Take parameter list, not entire
9779 call_expr. Move checks for call_expr and current_function_decl ...
9780 (expand_return): ... here.
9782 2000-03-26 Tom Tromey <tromey@cygnus.com>
9784 * gcc.c (handle_braces): Recognize `%{<S}' construct.
9785 (SWITCH_OK, SWITCH_FALSE, SWITCH_IGNORE, SWITCH_LIVE): New
9787 (process_command): Use them.
9788 (check_live_switch): Likewise.
9789 (give_switch): Skip ignored switches.
9791 2000-03-26 Jan Hubicka <jh@suse.cz>
9793 * jump.c (jump_optimize_1): Fix typo in elide optimizations
9794 for minimal jump pass test.
9796 2000-03-26 Mark Mitchell <mark@codesourcery.com>
9798 * integrate.c (function_cannot_inline_p): Do inline functions that
9801 Sun Mar 26 11:37:55 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9803 * stor-layout.c (layout_type, set_sizetype): early_type_list is
9804 now a list of TREE_LIST entries, not types.
9805 * tree.c (build_common_tree_nodes_2): Eliminate dupliate type sets.
9807 * expmed.c (extract_bit_field): Ensure BITS_PER_WORD is signed in MAX.
9808 * config/arm/pe.c (arm_pe_return_in_memory): Use host_integerp and
9810 * config/mips/mips.c (function_arg): Likewise; also remove cast
9811 and make variables unsigned or HOST_WIDE_INT and use tree_low_cst.
9812 (mips_function_value): Use int_byte_position and make HOST_WIDE_INT.
9813 * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Offsets are unsigned.
9814 * config/mips/mips.h (BITS_PER_WORD, UNITS_PER_WORD): Cast to unsigned.
9815 (UNITS_PER_FPREG, INT_TYPE_SIZE, LONG_TYPE_SIZE): Likewise.
9816 (POINTER_SIZE, POINTER_BOUNDARY,PARM_BOUNDARY): Likewise.
9817 (GP_REG_P, FP_REG_P, MD_REG_P, ST_REG_P): Ensure subtraction signed.
9818 (struct mips_arg): arg_number, arg_words, fp_arg_words, and
9819 num_adjusts now unsigned.
9820 (FUNCTION_ARG_BOUNDARY): Remove unneeded cast.
9821 * config/sparc/sparc.c (struct function_arg_record_value_parms):
9823 (function_arg_record_value_1): STARTBITPOS arg now HOST_WIDE_INT
9824 as is BITPOS variable; use host_integerp and int_bit_position.
9825 (function_arg_record_value_2): Likewise.
9826 (function_arg_record_value_3): Arg BITPOS now HOST_WIDE_INT.
9827 Variable REGNO now unsigned.
9828 (function_arg_record_value): NREGS now unsigned.
9830 2000-03-26 Bernd Schmidt <bernds@cygnus.co.uk>
9832 * jump.c (mark_all_labels): Handle CALL_PLACEHOLDERs.
9834 Sat Mar 25 09:12:10 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9836 * Rework fields used to describe positions of bitfields and
9837 modify sizes to be unsigned and use HOST_WIDE_INT.
9838 * alias.c (reg_known_value_size): Now unsigned.
9839 * c-typeck.c (build_unary_op, case ADDR_EXPR): Use byte_position.
9840 (really_start_incremental_init): Use bitsize_zero_node.
9841 (push_init_level, pop_init_level, output_init_element): Likewise.
9842 Use bitsize_unit_node and bitsize_one_node.
9843 (output_pending_init_elements, process_init_element): Likewise.
9844 * combine.c (combine_max_regno, reg_sign_bit_copies): Now unsigned.
9845 (make_extraction): Position and length HOST_WIDE_INT and unsigned
9846 HOST_WIDE_INT, respectively.
9847 (get_pos_from_mask): Passed in value is unsigned HOST_WIDE_INT.
9848 (num_sign_bit_copies): Returns unsigned.
9849 BITWIDTH now unsigned; rework arithmetic.
9850 Remove recursive call from arg to MAX.
9851 (combine_instructions, init_reg_last_arrays): NREGS now unsigned.
9852 (setup_incoming_promotions, can_combine_p, try_combine, simplify_set):
9854 (set_nonzero_bit_and_sign_copies): NUM now unsigned.
9855 (find_split_point, expand_compound_operation, make_extraction): LEN
9856 now unsigned HOST_WIDE_INT, POS now HOST_WIDE_INT.
9857 (make_field_assignment): Likewise.
9858 (combine_simplify_rtx): Add cast.
9859 (expand_compound_operation): MODEWIDTH now unsigned; rework arithmetic.
9860 (force_to_mode): WIDTH now unsigned; add cast.
9861 (if_then_else_cond): SIZE now unsigned.
9862 (nonzero_bits): MODE_WIDTH, RESULT_WIDTH, and WIDTH now unsigned.
9863 (extended_count): Now returns unsigned.
9864 (simplify_shift_const): COUNT unsigned; arg is now INPUT_COUNT.
9865 Add SIGNED_COUNT variable; MODE_WORDS and FIRST_COUNT now unsigned.
9866 (simplify_comparison): MODE_WIDTH now unsigned.
9867 (update_table_tick): REGNO and ENDREGNO now unsigned; new var R.
9868 (mark_used_regs_combine): Likewise; rework arithmetic.
9869 (record_value_for_reg): REGNO, ENDREGNO, and I now unsigned.
9870 (record_dead_and_set_regs, reg_dead_at_p, distribute_notes): Likewise.
9871 (record_promoted_value): REGNO now unsigned.
9872 (get_last_value_validate): REGNO, ENDREGNO, and J now unsigned.
9873 (get_last_value): REGNO now unsigned.
9874 (use_crosses_set_p): REGNO and ENDREGNO now unsigned.
9875 (reg_dead_regno, reg_dead_endregno): Now unsigned.
9876 (remove_death): Arg REGNO now unsigned.
9877 (move_deaths): REGNO, DEADREGNO, DEADEND, OUREND, and I now unsigned.
9878 (reg_bitfield_target_p): REGNO, REGNO, ENDREGNO, and ENDTREGNO
9880 * convert.c (convert_to_integer): INPREC and OUTPREC now unsigned.
9881 * cse.c (struct qty_table_elem): FIRST_REG and LAST_REG now unsigned.
9882 (struct cse_reg_info): REGNO now unsigned.
9883 (cached_regno): Now unsigned.
9884 (REGNO_QTY_VALID_P): Add cast.
9885 (make_new_qty, make_regs_eqv, delete_reg_eqiv): Regno args unsigned.
9886 (remove_invalid_regs): Likewise.
9887 (remove_invalid_subreg_refs): Likewise; arg WORD also unsigned
9888 as are variables END and I.
9889 (get_cse_reg_info, insert): Likewise.
9890 (mention_regs, invalidate_for_call): REGNO, ENDREGNO, and I unsigned.
9891 (canon_hash): Likewise.
9892 (insert_regs, lookup_for_remove): REGNO now unsigned.
9893 (invalidate): REGNO, ENDREGNO, TREGNO, and TENDREGNO now unsigned.
9895 * dbxout.c (dbxout_parms, dbxout_reg_parms): Don't check for REGNO < 0.
9896 * dwarf2out.c (dwarf2ou_frame_debug_expr): Remove cast.
9897 * emit-rtl.c (subreg_realpart_p): Add cast.
9898 (operand_subword): Arg I is now unsigned as is var PARTWORDS.
9899 (operand_subword_force): Arg I is now unsigned.
9900 * except.c (eh_regs): Variable I is now unsigned.
9901 * explow.c (hard_function_value): BYTES is unsigned HOST_WIDE_INT.
9902 * expmed.c (store_fixed_bit_field): Position is HOST_WIDE_INT;
9903 length is unsigned HOST_WIDE_INT; likewise for internal variables.
9904 (store_split_bit_field, extract_fixed_bit_field): Likewise.
9905 (extract_split_bit_field, store_bit_field, extract_bit_field):
9907 * expr.c (store_constructor_fields, store_constructor, store_field):
9908 Positions are HOST_WIDE_INT and lengths are unsigned HOST_WIDE_INT.
9909 (expand_assignment, expand_expr, expand_expr_unaligned): Likewise.
9910 (do_jump): Likewise.
9911 (move_by_pieces, move_by_pieces_ninsns, clear_by_pieces):
9912 MAX_SIZE is now unsigned.
9913 (emit_group_load): BYTEPOS is HOST_WIDE_INT; BYTELEN is unsigned.
9914 (emit_group_store): Likewise.
9915 (emit_move_insn): I now unsigned.
9916 (store_constructor): Use host_integerp, tree_low_cst, and
9918 (get_inner_reference): Return bitpos and bitsize as HOST_WIDE_INT.
9919 Rework all calculations to use trees and new fields.
9920 * expr.h (promoted_input_arg): Regno now unsigned.
9921 (store_bit_field, extract_bit_field): Adjust types of pos and size.
9922 (mark_seen_cases): Arg is HOST_WIDE_INT.
9923 * flow.c (verify_wide_reg_1): REGNO now unsigned.
9924 * fold-const.c (decode_field_reference): Size and pos HOST_WIDE_INT;
9925 precisions and alignments are unsigned.
9926 (optimize_bit_field_compare, fold_truthop): Likewise.
9927 (int_const_binop): Adjust threshold for size_int_type_wide call.
9928 (fold_convert): Likewise.
9929 (size_int_type_wide): Make table larger and fix thinko that only
9930 had half of table used.
9931 (all_ones_mask_p, fold): Precisions are unsigned.
9932 * function.c (put_reg_info_stack): REGNO is unsigned.
9933 (instantiate_decl): Size is HOST_WIDE_INT.
9934 (instantiate_virtual_regs): I is unsigned.
9935 (assign_parms): REGNO, REGNOI, and REGNOR are unsigned.
9936 (promoted_input_arg): REGNO is unsigned.
9937 * function.h (struct function): x_max_parm_reg is now unsigned.
9938 * gcse.c (max_gcse_regno): Now unsigned.
9939 (struct null_pointer_info): min_reg and max_reg now unsigned.
9940 (lookup_set, next_set): REGNO arg now unsigned.
9941 (compute_hash_table): REGNO and I now unsigned.
9942 (handle_avail_expr): regnum_for_replacing now unsigned.
9943 (cprop_insn): REGNO now unsigned.
9944 (delete_null_pointer_checks_1): BLOCK_REG now pointer to unsigned.
9945 * ggc-common.c (ggc_mark_tree_children, case FIELD_DECL): New case.
9946 * global.c (set_preference): SRC_REGNO, DEST_REGNO, and I now unsigned.
9947 * hard-reg-set.h (reg_class_size): Now unsigned.
9948 * integrate.c (mark_stores): LAST_REG and I now unsigned; new UREGNO.
9949 * jump.c (mark_modified_reg): I now unsigned; add cast.
9950 (rtx_equal_for_thread_p): Add cast.
9951 * loop.c (max_reg_before_loop): Now unsigned.
9952 (struct_movable): REGNO now unsigned.
9953 (try_copy_prop): REGNO arg unsigned.
9954 (regs_match_p): XN and YN now unsigned.
9955 (consec_sets_invariant_p, maybe_eliminate_biv): REGNO now unsigned.
9956 (strength_reduce): Likewise; NREGS also unsigned.
9957 (first_increment_giv, last_increment_giv unsigned): Now unsigned.
9958 * loop.h (struct iv_class): REGNO now unsigned.
9959 (max_reg_before_loop, first_increment_giv, last_increment_giv):
9961 * machmode.h (mode_size, mode_unit_size): Now unsigned.
9962 (mode_for_size, smallest_mode_for_size): Pass size as unsigned.
9963 * optabs.c (expand_binop): I and NWORDS now unsigned.
9964 (expand_unop): I now unsigned.
9965 * print-tree.c (print_node): Don't print DECL_FIELD_BITPOS, but do
9966 print DECL_FIELD_OFFSET and DECL_FIELD_BIT_OFFSET.
9967 * real.c (significand_size): Now returns unsigned.
9968 * real.h (significand_size): Likewise.
9969 * regclass.c (reg_class_size): Now unsigned.
9970 (choose_hard_reg_mode): Both operands now unsigned.
9971 (record_reg_classes): REGNO and NR now unsigned.
9972 (reg_scan): NREGS now unsigned.
9973 (reg_scan_update): old_max_regno now unsigned.
9974 (reg_scan_mark_refs): Arg MIN_REGNO and var REGNO now unsigned.
9975 * reload.c (find_valid_class): BEST_SIZE now unsigned.
9976 (find_dummy_reload): REGNO, NWORDS, and I now unsigned.
9977 (hard_reg_set_here_p): Args BEG_REGNO and END_REGNO now unsigned.
9978 Likewise for variable R.
9979 (refers_to_regno_for_reload_p): Args REGNO and END_REGNO now unsigned,
9980 as are variables INNER_REGNO and INNER_ENDREGNO; add new variable R.
9981 (find_equiv_reg): Add casts.
9982 (regno_clobbered_p): Arg REGNO now unsigned.
9983 * reload.h (struct reload): NREGS now unsigned.
9984 (refers_to_regno_for_reload_p): Regno args are unsigned.
9985 (regno_clobbered_p): Likewise.
9986 * reload1.c (reg_max_ref_width, spill_stack_slot_width): Now unsigned.
9987 (compute_use_by_pseudos): REGNO now unsigned.
9988 (find_reg): I and J now unsigned, new variable K, and change loop
9989 variables accordingly; THIS_NREGS now unsigned.
9990 (alter_reg): INHERENT_SIZE and TOTAL_SIZE now unsigned.
9991 (spill_hard_reg): REGNO arg now unsigned; add casts.
9992 (forget_old_reloads_1): REGNO, NR, and I now unsigned.
9993 (mark_reload_reg_in_use): Arg REGNO and vars NREGS and I now unsigned.
9994 (clear_reload_reg_in_use): Arg REGNO and vars NREGS, START_REGNO,
9995 END_REGNO, CONFLICT_START, and CONFLICT_END now unsigned.
9996 (reload_reg_free_p, reload_reg_reaches_end_p): Arg REGNO now unsigned.
9997 (choose_reload_regs): MAX_GROUP_SIZE now unsigned.
9998 (emit_reload_insns): REGNO now unsigned.
9999 (reload_cse_move2add): Add cast.
10000 (move2add_note_store): REGNO and I now unsigned; new variable ENDREGNO
10002 * resource.c (mark_referenced_resources, mark_set_resources): New
10003 variable R; REGNO and LAST_REGNO now unsigned.
10004 (mark_target_live_regs): J and REGNO now unsigned.
10005 * rtl.c (mode_size, mode_unit_size): Now unsigned.
10006 * rtl.h (union rtunion_def): New field rtuint.
10007 (XCUINT): New macro.
10008 (ADDRESSOF_REGNO, REGNO, SUBREG_WORD): New XCUINT.
10009 (operand_subword, operand_subword_force): Word number is unsigned.
10010 (choose_hard_reg_mode): Operands are unsigned.
10011 (refers_to-regno_p, dead_or_set_regno_p): Regno arg is unsigned.
10012 (find_regno_note, find_regno_fusage, replace_regs): Likewise.
10013 (regno_use_in, combine_instructions, remove_death): Likewise.
10014 (reg_scan, reg_scan_update): Likewise.
10015 (extended_count): Return is unsigned.
10016 * rtlanal.c (refers_to_regno_p): Args REGNO and ENDREGNO and vars I,
10017 INNER_REGNO, and INNER_ENDREGNO now unsigned; new variable X_REGNO.
10018 (reg_overlap_mentioned_p): REGNO and ENDREGNO now unsigned.
10019 (reg_set_last_first_regno, reg_set_last_last_regno): Now unsigned.
10020 (reg_reg_last_1): FIRS and LAST now unsigned.
10021 (dead_or_set_p): REGNO, LAST_REGNO, and I now unsigned.
10022 (dead_or_set_regno_p): Arg TEST_REGNO and vars REGNO and ENDREGNO
10024 (find_regno_note, regno_use_in): Arg REGNO now unsigned.
10025 (find_regno_fusage): Likewise; also var REGNOTE now unsigned.
10026 (find_reg_fusage): Variables REGNO, END_REGNO, and I now unsigned.
10027 (replace_regs): Arg NREGS now unsigned.
10028 * sdbout.c (sdbout_parms, sdbout_reg_parms): Don't check REGNO < 0.
10029 * simplify-rtx.c (simplify_unary_operation): WIDTH now unsigned.
10030 (simplify_binary_operation): Likewise.
10031 (cselib_invalidate_regno): Arg REGNO and variables ENDREGNO, I, and
10032 THIS_LAST now unsigned.
10033 (cselib_record_set): Add cast.
10034 * ssa.c (ssa_max_reg_num): Now unsigned.
10035 (rename_block): REGNO now unsigned.
10036 * stmt.c (expand_return): Bit positions unsigned HOST_WIDE_INT;
10037 sizes now unsigned.
10038 (all_cases_count): Just return -1 not -2.
10039 COUNT, MINVAL, and LASTVAL now HOST_WIDE_INT.
10040 Rework tests to use trees whenever possible.
10041 Use host_integerp and tree_low_cst.
10042 (mark_seen_cases): COUNT arg now HOST_WIDE_INT;
10043 Likewise variable NEXT_NODE_OFFSET; XLO now unsigned.
10044 (check_for_full_enumeration_handing): BYTES_NEEDED, I to HOST_WIDE_INT.
10045 * stor-layout.c (mode_for_size): SIZE arg now unsigned.
10046 (smallest_mode_for_size): Likewise.
10047 (layout_decl): Simplify handing of a specified DECL_SIZE_UNIT.
10048 KNOWN_ALIGN is now an alignment, so simplify code.
10049 Don't turn off DECL_BIT_FIELD if field is BLKmode, but not type.
10050 (start_record_layout): Renamed from new_record_layout_info.
10051 Update to new fields.
10052 (debug_rli, normalize_rli, rli_size_unit_so_far, rli_size_so_far):
10054 (place_union_field): Renamed from layout_union_field.
10055 Update to use new fields in rli.
10056 (place_field): Renamed from layout_field.
10057 Major rewrite to use new fields in rli; pass alignment to layout_decl.
10058 (finalize_record_size): Rework to use new fields in rli and handle
10060 (compute_record_mode): Rework to simplify and to use new DECL fields.
10061 (finalize_type_size): Make rounding more consistent.
10062 (finish_union_layout): Deleted.
10063 (layout_type, case VOID_TYPE): Don't set TYPE_SIZE_UNIT either.
10064 (layout_type, case RECORD_TYPE): Call new function names.
10065 (initialize_sizetypes): Set TYPE_IS_SIZETYPE.
10066 (set_sizetype): Set TYPE_IS_SIZETYPE earlier.
10067 (get_best_mode): UNIT is now unsigned; remove casts.
10068 * tree.c (bit_position): Compute from new fields.
10069 (byte_position, int_byte_position): New functions.
10070 (print_type_hash_statistics): Cast to remove warning.
10071 (build_range_type): Use host_integerp and tree_low_cst to try to hash.
10072 (build_index_type): Likewise; make subtype of sizetype.
10073 (build_index_2_type): Pass sizetype to build_range_type.
10074 (build_common_tree_nodes): Use size_int and bitsize_int to
10075 initialize nodes; add bitsize_{zero,one,unit}_node.
10076 * tree.h (DECL_FIELD_CONTEXT): Use FIELD_DECL_CHECK.
10077 (DECL_BIT_FIELD_TYPE, DECL_QUALIFIER, DECL_FCONTEXT): Likewise.
10078 (DECL_PACKED, DECL_BIT_FIELD): Likewise.
10079 (DECL_FIELD_BITPOS): Deleted.
10080 (DECL_FIELD_OFFSET, DECL_FIELD_BIT_OFFSET): New fields.
10081 (DECL_RESULT, DECL_SAVED_INSNS): Use FUNCTION_DECL_CHECK.
10082 (DECL_FRAME_SIZE, DECL_FUNCTION_CODE, DECL_NO_STATIC_CHAIN): Likewise.
10083 (DECL_INLINE, DECL_BUILT_IN_NONANSI, DECL_IS_MALLOC): Likewise.
10084 (DECL_BUILT_IN_CLASS, DECL_STATIC_CONSTRUCTOR): Likewise.
10085 (DECL_STATIC_DESTRUCTOR, DECL_NO_CHECK_MEMORY_USAGE): Likewise.
10086 (DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT, DECL_NO_LIMIT_STACK) Likewise.
10087 (DECL_ORIGINAL_TYPE, TYPE_DECL_SUPPRESS_DEBUG): Use TYPE_DECL_CHECK.
10088 (DECL_ARG_TYPE_AS_WRITEN, DECL_ARG_TYPE): Use PARM_DECL_CHECK.
10089 (DECL_INCOMING_RTL, DECL_TRANSPARENT_UNION): Likewise.
10090 (DECL_ALIGN): Adjust to new field in union.
10091 (DECL_OFFSET_ALIGN): New field.
10092 (DECL_ERROR_ISSUED, DECL_TOO_LATE): Use LABEL_DECL_CHECK.
10093 (DECL_IN_TEXT_SECTION): Use VAR_DECL_CHECK.
10094 (union tree_decl): Add struct for both aligns.
10095 (enum tree_index): Add TI_BITSIZE_{ZERO,ONE,UNIT}.
10096 (bitsize_zero_node, bitsize_one_node, bitsize_unit_node): Added.
10097 (struct record_layout_info): Rework fields to have offset
10098 alignment and byte and bit position.
10099 (start_record_layout, place_field): Renamed from old names.
10100 (rli_size_so_far, rli_size_unit_so_far, normalize_rli): New decls.
10101 (byte_position, int_byte_position): Likewise.
10102 (get_inner_reference): Change types of position and length.
10103 * unroll.c (unroll_loop): New variable R; use for some loops.
10104 MAX_LOCAL_REGNUM and MAXREGNUM now unsigned.
10105 (calculate_giv_inc): Arg REGNO now unsigned.
10106 (copy_loop_body): REGNO and SRC_REGNO now unsigned.
10107 * varasm.c (assemble_variable): Clean up handling of size using
10108 host_integerp and tree_low_cst.
10109 (decode_addr_const): Use byte, not bit, position.
10110 (output_constructor): bitpos and offsets are HOST_WIDE_INT;
10111 use tree_low_cst and int_bit_position.
10112 * objc/objc-act.c (build_ivar_list_initializer): Use byte_position.
10114 Fri Mar 24 20:13:49 2000 Jason Eckhardt <jle@cygnus.com>
10116 * bb-reorder.c (REORDER_MOVED_BLOCK_END): Removed.
10117 (reorder_block_def): New members eff_head and eff_end.
10118 (REORDER_BLOCK_EFF_HEAD, REORDER_BLOCK_EFF_END): New macros.
10119 (verify_insn_chain): New function.
10120 (skip_insns_between_block): Add code to skip deleted insns.
10121 Check for note before using.
10122 (chain_reorder_blocks): Replace calls to skip_insns_between_block
10123 with references to REORDER_BLOCK_EFF_HEAD and REORDER_BLOCK_EFF_END.
10124 Check for note before using.
10125 (make_reorder_chain): Use INTVAL rather than XINT to get REG_BR_PROB.
10126 (fixup_reorder_chain): Restructure, clean up, defect removal.
10127 (reorder_basic_blocks): Remove last_insn and references to it.
10128 Moved insn chain verification code into a new function (see above).
10129 Delete defective code that sets last insn.
10130 Initialize REORDER_BLOCK_EFF_HEAD and REORDER_BLOCK_EFF_END for
10133 2000-03-25 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
10135 * config/c4x/c4x.h (CPP_SPEC): Remove erroneous space.
10137 2000-03-24 Richard Henderson <rth@cygnus.com>
10139 * tree.c (lang_safe_for_unsave): Remove.
10140 (unsafe_for_reeval): Transmute and rename from safe_for_unsave,
10141 allowing for two levels of unsafeness. Remove lang hook.
10142 * tree.h: Update declarations.
10143 * calls.c (expand_call): Rename safe_for_reeval to try_tail_call.
10144 Create temporary VAR_DECLs to protect very unsafe_for_reeval trees.
10145 Always fail sibcalls when there are pending cleanups.
10147 2000-03-24 Geoff Keating <geoffk@cygnus.com>
10149 * flow.c (propagate_block): When we delete an ADDR_VEC,
10150 also delete the BARRIER following it if there is one.
10152 2000-03-24 Richard Henderson <rth@cygnus.com>
10154 * builtins.c (expand_builtin_bzero): Convert `length' argument
10157 2000-03-24 Jakub Jelinek <jakub@redhat.com>
10159 * sibcall.c (skip_copy_to_return_value): Use OUTGOING_REGNO for
10160 comparison if regno's are equal.
10161 * calls.c (initialize_argument_informat): Add ecf_flags argument.
10162 Use FUNCTION_INCOMING_ARG if available and ECF_SIBCALL.
10163 (expand_call): Update caller.
10164 Avoid making a sibling call if argument size of the callee is larger
10165 than argument size of the caller.
10166 Call hard_function_value with outgoing set if in sibcall pass.
10167 Use FUNCTION_INCOMING_ARG if available and ECF_SIBCALL.
10169 * final.c (permitted_reg_in_leaf_functions, only_leaf_regs_used):
10170 Change LEAF_REGISTERS from an array initializer to actual array
10171 identifier. Move static global variable into the function.
10172 (leaf_function_p): Allow SIBLING_CALL_P calls even outside of
10173 sequences for leaf functions.
10174 * global.c (global_alloc): Likewise.
10175 * tm.texi (LEAF_REGISTERS): Update documentation.
10177 * config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Remove the ugly
10178 TARGET_FLAT leaf disabling hack.
10179 (LEAF_REGISTERS): Changed from an array initializer to actual array
10180 identifier to avoid duplication and remove the above hack.
10181 (FUNCTION_OK_FOR_SIBCALL): Define.
10182 * config/sparc/sparc.md (sibcall): New attr type. Use it almost
10183 always like call attribute.
10184 (eligible_for_sibcall_delay): New attribute.
10185 (sibcall): New delay type.
10186 (sibcall, sibcall_value, sibcall_epilogue): New expands.
10187 (sibcall_symbolic_sp32, sibcall_symbolic_sp64,
10188 sibcall_value_symbolic_sp32, sibcall_value_symbolic_sp64): New insns.
10189 * config/sparc/sparc.c (sparc_leaf_regs): New array.
10190 (eligible_for_sibcall_delay, output_restore_regs, output_sibcall):
10192 (output_function_epilogue): Move part of the code into
10193 output_restore_regs.
10194 (ultra_code_from_mask, ultrasparc_sched_reorder): Handle
10196 * sparc-protos.h (output_sibcall, eligible_for_sibcall_delay): New
10199 * config/sparc/sparc.h (REVERSIBLE_CC_MODE): Revert Jan, 25 change
10200 until infrastructure is finished.
10202 Fri Mar 24 13:49:45 2000 Jeffrey A Law (law@cygnus.com)
10204 * integrate.c (save_for_inline_nocopy): Clear in_nonparm_insns here.
10205 (save_parm_insns): Not here.
10207 2000-03-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10209 * builtins.c (expand_builtin_bzero): New function.
10210 (expand_builtin): Handle bzero.
10212 * builtins.def: Add BUILT_IN_BZERO.
10214 * c-common.c (c_common_nodes_and_builtins): Provide builtin
10215 prototype & function for bzero.
10217 2000-03-23 Michael Meissner <meissner@redhat.com>
10219 * config/alpha/alpha.md (TF floating point insns): Undo 2000-03-21
10220 change adding TARGET_FP to the TF floating point insns, except for
10221 trunctfsf2, which generates direct calls to truncdfsf2.
10223 2000-03-23 Geoff Keating <geoffk@cygnus.com>
10225 * config/rs6000/rs6000.h (ARG_POINTER_CFA_OFFSET): New definition,
10226 try to protect against middle-end changes that break binary
10228 (DWARF_FRAME_REGISTERS): New definition, likewise for backend.
10230 2000-03-24 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
10232 * config/c4x/c4x.md (load_immed_address): Add DP reg clobber.
10234 Thu Mar 23 17:10:48 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10236 * calls.c (expand_call): If TARGET is passed by reference and
10237 is readonly, write a CLOBBER.
10239 2000-03-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10241 * builtins.c (expand_builtin): Handle bcmp.
10243 * builtins.def: Add BUILT_IN_BCMP.
10245 * c-common.c (c_common_nodes_and_builtins): Provide builtin
10246 prototype & function for bcmp.
10248 Thu Mar 23 11:34:39 2000 Jim Wilson <wilson@cygnus.com>
10250 * config/ia64/ia64.c (rtx_needs_barrier, case UNSPEC): Move case 6...
10251 (rtx_needs_barrier, case UNSPEC_VOLATILE): to here.
10252 * config/ia64/ia64.md (pr_restore): Change UNSPEC to UNSPEC_VOLATILE.
10254 Thu Mar 23 16:04:40 2000 Andrew Haley <aph@cygnus.com>
10256 * config/mips/mips.md (movdf_internal1a): Delete (set 'f', 'F')
10257 alternative when using -fp64 -gp32.
10259 2000-03-22 Jason Merrill <jason@casey.cygnus.com>
10261 * config/rs6000/rs6000.h (DWARF_FRAME_RETURN_COLUMN): Define.
10262 * config/alpha/alpha.h (DWARF_FRAME_RETURN_COLUMN): Define.
10263 * config/sparc/sparc.h (DWARF_FRAME_RETURN_COLUMN): Define.
10265 * frame.h (frame_state): Revert last change.
10266 * frame.c (execute_cfa_insn): Just don't record the save of a CFA reg.
10267 * libgcc2.c (throw_helper): Revert last change.
10269 2000-03-22 Richard Henderson <rth@cygnus.com>
10271 * stmt.c (expand_asm_operands): Don't promote the temporary.
10273 2000-03-22 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
10275 * builtin.c (get_pointer_alignment): Use DECL_P and TYPE_P macros.
10276 * c-common.c (decl_attributes,check_format_info,truthvalue_conversion,
10277 c_get_alias_set): Likewise.
10278 * c-decl.c (duplicate_decls): Likewise.
10279 * c-typeck.c (default_conversion,build_unary_op): Likewise.
10280 * calls.c (initialize_argument_information): Likewise.
10281 * dwarf2out.c (decl_class_context,add_abstract_origin_attribute):
10283 * dwarfout.c (decl_class_context,output_type): Likewise.
10284 * expr.c (get_inner_reference): Likewise.
10285 * fold-const.c (simple_operand_p,fold): Likewise.
10286 * function.c (aggregate_value_p): Likewise.
10287 * stmt.c (expand_asm_operands): Likewise.
10288 * varasm.c (named_section): Likewise.
10290 2000-03-22 Jason Merrill <jason@casey.cygnus.com>
10292 Implement dwarf2 exception handling for the ARM.
10293 * config/arm/arm.h (INCOMING_RETURN_ADDR_RTX): Define.
10294 (DWARF_FRAME_RETURN_COLUMN): Define.
10295 * config/arm/arm.c (emit_multi_reg_push): Return rtx. Attach
10296 REG_FRAME_RELATED_EXPR note.
10297 (emit_sfm): Likewise.
10298 (arm_expand_prologue): Set RTX_FRAME_RELATED_P on everything.
10299 * dwarf2out.c (reg_save): Handle saving a register to itself.
10300 (dwarf2out_frame_debug_expr): Handle an intermediate cfa reg.
10301 * except.c (eh_regs): Don't use the static chain reg if it's
10303 * frame.h (frame_state): Add cfa_saved field.
10304 * frame.c (execute_cfa_insn): Set it.
10305 * libgcc2.c (throw_helper): Don't adjust sp if it's restored in
10307 * function.c (ARG_POINTER_CFA_OFFSET): Default to FIRST_PARM_OFFSET.
10309 (instantiate_virtual_regs): Adjust.
10311 * config/m68k/m68k.h (ARG_POINTER_CFA_OFFSET): Don't define.
10312 * config/ns32k/ns32k.h (ARG_POINTER_CFA_OFFSET): Don't define.
10313 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): Take a parm.
10315 * dwarf2out.c (reg_number): Refer to FIRST_PSEUDO_REGISTER.
10316 (initial_return_save): Use DWARF_FRAME_REGNUM, not reg_number.
10318 2000-03-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10320 * builtins.def: New file.
10322 * Makefile.in (TREE_H): Depend on builtins.def.
10324 * builtins.c (built_in_names): Use builtins.def.
10326 * tree.h (built_in_function): Likewise.
10328 2000-03-22 Mark Mitchell <mark@codesourcery.com>
10330 * tree.c (size_in_bytes): Return size_zero_node, not
10333 2000-03-22 Geoff Keating <geoffk@cygnus.com>
10335 * config/fp-bit.c (pack_d): Correct the case when a denormal
10336 is rounded up and stops being denormal.
10338 2000-03-21 Richard Henderson <rth@cygnus.com>
10340 * config/alpha/alpha.c (function_arg): Check for void_type_node
10341 before using MUST_PASS_IN_STACK.
10343 2000-03-21 Stephane Carrez <stcarrez@worldnet.fr>
10345 * regmove.c (combine_stack_adjustments_for_block): Check that
10346 the stack pointer is a valid memory address.
10348 Wed Mar 22 11:44:50 MET 2000 Jan Hubicka <jh@suse.cz>
10350 * calls.c: re-install Mar 16 emit_library_call merge.
10352 2000-03-21 Jakub Jelinek <jakub@redhat.com>
10354 * config/sparc/sparc.c (mem_min_alignment): If not optimizing,
10355 we cannot be sure that if reload_completed base register will
10356 be properly aligned.
10358 2000-03-21 Richard Henderson <rth@cygnus.com>
10360 * flow.c (delete_block): Fix typo last change.
10362 2000-03-21 Mark Mitchell <mark@codesourcery.com>
10364 * c-common.c (c_expand_expr_stmt): Use COMPLETE_TYPE_OR_VOID_P,
10365 not COMPLETE_TYPE_P, to check the type of the expression.
10367 2000-03-21 Michael Meissner <meissner@redhat.com>
10369 * config/alpha/alpha.md (floating point insns): Add TARGET_FP to
10370 all floating point insns that just tested the macro
10371 TARGET_HAS_XFLOATING_LIBS.
10372 (movsf/movdf recognizers): Add separate insns if -mno-fp-regs is
10373 used to only use the gprs.
10375 2000-03-21 Nathan Sidwell <nathan@codesourcery.com>
10377 * tree.h (COMPLETE_TYPE_P): New macro.
10378 (COMPLETE_OR_VOID_TYPE_P): New macro.
10379 (COMPLETE_OR_UNBOUND_ARRAY_TYPE_P): New macro.
10380 * stor-layout.c (layout_type, case VOID_TYPE): Don't set TYPE_SIZE.
10381 * c-aux-info.c (gen_type): Use them.
10382 * c-common.c (c_expand_expr_stmt): Likewise.
10383 * c-decl.c (poplevel, pushdecl, start_decl, finish_decl,
10384 grokdeclarator, grokparms, finish_struct, start_function,
10385 store_parm_decls, combine_parm_decls): Likewise.
10386 * c-parse.y (cast_expr): Likewise.
10387 * c-typeck.c (require_complete_type, c_sizeof, c_sizeof_nowarn,
10388 c_size_in_bytes, c_alignof, build_component_ref,
10389 build_indirect_ref, build_array_ref, convert_arguments,
10390 build_binary_op, pointer_diff, build_unary_op, digest_init: Likewise.
10391 * calls.c (initialize_argument_information): Likewise.
10392 * convert.c (convert_to_integer): Likewise.
10393 * dbxout.c (dbxout_typedefs, dbxout_type, dbxout_symbol): Likewise.
10394 * dwarfout.c (location_or_const_value_attribute,
10395 output_enumeration_type_die, output_structure_type_die,
10396 output_union_type_die, output_type): Likewise.
10397 * expr.c (safe_from_p, expand_expr): Likewise.
10398 * function.c (assign_parms): Likewise.
10399 * sdbout.c (sdbout_symbol, sdbout_one_type): Likewise.
10400 * tree.c (build_array_type, build_function_type,
10401 build_method_type, build_offset_type, build_complex_type): Likewise.
10402 * c-parse.c, c-parse.h: Regenerated.
10404 2000-03-21 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
10406 * config/c4x/rtems.h: Include config/rtems.h.
10408 Tue Mar 21 09:24:00 2000 Denis Chertykov <denisc@overta.ru>
10410 * config/avr/avr.c (encode_section_info): sets SYMBOL_REF_FLAG if
10411 decl is a FUNCTION_DECL
10413 Mon Mar 20 19:53:53 2000 Jim Wilson <wilson@cygnus.com>
10415 * config/ia64/ia64.c (ia64_expand_prologue): Don't abort if leaf
10416 function uses output registers. Don't save RP for leaf functions.
10417 Do save RP even if no epilogue.
10418 * config/ia64/ia64.h (FIXED_REGISTERS): Unmark in/out registers.
10419 (CALL_USED_REGISTERS): Unmark in registers.
10420 (REG_ALLOC_ORDER): Move out regs up, to near the top. Move in regs up,
10421 to near the middle.
10423 2000-03-20 Geoff Keating <geoffk@cygnus.com>
10425 * config/rs6000/rs6000.md (bunordered): New expander.
10426 (bordered): New expander.
10427 (buneq): New expander.
10428 (bunge): New expander.
10429 (bungt): New expander.
10430 (bunle): New expander.
10431 (bunlt): New expander.
10432 (bltgt): New expander.
10434 * config/rs6000/rs6000.c (ccr_bit): Handle unordered comparisons.
10435 (ccr_bit_negated_p): New function.
10436 (print_operand): For %C, generate appropriate cror for UNEQ,
10437 UNLT, UNGT, and LTGT. For %T and %t, use ccr_bit_negated_p.
10439 2000-03-20 Andreas Jaeger <aj@suse.de>
10441 * sdbout.c (sdbout_one_type): Add braces to avoid "ambigous else"
10444 * tree.h (safe_for_unsave): Prototype.
10446 2000-03-20 Richard Henderson <rth@cygnus.com>
10448 * regmove.c (stack_memref_p): Fix typo, reorg for readability.
10449 (combine_stack_adjustments_for_block): Don't allow sp references
10450 in the side of a set we're not fixing up.
10451 * toplev.c (rest_of_compilation): Run combine_stack_adjustments
10452 after life_analysis.
10454 2000-03-20 Richard Henderson <rth@cygnus.com>
10456 * calls.c (expand_call): Don't bother generating tail call
10457 sequences if there are pending cleanups. Use
10458 expand_start_target_temps/expand_end_target_temps to elide
10459 cleanups created during sibcall expansion.
10461 2000-03-20 Geoff Keating <geoffk@cygnus.com>
10463 * configure.in: Set $IFS to a value if it doesn't already have one
10464 in the --enable-checking handling.
10465 * configure: Regenerate.
10467 2000-03-20 Martin v. Löwis <loewis@informatik.hu-berlin.de>
10469 * c-parse.in (SAVE_WARN_FLAGS): Use size_int.
10470 * c-parse.y, c-parse.c, objc/objc-parse.y, objc/objc-parse.c:
10473 Mon Mar 20 11:43:15 MET 2000 Jan Hubicka <jh@suse.cz>
10475 * jump.c (delete_noop_moves): Remove code attempting to
10476 combine stack adjustments.
10478 2000-03-19 Martin v. Löwis <loewis@informatik.hu-berlin.de>
10480 * emit-rtl.c (push_to_full_sequence, end_full_sequence): New functions.
10481 * except.c (emit_cleanup_handler): Use them.
10482 (expand_end_all_catch): Likewise.
10483 * function.c (fixup_var_refs): Likewise.
10484 (expand_function_end): Clear catch_clauses_last.
10485 * rtl.h (push_to_full_sequence, end_full_sequence): Declare.
10486 * except.h (struct eh_status): New field x_catch_clauses_last.
10487 (catch_clauses_last): New define.
10489 * Makefile.in (tree.o): Depend on HASHTAB_H.
10490 * tree.c: Include hashtab.h.
10491 (struct type_hash): Remove next field.
10492 (TYPE_HASH_SIZE): Remove.
10493 (TYPE_HASH_INITIAL_SIZE): New define.
10494 (type_hash_table): Change type to htab_t.
10495 (type_hash_eq, type_hash_hash, print_type_hash_statistics,
10496 mark_hash_entry): New functions.
10497 (init_obstacks): Allocate type hash.
10498 (type_hash_lookup): Use htab functions.
10499 (type_hash_add, mark_type_hash): Likewise.
10500 (dump_tree_statistics): Call print_type_hash_statistics.
10502 2000-03-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10504 * rs6000/t-aix41: New file.
10506 * configure.in ({rs6000,powerpc}-ibm-aix4.[12]*): Use it.
10508 Sun Mar 19 13:27:30 2000 Hans-Peter Nilsson <hp@axis.com>
10510 * tm.texi (Driver): Fix typos and tweak entry for
10512 Move misplaced STRUCT_FORCE_BLK entry ...
10513 (Storage Layout): ... to here.
10514 (Run-time Target): Recommend having TARGET_MASK_... helper macros.
10516 2000-03-19 Richard Henderson <rth@cygnus.com>
10518 * flow.c (delete_block): Delete the addr_vec along with the block.
10519 (flow_delete_insn): Decrement LABEL_NUSES when deleting insns that
10522 * fold-const.c (extract_muldiv): Apply type check for defined
10523 overflow to multiply as well as divide.
10525 * stor-layout.c (layout_decl): Don't abort on any zero sized decl.
10527 2000-03-18 Mark Mitchell <mark@codesourcery.com>
10529 * emit-rtl.c (remove_unncessary_notes): Check that all
10530 NOTE_INSN_BLOCK_BEG and NOTE_INSN_BLOCK_END notes have an
10531 associated NOTE_BLOCK.
10532 * function.h (identify_blocks): Update comments.
10533 (reorder_blocks): Declare.
10534 * function.c (identify_blocks): Don't take paramters.
10535 (reorder_blocks): Don't take parameters.
10536 * loop.h (find_loop_tree_blocks): Remove.
10537 (unroll_block_trees): Likewise.
10538 * loop.c (loop_optimize): Don't call find_loop_tree_blocks. Use
10539 reorder_blocks instead of unroll_block_trees.h
10540 * sibcall.c (optimize_sibling_and_tail_recursive_calls): Likewise.
10541 * stmt.c (find_loop_tree_blocks): Remove.
10542 (unroll_block_trees): Likewise.
10543 * toplev.c (rest_of_compilation): Don't call find_loop_tree_blocks
10544 in whole-function mode.
10545 * tree.h (reorder_blocks): Remove declaration.
10547 * expr.c: Include intl.h.
10548 * Makefile.in (expr.o): Depend on intl.h.
10550 2000-03-18 Richard Henderson <rth@cygnus.com>
10552 * expr.c (emit_move_insn_1): Clarify cannot_inline message.
10554 2000-03-18 Mark Mitchell <mark@codesourcery.com>
10556 * tree.h (tree_index): Remove enumerals for integer types.
10557 (integer_type_kind): New type.
10558 (integer_types): New variable.
10559 (char_type_node): Adjust.
10560 (signed_char_type_node): Likewise.
10561 (unsigned_char_type_node): Likewise.
10562 (short_integer_type_node): Likewise.
10563 (short_unsigned_type_node): Likewise.
10564 (integer_type_node): Likewise.
10565 (unsigned_type_node): Likewise.
10566 (long_integer_type_node): Likewise.
10567 (long_unsigned_type_node): Likewise.
10568 (long_long_integer_type_node): Likewise.
10569 (long_long_unsigned_type_node): Likewise.
10570 * tree.c (integer_types): New variable.
10571 (init_obstacks): Register it as a root.
10573 Sat Mar 18 14:38:00 2000 Jason Eckhardt <jle@cygnus.com>
10575 * bb-reorder.c (reorder_basic_blocks): Update PREV_INSN as well as
10576 NEXT_INSN. Update last insn in chain.
10578 2000-03-17 Jason Merrill <jason@casey.cygnus.com>
10580 * dwarf2out.c (dwarf2out_decl): Don't emit anything for types
10581 with TYPE_DECL_SUPPRESS_DEBUG set.
10583 2000-03-18 Richard Henderson <rth@cygnus.com>
10585 * flow.c (make_edges): Use INTVAL to access REG_EH_REGION value.
10587 2000-03-18 Richard Henderson <rth@cygnus.com>
10589 * i386.c (call_insn_operand): Always allow SYMBOL_REF,
10590 care for HALF_PIC_P.
10591 (expander_call_insn_operand): Remove.
10592 (ix86_expand_epilogue): New arg `emit_return' to control return insn.
10593 * i386.h (PREDICATE_CODES): Update.
10594 * i386.md (all call expanders): Remove predicates, remove special
10595 handling for half-pic.
10596 (*call_1, *call_value_1): Handle SIBLING_CALL_P insns.
10597 (*call_pop_pic2, *call_pic2, *call_value_pop_2, *call_value_2): Remove.
10598 (sibcall_epilogue): New.
10600 2000-03-17 Richard Henderson <rth@cygnus.com>
10602 * rtlanal.c (single_set): Reject if the parallel has anything
10603 except SET or USE or CLOBBER.
10605 2000-03-17 Jeff Law <law@cygnus.com>
10606 Richard Henderson <rth@cygnus.com>
10608 * Makefile.in (OBJS): Add sibcall.o.
10610 * sibcall.c: New file.
10611 * calls.c (FUNCTION_OK_FOR_SIBCALL): Provide default.
10612 (ECF_IS_CONST, ECF_NOTHROW, ECF_SIBCALL): New.
10613 (emit_call_1): Replace `is_const' and `nothrow' with `ecf_flags'.
10614 Emit sibcall patterns when requested. Update all callers.
10615 (expand_call): Generate CALL_PLACEHOLDER insns when tail call
10616 elimination seems feasable.
10617 * final.c (leaf_function_p): Sibling calls don't discount being
10619 * flow.c (HAVE_sibcall_epilogue): Provide default.
10620 (find_basic_blocks_1): Sibling calls don't throw.
10621 (make_edges): Make edge from sibling call to EXIT.
10622 (propagate_block): Don't remove sibcall_epilogue insns.
10623 * function.c (prologue, epilogue): Turn into varrays. Update all uses.
10624 (sibcall_epilogue): New.
10625 (fixup_var_refs): Scan CALL_PLACEHOLDER sub-sequences.
10626 (identify_blocks_1): Likewise. Break out from ...
10627 (identify_blocks): ... here.
10628 (reorder_blocks_1): Scan CALL_PLACEHOLDER. Break out from ...
10629 (reorder_blocks): ... here.
10630 (init_function_for_compilation): Zap prologue/epilogue as varrays.
10631 (record_insns): Extend a varray instead of mallocing new memory.
10632 (contains): Read a varray not array of ints.
10633 (sibcall_epilogue_contains): New.
10634 (thread_prologue_and_epilogue_insns): Emit and record
10635 sibcall_epilogue patterns.
10636 (init_function_once): Allocate prologue/epilogue varrays.
10637 * genflags.c (gen_insn): Treat sibcall patterns as calls.
10638 * integrate.c (save_parm_insns): Recurse on CALL_PLACEHOLDER patterns.
10639 Broken out from ...
10640 (save_for_inline_nocopy): ... here.
10641 (copy_insn_list): Recurse on CALL_PLACEHOLDER patterns.
10642 Broken out from ...
10643 (expand_inline_function): ... here.
10644 (copy_rtx_and_substitute): Handle NOTE_INSN_DELETED_LABEL.
10645 (subst_constants): Handle 'n' formats.
10646 * jump.c (jump_optimize_minimal): New.
10647 (jump_optimize_1): New arg `minimal'; update callers. Elide most
10648 optimizations if it's set.
10649 * rtl.c (copy_rtx): Do copy jump & call for insns.
10650 * rtl.h (struct rtx_def): Document use of jump and call for insns.
10651 (SIBLING_CALL_P): New.
10652 (sibcall_use_t): New.
10653 * toplev.c (rest_of_compilation): Do init_EXPR_INSN_LIST_cache earlier.
10654 Invoke optimize_sibling_and_tail_recursive_calls.
10655 * tree.c (lang_safe_for_unsave): New.
10656 (safe_for_unsave): New.
10657 * tree.h (lang_safe_for_unsave, safe_for_unsave): Declare.
10659 * alpha.h (FUNCTION_OK_FOR_SIBCALL): New.
10660 * alpha.md (sibcall, sibcall_value, sibcall_epilogue): New.
10661 (*sibcall_osf_1, *sibcall_value_osf_1): New.
10663 2000-03-17 Mark Mitchell <mark@codesourcery.com>
10665 * objc/objc-act.c (encode_method_prototype): Pass types, not
10666 PARM_DECLs, to int_size_in_bytes.
10668 Fri Mar 17 11:51:34 2000 Jim Wilson <wilson@cygnus.com>
10670 * config/ia64/ia64.md (mix4right_3op): Swap %1 and %2 in template.
10672 * config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
10673 config/ia64/ia64.md, config/ia64/xm-ia64.h: Fix copyrights again.
10675 Fri Mar 17 08:09:14 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10677 * Clean up usages of TREE_INT_CST_LOW.
10678 * c-parse.in (RESTORE_WARN_FLAGS): Use tree_low_cst.
10679 * c-parse.y, c-parse.c, objc/objc-parse.y, objc/objc-parse.c:
10681 * c-tree.h (min_precision): Move declaration to here.
10682 * c-typeck.c (build_binary_op): Use host_integerp and tree_low_cst.
10683 (build_unary_op, add_pending_init): Use bit_position.
10684 (pending_init_member, process_init_element): Likewise.
10685 (really_start_incremental_init, push_init_level, pop_init_level):
10686 Don't make copies of nodes or modify them in place, use consistent
10687 types when tracking positions, and use tree routines computations.
10688 (set_init_index, output_init_element): Likewise.
10689 (output_pending_init_elements, process_init_element): Likewise.
10690 * dbxout.c (dbxout_type_fields): Use bit_position, host_integerp,
10691 tree_low_cst and int_bit_position; also minor cleanup.
10692 (dbxout_type_method_1, dbxout_range_type, dbxout_type): Likewise.
10693 (print_cst_octal): Precision is unsigned.
10694 (dbxout_symbol): Ensure DECL_INITIAL is in-range and use tree_low_cst.
10695 * dwarf2out.c (ceiling): Input and output are unsigned HOST_WIDE_INT.
10696 (simple_type_align_in_bits): Result is unsigned int.
10697 Use tree_int_low_cst and host_integerp.
10698 (simple_type_size_in_bits): Result is unsigned HOST_WIDE_INT.
10699 (field_byte_offset): Result is HOST_WIDE_INT.
10700 Change types of internal variables so alignments are unsigned int,
10701 offsets are HOST_WIDE_INT and sizes are unsigned HOST_WIDE_INT.
10702 Use host_integerp, tree_low_cst, and int_bit_position.
10703 (add_bit_offset_attribute): Likewise.
10704 (add_data_member_location_attribute): Use tree_cst_low.
10705 (add_bound_info): Use host_integerp, integer_zerop, and integer_onep.
10706 (add_bit_size_attribute): Use tree_low_cst.
10707 (add_pure_or_virtual_attribute, gen_enumeration_type_die): Likewise.
10708 * dwarfout.c: Similar changes to dwarf2out.c.
10709 * expr.c (expand_expr, case ARRAY_REF): Remove redundant code.
10710 * genoutput.c (n_occurences): Return -1 for null string.
10711 (strip_whitespace): Accept null string and make into function.
10712 (scan_operands): Reflect above changes.
10713 * sdbout.c (plain_type_1): Use host_integerp and tree_low_cst.
10714 (sdbout_field_types, sdbout_one_type): Likewise; also use bit_position.
10715 * ssa.c (rename_registers): Add missing cast of arg to bzero.
10716 * tree.c (int_size_in_bytes): Check for too big to represent.
10717 (bit_position, int_bit_position, host_integerp, tree_low_cst): New fns.
10718 * tree.h (host_integerp, tree_low_cst, bit_position, int_bit_position):
10720 (min_precision): Delete from here.
10721 * varasm.c (decode_addr_const): Use host_integerp, bit_position,
10722 and int_bit_position.
10723 * objc/objc-act.c (encode_method_prototype): Sizes are HOST_WIDE_INT.
10724 (encode_method_def): Likewise.
10725 (build_ivar_list_initializer): Use int_bit_position.
10726 (generate_shared_structures): Convert size.
10727 (encode_type, encode_complete_bitfield): Use integer_zerop.
10728 (encode_bitfield): Use tree_low_cst and int_bit_position.
10730 2000-03-17 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
10732 * config/c4x/c4x.h (CPP_SPEC): Fix typo.
10734 2000-03-17 Martin v. Löwis <loewis@informatik.hu-berlin.de>
10736 * call.c (special_function_p): It is only malloc if it returns
10739 2000-03-17 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
10741 * config/c4x/c4x.h (ASM_SPEC, CPP_SPEC, LINK_SPEC): Support C33.
10742 (C33_FLAG, TARGET_C3X): Add macros.
10743 (TARGET_SWITCHES): Add -m33 option.
10744 * config/c4x/c4x.c (c4x_override_options): Test for TARGET_C33.
10746 2000-03-17 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
10748 * config/c4x/c4x.h (PARALLEL_INSN_FLAG): Add.
10749 (PARALLEL_PACK_FLAG): Delete.
10750 (TARGET_SWITCHES): Update.
10751 (TARGET_PARALLEL): Use PARALLEL_INSN_FLAG.
10753 Thu Mar 16 18:52:32 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10755 * fold-const.c (fold): Fix a few cases when the returned result
10756 is not of the same type as the input.
10758 2000-03-16 Nick Clifton <nickc@cygnus.com>
10760 * config/arm/arm.h (ASM_OUTPUT_MI_THUNK): Fix compile time
10763 2000-03-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10765 * libgcc2.h: Move prototypes above macros with the same name.
10766 Wrap some function prototypes in the conditional which indicates
10767 whether they are supported, i.e. "BITS_PER_UNIT == 8".
10769 2000-03-16 Richard Henderson <rth@cygnus.com>
10771 * calls.c: Revert last two changes.
10773 2000-03-16 Bernd Schmidt <bernds@cygnus.co.uk>
10775 * fp-bit.c (_unpack_d): If NO_DENORMALS is defined, anything that
10776 has exponent 0 is a zero.
10778 * simplify-rtx.c (hash_rtx, case MEM/REG): Take into account that
10779 HASH may already be nonzero. Add code/mode into hash value
10780 immediately after repeat label.
10781 (cselib_lookup): Don't leave the hash table in an inconsistent
10782 state before a hash lookup operation.
10784 Thu Mar 16 17:03:10 MET 2000 Jan Hubicka <jh@suse.cz>
10786 * i386.md (all HI and QI mode non-move patterns): Conditionize
10787 by TARGET_[HQ]IMODE_MATH.
10788 * i386.h (x86_himode_math, x86_qimode_math, x86_promote_hi_regs,
10789 x86_promote_qi_regs): Declare.
10790 (TARGET_HIMODE_MATH, TARGET_QIMODE_MATH, TARGET_PROMOTE_HI_REGS,
10791 TARGET_PROMOTE_QI_REGS): New macros.
10792 (PROMOTE_MODE): New macro.
10793 * i386.c (x86_himode_math, x86_qimode_math, x86_promote_hi_regs,
10794 x86_promote_qi_regs): New global variables.
10796 Thu Mar 16 16:50:44 MET 2000 Jan Hubicka <jh@suse.cz>
10798 * calls.c (emit_library_call_value_1): Break out from ...; handle
10799 VOIDmode function calls too.
10800 (emit_library_call_value): ... here.
10801 (emit_library_call): Implement by calling emit_library_call_value_1.
10803 Thu Mar 16 16:01:30 MET 2000 Jan Hubicka <jh@suse.cz>
10805 * calls.c (expand_call): Do sanity checking on arg_space_so_far.
10806 Update arg_space_so_far on stack adjustments.
10807 (emit_library_call, emit_library_call_value): Likewise; take into
10808 account arg_space_so_far and pending_stack_adjust when calculcating
10811 Thu Mar 16 09:02:19 2000 Jason Eckhardt <jle@cygnus.com>
10813 * flow.c: Move all basic block reordering code into its own file.
10814 (create_basic_block): Externalize.
10815 * bb-reorder.c: New file. Copy all basic block reordering code from
10816 flow.c to this file.
10817 (reorder_basic_blocks): Fix fencepost error in for-loop.
10818 (reorder_basic_blocks): Remove braces from single statement for-loops.
10819 * basic-block.h: Add declaration for create_basic_block.
10820 * Makefile.in: Add rules for bb-reorder.o.
10822 2000-03-16 Neil Booth <NeilB@earthling.net>
10824 * cppinit.c (handle_option): Implement #unassert directive
10825 as -A- command line option.
10826 (print_help): Update.
10827 * cpptexi.c: Update.
10829 Thu Mar 16 02:14:16 2000 Hans-Peter Nilsson <hp@bitrange.com>
10831 * md.texi (Standard Names): Document `jump'.
10833 2000-03-15 Jason Merrill <jason@casey.cygnus.com>
10835 * calls.c (emit_call_1): Nothrow functions can still have nonlocal
10838 2000-03-15 Geoff Keating <geoffk@cygnus.com>
10840 Merge changes from newppc-branch onto trunk.
10842 2000-03-15 Geoff Keating <geoffk@cygnus.com>
10844 * rs6000.c (toc_hash_table): Update for new hash table functions.
10845 (toc_hash_function): Likewise.
10846 (toc_hash_eq): Likewise.
10847 (toc_hash_mark_entry): Likewise.
10848 (toc_hash_mark_table): Likewise.
10849 (output_toc): Likewise.
10850 (rs6000_add_gc_roots): Likewise.
10852 2000-03-15 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
10854 * t-aix43 (AR_FOR_TARGET): Deleted. Moved `-X32_64'...
10855 (AR_FLAGS_FOR_TARGET): here. New macro.
10857 2000-03-05 Clinton Popetz <cpopetz@cygnus.com>
10859 * config/rs6000/rs6000.c (rs6000_fpmem_offset, rs6000_fpmem_size,
10860 fpmem_operand) Delete.
10862 (rs6000_reg_names, alt_reg_names): Change fpmem to xer.
10863 (machine_function): Remove fpmem_size, fpmem_offset, save_toc_p.
10864 (rs6000_save_machine_status, rs6000_restore_machine_status,
10865 rs6000_init_expanders, rs6000_stack_info, debug_stack_info): Remove
10866 references to above variables.
10867 (gpc_reg_operand): Use XER_REGNO_P instead of FPMEM_REGNO_P.
10868 * config/rs6000/rs6000.h (REG_ALLOC_ORDER, REGISTER_NAMES,
10869 DEBUG_REGISTER_NAMES): Chagne fpmem to xer.
10870 (FPMEM_REGNO_P, FPMEM_REGNUM): Delete.
10871 (XER_REGNO_P, XER_REGNO): New.
10872 (rs6000_stack): Remove fpmem_p, fpmem_offset, fpmem_size.
10873 (PREDICATE_CODES): Change fpmem_operand to xer_operand.
10874 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Change FPMEM_REGNO_P to
10876 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS,
10877 REG_CLASS_FROM_LETTER, CLASS_MAX_NREGS): Change FPMEM_REGS to XER_REGS, and remove FLOAT_OR_FPMEM_REGS.
10878 (CLASS_CANNOT_CHANGE_SIZE): Change to FLOAT_REGS.
10880 2000-02-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10882 * aix.h (FP_SAVE_INLINE, ASM_OUTPUT_INTERNAL_LABEL_PREFIX,
10883 TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP): Move here...
10884 * rs6000.h: from here.
10886 * rs6000-protos.h (rs6000_select_section): Provide prototype.
10887 (rs6000_select_rtx_section): Likewise.
10888 (rs6000_encode_section_info): Likewise.
10889 (sdata_section): Likewise.
10890 (sdata2_section): Likewise.
10891 (sbss_section): Likewise.
10892 * sysv4.h (rs6000_select_section): Delete prototype.
10893 (rs6000_select_rtx_section): Likewise.
10894 (rs6000_encode_section_info): Likewise.
10895 (sdata_section): Likewise.
10896 (sdata2_section): Likewise.
10897 (sbss_section): Likewise.
10898 (REG_SAVE_AREA): Delete definition duplicated in rs6000.h.
10900 * sysv4.h: Delete various unnecessary #undef's and put a comment
10901 on the remaining ones.
10902 Change various comments according to coding standard.
10904 2000-02-29 Clinton Popetz <cpopetz@cygnus.com>
10906 * config/rs6000/rs6000.h (MQ_REGNO, CR0_REGNO, CR1_REGNO, CR2_REGNO,
10907 CR3_REGNO, CR4_REGNO, MAX_CR_REGNO): Define.
10908 (CR0_REGNO_P) Remove.
10909 * config/rs6000/rs6000.c (gpc_reg_operand, and64_operand, and_operand,
10910 setup_incoming_varargs, mtcrf_operation, print_operand,
10911 rs6000_stack_info, rs6000_emit_prologue, rs6000_emit_epilogue):
10912 Use the above macros.
10914 2000-02-24 Clinton Popetz <cpopetz@cygnus.com>
10916 * config/rs6000/rs6000.md: Added a new alternative for each
10917 pattern that had a 'x' alternative but no 'y' alternative.
10918 Added a new split for each of the above patterns.
10920 2000-02-18 Geoff Keating <geoffk@cygnus.com>
10922 * aix41.h (ASM_CPU_SPEC): Delete.
10923 (CPP_CPU_SPEC): Delete.
10925 * aix.h (RS6000_OUTPUT_BASENAME): Define.
10926 (ASM_OUTPUT_LABEL): Define.
10927 (ASM_GLOBALIZE_LABEL): Define.
10928 (STRIP_NAME_ENCODING): Define.
10929 * rs6000.h (RS6000_OUTPUT_BASENAME): Don't define.
10930 (STRIP_NAME_ENCODING): Don't define.
10931 (ASM_OUTPUT_LABEL): Don't define.
10932 (ASM_GLOBALIZE_LABEL): Don't define.
10933 * sysv4.h (ASM_DECLARE_FUNCTION_NAME): Use assemble_name to output
10934 names, and ASM_OUTPUT_LABEL to output labels, rather than
10936 (ASM_OUTPUT_LABEL): Define.
10937 (ASM_OUTPUT_INT): Use assemble_name.
10938 (ASM_OUTPUT_DWARF_ADDR): Use assemble_name.
10939 (STRIP_NAME_ENCODING): Don't undefine first.
10940 (RS6000_OUTPUT_BASENAME): Make equivalent to assemble_name for
10942 (ASM_OUTPUT_LABELREF): Don't prepend underscores to labels
10943 specified with 'asm' even with -fleading-underscore.
10944 * rs6000.c (print_operand): Use assemble_name when !TARGET_AIX.
10945 (output_epilog): Likewise.
10946 (output_toc): Likewise.
10947 * tramp.asm: Handle -fleading-underscore correctly.
10949 * rs6000.md (builtin_setjmp_receiver): Also run for -fPIC and
10951 (nonlocal_goto_receiver): Delete.
10952 * rs6000.h (DONT_ACCESS_GBLS_AFTER_EPILOGUE): Delete.
10954 * rs6000.h (ASM_OUTPUT_DEF): Don't define.
10955 (SET_ASM_OP): Define.
10956 * sysv4.h (ASM_OUTPUT_DEF): Don't undefine.
10958 * rs6000.h (ASM_OUTPUT_ADDR_VEC_ELT): Don't define.
10959 (ASM_LONG): Define.
10961 * rs6000.c (rs6000_dll_import_ref): Delete, not used.
10962 * rs6000-protos.h (rs6000_dll_import_ref): Delete.
10964 * rs6000.h: Add 'u' to more constants.
10966 2000-02-18 David Edelsohn <edelsohn@gnu.org>
10968 * rs6000.md (mfcr+shift): Delete PowerPC64 version.
10970 2000-02-15 David Edelsohn <edelsohn@gnu.org>
10972 * rs6000.c (reg_or_u_cint_operand): New function.
10973 (logical_operand): Handle 64-bit hosts.
10974 (logical_u_operand): New function.
10975 (non_logical_cint_operand): Handle 64-bit hosts.
10976 (non_logical_u_cint_operand): New function.
10977 * rs6000.h (DATA_SECTION_ASM_OP): Add tab.
10978 (PREDICATE_CODES): Define new functions.
10979 * rs6000-protos.h: Declare new functions.
10980 * rs6000.md (iordi3, xordi3): Constant int must be unsigned 32-bits.
10981 (movdi_64): Bracket code intended for 64-bit hosts. Create
10982 CONST_DOUBLE for 32-bit values.
10983 (scc insns): Generate DImode compares.
10984 (mfcr insns): Create DImode versions.
10985 (sge matchers): New patterns.
10987 2000-02-15 Gabriel Paubert <paubert@iram.es>
10989 * rs6000.md: Correct instructions length attributes and
10990 constraints on unsigned compare instructions.
10991 (*ne0): Disable for PowerPC64.
10993 2000-02-11 Geoff Keating <geoffk@cygnus.com>
10995 * rs6000.c (output_function_profiler): Use .long for a 32-bit
10996 quantity, fix profile1.C test failure under -fPIC.
10998 * rs6000.c: Add 'u' to many constants to suppress warnings.
10999 (constant_pool_expr_1): Make static.
11000 (rs6000_emit_eh_toc_restore): Remove unused 'r2'.
11001 * rs6000.h: Add 'u' to many constants to suppress warnings.
11003 * rs6000.c (rs6000_emit_load_toc_table): Use LCTOC..1 under AIX
11004 for the start of the TOC, instead of LCTOC..0.
11005 * aix.h (toc_section): Use LCTOC..1 under AIX for the start
11007 * rs6000.md (load_toc_aix_si): Use LCTOC..1.
11008 (load_toc_aix_di): Use LCTOC..1.
11010 * rs6000.h (LEGITIMIZE_ADDRESS): Turn into a function.
11011 * rs6000.c (rs6000_legitimize_address): New function from
11012 LEGITIMIZE_ADDRESS. Only use create_TOC_reference on
11013 symbols in the constant pool that really are TOC references.
11014 (print_operand_address): For ELF, write TOC offsets under
11015 -fPIC as subtractions in the insn.
11016 (output_toc): For ELF, define symbols in TOC as normal labels,
11018 (create_TOC_reference): Use gen_rtx_PLUS rather than gen_rtx.
11019 * rs6000-protos.h (rs6000_legitimize_address): Prototype.
11020 (create_TOC_reference): Prototype only when RTX_CODE is defined.
11021 * rs6000.md (movsi): Only use create_TOC_reference on
11022 symbols in the constant pool that really are TOC references.
11024 * rs6000.h (MACHINE_DEPENDENT_REORG): Don't define.
11025 * rs6000.c (rs6000_reorg): Delete.
11026 * rs6000-protos.h (rs6000_reorg): Delete.
11028 2000-02-09 Geoff Keating <geoffk@cygnus.com>
11030 * rs6000.h (INCOMING_RETURN_ADDR_RTX): New macro.
11032 * aix.h (SETUP_FRAME_ADDRESSES): Define.
11033 * rs6000.c [TARGET_AIX] (insn_after_throw): New static variable.
11034 [TARGET_AIX] (rs6000_aix_emit_builtin_unwind_init): New function.
11035 [TARGET_AIX] (rs6000_emit_eh_toc_restore): New function.
11036 * rs6000-protos.h: Prototype rs6000_emit_eh_toc_restore,
11037 rs6000_aix_emit_builtin_unwind_init.
11038 * rs6000.md (eh_epilogue) [TARGET_AIX]: Call
11039 rs6000_emit_eh_toc_restore on AIX.
11040 (return_eh_si): Use r2.
11041 (return_eh_di): Use r2.
11043 * aix43.h: Turn on HAS_INIT_SECTION and LD_INIT_SWITCH,
11044 since we're breaking binary compatibility anyway.
11046 2000-02-09 Clinton Popetz <cpopetz@cygnus.com>
11048 * config/rs6000/rs6000-protos.h: (get_TOC_alias_set, uses_TOC,
11049 constant_pool_expr_p): Declare them.
11050 (constant_pool_expr_p): Declare it.
11051 * config/rs6000/rs6000.c (toc_label_name): Define.
11052 (rs6000_override_options): Set toc_label_name.
11053 (input_operand): Allow any TOC_RELATIVE_EXPR_P.
11054 (get_TOC_alias_set, constant_pool_expr_p, constant_pool_expr_1,
11055 uses_TOC): New functions.
11056 (print_operand): Delete old '*' case.
11057 (print_operand_address): Use LEGITIMATE_CONSTANT_POOL_ADDRESS_P,
11058 and strip off rtl for TOC before calling output_addr_const.
11059 (rs6000_emit_load_toc_table): Use toc_label_name.
11060 * config/rs6000/rs6000.h (TARGET_SWITCHES): Make msched-prolog
11062 (LEGITIMATE_CONSTANT_POOL_BASE_P): Delete.
11063 (CONSTANT_POOL_EXPR_P, TOC_RELATIVE_EXPR_P): New macros.
11064 (LEGITIMATE_CONSTANT_POOL_ADDRESS_P): Use CONSTANT_POOL_EXPR_P.
11065 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Turn symbol_refs
11066 into explicit TOC_REGISTER offsets.
11067 (TOC_REGISTER): New macro.
11068 * config/rs6000/rs6000.md (movsi, movdi): Emit rtl under
11069 TARGET_TOC to reference TOC_REGISTER.
11070 (load_toc_v4_PIC_1b): Add 4 to offset for toc reload.
11071 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Call
11072 uses_TOC before emitting label references.
11074 2000-02-05 Geoff Keating <geoffk@cygnus.com>
11076 * rs6000.md (stack_tie): Fix warning.
11078 * eabi-ctors.c: Use 'asm' names for the start/end variables,
11079 to handle -fleading-underscore.
11080 * sysv4.h (ASM_DECLARE_FUNCTION_NAME): Use asm_fprintf and %U.
11081 (USER_LABEL_PREFIX): New macro.
11082 (ASM_OUTPUT_INTERNAL_LABEL_PREFIX): Use asm_fprintf and %L.
11083 (ASM_OUTPUT_LABELREF): Use asm_fprintf and %U.
11084 * t-ppccomm (MULTILIB_MATCHES_SYSV): Note that call-sysv and
11085 call-linux can use the same multilibs.
11086 * t-ppcgas (MULTILIB_OPTIONS): Don't need to have separate call-sysv
11087 and call-linux multilibs. Do multilib with -fleading-underscore.
11088 (MULTILIB_DIRNAMES): Follow MULTILIB_OPTIONS change.
11089 (MULTILIB_EXCEPTIONS): Remove call-linux exceptions. Add restrictions
11092 * sysv4.h (CPP_SYSV_SPEC): Define _SOFT_FLOAT for all those CPUs that
11093 have MASK_SOFT_FLOAT set.
11094 (CPP_FLOAT_DEFAULT_SPEC): New macro.
11095 (SUBTARGET_EXTRA_SPECS): Set `cpp_float_default' to the value of
11096 CPP_FLOAT_DEFAULT_SPEC.
11098 * rs6000.c (ccr_bit): Add some consistency checks and a variable 'reg'.
11099 * rs6000.md: Whitespace change.
11100 * sysv4.h (LINK_TARGET_SPEC): Whitespace change.
11101 * sysv4le.h (LINK_TARGET_SPEC): Whitespace change.
11103 2000-02-05 Geoff Keating <geoffk@cygnus.com>
11105 * rs6000.md (eh_epilogue): New expander.
11106 (eh_reg_restore): New expand/split/insn combination.
11107 (return_eh_si): New insn.
11108 (return_eh_di): New insn.
11110 * eabi-ci.asm: Put a label at the start of the .eh_frame section.
11111 * eabi-cn.asm: Put a zero at the end of the .eh_frame section.
11112 * eabi-ctors.c (__do_global_ctors): Register this object's
11113 frame. Clean up. Call atexit() after the constructors.
11114 (__do_global_dtors): Deregister this object's frame. Clean up.
11115 Allow for recursive calls to exit().
11116 * rs6000.c (fixuplabelno): New variable.
11117 * sysv4.h (ASM_OUTPUT_INT): Don't do .fixup if not
11118 TARGET_RELOCATABLE, it slows down exec() under linux.
11119 (ASM_OUTPUT_DWARF_ADDR): Do .fixup if TARGET_RELOCATABLE.
11121 * aix.h (ASM_OUTPUT_DWARF_ADDR_VAR): New macro.
11122 (ASM_OUTPUT_DWARF_DELTA_VAR): New macro.
11123 (ASM_OUTPUT_DWARF_DELTA2): New macro.
11124 (ASM_OUTPUT_DWARF_DELTA4): New macro.
11125 (ASM_OUTPUT_DWARF_ADDR_DELTA): New macro.
11126 (ASM_OUTPUT_DWARF_ADDR): New macro.
11127 (ASM_OUTPUT_DWARF_DATA4): New macro.
11128 (ASM_OUTPUT_DWARF_DATA2): New macro.
11129 (ASM_OUTPUT_DWARF_OFFSET4): New macro.
11130 (ASM_OUTPUT_DWARF_OFFSET): New macro.
11131 (UNALIGNED_INT_ASM_OP): New macro, fake definition.
11133 2000-02-03 Geoff Keating <geoffk@cygnus.com>
11135 * rs6000.c (rs6000_sr_alias_set): New variable.
11136 (rs6000_override_options): Initialise rs6000_sr_alias_set.
11137 (rs6000_emit_stack_tie): New function.
11138 (rs6000_emit_allocate_stack): Specify RTX_FRAME_RELATED_P
11139 in a way that dwarf2out can understand.
11140 (rs6000_frame_related): New function.
11141 (rs6000_emit_prologue): Use rs6000_sr_alias_set. Specify
11142 RTX_FRAME_RELATED_P in a way that dwarf2out can understand.
11143 Use rs6000_emit_stack_tie when needed.
11144 (rs6000_emit_epilogue): Use rs6000_sr_alias_set. Don't set
11145 RTX_FRAME_RELATED_P. Use rs6000_emit_stack_tie when needed.
11146 * rs6000.md (stack_tie): New insn.
11147 (return_internal_si): Allow return value to be in the count
11149 (return_internal_di): Likewise.
11151 * rs6000.c (output_mi_thunk): Remove unused variable `sp'.
11153 2000-02-03 Geoff Keating <geoffk@cygnus.com>
11155 * sysv4.h (LOCAL_LABEL_PREFIX): Define, for the use of dbxelf.h.
11157 2000-01-31 Geoff Keating <geoffk@cygnus.com>
11159 * rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): New macro.
11161 * rs6000.md (stmw): Use the right POWER opcode.
11164 2000-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11166 * rs6000-protos.h: New file.
11168 * rs6000.c: Include tm_p.h. Fix compile time warnings.
11170 * rs6000.h: Move prototypes to rs6000-protos.h. Fix compile time
11173 * sysv4.h: Likewise.
11175 2000-01-28 Geoff Keating <geoffk@cygnus.com>
11177 * ../../configure.in: Delete powerpcle-*-winnt*
11178 and powerpcle-*-pe|powerpcle-*-cygwin*.
11179 * ../../configure: Regenerated.
11180 * cygwin.h: Delete.
11181 * rs6000.h (OBJECT_WINDOWS_NT): Delete.
11182 (TARGET_WINDOWS_NT): Delete.
11184 (CALL_NT_DLLIMPORT): Delete.
11185 Delete NT-specific code.
11186 * rs6000.md, rs6000.c, sysv4.h: Delete NT-specific code.
11187 * win-nt.h: Delete.
11189 * nt-ci.asm: Delete.
11190 * nt-cn.asm: Delete.
11191 * ntstack.asm: Delete.
11193 2000-01-27 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11195 * rs6000.h (SELECT_RTX_SECTION): Move to aix.h.
11196 (ASM_FILE_START): Likewise.
11197 (ASM_DECLARE_FUNCTION_NAME): Likewise.
11198 (ASM_OUTPUT_LABELREF): Likewise.
11199 (ASM_OUTPUT_SKIP): Likewise.
11200 (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
11201 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
11202 (ASM_OUTPUT_CASE_LABEL): Likewise.
11203 (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
11204 (ASM_OUTPUT_ASCII): Likewise.
11206 2000-01-27 Clinton Popetz <cpopetz@cygnus.com>
11208 * rs6000.c (rs6000_emit_load_toc_table): Use "LCG" and
11209 reload_toc_labelno for non-prologue TOC reloads. Also, don't
11210 increment rs6000_pic_labelno here.
11211 (rs6000_emit_prologue): Pass TRUE to rs6000_emit_load_toc_table,
11212 and increment rs6000_pic_labelno here.
11214 2000-01-24 Geoffrey Keating <geoffk@cygnus.com>
11216 * rs6000.md (fctiwz): Use (set (reg) (unspec:DI [(fix:SI ...)]))
11217 rather than (set (subreg:SI (reg)) (fix:SI ...)) so that register
11218 allocation knows (reg) is dead before the insn.
11220 2000-01-21 Geoff Keating <geoffk@cygnus.com>
11222 * rs6000.md (movsi_to_cr): Correct typo in output template.
11224 2000-01-19 Geoffrey Keating <geoffk@cygnus.com>
11226 * rs6000.c (rs6000_pic_labelno): Always define.
11227 (rs6000_pic_func_labelno): Delete.
11228 (lmw_operation): Check for a zero base register,
11229 which doesn't mean what we want.
11230 (stmw_operation): New function.
11231 (print_operand): Define new 'l' modifier.
11232 (rs6000_stack_info): We must save all 64 bits of the registers
11233 if TARGET_POWERPC64.
11234 (rs6000_output_load_toc_table): Delete.
11235 (rs6000_emit_load_toc_table): New function.
11236 (rs6000_allocate_stack_space): Delete.
11237 (rs6000_emit_allocate_stack): New function.
11238 (rs6000_emit_prologue): New function.
11239 (output_prolog): Use rs6000_emit_prologue.
11240 (rs6000_emit_epilogue): Change a few variable names to be
11241 more accurate. Restore all 64 bits of the registers if
11242 TARGET_POWERPC64. Only restore the FP registers which were used
11243 if they are being saved/restored one-at-a-time.
11244 (output_mi_thunk): Delete inefficient code generation.
11245 (output_function_profiler): Don't use rs6000_output_load_toc_table.
11246 * rs6000.h: Declare rs6000_emit_load_toc_table,
11247 rs6000_allocate_stack_space, stmw_operation. Don't declare
11248 rs6000_output_load_toc_table.
11249 * rs6000.md (elf_high): Allow register 0, but discourage it
11251 (elf_low): Support loading into register 0.
11252 (load_toc_aix_si): New pattern.
11253 (load_toc_aix_di): New pattern.
11254 (load_toc_v4_pic_si): New pattern.
11255 (load_toc_v4_pic_di): New pattern.
11256 (load_toc_v4_PIC_1): New pattern.
11257 (load_toc_v4_PIC_1b): New pattern.
11258 (load_toc_v4_PIC_2): New pattern.
11259 (builtin_setjmp_receiver): Use rs6000_emit_load_toc_table.
11260 (nonlocal_goto_receiver): Use rs6000_emit_load_toc_table.
11261 (prologue): New expander.
11262 (movesi_from_cr): New pattern.
11263 (stmw): New pattern.
11264 (save_fpregs_si): New pattern.
11265 (save_fpregs_di): New pattern.
11267 2000-01-19 Geoff Keating <geoffk@cygnus.com>
11269 * rs6000.md (movsi): Don't use force_reg when no_new_pseudos.
11274 2000-01-19 Geoff Keating <geoffk@cygnus.com>
11276 * rs6000.md (movsi_got): 'unspec 8' returns a SImode result,
11278 (movsi_got_internal): Likewise.
11279 (movsi_got_internal+1): Likewise.
11280 (set_sp): 'unspec 7' does a SImode clobber.
11282 2000-01-19 Geoff Keating <geoffk@cygnus.com>
11284 * rs6000.md (floatsidf2): Don't use the fpmem "register", just
11285 allocate a stack temporary.
11286 (floatsidf2_internal): Likewise.
11287 (floatsidf2_internal+1): Likewise. Don't do bizzare hacks
11289 (floatunssidf2): Don't use the fpmem "register", just
11290 allocate a stack temporary.
11291 (floatunssidf2_internal): Likewise.
11292 (floatunssidf2_internal+1): Likewise. Don't do bizzare hacks
11294 (floatsidf2_loadaddr): Delete.
11295 (floatsidf2_store1): Delete.
11296 (floatsidf2_store2): Delete.
11297 (floatsidf2_load): Delete.
11298 (fix_truncdfsi2): Don't use the fpmem "register", just
11299 allocate a stack temporary.
11300 (fix_truncdfsi2_internal_si): Delete.
11301 (fix_truncdfsi2_internal_di): Delete.
11302 (fix_truncdfsi2_internal): New insn.
11303 (fix_truncdfsi2_internal+1): Don't use the fpmem "register".
11304 (fix_truncdfsi2_store): Delete.
11305 (fix_truncdfsi2_load): Delete.
11306 (fctiwz): Produce gen_fctiwz.
11308 2000-01-19 Geoffrey Keating <geoffk@cygnus.com>
11310 * eabi.h (INVOKE__main): Define.
11311 * rs6000.c (rs6000_stack_info): Don't handle call to NAME__MAIN
11313 (rs6000_emit_prologue): Likewise.
11314 * rs6000.h (struct rs6000_stack): Don't keep track of whether
11315 this is the main program.
11317 2000-01-19 Geoff Keating <geoffk@cygnus.com>
11319 * rs6000.c (rs6000_va_arg): Delete some unused variables.
11321 2000-01-19 Geoff Keating <geoffk@cygnus.com>
11323 * rs6000.c (rs6000_va_arg): On AIX, padding for small arguments
11324 goes after the argument.
11326 2000-01-12 Geoff Keating <geoffk@cygnus.com>
11328 * rs6000.md: Document 'unspec' values used.
11329 (epilogue): New expander.
11330 (movesi_to_cr_one): New expander.
11331 (movesi_to_cr and following): New pattern.
11332 (lmw): New pattern.
11333 (return_internal_si): New pattern.
11334 (return_internal_di): New pattern.
11335 (return_and_restore_fpregs_si): New pattern.
11336 (return_and_restore_fpregs_di): New pattern.
11337 * rs6000.h: Declare new functions.
11338 * rs6000.c (rs6000_stack_info): Use current_function_is_leaf
11339 rather than rs6000_calls_p.
11340 (rs6000_makes_calls): Delete.
11341 (lmw_operation): New function.
11342 (mtcrf_operation): New function.
11343 (rs6000_emit_epilogue): New function.
11344 (output_epilog): Call rs6000_emit_epilogue and final if
11345 !TARGET_SCHED_PROLOG, instead of writing text unconditionally.
11347 2000-01-12 Geoff Keating <geoffk@cygnus.com>
11349 * aix43.h (SUBSUBTARGET_SWITCHES): Document switches.
11350 * aix41.h (SUBSUBTARGET_SWITCHES): Document switches.
11351 * aix.h (SUBTARGET_SWITCHES): Document switches.
11352 * rs6000.h: (TARGET_SWITCHES): Don't print options twice. Make
11353 sched-prolog and sched-epilog the same. Document all the
11355 (TARGET_OPTIONS): No longer allow -mdebug-.
11357 2000-01-12 Geoff Keating <geoffk@cygnus.com>
11359 * rs6000.h (ASM_FILE_END): Move to aix.h.
11360 (EXTRA_SECTIONS): Move to aix.h.
11361 (READONLY_DATA_SECTION): Move to aix.h.
11362 (EXTRA_SECTION_FUNCTIONS): Move to aix.h.
11363 (SELECT_SECTION): Move to aix.h.
11364 (JUMP_TABLES_IN_TEXT_SECTION): Move to aix.h.
11365 (INT_REGNO_P): Use symbolic name for ARG_POINTER_REGNUM.
11366 (LINK_REGISTER_REGNUM): New definition.
11367 (RETURN_ADDR_RTX): Use symbolic name for LINK_REGISTER_REGNUM.
11368 (SLOW_UNALIGNED_ACCESS): Define in a way suitable for both
11370 * sysv4.h: Delete the code between the inclusion of rs6000.h
11372 (DWARF_DEBUGGING_INFO): Don't define, it's defined in elfos.h.
11373 (FP_ARG_MAX_REG): Move generic definition to rs6000.h.
11374 (RS6000_REG_SAVE): Move generic definition to rs6000.h.
11375 (RS6000_SAVE_AREA): Move generic definition to rs6000.h.
11376 * rs6000.md (floatsidf2_loadaddr): The first arg here is Pmode.
11377 (fix_truncdfsi2_internal): Rename to fix_truncdfsi2_internal_si.
11378 (fix_truncdfsi2_internal_di): New pattern.
11379 (fix_truncdfsi2_store): The second arg here is Pmode too.
11380 (fix_truncdfsi2_load): The second arg here is Pmode too.
11381 (tablejumpdi): Now that switch tables hold only SImode values,
11382 gcc needs to know how to add them to the pc which is DImode.
11383 * rs6000.c (rs6000_stack_info): Use symbolic name for
11384 LINK_REGISTER_REGNUM.
11385 (output_mi_thunk) [!TARGET_ELF]: Don't define sp, it's not used.
11386 (output_toc): Delete unused variables s1 and s2.
11387 (output_ascii): Use fputs not fprintf on a variable string.
11389 2000-01-07 David Edelsohn <edelsohn@gnu.org>
11391 * rs6000.c (processor_target_table): Add power3 as alias for 630.
11392 * aix43.h: Revert Aug 2 change.
11393 (HAS_INIT_SECTION): Define, not visible yet.
11394 (LD_INIT_SWITCH): Define, not visible yet.
11395 * t-aix43 (MULTILIB_OPTIONS): Revert Aug 2 change.
11397 2000-01-04 Joel Sherrill (joel@OARcorp.com>
11399 * config/rs6000/rtems.h: Include config/rtems.h.
11401 2000-01-04 David Edelsohn <edelsohn@gnu.org>
11403 * rs6000.h (HANDLE_PRAGMA_PACK): Define.
11404 (SLOW_UNALIGNED_ACCESS): Define.
11405 (CASE_VECTOR_MODE): Always use 32-bit offsets.
11406 (ASM_FILE_END): Generate 64-bit symbol in 64-bit mode.
11407 (EXTRA_SECTOIN_FUNCTIONS): Indent .csect pseudo-op.
11408 (toc_section): Likewise and .toc pseudo-op.
11409 (ASM_DECLARE_FUNCTION): Likewise. Align text more strictly in
11411 (TEXT_SECTION_ASM_OP): Likewise.
11412 (ASM_OUTPUT_ADD_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Always use
11415 1999-12-17 Jakub Jelinek <jakub@redhat.com>
11417 * config/rs6000/rs6000.h (TARGET_POWERPC64): Make sure
11418 UNITS_PER_WORD and BITS_PER_WORD are compile time constants when
11421 2000-01-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11423 * rs6000.h: Move more stuff from here...
11425 * sysv4.h: Cleanup accordingly.
11426 * netware.h: Likewise
11428 2000-01-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11430 * rs6000.h: Continue cleanup.
11432 * lynx.h: Likewise.
11433 * netware.h: Likewise.
11434 * sol2.h: Likewise.
11435 * sysv4.h: Likewise.
11436 * win-nt.h: Likewise.
11438 * rs6000.h (TARGET_SWITCHES): Add descriptions.
11439 (TARGET_OPTIONS): Likewise.
11441 * sysv4.h (SUBTARGET_SWITCHES): Add descriptions.
11442 (SUBTARGET_OPTIONS): Likewise.
11444 * rs6000.md: Fix compile time warnings.
11446 2000-01-04 Geoff Keating <geoffk@cygnus.com>
11448 vxworks patches from the Cygnus tree originally by
11449 Michael Meissner <meissner@cygnus.com> and Vladimir Makarov
11450 <vmakarov@cygnus.com>.
11451 * sysv4.h (SUBTARGET_SWITCHES): Add vxworks.
11452 (ENDFILE_SPEC): Likewise.
11453 (LIB_VXWORKS_SPEC): New macro.
11454 (STARTFILE_VXWORKS_SPEC): New macro.
11455 (ENDFILE_VXWORKS_SPEC): New macro.
11456 (LINK_START_VXWORKS_SPEC): New macro.
11457 (LINK_OS_VXWORKS_SPEC): New macro.
11458 (CPP_OS_VXWORKS_SPEC): New macro.
11459 (SUBTARGET_EXTRA_SPECS): Add all the vxworks specs.
11460 * vxppc.h: Rewrite to use proper configuration method.
11461 * vxppcle.h: New file.
11462 * ../../configure.in: Add powerpcle-wrs-vxworks*.
11463 * ../../configure: Rebuilt.
11465 2000-01-04 Geoff Keating <geoffk@cygnus.com>
11467 Lots of changes to rs6000.h, sysv4.h, aix.h,
11468 aix31.h, aix3newas.h, aix41.h, aix43.h, beos.h,
11469 with the aim that rs6000.h is the first header
11470 included and the others override it.
11473 * x-aix41-gld: Remove.
11475 * x-aix41: Remove target-specific switches, and don't specify
11476 -Wl,-bbigtoc as we don't need it any more.
11477 * ../../configure.in: Use x-aix41 for ppc AIX 4.1 and above.
11478 Use t-aix43 for AIX 4.3 and above.
11479 * ../../configure: Regenerated.
11481 * rs6000.h (TARGET_SWITCHES): Add some initial prolog-scheduling
11482 options, that don't do anything yet.
11483 (MASK_SCHED_PROLOG): New macro.
11484 (MASK_SCHED_EPILOG): New macro.
11485 (TARGET_SCHED_PROLOG): New macro.
11486 (TARGET_SCHED_EPILOG): New macro.
11488 2000-01-04 Geoff Keating <geoffk@cygnus.com>
11490 * rs6000.c: Correct comment, the `minimal' TOCs are actually
11491 one per translation unit, not one per function.
11492 (output_toc): Also do duplicate constant elimination
11493 for per-translation-unit TOCs.
11495 * rs6000.md (nonlocal_goto_receiver): Put it back as before. Add
11496 a comment explaining _exactly_ when this pattern gets used.
11497 (builtin_setjmp_receiver): New pattern for better clarity.
11498 (init_v4_pic): Move it into a section dealing with TOC registers.
11500 1999-12-30 Geoff Keating <geoffk@cygnus.com>
11502 * rs6000.c (toc_hash_table): New variable.
11503 (rs6000_hash_constant): New function.
11504 (toc_hash_function): New function.
11505 (toc_hash_eq): New function.
11506 (toc_hash_mark_entry): New function.
11507 (toc_hash_mark_table): New function.
11508 (output_toc): Don't output duplicate TOC entries in
11510 (rs6000_add_gc_roots): Add the hash table as a GC root.
11511 * t-aix43: Move AR_FOR_TARGET and CLIB here from x-aix43,
11512 where they clearly shouldn't be. This may need to be fixed
11513 later when there is a GNU ar for AIX.
11514 * x-aix43: Don't define CLIB or AR_FOR_TARGET.
11515 Don't define BOOT_LDFLAGS as it is now not necessary.
11517 1999-12-29 Geoff Keating <geoffk@cygnus.com>
11519 * rs6000.c (rs6000_build_va_list): Use 'char *' rather than 'void *'
11520 for va_list on AIX. Use unsigned_char_type_node rather than
11521 constructing our own version on svr4.
11523 1999-12-17 Geoff Keating <geoffk@cygnus.com>
11525 * tramp.asm (__trampoline_size): Delete CYGNUS LOCAL comment,
11526 since patently it's not.
11528 1999-12-08 Geoff Keating <geoffk@cygnus.com>
11530 * config/rs6000/rs6000.md (nonlocal_goto_receiver): Turn into
11531 define_expand/define_insn pair, and handle restore of the
11532 SVR4 -fpic register.
11534 Wed Mar 15 15:43:38 2000 Jeffrey A Law (law@cygnus.com)
11536 * acconfig.h (HAVE_GAS_WEAK): New define.
11537 * configure.in (assembler weak support): Check for .weak support.
11538 * config.in, configure: Rebuilt.
11539 * pa/som.h (MAKE_DECL_ONE_ONLY, ASM_WEAKEN_LABEL): Only define if
11540 HAVE_GAS_WEAK is defined.
11542 2000-03-15 Nick Clifton <nickc@cygnus.com>
11544 * config/arm/arm.c (arm_output_epilogue): Do not pass %c to
11547 2000-03-15 Zack Weinberg <zack@wolery.cumb.org>
11549 * cppfiles.c (open_include_file): New function.
11550 (find_include_file, cpp_read_file): Use it.
11552 2000-03-15 Jason Merrill <jason@casey.cygnus.com>
11554 * cpphash.c (dump_hash_helper): Take the slot, not the element.
11556 Wed Mar 15 14:28:54 2000 Jason Eckhardt <jle@cygnus.com>
11558 * flow.c (verify_flow_info): Check for unconditional return.
11560 Wed Mar 15 11:34:27 2000 Jim Wilson <wilson@cygnus.com>
11562 * config/ia64/ia64.md (restore_stack_nonlocal): New.
11563 * config/ia64/lib1funcs.asm (__ia64_nonlocal_goto): Delete padding nop.
11564 (__ia64_restore_stack_nonlocal): New.
11565 * config/ia64/t-ia64 (LIB1ASMFUNCS): Add __restore_stack_nonlocal.
11567 2000-03-15 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
11569 * cpphash.c (collect_formal_parameters): Do not complain about
11570 parameter names that just start with `__VA_ARGS__'.
11572 Wed Mar 15 13:26:58 MET 2000 Jan Hubicka <jh@suse.cz>
11574 * i386.md (movhi_1): Promote movw imm, reg to movl imm, reg and
11575 movw reg, reg to movzwl reg, reg on PARTIAL_REGISTER_STALL machines.
11576 * i386.c (pentiumpro_cost): Set mul cost to 4.
11577 (x86_use_movx): Set for PPro.
11579 Wed Mar 15 13:07:05 MET 2000 Jan Hubicka <jh@suse.cz>
11581 * i386.md (ix86_compute_frame_size): stack_alignment_needed is
11582 STACK_BOUNDARY for empty frames now.
11584 2000-03-14 Mark Mitchell <mark@codesourcery.com>
11586 * stor-layout.c (layout_union): Remove.
11587 (layout_union_field): New function, split out from layout_union.
11588 (finish_union_layout): Likewise.
11589 (layout_field): Handle unions by calling layout_union_field.
11590 (finish_record_layout): Handle unions.
11591 (layout_type): Combine RECORD_TYPE, UNION_TYPE, and
11592 QUAL_UNION_TYPE handling.
11594 Wed Feb 23 13:00:06 CET 2000 Jan Hubicka <jh@suse.cz>
11596 * flow.c (fixup_reorder_chain): Avoid double labels in the basic block;
11597 end of basic block is jump_insn, not barrier; use create_basic_block
11598 instead of creating basic block by hand.
11600 2000-03-14 Jason Eckhardt <jle@cygnus.com>
11602 * flow.c (reorder_basic_blocks): Account for barriers when writing
11603 over NEXT_INSN (last_bb->end).
11604 (verify_flow_info): Add check for missing barriers.
11606 2000-03-14 Greg McGary <gkm@gnu.org>
11608 * c-lex.h (enum rid): Add RID_BOUNDED & RID_UNBOUNDED.
11609 * c-lex.c (init_lex): Handle RID_BOUNDED & RID_UNBOUNDED.
11610 * c-parse.gperf (__bounded, __bounded__, __ptrbase, __ptrbase__,
11611 __ptrextent, __ptrextent__, __ptrvalue, __ptrvalue__,
11612 __unbounded, __unbounded__): New keywords.
11613 * c-parse.in (PTR_VALUE PTR_BASE PTR_EXTENT): New tokens.
11614 * c-parse.y, c-parse.c, c-parse.h: Regenerate.
11615 * objc/objc-parse.y, objc/objc-parse.c: Regenerate.
11617 2000-03-14 Bernd Schmidt <bernds@cygnus.co.uk>
11619 * cselib.h: New file.
11620 * alias.c: Include "cselib.h".
11621 (fixed_scalar_and_varying_struct_p): Accept the addresses of the
11622 MEMs as two new arguments.
11623 (get_addr): New static function.
11624 (find_base_term): Handle VALUEs.
11625 (memrefs_conflict_p): Likewise.
11626 (true_dependence): Call get_addr on the addresses.
11627 Call fixed_scalar_and_varying_struct_p with addresses that have been
11628 passed through get_addr and canon_rtx.
11629 (write_dependence_p): Move DIFFERENT_ALIAS_SETS_P test for consistency
11630 with true_dependence.
11631 Call get_addr on the addresses; don't call canon_rtx on the MEMs.
11632 * loop.c: Include "cselib.h".
11633 (load_mems): Process extended basic block that enters the loop with
11634 cselib. Use that information to change initialization of the shadow
11635 register so that a constant equivalence is seen by later passes.
11636 * reload1.c: Include "cselib.h".
11637 (reload_cse_invalidate_regno): Delete function.
11638 (reload_cse_mem_conflict_p): Likewise.
11639 (reload_cse_invalidate_mem): Likewise.
11640 (reload_cse_invalidate_rtx): Likewise.
11641 (reload_cse_regno_equal_p): Likewise.
11642 (reload_cse_check_clobber): Likewise.
11643 (reload_cse_record_set): Likewise.
11644 (reg_values): Delete static variable.
11645 (invalidate_regno_rtx): Likewise.
11646 (reload_cse_delete_noop_set): New static function.
11647 (reload_cse_simplify): New static function, broken out of
11649 (reload_cse_noop_set_p): Delete unused argument INSN.
11650 Just call rtx_equal_for_cselib_p on set source and destination.
11651 (reload_cse_regs_1): Break out some code into reload_cse_simplify and
11652 reload_cse_delete_noop_set. Delete code to keep track of values; use
11653 cselib functions instead. Delete code to push/pop obstacks.
11654 (reload_cse_simplify_set): Use cselib to find equivalent values.
11655 Delete code to push/pop obstacks.
11656 (reload_cse_simplify_operands): Likewise.
11657 * rtl.def (VALUE): New rtx code.
11658 * rtl.h (union rtunion_def): New elt rt_cselib.
11659 (X0CSELIB, CSELIB_VAL_PTR): New macros.
11660 * simplify_rtx.c: Include "ggc.h", "obstack.h", "cselib.h".
11661 (new_elt_list, new_elt_loc_list, unchain_one_value, clear_table,
11662 unchain_one_elt_list, unchain_one_elt_loc_list, check_useless_values,
11663 discard_useless_locs, discard_useless_values, entry_and_rtx_equal_p,
11664 hash_rtx, new_cselib_val, add_mem_for_addr, get_value_hash,
11665 cselib_lookup_mem, cselib_subst_to_values, cselib_invalidate_regno,
11666 cselib_mem_conflict_p, cselib_invalidate_mem, cselib_invalidate_rtx,
11667 cselib_record_set, cselib_record_sets): New static functions.
11668 (cselib_lookup, cselib_update_varray_sizes, cselib_init,
11669 cselib_finish, cselib_process_insn, rtx_equal_for_cselib_p,
11670 references_value_p): New functions.
11671 (MAX_USELESS_VALUES, REG_VALUES): New macros.
11672 (table, cselib_current_insn, next_unknown_value, cselib_nregs,
11673 n_useless_values, reg_values, callmem, cselib_obstack,
11674 cselib_startobj, empty_vals, empty_elt_lists, empty_elt_loc_lists):
11675 New static variables.
11676 * varray.h (union varray_data_tag): New elt te.
11677 (VARRAY_ELT_LIST_INIT, VARRAY_ELT_LIST): New macros.
11678 * Makefile.in (reload1.o, loop.o, simplify-rtx.o, alias.o): Update
11681 2000-03-14 Nick Clifton <nickc@cygnus.com>
11683 * gcc.c (do_spec_1): Catch the case where %* is used in a
11684 substitution pattern, but it has not been initialised.
11685 Issue a meaningful error message if an unrecognised operator
11686 is encountered in a spec string.
11688 2000-03-14 Richard Earnshaw <rearnsha@arm.com>
11690 * function.c (prepare_function_start): Correctly initialize
11691 cfun->stack_alignment_needed.
11693 2000-03-14 Zack Weinberg <zack@wolery.cumb.org>
11695 * cppfiles.c (find_include_file): Don't assume nshort is a
11698 Tue Mar 14 08:42:21 2000 Jeffrey A Law (law@cygnus.com)
11700 * configure.in (hppa configurations): Add pa32-regs.h to the
11701 list of tm files as appropriate.
11702 * configure: Rebuilt.
11703 * pa.c (compute_frame_size): Remove explicit knowledge about FP
11704 register numbering.
11705 (hppa_expand_prologue, hppa_expand_epilogue): Likewise.
11706 (fmpyaddoperands, fmpysuboperands): Likewise.
11707 * pa.h: Remove various definitions which depend on knowing
11708 how registers are numbered.
11709 * pa32-regs.h: New file with PA32 register numbering specific
11712 2000-03-14 Richard Henderson <rth@cygnus.com>
11714 * regmove.c (combine_stack_adjustments): New.
11715 (stack_memref_p, single_set_for_csa): New.
11716 (free_csa_memlist, record_one_stack_memref): New.
11717 (try_apply_stack_adjustment): New.
11718 (combine_stack_adjustments_for_block): New.
11719 * rtl.h (combine_stack_adjustments): Declare.
11720 * toplev.c (rest_of_compilation): Call it.
11722 * i386.md: Revert 2000-01-16 change.
11724 2000-03-14 Martin v. Löwis <loewis@informatik.hu-berlin.de>
11726 * gccbug.in: Add web category, gcc specific classes.
11728 2000-03-14 Nathan Sidwell <nathan@codesourcery.com>
11730 * stor-layout.c (finalize_record_size): Fix typo.
11732 2000-03-14 Stan Shebs <shebs@apple.com>
11734 * c-typeck.c (c_alignof): Error on incomplete types.
11735 * extend.texi (Alignment): Document this.
11737 2000-03-13 Zack Weinberg <zack@wolery.cumb.org>
11739 * cppfiles.c: Include mkdeps.h.
11740 (find_include_file, read_include_file): Remove _cpp_ prefix
11741 from name, make static.
11742 (_cpp_execute_include): New function, broken out of
11745 * cpplib.c: Don't include mkdeps.h.
11746 (struct directive): Remove type field. Reorder entries. The
11747 function takes only one argument.
11748 (struct if_stack): Make type field an int.
11749 (directive_table): Rename to dtable. Generate it, the
11750 prototypes of the directive handlers, and the enum for the
11751 directive numbers, from a template macro.
11752 (do_ifndef, do_include_next, do_import): New functions.
11753 (do_define, do_include, do_endif, do_ifdef, do_if, do_else,
11754 do_undef, do_line, do_elif, do_error, do_pragma, do_warning,
11755 do_ident, do_assert, do_unassert, do_sccs): Take only one
11757 (do_sccs): Define always, but alter behavior based on
11759 (_cpp_handle_directive, consider_directive_while_skipping):
11760 Restructure for new directive table layout.
11762 (pass_thru_directive): Take a directive number, not a pointer
11763 to a struct directive.
11764 (parse_include): New function, broken out of do_include.
11765 (do_include, do_import, do_include_next): Use parse_include
11766 and _cpp_execute_include.
11767 (do_elif, do_else): Test for T_ELSE specifically when checking
11768 for #elif/#else after #else.
11769 (parse_ifdef): New function, broken out of do_ifdef.
11770 (validate_else): Expect a name arg without a leading #.
11771 (if_directive_name): Delete.
11772 (cpp_define, cpp_assert, cpp_undef, cpp_unassert): Call
11773 directive handlers with only one argument.
11775 * cpphash.h: Update prototypes.
11776 (enum node_type): Remove entries for directives.
11777 * Makefile.in: Update dependencies.
11779 * cpphash.c (dump_hash_helper): Only dump nodes of type
11780 T_MACRO. Emit a newline after each definition.
11782 2000-03-14 Martin v. Löwis <loewis@informatik.hu-berlin.de>
11784 * gccbug.in: New file.
11785 * configure.in (all_outputs): Add gccbug.
11786 * Makefile.in (install-common): Install gccbug.
11787 (GCCBUG_INSTALL_NAME): New variable.
11788 * configure: Rebuilt.
11790 2000-03-13 Jason Merrill <jason@casey.cygnus.com>
11792 * function.c (put_var_into_stack): Use type_for_mode to calculate
11793 part_type. Use MEM_SET_IN_STRUCT_P.
11794 * expr.c (store_field): Handle CONCAT.
11795 (store_constructor): Use fields_length.
11796 * tree.c (fields_length): New fn.
11797 * tree.h: Declare it.
11799 2000-03-13 Zack Weinberg <zack@wolery.cumb.org>
11801 * Makefile.in (LIBCPP_OBJS): Add cpplex.o.
11802 (cpplex.o): New target.
11803 * po/POTFILES.in: Add cpplex.c.
11805 * cpplex.c (_cpp_grow_token_buffer, null_cleanup,
11806 cpp_push_buffer, cpp_pop_buffer, cpp_scan_buffer,
11807 cpp_expand_to_buffer, cpp_buf_line_and_col, cpp_file_buffer,
11808 skip_block_comment, skip_line_comment, skip_comment,
11809 copy_comment, _cpp_skip_hspace, _cpp_skip_rest_of_line,
11810 _cpp_parse_name, skip_string, parse_string,
11811 _cpp_parse_assertion, cpp_get_token, cpp_get_non_space_token,
11812 _cpp_get_directive_token, find_position,
11813 _cpp_read_and_prescan, _cpp_init_input_buffer): Move here.
11814 (maybe_macroexpand, _cpp_lex_token): New functions.
11816 * cpplib.c (SKIP_WHITE_SPACE, eval_if_expr, parse_set_mark,
11817 parse_goto_mark): Delete.
11818 (_cpp_handle_eof): New function.
11819 (_cpp_handle_directive): Rename from handle_directive.
11820 (_cpp_output_line_command): Rename from output_line_command.
11821 (do_if, do_elif): Call _cpp_parse_expr directly.
11822 * cppfiles.c (_cpp_read_include_file): Don't call
11823 init_input_buffer here.
11824 * cpphash.c (quote_string): Move here, rename _cpp_quote_string.
11825 * cppexp.c (_cpp_parse_expr): Diddle parsing_if_directive
11826 here; pop the token_buffer and skip the rest of the line here.
11827 * cppinit.c (cpp_start_read): Call _cpp_init_input_buffer
11830 * cpphash.h (CPP_RESERVE, CPP_IS_MACRO_BUFFER, ACTIVE_MARK_P):
11832 (CPP_SET_BUF_MARK, CPP_GOTO_BUF_MARK, CPP_SET_MARK,
11833 CPP_GOTO_MARK): New macros.
11834 (_cpp_quote_string, _cpp_parse_name, _cpp_skip_rest_of_line,
11835 _cpp_skip_hspace, _cpp_parse_assertion, _cpp_lex_token,
11836 _cpp_read_and_prescan, _cpp_init_input_buffer,
11837 _cpp_grow_token_buffer, _cpp_get_directive_token,
11838 _cpp_handle_directive, _cpp_handle_eof,
11839 _cpp_output_line_command): Prototype them here.
11840 * cpplib.h (enum cpp_token): Add CPP_MACRO.
11841 (CPP_RESERVE, get_directive_token, cpp_grow_buffer,
11842 quote_string, output_line_command): Remove.
11844 2000-03-13 Bernd Schmidt <bernds@cygnus.co.uk>
11846 * stmt.c (expand_end_case): RANGE may be signed, and when checking
11847 whether it is too large we must also verify that it isn't negative.
11849 2000-03-13 Jakub Jelinek <jakub@redhat.com>
11851 * config/sparc/sparc.md: Remove all traces of TARGET_LIVE_G0.
11852 (movsi_zero_liveg0): Remove.
11853 (movsf_insn_novis_liveg0): Remove.
11855 (negsi2_not_liveg0): Rename to negsi2.
11856 (one_cmplsi2): Remove.
11857 (one_cmplsi2_not_liveg0): Rename to one_cmplsi2.
11858 (one_cmplsi2_liveg0): Remove.
11859 * config/sparc/sparc.h (TARGET_LIVE_G0, TARGET_BROKEN_SAVERESTORE,
11860 MASK_LIVE_G0, MASK_BROKEN_SAVERESTORE): Remove.
11861 (CONDITIONAL_REGISTER_USAGE): Remove TARGET_LIVE_G0 if.
11862 (PREDICATE_CODES): Remove zero_operand.
11863 * config/sparc/sparc.c: Remove all traces of TARGET_LIVE_G0 and
11864 TARGET_BROKEN_SAVERESTORE.
11865 (zero_operand): Remove.
11866 * config/sparc/splet.h (SUBTARGET_SWITCHES): Remove -mlive-g0,
11867 -mno-live-g0, -mbroken-saverestore and -mno-broken-saverestore
11869 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
11870 * config/sparc/linux-aout.h (TARGET_LIVE_G0,
11871 TARGET_BROKEN_SAVERESTORE): Remove.
11872 * config/sparc/linux.h (TARGET_LIVE_G0, TARGET_BROKEN_SAVERESTORE):
11874 * config/sparc/linux64.h (TARGET_LIVE_G0, TARGET_BROKEN_SAVERESTORE):
11876 * config/sparc/sol2.h (TARGET_LIVE_G0, TARGET_BROKEN_SAVERESTORE):
11879 * config/sparc/sparc.md (return_df_no_fpu): New pattern.
11881 2000-03-13 Zack Weinberg <zack@wolery.cumb.org>
11883 * cpplib.c (do_pragma_implementation): Fix off-by-one error
11884 truncating a string. Don't assume tokens are nul terminated.
11885 Problem noted by Andreas Jaeger <aj@suse.de>
11887 2000-03-13 Jason Merrill <jason@casey.cygnus.com>
11889 * dwarf2out.c (add_name_and_src_coords_attributes): Only add
11890 DW_AT_MIPS_linkage_name for TREE_PUBLIC decls.
11891 (ASM_OUTPUT_DWARF_ADDR_CONST): Don't output trailing newline.
11893 2000-03-13 Richard Earnshaw <rearnsha@arm.com>
11895 * stor-layout.c (new_record_layout_info): Fix typo inside ifdef
11896 STRUCTURE_SIZE_BOUNDARY.
11898 2000-03-13 Mark Mitchell <mark@codesourcery.com>
11900 * tree.h (record_layout_info_s): New structure.
11901 (record_layout_info): New type.
11902 (new_record_layout_info): New function.
11903 (layout_field): Likewise.
11904 (finish_record_layout): Likewise.
11905 * stor-layout.c (layout_record): Remove.
11906 (new_record_layout_info): New function.
11907 (layout_field): New function, broken out from layout_record.
11908 (finalize_record_size): Likewise.
11909 (compute_record_mode): Likewise.
11910 (finalize_type_size): New function, broken out from layout_type.
11911 (finish_record_layout): Likewise.
11912 (layout_type): Use them.
11914 2000-03-12 Zack Weinberg <zack@wolery.cumb.org>
11916 * cpphash.c: Don't include version.h.
11917 (special_symbol) [case T_VERSION]: Look for the string in
11918 hp->value.cpval; don't use version_string.
11919 * cppinit.c (initialize_builtins): Set hp->value.cpval for
11920 __VERSION__ to version_string.
11921 * Makefile.in (cpphash.o): Update deps.
11923 2000-03-12 Zack Weinberg <zack@wolery.cumb.org>
11925 Convert cpplib to use libiberty/hashtab.c.
11927 * cpplib.h (struct cpp_reader): Make hashtab and
11928 all_include_files of type 'struct htab *'. Delete HASHSIZE
11929 and ALL_INCLUDE_HASHSIZE macros.
11931 * cpphash.h: Update prototypes.
11932 (struct hashnode): Remove next, prev, and bucket_hdr members.
11933 Make length a size_t. Add hash member.
11934 (struct ihash): Remove next member. Add hash member. Make
11935 name a flexible array member.
11937 * cppfiles.c: Include hashtab.h.
11938 (include_hash): Delete.
11939 (IHASHSIZE): New macro.
11940 (hash_IHASH, eq_IHASH, _cpp_init_include_hash): New functions.
11941 (cpp_included): Do the hash lookup here.
11942 (_cpp_find_include_file): Rewrite.
11943 (cpp_read_file): Put the "fake" hash entry into the hash
11944 table. Honor the control_macro, if it turns out we've seen
11945 the file before. Don't push the buffer here.
11946 (_cpp_read_include_file): Push the buffer here.
11947 (OMODES): New macro. Use it whenever we call open(2).
11949 * cpphash.c: Include hashtab.h.
11950 (hash_HASHNODE, eq_HASHNODE, del_HASHNODE, dump_hash_helper,
11951 _cpp_init_macro_hash, _cpp_dump_macro_hash, _cpp_make_hashnode,
11952 _cpp_lookup_slot): New functions.
11953 (HASHSIZE): new macro.
11954 (hashf, _cpp_install, _cpp_delete_macro): Delete.
11955 (_cpp_lookup): Use hashtab.h routines.
11957 * cppinit.c: Include hashtab.h.
11958 (cpp_reader_init): Call _cpp_init_macro_hash and
11959 _cpp_init_include_hash. Don't allocate hashtab directly.
11960 (cpp_cleanup): Just call htab_delete on pfile->hashtab and
11961 pfile->all_include_files.
11962 (initialize_builtins): Use _cpp_make_hashnode and
11963 htab_find_slot to add hash entries.
11964 (cpp_finish): Just call _cpp_dump_macro_hash.
11965 * cpplib.c: Include hashtab.h.
11966 (do_define): Use _cpp_lookup_slot and _cpp_make_hashnode to
11967 create hash entries.
11968 (do_pragma_poison, do_assert): Likewise.
11969 (do_include): Don't push the buffer here. Don't increment
11970 system_include_depth unless _cpp_read_include_file succeeds.
11971 (do_undef, do_unassert): Use _cpp_lookup_slot and htab_clear_slot
11972 or htab_remove_elt.
11973 (do_pragma_implementation): Use alloca to create copy.
11975 * Makefile.in: Update dependencies.
11977 2000-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11979 * cppinit.c (cl_directive_handler): More K&R fixing.
11981 Sat Mar 11 23:54:26 2000 Jim Wilson <wilson@cygnus.com>
11983 * config/ia64/ia64.c (ia64_compute_frame_size): Align size to
11985 * config/ia64/ia64.h (REGISTER_MOVE_COST): Add missing parentheses.
11987 2000-03-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11989 * cppinit.c (no_arg, no_ass, no_dir, no_fil, no_mac, no_pth):
11990 Change from char[] to macros.
11992 2000-03-12 Neil Booth <NeilB@earthling.net>
11994 * cppinit.c (cpp_start_read): Update indirect function
11997 Sat Mar 11 16:18:12 2000 Jim Wilson <wilson@cygnus.com>
11999 * config/ia64/ia64.h (ADDITIONAL_REGISTER_NAMES): Fix typo in loc79
12002 * config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
12003 config/ia64/ia64.md, config/ia64/xm-ia64.h: Fix copyright messages.
12005 2000-03-11 Neil Booth <NeilB@earthling.net>
12007 * cppinit.c (struct pending option): Replace undef with a
12008 pointer to a directive handling routine.
12009 (struct cpp_pending): Replace separate assert_ and define_
12010 lists with one directive_ list.
12011 (new_pending_define): Rename new_pending_directive. Extra
12012 argument is the directive's handling routine.
12013 (handle_option): Update to use new_pending_directive.
12015 2000-03-11 Neil Booth <NeilB@earthling.net>
12017 * cppfiles.c (file_cleanup, _cpp_find_include_file,
12018 remap_filename, _cpp_read_include_file, actual_directory,
12019 hack_vms_include_specification): Replace bcopy(), index() etc
12020 calls. Add casts to some allocations. Make some variables
12021 pointers to const [unsigned] char.
12022 * cpphash.c (_cpp_install, macro_cleanup, collect_expansion,
12023 collect_formal_parameters): Similarly.
12024 * cppinit.c (struct pending_option, append_include_chain,
12025 cpp_options_init, cpp_reader_init, initialize_standard_includes,
12026 cpp_start_read, new_pending_define, handle_option): Similarly.
12027 * cpplib.c (cpp_define, copy_comment, do_define, do_include,
12028 do_undef, do_error, do_warning, do_pragma, do_pragma_once,
12029 do_pragma_implementation, detect_if_not_defined,
12030 do_ifdef, skip_if_group, cpp_get_token, parse_string,
12031 do_assert, do_unassert): Similarly.
12032 * cpplib.h (cpp_buffer, cpp_options): Update types. Update
12033 function prototypes.
12034 * mkdeps.c (deps_add_target, deps_add_dep): cast allocations.
12036 2000-03-10 Richard Henderson <rth@cygnus.com>
12038 * builtins.c (expand_builtin_strlen): Revert last change.
12039 Use emit_insn_before if we're at the beginning of a sequence.
12041 2000-03-10 Jason Merrill <jason@casey.cygnus.com>
12043 * builtins.c (expand_builtin_strlen): Make sure that we have something
12044 at the beginning of the sequence.
12046 * toplev.c (rest_of_compilation): Also set TREE_NOTHROW for
12049 * invoke.texi (C++ Dialect Options): Document -fno-enforce-eh-specs.
12051 2000-03-10 Richard Henderson <rth@cygnus.com>
12053 * except.c (can_throw): Use INTVAL on a CONST_INT.
12054 (reachable_handlers): Likewise.
12055 * flow.c (count_basic_blocks, find_basic_blocks_1): Likewise.
12057 2000-03-10 Andreas Jaeger <aj@suse.de>
12059 * config/mips/linux.h: Undefine MD_EXEC_PREFIX and
12060 MD_STARTFILE_PREFIX since those are not needed on linux.
12061 (ASM_FILE_START): New, from mips/gnu.h.
12063 2000-03-09 Richard Henderson <rth@cygnus.com>
12064 Alex Samuel <samuel@codesourcery.com> and others
12066 * Makefile.in (ssa.o): New rule.
12068 (STAGESTUFF): Add *.ssa and *.ussa.
12069 (mostlyclean): Delete *.ssa, *.ussa, */*.ssa, */*.ussa.
12070 * rtl.def (PHI): New RTL expression.
12071 * rtl.h (clear_log_links): New declaration.
12072 (convert_to_ssa): Likewise.
12073 (convert_from_ssa): Likewise.
12074 * flow.c (split_edge): If the entry node falls through to the
12075 split edge's source block, split the entry edge.
12076 (clear_log_links): New function.
12077 * toplev.c (ssa_dump): New variable.
12078 (flag_ssa): Likewise.
12079 (f_options): Add "ssa".
12080 (compile_file): Create SSA dump files.
12081 (rest_of_compilation): Go to and from SSA if enabled.
12082 (decide_d_option): Handle -de for SSA dump files.
12085 Thu Mar 9 20:01:38 2000 Jim Wilson <wilson@cygnus.com>
12087 * expr.c (expand_assignment): For a CALL_EXPR, special case PARM_DECL
12090 2000-03-09 Benjamin Kosnik <bkoz@cygnus.com>
12092 * config/alpha/linux.h (WCHAR_TYPE): Make consistent.
12094 Thu Mar 9 18:10:02 2000 Jeffrey A Law (law@cygnus.com)
12096 * config/pa/pa-hpux10.h (LIB_SPEC): Correct typo in !p case.
12097 (MD_STARTFILE_PREFIX_1): New macro.
12099 2000-03-09 Robert Lipe <robertl@sco.com>
12101 * config/ia64/ia64.c: Include system.h.
12103 2000-03-09 Jason Merrill <jason@casey.cygnus.com>
12105 * except.c (nothrow_function_p): If -fno-exceptions, just return.
12106 (init_eh_nesting_info): Likewise.
12108 * tree.h (struct tree_common): Rename raises_flag to nothrow_flag.
12109 (TREE_NOTHROW): Rename from TREE_RAISES.
12110 * toplev.c (rest_of_compilation): Set it.
12111 * print-tree.c (print_node): Adjust.
12112 * tree.c (stabilize_reference, build, build1): Don't set TREE_RAISES.
12113 (stabilize_reference_1, get_unwidened, get_narrower): Likewise.
12114 * calls.c (emit_call_1): Add 'nothrow' parm. Add
12115 REG_EH_REGION note as appropriate.
12116 (libfunc_nothrow): New fn.
12117 (emit_library_call, emit_library_call_value): Use it.
12118 (expand_call): Check TREE_NOTHROW.
12120 * varasm.c (make_decl_rtl): Skip initial '*' when setting
12121 DECL_ASSEMBLER_NAME.
12123 2000-03-09 Andreas Jaeger <aj@suse.de>
12125 * mips/linux.h (NO_IMPLICIT_EXTERN_C): Define.
12126 (TARGET_MEM_FUNCTIONS): Define.
12128 2000-03-09 Jason Merrill <jason@casey.cygnus.com>
12130 * i386.c (ix86_valid_type_attribute_p): Use compare_tree_int.
12132 * except.c (can_throw): See through a SEQUENCE.
12133 (nothrow_function_p): New fn.
12134 * except.h: Declare it.
12135 * function.c (current_function_nothrow): New var.
12136 (prepare_function_start): Initialize it.
12137 * output.h: Declare it.
12138 * toplev.c (rest_of_compilation): Set it.
12139 * dwarf2out.c (dwarf2out_begin_prologue): Use it.
12141 2000-03-09 Zack Weinberg <zack@wolery.cumb.org>
12143 * cpphash.c (collect_formal_parameters): strncmp returns 0 for
12144 match. (cpp_compare_defs): Count the nul separator when
12145 advancing over argument names.
12147 2000-03-09 Bernd Schmidt <bernds@cygnus.co.uk>
12149 * recog.c (preprocess_constraints): Matching constraints affect
12150 same alternative/different operand, not same operand/different
12153 * reload1.c (eliminate_regs_in_insn): Handle additions of eliminable
12154 register and a constant specially.
12156 2000-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12158 * libgcc2.h: New file.
12159 * libgcc2.c: Move macros, typedefs and prototypes to libgcc2.h.
12161 Wed Mar 8 16:19:42 2000 Jim Wilson <wilson@cygnus.com>
12163 * configure.in (ia64*-*-elf*, ia64*-*-linux*): New.
12164 * configure: Regenerate.
12165 * config/ia64: New.
12167 2000-03-08 Zack Weinberg <zack@wolery.cumb.org>
12169 * Makefile.in (LIBCPP_DEPS): New macro.
12170 (cpplib.o, cpphash.o, cpperror.o, cppexp.o, cppfiles.o): Use
12171 it to declare deps.
12172 * cpperror.c: Include cpphash.h.
12173 * cppexp.c: Include cpphash.h. Remove MULTIBYTE_CHARS
12175 (lex): Don't use CPP_WARN_UNDEF.
12176 (_cpp_parse_expr): Return an int, the truth value.
12177 * cppfiles.c: Include cpphash.h.
12178 (_cpp_merge_include_chains): Move to cppinit.c and make static.
12179 * cppinit.c (include_defaults_array): Disentangle.
12180 (cpp_cleanup): Don't free the if stack here.
12181 (cpp_finish): Pop off all buffers, not just one.
12182 * cpplib.c (eval_if_expr): Return int.
12183 (do_xifdef): Rename do_ifdef.
12184 (handle_directive): Don't use CPP_PREPROCESSED.
12185 (cpp_get_token): Don't use CPP_C89.
12186 * fix-header.c: Don't use CPP_OPTIONS.
12188 * cpplib.h: Move U_CHAR, enum node_type, struct
12189 file_name_list, struct ihash, is_idchar, is_idstart,
12190 is_numchar, is_numstart, is_hspace, is_space, CPP_BUF_PEEK,
12191 CPP_BUF_GET, CPP_FORWARD, CPP_PUTS, CPP_PUTS_Q, CPP_PUTC,
12192 CPP_PUTC_Q, CPP_NUL_TERMINATE, CPP_NUL_TERMINATE_Q,
12193 CPP_BUMP_BUFFER_LINE, CPP_BUMP_LINE, CPP_PREV_BUFFER,
12194 CPP_PRINT_DEPS, CPP_TRADITIONAL, CPP_PEDANTIC, and prototypes
12195 of _cpp_simplify_pathname, _cpp_find_include_file,
12196 _cpp_read_include_file, and _cpp_parse_expr to cpphash.h.
12197 Move struct if_stack to cpplib.c. Move struct cpp_pending to
12199 Change all uses of U_CHAR to be unsigned char instead.
12200 Delete CPP_WARN_UNDEF, CPP_C89, and CPP_PREPROCESSED.
12202 2000-03-08 Jason Merrill <jason@casey.cygnus.com>
12204 * dwarf2out.c (dw_fde_struct): Add 'nothrow'.
12205 (dwarf2out_begin_prologue): Set it.
12206 (output_call_frame_info): Don't emit EH unwind info for leaves.
12208 * flow.c (count_basic_blocks, find_basic_blocks_1): A rethrow
12209 can occur outside of an EH region.
12210 * except.c: Correct comments about rethrow behavior.
12211 (rethrow_symbol_map): Do nothing if !flag_new_exceptions.
12213 2000-03-08 Andrew MacLeod <amacleod@cygnus.com>
12215 * flow.c (make_edges): Always call make_eh_edge for calls.
12217 2000-03-08 Zack Weinberg <zack@wolery.cumb.org>
12219 * cpplib.h (parse_underflow_t, CPP_NULL_BUFFER): Delete.
12220 (struct cpp_buffer): Remove fname and underflow fields.
12221 (struct cpp_reader): Remove get_token field.
12222 (struct include_hash): Rename to struct ihash. Add typedef to
12224 (struct if_stack): Remove fname field.
12225 (IF_STACK_FRAME): Rename to IF_STACK.
12227 * cpperror.c (print_containing_files): Trust that there are no
12228 macro buffers below the top file buffer.
12229 * cppfiles.c: Replace all references to 'struct include_hash'
12230 with 'IHASH'. Rename initialize_input_buffer to
12231 init_input_buffer. Don't set or reference cpp_buffer->fname,
12232 use buffer->ihash->name instead.
12233 * cpphash.c (special_symbol): Use cpp_file_buffer. Use NULL
12234 not CPP_NULL_BUFFER.
12235 * cppinit.c: Use NULL not CPP_NULL_BUFFER, IF_STACK not
12236 IF_STACK_FRAME, IHASH not struct include_hash.
12237 * cpplib.c: Rename eval_if_expression to eval_if_expr. Remove
12238 null_underflow. Use IF_STACK not IF_STACK_FRAME, IHASH not
12239 struct include_hash, NULL not CPP_NULL_BUFFER. Remove all
12240 references to cpp_buffer->fname (delete entirely, or use
12241 ->ihash->name instead) and IF_STACK->fname.
12242 (cpp_push_buffer): Don't set new->underflow.
12243 (do_include): Use cpp_file_buffer.
12245 * cpphash.c (collect_formal_parameters): Remove duplicate
12246 increment of argslen. Pedwarn in C99 mode if __VA_ARGS__ is
12247 used as a macro argument name. Don't append "..." to namebuf
12248 for varargs macros. After we're done scanning, go through
12249 namebuf and make it NUL separated, not comma separated.
12250 (_cpp_compare_defs): Remove register tag from variables.
12251 Expect defn->argnames to be NUL separated.
12252 (_cpp_dump_definition): Expect defn->argnames to be NUL
12253 separated and in forward order.
12254 * cpphash.h: Update documentation of argnames field.
12256 2000-03-08 Richard Henderson <rth@cygnus.com>
12258 * builtins.c (expand_builtin_strlen): Be prepared for strlensi
12259 to fail. Don't pre-expand the source operand.
12261 * i386.md (strlensi): Initialize eoschar and align before use.
12263 2000-03-08 Jason Merrill <jason@casey.cygnus.com>
12265 * expr.c (expand_expr, case ARRAY_REF): Still check for missing
12266 CONSTRUCTOR element.
12268 2000-03-08 Gavin Romig-Koch <gavin@cetus.cygnus.com>
12270 * mips.c (mips_expand_prologue): If the last
12271 named argument is the vararg marker "va_list", treat it as
12272 an unnamed argument.
12274 2000-03-08 Clinton Popetz <cpopetz@cygnus.com>
12276 * dbxout.c (dbxout_parms): When correcting for promoted
12277 big-endian parameters, use the mode of the DECL_RTL rather
12278 than UNITS_PER_WORD.
12280 2000-03-08 Nathan Sidwell <nathan@codesourcery.com>
12282 * c-common.h (make_fname_decl): Declare.
12283 * c-common.c (make_fname_decl): Define.
12284 (declare_hidden_char_array): Remove.
12285 (declare_function_name): Use make_fname_decl.
12286 * c-decl.c (c_make_fname_decl): New function.
12287 (init_decl_processing): Set make_fname_decl.
12289 Tue Mar 7 23:50:31 2000 Jeffrey A Law (law@cygnus.com)
12291 * cccp.c (handle_directive): Initialize backslash_newlines_p.
12293 2000-03-07 Philipp Thomas <pthomas@suse.de>
12295 * po/POTFILES.in: Remove cppalloc.c from file list.
12297 2000-03-07 Steve Chamberlain <sac@pobox.com>
12299 * pj.c (pj_expand_prologue): current_function->args_info is
12300 now current_function_args_info.
12302 * pj.h (STORE_FLAG_VALUE, USER_LABEL_PREFIX,
12303 LOCAL_LABEL_PREFIX, ASM_GENERATE_INTERNAL_LABEL,
12304 ASM_OUTPUT_INTERNAL_LABEL, ASM_OUTPUT_SKIP): Define.
12306 2000-03-08 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
12308 * config/c4x/c4x.h (PUT_SDB_TYPE): Define so that the type info is
12309 output as hexadecimal rather than the default octal.
12311 2000-03-07 Zack Weinberg <zack@wolery.cumb.org>
12313 * cpphash.c (special_symbol): Fix thinko in previous commit.
12315 2000-03-07 Neil Booth <NeilB@earthling.net>
12317 * cppexp.c (struct operation, left_shift, right_shift,
12318 cpp_parse_expr): Change some "char"s to "U_CHAR"s, and some
12319 "int"s to "unsigned int"s.
12320 * cpplib.c (detect_if_not_defined, do_assert, do_unassert):
12322 * cpplib.h: Update for above.
12323 * mkdeps.c (deps_init, deps_calc_target): Cast pointers
12324 returned from allocations.
12326 * cppinit.c (opt_comp, parse_options): New functions.
12327 (handle_option): Use parse_option to parse a single command
12328 line option, that possibly takes an argument.
12329 (cpp_handle_options): Sort the array of command line options on
12330 first invocation (non-ASCII hosts only).
12331 (print_help): Update.
12333 2000-03-07 Zack Weinberg <zack@wolery.cumb.org>
12335 * mkdeps.c (munge): Fix off-by-one bug and inconsistencies in
12336 backslash counting loops. Problem noted by Matt Kraai <kraai@ghs.com>.
12338 * cppfiles.c (_cpp_find_include_file): Make sure ih->name is
12340 * cppinit.c (cpp_cleanup): Free imp->nshort also.
12342 * cpperror.c (cpp_print_containing_files,
12343 cpp_print_file_and_line, v_cpp_message): Rename to
12344 print_containing_files, print_file_and_line, and v_message.
12345 * cppexp.c (cpp_parse_expr, cpp_parse_escape, cpp_lex): Rename
12346 to _cpp_parse_expr, parse_escape, and lex.
12347 (parse_charconst): Remove broken multibyte support.
12348 * cppfiles.c (include_hash): Make static.
12349 (cpp_included): New function.
12350 (merge_include_chains, find_include_file, finclude,
12351 simplify_pathname): Rename to _cpp_merge_include_chains,
12352 _cpp_find_include_file, _cpp_read_include_file, and
12353 _cpp_simplify_pathname.
12354 * cpphash.c (cpp_lookup, free_definition, delete_macro,
12355 cpp_install, create_definition, macroexpand, compare_defs,
12356 dump_definition): Rename to _cpp_lookup, _cpp_free_definition,
12357 _cpp_delete_macro, _cpp_install, _cpp_create_definition,
12358 _cpp_macroexpand, _cpp_compare_defs, and _cpp_dump_definition.
12359 * cppinit.c (cpp_handle_option): Rename to handle_option, make
12361 * cpplib.c: Remove extern prototype of cpp_parse_expr.
12363 * cpphash.h: Update prototypes.
12364 * cpplib.h: Likewise. Prototype _cpp_parse_expr here.
12366 2000-03-07 Andrew Haley <aph@cygnus.com>
12368 * config/mips/mips.h (PTRDIFF_TYPE): Revert broken change;
12369 PTRDIFF_TYPE should be based solely on Pmode.
12370 (SIZE_TYPE): ditto.
12372 2000-03-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12374 * rtl.h (rtunion_def): Constify member `rtstr'.
12375 (emit_line_note_after, emit_line_note, emit_line_note_force,
12376 emit_note, decode_asm_operands): Constify.
12378 * cse.c (canon_hash): Likewise.
12380 * dbxout.c (dbxout_block): Likewise.
12382 * diagnostic.c (file_and_line_for_asm, v_error_for_asm,
12383 v_warning_for_asm): Likewise.
12385 * dwarfout.c (function_start_label): Likewise.
12387 * emit-rtl.c (emit_line_note_after, emit_line_note, emit_note,
12388 emit_line_note_force): Likewise.
12390 * final.c (last_filename, asm_insn_count, final_scan_insn,
12391 output_source_line): Likewise.
12393 * function.h (struct emit_status): Likewise.
12395 * gcse.c (hash_expr_1): Likewise.
12397 * genattr.c (gen_attr, main): Likewise.
12399 * genattrtab.c (struct function_unit, current_alternative_string,
12400 write_attr_valueq, n_comma_elts, next_comma_elt, attr_eq,
12401 attr_numeral, check_attr_test, check_attr_value,
12402 convert_set_attr_alternative, convert_set_attr,
12403 compute_alternative_mask, simplify_by_exploding, gen_attr,
12404 gen_unit): Likewise.
12406 * genflags.c (gen_insn): Likewise.
12408 * gengenrtl.c (type_from_format): Likewise.
12410 * genopinit.c (gen_insn): Likewise.
12412 * genoutput.c (n_occurrences, process_template, process_template):
12415 * ggc-page.c (ggc_set_mark, ggc_mark_if_gcable, ggc_get_size):
12418 * ggc-simple.c (ggc_set_mark, ggc_mark_if_gcable, ggc_get_size):
12421 * ggc.h (ggc_mark_string, ggc_mark, ggc_mark_if_gcable,
12422 ggc_set_mark, ggc_get_size): Likewise.
12424 * objc/objc-act.c (build_module_descriptor, finish_objc): Likewise.
12426 * optabs.c (init_one_libfunc): Likewise.
12428 * output.h (assemble_start_function): Likewise.
12430 * recog.c (decode_asm_operands): Likewise.
12432 * toplev.c (rest_of_compilation): Likewise.
12434 * tree.h (emit_line_note_after, emit_line_note,
12435 emit_line_note_force): Likewise.
12437 * varasm.c (asm_output_bss, asm_output_aligned_bss,
12438 asm_emit_uninitialised, assemble_start_function,
12439 assemble_variable, const_hash, compare_constant_1,
12440 find_pool_constant, mark_constant_pool, assemble_alias): Likewise.
12442 * xcoffout.h (DBX_FINISH_SYMBOL): Likewise.
12444 * alpha/alpha.md (call_vms, call_value_vms): Likewise.
12446 * arm/aof.h (ASM_OUTPUT_ASCII): Likewise.
12448 * arm/aout.h (ASM_OUTPUT_ASCII): Likewise.
12450 * arm/arm-protos.h (output_ascii_pseudo_op, arm_dllexport_name_p,
12451 arm_dllimport_name_p): Likewise.
12453 * arm/arm.c (arm_encode_call_attribute, output_ascii_pseudo_op):
12456 * arm/arm.h (ASM_OUTPUT_MI_THUNK): Likewise.
12458 * arm/elf.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
12460 * arm/pe.c (arm_dllexport_name_p, arm_dllimport_name_p,
12461 arm_mark_dllexport, arm_mark_dllimport,
12462 arm_pe_encode_section_info): Likewise.
12464 * arm/telf.h (ASM_OUTPUT_DEF_FROM_DECLS,
12465 ASM_FINISH_DECLARE_OBJECT): Likewise.
12467 * arm/thumb.c (thumb_function_prologue): Likewise.
12469 * arm/thumb.h (ASM_OUTPUT_ASCII): Likewise.
12471 * avr/avr.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
12473 * clipper/clix.h (ASM_OUTPUT_ASCII): Likewise.
12475 * fx80/fx80.h (ASM_OUTPUT_ASCII): Likewise.
12477 * i386/cygwin.h (ASM_OUTPUT_SECTION_NAME): Likewise.
12479 * i386/freebsd.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
12481 * i386/i386-interix.h (ASM_OUTPUT_LIMITED_STRING,
12482 ASM_OUTPUT_ASCII, ASM_OUTPUT_SECTION_NAME): Likewise.
12484 * i386/i386-protos.h (asm_output_function_prefix): Likewise.
12486 * i386/i386.c (asm_output_function_prefix): Likewise.
12488 * i386/i386elf.h (ASM_OUTPUT_ASCII): Likewise.
12490 * i386/osfrose.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
12492 * i386/ptx4-i.h (ASM_OUTPUT_ASCII): Likewise.
12494 * i386/sco5.h (ASM_FINISH_DECLARE_OBJECT,
12495 ASM_OUTPUT_LIMITED_STRING, ASM_OUTPUT_ASCII,
12496 ASM_OUTPUT_SECTION_NAME): Likewise.
12498 * i386/sysv4.h (ASM_OUTPUT_ASCII): Likewise.
12500 * i860/paragon.h (ASM_OUTPUT_ASCII): Likewise.
12502 * i860/sysv3.h (ASM_OUTPUT_ASCII): Likewise.
12504 * m32r/m32r.c (m32r_encode_section_info): Likewise.
12506 * mcore-elf.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
12508 * mcore/mcore.c (mcore_encode_section_info): Likewise.
12510 * mips/elf.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
12512 * mips/elf64.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
12514 * mips/iris6.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
12516 * mips/mips.h (ASM_OUTPUT_IDENT): Likewise.
12518 * mips/mips.md (movdi, movsi): Likewise.
12520 * mips/netbsd.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
12522 * netbsd.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
12524 * openbsd.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
12526 * ptx4.h (ASM_FINISH_DECLARE_OBJECT, ASM_OUTPUT_LIMITED_STRING,
12527 ASM_OUTPUT_ASCII): Likewise.
12529 * rs6000/rs6000.c (rs6000_allocate_stack_space, output_epilog,
12530 output_mi_thunk, output_toc): Likewise.
12532 * rs6000/rs6000.md (movsi): Likewise.
12534 * rs6000/sysv4.h (ASM_OUTPUT_INT, ASM_OUTPUT_SECTION_NAME): Likewise.
12536 * tahoe/harris.h (ASM_OUTPUT_ASCII): Likewise.
12538 * v850/v850.c (print_operand, print_operand_address,
12539 v850_encode_data_area): Likewise.
12541 2000-03-07 Clinton Popetz <cpopetz@cygnus.com>
12543 * config/mips/mips.md (zero_extendsidi2): Always force operand
12544 one to memory for mips16.
12546 Mon Mar 6 15:22:29 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12548 * tree.h (INT_CST_LT, INT_CST_LT_UNSIGNED): Remove unneeded casts.
12549 (struct tree_int_cst): int_cst_low is now unsigned HOST_WIDE_INT.
12550 (attribute_hash_list, type_hash_canon): hashcode is now unsigned.
12551 (type_hash_lookup, type_hash_add, type_hash_list): Likewise.
12552 (min_precision): Result is unsigned.
12553 (add_double, neg_double, mul_double): Low word is unsigned.
12554 (lshift_double, rshift_double, lrotate_double): Likewise.
12555 (rrotate_double, div_and_round_double): Likewise.
12556 (tree_floor_log2, compare_tree_int): New functions.
12557 (preserve_rtl_expr_temps): New declaration.
12558 * c-common.c (declare_hidden_char_array): Use compare_tree_int.
12559 (decl_attributes): Use tree_log2 to find alignment.
12560 Check for TREE_INT_CST_HIGH for format args.
12561 (min_precision): Now unsigned.
12562 Use tree_floor_log2.
12563 (truthvalue_conversion): Delete long-disabled code.
12564 * c-decl.c (finish_struct): Clean up tests on field width.
12565 (finish_function): Use compare_tree_int.
12566 * c-pragma.c (handle_pragma_token): Use tree_log2 for alignment.
12567 * c-typeck.c (comptypes): Use tree_int_cst_equal.
12568 (default_conversion, digest_init): Use compare_tree_int.
12569 (build_binary_op): Use integer_all_onesp and compare_tree_int.
12570 Fix type errors in forming masks.
12571 * calls.c (initialize_argument_information): Use compare_tree_int.
12572 * dbxout.c (dbxout_type): Cast TREE_INT_CST_LOW to HOST_WIDE_INT.
12573 * except.c (expand_eh_region_start_tree): Use compare_tree_int.
12574 * expr.c (is_zeros_p, case INTEGER_CST): Use integer_zerop.
12575 (store_field): Use compare_tree_int.
12576 (expand_expr, case CONSTRUCTOR): Use TYPE_SIZE_UNIT.
12577 (expand_expr, case ARRAY_REF): Use compare_tree_int.
12578 (do_jump, case BIT_AND_EXPR): Use tree_floor_log2.
12579 (do_store_flag): Use compare_tree_int.
12580 * fold-const.c (encode, decode): Low part is always unsigned.
12581 (force_fit_type, add_double, neg_double, mul_double): Likewise.
12582 (lshift_double, rshift_double, lrotate_double): Likewise.
12583 (rrotate_double, div_and_round_double, int_const_binop): Likewise.
12584 (fold_convert): Use compare_tree_int.
12585 (operand_equal_p, case INTEGER_CST): Use tree_int_cst_equal.
12586 (invert_truthvalue, case INTEGER_CST): Likewise.
12587 (fold): Use compare_tree_int; add casts for unsigned TREE_INT_CST_LOW.
12588 * mkdeps.c (deps_dummy_targets): Make I unsigned.
12589 * rtl.h (add_double, neg_double, mul_double): Low words are unsigned.
12590 (lshift_double, rshift_double, lrotate_double, rrotate_double):
12592 * stmt.c (expand_decl): Use compare_tree_int and mode_for_size_tree.
12593 (expand_end_case): Use compare_tree_int.
12594 (estimate_case_costs): Cast TREE_INT_CST_LOW to HOST_WIDE_INT.
12595 * stor-layout.c (mode_for_size_tree): Use compare_tree_int.
12596 (layout_decl): Likewise.
12597 (layout_record, layout_union): Make sizes unsigned.
12598 (layout_type, case VOID_TYPE): TYPE_SIZE must be bitsizetype.
12599 (layout_type, case QUAL_UNION_TYPE): Use compare_tree_int.
12600 * tree.c (struct type_hash): hashcode is unsigned.
12601 (build_type_attribute_variant, type_hash_list): Likewise.
12602 (type_hash_lookup, type_hash_add, type_hash_canon): Likewise.
12603 (attribute_hash_list, build_array_type, build_method_type): Likewise.
12604 (build_complex_type): Likewise.
12605 (real_value_from_int_cst): Remove unneeded casts.
12606 (integer_all_onesp): Add casts.
12607 (tree_floor_log2, compare_tree_int): New functions.
12608 (build_index_type): Use tree_int_cst_sgn.
12609 * varasm.c (assemble_variable): Use compare_tree_int.
12611 2000-03-06 Jason Merrill <jason@casey.cygnus.com>
12613 * cpphash.c (collect_expansion): Also catch ## at start of macro.
12615 * varasm.c (make_decl_rtl): Don't add a number to members of
12617 (make_function_rtl): Likewise.
12619 2000-03-06 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
12621 * gcse.c (compute_can_copy): Adjust if/else blocks from rth's
12622 patch from 2000-01-28.
12624 2000-03-06 Clinton Popetz <cpopetz@cygnus.com>
12626 * config/sh/sh.c: (barrier_align): Handle a delay slot that is
12627 filled with an insn from the jump target.
12629 2000-03-07 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
12631 * config/c4x/c4x-protos.h (c4x_global_name): Constify char *.
12632 (c4x_external_ref): Likewise.
12633 * config/c4x/c4x.c (struct name_list): Likewise.
12635 1999-12-16 Ben Collins <bcollins@debian.org>
12637 * Makefile.in: Pass a new MULTILIB_EXCLUSIONS option as the sixth
12638 argument to genmultilib.
12639 * genmultilib: accept new MULTILIB_EXCLUSIONS option and output
12640 the contents into the multilib.h header.
12641 * gcc.c: Declare multilib_exclusions for the specs file.
12642 (set_multilib_dir): Use it.
12643 (print_multilib_info): Likewise.
12644 * t-linux64: Declare arguments for new MULTILIB_EXCLUSIONS option
12645 to pass to genmultilib.
12647 2000-03-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12649 * builtins.c (built_in_class_names, built_in_names): Constify a
12652 * gmon-sol2.c (monstartup, moncontrol): Cast ptrs to long, not
12654 (_mcleanup): Ensure value matches format specifier in sprintf.
12656 * cpphash.c (special_symbol): Don't needlessly cast away
12659 * cppinit.c (base_name): Delete unused prototype.
12661 * mkdeps.c (deps_init): Make definition K&R safe.
12663 * tree.h (built_in_class_names, built_in_names): Constify a
12666 2000-03-06 Jakub Jelinek <jakub@redhat.com>
12668 * config/sparc/sparc.c (eligible_for_epilogue_delay): Accept
12669 floating point instructions for epilogue delay.
12671 * config/sparc/sparc.h (ASM_ARCH64_SPEC): Pass -no-undeclared-regs
12672 to gas if it supports .register pseudo.
12674 * real.h (MAX_LONG_DOUBLE_TYPE_SIZE): Define to
12675 LONG_DOUBLE_TYPE_SIZE if not defined.
12676 Use MAX_LONG_DOUBLE_TYPE_SIZE instead of
12677 LONG_DOUBLE_TYPE_SIZE in preprocessor if clauses.
12678 * real.c: Likewise.
12679 * gengenrtl.c: Likewise.
12680 * print-rtl.c: Likewise.
12682 * config/sparc/sol2-sld-64.h (TARGET_DEFAULT): Set
12683 MASK_LONG_DOUBLE_128.
12684 * config/sparc/sol2.h (TARGET_DEFAULT): Likewise.
12685 * config/sparc/sp64-elf.h (TARGET_DEFAULT): Likewise.
12686 * config/sparc/linux64 (TARGET_DEFAULT): Likewise.
12687 (SUBTARGET_SWITCHES): Define.
12688 (CPP_ARCH32_SPEC): Define __LONG_DOUBLE_128__ if compiling
12689 with -mlong-double-128.
12690 (LONG_DOUBLE_TYPE_SIZE): Define depending on target_flags.
12691 (MAX_LONG_DOUBLE_TYPE_SIZE): Define.
12692 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define depending on CPP macros.
12693 (CC1_SPEC): Include -mlong-double-{64,128} as needed.
12694 * config/sparc/linux.h (SUBTARGET_SWITCHES): Define.
12695 (CPP_SUBTARGET_SPEC): Define __LONG_DOUBLE_128__ if compiling
12696 with -mlong-double-128.
12697 (LONG_DOUBLE_TYPE_SIZE): Define depending on target_flags.
12698 (MAX_LONG_DOUBLE_TYPE_SIZE): Define.
12699 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define depending on CPP macros.
12700 * config/sparc/sparc.h (MASK_LONG_DOUBLE_128,
12701 TARGET_LONG_DOUBLE_128): Define.
12702 * config/sparc/linux-aout.h (LONG_DOUBLE_TYPE_SIZE): Remove.
12703 * config/sparc/sparc.c (sparc_override_options): Disallow 64bit
12704 long double on TARGET_ARCH64.
12706 2000-03-06 Mark Mitchell <mark@codesourcery.com>
12708 * function.c (free_temps_for_rtl_expr): Don't free slots
12709 that have been pushed into a higher level.
12712 2000-03-05 Mark Mitchell <mark@codesourcery.com>
12714 2000-03-05 Mark Mitchell <mark@codesourcery.com>
12716 * basic-block.h (ALLOCA_REG_SET): Remove.
12717 (INITIALIZE_REG_SET): New macro.
12718 * flow.c (update_life_info): Use it.
12719 (calculate_global_regs_live): Likewise.
12720 (propagate_block): Likewise.
12721 * global.c (build_insn_chain): Likewise.
12722 * haifa-sched.c (schedule_region): Likewise.
12724 2000-03-05 Stephane Carrez <stcarrez@worldnet.fr>
12726 * dwarf2out.c (UNALIGNED_WORD_ASM_OP): Support 2 bytes pointer.
12727 (ASM_OUTPUT_DWARF_ADDR_CONST): Use UNALIGNED_WORD_ASM_OP.
12728 (DWARF_ARANGES_PAD_SIZE): New define.
12729 (output_aranges): Use it to pad the address range header.
12730 (DWARF_ROUND): Fix for non power of 2 rounding.
12732 2000-03-05 Jason Merrill <jason@casey.cygnus.com>
12734 * mkdeps.c (deps_calc_target): Remove incorrect 'const'.
12736 2000-03-05 Mark Mitchell <mark@codesourcery.com>
12738 * tree.def (RTL_EXPR): Update documentation.
12739 * tree.h (RTL_EXPR_HAS_NO_SCOPE): New macro.
12740 * expr.c (expand_expr): Handle RTL_EXPR_HAS_NO_SCOPE.
12741 * function.c (preserve_rtl_expr_temp): New function.
12742 (preserve_rtl_expr_temps): Likewise.
12743 (preserve_rtl_expr_result): Use it.
12746 2000-03-04 Mark Mitchell <mark@codesourcery.com>
12748 2000-03-04 Thomas Schuster <Thomas.Schuster@gmx.net>
12750 * regmove.c (copy_src_to_dest) Do not create src->dest move
12751 for unchanging destination.
12753 2000-03-04 Mark Mitchell <mark@codesourcery.com>
12755 * function.h (struct sequence_stack): Remove rtl_expr.
12756 (struct emit_staus): Likewise.
12757 (seq_rtl_expr): Remove.
12758 * tree.h (free_temps_for_rtl_expr): Don't declare.
12759 (start_sequence_for_rtl_expr): Likewise.
12760 * rtl.h (preserve_rtl_expr_result): Likewise.
12761 * emit-rtl.c (start_sequence): Don't set sequence_rtl_expr.
12762 (start_sequence_for_rtl_expr): Remove.
12763 (push_topmost_sequence): Don't save sequence_rtl_expr.
12764 (pop_topmost_sequence): Remove comment about not restoring it.
12765 (end_sequence): Don't set seq_rtl_expr.
12766 (init_emit): Don't initialize it.
12767 (mark_sequence_stack): Don't mark it.
12768 (mark_emit_status): Likewise.
12769 * except.c (protect_with_terminate): Use
12770 start_sequence_for_rtl_expr, not start_sequence.
12771 * expr.c (expand_expr, case RTL_EXPR): Don't call
12772 preserve_rtl_expr_result or free_temps_for_rtl_expr.
12773 * function.c (assign_stack_temp_for_type): Don't set rtl_expr.
12774 (preserve_rtl_expr_result): Remove.
12775 (free_temps_for_rtl_expr): Likewise.
12776 (pop_temp_slots): Likewise.
12777 (mark_temp_slot): Don't mark the rtl_expr.
12778 * stmt.c (expand_start_stmt_expr): Use start_sequence, not
12779 start_sequence_for_rtl_expr.
12781 2000-03-04 Zack Weinberg <zack@wolery.cumb.org>
12783 * mkdeps.c, mkdeps.h: New files.
12784 * po/POTFILES.in: Add them.
12785 * Makefile.in (LIBCPP_OBJS): Add mkdeps.o.
12786 (cpplib.o, cppinit.o): Depend on mkdeps.h.
12787 (mkdeps.o): New target.
12789 * cppfiles.c: Delete deps_output.
12790 * cppinit.c: Include mkdeps.h. Delete known_suffixes,
12791 OBJECT_SUFFIX, and base_name.
12792 (cpp_cleanup): Use deps_free. Free ihash->name when clearing
12794 (initialize_dependency_output): Use deps_init,
12795 deps_add_target, deps_calc_target, and deps_add_dep. Remove
12796 all the unnecessary string bashing.
12797 (cpp_finish): Use deps_write. Remove an unnecessary nesting
12799 * cpplib.c (do_include): Use deps_add_dep.
12800 * cpplib.h (struct cpp_reader): Replace deps_buffer,
12801 deps_allocated_size, deps_size, deps_column members with
12802 single pointer to a struct deps. Delete prototype of
12805 * cppinit.c: Fix thinko in previous patch.
12807 Sat Mar 4 11:32:30 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12809 * machmode.h (mode_for_size, smallest_mode_for_size): SIZE now signed.
12810 * stor-layout.c (mode_for_size, smallest_mode_for_size): Likewise.
12811 (mode_for_size_tree): New function.
12812 (layout_decl, layout_type): Call it and clean up BLKmode checks.
12813 * tree.h (mode_for_size_tree): New declaration.
12815 * toplev.c (debug_ignore_block): Mark arg BLOCK as possibly unused.
12817 2000-03-04 Jason Merrill <jason@casey.cygnus.com>
12819 * stmt.c (is_body_block): Move...
12820 * dwarfout.c, dwarf2out.c: ...from here.
12821 * tree.h: Declare it.
12822 * emit-rtl.c (remove_unncessary_notes): Don't remove the body block.
12823 * final.c (final_start_function): Do call remove_unnecessary_notes
12826 2000-03-03 Zack Weinberg <zack@wolery.cumb.org>
12828 * config/vax/xm-vms.h: Define OBJECT_SUFFIX and EXECUTABLE_SUFFIX.
12830 * cpplib.h (_dollar_ok): New macro.
12831 (is_idchar, is_idstart): Use it.
12832 (IStable): Rename to _cpp_IStable. Declare it const if
12833 gcc >=2.7 or C99. Delete all references to FAKE_CONST.
12834 (is_idchar, is_idstart, is_numchar, is_numstart, is_hspace,
12835 is_space): Update for renamed IStable.
12837 * cppinit.c: Delete all references to FAKE_CONST and CAT
12838 macros. Define init_IStable as empty macro if gcc >=2.7 or
12839 C99. Change TABLE() to ISTABLE and hardcode name of table.
12840 (cpp_start_read): Don't change the IStable based on
12843 * cpphash.c (unsafe_chars): Add pfile argument. All callers
12844 changed. Handle '$' for char1 correctly.
12845 * cpplib.c (cpp_get_token): Use is_numchar when parsing numbers.
12847 * cppexp.c (tokentab2): Make const.
12848 (cpp_lex): Make toktab const.
12849 * cppinit.c (include_defaults_array): Make const.
12850 (initialize_standard_includes): Make default_include const.
12852 2000-03-03 Jason Merrill <jason@casey.cygnus.com>
12854 * dwarf2out.c (dwarf2out_frame_debug): Add cast to silence warning.
12855 (dwarf2out_decl): Functions can now have DECL_IGNORED_P.
12856 (gen_decl_die): Likewise.
12857 * dwarfout.c (dwarfout_file_scope_decl): Likewise.
12858 (output_decl): Likewise.
12860 * varasm.c (make_function_rtl): If we change the name used in the
12861 rtl, update DECL_ASSEMBLER_NAME accordingly.
12862 (make_decl_rtl): Likewise.
12864 * toplev.c (rest_of_compilation): Tweak formatting.
12866 * toplev.c (rest_of_compilation): find_loop_tree_blocks before
12867 remove_unnecessary_notes.
12868 (debug_ignore_block): New fn.
12869 * toplev.h: Declare it.
12870 * emit-rtl.c (remove_unncessary_notes): Call it.
12871 * dwarf2out.c (dwarf2out_ignore_block): New fn.
12872 * dwarf2out.h: Declare it.
12873 * final.c (final_start_function): Don't call remove_unnecessary_notes
12874 if we did insn scheduling.
12876 2000-03-03 Zack Weinberg <zack@wolery.cumb.org>
12878 * cppinit.c (cpp_handle_option): Set opts->pedantic directly.
12879 * cpplib.h: Delete SET_CPP_PEDANTIC.
12881 Fri Mar 3 14:56:12 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12883 * expr.c (expand_expr, case COMPONENT_REF): Use bitfield case if
12884 result is a RECORD_TYPE.
12886 2000-03-03 Jonathan Larmour <jlarmour@cygnus.co.uk>
12888 * mips/elf.h (CTOR_LISTS_DEFINED_EXTERNALLY): Added.
12890 2000-03-03 Richard Henderson <rth@cygnus.com>
12892 * alpha.c (alpha_emit_set_const_1): Re-order cases to prefer
12893 addition over compliments over shifts.
12895 Fri Mar 3 12:49:28 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
12897 * reload1.c (reload_combine_note_use): Handle return register USEs.
12898 REG case: Handle multi-hard-register hard regs.
12900 Fri Mar 3 07:38:34 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12902 * md.texi: Document use of '*' in insn pattern name.
12904 2000-03-03 Jason Merrill <jason@casey.cygnus.com>
12906 * calls.c (special_function_p): operator new may not be malloc-like.
12908 * gcse.c (dump_hash_table): Really fix error in last change.
12910 2000-03-02 Denis Chertykov <denisc@overta.ru>
12912 * avr.c (print_operand): Use print_operand_address instead of
12914 * avr/libgcc.S: Cleanup code.
12916 2000-03-02 Richard Henderson <rth@cygnus.com>
12918 * alpha.c (alpha_emit_set_const_1): Also try c + small constant.
12920 2000-03-02 Mark Mitchell <mark@codesourcery.com>
12922 * tree.h (TYPE_ALIGN_UNIT): New macro.
12924 2000-03-02 Clinton Popetz <cpopetz@cygnus.com>
12926 * i386.c: (constant_call_address_operand): Reject CONST_INT.
12928 2000-03-02 Jason Merrill <jason@casey.cygnus.com>
12930 * cpplib.h (CPP_PEDANTIC): Only true if system_header_p is not set
12932 (SET_CPP_PEDANTIC): New macro.
12933 * cpplib.c (do_include): Don't bother checking system_header_p.
12934 (do_warning, do_ident, do_assert, do_unassert): Likewise.
12935 * cppinit.c (cpp_handle_option): Use SET_CPP_PEDANTIC.
12937 * function.h (struct expr_status): Add x_arg_space_so_far.
12938 (arg_space_so_far): New macro.
12939 * expr.c (init_expr): Initialize it.
12940 * calls.c (emit_call_1): Reset it.
12941 (compute_argument_block_size, expand_call): Use it.
12942 (expand_call, store_one_arg): Increment it.
12944 Thu Mar 2 17:27:13 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12946 * varasm.c (output_constant): Strip off a CONVERT_EXPR to
12949 2000-03-02 Zack Weinberg <zack@wolery.cumb.org>
12951 * cppfiles.c (cpp_read_file): New function.
12953 * cpphash.c (collect_expansion): Make sure to reset last_token
12954 to NORM when we hit a string. Handle trailing whitespace
12955 properly when the expansion is empty.
12956 (create_definition): Disable line commands while parsing the
12958 (dump_definition): If pfile->lineno == 0, output a line
12959 command ahead of the dump, and add a trailing newline.
12961 * cppinit.c (append_include_chain): Add fifth argument, which
12962 indicates whether or not system headers are C++ aware.
12963 (initialize_standard_includes): New function,
12964 broken out of read_and_prescan. Pass 'cxx_aware' value from
12965 the include_defaults_array on to append_include_chain.
12966 (dump_special_to_buffer): Const-ify char array.
12967 (builtin_array): Don't dump __BASE_FILE__.
12968 (cpp_start_read): Use cpp_read_file. Reorder code for
12969 clarity. Don't output line commands here for -D/-A/-U
12970 switches. Don't call deps_output for files included with
12971 -include or -imacros.
12973 * cpplib.c (do_define): Don't pay any attention to the second
12975 (cpp_expand_to_buffer): Disable line commands while scanning.
12976 (output_line_command): Work in the file buffer.
12977 * cpplib.h: Remove no_record_file flag from struct cpp_reader.
12978 Fix formatting of comments. Prototype cpp_read_file.
12980 Thu Mar 2 13:29:46 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12982 * c-common.c (c_common_nodes_and_builtins): Make sizetype_endlink
12983 reference the language-equivalent of sizetype.
12984 * c-typeck.c (comptypes): Treat sizetype like its language equivalent.
12985 * fold-const.c (size_binop, size_diffop): Put back checks.
12986 * gcse.c (dump_hash_table): Fix minor error in last change.
12987 * stor-layout.c (set_sizetype): Set TYPE_DOMAIN of sizetype.
12988 Clear TYPE_{NEXT,MAIN}_VARIANT and TYPE_{POINTER,REFERENCE}_to of
12991 Thu Mar 2 12:48:45 MET 2000 Jan Hubicka <jh@suse.cz>
12993 * calls.c (expand_call) Do not attempt to combine stack adjustments
12994 with inhibit_defer_pop set.
12996 2000-03-01 Mark Mitchell <mark@codesourcery.com>
12998 * stor-layout.c (layout_decl): Allow front-ends to explicitly set
12999 the DECL_SIZE for a FIELD_DECL.
13001 2000-03-01 Bruce Korb <bkorb@gnu.org>
13003 * fixinc/inclhack.tpl: remove unused symlinks
13004 * fixinc/README: GCC Maintainer info
13005 * fixinc/inclhack.sh: regen
13006 * fixinc/fixincl.sh: regen
13008 2000-03-01 Zack Weinberg <zack@wolery.cumb.org>
13010 * cpphash.c (collect_expansion): Trim trailing white space
13011 from macro definitions, but don't go past the last insertion
13014 Wed Mar 1 12:14:31 MET 2000 Jan Hubicka <jh@suse.cz>
13016 * i386.md (mulqi3): New pattern.
13018 2000-02-29 Zack Weinberg <zack@wolery.cumb.org>
13020 * cpplib.h (CPP_ASSERTION, CPP_STRINGIZE, CPP_TOKPASTE): New
13022 (struct cpp_reader): Add parsing_if_directive and
13023 parsing_define_directive flags.
13024 (struct cpp_options): Remove output_conditionals flag.
13025 (check_macro_name): Delete prototype.
13027 * cpphash.h (struct macrodef): Delete.
13028 (struct reflist): Separate from struct definition.
13029 (struct definition): Remove unused fields. Add column number.
13030 (create_definition): Returns a DEFINITION *. Takes a
13031 cpp_reader * and an int.
13033 * cpphash.c (SKIP_WHITE_SPACE): Delete.
13034 (PEEKC): Copy defn from cpplib.c.
13035 (rest_extension, REST_EXTENSION_LENGTH): Delete.
13037 (struct arglist): Simplify.
13038 (collect_expansion): Rewrite. Get tokens by calling
13039 cpp_get_token. Add more error checking.
13040 (collect_formal_parameters): New function, broken out of
13041 create_definition and reworked to use get_directive_token.
13042 (create_definition): All real work is now in collect_expansion
13043 and collect_formal_parameters. do_define handles finding the
13044 macro name. Return a DEFINITION, not a MACRODEF.
13045 (macroexpand): Replace bcopy with memcpy throughout. Replace
13046 character-at-a-time copy loop with memcpy and pointer increments.
13047 (compare-defs): d1->argnames / d2->argnames might be null.
13049 * cpplib.c (copy_rest_of_line): Delete function.
13050 (skip_rest_of_line): Do all the work ourselves.
13051 (skip_string): New function.
13052 (parse_string): Use skip_string.
13053 (get_macro_name): New function.
13054 (check_macro_name): Delete.
13055 (copy_comment): Use CPP_RESERVE and CPP_PUTC_Q.
13056 (cpp_skip_hspace): Use CPP_BUMP_LINE.
13057 (handle_directive): ICE if we're called on a macro buffer.
13058 (do_define): Determine macro name and type (funlike/objlike)
13059 here. Expunge all uses of MACRODEF.
13060 (cpp_push_buffer): Set line_base to NULL.
13061 (do_undef, read_line_number): Don't worry about getting a POP token.
13062 (eval_if_expression): Set/reset parsing_if_directive around
13063 cpp_parse_expr. Don't clear only_seen_white.
13064 (skip_if_group): Remove output_conditionals logic. Use
13066 (cpp_get_token): Return ASSERTION, STRINGIZE, and TOKPASTE
13067 tokens under appropriate conditions.
13068 (cpp_unassert): Call do_unassert not do_assert. Oops.
13070 * cppexp.c (parse_defined): New function, break out of
13072 (cpp_lex): We now get CPP_ASSERTION tokens and can check them
13073 ourselves, with cpp_defined.
13074 * cppinit.c (cpp_handle_option, print_help): Delete -ifoutput.
13076 * gcc.dg/20000209-2.c: Turn off -pedantic-errors.
13077 * gcc.dg/strpaste-2.c: New.
13079 2000-02-29 Mark Mitchell <mark@codesourcery.com>
13081 * fold-const.c (size_binop): Don't asert inputs are the same and
13082 have TYPE_IS_SIZETYPE set.
13083 (size_diffop): Likewise.
13085 2000-02-29 Jason Merrill <jason@casey.cygnus.com>
13087 * dwarfout.c (output_block): Output abstract blocks even if they
13088 don't have TREE_ASM_WRITTEN set.
13090 * calls.c (emit_library_call): Check for null REG.
13092 2000-03-01 Martin von Loewis <loewis@informatik.hu-berlin.de>
13094 * c-decl.c (current_function_decl): Move to toplev.c.
13095 (init_decl_processing): Don't add current_function_decl as a ggc
13097 * dbxout.c (dbxout_symbol): Change return type to int.
13098 (dbxout_symbol_location, dbxout_syms): Likewise.
13099 (dbxout_block): Don't emit LBRAC/RBRAC pairs for blocks without
13100 any locals. Use current_function_func_begin_label if set.
13101 * dbxout.h (dbxout_symbol, dbxout_syms): Change return type.
13102 * dwarf2out.c (dwarf2out_begin_prologue): Set
13103 current_function_func_begin_label.
13104 * final.c (final_start_function): Reset it.
13105 * toplev.c (current_function_decl): Define it here.
13106 (current_function_func_begin_label): New variable.
13107 (main): Add both as ggc roots.
13108 * tree.h (current_function_func_begin_label): Declare.
13110 Tue Feb 29 14:07:04 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13112 * gcse.c: Cleanups throughout: mostly white-space, but also
13113 some minor rearrangement of code.
13115 Tue Feb 29 10:45:59 2000 Jeffrey A Law (law@cygnus.com)
13117 * calls.c (emit_library_call): Do not abort if FUNCTION_ARG
13118 returns a PARALLEL. Use emit_group_load and use_group_regs
13120 (emit_library_call_value): Similarly.
13122 * pa/t-pa: Use quadlib.c instead of quadlib.asm.
13123 * pa/quadlib.asm: Remove.
13124 * pa/quadlib.c: New file.
13126 * configure.in (hpux10, hpux11, PA32 mode): Use i128 float format.
13127 * configure: Rebuilt.
13129 2000-02-29 Philip Blundell <pb@futuretv.com>
13131 * config/arm/conix-elf.h: New file.
13132 * configure.in (arm*-*-conix*): New configuration.
13133 * configure: Regenerate.
13135 2000-02-28 Jason Merrill <jason@casey.cygnus.com>
13137 * dwarf2out.c (gen_block_die): Output abstract blocks even if they
13138 don't have TREE_ASM_WRITTEN set.
13140 Mon Feb 28 21:07:59 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13142 * Eliminate DECL_FIELD_SIZE.
13143 * builtins.c (built_in_class_names, built_in_names): New variables.
13144 * c-decl.c (finish_struct): Set specified size in DECL_SIZE.
13145 * expr.c (expand_expr, case COMPONENT_REF): Get field size from
13146 DECL_SIZE, not DECL_FIELD_SIZE.
13147 * print-tree.c (print_node): Remove code that prints extra blank
13148 lines in some cases.
13149 Properly handle inline and builtin function cases.
13150 * stor-layout.c (layout_decl): Get specified size from DEC_SIZE.
13151 * tree.h (built_in_class_named, built_in_names): New declarations.
13152 (union tree_decl): Rename internal unions to u1 and u2 and change
13153 some of their components.
13154 Add new field built_in_class.
13155 (DECL_ALIGN, DECL_INCOMING_RTL, DECL_SAVED_INSNS, DECL_FRAME_SIZE):
13156 Reflect above changes.
13157 (DECL_FUNCTION_CODE, DECL_BUILT_IN_CLASS): Likewise.
13158 (DECL_SET_FUNCTION_CODE, DECL_FIELD_SIZE): Deleted.
13159 * objc/objc-act.c (objc_copy_list): Use DECL_SIZE, not DECL_FIELD_SIZE.
13160 (encode_field_decl): Likewise; also remove obsolete test for bitfield.
13162 2000-02-28 Dmitri Makarov <dim@windriver.com>
13164 * extend.texi: Document ARM's support for long/short calls.
13166 * invoke.texi: Document ARM's -mlong-calls command line switch.
13168 * config/arm/arm-protos.h (arm_is_longcall_p): Add prototype.
13169 (arm_encode_call_attribute): Add prototype.
13170 (arm_set_default_type_attribute): Add prototype.
13171 (arm_strip_name_encoding): Add prototype.
13173 * config/arm/arm.c (arm_init_cumulative_args): replace
13174 initialisation og 'long_calls' field with initialisation of
13175 'call_cookie' field.
13176 (enum arm_pragma_enum): New enum.
13177 (arm_pragma_long_calls): New static variable.
13178 (arm_process_pragma): Also process "#pragma long_calls_off".
13179 (arm_valid_type_attribute_p): Accept short_call attribute.
13180 (arm_comp_type_attributes): Check long/short call attributes.
13181 (arm_encode_call_attribute): New function: Encode long_call
13182 or short_call attribute in function name.
13183 (arm_set_default_type_attributes): New function: Assign
13184 default attributes to newly defined type.
13185 (current_file_function_operand): New function: Return true if
13186 the symbol is a function which has already been compiled.
13187 (arm_is_longcall_p): New function: Return true if the
13188 indicated function should be called via a long call.
13189 (arm_get_strip_length): New function. Returns number of
13190 prefix characters to be stripped from a function's name.
13191 (arm_strip_name_encoding): New function. Strip prefix characters
13192 from a function's name.
13194 * config/arm/arm.h (CUMULATIVE_ARGS): Replace 'long_call' field
13195 with 'call_cookie'.
13196 (SHORT_CALL_FAG_CHAR): Define.
13197 (LONG_CALL_FAG_CHAR): Define.
13198 (ENCODED_SHORT_CALL_ATTR_P): Define.
13199 (ENCODED_LONG_CALL_ATTR_P): Define.
13200 (ARM_NAME_ENCODING_LENGTHS): Define.
13201 (STRIP_NAME_ENCODING): Define.
13202 (ASM_OUTPUT_LABELREF): Define, and use to strip name encoding.
13203 (ARM_ENCODE_CALL_TYPE): Define.
13204 (ENCODE_SECTION): Invoke ARM_ENCODE_CALL_TYPE.
13205 (ARM_DECLARE_FUNCTION_SIZE): Define.
13206 (SET_DEFAULT_TYPE_ATTRIBUTES): Define.
13208 * config/arm/arm.md (call): Call arm_is_longcall_p to decide
13209 if a long call is needed.
13210 (call_value): Ditto.
13211 (call_symbol): Ditto.
13213 * config/arm/elf.h (ASM_DECLARE_FUNCTION_SIZE): Add invocation of
13214 ARM_DECLARE_FUNCTION_SIZE.
13216 * config/arm/pe.h (ARM_PE_FLAG_CHAR): Define.
13217 (SUBTARGET_NAME_ENCODING_LENGTHS): Define.
13218 (ARM_STRIP_NAME_ENCODING): Undefine.
13219 (STRIP_NAME_ENCODING): Undefine.
13220 (ASM_OUTPUT_LABELREF): Use arm_strip_name_encoding.
13221 (ASM_DECLARE_FUNCTION_NAME): Ditto.
13222 (ASM_OUTPUT_COMMON): Ditto.
13223 (ASM_DECLARE_OBJECT_NAME): Ditto.
13225 * config/arm/pe.c (arm_dllexport_name_p): Check for
13227 (arm_dllimport_name_p): Ditto.
13228 (arm_mark_dllexport): Use ARM_PE_FLAG_CHAR.
13229 (arm_mark_dllimport): Ditto.
13231 Mon Feb 28 22:11:12 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
13233 * sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Define.
13235 2000-02-28 Mark Mitchell <mark@codesourcery.com>
13237 * xcoffout.c (xcoffout_begin_function): Fix typo in previous change.
13239 2000-02-28 Zack Weinberg <zack@wolery.cumb.org>
13241 * tm.texi: Document new target switch, NO_BUILTIN_WCHAR_TYPE.
13242 * cppinit.c (builtin_array): Define __WCHAR_TYPE__ only if
13243 NO_BUILTIN_WCHAR_TYPE is not defined.
13244 (CPP_WCHAR_TYPE): Delete.
13245 * cccp.c (main): Don't change wchar_type if cplusplus.
13246 (special_symbol, initialize_builtins): Honor NO_BUILTIN_WCHAR_TYPE.
13248 2000-02-28 Nick Clifton <nickc@cygnus.com>
13250 * config/arm/arm-wince-pe.h (SIZE_TYPE): Define to "unsigned long".
13252 Mon Feb 28 14:21:15 2000 Catherine Moore <clm@cygnus.com>
13254 * config/pa/som.h (MAKE_DECL_ONE_ONLY): Define.
13255 (ASM_WEAKEN_LABEL): Define.
13257 Mon Feb 28 13:07:19 MET 2000 Jan Hubicka <jh@suse.cz>
13259 * expr.c (store_constructor): Do not emit USE.
13260 * rtl.h (stupid_life_analysis): Remove.
13262 Mon Feb 28 07:03:27 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13264 * function.c (number_blocks): Reset next_block_index based on
13265 what debugging format is used, not what is defined.
13267 * lcm.c: Minor reformatting throughout.
13268 (reg_dies, reg_becomes_live): Properly handle multiple hard regs.
13270 * toplev.c (rest_of_compilation): Account for time in
13271 optimize_mode_switching.
13273 * jump.c (jump_optimize_1): Don't call delete_barrier_successors
13274 if only marking labels.
13276 Mon Feb 28 12:53:57 MET 2000 Jan Hubicka <jh@suse.cz>
13278 * calls.c (expand_call): Attempt to combine stack adjustments with
13279 pending stack adjustments.
13281 Mon Feb 28 11:34:43 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
13283 * loop.c (reg_in_basic_block_p): Don't abort when falling through
13284 to the end of the function.
13286 2000-02-27 Mark Mitchell <mark@codesourcery.com>
13288 * emit-rtl.c (remove_unncessary_notes): Remove notes for empty
13290 * final.c (next_block_index): Remove.
13291 (max_block_depth): Likewise.
13292 (pending_blocks): Likewise.
13293 (init_final): Don't initialize them.
13294 (final_start_function): Don't set next_block_index. Set up
13296 (final_scan_insn): Use BLOCK_NUMBER, not next_block_index.
13297 * function.h (number_blocks): New function.
13298 * function.c (get_block_vector): New function.
13299 (identify_blocks): Use it.
13300 (reorder_blocks): Set NOTE_BLOCK.
13301 (number_blocks): New function.
13302 * tree.def (BLOCK): Add documentation for TREE_ASM_WRITTEN flag.
13303 * tree.h (BLOCK_NUMBER): New macro.
13304 (tree_block): Add block_num field.
13305 * dbxout.c (next_block_number): Remove.
13306 (dbxout_init): Don't set it.
13307 (dbxout_block): Only output blocks that have TREE_ASM_WRITTEN
13308 set. Use BLOCK_NUMBER, rather than next_block_num, to determine
13310 * toplev.c (rest_of_compilation): Always call
13311 find_loop_tree_blocks. Fix indentation.
13312 * dwarf2out.c (next_block_number): Remove.
13313 (gen_lexical_block_die): Use BLOCK_NUMBER, not next_block_number,
13314 to determine block numbers.
13315 (gen_inlined_subroutine_die): Likewise.
13316 (gen_block_die): Only output blocks that have TREE_ASM_WRITTEN set.
13317 (decls_for_scope): Don't increment next_block_number.
13318 * dwarfout.c (next_block_number): Remove.
13319 (output_lexical_block_die): Use BLOCK_NUMBER, not next_block_number,
13320 to determine block numbers.
13321 (output_inlined_subroutine_die): Likewise.
13322 (output_block): Only output blocks that have TREE_ASM_WRITTEN set.
13323 (output_decls_for_scope): Don't increment next_block_number.
13324 * sdbout.c (next_block_number): Remove.
13325 (sdbout_block): Use BLOCK_NUMBER.
13326 (sdbout_begin_block): Simplify.
13327 * xcoffout.c (next_block_number): Remove.
13328 (xcoffout_block): Use BLOCK_NUMBER, not next_block_number.
13329 (xcoffout_begin_block): Don't set next_block_number.
13330 (xcoffout_begin_function): Likewise. Use BLOCK_NUMBER, not
13333 Sun Feb 27 16:40:33 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13335 * builtins.c (c_strlen): Use size_diffop and return ssizetype value.
13336 (expand_builtin_strcpy): Pass correct type to size_binop.
13337 (expand_builtin_strcmp): Likewise.
13338 Clean up conditional structure.
13339 * c-decl.c (init_decl_processing): Don't call set_sizetype twice.
13340 (complete_array_type): Don't use size_binop for MAXINDEX.
13341 * c-typeck.c (c_sizeof): Use size_one_node and TYPE_SIZE_UNIT.
13342 (c_sizeof_nowarn, c_size_in_bytes): Likewise.
13343 (c_alignof): Use size_one_node.
13344 (build_unary_op): Pass arg of proper type to size_binop.
13345 (really_start_incremental_init, push_init_level): Use sizetype for
13346 constructor{,_bit,_unfilled}_index.
13347 (pop_init_label, output_init_element): Likewise.
13348 (output_pending_init_elements, process_init_element): Likewise.
13349 * calls.c (compute_argument_block_size): Field VAR is ssizetype.
13350 * expr.c (store_expr): Use size_int.
13351 (store_constructor): Use proper types for size_binop args.
13352 (get_inner_reference, expand_expr, case ARRAY_REF): Likewise.
13353 (expand_expr_unaligned): Likewise.
13354 (string_contant): Return object of sizetype.
13355 * expr.h (SUB_PARM_SIZE): Call size_diffop and pass proper types.
13356 (ARGS_SIZE_RTX): Call ARGS_SIZE_TREE.
13357 (ARGS_SIZE_TREE): Pass proper types to size_binop.
13358 * fold-const.c (int_const_binop): Refine when size_int is called.
13359 (fold_convert): Likewise.
13360 (size_int_wide): Rework to take KIND as arg, only take low order
13361 bits, handle new sizetype_tab datatype, and chain entries in
13363 (size_int_type_wide): New function.
13364 (size_binop): Validate types of arguments.
13365 (ssize_binop): Deleted.
13366 (size_diffop): New function.
13367 (extract_muldiv): Only fold division into multiplication for sizetypes.
13368 * function.c (assign_parms): Use size_diffop and make sure
13369 VAR field is of ssizetype; also pass proper type to size_binop.
13370 (locate_and_pad_parm, pad_to_arg_alignment): Likewise.
13371 (round_down): Deleted from here.
13372 * store-layout.c (sizetype_tab): Now an array.
13373 (sizetype_set, early_root_list): New variables.
13374 (variable_size): Use size_one_node.
13375 (round_up): Pass proper type to size_binop.
13376 (round_down): Moved to here and corrected as above.
13377 (layout_record): Pass proper arg types to size_binop.
13378 (layout_type): Likewise.
13379 If sizetype_set is zero, record the type just laid out.
13380 (make_unsigned_type): Don't call set_sizetype;
13381 (make_signed_type): Likewise; also, call fixup_signed_type.
13382 (initialize_sizetypes): New function.
13383 (set_sizetype): Make copy of types, set TYPE_IS_SIZETYPE, and
13384 set name of bitsizetype to "bit_size_type".
13385 Fix up type of sizes of all types made before call.
13386 * tm.texi (ROUND_TYPE_SIZE_UNIT): New macro.
13387 * tree.c (fix_sizetype): Deleted.
13388 (build_common_tree_nodes): Call initialize_sizetypes.
13389 (build_common_tree_nodes_2): Don't call fix_sizetype.
13390 * tree.h (TYPE_IS_SIZETYPE): New macro.
13391 (initialize_sizetype): New declaration.
13392 (enum size_type_kind): New type.
13393 (struct sizetype_tab): Deleted.
13394 (sizetype_tab): Now array; adjust sizetype macros.
13395 (size_diffop, size_int_type_wide): New functions.
13396 (size_int_wide): Change number of args and type; access macros changed.
13397 (ssize_int, sbitsize_int): New macros.
13398 * config/i960/i960.h (ROUND_TYPE_SIZE): Use size_int.
13399 (ROUND_TYPE_SIZE_UNIT): New macro.
13401 2000-02-27 Zack Weinberg <zack@wolery.cumb.org>
13403 * c-lex.c (putback_buffer): Make 'buffer' an unsigned char *.
13405 Sun Feb 27 07:44:17 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13407 * gcov-io.h (__fetch_long, __store_long, __read_long, __write_long):
13408 Mark as possibly unused.
13410 * cse.c (cse_insn): Delete dead code involving tablejump.
13411 Pass CODE_LABEL, not LABEL_REF to gen_jump and reset INSN_CODE.
13413 * Makefile.in (libcpp.a): Start by deleting it.
13415 2000-02-27 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
13417 * cpplib.h (enum file_change_code): Added rename_file.
13418 * cpplib.c (do_line): If a filename is given, set file_change to
13420 (output_line_command): If file_change is rename_file, always
13421 output a # directive with the file name.
13423 * cpplib.c (do_pragma): Accept #pragma without consecutive token.
13425 2000-02-26 Mark Mitchell <mark@codesourcery.com>
13427 * integrate.c (copy_decl_for_inlining): Preserve TREE_ADDRESSABLE
13428 when copying a PARM_DECL or RESULT_DECL.
13430 2000-02-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13432 * fix-header.c (recognized_function): Also fix prototypes for
13433 functions taking "void".
13435 2000-02-26 Geoff Keating <geoffk@cygnus.com>
13437 * reload1.c (do_output_reload): Check reg_reloaded_valid before
13438 looking at reg_reloaded_contents.
13440 2000-02-26 Zack Weinberg <zack@wolery.cumb.org>
13442 * Makefile.in (STMP_FIXINC): New toggle.
13443 (LIBGCC2_DEPS): Delete all references.
13444 (stmp-headers): Delete target. All references either deleted
13445 or changed to stmp-int-headers.
13446 (all.cross): Don't depend on stmp-headers or STMP_FIXPROTO.
13447 (LIBCPP_OBJS): Take out cppalloc.o.
13448 (cppalloc.o): Delete target.
13449 (stmp-int-hdrs): Depend on $(STMP_FIXINC).
13450 (gen-protos, fix-header): Link with libiberty.a.
13451 * build-make: Don't change FIXINCLUDES. Override STMP_FIXINC
13454 * configure.in: Remove refs to strerror.
13455 * acconfig.h: Take out NEED_DECLARATION_STRERROR.
13456 * system.h: Take out strerror stanza.
13458 * cpperror.c (my_strerror): Delete function.
13459 (cpp_error_from_errno, cpp_notice_from_errno): Use xstrerror.
13460 * cppmain.c (main): Call xmalloc_set_program_name first thing.
13461 * cppalloc.c: Delete file.
13462 * gen-protos.c: Don't provide xrealloc.
13464 * fixinc/fixincl.c, fixinc/fixlib.c, fixinc/procopen.c: Use
13465 xstrerror throughout.
13467 2000-02-26 Bruce Korb <bkorb@gnu.org>
13469 * fixinc/inclhack.def (undefine_null): the bypass pattern needs to
13470 match for DOS headers, too.
13471 * fixinc/inclhack.sh,fixincl.x: Regenerate.
13473 2000-02-26 Geoff Keating <geoffk@cygnus.com>
13475 * config/elfos.h (ASM_OUTPUT_LABELREF): Don't define. The default
13476 is right for most ELF targets.
13477 * config/ns32k/ns32k.h (ASM_OUTPUT_LABELREF): Don't define.
13478 Let the default file use %U properly.
13479 * config/sh/elf.h (ASM_OUTPUT_LABELREF): Don't define. Use the
13482 * config/fp-bit.c (pack_d): Properly handle rounding of denormal
13485 Sat Feb 26 09:39:16 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13487 * toplev.c (documented_lang_options): Correct spelling error.
13488 (decode_d_option, decode_f_option, main): Likewise.
13490 * toplev.c (print_time): Avoid SIGFPE when all_time is zero.
13492 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): Use .set at
13493 to tell assembler it is permitted to expand large constants.
13495 2000-02-25 Mumit Khan <khan@xraylith.wisc.edu>
13497 * protoize.c: (AUX_INFO_SUFFIX): New macro.
13498 (aux_info_suffix): Use.
13499 (SAVE_SUFFIX): New macro.
13500 (save_suffix): Use.
13501 (munge_compile_parms): Fix typo in NUL. DJGPP supports /dev/null.
13502 (gen_aux_info_file): Use aux_info_suffix instead of ".X".
13503 (edit_file): Handle 8.3 restriction for DOS/DJGPP filenames.
13505 * invoke.texi (Running Protoize): Update documentation.
13507 2000-02-25 Mark Elbrecht <snowball3@bigfoot.com>
13509 * i386/djgpp.h (CPP_PREDEFINES): Remove Unix defines.
13511 2000-02-25 John Wehle (john@feith.com)
13513 * rtlanal.c (find_last_value): Allow NULL_RTX for valid_to.
13515 2000-02-25 Anthony Green <green@cygnus.com>
13517 * toplev.c (rest_of_compilation): Rebuild jump labels if
13518 combine_instructions has created a new direct jump.
13519 * combine.c (try_combine): Add new_direct_jump_p argument. Set it
13521 (combine_instructions): Call try_combine with new argument.
13522 Return non-null value when new direct jump instruction is created.
13523 * rtl.h: combine_instructions returns an int.
13525 Fri Feb 25 19:49:08 2000 Jeffrey A Law (law@cygnus.com)
13527 * cse.c (cse_insn): Replace the PATTERN of the insn with an new
13528 jump when changing a computed jump into a jump to a known
13531 Fri Feb 25 19:22:44 2000 Graham Stott <grahams@rcp.co.uk>
13533 * resource.c (mark_referenced_resources): Changed use SET_DEST (...)
13534 to XEXP (..., 0) on RTL nodes which are not SET or CLOBBER.
13536 * i386.md (define_expand "clrstrsi"): Fix typo.
13538 Fri Feb 25 18:49:39 2000 "K. Richard Pixley" <rich@microunity.com>
13540 * rtl.texi: Fix typo.
13542 Fri Feb 25 20:02:35 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
13544 * sh.c (calc_live_regs): Multiply value assigned to *COUNT_PTR by
13545 UNITS_PER_WORD. Change caller initial_elimination_offset.
13546 (rounded_frame_size): Take into account that argument pushed has
13547 changed. Fix TARGET_ALIGN_DOUBLE problem.
13549 2000-02-25 Geoff Keating <geoffk@cygnus.com>
13551 * haifa-sched.c (schedule_block): Explain the real reason
13552 we delete REG_SAVE_NOTEs on the first insn of a block.
13553 Don't delete REG_SAVE_NOTES for NOTE_INSN_SETJMP.
13555 2000-02-24 Mark Mitchell <mark@codesourcery.com>
13557 * input.h (push_srcloc): New function.
13558 (pop_srcloc): Likewise.
13559 * toplev.c (push_srcloc): Define it.
13560 (pop_srcloc): Likewise.
13562 2000-02-24 Richard Henderson <rth@cygnus.com>
13564 * flow.c (life_analysis): When collecting reg info, clear
13567 Thu Feb 24 22:06:52 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
13569 Fix bug exposed by reload.c no longer rounding the frame
13570 size to BIGGEST_ALIGNMENT:
13571 * sh.c (rounded_frame_size): New function.
13572 (sh_expand_prologue, sh_expand_epilogue): Use it.
13573 (initial_elimination_offset): Likewise.
13575 Thu Feb 24 20:04:11 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
13577 Fix breakage from 6th Feb thread_prologue_and_epilogue_insns change:
13578 * sh-protos.h (sh_need_epilogue): Declare.
13579 * sh.c (sh_need_epilogue_known): New static variable.
13580 (sh_need_epilogue): New function.
13581 (function_epilogue): Clear need_epilogue_known.
13582 * sh.md (return): Split into expander / insn pattern.
13583 Make the expander conditional on ! sh_need_epilogue ().
13585 2000-02-24 Nathan Sidwell <nathan@codesourcery.com>
13587 * machmode.h (get_mode_alignment): Declare.
13588 (GET_MODE_ALIGNMENT): Call it.
13589 * stor-layout.c (get_mode_alignment): New function. Make
13590 sure alignment is always power of 2.
13592 2000-02-23 Zack Weinberg <zack@wolery.cumb.org>
13594 * i386.h: Remove useless definition of "I386" and misleading
13597 2000-02-23 Zack Weinberg <zack@wolery.cumb.org>
13599 * tree.h (TREE_SET_PERMANENT): New macro. Document conditions
13600 under which TREE_PERMANENT will be set.
13601 * tree.c (make_node, copy_node, make_tree_vec, tree_cons,
13602 build1): Use TREE_SET_PERMANENT.
13603 * print-tree.c (print_node): Don't report value of
13604 TREE_PERMANENT if ggc_p is true.
13606 * c-common.c (c_get_alias_set): Don't use TREE_PERMANENT to
13607 decide whether to give a type a new alias set.
13608 * objc/objc-act.c (build_objc_string_object): Never copy the string.
13609 * tree.c (make_node): Set DECL_IN_SYSTEM_HEADER irrespective
13610 of value of 'obstack'.
13613 2000-02-24 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
13615 * config/c4x/c4x.c (c4x_process_after_reload): Split all insns.
13617 2000-02-23 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
13619 * cpplib.h (enum cpp_token): Added CPP_WCHAR and CPP_WSTRING.
13620 * cpplib.c (cpp_get_token): Produce them.
13621 * cppexp.c (cpp_lex): Handle them.
13623 2000-02-23 Nick Clifton <nickc@cygnus.com>
13625 * config/arm/arm.c (arm_comp_type_attributes): Simply and
13626 comment tests on type attributes.
13628 Wed Feb 23 16:42:21 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
13630 * final.c (shorten_branches): Make value passed to LOOP_ALIGN
13631 conform to documentation.
13632 * sh.h (LOOP_ALIGN): If aligning loops, call sh_loop_align
13633 to check for special cases.
13634 * sh-protos.h (sh_loop_align): Declare.
13635 * sh.c (sh_loop_align): Define.
13637 2000-02-22 Andrew Haley <aph@cygnus.com>
13639 * config/mips/mips.h (GAS_ASM_SPEC): Pass -mgp32/-mgp64 to gas.
13640 (SIZE_TYPE): Is 32 bits when using -mgp32.
13641 (PTRDIFF_TYPE): Ditto.
13643 Wed Feb 23 07:26:27 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13645 * diagnostic.c (init_output_buffer): Handle case of null PREFIX.
13647 2000-02-23 Zack Weinberg <zack@wolery.cumb.org>
13649 * config/i386/i386.h: If IN_TARGET_LIBS is defined, make
13650 BIGGEST_FIELD_ALIGNMENT a constant.
13652 2000-02-21 Jason Merrill <jason@casey.cygnus.com>
13654 * dwarf2out.c (output_line_info): Put the marker for the end of
13655 the line number info at the actual end.
13656 (gen_struct_or_union_type_die): Use decl_function_context
13657 to check for local classes.
13658 * dwarfout.c (output_type): Likewise.
13660 Tue Feb 22 01:38:57 2000 Jeffrey A Law (law@cygnus.com)
13662 * pa.h (FUNCTION_ARG_PASS_BY_REFERENCE): Handle pass-by-reference
13663 for arguments with a mode, but no type.
13664 (FUNCTION_ARG_CALLEE_COPIES): Similarly.
13665 * t-pa (LIB2FUNCS_EXTRA): Add quadlib.asm.
13666 * pa/long_double.h: New file.
13667 * configure.in (hpux10, hpux11 configurations): hpux10 and hpux11
13668 both have 128bit wide long doubles.
13669 * configure: Rebuilt.
13671 2000-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13673 * defaults.h (ASM_OUTPUT_ASCII): Constify a char*.
13675 * flow.c (get_common_dest, chain_reorder_blocks, make_reorder_chain,
13676 fixup_reorder_chain, skip_insns_between_block): Add static prototypes.
13677 (life_analysis): Wrap variable `i' with macro ELIMINABLE_REGS.
13679 * haifa-sched.c (rank_for_schedule): Don't cast away const-ness.
13681 * integrate.c (compare_blocks, find_block): Likewise.
13683 * rtl.c (fatal_with_file_and_line): Add ATTRIBUTE_PRINTF_2.
13685 * rtl.h (set_file_and_line_for_stmt): Constify a char*.
13687 * stmt.c (stmt_status, set_file_and_line_for_stmt,
13688 expand_asm_operands): Likewise.
13690 Mon Feb 21 17:06:27 2000 Jason Eckhardt <jle@cygnus.com>
13692 * predict.c (estimate_probability): Added the pointer heuristic to
13693 the collection of static branch predictors.
13695 2000-02-21 Catherine Moore <clm@cygnus.com>
13697 * config/mips/mips.h (ASM_SPEC): Add -mfix700.
13698 * invoke.texi (-mfix7000): Document.
13700 2000-02-21 Gabriel Dos Reis <gdr@codesourcery.com>
13702 * diagnostic.c (init_output_buffer): Make it possible to output at
13703 least 32 characters if we're given a too long prefix.
13705 2000-02-20 Mark Mitchell <mark@codesourcery.com>
13707 * varasm.c (initializer_constant_valid_p): Call
13708 lang_expand_constant to simplify the constant.
13710 2000-02-20 Bruce Korb <bkorb@gnu.org>
13712 * fixinc/inclhack.def(stdio_va_list):
13713 typedef needs to be disabled.
13714 * fixinc/inclhack.sh: regen
13715 * fixinc/fixincl.x: regen
13717 2000-02-20 Geoff Keating <geoffk@cygnus.com>
13719 * print-rtl.c (print_rtx): Don't print addresses when
13720 flag_dump_unnumbered.
13722 2000-02-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13724 * sparc.c (sparc_output_scratch_registers): Mark parameter with
13726 (sparc_va_arg, sparc_flat_output_function_prologue,
13727 sparc_flat_output_function_epilogue): Cast value to unsigned in
13729 (sparc_emit_float_lib_cmp): Remove unused variable `cmp'.
13731 * sparc.md: Add default case in switch.
13733 2000-02-19 Richard Henderson <rth@cygnus.com>
13735 * c-typeck.c (add_pending_init): Don't abort for multiple
13736 fields at the same offset.
13737 (pending_init_member): Test the correct member.
13739 2000-02-19 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
13741 * except.c (start_dynamic_handler) : Use TYPE_MODE (integer_type_node)
13743 (start_catch_handler) : Same.
13745 2000-02-19 Brad Lucier (lucier@math.purdue.edu)
13747 * Makefile.in: Have flow.o depend on $(EXPR_H)
13749 Sat Feb 19 18:43:13 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13751 * c-common.c (decl_attributes): Set DECL_SIZE_UNIT.
13752 * c-decl.c (duplicate_decls, finish_enum): Likewise.
13753 (finish_decl): Remove -Wlarger-than code from here.
13754 * flags.h (id_clash_len): Now int.
13755 (larger_than_size): Now HOST_WIDE_INT.
13756 * fold-const.c (size_int_wide): No more HIGH parm; NUMBER is signed.
13757 Clean up checking to see if in table.
13758 (make_bit_field_ref): Remove extra parm to bitsize_int.
13759 * ggc-common.c (ggc_mark_tree_children): Mark DECL_SIZE_UNIT.
13760 * print-tree.c (print_node): Print DECL_SIZE_UNIT and TYPE_SIZE_UNIT.
13761 * stmt.c (expand_decl): Use DECL_SIZE_UNIT for stack checking size
13762 and for computing size of decl.
13763 * stor-layout.c (layout_decl): Set DECL_SIZE_UNIT.
13764 Move -Wlarger-than code to here.
13765 (layout_record): Remove extra arg to bitsize_int.
13766 Set TYPE_BINFO_SIZE_UNIT.
13767 (layout_union): Remove extra arg to bitsize_int.
13768 Use proper type for size of QUAL_UNION.
13769 (layout_type): Remove extra arg to bitsize_int.
13770 * toplev.c (id_clash_len): Now int.
13771 (larger_than_size): Now HOST_WIDE_INT.
13772 (decode_W_option): Clean up id-clash and larger-than- cases.
13773 * tree.c (get_identifier, maybe_get_identifier): Remove unneeded casts.
13774 (expr_align, case FUNCTION_DECL): DECL_ALIGN is not defined.
13775 * tree.h (BINFO_SIZE_UNIT, TYPE_BINFO_SIZE_UNIT, DECL_SIZE_UNIT): New.
13776 (struct tree_decl): New field size_unit.
13777 (size_int_wide): No HIGH operand; NUMBER is now signed.
13778 (size_int_2): Deleted.
13779 (size_int, bitsize_int): Don't use it and rework args.
13780 * varasm.c (assemble_variable, output_constructor): Use DECL_SIZE_UNIT.
13782 Fri Feb 18 20:01:58 2000 Jeffrey A Law (law@cygnus.com)
13784 * pa/quadlib.asm (_U_QFgt, _U_Qfge): Fix flags for _U_Qfcmp call.
13786 2000-02-18 Geoff Keating <geoffk@cygnus.com>
13788 * invoke.texi (Warning Options): Add an explanation of why
13789 you might want the -Wfloat-equal flag.
13791 Fri Feb 18 20:08:57 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13793 * bitmap.c (bitmap_operation): Avoid using -1 for index since unsigned.
13794 * cppinit.c (new_pending_define): Add cast to avoid warning.
13795 * expmed.c (extract_bit_field): Likewise.
13796 * flow.c (enum reorder_skip_type): New type.
13797 (skip_insns_between_blcok): New it.
13798 Rework to avoid warning about possibly undefined variable.
13799 * function.c (assign_parms): Make thisparm_boundary unsigned.
13800 * genrecog.c (write_switch): Cast XWINT result to int.
13801 * lcm.c: Many static fcns and vars now #ifdef OPTIMIZE_MODE_SWITCHING.
13802 * mips-tfile.c (init_file): Make two versions of FDR intializer:
13803 one for MIPS and one for Alpha.
13804 (get_tag, copy_object): Add casts to avoid warnings.
13805 * optabs.c (init_one_libfunc): Cast NAME to (char *).
13806 * reload.c (find_reloads): Make TYPE enum reload_type.
13807 * sbitmap.c (dump_sbitmap): J is unsigned; don't use "1L".
13808 * unroll.c (unroll_loop): Initialize UNROLL_NUMBER.
13809 * varasm.c (compare_constant_1): Add cast to avoid warning.
13810 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Cast FUNC
13812 (alpha_expand_unaligned_load, alpha_expand_unaligned_store):
13813 Cast switch operand of size to int.
13814 (alpha_expand_epilogue): Always initialize fp_offset and sa_reg.
13815 * config/alpha/alpha.h (INITIAL_ELIMINATION_OFFSET): Add abort
13818 2000-02-18 Nick Clifton <nickc@cygnus.com>
13820 * config/arm/elf.h (ASM_OUTPUT_ALIGN): Do not generate
13821 anything for an alignment of zero.
13823 * config/arm/thumb.h (ASM_OUTPUT_ALIGN): Do not generate
13824 anything for an alignment of zero.
13826 2000-02-18 Martin von Loewis <loewis@informatik.hu-berlin.de>
13828 * gcc.texi (Bug Reporting): Refer to bugs.html.
13829 (Bug Lists): Likewise.
13830 * system.h (GCCBUGURL): New preprocessor define.
13831 * rtl.c (fancy_abort): Use it.
13832 * gcc.c (main): Likewise.
13834 2000-02-18 Richard Henderson <rth@cygnus.com>
13836 * flow.c (INSN_VOLATILE, SET_INSN_VOLATILE, uid_volatile): Remove.
13837 (life_analysis_1): Subsume into ...
13838 (life_analysis): ... here. Force PROP_REG_INFO off after reload.
13839 Use update_life_info for the relaxation.
13840 (update_life_info): Update REG_BASIC_BLOCK for registers live on
13841 entry and regs_live_at_setjmp.
13842 (set_noop_p): Simplify.
13843 (notice_stack_pointer_modification_1): Renamed from s/_1//.
13844 (record_volatile_insns): Split into ...
13845 (delete_noop_moves): ... here,
13846 (notice_stack_pointer_modification): ... here,
13847 (insn_dead_p): ... and here.
13848 (propagate_block): Don't query INSN_VOLATILE.
13849 (mark_used_regs): Mind !PROP_REG_INFO.
13850 * toplev.c (rest_of_compilation): Call mark_constant_function here,
13851 not in life_analysis.
13853 Fri Feb 18 01:29:22 EST 2000 John Wehle (john@feith.com)
13855 * loop.c (canonicalize_condition): New function,
13856 broken out of get_condition.
13857 (get_condition): Use it.
13858 * expr.h (canonicalize_condition): Prototype it.
13860 * tree.h (tree_int_cst_msb): Declare.
13861 * tree.c (tree_int_cst_msb): New function.
13863 2000-02-17 Mark Mitchell <mark@codesourcery.com>
13865 * stmt.c (set_file_and_line_for_stmt): Don't crash if cfun->stmt
13868 * invoke.texi (-fmessage-length=n): Document.
13870 2000-02-17 Jason Merrill <jason@casey.cygnus.com>
13872 * bitmap.c (bitmap_operation): Don't leak bitmap elements.
13874 2000-02-17 Mark Mitchell <mark@codesourcery.com>
13876 * function.c (thread_prologue_and_epilogue_insns): Put a line note
13877 after the prologue.
13879 2000-02-17 Nick Clifton <nickc@cygnus.com>
13881 * config/arm/thumb.c: Replace includes of system headers with
13882 #include "system.h".
13884 2000-02-16 Richard Henderson <rth@cygnus.com>
13886 * configure.in (alpha-linux*, alpha-netbsd) [extra_parts]:
13887 Add crtbeginS.o and crtendS.o.
13888 * alpha/elf.h (STARTFILE_SPEC): Use crtbeginS.o.
13889 (ENDFILE_SPEC): Use crtendS.o.
13890 * alpha/t-crtbe (crtbeginS.o, crtendS.o): New targets.
13892 * alpha/crtbegin.asm (__do_frame_takedown): Merge into ...
13893 (__do_global_dtors_aux): ... here. Call __cxa_finalize if
13894 shared and present.
13895 (__dso_handle): New variable.
13896 * alpha/crtend.asm (__do_global_ctors_aux): Remove runtime
13897 bias to __CTOR_END__.
13899 2000-02-16 Richard Henderson <rth@cygnus.com>
13901 * Makefile.in (s-crtS, crtbeginS, crtendS): Prefix usage with $(T).
13903 Wed Feb 16 21:40:04 2000 Hans-Peter Nilsson <hp@bitrange.com>
13905 * longlong.h (__clz_tab): Declare as static to match definition.
13907 2000-02-16 Mark Elbrecht <snowball3@bigfoot.com>
13909 * i386/xm-djgpp.h (LIBSTDCXX): Delete. Moved to config/i386/djgpp.h.
13910 (XREF_FILE_NAME): Define.
13912 * i386/djgpp.h (DATA_SECTION_ASM_OP): Define.
13913 (EH_FRAME_SECTION_ASM_OP): Define.
13914 (IDENT_ASM_OP): Define.
13915 (TEXT_SECTION_ASM_OP): Define.
13916 (CPP_SPEC): Define.
13917 (CTORS_SECTION_ASM_OP): Define.
13918 (CTOR_SECTION_FUNCTION): Use it.
13919 (DTORS_SECTION_ASM_OP): Define.
13920 (DTOR_SECTION_FUNCTION): Use it.
13922 2000-02-16 Zack Weinberg <zack@wolery.cumb.org>
13924 * reg-stack.c (emit_swap_insn): Do not put a new insn before a
13927 * flow.c (dump_regset, debug_regset, dump_bb, debug_bb,
13928 debug_bb_n): New functions.
13929 (dump_flow_info, print_rtl_with_bb): Use dump_regset.
13930 * basic-block.h: Prototype new functions.
13932 Wed Feb 16 21:07:53 2000 Denis Chertykov <denisc@overta.ru>
13934 * configure.in: Add support for avr target.
13935 * configure: Rebuilt.
13937 * invoke.texi: Add AVR invocation docs.
13938 * install.texi: Add information about AVR.
13939 * md.texi: Add AVR constraint letters description.
13940 * extend.texi: Add description for AVR specific attributes.
13942 2000-02-16 Jason Merrill <jason@casey.cygnus.com>
13944 * fixinc/fixinc.svr4: Wrap byteorder.h with extern "C".
13946 2000-02-16 Nick Clifton <nickc@cygnus.com>
13948 * emit-rtl.c (emit_insn): Move RTL check into make_insn_raw.
13949 (make_insn_raw): Move RTL check here.
13951 2000-02-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13953 * version.c: Include gansidecl.h and version.h.
13955 * version.h: Wrap entire file in macro __GCC_VERSION_H__.
13957 * configure.in (gcc_version): When setting, narrow search to
13958 lines containing `version_string'.
13960 * Makefile.in (mainversion): Likewise.
13961 (GCC_H): New variable.
13962 (gcc.h): Delete target.
13963 (gcc.o, gccspec.o, cppspec.o): Depend on $(GCC_H), not gcc.h.
13964 (version.o): Depend on version.h.
13965 (dbxout.o): Don't depend on gcc.h.
13967 Wed Feb 16 15:04:49 2000 Hans-Peter Nilsson <hp@bitrange.com>
13968 Michael Meissner <meissner@cygnus.com>
13970 * md.texi (Simple Constraints): Add item about whitespace.
13971 * genoutput.c (strip_whitespace): New.
13972 (scan_operands) [MATCH_OPERAND, MATCH_SCRATCH]: Call
13973 strip_whitespace for constraints.
13974 Test pointer using NULL, not 0.
13976 2000-02-16 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
13978 * cpplib.c (do_line): Pedwarn for #line > 32767.
13980 * c-lex.c (readescape): Warn about '\x', but do not reject it.
13982 2000-02-15 Jonathan Larmour <jlarmour@redhat.co.uk>
13984 * gcc.c (default_compilers): Add new __GNUC_PATCHLEVEL__ define
13985 to default cpp spec.
13986 (do_spec_1): Add support for %v3 spec used by __GNUC_PATCHLEVEL__.
13987 * cpp.texi: Document __GNUC_PATCHLEVEL__.
13990 * objc/lang-specs.h: Add new __GNUC_PATCHLEVEL__ define to
13993 2000-02-15 Denis Chertykov <denisc@overta.ru>
13995 * configure.in: Add support for avr target.
13997 Wed Feb 16 03:21:43 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
13999 * sh.h (OVERRIDE_OPTIONS): Don't set sh_addr_diff_vec_mode.
14000 (sh_addr_diff_vec_mode): Don't declare.
14001 * sh.c (sh_addr_diff_vec_mode): Delete.
14003 Wed Feb 16 01:27:52 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
14005 * sh.md (mulsi3_highpart): Add REG_EQUAL note to last insn.
14007 Wed Feb 16 00:58:06 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
14009 * sh.md (udivsi3_i1, divsi3_i1, umulhisi3_i, mulhisi3_i): Name.
14010 (smulsi3_highpart_i): Name.
14011 (udivsi3): Wrap emitted insns in REG_LIBCALL / REG_RETVAL notes.
14012 (divsi3, mulhisi3, umulhisi3, mulsidi3, umulsidi3): Likewise.
14013 (smulsi3_highpart, umulsi3_highpart): Likewise.
14015 (mulsidi3_i, umulsidi3_i): Make rtl describe operation
14016 correctly independent of endianness.
14017 (mulsidi3, umulsidi3): Now define_insn. Hide details that
14018 confuse the optimizers.
14019 (mulsidi3+1, umulsidi3+1): New define_split.
14021 Tue Feb 15 23:22:26 2000 Andrew Haley <aph@cygnus.com>
14023 * config/sh/sh.md: Guard insn splits against illegal registers.
14024 * config/sh/sh.h: Correct comment about macros.
14026 Tue Feb 15 22:30:36 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
14027 Andrew MacLeod <amacleod@cygnus.com>
14029 * Makefile.in (lcm.o): Depend on insn-attr.h.
14030 * basic-block.h (optimize_mode_switching): Declare.
14031 * lcm.c (tm_p.h, insn-attr.h): #include.
14032 (seginfo, bb_info): New structs.
14033 (antic, transp, comp, delete, insert) : New file-scope static variables.
14034 (new_seginfo, add_seginfo, make_preds_opaque, reg_dies): New functions.
14035 (reg_becomes_live, optimize_mode_switching): Likewise.
14036 * tm.texi: Add description of mode switching macros.
14037 * toplev.c (rest_of_compilation): Call optimize_mode_switching.
14039 * sh-protos.h (remove_dead_before_cse): Remove prototype.
14040 (fldi_ok, fpscr_set_from_mem): New prototypes.
14041 * sh.h (OPTIMIZATION_OPTION): Remove sh_flag_remove_dead_before_cse set.
14042 (CONST_DOUBLE_OK_FOR_LETTER_P, SECONDARY_INPUT_RELOAD_CLASS):
14043 Disable fldi for (TARGET_SH4 && ! TARGET_FMOVD).
14044 (sh_flag_remove_dead_before_cse): Remove declaration.
14045 (NUM_MODES_FOR_MODE_SWITCHING, OPTIMIZE_MODE_SWITCHING): New macros.
14046 (MODE_USES_IN_EXIT_BLOCK, MODE_NEEDED, MODE_AT_ENTRY): Likewise.
14047 (MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
14048 * sh.c (broken_move): Disable fldi for (TARGET_SH4 && ! TARGET_FMOVD).
14049 (barrier_align): Allow for JUMP_INSNS containing a parallel.
14050 (machine_dependent_reorg): Remove sh_flag_remove_dead_before_cse set.
14051 (fldi_ok): New function.
14052 (get_fpscr_rtx): Add fpscr_rtx as GC root.
14053 (emit_sf_insn): Only generate fpu switches when optimize < 1.
14054 (emit_df_insn): Likewise.
14055 (expand_fp_branch, emit_fpscr_use, remove_dead_before_cse): Delete.
14056 (sh_flag_remove_dead_before_cse): Delete.
14057 (get_free_reg, fpscr_set_from_mem): New functions.
14058 * sh.md (movdf, movsf): Remove no_new_pseudos code.
14059 (return): Remove emit_fpscr_use / remove_dead_before_cse calls.
14061 2000-02-15 Loren Rittle <ljrittle@acm.org>
14063 * ginclude/stddef.h: Correct usage of _BSD_RUNE_T_ for FreeBSD.
14065 2000-02-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14067 * Makefile.in (TREE_H, collect2.o, gcc.h, mips-tfile.o, cccp.o,
14068 cpphash.o, cppinit.o, protoize.o, unprotoize.o): Depend on version.h.
14070 * cccp.c: Include version.h and/or don't declare `version_string'.
14071 * collect2.c: Likewise.
14072 * alpha.c: Likewise.
14073 * arm/aof.h: Likewise.
14074 * arm/coff.h: Likewise.
14075 * arm/elf.h: Likewise.
14076 * arm/pe.h: Likewise.
14077 * arm/tcoff.h: Likewise.
14078 * arm/telf.h: Likewise.
14079 * arm/tpe.h: Likewise.
14080 * arm/vxarm.h: Likewise.
14081 * convex/convex.c: Likewise.
14082 * i386/dgux.c: Likewise.
14083 * i386/sun386.h: Likewise.
14084 * m88k/m88k.c: Likewise.
14085 * mcore/mcore-pe.h: Likewise.
14086 * mips/mips.h: Likewise.
14087 * romp/romp.h: Likewise.
14088 * sh/sh.c: Likewise.
14089 * cpphash.c: Likewise.
14090 * cppinit.c: Likewise.
14091 * dwarf2out.c: Likewise.
14092 * dwarfout.c: Likewise.
14095 * mips-tfile.c: Likewise.
14096 * protoize.c: Likewise.
14097 * toplev.c: Likewise.
14098 * tree.h: Likewise.
14100 * version.c (version_string): Constify a char*.
14102 * version.h: New file.
14104 2000-02-14 Nick Clifton <nickc@cygnus.com>
14106 * configure.in: Add mcore-elf and mcore-pe targets.
14107 * configure: Regenerate.
14109 * NEWS: Add note that MCore port has been contributed.
14111 * invoke.texi: Document command line switches for MCore port.
14112 * install.texi: Add MCore to list of supported targets.
14114 2000-02-14 Geoff Keating <geoffk@cygnus.com>
14116 * collect2.c (main) [COLLECT_EXPORT_LIST]: If we have frames,
14117 then we will need to import the frame handling functions.
14118 (scan_prog_file) [COLLECT_EXPORT_LIST]: We will also need
14119 to import the frames themselves.
14121 Mon Feb 14 13:31:01 2000 Stan Cox <scox@cygnus.com>
14122 Jason Eckhardt <jle@cygnus.com>
14124 * basic_block.h: Added prototype for reorder_basic_blocks.
14125 * toplev.c: Changes to add -freorder-blocks and graph dump after
14126 block reordering is done.
14127 * flow.c (reorder_block_def): New structure for use during block
14129 (REORDER_BLOCK_*): New macros to access members of above structure.
14130 (skip_insns_between_block, get_common_dest, chain_reorder_blocks,
14131 make_reorder_chain, fixup_reorder_chain, reorder_basic_blocks): New
14132 functions for block reordering.
14134 Mon Feb 14 11:24:44 2000 Hans-Peter Nilsson <hp@bitrange.com>
14136 * gcc.texi (Passes): Fix typo.
14137 * md.texi (Standard Names): Ditto.
14138 * tm.texi (Storage Layout): Ditto.
14140 2000-02-13 Zack Weinberg <zack@wolery.cumb.org>
14142 * cpplib.c (do_define): Only free the old definition if it
14145 2000-02-13 Neil Booth <NeilB@earthling.net>
14147 * cppfiles.c (read_and_prescan): When emitting deferred
14148 newlines, test speccase[] again instead of checking each
14149 possible whitespace character in turn. When we encounter \r,
14150 look behind for \n first, then ahead.
14152 2000-02-13 Zack Weinberg <zack@wolery.cumb.org>
14154 * cse.c (cse_altered): New internal flag.
14155 (cse_insn): Set it if we changed an insn.
14156 (cse_main): Clear cse_altered before each basic block.
14157 Only garbage collect if cse_altered is true afterward.
14159 Sun Feb 13 14:12:28 2000 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
14161 * sparc/sol2.h (LIB_SPEC): Link -ldl if profiling.
14163 Sun Feb 13 13:21:55 2000 Jeffrey A Law (law@cygnus.com)
14165 * combine.c (simplify_comparison): Fix typo.
14167 Sun Feb 13 12:57:52 2000 Neil Booth <NeilB@earthling.net>
14169 * prefix.c (concat, lookup_key): Use xmalloc and xrealloc
14172 2000-02-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14174 * flow.c (flow_loop_tree_node_add): Use better algorithm by passing
14175 previously inserted node instead of root node. Caller changed.
14177 2000-02-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14179 * basic-block.h (FLOW_LOOP_FIRST_BLOCK, FLOW_LOOP_LAST_BLOCK): Delete.
14181 2000-02-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14183 * crtstuff.c (__do_global_ctors_aux, __reg_frame_ctor,
14184 __dereg_frame_dtor): Add prototype argument.
14186 * gthr-dce.h (__gthread_active_p, __gthread_once): Likewise.
14188 * gthr-posix.h (__gthread_active_p, __gthread_once): Likewise.
14190 * gthr-solaris.h (__gthread_active_p, __gthread_once): Likewise.
14192 * gthr-vxworks.h (__gthread_once): Likewise.
14194 * gthr-win32.h (__gthread_active_p, __gthread_once): Likewise.
14196 Sat Feb 12 01:44:26 MET 2000 Jan Hubicka <jh@suse.cz>
14198 * i386.c (ix86_emit_restore_regs_using_mov): Break out from ...
14199 (ix86_expand_epilogue): ... here. Use mov instead of add to restore
14200 stack pointer in functions w/o saved registers, output LEAVE more often
14201 on TARGET_USE_LEAVE machines.
14203 2000-02-07 Dmitri Makarov <dim@wrs.com> & Bernd Schmidt <bernds@redhat.com>
14205 * config/arm/arm.c (arm_init_cumulative_args); New function:
14206 Initlaise the CUMULATIE_ARGS strcuture for a function
14208 (arm_function_arg): New function: Determine where to place a
14209 function's argument. Also handles deciding the function's
14211 (current_file_function_operand): New function: Return true if
14212 the symbol is a function which has already been compiled.
14213 (arm_is_long_call_p): New function: Return true if the
14214 indicated function should be called via a long call.
14215 (arm_valid_type_attribute_p): New function: Return true if the
14216 attribute is a valid, arm specific, attribute.
14217 (arm_comp_type_attribute): New function: Return true if the
14218 two types have compatable, arm specific, attributes.
14220 * config/arm/arm.h (CUMULATIVE_ARGS): Redefine to be a
14222 (FUNCTION_ARG): Redefine to call arm_function_arg.
14223 (FUNCTION_ARG_PARTIAL_NREGS): Redefine to use correct
14225 (INIT_CUMULATIVE_ARGS): Redefine to call
14226 arm_init_cumulative_args.
14227 (FUNCTION_ARG_ADVANCE): Redefine to use correct structure
14229 (SETUP_INCOMING_VARARGS): Redefine to use correct structure
14231 (ARM_MARK_NEARBY_FUNCTION): New macro: Mark already compiled
14233 (ENCODE_SECTION): Add call to ARM_MARK_NEARBY_FUNCTION.
14234 (VALID_MACHINE_TYPE_ATTRIBUTE): Define.
14235 (COMP_TYPE_ATTRIBUTES): Define.
14237 * config/arm/arm.md (call): Call arm_is_long_call_p to decide
14238 if a long call is needed.
14239 (call_value): Call arm_is_long_call_p to decide if a long call
14241 (call_symbol): Call arm_is_long_call_p to decide if a long call
14244 * config/arm/arm-protos.h: Add prototype for arm_is_long_call_p.
14246 2000-02-11 Denis Chertykov <denisc@overta.ru>
14248 * README.AVR: New file with information about the avr ports.
14249 * config/avr: New directory with avr port files.
14251 2000-02-11 Andreas Jaeger <aj@suse.de>
14253 * fixinc/Makefile.in (FIXINC_DEFS): Remove unneeded @fixinc_defs@.
14255 2000-02-11 Zack Weinberg <zack@wolery.cumb.org>
14257 * cpphash.c: Fix formatting, update commentary.
14258 (dump_definition): Take three separate arguments instead of a
14259 MACRODEF structure argument.
14260 * cpphash.h: Update prototype of dump_definition.
14261 * cppinit.c (cpp_finish): Update call of dump_definition.
14263 * cpplib.c (do_define): Always create new hash entry with
14264 T_MACRO type. Remove redundant check for redefinition of
14265 poisoned identifier. Update call of dump_definition.
14266 (do_undef): Don't call check_macro_name. Rename sym_length to
14268 (do_error, do_warning): Don't use copy_rest_of_line or
14270 (do_warning): Don't use pedwarn for the actual warning,
14271 only the notice about its not being in the standard. (Fixes
14272 bug with #warning in system headers.)
14273 (do_ident): Stricter argument checking - accept only a single
14274 string after #ident. Also, macro-expand the line.
14275 (do_xifdef): Use cpp_defined. De-obfuscate.
14277 (do_pragma): Split out specific pragma handling to separate
14278 functions. Use get_directive_token. Update commentary. Do
14279 not pass on #pragma once or #pragma poison to the front end.
14280 (do_pragma_once, do_pragma_implementation, do_pragma_poison,
14281 do_pragma_default): New.
14283 Feb 11 12:30:53 2000 Jeffrey A Law (law@cygnus.com)
14285 * jump.c (jump_optimize_1): The first operand in a relational
14286 can be a CONST_INT.
14287 * optabs.c (emit_conditional_move): Handle relationals which
14288 have a known true/false result.
14290 2000-02-11 Geoff Keating <geoffk@cygnus.com>
14292 * function.c (thread_prologue_and_epilogue_insns): Don't insert
14293 a RETURN insn into a block which already ends with a jump.
14295 2000-02-11 Geoff Keating <geoffk@cygnus.com>
14297 * haifa-sched.c (BUF_LEN): Increase a lot.
14299 2000-02-11 Nick Clifton <nickc@cygnus.com>
14301 * configure.in: Add tm_p_file specification for thumb targets.
14302 * configure: Regenerate.
14304 * config/arm/thumb-protos.h: New file: Prototypes for exported
14305 functions defined in thumb.c.
14307 2000-02-11 Robert Lipe <robertl@sco.com>
14309 * Makefile.in (bootstrap-lean): Remove additional files.
14310 (bootstrap2-lean): Likewise.
14311 (VOL_FILES): List of files for above.
14313 2000-02-11 Nathan Sidwell <nathan@acm.org>
14315 * cpphash.c (special_symbol): Remove spurious argument to
14318 2000-02-11 Joel Sherrill (joel@OARcorp.com>
14320 * configure.in: (i*86-*-rtems*): Swapped elf and coff
14322 * configure: Rebuilt.
14324 2000-02-11 Rodney Brown <RodneyBrown@pmsc.com>
14326 * pa-protos.h: Wrap function_arg_padding in TREE_CODE #ifdef.
14328 Fri Feb 11 02:59:05 2000 Jeffrey A Law (law@cygnus.com)
14330 * pa.c, pa.h: Remove trigraph sequences within comments.
14332 Fri Feb 11 02:51:56 2000 Pavel Roskin <pavel_roskin@geocities.com>
14334 * invoke.texi (PPC Options): -mno-new-mnenomics -> -mold-mnemonics.
14336 Fri Feb 11 02:48:30 2000 Brad Lucier (lucier@math.purdue.edu)
14338 * sbitmap.h: Make SBITMAP_ELT_BITS unsigned.
14340 2000-02-11 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14342 * config/c4x/c4x.c (fp_zero_operand): Check for CONST_DOUBLE.
14344 2000-02-11 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14346 * config/c4x/c4x.h (ASM_GLOBALIZE_LABEL): Use c4x_global_label.
14347 (ASM_OUTPUT_EXTERNAL): Use c4x_external_ref.
14348 (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
14349 (ASM_FILE_END): Use c4x_file_end.
14350 * config/c4x/c4x.c (c4x_global_label): New function.
14351 (c4x_external_ref, c4x_file_end): Likewise.
14353 * config/c4x/c4x-protos.h (c4x_global_label): Add prototype.
14354 (c4x_external_ref, c4x_end_file): Likewise.
14356 2000-02-10 Zack Weinberg <zack@wolery.cumb.org>
14358 * cppexp.c: Don't include cpphash.h.
14359 (parse_charconst, cpp_lex): Use cpp_defined.
14360 (cpp_lex): Use get_directive_token throughout. Remove
14361 unnecessary cases from switch. Move assertion-handling code
14362 down to OTHER case.
14363 (cpp_parse_expr): If we see '+' or '-', check the context to
14364 determine if they are unary or binary operators. Streamline
14365 the jumps a bit. Do not call skip_rest_of_line.
14367 * cpplib.c: Make skip_rest_of_line and cpp_skip_hspace
14368 static. Export get_directive_token. Update commentary.
14369 (cpp_defined): New function.
14370 (do_define): Remove reference to T_PCSTRING. Call
14371 free_definition to release memory for old definition, when
14372 redefining a macro.
14373 (eval_if_expression): Set only_seen_white to 0 before calling
14374 cpp_parse_expr. Call skip_rest_of_line after it returns.
14375 (cpp_read_check_assertion): Don't preserve a pointer into the
14376 token buffer across a call to cpp_get_token.
14378 * Makefile.in (cppexp.o): Don't depend on cpphash.h.
14379 * cppfiles.c (redundant_include_p): Use cpp_defined.
14380 * cpphash.c (free_definition): New function.
14381 (delete_macro): Use it. Update commentary.
14382 * cpphash.h: Typedef HASHNODE here. Prototype cpp_lookup and
14384 * cpplib.h: Don't typedef HASHNODE here. Delete T_PCSTRING
14385 from enum node_type. Prototype cpp_defined and get_directive_token.
14386 Don't prototype cpp_lookup, skip_rest_of_line, or cpp_skip_hspace.
14388 * fix-header.c (check_macro_names): Use cpp_defined.
14389 (read_scan_file): Set inhibit_warnings and inhibit_errors in
14390 the options structure.
14392 2000-02-10 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
14394 * c-pragma.c (maximum_field_alignment): Remove duplicate declaration.
14396 2000-02-10 Jason Merrill <jason@casey.cygnus.com>
14398 * dwarf2out.c (add_abstract_origin_attribute): Check TREE_CODE (origin)
14399 rather than die->die_tag.
14401 Thu Feb 10 16:26:49 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14403 * combine.c (make_extraction, force_to_mode): Avoid warning on
14404 mixed-signedness conditionals.
14405 (make_field_assignment, nonzero_bits): Likewise.
14406 * expmed.c (store_fixed_bit_field): ALIGN arg now unsigned.
14407 (store_split_bit_field, extract_split_bit_field): Likewise.
14408 (extract_fixed_bit_field, store_bit_field,
14409 * expr.c: Change alignment to be unsigned everywhere.
14410 (move_by_pieces, store_constructor_field, store_constructor):
14411 Alignment parm is unsigned.
14412 (emit_block_move, emit_group_load, emit_group_store): Likewise.
14413 (clear_storage, emit_push_insn, compare_from_rtx): Likewise.
14414 (do_compare_rtx_and_jump): Likewise.
14415 (move_by_pieces_ninsns, clear_by_pieces): Likewise.
14416 Compare align with GET_MODE_ALIGNMENT.
14417 (expand_expr_unaligned): Pointer to alignment is pointer to unsigned.
14418 (get_inner_reference): Likewise.
14419 (copy_blkmode_from_reg, emit_push_insn): Remove unneeded casts.
14420 (expand_assignment): Local vars for alignment now unsigned.
14421 (store_constructor, store_field, expand_expr, do_jump): Likewise.
14422 (do_compare_and_jump): Likewise.
14423 (store_field): Call new function expr_align.
14424 * expr.h (emit_block_move, emit_group_load, emit_group_store):
14425 Alignment arg now unsigned.
14426 (clear_storage, emit_push_insn, compare_from_rtx): Likewise.
14427 (do_compare_rtx_and_jump, store_bit_field): Likewise.
14428 (extract_bit_field): Likewise.
14429 * fold-const.c (add_double): Add cast to eliminate signedness warning.
14430 * machmode.h (GET_MODE_ALIGNMENT): Result is unsigned.
14431 (get_best_mode): Alignment arg is unsigned.
14432 * rtl.h (move_by_pieces): Likewise.
14433 * store-layout.c (maximum_field_alignment, set_alignment):
14435 (layout_decl): Alignment arg is now unsigned.
14436 Remove unneeded casts.
14437 (layout_record, layout_union, layout_type): Remove unneeded casts.
14438 Local alignment variables now unsigned.
14439 (get_best_mode): Alignment arg now unsigned.
14440 * tree.c (expr_align): New function.
14441 * tree.h (expr_align): Likewise.
14442 (maximum_field_alignment, set_alignment): Now unsigned.
14443 (get_inner_reference): Alignment argument is now pointer to unsigned.
14444 * varasm.c (assemble_variable): Add cast to eliminate warning.
14446 Thu Feb 10 12:56:47 2000 Jim Wilson <wilson@cygnus.com>
14448 * expmed.c (store_bit_field): If op0 and fieldmode are the same size,
14449 then store directly into op0.
14451 * calls.c (expand_call): When emitting a NOTE_INSN_SETJMP, search for
14452 the CALL_INSN, and emit the note immediately after it.
14454 2000-02-10 Nick Clifton <nickc@cygnus.com>
14456 * config/arm/thumb.md (epilogue): Include a (return) in the
14457 generated insn, and emit it using emit_jump_insn not
14460 Thu Feb 10 18:28:59 MET 2000 Jan Hubicka <jh@suse.cz>
14462 * function.c (assign_temp): Change zero-sized arrays to size 1.
14463 * integrate.c (expand_inline_function): Do not update
14464 stack_alignment_needed
14465 * i386.c (compute_frame_size): Remove #ifdef PREFERRED_FRAME_BOUNDARY,
14466 add some sanity checking, remove optimization for function with
14469 2000-02-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14471 * flow.c (mark_regs_live_at_end): Delete unused variables.
14473 * ggc-page.c (ggc_page_print_statistics): bzero -> memset.
14475 * integrate.c (copy_rtx_and_substitute): Wrap variable `alignment'
14476 in macro FRAME_GROWS_DOWNWARD.
14478 * stmt.c (expand_end_bindings): Delete unused variable.
14480 * unroll.c (iteration_info): Mark parameter `loop' with
14483 2000-02-10 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
14485 * fixinc/server.c (load_data): Return NULL if the marker line is
14487 (run_shell): If load_data returns NULL, retry the command once, in
14490 * configure: Rebuilt.
14492 2000-02-09 Bruce Korb <bkorb@gnu.org>
14494 * gcc/fixincludes: ** DELETED **
14495 * gcc/fixcpp: ** DELETED **
14496 * gcc/fixinc-nt.sed: ** DELETED **
14497 * gcc/just-fixinc: ** DELETED **
14498 * gcc/Makefile.in: Removed out-dated commentary
14499 * gcc/configure.in: Removed fast-fixincludes disablement.
14500 * MAINTAINERS(Ian Taylor) moved to "Write after approval" group.
14502 2000-02-09 Clinton Popetz <cpopetz@cygnus.com>
14503 * function.c (thread_prologue_and_epilogue_insns): Uncomment
14506 2000-02-09 Richard Henderson <rth@cygnus.com>
14508 * jump.c (delete_insn): Don't delete user labels at -O0.
14510 2000-02-09 Robert Lipe <robertl@sco.com>
14512 * Makefile.in (gen-protos): Don't depend on HOST_LIBDEPS.
14513 Don't link with HOST_LIBS.
14515 2000-02-09 Zack Weinberg <zack@wolery.cumb.org>
14517 * configure.in: Correct --help text for --with-dwarf2.
14518 Put tm-dwarf2.h after other tm files, if it's requested.
14519 * configure: Regenerate.
14520 * config/tm-dwarf2.h: #undef PREFERRED_DEBUGGING_TYPE before
14523 2000-02-09 Zack Weinberg <zack@wolery.cumb.org>
14525 * cpplib.h: Provide HASHNODE typedef and forward decl of
14526 struct hashnode only. Kill cpp_hashnode typedef. MACRODEF,
14527 DEFINITION, struct hashnode, struct macrodef, struct
14528 definition, scan_decls prototype, default defn of
14529 INCLUDE_LEN_FUDGE moved elsewhere.
14531 * cpphash.h: MACRODEF, DEFINITION, struct macrodef, struct
14532 definition, and struct hashnode moved here. Remove the unused
14533 'predefined' field from struct definition. Replace the 'args'
14534 union with its sole member. All users updated (cpphash.c).
14535 Delete HASHSTEP and MAKE_POS macros, and hashf prototype. Add
14536 multiple include guard.
14538 * cpphash.c (hashf): Make static; use better algorithm; drop
14539 HASHSIZE parameter; return an unsigned int.
14540 (cpp_lookup): Drop HASH parameter. PFILE parameter is
14541 used. Calculate HASHSIZE modulus here.
14542 (cpp_install): Drop HASH parameter. Calculate HASHSIZE modulus
14544 (create_definition): Drop PREDEFINITION parameter.
14545 * cpplib.c (do_define): Don't calculate a hash value here.
14546 Don't pass (keyword == NULL) to create_definition.
14548 * scan.h: Prototype scan_decls here.
14549 * cppfiles.c: Move INCLUDE_LEN_FUDGE default defn here.
14550 * cppexp.c, cppfiles.c, cppinit.c, cpplib.c, fix-header.c: All
14551 callers of cpp_lookup and cpp_install updated.
14553 * cpphash.c (macarg): Hoist all the flag diddling out of the
14555 (macroexpand): ... and out of the loop that calls macarg.
14556 Skip over the initial paren before macro arguments with
14557 cpp_get_non_space_token; point may be some distance before
14558 that paren. Abort if it's not there.
14560 * cpplib.c (parse_clear_mark): Delete function.
14561 (parse_set_mark, parse_goto_mark): Make static.
14562 (ACTIVE_MARK_P): New macro.
14563 (skip_block_comment, skip_line_comment): Do not bump the line
14564 if ACTIVE_MARK_P is true.
14565 (cpp_pop_buffer): The buffer to be popped may not have an
14567 (cpp_get_token): When looking for the initial paren before
14568 macro arguments, only set a mark in a file buffer, Always
14569 return to that mark before proceeding to call macroexpand or
14570 return a NAME token.
14572 * cpplib.h: Remove prototypes of parse_set_mark,
14573 parse_clear_mark, parse_goto_mark.
14574 (struct cpp_options): Rename 'put_out_comments' to
14575 'discard_comments' and invert its sense.
14576 * cppinit.c, cpphash.c, cpplib.c: All users of
14577 put_out_comments changed to use discard_comments, with
14580 2000-02-09 Clinton Popetz <cpopetz@cygnus.com>
14582 * function.c (thread_prologue_and_epilogue_insns): Don't delete
14583 the edge from a block that both jumps and falls through to the
14586 2000-02-09 Scott Bambrough <scottb@netwinder.org>
14588 * config/arm/arm.md (movsi): In PIC mode, make sure that a
14589 constant source address is legitimate.
14591 2000-02-09 Philip Blundell <pb@futuretv.com>
14593 * config/arm/arm.c (legitimize_pic_address): Handle LABEL_REF
14596 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Allow anything when
14598 (LEGITIMATE_PIC_OPERAND): Disallow references to labels.
14600 2000-02-09 Zack Weinberg <zack@wolery.cumb.org>
14602 * cpplib.c (cpp_define, cpp_undef): Make sure the stacked buffer
14603 ends with a newline and a NUL. Don't be so clever manipulating
14606 Wed Feb 9 14:18:08 MET 2000 Jan Hubicka <jh@suse.cz>
14608 * reload1.c (reload) Align stack frame to cfun->stack_alignment_needed,
14609 not to BIGGEST_ALIGNMENT.
14611 2000-02-08 Geoff Keating <geoffk@cygnus.com>
14613 * dwarf2.h (DW_CFA_GNU_negative_offset_extended): New constant.
14614 * dwarf2out.c (dwarf_cfi_name): Print name of new constant.
14615 (reg_save): Use DW_CFA_GNU_negative_offset_extended when needed.
14616 (output_cfi): Handle output of DW_CFA_GNU_negative_offset_extended.
14617 * frame.c (execute_cfa_insn): Handle
14618 DW_CFA_GNU_negative_offset_extended.
14620 2000-02-08 Richard Henderson <rth@cygnus.com>
14622 * flow.c (tidy_fallthru_edges): Split out from ...
14623 (delete_unreachable_blocks): ... here.
14624 (find_basic_blocks): Use it.
14626 Tue Feb 8 15:51:50 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14628 * stmt.c (expand_decl): Do set RTX_UNCHANGING_P for TREE_READONLY.
14630 2000-02-08 Zack Weinberg <zack@wolery.cumb.org>
14632 * Makefile.in (GEN_PROTOS_OBJS): Remove libcpp.a.
14633 (gen_protos.o): Don't depend on cpplib.h or cpphash.h.
14634 (fix-header.o): Don't depend on cpphash.h.
14636 * scan.c (hashstr): New function.
14637 * scan.h: Prototype it.
14638 * fix-header.c: Don't include cpphash.h. Use hashstr.
14639 * gen-protos.c: Don't include cpphash.h or cpplib.h. Use
14640 hashstr. Report hash table statistics. Add private
14641 definition of xrealloc.
14643 2000-02-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14645 * i386.h (TARGET_SWITCHES): Fix typo in option name.
14647 2000-02-08 Clinton Popetz <cpopetz@cygnus.com>
14649 * function.c (thread_prologue_and_epilogue_insns): Don't replace
14650 jumps with returns unless they are jumps to the fallthru block.
14652 Tue Feb 8 07:53:55 2000 Jan Hubicka <jh@suse.cz>
14654 * i386.md (addqi3_cc): Fix contraints.
14656 Tue Feb 8 01:39:45 2000 Hans-Peter Nilsson <hp@bitrange.com>
14658 * function.c (emit_return_into_block): Wrap in #ifdef HAVE_return.
14660 2000-02-07 Mark Mitchell <mark@codesourcery.com>
14662 * cpplib.c (cpp_get_token): Call CPP_BUMP_LINE after reading a
14663 carriage return after a macro name.
14665 2000-02-07 Fred Fish <fnf@be.com>
14667 * i386/beos-elf.h: (ASM_IDENTIFY_GCC): Define to nothing
14668 so the gcc2_compiled symbol doesn't confuse BeOS debuggers.
14670 2000-02-07 Zack Weinberg <zack@wolery.cumb.org>
14672 * cppfiles.c (deps_output): Count spacers in deps_column.
14674 2000-02-07 Neil Booth <NeilB@earthling.net>
14676 * cppinit.c (initialize_dependency_output): If there is no
14677 suffix, don't try to look for known suffixes. Use strrchr.
14678 (cpp_start_read): Remove duplicate initialization.
14680 Mon Feb 7 18:36:41 MET 2000 Jan Hubicka <jh@suse.cz>
14682 * calls.c (compute_argument_block_size): New argument
14683 preferred_stack_boundary.
14684 (expand_call): update cfun->preferred_stack_boundary, update call of
14685 compute_argument_block_size
14686 (emit_library_call): Increate cfun->preferred_stack_boundary
14687 to PREFERRED_STACK_BOUNDARY
14688 (emit_library_call_value): Likewise.
14689 * explow.c (allocate_dynamic_stack_spave): Likewise.
14690 * function.c (prepare_function_start): Set
14691 cfun->preferred_stack_boundary
14692 * function.h (struct function): Add preferred_stack_boundary field.
14693 * integrate.c (expand_inline_function): Update
14694 cfun->preferred_stack_boundary and cfun->stack_alignment_needed.
14695 (copy_rtx_and_substitute): Align frame to stack_alignment_needed only.
14696 * i386.c (compute_frame_size): Use cfun->preferred_stack_boundary.
14698 2000-02-06 Zack Weinberg <zack@wolery.cumb.org>
14700 * cpplib.c (my_strerror, cpp_error, cpp_error_with_line,
14701 cpp_error_from_errno, cpp_warning, cpp_warning_with_line,
14702 cpp_pedwarn, cpp_pedwarn_with_line,
14703 cpp_pedwarn_with_file_and_line): Move to cpperror.c.
14704 (cpp_print_file_and_line, v_cpp_error, v_cpp_warning,
14705 v_cpp_error_with_line, v_cpp_warning_with_line,
14706 cpp_message_from_errno, cpp_perror_with_name): Delete.
14708 * cpperror.c (cpp_print_containing_files): Take starting
14709 buffer as argument.
14710 (cpp_file_line_for_message): Rename to cpp_print_file_and_line.
14711 (v_cpp_message): Now called directly by all entry points.
14713 (cpp_pfatal_with_name, cpp_message): Delete.
14714 (cpp_notice_from_errno, cpp_ice): New functions.
14715 (cpp_notice): Is now for reporting error conditions, just
14716 without an associated file.
14717 (cpp_error, cpp_error_with_line): Don't do anything if
14718 opts->inhibit_errors is on.
14719 (cpp_pedwarn_with_file_and_line): Take column argument also.
14721 * cpplib.h: Update prototypes of exported functions.
14722 (struct cpp_options): Add inhibit_errors.
14724 * cppalloc.c, cppfiles.c: Use fprintf not cpp_notice for
14725 non-error messages. Include intl.h.
14727 * cppinit.c, cppmain.c: Likewise. Also, use
14728 cpp_notice_from_errno instead of cpp_perror_with_name or
14729 cpp_pfatal_with_name, and cpp_notice instead of cpp_message.
14731 * cppexp.c, cpphash.c, cppinit.c, cpplib.c: Use cpp_ice to
14732 report internal errors.
14734 * cpplib.c (do_define): Switch bcopy to memcpy.
14735 Give cpp_pedwarn_with_file_and_line a dummy column argument.
14737 * cpplib.c (copy_rest_of_line): Revert previous change: don't
14738 bail out early if we hit a line comment.
14740 2000-02-06 Richard Henderson <rth@cygnus.com>
14742 * flow.c (flow_delete_insn, make_edge, remove_edge): Export.
14743 * basic-block.h: Declare them.
14744 * emit-rtl.h (active_insn_p): New.
14745 (next_active_insn, prev_active_insn): Use it.
14746 * rtl.h: Declare it.
14747 * function.c (emit_return_into_block): New.
14748 (thread_prologue_and_epilogue_insns): Insert return insns instead
14749 of epilogues when possible.
14750 * jump.c (jump_optimize_1): Remove code to insert a return insn
14751 on the fallthru to the exit block.
14753 * i386.c (ix86_can_use_return_insn_p): Fail for large poped args
14754 and for non-empty stack frames.
14755 * i386.md (return): Expand to return-pop as needed.
14757 2000-02-06 Richard Henderson <rth@cygnus.com>
14759 * simplify-rtx.c (simplify_relational_operation): Canonicalize
14760 constant to op1 for testing.
14762 2000-02-06 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14764 * config/c4x/c4x.md (*ldi_on_overflow): New pattern.
14765 (fixuns_truncqfqi2): Use it.
14767 2000-02-06 Richard Henderson <rth@cygnus.com>
14769 * i386.c (ix86_agi_dependant): Handle pro_epilogue_adjust_stack
14770 as a TYPE_LEA insn.
14772 * i386.md (widening and peepholes): Mask the constant instead of
14775 2000-02-05 Zack Weinberg <zack@wolery.cumb.org>
14777 * cppfiles.c (read_and_prescan) [case SPECCASE_QUESTION]: Bump
14778 input pointer before possibly branching off to the backslash
14780 * cpphash.c (macroexpand): Correctly delete \r escapes when
14781 stringifying parameters.
14782 * cpplib.c (copy_rest_of_line): Go directly to skip_block_comment
14783 if we can; bail out early if we hit a line comment.
14784 (handle_directive): Treat '# 123' in an .S file just like
14785 '# <punctuation>'. Discard the shifted '#' if we hit '#\n'.
14786 Return 1 for '# not_a_directive'.
14787 (get_directive_token): Pop macro buffers here, so that
14788 cpp_get_token can't sneakily move past a newline.
14790 (cpp_get_token): goto randomchar if handle_directive returns 0.
14792 * cppalloc.c: Update copyright.
14793 * cpplib.c: Merge all the static function prototypes into one
14795 * cpplib.h: Remove #if 0 block.
14797 * cpperror.c: Remove #ifdef EMACS block.
14798 * cppmain.c: Likewise.
14799 * cpphash.c: Remove #if 0 blocks.
14800 * cppinit.c: Remove #if 0 blocks, and the -lint option.
14801 * cpplib.c: Remove #if 0 blocks and code referencing
14802 pcp_inside_if or for_lint. Remove duplicate error message.
14803 Fix error messages for #else after #else or #elif. Reformat.
14804 Remove archaic TODO list.
14805 * cpplib.h: Remove pcp_inside_if and for_lint flags.
14807 2000-02-05 Zack Weinberg <zack@wolery.cumb.org>
14809 * i386/osf1elf.h: Add missing backslash to multiline string.
14811 2000-02-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14813 * longlong.h [sparc] (udiv_qrnnd): Avoid stringifying macro arg.
14815 2000-02-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14817 * Makefile.in (c-common.o): Depend on $(EXPR_H).
14819 * c-common.c: Include expr.h.
14821 * c-pragma.c (mark_align_stack): Add prototype.
14823 * caller-save.c (add_stored_regs): Likewise.
14825 * combine.c (record_promoted_value): Likewise.
14827 * i386.c (ix86_sched_reorder_pentium, ix86_sched_reorder_ppro):
14830 * cppinit.c (new_pending_define): Likewise.
14832 * cpplib.c (skip_block_comment, skip_line_comment): Likewise.
14834 * dwarf2out.c (save_rtx, splice_child_die, reverse_die_lists,
14835 AT_class, AT_flag, AT_int, AT_unsigned, AT_string, AT_ref, AT_loc,
14836 AT_addr, AT_lbl, get_AT_ref, free_AT, free_die, local_scope_p,
14837 class_scope_p): Likewise.
14839 * dwarf2out.h (dwarf2out_set_demangle_name_func,
14840 dwarf2out_add_library_unit_info): Likewise.
14842 * ggc.h (ggc_page_print_statistics): Likewise.
14844 * haifa-sched.c (propagate_deps): Likewise.
14846 * reg-stack.c (next_flags_user, record_label_references): Likewise.
14848 * rtl.h (set_stack_check_libfunc): Likewise.
14850 * toplev.h (set_fatal_function): Likewise.
14852 * toplev.c (set_fatal_function): Delete prototype.
14854 * diagnostic.c: Deconstify functions returning malloc'ed ptrs.
14856 2000-02-05 Geoff Keating <geoffk@cygnus.com>
14858 * ginclude/ppc-asm.h (FUNC_START): Use USER_LABEL_PREFIX.
14859 (FUNC_END): Likewise.
14861 2000-02-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14863 * caller-save.c: Include tm_p.h.
14865 2000-02-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14867 * Makefile.in (libgcc.a): Add $(LIBGCC1) to libgcc.a after $(LIBGCC2).
14869 2000-02-04 Neil Booth <NeilB@earthling.net>
14871 * cccp.c (main): Check 'dir' for a NULL pointer before passing
14874 2000-02-04 Zack Weinberg <zack@wolery.cumb.org>
14876 * recog.h: Remove NO_MD_PROTOTYPES ifdefs.
14877 * genflags.c: Use the max_operand_1 logic from genemit.c to
14878 calculate how many arguments gen_insn prototypes have. Remove
14879 NO_MD_PROTOTYPES ifdefs from the generated file.
14880 * genoutput.c: Don't define NO_MD_PROTOTYPES in the generated
14881 file. Cast gen_insn initializers to insn_gen_fn.
14882 * config/alpha/vms.h: Don't define NO_MD_PROTOTYPES.
14883 * gcc.texi: Remove documentation of NO_MD_PROTOTYPES.
14885 2000-02-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14887 * fixinc/Makefile.in (HDR): Add machname.h.
14890 2000-02-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14892 * config/c4x/c4x.h (c4x_compare_op0, c4x_compare_op1): Move ...
14893 (c4x_regclass_map, c4x_caller_save_map, c4x_rpts_cycles): Ditto.
14894 (c4x_cpu_version): Ditto.
14895 * config/c4x/c4x-protos.h: ... here.
14897 2000-02-04 Jason Merrill <jason@casey.cygnus.com>
14899 * dwarf2out.c (add_abstract_origin_attribute): Don't call
14900 gen_abstract_function on our context if we're a nested function.
14902 2000-02-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14904 * config/c4x/c4x.md (fixuns_truncqfqi2): Rewrite.
14905 * config/c4x/libgcc.S (ufix_truncqfhi2n): Fix.
14907 2000-02-04 Bruce Korb <bkorb@gnu.org>
14909 * fixinc/genfixes(machname.h):
14910 Move the functionality from gen-machine.h into this file.
14911 UNdef MN_NAME_PAT if there are no names to change.
14912 Also, be a little kinder when AutoGen is not present.
14914 * fixinc/Makefile.in(machname.h):
14915 Change the generation rule to use genfixes.
14917 * fixinc/fixfixes.c(machine_name):
14918 machine_name_fix's functionality now dependent upon whether
14919 MN_NAME_PAT is defined.
14921 * fixinc/fixtests.c(machine_name):
14924 * fixinc/fixlib.c(mn_get_regexps): conditional on definition
14927 * fixinc/fixlib.h(mn_get_regexps):
14930 * fixinc/gen-machine.h: DELETED
14932 2000-02-04 Jan Hubicka <jh@suse.cz>
14933 Richard Henderson <rth@cygnus.com>
14935 * i386.c (SAVE_REGS_FIRST): Remove.
14936 (ix86_initial_elimination_offset): Handle only SAVE_REGS_FIRST mode.
14937 (ix86_compute_frame_size): Likewise.
14938 (ix86_expand_prologue): Likewise. Use pro_epilogue_adjust_stack.
14939 (ix86_emit_restore_regs): Remove.
14940 (ix86_emit_epilogue_esp_adjustment): Use pro_epilogue_adjust_stack
14941 when a frame pointer is in use.
14942 (ix86_expand_epilogue): Handle only SAVE_REGS_FIRST mode. Use mov
14943 instead of pop to restore a register when profitable; emit leave
14945 (ix86_attr_length_default): Handle pro_epilogue_adjust_stack
14946 as a TYPE_LEA insn.
14947 (ix86_adjust_cost): Handle pro_epilogue_adjust_stack as TYPE_ALU.
14948 * i386.md (prologue_allocate_stack): Remove.
14949 (epilogue_deallocate_stack): Remove.
14950 (pro_epilogue_adjust_stack): New.
14952 2000-02-04 Richard Henderson <rth@cygnus.com>
14954 * function.c (diddle_return_value): Rework to use a callback function.
14955 Use current_function_return_rtx if it's been set up.
14956 (do_clobber_return_reg, clobber_return_register): New.
14957 (do_use_return_reg, use_return_register): New.
14958 (expand_function_end): Use them.
14959 * stmt.c (expand_null_return): Likewise.
14960 * function.h: Declare them.
14961 * flow.c (mark_regs_live_at_end): Use diddle_return_value.
14962 (mark_reg): Change arguments as appropriate for callback.
14963 * integrate.c (expand_inline_function): Revert 19 Jan change.
14965 Fri Feb 4 20:25:42 2000 Hans-Peter Nilsson <hp@bitrange.com>
14967 * tm.texi (Values in Registers): Fix typo: "fo" "for".
14968 (Misc): Say the scheduler, not the Haifa scheduler.
14970 2000-02-04 Clinton Popetz <cpopetz@cygnus.com>
14972 * jump.c (mark_jump_label): Add in_mem param, check SYMBOL_REFs
14973 when in_mem is set. Update all callers.
14975 2000-02-04 Richard Henderson <rth@cygnus.com>
14977 * i386/openbsd.h (INT_ASM_OP): Define.
14979 Fri Feb 4 10:51:30 2000 Hans-Peter Nilsson <hp@bitrange.com>
14981 * tm.texi: Fix various typos.
14983 Thu Feb 3 17:17:32 2000 Steve Ellcey <sje@cup.hp.com>
14985 * config/pa/pa-hpux11.h (LIB_SPEC): Correct typo in !p case.
14986 (MD_STARTFILE_PREFIX_1): New macro.
14988 Thu Feb 3 15:08:13 MET 2000 Jan Hubicka <jh@suse.cz>
14990 * i386.md (movstrsi, clrstrsi): Support variable sized copies, align
14991 destination when needed.
14992 (strmovsi, strsetsi): New expander.
14993 (strmovsi_1, strsetsi_1): New pattern.
14994 * i386.h (MASK_NO_ALIGN_STROP, MASK_INLINE_ALL_STROP,
14995 TARGET_ALIGN_STRINGOPS, TARGET_INLINE_ALL_STRINGOPS): New macros.
14996 (TARGET_SWITCHES) Add align-stringops and inline-all-stringops.
14997 * invoke.texi (align-stringops, inline-all-stringops): Document.
14999 Wed Feb 2 23:04:47 2000 Krister Walfridsson <cato@df.lth.se>
15001 * i386/netbsd.h (INT_ASM_OP): Define.
15003 2000-02-02 Zack Weinberg <zack@wolery.cumb.org>
15005 * cpplib.h (cpp_reader): Add new flag, no_directives.
15006 * cpphash.c (macarg): Set it.
15007 * cpplib.c (handle_directive): If no_directives is on and we
15008 find a directive, issue an error and discard the line.
15010 Wed Feb 2 13:07:10 2000 Jim Wilson <wilson@cygnus.com>
15012 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Delete 'E' check for
15013 FP constants. Add ! TARGET_FPU check for FP constants.
15015 2000-02-02 Clinton Popetz <cpopetz@cygnus.com>
15017 * flow.c (find_basic_blocks): Don't kill label_value_list
15019 (cleanup_cfg): Kill it here.
15021 Wed Feb 2 08:12:30 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15023 * expr.c (store_field): Ensure ALIGN is no stricter than the
15026 2000-02-02 Richard Henderson <rth@cygnus.com>
15028 * jump.c (delete_insn): Partially revert 19 Jan change;
15029 don't convert unused code labels to notes at -O0.
15031 2000-02-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
15033 * toplev.c (rest_of_compilation): Run rebuild_jump_labels after
15034 split_all_insns to recreate REG_LABEL notes for flow2 pass.
15036 2000-02-01 Richard Henderson <rth@cygnus.com>
15038 * i386.c (general_no_elim_operand): New.
15039 (nonmemory_no_elim_operand): New.
15040 (ix86_expand_move): Copy eliminable operands before a push.
15041 * i386-protos.h: Declare new functions.
15042 * i386.h (CAN_ELIMINATE): Simplify.
15043 (PREDICATE_CODES): Update.
15044 * i386.md (push insns): Don't allow eliminable register operands.
15046 2000-02-01 Richard Henderson <rth@cygnus.com>
15048 * flow.c (mark_regs_live_at_end): Follow expand_function_end and
15049 replace BLKmode with DECL_RTL's mode.
15051 2000-02-01 Zack Weinberg <zack@wolery.cumb.org>
15053 * frame.c (find_fde): Convert for loop to do-while so compiler
15054 sees it's always executed at least once.
15055 * libgcc2.c (BBINBUFSIZE): Kill.
15056 (__bb_init_prg): Use fgets.
15057 (__bb_exit_trace_func): Don't paste strings.
15058 * unroll.c (unroll_loop): Initialize unroll_type, not
15059 unroll_number, and tweak logic to match.
15061 * i386.c (ix86_expand_int_movcc): Add explicit 'return 0' in
15063 (ix86_flags_dependant): Likewise. Disentangle control flow.
15064 (ix86_sched_reorder): Break guts out to
15065 ix86_sched_reorder_pentium and ix86_sched_reorder_ppro.
15066 (ix86_sched_reorder_ppro): Initialize pair2 and insnp before
15069 * i386.h (MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Don't
15070 use string concatenation. Don't save and restore esi.
15072 * fixinc/Makefile.in (fixincl.sh): Don't depend on inclhack.def.
15073 (machname.h): Remove script to separate file. Use two-step
15074 sequence so target is not created if script fails.
15075 * fixinc/gen-machname.h: New file. Handle case where no non-reserved
15076 identifiers are defined.
15077 * fixinc/fixlib.c (mn_get_regexps): Return a flag: if MN_NAME_PAT is
15078 an empty string, machine_name doesn't need to do anything at
15080 (is_cxx_header): Add more cases to regexp.
15081 * fixinc/fixlib.h: Update prototype.
15082 * fixinc/fixtests.c, fixinc/fixfixes.c: Update callers of
15084 * fixinc/fixincl.c: Define NO_BOGOSITY.
15086 * fixinc/inclhack.def (no_double_slash, else_endif_label): Ifdef out.
15087 (hp_sysfile): Add missing comma.
15088 (math_exception): Put the wrapper ifdefs at the beginning and
15089 the end of the file.
15090 * fixinc/fixincl.x, fixinc/inclhack.sh: Regenerate.
15092 2000-02-01 Richard Henderson <rth@cygnus.com>
15094 * sparc.c (fp_zero_operand): Turn into a normal predicate.
15095 Use CONST0_RTX. Update all callers.
15096 * sparc.h, sparc-protos.h: Update accordingly.
15097 * sparc.md (fp mov insns): Use fp_zero_operand directly
15100 Wed Feb 2 02:59:45 2000 Hans-Peter Nilsson <hp@bitrange.com>
15102 * tm.texi (Values in Registers): Fix typo in HARD_REGNO_NREGS
15105 2000-02-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15107 * Makefile.in (specs.ready): New target.
15108 (fixinc.sh): Depend on `specs.ready' instead of `specs'.
15110 2000-02-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15112 * fixinc.irix: Use unique filenames for writing into /tmp,
15113 * fixinc.ptx: Likewise.
15114 * fixinc.sco: Likewise.
15115 * fixinc.svr4: Likewise.
15116 * fixinc.winnt: Likewise.
15118 2000-02-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15120 * tsystem.h: New file.
15122 * Makefile.in (libgcc2.a, stmp-multilib, crtbegin.o, crtend.o,
15123 s-crtS): Depend on tsystem.h.
15125 * crtstuff.c: Include tsystem.h.
15126 * frame.c: Likewise.
15127 * libgcc2.c: Likewise.
15129 Tue Feb 1 19:53:27 CET 2000 Jan Hubicka <jh@suse.cz>
15131 * builtins.c (expand_builtin_memset): Expand for variable sized
15134 2000-02-01 David Billinghurst <David.Billinghurst@riotinto.com.au>
15136 * config/mips/iris6.h (SUBTARGET_ASM_SPEC) : Default ISA based
15139 Tue Feb 1 00:57:40 2000 Hans-Peter Nilsson <hp@bitrange.com>
15141 * dwarfout.c (SHORT_TYPE_SIZE): Correct default.
15143 * tm.texi (Type Layout): Correct entry for CHAR_TYPE_SIZE.
15145 2000-01-31 Chandra Chavva <cchavva@cygnus.com>
15147 * combine.c (try_combine) [HAVE_cc0]: Trying to check the missed
15148 case 3->2 combining (combining with splitting) in which 2 is CC0
15149 setter/user and 3 is user. The rest of cases 2->1 and 3->2 are
15150 checked at the begining of the function with the aid of calling
15151 function 'can_combine_p'.
15153 2000-01-31 Dave Brolley <brolley@redhat.com>
15155 * cccp.c (struct argdata): Redeclare 'newlines' field as 'int'.
15157 2000-01-31 Jason Merrill <jason@casey.cygnus.com>
15159 * jump.c (redirect_jump): Move a NOTE_INSN_FUNCTION_END to the
15162 2000-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15164 * gansidecl.h (PROTO, VPROTO, PVPROTO): Delete macros.
15166 * sbitmap.h (sbitmap_first_set_bit, sbitmap_last_set_bit):
15169 2000-01-30 Zack Weinberg <zack@wolery.cumb.org>
15171 * i386/386bsd.h, i386/beos-pe.h, i386/bsd386.h, i386/crtdll.h,
15172 i386/cygwin.h, i386/dgux.h, i386/djgpp-rtems.h, i386/djgpp.h,
15173 i386/freebsd.h, i386/gnu.h, i386/i386-aout.h, i386/i386-coff.h,
15174 i386/i386-interix.h, i386/i386elf.h, i386/linux.h, i386/lynx-ng.h,
15175 i386/lynx.h, i386/mach.h, i386/mingw32.h, i386/moss.h,
15176 i386/netbsd.h, i386/next.h, i386/openbsd.h, i386/osf1elf.h,
15177 i386/ptx4-i.h, i386/rtems.h, i386/rtemself.h, i386/sco.h,
15178 i386/sequent.h, i386/sun.h, i386/sysv4.h, i386/uwin.h, i386/vsta.h,
15179 i386/vxi386.h, i386/win-nt.h, i386/win32.h:
15180 Remove -Di386 -Acpu(i386) -Amachine(i386) from CPP_PREDEFINES.
15182 * i386/osf1elf.h, i386/scodbx.h, i386/seq-sysv3.h, i386/sysv5.h:
15183 Add %(cpp_cpu) to CPP_SPEC.
15185 * i386/osf1elf.h, i386/osfelf.h, i386/osfrose.h:
15186 Add %(cc1_cpu) to CC1_SPEC.
15188 2000-01-28 Ulrich Drepper <drepper@redhat.com>
15190 * c-decl.c (c_decode_option): Accept optional numeric argument to
15191 -Wformat and set warn_format.
15192 * c-common.c: Don't emit warning about non-constant printf format
15193 string unless warn_format > 1.
15195 2000-01-30 Richard Henderson <rth@cygnus.com>
15197 * alpha.md (return_internal): Allow after reload only.
15199 2000-01-30 Richard Henderson <rth@cygnus.com>
15201 * i386.c (ix86_compute_frame_size): Omit padding1 if the
15202 local frame size is zero.
15204 2000-01-30 Richard Henderson <rth@cygnus.com>
15206 * alpha.c (alpha_expand_epilogue): Don't emit the return insn.
15207 * alpha.h (EPILOGUE_USES): New. Mark $26 live.
15208 * alpha.md (return): Turn into an expander.
15209 (return_internal): Don't use $26.
15210 (epilogue): Emit the return insn.
15212 2000-01-30 Richard Henderson <rth@cygnus.com>
15214 * alpha.md (negtf2, abstf2): Fix word order thinko.
15215 (extendsftf2): New.
15216 (trunctfsf2): Avoid intermediate rounding errors.
15218 2000-01-30 Zack Weinberg <zack@wolery.cumb.org>
15220 * cppfiles.c (find_position): Drop 'colp' argument, return the
15222 (read_and_prescan): Adjust to match. Don't ever manipulate
15223 line or line_base except via find_position.
15225 2000-01-29 Zack Weinberg <zack@wolery.cumb.org>
15227 * c-parse.in: Apply Ulrich's changes from c-parse.y.
15228 * c-parse.y, objc/objc-parse.y, c-parse.c, objc/objc-parse.c:
15231 2000-01-29 Zack Weinberg <zack@wolery.cumb.org>
15233 * cpperror.c (cpp_file_line_for_message): If 'line' is zero,
15234 just print "<command line>". If 'filename' is null or an
15235 empty string, print "<stdin>" for the filename.
15236 * cpplib.c (do_define): Don't print the 'location of the
15237 previous definition' message if we're still parsing the
15239 (cpp_pedwarn_with_file_and_line): Always call
15240 cpp_file_line_for_message.
15242 2000-01-29 Mark Mitchell <mark@codesourcery.com>
15244 * flow.c (mark_regs_live_at_end): Fix typo.
15246 2000-01-28 Ulrich Drepper <drepper@redhat.com>
15248 * c-common.c: Adjust variable names, comments, help strings to c99.
15249 * c-lex.c: Likewise.
15250 * c-parse.y: Likewise.
15251 * c-tree.h: Likewise.
15252 * cccp.c: Likewise.
15253 * cpplib.h: Likewise.
15254 * c-decl.c: Likewise. Recognize options with names "*99" as well.
15255 * cppinit.c: Likewise.
15257 2000-01-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
15259 * c4x.h (INIT_TARGET_OPTABS): Add all missing local optab entries.
15260 * c4x.c: Define the optab rtx values.
15261 (c4x_add_gc_roots): Add the ggc roots for these optab rtx values.
15262 (c4x_emit_libcall): Use new optab rtx values.
15263 (c4x_emit_libcall3): Likewise.
15264 (c4x_emit_libcall_mulhi): Likewise.
15265 * c4x-protos.h: Add prototypes for optab rtx values and change
15266 prototypes for above c4x_emit_libcall functions.
15268 2000-01-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
15270 * c4x.c (c4x_output_ascii): Restrict line length of output when TI
15272 (c4x_function_prologue): Use regnames intead of float_reg_names when
15274 (c4x_function_epilogue): Likewise.
15275 (c4x_print_operand): Likewise.
15276 * c4x.h (HOST_WIDE_INT_PRINT_HEX): Redefine.
15277 * c4x.md (set_high): Disable for TARGET_TI.
15279 2000-01-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
15281 * c4x.h (PREFERRED_RELOAD_CLASS): Change to restrict the reloading
15282 of framepointer + constant to ADDR_REGS class.
15283 * c4x.md (addqi3, addqi3_noclobber_reload): Update.
15284 * c4x.c (std_or_reg_operand): New function.
15285 * c4x-protos.h (std_or_reg_operand): Prototype it.
15287 2000-01-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
15289 * t-c4x: Change qi,qf,di,df into si,sf,hi,hf to generate same
15290 object names as libgcc2.c.
15291 * libgcc.S: Use newly defined names.
15293 Fri Jan 7 19:48:04 CET 2000 Jan Hubicka <jh@suse.cz>
15294 * sbitmap.c (sbitmap_first_set_bit, sbitmap_last_set_bit): New
15296 * sbitmap.h (sbitmap_first_set_bit, sbitmap_last_set_bit): Declare.
15297 * basic_block.h (FLOW_LOOP_FIRST_BLOCK): New macro.
15298 (FLOW_LOOP_LAST_BLOCK): Likewise.
15300 2000-01-21 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
15302 * basic-block.h (struct loop): New fields 'first' and 'last'.
15303 * flow.c (flow_loops_find): Compute loop->first and loop->last.
15304 (flow_loops_dump): Use loop->first to check for NOTE_INSN_LOOP_BEG
15305 and loop->last to check for NOTE_INSN_LOOP_END.
15307 Fri Jan 28 10:57:58 2000 Jason Eckhardt <jle@cygnus.com>
15309 * predict.c (estimate_probability): Use the new FIRST and LAST fields
15310 of the loop descriptor rather than HEADER and LATCH. Also added
15311 missing break statements as well making some coding style modifications
15312 as suggested by Michael Hayes.
15314 2000-01-28 Richard Henderson <rth@cygnus.com>
15316 * flow.c (find_basic_blocks): Remove do_cleanup argument.
15317 Break out that code ...
15318 (cleanup_cfg): ... here.
15319 (commit_one_edge_insertion): Detect a return instruction being
15320 emitted to an edge. Emit a barrier following; clear fallthru.
15321 (commit_edge_insertions): Verify CFG consistency.
15322 * function.c (expand_function_start): Kill unused variable.
15323 (expand_function_end): Likewise.
15324 (thread_prologue_and_epilogue_insns): Use insert_insn_on_edge
15325 to insert the epilogue.
15327 * gcse.c (gcse_main): Adjust for find_basic_blocks change.
15328 (delete_null_pointer_checks): Likewise.
15329 * output.h: Likewise.
15330 * reg-stack.c (reg_to_stack): Likewise.
15331 * toplev.c (rest_of_compilation): Likewise. Run
15332 thread_prologue_and_epilogue_insns after rebuilding the CFG.
15334 2000-01-28 Richard Henderson <rth@cygnus.com>
15336 * Makefile.in (flow.o): Revert 24 Jan change.
15337 * flow.c (mark_regs_live_at_end): Likewise. Force BLKmode
15338 FUNCTION_VALUE result to DECL_RESULT's mode.
15340 * haifa-sched.c (schedule_insns): Don't recompute reg info
15343 2000-01-28 Zack Weinberg <zack@wolery.cumb.org>
15345 * configure.in: Make --enable-cpplib the default.
15346 * configure: Regenerate.
15347 * gcc.dg/990119-1.c: No longer expected to fail.
15349 2000-01-28 Bernd Schmidt <bernds@cygnus.co.uk>
15351 * jump.c (jump_optimize_1): Delete an optimization that is also done
15352 by merge_blocks in flow.
15354 2000-01-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15356 * diagnostic.c (build_message_string, output_printf,
15357 line_wrapper_printf): Add ATTRIBUTE_PRINTF_*.
15358 (build_location_prefix): Fix non-literal format string.
15360 2000-01-27 Richard Henderson <rth@cygnus.com>
15362 * alpha.md (trunctfsf2): New.
15364 2000-01-27 Andrew Hobson <ahobson@eng.mindspring.net>
15366 * configure.in (alpha-dec-osf5): Enable MASK_SUPPORT_ARCH.
15368 2000-01-27 Zack Weinberg <zack@wolery.cumb.org>
15370 * cppinit.c (cpp_handle_option): Recognize C++ comments under
15372 * cpplib.c (skip_block_comment, skip_line_comment): Split code
15374 (skip_comment) ... here. Permit C++ comments in system
15375 headers always. Warn about C++ comments in user code under
15376 -std=gnu89 -pedantic.
15377 (copy_comment): Use skip_comment.
15378 (cpp_skip_hspace, cpp_get_token): skip_comment can no longer
15380 (consider_directive_while_skipping, do_else, do_endif): Call
15381 validate_else unconditionally.
15382 (validate_else): Check CPP_PEDANTIC here. Accept non-comment
15383 text after the conditional in a system header.
15384 * cpplib.h (struct cpp_buffer): Add flag
15385 warned_cplusplus_comments.
15387 2000-01-27 Geoffrey Keating <geoffk@cygnus.com>
15389 * emit-rtl.c (unshare_all_rtl): Unshare virtual parameters too.
15390 Use unshare_all_rtl_1.
15391 (unshare_all_rtl_again): New function.
15392 (unshare_all_rtl_1): New function split out of unshare_all_rtl.
15394 * function.c (purge_addressof_1): Use unshare_all_rtl_again
15395 rather than resetting the 'used' flags ourself.
15397 * toplev.c (rest_of_compilation): Add current_function_decl
15398 to the unshare_all_rtl call.
15399 * tree.h: Prototype unshare_all_rtl.
15400 * rtl.h: Prototype unshare_all_rtl_again here.
15402 2000-01-27 Geoffrey Keating <geoffk@cygnus.com>
15404 * genoutput.c (output_prologue): Include ggc.h in generated
15406 * Makefile.in (insn-output.o): Depends on ggc.h.
15408 2000-01-27 Ian Dall <ian@sibyl.beware.dropbear.id.au>
15409 Hans-Peter Nilsson <hp@bitrange.com>
15411 * ns32k/xm-ns32k.h (memcpy, memset, memcmp): Delete.
15412 Remove redundant include of xm-ns32k.h.
15413 * ns32k/xm-genix.h (memcpy, memset, memcmp): Add definitions.
15414 Remove redundant include of xm-ns32k.h.
15415 * ns32k/xm-netbsd.h (memcpy, memset, memcmp): No longer undefine.
15416 Remove redundant include of xm-ns32k.h.
15417 * ns32k/netbsd.h (TARGET_DEFAULT): Enable multiply-add instructions.
15419 * ns32k/ns32k.h: Update comment on multiply-add instructions.
15420 (TARGET_SWITCHES): Add documentation strings.
15421 (DWARF_FRAME_REGNUM): Override default definition.
15422 (REG_CLASS_CONTENTS): Add comments.
15423 (SUBSET_P): Format to reduce line length.
15424 (SMALL_REGISTER_CLASSES): Make a run time option.
15425 (GO_IF_NONINDEXED_ADDRESS): Reformat.
15426 (GO_IF_LEGITIMATE_ADDRESS): Ensure that cfun is non NULL before
15427 dereferencing it. Braces to avoid "ambiguous else" were misplaced.
15428 (regclass_map): fix typo in comment.
15429 * ns32k/ns32k.c: Add spaces before parentheses for consistant style.
15430 Prefer gen_rtx_FOO(...) to gen_rtx(FOO,...).
15431 (trace, reg_or_mem_operand): Delete, unused function.
15432 (calc_address_cost): Small offsets are cheaper than large ones.
15433 (expand_block_move): Generate more efficient code when bytes is a
15434 known at compile time.
15435 * ns32k/ns32k.md: Alternate constraints for multiply-add instructions.
15436 (udivmodsi4, udivmodhi4, udivmodqi4): Use nonimmediate_operand
15437 instead of reg_or_mem_operand.
15439 * ns32k/ns32k.md: Use nonimmediate_operand or stricter for outputs,
15440 not general_operand. Similarly use "=rm" or stricter, not "=g".
15441 For input operands, use stricter constraints than "g" if not
15442 general_operand. Similarly use stricter predicate than
15443 "general_operand" when stricter constraints than "g" are present,
15444 except for matching constraints.
15445 (movstrsi): Use "memory_operand" for operands 0 and 1.
15446 (truncsiqi2, truncsihi2, trunchiqi2): Remove.
15447 (udivmoddisi4_internal): Use nonimmediate_operand for operand 0,
15448 not reg_or_mem_operand.
15449 (udivmoddisi4): Ditto.
15450 Use nonimmediate_operand for operand 1, not reg_or_mem_operand.
15451 Use nonimmediate_operand for operand 3, not register_operand.
15452 (udivmoddiqi4_internal): Use register_operand for operand 1, not
15453 reg_or_mem_operand.
15455 2000-01-27 Fred Fish <fnf@be.com>
15457 * gthr-posix.h: Fix typo; compatibily -> compatibility.
15458 * gthr-single.h: Likewise.
15459 * gthr-solaris.h: Likewise.
15460 * gthr-vxworks.h: Likewise.
15461 * gthr-win32.h: Likewise.
15462 * gthr.h: Likewise.
15464 2000-01-27 Zack Weinberg <zack@wolery.cumb.org>
15466 * cppinit.c: Add " (cpplib)" to end of string printed by
15469 2000-01-27 Richard Henderson <rth@cygnus.com>
15471 * alpha.c (alpha_emit_conditional_move): Use VOIDmode when
15472 testing for a signed comparison.
15473 (alpha_emit_floatuns): New.
15474 * alpha-protos.h: Declare it.
15475 * alpha.md (floatunsdisf2, floatunsdidf2): New.
15476 (extendsfdf2): Tidy.
15478 2000-01-27 Jakub Jelinek <jakub@redhat.com>
15480 * config/sparc/linux64.h (CC1_SPEC): If compiling -m32 with -g but
15481 no -g option specifying debugging format, default to -gstabs+.
15483 Wed Jan 26 22:19:14 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
15485 * calls.c (special_function_p): New argument fork_or_exec.
15486 (expand_call): When profile_arc_flag is set and the function
15487 is in the fork_or_exec group, call __bb_fork_func first.
15488 * libgcc2.c, _bb module (__bb_fork_func): New function.
15489 (__bb_exit_func): If fcntl F_SETLKW is available, use it to lock
15491 * config/svr4.h (TARGET_HAS_F_SETLKW): Define.
15492 * tree.h (special_function_p): Update prototype.
15494 2000-01-26 Richard Henderson <rth@cygnus.com>
15496 * alpha.c (alpha_split_tfmode_pair): New.
15497 * alpha-protos.h: Declare it.
15498 * alpha.md (abstf2, negtf2): New.
15499 (movtf insn): Add input G constraint.
15500 (movtf splitter): Use alpha_split_tfmode_pair.
15502 2000-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15504 * i386/cygwin.h: PROTO -> PARAMS.
15506 2000-01-26 Jakub Jelinek <jakub@redhat.com>
15508 * config/sparc/sparc.c (sparc_emit_float_lib_cmp): Handle
15509 TARGET_ARCH32 again. Handle ORDERED, UN* and LTGT comparisons
15510 using _Qp_cmp/_Q_cmp and testing the return value.
15511 (print_operand): Call reverse_condition_maybe_unordered if
15512 we are handling CCFPmode or CCFPEmode.
15513 Handle ORDERED, UN* and LTGT comparisons.
15514 * config/sparc/sparc.md (cmptf): Use even on TARGET_ARCH32
15515 if not TARGET_HARD_QUAD.
15516 (seq, sne, sgt, slt, sge, sle, beq, bne, bgt, blt, bge, ble,
15517 bunordered, bordered, bungt, bunlt, buneq, bunge, bunle, bltgt):
15518 Call sparc_emit_float_lib_cmp even on TARGET_ARCH32.
15519 Adjust gen_b* calls so that they reflect return comparison of
15520 sparc_emit_float_lib_cmp.
15522 2000-01-26 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
15524 * config/alpha/alpha.c (alpha_emit_xfloating_cvt): Do not assume
15525 incoming operands array is large enough for one more operand.
15526 (alpha_emit_xfloating_arith): Likewise.
15528 2000-01-25 Zack Weinberg <zack@wolery.cumb.org>
15530 * fixinc/Makefile.in (machname.h): SunOS 4 sed can't handle a
15531 file with one line and no trailing newline.
15532 Patch by Kaveh Ghazi <ghazi@caip.rutgers.edu>.
15533 * fixinc/fixtests.c (machine_name_test): Fix fencepost error
15534 checking if the match is on the line.
15535 * fixinc/gnu-regex.c: Provide regerror not __regerror.
15537 2000-01-25 Richard Henderson <rth@cygnus.com>
15539 * sparc.c (output_cbranch): Fix accidental squashing of the
15540 fp branch pre-delay nop.
15542 2000-01-25 Richard Henderson <rth@cygnus.com>
15544 * tree.def (UNNE_EXPR): Remove.
15545 * c-typeck.c (build_binary_op): Don't handle it.
15546 * expr.c (expand_expr, do_jump, do_store_flag): Likewise.
15548 * rtl.def (UNNE): Remove.
15550 * jump.c (reverse_condition): Update accordingly.
15551 (swap_condition): Likewise.
15552 (comparison_dominates_p): Handle unordered comparisons.
15553 (reverse_condition_maybe_unordered): New.
15554 * rtl.h (reverse_condition_maybe_unordered): Declare.
15556 * sparc.c (select_cc_mode): Update for UNNE/LTGT.
15557 (output_cbranch): Use reverse_condition_maybe_unordered and LTGT.
15558 * sparc.h (REVERSIBLE_CC_MODE): Always true. Update docs.
15559 * sparc.md (bltgt): New.
15561 2000-01-25 Nick Clifton <nickc@redhat.com>
15563 * emit-rtl.c (emit_insn): Only check machine class insns for
15564 improper emission of a RETURN.
15566 2000-01-25 Richard Henderson <rth@cygnus.com>
15568 * Makefile.in (flow.o): Depend on $(EXPR_H).
15569 * flow.c (mark_regs_live_at_end): Use hard_function_value, i.e.
15570 duplicate the structure of diddle_return_value for keeping regs live.
15572 2000-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
15574 * loop.c (current_loop_info): Delete.
15575 (consec_sets_invariant_p): Add loop argument, update callers.
15576 (get_condition_for_loop): Likewise.
15577 (count_nonfixed_reads, update_giv_derive): Likewise.
15578 (simplify_giv_expr, general_induction_var): Likewise.
15579 (consec_sets_giv, recombine_givs): Likewise.
15580 (move_movables): Delete loop_start and loop_end arguments,
15581 add loop argument, and update callers.
15582 (find_mem_givs, check_final_value): Likewise.
15583 (record_giv, maybe_eliminate_biv, maybe_eliminate_biv_1): Likewise.
15584 (loop_invariant_p): Rename from invariant_p, add loop argument, and
15586 (basic_induction_var): Add loop argument, delete loop_level argument,
15587 and update callers.
15588 * unroll.c (iteration_info): Delete loop_start and loop_end arguments,
15589 add loop argument, and update callers.
15590 (find_splittable_regs, find_splittable_givs): Likewise.
15591 (reg_dead_after_loop, loop_find_equiv_value): Likewise.
15592 (final_biv_value, final_giv_value, back_branch_in_range_p): Likewise.
15593 (biv_total_increment): Delete loop_start and loop_end arguments;
15595 (precondition_loop_p): Delete loop_start and loop_info arguments;
15597 * loop.h (get_condition_for_loop): Add loop argument.
15598 (biv_total_increment): Delete loop_start and loop_end arguments.
15599 (precondition_loop_p): Delete loop_start and loop_info arguments;
15601 (final_biv_value): Delete loop_start and loop_end arguments;
15603 (final_giv_value, back_branch_in_range_p): Likewise.
15605 2000-01-25 Gavin Romig-Koch <gavin@cygnus.com>
15607 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Fix for mips16.
15609 2000-01-25 Gavin Romig-Koch <gavin@cygnus.com>
15611 * Makefile.in (c-gperf.h) : Change the "See" pointer to
15612 point to the new "generated_files" doc.
15614 2000-01-25 Clinton Popetz <cpopetz@cygnus.com>
15616 * config/fp-bit.c (_unord_f2): Fix typo.
15618 2000-01-25 Zack Weinberg <zack@wolery.cumb.org>
15620 * c-common.c, c-decl.c, c-lang.c, c-lex.c, c-parse.in, c-pragma.c,
15621 c-typeck.c, objc/objc-act.c: Remove all references to obstack
15622 functions obsoleted by GC, such as push_obstacks_nochange,
15623 end_temporary_allocation, savealloc, saveable_tree_cons, etc.
15624 and code which existed only to decide whether or not to call
15625 them. Remove now-unused NESTED argument from start_function;
15626 all callers changed. Do not change behavior based on ggc_p.
15627 The use of the ixp_obstack in c-iterate.c and the util_obstack
15628 in objc/objc-act.c remain; these are not obsoleted by garbage
15630 * c-tree.h: Update prototype for start_function.
15632 * c-parse.y, c-parse.c, objc/objc-parse.c, objc/objc-parse.y: Rebuild.
15634 2000-01-25 Clinton Popetz <cpopetz@cygnus.com>
15636 * config/mips/mips.md (zero_extendsidi2_internal): Disable for
15639 2000-01-25 Richard Henderson <rth@cygnus.com>
15641 * sparc-protos.h (select_cc_mode): Declare.
15642 * sparc.c (select_cc_mode): New. Handle unordered compares.
15643 (output_cbranch): Always reverse via code change. Handle
15644 unordered compares. Factor tests and string updates.
15645 * sparc.h (SELECT_CC_MODE): Split out to select_cc_mode.
15646 (REVERSIBLE_CC_MODE): Also exclude CCFPmode.
15647 * sparc.md (bunordered, bordered): New.
15648 (bungt, bunlt, buneq, bunge, bunle): New.
15650 2000-01-25 Richard Henderson <rth@cygnus.com>
15652 * dwarf2out.c (dwarf2out_init): Use ggc_add_rtx_varray_root.
15653 * ggc-common.c (ggc_add_rtx_varray_root): New.
15654 (ggc_mark_rtx_varray): New.
15655 (ggc_mark_rtx_varray_ptr): New. Shift all ggc_mark_foo_ptr
15656 functions down below ggc_mark_foo.
15657 * ggc.h (ggc_add_rtx_varray_root, ggc_mark_rtx_varray): Declare.
15659 2000-01-25 Richard Henderson <rth@cygnus.com>
15661 * alpha.c (secondary_reload_class): Don't allocate a secondary
15662 for integral mode memories into FLOAT_REGS. Rearrange the more
15663 complicated memory expression inward.
15665 2000-01-25 Zack Weinberg <zack@wolery.cumb.org>
15667 * inclhack.def: Fixes to play nicer with FreeBSD, and
15668 corrections to comments.
15669 (cxx_unready): Add select expression.
15670 (irix_sockaddr): Add bypass expression.
15671 (machine_ansi_h_va_list): New fix.
15672 (stdio_va_list): No need to edit _BSD_VA_LIST_.
15673 Split out addition of "#include <stdarg.h>" to...
15674 (stdio_stdarg_h): ... here.
15675 (systypes_for_aix): Rename to systypes_stdlib_size_t. Apply
15676 to stdlib.h also. Do not munge _BSD_SIZE_T_.
15677 (sysz_stdlib_for_sun): Delete duplicate fix for unprotected
15679 (ultrix_ifdef): Tighten up select expression.
15681 * fixincl.tpl: Exorcise 'exesel'. Rewrite calculations of
15682 re_ct and max_mach to avoid use of shell. Make printed names
15683 match names in inclhack.def. Use static copyright date.
15684 Don't count c_test and test expressions as requiring regex_t
15685 slots. Add some commentary.
15686 * inclhack.tpl: Do not include the 'This script contains N
15687 fixup scripts' line if PROGRAM is defined. Use static
15690 2000-01-24 Jason Merrill <jason@casey.cygnus.com>
15692 * dwarf2out.c: include "varray.h", not dyn-string.h.
15693 (ASM_OUTPUT_DWARF2_ADDR_CONST, ASM_NAME_TO_STRING): Lose.
15694 (addr_const_to_string, addr_to_string): Lose.
15695 (ASM_OUTPUT_DWARF_ADDR_CONST): Copy from dwarfout.c.
15696 (struct dw_val_struct): val_addr is now an rtx.
15697 (add_AT_addr, AT_addr, free_AT, output_aranges): Adjust.
15698 (used_rtx_varray): New varray.
15699 (dwarf2out_init): Initialize it.
15700 (save_rtx): New fn.
15701 (mem_loc_descriptor, add_const_value_attribute): Call it instead of
15703 * arm/telf.h, arm/unknown-elf.h, mn10200.h, mn10300.h,
15704 sparc/sp64-elf.h: Remove definition of ASM_OUTPUT_DWARF2_ADDR_CONST.
15705 * Makefile.in (dwarf2out.o): Update dependencies.
15707 2000-01-24 Richard Henderson <rth@cygnus.com>
15709 * i386.c (i386_dwarf_output_addr_const): New.
15710 * i386.h (ASM_OUTPUT_DWARF_ADDR_CONST): New.
15712 * dwarf2out.c (mem_loc_descriptor): Call ASM_SIMPLIFY_DWARF_ADDR
15714 * dwarfout.c (output_mem_loc_descriptor): Likewise.
15715 * i386.c (i386_simplify_dwarf_addr): New.
15716 * i386.h (ASM_SIMPLIFY_DWARF_ADDR): New.
15718 Mon Jan 24 16:56:10 2000 Jim Wilson <wilson@cygnus.com>
15720 * dwarf2out.c (gen_struct_or_union_type_die): Set complete if
15721 TYPE_STUB_DECL is NULL.
15723 2000-01-24 Richard Henderson <rth@cygnus.com>
15725 * builtins.c (expand_tree_builtin): Move ...
15726 * c-common.c (expand_tree_builtin): ... here.
15728 2000-01-25 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
15730 * loop.h (LOOP_INFO): New accessor macro.
15731 * basic-block.h (struct loop): Rename field `info' to `aux'.
15732 * loop.c (scan_loop): Replace loop->info with LOOP_INFO (loop).
15733 (prescan_loop, strength_reduce, check_dbra_loop, insert_bct): Likewise.
15734 * unroll.c (loop_iterations, unroll_loop): Likewise.
15736 2000-01-24 Christopher Faylor <cgf@cygnus.com>
15738 * config/i386/t-cygwin: Accomodate new winsup directory layout
15739 when searching for include files.
15741 2000-01-24 Richard Henderson <rth@cygnus.com>
15743 * rtl.def: Add unordered fp comparisions.
15744 * tree.def: Likewise.
15745 * tree.h: Add ISO C 9x unordered fp comparision builtins.
15747 * builtins.c (expand_tree_builtin): New function.
15748 * c-typeck.c (build_function_call): Use it.
15749 (build_binary_op): Support unordered compares.
15750 * c-common.c (c_common_nodes_and_builtins): Add unordered compares.
15752 * combine.c (known_cond): Handle reverse_condition returning UNKNOWN.
15753 (reversible_comparison_p): Allow UNORDERED/ORDERED to be reversed.
15754 * cse.c (fold_rtx): Check FLOAT_MODE_P before reversing.
15755 (record_jump_equiv): Handle reverse_condition returning UNKNOWN.
15756 * jump.c (reverse_condition): Don't abort for UNLE etc, but
15758 (swap_condition): Handle unordered compares.
15759 (thread_jumps): Check can_reverse before reversing.
15760 * loop.c (get_condition): Likewise. Allow UNORERED/ORDERED to be
15763 * optabs.c (can_compare_p): New argument CODE. Verify branch or
15764 setcc is present before acking for cmp_optab. Update all callers.
15765 (prepare_float_lib_cmp, init_optabs): Handle UNORDERED.
15766 * expmed.c (do_cmp_and_jump): Update for can_compare_p.
15767 * expr.c (expand_expr): Likewise. Support unordered compares.
15768 (do_jump, do_store_flag): Likewise.
15769 * expr.h (enum libfunc_index): Add unordered compares.
15771 * Makefile.in (FPBIT_FUNCS): Add _unord_sf.
15772 (DPBIT_FUNCS): Add _unord_df.
15773 * config/fp-bit.c (_unord_f2): New.
15774 * fp-test.c (main): Try unordered compare builtins.
15776 * alpha-protos.h (alpha_fp_comparison_operator): Declare.
15777 * alpha.c (alpha_comparison_operator): Check mode properly.
15778 (alpha_swapped_comparison_operator): Likewise.
15779 (signed_comparison_operator): Likewise.
15780 (alpha_fp_comparison_operator): New.
15781 (alpha_emit_conditional_branch): Handle unordered compares.
15782 * alpha.h (PREDICATE_CODES): Update.
15783 * alpha.md (fp compares): Use alpha_fp_comparison_operator.
15784 (bunordered, bordered): New.
15786 2000-01-24 Richard Henderson <rth@cygnus.com>
15788 * alpha.c (alpha_emit_xfloating_cvt): Thinko in operand manipulation.
15789 * alpha.md (movtf): New expander, insn, and splitter.
15791 Mon Jan 24 19:49:47 MET 2000 Jan Hubicka <jh@suse.cz>
15793 * reg-stack.c (subst_stack_regs_pat): Handle correctly USEs of
15796 Mon Jan 24 17:37:31 MET 2000 Jan Hubicka <jh@suse.cz>
15798 * i386.h (FIRST_PSEUDO_REGISTER): Set to 21.
15799 (FIXED_REGISTERS, CALL_USED_REGISTERS,
15800 REG_ALLOC_ORDER): Add frame pointer
15801 (FRAME_POINTER_REGNUM): Set to 20
15802 (HARD_FRAME_POINTER_REGNUM): New macro.
15803 (ELIMINABLE_REGS): Eliminate ARG_POINTER and FRAME_POINTER
15804 to HARD_FRAME_POINTER.
15805 (REGNO_OK_FOR_BASE_P): Accept FRAME_POINTER_REGNUM
15806 (REG_OK_FOR_INDEX_NONSTRICT_P): Likewise.
15807 (REG_OK_FOR_BASE_NONSTRICT_P): Likewise.
15808 (HI_REGISTER_NAMES): Add "frame".
15809 (CAN_ELIMINATE): Handle FRAME_POINTER_REGNUM elimination.
15810 (debug_reg): Handle FRAME_POINTER_REGNUM.
15811 (reg_class): Add arg pointer and frame pointer to NON_Q_REGS,
15812 GENERAL_REGS and INDEX_REGS.
15813 * i386.c (SAVED_REGS_FIRST): new macro.
15814 (AT_BP): Use hard_frame_pointer_rtx instead of frame_pointer_rtx
15815 (ix86_decompose_address, memory_address_length): Likewise.
15816 (regclass_map): Add frame pointer.
15817 (call_insn_operand): Handle frame_pointer_rtx.
15818 (reg_no_sp_operand): Likewise.
15819 (ix86_decompose_address): Handle frame_pointer_rtx as stack_pointer_rtx.
15820 (print_operand, legitimize_pic_address): Fix formating.
15821 (ix86_compute_frame_size): Make static, update prototype, new
15822 parameters padding1, padding2, use ix86_nsaved_regs, use
15823 stack_alignment_needed.
15824 (ix86_initial_elimination_offset): Handle FRAME_POINTER_REGNUM
15825 to HARD_FRAME_POINTER_REGNUM conversions.
15826 (ix86_expand_prologue): Handle SAVED_REGS_FIRST prologues.
15827 (ix86_expand_epilogue): Handle SAVED_REGS_FIRST epilogues.
15828 (print_reg): Abort on FRAME_POINTER_REGNUM
15830 Mon Jan 24 16:50:08 MET 2000 Jan Hubicka <jh@suse.cz>
15832 * i386.h (PREDICATE_CODES): Add aligned_operand.
15833 * i386.c (aligned_operand): New function.
15834 (ix86_aligned_p): Kill.
15835 * i386.md (movhi_1): Emit mov for aligned operands.
15836 (promoting peep2s): Use aligned_operand.
15838 2000-01-23 Zack Weinberg <zack@wolery.cumb.org>
15840 * fixinc/fixfixes.c (fix_char_macro_uses): Correct regular
15841 expression to allow underscores in macro names.
15842 (fix_char_macro_defines): Increment scanning pointer.
15844 2000-01-23 Richard Henderson <rth@cygnus.com>
15846 * alpha/osf.h (TARGET_HAS_XFLOATING_LIBS): Define.
15847 * alpha/osf5.h: New file.
15848 * configure.in (alpha-*-osf5): Add it to tm_file.
15850 * emit-rtl.c (operand_subword): Support TFmode on a 64-bit target.
15852 * alpha-protos.h (alpha_emit_xfloating_arith): Declare.
15853 (alpha_emit_xfloating_cvt, function_arg): Declare.
15854 * alpha.c (alpha_emit_conditional_branch): Call
15855 alpha_emit_xfloating_compare for TFmode compares.
15856 (alpha_lookup_xfloating_lib_func): New.
15857 (alpha_compute_xfloating_mode_arg): New.
15858 (alpha_emit_xfloating_libcall): New.
15859 (alpha_emit_xfloating_arith): New.
15860 (alpha_emit_xfloating_compare): New.
15861 (alpha_emit_xfloating_cvt): New.
15862 (print_operand): Add default abort case.
15863 (function_arg): Mind FUNCTION_ARG_PASS_BY_REFERENCE.
15864 * alpha.h (TARGET_HAS_XFLOATING_LIBS): New.
15865 (BIGGEST_ALIGNMENT): Increase to 128 bits.
15866 (RETURN_IN_MEMORY): True for TF/TCmode.
15867 (ALPHA_ARG_SIZE): TF/TCmode is passed indirect.
15868 (FUNCTION_ARG): Move to function_arg.
15869 (FUNCTION_ARG_PASS_BY_REFERENCE): New.
15870 (ASM_OUTPUT_LONG_DOUBLE): New.
15871 (ASM_OUTPUT_DOUBLE): Always output bits.
15872 * alpha.md (addtf3, divtf3, multf3, subtf3, cmptf): New.
15873 (fix_trunctfdi2, floatditf2, floatunsditf2): New.
15874 (extenddftf2, trunctfdf2): New.
15876 2000-01-23 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
15878 * config/sparc/sol2-sld-64.h (TRANSFER_FROM_TRAMPOLINE): Moved...
15879 * config/sparc/sol2.h: ... here.
15881 2000-01-24 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
15883 * basic-block.h (struct loops): New field `levels'.
15884 * flow.c (flow_loops_level_compute): Traverse all outer loops.
15885 (flow_loop_level_compute): Initialise level to 1.
15886 (flow_loops_find): Set loops->levels.
15887 (flow_loops_dump): Print loops->levels.
15889 2000-01-23 Richard Henderson <rth@cygnus.com>
15891 * libgcc2.c (dwarf_reg_size_table): Size with DWARF_FRAME_REGISTERS.
15892 (throw_helper): Iterate over DWARF_FRAME_REGISTERS.
15894 2000-01-23 Richard Henderson <rth@cygnus.com>
15896 * i386.c (dbx_register_map, svr4_dbx_register_map): New.
15897 * i386.h (DBX_REGISTER_NUMBER): Use them.
15898 * i386/beos-elf.h, i386/freebsd-elf.h, i386/i386elf.h: Likewise.
15899 * i386/linux.h, i386/osfrose.h, i386/ptx4-i.h: Likewise.
15900 * i386/rtemself.h, i386/sco5.h, i386/sysv4.h: Likewise.
15901 * i386/sequent.h: Kill incorrect comment.
15903 2000-01-23 Mark Mitchell <mark@codesourcery.com>
15905 * ggc-page.c (struct page_entry): Make `context_depth' an
15907 (struct globals): Likewise.
15909 2000-01-23 Clinton Popetz <cpopetz@cygnus.com>
15911 * loop.c (check_dbra_loop): When checking a loop for
15912 reversability, check the source of any stores to ensure
15913 they don't depend on an initial value.
15915 2000-01-23 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
15917 * config/c4x/c4x.h (ASM_OUTPUT_BSS): Redefine.
15919 2000-01-22 Zack Weinberg <zack@wolery.cumb.org>
15921 * fixinc/fixincl.c: Move declarations of 'pz_fname' and
15922 'pz_scan' into scope of entire function. Only affects
15923 compiles with -DDEBUG.
15925 2000-01-22 Alan Modra <alan@SPRI.Levels.UniSA.Edu.Au>
15927 * config/elfos.h (UNIQUE_SECTION): Restore uninitialised data
15928 section naming to that prior to 2000-01-07 patch.
15929 * config/mips/elf.h (UNIQUE_SECTION): Ditto.
15930 * config/mips/elf64.h (UNIQUE_SECTION): Ditto.
15931 * config/mips/iris6gld.h (UNIQUE_SECTION): Ditto.
15932 * config/i386/interix.c (UNIQUE_SECTION): Ditto.
15933 * config/i386/winnt.c (UNIQUE_SECTION): Ditto.
15935 2000-01-22 Bernd Schmidt <bernds@cygnus.co.uk>
15937 * config/arm/arm.c (soft_df_operand): Reject SUBREGs containing a
15940 2000-01-21 Jim Wilson <wilson@cygnus.com>
15942 * fixinc/inclhack.tpl: Test for directory before trying to cd into it.
15943 * fixinc/fixincl.sh, fixinc/inclhack.sh: Regenerate.
15945 2000-01-21 Zack Weinberg <zack@wolery.cumb.org>
15947 * cpphash.c (change_newlines): Delete function.
15948 (struct argdata): Delete 'newlines' and 'use_count' fields.
15949 (macroexpand): Remove code referencing those fields.
15951 2000-01-22 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
15953 * loop.c (loops_info): New variable.
15954 (loop_optimize): Allocate loops->array and free it on exit.
15955 Allocate memory for loops_info and assign to each loop,
15957 (find_and_verify_loops): Do not allocate loops->array.
15959 2000-01-21 Zack Weinberg <zack@wolery.cumb.org>
15961 * fixinc/fixfixes.c (machine_name_fix): Don't free 'scratch'.
15963 2000-01-21 Jakub Jelinek <jakub@redhat.com>
15965 * config/sparc/sparc.md (movsi_pic_label_ref): Avoid creating new
15966 pseudos if expanded after first flow.
15967 (movdi_pic_label_ref): Likewise.
15969 2000-01-20 Richard Henderson <rth@cygnus.com>
15971 * jump.c (jump_optimize_1): Don't do addr_vec optimizations at -O0.
15973 2000-01-20 Zack Weinberg <zack@wolery.cumb.org>
15975 * Makefile.in (fixinc.sh): Depend on specs.
15976 * fixinc/Makefile.in: Add rule to create machname.h.
15977 (fixlib.o): Depend on machname.h.
15978 * fixinc/fixtests.c (machine_name): New test.
15979 * fixinc/fixfixes.c (machine_name): New fix.
15980 * fixinc/fixlib.c (mn_get_regexps): New helper function for
15981 the machine_name test and fix.
15982 * fixinc/fixlib.h: Prototype it.
15983 * fixinc/inclhack.def (machine_name): Use the C test and fix.
15984 * fixinc/fixincl.x, fixinc/inclhack.sh: Rebuild.
15986 * gcc.c (do_spec_1) [case P]: Take care not to create
15987 identifiers with three leading or trailing underscores.
15989 * fixinc/Makefile.in (FIXINC_DEFS): Add -DIN_GCC.
15990 (fixincl): Don't specify libraries twice on link line.
15991 (gnu-regex.o): Remove special rule.
15992 * fixinc/gnu-regex.c: Define REGEX_MALLOC if C_ALLOCA was
15993 defined by config.h. Do not define _REGEX_RE_COMP.
15994 (regcomp): Allocate and initialize a fastmap.
15995 * fixinc/gnu-regex.h: Do not define _REGEX_RE_COMP.
15997 2000-01-20 Brad Lucier <lucier@math.purdue.edu>
15999 * Makefile.in (predict.o): Depend on $(EXPR_H), not expr.h.
16001 2000-01-19 Richard Henderson <rth@cygnus.com>
16003 * flow.c (propagate_block): Replace FIRST, LAST and BNUM
16004 arguments with BB. Update all callers. Tidy line wrapping.
16006 2000-01-19 Clinton Popetz <cpopetz@cygnus.com>
16008 * emit-rtl.c (try_split): Return last_insn if we split the
16011 Thu Jan 20 01:01:23 MET 2000 Jan Hubicka <jh@suse.cz>
16013 * i386-protos.h (ix86_compute_frame_size): Remove prototype.
16014 (ix86_initial_elimination_offset): Declare.
16015 * i386.c (ix86_nsaved_regs): Break out from ...
16016 (ix86_can_use_return_insn_p): ... here.
16017 (ix86_emit_save_regs): Break out from ...
16018 (ix86_expand_prologue): ... here.
16019 (ix86_emit_epilogue_esp_adjustment, ix86_emit_restore_regs): Break
16021 (ix86_expand_epilogue): ... here.
16022 (ix86_compute_frame_size): Make static, add prototype.
16023 (ix86_initial_elimination_offset): Break out from ...
16024 * i386.h (INITIAL_ELIMINATION_OFFSET): ... here.
16026 2000-01-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16028 * recog.h (OUT_FCN): Delete.
16030 * vax.md: Call `get_insn_template' instead of OUT_FCN.
16032 2000-01-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16034 * cppalloc.c: PROTO -> PARAMS.
16035 * cpperror.c: Likewise.
16036 * cppfiles.c: Likewise.
16037 * cpplib.c: Likewise.
16038 * cpplib.h: Likewise.
16040 * config/arm/arm-protos.h: PROTO -> PARAMS.
16041 * config/arm/arm.c: Likewise.
16042 * config/c4x/c4x.c: Likewise.
16043 * config/fr30/fr30-protos.h: Likewise.
16044 * config/nextstep.c: Likewise.
16045 * config/pa/pa.c: Likewise.
16046 * config/pj/pj.c: Likewise.
16047 * config/rs6000/rs6000.c: Likewise.
16048 * config/v850/v850-protos.h: Likewise.
16049 * config/v850/v850.c: Likewise.
16051 2000-01-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16053 * i370-protos.h: New file.
16055 * i370.c: Include tm_p.h. Fix compile time warnings.
16057 * i370.h: Move prototypes to i370-protos.h. Fix compile time
16060 * i370.md: Likewise.
16062 2000-01-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16064 * real.c (enan, einan, eiisnan, eiisneg, make_nan): Wrap in NANS.
16065 (target_isinf, target_isnan, eisnan): Mark parameter with
16067 (eiisinf): Wrap in INFINITY.
16068 (etoe113, etoe64, etoe53, etoe24): Wrap label `nonorm' in INFINITY.
16069 (ibmtoe): Remove unused variable `rndsav'.
16071 Wed Jan 19 20:23:06 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
16073 * sh.h (PASS_IN_REG_P): Remove extraneous paranthesis.
16074 (GO_IF_LEGITIMATE_ADDRESS): Added missing tab.
16076 2000-01-19 Zack Weinberg <zack@wolery.cumb.org>
16078 * fixinc/Makefile.in: Correct dependencies of fixincl and fixincl.o.
16079 * fixinc/fixfixes.c (IO_use, CTRL_use, IO_defn, CTRL_defn): New fixes.
16080 (fix_char_macro_defines, fix_char_macro_uses): New functions.
16082 * fixinc/fixlib.c (is_cxx_header): Do the text scan with a regexp.
16083 Recognize Emacs mode markers also.
16084 * fixinc/fixtests.c (else_endif_label): Fix bug in recognition of
16085 C++ comments in C++ headers. Call is_cxx_header only if
16088 * fixinc/inclhack.def (avoid_bool): Add select for the problem and
16089 bypass for ncurses.
16090 (bsd43_io_macros, io_def_quotes, ioctl_fix_ctrl): Replace with...
16091 (io_def_quotes, io_use_quotes, ctrl_def_quotes, ctrl_use_quotes):
16092 ... these, which use the new C fixes.
16093 (math_exception): Escape literal '+' in bypass expression.
16095 * fixinc/fixincl.x, fixinc/fixincl.sh, fixinc/inclhack.sh:
16098 2000-01-19 Geoff Keating <geoffk@cygnus.com>
16100 * rtlanal.c (reg_referenced_p): A CLOBBER of a MEM uses any REGs
16103 2000-01-20 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
16105 * loop.c (loop_optimize): Allocate loop_info structure for each loop
16106 prior to calling scan_loop.
16108 Wed Jan 19 19:54:38 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
16110 * sh.c (find_barrier, gen_block_redirect): Fix indentation.
16111 (split_branches, calc_live_regs): Likewise.
16113 Wed Jan 19 19:12:36 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
16115 * sh.md (fpu_single, fp_mode): New attributes.
16117 2000-01-20 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
16119 * loop.c (current_loop_info): Renamed from loop_info_data
16120 and changed to a pointer.
16121 (loop_optimize): Allocate loop_info structure for each loop
16122 and initialise to zero.
16123 (scan_loop): Set current_loop_info.
16125 * unroll.c (loop_iterations): Don't abort if REG_USERVAR_P set
16128 2000-01-19 Richard Henderson <rth@cygnus.com>
16130 * stupid.c: Die die die.
16131 * Makefile.in (OBJS): Remove stupid.o.
16132 (stupid.o): Likewise.
16134 * except.c (emit_eh_context): Don't emit USEs for stupid.
16135 * explow.c (probe_stack_range): Likewise.
16136 * flags.h (obey_regdecls): Remove.
16137 * flow.c (find_basic_blocks): Don't run try_merge_blocks
16138 when not optimizing.
16139 (life_analysis): Limit data collection when not optimizing.
16140 (mark_regs_live_at_end): Always mark the return value registers.
16141 (mark_used_regs): Remove dummy RETURN case.
16142 (print_rtl_with_bb): Don't consult obey_regdecls.
16143 * function.c (use_variable, use_variable_after): Remove.
16144 (assign_parms): Consult optimize not obey_regdecls.
16145 (expand_function_start): Don't emit USEs for stupid.
16146 (expand_function_end): Likewise.
16147 * global.c (build_insn_chain): Export.
16148 * integrate.c (expand_inline_function): Kill return-value USE
16150 * jump.c (jump_optimize_1): Do simple jump optimizations and
16151 dead code elimination.
16152 (calculate_can_reach_end): Remove check_deleted argument.
16153 (delete_insn): Patch out insns even when not optimizing.
16154 * local-alloc.c (block_alloc): Don't do tying when not optimizing.
16155 * rtl.h (use_variable, use_variable_after): Remove declarations.
16156 (build_insn_chain): Declare.
16157 * stmt.c (expand_value_return): Don't emit USEs for stupid.
16158 (expand_end_bindings): Likewise.
16159 (expand_decl): Likewise. Consult optimize not obey_regdecls.
16160 * toplev.c (obey_regdecls): Remove.
16161 (rest_of_compilation): Don't set it. Kill stupid in favour of
16162 flow1, local-alloc, and reload.
16163 (main): Don't set obey_regdecls.
16165 * config/nextstep.c (handle_pragma): Likewise.
16167 * alpha/alpha.md (allocate_stack): Don't emit USEs for stupid.
16169 * arm/arm.h (CONDITIONAL_REGISTER_USAGE): Don't fix reg 0 for stupid.
16171 2000-01-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16173 * alpha-protos.h: PROTO -> PARAMS.
16174 * alpha.c: Likewise.
16176 * h8300.c: Likewise.
16177 * i386-protos.h: Likewise.
16178 * i386.c: Likewise.
16179 * m32r-protos.h: Likewise.
16180 * m32r.c: Likewise.
16181 * mips.c: Likewise.
16182 * mips.md: Likewise.
16183 * gmon-sol2.c: Likewise.
16184 * sparc.c: Likewise.
16186 2000-01-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16188 * ns32k-protos.h: New file.
16190 * ns32k.c: Fix compile time warnings.
16192 * ns32k.h: Move prototypes to ns32k-protos.h. Fix compile time
16195 * ns32k.md: Likewise.
16197 2000-01-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16199 * vax-protos.h: New file.
16201 * vax.c: Fix compile time warnings.
16203 * vax.h: Move prototypes to vax-protos.h. Fix compile time
16206 * vax.md: Likewise.
16208 * vaxv.md: Likewise.
16210 2000-01-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16212 * romp-protos.h: New file.
16214 * romp.c: Fix compile time warnings.
16216 * romp.h: Move prototypes to romp-protos.h. Fix compile time
16219 * romp.md: Likewise.
16221 2000-01-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16223 * we32k-protos.h: New file.
16225 * we32k.c: Fix compile time warnings.
16227 * we32k.h: Move prototypes to we32k-protos.h. Fix compile time
16230 2000-01-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16232 * calls.c (emit_call_1): Mark parameter with ATTRIBUTE_UNUSED.
16234 * except.c (eh_regs): Likewise.
16236 * final.c (output_operand): Likewise.
16238 * fold-const.c (target_isinf, target_isnan): Likewise.
16240 Tue Jan 18 16:19:55 MET 2000 Jan Hubicka <hubicka@freesoft.cz>
16242 * i386.h (BIGGEST_ALIGNMENT): Set to 128.
16243 (BIGGEST_FIELD_ALIGNMENT): Set to (TARGET_ALIGN_DOUBLE ? 64 : 32)
16245 * i386.md (memstr): Do not use rep stosb for counts divisible by 4
16246 when optimize_size.
16247 (clrstrsi): Rewrite.
16248 (strsethi, strsetqi): New expanders.
16249 (strsethi_1, strsetqi_1, rep_stossi, rep_stosqi): New insn patterns.
16250 (cmpstrsi): Emit compare insn before cmpstrsi_1
16251 (cmpstrsi_nz): use flags, set type to str, prefix_length to 1.
16252 (strlensi_1): Likewise.
16253 (cmpstrsi_1): Likewise; do not output compare.
16254 (strlen expander): Do not unroll when optimizing for size.
16255 (*subsi3_carry): Rename to subsi3_carry
16256 (addqi3_cc): New pattern.
16257 * i386.h (processor_costs): Add move_ratio field.
16258 (MOVE_RATIO): Use move_ratio field, set to 3 for OPTIMIZE_SIZE
16259 * i386.c (*_cost): Set move_ratio.
16260 (x86_unroll_strlen): Enable for Athlon, PPro and K6 too.
16261 (x86_expand_strlensi_1): Rewrite the main loop.
16263 2000-01-17 Richard Henderson <rth@cygnus.com>
16265 * combine.c (combine_simplify_rtx): Give FLOAT_STORE_FLAG_VALUE a mode.
16266 * cse.c (find_comparison_args, fold_rtx): Likewise.
16267 * integrate.c (subst_constants): Likewise.
16268 * loop.c (get_condition): Likewise.
16270 * tm.texi (FLOAT_STORE_FLAG_VALUE): Update docs.
16272 * alpha.h (FLOAT_STORE_FLAG_VALUE): Use REAL_VALUE_ATOF.
16274 2000-01-18 Martin v. Löwis <loewis@informatik.hu-berlin.de>
16276 * c-parse.in (SAVE_WARN_FLAGS): Create an INTEGER_CST.
16277 (RESTORE_WARN_FLAGS): Unpack it.
16278 Change semantic type of extension to ttype.
16279 * c-common.c (split_specs_attrs): Expect an INTEGER_CST.
16280 * c-parse.y, c-parse.c, objc/objc-parse.y,
16281 objc/objc-parse.c: Regenerate.
16283 2000-01-17 Zack Weinberg <zack@wolery.cumb.org>
16285 * fixinc/fixlib.c: Add copyright notice.
16286 (compile_re): New function.
16287 * fixinc/fixlib.h: Prototype compile_re.
16289 * fixinc/fixfixes.c, fixinc/fixtests.c, fixinc/fixincl.c:
16290 Use compile_re to compile regular expressions.
16292 * fixinc/fixincl.c (egrep_test): Don't bother asking regexec
16293 where the pattern matched.
16295 * fixinc/inclhack.def (sun_memcpy): Move to AAB_sun_memcpy,
16297 (ultrix_ansi_compat): Likewise.
16298 (interactv_add1): Rename to 'isc_omits_with_stdc', remove shell test,
16300 (interactv_add2, interactv_add3): Delete.
16301 (x11_sprintf): Don't use filename glob.
16302 * fixinc/fixincl.x, fixinc/inclhack.sh, fixinc/fixincl.sh:
16305 2000-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16307 * print-rtl.c: PROTO -> PARAMS.
16308 * real.c: Likewise.
16309 * reg-stack.c: Likewise.
16310 * resource.c: Likewise.
16311 * sdbout.h: Likewise.
16312 * simplify-rtx.c: Likewise.
16313 * stor-layout.c: Likewise.
16314 * stupid.c: Likewise.
16315 * xcoffout.c: Likewise.
16316 * xcoffout.h: Likewise.
16318 2000-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16320 * toplev.c: PROTO -> PARAMS.
16321 * toplev.h: Likewise.
16322 * tree.c: Likewise.
16323 * tree.h: Likewise.
16324 * unroll.c: Likewise.
16325 * varasm.c: Likewise.
16326 * varray.c: Likewise.
16327 * varray.h: Likewise.
16329 2000-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16331 * reload.c: PROTO -> PARAMS.
16332 * reload.h: Likewise.
16333 * reload1.c: Likewise.
16334 * reorg.c: Likewise.
16335 * resource.h: Likewise.
16338 * rtlanal.c: Likewise.
16339 * sbitmap.h: Likewise.
16340 * sdbout.c: Likewise.
16341 * stack.h: Likewise.
16342 * stmt.c: Likewise.
16343 * system.h: Likewise.
16345 2000-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16347 * machmode.h: PROTO -> PARAMS.
16348 * mbchar.h: Likewise.
16349 * mips-tdump.c: Likewise.
16350 * mips-tfile.c: Likewise.
16351 * optabs.c: Likewise.
16352 * output.h: Likewise.
16353 * prefix.c: Likewise.
16354 * profile.c: Likewise.
16355 * protoize.c: Likewise.
16356 * real.h: Likewise.
16357 * recog.c: Likewise.
16358 * recog.h: Likewise.
16359 * regclass.c: Likewise.
16360 * regmove.c: Likewise.
16361 * regs.h: Likewise.
16363 2000-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16365 * ggc-common.c: PROTO -> PARAMS.
16366 * ggc-page.c: Likewise.
16367 * ggc-simple.c: Likewise.
16369 * global.c: Likewise.
16370 * graph.c: Likewise.
16371 * gthr-win32.h: Likewise.
16372 * haifa-sched.c: Likewise.
16373 * halfpic.h: Likewise.
16374 * integrate.c: Likewise.
16375 * integrate.h: Likewise.
16376 * jump.c: Likewise.
16378 * local-alloc.c: Likewise.
16379 * loop.c: Likewise.
16380 * loop.h: Likewise.
16382 2000-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16384 * genattr.c: PROTO -> PARAMS.
16385 * genattrtab.c: Likewise.
16386 * gencheck.c: Likewise.
16387 * gencodes.c: Likewise.
16388 * genconfig.c: Likewise.
16389 * genemit.c: Likewise.
16390 * genextract.c: Likewise.
16391 * genflags.c: Likewise.
16392 * gengenrtl.c: Likewise.
16393 * genopinit.c: Likewise.
16394 * genoutput.c: Likewise.
16395 * genpeep.c: Likewise.
16396 * genrecog.c: Likewise.
16398 2000-01-16 Mark Mitchell <mark@codesourcery.com>
16400 * tree.h (BINFO_VPTR_FIELD): Augment documentation.
16402 2000-01-16 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
16404 * aclocal.m4 (AC_FUNC_MMAP_ZERO): New macro.
16405 * configure.in (AC_FUNC_MMAP_ZERO): Use instead of AC_FUNC_MMAP.
16406 * ggc-page.c: Replace HAVE_MMAP with HAVE_MMAP_ZERO.
16407 * configure, config.in: Rebuilt.
16409 2000-01-16 Zack Weinberg <zack@wolery.cumb.org>
16411 * config/i386/i386.md: Add peephole to merge successive stack
16414 Sat Jan 15 15:41:14 EST 2000 John Wehle (john@feith.com)
16416 * gcse.c (insert_insn_end_bb): Use emit_block_insn_before
16417 instead of emit_insn_before. Also handle NOTE_INSN_BASIC_BLOCK
16418 when walking backwards to find all the parameter loads when
16419 the basic block ends in a call.
16421 2000-01-15 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
16423 * loop.c (this_loop_info): Delete.
16424 (uid_loop): Add in place of uid_loop_num. All uses updated.
16425 (loop_number_exit_count): Delete and replace with entry in loop
16426 structure. All uses updated.
16427 (loop_number_loop_starts, loop_number_loop_ends): Likewise.
16428 (loop_number_loop_cont, loop_number_cont_dominator): Likewise.
16429 (loop_outer_loop): Likewise.
16430 (loop_invalid, loop_number_exit_labels): Likewise.
16431 (loop_used_count_register): Delete and replace with entry in
16432 loop_info structure.
16433 (find_and_verify_loops): Add loops argument.
16434 (verify_dominator, mark_loop_jump, prescan_loop): Replace loop_start,
16435 loop_end, etc. arguments with loop structure pointer. All callers
16437 (loop_reg_used_before_p, scan_loop, strength_reduce): Likewise.
16438 (check_dbra_loop, next_insn_in_loop, try_copy_prop): Likewise.
16439 (load_mems_and_recount_loop_regs_set, load_mems): Likewise.
16440 (insert_bct): Likewise.
16441 (basic_induction_var): New argument level.
16442 * loop.h (struct loop_info): Delete fields num, loops_enclosed,
16443 vtop, and cont. Add used_count_register.
16444 (uid_loop): Delete declaration.
16445 (loop_number_exit_count): Likewise.
16446 (loop_number_loop_starts, loop_number_loop_ends): Likewise.
16447 (loop_number_loop_cont, loop_number_cont_dominator): Likewise.
16448 (loop_outer_loop, loop_used_count_register): Likewise.
16449 (loop_invalid, loop_number_exit_labels): Likewise.
16450 (unroll_loop): Replace loop_start and loop_end arguments
16451 with loop structure pointer.
16452 (loop_precondition_p, loop_iterations): Likewise.
16453 Include basic-block.h.
16454 * unroll.c: (unroll_loop): Replace loop_start and loop_end arguments
16455 with loop structure pointer.
16456 (loop_precondition_p, loop_iterations): Likewise.
16457 * basic-block.h (struct loop): New entries vtop, cont,
16458 cont_dominator, start, end, top, scan_start, exit_labels,
16460 * Makefile.in (LOOP_H): Add basic-block.h to dependencies.
16462 2000-01-15 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
16464 * defaults.h (ASM_OUTPUT_ASCII): Use ISDIGIT.
16466 2000-01-14 Nathan Sidwell <sidwell@codesourcery.com>
16468 * config.in: Rebuilt for 2000-01-13 change to acconfig.h.
16470 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16472 * pdp11-protos.h: New file.
16474 * pdp11.c: Include tm_p.h. Add static prototypes. Fix compile
16477 * pdp11.h: Move prototypes to pdp11-protos.h. Fix compile time
16480 * pdp11.md: Likewise.
16482 * 2bsd.h: Likewise.
16484 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16486 * mn10300-protos.h: New file.
16488 * mn10300.c: Include tm_p.h. Add static prototypes. Fix compile
16491 * mn10300.h: Move prototypes to mn10300-protos.h. Fix compile time
16494 * mn10300.md: Likewise.
16496 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16498 * mn10200-protos.h: New file.
16500 * mn10200.c: Include tm_p.h. Add static prototypes. Fix compile
16503 * mn10200.h: Move prototypes to mn10200-protos.h. Fix compile time
16506 * mn10200.md: Likewise.
16508 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16510 * h8300-protos.h: New file.
16512 * h8300.c: Include tm_p.h. Add static prototypes. Fix compile
16515 * h8300.h: Move prototypes to h8300-protos.h. Fix compile time
16518 * h8300.md: Likewise.
16520 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16522 * varasm.c (asm_output_bss): Mark parameters with ATTRIBUTE_UNUSED.
16523 (asm_emit_uninitialised): Likewise.
16525 2000-01-13 Gavin Romig-Koch <gavin@cygnus.com>
16527 * config/mips/mips.h (ISA_HAS_INT_CONDMOVE): New.
16528 * config/mips/mips.md: Use ISA_HAS_INT_CONDMOVE.
16530 2000-01-14 Clinton Popetz <cpopetz@cygnus.com>
16532 * config/mips/mips.c (override_options): Don't turn on extra
16533 alignment for mips16.
16535 2000-01-14 Clinton Popetz <cpopetz@cygnus.com>
16537 * config/mips/mips.c (mips_va_arg): Fix fprv for the 32 bit
16538 eabi, and make sure queued POSTINCREMENT rtl is emitted at
16541 2000-01-14 Clinton Popetz <cpopetz@cygnus.com>
16543 * builtins.c (PAD_VARARGS_DOWN): Define.
16544 (std_expand_builtin_va_arg): Use the above macro.
16545 * config/mips/mips.h (PAD_VARARGS_DOWN): Define.
16546 * tm.texi (Register Arguments): Document the above macro.
16548 2000-01-14 Nick Clifton <nickc@cygnus.com>
16550 * emit-rtl.c (emit_insn): If checking is enabled, make sure
16551 that this function has not been used to emit a jump
16554 * jump.c (return_jump_1): Cope with being passed a null rtx.
16556 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16558 * eh-common.h: PROTO -> PARAMS.
16559 * emit-rtl.c: Likewise.
16560 * errors.c: Likewise.
16561 * errors.h: Likewise.
16562 * except.c: Likewise.
16563 * except.h: Likewise.
16564 * explow.c: Likewise.
16565 * expmed.c: Likewise.
16566 * expr.c: Likewise.
16567 * expr.h: Likewise.
16568 * final.c: Likewise.
16569 * fix-header.c: Likewise.
16570 * flow.c: Likewise.
16571 * fold-const.c: Likewise.
16572 * function.c: Likewise.
16573 * function.h: Likewise.
16575 * gcov-io.h: Likewise.
16576 * gcov.c: Likewise.
16577 * gcse.c: Likewise.
16579 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16581 * sh-protos.h: New file.
16583 * sh.c: Include insn-config.h, toplev.h, recog.h and tm_p.h.
16584 Add static prototypes. Fix compile time warnings.
16586 * sh.h: Move prototypes to sh-protos.h. Fix compile time warnings.
16590 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16592 * arc-protos.h: New file.
16594 * arc.c: Include tm_p.h. Add static prototypes. Fix compile
16597 * arc.h: Move prototypes to arc-protos.h. Fix compile time
16600 * arc.md: Likewise.
16602 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16604 * dsp16xx-protos.h: New file.
16606 * dsp16xx.c: Include tm_p.h. Add static prototypes. Fix compile
16609 * dsp16xx.h: Move prototypes to dsp16xx-protos.h. Fix compile time
16612 * dsp16xx.md: Likewise.
16614 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16616 * convex-protos.h: New file.
16618 * convex.c: Include tm_p.h. Add static prototypes. Fix compile
16621 * convex.h: Move prototypes to convex-protos.h. Fix compile time
16624 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16626 * elxsi-protos.h: New file.
16628 * elxsi.c: Include tm_p.h. Add static prototypes. Fix compile
16631 * elxsi.h: Move prototypes to elxsi-protos.h. Fix compile time
16634 * elxsi.md: Likewise.
16636 2000-01-14 Clinton Popetz <cpopetz@cygnus.com>
16638 * config/mips/mips.h (REGISTER_MOVE_COST): Remove redundant
16639 case for moving from HI/LO/HI_LO_REG. This makes the behavior
16640 match the comment for MIPS16.
16642 Fri Jan 14 00:28:06 2000 Jeffrey A Law (law@cygnus.com)
16644 * flow.c (split_edge): Do not call set_block_for_insn if we
16645 do not have a basic_block_for_insn structure.
16647 * fr30.h (TRAMPOLINE_TEMPLATE): Use nops to ensure the static chain
16648 and destination functions are 32bit aligned within the trampoline.
16649 (TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE): Corresponding changes.
16650 (TRAMPOLINE_ALIGNMENT): Define.
16652 * cse.c (cse_insn): When changing (set (pc) (reg)) to
16653 (set (pc) (label_ref)), verify the change creates a valid insn.
16655 * fr30.c (call_operand): Tighten and rework to match rules for
16656 call RTL expressions.
16657 * fr30.h (PREDICATE_CODES, case call_operand): Only allow MEMs.
16658 * fr30.md (call patterns): Improve constraints.
16660 Thu Jan 13 23:44:03 2000 Richard Henderson <rth@cygnus.com>
16662 * fr30.c (fr30_expand_epilogue): Revert last change.
16663 Use emit_jump_insn for the return insn.
16665 Thu Jan 13 14:46:03 2000 Jason Eckhardt <jle@cygnus.com>
16666 Stan Cox <scox@cygnus.com>
16668 * predict.c: New file. Preliminary infrastructure work for static
16669 branch prediction and basic block reordering.
16670 * basic-block.h: Add prototype for estimate_probability.
16671 * Makefile.in: Add rules for predict.o.
16673 2000-01-13 Jason Merrill <jason@yorick.cygnus.com>
16675 * fixincludes (va_list): Use __not_va_list__ for the dummy.
16676 * fixinc/*: Likewise.
16678 2000-01-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16680 * cccp.c: PROTO -> PARAMS.
16681 * cexp.y: Likewise.
16682 * collect2.c: Likewise.
16683 * combine.c: Likewise.
16684 * convert.h: Likewise.
16686 * dbxout.c: Likewise.
16687 * dbxout.h: Likewise.
16688 * diagnostic.c: Likewise.
16689 * doprint.c: Likewise.
16690 * dwarf2out.c: Likewise.
16691 * dwarf2out.h: Likewise.
16692 * dwarfout.c: Likewise.
16693 * dwarfout.h: Likewise.
16694 * dyn-string.h: Likewise.
16696 2000-01-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16698 * calls.c (emit_call_1): Wrap varaible `struct_value_size_rtx' in
16699 macro conditionals guarding use.
16701 * dwarf2out.c: Include "tm_p.h".
16703 * function.c (locate_and_pad_parm): Mark parameter with
16705 (expand_function_end): Likewise for variable `context'.
16707 * reorg.c (make_return_insns): Wrap prototype in macro HAVE_return.
16709 2000-01-13 Nick Clifton <nickc@cygnus.com>
16711 * config/fr30/fr30.c (fr30_expand_epilogue): Emit USEs of pop'ed
16712 register to prevent compile time warnings.
16714 2000-01-13 Zack Weinberg <zack@wolery.cumb.org>
16716 * longlong.h [i386] (udiv_qrnnd): Rename 'd' argument to 'dv'
16717 to avoid -Wtraditional warning.
16719 2000-01-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16721 * 1750a-protos.h: New file.
16723 * 1750a.c: Include tm_p.h. Add static prototypes. Fix compile
16726 * 1750a.h: Move prototypes to 1750a-protos.h. Fix compile time
16729 * 1750a.md: Likewise.
16731 2000-01-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16733 * a29k-protos.h: New file.
16735 * a29k.c: Include tm_p.h. Add static prototypes. Fix compile
16738 * a29k.h: Move prototypes to a29k-protos.h. Fix compile time
16741 2000-01-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16743 * clipper-protos.h: New file.
16745 * clipper.c: Include tm_p.h. Add static prototypes. Fix compile
16748 * clipper.h: Move prototypes to clipper-protos.h. Fix compile time
16751 Thu Jan 13 16:03:06 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
16753 * reload1.c (reload_combine_note_store): Use HARD_REGNO_NREGS.
16755 2000-01-13 Nathan Sidwell <sidwell@codesourcery.com>
16757 * configure.in (--enable-new-gxx-abi): New option.
16758 * acconfig.h (ENABLE_NEW_GXX_ABI): New define.
16759 * Makefile.in (GXX_ABI_FLAG): New variable.
16760 * configure: Regenerate.
16762 2000-01-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
16764 * stor-layout.c (layout_type): Use FORCE_STRUCT_BLK.
16765 * tm.texi (FORCE_STRUCT_BLK): Document.
16766 * config/c4x/c4x.h (FORCE_STRUCT_BLK): New macro.
16768 Wed Jan 12 23:12:47 2000 Hans-Peter Nilsson <hp@axis.com>
16770 * config/ns32k/ns32k.md: Revert Jan 9 change.
16772 * genrecog.c (maybe_both_true_2): Do not compare a predicate-test
16773 to a mode-test, if the predicate is address_operand.
16775 Wed Jan 12 22:34:00 2000 Jeffrey A Law (law@cygnus.com)
16777 * combine.c (if_then_else_cond): Be careful about what kinds
16778 of RTL expressions are passed to operand_subword.
16780 * flow.c (split_edge): If we have to insert a new jump, make
16781 sure to associate it with a basic block.
16783 * flow.c (commit_one_edge_insertion): A block with one successor
16784 can end in a JUMP_INSN that is not a simplejump.
16786 2000-01-12 Robert Lipe <robertl@sco.com>
16788 * i386/sco5.h (INIT_SECTION_ASM_OP_COFF): Rename section to "ctor".
16789 (BUILD_VA_LIST_TYPE): Define.
16790 (EH_FRAME_SECTION_ASM_OP): Explictly define to better interact
16793 2000-01-12 Jason Merrill <jason@casey.cygnus.com>
16795 * cccp.c (do_pragma): Add cast to (char *).
16797 2000-01-12 Richard Henderson <rth@cygnus.com>
16798 Fred Fish <fnf@be.com>
16799 Jason Merrill <jason@cygnus.com>
16801 * configure.in (i?86-*-beos{pe,elf,}*): Recognize.
16802 * i386/t-beos, i386/x-beos, i386/xm-beos.h: New files.
16803 * i386/beos-elf.h, i386/beos-pe.h: New files.
16805 * Makefile.in (CROSS_SYSTEM_HEADER_DIR): New.
16806 * cross-make (SYSTEM_HEADER_DIR): Define using
16807 CROSS_SYSTEM_HEADER_DIR.
16809 * gcc.c (LIBRARY_PATH_ENV): Provide default.
16810 (process_command): Use it.
16811 (main): Likewise. Kill trailing = from env vars.
16812 (build_search_list): Put it back.
16813 * collect2.c (main): Use LIBRARY_PATH_ENV.
16815 * configure.in (GCC_NEED_DECLARATIONS): Add environ.
16816 * toplev.c: Use NEED_DECLARATION_ENVIRON.
16818 * tm.texi (Frame Layout): Document SMALL_STACK.
16819 * c-common.c (c_common_nodes_and_builtins): Check it.
16821 * system.h: Undef alloca after including glibc's <stdlib.h>,
16822 if USE_C_ALLOCA is defined.
16824 * gcc.c (set_input): New fn.
16825 (main): After all input files are compiled, reset the input file
16828 * aclocal.m4 (rindex, index): If already defined, don't attempt
16831 * ginclude/varargs.h: (__va_list__): Define ifndef.
16832 * ginclude/stdarg.h: Likewise.
16834 * ginclude/stddef.h (__WCHAR_TYPE__) [BEOS]: Use int
16835 instead of unsigned char.
16837 * hash.h (true, false, boolean): Undef before enum.
16839 * expmed.c (choose_multiplier): Cast &mhigh_lo and &mhigh_hi to be
16840 proper type of "HOST_WIDE_INT *", rather than their natural type of
16841 "unsigned HOST_WIDE_INT *".
16843 2000-01-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16845 * svr3.h (ASM_FILE_START): Wrap if-clause in squigly brackets.
16847 * recog.c (memory_address_p): Mark parameter with ATTRIBUTE_UNUSED.
16849 * regclass.c (choose_hard_reg_mode): Likewise.
16851 * reload.c (find_valid_class, strict_memory_address_p): Likewise.
16853 * reorg.c (optimize_skip): Wrap prototype in macro conditionals.
16855 2000-01-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16857 * c-common.c: PROTO -> PARAMS.
16858 * c-common.h: Likewise.
16859 * c-decl.c: Likewise.
16860 * c-iterate.c: Likewise.
16861 * c-lang.c: Likewise.
16862 * c-lex.c: Likewise.
16863 * c-lex.h: Likewise.
16864 * c-parse.in: Likewise.
16865 * c-pragma.c: Likewise.
16866 * c-pragma.h: Likewise.
16867 * c-tree.h: Likewise.
16868 * c-typeck.c: Likewise.
16869 * objc/objc-act.c: Likewise.
16870 * objc/objc-act.h: Likewise.
16872 2000-01-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16874 * m88k-protos.h: New file.
16876 * m88k.c: Include tm_p.h. Add static prototypes. Fix compile
16879 * m88k.h: Move prototypes to m88k-protos.h. Fix compile time warnings.
16881 * m88k.md: Likewise.
16883 * tekXD88.h: Likewise.
16885 2000-01-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16887 * m68k-protos.h: New file.
16889 * m68k.c: Include tm_p.h. Add static prototypes. Fix compile
16892 * m68k.h: Move prototypes to m68k-protos.h. Fix compile time warnings.
16894 * mot3300.h: Likewise.
16896 2000-01-12 Richard Earnshaw <rearnsha@arm.com>
16898 * haifa-sched.c (split_edges): Pass edgeset_size as second arg to
16900 (extract_bitlist): Declare bitlen.
16902 2000-01-12 Zack Weinberg <zack@wolery.cumb.org
16904 * cccp.c: Accept and ignore -lang-fortran.
16906 * c-typeck.c (build_c_cast): Issue -Wcast-qual warnings if the
16907 qualifiers don't match at any level of pointerness.
16909 2000-01-12 Robert Lipe <robertl@sco.com>
16911 * i386/sysv5.h (CPP_SPEC, LIBSPEC): Add -pthreadT.
16913 2000-01-12 Bernd Schmidt <bernds@cygnus.co.uk>
16915 * reload1.c (reload_reg_unavailable): New static variable.
16916 (reload_reg_free_p): Test it.
16917 (reload_reg_free_for_value_p): Test it instead of
16919 (choose_reload_regs_init): Compute it.
16921 Wed Jan 12 03:24:41 2000 Toshiyasu Morita (toshi.morita@sega.com)
16923 * reorg.c (fill_slots_from_thread): Check modified_in_p
16926 Wed Jan 12 03:20:31 2000 John Marshall <john_w_marshall@palm.com>
16928 * gcc.texi (Funding, GNU/Linux, Copying, Contributors): Format
16929 these nodes even if INTERNALS is not set.
16931 Wed Jan 12 09:39:22 2000 Nick Burrett <nick.burrett@btinternet.com>
16933 * gcse.c (delete_null_pointer_checks_1): Cope when
16934 get_condition cannot determine the condition.
16936 2000-01-12 Gabriel Dos Reis <gdr@codesourcery.com>
16938 * toplev.h (set_message_length): Declare.
16940 * diagnostic.c (obstack_chunk_alloc): Define macro.
16941 (obstack_chunk_free): Likewise.
16942 (struct output_buffer): New data structure.
16943 (vmessage): Remove.
16944 (output_maximum_width): New variable.
16945 (doing_line_wrapping, set_message_length, init_output_buffer,
16946 get_output_prefix, output_space_left, emit_output_prefix,
16947 output_newline, output_append, output_puts, dump_output,
16948 vbuild_message_string, build_message_string, build_location_prefix,
16949 voutput_notice, output_printf, line_wrapper_printf,
16950 vline_wrapper_message_with_location): New functions. Implement
16951 automatic line wrapping.
16952 (v_message_with_decl): Make it handle automatic line wrapping.
16953 (v_error_with_file_and_line): Likewise.
16954 (v_warning_with_file_and_line): Likewise.
16955 (announce_function): Likewise.
16956 (default_print_error_function): Likewise.
16958 2000-01-11 16:24 -0800 Zack Weinberg <zack@wolery.cumb.org>
16960 * cpplib.h (struct cpp_options): Change lang_asm to char.
16962 * cppinit.c (builtin_array): Take out __STDC_VERSION__, it's
16963 done in cpp_handle_option now.
16964 (initialize_builtins): Take out special case code used only by
16966 (cpp_handle_option): Turn off trigraphs and trigraph warnings
16967 if -traditional. Recognize -lang-fortran and set
16968 lang_fortran, also turn off cplusplus_comments.
16969 (print_help): Document -lang-fortran.
16970 * cpplib.c (handle_directive): Ignore `# 123 "file"' if
16971 lang_asm. Ignore all directives other than `# 123 "file"' if
16973 (cpp_get_token): If -traditional, don't recognize directives
16974 unless the # is in column 1.
16975 (parse_string): If lang_fortran or lang_asm, silently
16976 terminate strings ('' or "") at end of line.
16977 Remove unnecessary braces.
16979 2000-01-11 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
16980 Richard Henderson <rth@cygnus.com>
16982 * resource.c (mark_referenced_resources): Mark a set strict_low_part
16984 * config/i386/i386.c (ix86_expand_setcc): Re-enable clear + set
16985 strict_low_part when possible.
16987 2000-01-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16989 * alias.c: PROTO -> PARAMS.
16990 * basic-block.h: Likewise.
16991 * bitmap.c: Likewise.
16992 * bitmap.h: Likewise.
16993 * builtins.c: Likewise.
16994 * c-aux-info.c: Likewise.
16995 * caller-save.c: Likewise.
16996 * calls.c: Likewise.
16998 2000-01-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17000 * Makefile.in (toplev.o): Depend on regs.h.
17002 * output.h (tdesc_section): Prototype.
17004 * regclass.c (copy_cost): Mark parameters with ATTRIBUTE_UNUSED.
17006 * sdbout.c: Include "tm_p.h".
17008 * toplev.c: Include "regs.h".
17010 Tue Jan 11 11:37:58 2000 Mike Stump <mrs@wrs.com>
17012 * unroll.c (unroll_loop): Add EH support.
17014 2000-01-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17016 * pa-protos.h: New file.
17018 * pa.c: Include recog.h and tm_p.h.
17019 (compute_zdepwi_operands, compute_movstrsi_length,
17020 remove_useless_addtr_insns, store_reg, load_reg, set_reg_plus_d,
17021 find_addr_reg, import_milli): Add static prototypes.
17022 (pa_cpu_string, pa_arch_string): Constify a char*.
17023 (legitimize_pic_address): Pass argument `mode' to pic_label_operand.
17024 (read_only_operand): Add argument `mode'.
17025 (singlemove_string, output_move_double, output_fp_move_double,
17026 output_block_move, output_and, output_ior, output_ascii,
17027 remove_useless_addtr_insns, milli_names, output_mul_insn,
17028 output_div_insn, output_mod_insn, output_arg_descriptor,
17029 output_cbranch, output_bb, output_bvb, output_dbra, ,
17030 output_millicode_call, output_call, hppa_encode_label,
17031 output_parallel_movb, output_parallel_addb): Constify a char*.
17032 (hppa_va_start): Mark parameter `stdarg_p' with ATTRIBUTE_UNUSED.
17033 (output_parallel_addb): Remove extra arg to `constrain_operands'
17035 * pa.h: Move all prototypes to pa-protos.h.
17036 (pa_cpu_string, pa_arch_string): Constify a char*.
17037 (LEGITIMIZE_ADDRESS): Call `symbolic_operand' with mode argument.
17039 * pa.md: Call `function_label_operand' with mode argument.
17040 Likewise for `read_only_operand'.
17041 Fix nesting of parens in call to `symbolic_operand'.
17043 2000-01-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17045 * i860-protos.h: New file.
17047 * i860.c: Include tm_p.h. Add static prototypes. Fix compile
17050 * i860.h: Move prototypes to i860-protos.h. Fix compile time warnings.
17052 * i860.md: Likewise.
17054 Tue Jan 11 18:59:35 MET 2000 Jan Hubicka <jh@suse.cz>
17056 * i386.md (movstrsi expander): Rewrite.
17057 (movstrsi_1 insn): Deleted.
17058 (strmovhi, strmovqi expander): New expanders.
17059 (movshi_1, movsqi_1, rep_movsi, rep_movqi): New patterns.
17060 * i386.c (x86_single_stringop): New global variable.
17061 * i386.h (x86_single_stringop): Declare.
17062 (TARGET_SINGLE_STRINGOP): New macro.
17064 2000-01-11 Clinton Popetz <cpopetz@cygnus.com>
17066 * config/mips/mips.c (mips_va_arg): For EABI, emit the queued
17067 integer vararg POSTINCREMENT before the destination of the jump
17068 for the hard fp case.
17069 (function_arg_pass_by_reference): Pass a copy of CUM to
17072 * config/mips/mips.h (GO_IF_LEGITIMATE_ADDRESS): Move check
17073 for CONSTANT_ADDRESS_P above while loop for subreg.
17075 2000-01-11 Clinton Popetz <cpopetz@cygnus.com>
17077 * flow.c (propagate_block): When a prologue/epilogue insn
17078 is marked dead, unconditionally clear libcall_is_dead and
17079 insn_is_dead, and only dump rtl if warnings aren't being
17082 Tue Jan 11 16:26:47 MET 2000 Jan Hubicka <jh@suse.cz>
17084 * i386.c (ix86_attr_length_default): Handle TYPE_STR and TYPE_CLD.
17085 * i386.md (FIRST_PSEUDO_REGISTER): Set to 20.
17086 (FIXED_REGISTERS): Set dirflag as fixed.
17087 (CALL_USED_REGISTERS): Set dirflag as used.
17088 (REG_ALLOC_ORDER): Set dirflag as last one.
17089 (DIRFLAG_REG): New macro.
17090 (MD_ASM_CLOBBERS): Asm clobber dirflag for backward compatibility.
17091 (HI_REGISTER_NAMES): Add dirflag.
17092 (DEBUF_PRINT_REG): Handle dirflag.
17093 * i386.md (type attribute): New cld and str types.
17094 (length_opcode attribute): Set cld and str to 1.
17095 (memory attribute): Set str to unknown - it is not clear from the
17097 (pent_np function unit): Prefixed string operations takes 12 cycles
17098 minimally; cld takes 2 cycles.
17099 (ppro_uops attribute): Str is "many" and cld is "few".
17100 (ppro_p0 unit): Handle cld here.
17101 (k6_alux unit): Handle cld and str types.
17102 (k6_load unit): It is ocupied by str opcodes.
17103 (k6_store unit): It is ocupied by str opcodes.
17104 (athlon_decode): Str is vector decoded.
17105 (athlon_ieu): Handle str and cld.
17106 (cld pattern): New.
17107 (movstrsi, clrstr, cmpstr, strlen expander): Emit cld instruction
17108 (movstrsi_1, clrstrsi_1, cmpstrsi_1, strlensi_1,
17109 cmpstrsi_nz_1 insn): Do not output cld instruction
17111 Tue Jan 11 06:14:39 2000 David Starner <dstarner98@aasaa.ofe.org>
17113 * gcc.texi (G++ and GCC): Add Java and Chill.
17114 (Bug Critera): Don't list languages.
17116 * gcc.texi (Incompatibilities): No longer claim most C compilers
17119 * gcc.texi (G++ and GCC): Update other front-ends list.
17121 Tue Jan 11 05:49:01 2000 Jeffrey A Law (law@cygnus.com)
17123 * i386.c (ix86_expand_setcc): Fix typo.
17124 (ix86_expand_movcc): Similarly.
17126 * Band-aid until haifa's bitset implementation is nuked.
17127 * haifa-sched.c (extract_bitlst): New parameter for size of the
17128 bitset in bits. All callers changed. Avoid looking at undefined
17129 bits in the bitset.
17130 (edgeset_bitsize): New variable.
17131 (schedule_region): Initialize edgeset_bitsize.
17133 2000-01-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17135 * Makefile.in (optabs.o): Depend on real.h
17136 (resource.o): Depend on insn-attr.h
17138 * builtins.c (result_vector): Wrap prototype in macro conditions
17139 governing definition and use.
17141 * c-common.c: Include tm_p.h.
17143 * c-lex.c: Likewise.
17145 * elfos.h: Constify a char*.
17147 * final.c (align_fuzz): Wrap prototype in macro HAVE_ATTR_length.
17148 (get_attr_length, shorten_branches, profile_after_prologue): Mark
17149 parameter with ATTRIBUTE_UNUSED.
17151 * fold-const.c (exact_real_inverse): Wrap variable `i' in
17154 * haifa-sched.c (schedule_insns): Mark parameter with
17157 * optabs.c: Include real.h.
17159 * real.h (ereal_atof): Add prototype arguments.
17161 * resource.c: Include insn-attr.h.
17163 * sdbout.c (sdbout_queue_anonymous_type,
17164 sdbout_dequeue_anonymous_types): Wrap in macro
17165 SDB_ALLOW_FORWARD_REFERENCES.
17166 (sdbout_init, sdbout_start_new_source_file): Mark parameter with
17169 * stmt.c (expand_return): Wrap variable `op0' in macro HAVE_return.
17171 * stupid.c: Include tm_p.h.
17173 * tree.c (real_value_from_int_cst): Mark parameter with
17176 2000-01-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17178 * i960-protos.h: New file.
17180 * i960.c: Include tm_p.h. Add static prototypes. Fix compile
17183 * i960.h: Move prototypes to i960-protos.h. Fix compile time warnings.
17185 2000-01-10 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
17187 * combine.c (expand_field_assignment): Do not discard SUBREGs
17188 while computing nonzero_bits.
17190 2000-01-09 Nick Clifton <nickc@cygnus.com>
17192 * config/arm/arm.c: Fix compile time warnings about signed vs
17193 unsigned constants.
17194 * config/arm/arm.h: Fix compile time warnings about signed vs
17195 unsigned constants.
17197 2000-01-09 Philip Blundell <philb@gnu.org>
17199 * config/arm/arm.c (output_return_instruction): Use `ldr' rather
17200 than `ldm' with only one register.
17201 * config/arm/arm.md (push_multi): Use `str' rather than `stm' with
17204 * config/arm/linux-gas.h (CLEAR_INSN_CACHE): Say that R0 is
17207 Sun Jan 9 17:50:23 2000 Hans-Peter Nilsson <hp@axis.com>
17209 * config/ns32k/ns32k.md (load or push effective address): Operand 1
17212 2000-01-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17214 * elfos.h (ASM_OUTPUT_LIMITED_STRING): Add parentheses around
17215 assignment used as truth value.
17217 * function.c (assign_temp): Mark parameter `dont_promote' with
17218 ATTRIBUTE_UNUSED. Wrap variable `unsignedp' with macro
17219 PROMOTE_FOR_CALL_ONLY.
17221 * genrecog.c (write_subroutine): Mark variable `operands' with
17224 * optabs.c (prepare_cmp_insn): Mark parameter `align' with
17227 * sdbout.c (sdbout_init): Likewise for parameter `asm_file'.
17228 (sdbout_begin_block, sdbout_end_block): Likewise for `file'.
17230 * toplev.c (note_deferral_of_defined_inline_function): Likewise
17233 2000-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
17235 * config/c4x.h: Tidy up comments.
17236 * config/c4x.c: Likewise.
17238 Sun Jan 9 01:02:55 EST 2000 John Wehle (john@feith.com)
17240 * fold-const.c (lshift_double, rshift_double): Handle
17241 shifting by 2 * HOST_BITS_PER_WIDE_INT correctly.
17243 2000-01-08 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
17245 * toplev.c (rest_of_compilation): Initialize cse_not_expected as
17246 in prepare_function_start().
17248 Sat Jan 8 12:12:46 2000 Nick Clifton <nickc@cygnus.com>
17250 * config/v850/v850.c (expand_epilogue): Interrupt functions no
17251 longer allocate extra stack for function calls.
17253 2000-01-08 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
17255 * config/c4x/c4x.md (*subqf3_set): Fix typo.
17257 2000-01-08 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
17259 * config/c4x/c4x.h (CALLER_SAVE_PROFITABLE): Define as 0.
17261 2000-01-07 David Edelsohn <edelsohn@gnu.org>
17263 * rs6000.c (processor_target_table): Add power3 as alias for 630.
17264 * aix43.h: Revert Aug 2 change.
17265 (HAS_INIT_SECTION): Define, not visible yet.
17266 (LD_INIT_SWITCH): Define, not visible yet.
17267 * t-aix43 (MULTILIB_OPTIONS): Revert Aug 2 change.
17269 * glimits.h (__LONG_MAX__): Recognize 64-bit AIX too.
17271 * collect2.c (main): Expand ld2 size further.
17272 (export_object_lst): Cast assignment to avoid warning.
17273 (main, LD_INIT_SWITCH): Add AIX 4.2+ -binitfini support.
17274 (scan_prog_file, COFF): Do not collect initialization or
17275 finalization functions generated for entire shared object if
17276 init/fini support present.
17278 2000-01-07 Nick Clifton <nickc@cygnus.com>
17280 * config/elfos.h: Tidy up formatting of marcos. Make sure
17281 that .section directives are always prefixed by a tab.
17283 * config/svr4.h: Add #include "elfos.h" and remove duplicate
17286 2000-01-07 Matt Austern <austern@sgi.com>
17288 * fold-const.c (real_hex_to_f): Remove duplicate declaration of
17291 Fri Jan 7 01:55:34 2000 Jeffrey A Law (law@cygnus.com)
17293 * Makefile.in (crtend.o): Pass @inhibit_libc@ to compilation of
17295 (crtbegin.o, s-crtS): Likewise.
17297 2000-01-06 Richard Henderson <rth@cygnus.com>
17299 * alpha.md (adddi_2+1): Limit offset such that it will be
17300 loadable with a single ldah+lda pair.
17301 (adddi_2+2): Explicitly fail split if we can't make it work.
17303 2000-01-06 Mumit Khan <khan@xraylith.wisc.edu>
17305 * protoize.c: Conditionally include unistd.h.
17306 (IS_SAME_PATH_CHAR): New macro.
17307 (IS_SAME_PATH): New macro.
17308 (CPLUS_FILE_SUFFIX): New macro.
17309 (cplus_suffix): New static variable.
17310 (is_abspath): New static function.
17311 (in_system_include_dir): Handle DOS style pathnames.
17312 (file_could_be_converted): Likewise.
17313 (file_normally_convertible): Likewise.
17314 (directory_specified_p): Likewise.
17315 (file_excluded_p): Likewise.
17316 (abspath): Likewise.
17317 (shortpath): Likewise.
17318 (referenced_file_is_newer): Likewise.
17319 (save_def_or_dec): Likewise.
17320 (do_processing): Likewise.
17322 (edit_file): Likewise. Use rename instead of link.
17323 (rename_c_file): Likewise. Don't rename syscalls file.
17324 (munge_compile_params): Define null device for DOS based systems.
17325 (process_aux_info_file): Use binary mode if appliable.
17326 (edit_file): Likewise.
17327 * invoke.texi (Running Protoize): Document C++ suffixes used.
17329 * cccp.c: Delete PATH_SEPARATOR, DIR_SEPARATOR and
17330 IS_DIR_SEPARATOR macros.
17331 * collect2.c: Likewise.
17332 * cppinit.c: Likewise.
17333 * dwarf2out.c: Likewise.
17335 * gcov.c: Likewise.
17336 * prefix.c: Likewise.
17338 * toplev.c: Likewise.
17339 * system.h: And move to here.
17341 * prefix.c (update_path): Fix typo in variable name.
17343 2000-01-06 Richard Henderson <rth@cygnus.com>
17345 * flow.c (mark_set_1): Use loop_depth+1 as reference weight.
17346 (find_auto_inc, mark_used_regs, try_pre_increment_1): Likewise.
17347 (count_reg_sets_1, count_reg_references): Likewise.
17348 (flow_loops_level_compute): Start counting actual loop depth at 1.
17349 (flow_loops_find): Likewise.
17350 * local-alloc.c (update_equiv_regs): Likewise.
17351 * regclass.c (regclass): Re-instate Jan 4 0-based loop_depth change.
17353 2000-01-06 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
17355 * defaults.h (DWARF_FRAME_REGISTERS): if not defined, default to
17356 FIRST_PSEUDO_REGISTER
17357 * dwarf2out.c: Don't include frame.h
17358 * dwarfout.c: Likewise
17359 * Makefile.in (dwarfout.o, dwarf2out.o): Remove dependence on
17362 Thu Jan 6 13:44:59 CET 2000 Jan Hubicka <jh@suse.cz>
17364 * reg-stack.c (subst_stack_regs_pat): Handle correctly USEs of
17367 * i386.c (movsf splitter): Fix typo in my last checkin.
17369 2000-01-05 Nick Clifton <nickc@cygnus.com>
17371 * varasm.c (IN_NAMED_SECTION): Allow targets to provide their
17372 own definition of this macro.
17373 (asm_emit_uninitialised): Invoke UNIQUE_SECTION if either
17374 flag_data_sections or UNIQUE_SECTION_P are true.
17376 * tm.texi (UNIQUE_SECTION): Document that it can be called for
17377 unitialised data decls.
17379 * config/i386/winnt.c (i386_pe_unique_section): Cope with
17380 being called for uninitialised data.
17382 * config/i386/interix.c (i386_pe_unique_section): Cope with
17383 being called for uninitialised data.
17385 * config/mips/elf.h (UNIQUE_SECTION): Cope with being called
17386 for uninitialised data.
17388 * config/mips/elf64.h (UNIQUE_SECTION): Cope with being called
17389 for uninitialised data.
17391 * config/mips/iri6gld.h (UNIQUE_SECTION): Cope with being called
17392 for uninitialised data.
17394 * config/arm/unknown-elf.h (IN_NAMED_SECTION): Define.
17395 (UNIQUE_SECTION_P): Always generate a unique section if
17396 flag_data_sections is true.
17397 (UNIQUE_SECTION): Also generate unique sections for
17398 uninitialised data.
17399 (ASM_OUTPUT_ALIGNED_BSS): Redefine to use named_section().
17400 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Redefine to use
17403 2000-01-06 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
17405 * config/c4x/t-c4x (TARGET_LIBGCC2_CFLAGS): Don't redefine SF, DF,
17408 2000-01-06 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
17410 * config/c4x/c4x.md (udivqi3, divqi3): Delete.
17411 (umodqi3, modqi3, udivhi3, divhi3, umodhi3, modhi3, ffsqi2): Likewise.
17412 (*smulqi3_highpart_noclobber, *umulqi3_highpart_noclobber): New.
17413 (*lshrqi3_const_noclobber, *lshrqi3_nonconst_noclobber): Likewise.
17414 (*ashrqi3_const_noclobber, *ashrqi3_nonconst_noclobber): Likewise.
17416 * c4x.h (INIT_TARGET_OPTABS): Define to init libcalls.
17418 2000-01-05 11:25 -0800 Zack Weinberg <zack@rabi.columbia.edu>
17420 * c-decl.c (finish_enum): Simplify code to determine minimum and
17421 maximum values of the enum, and calculate the type. Remove check
17422 for FUNCTION_DECLs in the values list, which cannot happen. Replace
17423 the DECL_INITIAL of each enumeration constant with a copy converted
17424 to the enumeration type. When updating variant types, don't bother
17425 updating the type itself.
17427 * c-typeck.c (build_binary_op): Simplify conditional expressions
17428 when weeding out spurious signed-unsigned warnings. Add new
17429 spurious warning category: if the unsigned quantity is an enum
17430 and its maximum value fits in signed_type(result_type). Update
17432 (build_conditional_expr): Warn here if one alternative is signed
17433 and the other is unsigned.
17435 2000-01-05 Nick Clifton <nickc@cygnus.com>
17437 * config/fr30/fr30.h: Remove extraneous comments.
17439 2000-01-05 Bernd Schmidt <bernds@cygnus.co.uk>
17441 * reload1.c (choose_reload_regs): When disabling a reload, also
17442 set reload_spill_index to -1.
17444 2000-01-04 Joel Sherrill (joel@OARcorp.com>
17446 * configure.in (m68*-*-rtemscoff*): New target, formal name for
17448 (m68*-*-rtemself*): New target.
17449 (mips64orion-*-rtems*): Remove duplicate definition of tm_file.
17450 (sparc*-*-rtemsaout*): New target, formal name for old sparc*-*-rtems*.
17451 (sparc*-*-rtemself*): New target.
17452 (sparc*-*-rtems*): Now elf not a.out.
17453 * config/i386/rtems.h: Include config/rtems.h.
17454 * config/i386/rtemself.h: Include config/rtems.h.
17455 * config/i960/rtems.h: Include config/rtems.h.
17456 * config/m68k/rtems.h: Include config/rtems.h.
17457 * config/m68k/rtemself.h: Include config/rtems.h.
17458 * config/mips/rtems64.h: Include config/rtems.h.
17459 * config/pa/rtems.h: Include config/rtems.h.
17460 * config/rs6000/rtems.h: Include config/rtems.h.
17461 * config/sh/rtems.h: Include config/rtems.h.
17462 * config/sh/rtemself.h: Include config/rtems.h.
17463 * config/sparc/rtems.h: Include config/rtems.h.
17464 * config/sparc/rtemself.h: Include config/rtems.h
17466 Tue Jan 4 23:59:26 2000 Denis Chertykov <denisc@overta.ru>
17468 * final.c (shorten_branches): Correctly compute length of
17469 asms without operands.
17471 Tue Jan 4 22:55:41 2000 Steve Chamberlain <sac@pobox.com>
17473 * configure.in: Add pj target.
17474 * configure: Regenerate.
17475 * config/pj: New directory.
17476 * config/pj/lib1funcs.S: New file.
17477 * config/pj/linux.h: New file.
17478 * config/pj/pj.c: New file.
17479 * config/pj/pj.md: New file.
17480 * config/pj/pjl.h: New file.
17481 * config/pj/t-pj: New file.
17482 * config/pj/xm-pj.h: New file
17484 Tue Jan 4 22:30:16 2000 Jeffrey A Law (law@cygnus.com)
17486 * toplev.c (rest_of_compilation): Run shorten-branches before
17489 2000-01-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
17491 * config/c4x/c4x.h (IS_XXX_REG, IS_XXX_REGNO): Swap behaviour of
17492 macros so that they're consistent with their names.
17493 * config/c4x/c4x.c (IS_XXX_REG, IS_XXX_REGNO): Likewise.
17494 * config/c4x/c4x.md (IS_XXX_REG, IS_XXX_REGNO): Likewise.
17496 2000-01-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
17498 * config/c4x/c4x.md (*addqi3_noclobber_reload): Ensure that CC never
17499 modified inadvertently.
17501 2000-01-04 Joel Sherrill <joel@OARcorp.com>
17503 * configure.in (v850*-*-rtems*): New target.
17504 * configure: Regenerate.
17505 * config/v850/rtems.h: New file.
17507 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
17509 * gthr-win32.h (__gthread_active_p): Support Mingw MT runtime.
17510 (__gthread_key_create): Likewise.
17511 (__gthread_key_dtor): Likewise.
17512 (__gthread_once): Fix logic.
17513 (__gthread_key_delete): Cast away constness.
17515 * i386/cygwin.h (SUBTARGET_SWITCHES): Add -mthreads option.
17516 * invoke.texi: Document.
17517 * i386/mingw32.h (CPP_SPEC): Use.
17518 (LIBGCC_SPEC): Likewise.
17519 * i386/crtdll.h (LIBGCC_SPEC): Likewise.
17521 2000-01-04 David Edelsohn <edelsohn@gnu.org>
17523 * rs6000/sysv4.h (ASM_OUTPUT_DEF): Undefine.
17524 (HANDLE_PRAGMA_PACK): Undefine.
17525 (SLOW_UNALIGNED_ACCESS): Define.
17527 2000-01-04 David Edelsohn <edelsohn@gnu.org>
17529 * expmed.c (SLOW_UNALIGNED_ACCESS): Add mode and align parameters
17530 to default definition.
17531 (store_bit_field): Call SLOW_UNALIGNED_ACCESS with mode and alignment.
17532 (store_fixed_bit_field): Call macro with word_mode and alignment.
17533 (extract_bit_field): Call macro with relevant mode and alignment.
17534 * expr.c (SLOW_UNALIGNED_ACCESS): Add mode and align parameters
17535 to default definition.
17536 (move_by_pieces): Call SLOW_UNALIGNED_ACCESS with word_mode
17538 (move_by_pieces_ninsns): Likewise.
17539 (clear_by_pieces): Likewise.
17540 (emit_push_insn): Likewise.
17541 (store_field): Call macro with relevant mode and alignment.
17542 (expand_expr): Likewise.
17543 (expand_expr_unaligned): Likewise.
17545 * rs6000.h (HANDLE_PRAGMA_PACK): Define.
17546 (SLOW_UNALIGNED_ACCESS): Define.
17547 (CASE_VECTOR_MODE): Always use 32-bit offsets.
17548 (ASM_FILE_END): Generate 64-bit symbol in 64-bit mode.
17549 (EXTRA_SECTION_FUNCTIONS): Indent .csect pseudo-op.
17550 (toc_section): Likewise and .toc pseudo-op.
17551 (ASM_DECLARE_FUNCTION): Likewise. Align text more strictly in
17553 (TEXT_SECTION_ASM_OP): Likewise.
17554 (ASM_OUTPUT_ADD_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Always use
17557 * a29k.h (SLOW_UNALIGNED_ACCESS): Add MODE and ALIGN parameters.
17558 * alpha.h (SLOW_UNALIGNED_ACCESS): Likewise.
17559 * arm/thumb.h (SLOW_UNALIGNED_ACCESS): Likewise.
17560 * gmicro.h (SLOW_UNALIGNED_ACCESS): Likewise.
17561 * fr30.h (SLOW_UNALIGNED_ACCESS): Likewise.
17563 Tue Jan 4 11:44:13 2000 Jeffrey A Law (law@cygnus.com)
17565 * regclass.c: Revert my Jan 4 change to loop cost computation.
17567 Tue Jan 4 19:22:39 MET 2000 Jan Hubicka <hubicka@freesoft.cz>
17569 * regclass.c (regclass): Do not obey REG_N_REFS in non-optimizing
17572 2000-01-04 Stan Cox <scox@cygnus.com>
17574 * haifa-sched.c (build_control_flow): Change unreachable simple
17575 loop test to check if current block has only one predecessor.
17576 (find_rgns): Initialize degree. Use dest as degree index, not src.
17578 2000-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17580 * builtins.c (expand_builtin_strlen): Initialize variable `icode'.
17582 * calls.c (expand_call): Likewise for
17583 `old_stack_arg_under_construction'.
17585 * cpphash.c (macroexpand): Likewise for `args' and `rest_zero'.
17587 * function.c (pad_to_arg_alignment): Likewise for `save_var' and
17590 * gcc.c (execute): Likewise for `ut' and `st'.
17592 * genattrtab.c (attr_rtx): Likewise for `rt_val'.
17594 * genopinit.c (gen_insn): Likewise for `m1', `m2' and `op'.
17596 * jump.c (jump_optimize_1): Likewise for `temp2'.
17598 * local-alloc.c (block_alloc): Likewise for `r1'.
17600 * loop.c (recombine_givs): Likewise for `life_start' and `life_end'.
17602 * reg-stack.c (check_asm_stack_operands): Likewise for `clobber_reg'.
17603 (subst_asm_stack_regs): Likewise for `clobber_reg' and `clobber_loc'.
17605 * regmove.c (fixup_match_1): Likewise for `insn_const', `dst_node'
17608 * reload.c (find_reloads): Likewise for `goal_alternative_number'
17609 and `goal_earlyclobber'.
17611 * scan-decls.c (scan_decls): Likewise for `prev_id_end'.
17613 * sdbout.c (sdbout_one_type): Likewise for `member_scl'.
17615 * stupid.c (stupid_life_analysis): Likewise for `chain'.
17617 * unroll.c (copy_loop_body): Likewise for `copy'.
17619 * varasm.c (output_constructor): Likewise for `byte'.
17621 Tue Jan 4 15:34:34 MET 2000 Jan Hubicka <hubicka@freesoft.cz>
17623 * i386.c (ix86_expand_move): Allow pushes of memory, offload to memory
17624 all FP constants for constant->reg moves.
17625 (ix86_split_to_parts): Try to convert memory address into immediate
17626 when available in the constant pool.
17627 * i386.h (PREFERRED_RELOAD_CLASS): Allow CONST_DOUBLE->integer reg
17629 (LEGITIMATE_CONSTANT_P): Return 1.
17630 * i386.md (pushsf): New splitter to convert constant pool memory
17631 reference to immediate.
17632 (mov?f): Likewise; do not allow CONST_DOUBLE for reg moves before
17635 2000-01-04 Bernd Schmidt <bernds@cygnus.co.uk>
17637 * i386.md (ashlsi3_cmpno): Don't accept variables shifts.
17638 (ashlhi3_cmpno, ashlqi3_cmpno, ashrsi3_cmpno, ashrhi3_cmpno,
17639 ashrqi3_cmpno, lshrsi3_cmpno, lshrhi3_cmpno, lshrqi3_cmpno): Likewise.
17640 (rotlsi3_cmpno, rotlhi3_cmpno, rotlqi3_cmpno, rotrsi3_cmpno,
17641 rotrhi3_cmpno, rotrqi3_cmpno): Likewise.
17643 2000-01-04 Martin von Löwis <loewis@informatik.hu-berlin.de>
17645 * ginclude/stdbool.h: Support compilation as C++.
17647 Tue Jan 4 01:35:13 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
17649 * fold-const.c (make_range): Don't try to reverse an unbounded range.
17651 Tue Jan 4 00:18:46 2000 Jeffrey A Law (law@cygnus.com)
17653 * regclass.c (regclass): Properly compute loop_cost. Adjust
17656 * regclass.c: Fix minor whitespace problems.
17658 2000-01-03 Anthony Green <green@cygnus.com>
17660 * config/i386/i386.md (builtin_setjmp_receiver): New pattern.
17661 Restore the pic register if required.
17663 2000-01-03 Ulrich Drepper <drepper@cygnus.com>
17665 * c-common.c (format_char_info): Update comment.
17666 (check_format_info): Recognize 'z' modifier in the same way 'Z'
17667 was recognized. Emit warning for formats new in ISO C99 only
17668 if flag_isoc9x is not set.
17670 Mon Jan 3 12:59:54 2000 Mark P. Mitchell <mark@codesourcery.com>
17672 * config/mips/iris6gld.h: Fix typo in -mabi=n32 specs.
17674 Mon Jan 3 15:33:37 MET 2000 Jan Hubicka <hubicka@freesoft.cz>
17676 * combine.c (expand_compound_operation): Do not convert ZERO_EXTEND to
17677 SIGN_EXTEND, convert SIGN_EXTEND to ZERO_EXTEND.
17678 (make_compound_operation): Choose cheaper alternative between
17679 ZERO_EXTEND and SIGN_EXTEND when sign bit is not set.
17681 * regclass.c (op_costs): Remove global variable.
17682 (record_reg_classes): New parameter "op_costs" and "reg_pref".
17683 (record_operand_costs): Break out from ...
17684 (scan_one_insn): ... here.
17685 (dump_regclass): Make dumps nicer.
17686 (regclass): Dump preferrences choosed and changes done during passes.
17688 2000-01-03 Jakub Jelinek <jakub@redhat.com>
17690 * config/sparc/sparc.c (gen_df_reg): Fix for 32bit SPARC.
17692 2000-01-03 Jakub Jelinek <jakub@redhat.com>
17694 * config/sparc/sparc.c (gen_df_reg): New function.
17695 * config/sparc/sparc-protos.h (gen_df_reg): Add prototype.
17696 * config/sparc/sparc.md (movtf_no_e_insn_sp64+1,
17697 movtf_no_e_insn_sp64+2, movtf_no_e_insn_sp64+3, movtf_cc_sp64+1,
17698 movtf_cc_reg_sp64+1): Use it.
17700 2000-01-02 Mark Mitchell <mark@codesourcery.com>
17702 * integrate.c (copy_decl_for_inlining): Clear TREE_ADDRESSABLE on
17703 copied LABEL_DECLs.
17705 Mon Jan 3 02:54:40 2000 Hans-Peter Nilsson <hp@bitrange.com>
17707 * config/i386/i386.c (ix86_expand_unary_operator): Function
17708 definition made void.
17709 (ix86_expand_binary_operator): Update outdated preceding comment.
17710 * config/i386/i386-protos.h (ix86_expand_unary_operator): Update
17713 * config/i386/i386.c (override_options): Fix option-name typo.
17715 2000-01-02 Mark Mitchell <mark@codesourcery.com>
17717 * system.h (CEIL): Define.
17718 * builtins.c (CEIL): Remove.
17719 * expmed.c (CEIL): Likewise.
17720 * expr.c (CEIL): Likewise.
17721 * stor-layout.c (CEIL): Likewise.
17723 2000-01-02 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
17725 * expr.c (store_constructor_field): Fix typo introduced with last
17728 2000-01-01 Mark Mitchell <mark@codesourcery.com>
17730 * tree.h (BINFO_N_BASETYPES): New macro.
17732 2000-01-01 Bernd Schmidt <bernds@cygnus.co.uk>
17734 * expmed.c (emit_store_flag): Prevent losing a pending stack
17735 adjust the same way we prevent losing queued increments.
17737 See ChangeLog.2 for earlier changes.