1 2000-04-26 Jason Merrill <jason@casey.cygnus.com>
3 * dwarf2out.c (add_bound_info): Don't crash on an unexpanded SAVE_EXPR.
5 * dwarfout.c (output_decl): Ignore NAMESPACE_DECLs.
7 * dwarf2out.c (gen_subprogram_die): The class-scope declaration DIE
8 is the primary DIE for a member function.
9 (gen_decl_die): Call set_decl_origin_self here.
10 * dwarfout.c (output_decl): And here.
11 * integrate.c (output_inline_function): Not here.
12 Don't clear DECL_INLINE until after calling rest_of_compilation.
13 (set_decl_origin_self): No longer static.
14 * tree.h: Add prototype.
15 * toplev.c (note_deferral_of_defined_inline_function): Only write
16 out abstract instance for actual inlines.
18 2000-04-25 Alexandre Oliva <aoliva@cygnus.com>
20 * config/mn10300/mn10300.h (REG_CLASS_FROM_LETTER): Return
21 EXTENDED_REGS only if TARGET_AM33.
22 * config/mn10300/mn10300.md (movsi, addsi): Avoid exposing
23 SP_REGS to register allocation and reloading unless absolutely
25 (movsi3): Remove special-case of adding non-constants to SP.
27 2000-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
29 * aclocal.m4 (gcc_AC_NEED_DECLARATION): This macro now requires
30 INCLUDES to search and does not provide any of its own. Also it
31 now accepts optional ACTION-IF-NEEDED and ACTION-IF-NOT-NEEDED
32 parameters. Also it does not call AC_DEFINE.
33 (gcc_AC_NEED_DECLARATIONS): Likewise. Also this macro now calls
34 AC_DEFINE and provides for automatic entries for autoheader.
35 (gcc_AC_FUNC_PRINTF_PTR): Cleanup C code in test.
37 * configure.in (gcc_AC_NEED_DECLARATIONS): Save and restore CFLAGS
38 so we can pass -I flags and include gansidecl.h/system.h in this
41 * acconfig.h: Delete all NEED_DECLARATION_* entries.
43 2000-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
45 * acconfig.h (ENABLE_STD_NAMESPACE, ENABLE_CHECKING,
46 ENABLE_TREE_CHECKING, ENABLE_RTL_CHECKING, ENABLE_GC_CHECKING,
47 ENABLE_GC_ALWAYS_COLLECT): Delete entries.
49 * configure.in (ENABLE_STD_NAMESPACE, ENABLE_CHECKING,
50 ENABLE_TREE_CHECKING, ENABLE_RTL_CHECKING, ENABLE_GC_CHECKING,
51 ENABLE_GC_ALWAYS_COLLECT): Use three argument form of AC_DEFINE
52 for these macros. Clean up spacing and linewraps.
54 2000-04-26 Jason Merrill <jason@casey.cygnus.com>
56 * calls.c (expand_call): Use get_callee_fndecl.
58 * print-tree.c (print_node): Print the chain of an _EXPR.
60 Tue Apr 25 16:16:04 2000 Andrew MacLeod <amacleod@cygnus.com>
61 Jim Wilson <wilson@cygnus.com>
62 Andrew Haley <aph@cygnus.com>
64 * config/ia64/crtbegin.asm: Add IA-64 unwind support. Correct alloc
65 and gp save/restore problems.
66 * config/ia64/crtend.asm: Add IA-64 unwind support.
67 * config/ia64/ia64.c (ia64_compute_frame_size): Don't include pr_size
68 in fr_pad_size calculation.
69 (save_restore_insns): Move PR save area. Correct uses of
71 (ia64_expand_prologue): Mark alloc with RTX_FRAME_RELATED_P.
72 (ia64_expand_epilogue): Add eh_epilogue support.
73 (ia64_function_prologue): Emit .prologue directive.
74 (ia64_init_machine_status, ia64_mark_machine_status): New functions.
75 (ia64_override_options): Set init_machine_status and
77 (rtx_needs_barrier): Handle bsp reads and writes.
78 (spill_offset, sp_offset, spill_offset_emitted, tmp_reg, tmp_saved):
80 (process_set, process_for_unwind_directive): New functions.
81 * config/ia64/ia64.h (ASM_OUTPUT_XDATA_CHAR, ASM_OUTPUT_XDATA_SHORT,
82 ASM_OUTPUT_XDATA_INT, ASM_OUTPUT_XDATA_DOUBLE_INT, ASM_OUTPUT_EH_CHAR,
83 ASM_OUTPUT_EH_SHORT, ASM_OUTPUT_EH_INT, ASM_OUTPUT_EH_DOUBLE_INT): New
85 (EH_FRAME_SECTION_ASM_OP): Define to IA_64.unwind section.
86 (IA64_UNWIND_INFO, HANDLER_SECTION, IA64_UNWIND_EMIT): Define.
87 (struct machine_function): Define.
88 * config/ia64/ia64.md (bsp_value, set_bsp, eh_epilogue): New patterns.
90 2000-04-25 Bruce Korb <bkorb@gnu.org>
92 * fixinc/Makefile.in: make the removal of old programs more
94 * fixinc/mkfixinc.sh: use the two new targets in the Makefile:
95 install-bin and install-sh
97 2000-04-25 Nick Clifton <nickc@cygnus.com>
99 * integrate.c (FUNCTION_ATTRIBUTE_INLINABLE_P): If not
100 defined, define to return zero.
101 (function_cannot_inline_p): If a function has any target
102 specific attributes, then use the macro
103 FUNCTION_ATTRIBUTE_INLINABLE_P to allow the target to decide
104 whether it can be inlined. If it cannot, issue a suitable
107 * tm.texi: Add a new node 'Inlining' to document the new macro
108 FUNCTION_ATTRIBUTE_INLINABLE_P.
110 2000-04-25 Zack Weinberg <zack@wolery.cumb.org>
112 * cpplib.h (struct cpp_buffer): Add 'mapped' flag; fix
115 2000-04-25 Neil Booth <NeilB@earthling.net>
117 Restore previous patch, plus the following fixes:
119 * cpphash.c (_cpp_create_definition): Test PREV_WHITESPACE in
120 flags, not CPP_OPEN_PAREN.
121 * cpplex.c (expand_token_space, init_token_list,
122 cpp_free_token_list): Put the dummy token at list->tokens[-1].
123 (_cpp_lex_line, _cpp_lex_file): token list is 0-based.
125 Tue Apr 25 14:06:40 2000 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
127 * config/i386/freebsd.h (INT_ASM_OP): Define.
129 Tue Apr 25 14:51:07 MET DST 2000 Jan Hubicka <jh@suse.cz>
131 * loop.c (strength_reduce): Fix typo in the last checkin.
133 Tue Apr 25 07:33:12 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
135 * stor-layout.c (finalize_record_size): Simplify to use existing
137 (compute_record_mode): No longer static.
138 * tree.h (compute_record_mode): New declaration.
140 2000-04-25 Neil Booth <NeilB@earthling.net>
142 * Revert my patch below until cause of build failures
145 2000-04-25 Richard Henderson <rth@cygnus.com>
147 * combine.c (combine_instructions): Add missing argument
150 * toplev.c (rest_of_compilation): Delay sibcall optimization
151 until after emit_eh_context.
153 2000-04-24 Nick Clifton <nickc@redhat.com>
155 * combine.c (combine_instructions): Do not try to combine a
156 sequence of insns when the second insn has been replaced by a
159 Mon Apr 24 17:34:18 2000 Mumit Khan <khan@xraylith.wisc.edu>
161 * gcc.c (load_specs): New static function.
162 (read_specs): Use it.
164 * gcc.c (lookup_compiler): Make multiple passes for case
165 insensitive filesystems.
167 2000-04-24 Neil Booth <NeilB@earthling.net>
169 * cpphash.c: replace HSPACE_BEFORE with PREV_WHITESPACE.
170 * cpphash.h (_cpp_check_directive): new.
171 * cpplex.c (handle_newline, cpp_free_token_list,
172 init_trigraph_map, trigraph_ok, trigraph_replace,
173 backslash_start, skip_block_comment, skip_line_comment,
174 skip_whitespace, parse_name, parse_number, parse_string,
175 copy_comment, _cpp_lex_line, spell_char, spell_string,
176 spell_comment, spell_name, spell_other, _cpp_lex_file,
177 _cpp_output_list): new.
178 (expand_name_space): take length argument.
179 (init_token_list): add comment list initialisation.
180 (cpp_scan_line): use auto_expand_name_space. PREV_WHITESPACE
181 instead of HSPACE_BEFORE.
183 * cpplib.c (_cpp_check_directive): new
184 * cpplib.h (cpp_name, PREV_WHITESPACE, PREV_COMMENT,
185 DIGRAPH, UNSIGNED_INT, TOK_NAME): new.
186 (HSPACE_BEFORE): delete.
187 (TTYPE_TABLE): rearrange.
188 (struct cpp_toklist): update.
190 2000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
192 * aclocal.m4 (gcc_AC_HEADER_STRING, gcc_AC_FUNC_PRINTF_PTR,
193 gcc_AC_C_VOLATILE, gcc_AC_FUNC_MKDIR_TAKES_ONE_ARG): Use the three
194 argument form of AC_DEFINE.
196 * configure.in (DEFAULT_LINKER, DEFAULT_ASSEMBLER,
197 HAVE_INTTYPES_H, PACKAGE, VERSION, ENABLE_WIN32_REGISTRY,
198 WIN32_REGISTRY_KEY, HAVE_GAS_SUBSECTION_ORDERING, HAVE_GAS_WEAK,
199 HAVE_GAS_HIDDEN, HAVE_AS_REGISTER_PSEUDO_OP, AS_SPARC64_FLAG,
200 HAVE_AS_OFFSETABLE_LO10, ENABLE_NEW_GXX_ABI): Likewise.
202 * acconfig.h: Delete stubs made redundant by 3-arg AC_DEFINE.
204 2000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
206 * Makefile.in (GCC_FOR_TARGET, GCC_CFLAGS, LIBGCC2_INCLUDES,
207 deduced.h): Use -isystem, not -I, for including system headers.
209 2000-04-24 Nick Clifton <nickc@cygnus.com>
211 * config/fr30/fr30.md (addsi3): Do not use small add instruction if
212 the source register is the frame pointer or arg pointer.
213 (addsi3_small_int): Disallow if source register is the frame
214 pointer or arg pointer.
216 2000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
218 * configure.in (ENUM_BITFIELDS_ARE_UNSIGNED): Delete redundant
219 call to AC_MSG_RESULT.
221 2000-04-24 Martin v. Löwis <loewis@informatik.hu-berlin.de>
223 * invoke.texi: Correct grammatical errors, document
224 -fno-gnu-keywords as identical to -fno-asm for C++.
226 2000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
228 * aclocal.m4: (GCC_HEADER_STRING, GCC_NEED_DECLARATION,
229 GCC_NEED_DECLARATIONS, GCC_FUNC_VFPRINTF_DOPRNT,
230 GCC_FUNC_PRINTF_PTR, GCC_PROG_LN_S, GCC_PROG_LN, GCC_C_VOLATILE,
231 AC_GCC_C_LONG_DOUBLE, GCC_FUNC_MKDIR_TAKES_ONE_ARG,
232 EGCS_PROG_INSTALL): Rename autoconf macros with prefix gcc_AC_.
234 * configure.in (AC_GCC_C_LONG_DOUBLE, GCC_PROG_LN, GCC_PROG_LN_S,
235 GCC_C_VOLATILE, EGCS_PROG_INSTALL, GCC_HEADER_STRING,
236 GCC_FUNC_VFPRINTF_DOPRNT, GCC_FUNC_PRINTF_PTR,
237 GCC_NEED_DECLARATIONS, GCC_FUNC_MKDIR_TAKES_ONE_ARG): Invoke with
240 2000-04-24 Mumit Khan <khan@xraylith.wisc.edu>
242 * c-pragma.c (push_alignment): Use BITS_PER_UNIT macro.
243 (pop_alignment): Likewise.
244 (handle_pragma_token): Likewise.
246 2000-04-24 Robert Lipe <robertlipe@usa.net>
248 * tree.h (tree_decl): Member `mode' now ENUM_BITFIELD.
250 2000-04-24 Hiroyuki Machida <machida@sm.sony.co.jp>
252 * combine.c (try_combine): Update reg_nonzero_bits of
253 newi2pat before newpat.
255 Mon Apr 24 10:19:48 MET DST 2000 Jan Hubicka <jh@suse.cz>
257 * loop.c (strength_reduce): Simplify test to INSN_P.
258 (record_giv): Attempt to simplify the add value, use CONSTANT_P
259 expressions instead of CONST_INT.
260 (express_from_1): Likewise.
262 2000-04-24 Mark Mitchell <mark@codesourcery.com>
264 * regs.h (reg_n_max): Don't declare.
265 * flow.c (reg_n_max): Don't define.
266 * regclass.c (renumber): Don't initialize to zero.
267 (regno_allocated): Likewise.
269 (allocate_reg_info): Don't initialize unnecessarily.
271 Mon Apr 24 00:21:36 2000 Jeffrey A Law (law@cygnus.com)
273 * genattrtab.c (find_attr): Initialize unsigned_p, func_units_p
274 and blockage_p in the newly allocated attribute.
276 Sun Apr 23 20:16:49 2000 Alexandre Oliva <aoliva@cygnus.com>
278 * config/mn10300/mn10300.md (addsi): `inc4' on address
279 registers does not modify cc, but `inc' on an extended
282 Sun Apr 23 16:24:35 2000 Denis Chertykov <denisc@overta.ru>
284 * reload.c (find_equiv_reg): Checks all valueno regs
285 as a reload_reg_p regs.
287 2000-04-23 Zack Weinberg <zack@wolery.cumb.org>
289 * cpphash.c (collect_objlike_expansion): Add sanity check.
290 (special_symbol): Remove case T_CONST, T_XCONST, T_MCONST. If
291 the buffer is the empty string, return. Mark __DATE__ and
292 __TIME__ as XCONST nodes, not MCONST.
293 (_cpp_macroexpand): Avoid pushing an empty buffer.
294 (funlike_macroexpand): Don't pop token_buffer here.
296 Sun Apr 23 18:37:53 2000 Alexandre Oliva <aoliva@cygnus.com>
298 * config/mn10300/mn10300.h (REGNO_IN_RANGE_P): New macro.
299 (REGNO_DATA_P, REGNO_ADDRESS_P, REGNO_SP_P): New macros.
300 (REGNO_EXTENDED_P, REGNO_AM33_P): New macros.
301 (REGNO_OK_FOR_BASE_P): Define in terms of them.
302 (REGNO_OK_FOR_BIT_BASE_P, REGNO_OK_FOR_INDEX_P): Likewise.
303 (REG_OK_FOR_BASE_P): Define in terms of the REGNO macro.
304 (REG_OK_FOR_BIT_BASE_P, REG_OK_FOR_INDEX_P): Likewise.
306 Sun Apr 23 22:23:08 MET DST 2000 Jan Hubicka <jh@suse.cz>
308 * loop.c (simplify_giv_expr): Be more agressive on simplifying
311 2000-04-23 Zack Weinberg <zack@wolery.cumb.org>
313 * cpphash.h (struct definition): Move file, line, col members...
314 (struct hashnode): ... here. Also add 'disabled' flag.
315 (enum node_type): Add T_VOID, T_XCONST, T_FMACRO, and
316 T_IDENTITY. Remove T_DISABLED.
319 * cpphash.c (_cpp_dump_definition): Split out dump_DEFINITION.
320 (collect_expansion): Split into collect_objlike_expansion and
321 collect_funlike_expansion.
322 (_cpp_macroexpand): Split out scan_arguments, stringify, and
324 (_cpp_compare_defs): Rename compare_defs, make static.
325 (_cpp_make_hashnode): Initialize hp->disabled.
326 (macro_cleanup): Adjust for new token types. Clear
328 (_cpp_create_definition): Move code here to determine what
329 sort of macro it is, and code to check for redefinitions, from
330 do_define. Implement a few simple cases without creating a
332 (_cpp_macroexpand, special_symbol, _cpp_dump_definition):
333 Handle the simple cases.
334 (push_macro_expansion): Set buf->has_escapes and hp->disabled
337 * cppinit.c (builtin_array): Change MCONST to XCONST
339 * cpplex.c (maybe_macroexpand): Handle IDENTITY macros here;
340 fix check for disabled and function-like macros.
341 * cpplib.c (do_define): Move most logic to
342 _cpp_create_definition.
343 (do_undef): Handle new special token types.
345 Sun Apr 23 14:27:44 MET DST 2000 Jan Hubicka <jh@suse.cz>
347 * loop.c (maybe_eliminate_biv_1): Use GET_CODE (x) == CONST_INT instead
348 of CONSTANT_P for mult_val; always use validate_change to update insn.
350 2000-04-22 Zack Weinberg <zack@wolery.cumb.org>
352 * cpphash.c (trad_stringify, add_pat): New functions.
353 (collect_expansion): Restore support for -traditional syntax.
354 Use trad_stringify and add_pat.
355 (_cpp_macroexpand): Restore support for -traditional semantics.
356 * cpplex.c (_cpp_scan_line): Don't change space_before if we
358 (_cpp_lex_token): Provide COMMENT tokens to caller if
359 traditional and parsing_define_directive.
360 (skip_comment): Warn about // comments if -Wtraditional.
361 * cpplib.c (do_define): Fix typo. Create EMPTY nodes with
363 (do_undef): Don't warn about undefining EMPTY nodes.
365 Sat Apr 22 22:35:38 MET DST 2000 Jan Hubicka <jh@suse.cz>
367 * loop.c (strength_reduce): Fix biv removal code.
369 2000-04-22 Richard Henderson <rth@cygnus.com>
371 * predict.c (estimate_probability): Examine both sides of
372 a branch for no exits. Use 90% not 50% for predict taken.
373 Reorg for one copy of note generation code.
375 2000-04-22 Richard Henderson <rth@cygnus.com>
377 * flow.c (mark_used_reg): Hack around rs6000 eliminable pic reg.
379 2000-04-22 Richard Henderson <rth@cygnus.com>
381 * diagnostic.c (init_output_buffer): Don't initialize format_args.
382 (output_clear): Likewise.
383 (output_printf): Use va_copy.
384 (vline_wrapper_message_with_location): Likewise.
385 (v_message_with_decl): Likewise.
386 (line_wrapper_printf): VA_START infor buffer.format_args directly.
387 * system.h (va_copy): Provide default implementation.
389 2000-04-22 Richard Henderson <rth@cygnus.com>
391 * predict.c (expected_value_to_br_prob): Don't bomb if op1 of
392 the collected condition is not a constant.
394 2000-04-22 Gabriel Dos Reis <gdr@codesourcery.com>
396 * diagnostic.h: New file.
398 * Makefile.in (diagnostic.o): Depends on diagnostic.h
400 * diagnostic.c: Tweak. Rationalize the output logic. Adjust
401 various function prototypes.
402 (diagnostic.h): #include.
403 (struct output_buffer): Move into diagnostic.h.
404 (get_output_prefix): Rename to output_get_prefix. Export.
405 (init_output_buffer): Export. Break out. Ajust intialization.
406 (output_space_left, output_append): Export.
407 (output_newline): Rename to output_add_newline. Export.
408 (output_clear): Nullify additional output_buffer fields.
409 (output_puts): Rename to output_add_string. Export.
410 (dump_output): Rename to output_flush_on. Export.
411 (build_location_prefix): Constify return-type.
412 (emit_output_prefix): Rename to output_emit_prefix. Export.
413 (set_real_maximum_length): New function.
414 (output_set_maximum_length): Ditto
415 (output_clear): Ditto.
416 (output_add_character): Ditto.
417 (output_add_integer): Ditto.
418 (output_add_space): Ditto.
419 (output_format): Ditto.
420 (output_printf): Adjust buffer initialization.
421 (vline_wrapper_message_with_location): Ditto.
422 (v_message_with_decl): Ditto. Adjust call to output_puts
423 and get_output_prefix.
424 (default_print_error_function): Adjust buffer intialization.
426 Sat Apr 22 06:45:04 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
428 * expr.c (preexpand_calls, case CALL_EXPR): Don't look at TYPE_SIZE
431 Fri Apr 21 18:33:09 2000 Alexandre Oliva <aoliva@cygnus.com>
433 * config/mn10300/mn10300.h (REGNO_REG_CLASS): Use NO_REGS instead
436 Fri Apr 21 18:30:00 2000 Alexandre Oliva <aoliva@cygnus.com>
438 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Provide more
439 accurate data about SP moves.
441 Fri Apr 21 18:28:28 2000 Alexandre Oliva <aoliva@cygnus.com>
443 * config/mn10300/mn10300.h (ADDITIONAL_REGISTER_NAMES): Added
444 aliases to AM33 registers.
446 Fri Apr 21 18:26:17 2000 Alexandre Oliva <aoliva@cygnus.com>
448 * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Added register 16
449 to all EXTENDED bitmaps.
451 Fri Apr 21 18:17:12 2000 Alexandre Oliva <aoliva@cygnus.com>
453 * config/mn10300/mn10300-protos.h (mn10300_address_cost): Declare.
454 * config/mn10300/mn10300.h (ADDRESS_COST): New macro.
455 * config/mn10300/mn10300.c (mn10300_address_cost): New function.
457 Fri Apr 21 18:11:56 2000 Alexandre Oliva <aoliva@cygnus.com>
459 * config/mn10300/mn10300.md (movdi, movdf): Do not use `movu' when
460 the operand is not constant.
462 Fri Apr 21 14:58:29 2000 Denis Chertykov <denisc@overta.ru>
464 * reload.c (find_equiv_reg): Checks all valueno and regno regs
465 as a call-clobbered regs.
467 Fri Apr 21 13:30:26 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
469 * rtl.c: Use NOTE_INSN_REPEATED_LINE_NUMBER and NOTE_INSN_RANGE_BEG.
471 * rtl.def: Update comment.
472 * function.c (expand_function): Use NOTE_INSN_REPEATED_LINE_NUMBER.
473 * integrate.c (expand_inline_function): Likewise.
474 * profile.c (branch_prob): Likewise.
475 * ggc-common.c (ggc_mark_rtx_children): Use NOTE_INSN_RANGE_BEG.
476 * print-rtl.c (print_rtx): Likewise.
477 * haifa-sched.c (sched_analyze, unlink_other_notes): Likewise.
478 (reemit_notes): Likewise; also use enum insn_note.
480 * stor-layout.c (layout_decl): Only set DECL_MODE if not already set.
481 (place_field): Properly compute know and actual alignment.
483 * gengenrtl.c (gencode): Write obstack_alloc_rtx function start
486 * cse.c (cse_insn): In (set REG0 REG1) case, remove a REG_EQUAL
489 2000-04-21 Zack Weinberg <zack@wolery.cumb.org>
491 * cpphash.c (struct arg, struct arglist): Const-ify strings.
492 (warn_trad_stringify, duplicate_arg_p): New helper functions.
493 (collect_expansion): Rewrite to scan over a token list.
494 Remove -traditional support.
495 (collect_formal_parameters): Rename to collect_params; rewrite
496 to scan over a token list.
497 (_cpp_create_definition): Adjust to scan a token list.
498 (_cpp_macroexpand): Remove -traditional support.
499 (_cpp_compare_defs): Whitespace is now canonicalized.
500 (comp_def_part): Delete function.
502 * cpphash.h: Update prototypes.
503 * cpplex.c (init_token_list): Don't set lineno if there is no
505 (pedantic_whitespace): New function.
506 (_cpp_scan_line): Mark tokens that had hspace before. Don't
507 consume a newline. Use pedantic_whitespace.
508 (_cpp_lex_token): Remove support for -traditional macros.
509 (_cpp_get_define_token): Delete.
510 (_cpp_get_directive_token): Do the real work here. Use
512 (_cpp_init_input_buffer): Initialize pfile->directbuf.
514 * cpplib.c (get_macro_name): Delete.
515 (do_define): Read the entire line into pfile->directbuf, then
516 feed the token list to _cpp_create_definition.
517 * cpplib.h (HSPACE_BEFORE): new define.
518 (struct cpp_reader): Add a toklist member, "directbuf".
520 * predict.c (estimate_probability): New heuristic: if a jump
521 branches around a block with no successors, predict it taken.
522 Disentangle control flow.
524 2000-04-20 Richard Henderson <rth@cygnus.com>
526 * loop.c (emit_iv_add_mult): Revert last change.
528 2000-04-20 Zack Weinberg <zack@wolery.cumb.org>
530 * cpplib.h (enum cpp_ttype): Add token types for all
531 punctuators. Distinguish pp-numbers from valid C numbers.
532 Give some tokens better names. Initialize from macro.
533 (struct cpp_name, cpp_token, cpp_toklist): New data
536 * cpplex.c (bump_column, expand_name_space,
537 expand_token_space, init_token_list, cpp_output_list,
538 _cpp_scan_line): New functions.
539 (output_line_command): Add third argument, new line number.
540 * cpphash.h: Update prototypes.
541 * cppexp.c, cpphash.c, cpplib.c, scan-decls.c: Update for new
544 2000-04-20 Richard Henderson <rth@cygnus.com>
546 * config/alpha/alpha.c (alpha_emit_floatuns): Emit missing barrier.
548 2000-04-20 Zack Weinberg <zack@wolery.cumb.org>
550 * c-common.c (decl_attributes) [A_ALIAS]: Set TREE_USED on the
553 Thu Apr 20 14:19:18 MET DST 2000 Jan Hubicka <jh@suse.cz>
555 * loop.c (emit_iv_add_mult): Simplify it's input and emit
556 REG_EQUAL note explaining the calculated value.
558 * calls.c (expand_call): Avoid unnecesary precalculation
559 and outgoing parameters space guarding for sibling calls.
560 (store_one_arg): Likewise.
562 Thu Apr 20 08:01:07 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
564 * toplev.c (enum dump_file_index, dump_file): Add DFI_sibling.
565 (rest_of_compilation): Write sibling dump file and account
566 for time as jump time.
567 * invoke.texi: Update documentation on dump flags.
569 2000-04-19 Marek Michalkiewicz <marekm@linux.org.pl>
571 * avr.c: #include "system.h" instead of <stdio.h> and <stdlib.h>.
573 2000-04-19 Zack Weinberg <zack@wolery.cumb.org>
575 * cpphash.c (special_symbol): Represent an empty macro with
576 "\r \r " not just "\r ".
577 (_cpp_macroexpand): Correct condition for the foo ( ) special
579 (unsafe_chars): Handle EOF as second argument.
580 (push_macro_expansion): Simplify test for removing escape at
581 end. Do not trim both escapes if there is no text in between.
583 2000-04-19 Jim Blandy <jimb@redhat.com>
585 * dwarf2out.c (DWARF2_ADDR_SIZE): New macro. Use it instead
586 of PTR_SIZE, when appropriate.
588 2000-04-19 Mark Mitchell <mark@codesourcery.com>
590 * system.h (ONLY_INT_FIELDS): Make sure it is defined.
591 (USE_ENUM_BITFIELDS): Fix typo.
593 Wed Apr 19 12:14:55 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
595 * stor-layout.c (place_field): Set rli->offset_align properly.
597 2000-04-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
599 * mips.h (BITS_PER_WORD, UNITS_PER_WORD, UNITS_PER_FPREG,
600 INT_TYPE_SIZE, LONG_TYPE_SIZE, POINTER_SIZE, POINTER_BOUNDARY,
601 PARM_BOUNDARY): Remove unnecessary casts.
603 Wed Apr 19 12:02:37 MET DST 2000 Jan Hubicka <jh@suse.cz>
605 * calls.c (precompute_arguments): Remove must_preallocate and
607 (expand_call): Update call of precompute_arguments.
609 * loop.c (check_insn_for_bivs, for_every_insn_in_loop,
610 check_insn_for_givs): Break out from ...
611 (strength_reduce) ... here; use for_every_insn_in_loop to call
613 * loop.h (for_every_insn_in_loop): Declare.
614 (loop_insn_callback): New type.
616 2000-04-18 Zack Weinberg <zack@wolery.cumb.org>
618 * cpplib.c (do_pragma_poison): Strings in the token buffer are
621 Tue Apr 18 16:04:12 2000 Jim Wilson <wilson@cygnus.com>
623 * config/ia64/sysv4.h (SELECT_SECTION): Use data_section if
626 2000-04-18 Zack Weinberg <zack@wolery.cumb.org>
628 * cccp.c, cexp.y, cexp.c, cccp.1: Removed.
630 * configure.in: Delete --disable-cpplib option and all
631 references to cpp_main.
632 * configure: Regenerate.
633 * Makefile.in: Remove all references to CCCP, CCCP_OBJS,
634 @cpp_main@, cccp.c, cexp.c, cexp.y, cexp.output, cexp.o,
635 cccp.o, cccp, or cppmain. Link cppmain.o straight to
636 cpp$(exeext). Add --no-headers to makeinfo command line when
637 generating INSTALL. Install and uninstall cpp.1 manpage, not
639 * install.texi: Delete all references to cexp.y/cexp.c.
640 Delete ancient instructions for compiling GCC on 3b1.
641 * INSTALL: Regenerate.
643 * cppfiles.c, cpplib.h, jump.c, protoize.c, c-lex.c, mips/t-ecoff,
644 mips/t-elf, mips/t-r3900: Remove references to cccp.c.
645 * convex.h, fx80.h, m68k.h, pdp11.h: Remove references to
647 * xm-linux.h, xm-os2.h, romp.h: Remove definition of BSTRING,
648 which is no longer tested anywhere.
650 * cppinit.c (handle_option): Don't run error message through
653 Tue Apr 18 14:16:47 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
655 * conflict.c (conflict_graph_add): Pass enum type to htab_find_slot.
656 * cpperror.c (hashtab.h): Now include.
657 * cppexp.c (hashtab.h): Likewise.
658 * cpplex.c (hashtab.h): Likewise.
659 * cppfiles.c (hashtab.h): Likewise.
660 (find_include_file, _cpp_calc_hash, cpp_read_file): Pass enum type
661 to htab_find_slot_with_hash.
662 * cpphash.c (hashtab.h): Now include.
663 (_cpp_lookup_slot): INSERT is now enum insert_option.
664 * cpphash.h (_cpp_lookup_slot): Likewise.
665 * cppinit.c (hashtab.h): Include earlier.
666 (initialize_builtins): Pass enum to htab_find_slot.
667 * cpplib.c (hashtab.h): Now include.
668 (do_define, do_undef): Pass enum type to _cpp_lookup_slot.
669 (do_pragma_poison, do_assert): Likewise.
670 * emit-rtl.c (gen_rtx_CONST_INT): Pass enum to
671 htab_find_slot_with_hash.
672 * simplify-rtx.c (cselib_lookup_mem, cselib_lookup): Likewise.
673 * tree.c (type_hash_add): Likewise.
674 (build1): Minor cleanup.
676 * ggc-common.c: Add missing blanks.
677 * print-tree.c (print_node): Print DECL_OFFSET_ALIGN.
678 * tree.h (DECL_OFFSET_ALIGN): Fix typo in comment.
680 * stmt.c (mark_case_node): New function.
681 (mark_case_nesting): Call it.
683 * expmed.c (emit_store_flag): If comparing two-word integer
684 with zero, can optimize NE, EQ, GE, and LT.
686 * c-decl.c (mark_binding_level): Use 'for' instead of `while'.
687 * conflict.c: Minor cleanups.
688 * optabs.c: Add blank line
689 * simplify-rtx.c: Minor cleanups.
691 2000-04-18 Stan Cox <scox@cygnus.com>
693 * gengenrtl.c (genlegend): Fix misspelling.
695 2000-04-18 Robert Lipe <robertlipe@usa.net>
697 * configure.in (ENUM_BITFIELDS_ARE_UNSIGNED): Added. Check that
698 bitfields of the host compiler are not signed quantities.
699 * config.in: Regenerate.
700 * configure: Regenerate.
701 * system.h (USE_ENUM_BITFIELDS): Added.
702 (ENUM_BITFIELDS): Added.
703 * rtl.h (rtx_def): Members `code', `mode', now ENUM_BITFIELD.
704 (SHORT_ENUM_BUG): Deleted.
705 * tree.h (tree_common): Members `code', `mode', `built_in_class',
707 * config/i386/xm-sco.h (ONLY_INT_FIELDS): Deleted.
708 (CODE_FIELD_BUG): Likewise.
709 * config/m68k/x-apollo68 (CC): Deleted SHORT_ENUM_BUG.
711 * config/m68k/x-ccur (X_CFLAGS): Likewise.
713 2000-04-18 Mark Mitchell <mark@codesourcery.com>
715 * cpplex.c (_cpp_lex_token): Don't call CPP_BUMP_LINE when the
718 2000-04-17 Zack Weinberg <zack@wolery.cumb.org>
720 * cppexp.c (lex): Don't assume tokens are NUL terminated.
721 * cpplib.c (do_include, do_import, do_include_next,
722 read_line_number, detect_if_not_defined): Likewise.
723 * cpphash.c (collect_expansion): Likewise.
724 (special_symbol, _cpp_macroexpand): Check return from
726 * cpphash.h (CPP_NUL_TERMINATE, CPP_NUL_TERMINATE_Q): Delete
727 macros. Delete all uses.
729 * gcc.dg/cpp-mi.c: Add two more test cases.
730 * gcc.dg/cpp-mind.h, gcc.dg/cpp-mindp.h: New files.
732 2000-04-17 Richard Henderson <rth@cygnus.com>
734 * bb-reorder.c (fixup_reorder_chain): Don't look up new block again.
735 (reorder_basic_blocks): If no epilogue in rtl, force last block last.
737 2000-04-17 Mark Mitchell <mark@codesourcery.com>
739 * function.c (expand_function_start): Use hard_function_value to
740 compute the RTL to use for DECL_RESULT.
742 Mon Apr 17 23:35:29 MET DST 2000 Jan Hubicka <jh@suse.cz>
744 * i386.c (athlon_cost): Fix lea, divide and XFmode move costs.
745 (x86_integer_DFmode_moves, x86_partial_reg_dependency,
746 x86_memory_mismatch_stall): New global variables.
747 (ix86_adjust_cost): Handle MEMORY_BOTH on places MEMORY_STORE was only
748 alloved; fix load penalties for Athlon.
749 * i386.h (x86_integer_DFmode_moves, x86_partial_reg_dependency,
750 x86_memory_mismatch_stall): Declare.
751 (TARGET_INTEGER_DFMODE_MOVES, TARGET_PARTIAL_REG_DEPENDENCY,
752 TARGET_MEMORY_MISMATCH_STALL): New.
753 * i386.md (athlon scheduling parameters): Fix latencies according to
754 Athlon Optimization Manual.
755 (sahf, xchg, fldcw, leave instruction patterns): Set athlon_decode to
757 (fsqrt instruction patterns): Set athlon_decode to direct.
758 (movhi_1): Promote for TARGET_PARTIAL_REG_DEPENDENCY and for
759 PARTIAL_REGISTER_STALL with !TARGET_HIMODE_MATH machines.
760 (movqi_1): Handle promoting correctly for TARGET_PARTIAL_REG_DEPENDENCY
761 and TARGET_PARTIAL_REGISTER_STALL machines.
762 (pushdf_nointeger): New pattern.
763 (pushdf_integer): Rename from pushdf.
764 (movdf_nointger): Enable for !TARGET_INTEGER_DFMODE_MOVES machines.
765 (movdf_intger): Disable for !TARGET_INTEGER_DFMODE_MOVES machines.
767 2000-04-17 Richard Henderson <rth@cygnus.com>
769 * loop.c (canonicalize_condition): Add WANT_REG argument.
770 Stop the search if we match it.
771 * expr.h (canonicalize_condition): Update decl.
772 * predict.c (expected_value_to_br_prob): Use it. Track last
774 (find_expected_value): Remove.
776 * reorg.c (mostly_true_jump): Always use BR_PROB if present.
778 2000-04-17 Zack Weinberg <zack@wolery.cumb.org>
780 * aclocal.m4 (AM_GNU_GETTEXT): Don't AC_REQUIRE([AC_FUNC_MMAP]).
781 (AC_FUNC_MMAP_FILE): New macro, tests read-only private map of
783 * configure.in: Call AC_FUNC_MMAP_FILE.
784 * configure: Regenerate.
785 * config.in: Regenerate.
787 * intl/loadmsgcat.c: Test HAVE_MMAP_FILE not HAVE_MMAP.
788 * fixinc/fixincl.c: Likewise.
790 2000-04-17 Richard Henderson <rth@cygnus.com>
792 * builtins.c (expand_builtin_expect): New.
793 (expand_builtin): Call it.
794 * builtins.def (BUILT_IN_EXPECT): New.
795 * c-common.c (c_common_nodes_and_builtins): Declare __builtin_expect.
796 * extend.texi: Document it.
798 * predict.c (expected_value_to_br_prob): New.
799 (find_expected_value): New.
800 * basic-block.h (expected_value_to_br_prob): Declare.
801 * toplev.c (rest_of_compilation): Invoke it.
803 * rtl.h (NOTE_EXPECTED_VALUE): New.
804 (NOTE_INSN_EXPECTED_VALUE): New.
805 * rtl.c (note_insn_name): Update.
806 * print-rtl.c (print_rtx): Reorg NOTE_LINE_NUMBER special
807 cases; handle NOTE_INSN_EXPECTED_VALUE.
809 2000-04-17 Jakub Jelinek <jakub@redhat.com>
811 * config/sparc/sparc.c (eligible_for_sibcall_delay): Cannot use
812 leaf sibcall delay slot if flag_pic.
813 (output_sibcall): Always emit call for leaf sibcall if flag_pic.
815 2000-04-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
817 * Makefile.in (stmp-fixproto): Acknowledge errors in fixproto.
819 * fixproto: If fix-header fails, exit with an error.
821 Mon Apr 17 14:59:36 MET DST 2000 Jan Hubicka <jh@suse.cz>
823 * cse.c (struct check_depdendence_data): New.
824 (check_dependence): New function.
825 (invalidate): Use check_depdenence.
827 2000-04-16 Mark Mitchell <mark@codesourcery.com>
829 * dwarf2out.c (DWARF_CIE_DATA_ALIGNMENT): Adjust, now that
830 UNITS_PER_WORD is unsigned.
832 * tree.h (struct tree_common): Remove misleading comment.
834 2000-04-16 Dave Pitts <dpitts@cozx.com>
836 * Makefile.in ($(srcdir)/c-parse.y: c-parse.in): Enclose the whole
837 message in quotes. Otherwise, IBM's make program treats the '#' as the
838 start of a comment and ignores the remainder of the line.
840 * c-lex.c (yylex): Change for EBCDIC, lower case characters preceed
842 * cccp.c (initialize_char_syntax): Allow for holes in EBCDIC.
843 * cexp.y (initialize_random_junk): Likewise.
844 * cppfiles.c (find_include_file): Cast alloca return value.
845 * cppinit.c (initialize_standard_includes): Likewise.
846 * cpplib.c (cpp_define, cpp_undef): Likewise.
847 * defaults.h (ASM_OUTPUT_ASCII): Use ISPRINT.
848 * final.c (output_asm_insn): Allow for holes in EBCDIC.
849 * fold-const.c (CHARMASK): New.
850 (real_hex_to_f): Use it.
851 * real.c (CHARMASK): New.
852 (etoasc, asctoeg): Use it.
853 (asctoeg): EBCDIC lower case characters preceed upper case.
855 * i370.c (mvs_add_label): Change spacing for coding conventions.
856 * i370.h (ASM_OUTPUT_CASE_LABEL): Change to the data CSECT for the
857 outputing case vectors.
858 (ASM_OUTPUT_CASE_END): New, put assembler back into code CSECT.
859 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove page check,
860 since vector in in the data CSECT.
861 (ASM_OUTPUT_REG_POP, ASM_OUTPUT_REG_PUSH): Restore to correct operation.
862 * i370.md (Many patterns): Put the length in the XL directives.
863 (movdi): Put back STM and MVC in definition.
864 (floatsidf2): Correct TARGET_ELF_ABI pattern and add back the LE370
865 pattern using the TCA.
866 * oe.h (CPP_SPEC): Added to allow trigraphs.
867 * xm-oe.h (HOST_BITS_PER_LONGLONG): Change to 32. IBM's compiler does
868 not support the "long long" type.
870 2000-04-16 Mark Mitchell <mark@codesourcery.com>
872 * config/mips/mips-protos.h (mips_legitimate_address_p): New
874 (mips_reg_mode_ok_for_base_p): Likewise.
875 * config/mips/mips.h (REG_OK_STRICT_P): Don't define.
876 (REG_OK_FOR_INDEX_P): Define unconditionally.
877 (REG_MODE_OK_FOR_BASE_P): Use mips_reg_mode_ok_for_base_p.
878 (GO_IF_LEGITIMATE_ADDRESS): Use mips_legitimate_address_p.
879 * config/mips/mips.c (mips16_simple_memory_operand): Adjust now
880 that GET_MODE_SIZE is unsigned.
881 (mips_reg_mode_ok_for_base_p): Define.
882 (mips_legitimate_address_p): Likewise. Adjust now
883 that GET_MODE_SIZE is unsigned.
884 (block_move_loop): Make the number of bytes unsigned.
885 (expand_block_move): Likewise.
886 (function_arg): Make the loop counter unsigned to match the
889 2000-04-16 Richard Henderson <rth@cygnus.com>
891 * rtl.h (enum insn_note): New enumeration. Subsume
892 NOTE_INSN_DELETED and friends.
893 (GET_NOTE_INSN_NAME): Adjust index by NOTE_INSN_BIAS.
894 * rtl.c (note_insn_name): Tweak string order.
896 2000-04-15 Zack Weinberg <zack@wolery.cumb.org>
898 * cpplex.c (_cpp_read_and_prescan): Enlarge len by setting it
901 * cpplex.c (output_line_command): Remove debugging prints.
902 (cpp_output_tokens): Don't write out a zero-length buffer or
903 try to see if it has a newline in it.
904 (_cpp_expand_to_buffer): Copy the source buffer before pushing.
905 (_cpp_read_and_prescan): Move shift-down of pushback bytes to
906 the end of the loop. Use memmove. Don't read past the end of
907 the buffer. Remove trailing newlines from error messages.
909 2004-04-16 Neil Booth <NeilB@earthling.net>
911 * cpphash.h (SYNTAX_INCLUDE, SYNTAX_ASSERT, directive_handler): new.
912 * cpplib.c: Add new syntax flags to directive table, and
915 2000-04-15 Ulrich Drepper <drepper@redhat.com>
917 * i386.c (ix86_expand_epilogue): Yes, the x86 can pop 64k at once
920 2000-04-15 David Edelsohn <edelsohn@gnu.org>
922 * toplev.c (display_help): Prefix "f" to "sched-verbose=".
923 * haifa-sched.c: Update -fsched-verbose comments to use "=".
925 Sat Apr 15 10:59:19 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
927 * Makefile.in (ggc-page.o): Now includes toplev.h.
928 * ggc-page.c (toplev.h): Now included.
929 (gc_time): Remove declaration.
930 (ggc_collect): TIME now long.
931 * toplev.c (parse_time, varasm_time, gc_time): Still global; all
933 * toplev.h (gc_time, parse_time, gc_time): New declarations.
935 * toplev.c: Make *_time variable long to reduce chance of overflow.
936 (TIMEVAR): Likewise for `otime'.
937 (print_time): Arg is now long; compute percentage in FP and round.
938 * toplev.h (print_time): Arg is long.
940 * tree.c: Minor whitespace changes.
942 * configure.in (alpha*-*-*): Add config/alpha/t-alpha.
943 * configure: Rebuilt.
944 * libgcc2.c (__fixunstfDI): Renamed from __fixunstfdi.
945 (__fixunsxfDI): Renamed from __fixunsxfdi.
946 (__fixunsdfDI): Renamed from __fixunsdfdi.
947 (__fixunssfDI): Renamed from __fixunssfdi.
948 (__floatdisf): Use proper type in REP_BIT macro.
949 (__fixunsxfSI): Renamed from __fixunsxfsi.
950 (__fixunsdfSI): Renamed from __fixunsdfsi.
951 (__fixunssfSI): Renamed from __fixunssfsi.
952 * libgcc2.h: Add cases for MIN_UNITS_PER_WORD > 4.
953 Change location of macros and upper-case some names as above.
954 * longlong.h ([alpha]): Use PARAMS, not __P in decl of __udiv__qrnnd.
955 * config/alpha/t-alpha, config/alpha/qrnnd.asm: New files.
957 * varasm.c (assemble_variable): Add cast to remove warning.
958 (immed_real_const_1): Only use CONST[01]_RTX if not in nested function.
960 * flow.c (count_basic_blocks, find_basic_blocks_1): Remove last change.
961 * optabs.c (emit_libcall_block): If have REG_EH_REGION, update
964 2000-04-15 Richard Earnshaw (rearnsah@arm.com)
966 * emit-rtl.c (unshare_all_rtl_again): Unmark everything, then
967 call unshare_all_rtl.
969 * arm.md (movhi): REGNO_POINTER_ALIGN is now bits.
971 Fri Apr 14 16:58:45 2000 Jim Wilson <wilson@cygnus.com>
973 * config/ia64/lib1funcs.asm (__divdi3, __moddi3, __udivdi3, __umoddi3):
974 Use .s1 not .s0 for all FP instructions.
976 2000-04-14 Zack Weinberg <zack@wolery.cumb.org>
978 * cpplex.c (cpp_output_tokens, cpp_scan_buffer_nooutput): New public
980 (safe_fwrite, output_line_command): New static functions.
981 (cpp_expand_to_buffer): Now private to cpplib.
982 (cpp_scan_buffer): Take a printer.
984 * cpphash.h: Update prototypes.
985 * cpplib.h: Update prototypes.
987 (cpp_buffer): Remove last_nominal_fname.
988 (cpp_reader): Remove lineno.
990 * cppmain.c: Use a cpp_printer.
991 * fix-header.c: No need to inhibit line commands. Call
992 cpp_start_read with no printer.
994 * cpperror.c (cpp_notice_from_errno): Provide default name.
995 * cppfiles.c (make_IHASH, _cpp_fake_ihash): New functions.
996 (find_include_file, cpp_read_file): Use make_IHASH.
997 (file_cleanup): Set control_macro and clear
998 input_stack_listing_current here.
999 (_cpp_execute_include): Don't output entering-file marker.
1000 * cpphash.c (special_symbol): Look for the line number in the
1001 buffer, not the reader.
1002 (_cpp_macroexpand): No need to disable line commands.
1003 (_cpp_dump_definition): No need to generate line commands.
1004 (dump_hash_helper): Remove excess newline from output.
1005 * cppinit.c (dump_special_to_buffer): No need to generate line
1007 (cpp_printer_init): New.
1008 (cpp_start_read): Take a printer, and start it up if it's not
1009 NULL. No need to generate line commands.
1010 (cpp_finish): Expect no buffers stacked at all. Take a
1011 printer argument, and flush the output buffer if it's not
1013 * cpplex.c (_cpp_lex_token): Return EOF if there's no buffer.
1014 Don't put two hashes at the beginning of an assertion.
1015 (cpp_get_token): Don't increment pfile->lineno or emit line
1016 commands here. Return EOF if there's no buffer when we get
1018 * cpplib.c (do_define, skip_if_group):
1019 No need to disable line commands.
1020 (_cpp_output_line_command): Delete function.
1021 (do_line): Don't emit line commands here, but set things up so
1022 they will be emitted if necessary. Use _cpp_fake_ihash to
1023 make unique nominal_fnames if necessary.
1024 (do_elif, do_else, _cpp_handle_eof): Call cpp_error_with_line
1025 with 0 for column, not -1.
1026 (_cpp_handle_eof): Don't set the control macro here. Don't
1027 clear input_stack_listing_current here. Don't emit line
1030 2000-04-14 Geoff Keating <geoffk@cygnus.com>
1032 * config/rs6000/sysv4.h (LINK_START_SOLARIS_SPEC): Define to empty
1033 always, use the default SVR4 start address.
1035 * config/rs6000/linux.h (LINK_SPEC): Don't define.
1036 (LINK_SHLIB_SPEC): Define.
1037 (LINK_START_DEFAULT_SPEC): Define.
1038 (LINK_OS_DEFAULT_SPEC): Define.
1040 * config/rs6000/sysv4.h (ENDFILE_SPEC): Use the %(endfile_*) macros.
1042 * config/rs6000/eabi.asm (__eabi): Call __init rather than
1043 __do_global_ctors to handle constructors.
1044 * config/rs6000/sysv4.h (STARTFILE_ADS_SPEC): Use crtbegin.
1045 (STARTFILE_YELLOWKNIFE_SPEC): Likewise.
1046 (STARTFILE_MVME_SPEC): Likewise.
1047 (STARTFILE_SIM_SPEC): Likewise.
1048 (ENDFILE_ADS_SPEC): Use crtend.
1049 (ENDFILE_YELLOWKNIFE_SPEC): Likewise.
1050 (ENDFILE_MVME_SPEC): Likewise.
1051 (ENDFILE_SIM_SPEC): Likewise.
1052 (STARTFILE_SOLARIS_SPEC): Use crtbegin/crtbeginS.
1053 (ENDFILE_SOLARIS_SPEC): Use crtend/crtendS.
1054 (STARTFILE_LINUX_SPEC): Use crtbeginS for shared objects.
1055 (ENDFILE_LINUX_SPEC): Use crtendS for shared objects.
1056 * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Don't build eabi-ctors.o.
1057 (EXTRA_MULTILIB_PARTS): Build crtbeginS/crtendS.
1058 (CRTSTUFF_T_CFLAGS_S): Define.
1059 * config/rs6000/eabi-ctors.c: Delete.
1061 * config/rs6000/eabi-ci.asm (__init): Align stack to 16-byte
1064 * config/rs6000/eabi-cn.asm (__init): Allow for 16-byte stack frame.
1068 Fri Apr 14 16:09:02 2000 Jim Wilson <wilson@cygnus.com>
1070 * combine.c (force_to_mode, case LSHIFTRT): Check that shift shift
1071 plus mask size is smaller or equal to the mode size.
1073 Fri Apr 14 18:07:30 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1075 * print-rtl.c (print_rtx, case NOTE): Don't blow up if NOTE_BASIC_BLOCK
1078 * expr.c (reload.h): Now included.
1079 (emit_block_move): Set volatile_ok when checking for movstr.
1080 (emit_move_1): Check for replacements in addresses in multi-word case.
1081 * Makefile.in (expr.o): Now includes reload.h.
1083 * flow.c (count_basic_blocks): Remove unused var PREV_CALL.
1084 Never have a LIBCALL end a basic block.
1085 (find_basic_blocks_1): Likewise.
1086 Reorganize CALL_INSN cases.
1088 * sbitmap.h (EXECUTE_IF_SET_IN_SBITMAP): Revert last change.
1090 Fri Apr 14 10:54:22 2000 Jim Wilson <wilson@cygnus.com>
1092 * config/ia64/lib1funcs.asm (__ia64_nonlocal_goto): Drop obsolete
1093 completers from mov.ret instruction.
1095 2000-04-14 Richard Henderson <rth@cygnus.com>
1097 * fold-const.c (extract_muldiv): Don't distribute and widen
1098 multiply across plus for non-sizetype unsigned types.
1100 2000-04-14 Richard Henderson <rth@cygnus.com>
1102 * flow.c (find_auto_inc): Don't autoinc eliminable registers.
1103 If the original source is dead in the incr insn, it's dead now.
1105 Fri Apr 14 07:40:32 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1107 * stor-layout.c (layout_decl): Properly compare KNOWN_ALIGN to
1108 see if DECL_BIT_FIELD needs to still be set.
1110 * tree.h (struct tree_type): Make PRECISION 9 bits and MODE 7.
1112 * dbxout.c (dbxout_type, case INTEGER_TYPE): Don't call
1113 print_int_cst_octal with something that's not an INTEGER_CST.
1115 * config/alpha/alpha.c (alpha_emit_floatuns): Ensure we pass a REG
1116 and not a SUBREG to a FLOAT rtl.
1118 Thu Apr 13 19:39:56 2000 Clinton Popetz <cpopetz@cygnus.com>
1120 * emit-rtl.c (try_split): Avoid infinite loop if the split
1121 results in a sequence that contains the original insn.
1123 2000-04-13 Andreas Jaeger <aj@suse.de>
1125 * config/mips/mips.c (expand_block_move): Pass alignment
1126 argument to move_by_pieces in bits, not bytes.
1128 * config/mips/linux.h (CPP_PREDEFINES): Also define __PIC__ and
1129 __pic__ for little endian.
1131 2000-04-13 Andreas Jaeger <aj@suse.de>
1133 * config/i386/i386-protos.h: Add prototype for
1134 uno_comparison_operator.
1136 Thu Apr 13 15:55:08 MET DST 2000 Jan Hubicka <jh@suse.cz>
1138 * alias.c (nonlocal_reference_p): Take care of CALL_INSNS's fusage.
1139 * calls.c (ECF_PURE): New flag.
1140 (emit_call_1): Handle ECF_PURE calls.
1141 (initialize_argument_information): Unset ECF_PURE flag too.
1142 (precompute_arguments): Precompute for ECF_PURE too.
1143 (expand_call): Handle ECF_PURE calls too.
1144 (emit_library_call_value_1): Rename no_queue argument to fn_type,
1145 accept value of 2 as pure function.
1146 (emit_library_call_value, emit_library_call): Rename no_queue argument
1148 * optabs.c (prepare_cmp_insn): Pass fn_type 2 to memcmp call.
1150 * tree.h (DECL_IS_PURE): New macro.
1151 (struct tree_decl): Add pure_flag.
1152 * c-common.c (enum attrs): Add attribute "pure".
1153 (init_attributes): Initialize attribute "pure"
1154 (decl_attributes): Handle attribute "pure".
1155 * extend.texi (Attribute "pure"): Document.
1156 * calls.c (expand_call): Add (mem:BLK (scratch)) to "equal from"
1158 (flags_from_decl_or_type): Support attribute "pure".
1160 2000-04-13 Jason Merrill <jason@casey.cygnus.com>
1162 * cpplex.c (_cpp_lex_token): Handle digraphs. Don't null-terminate
1163 the token except for numbers and identifiers.
1165 Thu Apr 13 00:09:16 EDT 2000 John Wehle (john@feith.com)
1167 * i386.c (ix86_expand_binary_operator,
1168 ix86_expand_unary_operator): Check no_new_pseudos
1169 instead of reload_in_progress and reload_completed.
1170 (ix86_split_ashldi, ix86_split_ashrdi,
1171 ix86_split_lshrdi): Check no_new_pseudos instead
1172 of reload_completed.
1174 2000-04-12 Jeffrey A Law (law@cygnus.com)
1176 * function.c (purge_addressof): Unshare any shared rtl created by
1177 purge_addressof and its children.
1179 2000-04-12 Mark Mitchell <mark@codesourcery.com>
1181 * function.c (aggregate_value_p): VOID_TYPE nodes are never
1184 2000-04-05 Andreas Jaeger <aj@suse.de>
1186 * config/mips/linux.h (SUBTARGET_ASM_SPEC): Use proper flags if
1187 not compiling PIC code, add flags for mabi=64.
1188 (SUBTARGET_CPP_SIZE_SPEC): New.
1189 (SUBTARGET_CPP_SPEC): New.
1190 (CPP_PREDEFINES): Define __PIC__ and __pic__. PIC code is default
1191 for MIPS/Linux and lots of code needs these defines.
1193 Wed Apr 12 22:44:11 2000 Hans-Peter Nilsson <hp@axis.com>
1195 * reorg.c (fill_slots_from_thread): Check side_effects_p when
1196 trying the "opposite arithmetic" approach.
1198 Wed Apr 12 20:51:20 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
1200 * sh.h (STRUCT_VALUE): Just 0 for TARGET_HITACHI.
1201 (struct sh_args): Add new field force_mem.
1202 (INIT_CUMULATIVE_ARGS): Initialize it.
1203 (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Act on it.
1205 Wed Apr 12 17:20:41 MET DST 2000 Jan Hubicka <jh@suse.cz>
1207 * calls.c (expand_call): Do not reverse args in "equal from" field.
1208 (emit_library_call_value_1): Emit_libcall_block for const and pure
1211 Wed Apr 12 16:00:25 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
1213 * reload1.c (reload_combine): Don't enable optimization for fixed
1214 registers when encountering a BARRIER.
1216 Wed Apr 12 15:54:11 MET DST 2000 Jan Hubicka <jh@suse.cz>
1218 * builtins.c (expand_builtin_memcmp): Do expansion even with
1219 !HAVE_cmpstrsi, do libcall when gen_strcmpsi fails.
1221 * calls.c (expand_call): Do NO_DEFER_POP unconditionally once
1222 stack is propertly aligned; add sanity checking for aligned
1224 (expand_library_call_value_1): Add sanity checking for aligned
1227 Wed Apr 12 07:51:54 2000 Catherine Moore <clm@cygnus.com>
1229 * calls.c (emit_library_call_value_1): Change 3rd arg to
1230 locate_and_pad_parm to disregard the setting of partial.
1232 Wed Apr 12 08:47:38 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1234 * tree.c (unsave_expr_now_r, unsafe_for_reeval): Properly do TREE_LIST.
1236 * print-rtl.c (print_rtx): For CALL_PLACEHOLDER, output the
1237 CALL_INSN from the normal case.
1239 Fri Apr 7 12:23:04 MET DST 2000 Jan Hubicka <jh@suse.cz>
1241 * i386.c (x86_sub_esp_4, x86_sub_esp_8, x86_add_esp_4, x86_add_esp_8):
1242 New global variables.
1243 (ix86_emit_epilogue_adjustment): Do not attempt to use pop for the
1245 * i386.h (x86_sub_esp_4, x86_sub_esp_8, x86_add_esp_4, x86_add_esp_8):
1247 (TARGET_SUB_ESP_4, TARGET_SUB_ESP_8, TARGET_ADD_ESP_4,
1248 TARGET_ADD_ESP_8): New macros.
1249 * i386.md: Add peep2s to convert esp adjustments to push and pop
1251 (pushsi_prologue, popsi_epilogue): New patterns.
1253 2000-04-12 Jakub Jelinek <jakub@redhat.com>
1255 * real.c (toe64): Remove stale #endif from the last change.
1257 2000-04-12 Stephen L Moshier <moshier@mediaone.net>
1259 * real.h (MAX_LONG_DOUBLE_TYPE_SIZE): Comment.
1260 * real.c (toe64): Revert previous change.
1262 2000-04-12 Jakub Jelinek <jakub@redhat.com>
1264 * objc/objc-act.c: Include ggc.h.
1265 (objc_tree_index, objc_global_trees): Convert most of the
1266 static tree variables into a static array with previous names
1268 (objc_ellipsis_node): New variable.
1269 (lang_init): Call objc_act_parse_init and c_parse_init.
1270 Create objc_ellipsis_node.
1271 (build_selector_translation_table): Use objc_ellipsis_node instead
1273 (hack_method_prototype): Likewise.
1274 (get_arg_type_list): Likewise.
1275 (start_method_def): Likewise.
1276 (continue_method_def): Likewise.
1277 (gen_method_decl): Likewise.
1278 (ggc_mark_imp_list): New function.
1279 (ggc_mark_hash_table): New function.
1280 (objc_act_parse_init): New function.
1281 * objc/objc-act.h (objc_ellipsis_node): Add extern variable.
1282 * c-parse.in (c_parse_init): For objc add roots of objc specific
1283 local tree variables.
1284 * objc/objc-parse.y: Rebuilt.
1285 * objc/objc-parse.c: Rebuilt.
1286 (opt_parm_list): Use objc_ellipsis_node instead of (tree)1.
1288 Wed Apr 12 01:00:44 EDT 2000 John Wehle (john@feith.com)
1290 * cse.c (delete_trivially_dead_insns): Also delete insns
1291 that copy a register to itself where the destination is
1294 2000-04-11 Richard Henderson <rth@cygnus.com>
1296 * flow.c (struct propagate_block_info): Add new_dead, new_live.
1297 (propagate_block): Initialize them. Use them in parallel instead
1298 of one tmp variable, ie revert much of the 0408 and 0407 functional
1299 changes, but keep the structural changes.
1300 (mark_set_regs): Take new_dead from propagate_block_info instead.
1301 (mark_set_1, mark_set_reg): Likewise.
1302 (mark_used_regs): Likewise with new_live.
1303 (mark_used_reg): Likewise. Revert 0408 change.
1305 2000-04-11 Nick Clifton <nickc@cygnus.com>
1307 * config/arm/arm.h: (INCOMING_RETURN_ADDR_RTX): Remove Dwarf2
1309 (DWARF_FRAME_RETURN_COLUMN): Remove Dwarf2 restriction.
1311 2000-04-11 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
1313 * config/elfos.h (SELECT_SECTION): Decide whether to use a data or
1314 const section to output a CONSTRUCTOR based on the same conditions
1317 Tue Apr 11 09:55:59 2000 Jeffrey A Law (law@cygnus.com)
1319 * pa/long-double.h (FIX_TRUNCTFSI2_LIBCALL): Tweak for PA64.
1320 * pa/pa-protos.h (output_call): Add additional argument indicating
1321 if the call is a sibling/tail call.
1322 (compute_zdepdi_operands, output_64bit_and): Prototype new functions.
1323 (compute_64bit_ior, cmpib_comparison_operator): Likewise.
1324 (function_arg, function_arg_partial_nregs): Likewise
1325 * pa/pa.c (override_options): Always set flag_pic for TARGET_64BIT.
1326 (emit_move_sequence): Zero extend certain constants as needed
1328 (compute_zdepdi_operands, output_64bit_and): New functions.
1329 (output_64bit_ior, function_arg): Likewise.
1330 (cmpib_comparison_operator, function_arg_partial_nregs): Likewise.
1331 (compute_frame_size, hppa_expand_prologue): Handle TARGET_64BIT.
1332 (hppa_expand_epilogue, return_addr_rtx, hppa_va_arg): Likewise.
1333 (hppa_builtin_saveregs, output_cbranch, output_bb): Likewise.
1334 (output_bvb): Likewise.
1335 (output_millicode_call): Return pointer is in %r2 for TARGET_64BIT.
1336 (output_call): New argument 'sibcall'. Generate sibcall sequences
1338 (print_operand); Handle cases 'Q', 'p', and 'z' for TARGET_64BIT. For
1339 (ouput_arg_descriptor): Do not emit argument descriptors for
1341 * pa/pa.h (TARGET_PA_11, TARGET_PA_20): Only define if not already
1343 (TARGET_64BIT, PROMOTE_FUNCTION_RETURN): Define.
1344 (FUNCTION_OK_FOR_SIBALL): Define.
1345 (CPP_PA10_SPEC, CPP_PA11_SPEC, CPP_PA20_SPEC): Define.
1346 (CPP_CPU_DEFAULT_SPEC, SUBTARGET_EXTRA_SPECS, EXTRA_SPECS): Likewise.
1347 (CPP_SPEC): Use new spec infrastructure.
1348 (BITS_PER_WORD, UNITS_PER_WORD): Handle TARGET_64BIT.
1349 (STACK_BOUNDARY, FUNCTION_BOUNDARY, PIC_OFFSET_TABLE_REGNUM): Likewise.
1350 (RETURN_IN_MEMORY, EXTRA_CONSTRAINT, FIRST_PARM_OFFSET): Likewise.
1351 (REG_PARM_STACK_SPACE, STACK_POINTER_OFFSET): Likewise.
1352 (STACK_DYNAMIC_OFFSET, FUNCTION_VALUE): Likewise.
1353 (FUNCTION_ARG_PASS_BY_REFERENCE, FUNCTION_ARG_CALLEE_COPIES): Likewise.
1354 (TRAMPOLINE_TEMPLATE, TRAMPOLINE_SIZE): Likewise.
1355 (INITIALIZE_TRAMPOLINE, LEGITIMATE_CONSTANT_P): Likewise.
1356 (CONST_OK_FOR_LETTER_P, MOVE_RATIO): Likewise.
1357 (FUNCTION_ARG); Call out to C code.
1358 (FUNCTION_ARG_PARTIAL_NREGS): Likewise.
1359 (MAX_BITS_PER_WORD, MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Define.
1360 (MIN_UNITS_PER_WORD): Likewise.
1361 * pa/pa.md (cmpdi): New expander.
1362 (scc patterns, movstrsi): Not available for TARGET_64BIT.
1363 (64bit conditional arithmetic): New patterns.
1364 (absdi2, smindi3, umindi3, smaxdi3, umaxdi3): New patterns.
1365 (movsicc): Not available if modes on all the operands to not match.
1366 (movdicc): New expander and associated patterns.
1367 (64bit branches): New patterns.
1368 (pre_load, post_store): Generate appropriate code for TARGET_64BIT.
1369 (pre_ldd, post_std): New patterns.
1370 (64bit addil, load low part): New patterns.
1371 (special movsf constant): Not available for TARGET_64BIT.
1372 (movsf, movdf expanders): Force constants into memory.
1373 (32bit movdf/movdi patterns): Disable for TARGET_64BIT.
1374 (64bit movdf/movdi patterns): New patterns.
1375 (zero_extendqidi2, zero_extendhidi2, zero_extendsidi2): New patterns
1377 (extendqidi2, extendhidi2, extendsidi2): Similarly.
1378 (adddi3 expander): Allow "arith_operand" for second input.
1379 (32bit adddi3, subdi3, uaddcm): Disable for TARGET_64BIT.
1380 (64bit adddi3, subsi3, uaddcm): New patterns for TARGET_64BIT.
1381 (mulsi3 expander): Revamp slightly so it supports TARGET_64BIT too.
1382 (muldi3): New expander for TARGET_64BIT.
1383 (divsi3, udivsi3, modsi3, umodsi3): Fourth operand must be (reg:SI 2)
1385 (32bit anddi3, iordi3, xordi3, andcm, negdi2, uaddcm): Disable
1386 patterns for TARGET_64BIT.
1387 (64bit anddi3, iordi3, xordi3, andcm, negdi2, uaddcm, shadd): New
1388 patterns for TARGET_64BIT.
1389 (64bit bit insertion/extractions): New patterns for TARGET_64BIT.
1390 (64bit shifts/rotates): New patterns/expanders for TARGET_64BIT.
1391 (sibcall_epilogue): New expander.
1392 (casesi): Tweak for TARGET_64BIT.
1393 (call expanders): Set & use the outgoing argument pointer. Use the
1394 64bit call patterns as needed. Add additional arg to output_call.
1395 (call_internal_reg_64bit, call_value_internal_reg_64bit): New pattern.
1396 (sibcall, sibcall_internal_symref): New expanders.
1397 (sibcall_value, sibcall_value_internal_symref
1398 (interspace_jump): Turn into an expander + matching patterns.
1399 (canonicalize_funcptr_for_compare): Not needed for TARGET_64BIT.
1400 * pa/pa64-regs.h: Eliminate trigraph sequences.
1401 * pa/pa64-start.h (TARGET_PA_20): Fix typo.
1403 2000-04-11 Zack Weinberg <zack@wolery.cumb.org>
1405 * cppexp.c, cpphash.c, cpphash.h, cpplex.c, cpplib.c,
1406 cpplib.h, cppmain.c, fix-header.c, scan-decls.c: Replace
1407 cpp_token with cpp_ttype everywhere.
1408 * cpperror.c, cpphash.c, cpplex.c, cpplib.c, scan-decls.c:
1409 Replace cpp_buf_line_and_col with CPP_BUF_LINE and/or
1410 CPP_BUF_COL. Line and column numbers are unsigned int, not
1412 * cpplex.c (cpp_buf_line_and_col): Delete.
1413 * cpplib.h (struct cpp_buffer, struct cpp_reader): Change
1414 'long lineno' to 'unsigned int lineno'.
1415 (CPP_BUF_LINE, CPP_BUF_COL): New macros.
1417 2000-04-11 Martin v. Löwis <loewis@informatik.hu-berlin.de>
1419 * extend.texi: ISO C99 is not a draft anymore.
1420 * invoke.texi: ISO C++ is not a draft anymore.
1421 * cpp.texi: __cplusplus is required by the ISO standard.
1423 * extend.texi (-fthis-is-variable): Undocument.
1424 * flags.h (warn_template_debugging): Remove declaration.
1425 * gcc.1 (-fall-virtual, -fenum-int-equiv, -fthis-is-variable,
1426 -Wenum-clash, -Wtemplate-debugging): Undocument.
1428 2000-04-10 Nick Clifton <nickc@cygnus.com>
1430 * config/arm/arm.h (HOST_INT): New macro: Declare a HOST_WIDE_INT
1432 (HOST_UINT): New macro: Declare an unsigned HOST_WIDE_INT
1434 (ARM_SIGN_EXTEND): Use HOST_UINT.
1435 (STRIP_NAME_ENCODING): Prevent warnings about redefinitions.
1436 (ASM_OUTPUT_LABELREF): Prevent warnings about redefinitions.
1437 (INCOMING_RETURN_ADDR_RTX): Only define if Dwarf2 is supported.
1438 (DWARF_FRAME_RETURN_COLUMN): Only define if Dwarf2 is supported.
1440 * config/arm/arm.c: (const_ok_for_arm): Use HOST_UINT.
1441 (arm_gen_constant): Use HOST_UINT.
1442 (arm_canonicalize_constant): Use HOST_UINT.
1443 (arm_reload_in_hi): Use HOST_UINT.
1444 (arm_reload_out_hi): Use HOST_UINT.
1445 (output_multi_immediate): Use HOST_UINT.
1446 (int_log2): Use HOST_UINT.
1447 (arm_poke_function_name): Use HOST_UINT.
1448 (arm_output_epilogue): Use arm_volatile_func().
1449 (output_thumb_prologue): Use arm_strip_name_encoding().
1451 Mon Apr 10 15:40:59 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1453 * sbitmap.c (sbitmap_a_subset_b_p): Rework loop to avoid potential
1454 of sequence point problems.
1456 2000-04-10 Nathan Sidwell <nathan@codesourcery.com>
1458 * rtl.def (ASHIFT, ROTATE, ASHIFTRT, LSHIFTRT, ROTATERT):
1460 * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Recomment.
1462 Mon Apr 10 07:21:13 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1464 * sbitmap.h: Whitespace changes and use upper-case macro args.
1465 (struct simple_bitmap_def): All sizes now unsigned.
1466 (EXECUTE_IF_SET_IN_SBITMAP): Internal vars now _X instead of X_.
1467 * sbitmap.c (sbitmap_alloc): N_ELMS now unsigned; also local vars.
1468 (sbitmap_vector_alloc): Parms and local vars now unsigned.
1469 (sbitmap_zero): Cast bzero arg to PTR.
1470 (sbitmap_vector_zero, sbitmap_vector_one): Parm and Local var unsigned.
1471 (sbitmap_union_of_diffs): Change loop index to unsigned and rework
1472 loop to make structure clearer.
1473 (sbitmap_not, sbitmap_difference, sbitmap_a_and_b): Likewise.
1474 (sbitmap_a_or_b, sbitmap_a_subset_b_p, sbitmap_a_or_b_and_c): Likewise.
1475 (sbitmap_a_and_b_or_c): Likewise.
1476 (sbitmap_intersection_of_succs): Minor cleanups.
1477 (sbitmap_intersection_of_preds, sbitmap_union_of_succs): Likewise.
1478 (sbitmap_union_of_preds): Likewise.
1479 (sbitmap_first_set_bit, dump_sbitmap): Local variables now unsigned.
1480 (debug_sbitmap): New function.
1482 * c-convert.c (convert): Handle REFERENCE_TYPE like POINTER_TYPE.
1483 * c-typeck.c (convert_for_assignment): Likewise.
1485 * expmed.c (init_expmed): Don't free objects we make.
1486 * emit-rtl.c (gen_rtx_CONST_INT, init_emit_once): Minor cleanups.
1488 * expr.c (get_inner_reference): Correct some WITH_RECORD_EXPR cases.
1489 (expand_expr, case CONVERT_EXPR): Pass proper alignment to store_field.
1491 * gcse.c (expr_hash_table_size): Now unsigned.
1492 (compute_ae_gen): Local variable `i' now unsigned.
1493 (compute_ae_kill, pre_insert_copies, pre_delete, pre_gcse): Likewise.
1494 (compute_transout, hoist_code): Likewise.
1495 (compute_local_properties): Likewise, also hash_table_size.
1496 (alloc_expr_hash_table): N_INSNS now unsigned.
1497 (delete_null_pointer_checks): Mark arg F as unused.
1499 * regrename.c: Minor cleanups, including chang some variables
1502 2000-04-10 Neil Booth <NeilB@earthling.net>
1504 * cpplex.c (skip_block_comment): Use pointer arithmetic rather
1506 * cpphash.h: (CPP_BUMP_BUFFER_LINE_CUR, CPP_BUMP_LINE_CUR): New.
1508 2000-04-10 Martin v. Löwis <loewis@informatik.hu-berlin.de>
1510 * invoke.texi (-fno-gnu-keywords): Remove classof, headof,
1511 __classof__, and __headof__ from the list of gnu keywords.
1512 (-ansi): Remove -foperator-names from list of implied options.
1513 Do not call it ANSI C++.
1514 (-foperator-names): Document as -fno-operator-names.
1516 2000-04-09 Zack Weinberg <zack@wolery.cumb.org>
1518 * cpphash.c (timestamp): Delete.
1519 (del_HASHNODE): If type is T_MCONST, free value.cpval.
1520 (special_symbol): Remove unnecessary braces. Remove
1521 T_VERSION. Treat T_STDC like T_CONST unless
1522 STDC_0_IN_SYSTEM_HEADERS. Render both __DATE__ and __TIME__
1523 when one is encountered, then convert them into T_MCONST
1525 * cppinit.c (builtin_array): version_string is T_MCONST.
1526 __STDC__ has a "1" in its cpval. Don't have a terminator
1527 entry. Clean up which entries are dumped.
1528 (initialize_builtins): Only __STDC__ gets the special
1529 -traditional treatment. Count the length of builtin_array.
1530 Render version_string here.
1531 * cpphash.h: Remove T_VERSION. Add T_MCONST.
1532 * cpplib.h (struct cpp_reader): Remove timebuf.
1534 2000-04-09 Richard Henderson <rth@cygnus.com>
1536 * genrecog.c (pred): Update comparison_operator for the unordered
1539 * config/i386/i386.c (no_comparison_operator): Disallow unordered
1541 (fcmov_comparison_operator): Allow UNORDERED/ORDERED.
1542 (uno_comparison_operator): New.
1543 (put_condition_code): Handle UNORDERED/ORDERED.
1544 (unsigned_comparison): Likewise.
1545 (ix86_fp_compare_mode): Broken out of ix86_expand_fp_compare.
1546 (ix86_use_fcomi_compare, ix86_prepare_fp_compare_args): Likewise.
1547 (ix86_expand_fp_compare): Use them. Take scratch as argument,
1548 update all callers. Handle all 8 unordered operators.
1549 (ix86_expand_setcc): Lose the unordered argument, update all callers.
1550 (ix86_expand_branch): Likewise. Don't fully expand fp branches.
1551 * config/i386/i386.h (PREDICATE_CODES): Update.
1552 * config/i386/i386-protos.h (ix86_expand_fp_compare): Declare.
1553 (ix86_expand_branch, ix86_expand_setcc): Update.
1554 * config/i386/i386.md (sunordered, sordered): New.
1555 (suneq, sunge, sungt, sunle, sunlt, sltgt): New.
1556 (bunordered, bordered): New.
1557 (buneq, bunge, bungt, bunle, bunlt, bltgt): New.
1558 (*fp_jcc_1, *fp_jcc_2, *fp_jcc_3, *fp_jcc_4): New.
1559 (*fp_jcc_5, *fp_jcc_6, and splitters): New.
1561 2000-04-09 Philip Blundell <philb@gnu.org>
1563 * config/arm/arm.h (ARM_NAME_ENCODING_LENGTHS): Strip `*' too.
1565 Sun Apr 9 15:16:14 EDT 2000 John Wehle (john@feith.com)
1567 * i386.md (fix_truncsfhi2, fix_truncdfhi2,
1568 fix_truncxfhi2): New patterns.
1569 * i386.c (output_fix_trunc): Handle converting to HImode.
1571 2000-04-08 Alex Samuel <samuel@codesourcery.com>
1573 * ssa.c (convert_to_ssa): Eliminate dead code when calling
1575 (convert_from_ssa): Call compute_bb_for_insn before life_analysis.
1576 (for_each_successor_phi): Change parameter to basic_block.
1577 (coalesce_regs_in_successor_phi_nodes): Likewise.
1578 (coalesce_regs_in_copies): Likewise.
1579 (compute_coalesced_reg_partition): Use basic_block instead of index.
1580 * rtl.h (convert_to_ssa): Delete.
1581 (convert_from_ssa): Likewise.
1582 (successor_phi_fn): Likewise.
1583 (for_each_successor_phi): Likewise.
1584 (in_ssa_form): Likewise.
1585 * basic-block.h (convert_to_ssa): Moved from rtl.h.
1586 (convert_from_ssa): Likewise.
1587 (successor_phi_fn): Likewise.
1588 (in_ssa_form): Likewise.
1589 (for_each_successor_phi): Likewise. Change parameter to basic_block.
1590 * flow.c (calculate_global_regs_live): Pass a basic_block to
1591 for_each_successor_phi.
1593 2000-04-08 Richard Henderson <rth@cygnus.com>
1595 * flow.c (mark_used_reg): Use reg_set_p to determine if a register
1596 was modified in the current insn.
1598 2000-04-08 Richard Earnshaw (rearnsha@arm.com)
1600 * arm/thumb.md: Delete.
1601 * arm/thumb-protos.h: Delete.
1603 2000-04-08 Richard Earnshaw (rearnsha@arm.com)
1605 Merge changes from merged-arm-thumb-backend-branch onto trunk.
1607 2000-04-08 Richard Earnshaw (rearnsha@arm.com)
1609 * Merge trunk code from tag merged-arm-thumb-backend-merge_20000408
1612 * arm.md (nop): Use the standard RTL expression. Don't code as a
1614 (*arm_nop, *thumb_nop): Delete.
1616 * arm.c (const_ok_for_arm): Don't use ANSI extensions for defining
1617 constants. Use casts instead.
1618 (arm_gen_constant, arm_rtx_costs, arm_reload_in_hi, arm_reload_out_hi,
1619 output_multi_immediate, arm_poke_function_name): Likewise.
1620 * arm.h (ARM_LEGITIIMIZE_RELOAD_ADDRESS, ARM_SIGN_EXTEND,
1621 MASK_RETURN_ADDDR): Likewise.
1623 2000-03-31 Richard Earnshaw (rearnsha@arm.com)
1625 * Merge trunk code from tag merged-arm-thumb-backend-merge_20000325
1628 * arm.md (eh_epilogue): New function.
1629 * arm.h (struct machine_function): Move to here ...
1630 * arm.c: ... from here.
1631 (arm_output_epilogue): Support epilogues for __builtin_eh_return.
1632 (thumb_exit): Extra parameter eh_ofs. All callers changed.
1633 Handle epilogues for __builtin_eh_return. Make bit-fields unsigned.
1635 2000-03-30 Nick Clifton <nickc@cygnus.com>
1637 * config/arm/semi.h (ASM_SPEC): Restore definition.
1638 (SUBTARGET_EXTRA_ASM_SPEC): Define if not already defined.
1640 * config/arm/elf.h (ASM_SPEC): Restore definition.
1641 (SUBTARGET_EXTRA_ASM_SPEC): Define if not already defined.
1643 * config/arm/arm.h (ASM_SPEC): Remove definition.
1644 (SUBTARGET_EXTRA_ASM_SPEC): Remove definition.
1646 2000-03-26 Bernd Schmidt <bernds@cygnus.co.uk>
1648 * config/arm/arm.c: Disable -fschedule-insns for Thumb.
1650 2000-03-24 Nick Clifton <nickc@cygnus.com>
1652 Various formating tidyups, elimination of compile time
1653 warnings and synchronisation with internal sources:
1655 * config/arm/arm-protos.h (assemble_align): Add prototype.
1656 (gen_rotated_half_load): Rename to arm_gen_rotated_half_load.
1657 (gen_comapre_reg): Rename to arm_gen_compare_reg.
1658 (arm_return_addr_rtx): Rename to arm_return_addr.
1660 * config/arm/arm.c: Include except.h.
1661 Define shorter typenames for strict minipool_node and struct
1663 (arm_return_in_memory): For WinCE return all structures <= 32 bits
1665 (gen_rotated_half_load): Rename to arm_gen_rotated_half_load.
1666 (gen_comapre_reg): Rename to arm_gen_compare_reg.
1668 * config/arm/arm.h (SUBTARGET_EXTRA_ASM_SPEC): Define if not
1670 (ASM_SPEC): Define if not already defined.
1671 (ASM_OUTPUT_DEF_FROM_DECLS): Define.
1673 * config/arm/arm.md: Rename references to gen_rotated_half_load to
1674 arm_gen_rotated_half_load, and references to gen_comapre_reg to
1675 arm_gen_compare_reg.
1676 (indirect_jump): Only accept register operands.
1677 (load_indirect_jump): Keep this pattern since combine can generate
1680 * config/arm/coff.h: Include aout.h.
1681 (MULTILIB_DEFAULTS): Only define if not already defined.
1683 * config/arm/elf.h (ASM_OUTPUT_DEF_FROM_DECLS): Move definition
1684 into arm.h (so that COFF ports can support thumb based aliases).
1685 (ASM_SPEC): Move definition into arm.h
1687 * config/arm/linux-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Remove
1688 redundant apcs spec.
1689 (ASM_SPEC): Move definition to arm.h
1691 * config/arm/semi.h (ASM_SPEC): Move definition to arm.h
1693 * config/arm/unknown-elf.h (ASM_OUTPUT_SECTION_NAME): Add support
1694 for entries in the .bss section
1696 2000-03-23 Nick Clifton <nickc@cygnus.com>
1698 * config/arm/arm.h (THUMB_INITIAL_ELIMINATION_OFFSET): Pass 0
1699 to thumb_far_jump_used_p.
1701 * config/arm/arm-protos.h (thumb_far_jump_used_p): Take a
1702 single integer parameter.
1704 * config/arm/arm.c (struct machine_function): Add two new
1705 fields, 'far_jump_used' and 'arg_pointer_live'.
1706 (thumb_far_jump_used_p): Once the decision has been made that
1707 far jumps might be used, always return true.
1708 If being called from the initial elimination offset macro then
1709 do not bother to perform the test if the arg pointer is not
1711 (thumb_unexpand_epilogue): Pass 1 to thumb_far_jump_used_p().
1712 (output_thumb_prologue): Pass 1 to thumb_far_jump_used_p().
1714 2000-03-23 Richard Earnshaw (rearnsha@arm.com)
1716 * arm.c (output_return_instruction): Handle more cases where we can
1717 return from a function with an ldr instruction.
1718 (arm_output_epilogue): Likewise.
1720 * arm.c (thumb_expand_prologue): Don't clobber the frame pointer
1721 if we need to push a large stack frame and there are no callee-saved
1724 * arm.c (arm_debugger_arg_offset): An offset of 0 is also valid
1725 in ARM code if the frame pointer has been eliminated.
1727 * arm.md (epilogue, *epilogue_insns, consttable_*, align_4): Renumber
1728 unspec_volatile arguments to avoid duplicates.
1729 (consttable_1, consttable_2): Fixes for big-endian mode.
1731 * arm.md (all ARM-mode load insns): Add neg_pool_range attribute
1734 Re-write constant pool code.
1735 * arm.c (minipool_node, minipool_fix): New types.
1736 (minifix): Delete type.
1737 (arm_add_minipool_constant): Delete.
1738 (arm_compute_minipool_offsets, arm_find_barrier,
1739 arm_find_minipool_constant, fixup_compare, sort_fixups): Likewise.
1740 (get_jump_table_size): Now returns HOST_WIDE_INT.
1741 (move_minipool_fix_forward_ref, add_minipool_forward_ref): New
1743 (move_minipool_fix_backward_ref, add_minipool_backward_ref): Likewise.
1744 (assign_minipool_offsets, arm_print_value): Likewise.
1745 (dump_minipool): Rewrite.
1746 (arm_barrier_cost): New function.
1747 (create_fix_barrier): New function.
1748 (push_minipool_barrier): New function.
1749 (push_minipool_fix): Record additional information about the fixup
1751 (note_invalid_constants): Remove push for (UNSPEC 3). Don't
1752 check the mode of what needs fixing.
1753 (arm_reorg): Rewrite.
1755 2000-03-08 Nick Clifton <nickc@cygnus.com>
1757 * config/arm/arm.md (indirect_jump): Force constant addresses into
1760 2000-03-01 Bernd Schmidt <bernds@cygnus.co.uk>
1762 * config/arm/arm.md: Add splitter to turn SF moves into SI moves.
1764 2000-02-24 Nick Clifton <nickc@cygnus.com>
1766 * config/arm/arm.c (thumb_expand_prologue): Make sure that stack
1767 adjust is word aligned.
1768 (thumb_expand_epilogue): Make sure that stack adjust is word
1771 * config/arm/elf.h (ASM_FILE_START): Fix type of version string.
1773 2000-02-24 Bernd Schmidt <bernds@cygnus.com>
1775 * config/arm/arm.h (THUMB_GO_IF_LEGITIMATE_ADDRESS): Allow frame
1776 pointer relative addresses.
1778 2000-02-10 Richard Earnshaw <rearnsha@arm.com>
1780 * arm.c (find_barrier): Find the last barrier within the allowed
1783 2000-02-09 Nick Clifton <nickc@cygnus.com>
1785 * config/arm/arm-protos.h: Replace PROTO with PARAMS.
1787 2000-02-09 Nick Clifton <nickc@cygnus.com>
1789 * config/arm/linux-elf.h (FUNCTION_PROFILER): Rename to
1790 ARM_FUNCTION_PROFILER.
1792 * config/arm/netbsd.h (FUNCTION_PROFILER): Rename to
1793 ARM_FUNCTION_PROFILER.
1795 * config/arm/linux-oldld.h: Imported from mainline sources.
1797 2000-02-07 Nick Clifton <nickc@cygnus.com>
1799 * config/arm/lib1funcs.asm: Merge in thumb functions from
1802 * config/arm/lib1thumb.asm: Delete.
1804 2000-02-04 Nick Clifton <nickc@cygnus.com>
1806 * config/arm/arm.c: Sychronised with current Red hat local
1808 * config/arm/arm.h: Ditto.
1809 * config/arm/arm-protos.h: Ditto.
1811 2000-02-02 Bernd Schmidt <bernds@cygnus.co.uk>
1813 * arm.c (soft_df_operand): Reject SUBREGs containing a constant.
1815 * arm.c (arm_gen_movstrqi): Generate halfword stores rather than two
1818 2000-02-02 Nick Clifton <nickc@cygnus.com>
1820 * config/arm/thumb.c (thumb_exit): Additional fix for same bug.
1822 * config/arm/arm.md (epilogue): Fix rtl checking abort because
1823 (return) was emited using an emit_insn() call.
1825 2000-01-31 Nick Clifton <nickc@cygnus.com>
1827 * config/arm/arm.c (output_thumb_prologue): Fix bug generating
1829 (thumb_exit): Move frame pointer back into hard frame pointer
1830 register if backtracing is being used.
1832 2000-01-13 Richard Earnshaw (rearnsha@arm.com)
1834 * Merge trunk code from tag merged-arm-thumb-backend-merge_20000113
1837 1999-12-15 Bernd Schmidt <bernds@cygnus.co.uk>
1839 * config/arm/arm.md (neg_pool_offset): Provide default for new
1841 (arm_movsi_insn): Add neg_pool_offset attribute.
1842 * config/arm/arm.c (arm_find_barrier): Replace arg FIX with an
1843 rtx for the insn that starts the scan and an unsigned long for its
1844 address. Add MIN_OFFSET and PINSERTED args. All callers changed.
1845 Change scan to ignore insns before MIN_OFFSET. Store size of inserted
1846 instructions in *PINSERTED.
1847 (struct minipool_fixup): Add MIN_ADDRESS elt.
1848 (sort_fixups): Compute it.
1849 (arm_reorg): Changes to support inserting pools before the insn to be
1852 1999-12-08 Bernd Schmidt <bernds@cygnus.co.uk>
1854 * config/arm/elf.h (MULTILIB_DEFAULTS): Add "marm".
1855 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Add "marm".
1856 * config/arm/coff.h (MULTILIB_DEFAULTS): Add "marm".
1858 Wed Nov 3 10:04:07 1999 Nick Clifton <nickc@cygnus.com>
1860 * config/arm/semi.h (TARGET_VERSION): Do not define if already
1862 (TARGET_DEFAULT): Do not define if already defined.
1864 Tue Nov 2 10:37:25 1999 Nick Clifton <nickc@cygnus.com>
1866 * config/arm/arm.md (anddi3): Allow disjoint source operands.
1867 (iordi3): Allow disjoint source operands.
1868 (xordi3): Allow disjoint source operands.
1869 (negdi2): Permit construction for ARM and Thumb.
1870 (arm_negdi2): Renamed version of old negdi2 pattern.
1871 (thumb_negdi2): New pattern: Only permit non-overlapping
1872 source and destination.
1874 Fri Oct 29 18:52:38 1999 Nick Clifton <nickc@cygnus.com>
1876 * config/arm/arm.c (thumb_expand_prologue): Emit a USE of the
1877 scratch low register so that it will not be deleted.
1879 Fri Oct 29 15:23:48 1999 Nick Clifton <nickc@cygnus.com>
1881 * config/arm/pe.h (ARM_PE): Define.
1883 * config/arm/arm.c (arm_valid_machine_decl_attribute): Allow
1884 interfacearm attribute if this is a PE toolchain.
1885 (output_return_instruction): Do not emit anything if the function
1886 has the naked attribute set.
1887 (is_called_in_ARM_mode): If the function has the interfacearm
1888 attribute then return true.
1889 (thumb_expand_prologue): Do not generate a prologue for naked
1891 (thumb_expand_epilogue): Do not generate an epilogie for a naked
1893 (output_thumb_prologue): Do not bother if the function is naked.
1894 Strip PE encoding from function name before emitting.
1896 Thu Oct 28 11:05:13 1999 Richard Earnshaw <rearnsha@arm.com>
1898 * arm.md (pic_load_addr): Fix constraints.
1900 * arm.md (casesi_insn): Fix mis-applied patch.
1902 * arm.md ("core" function unit): Add rules for single- and
1904 (All TARGET_THUMB patterns): Add "type" attribute information
1906 * arm.c (arm_adjust_cost): Reduce the cost of a data dependency if
1907 the following insn is a CALL.
1909 * arm.c (thumb_expand_epilogue): Add a use of the adjusted stack
1911 * arm.h (CONDITIONAL_REGISTER_USAGE): Nail down the
1912 ARM_HARD_FRAME_POINTER_REGNUM when TARGET_APCS_FRAME.
1913 (FRAME_POINTER_REQUIRED): Only check TARGET_APCS_FRAME if TARGET_ARM.
1915 Wed Oct 27 14:40:48 1999 Nick Clifton <nickc@cygnus.com>
1917 * config/arm/linux-gas.h: oops - this file was missed out when the
1918 branch was created...
1920 Tue Oct 26 17:07:38 1999 Richard Earnshaw <rearnsha@arm.com>
1922 * thumb.c: Deleted. Move contents to ...
1924 * t-arm-aout, t-arm-coff, t-arm-elf, t-linux, t-netbsd, t-semi: Remove
1926 * configure.in (arm*-*-*): Remove thumb.o from extra_objs list.
1929 * arm-protos.h: Use RTX_CODE and tidy up long lines. Don't
1930 declare a prototype for asm_output_align();
1932 * arm.c (thumb_condition_code): Delete.
1933 (arm_print_operand): Always use arm_condition_code array.
1935 * arm.c (thumb_return_addr_rtx): Delete.
1936 (arm_save_machine_status, arm_restore_machine_status): Delete.
1937 (arm_init_machine_status, arm_mark_machine_status): New functions.
1938 (arm_init_expanders): Update accordingly.
1939 (arm_return_addr): Renamed from arm_return_addr_rtx. Rewrite.
1940 (thumb_expand_prologue): Delete code referencing thumb_return_addr_rtx.
1941 * arm.h (RETURN_ADDR_RTX): Call arm_return_addr().
1943 Tue Oct 26 13:24:16 1999 Nick Clifton <nickc@cygnus.com>
1945 * configure.in : Fix arm-*-aout target to use new t-arm-aout
1947 * config/arm/t-arm-aout: New file: Makefile script for arm-*-aout
1950 Tue Oct 26 11:27:12 1999 Nick Clifton <nickc@cygnus.com>
1952 * config/arm/thumb.c (output_thumb_prologue): Fix bug creating
1953 stack backtrace structure.
1955 * config/arm/arm-protos.h: Add prototypes for functions defined in
1958 * config/arm/arm.c (arm_override_options): Fix selection of
1959 attributes of default processor.
1961 * config/arm/coff.h: Delete needless #include.
1963 * config/arm/pe.c: Delete unused code.
1965 * config/arm/pe.h (CPP_DEFINES): Delete
1966 (SUBTARGET_CPP_SPEC): Define.
1967 (ASM_DECLARE_FUNCTION_NAME): Use ARM_DECLARE_FUNCTION_NAME.
1969 * config/arm/t-pe: Add -DInhibit_libc to allof libgcc.a to build.
1971 Mon Oct 25 15:42:09 1999 Richard Earnshaw (rearnsha@arm.com)
1973 * arm.h (TARGET_APCS_FRAME): Renamed from TARGET_APCS -- all uses
1975 (CAN_DEBUG_WITHOUT_FP): Define.
1976 (FIXED_REGISTERS): Make r11 call-saved.
1977 (CALL_USED_REGISTERS): Likewise.
1978 (CONDITIONAL_REGISTER_USAGE): Fix r11 if TARGET_APCS_FRAME.
1979 (FRAME_POINTER_REQUIRED): Correct logic for determining when a
1980 frame-pointer is required.
1981 (TARGET_DEFAULT): Make default setting include ARM_FLAG_APCS_FRAME.
1982 * arm.c (arm_override_options): Warn about -mno-apcs-frame and -g
1983 if the target normally needs a stack frame in non-leaf functions.
1984 (use_return_insn): Correct logic for determining when a return
1985 instruction can be used.
1986 (output_return_instruction): Handle the frame-pointer register as
1987 a normal register when not TARGET_APCS_FRAME.
1988 (arm_output_prologue): Likewise.
1989 (arm_output_epilogue): Likewise.
1990 (output_func_epilogue): Likewise.
1991 (arm_expand_prologue): Likewise.
1992 * netbsd.h semi.h (TARGET_DEFAULT): Add ARM_FLAG_APCS_FRAME.
1994 * arm.c (use_return_insn): No need to check floating point regs if
1996 (arm_find_minipool_constant): Correct typo; use GET_CODE to get
1997 the code of value stored in the minipool array.
1998 (arm_add_minipool_constant): Likewise.
2000 2000-04-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2002 * basic-block.h (conflict_graph_enum_fn): K&R fix.
2004 2000-04-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2006 * tree.c (tree_expr_nonnegative_p): New function.
2008 * tree.h (tree_expr_nonnegative_p): Declare.
2010 * c-typeck.c (build_binary_op): Call `tree_expr_nonnegative_p' to
2011 elide some sign_compare warnings.
2012 (build_conditional_expr): Likewise.
2014 Sat Apr 8 00:21:51 EDT 2000 John Wehle (john@feith.com)
2016 * i386.md (ashrsi3, ashrhi3, ashrqi3): Fix typo.
2018 * i386.md (floathisf2, floathidf2, floathixf2): New patterns.
2019 * i386.c (print_operand): Use the proper suffix for a 387 HImode
2020 operand. Abort if a 387 operand has an unsupported size.
2022 2000-04-08 Neil Booth <NeilB@earthling.net>
2024 * cppexp.c (parse_charconst): Null does not end character
2026 * cppinit.c (ISTABLE): Null character handled as whitespace.
2027 * cpplex.c (null_warning): new function.
2028 (skip_string): Emit warning if nulls encountered.
2029 (_cpp_skip_hspace): Emit warning if nulls encountered.
2030 (_cpp_lex_token): Emit warning if nulls encountered. Drop
2034 2000-04-07 Richard Henderson <rth@cygnus.com>
2036 * flow.c (loop_depth): Remove.
2037 (reg_next_use, cc0_live, mem_set_list): Replace with ...
2038 (struct propagate_block_info): New.
2039 (life_analysis): Don't allocate reg_next_use.
2040 (propagate_block_delete_insn): Break out of propagate_block.
2041 Use flow_delete_insn to unlink rather than use NOTE_INSN_DELETED.
2042 (propagate_block_delete_libcall): Likewise.
2043 (propagate_block): Create a propagate_block_info struct to pass
2044 to subroutines. Allocate one not two temporary regsets. Don't
2045 clobber memory for const calls. Look for clobbers in
2046 CALL_INSN_FUNCTION_USAGE.
2047 (mark_set_regs): Recognize COND_EXEC.
2048 (mark_set_reg): Break out of mark_set_1.
2049 (mark_used_reg): Break out of mark_used_regs.
2050 (mark_used_regs): Recognize COND_EXEC.
2051 (insn_dead_p): Use propagate_block_info struct.
2052 (libcall_dead_p, invalidate_mems_from_autoinc): Likewise.
2053 (find_auto_inc, try_pre_increment_1): Likewise.
2054 (print_rtl_with_bb): Dump regs live at end too.
2055 (count_reg_sets_1): Pass in loop_depth.
2056 (count_reg_sets, count_reg_references): Likewise.
2057 (recompute_reg_usage): Provide it.
2059 2000-04-07 Richard Henderson <rth@cygnus.com>
2061 * Makefile.in (conflict.o): Depend on $(RTL_H) and $(BASIC_BLOCK_H)
2064 2000-04-07 Zack Weinberg <zack@wolery.cumb.org>
2066 * cpplib.c (do_elif): Skip the rest of the line if we're
2067 not going to bother evaluating it.
2068 (skip_if_group): Clear pfile->only_seen_white. Reorder loop
2069 to avoid pointless calls to the lexer.
2071 Fri Apr 7 11:50:54 2000 Jim Wilson <wilson@cygnus.com>
2073 * config/ia64/ia64.c: Delete stdio.h and ctype.h includes.
2075 2000-04-07 Jason Merrill <jason@casey.cygnus.com>
2077 * calls.c (expand_call): emit_queue if we're trying a sibcall.
2079 2000-04-07 Jakub Jelinek <jakub@redhat.com>
2081 * config/sparc/t-linux64 (tcrtbeginS.o, tcrtendS.o): Remove.
2083 2000-04-06 Geoff Keating <geoffk@cygnus.com>
2085 * Makefile.in: Build crtbeginS and crtendS like crtbegin and
2086 crtend so they can be multilibbed.
2087 (STAGESTUFF): Remove s-crt and s-crtS.
2089 2000-04-07 Richard Henderson <rth@cygnus.com>
2091 * config/alpha/alpha.c (alpha_emit_conditional_move): Fail
2092 if we discover we need a pseudo and no_new_pseudos is true.
2093 * config/alpha/alpha.md (ne:DI insn): New.
2094 (trunctfsf2, sne): Emit NE instead of non-canonical LTU.
2096 2000-04-07 Richard Henderson <rth@cygnus.com>
2098 * rtl.def (COND_EXEC): New.
2099 * rtl.h (COND_EXEC_TEST, COND_EXEC_CODE): New.
2100 * tm.texi (MAX_CONDITIONAL_EXECUTE): Document.
2102 * genconfig.c (have_cond_arith_flag): Remove.
2103 (have_cond_exec_flag): New.
2104 (walk_insn_part): Detect COND_EXEC, not arithmetic in IF_THEN_ELSE.
2105 (main): Print HAVE_conditional_execution.
2107 * haifa-sched.c (haifa_classify_insn): Recognize COND_EXEC.
2108 (sched_analyze_insn, print_pattern): Likewise.
2109 * reload.c (find_equiv_reg): Likewise.
2110 * rtlanal.c (reg_referenced_p): Likewise.
2111 (note_stores, dead_or_set_regno_p): Likewise.
2112 (reg_overlap_mentioned_p): Rewrite to use a switch.
2114 * ggc.h (struct rtx_def): Forward declare.
2116 * print-rtl.c (debug_rtx_range): New.
2117 * rtl.h (debug_rtx_range): Declare.
2119 * varray.h (VARRAY_ACTIVE_SIZE, VARRAY_POP_ALL): New.
2121 * gcse.c (gcse_main): Don't rebuild the CFG here.
2122 (delete_null_pointer_checks): Likewise.
2123 * ssa.c (convert_to_ssa): Likewise.
2124 * toplev.c (rest_of_compilation): Do it here instead. Combine
2125 sequential calls to TIMEVAR. Consistently use `insns' instead of
2126 `get_insns()'. Always split insns after reload when optimizing.
2128 * basic-block.h (merge_blocks_nomove): Declare.
2129 (tidy_fallthru_edge): Declare.
2130 * flow.c (merge_blocks_nomove): Document as merging into previous
2131 blocks. Remove cruft from between blocks; remove all edges out of A.
2132 (tidy_fallthru_edge): Export.
2134 2000-04-06 Alex Samuel <samuel@codesourcery.com>
2136 * ssa.c (compute_conservative_reg_partition): Declare with
2138 * toplev.c (clean_dump_file): Remove previously-deleted function
2139 inadvertantly merged back in.
2140 * conflict.c (conflict_graph_add): Use a single call to
2141 htab_find_slot to look up and insert.
2143 2000-04-06 Richard Henderson <rth@cygnus.com>
2145 * genrecog.c (*): Rename _last_insn to last_insn.
2146 (make_insn_sequence): Set the position of the peephole2 C test
2147 to be at the last insn.
2149 2000-04-06 Richard Henderson <rth@cygnus.com>
2151 * flow.c (compute_flow_dominators): Free worklist.
2153 2000-04-06 Michael Matz <matzmich@cs.tu-berlin.de>
2155 * flow.c (compute_flow_dominators): Process blocks FIFO not LIFO.
2157 2000-04-06 Alex Samuel <samuel@codesourcery.com>
2159 * rtl.h (INSN_P): New macro.
2160 (successor_phi_fn): New typedef.
2161 (for_each_successor_phi): New prototype.
2162 (in_ssa_form): New variable.
2163 (PHI_NODE_P): Likewise.
2164 * flow.c (calculate_global_regs_live): Add to new_live_at_end from
2165 phi nodes in successors.
2166 (mark_used_regs): Add PHI case.
2167 (set_phi_alternative_reg): New function.
2168 (life_analysis): Assert that dead code elimination is not selected
2170 * toplev.c (to_ssa_time): New variable.
2171 (from_ssa_time): Likewise.
2172 (compile_file): Zero to_ssa_time and from_ssa_time.
2173 Print time to convert to and from SSA.
2174 (rest_of_compilation): Time convert_to_ssa and convert_from_ssa.
2175 (print_time): Compute percent fraction as integer.
2176 * ssa.c (PHI_NODE_P): Moved to rtl.h.
2177 (convert_to_ssa): Check if we're already in SSA.
2178 Don't eliminate dead code in life_analysis.
2179 Rerun flow and life analysis at bottom.
2180 (eliminate_phi): Use canonical regnos when adding nodes.
2181 (mark_reg_in_phi): New function.
2182 (mark_phi_and_copy_regs): Likewise.
2183 (convert_from_ssa): Rerun life analysis at top.
2184 Use coalesced partition.
2185 Check for removing a phi node at the end of the block.
2186 (compute_coalesced_reg_partition): New function.
2187 (coalesce_regs_in_copies): Likewise.
2188 (coalesce_reg_in_phi): Likewise.
2189 (coalesce_regs_in_sucessor_phi_nodes): Likewise.
2190 (for_each_successor_phi): Likewise.
2191 (rename_context): New struct.
2192 (rename_block): Use a rename_context with rename_insn_1. When
2193 renaming sets of a subreg, emit a copy of the entire reg first.
2194 (rename_insn_1): Treat data as a rename_context *. Save current
2196 (rename_set_data): Add field set_insn.
2197 * Makefile.in (HASHTAB_H): Move up in file.
2198 (OBSTACK_H): New macro.
2199 (collect2.o): Use OBSTACK_H in dependencies.
2200 (sdbout.o): Likewise.
2201 (emit-rtl.o): Likewise.
2202 (simplify-rtx.o): Likewise.
2203 (fix-header.o): Likewise.
2204 (OBJS): Add conflict.o.
2205 (conflict.o): New rule.
2206 * basic-block.h: Include partition.h.
2207 (conflict_graph): New typedef.
2208 (conflict_graph_enum_fn): Likewise.
2209 (conflict_graph_new): New prototype.
2210 (conflict_graph_delete): Likewise.
2211 (conflict_graph_add): Likewise.
2212 (conflict_graph_conflict_p): Likewise.
2213 (conflict_graph_enum): Likewise.
2214 (conflict_graph_merge_regs): Likewise.
2215 (conflict_graph_print): Likewise.
2216 (conflict_graph_compute): Likewise.
2217 * conflict.c: New file.
2219 2000-04-06 Jason Merrill <jason@yorick.cygnus.com>
2221 * tlink.c (read_repo_files): Don't look for .rpo info for
2224 Thu Apr 6 20:39:26 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
2226 * sh.h (STRUCT_VALUE, RETURN_IN_MEMORY): Define.
2228 Thu Apr 6 19:34:08 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
2230 * config/sh/lib1funcs.asm (___udivsi3_i4):
2231 ( __SH4_SINGLE__ / __SH4_SINGLE_ONLY__ variant): value for fpscr
2232 only depends on FMOVD_WORKS.
2234 Thu Apr 6 19:11:47 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
2236 * config/sh/lib1funcs.asm (___udivsi3_i4): When using fmovd,
2237 make double constant 8-byte aligned.
2239 2000-04-06 Jakub Jelinek <jakub@redhat.com>
2241 * config/sparc/sparc.md (movtf_insn_sp32, movtf_insn_vis_sp32,
2242 movtf_no_e_insn_sp32, movtf_insn_hq_sp64, movtf_insn_hq_vis_sp64,
2243 movtf_no_e_insn_sp64): Accept loading 0.0 into GENERAL_REGS.
2244 (movtf_insn_sp64, movtf_insn_vis_sp64): Likewise.
2245 Accept storing GENERAL_REGS into offsetable memory.
2246 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Don't allow
2247 building a TFmode constant other than 0.0L into GENERAL_REGS.
2249 2000-04-06 Clinton Popetz <cpopetz@cygnus.com>
2251 * regrename.c (regrename_optimize): Handle no REG_ALLOC_ORDER.
2253 2000-04-06 Zack Weinberg <zack@wolery.cumb.org>
2255 * cpphash.c (CPP_IS_MACRO_BUFFER, FORWARD, PEEKC): Delete.
2256 (macro_cleanup): No need to cast pbuf->macro.
2257 (collect_expansion): Use _cpp_get_define_token. Goto done if
2258 it returns VSPACE. Remove check for trailing space after
2260 (_cpp_create_definition): Don't diddle flags here. Return
2262 (unsafe_chars): Handle c1 being EOF.
2263 (push_macro_expansion): Use unsafe_chars for both accidental-paste
2264 checks. Don't push the buffer till after we're done with
2266 * cpplex.c (PEEKBUF, GETBUF, FORWARDBUF): New.
2267 (PEEKN, FORWARD, GETC, PEEKC): Use them.
2268 (cpp_push_buffer): Don't set new->alimit. Set new->mark
2270 (_cpp_parse_assertion): Don't NUL terminate.
2271 (_cpp_lex_token): Fix -traditional macro handling. Don't skip
2272 hspace before calling _cpp_parse_assertion. Remove all sets
2273 of only_seen_white. Treat '\f' as hspace. Don't do anything
2274 special with '\n' here.
2275 (maybe_macroexpand): Handle T_EMPTY hash entries without
2276 pushing a buffer at all.
2277 (cpp_get_token): Handle clearing only_seen_white here. Handle
2278 incrementing the line number here. Clear
2279 potential_control_macro as well as only_seen_white, if
2281 (cpp_get_non_space_token): Don't eat CPP_POP tokens.
2282 (_cpp_get_define_token): New function, basically like
2283 _cpp_get_directive_token was but doesn't eat horizontal space.
2284 Don't do anything with only_seen_white here.
2285 (_cpp_get_directive_token): Just call _cpp_get_define_token
2286 repeatedly till it returns non-hspace.
2288 * cpplib.c (PEEKN, FORWARD, GETC, PEEKC): Delete.
2289 (conditional_skip, skip_if_group): Return int.
2290 (DIRECTIVE_TABLE): Change origin of all conditional directives
2292 (TRAD_DIRECT_P): New macro.
2293 (_cpp_handle_directive): Use _cpp_get_directive_token. Issue
2294 an error for a bogus directive, unless -lang-asm. Use
2295 TRAD_DIRECT_P. Loop calling handler functions till one returns
2297 (get_macro_name): Don't diddle flags here.
2298 (do_define): Diddle flags here. Use _cpp_get_directive_token.
2299 Create T_EMPTY nodes for #define macro /* nothing */.
2300 (do_undef): Don't copy the name. Use _cpp_get_directive_token.
2301 Use hp->name when calling pass_thru_directive.
2302 (do_if, do_else, do_elif, do_ifdef, do_ifndef, conditional_skip):
2303 Return the result of conditional_skip and/or skip_if_group.
2304 Don't call _cpp_output_line_command.
2305 (consider_directive_while_skipping): Use _cpp_get_directive_token.
2306 Issue -Wtraditional warnings as appropriate. Don't complain
2307 about unrecognized directives. If we are to stop skipping,
2308 return the number of the directive that ended the skip.
2309 (skip_if_group): Use _cpp_get_directive_token. Turn off macro
2310 expansion and line commands while skipping. Return the result
2311 of consider_directive_while_skipping, if nonzero.
2312 (do_endif): Just set potential_control_macro here.
2313 (validate_else): Use _cpp_get_directive_token.
2314 (do_assert, do_unassert): Don't save pointers into the
2315 token_buffer across calls to the lexer. Use
2316 _cpp_get_directive_token.
2318 * cpplib.h (cpp_buffer): Remove alimit and colno. Make mark a
2319 pointer, not an offset. Replace 'data', which was a generic
2320 pointer, with 'macro', which points to a struct hashnode.
2321 (cpp_reader): Add 'potential_control_macro' pointer.
2322 * cpphash.h (T_UNUSED): Replace with T_EMPTY.
2323 (CPP_BUF_GET, CPP_FORWARD): Delete.
2324 (CPP_IN_COLUMN_1, ADJACENT_TO_MARK): New macros.
2325 (CPP_IS_MACRO_BUFFER, CPP_SET_BUF_MARK, CPP_GOTO_BUF_MARK,
2326 ACTIVE_MARK_P): Update.
2327 (_cpp_get_define_token): New internal function.
2328 * cppfiles.c (read_include_file): Don't set fp->alimit or fp->colno.
2330 2000-04-05 Benjamin Kosnik <bkoz@cygnus.com>
2332 * configure.in: And here.
2333 * configure: Regenerate.
2334 * acconfig.h: Add ENABLE_STD_NAMESPACE to set flag_honor_std if
2335 --enable-libstdcxx-v3 is passed at configure time.
2336 * config.h.in: Regenerate.
2338 2000-04-05 Mark Mitchell <mark@codesourcery.com>
2340 * final.c (final): Use xcalloc to allocate line_note_exists.
2341 * function.c (free_after_compilation): Free the temp_slots.
2342 (assign_stack_temp_for_type): Use xmalloc to allocate temp_slots.
2343 (combine_temp_slot): Free temp_slots when they get combined.
2344 (purge_addressof): Fix typo in comment.
2345 * stmt.c (mark_goto_fixup): Mark the fixup itself.
2346 (expand_fixup): Allocate the fixup with ggc_alloc_obj.
2348 * ggc.h: Include varray.h.
2349 (ggc_pending_trees): Declare.
2350 (ggc_mark_tree_children): Remove declaration.
2351 (ggc_mark_tree): Just push unmarked trees on ggc_pending_trees.
2352 * ggc-common.c (ggc_pending_trees): New variable.
2353 (ggc_mark_roots): Call ggc_mark_trees.
2354 (ggc_mark_tree_children): Rename to ggc_mark_trees. Process all
2355 the ggc_pending_trees.
2356 * Makefile.in (GGC_H): New variable. Use it throughout in place
2359 Thu Apr 6 00:30:50 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
2361 * sh.h (FUNCTION_ARG_PARTIAL_NREGS): Accomodate an unsigned
2364 Wed Apr 5 23:17:10 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
2366 * sh.c (sh_insn_length_adjustment): New function.
2367 * sh-protos.h (sh_insn_length_adjustment): Declare.
2368 * sh.h (ADJUST_INSN_LENGTH): Use it.
2370 Wed Apr 5 12:35:18 2000 Hans-Peter Nilsson <hp@axis.com>
2372 * optabs.c (emit_libcall_block): Remove spurious REG_EQUAL notes
2373 from the insn where REG_RETVAL is added.
2374 (emit_no_conflict_block): Ditto.
2376 * md.texi (Standard Names): Clarify when movX is needed.
2378 * combine.c (simplify_comparison) [MINUS]: Do not replace
2379 all (op (minus A B) 0) with (op A B).
2381 Wed Apr 5 18:03:31 2000 Toshiyasu Morita (toshi.morita@sega.com)
2382 J"orn Rennecke <amylaar@cygnus.co.uk>
2384 * sh.md (block_lump_real_i4): Add missing clobber of T_REG
2385 (block_lump_real): Likewise.
2387 2000-04-05 Chris Demetriou <cgd@netbsd.org>
2389 * mips.h (MASK_DEBUG_A, MASK_DEBUG_B, MASK_DEBUG_C): Zero the
2390 remaining non-zero debugging masks.
2392 Wed Apr 5 09:44:07 2000 Jeffrey A Law (law@cygnus.com)
2394 * basic-block.h (verify_flow_info): Declare.
2395 (flow_loop_outside_edge_p): Declare.
2396 * flow.c (verify_flow_info): Remove declaration.
2397 (clear_log_links, flow_loop_outside_edge_p): Likewise.
2399 Wed Apr 5 09:34:26 2000 Philippe De Muyter <phdm@macqel.be>
2401 * m68k/m68k-protos.h (finalize_pic): Turn prototype off using `#if 0',
2404 2000-04-05 Jakub Jelinek <jakub@redhat.com>
2406 * config/sparc/sparc.md (snedi_zero+1, neg_snedi_zero+1,
2407 snedi_zero_trunc+1, seqdi_zero+1, neg_seqdi_zero+1,
2408 seqdi_zero_trunc+1): Allow splits only if registers are
2411 2000-04-04 Ulrich Drepper <drepper@cygnus.com>
2413 * acconfig.h: Add HAVE_GAS_HIDDEN.
2414 * config.in: Regenerated.
2415 * configure.in: Add test for .hidden pseudo-op in gas.
2416 * configure: Regenerated.
2417 * crtstuff.c: Include auto-host.h.
2418 Emit additional .hidden pseudo-op for __dso_handle if the
2419 assembler knows about it.
2421 2000-04-04 Philippe De Muyter <phdm@macqel.be>
2423 * cpphash.c (_cpp_free_definition): Test argnames, not nargs >= 0,
2424 before freeing argnames.
2425 * cpplib.c (do_ifndef): Cast return value of xstrdup.
2427 2000-04-05 Michael Meissner <meissner@redhat.com>
2429 * config/rs6000/rs6000.c (print_operand): Patch from Jonathan
2430 Walton <jonboy@gordian.com> to make memory references with update
2431 work wtih -mregnames.
2433 2000-04-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2435 * regrename.c (regno_first_use_in): Wrap prototype in PARAMS.
2436 (regrename_optimize): Rename variables `def_uses' and
2437 `ext_basic_blocks' to avoid conflicts with similarly named
2438 typedefs in traditional C.
2440 * calls.c (initialize_argument_information): Fix typo in previous
2443 2000-04-04 Richard Henderson <rth@cygnus.com>
2445 * regrename.c (consider_available): Test fixed_regs not
2446 PIC_OFFSET_TABLE_REGNUM.
2448 2000-04-04 Geoff Keating <geoffk@cygnus.com>
2450 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbegin,
2452 (CRTSTUFF_T_CFLAGS_S): Delete definition.
2453 * config/rs6000/sysv4.h (STARTFILE_LINUX_SPEC): Always use crtbegin.
2454 (ENDFILE_LINUX_SPEC): Always use crtend.
2455 * configure.in (powerpc-*-linux-gnulibc1): Don't define extra_parts.
2456 (powerpc-*-linux-gnu): Likewise.
2457 * configure: Regenerate.
2459 * config/rs6000/eabi.h: Don't include sysv4.h.
2460 (MULTILIB_DEFAULTS): Don't define.
2461 * config/rs6000/eabiaix.h: Don't include eabi.h.
2462 * config/rs6000/eabile.h: Delete.
2463 * config/rs6000/eabilesim.h: Delete.
2464 * config/rs6000/eabisim.h: Don't include eabi.h.
2465 * config/rs6000/linux.h: Don't include sysv4.h.
2466 (JUMP_TABLES_IN_TEXT_SECTION): Don't redefine.
2467 (MULTILIB_DEFAULTS): Don't redefine.
2468 * config/rs6000/rtems.h: Don't include eabi.h.
2469 * config/rs6000/sol2.h: Don't include sysv4le.h.
2470 * config/rs6000/sysv4le.h: Don't include sysv4.h.
2471 * config/rs6000/t-ppc: Delete.
2472 * config/rs6000/t-ppcgas: Correct comment.
2473 * config/rs6000/t-ppcos: Correct comment. Don't build
2474 multilibs for -fPIC, rather use -fPIC -mstrict-align
2476 * config/rs6000/t-ppc: Delete.
2477 * config/rs6000/vxppc.h: Don't include sysv4.h.
2478 * config/rs6000/vxppcle.h: Delete.
2479 * configure.in: Use multiple header files for p2pc ELF targets
2480 powerpc-eabiaix, powerpc-eabisim, powerpc-rtems, powerpcle-eabi,
2481 powerpcle-eabisim, powerpc-elf, powerpcle-elf, powerpc-linux-gnu,
2482 powerpc-linux-gnulibc1, powerpc-sysv, powerpcle-sysv,
2483 powerpc-vxworks, powerpcle-vxworks. Assume GAS functionality is
2484 always available for these platforms.
2486 2000-04-04 Richard Henderson <rth@cygnus.com>
2488 * calls.c (try_to_integrate): Initialize reg_parm_stack_space.
2490 2000-04-04 Stan Cox <scox@cygnus.com>
2492 * Makefile.in: Add rules for regrename.o
2493 * regrename.c: New file.
2494 * rtl.h (regrename_optimize): Add prototype.
2495 * toplev.c (rename_registers_dump, flag_rename_registers): New variables
2496 (compile_file, decode_d_option): Add support for -frename-registers.
2497 (rest_of_compilation): Call regrename_optimize.
2498 * config/ia64/ia64.h (HARD_REGNO_RENAME_OK, RENAME_EXTENDED_BLOCKS):
2501 2000-04-04 Martin v. Löwis <loewis@informatik.hu-berlin.de>
2503 * Makefile (gccbug): New target.
2504 (doc): Depend on it.
2505 * gcc.texi (Bugs): Link subnodes.
2507 * gccbug.in (CATEGORIES): Remove gc, host, profiling, libgcc.
2508 Document severities, priorities, and classes in bug form.
2510 2000-04-04 Zack Weinberg <zack@wolery.cumb.org>
2512 * cpplex.c (trigraph_map, speccase): Combine into single
2514 (NORMAL, NONTRI): New macros.
2515 (_cpp_read_and_prescan): Change to use unified table. Use
2516 is_hspace to test for whitespace.
2518 * dbxout.c (CONTIN): If it doesn't have to do anything, give it a
2519 definition that doesn't provoke the "empty body in an
2520 if-statement" warning.
2522 2000-04-04 Clinton Popetz <cpopetz@cygnus.com>
2524 * builtins.c (expand_builtin_strlen): Force the source to
2525 be a memory address.
2527 2000-04-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2529 * cpplib.c (D): Adjust to call CONCAT2 macro without whitespace.
2531 Tue Apr 4 19:17:20 MET DST 2000 Jan Hubicka <jh@suse.cz>
2533 * calls.c (ECF_MALLOC, ECF_MAY_BE_ALLOCA, ECF_RETURNS_TWICE,
2534 ECF_LONGJMP, ECF_FORK_OR_EXEC): New constants.
2535 (ECF_IS_CONST): Rename to ECF_CONST.
2536 (special_function_p): Make static, change interface.
2537 (flags_from_decl_or_type, try_to_integrate): Break out from ...
2538 (expand_call) ... here; convert number of variables to flags.
2539 (emit_library_call_vlue_1): Likewise.
2540 (setjmp_call_p): New function.
2541 (initialize_argument_information): Accepts flags as argument;
2543 (precompute_arguments): Likewise.
2544 * tree.h (special_function_p): Remove.
2545 (setjmp_call_p): Add prototype.
2547 2000-04-04 Jakub Jelinek <jakub@redhat.com>
2549 * config/sparc/sparc.h (RTX_OK_FOR_OFFSET_P): Leave minor margin
2550 so that addresses are offsetable by up to 16 bytes.
2551 (GO_IF_LEGITIMATE_ADDRESS): Don't allow REG+REG addresses for
2552 non-optimizing TARGET_ARCH32 in DF or DI modes because it is not
2555 * config/sparc/sparc.md (movdi_insn_sp64_novis): New pattern.
2556 (movdi_insn_sp64_vis): Renamed from movdi_insn_sp64.
2557 (movsf): Don't force any constant to memory if target is integer
2559 Move fp_zero_operand check below the const0_rtx check.
2560 (movtf): Likewise. Also allow fp_zero_operand for stores into
2562 (movdf): Likewise. Also allow fp_zero_operand for stores into
2563 memory and into integer hard registers.
2564 (clear_df, clear_dfp, movdf_const_intreg_sp32,
2565 movdf_const_intreg_sp64): Remove.
2566 (movdf_insn_sp32, movdf_no_e_insn_sp32): Redo constraints and
2568 (movdf_no_e_insn_v9_sp32): New pattern.
2569 (movdf_insn_v9only): Remove.
2570 (movdf_insn_v9only_novis, movdf_insn_v9only_vis): New patterns.
2571 (movdf_insn_sp64): Remove.
2572 (movdf_insn_sp64_novis, movdf_insn_sp64_vis): New patterns.
2573 (movdf_no_e_insn_sp64): Allow storing 0.0 into memory.
2574 (following splits): Rewrite conditions. Add two new splits
2575 for storing 0.0 into memory and registers.
2576 (clear_tf, clear_tf+1, clear_tfp, clear_tfp+1): Remove.
2577 (movtf_insn_sp32): Redo constraints and conditions.
2578 (movtf_insn_vis_sp32): New pattern.
2579 (movtf_no_e_insn_sp32): Redo constraints and conditions.
2580 (movtf_insn_hq_sp64): Likewise.
2581 (movtf_insn_hq_vis_sp64): New pattern.
2582 (movtf_insn_sp64): Redo constraints and conditions.
2583 (movtf_insn_vis_sp64): New pattern.
2584 (movtf_no_e_insn_sp64): Redo constraints and conditions.
2585 (movtf_no_e_insn_sp64+1): New split for storing 0.0L into registers
2587 * config/sparc/sparc.c (sparc_override_options): Assume v9 if either
2588 -mvis or -m64 to take down the number of various reload patterns.
2590 Tue Apr 4 00:41:53 2000 Jeffrey A Law (law@cygnus.com)
2592 * pa/pa-64.h: New file.
2593 * pa/pa64-regs.h: New file.
2594 * pa/pa64-start.h: New file.
2595 * pa/t-pa64: New file.
2596 * pa/xm-pa64hpux.h: New file.
2598 2000-04-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2600 * sparc.c (output_restore_regs): Prototype.
2601 (sparc_emit_float_lib_cmp): Constification.
2603 * emit-rtl.c (const_int_htab_hash, const_int_htab_eq): Likewise.
2605 * reload1.c (reload_cse_delete_noop_set, reload_cse_simplify):
2608 * simplify-rtx.c (entry_and_rtx_equal_p): Constification.
2609 (get_value_hash, hash_rtx): Likewise.
2611 * ssa.c (compute_conservative_reg_partition): Prototype.
2613 * tree.c (mark_hash_entry): Prototype.
2615 2000-04-03 Zack Weinberg <zack@wolery.cumb.org>
2617 * bb-reorder.c (verify_insn_chain): #ifdef out unless ENABLE_CHECKING.
2618 * i386.h (FUNCTION_ARG_REGNO_P): Remove unnecessary test for N >= 0.
2619 * i386.md (call_value, call_value_pop): Remove unused variable 'addr'.
2621 * gcc.c (C specs): Pass -fno-show-column to the preprocessor.
2622 * objc/lang-specs.h: Likewise.
2624 2000-04-03 Neil Booth <NeilB@earthling.net>
2626 * cppexp.c: wrap long lines. New macros CPP_ICE, SYNTAX_ERROR
2627 and SYNTAX_ERROR2. Replace `' in messages with ''.
2628 (op_to_str): Make re-entrant.
2629 (_cpp_parse_expr): Implement new error macros. Use | rather
2630 than || to logically or 2 boolean integers. Simply expression
2631 checking we have a left operand iff needed.
2633 2000-04-03 Nick Clifton <nickc@cygnus.com>
2635 * Makefile.in (diagnostic.o): Depend upon diagnostic.c
2637 2000-04-03 Philip Blundell <philb@gnu.org>
2639 * config/arm/linux-elf.h (SUBTARGET_EXTRA_LINK_SPEC): Fix typos.
2641 2000-04-03 Felix Lee <flee@cygnus.com>
2643 * fixinc/server.c (find_shell): New function. Avoid $SHELL.
2644 (run_shell): Use it.
2646 2000-04-03 Jonathan Larmour <jlarmour@redhat.co.uk>
2648 * Makefile.in (stmp-int-hdrs): Make include subdir here...
2649 (stmp-fixproto): ...rather than here.
2651 Mon Apr 3 00:50:06 2000 Jason Eckhardt <jle@cygnus.com>
2653 * pa.c (print_operand): Compute 'base' only inside the code paths
2656 2000-04-03 Geoffrey Keating <geoffk@cygnus.com>
2658 * stor-layout.c (byte_from_pos): Use TRUNC_DIV_EXPR rather than
2661 2000-04-03 Philipp Thomas <pthomas@suse.de>
2663 * i386.h (TARGET_SWITCHES): Remove bogus empty strings, fix typo.
2665 Mon Apr 3 00:02:59 2000 Brad Lucier <lucier@math.purdue.edu>
2667 * Makefile.in (alias.o): Depend on $(TREE_H).
2669 2000-04-02 Zack Weinberg <zack@wolery.cumb.org>
2671 * cppinit.c (cpp_start_read): Turn off -Wtraditional if
2673 * cpplib.c (_cpp_handle_directive): Improve warnings for
2674 traditional C and indented directives.
2676 * enquire.c, gsyslimits.h, limity.h, config/convex/fixinc.convex,
2677 fixinc/fixinc.irix, fixinc/fixinc.sco, fixinc/fixinc.wrap,
2678 fixinc/inclhack.def: Indent the # of #include_next one space.
2679 * cp/rtti.c: Un-indent #if and #endif.
2681 * cppexp.c (_cpp_parse_expr): If lex returns '#', it's a
2682 syntax error, but an error has already been printed.
2683 * cpplex.c (_cpp_parse_assertion): Give a more specific error
2684 message when called with nothing remaining on the line.
2685 (_cpp_lex_token): If _cpp_parse_assertion fails, return an
2686 OTHER token, not an ASSERTION.
2687 * cpplib.c (do_assert): When we create a 'base' node, clear
2688 its aschain pointer.
2690 2000-04-02 Neil Booth <NeilB@earthling.net>
2692 * cppexp.c: New typedef op_t. struct operation and struct
2693 token updated to use it.
2694 (op_to_str): New function.
2695 (_cpp_parse_expr): Error messages modified to use op_to_str.
2697 2000-04-02 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
2699 * config/c4x/c4x.c (c4x_function_arg): Check for void_type_node
2700 before checking MUST_PASS_IN_STACK.
2702 2000-04-02 Neil Booth <NeilB@earthling.net>
2704 * cppexp.c: New FINISHED dummy token. Combine operator initial
2705 flags and initial priority into a single constant. New
2706 EQUALITY macro. New operator flag SHORT_CIRCUIT.
2707 (_parse_cpp_expr): Implement new constants. Take left operand
2708 checks out of reduction loop. Handle SHORT_CIRCUIT. End of
2709 parse indicated by reducing FINISHED token. Remove new lines
2710 from cpp_error messages.
2712 2000-04-01 Mark Mitchell <mark@codesourcery.com>
2714 * emit-rtl.c (gen_rtx_CONST_INT): Create cached CONST_INTs on the
2717 2000-04-01 Zack Weinberg <zack@wolery.cumb.org>
2719 * cpplib.c: Include symcat.h. Add 'origin' field to struct
2720 directive. Add origin values to DIRECTIVE_TABLE. Generate
2721 the strings and function names on the fly. Take the #sccs
2722 entry out of the table if SCCS_DIRECTIVE is not defined.
2723 (_cpp_handle_directive): Decide if the # was at the beginning
2724 of the line here. Issue -pedantic warnings for extended
2725 directives here. Warn about K+R directives with the #
2726 indented, and C89/extended directives with the # not indented,
2728 (do_import, do_include_next, do_warning, do_ident, do_sccs,
2729 do_assert, do_unassert): Don't issue pedantic warning here.
2731 * cpphash.h: Add CPP_WTRADITIONAL macro.
2732 * cpplib.h (struct cpp_options): Rename warn_stringify to
2733 warn_traditional; update comments.
2734 * cppinit.c (handle_option): Set warn_traditional not
2736 * cpphash.c: Replace CPP_OPTION (pfile, warn_stringify) with
2737 CPP_WTRADITIONAL (pfile).
2738 * cpplex.c (_cpp_lex_token): Don't decide if directives should
2739 be ignored in -traditional mode here.
2741 * cpplex.c: Copy ISTABLE macros from cppinit.c, and adapt them
2742 to initialize speccase[] and trigraph_map[]. Delete all
2743 references to pfile->input_speccase. Always treat '?' as a
2744 special character. Remove table-initialization code from
2745 _cpp_init_input_buffer.
2747 * cpplib.h (struct cpp_reader): Remove input_speccase field.
2748 * cppinit.c (cpp_cleanup): Don't free input_speccase.
2750 2000-04-01 Richard Henderson <rth@cygnus.com>
2752 * Makefile.in (STAGESTUFF): Wildcard all debugging dumps at once.
2753 (mostlyclean): Likewise.
2755 * toplev.c (rtl_dump, jump_opt_dump, etc): Remove.
2756 (struct dump_file_info, enum dump_file_index, dump_file): New.
2757 (open_dump_file): Take a dump_file_index not a suffix, and a decl
2758 not a string. Clean out file if we havn't yet done so. Do nothing
2759 if the dump isn't enabled.
2760 (close_dump_file): Do nothing if the dump isn't open. Dump
2761 graph data if requested.
2762 (dump_rtl, clean_dump_file): Remove.
2763 (compile_file): Don't clean the dump files. Only finalize .bp dump
2764 if flag_test_coverage or flag_branch_probabilities. Only finalize
2765 .combine dump if optimizing. Iterate over dump_file to finalize the
2767 (rest_of_compilation): Update for open_dump_file/close_dump_file.
2768 Convert all uses of dump_rtl.
2769 (decode_d_option): Iterate over dump_file to implement 'a' and to
2770 locate pass-specific dumps.
2772 2000-04-01 Neil Booth <NeilB@earthling.net>
2774 * cppexp.c: Redefine priority constants.
2775 (_cpp_parse_expr): Replace left and right priority scheme with
2776 single priority logic. Move LOGICAL to same place as COMPARE.
2777 Remove bogus check for multiple unary +/- operators.
2779 2000-04-01 Neil Booth <NeilB@earthling.net>
2781 * cppexp.c: (_cpp_parse_expr): Numerical constants are pushed
2782 within the switch statement. Binary operations break out of
2783 the switch naturally. '(' tokens handled by forcing
2784 immediate shift. ')' handled by forcing immediate reduce to
2785 the previous '('. New error messages.
2787 2000-03-31 Geoff Keating <geoffk@cygnus.com>
2789 * config/rs6000/rs6000.c (print_operand): Don't use %l for 'low
2790 part', it's already in use. Use %K instead. Add a return at the
2791 end of what is now %K.
2792 * config/rs6000/rs6000.md (elf_low): Use %K instead of %l.
2794 Sat Apr 1 02:05:29 MET DST 2000 Jan Hubicka <jh@suse.cz>
2796 * builtins.c (expand_builtin_apply): Pass proper parameters to
2797 allocate_dynamic_stack_space.
2798 * calls.c (emit_call_1): Do not adjust stack pointer for SIB,
2799 update stack_pointer_delta; do not update arg_size_so_far.
2800 (compute_argument_block_size): Use stack_delta instead of
2801 stack_pointer_pending and arg_size_so_far.
2802 (expand_call): Add sanity checking for stack_pointer_delta;
2803 save and restore stack_pointer_delta for SIB, use
2804 stack_pointer_delta for alignment; do not update arg_space_so_far.
2805 (emit_library_call_value): Use stack_pointer_delta for alignment.
2806 (store_one_arg): Do not update arg_space_so_far.
2807 * explow.c (adjust_stack, anti_adjust_stack): Update
2808 stack_pointer_delta.
2809 (allocate_dynamic_stack_space): Add sanity checking for
2810 stack_pointer_delta.
2811 * expr.c (init_expr, clear_pending_stack_adjust): Clear
2812 stack_pointer_delta.
2813 (emit_push_insn): Update stack_pointer_delta.
2814 * function.h (struct expr_status): Add x_stack_pointer_delta;
2815 remove x_arg_space_so_far.
2816 (arg_space_so_far): Remove.
2817 (stack_pointer_delta): New macro.
2819 2000-03-31 Zack Weinberg <zack@wolery.cumb.org>
2821 * cpplib.h: Merge struct cpp_options into struct cpp_reader.
2822 Reorder struct cpp_options and struct cpp_reader for better
2823 packing. Replace CPP_OPTIONS macro with CPP_OPTION which
2824 takes two args. Change all 'char' flags to 'unsigned char'.
2825 Move show_column flag into struct cpp_options. Don't
2826 prototype cpp_options_init.
2827 * cpphash.h, cpperror.c, cppexp.c, cppfiles.c, cpphash.c,
2828 cppinit.c, cpplex.c, cpplib.c:
2829 Replace CPP_OPTIONS (pfile)->whatever with
2830 CPP_OPTION (pfile, whatever), and likewise for
2831 opts = CPP_OPTIONS (pfile); ... opts->whatever;
2833 * cppinit.c (merge_include_chains): Take a cpp_reader *.
2834 Extract CPP_OPTION (pfile, pending) and work with that
2836 (cpp_options_init): Delete.
2837 (cpp_reader_init): Turn on on-by-default options here.
2838 Allocate the pending structure here.
2839 (cl_options, enum opt_code): Define these from the same table,
2840 kept in a large macro. Add -fshow-column and -fno-show-column
2843 * cpperror.c (v_message): If show_column is off, don't print
2846 * cppmain.c: Update for new interface.
2847 * fix-header.c: Likewise.
2849 2000-03-30 Geoff Keating <geoffk@cygnus.com>
2851 * config/rs6000/t-aix43 (AR_FLAGS_FOR_TARGET): Adjust for new
2853 * Makefile.in (AR_FLAGS_FOR_TARGET): Is now the flags that
2854 are passed to any invocation of AR_FOR_TARGET.
2855 (AR_CREATE_FOR_TARGET): New macro.
2856 (AR_EXTRACT_FOR_TARGET): New macro.
2857 (ORDINARY_FLAGS_TO_PASS): Add AR_CREATE_FOR_TARGET,
2858 AR_EXTRACT_FOR_TARGET.
2859 (many places): Use AR_CREATE_FOR_TARGET, AR_EXTRACT_FOR_TARGET
2860 in place of `$(AR_FOR_TARGET) $(AR_FLAGS_FOR_TARGET)' and
2861 `$(AR_FOR_TARGET) x'. Pass AR_CREATE_FOR_TARGET and
2862 AR_EXTRACT_FOR_TARGET to sub-makes.
2864 2000-03-31 Neil Booth <NeilB@earthling.net>
2866 * cppexp.c: Delete SKIP_OPERAND. Correct priority
2868 (_cpp_parse_expr): Check for multiple unary +/- operators.
2869 Correct priorities of ':' and '?'. Treat ')' as having a
2870 value. Ensure conditional expression is not void.
2872 2000-03-31 Mark Mitchell <mark@codesourcery.com>
2874 * alias.c (canon_rtx): Make it global.
2875 (rtx_equal_for_memref_p): CONST_INT equality is now pointer
2877 * cse.c (struct table_elt): Add canon_exp.
2879 (invalidate): Canonicalize expressions only once.
2880 * rtl.h (canon_rtx): Declare.
2882 2000-03-30 Mark Mitchell <mark@codesourcery.com>
2884 * Makefile.in (emit-rtl.o): Depend on HASHTAB_H.
2885 * alias.c (reg_known_value): Add comments.
2886 (init_alias_analysis): Likewise.
2887 * cse.c (exp_equiv_p): CONST_INTs are equal iff they have the same
2889 (cse_basic_block): Fix typo in comment.
2890 * emit-rtl.c: Include hashtab.h.
2891 (const_int_htab): New variable.
2892 (const_int_htab_hash): New function.
2893 (const_int_htab_eq): Likewise.
2894 (rtx_htab_mark_1): Likewise.
2895 (rtx_htab_mark): Likewise.
2896 (gen_rtx_CONST_INT): Cache all CONST_INTs.
2897 (unshare_all_rtx): Fix formatting.
2898 (init_emit_once): Initialize const_int_htab.
2899 * rtl.c (rtx_equal_p): CONST_INTs are equal iff they have the same
2901 * rtl.texi: Document the fact that all CONST_INTs with the same
2904 2000-03-30 Richard Henderson <rth@cygnus.com>
2906 * alpha.h (FUNCTION_BOUNDARY): Reduce to 128 bits.
2908 2000-03-30 Zack Weinberg <zack@wolery.cumb.org>
2910 * configure.in: Comment out --enable-c-cpplib stanza.
2911 * configure: Regenerate.
2913 Thu Mar 30 06:32:51 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2915 * expr.c (store_constructor): Properly compute displacement and
2916 alignment when offset is variable.
2918 * expmed.c (store_bit_field, store_fixed_bit_field): Fix more
2919 cases of alignment in bytes.
2921 Thu Mar 30 13:30:40 2000 Jeffrey A Law (law@cygnus.com)
2923 * c-parse.in (cast_expr): Move change from March 21 into c-parse.in
2924 since it is used to generate c-parse.y.
2925 * objc-parse.c, objc-parse.y: Regenerated.
2927 * function.c (expand_function_end): Pass alignment argument to
2928 emit_block_move in bits, not bytes.
2930 Thu Mar 30 06:32:51 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2932 * expr.c (move_by_pieces_ninsns): Fix one more missing align
2935 * expmed.c (store_fixed_bit_field): STRUCT_ALIGN is in bits.
2937 * calls.c (expand_call): Pass bit alignment to mark_reg_pointer.
2938 * explow.c (memory_address, allocate_dynamic_stack_space): Likewise.
2939 * function.c (assign_parms): Likewise.
2940 * integrate.c (expand_inline_function): Likewise.
2941 * stmt.c (expand_decl): Likewise.
2942 (copy_rtx_and_substitute): Likewise.
2943 * expr.c (expand_expr, expand_expr_unaligned): Likewise.
2944 (clear_by_pieces): Fix error in last change.
2945 * emit-rtl.c (init_emit): Set known registers alignment in bits.
2946 * function.h (regno_pointer_align): Now unsigned.
2947 * config/arm/arm.c (alignable_memory_operand): REGNO_POINTER_ALIGN
2949 * config/i386/i386.c (aligned_operand): Likewise.
2950 * config/sparc/sparc.c (mem_min_alignment): Likewise.
2951 * config/alpha/alpha.c (aligned_memory_operand): Likewise.
2952 (unaligned_memory_operand): Likewise.
2953 (alpha_expand_block_move, alpha_expand_block_clear): Likewise.
2954 Also make alignments and sizes unsigned and some whitespace cleanup.
2955 (alpha_va_start): Do nothing if VALIST's type is error_mark_node.
2957 * builtins.c (get_pointer_alignment): Use host_integerp & tree_low_cst.
2958 (expand_builtin_apply): Pass alignment to emit_block_move in bits.
2959 (expand_builtin_memcpy, expand_builtin_va_copy): Likewise.
2960 (expand_builtin_memset): Likewise, but to clear_storage.
2961 * calls.c (save_fixed_argument_area): Likewise, to move_by_pieces.
2962 (restore_fixed_argument_area): Likewise.
2963 (store_unaligned_arguments_into_pseudos): Likewise, to store_bit_field.
2964 (load_register_parameters): Likewise, to emit_group_load.
2965 (expand_call): Likewise, to emit_group_store and emit_block_move.
2966 (emit_library_call_value_1): Likewise, to emit_block_move.
2967 (store_one_arg): Likewise, and to emit_push_insn.
2968 * expmed.c (extract_bit_field): Alignment is in bits, not bytes.
2969 (extract_fixed_bit_field, extract_split_bit_field): Likewise.
2970 * expr.c (move_by_pieces, move_by_pieces_ninsns): Likewise.
2971 (emit_block_move, emit_group_load, emit_group_store): Likewise.
2972 (clear_by_pieces, clear_storage, emit_push_insn): Likewise.
2973 (expand_assigment, store_expr, store_constructor_field): Likewise.
2974 (expand_expr_unaligned, do_jump, do_compare_and_jump): Likewise.
2975 (store_constructor, store_field, get_inner_reference): Likewise.
2976 Use host_integerp and tree_low_cst; sizes and positions HOST_WIDE_INT.
2977 (expand_expr, case COMPONENT_REF): Likewise.
2978 (copy_blkmode_from_regs): Use UNSIGNED_HOST_WIDE_INT for sizes
2979 and positions; reindent code.
2980 * expr.h (emit_cmp_insn, emit_cmp_and_jump_insns): Alignment unsigned.
2981 * function.c (purge_addressof_1): Pass bit align to store_bit_field.
2982 (assign_parms): Likewise to emit_group_store.
2983 * optabs.c (prepare_cmp_insn): Alignment is in bits.
2984 (emit_cmp_and_jump_insns, emit_cmp_insn): Likewise, and also unsigned.
2985 * stmt.c (expand_value_return): Pass align in bits to emit_group_load.
2986 (expand_return): Likewise to {extract,store}_bit_field.
2987 * stor-layout.c (get_mode_alignment): Minor cleanup.
2988 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Align is in bits.
2989 * config/sh/sh.h (MOVE_BY_PIECES_P): Likewise.
2991 2000-03-29 Nick Clifton <nickc@cygnus.com>
2993 * config/arm/arm.h: Undo effects of previous delta:
2994 (ASM_SPEC): Do not define.
2995 (SUBTARGET_EXTRA_ASM_SPEC): Do not define.
2997 * config/arm/linux-elf.h: (SUBTARGET_EXTRA_ASM_SPEC) Fix
3000 2000-03-29 Zack Weinberg <zack@wolery.cumb.org>
3002 * cppinit.c (cpp_start_read): Call initialize_dependency_output
3003 only after reading in the primary source file.
3005 2000-03-29 Geoff Keating <geoffk@cygnus.com>
3007 * c-common.c (c_common_nodes_and_builtins): The first parameter to
3008 __builtin_va_start and __builtin_va_copy is now either a 'va_list'
3009 or a reference to a va_list.
3010 * builtins.c (stabilize_va_list): Simplify now we don't have to
3011 work around C array address decay.
3012 * c-typeck.c (convert_for_assignment): Handle assignment to
3013 a reference parameter by taking the address of the RHS.
3014 * ginclude/stdarg.h (va_start): Don't take address of first parameter.
3015 (va_copy): Likewise.
3016 (__va_copy): Likewise.
3017 * ginclude/varargs.h (va_start): Likewise.
3018 (__va_copy): Likewise.
3020 Wed Mar 29 15:44:53 2000 Jeffrey A Law (law@cygnus.com)
3022 * i386/djgpp.h: Remove extraneous "+".
3024 * stmt.c (stmt_loop_nest_empty): Fix thinko in last change.
3026 * calls.c (expand_call): Fix typo in last change.
3028 2000-03-29 Jason Merrill <jason@casey.cygnus.com>
3030 * tree.c (unsave_expr_1): Don't mess with a TARGET_EXPR that hasn't
3033 Wed Mar 29 15:39:10 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3035 * stor-layout.c (bit_from_pos, byte_from_pos): New functions.
3036 (pos_from_byte, pos_from_bit, normalize_offset): Likewise.
3037 (normalize_rli, rli_size_so_far, rli_size_unit_so_far): Use them.
3038 * tree.c (bit_position, byte_position): Likewise.
3039 * tree.h: Declare new functions.
3041 2000-03-29 Nick Clifton <nickc@cygnus.com>
3043 * config/arm/arm.c: Minor formatting changes/
3044 * config/arm/arm.h (SUBTARGET_EXTRA_ASM_SPEC): Define if not
3046 (ASM_SPEC): Define if not already defined.
3048 2000-03-29 Zack Weinberg <zack@wolery.cumb.org>
3050 * cppfiles.c (cpp_read_file): Don't pass zero-length string to
3053 2000-03-29 Jakub Jelinek <jakub@redhat.com>
3055 * dwarf2out.c (gen_enumeration_type_die): If enum has a negative
3056 value, don't output it as unsigned.
3058 Wed Mar 29 10:53:49 2000 Jeffrey A Law (law@cygnus.com)
3060 * stmt.c (stmt_loop_nest_empty): Allow cfun->stmt to be NULL.
3062 2000-03-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3064 * c-common.c (c_common_nodes_and_builtins): Don't special case
3065 cplus_mode when declaring builtin bzero/bcmp, always avoid
3066 prototype arguments.
3068 2000-03-29 Bruce Korb <bkorb@gnu.org>
3070 * fixinc/mkfixinc.sh: Initially set the variable "fixincludes"
3073 Wed Mar 29 15:08:01 MET DST 2000 Jan Hubicka <jh@suse.cz>
3075 Convert ACCUMULATE_OUTGOING_ARGS to an expression.
3076 * calls.c (PUSH_ARGS_REVERSED) Change to expression.
3077 (ACCUMULATE_OUTGOING_ARGS, PUSH_ARGS): Provide default value.
3078 (struct arg_data): Remove #ifdef ACCUMULATE_OUTGOING_ARGS.
3079 (save_fixed_argument_area, restore_fixed_argument_area):
3080 conditionize by #ifdef REG_PARM_STACK_SPACE only.
3081 (emit_call): Change #ifdefs on ACCUMULATE_OUTGOING_ARGS
3082 to conditions, handle RETURN_POPS_ARGS on ACCUMULATE_OUTGOING_ARGS.
3083 (precompute_register_parameters): Avoid #ifdefs on
3084 ACCUMULATE_OUTGOING_ARGS and PUSH_ARGS_REVERSED.
3085 (stire_one_args): Likewise.
3086 (expand_call): Likewise; conditionize PUSH_ROUNDING code by PUSH_ARGS.
3087 (emit_library_call_value_1): Likewise.
3088 (compute_argument_block_size): Align to STACK_BOUNDARY only for
3089 ACCUMULATE_OUTGOING_ARGS.
3090 * combine.c (ACCUMULATE_OUTGOING_ARGS, PUSH_ARGS): Provide default
3092 (nonzero_bits): Conditionize PUSH_ROUNDING code by USE_PUSH.
3093 (use_crosses_set_p): Likewise.
3094 * all targets (ACCUMULATE_OUTGOING_ARGS define): Change to
3095 #define ACCUMULATE_OUTGOING_ARGS 1.
3096 * i386.c (ix86_compute_frame_size): Handle ACCUMULATE_OUTGOING_ARGS
3098 * i386.h (MASK_NO_PUSH_ARGS, MASK_ACCUMULATE_OUTGOING_ARGS): New
3100 (TARGET_PUSH_ARGS, TARGET_ACCUMULATE_OUTGOING_ARGS): New macros.
3101 (TARGET_SWITCHES): Add push-args, no-push-args,
3102 accumulate-outgoing-args and no-accumulate-outgoing-args.
3103 (ACCUMULATE_OUTGOING_ARGS, PUSH_ARGS): New macro.
3104 * expr.c (ACCUMULATE_OUTGONG_ARGS, PUSH_ARGS): Provide default.
3105 (push_block): Avoid ifdefs on ACCUMULATE_OUTGONG_ARGS
3107 (emit_push_insn): Likewise.
3108 * final.c (ACCUMULATE_OUTGOING_ARGS): Provide default.
3109 (final_scan_insn): Avoid ifdefs on ACCUMULATE_OUTGOING_ARGS.
3110 * function.c (ACCUMULATE_OUTGOING_ARGS): Provide default.
3111 (STACK_DYNAMIC_OFFSET): Define correctly for both
3112 ACCUMULATE_OUTGOING_ARGS and normal mode.
3113 * invoke.texi (-mpush_args, -maccumulate-outgoing-args): Document.
3114 * tm.texi (PUSH_ARGS): Document.
3115 (ACCUMULATE_OUTGOING_ARGS, PUSH_ROUNDING): Update documentation.
3117 Wed Mar 29 11:51:13 MET DST 2000 Jan Hubicka <jh@suse.cz>
3119 * flags.h (flag_optimize_sibling_calls): Declare.
3120 * calls.c (expand_call): Fail sibcall when
3121 !flag_optimize_sibling_calls
3122 * invoke.texi (flag_optimize_sibling_calls): Document.
3123 * toplev.c (flag_optimize_sibling_calls): New global variable.
3124 (f_options): Add flag_optimize_sibling_calls.
3125 (rest_of_compilation): Conditionize
3126 optimize_sibling_and_tail_recursive_calls by
3127 flag_optimize_sibling_calls.
3128 (main): Set flag_optimize_sibling_calls for -O2.
3129 * stmt.c (expand_return): Conditionize tail recursion by
3130 flag_optimize_sibling_calls.
3132 2000-03-29 Richard Henderson <rth@cygnus.com>
3134 * config/i386/att.h (LOCAL_LABEL_PREFIX): Define.
3135 (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Use it.
3137 2000-03-29 Nathan Sidwell <nathan@codesourcery.com>
3139 * except.c (add_eh_table_entry): Mark type_info's as referenced.
3141 2000-03-29 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
3143 * config/rs6000/aix41.h (CPP_SPEC): Define _ANSI_C_SOURCE if -ansi
3145 * config/rs6000/aix43.h (CPP_SPEC): Likewise.
3146 * config/rs6000/rs6000.h (CPP_SPEC): Moved to...
3147 * config/rs6000/aix.h: then modified likewise.
3149 2000-03-28 Richard Henderson <rth@cygnus.com>
3151 * rtl.h: Redistribute enum reg_note documentation.
3152 Kill trailing whitespace.
3153 * rtl.c (reg_note_name): Adjust to match enum reg_note tweeks.
3154 Kill trailing whitespace.
3156 2000-03-28 Zack Weinberg <zack@wolery.cumb.org>
3158 * cppfiles.c (hash_IHASH): Just return i->hash.
3159 (cpp_included): Set dummy.hash using _cpp_calc_hash. Use
3160 htab_find_with_hash.
3161 (cpp_read_file): Likewise.
3162 (find_include_file): Likewise. Properly initialize
3163 ih->nshort. Share ih->name and ih->nshort if possible.
3164 * cpphash.c (_cpp_calc_hash): New function.
3165 (hash_HASHNODE): Just return h->hash.
3166 (_cpp_lookup): Set dummy.hash using _cpp_calc_hash. Use
3167 htab_find_with_hash.
3168 * cpphash.h: Prototype _cpp_calc_hash.
3169 * cppinit.c (initialize_builtins): Provide a valid hash
3170 to _cpp_make_hashnode, using _cpp_calc_hash.
3172 * cpphash.c (collect_expansion): # is not a special character
3173 in object-like macros. In -traditional mode, /**/ is not
3174 token paste at the beginning or end of the line.
3175 * cpplib.c (do_include, do_import, do_include_next): If
3176 parse_include fails, return immediately.
3178 2000-03-28 Jason Merrill <jason@casey.cygnus.com>
3180 * config/arm/arm.md (return peepholes): Update to reflect the new
3182 * config/arm/arm.c (arm_volatile_func): Also check
3183 current_function_nothrow.
3184 (output_return_instruction, output_func_prologue): Use it.
3185 (arm_output_epilogue, arm_expand_prologue): Likewise.
3187 2000-03-27 Tom Tromey <tromey@cygnus.com>
3189 * gcc.c (handle_braces): In {x*...} case, break out of loop if
3192 Tue Mar 28 11:55:48 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3194 * expr.c (store_constructor): SIZE now signed.
3195 For EXPR_SIZE, don't evaluate size; just needed if constant.
3196 * fold-const.c (fold): Fix a number of cases when folded tree is
3198 * function.c (flush_addressof): Reenable.
3199 * tree.h (flush_addressof): Likewise.
3200 * toplev.c (independent_decode_option): Look at strings_processed.
3201 * config/alpha/alpha.h (MINIMUM_ATOMIC_ALIGNMENT): Cast to unsigned.
3203 Tue Mar 28 08:29:46 2000 Jan Hubicka <jh@suse.cz>
3205 * sibcall.c (indentify_call_return_value): Find last call in the chain;
3206 Allow stack adjustment after function call.
3208 * regmove.c (struct csa_memlist): Make mem field rtx *.
3209 (record_one_stack_ref): Accept rtx * instead of rtx as parameter.
3210 (try_apply_stack_adjustment): Replace whole MEM rtx.
3211 (combine_stack_adjustments_for_block): Update calls
3212 to record_one_stack_ref.
3214 2000-03-28 Neil Booth <NeilB@earthling.net>
3216 * cpplex.c (_cpp_read_and_prescan): Mark end of input buffer with
3217 '\\' rather than a null character, so nulls are not special. Fix
3218 "\\\n" handling in end-of-buffer conditions. Use trigraph map to
3219 speed trigraph conversion.
3220 (_cpp_init_input_buffer): Initialize trigraph map.
3222 2000-03-27 Alan Modra <alan@linuxcare.com.au>
3224 * config/i386/i386.c (output_387_binary_op): Correct intel
3225 mode assembly output, and add spaces after commas in AT&T
3226 output. Correct Unixware assembler comment. Document input
3227 constraints. Comment fp operations. Reduce profligate buffer
3228 size. Remove extraneous abort. Localize temp var.
3229 (SYSV386_COMPAT): Define. Add !SYSV386_COMPAT code.
3230 (output_fix_trunc): Add spaces after commas in assembly output.
3232 2000-03-27 Richard Henderson <rth@cygnus.com>
3234 * i386-protos.h (ix86_match_ccmode): Declare.
3235 * i386.c (ix86_match_ccmode): New.
3236 (ix86_expand_fp_compare): Update for pattern renames.
3237 (ix86_expand_strlensi_unroll_1): Likewise.
3238 * i386.h (EXTRA_CC_MODES): Add CCZ.
3239 (SELECT_CC_MODE): Use it for EQ/NE zero.
3240 * i386.md (cmpsi_ccz_1): New.
3242 (*testsi_ccz_1): New.
3243 (testqi_ccz_1): New.
3244 (cmpsi_ccno_1): Rename from cmpsi_0.
3245 (testsi_ccno_1): Rename from testsi_1.
3246 (testqi_ccno_1): Rename from testqi_1.
3247 (*testqi_ext_ccz_0): Rename from testqi_ext_0.
3248 (testqi_ext_ccno_0): Rename from *testqi_ext_1.
3249 (*cmphi_0): Use ix86_match_ccmode.
3250 (*cmpqi_ext_2, *addsi_2, *addhi_2, *addqi_2): Likewise.
3251 (*subsi_2, *subhi_2, *subqi_2, *testhi_1): Likewise.
3252 (*testqi_ext_1, *testqi_ext_2, *testqi_ext_3): Likewise.
3253 (*andsi_2, *andhi_2, *andqi_2, *andqi_ext_0_cc): Likewise.
3254 (*iorsi_2, *iorhi_2, *iorqi_2): Likewise.
3255 (*xorsi_2, *xorhi_2, *xorqi_cc_1): Likewise.
3256 (*one_cmplsi2_2, *one_cmplhi2_2, *one_cmplqi2_2): Likewise.
3257 (*ashlsi3_cmpno, *ashlhi3_cmpno, *ashlqi3_cmpno): Likewise.
3258 (*ashrsi3_cmpno, *ashrhi3_cmpno, *ashrqi3_cmpno): Likewise.
3259 (*lshrsi3_cmpno, *lshrhi3_cmpno, *lshrqi3_cmpno): Likewise.
3260 (appropriate peepholes): Likewise.
3261 (*cmphi_1, *cmpqi_ccno_1, *cmpqi_1): Star out name.
3262 (*subsi_3, *subhi_3, *subqi_3): Remove.
3263 (*negdi2_1+1 splitter): Use CCZ for neg patterns.
3264 (*negsi2_cmp, *neghi2_cmp, *negqi2_cmp): Remove.
3265 (*negsi2_cmpz): Rename from *negsi2_cmpno, use CCZ.
3266 (*neghi2_cmpz, *negqi2_cmpz): Similarly.
3267 (x86_shift_adj_1): Use CCZ.
3268 (*dbra_ge+1, *dbra_ge+2, ffssi2, ffssi_1): Likewise.
3270 2000-03-27 Stan Cox <scox@cygnus.com>
3272 * resource.h (mark_resource_type): New.
3273 * resource.c (find_dead_or_set_registers, mark_target_live_regs,
3274 find_free_register): Use mark_resource_type.
3275 (mark_set_resources): Change include_delayed_effects
3276 to mark_resource_type.
3277 * reorg.c (steal_delay_list_from_target, try_merge_delay_insns,
3278 redundant_insn, fill_simple_delay_slots, fill_slots_from_thread):
3279 Use mark_resource_type.
3281 2000-03-27 Richard Henderson <rth@cygnus.com>
3283 * i386.md (call_pop_0, call_value_pop_0): New.
3284 (call_pop_1): Remove constraint from unused arg. Support sibcalls.
3285 (call_value_pop_1): Likewise.
3286 (call_0, call_value_0): New.
3287 (call_1, call_value_1): Remove constraint from unused arg.
3289 2000-03-27 Nick Clifton <nickc@cygnus.com>
3291 * invoke.texi (Spec Files): Document new spec % command created by
3292 Tom Tromey's recent patch.
3294 2000-03-27 Jakub Jelinek <jakub@redhat.com>
3296 * libgcc2.h (MIN_UNITS_PER_WORD): Define to UNITS_PER_WORD
3299 Mon Mar 27 06:04:22 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3301 * expr.c (expand_assignment): Fix typo in last change.
3303 * libgcc2.h: Use MIN_UNITS_PER_WORD, not UNITS_PER_WORD.
3305 Sun Mar 26 20:15:26 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3307 * c-convert.c (convert): Return if output or input type is ERROR_MARK.
3308 * c-decl.c (duplicate_decls): Only look at DECL_BUILT_IN_NONANSI
3309 and DECL_INLINE if FUNCTION_DECL.
3310 (pushdecl, redeclaration_error_message): Likewise, for DECL_INLINE.
3311 (store_parm_decls): Check for type of PARM_DECL being ERROR_MARK.
3312 Use DECL_WEAK, not DECL_RESULT, to flag for already seen.
3313 (combine_parm_decls): Likewise.
3314 * ggc-common.c (gcc_mark_tree_children, case 'd'): Use DECL_RESULT_FLD.
3315 * print-tree.c (print_node): Likewise.
3316 Only test DECL_PACKED, DECL_INLINE, DECL_BIT_FIELD, and
3317 DECL_TRANSPARENT_UNION on proper decl types.
3318 Properly handly DECL_INCOMING_RTL and DECL_SAVED_INSNS.
3319 * stor-layout.c (layout_decl): Only check DECL_PACKED and
3320 DECL_BIT_FIELD of FIELD_DECL.
3321 * tree.h (DECL_RESULT_FLD): New macro.
3323 * expr.c (expand_assignment): Add code to handle variable-sized
3326 2000-03-26 Richard Henderson <rth@cygnus.com>
3328 * calls.c (expand_call): Pass parms not original exp to
3329 optimize_tail_recursion. Mind return value instead of looking
3331 * stmt.c (optimize_tail_recursion): Take parameter list, not entire
3332 call_expr. Move checks for call_expr and current_function_decl ...
3333 (expand_return): ... here.
3335 2000-03-26 Tom Tromey <tromey@cygnus.com>
3337 * gcc.c (handle_braces): Recognize `%{<S}' construct.
3338 (SWITCH_OK, SWITCH_FALSE, SWITCH_IGNORE, SWITCH_LIVE): New
3340 (process_command): Use them.
3341 (check_live_switch): Likewise.
3342 (give_switch): Skip ignored switches.
3344 2000-03-26 Jan Hubicka <jh@suse.cz>
3346 * jump.c (jump_optimize_1): Fix typo in elide optimizations
3347 for minimal jump pass test.
3349 2000-03-26 Mark Mitchell <mark@codesourcery.com>
3351 * integrate.c (function_cannot_inline_p): Do inline functions that
3354 Sun Mar 26 11:37:55 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3356 * stor-layout.c (layout_type, set_sizetype): early_type_list is
3357 now a list of TREE_LIST entries, not types.
3358 * tree.c (build_common_tree_nodes_2): Eliminate dupliate type sets.
3360 * expmed.c (extract_bit_field): Ensure BITS_PER_WORD is signed in MAX.
3361 * config/arm/pe.c (arm_pe_return_in_memory): Use host_integerp and
3363 * config/mips/mips.c (function_arg): Likewise; also remove cast
3364 and make variables unsigned or HOST_WIDE_INT and use tree_low_cst.
3365 (mips_function_value): Use int_byte_position and make HOST_WIDE_INT.
3366 * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Offsets are unsigned.
3367 * config/mips/mips.h (BITS_PER_WORD, UNITS_PER_WORD): Cast to unsigned.
3368 (UNITS_PER_FPREG, INT_TYPE_SIZE, LONG_TYPE_SIZE): Likewise.
3369 (POINTER_SIZE, POINTER_BOUNDARY,PARM_BOUNDARY): Likewise.
3370 (GP_REG_P, FP_REG_P, MD_REG_P, ST_REG_P): Ensure subtraction signed.
3371 (struct mips_arg): arg_number, arg_words, fp_arg_words, and
3372 num_adjusts now unsigned.
3373 (FUNCTION_ARG_BOUNDARY): Remove unneeded cast.
3374 * config/sparc/sparc.c (struct function_arg_record_value_parms):
3376 (function_arg_record_value_1): STARTBITPOS arg now HOST_WIDE_INT
3377 as is BITPOS variable; use host_integerp and int_bit_position.
3378 (function_arg_record_value_2): Likewise.
3379 (function_arg_record_value_3): Arg BITPOS now HOST_WIDE_INT.
3380 Variable REGNO now unsigned.
3381 (function_arg_record_value): NREGS now unsigned.
3383 2000-03-26 Bernd Schmidt <bernds@cygnus.co.uk>
3385 * jump.c (mark_all_labels): Handle CALL_PLACEHOLDERs.
3387 Sat Mar 25 09:12:10 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3389 * Rework fields used to describe positions of bitfields and
3390 modify sizes to be unsigned and use HOST_WIDE_INT.
3391 * alias.c (reg_known_value_size): Now unsigned.
3392 * c-typeck.c (build_unary_op, case ADDR_EXPR): Use byte_position.
3393 (really_start_incremental_init): Use bitsize_zero_node.
3394 (push_init_level, pop_init_level, output_init_element): Likewise.
3395 Use bitsize_unit_node and bitsize_one_node.
3396 (output_pending_init_elements, process_init_element): Likewise.
3397 * combine.c (combine_max_regno, reg_sign_bit_copies): Now unsigned.
3398 (make_extraction): Position and length HOST_WIDE_INT and unsigned
3399 HOST_WIDE_INT, respectively.
3400 (get_pos_from_mask): Passed in value is unsigned HOST_WIDE_INT.
3401 (num_sign_bit_copies): Returns unsigned.
3402 BITWIDTH now unsigned; rework arithmetic.
3403 Remove recursive call from arg to MAX.
3404 (combine_instructions, init_reg_last_arrays): NREGS now unsigned.
3405 (setup_incoming_promotions, can_combine_p, try_combine, simplify_set):
3407 (set_nonzero_bit_and_sign_copies): NUM now unsigned.
3408 (find_split_point, expand_compound_operation, make_extraction): LEN
3409 now unsigned HOST_WIDE_INT, POS now HOST_WIDE_INT.
3410 (make_field_assignment): Likewise.
3411 (combine_simplify_rtx): Add cast.
3412 (expand_compound_operation): MODEWIDTH now unsigned; rework arithmetic.
3413 (force_to_mode): WIDTH now unsigned; add cast.
3414 (if_then_else_cond): SIZE now unsigned.
3415 (nonzero_bits): MODE_WIDTH, RESULT_WIDTH, and WIDTH now unsigned.
3416 (extended_count): Now returns unsigned.
3417 (simplify_shift_const): COUNT unsigned; arg is now INPUT_COUNT.
3418 Add SIGNED_COUNT variable; MODE_WORDS and FIRST_COUNT now unsigned.
3419 (simplify_comparison): MODE_WIDTH now unsigned.
3420 (update_table_tick): REGNO and ENDREGNO now unsigned; new var R.
3421 (mark_used_regs_combine): Likewise; rework arithmetic.
3422 (record_value_for_reg): REGNO, ENDREGNO, and I now unsigned.
3423 (record_dead_and_set_regs, reg_dead_at_p, distribute_notes): Likewise.
3424 (record_promoted_value): REGNO now unsigned.
3425 (get_last_value_validate): REGNO, ENDREGNO, and J now unsigned.
3426 (get_last_value): REGNO now unsigned.
3427 (use_crosses_set_p): REGNO and ENDREGNO now unsigned.
3428 (reg_dead_regno, reg_dead_endregno): Now unsigned.
3429 (remove_death): Arg REGNO now unsigned.
3430 (move_deaths): REGNO, DEADREGNO, DEADEND, OUREND, and I now unsigned.
3431 (reg_bitfield_target_p): REGNO, REGNO, ENDREGNO, and ENDTREGNO
3433 * convert.c (convert_to_integer): INPREC and OUTPREC now unsigned.
3434 * cse.c (struct qty_table_elem): FIRST_REG and LAST_REG now unsigned.
3435 (struct cse_reg_info): REGNO now unsigned.
3436 (cached_regno): Now unsigned.
3437 (REGNO_QTY_VALID_P): Add cast.
3438 (make_new_qty, make_regs_eqv, delete_reg_eqiv): Regno args unsigned.
3439 (remove_invalid_regs): Likewise.
3440 (remove_invalid_subreg_refs): Likewise; arg WORD also unsigned
3441 as are variables END and I.
3442 (get_cse_reg_info, insert): Likewise.
3443 (mention_regs, invalidate_for_call): REGNO, ENDREGNO, and I unsigned.
3444 (canon_hash): Likewise.
3445 (insert_regs, lookup_for_remove): REGNO now unsigned.
3446 (invalidate): REGNO, ENDREGNO, TREGNO, and TENDREGNO now unsigned.
3448 * dbxout.c (dbxout_parms, dbxout_reg_parms): Don't check for REGNO < 0.
3449 * dwarf2out.c (dwarf2ou_frame_debug_expr): Remove cast.
3450 * emit-rtl.c (subreg_realpart_p): Add cast.
3451 (operand_subword): Arg I is now unsigned as is var PARTWORDS.
3452 (operand_subword_force): Arg I is now unsigned.
3453 * except.c (eh_regs): Variable I is now unsigned.
3454 * explow.c (hard_function_value): BYTES is unsigned HOST_WIDE_INT.
3455 * expmed.c (store_fixed_bit_field): Position is HOST_WIDE_INT;
3456 length is unsigned HOST_WIDE_INT; likewise for internal variables.
3457 (store_split_bit_field, extract_fixed_bit_field): Likewise.
3458 (extract_split_bit_field, store_bit_field, extract_bit_field):
3460 * expr.c (store_constructor_fields, store_constructor, store_field):
3461 Positions are HOST_WIDE_INT and lengths are unsigned HOST_WIDE_INT.
3462 (expand_assignment, expand_expr, expand_expr_unaligned): Likewise.
3463 (do_jump): Likewise.
3464 (move_by_pieces, move_by_pieces_ninsns, clear_by_pieces):
3465 MAX_SIZE is now unsigned.
3466 (emit_group_load): BYTEPOS is HOST_WIDE_INT; BYTELEN is unsigned.
3467 (emit_group_store): Likewise.
3468 (emit_move_insn): I now unsigned.
3469 (store_constructor): Use host_integerp, tree_low_cst, and
3471 (get_inner_reference): Return bitpos and bitsize as HOST_WIDE_INT.
3472 Rework all calculations to use trees and new fields.
3473 * expr.h (promoted_input_arg): Regno now unsigned.
3474 (store_bit_field, extract_bit_field): Adjust types of pos and size.
3475 (mark_seen_cases): Arg is HOST_WIDE_INT.
3476 * flow.c (verify_wide_reg_1): REGNO now unsigned.
3477 * fold-const.c (decode_field_reference): Size and pos HOST_WIDE_INT;
3478 precisions and alignments are unsigned.
3479 (optimize_bit_field_compare, fold_truthop): Likewise.
3480 (int_const_binop): Adjust threshold for size_int_type_wide call.
3481 (fold_convert): Likewise.
3482 (size_int_type_wide): Make table larger and fix thinko that only
3483 had half of table used.
3484 (all_ones_mask_p, fold): Precisions are unsigned.
3485 * function.c (put_reg_info_stack): REGNO is unsigned.
3486 (instantiate_decl): Size is HOST_WIDE_INT.
3487 (instantiate_virtual_regs): I is unsigned.
3488 (assign_parms): REGNO, REGNOI, and REGNOR are unsigned.
3489 (promoted_input_arg): REGNO is unsigned.
3490 * function.h (struct function): x_max_parm_reg is now unsigned.
3491 * gcse.c (max_gcse_regno): Now unsigned.
3492 (struct null_pointer_info): min_reg and max_reg now unsigned.
3493 (lookup_set, next_set): REGNO arg now unsigned.
3494 (compute_hash_table): REGNO and I now unsigned.
3495 (handle_avail_expr): regnum_for_replacing now unsigned.
3496 (cprop_insn): REGNO now unsigned.
3497 (delete_null_pointer_checks_1): BLOCK_REG now pointer to unsigned.
3498 * ggc-common.c (ggc_mark_tree_children, case FIELD_DECL): New case.
3499 * global.c (set_preference): SRC_REGNO, DEST_REGNO, and I now unsigned.
3500 * hard-reg-set.h (reg_class_size): Now unsigned.
3501 * integrate.c (mark_stores): LAST_REG and I now unsigned; new UREGNO.
3502 * jump.c (mark_modified_reg): I now unsigned; add cast.
3503 (rtx_equal_for_thread_p): Add cast.
3504 * loop.c (max_reg_before_loop): Now unsigned.
3505 (struct_movable): REGNO now unsigned.
3506 (try_copy_prop): REGNO arg unsigned.
3507 (regs_match_p): XN and YN now unsigned.
3508 (consec_sets_invariant_p, maybe_eliminate_biv): REGNO now unsigned.
3509 (strength_reduce): Likewise; NREGS also unsigned.
3510 (first_increment_giv, last_increment_giv unsigned): Now unsigned.
3511 * loop.h (struct iv_class): REGNO now unsigned.
3512 (max_reg_before_loop, first_increment_giv, last_increment_giv):
3514 * machmode.h (mode_size, mode_unit_size): Now unsigned.
3515 (mode_for_size, smallest_mode_for_size): Pass size as unsigned.
3516 * optabs.c (expand_binop): I and NWORDS now unsigned.
3517 (expand_unop): I now unsigned.
3518 * print-tree.c (print_node): Don't print DECL_FIELD_BITPOS, but do
3519 print DECL_FIELD_OFFSET and DECL_FIELD_BIT_OFFSET.
3520 * real.c (significand_size): Now returns unsigned.
3521 * real.h (significand_size): Likewise.
3522 * regclass.c (reg_class_size): Now unsigned.
3523 (choose_hard_reg_mode): Both operands now unsigned.
3524 (record_reg_classes): REGNO and NR now unsigned.
3525 (reg_scan): NREGS now unsigned.
3526 (reg_scan_update): old_max_regno now unsigned.
3527 (reg_scan_mark_refs): Arg MIN_REGNO and var REGNO now unsigned.
3528 * reload.c (find_valid_class): BEST_SIZE now unsigned.
3529 (find_dummy_reload): REGNO, NWORDS, and I now unsigned.
3530 (hard_reg_set_here_p): Args BEG_REGNO and END_REGNO now unsigned.
3531 Likewise for variable R.
3532 (refers_to_regno_for_reload_p): Args REGNO and END_REGNO now unsigned,
3533 as are variables INNER_REGNO and INNER_ENDREGNO; add new variable R.
3534 (find_equiv_reg): Add casts.
3535 (regno_clobbered_p): Arg REGNO now unsigned.
3536 * reload.h (struct reload): NREGS now unsigned.
3537 (refers_to_regno_for_reload_p): Regno args are unsigned.
3538 (regno_clobbered_p): Likewise.
3539 * reload1.c (reg_max_ref_width, spill_stack_slot_width): Now unsigned.
3540 (compute_use_by_pseudos): REGNO now unsigned.
3541 (find_reg): I and J now unsigned, new variable K, and change loop
3542 variables accordingly; THIS_NREGS now unsigned.
3543 (alter_reg): INHERENT_SIZE and TOTAL_SIZE now unsigned.
3544 (spill_hard_reg): REGNO arg now unsigned; add casts.
3545 (forget_old_reloads_1): REGNO, NR, and I now unsigned.
3546 (mark_reload_reg_in_use): Arg REGNO and vars NREGS and I now unsigned.
3547 (clear_reload_reg_in_use): Arg REGNO and vars NREGS, START_REGNO,
3548 END_REGNO, CONFLICT_START, and CONFLICT_END now unsigned.
3549 (reload_reg_free_p, reload_reg_reaches_end_p): Arg REGNO now unsigned.
3550 (choose_reload_regs): MAX_GROUP_SIZE now unsigned.
3551 (emit_reload_insns): REGNO now unsigned.
3552 (reload_cse_move2add): Add cast.
3553 (move2add_note_store): REGNO and I now unsigned; new variable ENDREGNO
3555 * resource.c (mark_referenced_resources, mark_set_resources): New
3556 variable R; REGNO and LAST_REGNO now unsigned.
3557 (mark_target_live_regs): J and REGNO now unsigned.
3558 * rtl.c (mode_size, mode_unit_size): Now unsigned.
3559 * rtl.h (union rtunion_def): New field rtuint.
3560 (XCUINT): New macro.
3561 (ADDRESSOF_REGNO, REGNO, SUBREG_WORD): New XCUINT.
3562 (operand_subword, operand_subword_force): Word number is unsigned.
3563 (choose_hard_reg_mode): Operands are unsigned.
3564 (refers_to-regno_p, dead_or_set_regno_p): Regno arg is unsigned.
3565 (find_regno_note, find_regno_fusage, replace_regs): Likewise.
3566 (regno_use_in, combine_instructions, remove_death): Likewise.
3567 (reg_scan, reg_scan_update): Likewise.
3568 (extended_count): Return is unsigned.
3569 * rtlanal.c (refers_to_regno_p): Args REGNO and ENDREGNO and vars I,
3570 INNER_REGNO, and INNER_ENDREGNO now unsigned; new variable X_REGNO.
3571 (reg_overlap_mentioned_p): REGNO and ENDREGNO now unsigned.
3572 (reg_set_last_first_regno, reg_set_last_last_regno): Now unsigned.
3573 (reg_reg_last_1): FIRS and LAST now unsigned.
3574 (dead_or_set_p): REGNO, LAST_REGNO, and I now unsigned.
3575 (dead_or_set_regno_p): Arg TEST_REGNO and vars REGNO and ENDREGNO
3577 (find_regno_note, regno_use_in): Arg REGNO now unsigned.
3578 (find_regno_fusage): Likewise; also var REGNOTE now unsigned.
3579 (find_reg_fusage): Variables REGNO, END_REGNO, and I now unsigned.
3580 (replace_regs): Arg NREGS now unsigned.
3581 * sdbout.c (sdbout_parms, sdbout_reg_parms): Don't check REGNO < 0.
3582 * simplify-rtx.c (simplify_unary_operation): WIDTH now unsigned.
3583 (simplify_binary_operation): Likewise.
3584 (cselib_invalidate_regno): Arg REGNO and variables ENDREGNO, I, and
3585 THIS_LAST now unsigned.
3586 (cselib_record_set): Add cast.
3587 * ssa.c (ssa_max_reg_num): Now unsigned.
3588 (rename_block): REGNO now unsigned.
3589 * stmt.c (expand_return): Bit positions unsigned HOST_WIDE_INT;
3591 (all_cases_count): Just return -1 not -2.
3592 COUNT, MINVAL, and LASTVAL now HOST_WIDE_INT.
3593 Rework tests to use trees whenever possible.
3594 Use host_integerp and tree_low_cst.
3595 (mark_seen_cases): COUNT arg now HOST_WIDE_INT;
3596 Likewise variable NEXT_NODE_OFFSET; XLO now unsigned.
3597 (check_for_full_enumeration_handing): BYTES_NEEDED, I to HOST_WIDE_INT.
3598 * stor-layout.c (mode_for_size): SIZE arg now unsigned.
3599 (smallest_mode_for_size): Likewise.
3600 (layout_decl): Simplify handing of a specified DECL_SIZE_UNIT.
3601 KNOWN_ALIGN is now an alignment, so simplify code.
3602 Don't turn off DECL_BIT_FIELD if field is BLKmode, but not type.
3603 (start_record_layout): Renamed from new_record_layout_info.
3604 Update to new fields.
3605 (debug_rli, normalize_rli, rli_size_unit_so_far, rli_size_so_far):
3607 (place_union_field): Renamed from layout_union_field.
3608 Update to use new fields in rli.
3609 (place_field): Renamed from layout_field.
3610 Major rewrite to use new fields in rli; pass alignment to layout_decl.
3611 (finalize_record_size): Rework to use new fields in rli and handle
3613 (compute_record_mode): Rework to simplify and to use new DECL fields.
3614 (finalize_type_size): Make rounding more consistent.
3615 (finish_union_layout): Deleted.
3616 (layout_type, case VOID_TYPE): Don't set TYPE_SIZE_UNIT either.
3617 (layout_type, case RECORD_TYPE): Call new function names.
3618 (initialize_sizetypes): Set TYPE_IS_SIZETYPE.
3619 (set_sizetype): Set TYPE_IS_SIZETYPE earlier.
3620 (get_best_mode): UNIT is now unsigned; remove casts.
3621 * tree.c (bit_position): Compute from new fields.
3622 (byte_position, int_byte_position): New functions.
3623 (print_type_hash_statistics): Cast to remove warning.
3624 (build_range_type): Use host_integerp and tree_low_cst to try to hash.
3625 (build_index_type): Likewise; make subtype of sizetype.
3626 (build_index_2_type): Pass sizetype to build_range_type.
3627 (build_common_tree_nodes): Use size_int and bitsize_int to
3628 initialize nodes; add bitsize_{zero,one,unit}_node.
3629 * tree.h (DECL_FIELD_CONTEXT): Use FIELD_DECL_CHECK.
3630 (DECL_BIT_FIELD_TYPE, DECL_QUALIFIER, DECL_FCONTEXT): Likewise.
3631 (DECL_PACKED, DECL_BIT_FIELD): Likewise.
3632 (DECL_FIELD_BITPOS): Deleted.
3633 (DECL_FIELD_OFFSET, DECL_FIELD_BIT_OFFSET): New fields.
3634 (DECL_RESULT, DECL_SAVED_INSNS): Use FUNCTION_DECL_CHECK.
3635 (DECL_FRAME_SIZE, DECL_FUNCTION_CODE, DECL_NO_STATIC_CHAIN): Likewise.
3636 (DECL_INLINE, DECL_BUILT_IN_NONANSI, DECL_IS_MALLOC): Likewise.
3637 (DECL_BUILT_IN_CLASS, DECL_STATIC_CONSTRUCTOR): Likewise.
3638 (DECL_STATIC_DESTRUCTOR, DECL_NO_CHECK_MEMORY_USAGE): Likewise.
3639 (DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT, DECL_NO_LIMIT_STACK) Likewise.
3640 (DECL_ORIGINAL_TYPE, TYPE_DECL_SUPPRESS_DEBUG): Use TYPE_DECL_CHECK.
3641 (DECL_ARG_TYPE_AS_WRITEN, DECL_ARG_TYPE): Use PARM_DECL_CHECK.
3642 (DECL_INCOMING_RTL, DECL_TRANSPARENT_UNION): Likewise.
3643 (DECL_ALIGN): Adjust to new field in union.
3644 (DECL_OFFSET_ALIGN): New field.
3645 (DECL_ERROR_ISSUED, DECL_TOO_LATE): Use LABEL_DECL_CHECK.
3646 (DECL_IN_TEXT_SECTION): Use VAR_DECL_CHECK.
3647 (union tree_decl): Add struct for both aligns.
3648 (enum tree_index): Add TI_BITSIZE_{ZERO,ONE,UNIT}.
3649 (bitsize_zero_node, bitsize_one_node, bitsize_unit_node): Added.
3650 (struct record_layout_info): Rework fields to have offset
3651 alignment and byte and bit position.
3652 (start_record_layout, place_field): Renamed from old names.
3653 (rli_size_so_far, rli_size_unit_so_far, normalize_rli): New decls.
3654 (byte_position, int_byte_position): Likewise.
3655 (get_inner_reference): Change types of position and length.
3656 * unroll.c (unroll_loop): New variable R; use for some loops.
3657 MAX_LOCAL_REGNUM and MAXREGNUM now unsigned.
3658 (calculate_giv_inc): Arg REGNO now unsigned.
3659 (copy_loop_body): REGNO and SRC_REGNO now unsigned.
3660 * varasm.c (assemble_variable): Clean up handling of size using
3661 host_integerp and tree_low_cst.
3662 (decode_addr_const): Use byte, not bit, position.
3663 (output_constructor): bitpos and offsets are HOST_WIDE_INT;
3664 use tree_low_cst and int_bit_position.
3665 * objc/objc-act.c (build_ivar_list_initializer): Use byte_position.
3667 Fri Mar 24 20:13:49 2000 Jason Eckhardt <jle@cygnus.com>
3669 * bb-reorder.c (REORDER_MOVED_BLOCK_END): Removed.
3670 (reorder_block_def): New members eff_head and eff_end.
3671 (REORDER_BLOCK_EFF_HEAD, REORDER_BLOCK_EFF_END): New macros.
3672 (verify_insn_chain): New function.
3673 (skip_insns_between_block): Add code to skip deleted insns.
3674 Check for note before using.
3675 (chain_reorder_blocks): Replace calls to skip_insns_between_block
3676 with references to REORDER_BLOCK_EFF_HEAD and REORDER_BLOCK_EFF_END.
3677 Check for note before using.
3678 (make_reorder_chain): Use INTVAL rather than XINT to get REG_BR_PROB.
3679 (fixup_reorder_chain): Restructure, clean up, defect removal.
3680 (reorder_basic_blocks): Remove last_insn and references to it.
3681 Moved insn chain verification code into a new function (see above).
3682 Delete defective code that sets last insn.
3683 Initialize REORDER_BLOCK_EFF_HEAD and REORDER_BLOCK_EFF_END for
3686 2000-03-25 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
3688 * config/c4x/c4x.h (CPP_SPEC): Remove erroneous space.
3690 2000-03-24 Richard Henderson <rth@cygnus.com>
3692 * tree.c (lang_safe_for_unsave): Remove.
3693 (unsafe_for_reeval): Transmute and rename from safe_for_unsave,
3694 allowing for two levels of unsafeness. Remove lang hook.
3695 * tree.h: Update declarations.
3696 * calls.c (expand_call): Rename safe_for_reeval to try_tail_call.
3697 Create temporary VAR_DECLs to protect very unsafe_for_reeval trees.
3698 Always fail sibcalls when there are pending cleanups.
3700 2000-03-24 Geoff Keating <geoffk@cygnus.com>
3702 * flow.c (propagate_block): When we delete an ADDR_VEC,
3703 also delete the BARRIER following it if there is one.
3705 2000-03-24 Richard Henderson <rth@cygnus.com>
3707 * builtins.c (expand_builtin_bzero): Convert `length' argument
3710 2000-03-24 Jakub Jelinek <jakub@redhat.com>
3712 * sibcall.c (skip_copy_to_return_value): Use OUTGOING_REGNO for
3713 comparison if regno's are equal.
3714 * calls.c (initialize_argument_informat): Add ecf_flags argument.
3715 Use FUNCTION_INCOMING_ARG if available and ECF_SIBCALL.
3716 (expand_call): Update caller.
3717 Avoid making a sibling call if argument size of the callee is larger
3718 than argument size of the caller.
3719 Call hard_function_value with outgoing set if in sibcall pass.
3720 Use FUNCTION_INCOMING_ARG if available and ECF_SIBCALL.
3722 * final.c (permitted_reg_in_leaf_functions, only_leaf_regs_used):
3723 Change LEAF_REGISTERS from an array initializer to actual array
3724 identifier. Move static global variable into the function.
3725 (leaf_function_p): Allow SIBLING_CALL_P calls even outside of
3726 sequences for leaf functions.
3727 * global.c (global_alloc): Likewise.
3728 * tm.texi (LEAF_REGISTERS): Update documentation.
3730 * config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Remove the ugly
3731 TARGET_FLAT leaf disabling hack.
3732 (LEAF_REGISTERS): Changed from an array initializer to actual array
3733 identifier to avoid duplication and remove the above hack.
3734 (FUNCTION_OK_FOR_SIBCALL): Define.
3735 * config/sparc/sparc.md (sibcall): New attr type. Use it almost
3736 always like call attribute.
3737 (eligible_for_sibcall_delay): New attribute.
3738 (sibcall): New delay type.
3739 (sibcall, sibcall_value, sibcall_epilogue): New expands.
3740 (sibcall_symbolic_sp32, sibcall_symbolic_sp64,
3741 sibcall_value_symbolic_sp32, sibcall_value_symbolic_sp64): New insns.
3742 * config/sparc/sparc.c (sparc_leaf_regs): New array.
3743 (eligible_for_sibcall_delay, output_restore_regs, output_sibcall):
3745 (output_function_epilogue): Move part of the code into
3746 output_restore_regs.
3747 (ultra_code_from_mask, ultrasparc_sched_reorder): Handle
3749 * sparc-protos.h (output_sibcall, eligible_for_sibcall_delay): New
3752 * config/sparc/sparc.h (REVERSIBLE_CC_MODE): Revert Jan, 25 change
3753 until infrastructure is finished.
3755 Fri Mar 24 13:49:45 2000 Jeffrey A Law (law@cygnus.com)
3757 * integrate.c (save_for_inline_nocopy): Clear in_nonparm_insns here.
3758 (save_parm_insns): Not here.
3760 2000-03-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3762 * builtins.c (expand_builtin_bzero): New function.
3763 (expand_builtin): Handle bzero.
3765 * builtins.def: Add BUILT_IN_BZERO.
3767 * c-common.c (c_common_nodes_and_builtins): Provide builtin
3768 prototype & function for bzero.
3770 2000-03-23 Michael Meissner <meissner@redhat.com>
3772 * config/alpha/alpha.md (TF floating point insns): Undo 2000-03-21
3773 change adding TARGET_FP to the TF floating point insns, except for
3774 trunctfsf2, which generates direct calls to truncdfsf2.
3776 2000-03-23 Geoff Keating <geoffk@cygnus.com>
3778 * config/rs6000/rs6000.h (ARG_POINTER_CFA_OFFSET): New definition,
3779 try to protect against middle-end changes that break binary
3781 (DWARF_FRAME_REGISTERS): New definition, likewise for backend.
3783 2000-03-24 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
3785 * config/c4x/c4x.md (load_immed_address): Add DP reg clobber.
3787 Thu Mar 23 17:10:48 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3789 * calls.c (expand_call): If TARGET is passed by reference and
3790 is readonly, write a CLOBBER.
3792 2000-03-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3794 * builtins.c (expand_builtin): Handle bcmp.
3796 * builtins.def: Add BUILT_IN_BCMP.
3798 * c-common.c (c_common_nodes_and_builtins): Provide builtin
3799 prototype & function for bcmp.
3801 Thu Mar 23 11:34:39 2000 Jim Wilson <wilson@cygnus.com>
3803 * config/ia64/ia64.c (rtx_needs_barrier, case UNSPEC): Move case 6...
3804 (rtx_needs_barrier, case UNSPEC_VOLATILE): to here.
3805 * config/ia64/ia64.md (pr_restore): Change UNSPEC to UNSPEC_VOLATILE.
3807 Thu Mar 23 16:04:40 2000 Andrew Haley <aph@cygnus.com>
3809 * config/mips/mips.md (movdf_internal1a): Delete (set 'f', 'F')
3810 alternative when using -fp64 -gp32.
3812 2000-03-22 Jason Merrill <jason@casey.cygnus.com>
3814 * config/rs6000/rs6000.h (DWARF_FRAME_RETURN_COLUMN): Define.
3815 * config/alpha/alpha.h (DWARF_FRAME_RETURN_COLUMN): Define.
3816 * config/sparc/sparc.h (DWARF_FRAME_RETURN_COLUMN): Define.
3818 * frame.h (frame_state): Revert last change.
3819 * frame.c (execute_cfa_insn): Just don't record the save of a CFA reg.
3820 * libgcc2.c (throw_helper): Revert last change.
3822 2000-03-22 Richard Henderson <rth@cygnus.com>
3824 * stmt.c (expand_asm_operands): Don't promote the temporary.
3826 2000-03-22 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
3828 * builtin.c (get_pointer_alignment): Use DECL_P and TYPE_P macros.
3829 * c-common.c (decl_attributes,check_format_info,truthvalue_conversion,
3830 c_get_alias_set): Likewise.
3831 * c-decl.c (duplicate_decls): Likewise.
3832 * c-typeck.c (default_conversion,build_unary_op): Likewise.
3833 * calls.c (initialize_argument_information): Likewise.
3834 * dwarf2out.c (decl_class_context,add_abstract_origin_attribute):
3836 * dwarfout.c (decl_class_context,output_type): Likewise.
3837 * expr.c (get_inner_reference): Likewise.
3838 * fold-const.c (simple_operand_p,fold): Likewise.
3839 * function.c (aggregate_value_p): Likewise.
3840 * stmt.c (expand_asm_operands): Likewise.
3841 * varasm.c (named_section): Likewise.
3843 2000-03-22 Jason Merrill <jason@casey.cygnus.com>
3845 Implement dwarf2 exception handling for the ARM.
3846 * config/arm/arm.h (INCOMING_RETURN_ADDR_RTX): Define.
3847 (DWARF_FRAME_RETURN_COLUMN): Define.
3848 * config/arm/arm.c (emit_multi_reg_push): Return rtx. Attach
3849 REG_FRAME_RELATED_EXPR note.
3850 (emit_sfm): Likewise.
3851 (arm_expand_prologue): Set RTX_FRAME_RELATED_P on everything.
3852 * dwarf2out.c (reg_save): Handle saving a register to itself.
3853 (dwarf2out_frame_debug_expr): Handle an intermediate cfa reg.
3854 * except.c (eh_regs): Don't use the static chain reg if it's
3856 * frame.h (frame_state): Add cfa_saved field.
3857 * frame.c (execute_cfa_insn): Set it.
3858 * libgcc2.c (throw_helper): Don't adjust sp if it's restored in
3860 * function.c (ARG_POINTER_CFA_OFFSET): Default to FIRST_PARM_OFFSET.
3862 (instantiate_virtual_regs): Adjust.
3864 * config/m68k/m68k.h (ARG_POINTER_CFA_OFFSET): Don't define.
3865 * config/ns32k/ns32k.h (ARG_POINTER_CFA_OFFSET): Don't define.
3866 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): Take a parm.
3868 * dwarf2out.c (reg_number): Refer to FIRST_PSEUDO_REGISTER.
3869 (initial_return_save): Use DWARF_FRAME_REGNUM, not reg_number.
3871 2000-03-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3873 * builtins.def: New file.
3875 * Makefile.in (TREE_H): Depend on builtins.def.
3877 * builtins.c (built_in_names): Use builtins.def.
3879 * tree.h (built_in_function): Likewise.
3881 2000-03-22 Mark Mitchell <mark@codesourcery.com>
3883 * tree.c (size_in_bytes): Return size_zero_node, not
3886 2000-03-22 Geoff Keating <geoffk@cygnus.com>
3888 * config/fp-bit.c (pack_d): Correct the case when a denormal
3889 is rounded up and stops being denormal.
3891 2000-03-21 Richard Henderson <rth@cygnus.com>
3893 * config/alpha/alpha.c (function_arg): Check for void_type_node
3894 before using MUST_PASS_IN_STACK.
3896 2000-03-21 Stephane Carrez <stcarrez@worldnet.fr>
3898 * regmove.c (combine_stack_adjustments_for_block): Check that
3899 the stack pointer is a valid memory address.
3901 Wed Mar 22 11:44:50 MET 2000 Jan Hubicka <jh@suse.cz>
3903 * calls.c: re-install Mar 16 emit_library_call merge.
3905 2000-03-21 Jakub Jelinek <jakub@redhat.com>
3907 * config/sparc/sparc.c (mem_min_alignment): If not optimizing,
3908 we cannot be sure that if reload_completed base register will
3909 be properly aligned.
3911 2000-03-21 Richard Henderson <rth@cygnus.com>
3913 * flow.c (delete_block): Fix typo last change.
3915 2000-03-21 Mark Mitchell <mark@codesourcery.com>
3917 * c-common.c (c_expand_expr_stmt): Use COMPLETE_TYPE_OR_VOID_P,
3918 not COMPLETE_TYPE_P, to check the type of the expression.
3920 2000-03-21 Michael Meissner <meissner@redhat.com>
3922 * config/alpha/alpha.md (floating point insns): Add TARGET_FP to
3923 all floating point insns that just tested the macro
3924 TARGET_HAS_XFLOATING_LIBS.
3925 (movsf/movdf recognizers): Add separate insns if -mno-fp-regs is
3926 used to only use the gprs.
3928 2000-03-21 Nathan Sidwell <nathan@codesourcery.com>
3930 * tree.h (COMPLETE_TYPE_P): New macro.
3931 (COMPLETE_OR_VOID_TYPE_P): New macro.
3932 (COMPLETE_OR_UNBOUND_ARRAY_TYPE_P): New macro.
3933 * stor-layout.c (layout_type, case VOID_TYPE): Don't set TYPE_SIZE.
3934 * c-aux-info.c (gen_type): Use them.
3935 * c-common.c (c_expand_expr_stmt): Likewise.
3936 * c-decl.c (poplevel, pushdecl, start_decl, finish_decl,
3937 grokdeclarator, grokparms, finish_struct, start_function,
3938 store_parm_decls, combine_parm_decls): Likewise.
3939 * c-parse.y (cast_expr): Likewise.
3940 * c-typeck.c (require_complete_type, c_sizeof, c_sizeof_nowarn,
3941 c_size_in_bytes, c_alignof, build_component_ref,
3942 build_indirect_ref, build_array_ref, convert_arguments,
3943 build_binary_op, pointer_diff, build_unary_op, digest_init: Likewise.
3944 * calls.c (initialize_argument_information): Likewise.
3945 * convert.c (convert_to_integer): Likewise.
3946 * dbxout.c (dbxout_typedefs, dbxout_type, dbxout_symbol): Likewise.
3947 * dwarfout.c (location_or_const_value_attribute,
3948 output_enumeration_type_die, output_structure_type_die,
3949 output_union_type_die, output_type): Likewise.
3950 * expr.c (safe_from_p, expand_expr): Likewise.
3951 * function.c (assign_parms): Likewise.
3952 * sdbout.c (sdbout_symbol, sdbout_one_type): Likewise.
3953 * tree.c (build_array_type, build_function_type,
3954 build_method_type, build_offset_type, build_complex_type): Likewise.
3955 * c-parse.c, c-parse.h: Regenerated.
3957 2000-03-21 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
3959 * config/c4x/rtems.h: Include config/rtems.h.
3961 Tue Mar 21 09:24:00 2000 Denis Chertykov <denisc@overta.ru>
3963 * config/avr/avr.c (encode_section_info): sets SYMBOL_REF_FLAG if
3964 decl is a FUNCTION_DECL
3966 Mon Mar 20 19:53:53 2000 Jim Wilson <wilson@cygnus.com>
3968 * config/ia64/ia64.c (ia64_expand_prologue): Don't abort if leaf
3969 function uses output registers. Don't save RP for leaf functions.
3970 Do save RP even if no epilogue.
3971 * config/ia64/ia64.h (FIXED_REGISTERS): Unmark in/out registers.
3972 (CALL_USED_REGISTERS): Unmark in registers.
3973 (REG_ALLOC_ORDER): Move out regs up, to near the top. Move in regs up,
3976 2000-03-20 Geoff Keating <geoffk@cygnus.com>
3978 * config/rs6000/rs6000.md (bunordered): New expander.
3979 (bordered): New expander.
3980 (buneq): New expander.
3981 (bunge): New expander.
3982 (bungt): New expander.
3983 (bunle): New expander.
3984 (bunlt): New expander.
3985 (bltgt): New expander.
3987 * config/rs6000/rs6000.c (ccr_bit): Handle unordered comparisons.
3988 (ccr_bit_negated_p): New function.
3989 (print_operand): For %C, generate appropriate cror for UNEQ,
3990 UNLT, UNGT, and LTGT. For %T and %t, use ccr_bit_negated_p.
3992 2000-03-20 Andreas Jaeger <aj@suse.de>
3994 * sdbout.c (sdbout_one_type): Add braces to avoid "ambigous else"
3997 * tree.h (safe_for_unsave): Prototype.
3999 2000-03-20 Richard Henderson <rth@cygnus.com>
4001 * regmove.c (stack_memref_p): Fix typo, reorg for readability.
4002 (combine_stack_adjustments_for_block): Don't allow sp references
4003 in the side of a set we're not fixing up.
4004 * toplev.c (rest_of_compilation): Run combine_stack_adjustments
4005 after life_analysis.
4007 2000-03-20 Richard Henderson <rth@cygnus.com>
4009 * calls.c (expand_call): Don't bother generating tail call
4010 sequences if there are pending cleanups. Use
4011 expand_start_target_temps/expand_end_target_temps to elide
4012 cleanups created during sibcall expansion.
4014 2000-03-20 Geoff Keating <geoffk@cygnus.com>
4016 * configure.in: Set $IFS to a value if it doesn't already have one
4017 in the --enable-checking handling.
4018 * configure: Regenerate.
4020 2000-03-20 Martin v. Löwis <loewis@informatik.hu-berlin.de>
4022 * c-parse.in (SAVE_WARN_FLAGS): Use size_int.
4023 * c-parse.y, c-parse.c, objc/objc-parse.y, objc/objc-parse.c:
4026 Mon Mar 20 11:43:15 MET 2000 Jan Hubicka <jh@suse.cz>
4028 * jump.c (delete_noop_moves): Remove code attempting to
4029 combine stack adjustments.
4031 2000-03-19 Martin v. Löwis <loewis@informatik.hu-berlin.de>
4033 * emit-rtl.c (push_to_full_sequence, end_full_sequence): New functions.
4034 * except.c (emit_cleanup_handler): Use them.
4035 (expand_end_all_catch): Likewise.
4036 * function.c (fixup_var_refs): Likewise.
4037 (expand_function_end): Clear catch_clauses_last.
4038 * rtl.h (push_to_full_sequence, end_full_sequence): Declare.
4039 * except.h (struct eh_status): New field x_catch_clauses_last.
4040 (catch_clauses_last): New define.
4042 * Makefile.in (tree.o): Depend on HASHTAB_H.
4043 * tree.c: Include hashtab.h.
4044 (struct type_hash): Remove next field.
4045 (TYPE_HASH_SIZE): Remove.
4046 (TYPE_HASH_INITIAL_SIZE): New define.
4047 (type_hash_table): Change type to htab_t.
4048 (type_hash_eq, type_hash_hash, print_type_hash_statistics,
4049 mark_hash_entry): New functions.
4050 (init_obstacks): Allocate type hash.
4051 (type_hash_lookup): Use htab functions.
4052 (type_hash_add, mark_type_hash): Likewise.
4053 (dump_tree_statistics): Call print_type_hash_statistics.
4055 2000-03-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4057 * rs6000/t-aix41: New file.
4059 * configure.in ({rs6000,powerpc}-ibm-aix4.[12]*): Use it.
4061 Sun Mar 19 13:27:30 2000 Hans-Peter Nilsson <hp@axis.com>
4063 * tm.texi (Driver): Fix typos and tweak entry for
4065 Move misplaced STRUCT_FORCE_BLK entry ...
4066 (Storage Layout): ... to here.
4067 (Run-time Target): Recommend having TARGET_MASK_... helper macros.
4069 2000-03-19 Richard Henderson <rth@cygnus.com>
4071 * flow.c (delete_block): Delete the addr_vec along with the block.
4072 (flow_delete_insn): Decrement LABEL_NUSES when deleting insns that
4075 * fold-const.c (extract_muldiv): Apply type check for defined
4076 overflow to multiply as well as divide.
4078 * stor-layout.c (layout_decl): Don't abort on any zero sized decl.
4080 2000-03-18 Mark Mitchell <mark@codesourcery.com>
4082 * emit-rtl.c (remove_unncessary_notes): Check that all
4083 NOTE_INSN_BLOCK_BEG and NOTE_INSN_BLOCK_END notes have an
4084 associated NOTE_BLOCK.
4085 * function.h (identify_blocks): Update comments.
4086 (reorder_blocks): Declare.
4087 * function.c (identify_blocks): Don't take paramters.
4088 (reorder_blocks): Don't take parameters.
4089 * loop.h (find_loop_tree_blocks): Remove.
4090 (unroll_block_trees): Likewise.
4091 * loop.c (loop_optimize): Don't call find_loop_tree_blocks. Use
4092 reorder_blocks instead of unroll_block_trees.h
4093 * sibcall.c (optimize_sibling_and_tail_recursive_calls): Likewise.
4094 * stmt.c (find_loop_tree_blocks): Remove.
4095 (unroll_block_trees): Likewise.
4096 * toplev.c (rest_of_compilation): Don't call find_loop_tree_blocks
4097 in whole-function mode.
4098 * tree.h (reorder_blocks): Remove declaration.
4100 * expr.c: Include intl.h.
4101 * Makefile.in (expr.o): Depend on intl.h.
4103 2000-03-18 Richard Henderson <rth@cygnus.com>
4105 * expr.c (emit_move_insn_1): Clarify cannot_inline message.
4107 2000-03-18 Mark Mitchell <mark@codesourcery.com>
4109 * tree.h (tree_index): Remove enumerals for integer types.
4110 (integer_type_kind): New type.
4111 (integer_types): New variable.
4112 (char_type_node): Adjust.
4113 (signed_char_type_node): Likewise.
4114 (unsigned_char_type_node): Likewise.
4115 (short_integer_type_node): Likewise.
4116 (short_unsigned_type_node): Likewise.
4117 (integer_type_node): Likewise.
4118 (unsigned_type_node): Likewise.
4119 (long_integer_type_node): Likewise.
4120 (long_unsigned_type_node): Likewise.
4121 (long_long_integer_type_node): Likewise.
4122 (long_long_unsigned_type_node): Likewise.
4123 * tree.c (integer_types): New variable.
4124 (init_obstacks): Register it as a root.
4126 Sat Mar 18 14:38:00 2000 Jason Eckhardt <jle@cygnus.com>
4128 * bb-reorder.c (reorder_basic_blocks): Update PREV_INSN as well as
4129 NEXT_INSN. Update last insn in chain.
4131 2000-03-17 Jason Merrill <jason@casey.cygnus.com>
4133 * dwarf2out.c (dwarf2out_decl): Don't emit anything for types
4134 with TYPE_DECL_SUPPRESS_DEBUG set.
4136 2000-03-18 Richard Henderson <rth@cygnus.com>
4138 * flow.c (make_edges): Use INTVAL to access REG_EH_REGION value.
4140 2000-03-18 Richard Henderson <rth@cygnus.com>
4142 * i386.c (call_insn_operand): Always allow SYMBOL_REF,
4143 care for HALF_PIC_P.
4144 (expander_call_insn_operand): Remove.
4145 (ix86_expand_epilogue): New arg `emit_return' to control return insn.
4146 * i386.h (PREDICATE_CODES): Update.
4147 * i386.md (all call expanders): Remove predicates, remove special
4148 handling for half-pic.
4149 (*call_1, *call_value_1): Handle SIBLING_CALL_P insns.
4150 (*call_pop_pic2, *call_pic2, *call_value_pop_2, *call_value_2): Remove.
4151 (sibcall_epilogue): New.
4153 2000-03-17 Richard Henderson <rth@cygnus.com>
4155 * rtlanal.c (single_set): Reject if the parallel has anything
4156 except SET or USE or CLOBBER.
4158 2000-03-17 Jeff Law <law@cygnus.com>
4159 Richard Henderson <rth@cygnus.com>
4161 * Makefile.in (OBJS): Add sibcall.o.
4163 * sibcall.c: New file.
4164 * calls.c (FUNCTION_OK_FOR_SIBCALL): Provide default.
4165 (ECF_IS_CONST, ECF_NOTHROW, ECF_SIBCALL): New.
4166 (emit_call_1): Replace `is_const' and `nothrow' with `ecf_flags'.
4167 Emit sibcall patterns when requested. Update all callers.
4168 (expand_call): Generate CALL_PLACEHOLDER insns when tail call
4169 elimination seems feasable.
4170 * final.c (leaf_function_p): Sibling calls don't discount being
4172 * flow.c (HAVE_sibcall_epilogue): Provide default.
4173 (find_basic_blocks_1): Sibling calls don't throw.
4174 (make_edges): Make edge from sibling call to EXIT.
4175 (propagate_block): Don't remove sibcall_epilogue insns.
4176 * function.c (prologue, epilogue): Turn into varrays. Update all uses.
4177 (sibcall_epilogue): New.
4178 (fixup_var_refs): Scan CALL_PLACEHOLDER sub-sequences.
4179 (identify_blocks_1): Likewise. Break out from ...
4180 (identify_blocks): ... here.
4181 (reorder_blocks_1): Scan CALL_PLACEHOLDER. Break out from ...
4182 (reorder_blocks): ... here.
4183 (init_function_for_compilation): Zap prologue/epilogue as varrays.
4184 (record_insns): Extend a varray instead of mallocing new memory.
4185 (contains): Read a varray not array of ints.
4186 (sibcall_epilogue_contains): New.
4187 (thread_prologue_and_epilogue_insns): Emit and record
4188 sibcall_epilogue patterns.
4189 (init_function_once): Allocate prologue/epilogue varrays.
4190 * genflags.c (gen_insn): Treat sibcall patterns as calls.
4191 * integrate.c (save_parm_insns): Recurse on CALL_PLACEHOLDER patterns.
4193 (save_for_inline_nocopy): ... here.
4194 (copy_insn_list): Recurse on CALL_PLACEHOLDER patterns.
4196 (expand_inline_function): ... here.
4197 (copy_rtx_and_substitute): Handle NOTE_INSN_DELETED_LABEL.
4198 (subst_constants): Handle 'n' formats.
4199 * jump.c (jump_optimize_minimal): New.
4200 (jump_optimize_1): New arg `minimal'; update callers. Elide most
4201 optimizations if it's set.
4202 * rtl.c (copy_rtx): Do copy jump & call for insns.
4203 * rtl.h (struct rtx_def): Document use of jump and call for insns.
4204 (SIBLING_CALL_P): New.
4205 (sibcall_use_t): New.
4206 * toplev.c (rest_of_compilation): Do init_EXPR_INSN_LIST_cache earlier.
4207 Invoke optimize_sibling_and_tail_recursive_calls.
4208 * tree.c (lang_safe_for_unsave): New.
4209 (safe_for_unsave): New.
4210 * tree.h (lang_safe_for_unsave, safe_for_unsave): Declare.
4212 * alpha.h (FUNCTION_OK_FOR_SIBCALL): New.
4213 * alpha.md (sibcall, sibcall_value, sibcall_epilogue): New.
4214 (*sibcall_osf_1, *sibcall_value_osf_1): New.
4216 2000-03-17 Mark Mitchell <mark@codesourcery.com>
4218 * objc/objc-act.c (encode_method_prototype): Pass types, not
4219 PARM_DECLs, to int_size_in_bytes.
4221 Fri Mar 17 11:51:34 2000 Jim Wilson <wilson@cygnus.com>
4223 * config/ia64/ia64.md (mix4right_3op): Swap %1 and %2 in template.
4225 * config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
4226 config/ia64/ia64.md, config/ia64/xm-ia64.h: Fix copyrights again.
4228 Fri Mar 17 08:09:14 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4230 * Clean up usages of TREE_INT_CST_LOW.
4231 * c-parse.in (RESTORE_WARN_FLAGS): Use tree_low_cst.
4232 * c-parse.y, c-parse.c, objc/objc-parse.y, objc/objc-parse.c:
4234 * c-tree.h (min_precision): Move declaration to here.
4235 * c-typeck.c (build_binary_op): Use host_integerp and tree_low_cst.
4236 (build_unary_op, add_pending_init): Use bit_position.
4237 (pending_init_member, process_init_element): Likewise.
4238 (really_start_incremental_init, push_init_level, pop_init_level):
4239 Don't make copies of nodes or modify them in place, use consistent
4240 types when tracking positions, and use tree routines computations.
4241 (set_init_index, output_init_element): Likewise.
4242 (output_pending_init_elements, process_init_element): Likewise.
4243 * dbxout.c (dbxout_type_fields): Use bit_position, host_integerp,
4244 tree_low_cst and int_bit_position; also minor cleanup.
4245 (dbxout_type_method_1, dbxout_range_type, dbxout_type): Likewise.
4246 (print_cst_octal): Precision is unsigned.
4247 (dbxout_symbol): Ensure DECL_INITIAL is in-range and use tree_low_cst.
4248 * dwarf2out.c (ceiling): Input and output are unsigned HOST_WIDE_INT.
4249 (simple_type_align_in_bits): Result is unsigned int.
4250 Use tree_int_low_cst and host_integerp.
4251 (simple_type_size_in_bits): Result is unsigned HOST_WIDE_INT.
4252 (field_byte_offset): Result is HOST_WIDE_INT.
4253 Change types of internal variables so alignments are unsigned int,
4254 offsets are HOST_WIDE_INT and sizes are unsigned HOST_WIDE_INT.
4255 Use host_integerp, tree_low_cst, and int_bit_position.
4256 (add_bit_offset_attribute): Likewise.
4257 (add_data_member_location_attribute): Use tree_cst_low.
4258 (add_bound_info): Use host_integerp, integer_zerop, and integer_onep.
4259 (add_bit_size_attribute): Use tree_low_cst.
4260 (add_pure_or_virtual_attribute, gen_enumeration_type_die): Likewise.
4261 * dwarfout.c: Similar changes to dwarf2out.c.
4262 * expr.c (expand_expr, case ARRAY_REF): Remove redundant code.
4263 * genoutput.c (n_occurences): Return -1 for null string.
4264 (strip_whitespace): Accept null string and make into function.
4265 (scan_operands): Reflect above changes.
4266 * sdbout.c (plain_type_1): Use host_integerp and tree_low_cst.
4267 (sdbout_field_types, sdbout_one_type): Likewise; also use bit_position.
4268 * ssa.c (rename_registers): Add missing cast of arg to bzero.
4269 * tree.c (int_size_in_bytes): Check for too big to represent.
4270 (bit_position, int_bit_position, host_integerp, tree_low_cst): New fns.
4271 * tree.h (host_integerp, tree_low_cst, bit_position, int_bit_position):
4273 (min_precision): Delete from here.
4274 * varasm.c (decode_addr_const): Use host_integerp, bit_position,
4275 and int_bit_position.
4276 * objc/objc-act.c (encode_method_prototype): Sizes are HOST_WIDE_INT.
4277 (encode_method_def): Likewise.
4278 (build_ivar_list_initializer): Use int_bit_position.
4279 (generate_shared_structures): Convert size.
4280 (encode_type, encode_complete_bitfield): Use integer_zerop.
4281 (encode_bitfield): Use tree_low_cst and int_bit_position.
4283 2000-03-17 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
4285 * config/c4x/c4x.h (CPP_SPEC): Fix typo.
4287 2000-03-17 Martin v. Löwis <loewis@informatik.hu-berlin.de>
4289 * call.c (special_function_p): It is only malloc if it returns
4292 2000-03-17 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
4294 * config/c4x/c4x.h (ASM_SPEC, CPP_SPEC, LINK_SPEC): Support C33.
4295 (C33_FLAG, TARGET_C3X): Add macros.
4296 (TARGET_SWITCHES): Add -m33 option.
4297 * config/c4x/c4x.c (c4x_override_options): Test for TARGET_C33.
4299 2000-03-17 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
4301 * config/c4x/c4x.h (PARALLEL_INSN_FLAG): Add.
4302 (PARALLEL_PACK_FLAG): Delete.
4303 (TARGET_SWITCHES): Update.
4304 (TARGET_PARALLEL): Use PARALLEL_INSN_FLAG.
4306 Thu Mar 16 18:52:32 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4308 * fold-const.c (fold): Fix a few cases when the returned result
4309 is not of the same type as the input.
4311 2000-03-16 Nick Clifton <nickc@cygnus.com>
4313 * config/arm/arm.h (ASM_OUTPUT_MI_THUNK): Fix compile time
4316 2000-03-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4318 * libgcc2.h: Move prototypes above macros with the same name.
4319 Wrap some function prototypes in the conditional which indicates
4320 whether they are supported, i.e. "BITS_PER_UNIT == 8".
4322 2000-03-16 Richard Henderson <rth@cygnus.com>
4324 * calls.c: Revert last two changes.
4326 2000-03-16 Bernd Schmidt <bernds@cygnus.co.uk>
4328 * fp-bit.c (_unpack_d): If NO_DENORMALS is defined, anything that
4329 has exponent 0 is a zero.
4331 * simplify-rtx.c (hash_rtx, case MEM/REG): Take into account that
4332 HASH may already be nonzero. Add code/mode into hash value
4333 immediately after repeat label.
4334 (cselib_lookup): Don't leave the hash table in an inconsistent
4335 state before a hash lookup operation.
4337 Thu Mar 16 17:03:10 MET 2000 Jan Hubicka <jh@suse.cz>
4339 * i386.md (all HI and QI mode non-move patterns): Conditionize
4340 by TARGET_[HQ]IMODE_MATH.
4341 * i386.h (x86_himode_math, x86_qimode_math, x86_promote_hi_regs,
4342 x86_promote_qi_regs): Declare.
4343 (TARGET_HIMODE_MATH, TARGET_QIMODE_MATH, TARGET_PROMOTE_HI_REGS,
4344 TARGET_PROMOTE_QI_REGS): New macros.
4345 (PROMOTE_MODE): New macro.
4346 * i386.c (x86_himode_math, x86_qimode_math, x86_promote_hi_regs,
4347 x86_promote_qi_regs): New global variables.
4349 Thu Mar 16 16:50:44 MET 2000 Jan Hubicka <jh@suse.cz>
4351 * calls.c (emit_library_call_value_1): Break out from ...; handle
4352 VOIDmode function calls too.
4353 (emit_library_call_value): ... here.
4354 (emit_library_call): Implement by calling emit_library_call_value_1.
4356 Thu Mar 16 16:01:30 MET 2000 Jan Hubicka <jh@suse.cz>
4358 * calls.c (expand_call): Do sanity checking on arg_space_so_far.
4359 Update arg_space_so_far on stack adjustments.
4360 (emit_library_call, emit_library_call_value): Likewise; take into
4361 account arg_space_so_far and pending_stack_adjust when calculcating
4364 Thu Mar 16 09:02:19 2000 Jason Eckhardt <jle@cygnus.com>
4366 * flow.c: Move all basic block reordering code into its own file.
4367 (create_basic_block): Externalize.
4368 * bb-reorder.c: New file. Copy all basic block reordering code from
4369 flow.c to this file.
4370 (reorder_basic_blocks): Fix fencepost error in for-loop.
4371 (reorder_basic_blocks): Remove braces from single statement for-loops.
4372 * basic-block.h: Add declaration for create_basic_block.
4373 * Makefile.in: Add rules for bb-reorder.o.
4375 2000-03-16 Neil Booth <NeilB@earthling.net>
4377 * cppinit.c (handle_option): Implement #unassert directive
4378 as -A- command line option.
4379 (print_help): Update.
4380 * cpptexi.c: Update.
4382 Thu Mar 16 02:14:16 2000 Hans-Peter Nilsson <hp@bitrange.com>
4384 * md.texi (Standard Names): Document `jump'.
4386 2000-03-15 Jason Merrill <jason@casey.cygnus.com>
4388 * calls.c (emit_call_1): Nothrow functions can still have nonlocal
4391 2000-03-15 Geoff Keating <geoffk@cygnus.com>
4393 Merge changes from newppc-branch onto trunk.
4395 2000-03-15 Geoff Keating <geoffk@cygnus.com>
4397 * rs6000.c (toc_hash_table): Update for new hash table functions.
4398 (toc_hash_function): Likewise.
4399 (toc_hash_eq): Likewise.
4400 (toc_hash_mark_entry): Likewise.
4401 (toc_hash_mark_table): Likewise.
4402 (output_toc): Likewise.
4403 (rs6000_add_gc_roots): Likewise.
4405 2000-03-15 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
4407 * t-aix43 (AR_FOR_TARGET): Deleted. Moved `-X32_64'...
4408 (AR_FLAGS_FOR_TARGET): here. New macro.
4410 2000-03-05 Clinton Popetz <cpopetz@cygnus.com>
4412 * config/rs6000/rs6000.c (rs6000_fpmem_offset, rs6000_fpmem_size,
4413 fpmem_operand) Delete.
4415 (rs6000_reg_names, alt_reg_names): Change fpmem to xer.
4416 (machine_function): Remove fpmem_size, fpmem_offset, save_toc_p.
4417 (rs6000_save_machine_status, rs6000_restore_machine_status,
4418 rs6000_init_expanders, rs6000_stack_info, debug_stack_info): Remove
4419 references to above variables.
4420 (gpc_reg_operand): Use XER_REGNO_P instead of FPMEM_REGNO_P.
4421 * config/rs6000/rs6000.h (REG_ALLOC_ORDER, REGISTER_NAMES,
4422 DEBUG_REGISTER_NAMES): Chagne fpmem to xer.
4423 (FPMEM_REGNO_P, FPMEM_REGNUM): Delete.
4424 (XER_REGNO_P, XER_REGNO): New.
4425 (rs6000_stack): Remove fpmem_p, fpmem_offset, fpmem_size.
4426 (PREDICATE_CODES): Change fpmem_operand to xer_operand.
4427 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Change FPMEM_REGNO_P to
4429 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS,
4430 REG_CLASS_FROM_LETTER, CLASS_MAX_NREGS): Change FPMEM_REGS to XER_REGS, and remove FLOAT_OR_FPMEM_REGS.
4431 (CLASS_CANNOT_CHANGE_SIZE): Change to FLOAT_REGS.
4433 2000-02-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4435 * aix.h (FP_SAVE_INLINE, ASM_OUTPUT_INTERNAL_LABEL_PREFIX,
4436 TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP): Move here...
4437 * rs6000.h: from here.
4439 * rs6000-protos.h (rs6000_select_section): Provide prototype.
4440 (rs6000_select_rtx_section): Likewise.
4441 (rs6000_encode_section_info): Likewise.
4442 (sdata_section): Likewise.
4443 (sdata2_section): Likewise.
4444 (sbss_section): Likewise.
4445 * sysv4.h (rs6000_select_section): Delete prototype.
4446 (rs6000_select_rtx_section): Likewise.
4447 (rs6000_encode_section_info): Likewise.
4448 (sdata_section): Likewise.
4449 (sdata2_section): Likewise.
4450 (sbss_section): Likewise.
4451 (REG_SAVE_AREA): Delete definition duplicated in rs6000.h.
4453 * sysv4.h: Delete various unnecessary #undef's and put a comment
4454 on the remaining ones.
4455 Change various comments according to coding standard.
4457 2000-02-29 Clinton Popetz <cpopetz@cygnus.com>
4459 * config/rs6000/rs6000.h (MQ_REGNO, CR0_REGNO, CR1_REGNO, CR2_REGNO,
4460 CR3_REGNO, CR4_REGNO, MAX_CR_REGNO): Define.
4461 (CR0_REGNO_P) Remove.
4462 * config/rs6000/rs6000.c (gpc_reg_operand, and64_operand, and_operand,
4463 setup_incoming_varargs, mtcrf_operation, print_operand,
4464 rs6000_stack_info, rs6000_emit_prologue, rs6000_emit_epilogue):
4465 Use the above macros.
4467 2000-02-24 Clinton Popetz <cpopetz@cygnus.com>
4469 * config/rs6000/rs6000.md: Added a new alternative for each
4470 pattern that had a 'x' alternative but no 'y' alternative.
4471 Added a new split for each of the above patterns.
4473 2000-02-18 Geoff Keating <geoffk@cygnus.com>
4475 * aix41.h (ASM_CPU_SPEC): Delete.
4476 (CPP_CPU_SPEC): Delete.
4478 * aix.h (RS6000_OUTPUT_BASENAME): Define.
4479 (ASM_OUTPUT_LABEL): Define.
4480 (ASM_GLOBALIZE_LABEL): Define.
4481 (STRIP_NAME_ENCODING): Define.
4482 * rs6000.h (RS6000_OUTPUT_BASENAME): Don't define.
4483 (STRIP_NAME_ENCODING): Don't define.
4484 (ASM_OUTPUT_LABEL): Don't define.
4485 (ASM_GLOBALIZE_LABEL): Don't define.
4486 * sysv4.h (ASM_DECLARE_FUNCTION_NAME): Use assemble_name to output
4487 names, and ASM_OUTPUT_LABEL to output labels, rather than
4489 (ASM_OUTPUT_LABEL): Define.
4490 (ASM_OUTPUT_INT): Use assemble_name.
4491 (ASM_OUTPUT_DWARF_ADDR): Use assemble_name.
4492 (STRIP_NAME_ENCODING): Don't undefine first.
4493 (RS6000_OUTPUT_BASENAME): Make equivalent to assemble_name for
4495 (ASM_OUTPUT_LABELREF): Don't prepend underscores to labels
4496 specified with 'asm' even with -fleading-underscore.
4497 * rs6000.c (print_operand): Use assemble_name when !TARGET_AIX.
4498 (output_epilog): Likewise.
4499 (output_toc): Likewise.
4500 * tramp.asm: Handle -fleading-underscore correctly.
4502 * rs6000.md (builtin_setjmp_receiver): Also run for -fPIC and
4504 (nonlocal_goto_receiver): Delete.
4505 * rs6000.h (DONT_ACCESS_GBLS_AFTER_EPILOGUE): Delete.
4507 * rs6000.h (ASM_OUTPUT_DEF): Don't define.
4508 (SET_ASM_OP): Define.
4509 * sysv4.h (ASM_OUTPUT_DEF): Don't undefine.
4511 * rs6000.h (ASM_OUTPUT_ADDR_VEC_ELT): Don't define.
4514 * rs6000.c (rs6000_dll_import_ref): Delete, not used.
4515 * rs6000-protos.h (rs6000_dll_import_ref): Delete.
4517 * rs6000.h: Add 'u' to more constants.
4519 2000-02-18 David Edelsohn <edelsohn@gnu.org>
4521 * rs6000.md (mfcr+shift): Delete PowerPC64 version.
4523 2000-02-15 David Edelsohn <edelsohn@gnu.org>
4525 * rs6000.c (reg_or_u_cint_operand): New function.
4526 (logical_operand): Handle 64-bit hosts.
4527 (logical_u_operand): New function.
4528 (non_logical_cint_operand): Handle 64-bit hosts.
4529 (non_logical_u_cint_operand): New function.
4530 * rs6000.h (DATA_SECTION_ASM_OP): Add tab.
4531 (PREDICATE_CODES): Define new functions.
4532 * rs6000-protos.h: Declare new functions.
4533 * rs6000.md (iordi3, xordi3): Constant int must be unsigned 32-bits.
4534 (movdi_64): Bracket code intended for 64-bit hosts. Create
4535 CONST_DOUBLE for 32-bit values.
4536 (scc insns): Generate DImode compares.
4537 (mfcr insns): Create DImode versions.
4538 (sge matchers): New patterns.
4540 2000-02-15 Gabriel Paubert <paubert@iram.es>
4542 * rs6000.md: Correct instructions length attributes and
4543 constraints on unsigned compare instructions.
4544 (*ne0): Disable for PowerPC64.
4546 2000-02-11 Geoff Keating <geoffk@cygnus.com>
4548 * rs6000.c (output_function_profiler): Use .long for a 32-bit
4549 quantity, fix profile1.C test failure under -fPIC.
4551 * rs6000.c: Add 'u' to many constants to suppress warnings.
4552 (constant_pool_expr_1): Make static.
4553 (rs6000_emit_eh_toc_restore): Remove unused 'r2'.
4554 * rs6000.h: Add 'u' to many constants to suppress warnings.
4556 * rs6000.c (rs6000_emit_load_toc_table): Use LCTOC..1 under AIX
4557 for the start of the TOC, instead of LCTOC..0.
4558 * aix.h (toc_section): Use LCTOC..1 under AIX for the start
4560 * rs6000.md (load_toc_aix_si): Use LCTOC..1.
4561 (load_toc_aix_di): Use LCTOC..1.
4563 * rs6000.h (LEGITIMIZE_ADDRESS): Turn into a function.
4564 * rs6000.c (rs6000_legitimize_address): New function from
4565 LEGITIMIZE_ADDRESS. Only use create_TOC_reference on
4566 symbols in the constant pool that really are TOC references.
4567 (print_operand_address): For ELF, write TOC offsets under
4568 -fPIC as subtractions in the insn.
4569 (output_toc): For ELF, define symbols in TOC as normal labels,
4571 (create_TOC_reference): Use gen_rtx_PLUS rather than gen_rtx.
4572 * rs6000-protos.h (rs6000_legitimize_address): Prototype.
4573 (create_TOC_reference): Prototype only when RTX_CODE is defined.
4574 * rs6000.md (movsi): Only use create_TOC_reference on
4575 symbols in the constant pool that really are TOC references.
4577 * rs6000.h (MACHINE_DEPENDENT_REORG): Don't define.
4578 * rs6000.c (rs6000_reorg): Delete.
4579 * rs6000-protos.h (rs6000_reorg): Delete.
4581 2000-02-09 Geoff Keating <geoffk@cygnus.com>
4583 * rs6000.h (INCOMING_RETURN_ADDR_RTX): New macro.
4585 * aix.h (SETUP_FRAME_ADDRESSES): Define.
4586 * rs6000.c [TARGET_AIX] (insn_after_throw): New static variable.
4587 [TARGET_AIX] (rs6000_aix_emit_builtin_unwind_init): New function.
4588 [TARGET_AIX] (rs6000_emit_eh_toc_restore): New function.
4589 * rs6000-protos.h: Prototype rs6000_emit_eh_toc_restore,
4590 rs6000_aix_emit_builtin_unwind_init.
4591 * rs6000.md (eh_epilogue) [TARGET_AIX]: Call
4592 rs6000_emit_eh_toc_restore on AIX.
4593 (return_eh_si): Use r2.
4594 (return_eh_di): Use r2.
4596 * aix43.h: Turn on HAS_INIT_SECTION and LD_INIT_SWITCH,
4597 since we're breaking binary compatibility anyway.
4599 2000-02-09 Clinton Popetz <cpopetz@cygnus.com>
4601 * config/rs6000/rs6000-protos.h: (get_TOC_alias_set, uses_TOC,
4602 constant_pool_expr_p): Declare them.
4603 (constant_pool_expr_p): Declare it.
4604 * config/rs6000/rs6000.c (toc_label_name): Define.
4605 (rs6000_override_options): Set toc_label_name.
4606 (input_operand): Allow any TOC_RELATIVE_EXPR_P.
4607 (get_TOC_alias_set, constant_pool_expr_p, constant_pool_expr_1,
4608 uses_TOC): New functions.
4609 (print_operand): Delete old '*' case.
4610 (print_operand_address): Use LEGITIMATE_CONSTANT_POOL_ADDRESS_P,
4611 and strip off rtl for TOC before calling output_addr_const.
4612 (rs6000_emit_load_toc_table): Use toc_label_name.
4613 * config/rs6000/rs6000.h (TARGET_SWITCHES): Make msched-prolog
4615 (LEGITIMATE_CONSTANT_POOL_BASE_P): Delete.
4616 (CONSTANT_POOL_EXPR_P, TOC_RELATIVE_EXPR_P): New macros.
4617 (LEGITIMATE_CONSTANT_POOL_ADDRESS_P): Use CONSTANT_POOL_EXPR_P.
4618 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Turn symbol_refs
4619 into explicit TOC_REGISTER offsets.
4620 (TOC_REGISTER): New macro.
4621 * config/rs6000/rs6000.md (movsi, movdi): Emit rtl under
4622 TARGET_TOC to reference TOC_REGISTER.
4623 (load_toc_v4_PIC_1b): Add 4 to offset for toc reload.
4624 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Call
4625 uses_TOC before emitting label references.
4627 2000-02-05 Geoff Keating <geoffk@cygnus.com>
4629 * rs6000.md (stack_tie): Fix warning.
4631 * eabi-ctors.c: Use 'asm' names for the start/end variables,
4632 to handle -fleading-underscore.
4633 * sysv4.h (ASM_DECLARE_FUNCTION_NAME): Use asm_fprintf and %U.
4634 (USER_LABEL_PREFIX): New macro.
4635 (ASM_OUTPUT_INTERNAL_LABEL_PREFIX): Use asm_fprintf and %L.
4636 (ASM_OUTPUT_LABELREF): Use asm_fprintf and %U.
4637 * t-ppccomm (MULTILIB_MATCHES_SYSV): Note that call-sysv and
4638 call-linux can use the same multilibs.
4639 * t-ppcgas (MULTILIB_OPTIONS): Don't need to have separate call-sysv
4640 and call-linux multilibs. Do multilib with -fleading-underscore.
4641 (MULTILIB_DIRNAMES): Follow MULTILIB_OPTIONS change.
4642 (MULTILIB_EXCEPTIONS): Remove call-linux exceptions. Add restrictions
4645 * sysv4.h (CPP_SYSV_SPEC): Define _SOFT_FLOAT for all those CPUs that
4646 have MASK_SOFT_FLOAT set.
4647 (CPP_FLOAT_DEFAULT_SPEC): New macro.
4648 (SUBTARGET_EXTRA_SPECS): Set `cpp_float_default' to the value of
4649 CPP_FLOAT_DEFAULT_SPEC.
4651 * rs6000.c (ccr_bit): Add some consistency checks and a variable 'reg'.
4652 * rs6000.md: Whitespace change.
4653 * sysv4.h (LINK_TARGET_SPEC): Whitespace change.
4654 * sysv4le.h (LINK_TARGET_SPEC): Whitespace change.
4656 2000-02-05 Geoff Keating <geoffk@cygnus.com>
4658 * rs6000.md (eh_epilogue): New expander.
4659 (eh_reg_restore): New expand/split/insn combination.
4660 (return_eh_si): New insn.
4661 (return_eh_di): New insn.
4663 * eabi-ci.asm: Put a label at the start of the .eh_frame section.
4664 * eabi-cn.asm: Put a zero at the end of the .eh_frame section.
4665 * eabi-ctors.c (__do_global_ctors): Register this object's
4666 frame. Clean up. Call atexit() after the constructors.
4667 (__do_global_dtors): Deregister this object's frame. Clean up.
4668 Allow for recursive calls to exit().
4669 * rs6000.c (fixuplabelno): New variable.
4670 * sysv4.h (ASM_OUTPUT_INT): Don't do .fixup if not
4671 TARGET_RELOCATABLE, it slows down exec() under linux.
4672 (ASM_OUTPUT_DWARF_ADDR): Do .fixup if TARGET_RELOCATABLE.
4674 * aix.h (ASM_OUTPUT_DWARF_ADDR_VAR): New macro.
4675 (ASM_OUTPUT_DWARF_DELTA_VAR): New macro.
4676 (ASM_OUTPUT_DWARF_DELTA2): New macro.
4677 (ASM_OUTPUT_DWARF_DELTA4): New macro.
4678 (ASM_OUTPUT_DWARF_ADDR_DELTA): New macro.
4679 (ASM_OUTPUT_DWARF_ADDR): New macro.
4680 (ASM_OUTPUT_DWARF_DATA4): New macro.
4681 (ASM_OUTPUT_DWARF_DATA2): New macro.
4682 (ASM_OUTPUT_DWARF_OFFSET4): New macro.
4683 (ASM_OUTPUT_DWARF_OFFSET): New macro.
4684 (UNALIGNED_INT_ASM_OP): New macro, fake definition.
4686 2000-02-03 Geoff Keating <geoffk@cygnus.com>
4688 * rs6000.c (rs6000_sr_alias_set): New variable.
4689 (rs6000_override_options): Initialise rs6000_sr_alias_set.
4690 (rs6000_emit_stack_tie): New function.
4691 (rs6000_emit_allocate_stack): Specify RTX_FRAME_RELATED_P
4692 in a way that dwarf2out can understand.
4693 (rs6000_frame_related): New function.
4694 (rs6000_emit_prologue): Use rs6000_sr_alias_set. Specify
4695 RTX_FRAME_RELATED_P in a way that dwarf2out can understand.
4696 Use rs6000_emit_stack_tie when needed.
4697 (rs6000_emit_epilogue): Use rs6000_sr_alias_set. Don't set
4698 RTX_FRAME_RELATED_P. Use rs6000_emit_stack_tie when needed.
4699 * rs6000.md (stack_tie): New insn.
4700 (return_internal_si): Allow return value to be in the count
4702 (return_internal_di): Likewise.
4704 * rs6000.c (output_mi_thunk): Remove unused variable `sp'.
4706 2000-02-03 Geoff Keating <geoffk@cygnus.com>
4708 * sysv4.h (LOCAL_LABEL_PREFIX): Define, for the use of dbxelf.h.
4710 2000-01-31 Geoff Keating <geoffk@cygnus.com>
4712 * rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): New macro.
4714 * rs6000.md (stmw): Use the right POWER opcode.
4717 2000-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4719 * rs6000-protos.h: New file.
4721 * rs6000.c: Include tm_p.h. Fix compile time warnings.
4723 * rs6000.h: Move prototypes to rs6000-protos.h. Fix compile time
4726 * sysv4.h: Likewise.
4728 2000-01-28 Geoff Keating <geoffk@cygnus.com>
4730 * ../../configure.in: Delete powerpcle-*-winnt*
4731 and powerpcle-*-pe|powerpcle-*-cygwin*.
4732 * ../../configure: Regenerated.
4734 * rs6000.h (OBJECT_WINDOWS_NT): Delete.
4735 (TARGET_WINDOWS_NT): Delete.
4737 (CALL_NT_DLLIMPORT): Delete.
4738 Delete NT-specific code.
4739 * rs6000.md, rs6000.c, sysv4.h: Delete NT-specific code.
4742 * nt-ci.asm: Delete.
4743 * nt-cn.asm: Delete.
4744 * ntstack.asm: Delete.
4746 2000-01-27 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4748 * rs6000.h (SELECT_RTX_SECTION): Move to aix.h.
4749 (ASM_FILE_START): Likewise.
4750 (ASM_DECLARE_FUNCTION_NAME): Likewise.
4751 (ASM_OUTPUT_LABELREF): Likewise.
4752 (ASM_OUTPUT_SKIP): Likewise.
4753 (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
4754 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
4755 (ASM_OUTPUT_CASE_LABEL): Likewise.
4756 (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
4757 (ASM_OUTPUT_ASCII): Likewise.
4759 2000-01-27 Clinton Popetz <cpopetz@cygnus.com>
4761 * rs6000.c (rs6000_emit_load_toc_table): Use "LCG" and
4762 reload_toc_labelno for non-prologue TOC reloads. Also, don't
4763 increment rs6000_pic_labelno here.
4764 (rs6000_emit_prologue): Pass TRUE to rs6000_emit_load_toc_table,
4765 and increment rs6000_pic_labelno here.
4767 2000-01-24 Geoffrey Keating <geoffk@cygnus.com>
4769 * rs6000.md (fctiwz): Use (set (reg) (unspec:DI [(fix:SI ...)]))
4770 rather than (set (subreg:SI (reg)) (fix:SI ...)) so that register
4771 allocation knows (reg) is dead before the insn.
4773 2000-01-21 Geoff Keating <geoffk@cygnus.com>
4775 * rs6000.md (movsi_to_cr): Correct typo in output template.
4777 2000-01-19 Geoffrey Keating <geoffk@cygnus.com>
4779 * rs6000.c (rs6000_pic_labelno): Always define.
4780 (rs6000_pic_func_labelno): Delete.
4781 (lmw_operation): Check for a zero base register,
4782 which doesn't mean what we want.
4783 (stmw_operation): New function.
4784 (print_operand): Define new 'l' modifier.
4785 (rs6000_stack_info): We must save all 64 bits of the registers
4786 if TARGET_POWERPC64.
4787 (rs6000_output_load_toc_table): Delete.
4788 (rs6000_emit_load_toc_table): New function.
4789 (rs6000_allocate_stack_space): Delete.
4790 (rs6000_emit_allocate_stack): New function.
4791 (rs6000_emit_prologue): New function.
4792 (output_prolog): Use rs6000_emit_prologue.
4793 (rs6000_emit_epilogue): Change a few variable names to be
4794 more accurate. Restore all 64 bits of the registers if
4795 TARGET_POWERPC64. Only restore the FP registers which were used
4796 if they are being saved/restored one-at-a-time.
4797 (output_mi_thunk): Delete inefficient code generation.
4798 (output_function_profiler): Don't use rs6000_output_load_toc_table.
4799 * rs6000.h: Declare rs6000_emit_load_toc_table,
4800 rs6000_allocate_stack_space, stmw_operation. Don't declare
4801 rs6000_output_load_toc_table.
4802 * rs6000.md (elf_high): Allow register 0, but discourage it
4804 (elf_low): Support loading into register 0.
4805 (load_toc_aix_si): New pattern.
4806 (load_toc_aix_di): New pattern.
4807 (load_toc_v4_pic_si): New pattern.
4808 (load_toc_v4_pic_di): New pattern.
4809 (load_toc_v4_PIC_1): New pattern.
4810 (load_toc_v4_PIC_1b): New pattern.
4811 (load_toc_v4_PIC_2): New pattern.
4812 (builtin_setjmp_receiver): Use rs6000_emit_load_toc_table.
4813 (nonlocal_goto_receiver): Use rs6000_emit_load_toc_table.
4814 (prologue): New expander.
4815 (movesi_from_cr): New pattern.
4816 (stmw): New pattern.
4817 (save_fpregs_si): New pattern.
4818 (save_fpregs_di): New pattern.
4820 2000-01-19 Geoff Keating <geoffk@cygnus.com>
4822 * rs6000.md (movsi): Don't use force_reg when no_new_pseudos.
4827 2000-01-19 Geoff Keating <geoffk@cygnus.com>
4829 * rs6000.md (movsi_got): 'unspec 8' returns a SImode result,
4831 (movsi_got_internal): Likewise.
4832 (movsi_got_internal+1): Likewise.
4833 (set_sp): 'unspec 7' does a SImode clobber.
4835 2000-01-19 Geoff Keating <geoffk@cygnus.com>
4837 * rs6000.md (floatsidf2): Don't use the fpmem "register", just
4838 allocate a stack temporary.
4839 (floatsidf2_internal): Likewise.
4840 (floatsidf2_internal+1): Likewise. Don't do bizzare hacks
4842 (floatunssidf2): Don't use the fpmem "register", just
4843 allocate a stack temporary.
4844 (floatunssidf2_internal): Likewise.
4845 (floatunssidf2_internal+1): Likewise. Don't do bizzare hacks
4847 (floatsidf2_loadaddr): Delete.
4848 (floatsidf2_store1): Delete.
4849 (floatsidf2_store2): Delete.
4850 (floatsidf2_load): Delete.
4851 (fix_truncdfsi2): Don't use the fpmem "register", just
4852 allocate a stack temporary.
4853 (fix_truncdfsi2_internal_si): Delete.
4854 (fix_truncdfsi2_internal_di): Delete.
4855 (fix_truncdfsi2_internal): New insn.
4856 (fix_truncdfsi2_internal+1): Don't use the fpmem "register".
4857 (fix_truncdfsi2_store): Delete.
4858 (fix_truncdfsi2_load): Delete.
4859 (fctiwz): Produce gen_fctiwz.
4861 2000-01-19 Geoffrey Keating <geoffk@cygnus.com>
4863 * eabi.h (INVOKE__main): Define.
4864 * rs6000.c (rs6000_stack_info): Don't handle call to NAME__MAIN
4866 (rs6000_emit_prologue): Likewise.
4867 * rs6000.h (struct rs6000_stack): Don't keep track of whether
4868 this is the main program.
4870 2000-01-19 Geoff Keating <geoffk@cygnus.com>
4872 * rs6000.c (rs6000_va_arg): Delete some unused variables.
4874 2000-01-19 Geoff Keating <geoffk@cygnus.com>
4876 * rs6000.c (rs6000_va_arg): On AIX, padding for small arguments
4877 goes after the argument.
4879 2000-01-12 Geoff Keating <geoffk@cygnus.com>
4881 * rs6000.md: Document 'unspec' values used.
4882 (epilogue): New expander.
4883 (movesi_to_cr_one): New expander.
4884 (movesi_to_cr and following): New pattern.
4886 (return_internal_si): New pattern.
4887 (return_internal_di): New pattern.
4888 (return_and_restore_fpregs_si): New pattern.
4889 (return_and_restore_fpregs_di): New pattern.
4890 * rs6000.h: Declare new functions.
4891 * rs6000.c (rs6000_stack_info): Use current_function_is_leaf
4892 rather than rs6000_calls_p.
4893 (rs6000_makes_calls): Delete.
4894 (lmw_operation): New function.
4895 (mtcrf_operation): New function.
4896 (rs6000_emit_epilogue): New function.
4897 (output_epilog): Call rs6000_emit_epilogue and final if
4898 !TARGET_SCHED_PROLOG, instead of writing text unconditionally.
4900 2000-01-12 Geoff Keating <geoffk@cygnus.com>
4902 * aix43.h (SUBSUBTARGET_SWITCHES): Document switches.
4903 * aix41.h (SUBSUBTARGET_SWITCHES): Document switches.
4904 * aix.h (SUBTARGET_SWITCHES): Document switches.
4905 * rs6000.h: (TARGET_SWITCHES): Don't print options twice. Make
4906 sched-prolog and sched-epilog the same. Document all the
4908 (TARGET_OPTIONS): No longer allow -mdebug-.
4910 2000-01-12 Geoff Keating <geoffk@cygnus.com>
4912 * rs6000.h (ASM_FILE_END): Move to aix.h.
4913 (EXTRA_SECTIONS): Move to aix.h.
4914 (READONLY_DATA_SECTION): Move to aix.h.
4915 (EXTRA_SECTION_FUNCTIONS): Move to aix.h.
4916 (SELECT_SECTION): Move to aix.h.
4917 (JUMP_TABLES_IN_TEXT_SECTION): Move to aix.h.
4918 (INT_REGNO_P): Use symbolic name for ARG_POINTER_REGNUM.
4919 (LINK_REGISTER_REGNUM): New definition.
4920 (RETURN_ADDR_RTX): Use symbolic name for LINK_REGISTER_REGNUM.
4921 (SLOW_UNALIGNED_ACCESS): Define in a way suitable for both
4923 * sysv4.h: Delete the code between the inclusion of rs6000.h
4925 (DWARF_DEBUGGING_INFO): Don't define, it's defined in elfos.h.
4926 (FP_ARG_MAX_REG): Move generic definition to rs6000.h.
4927 (RS6000_REG_SAVE): Move generic definition to rs6000.h.
4928 (RS6000_SAVE_AREA): Move generic definition to rs6000.h.
4929 * rs6000.md (floatsidf2_loadaddr): The first arg here is Pmode.
4930 (fix_truncdfsi2_internal): Rename to fix_truncdfsi2_internal_si.
4931 (fix_truncdfsi2_internal_di): New pattern.
4932 (fix_truncdfsi2_store): The second arg here is Pmode too.
4933 (fix_truncdfsi2_load): The second arg here is Pmode too.
4934 (tablejumpdi): Now that switch tables hold only SImode values,
4935 gcc needs to know how to add them to the pc which is DImode.
4936 * rs6000.c (rs6000_stack_info): Use symbolic name for
4937 LINK_REGISTER_REGNUM.
4938 (output_mi_thunk) [!TARGET_ELF]: Don't define sp, it's not used.
4939 (output_toc): Delete unused variables s1 and s2.
4940 (output_ascii): Use fputs not fprintf on a variable string.
4942 2000-01-07 David Edelsohn <edelsohn@gnu.org>
4944 * rs6000.c (processor_target_table): Add power3 as alias for 630.
4945 * aix43.h: Revert Aug 2 change.
4946 (HAS_INIT_SECTION): Define, not visible yet.
4947 (LD_INIT_SWITCH): Define, not visible yet.
4948 * t-aix43 (MULTILIB_OPTIONS): Revert Aug 2 change.
4950 2000-01-04 Joel Sherrill (joel@OARcorp.com>
4952 * config/rs6000/rtems.h: Include config/rtems.h.
4954 2000-01-04 David Edelsohn <edelsohn@gnu.org>
4956 * rs6000.h (HANDLE_PRAGMA_PACK): Define.
4957 (SLOW_UNALIGNED_ACCESS): Define.
4958 (CASE_VECTOR_MODE): Always use 32-bit offsets.
4959 (ASM_FILE_END): Generate 64-bit symbol in 64-bit mode.
4960 (EXTRA_SECTOIN_FUNCTIONS): Indent .csect pseudo-op.
4961 (toc_section): Likewise and .toc pseudo-op.
4962 (ASM_DECLARE_FUNCTION): Likewise. Align text more strictly in
4964 (TEXT_SECTION_ASM_OP): Likewise.
4965 (ASM_OUTPUT_ADD_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Always use
4968 1999-12-17 Jakub Jelinek <jakub@redhat.com>
4970 * config/rs6000/rs6000.h (TARGET_POWERPC64): Make sure
4971 UNITS_PER_WORD and BITS_PER_WORD are compile time constants when
4974 2000-01-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4976 * rs6000.h: Move more stuff from here...
4978 * sysv4.h: Cleanup accordingly.
4979 * netware.h: Likewise
4981 2000-01-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4983 * rs6000.h: Continue cleanup.
4986 * netware.h: Likewise.
4988 * sysv4.h: Likewise.
4989 * win-nt.h: Likewise.
4991 * rs6000.h (TARGET_SWITCHES): Add descriptions.
4992 (TARGET_OPTIONS): Likewise.
4994 * sysv4.h (SUBTARGET_SWITCHES): Add descriptions.
4995 (SUBTARGET_OPTIONS): Likewise.
4997 * rs6000.md: Fix compile time warnings.
4999 2000-01-04 Geoff Keating <geoffk@cygnus.com>
5001 vxworks patches from the Cygnus tree originally by
5002 Michael Meissner <meissner@cygnus.com> and Vladimir Makarov
5003 <vmakarov@cygnus.com>.
5004 * sysv4.h (SUBTARGET_SWITCHES): Add vxworks.
5005 (ENDFILE_SPEC): Likewise.
5006 (LIB_VXWORKS_SPEC): New macro.
5007 (STARTFILE_VXWORKS_SPEC): New macro.
5008 (ENDFILE_VXWORKS_SPEC): New macro.
5009 (LINK_START_VXWORKS_SPEC): New macro.
5010 (LINK_OS_VXWORKS_SPEC): New macro.
5011 (CPP_OS_VXWORKS_SPEC): New macro.
5012 (SUBTARGET_EXTRA_SPECS): Add all the vxworks specs.
5013 * vxppc.h: Rewrite to use proper configuration method.
5014 * vxppcle.h: New file.
5015 * ../../configure.in: Add powerpcle-wrs-vxworks*.
5016 * ../../configure: Rebuilt.
5018 2000-01-04 Geoff Keating <geoffk@cygnus.com>
5020 Lots of changes to rs6000.h, sysv4.h, aix.h,
5021 aix31.h, aix3newas.h, aix41.h, aix43.h, beos.h,
5022 with the aim that rs6000.h is the first header
5023 included and the others override it.
5026 * x-aix41-gld: Remove.
5028 * x-aix41: Remove target-specific switches, and don't specify
5029 -Wl,-bbigtoc as we don't need it any more.
5030 * ../../configure.in: Use x-aix41 for ppc AIX 4.1 and above.
5031 Use t-aix43 for AIX 4.3 and above.
5032 * ../../configure: Regenerated.
5034 * rs6000.h (TARGET_SWITCHES): Add some initial prolog-scheduling
5035 options, that don't do anything yet.
5036 (MASK_SCHED_PROLOG): New macro.
5037 (MASK_SCHED_EPILOG): New macro.
5038 (TARGET_SCHED_PROLOG): New macro.
5039 (TARGET_SCHED_EPILOG): New macro.
5041 2000-01-04 Geoff Keating <geoffk@cygnus.com>
5043 * rs6000.c: Correct comment, the `minimal' TOCs are actually
5044 one per translation unit, not one per function.
5045 (output_toc): Also do duplicate constant elimination
5046 for per-translation-unit TOCs.
5048 * rs6000.md (nonlocal_goto_receiver): Put it back as before. Add
5049 a comment explaining _exactly_ when this pattern gets used.
5050 (builtin_setjmp_receiver): New pattern for better clarity.
5051 (init_v4_pic): Move it into a section dealing with TOC registers.
5053 1999-12-30 Geoff Keating <geoffk@cygnus.com>
5055 * rs6000.c (toc_hash_table): New variable.
5056 (rs6000_hash_constant): New function.
5057 (toc_hash_function): New function.
5058 (toc_hash_eq): New function.
5059 (toc_hash_mark_entry): New function.
5060 (toc_hash_mark_table): New function.
5061 (output_toc): Don't output duplicate TOC entries in
5063 (rs6000_add_gc_roots): Add the hash table as a GC root.
5064 * t-aix43: Move AR_FOR_TARGET and CLIB here from x-aix43,
5065 where they clearly shouldn't be. This may need to be fixed
5066 later when there is a GNU ar for AIX.
5067 * x-aix43: Don't define CLIB or AR_FOR_TARGET.
5068 Don't define BOOT_LDFLAGS as it is now not necessary.
5070 1999-12-29 Geoff Keating <geoffk@cygnus.com>
5072 * rs6000.c (rs6000_build_va_list): Use 'char *' rather than 'void *'
5073 for va_list on AIX. Use unsigned_char_type_node rather than
5074 constructing our own version on svr4.
5076 1999-12-17 Geoff Keating <geoffk@cygnus.com>
5078 * tramp.asm (__trampoline_size): Delete CYGNUS LOCAL comment,
5079 since patently it's not.
5081 1999-12-08 Geoff Keating <geoffk@cygnus.com>
5083 * config/rs6000/rs6000.md (nonlocal_goto_receiver): Turn into
5084 define_expand/define_insn pair, and handle restore of the
5085 SVR4 -fpic register.
5087 Wed Mar 15 15:43:38 2000 Jeffrey A Law (law@cygnus.com)
5089 * acconfig.h (HAVE_GAS_WEAK): New define.
5090 * configure.in (assembler weak support): Check for .weak support.
5091 * config.in, configure: Rebuilt.
5092 * pa/som.h (MAKE_DECL_ONE_ONLY, ASM_WEAKEN_LABEL): Only define if
5093 HAVE_GAS_WEAK is defined.
5095 2000-03-15 Nick Clifton <nickc@cygnus.com>
5097 * config/arm/arm.c (arm_output_epilogue): Do not pass %c to
5100 2000-03-15 Zack Weinberg <zack@wolery.cumb.org>
5102 * cppfiles.c (open_include_file): New function.
5103 (find_include_file, cpp_read_file): Use it.
5105 2000-03-15 Jason Merrill <jason@casey.cygnus.com>
5107 * cpphash.c (dump_hash_helper): Take the slot, not the element.
5109 Wed Mar 15 14:28:54 2000 Jason Eckhardt <jle@cygnus.com>
5111 * flow.c (verify_flow_info): Check for unconditional return.
5113 Wed Mar 15 11:34:27 2000 Jim Wilson <wilson@cygnus.com>
5115 * config/ia64/ia64.md (restore_stack_nonlocal): New.
5116 * config/ia64/lib1funcs.asm (__ia64_nonlocal_goto): Delete padding nop.
5117 (__ia64_restore_stack_nonlocal): New.
5118 * config/ia64/t-ia64 (LIB1ASMFUNCS): Add __restore_stack_nonlocal.
5120 2000-03-15 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
5122 * cpphash.c (collect_formal_parameters): Do not complain about
5123 parameter names that just start with `__VA_ARGS__'.
5125 Wed Mar 15 13:26:58 MET 2000 Jan Hubicka <jh@suse.cz>
5127 * i386.md (movhi_1): Promote movw imm, reg to movl imm, reg and
5128 movw reg, reg to movzwl reg, reg on PARTIAL_REGISTER_STALL machines.
5129 * i386.c (pentiumpro_cost): Set mul cost to 4.
5130 (x86_use_movx): Set for PPro.
5132 Wed Mar 15 13:07:05 MET 2000 Jan Hubicka <jh@suse.cz>
5134 * i386.md (ix86_compute_frame_size): stack_alignment_needed is
5135 STACK_BOUNDARY for empty frames now.
5137 2000-03-14 Mark Mitchell <mark@codesourcery.com>
5139 * stor-layout.c (layout_union): Remove.
5140 (layout_union_field): New function, split out from layout_union.
5141 (finish_union_layout): Likewise.
5142 (layout_field): Handle unions by calling layout_union_field.
5143 (finish_record_layout): Handle unions.
5144 (layout_type): Combine RECORD_TYPE, UNION_TYPE, and
5145 QUAL_UNION_TYPE handling.
5147 Wed Feb 23 13:00:06 CET 2000 Jan Hubicka <jh@suse.cz>
5149 * flow.c (fixup_reorder_chain): Avoid double labels in the basic block;
5150 end of basic block is jump_insn, not barrier; use create_basic_block
5151 instead of creating basic block by hand.
5153 2000-03-14 Jason Eckhardt <jle@cygnus.com>
5155 * flow.c (reorder_basic_blocks): Account for barriers when writing
5156 over NEXT_INSN (last_bb->end).
5157 (verify_flow_info): Add check for missing barriers.
5159 2000-03-14 Greg McGary <gkm@gnu.org>
5161 * c-lex.h (enum rid): Add RID_BOUNDED & RID_UNBOUNDED.
5162 * c-lex.c (init_lex): Handle RID_BOUNDED & RID_UNBOUNDED.
5163 * c-parse.gperf (__bounded, __bounded__, __ptrbase, __ptrbase__,
5164 __ptrextent, __ptrextent__, __ptrvalue, __ptrvalue__,
5165 __unbounded, __unbounded__): New keywords.
5166 * c-parse.in (PTR_VALUE PTR_BASE PTR_EXTENT): New tokens.
5167 * c-parse.y, c-parse.c, c-parse.h: Regenerate.
5168 * objc/objc-parse.y, objc/objc-parse.c: Regenerate.
5170 2000-03-14 Bernd Schmidt <bernds@cygnus.co.uk>
5172 * cselib.h: New file.
5173 * alias.c: Include "cselib.h".
5174 (fixed_scalar_and_varying_struct_p): Accept the addresses of the
5175 MEMs as two new arguments.
5176 (get_addr): New static function.
5177 (find_base_term): Handle VALUEs.
5178 (memrefs_conflict_p): Likewise.
5179 (true_dependence): Call get_addr on the addresses.
5180 Call fixed_scalar_and_varying_struct_p with addresses that have been
5181 passed through get_addr and canon_rtx.
5182 (write_dependence_p): Move DIFFERENT_ALIAS_SETS_P test for consistency
5183 with true_dependence.
5184 Call get_addr on the addresses; don't call canon_rtx on the MEMs.
5185 * loop.c: Include "cselib.h".
5186 (load_mems): Process extended basic block that enters the loop with
5187 cselib. Use that information to change initialization of the shadow
5188 register so that a constant equivalence is seen by later passes.
5189 * reload1.c: Include "cselib.h".
5190 (reload_cse_invalidate_regno): Delete function.
5191 (reload_cse_mem_conflict_p): Likewise.
5192 (reload_cse_invalidate_mem): Likewise.
5193 (reload_cse_invalidate_rtx): Likewise.
5194 (reload_cse_regno_equal_p): Likewise.
5195 (reload_cse_check_clobber): Likewise.
5196 (reload_cse_record_set): Likewise.
5197 (reg_values): Delete static variable.
5198 (invalidate_regno_rtx): Likewise.
5199 (reload_cse_delete_noop_set): New static function.
5200 (reload_cse_simplify): New static function, broken out of
5202 (reload_cse_noop_set_p): Delete unused argument INSN.
5203 Just call rtx_equal_for_cselib_p on set source and destination.
5204 (reload_cse_regs_1): Break out some code into reload_cse_simplify and
5205 reload_cse_delete_noop_set. Delete code to keep track of values; use
5206 cselib functions instead. Delete code to push/pop obstacks.
5207 (reload_cse_simplify_set): Use cselib to find equivalent values.
5208 Delete code to push/pop obstacks.
5209 (reload_cse_simplify_operands): Likewise.
5210 * rtl.def (VALUE): New rtx code.
5211 * rtl.h (union rtunion_def): New elt rt_cselib.
5212 (X0CSELIB, CSELIB_VAL_PTR): New macros.
5213 * simplify_rtx.c: Include "ggc.h", "obstack.h", "cselib.h".
5214 (new_elt_list, new_elt_loc_list, unchain_one_value, clear_table,
5215 unchain_one_elt_list, unchain_one_elt_loc_list, check_useless_values,
5216 discard_useless_locs, discard_useless_values, entry_and_rtx_equal_p,
5217 hash_rtx, new_cselib_val, add_mem_for_addr, get_value_hash,
5218 cselib_lookup_mem, cselib_subst_to_values, cselib_invalidate_regno,
5219 cselib_mem_conflict_p, cselib_invalidate_mem, cselib_invalidate_rtx,
5220 cselib_record_set, cselib_record_sets): New static functions.
5221 (cselib_lookup, cselib_update_varray_sizes, cselib_init,
5222 cselib_finish, cselib_process_insn, rtx_equal_for_cselib_p,
5223 references_value_p): New functions.
5224 (MAX_USELESS_VALUES, REG_VALUES): New macros.
5225 (table, cselib_current_insn, next_unknown_value, cselib_nregs,
5226 n_useless_values, reg_values, callmem, cselib_obstack,
5227 cselib_startobj, empty_vals, empty_elt_lists, empty_elt_loc_lists):
5228 New static variables.
5229 * varray.h (union varray_data_tag): New elt te.
5230 (VARRAY_ELT_LIST_INIT, VARRAY_ELT_LIST): New macros.
5231 * Makefile.in (reload1.o, loop.o, simplify-rtx.o, alias.o): Update
5234 2000-03-14 Nick Clifton <nickc@cygnus.com>
5236 * gcc.c (do_spec_1): Catch the case where %* is used in a
5237 substitution pattern, but it has not been initialised.
5238 Issue a meaningful error message if an unrecognised operator
5239 is encountered in a spec string.
5241 2000-03-14 Richard Earnshaw <rearnsha@arm.com>
5243 * function.c (prepare_function_start): Correctly initialize
5244 cfun->stack_alignment_needed.
5246 2000-03-14 Zack Weinberg <zack@wolery.cumb.org>
5248 * cppfiles.c (find_include_file): Don't assume nshort is a
5251 Tue Mar 14 08:42:21 2000 Jeffrey A Law (law@cygnus.com)
5253 * configure.in (hppa configurations): Add pa32-regs.h to the
5254 list of tm files as appropriate.
5255 * configure: Rebuilt.
5256 * pa.c (compute_frame_size): Remove explicit knowledge about FP
5258 (hppa_expand_prologue, hppa_expand_epilogue): Likewise.
5259 (fmpyaddoperands, fmpysuboperands): Likewise.
5260 * pa.h: Remove various definitions which depend on knowing
5261 how registers are numbered.
5262 * pa32-regs.h: New file with PA32 register numbering specific
5265 2000-03-14 Richard Henderson <rth@cygnus.com>
5267 * regmove.c (combine_stack_adjustments): New.
5268 (stack_memref_p, single_set_for_csa): New.
5269 (free_csa_memlist, record_one_stack_memref): New.
5270 (try_apply_stack_adjustment): New.
5271 (combine_stack_adjustments_for_block): New.
5272 * rtl.h (combine_stack_adjustments): Declare.
5273 * toplev.c (rest_of_compilation): Call it.
5275 * i386.md: Revert 2000-01-16 change.
5277 2000-03-14 Martin v. Löwis <loewis@informatik.hu-berlin.de>
5279 * gccbug.in: Add web category, gcc specific classes.
5281 2000-03-14 Nathan Sidwell <nathan@codesourcery.com>
5283 * stor-layout.c (finalize_record_size): Fix typo.
5285 2000-03-14 Stan Shebs <shebs@apple.com>
5287 * c-typeck.c (c_alignof): Error on incomplete types.
5288 * extend.texi (Alignment): Document this.
5290 2000-03-13 Zack Weinberg <zack@wolery.cumb.org>
5292 * cppfiles.c: Include mkdeps.h.
5293 (find_include_file, read_include_file): Remove _cpp_ prefix
5294 from name, make static.
5295 (_cpp_execute_include): New function, broken out of
5298 * cpplib.c: Don't include mkdeps.h.
5299 (struct directive): Remove type field. Reorder entries. The
5300 function takes only one argument.
5301 (struct if_stack): Make type field an int.
5302 (directive_table): Rename to dtable. Generate it, the
5303 prototypes of the directive handlers, and the enum for the
5304 directive numbers, from a template macro.
5305 (do_ifndef, do_include_next, do_import): New functions.
5306 (do_define, do_include, do_endif, do_ifdef, do_if, do_else,
5307 do_undef, do_line, do_elif, do_error, do_pragma, do_warning,
5308 do_ident, do_assert, do_unassert, do_sccs): Take only one
5310 (do_sccs): Define always, but alter behavior based on
5312 (_cpp_handle_directive, consider_directive_while_skipping):
5313 Restructure for new directive table layout.
5315 (pass_thru_directive): Take a directive number, not a pointer
5316 to a struct directive.
5317 (parse_include): New function, broken out of do_include.
5318 (do_include, do_import, do_include_next): Use parse_include
5319 and _cpp_execute_include.
5320 (do_elif, do_else): Test for T_ELSE specifically when checking
5321 for #elif/#else after #else.
5322 (parse_ifdef): New function, broken out of do_ifdef.
5323 (validate_else): Expect a name arg without a leading #.
5324 (if_directive_name): Delete.
5325 (cpp_define, cpp_assert, cpp_undef, cpp_unassert): Call
5326 directive handlers with only one argument.
5328 * cpphash.h: Update prototypes.
5329 (enum node_type): Remove entries for directives.
5330 * Makefile.in: Update dependencies.
5332 * cpphash.c (dump_hash_helper): Only dump nodes of type
5333 T_MACRO. Emit a newline after each definition.
5335 2000-03-14 Martin v. Löwis <loewis@informatik.hu-berlin.de>
5337 * gccbug.in: New file.
5338 * configure.in (all_outputs): Add gccbug.
5339 * Makefile.in (install-common): Install gccbug.
5340 (GCCBUG_INSTALL_NAME): New variable.
5341 * configure: Rebuilt.
5343 2000-03-13 Jason Merrill <jason@casey.cygnus.com>
5345 * function.c (put_var_into_stack): Use type_for_mode to calculate
5346 part_type. Use MEM_SET_IN_STRUCT_P.
5347 * expr.c (store_field): Handle CONCAT.
5348 (store_constructor): Use fields_length.
5349 * tree.c (fields_length): New fn.
5350 * tree.h: Declare it.
5352 2000-03-13 Zack Weinberg <zack@wolery.cumb.org>
5354 * Makefile.in (LIBCPP_OBJS): Add cpplex.o.
5355 (cpplex.o): New target.
5356 * po/POTFILES.in: Add cpplex.c.
5358 * cpplex.c (_cpp_grow_token_buffer, null_cleanup,
5359 cpp_push_buffer, cpp_pop_buffer, cpp_scan_buffer,
5360 cpp_expand_to_buffer, cpp_buf_line_and_col, cpp_file_buffer,
5361 skip_block_comment, skip_line_comment, skip_comment,
5362 copy_comment, _cpp_skip_hspace, _cpp_skip_rest_of_line,
5363 _cpp_parse_name, skip_string, parse_string,
5364 _cpp_parse_assertion, cpp_get_token, cpp_get_non_space_token,
5365 _cpp_get_directive_token, find_position,
5366 _cpp_read_and_prescan, _cpp_init_input_buffer): Move here.
5367 (maybe_macroexpand, _cpp_lex_token): New functions.
5369 * cpplib.c (SKIP_WHITE_SPACE, eval_if_expr, parse_set_mark,
5370 parse_goto_mark): Delete.
5371 (_cpp_handle_eof): New function.
5372 (_cpp_handle_directive): Rename from handle_directive.
5373 (_cpp_output_line_command): Rename from output_line_command.
5374 (do_if, do_elif): Call _cpp_parse_expr directly.
5375 * cppfiles.c (_cpp_read_include_file): Don't call
5376 init_input_buffer here.
5377 * cpphash.c (quote_string): Move here, rename _cpp_quote_string.
5378 * cppexp.c (_cpp_parse_expr): Diddle parsing_if_directive
5379 here; pop the token_buffer and skip the rest of the line here.
5380 * cppinit.c (cpp_start_read): Call _cpp_init_input_buffer
5383 * cpphash.h (CPP_RESERVE, CPP_IS_MACRO_BUFFER, ACTIVE_MARK_P):
5385 (CPP_SET_BUF_MARK, CPP_GOTO_BUF_MARK, CPP_SET_MARK,
5386 CPP_GOTO_MARK): New macros.
5387 (_cpp_quote_string, _cpp_parse_name, _cpp_skip_rest_of_line,
5388 _cpp_skip_hspace, _cpp_parse_assertion, _cpp_lex_token,
5389 _cpp_read_and_prescan, _cpp_init_input_buffer,
5390 _cpp_grow_token_buffer, _cpp_get_directive_token,
5391 _cpp_handle_directive, _cpp_handle_eof,
5392 _cpp_output_line_command): Prototype them here.
5393 * cpplib.h (enum cpp_token): Add CPP_MACRO.
5394 (CPP_RESERVE, get_directive_token, cpp_grow_buffer,
5395 quote_string, output_line_command): Remove.
5397 2000-03-13 Bernd Schmidt <bernds@cygnus.co.uk>
5399 * stmt.c (expand_end_case): RANGE may be signed, and when checking
5400 whether it is too large we must also verify that it isn't negative.
5402 2000-03-13 Jakub Jelinek <jakub@redhat.com>
5404 * config/sparc/sparc.md: Remove all traces of TARGET_LIVE_G0.
5405 (movsi_zero_liveg0): Remove.
5406 (movsf_insn_novis_liveg0): Remove.
5408 (negsi2_not_liveg0): Rename to negsi2.
5409 (one_cmplsi2): Remove.
5410 (one_cmplsi2_not_liveg0): Rename to one_cmplsi2.
5411 (one_cmplsi2_liveg0): Remove.
5412 * config/sparc/sparc.h (TARGET_LIVE_G0, TARGET_BROKEN_SAVERESTORE,
5413 MASK_LIVE_G0, MASK_BROKEN_SAVERESTORE): Remove.
5414 (CONDITIONAL_REGISTER_USAGE): Remove TARGET_LIVE_G0 if.
5415 (PREDICATE_CODES): Remove zero_operand.
5416 * config/sparc/sparc.c: Remove all traces of TARGET_LIVE_G0 and
5417 TARGET_BROKEN_SAVERESTORE.
5418 (zero_operand): Remove.
5419 * config/sparc/splet.h (SUBTARGET_SWITCHES): Remove -mlive-g0,
5420 -mno-live-g0, -mbroken-saverestore and -mno-broken-saverestore
5422 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
5423 * config/sparc/linux-aout.h (TARGET_LIVE_G0,
5424 TARGET_BROKEN_SAVERESTORE): Remove.
5425 * config/sparc/linux.h (TARGET_LIVE_G0, TARGET_BROKEN_SAVERESTORE):
5427 * config/sparc/linux64.h (TARGET_LIVE_G0, TARGET_BROKEN_SAVERESTORE):
5429 * config/sparc/sol2.h (TARGET_LIVE_G0, TARGET_BROKEN_SAVERESTORE):
5432 * config/sparc/sparc.md (return_df_no_fpu): New pattern.
5434 2000-03-13 Zack Weinberg <zack@wolery.cumb.org>
5436 * cpplib.c (do_pragma_implementation): Fix off-by-one error
5437 truncating a string. Don't assume tokens are nul terminated.
5438 Problem noted by Andreas Jaeger <aj@suse.de>
5440 2000-03-13 Jason Merrill <jason@casey.cygnus.com>
5442 * dwarf2out.c (add_name_and_src_coords_attributes): Only add
5443 DW_AT_MIPS_linkage_name for TREE_PUBLIC decls.
5444 (ASM_OUTPUT_DWARF_ADDR_CONST): Don't output trailing newline.
5446 2000-03-13 Richard Earnshaw <rearnsha@arm.com>
5448 * stor-layout.c (new_record_layout_info): Fix typo inside ifdef
5449 STRUCTURE_SIZE_BOUNDARY.
5451 2000-03-13 Mark Mitchell <mark@codesourcery.com>
5453 * tree.h (record_layout_info_s): New structure.
5454 (record_layout_info): New type.
5455 (new_record_layout_info): New function.
5456 (layout_field): Likewise.
5457 (finish_record_layout): Likewise.
5458 * stor-layout.c (layout_record): Remove.
5459 (new_record_layout_info): New function.
5460 (layout_field): New function, broken out from layout_record.
5461 (finalize_record_size): Likewise.
5462 (compute_record_mode): Likewise.
5463 (finalize_type_size): New function, broken out from layout_type.
5464 (finish_record_layout): Likewise.
5465 (layout_type): Use them.
5467 2000-03-12 Zack Weinberg <zack@wolery.cumb.org>
5469 * cpphash.c: Don't include version.h.
5470 (special_symbol) [case T_VERSION]: Look for the string in
5471 hp->value.cpval; don't use version_string.
5472 * cppinit.c (initialize_builtins): Set hp->value.cpval for
5473 __VERSION__ to version_string.
5474 * Makefile.in (cpphash.o): Update deps.
5476 2000-03-12 Zack Weinberg <zack@wolery.cumb.org>
5478 Convert cpplib to use libiberty/hashtab.c.
5480 * cpplib.h (struct cpp_reader): Make hashtab and
5481 all_include_files of type 'struct htab *'. Delete HASHSIZE
5482 and ALL_INCLUDE_HASHSIZE macros.
5484 * cpphash.h: Update prototypes.
5485 (struct hashnode): Remove next, prev, and bucket_hdr members.
5486 Make length a size_t. Add hash member.
5487 (struct ihash): Remove next member. Add hash member. Make
5488 name a flexible array member.
5490 * cppfiles.c: Include hashtab.h.
5491 (include_hash): Delete.
5492 (IHASHSIZE): New macro.
5493 (hash_IHASH, eq_IHASH, _cpp_init_include_hash): New functions.
5494 (cpp_included): Do the hash lookup here.
5495 (_cpp_find_include_file): Rewrite.
5496 (cpp_read_file): Put the "fake" hash entry into the hash
5497 table. Honor the control_macro, if it turns out we've seen
5498 the file before. Don't push the buffer here.
5499 (_cpp_read_include_file): Push the buffer here.
5500 (OMODES): New macro. Use it whenever we call open(2).
5502 * cpphash.c: Include hashtab.h.
5503 (hash_HASHNODE, eq_HASHNODE, del_HASHNODE, dump_hash_helper,
5504 _cpp_init_macro_hash, _cpp_dump_macro_hash, _cpp_make_hashnode,
5505 _cpp_lookup_slot): New functions.
5506 (HASHSIZE): new macro.
5507 (hashf, _cpp_install, _cpp_delete_macro): Delete.
5508 (_cpp_lookup): Use hashtab.h routines.
5510 * cppinit.c: Include hashtab.h.
5511 (cpp_reader_init): Call _cpp_init_macro_hash and
5512 _cpp_init_include_hash. Don't allocate hashtab directly.
5513 (cpp_cleanup): Just call htab_delete on pfile->hashtab and
5514 pfile->all_include_files.
5515 (initialize_builtins): Use _cpp_make_hashnode and
5516 htab_find_slot to add hash entries.
5517 (cpp_finish): Just call _cpp_dump_macro_hash.
5518 * cpplib.c: Include hashtab.h.
5519 (do_define): Use _cpp_lookup_slot and _cpp_make_hashnode to
5520 create hash entries.
5521 (do_pragma_poison, do_assert): Likewise.
5522 (do_include): Don't push the buffer here. Don't increment
5523 system_include_depth unless _cpp_read_include_file succeeds.
5524 (do_undef, do_unassert): Use _cpp_lookup_slot and htab_clear_slot
5526 (do_pragma_implementation): Use alloca to create copy.
5528 * Makefile.in: Update dependencies.
5530 2000-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5532 * cppinit.c (cl_directive_handler): More K&R fixing.
5534 Sat Mar 11 23:54:26 2000 Jim Wilson <wilson@cygnus.com>
5536 * config/ia64/ia64.c (ia64_compute_frame_size): Align size to
5538 * config/ia64/ia64.h (REGISTER_MOVE_COST): Add missing parentheses.
5540 2000-03-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5542 * cppinit.c (no_arg, no_ass, no_dir, no_fil, no_mac, no_pth):
5543 Change from char[] to macros.
5545 2000-03-12 Neil Booth <NeilB@earthling.net>
5547 * cppinit.c (cpp_start_read): Update indirect function
5550 Sat Mar 11 16:18:12 2000 Jim Wilson <wilson@cygnus.com>
5552 * config/ia64/ia64.h (ADDITIONAL_REGISTER_NAMES): Fix typo in loc79
5555 * config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
5556 config/ia64/ia64.md, config/ia64/xm-ia64.h: Fix copyright messages.
5558 2000-03-11 Neil Booth <NeilB@earthling.net>
5560 * cppinit.c (struct pending option): Replace undef with a
5561 pointer to a directive handling routine.
5562 (struct cpp_pending): Replace separate assert_ and define_
5563 lists with one directive_ list.
5564 (new_pending_define): Rename new_pending_directive. Extra
5565 argument is the directive's handling routine.
5566 (handle_option): Update to use new_pending_directive.
5568 2000-03-11 Neil Booth <NeilB@earthling.net>
5570 * cppfiles.c (file_cleanup, _cpp_find_include_file,
5571 remap_filename, _cpp_read_include_file, actual_directory,
5572 hack_vms_include_specification): Replace bcopy(), index() etc
5573 calls. Add casts to some allocations. Make some variables
5574 pointers to const [unsigned] char.
5575 * cpphash.c (_cpp_install, macro_cleanup, collect_expansion,
5576 collect_formal_parameters): Similarly.
5577 * cppinit.c (struct pending_option, append_include_chain,
5578 cpp_options_init, cpp_reader_init, initialize_standard_includes,
5579 cpp_start_read, new_pending_define, handle_option): Similarly.
5580 * cpplib.c (cpp_define, copy_comment, do_define, do_include,
5581 do_undef, do_error, do_warning, do_pragma, do_pragma_once,
5582 do_pragma_implementation, detect_if_not_defined,
5583 do_ifdef, skip_if_group, cpp_get_token, parse_string,
5584 do_assert, do_unassert): Similarly.
5585 * cpplib.h (cpp_buffer, cpp_options): Update types. Update
5586 function prototypes.
5587 * mkdeps.c (deps_add_target, deps_add_dep): cast allocations.
5589 2000-03-10 Richard Henderson <rth@cygnus.com>
5591 * builtins.c (expand_builtin_strlen): Revert last change.
5592 Use emit_insn_before if we're at the beginning of a sequence.
5594 2000-03-10 Jason Merrill <jason@casey.cygnus.com>
5596 * builtins.c (expand_builtin_strlen): Make sure that we have something
5597 at the beginning of the sequence.
5599 * toplev.c (rest_of_compilation): Also set TREE_NOTHROW for
5602 * invoke.texi (C++ Dialect Options): Document -fno-enforce-eh-specs.
5604 2000-03-10 Richard Henderson <rth@cygnus.com>
5606 * except.c (can_throw): Use INTVAL on a CONST_INT.
5607 (reachable_handlers): Likewise.
5608 * flow.c (count_basic_blocks, find_basic_blocks_1): Likewise.
5610 2000-03-10 Andreas Jaeger <aj@suse.de>
5612 * config/mips/linux.h: Undefine MD_EXEC_PREFIX and
5613 MD_STARTFILE_PREFIX since those are not needed on linux.
5614 (ASM_FILE_START): New, from mips/gnu.h.
5616 2000-03-09 Richard Henderson <rth@cygnus.com>
5617 Alex Samuel <samuel@codesourcery.com> and others
5619 * Makefile.in (ssa.o): New rule.
5621 (STAGESTUFF): Add *.ssa and *.ussa.
5622 (mostlyclean): Delete *.ssa, *.ussa, */*.ssa, */*.ussa.
5623 * rtl.def (PHI): New RTL expression.
5624 * rtl.h (clear_log_links): New declaration.
5625 (convert_to_ssa): Likewise.
5626 (convert_from_ssa): Likewise.
5627 * flow.c (split_edge): If the entry node falls through to the
5628 split edge's source block, split the entry edge.
5629 (clear_log_links): New function.
5630 * toplev.c (ssa_dump): New variable.
5631 (flag_ssa): Likewise.
5632 (f_options): Add "ssa".
5633 (compile_file): Create SSA dump files.
5634 (rest_of_compilation): Go to and from SSA if enabled.
5635 (decide_d_option): Handle -de for SSA dump files.
5638 Thu Mar 9 20:01:38 2000 Jim Wilson <wilson@cygnus.com>
5640 * expr.c (expand_assignment): For a CALL_EXPR, special case PARM_DECL
5643 2000-03-09 Benjamin Kosnik <bkoz@cygnus.com>
5645 * config/alpha/linux.h (WCHAR_TYPE): Make consistent.
5647 Thu Mar 9 18:10:02 2000 Jeffrey A Law (law@cygnus.com)
5649 * config/pa/pa-hpux10.h (LIB_SPEC): Correct typo in !p case.
5650 (MD_STARTFILE_PREFIX_1): New macro.
5652 2000-03-09 Robert Lipe <robertl@sco.com>
5654 * config/ia64/ia64.c: Include system.h.
5656 2000-03-09 Jason Merrill <jason@casey.cygnus.com>
5658 * except.c (nothrow_function_p): If -fno-exceptions, just return.
5659 (init_eh_nesting_info): Likewise.
5661 * tree.h (struct tree_common): Rename raises_flag to nothrow_flag.
5662 (TREE_NOTHROW): Rename from TREE_RAISES.
5663 * toplev.c (rest_of_compilation): Set it.
5664 * print-tree.c (print_node): Adjust.
5665 * tree.c (stabilize_reference, build, build1): Don't set TREE_RAISES.
5666 (stabilize_reference_1, get_unwidened, get_narrower): Likewise.
5667 * calls.c (emit_call_1): Add 'nothrow' parm. Add
5668 REG_EH_REGION note as appropriate.
5669 (libfunc_nothrow): New fn.
5670 (emit_library_call, emit_library_call_value): Use it.
5671 (expand_call): Check TREE_NOTHROW.
5673 * varasm.c (make_decl_rtl): Skip initial '*' when setting
5674 DECL_ASSEMBLER_NAME.
5676 2000-03-09 Andreas Jaeger <aj@suse.de>
5678 * mips/linux.h (NO_IMPLICIT_EXTERN_C): Define.
5679 (TARGET_MEM_FUNCTIONS): Define.
5681 2000-03-09 Jason Merrill <jason@casey.cygnus.com>
5683 * i386.c (ix86_valid_type_attribute_p): Use compare_tree_int.
5685 * except.c (can_throw): See through a SEQUENCE.
5686 (nothrow_function_p): New fn.
5687 * except.h: Declare it.
5688 * function.c (current_function_nothrow): New var.
5689 (prepare_function_start): Initialize it.
5690 * output.h: Declare it.
5691 * toplev.c (rest_of_compilation): Set it.
5692 * dwarf2out.c (dwarf2out_begin_prologue): Use it.
5694 2000-03-09 Zack Weinberg <zack@wolery.cumb.org>
5696 * cpphash.c (collect_formal_parameters): strncmp returns 0 for
5697 match. (cpp_compare_defs): Count the nul separator when
5698 advancing over argument names.
5700 2000-03-09 Bernd Schmidt <bernds@cygnus.co.uk>
5702 * recog.c (preprocess_constraints): Matching constraints affect
5703 same alternative/different operand, not same operand/different
5706 * reload1.c (eliminate_regs_in_insn): Handle additions of eliminable
5707 register and a constant specially.
5709 2000-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5711 * libgcc2.h: New file.
5712 * libgcc2.c: Move macros, typedefs and prototypes to libgcc2.h.
5714 Wed Mar 8 16:19:42 2000 Jim Wilson <wilson@cygnus.com>
5716 * configure.in (ia64*-*-elf*, ia64*-*-linux*): New.
5717 * configure: Regenerate.
5720 2000-03-08 Zack Weinberg <zack@wolery.cumb.org>
5722 * Makefile.in (LIBCPP_DEPS): New macro.
5723 (cpplib.o, cpphash.o, cpperror.o, cppexp.o, cppfiles.o): Use
5725 * cpperror.c: Include cpphash.h.
5726 * cppexp.c: Include cpphash.h. Remove MULTIBYTE_CHARS
5728 (lex): Don't use CPP_WARN_UNDEF.
5729 (_cpp_parse_expr): Return an int, the truth value.
5730 * cppfiles.c: Include cpphash.h.
5731 (_cpp_merge_include_chains): Move to cppinit.c and make static.
5732 * cppinit.c (include_defaults_array): Disentangle.
5733 (cpp_cleanup): Don't free the if stack here.
5734 (cpp_finish): Pop off all buffers, not just one.
5735 * cpplib.c (eval_if_expr): Return int.
5736 (do_xifdef): Rename do_ifdef.
5737 (handle_directive): Don't use CPP_PREPROCESSED.
5738 (cpp_get_token): Don't use CPP_C89.
5739 * fix-header.c: Don't use CPP_OPTIONS.
5741 * cpplib.h: Move U_CHAR, enum node_type, struct
5742 file_name_list, struct ihash, is_idchar, is_idstart,
5743 is_numchar, is_numstart, is_hspace, is_space, CPP_BUF_PEEK,
5744 CPP_BUF_GET, CPP_FORWARD, CPP_PUTS, CPP_PUTS_Q, CPP_PUTC,
5745 CPP_PUTC_Q, CPP_NUL_TERMINATE, CPP_NUL_TERMINATE_Q,
5746 CPP_BUMP_BUFFER_LINE, CPP_BUMP_LINE, CPP_PREV_BUFFER,
5747 CPP_PRINT_DEPS, CPP_TRADITIONAL, CPP_PEDANTIC, and prototypes
5748 of _cpp_simplify_pathname, _cpp_find_include_file,
5749 _cpp_read_include_file, and _cpp_parse_expr to cpphash.h.
5750 Move struct if_stack to cpplib.c. Move struct cpp_pending to
5752 Change all uses of U_CHAR to be unsigned char instead.
5753 Delete CPP_WARN_UNDEF, CPP_C89, and CPP_PREPROCESSED.
5755 2000-03-08 Jason Merrill <jason@casey.cygnus.com>
5757 * dwarf2out.c (dw_fde_struct): Add 'nothrow'.
5758 (dwarf2out_begin_prologue): Set it.
5759 (output_call_frame_info): Don't emit EH unwind info for leaves.
5761 * flow.c (count_basic_blocks, find_basic_blocks_1): A rethrow
5762 can occur outside of an EH region.
5763 * except.c: Correct comments about rethrow behavior.
5764 (rethrow_symbol_map): Do nothing if !flag_new_exceptions.
5766 2000-03-08 Andrew MacLeod <amacleod@cygnus.com>
5768 * flow.c (make_edges): Always call make_eh_edge for calls.
5770 2000-03-08 Zack Weinberg <zack@wolery.cumb.org>
5772 * cpplib.h (parse_underflow_t, CPP_NULL_BUFFER): Delete.
5773 (struct cpp_buffer): Remove fname and underflow fields.
5774 (struct cpp_reader): Remove get_token field.
5775 (struct include_hash): Rename to struct ihash. Add typedef to
5777 (struct if_stack): Remove fname field.
5778 (IF_STACK_FRAME): Rename to IF_STACK.
5780 * cpperror.c (print_containing_files): Trust that there are no
5781 macro buffers below the top file buffer.
5782 * cppfiles.c: Replace all references to 'struct include_hash'
5783 with 'IHASH'. Rename initialize_input_buffer to
5784 init_input_buffer. Don't set or reference cpp_buffer->fname,
5785 use buffer->ihash->name instead.
5786 * cpphash.c (special_symbol): Use cpp_file_buffer. Use NULL
5787 not CPP_NULL_BUFFER.
5788 * cppinit.c: Use NULL not CPP_NULL_BUFFER, IF_STACK not
5789 IF_STACK_FRAME, IHASH not struct include_hash.
5790 * cpplib.c: Rename eval_if_expression to eval_if_expr. Remove
5791 null_underflow. Use IF_STACK not IF_STACK_FRAME, IHASH not
5792 struct include_hash, NULL not CPP_NULL_BUFFER. Remove all
5793 references to cpp_buffer->fname (delete entirely, or use
5794 ->ihash->name instead) and IF_STACK->fname.
5795 (cpp_push_buffer): Don't set new->underflow.
5796 (do_include): Use cpp_file_buffer.
5798 * cpphash.c (collect_formal_parameters): Remove duplicate
5799 increment of argslen. Pedwarn in C99 mode if __VA_ARGS__ is
5800 used as a macro argument name. Don't append "..." to namebuf
5801 for varargs macros. After we're done scanning, go through
5802 namebuf and make it NUL separated, not comma separated.
5803 (_cpp_compare_defs): Remove register tag from variables.
5804 Expect defn->argnames to be NUL separated.
5805 (_cpp_dump_definition): Expect defn->argnames to be NUL
5806 separated and in forward order.
5807 * cpphash.h: Update documentation of argnames field.
5809 2000-03-08 Richard Henderson <rth@cygnus.com>
5811 * builtins.c (expand_builtin_strlen): Be prepared for strlensi
5812 to fail. Don't pre-expand the source operand.
5814 * i386.md (strlensi): Initialize eoschar and align before use.
5816 2000-03-08 Jason Merrill <jason@casey.cygnus.com>
5818 * expr.c (expand_expr, case ARRAY_REF): Still check for missing
5819 CONSTRUCTOR element.
5821 2000-03-08 Gavin Romig-Koch <gavin@cetus.cygnus.com>
5823 * mips.c (mips_expand_prologue): If the last
5824 named argument is the vararg marker "va_list", treat it as
5825 an unnamed argument.
5827 2000-03-08 Clinton Popetz <cpopetz@cygnus.com>
5829 * dbxout.c (dbxout_parms): When correcting for promoted
5830 big-endian parameters, use the mode of the DECL_RTL rather
5831 than UNITS_PER_WORD.
5833 2000-03-08 Nathan Sidwell <nathan@codesourcery.com>
5835 * c-common.h (make_fname_decl): Declare.
5836 * c-common.c (make_fname_decl): Define.
5837 (declare_hidden_char_array): Remove.
5838 (declare_function_name): Use make_fname_decl.
5839 * c-decl.c (c_make_fname_decl): New function.
5840 (init_decl_processing): Set make_fname_decl.
5842 Tue Mar 7 23:50:31 2000 Jeffrey A Law (law@cygnus.com)
5844 * cccp.c (handle_directive): Initialize backslash_newlines_p.
5846 2000-03-07 Philipp Thomas <pthomas@suse.de>
5848 * po/POTFILES.in: Remove cppalloc.c from file list.
5850 2000-03-07 Steve Chamberlain <sac@pobox.com>
5852 * pj.c (pj_expand_prologue): current_function->args_info is
5853 now current_function_args_info.
5855 * pj.h (STORE_FLAG_VALUE, USER_LABEL_PREFIX,
5856 LOCAL_LABEL_PREFIX, ASM_GENERATE_INTERNAL_LABEL,
5857 ASM_OUTPUT_INTERNAL_LABEL, ASM_OUTPUT_SKIP): Define.
5859 2000-03-08 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
5861 * config/c4x/c4x.h (PUT_SDB_TYPE): Define so that the type info is
5862 output as hexadecimal rather than the default octal.
5864 2000-03-07 Zack Weinberg <zack@wolery.cumb.org>
5866 * cpphash.c (special_symbol): Fix thinko in previous commit.
5868 2000-03-07 Neil Booth <NeilB@earthling.net>
5870 * cppexp.c (struct operation, left_shift, right_shift,
5871 cpp_parse_expr): Change some "char"s to "U_CHAR"s, and some
5872 "int"s to "unsigned int"s.
5873 * cpplib.c (detect_if_not_defined, do_assert, do_unassert):
5875 * cpplib.h: Update for above.
5876 * mkdeps.c (deps_init, deps_calc_target): Cast pointers
5877 returned from allocations.
5879 * cppinit.c (opt_comp, parse_options): New functions.
5880 (handle_option): Use parse_option to parse a single command
5881 line option, that possibly takes an argument.
5882 (cpp_handle_options): Sort the array of command line options on
5883 first invocation (non-ASCII hosts only).
5884 (print_help): Update.
5886 2000-03-07 Zack Weinberg <zack@wolery.cumb.org>
5888 * mkdeps.c (munge): Fix off-by-one bug and inconsistencies in
5889 backslash counting loops. Problem noted by Matt Kraai <kraai@ghs.com>.
5891 * cppfiles.c (_cpp_find_include_file): Make sure ih->name is
5893 * cppinit.c (cpp_cleanup): Free imp->nshort also.
5895 * cpperror.c (cpp_print_containing_files,
5896 cpp_print_file_and_line, v_cpp_message): Rename to
5897 print_containing_files, print_file_and_line, and v_message.
5898 * cppexp.c (cpp_parse_expr, cpp_parse_escape, cpp_lex): Rename
5899 to _cpp_parse_expr, parse_escape, and lex.
5900 (parse_charconst): Remove broken multibyte support.
5901 * cppfiles.c (include_hash): Make static.
5902 (cpp_included): New function.
5903 (merge_include_chains, find_include_file, finclude,
5904 simplify_pathname): Rename to _cpp_merge_include_chains,
5905 _cpp_find_include_file, _cpp_read_include_file, and
5906 _cpp_simplify_pathname.
5907 * cpphash.c (cpp_lookup, free_definition, delete_macro,
5908 cpp_install, create_definition, macroexpand, compare_defs,
5909 dump_definition): Rename to _cpp_lookup, _cpp_free_definition,
5910 _cpp_delete_macro, _cpp_install, _cpp_create_definition,
5911 _cpp_macroexpand, _cpp_compare_defs, and _cpp_dump_definition.
5912 * cppinit.c (cpp_handle_option): Rename to handle_option, make
5914 * cpplib.c: Remove extern prototype of cpp_parse_expr.
5916 * cpphash.h: Update prototypes.
5917 * cpplib.h: Likewise. Prototype _cpp_parse_expr here.
5919 2000-03-07 Andrew Haley <aph@cygnus.com>
5921 * config/mips/mips.h (PTRDIFF_TYPE): Revert broken change;
5922 PTRDIFF_TYPE should be based solely on Pmode.
5925 2000-03-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5927 * rtl.h (rtunion_def): Constify member `rtstr'.
5928 (emit_line_note_after, emit_line_note, emit_line_note_force,
5929 emit_note, decode_asm_operands): Constify.
5931 * cse.c (canon_hash): Likewise.
5933 * dbxout.c (dbxout_block): Likewise.
5935 * diagnostic.c (file_and_line_for_asm, v_error_for_asm,
5936 v_warning_for_asm): Likewise.
5938 * dwarfout.c (function_start_label): Likewise.
5940 * emit-rtl.c (emit_line_note_after, emit_line_note, emit_note,
5941 emit_line_note_force): Likewise.
5943 * final.c (last_filename, asm_insn_count, final_scan_insn,
5944 output_source_line): Likewise.
5946 * function.h (struct emit_status): Likewise.
5948 * gcse.c (hash_expr_1): Likewise.
5950 * genattr.c (gen_attr, main): Likewise.
5952 * genattrtab.c (struct function_unit, current_alternative_string,
5953 write_attr_valueq, n_comma_elts, next_comma_elt, attr_eq,
5954 attr_numeral, check_attr_test, check_attr_value,
5955 convert_set_attr_alternative, convert_set_attr,
5956 compute_alternative_mask, simplify_by_exploding, gen_attr,
5957 gen_unit): Likewise.
5959 * genflags.c (gen_insn): Likewise.
5961 * gengenrtl.c (type_from_format): Likewise.
5963 * genopinit.c (gen_insn): Likewise.
5965 * genoutput.c (n_occurrences, process_template, process_template):
5968 * ggc-page.c (ggc_set_mark, ggc_mark_if_gcable, ggc_get_size):
5971 * ggc-simple.c (ggc_set_mark, ggc_mark_if_gcable, ggc_get_size):
5974 * ggc.h (ggc_mark_string, ggc_mark, ggc_mark_if_gcable,
5975 ggc_set_mark, ggc_get_size): Likewise.
5977 * objc/objc-act.c (build_module_descriptor, finish_objc): Likewise.
5979 * optabs.c (init_one_libfunc): Likewise.
5981 * output.h (assemble_start_function): Likewise.
5983 * recog.c (decode_asm_operands): Likewise.
5985 * toplev.c (rest_of_compilation): Likewise.
5987 * tree.h (emit_line_note_after, emit_line_note,
5988 emit_line_note_force): Likewise.
5990 * varasm.c (asm_output_bss, asm_output_aligned_bss,
5991 asm_emit_uninitialised, assemble_start_function,
5992 assemble_variable, const_hash, compare_constant_1,
5993 find_pool_constant, mark_constant_pool, assemble_alias): Likewise.
5995 * xcoffout.h (DBX_FINISH_SYMBOL): Likewise.
5997 * alpha/alpha.md (call_vms, call_value_vms): Likewise.
5999 * arm/aof.h (ASM_OUTPUT_ASCII): Likewise.
6001 * arm/aout.h (ASM_OUTPUT_ASCII): Likewise.
6003 * arm/arm-protos.h (output_ascii_pseudo_op, arm_dllexport_name_p,
6004 arm_dllimport_name_p): Likewise.
6006 * arm/arm.c (arm_encode_call_attribute, output_ascii_pseudo_op):
6009 * arm/arm.h (ASM_OUTPUT_MI_THUNK): Likewise.
6011 * arm/elf.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
6013 * arm/pe.c (arm_dllexport_name_p, arm_dllimport_name_p,
6014 arm_mark_dllexport, arm_mark_dllimport,
6015 arm_pe_encode_section_info): Likewise.
6017 * arm/telf.h (ASM_OUTPUT_DEF_FROM_DECLS,
6018 ASM_FINISH_DECLARE_OBJECT): Likewise.
6020 * arm/thumb.c (thumb_function_prologue): Likewise.
6022 * arm/thumb.h (ASM_OUTPUT_ASCII): Likewise.
6024 * avr/avr.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
6026 * clipper/clix.h (ASM_OUTPUT_ASCII): Likewise.
6028 * fx80/fx80.h (ASM_OUTPUT_ASCII): Likewise.
6030 * i386/cygwin.h (ASM_OUTPUT_SECTION_NAME): Likewise.
6032 * i386/freebsd.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
6034 * i386/i386-interix.h (ASM_OUTPUT_LIMITED_STRING,
6035 ASM_OUTPUT_ASCII, ASM_OUTPUT_SECTION_NAME): Likewise.
6037 * i386/i386-protos.h (asm_output_function_prefix): Likewise.
6039 * i386/i386.c (asm_output_function_prefix): Likewise.
6041 * i386/i386elf.h (ASM_OUTPUT_ASCII): Likewise.
6043 * i386/osfrose.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
6045 * i386/ptx4-i.h (ASM_OUTPUT_ASCII): Likewise.
6047 * i386/sco5.h (ASM_FINISH_DECLARE_OBJECT,
6048 ASM_OUTPUT_LIMITED_STRING, ASM_OUTPUT_ASCII,
6049 ASM_OUTPUT_SECTION_NAME): Likewise.
6051 * i386/sysv4.h (ASM_OUTPUT_ASCII): Likewise.
6053 * i860/paragon.h (ASM_OUTPUT_ASCII): Likewise.
6055 * i860/sysv3.h (ASM_OUTPUT_ASCII): Likewise.
6057 * m32r/m32r.c (m32r_encode_section_info): Likewise.
6059 * mcore-elf.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
6061 * mcore/mcore.c (mcore_encode_section_info): Likewise.
6063 * mips/elf.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
6065 * mips/elf64.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
6067 * mips/iris6.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
6069 * mips/mips.h (ASM_OUTPUT_IDENT): Likewise.
6071 * mips/mips.md (movdi, movsi): Likewise.
6073 * mips/netbsd.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
6075 * netbsd.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
6077 * openbsd.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
6079 * ptx4.h (ASM_FINISH_DECLARE_OBJECT, ASM_OUTPUT_LIMITED_STRING,
6080 ASM_OUTPUT_ASCII): Likewise.
6082 * rs6000/rs6000.c (rs6000_allocate_stack_space, output_epilog,
6083 output_mi_thunk, output_toc): Likewise.
6085 * rs6000/rs6000.md (movsi): Likewise.
6087 * rs6000/sysv4.h (ASM_OUTPUT_INT, ASM_OUTPUT_SECTION_NAME): Likewise.
6089 * tahoe/harris.h (ASM_OUTPUT_ASCII): Likewise.
6091 * v850/v850.c (print_operand, print_operand_address,
6092 v850_encode_data_area): Likewise.
6094 2000-03-07 Clinton Popetz <cpopetz@cygnus.com>
6096 * config/mips/mips.md (zero_extendsidi2): Always force operand
6097 one to memory for mips16.
6099 Mon Mar 6 15:22:29 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6101 * tree.h (INT_CST_LT, INT_CST_LT_UNSIGNED): Remove unneeded casts.
6102 (struct tree_int_cst): int_cst_low is now unsigned HOST_WIDE_INT.
6103 (attribute_hash_list, type_hash_canon): hashcode is now unsigned.
6104 (type_hash_lookup, type_hash_add, type_hash_list): Likewise.
6105 (min_precision): Result is unsigned.
6106 (add_double, neg_double, mul_double): Low word is unsigned.
6107 (lshift_double, rshift_double, lrotate_double): Likewise.
6108 (rrotate_double, div_and_round_double): Likewise.
6109 (tree_floor_log2, compare_tree_int): New functions.
6110 (preserve_rtl_expr_temps): New declaration.
6111 * c-common.c (declare_hidden_char_array): Use compare_tree_int.
6112 (decl_attributes): Use tree_log2 to find alignment.
6113 Check for TREE_INT_CST_HIGH for format args.
6114 (min_precision): Now unsigned.
6115 Use tree_floor_log2.
6116 (truthvalue_conversion): Delete long-disabled code.
6117 * c-decl.c (finish_struct): Clean up tests on field width.
6118 (finish_function): Use compare_tree_int.
6119 * c-pragma.c (handle_pragma_token): Use tree_log2 for alignment.
6120 * c-typeck.c (comptypes): Use tree_int_cst_equal.
6121 (default_conversion, digest_init): Use compare_tree_int.
6122 (build_binary_op): Use integer_all_onesp and compare_tree_int.
6123 Fix type errors in forming masks.
6124 * calls.c (initialize_argument_information): Use compare_tree_int.
6125 * dbxout.c (dbxout_type): Cast TREE_INT_CST_LOW to HOST_WIDE_INT.
6126 * except.c (expand_eh_region_start_tree): Use compare_tree_int.
6127 * expr.c (is_zeros_p, case INTEGER_CST): Use integer_zerop.
6128 (store_field): Use compare_tree_int.
6129 (expand_expr, case CONSTRUCTOR): Use TYPE_SIZE_UNIT.
6130 (expand_expr, case ARRAY_REF): Use compare_tree_int.
6131 (do_jump, case BIT_AND_EXPR): Use tree_floor_log2.
6132 (do_store_flag): Use compare_tree_int.
6133 * fold-const.c (encode, decode): Low part is always unsigned.
6134 (force_fit_type, add_double, neg_double, mul_double): Likewise.
6135 (lshift_double, rshift_double, lrotate_double): Likewise.
6136 (rrotate_double, div_and_round_double, int_const_binop): Likewise.
6137 (fold_convert): Use compare_tree_int.
6138 (operand_equal_p, case INTEGER_CST): Use tree_int_cst_equal.
6139 (invert_truthvalue, case INTEGER_CST): Likewise.
6140 (fold): Use compare_tree_int; add casts for unsigned TREE_INT_CST_LOW.
6141 * mkdeps.c (deps_dummy_targets): Make I unsigned.
6142 * rtl.h (add_double, neg_double, mul_double): Low words are unsigned.
6143 (lshift_double, rshift_double, lrotate_double, rrotate_double):
6145 * stmt.c (expand_decl): Use compare_tree_int and mode_for_size_tree.
6146 (expand_end_case): Use compare_tree_int.
6147 (estimate_case_costs): Cast TREE_INT_CST_LOW to HOST_WIDE_INT.
6148 * stor-layout.c (mode_for_size_tree): Use compare_tree_int.
6149 (layout_decl): Likewise.
6150 (layout_record, layout_union): Make sizes unsigned.
6151 (layout_type, case VOID_TYPE): TYPE_SIZE must be bitsizetype.
6152 (layout_type, case QUAL_UNION_TYPE): Use compare_tree_int.
6153 * tree.c (struct type_hash): hashcode is unsigned.
6154 (build_type_attribute_variant, type_hash_list): Likewise.
6155 (type_hash_lookup, type_hash_add, type_hash_canon): Likewise.
6156 (attribute_hash_list, build_array_type, build_method_type): Likewise.
6157 (build_complex_type): Likewise.
6158 (real_value_from_int_cst): Remove unneeded casts.
6159 (integer_all_onesp): Add casts.
6160 (tree_floor_log2, compare_tree_int): New functions.
6161 (build_index_type): Use tree_int_cst_sgn.
6162 * varasm.c (assemble_variable): Use compare_tree_int.
6164 2000-03-06 Jason Merrill <jason@casey.cygnus.com>
6166 * cpphash.c (collect_expansion): Also catch ## at start of macro.
6168 * varasm.c (make_decl_rtl): Don't add a number to members of
6170 (make_function_rtl): Likewise.
6172 2000-03-06 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
6174 * gcse.c (compute_can_copy): Adjust if/else blocks from rth's
6175 patch from 2000-01-28.
6177 2000-03-06 Clinton Popetz <cpopetz@cygnus.com>
6179 * config/sh/sh.c: (barrier_align): Handle a delay slot that is
6180 filled with an insn from the jump target.
6182 2000-03-07 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
6184 * config/c4x/c4x-protos.h (c4x_global_name): Constify char *.
6185 (c4x_external_ref): Likewise.
6186 * config/c4x/c4x.c (struct name_list): Likewise.
6188 1999-12-16 Ben Collins <bcollins@debian.org>
6190 * Makefile.in: Pass a new MULTILIB_EXCLUSIONS option as the sixth
6191 argument to genmultilib.
6192 * genmultilib: accept new MULTILIB_EXCLUSIONS option and output
6193 the contents into the multilib.h header.
6194 * gcc.c: Declare multilib_exclusions for the specs file.
6195 (set_multilib_dir): Use it.
6196 (print_multilib_info): Likewise.
6197 * t-linux64: Declare arguments for new MULTILIB_EXCLUSIONS option
6198 to pass to genmultilib.
6200 2000-03-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6202 * builtins.c (built_in_class_names, built_in_names): Constify a
6205 * gmon-sol2.c (monstartup, moncontrol): Cast ptrs to long, not
6207 (_mcleanup): Ensure value matches format specifier in sprintf.
6209 * cpphash.c (special_symbol): Don't needlessly cast away
6212 * cppinit.c (base_name): Delete unused prototype.
6214 * mkdeps.c (deps_init): Make definition K&R safe.
6216 * tree.h (built_in_class_names, built_in_names): Constify a
6219 2000-03-06 Jakub Jelinek <jakub@redhat.com>
6221 * config/sparc/sparc.c (eligible_for_epilogue_delay): Accept
6222 floating point instructions for epilogue delay.
6224 * config/sparc/sparc.h (ASM_ARCH64_SPEC): Pass -no-undeclared-regs
6225 to gas if it supports .register pseudo.
6227 * real.h (MAX_LONG_DOUBLE_TYPE_SIZE): Define to
6228 LONG_DOUBLE_TYPE_SIZE if not defined.
6229 Use MAX_LONG_DOUBLE_TYPE_SIZE instead of
6230 LONG_DOUBLE_TYPE_SIZE in preprocessor if clauses.
6232 * gengenrtl.c: Likewise.
6233 * print-rtl.c: Likewise.
6235 * config/sparc/sol2-sld-64.h (TARGET_DEFAULT): Set
6236 MASK_LONG_DOUBLE_128.
6237 * config/sparc/sol2.h (TARGET_DEFAULT): Likewise.
6238 * config/sparc/sp64-elf.h (TARGET_DEFAULT): Likewise.
6239 * config/sparc/linux64 (TARGET_DEFAULT): Likewise.
6240 (SUBTARGET_SWITCHES): Define.
6241 (CPP_ARCH32_SPEC): Define __LONG_DOUBLE_128__ if compiling
6242 with -mlong-double-128.
6243 (LONG_DOUBLE_TYPE_SIZE): Define depending on target_flags.
6244 (MAX_LONG_DOUBLE_TYPE_SIZE): Define.
6245 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define depending on CPP macros.
6246 (CC1_SPEC): Include -mlong-double-{64,128} as needed.
6247 * config/sparc/linux.h (SUBTARGET_SWITCHES): Define.
6248 (CPP_SUBTARGET_SPEC): Define __LONG_DOUBLE_128__ if compiling
6249 with -mlong-double-128.
6250 (LONG_DOUBLE_TYPE_SIZE): Define depending on target_flags.
6251 (MAX_LONG_DOUBLE_TYPE_SIZE): Define.
6252 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define depending on CPP macros.
6253 * config/sparc/sparc.h (MASK_LONG_DOUBLE_128,
6254 TARGET_LONG_DOUBLE_128): Define.
6255 * config/sparc/linux-aout.h (LONG_DOUBLE_TYPE_SIZE): Remove.
6256 * config/sparc/sparc.c (sparc_override_options): Disallow 64bit
6257 long double on TARGET_ARCH64.
6259 2000-03-06 Mark Mitchell <mark@codesourcery.com>
6261 * function.c (free_temps_for_rtl_expr): Don't free slots
6262 that have been pushed into a higher level.
6265 2000-03-05 Mark Mitchell <mark@codesourcery.com>
6267 2000-03-05 Mark Mitchell <mark@codesourcery.com>
6269 * basic-block.h (ALLOCA_REG_SET): Remove.
6270 (INITIALIZE_REG_SET): New macro.
6271 * flow.c (update_life_info): Use it.
6272 (calculate_global_regs_live): Likewise.
6273 (propagate_block): Likewise.
6274 * global.c (build_insn_chain): Likewise.
6275 * haifa-sched.c (schedule_region): Likewise.
6277 2000-03-05 Stephane Carrez <stcarrez@worldnet.fr>
6279 * dwarf2out.c (UNALIGNED_WORD_ASM_OP): Support 2 bytes pointer.
6280 (ASM_OUTPUT_DWARF_ADDR_CONST): Use UNALIGNED_WORD_ASM_OP.
6281 (DWARF_ARANGES_PAD_SIZE): New define.
6282 (output_aranges): Use it to pad the address range header.
6283 (DWARF_ROUND): Fix for non power of 2 rounding.
6285 2000-03-05 Jason Merrill <jason@casey.cygnus.com>
6287 * mkdeps.c (deps_calc_target): Remove incorrect 'const'.
6289 2000-03-05 Mark Mitchell <mark@codesourcery.com>
6291 * tree.def (RTL_EXPR): Update documentation.
6292 * tree.h (RTL_EXPR_HAS_NO_SCOPE): New macro.
6293 * expr.c (expand_expr): Handle RTL_EXPR_HAS_NO_SCOPE.
6294 * function.c (preserve_rtl_expr_temp): New function.
6295 (preserve_rtl_expr_temps): Likewise.
6296 (preserve_rtl_expr_result): Use it.
6299 2000-03-04 Mark Mitchell <mark@codesourcery.com>
6301 2000-03-04 Thomas Schuster <Thomas.Schuster@gmx.net>
6303 * regmove.c (copy_src_to_dest) Do not create src->dest move
6304 for unchanging destination.
6306 2000-03-04 Mark Mitchell <mark@codesourcery.com>
6308 * function.h (struct sequence_stack): Remove rtl_expr.
6309 (struct emit_staus): Likewise.
6310 (seq_rtl_expr): Remove.
6311 * tree.h (free_temps_for_rtl_expr): Don't declare.
6312 (start_sequence_for_rtl_expr): Likewise.
6313 * rtl.h (preserve_rtl_expr_result): Likewise.
6314 * emit-rtl.c (start_sequence): Don't set sequence_rtl_expr.
6315 (start_sequence_for_rtl_expr): Remove.
6316 (push_topmost_sequence): Don't save sequence_rtl_expr.
6317 (pop_topmost_sequence): Remove comment about not restoring it.
6318 (end_sequence): Don't set seq_rtl_expr.
6319 (init_emit): Don't initialize it.
6320 (mark_sequence_stack): Don't mark it.
6321 (mark_emit_status): Likewise.
6322 * except.c (protect_with_terminate): Use
6323 start_sequence_for_rtl_expr, not start_sequence.
6324 * expr.c (expand_expr, case RTL_EXPR): Don't call
6325 preserve_rtl_expr_result or free_temps_for_rtl_expr.
6326 * function.c (assign_stack_temp_for_type): Don't set rtl_expr.
6327 (preserve_rtl_expr_result): Remove.
6328 (free_temps_for_rtl_expr): Likewise.
6329 (pop_temp_slots): Likewise.
6330 (mark_temp_slot): Don't mark the rtl_expr.
6331 * stmt.c (expand_start_stmt_expr): Use start_sequence, not
6332 start_sequence_for_rtl_expr.
6334 2000-03-04 Zack Weinberg <zack@wolery.cumb.org>
6336 * mkdeps.c, mkdeps.h: New files.
6337 * po/POTFILES.in: Add them.
6338 * Makefile.in (LIBCPP_OBJS): Add mkdeps.o.
6339 (cpplib.o, cppinit.o): Depend on mkdeps.h.
6340 (mkdeps.o): New target.
6342 * cppfiles.c: Delete deps_output.
6343 * cppinit.c: Include mkdeps.h. Delete known_suffixes,
6344 OBJECT_SUFFIX, and base_name.
6345 (cpp_cleanup): Use deps_free. Free ihash->name when clearing
6347 (initialize_dependency_output): Use deps_init,
6348 deps_add_target, deps_calc_target, and deps_add_dep. Remove
6349 all the unnecessary string bashing.
6350 (cpp_finish): Use deps_write. Remove an unnecessary nesting
6352 * cpplib.c (do_include): Use deps_add_dep.
6353 * cpplib.h (struct cpp_reader): Replace deps_buffer,
6354 deps_allocated_size, deps_size, deps_column members with
6355 single pointer to a struct deps. Delete prototype of
6358 * cppinit.c: Fix thinko in previous patch.
6360 Sat Mar 4 11:32:30 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6362 * machmode.h (mode_for_size, smallest_mode_for_size): SIZE now signed.
6363 * stor-layout.c (mode_for_size, smallest_mode_for_size): Likewise.
6364 (mode_for_size_tree): New function.
6365 (layout_decl, layout_type): Call it and clean up BLKmode checks.
6366 * tree.h (mode_for_size_tree): New declaration.
6368 * toplev.c (debug_ignore_block): Mark arg BLOCK as possibly unused.
6370 2000-03-04 Jason Merrill <jason@casey.cygnus.com>
6372 * stmt.c (is_body_block): Move...
6373 * dwarfout.c, dwarf2out.c: ...from here.
6374 * tree.h: Declare it.
6375 * emit-rtl.c (remove_unncessary_notes): Don't remove the body block.
6376 * final.c (final_start_function): Do call remove_unnecessary_notes
6379 2000-03-03 Zack Weinberg <zack@wolery.cumb.org>
6381 * config/vax/xm-vms.h: Define OBJECT_SUFFIX and EXECUTABLE_SUFFIX.
6383 * cpplib.h (_dollar_ok): New macro.
6384 (is_idchar, is_idstart): Use it.
6385 (IStable): Rename to _cpp_IStable. Declare it const if
6386 gcc >=2.7 or C99. Delete all references to FAKE_CONST.
6387 (is_idchar, is_idstart, is_numchar, is_numstart, is_hspace,
6388 is_space): Update for renamed IStable.
6390 * cppinit.c: Delete all references to FAKE_CONST and CAT
6391 macros. Define init_IStable as empty macro if gcc >=2.7 or
6392 C99. Change TABLE() to ISTABLE and hardcode name of table.
6393 (cpp_start_read): Don't change the IStable based on
6396 * cpphash.c (unsafe_chars): Add pfile argument. All callers
6397 changed. Handle '$' for char1 correctly.
6398 * cpplib.c (cpp_get_token): Use is_numchar when parsing numbers.
6400 * cppexp.c (tokentab2): Make const.
6401 (cpp_lex): Make toktab const.
6402 * cppinit.c (include_defaults_array): Make const.
6403 (initialize_standard_includes): Make default_include const.
6405 2000-03-03 Jason Merrill <jason@casey.cygnus.com>
6407 * dwarf2out.c (dwarf2out_frame_debug): Add cast to silence warning.
6408 (dwarf2out_decl): Functions can now have DECL_IGNORED_P.
6409 (gen_decl_die): Likewise.
6410 * dwarfout.c (dwarfout_file_scope_decl): Likewise.
6411 (output_decl): Likewise.
6413 * varasm.c (make_function_rtl): If we change the name used in the
6414 rtl, update DECL_ASSEMBLER_NAME accordingly.
6415 (make_decl_rtl): Likewise.
6417 * toplev.c (rest_of_compilation): Tweak formatting.
6419 * toplev.c (rest_of_compilation): find_loop_tree_blocks before
6420 remove_unnecessary_notes.
6421 (debug_ignore_block): New fn.
6422 * toplev.h: Declare it.
6423 * emit-rtl.c (remove_unncessary_notes): Call it.
6424 * dwarf2out.c (dwarf2out_ignore_block): New fn.
6425 * dwarf2out.h: Declare it.
6426 * final.c (final_start_function): Don't call remove_unnecessary_notes
6427 if we did insn scheduling.
6429 2000-03-03 Zack Weinberg <zack@wolery.cumb.org>
6431 * cppinit.c (cpp_handle_option): Set opts->pedantic directly.
6432 * cpplib.h: Delete SET_CPP_PEDANTIC.
6434 Fri Mar 3 14:56:12 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6436 * expr.c (expand_expr, case COMPONENT_REF): Use bitfield case if
6437 result is a RECORD_TYPE.
6439 2000-03-03 Jonathan Larmour <jlarmour@cygnus.co.uk>
6441 * mips/elf.h (CTOR_LISTS_DEFINED_EXTERNALLY): Added.
6443 2000-03-03 Richard Henderson <rth@cygnus.com>
6445 * alpha.c (alpha_emit_set_const_1): Re-order cases to prefer
6446 addition over compliments over shifts.
6448 Fri Mar 3 12:49:28 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
6450 * reload1.c (reload_combine_note_use): Handle return register USEs.
6451 REG case: Handle multi-hard-register hard regs.
6453 Fri Mar 3 07:38:34 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6455 * md.texi: Document use of '*' in insn pattern name.
6457 2000-03-03 Jason Merrill <jason@casey.cygnus.com>
6459 * calls.c (special_function_p): operator new may not be malloc-like.
6461 * gcse.c (dump_hash_table): Really fix error in last change.
6463 2000-03-02 Denis Chertykov <denisc@overta.ru>
6465 * avr.c (print_operand): Use print_operand_address instead of
6467 * avr/libgcc.S: Cleanup code.
6469 2000-03-02 Richard Henderson <rth@cygnus.com>
6471 * alpha.c (alpha_emit_set_const_1): Also try c + small constant.
6473 2000-03-02 Mark Mitchell <mark@codesourcery.com>
6475 * tree.h (TYPE_ALIGN_UNIT): New macro.
6477 2000-03-02 Clinton Popetz <cpopetz@cygnus.com>
6479 * i386.c: (constant_call_address_operand): Reject CONST_INT.
6481 2000-03-02 Jason Merrill <jason@casey.cygnus.com>
6483 * cpplib.h (CPP_PEDANTIC): Only true if system_header_p is not set
6485 (SET_CPP_PEDANTIC): New macro.
6486 * cpplib.c (do_include): Don't bother checking system_header_p.
6487 (do_warning, do_ident, do_assert, do_unassert): Likewise.
6488 * cppinit.c (cpp_handle_option): Use SET_CPP_PEDANTIC.
6490 * function.h (struct expr_status): Add x_arg_space_so_far.
6491 (arg_space_so_far): New macro.
6492 * expr.c (init_expr): Initialize it.
6493 * calls.c (emit_call_1): Reset it.
6494 (compute_argument_block_size, expand_call): Use it.
6495 (expand_call, store_one_arg): Increment it.
6497 Thu Mar 2 17:27:13 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6499 * varasm.c (output_constant): Strip off a CONVERT_EXPR to
6502 2000-03-02 Zack Weinberg <zack@wolery.cumb.org>
6504 * cppfiles.c (cpp_read_file): New function.
6506 * cpphash.c (collect_expansion): Make sure to reset last_token
6507 to NORM when we hit a string. Handle trailing whitespace
6508 properly when the expansion is empty.
6509 (create_definition): Disable line commands while parsing the
6511 (dump_definition): If pfile->lineno == 0, output a line
6512 command ahead of the dump, and add a trailing newline.
6514 * cppinit.c (append_include_chain): Add fifth argument, which
6515 indicates whether or not system headers are C++ aware.
6516 (initialize_standard_includes): New function,
6517 broken out of read_and_prescan. Pass 'cxx_aware' value from
6518 the include_defaults_array on to append_include_chain.
6519 (dump_special_to_buffer): Const-ify char array.
6520 (builtin_array): Don't dump __BASE_FILE__.
6521 (cpp_start_read): Use cpp_read_file. Reorder code for
6522 clarity. Don't output line commands here for -D/-A/-U
6523 switches. Don't call deps_output for files included with
6524 -include or -imacros.
6526 * cpplib.c (do_define): Don't pay any attention to the second
6528 (cpp_expand_to_buffer): Disable line commands while scanning.
6529 (output_line_command): Work in the file buffer.
6530 * cpplib.h: Remove no_record_file flag from struct cpp_reader.
6531 Fix formatting of comments. Prototype cpp_read_file.
6533 Thu Mar 2 13:29:46 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6535 * c-common.c (c_common_nodes_and_builtins): Make sizetype_endlink
6536 reference the language-equivalent of sizetype.
6537 * c-typeck.c (comptypes): Treat sizetype like its language equivalent.
6538 * fold-const.c (size_binop, size_diffop): Put back checks.
6539 * gcse.c (dump_hash_table): Fix minor error in last change.
6540 * stor-layout.c (set_sizetype): Set TYPE_DOMAIN of sizetype.
6541 Clear TYPE_{NEXT,MAIN}_VARIANT and TYPE_{POINTER,REFERENCE}_to of
6544 Thu Mar 2 12:48:45 MET 2000 Jan Hubicka <jh@suse.cz>
6546 * calls.c (expand_call) Do not attempt to combine stack adjustments
6547 with inhibit_defer_pop set.
6549 2000-03-01 Mark Mitchell <mark@codesourcery.com>
6551 * stor-layout.c (layout_decl): Allow front-ends to explicitly set
6552 the DECL_SIZE for a FIELD_DECL.
6554 2000-03-01 Bruce Korb <bkorb@gnu.org>
6556 * fixinc/inclhack.tpl: remove unused symlinks
6557 * fixinc/README: GCC Maintainer info
6558 * fixinc/inclhack.sh: regen
6559 * fixinc/fixincl.sh: regen
6561 2000-03-01 Zack Weinberg <zack@wolery.cumb.org>
6563 * cpphash.c (collect_expansion): Trim trailing white space
6564 from macro definitions, but don't go past the last insertion
6567 Wed Mar 1 12:14:31 MET 2000 Jan Hubicka <jh@suse.cz>
6569 * i386.md (mulqi3): New pattern.
6571 2000-02-29 Zack Weinberg <zack@wolery.cumb.org>
6573 * cpplib.h (CPP_ASSERTION, CPP_STRINGIZE, CPP_TOKPASTE): New
6575 (struct cpp_reader): Add parsing_if_directive and
6576 parsing_define_directive flags.
6577 (struct cpp_options): Remove output_conditionals flag.
6578 (check_macro_name): Delete prototype.
6580 * cpphash.h (struct macrodef): Delete.
6581 (struct reflist): Separate from struct definition.
6582 (struct definition): Remove unused fields. Add column number.
6583 (create_definition): Returns a DEFINITION *. Takes a
6584 cpp_reader * and an int.
6586 * cpphash.c (SKIP_WHITE_SPACE): Delete.
6587 (PEEKC): Copy defn from cpplib.c.
6588 (rest_extension, REST_EXTENSION_LENGTH): Delete.
6590 (struct arglist): Simplify.
6591 (collect_expansion): Rewrite. Get tokens by calling
6592 cpp_get_token. Add more error checking.
6593 (collect_formal_parameters): New function, broken out of
6594 create_definition and reworked to use get_directive_token.
6595 (create_definition): All real work is now in collect_expansion
6596 and collect_formal_parameters. do_define handles finding the
6597 macro name. Return a DEFINITION, not a MACRODEF.
6598 (macroexpand): Replace bcopy with memcpy throughout. Replace
6599 character-at-a-time copy loop with memcpy and pointer increments.
6600 (compare-defs): d1->argnames / d2->argnames might be null.
6602 * cpplib.c (copy_rest_of_line): Delete function.
6603 (skip_rest_of_line): Do all the work ourselves.
6604 (skip_string): New function.
6605 (parse_string): Use skip_string.
6606 (get_macro_name): New function.
6607 (check_macro_name): Delete.
6608 (copy_comment): Use CPP_RESERVE and CPP_PUTC_Q.
6609 (cpp_skip_hspace): Use CPP_BUMP_LINE.
6610 (handle_directive): ICE if we're called on a macro buffer.
6611 (do_define): Determine macro name and type (funlike/objlike)
6612 here. Expunge all uses of MACRODEF.
6613 (cpp_push_buffer): Set line_base to NULL.
6614 (do_undef, read_line_number): Don't worry about getting a POP token.
6615 (eval_if_expression): Set/reset parsing_if_directive around
6616 cpp_parse_expr. Don't clear only_seen_white.
6617 (skip_if_group): Remove output_conditionals logic. Use
6619 (cpp_get_token): Return ASSERTION, STRINGIZE, and TOKPASTE
6620 tokens under appropriate conditions.
6621 (cpp_unassert): Call do_unassert not do_assert. Oops.
6623 * cppexp.c (parse_defined): New function, break out of
6625 (cpp_lex): We now get CPP_ASSERTION tokens and can check them
6626 ourselves, with cpp_defined.
6627 * cppinit.c (cpp_handle_option, print_help): Delete -ifoutput.
6629 * gcc.dg/20000209-2.c: Turn off -pedantic-errors.
6630 * gcc.dg/strpaste-2.c: New.
6632 2000-02-29 Mark Mitchell <mark@codesourcery.com>
6634 * fold-const.c (size_binop): Don't asert inputs are the same and
6635 have TYPE_IS_SIZETYPE set.
6636 (size_diffop): Likewise.
6638 2000-02-29 Jason Merrill <jason@casey.cygnus.com>
6640 * dwarfout.c (output_block): Output abstract blocks even if they
6641 don't have TREE_ASM_WRITTEN set.
6643 * calls.c (emit_library_call): Check for null REG.
6645 2000-03-01 Martin von Loewis <loewis@informatik.hu-berlin.de>
6647 * c-decl.c (current_function_decl): Move to toplev.c.
6648 (init_decl_processing): Don't add current_function_decl as a ggc
6650 * dbxout.c (dbxout_symbol): Change return type to int.
6651 (dbxout_symbol_location, dbxout_syms): Likewise.
6652 (dbxout_block): Don't emit LBRAC/RBRAC pairs for blocks without
6653 any locals. Use current_function_func_begin_label if set.
6654 * dbxout.h (dbxout_symbol, dbxout_syms): Change return type.
6655 * dwarf2out.c (dwarf2out_begin_prologue): Set
6656 current_function_func_begin_label.
6657 * final.c (final_start_function): Reset it.
6658 * toplev.c (current_function_decl): Define it here.
6659 (current_function_func_begin_label): New variable.
6660 (main): Add both as ggc roots.
6661 * tree.h (current_function_func_begin_label): Declare.
6663 Tue Feb 29 14:07:04 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6665 * gcse.c: Cleanups throughout: mostly white-space, but also
6666 some minor rearrangement of code.
6668 Tue Feb 29 10:45:59 2000 Jeffrey A Law (law@cygnus.com)
6670 * calls.c (emit_library_call): Do not abort if FUNCTION_ARG
6671 returns a PARALLEL. Use emit_group_load and use_group_regs
6673 (emit_library_call_value): Similarly.
6675 * pa/t-pa: Use quadlib.c instead of quadlib.asm.
6676 * pa/quadlib.asm: Remove.
6677 * pa/quadlib.c: New file.
6679 * configure.in (hpux10, hpux11, PA32 mode): Use i128 float format.
6680 * configure: Rebuilt.
6682 2000-02-29 Philip Blundell <pb@futuretv.com>
6684 * config/arm/conix-elf.h: New file.
6685 * configure.in (arm*-*-conix*): New configuration.
6686 * configure: Regenerate.
6688 2000-02-28 Jason Merrill <jason@casey.cygnus.com>
6690 * dwarf2out.c (gen_block_die): Output abstract blocks even if they
6691 don't have TREE_ASM_WRITTEN set.
6693 Mon Feb 28 21:07:59 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6695 * Eliminate DECL_FIELD_SIZE.
6696 * builtins.c (built_in_class_names, built_in_names): New variables.
6697 * c-decl.c (finish_struct): Set specified size in DECL_SIZE.
6698 * expr.c (expand_expr, case COMPONENT_REF): Get field size from
6699 DECL_SIZE, not DECL_FIELD_SIZE.
6700 * print-tree.c (print_node): Remove code that prints extra blank
6701 lines in some cases.
6702 Properly handle inline and builtin function cases.
6703 * stor-layout.c (layout_decl): Get specified size from DEC_SIZE.
6704 * tree.h (built_in_class_named, built_in_names): New declarations.
6705 (union tree_decl): Rename internal unions to u1 and u2 and change
6706 some of their components.
6707 Add new field built_in_class.
6708 (DECL_ALIGN, DECL_INCOMING_RTL, DECL_SAVED_INSNS, DECL_FRAME_SIZE):
6709 Reflect above changes.
6710 (DECL_FUNCTION_CODE, DECL_BUILT_IN_CLASS): Likewise.
6711 (DECL_SET_FUNCTION_CODE, DECL_FIELD_SIZE): Deleted.
6712 * objc/objc-act.c (objc_copy_list): Use DECL_SIZE, not DECL_FIELD_SIZE.
6713 (encode_field_decl): Likewise; also remove obsolete test for bitfield.
6715 2000-02-28 Dmitri Makarov <dim@windriver.com>
6717 * extend.texi: Document ARM's support for long/short calls.
6719 * invoke.texi: Document ARM's -mlong-calls command line switch.
6721 * config/arm/arm-protos.h (arm_is_longcall_p): Add prototype.
6722 (arm_encode_call_attribute): Add prototype.
6723 (arm_set_default_type_attribute): Add prototype.
6724 (arm_strip_name_encoding): Add prototype.
6726 * config/arm/arm.c (arm_init_cumulative_args): replace
6727 initialisation og 'long_calls' field with initialisation of
6728 'call_cookie' field.
6729 (enum arm_pragma_enum): New enum.
6730 (arm_pragma_long_calls): New static variable.
6731 (arm_process_pragma): Also process "#pragma long_calls_off".
6732 (arm_valid_type_attribute_p): Accept short_call attribute.
6733 (arm_comp_type_attributes): Check long/short call attributes.
6734 (arm_encode_call_attribute): New function: Encode long_call
6735 or short_call attribute in function name.
6736 (arm_set_default_type_attributes): New function: Assign
6737 default attributes to newly defined type.
6738 (current_file_function_operand): New function: Return true if
6739 the symbol is a function which has already been compiled.
6740 (arm_is_longcall_p): New function: Return true if the
6741 indicated function should be called via a long call.
6742 (arm_get_strip_length): New function. Returns number of
6743 prefix characters to be stripped from a function's name.
6744 (arm_strip_name_encoding): New function. Strip prefix characters
6745 from a function's name.
6747 * config/arm/arm.h (CUMULATIVE_ARGS): Replace 'long_call' field
6749 (SHORT_CALL_FAG_CHAR): Define.
6750 (LONG_CALL_FAG_CHAR): Define.
6751 (ENCODED_SHORT_CALL_ATTR_P): Define.
6752 (ENCODED_LONG_CALL_ATTR_P): Define.
6753 (ARM_NAME_ENCODING_LENGTHS): Define.
6754 (STRIP_NAME_ENCODING): Define.
6755 (ASM_OUTPUT_LABELREF): Define, and use to strip name encoding.
6756 (ARM_ENCODE_CALL_TYPE): Define.
6757 (ENCODE_SECTION): Invoke ARM_ENCODE_CALL_TYPE.
6758 (ARM_DECLARE_FUNCTION_SIZE): Define.
6759 (SET_DEFAULT_TYPE_ATTRIBUTES): Define.
6761 * config/arm/arm.md (call): Call arm_is_longcall_p to decide
6762 if a long call is needed.
6763 (call_value): Ditto.
6764 (call_symbol): Ditto.
6766 * config/arm/elf.h (ASM_DECLARE_FUNCTION_SIZE): Add invocation of
6767 ARM_DECLARE_FUNCTION_SIZE.
6769 * config/arm/pe.h (ARM_PE_FLAG_CHAR): Define.
6770 (SUBTARGET_NAME_ENCODING_LENGTHS): Define.
6771 (ARM_STRIP_NAME_ENCODING): Undefine.
6772 (STRIP_NAME_ENCODING): Undefine.
6773 (ASM_OUTPUT_LABELREF): Use arm_strip_name_encoding.
6774 (ASM_DECLARE_FUNCTION_NAME): Ditto.
6775 (ASM_OUTPUT_COMMON): Ditto.
6776 (ASM_DECLARE_OBJECT_NAME): Ditto.
6778 * config/arm/pe.c (arm_dllexport_name_p): Check for
6780 (arm_dllimport_name_p): Ditto.
6781 (arm_mark_dllexport): Use ARM_PE_FLAG_CHAR.
6782 (arm_mark_dllimport): Ditto.
6784 Mon Feb 28 22:11:12 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
6786 * sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Define.
6788 2000-02-28 Mark Mitchell <mark@codesourcery.com>
6790 * xcoffout.c (xcoffout_begin_function): Fix typo in previous change.
6792 2000-02-28 Zack Weinberg <zack@wolery.cumb.org>
6794 * tm.texi: Document new target switch, NO_BUILTIN_WCHAR_TYPE.
6795 * cppinit.c (builtin_array): Define __WCHAR_TYPE__ only if
6796 NO_BUILTIN_WCHAR_TYPE is not defined.
6797 (CPP_WCHAR_TYPE): Delete.
6798 * cccp.c (main): Don't change wchar_type if cplusplus.
6799 (special_symbol, initialize_builtins): Honor NO_BUILTIN_WCHAR_TYPE.
6801 2000-02-28 Nick Clifton <nickc@cygnus.com>
6803 * config/arm/arm-wince-pe.h (SIZE_TYPE): Define to "unsigned long".
6805 Mon Feb 28 14:21:15 2000 Catherine Moore <clm@cygnus.com>
6807 * config/pa/som.h (MAKE_DECL_ONE_ONLY): Define.
6808 (ASM_WEAKEN_LABEL): Define.
6810 Mon Feb 28 13:07:19 MET 2000 Jan Hubicka <jh@suse.cz>
6812 * expr.c (store_constructor): Do not emit USE.
6813 * rtl.h (stupid_life_analysis): Remove.
6815 Mon Feb 28 07:03:27 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6817 * function.c (number_blocks): Reset next_block_index based on
6818 what debugging format is used, not what is defined.
6820 * lcm.c: Minor reformatting throughout.
6821 (reg_dies, reg_becomes_live): Properly handle multiple hard regs.
6823 * toplev.c (rest_of_compilation): Account for time in
6824 optimize_mode_switching.
6826 * jump.c (jump_optimize_1): Don't call delete_barrier_successors
6827 if only marking labels.
6829 Mon Feb 28 12:53:57 MET 2000 Jan Hubicka <jh@suse.cz>
6831 * calls.c (expand_call): Attempt to combine stack adjustments with
6832 pending stack adjustments.
6834 Mon Feb 28 11:34:43 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
6836 * loop.c (reg_in_basic_block_p): Don't abort when falling through
6837 to the end of the function.
6839 2000-02-27 Mark Mitchell <mark@codesourcery.com>
6841 * emit-rtl.c (remove_unncessary_notes): Remove notes for empty
6843 * final.c (next_block_index): Remove.
6844 (max_block_depth): Likewise.
6845 (pending_blocks): Likewise.
6846 (init_final): Don't initialize them.
6847 (final_start_function): Don't set next_block_index. Set up
6849 (final_scan_insn): Use BLOCK_NUMBER, not next_block_index.
6850 * function.h (number_blocks): New function.
6851 * function.c (get_block_vector): New function.
6852 (identify_blocks): Use it.
6853 (reorder_blocks): Set NOTE_BLOCK.
6854 (number_blocks): New function.
6855 * tree.def (BLOCK): Add documentation for TREE_ASM_WRITTEN flag.
6856 * tree.h (BLOCK_NUMBER): New macro.
6857 (tree_block): Add block_num field.
6858 * dbxout.c (next_block_number): Remove.
6859 (dbxout_init): Don't set it.
6860 (dbxout_block): Only output blocks that have TREE_ASM_WRITTEN
6861 set. Use BLOCK_NUMBER, rather than next_block_num, to determine
6863 * toplev.c (rest_of_compilation): Always call
6864 find_loop_tree_blocks. Fix indentation.
6865 * dwarf2out.c (next_block_number): Remove.
6866 (gen_lexical_block_die): Use BLOCK_NUMBER, not next_block_number,
6867 to determine block numbers.
6868 (gen_inlined_subroutine_die): Likewise.
6869 (gen_block_die): Only output blocks that have TREE_ASM_WRITTEN set.
6870 (decls_for_scope): Don't increment next_block_number.
6871 * dwarfout.c (next_block_number): Remove.
6872 (output_lexical_block_die): Use BLOCK_NUMBER, not next_block_number,
6873 to determine block numbers.
6874 (output_inlined_subroutine_die): Likewise.
6875 (output_block): Only output blocks that have TREE_ASM_WRITTEN set.
6876 (output_decls_for_scope): Don't increment next_block_number.
6877 * sdbout.c (next_block_number): Remove.
6878 (sdbout_block): Use BLOCK_NUMBER.
6879 (sdbout_begin_block): Simplify.
6880 * xcoffout.c (next_block_number): Remove.
6881 (xcoffout_block): Use BLOCK_NUMBER, not next_block_number.
6882 (xcoffout_begin_block): Don't set next_block_number.
6883 (xcoffout_begin_function): Likewise. Use BLOCK_NUMBER, not
6886 Sun Feb 27 16:40:33 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6888 * builtins.c (c_strlen): Use size_diffop and return ssizetype value.
6889 (expand_builtin_strcpy): Pass correct type to size_binop.
6890 (expand_builtin_strcmp): Likewise.
6891 Clean up conditional structure.
6892 * c-decl.c (init_decl_processing): Don't call set_sizetype twice.
6893 (complete_array_type): Don't use size_binop for MAXINDEX.
6894 * c-typeck.c (c_sizeof): Use size_one_node and TYPE_SIZE_UNIT.
6895 (c_sizeof_nowarn, c_size_in_bytes): Likewise.
6896 (c_alignof): Use size_one_node.
6897 (build_unary_op): Pass arg of proper type to size_binop.
6898 (really_start_incremental_init, push_init_level): Use sizetype for
6899 constructor{,_bit,_unfilled}_index.
6900 (pop_init_label, output_init_element): Likewise.
6901 (output_pending_init_elements, process_init_element): Likewise.
6902 * calls.c (compute_argument_block_size): Field VAR is ssizetype.
6903 * expr.c (store_expr): Use size_int.
6904 (store_constructor): Use proper types for size_binop args.
6905 (get_inner_reference, expand_expr, case ARRAY_REF): Likewise.
6906 (expand_expr_unaligned): Likewise.
6907 (string_contant): Return object of sizetype.
6908 * expr.h (SUB_PARM_SIZE): Call size_diffop and pass proper types.
6909 (ARGS_SIZE_RTX): Call ARGS_SIZE_TREE.
6910 (ARGS_SIZE_TREE): Pass proper types to size_binop.
6911 * fold-const.c (int_const_binop): Refine when size_int is called.
6912 (fold_convert): Likewise.
6913 (size_int_wide): Rework to take KIND as arg, only take low order
6914 bits, handle new sizetype_tab datatype, and chain entries in
6916 (size_int_type_wide): New function.
6917 (size_binop): Validate types of arguments.
6918 (ssize_binop): Deleted.
6919 (size_diffop): New function.
6920 (extract_muldiv): Only fold division into multiplication for sizetypes.
6921 * function.c (assign_parms): Use size_diffop and make sure
6922 VAR field is of ssizetype; also pass proper type to size_binop.
6923 (locate_and_pad_parm, pad_to_arg_alignment): Likewise.
6924 (round_down): Deleted from here.
6925 * store-layout.c (sizetype_tab): Now an array.
6926 (sizetype_set, early_root_list): New variables.
6927 (variable_size): Use size_one_node.
6928 (round_up): Pass proper type to size_binop.
6929 (round_down): Moved to here and corrected as above.
6930 (layout_record): Pass proper arg types to size_binop.
6931 (layout_type): Likewise.
6932 If sizetype_set is zero, record the type just laid out.
6933 (make_unsigned_type): Don't call set_sizetype;
6934 (make_signed_type): Likewise; also, call fixup_signed_type.
6935 (initialize_sizetypes): New function.
6936 (set_sizetype): Make copy of types, set TYPE_IS_SIZETYPE, and
6937 set name of bitsizetype to "bit_size_type".
6938 Fix up type of sizes of all types made before call.
6939 * tm.texi (ROUND_TYPE_SIZE_UNIT): New macro.
6940 * tree.c (fix_sizetype): Deleted.
6941 (build_common_tree_nodes): Call initialize_sizetypes.
6942 (build_common_tree_nodes_2): Don't call fix_sizetype.
6943 * tree.h (TYPE_IS_SIZETYPE): New macro.
6944 (initialize_sizetype): New declaration.
6945 (enum size_type_kind): New type.
6946 (struct sizetype_tab): Deleted.
6947 (sizetype_tab): Now array; adjust sizetype macros.
6948 (size_diffop, size_int_type_wide): New functions.
6949 (size_int_wide): Change number of args and type; access macros changed.
6950 (ssize_int, sbitsize_int): New macros.
6951 * config/i960/i960.h (ROUND_TYPE_SIZE): Use size_int.
6952 (ROUND_TYPE_SIZE_UNIT): New macro.
6954 2000-02-27 Zack Weinberg <zack@wolery.cumb.org>
6956 * c-lex.c (putback_buffer): Make 'buffer' an unsigned char *.
6958 Sun Feb 27 07:44:17 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6960 * gcov-io.h (__fetch_long, __store_long, __read_long, __write_long):
6961 Mark as possibly unused.
6963 * cse.c (cse_insn): Delete dead code involving tablejump.
6964 Pass CODE_LABEL, not LABEL_REF to gen_jump and reset INSN_CODE.
6966 * Makefile.in (libcpp.a): Start by deleting it.
6968 2000-02-27 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
6970 * cpplib.h (enum file_change_code): Added rename_file.
6971 * cpplib.c (do_line): If a filename is given, set file_change to
6973 (output_line_command): If file_change is rename_file, always
6974 output a # directive with the file name.
6976 * cpplib.c (do_pragma): Accept #pragma without consecutive token.
6978 2000-02-26 Mark Mitchell <mark@codesourcery.com>
6980 * integrate.c (copy_decl_for_inlining): Preserve TREE_ADDRESSABLE
6981 when copying a PARM_DECL or RESULT_DECL.
6983 2000-02-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6985 * fix-header.c (recognized_function): Also fix prototypes for
6986 functions taking "void".
6988 2000-02-26 Geoff Keating <geoffk@cygnus.com>
6990 * reload1.c (do_output_reload): Check reg_reloaded_valid before
6991 looking at reg_reloaded_contents.
6993 2000-02-26 Zack Weinberg <zack@wolery.cumb.org>
6995 * Makefile.in (STMP_FIXINC): New toggle.
6996 (LIBGCC2_DEPS): Delete all references.
6997 (stmp-headers): Delete target. All references either deleted
6998 or changed to stmp-int-headers.
6999 (all.cross): Don't depend on stmp-headers or STMP_FIXPROTO.
7000 (LIBCPP_OBJS): Take out cppalloc.o.
7001 (cppalloc.o): Delete target.
7002 (stmp-int-hdrs): Depend on $(STMP_FIXINC).
7003 (gen-protos, fix-header): Link with libiberty.a.
7004 * build-make: Don't change FIXINCLUDES. Override STMP_FIXINC
7007 * configure.in: Remove refs to strerror.
7008 * acconfig.h: Take out NEED_DECLARATION_STRERROR.
7009 * system.h: Take out strerror stanza.
7011 * cpperror.c (my_strerror): Delete function.
7012 (cpp_error_from_errno, cpp_notice_from_errno): Use xstrerror.
7013 * cppmain.c (main): Call xmalloc_set_program_name first thing.
7014 * cppalloc.c: Delete file.
7015 * gen-protos.c: Don't provide xrealloc.
7017 * fixinc/fixincl.c, fixinc/fixlib.c, fixinc/procopen.c: Use
7018 xstrerror throughout.
7020 2000-02-26 Bruce Korb <bkorb@gnu.org>
7022 * fixinc/inclhack.def (undefine_null): the bypass pattern needs to
7023 match for DOS headers, too.
7024 * fixinc/inclhack.sh,fixincl.x: Regenerate.
7026 2000-02-26 Geoff Keating <geoffk@cygnus.com>
7028 * config/elfos.h (ASM_OUTPUT_LABELREF): Don't define. The default
7029 is right for most ELF targets.
7030 * config/ns32k/ns32k.h (ASM_OUTPUT_LABELREF): Don't define.
7031 Let the default file use %U properly.
7032 * config/sh/elf.h (ASM_OUTPUT_LABELREF): Don't define. Use the
7035 * config/fp-bit.c (pack_d): Properly handle rounding of denormal
7038 Sat Feb 26 09:39:16 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7040 * toplev.c (documented_lang_options): Correct spelling error.
7041 (decode_d_option, decode_f_option, main): Likewise.
7043 * toplev.c (print_time): Avoid SIGFPE when all_time is zero.
7045 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): Use .set at
7046 to tell assembler it is permitted to expand large constants.
7048 2000-02-25 Mumit Khan <khan@xraylith.wisc.edu>
7050 * protoize.c: (AUX_INFO_SUFFIX): New macro.
7051 (aux_info_suffix): Use.
7052 (SAVE_SUFFIX): New macro.
7054 (munge_compile_parms): Fix typo in NUL. DJGPP supports /dev/null.
7055 (gen_aux_info_file): Use aux_info_suffix instead of ".X".
7056 (edit_file): Handle 8.3 restriction for DOS/DJGPP filenames.
7058 * invoke.texi (Running Protoize): Update documentation.
7060 2000-02-25 Mark Elbrecht <snowball3@bigfoot.com>
7062 * i386/djgpp.h (CPP_PREDEFINES): Remove Unix defines.
7064 2000-02-25 John Wehle (john@feith.com)
7066 * rtlanal.c (find_last_value): Allow NULL_RTX for valid_to.
7068 2000-02-25 Anthony Green <green@cygnus.com>
7070 * toplev.c (rest_of_compilation): Rebuild jump labels if
7071 combine_instructions has created a new direct jump.
7072 * combine.c (try_combine): Add new_direct_jump_p argument. Set it
7074 (combine_instructions): Call try_combine with new argument.
7075 Return non-null value when new direct jump instruction is created.
7076 * rtl.h: combine_instructions returns an int.
7078 Fri Feb 25 19:49:08 2000 Jeffrey A Law (law@cygnus.com)
7080 * cse.c (cse_insn): Replace the PATTERN of the insn with an new
7081 jump when changing a computed jump into a jump to a known
7084 Fri Feb 25 19:22:44 2000 Graham Stott <grahams@rcp.co.uk>
7086 * resource.c (mark_referenced_resources): Changed use SET_DEST (...)
7087 to XEXP (..., 0) on RTL nodes which are not SET or CLOBBER.
7089 * i386.md (define_expand "clrstrsi"): Fix typo.
7091 Fri Feb 25 18:49:39 2000 "K. Richard Pixley" <rich@microunity.com>
7093 * rtl.texi: Fix typo.
7095 Fri Feb 25 20:02:35 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
7097 * sh.c (calc_live_regs): Multiply value assigned to *COUNT_PTR by
7098 UNITS_PER_WORD. Change caller initial_elimination_offset.
7099 (rounded_frame_size): Take into account that argument pushed has
7100 changed. Fix TARGET_ALIGN_DOUBLE problem.
7102 2000-02-25 Geoff Keating <geoffk@cygnus.com>
7104 * haifa-sched.c (schedule_block): Explain the real reason
7105 we delete REG_SAVE_NOTEs on the first insn of a block.
7106 Don't delete REG_SAVE_NOTES for NOTE_INSN_SETJMP.
7108 2000-02-24 Mark Mitchell <mark@codesourcery.com>
7110 * input.h (push_srcloc): New function.
7111 (pop_srcloc): Likewise.
7112 * toplev.c (push_srcloc): Define it.
7113 (pop_srcloc): Likewise.
7115 2000-02-24 Richard Henderson <rth@cygnus.com>
7117 * flow.c (life_analysis): When collecting reg info, clear
7120 Thu Feb 24 22:06:52 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
7122 Fix bug exposed by reload.c no longer rounding the frame
7123 size to BIGGEST_ALIGNMENT:
7124 * sh.c (rounded_frame_size): New function.
7125 (sh_expand_prologue, sh_expand_epilogue): Use it.
7126 (initial_elimination_offset): Likewise.
7128 Thu Feb 24 20:04:11 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
7130 Fix breakage from 6th Feb thread_prologue_and_epilogue_insns change:
7131 * sh-protos.h (sh_need_epilogue): Declare.
7132 * sh.c (sh_need_epilogue_known): New static variable.
7133 (sh_need_epilogue): New function.
7134 (function_epilogue): Clear need_epilogue_known.
7135 * sh.md (return): Split into expander / insn pattern.
7136 Make the expander conditional on ! sh_need_epilogue ().
7138 2000-02-24 Nathan Sidwell <nathan@codesourcery.com>
7140 * machmode.h (get_mode_alignment): Declare.
7141 (GET_MODE_ALIGNMENT): Call it.
7142 * stor-layout.c (get_mode_alignment): New function. Make
7143 sure alignment is always power of 2.
7145 2000-02-23 Zack Weinberg <zack@wolery.cumb.org>
7147 * i386.h: Remove useless definition of "I386" and misleading
7150 2000-02-23 Zack Weinberg <zack@wolery.cumb.org>
7152 * tree.h (TREE_SET_PERMANENT): New macro. Document conditions
7153 under which TREE_PERMANENT will be set.
7154 * tree.c (make_node, copy_node, make_tree_vec, tree_cons,
7155 build1): Use TREE_SET_PERMANENT.
7156 * print-tree.c (print_node): Don't report value of
7157 TREE_PERMANENT if ggc_p is true.
7159 * c-common.c (c_get_alias_set): Don't use TREE_PERMANENT to
7160 decide whether to give a type a new alias set.
7161 * objc/objc-act.c (build_objc_string_object): Never copy the string.
7162 * tree.c (make_node): Set DECL_IN_SYSTEM_HEADER irrespective
7163 of value of 'obstack'.
7166 2000-02-24 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
7168 * config/c4x/c4x.c (c4x_process_after_reload): Split all insns.
7170 2000-02-23 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
7172 * cpplib.h (enum cpp_token): Added CPP_WCHAR and CPP_WSTRING.
7173 * cpplib.c (cpp_get_token): Produce them.
7174 * cppexp.c (cpp_lex): Handle them.
7176 2000-02-23 Nick Clifton <nickc@cygnus.com>
7178 * config/arm/arm.c (arm_comp_type_attributes): Simply and
7179 comment tests on type attributes.
7181 Wed Feb 23 16:42:21 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
7183 * final.c (shorten_branches): Make value passed to LOOP_ALIGN
7184 conform to documentation.
7185 * sh.h (LOOP_ALIGN): If aligning loops, call sh_loop_align
7186 to check for special cases.
7187 * sh-protos.h (sh_loop_align): Declare.
7188 * sh.c (sh_loop_align): Define.
7190 2000-02-22 Andrew Haley <aph@cygnus.com>
7192 * config/mips/mips.h (GAS_ASM_SPEC): Pass -mgp32/-mgp64 to gas.
7193 (SIZE_TYPE): Is 32 bits when using -mgp32.
7194 (PTRDIFF_TYPE): Ditto.
7196 Wed Feb 23 07:26:27 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7198 * diagnostic.c (init_output_buffer): Handle case of null PREFIX.
7200 2000-02-23 Zack Weinberg <zack@wolery.cumb.org>
7202 * config/i386/i386.h: If IN_TARGET_LIBS is defined, make
7203 BIGGEST_FIELD_ALIGNMENT a constant.
7205 2000-02-21 Jason Merrill <jason@casey.cygnus.com>
7207 * dwarf2out.c (output_line_info): Put the marker for the end of
7208 the line number info at the actual end.
7209 (gen_struct_or_union_type_die): Use decl_function_context
7210 to check for local classes.
7211 * dwarfout.c (output_type): Likewise.
7213 Tue Feb 22 01:38:57 2000 Jeffrey A Law (law@cygnus.com)
7215 * pa.h (FUNCTION_ARG_PASS_BY_REFERENCE): Handle pass-by-reference
7216 for arguments with a mode, but no type.
7217 (FUNCTION_ARG_CALLEE_COPIES): Similarly.
7218 * t-pa (LIB2FUNCS_EXTRA): Add quadlib.asm.
7219 * pa/long_double.h: New file.
7220 * configure.in (hpux10, hpux11 configurations): hpux10 and hpux11
7221 both have 128bit wide long doubles.
7222 * configure: Rebuilt.
7224 2000-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7226 * defaults.h (ASM_OUTPUT_ASCII): Constify a char*.
7228 * flow.c (get_common_dest, chain_reorder_blocks, make_reorder_chain,
7229 fixup_reorder_chain, skip_insns_between_block): Add static prototypes.
7230 (life_analysis): Wrap variable `i' with macro ELIMINABLE_REGS.
7232 * haifa-sched.c (rank_for_schedule): Don't cast away const-ness.
7234 * integrate.c (compare_blocks, find_block): Likewise.
7236 * rtl.c (fatal_with_file_and_line): Add ATTRIBUTE_PRINTF_2.
7238 * rtl.h (set_file_and_line_for_stmt): Constify a char*.
7240 * stmt.c (stmt_status, set_file_and_line_for_stmt,
7241 expand_asm_operands): Likewise.
7243 Mon Feb 21 17:06:27 2000 Jason Eckhardt <jle@cygnus.com>
7245 * predict.c (estimate_probability): Added the pointer heuristic to
7246 the collection of static branch predictors.
7248 2000-02-21 Catherine Moore <clm@cygnus.com>
7250 * config/mips/mips.h (ASM_SPEC): Add -mfix700.
7251 * invoke.texi (-mfix7000): Document.
7253 2000-02-21 Gabriel Dos Reis <gdr@codesourcery.com>
7255 * diagnostic.c (init_output_buffer): Make it possible to output at
7256 least 32 characters if we're given a too long prefix.
7258 2000-02-20 Mark Mitchell <mark@codesourcery.com>
7260 * varasm.c (initializer_constant_valid_p): Call
7261 lang_expand_constant to simplify the constant.
7263 2000-02-20 Bruce Korb <bkorb@gnu.org>
7265 * fixinc/inclhack.def(stdio_va_list):
7266 typedef needs to be disabled.
7267 * fixinc/inclhack.sh: regen
7268 * fixinc/fixincl.x: regen
7270 2000-02-20 Geoff Keating <geoffk@cygnus.com>
7272 * print-rtl.c (print_rtx): Don't print addresses when
7273 flag_dump_unnumbered.
7275 2000-02-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7277 * sparc.c (sparc_output_scratch_registers): Mark parameter with
7279 (sparc_va_arg, sparc_flat_output_function_prologue,
7280 sparc_flat_output_function_epilogue): Cast value to unsigned in
7282 (sparc_emit_float_lib_cmp): Remove unused variable `cmp'.
7284 * sparc.md: Add default case in switch.
7286 2000-02-19 Richard Henderson <rth@cygnus.com>
7288 * c-typeck.c (add_pending_init): Don't abort for multiple
7289 fields at the same offset.
7290 (pending_init_member): Test the correct member.
7292 2000-02-19 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
7294 * except.c (start_dynamic_handler) : Use TYPE_MODE (integer_type_node)
7296 (start_catch_handler) : Same.
7298 2000-02-19 Brad Lucier (lucier@math.purdue.edu)
7300 * Makefile.in: Have flow.o depend on $(EXPR_H)
7302 Sat Feb 19 18:43:13 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7304 * c-common.c (decl_attributes): Set DECL_SIZE_UNIT.
7305 * c-decl.c (duplicate_decls, finish_enum): Likewise.
7306 (finish_decl): Remove -Wlarger-than code from here.
7307 * flags.h (id_clash_len): Now int.
7308 (larger_than_size): Now HOST_WIDE_INT.
7309 * fold-const.c (size_int_wide): No more HIGH parm; NUMBER is signed.
7310 Clean up checking to see if in table.
7311 (make_bit_field_ref): Remove extra parm to bitsize_int.
7312 * ggc-common.c (ggc_mark_tree_children): Mark DECL_SIZE_UNIT.
7313 * print-tree.c (print_node): Print DECL_SIZE_UNIT and TYPE_SIZE_UNIT.
7314 * stmt.c (expand_decl): Use DECL_SIZE_UNIT for stack checking size
7315 and for computing size of decl.
7316 * stor-layout.c (layout_decl): Set DECL_SIZE_UNIT.
7317 Move -Wlarger-than code to here.
7318 (layout_record): Remove extra arg to bitsize_int.
7319 Set TYPE_BINFO_SIZE_UNIT.
7320 (layout_union): Remove extra arg to bitsize_int.
7321 Use proper type for size of QUAL_UNION.
7322 (layout_type): Remove extra arg to bitsize_int.
7323 * toplev.c (id_clash_len): Now int.
7324 (larger_than_size): Now HOST_WIDE_INT.
7325 (decode_W_option): Clean up id-clash and larger-than- cases.
7326 * tree.c (get_identifier, maybe_get_identifier): Remove unneeded casts.
7327 (expr_align, case FUNCTION_DECL): DECL_ALIGN is not defined.
7328 * tree.h (BINFO_SIZE_UNIT, TYPE_BINFO_SIZE_UNIT, DECL_SIZE_UNIT): New.
7329 (struct tree_decl): New field size_unit.
7330 (size_int_wide): No HIGH operand; NUMBER is now signed.
7331 (size_int_2): Deleted.
7332 (size_int, bitsize_int): Don't use it and rework args.
7333 * varasm.c (assemble_variable, output_constructor): Use DECL_SIZE_UNIT.
7335 Fri Feb 18 20:01:58 2000 Jeffrey A Law (law@cygnus.com)
7337 * pa/quadlib.asm (_U_QFgt, _U_Qfge): Fix flags for _U_Qfcmp call.
7339 2000-02-18 Geoff Keating <geoffk@cygnus.com>
7341 * invoke.texi (Warning Options): Add an explanation of why
7342 you might want the -Wfloat-equal flag.
7344 Fri Feb 18 20:08:57 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7346 * bitmap.c (bitmap_operation): Avoid using -1 for index since unsigned.
7347 * cppinit.c (new_pending_define): Add cast to avoid warning.
7348 * expmed.c (extract_bit_field): Likewise.
7349 * flow.c (enum reorder_skip_type): New type.
7350 (skip_insns_between_blcok): New it.
7351 Rework to avoid warning about possibly undefined variable.
7352 * function.c (assign_parms): Make thisparm_boundary unsigned.
7353 * genrecog.c (write_switch): Cast XWINT result to int.
7354 * lcm.c: Many static fcns and vars now #ifdef OPTIMIZE_MODE_SWITCHING.
7355 * mips-tfile.c (init_file): Make two versions of FDR intializer:
7356 one for MIPS and one for Alpha.
7357 (get_tag, copy_object): Add casts to avoid warnings.
7358 * optabs.c (init_one_libfunc): Cast NAME to (char *).
7359 * reload.c (find_reloads): Make TYPE enum reload_type.
7360 * sbitmap.c (dump_sbitmap): J is unsigned; don't use "1L".
7361 * unroll.c (unroll_loop): Initialize UNROLL_NUMBER.
7362 * varasm.c (compare_constant_1): Add cast to avoid warning.
7363 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Cast FUNC
7365 (alpha_expand_unaligned_load, alpha_expand_unaligned_store):
7366 Cast switch operand of size to int.
7367 (alpha_expand_epilogue): Always initialize fp_offset and sa_reg.
7368 * config/alpha/alpha.h (INITIAL_ELIMINATION_OFFSET): Add abort
7371 2000-02-18 Nick Clifton <nickc@cygnus.com>
7373 * config/arm/elf.h (ASM_OUTPUT_ALIGN): Do not generate
7374 anything for an alignment of zero.
7376 * config/arm/thumb.h (ASM_OUTPUT_ALIGN): Do not generate
7377 anything for an alignment of zero.
7379 2000-02-18 Martin von Loewis <loewis@informatik.hu-berlin.de>
7381 * gcc.texi (Bug Reporting): Refer to bugs.html.
7382 (Bug Lists): Likewise.
7383 * system.h (GCCBUGURL): New preprocessor define.
7384 * rtl.c (fancy_abort): Use it.
7385 * gcc.c (main): Likewise.
7387 2000-02-18 Richard Henderson <rth@cygnus.com>
7389 * flow.c (INSN_VOLATILE, SET_INSN_VOLATILE, uid_volatile): Remove.
7390 (life_analysis_1): Subsume into ...
7391 (life_analysis): ... here. Force PROP_REG_INFO off after reload.
7392 Use update_life_info for the relaxation.
7393 (update_life_info): Update REG_BASIC_BLOCK for registers live on
7394 entry and regs_live_at_setjmp.
7395 (set_noop_p): Simplify.
7396 (notice_stack_pointer_modification_1): Renamed from s/_1//.
7397 (record_volatile_insns): Split into ...
7398 (delete_noop_moves): ... here,
7399 (notice_stack_pointer_modification): ... here,
7400 (insn_dead_p): ... and here.
7401 (propagate_block): Don't query INSN_VOLATILE.
7402 (mark_used_regs): Mind !PROP_REG_INFO.
7403 * toplev.c (rest_of_compilation): Call mark_constant_function here,
7404 not in life_analysis.
7406 Fri Feb 18 01:29:22 EST 2000 John Wehle (john@feith.com)
7408 * loop.c (canonicalize_condition): New function,
7409 broken out of get_condition.
7410 (get_condition): Use it.
7411 * expr.h (canonicalize_condition): Prototype it.
7413 * tree.h (tree_int_cst_msb): Declare.
7414 * tree.c (tree_int_cst_msb): New function.
7416 2000-02-17 Mark Mitchell <mark@codesourcery.com>
7418 * stmt.c (set_file_and_line_for_stmt): Don't crash if cfun->stmt
7421 * invoke.texi (-fmessage-length=n): Document.
7423 2000-02-17 Jason Merrill <jason@casey.cygnus.com>
7425 * bitmap.c (bitmap_operation): Don't leak bitmap elements.
7427 2000-02-17 Mark Mitchell <mark@codesourcery.com>
7429 * function.c (thread_prologue_and_epilogue_insns): Put a line note
7432 2000-02-17 Nick Clifton <nickc@cygnus.com>
7434 * config/arm/thumb.c: Replace includes of system headers with
7435 #include "system.h".
7437 2000-02-16 Richard Henderson <rth@cygnus.com>
7439 * configure.in (alpha-linux*, alpha-netbsd) [extra_parts]:
7440 Add crtbeginS.o and crtendS.o.
7441 * alpha/elf.h (STARTFILE_SPEC): Use crtbeginS.o.
7442 (ENDFILE_SPEC): Use crtendS.o.
7443 * alpha/t-crtbe (crtbeginS.o, crtendS.o): New targets.
7445 * alpha/crtbegin.asm (__do_frame_takedown): Merge into ...
7446 (__do_global_dtors_aux): ... here. Call __cxa_finalize if
7448 (__dso_handle): New variable.
7449 * alpha/crtend.asm (__do_global_ctors_aux): Remove runtime
7450 bias to __CTOR_END__.
7452 2000-02-16 Richard Henderson <rth@cygnus.com>
7454 * Makefile.in (s-crtS, crtbeginS, crtendS): Prefix usage with $(T).
7456 Wed Feb 16 21:40:04 2000 Hans-Peter Nilsson <hp@bitrange.com>
7458 * longlong.h (__clz_tab): Declare as static to match definition.
7460 2000-02-16 Mark Elbrecht <snowball3@bigfoot.com>
7461 * i386/xm-djgpp.h (LIBSTDCXX): Delete. Moved to config/i386/djgpp.h.
7462 (XREF_FILE_NAME): Define.
7464 * i386/djgpp.h (DATA_SECTION_ASM_OP): Define.
7465 (EH_FRAME_SECTION_ASM_OP): Define.
7466 (IDENT_ASM_OP): Define.
7467 (TEXT_SECTION_ASM_OP): Define.
7469 (CTORS_SECTION_ASM_OP): Define.
7470 (CTOR_SECTION_FUNCTION): Use it.
7471 (DTORS_SECTION_ASM_OP): Define.
7472 (DTOR_SECTION_FUNCTION): Use it.
7474 2000-02-16 Zack Weinberg <zack@wolery.cumb.org>
7476 * reg-stack.c (emit_swap_insn): Do not put a new insn before a
7479 * flow.c (dump_regset, debug_regset, dump_bb, debug_bb,
7480 debug_bb_n): New functions.
7481 (dump_flow_info, print_rtl_with_bb): Use dump_regset.
7482 * basic-block.h: Prototype new functions.
7484 Wed Feb 16 21:07:53 2000 Denis Chertykov <denisc@overta.ru>
7486 * configure.in: Add support for avr target.
7487 * configure: Rebuilt.
7489 * invoke.texi: Add AVR invocation docs.
7490 * install.texi: Add information about AVR.
7491 * md.texi: Add AVR constraint letters description.
7492 * extend.texi: Add description for AVR specific attributes.
7494 2000-02-16 Jason Merrill <jason@casey.cygnus.com>
7496 * fixinc/fixinc.svr4: Wrap byteorder.h with extern "C".
7498 2000-02-16 Nick Clifton <nickc@cygnus.com>
7500 * emit-rtl.c (emit_insn): Move RTL check into make_insn_raw.
7501 (make_insn_raw): Move RTL check here.
7503 2000-02-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7505 * version.c: Include gansidecl.h and version.h.
7507 * version.h: Wrap entire file in macro __GCC_VERSION_H__.
7509 * configure.in (gcc_version): When setting, narrow search to
7510 lines containing `version_string'.
7512 * Makefile.in (mainversion): Likewise.
7513 (GCC_H): New variable.
7514 (gcc.h): Delete target.
7515 (gcc.o, gccspec.o, cppspec.o): Depend on $(GCC_H), not gcc.h.
7516 (version.o): Depend on version.h.
7517 (dbxout.o): Don't depend on gcc.h.
7519 Wed Feb 16 15:04:49 2000 Hans-Peter Nilsson <hp@bitrange.com>
7520 Michael Meissner <meissner@cygnus.com>
7522 * md.texi (Simple Constraints): Add item about whitespace.
7523 * genoutput.c (strip_whitespace): New.
7524 (scan_operands) [MATCH_OPERAND, MATCH_SCRATCH]: Call
7525 strip_whitespace for constraints.
7526 Test pointer using NULL, not 0.
7528 2000-02-16 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
7530 * cpplib.c (do_line): Pedwarn for #line > 32767.
7532 * c-lex.c (readescape): Warn about '\x', but do not reject it.
7534 2000-02-15 Jonathan Larmour <jlarmour@redhat.co.uk>
7536 * gcc.c (default_compilers): Add new __GNUC_PATCHLEVEL__ define
7537 to default cpp spec.
7538 (do_spec_1): Add support for %v3 spec used by __GNUC_PATCHLEVEL__.
7539 * cpp.texi: Document __GNUC_PATCHLEVEL__.
7542 * objc/lang-specs.h: Add new __GNUC_PATCHLEVEL__ define to
7545 2000-02-15 Denis Chertykov <denisc@overta.ru>
7547 * configure.in: Add support for avr target.
7549 Wed Feb 16 03:21:43 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
7551 * sh.h (OVERRIDE_OPTIONS): Don't set sh_addr_diff_vec_mode.
7552 (sh_addr_diff_vec_mode): Don't declare.
7553 * sh.c (sh_addr_diff_vec_mode): Delete.
7555 Wed Feb 16 01:27:52 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
7557 * sh.md (mulsi3_highpart): Add REG_EQUAL note to last insn.
7559 Wed Feb 16 00:58:06 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
7561 * sh.md (udivsi3_i1, divsi3_i1, umulhisi3_i, mulhisi3_i): Name.
7562 (smulsi3_highpart_i): Name.
7563 (udivsi3): Wrap emitted insns in REG_LIBCALL / REG_RETVAL notes.
7564 (divsi3, mulhisi3, umulhisi3, mulsidi3, umulsidi3): Likewise.
7565 (smulsi3_highpart, umulsi3_highpart): Likewise.
7567 (mulsidi3_i, umulsidi3_i): Make rtl describe operation
7568 correctly independent of endianness.
7569 (mulsidi3, umulsidi3): Now define_insn. Hide details that
7570 confuse the optimizers.
7571 (mulsidi3+1, umulsidi3+1): New define_split.
7573 Tue Feb 15 23:22:26 2000 Andrew Haley <aph@cygnus.com>
7575 * config/sh/sh.md: Guard insn splits against illegal registers.
7576 * config/sh/sh.h: Correct comment about macros.
7578 Tue Feb 15 22:30:36 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
7579 Andrew MacLeod <amacleod@cygnus.com>
7581 * Makefile.in (lcm.o): Depend on insn-attr.h.
7582 * basic-block.h (optimize_mode_switching): Declare.
7583 * lcm.c (tm_p.h, insn-attr.h): #include.
7584 (seginfo, bb_info): New structs.
7585 (antic, transp, comp, delete, insert) : New file-scope static variables.
7586 (new_seginfo, add_seginfo, make_preds_opaque, reg_dies): New functions.
7587 (reg_becomes_live, optimize_mode_switching): Likewise.
7588 * tm.texi: Add description of mode switching macros.
7589 * toplev.c (rest_of_compilation): Call optimize_mode_switching.
7591 * sh-protos.h (remove_dead_before_cse): Remove prototype.
7592 (fldi_ok, fpscr_set_from_mem): New prototypes.
7593 * sh.h (OPTIMIZATION_OPTION): Remove sh_flag_remove_dead_before_cse set.
7594 (CONST_DOUBLE_OK_FOR_LETTER_P, SECONDARY_INPUT_RELOAD_CLASS):
7595 Disable fldi for (TARGET_SH4 && ! TARGET_FMOVD).
7596 (sh_flag_remove_dead_before_cse): Remove declaration.
7597 (NUM_MODES_FOR_MODE_SWITCHING, OPTIMIZE_MODE_SWITCHING): New macros.
7598 (MODE_USES_IN_EXIT_BLOCK, MODE_NEEDED, MODE_AT_ENTRY): Likewise.
7599 (MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
7600 * sh.c (broken_move): Disable fldi for (TARGET_SH4 && ! TARGET_FMOVD).
7601 (barrier_align): Allow for JUMP_INSNS containing a parallel.
7602 (machine_dependent_reorg): Remove sh_flag_remove_dead_before_cse set.
7603 (fldi_ok): New function.
7604 (get_fpscr_rtx): Add fpscr_rtx as GC root.
7605 (emit_sf_insn): Only generate fpu switches when optimize < 1.
7606 (emit_df_insn): Likewise.
7607 (expand_fp_branch, emit_fpscr_use, remove_dead_before_cse): Delete.
7608 (sh_flag_remove_dead_before_cse): Delete.
7609 (get_free_reg, fpscr_set_from_mem): New functions.
7610 * sh.md (movdf, movsf): Remove no_new_pseudos code.
7611 (return): Remove emit_fpscr_use / remove_dead_before_cse calls.
7613 2000-02-15 Loren Rittle <ljrittle@acm.org>
7615 * ginclude/stddef.h: Correct usage of _BSD_RUNE_T_ for FreeBSD.
7617 2000-02-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7619 * Makefile.in (TREE_H, collect2.o, gcc.h, mips-tfile.o, cccp.o,
7620 cpphash.o, cppinit.o, protoize.o, unprotoize.o): Depend on version.h.
7622 * cccp.c: Include version.h and/or don't declare `version_string'.
7623 * collect2.c: Likewise.
7624 * alpha.c: Likewise.
7625 * arm/aof.h: Likewise.
7626 * arm/coff.h: Likewise.
7627 * arm/elf.h: Likewise.
7628 * arm/pe.h: Likewise.
7629 * arm/tcoff.h: Likewise.
7630 * arm/telf.h: Likewise.
7631 * arm/tpe.h: Likewise.
7632 * arm/vxarm.h: Likewise.
7633 * convex/convex.c: Likewise.
7634 * i386/dgux.c: Likewise.
7635 * i386/sun386.h: Likewise.
7636 * m88k/m88k.c: Likewise.
7637 * mcore/mcore-pe.h: Likewise.
7638 * mips/mips.h: Likewise.
7639 * romp/romp.h: Likewise.
7640 * sh/sh.c: Likewise.
7641 * cpphash.c: Likewise.
7642 * cppinit.c: Likewise.
7643 * dwarf2out.c: Likewise.
7644 * dwarfout.c: Likewise.
7647 * mips-tfile.c: Likewise.
7648 * protoize.c: Likewise.
7649 * toplev.c: Likewise.
7652 * version.c (version_string): Constify a char*.
7654 * version.h: New file.
7656 2000-02-14 Nick Clifton <nickc@cygnus.com>
7658 * configure.in: Add mcore-elf and mcore-pe targets.
7659 * configure: Regenerate.
7661 * NEWS: Add note that MCore port has been contributed.
7663 * invoke.texi: Document command line switches for MCore port.
7664 * install.texi: Add MCore to list of supported targets.
7666 2000-02-14 Geoff Keating <geoffk@cygnus.com>
7668 * collect2.c (main) [COLLECT_EXPORT_LIST]: If we have frames,
7669 then we will need to import the frame handling functions.
7670 (scan_prog_file) [COLLECT_EXPORT_LIST]: We will also need
7671 to import the frames themselves.
7673 Mon Feb 14 13:31:01 2000 Stan Cox <scox@cygnus.com>
7674 Jason Eckhardt <jle@cygnus.com>
7676 * basic_block.h: Added prototype for reorder_basic_blocks.
7677 * toplev.c: Changes to add -freorder-blocks and graph dump after
7678 block reordering is done.
7679 * flow.c (reorder_block_def): New structure for use during block
7681 (REORDER_BLOCK_*): New macros to access members of above structure.
7682 (skip_insns_between_block, get_common_dest, chain_reorder_blocks,
7683 make_reorder_chain, fixup_reorder_chain, reorder_basic_blocks): New
7684 functions for block reordering.
7686 Mon Feb 14 11:24:44 2000 Hans-Peter Nilsson <hp@bitrange.com>
7688 * gcc.texi (Passes): Fix typo.
7689 * md.texi (Standard Names): Ditto.
7690 * tm.texi (Storage Layout): Ditto.
7692 2000-02-13 Zack Weinberg <zack@wolery.cumb.org>
7694 * cpplib.c (do_define): Only free the old definition if it
7697 2000-02-13 Neil Booth <NeilB@earthling.net>
7699 * cppfiles.c (read_and_prescan): When emitting deferred
7700 newlines, test speccase[] again instead of checking each
7701 possible whitespace character in turn. When we encounter \r,
7702 look behind for \n first, then ahead.
7704 2000-02-13 Zack Weinberg <zack@wolery.cumb.org>
7706 * cse.c (cse_altered): New internal flag.
7707 (cse_insn): Set it if we changed an insn.
7708 (cse_main): Clear cse_altered before each basic block.
7709 Only garbage collect if cse_altered is true afterward.
7711 Sun Feb 13 14:12:28 2000 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7713 * sparc/sol2.h (LIB_SPEC): Link -ldl if profiling.
7715 Sun Feb 13 13:21:55 2000 Jeffrey A Law (law@cygnus.com)
7717 * combine.c (simplify_comparison): Fix typo.
7719 Sun Feb 13 12:57:52 2000 Neil Booth <NeilB@earthling.net>
7721 * prefix.c (concat, lookup_key): Use xmalloc and xrealloc
7724 2000-02-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
7726 * flow.c (flow_loop_tree_node_add): Use better algorithm by passing
7727 previously inserted node instead of root node. Caller changed.
7729 2000-02-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
7731 * basic-block.h (FLOW_LOOP_FIRST_BLOCK, FLOW_LOOP_LAST_BLOCK): Delete.
7733 2000-02-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7735 * crtstuff.c (__do_global_ctors_aux, __reg_frame_ctor,
7736 __dereg_frame_dtor): Add prototype argument.
7738 * gthr-dce.h (__gthread_active_p, __gthread_once): Likewise.
7740 * gthr-posix.h (__gthread_active_p, __gthread_once): Likewise.
7742 * gthr-solaris.h (__gthread_active_p, __gthread_once): Likewise.
7744 * gthr-vxworks.h (__gthread_once): Likewise.
7746 * gthr-win32.h (__gthread_active_p, __gthread_once): Likewise.
7748 Sat Feb 12 01:44:26 MET 2000 Jan Hubicka <jh@suse.cz>
7750 * i386.c (ix86_emit_restore_regs_using_mov): Break out from ...
7751 (ix86_expand_epilogue): ... here. Use mov instead of add to restore
7752 stack pointer in functions w/o saved registers, output LEAVE more often
7753 on TARGET_USE_LEAVE machines.
7755 2000-02-07 Dmitri Makarov <dim@wrs.com> & Bernd Schmidt <bernds@redhat.com>
7757 * config/arm/arm.c (arm_init_cumulative_args); New function:
7758 Initlaise the CUMULATIE_ARGS strcuture for a function
7760 (arm_function_arg): New function: Determine where to place a
7761 function's argument. Also handles deciding the function's
7763 (current_file_function_operand): New function: Return true if
7764 the symbol is a function which has already been compiled.
7765 (arm_is_long_call_p): New function: Return true if the
7766 indicated function should be called via a long call.
7767 (arm_valid_type_attribute_p): New function: Return true if the
7768 attribute is a valid, arm specific, attribute.
7769 (arm_comp_type_attribute): New function: Return true if the
7770 two types have compatable, arm specific, attributes.
7772 * config/arm/arm.h (CUMULATIVE_ARGS): Redefine to be a
7774 (FUNCTION_ARG): Redefine to call arm_function_arg.
7775 (FUNCTION_ARG_PARTIAL_NREGS): Redefine to use correct
7777 (INIT_CUMULATIVE_ARGS): Redefine to call
7778 arm_init_cumulative_args.
7779 (FUNCTION_ARG_ADVANCE): Redefine to use correct structure
7781 (SETUP_INCOMING_VARARGS): Redefine to use correct structure
7783 (ARM_MARK_NEARBY_FUNCTION): New macro: Mark already compiled
7785 (ENCODE_SECTION): Add call to ARM_MARK_NEARBY_FUNCTION.
7786 (VALID_MACHINE_TYPE_ATTRIBUTE): Define.
7787 (COMP_TYPE_ATTRIBUTES): Define.
7789 * config/arm/arm.md (call): Call arm_is_long_call_p to decide
7790 if a long call is needed.
7791 (call_value): Call arm_is_long_call_p to decide if a long call
7793 (call_symbol): Call arm_is_long_call_p to decide if a long call
7796 * config/arm/arm-protos.h: Add prototype for arm_is_long_call_p.
7798 2000-02-11 Denis Chertykov <denisc@overta.ru>
7800 * README.AVR: New file with information about the avr ports.
7801 * config/avr: New directory with avr port files.
7803 2000-02-11 Andreas Jaeger <aj@suse.de>
7805 * fixinc/Makefile.in (FIXINC_DEFS): Remove unneeded @fixinc_defs@.
7807 2000-02-11 Zack Weinberg <zack@wolery.cumb.org>
7809 * cpphash.c: Fix formatting, update commentary.
7810 (dump_definition): Take three separate arguments instead of a
7811 MACRODEF structure argument.
7812 * cpphash.h: Update prototype of dump_definition.
7813 * cppinit.c (cpp_finish): Update call of dump_definition.
7815 * cpplib.c (do_define): Always create new hash entry with
7816 T_MACRO type. Remove redundant check for redefinition of
7817 poisoned identifier. Update call of dump_definition.
7818 (do_undef): Don't call check_macro_name. Rename sym_length to
7820 (do_error, do_warning): Don't use copy_rest_of_line or
7822 (do_warning): Don't use pedwarn for the actual warning,
7823 only the notice about its not being in the standard. (Fixes
7824 bug with #warning in system headers.)
7825 (do_ident): Stricter argument checking - accept only a single
7826 string after #ident. Also, macro-expand the line.
7827 (do_xifdef): Use cpp_defined. De-obfuscate.
7829 (do_pragma): Split out specific pragma handling to separate
7830 functions. Use get_directive_token. Update commentary. Do
7831 not pass on #pragma once or #pragma poison to the front end.
7832 (do_pragma_once, do_pragma_implementation, do_pragma_poison,
7833 do_pragma_default): New.
7835 Feb 11 12:30:53 2000 Jeffrey A Law (law@cygnus.com)
7837 * jump.c (jump_optimize_1): The first operand in a relational
7839 * optabs.c (emit_conditional_move): Handle relationals which
7840 have a known true/false result.
7842 2000-02-11 Geoff Keating <geoffk@cygnus.com>
7844 * function.c (thread_prologue_and_epilogue_insns): Don't insert
7845 a RETURN insn into a block which already ends with a jump.
7847 2000-02-11 Geoff Keating <geoffk@cygnus.com>
7849 * haifa-sched.c (BUF_LEN): Increase a lot.
7851 2000-02-11 Nick Clifton <nickc@cygnus.com>
7853 * configure.in: Add tm_p_file specification for thumb targets.
7854 * configure: Regenerate.
7856 * config/arm/thumb-protos.h: New file: Prototypes for exported
7857 functions defined in thumb.c.
7859 2000-02-11 Robert Lipe <robertl@sco.com>
7861 * Makefile.in (bootstrap-lean): Remove additional files.
7862 (bootstrap2-lean): Likewise.
7863 (VOL_FILES): List of files for above.
7865 2000-02-11 Nathan Sidwell <nathan@acm.org>
7867 * cpphash.c (special_symbol): Remove spurious argument to
7870 2000-02-11 Joel Sherrill (joel@OARcorp.com>
7872 * configure.in: (i*86-*-rtems*): Swapped elf and coff
7874 * configure: Rebuilt.
7876 2000-02-11 Rodney Brown <RodneyBrown@pmsc.com>
7878 * pa-protos.h: Wrap function_arg_padding in TREE_CODE #ifdef.
7880 Fri Feb 11 02:59:05 2000 Jeffrey A Law (law@cygnus.com)
7882 * pa.c, pa.h: Remove trigraph sequences within comments.
7884 Fri Feb 11 02:51:56 2000 Pavel Roskin <pavel_roskin@geocities.com>
7886 * invoke.texi (PPC Options): -mno-new-mnenomics -> -mold-mnemonics.
7888 Fri Feb 11 02:48:30 2000 Brad Lucier (lucier@math.purdue.edu)
7890 * sbitmap.h: Make SBITMAP_ELT_BITS unsigned.
7892 2000-02-11 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
7894 * config/c4x/c4x.c (fp_zero_operand): Check for CONST_DOUBLE.
7896 2000-02-11 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
7898 * config/c4x/c4x.h (ASM_GLOBALIZE_LABEL): Use c4x_global_label.
7899 (ASM_OUTPUT_EXTERNAL): Use c4x_external_ref.
7900 (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
7901 (ASM_FILE_END): Use c4x_file_end.
7902 * config/c4x/c4x.c (c4x_global_label): New function.
7903 (c4x_external_ref, c4x_file_end): Likewise.
7905 * config/c4x/c4x-protos.h (c4x_global_label): Add prototype.
7906 (c4x_external_ref, c4x_end_file): Likewise.
7908 2000-02-10 Zack Weinberg <zack@wolery.cumb.org>
7910 * cppexp.c: Don't include cpphash.h.
7911 (parse_charconst, cpp_lex): Use cpp_defined.
7912 (cpp_lex): Use get_directive_token throughout. Remove
7913 unnecessary cases from switch. Move assertion-handling code
7915 (cpp_parse_expr): If we see '+' or '-', check the context to
7916 determine if they are unary or binary operators. Streamline
7917 the jumps a bit. Do not call skip_rest_of_line.
7919 * cpplib.c: Make skip_rest_of_line and cpp_skip_hspace
7920 static. Export get_directive_token. Update commentary.
7921 (cpp_defined): New function.
7922 (do_define): Remove reference to T_PCSTRING. Call
7923 free_definition to release memory for old definition, when
7925 (eval_if_expression): Set only_seen_white to 0 before calling
7926 cpp_parse_expr. Call skip_rest_of_line after it returns.
7927 (cpp_read_check_assertion): Don't preserve a pointer into the
7928 token buffer across a call to cpp_get_token.
7930 * Makefile.in (cppexp.o): Don't depend on cpphash.h.
7931 * cppfiles.c (redundant_include_p): Use cpp_defined.
7932 * cpphash.c (free_definition): New function.
7933 (delete_macro): Use it. Update commentary.
7934 * cpphash.h: Typedef HASHNODE here. Prototype cpp_lookup and
7936 * cpplib.h: Don't typedef HASHNODE here. Delete T_PCSTRING
7937 from enum node_type. Prototype cpp_defined and get_directive_token.
7938 Don't prototype cpp_lookup, skip_rest_of_line, or cpp_skip_hspace.
7940 * fix-header.c (check_macro_names): Use cpp_defined.
7941 (read_scan_file): Set inhibit_warnings and inhibit_errors in
7942 the options structure.
7944 2000-02-10 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7946 * c-pragma.c (maximum_field_alignment): Remove duplicate declaration.
7948 2000-02-10 Jason Merrill <jason@casey.cygnus.com>
7950 * dwarf2out.c (add_abstract_origin_attribute): Check TREE_CODE (origin)
7951 rather than die->die_tag.
7953 Thu Feb 10 16:26:49 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7955 * combine.c (make_extraction, force_to_mode): Avoid warning on
7956 mixed-signedness conditionals.
7957 (make_field_assignment, nonzero_bits): Likewise.
7958 * expmed.c (store_fixed_bit_field): ALIGN arg now unsigned.
7959 (store_split_bit_field, extract_split_bit_field): Likewise.
7960 (extract_fixed_bit_field, store_bit_field,
7961 * expr.c: Change alignment to be unsigned everywhere.
7962 (move_by_pieces, store_constructor_field, store_constructor):
7963 Alignment parm is unsigned.
7964 (emit_block_move, emit_group_load, emit_group_store): Likewise.
7965 (clear_storage, emit_push_insn, compare_from_rtx): Likewise.
7966 (do_compare_rtx_and_jump): Likewise.
7967 (move_by_pieces_ninsns, clear_by_pieces): Likewise.
7968 Compare align with GET_MODE_ALIGNMENT.
7969 (expand_expr_unaligned): Pointer to alignment is pointer to unsigned.
7970 (get_inner_reference): Likewise.
7971 (copy_blkmode_from_reg, emit_push_insn): Remove unneeded casts.
7972 (expand_assignment): Local vars for alignment now unsigned.
7973 (store_constructor, store_field, expand_expr, do_jump): Likewise.
7974 (do_compare_and_jump): Likewise.
7975 (store_field): Call new function expr_align.
7976 * expr.h (emit_block_move, emit_group_load, emit_group_store):
7977 Alignment arg now unsigned.
7978 (clear_storage, emit_push_insn, compare_from_rtx): Likewise.
7979 (do_compare_rtx_and_jump, store_bit_field): Likewise.
7980 (extract_bit_field): Likewise.
7981 * fold-const.c (add_double): Add cast to eliminate signedness warning.
7982 * machmode.h (GET_MODE_ALIGNMENT): Result is unsigned.
7983 (get_best_mode): Alignment arg is unsigned.
7984 * rtl.h (move_by_pieces): Likewise.
7985 * store-layout.c (maximum_field_alignment, set_alignment):
7987 (layout_decl): Alignment arg is now unsigned.
7988 Remove unneeded casts.
7989 (layout_record, layout_union, layout_type): Remove unneeded casts.
7990 Local alignment variables now unsigned.
7991 (get_best_mode): Alignment arg now unsigned.
7992 * tree.c (expr_align): New function.
7993 * tree.h (expr_align): Likewise.
7994 (maximum_field_alignment, set_alignment): Now unsigned.
7995 (get_inner_reference): Alignment argument is now pointer to unsigned.
7996 * varasm.c (assemble_variable): Add cast to eliminate warning.
7998 Thu Feb 10 12:56:47 2000 Jim Wilson <wilson@cygnus.com>
8000 * expmed.c (store_bit_field): If op0 and fieldmode are the same size,
8001 then store directly into op0.
8003 * calls.c (expand_call): When emitting a NOTE_INSN_SETJMP, search for
8004 the CALL_INSN, and emit the note immediately after it.
8006 2000-02-10 Nick Clifton <nickc@cygnus.com>
8008 * config/arm/thumb.md (epilogue): Include a (return) in the
8009 generated insn, and emit it using emit_jump_insn not
8012 Thu Feb 10 18:28:59 MET 2000 Jan Hubicka <jh@suse.cz>
8014 * function.c (assign_temp): Change zero-sized arrays to size 1.
8015 * integrate.c (expand_inline_function): Do not update
8016 stack_alignment_needed
8017 * i386.c (compute_frame_size): Remove #ifdef PREFERRED_FRAME_BOUNDARY,
8018 add some sanity checking, remove optimization for function with
8021 2000-02-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8023 * flow.c (mark_regs_live_at_end): Delete unused variables.
8025 * ggc-page.c (ggc_page_print_statistics): bzero -> memset.
8027 * integrate.c (copy_rtx_and_substitute): Wrap variable `alignment'
8028 in macro FRAME_GROWS_DOWNWARD.
8030 * stmt.c (expand_end_bindings): Delete unused variable.
8032 * unroll.c (iteration_info): Mark parameter `loop' with
8035 2000-02-10 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
8037 * fixinc/server.c (load_data): Return NULL if the marker line is
8039 (run_shell): If load_data returns NULL, retry the command once, in
8042 * configure: Rebuilt.
8044 2000-02-09 Bruce Korb <bkorb@gnu.org>
8046 * gcc/fixincludes: ** DELETED **
8047 * gcc/fixcpp: ** DELETED **
8048 * gcc/fixinc-nt.sed: ** DELETED **
8049 * gcc/just-fixinc: ** DELETED **
8050 * gcc/Makefile.in: Removed out-dated commentary
8051 * gcc/configure.in: Removed fast-fixincludes disablement.
8052 * MAINTAINERS(Ian Taylor) moved to "Write after approval" group.
8054 2000-02-09 Clinton Popetz <cpopetz@cygnus.com>
8055 * function.c (thread_prologue_and_epilogue_insns): Uncomment
8058 2000-02-09 Richard Henderson <rth@cygnus.com>
8060 * jump.c (delete_insn): Don't delete user labels at -O0.
8062 2000-02-09 Robert Lipe <robertl@sco.com>
8064 * Makefile.in (gen-protos): Don't depend on HOST_LIBDEPS.
8065 Don't link with HOST_LIBS.
8067 2000-02-09 Zack Weinberg <zack@wolery.cumb.org>
8069 * configure.in: Correct --help text for --with-dwarf2.
8070 Put tm-dwarf2.h after other tm files, if it's requested.
8071 * configure: Regenerate.
8072 * config/tm-dwarf2.h: #undef PREFERRED_DEBUGGING_TYPE before
8075 2000-02-09 Zack Weinberg <zack@wolery.cumb.org>
8077 * cpplib.h: Provide HASHNODE typedef and forward decl of
8078 struct hashnode only. Kill cpp_hashnode typedef. MACRODEF,
8079 DEFINITION, struct hashnode, struct macrodef, struct
8080 definition, scan_decls prototype, default defn of
8081 INCLUDE_LEN_FUDGE moved elsewhere.
8083 * cpphash.h: MACRODEF, DEFINITION, struct macrodef, struct
8084 definition, and struct hashnode moved here. Remove the unused
8085 'predefined' field from struct definition. Replace the 'args'
8086 union with its sole member. All users updated (cpphash.c).
8087 Delete HASHSTEP and MAKE_POS macros, and hashf prototype. Add
8088 multiple include guard.
8090 * cpphash.c (hashf): Make static; use better algorithm; drop
8091 HASHSIZE parameter; return an unsigned int.
8092 (cpp_lookup): Drop HASH parameter. PFILE parameter is
8093 used. Calculate HASHSIZE modulus here.
8094 (cpp_install): Drop HASH parameter. Calculate HASHSIZE modulus
8096 (create_definition): Drop PREDEFINITION parameter.
8097 * cpplib.c (do_define): Don't calculate a hash value here.
8098 Don't pass (keyword == NULL) to create_definition.
8100 * scan.h: Prototype scan_decls here.
8101 * cppfiles.c: Move INCLUDE_LEN_FUDGE default defn here.
8102 * cppexp.c, cppfiles.c, cppinit.c, cpplib.c, fix-header.c: All
8103 callers of cpp_lookup and cpp_install updated.
8105 * cpphash.c (macarg): Hoist all the flag diddling out of the
8107 (macroexpand): ... and out of the loop that calls macarg.
8108 Skip over the initial paren before macro arguments with
8109 cpp_get_non_space_token; point may be some distance before
8110 that paren. Abort if it's not there.
8112 * cpplib.c (parse_clear_mark): Delete function.
8113 (parse_set_mark, parse_goto_mark): Make static.
8114 (ACTIVE_MARK_P): New macro.
8115 (skip_block_comment, skip_line_comment): Do not bump the line
8116 if ACTIVE_MARK_P is true.
8117 (cpp_pop_buffer): The buffer to be popped may not have an
8119 (cpp_get_token): When looking for the initial paren before
8120 macro arguments, only set a mark in a file buffer, Always
8121 return to that mark before proceeding to call macroexpand or
8122 return a NAME token.
8124 * cpplib.h: Remove prototypes of parse_set_mark,
8125 parse_clear_mark, parse_goto_mark.
8126 (struct cpp_options): Rename 'put_out_comments' to
8127 'discard_comments' and invert its sense.
8128 * cppinit.c, cpphash.c, cpplib.c: All users of
8129 put_out_comments changed to use discard_comments, with
8132 2000-02-09 Clinton Popetz <cpopetz@cygnus.com>
8134 * function.c (thread_prologue_and_epilogue_insns): Don't delete
8135 the edge from a block that both jumps and falls through to the
8138 2000-02-09 Scott Bambrough <scottb@netwinder.org>
8140 * config/arm/arm.md (movsi): In PIC mode, make sure that a
8141 constant source address is legitimate.
8143 2000-02-09 Philip Blundell <pb@futuretv.com>
8145 * config/arm/arm.c (legitimize_pic_address): Handle LABEL_REF
8148 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Allow anything when
8150 (LEGITIMATE_PIC_OPERAND): Disallow references to labels.
8152 2000-02-09 Zack Weinberg <zack@wolery.cumb.org>
8154 * cpplib.c (cpp_define, cpp_undef): Make sure the stacked buffer
8155 ends with a newline and a NUL. Don't be so clever manipulating
8158 Wed Feb 9 14:18:08 MET 2000 Jan Hubicka <jh@suse.cz>
8160 * reload1.c (reload) Align stack frame to cfun->stack_alignment_needed,
8161 not to BIGGEST_ALIGNMENT.
8163 2000-02-08 Geoff Keating <geoffk@cygnus.com>
8165 * dwarf2.h (DW_CFA_GNU_negative_offset_extended): New constant.
8166 * dwarf2out.c (dwarf_cfi_name): Print name of new constant.
8167 (reg_save): Use DW_CFA_GNU_negative_offset_extended when needed.
8168 (output_cfi): Handle output of DW_CFA_GNU_negative_offset_extended.
8169 * frame.c (execute_cfa_insn): Handle
8170 DW_CFA_GNU_negative_offset_extended.
8172 2000-02-08 Richard Henderson <rth@cygnus.com>
8174 * flow.c (tidy_fallthru_edges): Split out from ...
8175 (delete_unreachable_blocks): ... here.
8176 (find_basic_blocks): Use it.
8178 Tue Feb 8 15:51:50 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8180 * stmt.c (expand_decl): Do set RTX_UNCHANGING_P for TREE_READONLY.
8182 2000-02-08 Zack Weinberg <zack@wolery.cumb.org>
8184 * Makefile.in (GEN_PROTOS_OBJS): Remove libcpp.a.
8185 (gen_protos.o): Don't depend on cpplib.h or cpphash.h.
8186 (fix-header.o): Don't depend on cpphash.h.
8188 * scan.c (hashstr): New function.
8189 * scan.h: Prototype it.
8190 * fix-header.c: Don't include cpphash.h. Use hashstr.
8191 * gen-protos.c: Don't include cpphash.h or cpplib.h. Use
8192 hashstr. Report hash table statistics. Add private
8193 definition of xrealloc.
8195 2000-02-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8197 * i386.h (TARGET_SWITCHES): Fix typo in option name.
8199 2000-02-08 Clinton Popetz <cpopetz@cygnus.com>
8201 * function.c (thread_prologue_and_epilogue_insns): Don't replace
8202 jumps with returns unless they are jumps to the fallthru block.
8204 Tue Feb 8 07:53:55 2000 Jan Hubicka <jh@suse.cz>
8206 * i386.md (addqi3_cc): Fix contraints.
8208 Tue Feb 8 01:39:45 2000 Hans-Peter Nilsson <hp@bitrange.com>
8210 * function.c (emit_return_into_block): Wrap in #ifdef HAVE_return.
8212 2000-02-07 Mark Mitchell <mark@codesourcery.com>
8214 * cpplib.c (cpp_get_token): Call CPP_BUMP_LINE after reading a
8215 carriage return after a macro name.
8217 2000-02-07 Fred Fish <fnf@be.com>
8219 * i386/beos-elf.h: (ASM_IDENTIFY_GCC): Define to nothing
8220 so the gcc2_compiled symbol doesn't confuse BeOS debuggers.
8222 2000-02-07 Zack Weinberg <zack@wolery.cumb.org>
8224 * cppfiles.c (deps_output): Count spacers in deps_column.
8226 2000-02-07 Neil Booth <NeilB@earthling.net>
8228 * cppinit.c (initialize_dependency_output): If there is no
8229 suffix, don't try to look for known suffixes. Use strrchr.
8230 (cpp_start_read): Remove duplicate initialization.
8232 Mon Feb 7 18:36:41 MET 2000 Jan Hubicka <jh@suse.cz>
8234 * calls.c (compute_argument_block_size): New argument
8235 preferred_stack_boundary.
8236 (expand_call): update cfun->preferred_stack_boundary, update call of
8237 compute_argument_block_size
8238 (emit_library_call): Increate cfun->preferred_stack_boundary
8239 to PREFERRED_STACK_BOUNDARY
8240 (emit_library_call_value): Likewise.
8241 * explow.c (allocate_dynamic_stack_spave): Likewise.
8242 * function.c (prepare_function_start): Set
8243 cfun->preferred_stack_boundary
8244 * function.h (struct function): Add preferred_stack_boundary field.
8245 * integrate.c (expand_inline_function): Update
8246 cfun->preferred_stack_boundary and cfun->stack_alignment_needed.
8247 (copy_rtx_and_substitute): Align frame to stack_alignment_needed only.
8248 * i386.c (compute_frame_size): Use cfun->preferred_stack_boundary.
8250 2000-02-06 Zack Weinberg <zack@wolery.cumb.org>
8252 * cpplib.c (my_strerror, cpp_error, cpp_error_with_line,
8253 cpp_error_from_errno, cpp_warning, cpp_warning_with_line,
8254 cpp_pedwarn, cpp_pedwarn_with_line,
8255 cpp_pedwarn_with_file_and_line): Move to cpperror.c.
8256 (cpp_print_file_and_line, v_cpp_error, v_cpp_warning,
8257 v_cpp_error_with_line, v_cpp_warning_with_line,
8258 cpp_message_from_errno, cpp_perror_with_name): Delete.
8260 * cpperror.c (cpp_print_containing_files): Take starting
8262 (cpp_file_line_for_message): Rename to cpp_print_file_and_line.
8263 (v_cpp_message): Now called directly by all entry points.
8265 (cpp_pfatal_with_name, cpp_message): Delete.
8266 (cpp_notice_from_errno, cpp_ice): New functions.
8267 (cpp_notice): Is now for reporting error conditions, just
8268 without an associated file.
8269 (cpp_error, cpp_error_with_line): Don't do anything if
8270 opts->inhibit_errors is on.
8271 (cpp_pedwarn_with_file_and_line): Take column argument also.
8273 * cpplib.h: Update prototypes of exported functions.
8274 (struct cpp_options): Add inhibit_errors.
8276 * cppalloc.c, cppfiles.c: Use fprintf not cpp_notice for
8277 non-error messages. Include intl.h.
8279 * cppinit.c, cppmain.c: Likewise. Also, use
8280 cpp_notice_from_errno instead of cpp_perror_with_name or
8281 cpp_pfatal_with_name, and cpp_notice instead of cpp_message.
8283 * cppexp.c, cpphash.c, cppinit.c, cpplib.c: Use cpp_ice to
8284 report internal errors.
8286 * cpplib.c (do_define): Switch bcopy to memcpy.
8287 Give cpp_pedwarn_with_file_and_line a dummy column argument.
8289 * cpplib.c (copy_rest_of_line): Revert previous change: don't
8290 bail out early if we hit a line comment.
8292 2000-02-06 Richard Henderson <rth@cygnus.com>
8294 * flow.c (flow_delete_insn, make_edge, remove_edge): Export.
8295 * basic-block.h: Declare them.
8296 * emit-rtl.h (active_insn_p): New.
8297 (next_active_insn, prev_active_insn): Use it.
8298 * rtl.h: Declare it.
8299 * function.c (emit_return_into_block): New.
8300 (thread_prologue_and_epilogue_insns): Insert return insns instead
8301 of epilogues when possible.
8302 * jump.c (jump_optimize_1): Remove code to insert a return insn
8303 on the fallthru to the exit block.
8305 * i386.c (ix86_can_use_return_insn_p): Fail for large poped args
8306 and for non-empty stack frames.
8307 * i386.md (return): Expand to return-pop as needed.
8309 2000-02-06 Richard Henderson <rth@cygnus.com>
8311 * simplify-rtx.c (simplify_relational_operation): Canonicalize
8312 constant to op1 for testing.
8314 2000-02-06 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
8316 * config/c4x/c4x.md (*ldi_on_overflow): New pattern.
8317 (fixuns_truncqfqi2): Use it.
8319 2000-02-06 Richard Henderson <rth@cygnus.com>
8321 * i386.c (ix86_agi_dependant): Handle pro_epilogue_adjust_stack
8324 * i386.md (widening and peepholes): Mask the constant instead of
8327 2000-02-05 Zack Weinberg <zack@wolery.cumb.org>
8329 * cppfiles.c (read_and_prescan) [case SPECCASE_QUESTION]: Bump
8330 input pointer before possibly branching off to the backslash
8332 * cpphash.c (macroexpand): Correctly delete \r escapes when
8333 stringifying parameters.
8334 * cpplib.c (copy_rest_of_line): Go directly to skip_block_comment
8335 if we can; bail out early if we hit a line comment.
8336 (handle_directive): Treat '# 123' in an .S file just like
8337 '# <punctuation>'. Discard the shifted '#' if we hit '#\n'.
8338 Return 1 for '# not_a_directive'.
8339 (get_directive_token): Pop macro buffers here, so that
8340 cpp_get_token can't sneakily move past a newline.
8342 (cpp_get_token): goto randomchar if handle_directive returns 0.
8344 * cppalloc.c: Update copyright.
8345 * cpplib.c: Merge all the static function prototypes into one
8347 * cpplib.h: Remove #if 0 block.
8349 * cpperror.c: Remove #ifdef EMACS block.
8350 * cppmain.c: Likewise.
8351 * cpphash.c: Remove #if 0 blocks.
8352 * cppinit.c: Remove #if 0 blocks, and the -lint option.
8353 * cpplib.c: Remove #if 0 blocks and code referencing
8354 pcp_inside_if or for_lint. Remove duplicate error message.
8355 Fix error messages for #else after #else or #elif. Reformat.
8356 Remove archaic TODO list.
8357 * cpplib.h: Remove pcp_inside_if and for_lint flags.
8359 2000-02-05 Zack Weinberg <zack@wolery.cumb.org>
8361 * i386/osf1elf.h: Add missing backslash to multiline string.
8363 2000-02-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8365 * longlong.h [sparc] (udiv_qrnnd): Avoid stringifying macro arg.
8367 2000-02-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8369 * Makefile.in (c-common.o): Depend on $(EXPR_H).
8371 * c-common.c: Include expr.h.
8373 * c-pragma.c (mark_align_stack): Add prototype.
8375 * caller-save.c (add_stored_regs): Likewise.
8377 * combine.c (record_promoted_value): Likewise.
8379 * i386.c (ix86_sched_reorder_pentium, ix86_sched_reorder_ppro):
8382 * cppinit.c (new_pending_define): Likewise.
8384 * cpplib.c (skip_block_comment, skip_line_comment): Likewise.
8386 * dwarf2out.c (save_rtx, splice_child_die, reverse_die_lists,
8387 AT_class, AT_flag, AT_int, AT_unsigned, AT_string, AT_ref, AT_loc,
8388 AT_addr, AT_lbl, get_AT_ref, free_AT, free_die, local_scope_p,
8389 class_scope_p): Likewise.
8391 * dwarf2out.h (dwarf2out_set_demangle_name_func,
8392 dwarf2out_add_library_unit_info): Likewise.
8394 * ggc.h (ggc_page_print_statistics): Likewise.
8396 * haifa-sched.c (propagate_deps): Likewise.
8398 * reg-stack.c (next_flags_user, record_label_references): Likewise.
8400 * rtl.h (set_stack_check_libfunc): Likewise.
8402 * toplev.h (set_fatal_function): Likewise.
8404 * toplev.c (set_fatal_function): Delete prototype.
8406 * diagnostic.c: Deconstify functions returning malloc'ed ptrs.
8408 2000-02-05 Geoff Keating <geoffk@cygnus.com>
8410 * ginclude/ppc-asm.h (FUNC_START): Use USER_LABEL_PREFIX.
8411 (FUNC_END): Likewise.
8413 2000-02-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
8415 * caller-save.c: Include tm_p.h.
8417 2000-02-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
8419 * Makefile.in (libgcc.a): Add $(LIBGCC1) to libgcc.a after $(LIBGCC2).
8421 2000-02-04 Neil Booth <NeilB@earthling.net>
8423 * cccp.c (main): Check 'dir' for a NULL pointer before passing
8426 2000-02-04 Zack Weinberg <zack@wolery.cumb.org>
8428 * recog.h: Remove NO_MD_PROTOTYPES ifdefs.
8429 * genflags.c: Use the max_operand_1 logic from genemit.c to
8430 calculate how many arguments gen_insn prototypes have. Remove
8431 NO_MD_PROTOTYPES ifdefs from the generated file.
8432 * genoutput.c: Don't define NO_MD_PROTOTYPES in the generated
8433 file. Cast gen_insn initializers to insn_gen_fn.
8434 * config/alpha/vms.h: Don't define NO_MD_PROTOTYPES.
8435 * gcc.texi: Remove documentation of NO_MD_PROTOTYPES.
8437 2000-02-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8439 * fixinc/Makefile.in (HDR): Add machname.h.
8442 2000-02-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
8444 * config/c4x/c4x.h (c4x_compare_op0, c4x_compare_op1): Move ...
8445 (c4x_regclass_map, c4x_caller_save_map, c4x_rpts_cycles): Ditto.
8446 (c4x_cpu_version): Ditto.
8447 * config/c4x/c4x-protos.h: ... here.
8449 2000-02-04 Jason Merrill <jason@casey.cygnus.com>
8451 * dwarf2out.c (add_abstract_origin_attribute): Don't call
8452 gen_abstract_function on our context if we're a nested function.
8454 2000-02-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
8456 * config/c4x/c4x.md (fixuns_truncqfqi2): Rewrite.
8457 * config/c4x/libgcc.S (ufix_truncqfhi2n): Fix.
8459 2000-02-04 Bruce Korb <bkorb@gnu.org>
8461 * fixinc/genfixes(machname.h):
8462 Move the functionality from gen-machine.h into this file.
8463 UNdef MN_NAME_PAT if there are no names to change.
8464 Also, be a little kinder when AutoGen is not present.
8466 * fixinc/Makefile.in(machname.h):
8467 Change the generation rule to use genfixes.
8469 * fixinc/fixfixes.c(machine_name):
8470 machine_name_fix's functionality now dependent upon whether
8471 MN_NAME_PAT is defined.
8473 * fixinc/fixtests.c(machine_name):
8476 * fixinc/fixlib.c(mn_get_regexps): conditional on definition
8479 * fixinc/fixlib.h(mn_get_regexps):
8482 * fixinc/gen-machine.h: DELETED
8484 2000-02-04 Jan Hubicka <jh@suse.cz>
8485 Richard Henderson <rth@cygnus.com>
8487 * i386.c (SAVE_REGS_FIRST): Remove.
8488 (ix86_initial_elimination_offset): Handle only SAVE_REGS_FIRST mode.
8489 (ix86_compute_frame_size): Likewise.
8490 (ix86_expand_prologue): Likewise. Use pro_epilogue_adjust_stack.
8491 (ix86_emit_restore_regs): Remove.
8492 (ix86_emit_epilogue_esp_adjustment): Use pro_epilogue_adjust_stack
8493 when a frame pointer is in use.
8494 (ix86_expand_epilogue): Handle only SAVE_REGS_FIRST mode. Use mov
8495 instead of pop to restore a register when profitable; emit leave
8497 (ix86_attr_length_default): Handle pro_epilogue_adjust_stack
8499 (ix86_adjust_cost): Handle pro_epilogue_adjust_stack as TYPE_ALU.
8500 * i386.md (prologue_allocate_stack): Remove.
8501 (epilogue_deallocate_stack): Remove.
8502 (pro_epilogue_adjust_stack): New.
8504 2000-02-04 Richard Henderson <rth@cygnus.com>
8506 * function.c (diddle_return_value): Rework to use a callback function.
8507 Use current_function_return_rtx if it's been set up.
8508 (do_clobber_return_reg, clobber_return_register): New.
8509 (do_use_return_reg, use_return_register): New.
8510 (expand_function_end): Use them.
8511 * stmt.c (expand_null_return): Likewise.
8512 * function.h: Declare them.
8513 * flow.c (mark_regs_live_at_end): Use diddle_return_value.
8514 (mark_reg): Change arguments as appropriate for callback.
8515 * integrate.c (expand_inline_function): Revert 19 Jan change.
8517 Fri Feb 4 20:25:42 2000 Hans-Peter Nilsson <hp@bitrange.com>
8519 * tm.texi (Values in Registers): Fix typo: "fo" "for".
8520 (Misc): Say the scheduler, not the Haifa scheduler.
8522 2000-02-04 Clinton Popetz <cpopetz@cygnus.com>
8524 * jump.c (mark_jump_label): Add in_mem param, check SYMBOL_REFs
8525 when in_mem is set. Update all callers.
8527 2000-02-04 Richard Henderson <rth@cygnus.com>
8529 * i386/openbsd.h (INT_ASM_OP): Define.
8531 Fri Feb 4 10:51:30 2000 Hans-Peter Nilsson <hp@bitrange.com>
8533 * tm.texi: Fix various typos.
8535 Thu Feb 3 17:17:32 2000 Steve Ellcey <sje@cup.hp.com>
8537 * config/pa/pa-hpux11.h (LIB_SPEC): Correct typo in !p case.
8538 (MD_STARTFILE_PREFIX_1): New macro.
8540 Thu Feb 3 15:08:13 MET 2000 Jan Hubicka <jh@suse.cz>
8542 * i386.md (movstrsi, clrstrsi): Support variable sized copies, align
8543 destination when needed.
8544 (strmovsi, strsetsi): New expander.
8545 (strmovsi_1, strsetsi_1): New pattern.
8546 * i386.h (MASK_NO_ALIGN_STROP, MASK_INLINE_ALL_STROP,
8547 TARGET_ALIGN_STRINGOPS, TARGET_INLINE_ALL_STRINGOPS): New macros.
8548 (TARGET_SWITCHES) Add align-stringops and inline-all-stringops.
8549 * invoke.texi (align-stringops, inline-all-stringops): Document.
8551 Wed Feb 2 23:04:47 2000 Krister Walfridsson <cato@df.lth.se>
8553 * i386/netbsd.h (INT_ASM_OP): Define.
8555 2000-02-02 Zack Weinberg <zack@wolery.cumb.org>
8557 * cpplib.h (cpp_reader): Add new flag, no_directives.
8558 * cpphash.c (macarg): Set it.
8559 * cpplib.c (handle_directive): If no_directives is on and we
8560 find a directive, issue an error and discard the line.
8562 Wed Feb 2 13:07:10 2000 Jim Wilson <wilson@cygnus.com>
8564 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Delete 'E' check for
8565 FP constants. Add ! TARGET_FPU check for FP constants.
8567 2000-02-02 Clinton Popetz <cpopetz@cygnus.com>
8569 * flow.c (find_basic_blocks): Don't kill label_value_list
8571 (cleanup_cfg): Kill it here.
8573 Wed Feb 2 08:12:30 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8575 * expr.c (store_field): Ensure ALIGN is no stricter than the
8578 2000-02-02 Richard Henderson <rth@cygnus.com>
8580 * jump.c (delete_insn): Partially revert 19 Jan change;
8581 don't convert unused code labels to notes at -O0.
8583 2000-02-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
8585 * toplev.c (rest_of_compilation): Run rebuild_jump_labels after
8586 split_all_insns to recreate REG_LABEL notes for flow2 pass.
8588 2000-02-01 Richard Henderson <rth@cygnus.com>
8590 * i386.c (general_no_elim_operand): New.
8591 (nonmemory_no_elim_operand): New.
8592 (ix86_expand_move): Copy eliminable operands before a push.
8593 * i386-protos.h: Declare new functions.
8594 * i386.h (CAN_ELIMINATE): Simplify.
8595 (PREDICATE_CODES): Update.
8596 * i386.md (push insns): Don't allow eliminable register operands.
8598 2000-02-01 Richard Henderson <rth@cygnus.com>
8600 * flow.c (mark_regs_live_at_end): Follow expand_function_end and
8601 replace BLKmode with DECL_RTL's mode.
8603 2000-02-01 Zack Weinberg <zack@wolery.cumb.org>
8605 * frame.c (find_fde): Convert for loop to do-while so compiler
8606 sees it's always executed at least once.
8607 * libgcc2.c (BBINBUFSIZE): Kill.
8608 (__bb_init_prg): Use fgets.
8609 (__bb_exit_trace_func): Don't paste strings.
8610 * unroll.c (unroll_loop): Initialize unroll_type, not
8611 unroll_number, and tweak logic to match.
8613 * i386.c (ix86_expand_int_movcc): Add explicit 'return 0' in
8615 (ix86_flags_dependant): Likewise. Disentangle control flow.
8616 (ix86_sched_reorder): Break guts out to
8617 ix86_sched_reorder_pentium and ix86_sched_reorder_ppro.
8618 (ix86_sched_reorder_ppro): Initialize pair2 and insnp before
8621 * i386.h (MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Don't
8622 use string concatenation. Don't save and restore esi.
8624 * fixinc/Makefile.in (fixincl.sh): Don't depend on inclhack.def.
8625 (machname.h): Remove script to separate file. Use two-step
8626 sequence so target is not created if script fails.
8627 * fixinc/gen-machname.h: New file. Handle case where no non-reserved
8628 identifiers are defined.
8629 * fixinc/fixlib.c (mn_get_regexps): Return a flag: if MN_NAME_PAT is
8630 an empty string, machine_name doesn't need to do anything at
8632 (is_cxx_header): Add more cases to regexp.
8633 * fixinc/fixlib.h: Update prototype.
8634 * fixinc/fixtests.c, fixinc/fixfixes.c: Update callers of
8636 * fixinc/fixincl.c: Define NO_BOGOSITY.
8638 * fixinc/inclhack.def (no_double_slash, else_endif_label): Ifdef out.
8639 (hp_sysfile): Add missing comma.
8640 (math_exception): Put the wrapper ifdefs at the beginning and
8641 the end of the file.
8642 * fixinc/fixincl.x, fixinc/inclhack.sh: Regenerate.
8644 2000-02-01 Richard Henderson <rth@cygnus.com>
8646 * sparc.c (fp_zero_operand): Turn into a normal predicate.
8647 Use CONST0_RTX. Update all callers.
8648 * sparc.h, sparc-protos.h: Update accordingly.
8649 * sparc.md (fp mov insns): Use fp_zero_operand directly
8652 Wed Feb 2 02:59:45 2000 Hans-Peter Nilsson <hp@bitrange.com>
8654 * tm.texi (Values in Registers): Fix typo in HARD_REGNO_NREGS
8657 2000-02-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8659 * Makefile.in (specs.ready): New target.
8660 (fixinc.sh): Depend on `specs.ready' instead of `specs'.
8662 2000-02-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8664 * fixinc.irix: Use unique filenames for writing into /tmp,
8665 * fixinc.ptx: Likewise.
8666 * fixinc.sco: Likewise.
8667 * fixinc.svr4: Likewise.
8668 * fixinc.winnt: Likewise.
8670 2000-02-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8672 * tsystem.h: New file.
8674 * Makefile.in (libgcc2.a, stmp-multilib, crtbegin.o, crtend.o,
8675 s-crtS): Depend on tsystem.h.
8677 * crtstuff.c: Include tsystem.h.
8678 * frame.c: Likewise.
8679 * libgcc2.c: Likewise.
8681 Tue Feb 1 19:53:27 CET 2000 Jan Hubicka <jh@suse.cz>
8683 * builtins.c (expand_builtin_memset): Expand for variable sized
8686 2000-02-01 David Billinghurst <David.Billinghurst@riotinto.com.au>
8688 * config/mips/iris6.h (SUBTARGET_ASM_SPEC) : Default ISA based
8691 Tue Feb 1 00:57:40 2000 Hans-Peter Nilsson <hp@bitrange.com>
8693 * dwarfout.c (SHORT_TYPE_SIZE): Correct default.
8695 * tm.texi (Type Layout): Correct entry for CHAR_TYPE_SIZE.
8697 2000-01-31 Chandra Chavva <cchavva@cygnus.com>
8699 * combine.c (try_combine) [HAVE_cc0]: Trying to check the missed
8700 case 3->2 combining (combining with splitting) in which 2 is CC0
8701 setter/user and 3 is user. The rest of cases 2->1 and 3->2 are
8702 checked at the begining of the function with the aid of calling
8703 function 'can_combine_p'.
8705 2000-01-31 Dave Brolley <brolley@redhat.com>
8707 * cccp.c (struct argdata): Redeclare 'newlines' field as 'int'.
8709 2000-01-31 Jason Merrill <jason@casey.cygnus.com>
8711 * jump.c (redirect_jump): Move a NOTE_INSN_FUNCTION_END to the
8714 2000-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8716 * gansidecl.h (PROTO, VPROTO, PVPROTO): Delete macros.
8718 * sbitmap.h (sbitmap_first_set_bit, sbitmap_last_set_bit):
8721 2000-01-30 Zack Weinberg <zack@wolery.cumb.org>
8723 * i386/386bsd.h, i386/beos-pe.h, i386/bsd386.h, i386/crtdll.h,
8724 i386/cygwin.h, i386/dgux.h, i386/djgpp-rtems.h, i386/djgpp.h,
8725 i386/freebsd.h, i386/gnu.h, i386/i386-aout.h, i386/i386-coff.h,
8726 i386/i386-interix.h, i386/i386elf.h, i386/linux.h, i386/lynx-ng.h,
8727 i386/lynx.h, i386/mach.h, i386/mingw32.h, i386/moss.h,
8728 i386/netbsd.h, i386/next.h, i386/openbsd.h, i386/osf1elf.h,
8729 i386/ptx4-i.h, i386/rtems.h, i386/rtemself.h, i386/sco.h,
8730 i386/sequent.h, i386/sun.h, i386/sysv4.h, i386/uwin.h, i386/vsta.h,
8731 i386/vxi386.h, i386/win-nt.h, i386/win32.h:
8732 Remove -Di386 -Acpu(i386) -Amachine(i386) from CPP_PREDEFINES.
8734 * i386/osf1elf.h, i386/scodbx.h, i386/seq-sysv3.h, i386/sysv5.h:
8735 Add %(cpp_cpu) to CPP_SPEC.
8737 * i386/osf1elf.h, i386/osfelf.h, i386/osfrose.h:
8738 Add %(cc1_cpu) to CC1_SPEC.
8740 2000-01-28 Ulrich Drepper <drepper@redhat.com>
8742 * c-decl.c (c_decode_option): Accept optional numeric argument to
8743 -Wformat and set warn_format.
8744 * c-common.c: Don't emit warning about non-constant printf format
8745 string unless warn_format > 1.
8747 2000-01-30 Richard Henderson <rth@cygnus.com>
8749 * alpha.md (return_internal): Allow after reload only.
8751 2000-01-30 Richard Henderson <rth@cygnus.com>
8753 * i386.c (ix86_compute_frame_size): Omit padding1 if the
8754 local frame size is zero.
8756 2000-01-30 Richard Henderson <rth@cygnus.com>
8758 * alpha.c (alpha_expand_epilogue): Don't emit the return insn.
8759 * alpha.h (EPILOGUE_USES): New. Mark $26 live.
8760 * alpha.md (return): Turn into an expander.
8761 (return_internal): Don't use $26.
8762 (epilogue): Emit the return insn.
8764 2000-01-30 Richard Henderson <rth@cygnus.com>
8766 * alpha.md (negtf2, abstf2): Fix word order thinko.
8768 (trunctfsf2): Avoid intermediate rounding errors.
8770 2000-01-30 Zack Weinberg <zack@wolery.cumb.org>
8772 * cppfiles.c (find_position): Drop 'colp' argument, return the
8774 (read_and_prescan): Adjust to match. Don't ever manipulate
8775 line or line_base except via find_position.
8777 2000-01-29 Zack Weinberg <zack@wolery.cumb.org>
8779 * c-parse.in: Apply Ulrich's changes from c-parse.y.
8780 * c-parse.y, objc/objc-parse.y, c-parse.c, objc/objc-parse.c:
8783 2000-01-29 Zack Weinberg <zack@wolery.cumb.org>
8785 * cpperror.c (cpp_file_line_for_message): If 'line' is zero,
8786 just print "<command line>". If 'filename' is null or an
8787 empty string, print "<stdin>" for the filename.
8788 * cpplib.c (do_define): Don't print the 'location of the
8789 previous definition' message if we're still parsing the
8791 (cpp_pedwarn_with_file_and_line): Always call
8792 cpp_file_line_for_message.
8794 2000-01-29 Mark Mitchell <mark@codesourcery.com>
8796 * flow.c (mark_regs_live_at_end): Fix typo.
8798 2000-01-28 Ulrich Drepper <drepper@redhat.com>
8800 * c-common.c: Adjust variable names, comments, help strings to c99.
8801 * c-lex.c: Likewise.
8802 * c-parse.y: Likewise.
8803 * c-tree.h: Likewise.
8805 * cpplib.h: Likewise.
8806 * c-decl.c: Likewise. Recognize options with names "*99" as well.
8807 * cppinit.c: Likewise.
8809 2000-01-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
8811 * c4x.h (INIT_TARGET_OPTABS): Add all missing local optab entries.
8812 * c4x.c: Define the optab rtx values.
8813 (c4x_add_gc_roots): Add the ggc roots for these optab rtx values.
8814 (c4x_emit_libcall): Use new optab rtx values.
8815 (c4x_emit_libcall3): Likewise.
8816 (c4x_emit_libcall_mulhi): Likewise.
8817 * c4x-protos.h: Add prototypes for optab rtx values and change
8818 prototypes for above c4x_emit_libcall functions.
8820 2000-01-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
8822 * c4x.c (c4x_output_ascii): Restrict line length of output when TI
8824 (c4x_function_prologue): Use regnames intead of float_reg_names when
8826 (c4x_function_epilogue): Likewise.
8827 (c4x_print_operand): Likewise.
8828 * c4x.h (HOST_WIDE_INT_PRINT_HEX): Redefine.
8829 * c4x.md (set_high): Disable for TARGET_TI.
8831 2000-01-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
8833 * c4x.h (PREFERRED_RELOAD_CLASS): Change to restrict the reloading
8834 of framepointer + constant to ADDR_REGS class.
8835 * c4x.md (addqi3, addqi3_noclobber_reload): Update.
8836 * c4x.c (std_or_reg_operand): New function.
8837 * c4x-protos.h (std_or_reg_operand): Prototype it.
8839 2000-01-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
8841 * t-c4x: Change qi,qf,di,df into si,sf,hi,hf to generate same
8842 object names as libgcc2.c.
8843 * libgcc.S: Use newly defined names.
8845 Fri Jan 7 19:48:04 CET 2000 Jan Hubicka <jh@suse.cz>
8846 * sbitmap.c (sbitmap_first_set_bit, sbitmap_last_set_bit): New
8848 * sbitmap.h (sbitmap_first_set_bit, sbitmap_last_set_bit): Declare.
8849 * basic_block.h (FLOW_LOOP_FIRST_BLOCK): New macro.
8850 (FLOW_LOOP_LAST_BLOCK): Likewise.
8852 2000-01-21 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
8854 * basic-block.h (struct loop): New fields 'first' and 'last'.
8855 * flow.c (flow_loops_find): Compute loop->first and loop->last.
8856 (flow_loops_dump): Use loop->first to check for NOTE_INSN_LOOP_BEG
8857 and loop->last to check for NOTE_INSN_LOOP_END.
8859 Fri Jan 28 10:57:58 2000 Jason Eckhardt <jle@cygnus.com>
8861 * predict.c (estimate_probability): Use the new FIRST and LAST fields
8862 of the loop descriptor rather than HEADER and LATCH. Also added
8863 missing break statements as well making some coding style modifications
8864 as suggested by Michael Hayes.
8866 2000-01-28 Richard Henderson <rth@cygnus.com>
8868 * flow.c (find_basic_blocks): Remove do_cleanup argument.
8869 Break out that code ...
8870 (cleanup_cfg): ... here.
8871 (commit_one_edge_insertion): Detect a return instruction being
8872 emitted to an edge. Emit a barrier following; clear fallthru.
8873 (commit_edge_insertions): Verify CFG consistency.
8874 * function.c (expand_function_start): Kill unused variable.
8875 (expand_function_end): Likewise.
8876 (thread_prologue_and_epilogue_insns): Use insert_insn_on_edge
8877 to insert the epilogue.
8879 * gcse.c (gcse_main): Adjust for find_basic_blocks change.
8880 (delete_null_pointer_checks): Likewise.
8881 * output.h: Likewise.
8882 * reg-stack.c (reg_to_stack): Likewise.
8883 * toplev.c (rest_of_compilation): Likewise. Run
8884 thread_prologue_and_epilogue_insns after rebuilding the CFG.
8886 2000-01-28 Richard Henderson <rth@cygnus.com>
8888 * Makefile.in (flow.o): Revert 24 Jan change.
8889 * flow.c (mark_regs_live_at_end): Likewise. Force BLKmode
8890 FUNCTION_VALUE result to DECL_RESULT's mode.
8892 * haifa-sched.c (schedule_insns): Don't recompute reg info
8895 2000-01-28 Zack Weinberg <zack@wolery.cumb.org>
8897 * configure.in: Make --enable-cpplib the default.
8898 * configure: Regenerate.
8899 * gcc.dg/990119-1.c: No longer expected to fail.
8901 2000-01-28 Bernd Schmidt <bernds@cygnus.co.uk>
8903 * jump.c (jump_optimize_1): Delete an optimization that is also done
8904 by merge_blocks in flow.
8906 2000-01-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8908 * diagnostic.c (build_message_string, output_printf,
8909 line_wrapper_printf): Add ATTRIBUTE_PRINTF_*.
8910 (build_location_prefix): Fix non-literal format string.
8912 2000-01-27 Richard Henderson <rth@cygnus.com>
8914 * alpha.md (trunctfsf2): New.
8916 2000-01-27 Andrew Hobson <ahobson@eng.mindspring.net>
8918 * configure.in (alpha-dec-osf5): Enable MASK_SUPPORT_ARCH.
8920 2000-01-27 Zack Weinberg <zack@wolery.cumb.org>
8922 * cppinit.c (cpp_handle_option): Recognize C++ comments under
8924 * cpplib.c (skip_block_comment, skip_line_comment): Split code
8926 (skip_comment) ... here. Permit C++ comments in system
8927 headers always. Warn about C++ comments in user code under
8928 -std=gnu89 -pedantic.
8929 (copy_comment): Use skip_comment.
8930 (cpp_skip_hspace, cpp_get_token): skip_comment can no longer
8932 (consider_directive_while_skipping, do_else, do_endif): Call
8933 validate_else unconditionally.
8934 (validate_else): Check CPP_PEDANTIC here. Accept non-comment
8935 text after the conditional in a system header.
8936 * cpplib.h (struct cpp_buffer): Add flag
8937 warned_cplusplus_comments.
8939 2000-01-27 Geoffrey Keating <geoffk@cygnus.com>
8941 * emit-rtl.c (unshare_all_rtl): Unshare virtual parameters too.
8942 Use unshare_all_rtl_1.
8943 (unshare_all_rtl_again): New function.
8944 (unshare_all_rtl_1): New function split out of unshare_all_rtl.
8946 * function.c (purge_addressof_1): Use unshare_all_rtl_again
8947 rather than resetting the 'used' flags ourself.
8949 * toplev.c (rest_of_compilation): Add current_function_decl
8950 to the unshare_all_rtl call.
8951 * tree.h: Prototype unshare_all_rtl.
8952 * rtl.h: Prototype unshare_all_rtl_again here.
8954 2000-01-27 Geoffrey Keating <geoffk@cygnus.com>
8956 * genoutput.c (output_prologue): Include ggc.h in generated
8958 * Makefile.in (insn-output.o): Depends on ggc.h.
8960 2000-01-27 Ian Dall <ian@sibyl.beware.dropbear.id.au>
8961 Hans-Peter Nilsson <hp@bitrange.com>
8963 * ns32k/xm-ns32k.h (memcpy, memset, memcmp): Delete.
8964 Remove redundant include of xm-ns32k.h.
8965 * ns32k/xm-genix.h (memcpy, memset, memcmp): Add definitions.
8966 Remove redundant include of xm-ns32k.h.
8967 * ns32k/xm-netbsd.h (memcpy, memset, memcmp): No longer undefine.
8968 Remove redundant include of xm-ns32k.h.
8969 * ns32k/netbsd.h (TARGET_DEFAULT): Enable multiply-add instructions.
8971 * ns32k/ns32k.h: Update comment on multiply-add instructions.
8972 (TARGET_SWITCHES): Add documentation strings.
8973 (DWARF_FRAME_REGNUM): Override default definition.
8974 (REG_CLASS_CONTENTS): Add comments.
8975 (SUBSET_P): Format to reduce line length.
8976 (SMALL_REGISTER_CLASSES): Make a run time option.
8977 (GO_IF_NONINDEXED_ADDRESS): Reformat.
8978 (GO_IF_LEGITIMATE_ADDRESS): Ensure that cfun is non NULL before
8979 dereferencing it. Braces to avoid "ambiguous else" were misplaced.
8980 (regclass_map): fix typo in comment.
8981 * ns32k/ns32k.c: Add spaces before parentheses for consistant style.
8982 Prefer gen_rtx_FOO(...) to gen_rtx(FOO,...).
8983 (trace, reg_or_mem_operand): Delete, unused function.
8984 (calc_address_cost): Small offsets are cheaper than large ones.
8985 (expand_block_move): Generate more efficient code when bytes is a
8986 known at compile time.
8987 * ns32k/ns32k.md: Alternate constraints for multiply-add instructions.
8988 (udivmodsi4, udivmodhi4, udivmodqi4): Use nonimmediate_operand
8989 instead of reg_or_mem_operand.
8991 * ns32k/ns32k.md: Use nonimmediate_operand or stricter for outputs,
8992 not general_operand. Similarly use "=rm" or stricter, not "=g".
8993 For input operands, use stricter constraints than "g" if not
8994 general_operand. Similarly use stricter predicate than
8995 "general_operand" when stricter constraints than "g" are present,
8996 except for matching constraints.
8997 (movstrsi): Use "memory_operand" for operands 0 and 1.
8998 (truncsiqi2, truncsihi2, trunchiqi2): Remove.
8999 (udivmoddisi4_internal): Use nonimmediate_operand for operand 0,
9000 not reg_or_mem_operand.
9001 (udivmoddisi4): Ditto.
9002 Use nonimmediate_operand for operand 1, not reg_or_mem_operand.
9003 Use nonimmediate_operand for operand 3, not register_operand.
9004 (udivmoddiqi4_internal): Use register_operand for operand 1, not
9007 2000-01-27 Fred Fish <fnf@be.com>
9009 * gthr-posix.h: Fix typo; compatibily -> compatibility.
9010 * gthr-single.h: Likewise.
9011 * gthr-solaris.h: Likewise.
9012 * gthr-vxworks.h: Likewise.
9013 * gthr-win32.h: Likewise.
9016 2000-01-27 Zack Weinberg <zack@wolery.cumb.org>
9018 * cppinit.c: Add " (cpplib)" to end of string printed by
9021 2000-01-27 Richard Henderson <rth@cygnus.com>
9023 * alpha.c (alpha_emit_conditional_move): Use VOIDmode when
9024 testing for a signed comparison.
9025 (alpha_emit_floatuns): New.
9026 * alpha-protos.h: Declare it.
9027 * alpha.md (floatunsdisf2, floatunsdidf2): New.
9028 (extendsfdf2): Tidy.
9030 2000-01-27 Jakub Jelinek <jakub@redhat.com>
9032 * config/sparc/linux64.h (CC1_SPEC): If compiling -m32 with -g but
9033 no -g option specifying debugging format, default to -gstabs+.
9035 Wed Jan 26 22:19:14 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
9037 * calls.c (special_function_p): New argument fork_or_exec.
9038 (expand_call): When profile_arc_flag is set and the function
9039 is in the fork_or_exec group, call __bb_fork_func first.
9040 * libgcc2.c, _bb module (__bb_fork_func): New function.
9041 (__bb_exit_func): If fcntl F_SETLKW is available, use it to lock
9043 * config/svr4.h (TARGET_HAS_F_SETLKW): Define.
9044 * tree.h (special_function_p): Update prototype.
9046 2000-01-26 Richard Henderson <rth@cygnus.com>
9048 * alpha.c (alpha_split_tfmode_pair): New.
9049 * alpha-protos.h: Declare it.
9050 * alpha.md (abstf2, negtf2): New.
9051 (movtf insn): Add input G constraint.
9052 (movtf splitter): Use alpha_split_tfmode_pair.
9054 2000-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9056 * i386/cygwin.h: PROTO -> PARAMS.
9058 2000-01-26 Jakub Jelinek <jakub@redhat.com>
9060 * config/sparc/sparc.c (sparc_emit_float_lib_cmp): Handle
9061 TARGET_ARCH32 again. Handle ORDERED, UN* and LTGT comparisons
9062 using _Qp_cmp/_Q_cmp and testing the return value.
9063 (print_operand): Call reverse_condition_maybe_unordered if
9064 we are handling CCFPmode or CCFPEmode.
9065 Handle ORDERED, UN* and LTGT comparisons.
9066 * config/sparc/sparc.md (cmptf): Use even on TARGET_ARCH32
9067 if not TARGET_HARD_QUAD.
9068 (seq, sne, sgt, slt, sge, sle, beq, bne, bgt, blt, bge, ble,
9069 bunordered, bordered, bungt, bunlt, buneq, bunge, bunle, bltgt):
9070 Call sparc_emit_float_lib_cmp even on TARGET_ARCH32.
9071 Adjust gen_b* calls so that they reflect return comparison of
9072 sparc_emit_float_lib_cmp.
9074 2000-01-26 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
9076 * config/alpha/alpha.c (alpha_emit_xfloating_cvt): Do not assume
9077 incoming operands array is large enough for one more operand.
9078 (alpha_emit_xfloating_arith): Likewise.
9080 2000-01-25 Zack Weinberg <zack@wolery.cumb.org>
9082 * fixinc/Makefile.in (machname.h): SunOS 4 sed can't handle a
9083 file with one line and no trailing newline.
9084 Patch by Kaveh Ghazi <ghazi@caip.rutgers.edu>.
9085 * fixinc/fixtests.c (machine_name_test): Fix fencepost error
9086 checking if the match is on the line.
9087 * fixinc/gnu-regex.c: Provide regerror not __regerror.
9089 2000-01-25 Richard Henderson <rth@cygnus.com>
9091 * sparc.c (output_cbranch): Fix accidental squashing of the
9092 fp branch pre-delay nop.
9094 2000-01-25 Richard Henderson <rth@cygnus.com>
9096 * tree.def (UNNE_EXPR): Remove.
9097 * c-typeck.c (build_binary_op): Don't handle it.
9098 * expr.c (expand_expr, do_jump, do_store_flag): Likewise.
9100 * rtl.def (UNNE): Remove.
9102 * jump.c (reverse_condition): Update accordingly.
9103 (swap_condition): Likewise.
9104 (comparison_dominates_p): Handle unordered comparisons.
9105 (reverse_condition_maybe_unordered): New.
9106 * rtl.h (reverse_condition_maybe_unordered): Declare.
9108 * sparc.c (select_cc_mode): Update for UNNE/LTGT.
9109 (output_cbranch): Use reverse_condition_maybe_unordered and LTGT.
9110 * sparc.h (REVERSIBLE_CC_MODE): Always true. Update docs.
9111 * sparc.md (bltgt): New.
9113 2000-01-25 Nick Clifton <nickc@redhat.com>
9115 * emit-rtl.c (emit_insn): Only check machine class insns for
9116 improper emission of a RETURN.
9118 2000-01-25 Richard Henderson <rth@cygnus.com>
9120 * Makefile.in (flow.o): Depend on $(EXPR_H).
9121 * flow.c (mark_regs_live_at_end): Use hard_function_value, i.e.
9122 duplicate the structure of diddle_return_value for keeping regs live.
9124 2000-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
9126 * loop.c (current_loop_info): Delete.
9127 (consec_sets_invariant_p): Add loop argument, update callers.
9128 (get_condition_for_loop): Likewise.
9129 (count_nonfixed_reads, update_giv_derive): Likewise.
9130 (simplify_giv_expr, general_induction_var): Likewise.
9131 (consec_sets_giv, recombine_givs): Likewise.
9132 (move_movables): Delete loop_start and loop_end arguments,
9133 add loop argument, and update callers.
9134 (find_mem_givs, check_final_value): Likewise.
9135 (record_giv, maybe_eliminate_biv, maybe_eliminate_biv_1): Likewise.
9136 (loop_invariant_p): Rename from invariant_p, add loop argument, and
9138 (basic_induction_var): Add loop argument, delete loop_level argument,
9140 * unroll.c (iteration_info): Delete loop_start and loop_end arguments,
9141 add loop argument, and update callers.
9142 (find_splittable_regs, find_splittable_givs): Likewise.
9143 (reg_dead_after_loop, loop_find_equiv_value): Likewise.
9144 (final_biv_value, final_giv_value, back_branch_in_range_p): Likewise.
9145 (biv_total_increment): Delete loop_start and loop_end arguments;
9147 (precondition_loop_p): Delete loop_start and loop_info arguments;
9149 * loop.h (get_condition_for_loop): Add loop argument.
9150 (biv_total_increment): Delete loop_start and loop_end arguments.
9151 (precondition_loop_p): Delete loop_start and loop_info arguments;
9153 (final_biv_value): Delete loop_start and loop_end arguments;
9155 (final_giv_value, back_branch_in_range_p): Likewise.
9157 2000-01-25 Gavin Romig-Koch <gavin@cygnus.com>
9159 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Fix for mips16.
9161 2000-01-25 Gavin Romig-Koch <gavin@cygnus.com>
9163 * Makefile.in (c-gperf.h) : Change the "See" pointer to
9164 point to the new "generated_files" doc.
9166 2000-01-25 Clinton Popetz <cpopetz@cygnus.com>
9168 * config/fp-bit.c (_unord_f2): Fix typo.
9170 2000-01-25 Zack Weinberg <zack@wolery.cumb.org>
9172 * c-common.c, c-decl.c, c-lang.c, c-lex.c, c-parse.in, c-pragma.c,
9173 c-typeck.c, objc/objc-act.c: Remove all references to obstack
9174 functions obsoleted by GC, such as push_obstacks_nochange,
9175 end_temporary_allocation, savealloc, saveable_tree_cons, etc.
9176 and code which existed only to decide whether or not to call
9177 them. Remove now-unused NESTED argument from start_function;
9178 all callers changed. Do not change behavior based on ggc_p.
9179 The use of the ixp_obstack in c-iterate.c and the util_obstack
9180 in objc/objc-act.c remain; these are not obsoleted by garbage
9182 * c-tree.h: Update prototype for start_function.
9184 * c-parse.y, c-parse.c, objc/objc-parse.c, objc/objc-parse.y: Rebuild.
9186 2000-01-25 Clinton Popetz <cpopetz@cygnus.com>
9188 * config/mips/mips.md (zero_extendsidi2_internal): Disable for
9191 2000-01-25 Richard Henderson <rth@cygnus.com>
9193 * sparc-protos.h (select_cc_mode): Declare.
9194 * sparc.c (select_cc_mode): New. Handle unordered compares.
9195 (output_cbranch): Always reverse via code change. Handle
9196 unordered compares. Factor tests and string updates.
9197 * sparc.h (SELECT_CC_MODE): Split out to select_cc_mode.
9198 (REVERSIBLE_CC_MODE): Also exclude CCFPmode.
9199 * sparc.md (bunordered, bordered): New.
9200 (bungt, bunlt, buneq, bunge, bunle): New.
9202 2000-01-25 Richard Henderson <rth@cygnus.com>
9204 * dwarf2out.c (dwarf2out_init): Use ggc_add_rtx_varray_root.
9205 * ggc-common.c (ggc_add_rtx_varray_root): New.
9206 (ggc_mark_rtx_varray): New.
9207 (ggc_mark_rtx_varray_ptr): New. Shift all ggc_mark_foo_ptr
9208 functions down below ggc_mark_foo.
9209 * ggc.h (ggc_add_rtx_varray_root, ggc_mark_rtx_varray): Declare.
9211 2000-01-25 Richard Henderson <rth@cygnus.com>
9213 * alpha.c (secondary_reload_class): Don't allocate a secondary
9214 for integral mode memories into FLOAT_REGS. Rearrange the more
9215 complicated memory expression inward.
9217 2000-01-25 Zack Weinberg <zack@wolery.cumb.org>
9219 * inclhack.def: Fixes to play nicer with FreeBSD, and
9220 corrections to comments.
9221 (cxx_unready): Add select expression.
9222 (irix_sockaddr): Add bypass expression.
9223 (machine_ansi_h_va_list): New fix.
9224 (stdio_va_list): No need to edit _BSD_VA_LIST_.
9225 Split out addition of "#include <stdarg.h>" to...
9226 (stdio_stdarg_h): ... here.
9227 (systypes_for_aix): Rename to systypes_stdlib_size_t. Apply
9228 to stdlib.h also. Do not munge _BSD_SIZE_T_.
9229 (sysz_stdlib_for_sun): Delete duplicate fix for unprotected
9231 (ultrix_ifdef): Tighten up select expression.
9233 * fixincl.tpl: Exorcise 'exesel'. Rewrite calculations of
9234 re_ct and max_mach to avoid use of shell. Make printed names
9235 match names in inclhack.def. Use static copyright date.
9236 Don't count c_test and test expressions as requiring regex_t
9237 slots. Add some commentary.
9238 * inclhack.tpl: Do not include the 'This script contains N
9239 fixup scripts' line if PROGRAM is defined. Use static
9242 2000-01-24 Jason Merrill <jason@casey.cygnus.com>
9244 * dwarf2out.c: include "varray.h", not dyn-string.h.
9245 (ASM_OUTPUT_DWARF2_ADDR_CONST, ASM_NAME_TO_STRING): Lose.
9246 (addr_const_to_string, addr_to_string): Lose.
9247 (ASM_OUTPUT_DWARF_ADDR_CONST): Copy from dwarfout.c.
9248 (struct dw_val_struct): val_addr is now an rtx.
9249 (add_AT_addr, AT_addr, free_AT, output_aranges): Adjust.
9250 (used_rtx_varray): New varray.
9251 (dwarf2out_init): Initialize it.
9253 (mem_loc_descriptor, add_const_value_attribute): Call it instead of
9255 * arm/telf.h, arm/unknown-elf.h, mn10200.h, mn10300.h,
9256 sparc/sp64-elf.h: Remove definition of ASM_OUTPUT_DWARF2_ADDR_CONST.
9257 * Makefile.in (dwarf2out.o): Update dependencies.
9259 2000-01-24 Richard Henderson <rth@cygnus.com>
9261 * i386.c (i386_dwarf_output_addr_const): New.
9262 * i386.h (ASM_OUTPUT_DWARF_ADDR_CONST): New.
9264 * dwarf2out.c (mem_loc_descriptor): Call ASM_SIMPLIFY_DWARF_ADDR
9266 * dwarfout.c (output_mem_loc_descriptor): Likewise.
9267 * i386.c (i386_simplify_dwarf_addr): New.
9268 * i386.h (ASM_SIMPLIFY_DWARF_ADDR): New.
9270 Mon Jan 24 16:56:10 2000 Jim Wilson <wilson@cygnus.com>
9272 * dwarf2out.c (gen_struct_or_union_type_die): Set complete if
9273 TYPE_STUB_DECL is NULL.
9275 2000-01-24 Richard Henderson <rth@cygnus.com>
9277 * builtins.c (expand_tree_builtin): Move ...
9278 * c-common.c (expand_tree_builtin): ... here.
9280 2000-01-25 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
9282 * loop.h (LOOP_INFO): New accessor macro.
9283 * basic-block.h (struct loop): Rename field `info' to `aux'.
9284 * loop.c (scan_loop): Replace loop->info with LOOP_INFO (loop).
9285 (prescan_loop, strength_reduce, check_dbra_loop, insert_bct): Likewise.
9286 * unroll.c (loop_iterations, unroll_loop): Likewise.
9288 2000-01-24 Christopher Faylor <cgf@cygnus.com>
9290 * config/i386/t-cygwin: Accomodate new winsup directory layout
9291 when searching for include files.
9293 2000-01-24 Richard Henderson <rth@cygnus.com>
9295 * rtl.def: Add unordered fp comparisions.
9296 * tree.def: Likewise.
9297 * tree.h: Add ISO C 9x unordered fp comparision builtins.
9299 * builtins.c (expand_tree_builtin): New function.
9300 * c-typeck.c (build_function_call): Use it.
9301 (build_binary_op): Support unordered compares.
9302 * c-common.c (c_common_nodes_and_builtins): Add unordered compares.
9304 * combine.c (known_cond): Handle reverse_condition returning UNKNOWN.
9305 (reversible_comparison_p): Allow UNORDERED/ORDERED to be reversed.
9306 * cse.c (fold_rtx): Check FLOAT_MODE_P before reversing.
9307 (record_jump_equiv): Handle reverse_condition returning UNKNOWN.
9308 * jump.c (reverse_condition): Don't abort for UNLE etc, but
9310 (swap_condition): Handle unordered compares.
9311 (thread_jumps): Check can_reverse before reversing.
9312 * loop.c (get_condition): Likewise. Allow UNORERED/ORDERED to be
9315 * optabs.c (can_compare_p): New argument CODE. Verify branch or
9316 setcc is present before acking for cmp_optab. Update all callers.
9317 (prepare_float_lib_cmp, init_optabs): Handle UNORDERED.
9318 * expmed.c (do_cmp_and_jump): Update for can_compare_p.
9319 * expr.c (expand_expr): Likewise. Support unordered compares.
9320 (do_jump, do_store_flag): Likewise.
9321 * expr.h (enum libfunc_index): Add unordered compares.
9323 * Makefile.in (FPBIT_FUNCS): Add _unord_sf.
9324 (DPBIT_FUNCS): Add _unord_df.
9325 * config/fp-bit.c (_unord_f2): New.
9326 * fp-test.c (main): Try unordered compare builtins.
9328 * alpha-protos.h (alpha_fp_comparison_operator): Declare.
9329 * alpha.c (alpha_comparison_operator): Check mode properly.
9330 (alpha_swapped_comparison_operator): Likewise.
9331 (signed_comparison_operator): Likewise.
9332 (alpha_fp_comparison_operator): New.
9333 (alpha_emit_conditional_branch): Handle unordered compares.
9334 * alpha.h (PREDICATE_CODES): Update.
9335 * alpha.md (fp compares): Use alpha_fp_comparison_operator.
9336 (bunordered, bordered): New.
9338 2000-01-24 Richard Henderson <rth@cygnus.com>
9340 * alpha.c (alpha_emit_xfloating_cvt): Thinko in operand manipulation.
9341 * alpha.md (movtf): New expander, insn, and splitter.
9343 Mon Jan 24 19:49:47 MET 2000 Jan Hubicka <jh@suse.cz>
9345 * reg-stack.c (subst_stack_regs_pat): Handle correctly USEs of
9348 Mon Jan 24 17:37:31 MET 2000 Jan Hubicka <jh@suse.cz>
9350 * i386.h (FIRST_PSEUDO_REGISTER): Set to 21.
9351 (FIXED_REGISTERS, CALL_USED_REGISTERS,
9352 REG_ALLOC_ORDER): Add frame pointer
9353 (FRAME_POINTER_REGNUM): Set to 20
9354 (HARD_FRAME_POINTER_REGNUM): New macro.
9355 (ELIMINABLE_REGS): Eliminate ARG_POINTER and FRAME_POINTER
9356 to HARD_FRAME_POINTER.
9357 (REGNO_OK_FOR_BASE_P): Accept FRAME_POINTER_REGNUM
9358 (REG_OK_FOR_INDEX_NONSTRICT_P): Likewise.
9359 (REG_OK_FOR_BASE_NONSTRICT_P): Likewise.
9360 (HI_REGISTER_NAMES): Add "frame".
9361 (CAN_ELIMINATE): Handle FRAME_POINTER_REGNUM elimination.
9362 (debug_reg): Handle FRAME_POINTER_REGNUM.
9363 (reg_class): Add arg pointer and frame pointer to NON_Q_REGS,
9364 GENERAL_REGS and INDEX_REGS.
9365 * i386.c (SAVED_REGS_FIRST): new macro.
9366 (AT_BP): Use hard_frame_pointer_rtx instead of frame_pointer_rtx
9367 (ix86_decompose_address, memory_address_length): Likewise.
9368 (regclass_map): Add frame pointer.
9369 (call_insn_operand): Handle frame_pointer_rtx.
9370 (reg_no_sp_operand): Likewise.
9371 (ix86_decompose_address): Handle frame_pointer_rtx as stack_pointer_rtx.
9372 (print_operand, legitimize_pic_address): Fix formating.
9373 (ix86_compute_frame_size): Make static, update prototype, new
9374 parameters padding1, padding2, use ix86_nsaved_regs, use
9375 stack_alignment_needed.
9376 (ix86_initial_elimination_offset): Handle FRAME_POINTER_REGNUM
9377 to HARD_FRAME_POINTER_REGNUM conversions.
9378 (ix86_expand_prologue): Handle SAVED_REGS_FIRST prologues.
9379 (ix86_expand_epilogue): Handle SAVED_REGS_FIRST epilogues.
9380 (print_reg): Abort on FRAME_POINTER_REGNUM
9382 Mon Jan 24 16:50:08 MET 2000 Jan Hubicka <jh@suse.cz>
9384 * i386.h (PREDICATE_CODES): Add aligned_operand.
9385 * i386.c (aligned_operand): New function.
9386 (ix86_aligned_p): Kill.
9387 * i386.md (movhi_1): Emit mov for aligned operands.
9388 (promoting peep2s): Use aligned_operand.
9390 2000-01-23 Zack Weinberg <zack@wolery.cumb.org>
9392 * fixinc/fixfixes.c (fix_char_macro_uses): Correct regular
9393 expression to allow underscores in macro names.
9394 (fix_char_macro_defines): Increment scanning pointer.
9396 2000-01-23 Richard Henderson <rth@cygnus.com>
9398 * alpha/osf.h (TARGET_HAS_XFLOATING_LIBS): Define.
9399 * alpha/osf5.h: New file.
9400 * configure.in (alpha-*-osf5): Add it to tm_file.
9402 * emit-rtl.c (operand_subword): Support TFmode on a 64-bit target.
9404 * alpha-protos.h (alpha_emit_xfloating_arith): Declare.
9405 (alpha_emit_xfloating_cvt, function_arg): Declare.
9406 * alpha.c (alpha_emit_conditional_branch): Call
9407 alpha_emit_xfloating_compare for TFmode compares.
9408 (alpha_lookup_xfloating_lib_func): New.
9409 (alpha_compute_xfloating_mode_arg): New.
9410 (alpha_emit_xfloating_libcall): New.
9411 (alpha_emit_xfloating_arith): New.
9412 (alpha_emit_xfloating_compare): New.
9413 (alpha_emit_xfloating_cvt): New.
9414 (print_operand): Add default abort case.
9415 (function_arg): Mind FUNCTION_ARG_PASS_BY_REFERENCE.
9416 * alpha.h (TARGET_HAS_XFLOATING_LIBS): New.
9417 (BIGGEST_ALIGNMENT): Increase to 128 bits.
9418 (RETURN_IN_MEMORY): True for TF/TCmode.
9419 (ALPHA_ARG_SIZE): TF/TCmode is passed indirect.
9420 (FUNCTION_ARG): Move to function_arg.
9421 (FUNCTION_ARG_PASS_BY_REFERENCE): New.
9422 (ASM_OUTPUT_LONG_DOUBLE): New.
9423 (ASM_OUTPUT_DOUBLE): Always output bits.
9424 * alpha.md (addtf3, divtf3, multf3, subtf3, cmptf): New.
9425 (fix_trunctfdi2, floatditf2, floatunsditf2): New.
9426 (extenddftf2, trunctfdf2): New.
9428 2000-01-23 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
9430 * config/sparc/sol2-sld-64.h (TRANSFER_FROM_TRAMPOLINE): Moved...
9431 * config/sparc/sol2.h: ... here.
9433 2000-01-24 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
9435 * basic-block.h (struct loops): New field `levels'.
9436 * flow.c (flow_loops_level_compute): Traverse all outer loops.
9437 (flow_loop_level_compute): Initialise level to 1.
9438 (flow_loops_find): Set loops->levels.
9439 (flow_loops_dump): Print loops->levels.
9441 2000-01-23 Richard Henderson <rth@cygnus.com>
9443 * libgcc2.c (dwarf_reg_size_table): Size with DWARF_FRAME_REGISTERS.
9444 (throw_helper): Iterate over DWARF_FRAME_REGISTERS.
9446 2000-01-23 Richard Henderson <rth@cygnus.com>
9448 * i386.c (dbx_register_map, svr4_dbx_register_map): New.
9449 * i386.h (DBX_REGISTER_NUMBER): Use them.
9450 * i386/beos-elf.h, i386/freebsd-elf.h, i386/i386elf.h: Likewise.
9451 * i386/linux.h, i386/osfrose.h, i386/ptx4-i.h: Likewise.
9452 * i386/rtemself.h, i386/sco5.h, i386/sysv4.h: Likewise.
9453 * i386/sequent.h: Kill incorrect comment.
9455 2000-01-23 Mark Mitchell <mark@codesourcery.com>
9457 * ggc-page.c (struct page_entry): Make `context_depth' an
9459 (struct globals): Likewise.
9461 2000-01-23 Clinton Popetz <cpopetz@cygnus.com>
9463 * loop.c (check_dbra_loop): When checking a loop for
9464 reversability, check the source of any stores to ensure
9465 they don't depend on an initial value.
9467 2000-01-23 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
9469 * config/c4x/c4x.h (ASM_OUTPUT_BSS): Redefine.
9471 2000-01-22 Zack Weinberg <zack@wolery.cumb.org>
9473 * fixinc/fixincl.c: Move declarations of 'pz_fname' and
9474 'pz_scan' into scope of entire function. Only affects
9475 compiles with -DDEBUG.
9477 2000-01-22 Alan Modra <alan@SPRI.Levels.UniSA.Edu.Au>
9479 * config/elfos.h (UNIQUE_SECTION): Restore uninitialised data
9480 section naming to that prior to 2000-01-07 patch.
9481 * config/mips/elf.h (UNIQUE_SECTION): Ditto.
9482 * config/mips/elf64.h (UNIQUE_SECTION): Ditto.
9483 * config/mips/iris6gld.h (UNIQUE_SECTION): Ditto.
9484 * config/i386/interix.c (UNIQUE_SECTION): Ditto.
9485 * config/i386/winnt.c (UNIQUE_SECTION): Ditto.
9487 2000-01-22 Bernd Schmidt <bernds@cygnus.co.uk>
9489 * config/arm/arm.c (soft_df_operand): Reject SUBREGs containing a
9492 2000-01-21 Jim Wilson <wilson@cygnus.com>
9494 * fixinc/inclhack.tpl: Test for directory before trying to cd into it.
9495 * fixinc/fixincl.sh, fixinc/inclhack.sh: Regenerate.
9497 2000-01-21 Zack Weinberg <zack@wolery.cumb.org>
9499 * cpphash.c (change_newlines): Delete function.
9500 (struct argdata): Delete 'newlines' and 'use_count' fields.
9501 (macroexpand): Remove code referencing those fields.
9503 2000-01-22 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
9505 * loop.c (loops_info): New variable.
9506 (loop_optimize): Allocate loops->array and free it on exit.
9507 Allocate memory for loops_info and assign to each loop,
9509 (find_and_verify_loops): Do not allocate loops->array.
9511 2000-01-21 Zack Weinberg <zack@wolery.cumb.org>
9513 * fixinc/fixfixes.c (machine_name_fix): Don't free 'scratch'.
9515 2000-01-21 Jakub Jelinek <jakub@redhat.com>
9517 * config/sparc/sparc.md (movsi_pic_label_ref): Avoid creating new
9518 pseudos if expanded after first flow.
9519 (movdi_pic_label_ref): Likewise.
9521 2000-01-20 Richard Henderson <rth@cygnus.com>
9523 * jump.c (jump_optimize_1): Don't do addr_vec optimizations at -O0.
9525 2000-01-20 Zack Weinberg <zack@wolery.cumb.org>
9527 * Makefile.in (fixinc.sh): Depend on specs.
9528 * fixinc/Makefile.in: Add rule to create machname.h.
9529 (fixlib.o): Depend on machname.h.
9530 * fixinc/fixtests.c (machine_name): New test.
9531 * fixinc/fixfixes.c (machine_name): New fix.
9532 * fixinc/fixlib.c (mn_get_regexps): New helper function for
9533 the machine_name test and fix.
9534 * fixinc/fixlib.h: Prototype it.
9535 * fixinc/inclhack.def (machine_name): Use the C test and fix.
9536 * fixinc/fixincl.x, fixinc/inclhack.sh: Rebuild.
9538 * gcc.c (do_spec_1) [case P]: Take care not to create
9539 identifiers with three leading or trailing underscores.
9541 * fixinc/Makefile.in (FIXINC_DEFS): Add -DIN_GCC.
9542 (fixincl): Don't specify libraries twice on link line.
9543 (gnu-regex.o): Remove special rule.
9544 * fixinc/gnu-regex.c: Define REGEX_MALLOC if C_ALLOCA was
9545 defined by config.h. Do not define _REGEX_RE_COMP.
9546 (regcomp): Allocate and initialize a fastmap.
9547 * fixinc/gnu-regex.h: Do not define _REGEX_RE_COMP.
9549 2000-01-20 Brad Lucier <lucier@math.purdue.edu>
9551 * Makefile.in (predict.o): Depend on $(EXPR_H), not expr.h.
9553 2000-01-19 Richard Henderson <rth@cygnus.com>
9555 * flow.c (propagate_block): Replace FIRST, LAST and BNUM
9556 arguments with BB. Update all callers. Tidy line wrapping.
9558 2000-01-19 Clinton Popetz <cpopetz@cygnus.com>
9560 * emit-rtl.c (try_split): Return last_insn if we split the
9563 Thu Jan 20 01:01:23 MET 2000 Jan Hubicka <jh@suse.cz>
9565 * i386-protos.h (ix86_compute_frame_size): Remove prototype.
9566 (ix86_initial_elimination_offset): Declare.
9567 * i386.c (ix86_nsaved_regs): Break out from ...
9568 (ix86_can_use_return_insn_p): ... here.
9569 (ix86_emit_save_regs): Break out from ...
9570 (ix86_expand_prologue): ... here.
9571 (ix86_emit_epilogue_esp_adjustment, ix86_emit_restore_regs): Break
9573 (ix86_expand_epilogue): ... here.
9574 (ix86_compute_frame_size): Make static, add prototype.
9575 (ix86_initial_elimination_offset): Break out from ...
9576 * i386.h (INITIAL_ELIMINATION_OFFSET): ... here.
9578 2000-01-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9580 * recog.h (OUT_FCN): Delete.
9582 * vax.md: Call `get_insn_template' instead of OUT_FCN.
9584 2000-01-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9586 * cppalloc.c: PROTO -> PARAMS.
9587 * cpperror.c: Likewise.
9588 * cppfiles.c: Likewise.
9589 * cpplib.c: Likewise.
9590 * cpplib.h: Likewise.
9592 * config/arm/arm-protos.h: PROTO -> PARAMS.
9593 * config/arm/arm.c: Likewise.
9594 * config/c4x/c4x.c: Likewise.
9595 * config/fr30/fr30-protos.h: Likewise.
9596 * config/nextstep.c: Likewise.
9597 * config/pa/pa.c: Likewise.
9598 * config/pj/pj.c: Likewise.
9599 * config/rs6000/rs6000.c: Likewise.
9600 * config/v850/v850-protos.h: Likewise.
9601 * config/v850/v850.c: Likewise.
9603 2000-01-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9605 * i370-protos.h: New file.
9607 * i370.c: Include tm_p.h. Fix compile time warnings.
9609 * i370.h: Move prototypes to i370-protos.h. Fix compile time
9612 * i370.md: Likewise.
9614 2000-01-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9616 * real.c (enan, einan, eiisnan, eiisneg, make_nan): Wrap in NANS.
9617 (target_isinf, target_isnan, eisnan): Mark parameter with
9619 (eiisinf): Wrap in INFINITY.
9620 (etoe113, etoe64, etoe53, etoe24): Wrap label `nonorm' in INFINITY.
9621 (ibmtoe): Remove unused variable `rndsav'.
9623 Wed Jan 19 20:23:06 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
9625 * sh.h (PASS_IN_REG_P): Remove extraneous paranthesis.
9626 (GO_IF_LEGITIMATE_ADDRESS): Added missing tab.
9628 2000-01-19 Zack Weinberg <zack@wolery.cumb.org>
9630 * fixinc/Makefile.in: Correct dependencies of fixincl and fixincl.o.
9631 * fixinc/fixfixes.c (IO_use, CTRL_use, IO_defn, CTRL_defn): New fixes.
9632 (fix_char_macro_defines, fix_char_macro_uses): New functions.
9634 * fixinc/fixlib.c (is_cxx_header): Do the text scan with a regexp.
9635 Recognize Emacs mode markers also.
9636 * fixinc/fixtests.c (else_endif_label): Fix bug in recognition of
9637 C++ comments in C++ headers. Call is_cxx_header only if
9640 * fixinc/inclhack.def (avoid_bool): Add select for the problem and
9642 (bsd43_io_macros, io_def_quotes, ioctl_fix_ctrl): Replace with...
9643 (io_def_quotes, io_use_quotes, ctrl_def_quotes, ctrl_use_quotes):
9644 ... these, which use the new C fixes.
9645 (math_exception): Escape literal '+' in bypass expression.
9647 * fixinc/fixincl.x, fixinc/fixincl.sh, fixinc/inclhack.sh:
9650 2000-01-19 Geoff Keating <geoffk@cygnus.com>
9652 * rtlanal.c (reg_referenced_p): A CLOBBER of a MEM uses any REGs
9655 2000-01-20 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
9657 * loop.c (loop_optimize): Allocate loop_info structure for each loop
9658 prior to calling scan_loop.
9660 Wed Jan 19 19:54:38 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
9662 * sh.c (find_barrier, gen_block_redirect): Fix indentation.
9663 (split_branches, calc_live_regs): Likewise.
9665 Wed Jan 19 19:12:36 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
9667 * sh.md (fpu_single, fp_mode): New attributes.
9669 2000-01-20 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
9671 * loop.c (current_loop_info): Renamed from loop_info_data
9672 and changed to a pointer.
9673 (loop_optimize): Allocate loop_info structure for each loop
9674 and initialise to zero.
9675 (scan_loop): Set current_loop_info.
9677 * unroll.c (loop_iterations): Don't abort if REG_USERVAR_P set
9680 2000-01-19 Richard Henderson <rth@cygnus.com>
9682 * stupid.c: Die die die.
9683 * Makefile.in (OBJS): Remove stupid.o.
9684 (stupid.o): Likewise.
9686 * except.c (emit_eh_context): Don't emit USEs for stupid.
9687 * explow.c (probe_stack_range): Likewise.
9688 * flags.h (obey_regdecls): Remove.
9689 * flow.c (find_basic_blocks): Don't run try_merge_blocks
9690 when not optimizing.
9691 (life_analysis): Limit data collection when not optimizing.
9692 (mark_regs_live_at_end): Always mark the return value registers.
9693 (mark_used_regs): Remove dummy RETURN case.
9694 (print_rtl_with_bb): Don't consult obey_regdecls.
9695 * function.c (use_variable, use_variable_after): Remove.
9696 (assign_parms): Consult optimize not obey_regdecls.
9697 (expand_function_start): Don't emit USEs for stupid.
9698 (expand_function_end): Likewise.
9699 * global.c (build_insn_chain): Export.
9700 * integrate.c (expand_inline_function): Kill return-value USE
9702 * jump.c (jump_optimize_1): Do simple jump optimizations and
9703 dead code elimination.
9704 (calculate_can_reach_end): Remove check_deleted argument.
9705 (delete_insn): Patch out insns even when not optimizing.
9706 * local-alloc.c (block_alloc): Don't do tying when not optimizing.
9707 * rtl.h (use_variable, use_variable_after): Remove declarations.
9708 (build_insn_chain): Declare.
9709 * stmt.c (expand_value_return): Don't emit USEs for stupid.
9710 (expand_end_bindings): Likewise.
9711 (expand_decl): Likewise. Consult optimize not obey_regdecls.
9712 * toplev.c (obey_regdecls): Remove.
9713 (rest_of_compilation): Don't set it. Kill stupid in favour of
9714 flow1, local-alloc, and reload.
9715 (main): Don't set obey_regdecls.
9717 * config/nextstep.c (handle_pragma): Likewise.
9719 * alpha/alpha.md (allocate_stack): Don't emit USEs for stupid.
9721 * arm/arm.h (CONDITIONAL_REGISTER_USAGE): Don't fix reg 0 for stupid.
9723 2000-01-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9725 * alpha-protos.h: PROTO -> PARAMS.
9726 * alpha.c: Likewise.
9728 * h8300.c: Likewise.
9729 * i386-protos.h: Likewise.
9731 * m32r-protos.h: Likewise.
9734 * mips.md: Likewise.
9735 * gmon-sol2.c: Likewise.
9736 * sparc.c: Likewise.
9738 2000-01-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9740 * ns32k-protos.h: New file.
9742 * ns32k.c: Fix compile time warnings.
9744 * ns32k.h: Move prototypes to ns32k-protos.h. Fix compile time
9747 * ns32k.md: Likewise.
9749 2000-01-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9751 * vax-protos.h: New file.
9753 * vax.c: Fix compile time warnings.
9755 * vax.h: Move prototypes to vax-protos.h. Fix compile time
9760 * vaxv.md: Likewise.
9762 2000-01-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9764 * romp-protos.h: New file.
9766 * romp.c: Fix compile time warnings.
9768 * romp.h: Move prototypes to romp-protos.h. Fix compile time
9771 * romp.md: Likewise.
9773 2000-01-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9775 * we32k-protos.h: New file.
9777 * we32k.c: Fix compile time warnings.
9779 * we32k.h: Move prototypes to we32k-protos.h. Fix compile time
9782 2000-01-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9784 * calls.c (emit_call_1): Mark parameter with ATTRIBUTE_UNUSED.
9786 * except.c (eh_regs): Likewise.
9788 * final.c (output_operand): Likewise.
9790 * fold-const.c (target_isinf, target_isnan): Likewise.
9792 Tue Jan 18 16:19:55 MET 2000 Jan Hubicka <hubicka@freesoft.cz>
9794 * i386.h (BIGGEST_ALIGNMENT): Set to 128.
9795 (BIGGEST_FIELD_ALIGNMENT): Set to (TARGET_ALIGN_DOUBLE ? 64 : 32)
9797 * i386.md (memstr): Do not use rep stosb for counts divisible by 4
9799 (clrstrsi): Rewrite.
9800 (strsethi, strsetqi): New expanders.
9801 (strsethi_1, strsetqi_1, rep_stossi, rep_stosqi): New insn patterns.
9802 (cmpstrsi): Emit compare insn before cmpstrsi_1
9803 (cmpstrsi_nz): use flags, set type to str, prefix_length to 1.
9804 (strlensi_1): Likewise.
9805 (cmpstrsi_1): Likewise; do not output compare.
9806 (strlen expander): Do not unroll when optimizing for size.
9807 (*subsi3_carry): Rename to subsi3_carry
9808 (addqi3_cc): New pattern.
9809 * i386.h (processor_costs): Add move_ratio field.
9810 (MOVE_RATIO): Use move_ratio field, set to 3 for OPTIMIZE_SIZE
9811 * i386.c (*_cost): Set move_ratio.
9812 (x86_unroll_strlen): Enable for Athlon, PPro and K6 too.
9813 (x86_expand_strlensi_1): Rewrite the main loop.
9815 2000-01-17 Richard Henderson <rth@cygnus.com>
9817 * combine.c (combine_simplify_rtx): Give FLOAT_STORE_FLAG_VALUE a mode.
9818 * cse.c (find_comparison_args, fold_rtx): Likewise.
9819 * integrate.c (subst_constants): Likewise.
9820 * loop.c (get_condition): Likewise.
9822 * tm.texi (FLOAT_STORE_FLAG_VALUE): Update docs.
9824 * alpha.h (FLOAT_STORE_FLAG_VALUE): Use REAL_VALUE_ATOF.
9826 2000-01-18 Martin v. Löwis <loewis@informatik.hu-berlin.de>
9828 * c-parse.in (SAVE_WARN_FLAGS): Create an INTEGER_CST.
9829 (RESTORE_WARN_FLAGS): Unpack it.
9830 Change semantic type of extension to ttype.
9831 * c-common.c (split_specs_attrs): Expect an INTEGER_CST.
9832 * c-parse.y, c-parse.c, objc/objc-parse.y,
9833 objc/objc-parse.c: Regenerate.
9835 2000-01-17 Zack Weinberg <zack@wolery.cumb.org>
9837 * fixinc/fixlib.c: Add copyright notice.
9838 (compile_re): New function.
9839 * fixinc/fixlib.h: Prototype compile_re.
9841 * fixinc/fixfixes.c, fixinc/fixtests.c, fixinc/fixincl.c:
9842 Use compile_re to compile regular expressions.
9844 * fixinc/fixincl.c (egrep_test): Don't bother asking regexec
9845 where the pattern matched.
9847 * fixinc/inclhack.def (sun_memcpy): Move to AAB_sun_memcpy,
9849 (ultrix_ansi_compat): Likewise.
9850 (interactv_add1): Rename to 'isc_omits_with_stdc', remove shell test,
9852 (interactv_add2, interactv_add3): Delete.
9853 (x11_sprintf): Don't use filename glob.
9854 * fixinc/fixincl.x, fixinc/inclhack.sh, fixinc/fixincl.sh:
9857 2000-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9859 * print-rtl.c: PROTO -> PARAMS.
9861 * reg-stack.c: Likewise.
9862 * resource.c: Likewise.
9863 * sdbout.h: Likewise.
9864 * simplify-rtx.c: Likewise.
9865 * stor-layout.c: Likewise.
9866 * stupid.c: Likewise.
9867 * xcoffout.c: Likewise.
9868 * xcoffout.h: Likewise.
9870 2000-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9872 * toplev.c: PROTO -> PARAMS.
9873 * toplev.h: Likewise.
9876 * unroll.c: Likewise.
9877 * varasm.c: Likewise.
9878 * varray.c: Likewise.
9879 * varray.h: Likewise.
9881 2000-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9883 * reload.c: PROTO -> PARAMS.
9884 * reload.h: Likewise.
9885 * reload1.c: Likewise.
9886 * reorg.c: Likewise.
9887 * resource.h: Likewise.
9890 * rtlanal.c: Likewise.
9891 * sbitmap.h: Likewise.
9892 * sdbout.c: Likewise.
9893 * stack.h: Likewise.
9895 * system.h: Likewise.
9897 2000-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9899 * machmode.h: PROTO -> PARAMS.
9900 * mbchar.h: Likewise.
9901 * mips-tdump.c: Likewise.
9902 * mips-tfile.c: Likewise.
9903 * optabs.c: Likewise.
9904 * output.h: Likewise.
9905 * prefix.c: Likewise.
9906 * profile.c: Likewise.
9907 * protoize.c: Likewise.
9909 * recog.c: Likewise.
9910 * recog.h: Likewise.
9911 * regclass.c: Likewise.
9912 * regmove.c: Likewise.
9915 2000-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9917 * ggc-common.c: PROTO -> PARAMS.
9918 * ggc-page.c: Likewise.
9919 * ggc-simple.c: Likewise.
9921 * global.c: Likewise.
9922 * graph.c: Likewise.
9923 * gthr-win32.h: Likewise.
9924 * haifa-sched.c: Likewise.
9925 * halfpic.h: Likewise.
9926 * integrate.c: Likewise.
9927 * integrate.h: Likewise.
9930 * local-alloc.c: Likewise.
9934 2000-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9936 * genattr.c: PROTO -> PARAMS.
9937 * genattrtab.c: Likewise.
9938 * gencheck.c: Likewise.
9939 * gencodes.c: Likewise.
9940 * genconfig.c: Likewise.
9941 * genemit.c: Likewise.
9942 * genextract.c: Likewise.
9943 * genflags.c: Likewise.
9944 * gengenrtl.c: Likewise.
9945 * genopinit.c: Likewise.
9946 * genoutput.c: Likewise.
9947 * genpeep.c: Likewise.
9948 * genrecog.c: Likewise.
9950 2000-01-16 Mark Mitchell <mark@codesourcery.com>
9952 * tree.h (BINFO_VPTR_FIELD): Augment documentation.
9954 2000-01-16 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
9956 * aclocal.m4 (AC_FUNC_MMAP_ZERO): New macro.
9957 * configure.in (AC_FUNC_MMAP_ZERO): Use instead of AC_FUNC_MMAP.
9958 * ggc-page.c: Replace HAVE_MMAP with HAVE_MMAP_ZERO.
9959 * configure, config.in: Rebuilt.
9961 2000-01-16 Zack Weinberg <zack@wolery.cumb.org>
9963 * config/i386/i386.md: Add peephole to merge successive stack
9966 Sat Jan 15 15:41:14 EST 2000 John Wehle (john@feith.com)
9968 * gcse.c (insert_insn_end_bb): Use emit_block_insn_before
9969 instead of emit_insn_before. Also handle NOTE_INSN_BASIC_BLOCK
9970 when walking backwards to find all the parameter loads when
9971 the basic block ends in a call.
9973 2000-01-15 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
9975 * loop.c (this_loop_info): Delete.
9976 (uid_loop): Add in place of uid_loop_num. All uses updated.
9977 (loop_number_exit_count): Delete and replace with entry in loop
9978 structure. All uses updated.
9979 (loop_number_loop_starts, loop_number_loop_ends): Likewise.
9980 (loop_number_loop_cont, loop_number_cont_dominator): Likewise.
9981 (loop_outer_loop): Likewise.
9982 (loop_invalid, loop_number_exit_labels): Likewise.
9983 (loop_used_count_register): Delete and replace with entry in
9984 loop_info structure.
9985 (find_and_verify_loops): Add loops argument.
9986 (verify_dominator, mark_loop_jump, prescan_loop): Replace loop_start,
9987 loop_end, etc. arguments with loop structure pointer. All callers
9989 (loop_reg_used_before_p, scan_loop, strength_reduce): Likewise.
9990 (check_dbra_loop, next_insn_in_loop, try_copy_prop): Likewise.
9991 (load_mems_and_recount_loop_regs_set, load_mems): Likewise.
9992 (insert_bct): Likewise.
9993 (basic_induction_var): New argument level.
9994 * loop.h (struct loop_info): Delete fields num, loops_enclosed,
9995 vtop, and cont. Add used_count_register.
9996 (uid_loop): Delete declaration.
9997 (loop_number_exit_count): Likewise.
9998 (loop_number_loop_starts, loop_number_loop_ends): Likewise.
9999 (loop_number_loop_cont, loop_number_cont_dominator): Likewise.
10000 (loop_outer_loop, loop_used_count_register): Likewise.
10001 (loop_invalid, loop_number_exit_labels): Likewise.
10002 (unroll_loop): Replace loop_start and loop_end arguments
10003 with loop structure pointer.
10004 (loop_precondition_p, loop_iterations): Likewise.
10005 Include basic-block.h.
10006 * unroll.c: (unroll_loop): Replace loop_start and loop_end arguments
10007 with loop structure pointer.
10008 (loop_precondition_p, loop_iterations): Likewise.
10009 * basic-block.h (struct loop): New entries vtop, cont,
10010 cont_dominator, start, end, top, scan_start, exit_labels,
10012 * Makefile.in (LOOP_H): Add basic-block.h to dependencies.
10014 2000-01-15 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
10016 * defaults.h (ASM_OUTPUT_ASCII): Use ISDIGIT.
10018 2000-01-14 Nathan Sidwell <sidwell@codesourcery.com>
10020 * config.in: Rebuilt for 2000-01-13 change to acconfig.h.
10022 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10024 * pdp11-protos.h: New file.
10026 * pdp11.c: Include tm_p.h. Add static prototypes. Fix compile
10029 * pdp11.h: Move prototypes to pdp11-protos.h. Fix compile time
10032 * pdp11.md: Likewise.
10034 * 2bsd.h: Likewise.
10036 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10038 * mn10300-protos.h: New file.
10040 * mn10300.c: Include tm_p.h. Add static prototypes. Fix compile
10043 * mn10300.h: Move prototypes to mn10300-protos.h. Fix compile time
10046 * mn10300.md: Likewise.
10048 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10050 * mn10200-protos.h: New file.
10052 * mn10200.c: Include tm_p.h. Add static prototypes. Fix compile
10055 * mn10200.h: Move prototypes to mn10200-protos.h. Fix compile time
10058 * mn10200.md: Likewise.
10060 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10062 * h8300-protos.h: New file.
10064 * h8300.c: Include tm_p.h. Add static prototypes. Fix compile
10067 * h8300.h: Move prototypes to h8300-protos.h. Fix compile time
10070 * h8300.md: Likewise.
10072 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10074 * varasm.c (asm_output_bss): Mark parameters with ATTRIBUTE_UNUSED.
10075 (asm_emit_uninitialised): Likewise.
10077 2000-01-13 Gavin Romig-Koch <gavin@cygnus.com>
10079 * config/mips/mips.h (ISA_HAS_INT_CONDMOVE): New.
10080 * config/mips/mips.md: Use ISA_HAS_INT_CONDMOVE.
10082 2000-01-14 Clinton Popetz <cpopetz@cygnus.com>
10084 * config/mips/mips.c (override_options): Don't turn on extra
10085 alignment for mips16.
10087 2000-01-14 Clinton Popetz <cpopetz@cygnus.com>
10089 * config/mips/mips.c (mips_va_arg): Fix fprv for the 32 bit
10090 eabi, and make sure queued POSTINCREMENT rtl is emitted at
10093 2000-01-14 Clinton Popetz <cpopetz@cygnus.com>
10095 * builtins.c (PAD_VARARGS_DOWN): Define.
10096 (std_expand_builtin_va_arg): Use the above macro.
10097 * config/mips/mips.h (PAD_VARARGS_DOWN): Define.
10098 * tm.texi (Register Arguments): Document the above macro.
10100 2000-01-14 Nick Clifton <nickc@cygnus.com>
10102 * emit-rtl.c (emit_insn): If checking is enabled, make sure
10103 that this function has not been used to emit a jump
10106 * jump.c (return_jump_1): Cope with being passed a null rtx.
10108 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10110 * eh-common.h: PROTO -> PARAMS.
10111 * emit-rtl.c: Likewise.
10112 * errors.c: Likewise.
10113 * errors.h: Likewise.
10114 * except.c: Likewise.
10115 * except.h: Likewise.
10116 * explow.c: Likewise.
10117 * expmed.c: Likewise.
10118 * expr.c: Likewise.
10119 * expr.h: Likewise.
10120 * final.c: Likewise.
10121 * fix-header.c: Likewise.
10122 * flow.c: Likewise.
10123 * fold-const.c: Likewise.
10124 * function.c: Likewise.
10125 * function.h: Likewise.
10127 * gcov-io.h: Likewise.
10128 * gcov.c: Likewise.
10129 * gcse.c: Likewise.
10131 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10133 * sh-protos.h: New file.
10135 * sh.c: Include insn-config.h, toplev.h, recog.h and tm_p.h.
10136 Add static prototypes. Fix compile time warnings.
10138 * sh.h: Move prototypes to sh-protos.h. Fix compile time warnings.
10142 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10144 * arc-protos.h: New file.
10146 * arc.c: Include tm_p.h. Add static prototypes. Fix compile
10149 * arc.h: Move prototypes to arc-protos.h. Fix compile time
10152 * arc.md: Likewise.
10154 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10156 * dsp16xx-protos.h: New file.
10158 * dsp16xx.c: Include tm_p.h. Add static prototypes. Fix compile
10161 * dsp16xx.h: Move prototypes to dsp16xx-protos.h. Fix compile time
10164 * dsp16xx.md: Likewise.
10166 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10168 * convex-protos.h: New file.
10170 * convex.c: Include tm_p.h. Add static prototypes. Fix compile
10173 * convex.h: Move prototypes to convex-protos.h. Fix compile time
10176 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10178 * elxsi-protos.h: New file.
10180 * elxsi.c: Include tm_p.h. Add static prototypes. Fix compile
10183 * elxsi.h: Move prototypes to elxsi-protos.h. Fix compile time
10186 * elxsi.md: Likewise.
10188 2000-01-14 Clinton Popetz <cpopetz@cygnus.com>
10190 * config/mips/mips.h (REGISTER_MOVE_COST): Remove redundant
10191 case for moving from HI/LO/HI_LO_REG. This makes the behavior
10192 match the comment for MIPS16.
10194 Fri Jan 14 00:28:06 2000 Jeffrey A Law (law@cygnus.com)
10196 * flow.c (split_edge): Do not call set_block_for_insn if we
10197 do not have a basic_block_for_insn structure.
10199 * fr30.h (TRAMPOLINE_TEMPLATE): Use nops to ensure the static chain
10200 and destination functions are 32bit aligned within the trampoline.
10201 (TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE): Corresponding changes.
10202 (TRAMPOLINE_ALIGNMENT): Define.
10204 * cse.c (cse_insn): When changing (set (pc) (reg)) to
10205 (set (pc) (label_ref)), verify the change creates a valid insn.
10207 * fr30.c (call_operand): Tighten and rework to match rules for
10208 call RTL expressions.
10209 * fr30.h (PREDICATE_CODES, case call_operand): Only allow MEMs.
10210 * fr30.md (call patterns): Improve constraints.
10212 Thu Jan 13 23:44:03 2000 Richard Henderson <rth@cygnus.com>
10214 * fr30.c (fr30_expand_epilogue): Revert last change.
10215 Use emit_jump_insn for the return insn.
10217 Thu Jan 13 14:46:03 2000 Jason Eckhardt <jle@cygnus.com>
10218 Stan Cox <scox@cygnus.com>
10220 * predict.c: New file. Preliminary infrastructure work for static
10221 branch prediction and basic block reordering.
10222 * basic-block.h: Add prototype for estimate_probability.
10223 * Makefile.in: Add rules for predict.o.
10225 2000-01-13 Jason Merrill <jason@yorick.cygnus.com>
10227 * fixincludes (va_list): Use __not_va_list__ for the dummy.
10228 * fixinc/*: Likewise.
10230 2000-01-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10232 * cccp.c: PROTO -> PARAMS.
10233 * cexp.y: Likewise.
10234 * collect2.c: Likewise.
10235 * combine.c: Likewise.
10236 * convert.h: Likewise.
10238 * dbxout.c: Likewise.
10239 * dbxout.h: Likewise.
10240 * diagnostic.c: Likewise.
10241 * doprint.c: Likewise.
10242 * dwarf2out.c: Likewise.
10243 * dwarf2out.h: Likewise.
10244 * dwarfout.c: Likewise.
10245 * dwarfout.h: Likewise.
10246 * dyn-string.h: Likewise.
10248 2000-01-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10250 * calls.c (emit_call_1): Wrap varaible `struct_value_size_rtx' in
10251 macro conditionals guarding use.
10253 * dwarf2out.c: Include "tm_p.h".
10255 * function.c (locate_and_pad_parm): Mark parameter with
10257 (expand_function_end): Likewise for variable `context'.
10259 * reorg.c (make_return_insns): Wrap prototype in macro HAVE_return.
10261 2000-01-13 Nick Clifton <nickc@cygnus.com>
10263 * config/fr30/fr30.c (fr30_expand_epilogue): Emit USEs of pop'ed
10264 register to prevent compile time warnings.
10266 2000-01-13 Zack Weinberg <zack@wolery.cumb.org>
10268 * longlong.h [i386] (udiv_qrnnd): Rename 'd' argument to 'dv'
10269 to avoid -Wtraditional warning.
10271 2000-01-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10273 * 1750a-protos.h: New file.
10275 * 1750a.c: Include tm_p.h. Add static prototypes. Fix compile
10278 * 1750a.h: Move prototypes to 1750a-protos.h. Fix compile time
10281 * 1750a.md: Likewise.
10283 2000-01-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10285 * a29k-protos.h: New file.
10287 * a29k.c: Include tm_p.h. Add static prototypes. Fix compile
10290 * a29k.h: Move prototypes to a29k-protos.h. Fix compile time
10293 2000-01-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10295 * clipper-protos.h: New file.
10297 * clipper.c: Include tm_p.h. Add static prototypes. Fix compile
10300 * clipper.h: Move prototypes to clipper-protos.h. Fix compile time
10303 Thu Jan 13 16:03:06 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
10305 * reload1.c (reload_combine_note_store): Use HARD_REGNO_NREGS.
10307 2000-01-13 Nathan Sidwell <sidwell@codesourcery.com>
10309 * configure.in (--enable-new-gxx-abi): New option.
10310 * acconfig.h (ENABLE_NEW_GXX_ABI): New define.
10311 * Makefile.in (GXX_ABI_FLAG): New variable.
10312 * configure: Regenerate.
10314 2000-01-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
10316 * stor-layout.c (layout_type): Use FORCE_STRUCT_BLK.
10317 * tm.texi (FORCE_STRUCT_BLK): Document.
10318 * config/c4x/c4x.h (FORCE_STRUCT_BLK): New macro.
10320 Wed Jan 12 23:12:47 2000 Hans-Peter Nilsson <hp@axis.com>
10322 * config/ns32k/ns32k.md: Revert Jan 9 change.
10324 * genrecog.c (maybe_both_true_2): Do not compare a predicate-test
10325 to a mode-test, if the predicate is address_operand.
10327 Wed Jan 12 22:34:00 2000 Jeffrey A Law (law@cygnus.com)
10329 * combine.c (if_then_else_cond): Be careful about what kinds
10330 of RTL expressions are passed to operand_subword.
10332 * flow.c (split_edge): If we have to insert a new jump, make
10333 sure to associate it with a basic block.
10335 * flow.c (commit_one_edge_insertion): A block with one successor
10336 can end in a JUMP_INSN that is not a simplejump.
10338 2000-01-12 Robert Lipe <robertl@sco.com>
10340 * i386/sco5.h (INIT_SECTION_ASM_OP_COFF): Rename section to "ctor".
10341 (BUILD_VA_LIST_TYPE): Define.
10342 (EH_FRAME_SECTION_ASM_OP): Explictly define to better interact
10345 2000-01-12 Jason Merrill <jason@casey.cygnus.com>
10347 * cccp.c (do_pragma): Add cast to (char *).
10349 2000-01-12 Richard Henderson <rth@cygnus.com>
10350 Fred Fish <fnf@be.com>
10351 Jason Merrill <jason@cygnus.com>
10353 * configure.in (i?86-*-beos{pe,elf,}*): Recognize.
10354 * i386/t-beos, i386/x-beos, i386/xm-beos.h: New files.
10355 * i386/beos-elf.h, i386/beos-pe.h: New files.
10357 * Makefile.in (CROSS_SYSTEM_HEADER_DIR): New.
10358 * cross-make (SYSTEM_HEADER_DIR): Define using
10359 CROSS_SYSTEM_HEADER_DIR.
10361 * gcc.c (LIBRARY_PATH_ENV): Provide default.
10362 (process_command): Use it.
10363 (main): Likewise. Kill trailing = from env vars.
10364 (build_search_list): Put it back.
10365 * collect2.c (main): Use LIBRARY_PATH_ENV.
10367 * configure.in (GCC_NEED_DECLARATIONS): Add environ.
10368 * toplev.c: Use NEED_DECLARATION_ENVIRON.
10370 * tm.texi (Frame Layout): Document SMALL_STACK.
10371 * c-common.c (c_common_nodes_and_builtins): Check it.
10373 * system.h: Undef alloca after including glibc's <stdlib.h>,
10374 if USE_C_ALLOCA is defined.
10376 * gcc.c (set_input): New fn.
10377 (main): After all input files are compiled, reset the input file
10380 * aclocal.m4 (rindex, index): If already defined, don't attempt
10383 * ginclude/varargs.h: (__va_list__): Define ifndef.
10384 * ginclude/stdarg.h: Likewise.
10386 * ginclude/stddef.h (__WCHAR_TYPE__) [BEOS]: Use int
10387 instead of unsigned char.
10389 * hash.h (true, false, boolean): Undef before enum.
10391 * expmed.c (choose_multiplier): Cast &mhigh_lo and &mhigh_hi to be
10392 proper type of "HOST_WIDE_INT *", rather than their natural type of
10393 "unsigned HOST_WIDE_INT *".
10395 2000-01-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10397 * svr3.h (ASM_FILE_START): Wrap if-clause in squigly brackets.
10399 * recog.c (memory_address_p): Mark parameter with ATTRIBUTE_UNUSED.
10401 * regclass.c (choose_hard_reg_mode): Likewise.
10403 * reload.c (find_valid_class, strict_memory_address_p): Likewise.
10405 * reorg.c (optimize_skip): Wrap prototype in macro conditionals.
10407 2000-01-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10409 * c-common.c: PROTO -> PARAMS.
10410 * c-common.h: Likewise.
10411 * c-decl.c: Likewise.
10412 * c-iterate.c: Likewise.
10413 * c-lang.c: Likewise.
10414 * c-lex.c: Likewise.
10415 * c-lex.h: Likewise.
10416 * c-parse.in: Likewise.
10417 * c-pragma.c: Likewise.
10418 * c-pragma.h: Likewise.
10419 * c-tree.h: Likewise.
10420 * c-typeck.c: Likewise.
10421 * objc/objc-act.c: Likewise.
10422 * objc/objc-act.h: Likewise.
10424 2000-01-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10426 * m88k-protos.h: New file.
10428 * m88k.c: Include tm_p.h. Add static prototypes. Fix compile
10431 * m88k.h: Move prototypes to m88k-protos.h. Fix compile time warnings.
10433 * m88k.md: Likewise.
10435 * tekXD88.h: Likewise.
10437 2000-01-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10439 * m68k-protos.h: New file.
10441 * m68k.c: Include tm_p.h. Add static prototypes. Fix compile
10444 * m68k.h: Move prototypes to m68k-protos.h. Fix compile time warnings.
10446 * mot3300.h: Likewise.
10448 2000-01-12 Richard Earnshaw <rearnsha@arm.com>
10450 * haifa-sched.c (split_edges): Pass edgeset_size as second arg to
10452 (extract_bitlist): Declare bitlen.
10454 2000-01-12 Zack Weinberg <zack@wolery.cumb.org
10456 * cccp.c: Accept and ignore -lang-fortran.
10458 * c-typeck.c (build_c_cast): Issue -Wcast-qual warnings if the
10459 qualifiers don't match at any level of pointerness.
10461 2000-01-12 Robert Lipe <robertl@sco.com>
10463 * i386/sysv5.h (CPP_SPEC, LIBSPEC): Add -pthreadT.
10465 2000-01-12 Bernd Schmidt <bernds@cygnus.co.uk>
10467 * reload1.c (reload_reg_unavailable): New static variable.
10468 (reload_reg_free_p): Test it.
10469 (reload_reg_free_for_value_p): Test it instead of
10471 (choose_reload_regs_init): Compute it.
10473 Wed Jan 12 03:24:41 2000 Toshiyasu Morita (toshi.morita@sega.com)
10475 * reorg.c (fill_slots_from_thread): Check modified_in_p
10478 Wed Jan 12 03:20:31 2000 John Marshall <john_w_marshall@palm.com>
10480 * gcc.texi (Funding, GNU/Linux, Copying, Contributors): Format
10481 these nodes even if INTERNALS is not set.
10483 Wed Jan 12 09:39:22 2000 Nick Burrett <nick.burrett@btinternet.com>
10485 * gcse.c (delete_null_pointer_checks_1): Cope when
10486 get_condition cannot determine the condition.
10488 2000-01-12 Gabriel Dos Reis <gdr@codesourcery.com>
10490 * toplev.h (set_message_length): Declare.
10492 * diagnostic.c (obstack_chunk_alloc): Define macro.
10493 (obstack_chunk_free): Likewise.
10494 (struct output_buffer): New data structure.
10495 (vmessage): Remove.
10496 (output_maximum_width): New variable.
10497 (doing_line_wrapping, set_message_length, init_output_buffer,
10498 get_output_prefix, output_space_left, emit_output_prefix,
10499 output_newline, output_append, output_puts, dump_output,
10500 vbuild_message_string, build_message_string, build_location_prefix,
10501 voutput_notice, output_printf, line_wrapper_printf,
10502 vline_wrapper_message_with_location): New functions. Implement
10503 automatic line wrapping.
10504 (v_message_with_decl): Make it handle automatic line wrapping.
10505 (v_error_with_file_and_line): Likewise.
10506 (v_warning_with_file_and_line): Likewise.
10507 (announce_function): Likewise.
10508 (default_print_error_function): Likewise.
10510 2000-01-11 16:24 -0800 Zack Weinberg <zack@wolery.cumb.org>
10512 * cpplib.h (struct cpp_options): Change lang_asm to char.
10514 * cppinit.c (builtin_array): Take out __STDC_VERSION__, it's
10515 done in cpp_handle_option now.
10516 (initialize_builtins): Take out special case code used only by
10518 (cpp_handle_option): Turn off trigraphs and trigraph warnings
10519 if -traditional. Recognize -lang-fortran and set
10520 lang_fortran, also turn off cplusplus_comments.
10521 (print_help): Document -lang-fortran.
10522 * cpplib.c (handle_directive): Ignore `# 123 "file"' if
10523 lang_asm. Ignore all directives other than `# 123 "file"' if
10525 (cpp_get_token): If -traditional, don't recognize directives
10526 unless the # is in column 1.
10527 (parse_string): If lang_fortran or lang_asm, silently
10528 terminate strings ('' or "") at end of line.
10529 Remove unnecessary braces.
10531 2000-01-11 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
10532 Richard Henderson <rth@cygnus.com>
10534 * resource.c (mark_referenced_resources): Mark a set strict_low_part
10536 * config/i386/i386.c (ix86_expand_setcc): Re-enable clear + set
10537 strict_low_part when possible.
10539 2000-01-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10541 * alias.c: PROTO -> PARAMS.
10542 * basic-block.h: Likewise.
10543 * bitmap.c: Likewise.
10544 * bitmap.h: Likewise.
10545 * builtins.c: Likewise.
10546 * c-aux-info.c: Likewise.
10547 * caller-save.c: Likewise.
10548 * calls.c: Likewise.
10550 2000-01-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10552 * Makefile.in (toplev.o): Depend on regs.h.
10554 * output.h (tdesc_section): Prototype.
10556 * regclass.c (copy_cost): Mark parameters with ATTRIBUTE_UNUSED.
10558 * sdbout.c: Include "tm_p.h".
10560 * toplev.c: Include "regs.h".
10562 Tue Jan 11 11:37:58 2000 Mike Stump <mrs@wrs.com>
10564 * unroll.c (unroll_loop): Add EH support.
10566 2000-01-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10568 * pa-protos.h: New file.
10570 * pa.c: Include recog.h and tm_p.h.
10571 (compute_zdepwi_operands, compute_movstrsi_length,
10572 remove_useless_addtr_insns, store_reg, load_reg, set_reg_plus_d,
10573 find_addr_reg, import_milli): Add static prototypes.
10574 (pa_cpu_string, pa_arch_string): Constify a char*.
10575 (legitimize_pic_address): Pass argument `mode' to pic_label_operand.
10576 (read_only_operand): Add argument `mode'.
10577 (singlemove_string, output_move_double, output_fp_move_double,
10578 output_block_move, output_and, output_ior, output_ascii,
10579 remove_useless_addtr_insns, milli_names, output_mul_insn,
10580 output_div_insn, output_mod_insn, output_arg_descriptor,
10581 output_cbranch, output_bb, output_bvb, output_dbra, ,
10582 output_millicode_call, output_call, hppa_encode_label,
10583 output_parallel_movb, output_parallel_addb): Constify a char*.
10584 (hppa_va_start): Mark parameter `stdarg_p' with ATTRIBUTE_UNUSED.
10585 (output_parallel_addb): Remove extra arg to `constrain_operands'
10587 * pa.h: Move all prototypes to pa-protos.h.
10588 (pa_cpu_string, pa_arch_string): Constify a char*.
10589 (LEGITIMIZE_ADDRESS): Call `symbolic_operand' with mode argument.
10591 * pa.md: Call `function_label_operand' with mode argument.
10592 Likewise for `read_only_operand'.
10593 Fix nesting of parens in call to `symbolic_operand'.
10595 2000-01-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10597 * i860-protos.h: New file.
10599 * i860.c: Include tm_p.h. Add static prototypes. Fix compile
10602 * i860.h: Move prototypes to i860-protos.h. Fix compile time warnings.
10604 * i860.md: Likewise.
10606 Tue Jan 11 18:59:35 MET 2000 Jan Hubicka <jh@suse.cz>
10608 * i386.md (movstrsi expander): Rewrite.
10609 (movstrsi_1 insn): Deleted.
10610 (strmovhi, strmovqi expander): New expanders.
10611 (movshi_1, movsqi_1, rep_movsi, rep_movqi): New patterns.
10612 * i386.c (x86_single_stringop): New global variable.
10613 * i386.h (x86_single_stringop): Declare.
10614 (TARGET_SINGLE_STRINGOP): New macro.
10616 2000-01-11 Clinton Popetz <cpopetz@cygnus.com>
10618 * config/mips/mips.c (mips_va_arg): For EABI, emit the queued
10619 integer vararg POSTINCREMENT before the destination of the jump
10620 for the hard fp case.
10621 (function_arg_pass_by_reference): Pass a copy of CUM to
10624 * config/mips/mips.h (GO_IF_LEGITIMATE_ADDRESS): Move check
10625 for CONSTANT_ADDRESS_P above while loop for subreg.
10627 2000-01-11 Clinton Popetz <cpopetz@cygnus.com>
10629 * flow.c (propagate_block): When a prologue/epilogue insn
10630 is marked dead, unconditionally clear libcall_is_dead and
10631 insn_is_dead, and only dump rtl if warnings aren't being
10634 Tue Jan 11 16:26:47 MET 2000 Jan Hubicka <jh@suse.cz>
10636 * i386.c (ix86_attr_length_default): Handle TYPE_STR and TYPE_CLD.
10637 * i386.md (FIRST_PSEUDO_REGISTER): Set to 20.
10638 (FIXED_REGISTERS): Set dirflag as fixed.
10639 (CALL_USED_REGISTERS): Set dirflag as used.
10640 (REG_ALLOC_ORDER): Set dirflag as last one.
10641 (DIRFLAG_REG): New macro.
10642 (MD_ASM_CLOBBERS): Asm clobber dirflag for backward compatibility.
10643 (HI_REGISTER_NAMES): Add dirflag.
10644 (DEBUF_PRINT_REG): Handle dirflag.
10645 * i386.md (type attribute): New cld and str types.
10646 (length_opcode attribute): Set cld and str to 1.
10647 (memory attribute): Set str to unknown - it is not clear from the
10649 (pent_np function unit): Prefixed string operations takes 12 cycles
10650 minimally; cld takes 2 cycles.
10651 (ppro_uops attribute): Str is "many" and cld is "few".
10652 (ppro_p0 unit): Handle cld here.
10653 (k6_alux unit): Handle cld and str types.
10654 (k6_load unit): It is ocupied by str opcodes.
10655 (k6_store unit): It is ocupied by str opcodes.
10656 (athlon_decode): Str is vector decoded.
10657 (athlon_ieu): Handle str and cld.
10658 (cld pattern): New.
10659 (movstrsi, clrstr, cmpstr, strlen expander): Emit cld instruction
10660 (movstrsi_1, clrstrsi_1, cmpstrsi_1, strlensi_1,
10661 cmpstrsi_nz_1 insn): Do not output cld instruction
10663 Tue Jan 11 06:14:39 2000 David Starner <dstarner98@aasaa.ofe.org>
10665 * gcc.texi (G++ and GCC): Add Java and Chill.
10666 (Bug Critera): Don't list languages.
10668 * gcc.texi (Incompatibilities): No longer claim most C compilers
10671 * gcc.texi (G++ and GCC): Update other front-ends list.
10673 Tue Jan 11 05:49:01 2000 Jeffrey A Law (law@cygnus.com)
10675 * i386.c (ix86_expand_setcc): Fix typo.
10676 (ix86_expand_movcc): Similarly.
10678 * Band-aid until haifa's bitset implementation is nuked.
10679 * haifa-sched.c (extract_bitlst): New parameter for size of the
10680 bitset in bits. All callers changed. Avoid looking at undefined
10681 bits in the bitset.
10682 (edgeset_bitsize): New variable.
10683 (schedule_region): Initialize edgeset_bitsize.
10685 2000-01-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10687 * Makefile.in (optabs.o): Depend on real.h
10688 (resource.o): Depend on insn-attr.h
10690 * builtins.c (result_vector): Wrap prototype in macro conditions
10691 governing definition and use.
10693 * c-common.c: Include tm_p.h.
10695 * c-lex.c: Likewise.
10697 * elfos.h: Constify a char*.
10699 * final.c (align_fuzz): Wrap prototype in macro HAVE_ATTR_length.
10700 (get_attr_length, shorten_branches, profile_after_prologue): Mark
10701 parameter with ATTRIBUTE_UNUSED.
10703 * fold-const.c (exact_real_inverse): Wrap variable `i' in
10706 * haifa-sched.c (schedule_insns): Mark parameter with
10709 * optabs.c: Include real.h.
10711 * real.h (ereal_atof): Add prototype arguments.
10713 * resource.c: Include insn-attr.h.
10715 * sdbout.c (sdbout_queue_anonymous_type,
10716 sdbout_dequeue_anonymous_types): Wrap in macro
10717 SDB_ALLOW_FORWARD_REFERENCES.
10718 (sdbout_init, sdbout_start_new_source_file): Mark parameter with
10721 * stmt.c (expand_return): Wrap variable `op0' in macro HAVE_return.
10723 * stupid.c: Include tm_p.h.
10725 * tree.c (real_value_from_int_cst): Mark parameter with
10728 2000-01-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10730 * i960-protos.h: New file.
10732 * i960.c: Include tm_p.h. Add static prototypes. Fix compile
10735 * i960.h: Move prototypes to i960-protos.h. Fix compile time warnings.
10737 2000-01-10 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
10739 * combine.c (expand_field_assignment): Do not discard SUBREGs
10740 while computing nonzero_bits.
10742 2000-01-09 Nick Clifton <nickc@cygnus.com>
10744 * config/arm/arm.c: Fix compile time warnings about signed vs
10745 unsigned constants.
10746 * config/arm/arm.h: Fix compile time warnings about signed vs
10747 unsigned constants.
10749 2000-01-09 Philip Blundell <philb@gnu.org>
10751 * config/arm/arm.c (output_return_instruction): Use `ldr' rather
10752 than `ldm' with only one register.
10753 * config/arm/arm.md (push_multi): Use `str' rather than `stm' with
10756 * config/arm/linux-gas.h (CLEAR_INSN_CACHE): Say that R0 is
10759 Sun Jan 9 17:50:23 2000 Hans-Peter Nilsson <hp@axis.com>
10761 * config/ns32k/ns32k.md (load or push effective address): Operand 1
10764 2000-01-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10766 * elfos.h (ASM_OUTPUT_LIMITED_STRING): Add parentheses around
10767 assignment used as truth value.
10769 * function.c (assign_temp): Mark parameter `dont_promote' with
10770 ATTRIBUTE_UNUSED. Wrap variable `unsignedp' with macro
10771 PROMOTE_FOR_CALL_ONLY.
10773 * genrecog.c (write_subroutine): Mark variable `operands' with
10776 * optabs.c (prepare_cmp_insn): Mark parameter `align' with
10779 * sdbout.c (sdbout_init): Likewise for parameter `asm_file'.
10780 (sdbout_begin_block, sdbout_end_block): Likewise for `file'.
10782 * toplev.c (note_deferral_of_defined_inline_function): Likewise
10785 2000-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
10787 * config/c4x.h: Tidy up comments.
10788 * config/c4x.c: Likewise.
10790 Sun Jan 9 01:02:55 EST 2000 John Wehle (john@feith.com)
10792 * fold-const.c (lshift_double, rshift_double): Handle
10793 shifting by 2 * HOST_BITS_PER_WIDE_INT correctly.
10795 2000-01-08 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
10797 * toplev.c (rest_of_compilation): Initialize cse_not_expected as
10798 in prepare_function_start().
10800 Sat Jan 8 12:12:46 2000 Nick Clifton <nickc@cygnus.com>
10802 * config/v850/v850.c (expand_epilogue): Interrupt functions no
10803 longer allocate extra stack for function calls.
10805 2000-01-08 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
10807 * config/c4x/c4x.md (*subqf3_set): Fix typo.
10809 2000-01-08 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
10811 * config/c4x/c4x.h (CALLER_SAVE_PROFITABLE): Define as 0.
10813 2000-01-07 David Edelsohn <edelsohn@gnu.org>
10815 * rs6000.c (processor_target_table): Add power3 as alias for 630.
10816 * aix43.h: Revert Aug 2 change.
10817 (HAS_INIT_SECTION): Define, not visible yet.
10818 (LD_INIT_SWITCH): Define, not visible yet.
10819 * t-aix43 (MULTILIB_OPTIONS): Revert Aug 2 change.
10821 * glimits.h (__LONG_MAX__): Recognize 64-bit AIX too.
10823 * collect2.c (main): Expand ld2 size further.
10824 (export_object_lst): Cast assignment to avoid warning.
10825 (main, LD_INIT_SWITCH): Add AIX 4.2+ -binitfini support.
10826 (scan_prog_file, COFF): Do not collect initialization or
10827 finalization functions generated for entire shared object if
10828 init/fini support present.
10830 2000-01-07 Nick Clifton <nickc@cygnus.com>
10832 * config/elfos.h: Tidy up formatting of marcos. Make sure
10833 that .section directives are always prefixed by a tab.
10835 * config/svr4.h: Add #include "elfos.h" and remove duplicate
10838 2000-01-07 Matt Austern <austern@sgi.com>
10840 * fold-const.c (real_hex_to_f): Remove duplicate declaration of
10843 Fri Jan 7 01:55:34 2000 Jeffrey A Law (law@cygnus.com)
10845 * Makefile.in (crtend.o): Pass @inhibit_libc@ to compilation of
10847 (crtbegin.o, s-crtS): Likewise.
10849 2000-01-06 Richard Henderson <rth@cygnus.com>
10851 * alpha.md (adddi_2+1): Limit offset such that it will be
10852 loadable with a single ldah+lda pair.
10853 (adddi_2+2): Explicitly fail split if we can't make it work.
10855 2000-01-06 Mumit Khan <khan@xraylith.wisc.edu>
10857 * protoize.c: Conditionally include unistd.h.
10858 (IS_SAME_PATH_CHAR): New macro.
10859 (IS_SAME_PATH): New macro.
10860 (CPLUS_FILE_SUFFIX): New macro.
10861 (cplus_suffix): New static variable.
10862 (is_abspath): New static function.
10863 (in_system_include_dir): Handle DOS style pathnames.
10864 (file_could_be_converted): Likewise.
10865 (file_normally_convertible): Likewise.
10866 (directory_specified_p): Likewise.
10867 (file_excluded_p): Likewise.
10868 (abspath): Likewise.
10869 (shortpath): Likewise.
10870 (referenced_file_is_newer): Likewise.
10871 (save_def_or_dec): Likewise.
10872 (do_processing): Likewise.
10874 (edit_file): Likewise. Use rename instead of link.
10875 (rename_c_file): Likewise. Don't rename syscalls file.
10876 (munge_compile_params): Define null device for DOS based systems.
10877 (process_aux_info_file): Use binary mode if appliable.
10878 (edit_file): Likewise.
10879 * invoke.texi (Running Protoize): Document C++ suffixes used.
10881 * cccp.c: Delete PATH_SEPARATOR, DIR_SEPARATOR and
10882 IS_DIR_SEPARATOR macros.
10883 * collect2.c: Likewise.
10884 * cppinit.c: Likewise.
10885 * dwarf2out.c: Likewise.
10887 * gcov.c: Likewise.
10888 * prefix.c: Likewise.
10890 * toplev.c: Likewise.
10891 * system.h: And move to here.
10893 * prefix.c (update_path): Fix typo in variable name.
10895 2000-01-06 Richard Henderson <rth@cygnus.com>
10897 * flow.c (mark_set_1): Use loop_depth+1 as reference weight.
10898 (find_auto_inc, mark_used_regs, try_pre_increment_1): Likewise.
10899 (count_reg_sets_1, count_reg_references): Likewise.
10900 (flow_loops_level_compute): Start counting actual loop depth at 1.
10901 (flow_loops_find): Likewise.
10902 * local-alloc.c (update_equiv_regs): Likewise.
10903 * regclass.c (regclass): Re-instate Jan 4 0-based loop_depth change.
10905 2000-01-06 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
10907 * defaults.h (DWARF_FRAME_REGISTERS): if not defined, default to
10908 FIRST_PSEUDO_REGISTER
10909 * dwarf2out.c: Don't include frame.h
10910 * dwarfout.c: Likewise
10911 * Makefile.in (dwarfout.o, dwarf2out.o): Remove dependence on
10914 Thu Jan 6 13:44:59 CET 2000 Jan Hubicka <jh@suse.cz>
10916 * reg-stack.c (subst_stack_regs_pat): Handle correctly USEs of
10919 * i386.c (movsf splitter): Fix typo in my last checkin.
10921 2000-01-05 Nick Clifton <nickc@cygnus.com>
10923 * varasm.c (IN_NAMED_SECTION): Allow targets to provide their
10924 own definition of this macro.
10925 (asm_emit_uninitialised): Invoke UNIQUE_SECTION if either
10926 flag_data_sections or UNIQUE_SECTION_P are true.
10928 * tm.texi (UNIQUE_SECTION): Document that it can be called for
10929 unitialised data decls.
10931 * config/i386/winnt.c (i386_pe_unique_section): Cope with
10932 being called for uninitialised data.
10934 * config/i386/interix.c (i386_pe_unique_section): Cope with
10935 being called for uninitialised data.
10937 * config/mips/elf.h (UNIQUE_SECTION): Cope with being called
10938 for uninitialised data.
10940 * config/mips/elf64.h (UNIQUE_SECTION): Cope with being called
10941 for uninitialised data.
10943 * config/mips/iri6gld.h (UNIQUE_SECTION): Cope with being called
10944 for uninitialised data.
10946 * config/arm/unknown-elf.h (IN_NAMED_SECTION): Define.
10947 (UNIQUE_SECTION_P): Always generate a unique section if
10948 flag_data_sections is true.
10949 (UNIQUE_SECTION): Also generate unique sections for
10950 uninitialised data.
10951 (ASM_OUTPUT_ALIGNED_BSS): Redefine to use named_section().
10952 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Redefine to use
10955 2000-01-06 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
10957 * config/c4x/t-c4x (TARGET_LIBGCC2_CFLAGS): Don't redefine SF, DF,
10960 2000-01-06 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
10962 * config/c4x/c4x.md (udivqi3, divqi3): Delete.
10963 (umodqi3, modqi3, udivhi3, divhi3, umodhi3, modhi3, ffsqi2): Likewise.
10964 (*smulqi3_highpart_noclobber, *umulqi3_highpart_noclobber): New.
10965 (*lshrqi3_const_noclobber, *lshrqi3_nonconst_noclobber): Likewise.
10966 (*ashrqi3_const_noclobber, *ashrqi3_nonconst_noclobber): Likewise.
10968 * c4x.h (INIT_TARGET_OPTABS): Define to init libcalls.
10970 2000-01-05 11:25 -0800 Zack Weinberg <zack@rabi.columbia.edu>
10972 * c-decl.c (finish_enum): Simplify code to determine minimum and
10973 maximum values of the enum, and calculate the type. Remove check
10974 for FUNCTION_DECLs in the values list, which cannot happen. Replace
10975 the DECL_INITIAL of each enumeration constant with a copy converted
10976 to the enumeration type. When updating variant types, don't bother
10977 updating the type itself.
10979 * c-typeck.c (build_binary_op): Simplify conditional expressions
10980 when weeding out spurious signed-unsigned warnings. Add new
10981 spurious warning category: if the unsigned quantity is an enum
10982 and its maximum value fits in signed_type(result_type). Update
10984 (build_conditional_expr): Warn here if one alternative is signed
10985 and the other is unsigned.
10987 2000-01-05 Nick Clifton <nickc@cygnus.com>
10989 * config/fr30/fr30.h: Remove extraneous comments.
10991 2000-01-05 Bernd Schmidt <bernds@cygnus.co.uk>
10993 * reload1.c (choose_reload_regs): When disabling a reload, also
10994 set reload_spill_index to -1.
10996 2000-01-04 Joel Sherrill (joel@OARcorp.com>
10998 * configure.in (m68*-*-rtemscoff*): New target, formal name for
11000 (m68*-*-rtemself*): New target.
11001 (mips64orion-*-rtems*): Remove duplicate definition of tm_file.
11002 (sparc*-*-rtemsaout*): New target, formal name for old sparc*-*-rtems*.
11003 (sparc*-*-rtemself*): New target.
11004 (sparc*-*-rtems*): Now elf not a.out.
11005 * config/i386/rtems.h: Include config/rtems.h.
11006 * config/i386/rtemself.h: Include config/rtems.h.
11007 * config/i960/rtems.h: Include config/rtems.h.
11008 * config/m68k/rtems.h: Include config/rtems.h.
11009 * config/m68k/rtemself.h: Include config/rtems.h.
11010 * config/mips/rtems64.h: Include config/rtems.h.
11011 * config/pa/rtems.h: Include config/rtems.h.
11012 * config/rs6000/rtems.h: Include config/rtems.h.
11013 * config/sh/rtems.h: Include config/rtems.h.
11014 * config/sh/rtemself.h: Include config/rtems.h.
11015 * config/sparc/rtems.h: Include config/rtems.h.
11016 * config/sparc/rtemself.h: Include config/rtems.h
11018 Tue Jan 4 23:59:26 2000 Denis Chertykov <denisc@overta.ru>
11020 * final.c (shorten_branches): Correctly compute length of
11021 asms without operands.
11023 Tue Jan 4 22:55:41 2000 Steve Chamberlain <sac@pobox.com>
11025 * configure.in: Add pj target.
11026 * configure: Regenerate.
11027 * config/pj: New directory.
11028 * config/pj/lib1funcs.S: New file.
11029 * config/pj/linux.h: New file.
11030 * config/pj/pj.c: New file.
11031 * config/pj/pj.md: New file.
11032 * config/pj/pjl.h: New file.
11033 * config/pj/t-pj: New file.
11034 * config/pj/xm-pj.h: New file
11036 Tue Jan 4 22:30:16 2000 Jeffrey A Law (law@cygnus.com)
11038 * toplev.c (rest_of_compilation): Run shorten-branches before
11041 2000-01-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
11043 * config/c4x/c4x.h (IS_XXX_REG, IS_XXX_REGNO): Swap behaviour of
11044 macros so that they're consistent with their names.
11045 * config/c4x/c4x.c (IS_XXX_REG, IS_XXX_REGNO): Likewise.
11046 * config/c4x/c4x.md (IS_XXX_REG, IS_XXX_REGNO): Likewise.
11048 2000-01-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
11050 * config/c4x/c4x.md (*addqi3_noclobber_reload): Ensure that CC never
11051 modified inadvertently.
11053 2000-01-04 Joel Sherrill <joel@OARcorp.com>
11055 * configure.in (v850*-*-rtems*): New target.
11056 * configure: Regenerate.
11057 * config/v850/rtems.h: New file.
11059 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
11061 * gthr-win32.h (__gthread_active_p): Support Mingw MT runtime.
11062 (__gthread_key_create): Likewise.
11063 (__gthread_key_dtor): Likewise.
11064 (__gthread_once): Fix logic.
11065 (__gthread_key_delete): Cast away constness.
11067 * i386/cygwin.h (SUBTARGET_SWITCHES): Add -mthreads option.
11068 * invoke.texi: Document.
11069 * i386/mingw32.h (CPP_SPEC): Use.
11070 (LIBGCC_SPEC): Likewise.
11071 * i386/crtdll.h (LIBGCC_SPEC): Likewise.
11073 2000-01-04 David Edelsohn <edelsohn@gnu.org>
11075 * rs6000/sysv4.h (ASM_OUTPUT_DEF): Undefine.
11076 (HANDLE_PRAGMA_PACK): Undefine.
11077 (SLOW_UNALIGNED_ACCESS): Define.
11079 2000-01-04 David Edelsohn <edelsohn@gnu.org>
11081 * expmed.c (SLOW_UNALIGNED_ACCESS): Add mode and align parameters
11082 to default definition.
11083 (store_bit_field): Call SLOW_UNALIGNED_ACCESS with mode and alignment.
11084 (store_fixed_bit_field): Call macro with word_mode and alignment.
11085 (extract_bit_field): Call macro with relevant mode and alignment.
11086 * expr.c (SLOW_UNALIGNED_ACCESS): Add mode and align parameters
11087 to default definition.
11088 (move_by_pieces): Call SLOW_UNALIGNED_ACCESS with word_mode
11090 (move_by_pieces_ninsns): Likewise.
11091 (clear_by_pieces): Likewise.
11092 (emit_push_insn): Likewise.
11093 (store_field): Call macro with relevant mode and alignment.
11094 (expand_expr): Likewise.
11095 (expand_expr_unaligned): Likewise.
11097 * rs6000.h (HANDLE_PRAGMA_PACK): Define.
11098 (SLOW_UNALIGNED_ACCESS): Define.
11099 (CASE_VECTOR_MODE): Always use 32-bit offsets.
11100 (ASM_FILE_END): Generate 64-bit symbol in 64-bit mode.
11101 (EXTRA_SECTOIN_FUNCTIONS): Indent .csect pseudo-op.
11102 (toc_section): Likewise and .toc pseudo-op.
11103 (ASM_DECLARE_FUNCTION): Likewise. Align text more strictly in
11105 (TEXT_SECTION_ASM_OP): Likewise.
11106 (ASM_OUTPUT_ADD_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Always use
11109 * a29k.h (SLOW_UNALIGNED_ACCESS): Add MODE and ALIGN parameters.
11110 * alpha.h (SLOW_UNALIGNED_ACCESS): Likewise.
11111 * arm/thumb.h (SLOW_UNALIGNED_ACCESS): Likewise.
11112 * gmicro.h (SLOW_UNALIGNED_ACCESS): Likewise.
11113 * fr30.h (SLOW_UNALIGNED_ACCESS): Likewise.
11115 Tue Jan 4 11:44:13 2000 Jeffrey A Law (law@cygnus.com)
11117 * regclass.c: Revert my Jan 4 change to loop cost computation.
11119 Tue Jan 4 19:22:39 MET 2000 Jan Hubicka <hubicka@freesoft.cz>
11121 * regclass.c (regclass): Do not obey REG_N_REFS in non-optimizing
11124 2000-01-04 Stan Cox <scox@cygnus.com>
11126 * haifa-sched.c (build_control_flow): Change unreachable simple
11127 loop test to check if current block has only one predecessor.
11128 (find_rgns): Initialize degree. Use dest as degree index, not src.
11130 2000-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11132 * builtins.c (expand_builtin_strlen): Initialize variable `icode'.
11134 * calls.c (expand_call): Likewise for
11135 `old_stack_arg_under_construction'.
11137 * cpphash.c (macroexpand): Likewise for `args' and `rest_zero'.
11139 * function.c (pad_to_arg_alignment): Likewise for `save_var' and
11142 * gcc.c (execute): Likewise for `ut' and `st'.
11144 * genattrtab.c (attr_rtx): Likewise for `rt_val'.
11146 * genopinit.c (gen_insn): Likewise for `m1', `m2' and `op'.
11148 * jump.c (jump_optimize_1): Likewise for `temp2'.
11150 * local-alloc.c (block_alloc): Likewise for `r1'.
11152 * loop.c (recombine_givs): Likewise for `life_start' and `life_end'.
11154 * reg-stack.c (check_asm_stack_operands): Likewise for `clobber_reg'.
11155 (subst_asm_stack_regs): Likewise for `clobber_reg' and `clobber_loc'.
11157 * regmove.c (fixup_match_1): Likewise for `insn_const', `dst_node'
11160 * reload.c (find_reloads): Likewise for `goal_alternative_number'
11161 and `goal_earlyclobber'.
11163 * scan-decls.c (scan_decls): Likewise for `prev_id_end'.
11165 * sdbout.c (sdbout_one_type): Likewise for `member_scl'.
11167 * stupid.c (stupid_life_analysis): Likewise for `chain'.
11169 * unroll.c (copy_loop_body): Likewise for `copy'.
11171 * varasm.c (output_constructor): Likewise for `byte'.
11173 Tue Jan 4 15:34:34 MET 2000 Jan Hubicka <hubicka@freesoft.cz>
11175 * i386.c (ix86_expand_move): Allow pushes of memory, offload to memory
11176 all FP constants for constant->reg moves.
11177 (ix86_split_to_parts): Try to convert memory address into immediate
11178 when available in the constant pool.
11179 * i386.h (PREFERRED_RELOAD_CLASS): Allow CONST_DOUBLE->integer reg
11181 (LEGITIMATE_CONSTANT_P): Return 1.
11182 * i386.md (pushsf): New splitter to convert constant pool memory
11183 reference to immediate.
11184 (mov?f): Likewise; do not allow CONST_DOUBLE for reg moves before
11187 2000-01-04 Bernd Schmidt <bernds@cygnus.co.uk>
11189 * i386.md (ashlsi3_cmpno): Don't accept variables shifts.
11190 (ashlhi3_cmpno, ashlqi3_cmpno, ashrsi3_cmpno, ashrhi3_cmpno,
11191 ashrqi3_cmpno, lshrsi3_cmpno, lshrhi3_cmpno, lshrqi3_cmpno): Likewise.
11192 (rotlsi3_cmpno, rotlhi3_cmpno, rotlqi3_cmpno, rotrsi3_cmpno,
11193 rotrhi3_cmpno, rotrqi3_cmpno): Likewise.
11195 2000-01-04 Martin von Löwis <loewis@informatik.hu-berlin.de>
11197 * ginclude/stdbool.h: Support compilation as C++.
11199 Tue Jan 4 01:35:13 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
11201 * fold-const.c (make_range): Don't try to reverse an unbounded range.
11203 Tue Jan 4 00:18:46 2000 Jeffrey A Law (law@cygnus.com)
11205 * regclass.c (regclass): Properly compute loop_cost. Adjust
11208 * regclass.c: Fix minor whitespace problems.
11210 2000-01-03 Anthony Green <green@cygnus.com>
11212 * config/i386/i386.md (builtin_setjmp_receiver): New pattern.
11213 Restore the pic register if required.
11215 2000-01-03 Ulrich Drepper <drepper@cygnus.com>
11217 * c-common.c (format_char_info): Update comment.
11218 (check_format_info): Recognize 'z' modifier in the same way 'Z'
11219 was recognized. Emit warning for formats new in ISO C99 only
11220 if flag_isoc9x is not set.
11222 Mon Jan 3 12:59:54 2000 Mark P. Mitchell <mark@codesourcery.com>
11224 * config/mips/iris6gld.h: Fix typo in -mabi=n32 specs.
11226 Mon Jan 3 15:33:37 MET 2000 Jan Hubicka <hubicka@freesoft.cz>
11228 * combine.c (expand_compound_operation): Do not convert ZERO_EXTEND to
11229 SIGN_EXTEND, convert SIGN_EXTEND to ZERO_EXTEND.
11230 (make_compound_operation): Choose cheaper alternative between
11231 ZERO_EXTEND and SIGN_EXTEND when sign bit is not set.
11233 * regclass.c (op_costs): Remove global variable.
11234 (record_reg_classes): New parameter "op_costs" and "reg_pref".
11235 (record_operand_costs): Break out from ...
11236 (scan_one_insn): ... here.
11237 (dump_regclass): Make dumps nicer.
11238 (regclass): Dump preferrences choosed and changes done during passes.
11240 2000-01-03 Jakub Jelinek <jakub@redhat.com>
11242 * config/sparc/sparc.c (gen_df_reg): Fix for 32bit SPARC.
11244 2000-01-03 Jakub Jelinek <jakub@redhat.com>
11246 * config/sparc/sparc.c (gen_df_reg): New function.
11247 * config/sparc/sparc-protos.h (gen_df_reg): Add prototype.
11248 * config/sparc/sparc.md (movtf_no_e_insn_sp64+1,
11249 movtf_no_e_insn_sp64+2, movtf_no_e_insn_sp64+3, movtf_cc_sp64+1,
11250 movtf_cc_reg_sp64+1): Use it.
11252 2000-01-02 Mark Mitchell <mark@codesourcery.com>
11254 * integrate.c (copy_decl_for_inlining): Clear TREE_ADDRESSABLE on
11255 copied LABEL_DECLs.
11257 Mon Jan 3 02:54:40 2000 Hans-Peter Nilsson <hp@bitrange.com>
11259 * config/i386/i386.c (ix86_expand_unary_operator): Function
11260 definition made void.
11261 (ix86_expand_binary_operator): Update outdated preceding comment.
11262 * config/i386/i386-protos.h (ix86_expand_unary_operator): Update
11265 * config/i386/i386.c (override_options): Fix option-name typo.
11267 2000-01-02 Mark Mitchell <mark@codesourcery.com>
11269 * system.h (CEIL): Define.
11270 * builtins.c (CEIL): Remove.
11271 * expmed.c (CEIL): Likewise.
11272 * expr.c (CEIL): Likewise.
11273 * stor-layout.c (CEIL): Likewise.
11275 2000-01-02 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11277 * expr.c (store_constructor_field): Fix typo introduced with last
11280 2000-01-01 Mark Mitchell <mark@codesourcery.com>
11282 * tree.h (BINFO_N_BASETYPES): New macro.
11284 2000-01-01 Bernd Schmidt <bernds@cygnus.co.uk>
11286 * expmed.c (emit_store_flag): Prevent losing a pending stack
11287 adjust the same way we prevent losing queued increments.
11289 Fri Dec 31 19:10:31 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11291 * function.c (update_temp_slot_address): Handle case where sum of
11292 temporary address plus offset in register is a valid address.
11294 1999-12-30 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
11296 * genrecog.c (change_state) Corrected typo.
11298 1999-12-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11300 * system.h (bcopy, bcmp, bzero, index, rindex, atof, atol, free,
11301 getcwd, getenv, getwd, sbrk, strstr, malloc, calloc, realloc,
11302 strerror, getrlimit, setrlimit, abort): Add prototype arguments.
11304 1999-12-30 Bernd Schmidt <bernds@cygnus.co.uk>
11306 * i386.c (ix86_expand_fp_compare): In non-sahf non-TARGET_IEEE
11307 case, expand GT comparisons correctly. Fix a comment before this
11310 1999-12-30 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
11312 * dwarfout.c: Include "frame.h"
11313 * dwarf2out.c: Likewise.
11314 * Makefile.in (dwarfout.o): Depend on frame.h
11315 (dwarf2out.o): Likewise.
11317 1999-12-29 "Martin v. Loewis" <martin@loewis.home.cs.tu-berlin.de>
11319 Restore i386 binary compatibility in Dwarf EH info.
11320 * config/i386/i386.h (DWARF_FRAME_REGISTERS): Define as 17, the old
11321 value of FIRST_PSEUDO_REGISTER.
11322 * frame.h (DWARF_FRAME_REGISTERS): Default to FIRST_PSEUDO_REGISTER.
11323 (struct frame_state): Use DWARF_FRAME_REGISTERS.
11324 * dwarfout.c (output_reg_number): Ditto.
11325 * dwarf2out.c (reg_number, expand_builtin_init_dwarf_reg_sizes): Ditto.
11326 (DWARF_FRAME_RETURN_COLUMN): Default to DWARF_FRAME_REGISTERS.
11328 1999-12-29 Bruce Korb <autogen@linuxbox.com>
11330 * fixinc/fixincl.c(wait_for_pid): sometimes a WSTOPSIG of zero is OK
11331 * fixinc/fixincl.tpl(<hack>TEST_CT): Just do the existence test once
11332 (<hack>_RE_CT): not needed
11333 * fixinc/fixlib.c(is_cxx_header): moved from fixtests.c
11334 rewritten to scan the file text once only
11335 "template<..." test added
11336 * fixinc/fixlib.h(apply_fix_p_t): moved from fixtests.c
11337 (is_cxx_header): declaration added
11338 * fixinc/fixtests.c(is_cxx_header): removed
11339 (apply_fix_p_t): removed
11340 (double_slash_test): is_cxx_header is only called once now
11341 * fixinc/hackshell.tpl: indexing the fixes is now done under DEBUG
11342 * fixinc/inclhack.def(FIXINC_DEBUG): added for testing DEBUG state
11343 within the templates.
11344 The borken spelling of "broken" was fixed.
11345 * fixinc/inclhack.tpl: The $VERBOSE level is used on various messages
11346 The default level depends on FIXINC_DEBUG.
11348 1999-12-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11350 * crtstuff.c: If !inhibit_libc, include stdlib.h/unistd.h.
11351 Otherwise provide a declaration for atexit.
11352 (init_dummy): Make sure dummy call to atexit is nevertheless
11353 called with correct number of args.
11355 * frame.c: Update comments referring to other files.
11357 * libgcc2.c: Likewise.
11359 1999-12-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11361 * cse.c (free_element, get_element): Remove unused prototypes.
11363 * fold-const.c (extract_muldiv): Initialize variables `op0' and
11366 * jump.c (invert_exp): Add explicit braces to avoid ambiguous
11369 Wed Dec 29 12:44:54 1999 Donald Lindsay <dlindsay@cygnus.com>
11371 * configure.in,configure: case arm for mn10200-*-* now sets
11372 float_format=i32 so that float.h will correctly claim "double"
11373 to be 32 bits. Ran autoconf to generate configure from .in file.
11375 Wed Dec 29 10:53:21 1999 Jeffrey A Law (law@cygnus.com)
11377 * pa.md (conditional zero): If op1 is a register, force it into
11378 the same register as op0.
11380 1999-12-28 Mark Mitchell <mark@codesourcery.com>
11382 * tree.h (BINFO_BASETYPES): Improve documentation.
11384 1999-12-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11386 * configure.in (--enable-checking): Use a more portable `for'
11389 1999-12-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11391 * configure.in (AC_DECL_SYS_SIGLIST, xm-siglist.h,
11392 arm/xm-netbsd.h, NO_SYS_SIGLIST): Don't use.
11394 * xm-siglist.h, arm/xm-netbsd.h, mips/xm-news.h, mips/xm-sysv4.h:
11397 * gcc.texi (NO_SYS_SIGLIST, sys_siglist, SYS_SIGLIST_DECLARED):
11398 Delete descriptions.
11400 * i386/osf1elf.h, i386/xm-cygwin.h, i386/xm-mingw32.h, m68k/3b1.h,
11401 m68k/a-ux.h, m68k/dpx2.h, m68k/plexus.h, m68k/xm-hp320.h,
11402 m88k/xm-m88k.h, mips/x-sni-svr4, pa/xm-pa.h, pa/xm-pahpux.h,
11403 pa/xm-papro.h, we32k/xm-we32k.h, winnt/xm-winnt.h, xm-interix.h,
11404 xm-svr4.h: Remove all instances of sys_siglist handling.
11406 1999-12-27 Jakub Jelinek <jakub@redhat.com>
11408 * config/sparc/sparc.md (cmp_zero_qi,
11409 cmp_zero_extendqisi2_andcc_set, cmp_zero_qi_sp64,
11410 cmp_zero_extendqidi2_andcc_set): New patterns.
11412 1999-12-28 Manfred Hollstein <mhollstein@cygnus.com>
11414 * m68k/t-mot3300-gald (CROSS_LIBGCC1): Define to libgcc1-asm.a.
11415 (LIB1ASMSRC, LIB1ASMFUNCS, LIB2FUNCS_EXTRA): Define.
11416 (fpgnulib.c, xfgnulib.c): Add rules.
11417 * m68k/t-mot3300-gas: Likewise.
11419 1999-12-27 Ian Lance Taylor <ian@zembu.com>
11421 * configure.in: Avoid [[ by using test and changequote. Add
11422 changequote required by 1999-12-14 change.
11423 * configure: Rebuild.
11425 1999-12-27 Clinton Popetz <cpopetz@cygnus.com>
11427 * config/mips/mips.h: Fix typo from 12/17/99 libgcc2 fix.
11429 1999-12-27 Christophe Jaillet <jaillet.christophe@caramail.com>
11431 * alias.c (nonlocal_reference_p): Add else for disjoint ifs.
11432 * flow.c (find_use_as_address): Likewise.
11433 * function.c (fixup_var_refs_1): Likewise.
11434 (walk_fixup_memory_subreg, fixup_stack_1): Likewise.
11435 * jump.c (invert_exp, redirect_exp): Likewise.
11436 * loop.c (replace_call_address): Likewise.
11437 (count_nonfixed_reads): Likewise.
11438 * rtlanal.c (modified_between_p): Likewise.
11439 (modified_in_p, volatile_insn_p, volatile_refs_p): Likewise.
11440 (side_effects_p, replace_regs, jmp_uses_reg_or_mem): Likewise.
11441 * unroll.c (remap_split_bivs): Likewise.
11443 1999-12-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11445 * diagnostic.c (v_message_with_decl): Use .* format specifier
11446 instead of building the format specifier width manually.
11448 * system.h (strsignal): Don't check HAVE_STRSIGNAL when
11449 determining whether to provide a prototype. Remove the
11450 sys_siglist clause in the conditional.
11452 1999-12-23 Martin v. Löwis <loewis@informatik.hu-berlin.de>
11454 * fold-const.c (operand_equal_p): Use memcmp to compare string
11456 Suggested by D. J. Bernstein
11458 1999-12-17 Jakub Jelinek <jakub@redhat.com>
11460 * config/h8300/h8300.h (TARGET_H8300H, TARGET_H8300S): Make sure
11461 UNITS_PER_WORD and BITS_PER_WORD are compile time constants when
11463 * config/mips/mips.h (TARGET_64BIT): Likewise.
11464 * config/rs6000/rs6000.h (TARGET_POWERPC64): Likewise.
11465 * libgcc2.c: Use {,U}{HW,W,DW}type and DWunion everywhere instead
11466 of {SI,DI}type and DIunion. Define these types to QI/HI modes on
11467 dsps. Give routines proper names if SI/DI modes are not used.
11468 * longlong.h: Use DWunion instead of DIunion.
11470 1999-12-26 Zack Weinberg <zack@wolery.cumb.org>
11472 * acconfig.h: New ENABLE flags: TREE_CHECKING, RTL_CHECKING,
11473 GC_CHECKING, GC_ALWAYS_COLLECT.
11474 * configure.in: Allow --enable-checking with an argument
11475 listing check modes to enable.
11476 * config.in, configure: Rebuilt.
11477 * ggc-page.c, ggc-simple.c: Define GGC_POISON (and
11478 GGC_ALWAYS_VERIFY for ggc-simple.c) only if
11479 ENABLE_GC_CHECKING. Define GGC_ALWAYS_COLLECT only if
11480 ENABLE_GC_ALWAYS_COLLECT.
11481 * rtl.h, rtl.c: Change ENABLE_CHECKING to ENABLE_RTL_CHECKING
11483 * tree.h, tree.c: Change ENABLE_CHECKING to
11484 ENABLE_TREE_CHECKING throughout.
11486 Sun Dec 26 07:48:20 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11488 * fold-const.c (fold_truthop): Properly check for FP RHS.
11490 1999-12-24 Mark Mitchell <mark@codesourcery.com>
11492 * toplev.h (note_deferall_of_defined_inline_function): Declare.
11493 * toplev.c (note_deferral_of_defined_inline_function): New
11494 function, split out from ...
11495 (rest_of_compilation): ... here. Use it.
11497 Fri Dec 24 12:34:26 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11499 * expr.c (store_constructor): Don't call clear_storage if size is
11502 1999-12-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11504 * Makefile.in (toplev.o): Depend on loop.h.
11506 * dwarfout.c: Include tm_p.h.
11508 * emit-rtl.c (restore_emit_status): Mark parameter with
11511 * final.c (final_scan_insn): Likewise.
11513 * flow.c (flow_nodes_print, flow_exits_print, flow_loops_cfg_dump,
11514 flow_loop_nested_p, flow_loop_exits_find, flow_loop_nodes_find,
11515 flow_depth_first_order_compute, flow_loop_pre_header_find,
11516 flow_loop_tree_node_add, flow_loops_tree_build,
11517 flow_loop_level_compute, flow_loops_level_compute,
11518 flow_loop_outside_edge_p): Add prototypes.
11519 (recompute_reg_usage): Mark parameters with ATTRIBUTE_UNUSED.
11521 * ggc-callbacks.c (lang_mark_tree, lang_mark_false_label_stack):
11522 Mark with ATTRIBUTE_NORETURN.
11524 * hash.c (hash_newfunc): Mark parameter with ATTRIBUTE_UNUSED.
11526 * local-alloc.c (no_conflict_p): Likewise.
11528 * loop.c (insert_bct): Hide definitions of variables with hidden
11530 (note_reg_stored): Mark parameter with ATTRIBUTE_UNUSED.
11532 * regclass.c (memory_move_secondary_cost): Mark variable `mem'
11533 with ATTRIBUTE_UNUSED.
11534 (record_reg_classes): Mark parameter with ATTRIBUTE_UNUSED.
11535 (reg_scan): Likewise.
11537 * reload.c (find_reloads): Remove unused variables `changed'.
11539 * reload1.c (reload_reg_class_lower): Don't unnecessarily cast
11541 (allocate_reload_reg): Mark parameter with ATTRIBUTE_UNUSED.
11542 Remove unused variable `insn'.
11544 * toplev.c: Include loop.h.
11545 (report_file_and_line): Remove unnecessary prototype.
11547 * tree.c (build_block): Mark parameter with ATTRIBUTE_UNUSED.
11549 * unroll.c (biv_total_increment): Likewise.
11551 Thu Dec 23 23:15:22 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
11553 * reload1.c (emit_input_reload_insns): Restore old behaviour
11554 wrt. 'special' reloads.
11556 1999-12-23 Zack Weinberg <zack@wolery.cumb.org>
11558 * Makefile.in (ggc-simple.c, ggc-page.c): Don't depend on
11559 hash.h. (cse.c): Don't depend on hashtab.h.
11561 * cse.c: Don't include hashtab.h.
11562 (hash_cse_reg_info, cse_reg_info_equal_p): Delete prototypes
11564 * ggc-simple.c: Don't include hash.h.
11566 1999-12-22 Jason Merrill <jason@casey.cygnus.com>
11568 * dwarf2out.c (add_abstract_origin_attribute): Call
11569 gen_abstract_function on our function context.
11571 Thu Dec 23 03:57:10 1999 Hans-Peter Nilsson <hp@bitrange.com>
11573 * Makefile.in (INTEGRATE_H): Fix typo: INTEGRATE_H, not INTREGRATE_H.
11575 1999-12-23 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
11577 * config/c4x/c4x.c (c4x_address_cost): Add statement to default
11580 1999-12-22 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
11582 * config/c4x/c4x.md (*addqi3_noclobber_reload): Change operand 0
11583 constraints to "a!r".
11585 1999-12-21 Mark Mitchell <mark@codesourcery.com>
11587 * Makefile.in (calls.o): Depend on function.h.
11588 (alias.o): Likewise.
11590 1999-12-21 Bernd Schmidt <bernds@cygnus.co.uk>
11592 * reload1.c (emit_reload_insns): Break out code and variables into...
11593 (input_reload_insns, other_input_address_reload_insns,
11594 other_input_reload_insns, input_address_reload_insns,
11595 inpaddr_address_reload_insns, output_reload_insns,
11596 output_address_reload_insns, outaddr_address_reload_insns,
11597 operand_reload_insns, other_operand_reload_insns,
11598 other_output_reload_insns): ... new static variables, and...
11599 (emit_input_reload_insns, emit_output_reload_insns, do_input_reload,
11600 do_output_reload): ... new functions.
11602 Tue Dec 21 07:06:36 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11604 * pa.h (FUNCTION_ARG_BOUNDARY): Never return 0.
11606 1999-12-21 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
11608 * md.texi: Add c4x constraints documentation.
11610 1999-12-21 Martin v. Löwis <loewis@informatik.hu-berlin.de>
11612 * config/i386/dgux.c (struct option): Rename to
11613 lang_independent_option.
11614 (struct m_options): Add description field.
11615 (output_options): Rename option type, add sep declaration, output
11616 ix86_cpu_string and ix86_arch_string only if set.
11617 (output_file_start): Rename option type.
11619 Mon Dec 20 23:15:36 1999 Mike Stump <mrs@wrs.com>
11621 * Makefile.in (crtbegin.o, crtend.o, s-crtS): Depend on
11623 (libgcc2.a): Similarly.
11625 Mon Dec 20 23:06:47 1999 David Edelsohn <edelsohn@gnu.org>
11627 * longlong.h (_ARCH_PPC): Only protect add_ssaaaa and sub_ddmmss
11628 with W_TYPE_SIZE == 32. Do not fall through to POWER architecture
11629 for umul_ppmm and smul_ppmm if !_ARCH_PPC and !_ARCH_POWER.
11631 Mon Dec 20 23:02:03 1999 Jeffrey A Law (law@cygnus.com)
11633 * fold-const.c (real_hex_to_f): Remove unused "isldouble" variable.
11634 Remove redundant initialization of "frexpon" and "expon".
11636 Mon Dec 20 15:00:04 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11638 * tree.c (real_value_from_int_cst): Clear REAL_VALUE_TYPE object first.
11640 * expr.c (store_constructor): New argument SIZE; pass to clear_storage.
11641 (store_constructor_field, expand_expr): Pass new arg.
11643 1999-12-20 Mark Mitchell <mark@codesourcery.com>
11645 * Makefile.in (explow.o): Depend on function.h.
11647 * stor-layout.c (set_sizetype): Fix typo.
11649 1999-12-20 Bernd Schmidt <bernds@cygnus.co.uk>
11651 * function.c (cfun): Renamed from current_function. All users
11653 * function.h (cfun): Rename declaration as well.
11655 * reload.h (struct insn_chain): Change live_throughout and dead_or_set
11656 to be of type regset_head, not regset. All users changed by adding
11658 * reload1.c (new_insn_chain): Don't allocate regsets, just clear them.
11660 1999-12-20 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
11662 * config/c4x/rtems.h: New file.
11664 1999-12-19 Bernd Schmidt <bernds@cygnus.co.uk>
11666 * reload1.c (spill_failure): Take class of failed reload as argument
11667 and print it. Caller changed.
11669 Sun Dec 19 07:50:42 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11671 * rs6000.h (SUBTARGET_DEFAULT): New macro.
11672 (TARGET_SWITCHES): Allow subtargets to default switches.
11673 * rs6000/vxppc.h (SUBTARGET_DEFAULT): New macro.
11675 1999-12-18 Mark Mitchell <mark@codesourcery.com>
11677 * crtstuff.c (__do_global_ctors_aux): Do not call __cxa_finalize
11680 Sat Dec 18 20:42:43 1999 Richard Henderson <rth@cygnus.com>
11682 * cccp.c (main): Define __STDC_VERSION__ as necessary.
11683 * cppinit.c (cpp_handle_option): Likewise.
11685 * ginclude/stdarg.h (va_copy): Use __STDC_VERSION__ to
11686 determine when to define.
11688 Sat Dec 18 20:34:00 1999 Richard Henderson <rth@cygnus.com>
11690 * alpha.c (alpha_emit_conditional_move): If TARGET_FIX, handle
11691 cmove with mismatched test and data modes.
11693 Sat Dec 18 20:30:15 1999 Richard Henderson <rth@cygnus.com>
11695 * c-typeck.c (c_expand_start_case): Don't warn for long switch
11698 Sat Dec 18 16:28:43 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11700 * alias.c: Minor reformatting.
11701 * flow.c: Likewise.
11702 * regs.h: Likewise.
11703 * stor-layout.c: Likewise.
11704 * fold-const.c: Likewise.
11705 (OVERFLOW_SUM_SIGN): Renamed from overflow_sum_sign.
11706 (struct cb_args, const_binop_1, const_binop): Pass type of arg,
11708 (size_int_wide): Cache nodes even if garbage collecting.
11709 (twoval_comparison_p): Reenable SAVE_EXPR case if operand
11710 of SAVE_EXPR has no side effects.
11711 * cse.c: Move a comment.
11712 * tree.c: Minor reformatting.
11713 (int_size_in_bytes): Return -1 if constant overflows.
11715 Sat Dec 18 18:30:20 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
11717 * unroll.c (copy_loop_body): Don't treat a REG like a PLUS.
11719 1999-12-18 10:42 -0800 Zack Weinberg <zack@wolery.cumb.org>
11721 * objc/objc-parse.c: Regenerate. This file must be rebuilt
11722 after any change to c-parse.in, even if objc-parse.y didn't
11725 1999-12-18 David S. Miller <davem@redhat.com>
11727 * toplev.c (rest_of_compilation): Restore BLOCK tree
11728 reconstruction and branch shortening changes lost in
11729 December 18th change.
11731 Sat Dec 18 05:29:29 1999 Scott Bambrough <scottb@netwinder.org>
11733 * config/arm/linux-elf.h: Change all instances of
11734 ARM_FLAG_SHORT_BYTES to ARM_FLAG_MMU_TRAPS.
11735 * config/arm/uclinux-elf.h: Likewise.
11737 1999-12-18 Gabriel Dos Reis <gdr@codesourcery.com>
11739 * toplev.c (notice, vmessage, v_message_with_file_and_line,
11740 v_message_with_decl, file_and_line_for_asm,
11741 v_error_with_file_and_line, v_error_with_decl, v_error_for_asm,
11742 verror, vfatal, v_warning_with_file_and_line, v_warning_with_decl,
11743 v_warning_for_asm, vwarning, vpedwarn, v_pedwarn_with_decl,
11744 v_pedwarn_with_file_and_line, vsorry, vnotice, count_error,
11745 pfatal_with_name, fatal_io_error, need_error_newline,
11746 last_error_function, last_error_tick, announce_function,
11747 default_print_error_function, print_error_function,
11748 report_error_function, fnotice, error_with_file_and_line,
11749 error_with_decl, error_for_asm, error, set_fatal_function, fatal,
11750 _fatal_insn, _fatal_insn_not_found, warning_with_file_and_line,
11751 warning_with_decl, warning_for_asm, warning, pedwarn,
11752 pedwarn_with_decl, pedwarn_with_file_and_line, sorry): Move to
11754 (compile_file): Use fnotice instead of notice. Adjust call.
11756 * diagnostic.c: New file.
11758 * Makefile.in (OBJS): Include diagnostic.o
11759 (diagnostic.o): Define dependence.
11761 1999-12-18 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
11763 * config/c4x/c4x.h (ASM_OUTPUT_XXX): Wrap in do-while(0).
11766 1999-12-18 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
11768 * config/c4x/c4x.md (rpts_top, rptb_top): Add clobbers for rs and re.
11770 1999-12-17 13:21 -0800 Zack Weinberg <zack@rabi.columbia.edu>
11772 * fixtests.c (is_cxx_header): New fn, split out of
11774 (else_endif_label): Allow "#endif // comment" in C++ headers,
11775 as determined by is_cxx_header.
11776 * fixfixes.c (else_endif_label_fix): Update comment.
11777 * fixincl.c: Don't output VERB_PROGRESS lines if stdout is not
11779 * genfixes: Correct double thinko in commandline parsing.
11780 * hackshell.tpl: Generate correct sh syntax for bypass
11783 * inclhack.def (all): Whenever an inserted preprocessor
11784 conditional is split over multiple lines, use double
11785 backslashes in this file so the fixed header will be readable.
11787 (AAB_fd_zero_glibc_1_0): Rename to AAB_fd_zero_asm_posix_types_h
11788 and add bypass entry for correct version of this header.
11789 (AAB_fd_zero_glibc_1_x): Rename to AAB_fd_zero_gnu_types_h.
11790 (AAB_fd_zero_glibc_2_0): Rename to AAB_fd_zero_selectbits_h.
11792 (hpux8_bogus_inlines): New fix, split from...
11793 (ultrix_atof_param) ... here.
11794 (math_expression): Add bypass entry keyed to glibc comment
11795 indicating the problem has been dealt with; disable
11796 unnecessary sed operations; update commentary.
11797 (math_gcc_ifndefs): Rename to math_huge_val_from_dbl_max,
11798 add select and bypass entries, simplify shell operation.
11799 (math_huge_val_ifndef): Split from math_gcc_ifndefs.
11801 (ip_missing_semi, rs6000_param, tinfo_cplusplus,
11802 ultrix_atof_param): Add select entry.
11803 (stdio_va_list, sunos_mather_decl): Add bypass entry.
11804 (systypes_for_aix, sysv86_string, tinfo_cplusplus): Put the
11805 comments with the fixes they describe.
11807 * c-parse.in (string action): Do not warn about ANSI string
11808 concatenation in system headers. Affects C parser only.
11809 * c-parse.y, c-parse.c, c-parse.h: Rebuild.
11811 1999-12-16 Jakub Jelinek <jakub@redhat.com>
11813 * config/sparc/sparc.h (TARGET_ARCH32): Exchange ifdefs so that if
11814 compiling libgcc2 the macro depends always on arch cpp defines.
11816 Fri Dec 17 10:34:16 1999 Richard Earnshaw <rearnsha@arm.com>
11818 * loop.c (insert_loop_mem): Don't record MEMs from inside
11821 Fri Dec 17 12:08:11 MET 1999 Jan Hubicka <hubicka@freesoftr.cz>
11823 * regclass.c (regclass): Do not use flowgraph when not optimizing.
11825 * gcse.c (try_replace_reg): Do replacements in REG_EQUAL/REG_EQUIV
11826 notes too, create one when replacement failed, attempt to simplify
11828 (cprop_insn): Propagate even to registers mentioned only in REG_EQUAL
11829 or REG_EQUIV notes.
11831 1999-12-16 Mark Mitchell <mark@codesourcery.com>
11833 * crtstuff.c (__dso_handle): Declare.
11834 (__cxa_finalize): Likewise.
11835 (do_global_dtors_aux): Call __cxa_finalize if __dso_handle is
11838 * invoke.texi: Document -fuse-cxa-atexit.
11840 * tree.h (ptr_type_node): Document.
11841 (const_ptr_type_node): Likewise.
11843 Fri Dec 17 01:32:38 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
11845 * regmove.c (optimize_reg_copy_1): Ignore LOOP notes.
11846 (optimize_reg_copy_2): Likewise.
11847 (optimize_reg_copy_3): Likewise.
11848 (fixup_match_2): Likewise.
11849 (regmove_optimize): Likewise.
11850 (fixup_match_1): Liekwise.
11852 * i386.md (HI to SImode promoting splitters): Rewrite.
11853 (pushsf mem peep2): New.
11854 (testhi to andhi peep2): Remove.
11855 * i386.h (x86_promote_QImode): New.
11856 (TARGET_PROMOTE_QImode): New.
11857 (PREDICATE_CODES): Add promotable_binary_operator.
11858 * i386.c (x86_promote_QImode0: New.
11859 (promotable_binary_operator): New.
11860 * i386-protos.h (promotable_binary_operator): New.
11862 * i386.md (test?i_1): Use "nonmemory_operand" predicate, simplify
11864 (one_cmpl?i*): Pass "NOT" to unary_operator_ok.
11866 1999-12-16 Mark Mitchell <mark@codesourcery.com>
11868 * Makefile.in (INTREGRATE_H): Rename to INTEGRATE_H.
11869 * function.c (insert_block_after_note): Remove.
11870 (retrofit_block): Likewise.
11871 (identify_blocks): Fix indentation.
11872 (reorder_blocks): Don't NULL out NOTE_SOURCE_FILE for a
11873 NOTE_INSN_BLOCK_BEG or NOTE_INSN_BLOCK_END.
11874 * function.h (insert_block_after_note): Remove prototype.
11875 (retrofit_block): Likewise.
11876 * integrate.c (expand_inline_function): Don't call
11877 find_loop_tree_blocks. Use expand_start_bindings_and_block, not
11878 just expand_start_bindings. Use the block_map to remap old
11879 NOTE_BLOCKs to new ones.
11880 (integrate_decl_tree): Keep track of remapped blocks.
11881 * integrate.h (struct inline_remap): Add block_map.
11882 * stmt.c (expand_fixup): Don't try to retrofit_blocks. Just set
11883 NOTE_BLOCK on the notes.
11884 (expand_start_bindings): Rename to ...
11885 (expand_start_bindings_and_block): Add parameter. Set NOTE_BLOCK.
11886 (expand_end_bindings): Set NOTE_BLOCK.
11887 * toplev.c (rest_of_compilation): In function-at-a-time-mode,
11888 reconstruct the BLOCK tree.
11889 * tree.h (expand_start_bindings): Macroize. Call ...
11890 (expand_start_bindings_and_block): New function.
11892 1999-12-16 Jakub Jelinek <jakub@redhat.com>
11894 * config/sparc/sparc.c (print_operand): Cast fprintf arguments
11895 to match the format.
11897 1999-12-16 David S. Miller <davem@redhat.com>
11899 * expr.c (emit_move_insn_1): Only emit clobbers if one of
11900 the outputs is a SUBREG.
11901 * rtlanal.c (reg_overlap_mentioned_p): Revert December 15th
11904 * config/sparc/sparc.c (epilogue_renumber): Add default case
11907 Thu Dec 16 11:33:57 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
11909 * toplev.c (rest_of_compilation): Run branch shortening after
11912 * regclass.c (loop_depth): Remove
11913 (scan_one_insn): Do not handle LOOP_NOTE insns.
11914 (regclass): Go through basic blocks and set loop_cost
11916 Thu Dec 16 02:56:25 1999 Zack Weinberg <zack@bitmover.com>
11918 * tree.h (DECL_FROM_INLINE): Check DECL_ABSTRACT_ORIGIN too.
11920 Thu Dec 16 10:43:35 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
11922 * i386.md (movqi): Use "nonimmediate_operand" for output operand.
11923 (movstrictqi, movdi, movsf, movdf, movxf): Likewise.
11924 (adddi, addqi, addhi, subdi, subqi, subhi, ffs): Likewise.
11926 Thu Dec 16 02:41:26 1999 Richard Henderson (rth@cygnus.com)
11928 * loop.c (insert_loop_mem): Ignore memory clobbers.
11930 * combine.c (simplify_comparison): Reduce (OP (MINUS A B) 0)
11933 Thu Dec 16 02:26:11 1999 Jeffrey A Law (law@cygnus.com)
11935 * profile.c: Remove redundant #include "output.h".
11937 * h8300.md (HImode preinc peephole): Fix typo.
11939 1999-12-15 Jason Merrill <jason@casey.cygnus.com>
11941 * function.c (retrofit_block): Abort if we don't find a suitable insn.
11942 (insert_block_after_note): Abort if we don't have a previous block.
11943 Remove FN parameter.
11944 * function.h: Adjust.
11946 1999-12-15 Mark Mitchell <mark@codesourcery.com>
11948 * builtins.c (expand_builtin_mathfn): Make sure not to expand the
11949 argument more than once.
11951 1999-12-15 Jason Merrill <jason@casey.cygnus.com>
11953 * stmt.c (expand_decl): Expand upper bound of a dynamic array.
11955 1999-12-15 Jakub Jelinek <jakub@redhat.com>
11957 * expr.c (emit_group_load): Use dst mode if src is VOIDmode.
11959 Wed Dec 15 16:11:55 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
11961 * function.c (PREFERRED_STACK_BOUDNARY): Provide default value.
11962 (assign_stack_local_1): Limit alignment to PREFERRED_STACK_BOUNDARY,
11963 update stack_alignment_needed.
11964 (prepare_function_start): Initialize stack_alignment_needed
11965 * function.h (struct function): Add field stack_alignment_needed.
11967 Wed Dec 15 14:55:24 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
11969 * caller-save.c (insert_one_insn): Returns struct insn_chain *.
11970 Handle live_throughout / dead_or_set instead of live_before /
11972 (save_call_clobbered_regs): Get register livenessinformation from
11973 chain->live_throughout.
11974 (add_stored_regs): New function.
11975 (insert_restore, insert_save): Add restored / saved registers to
11977 * global.c (reg_dies): New parameter chain.
11978 (reg_becomes_live): Third parameter is regs_set now.
11979 Changed all callers.
11980 (reg_dies): New parameter chain. Changed all callers.
11981 (build_insn_chain): Set live_throughout instead of
11982 live_before / live_after.
11983 * reload.h (struct insn_chain): Replace members live_before /
11984 live_after with live_throughout / dead_or_set.
11985 * reload1.c (new_insn_chain): Handle live_throughout / dead_or_set
11986 instead of live_before / live_after.
11987 (maybe_fix_stack_asms, find_reload_regs, finish_spills): Likewise.
11988 (order_regs_for_reload, find_reg, finish_spills): Likewise.
11989 (choose_reload_regs_init): Likewise.
11990 * stupid.c (current_chain, find_clobbered_regs): Delete.
11991 (stupid_life_analysis): Set chain->live_throughout chain->dead_or_set
11992 instead of chain->live_before / chain->live_after.
11993 (mark_hard_ref): New function.
11994 (stupid_mark_refs): Call mark_hard_ref. Clear chain->live_throughout.
11996 1999-12-15 David S. Miller <davem@redhat.com>
11998 * rtlanal.c (reg_overlap_mentioned_p): Handle CONCAT.
12000 Wed Dec 15 15:05:30 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
12002 * flow.c (calculate_loop_depth): Make global, remove prototype,
12003 rewrite to use new loop infrastructure.
12004 (find_basic_block): Remove calculate_loop_depth call.
12005 * toplev.c (rest_of_compilation): Call find_basic_block.
12006 * output.h (calculate_loop_depth): Declare.
12008 * flow.c (dump_flow_info): Dump loop_depth.
12009 (flow_loops_nodes_find): Increase loop_depth for basic block in the
12011 (flow_loops_find): Initialize the loop_depth for each basic block.
12013 1999-12-15 Jason Merrill <jason@casey.cygnus.com>
12015 * tree.c (decl_function_context): Handle virtual functions.
12017 * tlink.c (scan_linker_output): Don't look in demangled name when
12018 looking for linker output keywords.
12020 * dwarfout.c (output_type): We can defer namespace-scope classes.
12022 Wed Dec 15 01:23:29 1999 Jeffrey A Law (law@cygnus.com)
12024 * regclass.c (record_reg_classes): Update comment for merging
12025 register class preferences in reg->reg copies. Tighten conditions
12026 for merging register class preferences in reg->reg copies.
12028 Wed Dec 15 02:19:32 1999 David Edelsohn <edelsohn@gnu.org>
12030 * rs6000.md (tablejumpdi): Generate DImode LABEL_REF.
12032 1999-12-14 Geoff Keating <geoffk@cygnus.com>
12034 * config/m68k/m68020-elf.h (ENDFILE_SPEC): Delete.
12035 (INIT_SECTION_ASM_OP): Delete.
12036 (FINI_SECTION_ASM_OP): Delete.
12037 (STARTFILE_SPEC): Define to hold just crtbegin.o.
12039 1999-12-14 Jason Merrill <jason@casey.cygnus.com>
12041 * dwarf2out.c (add_abstract_origin_attribute): Do call abort if
12042 the abstract origin wasn't emitted.
12044 * dwarf2out.c (class_scope_p): New fn.
12045 (gen_subprogram_die): Use it.
12046 (gen_variable_die): Use it. Tweak logic.
12047 (gen_struct_or_union_type_die): Check context_die to determine
12048 if we're function-local.
12049 (dwarf2out_decl): Check DECL_BUILT_IN, not DECL_FUNCTION_CODE.
12051 1999-12-14 Bernd Schmidt <bernds@cygnus.co.uk>
12053 * loop.c (check_dbra_loop): Can't reverse a biv that has
12054 maybe_multiple set.
12056 1999-12-14 Nick Clifton <nickc@cygnus.com>
12058 * config/arm/arm.c: Add support for -mcpu=arm720 command line
12061 Tue Dec 14 18:13:32 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
12063 * loop.c (strength_reduce): Fix sign of giv lifetime calculation
12064 for givs made from biv increments.
12066 Tue Dec 14 08:11:27 1999 Richard Henderson <rth@cygnus.com>
12068 * configure.in (alpha-osf, alpha-linux): Handle ev6[78].
12069 * alpha.c (override_options): Recognize -mcpu=ev67.
12070 * alpha.h (CPP_CPU_EV67_SPEC): New.
12071 (CPP_CPU_DEFAULT_SPEC): Examine TARGET_CPU_DEFAULT to use it.
12072 (EXTRA_SPECS): Update.
12074 Tue Dec 14 08:04:28 1999 Richard Henderson <rth@cygnus.com>
12076 * cppp.c (main): Set trigraphs and __STRICT_ANSI__ as
12077 appropriate for -lang-c89 and -std=*.
12078 * cppinit.c (cpp_handle_option): Likewise.
12079 (new_pending_define): New, split out from cpp_handle_option.
12080 * gcc.c (default_compilers): Don't define __STRICT_ANSI__
12081 or enable trigraphs for -ansi/-std=*.
12083 * ginclude/stdarg.h (__va_copy): New.
12084 (va_copy): Don't define for C89.
12086 Tue Dec 14 08:37:27 CST 1999 Clinton Popetz <cpopetz@cygnus.com>
12088 * config/arm/arm.md (mulsidi3adddi, umulsidi3adddi): New patterns
12089 for long long multiply-accumulate.
12091 Tue Dec 14 13:51:38 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
12093 * regclass.c (scan_one_insn): Set loop_cost to 1 when
12094 optimizing for size.
12096 1999-12-14 Bernd Schmidt <bernds@cygnus.co.uk>
12098 * reload1.c (reload): Can't avoid select_reload_regs/finish_spills
12099 if something changed. Back out that part of yesterday's changes.
12101 * loop.c (loop_max_reg): New static variable.
12102 (loop_optimize): Initialize it. Eliminate one unnecessary call to
12104 (scan_loop): Call reg_scan_update whenever we may have added new
12105 registers, and update loop_max_reg.
12107 Tue Dec 14 12:07:29 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
12109 * regclass.c (record_reg_classes): Do not do the copying preferrencing
12110 when source does not die.
12112 * regclass.c (record_reg_classes): Handle INOUT operands propertly.
12114 1999-12-14 Jakub Jelinek <jakub@redhat.com>
12116 * config/sparc/linux64.h (TARGET_LIVE_G0,
12117 TARGET_BROKEN_SAVERESTORE): Don't support weird SPARC
12119 * config/sparc/linux.h (TARGET_LIVE_G0,
12120 TARGET_BROKEN_SAVERESTORE): Likewise.
12121 * config/sparc/linux-aout.h (TARGET_LIVE_G0,
12122 TARGET_BROKEN_SAVERESTORE): Likewise.
12124 * config/sparc/sparc.h (SPARC_DEFAULT_CMODEL): Default to CM_32.
12125 (CONDITIONAL_REGISTER_USAGE): For block profiling fix %g4 on sparc64,
12127 (MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Use %g4 instead of %g2
12128 as sparc64 block profiling register.
12129 * config/sparc/sparc.c (sparc_override_options): Allow block
12130 profiling with -m32.
12131 (sparc_block_profiler): Use %g4 instead of %g2 as sparc64 block
12132 profiling register.
12133 * config/sparc/linux64.h (MACHINE_STATE_*): Only provide these
12134 macros on TARGET_ARCH32. sparc.h has macros good enough for sparc64.
12135 * config/sparc/sol2.h (MACHINE_STATE_*): Likewise.
12137 * config/sparc/xm-sp64.h: Avoid using __sparc_v9__ when testing
12139 * config/sparc/sparc.h: Likewise.
12140 * config/sparc/xm-sysv4-64.h: Likewise.
12141 * config/float-sparc.h: Likewise.
12142 * glimits.h: Likewise.
12143 * longlong.h: Likewise.
12145 * config/sparc/linux64.h (DEFAULT_VTABLE_THUNKS): Define to 1.
12146 (ASM_IDENTIFY_GCC): Remove.
12148 1999-12-14 Bernd Schmidt <bernds@cygnus.co.uk>
12150 * combine.c (combine_simplify_rtx): Don't make shared rtl.
12151 (simplify_logical): Likewise.
12153 1999-12-14 Mumit Khan <khan@xraylith.wisc.edu>
12155 * cccp.c (INO_T_EQ): Disable inode-based optimization for Cygwin.
12156 * cppfiles.c (INO_T_EQ): Likewise.
12158 1999-12-14 Mumit Khan <khan@xraylith.wisc.edu>
12160 * i386/crtdll.h (STARTFILE_SPEC): Add -pg profiling support.
12161 * i386/mingw32.h (LIB_SPEC): Likewise.
12162 (STARTFILE_SPEC): Likewise.
12163 * i386/uwin.h (LIB_SPEC): Likewise.
12164 (STARTFILE_SPEC): Likewise.
12166 * i386/mingw32.h (SUBTARGET_PROLOGUE): Override Cygwin definition.
12167 * i386/uwin.h (SUBTARGET_PROLOGUE): Likewise.
12169 Mon Dec 13 20:25:29 1999 Jeffrey A Law (law@cygnus.com)
12171 * combine.c (combine_simplify_rtx): Fix order of checks for
12172 (ashiftrt foo C) -> (lt foo (const_int 0)) simplification.
12174 1999-12-13 Clinton Popetz <cpopetz@cygnus.com>
12176 * config/arm/arm.md (*mulsidi3adddi, *umulsidi3adddi) Backed out
12177 12/10/99 change, reapplied to merged-arm-thumb-backend-branch.
12179 1999-12-10 Bernd Schmidt <bernds@cygnus.co.uk>
12181 * hard-reg-set.h (inv_reg_alloc_order): Declare if REG_ALLOC_ORDER is
12183 * regclass.c (inv_reg_alloc_order): New array.
12184 (regclass_init): If REG_ALLOC_ORDER is defined, initialize it.
12186 * reload.h (struct insn_chain): Delete fields group_size, group_mode,
12187 counted_for_groups, counted_for_nongroups. Add fields rld and
12189 * reload.c (push_secondary_reload): Don't set nongroup field of
12191 (push_reload): Likewise.
12192 (find_reloads): Delete code to compute nongroup fields.
12193 * reload1.c (reload_insn_firstobj): New static variable.
12194 (pseudos_counted, spilled_pseudos): Now of type regset_head. All
12196 (calculate_needs, find_tworeg_group, find_group, possible_group_p,
12197 count_possible_groups, modes_equiv_for_class_p, new_spill_reg,
12198 dump_needs, maybe_mark_pseudo_spilled, hard_reg_use_compare): Delete
12200 (count_pseudo, select_reload_regs, copy_reloads, find_reg): New
12202 (struct hard_reg_n_uses): Deleted.
12203 (potential_reload_regs): Deleted.
12204 (init_reload): Initialize spilled_pseudos and pseudos_counted.
12205 (reload): Don't try to allocate reload registers if we already know
12206 we have to make another pass. Call select_reload_regs. Free memory
12207 starting with reload_firstobj when starting another pass.
12208 Don't allocate spilled_pseudos.
12209 (calculate_needs_all_insns): Call copy_reloads for an insn that
12210 needs reloads; don't call calculate_needs.
12211 (spill_cost): New static array.
12212 (used_spill_regs_local): New static variable.
12213 (order_regs_for_reload): Rewrite to lose hard_reg_n_uses and the code
12214 to compute potential_reload_regs.
12215 (find_reload_regs): Completely rewritten to use find_reg.
12216 (allocate_reload_reg): Don't test counted_for_groups or
12217 counted_for_nongroups. Lose NOERROR arg and code to give an error;
12218 all cllers changed.
12219 (choose_reload_regs): Add fallback code that uses the existing
12220 register allocation from find_reload_regs.
12222 Mon Dec 13 00:54:14 1999 Philippe De Muyter <phdm@macqel.be>
12224 * flow.c (create_edge_list): Cast xmalloc return value.
12226 Mon Dec 13 00:47:58 1999 Jeffrey A Law (law@cygnus.com)
12228 * doprnt.c: Remove incorrect comment closure.
12230 * cse.c: Fix a few minor whitespace goofs.
12232 1999-12-13 Don Bowman <don@pixstream.com>
12234 * mips/vxworks.h: Fix problem with comment termination.
12235 (EXTRA_SECTIONS): Add in_sbss.
12236 (EXTRA_SECTION_FUNCTIONS): Corresponding changes.
12238 1999-12-12 David S. Miller <davem@redhat.com>
12240 * cse.c (struct cse_reg_info): Add hash_next member,
12241 reorder rest of struct for better packing on 64-bit
12243 (cse_reg_info_tree): Kill.
12244 (REGHASH_SHIFT, REGHASH_SIZE, REGHASH_MASK, reg_hash,
12245 REGHASH_FN): New custom pow2 hash mechanism.
12247 (HASH_SHIFT, HASH_SIZE, HASH_MASK, HASH, table): Rework to
12248 use a pow2 hash table.
12249 (get_cse_reg_info): Rework to use new REGHASH.
12250 (new_basic_block): Likewise, use HASH_SIZE, and inline
12252 (remove_from_table): Rework to use HASH_SIZE/HASH_MASK,
12253 and inline free_element call.
12254 (lookup_as_function, insert, flush_hash_table, invalidate,
12255 remove_invalid_refs, remove_invalid_subreg_refs, rehash_using_reg,
12256 invalidate_for_call, use_related_value, find_comparison_args,
12257 fold_rtx, equiv_constant, cse_insn, invalidate_memory): Likewise.
12258 (hash_cse_reg_info, cse_reg_info_equal_p, free_element,
12259 get_element): Kill.
12261 Sun Dec 12 21:31:44 1999 Jeffrey A Law (law@cygnus.com)
12263 * cse.c (cse_basic_block): Free qty_table consistently.
12265 1999-12-12 David S. Miller <davem@redhat.com>
12266 Jakub Jelinek <jakub@redhat.com>
12268 * config/sparc/sparc.md (movtf reg/reg split): Don't generate
12269 SUBREGs by hand, gen the appropriate hard reg directly.
12270 (movtf reg/mem split): Likewise and alter_subreg on destination
12272 (movtf mem/reg split): Similarly.
12273 (movdf_cc_sp64): Rename from hidden pattern.
12274 (movtf_cc_hq_sp64): Renamed from movtf_cc_sp64.
12275 (movtf_cc_sp64, following split): New pattern and splitter.
12276 (movdf_cc_reg_sp64): Rename from hidden pattern.
12277 (movtf_cc_reg_hq_sp64): Renamed from movtf_cc_reg_sp64, require
12279 (movtf_cc_reg_sp64, following split): New pattern and splitter.
12281 1999-12-12 Stephen L Moshier <moshier@mediaone.net>
12283 * loop.c (load_mems): Don't hoist written floating point mem
12286 1999-12-12 Mark Mitchell <mark@codesourcery.com>
12288 * except.h (struct eh_queue): Add `next' pointer.
12289 (struct eh_status): Make x_ehqueue a pointer.
12290 (push_ehqueue): Declare.
12291 (pop_ehqueue): Likewise.
12292 * except.c (expand_eh_region_end): Adjust now that ehqueue is a
12294 (expand_fixup_region_end): Likewise.
12295 (expand_leftover_cleanups): Likewise.
12296 (push_ehqueue): Define.
12297 (pop_ehqueue): Likewise.
12298 (emit_cleanup_handler): Use push_ehqueue and pop_ehqueue rather
12299 than doing it inline.
12300 (expand_start_all_catch): Adjust now that ehqueue is a
12302 (mark_eh_queue): Mark all level of the queue.
12303 (mark_eh_status): Adjust now that ehqueue is a
12305 (init_eh_for_function): Allocate ehqueue.
12306 (free_eh_status): Free it.
12307 * stmt.c (expand_cleanups): Save the ehqueue around the cleanup
12308 expansion for a fixup.
12310 1999-12-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12312 * gthr-single.h (__gthread_active_p): Add prototype arguments.
12314 * libgcc2.c (__udivmoddi4): Remove unnecessary decls.
12315 (__dummy, __builtin_saveregs, __bb_exit_trace_func, __bb_init_prg,
12316 __bb_trace_func, __bb_trace_func_ret, __bb_trace_ret,
12317 function_ptr, getpagesize, __enable_execute_stack,
12318 __enable_execute_stack, __clear_insn_cache,
12319 __enable_execute_stack, __do_global_dtors, __do_global_ctors,
12320 _cleanup, _exit, __default_terminate, __terminate_func,
12321 __terminate, __empty, __throw, new_eh_context,
12322 eh_context_initialize, eh_context_static, eh_context_specific,
12323 get_eh_context, __get_eh_context, __get_eh_info,
12324 init_reg_size_table, eh_threads_initialize,
12325 __get_dynamic_handler_chain, __sjthrow, __sjpopnthrow,
12326 __unwinding_cleanup, throw_helper, __throw, __rethrow,
12327 __pure_virtual): Add prototype arguments.
12328 (__bb_exit_func): Cast a sizeof to long when comparing against one.
12329 Cast a signed value to unsigned long when comparing against one.
12330 (new_eh_context): Wrap in _GTHREADS macro.
12331 (__sjthrow, __sjpopnthrow): Initialize variable `cleanup' at
12333 (in_reg_window): Mark parameters with __attribute__ ((__unused__)).
12334 (throw_helper): Initialize variables `handler_p' and `pc_p'.
12336 1999-12-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12338 * combine.c (record_promoted_value): Remove unused variable
12341 * emit-rtl.c (renumber_insns): Likewise for `old_max_uid'.
12343 * global.c (record_conflicts): Likewise for `j'.
12345 * genoutput.c (output_insn_data): Don't unnecessarily cast away
12348 1999-12-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12350 * i386-protos.h (output_387_binary_op, output_fix_trunc,
12351 output_fp_compare): Constify a char*.
12353 * i386.c (ix86_split_to_parts, ix86_safe_length_prefix): Add
12355 (override_options, ix86_comp_type_attributes, print_operand,
12356 output_387_binary_op, output_fix_trunc, output_fp_compare):
12358 (ix86_sched_reorder): Mark parameter `clock_var' with
12361 * i386.h (DEBUG_PRINT_REG): Constify a char*.
12363 Fri Dec 10 16:12:13 1999 Alexandre Petit-Bianco <apbianco@cygnus.com>
12365 * tree.def (EXPR_WITH_FILE_LOCATION): Temporarily add a third
12366 operand, for use in the Java front-end.
12368 1999-12-10 Ben Collins <bcollins@debian.org>
12370 * configure.in: Fix typo for "-64" in 64bit as check.
12371 * configure: Rebuilt.
12373 1999-12-10 Jakub Jelinek <jakub@redhat.com>
12375 * longlong.h (__sparc_v9__): Use %rDIGIT instead of %DIGIT where
12378 1999-12-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12380 * c-parse.in (string): With -Wtraditional, warn if ANSI string
12381 concatenation is utilized.
12383 * invoke.texi (-Wtraditional): Document it.
12385 1999-12-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12387 * flow.c (flow_loops_dump): Avoid ANSI string concatenation.
12388 Cast a ptrdiff_t to long and pass it to printf with %ld.
12390 1999-12-10 Geoff Keating <geoffk@cygnus.com>
12392 * config/m68k/m68k.h (CONDITIONAL_REGISTER_USAGE): If we have no
12393 68881, we have no 68881 registers at all.
12394 (HARD_REGNO_MODE_OK): It is always OK to put a MODE_FLOAT
12395 value in a 68881 register if it is available.
12397 1999-12-10 Clinton Popetz <cpopetz@cygnus.com>
12399 * config/arm/arm.md (*mulsidi3adddi, *umulsidi3adddi): New patterns
12400 for long long multiply-accumulate.
12402 1999-12-10 Bernd Schmidt <bernds@cygnus.co.uk>
12404 * loop.c (insert_loop_mem): Undo last change.
12406 1999-12-10 David S. Miller <davem@redhat.com>
12408 * config/sparc/sparc.c (fp_sethi_p, fp_mov_p, fp_high_losum_p):
12410 * config/sparc/sparc-protos.h: Add them.
12411 * config/sparc/sparc.h: Add them to PREDICATE_CODES.
12412 (EXTRA_CONSTRAINT_BASE): New macro, handling Q, R, and S
12413 constraints which use those helpers.
12414 (EXTRA_CONSTRAINT): Use this new macro.
12415 * md.texi: Update sparc target constraints documentation.
12416 * config/sparc/sparc.md (clear_sf, clear_sfp, movsf_const_intreg,
12417 movsf_const_high, movsf_const_lo, movsf_insn): Delete.
12418 (movsf_insn_novis_liveg0, movsf_insn_novis_noliveg0,
12419 movsf_insn_vis, movsf_lo_sum, movsf_high): New patterns.
12420 (movsf high/lo_sum split): Rework for new patterns.
12421 (movsf expander): Allow storing fp_zero to memory if ! live_g0.
12423 1999-12-09 Gavin Romig-Koch <gavin@cetus.cygnus.com>
12425 * c-common.c (c_common_nodes_and_builtins):
12426 Create __builtin_ptrdiff_t and __builtin_size_t.
12428 Thu Dec 9 18:05:48 1999 Jeffrey A Law (law@cygnus.com)
12430 * pa/elf.h (MAX_OFILE_ALIGNMENT): Define.
12432 Fri Dec 10 00:53:10 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
12434 * regclass.c (globalize_reg): Re-instate test that allows
12435 fixed registers to be declared as a variable even after functions
12438 Fri Dec 10 00:52:13 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
12440 * i386.md (cpu attribute): Add "athlon".
12441 (athlon_decode): New attribute.
12442 (Athlon scheduling units definitions): New.
12443 (fcmp and shld patterns): Set athlon_decode to "vector".
12444 * i386.c (athlon_cost): New.
12446 (x86_use_leave, x86_push_memory, x86_movx, x86_cmove, x86_deep_branch,
12447 x86_use_sahf): Set for Athlon.
12448 (x86_use_fiop): Unset for Athlon.
12449 (override_options): Define Athlon alignments and "athlon" name.
12450 (x86_adjust_cost): Penalize AGI and delayed latencies for Athlon.
12451 * i386.h (TARGET_ATHLON): New.
12452 (enum processor_type): Add PROCESSOR_ATHLON.
12453 (TARGET_CPU_DEFAULT_SPEC): Set to "-D__tune_athlon__"
12455 (TARGET_CPP_CPU_SPECS): Set -D__tune_athlon__ for Athlon.
12457 1999-12-09 Andreas Jaeger <aj@suse.de>
12459 * loop.c (record_biv): Declare parameter as int.
12461 * config/i386/i386-protos.h: Declare long_memory_operand.
12463 1999-12-09 Mark Mitchell <mark@codesourcery.com>
12465 * tree.c (copy_node): Do zero the TREE_CHAIN, even for an
12466 EXPR_WITH_FILE_LOCATION.
12468 Thu Dec 9 11:36:24 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
12470 * i386.md (neg??, abs?f, one_cmpl?i): Use nonimmediate_operand
12473 * flow.c (recompute_reg_usage): Use basic block info to get loop_depth.
12475 * combine.c (try_combine, distribute_notes): Remove REG_N_REFS
12478 1999-12-09 Jakub Jelinek <jakub@redhat.com>
12480 * config/sparc/linux64.h (TARGET_DEFAULT): Make -mapp-regs
12481 default on linux64 again.
12482 * config/sparc/t-linux64: Add mno-app-regs and non-medlow code
12483 models for multilibing.
12484 * genmultilib: Accept | as alternative separator within a set in
12487 * config/sparc/sparc.h (PROMOTE_FOR_CALL_ONLY): Define.
12489 * calls.c (precompute_arguments): Make sure initial_value contains
12490 value pseudo which CSE expects.
12491 * cse.c (struct set): New entry orig_src.
12492 (cse_insn): Set it early on entry, use it for libcall EQUIV note
12495 Wed Dec 8 22:24:15 1999 Richard Henderson <rth@cygnus.com>
12497 * flow.c (count_basic_blocks): Don't add (use (const_int 0)) insns.
12499 1999-12-08 Bernd Schmidt <bernds@cygnus.co.uk>
12501 * loop.c (insert_loop_mem): Don't hoist volatile mems out of loops.
12503 1999-12-08 Jakub Jelinek <jakub@redhat.com>
12505 * config/sparc/sparc.c (ultra_cmove_results_ready_p,
12506 ultra_fpmode_conflict_exists, ultra_flush_pipeline): Typo fix.
12508 * config/sparc/sparc.h (SPARC_SETHI_P): Don't look at topmost 32 bits
12511 * longlong.h: Merge in changes from glibc.
12512 Also don't clobber %g2 register in 32bit SPARC assembly, so that
12513 -mno-app-regs libgcc can be compiled.
12514 * libgcc2.c: Add defines so that the updated longlong.h
12515 can be used in libgcc2.a. Also, make sure on most architectures
12516 (at least on all which have optimized code in longlong.h defined
12517 for) {SI,W}_TYPE_SIZE is suitable for preprocessor tests.
12519 1999-12-08 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
12521 * config/sparc/sol2-64.h: Same as sol2-sld-64.h, except that
12522 `-m EMULATION' is added to non-default LINK_ARCH_SPECs.
12523 * configure.in: Use sol2-64.h instead of sol2-sld-64.h if linker
12525 * configure: Rebuilt.
12527 Wed Dec 8 03:45:40 1999 Richard Henderson <rth@cygnus.com>
12529 * alpha.c (secondary_reload_class): For !BWX, sub-simode
12530 outputs require a register.
12532 1999-12-08 Brendan Kehoe <brendan@cygnus.com>
12534 * Makefile.in (FPBIT_FUNCS, DPBIT_FUNCS): Add _sf_to_usi
12535 _df_to_usi. Required by some targets, so US_SOFTWARE_GOFAST calls to
12536 functions like dptoul will be resolved.
12537 (libgcc2.a): Make sure that the object files from DPBIT are named
12538 differently (prefix `_dp') from those that would be coming from
12541 1999-12-08 Alexandre Oliva <oliva@lsd.ic.unicamp.br>, Jakub Jelinek <jakub@redhat.com>
12543 * configure.in: When target is sparc* and tm_file contains 64,
12544 test for 64bit support in assembler. If not supported, remove
12545 sparc/t-sol2-64 from target-dependent Makefile fragments.
12546 (AS_SPARC64_FLAG): Define to the assembler flag for 64bit.
12547 (HAVE_AS_OFFSETABLE_LO10): Rework test to use these flags.
12548 (HAVE_AS_REGISTER_PSEUDO_OP): Use config.cache.
12549 * acconfig.h (AS_SPARC64_FLAG): Added.
12550 * configure, config.in: Rebuilt.
12551 * config/sparc/sol2-sld-64.h: Same as sol2.h, if without 64bit
12552 support. Use AS_SPARC64_FLAG.
12554 1999-12-07 Jakub Jelinek <jakub@redhat.com>
12556 * config/sparc/sparc.c (hard_32bit_mode_classes): Mark registers
12557 suitable for holding OFmode values so that gcc works with complex
12559 (hard_64bit_mode_classes): Likewise.
12561 * config/sparc/sparc.md (sethi_di_medlow_embmedany_pic): Fix pattern
12562 so that it is actually matched.
12563 (sethi_di_medlow): Likewise.
12565 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Consider TFmode 0.0L
12566 as legitimate constant if -mvis.
12567 * config/sparc/sparc.md (movtf): Likewise.
12568 (clear_sf): Use const_double_operand.
12569 (clear_sfp, clear_dfp, clear_tf, clear_tfp): New patterns.
12571 * config/sparc/sparc.c (sparc_emit_float_lib_cmp): New function.
12572 * config/sparc/sparc-protos.h (sparc_emit_float_lib_cmp): Prototype.
12573 * config/sparc/sparc.h (*_LIBCALL): Only use for _Q_*
12574 routines, _Qp_* cannot be handled like that now.
12575 (INIT_TARGET_OPTABS): Likewise.
12576 * config/sparc/sparc.md (cmptf): Accept soft float ARCH64.
12577 (seq, sne, sgt, sge, slt, sle, beq, bne, bgt, bge, blt, ble): Call
12578 sparc_emit_float_lib_cmp if ARCH64 and soft float.
12579 (extendsftf2, extenddftf2, trunctfsf2, trunctfdf2, floatsitf2,
12580 floatditf2, fix_trunctfsi2, fix_trunctfdi2, addtf3, subtf3, multf3,
12581 divtf3, sqrttf3): New expanders.
12582 (extendsftf2_hq, extenddftf2_hq, trunctfsf2_hq, trunctfdf2_hq,
12583 floatsitf2_hq, floatditf2_hq, fix_trunctfsi2_hq, fix_trunctfdi2_hq,
12584 addtf3_hq, subtf3_hq, multf3_hq, divtf3_hq, sqrttf3_hq): Rename from
12587 * configure.in (sparc64-*-linux*): Use posix threads if enabled.
12588 * configure: Rebuilt.
12589 * config/sparc/linux64.h: Default to -mcpu=ultrasparc if no
12590 -mcpu is given and we're doing 64bit compiles.
12592 Tue Dec 7 19:22:06 1999 Richard Henderson <rth@cygnus.com>
12594 * loop.h (struct induction): Add multi_insn_incr.
12595 * loop.c (basic_induction_var): New multi_insn_incr argument.
12596 Set it if we search back through previous insns for the biv.
12597 (record_biv): New multi_insn_incr argument; fill in struct induction.
12598 (strength_reduce): Discard an iv with multiple bivs, any of
12599 which require multiple insns to increment.
12601 1999-12-07 Martin v. Löwis <loewis@informatik.hu-berlin.de>
12603 * invoke.texi (C Dialect Options): Remove -flang-c9x, add -std
12606 1999-12-06 David S. Miller <davem@redhat.com>
12608 * combine.c (check_promoted_subreg): Do not conditionalize this upon
12609 PROMOTE_FUNCTION_RETURN.
12611 Mon Dec 6 15:12:14 1999 Jim Wilson <wilson@cygnus.com>
12613 * regmove.c (optimize_reg_copy_1): If no REG_DEAD note, check for
12614 and handle REG_UNUSED note on insn.
12616 * combine.c (force_to_mode, case LSHIFTRT): New local inner_mask. Set
12617 inner_mask instead of mask.
12619 1999-12-06 Brendan Kehoe <brendan@cygnus.com>
12621 * dwarf2out.c (field_byte_offset): As with dwarfout.c, size can be
12622 zero if there was an error.
12624 1999-12-06 Jakub Jelinek <jakub@redhat.com>
12626 * config/sparc/sparc.md (return_losum_di): Fix typo in asm
12629 * longlong.h: Fix clobbers in SPARC asm statements.
12631 * config/sparc/sparc.c (input_operand): Allow HImode and QImode
12632 valid sethi operations when TARGET_ARCH64.
12634 * calls.c (save_fixed_argument_area): If save_mode is BLKmode,
12635 always use move_by_pieces to avoid infinite recursion.
12636 (restore_fixed_argument_area): Likewise.
12638 * combine.c (check_promoted_subreg, record_promoted_value): New
12640 (combine_instructions): Use them to retain nonzero and sign bit
12641 information after SUBREGs are eliminated by optimizations in
12642 this pass if PROMOTE_FUNCTION_RETURN.
12644 * config/sparc/sparc.h (ASM_DECLARE_REGISTER_GLOBAL): Document
12645 .register declaration. Don't use variables with __ prefixes.
12647 Mon Dec 6 12:24:52 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12649 * fold-const.c (optimize_bit_field_compare): Only use one mode
12650 for both RHS and LHS in non-constant case.
12652 1999-12-06 Nathan Sidwell <nathan@acm.org>
12654 * frame.c (start_fde_sort): Only allocate erratic array, if
12655 linear one was allocated. Return allocated flag.
12656 (fde_insert): Only insert, if there's a valid array.
12657 (fde_end_sort): Split, sort and merge if linear and erratic
12658 arrays exist, else just sort linear one.
12659 (search_fdes): New function. Linear search through original fde
12661 (frame_init): Permit multiple initializations. Cope with
12663 (find_fde): Fallback on linear search, if failed to sort array.
12664 (__deregister_frame_info): Only free sorted array, if we
12667 1999-12-06 Jakub Jelinek <jakub@redhat.com>
12669 * config/sparc/sparc.h (MUST_PASS_IN_STACK): New macro.
12671 1999-12-05 Jakub Jelinek <jakub@redhat.com>
12673 * config/sparc/sparc.c (sparc64_initialize_trampoline): Use gen_flushdi.
12675 1999-12-05 Mark Mitchell <mark@codesourcery.com>
12677 * tree.h (special_function_p): Declare.
12678 * calls.c (special_function_p): Make it global. Don't take `name'
12679 as a parameter. Fix typo in 1999-11-28 change.
12680 (expand_cal): Adjust.
12682 1999-12-04 Mark Mitchell <mark@codesourcery.com>
12684 * tree.def (EXPR_WITH_FILE_LOCATION): Fix comment formatting.
12685 * tree.h (EXPR_WFL_FILENAME): Define in terms of
12686 EXPR_WFL_FILENAME_NODE.
12687 (EXPR_WFL_FILENAME_NODE): Use the second operand slot rather than
12689 * print-tree.c (print_note): Print TREE_PRIVATE and
12692 * dwarf2out.c (add_abstract_origin_attribute): Don't abort when
12693 the original die cannot be found.
12695 * varray.h (varray_head_tag): Add elements_used.
12696 (VARRAY_PUSH): New macro.
12697 (VARRAY_POP): Likewise.
12698 (VARRAY_TOP): Likewise.
12699 Add variants of VARRAY_PUSH and VARRAY_POP for all varray element
12701 * varray.c (varray_init): Initialize elements_used.
12702 * Makefile.in (BASIC_BLOCK_H): Add varray.h.
12703 (INTEGRATE_H): New variable.
12704 (integrate.o): Depend on INTEGRATE_H.
12705 (unroll.o): Likewise.
12707 * function.h (insert_block_after_note): Declare.
12708 * function.c (insert_block_after_note): Split out from ...
12709 (retrofit_block): ... here.
12711 * stmt.c (expand_fixup): Fix typo in comment.
12713 Sat Dec 4 14:13:38 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
12715 * regmove.c (copy_src_to_dest): Remove loop_depth parameter.
12716 (optimize_reg_copy_1): Remove REG_N_REFS updating code.
12717 (optimize_reg_copy_2, copy_src_to_dest, fixup_match_2): Likewise.
12718 (regmove_optimize, fixup_match_1): Likewise.
12720 1999-12-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
12722 * flow.c (flow_loops_dump): Add missing argument when calling
12723 flow_loop_nested_p.
12725 1999-12-04 Geoffrey Keating <geoffk@cygnus.com>
12726 Greg McGary <gkm@gnu.org>
12728 * c-common.c (enum attrs): Add A_NO_LIMIT_STACK.
12729 (init_attributes): Add A_NO_LIMIT_STACK.
12730 (decl_attributes): Handle A_NO_LIMIT_STACK.
12731 * c-decl.c (duplicate_decls): Handle DECL_NO_LIMIT_STACK.
12732 * explow.c (allocate_dynamic_stack_space) [!HAVE_allocate_stack]:
12733 Handle stack bounds checking.
12734 * flags.h (flag_stack_check): Use the word 'probe' rather than
12735 'check', because the flag doesn't actually cause any checking to
12737 * function.c (expand_function_start): Set
12738 current_function_limit_stack.
12739 * function.h (struct function): Add limit_stack.
12740 (current_function_limit_stack): Define.
12741 * invoke.texi (Code Gen Options): Document new options.
12742 * rtl.h: Declare stack_limit_rtx.
12743 * toplev.c (stack_limit_rtx): New variable.
12744 (decode_f_option): Handle new options -fstack-limit-register=REG,
12745 -fstack-limit-symbol=IDENT, -fno-stack-limit.
12746 (main): Add stack_limit_rtx as GC root.
12747 * tree.h (DECL_NO_LIMIT_STACK): New macro.
12748 (struct tree_decl): New member no_limit_stack.
12750 * config/rs6000/rs6000.c (rs6000_allocate_stack_space): Handle
12752 * config/rs6000/rs6000.md (allocate_stack): Handle stack_limit_rtx.
12753 (conditional_trap+1): Get new mnemonic correct.
12754 (conditional_trap+2): New pattern for DImode traps.
12756 * config/m68k/m68k.c (output_function_prologue): Handle
12758 * config/m68k/m68k.md (trap): New insn.
12759 (conditional_trap): New insn.
12760 * md.texi (Standard Names): Document `trap' and
12761 `conditional_trap'.
12762 * optabs.c (gen_cond_trap): Use start_sequence()/end_sequence()
12763 so a cc0 setter doesn't get emitted at some random place in the
12766 * config/i960/i960.md (trap): New insn.
12767 (conditional_trap): New expander.
12768 (conditional_trap+1, conditional_trap+2): New insns for signed
12769 and unsigned cases.
12770 * config/i960/i960.c (i960_function_prologue): Use
12771 STARTING_FRAME_OFFSET. Handle stack_limit_rtx.
12773 Thu Dec 2 21:22:45 1999 Greg McGary <gkm@gnu.org>
12774 Geoffrey Keating <geoffk@cygnus.com>
12776 * flags.h (warn_padded, warn_packed): Add global var decls.
12777 * toplev.c (warn_padded, warn_packed): Add global var defns.
12778 (W_options): Add warnings `-Wpacked' and `-Wpadded'.
12779 * stor-layout.c (layout_record): Add local variable `type'
12780 to hold often-used TREE_TYPE (field). Add local variable
12781 `unpacked_align' to hold alignment that would be in force
12782 if no `packed' attribute were present. Warn if `packed' attribute
12783 is unnecessary, or even harmful. Warn when gcc inserts padding
12784 to satisfy alignment requirements of members. Use NULL_TREE
12785 when checking whether var_size is set.
12786 * invoke.texi: Document new flags.
12788 1999-12-03 Nathan Sidwell <nathan@acm.org>
12790 * frame.c (fde_split): Reimplement to avoid variable sized array.
12792 Thu Dec 2 18:59:48 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
12794 * combine.c (try_combine): Before fixing up LOG_LINKS for the
12795 i3_subst_into_i2 case, check that GET_CODE (PATTERN (i2)) == PARALLEL.
12797 1999-12-02 Gavin Romig-Koch <gavin@cygnus.com>
12799 * invoke.texi: Document the mips option -mno-crt0
12801 1999-12-02 Mike Karr <mkarr@mathworks.com>
12803 * cccp.c (argdata): Added free_ptr member.
12804 (macroexpand): Initialize free_ptr of each argument. When an
12805 argument's buffers are freed, if the argument's free_ptr corresponds
12806 to a buffer on the input stack, then return the free_ptr to that stack
12807 frame, otherwise, free it.
12808 (macarg): If an argument begins and ends on the same input stack level,
12809 then transfer the free_ptr of that buffer to the argument in case
12810 the stack is popped during the processing of a subsequent argument.
12812 1999-12-02 Bernd Schmidt <bernds@cygnus.co.uk>
12814 * loop.c (note_reg_stored): New function.
12815 (struct note_reg_stored_arg): New structure.
12816 (try_copy_prop): Change to be more conservative; only replace within
12817 one extended basic block and stop replacing if a store to the
12818 replacement reg is seen.
12820 1999-12-02 Nick Clifton <nickc@cygnus.com>
12822 * config/fp-bit.c: Initialise all fields of the NAN
12825 * c-lex.c (check_newline): Pass pragma_getc and pragma_ungetc
12828 Wed Dec 1 18:16:38 1999 Jan Hubicka <hubicka@freesoft.cz>
12830 * i386.md (extend?f?f2): Force the input into a register, not
12833 1999-12-01 Jakub Jelinek <jakub@redhat.com>
12835 * config/sparc/sparc.md (movsf_const_intreg): Add constraints for
12837 (movdf_const_intreg_sp32): Likewise. Prefer the memory load
12838 alternative because setting up 64bit constant is usually costly,
12839 especially when reload is in progress or completed.
12840 (movdf_const_intreg_sp64): Likewise.
12841 (movdf_const_intreg split): Fix building up constants when
12842 HOST_BITS_PER_WIDE_INT is 64 yet long is 32bit.
12844 Wed Dec 1 16:51:22 1999 Jeffrey A Law (law@cygnus.com)
12846 * combine.c (if_then_else_cond): Use const_true_rtx instead of
12847 const1_rtx for return values in EQ/NE comparison against (const_int 0)
12850 * mn10300.c (REG_SAVE_BYTES): Allocate space for AM33 registers.
12851 (asm_file_start): Emit .am33 into assembly file when compiling for
12853 (print_operand_address): Handle POST_INC addresses.
12854 (can_use_return_insn, initial_offset): Check AM33 registers too.
12855 (expand_prologue): Check & save AM33 registers too.
12856 (expand_epilogue): Similarly.
12857 (secondary_reload_class): Handle AM33 specific secondary reloads.
12858 (output_tst): Emit efficient code for the AM33 too.
12859 * mn10300.h (CPP_SPEC, TARGET_AM33): Define.
12860 (TARGET_SWITCHES): Add -mam33 switch.
12861 (FIRST_PSEUDO_REGISTER): Handle new AM33 registers.
12862 (FIXED_REGISTERS, CALL_USED_REGISTERS): Likewise.
12863 (REG_ALLOC_ORDER, CONDITIONAL_REGISTER_USAGE): Likewise.
12864 (HARD_REGNO_MODE_OK, MODES_TIEABLE_P): Likewise.
12865 (enum reg_class, REG_CLASS_NAMES): Likewise.
12866 (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Likewise.
12867 (INDEX_REG_CLASS, REG_CLASS_FROM_LETTER): Likewise.
12868 (REGNO_OK_FOR_INDEX_P, PREFERRED_RELOAD_CLASS): Likewise.
12869 (PREFERRED_OUTPUT_RELOAD_CLASS, LIMIT_RELOAD_CLASS): Likewise.
12870 (REGISTER_MOVE_COST, REGISTER_NAMES): Likewise.
12871 (HAVE_POST_INCREMENT): Define.
12872 (GO_IF_LEGITIMATE_ADDRESS): Allow POST_INC addresses for the AM33.
12873 (GO_IF_MODE_DEPENDENT_ADDRESS): POST_INC is a mode dependent address.
12874 * mn10300.md (movqi, movhi, addsi, subsi): Add AM33 variants.
12875 (mulsi, andsi, iorsi, xorsi, notsi): Likewise.
12876 (ashiftsi, lshiftrtsi, ashiftrtsi): Likewise.
12877 (zero_extend to SI from QI/HI): Likewise.
12878 (sign_extend to SI from QI/HI): Likewise.
12879 (mulsidi3, umulsidi3): New patterns for the AM33.
12880 (tstsi with zero extension from QI/HI): Add AM33 variants.
12881 (movsi, movsf, movdi, movdf): Generate efficient code for the AM33 too.
12882 (return_internal_regs, store_movm): Handle new AM33 registers.
12883 * t-mn10300 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES): Define.
12884 (LIBGCC, INSTALL_LIBGCC): Likewise.
12885 * invoke.texi: Document new flags.
12887 Fri Nov 26 10:59:12 CET 1999 Jan Hubicka <hubicka@freesoft.cz>
12889 * i386.md (addsi3_cc): Add "binary_operator_ok" to the condition.
12890 (addsi3_carry): Likewise.
12891 (sbbsi3_cc): Add "binary_operator_ok" to the condition.
12892 (sbbsi3_carry): Likewise.
12893 (mulsi3): Rewrite to expander, ensure that only one operand is memory.
12894 (mulhi3): Likewise.
12895 (test?i_1): Ensure that only one operand is memory.
12896 (conditional move patterns): likewise.
12897 (shift and rotate patterns): Rewrite to expander, add
12898 "binary_operator_ok" to the condition.
12900 * i386.md (QImode patterns): Remove '*' before the 'r' constraints.
12901 * i386.h (procesor_costs): Add movzbl_load field.
12902 (HARD_REGNO_MODE_OK): Accept QImode on non PARTIAL_REGISTER_STALL in
12903 non-Q registers, accept DImode registers anywhere.
12905 (MEMORY_MOVE_COST): Calculate QImode moves correctly.
12906 * i386.c (*_cost): Set value for movxbl_load field.
12908 * (addsi): New add to lea splitter.
12909 (ashlsi): Likewise.
12910 (lea to add/shift peep2): New.
12912 1999-12-01 Mark Salter <msalter@cygnus.com>
12914 * config/mips/elf.h (STARTFILE_SPEC): Add no-crt0.
12915 * config/mips/elf64.h (STARTFILE_SPEC): Add no-crt0.
12916 * config/mips/mips.h (TARGET_SWITCHES): Add no-crt0.
12918 Tue Nov 30 15:20:52 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
12920 * i386.c (ix86_expand_move): Never add clobbers to move patterns.
12921 * i386.md (movsi_xor): New.
12923 (movsi_1, movhi_1, movqi_1): Remove.
12924 (movsi_2): Rename to movsi_1.
12925 (movhi_2): Rename to movhi_1.
12926 (movqi_2): Rename to movqi_1.
12927 (movdi_1): Remove; remove splitter.
12928 (movdi_2): Rename to movdi_1.
12929 (divmodsi4 splitter): Do not emit clobbers for move patterns.
12930 (long move peep2): Do not create QI or HI mode mov0s
12931 (mov -1,reg -> or peep2s): Enable again, rewrite to single peephole.
12933 * i386.md (zero_extend?i?i2): Rewrite to expanders; new patterns,
12936 * i386.md (neg?f2_if): Split "r" and "f" to separate alternatives.
12937 (abs?f2_if): Likewise.
12939 1999-11-30 Alex Samuel <samuel@codesourcery.com>
12941 * ggc.h (ggc_test_and_set_mark): New macro.
12942 (ggc_mark_rtx): Use ggc_test_and_set_mark.
12943 (ggc_mark_tree): Likewise.
12944 (ggc_mark_rtvec): Likewise.
12945 * ggc-common.c (ggc_mark_rtx_children): Reduce recursion.
12947 1999-11-30 Jason Merrill <jason@casey.cygnus.com>
12949 * dwarf2out.c (scope_die_for): Only handle types. Only search for
12951 (decl_scope_table): Just an array of trees now.
12952 (push_decl_scope): Simplify.
12953 (dwarf2out_init): Adjust.
12954 (local_scope_p): New fn.
12955 (gen_inlined_enumeration_type_die): Don't call scope_die_for.
12956 (gen_inlined_union_type_die, gen_inlined_structure_type_die): Likewise.
12957 (gen_typedef_die): Likewise.
12958 (gen_lexical_block_die): Don't call push/pop_decl_scope.
12959 (gen_inlined_subroutine_die): Likewise.
12960 (gen_abstract_function): Set current_function_decl temporarily.
12961 (gen_subprogram_die): Don't check DECL_ABSTRACT to set declaration.
12962 Handle block extern declarations. Don't call push/pop_decl_scope.
12963 (gen_decl_die): Fix logic for block externs.
12965 1999-11-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12967 * calls.c (special_function_p): Remove `realloc' and add `strdup'
12968 to the list of functions which have attribute malloc by default.
12970 1999-11-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12972 * c-lex.c (yylex): With -Wtraditional, when the ANSI type of an
12973 integer constant does not match the traditional type, limit the
12974 warnings to cases where the base of the type is ten.
12976 * invoke.texi (-Wtraditional): Document it.
12978 Tue Nov 30 15:18:35 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
12980 * combine.c (try_combine): Only pass SET or CLOBBER to SET_DEST
12981 * rs6000.md: Only access a CONST_INT with INTVAL
12983 Tue Nov 30 14:21:00 1999 Richard Henderson <rth@cygnus.com>
12985 * lcm.c (compute_laterin): Cast bb->aux to size_t not int.
12986 (compute_nearerout): Likewise.
12987 * ggc-page.c (ggc_page_print_statistics): Explicitly cast
12988 size_t to unsigned long for formatting.
12990 1999-11-30 Jakub Jelinek <jakub@redhat.com>
12992 * config/sparc/sparc.h (FIXED_REGISTERS, CONDITIONAL_REGISTER_USAGE):
12993 Allow the user to override call-used/fixed state of %g2-5
12994 registers from the command line (with the exception of %g4 for
12996 (REG_LEAF_ALLOC_ORDER): Move %g1 and %g4-7 registers to front, so that
12997 there is a higher chance of having a leaf function.
12998 (MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Provide separate macros
12999 for ARCH64 which has %ccr register.
13000 * config/sparc/sparc.md (return_losum_si, return_losum_di): New
13002 * config/sparc/sparc.c (eligible_for_epilogue_delay): For the return
13003 insn accept into delay slot any insn which does not use %[ol]
13004 registers. Accept some LO_SUM and shift left by 1 for the normal
13006 (output_function_epilogue): Likewise.
13007 (epilogue_renumber): Added argument which inhibits any renumbering
13008 and just tests if the rtx does not use any %[ol] registers.
13009 (output_return): Reflect above change.
13011 1999-11-30 Jakub Jelinek <jakub@redhat.com>
13013 * config/sparc/sparc.c (sparc_va_arg): Fix sparc64 va_arg
13014 aggregate passing for sizes <= 16 bytes.
13016 1999-11-30 Bernd Schmidt <bernds@cygnus.co.uk>
13018 * cse.c (FIXED_REGNO_P): Delete tests for OVERLAPPING_REGNO_P.
13019 * global.c (global_alloc): Delete [OVERLAPPING_REGNO_P] code.
13020 * reload.c (find_dummy_reload): Likewise.
13021 (find_equiv_reg): Likewise; also for INSN_CLOBBERS_REGNO_P.
13022 * reload1.c (reload_as_needed): Likewise.
13023 * stupid.c (stupid_find_reg): Likewise.
13024 * tm.texi (Obsolete Register Macros): Delete section.
13025 * gmicro.h: Remove all traces of the two macros.
13026 * i386.h: Likewise.
13027 * m88k.h: Likewise.
13028 * mips.h: Likewise.
13030 1999-11-30 Brendan Kehoe <brendan@cygnus.com>
13032 * sparc.h (MASK_FASTER_STRUCTS, TARGET_FASTER_STRUCTS): Define.
13033 (TARGET_SWITCHES): Add -mfaster-structs/-mno-faster-structs flags.
13034 (ROUND_TYPE_ALIGN): Use better value if -mfaster-structs.
13035 * sparc.md (sparclite86x_branch, sparclite86x_shift): New function
13036 units for the sparclite86x chip.
13037 (flush): Revert October 14th change; add SImode specifically.
13038 (flushdi): Copy of flush, but DImode, to avoid genrecog warnings.
13039 * invoke.texi: Document it.
13041 Tue Nov 30 14:58:14 1999 Nick Clifton <nickc@cygnus.com>
13043 * config/mn10200/mn10200.h (PREDICATE_CODES): Add
13044 psimode_truncation_operand.
13046 * config/mn10200/mn10200.c (psimode_truncation_operand): New
13047 function. Return true if the operand is either a MEM valid
13048 for a PSImode address or not a MEM at all.
13050 * config/mn10200/mn10200.md (truncsipsi2): Use
13051 psimode_truncation_operand.
13053 1999-11-30 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
13055 * flow.c (flow_nodes_print, flow_loops_cfg_dump): New functions.
13056 (flow_loop_nested_p, flow_loops_dump, flow_loops_free): Likewise.
13057 (flow_loop_exits_find, flow_loop_nodes_find): Likewise.
13058 (flow_depth_first_order_compute, flow_loop_pre_header_find): Likewise.
13059 (flow_loop_tree_node_add, flow_loops_tree_build): Likewise.
13060 (flow_loop_level_compute, low_loops_level_compute): Likewise.
13061 (flow_loops_find, flow_loop_outside_edge_p): Likewise.
13062 * basic-block.h: Protect from multiple inclusion.
13063 (flow_loops_find, flow_loops_free, flow_loop_dump): Add protoypes.
13064 (struct loops, struct loop): Define structures.
13065 * sbitmap.c (sbitmap_a_subset_b_p): New function.
13066 * sbitmap.h: Protect from multiple inclusion.
13067 (sbitmap_a_subset_b_p): Add prototype.
13068 * Makefile.in (LOOP_H): New macro.
13069 (stmt.o, integrate.o, loop.o, unroll.o): Replace loop.h with LOOP_H.
13071 Tue Nov 30 01:34:47 1999 Philippe De Muyter <phdm@macqel.be>
13073 * cppinit.c (CAT): The argument list of this macro may not contain
13076 1999-11-29 David S. Miller <davem@redhat.com>
13078 Move quantity tables and register equivalence chains into
13079 per-qty and per-register structure arrays respectively.
13080 * cse.c (qty_first_reg, qty_last_reg, qty_mode, qty_const,
13081 qty_const_insn, qty_comparison_code, qty_comparison_const,
13082 qty_comparison_qty): Delete, replace with...
13083 (qty_table): this structure table.
13084 (reg_next_eqv, reg_prev_eqv): Delete, replace with...
13085 (reg_eqv_table): this structure table.
13086 (make_new_qty): Add argument MODE. Caller updated.
13087 Update to use qty_table and reg_eqv_table.
13088 (make_regs_eqv, delete_reg_equiv, insert_regs,
13089 insert, exp_equiv_p, cse_rtx_varies_p, canon_reg,
13090 fold_rtx, equiv_constant, record_jump_cond, cse_insn,
13091 cse_process_notes, cse_main, cse_basic_block): Likewise.
13093 Mon Nov 29 16:56:42 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13095 * fold-const.c (extract_muldiv, case {MIN,MAX}_EXPR): Reverse
13096 operation if C is negative.
13097 (extract_muldiv, case SAVE_EXPR): Supresss if arg has side effects.
13098 (extract_muldiv, case {PLUS,MINUS}_EXPR): Don't apply distributive
13099 law for some divisions if constant is negative and change other
13100 divisions to the opposite rounding.
13102 * expr.c (store_constructor_field): If bit position is not multiple
13103 of alignment of TARGET's mode, use BLKmode.
13105 * expr.c (expand_expr_unaligned): Add more code from full case
13106 that is needed when OP0 is in a register.
13108 Mon Nov 29 18:09:39 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
13110 * dwarfout.c (field_byte_offset): Size can be zero if there was
13113 1999-11-29 Bernd Schmidt <bernds@cygnus.co.uk>
13115 * fold-const.c (split_tree): Delete unused vars ORIG_IN and TYPE.
13116 (associate_trees): Delete unused var TEM.
13117 (extract_muldiv): Delete unused var CANCEL_P.
13119 * fold-const.c [TARGET_FLOAT_FORMAT != IEEE_FLOAT_FORMAT]
13120 (target_isinf, target_isnan, target_negative): Add return types to
13121 function definitions.
13123 1999-11-29 Bruce Korb <autogen@linuxbox.com>
13125 * fixinc/fixincl.c(process): don't skip GLIBC files any more.
13126 * fixinc/hackshell.tpl: ditto
13127 * fixinc/fixtests.c(double_slash_test): more C++ header testing
13128 * fixinc/inclhack.def(AAB_fd_zero_glibc*): corrected spelling of mach
13130 1999-11-29 Bernd Schmidt <bernds@cygnus.co.uk>
13132 * reload.c (push_reload): When looking for a register to put into
13133 reg_rtx, make sure all hard regs in a multi-reg register are in the
13134 right class and nonfixed.
13136 * haifa-sched.c (reg_last_uses, reg_last_sets, reg_last_clobbers,
13137 pending_read_insns, pending_write_insns, pending_read_mems,
13138 pending_write_mems, pending_list_length, last_pending_memory_flush,
13139 last_function_call, sched_before_next_call): Move static variables
13141 (bb_ prefixed versions): Replace with single array bb_deps.
13142 (struct deps): New structure.
13143 (add_insn_mem_dependence, flush_pending_lists, sched_analyze_1,
13144 sched_analyze_2, sched_analyze_insn, sched_analyze): Accept new
13145 argument of type "struct deps *"; use that instead of global
13146 variables. All callers changed.
13147 (init_rgn_data_dependencies): Delete function.
13148 (init_rtx_vector): Delete function.
13149 (init_deps): New function.
13151 (free_pending_lists): Simplify, we always use the bb_deps array even
13152 if only one basic block.
13153 (compute_block_backward_dependences): Likewise.
13154 (schedule_region): Likewise.
13156 (propagate_deps): New function, broken out of
13157 compute_block_backward_dependences.
13158 (compute_block_backward_dependences): Use it.
13160 * alpha.md: Delete useless patterns that tried to work around
13161 register elimination problems.
13163 * unroll.c (loop_iterations): Don't abort if iteration variable
13166 From Joern Rennecke:
13167 * reload1.c (reloads_conflict): Reverse test comparing operand
13168 numbers when testing for conflict between output/outaddr reloads.
13170 1999-11-29 David S. Miller <davem@redhat.com>
13172 * config/sparc/sparc.c (init_cumulative_args): Fix type of third
13174 * config/sparc/sparc-protos.h: Update proto, move into RTX_CODE.
13176 1999-11-28 Robert Lipe <robertl@cygnus.com>
13178 * i386/sco5.h (FINI_SECTION_ASM_OP_COFF): Move destructor fn
13179 table from .fini into .dtor.
13181 1999-11-28 Anthony Green <green@cygnus.com>
13183 * tree.h (struct tree_decl): Add malloc_flag.
13184 (DECL_IS_MALLOC): Define.
13185 * c-common.c (attrs): Add A_MALLOC attribute.
13186 (init_attributes): Add this attribute to the table.
13187 (decl_attributes): Handle malloc attribute.
13188 * calls.c (special_function_p): Check for the malloc attribute.
13189 * extend.texi (Function Attributes): Document malloc attribute.
13191 Sun Nov 28 13:21:00 1999 Jeffrey A Law (law@cygnus.com)
13193 * pa.md (reload shift-add patterns): Remove.
13195 1999-11-28 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
13197 * reorg.c (dbr_schedule) Print more statistics. Corrected
13198 problem when printing info when 3 delay slots are filled.
13200 1999-11-28 Jakub Jelinek <jakub@redhat.com>
13202 * combine.c (setup_incoming_promotions): Pass an outgoing
13203 regno to FUNCTION_ARG_REGNO_P which it expects.
13205 1999-11-28 Andreas Jaeger <aj@suse.de>
13207 * mips/linux.h (CPP_PREDEFINES): Undefine before redefining.
13209 Sun Nov 28 00:48:15 1999 Philippe De Muyter <phdm@macqel.be>
13211 * cccp.c (do_include): Avoid initialization of automatic variable.
13213 * integrate.c (mark_stores): Function definition made void, to match
13214 previous declaration.
13215 * regclass.c (dump_regclass): Ditto.
13216 * Makefile.in (WARN_CFLAGS): Macro augmented by `-Wtraditional'.
13218 Sat Nov 27 08:38:26 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13220 * expr.c (store_constructor): Use EXACT_DIV_EXPR when dividend is
13221 known to be multiple of divisor.
13223 * expr.c (store_constructor): Don't clobber TARGET if CLEARED.
13225 * combine.c (try_combine): Add code to try to merge a set of a
13226 two-word pseudo to a constant with a setting of one of those words
13229 * fold-const.c (negate_expr, associate_trees, extract_muldiv): New.
13230 (split_tree): Completely rework to make more general.
13231 (make_range, fold): Call negate_expr.
13232 (fold, case NEGATE_EXPR): Simplify -(a-b) is -ffast-math.
13233 (fold, associate): Call new split_tree and associate_trees.
13234 (fold, case MULT_EXPR, case *_{DIV,MOD}_EXPR): Call extract_muldiv.
13236 1999-11-26 Bernd Schmidt <bernds@cygnus.co.uk>
13238 * loop.c (try_copy_prop): Avoid GNU C extension.
13240 1999-11-25 Mark Mitchell <mark@codesourcery.com>
13242 * except.c (init_eh_for_function): Still zero eh_return_context,
13243 eh_return_stack_adjust, and eh_return_handler.
13245 * except.h (eh_status): Adjust documentation for x_protect_list.
13246 (begin_protect_partials): New function.
13247 * except.c (enqueue_eh_entry): Fix formatting.
13248 (get_first_handler): Add consistency check.
13249 (add_partial_entry): Adjust usage of protect_list.
13250 (emit_cleanup_handler): Save and restore ehqueue.
13251 (expand_start_all_catch): Add comment.
13252 (begin_protect_partials): New function.
13253 (end_protect_partials): Adjust usage of protect_list.
13254 (init_eh_for_function): Use xcalloc.
13256 1999-11-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13258 * c-common.c (check_format_info): Don't call a variadic function
13259 with a non-literal format string.
13261 * c-decl.c (grokdeclarator, start_struct, finish_struct): Likewise.
13263 * c-typeck.c (build_component_ref, build_unary_op, lvalue_or_else,
13264 pedantic_lvalue_warning, error_init, pedwarn_init, warning_init):
13267 * cccp.c (check_macro_name, do_xifdef, vwarning_with_line):
13270 * collect2.c (collect_wait): Likewise.
13272 * dbxout.c (dbxout_type): Likewise.
13274 * gcc.c (do_spec_1): Likewise.
13276 * genemit.c (gen_insn, gen_expand): Likewise.
13278 * genrecog.c (write_switch, write_subroutine): Likewise.
13280 * mips-tfile.c (catch_signal, botch): Likewise.
13282 * print-rtl.c (print_rtx): Likewise.
13284 * toplev.c (default_print_error_function, report_error_function,
13285 _fatal_insn): Likewise.
13287 1999-11-25 Mark Mitchell <mark@codesourcery.com>
13289 * tree.c (unsave_expr_now): Handle NULL_TREE as input.
13291 Wed Nov 24 17:08:09 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
13293 * reg-stack.c (subst_stack_regs_pat): Swap operands in commutative
13294 operations when needed.
13295 * i386.md (fop_?f_comm): New.
13296 (fop_?f_1): Do not accept commutative operands.
13298 1999-11-25 Andreas Jaeger <aj@suse.de>
13300 * config/mips/mips.md (casesi_internal): Add missing brace.
13302 1999-11-25 Jason Merrill <jason@casey.cygnus.com>
13304 * dwarf2out.c (pend_type, output_pending_types_for_scope): Lose.
13305 (splice_child_die): Handle moving a child DIE from the declaration
13306 DIE of a class to its specification.
13307 (gen_struct_or_union_type_die): Use 'complete' consistently.
13308 (gen_decl_die): Generate the virtual context DIE first.
13309 Use decl_ultimate_origin instead of DECL_ABSTRACT_ORIGIN.
13311 1999-11-24 Gavin Romig-Koch <gavin@cygnus.com>
13313 * config/mips/mips.md (call_value_multiple_interanal1): New.
13315 1999-11-24 Jason Merrill <jason@casey.cygnus.com>
13317 * dwarf2out.c (free_AT, free_die): New fns.
13318 (remove_children): Call them.
13319 (output_line_info): Disable removal of duplicate notes.
13321 Generate minimal debug info for types with TYPE_DECL_SUPPRESS_INFO set.
13322 * dwarf2out.c (gen_struct_or_union_type_die): TYPE_DECL_SUPPRESS_INFO
13323 means pretend the type isn't defined.
13324 Don't defer emitting types.
13325 (gen_type_die_for_member): New fn.
13326 (gen_decl_die): Call it.
13327 (splice_child_die): New fn.
13328 (gen_member_die): Call it rather than generate duplicate dies.
13330 Defer emitting information for the abstract instance of an inline
13331 until we either inline it or emit an out-of-line copy.
13332 * dwarf2out.c (decl_ultimate_origin): Ignore DECL_ABSTRACT_ORIGIN
13333 from output_inline_function if DECL_ABSTRACT is also set.
13334 (block_ultimate_origin): Likewise.
13335 (gen_abstract_function): New fn.
13336 (gen_decl_die, gen_inlined_subroutine_die): Call it.
13337 (gen_subprogram_die): An abstract instance is not a declaration
13338 just because it doesn't match current_function_decl. Don't abort
13339 because DECL_DEFER_OUTPUT isn't set. Do abort if a declaration
13340 has an abstract origin.
13341 * toplev.c (rest_of_compilation): Don't emit dwarf2 info for the
13342 abstract instance here.
13344 Wed Nov 24 18:39:18 1999 Andrew Haley <aph@cygnus.com>
13346 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Add the case
13347 where we need to reload fpul from a system register.
13349 1999-11-24 Andreas Jaeger <aj@suse.de>
13351 * config/mips/linux.h (CPP_PREDEFINES): Added.
13352 (LINK_SPEC): Remove -Y since this is only needed on sparc.
13354 1999-11-24 Andreas Jaeger <aj@suse.de>
13356 * config/mips/linux.h (TARGET_VERSION): Added.
13357 (HANDLE_SYSV_PRAGMA): Added.
13358 (DEFAULT_VTABLE_THUNKS): Added.
13360 Wed Nov 24 14:12:15 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
13362 * local-alloc.c (qty): New structure and static variable.
13363 (qty_phys_reg): Remove, all references changed to qty.
13364 (qty_n_refs): Likewise.
13365 (qty_min_class): Likewise.
13366 (qty_birth): Likewise.
13367 (qty_death): Likewise.
13368 (qty_size): Likewise.
13369 (qty_mode): Likewise.
13370 (qty_n_calls_crossed): Likewise.
13371 (qty_alternate_class): Likewise.
13372 (qty_changes_size): Likewise.
13373 (qty_first_reg): Likewise.
13374 (alloc_qty): Rename variable QTY to QTYNO.
13375 (finf_free_reg): Likewise.
13376 (local_alloc): Allocate qty, do not allocate the removed variables.
13378 Wed Nov 24 17:26:05 1999 Geoffrey Keating <geoffk@cygnus.com>
13380 * config/mips/mips.h (ASM_SPEC): Don't pass -G to the assembler
13381 when -membedded-pic is passed.
13383 * config/mips/mips.md (casesi): Handle 64-bit case too.
13384 (casesi_internal_di): New insn.
13386 * config/mips/mips.c (embedded_pic_offset): Always make the
13387 embedded-pic subtractions relative to the name of the current
13388 function by use of the magic string "..CURRENT_FUNCTION".
13389 * config/mips/mips.h (ASM_OUTPUT_LABELREF): Make the magic happen.
13391 1999-11-24 Geoffrey Keating <geoffk@cygnus.com>
13393 * config/mips/mips.md (div_trap_normal): Don't ask for the REGNO
13394 of (const_int 0), when what we really care about is
13395 whether it's a zero constant anyway.
13396 (div_trap_mips16): Likewise.
13398 1999-11-23 Mark Mitchell <mark@codesourcery.com>
13400 * loop.c (loop_optimize): Always find_loop_tree_blocks and
13401 unroll_block_trees when generating debuggable code.
13403 * tree.h (unsave_expr_1): New function.
13404 (lang_unsave): New variable.
13405 (get_callee_fndecl): New function.
13406 * tree.c (unsave_expr_now_r): New function.
13407 (lang_unsave): Define.
13408 (unsave_expr_1): Likewise.
13409 (unsave_expr_now_r): Split out from unsave_expr_now.
13410 (unsave_expr_now): Call lang_unsave if it is non-NULL. Otherwise,
13411 call unsave_expr_now_r.
13412 (get_callee_fndecl): Define.
13414 * Makefile.in (gencheck): Don't depend on lang_tree_files.
13415 (gencheck.o): Do depend on lang_tree_files.
13417 * integrate.h (copy_decl_for_inlining): New declaration.
13418 * integrate.c (copy_and_set_decl_abstract_origin): Remove.
13419 (copy_decl_for_inlining): New function.
13420 (integrate_parm_decls): Use it.
13421 (integrate_decl_tree): Likewise.
13423 1999-11-23 Gavin Romig-Koch <gavin@cygnus.com>
13425 * config/mips/mips.h (ISA_HAS_FP4,ISA_HAS_CONDMOVE,ISA_HAS_8CC): Split
13426 the second two from the first.
13427 (CONDITIONAL_REGISTER_USAGE): Use ISA_HAS_8CC rather than ISA_HAS_FP4.
13428 * config/mips/mips.md (movcc,reload_incc,reload_outcc,
13429 conditional move): Use ISA_HAS_CONDMOVE or ISA_HAS_8CC rather than
13431 * config/mips/mips.c (mips_move_1word,gen_conditional_branch,
13432 override_options): Use ISA_HAS_CONDMOVE or ISA_HAS_8CC rather than
13435 Tue Nov 23 11:15:04 1999 Jeffrey A Law (law@cygnus.com)
13437 * pa.md (call_internal_symref, call_value_internal_symref): No mode
13438 needed on the address operand.
13439 * pa.c (call_operand_address): Check for the correct mode.
13441 1999-11-23 Bernd Schmidt <bernds@cygnus.co.uk>
13443 * loop.c: Include "basic-block.h".
13444 (try_copy_prop, replace_loop_reg): New functions.
13445 (load_mems): Detect registers that just hold copies of the hoisted
13446 mem, and call try_copy_prop to eliminate them.
13447 * Makefile.in (loop.o): Update dependencies.
13449 Tue Nov 23 01:03:29 1999 Hans-Peter Nilsson <hp@axis.com>
13451 * Makefile.in (gencheck.o): Depend on gencheck.h.
13452 (insn-emit.o): Depend on flags.h, hard-reg-set.h and resource.h.
13453 (insn-peep.o): Depend on except.h and function.h.
13454 (insn-attrtab.o): Depend on RECOG_H.
13455 (insn-output.o): Depend on toplev.h and flags.h.
13456 (gengenrtl.o): Depend on real.h.
13457 (gen-protos.o): Depend on cpplib.h and cpphash.h.
13458 Unify all dependencies to be on RECOG_H rather than recog.h.
13460 Tue Nov 23 00:57:10 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
13462 From Casper H.S. Dik on comp.unix.solaris, 23 Oct 1998:
13463 * configure.in: Try building a bi-arch 32/64-bit compiler on
13464 sparc-*-solaris2.7 and higher.
13465 * configure: Rebuild.
13467 Mon Nov 22 23:09:44 1999 David O'Brien <obrien@FreeBSD.org>
13469 * config/freebsd.h: New, FreeBSD architecture independent file.
13470 * config/i386/freebsd-elf.h: removed FreeBSD architecturally
13471 independent pieces.
13472 * config/i386/freebsd.h: include i386/perform.h via tm.h rather than
13473 directly by i386/freebsd.h.
13474 * configure.in (*-*-freebsdelf): Include new FreeBSD architecturally
13475 independent configuration file.
13476 (*-*-freebsdelf): Include i386/perform.h via tm.h rather than
13477 directly by i386/freebsd.h.
13478 * configure: Rebuilt.
13480 * xm-i386.h: Define `__i386__' if not defined, rather than `i386'
13481 which is in the user's namespace.
13482 * libgcc2.c: Look for the ANSI-C approved `__i386__' symbol, vs.
13483 `i386' which is not in our namespace.
13485 Mon Nov 22 22:58:01 1999 "R. Kelley Cook" <KelleyCook@attglobal.net>
13487 * invoke.texi (ARM Options): Add in -mno-alignment-traps
13489 1999-11-22 Jason Merrill <jason@casey.cygnus.com>
13491 * dwarf2out.c (die_struct): Remove die_attr_last and die_child_last.
13492 (add_dwarf_attr, add_child_die): Just push onto the front.
13493 (reverse_die_lists): New fn.
13494 (add_sibling_attributes): Use it.
13495 (push_decl_scope): Reorganize.
13496 (add_name_and_src_coords_attributes): Don't set file and line for
13497 an artificial decl.
13498 (gen_subprogram_die): An artificial function doesn't need to match
13500 (gen_compile_unit_die): Return the generated die. Only add
13501 AT_comp_dir if the filename is relative.
13502 (remove_AT): Simplify loop. Also free string values.
13503 (output_die): A DIE ref can't be null.
13504 (output_value_format, value_format): Take a dw_attr_ref.
13505 (dwarf_last_decl, is_extern_subr_die, sibling_offset): Remove.
13506 (AT_class, AT_flag, AT_int, AT_unsigned, AT_string, AT_ref, AT_loc,
13507 AT_addr, AT_lbl): New fns.
13508 (various): Use them.
13509 (various): Constify.
13511 Mon Nov 22 23:53:50 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
13513 * combine.c (combine_simplify_rtx): When handling a SUBREG,
13514 take SUBREG_WORD into account.
13515 (if_then_else_cond): Likewise.
13517 1999-11-22 Jason Merrill <jason@casey.cygnus.com>
13519 * gmon.c, i386/gmon-sol2.c, sparc/gmon-sol2.c: Remove advertising
13520 clause from BSD license, pursuant with
13522 ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
13524 1999-11-22 Bernd Schmidt <bernds@cygnus.co.uk>
13526 * loop.c (load_mems): Reformat slightly.
13527 * basic-block.h (regset_head): New typedef.
13528 (INIT_REG_SET): New macro.
13530 1999-11-22 Bruce Korb <autogen@linuxbox.com
13532 * fixinc/mkfisinc.sh(i?86-*-linux): disable script, run fixincl exe
13533 (mips-dec-bsd*): non-functional code
13534 (alpha*-*-linux-gnu*): redundant, duplicated by "*-*-linux-gnu*"
13536 * fixinc/inclhack.def(AAB_fd_zero_glibc_*):
13537 added three replacement fixes
13538 (no_double_slash): removed comments that are not (any longer) pertinent
13539 (bad_lval): this fix currently runs against many files.
13540 The comment seems to indicate that we should select for files
13541 containing 'pragma extern_prefix'.
13543 * fixinc/fixinc.x86-linux-gnu: deleted
13544 * fixinc/inclhack.sh: regen
13545 * fixinc/fixincl.x: regen
13546 * fixinc/fixincl.sh: regen
13548 Fri Nov 12 14:08:40 1999 Andrew Haley <aph@cygnus.com>
13550 * emit-rtl.c (gen_sequence): Only return the pattern of an insn if
13551 its code is INSN and it has no notes.
13553 1999-11-22 Andrew Haley <aph@cygnus.com>
13555 * varasm.c (function_defined): Remove.
13556 (make_function_rtl): Don't set function_defined.
13557 (make_decl_rtl): Remove global register warning.
13558 * regclass.c (no_global_reg_vars): New variable.
13559 (globalize_reg): Warn if function has already been defined.
13560 (regclass_init): Set no_global_reg_vars.
13562 Mon Nov 22 14:42:22 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
13564 * regclass.c (reg_pref): New structure and static variable
13565 (prefclass): Delete.
13566 (altclass): Delete.
13567 (all uses of prefclass and altclass): Use reg_pref instead.
13569 1999-11-21 Nick Clifton <nickc@cygnus.com>
13571 * invoke.texi (ARM Options): Replace -mshort-load-bytes with
13573 (arm.h): Replace -mshort-load-bytes with -malignment-traps.
13574 (arm.c): Replace TARGET_SHORT_BY_BYTES with TARGET_MMU_TRAPS.
13575 (arm.md): Replace TARGET_SHORT_BY_BYTES with TARGET_MMU_TRAPS.
13577 Sun Nov 21 17:11:13 1999 Geoffrey Keating <geoffk@cygnus.com>
13579 * varasm.c (output_constructor): Solve problem with long long
13580 bitfields, even on BYTES_BIG_ENDIAN machines (testcase 991118-1).
13582 Fri Nov 19 05:48:45 CET 1999 Jan Hubicka <hubicka@freesoft.cz>
13584 * global.c (allocno): New structure and static variable.
13585 (allocno_reg): Remove, all references replaced by allocno.
13586 (allocno_size): Likewise.
13587 (hard_reg_conflicts): Likewise.
13588 (hard_reg_preferences): Likewise.
13589 (hard_reg_copy_preferences): Likewise.
13590 (hard_reg_full_preferences): Likewise.
13591 (regs_someone_prefers): Likewise.
13592 (allocno_calls_crossed): Likewise.
13593 (allocno_n_refs): Likewise.
13594 (allocno_live_length): Likewise.
13595 (find_reg): Rename ALLOCNO to NUM.
13597 * regclass.c (may_move_in_cost): Rename from may_move_cost, all
13598 references updated.
13599 (may_move_out_cost): New variable.
13600 (init_reg_sets_1): Initialize may_move_out_cost.
13601 (record_reg_classes): Use may_move_out_cost.
13603 * regclass.c (dump_regclass): New function.
13604 (regclass): New parameter DUMP, call DUMP_REGCLASS.
13605 * toplev.c (rest_of_compilation): Open lreg dump file before regclass,
13606 pass rtl_dump_file to regclass.
13607 * rtl.h (regclass): Update prototype.
13609 Fri Nov 19 06:32:19 CET 1999 Jan Hubicka <hubicka@freesoft.cz>
13611 * i386.md (neg, not and abs patterns): Revmap to use
13612 ix86_expand_unary_operator and ix86_unary_operator_ok.
13613 (add?f and sub?f expanders): Force operand 1 to register.
13614 * i386.c (ix86_expand_unary_operator): Rewrite.
13615 (ix86_unary_operator_ok): Ensure that memory operands
13617 (ix86_binary_operator_ok): Do not allow operand 1 to
13618 come into memory and operand 0 not.
13619 (ix86_expand_binary_operator): Ensure that
13620 src1 is not non-matching memory.
13622 * i386.md (negs?2): Rewrite to expanders, new patterns and splitters
13623 to support integer registers and memory.
13624 (abss?2_integer): Likewise.
13626 * i386.h (enum reg_class): Add FLOAT_INT_REGS.
13627 (REG_CLASS_NAMES): Likewise.
13628 (REG_CLASS_CONTENTS): Define FLOAT_INT_REGS as union of FLOAT_REGS
13630 * i386.md (pushsf): Do not preferre FLOAT_REGS over GENERAL_REGS.
13631 (movsf): Likewise; unify 4th and 5th alternative.
13632 (pushdf): Likewise.
13633 (movdf_1): Likewise; rename to movdf_integer.
13634 (pushxf): Likewise; rename to pushxf_integer; fix output template;
13635 remove redundant splitter.
13636 (movxf_1): Likewise; rename to movxf_integer; fix splitter's condition.
13637 (movdf_nointeger): New.
13638 (movxf_nointeger): New.
13639 (pushxf_nointeger): New.
13641 * i386.md (extend?f?f): Split to expander and pattern, refuse two
13642 memory operands in patterns.
13643 (fop*): Refuse two memory operands.
13645 * i386.md (ashrsi3_31): Allow cltd when optimizing for size even
13646 on !TARGET_USE_CLTD CPUs.
13648 Fri Nov 19 10:41:15 GMT 1999 Nathan Sidwell <nathan@acm.org>
13650 * extend.texi: Document C++ restricted pointers and references.
13652 1999-11-19 Bernd Schmidt <bernds@cygnus.co.uk>
13654 * cse.c (addr_affects_sp): No longer conditional on AUTO_INC_DEC.
13655 (invalidate_skipped_set): Call it unconditionally.
13656 (cse_set_around_loop): Likewise.
13658 Thu Nov 18 17:29:34 MST 1999 Diego Novillo <dnovillo@cygnus.com>
13660 * rtl.texi (mem): Add documentation for alias-set argument
13663 Fri Nov 18 13:39:22 CET 1999 Jan Hubicka <hubicka@freesoft.cz>
13665 * i386.h (struct_processor_costs): New fields int_load, int_store,
13666 fp_move, fp_load and fp_store
13667 (REGISTER_MOVE_COST): Fix comment, calculate exactly the cost of
13669 (MEMORY_MOVE_COST): New macro.
13670 * i386.c (386_cost): Define new fields.
13671 (i486_cost): Likewise.
13672 (pentium_cost): Likewise.
13673 (pentiumpro_cost): Likewise.
13674 (k6_cost): Likewise.
13676 Fri Nov 19 11:11:55 1999 Greg McGary <gkm@gnu.org>
13677 Geoffrey Keating <geoffk@cygnus.com>
13679 * config/m68k/m68kelf.h: Suppress '/* within comment' warning.
13681 * config/m68k/m68k.h (MASK_PCREL): Don't use same value as
13684 * config/m68k/m68k.h (MASK_NO_STRICT_ALIGNMENT): New macro.
13685 (TARGET_STRICT_ALIGNMENT): New macro.
13686 (TARGET_SWITCHES): Add "strict-align" and "no-strict-align".
13687 (STRICT_ALIGNMENT): Depend on TARGET_STRICT_ALIGNMENT.
13688 * invoke.texi (M680x0 Options): Document -mstrict-align.
13690 Thu Nov 18 11:10:03 1999 Jan Hubicka <hubicka@freesoft.cz>
13691 Richard Henderson <rth@cygnus.com>
13693 * i386-protos.h (split_xf, ix86_split_movdi): Remove.
13694 (ix86_split_long_move): Declare.
13695 * i386.c (split_xf, ix86_split_movdi): Remove.
13696 (ix86_split_to_parts, ix86_split_long_move): New.
13697 * i386.md (dimode move splitters): Use ix86_split_long_move.
13698 (dfmode move splitters): Likewise.
13699 (xfmode move splitters): Likewise.
13700 (movsf_1): Allow F->r.
13701 (movdf_1, movxf_1): Allow F->ro.
13703 1999-11-17 Mark Mitchell <mark@codesourcery.com>
13705 * except.h (struct eh_entry): Add goto_entry_p.
13706 (eh_region_from_symbol): Remove prototype.
13707 * except.c (find_func_region_from_symbol): New function.
13708 (emit_cleanup_handler): Likewise.
13709 (eh_region_from_symbol): Make it static.
13710 (add_new_handler): Verify the argument.
13711 (find_func_region): Update comment.
13712 (expand_eh_region_end): Expand handlers here, rater than waiting
13713 until expand_leftover_cleanups or start_all_catch.
13714 (expand_leftover_cleanups): Don't expand here.
13715 (expand_start_all_catch): Or here.
13716 (expand_rethrow): Check the return value from find_func_region.
13717 * function.c (expand_function_end): Emit the catch_clauses.
13719 1999-11-18 Gavin Romig-Koch <gavin@cygnus.com>
13721 * integrate.c (expand_inline_function): Add necessary check for NULL.
13723 1999-11-18 Nick Clifton <nickc@cygnus.com>
13725 * toplev.c (main): Correctly detect an unrecognised option.
13727 * cppinit.c (cpp_handle_option): Do not claim to have consumed
13728 a -f option if it has not been recognised.
13730 Thu Nov 18 00:59:11 1999 Michael Gschwind <mikeg@alagoas.watson.ibm.com>
13732 * basic-block.h (update_life_extent): Remove trailing comma on
13733 enumeration type list.
13735 1999-11-18 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
13737 * varasm.c (output_constructor) Solved problem with long long
13738 bitfields. Corrected calculating this_time and shift. Also
13739 corrected calculating mask when BITS_PER_UNIT == 32 (c4x).
13741 Wed Nov 17 23:46:14 1999 Jeffrey A Law (law@cygnus.com)
13743 * flow.c (split_edge): Take looping structure into account when
13744 determining where to put the new block note.
13746 Wed Nov 17 20:42:43 1999 Jeff Holcomb <jeffh@cygnus.com>
13748 * Makefile.in (ggc-none.o): Provide host specific version if
13751 Wed Nov 17 16:51:23 1999 Richard Henderson <rth@cygnus.com>
13753 * cse.c (delete_trivially_dead_insns): Identify no-op insns
13754 containing subregs too.
13756 Wed Nov 17 17:39:48 MST 1999 Diego Novillo <dnovillo@cygnus.com>
13758 * invoke.texi: Add documentation for -muninit-const-in-rodata.
13759 * config/mips/mips.h (MASK_UNINIT_CONST_IN_RODATA): Define.
13760 (TARGET_UNINIT_CONST_IN_RODATA): Define.
13761 (text_section): Add switches -munint-const-in-rodata and
13762 -mno-uninit-const-in-rodata.
13763 (ASM_OUTPUT_COMMON): Remove.
13764 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define. Check if uninitialized
13765 const objects should be placed in read-only data. Otherwise declare
13768 Wed Nov 17 16:38:32 1999 Richard Henderson <rth@cygnus.com>
13770 * jump.c (jump_optimize_1): Revert last change.
13772 Wed Nov 17 15:18:30 1999 Richard Henderson <rth@cygnus.com>
13774 * jump.c (jump_optimize_1): Don't try to duplicate the loop exit
13775 test if optimizing for size.
13777 1999-11-17 Mark Mitchell <mark@codesourcery.com>
13779 * Makefile.in (toplev.o): Depend on except.h.
13780 (dwarf2out.o,loop.o,flow.o,haifa-sched.o): Likewise.
13782 Mon Nov 15 22:45:39 CET 1999 Jan Hubicka <hubicka@freesoft.cz>
13784 * i386.md (divmodsi4): Rewrite to expander.
13785 (*divmodsi4_nocltd): New.
13786 (*divmodsi4_cltd): New.
13787 (divmodsi4 splitter): Handle the case when input comes in edx.
13788 (udivmodhi4): Do not use constraints in exander.
13789 (ashrsi3_31): Conditionize by TARGET_USE_CLTD.
13791 1999-11-17 Jason Merrill <jason@yorick.cygnus.com>
13793 * dwarf2out.c (push_decl_scope): Still use decl_scope_depth - 1
13794 for the common case.
13796 1999-11-16 Jakub Jelinek <jakub@redhat.com>
13798 * explow.c (hard_function_value): Add outgoing argument.
13799 * expr.h (hard_function_value): Declare it.
13800 * calls.c (expand_call, emit_library_call_value): Update callers.
13801 * function.c (aggregate_value_p): Ditto.
13802 (diddle_return_value): Must look at the outgoing registers
13803 on archs with register windows.
13805 Mon Nov 15 20:46:45 1999 Richard Henderson <rth@cygnus.com>
13807 * alpha.c (alpha_build_va_list): Use make_lang_type and
13808 initialize TYPE_NAME for the va_list record.
13810 * flow.c (calculate_global_regs_live): Zero bb->aux to begin.
13812 * ggc-common.c (ggc_print_statistics): Cast size_t to unsigned long
13814 * ggc.h (struct ggc_statistics): Rearrange elements for better
13815 packing on 64-bit hosts.
13816 * lcm.c (compute_laterin): Store a size_t not an int in bb->aux.
13817 (compute_nearerout): Likewise.
13819 Tue Nov 16 14:37:52 1999 Geoffrey Keating <geoffk@cygnus.com>
13821 * config/rs6000/rs6000.c (first_reg_to_save): Save
13822 PIC_OFFSET_TABLE_REGNUM when -fpic even though it is fixed.
13824 1999-11-15 Jason Merrill <jason@casey.cygnus.com>
13826 * dwarf2out.c (scope_die_for): Don't rely on the decl_scope_table
13827 notion of nesting to find the DIE for a type or function.
13828 DIEs can go in limbo even if we got a context_die.
13829 (push_decl_scope): Our context doesn't need to be in decl_scope_table.
13830 (gen_struct_or_union_type_die): Don't use TREE_PERMANENT to test
13832 (gen_decl_die): Ignore NAMESPACE_DECLs for now.
13833 (gen_type_die): Writing out the context doesn't cause member class
13834 template instantiations to be written out as well.
13836 Mon Nov 15 15:33:18 1999 Richard Henderson <rth@cygnus.com>
13838 * rs6000.h (ASM_OUTPUT_DEF): New.
13839 Based on proposed addition from David Edelsohn.
13841 1999-11-15 Robert Lipe <RobertLipe@usa.net>
13842 Bruce Korb <autogen@linuxbox.com>
13844 * fixinc/inclhack.def
13845 (AAB_svr4_replace_byteorder): added. Takes advantage of GCC features
13846 (unixware7_byteorder_fix): added. Removes conflicts for new defs
13848 (svr5_mach_defines): added. Like svr4_mach_defines, with new syntax
13849 (svr4_endian): enabled with SVR5
13850 (svr4_mkdev): simplified syntax and enabled with SVR5
13852 Sun Nov 14 18:49:37 1999 David O'Brien <obrien@FreeBSD.org>
13854 * configure.in: Handle libgcc2 threads support on FreeBSD platforms.
13855 * configure: Rebuilt.
13856 * config/t-freebsd-thread: New file.
13858 Sun Nov 14 23:11:05 1999 Jeffrey A Law (law@cygnus.com)
13860 * i386.c (ix86_decompose_address): Verify the base is a REG
13861 before trying to examine its register number.
13863 * basic-block.h: Remove all #defines and prototypes related to
13865 (free_bb_mem, compute_preds_succs): Remove prototype.
13866 * rtl.h (free_bb_mem): Remove prototype.
13867 * flow.c (alloc_int_list_node); Remove function.
13868 (add_inst_list_node, free_int_list, add_pred_succ): Likewise.
13869 (compute_preds_succs, free_bb_mem): Likewise.
13870 * gcse.c (gcse_main): Do not call free_bb_mem anymore.
13871 * toplev.c (rest_of_compilation): Likewise.
13872 * haifa-sched.c (build_control_flow): Use flow generated edge
13873 list to build the haifa specific edge list.
13874 (find_rgns): Use new CFG data structures instead of pred/succ lists.
13875 (schedule_insns): Do not build pred/succ lists anymore. Instead
13876 build the edge table.
13878 * basic-block.h (dump_bb_data): Remove declaration.
13879 * flow.c (dump_bb_data): Remove function.
13880 * sbitmap.c (sbitmap_intersect_of_predsucc): Delete function.
13881 (sbitmap_union_of_predsucc): Likewise.
13883 * gcse.c (delete_null_pointer_checks_1): Kill unused s_preds
13884 argument. All callers changed.
13885 (delete_null_pointer_checks_1): No longer need to compute the
13888 * gcse.c (pre_expr_reaches_here_p): Kill CHECK_PRE_COM argument.
13889 All callers changed.
13890 (pre_expr_reaches_here_p_work): Likewise.
13891 (pre_edge_insert): No longer call pre_expr_reaches_here_p.
13892 * lcm.c (compute_laterin): Fix initialization of LATER.
13893 (compute_nearerout): Similarly for NEARER.
13895 Sun Nov 14 12:41:57 1999 Bernd Schmidt <bernds@cygnus.co.uk>
13897 * cse.c (set_nonvarying_address_components): Delete unused function.
13898 (refers_to_p): Likewise.
13900 Fri Nov 12 20:53:22 1999 Jeffrey A Law (law@cygnus.com)
13902 * function.c (diddle_return_value): Set REG_FUNCTION_VALUE_P as
13905 Sat Nov 13 16:20:09 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
13907 * defaults.h (ASM_OUTPUT_ALTERNATE_LABEL_NAME): Wrap macro
13908 definition in do while (0).
13910 Fri Nov 12 16:26:25 1999 Jim Wilson <wilson@cygnus.com>
13912 * stmt.c (pushcase, pushcase_range): Partially revert Oct 28 change.
13914 Fri Nov 12 12:43:49 1999 Richard Henderson <rth@cygnus.com>
13916 * unroll.c (unroll_loop): Make temp an unsigned HOST_WIDE_INT.
13918 Fri Nov 12 15:14:19 1999 Vladimir Makarov <vmakarov@tofu.to.cygnus.com>
13920 * i960.h (CAN_DEBUG_WITHOUT_FP): Don't define it.
13921 (FRAME_POINTER_REQUIRED): Don't worry about nonlocal goto.
13922 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
13923 (INITIAL_FRAME_POINTER_OFFSET): Remove it.
13925 * i960.c (i960_function_prologue): Don't allocate space for g8-g11
13926 saved on the stack. Output more accurate stack frame statistics
13927 into assembler file.
13929 1999-11-12 11:47 -0800 Zack Weinberg <zack@bitmover.com>
13931 * genextract.c (record_insn_name): New function.
13932 (get_insn_name): No longer a stub.
13933 (main): Call record_insn_name for each insn. After each label
13934 written, print the insn name in a comment.
13936 Fri Nov 12 13:45:02 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13938 * output.h (const_section, init_section, fini_section): Add
13941 * alpha/elf.h (const_section): Delete declaration.
13943 * svr4.h (const_section): Likewise.
13945 Fri Nov 12 08:54:22 1999 Mark Mitchell <mark@codesourcery.com>
13947 * tree.h (SAVE_EXPR_PERSISTENT_P): New macro.
13948 * tree.c (array_type_nelts): Don't handle SAVE_EXPRs specially.
13949 (unsave_expr_now): Don't unsave SAVE_EXPR_PERSISTENT_P
13951 * stor-layout.c (variable_size): Set SAVE_EXPR_PERSISTENT_P on
13952 variable-sized array bounds.
13954 Fri Nov 12 08:04:45 1999 Catherine Moore <clm@cygnus.com>
13956 * defaults.h (ASM_OUTPUT_ALTERNATE_LABEL_NAME): Use
13959 Fri Nov 12 13:31:54 1999 Bernd Schmidt <bernds@cygnus.co.uk>
13961 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Treat QImode
13962 addresses the same way GO_IF_LEGITIMATE_INDEX does.
13964 Fri Nov 12 12:36:04 1999 Bernd Schmidt <bernds@cygnus.co.uk>
13966 * cse.c (hash_arg_in_struct): Delete.
13967 (struct table_elt): Delete elt in_struct.
13968 (struct set): Delete elt src_in_struct.
13969 (merge_equiv_classes): Don't set either hash_arg_in_struct or
13970 the corresponding in_struct elts.
13971 (canon_hash): Likewise.
13972 (safe_hash): Likewise.
13973 (find_best_addr): Likewise.
13974 (record_jump_cond): Likewise.
13975 (cse_insn): Likewise.
13977 Thu Nov 11 19:45:24 1999 Jim Wilson <wilson@cygnus.com>
13979 * loop.c (invariant_p, case MEM): Put MEM_VOLATILE_P check back.
13981 * dbxout.c (dbxout_type, case INTEGER_TYPE): Handle too large
13984 Thu Nov 11 18:54:24 1999 Jeffrey A Law (law@cygnus.com)
13986 * function.c (diddle_return_value): Put back check that the DECL_RTL
13987 for the function is a register.
13989 * function.c (diddle_return_value): Use hard_function_value to
13990 get an rtx suitable for use in the USE/CLOBBER insn.
13992 * global.c (global_conflicts): Update comments.
13993 (record_conflicts): No need to record conflicts between pseudos here.
13995 1999-11-11 Bruce Korb <autogen@linuxbox.com>
13997 * fixinc/fixincl.c: Added verbose levels for status messages
13999 Thu Nov 11 13:23:04 1999 Bernd Schmidt <bernds@cygnus.co.uk>
14001 * jump.c (jump_optimize_1): Avoid passing an rtx that is not an
14002 operand as argument to expand_and or expand_binop.
14004 Thu Nov 11 02:21:16 1999 Rodney Brown <RodneyBrown@pmsc.com>
14006 * xcoffout.c (xcoffout_source_file): Change ggc_add_root to
14007 gcc_add_string_root.
14009 Wed Nov 10 21:24:19 1999 Jason Eckhardt <jle@cygnus.com>
14011 * config/pa/pa.h (MASK_RETURN_ADDR): Change 0xfffffffc to -4.
14013 Wed Nov 10 15:56:16 1999 Jeffrey A Law (law@cygnus.com)
14015 * flow.c (compute_flow_dominators): Initially put all blocks on
14017 * lcm.c (compute_antinout_edge, compute_available): Similarly.
14018 * gcse.c (compute_cprop_avinout): Remove.
14019 (compute_cprop_data): Use compute_available.
14020 (delete_null_pointer_checks_1): Use compute_available.
14022 * basic-block.h (compute_available): Returns a void now.
14023 * gcse.c (one_classic_gcse_pass): Do not expect compute_available
14024 to return a value anymore.
14025 * lcm.c (compute_available, compute_antinout_edge): Revamp to use
14026 worklists. Fix boundary cases. Compute maximal solutions.
14027 (compute_laterin, compute_nearerout): Similarly.
14029 * dwarf2out.c (add_AT_location_description): Allow
14030 (mem (plus (pseudo) (...)) too.
14032 Wed Nov 10 10:52:42 1999 Tom Tromey <tromey@cygnus.com>
14034 * gcc.c (do_spec_1): Support text between `%u' and `%O'.
14036 Wed Nov 10 12:43:21 1999 Philippe De Muyter <phdm@macqel.be>
14037 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14039 * cppinit.c: Test `GCC_VERSION', not `HAVE_GCC_VERSION'.
14041 * gansidecl.h: Likewise.
14047 * toplev.h: Likewise.
14049 * tree.c: Likewise.
14051 * tree.h: Likewise.
14053 * varray.c: Likewise.
14055 * varray.h: Likewise.
14057 Wed Nov 10 10:57:22 1999 Clinton Popetz <cpopetz@cygnus.com>
14059 * gcov.c (struct arcdata): Add hits and total, remove prob.
14060 (output_branch_counts): New.
14061 (process_args): Set output_branch_counts if -c.
14062 (calculate_branch_probs): Store hits and total instead of
14064 (output_data): Emit counts if output_branch_counts is true.
14065 * gcov.texi (Invoking Gcov): Document -c switch..
14067 Wed Nov 10 01:10:41 1999 Philippe De Muyter <phdm@macqel.be>
14069 * genoutput.c (output_insn_data): Cast `INSN_OUTPUT_FORMAT_MULTI' and
14070 `INSN_OUTPUT_FORMAT_FUNCTION' to `PTR'-type.
14072 Wed Nov 10 00:51:41 1999 Hans-Peter Nilsson <hp@axis.se>
14074 * invoke.texi (C Dialect Options): Add missing builtins from
14075 c-common.c to list.
14076 * extend.texi (Other Builtins): Copy to this list.
14078 Wed Nov 10 04:58:09 1999 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
14080 * Makefile.in (recog.o): Use BASIC_BLOCK_H macro.
14081 (print-rtl.o, $(HOST_PREFIX_1)print-rtl.o): Likewise. Remove
14082 redundant bitmap.h.
14084 Wed Nov 10 00:02:53 1999 Jeffrey A Law (law@cygnus.com)
14086 * flow.c (compute_flow_dominators): No longer treat basic block 0
14087 or (n_basic_blocks - 1) specially. Clear the AUX field before
14088 starting computation of doms/pdoms. Fix initial state for pdoms.
14090 Wed Nov 10 03:58:08 1999 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
14092 * Makefile.in ($(HOST_PREFIX_1)rtl.o): Update dependencies to
14093 match rtl.o's: added ggc.h and toplev.h
14094 ($(HOST_PREFIX_1)print-rtl.o): Likewise: added system.h.
14095 ($(HOST_PREFIX_1)rtlanal.o): Likewise: added system.h.
14096 ($(HOST_PREFIX_1)obstack.o): Likewise: added $(CONFIG_H).
14098 Tue Nov 9 10:30:08 1999 Tom Tromey <tromey@cygnus.com>
14100 * config/i386/xm-djgpp.h (HAVE_DOS_BASED_FILE_SYSTEM): Renamed
14101 from HAVE_DOS_BASED_FILESYSTEM.
14102 * gcc.c (find_a_file): Use HAVE_DOS_BASED_FILE_SYSTEM, not
14103 HAVE_DOS_BASED_FILESYSTEM.
14105 (split_directories): Only special-case DOS file names if
14106 HAVE_DOS_BASED_FILE_SYSTEM is defined. Use IS_DIR_SEPARATOR
14107 instead of explicit tests. Conditionalize on !VMS.
14108 (make_relative_prefix): Use IS_DIR_SEPARATOR instead of explicit
14109 tests. Conditionalize on !VMS.
14110 (process_command): Only use make_relative_prefix if !VMS.
14111 (free_split_directories): Conditionalize on !VMS.
14112 (DIR_UP): Conditionalize on !VMS.
14114 Wed Jun 9 16:57:11 1999 Mumit Khan <khan@xraylith.wisc.edu>
14116 * gcc.c (STANDARD_BINDIR_PREFIX): Provide default.
14118 Fri Feb 5 14:22:01 1999 Mumit Khan <khan@xraylith.wisc.edu>
14120 * gcc.c (make_relative_prefix): Handle the HAVE_EXECUTABLE_SUFFIX
14123 Mon Nov 8 14:16:57 1999 Michael Meissner <meissner@cygnus.com>
14125 * invoke.texi (Environment Variables): Document relative path
14127 * gcc.c (DIR_UP): If not defined, define as "..".
14128 (standard_bindir_prefix): New static, holds target location to
14130 (split_directories): New function to split a filename into
14131 component directories.
14132 (free_split_directories): New function, release memory allocated
14133 by split_directories.
14134 (make_relative_prefix): New function, make a relative pathname if
14135 the compiler is not in the expected location.
14136 (process_command): If GCC_EXEC_PREFIX was not specified, see if we
14137 can figure out an appropriate prefix from argv[0].
14138 * Makefile.in (DRIVER_DEFINES): Use unlibsubdir in definition of
14139 STANDARD_STARTFILE_PREFIX and TOOLDIR_BASE_PREFIX. Define
14140 STANDARD_BINDIR_PREFIX.
14142 Wed Nov 10 11:47:54 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14144 * config/c4x/c4x-protos.h: New file. Prototypes for functions defined
14146 * config/c4x/c4x.h: Moved prototypes to c4x.h.
14147 * config/c4x/c4x.c (c4x_preferred_reload_class, c4x_limit_reload_class,
14148 c4x_secondary_memory_needed) Delete.
14149 (fp_zero_operand): Add mode argument.
14151 Thu Nov 4 15:52:35 1999 Andrew Haley <aph@cygnus.com>
14153 * reload1.c (reload_reg_free_for_value_p): Don't use a register
14154 that is in reload_reg_used.
14156 Tue Nov 9 16:43:00 1999 Nick Clifton <nickc@cygnus.com>
14158 * config/arm/arm-protos.h: New file: Prototypes for functions
14159 defined in arm.c and pe.c.
14160 * config/arm/arm.h: Fix compile time warnings.
14161 * config/arm/arm.c: Fix compile time warnings.
14162 * config/arm/pe.h: Fix compile time warnings.
14163 * config/arm/aout.h: Fix compile time warnings.
14165 Tue Nov 9 14:55:44 1999 Nick Clifton <nickc@cygnus.com>
14167 * config/m32r/m32r-protos.h: New file: Prototypes for functions
14170 * config/m32r/m32r.h: Move prototypes to m32r-protos.h
14171 Add support for subtargets.
14172 Add prototypes for new predicates.
14173 Add scheduling macros.
14175 * config/m32r/m32r.c: Fix compile time warnings.
14176 (int8_operand): New predicate function.
14177 (reg_or_cmp_int16_operand): New predicate function.
14178 (extend_operand): New predicate function.
14179 (m32r_adjust_code): New scheduling function.
14180 (m32r_adjust_priorty): New scheduling function.
14181 (m32r_sched_init): New scheduling function.
14182 (m32r_sched_reorder): New scheduling function.
14183 (m32r_sched_variable_issue): New scheduling function.
14184 (direct_return): New codegen function.
14185 (m32r_not_same_reg): New rtl testsing function.
14187 * config/m32r/m32r.md: Fix compile time warnings.
14188 Add support for pre decrement and post increment memory
14190 Add S<cc> patterns.
14193 Mon Nov 8 22:20:13 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
14195 * global.c (EXECUTE_IF_CONFLICT): Don't define.
14196 (prune_preferences): Use EXECUTE_IF_SET_IN_ALLOCNO_SET instead.
14197 (find_reg): Likewise.
14199 Mon Nov 8 13:16:46 1999 Jason Eckhardt <jle@cygnus.com>
14201 * config/pa/pa.md (fmpynfadd,{sgl,dbl} insns): Use %fr0 rather than 0
14202 to avoid assembler errors.
14204 Mon Nov 8 15:38:41 1999 Nick Clifton <nickc@cygnus.com>
14206 * config/v850/v850-protos.h: New file: Prototypes for functions
14208 * config/v850/v850.h: Move prototypes to v850-protos.h
14209 * config/v850/v850.c: Move prototypes to v850-protos.h
14210 * config/v850/v850.md: Fix compile time warnings.
14212 * config/fr30/fr30-protos.h: New file: Prototypes for functions
14214 * config/fr30/fr30.h: Move prototypes to fr30-protos.h
14215 * config/fr30/fr30.c: Fix compile time warnings.
14216 * config/fr30/fr30.md: Fix compile time warnings.
14218 Mon Nov 8 07:25:37 1999 Mark Mitchell <mark@codesourcery.com>
14220 * tree.h (get_containing_scope): Declare it.
14221 * tree.c (get_containing_scope): New fucntion.
14222 (decl_function_context): Use it.
14223 * toplev.c (rest_of_compilation): Use get_containing_scope.
14225 aMon Nov 8 03:03:07 1999 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
14227 * Makefile.in (rtl.o): Depend on toplev.h.
14229 Sun Nov 7 20:55:14 1999 Mark Mitchell <mark@codesourcery.com>
14231 * cse.c (delete_trivially_dead_insns): Replace alloca with
14233 * except.c (update_rethrow_references): Likewise.
14234 (init_eh_nesting_info): Likewise.
14235 * function.c (identify_blocks): Likewise.
14236 * gcse.c (dump_hash_table): Likewise.
14237 * graph.c (print_rtl_graph_with_bb): Likewise.
14238 * loop.c (combine_movables): Likewise.
14239 (move_movables): Likewise.
14240 (count_loop_regs_set): Likewise.
14241 (strength_reduce): Likewise.
14242 * profile.c (compute_branch_probabilities): New function, split
14244 (branch_prob): Here. Replace alloca with xmalloc/xcalloc.
14245 * regclass.c (regclass): Likewise.
14246 * regmove.c (regmove_optimize): Likewise.
14247 * toplev.c (compile_file): Likewise.
14248 (main): Don't mess with the stack rlimit.
14250 Sun Nov 7 19:41:17 1999 Catherine Moore <clm@cygnus.com>
14252 * config/elfos.h (ASM_DECLARE_FUNCTION_NAME): Conditionally define.
14253 (ASM_DECLARE_FUNCTION_SIZE): Conditionally define.
14255 Sun Nov 7 10:23:28 1999 Mark P. Mitchell <mark@codesourcery.com>
14257 * integrate.c (save_for_inline_nocopy): Clear in_nonparm_insns.
14259 Sun Nov 7 02:58:48 1999 Jeffrey A Law (law@cygnus.com)
14261 * global.c (EXECUTE_IF_CONFLICT): Undo Robert's change.
14262 (EXECUTE_IF_SET_IN_ALLOCNO_SET): Put curleys around CODE in
14265 Sat Nov 6 23:48:30 1999 Robert Lipe (robertlipe@usa.net)
14267 * global.c (EXECUTE_IF_CONFLICT): Correct quoting typo.
14269 Sat Nov 6 17:34:39 1999 Jeffrey A Law (law@cygnus.com)
14271 * gcse.c (post_dominators): Kill.
14272 (alloc_code_hoist_mem, free_code_hoist_mem); Kill post_dominators.
14273 (compute_code_hoist_data): Use compute_flow_dominators. Do not
14274 pass in a pdom array since we do not need pdoms.
14275 * haifa-sched.c (schedule_insns): Similarly.
14276 * flow.c (compute_dominators): Remove dead function.
14277 (compute_flow_dominators): Do not compute doms or pdoms if the
14278 caller does not request them. Split up loop to build doms and
14279 pdoms. Use a worklist to compute doms and pdoms.
14280 * basic-block.h (compute_dominators): Remove prototype.
14282 Sat Nov 6 11:38:39 1999 Richard Henderson <rth@cygnus.com>
14284 * haifa-sched.c (struct haifa_insn_data, h_i_d): New.
14285 (insn_luid, insn_priority, insn_costs, insn_units): Remove.
14286 (insn_reg_weight, insn_depend, insn_dep_count): Remove.
14287 (insn_blockage, insn_ref_count, line_note, insn_tick): Remove.
14288 (cant_move, fed_by_spec_load, is_load_insn): Remove.
14289 (schedule_region): Remove unused variable.
14290 (schedule_insns): Allocate h_i_d, and not all the separate arrays.
14292 Sat Nov 6 10:00:34 1999 Mark Mitchell <mark@codesourcery.com>
14294 * local-alloc.c (local_alloc): Use xmalloc/xcalloc, not alloca.
14295 (update_equiv_regs): Likewise.
14296 (block_alloc): Likewise.
14297 * reg-stack.c (reg_to_stack): Likewise.
14298 (convert_regs_2): Likewise.
14299 * reload1.c (reload_as_needed): Likewise.
14301 Sat Nov 6 09:57:59 1999 Mark Mitchell <mark@codesourcery.com>
14303 * Makefile.in (dbxout.o): Depend on ggc.h.
14304 (dwarf2out.o): Likewise.
14305 (xcoffout.o): Likewise.
14306 * dbxout.c: Include ggc.h.
14307 (dbxout_init): Register lastfile as a root.
14308 * dwarf2out.c: Include ggc.h.
14309 (dwarf2out_line): Register lastfile as a root.
14310 * xcoffout.c: Include ggc.h.
14311 (xcoffout_source_line): Register xcoff_lastfile as a root.
14313 Sat Nov 6 09:52:09 1999 Richard Henderson <rth@cygnus.com>
14315 * i386.md (movdf_1, movxf_1): Earlyclobber general regs destination.
14317 Sat Nov 6 07:48:59 1999 Catherine Moore <clm@cygnus.com>
14319 * config/svr4.h (ASM_DECLARE_FUNCTION): Check if already
14321 (ASM_DECLARE_FUNCTION_SIZE): Likewise.
14323 Fri Nov 5 18:33:39 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
14325 * global.c (EXECUTE_IF_SET_IN_ALLOCNO_SET): New macro.
14326 (EXECUTE_IF_CONFLICT): Likewise.
14327 (ALLOCNO_LIVE_P): Avoid signed division.
14328 (SET_ALLOCNO_LIVE, CLEAR_ALLOCNO_LIVE): Likewise.
14329 (prune_preferences, find_reg): Use EXECUTE_IF_CONFLICT.
14330 (record_one_conflict): Use EXECUTE_IF_SET_IN_ALLOCNO_SET.
14332 Fri Nov 5 12:04:02 1999 Richard Henderson <rth@cygnus.com>
14334 * haifa-sched.c (schedule_block): Don't crash if there's no
14335 next insn for an interblock movement.
14336 (add_branch_dependences): Don't allow clobber insns to move either.
14338 Fri Nov 5 10:18:11 1999 Richard Henderson <rth@cygnus.com>
14340 * i386.c (split_xf): New.
14341 * i386-protos.h: Declare it.
14342 * i386.md (movxf_1): Add general regs alternatives.
14343 (movxf_1+1): New splitter for same.
14345 Fri Nov 5 12:05:52 1999 Nick Clifton <nickc@cygnus.com>
14347 * function.c (purge_addressof_1): Add missing return values.
14349 Fri Nov 5 10:07:25 1999 Nick Clifton <nickc@cygnus.com>
14351 * function.c (is_addressof): New function. Returns true if
14352 the given piece of RTL is an ADDRESSOF.
14353 (purge_addressof_1): Make boolean. Return false if the
14354 ADDRESSOFs could not be purged.
14355 (purge_addressof): If ADDRESSOFs could not be purged from the
14356 notes attached to an insn, remove the offending note(s),
14357 unless they are attached to a libcall.
14359 1999-11-05 Andreas Jaeger <aj@suse.de>
14361 * genoutput.c (null_operand =): Initialize all fields.
14363 * errors.h: Add extern to prototypes.
14365 Fri Nov 5 01:44:09 1999 Jeffrey A Law (law@cygnus.com)
14367 * configure.in (m68k-next-nextstep4): Handle Openstep 4.2.
14368 * configure: Rebuilt.
14370 Fri Nov 5 01:24:37 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
14372 * global.c (CONFLICTP, SET_CONFLICT): Avoid signed division.
14373 (mirror_conflicts): New function.
14374 (global_alloc): Call it.
14375 (expand_preferences): Remove redundant CONFLICTP test.
14376 (find_reg, dump_conflicts): Likewise.
14377 (prune_preferences): Process conflicts one word at a time.
14379 Fri Nov 5 01:05:21 1999 Richard Henderson <rth@cygnus.com>
14381 * global.c (build_insn_chain): Use EXECUTE_IF_SET_IN_BITMAP
14382 instead of an explicit loop.
14384 Thu Nov 4 23:07:14 1999 Jim Wilson <wilson@cygnus.com>
14386 * cse.c (cse_insn): Revert Oct 31 change. When computing src_elt,
14387 if REG_RETVAL check succeeds, then put classp in src_elt.
14389 Thu Nov 4 23:48:14 1999 Jeffrey A Law (law@cygnus.com)
14391 * function.c (pad_to_arg_alignment): Only update argument_pad
14392 if the argument's alignment is greater than STACK_BOUNDARY.
14394 Thu Nov 4 16:44:53 1999 Richard Henderson <rth@cygnus.com>
14396 * bitmap.h (BITMAP_XFREE): New.
14397 * flow.c (life_analysis): Use it.
14398 (life_analysis_1): Free blocks.
14400 * combine.c (undo_commit): New.
14401 (try_combine): Use it. Don't zap undobuf.undos.
14402 (combine_instructions): Don't zap undobuf.undos; free the
14403 undobuf.frees list.
14405 * local-alloc.c (local_alloc): Free qty_phys_num_sugg.
14407 * stmt.c (cost_table_): New.
14408 (estimate_case_costs): Use it instead of xmalloc.
14410 * toplev.c (compile_file): Reuse dumpname memory instead
14413 Thu Nov 4 16:36:44 1999 Richard Henderson <rth@cygnus.com>
14415 * reg-stack.c (convert_regs_1): Initialize target_stack->top
14416 after verifying an EH edge.
14418 * haifa-sched.c (init_rgn_data_dependences): Correctly
14419 size bb_pending_lists_length when zeroing.
14421 Thu Nov 4 16:36:36 1999 Richard Henderson <rth@cygnus.com>
14423 * function.c (diddle_return_value): New.
14424 (expand_function_end): Use it.
14425 * stmt.c (expand_null_return): Likewise.
14426 (expand_value_return): Likewise.
14428 * reg-stack.c (subst_stack_regs_pat): Handle clobbers at top-level.
14430 * reload1.c (reload): Don't remove return value clobbers.
14432 Thu Nov 4 13:33:46 1999 Richard Henderson <rth@cygnus.com>
14434 * rtl.c (read_rtx): Use fatal_with_file_and_line not fatal.
14436 Thu Nov 4 12:49:52 1999 Richard Henderson <rth@cygnus.com>
14438 * cse.c (cse_main): Use xmalloc, not alloca.
14439 (cse_basic_block): Likewise.
14440 * local-alloc.c (local_alloc): Likewise.
14442 Thu Nov 4 14:22:12 1999 David Billinghurst <David.Billinghurst@riotinto.com.au>
14443 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
14445 * rtl.c: Include toplev.h.
14446 (fatal): Remove declaration.
14448 Thu Nov 4 06:39:47 1999 Jeffrey A Law (law@cygnus.com)
14450 * haifa-sched.c (schedule_block): Fix thinko.
14452 1999-11-03 James McKelvey <mckelvey@fafnir.com>
14454 * fixinc/fixincl.c(create_file): Allow for systems that do not have
14455 S_IR* defined values
14457 1999-11-03 Philippe De Muyter <phdm@macqel.be>
14459 * fixlib.c (load_file_data): Do not call `realloc' with a NULL pointer;
14460 call `malloc' instead.
14462 Wed Nov 3 23:05:14 1999 Mark Mitchell <mark@codesourcery.com>
14464 * flags.h (flag_renumber_insns): Declare.
14465 * emit-rtl.c (renumber_insns): Check flag_renumber_insns. Print
14467 * rtl.h (renumber_insns): Change prototype.
14468 * toplev.c (flag_renumber_insns): Define.
14469 (rest_of_compilation): Pass rtl_dump_file to flag_renumber_insns.
14471 Wed Nov 3 15:11:27 1999 David S. Miller <davem@redhat.com>
14473 * config/sparc/sparc.md: Remove insn type fpsqrt, add fpsqrts
14474 and fpsqrtd. Use them and create fdiv function unit to more
14475 accurately represent fpu sqrt pipeline semantics on UltraSparc.
14476 * config/sparc/sparc.c: Account for fpsqrt{s,d} changes.
14478 Wed Nov 3 15:11:27 1999 Matteo Frigo <athena@fftw.org>
14480 * config/sparc/sparc.md: Adjust FADD/FMUL result latencies to
14482 * config/sparc/sparc.c (ultra_schedule_insn): Insert launched
14483 insn into ready list, do not use just a raw swap.
14485 Wed Nov 3 14:51:59 1999 Mark P. Mitchell <mark@codesourcery.com>
14487 * rtl.h (renumber_insns): New function.
14488 (remove_unnecessary_notes): Likewise.
14489 * emit-rtl.c (renumber_insns): Define.
14490 (remove_unncessary_notes): Likewise.
14491 * toplev.c (rest_of_compilation): Remove dead code.
14492 Use renumber_insns and remove_unncessary_notes.
14494 * gcse.c (struct null_pointer_info): New type.
14495 (get_bitmap_width): New function.
14496 (current_block): Remove.
14497 (nonnull_local): Likewise.
14498 (nonnull_killed): Likewise.
14499 (invalidate_nonnull_info): Take a null_pointer_info as input.
14500 (delete_null_pointer_checks_1): New function.
14501 (delete_null_pointer_checks): Use it.
14503 * haifa-sched.c (find_rgns): Replace uses of alloca with xmalloc.
14504 (split_edges): Likewise.
14505 (schedule_block): Likewise.
14506 (compute_block_backward_dependencies): Likewise.
14507 (schedule_region): Likewise.
14508 (schedule_insns): Likewise.
14510 Wed Nov 3 15:40:23 1999 Catherine Moore <clm@cygnus.com>
14512 * defaults.h (ASM_OUTPUT_ALTERNATE_LABEL_NAME): Provide default.
14513 * emit-rtl.c (gen_label_rtx): Support LABEL_ALTERNATE_NAME.
14514 * final.c (final_scan_insn): Emit LABEL_ALTERNATE_NAME.
14515 * ggc-common.c (ggc_mark_rtx_children): Mark LABEL_ALTERNATE_NAME.
14516 * jump.c (delete_unreferenced_labels): Don't delete if
14517 LABEL_ALTERNATE_NAME is set.
14518 * print-rtl.c (print_rtx): Dump alternate name.
14519 * rtl.def (CODE_LABEL): Change format to "iuuis00s".
14520 * rtl.h (LABEL_ALTERNATE_NAME): Define.
14521 * rtl.texi (LABEL_ALTERNATE_NAME): Document.
14522 * tm.texi (ASM_OUTPUT_ALTERNATE_LABEL_NAME): Document.
14524 Wed Nov 3 15:39:19 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14526 * fix-header.c (recognized_extern, recognized_function): Constify
14529 * lcm.c (compute_laterin): Remove unused variable `temp_bitmap'.
14530 (pre_edge_lcm): Mark parameter `file' with ATTRIBUTE_UNUSED.
14531 (compute_available): Remove unused variable `last'.
14532 (compute_nearerout): Remove unused variable `temp_bitmap'.
14533 (pre_edge_rev_lcm): Mark parameter `file' with ATTRIBUTE_UNUSED.
14534 Remove unused variable `x'.
14536 * scan.h (recognized_function, recognized_extern): Constify a
14539 * simplify-rtx.c (simplify_rtx): Remove unused variable `new'.
14541 Wed Nov 3 10:40:53 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
14543 * varasm.c (decode_rtx_const): Use XSTR to access the string
14546 Wed Nov 3 10:10:58 1999 Richard Henderson <rth@cygnus.com>
14548 * c-decl.c (duplicate_decls): Copy DECL_MODE too.
14550 Wed Nov 3 12:12:59 1999 Bernd Schmidt <bernds@cygnus.co.uk>
14552 * reload1.c (eliminate_regs_in_insn): If copying insn, also copy notes.
14554 Wed Nov 3 03:26:28 1999 Jeffrey A Law (law@cygnus.com)
14556 * pa.c (ireg_operand): New function.
14557 * pa.h (PREDICATE_CODES): Handle ireg_operand.
14558 * pa.md (parallel_addb, parallel_movb): Use ireg_operand.
14559 Fix out of date comment.
14561 * pa.md (negdi2): Turn into expander + anonymous pattern.
14563 * reload.c (find_reloads): Fix typos in recent change.
14565 * dwarf2out.c: Do not include ctype.h.
14567 Tue Nov 2 21:53:44 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14569 * regclass.c (record_reg_classes): Always use may_move_cost when
14570 seeing how operand fits with various register classes.
14572 Tue Nov 2 15:38:17 1999 Richard Henderson <rth@cygnus.com>
14574 * resource.c: Revert Oct 26 20:42 and Oct 27 00:56 changes.
14575 * toplev.c: Revert Nov 1 13:22 change.
14577 Tue Nov 2 14:21:37 1999 Jason Eckhardt <jle@cygnus.com>
14579 * config/pa/pa.md (height reduction patterns): Add checks for
14580 overlapping operands to avoid semantic-destroying splits for
14581 height reduction patterns.
14583 Tue Nov 2 15:27:31 1999 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
14585 * configure.in (m68k-hp-hpux*, xm_alloca.h): The underscore should
14586 have been an hyphen, fixed.
14587 * configure: Rebuilt.
14589 Tue Nov 2 17:04:36 1999 Nick Clifton <nickc@cygnus.com>
14591 * config/arm/tpe.h: Add prototypes for exported functions.
14592 * config/arm/pe.c: Fix compile time warnings.
14593 * config/arm/semi.h: Fix compile time warnings.
14594 * config/arm/arm.c: Fix compile time warnings.
14595 * config/arm/arm.h: Fix compile time warnings.
14596 * config/arm/arm.md: Fix compile time warnings.
14597 * config/arm/thumb.c: Fix compile time warnings.
14598 * config/arm/thumb.h: Fix compile time warnings.
14599 * config/arm/thumb.md: Fix compile time warnings.
14601 Tue Nov 2 04:10:24 1999 Jan Hubicka <hubicka@freesoft.cz>
14603 * jump.c (jump_optimize_1): Swap the incscc and the conditional mode
14606 * unroll.c (unroll_loop): Remove LOOP notes when loop is
14607 completely unrolled.
14609 Tue Nov 2 16:57:22 1999 Bernd Schmidt <bernds@cygnus.co.uk>
14611 * cse.c (simplify_plus_minus, check_fold_const): Delete declarations.
14613 Tue Nov 2 09:43:00 1999 Catherine Moore <clm@cygnus.com>
14615 * Makefile.in (genattrtab): Don't use (HOST_RTLANAL).
14616 * rtl.h (rtx_equal_p): Move prototype.
14617 * rtl.c (rtx_equal_function_value_matters): Move from
14619 (rtx_equal_p): Likewise.
14620 * rtlanal.c (rtx_equal_function_value_matters): Delete.
14621 (rtx_equal_p): Likewise.
14623 Mon Nov 1 23:21:17 1999 Jason Merrill <jason@yorick.cygnus.com>
14625 * libgcc2.c (__do_global_dtors): Only do EH frame stuff if
14626 ! HAS_INIT_SECTION.
14628 Mon Nov 1 23:37:38 1999 Jeffrey A Law (law@cygnus.com)
14630 * gcc.1 (PA options): Remove obsolete -mshared-libs options.
14632 * pa.h (ADDR_VEC_ALIGN): Define.
14634 * jump.c (jump_optimize_1): Also move LOOP_VTOP and LOOP_CONT
14635 notes when presented with "if (foo) break; end_of_loop" and
14636 the break sequence gets moved out of the loop.
14638 * unroll.c (unroll_loop): Allocate memory for MAP using xcalloc.
14639 Remove explicit zero initializations of entries within MAP.
14641 Mon Nov 1 18:09:14 1999 Richard Henderson <rth@cygnus.com>
14643 * reg-stack.c (convert_regs_1): Handle EH edges specially.
14645 Mon Nov 1 15:41:01 1999 Mark P. Mitchell <mark@codesourcery.com>
14647 * bitmap.h (BITMAP_XMALLOC): New macro.
14648 * flow.c (CLEAN_ALLOCA): Remove.
14649 (delete_unreachable_blocks): Use xmalloc/xcalloc instead of alloca.
14650 (life_analysis): Likewise.
14651 (update_life_info): Don't use CLEAN_ALLOCA.
14652 (life_analysis_1): Use xmalloc/xcalloc instead of alloca.
14653 (calculate_global_regs_live): Likewise.
14654 (print_rtl_with_bb): Likewise.
14655 (verify_flow_info): Likewise.
14656 * global.c (global_alloc): Likewise.
14657 (global_conflicts): Likewise.
14658 * integrate.c (save_for_inline_nocopy): Likewise.
14659 (expand_inline_function): Likewise.
14660 * jump.c (jump_optimize_1): Likewise.
14661 (duplicate_loop_exit_test): Likewise.
14662 (thread_jumps): Likewise.
14663 * loop.c (loop_optimize): Likewise.
14664 (combine_givs): Likewise.
14665 (recombine_givs): Likewise.
14666 * reorg.c (dbr_schedule): Likewise.
14667 * unroll.c (unroll_loop): Likewise.
14669 * combine.c (combine_instructions): Use xmalloc instead of alloca.
14671 Mon Nov 1 13:22:30 1999 Richard Henderson <rth@cygnus.com>
14673 * toplev.c (rest_of_compilation): Don't optimize the CFG
14674 when rebuilding, just before dbr.
14676 Mon Nov 1 14:35:50 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14678 * output.h (assemble_end_function, assemble_destructor,
14679 assemble_constructor, assemble_gc_entry, assemble_global,
14680 assemble_label, output_constant_pool) Constify a char*.
14682 * varasm.c (assemble_destructor, assemble_constructor,
14683 assemble_gc_entry, assemble_end_function, assemble_global,
14684 assemble_label, output_constant_pool): Likewise.
14686 Mon Nov 1 14:22:51 1999 Nick Clifton <nickc@cygnus.com>
14688 * config/arm/thumb.c (thumb_expand_prologue): Add comments
14689 explaining what is goin on in this function.
14691 Mon Nov 1 08:03:15 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14693 * regclass.c (record_reg_classes): In matching case, recompute
14694 costs since the direction of movement is different.
14696 Sun Oct 31 21:59:34 MST 1999 Diego Novillo <dnovillo@cygnus.com>
14698 * resource.c (mark_target_live_regs): For unconditional branches,
14699 the resources found at the branch target should be added to the
14700 resources found so far, not intersected.
14702 Sun Oct 31 15:48:49 1999 Philippe De Muyter <phdm@macqel.be>
14704 * fixinc/fixtests.c, fixinc/fixfixes.c : Keep `#' in first column for
14706 * fixinc/fixincl.c (fcntl.h) : Do not include this file twice.
14707 (sys/mman.h): Include this file only if #HAVE_MMAP.
14708 (run_compiles): Initialize `esac_fmt' with one old KR string, not
14709 with automatically concatenated ANSI strings.
14711 Sun Oct 31 23:57:07 1999 Mark Mitchell <mark@codesourcery.com>
14713 * ggc-page.c (struct page_entry): Remove save_num_free_objects.
14714 (DIV_ROUND_UP): Robustify.
14715 (ggc_recalculate_in_use_p): New function.
14716 (release_pages): Don't inline it.
14717 (ggc_alloc_obj): Don't refuse to allocate objects on pages for
14719 (ggc_pop_context): Use ggc_recalculate_in_use_p.
14720 (clear_marks): Always save in_use_p.
14721 (sweep_pages): Use ggc_recalculate_in_use_p.
14722 (ggc_page_print_statistics): Avoid signed/unsigned comparisons.
14723 Release pages before counting statistics.
14725 Sun Oct 31 23:42:37 1999 Mark Mitchell <mark@codesourcery.com>
14727 * toplev.c (rest_of_compilation): Fix thinko in this change:
14729 Fri Oct 29 15:25:07 1999 Arnaud Charlet <charlet@ACT-Europe.FR>
14731 (rest_of_compilation): If inside an inlined external function,
14732 pretend we are just being declared.
14734 Sun Oct 31 23:03:25 1999 Jeffrey A Law (law@cygnus.com)
14736 * flow.c (calculate_global_regs_live): Fix thinko.
14738 * integrate.c (expand_inline_function): Fix bugs in previous
14739 change from Oct 28, 1999.
14741 Sun Oct 31 20:27:45 1999 Mark Mitchell <mark@codesourcery.com>
14743 * stmt.c (expand_value_return): Fix typo in this change:
14745 Thu Oct 28 18:06:50 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14746 (expand_value_return): Correctly convert VAL when promoting function
14747 return; support RETURN_REG being a PARALLEL.
14749 Sun Oct 31 20:25:42 1999 Mark P. Mitchell <mark@codesourcery.com>
14751 * expr.c (readonly_fields_p): Ignore everything except FIELD_DECLs.
14753 Sun Oct 31 20:42:17 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14755 * hard-reg-set.h (reg_names): Constify a char*.
14757 * regclass.c (reg_names): Likewise.
14759 * regs.h (reg_names): Likewise
14761 * a29k/a29k.c (reg_names): Delete declaration.
14763 * a29k/a29k.h (CONDITIONAL_REGISTER_USAGE): Constify a char*.
14765 * arc/arc.c (arc_save_restore, arc_output_function_prologue,
14766 arc_output_function_epilogue): Likewise.
14768 * elxsi/elxsi.c (reg_names): Likewise.
14770 * gmicro/gmicro.h (FUNCTION_PROLOGUE, FUNCTION_EPILOGUE): Likewise.
14772 * m32r/m32r.c (m32r_output_function_epilogue, emit_cond_move):
14775 * m88k/m88k.c (output_function_profiler): Likewise.
14777 * sparc/sparc.c (sparc_flat_output_function_prologue,
14778 sparc_flat_output_function_epilogue): Likewise.
14780 Sun Oct 31 13:32:15 CET 1999 Marc Lehmann <pcg@goof.com>
14782 * toplev.c (rest_of_compilation): Seperate the setjmp/vfork clobber
14783 warning from -Wuninitialized and put it under -W.
14784 * function.c (uninitialized_vars_warning): Warn only when the
14785 corresponding flag is set.
14787 Sun Oct 31 01:53:30 1999 Jeffrey A Law (law@cygnus.com)
14789 * cse.c (cse_insn): If an insn has only a single set, SRC_EQV
14790 is nonzero and the single set does not have an elt, then assign
14793 * simplify-rtx.c: New file.
14794 * Makefile.in (OBJS): Add simplify-rtx.o
14795 (simplify-rtx.o): Add dependencies.
14796 * rtl.h (simplify_gen_binary, simplify_rtx): Add prototypes.
14797 * cse.c: Use simplify_gen_binary intead of cse_gen_binary.
14798 (cse_gen_binary, simplify_unary_operation): Delete.
14799 (simplify_binary_operation, simplify_plus_minus): Likewise.
14800 (check_fold_consts, simplify_relation_operation): Likewise.
14801 (simplify_ternary_operation): Likewise.
14802 (delete_trivially_dead_insns): Simplify the contents of the
14803 REG_EQUAL note before trying to substitute it into the source
14804 of the reg-reg copy at the end of a libcall sequence.
14806 * combine.c (combine_simplify_rtx): Renamed from simplify_rtx. All
14807 references/callers changed.
14809 * mn10200.c (mn10200_va_arg): Force the return value into a
14812 * fr30.h (EXTRA_CC_NAMES): Remove obsolete macro.
14814 * cccp.c (macroexpand): Avoid out of range accesses for omitted
14817 Sat Oct 30 22:42:50 1999 Stephen L Moshier <moshier@mediaone.net>
14819 * c-lex.c (yylex): Accept 'f' in mantissa of hex float constant.
14821 Sat Oct 30 22:19:26 1999 Jeffrey A Law (law@cygnus.com)
14823 * fold-const.c (fold): Fix thinko when optimizing comparisons
14826 Sat Oct 30 21:32:17 1999 David Starner <dstarner98@aasaa.ofe.org>
14828 * gcc.texi (Passes): Update front-end files to their current
14831 Sat Oct 30 14:41:40 1999 Richard Henderson <rth@cygnus.com>
14833 * alpha.h (SECONDARY_INPUT_RELOAD_CLASS): Call secondary_reload_class.
14834 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
14835 (PREDICATE_CODES): Add addition_operation.
14836 * alpha-protos.h (addition_operation): Declare.
14837 (secondary_reload_class): Likewise.
14838 * alpha.c (addition_operation): New.
14839 (secondary_reload_class): New, from old SECONDARY_INPUT_RELOAD_CLASS.
14840 * alpha.md (adddi3): Turn into expander.
14841 (*lda, *adddi_2): New.
14842 (movsf, movdf patterns): Don't preference integer regs.
14843 (movsi, movdi patterns): Don't preference fp regs.
14845 Sat Oct 30 14:38:22 1999 Richard Henderson <rth@cygnus.com>
14847 * genrecog.c (write_switch): Check for duplicate CODE cases.
14849 Sat Oct 30 14:31:48 1999 Richard Henderson <rth@cygnus.com>
14851 * ggc-common.c: Update pre-function commentary.
14852 * ggc-page.c: Likewise.
14854 (poison_pages): Use memset directly.
14855 (ggc_alloc_obj): Likewise. Use a different pattern than poison_pages.
14856 (ggc_collect): Poison before sweeping.
14857 * ggc-simple.c: Update pre-function commentary.
14858 (ggc_alloc_obj): Poison non-zeroed memory.
14860 Sat Oct 30 14:28:52 1999 Mark Mitchell <mark@codesourcery.com>
14862 * ggc-common.c (ggc_print_statistics): Make arguments to fprintf
14863 match format string, even on 64-bit hosts.
14864 * gcc-page.c (ggc_page_print_statistics): Likewise.
14866 Sat Oct 30 14:38:04 1999 Catherine Moore <clm@cygnus.com>
14868 * config/i386/i386.c (ix86_cpu): Revert last patch.
14869 * config/i386/i386.h (ix86_cpu): Ditto.
14871 Fri Oct 29 17:00:42 1999 Jim Wilson <wilson@cygnus.com>
14873 * stor-layout.c (layout_type): When compute TYPE_SIZE_UNIT from
14874 TYPE_SIZE, convert type of result to sizetype.
14876 Fri Oct 29 14:34:17 1999 Richard Henderson <rth@cygnus.com>
14878 * flow.c (count_or_remove_death_notes): Equate NULL with the
14881 * jump.c, reg-stack.c, toplev.c: Revert Oct 27 change.
14882 * toplev.c (rest_of_compilation): Rebuild CFG immediately before
14885 * i386.c (pic_label_no): Delete.
14886 (ix86_attr_length_default): Don't use single_set to peek
14889 * recog.c (peephole2_optimize): Allow recog_next_insn to index
14890 the first insn after bb->end.
14891 * i386.md (push mem peeps): Scratch is live after evaluation
14893 (cmp mem peep): Similarly.
14895 Fri Oct 29 11:50:11 1999 Catherine Moore <clm@cygnus.com>
14897 * calls.c (emit_library_call_value): Fix declaration of alignment_pad.
14898 * function.c (pad_to_arg_alignment): Add missing braces.
14900 Fri Oct 29 13:53:48 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14902 * alpha/alpha-protos.h (literal_section): Add prototype.
14903 (alpha_need_linkage, alpha_start_function,alpha_end_function):
14906 * alpha/alpha.c (alpha_ra_ever_killed, set_frame_related_p): Add
14908 (alpha_start_function, alpha_end_function, float_strings,
14909 alpha_need_linkage): Constify a char*
14911 * alpha/alpha.h (ASM_OUTPUT_ASCII, ASM_OUTPUT_MI_THUNK): Likewise.
14913 * alpha/alpha32.h (ASM_OUTPUT_MI_THUNK): Likewise.
14915 * alpha/elf.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
14917 * alpha/vms.h (ASM_OUTPUT_SECTION_NAME): Likewise.
14919 Fri Oct 29 13:49:39 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14921 * flow.c (debug_flow_info): Add prototype.
14923 * gcc.c (main): Likewise.
14925 * gcse.c (expr_reaches_here_p_work, pre_expr_reaches_here_p_work):
14928 * reload1.c (failed_reload, set_reload_reg): Likewise.
14930 * mips-tfile.c (main): Likewise.
14931 (pfatal_with_name, fancy_abort, botch, fatal, catch_signal): Mark
14932 with ATTRIBUTE_NORETURN.
14934 Fri Oct 29 18:16:03 1999 Andrew Haley <aph@cygnus.com>
14936 * config/i386/i386.h (ENCODE_SECTION_INFO): Don't do anything if
14937 DECL is not a memory ref.
14939 Fri Oct 29 09:05:34 1999 Catherine Moore <clm@cygnus.com>
14941 * config/i386/i386.h (ix86_cpu): Remove extern attribute.
14942 * config/i386/i386.c (ix86_cpu): Add extern attribute.
14944 Fri Oct 29 16:30:04 1999 Andrew Haley <aph@cygnus.com>
14946 * config/mips/elf.h: remove NAME__MAIN and SYMBOL__MAIN.
14947 * config/mips/elf64.h: ditto.
14949 Fri Oct 29 08:03:57 1999 Catherine Moore <clm@cygnus.com>
14951 * expr.c (emit_push_insn): New argument alignment_pad.
14952 Update all callers. Adjust stack pointer based on alignment pad.
14953 * function.c (pad_to_arg_alignment): New argument alignment_pad.
14954 Update all callers. Track alignment_pad if boundary > PARM_BOUNDARY.
14955 (locate_and_pad_parm): New argument alignment_pad. Update all
14957 * expr.h (emit_push_insn): Update prototype.
14958 (locate_and_pad_parm): Update prototype.
14959 * calls.c (arg_data): Add new field alignment_pad.
14960 (initialize_argument_information): Initialize alignment_pad.
14962 Fri Oct 29 02:51:35 1999 Mark Mitchell <mark@codesourcery.com>
14964 * except.c (free_eh_nesting_info): Free the info itself.
14965 * function.c (free_after_compilation): Don't free NULL.
14966 * gcse.c (alloc_pre_mem): Free the temp_bitmap, too.
14967 (pre_edge_insert): Free inserted.
14968 * stmt.c (free_stmt_status): Don't free NULL.
14970 Fri Oct 29 15:25:07 1999 Arnaud Charlet <charlet@ACT-Europe.FR>
14972 * gcov.c (DIR_SEPARATOR): Provide default.
14973 (output_data): Add test for MS-DOS format absolute filename.
14974 (fancy_abort): Correct program name.
14975 (open_files): Open all files in binary mode.
14976 * libgcc2.c (__bb_exit_func): Likewise.
14978 * profile.c (init_branch_prob): Specify binary when opening files.
14980 * flags.h (flag_unwind_tables): New decl.
14981 * toplev.c (flag_unwind_table): New definition.
14982 (f_options): Add -funwind-tables.
14983 (decode_g_option): Clarify warning when unknown -g option is given.
14984 (rest_of_compilation): If inside an inlined external function,
14985 pretend we are just being declared.
14987 * dwarf2out.c (dwarf2out_do_frame): Check -funwind_tables.
14988 (dwarf2out_frame_finish): Likewise.
14990 Fri Oct 29 07:44:26 1999 Vasco Pedro <vp@di.fct.unl.pt>
14992 * fold-const.c (merge_ranges): If not in0, but in1, handle
14993 upper bounds equal like subset case.
14995 Thu Oct 28 19:22:24 1999 Douglas Rupp <rupp@gnat.com>
14997 * dbxout.c (dbxout_parms): Generate a second stabs line for parameters
14998 passed in a register but moved to the stack.
15000 Thu Oct 28 19:12:57 1999 Sam Tardieu <tardieu@act-europe.fr>
15002 * gcc.c (pass_exit_codes, greatest_status): New variables.
15003 (struct option_map): Add entry for "--pass-exit-codes".
15004 (execute): Update greatest_status if error.
15005 (display_help): Add documentation for -pass-exit-codes.
15006 (process_command): Handle -pass-exit-codes.
15007 (main): Look at pass_exit_codes and greatest_status on call to exit.
15009 Thu Oct 28 18:06:50 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15011 * reload.c (find_reloads): Refine test for no input reload
15012 case to not includes reloads emitted after insn.
15014 * function.c (find_temp_slots_from_address): Handle sum involving
15015 a register that points to a temp slot.
15016 (update_temp_slot_address): Make recursive call if both old and
15017 new are PLUS with a common operand.
15018 * calls.c (expand_call): Mark temp slot for result as having
15021 * rtlanal.c (reg_referenced_p, case IF_THEN_ELSE): New case.
15023 * gcc.c (process_command): Add standard_exec_prefix with "GCC"
15024 component as well as "BINUTILS".
15026 * integrate.h (copy_rtx_and_substitute): New arg, FOR_LHS.
15027 * integrate.c (copy_rtx_and_substitute): Likewise.
15028 (expand_inline_function, integrate_parm_decls, integrate_decl_tree):
15029 All callers changed.
15030 * unroll.c (inital_reg_note_copy, copy_loop_body): Likewise.
15032 * dbxout.c (dbxout_type, case INTEGER_TYPE_NODE): If can use
15033 gdb extensions, write size of type; also be more consistent
15034 in using references when this is a subtype.
15036 * pa.md (extv, extzv, insv): Use define_expand to reject constant
15037 that is out of range.
15039 * loop.c (unknown_constant_address_altered): New variable.
15040 (prescan_loop): Initialize it.
15041 (note_addr_stored): Set it for RTX_UNCHANGING_P MEM.
15042 (invariant_p, case MEM): Remove handling for volatile and readonly;
15043 check new variable if readonly.
15044 (check_dbra_loop): Chdeck unknown_constant_address_altered.
15046 * cse.c (canon_hash, case MEM): Do not record if BLKmode.
15047 (addr_affects_sp_p): Removed from note_mem_written and only
15048 define #ifdef AUTO_INC_DEC.
15050 * alpha.c (input_operand, case ADDRESSOF): Treat as REG.
15052 * regclass.c (record_reg_classes): Properly handle register move
15055 * varasm.c (initializer_constant_valid_p, case MINUS_EXPR):
15056 Don't think valid if both operands are invalid.
15057 (struct constant_descriptor): New field RTL.
15058 (mark_const_hash_entry): Mark it.
15059 (record_constant{,_rtx}): Initialize it.
15060 (output_constant_def): Allocate RTL in permanent obstack and
15062 ({record,compare}_constant_1): Modes must match for
15063 CONSTRUCTOR of ARRAY_TYPE.
15065 * c-common.h (initializer_constant_valid_p): Delete decl from here.
15066 * output.h (initializer_constant_valid_p): Move decl to here.
15067 * c-common.c (initializer_constant_valid_p): Delete function from here.
15068 * varasm.c (initializer_constant_valid_p): Move function to here.
15070 * tree.h (STRIP_SIGN_NOPS): New macro.
15071 * fold-const.c (optimize_minmax_comparison): New function.
15072 (invert_truthvalue, case WITH_RECORD_EXPR): New case.
15073 (fold): Use STRIP_SIGN_NOPS instead of STRIP_TYPE_NOPS.
15074 (fold, case EQ_EXPR): Call optimize_minmax_comparison and add
15075 cases with ABS_EXPR, NEGATE_EXPR, PLUS_EXPR, MINUS_EXPR, and
15076 widening conversions.
15077 (fold, case LE_EXPR): Rework changing unsigned to signed comparisons
15078 to look at size of mode, not precision of type; also add missing cases.
15079 (optimize_bit_field_compare, decode_field_reference): Don't try to
15080 optimize COMPONENT_REF of a PLACEHOLDER_EXPR.
15082 * dwarf2out.c (ctype.h): Include.
15083 (dwarf2out_set_demangle_name_func): New function.
15084 (size_of_line_info): Deleted.
15085 (output_line_info): Compute size of line info table from difference
15087 (base_type_die, add_name_attribute): Call demangle function, if any.
15088 (field_byte_offset): Use bits per word for variable length fields.
15089 (gen_array_type_die): Add array name.
15090 (gen_subprogram_die): Ignore DECL_INLINE if -fno-inline.
15091 (dwarf2out_add_library_unit_info): New function.
15093 * explow.c (set_stack_check_libfunc): New function.
15094 (stack_check_libfunc): New static variable.
15095 (probe_stack_range): Allow front-end to set up a libfunc to call.
15097 * combine.c (simplify_comparison): When making comparison in wider
15098 mode, check for having commuted an AND and a SUBREG.
15099 (contains_muldiv): New function.
15100 (try_combine): Call it when dividing a PARALLEL.
15101 (simplify_rtx, case TRUNCATE): Don't remove for umulsi3_highpart.
15102 (simplify_comparison, case ASHIFTRT): Recognize sign-extension of
15104 (record_value_for_reg): If TEM is a binary operation with two CLOBBERs,
15105 use one of the CLOBBERs instead.
15106 (if_then_else_cond): If comparing against zero, just return thing
15109 * optabs.c (expand_abs): If machine has MAX, ABS (x) is MAX (x, -x).
15110 Don't generate shifts and subtract if have conditional arithmetic.
15112 * rtl.h (delete_barrier): New declaration.
15113 * jump.c (jump_optimize): Set up to handle conditional call.
15114 In conditional arithmetic case, handle CALL_INSN followed by a BARRIER.
15115 (delete_barrier): New function.
15117 * rtl.c (read_rtx): Call fatal if bad RTL code; check for bad mode.
15119 * recog.c (nonmemory_operand): Accept ADDRESSOF.
15121 * tree.c (build_type_attribute_variant): Push to obstack of
15122 ttype around type_hash_canon call.
15124 * expr.c (placeholder_list): Move decl to file scope.
15125 (expand_expr): Don't force access to volatile just because its
15127 If ignoring reference operations, just expand the operands.
15128 (expand_expr, case COMPONENT_REF): Propagate
15129 EXPAND_CONST_ADDRESS to recursive call when expanding inner.
15130 Refine test for using bitfield operations vs pointer punning.
15131 (expand_expr, case CONVERT_EXPR): If converting to
15132 BLKmode UNION_TYPE from BLKmode, just return inner object.
15133 Use proper mode in store_field call.
15134 Properly set sizes of object to store and total size in store_field
15135 call for convert to union.
15136 (expand_expr, case ARRAY_REF): If OP0 is in a register, put it in
15137 memory (like for ADDR_EXPR). Also, don't put constant in register if
15138 we'll want it in memory.
15139 (readonly_fields_p): New function.
15140 (expand_expr, case INDIRECT_REF): Call it if LHS.
15141 (expand_assignment): Handle a RESULT_DECL where
15142 DECL_RTL is a PARALLEL.
15143 (do_jump, case WITH_RECORD_EXPR): New case.
15144 (get_inner_reference): Always go inside a CONVERT_EXPR
15145 and NOP_EXPR if both modes are the same.
15146 (store_field): Use bitfield operations if size of bitsize is not same
15147 as size of RHS's type.
15148 Check for bitpos not a multiple of alignment in BLKmode case.
15149 Do block move in largest possible alignment.
15150 (store_constructor): Set BITSIZE to -1 for variable size and properly
15151 in case of array of BLKmode.
15152 (expand_expr_unaligned): New function.
15153 (do_compare_and_jump): Call it.
15155 * mips/iris5.h (SWITCHES_NEED_SPACES): New macro.
15156 * collect2.c (main): Only allow -ofoo if SWITCHES_NEED_SPACES
15157 does not include 'o'.
15159 * function.c (instantiate_virtual_regs_1, case SET): Handle case where
15160 both SET_DEST and SET_SRC reference a virtual register.
15161 (gen_mem_addressof): Copy RTX_UNCHANGING_P from new REG to old REG.
15163 * integrate.c (expand_inline_function): Handle case of setting
15164 virtual stack vars register (from built in setjmp); when parameter
15165 lives in memory, expand virtual_{stack_vars,incoming_args}_rtx early.
15166 (subst_constant): Add new parm, MEMONLY.
15167 (expand_inline_function, integrate_parm_decls): Pass new parm.
15168 (integrate_decl_tree): Likewise.
15169 (copy_rtx_and_substitute, case MEM): Do copy RTX_UNCHANGING_P.
15170 (try_constants): Call subst_constants twice, with MEMONLY 0 and 1.
15171 (copy_rtx_and_substitute, case SET): Add explicit calls to
15172 copy_rtx_and_substitute for both sides.
15174 * stmt.c (expand_asm_operands): Don't use TREE_STRING_LENGTH for
15176 (pushcase{,_range}): Convert to NOMINAL_TYPE after checking for
15177 within INDEX_TYPE, instead of before.
15178 (fixup_gotos): Use f->target_rtl, not the next insn,
15179 since latter may be from a later fixup.
15180 (expand_value_return): Correctly convert VAL when promoting function
15181 return; support RETURN_REG being a PARALLEL.
15182 (expand_return): When checking for result in regs and having
15183 cleanup, consider PARALLEL in DECL_RTL as being in regs.
15185 1999-10-28 21:27 -0700 Zack Weinberg <zack@bitmover.com>
15187 * cpplib.h (struct cpp_buffer: fname, nominal_fname,
15188 last_nominal_fname): Mark const.
15189 (struct include_hash: name, nshort, control_macro): Mark
15191 (struct macrodef: symnam): Mark const.
15192 (struct if_stack: fname): Mark const.
15193 (is_idchar, is_idstart, is_hor_space, trigraph_table): Delete.
15194 (IStable): New character-syntax array which encompasses all
15195 the old is_foo arrays.
15196 (is_idchar, is_numchar, is_idstart, is_numstart, is_hspace,
15197 is_space): New macros for interrogating IStable.
15198 (check_macro_name): Kill last argument. All callers changed.
15200 * cppinit.c (initialize_char_syntax): Delete.
15201 (is_idchar, is_idstart, is_hor_space, is_space,
15202 trigraph_table): Delete.
15203 (IStable): New. Initialize with clever macros to avoid
15204 information duplication.
15205 (builtin_array): Table of builtins to get rid of explicit list
15206 in initialize_builtins.
15207 (initialize_builtins): Use builtins_array.
15208 (cpp_start_read): Call init_IStable, and set IStable['$'] if
15209 opts->dollars_in_ident.
15211 * cppexp.c: Change all refs to is_xyz[] arrays to use new
15213 (cpp_parse_expr): Avoid 'format string is not constant'
15214 warning. Use ISGRAPH to identify printable chars.
15215 * cppfiles.c: Change all refs to is_xyz[] arrays to use new
15217 (read_and_prescan): Map trigraphs to chars with open-coded
15218 if-else-if-... sequence, not a lookup table.
15219 * cpphash.c: Change all refs to is_xyz[] arrays to use new
15221 * cpplib.c: Change all refs to is_xyz[] arrays to use new
15222 is_xyz() macros. Kill SKIP_ALL_WHITE_SPACE (unused).
15223 (check_macro_name): Remove ability to report an invalid
15224 assertion name, which is never used.
15225 (do_line): Constify a couple of char *'s.
15226 * cppmain.c (main): Call cpp_cleanup before returning.
15228 Thu Oct 28 21:16:35 1999 Mark Mitchell <mark@codesourcery.com>
15230 * ggc.h (struct ggc_statistics): New type.
15231 (ggc_get_size): New function.
15232 (ggc_print_statistics): Likewise.
15233 * ggc-common.c (ggc_stats): New variable.
15234 (ggc_mark_rtx_children): Keep statistics.
15235 (ggc_mark_tree_children): Likewise.
15236 (ggc_print_statistics): New function.
15237 * ggc-page.c (struct globals): Add bytes_mapped field.
15238 (alloc_anon): Update it.
15239 (release_pages): Likewise.
15240 (ggc_get_size): New function.
15241 (ggc_page_print_statistics): New function.
15242 * ggc-simple.c (ggc_get_size): New function.
15244 Fri Oct 29 06:32:44 1999 Geoffrey Keating <geoffk@cygnus.com>
15246 * flow.c (propagate_block): When the last reference to a label
15247 before an ADDR_VEC is deleted because the reference is a dead
15248 store, delete the ADDR_VEC.
15250 Thu Oct 28 12:28:50 1999 Richard Henderson <rth@cygnus.com>
15252 * resource.c (find_free_register): Don't use the frame pointer
15253 if frame_pointer_needed.
15255 Thu Oct 28 10:02:00 1999 Jim Wilson <wilson@cygnus.com>
15257 * config/mips/mips.c (mips_va_arg): Delete gen_jump as emit_jump arg.
15258 (function_arg_pass_by_reference): Check for a NULL pointer in cum.
15260 * config/i960/i960.c (i960_va_start): New locals base, num.
15261 Use INDIRECT_REF instead of ARRAY_REF on valist.
15262 (i960_va_arg): Use INDIRECT_REF instead of ARRAY_REF on valist.
15264 Thu Oct 28 09:45:48 1999 Mark Mitchell <mark@codesourcery.com>
15266 * gcse.c (delete_null_pointer_checks): Fix typo in previous change.
15268 Thu Oct 28 03:37:50 1999 Peter Gerwinski <peter@gerwinski.de>
15270 * tree.def (PLACEHOLDER_EXPR): Update comments.
15272 Thu Oct 28 06:47:32 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15274 * c-common.c (check_format_info): Avoid non-literal format string
15275 warnings when `first_arg_num' is zero.
15277 Thu Oct 28 12:28:48 1999 Bernd Schmidt <bernds@cygnus.co.uk>
15279 * rtl.texi: Delete explicit Prev, Up and Next entries in "@node"s.
15281 Thu Oct 28 11:05:13 1999 Richard Earnshaw <rearnsha@arm.com>
15283 * arm.md (casesi_insn): Add a clobber of the condition code
15286 Mon Oct 18 21:16:06 1999 Fred Fish <fnf@be.com>
15288 * tm.texi (CC1PLUS_SPEC): Make it clear in the docs that CC1_SPEC is
15289 used by both cc1 and cc1plus.
15291 Thu Oct 28 10:00:48 1999 Nick Clifton <nickc@cygnus.com>
15293 * config/arm/arm.c: Initialise arm_structure_size_boundary to
15294 DEFAULT_STRUCTURE_SIZE_BOUNDARY.
15295 * config/arm/arm.h (DEFAULT_STRUCTURE_SIZE_BOUNDARY): Define
15296 to the value 32 if it has not already been defined.
15297 * config/arm/netbsd.h (DEFAULT_STRUCTURE_SIZE_BOUNDARY):
15298 Override definition in arm.h with a value of 8.
15300 Thu Oct 28 03:12:02 1999 David Starner <dstarner98@aasaa.ofe.org>
15302 * c-pragma.c (push_alignment): Don't check the return value
15305 Thu Oct 28 03:08:38 1999 Matteo Frigo <athena@fftw.org>
15307 * sparc.h (ADJUST_COST): Fix thinko.
15309 Thu Oct 28 02:44:03 1999 Glen Nakamura <glen.nakamura@usa.net>
15311 * cccp.c (rescan): Fixed obp pointer handling around call to
15312 check_expand subroutine.
15314 Thu Oct 28 02:15:22 1999 Jeffrey A Law (law@cygnus.com)
15316 * gcse.c (delete_null_pointer_checks): Only record non-null info
15317 for pseudos when examining stores.
15319 * arm.md (adddi3, adddi_sesidi_di, adddi_sesidi_di): Add
15320 splitters for these patterns. Use "#" for output templates.
15321 (addsi3_carryin_shift): New pattern.
15323 Thu Oct 28 10:20:02 1999 Geoffrey Keating <geoffk@cygnus.com>
15325 * config/rs6000/rs6000.md (movsf): Don't convert a SUBREG
15326 of the function return register into a plain REG until
15327 after function inlining is done.
15329 Wed Oct 27 15:21:46 1999 Richard Henderson <rth@cygnus.com>
15331 * jump.c (jump_optimize_1): If we did cross-jumping, and
15332 the data will matter, rebuild the CFG.
15333 * reg-stack.c (reg_to_stack): Only (re)build the CFG if
15334 not optimizing. Don't run shorten_branches.
15335 * toplev.c (rest_of_compilation): Run shorten_branches after
15338 Wed Oct 27 12:33:40 1999 Mark Mitchell <mark@codesourcery.com>
15340 * rtl.h (note_stores): Add additional paramter.
15341 * rtlanal.c (reg_set_p_1): Take additional paramter.
15342 (reg_set_last_1): Likewise.
15343 (reg_set_p): Adjust call to note_stores.
15344 (reg_set_last): Likewise.
15345 (note_stores): Pass data parameter to worker function.
15346 * alias.c (record_set): Take additional parameter.
15347 (init_alias_analysis): Pass it.
15348 * caller-save.c (mark_set_regs): Take additional parameter.
15349 (save_call_clobbered_regs): Pass NULL to note_stores.
15350 * combine.c (set_nonzero_bits_and_sign_copies): Take additional
15352 (record_dead_and_set_regs_1): Likewise.
15353 (reg_dead_at_p_1): Likewise.
15354 (combine_instructions): Adjust calls to note_stores.
15355 (try_combine): Likewise.
15356 (record_dead_insn): Remove.
15357 (record_dead_and_set_regs): Adjust calls to note_stores.
15358 (reg_dead_at_p): Likewise.
15359 * cse.c (invalidate_skipped_set): Take additional parameter.
15360 (cse_check_loop_start): Likewise.
15361 (cse_check_loop_start_value): Remove.
15362 (cse_set_around_loop): Adjust calls to note_stores.
15363 * flow.c (notice_stack_pointer_modification): Take additional
15364 parameter. Remove duplicate declaration.
15365 (record_volatile_insns): Adjust calls to note_stores.
15366 * gcse.c (record_set_info): Take additional parameter.
15367 (record_last_set_info): Likewise.
15368 (invalidate_nonnull_info): Likewise.
15369 (record_set_insn): Remove.
15370 (compute_sets): Adjust calls to note_stores.
15371 (last_set_insn): Remove.
15372 (compute_hash_table): Adjust calls to note_stores.
15373 (insert_insn_end_bb): Likewise.
15374 (delete_null_pointer_checks): Likewise.
15375 * global.c (mark_reg_store): Take additional parameter.
15376 (mark_reg_clobber): Likewise.
15377 (reg_becomes_live): Likewise.
15378 (global_conflicts): Adjust calls to note_stores.
15379 (build_insn_chain): Likewise.
15380 * integrate.c (note_modified_parmregs): Take additional parameter.
15381 (mark_stores): Likewise. Make it static.
15382 (save_for_inline_nocopy): Adjust calls to note_stores.
15383 (try_constants): Likewise.
15384 * integrate.h (mark_stores): Remove declaration.
15385 * jump.c (mark_modified_reg): Take additional parameter.
15386 (thread_jumps): Adjust calls to note_stores.
15387 * local-alloc.c (validate_equiv_mem_from_store): Take additional
15389 (no_equiv): Likewise.
15390 (reg_is_set): Likewise.
15391 (validate_equiv_mem): Adjust calls to note_stores.
15392 (update_equiv_regs): Likewise.
15393 (block_alloc): Likewise.
15394 * loop.c (note_set_pseudo_multiple_uses_retval): Remove.
15395 (note_addr_stored): Take additional parameter.
15396 (note_set_pseudo_multiple_uses): Likewise.
15397 (record_initial): Likewise.
15398 (prescan_loop): Adjust calls to note_stores.
15399 (strength_reduce): Likewise.
15400 (check_dbra_loop): Likewise.
15401 * regmove.c (flags_set_1): Take additional paramter.
15402 (mark_flags_life_zones): Adjust calls to note_stores.
15403 * reload1.c (mark_not_eliminable): Take additional parameter.
15404 (forget_old_reloads_1): Likewise.
15405 (reload_cse_invalidate_rtx): Likewise.
15406 (reload_cse_check_clobber): Likewise.
15407 (reload_combine_note_store): Likewise.
15408 (move2add_note_store): Likewise.
15409 (reload): Adjust calls to note_stores.
15410 (reload_as_needed): Likewise.
15411 (emit_reload_insns): Likewise.
15412 (reload_cse_regs_1): Likewise.
15413 (reload_cse_record_set): Adjust calls to reload_cse_invalidate_rtx.
15414 (reload_combine): Adjust calls to note_stores.
15415 * resource.c (update_live_status): Take additional paramter.
15416 (mark_target_live_regs): Adjust calls to note_stores.
15417 * stupid.c (find_clobbered_regs): Take additional parameter.
15418 (stupid_life_analysis): Adjust calls to note_stores.
15420 Wed Oct 27 19:26:12 1999 Nick Clifton <nickc@cygnus.com>
15422 * config/arm/coff.h (STRUCTURE_SIZE_BOUNDARY): Delete
15425 * config/arm/elf.h (STRUCTURE_SIZE_BOUNDARY): Delete
15428 * config/arm/arm.h (STRUCTURE_SIZE_BOUNDARY): Define in terms
15429 of the variable arm_structure_size_boundary.
15431 Wed Oct 27 02:05:58 1999 Mark P. Mitchell <mark@codesourcery.com>
15433 * alias.c (init_alias_analysis): Allocate reg_known_value and
15434 reg_known_equiv_p on the heap. Likewise for new_reg_base_value
15436 (end_alias_analysis): Free reg_known_value and reg_known_equiv_p.
15437 * cse.c (cse_main): Call end_alias_analysis.
15438 * haifa-sched.c (schedule_insns): Likewise.
15439 * local-alloc. (update_equiv_regs): Likewise.
15440 * reload1.c (reload_cse_regs): Likewise.
15442 Wed Oct 27 01:49:17 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
15444 * sparc/sparc.c (sparc_override_options): Clear MASK_FPU_SET.
15445 * sparc/sparc.h (TARGET_SWITCHES): Add "fpu" entry for reverse
15446 mapping from MASK_FPU.
15448 Wed Oct 27 01:42:26 1999 Scott Christley <scottc@net-community.com>
15450 * sparc.md (call): Don't bound structure return size to 0xfff.
15452 Wed Oct 27 00:56:59 1999 Richard Henderson <rth@cygnus.com>
15454 * resource.c (mark_target_live_regs): Check that the target
15455 insn wasn't created after compute_bb_for_insn.
15457 Tue Oct 26 23:15:03 1999 Mark Mitchell <mark@codesourcery.com>
15459 * ggc-page.c (poison_pages): Don't be overzealous.
15461 Tue Oct 26 23:29:18 1999 Jeffrey A Law (law@cygnus.com)
15463 * alias.c: Update comments for ADDRESS.
15464 (nonlocal_reference_p): Look inside the ADDRESS to determine if
15465 it is a local memory reference.
15467 * c-typeck.c (build_function_call): Check that the built-in
15468 function is of class BUILT_IN_NORMAL before trying to recongize
15469 it as BUILT_IN_ABS.
15470 * calls.c (calls_function_1): Similarly for BUILT_IN_ALLOCA.
15471 * stmt.c (expand_end_cae): Similarly for BUILT_IN_CLASSIFY_TYPE.
15473 Wed Oct 27 00:14:13 1999 Robert Lipe <robertlipe@usa.net>
15475 * gcse.c (expr_reaches_here_p): Use xcalloc and explit free instead
15477 (pre_gcse): Likewise.
15478 (hoist_expr_reaches_here_p): Likewise.
15479 (hoist_code): Likewise.
15480 (pre_expr_reaches_here_p): Replace alloca with xcalloc. Move core
15482 (pre_expr_reaches_here_p_work): ... here.
15483 (expr_reaches_here_p): Replace alloca with xcalloc. Move core
15485 (expr_reaches_here_p_work): ... here.
15487 Tue Oct 26 20:42:45 1999 Richard Henderson <rth@cygnus.com>
15489 * resource.c (find_basic_block): Delete.
15490 (mark_target_live_regs, incr_ticks_for_insn): Use BLOCK_NUM instead.
15491 (init_resource_info): Call compute_bb_for_insn.
15493 Tue Oct 26 20:21:02 1999 Richard Henderson <rth@cygnus.com>
15495 * flow.c (merge_blocks_move_predecessor_nojumps): Cope
15496 with already adjacent blocks, but no fallthru.
15497 (merge_blocks_move_successor_nojumps): Simplify.
15498 (debug_flow_info): New.
15500 * toplev.c (rest_of_compilation): Open jump1 dump file before
15501 jump and close after, as opposed to just using dump_rtl.
15503 Wed Oct 27 03:09:23 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
15505 * reload.h (earlyclobber_operand_p): Declare.
15506 * reload.c (earlyclobber_operand_p): Don't declare. No longer static.
15507 * reload1.c (reload_reg_free_for_value_p): RELOAD_OTHER reloads with
15508 an earlyclobbered output conflict with RELOAD_INPUT reloads - handle
15509 case where the RELOAD_OTHER reload is new. Use earlyclobber_operand_p.
15511 Tue Oct 26 18:23:38 1999 Jan Hubicka <hubicka@freesoft.cz>
15512 Richard Henderson <rth@cygnus.com>
15514 * emit-rtl.c (emit_block_insn_before): New.
15515 (emit_block_insn_after): New.
15516 * basic-block.h: Declare them.
15518 * bitmap.h: Protect from multiple inclusion.
15520 * recog.c (scratch_operand): Handle VOIDmode correctly.
15522 * rtl.h (JUMP_CROSS_JUMP_DEATH_MATTERS): New.
15524 * builtins.c (expand_builtin_apply_args_1): Remove STACK_REGS hack.
15525 * function.c (assign_parms): Likewise.
15526 * global.c (global_conflicts): Clarify STACK_REGS commentary.
15528 * reg-stack.c (max_uid): Remove.
15529 (blocks, block_begin, block_end, block_drops_in): Remove.
15530 (block_stack_in, block_out_reg_set, block_number): Remove.
15531 (struct block_info_def, BLOCK_INFO): New.
15532 (enum emit_where): New.
15533 (current_block): New.
15534 (BLOCK_NUM): Remove.
15535 (mark_regs_pat, record_label_references): Remove.
15536 (record_reg_life_pat, record_reg_life, find_blocks): Remove.
15538 (goto_block_pat, print_blocks, dump_stack_info): Remove.
15539 (reg_to_stack): Simplified test for existance of fp code. Use
15540 flow.c code. Call shorten_branches after cross-jump opt.
15541 (check_asm_stack_operands): Renamed from record_asm_reg_life.
15542 Return false if the asm doesn't use stack regs. Don't do life
15543 analysis on the asm.
15544 (emit_pop_insn): Replace function pointer arg `when' with
15545 enum `where'. Update all callers.
15546 (change_stack): Likewise. Update basic block end.
15547 (emit_swap_insn): Use current_block->head to limit reverse search
15548 for start of block. Use emit_block_insn_after.
15549 (subst_stack_regs_pat): Handle USE and CLOBBER patterns.
15550 (subst_asm_stack_regs): Use check_asm_stack_operands. Use direct
15551 structure assignment instead of bcopy.
15552 (print_stack): New.
15553 (convert_regs_entry, convert_regs_exit): New.
15554 (convert_regs_1, convert_regs_2): Split out from convert_regs.
15555 Work on basic blocks and the CFG.
15556 (convert_regs): Use them.
15558 * i386.c (output_fix_trunc): Remove code for DImode input operand
15559 not at top-of-stack.
15560 * i386.c (fix_truncdfdi2, fix_truncsfdi2): Use scratch with
15562 (fix_truncdi_1): Allow any mode scratch.
15564 Tue Oct 26 13:30:35 1999 Richard Henderson <rth@cygnus.com>
15566 * alpha.h (TARGET_MEM_FUNCTIONS): Define here.
15567 * linux.h, netbsd.h, vms.h: Not here.
15569 1999-10-26 Gavin Romig-Koch <gavin@cygnus.com>
15571 * config/mips/mips.h (ISA_HAS_64BIT_REGS,ISA_HAS_BRANCHLIKELY,
15572 ISA_HAS_FP4,ISA_HAS_CONDMOVE): New.
15573 (GENERATE_BRANCHLIKELY,HAVE_SQRT_P,
15574 CONDITIONAL_REGISTER_USEAGE): Use them.
15575 * config/mips/mips.c (mips_move_1word,mips_move_2words,
15576 gen_conditional_branch,override_options) : Use them.
15577 * config/mips/mips.md : Use them.
15579 Tue Oct 26 13:09:23 1999 Richard Henderson <rth@cygnus.com>
15581 * i386.md (zero_extendqihi2): Use SImode register name with andl.
15583 Tue Oct 26 12:35:38 1999 Richard Henderson <rth@cygnus.com>
15585 * integrate.c (function_cannot_inline_p): Don't allow inlining
15588 Tue Oct 26 14:10:23 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15590 * c-parse.in (cast_expr): Constify.
15592 * cccp.c (special_symbol): Likewise.
15594 * cse.c (hash_cse_reg_info, cse_reg_info_equal_p): Likewise.
15596 * dwarf2out.c (base_type_die): Likewise.
15598 * global.c (allocno_compare): Likewise.
15600 * local-alloc.c (qty_compare_1, qty_sugg_compare_1): Likewise.
15602 * regclass.c (fix_register): Likewise.
15604 * rtl.h (fix_register): Likewise.
15606 * stupid.c (stupid_reg_compare): Likewise.
15608 * toplev.c (decode_f_option): Likewise.
15610 * tree.c (build_complex_type): Likewise.
15612 Tue Oct 26 18:35:25 1999 Richard Earnshaw <rearnsha@arm.com>
15614 * output.h: Don't unnecessarily conditionalize prototypes on TREE_CODE.
15616 Tue Oct 26 15:42:56 1999 Bernd Schmidt <bernds@cygnus.co.uk>
15618 * reload.c (find_reloads): Compute mode and nregs fields of all
15620 * reload1.c (calculate_needs_all_insns): Simplify a bit.
15621 (calculate_needs): Use precomputed mode/nregs values.
15622 (allocate_reload_reg): Likewise.
15624 (failed_reload, set_reload_reg): ... new functions.
15625 (choose_reload_regs_init): New function, mostly broken out from...
15626 (choose_reload_regs): ... here. Lose all the save_xxx nonsense.
15627 Also lose one #if 0 block.
15629 Tue Oct 26 02:48:32 1999 Marc Espie <espie@cvs.openbsd.org>
15631 * Makefile.in (AR_FOR_TARGET, RANLIB_FOR_TARGET): Fix target name
15634 Tue Oct 26 01:27:32 1999 Mark Mitchell <mark@codesourcery.com>
15636 * tree.h (BLOCK_TYPE_TAGS): Remove.
15637 (BLOCK_END_NOTE): Likewise.
15638 (BLOCK_LIVE_RANGE_FLAG): Likewise.
15639 (BLOCK_LIVE_RANGE_START): Likewise.
15640 (BLOCK_LIVE_RANGE_END): Likewise.
15641 (tree_block): Remove live_range_flag, live_range_var_flag, and
15642 type_tags. Remove end_note, live_range_start, and live_range_end.
15643 (remember_end_note): Remove prototype.
15644 * tree.c (build_block): Don't set BLOCK_TYPE_TAGS.
15645 * c-decl.c (poplevel): Don't set BLOCK_TYPE_TAGS or call
15647 * ggc-common.c (ggc_mark_tree_children): Don't mark
15648 BLOCK_TYPE_TAGS or BLOCK_END_NOTE.
15649 * integrate.c (adjust_copied_decl_tree): Remove.
15650 * print-tree.c (print_node): Don't print BLOCK_TYPE_TAGS.
15651 * stmt.c (last_block_end_note): Remove.
15652 (init_stmt): Don't add a GC root for it.
15653 (expand_fixup): Don't set it.
15654 (remember_end_note): Remove.
15655 (expand_end_bindings): Don't set last_block_end_note.
15657 Tue Oct 26 00:41:54 1999 Bernd Schmidt <bernds@cygnus.co.uk>
15659 * reload1.c (reload_reg_free_for_value_p): Show
15660 RELOAD_FOR_OTHER_ADDRESS reloads can conflict with RELOAD_OTHER
15663 Mon Oct 25 23:54:45 1999 Geoff Keating <geoffk@cygnus.com>
15665 * expmed.c (extract_bit_field): Allow for the case of non-integer
15666 objects that are smaller than a word (like SFmode on a 64-bit
15669 * loop.c (basic_induction_var): A non-integer variable which is
15670 being set by a paradoxical subreg is probably not a biv.
15672 1999-10-25 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
15674 * prefix.c (translate_name) Check for empty prefix string.
15676 Mon Oct 25 23:10:45 1999 Andreas Schwab <schwab@suse.de>
15678 * Makefile.in (CPP_CROSS_NAME): New variable.
15679 (install-cpp): Use it instead of CPP_INSTALL_NAME for the cross
15681 (uninstall-cpp): Use CPP_INSTALL_NAME and CPP_CROSS_NAME for the
15682 names of the files to be uninstalled.
15684 Mon Oct 25 23:03:09 1999 Jeffrey A Law (law@cygnus.com)
15686 * collect2.c (IS_DIR_SEPARATOR): Define.
15687 (prefix_from_string): Use IS_DIR_SEPARATOR and DIR_SEPARATOR.
15689 * som.h (ASM_DECLARE_FUNCTION_NAME): Set PRIV_LEV for static
15692 * haifa-sched.c (add_dependence): Update the true dependency
15693 cache the first time we add a true dependence to the LOG_LINKS chain.
15695 Mon Oct 25 22:27:40 1999 Jim Kingdon <http://developer.redhat.com/>
15697 * fold-const.c (fold): Fix comment.
15699 Mon Oct 25 22:49:34 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15701 * dbxout.c (lastfile, cwd, dbxout_type_method_1,
15702 dbxout_symbol_location, dbxout_symbol_name, dbxout_init,
15703 dbxout_start_new_source_file, dbxout_source_file,
15704 dbxout_source_line, dbxout_finish, dbxout_type_fields,
15705 dbxout_type_methods, dbxout_symbol, dbxout_prepare_symbol):
15707 (dbxout_types, dbxout_args, dbxout_symbol): Delete prototypes.
15708 (dbxout_symbol): Mark parameter `local' with ATTRIBUTE_UNUSED.
15709 (dbxout_block): Initialize variable `blocknum'.
15711 * dbxout.h (dbxout_init, dbxout_finish,
15712 dbxout_start_new_source_file, dbxout_source_file, dbxout_types,
15713 dbxout_args, dbxout_source_line): Constify a char*.
15715 * dwarfout.c (dwarf_tag_name, dwarf_attr_name,
15716 dwarf_stack_op_name, dwarf_typemod_name, dwarf_fmt_byte_name,
15717 dwarf_fund_type_name, name_attribute, stmt_list_attribute,
15718 low_pc_attribute, high_pc_attribute, body_begin_attribute,
15719 body_end_attribute, comp_dir_attribute, sf_names_attribute,
15720 src_info_attribute, mac_info_attribute, producer_attribute,
15721 lookup_filename, generate_macinfo_entry, fundamental_type_code,
15722 dwarfout_line, dwarfout_start_new_source_file, dwarfout_define,
15723 dwarfout_undef): Constify a char*.
15724 (add_incomplete_type, retry_incomplete_types): Add prototypes.
15726 * dwarfout.h (dwarfout_define, dwarfout_undef,
15727 dwarfout_start_new_source_file, dwarfout_line): Constify a char*.
15729 1999-10-25 Gavin Romig-Koch <gavin@cygnus.com>
15731 * config/mips/mips.h (MIPS_ISA_DEFAULT): Insure it's defined.
15732 (MULTILIB_ISA_DEFAULT): New.
15733 (MULTILIB_DEFAULTS): Use it.
15734 * config/mips/mips.c (): Remove the now unnecessary definition
15735 of MIPS_ISA_DEFAULT.
15736 * config/mips/elf64.h (MULTILIB_DEFAULTS): Remove the now
15737 unnecessary definition.
15739 Mon Oct 25 22:08:35 1999 Richard Earnshaw (rearnsha@arm.com)
15741 * arm.md (pic_load_addr): Add constraints to operand 1.
15743 1999-10-25 Bruce Korb <autogen@linuxbox.com>
15745 * fixinc/genfixes: Provide a means for specifying -D options to
15748 Mon Oct 25 00:42:35 1999 Jeffrey A Law (law@cygnus.com)
15750 * arm.c (arm_override_options): Correct initialization of
15751 arm_fast_multiply, arm_arch4, arm_arch5, arm_ld_sched,
15752 arm_is_strong, and arm_is_6_or_7.
15754 * loop.c (note_set_pseudo_multiple_uses_retval): New variable.
15755 (note_set_pseudo_multiple_uses): New function.
15756 (check_dbra_loop): Use not_set_pseudo_multiple_uses to determine
15757 if a pseudo set in the loop exit is used elsewhere.
15759 Sun Oct 24 20:52:40 1999 Mark Mitchell <mark@codesourcery.com>
15761 * i386.md (mulsi3): Tweak to work with SCO OSR5 COFF assembler.
15763 Sun Oct 24 21:02:46 1999 Richard Henderson <rth@cygnus.com>
15765 * i386.md (*lea_0): Collapse addsi_0, addsi_lea_[123] into
15766 a single load-address pattern.
15768 Sun Oct 24 19:33:24 1999 Mark P. Mitchell <mark@codesourcery.com>
15770 * haifa-sched.c (schedule_insns): Don't assign LUIDs differently
15771 depending on whether or not line-number notes are present.
15773 Sun Oct 24 20:29:59 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15775 * cccp.c (progname, file_buf, default_include, include_file,
15776 macrodef, definition, hashval, wchar_type, user_label_prefix,
15777 directive, out_fname, if_stack, safe_write, index0, get_lintcmd,
15778 expand_to_temp_buffer, is_system_include, base_name,
15779 absolute_filename, read_name_map, open_include_file,
15780 record_control_macro, check_precompiled, check_preconditions,
15781 pcfinclude, pass_thru_directive, create_definition,
15782 check_macro_name, comp_def_part, collect_expansion,
15783 check_assertion, read_token_list, assertion_install,
15784 assertion_lookup, eval_if_expression, conditional_skip,
15785 validate_else, skip_quoted_string, quote_string, macarg1,
15786 error_from_errno, install, lookup, hashf, dump_defn_1,
15787 perror_with_name, pfatal_with_name, main, trigraph_pcp,
15788 check_white_space, rescan, handle_directive, monthnames,
15789 special_symbol, do_include, remap_include_file, write_output,
15790 arglist, do_assert, do_unassert, do_line, do_error, do_once,
15791 do_ident, do_sccs, do_xifdef, skip_if_group,
15792 output_line_directive, macroexpand, macarg, change_newlines,
15793 initialize_builtins, make_definition): Constify a char*.
15795 * pcp.h (stringdef): Likewise.
15797 Sun Oct 24 13:29:28 1999 Richard Henderson <rth@cygnus.com>
15799 * unroll.c (copy_loop_body): Examine SET_DEST of single_set
15802 Sun Oct 24 13:14:20 1999 Graham <grahams@rcp.co.uk>
15803 Richard Henderson <rth@cygnus.com>
15805 * alias.c: Include ggc.h.
15806 (reg_base_value, new_reg_base_value, reg_base_value_size): Make static.
15807 (record_set): Verify enough room in reg_base_value.
15808 (init_alias_analysis): Allocate reg_base_value with xcalloc.
15809 Register it as a GC root.
15810 (end_alias_analysis): Free reg_base_value. Remove it as a GC root.
15811 * Makefile.in (alias.o): Depend on ggc.h.
15813 * unroll.c (unroll_loop): Verify the insn before a barrier
15814 is a JUMP_INSN before checking JUMP_LABEL.
15816 Sun Oct 24 15:46:44 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15818 * mips/bsd-5.h (ASM_OUTPUT_ASCII): Constify a char*.
15819 * mips/iris4.h (ASM_OUTPUT_ASCII): Likewise.
15820 * mips/mips-5.h (ASM_OUTPUT_ASCII): Likewise.
15821 * mips/mips.h (ASM_OUTPUT_ASCII): Likewise.
15822 * mips/svr3-5.h (ASM_OUTPUT_ASCII): Likewise.
15823 * mips/svr4-5.h (ASM_OUTPUT_ASCII): Likewise.
15825 Sun Oct 24 15:35:43 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15827 * output.h (ctors_section, dtors_section, bss_section): Prototype.
15829 * alpha/alpha-interix.h (text_section): Delete prototype.
15830 * alpha/elf.h (text_section): Likewise.
15831 * arm/linux-elf.h (text_section): Likewise.
15832 * arm/linux-telf.h (text_section): Likewise.
15833 * c4x/c4x.h (text_section): Likewise.
15834 * dsp16xx/dsp16xx.h (bss_section): Likewise.
15835 * elfos.h (text_section): Likewise.
15836 * i386/aix386ng.h (text_section): Likewise.
15837 * i386/i386-interix.h (text_section): Likewise.
15838 * i386/sco5.h (text_section): Likewise.
15839 * i386/svr3gas.h (text_section): Likewise.
15840 * nextstep.h (text_section): Likewise.
15841 * psos.h (text_section): Likewise.
15842 * ptx4.h (text_section): Likewise.
15843 * svr3.h (text_section): Likewise.
15844 * svr4.h (text_section, ctors_section, dtors_section): Likewise.
15846 Sun Oct 24 15:20:59 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15848 * final.c (peephole): Delete prototype.
15850 * gcse.c (process_insert_insn, pre_edge_insert): Add prototypes.
15851 (pre_insert_copies): Remove unused variable `bb'.
15853 * genrecog.c (debug_decision_0, debug_decision_list, main): Add
15856 * output.h (peephole): Add prototype.
15858 Sun Oct 24 11:35:30 1999 Mark P. Mitchell <mark@codesourcery.com>
15860 * config/mips/iris6.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Define to
15863 Sat Oct 23 21:13:00 1999 Mark Mitchell <mark@codesourcery.com>
15865 * integrate.c (integrate_decl_tree): Tweak setting of DECL_CONTEXT
15866 for inlined declarations.
15868 Fri Oct 22 18:05:43 1999 Jeffrey A Law (law@cygnus.com)
15870 * arm.c (logical_binary_operator): New fucntion.
15871 * arm.h (logical_binary_operator): Declare it.
15872 (PREDICATE_CODES): Handle logical_binary_operator.
15873 * arm.md (anddi3, anddi_zesidi_di, anddi_sesdi_di): Use "#" for
15874 output constraints. Add appropriate splitters.
15875 (anddi_notdi_di, anddi_notzesidi_di, anddi_notsesidi_di): Likewise.
15876 (iordi3, iordi_zesidi_di, iordi_sesidi_di): Likewise.
15877 (xordi3, xordi_zesidi_di, xordi_sesidi_di): Likewise.
15879 Fri Oct 22 23:46:50 1999 Bernd Schmidt <bernds@cygnus.co.uk>
15881 * genoutput.c (struct operand_data): New elt eliminable.
15882 (output_operand_data): Write it.
15883 (scan_operands): Set it for MATCH_OPERAND, clear for other matchers.
15884 (compare_operands): Take it into account.
15885 * recog.h (struct insn_operand_data): New elt eliminable.
15886 * reload1.c (check_eliminable_occurrences, elimination_effects): New
15888 (old_asm_operands_vec, new_asm_operands_vec): Delete.
15889 (eliminate_regs): Move code that detects changes to elimination
15890 target regs into new function elimination_effects.
15891 Delete one #if 0 block.
15892 Abort for USE, CLOBBER, ASM_OPERANDS and SET.
15893 (eliminate_regs_in_insn): Return immediately for USEs, CLOBBERs,
15894 ADDR_VECs, ADDR_DIFF_VECs and ASM_INPUTs.
15895 Only call eliminate_regs for real operands of the insn, not for parts
15896 of its structure or parts matched by things like match_operator.
15897 Use elimination_effects and check_eliminable_occurrences. Use
15898 copy_insn to duplicate the pattern when not in the final pass.
15900 Fri Oct 22 09:03:44 1999 Mark Mitchell <mark@codesourcery.com>
15902 * i386.md: Add missing `y' modifiers to uses of fst, fstp, fld,
15905 1999-10-22 Bruce Korb <autogen@linuxbox.com>
15907 * fixinc/README: document the "mach" machine matching test
15908 * fixinc/fixfixes.c: Implement the #else/#endif label fix
15909 * fixinc/fixtests.c: Implement the #else/#endif label test
15910 * fixinc/inclhack.def: utilize these tests and fixes
15911 * fixinc/inclhack.sh: regen
15912 * fixinc/fixincl.x: regen
15913 * fixinc/fixincl.sh: regen
15915 Thu Oct 21 20:37:19 1999 Jeffrey A Law (law@cygnus.com)
15917 * Makefile.in (cse.o): Depend on hashtab.h, not splay-tree.h. Also
15920 Thu Oct 21 20:30:19 1999 Matthias Klose <doko@debian.org>
15922 * gcc.1: Document exit codes.
15924 Thu Oct 21 12:49:05 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15926 * calls.c: Include tm_p.h later, so everything we need is defined.
15927 * expr.c: Likewise.
15928 * function.c: Likewise.
15930 * except.c: Include tm_p.h.
15932 * sparc.c: Likewise.
15933 (dwarf2out_cfi_label): Don't prototype.
15934 (check_return_regs, epilogue_renumber,
15935 ultra_cmove_results_ready_p, ultra_fpmode_conflict_exists,
15936 ultra_find_type, ultra_build_types_avail, ultra_flush_pipeline,
15937 ultra_rescan_pipeline_state, set_extends, ultra_code_from_mask,
15938 ultra_schedule_insn): Add static prototype.
15939 (data_segment_operand, text_segment_operand): Call itself with the
15940 proper number of arguments.
15941 (sparc_flat_save_restore, sparc_v8plus_shift): Constify a char*.
15943 * sparc.h: Move all declarations to sparc-protos.h.
15944 (SELECT_RTX_SECTION): Pass a missing MODE argument to
15947 * sparc/sysv4.h (SELECT_RTX_SECTION): Likewise.
15949 * config/svr4.h (text_section, ctors_section, dtors_section): Add
15951 (ASM_OUTPUT_SECTION_NAME, UNIQUE_SECTION,
15952 ASM_FINISH_DECLARE_OBJECT, ASM_OUTPUT_LIMITED_STRING,
15953 ASM_OUTPUT_ASCII): Constify a char*.
15955 * sparc-protos.h: New file for sparc prototypes.
15957 Thu Oct 21 12:23:40 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15959 * function.c (record_insns, contains): Always declare and define.
15960 (record_insns): Mark with ATTRIBUTE_UNUSED.
15962 Thu Oct 21 13:03:49 1999 Jonathan Larmour <jlarmour@cygnus.co.uk>
15964 * config/arm/telf.h (ASM_OUTPUT_SECTION_NAME): Add %nobits option
15965 to .section when outputting a .bss section to deal with multiple
15966 .bss input sections (as happens with -fdata-sections)
15967 Also output %progbits, not @progbits so the assembler doesn't treat as
15969 * config/arm/unknown-elf.h (ASM_OUTPUT_SECTION_NAME): Likewise
15971 * config/arm/lib1funcs.asm (_call_via_rX): Allow compilation of
15972 thumb parts even when building with non-thumb CPUs, by forcing
15975 Wed Oct 20 22:57:58 1999 Jeffrey A Law (law@cygnus.com)
15977 * sparc.md (movsf_const_intreg): If splitting, length must be > 1.
15978 (movdf_const_intreg_sp64): Similarly.
15980 * local-alloc.c (update_equiv_regs): Check the correct insn
15981 for pre-existing REG_EQUIV notes.
15983 Wed Oct 20 20:41:46 1999 Mark Mitchell <mark@codesourcery.com>
15985 * cse.c (cse_end_of_basic_block): Don't return the end of a basic
15986 block reached by a branch if we're not going to actually process
15989 Wed Oct 20 15:18:42 1999 Jim Wilson <wilson@cygnus.com>
15991 * integrate.c (integrate_decl_tree): Set DECL_CONTEXT to 0 if this is
15992 a local extern function declaration.
15994 Wed Oct 20 13:56:01 1999 Richard Henderson <rth@cygnus.com>
15996 * i386.c (ix86_expand_prologue): Properly wrap USE around
15997 reg for CALL_INSN_FUNCTION_USAGE.
15999 Thu Oct 14 18:51:37 1999 Andrew Haley <aph@cygnus.com>
16001 * config/mips/mips.md (movdf_internal1a): Allow floating-point
16002 move between GP_REGs.
16004 Wed Oct 20 15:36:11 1999 Andrew Haley <aph@cygnus.com>
16006 * config/arm/thumb.h (GO_IF_LEGITIMATE_ADDRESS): Take account of
16007 the mode size when finding out if an offset is legal.
16009 Wed Oct 20 06:26:58 1999 Richard Henderson <rth@cygnus.com>
16011 * basic-block.h (PROP_*): Move constants from ...
16012 * flow.c: ... here.
16013 (compute_bb_for_insn): Free the array before reallocating.
16014 (update_life_info): New arg PROP_FLAGS; pass on to propagate_block.
16015 (allocate_reg_life_data): Reset all reg variables collected by
16017 (get_block_head_tail): Don't convert from bb to block.
16018 (get_bb_head_tail): New. Update all callers of get_block_head_tail.
16019 (find_insn_reg_weight): Take block not bb.
16020 (schedule_block): Don't set block num for moved insns.
16021 (schedule_region): Don't update_life_info or find_insn_reg_weight.
16022 (schedule_insns): Do it here instead.
16023 * combine.c (combine_instructions): Invoke compute_bb_for_insn
16024 before update_life_info.
16025 * recog.c (split_all_insns, peephole2_optimize): Update for
16026 new arg to update_life_info.
16027 * rtlanal.c (remove_note): Cope with NULL note.
16028 * toplev.c (rest_of_compilation): Don't invoke recompute_reg_usage
16031 Wed Oct 20 10:46:41 1999 Richard Earnshaw (rearnsha@arm.com)
16033 * jump.c (jump_optimize_1): More accurately detect casesi insns.
16035 * flow.c (merge_blocks_move_predecessor_nojumps): Re-order the basic
16036 block records so that merge_blocks_nomove will clean up correctly.
16037 (split_edge): Handle casesi insns.
16039 * gcc-page.c: Try MAP_ANON if we don't have MAP_ANONYMOUS.
16041 Tue Oct 19 23:43:50 1999 Jeffrey A Law (law@cygnus.com)
16043 * pa.md (call, call_value): Do not emit a blockage after restoring
16046 Tue Oct 19 17:22:39 1999 Mark Mitchell <mark@codesourcery.com>
16048 * c-typeck.c (c_expand_asm_operands): Fix typo.
16050 Tue Oct 19 18:42:58 1999 Bernd Schmidt <bernds@cygnus.co.uk>
16052 * arm.c (fpu_rhs_operand): Verify modes.
16053 (fpu_add_operand): Likewise.
16054 (di_operand): Likewise.
16055 (soft_df_operand): Likewise.
16057 Tue Oct 19 15:26:11 1999 Richard Earnshaw (rearnsha@arm.com)
16059 * arm.c (arm_return_in_memory): APCS rules state that the elements
16060 of a structure returned in a register must be 'integer-like'.
16062 1999-10-19 Bruce Korb <autogen@linuxbox.com>
16064 * fixinc/Makefile.in: Change the generation rules to run `genfixes'
16065 in the source tree when the generated targets are out of date
16066 * fixinc/genfixes: Alter it to run individual fixes for make.
16067 * fixinc/README: rewrite
16068 * fixinc/inclhack.def: moved initial comments to README
16070 Tue Oct 19 14:01:34 1999 Nick Clifton <nickc@cygnus.com>
16072 * toplev.c (main): Do not generate an error message if an
16073 unrecognised command line switch is recognisable by another
16074 language. If extra_warnings are enabled, then generate a
16075 warning message instead.
16077 Tue Oct 19 11:41:12 1999 Mumit Khan <khan@xraylith.wisc.edu>
16079 * c-pragma.h (PRAGMA_INSERT_ATTRIBUTES): Delete macro.
16080 (insert_pack_attributes): Delete prototype.
16082 * c-pragma.c (default_alignment): New static variable.
16083 (push_alignment): Initialize to current effective alignment.
16084 (pop_alignment): Use to set new alignment.
16085 (insert_pack_attributes): Delete function.
16086 (handle_pragma_token): Set default_alignment as well each time
16087 a #pragma pack(<n>) is encountered.
16089 Tue Oct 19 02:03:00 1999 Jeffrey A Law (law@cygnus.com)
16091 * reg-stack.c (stack_result): Aggregates are not returned in
16094 Tue Oct 19 01:26:48 1999 Alasdair Baird <alasdair@wildcat.demon.co.uk>
16096 * fold-const.c (fold): Fix thinko in x+(-0) -> x transformation.
16098 Mon Oct 18 15:19:41 1999 Richard Henderson <rth@cygnus.com>
16100 * basic-block.h (set_block_num): Declare.
16101 * flow.c (update_life_info): Don't call compute_bb_for_insn
16102 or free_basic_block_vars.
16103 * haifa-sched.c (remove_dependence): Conditionalize on HAVE_cc0.
16104 (insn_orig_block): Remove.
16105 (INSN_BLOCK): Remove. Update all callers to use BLOCK_NUM.
16106 (schedule_block): Keep BLOCK_NUM up-to-date.
16107 (schedule_insns): Use compute_bb_for_insn.
16108 * recog.c (split_all_insns): Likewise.
16109 (peephole2_optimize): Likewise.
16111 Mon Oct 18 18:50:51 1999 Andreas Schwab <schwab@suse.de>
16113 * config/m68k/m68k.h (INITIAL_FRAME_POINTER_OFFSET): Add one word
16114 if the pic register is used.
16116 Mon Oct 18 02:38:46 1999 Bernd Schmidt <bernds@cygnus.co.uk>
16118 * c-decl.c (pushdecl): Use TYPE_CONTEXT rather than TREE_PERMANENT.
16119 (finish_decl): Duplicate test for TREE_ASM_WRITTEN in else branch of
16120 if that tests TREE_PERMANENT.
16122 Mon Oct 18 01:41:35 1999 Jeffrey A Law (law@cygnus.com)
16124 * cse.c (invalidate_for_call): Do not remove memory references from
16125 the table here. It's handled elsewhere.
16127 * haifa-sched.c (add_dependence): Protect references to the
16128 true dependency cache with #ifdef INSN_SCHEDULING.
16129 (remove_dependence): Similarly.
16131 * mn10200.md (outline_epilogue_jump): Embed a (return) to indicate
16132 to the cfg code that this is a return instruction.
16133 * mn10300.md (return_internal): Similarly.
16135 * combine.c (get_last_value): If the last set of a register
16136 is after subst_low_cuid, then we can not use it to determine
16137 the register's last value.
16139 Sun Oct 17 11:02:52 1999 Mark Mitchell <mark@codesourcery.com>
16141 * Makefile.in: Back out previous change.
16143 Sun Oct 17 15:22:50 1999 Jeffrey A Law (law@cygnus.com)
16145 * pa.c (move_operand): Reject (lo_sum (reg) (unspec ...)).
16147 * haifa-sched.c (add_dependence): Only check/update the cache
16149 (remove_dependence): Likewise.
16150 (schedule_insns): Only create the true_dependency_cache if the
16151 average number of instructions in a basic block is very large.
16153 Sun Oct 17 11:02:52 1999 Mark Mitchell <mark@codesourcery.com>
16155 * Makefile.in (ggc-common.o): Depend on genrtl.h.
16156 (ggc-simple.o): Likewise.
16157 (ggc-page.o): Likewise.
16159 Sun Oct 17 02:09:50 1999 Andrew MacLeod <amacleod@cygnus.com>
16161 * basic-block.h (pre_edge_lcm, pre_edge_rev_lcm, compute_available):
16162 Prototype for exported functions.
16163 (pre_lcm, pre_rev_lcm): Remove prototypes.
16164 * gcse.c (compute_ae_kill): Add ae_gen and ae_kill as parameters.
16165 (compute_available): Move to lcm.c, and change parameter order.
16166 (one_classic_gcse_pass): Call compute_ae_kill with parameters.
16167 (pre_insert, s_preds, s_succs, num_preds, num_succs): Delete.
16168 (gcse_main): No longer call compute_preds_succs. Rebuild the
16169 set table after reach pre pass.
16170 (pre_insert_map, pre_delete_map, edge_list): New.
16171 (alloc_pre_mem): Allocate edge vectors.
16172 (free_pre_mem): Delete edge vectors.
16173 (compute_pre_data): Call new edge based lcm routines.
16174 (process_insert_insn): New function.
16175 (insert_insn_end_bb): Use it.
16176 (pre_edge_insert): New function.
16177 (pre_insert_copy_insn): Formatting fixes. Update BLOCK_END as
16179 (pre_insert_copies): Revamp using new edge based lcm outputs.
16180 (pre_delete): Likewise.
16181 (one_pre_gcse_pass): Insert & remove fake edges to the exit
16183 (compute_code_hoist_vbeinout): New new edge based routines.
16184 * lcm.c: Remove all the old LCM functions. Replace with new ones
16185 that work with the new cfg datastructures and work with edges
16188 Sun Oct 17 00:44:17 1999 Bernd Schmidt <bernds@cygnus.co.uk>
16190 * reload.h (struct reload): Add new fields "mode" and "nregs".
16191 * reload1.c: Change all occurrences of reload_mode and reload_nregs
16192 to reference the "mode" and "nregs" field within struct reload.
16194 Sat Oct 16 21:50:28 1999 Jeffrey A Law (law@cygnus.com)
16196 * haifa-sched.c (true_dependency_cache): New.
16197 (add_dependence): Use the true dependency cache to avoid expensive
16198 walks down the LOG_LINKS dependency list. Add entries to the
16199 cache as necessary.
16200 (remove_dependence): Remove entries from the true dependency cache
16202 (schedule_insns): Allocate and initialize and free the true
16205 * haifa-sched.c (schedule_insns): Do not remove inter-block
16206 dependencies anymore.
16208 Sat Oct 16 11:19:52 1999 Richard Henderson <rth@cygnus.com>
16210 * i386/t-cygwin (winnt.o): Depend on RTL_H and TREE_H.
16211 * i386/t-winnt: Likewise.
16213 Sat Oct 16 11:11:54 1999 Richard Henderson <rth@cygnus.com>
16215 * ggc-page.c (init_ggc): Work around SunOS unaligned mmap bug.
16217 1999-10-16 Manfred Hollstein <mhollstein@cygnus.com>
16219 * Makefile.in (LANGUAGES): Omit "proto".
16220 (clean): Remove stale comment about removing unprotoize.c.
16222 Sat Oct 16 11:29:14 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16224 * protoize.c (safe_read, safe_write): Avoid the gcc extension of
16225 using arithmetic on void pointers.
16227 Sat Oct 16 02:48:22 1999 Jeffrey A Law (law@cygnus.com)
16229 * haifa-sched.c (compute_block_forward_dependencies): Only check
16230 for notes, deleted insns and duplicates if ENABLE_CHECKING is defined.
16232 Sat Oct 16 00:07:01 1999 Richard Henderson <rth@cygnus.com>
16234 * gcse.c (hash_expr_1): Add in MEM_ALIAS_SET.
16235 (expr_equiv_p): Reject memories with different alias sets.
16237 Fri Oct 15 15:17:29 1999 Greg McGary <gkm@gnu.org>
16239 * flags.h (flag_bounds_check, flag_bounded_pointers): New extern decls.
16240 * toplev.c (flag_bounds_check, flag_bounded_pointers): New flags.
16241 (f_options): Add "bounded-pointers" and "bounds-check" entries.
16242 * c-lang.c (lang_init_options): Set flag_bounds_check as "unspecified".
16243 (lang_init): Set default for flag_bounds_check if still "unspecified".
16245 Sat Oct 16 13:42:29 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
16247 * config/c4x/c4x.md (HF mode patterns): Add missing modes.
16249 Sat Oct 16 13:37:46 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
16251 * config/c4x/c4x.md (movstrqi_small): Utilise parallel move
16254 Sat Oct 16 13:26:47 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
16256 * config/c4x/c4x.md (*db_noclobber,
16257 *decrement_and_branch_until_zero_noclobber): New patterns and
16258 associated splitters.
16260 Sat Oct 16 13:13:15 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
16262 * config/c4x/c4x.md (parallel instruction patterns): Rework
16263 constraints to keep reload happy.
16265 Sat Oct 16 13:03:16 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
16267 * config/c4x/c4x.md (*absqi2_noclobber, *negqi2_noclobber,
16268 *one_cmplqi2_noclobber, *subqi3_noclobber, *andqi3_255_noclobber,
16269 *andqi3_65535_noclobber, *andnqi3_noclobber, *xorqi3_noclobber):
16270 Add new patterns and associated post-reload splitters.
16272 Sat Oct 16 12:42:12 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
16274 * config/c4x/c4x.c (c4x_emit_libcall): Use ggc_alloc_string.
16276 Sat Oct 16 12:34:44 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
16278 * config/c4x/c4x.c (c4x_rptb_insert): Emit rpts_top pattern
16280 * config/c4x/c4x.md (rpts_top): New pattern and splitter.
16282 Sat Oct 16 12:26:30 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
16284 * config/c4x/c4x.c (src_operand): Check SYMBOL_REF and LABEL_REF
16287 Fri Oct 15 17:02:09 1999 Jeffrey A Law (law@cygnus.com)
16289 * pa.c (move_operand): Rely on memory_address_p to determine the
16290 validity of non-indexed memory addresses.
16291 * pa.h (GO_IF_LEGITIMATE_ADDRESS): Allow LO_SUM with a symbolic
16292 operand in DFmode and SFmode when generating PA2.0 code.
16294 Fri Oct 15 14:25:19 1999 Richard Henderson <rth@cygnus.com>
16296 * print-rtl.c (print_rtx): Limit last 'u' change to LABEL_REF.
16298 Fri Oct 15 13:48:45 1999 Richard Henderson <rth@cygnus.com>
16300 * mips.c (function_prologue): Fix argument types.
16301 * mips.md (casesi): Use emit_jump_insn for casesi_internal.
16302 (casesi_internal): Write to the scratch register.
16304 1999-10-15 11:16 -0700 Zack Weinberg <zack@bitmover.com>
16306 * cppexp.c (cpp_parse_escape): Make static. Change second arg
16308 (parse_charconst): Delete unnecessary cast when calling
16310 (cpplib.h): Kill prototype of cpp_parse_escape.
16312 Fri Oct 15 11:02:46 1999 Richard Henderson <rth@cygnus.com>
16314 Based on patch from Michael Gschwind <mikeg@watson.ibm.com>:
16315 * unroll.c (unroll_loop): Cast return value of alloca.
16316 * i370/i370.c: Include function.h and toplev.h.
16317 (i370_label_scan): Remove c++ commented abort.
16318 * i370/i370.h (HANDLE_PRAGMA): Takes three arguments.
16319 (ASM_OUTPUT_LABELREF): Fix TOUPPER/else broken 16 Sept.
16320 * i370/xm-i370.h (HOST_BITS_PER_LONGLONG): Define.
16321 * i370/xm-mvs.h, i370/xm-oe.h: Likewise.
16323 Fri Oct 15 03:01:01 1999 Loren Rittle <ljrittle@acm.org>
16325 * config/t-freebsd: Do not override USER_H.
16326 * ginclude/stddef.h: Generalize check for _MACHINE_ANSI_H_.
16328 Fri Oct 15 02:37:28 1999 Alastair J. Houghton <ajh8@doc.ic.ac.uk>
16329 Mumit Khan <khan@xraylith.wisc.edu>
16331 * c-parse.in (component_decl): Support anonymous struct/union.
16333 * c-parse.y: Regenerate.
16334 * c-parse.c: Likewise.
16335 * objc/objc-parse.y: Likewise.
16336 * objc/objc-parse.c: Likewise.
16337 * c-decl.c (finish_struct): Don't sort the fields.
16338 (field_decl_cmp): Delete unused function.
16340 Fri Oct 15 01:20:52 1999 Richard Henderson <rth@cygnus.com>
16342 * sparc.md (movsf_const_intreg): Revert last constraint change.
16343 (movdf_const_intreg_sp32): Likewise.
16345 Fri Oct 15 01:47:51 1999 Vladimir Makarov <vmakarov@loony.cygnus.com>
16347 * cse.c: Include hashtab.h instead of splay-tree.h
16348 (struct cse_reg_info): No longer use variant union. Add new
16349 field "regno". All references changed to avoid union.
16350 (cse_reg_info_used_list, cse_reg_info_used_list_end): New variables.
16351 (free_cse_reg_info): Remove.
16352 (hash_cse_reg_info, cse_reg_info_equal_p): New functions.
16353 (get_cse_reg_info): Revamp to use expandable hash tables instead
16354 of splay trees. Initialize new fields in cse_reg_info structure.
16355 (new_basic_block): Similarly.
16357 Thu Oct 14 23:51:56 1999 Richard Henderson <rth@cygnus.com>
16359 * genrecog.c (message_with_line): Prototype.
16360 (validate_pattern): Pass along the set for the dest, not a flag.
16361 Fix non-lvalue message. Don't warn for VOIDmode SET_DEST of CALL.
16362 Check for PC/CC0 as sources.
16363 (nodes_identical): Check for children position match before
16364 allowing the combination.
16366 * rtl.c (read_rtx): Track line number across \\\n.
16368 Thu Oct 14 23:50:25 1999 Richard Henderson <rth@cygnus.com>
16370 * mips.h (SPECIAL_MODE_PREDICATES): New.
16371 * mips.md (*) Use nonimmediate_operand not general_operand for outputs.
16372 (movdi+1, movsi+1): Add output reload constraint.
16373 (casesi_internal): Likewise. Fix commentary.
16374 (return_internal): Use pmode_register_operand.
16376 Thu Oct 14 23:19:34 1999 Richard Henderson <rth@cygnus.com>
16378 * 1750a.md (movstrqi): Add missing output reload constraint.
16379 (call_value): Likewise.
16380 * a29k.md (cpxxx patterns): Add missing match_operator mode.
16381 (jmpfdec): Add missing inout reload constraint.
16382 * elxsi.md (addsi patterns): Add missing output reload constraint.
16383 (move from sp): Use @ alternates.
16384 (call_value): No constraint on output.
16385 * fr30.md (movsi_pop): Add missing output reload constraint.
16386 (movsf_constant_store): Likewise.
16387 (splits): Remove constraints.
16388 (subsi3): Add missing mode.
16389 * i370.md (cmpstrsi+1): Add missing output reload constraint.
16390 (call_value): Likewise.
16391 * i960.md (cmpinc/cmpdec patterns): Add inout reload constraints.
16392 * m32r.h (PREDICATE_CODES): Add seth_add3_operand.
16393 * m32r.md (movsicc_internal): Add output reload constraint.
16394 (movstrsi_internal): Add inout reload constraints.
16395 * m88k.h (reg_names): Don't declare.
16396 (SPECIAL_MODE_PREDICATES): New.
16397 * m88k.md (*): Use register_operand not reg_or_0_operand
16399 * mn10200.h (PREDICATE_CODES): New.
16400 * ns32k.md (ffs pattern): Add output reload constraint.
16401 * pdp11.md (sob pattern): Add inout reload constraint.
16402 * sh.md (splits): Remove constraints.
16403 (indirect_jump_scratch, fpu_switch): Add output reload constraint.
16404 * v850.md (pattern_is_ok_for_epilogue): Likewise.
16405 * vax.md (jgequ pattern): Add inout reload constraint.
16407 Fri Oct 15 00:05:00 1999 Jeffrey A Law (law@cygnus.com)
16409 * configure.in (djgpp): Revert previous patch.
16410 * configure: Rebuit.
16411 * config/i386/djgpp.h: Revert previous patch.
16413 Fri Oct 15 00:00:24 1999 Loren J. Rittle <ljrittle@acm.org>
16415 * fixinc/inclhack.def: Restore patch lost during last merge of
16416 "no_bogosity" branch.
16417 * fixinc/inclhack.sh, fixinc/fixincl.x: Rebuilt.
16419 Thu Oct 14 23:57:56 1999 Gavin Romig-Koch <gavin@cygnus.com>
16421 * fixincludes: Add a HPUX 11 fix for inttypes.h.
16422 * fixinc/inclhack.def: Same.
16423 * fixinc/inclhack.sh, fixinc/fixincl.sh, fixinc/fixincl.x: Regenerate.
16425 Thu Oct 14 22:51:55 1999 Richard Henderson <rth@cygnus.com>
16427 * alpha.h (GO_IF_LEGITIMATE_SIMPLE_ADDRESS): Accept ADDRESSOF
16428 as the base of a PLUS.
16430 Fri Oct 15 18:36:07 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
16432 * config/c4x/c4x.md: Define mode for remaining unspec operators.
16433 * config/c4x/c4x.c (dst_operand): Use nonimmediate_operand.
16435 Thu Oct 14 22:14:23 1999 Richard Henderson <rth@cygnus.com>
16437 * pa.md (post_stw+1): Use pmode_register_operand.
16438 (dcacheflush, icacheflush): Likewise.
16440 * i386.md (movstricthi_1): Allow r/r.
16442 Thu Oct 14 19:44:08 1999 Jan Hubicka <hubicka@freesoft.cz>
16444 * fold-const.c (fold): Convert (or (not arg0) (not arg1))
16445 to (not (and (arg0) (arg1))). Similary for and.
16447 * fold-const.c (fold): Move bit_rotate code to the EXPR_PLUS case,
16448 fallthrough to associate code.
16449 Convert XOR to OR in code like (a&c1)^(a&c2) where c1 and c2 don't have
16452 * combine.c (simplify_logical): Convert XOR to IOR if operands have
16453 no bits in common; remove XOR to ROTATE conversion.
16455 Fri Oct 15 17:40:11 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
16457 * config/c4x/c4x.h (c4x_va_start, c4x_va_arg): Declare.
16459 Fri Oct 15 17:27:17 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
16461 * config/c4x/c4x.c (dst_operand): New.
16462 (PREDICATE_CODES): Update.
16463 * config/c4x/c4x.h (dst_operand): Declare it.
16464 * config/c4x/c4x.md: Define mode for each unspec usage.
16465 (move patterns): Use dst_operand predicate instead of src_operand.
16466 (movqi_update, movqf_update): Delete.
16468 Thu Oct 14 18:48:54 1999 Richard Henderson <rth@cygnus.com>
16470 * recog.c (pmode_register_operand): New.
16471 * recog.h: Declare it.
16472 * genrecog.c (pred_codes): Likewise.
16473 (special_mode_pred_table): Likewise.
16474 (validate_pattern): Don't warn no mode for address_operand.
16476 * print-rtl.c (print_rtx) [LABEL_REF]: Only do full subexpression
16477 if the operand is not insn-like.
16479 Thu Oct 14 19:38:42 1999 Jeffrey A Law (law@cygnus.com)
16480 Sylvian Pion <Sylvain.Pion@sophia.inria.fr>
16482 * fold-const.c (fold): Handle more simplifications allowed by IEEE.
16484 Thu Oct 14 17:30:14 1999 Richard Henderson <rth@cygnus.com>
16486 * sparc.md (*): Use {nonimmediate,register}_operand as appropriate
16487 instead of general_operand in a SET_DEST. Use const_double_operand
16488 instead of an explicit test against CONST_DOUBLE.
16489 (movsf_const_lo): Add missing register mode.
16490 (goto_handler_and_restore): Add auxiliary test for Pmode.
16491 (flush): Adjust to use address_operand.
16492 (return_sf_no_fpu): Add missing output constraint.
16494 Thu Oct 14 17:21:26 1999 Richard Henderson <rth@cygnus.com>
16496 * rs6000.md (call_value_indirect_aix32): Use wildcard match_operand
16497 for call return value.
16498 (call_value_indirect_aix64, call_value_indirect_nt): Likewise.
16500 Thu Oct 14 13:54:25 1999 Jason Merrill <jason@yorick.cygnus.com>
16502 * toplev.c (main): Only warn about options for other languages.
16503 * collect2.c (main): Pass -w to sub-gcc.
16505 Thu Oct 14 16:27:50 1999 Richard Henderson <rth@cygnus.com>
16507 * flow.c (propagate_block): Add call-clobbered registers to
16510 * flow.c (propagate_block): Use free_EXPR_LIST_list instead of
16511 zapping mem_set_list.
16512 (invalidate_mems_from_autoinc): Use free_EXPR_LIST_node.
16513 (mark_set_1, mark_used_regs): Likewise.
16515 Thu Oct 14 10:51:49 1999 Richard Henderson <rth@cygnus.com>
16517 * m68k.md (zero_extendsidi2): Add missing output reload constraint.
16519 Wed Oct 13 00:09:18 1999 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
16521 * invoke.texi: Label -Wbad-function-cast, -Wmissing-prototypes,
16522 -Wnested-externs, -Wstrict-prototypes, and -Wtraditional as C only
16523 options. Also add a new item "C-only Warning Options" to the
16526 1999-10-14 Gavin Romig-Koch <gavin@cygnus.com>
16528 * libgcc2.c (__do_global_dtors): Protect __deregister_frame_info
16529 from multiple calls.
16531 Thu Oct 14 04:54:54 1999 Richard Henderson <rth@cygnus.com>
16533 * i386.md (call value patterns): Move to the end of the file.
16534 (prologue_set_got, prologue_get_pc): Use register_operand for op 0.
16536 1999-10-14 Mark Elbrecht <snowball3@bigfoot.com>
16538 * configure.in (djgpp configuration): Define extra_objects..
16539 * configure: Rebuilt.
16540 * config/i386/djgpp.h (CTORS_SECTION_ASM_OP): Define.
16541 (DTORS_SECTION_ASM_OP): Define.
16542 (INIT_SECTION_ASM_OP): Define.
16543 (FINI_SECTION_ASM_OP): Define.
16544 (DATA_SECTION_ASM_OP): Define.
16545 (TEXT_SECTION_ASM_OP): Define.
16546 (EH_FRAME_SECTION_ASM_OP): Define.
16547 (LINK_COMMAND_SPEC): Remove -Tdjgpp.djl.
16548 (STARTFILE_SPEC): Add crtbegin.o.
16549 (ENDFILE_SPEC): Define and add crtend.o. Move argument -Tdjgpp.djl
16550 to here from LINK_COMMAND_SPEC.
16551 (DO_GLOBAL_CTORS_BODY): Define.
16552 (CRTSTUFF_USE_FINI_SECTION): Define
16553 (HAS_INIT_SECTION): Delete.
16555 Thu Oct 14 05:08:14 1999 Andreas Schwab <schwab@suse.de>
16557 * Makefile.in (all.cross): Depend on xcpp$(exeext).
16559 Thu Oct 14 04:00:40 1999 Richard Henderson <rth@cygnus.com>
16561 * pa.h (PREDICATE_CODES): New.
16563 * genrecog.c (validate_pattern): Condense the destination
16564 non-lvalue message.
16566 Thu Oct 14 03:23:08 1999 Richard Henderson <rth@cygnus.com>
16568 * alpha.md (call-1): Supply missing mode for operator.
16569 (*): Add missing output reload constraints. Remove constraints
16570 from define_splits.
16572 * i386.h (SPECIAL_MODE_PREDICATES): New.
16573 * i386.md (movstricthi_1): Use nonimmediate_operand for op 0.
16574 (movqi_1, movdi_1, movdi_2, some splits): Likewise.
16575 (addsi_lea_3): Add missing mode for op 3.
16576 (prologue_set_got, prologue_get_pc): Add missing modes.
16577 (*) Add missing output reload constraints.
16579 Thu Oct 14 03:59:57 1999 Stephane Carrez <stcarrez@worldnet.fr>
16581 * stor-layout.c (layout_union): Use HOST_WIDE_INT for const_size;
16582 check for member bit-size overflow and use var_size if it occurs.
16583 (layout_record): Use bitsize_int() to define the type size in bits.
16584 Likewise for computation and assignment to DECL_FIELD_BITPOS.
16585 (layout_decl): Likewise when assigning to DECL_SIZE.
16587 Thu Oct 14 02:57:05 1999 Richard Henderson <rth@cygnus.com>
16589 * genrecog.c (validate_pattern): Typo last change. Verify
16590 that output operands have output reloads.
16592 Thu Oct 14 01:49:54 1999 Richard Henderson <rth@cygnus.com>
16594 * genrecog.c (special_mode_pred_table): New.
16595 (NUM_SPECIAL_MODE_PREDS): New.
16596 (find_operand): New.
16597 (validate_pattern): New argument `insn'. Warn for assignment to
16598 any predicate accepting non-lvalues. Conditionaly warn for
16599 match_operand without a mode. Try much harder to match source
16600 and destination modes on a set.
16601 * tm.texi (SPECIAL_MODE_PREDICATES): Document.
16603 Thu Oct 14 02:54:13 1999 Jeffrey A Law (law@cygnus.com)
16605 * fold-const.c (fold): Detect rotates built from BIT_XOR_EXPRs.
16607 Thu Oct 14 02:18:19 1999 Marc Espie <espie@cvs.openbsd.org>
16609 * combine.c (simplify_logical): Recognize xor pattern that encodes
16612 Wed Oct 13 23:23:45 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
16614 * rs6000.c (expand_block_move): Use INTVAL, not XINT to access
16617 Wed Oct 13 21:47:18 1999 Richard Henderson <rth@cygnus.com>
16619 * ggc-page.c (MAP_FAILED): Provide default.
16621 Wed Oct 13 21:41:59 1999 Richard Henderson <rth@cygnus.com>
16623 * sparc.c (symbolic_operand): Verify mode; don't accept CONST_DOUBLE.
16624 * sparc.h (PREDICATE_CODES): Update.
16626 Wed Oct 13 21:18:17 1999 Richard Henderson <rth@cygnus.com>
16628 * alpha.c (some_ni_operand): New.
16629 * alpha-protos.h: Declare it.
16630 * alpha.h (PREDICATE_CODES): Update.
16631 * alpha.md (sXaddq reload insns): Use some_ni_operand
16632 for SET_DEST instead of some_operand.
16634 Wed Oct 13 21:04:45 1999 Richard Henderson <rth@cygnus.com>
16635 Jim Wilson <wilson@cygnus.com>
16637 * genrecog.c (maybe_both_true_2): Don't compare modes of
16639 (process_tree): Elide peephole2_insns. Invoke simplify_tests
16640 after find_afterward.
16641 (debug_decision_1): Dump next and afterward codes.
16643 Wed Oct 13 20:35:16 1999 Richard Henderson <rth@cygnus.com>
16645 * rtl.c (dump_and_abort): Remove.
16646 (fatal_with_file_and_line): New.
16647 (fatal_expected_char): New.
16648 (read_rtx_lineno, read_rtx_filename): New.
16649 (read_skip_spaces): Track line number.
16650 (read_name): Use fatal_with_file_and_line.
16651 (read_rtx): Use fatal_expected_char. Track line number.
16652 * rtl.h (read_rtx_filename, read_rtx_lineno): Declare.
16654 * print-rtl.c (print_rtx): Don't special case LABEL_REF argument
16655 if it isn't a CODE_LABEL.
16657 * genattr.c (main): Set read_rtx_filename.
16658 * genattrtab.c (main): Likewise.
16659 * gencodes.c (main): Likewise.
16660 * genconfig.c (main): Likewise.
16661 * genemit.c (main): Likewise.
16662 * genextract.c (main): Likewise.
16663 * genflags.c (main): Likewise.
16664 * genopinit.c (main): Likewise.
16665 * genoutput.c (main): Likewise.
16666 * genpeep.c (main): Likewise.
16668 * genrecog.c (decision_test.u.insn): Add `lineno'.
16669 (pattern_lineno, error_count): New variables.
16670 (message_with_line): New.
16671 (add_to_sequence): Break out checking code to ...
16672 (validate_pattern): ... here. Detect SET_DEST matching CONST_INT.
16673 (merge_insn): Use message_with_line.
16674 (make_insn_sequence): Use validate_pattern. Record insn lineno.
16675 (main): Set read_rtx_filename, pattern_lineno. Exit early on error.
16677 Wed Oct 13 22:01:35 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
16679 * expr.c (store_constructor): Clear union if constructor is empty.
16681 Wed Oct 13 15:19:04 1999 Jim Wilson <wilson@cygnus.com>
16683 * config/rs6000/sysv4.h (CC1_SPEC): Fix errors from Jan 19 change.
16684 Add !endian checks. Change %{...} to %(...).
16686 Wed Oct 13 13:30:34 1999 Richard Henderson <rth@cygnus.com>
16688 * i386.md (*addsi3_cc): Renamed from addcsi3.
16689 (*addsi3_carry): Renamed from addxsi3.
16690 (*subsi3_cc): Renamed from subcsi3.
16691 (*subsi3_carry): Renamed from subxsi3.
16692 (*xorqi_cc_1): Renamed from xorcqi_1.
16693 (xorqi_cc_ext_1): Renamed from xorcqi_ext_1.
16694 * i386.c (ix86_expand_fp_compare): Update for xorqi_cc_ext_1.
16696 Wed Oct 13 13:10:46 1999 Richard Henderson <rth@cygnus.com>
16698 * Makefile.in (ggc-common.o): Depend on RTL_H not RTL_BASE_H.
16699 (ggc-simple.o, ggc-page.o, ggc-none.o, ggc-callbacks.o): Likewise.
16701 1999-10-13 Brendan Kehoe <brendan@cygnus.com>
16703 * regmove.c (optimize_reg_copy_3): Make sure P is non-nil as we
16704 climb up the chain of insns.
16706 Wed Oct 13 10:20:58 1999 Richard Henderson <rth@cygnus.com>
16708 * genrecog.c (write_subroutine): Careful for null trees.
16709 (process_tree): Don't elide empty functions.
16711 Wed Oct 13 10:07:54 1999 Richard Henderson <rth@cygnus.com>
16713 * Makefile.in (genrtl.o): Depend on ggc.h.
16714 * configure.in (valloc): Probe for it.
16715 (with-gc): Use ggc-page if valloc present.
16716 * ggc-common.c (ggc_mark_rtx_children): Use ggc_mark_if_gcable.
16717 (ggc_mark_rtvec_children): New from corpse of ggc_mark_rtvec.
16718 (ggc_alloc_string): Moved from ggc-page.c.
16719 * ggc-none.c (ggc_alloc_obj): New.
16720 (ggc_alloc_rtx, ggc_alloc_rtvec): Remove.
16721 * ggc-page.c (sys/mman.h): Only include if HAVE_MMAP.
16722 (struct globals): Likewise for dev_zero_fd.
16723 (init_ggc): Likewise for it's initialization.
16724 (ggc_allocated_p): Move careful dereference from ...
16725 (ggc_lookup_page_table): ... here. Delete.
16726 (lookup_page_table_entry): Don't use ggc_lookup_page_table.
16727 (alloc_anon): Use valloc if no mmap.
16728 (release_pages): Use free if using valloc.
16729 (ggc_alloc_obj): Renamed from alloc_obj.
16730 (ggc_set_mark): Renamed from mark_obj.
16731 (ggc_mark_if_gcable): Renamed from ggc_mark_string_if_gcable.
16732 (ggc_alloc_rtx, ggc_alloc_rtvec): Delete.
16733 (ggc_alloc_tree, ggc_alloc_string, ggc_alloc): Delete.
16734 (ggc_set_mark_rtx, ggc_set_mark_rtvec): Delete.
16735 (ggc_set_mark_tree, ggc_mark_string, ggc_mark): Delete.
16736 (ggc_collect): Use fp printing instead of our own rounding.
16737 * ggc-simple.c (IS_MARKED, IGNORE_MARK): Delete.
16738 (GGC_STRING_MAGIC, GGC_STRING_MAGIC_MARK): Delete.
16739 (GGC_ANY_MAGIC, GGC_ANY_MAGIC_MARK): Delete.
16740 (struct ggc_rtx, struct ggc_rtvec, struct ggc_tree): Delete.
16741 (struct ggc_string, struct ggc_any): Delete.
16742 (offsetof): Provide default definition.
16743 (GGC_BALANCE, GGC_ALWAYS_COLLECT, GGC_ALWAYS_VERIFY): New.
16745 (struct ggc_mem): New, from corpse of ggc_any.
16746 (struct ggc_status): Delete.
16747 (ggc_chain, ggc_allocated_strings, ggc_strings_used): Delete.
16748 (n_rtxs_collected, n_vecs_collected, n_trees_collected): Delete.
16749 (n_strings_collected, n_anys_collected): Delete.
16750 (ggc_alloc_rtx, ggc_alloc_rtvec, ggc_alloc_tree): Delete.
16751 (ggc_alloc_string, ggc_alloc): Delete.
16752 (ggc_free_rtx, ggc_free_rtvec, ggc_free_tree): Delete.
16753 (ggc_free_string, ggc_free_any): Delete.
16754 (ggc_set_mark_rtx, ggc_set_mark_rtvec, ggc_set_mark_tree): Delete.
16755 (ggc_compare_addresses, ggc_mark_string): Delete.
16756 (ggc_mark_string_if_gcable, ggc_mark): Delete.
16757 (search_data): Delete.
16758 (struct globals): New.
16759 (GGC_MIN_EXPAND_FOR_GC, GGC_MIN_LAST_ALLOCATED): New.
16760 (tree_insert, tree_lookup): New.
16761 (ggc_alloc_obj, ggc_set_mark, ggc_mark_if_gcable): New.
16762 (clear_marks, sweep_objs): New.
16763 (ggc_collect): Gut. Use clear_marks, sweep_objs.
16764 (init_ggc): Set allocated_last_gc.
16765 (ggc_push_context): Gut. Use G.context.
16766 (ggc_pop_context): Likewise.
16767 (ggc_pop_context_1): New.
16768 (debug_ggc_tree): New.
16769 (debug_ggc_balance, tally_leaves): New.
16770 * ggc.h (ggc_mark_rtvec, ggc_mark_string, ggc_mark): Remove decl.
16771 (ggc_mark_string_if_gcable): Remove decl.
16772 (ggc_mark_rtx, ggc_mark_tree): Use ggc_set_mark.
16773 (ggc_mark_rtvec_children): New.
16774 (ggc_mark_rtvec, ggc_mark_string, ggc_mark): New.
16775 (ggc_mark_if_gcable): New decl.
16776 (ggc_alloc_rtx, ggc_alloc_rtvec): Remove decl.
16777 (ggc_alloc_tree, ggc_alloc): Likewise.
16778 (ggc_set_mark_rtx, ggc_set_mark_rtvec, ggc_set_mark_tree): Likewise.
16779 (ggc_alloc_obj): New decl.
16780 (ggc_alloc_rtx, ggc_alloc_rtvec): New macros.
16781 (ggc_alloc_tree, ggc_alloc): Likewise.
16782 (ggc_set_mark): New decl.
16783 * rtl.h (struct rtx_def): Remove gc_mark.
16784 (struct rtvec_def): Likewise.
16785 * tree.h (struct tree_common): Likewise.
16787 Wed Oct 13 01:44:29 1999 Carol LePage <carolo@hal.com>
16789 * configure.in (sparc-hal-solaris2*): Fix xm_file, xm_defines,
16790 float_format and thread_file definitions.
16791 * configure: Rebuilt.
16793 Wed Oct 13 09:25:03 1999 Niels Möller <nisse@lysator.liu.se>
16795 * extend.texi (Function Names): Document types of function names.
16797 Wed Oct 13 00:45:04 1999 Bernd Schmidt <bernds@cygnus.co.uk>
16799 * reload1.c (reload_reg_free_for_value_p): RELOAD_OTHER reloads with
16800 an earlyclobbered output conflict with RELOAD_INPUT reloads.
16802 Tue Oct 12 23:28:28 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
16804 * sh.h (BOOL_TYPE_SIZE): Don't use INT_TYPE_SIZE / CHAR_TYPE_SIZE.
16806 Tue Oct 12 23:19:32 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
16808 * sh.h (REGISTER_MOVE_COST): Change PR_REG to PR_REGS.
16810 Tue Oct 12 17:09:38 1999 David Edelsohn <edelsohn@gnu.org>
16812 * collect2.c (main): Do prelimnary link on AIX if rflag.
16814 Tue Oct 12 09:45:19 1999 Jonathan Larmour <jlarmour@cygnus.co.uk>
16816 * config/rs6000/eabi-ctors.c (__do_global_ctors): Run through
16817 __CTOR_LIST__ in opposite order, which is the correct order for sorted
16819 (__do_global_dtors): similarly for __DTOR_LIST__.
16821 Fri Oct 8 19:46:03 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
16822 Diego Novillo <dnovillo@cygnus.com>
16824 * config/sh/sh.h (REGISTER_MOVE_COST): Handle moves from T_REGS to
16827 Tue Oct 12 07:38:41 1999 Bruce Korb <autogen@linuxbox.com>
16829 * fixincl/*: Merged "no_bogosity" branch
16830 * fixincl/fixlib.h: protect against doubly defining t_bool
16831 * fixincl/server.h: protect against doubly defining t_bool
16833 Mon Oct 11 20:18:41 1999 Jim Wilson <wilson@cygnus.com>
16835 * genoutput.c: Include toplev.h.
16837 Mon Oct 11 18:56:14 1999 Jim Wilson <wilson@cygnus.com>
16839 * config/sparc/liteelf.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP):
16841 * configure.in (sparclite-*-elf, sparc86x-*-elf): Don't use libgloss.h.
16842 * configure: Regenerate.
16844 Mon Oct 11 16:07:49 1999 Richard Henderson <rth@cygnus.com>
16846 * gcse.c (delete_null_pointer_checks): Returns void.
16848 Mon Oct 11 20:31:51 1999 Bernd Schmidt <bernds@cygnus.co.uk>
16850 * rtl.c (copy_rtx): Don't use accessor macros to copy fields.
16851 * emit-rtl.c (copy_insn_1): Likewise.
16853 Mon Oct 11 13:29:06 1999 Geoffrey Keating <geoffk@cygnus.com>
16855 * config/mips/mips.c (mips_build_va_list): Correct
16856 TREE_CHAIN setting when hard-float.
16857 (mips_va_start): Use corrected setting.
16858 (mips_va_arg): Likewise. Also pass a tree to build of
16859 POSTINCREMENT_EXPR rather than a naked 'int'.
16861 Sun Oct 10 18:27:27 1999 Mark Mitchell <mark@codesourcery.com>
16863 * ggc.h (ggc_push_context): Fix comment.
16864 (ggc_pop_context): Likewise.
16865 (mark_string_if_gcable): Likewise.
16866 * ggc-common.c (ggc_mark_rtx_children): Use
16867 ggc_mark_string_if_gcable.
16868 * ggc-page.c (ggc_lookup_page_table): New function.
16869 (ggc_allocated_p): Likewise.
16870 (mark_obj): Fix formatting.
16871 (ggc_mark_string_if_gcable): New function.
16872 * ggc-simple.c (ggc_allocated_strings): New variable.
16873 (ggc_strings_used): Likewise.
16874 (ggc_compare_addresses): New function.
16875 (ggc_pop_context): Pop the `any' memory too.
16876 (ggc_mark_string_if_gcable): New function.
16877 (ggc_collect): Initialize and tear down ggc_allocated_strings.
16879 Sun Oct 10 20:05:21 1999 David Edelsohn <edelsohn@gnu.org>
16881 * rs6000.md (movstrsi_?reg): Use preferred rD/rS = r5 form.
16882 (scc patterns): Disable most SImode variants if TARGET_POWERPC64.
16883 * rs6000.c (expand_block_move): Match movstrsi_?reg register
16886 Sun Oct 10 16:37:01 1999 Richard Henderson <rth@cygnus.com>
16888 * haifa-sched.c (sched_reg_n_calls_crossed): Delete.
16889 (sched_reg_live_length, sched_reg_basic_block): Delete.
16890 (current_block_num, bb_live_regs, old_live_regs): Delete.
16891 (dead_notes, struct sometimes): Delete.
16892 (sched_note_set, birthing_insn_p): Delete.
16893 (adjust_priority): Gut useless reg lifetime code.
16894 (create_reg_dead_note, attach_deaths): Delete.
16895 (attach_deaths_insn, new_sometimes_live): Delete.
16896 (finish_sometimes_live): Delete.
16897 (find_pre_sched_live, find_post_sched_live): Delete.
16898 (update_reg_usage): Delete.
16899 (find_insn_reg_weight): New, from corpse of find_pre_sched_live.
16900 (schedule_insns): Delete reg lifetime code.
16901 (sched_analyze): Use REG_SAVE_NOTE to stuff NOTE_INSN notes away.
16902 (unlink_other_notes): Adjust REG_NOTE commentary.
16903 (reemit_notes): Use REG_SAVE_NOTE.
16904 (schedule_block): Likewise.
16905 (schedule_region): Allocate bitmap of blocks in region. Use
16906 count_or_remove_death_notes. Use update_life_info.
16908 * rtl.h (REG_SAVE_NOTE): New.
16909 * rtl.c (reg_note_name): Update.
16911 Sun Oct 10 16:14:16 1999 Richard Henderson <rth@cygnus.com>
16913 * combine.c (refresh_blocks, need_refresh): New.
16914 (combine_instructions): Allocate refresh_blocks. Invoke
16915 update_life_info if needed.
16916 (distribute_notes): Mark refresh_blocks instead of installing
16918 * flow.c (update_life_info): Remove notes if GLOBAL_RM_NOTES.
16919 * basic_block.h (enum update_life_extent): Add GLOBAL_RM_NOTES.
16921 * Makefile.in (recog.o): Depend on basic-block.h.
16923 Sun Oct 10 12:03:21 1999 Richard Henderson <rth@cygnus.com>
16925 * genrecog.c (add_to_sequence): Thinko last change: delete
16926 shadowing allow_const_int variable.
16928 Sun Oct 10 08:40:00 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16930 * cppinit.c: Use HAVE_GCC_VERSION instead of explicitly testing
16931 __GNUC__ and __GNUC_MINOR__.
16933 * gansidecl.h: Likewise.
16939 * toplev.h: Likewise.
16941 * tree.c: Likewise.
16943 * tree.h: Likewise.
16945 * varray.c: Likewise.
16947 * varray.h: Likewise.
16949 Sun Oct 10 13:28:48 1999 Bernd Schmidt <bernds@cygnus.co.uk>
16951 * loop.c (find_and_verify_loops): When looking for a BARRIER, don't
16952 use one before a jump table.
16954 * rtl.def (ADDRESS): Change documentation to match reality.
16955 * md.texi: Don't document it.
16956 * gmicro.md (load address pattern): Use 'p' constraint, delete use
16959 * emit-rtl.c (copy_insn_1): Make format_ptr a const char *.
16961 Sun Oct 10 02:41:41 1999 Richard Henderson <rth@cygnus.com>
16963 * genrecog.c (add_to_sequence): Move allow_const_int test outside
16964 known predicate block; default allow_const_int true.
16965 (debug_decision_list): New.
16967 Sun Oct 10 00:43:08 1999 Richard Henderson <rth@cygnus.com>
16969 * i386.h (CC1_SPEC): Typo -- use cc1_cpu.
16971 Sat Oct 9 23:26:55 1999 Jeffrey A Law (law@cygnus.com)
16973 * gcse.c (gcse_main): Avoid global optimizations if we have a
16974 large number of basic blocks and the ratio of edges to blocks
16976 (delete_null_pointer_checks): Likewise.
16978 Sat Oct 9 23:16:01 1999 Ken Raeburn <raeburn@mit.edu>
16980 * c-common.c (check_format_info): Warn if format string isn't a
16983 Sat Oct 9 23:04:02 1999 Jonathan Larmour <jlarmour@cygnus.co.uk>
16985 * configure.in (arm*-*-*): Don't let autoconf remove brackets
16986 * configure: regenerate
16988 Sat Oct 9 13:15:53 1999 Richard Henderson <rth@cygnus.com>
16990 * alpha.md (extendsidi2): Turn into a splitter. Allow f/f.
16991 If TARGET_FIX, allow r/f. Remove cvtlq unspec pattern.
16992 (peepholes): Re-enable.
16994 Sat Oct 9 12:18:16 1999 Richard Henderson <rth@cygnus.com>
16996 * Makefile.in (flow.o): Depend on TREE_H.
16997 * basic-block.h (REG_SET_EQUAL_P): New.
16998 (XOR_REG_SET): New.
16999 (n_edges): Declare.
17000 (free_regset_vector): Remove declaration.
17001 (flow_delete_insn_chain): Declare.
17002 (enum update_life_extent): New.
17003 (update_life_info, count_or_remove_death_notes): Declare.
17004 * combine.c (distribute_notes) [REG_DEAD]: Stop search at bb->head.
17005 Verify register live at bb->global_live_at_start before adding USE.
17006 * flow.c (HAVE_epilogue, HAVE_prologue): Provide default.
17007 (CLEAN_ALLOCA): New.
17009 (PROP_*): New flags.
17010 (find_basic_blocks_1): Use alloc_EXPR_LIST.
17011 (clear_edges): Zero n_edges.
17012 (make_edge): Increment n_edges.
17013 (split_edge): Don't allocate bb->local_set. Increment n_edges.
17014 (flow_delete_insn_chain): Export.
17015 (delete_block): Decrement n_edges.
17016 (merge_blocks_nomove): Likewise.
17017 (life_analysis): Give life_analysis_1 PROP flags.
17018 (verify_wide_reg_1, verify_wide_reg): New.
17019 (verify_local_live_at_start): New.
17020 (update_life_info): Rewrite to call into propogate_block.
17022 (mark_regs_live_at_end): After reload, if epilogue as rtl,
17023 always mark stack pointer. Conditionally mark PIC register.
17024 After reload, mark call-saved registers, return regsiters.
17025 (life_analysis_1): Accept PROP flags not remove_dead_code.
17026 Call mark_regs_live_at_end before zeroing regs_ever_live.
17027 Use calculate_global_regs_live. Copy global_live_at_end before
17028 calling final propagate_block. Zero reg_next_use on exit.
17029 (calculate_global_regs_live): New.
17030 (allocate_bb_life_data): Don't allocate bb->local_set.
17031 (init_regset_vector, free_regset_vector): Remove.
17032 (propagate_block): Accept FLAGS not FINAL or REMOVE_DEAD_CODE.
17033 Test flags before every operation. Warn if prologue/epilogue insn
17034 would have been deleted.
17035 (mark_set_regs, mark_set_1): Accept and use FLAGS.
17036 Use alloc_EXPR_LIST.
17037 (mark_used_regs): Accept and use FLAGS, not FINAL.
17038 Remove special handling for RETURN.
17039 (try_pre_increment): Use alloc_EXPR_LIST.
17040 (dump_flow_info): Dump n_edges.
17041 (unlink_insn_chain, split_hard_reg_notes): Remove.
17042 (maybe_add_dead_note, maybe_add_dead_note_use): Remove.
17043 (find_insn_with_note, new_insn_dead_notes): Remove.
17044 (update_n_sets, sets_reg_or_subreg_1, sets_reg_or_subreg): Remove.
17045 (maybe_remove_dead_notes, prepend_reg_notes): Remove.
17046 (replace_insns): Remove.
17047 (count_or_remove_death_notes): New.
17048 (verify_flow_info): Abort on error after all checks.
17049 (remove_edge): Decrement n_edges.
17050 (remove_fake_edges): Tweak format.
17051 * haifa-sched.c (schedule_insns): Use split_all_insns.
17052 * output.h (update_life_info): Remove declaration.
17053 * recog.c (split_all_insns): From the corpse of split_block_insns,
17054 do the whole function block by block. Use update_life_info.
17055 (recog_last_allowed_insn): New.
17056 (recog_next_insn): Mind it.
17057 (peephole2_optimize): Set it. Walk backwards through blocks.
17058 Use update_life_info.
17059 * rtl.h (update_flow_info, replace_insns): Remove declarations.
17060 (split_all_insns): Declare.
17061 * toplev.c (rest_of_compilation): Thread prologue before flow2.
17062 Use split_all_insns.
17064 * i386.md (or -1 peep2s): Disable.
17066 Fri Oct 8 17:49:08 1999 Richard Henderson <rth@cygnus.com>
17068 * config/mips/mips.md (movstrsi+[123]) : Combine these into
17069 a single pattern. Scrap the 'd' versions as unnecessary.
17071 * config/mips/mips.md (tablejump_internal3,tablejump_mips161,
17072 tablejump_mips162,tablejump_internal4): The operands to a
17073 label_ref must be VOIDmode.
17075 Fri Oct 8 16:12:42 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17077 * configure.in (c-mbchar): Append, don't overwrite, `extra_c_flags'.
17079 Fri Oct 8 11:58:34 1999 Richard Henderson <rth@cygnus.com>
17081 * mips.c (mips_va_arg) [EABI]: Return addr_rtx.
17083 Fri Oct 8 11:58:34 1999 Richard Henderson <rth@cygnus.com>
17085 * lists.c (init_EXPR_INSN_LIST_cache): Don't need to zap the
17086 cache every function if ggc_p.
17088 Fri Oct 8 18:46:11 1999 Bernd Schmidt <bernds@cygnus.co.uk>
17090 * jump.c (duplicate_loop_exit_test): Use copy_insn/copy_insn_1
17091 instead of copy_rtx. Accept sequences that contain asm statements.
17092 * emit-rtl.c (copy_insn_1, copy_insn): New functions.
17093 (copy_insn_scratch_in, copy_insn_scratch_out, copy_insn_n_scratches,
17094 orig_asm_operands_vector, copy_asm_operands_vector,
17095 orig_asm_constraints_vecotr, copy_asm_constraints_vector): New static
17097 * rtl.h (copy_insn, copy_insn_1): Declare.
17099 Fri Oct 8 13:08:12 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17101 * Makefile.in (insn-recog.o): Depend on hard-reg-set.h and resource.h.
17103 * alpha.h (ASM_OUTPUT_MI_THUNK): Pass the correct number of
17104 arguments to `current_file_function_operand'.
17106 * genrecog.c: Include hard-reg-set.h and resource.h in the
17107 generated output file.
17109 * real.c: Include tm_p.h.
17111 Fri Oct 8 18:46:11 1999 Bernd Schmidt <bernds@cygnus.co.uk>
17113 * i386.md (prologue_allocate_stack): Add '=' constraint letter on
17116 Thu Oct 7 23:06:50 1999 Richard Henderson <rth@cygnus.com>
17118 * rs6000.md (fix_truncdfsi2_internal+1): Emit a clobber
17119 before the fctiwz insn.
17121 Thu Oct 7 22:53:00 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
17122 Mark Mitchell <mark@codesourcery.com>
17124 * tree.c (make_lang_type_fn): New funtion pointer.
17125 (make_lang_type): Call it.
17126 * tree.h (make_lang_type): Declare.
17127 (make_lang_type_fn): Likewise.
17128 * rs6000.c (rs6000_build_va_list): Use make_lang_type.
17130 Thu Oct 7 00:36:17 1999 Diego Novillo <dnovillo@cygnus.com>
17132 * config/rs6000/rs6000.c (secondary_reload_class): For TARGET_ELF
17133 make sure that HIGH instructions are copied into BASE_REGS.
17135 Thu Oct 7 17:02:34 1999 Jason Merrill <jason@yorick.cygnus.com>
17137 * expr.c (expand_expr, TARGET_EXPR): Set TREE_USED sooner.
17139 Thu Oct 7 17:01:58 1999 Greg McGary <gkm@gnu.org>
17141 * c-decl.c (finish_struct): Use simpler method of
17142 removing elements of a singly-linked list.
17144 Thu Oct 7 15:23:28 1999 Michael Meissner <meissner@cygnus.com>
17146 * alpha.md (peephole2's): Comment out peephole2's that generate
17149 Thu Oct 7 12:00:53 1999 Richard Henderson <rth@cygnus.com>
17151 * genrecog.c (add_to_sequence): Disable mode check for
17154 Thu Oct 7 20:14:16 1999 Bernd Schmidt <bernds@cygnus.co.uk>
17156 * ggc-simple.c (init_ggc): Set empty_string.
17158 Thu Oct 7 01:13:15 1999 Richard Henderson <rth@cygnus.com>
17160 * configure.in: Detect mmap. Add --with-gc=foo to select
17161 garbage collector; default to page if mmap available.
17162 * Makefile.in (GGC): Substitute.
17164 Wed Oct 6 23:56:30 1999 Richard Henderson <rth@cygnus.com>
17166 * c-decl.c (ggc_p): Enable.
17168 Wed Oct 6 17:17:08 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17170 * flow.c (verify_flow_info): Make it extern & unconditionally define.
17172 1999-10-06 Brendan Kehoe <brendan@cygnus.com>
17174 * sparc/sp86x-elf.h (SUBTARGET_SWITCHES): Add missing doc
17175 string for little-endian-data.
17177 Wed Oct 6 16:10:35 1999 Michael Meissner <meissner@cygnus.com>
17179 * varray.h (VARRAY_CHECK): Fix up appropriate revision check, in
17180 case somebody tries to compile --enable-checking code with gcc
17183 Wed Oct 6 12:22:50 1999 Richard Henderson <rth@cygnus.com>
17185 * genrecog.c (add_to_sequence): Verify operand to label_ref is
17188 Wed Oct 6 10:21:15 1999 Richard Henderson <rth@cygnus.com>
17190 * genconfig.c (main): Disable HAVE_conditional_arithmetic.
17191 * jump.c (jump_optimize_1): Document why.
17193 Wed Oct 6 10:41:56 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17195 * collect2.c (scan_prog_file, scan_libraries): Prototype function
17196 pointers and casts for `int_handler' and `quit_handler'.
17198 * flow.c (verify_flow_info, split_hard_reg_notes,
17199 find_insn_with_note, sets_reg_or_subreg_1, prepend_reg_notes,
17200 remove_edge, remove_fake_successors): Add static prototypes.
17201 (verify_flow_info): Wrap with macro ENABLE_CHECKING.
17202 (mark_set_1): Initialize variable `regno'.
17203 (unlink_insn_chain): Likewise for variable `curr'.
17204 (remove_fake_edges): Remove unused variables `e', `tmp' and `last'.
17206 * loop.c (strength_reduce): Initialize variable
17207 `unrolled_insn_copies'.
17208 (cmp_combine_givs_stats, cmp_recombine_givs_stats): Add static
17209 prototypes. Change these functions to take const PTR parameters
17210 to avoid prototype conflict when used as the comparson argument
17212 (check_dbra_loop): Initialize variable `comparison_val'.
17214 * reload.c (debug_reload_to_stream, debug_reload): Add prototypes.
17215 (get_secondary_mem): Mark parameter `x' with ATTRIBUTE_UNUSED.
17216 (find_valid_class): Initialize variable `best_class'.
17217 (find_reloads): Call memcpy, not bcopy.
17219 * reload1.c (gen_mode_int, dump_needs): Add prototypes.
17220 (hard_reg_use_compare): Don't needlessly cast away const.
17221 (reload_reg_class_lower): Likewise.
17222 (choose_reload_regs): Initialize variable `regno'.
17224 Tue Oct 5 16:34:12 1999 Paul Burchard <burchard@pobox.com>
17226 * ggc-page.c (GGC_ALWAYS_COLLECT): Fix typo when undef'ing.
17228 Tue Oct 5 16:14:40 1999 Michael Meissner <meissner@cygnus.com>
17230 * libgcc1-test.c (toplevel): Include stddef.h to get size_t.
17231 ({,d}discard): Add forward declarations. Declare parameter as
17233 (main_without_main): Explicitly declare return type to be int.
17234 (memcpy): Properly declare.
17236 * libgcc2.c (toplevel): If inhibit_libc is defined and not
17237 building the trampoline support, declare malloc, free, and
17239 (__clear_cache): Mark arguments as potentially unused.
17241 * frame.c (toplevel): If inhibit_libc is defined, declare
17244 Tue Oct 5 12:00:32 1999 Richard Henderson <rth@cygnus.com>
17246 * flow.c (make_edge): Accept an optional 2D bitmap in which
17247 to cache edge existence. Update all callers.
17248 (make_label_edge, make_eh_edge): Pass through the edge cache.
17249 (make_edges): Provide the cache.
17251 Tue Oct 5 12:16:49 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17253 * mbchar.c (literal_codeset, local_mbtowc, local_mblen): Constify
17255 (local_mbtowc): Change the type of variable `i' from int to size_t.
17257 * mbchar.h (ISSJIS1, ISSJIS2): Use parens around && within ||.
17258 (local_mbtowc, local_mblen, literal_codeset): Constify a char*.
17260 Tue Oct 5 11:34:52 1999 Michael Meissner <meissner@cygnus.com>
17262 * ggc-common.c (toplevel): Reorder includes, so that ggc.h comes
17263 after other includes that define the appropriate types. Include
17264 tm_p.h for getting user prototypes.
17265 * ggc-callbacks.c (toplevel): Ditto.
17266 * ggc-none.c (toplevel): Ditto.
17267 * gcc-page.c (toplevel): Ditto.
17268 * ggc-simple.c (toplevel): Ditto.
17270 Mon Oct 4 16:48:16 1999 Diego Novillo <dnovillo@cygnus.com>
17271 Jonathan Larmour <jlarmour@cygnus.co.uk>
17273 * config/mips/mips.c (mips_move_2words): Split doubles if
17274 ISA >= 3, !TARGET_64BIT, and destination is not an FP register.
17276 Mon Oct 4 21:47:31 1999 Richard Henderson <rth@cygnus.com>
17278 * genrecog.c (struct decision_test): New.
17279 (struct decision): Remove test-related members, sort the rest by size.
17280 (IS_SPLIT): Simplify.
17281 (new_decision, new_decision_test): New.
17282 (add_to_sequence): Use them. No special handling for args of
17284 (maybe_both_true): Renamed from not_both_true; return sense changed.
17285 (maybe_both_true_1, maybe_both_true_2): New. Broken out
17286 of maybe_both_true and adjusted for decision_test.
17287 (position_merit): Remove.
17288 (nodes_identical, nodes_identical_1): New, broken out of merge_trees.
17289 (merge_accept_insn): New, broken out of merge_trees.
17290 (merge_trees): Use them. No special case for c_test; no node
17291 splitting; use test type instead of position_merit.
17292 (factor_tests): New.
17293 (simplify_tests): New.
17294 (break_out_subroutines): Don't write code now.
17295 (find_afterward): New.
17296 (write_afterward, write_switch, write_cond): New.
17297 (write_action, is_unconditional): New.
17298 (write_node): New. Use them.
17299 (write_tree_1): Rewrite. Use the new functions above.
17300 (write_tree): Remove afterward processing.
17301 (write_subroutine): Simplify function variant emission.
17302 (write_subroutines): New.
17303 (same_codes, clear_codes): Remove.
17304 (same_modes, clear_modes): Remove.
17305 (write_header): New, broken out of main.
17306 (make_insn_sequence): Use new_decision and new_decision_test.
17307 (process_tree): New, broken out of main.
17308 (main): Adjust for merge_trees interface change.
17309 Don't #define operands in the output file.
17310 (record_insn_name): New, broken out of make_insn_sequence.
17311 (debug_decision_2, debug_decision_1, debug_decision_0): New.
17312 (debug_decision): New.
17314 1999-10-04 21:58 -0700 Zack Weinberg <zack@bitmover.com>
17316 * resource.c (find_free_register): Mark class_str argument const.
17317 * resource.h: Update prototype to match.
17319 * i386.h (PREDICATE_CODES): Add entry for long_memory_operand.
17320 * i386.md: Give all anonymous insns names.
17322 Mon Oct 4 21:12:02 1999 Jeffrey A Law (law@cygnus.com)
17324 * flow.c (merge_blocks): Avoid assing BASIC_BLOCK for non-existent
17327 Mon Oct 4 21:01:39 1999 Richard Henderson <rth@cygnus.com>
17329 * toplev.c (dbr_sched_time): Unconditional.
17330 (peephole2_time): New.
17331 (compile_file): Add pass numbers to all of the dump file suffixes.
17332 Dump peephole2_time. Don't dump times for non-applicable passes.
17333 (rest_of_compilation): Add pass numbers to dump file suffixes.
17334 Conditionalize calls to the scheduler.
17335 * invoke.texi: Update.
17337 Mon Oct 4 20:25:13 1999 Anthony Green <green@cygnus.com>
17339 * flow.c (make_edges): Fix insn iteration.
17340 (find_basic_blocks): Assign NULL_RTX, not 0, to rtx.
17341 (find_basic_blocks_1): Fix spelling mistake.
17343 Mon Oct 4 16:56:11 1999 Richard Henderson <rth@cygnus.com>
17345 * tree.c (build1): Set TREE_SIDE_EFFECTS for expressions that
17346 always have side-effects. Use memset not bzero.
17347 (make_node): Likewise.
17349 Mon Oct 4 16:22:20 1999 Mark Mitchell <mark@codesourcery.com>
17351 * stmt.c (expand_anon_union_decl): When any of the elements of the
17352 union is addressable, so is the entire union.
17354 Mon Oct 4 11:38:33 1999 Richard Henderson <rth@cygnus.com>
17356 * sbitmap.c (sbitmap_ones): Don't set too many bits.
17358 * bitmap.h (enum bitmap_bits): Add BITMAP_XOR.
17359 * bitmap.c (bitmap_operation): Return true iff TO changed.
17360 (bitmap_equal_p): New.
17361 (bitmap_bit_p): Tidy arithmetic.
17362 (debug_bitmap_file): Likewise.
17364 Mon Oct 4 11:28:37 1999 Richard Henderson <rth@cygnus.com>
17366 * toplev.c (rest_of_compilation): Turn on cse_not_expected
17367 before cse2 instead of after.
17369 Mon Oct 4 09:55:17 1999 Stan Cox <scox@cygnus.com>
17371 * mips.h (GO_IF_LEGITIMATE_ADDRESS): Let leasi/liadi handle large
17374 Mon Oct 4 08:54:12 1999 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
17376 * cppinit.c (is_idchar initializer): Loosen tests to accept
17379 Mon Oct 4 02:31:20 1999 Mark Mitchell <mark@codesourcery.com>
17381 * mips.md: Define conditional move patterns for floating point
17382 operands and DI mode conditions.
17384 Mon Oct 4 02:12:41 1999 Mark Mitchell <mark@codesourcery.com>
17386 * tree.c (make_node): Set TREE_SIDE_EFFECTS for expressions that
17387 always have side-effects.
17389 Sun Oct 3 14:14:16 1999 Jeffrey A Law (law@cygnus.com)
17391 * mn10200.c (asm_file_start): Fix typo.
17393 * cppinit.c (is_idchar initializer): Tighten tests for when
17394 to put the table into initialized memory.
17396 * ggc-none.c (ggc_alloc_rtvec): An rtvec is an array of rtx,
17397 not an array of rtunion.
17398 * gcc-page.c (ggc_alloc_rtvec): Similarly.
17399 * gcc-simple (ggc_free_rtvec): Similarly.
17401 * genattrtab.c (simplify_cond): Make TESTS an array of rtxs, instead
17404 * mbchar.h: Add missing #endif.
17406 * t-fr30 (LIB2FUNCS_EXTRA): Remove definition.
17407 (FPBIT, DPBIT): Define.
17409 Sun Oct 3 12:44:05 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17411 * print-tree.c (print_node, indent_to): Remove redundant prototypes.
17413 * profile.c (instrument_arcs, output_gcov_string,
17414 tablejump_entry_p): Add static prototypes.
17415 (output_gcov_string): Constify a char*.
17417 * regmove.c (replacement_quality, fixup_match_2): Add static
17420 * resource.h (reg_dead_p): Add extern prototype.
17422 * rtl.c (trim_filename): Add static prototype.
17424 * scan-decls.c (skip_to_closing_brace): Likewise.
17426 * stmt.c (expand_decl_cleanup_no_eh): Hide definition.
17427 (expand_end_case): Initialize variable `range'.
17428 (emit_case_nodes): Remove unused prototype `rtx_fn'.
17430 * varasm.c (asm_emit_uninitialised): Add static prototype.
17431 (asm_emit_uninitialised, assemble_variable): Mark parameter with
17434 Sun Oct 3 12:24:52 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17436 * cpplib.c (if_directive_nameo): Add static prototype.
17438 * cse.c (cse_insn): Remove unused variable `p'.
17440 * except.c (create_rethrow_ref, push_entry,
17441 receive_exception_label, new_eh_region_entry, find_func_region,
17442 clear_function_eh_region, process_nestinfo): Add static prototypes.
17443 (get_reg_for_handler): Hide definition.
17444 (process_nestinfo): Initialize variable `extra_handlers'.
17446 * expr.h (expand_builtin_longjmp): Add extern prototype.
17448 * final.c (final_addr_vec_align, align_fuzz): Add static prototypes.
17450 * function.c (prepare_function_start): Likewise.
17451 (pop_function_context_from): Mark parameter `context' with
17453 (push_temp_slots_for_block, flush_addressof): Hide definition.
17455 * gcov.c (init_arc, reverse_arcs, create_program_flow_graph,
17456 solve_program_flow_graph, calculate_branch_probs,
17457 function_summary, main, fancy_abort): Add prototypes.
17459 * gen-protos.c (add_hash, parse_fn_proto, main): Likewise.
17460 (add_hash): Constify a char*.
17462 * ggc-common.c (ggc_mark_rtx_ptr, ggc_mark_tree_ptr,
17463 ggc_mark_tree_varray_ptr, ggc_mark_tree_hash_table_ptr,
17464 ggc_mark_string_ptr, ggc_mark_tree_hash_table_entry): Add prototypes.
17466 * integrate.c (expand_inline_function_eh_labelmap): Likewise.
17468 * lists.c (free_list, zap_lists): Likewise.
17470 Sun Oct 3 12:05:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17472 * alias.c (nonlocal_reference_p): Add static prototype.
17474 * bitmap.c (bitmap_element_allocate): Prototype args in function
17477 * builtins.c (stabilize_va_list): Add static prototype.
17478 (expand_builtin_va_arg): Constify a char*.
17480 * c-lex.c (getch, put_back, extend_token_buffer_to,
17481 read_line_number, token_getch, token_put_back): Add static
17484 * c-parse.gperf (hash, is_reserved_word): Likewise.
17486 * cccp.c (is_dir_separator): Likewise.
17488 Sat Oct 2 16:07:56 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17490 * graph.h: New file to prototype functions exported by graph.c.
17492 * Makefile.in (graph.o, toplev.o): Depend on graph.h.
17494 * graph.c: Include graph.h.
17496 * toplev.c: Likewise. Remove redundant prototypes.
17498 Sat Oct 2 11:28:33 1999 Krister Walfridsson <cato@df.lth.se>
17500 * invoke.texi: Removed duplicated description for -Q.
17502 Sat Oct 2 11:16:00 1999 Jim Kingdon <http://developer.redhat.com>
17504 * extend.texi: Grammar fix in __extension__ text.
17506 Sat Oct 2 11:06:31 1999 Richard Henderson <rth@cygnus.com>
17508 * md.texi (define_peephole2): New section.
17510 Sat Oct 2 10:57:56 1999 Jan Hubicka <hubicka@freesoft.cz>
17512 * i386.md (mov?i patterns): Fix handling of TARGET_USE_MOV0
17513 (mov $-1 to or peepholer): Enable for pentium when optimizing for
17516 Sat Oct 2 10:55:25 1999 Jan Hubicka <hubicka@freesoft.cz>
17518 * builtins.c (expand_builtin_strlen): Fix best mode searching loop.
17520 Sat Oct 2 10:53:22 1999 Jan Hubicka <hubicka@freesoft.cz>
17522 * i386.md (ffs expander): Emit Pentium friendly code for
17525 Sat Oct 2 02:48:21 1999 Mark P. Mitchell <mark@codesourcery.com>
17527 * tree.c (build): Don't look at TREE_SIDE_EFFECTS or TREE_RAISES
17529 (build1): Likewise.
17531 Fri Oct 1 18:01:11 1999 Bernd Schmidt <bernds@cygnus.co.uk>
17533 * i386elf.h (TARGET_DEFAULT): Use symbolic constants.
17535 Fri Oct 1 12:42:53 1999 Andreas Schwab <schwab@suse.de>
17537 * config/m68k/m68k.c (use_return_insn): Return false if the pic
17538 register is in use.
17540 Fri Oct 1 10:56:06 1999 Bernd Schmidt <bernds@cygnus.co.uk>
17542 * md.texi (No Constraints): Delete section.
17543 * Makefile.in (genattrtab.o): Don't depend on "insn-config.h".
17544 * final.c (final_scan_insn): We always have register constraints.
17545 * genattrtab.c: Don't include "insn-config.h".
17546 (write_attr_case): We always have register constraints.
17547 * genconfig.c (register_constraint_flag): Delete.
17548 (walk_insn_part): Don't check whether we have register constraints.
17549 (main): Don't write out "#define REGISTER_CONSTRAINTS".
17550 * genoutput.c (have_constraints): Delete.
17551 (main): Don't set it.
17552 (output_operand_data): We always have constraints.
17553 (scan_operands): Likewise.
17554 (compare_operands): Likewise.
17555 * local-alloc.c (block_alloc): We always have constraints.
17556 (requires_inout): Always compile this function.
17557 * recog.c (extract_insn): We always have constraints.
17558 (constrain_operands, reg_fits_class_p): Always compile these
17560 * recog.h (struct recog_data): Delete non-REGISTER_CONSTRAINTS
17562 (struct insn_operand_data): Likewise.
17563 * regclass.c (regclass): We always have constraints.
17564 (record_reg_classes, copy_cost, record_address_regs,
17565 auto_inc_dec_reg_p): Always compile these functions.
17566 * regmove.c (regmove_optimize): We always have constraints.
17567 * reload.c (find_reloads): Likewise.
17568 * reload1.c (reload): Likewise.
17569 (reload_cse_simplify_operands): Likewise.
17570 * i860.c (output_delay_insn): Likewise.
17572 Thu Sep 30 23:04:41 1999 Mark P. Mitchell <mark@codesourcery.com>
17574 * iris6.h (BUILD_VA_LIST_TYPE): Define.
17576 Thu Sep 30 18:44:50 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
17578 * rs6000.c (rs6000_build_va_list): Create a TYPE_DECL node
17579 for the va_list record.
17581 Thu Sep 30 18:34:54 1999 Jan Hubicka <hubicka@freesoft.cz>
17583 * i386.c (ix86_adjust_cost): Ignore false ebp dependencies in
17586 Thu Sep 30 18:31:36 1999 Jan Hubicka <hubicka@freesoft.cz>
17588 * alias.c: Include insn-flags.h.
17589 * Makefile.in (alias.o): Update.
17591 Thu Sep 30 18:21:30 1999 Jan Hubicka <hubicka@freesoft.cz>
17593 * i386.c (ix86_expand_int_movcc): Convert LEU and GTU comparisons
17594 to LTU and GEU. Handle more cases using sbb.
17596 Thu Sep 30 18:18:39 1999 Jan Hubicka <hubicka@freesoft.cz>
17598 * i386.md (truncatexfdf splitters): Do not use subreg.
17599 (fop XFmode patterns): Fix mode in operand testing.
17601 Thu Sep 30 18:04:13 1999 Richard Henderson <rth@cygnus.com>
17603 * jump.c (jump_optimize_1): Amend last change to test only the
17604 form of the operand, not the insn.
17606 * jump.c (jump_optimize_1) [conditional_move]: Use general_operand
17607 not register_operand to determine when B may need preloading.
17609 Thu Sep 30 17:39:16 1999 Richard Henderson <rth@cygnus.com>
17611 * alpha.md (*): Use nonimmediate not general_operand for SET_DEST.
17612 (ffsdi2, extxl, insxh, mskxh): Add missing DImode to SET_SRC.
17613 (call-value patterns): Move to end of file.
17614 (*): Remove mode from label_ref in (pc) context.
17615 (movstrqi): Use memory not general_operand for BLKmode operands.
17616 (prologue_stack_probe_loop, builtin_longjmp): Add missing mode
17617 to register_operand operands.
17618 (peep2 patterns): Convert from commented-out peephole patterns.
17620 Thu Sep 30 14:39:17 1999 Bernd Schmidt <bernds@cygnus.co.uk>
17622 * tree.h (enum built_in_function): Rename BUILT_IN_DWARF_REG_SIZE
17623 to BUILT_IN_INIT_DWARF_REG_SIZES.
17624 * builtins.c (expand_builtins, case BUILT_IN_INIT_DWARF_REG_SIZES):
17625 Renamed from BUILT_IN_DWARF_REG_SIZE; call
17626 expand_builtin_init_dwarf_reg_sizes.
17627 * c-decl.c (init_decl_processing): Replace __builtin_dwarf_reg_size
17628 with __builtin_init_dwarf_reg_size_table.
17629 * dwarf2out.c (struct reg_size_range): Delete.
17630 (expand_builtin_init_dwarf_reg_sizes): New function.
17631 (expand_builtin_dwarf_reg_size): Delete.
17632 * except.h (expand_builtin_init_dwarf_reg_sizes): Declare.
17633 (expand_builtin_dwarf_reg_size): Don't declare.
17634 * libgcc2.c (dwarf_reg_size_table_initialized): New.
17635 (dwarf_reg_size_table): New.
17636 (init_reg_size_table): New function.
17637 (copy_reg): Use dwarf_reg_size_table.
17638 (eh_context_initialize): Make sure dwarf_reg_size_table is initialized
17641 Thu Sep 30 05:40:34 1999 Richard Earnshaw <rearnsha@arm.com>
17643 * c-lang.c (finish_file case ndef ASM_OUTPUT_{CON,DE}STRUCTOR):
17644 Correctly build argument list to constructor and destructor functions.
17646 Thu Sep 30 00:13:27 1999 Dirk Zoller <duz@rtsffm.com>
17648 * c-tree.h (warn_float_equal): Declare.
17649 * c-decl.c (warn_float_equal): Define.
17650 (c_decode_option): Recognize -W[no-]float-equal.
17651 * c-typeck.c (build_binary_op): Conditionally warn
17652 about equality tests of floating point types.
17653 * toplev.c (documented_lan_options): Add -W[no-]float-equal.
17654 * invoke.texi: Add docs for -Wfloat-equal warning.
17656 Wed Sep 29 23:43:39 1999 Jeffrey A Law (law@cygnus.com)
17658 * h8300.h (INIT_TARGET_OPTABS): Use init_one_optab instead of
17659 generating RTL directly.
17660 * mips.h (INIT_TARGET_OPTABS): Likewise.
17661 * mn10200.h (INIT_TARGET_OPTABS): Likewise.
17663 * expr.h (init_mov_optab): Delete declaration
17665 * h8300.c (WORD_REG_USED): Update to avoid useless register
17666 saves in interrupt functions and functions which never return.
17668 * cse.c (struct set): Delete inner_dest_loc field.
17669 (cse_insn): Remove assignments to inner_dest_loc field.
17671 Wed Sep 29 16:06:20 1999 Richard Henderson <rth@cygnus.com>
17673 * ggc-page.c: Don't include <unistd.h> etc taken care of
17674 by "system.h". Include <sys/mman.h> afterward.
17676 Wed Sep 29 16:05:18 1999 Richard Henderson <rth@cygnus.com>
17678 * rs6000.c (rs6000_encode_section_info): If ggc_p, use
17681 Tue Sep 28 16:45:40 1999 David Edelsohn <edelsohn@gnu.org>
17683 * xcoffout.c (xcoffout_declare_function): Add documentation.
17684 * rs6000.c (num_insns_constant_wide): Use TARGET_POWERPC64 not
17685 TARGET_64BIT. Compare constant to -1, not bit pattern.
17686 (easy_fp_constant): Use TARGET_POWERPC64 not TARGET_64BIT.
17687 (expand_block_move): Allow 8 DImode loads for PowerPC64. Fix
17690 Tue Sep 28 16:43:14 1999 Nick Clifton <nickc@cygnus.com>
17692 * dwarf2out.c (add_abstract_origin_attribute): Abort if
17693 origin_die is NULL.
17694 (gen_inlined_enumeration_type_die): Do not abort if the type has
17695 not been writeen out.
17696 (gen_inlined_structure_type_die): Do not abort if the type has
17697 not been writeen out.
17698 (gen_inlined_union_type_die): Do not abort if the type has
17699 not been writeen out.
17700 (gen_tagged_type_instantiation_die): Do not abort if the type
17701 has not been written out.
17703 Tue Sep 28 14:33:47 1999 Bernd Schmidt <bernds@cygnus.co.uk>
17705 * c-decl.c (init_decl_processing): If MD_INIT_BUILTINS is defined,
17707 * reg-stack.c (straighten_stack): Copy hard reg set with
17710 Tue Sep 28 01:11:05 1999 Richard Henderson <rth@cygnus.com>
17712 * builtins.c (stabilize_va_list): Stabilize array type va_list
17713 to a pointer type, not the base record type.
17714 (expand_builtin_va_copy): Dereference the pointers explicitly;
17715 use the correct size for the copy.
17717 * rs6000.c (rs6000_va_start): Dereference valist to get to the record.
17718 (rs6000_va_arg): Likewise.
17720 Mon Sep 27 23:27:21 1999 Richard Henderson <rth@cygnus.com>
17722 * rtl.h (struct rtx_def): Move gc_mark to align mode field.
17724 Mon Sep 27 23:20:29 1999 Mark Mitchell <mark@codesourcery.com>
17726 * tree.h (struct tree_decl): Use `bclass', not `class', in name of
17728 (DECL_BUILT_IN_CLASS): Adjust accordingly.
17730 Mon Sep 27 23:03:16 1999 Richard Henderson <rth@cygnus.com>
17732 * ggc-page.c (GGC_MIN_LAST_ALLOCATED): New.
17733 (init_ggc): Use it instead of a constant.
17734 (ggc_collect): Bound allocated_last_gc by it.
17736 Mon Sep 27 19:06:04 1999 Jeffrey A Law (law@cygnus.com)
17738 * fixinc/fixinc.irix (stdio.h): Hack stdio.h to avoid problems
17741 Mon Sep 27 19:40:17 CEST 1999 Marc Espie <espie@cvs.openbsd.org>
17743 * configure.in (mips*el-*-openbsd*): Don't duplicate default settings.
17744 (mips*-*-openbsd*): Let big endian configuration be a fragment.
17745 * configure: Regen.
17746 * config/mips/openbsd.h: New, OpenBSD little endian target.
17747 * config/mips/openbsd-be.h: New, OpenBSD big endian target fragment.
17748 * config/mips/xm-openbsd.h: New, OpenBSD host.
17750 Mon Sep 27 10:28:48 1999 Andreas Schwab <schwab@suse.de>
17752 * config/m68k/m68k.c (output_function_prologue,
17753 output_function_epilogue): Use
17754 current_function_uses_pic_offset_table instead of regs_ever_live
17755 to decide whether to save/restore pic register.
17756 (legitimize_pic_address): Don't modify regs_ever_live any more.
17758 Sun Sep 26 10:55:36 1999 Mark Mitchell <mark@codesourcery.com>
17760 * function.h (struct function): Add x_dont_save_pending_sizes_p.
17761 * stor-layout.c (variable_size): Don't add sizes to the pending
17762 sizes list if x_dont_save_pending_sizes_p is set.
17764 Sun Sep 26 16:36:52 1999 Robert Lipe (robertlipe@usa.net)
17766 * config/i386/dgux.h (SELECT_RTX_SECTION): Provide dummy argument
17767 for symbolic_operand().
17768 * config/i386/sco5.h (SELECT_RTX_SECTION): Likewise.
17770 Sun Sep 26 07:37:11 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17772 * combine.c (gen_rtx_combine): Add missing call to va_end().
17774 * final.c (asm_fprintf): Likewise.
17776 * genattrtab.c (attr_rtx): Likewise.
17778 Sat Sep 25 13:11:07 1999 Jeffrey A Law (law@cygnus.com)
17780 * cse.c: Update comments.
17781 (cse_insn): When converting a conditional/computed jump into
17782 an unconditional jump, always make sure a BARRIER immediately
17783 follows the converted jump. Do not delete unreachable code.
17784 (cse_basic_block): Do not delete unreachable code.
17785 * toplev.c (rest_of_compilation): Move call to
17786 delete_trivially_dead_insns after the conditional call to
17789 Sat Sep 25 09:03:17 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17791 * collect2.c (make_temp_file): Don't prototype.
17793 * gcc.c (make_temp_file): Likewise.
17795 * mips.c (mips_make_temp_file): Renamed from `make_temp_file'.
17797 Sat Sep 25 13:42:15 1999 Nick Clifton <nickc@cygnus.com>
17799 * varasm.c (asm_emit_uninitialised): New function: Generate
17800 the assembler statements necessary to declare an uninitialised
17802 (ASM_EMIT_LOCAL): New macro: Emit a local, uninitialised
17804 (ASM_EMIT_BSS): New macro: Emit an entry in the bss section.
17805 (ASM_EMIT_COMMON): New macro: Emit an entry in the common
17807 (assemble_variable): Use asm_emit_uninitialised to emit an
17808 uninitialised variable.
17810 Fri Sep 24 17:10:56 1999 Nick Clifton <nickc@cygnus.com>
17812 * combine.c (simplify_comparison): Cope with downshifting a 32 bit
17813 constant on a 64 bit host. Patch supplied by Geoffrey Keating
17814 <geoffk@cygnus.com>.
17816 Fri Sep 24 10:48:10 1999 Bernd Schmidt <bernds@cygnus.co.uk>
17818 * builtins.c (expand_builtin): Use MD_EXPAND_BUILTIN if defined.
17819 * c-common.h (builtin_function): Don't declare.
17821 * c-decl.c (duplicate_decls): Use DECL_BUILT_IN_CLASS rather than
17823 (pushdecl): Likewise.
17824 (finish_decl): Likewise.
17825 (builtin_function): New arg CLASS. Arg FUNCTION_CODE now of type
17826 int. All callers changed.
17827 Set the builtin's DECL_BUILT_IN_CLASS.
17828 * tree.h (enum built_in_class): New.
17829 (enum built_in_function): Delete NOT_BUILT_IN.
17830 (DECL_FUNCTION_CODE): The corresponding field in tree_decl is now
17832 (DECL_SET_FUNCTION_CODE): Likewise.
17833 (DECL_BUILT_IN_CLASS): New macro.
17834 (DECL_BUILT_IN): Use DECL_BUILT_IN_CLASS.
17835 (struct tree_decl): Split builtin function code field into a
17837 (builtin_function): Declare.
17839 Fri Sep 24 01:45:05 1999 Mark Mitchell <mark@codesourcery.com>
17841 * optabs.c (init_traps): Fix typo in last change.
17843 Fri Sep 24 01:10:11 1999 Mark Mitchell <mark@codesourcery.com>
17845 * toplev.c (rest_of_decl_compilation): Update comment.
17847 Fri Sep 24 11:57:06 1999 Geoffrey Keating <geoffk@cygnus.com>
17849 * config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Put the symbol
17850 in .sbss if appropriate.
17851 (EXTRA_SECTION_FUNCTIONS): Add sbss.
17852 (SBSS_SECTION_ASM_OP): New macro.
17853 * config/mips/linux.h (EXTRA_SECTION_FUNCTIONS): Add sbss.
17854 (EXTRA_SECTIONS): Add in_sbss.
17855 * config/mips/mips.h: Prototype sbss_section.
17857 Thu Sep 23 18:18:55 1999 Mark Mitchell <mark@codesourcery.com>
17859 * stmt.c (expand_start_bindings): Don't allow cleanup instructions
17862 Thu Sep 23 18:07:01 1999 Mark Mitchell <mark@codesourcery.com>
17864 * optabs.c (init_traps): Register trap_rtx as a GC root.
17866 Thu Sep 23 17:41:47 1999 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
17868 * config/mips/mips.c (function_arg_pass_by_reference): Define
17869 unconditionally, since it's called unconditionally.
17871 Thu Sep 23 13:40:02 1999 Jason Merrill <jason@yorick.cygnus.com>
17873 * toplev.c (documented_lang_options): Add -fshort-wchar.
17874 * c-decl.c (c_decode_option): Likewise.
17875 (init_decl_processing): If -fshort-wchar, use 'short unsigned int'
17877 * c-common.c, c-lex.c: Get WCHAR_TYPE_SIZE from wchar_type_node.
17878 * gcc.c (default_compilers): If -fshort-wchar,
17879 override __WCHAR_TYPE__.
17880 * tm.texi (C Dialect Options): Add -fshort-wchar.
17882 * dwarf2out.c (output_aranges): Use DW_AT_location to find the
17883 symbol for a variable.
17885 * cpplib.h (CPP_PREPROCESSED): New macro.
17886 * cpplib.c (handle_directive): Don't complain about `# NUMBER' if
17887 we're seeing this input for a second time.
17889 Thu Sep 23 12:54:49 1999 Alex Samuel <samuel@codesourcery.com>
17891 * emit-rtl.c (init_emit_once): Initialize modes first.
17893 Sun Sep 19 01:23:23 1999 Alex Samuel <samuel@codesourcery.com>
17895 * config/i386/i386.c (pic_label_name): Change to char pointer.
17896 (global_offset_table): New variable.
17897 (load_pic_register): Fill global_offset_table if it hasn't
17898 already been done. Allocate pic_label_name dynamically.
17899 * ggc.h (empty_string): New variable.
17900 * ggc-simple.c (empty_string): Likewise.
17901 (init_ggc): Allocate empty_string and add as root.
17902 * stmt.c (digit_strings): New variable.
17903 (init_stmt): Add last_block_end_note as root. Allocate and
17904 initialize digit_strings.
17905 (expand_asm_operands): Use empty_string instead of string
17906 constant. Use digit_strings instead of string constants.
17907 * profile.c (init_arc_profiler): Allocate string with
17908 ggc_alloc_string instead of xmalloc.
17909 (output_func_start_profiler): Likewise.
17910 * c-typeck.c (digest_init): Check if init is error_mark_node.
17912 Thu Sep 23 12:59:14 1999 Alex Samuel <samuel@codesourcery.com>
17913 Richard Henderson <rth@cygnus.com>
17915 * ggc-page.c: New file.
17916 * Makefile.in (ggc-page.o): New.
17918 Thu Sep 23 13:55:21 1999 Jeffrey A Law (law@cygnus.com)
17920 * invoke.texi: Document -fdelete-null-pointer-checks
17921 * toplev.c (flag_delete_null_pointer_checks): New.
17922 (f_options): Add entry for -fdelete-null-pointer-checks.
17923 (rest_of_compilation): Conditionalize null pointer check
17924 elimination on flag_delete_null_pointer_checks.
17925 (main): If -O2 or greater, enable -fdelete-null-pointer-checks
17927 1999-09-23 10:56 -0700 Zack Weinberg <zack@bitmover.com>
17929 * iso646.h, stdarg.h, stdbool.h, stddef.h, varargs.h: Add
17930 copyright notice and special exception to GPL.
17932 Thu Sep 23 13:40:23 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17934 * abi64.h (mips_function_value): Add prototype arguments.
17936 * mips-protos.h: New file with mips prototypes.
17938 * mips.c: Include "tm_p.h".
17939 (mktemp, lookup_name): Add prototype arguments.
17940 (extern_list, string_constant, mips_fill_delay_slot,
17941 mips_output_external, mips_output_external_libcall,
17942 mips_output_filename, mips_declare_object, function_prologue,
17943 mips_expand_prologue, function_epilogue, mips16_constant,
17944 build_mips16_function_stub, mips_output_conditional_branch):
17946 (mips_va_start): Remove unused variable `u'.
17947 (mips_va_arg): Cast value to unsigned when comparing against one.
17949 (save_restore_insns, mips_expand_prologue): Add missing arg in
17950 call to `large_int'.
17952 * mips.h: Move prototypes to mips-protos.h.
17953 (data_section, memory_address_p, rdata_section,
17954 readonly_data_section, simple_epilogue_p, text_section): Delete
17955 prototypes delcared elsewhere.
17956 (mips_epilogue_delay_slots, print_options): Delete unused decls.
17958 (GO_PRINTF, GO_PRINTF2): Call fprintf, not trace.
17960 * mips.md: Delete extra args in call to `mips_move_2words'.
17962 * xm-iris6.h (alloca): Add prototype argument.
17964 * genpeep.c: Include "tm_p.h" in generated output file.
17966 Thu Sep 23 10:36:55 EDT 1999 Andrew MacLeod <amacleod@cygnus.com>
17968 * basic-block.h (find_edge_index): Change parameters.
17969 * flow.c (verify_edge_list): Pass basic_block parameters to
17970 find_edge_index instead of integers.
17972 Thu Sep 23 15:54:12 1999 Nick Clifton <nickc@cygnus.com>
17974 * combine.c (simplify_comparison): Use an unsigned shift to adjust
17977 Thu Sep 23 08:46:21 1999 Guy Harris <guy@netapp.com>
17979 * gcc.1: Fix a formatting error.
17981 Wed Sep 22 16:10:21 1999 Martin v. Löwis <loewis@informatik.hu-berlin.de>
17983 * install.texi (Configurations): Remove pyramid. Add fr30, i686,
17984 i786, mn10200, mn10300, pdp11, v850.
17986 Thu Sep 23 07:37:13 1999 Dan Nicolaescu <dann@ics.uci.edu>
17988 * libgcc2.c (num_digits): Add prototype with
17989 __attribute__((const)).
17990 (__terminate): Add prototype.
17992 Thu Sep 23 05:32:06 1999 Richard Henderson <rth@cygnus.com>
17994 * builtins.c, dbxout.c, varasm.c: Include tm_p.h.
17996 * alpha/alpha.c (print_operand): Fix type of `code'.
17997 (alpha_output_filename): Constify.
17998 * alpha/alpha.h: Move all function declarations ...
17999 * alpha/alpha-protos.h: ... here. New file.
18000 * alpha/elf.h (CONST_SECTION_FUNCTION): Prototype the function.
18001 (SECTION_FUNCTION_TEMPLATE): Likewise.
18003 Thu Sep 23 11:15:36 1999 Bernd Schmidt <bernds@cygnus.co.uk>
18005 * expmed.c (do_cmp_and_jump): Pass ccp_jump to can_compare_p.
18006 * expr.c (expand_expr): Likewise.
18007 (do_jump): Likewise.
18008 (do_store_flag): Pass ccp_store_flag to can_compare_p.
18009 * expr.h (enum optab_index): Add cbranch, cmov, cstore optabs and
18011 (enum can_compare_purpose): New.
18012 (can_compare_p): Adjust prototype.
18013 (prepare_cmp_insn, prepare_operand): Declare.
18014 * genopinit.c (optabs): Add cbranch_optab, cmov_optab, cstore_optab.
18015 * optabs.c (cmp_available_p): Deleted.
18016 (expand_abs): Pass ccp_jump to can_compare_p.
18017 (can_compare_p): New arg PURPOSE. Check for combined optabs.
18018 (prepare_cmp_insn): No longer static. Add arg PURPOSE.
18019 Call can_compare_p rather than cmp_available_p.
18020 (prepare_operand): No longer static.
18021 (emit_cmp_and_jump_insn): Check for and use cbranch patterns.
18022 (emit_cmp_and_jump_insns): Pass ccp_jump to prepare_cmp_insn.
18023 (expand_float): Fix a slightly broken emit_cmp_insn/emit_jump_insn
18024 sequence to use emit_cmp_and_jump_insns.
18025 (init_optabs): Initialize cbranch_optab, cmov_optab, cstore_optab.
18027 Wed Sep 22 17:58:01 1999 Stan Cox <scox@cygnus.com>
18029 * mips.h (GO_IF_LEGITIMATE_ADDRESS): Don't accept large
18030 register offsets; let LEGITIMIZE_ADDRESS load it into a register.
18031 (LEGITIMIZE_ADDRESS): Use plus_constant to avoid
18032 (plus (reg) (const_int 0))
18033 * mips.md (call_internal3c): New pattern for -mips16 -mlong-calls.
18035 Wed Sep 22 17:55:31 1999 David Edelsohn <edelsohn@gnu.org>
18037 * rs6000.c (expand_block_move): DImode loads and stores require
18038 word-aligned displacements. Increment address registers with
18039 adddi3 on 64-bit platform. Use TARGET_POWERPC64 not TARGET_64BIT.
18041 Wed Sep 22 17:35:55 1999 Michael Meissner <meissner@cygnus.com>
18043 * dwarf2out.c (base_type_die): Use the name __unknown__ if there
18044 is no name for the base type, rather than segfault. If we are
18045 writing out a complex integer type, use DW_ATE_lo_user.
18047 * expr.c (emit_move_insn_1): If we are copying a complex that fits
18048 in one word or less (complex char, complex short, or on 64 bit
18049 systems complex float) to/from a hard register, copy it through
18050 memory instead of dying in gen_{real,imag}part. If we have a
18051 short complex type, prevent inlining since it allocates stack
18054 * tree.c (build_complex_type): If we are writing dwarf2 output,
18055 generate a name for complex integer types.
18057 Wed Sep 22 11:34:08 EDT 1999 Andrew MacLeod <amacleod@cygnus.com>
18059 * basic-block.h (add_noreturn_fake_exit_edges): Use correct name.
18060 * flow.c (remove_edge): Remove extra whitespace.
18061 (remove_fake_edges): Fix comment.
18062 (add_noreturn_fake_exit_edges): Use the correct name.
18064 Wed Sep 22 16:12:40 BST 1999 Nathan Sidwell <nathan@acm.org>
18066 * Makefile.in (INTL_MOSTLYCLEAN, INTL_CLEAN): New variables.
18067 (mostlyclean): Depend on INTL_MOSTLYCLEAN.
18068 (clean): Depend on INTL_CLEAN.
18069 (maintainer-clean): Adjust.
18071 Wed Sep 22 10:18:56 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18073 * configure.in (AC_PREREQ): Bump to 2.13.
18074 (AC_C_STRINGIZE): Call this instead of using a custom macro.
18076 * gansidecl.h (HAVE_STRINGIZE): Define, if stage2 gcc && __STDC__.
18078 * system.h (HAVE_STRINGIZE): Test this instead of HAVE_CPP_STRINGIFY.
18080 * acconfig.h (HAVE_CPP_STRINGIFY): Delete.
18082 * alpha/xm-vms.h (HAVE_CPP_STRINGIFY): Delete.
18083 (HAVE_STRINGIZE): Define.
18085 Wed Sep 22 06:25:15 1999 Jim Kingdon <http://developer.redhat.com>
18087 * c-parse.in: save and restore warn_pointer_arith on __extension__
18088 along with pedantic.
18089 (SAVE_WARN_FLAGS, RESTORE_WARN_FLAGS): Added.
18090 Set the type of extension to itype rather than $<itype>1 kludge.
18091 * extend.texi (Alternate Keywords): Adjust documentation.
18092 * c-parse.c, c-parse.y, objc-parse.c, objc-parse.y: Rebuilt.
18094 Wed Sep 22 06:06:57 1999 Jeffrey A Law (law@cygnus.com)
18096 * pa.c, pa.h, pa.md: Support multiple assembler dialects in
18097 most assembler templates.
18099 * pa.c (hppa_legitimize_address): Handle full offsets for PA2.0
18100 FP loads and stores.
18101 (following_call): Always return zero for the PA8000.
18102 * pa.h (GO_IF_LEGITIMATE_ADDRESS): Handle full offsets for PA2.0
18103 FP loads and stores.
18104 (LEGITIMIZE_RELOAD_ADDRESS): Similarly.
18106 * pa.h (BRANCH_COST): Define.
18108 * pa.md (return, return_internal): Use bve for PA2.0.
18110 * pa.md (fused multiply): Add variants which reduce height for the
18111 fused multiply, but which still generate 2 insns.
18112 (fnegabs): Similarly.
18114 * pa.md (subsi3): Turn into an expander. Create two anonymous
18115 patterns. One for PA2.0 one for PA1.x. Use mtsarcm for PA2.0.
18116 * pa.h (EXTRA_CONSTRAINT): Handle 'S'.
18118 * pa.md (floatunssisf2, floatunssidf2): Generate different RTL
18120 (floatunssidf2_pa20, floatunssisf2_pa20): New patterns for PA2.0
18122 (floatunsdisf2, floatunsdidf2, fixuns_truncsfsi2): Likewise.
18123 (fixuns_truncdfsi2, fixuns_truncsfdi2, fixuns_truncdfsi2): Likewise.
18125 * regclass.c (init_regs): Add "top_of_stack" as a garbage
18128 * flow.c (record_active_eh_regions): Terminate loop after finding
18129 the last insn in the last basic block.
18131 Wed Sep 22 20:25:00 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
18133 * config/c4x/c4x.md: Delete parallel instruction peepholes.
18135 Wed Sep 22 19:59:19 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
18137 * config/c4x/c4x.c (c4x_add_gc_roots): Add tree roots.
18139 Wed Sep 22 19:56:25 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
18141 * config/c4x/c4x.c (c4x_process_after_reload): Rework machdep insn
18142 splitting to not use output template.
18144 Wed Sep 22 19:50:12 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
18146 * config/c4x/c4x.h (EXPAND_BUILTIN_VA_START): Call c4x_va_start.
18147 * config/c4x/c4x.c (c4x_va_start): New function.
18149 Tue Sep 21 18:40:01 1999 Jan Hubicka <hubicka@freesoft.cz>
18151 * genrecog.c (not_both_true): Handle correctly cases when called for
18152 tests with different positions in the insn.
18154 Tue Sep 21 18:29:11 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18156 * machmode.h (HOST_PTR_PRINTF): Move from here ...
18158 * system.h (HOST_PTR_PRINTF): ... to here.
18160 * mips-tfile.c: Don't include machmode.h.
18162 * Makefile.in (MACHMODE_H): New variable. Update to use it.
18163 (mips-tfile.o): Don't depend on machmode.h.
18165 Tue Sep 21 18:27:34 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18167 * haifa-sched.c (sched_analyze): Rename local variable `region' to
18168 avoid conflicts with typedef struct `region' at the top level scope.
18170 Tue Sep 21 14:14:50 1999 Richard Henderson <rth@cygnus.com>
18172 * basic-block.h (basic_block): Add eh_beg, eh_end.
18173 * flow.c (entry_exit_blocks): Update.
18174 (find_basic_blocks): Don't allocate bb_eh_end, or pass it around.
18175 Call new functions.
18176 (find_basic_blocks_1): Don't record eh_list at each bb. Use
18177 lists.c functions to allocate insn lists.
18178 (make_edges): Use eh_beg+eh_end, not the lists. Split out EH
18180 (make_eh_edge): ... here. New.
18181 (move_stray_eh_region_notes): New.
18182 (record_active_eh_regions): New.
18183 (delete_unreachable_blocks): Split out block merging ...
18184 (try_merge_blocks): ... here. New.
18185 (merge_blocks_move_predecessor_nojumps): Remove edge arg.
18186 Dump debugging data.
18187 (merge_blocks_move_successor_nojumps): Likewise.
18188 (merge_blocks): Use eh_beg+eh_end to validate block movement.
18190 Tue Sep 21 11:15:03 1999 Martin v. Löwis <loewis@informatik.hu-berlin.de>
18192 * extend.texi (Bound member functions): Document unbound pmf
18195 Tue Sep 21 14:55:11 EDT 1999 Andrew MacLeod <amacleod@cygnus.com>
18197 * flow.c (split_edge): Handle insertion on a fallthrough edge which
18198 has the EXIT_BLOCK as a dest.
18200 Tue Sep 21 14:51:23 EDT 1999 Andrew MacLeod <amacleod@cygnus.com>
18202 * flow.c (remove_edge): New function to remove an edge from the
18204 (remove_fake_successors): New function to remove fake successor edges.
18205 (remove_fake_edges): New function to remove all fake edges from the
18207 (add_fake_exit_edges): New function to add fake edges from all blocks
18208 with no successors to the exit block.
18209 * basic-block.h (remove_fake_edges, add_fake_exit_edges): Add
18210 prototypes for new functions.
18212 Tue Sep 21 14:49:53 EDT 1999 Andrew MacLeod <amacleod@cygnus.com>
18214 * config/mips/elf64.h (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR):
18215 Use Pmode to determine whether to output .dword or .word.
18217 Tue Sep 21 11:04:34 1999 Alex Samuel <samuel@codesourcery.com>
18219 * tree.c (built_in_filename): New variable.
18220 (BUILT_IN_FILENAME): New macro.
18221 (init_tree_codes): Allocate built_in_filename.
18222 (make_node): Use built_in_filename instead of string constant.
18224 Tue Sep 21 14:13:27 1999 Nick Clifton <nickc@cygnus.com>
18226 * configure.in: Add fr30 target.
18227 * configure: Regenerate.
18228 * config/fr30: New directory.
18229 * config/fr30/crti.asm: New file.
18230 * config/fr30/fr30.c: New file.
18231 * config/fr30/crtn.asm: New file.
18232 * config/fr30/fr30.h: New file.
18233 * config/fr30/fr30.md: New file.
18234 * config/fr30/lib1funcs.asm: New file.
18235 * config/fr30/t-fr30: New file.
18236 * config/fr30/xm-fr30.h: New file.
18238 Tue Sep 21 06:45:31 1999 Jeffrey A Law (law@cygnus.com)
18240 * flow.c (merge_blocks_move_successor_nojumps): Delete the
18241 BARRIER at the end of the successor, not the BARRIER before
18244 * pa.c (pa_add_gc_roots): Fix thinko in last change.
18246 Tue Sep 21 05:29:17 1999 Richard Earnshaw (rearnsha@arm.com)
18248 * stmt.c (any_pending_cleanups): Don't crash when
18249 current_function->stmt is unset.
18251 Tue Sep 21 00:59:49 1999 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
18253 * emit-rtl.c (init_emit_once): Initialize const_int_rtx before
18254 other initializations that may use it for relative offsets.
18256 Mon Sep 20 21:43:25 1999 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
18258 * config/i386/sol2.h (PREFERRED_DEBUGGING_TYPE): Use stabs.
18259 (ASM_SPEC): Moved from sol2dbg.h. Added work-around for gas.
18260 * config/i386/sol2dbg.h: Removed.
18261 * config/i386/sol2gas.h: New file, to enable gas work-around.
18262 * configure.in: Use i386/sol2gas.h on Solaris/x86 --with-gas.
18263 Don't use sol2dbg.h.
18264 * configure: Rebuilt.
18266 Mon Sep 20 13:29:41 1999 Mark Mitchell <mark@codesourcery.com>
18268 * invoke.texi (-fthis-is-variable): Remove documentation.
18270 Mon Sep 20 12:59:16 1999 Richard Henderson <rth@cygnus.com>
18272 * basic-block.h (compute_bb_for_insn): Declare.
18273 * flow.c (compute_bb_for_insn): Export. Don't accept the varray
18274 to use; set size of basic_block_for_insn directly.
18275 (find_basic_blocks): Update.
18277 Mon Sep 20 15:11:54 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18279 * flow.c (verify_flow_info): Fix typo, "abort;" -> "abort ();".
18281 Mon Sep 20 14:56:34 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18283 * crtstuff.c (ON_EXIT): Delete empty macro definition.
18284 (__do_global_ctors_aux): Call atexit(), not ON_EXIT().
18286 Mon Sep 20 15:25:35 1999 Nick Clifton <nickc@cygnus.com>
18288 * c-decl.c (c_decode_option): Extend comment.
18290 Mon Sep 20 14:43:37 1999 Nick Clifton <nickc@cygnus.com>
18292 * toplev.c (progname): Make 'const char *'
18293 (flag_print_mem): Move out of main.
18294 (version_flag): Move out of main.
18295 (filename): Move out of main.
18296 (debug_args): Remove g prefix from options.
18297 (documented_lang_options): Remove cpplib specific options.
18298 (display_help): Add g prefix to debug options.
18299 (check_lang_option): Delete this function.
18300 (decode_d_option): New function: Decode -d... option.
18301 (decode_f_option): New function: Decode -f... option.
18302 (decode_W_option): New function: Decode -W... option.
18303 (decode_g_option): New function: Decode -g... option.
18304 (independent_decode_option): New function: Decode a language
18305 independent command line option.
18306 (main): Invoke lang_decode_option and then
18307 independent_decode_option on each command line option in
18310 Mon Sep 20 05:41:36 1999 Jeffrey A Law (law@cygnus.com)
18312 Revert this change. Gavin's patch to operand_equal_p is a better fix.
18313 * fold-const.c (fold_range_test): Do not try to fold the range
18314 test if the rhs or lhs has side effects.
18316 * basic-block.h (compute_flow_dominators): Declare.
18318 * gcse.c (alloc_code_hoist_mem): New function.
18319 (free_code_hoist_mem, compute_code_hoist_vbeinout): Likewise.
18320 (compute_code_hoist_data, hoist_expr_reaches_here_p): Likewise.
18321 (hoist_code, one_code_hoisting_pass): Likewise.
18322 (gcse_main): If optimizing for size, then hoist expressions
18323 computed in multiple dominated basic blocks.
18325 * gcse.c (invalid_nonnull_info): New function.
18326 (delete_null_pointer_checks): Likewise.
18327 * rtl.h (delete_null_pointer_checks): Declare.
18328 * toplev.c (rest_of_compilation): Call delete_null_pointer_checks.
18330 * flow.c (merge_blocks_move_predecessor_nojumps): New function.
18331 (merge-blocks_move_successor_nojumps): Likewise.
18332 (merge_blocks): Allow merging of some blocks, even if it requires
18333 physical movement of the blocks, but not if it requires new jumps.
18335 * bitmap.c (debug_bitmap_file): Renmaed from bitmap_debug_file.
18336 Callers and prototype changed.
18337 * bitmap.h: Fix debug_bitmap and debug_bitmap_file prototypes.
18339 Mon Sep 20 06:56:32 1999 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
18341 * config/sparc/sol2.h (LINK_SPEC): Avoid the duplication of
18342 -YP when both -p and -pg are present. From i386/sol2.h.
18344 Mon Sep 20 10:49:05 1999 Bernd Schmidt <bernds@cygnus.co.uk>
18346 * Makefile.in (distclean): Delete tm_p.h.
18347 * configure.in: Create a new file, "tm_p.h", from a list in
18348 "tm_p_file". For ix86 systems, set up "tm_p_file" to include
18349 "i386/i386-protos.h".
18351 * alias.c: Include "tm_p.h".
18352 * c-typeck.c: Likewise.
18353 * calls.c: Likewise.
18355 * emit-rtl.c: Likewise.
18356 * explow.c: Likewise.
18357 * expmed.c: Likewise.
18358 * expr.c: Likewise.
18359 * final.c: Likewise.
18360 * flow.c: Likewise.
18361 * fold-const.c: Likewise.
18362 * function.c: Likewise.
18363 * gcse.c: Likewise.
18364 * global.c: Likewise.
18365 * haifa-sched.c: Likewise.
18366 * integrate.c: Likewise.
18367 * jump.c: Likewise.
18368 * local-alloc.c: Likewise.
18369 * loop.c: Likewise.
18370 * optabs.c: Likewise.
18371 * recog.c: Likewise.
18372 * reg-stack.c: Likewise.
18373 * regclass.c: Likewise.
18374 * regmove.c: Likewise.
18375 * reload.c: Likewise.
18376 * reload1.c: Likewise.
18377 * reorg.c: Likewise.
18378 * resource.c: Likewise.
18379 * stmt.c: Likewise.
18380 * stor-layout.c: Likewise.
18381 * toplev.c: Likewise.
18382 * tree.c: Likewise.
18383 * unroll.c: Likewise.
18384 * genattrtab.c (main): Make generated file include "tm_p.h".
18385 * genemit.c (main): Likewise.
18386 * genoutput.c (main): Likewise.
18387 * genrecog.c (main): Likewise.
18389 * i386.h: Delete all prototypes.
18390 * i386.c: Include "tm_p.h".
18391 (ix86_attr_length_default): Call constant_call_address_operand
18392 with correct number of arguments.
18393 * i386-protos.h: New file.
18394 * i386.md (unnamed patterns): Call constant_call_address_operand
18395 with correct number of arguments.
18396 (exception_receiver): Call load_pic_register with correct number
18399 Sun Sep 19 14:18:39 1999 Richard Henderson <rth@cygnus.com>
18401 * c-pragma.c (mark_align_stack): Dereference the void* properly.
18403 Sun Sep 19 09:03:40 1999 Mark Mitchell <mark@codesourcery.com>
18405 * rtl.h (insns_safe_to_move_p): New function.
18406 * loop.c (find_and_verify_loops): Use it.
18407 * rtlanal.c (insns_safe_to_move_p): Define it.
18409 Sun Sep 19 02:54:33 1999 Richard Henderson <rth@cygnus.com>
18411 * c-pragma.c: Include ggc.h.
18412 * Makefile.in (c-pragma.o): Update.
18414 Sat Sep 18 16:01:18 1999 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
18416 * config/i386/sol2.h (CPP_SPEC): Support -[p]threads
18417 (LIB_SPEC): Likewise.
18418 (LINK_SPEC): Do not assert -z text with -shared -mimpure-text.
18419 Reindent -YP/-p/-pg.
18420 Copied from config/sparc/sol2.h.
18422 Sat Sep 18 11:52:43 1999 Richard Henderson <rth@cygnus.com>
18424 * c-pragma.c (mark_align_stack): New.
18425 (init_pragma): New.
18426 * c-pragma.h (init_pragma): Declare it.
18427 * c-lex.c (init_parse): Call it.
18429 Sat Sep 18 15:20:38 1999 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
18431 * configure.in: Pick up thread library on Solaris/x86 just
18432 like on Solaris/sparc.
18433 * configure: Rebuilt.
18435 Sat Sep 18 11:15:58 1999 Alex Samuel <samuel@codesourcery.com>
18437 * rtl.h (global_rtx_index): New enum.
18438 (global_rtl): Change to array of rtx.
18439 (pc_rtx, cc0_rtx): Redefine accordingly.
18440 (cc0_rtx, stack_pointer_rtx, frame_pointer_rtx): Likewise.
18441 (hard_frame_pointer_rtx, arg_pointer_rtx): Likewise.
18442 (virtual_incoming_args_rtx, virtual_stack_vars_rtx): Likewise.
18443 (virtual_outgoing_args_rtx, virtual_cfa): Likewise.
18444 (const_int_rtx): Change to array of rtx.
18445 (const0_rtx, const1_rtx, const2_rtx, constm1_rtx): Redefine
18447 * emit-rtl.c (global_rtl): Change to array of rtx.
18448 (const_int_rtx): Change to aray of rtx.
18449 (gen_rtx_CONST_INT): Redefine accordingly.
18450 (init_emit_once): Allocate and initialize global_rtl. Likewise
18451 for const_int_rtx. Add both as GC roots.
18452 * genattrtab.c (global_rtl): Update declaration.
18454 1999-09-17 Ulrich Drepper <drepper@cygnus.com>
18456 * Makefile (USER_H): Add iso646.h back.
18458 Sat Sep 18 01:07:21 1999 Jeffrey A Law (law@cygnus.com)
18460 * haifa-sched.c (sched_analyze): Use free_INSN_LIST_list instead of
18461 zapping the LOG_LINKS of sched_before_next_call.
18463 * pa.h (INSN_SETS_ARE_DELAYED): Delete.
18464 * pa.c (insn_refs_are_delayed): Renamed from
18465 insn_sets_and_refs_are_delayed.
18467 Fri Sep 17 15:19:01 1999 Mark Mitchell <mark@codesourcery.com>
18469 * functiion.h (struct function): Add x_whole_function_mode_p.
18470 (retrofit_block): Declare.
18471 * function.c (retrofit_block): New function.
18472 (identify_blocks): Add assertions. Allow an incomplete set of
18473 block notes if we're still generating code for the function.
18474 * integrate.c: Include loop.h.
18475 (expand_inline_function): Call find_loop_tree_blocks to map block
18476 notes to blocks when in whole-function mode. Use retrofit_block
18477 to insert new BLOCKs for the inlined function, rather than
18479 * stmt.c (expand_fixup): Likewise. Don't use pushlevel/polevel.
18480 * Makefile.in (integrate.o): Depend on loop.h.
18482 Fri Sep 17 15:11:20 1999 Mark Mitchell <mark@codesourcery.com>
18484 * tree.h (warn_about_unused_variables): Declare.
18485 * stmt.c (warn_about_unused_variables): New function, split out
18487 (expand_end_bindings): Here.
18489 Fri Sep 17 15:07:37 1999 Mark Mitchell <mark@codesourcery.com>
18491 * stmt.c (preserve_subexpressions_p): Don't crash when
18492 current_function->stmt is unset.
18494 Fri Sep 17 15:03:16 1999 Mark Mitchell <mark@codesourcery.com>
18496 * stmt.c (expand_start_bindings): Allow callers to pass a flag
18497 indicating that no NOTE_INSN_BLOCK_BEG note is required.
18498 (expand_start_target_temps): Use it.
18499 * except.c (expand_eh_region_start_for_decl): Likewise.
18500 * expr.c (expand_expr): Likewise.
18502 Fri Sep 17 15:05:27 1999 Gavin Romig-Koch <gavin@cygnus.com>
18504 * fold-const.c (operand_equal_p): Pay attention to side effects.
18506 Fri Sep 17 11:14:17 1999 Jason Merrill <jason@yorick.cygnus.com>
18508 * libgcc2.c (L_exit): Check for ON_EXIT, not HAVE_ON_EXIT.
18509 * sparc/sunos4.h (HAVE_ON_EXIT): Remove.
18511 * tlink.c (scan_linker_output): Look for keywords before accepting
18512 a mangled name in quotes.
18514 Thu Sep 16 16:47:08 1999 Richard Henderson <rth@cygnus.com>
18516 * alpha/alpha-interix.h (DWARF2_UNWIND_INFO): Define to zero.
18517 * alpha/osf2or3.h (DWARF2_UNWIND_INFO): Likewise.
18519 Thu Sep 16 16:35:41 1999 Richard Henderson <rth@cygnus.com>
18521 * alpha.md: Revert Thu Nov 26 change that came in through the
18522 last gcc2 merge: reinstate (plus (plus ...)) reload patterns.
18523 Avoid earlyclobber when possible.
18525 Thu Sep 16 18:44:48 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18527 * libgcc2.c (__do_global_ctors): Call atexit with one arg.
18529 * sparc/sunos4.h (on_exit): Wrap prototype parameters in PARAMS().
18530 Define HAVE_ON_EXIT.
18532 Thu Sep 16 18:06:35 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18534 * system.h (CTYPE_CONV, TOUPPER, TOLOWER): New macros. Use
18535 CTYPE_CONV in all ctype macros.
18537 * cccp.c (initialize_char_syntax): Use uppercase ctype macro
18540 * cexp.y (initialize_random_junk): Likewise.
18542 * c4x.c (c4x_interrupt_function_p, c4x_handle_pragma): Likewise.
18544 * i370.c (handle_pragma): Likewise.
18546 * i370.h (ASM_OUTPUT_LABELREF, ASM_OUTPUT_ASCII): Likewise.
18548 * v850.c (override_options): Likewise.
18550 * doprint.c (_doprnt): Likewise.
18552 * fixinc/fixincl.c (main, quoted_file_exists, extract_quoted_files):
18555 * fixinc/server.c (load_data): Likewise.
18557 * fold-const.c (real_hex_to_f): Likewise.
18559 * genattr.c (write_upcase, gen_attr): Likewise.
18561 * genattrtab.c (convert_const_symbol_ref, evaluate_eq_attr,
18562 write_upcase): Likewise.
18564 * genemit.c (print_code): Likewise.
18566 * genopinit.c (gen_insn): Likewise.
18568 * genpeep.c (print_code): Likewise.
18570 * genrecog.c (print_code): Likewise.
18572 * optabs.c (init_libfuncs): Likewise.
18574 Thu Sep 16 14:03:32 1999 Mark Mitchell <mark@codesourcery.com>
18576 * haifa-sched.c (sched_analyze): Keep the list of notes organized
18578 (reemit_notes): Likewise.
18580 Thu Sep 16 11:50:52 1999 Alex Samuel <samuel@codesourcery.com>
18582 * ggc.h (ggc_root): Move to ggc-common.c.
18584 (ggc_mark_rtx, ggc_mark_tree): Change to macro.
18585 (ggc_mark_rtvec, ggc_mark_tree_varray): Declare extern.
18586 (ggc_mark_tree_hash_table, ggc_mark_string, ggc_mark): Likewise.
18587 (ggc_mark_roots, ggc_mark_rtx_children, ggc_mark_tree_children): New.
18588 * ggc-common.c (ggc_root): Move from ggc.h.
18589 (roots): Declare, static.
18590 (ggc_mark_rtx, ggc_mark_tree): Renamed to...
18591 (ggc_mark_rtx_children, ggc_mark_tree_children): Don't check for
18592 null or check/set mark bit.
18593 (ggc_mark_roots): New.
18594 * ggc-simple.c (ggc_collect): Call ggc_mark_roots.
18596 Thu Sep 16 11:37:32 1999 Richard Henderson <rth@cygnus.com>
18598 * m32r.c: Include toplev.h.
18599 (*): Add ATTRIBUTE_UNUSED as needed to arguments.
18600 (gen_compare): Rename swap_p to must_swap to match uses.
18601 Add default abort case.
18602 (m32r_output_function_epilogue): Remove unused variables.
18603 (m32r_print_operand): Use HOST_WIDE_INT_PRINT_HEX.
18604 * m32r.h (PROTO, STDIO_PROTO): Rename XPROTO; unconditionally
18605 define to empty parameter list. Update all uses.
18606 (predicate decls): Use enum machine_mode not int.
18607 * m32r.md (movsi): Call abort, not fatal_insn.
18608 (zero_branch_insn, rev_zero_branch_insn): Add default abort case.
18610 1999-09-14 Andrew Haley <aph@cygnus.com>
18612 * config/mips/mips.md (movsi_usw): if operand 1 is const_int 0,
18613 use $0 instead of 0.
18615 Thu Sep 16 10:53:36 1999 Bernd Schmidt <bernds@cygnus.co.uk>
18617 * reload1.c (order_regs_for_reload): Move hard_reg_n_uses
18618 computation out of loop over hard regs.
18620 Wed Sep 15 21:37:06 1999 Mark Mitchell <mark@codesourcery.com>
18622 * function.c (identify_blocks): Don't shadow a variable in an
18624 * integrate.c (integrate_decl_tree): Don't use pushlevel,
18625 pushdecl, or poplevel to build up the new BLOCK tree.
18626 (expand_inline_function): Likewise.
18627 (integrate_parm_decls): Likewise.
18629 Wed Sep 15 21:20:38 1999 Mark Mitchell <mark@codesourcery.com>
18631 * c-typeck.c (qualify_type): Merge qualifiers from both types.
18633 1999-09-15 Brad Lucier <lucier@math.purdue.edu>
18635 * toplev.c: Allow -f[no-]math-errno to set (clear) flag_errno_math
18636 * invoke.texi: Document this change.
18638 Wed Sep 15 17:56:00 1999 Richard Henderson <rth@cygnus.com>
18640 * emit-rtl.c (free_emit_status): Don't check DECL_DEFER_OUTPUT.
18642 (mark_emit_status): Renamed from mark_emit_state.
18643 * except.c (mark_eh_status): Renamed from mark_eh_state.
18644 Check not null before marking.
18645 (free_eh_status): New.
18646 * expr.c (mark_expr_status, free_expr_status): New.
18647 * function.c (free_machine_status): New.
18648 (free_after_parsing): New.
18649 (free_after_compilation): Move bits to free_after_parsing; call
18650 free_eh_status, free_expr_status; zero the marked members of the
18652 (prepare_function_start): No can_garbage_collect.
18653 Call init_eh_for_function.
18654 (expand_dummy_function_end): Free up current_function state.
18655 (mark_function_status): Renamed from mark_function_state.
18656 (mark_function_chain): No can_garbage_collect. Call mark_expr_status.
18657 * function.h (struct function): No can_garbage_collect.
18658 (free_machine_status, free_after_parsing): Declare.
18659 (free_eh_status, free_expr_status): Declare.
18660 * ggc.h (mark_expr_status): Declare.
18661 * stmt.c (free_stmt_status): Free the struct.
18662 (mark_stmt_status): Renamed from mark_stmt_state.
18663 (init_stmt): Don't call init_eh.
18664 (init_stmt_for_function): Don't call init_eh_for_function.
18665 * toplev.c (compile_file): Call init_eh.
18666 (rest_of_compilation): Free basic block info before ggc_collect.
18667 Call free_after_parsing; conditionally call free_after_compilation.
18668 * varasm.c (mark_varasm_status): Renamed from mark_varasm_state.
18669 Check not null before marking.
18670 (free_varasm_status): Don't check DECL_DEFER_OUTPUT. Free the struct.
18672 Wed Sep 15 17:53:16 1999 Richard Henderson <rth@cygnus.com>
18674 * c-lex.c (yylex): Initialize warn.
18676 Wed Sep 15 18:35:38 1999 Jeffrey A Law (law@cygnus.com)
18678 * pa.c (emit_move_sequence): Properly set the mode of the scratch
18679 register when performing secondary reloads for the SAR register.
18681 Wed Sep 15 15:51:52 1999 Mark Mitchell <mark@codesourcery.com>
18683 * rtl.h (NOTE_BLOCK_NUMBER): Replace with ...
18684 (NOTE_BLOCK): New macro.
18685 (NOTE_BLOCK_LIVE_RANGE_BLOCK): Remove.
18686 * function.h (identify_blocks): Change prototype.
18687 * function.c (identify_blocks): Simplify.
18688 (reorder_blocks): Likewise.
18689 * ggc-common.c (ggc_mark_rtx): Mark the BLOCK associated with a
18690 NOTE_INSN_BLOCK_{BEG,END}.
18691 * haifa-sched.c (sched_analyze): Don't put NOTE_BLOCK_NUMBER on
18692 the list of saved notes if the note isn't a
18693 NOTE_INSN_BLOCK_{BEG,END}.
18694 (move_insn1): Use NOTE_EH_HANDLER in comment, rather than
18696 (reemit_notes): Adjust recreation of notes to reflect new saved
18698 * print-rtl.c (print_rtx): Print the address of the BLOCK when
18699 printing a block note.
18700 * stmt.c (block_vector): Remove.
18701 (find_loop_tree_blocks): Simplify.
18702 (unroll_block_trees): Likewise.
18703 * tree.h (reorder_block): Change prototype.
18705 Wed Sep 15 14:39:35 1999 Jason Merrill <jason@yorick.cygnus.com>
18707 * gbl-ctors.h: Lose HAVE_ATEXIT. Don't define ON_EXIT.
18708 * libgcc2.c: Lose obsolete defn of WEAK_ALIAS.
18709 (__bb_init_func, __bb_init_prg): Use atexit instead of ON_EXIT.
18710 (__do_global_dtors): Likewise. Don't mess with _exit_dummy_decl.
18711 (atexit, exit): Simplify.
18712 * tm.texi: Document NEED_ATEXIT and ON_EXIT. Remove HAVE_ATEXIT.
18713 * config/lots: Remove defns of HAVE_ATEXIT.
18715 Wed Sep 15 10:25:12 1999 Mark Mitchell <mark@codesourcery.com>
18717 * calls.c (precompute_arguments): Fix typo in comment.
18718 * expr.c (preexpand_calls): Don't preexpand the cleanup in a
18721 Wed Sep 15 09:59:59 1999 Mark Mitchell <mark@codesourcery.com>
18723 * dsp16xx.c (override_options): Fix typos in GC root registration.
18725 Wed Sep 15 15:23:28 1999 Philip Blundell <pb@nexus.co.uk>
18727 * config/arm/linux-elf.h (MAKE_DECL_ONE_ONLY): Copy definition
18728 from config/svr4.h.
18729 (UNIQUE_SECTION_P, UNIQUE_SECTION): Likewise.
18730 (FUNCTION_PROFILER): Redefine appropriately for Linux.
18731 (CC1_SPEC): Likewise.
18733 Wed Sep 15 10:09:48 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18735 * genattr.c (main): Add extern prototype. Call return, not exit.
18736 * genattrtab.c (main): Likewise.
18737 * gencheck.c (main): Likewise.
18738 * gencodes.c (main): Likewise.
18739 * genconfig.c (main): Likewise.
18740 * genemit.c (main): Likewise.
18741 * genextract.c (main): Likewise.
18742 * genflags.c (main): Likewise.
18743 * gengenrtl.c (main): Likewise.
18744 * genopinit.c (main): Likewise.
18745 * genoutput.c (main): Likewise.
18746 * genpeep.c (main): Likewise.
18747 * genrecog.c (main): Likewise.
18749 * genattr.c (get_insn_name): Mark parameter with ATTRIBUTE_UNUSED.
18750 * genattrtab.c (get_insn_name): Likewise.
18751 * gencodes.c (get_insn_name): Likewise.
18752 * genconfig.c (get_insn_name): Likewise.
18753 * genemit.c (get_insn_name): Likewise.
18754 * genextract.c (get_insn_name): Likewise.
18755 * genflags.c (get_insn_name): Likewise.
18756 * genopinit.c (get_insn_name): Likewise.
18757 * genpeep.c (get_insn_name): Likewise.
18759 * gencheck.c (usage): Add static prototype.
18760 * genextract.c (print_path): Constify a char*.
18761 * genopinit.c (optabs): Likewise.
18762 * genoutput.c (operand_data, data, output_predicate_decls,
18763 compare_operands): Likewise.
18764 * genrecog.c (write_tree): Add default case in switch.
18766 Wed Sep 15 09:59:16 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18768 * rtl.h (get_insn_name, print_rtl_with_bb): Add prototypes.
18770 * print-rtl.c (get_insn_name): Remove prototype.
18772 * toplev.h (progname): Declare const.
18774 * toplev.c (init_decl_processing, init_obstacks, init_tree_codes,
18775 init_regs, init_optabs, init_stmt, init_reg_sets, dump_flow_info,
18776 dump_sched_info, dump_local_alloc, regset_release_memory,
18777 print_rtl, print_rtl_with_bb, rest_of_decl_compilation,
18778 error_with_file_and_line, error_with_decl, error_for_asm, error,
18779 fatal, warning_with_file_and_line, warning_with_decl, warning,
18780 pedwarn, pedwarn_with_decl, pedwarn_with_file_and_line, sorry):
18781 Remove redundant prototypes.
18783 (notice, check_lang_option, report_file_and_line, vnotice,
18784 mark_file_stack): Add static prototype.
18785 (set_fatal_function): Add prototype.
18786 (vnotice, report_file_and_line, set_fatal_function,
18787 check_lang_option): Constify a char*.
18788 (main): Prototype. Call return, not exit.
18790 Wed Sep 15 09:50:18 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18792 * aclocal.m4 (AC_GCC_C_LONG_DOUBLE): New macro.
18794 * configure.in (AC_GCC_C_LONG_DOUBLE): Call it.
18796 * gansidecl.h (HAVE_LONG_DOUBLE): Define if gcc for stage2.
18798 * ggc-simple.c (HAVE_LONG_DOUBLE): Test before using long double.
18800 Wed Sep 15 11:04:43 1999 Bernd Schmidt <bernds@cygnus.co.uk>
18802 * function.c (assign_parms): Delete arg SECOND_TIME. Don't test it,
18803 behave as if it's zero in all cases.
18804 (expand_function_start): Adjust call to assign_parms.
18805 * tree.h (assign_parms): Adjust prototype.
18806 * objc/objc-act.c (hack_method_prototype): Adjust call to
18809 Tue Sep 14 21:47:06 1999 Jeffrey A Law (law@cygnus.com)
18811 * cse.c (FIXED_BASE_PLUS_P): Do not consider referneces to
18812 arg_pointer_rtx fixed if the argument pointer register is
18814 (NONZERO_BASE_PLUS_P): Likewise.
18816 Tue Sep 14 20:26:02 1999 Richard Henderson <rth@cygnus.com>
18818 * rtl.def (match_insn, match_insn2): Remove match_insn; rename
18819 match_insn2 to match_insn.
18820 * genrecog.c (add_to_sequence): Rename MATCH_INSN2.
18822 Tue Sep 14 20:10:29 1999 Richard Henderson <rth@cygnus.com>
18824 * Makefile.in (USER_H): Remove va-foo.h.
18826 * ginclude/{va-alpha.h,va-arc.h,va-c4x.h,va-clipper.h,va-h8300.h,
18827 va-i860.h,va-i960.h,va-m32r.h,va-m88k.h,va-mips.h,va-mn10200.h,
18828 va-mn10300.h,va-pa.h,va-ppc.h,va-pyr.h,va-sh.h,va-sparc.h,
18829 va-spur.h,va-v850.h}: Remove.
18831 Tue Sep 14 19:43:16 1999 Richard Henderson <rth@cygnus.com>
18833 * sparc/sparc.md (eligible_for_return_delay): New attribute.
18834 (in_return_delay): Use it instead of match_insn.
18836 Tue Sep 14 23:05:37 1999 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
18838 * config/alpha/va_list.h (va-alpha.h): Do not include.
18839 (__gnuc_va_list): Typedef as in varargs.h.
18841 Tue Sep 14 18:14:03 1999 Richard Henderson <rth@cygnus.com>
18843 * ggc-common.c (ggc_mark_tree): Mark DECL_SOURCE_FILE and
18844 DECL_LIVE_RANGE_RTL.
18846 Tue Sep 14 16:47:08 1999 Mark Mitchell <mark@codesourcery.com>
18848 * except.c (expand_eh_region_start_for_decl): Use NOTE_EH_HANDLER,
18849 not NOTE_BLOCK_NUMBER.
18850 (expand_eh_region_end): Likewise.
18851 (find_exception_handler_labels): Likewise.
18852 (scan_region): Likewise.
18853 (exception_optimize): Likewise.
18854 (update_rethrow_references): Likewise.
18855 (set_insn_eh_region): Likewise.
18856 * final.c (final_scan_insn): Likewise.
18857 * flow.c (make_edges): Likewise.
18858 * integrate.c (expand_inline_function): Likewise.
18859 * print-rtl.c (print_rtx): Likewise.
18861 Tue Sep 14 16:30:16 1999 Richard Henderson <rth@cygnus.com>
18863 * ginclude/stdarg.h, ginclude/varargs.h: Implement in
18864 terms of builtin functions and types.
18866 * mips.c (mips_build_va_list): New.
18867 (mips_va_start, mips_va_arg): New.
18868 * mips.h (BUILD_VA_LIST_TYPE): New.
18869 (EXPAND_BUILTIN_VA_START, EXPAND_BUILTIN_VA_ARG): New.
18871 * sh.c (sh_builtin_saveregs): Use get_varargs_alias_set.
18872 (sh_build_va_list, sh_va_start, sh_va_arg): New.
18873 * sh.h (BUILD_VA_LIST_TYPE): New.
18874 (EXPAND_BUILTIN_VA_START, EXPAND_BUILTIN_VA_ARG): New.
18876 Tue Sep 14 16:20:24 1999 Richard Henderson <rth@cygnus.com>
18878 * recog.h (struct recog_data): Make dup_num, operand_address_p,
18879 n_operands, n_dups, n_alternatives `char' instead of `unsigned char'.
18880 (struct insn_data): Likewise with n_operands, n_dups,
18881 n_alternatives, output_format.
18882 * regclass.c (scan_one_insn): Cast n_operands to int before
18883 arithmetic inside comparison.
18885 Tue Sep 14 15:13:36 1999 Richard Henderson <rth@cygnus.com>
18887 * toplev.c (compile_function): Unconditionally emit nop.
18889 Tue Sep 14 14:41:47 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18891 * haifa-sched.c (actual_hazard): Move declaration of variable
18892 `this_cost' into the scope where it is used.
18894 Tue Sep 14 14:14:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18896 * c-pragma.c (handle_pragma_token): Wrap variables `name' and
18897 `value' in HANDLE_PRAGMA_WEAK. Wrap variable `align' in
18898 HANDLE_PRAGMA_PACK||HANDLE_PRAGMA_PACK_PUSH_POP.
18900 * genrecog.c (make_insn_sequence): Call memset, not bzero.
18902 * jump.c (find_insert_position): Don't declare or define unless
18903 !HAVE_conditional_arithmetic.
18904 (returnjump_p_1, delete_prior_computation): Add static prototypes.
18906 * mips-tdump.c (fatal, fancy_abort, main): Add extern prototypes.
18908 * recog.c (offsettable_address_p): Prototype function pointer.
18909 (preprocess_constraints): Call memset, not bzero.
18911 * tree.c (tree_node_kind_names): Constify a char*. Make static.
18912 (gcc_obstack_init): Don't declare.
18913 (fix_sizetype): Add static prototype.
18914 (gcc_obstack_init): Use prototype casts in call to _obstack_begin.
18915 (tree_cons): Call memset, not bzero.
18917 * varasm.c (remove_from_pending_weak_list): Wrap declaration and
18918 definition in macro ASM_WEAKEN_LABEL.
18919 (mark_const_hash_entry): Add static prototype.
18921 Tue Sep 14 12:22:50 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18923 * c-lex.c (handle_generic_pragma): Remove unused variable `c'.
18925 * unroll.c (find_common_reg_term, subtract_reg_term,
18926 loop_find_equiv_value): Add static prototypes.
18927 (unroll_loop): Wrap variable `prev' in macro HAVE_cc0.
18928 (copy_loop_body): Remove unreachable break statement.
18930 * sparc.c (sparc_va_arg): Remove unused variable `tmp'.
18932 * sparc.h (sparc_va_start, sparc_va_arg): Add extern prototypes.
18934 Tue Sep 14 15:28:00 1999 Bernd Schmidt <bernds@cygnus.co.uk>
18936 Undo some changes from the gcc2 merge:
18937 * rtl.def (CONSTANT_P_RTX): Fix the comment for this rtx code.
18938 * emit-rtl.c (gen_rtx_REG): Don't test special reg rtx's for null
18942 Sat Oct 3 07:20:28 1998 Stephen L Moshier <moshier@world.std.com>
18943 * emit-rtl.c (gen_lowpart_common): Disable optimization of
18944 initialized float-int union if the value is a NaN.
18946 Tue Sep 14 04:03:44 1999 Mumit Khan <khan@xraylith.wisc.edu>
18948 * gthr-win32.h: New file.
18950 * i386/winnt.c (i386_pe_valid_decl_attribute_p): Recognize
18951 shared as a valid attribute.
18952 * i386/cygwin.h (ASM_OUTPUT_SECTION): Handle shared attribute.
18953 * extend.texi: Document `shared' variable attribute.
18955 Tue Sep 14 04:01:46 1999 Loren Rittle <ljrittle@acm.org>
18957 * configure.in: Handle --enable-threads on FreeBSD.
18958 * configure: Rebuit.
18960 Tue Sep 14 03:58:44 1999 Andreas Jaeger <aj@arthur.rhein-neckar.de>
18962 * configure.in: Add crtbeginS.o, crtendS.o for mips-linux; add
18964 * configure: Rebuilt.
18966 Tue Sep 14 03:47:23 1999 Joel Sherrill <joel@OARcorp.com>
18967 Charles-Antoine Gauthier <charles.gauthier@iit.nrc.ca>
18968 Rosimildo DaSilva <rdasilva@connecttel.com>
18970 * configure.in (m68k-*-rtemscoff*): Added.
18971 * configure.in (mips64orion-*-rtems*): Converted to ELF.
18972 * configure.in (sparc-*-rtemsaout*): Added as alias for old
18973 sparc-rtems configuration.
18974 * configure.in (sparc-*-rtemself*): Added.
18975 * configure.in (sparc-*-rtems*): Now ELF not a.out.
18976 * config/i386/rtems.h: Added comment.
18977 * config/sparc/rtemself.h: New file.
18979 * configure.in (m68k-rtemself): Added.
18980 * config/elfos.h: Added ifndef wrapper for DWARF2_DEBUGGING_INFO
18981 and DWARF_DEBUGGING_INFO.
18982 * config/m68k/crti.s: New file.
18983 * config/m68k/crtn.s: New file.
18984 * config/m68k/t-crtstuff: New file.
18985 * config/m68k/rtemself.h: New file.
18987 * configure.in (i[[34567]]86-*-rtemself*): Now uses crtstuff for
18988 global ctor/dtor and C++ exception handling.
18989 * config/i386/rtemself.h: Now uses crtstuff (crti.o + crtbegin.o)
18990 for STARTFILE_SPEC and crtstuff (crtend.o + crtn.o) for
18992 * config/i386/t-rtems-i386: New File.
18994 Tue Sep 14 09:47:41 1999 Andreas Schwab <schwab@suse.de>
18996 * stmt.c (expand_end_case): Return right away if the case stack is
18999 Tue Sep 14 01:47:19 1999 Jeffrey A Law (law@cygnus.com)
19001 * Makefile.in (version.c): Remove rule incorrectly brought in from
19004 Tue Sep 14 01:42:27 1999 Marc Espie <espie@cvs.openbsd.org>
19006 * Makefile.in: Prepend $(SHELL) to move-if-change calls.
19007 * msdos/top.sed: Take into account a prepended $(SHELL) to
19009 * winnt/config-nt.sed: Likewise. Kill bogus substitution.
19011 * objc/Make-lang.in: Prepend $(SHELL) to move-if-change calls.
19013 Tue Sep 14 01:38:52 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
19015 * regmove.c (fixup_match_1): Don't change an unchanging register.
19016 (stable_but_for_p): Renamed to:
19017 (stable_and_no_regs_but_for_p). Reject unchanging registers too.
19018 Changed all callers.
19020 Tue Sep 14 01:33:15 1999 Andreas Schwab <schwab@suse.de>
19022 * loop.c (strength_reduce): Don't call reg_used_between_p if the
19023 insn from BL2 is after the insn from BL.
19025 Mon Sep 13 21:06:01 1999 Richard Henderson <rth@cygnus.com>
19027 * recog.h (INSN_OUTPUT_FORMAT_*): New.
19028 (struct insn_data): Merge `template' and `outfun' into `output'.
19029 Add `output_format'.
19030 * genoutput.c (INSN_OUTPUT_FORMAT_*): New.
19031 (struct data): Remove `outfun'; add `output_format'.
19032 (name_for_index): Remove declaration.
19033 (output_insn_data): Handle output formats.
19034 (process_template): Emit the bare array for @.
19035 (gen_expand, gen_split): Set output_format to NONE.
19036 * output.h (get_insn_template): Declare.
19037 * final.c (get_insn_template): New.
19038 (final_scan_insn): Use it.
19039 * toplev.c (compile_file): Likewise.
19041 * c4x/c4x.c (c4x_process_after_reload): Likewise.
19042 * i860/i860.c (output_delayed_branch): Likewise.
19043 (output_delay_insn): Likewise.
19045 1999-09-13 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
19047 * rtl.c (obstack_alloc_rtx): Removed.
19049 1999-09-13 17:03 -0700 Zack Weinberg <zack@bitmover.com>
19051 * config/gmicro/gmicro.md: Disable move DF->DI anonymous pattern.
19053 Mon Sep 13 15:21:46 1999 Richard Henderson <rth@cygnus.com>
19055 * i386.c (call_insn_operand): Reject const_int.
19056 (expander_call_insn_operand): Use call_insn_operand.
19058 Mon Sep 13 17:44:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19060 * gcc.c (getrusage): Wrap prototype arguments in PROTO().
19062 1999-09-13 12:18 -0700 Zack Weinberg <zack@bitmover.com>
19064 * config/i370/i370.md (mulsi, divsi, modsi anonymous insns):
19065 Use DImode operation.
19067 1999-09-13 12:13 -0700 Zack Weinberg <zack@bitmover.com>
19069 * gcc.c: Include sys/resource.h.
19070 (report_times): New flag.
19071 (execute): If report_times is set, calculate and report the
19072 CPU time consumed by each subprocess.
19074 (rus, prus): New globals.
19075 (option_map): Add --time.
19076 (display_help): Document -time.
19077 (process_command): Set report_times if -time is given.
19078 Turn off -pipe if -time is given.
19080 * invoke.texi: Document new option -time.
19082 * configure.in: Check for getrusage. Check if we have to
19083 prototype getrusage.
19084 * acconfig.h: Add NEED_DECLARATION_GETRUSAGE.
19085 * configure: Regenerate.
19086 * config.in: Regenerate.
19088 Mon Sep 13 12:57:06 1999 Dave Brolley <brolley@cygnus.com>
19090 * cppinit.c (append_include_chain): Initialize 'next' and 'alloc'
19093 Mon Sep 13 10:01:33 1999 Nick Clifton <nickc@cygnus.com>
19095 * config/fp-bit.c: Define L_thenan_sf or L_thenan_df (as
19096 appropriate) if FINE_GRAINED_LIBRARIES is not defined.
19097 (nan): Return _thenan_sf or _thenan_df as appropriate.
19098 (L_thenan_sf): Define _thenan_sf.
19099 (L_thenan_df): Define _thenan_df.
19101 * Makefile.in (FPBIT_FUNCS): Add _thenan_sf.
19102 (DPBIT_FUNCS): Add _thenan_df.
19104 Mon Sep 13 09:38:53 1999 Andreas Schwab <schwab@suse.de>
19106 * tree.c (fix_sizetype): Exchange the types for TYPE_SIZE and
19109 Sun Sep 12 23:28:20 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19111 * Makefile.in (gcc.o, gccspec.o, cppspec.o): Depend on gcc.h.
19114 (lang_specific_driver): Don't take a function pointer parameter.
19115 All callers changed.
19117 * gcc.c: Include gcc.h.
19118 (do_spec, fancy_abort,lang_specific_driver,lang_specific_pre_link,
19119 lang_specific_extra_outfiles, fatal): Don't declare.
19120 (multilib_defaults_raw): Constify.
19121 (read_specs): Call memset, rather than bzero.
19122 (main): Call return, not exit.
19123 (lookup_compiler): Call memcpy, not bcopy.
19124 (fatal): Make extern.
19126 * cppspec.c: Include gcc.h.
19127 (lang_specific_driver): Initialize variable `quote'. Constify a
19128 char*. All calls to the function pointer parameter now
19129 explicitly call `fatal'.
19131 * gccspec.c (lang_specific_driver): Include gcc.h.
19133 Sun Sep 12 19:52:10 1999 Richard Earnshaw <rearnsha@arm.com>
19135 * arm.c (note_invalid_constants): Use recog_data.operand_type
19138 Sun Sep 12 15:53:20 1999 Bernd Schmidt <bernds@cygnus.co.uk>
19140 * tree.h (build_common_tree_nodes, build_common_tree_nodes_2):
19143 * reload.h (reload_in, reload_out, reload_in_reg, reload_out_reg,
19144 reload_reg_class, reload_inmode, reload_outmode, reload_optional,
19145 reload_nongroup, reload_inc, reload_opnum, reload_secondary_p,
19146 reload_secondary_in_reload, reload_secondary_out_reload,
19147 reload_secondary_in_icode, reload_secondary_out_icode,
19148 reload_reg_rtx, reload_when_needed): Delete declarations.
19149 (struct reload): New structure.
19150 (rld): Declare new array.
19151 * reload.c (reload_in, reload_out, reload_in_reg, reload_out_reg,
19152 reload_reg_class, reload_inmode, reload_outmode, reload_optional,
19153 reload_nongroup, reload_inc, reload_opnum, reload_secondary_p,
19154 reload_secondary_in_reload, reload_secondary_out_reload,
19155 reload_secondary_in_icode, reload_secondary_out_icode,
19156 reload_reg_rtx, reload_when_needed): Delete definitions.
19158 (whole file): Replace uses of the deleted arrays with uses of rld.
19159 * reload1.c (whole file): Replace uses of the deleted arrays with
19161 (choose_reload_regs): Copy in/out of save_reload_reg_rtx with
19162 explicit loops, not with bcopy.
19164 Sun Sep 12 05:00:24 1999 Richard Henderson <rth@cygnus.com>
19166 * recog.h (insn_template, insn_outfun, insn_n_operands, insn_n_dups,
19167 insn_n_alternatives, insn_operand_constraint, insn_operand_address_p,
19168 insn_operand_mode, insn_operand_strict_low, insn_operand_predicate,
19169 insn_name): Delete and consolidate into new structures.
19170 (insn_operand_predicate_fn): New.
19171 (insn_output_fn): New.
19172 (insn_gen_fn): New.
19173 (struct insn_operand_data): New.
19174 (struct insn_data): New.
19176 (OUT_FCN): Update for insn_data change.
19177 * builtins.c (expand_builtin_strlen): Likewise.
19178 (expand_builtin_memcmp): Likewise.
19179 * combine.c (make_extraction, simplify_comparison): Likewise.
19180 * cse.c (canon_reg, cse_insn): Likewise.
19181 * explow.c (allocate_dynamic_stack_space, probe_stack_range): Likewise.
19182 * expmed.c (store_bit_field, extract_bit_field): Likewise.
19183 (emit_store_flag): Likewise.
19184 * expr.c (convert_move, emit_block_move): Likewise.
19185 (clear_storage, emit_push_insn, expand_increment): Likewise.
19186 (do_store_flag): Likewise.
19187 * expr.h (GEN_FCN): Likewise.
19188 (insn_gen_function): Die.
19189 * final.c (final_scan_insn): Update for insn_data change.
19190 (output_asm_name): Likewise.
19191 * function.c (fixup_var_refs_1): Likewise.
19192 * loop.c (check_dbra_loop): Likewise.
19193 * optabs.c (expand_binop, expand_twoval_binop): Likewise.
19194 (expand_unop, expand_complex_abs, emit_unop_insn): Likewise.
19195 (prepare_cmp_insn, prepare_operand, emit_indirect_jump): Likewise.
19196 (emit_conditional_move, gen_add2_insn, gen_sub2_insn): Likewise.
19197 * recog.c (validate_replace_rtx_1, extract_insn): Likewise.
19198 * regmove.c (gen_add3_insn): Likewise.
19199 * reload.c (push_secondary_reload, combine_reloads): Likewise.
19200 (find_reloads, find_reloads_address_1): Likewise.
19201 (debug_reload_to_stream): Likewise.
19202 * reload1.c (emit_reload_insns, gen_reload): Likewise.
19203 * stmt.c (expand_end_case): Likewise.
19204 * toplev.c (compile_file): Likewise.
19206 * c4x/c4x.c (c4x_process_after_reload): Likewise.
19207 * i860/i860.c (output_delayed_branch, output_delay_insn): Likewise.
19209 * print-rtl.c (insn_name_ptr): Remove declaration.
19210 (get_insn_name): Declare.
19211 (print_rtx): Use it.
19212 * genoutput.c (insn_name_ptr): Remove.
19213 (next_operand_number): New.
19214 (struct operand_data): New.
19215 (null_operand, odata, odata_end): New.
19216 (struct data): Use struct operand_data.
19217 (idata, idata_end): Renamed from insn_data and end_of_insn_data.
19218 (get_insn_name): Renamed from name_for_index.
19219 (output_prologue): Define NO_MD_PROTOTYPES.
19220 (output_predicate_decls): Break out from output_epilogue.
19221 Iterate over the operands list.
19222 (output_operand_data): Break out from output_epilogue. Emit
19223 just the operands list.
19224 (output_insn_data): Break out from output_epilogue. Emit just
19226 (output_epilogue): Remove.
19227 (output_get_insn_name): New.
19228 (constraints, op_n_alternatives, predicates, address_p): Die.
19229 (modes, strict_low, seen): Die.
19230 (scan_operands): Take new param `d' instead of writing to
19231 seven global variables.
19232 (compare_operands): New.
19233 (place_operands): New.
19234 (validate_insn_alternatives): Update for struct data change.
19235 (gen_insn): Don't zero or copy 7 global arrays. Update for
19236 scan_operands; call place_operands.
19237 (gen_peephole, gen_expand, gen_split): Likewise.
19238 (main): Update for new output routines.
19240 * genattr.c (insn_name_ptr): Remove.
19241 (get_insn_name): New function.
19242 * genattrtab.c, gencodes.c, genconfig.c, genemit.c: Likewise.
19243 * genextract.c, genflags.c, genopinit.c, genpeep.c: Likewise.
19244 * genrecog.c: Likewise.
19246 * alpha.md (adddi3): Make `pattern' array static.
19248 Sun Sep 12 22:05:21 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
19250 * config/c4x/c4x.h (c4x_rpts_cycles_string,
19251 c4x_cpu_version_string): Constify char *.
19252 * config/c4x/c4x.c (c4x_rpts_cycles_string,
19253 c4x_cpu_version_string): Likewise.
19255 Sat Sep 11 23:28:33 1999 Richard Henderson <rth@cygnus.com>
19257 * tree.c (save_tree_status): Revert 10 Sep change.
19258 (restore_tree_status): Likewise. Call obstack_free with NULL
19259 before freeing the obstack proper.
19261 Sat Sep 11 23:23:46 1999 Richard Henderson <rth@cygnus.com>
19263 * cse.c (cse_main): If gc'ing, collect around cse_basic_block.
19265 * ggc-simple.c (ggc_pop_context): Fold outstanding bytes into
19266 surrounding context.
19268 Sat Sep 11 19:52:43 1999 Mark Mitchell <mark@codesourcery.com>
19270 * tree.c (type_hash_canon): Put all types in the hash-table, when
19273 Sat Sep 11 18:37:04 1999 Richard Henderson <rth@cygnus.com>
19275 * recog.h (struct recog_data, recog_data): New.
19276 (recog_foo variables): Kill.
19277 * recog.c (recog_operand, recog_operand_loc): Kill.
19278 (recog_dup_loc, recog_dup_num, recog_n_operands): Kill.
19279 (recog_n_dups, recog_n_alternatives, recog_operand_mode): Kill.
19280 (recog_constraints, recog_op_type, recog_operand_address_p): Kill.
19281 (recog_data): Define.
19282 (extract_insn): Update all recog_foo references to use recog_data.
19283 (preprocess_constraints, constrain_operands): Likewise.
19284 * final.c (final_scan_insn, cleanup_subreg_operands): Likewise.
19285 * genattrtab.c (main): Likewise.
19286 * genextract.c (main): Likewise.
19287 * genoutput.c: Likewise.
19288 * genrecog.c (write_subroutine, main): Likewise.
19289 * local-alloc.c (block_alloc): Likewise.
19290 * reg-stack.c (record_asm_reg_life, subst_asm_stack_regs): Likewise.
19291 * regclass.c (scan_one_insn, record_reg_classes): Likewise.
19292 * regmove.c (regmove_optimize, find_matches, fixup_match_1): Likewise.
19293 * reload.c (find_reloads, find_reloads_toplev): Likewise.
19294 * reload1.c (maybe_fix_stack_asms, eliminate_regs_in_insn): Likewise.
19295 (reload_cse_simplify_operands): Likewise.
19297 * arc/arc.c (arc_final_prescan_insn): Likewise.
19298 * arm/arm.c (note_invalid_constants, arm_final_prescan_insn): Likewise.
19299 * h8300/h8300.c (notice_update_cc): Likewise.
19300 * i386/i386.c (ix86_attr_length_default, ix86_agi_dependant): Likewise.
19301 * i860/i860.c (output_delayed_branch, output_delay_insn): Likewise.
19302 * mn10200/mn10200.c (notice_update_cc): Likewise.
19303 * mn10300/mn10300.c (notice_update_cc): Likewise.
19304 * romp/romp.c (update_cc): Likewise.
19305 * sparc/sparc.c (check_pic): Likewise.
19306 * v850/v850.c (notice_update_cc): Likewise.
19308 * genemit.c (main): Don't declare recog_operand.
19310 Sat Sep 11 12:41:55 1999 Alex Samuel <samuel@codesourcery.com>
19312 * ggc.h (rtvec_def): Forward declare.
19313 (tree_node): Likewise.
19314 (ggc_root): Define.
19316 (ggc_set_mark_rtx): Add prototype.
19317 (ggc_set_mark_rtvec): Likewise.
19318 (ggc_set_mark_tree): Likewise.
19319 * ggc-simple.c (ggc_root): Don't define.
19320 (roots): Don't declare.
19321 (ggc_mark_rtx): Remove.
19322 (ggc_mark_rtvec): Likewise.
19323 (ggc_mark_tree): Likewise.
19324 (ggc_mark_varray): Likewise.
19325 (ggc_mark_tree_hash_table_entry): Likewise.
19326 (ggc_mark_tree_hash_table): Likewise.
19327 (ggc_set_mart_rtx): New function.
19328 (ggc_set_mark_rtvec): Likewise.
19329 (ggc_set_mark_tree): Likewise.
19330 (ggc_add_root): Remove.
19331 (ggc_add_rtx_root): Likewise.
19332 (ggc_remove_tree_root): Likewise.
19333 (ggc_add_string_root): Likewise.
19334 (ggc_add_tree_varray_root): Likewise.
19335 (ggc_add_tree_hash_table_root): Likewise.
19336 (ggc_del_root): Likewise.
19337 (ggc_mark_rtx_ptr): Likewise.
19338 (ggc_mark_tree_ptr): Likewise.
19339 (ggc_mark_string_ptr): Likewise.
19340 (ggc_mark_tree_varray_ptr): Likewise.
19341 (ggc_mark_tree_hash_table_ptr): Likewise.
19342 * ggc-common.c: New file.
19343 * Makefile.in (OBJS): Add ggc-common.o.
19344 (ggc-common.o): List dependencies.
19346 1999-09-10 22:37 -0700 Zack Weinberg <zack@bitmover.com>
19348 * cppalloc.c (xstrdup): Use memcpy.
19349 * cpperror.c (cpp_print_containing_files): Don't use
19351 * cpplib.c (conditional_skip): Set temp->lineno.
19352 (do_endif): Make error message less obscure.
19353 (if_directive_name): New function.
19354 (cpp_get_token [case EOF]): Unwind the if stack and generate
19355 error messages for each unterminated conditional in this file.
19356 (parse_string): Do not behave differently if -traditional.
19358 Fri Sep 10 14:04:07 1999 Richard Henderson <rth@cygnus.com>
19360 * builtins.c (expand_builtin_va_arg): Cope with an array-type
19361 va_list decomposing to pointer-type.
19362 * rs6000.c (rs6000_va_start) Unwrap the ARRAY_TYPE to get at fields.
19363 (rs6000_va_arg): Likewise.
19365 Fri Sep 10 13:21:21 1999 Jim Wilson <wilson@cygnus.com>
19367 * except.c (start_dynamic_handler): Compute size using
19368 STACK_SAVEAREA_MODE.
19370 Fri Sep 10 16:01:23 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19372 * protoize.c: Remove various __STDC__ and POSIX hacks. Don't
19373 include directory headers. Don't define strrchr. Don't provide
19374 my_* replacement functions. Prefer PTR over `pointer_type'.
19375 Don't prototype system functions. Don't redefine getopt.
19377 (shortpath, fancy_abort, notice, savestring, dupnstr, substr,
19378 safe_read, safe_write, save_pointers, restore_pointers,
19379 is_id_char, in_system_include_dir, directory_specified_p,
19380 file_excluded_p, unexpand_if_needed, abspath, check_aux_info,
19381 find_corresponding_lparen, referenced_file_is_newer,
19382 save_def_or_dec, munge_compile_params, gen_aux_info_file,
19383 process_aux_info_file, identify_lineno, check_source,
19384 seek_to_line, forward_to_next_token_char, output_bytes,
19385 output_string, output_up_to, other_variable_style_function,
19386 find_rightmost_formals_list, do_cleaning, careful_find_l_paren,
19387 do_processing, is_syscalls_file, rename_c_file, find_extern_def,
19388 find_static_definition, connect_defs_and_decs, add_local_decl,
19389 add_global_decls, needs_to_be_converted, visit_each_hash_node,
19390 add_symbol, lookup, free_def_dec, find_file, reverse_def_dec_list,
19391 edit_fn_declaration, edit_formals_lists, edit_fn_definition,
19392 scan_for_missed_items, edit_file, string_list_cons): Add static
19394 (standard_exec_prefix, target_machine, target_version,
19395 default_syscalls_dir, string_list, string_list_cons, find_file,
19396 do_cleaning): Constify a char*.
19397 (safe_read, safe_write): Use PTR, not a char*.
19398 (is_id_char): Take an int, not a char.
19399 (main): Add prototype. Call return, not exit.
19401 Fri Sep 10 16:48:26 1999 Andrew Haley <aph@cygnus.com>
19403 * tree.c (type_hash_lookup): Check for equal TYPE_ALIGN fields
19404 when comparing types.
19406 Fri Sep 10 08:43:32 1999 Richard Henderson <rth@cygnus.com>
19408 * loop.c (basic_induction_var): Typo NULL_RTX -> NULL.
19409 (strength_reduce): Release the varrays from the no-bivs early exit.
19411 * reload1.c (order_regs_for_reload): Init hard_reg_n_uses before
19412 the loop over the registers.
19414 * tree.c (save_tree_status): Set maybepermanent_firstobj NULL
19416 (restore_tree_status): Check that instead when freeing the obstack.
19418 Wed Sep 8 16:12:04 1999 Andrew Haley <aph@cygnus.com>
19420 * alias.c (rtx_equal_for_memref_p): Allow CONST_DOUBLEs to be used
19423 Fri Sep 10 11:58:55 1999 Bernd Schmidt <bernds@cygnus.co.uk>
19425 * i386.md (ashlqi3): For NON_QI_REG_P regs, use sall. Fix some
19426 operand size modifiers.
19428 Fri Sep 10 10:32:32 1999 Bernd Schmidt <bernds@cygnus.co.uk>
19430 * c-common.c (c_common_nodes_and_builtins): Don't build
19432 * c-common.h (enum c_tree_index and related accesor macros): Remove
19433 everything now declared in tree.h.
19434 * c-decl.c (CHAR_TYPE_SIZE, SHORT_TYPE_SIZE, INT_TYPE_SIZE,
19435 LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE, WCHAR_UNSIGNED, FLOAT_TYPE_SIZE,
19436 DOUBLE_TYPE_SIZE, LONG_DOUBLE_TYPE_SIZE): Don't provide defaults.
19437 (error_mark_node, void_type_node, char_type_node, integer_type_node,
19438 unsigned_type_node, ptr_type_node, va_list_type_node,
19439 integer_zero_node, null_pointer_node, integer_one_node): Delete.
19440 (init_decl_processing): Call build_common_tree_nodes and
19441 build_common_tree_nodes_2 instead of building their nodes here.
19442 Don't add roots for these nodes.
19443 * stor-layout.c (size_zero_node, size_one_node): Delete.
19444 (set_sizetype): Make a new node for bitsizetype each time.
19445 * tree.c (global_trees): New variable.
19446 (init_obstacks): Add a gc root for it.
19447 (CHAR_TYPE_SIZE, SHORT_TYPE_SIZE, INT_TYPE_SIZE,
19448 LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE, FLOAT_TYPE_SIZE,
19449 DOUBLE_TYPE_SIZE, LONG_DOUBLE_TYPE_SIZE): Provide defaults.
19450 (build_common_tree_nodes): New function.
19451 (fix_sizetype): New function.
19452 (build_common_tree_nodes_2): New function.
19453 * tree.h (enum tree_index): New.
19454 (global_trees): Declare.
19455 Add accessor macros for all nodes now moved to global_trees.
19456 Delete their declarations.
19458 Thu Sep 9 20:15:46 1999 Richard Henderson <rth@cygnus.com>
19460 * c-decl.c (finish_function): When processing a nested function,
19461 push and pop GC context around rest_of_compilation.
19463 Thu Sep 9 16:42:06 1999 Richard Henderson <rth@cygnus.com>
19465 * i386.c (override_options): Remove ppro, pentium2, and p2 as aliases.
19466 Default ix86_arch to PROCESSOR_I386.
19467 * i386.h (CC1_CPU_SPEC): Don't add -march=foo. Remove -mno-foo.
19468 (CPP_486_SPEC, CPP_586_SPEC, CPP_686_SPEC): Delete.
19469 (CPP_CPU_DEFAULT_SPEC): Define to __tune_foo__.
19470 (CC1_CPU_SPEC): Make -march=foo define __foo__, and provide
19471 __tune_foo__ if no -mcpu. Make -mcpu=bar define __tune_bar__.
19472 (EXTRA_SPECS): Remove deleted specs.
19474 Thu Sep 9 16:03:06 1999 Richard Henderson <rth@cygnus.com>
19476 * function.c (assign_stack_local_1): Allocate from
19477 function->x_frame_offset, not frame_offset.
19479 Thu Sep 9 14:36:31 1999 Mark Mitchell <mark@codesourcery.com>
19481 * ggc.h (lang_cleanup_tree): Remove.
19482 * gcc-simple.c (ggc_free_tree): Don't call lang_cleanup_tree.
19483 * ggc-callbacks.c (lang_cleanup_tree): Remove.
19485 * c-decl.c (finish_struct): Use ggc_alloc to allocate
19486 TYPE_LANG_SPECIFIC when garbage collecting.
19487 (lang_mark_tree): Mark TYPE_LANG_SPECIFIC.
19488 (lang_cleanup_tree): Remove.
19490 Thu Sep 9 14:23:02 1999 Jason Merrill <jason@yorick.cygnus.com>
19492 * defaults.h (EH_FRAME_SECTION, EH_FRAME_SECTION_ASM_OP): Define here.
19493 * crtstuff.c: Not here.
19494 * dwarf2out.c: Or here.
19495 * libgcc2.c (__do_global_ctors, __do_global_dtors): Handle EH frame
19498 Thu Sep 9 09:40:58 1999 Mark Mitchell <mark@codesourcery.com>
19500 * function.h (free_after_compilation): Remove decl parameter.
19501 (free_varasm_status0: Likewise.
19502 (free_emit_status): Likewise.
19503 (free_stmt_status): Likewise.
19504 (free_after_compilation): Likewise.
19505 (init_lang_status): New variable.
19506 (free_lang_status): Likewise.
19507 * emit-rtl.c (free_emit_status): Make decl parameter implicit.
19508 * function.c (init_lang_status): New variable.
19509 (free_lang_status): Likewise.
19510 (push_function_context_to): Don't set function::decl here.
19511 (free_after_copmilation): Make decl parameter implicit. Call
19512 free_lang_status if defined.
19513 (prepare_function_start): Call init_lang_status if defined.
19514 (init_function_start): Set function::decl here.
19515 * profile.c (output_func_start_profiler): Don't call pushdecl
19516 until we've actually started the function.
19517 * stmt.c (free_stmt_status): Make decl parameter implicit.
19518 * toplev.c (rest_of_compilation): Don't pass decl to
19519 free_after_compilation.
19520 * varasm.c (free_varasm_status): Likewise.
19522 Thu Sep 9 17:23:19 1999 Bernd Schmidt <bernds@cygnus.co.uk>
19524 * except.c (call_get_eh_context): Add root when allocating static
19527 Thu Sep 9 15:24:59 BST 1999 Richard Earnshaw <rearnsha@arm.com>
19529 * arm.c: Include "ggc.h".
19530 (arm_add_gc_roots): New function.
19531 (arm_override_options): Call it.
19532 (aof_pic_entry): Add a GC root for aof_pic_label when it's allocated.
19534 * arm.md (define_asm_attributes): Add a pool_range attribute.
19536 Thu Sep 9 12:32:57 BST 1999 Nathan Sidwell <nathan@acm.org>
19538 * extend.texi (Volatiles): New node.
19540 Thu Sep 9 03:37:31 1999 Richard Henderson <rth@cygnus.com>
19542 * ggc-simple.c (IS_MARKED, IGNORE_MARK): New.
19543 (GGC_ANY_MAGIC, GGC_ANY_MAGIC_MARK): New.
19544 (struct ggc_any): Replace `mark' with `magic_mark'.
19545 (ggc_alloc_string): Use memcpy, not bcopy.
19546 (ggc_alloc_any): Set magic_mark. Update bytes_alloced_since_gc.
19547 (ggc_free_{rtx,rtvec,tree,string}): Mark inline.
19548 (ggc_free_any): New.
19549 (ggc_mark_string): Use IGNORE_MARK. Calc back to struct gcc_string.
19550 (ggc_mark): Use IGNORE_MARK. Abort if magic doesn't match.
19551 (ggc_collect): Re-enable collection avoidance. Use GGC_ANY_MARK.
19552 Use IS_MARKED. Use ggc_free_any.
19554 1999-09-09 Scott Bambrough <scottb@netwinder.org>
19556 * config/arm/linux-elf.h: define NO_IMPLICIT_EXTERN_C
19558 Thu Sep 9 01:55:21 1999 Richard Henderson <rth@cygnus.com>
19560 * toplev.c (main): Always init_ggc.
19562 Wed Sep 8 23:53:22 1999 Richard Henderson <rth@cygnus.com>
19564 * except.c (find_all_handler_type_matches): Free the list if
19565 we found no matches.
19567 * combine.c (SUBST): Break out to a real function do_SUBST.
19568 (SUBST_INT): Likewise.
19569 * gcse.c (free_pre_mem): Free `temp_bitmap'.
19570 (pre_insert): Free `inserted'.
19571 * loop.c (basic_induction_var): Always set `location'.
19573 * function.c (expand_function_end): Add initial_trampoline as a root.
19574 * rtl.h (init_varasm_once): Declare.
19575 * toplev.c (compile_file): Call it.
19576 * ggc-simple.c (ggc_mark_string_ptr): New.
19577 (ggc_add_string_root): New.
19578 (ggc_collect): Disable collection avoidance temporarily.
19579 * ggc.h (ggc_add_string_root): Declare.
19580 * except.c (create_rethrow_ref): Use ggc_alloc_string.
19581 * optabs.c (init_libfuncs): Likewise.
19582 * varasm.c (named_section): Use ggc_alloc_string.
19583 (make_function_rtl): Likewise.
19584 (make_decl_rtl): Likewise.
19585 (assemble_static_space): Likewise.
19586 (assemble_trampoline_template): Likewise.
19587 (output_constant_def): Likewise.
19588 (force_const_mem): Likewise.
19589 (mark_const_hash_entry): New.
19590 (mark_pool_sym_hash_table): New.
19591 (mark_varasm_state): Use it.
19592 (init_varasm_once): New.
19594 * expr.h (init_one_libfunc): Declare.
19595 * optabs.c (init_one_libfunc): New.
19596 (init_optabs): Use it.
19597 * config/gofast.h: Likewise.
19598 * config/sparc/sol2.h (INIT_SUBTARGET_OPTABS): Likewise.
19599 * config/sparc/sparc.h (INIT_TARGET_OPTABS): Likewise.
19601 Thu Sep 9 13:46:06 1999 Geoffrey Keating <geoffk@cygnus.com>
19603 * Makefile.in (cppexp.o): Depend on cpphash.h.
19604 * cppexp.c (cpp_lex): Handle `defined (xxx)' for poisoned xxx.
19606 * cpphash.c (special_symbol): Handle plain `xxx' for poisoned xxx.
19607 * cpplib.c (do_define): Generalise to handle poisoned definitions,
19608 redefining poisoned identifiers, etc.
19609 (do_undef): Don't allow poisoned identifiers to be undefined.
19610 (do_pragma): Add #pragma poison.
19611 (do_xifdef): Handle `#ifdef xxx' for poisoned xxx.
19613 * cccp.c: Add T_POISON node type.
19614 (special_symbol): Handle `defined(xxx)' and plain `xxx' for
19616 (do_define): Generalise to handle poisoned definitions,
19617 redefining poisoned identifiers, etc.
19618 (do_undef): Don't allow poisoned identifiers to be undefined.
19619 (do_pragma): Add #pragma poison.
19620 (do_xifdef): Handle `#ifdef xxx' for poisoned xxx.
19622 * c-pragma.c (handle_pragma_token): Ignore #pragma poison.
19623 * c-pragma.h: Add ps_poison state. We now always have generic
19626 Wed Sep 8 20:30:42 1999 Mark Mitchell <mark@codesourcery.com>
19628 * ggc.h (ggc_alloc): New function.
19629 (ggc_mark): Likewise.
19630 * ggc-simple.c (ggc_any): New structure.
19631 (ggc_status): Add anys.
19632 (n_anys_collected): New variable.
19633 (ggc_alloc): Define.
19634 (ggc_mark): Likewise.
19635 (ggc_collect): Collect the anys.
19637 Wed Sep 8 20:15:14 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19639 * c-decl.c (mark_binding_level): Make static to match prototype.
19641 Wed Sep 8 16:41:27 1999 Richard Henderson <rth@cygnus.com>
19643 * flow.c (new_insn_dead_notes): Don't early out for preexisting regs.
19645 Wed Sep 8 16:07:52 1999 Richard Henderson <rth@cygnus.com>
19647 * gengenrtl.c (CONST_DOUBLE_FORMAT): Take the size REAL_ARITHMETIC
19648 will use into account. Expand the max width to 5.
19651 Wed Sep 8 16:01:14 1999 Richard Henderson <rth@cygnus.com>
19653 * ggc-simple.c (ggc_free_rtx): Poison the correct amount
19654 for the rtx length.
19656 Wed Sep 8 15:23:54 1999 Richard Henderson <rth@cygnus.com>
19658 * alpha.md (call value patterns): Remove the result predicates.
19660 Wed Sep 8 13:35:38 1999 Richard Henderson <rth@cygnus.com>
19662 * Makefile.in (stmp-fixinc): Remove extraneous exit 1 from
19665 Wed Sep 8 15:32:16 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19667 * system.h (sbrk, malloc, calloc, realloc): Backup prototypes
19668 changed from extern char *, to extern PTR. Also fix typo in
19669 NEED_DECLARATION_REALLOC test.
19671 * mips-tdump.c (malloc, calloc, realloc): Don't prototype.
19673 Wed Sep 8 11:40:47 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19675 * gansidecl.h (__attribute__, ATTRIBUTE_UNUSED_LABEL,
19676 ATTRIBUTE_UNUSED, ATTRIBUTE_NORETURN, ATTRIBUTE_PRINTF,
19677 ATTRIBUTE_PRINTF_1, ATTRIBUTE_PRINTF_2, ATTRIBUTE_PRINTF_3,
19678 ATTRIBUTE_PRINTF_4, ATTRIBUTE_PRINTF_5, GENERIC_PTR): Delete.
19680 * c-decl.c (field_decl_cmp): Use PTR instead of GENERIC_PTR.
19682 * cccp.c (pcfinclude): Likewise.
19684 * global.c (allocno_compare): Likewise.
19686 * haifa-sched.c (rank_for_schedule): Likewise.
19688 * local-alloc.c (qty_sugg_compare_1, qty_compare_1): Likewise.
19690 * reload1.c (hard_reg_use_compare, reload_reg_class_lower): Likewise.
19692 * stupid.c (stupid_reg_compare): Likewise.
19694 * tree.c (_obstack_allocated_p): Likewise.
19696 * varray.h (varray_data_tag, VARRAY_GENERIC_PTR_INIT): Likewise.
19698 1999-09-08 Bruce Korb autogen@linuxbox.com
19700 * Makefile.in: Give the hapless gperf user a hint about
19701 why "gperf -F" fails.
19703 Wed Sep 8 04:43:22 1999 Richard Henderson <rth@cygnus.com>
19705 * lists.c: Include ggc.h.
19707 (init_EXPR_INSN_LIST_cache): Install it.
19709 * ggc-simple.c (init_ggc): Absorb the old init.
19710 (ggc_push_context): Use xcalloc.
19711 (ggc_alloc_rtx, ggc_alloc_rtvec, ggc_alloc_tree): Likewise.
19712 (ggc_collect): Add [rvts] tags to the collection stats.
19714 Wed Sep 8 11:14:25 1999 Andreas Schwab <schwab@suse.de>
19716 * cccp.c (main): Fix handling of -include and -imacros options.
19718 Wed Sep 8 02:23:08 1999 Jeffrey A Law (law@cygnus.com)
19720 * cpplib.c (cpp_push_buffer): Fix order of arguments.
19722 Wed Sep 8 04:44:09 1999 Alexandre Oliva <oliva@dcc.unicamp.br>
19724 * rtl.h (obstack_alloc_rtx): Removed, it's now static in
19727 Wed Sep 8 00:33:43 1999 Alasdair Baird <alasdair@wildcat.demon.co.uk>
19729 * flow.c (insn_dead_p): Use XEXP rather than SUBREG_REG.
19730 * haifa-sched.c (sched_analyze_1): Use XEXP rather than SUBREG_REG
19731 and SET_DEST. Update comment.
19733 Wed Sep 8 18:55:17 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
19735 * config/c4x/c4x.c: Include ggc.h.
19736 (c4x_add_gc_roots): New function.
19737 (c4x_override_options): Call c4x_add_gc_roots.
19739 Wed Sep 8 00:00:16 1999 Richard Henderson <rth@cygnus.com>
19741 * defaults.h (TARGET_ESC): Move ...
19742 * system.h: ... here, where Linas had it in the first place. Silly me.
19744 Tue Sep 7 23:46:35 1999 Linas Vepstas <linas@linas.org>
19746 * c-common.c: Use ISGRAPH, ISLOWER, toupper.
19747 * c-lex.c, cccp.c, cexp.c, cexp.y, cppexp.c, dwarf2out.c, genattr.c,
19748 genattrtab.c, genemit.c, genextract.c, genpeep.c, tree.c: Likewise.
19749 * system.h (IN_CTYPE_DOMAIN): Define to 1 if HOST_EBCDIC.
19750 * defaults.h (TARGET_ESC): Add default.
19752 Tue Sep 7 23:36:59 1999 Linas Vepstas <linas@linas.org>
19754 * configure.in: add i370-*-openedition, i370-*-mvs and
19755 i370-*-linux targets
19757 Tue Sep 7 23:31:53 1999 Mark Mitchell <mark@codesourcery.com>
19759 * dsp16xxx.c: Include ggc.h
19760 (override_options): Mark GC roots.
19761 * mn10200.c: Include ggc.h.
19762 (asm_file_start): Mark GC roots.
19763 * tahoe.c: Include ggc.h.
19764 (extensible_operand): Mark GC roots.
19766 Tue Sep 7 23:23:15 1999 Linas Vepstas <linas@linas.org>
19768 * README: Add section discussing status of ELF ABI.
19769 * i370.c: Fix misc spelling mistakes.
19770 (i370_label_scan): Updated notes, exception handling.
19771 (i370_function_prolog): Simplify ELF stack handling.
19772 * i370.h: (FIXED_REGISTERS): Free up r12 for ELF.
19773 (STACK_GROWS_DOWNWARD): ELF stack grows down.
19774 (ASM_DECLARE_FUNCTION_NAME): Fix crazy malloc size.
19775 * i370.md: (movdi): Add notes.
19776 (floatsidf2): Use stack not rtca for scratch float area.
19777 (iorsi3): Correct operand constraints.
19778 * x-oe: Restore TAROUTOPTS which are used by pax.
19780 Tue Sep 7 22:39:18 1999 Mark Mitchell <mark@codesourcery.com>
19782 * rs6000.c: Include ggc.h.
19783 (rs6000_add_gc_roots): New function.
19784 (override_options): Call it.
19786 Tue Sep 7 22:09:03 1999 Richard Henderson <rth@cygnus.com>
19788 * alpha.h (alpha_compare): New.
19789 (alpha_compare_op0, alpha_compare_op1, alpha_compare_fp_p): Remove.
19790 * alpha.c: Likewise for the definitions.
19791 (alpha_emit_conditional_branch): Update for alpha_compare.
19792 (alpha_emit_conditional_move): Likewise.
19793 * alpha.md (cmpdf, cmpdi): Likewise.
19794 (setcc patterns): Likewise. Zero alpha_compare after use.
19795 (sne): Optimize (x != 0) into (0U < x).
19797 Tue Sep 7 21:55:02 1999 Richard Henderson <rth@cygnus.com>
19799 * alpha.h (alpha_eh_epilogue_sp_ofs): Remove.
19800 (struct machine_function): Declare; add eh_epilogue_sp_ofs.
19801 (INIT_EXPANDERS): Remove.
19802 * alpha.c: Include ggc.h.
19803 (alpha_eh_epilogue_sp_ofs, alpha_return_addr_rtx): Remove.
19804 (alpha_init_machine_status, alpha_mark_machine_status): New.
19805 (override_options): Install them.
19806 (struct machine_function): Moved to alpha.h.
19807 (alpha_save_machine_status, alpha_restore_machine_status): Remove.
19808 (alpha_init_expanders): Remove.
19809 (alpha_return_addr): Adjust to use current_function->machine.
19810 (alpha_ra_ever_killed): Likewise.
19811 (alpha_expand_epilogue): Likewise.
19812 * alpha.md (eh_epilogue): Likewise.
19814 Wed Sep 8 14:34:42 1999 Ian Piumarta <piumarta@prof.inria.fr>
19815 Melissa O'Neill <oneill@cs.sfu.ca>
19816 Geoffrey Keating <geoffk@cygnus.com>
19818 * config/rs6000/rs6000.c (first_reg_to_save): Don't save fixed or
19819 call-used registers (call-saved registers must still be contiguous
19820 and end with r31, of course).
19822 Tue Sep 7 21:41:38 1999 Richard Henderson <rth@cygnus.com>
19824 * c-typeck.c (type_lists_compatible_p): Use simple_type_promotes_to.
19825 (self_promoting_type_p): Delete.
19826 (self_promoting_args_p): Move ...
19827 * c-common.c: ... here.
19828 (c_common_nodes_and_builtins): Initialize lang_type_promotes_to.
19829 (simple_type_promotes_to): New.
19830 * builtins.c (lang_type_promotes_to): New.
19831 (expand_builtin_va_arg): Use it to give diagnostic for illegal types.
19832 * c-tree.h (C_PROMOTING_INTEGER_TYPE_P): Move ...
19833 * c-common.h: ... here.
19834 (self_promoting_args_p, simple_type_promotes_to): Declare.
19835 * c-decl.c (duplicate_decls): Use simple_type_promotes_to.
19836 (grokdeclarator): Likewise.
19837 * tree.h (lang_type_promotes_to): Declare.
19839 Tue Sep 7 17:15:21 1999 Mark Mitchell <mark@codesourcery.com>
19841 Add some machine-dependent GC roots.
19842 * sparc.c: Include ggc.h.
19843 (sparc_add_gc_roots): New function.
19844 (mark_ultrasparc_pipeline_state): Likewise.
19845 (override_options): Call sparc_add_gc_roots.
19846 * pa.c: Include ggc.h.
19847 (pa_add_gc_roots): New function.
19848 (mark_deferred_plabels): Likewise.
19849 (override_options): Call pa_add_gc_roots.
19850 * mips.c: Include ggc.h.
19851 (mips_add_gc_roots): New function.
19852 (override_options): Use it.
19854 Tue Sep 7 11:39:41 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19856 * cpperror.c (cpp_file_line_for_message): Constify a char*.
19858 * cppexp.c (parse_number, parse_charconst, cpp_lex,
19859 cpp_parse_expr): Add static prototypes.
19860 (parse_charconst): Don't cast away const-ness.
19861 (token): Constify a char*.
19863 * cppfiles.c (file_name_list, include_hash, find_include_file,
19864 finclude, initialize_input_buffer): Constify a char*.
19865 (file_cleanup, find_position): Add static prototypes.
19867 * cpphash.c (macro_cleanup, macarg, timestamp, special_symbol,
19868 collect_expansion): Add static prototypes.
19869 (cpp_install, create_definition, monthnames): Constify a char*.
19871 * cpphash.h (cpp_install): Likewise.
19873 * cppinit.c (known_suffixes, default_include,
19874 dump_special_to_buffer, NAME, cpp_start_read, cpp_finish): Likewise.
19875 (base_name, dump_special_to_buffer, initialize_dependency_output):
19876 Add static prototypes.
19878 * cpplib.c (my_strerror): Constify a char*.
19879 (null_underflow, null_cleanup, skip_comment, copy_comment,
19880 copy_rest_of_line, handle_directive, pass_thru_directive,
19881 get_directive_token, read_line_number, cpp_print_file_and_line,
19882 v_cpp_error, v_cpp_warning, v_cpp_error_with_line,
19883 v_cpp_warning_with_line, detect_if_not_defined,
19884 consider_directive_while_skipping): Add static prototypes.
19885 (pass_thru_directive, check_macro_name, cpp_expand_to_buffer,
19886 cpp_pedwarn_with_file_and_line): Constify a char*.
19888 * cpplib.h (cpp_options, include_hash, progname, definition,
19889 cpp_pedwarn_with_file_and_line, cpp_expand_to_buffer,
19890 check_macro_name, cpp_pfatal_with_name, cpp_file_line_for_message,
19891 find_include_file, deps_output, include_hash): Constify a char*.
19893 * cppmain.c (progname): Constify.
19894 (main): Add prototype. Use return, not exit.
19896 * fix-header.c (fatal, add_symbols, lookup_std_proto, write_lbrac,
19897 recognized_macro, check_macro_names, read_scan_file, write_rbrac,
19898 inf_skip_spaces, inf_read_upto, inf_scan_ident, inf_scan_ident,
19899 check_protection): Add static prototype.
19901 (progname, recognized_macrom, recognized_extern): Constify a char*.
19902 (main): Add prototype.
19904 * gen-protos.c (progname): Constify a char*.
19906 Tue Sep 7 00:47:52 1999 Mark Mitchell <mark@codesourcery.com>
19908 * emit-rtl.c (free_emit_status): Take decl as a parameter.
19909 (init_emit_once): Add more GC roots.
19910 * except.c (mark_func_eh_entry): New function.
19911 (mark_eh_node): Mark false_label and rethrow_label.
19912 (init_eh): Add more GC roots.
19913 * function.c (free_after_compilation): Take decl as a paramter.
19914 Call free_stmt_status.
19915 (mark_function_state): Don't assume x_parm_reg_stack_loc is
19917 * function.h (free_after_compilation): Change prototype.
19918 (free_varasm_status): Likewise.
19919 (free_emit_status): Likewise.
19920 (free_stmt_status): New function.
19921 * ggc-simple.c (rtx, vecs, trees, strings, bytes_alloced_since_gc):
19922 Remove, replacing with ...
19923 (ggc_status): New structure.
19924 (ggc_chain): New variable.
19925 (init_gcc): Define.
19926 (ggc_push_context): New function.
19927 (ggc_pop_context): Likewise.
19928 (ggc_alloc_rtx): Adjust for use of ggc_chain.
19929 (ggc_alloc_rtvec): Likewise.
19930 (ggc_alloc_tree): Likewise.
19931 (ggc_alloc_string): Likewise.
19932 (ggc_mark_rtx): Mark NOTE_SOURCE_FILE and NOTE_RANGE_INFO.
19933 (ggc_mark_tree): Give language-dependent code a chance to mark
19935 (ggc_mark_tree_varray): Handle empty arrays.
19936 (ggc_collect): Adjust for use of ggc_chain. Clear
19937 bytes_alloced_since_last_gc.
19938 * ggc.h (ggc_pop_context): New function.
19939 (ggc_push_context): Likewise.
19940 * print-tree.c (print_node): Don't print obstacks when GC'ing.
19941 * stmt.c (free_stmt_status): New function.
19942 (init_stmt_for_function): Clear last_expr_value.
19943 * toplev.c (rest_of_compilation): Always call free_after_compilation.
19944 Conditionalize call to ggc_collect.
19945 (main): Call init_ggc.
19946 * tree.c (push_obstacks): Do the push, even when GC'ing.
19947 (push_obstacks_nochange): Likewise.
19948 (pop_obstacks): Liekwise.
19949 * varasm.c (free_varasm_status): Take decl as a parameter.
19951 Tue Sep 7 08:15:49 1999 Gavin Romig-Koch <gavin@cygnus.com>
19953 * config/mips/mips.h (MULTILIB_ENDIAN_DEFAULT) : New macro.
19954 (MULTILIB_ENDIAN_DEFAULT) : Use the new macro.
19955 * config/mips/elf64.h (MULTILIB_DEFAULTS) : Use the new macro.
19956 * config/mips/r3900.h (MULTILIB_DEFAULTS) : Use the new macro.
19958 Tue Sep 7 03:42:45 1999 Mark Klein (mklein@dis.com)
19960 * pa/x-pa-mpeix: New file for the MPE port.
19962 * pa/quadlib.asm: New file for long double support.
19964 * configure.in: Add hppa1.0-*-mpeix for MPE port.
19965 * configure: Rebuilt.
19967 Tue Sep 7 10:08:40 1999 Andreas Schwab <schwab@suse.de>
19969 * final.c (shorten_branches): Fix last change.
19971 Tue Sep 7 00:30:32 1999 Jeffrey A Law (law@cygnus.com)
19973 * pa.h (ASM_OUTPUT_DOUBLE_INT): Delete.
19975 Mon Sep 6 22:44:47 1999 Jeffrey A Law (law@cygnus.com)
19977 * Merge from gcc2 snapshot Jan 9, 1999. See FSFChangeLog for
19980 Mon Sep 6 22:31:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19982 * c-aux-info.c (concat): Don't define.
19984 * cccp.c (my_strerror): Likewise. All callers changed to use
19986 (do_include): Call xstrdup, not xmalloc/strcpy.
19987 (grow_outbuf): Don't check if xrealloc returns NULL, it can't.
19988 (xmalloc, xrealloc, xcalloc, xstrdup): Don't define.
19990 * collect2.c (my_strsignal): Likewise. All callers changed to use
19992 (locatelib): Call xstrdup, not xmalloc/strcpy.
19994 * 1750a.h (ASM_OUTPUT_INTERNAL_LABEL): Call xmalloc, not malloc.
19996 * dsp16xx.c (override_options): Call xstrdup, not xmalloc/strcpy.
19998 * i370.h (ASM_DECLARE_FUNCTION_NAME): Call xmalloc, not malloc.
20000 * mips.c (build_mips16_call_stub): Call xstrdup, not xmalloc/strcpy.
20002 * cppinit.c (cpp_options_init): Call xcalloc, not xmalloc/bzero.
20004 * dwarfout.c (dwarfout_init): Call concat, not xmalloc/strcpy/...
20006 * except.c (new_eh_region_entry): Call xmalloc/xrealloc, not
20008 (find_all_handler_type_matches): Likewise. Don't check return
20010 (get_new_handler, init_insn_eh_region, process_nestinfo): Call
20011 xmalloc, not malloc.
20012 (init_eh_nesting_info): Likewise. Call xcalloc, not xmalloc/bzero.
20014 * gcc.c (xstrerror, xmalloc, xrealloc): Don't define.
20015 (init_spec): Call xcalloc, not xmalloc/bzero.
20016 (set_spec): Call xstrdup, not save_string.
20017 (record_temp_file): Call xstrdup, not xmalloc/strcpy.
20018 (find_a_file): Call xstrdup, not xmalloc/strcpy.
20019 (process_command): Call xstrdup, not save_string.
20020 (main): Call xcalloc, not xmalloc/bzero.
20022 * gcov.c (xmalloc): Don't define.
20023 (create_program_flow_graph): Call xcalloc, not xmalloc/bzero.
20024 (scan_for_source_files): Call xstrdup, not xmalloc/strcpy.
20025 (output_data): Call xcalloc, not xmalloc/bzero.
20027 * haifa-sched.c (schedule_insns): Call xcalloc, not xmalloc/bzero.
20029 * mips-tdump.c (xmalloc): Don't define.
20030 (print_symbol): Call xmalloc, not malloc.
20031 (read_tfile): Call xcalloc, not calloc.
20033 * mips-tfile.c (xfree, my_strsignal, xmalloc, xcalloc, xrealloc):
20034 Don't define. All callers of xfree/my_strsignal changed to use
20035 free/strsignal instead.
20036 (allocate_cluster): Call xcalloc, not calloc.
20038 * objc/objc-act.c (lang_init): Call concat, not xmalloc/strcpy/...
20039 Fix memory leak, free allocated memory.
20041 * prefix.c (translate_name): Call xstrdup, not save_string.
20042 (update_path): Likewise.
20044 * profile.c (branch_prob): Call xstrdup, not xmalloc/strcpy.
20046 * protoize.c (xstrerror, xmalloc, xrealloc, xfree, savestring2):
20047 Don't define. Callers of xfree/savestring2 changed to use
20048 free/concat instead.
20050 * reload1.c (reload): Call xcalloc, not xmalloc/bzero.
20051 (init_elim_table): Likewise.
20053 * resource.c (init_resource_info): Likewise.
20055 * stupid.c (stupid_life_analysis): Likewise.
20057 * toplev.c (xmalloc, xcalloc, xrealloc, xstrdup): Don't define.
20058 (open_dump_file): Call concat, not xmalloc/strcpy/...
20059 (clean_dump_file): Likewise.
20060 (compile_file): Call xstrdup, not xmalloc/strcpy.
20062 Mon Sep 6 15:04:55 1999 Richard Henderson <rth@cygnus.com>
20064 * v850.h (EXPAND_BUILTIN_VA_ARG): New.
20065 * v850.c (v850_va_arg): New.
20067 Tue Sep 7 09:36:01 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
20069 * haifa-sched.c: Tidy comments.
20071 Mon Sep 6 14:30:13 1999 Bernd Schmidt <bernds@cygnus.co.uk>
20073 * Makefile.in (C_AND_OBJC_OBJS): Remove ggc-callbacks.o.
20074 (c-parse.o, c-decl.o, c-lang.o, c-lex.o, c-common.o,
20075 $(out_object_file)): Depend on ggc.h.
20076 * c-common.c: Include "ggc.h".
20077 (combine_strings): If doing GC, use ggc_alloc_string.
20078 * c-decl.c: Include "ggc.h".
20079 (ggc_p): Define with value 0.
20080 (mark_binding_level): New function.
20081 (init_decl_processing): Add GC roots.
20082 (mark_c_function_context): New function.
20083 (lang_mark_false_label_stack): New function.
20084 (lang_mark_tree): New function.
20085 (lang_cleanup_tree): New function.
20086 * c-lang.c: Include "ggc.h".
20087 (lang_init): Call c_parse_init.
20088 * c-lex.c: Include "ggc.h".
20089 (check_linenum): If doing GC, don't copy filenames to permanent
20091 * c-parse.in: Include "ggc.h".
20092 (c_parse_init): New function.
20093 * c-tree.h (c_parse_init, mark_c_function_context): Declare.
20094 * objc/Make-lang.in (objc-parse.o): Depend on ggc.h.
20096 * except.c (mark_eh_state): Mark more state.
20097 * function.c (mark_function_state): Likewise.
20098 * ggc-simple.c (ggc_alloc_rtvec): Bring in sync with non-gc version.
20099 (ggc_alloc_string) [GGC_DUMP]: Fix typo.
20100 * toplev.c (mark_file_stack): New function.
20101 (compile_file): If doing GC, use ggc_alloc_string on input filename.
20102 (main): Add root for input_file_stack.
20104 * i386.c: Include "ggc.h".
20105 (ix86_mark_machine_status): New function.
20106 (override_options): Set mark_machine_status.
20108 Mon Sep 6 15:26:23 1999 Bernd Schmidt <bernds@cygnus.co.uk>
20110 * tree.c (copy_node): Copy node contents also if doing GC.
20112 Mon Sep 6 08:42:06 1999 Alexandre Oliva <oliva@dcc.unicamp.br>
20114 * collect2.c (scan_libraries): Fix double-thinko :-).
20116 Mon Sep 6 02:42:36 1999 Jeffrey A Law (law@cygnus.com)
20118 * collect2.c (scan_libraries): Fix thinko.
20120 * cse.c (delete_trivially_dead_insns): Do not skip the last
20121 insn if it is a real insn.
20123 Sun Sep 5 18:57:42 1999 Mark Mitchell <mark@codesourcery.com>
20125 * Makefile.in (ggc-simple.o): Depend on hash.h.
20126 * ggc.h (ggc_add_tree_hash_table_root): Declare.
20127 (ggc_mark_tree_varray): Likewise.
20128 (ggc_mark_tree_hash_table): Likewise.
20129 * ggc-simple.c: Include hash.h.
20130 (ggc_mark_tree_hash_table_ptr): New function.
20131 (ggc_mark_tree_hash_table_entry): Likewise.
20132 (ggc_mark_tree_hash_table): Likewise.
20133 (ggc_add_tree_hash_table_root): Likewise.
20134 * varray.h (const_equiv_data): Use struct rtx_def *, rather than
20135 rtx, when defining fields.
20137 Sun Sep 5 18:57:42 1999 Bernd Schmidt <crux@pool.informatik.rwth-aachen.de>
20139 * profile.c (output_func_start_profiler): Remove apparently
20140 nonsensical call to start_sequence.
20142 Sun Sep 5 17:34:33 1999 Richard Henderson <rth@cygnus.com>
20144 * clipper/clipper.c (clipper_va_start): Fix typos.
20146 * pyr/pyr.c (pyr_build_va_list, pyr_va_start, pyr_va_arg): New stubs.
20147 * spur/spur.c (spur_build_va_list, spur_va_start): New stubs.
20148 (spur_va_arg): New stub.
20150 * configure.in: Comment out pyramid.
20152 Sun Sep 5 19:11:01 1999 Michael Meissner <meissner@cygnus.com>
20154 * i386.h (MASK_{DEBUG_{ADDR,ARG},INTEL_SYNTAX}): Move so these
20155 don't conflict with the bits that win32, cygwin, and dgux
20158 Sun Sep 5 09:31:56 1999 Richard Henderson <rth@cygnus.com>
20159 Bernd Schmidt <bernds@cygnus.co.uk>
20161 * integrate.c (function_cannot_inline_p): Do not inline
20162 functions with forced labels.
20164 Sun Sep 5 00:35:17 1999 Richard Henderson <rth@cygnus.com>
20165 Bernd Schmidt <bernds@cygnus.co.uk>
20166 Mark Mitchell <mark@codesourcery.com>
20168 * Makefile.in (ggc-simple.o): Depend on varray.h.
20169 (rtl.o): Depend on ggc.h.
20170 (genattrtab.o): Depend on ggc.h.
20171 (print-tree.o): Likewise.
20172 (fold-const.o): Likewise.
20173 * emit-rtl.c (sequence_element_free_list): Remove, and all references.
20174 (make_insn_raw): Don't cache insns when GC'ing.
20175 (emit_insn_before): Likewise.
20176 (emit_insn_after): Likewise.
20177 (emit_insn): Likewise.
20178 (start_sequence): Use xmalloc to allocate the sequence_stack.
20179 (end_sequence): Add free to free it.
20180 (gen_sequence): Don't cache insns when GC'ing.
20181 (clear_emit_caches): Don't use sequence_element_free_list.
20182 (init_emit): Use xcalloc, not xmalloc+bzero.
20183 * fold-const.c (size_int_wide): Kill the cache, when GC'ing.
20184 * function.c (pop_function_context_from): Use free to free the
20185 fixup_var_refs_queue.
20186 (put_reg_into_stack): Allocate it with xmalloc.
20187 * genattrtab.c: Include ggc.h.
20188 (operate_exp): Don't use obstack_free when GC'ing.
20189 (simplify_cond): Likewise.
20190 (simplify_text_exp): Likewise.
20191 (optimize_attrs): Likewise.
20192 * gengenrtl.c (gendef): Use ggc_alloc_rtx to allocate RTL, when
20194 (gencode): Generate a #include for ggc.h.
20195 * ggc-callbacks.c (ggc_p): Define it to zero.
20196 * ggc-none.c (ggc_p): Likewise.
20197 * ggc-simple.c: Include varray.h.
20198 (ggc_mark_tree_varray): New function.
20199 (ggc_add_tree_varray_root): Likewise.
20200 (ggc_mark_tree_varray_ptr): Likewise.
20201 * ggc.h (ggc_p): Declare.
20202 (varray_head_tag): Likewise.
20203 (ggc_add_tree_varray_root): Declare.
20204 * print-tree.c (print_node): Don't check for TREE_PERMANENT
20205 inconsistencies when GC'ing.
20206 * rtl.c: Include ggc.h.
20207 (rtvec_alloc): Use ggc_alloc_rtvec when GC'ing.
20208 (rtx_alloc): Use ggc_alloc_rtx when GC'ing.
20209 (rtx_free): Don't call obstack_free when GC'ing.
20210 * toplev.c (rest_of_compilation): Call ggc_collect after every
20212 * tree.c (push_obstacks): Do nothing, if GC'ing.
20213 (pop_obstacks_nochange): Likewise.
20214 (pop_obstacks): Likewise.
20215 (make_node): Use ggc_alloc_tree when GC'ing.
20216 (copy_node): Likewise.
20217 (get_identifier): Use ggc_alloc_string when GC'ing.
20218 (build_string): Likewise.
20219 (make_tree_vec): Use ggc_alloc_tree when GC'ing.
20220 (tree_cons): Likewise.
20221 (build1): Likewise.
20222 (type_hash_canon): Don't call obstack_free when GC'ing.
20224 Sat Sep 4 21:52:32 1999 Richard Henderson <rth@cygnus.com>
20226 * haifa-sched.c (schedule_block): Use next_nonnote_insn instead
20227 of NEXT_INSN when examining speculative insns for SCHED_GROUP_P.
20229 Sat Sep 4 20:40:19 1999 Richard Henderson <rth@cygnus.com>
20230 Bernd Schmidt <bernds@cygnus.co.uk>
20231 Mark Mitchell <mark@codesourcery.com>
20233 * Makefile.in (stor-layout.o): Depend on ggc.h.
20234 (expr.o): Depend on ggc.h.
20235 (profile.o): Depend on ggc.h.
20236 (stor-layout.o): Depend on ggc.h.
20237 * emit-rtl.c (init_emit_once): Add gc roots.
20238 * expr.c: Include ggc.h.
20239 (emit_block_move): Add gc roots.
20240 (clear_storage): Likewise.
20241 * expr.h (init_stor_layout_once): New function.
20242 * profile.c: Include ggc.h.
20243 (init_arc_profiler): profiler_label is a root.
20244 * scan.c (make_sstring_space): Trust xrealloc to function
20245 correctly with first parameter NULL.
20246 * stor-layout.c: Include ggc.h.
20247 (set_sizetype): Add gc root.
20248 (init_stor_layout_once): New function.
20249 * toplev.c (compile_file): Call it.
20251 Sat Sep 4 19:26:25 1999 Richard Henderson <rth@cygnus.com>
20252 Bernd Schmidt <bernds@cygnus.co.uk>
20253 Mark Mitchell <mark@codesourcery.com>
20255 * Makefile.in (tree.o): Depend on ggc.h.
20256 (varasm.o): Likewise.
20257 (function.o): Likewise.
20258 (stmt.o): Likewise.
20259 (except.o): Likewise.
20260 (optabs.o): Likewise.
20261 (emit-rtl.o): Likewise.
20262 * emit-rtl.c: Include ggc.h.
20263 (sequence_element_free_list): Remove, and all references.
20264 (mark_sequence): New functions.
20265 (mark_emit_state): New function.
20266 * except.c: Include ggc.h.
20267 (mark_eh_node, mark_eh_stack, mark_eh_queue): New functions.
20268 (mark_tree_label_node): New functions.
20269 (mark_eh_state): New function.
20270 * function.c: Include ggc.h.
20271 (mark_temp_slot, mark_function_chain): New functions.
20272 (mark_function_state): New function.
20273 (init_function_once): New function.
20274 * function.h (init_function_once): New function.
20275 * ggc-callbacks.c (lang_mark_false_label_stack): New function.
20276 * ggc.h (label_node): Declare.
20277 (eh_status, emit_status, stmt_status, varasm_status): Likewise.
20278 (lang_mark_false_label_stack): New function.
20279 (mark_temp_slot): Remove declaration.
20280 (mark_function_chain): Likewise.
20281 (mark_eh_state): Adjust prototype.
20282 (mark_stmt_state, mark_emit_state, mark_varasm_state, mark_optab):
20284 * optabs.c: Include ggc.h.
20285 (mark_optab): New function.
20286 (init_optabs): Add gc roots.
20287 * stmt.c: Include ggc.h.
20288 (mark_cond_nesting, mark_loop_nesting): New functions.
20289 (mark_block_nesting, mark_case_nesting, mark_goto_fixup): Likewise.
20290 (mark_stmt_state): New function.
20291 * toplev.c (compile_file): Call init_function_once.
20292 * tree.c: Include ggc.h.
20293 (type_hash): Move declaration earlier in file.
20294 (TYPE_HASH_SIZE, type_hash_table): Likewise.
20295 (init_obstacks): Add gc roots.
20296 (mark_type_hash): New function.
20297 * varasm.c: Include ggc.h.
20298 (mark_pool_constant): New function.
20299 (mark_varasm_state): New function.
20301 Sat Sep 4 22:28:56 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20303 * ggc-simple.c (ggc_root, ggc_collect): Wrap prototype with PROTO.
20305 Sat Sep 4 18:01:45 1999 Bernd Schmidt <bernds@cygnus.co.uk>
20307 * c-decl.c (struct language_function): Renamed from struct c_function.
20309 (c_function_chain): Delete.
20310 (push_c_function_context): New arg F. Don't warn about nested
20311 functions here. Fill LANGUAGE elt of F. Delete code to update
20312 c_function_chain. Don't call push_function_context.
20313 (pop_c_function_context): New arg F. Restore from there instead of
20314 from c_function_chain. Don't call pop_function_context. Clear out
20315 LANGUAGE field of F when done.
20316 * c-lang.c: Include "function.h"
20317 (lang_init): Initialize save_lang_status and restore_lang_status.
20318 * c-parse.in (nested_function, nested_function_notype): Warn about
20319 nested functions. Call push_function_context/pop_function_context
20320 instead of the _c_ variants.
20321 * c-tree.h (push_c_function_context, pop_c_function_context): Update
20323 * Makefile.in (c-lang.o): Update dependencies.
20325 * emit-rtl.c (init_emit): Use xmalloc to allocate regno_reg_rtx,
20326 regno_pointer_flag, regno_pointer_align.
20327 (gen_reg_rtx): Use xrealloc to enlarge them.
20328 (free_emit_status): New function.
20329 * function.c (mark_machine_status, mark_lang_status): New variables.
20330 (assign_stack_local_1): Renamed from assign_outer_stack_local. Merge
20331 in some bits from assign_stack_local. All callers changed to use new
20333 (assign_stack_local): Just call assign_stack_local_1.
20334 (free_after_compilation): New function.
20335 (put_reg_into_stack): Simplify to always call assign_stack_local_1.
20336 (trampoline_address): Likewise.
20337 (assign_parms): Use xcalloc/xrealloc to allocate parm_reg_stack_loc.
20338 (prepare_function_start): Explicitly clear some more variables.
20339 * function.h (struct function): New elt can_garbage_collect.
20340 (mark_machine_status, mark_lang_status): Declare variables.
20341 (free_after_compilation, free_emit_status, free_varasm_status,
20342 init_varasm_status): Declare functions.
20343 * toplev.c (rest_of_compilation): Call free_after_compilation when
20344 done with the current function.
20345 * varasm.c (free_varasm_status): New function.
20347 Sat Sep 4 17:15:13 1999 Richard Henderson <rth@cygnus.com>
20349 * sparc.h (EXPAND_BUILTIN_VA_START): Define.
20350 (EXPAND_BUILTIN_VA_ARG): Define.
20351 * sparc.c (sparc_va_start): New.
20352 (sparc_va_arg): New.
20354 Sun Sep 5 11:11:59 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
20356 * config/c4x/c4x.h (DBR_OUTPUT_SEQEND): Use XVECEXP not XEXPs.
20358 Sun Sep 5 10:13:19 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
20360 * config/c4x/c4x.h (CALLER_SAVE_PROFITABLE): Disable.
20362 Sat Sep 4 13:44:01 1999 Mark Mitchell <mark@codesourcery.com>
20364 * Makefile.in (C_AND_C_OBJS): Add gcc-callbacks.o.
20365 (OBJS): Add $(GGC).
20366 (ggc-callbacks.o): New target.
20367 * ggc-callbacks.c: New file.
20369 Sat Sep 4 22:53:13 1999 Bernd Schmidt <bernds@cygnus.co.uk>
20371 * expr.h: Collapse individual optab and libfunc vars to arrays.
20372 (optab_index, libfunc_index): New enumerations.
20373 (optab_table, libfunc_table): New arrays.
20374 Add accessor macros for both.
20376 * optabs.c (optab_table, libfunc_table): New.
20377 Delete declarations for individual optab and libfunc vars.
20379 Sat Sep 4 12:57:17 1999 Richard Henderson <rth@cygnus.com>
20381 * i386/sco5.h (RETURN_POPS_ARGS): Name change ix86_return_pops_args.
20383 Sat Sep 4 11:19:52 1999 Richard Henderson <rth@cygnus.com>
20385 * Makefile.in (GGC, GGC_LIB): New.
20386 (HOST_RTL): Include ggc-none.o.
20387 (ggc-simple.o): New target.
20388 (ggc-none.o): Likewise.
20389 * tree.h (tree_common): Add gc_mark.
20390 * rtl.h (struct rtx_def): Steal a bit from code to make gc_mark.
20391 (struct rtvec_def): Add gc_mark.
20392 * emit-rtl.c (global_rtl): Update static initializers to contain
20393 enough initializers.
20394 * ggc.h, ggc-none.c, ggc-simple.c: New files.
20395 * toplev.c (gc_time): New variable.
20396 (all_time): New variable.
20397 (compile_file): Print gc time.
20398 (print_time): Calculate percentage of the whole.
20400 Sat Sep 4 13:11:01 1999 Bernd Schmidt <bernds@cygnus.co.uk>
20402 Change obstack memory management and varasm constant pool handling so
20403 that nested functions are treated like any other functions.
20404 * function.c (init_machine_status): New variable.
20405 (push_function_context_to): Set contains_functions for the outer
20406 function. Don't call save_varasm_status.
20407 (pop_function_context_from): Don't call restore_varasm_status. Don't
20408 set current_function_contains_functions.
20409 (prepare_function_start): Call init_varasm_status rather than
20410 init_const_rtx_hash_table. Call (*init_machine_status) if the pointer
20412 * function.h (struct function) Add field varasm. Delete fields
20413 inline_obstacks, inl_emit, const_rtx_hash_table, first_pool,
20414 last_pool, const_rtx_sym_hash_table, pool_offset, const_double_chain.
20415 (init_machine_status): Declare.
20416 (save_varasm_status, restore_varasm_status): Delete declarations.
20417 (save_tree_status, restore_tree_status): Delete last argument.
20418 * integrate.c (initialize_for_inline): Lose arg COPY. Delete copying
20419 code. All callers changed.
20420 (copy_decl_list, copy_decl_tree, copy_decl_rtls, copy_for_inline,
20421 save_constants_in_decl_trees, restore_constants, save_constants,
20422 save_for_inline_eh_labelmap, save_for_inline_copying): Delete
20424 (inlining): New variable.
20425 (reg_map, label_map, insn_map, orig_asm_operands_vector,
20426 copy_asm_operands_vector, copy_asm_constraints_vector): Delete
20428 (save_for_inline_nocopy): Don't save constants.
20429 Don't set inl_emit field in current_function.
20430 (expand_inline_function): Use emit field, not inl_emit, of the inlined
20431 function. Set new variable inlining before
20432 calling copy_rtx_and_substitute.
20433 (copy_rtx_and_substitute): In MEM and SYMBOL_REF cases, handle
20434 constant pool references if inlining is nonzero.
20435 Delete ADDRESS and (most of the) CONST cases.
20436 (output_inline_function): Save and restore current_function/
20437 current_function_decl. Delete restore_constants code. Don't call
20438 init_const_rtx_hash_table.
20439 * output.h (init_const_rtx_hash_table): Don't declare.
20440 * rtl.h (struct function): Declare.
20441 (get_pool_constant_for_function, get_pool_mode_for_function): Declare.
20442 * toplev.c (rest_of_compilation): Don't treat nested functions or
20443 functions containing them specially. Delete all code to deal with
20444 save_for_inline_copying.
20445 * tree.c (toplev_inline_obstacks, extra_inline_obstacks,
20446 inline_obstacks): Delete variables.
20447 (save_tree_status): Lose arg CONTEXT. All callers changed.
20448 Simply allocate a new function_maybepermanent_obstack for the new
20449 function, delete all the special cases.
20450 Don't save inline_obstacks.
20451 (restore_tree_status): Lose arg CONTEXT. All callers changed.
20452 Delete special handling for function_maybepermanent_obstack; simply
20454 Don't restore inline_obstacks.
20455 (permanent_allocation): Delete code that frees inline_obstacks.
20456 (print_inline_obstack_statistics): Delete function.
20457 (dump_tree_statistics): Don't call it.
20458 * varasm.c (struct varasm_status): New.
20459 (const_rtx_hash_table, const_rtx_sym_hash_table, first_pool,
20460 last_pool, pool_offset, const_double_chain): Delete global
20461 variables, replace with accessor macros.
20462 (immed_double_const): Don't walk const_double_chain outside a
20463 function, but don't treat nested functions specially anymore.
20464 (immed_real_const_1): Likewise.
20465 (clear_const_double_mem): Don't treat nested functions specially.
20466 (init_const_rtx_hash_table): Deleted, code moved to init_varasm_status.
20467 (save_varasm_status, restore_varasm_status): Delete functions.
20468 (init_varasm_status): New function.
20469 (force_const_mem): Don't treat nested functions specially.
20470 (find_pool_constant): Accept new arg F, search for constants in
20471 that function's pool rather than the current one. All callers
20473 (get_pool_constant_for_function, get_pool_mode_for_function): New
20476 * i386.c (init_386_machine_status): New function, mostly from
20477 clear_386_stack_locals.
20478 (struct machine_functions): Rename element names to avoid name
20480 (pic_label_rtx, pic_label_name, i386_stack_locals): New accessor
20481 macros, replacing global variables.
20482 (clear_386_stack_locals, save_386_machine_status,
20483 restore_386_machine_status): Delete functions.
20484 (override_options): Initialize init_machine_status.
20485 * i386.h (INIT_EXPANDERS): Delete macro.
20486 (save_386_machine_status, restore_386_machine_status,
20487 clear_386_stack_locals): Delete declarations.
20489 Sat Sep 4 16:56:28 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
20491 * config/c4x/c4x.md (rptb_init): Renamed from *rptb_init.
20492 (doloop_begin): Simplify pattern and use emit_jump_insn.
20493 (doloop_end): Simplify pattern, switch operand order,
20494 and use emit_jump_insn.
20496 Fri Sep 3 19:02:38 1999 Bernd Schmidt <crux@pool.informatik.rwth-aachen.de>
20498 * function.h (struct function): Add new element LANGUAGE.
20499 (save_lang_status): Declare new variable.
20500 (restore_lang_status): Likewise.
20501 * function.c (save_lang_status): Define.
20502 (restore_lang_status): Likewise.
20503 (push_function_context_to): Call language-specific save function.
20504 (pop_function_context_from): Call language-specific restore function.
20506 Fri Sep 3 01:16:18 1999 Alasdair Baird <alasdair@wildcat.demon.co.uk>
20508 * i386.md (movsf_1): Check REG_P before use of REGNO.
20509 (movdf_1): Likewise.
20510 (movxf_1): Likewise.
20511 (extendsfdf2): Likewise.
20512 (extendsfxf2): Likewise.
20513 (extenddfxf2): Likewise.
20515 Sat Sep 4 11:37:15 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
20517 * config/c4x/c4x.c (c4x_emit_move_sequence): Do not force large
20518 constants into memory.
20519 (c4x_shiftable_constant): New function.
20520 * config/c4x/c4x.c (LEGITIMATE_CONSTANT_P): Allow any CONST_INT.
20521 (c4x_shiftable_constant): Declare.
20522 * config/c4x/c4x.md (loadqi_big_constant, loadhi_big_constant,
20523 ashlqi3_noclobber): Add new patterns and associated splitters.
20525 Fri Sep 3 16:22:17 1999 Richard Henderson <rth@cygnus.com>
20527 * dbxout.c (dbxout_init): Use xcalloc instead of xmalloc+bzero.
20528 * dwarf2out.c (dwarf2out_frame_init): Likewise.
20529 * final.c (shorten_branches): Likewise.
20530 * global.c (global_alloc): Likewise.
20531 * haifa-sched.c (build_control_flow): Likewise.
20532 * stmt.c (check_for_full_enumeration_handling): Likewise.
20533 (estimate_case_costs): Likewise.
20535 Fri Sep 3 15:49:56 1999 Mark Mitchell <mark@codesourcery.com>
20537 * rtl.h (RTL_CHECKC2): Fix typo in last change.
20539 Fri Sep 3 15:13:34 1999 Richard Henderson <rth@cygnus.com>
20541 * flow.c (propagate_block): Use XEXP not SET_DEST for a USE.
20542 (recompute_reg_usage): Likewise.
20543 * rtlanal.c (find_regno_fusage): Likewise.
20545 * rtl.c (rtl_check_failed_code1): New function.
20546 (rtl_check_failed_code2): New.
20547 * rtl.h (RTL_CHECK1, RTL_CHECK2, RTVEC_ELT): Parenthesize args.
20548 (RTL_CHECKC1, RTL_CHECKC2): New.
20549 (XC*): New accessor macros.
20550 (NOTE_*, LABEL_NAME, LABEL_NUSES, ADDRESSOF_REGNO): Use them.
20551 (ADDRESSOF_DECL, JUMP_LABEL, LABEL_REFS, LABEL_NEXTREF): Likewise.
20552 (CONTAINING_INSN, REGNO, INTVAL, SUBREG_REG, SUBREG_WORD): Likewise.
20553 (ASM_OPERANDS_*, MEM_ALIAS_SET, SET_SRC, SET_DEST): Likewise.
20554 (TRAP_*, RANGE_INFO_*): Likewise.
20556 Fri Sep 3 15:10:20 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20558 * Makefile.in (tlink.o): Don't depend on toplev.h.
20560 * collect2.c (c_file, o_file, export_file, import_file, ldout,
20561 output_file, nm_file_name, ldd_file_name, strip_file_name,
20562 c_file_name, prefix_list, libexts, is_ctor_dtor, find_a_file,
20563 add_prefix, prefix_from_env, prefix_from_string, do_wait,
20564 fork_execute, maybe_unlink, add_to_list,
20565 extract_init_priority, write_list, dump_list,
20566 dump_prefix_list, write_list_with_asm, write_c_file,
20567 write_c_file_stat, write_c_file_glob, scan_prog_file,
20568 scan_libraries, is_in_list, resolve_lib_name, use_import_list,
20569 ignore_library, extract_string, notice, dump_file, target_machine,
20570 collect_wait, collect_execute, libname, locatelib, aix_std_libs,
20571 read_file, print_load_command): Constify a char*.
20572 (fdopen, error, fatal, fatal_perror): Don't prototype.
20573 (my_strerror): Remove. All callers use xstrerror instead.
20574 (xcalloc, xmalloc, xrealloc, xstrdup, putenv): Remove definitions.
20575 (main): Add prototype. Constify lots of char* ptrs. Change calls
20576 to xcalloc/strcpy/strcat/... to one call to concat.
20577 (main, scan_prog_file, scan_libraries): Use an intermediate
20578 `const char **' to build an argv array.
20579 (mapfile, libselect, libcompare, locatelib): Add prototypes.
20581 * collect2.h (collect_execute, collect_wait, dump_file,
20582 file_exists): Constify a char*.
20583 (ldout, c_file_name, temporary_obstack, permanent_obstack,
20584 temporary_firstobj, vflag, debug): Add extern declarations.
20585 (fancy_abort, error, notice, fatal, fatal_perror): Add prototypes.
20587 * tlink.c: Don't include toplev.h.
20588 (vflag, debug, ldout, c_file_name, temporary_obstack,
20589 permanent_obstack, temporary_firstobj): Don't declare.
20590 (tlink_execute, frob_extension, symbol_hash_lookup,
20591 file_hash_lookup, demangled_hash_lookup, tlink_init, freadsym,
20592 recompile_files, read_repo_files, demangle_new_symbols,
20593 scan_linker_output): Constify a char*.
20594 (symbol_hash_newfunc, file_hash_newfunc, demangled_hash_newfunc,
20595 do_tlink): Mark parameters with ATTRIBUTE_UNUSED.
20597 Fri Sep 3 18:09:24 1999 Andrew Haley <aph@cygnus.com>
20599 * config/m68k/m68kelf.h: Set USE_GAS; this makes gcc generate jbsr
20600 (relative) rather than jsr (absolute) subroutine call insns.
20601 * config/m68k/m68k-coff.h: Ditto.
20603 Fri Sep 3 17:24:31 1999 Richard Earnshaw <rearnsha@arm.com>
20605 * arm.c (note_invalid_constants): No need to ignore ASMs, we can
20606 now rework these too.
20607 (arm_reorg): If an insn can't reach the end of the current pool,
20608 ensure that we emit that pool before the insn.
20610 Fri Sep 3 09:14:32 1999 Marc Espie <espie@tetto.liafa.jussieu.fr>
20612 * tlink.c (scan_linker_output): Skip the initial underscore in
20613 a mangled name if appropriate.
20615 Fri Sep 3 01:28:33 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20617 * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
20618 objc_tree_code_name, synth_id_with_class_suffix, warn_with_method,
20619 error_with_ivar, gen_declarator, create_builtin_decl,
20620 my_build_string, generate_descriptor_table, generate_ivars_list,
20621 generate_dispatch_table, check_protocols, TAG_GETCLASS,
20622 TAG_GETMETACLASS, TAG_MSGSEND, TAG_MSGSENDSUPER, TAG_EXECCLASS,
20623 dump_base_name, lang_decode_option, build_encode_expr,
20624 start_class, finish_class, encode_pointer, really_start_method,
20625 gen_declaration, dump_interface, handle_class_ref, handle_impent):
20627 (objc_demangle, objc_printable_name, generate_struct_by_value_array):
20628 Add static prototypes.
20629 (build_objc_string_decl, build_selector_reference_decl,
20630 encode_bitfield, build_class_reference_decl): Remove unused
20631 parameter, all callers changed.
20632 (maybe_objc_method_name): Mark with ATTRIBUTE_UNUSED.
20633 (objc_printable_name): Likewise. Change second parameter to type int.
20634 (init_objc): Use memcpy, not bcopy, to avoid casts.
20636 Thu Sep 2 21:49:52 1999 Richard Henderson <rth@cygnus.com>
20638 * reload1.c (eliminate_regs_in_insn): Avoid eliminating the
20639 reg notes on a deleted insn.
20640 * gcse.c (hash_expr_1): Use XWINT on a CONST_DOUBLE.
20642 Thu Sep 2 20:18:12 1999 Jeffrey A Law (law@cygnus.com)
20644 * i386.c (ix86_attr_length_default): Handle TYPE_FXCH.
20646 Thu Sep 2 22:00:08 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
20648 * stmt.c (expand_asm_operands): Fix index into inout_mode when
20651 Thu Sep 2 13:00:48 1999 Richard Henderson <rth@cygnus.com>
20653 * stmt.c (expand_asm_operands): Invoke MD_ASM_CLOBBERS if present.
20654 * tm.texi (MD_ASM_CLOBBERS): Document it.
20656 Thu Sep 2 10:22:40 1999 Richard Henderson <rth@cygnus.com>
20658 * dwarf2out.c (dwarf2out_line): Constify `lastfile'.
20659 * except.c (expand_rethrow): Remove unused variable.
20660 * expr.c (do_jump_by_parts_greater_rtx): Likewise.
20661 * flow.c (replace_insns): Likewise.
20662 (create_edge_list, verify_edge_list): Likewise.
20663 * gcse.c (cprop_cc0_jump): Protect declaration with HAVE_cc0.
20665 * genemit.c (gen_expand): Only emit `operands[N]' decl if there
20666 is special code to run.
20667 (main): Don't define operands to emit_operand.
20668 * genrecog.c (main): Don't emit an empty peephole2_insn function.
20670 * rtl.h (NOTE_BASIC_BLOCK): Use X0BBDEF.
20672 * alpha/alpha.h (normal_memory_operand): Declare.
20673 (reg_no_subreg_operand): Declare.
20674 * alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use HOST_WIDE_INT_PRINT_DEC.
20676 Thu Sep 2 10:19:20 1999 Richard Henderson <rth@cygnus.com>
20678 * c-parse.in (compstmt_primary_start): New, broken out of first
20679 part of compstmt handling in primary.
20680 (primary): Use it. Add an error clause.
20681 (compstmt_nostart): Renamed from compstmt; remove all
20682 initial invocations of compstmt_start.
20685 Thu Sep 2 01:35:50 1999 Marc Espie <espie@cvs.openbsd.org>
20687 * protoize.c (gen_aux_info_file): Let pexecute call choose_temp_base if
20690 Thu Sep 2 00:43:59 1999 Finn Hakansson <finn@axis.com>
20692 * combine.c (simplify_shift_const): Remove extra semicolon.
20693 * dwarf2out.c (remove_AT): Likewise.
20694 * expmed.c (expand_mult): Likewise.
20695 * gcov.c (create_program_flow_graph): Likewise.
20696 * reorg.c (mostly_true_jump): Likewise.
20698 Thu Sep 2 00:06:43 1999 Jeffrey A Law (law@cygnus.com)
20700 * fold-const.c (fold_range_test): Do not try to fold the range
20701 test if the rhs or lhs has side effects.
20703 * combine.c (simplify_rtx): Recognize another case of a synthesized
20706 * varasm.c (mark_constant_pool): When marking indirect references,
20707 only look at SYMBOL_REFs.
20709 * except.c (expand_fixup_region_end): Do not peek at
20710 INSN_UID (node->entry->outer_context) for flag_new_exceptions.
20712 Thu Sep 2 13:52:53 1999 Geoffrey Keating <geoffk@cygnus.com>
20714 * flags.h: New variables align_loops, align_loops_log,
20715 align_jumps, align_jumps_log, align_labels, align_labels_log,
20716 align_functions, align_functions_log.
20717 * toplev.c: Define them.
20718 (f_options): Handle -falign-* when they have no argument.
20719 (main): Add logic to set variables for -falign-functions,
20720 -falign-jumps, -falign-labels, -falign-loops.
20721 Make it -fsched-verbose=<n> and -finline-limit=<n>.
20722 (display_help): Change help to match options.
20723 * final.c (LABEL_ALIGN): Default to align_labels_log.
20724 (LABEL_ALIGN_MAX_SKIP): Default to align_labels-1.
20725 (LOOP_ALIGN): Default to align_loops_log.
20726 (LOOP_ALIGN_MAX_SKIP): Default to align_loops-1.
20727 (LABEL_ALIGN_AFTER_BARRIER): Default to align_jumps_log.
20728 (LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Default to align_jumps-1.
20729 * varasm.c (assemble_start_function): Handle align_functions.
20731 * config/sparc/sparc.h: Don't declare sparc_align_*.
20732 Don't provide LABEL_ALIGN_AFTER_BARRIER or LOOP_ALIGN.
20733 (DEFAULT_SPARC_ALIGN_FUNCS): Delete; take functionality into
20735 (FUNCTION_BOUNDARY): Fix incorrect use---it's not just a request,
20737 * config/sparc/sparc.c: Delete sparc_align_loops,
20738 sparc_align_jumps, sparc_align_funcs and the corresponding string
20740 (sparc_override_options): Default align_functions on ultrasparc.
20741 Delete -malign-* handling.
20743 * config/mips/mips.c (override_options): On 64-bit targets,
20744 try to align code to 64-bit boundaries.
20745 (print_operand): New substitution, %~,
20746 which aligns labels to align_labels_log.
20747 * config/mips/mips.md (div_trap_normal): Use %~.
20748 (div_trap_mips16): Likewise.
20750 (absdi2): Likewise.
20751 (ffssi2): Likewise.
20752 (ffsdi2): Likewise.
20753 (ashldi3_internal): Likewise.
20754 (ashrdi3_internal): Likewise.
20755 (lshrdi3_internal): Likewise.
20756 (casesi_internal): Likewise.
20758 Wed Sep 1 21:13:48 1999 Richard Henderson <rth@cygnus.com>
20760 Merge new ia32 backend from the branch!
20762 * i386.h, i386.c, i386.md, reg-stack.c, i386/unix.h: Many changes.
20763 See ChangeLog.P2 on new_ia32_branch for details.
20765 * rtl.h (stack_regs_mentioned_p): Delete prototype.
20766 * i386/cygwin.h (SUBTARGET_PROLOGUE): No more do_rtl.
20767 * i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
20768 * i386/gas.h (ASM_FILE_START): Define.
20769 * i386/winnt.c (i386_pe_valid_decl_attribute_p): Update
20770 for name change of ix86_valid_decl_attribute_p.
20771 (i386_pe_valid_type_attribute_p): Similarly.
20773 Wed Sep 1 18:21:23 1999 Richard Henderson <rth@cygnus.com>
20775 * emit-rtl.c (init_emit_once): Don't use GET_MODE_WIDER_MODE
20776 to step through CC modes.
20778 Wed Sep 1 20:18:06 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
20780 * regmove.c (fixup_match_1): Don't move INSN in front of P if
20781 it would end up in the shadow of a live flags regsiter.
20783 Wed Sep 1 11:32:00 1999 Bernd Schmidt <bernds@cygnus.co.uk>
20785 * reload1.c: Fix many indentation problems.
20786 * reload.c: Likewise.
20788 Tue Aug 31 22:08:03 1999 Marc Espie <espie@cvs.openbsd.org>
20790 * alias.c (non_local_reference_p): Constify fmt.
20792 Tue Aug 31 23:19:35 1999 Michael Meissner <meissner@cygnus.com>
20794 * config/i386/xm-cygwin.h (HAVE_DOS_BASED_FILE_SYSTEM): Define.
20796 Tue Aug 31 16:44:52 1999 Jeffrey A Law (law@cygnus.com)
20798 * cse.c (delete_trivially_dead_insns): Do not delete stores to
20799 the internal_arg_pointer.
20801 Tue Aug 31 13:35:42 1999 Richard Henderson <rth@cygnus.com>
20803 Merge peephole2 from new_ia32_branch:
20804 * Makefile.in (STAGESTUFF): Add *.peephole2.
20805 (mostlyclean): Likewise.
20806 (recog.o): Depend on resource.h.
20808 * final.c (peephole): Conditionalize decl on HAVE_peephole.
20809 (final_scan_insn): Likewise for the invocation of peephole.
20810 * genconfig.c (main): Look for peephole and peephole2 patterns.
20811 Emit HAVE_peephole* accordingly.
20812 * genpeep.c (main): Conditionalize entire output on HAVE_peephole.
20813 * flags.h (flag_peephole2): Declare.
20814 * toplev.c: New pass peephole2. New flag -fpeephole2.
20816 * genattrtab.c (main): Count DEFINE_PEEPHOLE2.
20817 * gencodes.c (main): Likewise.
20818 * genextract.c (main): Likewise.
20819 * genoutput.c (main): Likewise.
20820 * genemit.c (max_operand_1): Look for the max scratch operand.
20821 (gen_rtx_scratch): New.
20822 (gen_exp): Use it, and pass on new arg subroutine_type.
20823 (gen_expand): Take max scratch into account.
20824 (gen_split): Emit peephole2 functions.
20825 (output_peephole2_scratch): New.
20826 (main): Include hard-reg-set.h and resource.h. Handle peephole2.
20827 * genrecog.c (routine_type): Add PEEPHOLE2.
20829 (make_insn_sequence): Match outer parallel for peep2. Discard
20830 top level scratches and dups.
20831 (add_to_sequence): New args insn_type and top. Update all callers.
20832 Handle toplevel peep2 matching insns.
20833 (write_subroutine): Handle peep2.
20834 (write_tree_1): Likewise.
20835 (write_tree): Likewise.
20837 (change_state): New arg afterward. Update all callers.
20838 Handle matching separate insns.
20839 * recog.c (recog_next_insn): New.
20840 (peephole2_optimize): New.
20841 * rtl.def (DEFINE_PEEPHOLE2): New.
20842 * resource.c (find_free_register): New argument last_insn. Use it
20843 to find a register available through the entire span.
20844 * resource.h (find_free_register): Update prototype.
20846 Tue Aug 31 11:51:06 1999 Jim Kingdon <http://developer.redhat.com>
20848 * i386.c (output_strlen_unroll): Don't write xops[7]
20849 label if it wasn't set.
20851 1999-08-31 12:44 -0700 Zack Weinberg <zack@bitmover.com>
20853 * cpplib.c (struct directive): Const-ify name pointer and
20854 function pointer prototype.
20855 (validate_else, do_define, do_line, do_include, do_undef,
20856 do_error, do_pragma, do_ident, do_if, do_xifdef, do_else,
20857 do_elif, do_endif, do_sccs, do_assert, do_unassert,
20858 do_warning): Const-ify second arg.
20859 (directive_table): Mark const. Reorder entries by frequency
20860 of usage, record statistics.
20862 1999-08-31 12:20 -0700 Zack Weinberg <zack@bitmover.com>
20864 * rtl.h (RTL_CHECK1, RTL_CHECK2): New macros which type- and
20865 bounds- check RTL accesses if --enable-checking.
20866 (RTVEC_ELT): Bounds check if --enable-checking.
20867 (XWINT, XINT, XSTR, XEXP, XVEC, XMODE, XBITMAP, XTREE,
20868 XBBDEF): Use RTL_CHECK1/RTL_CHECK2 as appropriate.
20869 (XVECEXP, XVECLEN): Define in terms of XVEC, RTVEC_ELT, and
20871 (X0WINT, X0INT, X0STR, X0EXP, X0VEC, X0MODE, X0BITMAP, X0TREE,
20872 X0BBDEF, X0ADVFLAGS): New macros for accessing '0' slots of RTXes.
20874 (ADDR_DIFF_VEC_FLAGS): Use X0ADVFLAGS.
20875 (NOTE_SOURCE_FILE): Use X0STR.
20876 (NOTE_BLOCK_NUMBER, NOTE_EH_HANDLER, LABEL_NUSES,
20877 MEM_ALIAS_SET): Use X0INT.
20878 (NOTE_RANGE_INFO, NOTE_LIVE_INFO, NOTE_BASIC_BLOCK,
20879 JUMP_LABEL, LABEL_REFS, LABEL_NEXTREF, CONTAINING_INSN):
20881 * real.h (CONST_DOUBLE_CHAIN): Use X0EXP.
20882 * rtl.c (copy_rtx, copy_most_rtx): Copy '0' slots with X0WINT.
20883 (rtl_check_failed_bounds, rtl_check_failed_type1,
20884 rtl_check_failed_type2, rtvec_check_failed_bounds): New
20886 (fancy_abort): Fix comment.
20888 * cse.c (canon_hash): Read CONST_DOUBLE data slots with XWINT.
20889 (cse_insn): Decrement LABEL_NUSES for jump target before
20890 deleting jump insn.
20891 * emit-rtl.c (gen_rtx_CONST_DOUBLE): Use X0EXP for slot 1.
20892 * final.c (alter_subreg): Compute regno before changing x to
20893 REG; set REGNO(x) after changing it.
20894 * flow.c (count_basic_blocks): Use XWINT to inspect EH_REGION
20895 notes containing CONST_INTs.
20896 (delete_eh_regions): Use NOTE_EH_HANDLER.
20897 * function.c (put_reg_into_stack): Make reg a MEM before
20899 (fixup_var_refs_insns): Save REG_NOTES (insn) in case we
20901 (gen_mem_addressof): Make reg a MEM before initializing it.
20902 * integrate.c (copy_rtx_and_substitute): Copy '0' slots with
20904 * local-alloc.c (update_equiv_regs): Zap REG_NOTES before
20905 deleting an insn, not after.
20906 (block_alloc): Only look at PATTERN(insn) if we have to, and
20907 only if it's format class 'i'.
20908 * loop.c (check_dbra_loop): Check bl->biv->add_val is a
20909 CONST_INT before using its INTVAL.
20910 * print-rtl.c (print_rtx): Use X0STR.
20911 * regmove.c (fixup_match_1): Don't look at PATTERN of
20912 non-class-'i' insn chain elements.
20913 * reload.c (loc_mentioned_in_p): Take address of
20914 in->fld[1].rtx directly.
20915 * reload1.c (reload): Change reg to a MEM before initializing
20917 * varasm.c (mark_constant_pool): Skip CONST_DOUBLES, which
20919 * config/i386/i386.md (decrement_and_branch_if_zero): Fix typo.
20921 Fri Aug 20 13:43:41 1999 Andrew Haley <aph@cygnus.com>
20923 * config/mips/mips.c (machine_dependent_reorg): Force a
20924 barrier to output the local constant pool if a barrier hasn't
20925 been found at a natural point in the instruction stream.
20927 Mon Aug 30 22:04:36 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20929 * c-parse.in (language_string): Constify.
20931 * dwarf2out.c (language_string): Remove declaration.
20933 * dwarfout.c (language_string): Likewise.
20935 * toplev.c (language_string, init_parse, finish_parse): Likewise.
20937 * tree.h (language_string, init_parse, finish_parse): Declare.
20939 * i386/sun386.h (language_string): Remove declaration.
20941 * mips.h (language_string): Likewise.
20943 * nextstep.h (language_string): Likewise.
20945 * nextstep21.h (language_string): Likewise.
20947 * rs6000.c (language_string): Likewise.
20949 Mon Aug 30 20:56:08 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20951 * Makefile.in (OBJS, PROTO_OBJS): Remove getpwd.o.
20952 (getpwd.o): Remove target.
20954 * getpwd.c: Delete file. Its in libiberty now.
20956 * dbxout.c (getpwd): Don't prototype.
20957 * dwarf2out.c (getpwd): Likewise
20958 * dwarfout.c (getpwd): Likewise
20959 * final.c (getpwd): Likewise.
20960 * protoize.c (getpwd): Likewise.
20962 Mon Aug 30 20:21:34 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20964 * cse.c: (fold_rtx): Cast to HOST_WIDE_INT in left shift.
20966 Mon Aug 30 16:07:49 1999 Richard Henderson <rth@cygnus.com>
20968 * flow.c (new_insn_dead_notes): Use sets_reg_or_subreg not
20969 mark_set_resources.
20971 Mon Aug 30 12:23:53 1999 Jim Wilson <wilson@cygnus.com>
20973 * fixinc/Makefile.in (subdir): New.
20974 (fixincl.x, inclhack.sh, fixincl.sh): Use cp instead of $(CP).
20977 Mon Aug 30 01:02:09 1999 Jeffrey A Law (law@cygnus.com)
20979 * emit-rtl.c (copy_rtx_if_shared): A MEM which references
20980 virtual_stack_vars_rtx or virtual_incoming_args_rtx can not
20983 * invoke.texi: Fix typo.
20985 * dwarf2out.c (mem_loc_descriptor): New argument MODE. All callers
20986 changed. Handle autoincrement addressing modes.
20988 * integrate.c (copy_rtx_and_substitute): Handle internal_arg_pointer
20989 just like we would the virtual incoming args register when
20992 Sun Aug 29 23:17:54 1999 David Edelsohn <edelsohn@gnu.org>
20994 * rs6000.h (ASM_FILE_START): Specify complete filename, including
20995 path, in .file directive.
20997 Sun Aug 29 05:06:43 1999 Russ Allbery <rra@stanford.edu>
20999 * gcc.texi (External Bugs): Remove obsolete note about Perl on
21002 1999-08-29 08:38 -0700 Zack Weinberg <zack@bitmover.com>
21004 * stdbool.h: Make the typedef name _Bool, with bool a #defined
21007 Sun Aug 29 09:36:50 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21009 * tree.c (tree_code_name): Constify a char*.
21011 * tree.h (tree_code_name, decl_printable_name): Likewise.
21013 * function.h (struct function): Likewise.
21015 * toplev.c (decl_name, decl_printable_name): Likewise.
21017 * vax/vms.h (MAYBE_VMS_FUNCTION_PROLOGUE): Likewise.
21019 * objc/objc-act.c (decl_printable_name): Remove redundant prototype.
21020 (init_objc): Remove function pointer cast.
21022 Sun Aug 29 05:01:17 1999 John David Anglin <dave@hiauly1.hia.nrc.ca>
21024 * pa.md (interspace_jump): New pattern.
21025 (builtin_longjmp): New expander.
21027 1999-08-29 Bernd Schmidt <bernds@cygnus.co.uk>
21029 * fp-bit.c (add, sub, multiply, divide, compare, _eq_f2, _ne_f2,
21030 _gt_f2, _ge_f2, _lt_f2, _le_f2, float_to_si, float_to_usi, negate,
21031 sf_to_df, df_to_sf): Fix potential problem with alias analysis.
21033 Sun Aug 29 04:30:52 1999 John Wehle (john@feith.com)
21035 * jump.c (delete_prior_computation): Also check calls
21036 to constant functions. Don't bother checking for a
21037 REG_UNUSED note before adding it.
21038 (delete_computation): Handle multi-word hard registers
21039 when synthesizing missing REG_DEAD notes for a register
21040 which is both set and used by an insn.
21042 1999-08-29 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
21044 * loop.c (this_loop_info): New variable.
21045 (loop_has_call, loop_has_volatile, loop_has_tablejump,
21046 loop_continue, loops_enclosed): Replace with fields in this_loop_info.
21048 (prescan_loop, strength_reduce): New argument loop_info. All callers
21050 (scan_loop): New variable loop_info, initialise to address of
21052 (prescan_loop): Set loop_info->vtop if find NOTE_INSN_LOOP_VTOP.
21053 Delete variable loop_has_multiple_exit targets and replace with
21054 field in this_loop_info.
21055 (find_and_verify_loops): Rename this_loop to this_loop_num.
21056 (strength_reduce): Delete loop_iteration_info. Replace variable
21057 loop_info with function argument of same name.
21058 (insert_bct): Rework test for loop being completely unrolled.
21060 * loop.h (struct loop_info): New fields num, loops_enclosed,
21061 has_call, has_volatile, has_tablejump, has_multiple_exit_targets,
21062 has_indirect_jump, and cont. Redefine use of unroll_number.
21063 (loop_unroll_number): Delete.
21065 * unroll.c (unroll_loop): Store loop unroll count in unroll_number
21066 field of loop_info.
21067 (loop_iterations): Delete variable vtop and instead use
21068 loop_info->vtop computed in prescan_loop.
21070 Sun Aug 29 03:27:23 1999 Scott Weikart <scott@igc.apc.org>
21072 * fix-header.c (main): Do not pass a null pointer to strcmp.
21074 Sun Aug 29 03:18:48 1999 William Bader (william@nscs.fast.net)
21076 * configure.in (i[34567]86-*-sco3.2v4*): Target does not truncate
21078 * configure: Rebuilt.
21080 Sat Aug 28 19:36:05 1999 Jeffrey A Law (law@cygnus.com)
21082 * jump.c (jump_optimize_1): Do not delete assignments to
21083 internal_arg_pointer.
21084 * cse.c (delete_trivially_dead_insns): Always consider a set of
21085 the internal_arg_pointer live.
21087 Sat Aug 28 16:24:31 1999 Richard Henderson <rth@cygnus.com>
21089 * flow.c (flow_delete_insn_chain): Rename from delete_insn_chain.
21090 (update_life_info) [REG_WAS_0]: Search the original insns rather
21091 than the new insns for the note. Fix typos finding note_dest.
21092 If no dest found, discard the note rather than abort.
21093 [REG_NOALIAS]: Handle as REG_NO_CONFLICT.
21094 (replace_insns): Remove the old insn list after update_life_info
21097 Sat Aug 28 16:20:12 1999 Richard Henderson <rth@cygnus.com>
21099 * haifa-sched.c (sched_analyze): Clear LOG_LINKS before calling
21100 sched_analyze_insn.
21101 (sched_analyze_1): Let add_dependence care for not adding dups.
21102 (sched_analyze_2): Likewise.
21103 (add_branch_dependences): Likewise.
21105 Sat Aug 28 15:58:16 1999 Mumit Khan <khan@xraylith.wisc.edu>
21107 * i386/winnt.c (export_list): New type.
21108 (exports_head): Rename to
21109 (export_head): this.
21110 (i386_pe_record_exported_symbol): Add is_data flag.
21111 (i386_pe_asm_file_end): Emit directive for exported variables.
21112 * i386/cygwin.h (i386_pe_record_exported_symbol): Update
21114 * i386/cygwin.h (ASM_OUTPUT_COMMON): Specify symbol type.
21115 (ASM_DECLARE_OBJECT_NAME): Likewise.
21116 (ASM_DECLARE_FUNCTION_NAME): Likewise.
21117 * i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
21119 Fri Aug 27 15:35:24 1999 Jeffrey A Law (law@cygnus.com)
21121 * cse.c (fold_rtx): Work around bug in Sun V5.0 compilers.
21123 * pa.c (emit_move_sequence): Do not stop on SUBREG_WORD of an
21126 Fri Aug 27 14:01:19 1999 Marc Espie <espie@cvs.openbsd.org>
21128 * config/openbsd.h: Define SET_ASM_OP.
21129 * tm.texi: cross-reference SET_ASM_OP in the index.
21131 1999-08-27 13:27 -0700 Zack Weinberg <zack@bitmover.com>
21133 * rtl.c: Define CONST_DOUBLE_FORMAT to the appropriate format
21134 for a CONST_DOUBLE, at compile time. Initialize rtx_length
21135 and class_narrowest_mode at compile time. Kill init_rtl.
21136 Mark rtx_length, mode_class, mode_size, mode_unit_size,
21137 mode_wider_mode, mode_mask_array, class_narrowest_mode, and
21138 rtx_format as const. Kill all references to EXTRA_CC_MODES or
21140 * rtl.def (CONST_DOUBLE): Use CONST_DOUBLE_FORMAT macro for
21142 * rtl.h: Declare rtx_length and rtx_format as const.
21143 * machmode.def: Define CC(). Use CC() to define CCmode. If
21144 EXTRA_CC_MODES is defined, expand it here.
21145 * machmode.h: Declare mode_class, mode_size, mode_unit_size,
21146 mode_wider_mode, mode_mask_array, and class_narrowest_mode as
21147 const. Kill all references to EXTRA_CC_MODES.
21149 * toplev.c: Don't prototype or call init_rtl.
21150 * optabs.c: Don't call init_mov_optab.
21151 * genemit.c: Don't generate init_mov_optab. Don't call
21153 * gengenrtl.c: Duplicate calculation of CONST_DOUBLE_FORMAT
21155 * genattr.c, genattrtab.c, gencodes.c, genconfig.c,
21156 genextract.c, genflags.c, genopinit.c, genoutput.c, genpeep.c,
21157 genrecog.c: Don't call init_rtl.
21159 * arc.h, arm.h, c4x.h, i386.h, i960.h, m88k.h, pa.h, pdp11.h,
21160 rs6000.h, sparc.h: Don't define EXTRA_CC_NAMES. Use CC() in
21161 definition of EXTRA_CC_MODES.
21163 * md.texi: Kill ref to EXTRA_CC_NAMES.
21164 * tm.texi: Document new way to define EXTRA_CC_MODES.
21166 * genrecog.c: Do not look up the name of a define_split.
21167 (Unrelated bugfix.)
21169 Fri Aug 27 17:03:42 1999 Nick Clifton <nickc@cygnus.com>
21171 * config/v850/v850.md: Fix typo introduced by previous delta.
21173 Fri Aug 27 09:48:59 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21175 * gcc.c (fatal): Make definition static to match prototype.
21177 Fri Aug 27 10:33:35 1999 Bernd Schmidt <bernds@cygnus.co.uk>
21179 * combine.c (get_last_value): Don't look for earlier sets if the last
21180 known set is somewhere in between the insns being combined.
21182 Fri Aug 27 10:03:12 BST 1999 Nathan Sidwell <nathan@acm.org>
21184 * configure.in: Don't use shell ! to negate exit codes
21185 * configure: Regenerate
21187 Fri Aug 27 09:36:17 1999 Andreas Schwab <schwab@suse.de>
21189 * function.c (assign_stack_temp_for_type): Fix change of Mar 5 for
21190 the fact that ALIGN is measured in bits, not bytes.
21192 1999-08-27 00:27 -0700 Zack Weinberg <zack@bitmover.com>
21194 * errors.c: New file; defines functions error, warning, and
21195 fatal, variables have_error and progname.
21196 * errors.h: New file; prototypes and decls for stuff in errors.c.
21198 * Makefile: Add rules to build errors.o and
21199 $(HOST_PREFIX)errors.o. Link genconfig, gencodes, genemit,
21200 genopinit, genrecog, genextract, genpeep, genattr, and
21201 genoutput with errors.o. Add errors.h to deps of genconfig.o,
21202 gencodes.o, genemit.o, genopinit.o, genrecog.o, genextract.o,
21203 genpeep.o, genattr.o, and genoutput.o.
21205 * genconfig.c, gencodes.c, genemit.c, genopinit.c, genrecog.c,
21206 genextract.c, genpeep.c, genattr.c: Include errors.h. Don't
21207 define or prototype fatal. Set progname at beginning of main.
21208 * genoutput.c: Likewise, and don't define or prototype error
21211 * c-typeck.c (c_expand_start_case): Return immediately if exp
21213 * fold-const.c (operand_equal_p): Return immediately if arg1
21214 or arg0 are ERROR_MARKs.
21215 * stor-layout.c (layout_type [case RECORD_TYPE]): Ignore
21216 fields of type ERROR_MARK when calculating if the record can
21219 Fri Aug 27 01:03:48 1999 Jim Kingdon <http://developer.redhat.com>
21220 with much help from Jeffrey A Law and Richard Henderson
21222 * i386.md: In the 6 insns which call output_fix_trunc,
21223 earlyclobber operands[0].
21225 Fri Aug 27 01:01:51 1999 Philip Blundell <pb@nexus.co.uk>
21227 * jump.c (duplicate_loop_exit_test): Call reg_scan_update after
21228 creating new registers.
21230 1999-08-26 23:09 -0700 Zack Weinberg <zack@bitmover.com>
21232 * i386.h: Declare ix86_cpu_string, ix86_arch_string,
21233 i386_reg_alloc_order, i386_regparm_string,
21234 i386_align_loops_string, i386_align_jumps_string,
21235 i386_align_funcs_string, i386_preferred_stack_boundary_string,
21236 and i386_branch_cost_string as type "const char *".
21237 * i386.c: Define all above strings as type "const char *".
21239 Thu Aug 26 20:36:30 1999 Jim Wilson <wilson@cygnus.com>
21241 * dwarf2out.c (output_aranges): Check DWARF_OFFSET_SIZE not PTR_SIZE
21242 when emitting alignment padding. Emit padding byte of 0 instead of 4.
21244 Thu Aug 26 18:11:20 1999 Mark Mitchell <mark@codesourcery.com>
21246 * tree.c (array_type_nelts): Don't create RTL_EXPRs from
21247 SAVE_EXPRs unless the SAVE_EXPRs have already been expanded.
21249 Thu Aug 26 19:33:23 1999 Jim Wilson <wilson@cygnus.com>
21251 * dwarf2out.c (DWARF2_ASM_LINE_DEBUG_INFO): Add default definition.
21252 (debug_dwarf): Add DWARF2_ASM_LINE_DEBUG_INFO support.
21253 (dwarf2out_line, dwarf2out_finish): Likewise.
21254 * tm.texi (DWARF2_ASM_LINE_DEBUG_INFO): Add documetation.
21256 Thu Aug 26 16:10:56 1999 Gavin Romig-Koch <gavin@cygnus.com>
21258 * tree.c (lang_unsave_expr_now) : Correct return type.
21259 * tree.h (lang_unsave_expr_now) : Same.
21261 Thu Aug 26 13:12:29 1999 Jeffrey A Law (law@cygnus.com)
21263 * pa.c (cint_ok_for_move): Use CONST_INT_OK_FOR_LETTER_P macros
21264 instead of duplicating code.
21266 Thu Aug 26 18:32:32 1999 Bernd Schmidt <bernds@cygnus.co.uk>
21268 * gcse.c (hash_scan_insn): Don't scan obvious no-ops.
21270 1999-08-26 09:42 -0700 Zack Weinberg <zack@bitmover.com>
21272 * tree.h: fancy_abort always takes three args.
21273 * resource.c: Move include of system.h before toplev.h.
21275 Thu Aug 26 09:46:16 1999 Nick Clifton <nickc@cygnus.com>
21277 * dwarf2out.c (mem_loc_descriptor): Accept LABEL_REFs as well
21280 1999-08-25 22:10 -0700 Zack Weinberg <zack@bitmover.com>
21282 * system.h: Don't redefine abort or trim_filename.
21283 * rtl.h: Define abort to fancy_abort (__FILE__, __LINE__, 0)
21284 or fancy_abort (__FILE__, __LINE__, __FUNCTION__) depending on
21285 whether or not __FUNCTION__ is available.
21286 * tree.h: Duplicate rtl.h's definition of abort, for files
21287 that don't include rtl.h. Delete all code to perform type
21288 checking with a compiler other than GCC.
21289 * varray.h: Delete all code to perform type checking with a
21290 compiler other than GCC. Make VARRAY_CHECK() always evaluate
21291 its arguments exactly once, using a statement expression.
21292 Adjust the VARRAY_<type> accessor macros to match.
21293 * toplev.h (fatal_insn, fatal_insn_not_found): Kill.
21294 (_fatal_insn, _fatal_insn_not_found): New fns, take info on
21295 caller's location. Define fatal_insn and fatal_insn_not_found
21296 as macros that use _fatal_insn and _fatal_insn_not_found.
21297 (fancy_abort, trim_filename): Kill prototypes.
21299 * rtl.c (trim_filename): Move here from toplev.c.
21300 (fancy_abort): New function.
21301 (DIR_SEPARATOR): Provide default definition.
21302 * tree.c (tree_check_failed, tree_class_check_failed): Go
21303 through fancy_abort.
21304 (tree_check, tree_class_check, cst_or_constructor_check,
21305 expr_check): Delete.
21306 * varray.c (varray_check_failed): New function.
21307 * toplev.c (fatal_insn, fatal_insn_not_found): Replace with
21308 _fatal_insn and _fatal_insn_not_found. Go through
21310 (trim_filename, fancy_abort): Delete.
21312 * builtins.c (expand_builtin_args_info): Report ICE with abort.
21313 * except.c (start_catch_handler): Report ICE with error/abort
21315 * final.c (output_operand_lossage): Likewise.
21316 * flow.c (verify_flow_info): Likewise.
21318 * gcc.c: Prototype fatal.
21319 * gengenrtl.c: Undef abort after including rtl.h not system.h.
21320 * genattr.c, genattrtab.c, genemit.c, genextract.c,
21321 genflags.c, genopinit.c, genoutput.c, genpeep.c, genrecog.c:
21322 Don't define fancy_abort.
21324 Wed Aug 25 17:56:59 1999 Richard Henderson <rth@cygnus.com>
21326 * optabs.c (emit_cmp_and_jump_insns): Be more thorough in
21329 Wed Aug 25 15:35:55 1999 Richard Henderson <rth@cygnus.com>
21331 * m88k.h (VERSION_INFO2): Kill.
21332 (VERSION_STRING): Kill.
21334 (VERSION_INFO1): Tidy.
21335 (TARGET_VERSION): Update.
21336 * m88k/dgux.h (VERSION_INFO2): Kill.
21337 (ASM_FIRST_LINE): Adjust for death of VERSION_STRING.
21338 * m88k/luna.h (VERSION_INFO1): Tidy.
21339 * m88k/sysv4.h (VERSION_INFO1): Likewise.
21340 * m88k.c (out_rcs_id, tm_rcs_id): Kill.
21341 (output_file_start): Adjust for death of VERSION_STRING.
21343 1999-08-25 13:51 -0700 Jim Meyering <meyering@ascend.com>
21345 * cpplib.c (detect_if_not_defined): New function.
21346 (do_if): Use it to detect potential once-only headers.
21348 Wed Aug 25 14:00:18 1999 Jason Merrill <jason@yorick.cygnus.com>
21350 * c-common.c (combine_strings): Always set TREE_CONSTANT.
21352 Wed Aug 25 15:27:22 1999 Gavin Romig-Koch <gavin@cygnus.com>
21354 * combine.c (nonzero_bits) : Allow single-ly set registers to be
21355 anywere in the function only if they are pseudos and set before
21356 being used (not live at the start of the function).
21357 (num_sign_bit_copies) : Same.
21358 (get_last_value_validate) : Same.
21359 (get_last_value) : Same.
21361 Wed Aug 25 11:13:29 1999 Richard Henderson <rth@cygnus.com>
21363 * loop.c (express_from): Try harder to unify (* c N) and (* c M)
21364 where N and M are constant and N is an integer multiple of M.
21366 Wed Aug 25 13:55:47 EDT 1999 Andrew MacLeod <amacleod@cygnus.com>
21368 * sbitmap.h (sbitmap_intersection_of_succs): Add prototype.
21369 (sbitmap_intersection_of_preds, sbitmap_union_of_succs,
21370 sbitmap_union_of_preds): Add prototypes.
21371 * sbitmap.c (sbitmap_intersection_of_succs): New function to compute
21372 the intersection of successors with the new flow graph structures.
21373 (sbitmap_intersection_of_preds): New function to compute the
21374 intersection of predecessors with the new flow graph structures.
21375 (sbitmap_union_of_succs): New function to compute the union of
21376 successors with the new flow graph structures.
21377 (sbitmap_union_of_preds): New function to compute the union of
21378 predecessors with the new flow graph structures.
21379 * gcse.c (compute_rdm, compute_available): Use new sbitmap routines.
21380 (expr_reaches_here_p): Use edge and basic_block structures instead
21381 of s_preds and s_succs.
21382 (compute_cprop_avinout): Use new sbitmap routines.
21383 (pre_expr_reaches_here_p): Use edge and basic_block structures instead
21384 of s_preds and s_succs.
21385 * flow.c (compute_flow_dominators): Compute dominators using
21386 edges and basic blocks instead of s_preds and s_succs.
21388 Wed Aug 25 13:41:47 EDT 1999 Andrew MacLeod <amacleod@cygnus.com>
21390 * lists.c (unused_insn_list, unused_expr_list): New file for
21391 maintaining various types of lists. New statics for maintaining a
21392 cache of available INSN_LIST and EXPR_LIST nodes.
21393 (free_list): Static function for freeing a list of INSN/EXPR nodes.
21394 (alloc_INSN_LIST): Function to get a free INSN_LIST node.
21395 (alloc_EXPR_LIST): Function to get a free EXPR_LIST node.
21396 (init_EXPR_INSN_LIST_cache): Initialize the cache lists.
21397 (free_EXPR_LIST_list): Free an entire list of EXPR_LIST nodes.
21398 (free_INSN_LIST_list): Free an entire list of INSN_LIST nodes.
21399 (free_EXPR_LIST_node): Free an individual EXPR_LIST node.
21400 (free_INSN_LIST_node): Free an individual INSN_LIST node.
21401 * haifa-sched.c (unused_insn_list, unused_expr_list): Moved to flow.c
21402 (free_list, alloc_INSN_LIST, alloc_EXPR_LIST): Moved to flow.c
21403 (remove_dependence, free_pending_lists): Use new global routines.
21404 (flush_pending_lists, sched_analyze_insn): Use new global routines.
21405 (sched_analyze, compute_block_backward_dependences): Use new routines.
21406 (sched_analyze_1, sched_analyze_2): Use new routines.
21407 (schedule_insns): Use new global routines.
21408 * rtl.h (init_EXPR_INSN_LIST_cache, free_EXPR_LIST_list): Add function
21410 (free_INSN_LIST_list, free_EXPR_LIST_node): Add prototypes.
21411 (free_INSN_LIST_node, alloc_INSN_LIST, alloc_EXPR_LIST): Add function
21413 * toplev.c (rest_of_compilation): Initialize node cache.
21414 * Makefile.in (OBJS): Add lists.o to list of object files.
21415 (lists.o): Add dependancies.
21417 Wed Aug 25 17:31:56 1999 Nick Clifton <nickc@cygnus.com>
21419 * config/v850/v850.md: Fix compile time warning messages.
21420 * config/v850/v850.c: Fix compile time warning messages.
21421 * config/v850/v850.h: Fix compile time warning messages.
21423 Wed Aug 25 09:44:43 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21425 * genattr.c (gen_attr): Add prototype arguments for get_attr_*().
21426 Remove unused prototype for `init_lengths'.
21428 Wed Aug 25 09:32:31 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21430 * calls.c (emit_call_1): Mark parameter `stack_size' with
21432 (expand_call): Initialize variable `insn'.
21433 (emit_library_call): Likewise for variable `high_to_save'.
21434 (emit_library_call_value): Likewise.
21435 (store_one_arg): Likewise for variables `lower_bound' and
21438 * combine.c (try_combine): Likewise for variables `i2_code_number'
21439 and `other_code_number'.
21440 (find_split_point): Likewise for variables `pos', `unsignedp' and
21442 (simplify_if_then_else): Likewise for variables `op' and `c1'.
21443 (simplify_and_const_int): Remove unused variable `width'.
21444 (merge_outer_ops): Likewise.
21446 * cse.c (simplify_binary_operation): Cast an INTVAL() to `unsigned
21447 HOST_WIDE_INT' when comparing against one.
21448 (simplify_relational_operation): Likewise.
21449 (cse_insn): Initialize variables `src_eqv_volatile',
21450 `src_eqv_in_memory', `src_eqv_in_struct', `src_eqv_hash' and `sets'.
21452 * final.c (init_final): Constify parameter `filename'.
21453 (final_start_function): Mark parameter `optimize' with
21455 (profile_function): Likewise for parameters `first' and `optimize'.
21456 (output_source_line): Likewise for parameter `file'.
21458 * integrate.c (subst_constants): Cast a value to `size_t' when
21459 comparing against one.
21460 (mark_stores): Initialize variable `mode'. Cast a value to
21461 `size_t' when comparing against one.
21463 * integrate.h (MAYBE_EXTEND_CONST_EQUIV_VARRAY): Likewise.
21465 * loop.c (move_movables): Initialize variable `first'.
21466 (strength_reduce): Likewise for variable `increment'.
21467 (check_dbra_loop): Likewise for variable `comparison_val'. Cast a
21468 value to `size_t' when comparing against one.
21469 (load_mems): Initialize variable `end_label'.
21471 * output.h (init_final): Constify parameter.
21473 * reload.c (decompose): Initialize variable `base'.
21475 * reload1.c (reload): Likewise for variable `is_scalar'.
21476 (spill_hard_reg): Mark parameter `dumpfile' with ATTRIBUTE_UNUSED.
21477 (choose_reload_regs): Initialize variable `mode'.
21478 (emit_reload_insns): Likewise for variable `store_insn'.
21479 (reload_cse_noop_set_p): Mark parameter `insn' with
21481 (reload_combine): Initialize variable `set'.
21483 * unroll.c (unroll_loop): Likewise for variable `local_label'.
21484 (copy_loop_body): Cast a value to `size_t' when comparing against
21487 * varasm.c (assemble_variable): Initialize variable `size_tree'.
21488 (const_hash): Add an `else abort()' in an if-else-if-else sequence.
21489 (remove_from_pending_weak_list): Mark parameter `name' with
21492 Wed Aug 25 11:18:39 1999 Bernd Schmidt <bernds@cygnus.co.uk>
21494 * toplev.c (rest_of_compilation): Use decl_printable_name when opening
21497 Wed Aug 25 10:57:12 1999 Nick Clifton <nickc@cygnus.com>
21499 * config/arm/telf.h (ASM_WEAKEN_LABEL): Define.
21500 (ASM_DECLARE_FUNCTION_NAME): Define.
21501 (TYPE_ASM_OP, SIZE_ASM_OP, TYPE_OPERAND_FORMAT,
21502 ASM_DECLARE_RESULT, ASM_DECLARE_OBJECT_NAME,
21503 ASM_FINISH_DECLARE_OBJECT, ASM_DECLARE_FUNCTION_SIZE): Define if
21504 not already defined.
21506 Wed Aug 25 01:36:11 1999 John David Anglin <dave@hiauly1.hia.nrc.ca>
21508 * calls.c (emit_call_1): Use call_pop/call_value_pop for all values
21509 of n_popped when call/call_value are not defined.
21511 Wed Aug 25 01:25:14 1999 Jeffrey A Law (law@cygnus.com)
21513 * tm.texi: GNU CC -> GCC conversion.
21514 (CC1_SPEC): Indicate it is used for all language front ends.
21516 Tue Aug 24 23:43:03 1999 Mark Mitchell <mark@codesourcery.com>
21518 * flow.c (delete_block): Spell NOTE_INSN_EH_REGION_BEG and
21519 NOTE_INSN_EH_REGION_END correctly.
21521 Tue Aug 24 23:26:44 1999 Michael Tiemann <tiemann@holodeck.cygnus.com>
21522 Jeff Law <law@cygnus.com>
21524 * loop.c (strength_reduce): Automatically unroll loops if the
21525 unrolled loop size is smaller than the rolled loop size.
21527 * loop.c (insert_bct): Replace use of sdiv_optab with asr_optab
21528 and delete comment that code should be rewritten.
21530 Tue Aug 24 22:56:35 1999 Jeffrey A Law (law@cygnus.com)
21532 * haifa-sched.c (find_rgns): Mark a block found during the DFS search
21535 * haifa-sched.c (get_visual_tbl_length): Fix off-by-one error.
21537 Tue Aug 24 22:41:06 1999 Mumit Khan <khan@xraylith.wisc.edu>
21539 * fixinc/mkfixinc.sh: Don't fix uwin headers.
21540 * i386/uwin.h (MD_STARTFILE_PREFIX): Define.
21541 (LINK_SPEC): Add -u _main when building executables.
21542 (ASM_DECLARE_FUNCTION): Update from Cygwin.
21543 (ASM_FILE_END): Use the default for ix86-pe.
21544 * i386/xm-uwin.h (HAVE_BCOPY): Undefine.
21546 Tue Aug 24 20:49:47 1999 Art Haas <ahaas@neosoft.com>
21548 * final.c (output_addr_const): Handle case where ASM_OPEN_PAREN
21549 and ASM_CLOSE_PAREN are empty strings.
21551 Wed Aug 25 12:46:22 1999 Fred Fish <fnf@cygnus.com>
21552 Geoffrey Keating <geoffk@cygnus.com>
21554 * Makefile.in (PREPROCESSOR_DEFINES): New macro.
21555 (protoize.o): Use PREPROCESSOR_DEFINES and DRIVER_DEFINES.
21556 (unprotoize.o): Ditto.
21557 (test-protoize-simple): Don't define STD_PROTO_DIR.
21558 * protoize.c: Use PARAMS rather than PROTO. Minor whitespace
21559 changes to make 'test-protoize-simple' pass.
21560 (STD_PROTO_DIR): Remove define.
21561 (STANDARD_EXEC_PREFIX): Supply default define.
21562 (standard_exec_prefix): New variable, init to STANDARD_EXEC_PREFIX.
21563 (target_machine): New variable, init to DEFAULT_TARGET_MACHINE.
21564 (target_version): New variable, init to DEFAULT_TARGET_VERSION.
21565 (GET_ENV_PATH_LIST): New macro.
21566 (default_syscalls_dir): No longer initialized to STD_PROTO_DIR.
21567 (do_processing): Initialize default_syscalls_dir using new
21568 macros. Use it to initialize syscalls_absolute_filename.
21570 Tue Aug 24 16:58:15 1999 Richard Henderson <rth@cygnus.com>
21572 * jump.c (jump_optimize_1): Do cmov opt on any single-set; force
21573 B into a register before emit_conditional_move.
21575 Tue Aug 24 15:37:03 1999 Richard Henderson <rth@cygnus.com>
21577 * fold-const.c (fold): Reassociate (+ (+ (* a b) c) (* d e))
21578 as (+ (+ (* a b) (* d e)) c). Factor a common power-of-two
21579 multiplicand out of (+ (* a b) (* c d)).
21581 Tue Aug 24 11:46:10 1999 Bob Manson <manson@cygnus.com>
21582 Richard Henderson <rth@cygnus.com>
21584 * haifa-sched.c (split_hard_reg_notes): Move to flow.c
21585 (new_insn_dead_notes): Likewise.
21586 (update_n_sets): Likewise.
21587 (update_flow_info): Move to flow.c, renamed to update_life_info;
21588 extend to handle multiple source insns.
21589 * flow.c: Include resource.h
21590 (unlink_insn_chain): New.
21591 (split_hard_reg_notes): New.
21592 (maybe_add_dead_note): New.
21593 (maybe_add_dead_note_use): New.
21594 (find_insn_with_note): New.
21595 (new_insn_dead_notes): New.
21596 (update_n_sets): New.
21597 (sets_reg_or_subreg_1, sets_reg_or_subreg): New.
21598 (maybe_remove_dead_notes): New.
21599 (update_life_info): New.
21600 (prepend_reg_notes): New.
21601 (replace_insns): New.
21602 * output.h (update_life_info): Declare.
21603 * recog.c (split_block_insns): Use update_life_info.
21604 * resource.c (find_free_register): Use reg_alloc_order, don't use
21605 fixed regs, make sure the mode is supported, don't use new regs.
21607 * rtl.h (replace_insns): Declare.
21609 Tue Aug 24 13:48:39 1999 Nathan Sidwell <nathan@acm.org>
21611 * expr.c (expand_expr): Cope with COND_EXPRs with one
21612 non-returning branch.
21614 Mon Aug 23 22:28:16 1999 Mark Mitchell <mark@codesourcery.com>
21616 * expr.c (store_expr): Always pass down the target, even when not
21619 1999-08-24 Nick Clifton <nickc@cygnus.com>
21621 * configure.in: Define target_cpu_default for v850 targets.
21622 * configure: Regenerate
21624 * config/v850/v850.h (TARGET_CPU_generic): Define.
21625 (GO_IF_LEGITIMATE_ADDRESS): Insist that SImode and larger constant
21626 addresses are 4 byte aligned.
21628 * config/v850/v850.c (print_operand): Cope with 'R' format DFmode
21631 Tue Aug 24 09:32:07 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21633 * genattr.c (function_unit_desc): Constify a char*. Add prototype.
21634 (main): Add prototypes.
21636 * genattrtab.c (substitute_address, write_const_num_delay_slots,
21637 attr_eq, attr_numeral, attr_equal_p, attr_copy_rtx): Prototype.
21638 (write_attr_get): Emit prototypes along with function definition.
21639 (write_eligible_delay): Mark a parameter with ATTRIBUTE_UNUSED.
21640 (write_complex_function): Emit static prototype along with
21641 function definition.
21643 * genemit.c (gen_split): Emit prototypes along with function
21646 * genoutput.c (output_epilogue): Add prototype to `insn_outfun'.
21647 Likewise for predicates and `insn_operand_predicate'.
21648 (process_template): Emit static prototype along with function
21651 * genrecog.c (make_insn_sequence): Constify a char*. Add
21652 prototypes for get_split_*().
21653 (write_subroutine): Emit prototypes along with function
21656 Tue Aug 24 12:35:20 1999 Bernd Schmidt <bernds@cygnus.co.uk>
21658 * gcse.c (find_avail_set): Follow chains of register-register copies.
21659 Use oprs_not_set_p to guarantee that the returned value can be
21661 (cprop_insn): Don't verify the return value of find_avail_set with
21664 * gcse.c (cprop_jump): New function, broken out of cprop_insn.
21665 (cprop_cc0_jump): New function.
21666 (cprop_insn): Break out new function cprop_jump and use it.
21667 Also use cprop_cc0_jump for machines with CC0.
21668 (cprop): Don't crash if cprop_insn turned the insn into a NOTE.
21670 * tree.h (current_function_calls_setjmp,
21671 current_function_calls_longjmp): Delete declarations.
21672 * dsp16xx.c: Include "function.h".
21673 * elxsi.c: Likewise.
21674 * gmicro.c: Likewise.
21675 * h8300.c: Likewise.
21676 * i370.c: Likewise.
21677 * m32r.c: Likewise.
21678 * mn10200.c: Likewise.
21679 * mn10300.c: Likewise.
21680 * ns32k.c: Likewise.
21681 * spur.c: Likewise.
21682 * v850.c: Likewise.
21684 * rtl.h (rtx_equal_function_value_matters): Declare.
21685 * toplev.c (rtx_equal_function_value_matters): Don't declare.
21687 * function.c: Likewise.
21688 * emit-rtl.c: Likewise.
21690 Tue Aug 24 02:47:44 1999 Jeffrey A Law (law@cygnus.com)
21692 * expr.c (convert_move): Fix arguments to TRULY_NOOP_TRUNCATION
21695 1999-08-24 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
21697 * jump.c (delete_barrier_successors) Match (set (pc) (pc)) insn
21700 Mon Aug 23 23:35:52 1999 Matthias Klose <doko@cs.tu-berlin.de>
21702 * cpp.texi: Add a node documenting macro varargs (copied
21705 1999-08-23 22:23 -0700 Zack Weinberg <zack@bitmover.com>
21707 * cppspec.c: Put a null pointer at the end of the new argv.
21709 Mon Aug 23 21:23:24 1999 Jeffrey A Law (law@cygnus.com)
21711 * configure.in: Remove code to select/de-select the haifa
21712 scheduler. Every scheduled port gets haifa now.
21713 * configure: Rebuilt.
21714 * flags.h, genattrtab.c, rtl.h, toplev.c: Remove HAIFA ifdefs.
21716 * Makefile.in: Corresponding changes.
21718 Mon Aug 23 16:04:13 1999 Bernd Schmidt <bernds@cygnus.co.uk>
21720 * optabs.c (prepare_cmp_insn): Turn COMPARISON arg into a pointer.
21721 All callers changed.
21722 (prepare_float_lib_cmp): Likewise.
21723 Use FLOAT_LIB_COMPARE_RETURNS_BOOL.
21724 * expr.h (emit_float_lib_cmp): Delete declaration.
21725 * tm.texi (FLOAT_LIB_COMPARE_RETURNS_BOOL): Document.
21726 * sparc.h (FLOAT_LIB_COMPARE_RETURNS_BOOL): Define.
21727 * sparc.md (bcc and scc patterns): Don't handle TFmode comparisons
21729 (cmptf): Now conditional on TARGET_HARD_QUAD.
21731 Fri Aug 20 17:52:27 1999 Jim Wilson <wilson@cygnus.com>
21733 * resource.c (mark_target_live_regs): Use
21734 PIC_OFFSET_TABLE_REG_CALL_CLOBBERED.
21736 Fri Aug 20 19:07:55 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21738 * rtl.c (rtx_class, note_insn_name, reg_note_name): Constify.
21740 * rtl.h (rtx_class, reg_note_name, note_insn_name): Likewise.
21742 * genopinit.c (gen_insn): Use accessor macro, not `rtx_class'.
21744 Fri Aug 20 18:53:43 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21746 * rtl.h (rtx_format): Constify a char*.
21748 * rtl.c (rtx_format): Likewise.
21749 (copy_rtx, copy_most_rtx, read_rtx): Likewise.
21750 (init_rtl): Use accessor macro, not `rtx_format'.
21752 * alias.c (rtx_equal_for_memref_p, find_symbolic_term): Constify a
21755 * caller-save.c (mark_referenced_regs): Likewise.
21757 * combine.c (subst, make_compound_operation, known_cond,
21758 gen_rtx_combine, update_table_tick, get_last_value_validate,
21759 use_crosses_set_p, mark_used_regs_combine, move_deaths): Likewise.
21761 * cse.c (rtx_cost, mention_regs, canon_hash, exp_equiv_p,
21762 refers_to_p, canon_reg, fold_rtx, cse_process_notes,
21763 count_reg_usage): Likewise.
21765 * emit-rtl.c (gen_rtx, copy_rtx_if_shared, reset_used_flags):
21768 * final.c (leaf_renumber_regs_insn): Likewise.
21770 * flow.c (mark_used_regs, find_use_as_address, dump_flow_info,
21771 dump_edge_info, count_reg_references): Likewise.
21773 * function.c (fixup_var_refs_1, walk_fixup_memory_subreg,
21774 fixup_stack_1, purge_addressof_1, instantiate_virtual_regs_1):
21777 * gcse.c (oprs_unchanged_p, hash_expr_1, expr_equiv_p,
21778 oprs_not_set_p, expr_killed_p, compute_transp, find_used_regs,
21779 add_label_notes): Likewise.
21781 * genattrtab.c (attr_rtx, attr_copy_rtx, encode_units_mask,
21782 clear_struct_flag, count_sub_rtxs, count_alternatives,
21783 compares_alternatives_p, contained_in_p, walk_attr_value,
21784 write_expr_attr_cache): Likewise.
21786 * genconfig.c (walk_insn_part): Likewise.
21788 * genemit.c (max_operand_1, gen_exp): Likewise.
21790 * genextract.c (walk_rtx): Likewise.
21792 * genflags.c (num_operands): Likewise.
21794 * genoutput.c (scan_operands): Likewise.
21796 * genpeep.c (match_rtx): Likewise.
21798 * genrecog.c (add_to_sequence): Likewise.
21800 * haifa-sched.c (may_trap_exp, sched_analyze_2, attach_deaths):
21803 * integrate.c (save_constants, copy_for_inline,
21804 copy_rtx_and_substitute, subst_constants, restore_constants):
21807 * jump.c (mark_jump_label, invert_exp, redirect_exp,
21808 rtx_renumbered_equal_p, rtx_equal_for_thread_p): Likewise.
21810 * local-alloc.c (contains_replace_regs, memref_referenced_p):
21813 * loop.c (record_excess_regs, rtx_equal_for_loop_p,
21814 add_label_notes, replace_call_address, count_nonfixed_reads,
21815 invariant_p, find_single_use_in_loop, find_mem_givs,
21816 find_life_end, maybe_eliminate_biv_1, update_reg_last_use):
21819 * print-rtl.c (reg_names, print_rtx): Likewise.
21821 * recog.c (validate_replace_rtx_1, find_single_use_1): Likewise.
21823 * reg-stack.c (stack_regs_mentioned_p, record_label_references,
21824 record_reg_life_pat, swap_rtx_condition, goto_block_pat,
21825 print_blocks): Likewise.
21827 * regclass.c (fix_register, record_address_regs,
21828 reg_scan_mark_refs): Likewise.
21830 * regmove.c (stable_but_for_p): Likewise.
21832 * reload.c (loc_mentioned_in_p, operands_match_p,
21833 find_reloads_toplevsubst_reg_equivs, find_reloads_address_1,
21834 copy_replacements, refers_to_regno_for_reload_p,
21835 refers_to_mem_for_reload_p, find_inc_amount, regno_clobbered_p,
21836 reload_when_needed_name, reg_class_names, debug_reload_to_stream):
21839 * reload1.c (eliminate_regs, scan_paradoxical_subregs,
21840 delete_address_reloads_1, count_occurrences,
21841 reload_cse_mem_conflict_p, reload_combine_note_use,
21842 add_auto_inc_notes): Likewise.
21844 * resource.c (mark_referenced_resources, mark_set_resources):
21847 * rtlanal.c (rtx_unstable_p, rtx_varies_p, rtx_addr_varies_p,
21848 reg_mentioned_p, regs_set_between_p, modified_between_p,
21849 modified_in_p, refers_to_regno_p, reg_overlap_mentioned_p,
21850 rtx_equal_p, volatile_insn_p, volatile_refs_p, side_effects_p,
21851 may_trap_p, inequality_comparisons_p, replace_rtx, replace_regs,
21852 jmp_uses_reg_or_mem, for_each_rtx, regno_use_in): Likewise.
21854 * sched.c (sched_analyze_2, attach_deaths): Likewise.
21856 * stupid.c (stupid_mark_refs): Likewise.
21858 * unroll.c (remap_split_bivs): Likewise.
21860 * varasm.c (mark_constants): Likewise.
21862 * a29k/a29k.c (uses_local_reg_p): Likewise.
21864 * alpha/alpha.c (summarize_insn): Likewise.
21866 * arm/arm.c (symbol_mentioned_p, label_mentioned_p,
21867 eliminate_lr2ip): Likewise.
21869 * arm/thumb.c (symbol_mentioned_p, label_mentioned_p): Likewise.
21871 * i386/i386.c (symbolic_reference_mentioned_p, copy_all_rtx,
21872 reg_mentioned_in_mem): Likewise.
21874 * ns32k/ns32k.c (global_symbolic_reference_mentioned_p,
21875 symbolic_reference_mentioned_p): Likewise.
21877 * romp/romp.c (unsigned_comparisons_p, hash_rtx): Likewise.
21879 * sh/sh.c (regs_used, mark_use): Likewise.
21881 * vax/vax.c (vax_rtx_cost): Likewise.
21883 Fri Aug 20 18:38:43 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21885 * machmode.h (mode_name): Constify a char*.
21887 * rtl.c (mode_name): Likewise.
21889 * genopinit.c (gen_insn): Use accessor macro, not `mode_name'.
21891 * optabs.c (init_libfuncs): Constify a char*.
21893 * print-tree.c (mode_name): Remove redundant declaration.
21894 (print_node): Use accessor macro, not `mode_name'.
21896 * reload1.c (dump_needs): Constify a char*. Use accessor macro,
21898 (new_spill_reg): Constify a char*.
21900 * tree.c (mode_name): Remove redundant declaration.
21902 Fri Aug 20 18:31:26 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21904 * rtl.c (rtx_name): Constify a char*.
21906 * rtl.h (rtx_name, fix_sched_param): Likewise.
21908 * gmicro/gmicro.c (rtx_name): Remove redundant declaration.
21909 (mypr): Use accessor macro, not `rtx_name'.
21911 * genemit.c (print_code): Constify a char*.
21913 * genopinit.c (gen_insn): Use accessor macro, not `rtx_name'.
21915 * genpeep.c (print_code): Constify a char*.
21917 * genrecog.c (print_code): Likewise.
21919 * graph.c (start_fct, start_bb, node_data, draw_edge, end_fct,
21920 end_bb): Add static prototype.
21921 (draw_edge): Constify a char*.
21922 (end_bb): Remove unused parameter.
21924 * haifa-sched.c (fix_sched_param, safe_concat, print_exp
21925 print_block_visualization): Constify a char*.
21927 Fri Aug 20 15:02:10 1999 Mark Mitchell <mark@codesourcery.com>
21929 * c-common.c (c_get_alias_set): Update comment.
21931 1999-08-20 Andreas Jaeger <aj@arthur.rhein-neckar.de>
21933 * linux.h (LIB_SPEC): Added.
21935 Fri Aug 20 22:32:17 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
21937 * config/c4x/c4x.h (STARTFILE_SPEC): Don't def.
21939 1999-08-19 18:43 -0700 Zack Weinberg <zack@bitmover.com>
21941 * tree.c (expr_check): Fix typo in last change.
21943 1999-08-19 14:44 -0700 Zack Weinberg <zack@bitmover.com>
21945 * rtl.def (NOTE): Change format to "iuu0n".
21946 (ADDR_DIFF_VEC): Change format to "eEee0".
21947 (ADDRESSOF): Change format to "eit".
21949 * rtl.h (rtvec): Make "elem" an array of rtx, not rtunion.
21950 (RTVEC_ELT): Change to match.
21951 (XVECEXP): Use XVEC and RTVEC_ELT.
21952 (INSN_UID, INSN_CODE, CODE_LABEL_NUMBER, NOTE_LINE_NUMBER,
21953 ADDRESSOF_REGNO, REGNO, SUBREG_WORD): Use XINT.
21954 (PREV_INSN, NEXT_INSN, PATTERN, REG_NOTES,
21955 CALL_INSN_FUNCTION_USAGE, SUBREG_REG, SET_SRC, SET_DEST,
21956 TRAP_CONDITION, TRAP_CODE): Use XEXP.
21957 (INTVAL): Use XWINT.
21958 (ADDRESSOF_DECL): Use XTREE.
21959 (SET_ADDRESSOF_DECL): Delete.
21960 (NOTE_DECL_NAME, NOTE_DECL_CODE, NOTE_DECL_RTL,
21961 NOTE_DECL_IDENTIFIER, NOTE_DECL_TYPE): Kill. These have been
21962 ifdefed out since 2.6 at least.
21963 (gen_rtvec_vv): Delete prototype.
21965 * rtl.h (rtvec_alloc): rt->elem is now an array of rtx,
21967 (copy_most_rtx): Handle 't' format letter.
21968 * emit-rtl.c (gen_rtvec_v): rt_val->elem is an array of rtx.
21969 (gen_rtvec_vv): Delete function. All callers changed to use
21970 gen_rtvec_v instead.
21971 * print-rtl.c (print_rtx): Move special casing of NOTEs to
21972 the '0' format letter.
21974 * function.c (gen_mem_addressof): Don't use
21975 SET_ADDRESSOF_DECL; provide `decl' to gen_rtx_ADDRESSOF
21977 * integrate.c (copy_rtx_and_substitute): Likewise.
21978 Copy 't' slots with XTREE.
21979 (subst_constants): Treat 't' slots like '[swi]' slots.
21980 * cse.c (canon_hash, exp_equiv_p): Treat 't' slots like '0' slots.
21981 * jump.c (rtx_equal_for_thread_p): Likewise.
21982 * rtlanal.c (rtx_equal_p): Likewise.
21983 * stmt.c (expand_end_case): gen_rtx_ADDR_DIFF_VEC now takes
21984 only four arguments.
21985 * gengenrtl.c (type_from_format): Provide correct types for
21989 * tree.h [ENABLE_CHECKING] (TREE_CHECK, TREE_CLASS_CHECK):
21990 If a recent gcc is in use (always in stage2 and beyond), use
21991 statement expressions, so we don't make a function call unless
21992 the check fails. Evaluate arguments exactly once.
21993 (CHAIN_CHECK, DO_CHECK, DO_CHECK1, TREE_CHECK1,
21994 TREE_CLASS_CHECK1, TYPE_CHECK1, DECL_CHECK1, CST_CHECK1):
21996 (CST_OR_CONSTRUCTOR_CHECK, EXPR_CHECK): Redefine such that
21997 they evaluate their arguments exactly once, irrespective of
21998 the compiler in use.
22000 * tree.c [ENABLE_CHECKING]: Define whichever set of functions
22001 is used by the currently-enabled check macros. This is:
22002 (tree_check_failed, tree_class_check_failed): For gcc.
22003 (tree_check, tree_class_check, cst_or_constructor_check,
22004 expr_check): For other compilers.
22006 * gencheck.c: Do not define any *_CHECK1 macros.
22008 Thu Aug 19 14:42:38 1999 Mike Stump <mrs@wrs.com>
22009 Mark Mitchell <mark@codesourcery.com>
22011 * c-common.c (c_get_alias_set): Fix support for poitners and
22014 Thu Aug 19 11:51:22 EDT 1999 John Wehle (john@feith.com)
22016 * alias.c: Include tree.h.
22017 (nonlocal_reference_p, mark_constant_function): New functions.
22018 * flow.c (life_analysis): Call mark_constant_function.
22019 * rtl.h (mark_constant_function): Declare it.
22021 Thu Aug 19 15:02:01 1999 Nick Clifton <nickc@cygnus.com>
22023 * config/rs6000/rs6000.c (rs6000_override_options): Fix test for
22024 unrecognisable switches.
22026 Wed Aug 18 23:31:57 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
22028 * loop.c (recombine_givs): Set ix field after sorting.
22029 (recombine_givs): Remove bogus index / giv lockstep looping.
22031 Wed Aug 18 18:20:40 1999 Bernd Schmidt <bernds@cygnus.co.uk>
22033 * expmed.c (emit_store_flag): If UNSIGNEDP, call unsigned_condition
22035 (emit_store_flag_force): Use do_compare_rtx_and_jump.
22036 (do_cmp_and_jump): Formatting fixes.
22037 * expr.c (do_compare_and_jump): Renamed from compare; changed to call
22038 do_compare_rtx_and_jump instead of compare_from_rtx.
22039 (do_compare_rtx_and_jump): New function; mostly copied from
22041 (do_jump_for_compare): Delete.
22042 (expand_expr): Use do_compare_rtx_and_jump when handling MAX_EXPR and
22044 (do_jump): Use do_compare_and_jump or do_compare_rtx_and_jump instead
22045 of compare/do_jump_for_compare pairs.
22046 (do_jump_by_parts_greater): Use do_jump_by_parts_greater_rtx.
22047 (do_jump_by_parts_greater_rtx): Use do_compare_rtx_and_jump instead of
22048 compare_from_rtx/do_jump_for_compare pairs.
22049 (do_jump_by_parts_equality): Likewise.
22050 (do_jump_by_parts_equality_rtx): Likewise.
22051 * expr.h (do_compare_rtx_and_jump): Declare.
22052 * optabs.c (prepare_cmp_insn): New function, contains most of the code
22053 that used to be in emit_cmp_insn.
22054 (cmp_available_p): New function.
22055 (prepare_operand): New function.
22056 (emit_cmp_and_jump_insn_1): New function, contains some code that used
22057 to be in emit_cmp_insn.
22058 (prepare_float_lib_cmp): Renamed from emit_float_lib_cmp; change some
22059 parameters to be pointers; don't emit final compare but modify some of
22060 the values pointed to by the args so the caller can perform the
22061 correct comparison.
22062 (expand_binop): Call emit_store_flag_force with signed forms of
22064 (expand_abs): Use do_compare_rtx_and_jump instead of compare_from_rtx/
22065 emit_jump_insn pair.
22066 (emit_cmp_and_jump_insn): Use prepare_cmp_insn and
22067 emit_cmp_and_jump_insn_1. Call emit_queue.
22068 (emit_cmp_insn): Just call emit_cmp_and_jump_insns with zero for LABEL
22070 * flow.c (tidy_fallthru_edge): If HAVE_cc0, verify insn before a
22071 jump sets cc0 before deleting it.
22072 * integrate.c (expand_inline_function): Likewise.
22073 * unroll.c (unroll_loop): Similar changes in several places.
22074 (copy_loop_body): If HAVE_cc0, verify insn before a jump sets cc0
22075 before deleting it.
22077 Wed Aug 18 06:37:44 1999 Bernd Schmidt <bernds@cygnus.co.uk>
22079 * Makefile.in (insn-recog.o): Update dependencies.
22080 * genrecog.c (main): Make generated file include "function.h".
22082 Sat Aug 14 00:54:57 1999 Geoffrey Keating <geoffk@cygnus.com>
22084 * cse.c (cse_insn): Call never_reached_warning when a jump is
22085 changed to be unconditional.
22086 * flags.h: Declare warn_notreached.
22087 * flow.c (delete_block): Call never_reached_warning when
22088 a block is deleted.
22089 * jump.c (delete_barrier_successors): Call never_reached_warning
22090 when we delete everything after a BARRIER.
22091 (never_reached_warning): New function.
22092 * rtl.h: Declare never_reached_warning.
22093 * toplev.c (warn_notreached): New variable.
22094 (lang_independent_options): Set warn_notreached
22095 when -Wunreachable-code.
22096 (compile_file): We need line numbers for -Wunreachable-code.
22098 Tue Aug 17 22:06:11 1999 Jan Hubicka <hubicka@freesoft.cz>
22100 * haifa-sched.c (insn_unit): Fix typo on out of range test.
22101 * sched.c (insn_unit): Likewise.
22103 Tue Aug 17 21:57:23 1999 Andreas Schwab <schwab@suse.de>
22105 * combine.c (distribute_notes): Handle REG_EH_RETHROW.
22107 Tue Aug 17 17:39:43 EDT 1999 Andrew MacLeod <amacleod@cygnus.com>
22109 * flow.c (create_edge_list): Use xmalloc, not malloc.
22111 Tue Aug 17 01:40:54 1999 Loren Rittle <ljrittle@acm.org>
22113 * fixinc/inclhack.def (no_double_slash): Do not trash single-line
22114 C-style comments. Do not lose the character before double slash.
22116 Mon Aug 16 18:08:22 EDT 1999 Andrew MacLeod <amacleod@cygnus.com>
22118 * basic-block.h (struct edge_list): Stucture to maintain a vector
22120 (EDGE_INDEX_NO_EDGE, EDGE_INDEX, INDEX_EDGE_PRED_BB, INDEX_EDGE_SUCC_BB,
22121 INDEX_EDGE, NUM_EDGES): New Macros for accessing edge list.
22122 (create_edge_list, free_edge-List, print_edge_list, verify_edge_list):
22123 New function prototypes.
22124 * flow.c (create_edge_list): Function to create an edge list.
22125 (free_edge_list): Discards memory used by an edge list.
22126 (print_edge_list): Debug output showing an edge list.
22127 (verify_edge_list): Internal consistency check for an edge list.
22128 (find_edge_index): Function to find an edge index for a pred and succ.
22130 Mon Aug 16 11:56:36 1999 Mark Mitchell <mark@codesourcery.com>
22132 * tree.c (type_hash_add): Use permalloc to allocate nodes in the
22135 Mon Aug 16 17:04:15 1999 Jorn Rennecke <amylaar@cygnus.co.uk>
22137 * mips.h (CLASS_CANNOT_CHANGE_SIZE): Define.
22139 Fri Aug 13 15:20:43 1999 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
22141 * config/i386/freebsd.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
22143 Fri Aug 13 10:21:28 1999 Nick Clifton <nickc@cygnus.com>
22145 * toplev.c (rest_of_compilation): Allow machine dependent
22146 reorganisation pass to place information into the RTL dump
22147 file if it so wishes.
22149 Sun Aug 15 12:41:21 1999 Jim Wilson <wilson@cygnus.com>
22151 * explow.c (hard_function_value): Use VOIDmode instead of
22153 * stmt.c (expand_return): Likewise.
22154 * stor-layout.c (get_best_mode): Likewise.
22156 * genemit.c (gen_expand): If next is MATCH_PAR_DUP, then output
22157 emit call instead of emit_insn call.
22159 Sat Aug 14 15:04:06 1999 Mumit Khan <khan@xraylith.wisc.edu>
22161 * configure.in: Handle --disable/enable-win32-registry.
22162 * install.texi: Document --disable/enable-win32-registry.
22163 * acconfig.h (ENABLE_WIN32_REGISTRY): New macro.
22164 (WIN32_REGISTRY_KEY): New macro.
22165 * prefix.c: Use to enable/disable win32-specific code.
22166 (lookup_key): Use versioned key.
22167 * configure: Regenerate.
22168 * config.in: Likewise.
22170 Fri Aug 13 17:41:55 1999 Jason Merrill <jason@yorick.cygnus.com>
22172 * cpplib.c (read_line_number): New fn, split out of...
22175 Fri Aug 13 14:18:27 1999 Gavin Romig-Koch <gavin@cygnus.com>
22177 tree.c (lang_unsave_expr_now) : New.
22178 (unsave_expr_now): Call lang_unsave_expr_now.
22179 tree.h (lang_unsave_expr_now) : New.
22181 Fri Aug 13 00:49:46 1999 Jason Merrill <jason@yorick.cygnus.com>
22183 * toplev.c (flag_new_exceptions): On by default.
22185 1999-08-13 Michael Meissner <meissner@cygnus.com>
22187 * Makefile.in (GCC_FOR_TARGET): Move -B./ after the tooldir -B.
22189 Fri Aug 13 01:29:57 1999 Alexandre Oliva <oliva@dcc.unicamp.br>
22191 * dwarfout.c (fundamental_type_code): Return FT_boolean for
22192 INTEGER_TYPE with precision==1, it's __java_boolean.
22194 Thu Aug 12 23:51:04 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
22196 * global.c (prune_preferences): Move some invariants out of the
22199 Thu Aug 12 15:30:29 1999 Jesse Perry (jap@unx.dec.com)
22201 * configure.in (alpha*-dec-osf*): Add osf5.
22203 Sun Aug 1 22:24:03 1999 Philip Blundell <philb@gnu.org>
22205 * configure.in: Rework handling of ARM GNU/Linux slightly.
22206 (arm*-*-linux-gnuoldld): New target.
22207 * configure: Regenerate.
22208 * install.texi (Configurations): Add arm-*-linux-gnu{oldld} and
22209 arm-*-elf. Mention that arm-*-linux-gnuaout is obsolete.
22210 * config/arm/linux-oldld.h: New file.
22211 * config/arm/linux-elf26.h: Don't include linux-elf.h.
22212 (TARGET_DEFAULT, SUBTARGET_LINK_SPEC, SUBTARGET_EXTRA_ASM_SPEC):
22214 * config/arm/linux-elf.h (ASM_SPEC): Define.
22215 (TARGET_DEFAULT, SUBTARGET_EXTRA_LINK_SPEC,
22216 SUBTARGET_EXTRA_ASM_SPEC, CPP_APCS_PC_DEFAULT): Add definitions
22217 for 26-bit APCS and old linker.
22218 (CPP_PREDEFINES): Define `__arm__'; don't define `arm' or
22220 (FP_DEFAULT): Define to FP_SOFT3 for all machines.
22221 * config/arm/linux-aout.h (CPP_PREDEFINES): Define `__arm__';
22222 don't define `arm' or `arm_elf'.
22223 * config/arm/t-linux (EXTRA_MULTILIB_PARTS, MULTILIB_OPTIONS,
22224 MULTILIB_DIRNAMES): Define. Fix typo in comment.
22226 Thu Aug 12 10:14:47 1999 Andreas Schwab <schwab@suse.de>
22228 * rtl.texi: Fix typo.
22230 Wed Aug 11 23:50:57 1999 Jason Merrill <jason@yorick.cygnus.com>
22232 * invoke.texi (C++ Dialect Options): Add -fms-extensions.
22234 Wed Aug 11 12:59:37 1999 Mark Mitchell <mark@codesourcery.com>
22236 * extend.texi (C++ Signatures): Remove node.
22237 * invoke.texi: Remove discussion of -fhandle-signatures,
22238 signature, sigof, __signature__, and __sigof__.
22240 Wed Aug 11 03:38:25 1999 Jeffrey A Law (law@cygnus.com)
22242 * Makefile.in (JAVAGC): Removed.
22244 Wed Aug 11 02:13:26 1999 Mumit Khan <khan@xraylith.wisc.edu>
22246 * i386/cygwin.h (ASM_OUTPUT_ALIGNED_BSS): Define.
22248 1999-08-11 Mark Elbrecht <snowball3@bigfoot.com>
22250 * i386/djgpp.h (ASM_OUTPUT_ALIGNED_BSS): Define.
22252 1999-08-11 Richard Earnshaw (rearnsha@arm.com)
22254 * emit-rtl.c (mark_reg_pointer): Don't increase the alignment of
22255 a register that is already known to be a pointer.
22257 1999-08-11 Bruce Korb <ddsinc09@ix.netcom.com>
22259 * fixinc/inclhack.tpl: Only install assert.h conditionally.
22260 * fixinc/inclhack.sh: Regenerated.
22261 * fixinc/fixincl.sh: Regenerated.
22263 Wed Aug 11 00:34:22 1999 Joe Buck <jbuck@synopsys.com>
22265 * invoke.texi: s/GNU CC/GCC/ for consistency with gcc.texi.
22266 Fix documentation of -ansi flag to describe its C++ behavior.
22267 Remove bogus reference to GCC 2.9.
22269 Tue Aug 10 17:19:02 1999 Jim Wilson <wilson@cygnus.com>
22271 * config/sh/sh.c (machine_dependent_reorg): Only call PUT_MODE on
22272 note if it is non-NULL.
22274 Tue Aug 10 10:47:42 EDT 1999 Andrew MacLeod <amacleod@cygnus.com>
22276 * except.h (eh_nesting_info): Add new structure defintion.
22277 (init_eh_nesting_info, free_eh_nesting_info): Add function prototypes.
22278 (reachable_handlers, update_rethrow_references): Add function
22280 * rtl.h (struct rtvec_def): Update comments. REG_EH_RETHROW takes
22281 a rethrow symbol instead of an integer exception region number.
22282 * flow.c (Make_edges): Use new exception nesting routines to determine
22283 which handlers are reachable from a CALL or asynchronous insn.
22284 Dont add an edge for calls with a REG_EH_REGION of -1 to non-local
22286 (delete_eh_regions): Update rethrow labels, and don't delete
22287 regions which are the target of a rethrow.
22288 * except.c (struct func_eh_entry): Add rethrow_ref field, now we can
22289 avoid overloading the SYMBOL_REF_USED flag.
22290 (rethrow_symbol_map): Use new rethrow_ref field.
22291 (rethrow_used): Use new rethrow_ref field.
22292 (expand_rethrow): REG_EH_RETHROW now has a SYMBOL_REF instead
22293 of an integer. Fix formatting.
22294 (output_exception_table_entry): Use new rethrow_ref field.
22295 (can_throw): Check for EH_REGION_NOTE before deciding
22296 whether a CALL can throw or not.
22297 (scan_region): Call rethrow_used() instead of accessing data structure.
22298 (update_rethrow_references): New function to make sure only regions
22299 which are still targets of a rethrow are flagged as such.
22300 (process_nestinfo): New static function to initialize a handler
22301 list for a specific region.
22302 (init_eh_nesting_info): New function to allocate and initialize
22303 the list of all EH handlers reachable from all regions.
22304 (reachable_handlers): New function to retrieve the list of handlers
22305 reachable from a specific region and insn.
22306 (free_eh_nesting_info): New function to dispose of a list of
22307 reachable handlers.
22309 Tue Aug 10 10:39:31 EDT 1999 Andrew MacLeod <amacleod@cygnus.com>
22311 * flow.c (split_edge): Set JUMP_LABEL field.
22312 (commit_one_edge_insertion): Set head correctly for insert_before.
22313 When inserting insns, update insn block numbers if allocated.
22315 Tue Aug 10 09:26:07 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22317 * dwarf2out.c (dwarf2out_frame_debug_expr, add_incomplete_type,
22318 retry_incomplete_types): Add static prototype.
22319 (stripattributes, dwarf_cfi_name, ASM_OUTPUT_DWARF_STRING,
22320 dwarf_tag_name, dwarf_attr_name, dwarf_form_name,
22321 dwarf_stack_op_name, dwarf_type_encoding_name, add_AT_string,
22322 dwarf2_name, add_name_attribute, lookup_filename, dwarf2out_line,
22323 dwarf2out_start_source_file, dwarf2out_define, dwarf2out_undef):
22326 * dwarf2out.h (dwarf2out_define, dwarf2out_undef,
22327 dwarf2out_start_source_file, dwarf2out_line): Likewise.
22329 Tue Aug 10 09:21:46 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22331 * output.h (assemble_name): Constify a char*.
22333 * varasm.c (UNIQUE_SECTION, assemble_start_function,
22334 assemble_variable, assemble_name): Likewise.
22336 * dwarf2out.c (ASM_NAME_TO_STRING): Likewise.
22338 * arm/pe.c (arm_pe_unique_section): Likewise.
22340 * i386/cygwin.h (STRIP_NAME_ENCODING): Likewise.
22342 * i386/i386-interix.h (STRIP_NAME_ENCODING): Likewise.
22344 * i386/interix.c (i386_pe_unique_section): Likewise.
22346 * i386/win32.h (STRIP_NAME_ENCODING): Likewise.
22348 * i386/winnt.c (i386_pe_unique_section): Likewise.
22350 * m32r/m32r.h (ASM_OUTPUT_LABELREF): Likewise.
22352 * mn10200/mn10200.h (ASM_OUTPUT_LABELREF): Likewise.
22354 * mn10300/mn10300.h (ASM_OUTPUT_LABELREF): Likewise.
22356 * pa/pa.c (output_call): Likewise.
22358 * pa/pa.h (ASM_OUTPUT_MI_THUNK): Likewise.
22360 * pa/som.h (ASM_OUTPUT_FUNCTION_PREFIX): Likewise.
22362 * rs6000/rs6000.c (rs6000_output_load_toc_table, output_toc):
22365 * rs6000/rs6000.h (RS6000_OUTPUT_BASENAME, STRIP_NAME_ENCODING):
22368 * rs6000/sol2.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
22370 * rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME, ASM_OUTPUT_INT,
22371 STRIP_NAME_ENCODING, ASM_OUTPUT_LABELREF): Likewise.
22373 * v850/v850.h (ASM_OUTPUT_LABELREF): Likewise.
22375 Mon Aug 9 19:54:05 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22377 * real.c (GET_REAL, PUT_REAL): Use memcpy instead of bcopy.
22379 Mon Aug 9 19:36:00 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22381 * tree.h (lang_identify): Constify a char*.
22382 (print_error_function): Add extern prototype. Constify a char*.
22384 * c-lang.c (lang_identify): Constify a char*.
22386 * objc/objc-act.c (lang_identify): Constify a char*.
22388 Mon Aug 9 16:21:53 1999 Bernd Schmidt <bernds@cygnus.co.uk>
22390 * genpeep.c (main): Make generated file include "function.h".
22391 * arm.c (function_really_clobbers_lr): Delete INLINE_HEADER case.
22393 Mon Aug 9 10:08:50 1999 Bernd Schmidt <bernds@cygnus.co.uk>
22395 * Makefile.in: Update dependencies.
22396 * alias.c: Include "function.h"
22397 * c-decl.c: Likewise.
22398 * caller-save.c: Likewise.
22399 * calls.c: Likewise.
22400 * combine.c: Likewise.
22402 * explow.c: Likewise.
22403 * final.c: Likewise.
22404 * global.c: Likewise.
22405 * graph.c: Likewise.
22406 * local-alloc.c: Likewise.
22407 * loop.c: Likewise.
22408 * optabs.c: Likewise.
22409 * profile.c: Likewise.
22410 * recog.c: Likewise.
22411 * regclass.c: Likewise.
22412 * regmove.c: Likewise.
22413 * reload.c: Likewise.
22414 * reorg.c: Likewise.
22415 * resource.c: Likewise.
22416 * sched.c: Likewise.
22417 * stupid.c: Likewise.
22418 * config/1750a/1750a.c: Likewise.
22419 * config/a29k/a29k.c: Likewise.
22420 * config/arc/arc.c: Likewise.
22421 * config/arm/arm.c: Likewise.
22422 * config/arm/thumb.c: Likewise.
22423 * config/c4x/c4x.c: Likewise.
22424 * config/clipper/clipper.c: Likewise.
22425 * config/convex/convex.c: Likewise.
22426 * config/fx80/fx80.c: Likewise.
22427 * config/i860/i860.c: Likewise.
22428 * config/m68k/m68k.c: Likewise.
22429 * config/m88k/m88k.c: Likewise.
22430 * config/mips/mips.c: Likewise.
22431 * config/pdp11/pdp11.c: Likewise.
22432 * config/pyr/pyr.c: Likewise.
22433 * config/romp/romp.c: Likewise.
22434 * config/sh/sh.c: Likewise.
22435 * config/tahoe/tahoe.c: Likewise.
22436 * config/vax/vax.c: Likewise.
22437 * config/we32k/we32k.c: Likewise.
22438 * config/sparc/sparc.c: Include "function.h".
22439 (mem_min_alignment): Test current_function rather than
22440 regno_pointer_align.
22441 * config/pa/pa.c: Likewise.
22442 (compute_frame_size): Delete declaration of
22443 current_function_outgoing_args_size.
22444 * config/arc/arc.h (current_function_varargs): Delete declaration.
22445 * config/elxsi/elxsi.h (current_function_calls_alloca): Delete
22447 * config/i370/i370.h (current_function_outgoing_args_size): Delete
22449 * config/i386/i386.h (FINALIZE_PIC): Delete declaration of
22450 current_function_uses_pic_offset_table.
22451 * config/m68k/a-ux.h (FUNCTION_EXTRA_EPILOGUE): Delete declaration
22452 of current_function_returns_pointer.
22453 * config/m68k/altos3068.h (FUNCTION_EXTRA_EPILOGUE): Likewise.
22454 * config/m68k/linux.h (FUNCTION_EXTRA_EPILOGUE): Likewise.
22455 * config/m68k/m68kv4.h (FUNCTION_EXTRA_EPILOGUE): Likewise.
22456 * config/m68k/mot3300.h (FUNCTION_EXTRA_EPILOGUE): Likewise.
22457 * config/m68k/pbb.h (FUNCTION_EXTRA_EPILOGUE): Likewise.
22458 * config/m68k/tower-as.h (FUNCTION_EXTRA_EPILOGUE): Likewise.
22459 * config/m88k/m88k.c: Include "function.h"
22460 (call_used_regs, current_function_pretend_args_size,
22461 current_function_outgoing_args_size, frame_pointer_needed): Delete
22463 * config/m88k/m88k.h (current_function_pretend_args_size): Delete
22465 * config/mips/mips.h (current_function_calls_alloca): Delete
22467 * config/mn10200/mn10200.h (current_function_needs_context,
22468 rtx_equal_function_value_matters): Delete declarations.
22469 * config/ns32k/ns32k (current_function_uses_pic_offset_table,
22470 flag_pic): Delete declarations.
22471 * config/pa/pa.h (current_function_pretend_args_size,
22472 current_function_decl): Delete declarations.
22473 * config/pa/som.h (current_function_varargs): Delete declaration.
22474 * config/pdp11/pdp11.h (current_function_pretend_args_size): Delete
22476 * config/pyr/pyr.h (current_function_pretend_args_size,
22477 current_function_args_size, current_function_calls_alloca): Delete
22479 * config/sh/sh.h (current_function_varargs): Delete declaration.
22480 * config/sparc/sparc.h (current_function_outgoing_args_size,
22481 current_function_calls_alloca, current_function_decl): Delete
22483 * config/spur/spur.h (current_function_pretend_args_size,
22484 current_function_calls_alloca): Delete declarations.
22485 * config/v850/v850.c (current_function_outgoing_args_size): Delete
22487 * config/vax/vms.h (current_function_name): Delete declaration.
22488 * gcse.c: Include "function.h".
22489 (current_function_name, current_function_calls_setjmp): Delete
22491 * haifa-sched.c: Include "function.h".
22492 (forced_labels): Delete declaration.
22493 * jump.c: Likewise.
22494 * reg-stack.c: Likewise.
22495 * reload1.c: Likewise.
22496 * genemit.c (main): Make generated file include function.h.
22497 * genoutput.c (output_prologue): Likewise.
22499 * builtins.c (saveregs_value, apply_args_value): Delete variables.
22500 * emit-rtl.c (reg_rtx_no, first_label_num, first_insn, last_insn,
22501 sequence_rtl_expr, cur_insn_uid, last_linenum, last_filename,
22502 regno_pointer_flag, regno_pointer_flag_length, regno_pointer_align,
22503 regno_reg_rtx, sequence_stack): Delete variables. Add accessor
22504 macros for some of them.
22505 (emit_filename, emit_lineno): Delete declarations.
22506 (gen_reg_rtx): Use memset/memcpy instead of bzero/bcopy. Access
22507 regno_pointer_* variables through current_function.
22508 (gen_inline_header_rtx): Delete function.
22509 (save_emit_status): Delete function.
22510 (set_new_last_label_num): New function.
22511 (clear_emit_caches): New function.
22512 (restore_emit_status): Just clear last_labelnum and call
22514 (get_last_insn_anywhere): Variable sequence_stack is now accessed
22515 through macro seq_stack.
22516 (add_insn_after): Likewise.
22517 (add_insn_before): Likewise.
22518 (remove_insn): Likewise.
22519 (pop_topmost_sequence): Likewise.
22520 (in_sequence_p): Likewise.
22521 (start_sequence_for_rtl_expr): Likewise.
22522 (start_sequence): Likewise, and likewise for
22523 sequence_rtl_expr/seq_rtl_expr.
22524 (push_topmost_sequence): Likewise.
22525 (end_sequence): Likewise.
22526 (init_virtual_regs): Now takes a "struct emit_status *" argument.
22527 All callers changed. Store into that pointer instead of globals.
22528 (init_emit): Allocate emit elt of current_function.
22529 Changes for sequence_rtl_expr/sequence_stack renaming.
22530 Call clear_emit_caches instead of doing it in-line.
22531 Access regno_pointer_* variables through current_function.
22532 (init_emit_once) Don't clear sequence_stack.
22534 * expr.c (pending_stack_adjust, inhibit_defer_pop, pending_chain):
22536 (arg_pointer_save_area): Delete declaration.
22537 (finish_expr_for_function): Renamed from init_queue; no longer static.
22538 (init_expr): Don't call init_queue.
22539 (save_expr_status, restore_expr_status): Delete functions.
22540 (expand_expr): Changes to reflect new layout of struct function.
22541 Don't access current_function_check_memory_usage when current_function
22543 * expr.h (forced_labels, save_expr_regs, saveregs_value,
22544 apply_args_value, current_function_calls_alloca, inhibit_defer_pop,
22545 current_function_outgoing_args_size, current_function_arg_offset_rtx,
22546 current_function_uses_const_pool, function_call_count,
22547 current_function_uses_pic_offset_table, nonlocal_labels,
22548 current_function_internal_arg_pointer, nonlocal_goto_stack_level,
22549 current_function_check_memory_usage, nonlocal_goto_handler_slots,
22550 pending_stack_adjust, target_temp_slot_level, temp_slot_level): Delete
22552 (finish_expr_for_function): Declare.
22553 * flags.h (current_function_has_nonlocal_label,
22554 current_function_has_nonlocal_goto, current_function_is_thunk,
22555 current_function_has_computed_jump): Delete declarations.
22556 * flow.c (forced_labels): Delete declaration.
22557 * function.c (current_function_pops_args,
22558 current_function_returns_struct, current_function_returns_pcc_struct,
22559 current_function_needs_context, current_function_calls_setjmp,
22560 current_function_calls_longjmp, current_function_has_nonlocal_label,
22561 current_function_has_nonlocal_goto, current_function_is_thunk,
22562 current_function_has_computed_jump, current_function_calls_alloca,
22563 current_function_contains_functions, current_function_returns_pointer,
22564 current_function_epilogue_delay_list, current_function_args_size,
22565 current_function_pretend_args_size, current_function_arg_offset_rtx,
22566 current_function_outgoing_args_size, current_function_varargs,
22567 current_function_stdarg, current_function_args_info, cleanup_label,
22568 current_function_name, current_function_uses_const_pool,
22569 current_function_instrument_entry_exit, current_function_return_rtx,
22570 current_function_uses_pic_offset_table, nonlocal_labels,
22571 current_function_internal_arg_pointer, current_function_cannot_inline,
22572 current_function_check_memory_usage, function_call_count,
22573 nonlocal_goto_handler_slots, nonlocal_goto_handler_labels,
22574 nonlocal_goto_stack_level, return_label, save_expr_regs,
22575 stack_slot_list, rtl_expr_chain, tail_recursion_label, temp_slots,
22576 tail_recursion_reentry, arg_pointer_save_area, frame_offset,
22577 context_display, trampoline_list, parm_birth_insn, invalid_stack_slot,
22578 last_parm_insn, max_parm_reg, parm_reg_stack_loc, sequence_rtl_expr,
22579 temp_slot_level, var_temp_slot_level, target_temp_slot_level):
22581 (push_function_context_to): Don't save them. Don't call
22582 save_storage_status, save_emit_status or save_expr_status.
22583 (pop_function_context_from): Don't restore them. Don't call
22584 restore_storage_status or restore_expr_status.
22585 (get_func_frame_size): New function.
22586 (get_frame_size): Use it.
22587 (assign_outer_stack_local): Reflect some member name changes in struct
22589 (put_reg_into_stack): Likewise.
22590 (assign_stack_temp_for_type): sequence_rtl_expr was renamed to
22592 (fixup_var_refs): Likewise.
22593 (fix_lexical_addr): Likewise.
22594 (trampoline_address): Likewise.
22595 (prepare_function_start): Clear field inlinable of current_function.
22596 (init_function_for_compilation): New function.
22597 (expand_dummy_function_end): New function.
22598 (expand_function_end): Call finish_expr_for_function.
22599 * function.h (struct emit_status): New; fields moved here from struct
22600 function and from global variables. Add accessor macros for some of
22602 (struct expr_status): Likewise.
22603 (REGNO_POINTER_ALIGN, REGNO_POINTER_FLAG): Moved here from regs.h.
22604 (struct function): Add fields expr and emit, inlinable, inl_emit,
22605 original_arg_vector, original_decl_initial, inl_last_parm_insn,
22606 inl_max_label_num. Add many comments.
22607 Add accessor macros for all elts of struct function that no longer
22608 have a global variable.
22609 (cleanup_label, return_label, frame_offset, tail_recursion_label,
22610 tail_recursion_reentry, arg_pointer_save_area, rtl_expr_chain,
22611 stack_slot_list): Delete declarations.
22612 (get_func_frame_size): Declare.
22613 (save_expr_status, restore_expr_status, save_emit_status,
22614 save_storage_status, restore_storage_status): Delete declarations.
22615 (init_virtual_regs): Declare.
22616 * output.h (current_function_pops_args,
22617 current_function_returns_struct, current_function_returns_pcc_struct,
22618 current_function_needs_context, current_function_calls_setjmp,
22619 current_function_calls_longjmp, current_function_calls_alloca,
22620 current_function_has_nonlocal_label, current_function_varargs,
22621 current_function_has_computed_jump, current_function_returns_pointer,
22622 current_function_contains_functions, current_function_args_size,
22623 current_function_pretend_args_size, current_function_stdarg,
22624 current_function_outgoing_args_size, current_function_args_info,
22625 current_function_name, current_function_return_rtx,
22626 current_function_epilogue_delay_list,
22627 current_function_uses_const_pool, current_function_cannot_inline):
22628 Delete declarations.
22629 * regs.h (reg_rtx_no, regno_pointer_flag, regno_pointer_flag_length,
22630 regno_reg_rtx): Delete declaration.
22631 (REGNO_POINTER_FLAG): Delete macro.
22632 * stmt.c (expand_goto): Changes to reflect that some fields in struct
22633 function were renamed.
22634 * stor-layout.c (save_storage_status, restore_storage_status): Delete
22636 * toplev.c: Include "function.h".
22637 (current_function_decl): Delete declaration.
22638 (compile_file): Call init_dummy_function_start and
22639 expand_dummy_function_end around some initializations that need to
22641 (rest_of_compilation): Use DECL_SAVED_INSNS properly.
22642 Call init_function_for_compilation.
22643 * unroll.c: Include "function.h"
22644 (unroll_loop): Access regno_pointer_* variables through
22647 * tree.h (struct tree_decl): Add elt f to saved_insns member.
22648 (DECL_SAVED_INSNS): use it.
22649 (expand_dummy_function_end): Declare.
22650 (init_function_for_compilation): Declare.
22651 * calls.c (calls_function_1): Change use of DECL_SAVED_INSNS now
22652 that it's no longer an INLINE_HEADER.
22653 (expand_call): Likewise.
22654 * integrate.c (finish_inline): Delete function.
22655 (max_parm_reg, parm_reg_stack_loc): Delete declarations.
22656 (initialize_for_inline): Delete min_labelno, max_labelno and max_reg
22657 args. Don't generate an INLINE_HEADER rtx, just return the arg
22658 vector. All callers changed.
22659 (save_for_inline_copying): Create a duplicate struct emit_status to
22660 hold the emit state for compiling the current function. Use this and
22661 the other new fields in struct function that are for integration
22662 instead of an INLINE_HEADER.
22663 Use memcpy instead of bcopy.
22664 Store the current struct function in DECL_SAVED_INSNS of fndecl.
22665 (save_for_inline_nocopy): Similar changes, except no new emit_status
22667 (expand_inline_function): Get information from function structure,
22668 not from an inline header rtx.
22669 (output_inline_function): Lose code to extract the necessary
22670 information from an inline header; simply put back the function
22671 structure into current_function. Clear its inlinable elt.
22672 * rtl.def (INLINE_HEADER): Delete.
22673 * rtl.h: Delete all accessors for an INLINE_HEADER.
22674 (gen_inline_header_rtx): Delete declaration.
22675 (regno_reg_rtx, regno_pointer_align, nonlocal_goto_handler_labels):
22676 Delete declarations.
22677 (REGNO_POINTER_ALIGN): Delete.
22678 (clear_emit_caches): Declare.
22679 (set_new_last_label_num): Declare.
22681 Mon Aug 9 01:52:24 1999 Jason Merrill <jason@yorick.cygnus.com>
22683 * print-tree.c (print_node): Print base for OFFSET_TYPEs.
22685 * except.c (expand_eh_region_start_for_decl): Always start a new block.
22686 * stmt.c (is_eh_region): Make sure current_function is present, too.
22688 Mon Aug 9 01:15:24 1999 Jeffrey A Law (law@cygnus.com)
22690 * pa.h (HARD_REGNO_MODE_OK): Correctly handle FPregs, even when
22691 for 64bit PA targets.
22693 * pa.h (SELECT_SECTION): Define.
22694 * som.h (SELECT_SECTION): Delete.
22696 Sun Aug 8 15:13:20 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22698 * alias.c (init_alias_analysis): Wrap call to
22699 `prologue_epilogue_contains' within HAVE_prologue||HAVE_epilogue.
22701 1999-08-07 Bruce Korb <autogen@linuxbox.com>
22703 * fixinc/inclhack.def(irix_asm_apostrophe): IRIX 5.2's
22704 <sys/asm.h> contains an asm comment with an apostrophe
22705 * fixinc/inclhack.sh: regen
22706 * fixinc/fixincl.x: regen
22708 Sat Aug 7 19:37:07 1999 Richard Henderson <rth@cygnus.com>
22710 * function.c (init_function_start): Clear prologue & epilogue.
22711 (prologue_epilogue_contains): New function.
22712 * alias.c (init_alias_analysis): Use it.
22713 * rtl.h (prologue_epilogue_contains): Declare it.
22715 Sat Aug 7 19:32:16 1999 Richard Henderson <rth@cygnus.com>
22717 * jump.c (onlyjump_p): New function.
22718 * rtl.h: Declare it.
22719 * flow.c (delete_unreachable_blocks): Use onlyjump_p instead
22720 of condjump_p in calling tidy_fallthru_edge and merge_blocks.
22722 Sat Aug 7 17:09:36 1999 Richard Henderson <rth@cygnus.com>
22724 * global.c (build_insn_chain): Use EXECUTE_IF_SET_IN_REG_SET
22725 to invert loops. Simplify block scanning.
22727 Sat Aug 7 02:11:13 1999 Bernd Schmidt <bernds@cygnus.co.uk>
22729 * gcse.c (hash_scan_set): Treat SYMBOL_REFs like CONST_INTs.
22730 (cprop_insn): Treat SYMBOL_REFs like CONST_INTs.
22732 1999-08-07 Jonathan Larmour <jlarmour@cygnus.co.uk>
22734 * config/sparc/liteelf.h: New file to support sparclite-elf target
22735 * config/sparc/t-sp86x: New file to support sparc86x targets
22736 * config/sparc/sp86x-aout.h: New file to support sparc86x-aout target
22737 * config/sparc/sp86x-elf.h: New file to support sparc86x-elf target
22738 * configure.in: Support above target triplets
22739 * configure: Regenerated
22741 Sat Aug 7 01:39:27 1999 Philippe De Muyter <phdm@macqel.be>
22743 * fixinc/server.c (server_setup): Do not prefix function used as
22744 parameter with `&'.
22746 Sat Aug 7 00:21:20 1999 Richard Henderson <rth@cygnus.com>
22748 * alpha.md (movhi and movqi patterns): Correct predicate for !BWX.
22749 Remove fp reg alternatives.
22751 Sat Aug 7 00:06:54 1999 Jeffrey A Law (law@cygnus.com)
22753 * Makefiin (TAROUTOPTS): Kill.
22754 (install-headers-tar): Use "xpf" for tar headerfile extraction
22755 * i370/x-oe (TAROUTOPTS): Delete.
22756 * m68k/x-apollo68 (TAROUTOPTS): Delete.
22757 * m68k/x-hp320 (TAROUTOPTS): Delete.
22758 * m68k/x-hp320g (TAROUTOPTS): Delete.
22759 * gcc.texi: Update bug reporting text.
22761 1999-08-6 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
22763 * reg-stack.c (change_stack) Fixed problem with negative array index.
22765 Fri Aug 6 23:08:44 1999 Jeffrey A Law (law@cygnus.com)
22767 * extend.texi, install.texi: Fix spelling mistakes.
22769 * Makefile.in (PREMADE_ATTRTAB_MD, PREMADE_ATTRTAB): Delete.
22770 (s-attrtab); No longer try to use pre-made insn-attrtab file.
22771 * mips/t-bsd: Delete references to obsolete PREMADE_ATTRTAB and
22772 PREMADE_ATTRTAB_MD.
22773 * mips/t-ecoff: Likewise.
22774 * mips/t-elf: Likewise.
22775 * mips/t-mips: Likewise.
22776 * mips/t-osfrose: Likewise.
22777 * mips/t-r3900: Likewise.
22778 * mips/t-svr3: Likewise.
22779 * mips/t-svr4: Likewise.
22780 * mips/t-ultrix: Likewise.
22782 * gcc.texi: Document recommend means to provide software floating
22783 point libraries in libgcc.a
22785 1999-08-06 Jason Merrill <jason@yorick.cygnus.com>
22787 * c-lex.c (yylex): We can have a number with no digits.
22789 Fri Aug 6 16:53:55 EDT 1999 John Wehle (john@feith.com)
22791 * jump.c (delete_prior_computation): New function, broken
22792 out of delete_computation. Check for side effects with
22793 side_effects_p instead of FIND_REG_INC_NOTE. Handle
22794 multi-word hard registers.
22795 (delete_computation): Use it. Check for side effects with
22796 side_effects_p instead of FIND_REG_INC_NOTE. Synthesize a
22797 missing REG_DEAD note for a register which is both set and
22800 Fri Aug 6 11:05:29 1999 Jeffrey A Law (law@cygnus.com)
22802 * elf.h (TEXT_SPACE_P, FUNCTION_NAME_P): Delete.
22803 (ASM_GLOBALIZE_LABEL, ASM_OUTPUT_INT, ASM_OUTPUT_DOUBLE_INT): Likewise.
22804 (ASM_FILE_START): Import _mcount with the right type.
22805 (ASM_DECLARE_FUNCTION_NAME): Define.
22806 (ASM_OUTPUT_EXTERNAL, ASM_OUTPUT_EXTERNAL_LIBCALL): Define.
22807 * pa.c (output_function_prologue): Always emit the function's label
22809 * pa.h (TEXT_SPACE_P): Define.
22810 (FUNCTION_NAME_P, ENCODE_SECTION_INFO, STRIP_NAME_ENCODING): Likewise.
22811 (ASM_OUTPUT_INT, ASM_OUTPUT_DOUBLE_INT, ASM_GLOBALIZE_LABEL): Likewise.
22812 * som.h (TEXT_SPACE_P): Delete.
22813 (FUNCTION_NAME_P, ENCODE_SECTION_INFO, STRIP_NAME_ENCODING): Likewise.
22814 (ASM_GLOBALIZE_LABEL, ASM_OUTPUT_INT): Likewise.
22816 Thu Aug 5 19:29:39 1999 Jim Wilson <wilson@cygnus.com>
22818 * expr.c (emit_group_load): Allow src to be a CONCAT.
22820 Thu Aug 5 22:27:15 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
22822 * config/sh/lib1funcs.asm (___movstrSI0): Change or r0,r0,r0 to nop.
22823 (___mulsi3): Use '!' comment character.
22825 Thu Aug 5 13:34:14 1999 Bernd Schmidt <bernds@cygnus.co.uk>
22827 * reload1.c (maybe_fix_stack_asms): Also declare P as "const char *".
22829 Thu Aug 5 02:40:42 1999 Jeffrey A Law (law@cygnus.com)
22831 * gcc.c: Update URLs and mail addresses.
22832 * gcc.texi: Likewise.
22834 Thu Aug 5 01:14:13 1999 Daniel Jacobowitz <drow@false.org>
22836 * rs6000.c (current_file_function_operand): Return zero for
22838 (rs6000_encode_section_info): Do not set SYMBOL_REF_FLAG for
22840 * rs6000.h (ENCODE_SECTION_NIFO): Do not set SYMBOL_REF_FLAG
22843 Thu Aug 5 00:56:30 1999 Geoffrey Keating <geoffk@cygnus.com>
22845 * rs6000.c (rs6000_stack_info): For ABI_V4/ABI_SOLARIS -fpic, always
22846 allocate space in the stack frame for the PIC register.
22848 Thu Aug 5 00:20:47 1999 Jeffrey A Law (law@cygnus.com)
22850 * m68k.md (xordi3, anddi3): These patterns are not available on
22853 Wed Aug 4 23:39:20 1999 Mark Mitchell <mark@codesourcery.com>
22855 * real.c (GET_REAL): Don't violate ANSI/ISO aliasing rules.
22856 (PUT_REAL): Likewise.
22858 Wed Aug 4 20:45:04 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
22860 * final.c (shorten_branches): Don't add an alignment for loops
22861 that have no label inside.
22863 Wed Aug 4 16:39:24 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22865 * builtins.c (expand_builtin_memcmp, expand_builtin_strcmp): Wrap
22866 prototypes in macro HAVE_cmpstrsi.
22868 * cpplib.c (cpp_get_token): Remove unused label `op3'.
22870 * emit-rtl.c (operand_subword): Remove unused variable
22873 * rtl.c (shallow_copy_rtx): Remove unused variable `format_ptr'.
22875 * tree.c (chainon): Wrap variable `t2' in macro ENABLE_CHECKING.
22877 Wed Aug 4 13:29:23 1999 Zack Weinberg <zack@bitmover.com>
22879 * cpphash.c (macroexpand): Delete leading whitespace when arg
22880 is concatenated before.
22881 (unsafe_chars): Correct test for whether + and - can extend a
22884 * cppinit.c (cpp_start_read): Do dependencies for
22885 -include/-imacros files also.
22887 * cpplib.c (cpp_scan_buffer): In no-output mode, don't bother
22888 tokenizing non-directive lines.
22889 (cpp_expand_to_buffer): Temporarily disable no-output mode.
22890 * cppmain.c: In no-output mode, just call cpp_scan_buffer for
22893 Wed Aug 4 12:53:44 1999 Jason Merrill <jason@yorick.cygnus.com>
22895 * expr.c (expand_expr, case PLUS_EXPR): Fix parallel case, too.
22897 * c-lex.c: Sync with C++ frontend.
22898 (linemode): New variable.
22899 (parse_float): imag, conversion_errno, and type are output only.
22900 (yylex): Adjust. Move initial '.' case into main switch.
22902 (handle_generic_pragma): Just deal with tokens.
22903 (readescape): Use ISXDIGIT and ISGRAPH.
22904 * c-parse.in: Add END_OF_LINE token.
22906 * c-lex.c (lang_init): Generalize.
22907 (nextchar): Remove. Replace uses with UNGETC.
22908 (skip_white_space): Handle linemode here. Optimize for cpplib.
22909 (skip_white_space_on_line): Remove.
22910 (extend_token_buffer_to): New fn.
22911 (extend_token_buffer): Use it.
22912 (read_line_number, check_newline): Just deal with tokens.
22913 (token_getch, token_put_back): New fns.
22914 (yylex): Use them. More cpplib optimizations. Simplify.
22916 Wed Aug 4 12:53:44 1999 Michael Tiemann <tiemann@holodeck.cygnus.com>
22917 Jason Merrill <jason@yorick.cygnus.com>
22919 * c-lex.c (init_parse): Set cpp_token to CPP_DIRECTIVE.
22920 (consume_string): Make this smart about USE_CPPLIB.
22921 (check_newline): Rewrite to be intelligent about USE_CPPLIB.
22922 (yylex): Rewrite to be intelligent about USE_CPPLIB.
22923 Also, clean up cases where we redundantly set token_buffer[0].
22924 (read_line_number): New fn.
22925 (ignore_escape_flag): New variable.
22927 Wed Aug 4 13:12:17 1999 Jeffrey A Law (law@cygnus.com)
22929 * a29k/t-a29kbare: Fix some comments.
22930 (LIB2FUNCS_EXTRA): Remove fp-bit.c and dp-bit.c
22931 (FPBIT, DPBIT): Define.
22932 * a29k/t-vx29k: Likewise.
22933 * arc/t-arc: Likewise.
22934 * arm/t-arm-elf: Likewise.
22935 * arm/t-bare: Likewise.
22936 * arm/t-pe: Likewise.
22937 * arm/t-pe-thumb: Likewise.
22938 * arm/t-semi: Likewise.
22939 * arm/t-thumb: Likewise.
22940 * arm/t-thumb-elf: Likewise.
22941 * arm/t-thumb-linux: Likewise.
22942 * h8300/t-h8300: Likewise.
22943 * i960/t-i960: Likewise.
22944 * i960/t-vxworks960: Likewise.
22945 * m32r/t-m32r: Likewise.
22946 * mips/t-ecoff: Likewise.
22947 * mips/t-elf: Likewise.
22948 * mips/t-r3900: Likewise.
22949 * pa/t-pro: Likewise.
22950 * rs6000/t-aix43: Likewise.
22951 * rs6000/t-beos: Likewise.
22952 * rs6000/t-newas: Likewise.
22953 * rs6000/t-ppccomm: Likewise.
22954 * rs6000/t-rs6000: Likewise.
22955 * rs6000/t-winnt: Likewise.
22956 * rs6000/t-xnewas: Likewise.
22957 * rs6000/t-xrs6000: Likewise.
22958 * sh/t-sh: Likewise.
22959 * sparc/t-elf: Likewise.
22960 * sparc/t-sparcbare: Likewise.
22961 * sparc/t-sparclite: Likewise.
22962 * sparc/t-splet: Likewise.
22963 * v850/t-v850: Likewise.
22964 * mn10200/t-mn10200: Fix comments.
22965 * mn10300/t-mn10300: Likewise.
22967 * pa.md (divsi3, udivsi3, modsi3, umodsi3 expanders): Clobber a new
22968 dummy operand. Allocate a new pseudo for the dummy operand.
22969 (divsi3, udivsi3, modis3, umodsi3 patterns): Corresponding changes.
22971 * pa.md (movqi, movhi patterns): Do not expose FP regs to regclass.
22973 Wed Aug 4 11:53:55 1999 Tom Tromey <tromey@cygnus.com>
22975 * configure: Rebuilt.
22976 * configure.in: Removed --enable-java-gc option and JAVAGC subst.
22978 Wed Aug 4 09:06:14 1999 Richard Earnshaw (rearnsha@arm.com)
22980 * recog.c (preproces_constraints): Zero recog_op_alt before
22981 processing the constraints.
22983 * arm.c (typedef minipool_node): Renamed from pool_node.
22984 (minipool_vector, minipool_size, minipool_vector_label): Similarly.
22985 (add_minipool_constant): New function.
22986 (dump_minipool): New function.
22987 (find_barrier): Remove special case for getting the insn size of
22988 an insn that references the constant pool.
22989 (minipool_fixup): New structure.
22990 (push_minipool_barrier): New function.
22991 (push_minipool_fix): New function.
22992 (note_invalid_constants): New function.
22993 (add_pool_constant, dump_table, fixit, broken_move): Delete.
22994 (arm_reorg): Rewrite code to fix up the constant pool into a
22995 series of mini-pools embedded in the insn stream.
22996 (arm_output_epilogue): New function, made mainly from the body
22997 of output_func_epilogue.
22998 (output_func_epilogue): Move insn generation part of epilogue code
22999 to arm_output_epilogue.
23000 * arm.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Delete.
23001 * arm.md (pool_range): New attribute.
23002 (zero_extendqidi2): Add attribute pool_range.
23003 (zero_extend_hisi_insn, load_extendqisi, extendhisi_insn,
23004 extendqihi_insn, extendqisi_insn, movdi, movsi_insn, pic_load_addr,
23005 pic_load_addr_based_insn, movhi_insn_arch4, movhi_insn_littleend,
23006 movhi_insn_bigend, loadhi_si_bigend, movsf_hard_insn, movsf_soft_insn,
23007 movdf_hard_insn, movdf_soft_insn, movxf_hard_insn): Likewise.
23008 (epilogue): New expand.
23009 (epilogue_insn): New insn. Call arm_output_epilogue.
23011 * arm.c (arm_poke_function_name): Undo change of July 17. Tidy up.
23012 * arm.h (TARGET_SWITCHES): Add missing doc string for TARGET_DEFAULT.
23014 Mon Aug 2 19:18:44 1999 Jason Merrill <jason@yorick.cygnus.com>
23016 * linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
23018 1999-08-04 Mark Elbrecht <snowball3@bigfoot.com>
23020 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Define.
23022 Wed Aug 4 02:15:32 1999 Richard Henderson <rth@cygnus.com>
23024 * jump.c (delete_insn): Delete the addr_vec when deleting a tablejump.
23026 Wed Aug 4 01:48:08 1999 Jim Kingdon <http://developer.redhat.com>
23028 * global.c: Fix comment.
23030 Wed Aug 4 01:43:01 1999 Ian Lance Taylor <ian@zembu.com>
23032 * gcc.c (access_check): New static function.
23033 (find_a_file): Use it when searching a directory list.
23034 * collect2.c (find_a_file): Don't accept directories found when
23035 searching a directory list.
23037 Wed Aug 4 01:40:43 1999 Philippe De Muyter <phdm@macqel.be>
23039 * tlink.c (symbol_hash_lookup): Do not prefix functions used as
23040 function parameters with `&'.
23041 (file_hash_lookup, demangled_hash_lookup, tlink_init): Ditto.
23043 Wed Aug 4 01:08:44 1999 Jeffrey A Law (law@cygnus.com)
23045 * flow.c (delete_unreachable_blocks): Do not call merge_blocks
23046 or tidy_fallthru_edge if the last insn in the block is not
23047 an unconditional jump or a simple conditional jump.
23049 Tue Aug 3 20:21:20 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
23051 * Makefile.in (c-decl.o): Depends on defaults.h.
23053 Tue Aug 3 14:14:52 1999 Jeffrey A Law (law@cygnus.com)
23055 * pa.h (HARD_REGNO_NREGS): FP registers are always 4 bytes wide for
23057 (CLASS_MAX_NREGS): Likewise.
23059 Tue Aug 3 03:51:20 1999 Jeffrey A Law (law@cygnus.com)
23061 * cse.c (cse_insn): Fix dumb thinko in last change.
23063 Tue Aug 3 10:36:13 1999 Bernd Schmidt <bernds@cygnus.co.uk>
23065 * reload1.c (maybe_fix_stack_asms): Declare CONSTRAINTS as
23068 Mon Aug 2 23:45:45 1999 Hans-Peter Nilsson <hp@bitrange.com>
23070 * dwarf2out.c (add_location_or_const_value_attribute): Correct
23071 test for sizes of passed and declared parameter types.
23073 Tue Aug 3 00:03:41 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
23075 * fixincludes: Fix the return type of bsearch, char* -> void*.
23077 * fixinc/inclhack.def: Likewise.
23079 Mon Aug 2 18:29:32 1999 Mark Mitchell <mark@codesourcery.com>
23081 * invoke.texi (-fdump-translation-unit): New option.
23083 Mon Aug 2 17:54:19 1999 Richard Henderson <rth@cygnus.com>
23085 * expr.h (PROMOTE_PROTOTYPES): Move ...
23086 * defaults.h: ... to here.
23087 * c-decl.c: Include defaults.h instead of expr.h.
23088 * c-typeck.c: Include defaults.h.
23090 Mon Aug 2 17:10:24 1999 Mark Mitchell <mark@codesourcery.com>
23092 * toplev.h (errorcount): Declare.
23093 (warningcount): Likewise.
23094 (sorrycount): Likewise.
23095 * c-lex.c (errorcount): Don't declare.
23096 * dwarf2out.c (errorcount): Don't declare.
23098 Mon Aug 2 17:02:08 1999 Jason Merrill <jason@yorick.cygnus.com>
23100 * config/libgloss.h: Add a note discouraging use with ELF.
23101 * configure.in: Don't use libgloss.h for ELF targets.
23102 Always use_collect2 on a.out targets.
23104 Mon Aug 2 16:27:42 1999 Jim Wilson <wilson@cygnus.com>
23106 * combine.c (force_to_mode, case LSHIFTRT): Add goto shiftrt.
23107 (force_to_mode, case ASHIFTRT): Add shiftrt label.
23109 Tue Aug 3 00:45:02 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
23111 * loop.c (strength_reduce): When doing biv->giv conversion, update
23112 reg note of NEXT->insn.
23114 1999-08-02 Jakub Jelinek <jj@ultra.linux.cz>
23116 * real.c (PUT_REAL): Clear unused bytes if long double is IEEE quad.
23118 1999-08-02 Jakub Jelinek <jj@ultra.linux.cz>
23120 * c-decl.c (get_parm_info, store_parm_decls): Change all uses of
23121 PROMOTE_PROTOTYPES, so that it tests it as a C expression.
23122 Ensure expr.h is included.
23123 * c-typecheck.c (convert_arguments): Ditto.
23125 * expr.h: Supply default for PROMOTE_PROTOTYPES (0).
23127 * config/arc/arc.h: Define PROMOTE_PROTOTYPES to 1.
23128 * config/convex/convex.h: Ditto.
23129 * config/dsp16xx/dsp16xx.h: Ditto.
23130 * config/fx80/fx80.h: Ditto.
23131 * config/gmicro/gmicro.h: Ditto.
23132 * config/i370/i370.h: Ditto.
23133 * config/i386/i386.h: Ditto.
23134 * config/m32r/m32r.h: Ditto.
23135 * config/m68k/m68k.h: Ditto.
23136 * config/m88k/m88k.h: Ditto.
23137 * config/mips/mips.h: Ditto.
23138 * config/pa/pa.h: Ditto.
23139 * config/pyr/pyr.h: Ditto.
23140 * config/tahoe/tahoe.h: Ditto.
23141 * config/we32k/we32k.h: Ditto.
23143 * config/sparc/sparc.h: Define PROMOTE_PROTOTYPES
23144 based on arch size.
23146 * config/i1750a/i1750a.h: Define PROMOTE_PROTOTYPES to 0.
23148 * config/i860/paragon.h: Remove PROMOTE_PROTOTYPES
23151 * tm.texi: Document new usage of PROMOTE_PROTOTYPES.
23153 1999-08-02 Richard Henderson <rth@cygnus.com>
23155 * m32r.c (m32r_setup_incoming_varargs): Use get_varargs_alias_set
23156 for the register spill block.
23157 (m32r_va_arg): New.
23158 * m32r.h (EXPAND_BUILTIN_VA_ARG): New.
23159 (EXPAND_BUILTIN_SAVEREGS): Delete #if 0 code.
23161 * m32r.h (INT8_P): Don't short-cut test with (unsigned).
23162 (INT16_P, CMP_INT16_P, UINT16_P): Likewise.
23163 (UPPER16_P, UINT24_P, INT32_P, UINT5_P): Likewise.
23165 1999-08-02 Jakub Jelinek <jj@ultra.linux.cz>
23167 * config/sparc/linux.h: Define WCHAR_TYPE as "int" and undef
23168 MAX_WCHAR_TYPE defined in sparc.h.
23169 * config/sparc/linuxaout.h: Likewise.
23170 * config/sparc/linux64.h: Likewise.
23171 Also default to -mvis if CPU is UltraSPARC.
23173 1999-08-02 Jakub Jelinek <jj@ultra.linux.cz>
23175 * config/sparc/sparc.h (ASM_DECLARE_REGISTER_GLOBAL): New macro.
23176 (RTX_OK_FOR_OLO10): Likewise.
23177 (GO_IF_LEGITIMATE_ADDRESS): If assembler supports offsetable
23178 %lo(), allow it in addresses...
23179 (PRINT_OPERAND_ADDRESS): ... and print it appropriately.
23180 * config/sparc/sparc.md (sethi_di_medlow_embmedany_pic): sethi %lo()
23181 does not make sense.
23182 * config/sparc/sparc.c (sparc_hard_reg_printed): New array.
23183 (sparc_output_scratch_registers): New function.
23184 (output_function_prologue, sparc_flat_output_function_prologue): Use
23186 * varasm.c (make_decl_rtl): Use ASM_DECLARE_REGISTER_GLOBAL if
23188 * tm.texi (ASM_DECLARE_REGISTER_GLOBAL): Document it.
23189 * configure.in: Add check for .register pseudo-op support in as and
23190 check for offsetable %lo().
23191 * acconfig.h: Add templates for the above checks.
23192 * configure: Regenerate.
23194 1999-08-02 Richard Henderson <rth@cygnus.com>
23196 * sparc/linux64.h (TARGET_DEFAULT): Remove MASK_APP_REGS.
23197 * sparc/sol2-sld-64.h (TARGET_DEFAULT): Likewise.
23198 * sparc/sol2.h (TARGET_DEFAULT): Likewise.
23200 Mon Aug 2 23:46:45 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
23202 * loop.c (strength_reduce): When doing biv->giv conversion, fix up
23205 1999-08-02 Jakub Jelinek <jj@ultra.linux.cz>
23207 * config/float-sparc.h: New file.
23208 * configure.in: Use float_format=sparc for sparc-*-linux-gnulibc1,
23209 sparc-*-linux-gnu and sparc64-*-linux*.
23211 1999-08-02 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
23213 * rs6000.c (rs6000_va_list): Type is an array.
23214 (rs6000_va_start): Don't doubly adjust for varargs.
23215 (rs6000_va_arg): Evaluate long long GPR adjustment.
23217 Mon Aug 2 16:15:57 1999 David Edelsohn <edelsohn@gnu.org>
23219 * rs6000/aix43.h (SUBTARGET_SWITCHES): Use -m64 and -m32 instead of
23220 -maix64 and -maix32.
23221 (ASM_SPEC, ASM_CPU_SPEC, CPP_SPEC, CPP_CPU_SPEC, LIB_SPEC,
23222 LINK_SPEC): Change appropriately.
23223 * rs6000/rs6000.c (short_cint_operand): Use CONST_OK_FOR_LETTER_P.
23224 (u_short_cint_operand): Likewise.
23225 * rs6000/rs6000.md (movdi splitters): Add TARGET_POWERPC64 support
23227 * rs6000/t-aix43 (MULTILIB): Change to -m64.
23229 * invoke.texi (RS/6000 Submodel): Document 64-bit processor options.
23231 Mon Aug 2 16:15:57 1999 Geoff Keating <geoffk@cygnus.com>
23233 * rs6000/rs6000.c (num_insns_constant_wide): Correct
23234 for type promotion.
23235 (add_operand): Get test correct for 64-bit HOST_WIDE_INT.
23236 (non_add_cint_operand): Likewise.
23237 (logical_operand): Likewise.
23238 (non_logical_cint_operand): Likewise.
23239 (print_operand): Correct printf()s for 64-bit HOST_WIDE_INT.
23240 (print_operand_address): Correct printf() for 64-bit HOST_WIDE_INT.
23241 (rs6000_select_rtx_section): Suppress warning.
23242 (small_data_operand): Suppress warning.
23243 (rs6000_got_register): Suppress warning.
23244 * rs6000/rs6000.md (andsi3): HOST_WIDE_INT is a signed
23245 type, so `J' is generally the wrong constraint for a SImode value;
23247 (andsi3_internal2): Likewise.
23248 (andsi3_internal3): Likewise.
23249 (iorsi3_internal1): Likewise.
23250 (xorsi3_internal1): Likewise.
23252 (movsf_softfloat): Likewise.
23253 (scc insns): Likewise.
23254 (movsi+2): Preserve sign bits of SImode constant.
23255 (floatsidf2_internal+1): Sign-extend SImode constant correctly.
23256 (movdf+1): Sign-extend properly.
23257 (movdi_32+1): Sign-extend properly.
23258 (scc insns): Sign-extend properly.
23260 * md.texi (RS/6000 EXTRA_CONSTRAINTS): Update documentation for J,
23263 1999-08-02 Richard Henderson <rth@cygnus.com>
23265 * alpha.c (override_options): Move ev6 alpha_tp frobbing out of
23266 -mcpu parsing code.
23267 (print_operand): Notice alpha_fptm not alpha_tp for sw completion.
23268 * alpha.md (all fp insns): Likewise.
23270 1999-08-02 Nick Clifton <nickc@cygnus.com>
23272 * config/v850/v850.h (STRICT_ALIGNMENT): Only define if not
23275 Mon Aug 2 03:38:33 1999 Jeffrey A Law (law@cygnus.com)
23277 * pa.c (legitimize_pic_address): Clarify comments. Do not call the
23278 pic_load_label generator directly.
23279 * pa.md (pic_load_label): Clarify comments. Remove modes on operands.
23280 No longer a named pattern.
23282 Mon Aug 2 09:38:10 1999 Nick Clifton <nickc@cygnus.com>
23284 * explow.c (force_reg): Call force_operand if X does not
23285 satisfy general_operand.
23287 Mon Aug 2 01:34:22 1999 Jeffrey A Law (law@cygnus.com)
23289 * fix-header.c (main): When testing for CONTINUED, use string
23290 equality, not pointer equality.
23292 Mon Aug 2 01:27:24 1999 Dan Nicolaescu <dann@ics.uci.edu>
23294 * sparc.c (sparc_block_profiler): Use the %g2 register, not %o0.
23296 Sun Aug 1 22:46:42 1999 Jeffrey A Law (law@cygnus.com)
23298 * cse.c (cse_insn): Fix loop which deletes insns after a jump
23299 that has become an unconditional jump.
23301 * m68k.c (output_function_prologue): Fix typo in CPU32 case.
23302 (output_function_epilogue): Similarly.
23304 Sun Aug 1 20:14:00 1999 Bernd Schmidt <bernds@cygnus.co.uk>
23306 * tree.h (init_dummy_function_start): Declare.
23308 Sun Aug 1 12:55:31 1999 Bernd Schmidt <bernds@cygnus.co.uk>
23310 * stmt.c (emit_filename, emit_lineno, expr_stmts_for_value,
23311 last_expr_type, last_expr_value, block_start_count, block_stack,
23312 stack_block_stack, cond_stack, loop_stack, case_stack, nesting_stack,
23313 nesting_depth, goto_fixup_chain): Delete global vars; now allocated
23314 dynamically in stmt elt of struct function for each function.
23315 (struct nesting): Rename function_call_count elt to n_function_calls,
23316 target_temp_slot_level to block_target_temp_slot_level. All users
23318 (struct stmt_status): New structure definition.
23319 Add many accessor macros for stmt_status elements which previously
23320 were global variables.
23321 (init_stmt_for_function): Allocate stmt elt for current_function.
23322 Reflect that block_start_count was renamed to
23323 current_block_start_count.
23324 (save_stmt_status, restore_stmt_status): Delete functions.
23325 (preserve_subexpressions_p): Don't access loop_stack when outside
23327 (expand_start_bindings): Reflect that block_start_count was renamed to
23328 current_block_start_count.
23329 (expand_fixup): Likewise.
23330 (expand_decl): Don't access block_stack when outside a function.
23331 (expand_decl_cleanup): Likewise.
23332 (expand_dcc_cleanup): Likewise.
23333 (expand_dhc_cleanup): Likewise.
23334 (expand_anon_union_decl): Likewise.
23335 (set_file_and_line_for_stmt): New function.
23336 (in_control_zone_p): New function.
23338 * function.h (struct function): Add new elt stmt.
23339 Delete elts block_stack, stack_block_stack, cond_stack, loop_stack,
23340 case_stack, nesting_stack, nesting_depth, block_start_count,
23341 last_expr_type, last_expr_value, expr_stmts_for_value, emit_filename,
23342 emit_lineno, goto_fixup_chain.
23343 (save_eh_status, restore_eh_status, save_stmt_status,
23344 restore_stmt_status): Delete declarations.
23345 * function.c (push_function_context_to): Don't call save_stmt_status.
23346 (pop_function_context_to): Don't call restore_stmt_status.
23347 * tree.h (in_control_zone_p): Declare.
23348 * rtl.h (set_file_and_line_for_stmt): Declare.
23350 * emit-rtl.c (emit_line_note): Don't set emit_filename/emit_lineno;
23351 call set_file_and_line_for_stmt.
23353 Thu Jul 31 12:34:45 1999 Joe Buck <jbuck@synopsys.com>
23355 * gcc.texi: Use terms "GNU Compiler Collection" and "GCC".
23356 Also update copyright.
23358 Sat Jul 31 11:10:07 1999 Bernd Schmidt <bernds@cygnus.co.uk>
23360 * c-pragma.c: Don't include "except.h".
23361 * emit-rtl.c: Likewise.
23362 * stor-layout.c: Likewise.
23363 * tree.c: Likewise.
23364 * varasm.c: Likewise.
23366 * flow.c: Include "function.h".
23367 * tree.h (init_dummy_function_start): Declare new function.
23369 * except.h (struct eh_status): New structure.
23370 (struct label_node, struct eh_entry): Declare even if tree.h hasn't
23372 (eh_return_stub_label, ehstack, catchstack, ehqueue,
23373 catch_clauses, false_label_stack, caught_return_label_stack,
23374 protect_list, current_function_ehc): Add accessor macros for the
23375 corresponding fields in current_function->eh; delete declarations
23376 for all items that used to be declared here.
23377 * except.c (eh_return_stub_label, ehstack, catchstack, ehqueue,
23378 catch_clauses, false_label_stack, caught_return_label_stack,
23379 protect_list, current_function_ehc): Delete variables.
23380 (init_eh_for_function): Allocate current_function->eh.
23381 (save_eh_status, restore_eh_status): Delete functions.
23383 * function.h (struct function): Add fields next_global and eh.
23384 Delete all exception handling related fields.
23385 * function.c (current_function): New variable.
23386 (all_functions): New variable.
23387 (push_function_context_to): Don't allocate a struct function,
23388 use current_function instead. Call init_dummy_function_start when
23389 outside a function. Clear current_function before returning.
23390 (pop_function_context_from): Restore current_function.
23391 Don't free the restored struct function.
23392 (prepare_function_start): New function.
23393 (init_dummy_function_start): New function.
23394 (init_function_start): Break out some code into prepare_function_start
23397 * stmt.c (save_stmt_status): Don't call save_eh_status.
23398 (restore_stmt_status): Don't call restore_eh_status.
23400 * Makefile.in: Update dependencies.
23402 Sat Jul 31 04:10:01 1999 Jeffrey A Law (law@cygnus.com)
23404 * pa.c (compute_frame_size): Use STARTINg_FRAME_OFFSET instead
23405 of depending on a magic constant value. Update comments.
23406 (hppa_expand_prologue): Similarly.
23408 * pa.md (reload_indi, reload_outdi): Allow any register for the
23409 original reload register.
23411 Fri Jul 30 19:41:35 1999 Jim Wilson <wilson@cygnus.com>
23413 * cccp.c (print_help): Change marcos to macros.
23415 1999-07-30 Richard Henderson <rth@cygnus.com>
23417 * c-typeck.c (initializer_constant_valid_p): Move ...
23418 * c-common.c (initializer_constant_valid_p): ... here. Use
23419 FOO_TYPE_P instead of tests against TREE_CODE. Allow subtraction
23420 of label addresses.
23421 * c-common.h (initializer_constant_valid_p): Declare.
23422 * c-tree.h (initializer_constant_valid_p): Remove.
23424 Fri Jul 30 16:33:42 1999 Mathias Froehlich <frohlich@na.uni-tuebingen.de>
23426 * config/i386/sol2-c1.asm: Align the stack.
23427 * config/i386/sol2-gc1.asm: Likewise.
23429 1999-07-30 Vladimir Makarov <vmakarov@loony.cygnus.com>
23431 * config/sparc/sparc.h (ASM_CPU32_DEFAULT_SPEC): Change -Av8 onto
23432 -Asparclite for sparc86x.
23433 (CPP_CPU32_DEFAULT_SPEC, CPP_CPU_SPEC): Remove -D__sparc_v8__ for
23435 (ASM_CPU_SPEC): Use -Asparclite for sparc86x.
23437 Fri Jul 30 14:53:56 1999 Jakub Jelinek <jj@ultra.linux.cz>
23439 * config/sparc/linux64.h (CC1_SPEC): Preserve CPU specified by
23440 the user if using the non-default arch size in BI_ARCH configuration.
23441 * config/sparc/sol2-sld-64.h (CC1_SPEC): Ditto.
23443 * config/sparc/sparc.md (cmp_mul_set, cmp_udiv_cc_set):
23444 Fix patterns so that they actually match.
23445 (cmp_sdiv_cc_set): Ditto, also don't require g0 to be zero.
23446 (mulsidi3_sp64, const_mulsidi3_sp64): New patterns.
23447 (const_mulsidi3_sp32): Renamed from const_mulsidi3, only on
23449 (mulsidi3): Reflect this in the expand.
23450 (smulsi3_highpart): Only on TARGET_ARCH32.
23451 (umulsidi3_sp64, const_umulsidi3_sp64): New patterns.
23452 (const_umulsidi3_sp32): Renamed from const_umulsidi3.
23453 (umulsidi3): Reflect this in the expand.
23454 (umulsi3_highpart): Only on TARGET_ARCH32.
23455 (divsi3_sp32): Renamed from divsi3, only on TARGET_ARCH32,
23456 don't require g0 to be zero.
23457 (udivsi3_sp32): Renamed from udivsi3, only on TARGET_ARCH32.
23458 ({,u}divsi3): New expands.
23459 ({,u}divsi3_sp64): New patterns.
23460 (after lshrdi3_v8plus): Four new patterns to help combiner
23461 optimizing nested mixed mode shifts.
23463 * config/sparc/sparc.c (sparc_override_options): Use deprecated
23464 v8 instructions if optimizing for UltraSPARC I, II, IIi, as it
23465 speed things up. Don't use them by default on plain v9 in 64bit
23466 mode, according to what SPAMv9 sais.
23468 * config/sparc/sparc.h: Fix comments, e.g. Linux already preserves
23469 top 32 bits of %[og][0-7] in signal handlers.
23470 Also, TARGET_HARD_MUL32 now is only true for TARGET_ARCH32.
23472 Fri Jul 30 03:00:41 1999 Jeffrey A Law (law@cygnus.com)
23474 * pa.md (zvdep_imm32): Renamed from zvdep_imm.
23475 (ashlsi3): Corresponding changes.
23477 * pa.c (compute_zdepwi_operands): Renamed from compute_zdepi_operands.
23479 Thu Jul 29 18:37:13 1999 Jeffrey A Law (law@cygnus.com)
23481 * pa.h (FIRST_PARM_CALLER_OFFSET): Delete.
23483 Thu Jul 29 19:01:58 1999 Bernd Schmidt <bernds@cygnus.co.uk>
23485 * arm.h (Hint): Delete macro.
23486 Substitute HOST_WIDE_INT for Hint in some prototypes.
23487 * arm.c: Substitute HOST_WIDE_INT for Hint in one prototype.
23489 Thu Jul 29 09:21:42 1999 Nick Clifton <nickc@cygnus.com>
23491 * builtins.c (expand_builtin_setjmp): Use force_operand to
23492 make sure that the buffer address is in a suitable form to be
23493 passed to force_reg.
23495 Wed Jul 28 12:50:48 1999 Geoff Keating <geoffk@cygnus.com>
23497 * config/mips/mips.c: system.h handles MIN and MAX, don't undefine
23500 Wed Jul 28 13:18:35 1999 Jeffrey A Law (law@cygnus.com)
23502 * pa.md (indirect_jump): Remove mode from match_operand. Verify
23503 proper mode in the condition string.
23504 (icacheflush, dcacheflush): Remove modes from match_operands.
23506 * pa.c (emit_move_sequence): Always convert scratch_reg to the
23507 proper mode before using it.
23509 * pa.md (adddi3, subdi3): Turn into a define_expand/define_insn
23512 * pa.c (store_reg): Do not call add_high_const generator directly.
23513 (load_reg, set_reg_plus_d): Likewise.
23514 * pa.md (add_high_const): No longer a named pattern.
23516 * pa.c (legitimize_address): Consistently use Pmode rather than
23517 SImode. Do not call gen_pic2_highpart directly anymore.
23518 * pa.md (pic2_highpart): No longer a named pattern.
23519 (pic2_lo_sum): Similarly. Reformat to make more readable.
23521 * pa.md (call, call_value): Use "word_mode" instead of "SImode" as
23526 Wed Jul 28 11:28:04 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
23528 * builtins.c (expand_builtin): Typo in call to expand_builtin_ffs.
23530 Wed Jul 28 11:23:48 1999 Richard Henderson <rth@cygnus.com>
23532 * pa.c (hppa_builtin_saveregs): Use get_varargs_alias_set
23533 and tag the spill mems.
23534 (hppa_va_start): New.
23535 (hppa_va_arg): New.
23536 * pa.h (EXPAND_BUILTIN_VA_START): New.
23537 (EXPAND_BUILTIN_VA_ARG): New.
23539 Wed Jul 28 11:22:21 1999 Richard Henderson <rth@cygnus.com>
23541 * mn10300.c (mn10300_builtin_saveregs): Use get_varargs_alias_set
23542 and tag the spill mems.
23543 (mn10300_va_start): New.
23544 (mn10300_va_arg): New.
23545 * mn10300.h (EXPAND_BUILTIN_VA_START): New.
23546 (EXPAND_BUILTIN_VA_ARG): New.
23548 Wed Jul 28 11:20:19 1999 Richard Henderson <rth@cygnus.com>
23550 * mn10200.c (mn10200_va_arg): New.
23551 * mn10200.h (EXPAND_BUILTIN_VA_ARG): New.
23553 Wed Jul 28 11:19:06 1999 Richard Henderson <rth@cygnus.com>
23555 * builtins.c (std_expand_builtin_va_arg): Use int_size_in_bytes
23556 rather than play with TREE_INT_CST_LOW.
23558 1999-07-27 Philip Blundell <pb@nexus.co.uk>
23560 * config/arm/telf.h: Include dbxelf.h.
23561 (CPP_PREDEFINES): Only define if not already defined.
23562 (ASM_IDENTIFY_GCC): Likewise.
23563 (SUBTARGET_EXTRA_SECTIONS): Likewise.
23564 (SUBTARGET_EXTRA_SECTION_FUNCTIONS): Likewise.
23565 * config/arm/thumb.h (LINK_SPEC): Only define if not already
23567 (DBX_DEBUGGING_INFO): Don't define.
23568 * config/arm/linux-telf.h: New file.
23569 * config/arm/linux-tgas.h: New file.
23570 * config/arm/t-thumb-linux: New file.
23571 * config/arm/uclinux-elf.h: New file.
23572 * config/arm/uclinux-telf.h: New file.
23573 * configure.in (arm-*-uclinux, thumb-*-linux-gnu,
23574 thumb-*-uclinux): New targets.
23575 * configure: Regenerate.
23577 Tue Jul 27 23:20:21 1999 Jeffrey A Law (law@cygnus.com)
23579 * pa.md (post_store, pre_load): New expanders.
23580 (post_stwm, pre_ldwm): Renamed to post_stw and pre_ldw respectively.
23581 (post_ldwm, pre_stwm): Make these unnamed patterns since we never
23582 need to directly generate RTL for them.
23583 * pa.c (hppa_expand_prologue, hppa_expand_epilogue): Corresponding
23586 Tue Jul 27 16:05:52 1999 David Edelsohn <edelsohn@gnu.org>
23588 * aix43.h (ASM_CPU_SPEC, CPP_CPU_SPEC): Add rs64a and PPC630.
23589 * rs6000.c (processor_target_table): Add powerpc64, rs64a, and PPC630.
23590 (rs6000_cpu): Choose between 32-bit and 64-bit default processors.
23591 (secndary_reload_class): Make TARGET_ELF conditional compile.
23592 (print_operand_address): Similar.
23593 (output_toc): Print all values as hex.
23594 (get_issue_rate): Rearrange and add RS64A and PPC630.
23595 * rs6000.h (processor_type): Add RS64A and PPC630.
23596 (PROCESSOR_POWERPC64): New.
23597 (PROMOTE_MODE): Use word_mode.
23598 (RTX_COSTS): Add RS64A and PPC630.
23599 * rs6000.md (scheduling information): Add lmul and ldiv
23600 representing 64-bit integer multiply and divide. Add rs64a and
23601 PPC630 information.
23602 (ashldi3): Add support for "rldic" instruction.
23603 * sysv4.h (PROCESSOR_DEFAULT): Change to PROCESSOR_750.
23605 Tue Jul 27 15:31:53 1999 Vladimir Makarov <vmakarov@toad.to.cygnus.com>
23607 * config/sparc/sparc.c (sparc_override_options): Enable SPARCLITE
23608 instead of V8 for sparclite86x in cpu_table.
23610 Tue Jul 27 17:49:42 1999 Bernd Schmidt <bernds@cygnus.co.uk>
23612 * config/arm/coff.h (ASM_FILE_START): If generating SDB output, call
23613 output_file_directive.
23615 Tue Jul 27 03:15:33 1999 Jason Merrill <jason@yorick.cygnus.com>
23617 * expr.c (expand_expr, case PLUS_EXPR): Get the mode from the
23618 tree for op1, not the rtl.
23620 Tue Jul 27 00:18:34 1999 Richard Henderson <rth@cygnus.com>
23622 * m88k.c (m88k_builtin_saveregs): Break out the constructor code
23623 to m88k_va_start, leaving only the register spill.
23624 (m88k_build_va_list): New.
23625 (m88k_va_start): New.
23626 (m88k_va_arg): New.
23627 * m88k.h (BUILD_VA_LIST_TYPE): New.
23628 (EXPAND_BUILTIN_VA_START): New.
23629 (EXPAND_BUILTIN_VA_ARG): New.
23631 Mon Jul 26 19:07:11 1999 Geoff Keating <geoffk@cygnus.com>
23633 * config/rs6000/rs6000.c (rs6000_expand_builtin_saveregs):
23634 Rename from expand_builtin_saveregs.
23635 * config/rs6000/rs6000.h (EXPAND_BUILTIN_SAVEREGS): Change caller.
23637 Mon Jul 26 22:52:47 1999 Richard Henderson <rth@cygnus.com>
23639 * i960.c (i960_setup_incoming_varargs): Use get_varargs_alias_set
23640 for the register spill block.
23641 (i960_build_va_list): New.
23642 (i960_va_start): New.
23643 (i960_va_arg): New.
23644 * i960.h (BUILD_VA_LIST_TYPE): New.
23645 (EXPAND_BUILTIN_VA_START): New.
23646 (EXPAND_BUILTIN_VA_ARG): New.
23647 * i960.md (store_multiple): Use change_address on individul mems.
23649 Mon Jul 26 22:43:12 1999 Richard Henderson <rth@cygnus.com>
23651 * builtins.c (stabilize_va_list): Don't INDIRECT_REF through
23653 (std_expand_builtin_va_start): Back out one word if !stdarg_p.
23654 (expand_builtin_va_end): Evaluate arg for side effects.
23655 * c-common.c (c_common_nodes_and_builtins): Construct a
23656 va_list_arg_type_node to handle array decomposition to pointer.
23658 Mon Jul 26 18:51:34 1999 Richard Henderson <rth@cygnus.com>
23660 * except.c (st_dynamic_cleanup): Use force_operand on the
23663 Mon Jul 26 16:43:26 1999 Richard Henderson <rth@cygnus.com>
23665 * c4x.h (EXPAND_BUILTIN_VA_ARG): New.
23666 * c4x.c (c4x_va_arg): New.
23668 Mon Jul 26 12:30:09 1999 Jason Merrill <jason@yorick.cygnus.com>
23670 * cpplib.c (cpp_get_token): Don't return a CPP_POP if the buffer
23671 has manual_pop set.
23673 1999-07-26 Nathan Sidwell <nathan@acm.org>
23675 * eh-common.h (__eh_matcher): Prototype correctly.
23677 Mon Jul 26 17:24:51 1999 Philip Blundell <pb@nexus.co.uk>
23679 * config/arm/thumb.h (THUMB_FLAG_SINGLE_PIC_BASE): Define.
23680 (TARGET_SINGLE_PIC_BASE): Likewise.
23681 (GOT_PCREL, NEED_GOT_RELOC, NEED_PLT_RELOC): Provide default
23683 (TARGET_CALLEE_INTERWORKING): Fix typo in comment.
23684 (TARGET_SWITCHES): Add -m{no-}single-pic-base.
23685 (TARGET_OPTIONS): Add -mpic-register=N.
23686 (OUTPUT_INT_ADDR_CONST): New macro.
23687 (INDEX_REGISTER_RTX_P, PIC_OFFSET_TABLE_REGNUM, FINALIZE_PIC,
23688 LEGITIMATE_PIC_OPERAND_P): Likewise.
23689 (LEGITIMIZE_ADDRESS, GOT_IF_LEGITIMATE_ADDRESS): Support PIC.
23690 (ASM_OUTPUT_INT): Use OUTPUT_INT_ADDR_CONST rather than calling
23691 output_addr_const directly.
23692 (PRINT_OPERAND_PUNCT_VALID_P): Accept `|' for compatibility with
23694 (thumb_pic_register, thumb_pic_register_string): Declare.
23696 * config/arm/thumb.c (symbol_mentioned_p): New function: Imported
23698 (label_mentioned_p): New function: Imported from arm.c.
23699 (legitimize_pic_address): New function: Imported from arm.c.
23700 (is_pic):New function: Imported from arm.c.
23701 (thumb_finalize_pic):New function: Imported from arm.c.
23702 (add_constant): Cope with PIC constants.
23703 (fixit): Cope with PIC constants.
23704 (output_return): Do not treat the PIC register as live if
23705 TARGET_SINGLE_PIC_BASE is true.
23706 (thumb_function_prologue): Do not treat the PIC register as live if
23707 TARGET_SINGLE_PIC_BASE is true.
23708 (thumb_expand_prologue): Do not treat the PIC register as live if
23709 TARGET_SINGLE_PIC_BASE is true.
23710 (thumb_unexpand_epilogue): Do not treat the PIC register as live if
23711 TARGET_SINGLE_PIC_BASE is true.
23712 (thumb_print_operand): Accept '|'.
23713 (thumb_override_options): Process PIC options.
23715 * config/arm/thumb.md (movsi): Support PIC.
23716 (call_insn): Change "i" constraint to "X".
23717 (call_value_insn): Likewise.
23718 (consttable_4, consttable_8, consttable_end): Set and clear
23719 "making_const_table" as appropriate.
23720 (pic_load_addr, pic_add_dot_plus_four): New insns.
23722 * invoke.texi (Thumb Options): Fix spelling. Document new
23723 options -msingle-pic-base and -mpic-register=.
23725 1999-07-26 Andrew Haley <aph@cygnus.com>
23727 * config/m32r/initfini.c (__init): Use a full word immediate for
23728 __fini: this allows it to be placed in any memory region.
23730 * config/m32r/t-m32r: Compile crtinit.o and crtfini.o for
23731 -mmodel=medium. This is OK for all memory models.
23733 Mon Jul 26 11:58:46 1999 Nick Clifton <nickc@cygnus.com>
23735 * config/arm/arm.c: Replace %R%s in asm_fprintf strings with %r.
23736 * config/arm/arm.h: Replace %R%s in asm_fprintf strings with %r.
23738 Mon Jul 26 10:23:36 1999 Nick Clifton <nickc@cygnus.com>
23740 * final.c (asm_fprintf): Accept ASM_FPRINTF_EXTENSIONS, if
23743 * tm.texi: Document ASM_FPRINTF_EXTENSIONS.
23745 Sun Jul 25 23:51:59 1999 Richard Henderson <rth@cygnus.com>
23747 * i860.h (EXPAND_BUILTIN_SAVEREGS): New.
23748 (BUILD_VA_LIST_TYPE): New.
23749 (EXPAND_BUILTIN_VA_START): New.
23750 (EXPAND_BUILTIN_VA_ARG): New.
23751 * i860.c (output_delayed_branch): Disable.
23752 (output_delay_insn): Likewise.
23753 (i860_saveregs): New.
23754 (i860_build_va_list): New.
23755 (i860_va_start): New.
23756 (i860_va_arg): New.
23757 * i860.md: Disable all peepholes using output_delayed_branch.
23758 * i860/sysv4.h (I860_SVR4_VA_LIST): New.
23760 Sun Jul 25 23:44:13 1999 Richard Henderson <rth@cygnus.com>
23762 * clipper.h (EXPAND_BUILTIN_SAVEREGS): Remove argument.
23763 (BUILD_VA_LIST_TYPE): New.
23764 (EXPAND_BUILTIN_VA_START): New.
23765 (EXPAND_BUILTIN_VA_ARG): New.
23766 * clipper.c (clipper_builtin_saveregs): Only dump registers.
23767 Return the address of the save area.
23768 (clipper_build_va_list): New.
23769 (clipper_va_start): New.
23770 (clipper_va_arg): New.
23772 Sun Jul 25 22:56:47 1999 Richard Henderson <rth@cygnus.com>
23774 * arc.h (EXPAND_BUILTIN_VA_START): New.
23775 (EXPAND_BUILTIN_VA_ARG): New.
23776 * arc.c (arc_setup_incoming_varargs): Set alias set of
23778 (arc_va_start): New.
23781 Sun Jul 25 22:45:55 1999 Richard Henderson <rth@cygnus.com>
23783 * alpha.h (EXPAND_BUILTIN_SAVEREGS): Delete.
23784 (BUILD_VA_LIST_TYPE): New.
23785 (EXPAND_BUILTIN_VA_START): New.
23786 (EXPAND_BUILTIN_VA_ARG): New.
23787 * alpha.c (alpha_builtin_saveregs): Delete.
23788 (alpha_build_va_list): New.
23789 (alpha_va_start): New.
23790 (alpha_va_arg): New.
23792 Sun Jul 25 21:40:33 1999 Jeffrey A Law (law@cygnus.com)
23794 * config/svr4.h (CTORS_SECTION_ASM_OP): Do not emit directives in
23796 (DTORS_SECTION_ASM_OP, INIT_SECTION_ASM_OP): Likewise.
23797 (FINI_SECTION_ASM_OP, ASM_OUTPUT_SECTION_NAME): Likewise.
23799 * gcc.texi: More changes related to list conversion.
23800 * invoke.texi: Likewise.
23802 Sun Jul 25 18:15:39 1999 Richard Henderson <rth@cygnus.com>
23804 * builtins.c (expand_builtin_saveregs): Remove static, remove exp
23805 and ignore arguments, bail if no EXPAND_BUILTIN_SAVEREGS.
23806 (expand_builtin_next_arg): Accept ARGLIST not EXP.
23807 (stabilize_va_list): New function.
23808 (std_expand_builtin_va_start): New function.
23809 (expand_builtin_va_start): New function.
23810 (get_varargs_alias_set): New function.
23811 (std_expand_builtin_va_arg): New function.
23812 (expand_builtin_va_arg): New function.
23813 (expand_builtin_va_end): New function.
23814 (expand_builtin_va_copy): New function.
23815 (expand_builtin): Call them.
23816 * c-common.c (c_common_nodes_and_builtins): Build __builtin_va_list,
23817 __builtin_{varargs_start,stdarg_start,end,copy}.
23818 (build_va_arg): New function.
23819 * c-common.h (CTI_PTR_TYPE, ptr_type_node): Delete.
23820 (build_va_arg): Declare.
23821 * c-decl.c (ptr_type_node, va_list_type_node): New.
23822 * c-parse.gperf (__builtin_va_arg): New.
23823 * c-parse.in (VA_ARG): New token.
23824 (unary_expr): Recognize it.
23825 * expr.c (expand_expr): Expand VA_ARG_EXPR.
23826 * expr.h (std_expand_builtin_va_start): Declare.
23827 (std_expand_builtin_va_arg): Declare.
23828 (expand_builtin_va_arg): Declare.
23829 (get_varargs_alias_set): Declare.
23830 * tree.def (VA_ARG_EXPR): New.
23831 * tree.h (BUILT_IN_VARARGS_START): New.
23832 (BUILT_IN_STDARG_START, BUILT_IN_VA_END): New.
23833 (ptr_type_node, va_list_type_node): Declare.
23834 * tm.texi (EXPAND_BUILTIN_SAVEREGS): Kill unused ARGLIST argument.
23835 * m32r.h (EXPAND_BUILTIN_SAVEREGS): Likewise.
23836 * m88k.h, m88k.c: Likewise.
23837 * mn10300.h, mn10300.c: Likewise.
23838 * pa.h, pa.c: Likewise.
23839 * rs6000.h, rs6000.c: Likewise.
23840 * sh.h, sh.c: Likewise.
23841 * sparc.h, sparc.c: Likewise.
23843 * emit-rtl.c (operand_subword): Copy alias set.
23844 (change_address): Likewise.
23846 Sun Jul 25 15:04:37 1999 Jeffrey A Law (law@cygnus.com)
23848 * pa.c (compute_frame_size): Scan all the used callee saved registers,
23849 not just the first one.
23851 Fri Jul 23 14:09:58 1999 Philip Blundell <pb@nexus.co.uk>
23853 * config/arm/arm.h (TARGET_SWITCHES): Add
23854 -m{no-}single-pic-base. Correct help string for -mshort-load-words.
23855 (TARGET_OPTIONS): Add -mpic-register=.
23856 (ARM_FLAG_SINGLE_PIC_BASE, TARGET_SINGLE_PIC_BASE): Define.
23857 (arm_pic_register_string): Declare.
23858 (NEED_PLT_GOT): Delete, replace with ...
23859 (NEED_GOT_RELOC, NEED_PLT_RELOC): ... these. New macros.
23860 (OUTPUT_INT_ADDR_CONST): Replace NEED_PLT_GOT with NEED_GOT_RELOC.
23861 (ASM_OUTPUT_MI_THUNK): Replace NEED_PLT_GOT with NEED_PLT_RELOC.
23862 * config/arm/arm.c (arm_override_options): Add new option
23864 (arm_pic_register_string): New variable.
23865 (arm_finalize_pic): Respect TARGET_SINGLE_PIC_BASE.
23866 (output_func_prologue): If TARGET_SINGLE_PIC_BASE, treat the PIC
23867 register as never live. Use NEED_PLT_RELOC not NEED_PLT_GOT.
23868 (output_return_instruction): Likewise.
23869 * config/arm/elf.h (NEED_PLT_GOT): Delete, replace with ...
23870 (NEED_GOT_RELOC, NEED_PLT_RELOC): ... these. Define to flag_pic.
23871 * config/arm/arm.md: Use NEED_PLT_RELOC in place of NEED_PLT_GOT.
23873 * invoke.texi (ARM Options): Fix spelling. Remove duplicate
23874 mention of -msched-prolog. Document new options -msingle-pic-base
23875 and -mpic-register=.
23877 Thu Jul 22 18:23:56 1999 Richard Henderson <rth@cygnus.com>
23879 * haifa-sched.c (reemit_notes): Tidy.
23880 * sched.c (reemit_notes): Duplicate 1998-08-31 patch to
23883 Thu Jul 22 18:21:04 1999 Richard Henderson <rth@cygnus.com>
23885 * explow.c (trunc_int_for_mode): New function.
23886 (plus_constant_wide): Use it.
23887 * combine.c (simplify_and_const_int): Likewise.
23888 (merge_outer_ops): Likewise.
23889 (simplify_shift_const): Likewise.
23890 * cse.c (simplify_unary_operation): Likewise.
23891 (simplify_binary_operation): Likewise.
23892 * emit-rtl.c (operand_subword): Likewise.
23893 * rtl.h: Declare it.
23895 Thu Jul 22 14:34:59 1999 Bernd Schmidt <bernds@cygnus.co.uk>
23897 * config/arm/arm.c (arm_print_operand): Fix typo in 'M' case
23898 (use NUM_REGS instead of NUM_INTS).
23900 Thu Jul 22 11:25:20 1999 Bernd Schmidt <bernds@cygnus.co.uk>
23902 * builtins.c: New file.
23903 * expr.c (saveregs_value, apply_args_value): Delete definition,
23904 moved into builtins.c.
23905 (string_constant): No longer static.
23906 (get_pointer_alignment, c_strlen, get_memory_rtx, expand_builtin,
23907 apply_args_size, apply_result_size, result_vector,
23908 expand_builtin_apply_args, expand_builtin_apply,
23909 expand_builtin_return): Delete functions, moved into builtins.c.
23910 (INCOMING_REGNO, OUTGOING_REGNO): Delete unused macros.
23911 * expr.h (saveregs_value, apply_args_value): Declare variables.
23912 (expand_builtin, string_constant): Declare functions.
23913 * Makefile.in: Update to build builtin.o.
23915 Wed Jul 21 00:46:58 1999 Mark P. Mitchell <mark@codesourcery.com>
23917 * defaults.h (DWARF2_GENERATE_TEXT_SECTION_LABEL): New macro.
23918 * tm.texi (DWARF2_GENERATE_TEXT_SECTION_LABEL): Define it.
23919 * dwarf2out.c (dwarf2out_init): Don't output a label to mark the
23920 start of the text section if DWARF2_GENERATE_TEXT_SECTION_LABEL is
23922 * config/mips/iris6.h (DWARF2_GENERATE_TEXT_SECTION_LABEL):
23925 1999-07-21 Michael Meissner <meissner@cygnus.com>
23927 * print-rtl.c (print_rtx): Print the names of the virtual
23930 Wed Jul 21 16:00:32 1999 Nick Clifton <nickc@cygnus.com>
23932 * config/arm/arm.h (INITIAL_ELIMINATION_OFFSET): Fix typo
23933 introduced in previous delta.
23935 Wed Jul 21 14:30:51 1999 Bernd Schmidt <bernds@cygnus.co.uk>
23937 * c-lang.c (finish_file): Rename void_list_node to void_list_node_1
23938 to avoid name clash.
23940 Wed Jul 21 08:39:22 1999 Gavin Romig-Koch <gavin@cygnus.com>
23942 * c-lex.c (yylex) : Correct the test for overflow when lexing
23945 Tue Jul 20 18:02:42 1999 Richard Henderson <rth@cygnus.com>
23947 * haifa-sched.c (insn_cost): FREE implies cost 0 and vice versa.
23948 (adjust_priority): Always call ADJUST_PRIORITY.
23949 (schedule_insn): Only put insns into the ready at cost 0.
23950 (schedule_block): Remove redundant initial sort. Give clock_var
23951 and can_issue_more to MD_SCHED_REORDER. Requeue if hazard cost
23953 * tm.texi (MD_SCHED_REORDER): Update docs.
23955 * sparc.h (MD_SCHED_REORDER): Update. Set CAN_ISSUE_MORE.
23956 * sparc.c (ultra_reorder_called_this_block): Delete.
23957 (ultrasparc_sched_init): Don't set it.
23958 (ultrasparc_sched_reorder): Don't check it.
23960 Tue Jul 20 17:07:54 1999 Richard Henderson <rth@cygnus.com>
23962 * rs6000.h (struct rs6000_args): Add sysv_gregno.
23963 * rs6000.c (init_cumulative_args): Init sysv_gregno.
23964 (function_arg_boundary): Align DFmode.
23965 (function_arg_advance): Restructure for ABI_V4; use sysv_gregno
23966 to get fp reg and stack overflow correct.
23967 (function_arg): Likewise.
23968 (function_arg_pass_by_reference): True for TFmode for ABI_V4.
23969 (setup_incoming_varargs): Restructure for ABI_V4; use
23970 function_arg_advance to skip final named argument.
23971 (expand_builtin_saveregs): Properly unskip the last integer arg
23972 when doing varargs. Adjust overflow location calculation.
23974 * ginclude/va-ppc.h (struct __va_list_tag): Make gpr and fpr
23975 explicitly unsigned.
23976 (__VA_FP_REGSAVE): Use new OFS argument instead of AP->fpr directly.
23977 (__VA_GP_REGSAVE): Similarly.
23978 (__va_longlong_p): Delete.
23979 (__va_arg_type_violation): New declaration.
23980 (va_arg): Restructure. Flag promotion errors. Align double.
23981 TFmode passed by reference.
23983 * rs6000.md (movdi_32+1): Use GEN_INT after arithmetic
23984 in the HOST_BITS_PER_WIDE_INT > 32 case.
23986 Tue Jul 20 12:37:30 1999 Hans-Peter Nilsson <hp@bitrange.com>
23988 * dwarf2out.c (output_abbrev_section): Terminate with a zero.
23990 Tue Jul 20 12:12:27 1999 Jason Merrill <jason@yorick.cygnus.com>
23992 * gcc.c (default_compilers, cpp-output): Pass -fpreprocessed.
23993 * toplev.c (documented_lang_options): Add -fpreprocessed.
23994 * cpplib.h (struct cpp_buffer): Add preprocessed.
23995 * cppinit.c (cpp_handle_option): Handle -fpreprocessed.
23996 (cpp_start_read): Don't expand macros or emit an initial #line
23997 directive if -fpreprocessed.
23999 Tue Jul 20 12:12:09 1999 Michael Tiemann <tiemann@holodeck.cygnus.com>
24001 * cpplib.h (struct cpp_buffer): Added manual_pop for
24002 better C++ tokenization.
24003 * cpplib.c (cpp_get_token): Return CPP_EOF if manual_pop.
24004 Also, support C++ tokenization for ->*, .*, <?, and >? operators.
24005 * c-common.c (cpp_token): Make non-static.
24007 Tue Jul 20 11:24:19 1999 Bernd Schmidt <bernds@cygnus.co.uk>
24009 * c-common.h: New file.
24010 * c-common.c (permanent_obstack): Delete unused declaration.
24011 (c_global_trees): New array.
24012 (c_common_nodes_and_builtins): New function; split off common code
24013 from init_decl_processing in both c-decl.c and cp/decl.c.
24014 * c-tree.h: Delete lots of declarations of tree nodes; replaced by
24015 c_global_trees and accessor macros defined in c-common.h.
24016 Include c-common.h.
24017 * c-decl.c: Delete definitions for tree nodes that were replaced by
24019 (init_decl_processing): Build void_list_node.
24020 Call c_common_nodes_and_builtins; delete code to generate the common
24022 * objc/objc-act.c (build_module_descriptor): Rename variable
24023 void_list_node to avoid clash with c-common.h.
24025 * Makefile.in: Update dependencies.
24026 * objc/Make-lang.in: Likewise.
24028 Mon Jul 19 14:22:18 1999 Mark P. Mitchell <mark@codesourcery.com>
24030 * config/mips/iris6gld.h (MAKE_DECL_ONE_ONLY): Define.
24031 (UNIQUE_SECTION_P): Likewise.
24032 (UNIQUE_SECTION): Likewise.
24034 1999-07-19 Linas Vepstas <linas@linas.org>
24036 * config/i370/README: New file.
24037 * config/i370/linux.h: New file.
24038 * config/i370/mvs.h: New file.
24039 * config/i370/oe.h: New file.
24040 * config/i370/t-linux: New file.
24041 * config/i370/t-mvs: New file.
24042 * config/i370/t-oe: New file.
24043 * config/i370/x-oe: New file.
24044 * config/i370/xm-linux.h: New file.
24045 * config/i370/xm-mvs.h: New file.
24046 * config/i370/xm-oe.h: New file.
24048 * i370.c (label_node_t): Add first_ref_page, label_addr,
24049 label_first_ref, label_last_ref members.
24050 (mvs_need_base_reload): Renamed from mvs_label_emitted.
24051 (MAX_MVS_LABEL_SIZE): Define.
24052 (MAX_LONG_LABEL_SIZE): Define.
24053 (alias_node_t, alias_anchor, alias_number): New.
24054 (mvs_function_table): Reorder for EBCDIC.
24055 (ascebc, ebcasc): Unconditionally define.
24056 (i370_branch_dest, i370_branch_length): New functions.
24057 (i370_short_branch, i370_label_scan): New functions.
24058 (mvs_get_label): Renamed from mvs_add_label. Search for
24059 an existing label before creating a new one.
24060 (mvs_add_label): New function.
24061 (mvs_get_label_page): New function.
24062 (mvs_free_label_list): Renamed from mvs_free_label. Iterate
24063 over the entire list.
24064 (mvs_check_page) [TARGET_HLASM]: Use BASR not BALR.
24065 (mvs_check_page) [TARGET_ELF_ABI]: New function.
24066 (mvs_add_alias, mvs_need_alias): New functions.
24067 (mvs_get_alias, mvs_check_alias): New functions.
24068 (handle_pragma): New function.
24069 (mvs_function_check): New function.
24070 (unsigned_jump_follows_p): Search harder.
24071 (i370_function_prolog) [TARGET_HLASM]: Handle LE370. Scan labels.
24072 (i370_function_prolog) [TARGET_ELF_ABI]: New function.
24073 * i370.h (TARGET_VERSION): Delete.
24074 (CPP_SPEC, CPP_PREDEFINES): Delete.
24075 (mvs_label_emitted): Delete.
24076 (TARGET_EBCDIC): Delete.
24077 (MAP_CHARACTER): Define only if TARGET_EBCDIC.
24078 (HANDLE_PRAGMA): Define.
24079 (HARD_REGNO_NREGS): Handle complex modes.
24080 (HARD_REGNO_MODE_OK): Likewise.
24081 (CLASS_MAX_NREGS): Likewise.
24082 (RET_REG): Likewise.
24083 (EXTRA_CONSTRAINT): Define.
24084 (RETURN_IN_MEMORY): True for DImode.
24085 (TRAMPOLINE_TEMPLATE): Use gen_rtx instead of GEN_INT.
24086 (FUNCTION_PROFILER): Delete.
24087 (COUNT_REGS): Fail if REG_P but not REG_OK_FOR_BASE_P.
24088 (NOTICE_UPDATE_CC): Correct handling of MULT, DIV, logicals and shifts.
24089 (TARGET_ESC, TARGET_BELL): Conditionally define for TARGET_EBCDIC.
24090 (TARGET_BS, TARGET_TAB, TARGET_NEWLINE): Likewise.
24091 (TARGET_VT, TARGET_FF, TARGET_CR): Likewise.
24092 (ASM_FILE_START): Add "RMODE ANY".
24093 (ASM_OUTPUT_EXTERNAL): Check for aliases.
24094 (ASM_GLOBALIZE_LABEL): Likewise.
24095 (ASM_OUTPUT_LABELREF): Likewise.
24096 (ASM_OUTPUT_COMMON): Likewise.
24097 (PRINT_OPERAND): Handle 'K', 'W', default.
24098 (PRINT_OPERAND_ADDRESS): New.
24099 (Lots of defines): Add support for TARGET_ELF_ABI.
24100 * i370.md (attr length): New. Define for all patterns.
24101 (*): Lots of tweeks to assembly output and constraints.
24103 Mon Jul 19 15:09:29 1999 David Edelsohn <edelsohn@gnu.org>
24105 * rs6000.md (arithmetic, logical, and shift Rc combiner patterns):
24106 Disable patterns performing SImode comparisons with SImode values
24107 if TARGET_POWERPC64 and instruction does not sign-extend or does
24108 not mask to narrower than SImode, i.e. where bit 31 and bit 63 may
24109 differ for signed quantities.
24110 (indirect_jump): Add expander to choose RTL based on TARGET_64BIT.
24111 (tablejump): Patterns contingent on TARGET_64BIT not TARGET_POWERPC64.
24112 (decrement_and_branch_on_count): Add 64-bit variant.
24114 Mon Jul 19 09:36:27 1999 Bernd Schmidt <bernds@cygnus.co.uk>
24116 * final.c (output_asm_insn): When searching for the matching string
24117 for a given dialect, don't run past the end of the list of
24118 alternatives if there are fewer alternatives in the template than
24121 1999-07-17 Alexandre Oliva <oliva@dcc.unicamp.br>
24123 * gcc.texi: Update e-mail addresses and URLs to gcc.gnu.org.
24124 Removed paragraph about compression of files and size limitation,
24125 duplicated in the FAQ. Use gcc-patches for posting patches.
24126 * gcc.c (main): Updated URL with bug reporting instructions to
24127 gcc.gnu.org. Removed e-mail address.
24128 * system.h (abort): Likewise.
24130 1999-07-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
24132 * Makefile.in (stmp-multilib-sub): Make the files extracted
24133 from $(LIBGCC1) writable.
24135 Sat Jul 17 14:25:46 1999 Nick Clifton <nickc@cygnus.com>
24137 * config/arm/aout.h: Reformat for improved readability.
24139 * config/arm/arm.h: Reformat for improved readability.
24140 Replace uses of fprintf with asm_fprintf where appropriate.
24141 (ARM_DECLARE_FUNCTION_NAME): New macro: Perform any generic ARM
24142 function declaration assembler actions.
24143 (NUM_INTS): New macro: Convert from bytes to words.
24144 (NUM_REGS): New macro: Compute number of registers required to
24145 hold a quanitity of tyep MODE.
24146 (NUM_REGS2): New macro: Like NUM_REGS but also copes with BLKmode
24148 (NUM_ARG_REGS): New macro: The number of argument registers
24150 (ARG_REGISTER): New macro: Compute the register number of the Nth
24152 (LAST_ARG_REGNUM): New macro: The number of the last argument
24154 (SP_REGNUM): New macro: Register number of the stack pointer.
24155 (FP_REGNUM): New macro: Register number of the frame pointer.
24156 (FUNCTION_ARG, FUNCTION_ARG_PARTIAL_NREGS, INIT_CUMULATIVE_AGS,
24157 FUNCTION_ARG_ADVANCE, SETUP_INCOMING_VARARGS): Change
24158 CUMULATIVE_ARGS so that it counts registers not bytes.
24160 * config/arm/arm.c: Rename TARGET_THUMB_INTERWORK to
24162 Replace uses of fprintf with asm_fprintf where appropriate.
24163 (output_ascii_pseudo_op): Replace with version from thumb.c
24165 * config/arm/coff.h (ASM_FILE_START): Emit ASM_APP_OFF.
24167 * config/arm/elf.h (CPP_PREDEFINES): Replace with
24168 SUBTARGET_CPP_SPEC.
24169 (ASM_DECLARE_FUNCTION_NAME): Use ARM_DECLARE_FUNCTION_NAME.
24170 (ASM_FILE_START): Emit ASM_APP_OFF.
24172 Fri Jul 16 13:48:09 1999 Jeffrey A Law (law@cygnus.com)
24174 * pa.c (compute_frame_size): Round frame according to
24175 STACK_BOUNDARY rather than a hardwired value.
24177 * pa.h (POINTER_SIZE, PARM_BOUNDARY): Define in terms of BITS_PER_WORD.
24179 * configure.in (hppa*-*-hpux11*): Use symbolic MASK_PA_11 instead
24181 * configure: Rebuilt.
24183 * configure.in (hppa*-*-linux*): New configuration.
24184 * configure: Rebuilt.
24185 * pa.h (MAX_OFILE_ALIGNMENT): Delete.
24186 * pa/som.h (MAX_OFILE_ALIGNMENT): Define.
24187 * pa/pa-linux.h: New file.
24188 * pa/t-linux: New file.
24189 * pa/xm-linux.h: New file.
24191 * pa.c (hppa_legitimize_address): Change references from SImode to
24192 either Pmode or word_mode as appropriate.
24193 (emit_move_sequence, store_reg, load_reg): Likewise.
24194 (set_reg_plus_d, hppa_expand_prologue): Likewise.
24195 (output_mul_insn): Likewise.
24196 * pa.h (PROMOTE_MODE): Likewise.
24197 (INITIALZE_TRAMPOLINE): Likewise.
24198 (Pmode): Define to word_mode.
24200 * pa.c (compute_frame_size): Use UNITS_PER_WORD instead of hardwired
24201 value of 4. Allocate 8 bytes for each FP register save.
24202 (hppa_expand_epilogue): Use UNITS_PER_WORD instead of harwarewired
24204 (hppa_expand_prologue): Likewise.
24205 * pa.h (PROMOTE_MODE): Likewise.
24206 (HARD_REGNO_MODE_OK, FUNCTION_ARG_SIZE): Likewise.
24207 (FUNCTION_ARG_BOUNDARY): Likewise.
24209 * invoke.texi (HPPA Options): Remove -mspace/-mno-space.
24211 * pa.c (out_of_line_prologue_epilogue): Delete.
24212 (override_options): Remove -mspace related code.
24213 (hppa_expand_prologue, hppa_expand_epilogue): Likewise.
24214 (compute_frame_size): Only allocate space for register that
24215 actually need to be saved.
24216 * pa.h (MASK_SPACE, TARGET_SPACE): Delete.
24217 (TARGET_SWITCHES): Remove -mspace, -mno-space
24218 * pa/t-pa (LIB2FUNCS_EXTRA): Remove ee.asm and ee_fp.asm
24219 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise. Remove -mspace multilib.
24220 * pa/ee.asm, pa/ee_fp.asm: Delete.
24222 * pa/elf.h (ASM_OUTPUT_DOUBLE_INT): Define.
24224 * config/svr4.h (CONST_SECTION_ASM_OP): Do not emit assembler
24225 directive in column zero.
24227 Fri Jul 16 01:39:57 1999 Jeffrey A Law (law@cygnus.com)
24229 * m68k.c (output_function_prologue): Fix computation of save mask
24230 when generating PIC code.
24232 Thu Jul 15 15:40:09 1999 Jim Wilson <wilson@cygnus.com>
24234 * tree.c (build_type_attribute_variant): Move current_obstack restore
24235 after build_qualified_type call.
24237 1999-07-15 Mark Mitchell <mark@codesourcery.com>
24239 * configure.in: Use t-iris6, even with GNU LD.
24240 * config/mips/iris6gld.h: Fix typo in linker spec.
24241 * config/mips/t-iris6gld: Remove.
24243 Thu Jul 15 15:15:43 1999 David Edelsohn <edelsohn@gnu.org>
24245 * rs6000.md (insv, extzv): Remove SImode dependence in named
24246 patterns. Explicitly generate DImode RTL if PowerPC64 and
24248 (insvdi): Reverse start and size in instruction template.
24250 1999-07-12 Joseph S. Myers <jsm28@cam.ac.uk>
24252 * invoke.texi: Typo fixes.
24254 Wed Jul 14 23:28:06 1999 Jeffrey A Law (law@cygnus.com)
24256 * emit-rtl.c (gen_realpart): Issue an error for cases GCC can not
24257 handle at this time instead of silently generating incorrect code.
24258 (gen_imagpart): Likewise.
24260 * reload.c (find_reloads): Emit a USE for a pseudo register without
24261 a hard register if we could not create an optional reload for the
24264 Wed Jul 14 23:45:48 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
24266 * c-typeck.c (output_init_element, process_init_element):
24267 When advancing constructor_unfilled_fields for a RECORD_TYPE,
24268 check for nameless bit fields.
24270 Wed Jul 14 01:57:39 1999 Richard Henderson <rth@cygnus.com>
24272 * regclass.c (scan_one_insn): Notice subregs that change the
24273 size of their operand.
24274 (record_reg_classes): Use that to obey CLASS_CANNOT_CHANGE_SIZE.
24276 Wed Jul 14 01:41:42 1999 Jeffrey A Law (law@cygnus.com)
24278 * configure.in (alpha*-*-*): Include alpha/t-ieee.
24279 * configure: Rebuilt.
24280 * alpha/t-ieee: New file.
24282 Tue Jul 13 10:45:58 1999 Jeffrey A Law (law@cygnus.com)
24284 * rs6000.c (find_addr_reg): Do not select r0 as an address
24287 Tue Jul 13 00:46:18 1999 Philippe De Muyter <phdm@macqel.be>
24289 * m68k/x-mot3300 (XCFLAGS): List of big files now includes `cse.o'.
24291 Mon Jul 12 14:29:15 1999 Jeffrey A Law (law@cygnus.com)
24293 * rs6000.md (movsf): Do not force easy FP constants into memory.
24295 * expr.c (expand_expr, case PLUS_EXPR): Pass constants through
24296 immed_double_const to ensure they are properly truncated then
24299 Mon Jul 12 10:40:01 1999 Vladimir Makarov <vmakarov@tofu.to.cygnus.com>
24301 * config/arm/thumb.c (thumb_reorg): Call replace_symbols_in_block
24302 always unless NO_DEBUG is used. Compile this code
24304 (replace_symbols_in_block): Compile it unconditionally.
24306 Sun Jul 11 12:32:32 1999 Jeffrey A Law (law@cygnus.com)
24308 * configure.in (i?86-*-elf*): New target.
24309 * configure: Rebuilt.
24310 * i386/i386elf.h, i386/t-i386elf: New files.
24312 Fri Jul 9 22:39:44 1999 Jason Merrill <jason@yorick.cygnus.com>
24314 * toplev.c (main): Don't complain about saying -gdwarf.
24315 (rest_of_compilation): Remove redundant code.
24317 Fri Jul 9 19:08:55 1999 Jim Wilson <wilson@cygnus.com>
24319 * unroll.c (unroll_loops): Don't delete named CODE_LABELs.
24321 Fri Jul 9 18:54:18 1999 Felix Lee <flee@cygnus.com>
24323 * config/i960/i960.c (ret_label): Change asm label from "LR:" to
24324 "Li960R:", to avoid name clash.
24326 Fri Jul 9 10:48:28 1999 Bernd Schmidt <bernds@cygnus.co.uk>
24328 * loop.c (check_dbra_loop): When reversing a loop, delete all
24329 REG_EQUAL notes referencing the reversed biv except those which are
24330 for a giv based on it.
24332 Fri Jul 9 03:51:52 1999 Jeffrey A Law (law@cygnus.com)
24334 * version.c: Drop "gcc-" prefix from version #.
24336 Thu Jul 8 18:06:30 1999 Jason Merrill <jason@yorick.cygnus.com>
24338 * dwarf2out.c (dwarf2out_line): Emit a line number comment after
24339 the label if we're being verbose.
24341 Thu Jul 8 14:18:46 1999 Richard Henderson <rth@cygnus.com>
24343 * m68k.c (output_function_prologue): Add pic register to mask
24344 if live and flag_pic.
24345 (output_function_epilogue): Likewise.
24347 Thu Jul 8 12:55:12 1999 Jeffrey A Law (law@cygnus.com)
24349 * dbxelf.h (ASM_OUTPUT_SOURCE_LINE): Do not put assembler
24350 directives in column zero.
24352 * pa/elf.h (ASM_FILE_START): Define.
24353 * pa/som.h (ASM_FILE_START): Include .level directives.
24354 * pa/hpux10.h (ASM_FILE_START): Delete.
24355 * pa/hpux11.h (ASM_FILE_START): Delete.
24357 * pa/elf.h (BSS_SECTION_ASM_OP): Use .section .bss.
24359 Thu Jul 8 18:03:19 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
24361 * reload1.c (choose_reload_regs): Never call remove_adress_replacements
24362 when reload_out equals reload_in.
24364 Thu Jul 8 16:50:14 1999 Nick Clifton <nickc@cygnus.com>
24366 * invoke.texi (Spec Files): New node: Describe the contents of
24369 Thu Jul 8 10:28:25 1999 Craig Burley <craig@jcb-sc.com>
24371 * invoke.texi (DEC Alpha Options): Put @end table at
24372 beginning of line, to avoid confusing texi2html.
24374 Thu Jul 8 09:22:06 1999 Nick Clifton <nickc@cygnus.com>
24376 * config/arm/elf.h (ASM_OUTPUT_INTERNAL_LABEL): Fixed typo
24377 introduced in previous delta.
24379 Wed Jul 7 02:00:04 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
24381 * reload1.c (gen_reload): When synthesizing a 3 operand add
24382 sequence, improve test for when to reload OP1 into the reload
24383 register instead of OP0.
24385 Wed Jul 7 01:38:03 1999 Jim Wilson <wilson@cygnus.com>
24387 * unroll.c (unroll_loop): Don't delete NOTE_INSN_DELETED_LABEL notes.
24389 1999-07-07 Manfred Hollstein <mhollstein@cygnus.com>
24391 * m88k/dguxbcs.h (CPP_SPEC): Add missing \ in multi-line
24394 Wed Jul 7 01:16:43 1999 Richard Henderson <rth@cygnus.com>
24396 * ginclude/varargs.h (__builtin_va_alist_t): New typedef.
24397 (va_dcl): Use __builtin_va_alist_t.
24399 Wed Jul 7 01:14:42 1999 Jason Merrill <jason@yorick.cygnus.com>
24401 * dwarf2out.c (gen_struct_or_union_type_die): Only remember types
24402 on the permanent_obstack.
24403 * dwarfout.c (output_type): Likewise.
24405 Tue Jul 6 15:25:32 1999 Gavin Romig-Koch <gavin@cygnus.com>
24407 * c-common.c (unsigned_type,signed_type,signed_or_unsigned_type) :
24408 Merged from c-typeck.c and cp/typeck.c.
24409 * c-typeck.c (unsigned_type,signed_type,signed_or_unsigned_type) :
24410 Merged into c-common.
24412 Tue Jul 6 13:06:01 1999 Dave Brolley <brolley@cygnus.com>
24414 * c-lex.c (errorcount): Declare it.
24415 (finish_parse): Update errorcount when using CPPLIB.
24417 1999-07-06 Bruce Korb <ddsinc09@ix.netcom.com>
24419 * fixinc/inclhack.def(end_else_label): Double the backslash so
24420 sed gets a chance to see it.
24421 * fixinc/inclhack.sh: regen
24422 * fixinc/fixincl.x: regen
24424 Fri Jul 2 18:49:51 1999 Nick Clifton <nickc@cygnus.com>
24426 Add framework to support armv5 architecture when it becomes
24429 * config/arm/arm.c (FL_ARCH5): New processor capability flag.
24430 (arm_arch5): New variable.
24431 (all_architectures): Add armv5 line.
24432 * config/arm/arm.h (CPP_CPU_ARCH_SPEC): Define __ARM_ARCH_5__ if
24433 -march=armv5 is specified on the command line.
24434 (arm_arch5): Export this variable.
24435 * invoke.texi: Document new string accepted by -march= switch for
24438 * config/arm/arm.h: Replace use of constant 12 as a register
24439 number with IP_REGNUM. Similarly 14 and LR_REGNUM.
24440 * config/arm/arm.c: Replace use of constant 12 as a register
24441 number with IP_REGNUM. Similarly 14 and LR_REGNUM.
24443 * config/arm/elf.h: Tidy up.
24444 * config/arm/coff.h: Tidy up.
24446 Thu Jul 1 19:08:13 1999 Mark P. Mitchell <mark@codesourcery.com>
24448 * gcc/configure.in (mips-sgi-irix6*): Handle --with-gnu-ld.
24449 * gcc/config/mips/t-iris6gld: New file.
24450 * gcc/config/mips/iris6gld.h: Likewise.
24452 Fri Jul 2 13:23:39 1999 Gavin Romig-Koch <gavin@cygnus.com>
24454 * c-decl.c (widest_integer_literal_type_node,
24455 widest_unsigned_literal_type) : New.
24456 (init_decl_processing): Handle/use the two new types.
24457 * c-common.c (type_for_size,type_for_mode) : Same.
24458 * c-lex.c (yylex) : Same.
24459 * c-typeck.c (unsigned_type,signed_type,signed_or_unsigned_type) :
24461 * c-tree.h (widest_integer_literal_type_node,
24462 widest_unsigned_literal_type) : New.
24464 Fri Jul 2 03:05:44 1999 Jeffrey A Law (law@cygnus.com)
24466 * dwarfout.c (field_byte_offset): Correctly compute the object's
24467 byte offset for the first bit of a field which crosses an alignment
24468 boundary on a !BYTES_BIG_ENDIAN target.
24470 Fri Jul 2 01:36:36 1999 Robert Lipe <robertlipe@usa.net>
24472 * fixinc.svr4: Fix <arpa/inet.h> by deleting protos for htons and
24475 Fri Jul 2 00:46:47 1999 Richard Henderson <rth@cygnus.com>
24476 Jeff Law <law@cygnus.com>
24478 * ginclude/varargs.h (va_dcl): Use word_mode for type of
24481 * except.c: Include intl.h.
24482 (expand_eh_return): Set current_function_cannot_inline.
24483 (save_eh_status, restore_eh_status): Twiddle eh_return_stub_label.
24484 * function.h (struct function): Add eh_return_stub_label.
24485 * flow.c (delete_unreachable_blocks): Don't merge across EH edges.
24486 * Makefile.in (except.o): Depend on intl.h.
24488 Fri Jul 2 00:04:23 1999 David Edelsohn <edelsohn@gnu.org>
24490 * rs6000.md (movdf_hardfloat32): Handle PRE_INC and PRE_DEC the
24491 same as offsettable in cases 1 and 2.
24493 Thu Jul 1 20:54:10 1999 Richard Henderson <rth@cygnus.com>
24495 * alpha.md (extqh): Define as 64-((R&7)*8) instead of 56-(((R-1)&7)*8).
24496 (extlh, extwh): Likewise.
24498 Thu Jul 1 11:05:25 1999 Gavin Romig-Koch <gavin@cygnus.com>
24500 * c-lex.c (yylex): Improve 'integer constant out of range' messages.
24502 Wed Jun 30 16:51:41 1999 Nick Clifton <nickc@cygnus.com>
24504 * configure.in: Add arm-pe and thumb-pe targets.
24505 * configure: Regenerate.
24507 * thumb.c (arm_naked_function_p): New function: Determines if
24508 a function is naked (has no gcc generated prologue/epilogue).
24509 (is_called_in_ARM_mode): Return true if the func has the
24510 interfacearm attribute.
24511 (output_return): Do not generate a return for naked functions.
24512 (thumb_function_prologue): Do not generate a prologue for
24514 (thumb_expand_prologue): Do not generate a prologue for naked
24516 (thumb_expand_epilogue): Do not generate an epilogue for naked
24518 (arm_valid_machine_decl_attribute): New function, copied from
24519 arm.c: Permit naked and interfacearm attributes.
24521 * config/arm/pe.c: New file: Support code for arm-pe target.
24522 * config/arm/pe.h: New file: Header file for arm-pe target.
24523 * config/arm/tpe.h: New file: Header file for thumb-pe target.
24524 * config/arm/t-thumb-pe: New file: Makefile fragment for
24527 1999-07-01 Mark Kettenis <kettenis@gnu.org>
24529 * config/i386/gnu.h (CPP_SPEC): Define __PIC__ and __pic__ if
24530 -fPIC or -fpic is specified.
24532 Wed Jun 30 03:31:54 1999 Jeffrey A Law (law@cygnus.com)
24534 * expr.c (emit_block_move): Use copy_to_mode_reg for
24535 !TARGET_MEM_FUNCTIONS case too.
24537 * configure.in (hppa*-*-*): Add som.h or elf.h to tm_file as
24539 * configure: Rebuilt.
24540 (hppa1.1-*-pro*, hppa1.1-*-rtems*): Define target_cpu_default.
24541 * pa.h: Include dbxelf.h. Delete various dbx/stabs related
24542 definitions made redundant by dbxelf.h inclusion. Delete
24543 lots of definitions related to assembly output that are
24544 specific to the SOM object format.
24545 * pa.c (output_function_prologue): Do not emit the function's
24547 * pa-pro-end.h (STARTFILE_SPEC): Undefine before redefining.
24548 * pa-pro.h: Deleted.
24549 * som.h: New file with SOM specific definitions.
24550 * elf.h: New file with ELF specific definitions.
24552 * elfos.h (const_section): Output a tab before assembler directives.
24553 (ctors_section, dtors_section): Likewise.
24554 (ASM_OUTPUT_SECTION_NAME): Likewise.
24556 * pa/pa1.h: Delete unused file.
24558 Tue Jun 29 01:37:53 1999 Jeffrey A Law (law@cygnus.com)
24560 * configure.in (hppa*-hp-hpux11*): New configuration.
24561 * configure: Rebuilt.
24562 * pa/pa-hpux11.h: New file.
24563 * pa.h (CPP_SPEC): Conditionally add -D__STDC_EXT__ to the cpp
24566 * mips.md (leasi, leadi): New patterns.
24568 * expr.c (emit_block_move): Properly handle case where one of the
24569 block move arguments has a queued increment or decrement.
24570 (clear_storage): Similarly. Fix formatting goof.
24572 1999-06-28 "David O'Brien" <obrien@NUXI.com>
24574 * fixinc/inclhack.def(stdio_va_list): This patch Removes a
24575 semicolon from the BSD VA_LIST replacement expression.
24577 * fixinc/inclhack.sh: regen
24578 * fixinc/fixincl.x: regen
24580 * fixinc/mkfixinc.sh: Have `i[34567]86-*-freebsd*' machines
24581 now use the fixincl program.
24583 Mon Jun 28 05:28:12 1999 Jeffrey A Law (law@cygnus.com)
24585 * m68k.h (CONDITIONAL_REGISTER_USAGE): Define for !SUN_FPA
24586 case. Also make the PIC register call_used.
24588 * m68k.h (FINALIZE_PIC): Delete.
24589 * m68k.c (finalize_pic): Delete.
24591 Mon Jun 28 05:16:35 1999 Richard Henderson <rth@cygnus.com>
24593 * m68k.h (PREFERRED_RELOAD_CLASS): Don't force any FP const_doubles
24596 Mon Jun 28 04:07:27 1999 David Edelsohn <edelsohn@gnu.org>
24598 * expmed.c (expand_divmod): Ensure unsigned value fits in reg_note.
24600 Sun Jun 27 02:39:08 1999 Richard Henderson <rth@cygnus.com>
24602 * jump.c (jump_optimize_1): Validate the cmov copy to a temporary.
24604 Sat Jun 26 17:18:18 1999 David Edelsohn <edelsohn@gnu.org>
24606 * rs6000.c (print_operand, case 'L'): Use plus_constant_for_output.
24608 Fri Jun 25 11:33:24 1999 Richard Henderson <rth@cygnus.com>
24610 * alpha.c (override_options): Add -mcpu=ev45 as an alias for ev4.
24612 Fri Jun 25 13:41:25 1999 David Edelsohn <edelsohn@gnu.org>
24614 * rs6000.c (output_toc): Always use hex values for floating-point
24615 constants. Store single-precision values in upper-half of TOC
24616 entry in 64-bit mode.
24617 * rs6000.md (floatsidf2, floatunssidf2): Add !TARGET_POWERPC64
24618 to final constraints.
24619 (fix_truncdfsi2 splitter): Change pattern matching fctiwz.
24620 (fctiwz): Improve accuracy of RTL for pattern.
24622 Fri Jun 25 11:26:38 1999 Gavin Romig-Koch <gavin@cygnus.com>
24624 * expr.c (expand_expr): Allow RTL_EXPR's through the
24625 MAX_INTEGER_COMPUTATION_MODE checks.
24627 Fri Jun 25 06:06:37 1999 Richard Henderson <rth@cygnus.com>
24629 * alpha.h (MASK_SUPPORT_ARCH, MASK_CPU_EV5, MASK_CPU_EV6): Define
24630 such that MASK_SUPPORT_ARCH is not negative.
24632 Fri Jun 25 05:35:44 1999 Jeffrey A Law (law@cygnus.com)
24634 * loop.c (verify_dominator): Properly handle ADDR_VEC and
24635 ADDR_DIFF_VEC insns that appear inside loops.
24637 Thu Jun 24 22:54:05 1999 David Edelsohn <edelsohn@gnu.org>
24638 Jeff Law <law@cygnus.com>
24640 * rs6000.md (movdf_hardfloat32): Revert previous patch.
24641 Handle LO_SUM the same as offsettable in cases 1 and 2.
24642 * rs6000.c (find_addr_reg): Revert previous patch.
24644 Thu Jun 24 22:43:12 1999 Philippe De Muyter <phdm@macqel.be>
24646 * system.h (strstr): New external function declaration.
24647 * acconfig.h (NEED_DECLARATION_STRSTR): New define slot.
24648 * configure.in (GCC_NEED_DECLARATIONS): Check for strstr.
24649 * config.in, configure: Rebuilt.
24651 1999-06-24 Tom Tromey <tromey@cygnus.com>
24653 * gcc.c (main): Read user-specified specs files after computing
24654 additional startfile_prefixes.
24656 Thu Jun 24 15:00:47 1999 Mark Mitchell <mark@codesourcery.com>
24658 Revert these two patches:
24660 Thu Jun 17 21:34:24 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
24661 * loop.c (strength_reduce): When doing biv->giv conversion, update
24662 reg note of NEXT->insn.
24664 Thu Jun 17 17:22:07 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
24665 * loop.c (strength_reduce): When doing biv->giv conversion, fix up
24667 (recombine_givs): Set ix field after sorting.
24669 Wed Jun 23 21:26:00 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
24671 * rtlanal.c (reg_referenced_p): Use reg_overlap_mentioned_p
24672 for the parts of an UNSPEC / UNSPEC_VOLATILE.
24674 1999-06-23 Bruce Korb <ddsinc09@ix.netcom.com>
24676 *fixinc/inclhack.def: Add fix development commentary
24677 (read_ret_type): reactivate and add selection clause
24678 (zzz_*): tweak output file name to match what is used in hackshell.tpl
24679 *fixinc/{fixincl.x|inclhack.sh}: regen
24681 Wed Jun 23 00:48:21 1999 Jason Merrill <jason@yorick.cygnus.com>
24683 * expr.c (expand_expr): STRIP_NOPS before checking against
24684 MAX_INTEGER_COMPUTATION_MODE
24685 (check_max_integer_computation_mode): Likewise.
24687 Tue Jun 22 20:23:43 1999 Jim Wilson <wilson@cygnus.com>
24689 * md.texi (smul@var{m}3_highpart): Add missing 's' prefix.
24691 1999-06-22 Jim Wilson <wilson@cygnus.com>
24693 * expr.c (store_expr): When target is a promoted subreg, return a
24694 promoted subreg as a result.
24696 Tue Jun 22 17:14:58 1999 Michael Meissner <meissner@cygnus.com>
24698 * dwarf2out.c (dwarf2out_frame_debug_expr): Reformat to match GNU
24700 (dwarf2out_define): Mark unused parameters appropriately.
24701 (gen_unspecified_parameters_die): Ditto.
24702 (gen_subprogram_die): Fix signed/unsigned warnings.
24703 (gen_variable_die): Ditto.
24705 1999-06-22 Bruce Korb <ddsinc09@ix.netcom.com>
24707 * fixinc/inclhack.def(end_else_label): combined else_label
24708 and endif_label and fixed the sed expression.
24709 *fixinc/{fixincl.x|inclhack.sh}: regen
24711 Tue Jun 22 01:58:18 1999 Jeffrey A Law (law@cygnus.com)
24713 * rs6000.md (movdf_hardfloat32): Use %X instead of always emitting
24714 'x' when handling non-offsettable addresses
24716 Tue Jun 22 00:20:05 1999 Richard Earnshaw (rearnsha@arm.com)
24718 * final.c (shorten_branches): Don't try to split an insn that has
24721 Mon Jun 21 12:47:39 1999 Mark Mitchell <mark@codesourcery.com>
24723 * config/mips/mips.c (symbolic_expression_p): New function.
24724 (mips_select_rtx_section): Put symbolic expressions in the
24725 data section, not the read-only data section.
24727 Mon Jun 21 22:13:06 1999 Jeffrey A Law (law@cygnus.com)
24729 * rs6000.md (find_addr_reg): Handle LO_SUM addresses.
24731 Mon Jun 21 20:10:42 1999 Richard Henderson <rth@cygnus.com>
24733 * collect2.c (main): Log frame table count.
24734 (GCC_OK_SYMBOL) [ECOFF]: Accept stGlobal.
24735 (scan_prog_file) [COFF]: Handle frame tables.
24737 * alpha/alpha.h (UNALIGNED_SHORT_ASM_OP): Define.
24738 (UNALIGNED_INT_ASM_OP, UNALIGNED_DOUBLE_INT_ASM_OP): Define.
24739 * alpha/elf.h: Undef them again.
24740 * alpha/vms.h: Remove their definitions.
24742 Tue Jun 22 03:17:53 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
24744 * sh.c (machine_dependent_reorg): When fixing up fp pcloads,
24745 remove the clobber of r0 and change the REG_UNUSED note to
24748 1999-06-21 Jakub Jelinek <jj@ultra.linux.cz>
24750 * real.c (ereal_from_double): Fix for 64-bit big endian hosts.
24751 * emit-rtl.c (gen_lowpart_common): Add case for hosts where double
24752 fits in HOST_WIDE_INT and one uses union to access a long constant
24755 Mon Jun 21 17:18:25 1999 Richard Henderson <rth@cygnus.com>
24757 * sparc.c (sparc_override_options): Don't allow profiling for
24758 code models other than medlow.
24759 (sparc_function_profiler): New function from old FUNCTION_PROFILER
24760 macro. Use ASM_GENERATE_INTERNAL_LABEL and MCOUNT_FUNCTION.
24761 (sparc_function_block_profiler): Likewise. Use user_label_prefix.
24762 (sparc_block_profiler): Likewise.
24763 (sparc_function_block_profiler_exit): Likewise.
24764 * sparc.h (FUNCTION_PROFILER): Call new sparc.c function.
24765 (FUNCTION_BLOCK_PROFILER): Likewise.
24766 (BLOCK_PROFILER): Likewise.
24767 (FUNCTION_BLOCK_PROFILER_EXIT): Likewise.
24768 (MCOUNT_FUNCTION): New.
24769 * sparc/pbd.h (FUNCTION_PROFILER): Delete.
24770 (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Delete.
24771 * sparc/sun4o3.h (FUNCTION_PROFILER): Delete.
24772 (MCOUNT_FUNCTION): New.
24773 * sparc/sysv4.h (FUNCTION_BLOCK_PROFILER): Delete.
24774 (BLOCK_PROFILER): Delete.
24775 (MCOUNT_FUNCTION): New.
24777 Mon Jun 21 14:11:29 1999 David Edelsohn <edelsohn@gnu.org>
24779 * rs6000.md (movdf_hardfloat32): Fix typo in case 2.
24781 Mon Jun 21 12:27:17 1999 Vladimir Makarov <vmakarov@tofu.to.cygnus.com>
24783 * config/mips/elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
24786 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
24789 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
24792 * config/arm/telf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
24795 Mon Jun 21 14:58:42 1999 Nick Clifton <nickc@cygnus.com>
24797 * config/arm/arm.h: Add cpp support for ARM920 and ARM920T cpu
24800 Mon Jun 21 06:22:21 1999 Mark Elbrecht <snowball3@bigfoot.com>
24802 * i386/djgpp.h (LIB_SPEC): New.
24803 (STARTFILE_SPEC): New.
24805 * i386/xm-djgpp.h (NO_SYS_SIGLIST): Deleted. Now obsolete.
24807 Mon Jun 21 06:19:33 1999 Philippe De Muyter <phdm@macqel.be>
24809 * fixinc/Makefile.in (gnu-regex.o): Do not define STDC_HEADERS in
24812 * system.h (WSTOPSIG): New macro.
24814 Mon Jun 21 05:33:15 1999 Mumit Khan <khan@xraylith.wisc.edu>
24816 * c-pragma.c (push_alignment): Don't ignore alignments greater than
24818 (insert_pack_attributes): Take into account member natural
24821 * i386/winnt.c (exports_head): New static variable.
24822 (i386_pe_record_exported_symbol): New function.
24823 (i386_pe_asm_file_end): Use.
24824 * i386/cygwin.h (ASM_OUTPUT_COMMON): Record the exported
24825 symbols to be emitted at end of assembly.
24826 (ASM_DECLARE_OBJECT_NAME): Likewise.
24827 (ASM_DECLARE_FUNCTION_NAME): Likewise.
24829 * i386/uwin.h (CPP_SPEC): Use -idirafter instead -iprefix and
24832 Mon Jun 21 04:44:31 1999 Jeffrey A Law (law@cygnus.com)
24834 * sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Fix paren error introduced
24837 Sun Jun 20 17:27:20 1999 Richard Henderson <rth@cygnus.com>
24839 * haifa-sched.c (sched_analyze_1): Use free_list instead of
24840 zapping reg_last_uses directly.
24841 (sched_analyze_2, sched_analyze_insn): Likewise.
24842 (sched_analyze): Likewise. Don't clear reg_last_uses on calls.
24844 Sun Jun 20 16:57:29 1999 David Edelsohn <edelsohn@gnu.org>
24846 * rs6000.md (movdf_hardfloat32): Use worst case insn length
24847 attributes for cases 1 and 2.
24849 Sat Jun 19 22:52:55 1999 Richard Henderson <rth@cygnus.com>
24851 * haifa-sched.c (sched_analyze): Mark call-user regs as clobbered
24854 Sat Jun 19 05:40:07 1999 Philip Blundell <pb@nexus.co.uk>
24856 * arm.c (arm_reload_in_hi): Invert sense of test on BYTES_BIG_ENDIAN.
24858 Sat Jun 19 05:25:05 1999 Richard Earnshaw (rearnsha@arm.com)
24860 * arm.h (CONDITIONAL_REGISTER_USAGE): If flag_pic, never use
24861 PIC_OFFSET_TABLE_REGNUM for general alloaction.
24862 (INITIAL_ELIMINATION_OFFSET): Count the fact that the PIC register
24863 must be stacked if it is used for PIC accesses.
24864 * arm.c (use_return_insn): Handle PIC register specially.
24865 (output_return_instruction): Likewise.
24866 (output_func_{prologue,epilogue}): Likewise.
24867 (output_expand_prologue): Likewise.
24869 * arm.md (*adddf_esfdf_df): Renamed from *adddf_df_esfdf.
24870 (*strsi_predec): Renamed from *strqi_predec.
24871 (*loadsi_shiftpreinc): Renamed from *loadqi_shiftpreinc.
24872 (*loadsi_shiftpredec): Renamed from *loadqi_shiftpredec.
24874 * arm.c (arm_override_options): Remove warning about PIC code
24875 not being supported.
24877 Fri Jun 18 23:47:06 1999 David Edelsohn <edelsohn@gnu.org>
24879 * rs6000.c (find_addr_reg): New function.
24880 * rs6000.h (find_addr_reg): Declare.
24881 (offsettable_addr_operand): Delete.
24882 * rs6000.md (movdf_hardfloat32): Handle non-offsettable loads
24883 from and stores to GPRs.
24885 Fri Jun 18 15:44:18 1999 Richard Henderson <rth@cygnus.com>
24887 * alpha.c (alpha_expand_block_move): Use get_insns rather than
24888 gen_sequence as argument to emit_no_conflict_block.
24890 Fri Jun 18 07:02 1999 Bruce Korb <ddsinc09@ix.netcom.com>
24892 * fixinc/mkfixinc.sh: enable the fixincl program for DG/UX
24893 * fixinc/inclhack.def(dgux_int_varargs): script must end with \n
24894 *fixinc/fixincl.x: regen
24895 *fixinc/inclhack.sh: regen
24897 Thu Jun 17 15:06:10 PDT 1999 Don Lindsay <dlindsay@cygnus.com>
24899 * added support for -mpcrel (PC relative addressing for m68k)
24900 based on code done by Michael Tiemann <tiemann@axon.cygnus.com>.
24901 * invoke.texi (m68000 options): Add documentation for -mpcrel flag.
24902 * m68k.c (print_operand_address): Handle 32-bit PIC case.
24903 (comments for general_src_operand): Add some explanation
24904 about EXTRA_CONSTRAINTS.
24905 (OVERRIDE_OPTIONS): Enable -fPIC in combination with -mpcrel.
24906 * m68kelf.h (OVERRIDE_OPTIONS): Ditto.
24907 (LEGITIMATE_PIC_OPERAND_P): Fix typo.
24908 (LEGITIMATE_PIC_OPERAND_P): Re-derive from m68k.h case.
24909 * m68k.h (LEGITIMATE_PIC_OPERAND_P): Fix delete-o.
24910 (INDIRECTABLE_1_ADDRESS): Delete spurious '/' at end of macro.
24911 (OVERRIDE_OPTIONS): Change behavior so that -mpcrel implies -fpic
24912 if not already set.
24913 (OVERRIDE_OPTIONS): Merge in changes from m68k.h.
24914 * m68k.h (TARGET_PCREL): New target flag.
24915 (TARGET_SWITCHES): Add "pcrel" as a recognized switch.
24916 (OVERRIDE_OPTIONS): Add checks for -mpcrel.
24917 (LEGITIMATE_PIC_OPERAND_P): Don't normally accept anything that
24918 contains a SYMBOL_REF. Relax this constraint during reload, since
24919 we want to use the predicates, not reload's built-in concept of a
24920 valid memory address, to control what insns need reloading.
24921 (EXTRA_CONSTRAINT): Define constraints to accept pc-relative
24922 operands (essentially 'g', 'm', and 's' under normal circumstances).
24923 * m68k.c (print_operand): Cause printing of pc-relative addresses
24924 to include pc register.
24925 (print_operand_address): Ditto.
24926 (general_src_operand): Accept operands that are not only
24927 general_operands, but are also valid when used as a pc-relative
24929 (nonimmediate_src_operand): Similar, for nonimmediate_operands.
24930 (memory_src_operand): Similar, for memory_operands.
24931 (pcrel_address): New predicate to accept the special case of a
24932 pc-relative address.
24933 * m68k.md (many patterns): Rewrite common SImode, HImode, and
24934 QImode insns to accept *_src_operand instead of *_operand where
24935 pc-relative operands can fit. For example, a pc-relative operand
24936 can be used as a memory source operand for addsi3, but not as a
24937 memory destination.
24938 * hp320.h linux.h m68kv4.h (LEGITIMATE_PIC_OPERAND_P) as in m68k.h.
24940 Fri Jun 18 09:11:07 1999 Nick Clifton <nickc@cygnus.com>
24942 * config/arm/telf.h (ASM_OUTPUT_DEF_FROM_DECLS): New Marco: USe
24943 .thumb_set pseudo op to mark aliases of thumb functions.
24945 Wed Jun 16 18:19:13 1999 Nick Clifton <nickc@cygnus.com>
24947 * varasm.c (assemble_alias): Use ASM_OUTPUT_DEF_FROM_DECLS in
24948 preference to ASM_OUTPUT_DEF, if it is defined.
24950 * tm.texi: Document new, optional target macro
24951 ASM_OUTPUT_DEF_FROM_DECLS.
24953 Thu Jun 17 15:07 1999 Bruce Korb <ddsinc09@ix.netcom.com>
24955 * fixincludes: ISCNTL patch
24956 * fixinc/inclhack.def (ioctl_fix_ctrl): Fix the definition of [_]*ISCTRL().
24957 (dgux_int_varargs): new for DG/UX
24958 * fixinc/{fixincl.x,inclhack.sh}: Regenerated.
24960 Thu Jun 17 21:34:24 1999 Jeff Law <law@cygnus.com>
24962 * invoke.texi (ia32 options): Fix typo.
24964 Thu Jun 17 21:34:24 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
24966 * loop.c (strength_reduce): When doing biv->giv conversion, update
24967 reg note of NEXT->insn.
24969 Thu Jun 17 14:25:08 1999 Jeffrey A Law (law@cygnus.com)
24971 * loop.c (move_movables): Note issues with replacing REGs with
24973 * mips.h (GO_IF_LEGITIMATE_ADDRESS): Handle SUBREGs properly.
24975 Thu Jun 17 13:28:30 1999 David O'Brien <obrien@FreeBSD.org>
24977 * i386/freebsd-elf.h (LINK_SPEC): Fix typo.
24979 * i386/freebsd-elf.h (FUNCTION_PROFILER): labels are not needed and
24980 the reference to `mcount' was not correct for the ELF on FreeBSD.
24982 Thu Jun 17 17:22:07 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
24984 * loop.c (strength_reduce): When doing biv->giv conversion, fix up
24987 (recombine_givs): Set ix field after sorting.
24989 Thu Jun 17 02:54:30 1999 Jeffrey A Law (law@cygnus.com)
24991 * emit-rtl.c (operand_subword): Tighten checks for when it is safe
24992 to safe to extract a subword out of a REG.
24994 Thu Jun 17 01:45:24 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
24996 * sh.md (mulsi3): Don't add a no-op move at the end.
24998 Wed Jun 16 20:29:00 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
25000 * cse.c (cse_insn): Don't put hard register source into tables for
25001 the last insn of a libcall.
25003 Wed Jun 16 19:44:33 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
25005 * loop.c (strength_reduce): Insert sets of derived givs at every
25006 biv increment, even if it's the only one.
25008 Wed Jun 16 10:33:02 1999 Jason Merrill <jason@yorick.cygnus.com>
25010 * dwarfout.c (add_incomplete_type): New fn.
25011 (output_type): Call it.
25012 (retry_incomplete_types): New fn.
25013 (dwarfout_finish): Call it.
25015 From Eric Raskin <ehr@listworks.com>:
25016 (output_type): Output types for bases.
25018 Tue Jun 15 12:51:23 1999 Alexandre Oliva <oliva@dcc.unicamp.br>
25020 * mips.c (mips_output_conditional_branch): Add `break'
25021 between `default' label and `close braces'.
25023 Tue Jun 15 01:55:20 1999 David O'Brien <obrien@FreeBSD.org>
25025 * i386/freebsd-elf.h (LINK_SPEC): clean up the linking library
25026 specifications and make it realistic.
25027 (LIB_SPEC): Likewise.
25029 Mon Jun 14 15:38:43 1999 Jim Wilson <wilson@cygnus.com>
25031 * config/mips/mips.c (mips_secondary_reload_class): Check for
25032 (PLUS (SP) (REG)) and return appropriate register class.
25033 * config/mips/mips.md (reload_insi): Delete predicate for operand 1.
25034 Handle (PLUS (SP) (REG)).
25035 (tablejump): In mips16 code, use emit_insn instead of emit_jump_insn.
25036 (tablejump_mips161, tablejump_mips162): Use emit_jump_insn instead
25037 of emit_insn for tablejump.
25039 Mon Jun 14 17:26:40 1999 David Edelsohn <edelsohn@gnu.org>
25041 * rs6000.c (output_prolog): RS6000_CALL_GLUE must be
25042 asm_fprintf format string by itself.
25043 (output_function_profiler): Likewise.
25045 Mon Jun 14 12:57:38 1999 David Mosberger <davidm@hpl.hp.com>
25047 * combine.c (simplify_logical, case AND): Only call
25048 simplify_and_const_int if the mode is no wider than HOST_WIDE_INT
25049 or the constant is positive.
25051 Mon Jun 14 11:43:41 1999 Nick Clifton <nickc@cygnus.com>
25053 * configure.in: Fix typo in rs6000-ibm-aix4 case.
25054 * configure: Regenerate.
25056 Mon Jun 14 03:55:40 1999 Jeffrey A Law (law@cygnus.com)
25058 * configure.in (rs6000-ibm-aix4.3*, powerpc-ibm-aix4.3*): Do not
25059 require a sub-version #.
25060 * configure: Rebuilt.
25062 1999-06-14 Robert Lipe (robertlipe@usa.net)
25064 * svr4.h (DWARF2_DEBUGGING_INFO): Check for redefinition.
25066 Mon Jun 14 10:30:52 BST 1999 Nathan Sidwell <nathan@acm.org>
25068 * c-typeck.c (process_init_element): Detect excess elements in
25069 char array initializer.
25071 1999-06-14 Andreas Jaeger <aj@arthur.rhein-neckar.de>
25073 * gcc.texi: Mention gcc 2.96 instead of egcs 1.00.
25075 Sat Jun 12 22:29:48 EDT 1999 Jerry Quinn <jquinn@nortelnetworks.com>
25077 * invoke.texi (Option Summary): Add -fpermissive flag.
25079 Sat Jun 12 03:40:42 1999 Jeffrey A Law (law@cygnus.com)
25081 * sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Do nothing with operands
25082 that require PIC code sequences.
25084 Wed Jun 9 16:29:01 1999 Nick Clifton <nickc@cygnus.com>
25086 * configure.in: Add new target: thumb-elf.
25087 * configure: Regenerate.
25088 * config/arm/t-thumb-elf: New file: Makefile fragment for
25090 * config/arm/telf.h: New file: Header file for thumb-elf
25093 Fri Jun 11 03:17:51 1999 Jeffrey A Law (law@cygnus.com)
25095 * Makefile.in (libgcc2): Pass MAYBE_USE_COLLECT2 as an argument.
25096 * libgcc2.c (__CTOR_LIST, __DTOR_LIST); Do not provide
25097 initializers is some circumstances.
25099 * fixinc/inclhack.def (endif_label): Add additional selector for
25100 more bogus stuff after #endif statements.
25101 * fixinc/inclhack.sh, fixinc/fixincl.x: Rebuilt.
25103 Thu Jun 10 20:44:36 1999 Mumit Khan <khan@xraylith.wisc.edu>
25105 * i386/cygwin.h (SET_ASM_OP): Define.
25107 Thu Jun 10 20:37:57 1999 Mumit Khan <khan@xraylith.wisc.edu>
25109 * reg-stack.c (stack_reg_life_analysis): Find all the RETURN insns.
25111 Thu Jun 10 19:23:00 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
25113 * sh.h (TARGET_HARWARD, TARGET_HARVARD): Changed the former to the
25116 * sh.md (ic_invalidate_line_i): Remove second alternative.
25118 Thu Jun 10 06:55 1999 Bruce Korb <ddsinc09@ix.netcom.com>
25120 *fixinc/inclhack.def(sun_auth_proto): We do not know how to
25121 test for the presence of valid prototypes. Delete bypass expr.
25122 (ioctl_fix_ctrl): Correct the selection expression.
25123 (no_double_slash): Correct quoting rules
25124 *fixinc/fixincl.x: regen
25125 *fixinc/inclhack.sh: regen
25127 Thu Jun 10 15:08:15 1999 Nick Clifton <nickc@cygnus.com>
25129 * config/arm/arm.c (struct all_cores): Add ARM920 and ARM920t.
25131 Wed Jun 9 15:57:57 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
25133 * rs6000.md (movsi_got_internal_mem): Delete.
25134 * rs6000.h (CONDITIONAL_REGISTER_USAGE): Mark PIC_OFFSET_TABLE_REGNUM.
25135 (GOT_TOC_REGNUM): Delete.
25136 (PIC_OFFSET_TABLE_REGNUM): Define.
25137 (FINALIZE_PIC): Disable.
25138 * rs6000.c (rs6000_got_register): New code for fixed pic register.
25139 (rs6000_replace_regno): Delete.
25140 (rs6000_finalize_pic): Likewise.
25141 (output_prolog): Handle PIC_OFFSET_TABLE_REGNUM.
25143 Wed Jun 9 19:44:26 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
25145 * loop.c (loop_insn_first_p): Don't compare LUIDs when P
25146 is a note; use <= for the compare; advance P while it is
25149 Wed Jun 9 13:12:24 1999 Jeffrey A Law (law@cygnus.com)
25151 * fixinc/inclhack.def (no_double_slash): Fix quoting for test.
25152 * fixinc/inclhack.sh, fixinc/fixincl.x, fixinc/fixincl.sh; Rebuilt.
25154 * varasm.c (remove_from_pending_weak_list): Verify t->name
25155 is non-NULL before passing it to strcmp.
25157 Wed Jun 9 06:50 1999 Bruce Korb <ddsinc09@ix.netcom.com>
25159 *fixinc/inclhack.def(sun_auth_proto): bypass the patch if
25160 the typed arguments are not part of a comment
25161 (ioctl_fix_ctrl): Added a purpose comment
25162 *fixinc/fixincl.x: regenerate
25163 *fixinc/inclhack.sh: regenerate
25165 Wed Jun 9 22:57:02 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
25167 * invoke.texi: Add C4x invocation docs.
25169 Wed Jun 9 22:34:38 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
25171 * config/c4x/c4x.h (TARGET_EXPOSE_LDP, LEGITIMIZE_RELOAD_ADDRESS):
25173 * config/c4x/c4x.c (c4x_emit_move_sequence, src_operand): Use
25175 (c4x_legitimize_reload_address): New function.
25176 * config/c4x/c4x.md: Update docs.
25178 Wed Jun 9 04:14:48 1999 Jeffrey A Law (law@cygnus.com)
25180 * fixincludes: Avoid removing '.'.
25181 * fixinc/fixinc.svr4: Likewise.
25182 * fixinc/fixinc.winnt: Likewise.
25183 * fixinc/inclhack.tpl: Likewise.
25184 * fixinc/fixincl.sh, fixinc/inclhack.sh: Rebuilt.
25186 1999-06-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
25188 * fixinc/inclhack.def (sun_catmacro): Escape parens in the select
25190 * fixinc/fixincl.x, fixinc/inclhack.sh: Rebuilt.
25192 Wed Jun 9 03:10:34 1999 Mumit Khan <khan@xraylith.wisc.edu>
25194 * c-pragma.c (handle_pragma_token): Handle `#pragma pack()'
25197 Tue Jun 8 13:06:15 1999 Jim Wilson <wilson@cygnus.com>
25199 * configure.in (rs6000-ibm-aix4.[12]*): Change rx6000 to rs6000.
25200 * configure: Regenerate.
25202 Tue Jun 8 05:47:48 1999 Richard Earnshaw (rearnsha@arm.com)
25204 * optabs.c (expand_cmplxdiv_wide): Use expand_abs to get the absolute
25207 Mon Jun 7 22:30:37 1999 Jeffrey A Law (law@cygnus.com)
25209 * fixinc/inclhack.def (avoid_bool): Also catch
25210 "typedef [unsigned] int bool".
25211 * fixinc/inclhack.sh, fixinc/fixincl.x, fixinc/fixincl.sh: Rebuilt.
25213 * m68k/x-hp3bsd44: Delete obsolete and incorrect file.
25214 * configure.in (m68k-hp-bsd4.4): No longer use x-hp3bsd44.
25215 * configure: Rebuilt.
25217 Mon Jun 7 22:05:03 1999 Mark Kettenis <kettenis@gnu.org>
25219 * config/i386/gnu.h: Include <gnu.h> right after <i386/linux.h>,
25220 such that we can override its definitions if necessary.
25221 (CPP_SPEC): New define. Support processor specific predefines via
25223 (CC1_SPEC): New define. Support processor specific compiler
25224 options via %(cc1_cpu).
25225 (STARTFILE_SPEC): New define. Use crt0.o instead of crt1.o for
25228 1999-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
25230 * fixinc/inclhack.def (math_gcc_ifndefs): Insert whitespace
25231 between sed's -e flag, and the open-quote following it.
25232 * fixinc/fixincl.x, fixinc/fixincl.sh: Rebuilt.
25234 Mon Jun 7 20:34:20 1999 Robert Lipe <robertlipe@usa.net>
25235 Jeffrey A Law (law@cygnus.com)
25237 * varasm.c (assemble_start_function): Remove the function
25238 from the pending weak decls list when we define a function.
25239 (assemble_variable): Similarly for variables.
25240 (weak_finish): Ignore items on the list with a NULL name.
25241 (remove_from_ending_weak_list); New function to "remove" an item
25242 from the pending weak declarations list.
25244 Mon Jun 7 19:27:07 1999 Jerry Quinn <jquinn@nortelnetworks.com>
25246 * pa.md (fmpyfadd, fmpynfadd, fnegabs): New patterns.
25248 Mon Jun 7 14:07:39 1999 Dave Brolley <brolley@cygnus.com>
25250 * c-lex.c (GETC): Redefine to call getch.
25251 (UNGETC): Redefine to call put_back.
25252 (putback_buffer): New structure type.
25253 (putback): New static structure.
25254 (getch): New function.
25255 (put_back): New function.
25256 (yylex): Replace unused bytes from bad multibyte character.
25258 Mon Jun 7 13:33:39 1999 Dave Brolley <brolley@cygnus.com>
25260 * cpplib.c (do_define): Cast `alloca' return value.
25261 (do_include, do_undef, do_pragma): Likewise.
25262 * cpphash.c (dump_definition): Cast `xstrdup' and `alloca' return
25264 * cppfiles.c (initialize_input_buffer): Cast `xmalloc' return values.
25265 * gcc/cppspec.c (lang_specific_driver): Cast xmalloc return value.
25267 Sun Jun 6 11:58:34 1999 Jakub Jelinek <jj@ultra.linux.cz>
25269 * sparc.md (abstf2): This should be an expand.
25270 (split after abstf2_notv9): Fix mode.
25271 (abstf2_hq_v9): New pattern.
25272 (abstf2_v9): Only use when no hard quad.
25273 (absdf2_v9): Fix if target is not the same as source.
25274 (ashrsi3_extend, ashrsi3_extend2, lshrsi3_extend, lshrsi3_extend2):
25275 Add correct output constraints.
25277 Sat Jun 5 17:04:16 1999 Craig Burley <craig@jcb-sc.com>
25279 From Dave Love to egcs-patches on 20 May 1999 17:38:38 +0100:
25280 * invoke.texi: Clarify text vis-a-vis Intel CPUs.
25282 Sat Jun 5 12:11:24 1999 Mark Mitchell <mark@codesourcery.com>
25284 * mips.h (mips_output_conditional_branch): New function.
25285 (mips_adjust_insn_length): Likewise.
25286 (ASSEMBLER_SCRATCH_REGNUM): New macro.
25287 (ADJUST_INSN_LENGTH): Likewise.
25288 * mips.c (print_operand): Add `F' and `W' for floating-point
25289 comparison opcodes.
25290 (machine_dependent_reorg): Adjust MIPS16 code; instruction-lengths
25292 (mips_adjust_insn_length): New function.
25293 (mips_output_conditional_branch): New function.
25294 * mips.md (length): Adjust attribute definition to handle
25295 conditional branches. Change lengths to bytes, rather than
25296 instructions throughout. Remove length attribute from
25297 instructions whose length is four bytes, and rely on the default
25299 (dslot): Fix typo in comment.
25300 Reword conditional branch patterns to use
25301 mips_output_conditional_branch.
25303 Fri Jun 4 13:30:27 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
25305 * alpha/osf.h (CPP_SUBTARGET_SPEC): Handle -threads.
25306 (LIB_SPEC): Likewise.
25307 Link with -lprof1_r for -g/-pg.
25309 1999-06-04 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
25311 * loop.c (check_dbra_loop): Fix change of Jan 19.
25313 Fri Jun 4 00:12:40 1999 Marc Espie <espie@cvs.openbsd.org>
25315 * freebsd-elf.h (SWITCH_TAKES_ARG): Redefine, not define.
25316 (STARTFILE_SPEC): Define, override the svr4.h version.
25317 (ENDFILE_SPEC): Likewise.
25319 Thu Jun 3 23:58:55 1999 Jeffrey A Law (law@cygnus.com)
25321 * fixinc/inclhack.def (limits_ifndefs): Also apply to sys/limits.h
25322 * fixinc/fixincl.x: Regenerated.
25323 * fixinc/inclhack.sh: Regenerated.
25325 Fri Jun 4 05:42:23 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
25327 * sh.c (barrier_align): Don't return early for normal branch/barrier
25328 when optimizing for SH2.
25330 Thu Jun 3 22:27:50 1999 Robert Lipe <robertlipe@usa.net>
25332 * i386/udk.h (LINK_SPEC): Correct linker search path for
25335 Fri Jun 4 03:20:40 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
25337 * sh.c (fixup_addr_diff_vecs): Emit braf reference label.
25338 (braf_label_ref_operand): Delete.
25339 * sh.h (PREDICATE_CODES): Remove braf_label_ref_operand.
25340 * sh.md (casesi_jump_2): Operand1 is now the inside of a
25341 label_ref, and has no predicate.
25342 The patten has a predicate to guard against invalid substitutions.
25343 (dummy_jump): Delete.
25344 (casesi): Update use of casesi_jump_2.
25346 Thu Jun 3 07:48 1999 Bruce Korb <ddsinc09@ix.netcom.com>
25348 *fixinc/inclhack.def(Io_Def_Quotes): corrected sed expression
25349 *fixinc/fixincl.x: regenerate
25350 *fixinc/inclhack.sh: regenerate
25352 Thu Jun 3 02:15:07 1999 Jason Merrill <jason@yorick.cygnus.com>
25354 * dwarf2out.c (add_incomplete_type): New fn.
25355 (gen_struct_or_union_type_die): Call it.
25356 (retry_incomplete_types): New fn.
25357 (dwarf2out_finish): Call it.
25359 Thu Jun 3 01:19:03 1999 Jeffrey A Law (law@cygnus.com)
25361 * gcse.c (insert_insn_end_bb): Correct placement of insns when the
25362 current block starts with a CODE_LABEL and ends with a CALL and
25363 we can not find all the argument setup instructions for the CALL.
25365 Wed Jun 2 15:44:15 1999 Mark Mitchell <mark@codesourcery.com>
25367 Revert this change:
25368 * fold-const.c (fold): STRIP_NOPS when deciding whether or not
25369 something is a candidate for optimize_bit_field_compare.
25371 Wed Jun 2 21:53:05 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
25373 * sh.h (CONST_OK_FOR_I, CONST_OK_FOR_L): Cast VALUE to HOST_WIDE_INT.
25375 Wed Jun 2 12:25:55 1999 Richard Henderson <rth@cygnus.com>
25377 * alpha.c (override_options): Thinko in last patch.
25379 * alpha/osf.h (CPP_SUBTARGET_SPEC): Define.
25380 (LIB_SPEC): Recognize -pthread.
25382 Wed Jun 2 08:42:55 1999 Nick Clifton <nickc@cygnus.com>
25384 * config/arm/tcoff.h (USER_LABEL_PREFIX): Synchronise with
25385 definition in config/arm/coff.h
25386 * config/arm/coff.h: Add comment about USER_LABEL_PREFIX.
25388 Wed Jun 2 07:07 1999 Bruce Korb <ddsinc09@ix.netcom.com>
25390 * fixinc/fixincl.c(global def): Add FD_SHELL_SCRIPT to mark
25391 fixes that need "file=xxx\n" prepended before invocation
25392 (start_fixer - new): starting the fixer process is complex enough
25393 to warrent its own routine. It prepends the "file=xxx\n" stuff.
25394 (process): uses the new routine; omit usage of putenv()
25395 * fixinc/fixincl.tpl: mark shell scripts with FD_SHELL_SCRIPT
25396 * fixinc/fixincl.x: regenerate
25398 Wed Jun 2 02:29:07 1999 Jeffrey A Law (law@cygnus.com)
25400 * README, configure.in, gcc.1, gcc.texi: Update name (egcs -> gcc)
25401 and version #s (1.1 -> 2.96) as needed.
25402 * README.g77: Kill way out of date file in the toplevel directory.
25404 Wed Jun 2 00:52:34 1999 David O'Brien <obrien@FreeBSD.org>
25406 * configure.in (i[34567]86-*-freebsdelf): Don't include linux.h,
25407 i386/freebsd-elf.h no longer requires it. Instead include svr4.h.
25408 * configure: Rebuilt.
25409 * i386/freebsd-elf.h (DEFAULT_VTABLE_THUNKS): Define.
25410 (ASM_COMMENT_START, ASM_APP_ON, ASM_APP_OFF, SET_ASM_OP): Likewise.
25411 (PREFERRED_DEBUGGING_TYPE, WCHAR_UNSIGNED): Likewise.
25412 (SWITCH_TAKES_ARG): Likewise.
25413 * i386/freebsd.h: Remove FREEBSD_NATIVE support.
25414 * config/t-freebsd: Moved from config/i386/ so it can used for all
25417 Mon May 31 02:22:55 1999 Philippe De Muyter <phdm@macqel.be>
25419 * m68k/x-mot3300 (XCFLAGS): Fixed to match stb.o, not f/stb.o.
25421 Wed Jun 2 00:08:34 1999 Robert Lipe <robertlipe@usa.net>
25423 * configure.in (i[34567]86-*-udk*): Install headers with cpio.
25424 * configure: Rebuilt.
25426 Tue Jun 1 19:06:22 1999 David Edelsohn <edelsohn@gnu.org>
25428 * rs6000/aix41.h (RS6000_CALL_GLUE): Define.
25429 * rs6000/aix43.h (RS6000_CALL_GLUE): Likewise.
25430 * rs6000/rs6000.c (rs6000_file_start): Use putc.
25431 (rs6000_output_load_toc_table): Same.
25432 (output_prolog, output_mi_thunk): Same.
25433 * rs6000/rs6000.h (SELECT_SECTION): Formatting.
25434 (ASM_GLOBALIZE_LABEL): Use putc.
25436 Mon May 31 15:23:23 1999 Richard Henderson <rth@cygnus.com>
25438 * alpha.md (reload_*_help): New patterns and splitters.
25439 (reload_*): Use them.
25440 (mov[qh]i): Likewise.
25442 Mon May 31 11:48:07 1999 Mark Mitchell <mark@codesourcery.com>
25444 * cccp.c (handle_directive): Handle backslash-newlines in quoted
25447 Mon May 31 09:36:11 1999 Cort Dougan <cort@cs.nmt.edu>
25449 * rs6000/linux.h (LINK_SPEC): Use emulation elf32ppclinux.
25451 Mon May 31 11:40:20 EDT 1999 John Wehle (john@feith.com)
25453 * flow.c (mark_regs_live_at_end, insn_dead_p,
25454 mark_set_1, mark_used_regs): Only give FRAME_POINTER_REGNUM
25455 and HARD_FRAME_POINTER_REGNUM special treatment if reload
25456 hasn't run or the frame pointer is needed.
25457 * haifa-sched.c (attach_deaths): Likewise.
25458 * sched.c (attach_deaths): Likewise.
25460 Mon May 31 00:46:17 1999 Jeffrey A Law (law@cygnus.com)
25462 * jump.c (jump_optimize_1): Only set CAN_REACH_END if
25463 calculate_can_reach_end returns nonzero.
25465 * configure.in (native gas tests): Search for an assembler in the
25466 same manner that the installed compiler will.
25467 * configure: Rebuilt.
25468 * tm.texi (MD_EXEC_PREFIX): Note need to update configure.in too.
25470 * alias.c (find_base_term): Improve handling of addresses
25471 constructed from binary operations.
25473 Sun May 30 14:29:17 1999 Eric Raskin (ehr@listworks.com)
25475 * dgux.h (STARTFILE_SPEC): Fix incorrectly matched curly-braces.
25477 Sun May 30 14:19:13 1999 Jeffrey A Law (law@cygnus.com)
25479 * function.h (cleanup_label, frame_offset): Declare.
25480 (tail_recursion_label, tail_recursion_reentry): Likewise.
25481 (arg_pointer_save_area, rtl_expr_chain): Likewise.
25482 * stmt.c (cleanup_label, frame_offset): Delete extern declarations.
25483 (tail_recursion_label, tail_recursion_reentry): Likewise.
25484 (arg_pointer_save_area, rtl_expr_chain): Likewise.
25486 Sat May 29 19:08:10 1999 Philip Blundell <philb@gnu.org>
25488 * config/arm/aout.h (ASM_OUTPUT_ALIGN): Only define if not already
25490 * config/arm/elf.h (ASM_OUTPUT_ALIGN): Define.
25491 (MAX_OFILE_ALIGNMENT): Define.
25493 Fri May 28 21:40 1999 Robert Lipe <robertlipe@usa.net>
25495 * fixincl.c: Replace local include scheme with #includes of
25496 gansidecl.h and system.h.
25497 * procopen.c: Likewise.
25498 * server.c: Likewise.
25500 Fri May 28 03:47:03 1999 Eric Raskin (ehr@listworks.com)
25502 * i386/t-dgux (EXTRA_PARTS): Add crti.o
25503 (crti.o): Add build rule and dependencies.
25504 * fixinc/fixinc.dgux: Use modified _int_varargs.h
25506 Fri May 28 03:41:02 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
25508 * rs6000/sysv4.h (CC1_SPEC): Add support for -profile
25509 (LIB_LINUX_SPEC): Likewise.
25510 (LIB_LINUX_SPEC): Add support for -pthread
25511 (CPP_OS_LINUX_SPEC): Likewise.
25512 (CPP_SYSV_SPEC): Avoid redefinitions if both -fpic and -fPIC are
25515 Thu May 27 13:04:52 1999 H.J. Lu (hjl@gnu.org)
25517 * i386.c (output_fp_cc0_set): Don't check the JUMP_INSN code for
25519 (notice_update_cc, output_float_compare): Enable TARGET_CMOVE support.
25520 (output_float_compare, output_fp_cc0_set): Fix the FLOAT comparison
25521 for IEEE math and CC_FCOMI.
25522 (put_jump_code): No IEEE if CC_FCOMI is set.
25524 1999-05-27 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
25526 * fold-const.c (fold_truthop): Make the field reference unsigned
25527 when converting a single bit compare.
25529 Thu May 27 02:40:48 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
25531 * loop.c (strength_reduce): Don't do biv->giv conversion on constants.
25533 Thu May 27 02:09:27 1999 Jeffrey A Law (law@cygnus.com)
25535 * varasm.c (STRIP_NAME_ENCODING): Remove default definition.
25536 * output.h (STRIP_NAME_ENCODING): Strip '*' like the old varasm
25539 * reload.c (push_reload): Do not call remove_address_replacements
25540 when presented with identical optional reloads.
25542 Wed May 26 14:18:05 1999 Richard Henderson <rth@cygnus.com>
25544 * alpha.h (MASK_FIX, TARGET_FIX): New.
25545 (MASK_*): Reorganize constants.
25546 (CPP_AM_FIX_SPEC): New.
25547 (TARGET_SWITCHES): Add FIX.
25548 (EXTRA_SPECS): Likewise.
25549 (CPP_CPU_EV6_SPEC): Use FIX, not CIX.
25550 (SECONDARY_MEMORY_NEEDED): Likewise.
25551 (REGISTER_MOVE_COST): Likewise.
25552 * alpha.c (override_options): Add FIX support. Always use
25553 ALPHA_TP_PROG for ev6.
25554 * alpha.md (sqrt and mov[sd]i patterns): Use FIX, not CIX.
25555 * alpha/elf.h (ASM_FILE_START): Look at FIX too.
25556 * configure.in (target_cpu_default2) [ev6]: Use FIX, not CIX.
25558 Wed May 26 09:53:05 1999 Mark Mitchell <mark@codesourcery.com>
25560 * fold-const.c (fold): STRIP_NOPS when deciding whether or not
25561 something is a candidate for optimize_bit_field_compare.
25563 Wed May 26 09:40:02 1999 Mark Mitchell <mark@codesourcery.com>
25565 * gcc.texi (Passes): Document branch-shortening.
25566 * invoke.texi (Debugging Options): Document the fact that `-dp'
25567 outputs length information for instructions.
25569 Wed May 26 08:49:31 1999 Nick Clifton <nickc@cygnus.com>
25571 * flow.c: Revert previous delta.
25573 Wed May 26 06:05:10 1999 Nick Clifton <nickc@cygnus.com>
25575 * flow.c (insn_dead_p): Check against frame_pointer_rtx not
25576 FRAME_POINTER_REGNUM.
25577 (mark_set_1): Ditto.
25578 (mark_used_regs): Ditto.
25580 Wed May 26 02:19:31 1999 Philip Blundell <pb@nexus.co.uk>
25582 * arm.h (NEED_PLT_GOT): Fix mistake in last change.
25583 (GOT_PCREL): New macro. Define to 1 if not already defined.
25584 * arm/elf.h (GOT_PCREL): Define to 0.
25585 * arm.c (arm_finalize_pic): Take into account the setting of
25588 Tue May 25 14:06:06 1999 Jeffrey A Law (law@cygnus.com)
25590 * output.h (STRIP_NAME_ENCODING): Provide default definition.
25591 * dwarf2out.c (ASM_NAME_TO_STRING): Use STRIP_NAME_ENCODING.
25593 * flow.c (mark_set_1): Do not record BLKmode stores as dead
25594 store elimination candidates.
25596 Tue May 25 08:55:57 1999 Gavin Romig-Koch <gavin@cygnus.com>
25598 * config/mips/mips.h (ASM_OUTPUT_DOUBLE_INT) : Use 'dword' if
25601 Mon May 24 20:30:08 1999 Jim Wilson <wilson@cygnus.com>
25603 * configure.in (rs6000-ibm-aix4.[12]*): Delete use of aix41-gld.h.
25604 Add use of x-aix41-gld.
25606 Mon May 24 16:44:09 1999 Jakub Jelinek <jj@ultra.linux.cz>
25608 * sparc/linux64.h (ASM_OUTPUT_CONSTRUCTOR): Define.
25609 (ASM_OUTPUT_DESTRUCTOR): Define.
25611 Mon May 24 14:35:24 1999 Jeffrey A Law (law@cygnus.com)
25613 * loop.c (strength_reduce): Do not clear NOT_EVERY_ITERATION at the
25614 last CODE_LABEL in a loop if we have previously passed a jump
25615 to the top of the loop.
25617 Mon May 24 07:56:29 1999 Nick Clifton <nickc@cygnus.com>
25619 * config/arm/arm.h (OUTPUT_INT_ADDR_CONST): Fix blunder made when
25620 applying Philip's patch.
25622 Mon May 24 01:02:12 1999 Mark Mitchell <mark@codesourcery.com>
25624 * stmt.c (expand_end_bindings): Ignore any elements of VARS that
25627 Sun May 23 20:31:16 1999 Jeffrey A Law (law@cygnus.com)
25629 * loop.c (strength_reduce): Grow reg_single_usage as needed.
25631 Sun May 23 10:13:20 1999 David O'Brien <obrien@FreeBSD.org>
25633 * i386/freebsd-elf.h (LINK_SPEC): Change -static to -Bstatic.
25634 Also remove a useless comment.
25636 Sun May 23 10:05:23 1999 Jerry Quinn <jquinn@nortelnetworks.com>
25638 * pa.md (negdf2,negsf2): Use fneg instead of fsub on pa 2.0.
25640 Sat May 22 21:02:06 1999 David Edelsohn <edelsohn@gnu.org>
25642 * collect2.c (main): Only generate import or export file and add
25643 to link arguments if non-empty. Use xmalloc not alloca.
25644 (write_{export,import}_file): Delete.
25645 (write_aix_file): New function.
25646 (locatelib): Use xmalloc not malloc.
25647 (GCC_OK_SYMBOL): Do not check type if aix64.
25649 Sat May 22 09:35:51 1999 Philip Blundell <pb@nexus.co.uk>
25651 Based on patch by Scott Bambrough and Pat Beirne:
25652 * config/arm/arm.c (making_const_table): New variable.
25653 * config/arm/arm.h (making_const_table): Declare.
25654 (OUTPUT_INT_ADDR_CONST): Mark symbols as position independent if
25656 * config/arm/arm.md (consttable_4, consttable_8, consttable_end):
25657 Keep track of when we are building the constant table.
25659 Sat May 22 09:34:22 1999 Philip Blundell <pb@nexus.co.uk>
25661 * config/arm/arm.c (arm_override_options): Fix erroneous warning
25664 Sat May 22 09:06:33 1999 Nick Clifton <nickc@cygnus.com>
25666 * config/arm/arm.h (NEED_PLT_GOT): Only define if not already
25669 Sat May 22 07:17:05 1999 Nick Clifton <nickc@cygnus.com>
25671 * tm.texi (FUNCTION_ARG): Correct description of a stack element
25674 Sat May 22 01:27:49 1999 Mark Mitchell <mark@codesourcery.com>
25676 * expr.h (lang_expand_constant): Guard with #ifdef TREE_CODE.
25678 Fri May 21 21:19:02 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
25680 * rs6000.c (output_mi_thunk): Enable full support again.
25682 Fri May 21 20:09:52 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
25684 * sh.h (BRANCH_COST): Define.
25686 Thu May 20 10:00:42 1999 Stephen L Moshier <moshier@world.std.com>
25688 * Makefile.in (GCC_FOR_TARGET): Add -I$(build_tooldir)/include.
25690 Thu May 20 09:58:57 1999 Jan Hubicka <hubicka@freesoft.cz>
25692 * function.c (assign_stack_local): Align stack slot propertly.
25693 (assign_outer_stack_local): Likewise.
25695 Thu May 20 10:38:43 1999 Mark Mitchell <mark@codesourcery.com>
25697 * expr.h (lang_expand_constant): Declare.
25698 * toplev.c (lang_expand_constant): Define it.
25699 * varasm.c (output_constant): Use it.
25701 Thu May 20 11:28:53 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
25703 * optabs.c (expand_cmplxdiv_straight, expand_cmplxdiv_wide):
25704 Change function definitions to K&R style.
25706 Thu May 20 08:16:39 1999 Bruce Korb <ddsinc09@ix.netcom.com>
25708 * fixinc/fixincl.c: We must not ignore SIGCLD now.
25710 Thu May 20 07:06:39 1999 Alexandre Oliva <aoliva@acm.org>
25712 * fixinc/Makefile.in(gnu-regex.o): add $(INCLUDES) to compile options
25713 * fixinc/fixincl.c(wait_for_pid): K&R-ify arguments
25714 (several places): omit static initialization
25715 (process): use single fd, since only the read fd is used
25716 * fixinc/gnu-regex.c: define 'const' away, if not supported
25717 * fixinc/procopen.c(several places): omit static initialization
25718 * fixinc/server.c: define 'volitile' away, if not supported
25720 1999-05-20 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
25722 * config/dbxcoff.h (DBX_OUTPUT_MAIN_SOURCE_FILE_END): Use
25723 asm_fprintf and %L to generate the label name.
25724 * config/dbxelf.h (DBX_OUTPUT_MAIN_SOURCE_FILE_END): Likewise.
25725 (ASM_OUTPUT_SOURCE_LINE): Correct generation of internal labels.
25727 Thu May 20 01:40:55 1999 Jeffrey A Law (law@cygnus.com)
25729 * jump.c (can_reverse_comparison_p): Do not abort if the comparison
25730 insn for a conditional jump can not be found.
25732 Wed May 19 23:58:58 1999 Jeffrey A Law (law@cygnus.com)
25734 * mips.h (ENCODE_SECTION_INFO): Do not perform GP optimizations
25735 on variables in specific sections other than .sbss and .sdata.
25737 Wed May 19 03:56:56 1999 Mark Mitchell <mark@codesourcery.com>
25739 * stmt.c (expand_return): Call start_cleanup_deferral and
25740 end_cleanup_deferral around conditional code.
25742 Wed May 19 08:40:08 1999 Bruce Korb <ddsinc09@ix.netcom.com>
25744 * fixinc/fixincl.tpl: Avoid depending on ANSI C features for
25745 filename lists. Utilizes new "krstr" AutoGen function.
25746 * fixinc/fixincl.x: Rebuilt.
25748 Wed May 19 02:47:11 1999 Jan Hubicka (hubicka@freesoft.cz)
25750 * i386.c (output_float_compare): Avoid GNU-C extensions.
25752 Wed May 19 00:34:40 1999 Jeffrey A Law (law@cygnus.com)
25754 * version.c: Bump to distinguish mainline tree from the
25757 See ChangeLog.1 for earlier changes.