1 2000-04-25 Richard Henderson <rth@cygnus.com>
3 * combine.c (combine_instructions): Add missing argument
6 2000-04-25 Richard Henderson <rth@cygnus.com>
8 * toplev.c (rest_of_compilation): Delay sibcall optimization
9 until after emit_eh_context.
11 2000-04-24 Nick Clifton <nickc@redhat.com>
13 * combine.c (combine_instructions): Do not try to combine a
14 sequence of insns when the second insn has been replaced by a
17 Mon Apr 24 17:34:18 2000 Mumit Khan <khan@xraylith.wisc.edu>
19 * gcc.c (load_specs): New static function.
22 * gcc.c (lookup_compiler): Make multiple passes for case
23 insensitive filesystems.
25 2000-04-24 Neil Booth <NeilB@earthling.net>
27 * cpphash.c: replace HSPACE_BEFORE with PREV_WHITESPACE.
28 * cpphash.h (_cpp_check_directive): new.
29 * cpplex.c (handle_newline, cpp_free_token_list,
30 init_trigraph_map, trigraph_ok, trigraph_replace,
31 backslash_start, skip_block_comment, skip_line_comment,
32 skip_whitespace, parse_name, parse_number, parse_string,
33 copy_comment, _cpp_lex_line, spell_char, spell_string,
34 spell_comment, spell_name, spell_other, _cpp_lex_file,
35 _cpp_output_list): new.
36 (expand_name_space): take length argument.
37 (init_token_list): add comment list initialisation.
38 (cpp_scan_line): use auto_expand_name_space. PREV_WHITESPACE
39 instead of HSPACE_BEFORE.
41 * cpplib.c (_cpp_check_directive): new
42 * cpplib.h (cpp_name, PREV_WHITESPACE, PREV_COMMENT,
43 DIGRAPH, UNSIGNED_INT, TOK_NAME): new.
44 (HSPACE_BEFORE): delete.
45 (TTYPE_TABLE): rearrange.
46 (struct cpp_toklist): update.
48 2000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
50 * aclocal.m4 (gcc_AC_HEADER_STRING, gcc_AC_FUNC_PRINTF_PTR,
51 gcc_AC_C_VOLATILE, gcc_AC_FUNC_MKDIR_TAKES_ONE_ARG): Use the three
52 argument form of AC_DEFINE.
54 * configure.in (DEFAULT_LINKER, DEFAULT_ASSEMBLER,
55 HAVE_INTTYPES_H, PACKAGE, VERSION, ENABLE_WIN32_REGISTRY,
56 WIN32_REGISTRY_KEY, HAVE_GAS_SUBSECTION_ORDERING, HAVE_GAS_WEAK,
57 HAVE_GAS_HIDDEN, HAVE_AS_REGISTER_PSEUDO_OP, AS_SPARC64_FLAG,
58 HAVE_AS_OFFSETABLE_LO10, ENABLE_NEW_GXX_ABI): Likewise.
60 * acconfig.h: Delete stubs made redundant by 3-arg AC_DEFINE.
62 2000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
64 * Makefile.in (GCC_FOR_TARGET, GCC_CFLAGS, LIBGCC2_INCLUDES,
65 deduced.h): Use -isystem, not -I, for including system headers.
67 2000-04-24 Nick Clifton <nickc@cygnus.com>
69 * config/fr30/fr30.md (addsi3): Do not use small add instruction if
70 the source register is the frame pointer or arg pointer.
71 (addsi3_small_int): Disallow if source register is the frame
72 pointer or arg pointer.
74 2000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
76 * configure.in (ENUM_BITFIELDS_ARE_UNSIGNED): Delete redundant
77 call to AC_MSG_RESULT.
79 2000-04-24 Martin v. Löwis <loewis@informatik.hu-berlin.de>
81 * invoke.texi: Correct grammatical errors, document
82 -fno-gnu-keywords as identical to -fno-asm for C++.
84 2000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
86 * aclocal.m4: (GCC_HEADER_STRING, GCC_NEED_DECLARATION,
87 GCC_NEED_DECLARATIONS, GCC_FUNC_VFPRINTF_DOPRNT,
88 GCC_FUNC_PRINTF_PTR, GCC_PROG_LN_S, GCC_PROG_LN, GCC_C_VOLATILE,
89 AC_GCC_C_LONG_DOUBLE, GCC_FUNC_MKDIR_TAKES_ONE_ARG,
90 EGCS_PROG_INSTALL): Rename autoconf macros with prefix gcc_AC_.
92 * configure.in (AC_GCC_C_LONG_DOUBLE, GCC_PROG_LN, GCC_PROG_LN_S,
93 GCC_C_VOLATILE, EGCS_PROG_INSTALL, GCC_HEADER_STRING,
94 GCC_FUNC_VFPRINTF_DOPRNT, GCC_FUNC_PRINTF_PTR,
95 GCC_NEED_DECLARATIONS, GCC_FUNC_MKDIR_TAKES_ONE_ARG): Invoke with
98 2000-04-24 Mumit Khan <khan@xraylith.wisc.edu>
100 * c-pragma.c (push_alignment): Use BITS_PER_UNIT macro.
101 (pop_alignment): Likewise.
102 (handle_pragma_token): Likewise.
104 2000-04-24 Robert Lipe <robertlipe@usa.net>
106 * tree.h (tree_decl): Member `mode' now ENUM_BITFIELD.
108 2000-04-24 Hiroyuki Machida <machida@sm.sony.co.jp>
110 * combine.c (try_combine): Update reg_nonzero_bits of
111 newi2pat before newpat.
113 Mon Apr 24 10:19:48 MET DST 2000 Jan Hubicka <jh@suse.cz>
115 * loop.c (strength_reduce): Simplify test to INSN_P.
116 (record_giv): Attempt to simplify the add value, use CONSTANT_P
117 expressions instead of CONST_INT.
118 (express_from_1): Likewise.
120 2000-04-24 Mark Mitchell <mark@codesourcery.com>
122 * regs.h (reg_n_max): Don't declare.
123 * flow.c (reg_n_max): Don't define.
124 * regclass.c (renumber): Don't initialize to zero.
125 (regno_allocated): Likewise.
127 (allocate_reg_info): Don't initialize unnecessarily.
129 Mon Apr 24 00:21:36 2000 Jeffrey A Law (law@cygnus.com)
131 * genattrtab.c (find_attr): Initialize unsigned_p, func_units_p
132 and blockage_p in the newly allocated attribute.
134 Sun Apr 23 20:16:49 2000 Alexandre Oliva <aoliva@cygnus.com>
136 * config/mn10300/mn10300.md (addsi): `inc4' on address
137 registers does not modify cc, but `inc' on an extended
140 Sun Apr 23 16:24:35 2000 Denis Chertykov <denisc@overta.ru>
142 * reload.c (find_equiv_reg): Checks all valueno regs
143 as a reload_reg_p regs.
145 2000-04-23 Zack Weinberg <zack@wolery.cumb.org>
147 * cpphash.c (collect_objlike_expansion): Add sanity check.
148 (special_symbol): Remove case T_CONST, T_XCONST, T_MCONST. If
149 the buffer is the empty string, return. Mark __DATE__ and
150 __TIME__ as XCONST nodes, not MCONST.
151 (_cpp_macroexpand): Avoid pushing an empty buffer.
152 (funlike_macroexpand): Don't pop token_buffer here.
154 Sun Apr 23 18:37:53 2000 Alexandre Oliva <aoliva@cygnus.com>
156 * config/mn10300/mn10300.h (REGNO_IN_RANGE_P): New macro.
157 (REGNO_DATA_P, REGNO_ADDRESS_P, REGNO_SP_P): New macros.
158 (REGNO_EXTENDED_P, REGNO_AM33_P): New macros.
159 (REGNO_OK_FOR_BASE_P): Define in terms of them.
160 (REGNO_OK_FOR_BIT_BASE_P, REGNO_OK_FOR_INDEX_P): Likewise.
161 (REG_OK_FOR_BASE_P): Define in terms of the REGNO macro.
162 (REG_OK_FOR_BIT_BASE_P, REG_OK_FOR_INDEX_P): Likewise.
164 Sun Apr 23 22:23:08 MET DST 2000 Jan Hubicka <jh@suse.cz>
166 * loop.c (simplify_giv_expr): Be more agressive on simplifying
169 2000-04-23 Zack Weinberg <zack@wolery.cumb.org>
171 * cpphash.h (struct definition): Move file, line, col members...
172 (struct hashnode): ... here. Also add 'disabled' flag.
173 (enum node_type): Add T_VOID, T_XCONST, T_FMACRO, and
174 T_IDENTITY. Remove T_DISABLED.
177 * cpphash.c (_cpp_dump_definition): Split out dump_DEFINITION.
178 (collect_expansion): Split into collect_objlike_expansion and
179 collect_funlike_expansion.
180 (_cpp_macroexpand): Split out scan_arguments, stringify, and
182 (_cpp_compare_defs): Rename compare_defs, make static.
183 (_cpp_make_hashnode): Initialize hp->disabled.
184 (macro_cleanup): Adjust for new token types. Clear
186 (_cpp_create_definition): Move code here to determine what
187 sort of macro it is, and code to check for redefinitions, from
188 do_define. Implement a few simple cases without creating a
190 (_cpp_macroexpand, special_symbol, _cpp_dump_definition):
191 Handle the simple cases.
192 (push_macro_expansion): Set buf->has_escapes and hp->disabled
195 * cppinit.c (builtin_array): Change MCONST to XCONST
197 * cpplex.c (maybe_macroexpand): Handle IDENTITY macros here;
198 fix check for disabled and function-like macros.
199 * cpplib.c (do_define): Move most logic to
200 _cpp_create_definition.
201 (do_undef): Handle new special token types.
203 Sun Apr 23 14:27:44 MET DST 2000 Jan Hubicka <jh@suse.cz>
205 * loop.c (maybe_eliminate_biv_1): Use GET_CODE (x) == CONST_INT instead
206 of CONSTANT_P for mult_val; always use validate_change to update insn.
208 2000-04-22 Zack Weinberg <zack@wolery.cumb.org>
210 * cpphash.c (trad_stringify, add_pat): New functions.
211 (collect_expansion): Restore support for -traditional syntax.
212 Use trad_stringify and add_pat.
213 (_cpp_macroexpand): Restore support for -traditional semantics.
214 * cpplex.c (_cpp_scan_line): Don't change space_before if we
216 (_cpp_lex_token): Provide COMMENT tokens to caller if
217 traditional and parsing_define_directive.
218 (skip_comment): Warn about // comments if -Wtraditional.
219 * cpplib.c (do_define): Fix typo. Create EMPTY nodes with
221 (do_undef): Don't warn about undefining EMPTY nodes.
223 Sat Apr 22 22:35:38 MET DST 2000 Jan Hubicka <jh@suse.cz>
225 * loop.c (strength_reduce): Fix biv removal code.
227 2000-04-22 Richard Henderson <rth@cygnus.com>
229 * predict.c (estimate_probability): Examine both sides of
230 a branch for no exits. Use 90% not 50% for predict taken.
231 Reorg for one copy of note generation code.
233 2000-04-22 Richard Henderson <rth@cygnus.com>
235 * flow.c (mark_used_reg): Hack around rs6000 eliminable pic reg.
237 2000-04-22 Richard Henderson <rth@cygnus.com>
239 * diagnostic.c (init_output_buffer): Don't initialize format_args.
240 (output_clear): Likewise.
241 (output_printf): Use va_copy.
242 (vline_wrapper_message_with_location): Likewise.
243 (v_message_with_decl): Likewise.
244 (line_wrapper_printf): VA_START infor buffer.format_args directly.
245 * system.h (va_copy): Provide default implementation.
247 2000-04-22 Richard Henderson <rth@cygnus.com>
249 * predict.c (expected_value_to_br_prob): Don't bomb if op1 of
250 the collected condition is not a constant.
252 2000-04-22 Gabriel Dos Reis <gdr@codesourcery.com>
254 * diagnostic.h: New file.
256 * Makefile.in (diagnostic.o): Depends on diagnostic.h
258 * diagnostic.c: Tweak. Rationalize the output logic. Adjust
259 various function prototypes.
260 (diagnostic.h): #include.
261 (struct output_buffer): Move into diagnostic.h.
262 (get_output_prefix): Rename to output_get_prefix. Export.
263 (init_output_buffer): Export. Break out. Ajust intialization.
264 (output_space_left, output_append): Export.
265 (output_newline): Rename to output_add_newline. Export.
266 (output_clear): Nullify additional output_buffer fields.
267 (output_puts): Rename to output_add_string. Export.
268 (dump_output): Rename to output_flush_on. Export.
269 (build_location_prefix): Constify return-type.
270 (emit_output_prefix): Rename to output_emit_prefix. Export.
271 (set_real_maximum_length): New function.
272 (output_set_maximum_length): Ditto
273 (output_clear): Ditto.
274 (output_add_character): Ditto.
275 (output_add_integer): Ditto.
276 (output_add_space): Ditto.
277 (output_format): Ditto.
278 (output_printf): Adjust buffer initialization.
279 (vline_wrapper_message_with_location): Ditto.
280 (v_message_with_decl): Ditto. Adjust call to output_puts
281 and get_output_prefix.
282 (default_print_error_function): Adjust buffer intialization.
284 Sat Apr 22 06:45:04 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
286 * expr.c (preexpand_calls, case CALL_EXPR): Don't look at TYPE_SIZE
289 Fri Apr 21 18:33:09 2000 Alexandre Oliva <aoliva@cygnus.com>
291 * config/mn10300/mn10300.h (REGNO_REG_CLASS): Use NO_REGS instead
294 Fri Apr 21 18:30:00 2000 Alexandre Oliva <aoliva@cygnus.com>
296 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Provide more
297 accurate data about SP moves.
299 Fri Apr 21 18:28:28 2000 Alexandre Oliva <aoliva@cygnus.com>
301 * config/mn10300/mn10300.h (ADDITIONAL_REGISTER_NAMES): Added
302 aliases to AM33 registers.
304 Fri Apr 21 18:26:17 2000 Alexandre Oliva <aoliva@cygnus.com>
306 * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Added register 16
307 to all EXTENDED bitmaps.
309 Fri Apr 21 18:17:12 2000 Alexandre Oliva <aoliva@cygnus.com>
311 * config/mn10300/mn10300-protos.h (mn10300_address_cost): Declare.
312 * config/mn10300/mn10300.h (ADDRESS_COST): New macro.
313 * config/mn10300/mn10300.c (mn10300_address_cost): New function.
315 Fri Apr 21 18:11:56 2000 Alexandre Oliva <aoliva@cygnus.com>
317 * config/mn10300/mn10300.md (movdi, movdf): Do not use `movu' when
318 the operand is not constant.
320 Fri Apr 21 14:58:29 2000 Denis Chertykov <denisc@overta.ru>
322 * reload.c (find_equiv_reg): Checks all valueno and regno regs
323 as a call-clobbered regs.
325 Fri Apr 21 13:30:26 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
327 * rtl.c: Use NOTE_INSN_REPEATED_LINE_NUMBER and NOTE_INSN_RANGE_BEG.
329 * rtl.def: Update comment.
330 * function.c (expand_function): Use NOTE_INSN_REPEATED_LINE_NUMBER.
331 * integrate.c (expand_inline_function): Likewise.
332 * profile.c (branch_prob): Likewise.
333 * ggc-common.c (ggc_mark_rtx_children): Use NOTE_INSN_RANGE_BEG.
334 * print-rtl.c (print_rtx): Likewise.
335 * haifa-sched.c (sched_analyze, unlink_other_notes): Likewise.
336 (reemit_notes): Likewise; also use enum insn_note.
338 * stor-layout.c (layout_decl): Only set DECL_MODE if not already set.
339 (place_field): Properly compute know and actual alignment.
341 * gengenrtl.c (gencode): Write obstack_alloc_rtx function start
344 * cse.c (cse_insn): In (set REG0 REG1) case, remove a REG_EQUAL
347 2000-04-21 Zack Weinberg <zack@wolery.cumb.org>
349 * cpphash.c (struct arg, struct arglist): Const-ify strings.
350 (warn_trad_stringify, duplicate_arg_p): New helper functions.
351 (collect_expansion): Rewrite to scan over a token list.
352 Remove -traditional support.
353 (collect_formal_parameters): Rename to collect_params; rewrite
354 to scan over a token list.
355 (_cpp_create_definition): Adjust to scan a token list.
356 (_cpp_macroexpand): Remove -traditional support.
357 (_cpp_compare_defs): Whitespace is now canonicalized.
358 (comp_def_part): Delete function.
360 * cpphash.h: Update prototypes.
361 * cpplex.c (init_token_list): Don't set lineno if there is no
363 (pedantic_whitespace): New function.
364 (_cpp_scan_line): Mark tokens that had hspace before. Don't
365 consume a newline. Use pedantic_whitespace.
366 (_cpp_lex_token): Remove support for -traditional macros.
367 (_cpp_get_define_token): Delete.
368 (_cpp_get_directive_token): Do the real work here. Use
370 (_cpp_init_input_buffer): Initialize pfile->directbuf.
372 * cpplib.c (get_macro_name): Delete.
373 (do_define): Read the entire line into pfile->directbuf, then
374 feed the token list to _cpp_create_definition.
375 * cpplib.h (HSPACE_BEFORE): new define.
376 (struct cpp_reader): Add a toklist member, "directbuf".
378 * predict.c (estimate_probability): New heuristic: if a jump
379 branches around a block with no successors, predict it taken.
380 Disentangle control flow.
382 2000-04-20 Richard Henderson <rth@cygnus.com>
384 * loop.c (emit_iv_add_mult): Revert last change.
386 2000-04-20 Zack Weinberg <zack@wolery.cumb.org>
388 * cpplib.h (enum cpp_ttype): Add token types for all
389 punctuators. Distinguish pp-numbers from valid C numbers.
390 Give some tokens better names. Initialize from macro.
391 (struct cpp_name, cpp_token, cpp_toklist): New data
394 * cpplex.c (bump_column, expand_name_space,
395 expand_token_space, init_token_list, cpp_output_list,
396 _cpp_scan_line): New functions.
397 (output_line_command): Add third argument, new line number.
398 * cpphash.h: Update prototypes.
399 * cppexp.c, cpphash.c, cpplib.c, scan-decls.c: Update for new
402 2000-04-20 Richard Henderson <rth@cygnus.com>
404 * config/alpha/alpha.c (alpha_emit_floatuns): Emit missing barrier.
406 2000-04-20 Zack Weinberg <zack@wolery.cumb.org>
408 * c-common.c (decl_attributes) [A_ALIAS]: Set TREE_USED on the
411 Thu Apr 20 14:19:18 MET DST 2000 Jan Hubicka <jh@suse.cz>
413 * loop.c (emit_iv_add_mult): Simplify it's input and emit
414 REG_EQUAL note explaining the calculated value.
416 * calls.c (expand_call): Avoid unnecesary precalculation
417 and outgoing parameters space guarding for sibling calls.
418 (store_one_arg): Likewise.
420 Thu Apr 20 08:01:07 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
422 * toplev.c (enum dump_file_index, dump_file): Add DFI_sibling.
423 (rest_of_compilation): Write sibling dump file and account
424 for time as jump time.
425 * invoke.texi: Update documentation on dump flags.
427 2000-04-19 Marek Michalkiewicz <marekm@linux.org.pl>
429 * avr.c: #include "system.h" instead of <stdio.h> and <stdlib.h>.
431 2000-04-19 Zack Weinberg <zack@wolery.cumb.org>
433 * cpphash.c (special_symbol): Represent an empty macro with
434 "\r \r " not just "\r ".
435 (_cpp_macroexpand): Correct condition for the foo ( ) special
437 (unsafe_chars): Handle EOF as second argument.
438 (push_macro_expansion): Simplify test for removing escape at
439 end. Do not trim both escapes if there is no text in between.
441 2000-04-19 Jim Blandy <jimb@redhat.com>
443 * dwarf2out.c (DWARF2_ADDR_SIZE): New macro. Use it instead
444 of PTR_SIZE, when appropriate.
446 2000-04-19 Mark Mitchell <mark@codesourcery.com>
448 * system.h (ONLY_INT_FIELDS): Make sure it is defined.
449 (USE_ENUM_BITFIELDS): Fix typo.
451 Wed Apr 19 12:14:55 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
453 * stor-layout.c (place_field): Set rli->offset_align properly.
455 2000-04-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
457 * mips.h (BITS_PER_WORD, UNITS_PER_WORD, UNITS_PER_FPREG,
458 INT_TYPE_SIZE, LONG_TYPE_SIZE, POINTER_SIZE, POINTER_BOUNDARY,
459 PARM_BOUNDARY): Remove unnecessary casts.
461 Wed Apr 19 12:02:37 MET DST 2000 Jan Hubicka <jh@suse.cz>
463 * calls.c (precompute_arguments): Remove must_preallocate and
465 (expand_call): Update call of precompute_arguments.
467 * loop.c (check_insn_for_bivs, for_every_insn_in_loop,
468 check_insn_for_givs): Break out from ...
469 (strength_reduce) ... here; use for_every_insn_in_loop to call
471 * loop.h (for_every_insn_in_loop): Declare.
472 (loop_insn_callback): New type.
474 2000-04-18 Zack Weinberg <zack@wolery.cumb.org>
476 * cpplib.c (do_pragma_poison): Strings in the token buffer are
479 Tue Apr 18 16:04:12 2000 Jim Wilson <wilson@cygnus.com>
481 * config/ia64/sysv4.h (SELECT_SECTION): Use data_section if
484 2000-04-18 Zack Weinberg <zack@wolery.cumb.org>
486 * cccp.c, cexp.y, cexp.c, cccp.1: Removed.
488 * configure.in: Delete --disable-cpplib option and all
489 references to cpp_main.
490 * configure: Regenerate.
491 * Makefile.in: Remove all references to CCCP, CCCP_OBJS,
492 @cpp_main@, cccp.c, cexp.c, cexp.y, cexp.output, cexp.o,
493 cccp.o, cccp, or cppmain. Link cppmain.o straight to
494 cpp$(exeext). Add --no-headers to makeinfo command line when
495 generating INSTALL. Install and uninstall cpp.1 manpage, not
497 * install.texi: Delete all references to cexp.y/cexp.c.
498 Delete ancient instructions for compiling GCC on 3b1.
499 * INSTALL: Regenerate.
501 * cppfiles.c, cpplib.h, jump.c, protoize.c, c-lex.c, mips/t-ecoff,
502 mips/t-elf, mips/t-r3900: Remove references to cccp.c.
503 * convex.h, fx80.h, m68k.h, pdp11.h: Remove references to
505 * xm-linux.h, xm-os2.h, romp.h: Remove definition of BSTRING,
506 which is no longer tested anywhere.
508 * cppinit.c (handle_option): Don't run error message through
511 Tue Apr 18 14:16:47 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
513 * conflict.c (conflict_graph_add): Pass enum type to htab_find_slot.
514 * cpperror.c (hashtab.h): Now include.
515 * cppexp.c (hashtab.h): Likewise.
516 * cpplex.c (hashtab.h): Likewise.
517 * cppfiles.c (hashtab.h): Likewise.
518 (find_include_file, _cpp_calc_hash, cpp_read_file): Pass enum type
519 to htab_find_slot_with_hash.
520 * cpphash.c (hashtab.h): Now include.
521 (_cpp_lookup_slot): INSERT is now enum insert_option.
522 * cpphash.h (_cpp_lookup_slot): Likewise.
523 * cppinit.c (hashtab.h): Include earlier.
524 (initialize_builtins): Pass enum to htab_find_slot.
525 * cpplib.c (hashtab.h): Now include.
526 (do_define, do_undef): Pass enum type to _cpp_lookup_slot.
527 (do_pragma_poison, do_assert): Likewise.
528 * emit-rtl.c (gen_rtx_CONST_INT): Pass enum to
529 htab_find_slot_with_hash.
530 * simplify-rtx.c (cselib_lookup_mem, cselib_lookup): Likewise.
531 * tree.c (type_hash_add): Likewise.
532 (build1): Minor cleanup.
534 * ggc-common.c: Add missing blanks.
535 * print-tree.c (print_node): Print DECL_OFFSET_ALIGN.
536 * tree.h (DECL_OFFSET_ALIGN): Fix typo in comment.
538 * stmt.c (mark_case_node): New function.
539 (mark_case_nesting): Call it.
541 * expmed.c (emit_store_flag): If comparing two-word integer
542 with zero, can optimize NE, EQ, GE, and LT.
544 * c-decl.c (mark_binding_level): Use 'for' instead of `while'.
545 * conflict.c: Minor cleanups.
546 * optabs.c: Add blank line
547 * simplify-rtx.c: Minor cleanups.
549 2000-04-18 Stan Cox <scox@cygnus.com>
551 * gengenrtl.c (genlegend): Fix misspelling.
553 2000-04-18 Robert Lipe <robertlipe@usa.net>
555 * configure.in (ENUM_BITFIELDS_ARE_UNSIGNED): Added. Check that
556 bitfields of the host compiler are not signed quantities.
557 * config.in: Regenerate.
558 * configure: Regenerate.
559 * system.h (USE_ENUM_BITFIELDS): Added.
560 (ENUM_BITFIELDS): Added.
561 * rtl.h (rtx_def): Members `code', `mode', now ENUM_BITFIELD.
562 (SHORT_ENUM_BUG): Deleted.
563 * tree.h (tree_common): Members `code', `mode', `built_in_class',
565 * config/i386/xm-sco.h (ONLY_INT_FIELDS): Deleted.
566 (CODE_FIELD_BUG): Likewise.
567 * config/m68k/x-apollo68 (CC): Deleted SHORT_ENUM_BUG.
569 * config/m68k/x-ccur (X_CFLAGS): Likewise.
571 2000-04-18 Mark Mitchell <mark@codesourcery.com>
573 * cpplex.c (_cpp_lex_token): Don't call CPP_BUMP_LINE when the
576 2000-04-17 Zack Weinberg <zack@wolery.cumb.org>
578 * cppexp.c (lex): Don't assume tokens are NUL terminated.
579 * cpplib.c (do_include, do_import, do_include_next,
580 read_line_number, detect_if_not_defined): Likewise.
581 * cpphash.c (collect_expansion): Likewise.
582 (special_symbol, _cpp_macroexpand): Check return from
584 * cpphash.h (CPP_NUL_TERMINATE, CPP_NUL_TERMINATE_Q): Delete
585 macros. Delete all uses.
587 * gcc.dg/cpp-mi.c: Add two more test cases.
588 * gcc.dg/cpp-mind.h, gcc.dg/cpp-mindp.h: New files.
590 2000-04-17 Richard Henderson <rth@cygnus.com>
592 * bb-reorder.c (fixup_reorder_chain): Don't look up new block again.
593 (reorder_basic_blocks): If no epilogue in rtl, force last block last.
595 2000-04-17 Mark Mitchell <mark@codesourcery.com>
597 * function.c (expand_function_start): Use hard_function_value to
598 compute the RTL to use for DECL_RESULT.
600 Mon Apr 17 23:35:29 MET DST 2000 Jan Hubicka <jh@suse.cz>
602 * i386.c (athlon_cost): Fix lea, divide and XFmode move costs.
603 (x86_integer_DFmode_moves, x86_partial_reg_dependency,
604 x86_memory_mismatch_stall): New global variables.
605 (ix86_adjust_cost): Handle MEMORY_BOTH on places MEMORY_STORE was only
606 alloved; fix load penalties for Athlon.
607 * i386.h (x86_integer_DFmode_moves, x86_partial_reg_dependency,
608 x86_memory_mismatch_stall): Declare.
609 (TARGET_INTEGER_DFMODE_MOVES, TARGET_PARTIAL_REG_DEPENDENCY,
610 TARGET_MEMORY_MISMATCH_STALL): New.
611 * i386.md (athlon scheduling parameters): Fix latencies according to
612 Athlon Optimization Manual.
613 (sahf, xchg, fldcw, leave instruction patterns): Set athlon_decode to
615 (fsqrt instruction patterns): Set athlon_decode to direct.
616 (movhi_1): Promote for TARGET_PARTIAL_REG_DEPENDENCY and for
617 PARTIAL_REGISTER_STALL with !TARGET_HIMODE_MATH machines.
618 (movqi_1): Handle promoting correctly for TARGET_PARTIAL_REG_DEPENDENCY
619 and TARGET_PARTIAL_REGISTER_STALL machines.
620 (pushdf_nointeger): New pattern.
621 (pushdf_integer): Rename from pushdf.
622 (movdf_nointger): Enable for !TARGET_INTEGER_DFMODE_MOVES machines.
623 (movdf_intger): Disable for !TARGET_INTEGER_DFMODE_MOVES machines.
625 2000-04-17 Richard Henderson <rth@cygnus.com>
627 * loop.c (canonicalize_condition): Add WANT_REG argument.
628 Stop the search if we match it.
629 * expr.h (canonicalize_condition): Update decl.
630 * predict.c (expected_value_to_br_prob): Use it. Track last
632 (find_expected_value): Remove.
634 * reorg.c (mostly_true_jump): Always use BR_PROB if present.
636 2000-04-17 Zack Weinberg <zack@wolery.cumb.org>
638 * aclocal.m4 (AM_GNU_GETTEXT): Don't AC_REQUIRE([AC_FUNC_MMAP]).
639 (AC_FUNC_MMAP_FILE): New macro, tests read-only private map of
641 * configure.in: Call AC_FUNC_MMAP_FILE.
642 * configure: Regenerate.
643 * config.in: Regenerate.
645 * intl/loadmsgcat.c: Test HAVE_MMAP_FILE not HAVE_MMAP.
646 * fixinc/fixincl.c: Likewise.
648 2000-04-17 Richard Henderson <rth@cygnus.com>
650 * builtins.c (expand_builtin_expect): New.
651 (expand_builtin): Call it.
652 * builtins.def (BUILT_IN_EXPECT): New.
653 * c-common.c (c_common_nodes_and_builtins): Declare __builtin_expect.
654 * extend.texi: Document it.
656 * predict.c (expected_value_to_br_prob): New.
657 (find_expected_value): New.
658 * basic-block.h (expected_value_to_br_prob): Declare.
659 * toplev.c (rest_of_compilation): Invoke it.
661 * rtl.h (NOTE_EXPECTED_VALUE): New.
662 (NOTE_INSN_EXPECTED_VALUE): New.
663 * rtl.c (note_insn_name): Update.
664 * print-rtl.c (print_rtx): Reorg NOTE_LINE_NUMBER special
665 cases; handle NOTE_INSN_EXPECTED_VALUE.
667 2000-04-17 Jakub Jelinek <jakub@redhat.com>
669 * config/sparc/sparc.c (eligible_for_sibcall_delay): Cannot use
670 leaf sibcall delay slot if flag_pic.
671 (output_sibcall): Always emit call for leaf sibcall if flag_pic.
673 2000-04-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
675 * Makefile.in (stmp-fixproto): Acknowledge errors in fixproto.
677 * fixproto: If fix-header fails, exit with an error.
679 Mon Apr 17 14:59:36 MET DST 2000 Jan Hubicka <jh@suse.cz>
681 * cse.c (struct check_depdendence_data): New.
682 (check_dependence): New function.
683 (invalidate): Use check_depdenence.
685 2000-04-16 Mark Mitchell <mark@codesourcery.com>
687 * dwarf2out.c (DWARF_CIE_DATA_ALIGNMENT): Adjust, now that
688 UNITS_PER_WORD is unsigned.
690 * tree.h (struct tree_common): Remove misleading comment.
692 2000-04-16 Dave Pitts <dpitts@cozx.com>
694 * Makefile.in ($(srcdir)/c-parse.y: c-parse.in): Enclose the whole
695 message in quotes. Otherwise, IBM's make program treats the '#' as the
696 start of a comment and ignores the remainder of the line.
698 * c-lex.c (yylex): Change for EBCDIC, lower case characters preceed
700 * cccp.c (initialize_char_syntax): Allow for holes in EBCDIC.
701 * cexp.y (initialize_random_junk): Likewise.
702 * cppfiles.c (find_include_file): Cast alloca return value.
703 * cppinit.c (initialize_standard_includes): Likewise.
704 * cpplib.c (cpp_define, cpp_undef): Likewise.
705 * defaults.h (ASM_OUTPUT_ASCII): Use ISPRINT.
706 * final.c (output_asm_insn): Allow for holes in EBCDIC.
707 * fold-const.c (CHARMASK): New.
708 (real_hex_to_f): Use it.
709 * real.c (CHARMASK): New.
710 (etoasc, asctoeg): Use it.
711 (asctoeg): EBCDIC lower case characters preceed upper case.
713 * i370.c (mvs_add_label): Change spacing for coding conventions.
714 * i370.h (ASM_OUTPUT_CASE_LABEL): Change to the data CSECT for the
715 outputing case vectors.
716 (ASM_OUTPUT_CASE_END): New, put assembler back into code CSECT.
717 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove page check,
718 since vector in in the data CSECT.
719 (ASM_OUTPUT_REG_POP, ASM_OUTPUT_REG_PUSH): Restore to correct operation.
720 * i370.md (Many patterns): Put the length in the XL directives.
721 (movdi): Put back STM and MVC in definition.
722 (floatsidf2): Correct TARGET_ELF_ABI pattern and add back the LE370
723 pattern using the TCA.
724 * oe.h (CPP_SPEC): Added to allow trigraphs.
725 * xm-oe.h (HOST_BITS_PER_LONGLONG): Change to 32. IBM's compiler does
726 not support the "long long" type.
728 2000-04-16 Mark Mitchell <mark@codesourcery.com>
730 * config/mips/mips-protos.h (mips_legitimate_address_p): New
732 (mips_reg_mode_ok_for_base_p): Likewise.
733 * config/mips/mips.h (REG_OK_STRICT_P): Don't define.
734 (REG_OK_FOR_INDEX_P): Define unconditionally.
735 (REG_MODE_OK_FOR_BASE_P): Use mips_reg_mode_ok_for_base_p.
736 (GO_IF_LEGITIMATE_ADDRESS): Use mips_legitimate_address_p.
737 * config/mips/mips.c (mips16_simple_memory_operand): Adjust now
738 that GET_MODE_SIZE is unsigned.
739 (mips_reg_mode_ok_for_base_p): Define.
740 (mips_legitimate_address_p): Likewise. Adjust now
741 that GET_MODE_SIZE is unsigned.
742 (block_move_loop): Make the number of bytes unsigned.
743 (expand_block_move): Likewise.
744 (function_arg): Make the loop counter unsigned to match the
747 2000-04-16 Richard Henderson <rth@cygnus.com>
749 * rtl.h (enum insn_note): New enumeration. Subsume
750 NOTE_INSN_DELETED and friends.
751 (GET_NOTE_INSN_NAME): Adjust index by NOTE_INSN_BIAS.
752 * rtl.c (note_insn_name): Tweak string order.
754 2000-04-15 Zack Weinberg <zack@wolery.cumb.org>
756 * cpplex.c (_cpp_read_and_prescan): Enlarge len by setting it
759 * cpplex.c (output_line_command): Remove debugging prints.
760 (cpp_output_tokens): Don't write out a zero-length buffer or
761 try to see if it has a newline in it.
762 (_cpp_expand_to_buffer): Copy the source buffer before pushing.
763 (_cpp_read_and_prescan): Move shift-down of pushback bytes to
764 the end of the loop. Use memmove. Don't read past the end of
765 the buffer. Remove trailing newlines from error messages.
767 2004-04-16 Neil Booth <NeilB@earthling.net>
769 * cpphash.h (SYNTAX_INCLUDE, SYNTAX_ASSERT, directive_handler): new.
770 * cpplib.c: Add new syntax flags to directive table, and
773 2000-04-15 Ulrich Drepper <drepper@redhat.com>
775 * i386.c (ix86_expand_epilogue): Yes, the x86 can pop 64k at once
778 2000-04-15 David Edelsohn <edelsohn@gnu.org>
780 * toplev.c (display_help): Prefix "f" to "sched-verbose=".
781 * haifa-sched.c: Update -fsched-verbose comments to use "=".
783 Sat Apr 15 10:59:19 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
785 * Makefile.in (ggc-page.o): Now includes toplev.h.
786 * ggc-page.c (toplev.h): Now included.
787 (gc_time): Remove declaration.
788 (ggc_collect): TIME now long.
789 * toplev.c (parse_time, varasm_time, gc_time): Still global; all
791 * toplev.h (gc_time, parse_time, gc_time): New declarations.
793 * toplev.c: Make *_time variable long to reduce chance of overflow.
794 (TIMEVAR): Likewise for `otime'.
795 (print_time): Arg is now long; compute percentage in FP and round.
796 * toplev.h (print_time): Arg is long.
798 * tree.c: Minor whitespace changes.
800 * configure.in (alpha*-*-*): Add config/alpha/t-alpha.
801 * configure: Rebuilt.
802 * libgcc2.c (__fixunstfDI): Renamed from __fixunstfdi.
803 (__fixunsxfDI): Renamed from __fixunsxfdi.
804 (__fixunsdfDI): Renamed from __fixunsdfdi.
805 (__fixunssfDI): Renamed from __fixunssfdi.
806 (__floatdisf): Use proper type in REP_BIT macro.
807 (__fixunsxfSI): Renamed from __fixunsxfsi.
808 (__fixunsdfSI): Renamed from __fixunsdfsi.
809 (__fixunssfSI): Renamed from __fixunssfsi.
810 * libgcc2.h: Add cases for MIN_UNITS_PER_WORD > 4.
811 Change location of macros and upper-case some names as above.
812 * longlong.h ([alpha]): Use PARAMS, not __P in decl of __udiv__qrnnd.
813 * config/alpha/t-alpha, config/alpha/qrnnd.asm: New files.
815 * varasm.c (assemble_variable): Add cast to remove warning.
816 (immed_real_const_1): Only use CONST[01]_RTX if not in nested function.
818 * flow.c (count_basic_blocks, find_basic_blocks_1): Remove last change.
819 * optabs.c (emit_libcall_block): If have REG_EH_REGION, update
822 2000-04-15 Richard Earnshaw (rearnsah@arm.com)
824 * emit-rtl.c (unshare_all_rtl_again): Unmark everything, then
825 call unshare_all_rtl.
827 * arm.md (movhi): REGNO_POINTER_ALIGN is now bits.
829 Fri Apr 14 16:58:45 2000 Jim Wilson <wilson@cygnus.com>
831 * config/ia64/lib1funcs.asm (__divdi3, __moddi3, __udivdi3, __umoddi3):
832 Use .s1 not .s0 for all FP instructions.
834 2000-04-14 Zack Weinberg <zack@wolery.cumb.org>
836 * cpplex.c (cpp_output_tokens, cpp_scan_buffer_nooutput): New public
838 (safe_fwrite, output_line_command): New static functions.
839 (cpp_expand_to_buffer): Now private to cpplib.
840 (cpp_scan_buffer): Take a printer.
842 * cpphash.h: Update prototypes.
843 * cpplib.h: Update prototypes.
845 (cpp_buffer): Remove last_nominal_fname.
846 (cpp_reader): Remove lineno.
848 * cppmain.c: Use a cpp_printer.
849 * fix-header.c: No need to inhibit line commands. Call
850 cpp_start_read with no printer.
852 * cpperror.c (cpp_notice_from_errno): Provide default name.
853 * cppfiles.c (make_IHASH, _cpp_fake_ihash): New functions.
854 (find_include_file, cpp_read_file): Use make_IHASH.
855 (file_cleanup): Set control_macro and clear
856 input_stack_listing_current here.
857 (_cpp_execute_include): Don't output entering-file marker.
858 * cpphash.c (special_symbol): Look for the line number in the
859 buffer, not the reader.
860 (_cpp_macroexpand): No need to disable line commands.
861 (_cpp_dump_definition): No need to generate line commands.
862 (dump_hash_helper): Remove excess newline from output.
863 * cppinit.c (dump_special_to_buffer): No need to generate line
865 (cpp_printer_init): New.
866 (cpp_start_read): Take a printer, and start it up if it's not
867 NULL. No need to generate line commands.
868 (cpp_finish): Expect no buffers stacked at all. Take a
869 printer argument, and flush the output buffer if it's not
871 * cpplex.c (_cpp_lex_token): Return EOF if there's no buffer.
872 Don't put two hashes at the beginning of an assertion.
873 (cpp_get_token): Don't increment pfile->lineno or emit line
874 commands here. Return EOF if there's no buffer when we get
876 * cpplib.c (do_define, skip_if_group):
877 No need to disable line commands.
878 (_cpp_output_line_command): Delete function.
879 (do_line): Don't emit line commands here, but set things up so
880 they will be emitted if necessary. Use _cpp_fake_ihash to
881 make unique nominal_fnames if necessary.
882 (do_elif, do_else, _cpp_handle_eof): Call cpp_error_with_line
883 with 0 for column, not -1.
884 (_cpp_handle_eof): Don't set the control macro here. Don't
885 clear input_stack_listing_current here. Don't emit line
888 2000-04-14 Geoff Keating <geoffk@cygnus.com>
890 * config/rs6000/sysv4.h (LINK_START_SOLARIS_SPEC): Define to empty
891 always, use the default SVR4 start address.
893 * config/rs6000/linux.h (LINK_SPEC): Don't define.
894 (LINK_SHLIB_SPEC): Define.
895 (LINK_START_DEFAULT_SPEC): Define.
896 (LINK_OS_DEFAULT_SPEC): Define.
898 * config/rs6000/sysv4.h (ENDFILE_SPEC): Use the %(endfile_*) macros.
900 * config/rs6000/eabi.asm (__eabi): Call __init rather than
901 __do_global_ctors to handle constructors.
902 * config/rs6000/sysv4.h (STARTFILE_ADS_SPEC): Use crtbegin.
903 (STARTFILE_YELLOWKNIFE_SPEC): Likewise.
904 (STARTFILE_MVME_SPEC): Likewise.
905 (STARTFILE_SIM_SPEC): Likewise.
906 (ENDFILE_ADS_SPEC): Use crtend.
907 (ENDFILE_YELLOWKNIFE_SPEC): Likewise.
908 (ENDFILE_MVME_SPEC): Likewise.
909 (ENDFILE_SIM_SPEC): Likewise.
910 (STARTFILE_SOLARIS_SPEC): Use crtbegin/crtbeginS.
911 (ENDFILE_SOLARIS_SPEC): Use crtend/crtendS.
912 (STARTFILE_LINUX_SPEC): Use crtbeginS for shared objects.
913 (ENDFILE_LINUX_SPEC): Use crtendS for shared objects.
914 * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Don't build eabi-ctors.o.
915 (EXTRA_MULTILIB_PARTS): Build crtbeginS/crtendS.
916 (CRTSTUFF_T_CFLAGS_S): Define.
917 * config/rs6000/eabi-ctors.c: Delete.
919 * config/rs6000/eabi-ci.asm (__init): Align stack to 16-byte
922 * config/rs6000/eabi-cn.asm (__init): Allow for 16-byte stack frame.
926 Fri Apr 14 16:09:02 2000 Jim Wilson <wilson@cygnus.com>
928 * combine.c (force_to_mode, case LSHIFTRT): Check that shift shift
929 plus mask size is smaller or equal to the mode size.
931 Fri Apr 14 18:07:30 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
933 * print-rtl.c (print_rtx, case NOTE): Don't blow up if NOTE_BASIC_BLOCK
936 * expr.c (reload.h): Now included.
937 (emit_block_move): Set volatile_ok when checking for movstr.
938 (emit_move_1): Check for replacements in addresses in multi-word case.
939 * Makefile.in (expr.o): Now includes reload.h.
941 * flow.c (count_basic_blocks): Remove unused var PREV_CALL.
942 Never have a LIBCALL end a basic block.
943 (find_basic_blocks_1): Likewise.
944 Reorganize CALL_INSN cases.
946 * sbitmap.h (EXECUTE_IF_SET_IN_SBITMAP): Revert last change.
948 Fri Apr 14 10:54:22 2000 Jim Wilson <wilson@cygnus.com>
950 * config/ia64/lib1funcs.asm (__ia64_nonlocal_goto): Drop obsolete
951 completers from mov.ret instruction.
953 2000-04-14 Richard Henderson <rth@cygnus.com>
955 * fold-const.c (extract_muldiv): Don't distribute and widen
956 multiply across plus for non-sizetype unsigned types.
958 2000-04-14 Richard Henderson <rth@cygnus.com>
960 * flow.c (find_auto_inc): Don't autoinc eliminable registers.
961 If the original source is dead in the incr insn, it's dead now.
963 Fri Apr 14 07:40:32 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
965 * stor-layout.c (layout_decl): Properly compare KNOWN_ALIGN to
966 see if DECL_BIT_FIELD needs to still be set.
968 * tree.h (struct tree_type): Make PRECISION 9 bits and MODE 7.
970 * dbxout.c (dbxout_type, case INTEGER_TYPE): Don't call
971 print_int_cst_octal with something that's not an INTEGER_CST.
973 * config/alpha/alpha.c (alpha_emit_floatuns): Ensure we pass a REG
974 and not a SUBREG to a FLOAT rtl.
976 Thu Apr 13 19:39:56 2000 Clinton Popetz <cpopetz@cygnus.com>
978 * emit-rtl.c (try_split): Avoid infinite loop if the split
979 results in a sequence that contains the original insn.
981 2000-04-13 Andreas Jaeger <aj@suse.de>
983 * config/mips/mips.c (expand_block_move): Pass alignment
984 argument to move_by_pieces in bits, not bytes.
986 * config/mips/linux.h (CPP_PREDEFINES): Also define __PIC__ and
987 __pic__ for little endian.
989 2000-04-13 Andreas Jaeger <aj@suse.de>
991 * config/i386/i386-protos.h: Add prototype for
992 uno_comparison_operator.
994 Thu Apr 13 15:55:08 MET DST 2000 Jan Hubicka <jh@suse.cz>
996 * alias.c (nonlocal_reference_p): Take care of CALL_INSNS's fusage.
997 * calls.c (ECF_PURE): New flag.
998 (emit_call_1): Handle ECF_PURE calls.
999 (initialize_argument_information): Unset ECF_PURE flag too.
1000 (precompute_arguments): Precompute for ECF_PURE too.
1001 (expand_call): Handle ECF_PURE calls too.
1002 (emit_library_call_value_1): Rename no_queue argument to fn_type,
1003 accept value of 2 as pure function.
1004 (emit_library_call_value, emit_library_call): Rename no_queue argument
1006 * optabs.c (prepare_cmp_insn): Pass fn_type 2 to memcmp call.
1008 * tree.h (DECL_IS_PURE): New macro.
1009 (struct tree_decl): Add pure_flag.
1010 * c-common.c (enum attrs): Add attribute "pure".
1011 (init_attributes): Initialize attribute "pure"
1012 (decl_attributes): Handle attribute "pure".
1013 * extend.texi (Attribute "pure"): Document.
1014 * calls.c (expand_call): Add (mem:BLK (scratch)) to "equal from"
1016 (flags_from_decl_or_type): Support attribute "pure".
1018 2000-04-13 Jason Merrill <jason@casey.cygnus.com>
1020 * cpplex.c (_cpp_lex_token): Handle digraphs. Don't null-terminate
1021 the token except for numbers and identifiers.
1023 Thu Apr 13 00:09:16 EDT 2000 John Wehle (john@feith.com)
1025 * i386.c (ix86_expand_binary_operator,
1026 ix86_expand_unary_operator): Check no_new_pseudos
1027 instead of reload_in_progress and reload_completed.
1028 (ix86_split_ashldi, ix86_split_ashrdi,
1029 ix86_split_lshrdi): Check no_new_pseudos instead
1030 of reload_completed.
1032 2000-04-12 Jeffrey A Law (law@cygnus.com)
1034 * function.c (purge_addressof): Unshare any shared rtl created by
1035 purge_addressof and its children.
1037 2000-04-12 Mark Mitchell <mark@codesourcery.com>
1039 * function.c (aggregate_value_p): VOID_TYPE nodes are never
1042 2000-04-05 Andreas Jaeger <aj@suse.de>
1044 * config/mips/linux.h (SUBTARGET_ASM_SPEC): Use proper flags if
1045 not compiling PIC code, add flags for mabi=64.
1046 (SUBTARGET_CPP_SIZE_SPEC): New.
1047 (SUBTARGET_CPP_SPEC): New.
1048 (CPP_PREDEFINES): Define __PIC__ and __pic__. PIC code is default
1049 for MIPS/Linux and lots of code needs these defines.
1051 Wed Apr 12 22:44:11 2000 Hans-Peter Nilsson <hp@axis.com>
1053 * reorg.c (fill_slots_from_thread): Check side_effects_p when
1054 trying the "opposite arithmetic" approach.
1056 Wed Apr 12 20:51:20 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
1058 * sh.h (STRUCT_VALUE): Just 0 for TARGET_HITACHI.
1059 (struct sh_args): Add new field force_mem.
1060 (INIT_CUMULATIVE_ARGS): Initialize it.
1061 (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Act on it.
1063 Wed Apr 12 17:20:41 MET DST 2000 Jan Hubicka <jh@suse.cz>
1065 * calls.c (expand_call): Do not reverse args in "equal from" field.
1066 (emit_library_call_value_1): Emit_libcall_block for const and pure
1069 Wed Apr 12 16:00:25 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
1071 * reload1.c (reload_combine): Don't enable optimization for fixed
1072 registers when encountering a BARRIER.
1074 Wed Apr 12 15:54:11 MET DST 2000 Jan Hubicka <jh@suse.cz>
1076 * builtins.c (expand_builtin_memcmp): Do expansion even with
1077 !HAVE_cmpstrsi, do libcall when gen_strcmpsi fails.
1079 * calls.c (expand_call): Do NO_DEFER_POP unconditionally once
1080 stack is propertly aligned; add sanity checking for aligned
1082 (expand_library_call_value_1): Add sanity checking for aligned
1085 Wed Apr 12 07:51:54 2000 Catherine Moore <clm@cygnus.com>
1087 * calls.c (emit_library_call_value_1): Change 3rd arg to
1088 locate_and_pad_parm to disregard the setting of partial.
1090 Wed Apr 12 08:47:38 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1092 * tree.c (unsave_expr_now_r, unsafe_for_reeval): Properly do TREE_LIST.
1094 * print-rtl.c (print_rtx): For CALL_PLACEHOLDER, output the
1095 CALL_INSN from the normal case.
1097 Fri Apr 7 12:23:04 MET DST 2000 Jan Hubicka <jh@suse.cz>
1099 * i386.c (x86_sub_esp_4, x86_sub_esp_8, x86_add_esp_4, x86_add_esp_8):
1100 New global variables.
1101 (ix86_emit_epilogue_adjustment): Do not attempt to use pop for the
1103 * i386.h (x86_sub_esp_4, x86_sub_esp_8, x86_add_esp_4, x86_add_esp_8):
1105 (TARGET_SUB_ESP_4, TARGET_SUB_ESP_8, TARGET_ADD_ESP_4,
1106 TARGET_ADD_ESP_8): New macros.
1107 * i386.md: Add peep2s to convert esp adjustments to push and pop
1109 (pushsi_prologue, popsi_epilogue): New patterns.
1111 2000-04-12 Jakub Jelinek <jakub@redhat.com>
1113 * real.c (toe64): Remove stale #endif from the last change.
1115 2000-04-12 Stephen L Moshier <moshier@mediaone.net>
1117 * real.h (MAX_LONG_DOUBLE_TYPE_SIZE): Comment.
1118 * real.c (toe64): Revert previous change.
1120 2000-04-12 Jakub Jelinek <jakub@redhat.com>
1122 * objc/objc-act.c: Include ggc.h.
1123 (objc_tree_index, objc_global_trees): Convert most of the
1124 static tree variables into a static array with previous names
1126 (objc_ellipsis_node): New variable.
1127 (lang_init): Call objc_act_parse_init and c_parse_init.
1128 Create objc_ellipsis_node.
1129 (build_selector_translation_table): Use objc_ellipsis_node instead
1131 (hack_method_prototype): Likewise.
1132 (get_arg_type_list): Likewise.
1133 (start_method_def): Likewise.
1134 (continue_method_def): Likewise.
1135 (gen_method_decl): Likewise.
1136 (ggc_mark_imp_list): New function.
1137 (ggc_mark_hash_table): New function.
1138 (objc_act_parse_init): New function.
1139 * objc/objc-act.h (objc_ellipsis_node): Add extern variable.
1140 * c-parse.in (c_parse_init): For objc add roots of objc specific
1141 local tree variables.
1142 * objc/objc-parse.y: Rebuilt.
1143 * objc/objc-parse.c: Rebuilt.
1144 (opt_parm_list): Use objc_ellipsis_node instead of (tree)1.
1146 Wed Apr 12 01:00:44 EDT 2000 John Wehle (john@feith.com)
1148 * cse.c (delete_trivially_dead_insns): Also delete insns
1149 that copy a register to itself where the destination is
1152 2000-04-11 Richard Henderson <rth@cygnus.com>
1154 * flow.c (struct propagate_block_info): Add new_dead, new_live.
1155 (propagate_block): Initialize them. Use them in parallel instead
1156 of one tmp variable, ie revert much of the 0408 and 0407 functional
1157 changes, but keep the structural changes.
1158 (mark_set_regs): Take new_dead from propagate_block_info instead.
1159 (mark_set_1, mark_set_reg): Likewise.
1160 (mark_used_regs): Likewise with new_live.
1161 (mark_used_reg): Likewise. Revert 0408 change.
1163 2000-04-11 Nick Clifton <nickc@cygnus.com>
1165 * config/arm/arm.h: (INCOMING_RETURN_ADDR_RTX): Remove Dwarf2
1167 (DWARF_FRAME_RETURN_COLUMN): Remove Dwarf2 restriction.
1169 2000-04-11 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
1171 * config/elfos.h (SELECT_SECTION): Decide whether to use a data or
1172 const section to output a CONSTRUCTOR based on the same conditions
1175 Tue Apr 11 09:55:59 2000 Jeffrey A Law (law@cygnus.com)
1177 * pa/long-double.h (FIX_TRUNCTFSI2_LIBCALL): Tweak for PA64.
1178 * pa/pa-protos.h (output_call): Add additional argument indicating
1179 if the call is a sibling/tail call.
1180 (compute_zdepdi_operands, output_64bit_and): Prototype new functions.
1181 (compute_64bit_ior, cmpib_comparison_operator): Likewise.
1182 (function_arg, function_arg_partial_nregs): Likewise
1183 * pa/pa.c (override_options): Always set flag_pic for TARGET_64BIT.
1184 (emit_move_sequence): Zero extend certain constants as needed
1186 (compute_zdepdi_operands, output_64bit_and): New functions.
1187 (output_64bit_ior, function_arg): Likewise.
1188 (cmpib_comparison_operator, function_arg_partial_nregs): Likewise.
1189 (compute_frame_size, hppa_expand_prologue): Handle TARGET_64BIT.
1190 (hppa_expand_epilogue, return_addr_rtx, hppa_va_arg): Likewise.
1191 (hppa_builtin_saveregs, output_cbranch, output_bb): Likewise.
1192 (output_bvb): Likewise.
1193 (output_millicode_call): Return pointer is in %r2 for TARGET_64BIT.
1194 (output_call): New argument 'sibcall'. Generate sibcall sequences
1196 (print_operand); Handle cases 'Q', 'p', and 'z' for TARGET_64BIT. For
1197 (ouput_arg_descriptor): Do not emit argument descriptors for
1199 * pa/pa.h (TARGET_PA_11, TARGET_PA_20): Only define if not already
1201 (TARGET_64BIT, PROMOTE_FUNCTION_RETURN): Define.
1202 (FUNCTION_OK_FOR_SIBALL): Define.
1203 (CPP_PA10_SPEC, CPP_PA11_SPEC, CPP_PA20_SPEC): Define.
1204 (CPP_CPU_DEFAULT_SPEC, SUBTARGET_EXTRA_SPECS, EXTRA_SPECS): Likewise.
1205 (CPP_SPEC): Use new spec infrastructure.
1206 (BITS_PER_WORD, UNITS_PER_WORD): Handle TARGET_64BIT.
1207 (STACK_BOUNDARY, FUNCTION_BOUNDARY, PIC_OFFSET_TABLE_REGNUM): Likewise.
1208 (RETURN_IN_MEMORY, EXTRA_CONSTRAINT, FIRST_PARM_OFFSET): Likewise.
1209 (REG_PARM_STACK_SPACE, STACK_POINTER_OFFSET): Likewise.
1210 (STACK_DYNAMIC_OFFSET, FUNCTION_VALUE): Likewise.
1211 (FUNCTION_ARG_PASS_BY_REFERENCE, FUNCTION_ARG_CALLEE_COPIES): Likewise.
1212 (TRAMPOLINE_TEMPLATE, TRAMPOLINE_SIZE): Likewise.
1213 (INITIALIZE_TRAMPOLINE, LEGITIMATE_CONSTANT_P): Likewise.
1214 (CONST_OK_FOR_LETTER_P, MOVE_RATIO): Likewise.
1215 (FUNCTION_ARG); Call out to C code.
1216 (FUNCTION_ARG_PARTIAL_NREGS): Likewise.
1217 (MAX_BITS_PER_WORD, MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Define.
1218 (MIN_UNITS_PER_WORD): Likewise.
1219 * pa/pa.md (cmpdi): New expander.
1220 (scc patterns, movstrsi): Not available for TARGET_64BIT.
1221 (64bit conditional arithmetic): New patterns.
1222 (absdi2, smindi3, umindi3, smaxdi3, umaxdi3): New patterns.
1223 (movsicc): Not available if modes on all the operands to not match.
1224 (movdicc): New expander and associated patterns.
1225 (64bit branches): New patterns.
1226 (pre_load, post_store): Generate appropriate code for TARGET_64BIT.
1227 (pre_ldd, post_std): New patterns.
1228 (64bit addil, load low part): New patterns.
1229 (special movsf constant): Not available for TARGET_64BIT.
1230 (movsf, movdf expanders): Force constants into memory.
1231 (32bit movdf/movdi patterns): Disable for TARGET_64BIT.
1232 (64bit movdf/movdi patterns): New patterns.
1233 (zero_extendqidi2, zero_extendhidi2, zero_extendsidi2): New patterns
1235 (extendqidi2, extendhidi2, extendsidi2): Similarly.
1236 (adddi3 expander): Allow "arith_operand" for second input.
1237 (32bit adddi3, subdi3, uaddcm): Disable for TARGET_64BIT.
1238 (64bit adddi3, subsi3, uaddcm): New patterns for TARGET_64BIT.
1239 (mulsi3 expander): Revamp slightly so it supports TARGET_64BIT too.
1240 (muldi3): New expander for TARGET_64BIT.
1241 (divsi3, udivsi3, modsi3, umodsi3): Fourth operand must be (reg:SI 2)
1243 (32bit anddi3, iordi3, xordi3, andcm, negdi2, uaddcm): Disable
1244 patterns for TARGET_64BIT.
1245 (64bit anddi3, iordi3, xordi3, andcm, negdi2, uaddcm, shadd): New
1246 patterns for TARGET_64BIT.
1247 (64bit bit insertion/extractions): New patterns for TARGET_64BIT.
1248 (64bit shifts/rotates): New patterns/expanders for TARGET_64BIT.
1249 (sibcall_epilogue): New expander.
1250 (casesi): Tweak for TARGET_64BIT.
1251 (call expanders): Set & use the outgoing argument pointer. Use the
1252 64bit call patterns as needed. Add additional arg to output_call.
1253 (call_internal_reg_64bit, call_value_internal_reg_64bit): New pattern.
1254 (sibcall, sibcall_internal_symref): New expanders.
1255 (sibcall_value, sibcall_value_internal_symref
1256 (interspace_jump): Turn into an expander + matching patterns.
1257 (canonicalize_funcptr_for_compare): Not needed for TARGET_64BIT.
1258 * pa/pa64-regs.h: Eliminate trigraph sequences.
1259 * pa/pa64-start.h (TARGET_PA_20): Fix typo.
1261 2000-04-11 Zack Weinberg <zack@wolery.cumb.org>
1263 * cppexp.c, cpphash.c, cpphash.h, cpplex.c, cpplib.c,
1264 cpplib.h, cppmain.c, fix-header.c, scan-decls.c: Replace
1265 cpp_token with cpp_ttype everywhere.
1266 * cpperror.c, cpphash.c, cpplex.c, cpplib.c, scan-decls.c:
1267 Replace cpp_buf_line_and_col with CPP_BUF_LINE and/or
1268 CPP_BUF_COL. Line and column numbers are unsigned int, not
1270 * cpplex.c (cpp_buf_line_and_col): Delete.
1271 * cpplib.h (struct cpp_buffer, struct cpp_reader): Change
1272 'long lineno' to 'unsigned int lineno'.
1273 (CPP_BUF_LINE, CPP_BUF_COL): New macros.
1275 2000-04-11 Martin v. Löwis <loewis@informatik.hu-berlin.de>
1277 * extend.texi: ISO C99 is not a draft anymore.
1278 * invoke.texi: ISO C++ is not a draft anymore.
1279 * cpp.texi: __cplusplus is required by the ISO standard.
1281 * extend.texi (-fthis-is-variable): Undocument.
1282 * flags.h (warn_template_debugging): Remove declaration.
1283 * gcc.1 (-fall-virtual, -fenum-int-equiv, -fthis-is-variable,
1284 -Wenum-clash, -Wtemplate-debugging): Undocument.
1286 2000-04-10 Nick Clifton <nickc@cygnus.com>
1288 * config/arm/arm.h (HOST_INT): New macro: Declare a HOST_WIDE_INT
1290 (HOST_UINT): New macro: Declare an unsigned HOST_WIDE_INT
1292 (ARM_SIGN_EXTEND): Use HOST_UINT.
1293 (STRIP_NAME_ENCODING): Prevent warnings about redefinitions.
1294 (ASM_OUTPUT_LABELREF): Prevent warnings about redefinitions.
1295 (INCOMING_RETURN_ADDR_RTX): Only define if Dwarf2 is supported.
1296 (DWARF_FRAME_RETURN_COLUMN): Only define if Dwarf2 is supported.
1298 * config/arm/arm.c: (const_ok_for_arm): Use HOST_UINT.
1299 (arm_gen_constant): Use HOST_UINT.
1300 (arm_canonicalize_constant): Use HOST_UINT.
1301 (arm_reload_in_hi): Use HOST_UINT.
1302 (arm_reload_out_hi): Use HOST_UINT.
1303 (output_multi_immediate): Use HOST_UINT.
1304 (int_log2): Use HOST_UINT.
1305 (arm_poke_function_name): Use HOST_UINT.
1306 (arm_output_epilogue): Use arm_volatile_func().
1307 (output_thumb_prologue): Use arm_strip_name_encoding().
1309 Mon Apr 10 15:40:59 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1311 * sbitmap.c (sbitmap_a_subset_b_p): Rework loop to avoid potential
1312 of sequence point problems.
1314 2000-04-10 Nathan Sidwell <nathan@codesourcery.com>
1316 * rtl.def (ASHIFT, ROTATE, ASHIFTRT, LSHIFTRT, ROTATERT):
1318 * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Recomment.
1320 Mon Apr 10 07:21:13 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1322 * sbitmap.h: Whitespace changes and use upper-case macro args.
1323 (struct simple_bitmap_def): All sizes now unsigned.
1324 (EXECUTE_IF_SET_IN_SBITMAP): Internal vars now _X instead of X_.
1325 * sbitmap.c (sbitmap_alloc): N_ELMS now unsigned; also local vars.
1326 (sbitmap_vector_alloc): Parms and local vars now unsigned.
1327 (sbitmap_zero): Cast bzero arg to PTR.
1328 (sbitmap_vector_zero, sbitmap_vector_one): Parm and Local var unsigned.
1329 (sbitmap_union_of_diffs): Change loop index to unsigned and rework
1330 loop to make structure clearer.
1331 (sbitmap_not, sbitmap_difference, sbitmap_a_and_b): Likewise.
1332 (sbitmap_a_or_b, sbitmap_a_subset_b_p, sbitmap_a_or_b_and_c): Likewise.
1333 (sbitmap_a_and_b_or_c): Likewise.
1334 (sbitmap_intersection_of_succs): Minor cleanups.
1335 (sbitmap_intersection_of_preds, sbitmap_union_of_succs): Likewise.
1336 (sbitmap_union_of_preds): Likewise.
1337 (sbitmap_first_set_bit, dump_sbitmap): Local variables now unsigned.
1338 (debug_sbitmap): New function.
1340 * c-convert.c (convert): Handle REFERENCE_TYPE like POINTER_TYPE.
1341 * c-typeck.c (convert_for_assignment): Likewise.
1343 * expmed.c (init_expmed): Don't free objects we make.
1344 * emit-rtl.c (gen_rtx_CONST_INT, init_emit_once): Minor cleanups.
1346 * expr.c (get_inner_reference): Correct some WITH_RECORD_EXPR cases.
1347 (expand_expr, case CONVERT_EXPR): Pass proper alignment to store_field.
1349 * gcse.c (expr_hash_table_size): Now unsigned.
1350 (compute_ae_gen): Local variable `i' now unsigned.
1351 (compute_ae_kill, pre_insert_copies, pre_delete, pre_gcse): Likewise.
1352 (compute_transout, hoist_code): Likewise.
1353 (compute_local_properties): Likewise, also hash_table_size.
1354 (alloc_expr_hash_table): N_INSNS now unsigned.
1355 (delete_null_pointer_checks): Mark arg F as unused.
1357 * regrename.c: Minor cleanups, including chang some variables
1360 2000-04-10 Neil Booth <NeilB@earthling.net>
1362 * cpplex.c (skip_block_comment): Use pointer arithmetic rather
1364 * cpphash.h: (CPP_BUMP_BUFFER_LINE_CUR, CPP_BUMP_LINE_CUR): New.
1366 2000-04-10 Martin v. Löwis <loewis@informatik.hu-berlin.de>
1368 * invoke.texi (-fno-gnu-keywords): Remove classof, headof,
1369 __classof__, and __headof__ from the list of gnu keywords.
1370 (-ansi): Remove -foperator-names from list of implied options.
1371 Do not call it ANSI C++.
1372 (-foperator-names): Document as -fno-operator-names.
1374 2000-04-09 Zack Weinberg <zack@wolery.cumb.org>
1376 * cpphash.c (timestamp): Delete.
1377 (del_HASHNODE): If type is T_MCONST, free value.cpval.
1378 (special_symbol): Remove unnecessary braces. Remove
1379 T_VERSION. Treat T_STDC like T_CONST unless
1380 STDC_0_IN_SYSTEM_HEADERS. Render both __DATE__ and __TIME__
1381 when one is encountered, then convert them into T_MCONST
1383 * cppinit.c (builtin_array): version_string is T_MCONST.
1384 __STDC__ has a "1" in its cpval. Don't have a terminator
1385 entry. Clean up which entries are dumped.
1386 (initialize_builtins): Only __STDC__ gets the special
1387 -traditional treatment. Count the length of builtin_array.
1388 Render version_string here.
1389 * cpphash.h: Remove T_VERSION. Add T_MCONST.
1390 * cpplib.h (struct cpp_reader): Remove timebuf.
1392 2000-04-09 Richard Henderson <rth@cygnus.com>
1394 * genrecog.c (pred): Update comparison_operator for the unordered
1397 * config/i386/i386.c (no_comparison_operator): Disallow unordered
1399 (fcmov_comparison_operator): Allow UNORDERED/ORDERED.
1400 (uno_comparison_operator): New.
1401 (put_condition_code): Handle UNORDERED/ORDERED.
1402 (unsigned_comparison): Likewise.
1403 (ix86_fp_compare_mode): Broken out of ix86_expand_fp_compare.
1404 (ix86_use_fcomi_compare, ix86_prepare_fp_compare_args): Likewise.
1405 (ix86_expand_fp_compare): Use them. Take scratch as argument,
1406 update all callers. Handle all 8 unordered operators.
1407 (ix86_expand_setcc): Lose the unordered argument, update all callers.
1408 (ix86_expand_branch): Likewise. Don't fully expand fp branches.
1409 * config/i386/i386.h (PREDICATE_CODES): Update.
1410 * config/i386/i386-protos.h (ix86_expand_fp_compare): Declare.
1411 (ix86_expand_branch, ix86_expand_setcc): Update.
1412 * config/i386/i386.md (sunordered, sordered): New.
1413 (suneq, sunge, sungt, sunle, sunlt, sltgt): New.
1414 (bunordered, bordered): New.
1415 (buneq, bunge, bungt, bunle, bunlt, bltgt): New.
1416 (*fp_jcc_1, *fp_jcc_2, *fp_jcc_3, *fp_jcc_4): New.
1417 (*fp_jcc_5, *fp_jcc_6, and splitters): New.
1419 2000-04-09 Philip Blundell <philb@gnu.org>
1421 * config/arm/arm.h (ARM_NAME_ENCODING_LENGTHS): Strip `*' too.
1423 Sun Apr 9 15:16:14 EDT 2000 John Wehle (john@feith.com)
1425 * i386.md (fix_truncsfhi2, fix_truncdfhi2,
1426 fix_truncxfhi2): New patterns.
1427 * i386.c (output_fix_trunc): Handle converting to HImode.
1429 2000-04-08 Alex Samuel <samuel@codesourcery.com>
1431 * ssa.c (convert_to_ssa): Eliminate dead code when calling
1433 (convert_from_ssa): Call compute_bb_for_insn before life_analysis.
1434 (for_each_successor_phi): Change parameter to basic_block.
1435 (coalesce_regs_in_successor_phi_nodes): Likewise.
1436 (coalesce_regs_in_copies): Likewise.
1437 (compute_coalesced_reg_partition): Use basic_block instead of index.
1438 * rtl.h (convert_to_ssa): Delete.
1439 (convert_from_ssa): Likewise.
1440 (successor_phi_fn): Likewise.
1441 (for_each_successor_phi): Likewise.
1442 (in_ssa_form): Likewise.
1443 * basic-block.h (convert_to_ssa): Moved from rtl.h.
1444 (convert_from_ssa): Likewise.
1445 (successor_phi_fn): Likewise.
1446 (in_ssa_form): Likewise.
1447 (for_each_successor_phi): Likewise. Change parameter to basic_block.
1448 * flow.c (calculate_global_regs_live): Pass a basic_block to
1449 for_each_successor_phi.
1451 2000-04-08 Richard Henderson <rth@cygnus.com>
1453 * flow.c (mark_used_reg): Use reg_set_p to determine if a register
1454 was modified in the current insn.
1456 2000-04-08 Richard Earnshaw (rearnsha@arm.com)
1458 * arm/thumb.md: Delete.
1459 * arm/thumb-protos.h: Delete.
1461 2000-04-08 Richard Earnshaw (rearnsha@arm.com)
1463 Merge changes from merged-arm-thumb-backend-branch onto trunk.
1465 2000-04-08 Richard Earnshaw (rearnsha@arm.com)
1467 * Merge trunk code from tag merged-arm-thumb-backend-merge_20000408
1470 * arm.md (nop): Use the standard RTL expression. Don't code as a
1472 (*arm_nop, *thumb_nop): Delete.
1474 * arm.c (const_ok_for_arm): Don't use ANSI extensions for defining
1475 constants. Use casts instead.
1476 (arm_gen_constant, arm_rtx_costs, arm_reload_in_hi, arm_reload_out_hi,
1477 output_multi_immediate, arm_poke_function_name): Likewise.
1478 * arm.h (ARM_LEGITIIMIZE_RELOAD_ADDRESS, ARM_SIGN_EXTEND,
1479 MASK_RETURN_ADDDR): Likewise.
1481 2000-03-31 Richard Earnshaw (rearnsha@arm.com)
1483 * Merge trunk code from tag merged-arm-thumb-backend-merge_20000325
1486 * arm.md (eh_epilogue): New function.
1487 * arm.h (struct machine_function): Move to here ...
1488 * arm.c: ... from here.
1489 (arm_output_epilogue): Support epilogues for __builtin_eh_return.
1490 (thumb_exit): Extra parameter eh_ofs. All callers changed.
1491 Handle epilogues for __builtin_eh_return. Make bit-fields unsigned.
1493 2000-03-30 Nick Clifton <nickc@cygnus.com>
1495 * config/arm/semi.h (ASM_SPEC): Restore definition.
1496 (SUBTARGET_EXTRA_ASM_SPEC): Define if not already defined.
1498 * config/arm/elf.h (ASM_SPEC): Restore definition.
1499 (SUBTARGET_EXTRA_ASM_SPEC): Define if not already defined.
1501 * config/arm/arm.h (ASM_SPEC): Remove definition.
1502 (SUBTARGET_EXTRA_ASM_SPEC): Remove definition.
1504 2000-03-26 Bernd Schmidt <bernds@cygnus.co.uk>
1506 * config/arm/arm.c: Disable -fschedule-insns for Thumb.
1508 2000-03-24 Nick Clifton <nickc@cygnus.com>
1510 Various formating tidyups, elimination of compile time
1511 warnings and synchronisation with internal sources:
1513 * config/arm/arm-protos.h (assemble_align): Add prototype.
1514 (gen_rotated_half_load): Rename to arm_gen_rotated_half_load.
1515 (gen_comapre_reg): Rename to arm_gen_compare_reg.
1516 (arm_return_addr_rtx): Rename to arm_return_addr.
1518 * config/arm/arm.c: Include except.h.
1519 Define shorter typenames for strict minipool_node and struct
1521 (arm_return_in_memory): For WinCE return all structures <= 32 bits
1523 (gen_rotated_half_load): Rename to arm_gen_rotated_half_load.
1524 (gen_comapre_reg): Rename to arm_gen_compare_reg.
1526 * config/arm/arm.h (SUBTARGET_EXTRA_ASM_SPEC): Define if not
1528 (ASM_SPEC): Define if not already defined.
1529 (ASM_OUTPUT_DEF_FROM_DECLS): Define.
1531 * config/arm/arm.md: Rename references to gen_rotated_half_load to
1532 arm_gen_rotated_half_load, and references to gen_comapre_reg to
1533 arm_gen_compare_reg.
1534 (indirect_jump): Only accept register operands.
1535 (load_indirect_jump): Keep this pattern since combine can generate
1538 * config/arm/coff.h: Include aout.h.
1539 (MULTILIB_DEFAULTS): Only define if not already defined.
1541 * config/arm/elf.h (ASM_OUTPUT_DEF_FROM_DECLS): Move definition
1542 into arm.h (so that COFF ports can support thumb based aliases).
1543 (ASM_SPEC): Move definition into arm.h
1545 * config/arm/linux-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Remove
1546 redundant apcs spec.
1547 (ASM_SPEC): Move definition to arm.h
1549 * config/arm/semi.h (ASM_SPEC): Move definition to arm.h
1551 * config/arm/unknown-elf.h (ASM_OUTPUT_SECTION_NAME): Add support
1552 for entries in the .bss section
1554 2000-03-23 Nick Clifton <nickc@cygnus.com>
1556 * config/arm/arm.h (THUMB_INITIAL_ELIMINATION_OFFSET): Pass 0
1557 to thumb_far_jump_used_p.
1559 * config/arm/arm-protos.h (thumb_far_jump_used_p): Take a
1560 single integer parameter.
1562 * config/arm/arm.c (struct machine_function): Add two new
1563 fields, 'far_jump_used' and 'arg_pointer_live'.
1564 (thumb_far_jump_used_p): Once the decision has been made that
1565 far jumps might be used, always return true.
1566 If being called from the initial elimination offset macro then
1567 do not bother to perform the test if the arg pointer is not
1569 (thumb_unexpand_epilogue): Pass 1 to thumb_far_jump_used_p().
1570 (output_thumb_prologue): Pass 1 to thumb_far_jump_used_p().
1572 2000-03-23 Richard Earnshaw (rearnsha@arm.com)
1574 * arm.c (output_return_instruction): Handle more cases where we can
1575 return from a function with an ldr instruction.
1576 (arm_output_epilogue): Likewise.
1578 * arm.c (thumb_expand_prologue): Don't clobber the frame pointer
1579 if we need to push a large stack frame and there are no callee-saved
1582 * arm.c (arm_debugger_arg_offset): An offset of 0 is also valid
1583 in ARM code if the frame pointer has been eliminated.
1585 * arm.md (epilogue, *epilogue_insns, consttable_*, align_4): Renumber
1586 unspec_volatile arguments to avoid duplicates.
1587 (consttable_1, consttable_2): Fixes for big-endian mode.
1589 * arm.md (all ARM-mode load insns): Add neg_pool_range attribute
1592 Re-write constant pool code.
1593 * arm.c (minipool_node, minipool_fix): New types.
1594 (minifix): Delete type.
1595 (arm_add_minipool_constant): Delete.
1596 (arm_compute_minipool_offsets, arm_find_barrier,
1597 arm_find_minipool_constant, fixup_compare, sort_fixups): Likewise.
1598 (get_jump_table_size): Now returns HOST_WIDE_INT.
1599 (move_minipool_fix_forward_ref, add_minipool_forward_ref): New
1601 (move_minipool_fix_backward_ref, add_minipool_backward_ref): Likewise.
1602 (assign_minipool_offsets, arm_print_value): Likewise.
1603 (dump_minipool): Rewrite.
1604 (arm_barrier_cost): New function.
1605 (create_fix_barrier): New function.
1606 (push_minipool_barrier): New function.
1607 (push_minipool_fix): Record additional information about the fixup
1609 (note_invalid_constants): Remove push for (UNSPEC 3). Don't
1610 check the mode of what needs fixing.
1611 (arm_reorg): Rewrite.
1613 2000-03-08 Nick Clifton <nickc@cygnus.com>
1615 * config/arm/arm.md (indirect_jump): Force constant addresses into
1618 2000-03-01 Bernd Schmidt <bernds@cygnus.co.uk>
1620 * config/arm/arm.md: Add splitter to turn SF moves into SI moves.
1622 2000-02-24 Nick Clifton <nickc@cygnus.com>
1624 * config/arm/arm.c (thumb_expand_prologue): Make sure that stack
1625 adjust is word aligned.
1626 (thumb_expand_epilogue): Make sure that stack adjust is word
1629 * config/arm/elf.h (ASM_FILE_START): Fix type of version string.
1631 2000-02-24 Bernd Schmidt <bernds@cygnus.com>
1633 * config/arm/arm.h (THUMB_GO_IF_LEGITIMATE_ADDRESS): Allow frame
1634 pointer relative addresses.
1636 2000-02-10 Richard Earnshaw <rearnsha@arm.com>
1638 * arm.c (find_barrier): Find the last barrier within the allowed
1641 2000-02-09 Nick Clifton <nickc@cygnus.com>
1643 * config/arm/arm-protos.h: Replace PROTO with PARAMS.
1645 2000-02-09 Nick Clifton <nickc@cygnus.com>
1647 * config/arm/linux-elf.h (FUNCTION_PROFILER): Rename to
1648 ARM_FUNCTION_PROFILER.
1650 * config/arm/netbsd.h (FUNCTION_PROFILER): Rename to
1651 ARM_FUNCTION_PROFILER.
1653 * config/arm/linux-oldld.h: Imported from mainline sources.
1655 2000-02-07 Nick Clifton <nickc@cygnus.com>
1657 * config/arm/lib1funcs.asm: Merge in thumb functions from
1660 * config/arm/lib1thumb.asm: Delete.
1662 2000-02-04 Nick Clifton <nickc@cygnus.com>
1664 * config/arm/arm.c: Sychronised with current Red hat local
1666 * config/arm/arm.h: Ditto.
1667 * config/arm/arm-protos.h: Ditto.
1669 2000-02-02 Bernd Schmidt <bernds@cygnus.co.uk>
1671 * arm.c (soft_df_operand): Reject SUBREGs containing a constant.
1673 * arm.c (arm_gen_movstrqi): Generate halfword stores rather than two
1676 2000-02-02 Nick Clifton <nickc@cygnus.com>
1678 * config/arm/thumb.c (thumb_exit): Additional fix for same bug.
1680 * config/arm/arm.md (epilogue): Fix rtl checking abort because
1681 (return) was emited using an emit_insn() call.
1683 2000-01-31 Nick Clifton <nickc@cygnus.com>
1685 * config/arm/arm.c (output_thumb_prologue): Fix bug generating
1687 (thumb_exit): Move frame pointer back into hard frame pointer
1688 register if backtracing is being used.
1690 2000-01-13 Richard Earnshaw (rearnsha@arm.com)
1692 * Merge trunk code from tag merged-arm-thumb-backend-merge_20000113
1695 1999-12-15 Bernd Schmidt <bernds@cygnus.co.uk>
1697 * config/arm/arm.md (neg_pool_offset): Provide default for new
1699 (arm_movsi_insn): Add neg_pool_offset attribute.
1700 * config/arm/arm.c (arm_find_barrier): Replace arg FIX with an
1701 rtx for the insn that starts the scan and an unsigned long for its
1702 address. Add MIN_OFFSET and PINSERTED args. All callers changed.
1703 Change scan to ignore insns before MIN_OFFSET. Store size of inserted
1704 instructions in *PINSERTED.
1705 (struct minipool_fixup): Add MIN_ADDRESS elt.
1706 (sort_fixups): Compute it.
1707 (arm_reorg): Changes to support inserting pools before the insn to be
1710 1999-12-08 Bernd Schmidt <bernds@cygnus.co.uk>
1712 * config/arm/elf.h (MULTILIB_DEFAULTS): Add "marm".
1713 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Add "marm".
1714 * config/arm/coff.h (MULTILIB_DEFAULTS): Add "marm".
1716 Wed Nov 3 10:04:07 1999 Nick Clifton <nickc@cygnus.com>
1718 * config/arm/semi.h (TARGET_VERSION): Do not define if already
1720 (TARGET_DEFAULT): Do not define if already defined.
1722 Tue Nov 2 10:37:25 1999 Nick Clifton <nickc@cygnus.com>
1724 * config/arm/arm.md (anddi3): Allow disjoint source operands.
1725 (iordi3): Allow disjoint source operands.
1726 (xordi3): Allow disjoint source operands.
1727 (negdi2): Permit construction for ARM and Thumb.
1728 (arm_negdi2): Renamed version of old negdi2 pattern.
1729 (thumb_negdi2): New pattern: Only permit non-overlapping
1730 source and destination.
1732 Fri Oct 29 18:52:38 1999 Nick Clifton <nickc@cygnus.com>
1734 * config/arm/arm.c (thumb_expand_prologue): Emit a USE of the
1735 scratch low register so that it will not be deleted.
1737 Fri Oct 29 15:23:48 1999 Nick Clifton <nickc@cygnus.com>
1739 * config/arm/pe.h (ARM_PE): Define.
1741 * config/arm/arm.c (arm_valid_machine_decl_attribute): Allow
1742 interfacearm attribute if this is a PE toolchain.
1743 (output_return_instruction): Do not emit anything if the function
1744 has the naked attribute set.
1745 (is_called_in_ARM_mode): If the function has the interfacearm
1746 attribute then return true.
1747 (thumb_expand_prologue): Do not generate a prologue for naked
1749 (thumb_expand_epilogue): Do not generate an epilogie for a naked
1751 (output_thumb_prologue): Do not bother if the function is naked.
1752 Strip PE encoding from function name before emitting.
1754 Thu Oct 28 11:05:13 1999 Richard Earnshaw <rearnsha@arm.com>
1756 * arm.md (pic_load_addr): Fix constraints.
1758 * arm.md (casesi_insn): Fix mis-applied patch.
1760 * arm.md ("core" function unit): Add rules for single- and
1762 (All TARGET_THUMB patterns): Add "type" attribute information
1764 * arm.c (arm_adjust_cost): Reduce the cost of a data dependency if
1765 the following insn is a CALL.
1767 * arm.c (thumb_expand_epilogue): Add a use of the adjusted stack
1769 * arm.h (CONDITIONAL_REGISTER_USAGE): Nail down the
1770 ARM_HARD_FRAME_POINTER_REGNUM when TARGET_APCS_FRAME.
1771 (FRAME_POINTER_REQUIRED): Only check TARGET_APCS_FRAME if TARGET_ARM.
1773 Wed Oct 27 14:40:48 1999 Nick Clifton <nickc@cygnus.com>
1775 * config/arm/linux-gas.h: oops - this file was missed out when the
1776 branch was created...
1778 Tue Oct 26 17:07:38 1999 Richard Earnshaw <rearnsha@arm.com>
1780 * thumb.c: Deleted. Move contents to ...
1782 * t-arm-aout, t-arm-coff, t-arm-elf, t-linux, t-netbsd, t-semi: Remove
1784 * configure.in (arm*-*-*): Remove thumb.o from extra_objs list.
1787 * arm-protos.h: Use RTX_CODE and tidy up long lines. Don't
1788 declare a prototype for asm_output_align();
1790 * arm.c (thumb_condition_code): Delete.
1791 (arm_print_operand): Always use arm_condition_code array.
1793 * arm.c (thumb_return_addr_rtx): Delete.
1794 (arm_save_machine_status, arm_restore_machine_status): Delete.
1795 (arm_init_machine_status, arm_mark_machine_status): New functions.
1796 (arm_init_expanders): Update accordingly.
1797 (arm_return_addr): Renamed from arm_return_addr_rtx. Rewrite.
1798 (thumb_expand_prologue): Delete code referencing thumb_return_addr_rtx.
1799 * arm.h (RETURN_ADDR_RTX): Call arm_return_addr().
1801 Tue Oct 26 13:24:16 1999 Nick Clifton <nickc@cygnus.com>
1803 * configure.in : Fix arm-*-aout target to use new t-arm-aout
1805 * config/arm/t-arm-aout: New file: Makefile script for arm-*-aout
1808 Tue Oct 26 11:27:12 1999 Nick Clifton <nickc@cygnus.com>
1810 * config/arm/thumb.c (output_thumb_prologue): Fix bug creating
1811 stack backtrace structure.
1813 * config/arm/arm-protos.h: Add prototypes for functions defined in
1816 * config/arm/arm.c (arm_override_options): Fix selection of
1817 attributes of default processor.
1819 * config/arm/coff.h: Delete needless #include.
1821 * config/arm/pe.c: Delete unused code.
1823 * config/arm/pe.h (CPP_DEFINES): Delete
1824 (SUBTARGET_CPP_SPEC): Define.
1825 (ASM_DECLARE_FUNCTION_NAME): Use ARM_DECLARE_FUNCTION_NAME.
1827 * config/arm/t-pe: Add -DInhibit_libc to allof libgcc.a to build.
1829 Mon Oct 25 15:42:09 1999 Richard Earnshaw (rearnsha@arm.com)
1831 * arm.h (TARGET_APCS_FRAME): Renamed from TARGET_APCS -- all uses
1833 (CAN_DEBUG_WITHOUT_FP): Define.
1834 (FIXED_REGISTERS): Make r11 call-saved.
1835 (CALL_USED_REGISTERS): Likewise.
1836 (CONDITIONAL_REGISTER_USAGE): Fix r11 if TARGET_APCS_FRAME.
1837 (FRAME_POINTER_REQUIRED): Correct logic for determining when a
1838 frame-pointer is required.
1839 (TARGET_DEFAULT): Make default setting include ARM_FLAG_APCS_FRAME.
1840 * arm.c (arm_override_options): Warn about -mno-apcs-frame and -g
1841 if the target normally needs a stack frame in non-leaf functions.
1842 (use_return_insn): Correct logic for determining when a return
1843 instruction can be used.
1844 (output_return_instruction): Handle the frame-pointer register as
1845 a normal register when not TARGET_APCS_FRAME.
1846 (arm_output_prologue): Likewise.
1847 (arm_output_epilogue): Likewise.
1848 (output_func_epilogue): Likewise.
1849 (arm_expand_prologue): Likewise.
1850 * netbsd.h semi.h (TARGET_DEFAULT): Add ARM_FLAG_APCS_FRAME.
1852 * arm.c (use_return_insn): No need to check floating point regs if
1854 (arm_find_minipool_constant): Correct typo; use GET_CODE to get
1855 the code of value stored in the minipool array.
1856 (arm_add_minipool_constant): Likewise.
1858 2000-04-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1860 * basic-block.h (conflict_graph_enum_fn): K&R fix.
1862 2000-04-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1864 * tree.c (tree_expr_nonnegative_p): New function.
1866 * tree.h (tree_expr_nonnegative_p): Declare.
1868 * c-typeck.c (build_binary_op): Call `tree_expr_nonnegative_p' to
1869 elide some sign_compare warnings.
1870 (build_conditional_expr): Likewise.
1872 Sat Apr 8 00:21:51 EDT 2000 John Wehle (john@feith.com)
1874 * i386.md (ashrsi3, ashrhi3, ashrqi3): Fix typo.
1876 * i386.md (floathisf2, floathidf2, floathixf2): New patterns.
1877 * i386.c (print_operand): Use the proper suffix for a 387 HImode
1878 operand. Abort if a 387 operand has an unsupported size.
1880 2000-04-08 Neil Booth <NeilB@earthling.net>
1882 * cppexp.c (parse_charconst): Null does not end character
1884 * cppinit.c (ISTABLE): Null character handled as whitespace.
1885 * cpplex.c (null_warning): new function.
1886 (skip_string): Emit warning if nulls encountered.
1887 (_cpp_skip_hspace): Emit warning if nulls encountered.
1888 (_cpp_lex_token): Emit warning if nulls encountered. Drop
1892 2000-04-07 Richard Henderson <rth@cygnus.com>
1894 * flow.c (loop_depth): Remove.
1895 (reg_next_use, cc0_live, mem_set_list): Replace with ...
1896 (struct propagate_block_info): New.
1897 (life_analysis): Don't allocate reg_next_use.
1898 (propagate_block_delete_insn): Break out of propagate_block.
1899 Use flow_delete_insn to unlink rather than use NOTE_INSN_DELETED.
1900 (propagate_block_delete_libcall): Likewise.
1901 (propagate_block): Create a propagate_block_info struct to pass
1902 to subroutines. Allocate one not two temporary regsets. Don't
1903 clobber memory for const calls. Look for clobbers in
1904 CALL_INSN_FUNCTION_USAGE.
1905 (mark_set_regs): Recognize COND_EXEC.
1906 (mark_set_reg): Break out of mark_set_1.
1907 (mark_used_reg): Break out of mark_used_regs.
1908 (mark_used_regs): Recognize COND_EXEC.
1909 (insn_dead_p): Use propagate_block_info struct.
1910 (libcall_dead_p, invalidate_mems_from_autoinc): Likewise.
1911 (find_auto_inc, try_pre_increment_1): Likewise.
1912 (print_rtl_with_bb): Dump regs live at end too.
1913 (count_reg_sets_1): Pass in loop_depth.
1914 (count_reg_sets, count_reg_references): Likewise.
1915 (recompute_reg_usage): Provide it.
1917 2000-04-07 Richard Henderson <rth@cygnus.com>
1919 * Makefile.in (conflict.o): Depend on $(RTL_H) and $(BASIC_BLOCK_H)
1922 2000-04-07 Zack Weinberg <zack@wolery.cumb.org>
1924 * cpplib.c (do_elif): Skip the rest of the line if we're
1925 not going to bother evaluating it.
1926 (skip_if_group): Clear pfile->only_seen_white. Reorder loop
1927 to avoid pointless calls to the lexer.
1929 Fri Apr 7 11:50:54 2000 Jim Wilson <wilson@cygnus.com>
1931 * config/ia64/ia64.c: Delete stdio.h and ctype.h includes.
1933 2000-04-07 Jason Merrill <jason@casey.cygnus.com>
1935 * calls.c (expand_call): emit_queue if we're trying a sibcall.
1937 2000-04-07 Jakub Jelinek <jakub@redhat.com>
1939 * config/sparc/t-linux64 (tcrtbeginS.o, tcrtendS.o): Remove.
1941 2000-04-06 Geoff Keating <geoffk@cygnus.com>
1943 * Makefile.in: Build crtbeginS and crtendS like crtbegin and
1944 crtend so they can be multilibbed.
1945 (STAGESTUFF): Remove s-crt and s-crtS.
1947 2000-04-07 Richard Henderson <rth@cygnus.com>
1949 * config/alpha/alpha.c (alpha_emit_conditional_move): Fail
1950 if we discover we need a pseudo and no_new_pseudos is true.
1951 * config/alpha/alpha.md (ne:DI insn): New.
1952 (trunctfsf2, sne): Emit NE instead of non-canonical LTU.
1954 2000-04-07 Richard Henderson <rth@cygnus.com>
1956 * rtl.def (COND_EXEC): New.
1957 * rtl.h (COND_EXEC_TEST, COND_EXEC_CODE): New.
1958 * tm.texi (MAX_CONDITIONAL_EXECUTE): Document.
1960 * genconfig.c (have_cond_arith_flag): Remove.
1961 (have_cond_exec_flag): New.
1962 (walk_insn_part): Detect COND_EXEC, not arithmetic in IF_THEN_ELSE.
1963 (main): Print HAVE_conditional_execution.
1965 * haifa-sched.c (haifa_classify_insn): Recognize COND_EXEC.
1966 (sched_analyze_insn, print_pattern): Likewise.
1967 * reload.c (find_equiv_reg): Likewise.
1968 * rtlanal.c (reg_referenced_p): Likewise.
1969 (note_stores, dead_or_set_regno_p): Likewise.
1970 (reg_overlap_mentioned_p): Rewrite to use a switch.
1972 * ggc.h (struct rtx_def): Forward declare.
1974 * print-rtl.c (debug_rtx_range): New.
1975 * rtl.h (debug_rtx_range): Declare.
1977 * varray.h (VARRAY_ACTIVE_SIZE, VARRAY_POP_ALL): New.
1979 * gcse.c (gcse_main): Don't rebuild the CFG here.
1980 (delete_null_pointer_checks): Likewise.
1981 * ssa.c (convert_to_ssa): Likewise.
1982 * toplev.c (rest_of_compilation): Do it here instead. Combine
1983 sequential calls to TIMEVAR. Consistently use `insns' instead of
1984 `get_insns()'. Always split insns after reload when optimizing.
1986 * basic-block.h (merge_blocks_nomove): Declare.
1987 (tidy_fallthru_edge): Declare.
1988 * flow.c (merge_blocks_nomove): Document as merging into previous
1989 blocks. Remove cruft from between blocks; remove all edges out of A.
1990 (tidy_fallthru_edge): Export.
1992 2000-04-06 Alex Samuel <samuel@codesourcery.com>
1994 * ssa.c (compute_conservative_reg_partition): Declare with
1996 * toplev.c (clean_dump_file): Remove previously-deleted function
1997 inadvertantly merged back in.
1998 * conflict.c (conflict_graph_add): Use a single call to
1999 htab_find_slot to look up and insert.
2001 2000-04-06 Richard Henderson <rth@cygnus.com>
2003 * genrecog.c (*): Rename _last_insn to last_insn.
2004 (make_insn_sequence): Set the position of the peephole2 C test
2005 to be at the last insn.
2007 2000-04-06 Richard Henderson <rth@cygnus.com>
2009 * flow.c (compute_flow_dominators): Free worklist.
2011 2000-04-06 Michael Matz <matzmich@cs.tu-berlin.de>
2013 * flow.c (compute_flow_dominators): Process blocks FIFO not LIFO.
2015 2000-04-06 Alex Samuel <samuel@codesourcery.com>
2017 * rtl.h (INSN_P): New macro.
2018 (successor_phi_fn): New typedef.
2019 (for_each_successor_phi): New prototype.
2020 (in_ssa_form): New variable.
2021 (PHI_NODE_P): Likewise.
2022 * flow.c (calculate_global_regs_live): Add to new_live_at_end from
2023 phi nodes in successors.
2024 (mark_used_regs): Add PHI case.
2025 (set_phi_alternative_reg): New function.
2026 (life_analysis): Assert that dead code elimination is not selected
2028 * toplev.c (to_ssa_time): New variable.
2029 (from_ssa_time): Likewise.
2030 (compile_file): Zero to_ssa_time and from_ssa_time.
2031 Print time to convert to and from SSA.
2032 (rest_of_compilation): Time convert_to_ssa and convert_from_ssa.
2033 (print_time): Compute percent fraction as integer.
2034 * ssa.c (PHI_NODE_P): Moved to rtl.h.
2035 (convert_to_ssa): Check if we're already in SSA.
2036 Don't eliminate dead code in life_analysis.
2037 Rerun flow and life analysis at bottom.
2038 (eliminate_phi): Use canonical regnos when adding nodes.
2039 (mark_reg_in_phi): New function.
2040 (mark_phi_and_copy_regs): Likewise.
2041 (convert_from_ssa): Rerun life analysis at top.
2042 Use coalesced partition.
2043 Check for removing a phi node at the end of the block.
2044 (compute_coalesced_reg_partition): New function.
2045 (coalesce_regs_in_copies): Likewise.
2046 (coalesce_reg_in_phi): Likewise.
2047 (coalesce_regs_in_sucessor_phi_nodes): Likewise.
2048 (for_each_successor_phi): Likewise.
2049 (rename_context): New struct.
2050 (rename_block): Use a rename_context with rename_insn_1. When
2051 renaming sets of a subreg, emit a copy of the entire reg first.
2052 (rename_insn_1): Treat data as a rename_context *. Save current
2054 (rename_set_data): Add field set_insn.
2055 * Makefile.in (HASHTAB_H): Move up in file.
2056 (OBSTACK_H): New macro.
2057 (collect2.o): Use OBSTACK_H in dependencies.
2058 (sdbout.o): Likewise.
2059 (emit-rtl.o): Likewise.
2060 (simplify-rtx.o): Likewise.
2061 (fix-header.o): Likewise.
2062 (OBJS): Add conflict.o.
2063 (conflict.o): New rule.
2064 * basic-block.h: Include partition.h.
2065 (conflict_graph): New typedef.
2066 (conflict_graph_enum_fn): Likewise.
2067 (conflict_graph_new): New prototype.
2068 (conflict_graph_delete): Likewise.
2069 (conflict_graph_add): Likewise.
2070 (conflict_graph_conflict_p): Likewise.
2071 (conflict_graph_enum): Likewise.
2072 (conflict_graph_merge_regs): Likewise.
2073 (conflict_graph_print): Likewise.
2074 (conflict_graph_compute): Likewise.
2075 * conflict.c: New file.
2077 2000-04-06 Jason Merrill <jason@yorick.cygnus.com>
2079 * tlink.c (read_repo_files): Don't look for .rpo info for
2082 Thu Apr 6 20:39:26 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
2084 * sh.h (STRUCT_VALUE, RETURN_IN_MEMORY): Define.
2086 Thu Apr 6 19:34:08 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
2088 * config/sh/lib1funcs.asm (___udivsi3_i4):
2089 ( __SH4_SINGLE__ / __SH4_SINGLE_ONLY__ variant): value for fpscr
2090 only depends on FMOVD_WORKS.
2092 Thu Apr 6 19:11:47 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
2094 * config/sh/lib1funcs.asm (___udivsi3_i4): When using fmovd,
2095 make double constant 8-byte aligned.
2097 2000-04-06 Jakub Jelinek <jakub@redhat.com>
2099 * config/sparc/sparc.md (movtf_insn_sp32, movtf_insn_vis_sp32,
2100 movtf_no_e_insn_sp32, movtf_insn_hq_sp64, movtf_insn_hq_vis_sp64,
2101 movtf_no_e_insn_sp64): Accept loading 0.0 into GENERAL_REGS.
2102 (movtf_insn_sp64, movtf_insn_vis_sp64): Likewise.
2103 Accept storing GENERAL_REGS into offsetable memory.
2104 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Don't allow
2105 building a TFmode constant other than 0.0L into GENERAL_REGS.
2107 2000-04-06 Clinton Popetz <cpopetz@cygnus.com>
2109 * regrename.c (regrename_optimize): Handle no REG_ALLOC_ORDER.
2111 2000-04-06 Zack Weinberg <zack@wolery.cumb.org>
2113 * cpphash.c (CPP_IS_MACRO_BUFFER, FORWARD, PEEKC): Delete.
2114 (macro_cleanup): No need to cast pbuf->macro.
2115 (collect_expansion): Use _cpp_get_define_token. Goto done if
2116 it returns VSPACE. Remove check for trailing space after
2118 (_cpp_create_definition): Don't diddle flags here. Return
2120 (unsafe_chars): Handle c1 being EOF.
2121 (push_macro_expansion): Use unsafe_chars for both accidental-paste
2122 checks. Don't push the buffer till after we're done with
2124 * cpplex.c (PEEKBUF, GETBUF, FORWARDBUF): New.
2125 (PEEKN, FORWARD, GETC, PEEKC): Use them.
2126 (cpp_push_buffer): Don't set new->alimit. Set new->mark
2128 (_cpp_parse_assertion): Don't NUL terminate.
2129 (_cpp_lex_token): Fix -traditional macro handling. Don't skip
2130 hspace before calling _cpp_parse_assertion. Remove all sets
2131 of only_seen_white. Treat '\f' as hspace. Don't do anything
2132 special with '\n' here.
2133 (maybe_macroexpand): Handle T_EMPTY hash entries without
2134 pushing a buffer at all.
2135 (cpp_get_token): Handle clearing only_seen_white here. Handle
2136 incrementing the line number here. Clear
2137 potential_control_macro as well as only_seen_white, if
2139 (cpp_get_non_space_token): Don't eat CPP_POP tokens.
2140 (_cpp_get_define_token): New function, basically like
2141 _cpp_get_directive_token was but doesn't eat horizontal space.
2142 Don't do anything with only_seen_white here.
2143 (_cpp_get_directive_token): Just call _cpp_get_define_token
2144 repeatedly till it returns non-hspace.
2146 * cpplib.c (PEEKN, FORWARD, GETC, PEEKC): Delete.
2147 (conditional_skip, skip_if_group): Return int.
2148 (DIRECTIVE_TABLE): Change origin of all conditional directives
2150 (TRAD_DIRECT_P): New macro.
2151 (_cpp_handle_directive): Use _cpp_get_directive_token. Issue
2152 an error for a bogus directive, unless -lang-asm. Use
2153 TRAD_DIRECT_P. Loop calling handler functions till one returns
2155 (get_macro_name): Don't diddle flags here.
2156 (do_define): Diddle flags here. Use _cpp_get_directive_token.
2157 Create T_EMPTY nodes for #define macro /* nothing */.
2158 (do_undef): Don't copy the name. Use _cpp_get_directive_token.
2159 Use hp->name when calling pass_thru_directive.
2160 (do_if, do_else, do_elif, do_ifdef, do_ifndef, conditional_skip):
2161 Return the result of conditional_skip and/or skip_if_group.
2162 Don't call _cpp_output_line_command.
2163 (consider_directive_while_skipping): Use _cpp_get_directive_token.
2164 Issue -Wtraditional warnings as appropriate. Don't complain
2165 about unrecognized directives. If we are to stop skipping,
2166 return the number of the directive that ended the skip.
2167 (skip_if_group): Use _cpp_get_directive_token. Turn off macro
2168 expansion and line commands while skipping. Return the result
2169 of consider_directive_while_skipping, if nonzero.
2170 (do_endif): Just set potential_control_macro here.
2171 (validate_else): Use _cpp_get_directive_token.
2172 (do_assert, do_unassert): Don't save pointers into the
2173 token_buffer across calls to the lexer. Use
2174 _cpp_get_directive_token.
2176 * cpplib.h (cpp_buffer): Remove alimit and colno. Make mark a
2177 pointer, not an offset. Replace 'data', which was a generic
2178 pointer, with 'macro', which points to a struct hashnode.
2179 (cpp_reader): Add 'potential_control_macro' pointer.
2180 * cpphash.h (T_UNUSED): Replace with T_EMPTY.
2181 (CPP_BUF_GET, CPP_FORWARD): Delete.
2182 (CPP_IN_COLUMN_1, ADJACENT_TO_MARK): New macros.
2183 (CPP_IS_MACRO_BUFFER, CPP_SET_BUF_MARK, CPP_GOTO_BUF_MARK,
2184 ACTIVE_MARK_P): Update.
2185 (_cpp_get_define_token): New internal function.
2186 * cppfiles.c (read_include_file): Don't set fp->alimit or fp->colno.
2188 2000-04-05 Benjamin Kosnik <bkoz@cygnus.com>
2190 * configure.in: And here.
2191 * configure: Regenerate.
2192 * acconfig.h: Add ENABLE_STD_NAMESPACE to set flag_honor_std if
2193 --enable-libstdcxx-v3 is passed at configure time.
2194 * config.h.in: Regenerate.
2196 2000-04-05 Mark Mitchell <mark@codesourcery.com>
2198 * final.c (final): Use xcalloc to allocate line_note_exists.
2199 * function.c (free_after_compilation): Free the temp_slots.
2200 (assign_stack_temp_for_type): Use xmalloc to allocate temp_slots.
2201 (combine_temp_slot): Free temp_slots when they get combined.
2202 (purge_addressof): Fix typo in comment.
2203 * stmt.c (mark_goto_fixup): Mark the fixup itself.
2204 (expand_fixup): Allocate the fixup with ggc_alloc_obj.
2206 * ggc.h: Include varray.h.
2207 (ggc_pending_trees): Declare.
2208 (ggc_mark_tree_children): Remove declaration.
2209 (ggc_mark_tree): Just push unmarked trees on ggc_pending_trees.
2210 * ggc-common.c (ggc_pending_trees): New variable.
2211 (ggc_mark_roots): Call ggc_mark_trees.
2212 (ggc_mark_tree_children): Rename to ggc_mark_trees. Process all
2213 the ggc_pending_trees.
2214 * Makefile.in (GGC_H): New variable. Use it throughout in place
2217 Thu Apr 6 00:30:50 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
2219 * sh.h (FUNCTION_ARG_PARTIAL_NREGS): Accomodate an unsigned
2222 Wed Apr 5 23:17:10 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
2224 * sh.c (sh_insn_length_adjustment): New function.
2225 * sh-protos.h (sh_insn_length_adjustment): Declare.
2226 * sh.h (ADJUST_INSN_LENGTH): Use it.
2228 Wed Apr 5 12:35:18 2000 Hans-Peter Nilsson <hp@axis.com>
2230 * optabs.c (emit_libcall_block): Remove spurious REG_EQUAL notes
2231 from the insn where REG_RETVAL is added.
2232 (emit_no_conflict_block): Ditto.
2234 * md.texi (Standard Names): Clarify when movX is needed.
2236 * combine.c (simplify_comparison) [MINUS]: Do not replace
2237 all (op (minus A B) 0) with (op A B).
2239 Wed Apr 5 18:03:31 2000 Toshiyasu Morita (toshi.morita@sega.com)
2240 J"orn Rennecke <amylaar@cygnus.co.uk>
2242 * sh.md (block_lump_real_i4): Add missing clobber of T_REG
2243 (block_lump_real): Likewise.
2245 2000-04-05 Chris Demetriou <cgd@netbsd.org>
2247 * mips.h (MASK_DEBUG_A, MASK_DEBUG_B, MASK_DEBUG_C): Zero the
2248 remaining non-zero debugging masks.
2250 Wed Apr 5 09:44:07 2000 Jeffrey A Law (law@cygnus.com)
2252 * basic-block.h (verify_flow_info): Declare.
2253 (flow_loop_outside_edge_p): Declare.
2254 * flow.c (verify_flow_info): Remove declaration.
2255 (clear_log_links, flow_loop_outside_edge_p): Likewise.
2257 Wed Apr 5 09:34:26 2000 Philippe De Muyter <phdm@macqel.be>
2259 * m68k/m68k-protos.h (finalize_pic): Turn prototype off using `#if 0',
2262 2000-04-05 Jakub Jelinek <jakub@redhat.com>
2264 * config/sparc/sparc.md (snedi_zero+1, neg_snedi_zero+1,
2265 snedi_zero_trunc+1, seqdi_zero+1, neg_seqdi_zero+1,
2266 seqdi_zero_trunc+1): Allow splits only if registers are
2269 2000-04-04 Ulrich Drepper <drepper@cygnus.com>
2271 * acconfig.h: Add HAVE_GAS_HIDDEN.
2272 * config.in: Regenerated.
2273 * configure.in: Add test for .hidden pseudo-op in gas.
2274 * configure: Regenerated.
2275 * crtstuff.c: Include auto-host.h.
2276 Emit additional .hidden pseudo-op for __dso_handle if the
2277 assembler knows about it.
2279 2000-04-04 Philippe De Muyter <phdm@macqel.be>
2281 * cpphash.c (_cpp_free_definition): Test argnames, not nargs >= 0,
2282 before freeing argnames.
2283 * cpplib.c (do_ifndef): Cast return value of xstrdup.
2285 2000-04-05 Michael Meissner <meissner@redhat.com>
2287 * config/rs6000/rs6000.c (print_operand): Patch from Jonathan
2288 Walton <jonboy@gordian.com> to make memory references with update
2289 work wtih -mregnames.
2291 2000-04-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2293 * regrename.c (regno_first_use_in): Wrap prototype in PARAMS.
2294 (regrename_optimize): Rename variables `def_uses' and
2295 `ext_basic_blocks' to avoid conflicts with similarly named
2296 typedefs in traditional C.
2298 * calls.c (initialize_argument_information): Fix typo in previous
2301 2000-04-04 Richard Henderson <rth@cygnus.com>
2303 * regrename.c (consider_available): Test fixed_regs not
2304 PIC_OFFSET_TABLE_REGNUM.
2306 2000-04-04 Geoff Keating <geoffk@cygnus.com>
2308 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbegin,
2310 (CRTSTUFF_T_CFLAGS_S): Delete definition.
2311 * config/rs6000/sysv4.h (STARTFILE_LINUX_SPEC): Always use crtbegin.
2312 (ENDFILE_LINUX_SPEC): Always use crtend.
2313 * configure.in (powerpc-*-linux-gnulibc1): Don't define extra_parts.
2314 (powerpc-*-linux-gnu): Likewise.
2315 * configure: Regenerate.
2317 * config/rs6000/eabi.h: Don't include sysv4.h.
2318 (MULTILIB_DEFAULTS): Don't define.
2319 * config/rs6000/eabiaix.h: Don't include eabi.h.
2320 * config/rs6000/eabile.h: Delete.
2321 * config/rs6000/eabilesim.h: Delete.
2322 * config/rs6000/eabisim.h: Don't include eabi.h.
2323 * config/rs6000/linux.h: Don't include sysv4.h.
2324 (JUMP_TABLES_IN_TEXT_SECTION): Don't redefine.
2325 (MULTILIB_DEFAULTS): Don't redefine.
2326 * config/rs6000/rtems.h: Don't include eabi.h.
2327 * config/rs6000/sol2.h: Don't include sysv4le.h.
2328 * config/rs6000/sysv4le.h: Don't include sysv4.h.
2329 * config/rs6000/t-ppc: Delete.
2330 * config/rs6000/t-ppcgas: Correct comment.
2331 * config/rs6000/t-ppcos: Correct comment. Don't build
2332 multilibs for -fPIC, rather use -fPIC -mstrict-align
2334 * config/rs6000/t-ppc: Delete.
2335 * config/rs6000/vxppc.h: Don't include sysv4.h.
2336 * config/rs6000/vxppcle.h: Delete.
2337 * configure.in: Use multiple header files for p2pc ELF targets
2338 powerpc-eabiaix, powerpc-eabisim, powerpc-rtems, powerpcle-eabi,
2339 powerpcle-eabisim, powerpc-elf, powerpcle-elf, powerpc-linux-gnu,
2340 powerpc-linux-gnulibc1, powerpc-sysv, powerpcle-sysv,
2341 powerpc-vxworks, powerpcle-vxworks. Assume GAS functionality is
2342 always available for these platforms.
2344 2000-04-04 Richard Henderson <rth@cygnus.com>
2346 * calls.c (try_to_integrate): Initialize reg_parm_stack_space.
2348 2000-04-04 Stan Cox <scox@cygnus.com>
2350 * Makefile.in: Add rules for regrename.o
2351 * regrename.c: New file.
2352 * rtl.h (regrename_optimize): Add prototype.
2353 * toplev.c (rename_registers_dump, flag_rename_registers): New variables
2354 (compile_file, decode_d_option): Add support for -frename-registers.
2355 (rest_of_compilation): Call regrename_optimize.
2356 * config/ia64/ia64.h (HARD_REGNO_RENAME_OK, RENAME_EXTENDED_BLOCKS):
2359 2000-04-04 Martin v. Löwis <loewis@informatik.hu-berlin.de>
2361 * Makefile (gccbug): New target.
2362 (doc): Depend on it.
2363 * gcc.texi (Bugs): Link subnodes.
2365 * gccbug.in (CATEGORIES): Remove gc, host, profiling, libgcc.
2366 Document severities, priorities, and classes in bug form.
2368 2000-04-04 Zack Weinberg <zack@wolery.cumb.org>
2370 * cpplex.c (trigraph_map, speccase): Combine into single
2372 (NORMAL, NONTRI): New macros.
2373 (_cpp_read_and_prescan): Change to use unified table. Use
2374 is_hspace to test for whitespace.
2376 * dbxout.c (CONTIN): If it doesn't have to do anything, give it a
2377 definition that doesn't provoke the "empty body in an
2378 if-statement" warning.
2380 2000-04-04 Clinton Popetz <cpopetz@cygnus.com>
2382 * builtins.c (expand_builtin_strlen): Force the source to
2383 be a memory address.
2385 2000-04-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2387 * cpplib.c (D): Adjust to call CONCAT2 macro without whitespace.
2389 Tue Apr 4 19:17:20 MET DST 2000 Jan Hubicka <jh@suse.cz>
2391 * calls.c (ECF_MALLOC, ECF_MAY_BE_ALLOCA, ECF_RETURNS_TWICE,
2392 ECF_LONGJMP, ECF_FORK_OR_EXEC): New constants.
2393 (ECF_IS_CONST): Rename to ECF_CONST.
2394 (special_function_p): Make static, change interface.
2395 (flags_from_decl_or_type, try_to_integrate): Break out from ...
2396 (expand_call) ... here; convert number of variables to flags.
2397 (emit_library_call_vlue_1): Likewise.
2398 (setjmp_call_p): New function.
2399 (initialize_argument_information): Accepts flags as argument;
2401 (precompute_arguments): Likewise.
2402 * tree.h (special_function_p): Remove.
2403 (setjmp_call_p): Add prototype.
2405 2000-04-04 Jakub Jelinek <jakub@redhat.com>
2407 * config/sparc/sparc.h (RTX_OK_FOR_OFFSET_P): Leave minor margin
2408 so that addresses are offsetable by up to 16 bytes.
2409 (GO_IF_LEGITIMATE_ADDRESS): Don't allow REG+REG addresses for
2410 non-optimizing TARGET_ARCH32 in DF or DI modes because it is not
2413 * config/sparc/sparc.md (movdi_insn_sp64_novis): New pattern.
2414 (movdi_insn_sp64_vis): Renamed from movdi_insn_sp64.
2415 (movsf): Don't force any constant to memory if target is integer
2417 Move fp_zero_operand check below the const0_rtx check.
2418 (movtf): Likewise. Also allow fp_zero_operand for stores into
2420 (movdf): Likewise. Also allow fp_zero_operand for stores into
2421 memory and into integer hard registers.
2422 (clear_df, clear_dfp, movdf_const_intreg_sp32,
2423 movdf_const_intreg_sp64): Remove.
2424 (movdf_insn_sp32, movdf_no_e_insn_sp32): Redo constraints and
2426 (movdf_no_e_insn_v9_sp32): New pattern.
2427 (movdf_insn_v9only): Remove.
2428 (movdf_insn_v9only_novis, movdf_insn_v9only_vis): New patterns.
2429 (movdf_insn_sp64): Remove.
2430 (movdf_insn_sp64_novis, movdf_insn_sp64_vis): New patterns.
2431 (movdf_no_e_insn_sp64): Allow storing 0.0 into memory.
2432 (following splits): Rewrite conditions. Add two new splits
2433 for storing 0.0 into memory and registers.
2434 (clear_tf, clear_tf+1, clear_tfp, clear_tfp+1): Remove.
2435 (movtf_insn_sp32): Redo constraints and conditions.
2436 (movtf_insn_vis_sp32): New pattern.
2437 (movtf_no_e_insn_sp32): Redo constraints and conditions.
2438 (movtf_insn_hq_sp64): Likewise.
2439 (movtf_insn_hq_vis_sp64): New pattern.
2440 (movtf_insn_sp64): Redo constraints and conditions.
2441 (movtf_insn_vis_sp64): New pattern.
2442 (movtf_no_e_insn_sp64): Redo constraints and conditions.
2443 (movtf_no_e_insn_sp64+1): New split for storing 0.0L into registers
2445 * config/sparc/sparc.c (sparc_override_options): Assume v9 if either
2446 -mvis or -m64 to take down the number of various reload patterns.
2448 Tue Apr 4 00:41:53 2000 Jeffrey A Law (law@cygnus.com)
2450 * pa/pa-64.h: New file.
2451 * pa/pa64-regs.h: New file.
2452 * pa/pa64-start.h: New file.
2453 * pa/t-pa64: New file.
2454 * pa/xm-pa64hpux.h: New file.
2456 2000-04-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2458 * sparc.c (output_restore_regs): Prototype.
2459 (sparc_emit_float_lib_cmp): Constification.
2461 * emit-rtl.c (const_int_htab_hash, const_int_htab_eq): Likewise.
2463 * reload1.c (reload_cse_delete_noop_set, reload_cse_simplify):
2466 * simplify-rtx.c (entry_and_rtx_equal_p): Constification.
2467 (get_value_hash, hash_rtx): Likewise.
2469 * ssa.c (compute_conservative_reg_partition): Prototype.
2471 * tree.c (mark_hash_entry): Prototype.
2473 2000-04-03 Zack Weinberg <zack@wolery.cumb.org>
2475 * bb-reorder.c (verify_insn_chain): #ifdef out unless ENABLE_CHECKING.
2476 * i386.h (FUNCTION_ARG_REGNO_P): Remove unnecessary test for N >= 0.
2477 * i386.md (call_value, call_value_pop): Remove unused variable 'addr'.
2479 * gcc.c (C specs): Pass -fno-show-column to the preprocessor.
2480 * objc/lang-specs.h: Likewise.
2482 2000-04-03 Neil Booth <NeilB@earthling.net>
2484 * cppexp.c: wrap long lines. New macros CPP_ICE, SYNTAX_ERROR
2485 and SYNTAX_ERROR2. Replace `' in messages with ''.
2486 (op_to_str): Make re-entrant.
2487 (_cpp_parse_expr): Implement new error macros. Use | rather
2488 than || to logically or 2 boolean integers. Simply expression
2489 checking we have a left operand iff needed.
2491 2000-04-03 Nick Clifton <nickc@cygnus.com>
2493 * Makefile.in (diagnostic.o): Depend upon diagnostic.c
2495 2000-04-03 Philip Blundell <philb@gnu.org>
2497 * config/arm/linux-elf.h (SUBTARGET_EXTRA_LINK_SPEC): Fix typos.
2499 2000-04-03 Felix Lee <flee@cygnus.com>
2501 * fixinc/server.c (find_shell): New function. Avoid $SHELL.
2502 (run_shell): Use it.
2504 2000-04-03 Jonathan Larmour <jlarmour@redhat.co.uk>
2506 * Makefile.in (stmp-int-hdrs): Make include subdir here...
2507 (stmp-fixproto): ...rather than here.
2509 Mon Apr 3 00:50:06 2000 Jason Eckhardt <jle@cygnus.com>
2511 * pa.c (print_operand): Compute 'base' only inside the code paths
2514 2000-04-03 Geoffrey Keating <geoffk@cygnus.com>
2516 * stor-layout.c (byte_from_pos): Use TRUNC_DIV_EXPR rather than
2519 2000-04-03 Philipp Thomas <pthomas@suse.de>
2521 * i386.h (TARGET_SWITCHES): Remove bogus empty strings, fix typo.
2523 Mon Apr 3 00:02:59 2000 Brad Lucier <lucier@math.purdue.edu>
2525 * Makefile.in (alias.o): Depend on $(TREE_H).
2527 2000-04-02 Zack Weinberg <zack@wolery.cumb.org>
2529 * cppinit.c (cpp_start_read): Turn off -Wtraditional if
2531 * cpplib.c (_cpp_handle_directive): Improve warnings for
2532 traditional C and indented directives.
2534 * enquire.c, gsyslimits.h, limity.h, config/convex/fixinc.convex,
2535 fixinc/fixinc.irix, fixinc/fixinc.sco, fixinc/fixinc.wrap,
2536 fixinc/inclhack.def: Indent the # of #include_next one space.
2537 * cp/rtti.c: Un-indent #if and #endif.
2539 * cppexp.c (_cpp_parse_expr): If lex returns '#', it's a
2540 syntax error, but an error has already been printed.
2541 * cpplex.c (_cpp_parse_assertion): Give a more specific error
2542 message when called with nothing remaining on the line.
2543 (_cpp_lex_token): If _cpp_parse_assertion fails, return an
2544 OTHER token, not an ASSERTION.
2545 * cpplib.c (do_assert): When we create a 'base' node, clear
2546 its aschain pointer.
2548 2000-04-02 Neil Booth <NeilB@earthling.net>
2550 * cppexp.c: New typedef op_t. struct operation and struct
2551 token updated to use it.
2552 (op_to_str): New function.
2553 (_cpp_parse_expr): Error messages modified to use op_to_str.
2555 2000-04-02 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
2557 * config/c4x/c4x.c (c4x_function_arg): Check for void_type_node
2558 before checking MUST_PASS_IN_STACK.
2560 2000-04-02 Neil Booth <NeilB@earthling.net>
2562 * cppexp.c: New FINISHED dummy token. Combine operator initial
2563 flags and initial priority into a single constant. New
2564 EQUALITY macro. New operator flag SHORT_CIRCUIT.
2565 (_parse_cpp_expr): Implement new constants. Take left operand
2566 checks out of reduction loop. Handle SHORT_CIRCUIT. End of
2567 parse indicated by reducing FINISHED token. Remove new lines
2568 from cpp_error messages.
2570 2000-04-01 Mark Mitchell <mark@codesourcery.com>
2572 * emit-rtl.c (gen_rtx_CONST_INT): Create cached CONST_INTs on the
2575 2000-04-01 Zack Weinberg <zack@wolery.cumb.org>
2577 * cpplib.c: Include symcat.h. Add 'origin' field to struct
2578 directive. Add origin values to DIRECTIVE_TABLE. Generate
2579 the strings and function names on the fly. Take the #sccs
2580 entry out of the table if SCCS_DIRECTIVE is not defined.
2581 (_cpp_handle_directive): Decide if the # was at the beginning
2582 of the line here. Issue -pedantic warnings for extended
2583 directives here. Warn about K+R directives with the #
2584 indented, and C89/extended directives with the # not indented,
2586 (do_import, do_include_next, do_warning, do_ident, do_sccs,
2587 do_assert, do_unassert): Don't issue pedantic warning here.
2589 * cpphash.h: Add CPP_WTRADITIONAL macro.
2590 * cpplib.h (struct cpp_options): Rename warn_stringify to
2591 warn_traditional; update comments.
2592 * cppinit.c (handle_option): Set warn_traditional not
2594 * cpphash.c: Replace CPP_OPTION (pfile, warn_stringify) with
2595 CPP_WTRADITIONAL (pfile).
2596 * cpplex.c (_cpp_lex_token): Don't decide if directives should
2597 be ignored in -traditional mode here.
2599 * cpplex.c: Copy ISTABLE macros from cppinit.c, and adapt them
2600 to initialize speccase[] and trigraph_map[]. Delete all
2601 references to pfile->input_speccase. Always treat '?' as a
2602 special character. Remove table-initialization code from
2603 _cpp_init_input_buffer.
2605 * cpplib.h (struct cpp_reader): Remove input_speccase field.
2606 * cppinit.c (cpp_cleanup): Don't free input_speccase.
2608 2000-04-01 Richard Henderson <rth@cygnus.com>
2610 * Makefile.in (STAGESTUFF): Wildcard all debugging dumps at once.
2611 (mostlyclean): Likewise.
2613 * toplev.c (rtl_dump, jump_opt_dump, etc): Remove.
2614 (struct dump_file_info, enum dump_file_index, dump_file): New.
2615 (open_dump_file): Take a dump_file_index not a suffix, and a decl
2616 not a string. Clean out file if we havn't yet done so. Do nothing
2617 if the dump isn't enabled.
2618 (close_dump_file): Do nothing if the dump isn't open. Dump
2619 graph data if requested.
2620 (dump_rtl, clean_dump_file): Remove.
2621 (compile_file): Don't clean the dump files. Only finalize .bp dump
2622 if flag_test_coverage or flag_branch_probabilities. Only finalize
2623 .combine dump if optimizing. Iterate over dump_file to finalize the
2625 (rest_of_compilation): Update for open_dump_file/close_dump_file.
2626 Convert all uses of dump_rtl.
2627 (decode_d_option): Iterate over dump_file to implement 'a' and to
2628 locate pass-specific dumps.
2630 2000-04-01 Neil Booth <NeilB@earthling.net>
2632 * cppexp.c: Redefine priority constants.
2633 (_cpp_parse_expr): Replace left and right priority scheme with
2634 single priority logic. Move LOGICAL to same place as COMPARE.
2635 Remove bogus check for multiple unary +/- operators.
2637 2000-04-01 Neil Booth <NeilB@earthling.net>
2639 * cppexp.c: (_cpp_parse_expr): Numerical constants are pushed
2640 within the switch statement. Binary operations break out of
2641 the switch naturally. '(' tokens handled by forcing
2642 immediate shift. ')' handled by forcing immediate reduce to
2643 the previous '('. New error messages.
2645 2000-03-31 Geoff Keating <geoffk@cygnus.com>
2647 * config/rs6000/rs6000.c (print_operand): Don't use %l for 'low
2648 part', it's already in use. Use %K instead. Add a return at the
2649 end of what is now %K.
2650 * config/rs6000/rs6000.md (elf_low): Use %K instead of %l.
2652 Sat Apr 1 02:05:29 MET DST 2000 Jan Hubicka <jh@suse.cz>
2654 * builtins.c (expand_builtin_apply): Pass proper parameters to
2655 allocate_dynamic_stack_space.
2656 * calls.c (emit_call_1): Do not adjust stack pointer for SIB,
2657 update stack_pointer_delta; do not update arg_size_so_far.
2658 (compute_argument_block_size): Use stack_delta instead of
2659 stack_pointer_pending and arg_size_so_far.
2660 (expand_call): Add sanity checking for stack_pointer_delta;
2661 save and restore stack_pointer_delta for SIB, use
2662 stack_pointer_delta for alignment; do not update arg_space_so_far.
2663 (emit_library_call_value): Use stack_pointer_delta for alignment.
2664 (store_one_arg): Do not update arg_space_so_far.
2665 * explow.c (adjust_stack, anti_adjust_stack): Update
2666 stack_pointer_delta.
2667 (allocate_dynamic_stack_space): Add sanity checking for
2668 stack_pointer_delta.
2669 * expr.c (init_expr, clear_pending_stack_adjust): Clear
2670 stack_pointer_delta.
2671 (emit_push_insn): Update stack_pointer_delta.
2672 * function.h (struct expr_status): Add x_stack_pointer_delta;
2673 remove x_arg_space_so_far.
2674 (arg_space_so_far): Remove.
2675 (stack_pointer_delta): New macro.
2677 2000-03-31 Zack Weinberg <zack@wolery.cumb.org>
2679 * cpplib.h: Merge struct cpp_options into struct cpp_reader.
2680 Reorder struct cpp_options and struct cpp_reader for better
2681 packing. Replace CPP_OPTIONS macro with CPP_OPTION which
2682 takes two args. Change all 'char' flags to 'unsigned char'.
2683 Move show_column flag into struct cpp_options. Don't
2684 prototype cpp_options_init.
2685 * cpphash.h, cpperror.c, cppexp.c, cppfiles.c, cpphash.c,
2686 cppinit.c, cpplex.c, cpplib.c:
2687 Replace CPP_OPTIONS (pfile)->whatever with
2688 CPP_OPTION (pfile, whatever), and likewise for
2689 opts = CPP_OPTIONS (pfile); ... opts->whatever;
2691 * cppinit.c (merge_include_chains): Take a cpp_reader *.
2692 Extract CPP_OPTION (pfile, pending) and work with that
2694 (cpp_options_init): Delete.
2695 (cpp_reader_init): Turn on on-by-default options here.
2696 Allocate the pending structure here.
2697 (cl_options, enum opt_code): Define these from the same table,
2698 kept in a large macro. Add -fshow-column and -fno-show-column
2701 * cpperror.c (v_message): If show_column is off, don't print
2704 * cppmain.c: Update for new interface.
2705 * fix-header.c: Likewise.
2707 2000-03-30 Geoff Keating <geoffk@cygnus.com>
2709 * config/rs6000/t-aix43 (AR_FLAGS_FOR_TARGET): Adjust for new
2711 * Makefile.in (AR_FLAGS_FOR_TARGET): Is now the flags that
2712 are passed to any invocation of AR_FOR_TARGET.
2713 (AR_CREATE_FOR_TARGET): New macro.
2714 (AR_EXTRACT_FOR_TARGET): New macro.
2715 (ORDINARY_FLAGS_TO_PASS): Add AR_CREATE_FOR_TARGET,
2716 AR_EXTRACT_FOR_TARGET.
2717 (many places): Use AR_CREATE_FOR_TARGET, AR_EXTRACT_FOR_TARGET
2718 in place of `$(AR_FOR_TARGET) $(AR_FLAGS_FOR_TARGET)' and
2719 `$(AR_FOR_TARGET) x'. Pass AR_CREATE_FOR_TARGET and
2720 AR_EXTRACT_FOR_TARGET to sub-makes.
2722 2000-03-31 Neil Booth <NeilB@earthling.net>
2724 * cppexp.c: Delete SKIP_OPERAND. Correct priority
2726 (_cpp_parse_expr): Check for multiple unary +/- operators.
2727 Correct priorities of ':' and '?'. Treat ')' as having a
2728 value. Ensure conditional expression is not void.
2730 2000-03-31 Mark Mitchell <mark@codesourcery.com>
2732 * alias.c (canon_rtx): Make it global.
2733 (rtx_equal_for_memref_p): CONST_INT equality is now pointer
2735 * cse.c (struct table_elt): Add canon_exp.
2737 (invalidate): Canonicalize expressions only once.
2738 * rtl.h (canon_rtx): Declare.
2740 2000-03-30 Mark Mitchell <mark@codesourcery.com>
2742 * Makefile.in (emit-rtl.o): Depend on HASHTAB_H.
2743 * alias.c (reg_known_value): Add comments.
2744 (init_alias_analysis): Likewise.
2745 * cse.c (exp_equiv_p): CONST_INTs are equal iff they have the same
2747 (cse_basic_block): Fix typo in comment.
2748 * emit-rtl.c: Include hashtab.h.
2749 (const_int_htab): New variable.
2750 (const_int_htab_hash): New function.
2751 (const_int_htab_eq): Likewise.
2752 (rtx_htab_mark_1): Likewise.
2753 (rtx_htab_mark): Likewise.
2754 (gen_rtx_CONST_INT): Cache all CONST_INTs.
2755 (unshare_all_rtx): Fix formatting.
2756 (init_emit_once): Initialize const_int_htab.
2757 * rtl.c (rtx_equal_p): CONST_INTs are equal iff they have the same
2759 * rtl.texi: Document the fact that all CONST_INTs with the same
2762 2000-03-30 Richard Henderson <rth@cygnus.com>
2764 * alpha.h (FUNCTION_BOUNDARY): Reduce to 128 bits.
2766 2000-03-30 Zack Weinberg <zack@wolery.cumb.org>
2768 * configure.in: Comment out --enable-c-cpplib stanza.
2769 * configure: Regenerate.
2771 Thu Mar 30 06:32:51 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2773 * expr.c (store_constructor): Properly compute displacement and
2774 alignment when offset is variable.
2776 * expmed.c (store_bit_field, store_fixed_bit_field): Fix more
2777 cases of alignment in bytes.
2779 Thu Mar 30 13:30:40 2000 Jeffrey A Law (law@cygnus.com)
2781 * c-parse.in (cast_expr): Move change from March 21 into c-parse.in
2782 since it is used to generate c-parse.y.
2783 * objc-parse.c, objc-parse.y: Regenerated.
2785 * function.c (expand_function_end): Pass alignment argument to
2786 emit_block_move in bits, not bytes.
2788 Thu Mar 30 06:32:51 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2790 * expr.c (move_by_pieces_ninsns): Fix one more missing align
2793 * expmed.c (store_fixed_bit_field): STRUCT_ALIGN is in bits.
2795 * calls.c (expand_call): Pass bit alignment to mark_reg_pointer.
2796 * explow.c (memory_address, allocate_dynamic_stack_space): Likewise.
2797 * function.c (assign_parms): Likewise.
2798 * integrate.c (expand_inline_function): Likewise.
2799 * stmt.c (expand_decl): Likewise.
2800 (copy_rtx_and_substitute): Likewise.
2801 * expr.c (expand_expr, expand_expr_unaligned): Likewise.
2802 (clear_by_pieces): Fix error in last change.
2803 * emit-rtl.c (init_emit): Set known registers alignment in bits.
2804 * function.h (regno_pointer_align): Now unsigned.
2805 * config/arm/arm.c (alignable_memory_operand): REGNO_POINTER_ALIGN
2807 * config/i386/i386.c (aligned_operand): Likewise.
2808 * config/sparc/sparc.c (mem_min_alignment): Likewise.
2809 * config/alpha/alpha.c (aligned_memory_operand): Likewise.
2810 (unaligned_memory_operand): Likewise.
2811 (alpha_expand_block_move, alpha_expand_block_clear): Likewise.
2812 Also make alignments and sizes unsigned and some whitespace cleanup.
2813 (alpha_va_start): Do nothing if VALIST's type is error_mark_node.
2815 * builtins.c (get_pointer_alignment): Use host_integerp & tree_low_cst.
2816 (expand_builtin_apply): Pass alignment to emit_block_move in bits.
2817 (expand_builtin_memcpy, expand_builtin_va_copy): Likewise.
2818 (expand_builtin_memset): Likewise, but to clear_storage.
2819 * calls.c (save_fixed_argument_area): Likewise, to move_by_pieces.
2820 (restore_fixed_argument_area): Likewise.
2821 (store_unaligned_arguments_into_pseudos): Likewise, to store_bit_field.
2822 (load_register_parameters): Likewise, to emit_group_load.
2823 (expand_call): Likewise, to emit_group_store and emit_block_move.
2824 (emit_library_call_value_1): Likewise, to emit_block_move.
2825 (store_one_arg): Likewise, and to emit_push_insn.
2826 * expmed.c (extract_bit_field): Alignment is in bits, not bytes.
2827 (extract_fixed_bit_field, extract_split_bit_field): Likewise.
2828 * expr.c (move_by_pieces, move_by_pieces_ninsns): Likewise.
2829 (emit_block_move, emit_group_load, emit_group_store): Likewise.
2830 (clear_by_pieces, clear_storage, emit_push_insn): Likewise.
2831 (expand_assigment, store_expr, store_constructor_field): Likewise.
2832 (expand_expr_unaligned, do_jump, do_compare_and_jump): Likewise.
2833 (store_constructor, store_field, get_inner_reference): Likewise.
2834 Use host_integerp and tree_low_cst; sizes and positions HOST_WIDE_INT.
2835 (expand_expr, case COMPONENT_REF): Likewise.
2836 (copy_blkmode_from_regs): Use UNSIGNED_HOST_WIDE_INT for sizes
2837 and positions; reindent code.
2838 * expr.h (emit_cmp_insn, emit_cmp_and_jump_insns): Alignment unsigned.
2839 * function.c (purge_addressof_1): Pass bit align to store_bit_field.
2840 (assign_parms): Likewise to emit_group_store.
2841 * optabs.c (prepare_cmp_insn): Alignment is in bits.
2842 (emit_cmp_and_jump_insns, emit_cmp_insn): Likewise, and also unsigned.
2843 * stmt.c (expand_value_return): Pass align in bits to emit_group_load.
2844 (expand_return): Likewise to {extract,store}_bit_field.
2845 * stor-layout.c (get_mode_alignment): Minor cleanup.
2846 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Align is in bits.
2847 * config/sh/sh.h (MOVE_BY_PIECES_P): Likewise.
2849 2000-03-29 Nick Clifton <nickc@cygnus.com>
2851 * config/arm/arm.h: Undo effects of previous delta:
2852 (ASM_SPEC): Do not define.
2853 (SUBTARGET_EXTRA_ASM_SPEC): Do not define.
2855 * config/arm/linux-elf.h: (SUBTARGET_EXTRA_ASM_SPEC) Fix
2858 2000-03-29 Zack Weinberg <zack@wolery.cumb.org>
2860 * cppinit.c (cpp_start_read): Call initialize_dependency_output
2861 only after reading in the primary source file.
2863 2000-03-29 Geoff Keating <geoffk@cygnus.com>
2865 * c-common.c (c_common_nodes_and_builtins): The first parameter to
2866 __builtin_va_start and __builtin_va_copy is now either a 'va_list'
2867 or a reference to a va_list.
2868 * builtins.c (stabilize_va_list): Simplify now we don't have to
2869 work around C array address decay.
2870 * c-typeck.c (convert_for_assignment): Handle assignment to
2871 a reference parameter by taking the address of the RHS.
2872 * ginclude/stdarg.h (va_start): Don't take address of first parameter.
2873 (va_copy): Likewise.
2874 (__va_copy): Likewise.
2875 * ginclude/varargs.h (va_start): Likewise.
2876 (__va_copy): Likewise.
2878 Wed Mar 29 15:44:53 2000 Jeffrey A Law (law@cygnus.com)
2880 * i386/djgpp.h: Remove extraneous "+".
2882 * stmt.c (stmt_loop_nest_empty): Fix thinko in last change.
2884 * calls.c (expand_call): Fix typo in last change.
2886 2000-03-29 Jason Merrill <jason@casey.cygnus.com>
2888 * tree.c (unsave_expr_1): Don't mess with a TARGET_EXPR that hasn't
2891 Wed Mar 29 15:39:10 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2893 * stor-layout.c (bit_from_pos, byte_from_pos): New functions.
2894 (pos_from_byte, pos_from_bit, normalize_offset): Likewise.
2895 (normalize_rli, rli_size_so_far, rli_size_unit_so_far): Use them.
2896 * tree.c (bit_position, byte_position): Likewise.
2897 * tree.h: Declare new functions.
2899 2000-03-29 Nick Clifton <nickc@cygnus.com>
2901 * config/arm/arm.c: Minor formatting changes/
2902 * config/arm/arm.h (SUBTARGET_EXTRA_ASM_SPEC): Define if not
2904 (ASM_SPEC): Define if not already defined.
2906 2000-03-29 Zack Weinberg <zack@wolery.cumb.org>
2908 * cppfiles.c (cpp_read_file): Don't pass zero-length string to
2911 2000-03-29 Jakub Jelinek <jakub@redhat.com>
2913 * dwarf2out.c (gen_enumeration_type_die): If enum has a negative
2914 value, don't output it as unsigned.
2916 Wed Mar 29 10:53:49 2000 Jeffrey A Law (law@cygnus.com)
2918 * stmt.c (stmt_loop_nest_empty): Allow cfun->stmt to be NULL.
2920 2000-03-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2922 * c-common.c (c_common_nodes_and_builtins): Don't special case
2923 cplus_mode when declaring builtin bzero/bcmp, always avoid
2924 prototype arguments.
2926 2000-03-29 Bruce Korb <bkorb@gnu.org>
2928 * fixinc/mkfixinc.sh: Initially set the variable "fixincludes"
2931 Wed Mar 29 15:08:01 MET DST 2000 Jan Hubicka <jh@suse.cz>
2933 Convert ACCUMULATE_OUTGOING_ARGS to an expression.
2934 * calls.c (PUSH_ARGS_REVERSED) Change to expression.
2935 (ACCUMULATE_OUTGOING_ARGS, PUSH_ARGS): Provide default value.
2936 (struct arg_data): Remove #ifdef ACCUMULATE_OUTGOING_ARGS.
2937 (save_fixed_argument_area, restore_fixed_argument_area):
2938 conditionize by #ifdef REG_PARM_STACK_SPACE only.
2939 (emit_call): Change #ifdefs on ACCUMULATE_OUTGOING_ARGS
2940 to conditions, handle RETURN_POPS_ARGS on ACCUMULATE_OUTGOING_ARGS.
2941 (precompute_register_parameters): Avoid #ifdefs on
2942 ACCUMULATE_OUTGOING_ARGS and PUSH_ARGS_REVERSED.
2943 (stire_one_args): Likewise.
2944 (expand_call): Likewise; conditionize PUSH_ROUNDING code by PUSH_ARGS.
2945 (emit_library_call_value_1): Likewise.
2946 (compute_argument_block_size): Align to STACK_BOUNDARY only for
2947 ACCUMULATE_OUTGOING_ARGS.
2948 * combine.c (ACCUMULATE_OUTGOING_ARGS, PUSH_ARGS): Provide default
2950 (nonzero_bits): Conditionize PUSH_ROUNDING code by USE_PUSH.
2951 (use_crosses_set_p): Likewise.
2952 * all targets (ACCUMULATE_OUTGOING_ARGS define): Change to
2953 #define ACCUMULATE_OUTGOING_ARGS 1.
2954 * i386.c (ix86_compute_frame_size): Handle ACCUMULATE_OUTGOING_ARGS
2956 * i386.h (MASK_NO_PUSH_ARGS, MASK_ACCUMULATE_OUTGOING_ARGS): New
2958 (TARGET_PUSH_ARGS, TARGET_ACCUMULATE_OUTGOING_ARGS): New macros.
2959 (TARGET_SWITCHES): Add push-args, no-push-args,
2960 accumulate-outgoing-args and no-accumulate-outgoing-args.
2961 (ACCUMULATE_OUTGOING_ARGS, PUSH_ARGS): New macro.
2962 * expr.c (ACCUMULATE_OUTGONG_ARGS, PUSH_ARGS): Provide default.
2963 (push_block): Avoid ifdefs on ACCUMULATE_OUTGONG_ARGS
2965 (emit_push_insn): Likewise.
2966 * final.c (ACCUMULATE_OUTGOING_ARGS): Provide default.
2967 (final_scan_insn): Avoid ifdefs on ACCUMULATE_OUTGOING_ARGS.
2968 * function.c (ACCUMULATE_OUTGOING_ARGS): Provide default.
2969 (STACK_DYNAMIC_OFFSET): Define correctly for both
2970 ACCUMULATE_OUTGOING_ARGS and normal mode.
2971 * invoke.texi (-mpush_args, -maccumulate-outgoing-args): Document.
2972 * tm.texi (PUSH_ARGS): Document.
2973 (ACCUMULATE_OUTGOING_ARGS, PUSH_ROUNDING): Update documentation.
2975 Wed Mar 29 11:51:13 MET DST 2000 Jan Hubicka <jh@suse.cz>
2977 * flags.h (flag_optimize_sibling_calls): Declare.
2978 * calls.c (expand_call): Fail sibcall when
2979 !flag_optimize_sibling_calls
2980 * invoke.texi (flag_optimize_sibling_calls): Document.
2981 * toplev.c (flag_optimize_sibling_calls): New global variable.
2982 (f_options): Add flag_optimize_sibling_calls.
2983 (rest_of_compilation): Conditionize
2984 optimize_sibling_and_tail_recursive_calls by
2985 flag_optimize_sibling_calls.
2986 (main): Set flag_optimize_sibling_calls for -O2.
2987 * stmt.c (expand_return): Conditionize tail recursion by
2988 flag_optimize_sibling_calls.
2990 2000-03-29 Richard Henderson <rth@cygnus.com>
2992 * config/i386/att.h (LOCAL_LABEL_PREFIX): Define.
2993 (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Use it.
2995 2000-03-29 Nathan Sidwell <nathan@codesourcery.com>
2997 * except.c (add_eh_table_entry): Mark type_info's as referenced.
2999 2000-03-29 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
3001 * config/rs6000/aix41.h (CPP_SPEC): Define _ANSI_C_SOURCE if -ansi
3003 * config/rs6000/aix43.h (CPP_SPEC): Likewise.
3004 * config/rs6000/rs6000.h (CPP_SPEC): Moved to...
3005 * config/rs6000/aix.h: then modified likewise.
3007 2000-03-28 Richard Henderson <rth@cygnus.com>
3009 * rtl.h: Redistribute enum reg_note documentation.
3010 Kill trailing whitespace.
3011 * rtl.c (reg_note_name): Adjust to match enum reg_note tweeks.
3012 Kill trailing whitespace.
3014 2000-03-28 Zack Weinberg <zack@wolery.cumb.org>
3016 * cppfiles.c (hash_IHASH): Just return i->hash.
3017 (cpp_included): Set dummy.hash using _cpp_calc_hash. Use
3018 htab_find_with_hash.
3019 (cpp_read_file): Likewise.
3020 (find_include_file): Likewise. Properly initialize
3021 ih->nshort. Share ih->name and ih->nshort if possible.
3022 * cpphash.c (_cpp_calc_hash): New function.
3023 (hash_HASHNODE): Just return h->hash.
3024 (_cpp_lookup): Set dummy.hash using _cpp_calc_hash. Use
3025 htab_find_with_hash.
3026 * cpphash.h: Prototype _cpp_calc_hash.
3027 * cppinit.c (initialize_builtins): Provide a valid hash
3028 to _cpp_make_hashnode, using _cpp_calc_hash.
3030 * cpphash.c (collect_expansion): # is not a special character
3031 in object-like macros. In -traditional mode, /**/ is not
3032 token paste at the beginning or end of the line.
3033 * cpplib.c (do_include, do_import, do_include_next): If
3034 parse_include fails, return immediately.
3036 2000-03-28 Jason Merrill <jason@casey.cygnus.com>
3038 * config/arm/arm.md (return peepholes): Update to reflect the new
3040 * config/arm/arm.c (arm_volatile_func): Also check
3041 current_function_nothrow.
3042 (output_return_instruction, output_func_prologue): Use it.
3043 (arm_output_epilogue, arm_expand_prologue): Likewise.
3045 2000-03-27 Tom Tromey <tromey@cygnus.com>
3047 * gcc.c (handle_braces): In {x*...} case, break out of loop if
3050 Tue Mar 28 11:55:48 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3052 * expr.c (store_constructor): SIZE now signed.
3053 For EXPR_SIZE, don't evaluate size; just needed if constant.
3054 * fold-const.c (fold): Fix a number of cases when folded tree is
3056 * function.c (flush_addressof): Reenable.
3057 * tree.h (flush_addressof): Likewise.
3058 * toplev.c (independent_decode_option): Look at strings_processed.
3059 * config/alpha/alpha.h (MINIMUM_ATOMIC_ALIGNMENT): Cast to unsigned.
3061 Tue Mar 28 08:29:46 2000 Jan Hubicka <jh@suse.cz>
3063 * sibcall.c (indentify_call_return_value): Find last call in the chain;
3064 Allow stack adjustment after function call.
3066 * regmove.c (struct csa_memlist): Make mem field rtx *.
3067 (record_one_stack_ref): Accept rtx * instead of rtx as parameter.
3068 (try_apply_stack_adjustment): Replace whole MEM rtx.
3069 (combine_stack_adjustments_for_block): Update calls
3070 to record_one_stack_ref.
3072 2000-03-28 Neil Booth <NeilB@earthling.net>
3074 * cpplex.c (_cpp_read_and_prescan): Mark end of input buffer with
3075 '\\' rather than a null character, so nulls are not special. Fix
3076 "\\\n" handling in end-of-buffer conditions. Use trigraph map to
3077 speed trigraph conversion.
3078 (_cpp_init_input_buffer): Initialize trigraph map.
3080 2000-03-27 Alan Modra <alan@linuxcare.com.au>
3082 * config/i386/i386.c (output_387_binary_op): Correct intel
3083 mode assembly output, and add spaces after commas in AT&T
3084 output. Correct Unixware assembler comment. Document input
3085 constraints. Comment fp operations. Reduce profligate buffer
3086 size. Remove extraneous abort. Localize temp var.
3087 (SYSV386_COMPAT): Define. Add !SYSV386_COMPAT code.
3088 (output_fix_trunc): Add spaces after commas in assembly output.
3090 2000-03-27 Richard Henderson <rth@cygnus.com>
3092 * i386-protos.h (ix86_match_ccmode): Declare.
3093 * i386.c (ix86_match_ccmode): New.
3094 (ix86_expand_fp_compare): Update for pattern renames.
3095 (ix86_expand_strlensi_unroll_1): Likewise.
3096 * i386.h (EXTRA_CC_MODES): Add CCZ.
3097 (SELECT_CC_MODE): Use it for EQ/NE zero.
3098 * i386.md (cmpsi_ccz_1): New.
3100 (*testsi_ccz_1): New.
3101 (testqi_ccz_1): New.
3102 (cmpsi_ccno_1): Rename from cmpsi_0.
3103 (testsi_ccno_1): Rename from testsi_1.
3104 (testqi_ccno_1): Rename from testqi_1.
3105 (*testqi_ext_ccz_0): Rename from testqi_ext_0.
3106 (testqi_ext_ccno_0): Rename from *testqi_ext_1.
3107 (*cmphi_0): Use ix86_match_ccmode.
3108 (*cmpqi_ext_2, *addsi_2, *addhi_2, *addqi_2): Likewise.
3109 (*subsi_2, *subhi_2, *subqi_2, *testhi_1): Likewise.
3110 (*testqi_ext_1, *testqi_ext_2, *testqi_ext_3): Likewise.
3111 (*andsi_2, *andhi_2, *andqi_2, *andqi_ext_0_cc): Likewise.
3112 (*iorsi_2, *iorhi_2, *iorqi_2): Likewise.
3113 (*xorsi_2, *xorhi_2, *xorqi_cc_1): Likewise.
3114 (*one_cmplsi2_2, *one_cmplhi2_2, *one_cmplqi2_2): Likewise.
3115 (*ashlsi3_cmpno, *ashlhi3_cmpno, *ashlqi3_cmpno): Likewise.
3116 (*ashrsi3_cmpno, *ashrhi3_cmpno, *ashrqi3_cmpno): Likewise.
3117 (*lshrsi3_cmpno, *lshrhi3_cmpno, *lshrqi3_cmpno): Likewise.
3118 (appropriate peepholes): Likewise.
3119 (*cmphi_1, *cmpqi_ccno_1, *cmpqi_1): Star out name.
3120 (*subsi_3, *subhi_3, *subqi_3): Remove.
3121 (*negdi2_1+1 splitter): Use CCZ for neg patterns.
3122 (*negsi2_cmp, *neghi2_cmp, *negqi2_cmp): Remove.
3123 (*negsi2_cmpz): Rename from *negsi2_cmpno, use CCZ.
3124 (*neghi2_cmpz, *negqi2_cmpz): Similarly.
3125 (x86_shift_adj_1): Use CCZ.
3126 (*dbra_ge+1, *dbra_ge+2, ffssi2, ffssi_1): Likewise.
3128 2000-03-27 Stan Cox <scox@cygnus.com>
3130 * resource.h (mark_resource_type): New.
3131 * resource.c (find_dead_or_set_registers, mark_target_live_regs,
3132 find_free_register): Use mark_resource_type.
3133 (mark_set_resources): Change include_delayed_effects
3134 to mark_resource_type.
3135 * reorg.c (steal_delay_list_from_target, try_merge_delay_insns,
3136 redundant_insn, fill_simple_delay_slots, fill_slots_from_thread):
3137 Use mark_resource_type.
3139 2000-03-27 Richard Henderson <rth@cygnus.com>
3141 * i386.md (call_pop_0, call_value_pop_0): New.
3142 (call_pop_1): Remove constraint from unused arg. Support sibcalls.
3143 (call_value_pop_1): Likewise.
3144 (call_0, call_value_0): New.
3145 (call_1, call_value_1): Remove constraint from unused arg.
3147 2000-03-27 Nick Clifton <nickc@cygnus.com>
3149 * invoke.texi (Spec Files): Document new spec % command created by
3150 Tom Tromey's recent patch.
3152 2000-03-27 Jakub Jelinek <jakub@redhat.com>
3154 * libgcc2.h (MIN_UNITS_PER_WORD): Define to UNITS_PER_WORD
3157 Mon Mar 27 06:04:22 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3159 * expr.c (expand_assignment): Fix typo in last change.
3161 * libgcc2.h: Use MIN_UNITS_PER_WORD, not UNITS_PER_WORD.
3163 Sun Mar 26 20:15:26 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3165 * c-convert.c (convert): Return if output or input type is ERROR_MARK.
3166 * c-decl.c (duplicate_decls): Only look at DECL_BUILT_IN_NONANSI
3167 and DECL_INLINE if FUNCTION_DECL.
3168 (pushdecl, redeclaration_error_message): Likewise, for DECL_INLINE.
3169 (store_parm_decls): Check for type of PARM_DECL being ERROR_MARK.
3170 Use DECL_WEAK, not DECL_RESULT, to flag for already seen.
3171 (combine_parm_decls): Likewise.
3172 * ggc-common.c (gcc_mark_tree_children, case 'd'): Use DECL_RESULT_FLD.
3173 * print-tree.c (print_node): Likewise.
3174 Only test DECL_PACKED, DECL_INLINE, DECL_BIT_FIELD, and
3175 DECL_TRANSPARENT_UNION on proper decl types.
3176 Properly handly DECL_INCOMING_RTL and DECL_SAVED_INSNS.
3177 * stor-layout.c (layout_decl): Only check DECL_PACKED and
3178 DECL_BIT_FIELD of FIELD_DECL.
3179 * tree.h (DECL_RESULT_FLD): New macro.
3181 * expr.c (expand_assignment): Add code to handle variable-sized
3184 2000-03-26 Richard Henderson <rth@cygnus.com>
3186 * calls.c (expand_call): Pass parms not original exp to
3187 optimize_tail_recursion. Mind return value instead of looking
3189 * stmt.c (optimize_tail_recursion): Take parameter list, not entire
3190 call_expr. Move checks for call_expr and current_function_decl ...
3191 (expand_return): ... here.
3193 2000-03-26 Tom Tromey <tromey@cygnus.com>
3195 * gcc.c (handle_braces): Recognize `%{<S}' construct.
3196 (SWITCH_OK, SWITCH_FALSE, SWITCH_IGNORE, SWITCH_LIVE): New
3198 (process_command): Use them.
3199 (check_live_switch): Likewise.
3200 (give_switch): Skip ignored switches.
3202 2000-03-26 Jan Hubicka <jh@suse.cz>
3204 * jump.c (jump_optimize_1): Fix typo in elide optimizations
3205 for minimal jump pass test.
3207 2000-03-26 Mark Mitchell <mark@codesourcery.com>
3209 * integrate.c (function_cannot_inline_p): Do inline functions that
3212 Sun Mar 26 11:37:55 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3214 * stor-layout.c (layout_type, set_sizetype): early_type_list is
3215 now a list of TREE_LIST entries, not types.
3216 * tree.c (build_common_tree_nodes_2): Eliminate dupliate type sets.
3218 * expmed.c (extract_bit_field): Ensure BITS_PER_WORD is signed in MAX.
3219 * config/arm/pe.c (arm_pe_return_in_memory): Use host_integerp and
3221 * config/mips/mips.c (function_arg): Likewise; also remove cast
3222 and make variables unsigned or HOST_WIDE_INT and use tree_low_cst.
3223 (mips_function_value): Use int_byte_position and make HOST_WIDE_INT.
3224 * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Offsets are unsigned.
3225 * config/mips/mips.h (BITS_PER_WORD, UNITS_PER_WORD): Cast to unsigned.
3226 (UNITS_PER_FPREG, INT_TYPE_SIZE, LONG_TYPE_SIZE): Likewise.
3227 (POINTER_SIZE, POINTER_BOUNDARY,PARM_BOUNDARY): Likewise.
3228 (GP_REG_P, FP_REG_P, MD_REG_P, ST_REG_P): Ensure subtraction signed.
3229 (struct mips_arg): arg_number, arg_words, fp_arg_words, and
3230 num_adjusts now unsigned.
3231 (FUNCTION_ARG_BOUNDARY): Remove unneeded cast.
3232 * config/sparc/sparc.c (struct function_arg_record_value_parms):
3234 (function_arg_record_value_1): STARTBITPOS arg now HOST_WIDE_INT
3235 as is BITPOS variable; use host_integerp and int_bit_position.
3236 (function_arg_record_value_2): Likewise.
3237 (function_arg_record_value_3): Arg BITPOS now HOST_WIDE_INT.
3238 Variable REGNO now unsigned.
3239 (function_arg_record_value): NREGS now unsigned.
3241 2000-03-26 Bernd Schmidt <bernds@cygnus.co.uk>
3243 * jump.c (mark_all_labels): Handle CALL_PLACEHOLDERs.
3245 Sat Mar 25 09:12:10 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3247 * Rework fields used to describe positions of bitfields and
3248 modify sizes to be unsigned and use HOST_WIDE_INT.
3249 * alias.c (reg_known_value_size): Now unsigned.
3250 * c-typeck.c (build_unary_op, case ADDR_EXPR): Use byte_position.
3251 (really_start_incremental_init): Use bitsize_zero_node.
3252 (push_init_level, pop_init_level, output_init_element): Likewise.
3253 Use bitsize_unit_node and bitsize_one_node.
3254 (output_pending_init_elements, process_init_element): Likewise.
3255 * combine.c (combine_max_regno, reg_sign_bit_copies): Now unsigned.
3256 (make_extraction): Position and length HOST_WIDE_INT and unsigned
3257 HOST_WIDE_INT, respectively.
3258 (get_pos_from_mask): Passed in value is unsigned HOST_WIDE_INT.
3259 (num_sign_bit_copies): Returns unsigned.
3260 BITWIDTH now unsigned; rework arithmetic.
3261 Remove recursive call from arg to MAX.
3262 (combine_instructions, init_reg_last_arrays): NREGS now unsigned.
3263 (setup_incoming_promotions, can_combine_p, try_combine, simplify_set):
3265 (set_nonzero_bit_and_sign_copies): NUM now unsigned.
3266 (find_split_point, expand_compound_operation, make_extraction): LEN
3267 now unsigned HOST_WIDE_INT, POS now HOST_WIDE_INT.
3268 (make_field_assignment): Likewise.
3269 (combine_simplify_rtx): Add cast.
3270 (expand_compound_operation): MODEWIDTH now unsigned; rework arithmetic.
3271 (force_to_mode): WIDTH now unsigned; add cast.
3272 (if_then_else_cond): SIZE now unsigned.
3273 (nonzero_bits): MODE_WIDTH, RESULT_WIDTH, and WIDTH now unsigned.
3274 (extended_count): Now returns unsigned.
3275 (simplify_shift_const): COUNT unsigned; arg is now INPUT_COUNT.
3276 Add SIGNED_COUNT variable; MODE_WORDS and FIRST_COUNT now unsigned.
3277 (simplify_comparison): MODE_WIDTH now unsigned.
3278 (update_table_tick): REGNO and ENDREGNO now unsigned; new var R.
3279 (mark_used_regs_combine): Likewise; rework arithmetic.
3280 (record_value_for_reg): REGNO, ENDREGNO, and I now unsigned.
3281 (record_dead_and_set_regs, reg_dead_at_p, distribute_notes): Likewise.
3282 (record_promoted_value): REGNO now unsigned.
3283 (get_last_value_validate): REGNO, ENDREGNO, and J now unsigned.
3284 (get_last_value): REGNO now unsigned.
3285 (use_crosses_set_p): REGNO and ENDREGNO now unsigned.
3286 (reg_dead_regno, reg_dead_endregno): Now unsigned.
3287 (remove_death): Arg REGNO now unsigned.
3288 (move_deaths): REGNO, DEADREGNO, DEADEND, OUREND, and I now unsigned.
3289 (reg_bitfield_target_p): REGNO, REGNO, ENDREGNO, and ENDTREGNO
3291 * convert.c (convert_to_integer): INPREC and OUTPREC now unsigned.
3292 * cse.c (struct qty_table_elem): FIRST_REG and LAST_REG now unsigned.
3293 (struct cse_reg_info): REGNO now unsigned.
3294 (cached_regno): Now unsigned.
3295 (REGNO_QTY_VALID_P): Add cast.
3296 (make_new_qty, make_regs_eqv, delete_reg_eqiv): Regno args unsigned.
3297 (remove_invalid_regs): Likewise.
3298 (remove_invalid_subreg_refs): Likewise; arg WORD also unsigned
3299 as are variables END and I.
3300 (get_cse_reg_info, insert): Likewise.
3301 (mention_regs, invalidate_for_call): REGNO, ENDREGNO, and I unsigned.
3302 (canon_hash): Likewise.
3303 (insert_regs, lookup_for_remove): REGNO now unsigned.
3304 (invalidate): REGNO, ENDREGNO, TREGNO, and TENDREGNO now unsigned.
3306 * dbxout.c (dbxout_parms, dbxout_reg_parms): Don't check for REGNO < 0.
3307 * dwarf2out.c (dwarf2ou_frame_debug_expr): Remove cast.
3308 * emit-rtl.c (subreg_realpart_p): Add cast.
3309 (operand_subword): Arg I is now unsigned as is var PARTWORDS.
3310 (operand_subword_force): Arg I is now unsigned.
3311 * except.c (eh_regs): Variable I is now unsigned.
3312 * explow.c (hard_function_value): BYTES is unsigned HOST_WIDE_INT.
3313 * expmed.c (store_fixed_bit_field): Position is HOST_WIDE_INT;
3314 length is unsigned HOST_WIDE_INT; likewise for internal variables.
3315 (store_split_bit_field, extract_fixed_bit_field): Likewise.
3316 (extract_split_bit_field, store_bit_field, extract_bit_field):
3318 * expr.c (store_constructor_fields, store_constructor, store_field):
3319 Positions are HOST_WIDE_INT and lengths are unsigned HOST_WIDE_INT.
3320 (expand_assignment, expand_expr, expand_expr_unaligned): Likewise.
3321 (do_jump): Likewise.
3322 (move_by_pieces, move_by_pieces_ninsns, clear_by_pieces):
3323 MAX_SIZE is now unsigned.
3324 (emit_group_load): BYTEPOS is HOST_WIDE_INT; BYTELEN is unsigned.
3325 (emit_group_store): Likewise.
3326 (emit_move_insn): I now unsigned.
3327 (store_constructor): Use host_integerp, tree_low_cst, and
3329 (get_inner_reference): Return bitpos and bitsize as HOST_WIDE_INT.
3330 Rework all calculations to use trees and new fields.
3331 * expr.h (promoted_input_arg): Regno now unsigned.
3332 (store_bit_field, extract_bit_field): Adjust types of pos and size.
3333 (mark_seen_cases): Arg is HOST_WIDE_INT.
3334 * flow.c (verify_wide_reg_1): REGNO now unsigned.
3335 * fold-const.c (decode_field_reference): Size and pos HOST_WIDE_INT;
3336 precisions and alignments are unsigned.
3337 (optimize_bit_field_compare, fold_truthop): Likewise.
3338 (int_const_binop): Adjust threshold for size_int_type_wide call.
3339 (fold_convert): Likewise.
3340 (size_int_type_wide): Make table larger and fix thinko that only
3341 had half of table used.
3342 (all_ones_mask_p, fold): Precisions are unsigned.
3343 * function.c (put_reg_info_stack): REGNO is unsigned.
3344 (instantiate_decl): Size is HOST_WIDE_INT.
3345 (instantiate_virtual_regs): I is unsigned.
3346 (assign_parms): REGNO, REGNOI, and REGNOR are unsigned.
3347 (promoted_input_arg): REGNO is unsigned.
3348 * function.h (struct function): x_max_parm_reg is now unsigned.
3349 * gcse.c (max_gcse_regno): Now unsigned.
3350 (struct null_pointer_info): min_reg and max_reg now unsigned.
3351 (lookup_set, next_set): REGNO arg now unsigned.
3352 (compute_hash_table): REGNO and I now unsigned.
3353 (handle_avail_expr): regnum_for_replacing now unsigned.
3354 (cprop_insn): REGNO now unsigned.
3355 (delete_null_pointer_checks_1): BLOCK_REG now pointer to unsigned.
3356 * ggc-common.c (ggc_mark_tree_children, case FIELD_DECL): New case.
3357 * global.c (set_preference): SRC_REGNO, DEST_REGNO, and I now unsigned.
3358 * hard-reg-set.h (reg_class_size): Now unsigned.
3359 * integrate.c (mark_stores): LAST_REG and I now unsigned; new UREGNO.
3360 * jump.c (mark_modified_reg): I now unsigned; add cast.
3361 (rtx_equal_for_thread_p): Add cast.
3362 * loop.c (max_reg_before_loop): Now unsigned.
3363 (struct_movable): REGNO now unsigned.
3364 (try_copy_prop): REGNO arg unsigned.
3365 (regs_match_p): XN and YN now unsigned.
3366 (consec_sets_invariant_p, maybe_eliminate_biv): REGNO now unsigned.
3367 (strength_reduce): Likewise; NREGS also unsigned.
3368 (first_increment_giv, last_increment_giv unsigned): Now unsigned.
3369 * loop.h (struct iv_class): REGNO now unsigned.
3370 (max_reg_before_loop, first_increment_giv, last_increment_giv):
3372 * machmode.h (mode_size, mode_unit_size): Now unsigned.
3373 (mode_for_size, smallest_mode_for_size): Pass size as unsigned.
3374 * optabs.c (expand_binop): I and NWORDS now unsigned.
3375 (expand_unop): I now unsigned.
3376 * print-tree.c (print_node): Don't print DECL_FIELD_BITPOS, but do
3377 print DECL_FIELD_OFFSET and DECL_FIELD_BIT_OFFSET.
3378 * real.c (significand_size): Now returns unsigned.
3379 * real.h (significand_size): Likewise.
3380 * regclass.c (reg_class_size): Now unsigned.
3381 (choose_hard_reg_mode): Both operands now unsigned.
3382 (record_reg_classes): REGNO and NR now unsigned.
3383 (reg_scan): NREGS now unsigned.
3384 (reg_scan_update): old_max_regno now unsigned.
3385 (reg_scan_mark_refs): Arg MIN_REGNO and var REGNO now unsigned.
3386 * reload.c (find_valid_class): BEST_SIZE now unsigned.
3387 (find_dummy_reload): REGNO, NWORDS, and I now unsigned.
3388 (hard_reg_set_here_p): Args BEG_REGNO and END_REGNO now unsigned.
3389 Likewise for variable R.
3390 (refers_to_regno_for_reload_p): Args REGNO and END_REGNO now unsigned,
3391 as are variables INNER_REGNO and INNER_ENDREGNO; add new variable R.
3392 (find_equiv_reg): Add casts.
3393 (regno_clobbered_p): Arg REGNO now unsigned.
3394 * reload.h (struct reload): NREGS now unsigned.
3395 (refers_to_regno_for_reload_p): Regno args are unsigned.
3396 (regno_clobbered_p): Likewise.
3397 * reload1.c (reg_max_ref_width, spill_stack_slot_width): Now unsigned.
3398 (compute_use_by_pseudos): REGNO now unsigned.
3399 (find_reg): I and J now unsigned, new variable K, and change loop
3400 variables accordingly; THIS_NREGS now unsigned.
3401 (alter_reg): INHERENT_SIZE and TOTAL_SIZE now unsigned.
3402 (spill_hard_reg): REGNO arg now unsigned; add casts.
3403 (forget_old_reloads_1): REGNO, NR, and I now unsigned.
3404 (mark_reload_reg_in_use): Arg REGNO and vars NREGS and I now unsigned.
3405 (clear_reload_reg_in_use): Arg REGNO and vars NREGS, START_REGNO,
3406 END_REGNO, CONFLICT_START, and CONFLICT_END now unsigned.
3407 (reload_reg_free_p, reload_reg_reaches_end_p): Arg REGNO now unsigned.
3408 (choose_reload_regs): MAX_GROUP_SIZE now unsigned.
3409 (emit_reload_insns): REGNO now unsigned.
3410 (reload_cse_move2add): Add cast.
3411 (move2add_note_store): REGNO and I now unsigned; new variable ENDREGNO
3413 * resource.c (mark_referenced_resources, mark_set_resources): New
3414 variable R; REGNO and LAST_REGNO now unsigned.
3415 (mark_target_live_regs): J and REGNO now unsigned.
3416 * rtl.c (mode_size, mode_unit_size): Now unsigned.
3417 * rtl.h (union rtunion_def): New field rtuint.
3418 (XCUINT): New macro.
3419 (ADDRESSOF_REGNO, REGNO, SUBREG_WORD): New XCUINT.
3420 (operand_subword, operand_subword_force): Word number is unsigned.
3421 (choose_hard_reg_mode): Operands are unsigned.
3422 (refers_to-regno_p, dead_or_set_regno_p): Regno arg is unsigned.
3423 (find_regno_note, find_regno_fusage, replace_regs): Likewise.
3424 (regno_use_in, combine_instructions, remove_death): Likewise.
3425 (reg_scan, reg_scan_update): Likewise.
3426 (extended_count): Return is unsigned.
3427 * rtlanal.c (refers_to_regno_p): Args REGNO and ENDREGNO and vars I,
3428 INNER_REGNO, and INNER_ENDREGNO now unsigned; new variable X_REGNO.
3429 (reg_overlap_mentioned_p): REGNO and ENDREGNO now unsigned.
3430 (reg_set_last_first_regno, reg_set_last_last_regno): Now unsigned.
3431 (reg_reg_last_1): FIRS and LAST now unsigned.
3432 (dead_or_set_p): REGNO, LAST_REGNO, and I now unsigned.
3433 (dead_or_set_regno_p): Arg TEST_REGNO and vars REGNO and ENDREGNO
3435 (find_regno_note, regno_use_in): Arg REGNO now unsigned.
3436 (find_regno_fusage): Likewise; also var REGNOTE now unsigned.
3437 (find_reg_fusage): Variables REGNO, END_REGNO, and I now unsigned.
3438 (replace_regs): Arg NREGS now unsigned.
3439 * sdbout.c (sdbout_parms, sdbout_reg_parms): Don't check REGNO < 0.
3440 * simplify-rtx.c (simplify_unary_operation): WIDTH now unsigned.
3441 (simplify_binary_operation): Likewise.
3442 (cselib_invalidate_regno): Arg REGNO and variables ENDREGNO, I, and
3443 THIS_LAST now unsigned.
3444 (cselib_record_set): Add cast.
3445 * ssa.c (ssa_max_reg_num): Now unsigned.
3446 (rename_block): REGNO now unsigned.
3447 * stmt.c (expand_return): Bit positions unsigned HOST_WIDE_INT;
3449 (all_cases_count): Just return -1 not -2.
3450 COUNT, MINVAL, and LASTVAL now HOST_WIDE_INT.
3451 Rework tests to use trees whenever possible.
3452 Use host_integerp and tree_low_cst.
3453 (mark_seen_cases): COUNT arg now HOST_WIDE_INT;
3454 Likewise variable NEXT_NODE_OFFSET; XLO now unsigned.
3455 (check_for_full_enumeration_handing): BYTES_NEEDED, I to HOST_WIDE_INT.
3456 * stor-layout.c (mode_for_size): SIZE arg now unsigned.
3457 (smallest_mode_for_size): Likewise.
3458 (layout_decl): Simplify handing of a specified DECL_SIZE_UNIT.
3459 KNOWN_ALIGN is now an alignment, so simplify code.
3460 Don't turn off DECL_BIT_FIELD if field is BLKmode, but not type.
3461 (start_record_layout): Renamed from new_record_layout_info.
3462 Update to new fields.
3463 (debug_rli, normalize_rli, rli_size_unit_so_far, rli_size_so_far):
3465 (place_union_field): Renamed from layout_union_field.
3466 Update to use new fields in rli.
3467 (place_field): Renamed from layout_field.
3468 Major rewrite to use new fields in rli; pass alignment to layout_decl.
3469 (finalize_record_size): Rework to use new fields in rli and handle
3471 (compute_record_mode): Rework to simplify and to use new DECL fields.
3472 (finalize_type_size): Make rounding more consistent.
3473 (finish_union_layout): Deleted.
3474 (layout_type, case VOID_TYPE): Don't set TYPE_SIZE_UNIT either.
3475 (layout_type, case RECORD_TYPE): Call new function names.
3476 (initialize_sizetypes): Set TYPE_IS_SIZETYPE.
3477 (set_sizetype): Set TYPE_IS_SIZETYPE earlier.
3478 (get_best_mode): UNIT is now unsigned; remove casts.
3479 * tree.c (bit_position): Compute from new fields.
3480 (byte_position, int_byte_position): New functions.
3481 (print_type_hash_statistics): Cast to remove warning.
3482 (build_range_type): Use host_integerp and tree_low_cst to try to hash.
3483 (build_index_type): Likewise; make subtype of sizetype.
3484 (build_index_2_type): Pass sizetype to build_range_type.
3485 (build_common_tree_nodes): Use size_int and bitsize_int to
3486 initialize nodes; add bitsize_{zero,one,unit}_node.
3487 * tree.h (DECL_FIELD_CONTEXT): Use FIELD_DECL_CHECK.
3488 (DECL_BIT_FIELD_TYPE, DECL_QUALIFIER, DECL_FCONTEXT): Likewise.
3489 (DECL_PACKED, DECL_BIT_FIELD): Likewise.
3490 (DECL_FIELD_BITPOS): Deleted.
3491 (DECL_FIELD_OFFSET, DECL_FIELD_BIT_OFFSET): New fields.
3492 (DECL_RESULT, DECL_SAVED_INSNS): Use FUNCTION_DECL_CHECK.
3493 (DECL_FRAME_SIZE, DECL_FUNCTION_CODE, DECL_NO_STATIC_CHAIN): Likewise.
3494 (DECL_INLINE, DECL_BUILT_IN_NONANSI, DECL_IS_MALLOC): Likewise.
3495 (DECL_BUILT_IN_CLASS, DECL_STATIC_CONSTRUCTOR): Likewise.
3496 (DECL_STATIC_DESTRUCTOR, DECL_NO_CHECK_MEMORY_USAGE): Likewise.
3497 (DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT, DECL_NO_LIMIT_STACK) Likewise.
3498 (DECL_ORIGINAL_TYPE, TYPE_DECL_SUPPRESS_DEBUG): Use TYPE_DECL_CHECK.
3499 (DECL_ARG_TYPE_AS_WRITEN, DECL_ARG_TYPE): Use PARM_DECL_CHECK.
3500 (DECL_INCOMING_RTL, DECL_TRANSPARENT_UNION): Likewise.
3501 (DECL_ALIGN): Adjust to new field in union.
3502 (DECL_OFFSET_ALIGN): New field.
3503 (DECL_ERROR_ISSUED, DECL_TOO_LATE): Use LABEL_DECL_CHECK.
3504 (DECL_IN_TEXT_SECTION): Use VAR_DECL_CHECK.
3505 (union tree_decl): Add struct for both aligns.
3506 (enum tree_index): Add TI_BITSIZE_{ZERO,ONE,UNIT}.
3507 (bitsize_zero_node, bitsize_one_node, bitsize_unit_node): Added.
3508 (struct record_layout_info): Rework fields to have offset
3509 alignment and byte and bit position.
3510 (start_record_layout, place_field): Renamed from old names.
3511 (rli_size_so_far, rli_size_unit_so_far, normalize_rli): New decls.
3512 (byte_position, int_byte_position): Likewise.
3513 (get_inner_reference): Change types of position and length.
3514 * unroll.c (unroll_loop): New variable R; use for some loops.
3515 MAX_LOCAL_REGNUM and MAXREGNUM now unsigned.
3516 (calculate_giv_inc): Arg REGNO now unsigned.
3517 (copy_loop_body): REGNO and SRC_REGNO now unsigned.
3518 * varasm.c (assemble_variable): Clean up handling of size using
3519 host_integerp and tree_low_cst.
3520 (decode_addr_const): Use byte, not bit, position.
3521 (output_constructor): bitpos and offsets are HOST_WIDE_INT;
3522 use tree_low_cst and int_bit_position.
3523 * objc/objc-act.c (build_ivar_list_initializer): Use byte_position.
3525 Fri Mar 24 20:13:49 2000 Jason Eckhardt <jle@cygnus.com>
3527 * bb-reorder.c (REORDER_MOVED_BLOCK_END): Removed.
3528 (reorder_block_def): New members eff_head and eff_end.
3529 (REORDER_BLOCK_EFF_HEAD, REORDER_BLOCK_EFF_END): New macros.
3530 (verify_insn_chain): New function.
3531 (skip_insns_between_block): Add code to skip deleted insns.
3532 Check for note before using.
3533 (chain_reorder_blocks): Replace calls to skip_insns_between_block
3534 with references to REORDER_BLOCK_EFF_HEAD and REORDER_BLOCK_EFF_END.
3535 Check for note before using.
3536 (make_reorder_chain): Use INTVAL rather than XINT to get REG_BR_PROB.
3537 (fixup_reorder_chain): Restructure, clean up, defect removal.
3538 (reorder_basic_blocks): Remove last_insn and references to it.
3539 Moved insn chain verification code into a new function (see above).
3540 Delete defective code that sets last insn.
3541 Initialize REORDER_BLOCK_EFF_HEAD and REORDER_BLOCK_EFF_END for
3544 2000-03-25 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
3546 * config/c4x/c4x.h (CPP_SPEC): Remove erroneous space.
3548 2000-03-24 Richard Henderson <rth@cygnus.com>
3550 * tree.c (lang_safe_for_unsave): Remove.
3551 (unsafe_for_reeval): Transmute and rename from safe_for_unsave,
3552 allowing for two levels of unsafeness. Remove lang hook.
3553 * tree.h: Update declarations.
3554 * calls.c (expand_call): Rename safe_for_reeval to try_tail_call.
3555 Create temporary VAR_DECLs to protect very unsafe_for_reeval trees.
3556 Always fail sibcalls when there are pending cleanups.
3558 2000-03-24 Geoff Keating <geoffk@cygnus.com>
3560 * flow.c (propagate_block): When we delete an ADDR_VEC,
3561 also delete the BARRIER following it if there is one.
3563 2000-03-24 Richard Henderson <rth@cygnus.com>
3565 * builtins.c (expand_builtin_bzero): Convert `length' argument
3568 2000-03-24 Jakub Jelinek <jakub@redhat.com>
3570 * sibcall.c (skip_copy_to_return_value): Use OUTGOING_REGNO for
3571 comparison if regno's are equal.
3572 * calls.c (initialize_argument_informat): Add ecf_flags argument.
3573 Use FUNCTION_INCOMING_ARG if available and ECF_SIBCALL.
3574 (expand_call): Update caller.
3575 Avoid making a sibling call if argument size of the callee is larger
3576 than argument size of the caller.
3577 Call hard_function_value with outgoing set if in sibcall pass.
3578 Use FUNCTION_INCOMING_ARG if available and ECF_SIBCALL.
3580 * final.c (permitted_reg_in_leaf_functions, only_leaf_regs_used):
3581 Change LEAF_REGISTERS from an array initializer to actual array
3582 identifier. Move static global variable into the function.
3583 (leaf_function_p): Allow SIBLING_CALL_P calls even outside of
3584 sequences for leaf functions.
3585 * global.c (global_alloc): Likewise.
3586 * tm.texi (LEAF_REGISTERS): Update documentation.
3588 * config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Remove the ugly
3589 TARGET_FLAT leaf disabling hack.
3590 (LEAF_REGISTERS): Changed from an array initializer to actual array
3591 identifier to avoid duplication and remove the above hack.
3592 (FUNCTION_OK_FOR_SIBCALL): Define.
3593 * config/sparc/sparc.md (sibcall): New attr type. Use it almost
3594 always like call attribute.
3595 (eligible_for_sibcall_delay): New attribute.
3596 (sibcall): New delay type.
3597 (sibcall, sibcall_value, sibcall_epilogue): New expands.
3598 (sibcall_symbolic_sp32, sibcall_symbolic_sp64,
3599 sibcall_value_symbolic_sp32, sibcall_value_symbolic_sp64): New insns.
3600 * config/sparc/sparc.c (sparc_leaf_regs): New array.
3601 (eligible_for_sibcall_delay, output_restore_regs, output_sibcall):
3603 (output_function_epilogue): Move part of the code into
3604 output_restore_regs.
3605 (ultra_code_from_mask, ultrasparc_sched_reorder): Handle
3607 * sparc-protos.h (output_sibcall, eligible_for_sibcall_delay): New
3610 * config/sparc/sparc.h (REVERSIBLE_CC_MODE): Revert Jan, 25 change
3611 until infrastructure is finished.
3613 Fri Mar 24 13:49:45 2000 Jeffrey A Law (law@cygnus.com)
3615 * integrate.c (save_for_inline_nocopy): Clear in_nonparm_insns here.
3616 (save_parm_insns): Not here.
3618 2000-03-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3620 * builtins.c (expand_builtin_bzero): New function.
3621 (expand_builtin): Handle bzero.
3623 * builtins.def: Add BUILT_IN_BZERO.
3625 * c-common.c (c_common_nodes_and_builtins): Provide builtin
3626 prototype & function for bzero.
3628 2000-03-23 Michael Meissner <meissner@redhat.com>
3630 * config/alpha/alpha.md (TF floating point insns): Undo 2000-03-21
3631 change adding TARGET_FP to the TF floating point insns, except for
3632 trunctfsf2, which generates direct calls to truncdfsf2.
3634 2000-03-23 Geoff Keating <geoffk@cygnus.com>
3636 * config/rs6000/rs6000.h (ARG_POINTER_CFA_OFFSET): New definition,
3637 try to protect against middle-end changes that break binary
3639 (DWARF_FRAME_REGISTERS): New definition, likewise for backend.
3641 2000-03-24 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
3643 * config/c4x/c4x.md (load_immed_address): Add DP reg clobber.
3645 Thu Mar 23 17:10:48 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3647 * calls.c (expand_call): If TARGET is passed by reference and
3648 is readonly, write a CLOBBER.
3650 2000-03-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3652 * builtins.c (expand_builtin): Handle bcmp.
3654 * builtins.def: Add BUILT_IN_BCMP.
3656 * c-common.c (c_common_nodes_and_builtins): Provide builtin
3657 prototype & function for bcmp.
3659 Thu Mar 23 11:34:39 2000 Jim Wilson <wilson@cygnus.com>
3661 * config/ia64/ia64.c (rtx_needs_barrier, case UNSPEC): Move case 6...
3662 (rtx_needs_barrier, case UNSPEC_VOLATILE): to here.
3663 * config/ia64/ia64.md (pr_restore): Change UNSPEC to UNSPEC_VOLATILE.
3665 Thu Mar 23 16:04:40 2000 Andrew Haley <aph@cygnus.com>
3667 * config/mips/mips.md (movdf_internal1a): Delete (set 'f', 'F')
3668 alternative when using -fp64 -gp32.
3670 2000-03-22 Jason Merrill <jason@casey.cygnus.com>
3672 * config/rs6000/rs6000.h (DWARF_FRAME_RETURN_COLUMN): Define.
3673 * config/alpha/alpha.h (DWARF_FRAME_RETURN_COLUMN): Define.
3674 * config/sparc/sparc.h (DWARF_FRAME_RETURN_COLUMN): Define.
3676 * frame.h (frame_state): Revert last change.
3677 * frame.c (execute_cfa_insn): Just don't record the save of a CFA reg.
3678 * libgcc2.c (throw_helper): Revert last change.
3680 2000-03-22 Richard Henderson <rth@cygnus.com>
3682 * stmt.c (expand_asm_operands): Don't promote the temporary.
3684 2000-03-22 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
3686 * builtin.c (get_pointer_alignment): Use DECL_P and TYPE_P macros.
3687 * c-common.c (decl_attributes,check_format_info,truthvalue_conversion,
3688 c_get_alias_set): Likewise.
3689 * c-decl.c (duplicate_decls): Likewise.
3690 * c-typeck.c (default_conversion,build_unary_op): Likewise.
3691 * calls.c (initialize_argument_information): Likewise.
3692 * dwarf2out.c (decl_class_context,add_abstract_origin_attribute):
3694 * dwarfout.c (decl_class_context,output_type): Likewise.
3695 * expr.c (get_inner_reference): Likewise.
3696 * fold-const.c (simple_operand_p,fold): Likewise.
3697 * function.c (aggregate_value_p): Likewise.
3698 * stmt.c (expand_asm_operands): Likewise.
3699 * varasm.c (named_section): Likewise.
3701 2000-03-22 Jason Merrill <jason@casey.cygnus.com>
3703 Implement dwarf2 exception handling for the ARM.
3704 * config/arm/arm.h (INCOMING_RETURN_ADDR_RTX): Define.
3705 (DWARF_FRAME_RETURN_COLUMN): Define.
3706 * config/arm/arm.c (emit_multi_reg_push): Return rtx. Attach
3707 REG_FRAME_RELATED_EXPR note.
3708 (emit_sfm): Likewise.
3709 (arm_expand_prologue): Set RTX_FRAME_RELATED_P on everything.
3710 * dwarf2out.c (reg_save): Handle saving a register to itself.
3711 (dwarf2out_frame_debug_expr): Handle an intermediate cfa reg.
3712 * except.c (eh_regs): Don't use the static chain reg if it's
3714 * frame.h (frame_state): Add cfa_saved field.
3715 * frame.c (execute_cfa_insn): Set it.
3716 * libgcc2.c (throw_helper): Don't adjust sp if it's restored in
3718 * function.c (ARG_POINTER_CFA_OFFSET): Default to FIRST_PARM_OFFSET.
3720 (instantiate_virtual_regs): Adjust.
3722 * config/m68k/m68k.h (ARG_POINTER_CFA_OFFSET): Don't define.
3723 * config/ns32k/ns32k.h (ARG_POINTER_CFA_OFFSET): Don't define.
3724 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): Take a parm.
3726 * dwarf2out.c (reg_number): Refer to FIRST_PSEUDO_REGISTER.
3727 (initial_return_save): Use DWARF_FRAME_REGNUM, not reg_number.
3729 2000-03-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3731 * builtins.def: New file.
3733 * Makefile.in (TREE_H): Depend on builtins.def.
3735 * builtins.c (built_in_names): Use builtins.def.
3737 * tree.h (built_in_function): Likewise.
3739 2000-03-22 Mark Mitchell <mark@codesourcery.com>
3741 * tree.c (size_in_bytes): Return size_zero_node, not
3744 2000-03-22 Geoff Keating <geoffk@cygnus.com>
3746 * config/fp-bit.c (pack_d): Correct the case when a denormal
3747 is rounded up and stops being denormal.
3749 2000-03-21 Richard Henderson <rth@cygnus.com>
3751 * config/alpha/alpha.c (function_arg): Check for void_type_node
3752 before using MUST_PASS_IN_STACK.
3754 2000-03-21 Stephane Carrez <stcarrez@worldnet.fr>
3756 * regmove.c (combine_stack_adjustments_for_block): Check that
3757 the stack pointer is a valid memory address.
3759 Wed Mar 22 11:44:50 MET 2000 Jan Hubicka <jh@suse.cz>
3761 * calls.c: re-install Mar 16 emit_library_call merge.
3763 2000-03-21 Jakub Jelinek <jakub@redhat.com>
3765 * config/sparc/sparc.c (mem_min_alignment): If not optimizing,
3766 we cannot be sure that if reload_completed base register will
3767 be properly aligned.
3769 2000-03-21 Richard Henderson <rth@cygnus.com>
3771 * flow.c (delete_block): Fix typo last change.
3773 2000-03-21 Mark Mitchell <mark@codesourcery.com>
3775 * c-common.c (c_expand_expr_stmt): Use COMPLETE_TYPE_OR_VOID_P,
3776 not COMPLETE_TYPE_P, to check the type of the expression.
3778 2000-03-21 Michael Meissner <meissner@redhat.com>
3780 * config/alpha/alpha.md (floating point insns): Add TARGET_FP to
3781 all floating point insns that just tested the macro
3782 TARGET_HAS_XFLOATING_LIBS.
3783 (movsf/movdf recognizers): Add separate insns if -mno-fp-regs is
3784 used to only use the gprs.
3786 2000-03-21 Nathan Sidwell <nathan@codesourcery.com>
3788 * tree.h (COMPLETE_TYPE_P): New macro.
3789 (COMPLETE_OR_VOID_TYPE_P): New macro.
3790 (COMPLETE_OR_UNBOUND_ARRAY_TYPE_P): New macro.
3791 * stor-layout.c (layout_type, case VOID_TYPE): Don't set TYPE_SIZE.
3792 * c-aux-info.c (gen_type): Use them.
3793 * c-common.c (c_expand_expr_stmt): Likewise.
3794 * c-decl.c (poplevel, pushdecl, start_decl, finish_decl,
3795 grokdeclarator, grokparms, finish_struct, start_function,
3796 store_parm_decls, combine_parm_decls): Likewise.
3797 * c-parse.y (cast_expr): Likewise.
3798 * c-typeck.c (require_complete_type, c_sizeof, c_sizeof_nowarn,
3799 c_size_in_bytes, c_alignof, build_component_ref,
3800 build_indirect_ref, build_array_ref, convert_arguments,
3801 build_binary_op, pointer_diff, build_unary_op, digest_init: Likewise.
3802 * calls.c (initialize_argument_information): Likewise.
3803 * convert.c (convert_to_integer): Likewise.
3804 * dbxout.c (dbxout_typedefs, dbxout_type, dbxout_symbol): Likewise.
3805 * dwarfout.c (location_or_const_value_attribute,
3806 output_enumeration_type_die, output_structure_type_die,
3807 output_union_type_die, output_type): Likewise.
3808 * expr.c (safe_from_p, expand_expr): Likewise.
3809 * function.c (assign_parms): Likewise.
3810 * sdbout.c (sdbout_symbol, sdbout_one_type): Likewise.
3811 * tree.c (build_array_type, build_function_type,
3812 build_method_type, build_offset_type, build_complex_type): Likewise.
3813 * c-parse.c, c-parse.h: Regenerated.
3815 2000-03-21 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
3817 * config/c4x/rtems.h: Include config/rtems.h.
3819 Tue Mar 21 09:24:00 2000 Denis Chertykov <denisc@overta.ru>
3821 * config/avr/avr.c (encode_section_info): sets SYMBOL_REF_FLAG if
3822 decl is a FUNCTION_DECL
3824 Mon Mar 20 19:53:53 2000 Jim Wilson <wilson@cygnus.com>
3826 * config/ia64/ia64.c (ia64_expand_prologue): Don't abort if leaf
3827 function uses output registers. Don't save RP for leaf functions.
3828 Do save RP even if no epilogue.
3829 * config/ia64/ia64.h (FIXED_REGISTERS): Unmark in/out registers.
3830 (CALL_USED_REGISTERS): Unmark in registers.
3831 (REG_ALLOC_ORDER): Move out regs up, to near the top. Move in regs up,
3834 2000-03-20 Geoff Keating <geoffk@cygnus.com>
3836 * config/rs6000/rs6000.md (bunordered): New expander.
3837 (bordered): New expander.
3838 (buneq): New expander.
3839 (bunge): New expander.
3840 (bungt): New expander.
3841 (bunle): New expander.
3842 (bunlt): New expander.
3843 (bltgt): New expander.
3845 * config/rs6000/rs6000.c (ccr_bit): Handle unordered comparisons.
3846 (ccr_bit_negated_p): New function.
3847 (print_operand): For %C, generate appropriate cror for UNEQ,
3848 UNLT, UNGT, and LTGT. For %T and %t, use ccr_bit_negated_p.
3850 2000-03-20 Andreas Jaeger <aj@suse.de>
3852 * sdbout.c (sdbout_one_type): Add braces to avoid "ambigous else"
3855 * tree.h (safe_for_unsave): Prototype.
3857 2000-03-20 Richard Henderson <rth@cygnus.com>
3859 * regmove.c (stack_memref_p): Fix typo, reorg for readability.
3860 (combine_stack_adjustments_for_block): Don't allow sp references
3861 in the side of a set we're not fixing up.
3862 * toplev.c (rest_of_compilation): Run combine_stack_adjustments
3863 after life_analysis.
3865 2000-03-20 Richard Henderson <rth@cygnus.com>
3867 * calls.c (expand_call): Don't bother generating tail call
3868 sequences if there are pending cleanups. Use
3869 expand_start_target_temps/expand_end_target_temps to elide
3870 cleanups created during sibcall expansion.
3872 2000-03-20 Geoff Keating <geoffk@cygnus.com>
3874 * configure.in: Set $IFS to a value if it doesn't already have one
3875 in the --enable-checking handling.
3876 * configure: Regenerate.
3878 2000-03-20 Martin v. Löwis <loewis@informatik.hu-berlin.de>
3880 * c-parse.in (SAVE_WARN_FLAGS): Use size_int.
3881 * c-parse.y, c-parse.c, objc/objc-parse.y, objc/objc-parse.c:
3884 Mon Mar 20 11:43:15 MET 2000 Jan Hubicka <jh@suse.cz>
3886 * jump.c (delete_noop_moves): Remove code attempting to
3887 combine stack adjustments.
3889 2000-03-19 Martin v. Löwis <loewis@informatik.hu-berlin.de>
3891 * emit-rtl.c (push_to_full_sequence, end_full_sequence): New functions.
3892 * except.c (emit_cleanup_handler): Use them.
3893 (expand_end_all_catch): Likewise.
3894 * function.c (fixup_var_refs): Likewise.
3895 (expand_function_end): Clear catch_clauses_last.
3896 * rtl.h (push_to_full_sequence, end_full_sequence): Declare.
3897 * except.h (struct eh_status): New field x_catch_clauses_last.
3898 (catch_clauses_last): New define.
3900 * Makefile.in (tree.o): Depend on HASHTAB_H.
3901 * tree.c: Include hashtab.h.
3902 (struct type_hash): Remove next field.
3903 (TYPE_HASH_SIZE): Remove.
3904 (TYPE_HASH_INITIAL_SIZE): New define.
3905 (type_hash_table): Change type to htab_t.
3906 (type_hash_eq, type_hash_hash, print_type_hash_statistics,
3907 mark_hash_entry): New functions.
3908 (init_obstacks): Allocate type hash.
3909 (type_hash_lookup): Use htab functions.
3910 (type_hash_add, mark_type_hash): Likewise.
3911 (dump_tree_statistics): Call print_type_hash_statistics.
3913 2000-03-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3915 * rs6000/t-aix41: New file.
3917 * configure.in ({rs6000,powerpc}-ibm-aix4.[12]*): Use it.
3919 Sun Mar 19 13:27:30 2000 Hans-Peter Nilsson <hp@axis.com>
3921 * tm.texi (Driver): Fix typos and tweak entry for
3923 Move misplaced STRUCT_FORCE_BLK entry ...
3924 (Storage Layout): ... to here.
3925 (Run-time Target): Recommend having TARGET_MASK_... helper macros.
3927 2000-03-19 Richard Henderson <rth@cygnus.com>
3929 * flow.c (delete_block): Delete the addr_vec along with the block.
3930 (flow_delete_insn): Decrement LABEL_NUSES when deleting insns that
3933 * fold-const.c (extract_muldiv): Apply type check for defined
3934 overflow to multiply as well as divide.
3936 * stor-layout.c (layout_decl): Don't abort on any zero sized decl.
3938 2000-03-18 Mark Mitchell <mark@codesourcery.com>
3940 * emit-rtl.c (remove_unncessary_notes): Check that all
3941 NOTE_INSN_BLOCK_BEG and NOTE_INSN_BLOCK_END notes have an
3942 associated NOTE_BLOCK.
3943 * function.h (identify_blocks): Update comments.
3944 (reorder_blocks): Declare.
3945 * function.c (identify_blocks): Don't take paramters.
3946 (reorder_blocks): Don't take parameters.
3947 * loop.h (find_loop_tree_blocks): Remove.
3948 (unroll_block_trees): Likewise.
3949 * loop.c (loop_optimize): Don't call find_loop_tree_blocks. Use
3950 reorder_blocks instead of unroll_block_trees.h
3951 * sibcall.c (optimize_sibling_and_tail_recursive_calls): Likewise.
3952 * stmt.c (find_loop_tree_blocks): Remove.
3953 (unroll_block_trees): Likewise.
3954 * toplev.c (rest_of_compilation): Don't call find_loop_tree_blocks
3955 in whole-function mode.
3956 * tree.h (reorder_blocks): Remove declaration.
3958 * expr.c: Include intl.h.
3959 * Makefile.in (expr.o): Depend on intl.h.
3961 2000-03-18 Richard Henderson <rth@cygnus.com>
3963 * expr.c (emit_move_insn_1): Clarify cannot_inline message.
3965 2000-03-18 Mark Mitchell <mark@codesourcery.com>
3967 * tree.h (tree_index): Remove enumerals for integer types.
3968 (integer_type_kind): New type.
3969 (integer_types): New variable.
3970 (char_type_node): Adjust.
3971 (signed_char_type_node): Likewise.
3972 (unsigned_char_type_node): Likewise.
3973 (short_integer_type_node): Likewise.
3974 (short_unsigned_type_node): Likewise.
3975 (integer_type_node): Likewise.
3976 (unsigned_type_node): Likewise.
3977 (long_integer_type_node): Likewise.
3978 (long_unsigned_type_node): Likewise.
3979 (long_long_integer_type_node): Likewise.
3980 (long_long_unsigned_type_node): Likewise.
3981 * tree.c (integer_types): New variable.
3982 (init_obstacks): Register it as a root.
3984 Sat Mar 18 14:38:00 2000 Jason Eckhardt <jle@cygnus.com>
3986 * bb-reorder.c (reorder_basic_blocks): Update PREV_INSN as well as
3987 NEXT_INSN. Update last insn in chain.
3989 2000-03-17 Jason Merrill <jason@casey.cygnus.com>
3991 * dwarf2out.c (dwarf2out_decl): Don't emit anything for types
3992 with TYPE_DECL_SUPPRESS_DEBUG set.
3994 2000-03-18 Richard Henderson <rth@cygnus.com>
3996 * flow.c (make_edges): Use INTVAL to access REG_EH_REGION value.
3998 2000-03-18 Richard Henderson <rth@cygnus.com>
4000 * i386.c (call_insn_operand): Always allow SYMBOL_REF,
4001 care for HALF_PIC_P.
4002 (expander_call_insn_operand): Remove.
4003 (ix86_expand_epilogue): New arg `emit_return' to control return insn.
4004 * i386.h (PREDICATE_CODES): Update.
4005 * i386.md (all call expanders): Remove predicates, remove special
4006 handling for half-pic.
4007 (*call_1, *call_value_1): Handle SIBLING_CALL_P insns.
4008 (*call_pop_pic2, *call_pic2, *call_value_pop_2, *call_value_2): Remove.
4009 (sibcall_epilogue): New.
4011 2000-03-17 Richard Henderson <rth@cygnus.com>
4013 * rtlanal.c (single_set): Reject if the parallel has anything
4014 except SET or USE or CLOBBER.
4016 2000-03-17 Jeff Law <law@cygnus.com>
4017 Richard Henderson <rth@cygnus.com>
4019 * Makefile.in (OBJS): Add sibcall.o.
4021 * sibcall.c: New file.
4022 * calls.c (FUNCTION_OK_FOR_SIBCALL): Provide default.
4023 (ECF_IS_CONST, ECF_NOTHROW, ECF_SIBCALL): New.
4024 (emit_call_1): Replace `is_const' and `nothrow' with `ecf_flags'.
4025 Emit sibcall patterns when requested. Update all callers.
4026 (expand_call): Generate CALL_PLACEHOLDER insns when tail call
4027 elimination seems feasable.
4028 * final.c (leaf_function_p): Sibling calls don't discount being
4030 * flow.c (HAVE_sibcall_epilogue): Provide default.
4031 (find_basic_blocks_1): Sibling calls don't throw.
4032 (make_edges): Make edge from sibling call to EXIT.
4033 (propagate_block): Don't remove sibcall_epilogue insns.
4034 * function.c (prologue, epilogue): Turn into varrays. Update all uses.
4035 (sibcall_epilogue): New.
4036 (fixup_var_refs): Scan CALL_PLACEHOLDER sub-sequences.
4037 (identify_blocks_1): Likewise. Break out from ...
4038 (identify_blocks): ... here.
4039 (reorder_blocks_1): Scan CALL_PLACEHOLDER. Break out from ...
4040 (reorder_blocks): ... here.
4041 (init_function_for_compilation): Zap prologue/epilogue as varrays.
4042 (record_insns): Extend a varray instead of mallocing new memory.
4043 (contains): Read a varray not array of ints.
4044 (sibcall_epilogue_contains): New.
4045 (thread_prologue_and_epilogue_insns): Emit and record
4046 sibcall_epilogue patterns.
4047 (init_function_once): Allocate prologue/epilogue varrays.
4048 * genflags.c (gen_insn): Treat sibcall patterns as calls.
4049 * integrate.c (save_parm_insns): Recurse on CALL_PLACEHOLDER patterns.
4051 (save_for_inline_nocopy): ... here.
4052 (copy_insn_list): Recurse on CALL_PLACEHOLDER patterns.
4054 (expand_inline_function): ... here.
4055 (copy_rtx_and_substitute): Handle NOTE_INSN_DELETED_LABEL.
4056 (subst_constants): Handle 'n' formats.
4057 * jump.c (jump_optimize_minimal): New.
4058 (jump_optimize_1): New arg `minimal'; update callers. Elide most
4059 optimizations if it's set.
4060 * rtl.c (copy_rtx): Do copy jump & call for insns.
4061 * rtl.h (struct rtx_def): Document use of jump and call for insns.
4062 (SIBLING_CALL_P): New.
4063 (sibcall_use_t): New.
4064 * toplev.c (rest_of_compilation): Do init_EXPR_INSN_LIST_cache earlier.
4065 Invoke optimize_sibling_and_tail_recursive_calls.
4066 * tree.c (lang_safe_for_unsave): New.
4067 (safe_for_unsave): New.
4068 * tree.h (lang_safe_for_unsave, safe_for_unsave): Declare.
4070 * alpha.h (FUNCTION_OK_FOR_SIBCALL): New.
4071 * alpha.md (sibcall, sibcall_value, sibcall_epilogue): New.
4072 (*sibcall_osf_1, *sibcall_value_osf_1): New.
4074 2000-03-17 Mark Mitchell <mark@codesourcery.com>
4076 * objc/objc-act.c (encode_method_prototype): Pass types, not
4077 PARM_DECLs, to int_size_in_bytes.
4079 Fri Mar 17 11:51:34 2000 Jim Wilson <wilson@cygnus.com>
4081 * config/ia64/ia64.md (mix4right_3op): Swap %1 and %2 in template.
4083 * config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
4084 config/ia64/ia64.md, config/ia64/xm-ia64.h: Fix copyrights again.
4086 Fri Mar 17 08:09:14 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4088 * Clean up usages of TREE_INT_CST_LOW.
4089 * c-parse.in (RESTORE_WARN_FLAGS): Use tree_low_cst.
4090 * c-parse.y, c-parse.c, objc/objc-parse.y, objc/objc-parse.c:
4092 * c-tree.h (min_precision): Move declaration to here.
4093 * c-typeck.c (build_binary_op): Use host_integerp and tree_low_cst.
4094 (build_unary_op, add_pending_init): Use bit_position.
4095 (pending_init_member, process_init_element): Likewise.
4096 (really_start_incremental_init, push_init_level, pop_init_level):
4097 Don't make copies of nodes or modify them in place, use consistent
4098 types when tracking positions, and use tree routines computations.
4099 (set_init_index, output_init_element): Likewise.
4100 (output_pending_init_elements, process_init_element): Likewise.
4101 * dbxout.c (dbxout_type_fields): Use bit_position, host_integerp,
4102 tree_low_cst and int_bit_position; also minor cleanup.
4103 (dbxout_type_method_1, dbxout_range_type, dbxout_type): Likewise.
4104 (print_cst_octal): Precision is unsigned.
4105 (dbxout_symbol): Ensure DECL_INITIAL is in-range and use tree_low_cst.
4106 * dwarf2out.c (ceiling): Input and output are unsigned HOST_WIDE_INT.
4107 (simple_type_align_in_bits): Result is unsigned int.
4108 Use tree_int_low_cst and host_integerp.
4109 (simple_type_size_in_bits): Result is unsigned HOST_WIDE_INT.
4110 (field_byte_offset): Result is HOST_WIDE_INT.
4111 Change types of internal variables so alignments are unsigned int,
4112 offsets are HOST_WIDE_INT and sizes are unsigned HOST_WIDE_INT.
4113 Use host_integerp, tree_low_cst, and int_bit_position.
4114 (add_bit_offset_attribute): Likewise.
4115 (add_data_member_location_attribute): Use tree_cst_low.
4116 (add_bound_info): Use host_integerp, integer_zerop, and integer_onep.
4117 (add_bit_size_attribute): Use tree_low_cst.
4118 (add_pure_or_virtual_attribute, gen_enumeration_type_die): Likewise.
4119 * dwarfout.c: Similar changes to dwarf2out.c.
4120 * expr.c (expand_expr, case ARRAY_REF): Remove redundant code.
4121 * genoutput.c (n_occurences): Return -1 for null string.
4122 (strip_whitespace): Accept null string and make into function.
4123 (scan_operands): Reflect above changes.
4124 * sdbout.c (plain_type_1): Use host_integerp and tree_low_cst.
4125 (sdbout_field_types, sdbout_one_type): Likewise; also use bit_position.
4126 * ssa.c (rename_registers): Add missing cast of arg to bzero.
4127 * tree.c (int_size_in_bytes): Check for too big to represent.
4128 (bit_position, int_bit_position, host_integerp, tree_low_cst): New fns.
4129 * tree.h (host_integerp, tree_low_cst, bit_position, int_bit_position):
4131 (min_precision): Delete from here.
4132 * varasm.c (decode_addr_const): Use host_integerp, bit_position,
4133 and int_bit_position.
4134 * objc/objc-act.c (encode_method_prototype): Sizes are HOST_WIDE_INT.
4135 (encode_method_def): Likewise.
4136 (build_ivar_list_initializer): Use int_bit_position.
4137 (generate_shared_structures): Convert size.
4138 (encode_type, encode_complete_bitfield): Use integer_zerop.
4139 (encode_bitfield): Use tree_low_cst and int_bit_position.
4141 2000-03-17 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
4143 * config/c4x/c4x.h (CPP_SPEC): Fix typo.
4145 2000-03-17 Martin v. Löwis <loewis@informatik.hu-berlin.de>
4147 * call.c (special_function_p): It is only malloc if it returns
4150 2000-03-17 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
4152 * config/c4x/c4x.h (ASM_SPEC, CPP_SPEC, LINK_SPEC): Support C33.
4153 (C33_FLAG, TARGET_C3X): Add macros.
4154 (TARGET_SWITCHES): Add -m33 option.
4155 * config/c4x/c4x.c (c4x_override_options): Test for TARGET_C33.
4157 2000-03-17 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
4159 * config/c4x/c4x.h (PARALLEL_INSN_FLAG): Add.
4160 (PARALLEL_PACK_FLAG): Delete.
4161 (TARGET_SWITCHES): Update.
4162 (TARGET_PARALLEL): Use PARALLEL_INSN_FLAG.
4164 Thu Mar 16 18:52:32 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4166 * fold-const.c (fold): Fix a few cases when the returned result
4167 is not of the same type as the input.
4169 2000-03-16 Nick Clifton <nickc@cygnus.com>
4171 * config/arm/arm.h (ASM_OUTPUT_MI_THUNK): Fix compile time
4174 2000-03-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4176 * libgcc2.h: Move prototypes above macros with the same name.
4177 Wrap some function prototypes in the conditional which indicates
4178 whether they are supported, i.e. "BITS_PER_UNIT == 8".
4180 2000-03-16 Richard Henderson <rth@cygnus.com>
4182 * calls.c: Revert last two changes.
4184 2000-03-16 Bernd Schmidt <bernds@cygnus.co.uk>
4186 * fp-bit.c (_unpack_d): If NO_DENORMALS is defined, anything that
4187 has exponent 0 is a zero.
4189 * simplify-rtx.c (hash_rtx, case MEM/REG): Take into account that
4190 HASH may already be nonzero. Add code/mode into hash value
4191 immediately after repeat label.
4192 (cselib_lookup): Don't leave the hash table in an inconsistent
4193 state before a hash lookup operation.
4195 Thu Mar 16 17:03:10 MET 2000 Jan Hubicka <jh@suse.cz>
4197 * i386.md (all HI and QI mode non-move patterns): Conditionize
4198 by TARGET_[HQ]IMODE_MATH.
4199 * i386.h (x86_himode_math, x86_qimode_math, x86_promote_hi_regs,
4200 x86_promote_qi_regs): Declare.
4201 (TARGET_HIMODE_MATH, TARGET_QIMODE_MATH, TARGET_PROMOTE_HI_REGS,
4202 TARGET_PROMOTE_QI_REGS): New macros.
4203 (PROMOTE_MODE): New macro.
4204 * i386.c (x86_himode_math, x86_qimode_math, x86_promote_hi_regs,
4205 x86_promote_qi_regs): New global variables.
4207 Thu Mar 16 16:50:44 MET 2000 Jan Hubicka <jh@suse.cz>
4209 * calls.c (emit_library_call_value_1): Break out from ...; handle
4210 VOIDmode function calls too.
4211 (emit_library_call_value): ... here.
4212 (emit_library_call): Implement by calling emit_library_call_value_1.
4214 Thu Mar 16 16:01:30 MET 2000 Jan Hubicka <jh@suse.cz>
4216 * calls.c (expand_call): Do sanity checking on arg_space_so_far.
4217 Update arg_space_so_far on stack adjustments.
4218 (emit_library_call, emit_library_call_value): Likewise; take into
4219 account arg_space_so_far and pending_stack_adjust when calculcating
4222 Thu Mar 16 09:02:19 2000 Jason Eckhardt <jle@cygnus.com>
4224 * flow.c: Move all basic block reordering code into its own file.
4225 (create_basic_block): Externalize.
4226 * bb-reorder.c: New file. Copy all basic block reordering code from
4227 flow.c to this file.
4228 (reorder_basic_blocks): Fix fencepost error in for-loop.
4229 (reorder_basic_blocks): Remove braces from single statement for-loops.
4230 * basic-block.h: Add declaration for create_basic_block.
4231 * Makefile.in: Add rules for bb-reorder.o.
4233 2000-03-16 Neil Booth <NeilB@earthling.net>
4235 * cppinit.c (handle_option): Implement #unassert directive
4236 as -A- command line option.
4237 (print_help): Update.
4238 * cpptexi.c: Update.
4240 Thu Mar 16 02:14:16 2000 Hans-Peter Nilsson <hp@bitrange.com>
4242 * md.texi (Standard Names): Document `jump'.
4244 2000-03-15 Jason Merrill <jason@casey.cygnus.com>
4246 * calls.c (emit_call_1): Nothrow functions can still have nonlocal
4249 2000-03-15 Geoff Keating <geoffk@cygnus.com>
4251 Merge changes from newppc-branch onto trunk.
4253 2000-03-15 Geoff Keating <geoffk@cygnus.com>
4255 * rs6000.c (toc_hash_table): Update for new hash table functions.
4256 (toc_hash_function): Likewise.
4257 (toc_hash_eq): Likewise.
4258 (toc_hash_mark_entry): Likewise.
4259 (toc_hash_mark_table): Likewise.
4260 (output_toc): Likewise.
4261 (rs6000_add_gc_roots): Likewise.
4263 2000-03-15 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
4265 * t-aix43 (AR_FOR_TARGET): Deleted. Moved `-X32_64'...
4266 (AR_FLAGS_FOR_TARGET): here. New macro.
4268 2000-03-05 Clinton Popetz <cpopetz@cygnus.com>
4270 * config/rs6000/rs6000.c (rs6000_fpmem_offset, rs6000_fpmem_size,
4271 fpmem_operand) Delete.
4273 (rs6000_reg_names, alt_reg_names): Change fpmem to xer.
4274 (machine_function): Remove fpmem_size, fpmem_offset, save_toc_p.
4275 (rs6000_save_machine_status, rs6000_restore_machine_status,
4276 rs6000_init_expanders, rs6000_stack_info, debug_stack_info): Remove
4277 references to above variables.
4278 (gpc_reg_operand): Use XER_REGNO_P instead of FPMEM_REGNO_P.
4279 * config/rs6000/rs6000.h (REG_ALLOC_ORDER, REGISTER_NAMES,
4280 DEBUG_REGISTER_NAMES): Chagne fpmem to xer.
4281 (FPMEM_REGNO_P, FPMEM_REGNUM): Delete.
4282 (XER_REGNO_P, XER_REGNO): New.
4283 (rs6000_stack): Remove fpmem_p, fpmem_offset, fpmem_size.
4284 (PREDICATE_CODES): Change fpmem_operand to xer_operand.
4285 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Change FPMEM_REGNO_P to
4287 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS,
4288 REG_CLASS_FROM_LETTER, CLASS_MAX_NREGS): Change FPMEM_REGS to XER_REGS, and remove FLOAT_OR_FPMEM_REGS.
4289 (CLASS_CANNOT_CHANGE_SIZE): Change to FLOAT_REGS.
4291 2000-02-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4293 * aix.h (FP_SAVE_INLINE, ASM_OUTPUT_INTERNAL_LABEL_PREFIX,
4294 TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP): Move here...
4295 * rs6000.h: from here.
4297 * rs6000-protos.h (rs6000_select_section): Provide prototype.
4298 (rs6000_select_rtx_section): Likewise.
4299 (rs6000_encode_section_info): Likewise.
4300 (sdata_section): Likewise.
4301 (sdata2_section): Likewise.
4302 (sbss_section): Likewise.
4303 * sysv4.h (rs6000_select_section): Delete prototype.
4304 (rs6000_select_rtx_section): Likewise.
4305 (rs6000_encode_section_info): Likewise.
4306 (sdata_section): Likewise.
4307 (sdata2_section): Likewise.
4308 (sbss_section): Likewise.
4309 (REG_SAVE_AREA): Delete definition duplicated in rs6000.h.
4311 * sysv4.h: Delete various unnecessary #undef's and put a comment
4312 on the remaining ones.
4313 Change various comments according to coding standard.
4315 2000-02-29 Clinton Popetz <cpopetz@cygnus.com>
4317 * config/rs6000/rs6000.h (MQ_REGNO, CR0_REGNO, CR1_REGNO, CR2_REGNO,
4318 CR3_REGNO, CR4_REGNO, MAX_CR_REGNO): Define.
4319 (CR0_REGNO_P) Remove.
4320 * config/rs6000/rs6000.c (gpc_reg_operand, and64_operand, and_operand,
4321 setup_incoming_varargs, mtcrf_operation, print_operand,
4322 rs6000_stack_info, rs6000_emit_prologue, rs6000_emit_epilogue):
4323 Use the above macros.
4325 2000-02-24 Clinton Popetz <cpopetz@cygnus.com>
4327 * config/rs6000/rs6000.md: Added a new alternative for each
4328 pattern that had a 'x' alternative but no 'y' alternative.
4329 Added a new split for each of the above patterns.
4331 2000-02-18 Geoff Keating <geoffk@cygnus.com>
4333 * aix41.h (ASM_CPU_SPEC): Delete.
4334 (CPP_CPU_SPEC): Delete.
4336 * aix.h (RS6000_OUTPUT_BASENAME): Define.
4337 (ASM_OUTPUT_LABEL): Define.
4338 (ASM_GLOBALIZE_LABEL): Define.
4339 (STRIP_NAME_ENCODING): Define.
4340 * rs6000.h (RS6000_OUTPUT_BASENAME): Don't define.
4341 (STRIP_NAME_ENCODING): Don't define.
4342 (ASM_OUTPUT_LABEL): Don't define.
4343 (ASM_GLOBALIZE_LABEL): Don't define.
4344 * sysv4.h (ASM_DECLARE_FUNCTION_NAME): Use assemble_name to output
4345 names, and ASM_OUTPUT_LABEL to output labels, rather than
4347 (ASM_OUTPUT_LABEL): Define.
4348 (ASM_OUTPUT_INT): Use assemble_name.
4349 (ASM_OUTPUT_DWARF_ADDR): Use assemble_name.
4350 (STRIP_NAME_ENCODING): Don't undefine first.
4351 (RS6000_OUTPUT_BASENAME): Make equivalent to assemble_name for
4353 (ASM_OUTPUT_LABELREF): Don't prepend underscores to labels
4354 specified with 'asm' even with -fleading-underscore.
4355 * rs6000.c (print_operand): Use assemble_name when !TARGET_AIX.
4356 (output_epilog): Likewise.
4357 (output_toc): Likewise.
4358 * tramp.asm: Handle -fleading-underscore correctly.
4360 * rs6000.md (builtin_setjmp_receiver): Also run for -fPIC and
4362 (nonlocal_goto_receiver): Delete.
4363 * rs6000.h (DONT_ACCESS_GBLS_AFTER_EPILOGUE): Delete.
4365 * rs6000.h (ASM_OUTPUT_DEF): Don't define.
4366 (SET_ASM_OP): Define.
4367 * sysv4.h (ASM_OUTPUT_DEF): Don't undefine.
4369 * rs6000.h (ASM_OUTPUT_ADDR_VEC_ELT): Don't define.
4372 * rs6000.c (rs6000_dll_import_ref): Delete, not used.
4373 * rs6000-protos.h (rs6000_dll_import_ref): Delete.
4375 * rs6000.h: Add 'u' to more constants.
4377 2000-02-18 David Edelsohn <edelsohn@gnu.org>
4379 * rs6000.md (mfcr+shift): Delete PowerPC64 version.
4381 2000-02-15 David Edelsohn <edelsohn@gnu.org>
4383 * rs6000.c (reg_or_u_cint_operand): New function.
4384 (logical_operand): Handle 64-bit hosts.
4385 (logical_u_operand): New function.
4386 (non_logical_cint_operand): Handle 64-bit hosts.
4387 (non_logical_u_cint_operand): New function.
4388 * rs6000.h (DATA_SECTION_ASM_OP): Add tab.
4389 (PREDICATE_CODES): Define new functions.
4390 * rs6000-protos.h: Declare new functions.
4391 * rs6000.md (iordi3, xordi3): Constant int must be unsigned 32-bits.
4392 (movdi_64): Bracket code intended for 64-bit hosts. Create
4393 CONST_DOUBLE for 32-bit values.
4394 (scc insns): Generate DImode compares.
4395 (mfcr insns): Create DImode versions.
4396 (sge matchers): New patterns.
4398 2000-02-15 Gabriel Paubert <paubert@iram.es>
4400 * rs6000.md: Correct instructions length attributes and
4401 constraints on unsigned compare instructions.
4402 (*ne0): Disable for PowerPC64.
4404 2000-02-11 Geoff Keating <geoffk@cygnus.com>
4406 * rs6000.c (output_function_profiler): Use .long for a 32-bit
4407 quantity, fix profile1.C test failure under -fPIC.
4409 * rs6000.c: Add 'u' to many constants to suppress warnings.
4410 (constant_pool_expr_1): Make static.
4411 (rs6000_emit_eh_toc_restore): Remove unused 'r2'.
4412 * rs6000.h: Add 'u' to many constants to suppress warnings.
4414 * rs6000.c (rs6000_emit_load_toc_table): Use LCTOC..1 under AIX
4415 for the start of the TOC, instead of LCTOC..0.
4416 * aix.h (toc_section): Use LCTOC..1 under AIX for the start
4418 * rs6000.md (load_toc_aix_si): Use LCTOC..1.
4419 (load_toc_aix_di): Use LCTOC..1.
4421 * rs6000.h (LEGITIMIZE_ADDRESS): Turn into a function.
4422 * rs6000.c (rs6000_legitimize_address): New function from
4423 LEGITIMIZE_ADDRESS. Only use create_TOC_reference on
4424 symbols in the constant pool that really are TOC references.
4425 (print_operand_address): For ELF, write TOC offsets under
4426 -fPIC as subtractions in the insn.
4427 (output_toc): For ELF, define symbols in TOC as normal labels,
4429 (create_TOC_reference): Use gen_rtx_PLUS rather than gen_rtx.
4430 * rs6000-protos.h (rs6000_legitimize_address): Prototype.
4431 (create_TOC_reference): Prototype only when RTX_CODE is defined.
4432 * rs6000.md (movsi): Only use create_TOC_reference on
4433 symbols in the constant pool that really are TOC references.
4435 * rs6000.h (MACHINE_DEPENDENT_REORG): Don't define.
4436 * rs6000.c (rs6000_reorg): Delete.
4437 * rs6000-protos.h (rs6000_reorg): Delete.
4439 2000-02-09 Geoff Keating <geoffk@cygnus.com>
4441 * rs6000.h (INCOMING_RETURN_ADDR_RTX): New macro.
4443 * aix.h (SETUP_FRAME_ADDRESSES): Define.
4444 * rs6000.c [TARGET_AIX] (insn_after_throw): New static variable.
4445 [TARGET_AIX] (rs6000_aix_emit_builtin_unwind_init): New function.
4446 [TARGET_AIX] (rs6000_emit_eh_toc_restore): New function.
4447 * rs6000-protos.h: Prototype rs6000_emit_eh_toc_restore,
4448 rs6000_aix_emit_builtin_unwind_init.
4449 * rs6000.md (eh_epilogue) [TARGET_AIX]: Call
4450 rs6000_emit_eh_toc_restore on AIX.
4451 (return_eh_si): Use r2.
4452 (return_eh_di): Use r2.
4454 * aix43.h: Turn on HAS_INIT_SECTION and LD_INIT_SWITCH,
4455 since we're breaking binary compatibility anyway.
4457 2000-02-09 Clinton Popetz <cpopetz@cygnus.com>
4459 * config/rs6000/rs6000-protos.h: (get_TOC_alias_set, uses_TOC,
4460 constant_pool_expr_p): Declare them.
4461 (constant_pool_expr_p): Declare it.
4462 * config/rs6000/rs6000.c (toc_label_name): Define.
4463 (rs6000_override_options): Set toc_label_name.
4464 (input_operand): Allow any TOC_RELATIVE_EXPR_P.
4465 (get_TOC_alias_set, constant_pool_expr_p, constant_pool_expr_1,
4466 uses_TOC): New functions.
4467 (print_operand): Delete old '*' case.
4468 (print_operand_address): Use LEGITIMATE_CONSTANT_POOL_ADDRESS_P,
4469 and strip off rtl for TOC before calling output_addr_const.
4470 (rs6000_emit_load_toc_table): Use toc_label_name.
4471 * config/rs6000/rs6000.h (TARGET_SWITCHES): Make msched-prolog
4473 (LEGITIMATE_CONSTANT_POOL_BASE_P): Delete.
4474 (CONSTANT_POOL_EXPR_P, TOC_RELATIVE_EXPR_P): New macros.
4475 (LEGITIMATE_CONSTANT_POOL_ADDRESS_P): Use CONSTANT_POOL_EXPR_P.
4476 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Turn symbol_refs
4477 into explicit TOC_REGISTER offsets.
4478 (TOC_REGISTER): New macro.
4479 * config/rs6000/rs6000.md (movsi, movdi): Emit rtl under
4480 TARGET_TOC to reference TOC_REGISTER.
4481 (load_toc_v4_PIC_1b): Add 4 to offset for toc reload.
4482 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Call
4483 uses_TOC before emitting label references.
4485 2000-02-05 Geoff Keating <geoffk@cygnus.com>
4487 * rs6000.md (stack_tie): Fix warning.
4489 * eabi-ctors.c: Use 'asm' names for the start/end variables,
4490 to handle -fleading-underscore.
4491 * sysv4.h (ASM_DECLARE_FUNCTION_NAME): Use asm_fprintf and %U.
4492 (USER_LABEL_PREFIX): New macro.
4493 (ASM_OUTPUT_INTERNAL_LABEL_PREFIX): Use asm_fprintf and %L.
4494 (ASM_OUTPUT_LABELREF): Use asm_fprintf and %U.
4495 * t-ppccomm (MULTILIB_MATCHES_SYSV): Note that call-sysv and
4496 call-linux can use the same multilibs.
4497 * t-ppcgas (MULTILIB_OPTIONS): Don't need to have separate call-sysv
4498 and call-linux multilibs. Do multilib with -fleading-underscore.
4499 (MULTILIB_DIRNAMES): Follow MULTILIB_OPTIONS change.
4500 (MULTILIB_EXCEPTIONS): Remove call-linux exceptions. Add restrictions
4503 * sysv4.h (CPP_SYSV_SPEC): Define _SOFT_FLOAT for all those CPUs that
4504 have MASK_SOFT_FLOAT set.
4505 (CPP_FLOAT_DEFAULT_SPEC): New macro.
4506 (SUBTARGET_EXTRA_SPECS): Set `cpp_float_default' to the value of
4507 CPP_FLOAT_DEFAULT_SPEC.
4509 * rs6000.c (ccr_bit): Add some consistency checks and a variable 'reg'.
4510 * rs6000.md: Whitespace change.
4511 * sysv4.h (LINK_TARGET_SPEC): Whitespace change.
4512 * sysv4le.h (LINK_TARGET_SPEC): Whitespace change.
4514 2000-02-05 Geoff Keating <geoffk@cygnus.com>
4516 * rs6000.md (eh_epilogue): New expander.
4517 (eh_reg_restore): New expand/split/insn combination.
4518 (return_eh_si): New insn.
4519 (return_eh_di): New insn.
4521 * eabi-ci.asm: Put a label at the start of the .eh_frame section.
4522 * eabi-cn.asm: Put a zero at the end of the .eh_frame section.
4523 * eabi-ctors.c (__do_global_ctors): Register this object's
4524 frame. Clean up. Call atexit() after the constructors.
4525 (__do_global_dtors): Deregister this object's frame. Clean up.
4526 Allow for recursive calls to exit().
4527 * rs6000.c (fixuplabelno): New variable.
4528 * sysv4.h (ASM_OUTPUT_INT): Don't do .fixup if not
4529 TARGET_RELOCATABLE, it slows down exec() under linux.
4530 (ASM_OUTPUT_DWARF_ADDR): Do .fixup if TARGET_RELOCATABLE.
4532 * aix.h (ASM_OUTPUT_DWARF_ADDR_VAR): New macro.
4533 (ASM_OUTPUT_DWARF_DELTA_VAR): New macro.
4534 (ASM_OUTPUT_DWARF_DELTA2): New macro.
4535 (ASM_OUTPUT_DWARF_DELTA4): New macro.
4536 (ASM_OUTPUT_DWARF_ADDR_DELTA): New macro.
4537 (ASM_OUTPUT_DWARF_ADDR): New macro.
4538 (ASM_OUTPUT_DWARF_DATA4): New macro.
4539 (ASM_OUTPUT_DWARF_DATA2): New macro.
4540 (ASM_OUTPUT_DWARF_OFFSET4): New macro.
4541 (ASM_OUTPUT_DWARF_OFFSET): New macro.
4542 (UNALIGNED_INT_ASM_OP): New macro, fake definition.
4544 2000-02-03 Geoff Keating <geoffk@cygnus.com>
4546 * rs6000.c (rs6000_sr_alias_set): New variable.
4547 (rs6000_override_options): Initialise rs6000_sr_alias_set.
4548 (rs6000_emit_stack_tie): New function.
4549 (rs6000_emit_allocate_stack): Specify RTX_FRAME_RELATED_P
4550 in a way that dwarf2out can understand.
4551 (rs6000_frame_related): New function.
4552 (rs6000_emit_prologue): Use rs6000_sr_alias_set. Specify
4553 RTX_FRAME_RELATED_P in a way that dwarf2out can understand.
4554 Use rs6000_emit_stack_tie when needed.
4555 (rs6000_emit_epilogue): Use rs6000_sr_alias_set. Don't set
4556 RTX_FRAME_RELATED_P. Use rs6000_emit_stack_tie when needed.
4557 * rs6000.md (stack_tie): New insn.
4558 (return_internal_si): Allow return value to be in the count
4560 (return_internal_di): Likewise.
4562 * rs6000.c (output_mi_thunk): Remove unused variable `sp'.
4564 2000-02-03 Geoff Keating <geoffk@cygnus.com>
4566 * sysv4.h (LOCAL_LABEL_PREFIX): Define, for the use of dbxelf.h.
4568 2000-01-31 Geoff Keating <geoffk@cygnus.com>
4570 * rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): New macro.
4572 * rs6000.md (stmw): Use the right POWER opcode.
4575 2000-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4577 * rs6000-protos.h: New file.
4579 * rs6000.c: Include tm_p.h. Fix compile time warnings.
4581 * rs6000.h: Move prototypes to rs6000-protos.h. Fix compile time
4584 * sysv4.h: Likewise.
4586 2000-01-28 Geoff Keating <geoffk@cygnus.com>
4588 * ../../configure.in: Delete powerpcle-*-winnt*
4589 and powerpcle-*-pe|powerpcle-*-cygwin*.
4590 * ../../configure: Regenerated.
4592 * rs6000.h (OBJECT_WINDOWS_NT): Delete.
4593 (TARGET_WINDOWS_NT): Delete.
4595 (CALL_NT_DLLIMPORT): Delete.
4596 Delete NT-specific code.
4597 * rs6000.md, rs6000.c, sysv4.h: Delete NT-specific code.
4600 * nt-ci.asm: Delete.
4601 * nt-cn.asm: Delete.
4602 * ntstack.asm: Delete.
4604 2000-01-27 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4606 * rs6000.h (SELECT_RTX_SECTION): Move to aix.h.
4607 (ASM_FILE_START): Likewise.
4608 (ASM_DECLARE_FUNCTION_NAME): Likewise.
4609 (ASM_OUTPUT_LABELREF): Likewise.
4610 (ASM_OUTPUT_SKIP): Likewise.
4611 (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
4612 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
4613 (ASM_OUTPUT_CASE_LABEL): Likewise.
4614 (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
4615 (ASM_OUTPUT_ASCII): Likewise.
4617 2000-01-27 Clinton Popetz <cpopetz@cygnus.com>
4619 * rs6000.c (rs6000_emit_load_toc_table): Use "LCG" and
4620 reload_toc_labelno for non-prologue TOC reloads. Also, don't
4621 increment rs6000_pic_labelno here.
4622 (rs6000_emit_prologue): Pass TRUE to rs6000_emit_load_toc_table,
4623 and increment rs6000_pic_labelno here.
4625 2000-01-24 Geoffrey Keating <geoffk@cygnus.com>
4627 * rs6000.md (fctiwz): Use (set (reg) (unspec:DI [(fix:SI ...)]))
4628 rather than (set (subreg:SI (reg)) (fix:SI ...)) so that register
4629 allocation knows (reg) is dead before the insn.
4631 2000-01-21 Geoff Keating <geoffk@cygnus.com>
4633 * rs6000.md (movsi_to_cr): Correct typo in output template.
4635 2000-01-19 Geoffrey Keating <geoffk@cygnus.com>
4637 * rs6000.c (rs6000_pic_labelno): Always define.
4638 (rs6000_pic_func_labelno): Delete.
4639 (lmw_operation): Check for a zero base register,
4640 which doesn't mean what we want.
4641 (stmw_operation): New function.
4642 (print_operand): Define new 'l' modifier.
4643 (rs6000_stack_info): We must save all 64 bits of the registers
4644 if TARGET_POWERPC64.
4645 (rs6000_output_load_toc_table): Delete.
4646 (rs6000_emit_load_toc_table): New function.
4647 (rs6000_allocate_stack_space): Delete.
4648 (rs6000_emit_allocate_stack): New function.
4649 (rs6000_emit_prologue): New function.
4650 (output_prolog): Use rs6000_emit_prologue.
4651 (rs6000_emit_epilogue): Change a few variable names to be
4652 more accurate. Restore all 64 bits of the registers if
4653 TARGET_POWERPC64. Only restore the FP registers which were used
4654 if they are being saved/restored one-at-a-time.
4655 (output_mi_thunk): Delete inefficient code generation.
4656 (output_function_profiler): Don't use rs6000_output_load_toc_table.
4657 * rs6000.h: Declare rs6000_emit_load_toc_table,
4658 rs6000_allocate_stack_space, stmw_operation. Don't declare
4659 rs6000_output_load_toc_table.
4660 * rs6000.md (elf_high): Allow register 0, but discourage it
4662 (elf_low): Support loading into register 0.
4663 (load_toc_aix_si): New pattern.
4664 (load_toc_aix_di): New pattern.
4665 (load_toc_v4_pic_si): New pattern.
4666 (load_toc_v4_pic_di): New pattern.
4667 (load_toc_v4_PIC_1): New pattern.
4668 (load_toc_v4_PIC_1b): New pattern.
4669 (load_toc_v4_PIC_2): New pattern.
4670 (builtin_setjmp_receiver): Use rs6000_emit_load_toc_table.
4671 (nonlocal_goto_receiver): Use rs6000_emit_load_toc_table.
4672 (prologue): New expander.
4673 (movesi_from_cr): New pattern.
4674 (stmw): New pattern.
4675 (save_fpregs_si): New pattern.
4676 (save_fpregs_di): New pattern.
4678 2000-01-19 Geoff Keating <geoffk@cygnus.com>
4680 * rs6000.md (movsi): Don't use force_reg when no_new_pseudos.
4685 2000-01-19 Geoff Keating <geoffk@cygnus.com>
4687 * rs6000.md (movsi_got): 'unspec 8' returns a SImode result,
4689 (movsi_got_internal): Likewise.
4690 (movsi_got_internal+1): Likewise.
4691 (set_sp): 'unspec 7' does a SImode clobber.
4693 2000-01-19 Geoff Keating <geoffk@cygnus.com>
4695 * rs6000.md (floatsidf2): Don't use the fpmem "register", just
4696 allocate a stack temporary.
4697 (floatsidf2_internal): Likewise.
4698 (floatsidf2_internal+1): Likewise. Don't do bizzare hacks
4700 (floatunssidf2): Don't use the fpmem "register", just
4701 allocate a stack temporary.
4702 (floatunssidf2_internal): Likewise.
4703 (floatunssidf2_internal+1): Likewise. Don't do bizzare hacks
4705 (floatsidf2_loadaddr): Delete.
4706 (floatsidf2_store1): Delete.
4707 (floatsidf2_store2): Delete.
4708 (floatsidf2_load): Delete.
4709 (fix_truncdfsi2): Don't use the fpmem "register", just
4710 allocate a stack temporary.
4711 (fix_truncdfsi2_internal_si): Delete.
4712 (fix_truncdfsi2_internal_di): Delete.
4713 (fix_truncdfsi2_internal): New insn.
4714 (fix_truncdfsi2_internal+1): Don't use the fpmem "register".
4715 (fix_truncdfsi2_store): Delete.
4716 (fix_truncdfsi2_load): Delete.
4717 (fctiwz): Produce gen_fctiwz.
4719 2000-01-19 Geoffrey Keating <geoffk@cygnus.com>
4721 * eabi.h (INVOKE__main): Define.
4722 * rs6000.c (rs6000_stack_info): Don't handle call to NAME__MAIN
4724 (rs6000_emit_prologue): Likewise.
4725 * rs6000.h (struct rs6000_stack): Don't keep track of whether
4726 this is the main program.
4728 2000-01-19 Geoff Keating <geoffk@cygnus.com>
4730 * rs6000.c (rs6000_va_arg): Delete some unused variables.
4732 2000-01-19 Geoff Keating <geoffk@cygnus.com>
4734 * rs6000.c (rs6000_va_arg): On AIX, padding for small arguments
4735 goes after the argument.
4737 2000-01-12 Geoff Keating <geoffk@cygnus.com>
4739 * rs6000.md: Document 'unspec' values used.
4740 (epilogue): New expander.
4741 (movesi_to_cr_one): New expander.
4742 (movesi_to_cr and following): New pattern.
4744 (return_internal_si): New pattern.
4745 (return_internal_di): New pattern.
4746 (return_and_restore_fpregs_si): New pattern.
4747 (return_and_restore_fpregs_di): New pattern.
4748 * rs6000.h: Declare new functions.
4749 * rs6000.c (rs6000_stack_info): Use current_function_is_leaf
4750 rather than rs6000_calls_p.
4751 (rs6000_makes_calls): Delete.
4752 (lmw_operation): New function.
4753 (mtcrf_operation): New function.
4754 (rs6000_emit_epilogue): New function.
4755 (output_epilog): Call rs6000_emit_epilogue and final if
4756 !TARGET_SCHED_PROLOG, instead of writing text unconditionally.
4758 2000-01-12 Geoff Keating <geoffk@cygnus.com>
4760 * aix43.h (SUBSUBTARGET_SWITCHES): Document switches.
4761 * aix41.h (SUBSUBTARGET_SWITCHES): Document switches.
4762 * aix.h (SUBTARGET_SWITCHES): Document switches.
4763 * rs6000.h: (TARGET_SWITCHES): Don't print options twice. Make
4764 sched-prolog and sched-epilog the same. Document all the
4766 (TARGET_OPTIONS): No longer allow -mdebug-.
4768 2000-01-12 Geoff Keating <geoffk@cygnus.com>
4770 * rs6000.h (ASM_FILE_END): Move to aix.h.
4771 (EXTRA_SECTIONS): Move to aix.h.
4772 (READONLY_DATA_SECTION): Move to aix.h.
4773 (EXTRA_SECTION_FUNCTIONS): Move to aix.h.
4774 (SELECT_SECTION): Move to aix.h.
4775 (JUMP_TABLES_IN_TEXT_SECTION): Move to aix.h.
4776 (INT_REGNO_P): Use symbolic name for ARG_POINTER_REGNUM.
4777 (LINK_REGISTER_REGNUM): New definition.
4778 (RETURN_ADDR_RTX): Use symbolic name for LINK_REGISTER_REGNUM.
4779 (SLOW_UNALIGNED_ACCESS): Define in a way suitable for both
4781 * sysv4.h: Delete the code between the inclusion of rs6000.h
4783 (DWARF_DEBUGGING_INFO): Don't define, it's defined in elfos.h.
4784 (FP_ARG_MAX_REG): Move generic definition to rs6000.h.
4785 (RS6000_REG_SAVE): Move generic definition to rs6000.h.
4786 (RS6000_SAVE_AREA): Move generic definition to rs6000.h.
4787 * rs6000.md (floatsidf2_loadaddr): The first arg here is Pmode.
4788 (fix_truncdfsi2_internal): Rename to fix_truncdfsi2_internal_si.
4789 (fix_truncdfsi2_internal_di): New pattern.
4790 (fix_truncdfsi2_store): The second arg here is Pmode too.
4791 (fix_truncdfsi2_load): The second arg here is Pmode too.
4792 (tablejumpdi): Now that switch tables hold only SImode values,
4793 gcc needs to know how to add them to the pc which is DImode.
4794 * rs6000.c (rs6000_stack_info): Use symbolic name for
4795 LINK_REGISTER_REGNUM.
4796 (output_mi_thunk) [!TARGET_ELF]: Don't define sp, it's not used.
4797 (output_toc): Delete unused variables s1 and s2.
4798 (output_ascii): Use fputs not fprintf on a variable string.
4800 2000-01-07 David Edelsohn <edelsohn@gnu.org>
4802 * rs6000.c (processor_target_table): Add power3 as alias for 630.
4803 * aix43.h: Revert Aug 2 change.
4804 (HAS_INIT_SECTION): Define, not visible yet.
4805 (LD_INIT_SWITCH): Define, not visible yet.
4806 * t-aix43 (MULTILIB_OPTIONS): Revert Aug 2 change.
4808 2000-01-04 Joel Sherrill (joel@OARcorp.com>
4810 * config/rs6000/rtems.h: Include config/rtems.h.
4812 2000-01-04 David Edelsohn <edelsohn@gnu.org>
4814 * rs6000.h (HANDLE_PRAGMA_PACK): Define.
4815 (SLOW_UNALIGNED_ACCESS): Define.
4816 (CASE_VECTOR_MODE): Always use 32-bit offsets.
4817 (ASM_FILE_END): Generate 64-bit symbol in 64-bit mode.
4818 (EXTRA_SECTOIN_FUNCTIONS): Indent .csect pseudo-op.
4819 (toc_section): Likewise and .toc pseudo-op.
4820 (ASM_DECLARE_FUNCTION): Likewise. Align text more strictly in
4822 (TEXT_SECTION_ASM_OP): Likewise.
4823 (ASM_OUTPUT_ADD_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Always use
4826 1999-12-17 Jakub Jelinek <jakub@redhat.com>
4828 * config/rs6000/rs6000.h (TARGET_POWERPC64): Make sure
4829 UNITS_PER_WORD and BITS_PER_WORD are compile time constants when
4832 2000-01-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4834 * rs6000.h: Move more stuff from here...
4836 * sysv4.h: Cleanup accordingly.
4837 * netware.h: Likewise
4839 2000-01-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4841 * rs6000.h: Continue cleanup.
4844 * netware.h: Likewise.
4846 * sysv4.h: Likewise.
4847 * win-nt.h: Likewise.
4849 * rs6000.h (TARGET_SWITCHES): Add descriptions.
4850 (TARGET_OPTIONS): Likewise.
4852 * sysv4.h (SUBTARGET_SWITCHES): Add descriptions.
4853 (SUBTARGET_OPTIONS): Likewise.
4855 * rs6000.md: Fix compile time warnings.
4857 2000-01-04 Geoff Keating <geoffk@cygnus.com>
4859 vxworks patches from the Cygnus tree originally by
4860 Michael Meissner <meissner@cygnus.com> and Vladimir Makarov
4861 <vmakarov@cygnus.com>.
4862 * sysv4.h (SUBTARGET_SWITCHES): Add vxworks.
4863 (ENDFILE_SPEC): Likewise.
4864 (LIB_VXWORKS_SPEC): New macro.
4865 (STARTFILE_VXWORKS_SPEC): New macro.
4866 (ENDFILE_VXWORKS_SPEC): New macro.
4867 (LINK_START_VXWORKS_SPEC): New macro.
4868 (LINK_OS_VXWORKS_SPEC): New macro.
4869 (CPP_OS_VXWORKS_SPEC): New macro.
4870 (SUBTARGET_EXTRA_SPECS): Add all the vxworks specs.
4871 * vxppc.h: Rewrite to use proper configuration method.
4872 * vxppcle.h: New file.
4873 * ../../configure.in: Add powerpcle-wrs-vxworks*.
4874 * ../../configure: Rebuilt.
4876 2000-01-04 Geoff Keating <geoffk@cygnus.com>
4878 Lots of changes to rs6000.h, sysv4.h, aix.h,
4879 aix31.h, aix3newas.h, aix41.h, aix43.h, beos.h,
4880 with the aim that rs6000.h is the first header
4881 included and the others override it.
4884 * x-aix41-gld: Remove.
4886 * x-aix41: Remove target-specific switches, and don't specify
4887 -Wl,-bbigtoc as we don't need it any more.
4888 * ../../configure.in: Use x-aix41 for ppc AIX 4.1 and above.
4889 Use t-aix43 for AIX 4.3 and above.
4890 * ../../configure: Regenerated.
4892 * rs6000.h (TARGET_SWITCHES): Add some initial prolog-scheduling
4893 options, that don't do anything yet.
4894 (MASK_SCHED_PROLOG): New macro.
4895 (MASK_SCHED_EPILOG): New macro.
4896 (TARGET_SCHED_PROLOG): New macro.
4897 (TARGET_SCHED_EPILOG): New macro.
4899 2000-01-04 Geoff Keating <geoffk@cygnus.com>
4901 * rs6000.c: Correct comment, the `minimal' TOCs are actually
4902 one per translation unit, not one per function.
4903 (output_toc): Also do duplicate constant elimination
4904 for per-translation-unit TOCs.
4906 * rs6000.md (nonlocal_goto_receiver): Put it back as before. Add
4907 a comment explaining _exactly_ when this pattern gets used.
4908 (builtin_setjmp_receiver): New pattern for better clarity.
4909 (init_v4_pic): Move it into a section dealing with TOC registers.
4911 1999-12-30 Geoff Keating <geoffk@cygnus.com>
4913 * rs6000.c (toc_hash_table): New variable.
4914 (rs6000_hash_constant): New function.
4915 (toc_hash_function): New function.
4916 (toc_hash_eq): New function.
4917 (toc_hash_mark_entry): New function.
4918 (toc_hash_mark_table): New function.
4919 (output_toc): Don't output duplicate TOC entries in
4921 (rs6000_add_gc_roots): Add the hash table as a GC root.
4922 * t-aix43: Move AR_FOR_TARGET and CLIB here from x-aix43,
4923 where they clearly shouldn't be. This may need to be fixed
4924 later when there is a GNU ar for AIX.
4925 * x-aix43: Don't define CLIB or AR_FOR_TARGET.
4926 Don't define BOOT_LDFLAGS as it is now not necessary.
4928 1999-12-29 Geoff Keating <geoffk@cygnus.com>
4930 * rs6000.c (rs6000_build_va_list): Use 'char *' rather than 'void *'
4931 for va_list on AIX. Use unsigned_char_type_node rather than
4932 constructing our own version on svr4.
4934 1999-12-17 Geoff Keating <geoffk@cygnus.com>
4936 * tramp.asm (__trampoline_size): Delete CYGNUS LOCAL comment,
4937 since patently it's not.
4939 1999-12-08 Geoff Keating <geoffk@cygnus.com>
4941 * config/rs6000/rs6000.md (nonlocal_goto_receiver): Turn into
4942 define_expand/define_insn pair, and handle restore of the
4943 SVR4 -fpic register.
4945 Wed Mar 15 15:43:38 2000 Jeffrey A Law (law@cygnus.com)
4947 * acconfig.h (HAVE_GAS_WEAK): New define.
4948 * configure.in (assembler weak support): Check for .weak support.
4949 * config.in, configure: Rebuilt.
4950 * pa/som.h (MAKE_DECL_ONE_ONLY, ASM_WEAKEN_LABEL): Only define if
4951 HAVE_GAS_WEAK is defined.
4953 2000-03-15 Nick Clifton <nickc@cygnus.com>
4955 * config/arm/arm.c (arm_output_epilogue): Do not pass %c to
4958 2000-03-15 Zack Weinberg <zack@wolery.cumb.org>
4960 * cppfiles.c (open_include_file): New function.
4961 (find_include_file, cpp_read_file): Use it.
4963 2000-03-15 Jason Merrill <jason@casey.cygnus.com>
4965 * cpphash.c (dump_hash_helper): Take the slot, not the element.
4967 Wed Mar 15 14:28:54 2000 Jason Eckhardt <jle@cygnus.com>
4969 * flow.c (verify_flow_info): Check for unconditional return.
4971 Wed Mar 15 11:34:27 2000 Jim Wilson <wilson@cygnus.com>
4973 * config/ia64/ia64.md (restore_stack_nonlocal): New.
4974 * config/ia64/lib1funcs.asm (__ia64_nonlocal_goto): Delete padding nop.
4975 (__ia64_restore_stack_nonlocal): New.
4976 * config/ia64/t-ia64 (LIB1ASMFUNCS): Add __restore_stack_nonlocal.
4978 2000-03-15 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
4980 * cpphash.c (collect_formal_parameters): Do not complain about
4981 parameter names that just start with `__VA_ARGS__'.
4983 Wed Mar 15 13:26:58 MET 2000 Jan Hubicka <jh@suse.cz>
4985 * i386.md (movhi_1): Promote movw imm, reg to movl imm, reg and
4986 movw reg, reg to movzwl reg, reg on PARTIAL_REGISTER_STALL machines.
4987 * i386.c (pentiumpro_cost): Set mul cost to 4.
4988 (x86_use_movx): Set for PPro.
4990 Wed Mar 15 13:07:05 MET 2000 Jan Hubicka <jh@suse.cz>
4992 * i386.md (ix86_compute_frame_size): stack_alignment_needed is
4993 STACK_BOUNDARY for empty frames now.
4995 2000-03-14 Mark Mitchell <mark@codesourcery.com>
4997 * stor-layout.c (layout_union): Remove.
4998 (layout_union_field): New function, split out from layout_union.
4999 (finish_union_layout): Likewise.
5000 (layout_field): Handle unions by calling layout_union_field.
5001 (finish_record_layout): Handle unions.
5002 (layout_type): Combine RECORD_TYPE, UNION_TYPE, and
5003 QUAL_UNION_TYPE handling.
5005 Wed Feb 23 13:00:06 CET 2000 Jan Hubicka <jh@suse.cz>
5007 * flow.c (fixup_reorder_chain): Avoid double labels in the basic block;
5008 end of basic block is jump_insn, not barrier; use create_basic_block
5009 instead of creating basic block by hand.
5011 2000-03-14 Jason Eckhardt <jle@cygnus.com>
5013 * flow.c (reorder_basic_blocks): Account for barriers when writing
5014 over NEXT_INSN (last_bb->end).
5015 (verify_flow_info): Add check for missing barriers.
5017 2000-03-14 Greg McGary <gkm@gnu.org>
5019 * c-lex.h (enum rid): Add RID_BOUNDED & RID_UNBOUNDED.
5020 * c-lex.c (init_lex): Handle RID_BOUNDED & RID_UNBOUNDED.
5021 * c-parse.gperf (__bounded, __bounded__, __ptrbase, __ptrbase__,
5022 __ptrextent, __ptrextent__, __ptrvalue, __ptrvalue__,
5023 __unbounded, __unbounded__): New keywords.
5024 * c-parse.in (PTR_VALUE PTR_BASE PTR_EXTENT): New tokens.
5025 * c-parse.y, c-parse.c, c-parse.h: Regenerate.
5026 * objc/objc-parse.y, objc/objc-parse.c: Regenerate.
5028 2000-03-14 Bernd Schmidt <bernds@cygnus.co.uk>
5030 * cselib.h: New file.
5031 * alias.c: Include "cselib.h".
5032 (fixed_scalar_and_varying_struct_p): Accept the addresses of the
5033 MEMs as two new arguments.
5034 (get_addr): New static function.
5035 (find_base_term): Handle VALUEs.
5036 (memrefs_conflict_p): Likewise.
5037 (true_dependence): Call get_addr on the addresses.
5038 Call fixed_scalar_and_varying_struct_p with addresses that have been
5039 passed through get_addr and canon_rtx.
5040 (write_dependence_p): Move DIFFERENT_ALIAS_SETS_P test for consistency
5041 with true_dependence.
5042 Call get_addr on the addresses; don't call canon_rtx on the MEMs.
5043 * loop.c: Include "cselib.h".
5044 (load_mems): Process extended basic block that enters the loop with
5045 cselib. Use that information to change initialization of the shadow
5046 register so that a constant equivalence is seen by later passes.
5047 * reload1.c: Include "cselib.h".
5048 (reload_cse_invalidate_regno): Delete function.
5049 (reload_cse_mem_conflict_p): Likewise.
5050 (reload_cse_invalidate_mem): Likewise.
5051 (reload_cse_invalidate_rtx): Likewise.
5052 (reload_cse_regno_equal_p): Likewise.
5053 (reload_cse_check_clobber): Likewise.
5054 (reload_cse_record_set): Likewise.
5055 (reg_values): Delete static variable.
5056 (invalidate_regno_rtx): Likewise.
5057 (reload_cse_delete_noop_set): New static function.
5058 (reload_cse_simplify): New static function, broken out of
5060 (reload_cse_noop_set_p): Delete unused argument INSN.
5061 Just call rtx_equal_for_cselib_p on set source and destination.
5062 (reload_cse_regs_1): Break out some code into reload_cse_simplify and
5063 reload_cse_delete_noop_set. Delete code to keep track of values; use
5064 cselib functions instead. Delete code to push/pop obstacks.
5065 (reload_cse_simplify_set): Use cselib to find equivalent values.
5066 Delete code to push/pop obstacks.
5067 (reload_cse_simplify_operands): Likewise.
5068 * rtl.def (VALUE): New rtx code.
5069 * rtl.h (union rtunion_def): New elt rt_cselib.
5070 (X0CSELIB, CSELIB_VAL_PTR): New macros.
5071 * simplify_rtx.c: Include "ggc.h", "obstack.h", "cselib.h".
5072 (new_elt_list, new_elt_loc_list, unchain_one_value, clear_table,
5073 unchain_one_elt_list, unchain_one_elt_loc_list, check_useless_values,
5074 discard_useless_locs, discard_useless_values, entry_and_rtx_equal_p,
5075 hash_rtx, new_cselib_val, add_mem_for_addr, get_value_hash,
5076 cselib_lookup_mem, cselib_subst_to_values, cselib_invalidate_regno,
5077 cselib_mem_conflict_p, cselib_invalidate_mem, cselib_invalidate_rtx,
5078 cselib_record_set, cselib_record_sets): New static functions.
5079 (cselib_lookup, cselib_update_varray_sizes, cselib_init,
5080 cselib_finish, cselib_process_insn, rtx_equal_for_cselib_p,
5081 references_value_p): New functions.
5082 (MAX_USELESS_VALUES, REG_VALUES): New macros.
5083 (table, cselib_current_insn, next_unknown_value, cselib_nregs,
5084 n_useless_values, reg_values, callmem, cselib_obstack,
5085 cselib_startobj, empty_vals, empty_elt_lists, empty_elt_loc_lists):
5086 New static variables.
5087 * varray.h (union varray_data_tag): New elt te.
5088 (VARRAY_ELT_LIST_INIT, VARRAY_ELT_LIST): New macros.
5089 * Makefile.in (reload1.o, loop.o, simplify-rtx.o, alias.o): Update
5092 2000-03-14 Nick Clifton <nickc@cygnus.com>
5094 * gcc.c (do_spec_1): Catch the case where %* is used in a
5095 substitution pattern, but it has not been initialised.
5096 Issue a meaningful error message if an unrecognised operator
5097 is encountered in a spec string.
5099 2000-03-14 Richard Earnshaw <rearnsha@arm.com>
5101 * function.c (prepare_function_start): Correctly initialize
5102 cfun->stack_alignment_needed.
5104 2000-03-14 Zack Weinberg <zack@wolery.cumb.org>
5106 * cppfiles.c (find_include_file): Don't assume nshort is a
5109 Tue Mar 14 08:42:21 2000 Jeffrey A Law (law@cygnus.com)
5111 * configure.in (hppa configurations): Add pa32-regs.h to the
5112 list of tm files as appropriate.
5113 * configure: Rebuilt.
5114 * pa.c (compute_frame_size): Remove explicit knowledge about FP
5116 (hppa_expand_prologue, hppa_expand_epilogue): Likewise.
5117 (fmpyaddoperands, fmpysuboperands): Likewise.
5118 * pa.h: Remove various definitions which depend on knowing
5119 how registers are numbered.
5120 * pa32-regs.h: New file with PA32 register numbering specific
5123 2000-03-14 Richard Henderson <rth@cygnus.com>
5125 * regmove.c (combine_stack_adjustments): New.
5126 (stack_memref_p, single_set_for_csa): New.
5127 (free_csa_memlist, record_one_stack_memref): New.
5128 (try_apply_stack_adjustment): New.
5129 (combine_stack_adjustments_for_block): New.
5130 * rtl.h (combine_stack_adjustments): Declare.
5131 * toplev.c (rest_of_compilation): Call it.
5133 * i386.md: Revert 2000-01-16 change.
5135 2000-03-14 Martin v. Löwis <loewis@informatik.hu-berlin.de>
5137 * gccbug.in: Add web category, gcc specific classes.
5139 2000-03-14 Nathan Sidwell <nathan@codesourcery.com>
5141 * stor-layout.c (finalize_record_size): Fix typo.
5143 2000-03-14 Stan Shebs <shebs@apple.com>
5145 * c-typeck.c (c_alignof): Error on incomplete types.
5146 * extend.texi (Alignment): Document this.
5148 2000-03-13 Zack Weinberg <zack@wolery.cumb.org>
5150 * cppfiles.c: Include mkdeps.h.
5151 (find_include_file, read_include_file): Remove _cpp_ prefix
5152 from name, make static.
5153 (_cpp_execute_include): New function, broken out of
5156 * cpplib.c: Don't include mkdeps.h.
5157 (struct directive): Remove type field. Reorder entries. The
5158 function takes only one argument.
5159 (struct if_stack): Make type field an int.
5160 (directive_table): Rename to dtable. Generate it, the
5161 prototypes of the directive handlers, and the enum for the
5162 directive numbers, from a template macro.
5163 (do_ifndef, do_include_next, do_import): New functions.
5164 (do_define, do_include, do_endif, do_ifdef, do_if, do_else,
5165 do_undef, do_line, do_elif, do_error, do_pragma, do_warning,
5166 do_ident, do_assert, do_unassert, do_sccs): Take only one
5168 (do_sccs): Define always, but alter behavior based on
5170 (_cpp_handle_directive, consider_directive_while_skipping):
5171 Restructure for new directive table layout.
5173 (pass_thru_directive): Take a directive number, not a pointer
5174 to a struct directive.
5175 (parse_include): New function, broken out of do_include.
5176 (do_include, do_import, do_include_next): Use parse_include
5177 and _cpp_execute_include.
5178 (do_elif, do_else): Test for T_ELSE specifically when checking
5179 for #elif/#else after #else.
5180 (parse_ifdef): New function, broken out of do_ifdef.
5181 (validate_else): Expect a name arg without a leading #.
5182 (if_directive_name): Delete.
5183 (cpp_define, cpp_assert, cpp_undef, cpp_unassert): Call
5184 directive handlers with only one argument.
5186 * cpphash.h: Update prototypes.
5187 (enum node_type): Remove entries for directives.
5188 * Makefile.in: Update dependencies.
5190 * cpphash.c (dump_hash_helper): Only dump nodes of type
5191 T_MACRO. Emit a newline after each definition.
5193 2000-03-14 Martin v. Löwis <loewis@informatik.hu-berlin.de>
5195 * gccbug.in: New file.
5196 * configure.in (all_outputs): Add gccbug.
5197 * Makefile.in (install-common): Install gccbug.
5198 (GCCBUG_INSTALL_NAME): New variable.
5199 * configure: Rebuilt.
5201 2000-03-13 Jason Merrill <jason@casey.cygnus.com>
5203 * function.c (put_var_into_stack): Use type_for_mode to calculate
5204 part_type. Use MEM_SET_IN_STRUCT_P.
5205 * expr.c (store_field): Handle CONCAT.
5206 (store_constructor): Use fields_length.
5207 * tree.c (fields_length): New fn.
5208 * tree.h: Declare it.
5210 2000-03-13 Zack Weinberg <zack@wolery.cumb.org>
5212 * Makefile.in (LIBCPP_OBJS): Add cpplex.o.
5213 (cpplex.o): New target.
5214 * po/POTFILES.in: Add cpplex.c.
5216 * cpplex.c (_cpp_grow_token_buffer, null_cleanup,
5217 cpp_push_buffer, cpp_pop_buffer, cpp_scan_buffer,
5218 cpp_expand_to_buffer, cpp_buf_line_and_col, cpp_file_buffer,
5219 skip_block_comment, skip_line_comment, skip_comment,
5220 copy_comment, _cpp_skip_hspace, _cpp_skip_rest_of_line,
5221 _cpp_parse_name, skip_string, parse_string,
5222 _cpp_parse_assertion, cpp_get_token, cpp_get_non_space_token,
5223 _cpp_get_directive_token, find_position,
5224 _cpp_read_and_prescan, _cpp_init_input_buffer): Move here.
5225 (maybe_macroexpand, _cpp_lex_token): New functions.
5227 * cpplib.c (SKIP_WHITE_SPACE, eval_if_expr, parse_set_mark,
5228 parse_goto_mark): Delete.
5229 (_cpp_handle_eof): New function.
5230 (_cpp_handle_directive): Rename from handle_directive.
5231 (_cpp_output_line_command): Rename from output_line_command.
5232 (do_if, do_elif): Call _cpp_parse_expr directly.
5233 * cppfiles.c (_cpp_read_include_file): Don't call
5234 init_input_buffer here.
5235 * cpphash.c (quote_string): Move here, rename _cpp_quote_string.
5236 * cppexp.c (_cpp_parse_expr): Diddle parsing_if_directive
5237 here; pop the token_buffer and skip the rest of the line here.
5238 * cppinit.c (cpp_start_read): Call _cpp_init_input_buffer
5241 * cpphash.h (CPP_RESERVE, CPP_IS_MACRO_BUFFER, ACTIVE_MARK_P):
5243 (CPP_SET_BUF_MARK, CPP_GOTO_BUF_MARK, CPP_SET_MARK,
5244 CPP_GOTO_MARK): New macros.
5245 (_cpp_quote_string, _cpp_parse_name, _cpp_skip_rest_of_line,
5246 _cpp_skip_hspace, _cpp_parse_assertion, _cpp_lex_token,
5247 _cpp_read_and_prescan, _cpp_init_input_buffer,
5248 _cpp_grow_token_buffer, _cpp_get_directive_token,
5249 _cpp_handle_directive, _cpp_handle_eof,
5250 _cpp_output_line_command): Prototype them here.
5251 * cpplib.h (enum cpp_token): Add CPP_MACRO.
5252 (CPP_RESERVE, get_directive_token, cpp_grow_buffer,
5253 quote_string, output_line_command): Remove.
5255 2000-03-13 Bernd Schmidt <bernds@cygnus.co.uk>
5257 * stmt.c (expand_end_case): RANGE may be signed, and when checking
5258 whether it is too large we must also verify that it isn't negative.
5260 2000-03-13 Jakub Jelinek <jakub@redhat.com>
5262 * config/sparc/sparc.md: Remove all traces of TARGET_LIVE_G0.
5263 (movsi_zero_liveg0): Remove.
5264 (movsf_insn_novis_liveg0): Remove.
5266 (negsi2_not_liveg0): Rename to negsi2.
5267 (one_cmplsi2): Remove.
5268 (one_cmplsi2_not_liveg0): Rename to one_cmplsi2.
5269 (one_cmplsi2_liveg0): Remove.
5270 * config/sparc/sparc.h (TARGET_LIVE_G0, TARGET_BROKEN_SAVERESTORE,
5271 MASK_LIVE_G0, MASK_BROKEN_SAVERESTORE): Remove.
5272 (CONDITIONAL_REGISTER_USAGE): Remove TARGET_LIVE_G0 if.
5273 (PREDICATE_CODES): Remove zero_operand.
5274 * config/sparc/sparc.c: Remove all traces of TARGET_LIVE_G0 and
5275 TARGET_BROKEN_SAVERESTORE.
5276 (zero_operand): Remove.
5277 * config/sparc/splet.h (SUBTARGET_SWITCHES): Remove -mlive-g0,
5278 -mno-live-g0, -mbroken-saverestore and -mno-broken-saverestore
5280 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
5281 * config/sparc/linux-aout.h (TARGET_LIVE_G0,
5282 TARGET_BROKEN_SAVERESTORE): Remove.
5283 * config/sparc/linux.h (TARGET_LIVE_G0, TARGET_BROKEN_SAVERESTORE):
5285 * config/sparc/linux64.h (TARGET_LIVE_G0, TARGET_BROKEN_SAVERESTORE):
5287 * config/sparc/sol2.h (TARGET_LIVE_G0, TARGET_BROKEN_SAVERESTORE):
5290 * config/sparc/sparc.md (return_df_no_fpu): New pattern.
5292 2000-03-13 Zack Weinberg <zack@wolery.cumb.org>
5294 * cpplib.c (do_pragma_implementation): Fix off-by-one error
5295 truncating a string. Don't assume tokens are nul terminated.
5296 Problem noted by Andreas Jaeger <aj@suse.de>
5298 2000-03-13 Jason Merrill <jason@casey.cygnus.com>
5300 * dwarf2out.c (add_name_and_src_coords_attributes): Only add
5301 DW_AT_MIPS_linkage_name for TREE_PUBLIC decls.
5302 (ASM_OUTPUT_DWARF_ADDR_CONST): Don't output trailing newline.
5304 2000-03-13 Richard Earnshaw <rearnsha@arm.com>
5306 * stor-layout.c (new_record_layout_info): Fix typo inside ifdef
5307 STRUCTURE_SIZE_BOUNDARY.
5309 2000-03-13 Mark Mitchell <mark@codesourcery.com>
5311 * tree.h (record_layout_info_s): New structure.
5312 (record_layout_info): New type.
5313 (new_record_layout_info): New function.
5314 (layout_field): Likewise.
5315 (finish_record_layout): Likewise.
5316 * stor-layout.c (layout_record): Remove.
5317 (new_record_layout_info): New function.
5318 (layout_field): New function, broken out from layout_record.
5319 (finalize_record_size): Likewise.
5320 (compute_record_mode): Likewise.
5321 (finalize_type_size): New function, broken out from layout_type.
5322 (finish_record_layout): Likewise.
5323 (layout_type): Use them.
5325 2000-03-12 Zack Weinberg <zack@wolery.cumb.org>
5327 * cpphash.c: Don't include version.h.
5328 (special_symbol) [case T_VERSION]: Look for the string in
5329 hp->value.cpval; don't use version_string.
5330 * cppinit.c (initialize_builtins): Set hp->value.cpval for
5331 __VERSION__ to version_string.
5332 * Makefile.in (cpphash.o): Update deps.
5334 2000-03-12 Zack Weinberg <zack@wolery.cumb.org>
5336 Convert cpplib to use libiberty/hashtab.c.
5338 * cpplib.h (struct cpp_reader): Make hashtab and
5339 all_include_files of type 'struct htab *'. Delete HASHSIZE
5340 and ALL_INCLUDE_HASHSIZE macros.
5342 * cpphash.h: Update prototypes.
5343 (struct hashnode): Remove next, prev, and bucket_hdr members.
5344 Make length a size_t. Add hash member.
5345 (struct ihash): Remove next member. Add hash member. Make
5346 name a flexible array member.
5348 * cppfiles.c: Include hashtab.h.
5349 (include_hash): Delete.
5350 (IHASHSIZE): New macro.
5351 (hash_IHASH, eq_IHASH, _cpp_init_include_hash): New functions.
5352 (cpp_included): Do the hash lookup here.
5353 (_cpp_find_include_file): Rewrite.
5354 (cpp_read_file): Put the "fake" hash entry into the hash
5355 table. Honor the control_macro, if it turns out we've seen
5356 the file before. Don't push the buffer here.
5357 (_cpp_read_include_file): Push the buffer here.
5358 (OMODES): New macro. Use it whenever we call open(2).
5360 * cpphash.c: Include hashtab.h.
5361 (hash_HASHNODE, eq_HASHNODE, del_HASHNODE, dump_hash_helper,
5362 _cpp_init_macro_hash, _cpp_dump_macro_hash, _cpp_make_hashnode,
5363 _cpp_lookup_slot): New functions.
5364 (HASHSIZE): new macro.
5365 (hashf, _cpp_install, _cpp_delete_macro): Delete.
5366 (_cpp_lookup): Use hashtab.h routines.
5368 * cppinit.c: Include hashtab.h.
5369 (cpp_reader_init): Call _cpp_init_macro_hash and
5370 _cpp_init_include_hash. Don't allocate hashtab directly.
5371 (cpp_cleanup): Just call htab_delete on pfile->hashtab and
5372 pfile->all_include_files.
5373 (initialize_builtins): Use _cpp_make_hashnode and
5374 htab_find_slot to add hash entries.
5375 (cpp_finish): Just call _cpp_dump_macro_hash.
5376 * cpplib.c: Include hashtab.h.
5377 (do_define): Use _cpp_lookup_slot and _cpp_make_hashnode to
5378 create hash entries.
5379 (do_pragma_poison, do_assert): Likewise.
5380 (do_include): Don't push the buffer here. Don't increment
5381 system_include_depth unless _cpp_read_include_file succeeds.
5382 (do_undef, do_unassert): Use _cpp_lookup_slot and htab_clear_slot
5384 (do_pragma_implementation): Use alloca to create copy.
5386 * Makefile.in: Update dependencies.
5388 2000-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5390 * cppinit.c (cl_directive_handler): More K&R fixing.
5392 Sat Mar 11 23:54:26 2000 Jim Wilson <wilson@cygnus.com>
5394 * config/ia64/ia64.c (ia64_compute_frame_size): Align size to
5396 * config/ia64/ia64.h (REGISTER_MOVE_COST): Add missing parentheses.
5398 2000-03-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5400 * cppinit.c (no_arg, no_ass, no_dir, no_fil, no_mac, no_pth):
5401 Change from char[] to macros.
5403 2000-03-12 Neil Booth <NeilB@earthling.net>
5405 * cppinit.c (cpp_start_read): Update indirect function
5408 Sat Mar 11 16:18:12 2000 Jim Wilson <wilson@cygnus.com>
5410 * config/ia64/ia64.h (ADDITIONAL_REGISTER_NAMES): Fix typo in loc79
5413 * config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
5414 config/ia64/ia64.md, config/ia64/xm-ia64.h: Fix copyright messages.
5416 2000-03-11 Neil Booth <NeilB@earthling.net>
5418 * cppinit.c (struct pending option): Replace undef with a
5419 pointer to a directive handling routine.
5420 (struct cpp_pending): Replace separate assert_ and define_
5421 lists with one directive_ list.
5422 (new_pending_define): Rename new_pending_directive. Extra
5423 argument is the directive's handling routine.
5424 (handle_option): Update to use new_pending_directive.
5426 2000-03-11 Neil Booth <NeilB@earthling.net>
5428 * cppfiles.c (file_cleanup, _cpp_find_include_file,
5429 remap_filename, _cpp_read_include_file, actual_directory,
5430 hack_vms_include_specification): Replace bcopy(), index() etc
5431 calls. Add casts to some allocations. Make some variables
5432 pointers to const [unsigned] char.
5433 * cpphash.c (_cpp_install, macro_cleanup, collect_expansion,
5434 collect_formal_parameters): Similarly.
5435 * cppinit.c (struct pending_option, append_include_chain,
5436 cpp_options_init, cpp_reader_init, initialize_standard_includes,
5437 cpp_start_read, new_pending_define, handle_option): Similarly.
5438 * cpplib.c (cpp_define, copy_comment, do_define, do_include,
5439 do_undef, do_error, do_warning, do_pragma, do_pragma_once,
5440 do_pragma_implementation, detect_if_not_defined,
5441 do_ifdef, skip_if_group, cpp_get_token, parse_string,
5442 do_assert, do_unassert): Similarly.
5443 * cpplib.h (cpp_buffer, cpp_options): Update types. Update
5444 function prototypes.
5445 * mkdeps.c (deps_add_target, deps_add_dep): cast allocations.
5447 2000-03-10 Richard Henderson <rth@cygnus.com>
5449 * builtins.c (expand_builtin_strlen): Revert last change.
5450 Use emit_insn_before if we're at the beginning of a sequence.
5452 2000-03-10 Jason Merrill <jason@casey.cygnus.com>
5454 * builtins.c (expand_builtin_strlen): Make sure that we have something
5455 at the beginning of the sequence.
5457 * toplev.c (rest_of_compilation): Also set TREE_NOTHROW for
5460 * invoke.texi (C++ Dialect Options): Document -fno-enforce-eh-specs.
5462 2000-03-10 Richard Henderson <rth@cygnus.com>
5464 * except.c (can_throw): Use INTVAL on a CONST_INT.
5465 (reachable_handlers): Likewise.
5466 * flow.c (count_basic_blocks, find_basic_blocks_1): Likewise.
5468 2000-03-10 Andreas Jaeger <aj@suse.de>
5470 * config/mips/linux.h: Undefine MD_EXEC_PREFIX and
5471 MD_STARTFILE_PREFIX since those are not needed on linux.
5472 (ASM_FILE_START): New, from mips/gnu.h.
5474 2000-03-09 Richard Henderson <rth@cygnus.com>
5475 Alex Samuel <samuel@codesourcery.com> and others
5477 * Makefile.in (ssa.o): New rule.
5479 (STAGESTUFF): Add *.ssa and *.ussa.
5480 (mostlyclean): Delete *.ssa, *.ussa, */*.ssa, */*.ussa.
5481 * rtl.def (PHI): New RTL expression.
5482 * rtl.h (clear_log_links): New declaration.
5483 (convert_to_ssa): Likewise.
5484 (convert_from_ssa): Likewise.
5485 * flow.c (split_edge): If the entry node falls through to the
5486 split edge's source block, split the entry edge.
5487 (clear_log_links): New function.
5488 * toplev.c (ssa_dump): New variable.
5489 (flag_ssa): Likewise.
5490 (f_options): Add "ssa".
5491 (compile_file): Create SSA dump files.
5492 (rest_of_compilation): Go to and from SSA if enabled.
5493 (decide_d_option): Handle -de for SSA dump files.
5496 Thu Mar 9 20:01:38 2000 Jim Wilson <wilson@cygnus.com>
5498 * expr.c (expand_assignment): For a CALL_EXPR, special case PARM_DECL
5501 2000-03-09 Benjamin Kosnik <bkoz@cygnus.com>
5503 * config/alpha/linux.h (WCHAR_TYPE): Make consistent.
5505 Thu Mar 9 18:10:02 2000 Jeffrey A Law (law@cygnus.com)
5507 * config/pa/pa-hpux10.h (LIB_SPEC): Correct typo in !p case.
5508 (MD_STARTFILE_PREFIX_1): New macro.
5510 2000-03-09 Robert Lipe <robertl@sco.com>
5512 * config/ia64/ia64.c: Include system.h.
5514 2000-03-09 Jason Merrill <jason@casey.cygnus.com>
5516 * except.c (nothrow_function_p): If -fno-exceptions, just return.
5517 (init_eh_nesting_info): Likewise.
5519 * tree.h (struct tree_common): Rename raises_flag to nothrow_flag.
5520 (TREE_NOTHROW): Rename from TREE_RAISES.
5521 * toplev.c (rest_of_compilation): Set it.
5522 * print-tree.c (print_node): Adjust.
5523 * tree.c (stabilize_reference, build, build1): Don't set TREE_RAISES.
5524 (stabilize_reference_1, get_unwidened, get_narrower): Likewise.
5525 * calls.c (emit_call_1): Add 'nothrow' parm. Add
5526 REG_EH_REGION note as appropriate.
5527 (libfunc_nothrow): New fn.
5528 (emit_library_call, emit_library_call_value): Use it.
5529 (expand_call): Check TREE_NOTHROW.
5531 * varasm.c (make_decl_rtl): Skip initial '*' when setting
5532 DECL_ASSEMBLER_NAME.
5534 2000-03-09 Andreas Jaeger <aj@suse.de>
5536 * mips/linux.h (NO_IMPLICIT_EXTERN_C): Define.
5537 (TARGET_MEM_FUNCTIONS): Define.
5539 2000-03-09 Jason Merrill <jason@casey.cygnus.com>
5541 * i386.c (ix86_valid_type_attribute_p): Use compare_tree_int.
5543 * except.c (can_throw): See through a SEQUENCE.
5544 (nothrow_function_p): New fn.
5545 * except.h: Declare it.
5546 * function.c (current_function_nothrow): New var.
5547 (prepare_function_start): Initialize it.
5548 * output.h: Declare it.
5549 * toplev.c (rest_of_compilation): Set it.
5550 * dwarf2out.c (dwarf2out_begin_prologue): Use it.
5552 2000-03-09 Zack Weinberg <zack@wolery.cumb.org>
5554 * cpphash.c (collect_formal_parameters): strncmp returns 0 for
5555 match. (cpp_compare_defs): Count the nul separator when
5556 advancing over argument names.
5558 2000-03-09 Bernd Schmidt <bernds@cygnus.co.uk>
5560 * recog.c (preprocess_constraints): Matching constraints affect
5561 same alternative/different operand, not same operand/different
5564 * reload1.c (eliminate_regs_in_insn): Handle additions of eliminable
5565 register and a constant specially.
5567 2000-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5569 * libgcc2.h: New file.
5570 * libgcc2.c: Move macros, typedefs and prototypes to libgcc2.h.
5572 Wed Mar 8 16:19:42 2000 Jim Wilson <wilson@cygnus.com>
5574 * configure.in (ia64*-*-elf*, ia64*-*-linux*): New.
5575 * configure: Regenerate.
5578 2000-03-08 Zack Weinberg <zack@wolery.cumb.org>
5580 * Makefile.in (LIBCPP_DEPS): New macro.
5581 (cpplib.o, cpphash.o, cpperror.o, cppexp.o, cppfiles.o): Use
5583 * cpperror.c: Include cpphash.h.
5584 * cppexp.c: Include cpphash.h. Remove MULTIBYTE_CHARS
5586 (lex): Don't use CPP_WARN_UNDEF.
5587 (_cpp_parse_expr): Return an int, the truth value.
5588 * cppfiles.c: Include cpphash.h.
5589 (_cpp_merge_include_chains): Move to cppinit.c and make static.
5590 * cppinit.c (include_defaults_array): Disentangle.
5591 (cpp_cleanup): Don't free the if stack here.
5592 (cpp_finish): Pop off all buffers, not just one.
5593 * cpplib.c (eval_if_expr): Return int.
5594 (do_xifdef): Rename do_ifdef.
5595 (handle_directive): Don't use CPP_PREPROCESSED.
5596 (cpp_get_token): Don't use CPP_C89.
5597 * fix-header.c: Don't use CPP_OPTIONS.
5599 * cpplib.h: Move U_CHAR, enum node_type, struct
5600 file_name_list, struct ihash, is_idchar, is_idstart,
5601 is_numchar, is_numstart, is_hspace, is_space, CPP_BUF_PEEK,
5602 CPP_BUF_GET, CPP_FORWARD, CPP_PUTS, CPP_PUTS_Q, CPP_PUTC,
5603 CPP_PUTC_Q, CPP_NUL_TERMINATE, CPP_NUL_TERMINATE_Q,
5604 CPP_BUMP_BUFFER_LINE, CPP_BUMP_LINE, CPP_PREV_BUFFER,
5605 CPP_PRINT_DEPS, CPP_TRADITIONAL, CPP_PEDANTIC, and prototypes
5606 of _cpp_simplify_pathname, _cpp_find_include_file,
5607 _cpp_read_include_file, and _cpp_parse_expr to cpphash.h.
5608 Move struct if_stack to cpplib.c. Move struct cpp_pending to
5610 Change all uses of U_CHAR to be unsigned char instead.
5611 Delete CPP_WARN_UNDEF, CPP_C89, and CPP_PREPROCESSED.
5613 2000-03-08 Jason Merrill <jason@casey.cygnus.com>
5615 * dwarf2out.c (dw_fde_struct): Add 'nothrow'.
5616 (dwarf2out_begin_prologue): Set it.
5617 (output_call_frame_info): Don't emit EH unwind info for leaves.
5619 * flow.c (count_basic_blocks, find_basic_blocks_1): A rethrow
5620 can occur outside of an EH region.
5621 * except.c: Correct comments about rethrow behavior.
5622 (rethrow_symbol_map): Do nothing if !flag_new_exceptions.
5624 2000-03-08 Andrew MacLeod <amacleod@cygnus.com>
5626 * flow.c (make_edges): Always call make_eh_edge for calls.
5628 2000-03-08 Zack Weinberg <zack@wolery.cumb.org>
5630 * cpplib.h (parse_underflow_t, CPP_NULL_BUFFER): Delete.
5631 (struct cpp_buffer): Remove fname and underflow fields.
5632 (struct cpp_reader): Remove get_token field.
5633 (struct include_hash): Rename to struct ihash. Add typedef to
5635 (struct if_stack): Remove fname field.
5636 (IF_STACK_FRAME): Rename to IF_STACK.
5638 * cpperror.c (print_containing_files): Trust that there are no
5639 macro buffers below the top file buffer.
5640 * cppfiles.c: Replace all references to 'struct include_hash'
5641 with 'IHASH'. Rename initialize_input_buffer to
5642 init_input_buffer. Don't set or reference cpp_buffer->fname,
5643 use buffer->ihash->name instead.
5644 * cpphash.c (special_symbol): Use cpp_file_buffer. Use NULL
5645 not CPP_NULL_BUFFER.
5646 * cppinit.c: Use NULL not CPP_NULL_BUFFER, IF_STACK not
5647 IF_STACK_FRAME, IHASH not struct include_hash.
5648 * cpplib.c: Rename eval_if_expression to eval_if_expr. Remove
5649 null_underflow. Use IF_STACK not IF_STACK_FRAME, IHASH not
5650 struct include_hash, NULL not CPP_NULL_BUFFER. Remove all
5651 references to cpp_buffer->fname (delete entirely, or use
5652 ->ihash->name instead) and IF_STACK->fname.
5653 (cpp_push_buffer): Don't set new->underflow.
5654 (do_include): Use cpp_file_buffer.
5656 * cpphash.c (collect_formal_parameters): Remove duplicate
5657 increment of argslen. Pedwarn in C99 mode if __VA_ARGS__ is
5658 used as a macro argument name. Don't append "..." to namebuf
5659 for varargs macros. After we're done scanning, go through
5660 namebuf and make it NUL separated, not comma separated.
5661 (_cpp_compare_defs): Remove register tag from variables.
5662 Expect defn->argnames to be NUL separated.
5663 (_cpp_dump_definition): Expect defn->argnames to be NUL
5664 separated and in forward order.
5665 * cpphash.h: Update documentation of argnames field.
5667 2000-03-08 Richard Henderson <rth@cygnus.com>
5669 * builtins.c (expand_builtin_strlen): Be prepared for strlensi
5670 to fail. Don't pre-expand the source operand.
5672 * i386.md (strlensi): Initialize eoschar and align before use.
5674 2000-03-08 Jason Merrill <jason@casey.cygnus.com>
5676 * expr.c (expand_expr, case ARRAY_REF): Still check for missing
5677 CONSTRUCTOR element.
5679 2000-03-08 Gavin Romig-Koch <gavin@cetus.cygnus.com>
5681 * mips.c (mips_expand_prologue): If the last
5682 named argument is the vararg marker "va_list", treat it as
5683 an unnamed argument.
5685 2000-03-08 Clinton Popetz <cpopetz@cygnus.com>
5687 * dbxout.c (dbxout_parms): When correcting for promoted
5688 big-endian parameters, use the mode of the DECL_RTL rather
5689 than UNITS_PER_WORD.
5691 2000-03-08 Nathan Sidwell <nathan@codesourcery.com>
5693 * c-common.h (make_fname_decl): Declare.
5694 * c-common.c (make_fname_decl): Define.
5695 (declare_hidden_char_array): Remove.
5696 (declare_function_name): Use make_fname_decl.
5697 * c-decl.c (c_make_fname_decl): New function.
5698 (init_decl_processing): Set make_fname_decl.
5700 Tue Mar 7 23:50:31 2000 Jeffrey A Law (law@cygnus.com)
5702 * cccp.c (handle_directive): Initialize backslash_newlines_p.
5704 2000-03-07 Philipp Thomas <pthomas@suse.de>
5706 * po/POTFILES.in: Remove cppalloc.c from file list.
5708 2000-03-07 Steve Chamberlain <sac@pobox.com>
5710 * pj.c (pj_expand_prologue): current_function->args_info is
5711 now current_function_args_info.
5713 * pj.h (STORE_FLAG_VALUE, USER_LABEL_PREFIX,
5714 LOCAL_LABEL_PREFIX, ASM_GENERATE_INTERNAL_LABEL,
5715 ASM_OUTPUT_INTERNAL_LABEL, ASM_OUTPUT_SKIP): Define.
5717 2000-03-08 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
5719 * config/c4x/c4x.h (PUT_SDB_TYPE): Define so that the type info is
5720 output as hexadecimal rather than the default octal.
5722 2000-03-07 Zack Weinberg <zack@wolery.cumb.org>
5724 * cpphash.c (special_symbol): Fix thinko in previous commit.
5726 2000-03-07 Neil Booth <NeilB@earthling.net>
5728 * cppexp.c (struct operation, left_shift, right_shift,
5729 cpp_parse_expr): Change some "char"s to "U_CHAR"s, and some
5730 "int"s to "unsigned int"s.
5731 * cpplib.c (detect_if_not_defined, do_assert, do_unassert):
5733 * cpplib.h: Update for above.
5734 * mkdeps.c (deps_init, deps_calc_target): Cast pointers
5735 returned from allocations.
5737 * cppinit.c (opt_comp, parse_options): New functions.
5738 (handle_option): Use parse_option to parse a single command
5739 line option, that possibly takes an argument.
5740 (cpp_handle_options): Sort the array of command line options on
5741 first invocation (non-ASCII hosts only).
5742 (print_help): Update.
5744 2000-03-07 Zack Weinberg <zack@wolery.cumb.org>
5746 * mkdeps.c (munge): Fix off-by-one bug and inconsistencies in
5747 backslash counting loops. Problem noted by Matt Kraai <kraai@ghs.com>.
5749 * cppfiles.c (_cpp_find_include_file): Make sure ih->name is
5751 * cppinit.c (cpp_cleanup): Free imp->nshort also.
5753 * cpperror.c (cpp_print_containing_files,
5754 cpp_print_file_and_line, v_cpp_message): Rename to
5755 print_containing_files, print_file_and_line, and v_message.
5756 * cppexp.c (cpp_parse_expr, cpp_parse_escape, cpp_lex): Rename
5757 to _cpp_parse_expr, parse_escape, and lex.
5758 (parse_charconst): Remove broken multibyte support.
5759 * cppfiles.c (include_hash): Make static.
5760 (cpp_included): New function.
5761 (merge_include_chains, find_include_file, finclude,
5762 simplify_pathname): Rename to _cpp_merge_include_chains,
5763 _cpp_find_include_file, _cpp_read_include_file, and
5764 _cpp_simplify_pathname.
5765 * cpphash.c (cpp_lookup, free_definition, delete_macro,
5766 cpp_install, create_definition, macroexpand, compare_defs,
5767 dump_definition): Rename to _cpp_lookup, _cpp_free_definition,
5768 _cpp_delete_macro, _cpp_install, _cpp_create_definition,
5769 _cpp_macroexpand, _cpp_compare_defs, and _cpp_dump_definition.
5770 * cppinit.c (cpp_handle_option): Rename to handle_option, make
5772 * cpplib.c: Remove extern prototype of cpp_parse_expr.
5774 * cpphash.h: Update prototypes.
5775 * cpplib.h: Likewise. Prototype _cpp_parse_expr here.
5777 2000-03-07 Andrew Haley <aph@cygnus.com>
5779 * config/mips/mips.h (PTRDIFF_TYPE): Revert broken change;
5780 PTRDIFF_TYPE should be based solely on Pmode.
5783 2000-03-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5785 * rtl.h (rtunion_def): Constify member `rtstr'.
5786 (emit_line_note_after, emit_line_note, emit_line_note_force,
5787 emit_note, decode_asm_operands): Constify.
5789 * cse.c (canon_hash): Likewise.
5791 * dbxout.c (dbxout_block): Likewise.
5793 * diagnostic.c (file_and_line_for_asm, v_error_for_asm,
5794 v_warning_for_asm): Likewise.
5796 * dwarfout.c (function_start_label): Likewise.
5798 * emit-rtl.c (emit_line_note_after, emit_line_note, emit_note,
5799 emit_line_note_force): Likewise.
5801 * final.c (last_filename, asm_insn_count, final_scan_insn,
5802 output_source_line): Likewise.
5804 * function.h (struct emit_status): Likewise.
5806 * gcse.c (hash_expr_1): Likewise.
5808 * genattr.c (gen_attr, main): Likewise.
5810 * genattrtab.c (struct function_unit, current_alternative_string,
5811 write_attr_valueq, n_comma_elts, next_comma_elt, attr_eq,
5812 attr_numeral, check_attr_test, check_attr_value,
5813 convert_set_attr_alternative, convert_set_attr,
5814 compute_alternative_mask, simplify_by_exploding, gen_attr,
5815 gen_unit): Likewise.
5817 * genflags.c (gen_insn): Likewise.
5819 * gengenrtl.c (type_from_format): Likewise.
5821 * genopinit.c (gen_insn): Likewise.
5823 * genoutput.c (n_occurrences, process_template, process_template):
5826 * ggc-page.c (ggc_set_mark, ggc_mark_if_gcable, ggc_get_size):
5829 * ggc-simple.c (ggc_set_mark, ggc_mark_if_gcable, ggc_get_size):
5832 * ggc.h (ggc_mark_string, ggc_mark, ggc_mark_if_gcable,
5833 ggc_set_mark, ggc_get_size): Likewise.
5835 * objc/objc-act.c (build_module_descriptor, finish_objc): Likewise.
5837 * optabs.c (init_one_libfunc): Likewise.
5839 * output.h (assemble_start_function): Likewise.
5841 * recog.c (decode_asm_operands): Likewise.
5843 * toplev.c (rest_of_compilation): Likewise.
5845 * tree.h (emit_line_note_after, emit_line_note,
5846 emit_line_note_force): Likewise.
5848 * varasm.c (asm_output_bss, asm_output_aligned_bss,
5849 asm_emit_uninitialised, assemble_start_function,
5850 assemble_variable, const_hash, compare_constant_1,
5851 find_pool_constant, mark_constant_pool, assemble_alias): Likewise.
5853 * xcoffout.h (DBX_FINISH_SYMBOL): Likewise.
5855 * alpha/alpha.md (call_vms, call_value_vms): Likewise.
5857 * arm/aof.h (ASM_OUTPUT_ASCII): Likewise.
5859 * arm/aout.h (ASM_OUTPUT_ASCII): Likewise.
5861 * arm/arm-protos.h (output_ascii_pseudo_op, arm_dllexport_name_p,
5862 arm_dllimport_name_p): Likewise.
5864 * arm/arm.c (arm_encode_call_attribute, output_ascii_pseudo_op):
5867 * arm/arm.h (ASM_OUTPUT_MI_THUNK): Likewise.
5869 * arm/elf.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
5871 * arm/pe.c (arm_dllexport_name_p, arm_dllimport_name_p,
5872 arm_mark_dllexport, arm_mark_dllimport,
5873 arm_pe_encode_section_info): Likewise.
5875 * arm/telf.h (ASM_OUTPUT_DEF_FROM_DECLS,
5876 ASM_FINISH_DECLARE_OBJECT): Likewise.
5878 * arm/thumb.c (thumb_function_prologue): Likewise.
5880 * arm/thumb.h (ASM_OUTPUT_ASCII): Likewise.
5882 * avr/avr.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
5884 * clipper/clix.h (ASM_OUTPUT_ASCII): Likewise.
5886 * fx80/fx80.h (ASM_OUTPUT_ASCII): Likewise.
5888 * i386/cygwin.h (ASM_OUTPUT_SECTION_NAME): Likewise.
5890 * i386/freebsd.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
5892 * i386/i386-interix.h (ASM_OUTPUT_LIMITED_STRING,
5893 ASM_OUTPUT_ASCII, ASM_OUTPUT_SECTION_NAME): Likewise.
5895 * i386/i386-protos.h (asm_output_function_prefix): Likewise.
5897 * i386/i386.c (asm_output_function_prefix): Likewise.
5899 * i386/i386elf.h (ASM_OUTPUT_ASCII): Likewise.
5901 * i386/osfrose.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
5903 * i386/ptx4-i.h (ASM_OUTPUT_ASCII): Likewise.
5905 * i386/sco5.h (ASM_FINISH_DECLARE_OBJECT,
5906 ASM_OUTPUT_LIMITED_STRING, ASM_OUTPUT_ASCII,
5907 ASM_OUTPUT_SECTION_NAME): Likewise.
5909 * i386/sysv4.h (ASM_OUTPUT_ASCII): Likewise.
5911 * i860/paragon.h (ASM_OUTPUT_ASCII): Likewise.
5913 * i860/sysv3.h (ASM_OUTPUT_ASCII): Likewise.
5915 * m32r/m32r.c (m32r_encode_section_info): Likewise.
5917 * mcore-elf.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
5919 * mcore/mcore.c (mcore_encode_section_info): Likewise.
5921 * mips/elf.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
5923 * mips/elf64.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
5925 * mips/iris6.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
5927 * mips/mips.h (ASM_OUTPUT_IDENT): Likewise.
5929 * mips/mips.md (movdi, movsi): Likewise.
5931 * mips/netbsd.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
5933 * netbsd.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
5935 * openbsd.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
5937 * ptx4.h (ASM_FINISH_DECLARE_OBJECT, ASM_OUTPUT_LIMITED_STRING,
5938 ASM_OUTPUT_ASCII): Likewise.
5940 * rs6000/rs6000.c (rs6000_allocate_stack_space, output_epilog,
5941 output_mi_thunk, output_toc): Likewise.
5943 * rs6000/rs6000.md (movsi): Likewise.
5945 * rs6000/sysv4.h (ASM_OUTPUT_INT, ASM_OUTPUT_SECTION_NAME): Likewise.
5947 * tahoe/harris.h (ASM_OUTPUT_ASCII): Likewise.
5949 * v850/v850.c (print_operand, print_operand_address,
5950 v850_encode_data_area): Likewise.
5952 2000-03-07 Clinton Popetz <cpopetz@cygnus.com>
5954 * config/mips/mips.md (zero_extendsidi2): Always force operand
5955 one to memory for mips16.
5957 Mon Mar 6 15:22:29 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5959 * tree.h (INT_CST_LT, INT_CST_LT_UNSIGNED): Remove unneeded casts.
5960 (struct tree_int_cst): int_cst_low is now unsigned HOST_WIDE_INT.
5961 (attribute_hash_list, type_hash_canon): hashcode is now unsigned.
5962 (type_hash_lookup, type_hash_add, type_hash_list): Likewise.
5963 (min_precision): Result is unsigned.
5964 (add_double, neg_double, mul_double): Low word is unsigned.
5965 (lshift_double, rshift_double, lrotate_double): Likewise.
5966 (rrotate_double, div_and_round_double): Likewise.
5967 (tree_floor_log2, compare_tree_int): New functions.
5968 (preserve_rtl_expr_temps): New declaration.
5969 * c-common.c (declare_hidden_char_array): Use compare_tree_int.
5970 (decl_attributes): Use tree_log2 to find alignment.
5971 Check for TREE_INT_CST_HIGH for format args.
5972 (min_precision): Now unsigned.
5973 Use tree_floor_log2.
5974 (truthvalue_conversion): Delete long-disabled code.
5975 * c-decl.c (finish_struct): Clean up tests on field width.
5976 (finish_function): Use compare_tree_int.
5977 * c-pragma.c (handle_pragma_token): Use tree_log2 for alignment.
5978 * c-typeck.c (comptypes): Use tree_int_cst_equal.
5979 (default_conversion, digest_init): Use compare_tree_int.
5980 (build_binary_op): Use integer_all_onesp and compare_tree_int.
5981 Fix type errors in forming masks.
5982 * calls.c (initialize_argument_information): Use compare_tree_int.
5983 * dbxout.c (dbxout_type): Cast TREE_INT_CST_LOW to HOST_WIDE_INT.
5984 * except.c (expand_eh_region_start_tree): Use compare_tree_int.
5985 * expr.c (is_zeros_p, case INTEGER_CST): Use integer_zerop.
5986 (store_field): Use compare_tree_int.
5987 (expand_expr, case CONSTRUCTOR): Use TYPE_SIZE_UNIT.
5988 (expand_expr, case ARRAY_REF): Use compare_tree_int.
5989 (do_jump, case BIT_AND_EXPR): Use tree_floor_log2.
5990 (do_store_flag): Use compare_tree_int.
5991 * fold-const.c (encode, decode): Low part is always unsigned.
5992 (force_fit_type, add_double, neg_double, mul_double): Likewise.
5993 (lshift_double, rshift_double, lrotate_double): Likewise.
5994 (rrotate_double, div_and_round_double, int_const_binop): Likewise.
5995 (fold_convert): Use compare_tree_int.
5996 (operand_equal_p, case INTEGER_CST): Use tree_int_cst_equal.
5997 (invert_truthvalue, case INTEGER_CST): Likewise.
5998 (fold): Use compare_tree_int; add casts for unsigned TREE_INT_CST_LOW.
5999 * mkdeps.c (deps_dummy_targets): Make I unsigned.
6000 * rtl.h (add_double, neg_double, mul_double): Low words are unsigned.
6001 (lshift_double, rshift_double, lrotate_double, rrotate_double):
6003 * stmt.c (expand_decl): Use compare_tree_int and mode_for_size_tree.
6004 (expand_end_case): Use compare_tree_int.
6005 (estimate_case_costs): Cast TREE_INT_CST_LOW to HOST_WIDE_INT.
6006 * stor-layout.c (mode_for_size_tree): Use compare_tree_int.
6007 (layout_decl): Likewise.
6008 (layout_record, layout_union): Make sizes unsigned.
6009 (layout_type, case VOID_TYPE): TYPE_SIZE must be bitsizetype.
6010 (layout_type, case QUAL_UNION_TYPE): Use compare_tree_int.
6011 * tree.c (struct type_hash): hashcode is unsigned.
6012 (build_type_attribute_variant, type_hash_list): Likewise.
6013 (type_hash_lookup, type_hash_add, type_hash_canon): Likewise.
6014 (attribute_hash_list, build_array_type, build_method_type): Likewise.
6015 (build_complex_type): Likewise.
6016 (real_value_from_int_cst): Remove unneeded casts.
6017 (integer_all_onesp): Add casts.
6018 (tree_floor_log2, compare_tree_int): New functions.
6019 (build_index_type): Use tree_int_cst_sgn.
6020 * varasm.c (assemble_variable): Use compare_tree_int.
6022 2000-03-06 Jason Merrill <jason@casey.cygnus.com>
6024 * cpphash.c (collect_expansion): Also catch ## at start of macro.
6026 * varasm.c (make_decl_rtl): Don't add a number to members of
6028 (make_function_rtl): Likewise.
6030 2000-03-06 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
6032 * gcse.c (compute_can_copy): Adjust if/else blocks from rth's
6033 patch from 2000-01-28.
6035 2000-03-06 Clinton Popetz <cpopetz@cygnus.com>
6037 * config/sh/sh.c: (barrier_align): Handle a delay slot that is
6038 filled with an insn from the jump target.
6040 2000-03-07 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
6042 * config/c4x/c4x-protos.h (c4x_global_name): Constify char *.
6043 (c4x_external_ref): Likewise.
6044 * config/c4x/c4x.c (struct name_list): Likewise.
6046 1999-12-16 Ben Collins <bcollins@debian.org>
6048 * Makefile.in: Pass a new MULTILIB_EXCLUSIONS option as the sixth
6049 argument to genmultilib.
6050 * genmultilib: accept new MULTILIB_EXCLUSIONS option and output
6051 the contents into the multilib.h header.
6052 * gcc.c: Declare multilib_exclusions for the specs file.
6053 (set_multilib_dir): Use it.
6054 (print_multilib_info): Likewise.
6055 * t-linux64: Declare arguments for new MULTILIB_EXCLUSIONS option
6056 to pass to genmultilib.
6058 2000-03-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6060 * builtins.c (built_in_class_names, built_in_names): Constify a
6063 * gmon-sol2.c (monstartup, moncontrol): Cast ptrs to long, not
6065 (_mcleanup): Ensure value matches format specifier in sprintf.
6067 * cpphash.c (special_symbol): Don't needlessly cast away
6070 * cppinit.c (base_name): Delete unused prototype.
6072 * mkdeps.c (deps_init): Make definition K&R safe.
6074 * tree.h (built_in_class_names, built_in_names): Constify a
6077 2000-03-06 Jakub Jelinek <jakub@redhat.com>
6079 * config/sparc/sparc.c (eligible_for_epilogue_delay): Accept
6080 floating point instructions for epilogue delay.
6082 * config/sparc/sparc.h (ASM_ARCH64_SPEC): Pass -no-undeclared-regs
6083 to gas if it supports .register pseudo.
6085 * real.h (MAX_LONG_DOUBLE_TYPE_SIZE): Define to
6086 LONG_DOUBLE_TYPE_SIZE if not defined.
6087 Use MAX_LONG_DOUBLE_TYPE_SIZE instead of
6088 LONG_DOUBLE_TYPE_SIZE in preprocessor if clauses.
6090 * gengenrtl.c: Likewise.
6091 * print-rtl.c: Likewise.
6093 * config/sparc/sol2-sld-64.h (TARGET_DEFAULT): Set
6094 MASK_LONG_DOUBLE_128.
6095 * config/sparc/sol2.h (TARGET_DEFAULT): Likewise.
6096 * config/sparc/sp64-elf.h (TARGET_DEFAULT): Likewise.
6097 * config/sparc/linux64 (TARGET_DEFAULT): Likewise.
6098 (SUBTARGET_SWITCHES): Define.
6099 (CPP_ARCH32_SPEC): Define __LONG_DOUBLE_128__ if compiling
6100 with -mlong-double-128.
6101 (LONG_DOUBLE_TYPE_SIZE): Define depending on target_flags.
6102 (MAX_LONG_DOUBLE_TYPE_SIZE): Define.
6103 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define depending on CPP macros.
6104 (CC1_SPEC): Include -mlong-double-{64,128} as needed.
6105 * config/sparc/linux.h (SUBTARGET_SWITCHES): Define.
6106 (CPP_SUBTARGET_SPEC): Define __LONG_DOUBLE_128__ if compiling
6107 with -mlong-double-128.
6108 (LONG_DOUBLE_TYPE_SIZE): Define depending on target_flags.
6109 (MAX_LONG_DOUBLE_TYPE_SIZE): Define.
6110 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define depending on CPP macros.
6111 * config/sparc/sparc.h (MASK_LONG_DOUBLE_128,
6112 TARGET_LONG_DOUBLE_128): Define.
6113 * config/sparc/linux-aout.h (LONG_DOUBLE_TYPE_SIZE): Remove.
6114 * config/sparc/sparc.c (sparc_override_options): Disallow 64bit
6115 long double on TARGET_ARCH64.
6117 2000-03-06 Mark Mitchell <mark@codesourcery.com>
6119 * function.c (free_temps_for_rtl_expr): Don't free slots
6120 that have been pushed into a higher level.
6123 2000-03-05 Mark Mitchell <mark@codesourcery.com>
6125 2000-03-05 Mark Mitchell <mark@codesourcery.com>
6127 * basic-block.h (ALLOCA_REG_SET): Remove.
6128 (INITIALIZE_REG_SET): New macro.
6129 * flow.c (update_life_info): Use it.
6130 (calculate_global_regs_live): Likewise.
6131 (propagate_block): Likewise.
6132 * global.c (build_insn_chain): Likewise.
6133 * haifa-sched.c (schedule_region): Likewise.
6135 2000-03-05 Stephane Carrez <stcarrez@worldnet.fr>
6137 * dwarf2out.c (UNALIGNED_WORD_ASM_OP): Support 2 bytes pointer.
6138 (ASM_OUTPUT_DWARF_ADDR_CONST): Use UNALIGNED_WORD_ASM_OP.
6139 (DWARF_ARANGES_PAD_SIZE): New define.
6140 (output_aranges): Use it to pad the address range header.
6141 (DWARF_ROUND): Fix for non power of 2 rounding.
6143 2000-03-05 Jason Merrill <jason@casey.cygnus.com>
6145 * mkdeps.c (deps_calc_target): Remove incorrect 'const'.
6147 2000-03-05 Mark Mitchell <mark@codesourcery.com>
6149 * tree.def (RTL_EXPR): Update documentation.
6150 * tree.h (RTL_EXPR_HAS_NO_SCOPE): New macro.
6151 * expr.c (expand_expr): Handle RTL_EXPR_HAS_NO_SCOPE.
6152 * function.c (preserve_rtl_expr_temp): New function.
6153 (preserve_rtl_expr_temps): Likewise.
6154 (preserve_rtl_expr_result): Use it.
6157 2000-03-04 Mark Mitchell <mark@codesourcery.com>
6159 2000-03-04 Thomas Schuster <Thomas.Schuster@gmx.net>
6161 * regmove.c (copy_src_to_dest) Do not create src->dest move
6162 for unchanging destination.
6164 2000-03-04 Mark Mitchell <mark@codesourcery.com>
6166 * function.h (struct sequence_stack): Remove rtl_expr.
6167 (struct emit_staus): Likewise.
6168 (seq_rtl_expr): Remove.
6169 * tree.h (free_temps_for_rtl_expr): Don't declare.
6170 (start_sequence_for_rtl_expr): Likewise.
6171 * rtl.h (preserve_rtl_expr_result): Likewise.
6172 * emit-rtl.c (start_sequence): Don't set sequence_rtl_expr.
6173 (start_sequence_for_rtl_expr): Remove.
6174 (push_topmost_sequence): Don't save sequence_rtl_expr.
6175 (pop_topmost_sequence): Remove comment about not restoring it.
6176 (end_sequence): Don't set seq_rtl_expr.
6177 (init_emit): Don't initialize it.
6178 (mark_sequence_stack): Don't mark it.
6179 (mark_emit_status): Likewise.
6180 * except.c (protect_with_terminate): Use
6181 start_sequence_for_rtl_expr, not start_sequence.
6182 * expr.c (expand_expr, case RTL_EXPR): Don't call
6183 preserve_rtl_expr_result or free_temps_for_rtl_expr.
6184 * function.c (assign_stack_temp_for_type): Don't set rtl_expr.
6185 (preserve_rtl_expr_result): Remove.
6186 (free_temps_for_rtl_expr): Likewise.
6187 (pop_temp_slots): Likewise.
6188 (mark_temp_slot): Don't mark the rtl_expr.
6189 * stmt.c (expand_start_stmt_expr): Use start_sequence, not
6190 start_sequence_for_rtl_expr.
6192 2000-03-04 Zack Weinberg <zack@wolery.cumb.org>
6194 * mkdeps.c, mkdeps.h: New files.
6195 * po/POTFILES.in: Add them.
6196 * Makefile.in (LIBCPP_OBJS): Add mkdeps.o.
6197 (cpplib.o, cppinit.o): Depend on mkdeps.h.
6198 (mkdeps.o): New target.
6200 * cppfiles.c: Delete deps_output.
6201 * cppinit.c: Include mkdeps.h. Delete known_suffixes,
6202 OBJECT_SUFFIX, and base_name.
6203 (cpp_cleanup): Use deps_free. Free ihash->name when clearing
6205 (initialize_dependency_output): Use deps_init,
6206 deps_add_target, deps_calc_target, and deps_add_dep. Remove
6207 all the unnecessary string bashing.
6208 (cpp_finish): Use deps_write. Remove an unnecessary nesting
6210 * cpplib.c (do_include): Use deps_add_dep.
6211 * cpplib.h (struct cpp_reader): Replace deps_buffer,
6212 deps_allocated_size, deps_size, deps_column members with
6213 single pointer to a struct deps. Delete prototype of
6216 * cppinit.c: Fix thinko in previous patch.
6218 Sat Mar 4 11:32:30 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6220 * machmode.h (mode_for_size, smallest_mode_for_size): SIZE now signed.
6221 * stor-layout.c (mode_for_size, smallest_mode_for_size): Likewise.
6222 (mode_for_size_tree): New function.
6223 (layout_decl, layout_type): Call it and clean up BLKmode checks.
6224 * tree.h (mode_for_size_tree): New declaration.
6226 * toplev.c (debug_ignore_block): Mark arg BLOCK as possibly unused.
6228 2000-03-04 Jason Merrill <jason@casey.cygnus.com>
6230 * stmt.c (is_body_block): Move...
6231 * dwarfout.c, dwarf2out.c: ...from here.
6232 * tree.h: Declare it.
6233 * emit-rtl.c (remove_unncessary_notes): Don't remove the body block.
6234 * final.c (final_start_function): Do call remove_unnecessary_notes
6237 2000-03-03 Zack Weinberg <zack@wolery.cumb.org>
6239 * config/vax/xm-vms.h: Define OBJECT_SUFFIX and EXECUTABLE_SUFFIX.
6241 * cpplib.h (_dollar_ok): New macro.
6242 (is_idchar, is_idstart): Use it.
6243 (IStable): Rename to _cpp_IStable. Declare it const if
6244 gcc >=2.7 or C99. Delete all references to FAKE_CONST.
6245 (is_idchar, is_idstart, is_numchar, is_numstart, is_hspace,
6246 is_space): Update for renamed IStable.
6248 * cppinit.c: Delete all references to FAKE_CONST and CAT
6249 macros. Define init_IStable as empty macro if gcc >=2.7 or
6250 C99. Change TABLE() to ISTABLE and hardcode name of table.
6251 (cpp_start_read): Don't change the IStable based on
6254 * cpphash.c (unsafe_chars): Add pfile argument. All callers
6255 changed. Handle '$' for char1 correctly.
6256 * cpplib.c (cpp_get_token): Use is_numchar when parsing numbers.
6258 * cppexp.c (tokentab2): Make const.
6259 (cpp_lex): Make toktab const.
6260 * cppinit.c (include_defaults_array): Make const.
6261 (initialize_standard_includes): Make default_include const.
6263 2000-03-03 Jason Merrill <jason@casey.cygnus.com>
6265 * dwarf2out.c (dwarf2out_frame_debug): Add cast to silence warning.
6266 (dwarf2out_decl): Functions can now have DECL_IGNORED_P.
6267 (gen_decl_die): Likewise.
6268 * dwarfout.c (dwarfout_file_scope_decl): Likewise.
6269 (output_decl): Likewise.
6271 * varasm.c (make_function_rtl): If we change the name used in the
6272 rtl, update DECL_ASSEMBLER_NAME accordingly.
6273 (make_decl_rtl): Likewise.
6275 * toplev.c (rest_of_compilation): Tweak formatting.
6277 * toplev.c (rest_of_compilation): find_loop_tree_blocks before
6278 remove_unnecessary_notes.
6279 (debug_ignore_block): New fn.
6280 * toplev.h: Declare it.
6281 * emit-rtl.c (remove_unncessary_notes): Call it.
6282 * dwarf2out.c (dwarf2out_ignore_block): New fn.
6283 * dwarf2out.h: Declare it.
6284 * final.c (final_start_function): Don't call remove_unnecessary_notes
6285 if we did insn scheduling.
6287 2000-03-03 Zack Weinberg <zack@wolery.cumb.org>
6289 * cppinit.c (cpp_handle_option): Set opts->pedantic directly.
6290 * cpplib.h: Delete SET_CPP_PEDANTIC.
6292 Fri Mar 3 14:56:12 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6294 * expr.c (expand_expr, case COMPONENT_REF): Use bitfield case if
6295 result is a RECORD_TYPE.
6297 2000-03-03 Jonathan Larmour <jlarmour@cygnus.co.uk>
6299 * mips/elf.h (CTOR_LISTS_DEFINED_EXTERNALLY): Added.
6301 2000-03-03 Richard Henderson <rth@cygnus.com>
6303 * alpha.c (alpha_emit_set_const_1): Re-order cases to prefer
6304 addition over compliments over shifts.
6306 Fri Mar 3 12:49:28 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
6308 * reload1.c (reload_combine_note_use): Handle return register USEs.
6309 REG case: Handle multi-hard-register hard regs.
6311 Fri Mar 3 07:38:34 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6313 * md.texi: Document use of '*' in insn pattern name.
6315 2000-03-03 Jason Merrill <jason@casey.cygnus.com>
6317 * calls.c (special_function_p): operator new may not be malloc-like.
6319 * gcse.c (dump_hash_table): Really fix error in last change.
6321 2000-03-02 Denis Chertykov <denisc@overta.ru>
6323 * avr.c (print_operand): Use print_operand_address instead of
6325 * avr/libgcc.S: Cleanup code.
6327 2000-03-02 Richard Henderson <rth@cygnus.com>
6329 * alpha.c (alpha_emit_set_const_1): Also try c + small constant.
6331 2000-03-02 Mark Mitchell <mark@codesourcery.com>
6333 * tree.h (TYPE_ALIGN_UNIT): New macro.
6335 2000-03-02 Clinton Popetz <cpopetz@cygnus.com>
6337 * i386.c: (constant_call_address_operand): Reject CONST_INT.
6339 2000-03-02 Jason Merrill <jason@casey.cygnus.com>
6341 * cpplib.h (CPP_PEDANTIC): Only true if system_header_p is not set
6343 (SET_CPP_PEDANTIC): New macro.
6344 * cpplib.c (do_include): Don't bother checking system_header_p.
6345 (do_warning, do_ident, do_assert, do_unassert): Likewise.
6346 * cppinit.c (cpp_handle_option): Use SET_CPP_PEDANTIC.
6348 * function.h (struct expr_status): Add x_arg_space_so_far.
6349 (arg_space_so_far): New macro.
6350 * expr.c (init_expr): Initialize it.
6351 * calls.c (emit_call_1): Reset it.
6352 (compute_argument_block_size, expand_call): Use it.
6353 (expand_call, store_one_arg): Increment it.
6355 Thu Mar 2 17:27:13 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6357 * varasm.c (output_constant): Strip off a CONVERT_EXPR to
6360 2000-03-02 Zack Weinberg <zack@wolery.cumb.org>
6362 * cppfiles.c (cpp_read_file): New function.
6364 * cpphash.c (collect_expansion): Make sure to reset last_token
6365 to NORM when we hit a string. Handle trailing whitespace
6366 properly when the expansion is empty.
6367 (create_definition): Disable line commands while parsing the
6369 (dump_definition): If pfile->lineno == 0, output a line
6370 command ahead of the dump, and add a trailing newline.
6372 * cppinit.c (append_include_chain): Add fifth argument, which
6373 indicates whether or not system headers are C++ aware.
6374 (initialize_standard_includes): New function,
6375 broken out of read_and_prescan. Pass 'cxx_aware' value from
6376 the include_defaults_array on to append_include_chain.
6377 (dump_special_to_buffer): Const-ify char array.
6378 (builtin_array): Don't dump __BASE_FILE__.
6379 (cpp_start_read): Use cpp_read_file. Reorder code for
6380 clarity. Don't output line commands here for -D/-A/-U
6381 switches. Don't call deps_output for files included with
6382 -include or -imacros.
6384 * cpplib.c (do_define): Don't pay any attention to the second
6386 (cpp_expand_to_buffer): Disable line commands while scanning.
6387 (output_line_command): Work in the file buffer.
6388 * cpplib.h: Remove no_record_file flag from struct cpp_reader.
6389 Fix formatting of comments. Prototype cpp_read_file.
6391 Thu Mar 2 13:29:46 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6393 * c-common.c (c_common_nodes_and_builtins): Make sizetype_endlink
6394 reference the language-equivalent of sizetype.
6395 * c-typeck.c (comptypes): Treat sizetype like its language equivalent.
6396 * fold-const.c (size_binop, size_diffop): Put back checks.
6397 * gcse.c (dump_hash_table): Fix minor error in last change.
6398 * stor-layout.c (set_sizetype): Set TYPE_DOMAIN of sizetype.
6399 Clear TYPE_{NEXT,MAIN}_VARIANT and TYPE_{POINTER,REFERENCE}_to of
6402 Thu Mar 2 12:48:45 MET 2000 Jan Hubicka <jh@suse.cz>
6404 * calls.c (expand_call) Do not attempt to combine stack adjustments
6405 with inhibit_defer_pop set.
6407 2000-03-01 Mark Mitchell <mark@codesourcery.com>
6409 * stor-layout.c (layout_decl): Allow front-ends to explicitly set
6410 the DECL_SIZE for a FIELD_DECL.
6412 2000-03-01 Bruce Korb <bkorb@gnu.org>
6414 * fixinc/inclhack.tpl: remove unused symlinks
6415 * fixinc/README: GCC Maintainer info
6416 * fixinc/inclhack.sh: regen
6417 * fixinc/fixincl.sh: regen
6419 2000-03-01 Zack Weinberg <zack@wolery.cumb.org>
6421 * cpphash.c (collect_expansion): Trim trailing white space
6422 from macro definitions, but don't go past the last insertion
6425 Wed Mar 1 12:14:31 MET 2000 Jan Hubicka <jh@suse.cz>
6427 * i386.md (mulqi3): New pattern.
6429 2000-02-29 Zack Weinberg <zack@wolery.cumb.org>
6431 * cpplib.h (CPP_ASSERTION, CPP_STRINGIZE, CPP_TOKPASTE): New
6433 (struct cpp_reader): Add parsing_if_directive and
6434 parsing_define_directive flags.
6435 (struct cpp_options): Remove output_conditionals flag.
6436 (check_macro_name): Delete prototype.
6438 * cpphash.h (struct macrodef): Delete.
6439 (struct reflist): Separate from struct definition.
6440 (struct definition): Remove unused fields. Add column number.
6441 (create_definition): Returns a DEFINITION *. Takes a
6442 cpp_reader * and an int.
6444 * cpphash.c (SKIP_WHITE_SPACE): Delete.
6445 (PEEKC): Copy defn from cpplib.c.
6446 (rest_extension, REST_EXTENSION_LENGTH): Delete.
6448 (struct arglist): Simplify.
6449 (collect_expansion): Rewrite. Get tokens by calling
6450 cpp_get_token. Add more error checking.
6451 (collect_formal_parameters): New function, broken out of
6452 create_definition and reworked to use get_directive_token.
6453 (create_definition): All real work is now in collect_expansion
6454 and collect_formal_parameters. do_define handles finding the
6455 macro name. Return a DEFINITION, not a MACRODEF.
6456 (macroexpand): Replace bcopy with memcpy throughout. Replace
6457 character-at-a-time copy loop with memcpy and pointer increments.
6458 (compare-defs): d1->argnames / d2->argnames might be null.
6460 * cpplib.c (copy_rest_of_line): Delete function.
6461 (skip_rest_of_line): Do all the work ourselves.
6462 (skip_string): New function.
6463 (parse_string): Use skip_string.
6464 (get_macro_name): New function.
6465 (check_macro_name): Delete.
6466 (copy_comment): Use CPP_RESERVE and CPP_PUTC_Q.
6467 (cpp_skip_hspace): Use CPP_BUMP_LINE.
6468 (handle_directive): ICE if we're called on a macro buffer.
6469 (do_define): Determine macro name and type (funlike/objlike)
6470 here. Expunge all uses of MACRODEF.
6471 (cpp_push_buffer): Set line_base to NULL.
6472 (do_undef, read_line_number): Don't worry about getting a POP token.
6473 (eval_if_expression): Set/reset parsing_if_directive around
6474 cpp_parse_expr. Don't clear only_seen_white.
6475 (skip_if_group): Remove output_conditionals logic. Use
6477 (cpp_get_token): Return ASSERTION, STRINGIZE, and TOKPASTE
6478 tokens under appropriate conditions.
6479 (cpp_unassert): Call do_unassert not do_assert. Oops.
6481 * cppexp.c (parse_defined): New function, break out of
6483 (cpp_lex): We now get CPP_ASSERTION tokens and can check them
6484 ourselves, with cpp_defined.
6485 * cppinit.c (cpp_handle_option, print_help): Delete -ifoutput.
6487 * gcc.dg/20000209-2.c: Turn off -pedantic-errors.
6488 * gcc.dg/strpaste-2.c: New.
6490 2000-02-29 Mark Mitchell <mark@codesourcery.com>
6492 * fold-const.c (size_binop): Don't asert inputs are the same and
6493 have TYPE_IS_SIZETYPE set.
6494 (size_diffop): Likewise.
6496 2000-02-29 Jason Merrill <jason@casey.cygnus.com>
6498 * dwarfout.c (output_block): Output abstract blocks even if they
6499 don't have TREE_ASM_WRITTEN set.
6501 * calls.c (emit_library_call): Check for null REG.
6503 2000-03-01 Martin von Loewis <loewis@informatik.hu-berlin.de>
6505 * c-decl.c (current_function_decl): Move to toplev.c.
6506 (init_decl_processing): Don't add current_function_decl as a ggc
6508 * dbxout.c (dbxout_symbol): Change return type to int.
6509 (dbxout_symbol_location, dbxout_syms): Likewise.
6510 (dbxout_block): Don't emit LBRAC/RBRAC pairs for blocks without
6511 any locals. Use current_function_func_begin_label if set.
6512 * dbxout.h (dbxout_symbol, dbxout_syms): Change return type.
6513 * dwarf2out.c (dwarf2out_begin_prologue): Set
6514 current_function_func_begin_label.
6515 * final.c (final_start_function): Reset it.
6516 * toplev.c (current_function_decl): Define it here.
6517 (current_function_func_begin_label): New variable.
6518 (main): Add both as ggc roots.
6519 * tree.h (current_function_func_begin_label): Declare.
6521 Tue Feb 29 14:07:04 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6523 * gcse.c: Cleanups throughout: mostly white-space, but also
6524 some minor rearrangement of code.
6526 Tue Feb 29 10:45:59 2000 Jeffrey A Law (law@cygnus.com)
6528 * calls.c (emit_library_call): Do not abort if FUNCTION_ARG
6529 returns a PARALLEL. Use emit_group_load and use_group_regs
6531 (emit_library_call_value): Similarly.
6533 * pa/t-pa: Use quadlib.c instead of quadlib.asm.
6534 * pa/quadlib.asm: Remove.
6535 * pa/quadlib.c: New file.
6537 * configure.in (hpux10, hpux11, PA32 mode): Use i128 float format.
6538 * configure: Rebuilt.
6540 2000-02-29 Philip Blundell <pb@futuretv.com>
6542 * config/arm/conix-elf.h: New file.
6543 * configure.in (arm*-*-conix*): New configuration.
6544 * configure: Regenerate.
6546 2000-02-28 Jason Merrill <jason@casey.cygnus.com>
6548 * dwarf2out.c (gen_block_die): Output abstract blocks even if they
6549 don't have TREE_ASM_WRITTEN set.
6551 Mon Feb 28 21:07:59 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6553 * Eliminate DECL_FIELD_SIZE.
6554 * builtins.c (built_in_class_names, built_in_names): New variables.
6555 * c-decl.c (finish_struct): Set specified size in DECL_SIZE.
6556 * expr.c (expand_expr, case COMPONENT_REF): Get field size from
6557 DECL_SIZE, not DECL_FIELD_SIZE.
6558 * print-tree.c (print_node): Remove code that prints extra blank
6559 lines in some cases.
6560 Properly handle inline and builtin function cases.
6561 * stor-layout.c (layout_decl): Get specified size from DEC_SIZE.
6562 * tree.h (built_in_class_named, built_in_names): New declarations.
6563 (union tree_decl): Rename internal unions to u1 and u2 and change
6564 some of their components.
6565 Add new field built_in_class.
6566 (DECL_ALIGN, DECL_INCOMING_RTL, DECL_SAVED_INSNS, DECL_FRAME_SIZE):
6567 Reflect above changes.
6568 (DECL_FUNCTION_CODE, DECL_BUILT_IN_CLASS): Likewise.
6569 (DECL_SET_FUNCTION_CODE, DECL_FIELD_SIZE): Deleted.
6570 * objc/objc-act.c (objc_copy_list): Use DECL_SIZE, not DECL_FIELD_SIZE.
6571 (encode_field_decl): Likewise; also remove obsolete test for bitfield.
6573 2000-02-28 Dmitri Makarov <dim@windriver.com>
6575 * extend.texi: Document ARM's support for long/short calls.
6577 * invoke.texi: Document ARM's -mlong-calls command line switch.
6579 * config/arm/arm-protos.h (arm_is_longcall_p): Add prototype.
6580 (arm_encode_call_attribute): Add prototype.
6581 (arm_set_default_type_attribute): Add prototype.
6582 (arm_strip_name_encoding): Add prototype.
6584 * config/arm/arm.c (arm_init_cumulative_args): replace
6585 initialisation og 'long_calls' field with initialisation of
6586 'call_cookie' field.
6587 (enum arm_pragma_enum): New enum.
6588 (arm_pragma_long_calls): New static variable.
6589 (arm_process_pragma): Also process "#pragma long_calls_off".
6590 (arm_valid_type_attribute_p): Accept short_call attribute.
6591 (arm_comp_type_attributes): Check long/short call attributes.
6592 (arm_encode_call_attribute): New function: Encode long_call
6593 or short_call attribute in function name.
6594 (arm_set_default_type_attributes): New function: Assign
6595 default attributes to newly defined type.
6596 (current_file_function_operand): New function: Return true if
6597 the symbol is a function which has already been compiled.
6598 (arm_is_longcall_p): New function: Return true if the
6599 indicated function should be called via a long call.
6600 (arm_get_strip_length): New function. Returns number of
6601 prefix characters to be stripped from a function's name.
6602 (arm_strip_name_encoding): New function. Strip prefix characters
6603 from a function's name.
6605 * config/arm/arm.h (CUMULATIVE_ARGS): Replace 'long_call' field
6607 (SHORT_CALL_FAG_CHAR): Define.
6608 (LONG_CALL_FAG_CHAR): Define.
6609 (ENCODED_SHORT_CALL_ATTR_P): Define.
6610 (ENCODED_LONG_CALL_ATTR_P): Define.
6611 (ARM_NAME_ENCODING_LENGTHS): Define.
6612 (STRIP_NAME_ENCODING): Define.
6613 (ASM_OUTPUT_LABELREF): Define, and use to strip name encoding.
6614 (ARM_ENCODE_CALL_TYPE): Define.
6615 (ENCODE_SECTION): Invoke ARM_ENCODE_CALL_TYPE.
6616 (ARM_DECLARE_FUNCTION_SIZE): Define.
6617 (SET_DEFAULT_TYPE_ATTRIBUTES): Define.
6619 * config/arm/arm.md (call): Call arm_is_longcall_p to decide
6620 if a long call is needed.
6621 (call_value): Ditto.
6622 (call_symbol): Ditto.
6624 * config/arm/elf.h (ASM_DECLARE_FUNCTION_SIZE): Add invocation of
6625 ARM_DECLARE_FUNCTION_SIZE.
6627 * config/arm/pe.h (ARM_PE_FLAG_CHAR): Define.
6628 (SUBTARGET_NAME_ENCODING_LENGTHS): Define.
6629 (ARM_STRIP_NAME_ENCODING): Undefine.
6630 (STRIP_NAME_ENCODING): Undefine.
6631 (ASM_OUTPUT_LABELREF): Use arm_strip_name_encoding.
6632 (ASM_DECLARE_FUNCTION_NAME): Ditto.
6633 (ASM_OUTPUT_COMMON): Ditto.
6634 (ASM_DECLARE_OBJECT_NAME): Ditto.
6636 * config/arm/pe.c (arm_dllexport_name_p): Check for
6638 (arm_dllimport_name_p): Ditto.
6639 (arm_mark_dllexport): Use ARM_PE_FLAG_CHAR.
6640 (arm_mark_dllimport): Ditto.
6642 Mon Feb 28 22:11:12 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
6644 * sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Define.
6646 2000-02-28 Mark Mitchell <mark@codesourcery.com>
6648 * xcoffout.c (xcoffout_begin_function): Fix typo in previous change.
6650 2000-02-28 Zack Weinberg <zack@wolery.cumb.org>
6652 * tm.texi: Document new target switch, NO_BUILTIN_WCHAR_TYPE.
6653 * cppinit.c (builtin_array): Define __WCHAR_TYPE__ only if
6654 NO_BUILTIN_WCHAR_TYPE is not defined.
6655 (CPP_WCHAR_TYPE): Delete.
6656 * cccp.c (main): Don't change wchar_type if cplusplus.
6657 (special_symbol, initialize_builtins): Honor NO_BUILTIN_WCHAR_TYPE.
6659 2000-02-28 Nick Clifton <nickc@cygnus.com>
6661 * config/arm/arm-wince-pe.h (SIZE_TYPE): Define to "unsigned long".
6663 Mon Feb 28 14:21:15 2000 Catherine Moore <clm@cygnus.com>
6665 * config/pa/som.h (MAKE_DECL_ONE_ONLY): Define.
6666 (ASM_WEAKEN_LABEL): Define.
6668 Mon Feb 28 13:07:19 MET 2000 Jan Hubicka <jh@suse.cz>
6670 * expr.c (store_constructor): Do not emit USE.
6671 * rtl.h (stupid_life_analysis): Remove.
6673 Mon Feb 28 07:03:27 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6675 * function.c (number_blocks): Reset next_block_index based on
6676 what debugging format is used, not what is defined.
6678 * lcm.c: Minor reformatting throughout.
6679 (reg_dies, reg_becomes_live): Properly handle multiple hard regs.
6681 * toplev.c (rest_of_compilation): Account for time in
6682 optimize_mode_switching.
6684 * jump.c (jump_optimize_1): Don't call delete_barrier_successors
6685 if only marking labels.
6687 Mon Feb 28 12:53:57 MET 2000 Jan Hubicka <jh@suse.cz>
6689 * calls.c (expand_call): Attempt to combine stack adjustments with
6690 pending stack adjustments.
6692 Mon Feb 28 11:34:43 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
6694 * loop.c (reg_in_basic_block_p): Don't abort when falling through
6695 to the end of the function.
6697 2000-02-27 Mark Mitchell <mark@codesourcery.com>
6699 * emit-rtl.c (remove_unncessary_notes): Remove notes for empty
6701 * final.c (next_block_index): Remove.
6702 (max_block_depth): Likewise.
6703 (pending_blocks): Likewise.
6704 (init_final): Don't initialize them.
6705 (final_start_function): Don't set next_block_index. Set up
6707 (final_scan_insn): Use BLOCK_NUMBER, not next_block_index.
6708 * function.h (number_blocks): New function.
6709 * function.c (get_block_vector): New function.
6710 (identify_blocks): Use it.
6711 (reorder_blocks): Set NOTE_BLOCK.
6712 (number_blocks): New function.
6713 * tree.def (BLOCK): Add documentation for TREE_ASM_WRITTEN flag.
6714 * tree.h (BLOCK_NUMBER): New macro.
6715 (tree_block): Add block_num field.
6716 * dbxout.c (next_block_number): Remove.
6717 (dbxout_init): Don't set it.
6718 (dbxout_block): Only output blocks that have TREE_ASM_WRITTEN
6719 set. Use BLOCK_NUMBER, rather than next_block_num, to determine
6721 * toplev.c (rest_of_compilation): Always call
6722 find_loop_tree_blocks. Fix indentation.
6723 * dwarf2out.c (next_block_number): Remove.
6724 (gen_lexical_block_die): Use BLOCK_NUMBER, not next_block_number,
6725 to determine block numbers.
6726 (gen_inlined_subroutine_die): Likewise.
6727 (gen_block_die): Only output blocks that have TREE_ASM_WRITTEN set.
6728 (decls_for_scope): Don't increment next_block_number.
6729 * dwarfout.c (next_block_number): Remove.
6730 (output_lexical_block_die): Use BLOCK_NUMBER, not next_block_number,
6731 to determine block numbers.
6732 (output_inlined_subroutine_die): Likewise.
6733 (output_block): Only output blocks that have TREE_ASM_WRITTEN set.
6734 (output_decls_for_scope): Don't increment next_block_number.
6735 * sdbout.c (next_block_number): Remove.
6736 (sdbout_block): Use BLOCK_NUMBER.
6737 (sdbout_begin_block): Simplify.
6738 * xcoffout.c (next_block_number): Remove.
6739 (xcoffout_block): Use BLOCK_NUMBER, not next_block_number.
6740 (xcoffout_begin_block): Don't set next_block_number.
6741 (xcoffout_begin_function): Likewise. Use BLOCK_NUMBER, not
6744 Sun Feb 27 16:40:33 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6746 * builtins.c (c_strlen): Use size_diffop and return ssizetype value.
6747 (expand_builtin_strcpy): Pass correct type to size_binop.
6748 (expand_builtin_strcmp): Likewise.
6749 Clean up conditional structure.
6750 * c-decl.c (init_decl_processing): Don't call set_sizetype twice.
6751 (complete_array_type): Don't use size_binop for MAXINDEX.
6752 * c-typeck.c (c_sizeof): Use size_one_node and TYPE_SIZE_UNIT.
6753 (c_sizeof_nowarn, c_size_in_bytes): Likewise.
6754 (c_alignof): Use size_one_node.
6755 (build_unary_op): Pass arg of proper type to size_binop.
6756 (really_start_incremental_init, push_init_level): Use sizetype for
6757 constructor{,_bit,_unfilled}_index.
6758 (pop_init_label, output_init_element): Likewise.
6759 (output_pending_init_elements, process_init_element): Likewise.
6760 * calls.c (compute_argument_block_size): Field VAR is ssizetype.
6761 * expr.c (store_expr): Use size_int.
6762 (store_constructor): Use proper types for size_binop args.
6763 (get_inner_reference, expand_expr, case ARRAY_REF): Likewise.
6764 (expand_expr_unaligned): Likewise.
6765 (string_contant): Return object of sizetype.
6766 * expr.h (SUB_PARM_SIZE): Call size_diffop and pass proper types.
6767 (ARGS_SIZE_RTX): Call ARGS_SIZE_TREE.
6768 (ARGS_SIZE_TREE): Pass proper types to size_binop.
6769 * fold-const.c (int_const_binop): Refine when size_int is called.
6770 (fold_convert): Likewise.
6771 (size_int_wide): Rework to take KIND as arg, only take low order
6772 bits, handle new sizetype_tab datatype, and chain entries in
6774 (size_int_type_wide): New function.
6775 (size_binop): Validate types of arguments.
6776 (ssize_binop): Deleted.
6777 (size_diffop): New function.
6778 (extract_muldiv): Only fold division into multiplication for sizetypes.
6779 * function.c (assign_parms): Use size_diffop and make sure
6780 VAR field is of ssizetype; also pass proper type to size_binop.
6781 (locate_and_pad_parm, pad_to_arg_alignment): Likewise.
6782 (round_down): Deleted from here.
6783 * store-layout.c (sizetype_tab): Now an array.
6784 (sizetype_set, early_root_list): New variables.
6785 (variable_size): Use size_one_node.
6786 (round_up): Pass proper type to size_binop.
6787 (round_down): Moved to here and corrected as above.
6788 (layout_record): Pass proper arg types to size_binop.
6789 (layout_type): Likewise.
6790 If sizetype_set is zero, record the type just laid out.
6791 (make_unsigned_type): Don't call set_sizetype;
6792 (make_signed_type): Likewise; also, call fixup_signed_type.
6793 (initialize_sizetypes): New function.
6794 (set_sizetype): Make copy of types, set TYPE_IS_SIZETYPE, and
6795 set name of bitsizetype to "bit_size_type".
6796 Fix up type of sizes of all types made before call.
6797 * tm.texi (ROUND_TYPE_SIZE_UNIT): New macro.
6798 * tree.c (fix_sizetype): Deleted.
6799 (build_common_tree_nodes): Call initialize_sizetypes.
6800 (build_common_tree_nodes_2): Don't call fix_sizetype.
6801 * tree.h (TYPE_IS_SIZETYPE): New macro.
6802 (initialize_sizetype): New declaration.
6803 (enum size_type_kind): New type.
6804 (struct sizetype_tab): Deleted.
6805 (sizetype_tab): Now array; adjust sizetype macros.
6806 (size_diffop, size_int_type_wide): New functions.
6807 (size_int_wide): Change number of args and type; access macros changed.
6808 (ssize_int, sbitsize_int): New macros.
6809 * config/i960/i960.h (ROUND_TYPE_SIZE): Use size_int.
6810 (ROUND_TYPE_SIZE_UNIT): New macro.
6812 2000-02-27 Zack Weinberg <zack@wolery.cumb.org>
6814 * c-lex.c (putback_buffer): Make 'buffer' an unsigned char *.
6816 Sun Feb 27 07:44:17 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6818 * gcov-io.h (__fetch_long, __store_long, __read_long, __write_long):
6819 Mark as possibly unused.
6821 * cse.c (cse_insn): Delete dead code involving tablejump.
6822 Pass CODE_LABEL, not LABEL_REF to gen_jump and reset INSN_CODE.
6824 * Makefile.in (libcpp.a): Start by deleting it.
6826 2000-02-27 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
6828 * cpplib.h (enum file_change_code): Added rename_file.
6829 * cpplib.c (do_line): If a filename is given, set file_change to
6831 (output_line_command): If file_change is rename_file, always
6832 output a # directive with the file name.
6834 * cpplib.c (do_pragma): Accept #pragma without consecutive token.
6836 2000-02-26 Mark Mitchell <mark@codesourcery.com>
6838 * integrate.c (copy_decl_for_inlining): Preserve TREE_ADDRESSABLE
6839 when copying a PARM_DECL or RESULT_DECL.
6841 2000-02-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6843 * fix-header.c (recognized_function): Also fix prototypes for
6844 functions taking "void".
6846 2000-02-26 Geoff Keating <geoffk@cygnus.com>
6848 * reload1.c (do_output_reload): Check reg_reloaded_valid before
6849 looking at reg_reloaded_contents.
6851 2000-02-26 Zack Weinberg <zack@wolery.cumb.org>
6853 * Makefile.in (STMP_FIXINC): New toggle.
6854 (LIBGCC2_DEPS): Delete all references.
6855 (stmp-headers): Delete target. All references either deleted
6856 or changed to stmp-int-headers.
6857 (all.cross): Don't depend on stmp-headers or STMP_FIXPROTO.
6858 (LIBCPP_OBJS): Take out cppalloc.o.
6859 (cppalloc.o): Delete target.
6860 (stmp-int-hdrs): Depend on $(STMP_FIXINC).
6861 (gen-protos, fix-header): Link with libiberty.a.
6862 * build-make: Don't change FIXINCLUDES. Override STMP_FIXINC
6865 * configure.in: Remove refs to strerror.
6866 * acconfig.h: Take out NEED_DECLARATION_STRERROR.
6867 * system.h: Take out strerror stanza.
6869 * cpperror.c (my_strerror): Delete function.
6870 (cpp_error_from_errno, cpp_notice_from_errno): Use xstrerror.
6871 * cppmain.c (main): Call xmalloc_set_program_name first thing.
6872 * cppalloc.c: Delete file.
6873 * gen-protos.c: Don't provide xrealloc.
6875 * fixinc/fixincl.c, fixinc/fixlib.c, fixinc/procopen.c: Use
6876 xstrerror throughout.
6878 2000-02-26 Bruce Korb <bkorb@gnu.org>
6880 * fixinc/inclhack.def (undefine_null): the bypass pattern needs to
6881 match for DOS headers, too.
6882 * fixinc/inclhack.sh,fixincl.x: Regenerate.
6884 2000-02-26 Geoff Keating <geoffk@cygnus.com>
6886 * config/elfos.h (ASM_OUTPUT_LABELREF): Don't define. The default
6887 is right for most ELF targets.
6888 * config/ns32k/ns32k.h (ASM_OUTPUT_LABELREF): Don't define.
6889 Let the default file use %U properly.
6890 * config/sh/elf.h (ASM_OUTPUT_LABELREF): Don't define. Use the
6893 * config/fp-bit.c (pack_d): Properly handle rounding of denormal
6896 Sat Feb 26 09:39:16 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6898 * toplev.c (documented_lang_options): Correct spelling error.
6899 (decode_d_option, decode_f_option, main): Likewise.
6901 * toplev.c (print_time): Avoid SIGFPE when all_time is zero.
6903 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): Use .set at
6904 to tell assembler it is permitted to expand large constants.
6906 2000-02-25 Mumit Khan <khan@xraylith.wisc.edu>
6908 * protoize.c: (AUX_INFO_SUFFIX): New macro.
6909 (aux_info_suffix): Use.
6910 (SAVE_SUFFIX): New macro.
6912 (munge_compile_parms): Fix typo in NUL. DJGPP supports /dev/null.
6913 (gen_aux_info_file): Use aux_info_suffix instead of ".X".
6914 (edit_file): Handle 8.3 restriction for DOS/DJGPP filenames.
6916 * invoke.texi (Running Protoize): Update documentation.
6918 2000-02-25 Mark Elbrecht <snowball3@bigfoot.com>
6920 * i386/djgpp.h (CPP_PREDEFINES): Remove Unix defines.
6922 2000-02-25 John Wehle (john@feith.com)
6924 * rtlanal.c (find_last_value): Allow NULL_RTX for valid_to.
6926 2000-02-25 Anthony Green <green@cygnus.com>
6928 * toplev.c (rest_of_compilation): Rebuild jump labels if
6929 combine_instructions has created a new direct jump.
6930 * combine.c (try_combine): Add new_direct_jump_p argument. Set it
6932 (combine_instructions): Call try_combine with new argument.
6933 Return non-null value when new direct jump instruction is created.
6934 * rtl.h: combine_instructions returns an int.
6936 Fri Feb 25 19:49:08 2000 Jeffrey A Law (law@cygnus.com)
6938 * cse.c (cse_insn): Replace the PATTERN of the insn with an new
6939 jump when changing a computed jump into a jump to a known
6942 Fri Feb 25 19:22:44 2000 Graham Stott <grahams@rcp.co.uk>
6944 * resource.c (mark_referenced_resources): Changed use SET_DEST (...)
6945 to XEXP (..., 0) on RTL nodes which are not SET or CLOBBER.
6947 * i386.md (define_expand "clrstrsi"): Fix typo.
6949 Fri Feb 25 18:49:39 2000 "K. Richard Pixley" <rich@microunity.com>
6951 * rtl.texi: Fix typo.
6953 Fri Feb 25 20:02:35 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
6955 * sh.c (calc_live_regs): Multiply value assigned to *COUNT_PTR by
6956 UNITS_PER_WORD. Change caller initial_elimination_offset.
6957 (rounded_frame_size): Take into account that argument pushed has
6958 changed. Fix TARGET_ALIGN_DOUBLE problem.
6960 2000-02-25 Geoff Keating <geoffk@cygnus.com>
6962 * haifa-sched.c (schedule_block): Explain the real reason
6963 we delete REG_SAVE_NOTEs on the first insn of a block.
6964 Don't delete REG_SAVE_NOTES for NOTE_INSN_SETJMP.
6966 2000-02-24 Mark Mitchell <mark@codesourcery.com>
6968 * input.h (push_srcloc): New function.
6969 (pop_srcloc): Likewise.
6970 * toplev.c (push_srcloc): Define it.
6971 (pop_srcloc): Likewise.
6973 2000-02-24 Richard Henderson <rth@cygnus.com>
6975 * flow.c (life_analysis): When collecting reg info, clear
6978 Thu Feb 24 22:06:52 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
6980 Fix bug exposed by reload.c no longer rounding the frame
6981 size to BIGGEST_ALIGNMENT:
6982 * sh.c (rounded_frame_size): New function.
6983 (sh_expand_prologue, sh_expand_epilogue): Use it.
6984 (initial_elimination_offset): Likewise.
6986 Thu Feb 24 20:04:11 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
6988 Fix breakage from 6th Feb thread_prologue_and_epilogue_insns change:
6989 * sh-protos.h (sh_need_epilogue): Declare.
6990 * sh.c (sh_need_epilogue_known): New static variable.
6991 (sh_need_epilogue): New function.
6992 (function_epilogue): Clear need_epilogue_known.
6993 * sh.md (return): Split into expander / insn pattern.
6994 Make the expander conditional on ! sh_need_epilogue ().
6996 2000-02-24 Nathan Sidwell <nathan@codesourcery.com>
6998 * machmode.h (get_mode_alignment): Declare.
6999 (GET_MODE_ALIGNMENT): Call it.
7000 * stor-layout.c (get_mode_alignment): New function. Make
7001 sure alignment is always power of 2.
7003 2000-02-23 Zack Weinberg <zack@wolery.cumb.org>
7005 * i386.h: Remove useless definition of "I386" and misleading
7008 2000-02-23 Zack Weinberg <zack@wolery.cumb.org>
7010 * tree.h (TREE_SET_PERMANENT): New macro. Document conditions
7011 under which TREE_PERMANENT will be set.
7012 * tree.c (make_node, copy_node, make_tree_vec, tree_cons,
7013 build1): Use TREE_SET_PERMANENT.
7014 * print-tree.c (print_node): Don't report value of
7015 TREE_PERMANENT if ggc_p is true.
7017 * c-common.c (c_get_alias_set): Don't use TREE_PERMANENT to
7018 decide whether to give a type a new alias set.
7019 * objc/objc-act.c (build_objc_string_object): Never copy the string.
7020 * tree.c (make_node): Set DECL_IN_SYSTEM_HEADER irrespective
7021 of value of 'obstack'.
7024 2000-02-24 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
7026 * config/c4x/c4x.c (c4x_process_after_reload): Split all insns.
7028 2000-02-23 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
7030 * cpplib.h (enum cpp_token): Added CPP_WCHAR and CPP_WSTRING.
7031 * cpplib.c (cpp_get_token): Produce them.
7032 * cppexp.c (cpp_lex): Handle them.
7034 2000-02-23 Nick Clifton <nickc@cygnus.com>
7036 * config/arm/arm.c (arm_comp_type_attributes): Simply and
7037 comment tests on type attributes.
7039 Wed Feb 23 16:42:21 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
7041 * final.c (shorten_branches): Make value passed to LOOP_ALIGN
7042 conform to documentation.
7043 * sh.h (LOOP_ALIGN): If aligning loops, call sh_loop_align
7044 to check for special cases.
7045 * sh-protos.h (sh_loop_align): Declare.
7046 * sh.c (sh_loop_align): Define.
7048 2000-02-22 Andrew Haley <aph@cygnus.com>
7050 * config/mips/mips.h (GAS_ASM_SPEC): Pass -mgp32/-mgp64 to gas.
7051 (SIZE_TYPE): Is 32 bits when using -mgp32.
7052 (PTRDIFF_TYPE): Ditto.
7054 Wed Feb 23 07:26:27 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7056 * diagnostic.c (init_output_buffer): Handle case of null PREFIX.
7058 2000-02-23 Zack Weinberg <zack@wolery.cumb.org>
7060 * config/i386/i386.h: If IN_TARGET_LIBS is defined, make
7061 BIGGEST_FIELD_ALIGNMENT a constant.
7063 2000-02-21 Jason Merrill <jason@casey.cygnus.com>
7065 * dwarf2out.c (output_line_info): Put the marker for the end of
7066 the line number info at the actual end.
7067 (gen_struct_or_union_type_die): Use decl_function_context
7068 to check for local classes.
7069 * dwarfout.c (output_type): Likewise.
7071 Tue Feb 22 01:38:57 2000 Jeffrey A Law (law@cygnus.com)
7073 * pa.h (FUNCTION_ARG_PASS_BY_REFERENCE): Handle pass-by-reference
7074 for arguments with a mode, but no type.
7075 (FUNCTION_ARG_CALLEE_COPIES): Similarly.
7076 * t-pa (LIB2FUNCS_EXTRA): Add quadlib.asm.
7077 * pa/long_double.h: New file.
7078 * configure.in (hpux10, hpux11 configurations): hpux10 and hpux11
7079 both have 128bit wide long doubles.
7080 * configure: Rebuilt.
7082 2000-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7084 * defaults.h (ASM_OUTPUT_ASCII): Constify a char*.
7086 * flow.c (get_common_dest, chain_reorder_blocks, make_reorder_chain,
7087 fixup_reorder_chain, skip_insns_between_block): Add static prototypes.
7088 (life_analysis): Wrap variable `i' with macro ELIMINABLE_REGS.
7090 * haifa-sched.c (rank_for_schedule): Don't cast away const-ness.
7092 * integrate.c (compare_blocks, find_block): Likewise.
7094 * rtl.c (fatal_with_file_and_line): Add ATTRIBUTE_PRINTF_2.
7096 * rtl.h (set_file_and_line_for_stmt): Constify a char*.
7098 * stmt.c (stmt_status, set_file_and_line_for_stmt,
7099 expand_asm_operands): Likewise.
7101 Mon Feb 21 17:06:27 2000 Jason Eckhardt <jle@cygnus.com>
7103 * predict.c (estimate_probability): Added the pointer heuristic to
7104 the collection of static branch predictors.
7106 2000-02-21 Catherine Moore <clm@cygnus.com>
7108 * config/mips/mips.h (ASM_SPEC): Add -mfix700.
7109 * invoke.texi (-mfix7000): Document.
7111 2000-02-21 Gabriel Dos Reis <gdr@codesourcery.com>
7113 * diagnostic.c (init_output_buffer): Make it possible to output at
7114 least 32 characters if we're given a too long prefix.
7116 2000-02-20 Mark Mitchell <mark@codesourcery.com>
7118 * varasm.c (initializer_constant_valid_p): Call
7119 lang_expand_constant to simplify the constant.
7121 2000-02-20 Bruce Korb <bkorb@gnu.org>
7123 * fixinc/inclhack.def(stdio_va_list):
7124 typedef needs to be disabled.
7125 * fixinc/inclhack.sh: regen
7126 * fixinc/fixincl.x: regen
7128 2000-02-20 Geoff Keating <geoffk@cygnus.com>
7130 * print-rtl.c (print_rtx): Don't print addresses when
7131 flag_dump_unnumbered.
7133 2000-02-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7135 * sparc.c (sparc_output_scratch_registers): Mark parameter with
7137 (sparc_va_arg, sparc_flat_output_function_prologue,
7138 sparc_flat_output_function_epilogue): Cast value to unsigned in
7140 (sparc_emit_float_lib_cmp): Remove unused variable `cmp'.
7142 * sparc.md: Add default case in switch.
7144 2000-02-19 Richard Henderson <rth@cygnus.com>
7146 * c-typeck.c (add_pending_init): Don't abort for multiple
7147 fields at the same offset.
7148 (pending_init_member): Test the correct member.
7150 2000-02-19 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
7152 * except.c (start_dynamic_handler) : Use TYPE_MODE (integer_type_node)
7154 (start_catch_handler) : Same.
7156 2000-02-19 Brad Lucier (lucier@math.purdue.edu)
7158 * Makefile.in: Have flow.o depend on $(EXPR_H)
7160 Sat Feb 19 18:43:13 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7162 * c-common.c (decl_attributes): Set DECL_SIZE_UNIT.
7163 * c-decl.c (duplicate_decls, finish_enum): Likewise.
7164 (finish_decl): Remove -Wlarger-than code from here.
7165 * flags.h (id_clash_len): Now int.
7166 (larger_than_size): Now HOST_WIDE_INT.
7167 * fold-const.c (size_int_wide): No more HIGH parm; NUMBER is signed.
7168 Clean up checking to see if in table.
7169 (make_bit_field_ref): Remove extra parm to bitsize_int.
7170 * ggc-common.c (ggc_mark_tree_children): Mark DECL_SIZE_UNIT.
7171 * print-tree.c (print_node): Print DECL_SIZE_UNIT and TYPE_SIZE_UNIT.
7172 * stmt.c (expand_decl): Use DECL_SIZE_UNIT for stack checking size
7173 and for computing size of decl.
7174 * stor-layout.c (layout_decl): Set DECL_SIZE_UNIT.
7175 Move -Wlarger-than code to here.
7176 (layout_record): Remove extra arg to bitsize_int.
7177 Set TYPE_BINFO_SIZE_UNIT.
7178 (layout_union): Remove extra arg to bitsize_int.
7179 Use proper type for size of QUAL_UNION.
7180 (layout_type): Remove extra arg to bitsize_int.
7181 * toplev.c (id_clash_len): Now int.
7182 (larger_than_size): Now HOST_WIDE_INT.
7183 (decode_W_option): Clean up id-clash and larger-than- cases.
7184 * tree.c (get_identifier, maybe_get_identifier): Remove unneeded casts.
7185 (expr_align, case FUNCTION_DECL): DECL_ALIGN is not defined.
7186 * tree.h (BINFO_SIZE_UNIT, TYPE_BINFO_SIZE_UNIT, DECL_SIZE_UNIT): New.
7187 (struct tree_decl): New field size_unit.
7188 (size_int_wide): No HIGH operand; NUMBER is now signed.
7189 (size_int_2): Deleted.
7190 (size_int, bitsize_int): Don't use it and rework args.
7191 * varasm.c (assemble_variable, output_constructor): Use DECL_SIZE_UNIT.
7193 Fri Feb 18 20:01:58 2000 Jeffrey A Law (law@cygnus.com)
7195 * pa/quadlib.asm (_U_QFgt, _U_Qfge): Fix flags for _U_Qfcmp call.
7197 2000-02-18 Geoff Keating <geoffk@cygnus.com>
7199 * invoke.texi (Warning Options): Add an explanation of why
7200 you might want the -Wfloat-equal flag.
7202 Fri Feb 18 20:08:57 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7204 * bitmap.c (bitmap_operation): Avoid using -1 for index since unsigned.
7205 * cppinit.c (new_pending_define): Add cast to avoid warning.
7206 * expmed.c (extract_bit_field): Likewise.
7207 * flow.c (enum reorder_skip_type): New type.
7208 (skip_insns_between_blcok): New it.
7209 Rework to avoid warning about possibly undefined variable.
7210 * function.c (assign_parms): Make thisparm_boundary unsigned.
7211 * genrecog.c (write_switch): Cast XWINT result to int.
7212 * lcm.c: Many static fcns and vars now #ifdef OPTIMIZE_MODE_SWITCHING.
7213 * mips-tfile.c (init_file): Make two versions of FDR intializer:
7214 one for MIPS and one for Alpha.
7215 (get_tag, copy_object): Add casts to avoid warnings.
7216 * optabs.c (init_one_libfunc): Cast NAME to (char *).
7217 * reload.c (find_reloads): Make TYPE enum reload_type.
7218 * sbitmap.c (dump_sbitmap): J is unsigned; don't use "1L".
7219 * unroll.c (unroll_loop): Initialize UNROLL_NUMBER.
7220 * varasm.c (compare_constant_1): Add cast to avoid warning.
7221 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Cast FUNC
7223 (alpha_expand_unaligned_load, alpha_expand_unaligned_store):
7224 Cast switch operand of size to int.
7225 (alpha_expand_epilogue): Always initialize fp_offset and sa_reg.
7226 * config/alpha/alpha.h (INITIAL_ELIMINATION_OFFSET): Add abort
7229 2000-02-18 Nick Clifton <nickc@cygnus.com>
7231 * config/arm/elf.h (ASM_OUTPUT_ALIGN): Do not generate
7232 anything for an alignment of zero.
7234 * config/arm/thumb.h (ASM_OUTPUT_ALIGN): Do not generate
7235 anything for an alignment of zero.
7237 2000-02-18 Martin von Loewis <loewis@informatik.hu-berlin.de>
7239 * gcc.texi (Bug Reporting): Refer to bugs.html.
7240 (Bug Lists): Likewise.
7241 * system.h (GCCBUGURL): New preprocessor define.
7242 * rtl.c (fancy_abort): Use it.
7243 * gcc.c (main): Likewise.
7245 2000-02-18 Richard Henderson <rth@cygnus.com>
7247 * flow.c (INSN_VOLATILE, SET_INSN_VOLATILE, uid_volatile): Remove.
7248 (life_analysis_1): Subsume into ...
7249 (life_analysis): ... here. Force PROP_REG_INFO off after reload.
7250 Use update_life_info for the relaxation.
7251 (update_life_info): Update REG_BASIC_BLOCK for registers live on
7252 entry and regs_live_at_setjmp.
7253 (set_noop_p): Simplify.
7254 (notice_stack_pointer_modification_1): Renamed from s/_1//.
7255 (record_volatile_insns): Split into ...
7256 (delete_noop_moves): ... here,
7257 (notice_stack_pointer_modification): ... here,
7258 (insn_dead_p): ... and here.
7259 (propagate_block): Don't query INSN_VOLATILE.
7260 (mark_used_regs): Mind !PROP_REG_INFO.
7261 * toplev.c (rest_of_compilation): Call mark_constant_function here,
7262 not in life_analysis.
7264 Fri Feb 18 01:29:22 EST 2000 John Wehle (john@feith.com)
7266 * loop.c (canonicalize_condition): New function,
7267 broken out of get_condition.
7268 (get_condition): Use it.
7269 * expr.h (canonicalize_condition): Prototype it.
7271 * tree.h (tree_int_cst_msb): Declare.
7272 * tree.c (tree_int_cst_msb): New function.
7274 2000-02-17 Mark Mitchell <mark@codesourcery.com>
7276 * stmt.c (set_file_and_line_for_stmt): Don't crash if cfun->stmt
7279 * invoke.texi (-fmessage-length=n): Document.
7281 2000-02-17 Jason Merrill <jason@casey.cygnus.com>
7283 * bitmap.c (bitmap_operation): Don't leak bitmap elements.
7285 2000-02-17 Mark Mitchell <mark@codesourcery.com>
7287 * function.c (thread_prologue_and_epilogue_insns): Put a line note
7290 2000-02-17 Nick Clifton <nickc@cygnus.com>
7292 * config/arm/thumb.c: Replace includes of system headers with
7293 #include "system.h".
7295 2000-02-16 Richard Henderson <rth@cygnus.com>
7297 * configure.in (alpha-linux*, alpha-netbsd) [extra_parts]:
7298 Add crtbeginS.o and crtendS.o.
7299 * alpha/elf.h (STARTFILE_SPEC): Use crtbeginS.o.
7300 (ENDFILE_SPEC): Use crtendS.o.
7301 * alpha/t-crtbe (crtbeginS.o, crtendS.o): New targets.
7303 * alpha/crtbegin.asm (__do_frame_takedown): Merge into ...
7304 (__do_global_dtors_aux): ... here. Call __cxa_finalize if
7306 (__dso_handle): New variable.
7307 * alpha/crtend.asm (__do_global_ctors_aux): Remove runtime
7308 bias to __CTOR_END__.
7310 2000-02-16 Richard Henderson <rth@cygnus.com>
7312 * Makefile.in (s-crtS, crtbeginS, crtendS): Prefix usage with $(T).
7314 Wed Feb 16 21:40:04 2000 Hans-Peter Nilsson <hp@bitrange.com>
7316 * longlong.h (__clz_tab): Declare as static to match definition.
7318 2000-02-16 Mark Elbrecht <snowball3@bigfoot.com>
7319 * i386/xm-djgpp.h (LIBSTDCXX): Delete. Moved to config/i386/djgpp.h.
7320 (XREF_FILE_NAME): Define.
7322 * i386/djgpp.h (DATA_SECTION_ASM_OP): Define.
7323 (EH_FRAME_SECTION_ASM_OP): Define.
7324 (IDENT_ASM_OP): Define.
7325 (TEXT_SECTION_ASM_OP): Define.
7327 (CTORS_SECTION_ASM_OP): Define.
7328 (CTOR_SECTION_FUNCTION): Use it.
7329 (DTORS_SECTION_ASM_OP): Define.
7330 (DTOR_SECTION_FUNCTION): Use it.
7332 2000-02-16 Zack Weinberg <zack@wolery.cumb.org>
7334 * reg-stack.c (emit_swap_insn): Do not put a new insn before a
7337 * flow.c (dump_regset, debug_regset, dump_bb, debug_bb,
7338 debug_bb_n): New functions.
7339 (dump_flow_info, print_rtl_with_bb): Use dump_regset.
7340 * basic-block.h: Prototype new functions.
7342 Wed Feb 16 21:07:53 2000 Denis Chertykov <denisc@overta.ru>
7344 * configure.in: Add support for avr target.
7345 * configure: Rebuilt.
7347 * invoke.texi: Add AVR invocation docs.
7348 * install.texi: Add information about AVR.
7349 * md.texi: Add AVR constraint letters description.
7350 * extend.texi: Add description for AVR specific attributes.
7352 2000-02-16 Jason Merrill <jason@casey.cygnus.com>
7354 * fixinc/fixinc.svr4: Wrap byteorder.h with extern "C".
7356 2000-02-16 Nick Clifton <nickc@cygnus.com>
7358 * emit-rtl.c (emit_insn): Move RTL check into make_insn_raw.
7359 (make_insn_raw): Move RTL check here.
7361 2000-02-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7363 * version.c: Include gansidecl.h and version.h.
7365 * version.h: Wrap entire file in macro __GCC_VERSION_H__.
7367 * configure.in (gcc_version): When setting, narrow search to
7368 lines containing `version_string'.
7370 * Makefile.in (mainversion): Likewise.
7371 (GCC_H): New variable.
7372 (gcc.h): Delete target.
7373 (gcc.o, gccspec.o, cppspec.o): Depend on $(GCC_H), not gcc.h.
7374 (version.o): Depend on version.h.
7375 (dbxout.o): Don't depend on gcc.h.
7377 Wed Feb 16 15:04:49 2000 Hans-Peter Nilsson <hp@bitrange.com>
7378 Michael Meissner <meissner@cygnus.com>
7380 * md.texi (Simple Constraints): Add item about whitespace.
7381 * genoutput.c (strip_whitespace): New.
7382 (scan_operands) [MATCH_OPERAND, MATCH_SCRATCH]: Call
7383 strip_whitespace for constraints.
7384 Test pointer using NULL, not 0.
7386 2000-02-16 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
7388 * cpplib.c (do_line): Pedwarn for #line > 32767.
7390 * c-lex.c (readescape): Warn about '\x', but do not reject it.
7392 2000-02-15 Jonathan Larmour <jlarmour@redhat.co.uk>
7394 * gcc.c (default_compilers): Add new __GNUC_PATCHLEVEL__ define
7395 to default cpp spec.
7396 (do_spec_1): Add support for %v3 spec used by __GNUC_PATCHLEVEL__.
7397 * cpp.texi: Document __GNUC_PATCHLEVEL__.
7400 * objc/lang-specs.h: Add new __GNUC_PATCHLEVEL__ define to
7403 2000-02-15 Denis Chertykov <denisc@overta.ru>
7405 * configure.in: Add support for avr target.
7407 Wed Feb 16 03:21:43 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
7409 * sh.h (OVERRIDE_OPTIONS): Don't set sh_addr_diff_vec_mode.
7410 (sh_addr_diff_vec_mode): Don't declare.
7411 * sh.c (sh_addr_diff_vec_mode): Delete.
7413 Wed Feb 16 01:27:52 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
7415 * sh.md (mulsi3_highpart): Add REG_EQUAL note to last insn.
7417 Wed Feb 16 00:58:06 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
7419 * sh.md (udivsi3_i1, divsi3_i1, umulhisi3_i, mulhisi3_i): Name.
7420 (smulsi3_highpart_i): Name.
7421 (udivsi3): Wrap emitted insns in REG_LIBCALL / REG_RETVAL notes.
7422 (divsi3, mulhisi3, umulhisi3, mulsidi3, umulsidi3): Likewise.
7423 (smulsi3_highpart, umulsi3_highpart): Likewise.
7425 (mulsidi3_i, umulsidi3_i): Make rtl describe operation
7426 correctly independent of endianness.
7427 (mulsidi3, umulsidi3): Now define_insn. Hide details that
7428 confuse the optimizers.
7429 (mulsidi3+1, umulsidi3+1): New define_split.
7431 Tue Feb 15 23:22:26 2000 Andrew Haley <aph@cygnus.com>
7433 * config/sh/sh.md: Guard insn splits against illegal registers.
7434 * config/sh/sh.h: Correct comment about macros.
7436 Tue Feb 15 22:30:36 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
7437 Andrew MacLeod <amacleod@cygnus.com>
7439 * Makefile.in (lcm.o): Depend on insn-attr.h.
7440 * basic-block.h (optimize_mode_switching): Declare.
7441 * lcm.c (tm_p.h, insn-attr.h): #include.
7442 (seginfo, bb_info): New structs.
7443 (antic, transp, comp, delete, insert) : New file-scope static variables.
7444 (new_seginfo, add_seginfo, make_preds_opaque, reg_dies): New functions.
7445 (reg_becomes_live, optimize_mode_switching): Likewise.
7446 * tm.texi: Add description of mode switching macros.
7447 * toplev.c (rest_of_compilation): Call optimize_mode_switching.
7449 * sh-protos.h (remove_dead_before_cse): Remove prototype.
7450 (fldi_ok, fpscr_set_from_mem): New prototypes.
7451 * sh.h (OPTIMIZATION_OPTION): Remove sh_flag_remove_dead_before_cse set.
7452 (CONST_DOUBLE_OK_FOR_LETTER_P, SECONDARY_INPUT_RELOAD_CLASS):
7453 Disable fldi for (TARGET_SH4 && ! TARGET_FMOVD).
7454 (sh_flag_remove_dead_before_cse): Remove declaration.
7455 (NUM_MODES_FOR_MODE_SWITCHING, OPTIMIZE_MODE_SWITCHING): New macros.
7456 (MODE_USES_IN_EXIT_BLOCK, MODE_NEEDED, MODE_AT_ENTRY): Likewise.
7457 (MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
7458 * sh.c (broken_move): Disable fldi for (TARGET_SH4 && ! TARGET_FMOVD).
7459 (barrier_align): Allow for JUMP_INSNS containing a parallel.
7460 (machine_dependent_reorg): Remove sh_flag_remove_dead_before_cse set.
7461 (fldi_ok): New function.
7462 (get_fpscr_rtx): Add fpscr_rtx as GC root.
7463 (emit_sf_insn): Only generate fpu switches when optimize < 1.
7464 (emit_df_insn): Likewise.
7465 (expand_fp_branch, emit_fpscr_use, remove_dead_before_cse): Delete.
7466 (sh_flag_remove_dead_before_cse): Delete.
7467 (get_free_reg, fpscr_set_from_mem): New functions.
7468 * sh.md (movdf, movsf): Remove no_new_pseudos code.
7469 (return): Remove emit_fpscr_use / remove_dead_before_cse calls.
7471 2000-02-15 Loren Rittle <ljrittle@acm.org>
7473 * ginclude/stddef.h: Correct usage of _BSD_RUNE_T_ for FreeBSD.
7475 2000-02-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7477 * Makefile.in (TREE_H, collect2.o, gcc.h, mips-tfile.o, cccp.o,
7478 cpphash.o, cppinit.o, protoize.o, unprotoize.o): Depend on version.h.
7480 * cccp.c: Include version.h and/or don't declare `version_string'.
7481 * collect2.c: Likewise.
7482 * alpha.c: Likewise.
7483 * arm/aof.h: Likewise.
7484 * arm/coff.h: Likewise.
7485 * arm/elf.h: Likewise.
7486 * arm/pe.h: Likewise.
7487 * arm/tcoff.h: Likewise.
7488 * arm/telf.h: Likewise.
7489 * arm/tpe.h: Likewise.
7490 * arm/vxarm.h: Likewise.
7491 * convex/convex.c: Likewise.
7492 * i386/dgux.c: Likewise.
7493 * i386/sun386.h: Likewise.
7494 * m88k/m88k.c: Likewise.
7495 * mcore/mcore-pe.h: Likewise.
7496 * mips/mips.h: Likewise.
7497 * romp/romp.h: Likewise.
7498 * sh/sh.c: Likewise.
7499 * cpphash.c: Likewise.
7500 * cppinit.c: Likewise.
7501 * dwarf2out.c: Likewise.
7502 * dwarfout.c: Likewise.
7505 * mips-tfile.c: Likewise.
7506 * protoize.c: Likewise.
7507 * toplev.c: Likewise.
7510 * version.c (version_string): Constify a char*.
7512 * version.h: New file.
7514 2000-02-14 Nick Clifton <nickc@cygnus.com>
7516 * configure.in: Add mcore-elf and mcore-pe targets.
7517 * configure: Regenerate.
7519 * NEWS: Add note that MCore port has been contributed.
7521 * invoke.texi: Document command line switches for MCore port.
7522 * install.texi: Add MCore to list of supported targets.
7524 2000-02-14 Geoff Keating <geoffk@cygnus.com>
7526 * collect2.c (main) [COLLECT_EXPORT_LIST]: If we have frames,
7527 then we will need to import the frame handling functions.
7528 (scan_prog_file) [COLLECT_EXPORT_LIST]: We will also need
7529 to import the frames themselves.
7531 Mon Feb 14 13:31:01 2000 Stan Cox <scox@cygnus.com>
7532 Jason Eckhardt <jle@cygnus.com>
7534 * basic_block.h: Added prototype for reorder_basic_blocks.
7535 * toplev.c: Changes to add -freorder-blocks and graph dump after
7536 block reordering is done.
7537 * flow.c (reorder_block_def): New structure for use during block
7539 (REORDER_BLOCK_*): New macros to access members of above structure.
7540 (skip_insns_between_block, get_common_dest, chain_reorder_blocks,
7541 make_reorder_chain, fixup_reorder_chain, reorder_basic_blocks): New
7542 functions for block reordering.
7544 Mon Feb 14 11:24:44 2000 Hans-Peter Nilsson <hp@bitrange.com>
7546 * gcc.texi (Passes): Fix typo.
7547 * md.texi (Standard Names): Ditto.
7548 * tm.texi (Storage Layout): Ditto.
7550 2000-02-13 Zack Weinberg <zack@wolery.cumb.org>
7552 * cpplib.c (do_define): Only free the old definition if it
7555 2000-02-13 Neil Booth <NeilB@earthling.net>
7557 * cppfiles.c (read_and_prescan): When emitting deferred
7558 newlines, test speccase[] again instead of checking each
7559 possible whitespace character in turn. When we encounter \r,
7560 look behind for \n first, then ahead.
7562 2000-02-13 Zack Weinberg <zack@wolery.cumb.org>
7564 * cse.c (cse_altered): New internal flag.
7565 (cse_insn): Set it if we changed an insn.
7566 (cse_main): Clear cse_altered before each basic block.
7567 Only garbage collect if cse_altered is true afterward.
7569 Sun Feb 13 14:12:28 2000 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7571 * sparc/sol2.h (LIB_SPEC): Link -ldl if profiling.
7573 Sun Feb 13 13:21:55 2000 Jeffrey A Law (law@cygnus.com)
7575 * combine.c (simplify_comparison): Fix typo.
7577 Sun Feb 13 12:57:52 2000 Neil Booth <NeilB@earthling.net>
7579 * prefix.c (concat, lookup_key): Use xmalloc and xrealloc
7582 2000-02-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
7584 * flow.c (flow_loop_tree_node_add): Use better algorithm by passing
7585 previously inserted node instead of root node. Caller changed.
7587 2000-02-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
7589 * basic-block.h (FLOW_LOOP_FIRST_BLOCK, FLOW_LOOP_LAST_BLOCK): Delete.
7591 2000-02-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7593 * crtstuff.c (__do_global_ctors_aux, __reg_frame_ctor,
7594 __dereg_frame_dtor): Add prototype argument.
7596 * gthr-dce.h (__gthread_active_p, __gthread_once): Likewise.
7598 * gthr-posix.h (__gthread_active_p, __gthread_once): Likewise.
7600 * gthr-solaris.h (__gthread_active_p, __gthread_once): Likewise.
7602 * gthr-vxworks.h (__gthread_once): Likewise.
7604 * gthr-win32.h (__gthread_active_p, __gthread_once): Likewise.
7606 Sat Feb 12 01:44:26 MET 2000 Jan Hubicka <jh@suse.cz>
7608 * i386.c (ix86_emit_restore_regs_using_mov): Break out from ...
7609 (ix86_expand_epilogue): ... here. Use mov instead of add to restore
7610 stack pointer in functions w/o saved registers, output LEAVE more often
7611 on TARGET_USE_LEAVE machines.
7613 2000-02-07 Dmitri Makarov <dim@wrs.com> & Bernd Schmidt <bernds@redhat.com>
7615 * config/arm/arm.c (arm_init_cumulative_args); New function:
7616 Initlaise the CUMULATIE_ARGS strcuture for a function
7618 (arm_function_arg): New function: Determine where to place a
7619 function's argument. Also handles deciding the function's
7621 (current_file_function_operand): New function: Return true if
7622 the symbol is a function which has already been compiled.
7623 (arm_is_long_call_p): New function: Return true if the
7624 indicated function should be called via a long call.
7625 (arm_valid_type_attribute_p): New function: Return true if the
7626 attribute is a valid, arm specific, attribute.
7627 (arm_comp_type_attribute): New function: Return true if the
7628 two types have compatable, arm specific, attributes.
7630 * config/arm/arm.h (CUMULATIVE_ARGS): Redefine to be a
7632 (FUNCTION_ARG): Redefine to call arm_function_arg.
7633 (FUNCTION_ARG_PARTIAL_NREGS): Redefine to use correct
7635 (INIT_CUMULATIVE_ARGS): Redefine to call
7636 arm_init_cumulative_args.
7637 (FUNCTION_ARG_ADVANCE): Redefine to use correct structure
7639 (SETUP_INCOMING_VARARGS): Redefine to use correct structure
7641 (ARM_MARK_NEARBY_FUNCTION): New macro: Mark already compiled
7643 (ENCODE_SECTION): Add call to ARM_MARK_NEARBY_FUNCTION.
7644 (VALID_MACHINE_TYPE_ATTRIBUTE): Define.
7645 (COMP_TYPE_ATTRIBUTES): Define.
7647 * config/arm/arm.md (call): Call arm_is_long_call_p to decide
7648 if a long call is needed.
7649 (call_value): Call arm_is_long_call_p to decide if a long call
7651 (call_symbol): Call arm_is_long_call_p to decide if a long call
7654 * config/arm/arm-protos.h: Add prototype for arm_is_long_call_p.
7656 2000-02-11 Denis Chertykov <denisc@overta.ru>
7658 * README.AVR: New file with information about the avr ports.
7659 * config/avr: New directory with avr port files.
7661 2000-02-11 Andreas Jaeger <aj@suse.de>
7663 * fixinc/Makefile.in (FIXINC_DEFS): Remove unneeded @fixinc_defs@.
7665 2000-02-11 Zack Weinberg <zack@wolery.cumb.org>
7667 * cpphash.c: Fix formatting, update commentary.
7668 (dump_definition): Take three separate arguments instead of a
7669 MACRODEF structure argument.
7670 * cpphash.h: Update prototype of dump_definition.
7671 * cppinit.c (cpp_finish): Update call of dump_definition.
7673 * cpplib.c (do_define): Always create new hash entry with
7674 T_MACRO type. Remove redundant check for redefinition of
7675 poisoned identifier. Update call of dump_definition.
7676 (do_undef): Don't call check_macro_name. Rename sym_length to
7678 (do_error, do_warning): Don't use copy_rest_of_line or
7680 (do_warning): Don't use pedwarn for the actual warning,
7681 only the notice about its not being in the standard. (Fixes
7682 bug with #warning in system headers.)
7683 (do_ident): Stricter argument checking - accept only a single
7684 string after #ident. Also, macro-expand the line.
7685 (do_xifdef): Use cpp_defined. De-obfuscate.
7687 (do_pragma): Split out specific pragma handling to separate
7688 functions. Use get_directive_token. Update commentary. Do
7689 not pass on #pragma once or #pragma poison to the front end.
7690 (do_pragma_once, do_pragma_implementation, do_pragma_poison,
7691 do_pragma_default): New.
7693 Feb 11 12:30:53 2000 Jeffrey A Law (law@cygnus.com)
7695 * jump.c (jump_optimize_1): The first operand in a relational
7697 * optabs.c (emit_conditional_move): Handle relationals which
7698 have a known true/false result.
7700 2000-02-11 Geoff Keating <geoffk@cygnus.com>
7702 * function.c (thread_prologue_and_epilogue_insns): Don't insert
7703 a RETURN insn into a block which already ends with a jump.
7705 2000-02-11 Geoff Keating <geoffk@cygnus.com>
7707 * haifa-sched.c (BUF_LEN): Increase a lot.
7709 2000-02-11 Nick Clifton <nickc@cygnus.com>
7711 * configure.in: Add tm_p_file specification for thumb targets.
7712 * configure: Regenerate.
7714 * config/arm/thumb-protos.h: New file: Prototypes for exported
7715 functions defined in thumb.c.
7717 2000-02-11 Robert Lipe <robertl@sco.com>
7719 * Makefile.in (bootstrap-lean): Remove additional files.
7720 (bootstrap2-lean): Likewise.
7721 (VOL_FILES): List of files for above.
7723 2000-02-11 Nathan Sidwell <nathan@acm.org>
7725 * cpphash.c (special_symbol): Remove spurious argument to
7728 2000-02-11 Joel Sherrill (joel@OARcorp.com>
7730 * configure.in: (i*86-*-rtems*): Swapped elf and coff
7732 * configure: Rebuilt.
7734 2000-02-11 Rodney Brown <RodneyBrown@pmsc.com>
7736 * pa-protos.h: Wrap function_arg_padding in TREE_CODE #ifdef.
7738 Fri Feb 11 02:59:05 2000 Jeffrey A Law (law@cygnus.com)
7740 * pa.c, pa.h: Remove trigraph sequences within comments.
7742 Fri Feb 11 02:51:56 2000 Pavel Roskin <pavel_roskin@geocities.com>
7744 * invoke.texi (PPC Options): -mno-new-mnenomics -> -mold-mnemonics.
7746 Fri Feb 11 02:48:30 2000 Brad Lucier (lucier@math.purdue.edu)
7748 * sbitmap.h: Make SBITMAP_ELT_BITS unsigned.
7750 2000-02-11 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
7752 * config/c4x/c4x.c (fp_zero_operand): Check for CONST_DOUBLE.
7754 2000-02-11 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
7756 * config/c4x/c4x.h (ASM_GLOBALIZE_LABEL): Use c4x_global_label.
7757 (ASM_OUTPUT_EXTERNAL): Use c4x_external_ref.
7758 (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
7759 (ASM_FILE_END): Use c4x_file_end.
7760 * config/c4x/c4x.c (c4x_global_label): New function.
7761 (c4x_external_ref, c4x_file_end): Likewise.
7763 * config/c4x/c4x-protos.h (c4x_global_label): Add prototype.
7764 (c4x_external_ref, c4x_end_file): Likewise.
7766 2000-02-10 Zack Weinberg <zack@wolery.cumb.org>
7768 * cppexp.c: Don't include cpphash.h.
7769 (parse_charconst, cpp_lex): Use cpp_defined.
7770 (cpp_lex): Use get_directive_token throughout. Remove
7771 unnecessary cases from switch. Move assertion-handling code
7773 (cpp_parse_expr): If we see '+' or '-', check the context to
7774 determine if they are unary or binary operators. Streamline
7775 the jumps a bit. Do not call skip_rest_of_line.
7777 * cpplib.c: Make skip_rest_of_line and cpp_skip_hspace
7778 static. Export get_directive_token. Update commentary.
7779 (cpp_defined): New function.
7780 (do_define): Remove reference to T_PCSTRING. Call
7781 free_definition to release memory for old definition, when
7783 (eval_if_expression): Set only_seen_white to 0 before calling
7784 cpp_parse_expr. Call skip_rest_of_line after it returns.
7785 (cpp_read_check_assertion): Don't preserve a pointer into the
7786 token buffer across a call to cpp_get_token.
7788 * Makefile.in (cppexp.o): Don't depend on cpphash.h.
7789 * cppfiles.c (redundant_include_p): Use cpp_defined.
7790 * cpphash.c (free_definition): New function.
7791 (delete_macro): Use it. Update commentary.
7792 * cpphash.h: Typedef HASHNODE here. Prototype cpp_lookup and
7794 * cpplib.h: Don't typedef HASHNODE here. Delete T_PCSTRING
7795 from enum node_type. Prototype cpp_defined and get_directive_token.
7796 Don't prototype cpp_lookup, skip_rest_of_line, or cpp_skip_hspace.
7798 * fix-header.c (check_macro_names): Use cpp_defined.
7799 (read_scan_file): Set inhibit_warnings and inhibit_errors in
7800 the options structure.
7802 2000-02-10 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7804 * c-pragma.c (maximum_field_alignment): Remove duplicate declaration.
7806 2000-02-10 Jason Merrill <jason@casey.cygnus.com>
7808 * dwarf2out.c (add_abstract_origin_attribute): Check TREE_CODE (origin)
7809 rather than die->die_tag.
7811 Thu Feb 10 16:26:49 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7813 * combine.c (make_extraction, force_to_mode): Avoid warning on
7814 mixed-signedness conditionals.
7815 (make_field_assignment, nonzero_bits): Likewise.
7816 * expmed.c (store_fixed_bit_field): ALIGN arg now unsigned.
7817 (store_split_bit_field, extract_split_bit_field): Likewise.
7818 (extract_fixed_bit_field, store_bit_field,
7819 * expr.c: Change alignment to be unsigned everywhere.
7820 (move_by_pieces, store_constructor_field, store_constructor):
7821 Alignment parm is unsigned.
7822 (emit_block_move, emit_group_load, emit_group_store): Likewise.
7823 (clear_storage, emit_push_insn, compare_from_rtx): Likewise.
7824 (do_compare_rtx_and_jump): Likewise.
7825 (move_by_pieces_ninsns, clear_by_pieces): Likewise.
7826 Compare align with GET_MODE_ALIGNMENT.
7827 (expand_expr_unaligned): Pointer to alignment is pointer to unsigned.
7828 (get_inner_reference): Likewise.
7829 (copy_blkmode_from_reg, emit_push_insn): Remove unneeded casts.
7830 (expand_assignment): Local vars for alignment now unsigned.
7831 (store_constructor, store_field, expand_expr, do_jump): Likewise.
7832 (do_compare_and_jump): Likewise.
7833 (store_field): Call new function expr_align.
7834 * expr.h (emit_block_move, emit_group_load, emit_group_store):
7835 Alignment arg now unsigned.
7836 (clear_storage, emit_push_insn, compare_from_rtx): Likewise.
7837 (do_compare_rtx_and_jump, store_bit_field): Likewise.
7838 (extract_bit_field): Likewise.
7839 * fold-const.c (add_double): Add cast to eliminate signedness warning.
7840 * machmode.h (GET_MODE_ALIGNMENT): Result is unsigned.
7841 (get_best_mode): Alignment arg is unsigned.
7842 * rtl.h (move_by_pieces): Likewise.
7843 * store-layout.c (maximum_field_alignment, set_alignment):
7845 (layout_decl): Alignment arg is now unsigned.
7846 Remove unneeded casts.
7847 (layout_record, layout_union, layout_type): Remove unneeded casts.
7848 Local alignment variables now unsigned.
7849 (get_best_mode): Alignment arg now unsigned.
7850 * tree.c (expr_align): New function.
7851 * tree.h (expr_align): Likewise.
7852 (maximum_field_alignment, set_alignment): Now unsigned.
7853 (get_inner_reference): Alignment argument is now pointer to unsigned.
7854 * varasm.c (assemble_variable): Add cast to eliminate warning.
7856 Thu Feb 10 12:56:47 2000 Jim Wilson <wilson@cygnus.com>
7858 * expmed.c (store_bit_field): If op0 and fieldmode are the same size,
7859 then store directly into op0.
7861 * calls.c (expand_call): When emitting a NOTE_INSN_SETJMP, search for
7862 the CALL_INSN, and emit the note immediately after it.
7864 2000-02-10 Nick Clifton <nickc@cygnus.com>
7866 * config/arm/thumb.md (epilogue): Include a (return) in the
7867 generated insn, and emit it using emit_jump_insn not
7870 Thu Feb 10 18:28:59 MET 2000 Jan Hubicka <jh@suse.cz>
7872 * function.c (assign_temp): Change zero-sized arrays to size 1.
7873 * integrate.c (expand_inline_function): Do not update
7874 stack_alignment_needed
7875 * i386.c (compute_frame_size): Remove #ifdef PREFERRED_FRAME_BOUNDARY,
7876 add some sanity checking, remove optimization for function with
7879 2000-02-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7881 * flow.c (mark_regs_live_at_end): Delete unused variables.
7883 * ggc-page.c (ggc_page_print_statistics): bzero -> memset.
7885 * integrate.c (copy_rtx_and_substitute): Wrap variable `alignment'
7886 in macro FRAME_GROWS_DOWNWARD.
7888 * stmt.c (expand_end_bindings): Delete unused variable.
7890 * unroll.c (iteration_info): Mark parameter `loop' with
7893 2000-02-10 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
7895 * fixinc/server.c (load_data): Return NULL if the marker line is
7897 (run_shell): If load_data returns NULL, retry the command once, in
7900 * configure: Rebuilt.
7902 2000-02-09 Bruce Korb <bkorb@gnu.org>
7904 * gcc/fixincludes: ** DELETED **
7905 * gcc/fixcpp: ** DELETED **
7906 * gcc/fixinc-nt.sed: ** DELETED **
7907 * gcc/just-fixinc: ** DELETED **
7908 * gcc/Makefile.in: Removed out-dated commentary
7909 * gcc/configure.in: Removed fast-fixincludes disablement.
7910 * MAINTAINERS(Ian Taylor) moved to "Write after approval" group.
7912 2000-02-09 Clinton Popetz <cpopetz@cygnus.com>
7913 * function.c (thread_prologue_and_epilogue_insns): Uncomment
7916 2000-02-09 Richard Henderson <rth@cygnus.com>
7918 * jump.c (delete_insn): Don't delete user labels at -O0.
7920 2000-02-09 Robert Lipe <robertl@sco.com>
7922 * Makefile.in (gen-protos): Don't depend on HOST_LIBDEPS.
7923 Don't link with HOST_LIBS.
7925 2000-02-09 Zack Weinberg <zack@wolery.cumb.org>
7927 * configure.in: Correct --help text for --with-dwarf2.
7928 Put tm-dwarf2.h after other tm files, if it's requested.
7929 * configure: Regenerate.
7930 * config/tm-dwarf2.h: #undef PREFERRED_DEBUGGING_TYPE before
7933 2000-02-09 Zack Weinberg <zack@wolery.cumb.org>
7935 * cpplib.h: Provide HASHNODE typedef and forward decl of
7936 struct hashnode only. Kill cpp_hashnode typedef. MACRODEF,
7937 DEFINITION, struct hashnode, struct macrodef, struct
7938 definition, scan_decls prototype, default defn of
7939 INCLUDE_LEN_FUDGE moved elsewhere.
7941 * cpphash.h: MACRODEF, DEFINITION, struct macrodef, struct
7942 definition, and struct hashnode moved here. Remove the unused
7943 'predefined' field from struct definition. Replace the 'args'
7944 union with its sole member. All users updated (cpphash.c).
7945 Delete HASHSTEP and MAKE_POS macros, and hashf prototype. Add
7946 multiple include guard.
7948 * cpphash.c (hashf): Make static; use better algorithm; drop
7949 HASHSIZE parameter; return an unsigned int.
7950 (cpp_lookup): Drop HASH parameter. PFILE parameter is
7951 used. Calculate HASHSIZE modulus here.
7952 (cpp_install): Drop HASH parameter. Calculate HASHSIZE modulus
7954 (create_definition): Drop PREDEFINITION parameter.
7955 * cpplib.c (do_define): Don't calculate a hash value here.
7956 Don't pass (keyword == NULL) to create_definition.
7958 * scan.h: Prototype scan_decls here.
7959 * cppfiles.c: Move INCLUDE_LEN_FUDGE default defn here.
7960 * cppexp.c, cppfiles.c, cppinit.c, cpplib.c, fix-header.c: All
7961 callers of cpp_lookup and cpp_install updated.
7963 * cpphash.c (macarg): Hoist all the flag diddling out of the
7965 (macroexpand): ... and out of the loop that calls macarg.
7966 Skip over the initial paren before macro arguments with
7967 cpp_get_non_space_token; point may be some distance before
7968 that paren. Abort if it's not there.
7970 * cpplib.c (parse_clear_mark): Delete function.
7971 (parse_set_mark, parse_goto_mark): Make static.
7972 (ACTIVE_MARK_P): New macro.
7973 (skip_block_comment, skip_line_comment): Do not bump the line
7974 if ACTIVE_MARK_P is true.
7975 (cpp_pop_buffer): The buffer to be popped may not have an
7977 (cpp_get_token): When looking for the initial paren before
7978 macro arguments, only set a mark in a file buffer, Always
7979 return to that mark before proceeding to call macroexpand or
7980 return a NAME token.
7982 * cpplib.h: Remove prototypes of parse_set_mark,
7983 parse_clear_mark, parse_goto_mark.
7984 (struct cpp_options): Rename 'put_out_comments' to
7985 'discard_comments' and invert its sense.
7986 * cppinit.c, cpphash.c, cpplib.c: All users of
7987 put_out_comments changed to use discard_comments, with
7990 2000-02-09 Clinton Popetz <cpopetz@cygnus.com>
7992 * function.c (thread_prologue_and_epilogue_insns): Don't delete
7993 the edge from a block that both jumps and falls through to the
7996 2000-02-09 Scott Bambrough <scottb@netwinder.org>
7998 * config/arm/arm.md (movsi): In PIC mode, make sure that a
7999 constant source address is legitimate.
8001 2000-02-09 Philip Blundell <pb@futuretv.com>
8003 * config/arm/arm.c (legitimize_pic_address): Handle LABEL_REF
8006 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Allow anything when
8008 (LEGITIMATE_PIC_OPERAND): Disallow references to labels.
8010 2000-02-09 Zack Weinberg <zack@wolery.cumb.org>
8012 * cpplib.c (cpp_define, cpp_undef): Make sure the stacked buffer
8013 ends with a newline and a NUL. Don't be so clever manipulating
8016 Wed Feb 9 14:18:08 MET 2000 Jan Hubicka <jh@suse.cz>
8018 * reload1.c (reload) Align stack frame to cfun->stack_alignment_needed,
8019 not to BIGGEST_ALIGNMENT.
8021 2000-02-08 Geoff Keating <geoffk@cygnus.com>
8023 * dwarf2.h (DW_CFA_GNU_negative_offset_extended): New constant.
8024 * dwarf2out.c (dwarf_cfi_name): Print name of new constant.
8025 (reg_save): Use DW_CFA_GNU_negative_offset_extended when needed.
8026 (output_cfi): Handle output of DW_CFA_GNU_negative_offset_extended.
8027 * frame.c (execute_cfa_insn): Handle
8028 DW_CFA_GNU_negative_offset_extended.
8030 2000-02-08 Richard Henderson <rth@cygnus.com>
8032 * flow.c (tidy_fallthru_edges): Split out from ...
8033 (delete_unreachable_blocks): ... here.
8034 (find_basic_blocks): Use it.
8036 Tue Feb 8 15:51:50 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8038 * stmt.c (expand_decl): Do set RTX_UNCHANGING_P for TREE_READONLY.
8040 2000-02-08 Zack Weinberg <zack@wolery.cumb.org>
8042 * Makefile.in (GEN_PROTOS_OBJS): Remove libcpp.a.
8043 (gen_protos.o): Don't depend on cpplib.h or cpphash.h.
8044 (fix-header.o): Don't depend on cpphash.h.
8046 * scan.c (hashstr): New function.
8047 * scan.h: Prototype it.
8048 * fix-header.c: Don't include cpphash.h. Use hashstr.
8049 * gen-protos.c: Don't include cpphash.h or cpplib.h. Use
8050 hashstr. Report hash table statistics. Add private
8051 definition of xrealloc.
8053 2000-02-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8055 * i386.h (TARGET_SWITCHES): Fix typo in option name.
8057 2000-02-08 Clinton Popetz <cpopetz@cygnus.com>
8059 * function.c (thread_prologue_and_epilogue_insns): Don't replace
8060 jumps with returns unless they are jumps to the fallthru block.
8062 Tue Feb 8 07:53:55 2000 Jan Hubicka <jh@suse.cz>
8064 * i386.md (addqi3_cc): Fix contraints.
8066 Tue Feb 8 01:39:45 2000 Hans-Peter Nilsson <hp@bitrange.com>
8068 * function.c (emit_return_into_block): Wrap in #ifdef HAVE_return.
8070 2000-02-07 Mark Mitchell <mark@codesourcery.com>
8072 * cpplib.c (cpp_get_token): Call CPP_BUMP_LINE after reading a
8073 carriage return after a macro name.
8075 2000-02-07 Fred Fish <fnf@be.com>
8077 * i386/beos-elf.h: (ASM_IDENTIFY_GCC): Define to nothing
8078 so the gcc2_compiled symbol doesn't confuse BeOS debuggers.
8080 2000-02-07 Zack Weinberg <zack@wolery.cumb.org>
8082 * cppfiles.c (deps_output): Count spacers in deps_column.
8084 2000-02-07 Neil Booth <NeilB@earthling.net>
8086 * cppinit.c (initialize_dependency_output): If there is no
8087 suffix, don't try to look for known suffixes. Use strrchr.
8088 (cpp_start_read): Remove duplicate initialization.
8090 Mon Feb 7 18:36:41 MET 2000 Jan Hubicka <jh@suse.cz>
8092 * calls.c (compute_argument_block_size): New argument
8093 preferred_stack_boundary.
8094 (expand_call): update cfun->preferred_stack_boundary, update call of
8095 compute_argument_block_size
8096 (emit_library_call): Increate cfun->preferred_stack_boundary
8097 to PREFERRED_STACK_BOUNDARY
8098 (emit_library_call_value): Likewise.
8099 * explow.c (allocate_dynamic_stack_spave): Likewise.
8100 * function.c (prepare_function_start): Set
8101 cfun->preferred_stack_boundary
8102 * function.h (struct function): Add preferred_stack_boundary field.
8103 * integrate.c (expand_inline_function): Update
8104 cfun->preferred_stack_boundary and cfun->stack_alignment_needed.
8105 (copy_rtx_and_substitute): Align frame to stack_alignment_needed only.
8106 * i386.c (compute_frame_size): Use cfun->preferred_stack_boundary.
8108 2000-02-06 Zack Weinberg <zack@wolery.cumb.org>
8110 * cpplib.c (my_strerror, cpp_error, cpp_error_with_line,
8111 cpp_error_from_errno, cpp_warning, cpp_warning_with_line,
8112 cpp_pedwarn, cpp_pedwarn_with_line,
8113 cpp_pedwarn_with_file_and_line): Move to cpperror.c.
8114 (cpp_print_file_and_line, v_cpp_error, v_cpp_warning,
8115 v_cpp_error_with_line, v_cpp_warning_with_line,
8116 cpp_message_from_errno, cpp_perror_with_name): Delete.
8118 * cpperror.c (cpp_print_containing_files): Take starting
8120 (cpp_file_line_for_message): Rename to cpp_print_file_and_line.
8121 (v_cpp_message): Now called directly by all entry points.
8123 (cpp_pfatal_with_name, cpp_message): Delete.
8124 (cpp_notice_from_errno, cpp_ice): New functions.
8125 (cpp_notice): Is now for reporting error conditions, just
8126 without an associated file.
8127 (cpp_error, cpp_error_with_line): Don't do anything if
8128 opts->inhibit_errors is on.
8129 (cpp_pedwarn_with_file_and_line): Take column argument also.
8131 * cpplib.h: Update prototypes of exported functions.
8132 (struct cpp_options): Add inhibit_errors.
8134 * cppalloc.c, cppfiles.c: Use fprintf not cpp_notice for
8135 non-error messages. Include intl.h.
8137 * cppinit.c, cppmain.c: Likewise. Also, use
8138 cpp_notice_from_errno instead of cpp_perror_with_name or
8139 cpp_pfatal_with_name, and cpp_notice instead of cpp_message.
8141 * cppexp.c, cpphash.c, cppinit.c, cpplib.c: Use cpp_ice to
8142 report internal errors.
8144 * cpplib.c (do_define): Switch bcopy to memcpy.
8145 Give cpp_pedwarn_with_file_and_line a dummy column argument.
8147 * cpplib.c (copy_rest_of_line): Revert previous change: don't
8148 bail out early if we hit a line comment.
8150 2000-02-06 Richard Henderson <rth@cygnus.com>
8152 * flow.c (flow_delete_insn, make_edge, remove_edge): Export.
8153 * basic-block.h: Declare them.
8154 * emit-rtl.h (active_insn_p): New.
8155 (next_active_insn, prev_active_insn): Use it.
8156 * rtl.h: Declare it.
8157 * function.c (emit_return_into_block): New.
8158 (thread_prologue_and_epilogue_insns): Insert return insns instead
8159 of epilogues when possible.
8160 * jump.c (jump_optimize_1): Remove code to insert a return insn
8161 on the fallthru to the exit block.
8163 * i386.c (ix86_can_use_return_insn_p): Fail for large poped args
8164 and for non-empty stack frames.
8165 * i386.md (return): Expand to return-pop as needed.
8167 2000-02-06 Richard Henderson <rth@cygnus.com>
8169 * simplify-rtx.c (simplify_relational_operation): Canonicalize
8170 constant to op1 for testing.
8172 2000-02-06 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
8174 * config/c4x/c4x.md (*ldi_on_overflow): New pattern.
8175 (fixuns_truncqfqi2): Use it.
8177 2000-02-06 Richard Henderson <rth@cygnus.com>
8179 * i386.c (ix86_agi_dependant): Handle pro_epilogue_adjust_stack
8182 * i386.md (widening and peepholes): Mask the constant instead of
8185 2000-02-05 Zack Weinberg <zack@wolery.cumb.org>
8187 * cppfiles.c (read_and_prescan) [case SPECCASE_QUESTION]: Bump
8188 input pointer before possibly branching off to the backslash
8190 * cpphash.c (macroexpand): Correctly delete \r escapes when
8191 stringifying parameters.
8192 * cpplib.c (copy_rest_of_line): Go directly to skip_block_comment
8193 if we can; bail out early if we hit a line comment.
8194 (handle_directive): Treat '# 123' in an .S file just like
8195 '# <punctuation>'. Discard the shifted '#' if we hit '#\n'.
8196 Return 1 for '# not_a_directive'.
8197 (get_directive_token): Pop macro buffers here, so that
8198 cpp_get_token can't sneakily move past a newline.
8200 (cpp_get_token): goto randomchar if handle_directive returns 0.
8202 * cppalloc.c: Update copyright.
8203 * cpplib.c: Merge all the static function prototypes into one
8205 * cpplib.h: Remove #if 0 block.
8207 * cpperror.c: Remove #ifdef EMACS block.
8208 * cppmain.c: Likewise.
8209 * cpphash.c: Remove #if 0 blocks.
8210 * cppinit.c: Remove #if 0 blocks, and the -lint option.
8211 * cpplib.c: Remove #if 0 blocks and code referencing
8212 pcp_inside_if or for_lint. Remove duplicate error message.
8213 Fix error messages for #else after #else or #elif. Reformat.
8214 Remove archaic TODO list.
8215 * cpplib.h: Remove pcp_inside_if and for_lint flags.
8217 2000-02-05 Zack Weinberg <zack@wolery.cumb.org>
8219 * i386/osf1elf.h: Add missing backslash to multiline string.
8221 2000-02-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8223 * longlong.h [sparc] (udiv_qrnnd): Avoid stringifying macro arg.
8225 2000-02-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8227 * Makefile.in (c-common.o): Depend on $(EXPR_H).
8229 * c-common.c: Include expr.h.
8231 * c-pragma.c (mark_align_stack): Add prototype.
8233 * caller-save.c (add_stored_regs): Likewise.
8235 * combine.c (record_promoted_value): Likewise.
8237 * i386.c (ix86_sched_reorder_pentium, ix86_sched_reorder_ppro):
8240 * cppinit.c (new_pending_define): Likewise.
8242 * cpplib.c (skip_block_comment, skip_line_comment): Likewise.
8244 * dwarf2out.c (save_rtx, splice_child_die, reverse_die_lists,
8245 AT_class, AT_flag, AT_int, AT_unsigned, AT_string, AT_ref, AT_loc,
8246 AT_addr, AT_lbl, get_AT_ref, free_AT, free_die, local_scope_p,
8247 class_scope_p): Likewise.
8249 * dwarf2out.h (dwarf2out_set_demangle_name_func,
8250 dwarf2out_add_library_unit_info): Likewise.
8252 * ggc.h (ggc_page_print_statistics): Likewise.
8254 * haifa-sched.c (propagate_deps): Likewise.
8256 * reg-stack.c (next_flags_user, record_label_references): Likewise.
8258 * rtl.h (set_stack_check_libfunc): Likewise.
8260 * toplev.h (set_fatal_function): Likewise.
8262 * toplev.c (set_fatal_function): Delete prototype.
8264 * diagnostic.c: Deconstify functions returning malloc'ed ptrs.
8266 2000-02-05 Geoff Keating <geoffk@cygnus.com>
8268 * ginclude/ppc-asm.h (FUNC_START): Use USER_LABEL_PREFIX.
8269 (FUNC_END): Likewise.
8271 2000-02-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
8273 * caller-save.c: Include tm_p.h.
8275 2000-02-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
8277 * Makefile.in (libgcc.a): Add $(LIBGCC1) to libgcc.a after $(LIBGCC2).
8279 2000-02-04 Neil Booth <NeilB@earthling.net>
8281 * cccp.c (main): Check 'dir' for a NULL pointer before passing
8284 2000-02-04 Zack Weinberg <zack@wolery.cumb.org>
8286 * recog.h: Remove NO_MD_PROTOTYPES ifdefs.
8287 * genflags.c: Use the max_operand_1 logic from genemit.c to
8288 calculate how many arguments gen_insn prototypes have. Remove
8289 NO_MD_PROTOTYPES ifdefs from the generated file.
8290 * genoutput.c: Don't define NO_MD_PROTOTYPES in the generated
8291 file. Cast gen_insn initializers to insn_gen_fn.
8292 * config/alpha/vms.h: Don't define NO_MD_PROTOTYPES.
8293 * gcc.texi: Remove documentation of NO_MD_PROTOTYPES.
8295 2000-02-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8297 * fixinc/Makefile.in (HDR): Add machname.h.
8300 2000-02-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
8302 * config/c4x/c4x.h (c4x_compare_op0, c4x_compare_op1): Move ...
8303 (c4x_regclass_map, c4x_caller_save_map, c4x_rpts_cycles): Ditto.
8304 (c4x_cpu_version): Ditto.
8305 * config/c4x/c4x-protos.h: ... here.
8307 2000-02-04 Jason Merrill <jason@casey.cygnus.com>
8309 * dwarf2out.c (add_abstract_origin_attribute): Don't call
8310 gen_abstract_function on our context if we're a nested function.
8312 2000-02-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
8314 * config/c4x/c4x.md (fixuns_truncqfqi2): Rewrite.
8315 * config/c4x/libgcc.S (ufix_truncqfhi2n): Fix.
8317 2000-02-04 Bruce Korb <bkorb@gnu.org>
8319 * fixinc/genfixes(machname.h):
8320 Move the functionality from gen-machine.h into this file.
8321 UNdef MN_NAME_PAT if there are no names to change.
8322 Also, be a little kinder when AutoGen is not present.
8324 * fixinc/Makefile.in(machname.h):
8325 Change the generation rule to use genfixes.
8327 * fixinc/fixfixes.c(machine_name):
8328 machine_name_fix's functionality now dependent upon whether
8329 MN_NAME_PAT is defined.
8331 * fixinc/fixtests.c(machine_name):
8334 * fixinc/fixlib.c(mn_get_regexps): conditional on definition
8337 * fixinc/fixlib.h(mn_get_regexps):
8340 * fixinc/gen-machine.h: DELETED
8342 2000-02-04 Jan Hubicka <jh@suse.cz>
8343 Richard Henderson <rth@cygnus.com>
8345 * i386.c (SAVE_REGS_FIRST): Remove.
8346 (ix86_initial_elimination_offset): Handle only SAVE_REGS_FIRST mode.
8347 (ix86_compute_frame_size): Likewise.
8348 (ix86_expand_prologue): Likewise. Use pro_epilogue_adjust_stack.
8349 (ix86_emit_restore_regs): Remove.
8350 (ix86_emit_epilogue_esp_adjustment): Use pro_epilogue_adjust_stack
8351 when a frame pointer is in use.
8352 (ix86_expand_epilogue): Handle only SAVE_REGS_FIRST mode. Use mov
8353 instead of pop to restore a register when profitable; emit leave
8355 (ix86_attr_length_default): Handle pro_epilogue_adjust_stack
8357 (ix86_adjust_cost): Handle pro_epilogue_adjust_stack as TYPE_ALU.
8358 * i386.md (prologue_allocate_stack): Remove.
8359 (epilogue_deallocate_stack): Remove.
8360 (pro_epilogue_adjust_stack): New.
8362 2000-02-04 Richard Henderson <rth@cygnus.com>
8364 * function.c (diddle_return_value): Rework to use a callback function.
8365 Use current_function_return_rtx if it's been set up.
8366 (do_clobber_return_reg, clobber_return_register): New.
8367 (do_use_return_reg, use_return_register): New.
8368 (expand_function_end): Use them.
8369 * stmt.c (expand_null_return): Likewise.
8370 * function.h: Declare them.
8371 * flow.c (mark_regs_live_at_end): Use diddle_return_value.
8372 (mark_reg): Change arguments as appropriate for callback.
8373 * integrate.c (expand_inline_function): Revert 19 Jan change.
8375 Fri Feb 4 20:25:42 2000 Hans-Peter Nilsson <hp@bitrange.com>
8377 * tm.texi (Values in Registers): Fix typo: "fo" "for".
8378 (Misc): Say the scheduler, not the Haifa scheduler.
8380 2000-02-04 Clinton Popetz <cpopetz@cygnus.com>
8382 * jump.c (mark_jump_label): Add in_mem param, check SYMBOL_REFs
8383 when in_mem is set. Update all callers.
8385 2000-02-04 Richard Henderson <rth@cygnus.com>
8387 * i386/openbsd.h (INT_ASM_OP): Define.
8389 Fri Feb 4 10:51:30 2000 Hans-Peter Nilsson <hp@bitrange.com>
8391 * tm.texi: Fix various typos.
8393 Thu Feb 3 17:17:32 2000 Steve Ellcey <sje@cup.hp.com>
8395 * config/pa/pa-hpux11.h (LIB_SPEC): Correct typo in !p case.
8396 (MD_STARTFILE_PREFIX_1): New macro.
8398 Thu Feb 3 15:08:13 MET 2000 Jan Hubicka <jh@suse.cz>
8400 * i386.md (movstrsi, clrstrsi): Support variable sized copies, align
8401 destination when needed.
8402 (strmovsi, strsetsi): New expander.
8403 (strmovsi_1, strsetsi_1): New pattern.
8404 * i386.h (MASK_NO_ALIGN_STROP, MASK_INLINE_ALL_STROP,
8405 TARGET_ALIGN_STRINGOPS, TARGET_INLINE_ALL_STRINGOPS): New macros.
8406 (TARGET_SWITCHES) Add align-stringops and inline-all-stringops.
8407 * invoke.texi (align-stringops, inline-all-stringops): Document.
8409 Wed Feb 2 23:04:47 2000 Krister Walfridsson <cato@df.lth.se>
8411 * i386/netbsd.h (INT_ASM_OP): Define.
8413 2000-02-02 Zack Weinberg <zack@wolery.cumb.org>
8415 * cpplib.h (cpp_reader): Add new flag, no_directives.
8416 * cpphash.c (macarg): Set it.
8417 * cpplib.c (handle_directive): If no_directives is on and we
8418 find a directive, issue an error and discard the line.
8420 Wed Feb 2 13:07:10 2000 Jim Wilson <wilson@cygnus.com>
8422 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Delete 'E' check for
8423 FP constants. Add ! TARGET_FPU check for FP constants.
8425 2000-02-02 Clinton Popetz <cpopetz@cygnus.com>
8427 * flow.c (find_basic_blocks): Don't kill label_value_list
8429 (cleanup_cfg): Kill it here.
8431 Wed Feb 2 08:12:30 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8433 * expr.c (store_field): Ensure ALIGN is no stricter than the
8436 2000-02-02 Richard Henderson <rth@cygnus.com>
8438 * jump.c (delete_insn): Partially revert 19 Jan change;
8439 don't convert unused code labels to notes at -O0.
8441 2000-02-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
8443 * toplev.c (rest_of_compilation): Run rebuild_jump_labels after
8444 split_all_insns to recreate REG_LABEL notes for flow2 pass.
8446 2000-02-01 Richard Henderson <rth@cygnus.com>
8448 * i386.c (general_no_elim_operand): New.
8449 (nonmemory_no_elim_operand): New.
8450 (ix86_expand_move): Copy eliminable operands before a push.
8451 * i386-protos.h: Declare new functions.
8452 * i386.h (CAN_ELIMINATE): Simplify.
8453 (PREDICATE_CODES): Update.
8454 * i386.md (push insns): Don't allow eliminable register operands.
8456 2000-02-01 Richard Henderson <rth@cygnus.com>
8458 * flow.c (mark_regs_live_at_end): Follow expand_function_end and
8459 replace BLKmode with DECL_RTL's mode.
8461 2000-02-01 Zack Weinberg <zack@wolery.cumb.org>
8463 * frame.c (find_fde): Convert for loop to do-while so compiler
8464 sees it's always executed at least once.
8465 * libgcc2.c (BBINBUFSIZE): Kill.
8466 (__bb_init_prg): Use fgets.
8467 (__bb_exit_trace_func): Don't paste strings.
8468 * unroll.c (unroll_loop): Initialize unroll_type, not
8469 unroll_number, and tweak logic to match.
8471 * i386.c (ix86_expand_int_movcc): Add explicit 'return 0' in
8473 (ix86_flags_dependant): Likewise. Disentangle control flow.
8474 (ix86_sched_reorder): Break guts out to
8475 ix86_sched_reorder_pentium and ix86_sched_reorder_ppro.
8476 (ix86_sched_reorder_ppro): Initialize pair2 and insnp before
8479 * i386.h (MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Don't
8480 use string concatenation. Don't save and restore esi.
8482 * fixinc/Makefile.in (fixincl.sh): Don't depend on inclhack.def.
8483 (machname.h): Remove script to separate file. Use two-step
8484 sequence so target is not created if script fails.
8485 * fixinc/gen-machname.h: New file. Handle case where no non-reserved
8486 identifiers are defined.
8487 * fixinc/fixlib.c (mn_get_regexps): Return a flag: if MN_NAME_PAT is
8488 an empty string, machine_name doesn't need to do anything at
8490 (is_cxx_header): Add more cases to regexp.
8491 * fixinc/fixlib.h: Update prototype.
8492 * fixinc/fixtests.c, fixinc/fixfixes.c: Update callers of
8494 * fixinc/fixincl.c: Define NO_BOGOSITY.
8496 * fixinc/inclhack.def (no_double_slash, else_endif_label): Ifdef out.
8497 (hp_sysfile): Add missing comma.
8498 (math_exception): Put the wrapper ifdefs at the beginning and
8499 the end of the file.
8500 * fixinc/fixincl.x, fixinc/inclhack.sh: Regenerate.
8502 2000-02-01 Richard Henderson <rth@cygnus.com>
8504 * sparc.c (fp_zero_operand): Turn into a normal predicate.
8505 Use CONST0_RTX. Update all callers.
8506 * sparc.h, sparc-protos.h: Update accordingly.
8507 * sparc.md (fp mov insns): Use fp_zero_operand directly
8510 Wed Feb 2 02:59:45 2000 Hans-Peter Nilsson <hp@bitrange.com>
8512 * tm.texi (Values in Registers): Fix typo in HARD_REGNO_NREGS
8515 2000-02-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8517 * Makefile.in (specs.ready): New target.
8518 (fixinc.sh): Depend on `specs.ready' instead of `specs'.
8520 2000-02-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8522 * fixinc.irix: Use unique filenames for writing into /tmp,
8523 * fixinc.ptx: Likewise.
8524 * fixinc.sco: Likewise.
8525 * fixinc.svr4: Likewise.
8526 * fixinc.winnt: Likewise.
8528 2000-02-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8530 * tsystem.h: New file.
8532 * Makefile.in (libgcc2.a, stmp-multilib, crtbegin.o, crtend.o,
8533 s-crtS): Depend on tsystem.h.
8535 * crtstuff.c: Include tsystem.h.
8536 * frame.c: Likewise.
8537 * libgcc2.c: Likewise.
8539 Tue Feb 1 19:53:27 CET 2000 Jan Hubicka <jh@suse.cz>
8541 * builtins.c (expand_builtin_memset): Expand for variable sized
8544 2000-02-01 David Billinghurst <David.Billinghurst@riotinto.com.au>
8546 * config/mips/iris6.h (SUBTARGET_ASM_SPEC) : Default ISA based
8549 Tue Feb 1 00:57:40 2000 Hans-Peter Nilsson <hp@bitrange.com>
8551 * dwarfout.c (SHORT_TYPE_SIZE): Correct default.
8553 * tm.texi (Type Layout): Correct entry for CHAR_TYPE_SIZE.
8555 2000-01-31 Chandra Chavva <cchavva@cygnus.com>
8557 * combine.c (try_combine) [HAVE_cc0]: Trying to check the missed
8558 case 3->2 combining (combining with splitting) in which 2 is CC0
8559 setter/user and 3 is user. The rest of cases 2->1 and 3->2 are
8560 checked at the begining of the function with the aid of calling
8561 function 'can_combine_p'.
8563 2000-01-31 Dave Brolley <brolley@redhat.com>
8565 * cccp.c (struct argdata): Redeclare 'newlines' field as 'int'.
8567 2000-01-31 Jason Merrill <jason@casey.cygnus.com>
8569 * jump.c (redirect_jump): Move a NOTE_INSN_FUNCTION_END to the
8572 2000-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8574 * gansidecl.h (PROTO, VPROTO, PVPROTO): Delete macros.
8576 * sbitmap.h (sbitmap_first_set_bit, sbitmap_last_set_bit):
8579 2000-01-30 Zack Weinberg <zack@wolery.cumb.org>
8581 * i386/386bsd.h, i386/beos-pe.h, i386/bsd386.h, i386/crtdll.h,
8582 i386/cygwin.h, i386/dgux.h, i386/djgpp-rtems.h, i386/djgpp.h,
8583 i386/freebsd.h, i386/gnu.h, i386/i386-aout.h, i386/i386-coff.h,
8584 i386/i386-interix.h, i386/i386elf.h, i386/linux.h, i386/lynx-ng.h,
8585 i386/lynx.h, i386/mach.h, i386/mingw32.h, i386/moss.h,
8586 i386/netbsd.h, i386/next.h, i386/openbsd.h, i386/osf1elf.h,
8587 i386/ptx4-i.h, i386/rtems.h, i386/rtemself.h, i386/sco.h,
8588 i386/sequent.h, i386/sun.h, i386/sysv4.h, i386/uwin.h, i386/vsta.h,
8589 i386/vxi386.h, i386/win-nt.h, i386/win32.h:
8590 Remove -Di386 -Acpu(i386) -Amachine(i386) from CPP_PREDEFINES.
8592 * i386/osf1elf.h, i386/scodbx.h, i386/seq-sysv3.h, i386/sysv5.h:
8593 Add %(cpp_cpu) to CPP_SPEC.
8595 * i386/osf1elf.h, i386/osfelf.h, i386/osfrose.h:
8596 Add %(cc1_cpu) to CC1_SPEC.
8598 2000-01-28 Ulrich Drepper <drepper@redhat.com>
8600 * c-decl.c (c_decode_option): Accept optional numeric argument to
8601 -Wformat and set warn_format.
8602 * c-common.c: Don't emit warning about non-constant printf format
8603 string unless warn_format > 1.
8605 2000-01-30 Richard Henderson <rth@cygnus.com>
8607 * alpha.md (return_internal): Allow after reload only.
8609 2000-01-30 Richard Henderson <rth@cygnus.com>
8611 * i386.c (ix86_compute_frame_size): Omit padding1 if the
8612 local frame size is zero.
8614 2000-01-30 Richard Henderson <rth@cygnus.com>
8616 * alpha.c (alpha_expand_epilogue): Don't emit the return insn.
8617 * alpha.h (EPILOGUE_USES): New. Mark $26 live.
8618 * alpha.md (return): Turn into an expander.
8619 (return_internal): Don't use $26.
8620 (epilogue): Emit the return insn.
8622 2000-01-30 Richard Henderson <rth@cygnus.com>
8624 * alpha.md (negtf2, abstf2): Fix word order thinko.
8626 (trunctfsf2): Avoid intermediate rounding errors.
8628 2000-01-30 Zack Weinberg <zack@wolery.cumb.org>
8630 * cppfiles.c (find_position): Drop 'colp' argument, return the
8632 (read_and_prescan): Adjust to match. Don't ever manipulate
8633 line or line_base except via find_position.
8635 2000-01-29 Zack Weinberg <zack@wolery.cumb.org>
8637 * c-parse.in: Apply Ulrich's changes from c-parse.y.
8638 * c-parse.y, objc/objc-parse.y, c-parse.c, objc/objc-parse.c:
8641 2000-01-29 Zack Weinberg <zack@wolery.cumb.org>
8643 * cpperror.c (cpp_file_line_for_message): If 'line' is zero,
8644 just print "<command line>". If 'filename' is null or an
8645 empty string, print "<stdin>" for the filename.
8646 * cpplib.c (do_define): Don't print the 'location of the
8647 previous definition' message if we're still parsing the
8649 (cpp_pedwarn_with_file_and_line): Always call
8650 cpp_file_line_for_message.
8652 2000-01-29 Mark Mitchell <mark@codesourcery.com>
8654 * flow.c (mark_regs_live_at_end): Fix typo.
8656 2000-01-28 Ulrich Drepper <drepper@redhat.com>
8658 * c-common.c: Adjust variable names, comments, help strings to c99.
8659 * c-lex.c: Likewise.
8660 * c-parse.y: Likewise.
8661 * c-tree.h: Likewise.
8663 * cpplib.h: Likewise.
8664 * c-decl.c: Likewise. Recognize options with names "*99" as well.
8665 * cppinit.c: Likewise.
8667 2000-01-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
8669 * c4x.h (INIT_TARGET_OPTABS): Add all missing local optab entries.
8670 * c4x.c: Define the optab rtx values.
8671 (c4x_add_gc_roots): Add the ggc roots for these optab rtx values.
8672 (c4x_emit_libcall): Use new optab rtx values.
8673 (c4x_emit_libcall3): Likewise.
8674 (c4x_emit_libcall_mulhi): Likewise.
8675 * c4x-protos.h: Add prototypes for optab rtx values and change
8676 prototypes for above c4x_emit_libcall functions.
8678 2000-01-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
8680 * c4x.c (c4x_output_ascii): Restrict line length of output when TI
8682 (c4x_function_prologue): Use regnames intead of float_reg_names when
8684 (c4x_function_epilogue): Likewise.
8685 (c4x_print_operand): Likewise.
8686 * c4x.h (HOST_WIDE_INT_PRINT_HEX): Redefine.
8687 * c4x.md (set_high): Disable for TARGET_TI.
8689 2000-01-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
8691 * c4x.h (PREFERRED_RELOAD_CLASS): Change to restrict the reloading
8692 of framepointer + constant to ADDR_REGS class.
8693 * c4x.md (addqi3, addqi3_noclobber_reload): Update.
8694 * c4x.c (std_or_reg_operand): New function.
8695 * c4x-protos.h (std_or_reg_operand): Prototype it.
8697 2000-01-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
8699 * t-c4x: Change qi,qf,di,df into si,sf,hi,hf to generate same
8700 object names as libgcc2.c.
8701 * libgcc.S: Use newly defined names.
8703 Fri Jan 7 19:48:04 CET 2000 Jan Hubicka <jh@suse.cz>
8704 * sbitmap.c (sbitmap_first_set_bit, sbitmap_last_set_bit): New
8706 * sbitmap.h (sbitmap_first_set_bit, sbitmap_last_set_bit): Declare.
8707 * basic_block.h (FLOW_LOOP_FIRST_BLOCK): New macro.
8708 (FLOW_LOOP_LAST_BLOCK): Likewise.
8710 2000-01-21 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
8712 * basic-block.h (struct loop): New fields 'first' and 'last'.
8713 * flow.c (flow_loops_find): Compute loop->first and loop->last.
8714 (flow_loops_dump): Use loop->first to check for NOTE_INSN_LOOP_BEG
8715 and loop->last to check for NOTE_INSN_LOOP_END.
8717 Fri Jan 28 10:57:58 2000 Jason Eckhardt <jle@cygnus.com>
8719 * predict.c (estimate_probability): Use the new FIRST and LAST fields
8720 of the loop descriptor rather than HEADER and LATCH. Also added
8721 missing break statements as well making some coding style modifications
8722 as suggested by Michael Hayes.
8724 2000-01-28 Richard Henderson <rth@cygnus.com>
8726 * flow.c (find_basic_blocks): Remove do_cleanup argument.
8727 Break out that code ...
8728 (cleanup_cfg): ... here.
8729 (commit_one_edge_insertion): Detect a return instruction being
8730 emitted to an edge. Emit a barrier following; clear fallthru.
8731 (commit_edge_insertions): Verify CFG consistency.
8732 * function.c (expand_function_start): Kill unused variable.
8733 (expand_function_end): Likewise.
8734 (thread_prologue_and_epilogue_insns): Use insert_insn_on_edge
8735 to insert the epilogue.
8737 * gcse.c (gcse_main): Adjust for find_basic_blocks change.
8738 (delete_null_pointer_checks): Likewise.
8739 * output.h: Likewise.
8740 * reg-stack.c (reg_to_stack): Likewise.
8741 * toplev.c (rest_of_compilation): Likewise. Run
8742 thread_prologue_and_epilogue_insns after rebuilding the CFG.
8744 2000-01-28 Richard Henderson <rth@cygnus.com>
8746 * Makefile.in (flow.o): Revert 24 Jan change.
8747 * flow.c (mark_regs_live_at_end): Likewise. Force BLKmode
8748 FUNCTION_VALUE result to DECL_RESULT's mode.
8750 * haifa-sched.c (schedule_insns): Don't recompute reg info
8753 2000-01-28 Zack Weinberg <zack@wolery.cumb.org>
8755 * configure.in: Make --enable-cpplib the default.
8756 * configure: Regenerate.
8757 * gcc.dg/990119-1.c: No longer expected to fail.
8759 2000-01-28 Bernd Schmidt <bernds@cygnus.co.uk>
8761 * jump.c (jump_optimize_1): Delete an optimization that is also done
8762 by merge_blocks in flow.
8764 2000-01-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8766 * diagnostic.c (build_message_string, output_printf,
8767 line_wrapper_printf): Add ATTRIBUTE_PRINTF_*.
8768 (build_location_prefix): Fix non-literal format string.
8770 2000-01-27 Richard Henderson <rth@cygnus.com>
8772 * alpha.md (trunctfsf2): New.
8774 2000-01-27 Andrew Hobson <ahobson@eng.mindspring.net>
8776 * configure.in (alpha-dec-osf5): Enable MASK_SUPPORT_ARCH.
8778 2000-01-27 Zack Weinberg <zack@wolery.cumb.org>
8780 * cppinit.c (cpp_handle_option): Recognize C++ comments under
8782 * cpplib.c (skip_block_comment, skip_line_comment): Split code
8784 (skip_comment) ... here. Permit C++ comments in system
8785 headers always. Warn about C++ comments in user code under
8786 -std=gnu89 -pedantic.
8787 (copy_comment): Use skip_comment.
8788 (cpp_skip_hspace, cpp_get_token): skip_comment can no longer
8790 (consider_directive_while_skipping, do_else, do_endif): Call
8791 validate_else unconditionally.
8792 (validate_else): Check CPP_PEDANTIC here. Accept non-comment
8793 text after the conditional in a system header.
8794 * cpplib.h (struct cpp_buffer): Add flag
8795 warned_cplusplus_comments.
8797 2000-01-27 Geoffrey Keating <geoffk@cygnus.com>
8799 * emit-rtl.c (unshare_all_rtl): Unshare virtual parameters too.
8800 Use unshare_all_rtl_1.
8801 (unshare_all_rtl_again): New function.
8802 (unshare_all_rtl_1): New function split out of unshare_all_rtl.
8804 * function.c (purge_addressof_1): Use unshare_all_rtl_again
8805 rather than resetting the 'used' flags ourself.
8807 * toplev.c (rest_of_compilation): Add current_function_decl
8808 to the unshare_all_rtl call.
8809 * tree.h: Prototype unshare_all_rtl.
8810 * rtl.h: Prototype unshare_all_rtl_again here.
8812 2000-01-27 Geoffrey Keating <geoffk@cygnus.com>
8814 * genoutput.c (output_prologue): Include ggc.h in generated
8816 * Makefile.in (insn-output.o): Depends on ggc.h.
8818 2000-01-27 Ian Dall <ian@sibyl.beware.dropbear.id.au>
8819 Hans-Peter Nilsson <hp@bitrange.com>
8821 * ns32k/xm-ns32k.h (memcpy, memset, memcmp): Delete.
8822 Remove redundant include of xm-ns32k.h.
8823 * ns32k/xm-genix.h (memcpy, memset, memcmp): Add definitions.
8824 Remove redundant include of xm-ns32k.h.
8825 * ns32k/xm-netbsd.h (memcpy, memset, memcmp): No longer undefine.
8826 Remove redundant include of xm-ns32k.h.
8827 * ns32k/netbsd.h (TARGET_DEFAULT): Enable multiply-add instructions.
8829 * ns32k/ns32k.h: Update comment on multiply-add instructions.
8830 (TARGET_SWITCHES): Add documentation strings.
8831 (DWARF_FRAME_REGNUM): Override default definition.
8832 (REG_CLASS_CONTENTS): Add comments.
8833 (SUBSET_P): Format to reduce line length.
8834 (SMALL_REGISTER_CLASSES): Make a run time option.
8835 (GO_IF_NONINDEXED_ADDRESS): Reformat.
8836 (GO_IF_LEGITIMATE_ADDRESS): Ensure that cfun is non NULL before
8837 dereferencing it. Braces to avoid "ambiguous else" were misplaced.
8838 (regclass_map): fix typo in comment.
8839 * ns32k/ns32k.c: Add spaces before parentheses for consistant style.
8840 Prefer gen_rtx_FOO(...) to gen_rtx(FOO,...).
8841 (trace, reg_or_mem_operand): Delete, unused function.
8842 (calc_address_cost): Small offsets are cheaper than large ones.
8843 (expand_block_move): Generate more efficient code when bytes is a
8844 known at compile time.
8845 * ns32k/ns32k.md: Alternate constraints for multiply-add instructions.
8846 (udivmodsi4, udivmodhi4, udivmodqi4): Use nonimmediate_operand
8847 instead of reg_or_mem_operand.
8849 * ns32k/ns32k.md: Use nonimmediate_operand or stricter for outputs,
8850 not general_operand. Similarly use "=rm" or stricter, not "=g".
8851 For input operands, use stricter constraints than "g" if not
8852 general_operand. Similarly use stricter predicate than
8853 "general_operand" when stricter constraints than "g" are present,
8854 except for matching constraints.
8855 (movstrsi): Use "memory_operand" for operands 0 and 1.
8856 (truncsiqi2, truncsihi2, trunchiqi2): Remove.
8857 (udivmoddisi4_internal): Use nonimmediate_operand for operand 0,
8858 not reg_or_mem_operand.
8859 (udivmoddisi4): Ditto.
8860 Use nonimmediate_operand for operand 1, not reg_or_mem_operand.
8861 Use nonimmediate_operand for operand 3, not register_operand.
8862 (udivmoddiqi4_internal): Use register_operand for operand 1, not
8865 2000-01-27 Fred Fish <fnf@be.com>
8867 * gthr-posix.h: Fix typo; compatibily -> compatibility.
8868 * gthr-single.h: Likewise.
8869 * gthr-solaris.h: Likewise.
8870 * gthr-vxworks.h: Likewise.
8871 * gthr-win32.h: Likewise.
8874 2000-01-27 Zack Weinberg <zack@wolery.cumb.org>
8876 * cppinit.c: Add " (cpplib)" to end of string printed by
8879 2000-01-27 Richard Henderson <rth@cygnus.com>
8881 * alpha.c (alpha_emit_conditional_move): Use VOIDmode when
8882 testing for a signed comparison.
8883 (alpha_emit_floatuns): New.
8884 * alpha-protos.h: Declare it.
8885 * alpha.md (floatunsdisf2, floatunsdidf2): New.
8886 (extendsfdf2): Tidy.
8888 2000-01-27 Jakub Jelinek <jakub@redhat.com>
8890 * config/sparc/linux64.h (CC1_SPEC): If compiling -m32 with -g but
8891 no -g option specifying debugging format, default to -gstabs+.
8893 Wed Jan 26 22:19:14 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
8895 * calls.c (special_function_p): New argument fork_or_exec.
8896 (expand_call): When profile_arc_flag is set and the function
8897 is in the fork_or_exec group, call __bb_fork_func first.
8898 * libgcc2.c, _bb module (__bb_fork_func): New function.
8899 (__bb_exit_func): If fcntl F_SETLKW is available, use it to lock
8901 * config/svr4.h (TARGET_HAS_F_SETLKW): Define.
8902 * tree.h (special_function_p): Update prototype.
8904 2000-01-26 Richard Henderson <rth@cygnus.com>
8906 * alpha.c (alpha_split_tfmode_pair): New.
8907 * alpha-protos.h: Declare it.
8908 * alpha.md (abstf2, negtf2): New.
8909 (movtf insn): Add input G constraint.
8910 (movtf splitter): Use alpha_split_tfmode_pair.
8912 2000-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8914 * i386/cygwin.h: PROTO -> PARAMS.
8916 2000-01-26 Jakub Jelinek <jakub@redhat.com>
8918 * config/sparc/sparc.c (sparc_emit_float_lib_cmp): Handle
8919 TARGET_ARCH32 again. Handle ORDERED, UN* and LTGT comparisons
8920 using _Qp_cmp/_Q_cmp and testing the return value.
8921 (print_operand): Call reverse_condition_maybe_unordered if
8922 we are handling CCFPmode or CCFPEmode.
8923 Handle ORDERED, UN* and LTGT comparisons.
8924 * config/sparc/sparc.md (cmptf): Use even on TARGET_ARCH32
8925 if not TARGET_HARD_QUAD.
8926 (seq, sne, sgt, slt, sge, sle, beq, bne, bgt, blt, bge, ble,
8927 bunordered, bordered, bungt, bunlt, buneq, bunge, bunle, bltgt):
8928 Call sparc_emit_float_lib_cmp even on TARGET_ARCH32.
8929 Adjust gen_b* calls so that they reflect return comparison of
8930 sparc_emit_float_lib_cmp.
8932 2000-01-26 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
8934 * config/alpha/alpha.c (alpha_emit_xfloating_cvt): Do not assume
8935 incoming operands array is large enough for one more operand.
8936 (alpha_emit_xfloating_arith): Likewise.
8938 2000-01-25 Zack Weinberg <zack@wolery.cumb.org>
8940 * fixinc/Makefile.in (machname.h): SunOS 4 sed can't handle a
8941 file with one line and no trailing newline.
8942 Patch by Kaveh Ghazi <ghazi@caip.rutgers.edu>.
8943 * fixinc/fixtests.c (machine_name_test): Fix fencepost error
8944 checking if the match is on the line.
8945 * fixinc/gnu-regex.c: Provide regerror not __regerror.
8947 2000-01-25 Richard Henderson <rth@cygnus.com>
8949 * sparc.c (output_cbranch): Fix accidental squashing of the
8950 fp branch pre-delay nop.
8952 2000-01-25 Richard Henderson <rth@cygnus.com>
8954 * tree.def (UNNE_EXPR): Remove.
8955 * c-typeck.c (build_binary_op): Don't handle it.
8956 * expr.c (expand_expr, do_jump, do_store_flag): Likewise.
8958 * rtl.def (UNNE): Remove.
8960 * jump.c (reverse_condition): Update accordingly.
8961 (swap_condition): Likewise.
8962 (comparison_dominates_p): Handle unordered comparisons.
8963 (reverse_condition_maybe_unordered): New.
8964 * rtl.h (reverse_condition_maybe_unordered): Declare.
8966 * sparc.c (select_cc_mode): Update for UNNE/LTGT.
8967 (output_cbranch): Use reverse_condition_maybe_unordered and LTGT.
8968 * sparc.h (REVERSIBLE_CC_MODE): Always true. Update docs.
8969 * sparc.md (bltgt): New.
8971 2000-01-25 Nick Clifton <nickc@redhat.com>
8973 * emit-rtl.c (emit_insn): Only check machine class insns for
8974 improper emission of a RETURN.
8976 2000-01-25 Richard Henderson <rth@cygnus.com>
8978 * Makefile.in (flow.o): Depend on $(EXPR_H).
8979 * flow.c (mark_regs_live_at_end): Use hard_function_value, i.e.
8980 duplicate the structure of diddle_return_value for keeping regs live.
8982 2000-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
8984 * loop.c (current_loop_info): Delete.
8985 (consec_sets_invariant_p): Add loop argument, update callers.
8986 (get_condition_for_loop): Likewise.
8987 (count_nonfixed_reads, update_giv_derive): Likewise.
8988 (simplify_giv_expr, general_induction_var): Likewise.
8989 (consec_sets_giv, recombine_givs): Likewise.
8990 (move_movables): Delete loop_start and loop_end arguments,
8991 add loop argument, and update callers.
8992 (find_mem_givs, check_final_value): Likewise.
8993 (record_giv, maybe_eliminate_biv, maybe_eliminate_biv_1): Likewise.
8994 (loop_invariant_p): Rename from invariant_p, add loop argument, and
8996 (basic_induction_var): Add loop argument, delete loop_level argument,
8998 * unroll.c (iteration_info): Delete loop_start and loop_end arguments,
8999 add loop argument, and update callers.
9000 (find_splittable_regs, find_splittable_givs): Likewise.
9001 (reg_dead_after_loop, loop_find_equiv_value): Likewise.
9002 (final_biv_value, final_giv_value, back_branch_in_range_p): Likewise.
9003 (biv_total_increment): Delete loop_start and loop_end arguments;
9005 (precondition_loop_p): Delete loop_start and loop_info arguments;
9007 * loop.h (get_condition_for_loop): Add loop argument.
9008 (biv_total_increment): Delete loop_start and loop_end arguments.
9009 (precondition_loop_p): Delete loop_start and loop_info arguments;
9011 (final_biv_value): Delete loop_start and loop_end arguments;
9013 (final_giv_value, back_branch_in_range_p): Likewise.
9015 2000-01-25 Gavin Romig-Koch <gavin@cygnus.com>
9017 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Fix for mips16.
9019 2000-01-25 Gavin Romig-Koch <gavin@cygnus.com>
9021 * Makefile.in (c-gperf.h) : Change the "See" pointer to
9022 point to the new "generated_files" doc.
9024 2000-01-25 Clinton Popetz <cpopetz@cygnus.com>
9026 * config/fp-bit.c (_unord_f2): Fix typo.
9028 2000-01-25 Zack Weinberg <zack@wolery.cumb.org>
9030 * c-common.c, c-decl.c, c-lang.c, c-lex.c, c-parse.in, c-pragma.c,
9031 c-typeck.c, objc/objc-act.c: Remove all references to obstack
9032 functions obsoleted by GC, such as push_obstacks_nochange,
9033 end_temporary_allocation, savealloc, saveable_tree_cons, etc.
9034 and code which existed only to decide whether or not to call
9035 them. Remove now-unused NESTED argument from start_function;
9036 all callers changed. Do not change behavior based on ggc_p.
9037 The use of the ixp_obstack in c-iterate.c and the util_obstack
9038 in objc/objc-act.c remain; these are not obsoleted by garbage
9040 * c-tree.h: Update prototype for start_function.
9042 * c-parse.y, c-parse.c, objc/objc-parse.c, objc/objc-parse.y: Rebuild.
9044 2000-01-25 Clinton Popetz <cpopetz@cygnus.com>
9046 * config/mips/mips.md (zero_extendsidi2_internal): Disable for
9049 2000-01-25 Richard Henderson <rth@cygnus.com>
9051 * sparc-protos.h (select_cc_mode): Declare.
9052 * sparc.c (select_cc_mode): New. Handle unordered compares.
9053 (output_cbranch): Always reverse via code change. Handle
9054 unordered compares. Factor tests and string updates.
9055 * sparc.h (SELECT_CC_MODE): Split out to select_cc_mode.
9056 (REVERSIBLE_CC_MODE): Also exclude CCFPmode.
9057 * sparc.md (bunordered, bordered): New.
9058 (bungt, bunlt, buneq, bunge, bunle): New.
9060 2000-01-25 Richard Henderson <rth@cygnus.com>
9062 * dwarf2out.c (dwarf2out_init): Use ggc_add_rtx_varray_root.
9063 * ggc-common.c (ggc_add_rtx_varray_root): New.
9064 (ggc_mark_rtx_varray): New.
9065 (ggc_mark_rtx_varray_ptr): New. Shift all ggc_mark_foo_ptr
9066 functions down below ggc_mark_foo.
9067 * ggc.h (ggc_add_rtx_varray_root, ggc_mark_rtx_varray): Declare.
9069 2000-01-25 Richard Henderson <rth@cygnus.com>
9071 * alpha.c (secondary_reload_class): Don't allocate a secondary
9072 for integral mode memories into FLOAT_REGS. Rearrange the more
9073 complicated memory expression inward.
9075 2000-01-25 Zack Weinberg <zack@wolery.cumb.org>
9077 * inclhack.def: Fixes to play nicer with FreeBSD, and
9078 corrections to comments.
9079 (cxx_unready): Add select expression.
9080 (irix_sockaddr): Add bypass expression.
9081 (machine_ansi_h_va_list): New fix.
9082 (stdio_va_list): No need to edit _BSD_VA_LIST_.
9083 Split out addition of "#include <stdarg.h>" to...
9084 (stdio_stdarg_h): ... here.
9085 (systypes_for_aix): Rename to systypes_stdlib_size_t. Apply
9086 to stdlib.h also. Do not munge _BSD_SIZE_T_.
9087 (sysz_stdlib_for_sun): Delete duplicate fix for unprotected
9089 (ultrix_ifdef): Tighten up select expression.
9091 * fixincl.tpl: Exorcise 'exesel'. Rewrite calculations of
9092 re_ct and max_mach to avoid use of shell. Make printed names
9093 match names in inclhack.def. Use static copyright date.
9094 Don't count c_test and test expressions as requiring regex_t
9095 slots. Add some commentary.
9096 * inclhack.tpl: Do not include the 'This script contains N
9097 fixup scripts' line if PROGRAM is defined. Use static
9100 2000-01-24 Jason Merrill <jason@casey.cygnus.com>
9102 * dwarf2out.c: include "varray.h", not dyn-string.h.
9103 (ASM_OUTPUT_DWARF2_ADDR_CONST, ASM_NAME_TO_STRING): Lose.
9104 (addr_const_to_string, addr_to_string): Lose.
9105 (ASM_OUTPUT_DWARF_ADDR_CONST): Copy from dwarfout.c.
9106 (struct dw_val_struct): val_addr is now an rtx.
9107 (add_AT_addr, AT_addr, free_AT, output_aranges): Adjust.
9108 (used_rtx_varray): New varray.
9109 (dwarf2out_init): Initialize it.
9111 (mem_loc_descriptor, add_const_value_attribute): Call it instead of
9113 * arm/telf.h, arm/unknown-elf.h, mn10200.h, mn10300.h,
9114 sparc/sp64-elf.h: Remove definition of ASM_OUTPUT_DWARF2_ADDR_CONST.
9115 * Makefile.in (dwarf2out.o): Update dependencies.
9117 2000-01-24 Richard Henderson <rth@cygnus.com>
9119 * i386.c (i386_dwarf_output_addr_const): New.
9120 * i386.h (ASM_OUTPUT_DWARF_ADDR_CONST): New.
9122 * dwarf2out.c (mem_loc_descriptor): Call ASM_SIMPLIFY_DWARF_ADDR
9124 * dwarfout.c (output_mem_loc_descriptor): Likewise.
9125 * i386.c (i386_simplify_dwarf_addr): New.
9126 * i386.h (ASM_SIMPLIFY_DWARF_ADDR): New.
9128 Mon Jan 24 16:56:10 2000 Jim Wilson <wilson@cygnus.com>
9130 * dwarf2out.c (gen_struct_or_union_type_die): Set complete if
9131 TYPE_STUB_DECL is NULL.
9133 2000-01-24 Richard Henderson <rth@cygnus.com>
9135 * builtins.c (expand_tree_builtin): Move ...
9136 * c-common.c (expand_tree_builtin): ... here.
9138 2000-01-25 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
9140 * loop.h (LOOP_INFO): New accessor macro.
9141 * basic-block.h (struct loop): Rename field `info' to `aux'.
9142 * loop.c (scan_loop): Replace loop->info with LOOP_INFO (loop).
9143 (prescan_loop, strength_reduce, check_dbra_loop, insert_bct): Likewise.
9144 * unroll.c (loop_iterations, unroll_loop): Likewise.
9146 2000-01-24 Christopher Faylor <cgf@cygnus.com>
9148 * config/i386/t-cygwin: Accomodate new winsup directory layout
9149 when searching for include files.
9151 2000-01-24 Richard Henderson <rth@cygnus.com>
9153 * rtl.def: Add unordered fp comparisions.
9154 * tree.def: Likewise.
9155 * tree.h: Add ISO C 9x unordered fp comparision builtins.
9157 * builtins.c (expand_tree_builtin): New function.
9158 * c-typeck.c (build_function_call): Use it.
9159 (build_binary_op): Support unordered compares.
9160 * c-common.c (c_common_nodes_and_builtins): Add unordered compares.
9162 * combine.c (known_cond): Handle reverse_condition returning UNKNOWN.
9163 (reversible_comparison_p): Allow UNORDERED/ORDERED to be reversed.
9164 * cse.c (fold_rtx): Check FLOAT_MODE_P before reversing.
9165 (record_jump_equiv): Handle reverse_condition returning UNKNOWN.
9166 * jump.c (reverse_condition): Don't abort for UNLE etc, but
9168 (swap_condition): Handle unordered compares.
9169 (thread_jumps): Check can_reverse before reversing.
9170 * loop.c (get_condition): Likewise. Allow UNORERED/ORDERED to be
9173 * optabs.c (can_compare_p): New argument CODE. Verify branch or
9174 setcc is present before acking for cmp_optab. Update all callers.
9175 (prepare_float_lib_cmp, init_optabs): Handle UNORDERED.
9176 * expmed.c (do_cmp_and_jump): Update for can_compare_p.
9177 * expr.c (expand_expr): Likewise. Support unordered compares.
9178 (do_jump, do_store_flag): Likewise.
9179 * expr.h (enum libfunc_index): Add unordered compares.
9181 * Makefile.in (FPBIT_FUNCS): Add _unord_sf.
9182 (DPBIT_FUNCS): Add _unord_df.
9183 * config/fp-bit.c (_unord_f2): New.
9184 * fp-test.c (main): Try unordered compare builtins.
9186 * alpha-protos.h (alpha_fp_comparison_operator): Declare.
9187 * alpha.c (alpha_comparison_operator): Check mode properly.
9188 (alpha_swapped_comparison_operator): Likewise.
9189 (signed_comparison_operator): Likewise.
9190 (alpha_fp_comparison_operator): New.
9191 (alpha_emit_conditional_branch): Handle unordered compares.
9192 * alpha.h (PREDICATE_CODES): Update.
9193 * alpha.md (fp compares): Use alpha_fp_comparison_operator.
9194 (bunordered, bordered): New.
9196 2000-01-24 Richard Henderson <rth@cygnus.com>
9198 * alpha.c (alpha_emit_xfloating_cvt): Thinko in operand manipulation.
9199 * alpha.md (movtf): New expander, insn, and splitter.
9201 Mon Jan 24 19:49:47 MET 2000 Jan Hubicka <jh@suse.cz>
9203 * reg-stack.c (subst_stack_regs_pat): Handle correctly USEs of
9206 Mon Jan 24 17:37:31 MET 2000 Jan Hubicka <jh@suse.cz>
9208 * i386.h (FIRST_PSEUDO_REGISTER): Set to 21.
9209 (FIXED_REGISTERS, CALL_USED_REGISTERS,
9210 REG_ALLOC_ORDER): Add frame pointer
9211 (FRAME_POINTER_REGNUM): Set to 20
9212 (HARD_FRAME_POINTER_REGNUM): New macro.
9213 (ELIMINABLE_REGS): Eliminate ARG_POINTER and FRAME_POINTER
9214 to HARD_FRAME_POINTER.
9215 (REGNO_OK_FOR_BASE_P): Accept FRAME_POINTER_REGNUM
9216 (REG_OK_FOR_INDEX_NONSTRICT_P): Likewise.
9217 (REG_OK_FOR_BASE_NONSTRICT_P): Likewise.
9218 (HI_REGISTER_NAMES): Add "frame".
9219 (CAN_ELIMINATE): Handle FRAME_POINTER_REGNUM elimination.
9220 (debug_reg): Handle FRAME_POINTER_REGNUM.
9221 (reg_class): Add arg pointer and frame pointer to NON_Q_REGS,
9222 GENERAL_REGS and INDEX_REGS.
9223 * i386.c (SAVED_REGS_FIRST): new macro.
9224 (AT_BP): Use hard_frame_pointer_rtx instead of frame_pointer_rtx
9225 (ix86_decompose_address, memory_address_length): Likewise.
9226 (regclass_map): Add frame pointer.
9227 (call_insn_operand): Handle frame_pointer_rtx.
9228 (reg_no_sp_operand): Likewise.
9229 (ix86_decompose_address): Handle frame_pointer_rtx as stack_pointer_rtx.
9230 (print_operand, legitimize_pic_address): Fix formating.
9231 (ix86_compute_frame_size): Make static, update prototype, new
9232 parameters padding1, padding2, use ix86_nsaved_regs, use
9233 stack_alignment_needed.
9234 (ix86_initial_elimination_offset): Handle FRAME_POINTER_REGNUM
9235 to HARD_FRAME_POINTER_REGNUM conversions.
9236 (ix86_expand_prologue): Handle SAVED_REGS_FIRST prologues.
9237 (ix86_expand_epilogue): Handle SAVED_REGS_FIRST epilogues.
9238 (print_reg): Abort on FRAME_POINTER_REGNUM
9240 Mon Jan 24 16:50:08 MET 2000 Jan Hubicka <jh@suse.cz>
9242 * i386.h (PREDICATE_CODES): Add aligned_operand.
9243 * i386.c (aligned_operand): New function.
9244 (ix86_aligned_p): Kill.
9245 * i386.md (movhi_1): Emit mov for aligned operands.
9246 (promoting peep2s): Use aligned_operand.
9248 2000-01-23 Zack Weinberg <zack@wolery.cumb.org>
9250 * fixinc/fixfixes.c (fix_char_macro_uses): Correct regular
9251 expression to allow underscores in macro names.
9252 (fix_char_macro_defines): Increment scanning pointer.
9254 2000-01-23 Richard Henderson <rth@cygnus.com>
9256 * alpha/osf.h (TARGET_HAS_XFLOATING_LIBS): Define.
9257 * alpha/osf5.h: New file.
9258 * configure.in (alpha-*-osf5): Add it to tm_file.
9260 * emit-rtl.c (operand_subword): Support TFmode on a 64-bit target.
9262 * alpha-protos.h (alpha_emit_xfloating_arith): Declare.
9263 (alpha_emit_xfloating_cvt, function_arg): Declare.
9264 * alpha.c (alpha_emit_conditional_branch): Call
9265 alpha_emit_xfloating_compare for TFmode compares.
9266 (alpha_lookup_xfloating_lib_func): New.
9267 (alpha_compute_xfloating_mode_arg): New.
9268 (alpha_emit_xfloating_libcall): New.
9269 (alpha_emit_xfloating_arith): New.
9270 (alpha_emit_xfloating_compare): New.
9271 (alpha_emit_xfloating_cvt): New.
9272 (print_operand): Add default abort case.
9273 (function_arg): Mind FUNCTION_ARG_PASS_BY_REFERENCE.
9274 * alpha.h (TARGET_HAS_XFLOATING_LIBS): New.
9275 (BIGGEST_ALIGNMENT): Increase to 128 bits.
9276 (RETURN_IN_MEMORY): True for TF/TCmode.
9277 (ALPHA_ARG_SIZE): TF/TCmode is passed indirect.
9278 (FUNCTION_ARG): Move to function_arg.
9279 (FUNCTION_ARG_PASS_BY_REFERENCE): New.
9280 (ASM_OUTPUT_LONG_DOUBLE): New.
9281 (ASM_OUTPUT_DOUBLE): Always output bits.
9282 * alpha.md (addtf3, divtf3, multf3, subtf3, cmptf): New.
9283 (fix_trunctfdi2, floatditf2, floatunsditf2): New.
9284 (extenddftf2, trunctfdf2): New.
9286 2000-01-23 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
9288 * config/sparc/sol2-sld-64.h (TRANSFER_FROM_TRAMPOLINE): Moved...
9289 * config/sparc/sol2.h: ... here.
9291 2000-01-24 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
9293 * basic-block.h (struct loops): New field `levels'.
9294 * flow.c (flow_loops_level_compute): Traverse all outer loops.
9295 (flow_loop_level_compute): Initialise level to 1.
9296 (flow_loops_find): Set loops->levels.
9297 (flow_loops_dump): Print loops->levels.
9299 2000-01-23 Richard Henderson <rth@cygnus.com>
9301 * libgcc2.c (dwarf_reg_size_table): Size with DWARF_FRAME_REGISTERS.
9302 (throw_helper): Iterate over DWARF_FRAME_REGISTERS.
9304 2000-01-23 Richard Henderson <rth@cygnus.com>
9306 * i386.c (dbx_register_map, svr4_dbx_register_map): New.
9307 * i386.h (DBX_REGISTER_NUMBER): Use them.
9308 * i386/beos-elf.h, i386/freebsd-elf.h, i386/i386elf.h: Likewise.
9309 * i386/linux.h, i386/osfrose.h, i386/ptx4-i.h: Likewise.
9310 * i386/rtemself.h, i386/sco5.h, i386/sysv4.h: Likewise.
9311 * i386/sequent.h: Kill incorrect comment.
9313 2000-01-23 Mark Mitchell <mark@codesourcery.com>
9315 * ggc-page.c (struct page_entry): Make `context_depth' an
9317 (struct globals): Likewise.
9319 2000-01-23 Clinton Popetz <cpopetz@cygnus.com>
9321 * loop.c (check_dbra_loop): When checking a loop for
9322 reversability, check the source of any stores to ensure
9323 they don't depend on an initial value.
9325 2000-01-23 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
9327 * config/c4x/c4x.h (ASM_OUTPUT_BSS): Redefine.
9329 2000-01-22 Zack Weinberg <zack@wolery.cumb.org>
9331 * fixinc/fixincl.c: Move declarations of 'pz_fname' and
9332 'pz_scan' into scope of entire function. Only affects
9333 compiles with -DDEBUG.
9335 2000-01-22 Alan Modra <alan@SPRI.Levels.UniSA.Edu.Au>
9337 * config/elfos.h (UNIQUE_SECTION): Restore uninitialised data
9338 section naming to that prior to 2000-01-07 patch.
9339 * config/mips/elf.h (UNIQUE_SECTION): Ditto.
9340 * config/mips/elf64.h (UNIQUE_SECTION): Ditto.
9341 * config/mips/iris6gld.h (UNIQUE_SECTION): Ditto.
9342 * config/i386/interix.c (UNIQUE_SECTION): Ditto.
9343 * config/i386/winnt.c (UNIQUE_SECTION): Ditto.
9345 2000-01-22 Bernd Schmidt <bernds@cygnus.co.uk>
9347 * config/arm/arm.c (soft_df_operand): Reject SUBREGs containing a
9350 2000-01-21 Jim Wilson <wilson@cygnus.com>
9352 * fixinc/inclhack.tpl: Test for directory before trying to cd into it.
9353 * fixinc/fixincl.sh, fixinc/inclhack.sh: Regenerate.
9355 2000-01-21 Zack Weinberg <zack@wolery.cumb.org>
9357 * cpphash.c (change_newlines): Delete function.
9358 (struct argdata): Delete 'newlines' and 'use_count' fields.
9359 (macroexpand): Remove code referencing those fields.
9361 2000-01-22 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
9363 * loop.c (loops_info): New variable.
9364 (loop_optimize): Allocate loops->array and free it on exit.
9365 Allocate memory for loops_info and assign to each loop,
9367 (find_and_verify_loops): Do not allocate loops->array.
9369 2000-01-21 Zack Weinberg <zack@wolery.cumb.org>
9371 * fixinc/fixfixes.c (machine_name_fix): Don't free 'scratch'.
9373 2000-01-21 Jakub Jelinek <jakub@redhat.com>
9375 * config/sparc/sparc.md (movsi_pic_label_ref): Avoid creating new
9376 pseudos if expanded after first flow.
9377 (movdi_pic_label_ref): Likewise.
9379 2000-01-20 Richard Henderson <rth@cygnus.com>
9381 * jump.c (jump_optimize_1): Don't do addr_vec optimizations at -O0.
9383 2000-01-20 Zack Weinberg <zack@wolery.cumb.org>
9385 * Makefile.in (fixinc.sh): Depend on specs.
9386 * fixinc/Makefile.in: Add rule to create machname.h.
9387 (fixlib.o): Depend on machname.h.
9388 * fixinc/fixtests.c (machine_name): New test.
9389 * fixinc/fixfixes.c (machine_name): New fix.
9390 * fixinc/fixlib.c (mn_get_regexps): New helper function for
9391 the machine_name test and fix.
9392 * fixinc/fixlib.h: Prototype it.
9393 * fixinc/inclhack.def (machine_name): Use the C test and fix.
9394 * fixinc/fixincl.x, fixinc/inclhack.sh: Rebuild.
9396 * gcc.c (do_spec_1) [case P]: Take care not to create
9397 identifiers with three leading or trailing underscores.
9399 * fixinc/Makefile.in (FIXINC_DEFS): Add -DIN_GCC.
9400 (fixincl): Don't specify libraries twice on link line.
9401 (gnu-regex.o): Remove special rule.
9402 * fixinc/gnu-regex.c: Define REGEX_MALLOC if C_ALLOCA was
9403 defined by config.h. Do not define _REGEX_RE_COMP.
9404 (regcomp): Allocate and initialize a fastmap.
9405 * fixinc/gnu-regex.h: Do not define _REGEX_RE_COMP.
9407 2000-01-20 Brad Lucier <lucier@math.purdue.edu>
9409 * Makefile.in (predict.o): Depend on $(EXPR_H), not expr.h.
9411 2000-01-19 Richard Henderson <rth@cygnus.com>
9413 * flow.c (propagate_block): Replace FIRST, LAST and BNUM
9414 arguments with BB. Update all callers. Tidy line wrapping.
9416 2000-01-19 Clinton Popetz <cpopetz@cygnus.com>
9418 * emit-rtl.c (try_split): Return last_insn if we split the
9421 Thu Jan 20 01:01:23 MET 2000 Jan Hubicka <jh@suse.cz>
9423 * i386-protos.h (ix86_compute_frame_size): Remove prototype.
9424 (ix86_initial_elimination_offset): Declare.
9425 * i386.c (ix86_nsaved_regs): Break out from ...
9426 (ix86_can_use_return_insn_p): ... here.
9427 (ix86_emit_save_regs): Break out from ...
9428 (ix86_expand_prologue): ... here.
9429 (ix86_emit_epilogue_esp_adjustment, ix86_emit_restore_regs): Break
9431 (ix86_expand_epilogue): ... here.
9432 (ix86_compute_frame_size): Make static, add prototype.
9433 (ix86_initial_elimination_offset): Break out from ...
9434 * i386.h (INITIAL_ELIMINATION_OFFSET): ... here.
9436 2000-01-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9438 * recog.h (OUT_FCN): Delete.
9440 * vax.md: Call `get_insn_template' instead of OUT_FCN.
9442 2000-01-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9444 * cppalloc.c: PROTO -> PARAMS.
9445 * cpperror.c: Likewise.
9446 * cppfiles.c: Likewise.
9447 * cpplib.c: Likewise.
9448 * cpplib.h: Likewise.
9450 * config/arm/arm-protos.h: PROTO -> PARAMS.
9451 * config/arm/arm.c: Likewise.
9452 * config/c4x/c4x.c: Likewise.
9453 * config/fr30/fr30-protos.h: Likewise.
9454 * config/nextstep.c: Likewise.
9455 * config/pa/pa.c: Likewise.
9456 * config/pj/pj.c: Likewise.
9457 * config/rs6000/rs6000.c: Likewise.
9458 * config/v850/v850-protos.h: Likewise.
9459 * config/v850/v850.c: Likewise.
9461 2000-01-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9463 * i370-protos.h: New file.
9465 * i370.c: Include tm_p.h. Fix compile time warnings.
9467 * i370.h: Move prototypes to i370-protos.h. Fix compile time
9470 * i370.md: Likewise.
9472 2000-01-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9474 * real.c (enan, einan, eiisnan, eiisneg, make_nan): Wrap in NANS.
9475 (target_isinf, target_isnan, eisnan): Mark parameter with
9477 (eiisinf): Wrap in INFINITY.
9478 (etoe113, etoe64, etoe53, etoe24): Wrap label `nonorm' in INFINITY.
9479 (ibmtoe): Remove unused variable `rndsav'.
9481 Wed Jan 19 20:23:06 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
9483 * sh.h (PASS_IN_REG_P): Remove extraneous paranthesis.
9484 (GO_IF_LEGITIMATE_ADDRESS): Added missing tab.
9486 2000-01-19 Zack Weinberg <zack@wolery.cumb.org>
9488 * fixinc/Makefile.in: Correct dependencies of fixincl and fixincl.o.
9489 * fixinc/fixfixes.c (IO_use, CTRL_use, IO_defn, CTRL_defn): New fixes.
9490 (fix_char_macro_defines, fix_char_macro_uses): New functions.
9492 * fixinc/fixlib.c (is_cxx_header): Do the text scan with a regexp.
9493 Recognize Emacs mode markers also.
9494 * fixinc/fixtests.c (else_endif_label): Fix bug in recognition of
9495 C++ comments in C++ headers. Call is_cxx_header only if
9498 * fixinc/inclhack.def (avoid_bool): Add select for the problem and
9500 (bsd43_io_macros, io_def_quotes, ioctl_fix_ctrl): Replace with...
9501 (io_def_quotes, io_use_quotes, ctrl_def_quotes, ctrl_use_quotes):
9502 ... these, which use the new C fixes.
9503 (math_exception): Escape literal '+' in bypass expression.
9505 * fixinc/fixincl.x, fixinc/fixincl.sh, fixinc/inclhack.sh:
9508 2000-01-19 Geoff Keating <geoffk@cygnus.com>
9510 * rtlanal.c (reg_referenced_p): A CLOBBER of a MEM uses any REGs
9513 2000-01-20 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
9515 * loop.c (loop_optimize): Allocate loop_info structure for each loop
9516 prior to calling scan_loop.
9518 Wed Jan 19 19:54:38 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
9520 * sh.c (find_barrier, gen_block_redirect): Fix indentation.
9521 (split_branches, calc_live_regs): Likewise.
9523 Wed Jan 19 19:12:36 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
9525 * sh.md (fpu_single, fp_mode): New attributes.
9527 2000-01-20 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
9529 * loop.c (current_loop_info): Renamed from loop_info_data
9530 and changed to a pointer.
9531 (loop_optimize): Allocate loop_info structure for each loop
9532 and initialise to zero.
9533 (scan_loop): Set current_loop_info.
9535 * unroll.c (loop_iterations): Don't abort if REG_USERVAR_P set
9538 2000-01-19 Richard Henderson <rth@cygnus.com>
9540 * stupid.c: Die die die.
9541 * Makefile.in (OBJS): Remove stupid.o.
9542 (stupid.o): Likewise.
9544 * except.c (emit_eh_context): Don't emit USEs for stupid.
9545 * explow.c (probe_stack_range): Likewise.
9546 * flags.h (obey_regdecls): Remove.
9547 * flow.c (find_basic_blocks): Don't run try_merge_blocks
9548 when not optimizing.
9549 (life_analysis): Limit data collection when not optimizing.
9550 (mark_regs_live_at_end): Always mark the return value registers.
9551 (mark_used_regs): Remove dummy RETURN case.
9552 (print_rtl_with_bb): Don't consult obey_regdecls.
9553 * function.c (use_variable, use_variable_after): Remove.
9554 (assign_parms): Consult optimize not obey_regdecls.
9555 (expand_function_start): Don't emit USEs for stupid.
9556 (expand_function_end): Likewise.
9557 * global.c (build_insn_chain): Export.
9558 * integrate.c (expand_inline_function): Kill return-value USE
9560 * jump.c (jump_optimize_1): Do simple jump optimizations and
9561 dead code elimination.
9562 (calculate_can_reach_end): Remove check_deleted argument.
9563 (delete_insn): Patch out insns even when not optimizing.
9564 * local-alloc.c (block_alloc): Don't do tying when not optimizing.
9565 * rtl.h (use_variable, use_variable_after): Remove declarations.
9566 (build_insn_chain): Declare.
9567 * stmt.c (expand_value_return): Don't emit USEs for stupid.
9568 (expand_end_bindings): Likewise.
9569 (expand_decl): Likewise. Consult optimize not obey_regdecls.
9570 * toplev.c (obey_regdecls): Remove.
9571 (rest_of_compilation): Don't set it. Kill stupid in favour of
9572 flow1, local-alloc, and reload.
9573 (main): Don't set obey_regdecls.
9575 * config/nextstep.c (handle_pragma): Likewise.
9577 * alpha/alpha.md (allocate_stack): Don't emit USEs for stupid.
9579 * arm/arm.h (CONDITIONAL_REGISTER_USAGE): Don't fix reg 0 for stupid.
9581 2000-01-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9583 * alpha-protos.h: PROTO -> PARAMS.
9584 * alpha.c: Likewise.
9586 * h8300.c: Likewise.
9587 * i386-protos.h: Likewise.
9589 * m32r-protos.h: Likewise.
9592 * mips.md: Likewise.
9593 * gmon-sol2.c: Likewise.
9594 * sparc.c: Likewise.
9596 2000-01-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9598 * ns32k-protos.h: New file.
9600 * ns32k.c: Fix compile time warnings.
9602 * ns32k.h: Move prototypes to ns32k-protos.h. Fix compile time
9605 * ns32k.md: Likewise.
9607 2000-01-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9609 * vax-protos.h: New file.
9611 * vax.c: Fix compile time warnings.
9613 * vax.h: Move prototypes to vax-protos.h. Fix compile time
9618 * vaxv.md: Likewise.
9620 2000-01-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9622 * romp-protos.h: New file.
9624 * romp.c: Fix compile time warnings.
9626 * romp.h: Move prototypes to romp-protos.h. Fix compile time
9629 * romp.md: Likewise.
9631 2000-01-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9633 * we32k-protos.h: New file.
9635 * we32k.c: Fix compile time warnings.
9637 * we32k.h: Move prototypes to we32k-protos.h. Fix compile time
9640 2000-01-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9642 * calls.c (emit_call_1): Mark parameter with ATTRIBUTE_UNUSED.
9644 * except.c (eh_regs): Likewise.
9646 * final.c (output_operand): Likewise.
9648 * fold-const.c (target_isinf, target_isnan): Likewise.
9650 Tue Jan 18 16:19:55 MET 2000 Jan Hubicka <hubicka@freesoft.cz>
9652 * i386.h (BIGGEST_ALIGNMENT): Set to 128.
9653 (BIGGEST_FIELD_ALIGNMENT): Set to (TARGET_ALIGN_DOUBLE ? 64 : 32)
9655 * i386.md (memstr): Do not use rep stosb for counts divisible by 4
9657 (clrstrsi): Rewrite.
9658 (strsethi, strsetqi): New expanders.
9659 (strsethi_1, strsetqi_1, rep_stossi, rep_stosqi): New insn patterns.
9660 (cmpstrsi): Emit compare insn before cmpstrsi_1
9661 (cmpstrsi_nz): use flags, set type to str, prefix_length to 1.
9662 (strlensi_1): Likewise.
9663 (cmpstrsi_1): Likewise; do not output compare.
9664 (strlen expander): Do not unroll when optimizing for size.
9665 (*subsi3_carry): Rename to subsi3_carry
9666 (addqi3_cc): New pattern.
9667 * i386.h (processor_costs): Add move_ratio field.
9668 (MOVE_RATIO): Use move_ratio field, set to 3 for OPTIMIZE_SIZE
9669 * i386.c (*_cost): Set move_ratio.
9670 (x86_unroll_strlen): Enable for Athlon, PPro and K6 too.
9671 (x86_expand_strlensi_1): Rewrite the main loop.
9673 2000-01-17 Richard Henderson <rth@cygnus.com>
9675 * combine.c (combine_simplify_rtx): Give FLOAT_STORE_FLAG_VALUE a mode.
9676 * cse.c (find_comparison_args, fold_rtx): Likewise.
9677 * integrate.c (subst_constants): Likewise.
9678 * loop.c (get_condition): Likewise.
9680 * tm.texi (FLOAT_STORE_FLAG_VALUE): Update docs.
9682 * alpha.h (FLOAT_STORE_FLAG_VALUE): Use REAL_VALUE_ATOF.
9684 2000-01-18 Martin v. Löwis <loewis@informatik.hu-berlin.de>
9686 * c-parse.in (SAVE_WARN_FLAGS): Create an INTEGER_CST.
9687 (RESTORE_WARN_FLAGS): Unpack it.
9688 Change semantic type of extension to ttype.
9689 * c-common.c (split_specs_attrs): Expect an INTEGER_CST.
9690 * c-parse.y, c-parse.c, objc/objc-parse.y,
9691 objc/objc-parse.c: Regenerate.
9693 2000-01-17 Zack Weinberg <zack@wolery.cumb.org>
9695 * fixinc/fixlib.c: Add copyright notice.
9696 (compile_re): New function.
9697 * fixinc/fixlib.h: Prototype compile_re.
9699 * fixinc/fixfixes.c, fixinc/fixtests.c, fixinc/fixincl.c:
9700 Use compile_re to compile regular expressions.
9702 * fixinc/fixincl.c (egrep_test): Don't bother asking regexec
9703 where the pattern matched.
9705 * fixinc/inclhack.def (sun_memcpy): Move to AAB_sun_memcpy,
9707 (ultrix_ansi_compat): Likewise.
9708 (interactv_add1): Rename to 'isc_omits_with_stdc', remove shell test,
9710 (interactv_add2, interactv_add3): Delete.
9711 (x11_sprintf): Don't use filename glob.
9712 * fixinc/fixincl.x, fixinc/inclhack.sh, fixinc/fixincl.sh:
9715 2000-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9717 * print-rtl.c: PROTO -> PARAMS.
9719 * reg-stack.c: Likewise.
9720 * resource.c: Likewise.
9721 * sdbout.h: Likewise.
9722 * simplify-rtx.c: Likewise.
9723 * stor-layout.c: Likewise.
9724 * stupid.c: Likewise.
9725 * xcoffout.c: Likewise.
9726 * xcoffout.h: Likewise.
9728 2000-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9730 * toplev.c: PROTO -> PARAMS.
9731 * toplev.h: Likewise.
9734 * unroll.c: Likewise.
9735 * varasm.c: Likewise.
9736 * varray.c: Likewise.
9737 * varray.h: Likewise.
9739 2000-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9741 * reload.c: PROTO -> PARAMS.
9742 * reload.h: Likewise.
9743 * reload1.c: Likewise.
9744 * reorg.c: Likewise.
9745 * resource.h: Likewise.
9748 * rtlanal.c: Likewise.
9749 * sbitmap.h: Likewise.
9750 * sdbout.c: Likewise.
9751 * stack.h: Likewise.
9753 * system.h: Likewise.
9755 2000-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9757 * machmode.h: PROTO -> PARAMS.
9758 * mbchar.h: Likewise.
9759 * mips-tdump.c: Likewise.
9760 * mips-tfile.c: Likewise.
9761 * optabs.c: Likewise.
9762 * output.h: Likewise.
9763 * prefix.c: Likewise.
9764 * profile.c: Likewise.
9765 * protoize.c: Likewise.
9767 * recog.c: Likewise.
9768 * recog.h: Likewise.
9769 * regclass.c: Likewise.
9770 * regmove.c: Likewise.
9773 2000-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9775 * ggc-common.c: PROTO -> PARAMS.
9776 * ggc-page.c: Likewise.
9777 * ggc-simple.c: Likewise.
9779 * global.c: Likewise.
9780 * graph.c: Likewise.
9781 * gthr-win32.h: Likewise.
9782 * haifa-sched.c: Likewise.
9783 * halfpic.h: Likewise.
9784 * integrate.c: Likewise.
9785 * integrate.h: Likewise.
9788 * local-alloc.c: Likewise.
9792 2000-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9794 * genattr.c: PROTO -> PARAMS.
9795 * genattrtab.c: Likewise.
9796 * gencheck.c: Likewise.
9797 * gencodes.c: Likewise.
9798 * genconfig.c: Likewise.
9799 * genemit.c: Likewise.
9800 * genextract.c: Likewise.
9801 * genflags.c: Likewise.
9802 * gengenrtl.c: Likewise.
9803 * genopinit.c: Likewise.
9804 * genoutput.c: Likewise.
9805 * genpeep.c: Likewise.
9806 * genrecog.c: Likewise.
9808 2000-01-16 Mark Mitchell <mark@codesourcery.com>
9810 * tree.h (BINFO_VPTR_FIELD): Augment documentation.
9812 2000-01-16 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
9814 * aclocal.m4 (AC_FUNC_MMAP_ZERO): New macro.
9815 * configure.in (AC_FUNC_MMAP_ZERO): Use instead of AC_FUNC_MMAP.
9816 * ggc-page.c: Replace HAVE_MMAP with HAVE_MMAP_ZERO.
9817 * configure, config.in: Rebuilt.
9819 2000-01-16 Zack Weinberg <zack@wolery.cumb.org>
9821 * config/i386/i386.md: Add peephole to merge successive stack
9824 Sat Jan 15 15:41:14 EST 2000 John Wehle (john@feith.com)
9826 * gcse.c (insert_insn_end_bb): Use emit_block_insn_before
9827 instead of emit_insn_before. Also handle NOTE_INSN_BASIC_BLOCK
9828 when walking backwards to find all the parameter loads when
9829 the basic block ends in a call.
9831 2000-01-15 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
9833 * loop.c (this_loop_info): Delete.
9834 (uid_loop): Add in place of uid_loop_num. All uses updated.
9835 (loop_number_exit_count): Delete and replace with entry in loop
9836 structure. All uses updated.
9837 (loop_number_loop_starts, loop_number_loop_ends): Likewise.
9838 (loop_number_loop_cont, loop_number_cont_dominator): Likewise.
9839 (loop_outer_loop): Likewise.
9840 (loop_invalid, loop_number_exit_labels): Likewise.
9841 (loop_used_count_register): Delete and replace with entry in
9842 loop_info structure.
9843 (find_and_verify_loops): Add loops argument.
9844 (verify_dominator, mark_loop_jump, prescan_loop): Replace loop_start,
9845 loop_end, etc. arguments with loop structure pointer. All callers
9847 (loop_reg_used_before_p, scan_loop, strength_reduce): Likewise.
9848 (check_dbra_loop, next_insn_in_loop, try_copy_prop): Likewise.
9849 (load_mems_and_recount_loop_regs_set, load_mems): Likewise.
9850 (insert_bct): Likewise.
9851 (basic_induction_var): New argument level.
9852 * loop.h (struct loop_info): Delete fields num, loops_enclosed,
9853 vtop, and cont. Add used_count_register.
9854 (uid_loop): Delete declaration.
9855 (loop_number_exit_count): Likewise.
9856 (loop_number_loop_starts, loop_number_loop_ends): Likewise.
9857 (loop_number_loop_cont, loop_number_cont_dominator): Likewise.
9858 (loop_outer_loop, loop_used_count_register): Likewise.
9859 (loop_invalid, loop_number_exit_labels): Likewise.
9860 (unroll_loop): Replace loop_start and loop_end arguments
9861 with loop structure pointer.
9862 (loop_precondition_p, loop_iterations): Likewise.
9863 Include basic-block.h.
9864 * unroll.c: (unroll_loop): Replace loop_start and loop_end arguments
9865 with loop structure pointer.
9866 (loop_precondition_p, loop_iterations): Likewise.
9867 * basic-block.h (struct loop): New entries vtop, cont,
9868 cont_dominator, start, end, top, scan_start, exit_labels,
9870 * Makefile.in (LOOP_H): Add basic-block.h to dependencies.
9872 2000-01-15 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
9874 * defaults.h (ASM_OUTPUT_ASCII): Use ISDIGIT.
9876 2000-01-14 Nathan Sidwell <sidwell@codesourcery.com>
9878 * config.in: Rebuilt for 2000-01-13 change to acconfig.h.
9880 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9882 * pdp11-protos.h: New file.
9884 * pdp11.c: Include tm_p.h. Add static prototypes. Fix compile
9887 * pdp11.h: Move prototypes to pdp11-protos.h. Fix compile time
9890 * pdp11.md: Likewise.
9894 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9896 * mn10300-protos.h: New file.
9898 * mn10300.c: Include tm_p.h. Add static prototypes. Fix compile
9901 * mn10300.h: Move prototypes to mn10300-protos.h. Fix compile time
9904 * mn10300.md: Likewise.
9906 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9908 * mn10200-protos.h: New file.
9910 * mn10200.c: Include tm_p.h. Add static prototypes. Fix compile
9913 * mn10200.h: Move prototypes to mn10200-protos.h. Fix compile time
9916 * mn10200.md: Likewise.
9918 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9920 * h8300-protos.h: New file.
9922 * h8300.c: Include tm_p.h. Add static prototypes. Fix compile
9925 * h8300.h: Move prototypes to h8300-protos.h. Fix compile time
9928 * h8300.md: Likewise.
9930 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9932 * varasm.c (asm_output_bss): Mark parameters with ATTRIBUTE_UNUSED.
9933 (asm_emit_uninitialised): Likewise.
9935 2000-01-13 Gavin Romig-Koch <gavin@cygnus.com>
9937 * config/mips/mips.h (ISA_HAS_INT_CONDMOVE): New.
9938 * config/mips/mips.md: Use ISA_HAS_INT_CONDMOVE.
9940 2000-01-14 Clinton Popetz <cpopetz@cygnus.com>
9942 * config/mips/mips.c (override_options): Don't turn on extra
9943 alignment for mips16.
9945 2000-01-14 Clinton Popetz <cpopetz@cygnus.com>
9947 * config/mips/mips.c (mips_va_arg): Fix fprv for the 32 bit
9948 eabi, and make sure queued POSTINCREMENT rtl is emitted at
9951 2000-01-14 Clinton Popetz <cpopetz@cygnus.com>
9953 * builtins.c (PAD_VARARGS_DOWN): Define.
9954 (std_expand_builtin_va_arg): Use the above macro.
9955 * config/mips/mips.h (PAD_VARARGS_DOWN): Define.
9956 * tm.texi (Register Arguments): Document the above macro.
9958 2000-01-14 Nick Clifton <nickc@cygnus.com>
9960 * emit-rtl.c (emit_insn): If checking is enabled, make sure
9961 that this function has not been used to emit a jump
9964 * jump.c (return_jump_1): Cope with being passed a null rtx.
9966 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9968 * eh-common.h: PROTO -> PARAMS.
9969 * emit-rtl.c: Likewise.
9970 * errors.c: Likewise.
9971 * errors.h: Likewise.
9972 * except.c: Likewise.
9973 * except.h: Likewise.
9974 * explow.c: Likewise.
9975 * expmed.c: Likewise.
9978 * final.c: Likewise.
9979 * fix-header.c: Likewise.
9981 * fold-const.c: Likewise.
9982 * function.c: Likewise.
9983 * function.h: Likewise.
9985 * gcov-io.h: Likewise.
9989 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9991 * sh-protos.h: New file.
9993 * sh.c: Include insn-config.h, toplev.h, recog.h and tm_p.h.
9994 Add static prototypes. Fix compile time warnings.
9996 * sh.h: Move prototypes to sh-protos.h. Fix compile time warnings.
10000 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10002 * arc-protos.h: New file.
10004 * arc.c: Include tm_p.h. Add static prototypes. Fix compile
10007 * arc.h: Move prototypes to arc-protos.h. Fix compile time
10010 * arc.md: Likewise.
10012 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10014 * dsp16xx-protos.h: New file.
10016 * dsp16xx.c: Include tm_p.h. Add static prototypes. Fix compile
10019 * dsp16xx.h: Move prototypes to dsp16xx-protos.h. Fix compile time
10022 * dsp16xx.md: Likewise.
10024 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10026 * convex-protos.h: New file.
10028 * convex.c: Include tm_p.h. Add static prototypes. Fix compile
10031 * convex.h: Move prototypes to convex-protos.h. Fix compile time
10034 2000-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10036 * elxsi-protos.h: New file.
10038 * elxsi.c: Include tm_p.h. Add static prototypes. Fix compile
10041 * elxsi.h: Move prototypes to elxsi-protos.h. Fix compile time
10044 * elxsi.md: Likewise.
10046 2000-01-14 Clinton Popetz <cpopetz@cygnus.com>
10048 * config/mips/mips.h (REGISTER_MOVE_COST): Remove redundant
10049 case for moving from HI/LO/HI_LO_REG. This makes the behavior
10050 match the comment for MIPS16.
10052 Fri Jan 14 00:28:06 2000 Jeffrey A Law (law@cygnus.com)
10054 * flow.c (split_edge): Do not call set_block_for_insn if we
10055 do not have a basic_block_for_insn structure.
10057 * fr30.h (TRAMPOLINE_TEMPLATE): Use nops to ensure the static chain
10058 and destination functions are 32bit aligned within the trampoline.
10059 (TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE): Corresponding changes.
10060 (TRAMPOLINE_ALIGNMENT): Define.
10062 * cse.c (cse_insn): When changing (set (pc) (reg)) to
10063 (set (pc) (label_ref)), verify the change creates a valid insn.
10065 * fr30.c (call_operand): Tighten and rework to match rules for
10066 call RTL expressions.
10067 * fr30.h (PREDICATE_CODES, case call_operand): Only allow MEMs.
10068 * fr30.md (call patterns): Improve constraints.
10070 Thu Jan 13 23:44:03 2000 Richard Henderson <rth@cygnus.com>
10072 * fr30.c (fr30_expand_epilogue): Revert last change.
10073 Use emit_jump_insn for the return insn.
10075 Thu Jan 13 14:46:03 2000 Jason Eckhardt <jle@cygnus.com>
10076 Stan Cox <scox@cygnus.com>
10078 * predict.c: New file. Preliminary infrastructure work for static
10079 branch prediction and basic block reordering.
10080 * basic-block.h: Add prototype for estimate_probability.
10081 * Makefile.in: Add rules for predict.o.
10083 2000-01-13 Jason Merrill <jason@yorick.cygnus.com>
10085 * fixincludes (va_list): Use __not_va_list__ for the dummy.
10086 * fixinc/*: Likewise.
10088 2000-01-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10090 * cccp.c: PROTO -> PARAMS.
10091 * cexp.y: Likewise.
10092 * collect2.c: Likewise.
10093 * combine.c: Likewise.
10094 * convert.h: Likewise.
10096 * dbxout.c: Likewise.
10097 * dbxout.h: Likewise.
10098 * diagnostic.c: Likewise.
10099 * doprint.c: Likewise.
10100 * dwarf2out.c: Likewise.
10101 * dwarf2out.h: Likewise.
10102 * dwarfout.c: Likewise.
10103 * dwarfout.h: Likewise.
10104 * dyn-string.h: Likewise.
10106 2000-01-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10108 * calls.c (emit_call_1): Wrap varaible `struct_value_size_rtx' in
10109 macro conditionals guarding use.
10111 * dwarf2out.c: Include "tm_p.h".
10113 * function.c (locate_and_pad_parm): Mark parameter with
10115 (expand_function_end): Likewise for variable `context'.
10117 * reorg.c (make_return_insns): Wrap prototype in macro HAVE_return.
10119 2000-01-13 Nick Clifton <nickc@cygnus.com>
10121 * config/fr30/fr30.c (fr30_expand_epilogue): Emit USEs of pop'ed
10122 register to prevent compile time warnings.
10124 2000-01-13 Zack Weinberg <zack@wolery.cumb.org>
10126 * longlong.h [i386] (udiv_qrnnd): Rename 'd' argument to 'dv'
10127 to avoid -Wtraditional warning.
10129 2000-01-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10131 * 1750a-protos.h: New file.
10133 * 1750a.c: Include tm_p.h. Add static prototypes. Fix compile
10136 * 1750a.h: Move prototypes to 1750a-protos.h. Fix compile time
10139 * 1750a.md: Likewise.
10141 2000-01-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10143 * a29k-protos.h: New file.
10145 * a29k.c: Include tm_p.h. Add static prototypes. Fix compile
10148 * a29k.h: Move prototypes to a29k-protos.h. Fix compile time
10151 2000-01-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10153 * clipper-protos.h: New file.
10155 * clipper.c: Include tm_p.h. Add static prototypes. Fix compile
10158 * clipper.h: Move prototypes to clipper-protos.h. Fix compile time
10161 Thu Jan 13 16:03:06 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
10163 * reload1.c (reload_combine_note_store): Use HARD_REGNO_NREGS.
10165 2000-01-13 Nathan Sidwell <sidwell@codesourcery.com>
10167 * configure.in (--enable-new-gxx-abi): New option.
10168 * acconfig.h (ENABLE_NEW_GXX_ABI): New define.
10169 * Makefile.in (GXX_ABI_FLAG): New variable.
10170 * configure: Regenerate.
10172 2000-01-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
10174 * stor-layout.c (layout_type): Use FORCE_STRUCT_BLK.
10175 * tm.texi (FORCE_STRUCT_BLK): Document.
10176 * config/c4x/c4x.h (FORCE_STRUCT_BLK): New macro.
10178 Wed Jan 12 23:12:47 2000 Hans-Peter Nilsson <hp@axis.com>
10180 * config/ns32k/ns32k.md: Revert Jan 9 change.
10182 * genrecog.c (maybe_both_true_2): Do not compare a predicate-test
10183 to a mode-test, if the predicate is address_operand.
10185 Wed Jan 12 22:34:00 2000 Jeffrey A Law (law@cygnus.com)
10187 * combine.c (if_then_else_cond): Be careful about what kinds
10188 of RTL expressions are passed to operand_subword.
10190 * flow.c (split_edge): If we have to insert a new jump, make
10191 sure to associate it with a basic block.
10193 * flow.c (commit_one_edge_insertion): A block with one successor
10194 can end in a JUMP_INSN that is not a simplejump.
10196 2000-01-12 Robert Lipe <robertl@sco.com>
10198 * i386/sco5.h (INIT_SECTION_ASM_OP_COFF): Rename section to "ctor".
10199 (BUILD_VA_LIST_TYPE): Define.
10200 (EH_FRAME_SECTION_ASM_OP): Explictly define to better interact
10203 2000-01-12 Jason Merrill <jason@casey.cygnus.com>
10205 * cccp.c (do_pragma): Add cast to (char *).
10207 2000-01-12 Richard Henderson <rth@cygnus.com>
10208 Fred Fish <fnf@be.com>
10209 Jason Merrill <jason@cygnus.com>
10211 * configure.in (i?86-*-beos{pe,elf,}*): Recognize.
10212 * i386/t-beos, i386/x-beos, i386/xm-beos.h: New files.
10213 * i386/beos-elf.h, i386/beos-pe.h: New files.
10215 * Makefile.in (CROSS_SYSTEM_HEADER_DIR): New.
10216 * cross-make (SYSTEM_HEADER_DIR): Define using
10217 CROSS_SYSTEM_HEADER_DIR.
10219 * gcc.c (LIBRARY_PATH_ENV): Provide default.
10220 (process_command): Use it.
10221 (main): Likewise. Kill trailing = from env vars.
10222 (build_search_list): Put it back.
10223 * collect2.c (main): Use LIBRARY_PATH_ENV.
10225 * configure.in (GCC_NEED_DECLARATIONS): Add environ.
10226 * toplev.c: Use NEED_DECLARATION_ENVIRON.
10228 * tm.texi (Frame Layout): Document SMALL_STACK.
10229 * c-common.c (c_common_nodes_and_builtins): Check it.
10231 * system.h: Undef alloca after including glibc's <stdlib.h>,
10232 if USE_C_ALLOCA is defined.
10234 * gcc.c (set_input): New fn.
10235 (main): After all input files are compiled, reset the input file
10238 * aclocal.m4 (rindex, index): If already defined, don't attempt
10241 * ginclude/varargs.h: (__va_list__): Define ifndef.
10242 * ginclude/stdarg.h: Likewise.
10244 * ginclude/stddef.h (__WCHAR_TYPE__) [BEOS]: Use int
10245 instead of unsigned char.
10247 * hash.h (true, false, boolean): Undef before enum.
10249 * expmed.c (choose_multiplier): Cast &mhigh_lo and &mhigh_hi to be
10250 proper type of "HOST_WIDE_INT *", rather than their natural type of
10251 "unsigned HOST_WIDE_INT *".
10253 2000-01-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10255 * svr3.h (ASM_FILE_START): Wrap if-clause in squigly brackets.
10257 * recog.c (memory_address_p): Mark parameter with ATTRIBUTE_UNUSED.
10259 * regclass.c (choose_hard_reg_mode): Likewise.
10261 * reload.c (find_valid_class, strict_memory_address_p): Likewise.
10263 * reorg.c (optimize_skip): Wrap prototype in macro conditionals.
10265 2000-01-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10267 * c-common.c: PROTO -> PARAMS.
10268 * c-common.h: Likewise.
10269 * c-decl.c: Likewise.
10270 * c-iterate.c: Likewise.
10271 * c-lang.c: Likewise.
10272 * c-lex.c: Likewise.
10273 * c-lex.h: Likewise.
10274 * c-parse.in: Likewise.
10275 * c-pragma.c: Likewise.
10276 * c-pragma.h: Likewise.
10277 * c-tree.h: Likewise.
10278 * c-typeck.c: Likewise.
10279 * objc/objc-act.c: Likewise.
10280 * objc/objc-act.h: Likewise.
10282 2000-01-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10284 * m88k-protos.h: New file.
10286 * m88k.c: Include tm_p.h. Add static prototypes. Fix compile
10289 * m88k.h: Move prototypes to m88k-protos.h. Fix compile time warnings.
10291 * m88k.md: Likewise.
10293 * tekXD88.h: Likewise.
10295 2000-01-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10297 * m68k-protos.h: New file.
10299 * m68k.c: Include tm_p.h. Add static prototypes. Fix compile
10302 * m68k.h: Move prototypes to m68k-protos.h. Fix compile time warnings.
10304 * mot3300.h: Likewise.
10306 2000-01-12 Richard Earnshaw <rearnsha@arm.com>
10308 * haifa-sched.c (split_edges): Pass edgeset_size as second arg to
10310 (extract_bitlist): Declare bitlen.
10312 2000-01-12 Zack Weinberg <zack@wolery.cumb.org
10314 * cccp.c: Accept and ignore -lang-fortran.
10316 * c-typeck.c (build_c_cast): Issue -Wcast-qual warnings if the
10317 qualifiers don't match at any level of pointerness.
10319 2000-01-12 Robert Lipe <robertl@sco.com>
10321 * i386/sysv5.h (CPP_SPEC, LIBSPEC): Add -pthreadT.
10323 2000-01-12 Bernd Schmidt <bernds@cygnus.co.uk>
10325 * reload1.c (reload_reg_unavailable): New static variable.
10326 (reload_reg_free_p): Test it.
10327 (reload_reg_free_for_value_p): Test it instead of
10329 (choose_reload_regs_init): Compute it.
10331 Wed Jan 12 03:24:41 2000 Toshiyasu Morita (toshi.morita@sega.com)
10333 * reorg.c (fill_slots_from_thread): Check modified_in_p
10336 Wed Jan 12 03:20:31 2000 John Marshall <john_w_marshall@palm.com>
10338 * gcc.texi (Funding, GNU/Linux, Copying, Contributors): Format
10339 these nodes even if INTERNALS is not set.
10341 Wed Jan 12 09:39:22 2000 Nick Burrett <nick.burrett@btinternet.com>
10343 * gcse.c (delete_null_pointer_checks_1): Cope when
10344 get_condition cannot determine the condition.
10346 2000-01-12 Gabriel Dos Reis <gdr@codesourcery.com>
10348 * toplev.h (set_message_length): Declare.
10350 * diagnostic.c (obstack_chunk_alloc): Define macro.
10351 (obstack_chunk_free): Likewise.
10352 (struct output_buffer): New data structure.
10353 (vmessage): Remove.
10354 (output_maximum_width): New variable.
10355 (doing_line_wrapping, set_message_length, init_output_buffer,
10356 get_output_prefix, output_space_left, emit_output_prefix,
10357 output_newline, output_append, output_puts, dump_output,
10358 vbuild_message_string, build_message_string, build_location_prefix,
10359 voutput_notice, output_printf, line_wrapper_printf,
10360 vline_wrapper_message_with_location): New functions. Implement
10361 automatic line wrapping.
10362 (v_message_with_decl): Make it handle automatic line wrapping.
10363 (v_error_with_file_and_line): Likewise.
10364 (v_warning_with_file_and_line): Likewise.
10365 (announce_function): Likewise.
10366 (default_print_error_function): Likewise.
10368 2000-01-11 16:24 -0800 Zack Weinberg <zack@wolery.cumb.org>
10370 * cpplib.h (struct cpp_options): Change lang_asm to char.
10372 * cppinit.c (builtin_array): Take out __STDC_VERSION__, it's
10373 done in cpp_handle_option now.
10374 (initialize_builtins): Take out special case code used only by
10376 (cpp_handle_option): Turn off trigraphs and trigraph warnings
10377 if -traditional. Recognize -lang-fortran and set
10378 lang_fortran, also turn off cplusplus_comments.
10379 (print_help): Document -lang-fortran.
10380 * cpplib.c (handle_directive): Ignore `# 123 "file"' if
10381 lang_asm. Ignore all directives other than `# 123 "file"' if
10383 (cpp_get_token): If -traditional, don't recognize directives
10384 unless the # is in column 1.
10385 (parse_string): If lang_fortran or lang_asm, silently
10386 terminate strings ('' or "") at end of line.
10387 Remove unnecessary braces.
10389 2000-01-11 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
10390 Richard Henderson <rth@cygnus.com>
10392 * resource.c (mark_referenced_resources): Mark a set strict_low_part
10394 * config/i386/i386.c (ix86_expand_setcc): Re-enable clear + set
10395 strict_low_part when possible.
10397 2000-01-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10399 * alias.c: PROTO -> PARAMS.
10400 * basic-block.h: Likewise.
10401 * bitmap.c: Likewise.
10402 * bitmap.h: Likewise.
10403 * builtins.c: Likewise.
10404 * c-aux-info.c: Likewise.
10405 * caller-save.c: Likewise.
10406 * calls.c: Likewise.
10408 2000-01-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10410 * Makefile.in (toplev.o): Depend on regs.h.
10412 * output.h (tdesc_section): Prototype.
10414 * regclass.c (copy_cost): Mark parameters with ATTRIBUTE_UNUSED.
10416 * sdbout.c: Include "tm_p.h".
10418 * toplev.c: Include "regs.h".
10420 Tue Jan 11 11:37:58 2000 Mike Stump <mrs@wrs.com>
10422 * unroll.c (unroll_loop): Add EH support.
10424 2000-01-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10426 * pa-protos.h: New file.
10428 * pa.c: Include recog.h and tm_p.h.
10429 (compute_zdepwi_operands, compute_movstrsi_length,
10430 remove_useless_addtr_insns, store_reg, load_reg, set_reg_plus_d,
10431 find_addr_reg, import_milli): Add static prototypes.
10432 (pa_cpu_string, pa_arch_string): Constify a char*.
10433 (legitimize_pic_address): Pass argument `mode' to pic_label_operand.
10434 (read_only_operand): Add argument `mode'.
10435 (singlemove_string, output_move_double, output_fp_move_double,
10436 output_block_move, output_and, output_ior, output_ascii,
10437 remove_useless_addtr_insns, milli_names, output_mul_insn,
10438 output_div_insn, output_mod_insn, output_arg_descriptor,
10439 output_cbranch, output_bb, output_bvb, output_dbra, ,
10440 output_millicode_call, output_call, hppa_encode_label,
10441 output_parallel_movb, output_parallel_addb): Constify a char*.
10442 (hppa_va_start): Mark parameter `stdarg_p' with ATTRIBUTE_UNUSED.
10443 (output_parallel_addb): Remove extra arg to `constrain_operands'
10445 * pa.h: Move all prototypes to pa-protos.h.
10446 (pa_cpu_string, pa_arch_string): Constify a char*.
10447 (LEGITIMIZE_ADDRESS): Call `symbolic_operand' with mode argument.
10449 * pa.md: Call `function_label_operand' with mode argument.
10450 Likewise for `read_only_operand'.
10451 Fix nesting of parens in call to `symbolic_operand'.
10453 2000-01-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10455 * i860-protos.h: New file.
10457 * i860.c: Include tm_p.h. Add static prototypes. Fix compile
10460 * i860.h: Move prototypes to i860-protos.h. Fix compile time warnings.
10462 * i860.md: Likewise.
10464 Tue Jan 11 18:59:35 MET 2000 Jan Hubicka <jh@suse.cz>
10466 * i386.md (movstrsi expander): Rewrite.
10467 (movstrsi_1 insn): Deleted.
10468 (strmovhi, strmovqi expander): New expanders.
10469 (movshi_1, movsqi_1, rep_movsi, rep_movqi): New patterns.
10470 * i386.c (x86_single_stringop): New global variable.
10471 * i386.h (x86_single_stringop): Declare.
10472 (TARGET_SINGLE_STRINGOP): New macro.
10474 2000-01-11 Clinton Popetz <cpopetz@cygnus.com>
10476 * config/mips/mips.c (mips_va_arg): For EABI, emit the queued
10477 integer vararg POSTINCREMENT before the destination of the jump
10478 for the hard fp case.
10479 (function_arg_pass_by_reference): Pass a copy of CUM to
10482 * config/mips/mips.h (GO_IF_LEGITIMATE_ADDRESS): Move check
10483 for CONSTANT_ADDRESS_P above while loop for subreg.
10485 2000-01-11 Clinton Popetz <cpopetz@cygnus.com>
10487 * flow.c (propagate_block): When a prologue/epilogue insn
10488 is marked dead, unconditionally clear libcall_is_dead and
10489 insn_is_dead, and only dump rtl if warnings aren't being
10492 Tue Jan 11 16:26:47 MET 2000 Jan Hubicka <jh@suse.cz>
10494 * i386.c (ix86_attr_length_default): Handle TYPE_STR and TYPE_CLD.
10495 * i386.md (FIRST_PSEUDO_REGISTER): Set to 20.
10496 (FIXED_REGISTERS): Set dirflag as fixed.
10497 (CALL_USED_REGISTERS): Set dirflag as used.
10498 (REG_ALLOC_ORDER): Set dirflag as last one.
10499 (DIRFLAG_REG): New macro.
10500 (MD_ASM_CLOBBERS): Asm clobber dirflag for backward compatibility.
10501 (HI_REGISTER_NAMES): Add dirflag.
10502 (DEBUF_PRINT_REG): Handle dirflag.
10503 * i386.md (type attribute): New cld and str types.
10504 (length_opcode attribute): Set cld and str to 1.
10505 (memory attribute): Set str to unknown - it is not clear from the
10507 (pent_np function unit): Prefixed string operations takes 12 cycles
10508 minimally; cld takes 2 cycles.
10509 (ppro_uops attribute): Str is "many" and cld is "few".
10510 (ppro_p0 unit): Handle cld here.
10511 (k6_alux unit): Handle cld and str types.
10512 (k6_load unit): It is ocupied by str opcodes.
10513 (k6_store unit): It is ocupied by str opcodes.
10514 (athlon_decode): Str is vector decoded.
10515 (athlon_ieu): Handle str and cld.
10516 (cld pattern): New.
10517 (movstrsi, clrstr, cmpstr, strlen expander): Emit cld instruction
10518 (movstrsi_1, clrstrsi_1, cmpstrsi_1, strlensi_1,
10519 cmpstrsi_nz_1 insn): Do not output cld instruction
10521 Tue Jan 11 06:14:39 2000 David Starner <dstarner98@aasaa.ofe.org>
10523 * gcc.texi (G++ and GCC): Add Java and Chill.
10524 (Bug Critera): Don't list languages.
10526 * gcc.texi (Incompatibilities): No longer claim most C compilers
10529 * gcc.texi (G++ and GCC): Update other front-ends list.
10531 Tue Jan 11 05:49:01 2000 Jeffrey A Law (law@cygnus.com)
10533 * i386.c (ix86_expand_setcc): Fix typo.
10534 (ix86_expand_movcc): Similarly.
10536 * Band-aid until haifa's bitset implementation is nuked.
10537 * haifa-sched.c (extract_bitlst): New parameter for size of the
10538 bitset in bits. All callers changed. Avoid looking at undefined
10539 bits in the bitset.
10540 (edgeset_bitsize): New variable.
10541 (schedule_region): Initialize edgeset_bitsize.
10543 2000-01-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10545 * Makefile.in (optabs.o): Depend on real.h
10546 (resource.o): Depend on insn-attr.h
10548 * builtins.c (result_vector): Wrap prototype in macro conditions
10549 governing definition and use.
10551 * c-common.c: Include tm_p.h.
10553 * c-lex.c: Likewise.
10555 * elfos.h: Constify a char*.
10557 * final.c (align_fuzz): Wrap prototype in macro HAVE_ATTR_length.
10558 (get_attr_length, shorten_branches, profile_after_prologue): Mark
10559 parameter with ATTRIBUTE_UNUSED.
10561 * fold-const.c (exact_real_inverse): Wrap variable `i' in
10564 * haifa-sched.c (schedule_insns): Mark parameter with
10567 * optabs.c: Include real.h.
10569 * real.h (ereal_atof): Add prototype arguments.
10571 * resource.c: Include insn-attr.h.
10573 * sdbout.c (sdbout_queue_anonymous_type,
10574 sdbout_dequeue_anonymous_types): Wrap in macro
10575 SDB_ALLOW_FORWARD_REFERENCES.
10576 (sdbout_init, sdbout_start_new_source_file): Mark parameter with
10579 * stmt.c (expand_return): Wrap variable `op0' in macro HAVE_return.
10581 * stupid.c: Include tm_p.h.
10583 * tree.c (real_value_from_int_cst): Mark parameter with
10586 2000-01-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10588 * i960-protos.h: New file.
10590 * i960.c: Include tm_p.h. Add static prototypes. Fix compile
10593 * i960.h: Move prototypes to i960-protos.h. Fix compile time warnings.
10595 2000-01-10 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
10597 * combine.c (expand_field_assignment): Do not discard SUBREGs
10598 while computing nonzero_bits.
10600 2000-01-09 Nick Clifton <nickc@cygnus.com>
10602 * config/arm/arm.c: Fix compile time warnings about signed vs
10603 unsigned constants.
10604 * config/arm/arm.h: Fix compile time warnings about signed vs
10605 unsigned constants.
10607 2000-01-09 Philip Blundell <philb@gnu.org>
10609 * config/arm/arm.c (output_return_instruction): Use `ldr' rather
10610 than `ldm' with only one register.
10611 * config/arm/arm.md (push_multi): Use `str' rather than `stm' with
10614 * config/arm/linux-gas.h (CLEAR_INSN_CACHE): Say that R0 is
10617 Sun Jan 9 17:50:23 2000 Hans-Peter Nilsson <hp@axis.com>
10619 * config/ns32k/ns32k.md (load or push effective address): Operand 1
10622 2000-01-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10624 * elfos.h (ASM_OUTPUT_LIMITED_STRING): Add parentheses around
10625 assignment used as truth value.
10627 * function.c (assign_temp): Mark parameter `dont_promote' with
10628 ATTRIBUTE_UNUSED. Wrap variable `unsignedp' with macro
10629 PROMOTE_FOR_CALL_ONLY.
10631 * genrecog.c (write_subroutine): Mark variable `operands' with
10634 * optabs.c (prepare_cmp_insn): Mark parameter `align' with
10637 * sdbout.c (sdbout_init): Likewise for parameter `asm_file'.
10638 (sdbout_begin_block, sdbout_end_block): Likewise for `file'.
10640 * toplev.c (note_deferral_of_defined_inline_function): Likewise
10643 2000-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
10645 * config/c4x.h: Tidy up comments.
10646 * config/c4x.c: Likewise.
10648 Sun Jan 9 01:02:55 EST 2000 John Wehle (john@feith.com)
10650 * fold-const.c (lshift_double, rshift_double): Handle
10651 shifting by 2 * HOST_BITS_PER_WIDE_INT correctly.
10653 2000-01-08 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
10655 * toplev.c (rest_of_compilation): Initialize cse_not_expected as
10656 in prepare_function_start().
10658 Sat Jan 8 12:12:46 2000 Nick Clifton <nickc@cygnus.com>
10660 * config/v850/v850.c (expand_epilogue): Interrupt functions no
10661 longer allocate extra stack for function calls.
10663 2000-01-08 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
10665 * config/c4x/c4x.md (*subqf3_set): Fix typo.
10667 2000-01-08 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
10669 * config/c4x/c4x.h (CALLER_SAVE_PROFITABLE): Define as 0.
10671 2000-01-07 David Edelsohn <edelsohn@gnu.org>
10673 * rs6000.c (processor_target_table): Add power3 as alias for 630.
10674 * aix43.h: Revert Aug 2 change.
10675 (HAS_INIT_SECTION): Define, not visible yet.
10676 (LD_INIT_SWITCH): Define, not visible yet.
10677 * t-aix43 (MULTILIB_OPTIONS): Revert Aug 2 change.
10679 * glimits.h (__LONG_MAX__): Recognize 64-bit AIX too.
10681 * collect2.c (main): Expand ld2 size further.
10682 (export_object_lst): Cast assignment to avoid warning.
10683 (main, LD_INIT_SWITCH): Add AIX 4.2+ -binitfini support.
10684 (scan_prog_file, COFF): Do not collect initialization or
10685 finalization functions generated for entire shared object if
10686 init/fini support present.
10688 2000-01-07 Nick Clifton <nickc@cygnus.com>
10690 * config/elfos.h: Tidy up formatting of marcos. Make sure
10691 that .section directives are always prefixed by a tab.
10693 * config/svr4.h: Add #include "elfos.h" and remove duplicate
10696 2000-01-07 Matt Austern <austern@sgi.com>
10698 * fold-const.c (real_hex_to_f): Remove duplicate declaration of
10701 Fri Jan 7 01:55:34 2000 Jeffrey A Law (law@cygnus.com)
10703 * Makefile.in (crtend.o): Pass @inhibit_libc@ to compilation of
10705 (crtbegin.o, s-crtS): Likewise.
10707 2000-01-06 Richard Henderson <rth@cygnus.com>
10709 * alpha.md (adddi_2+1): Limit offset such that it will be
10710 loadable with a single ldah+lda pair.
10711 (adddi_2+2): Explicitly fail split if we can't make it work.
10713 2000-01-06 Mumit Khan <khan@xraylith.wisc.edu>
10715 * protoize.c: Conditionally include unistd.h.
10716 (IS_SAME_PATH_CHAR): New macro.
10717 (IS_SAME_PATH): New macro.
10718 (CPLUS_FILE_SUFFIX): New macro.
10719 (cplus_suffix): New static variable.
10720 (is_abspath): New static function.
10721 (in_system_include_dir): Handle DOS style pathnames.
10722 (file_could_be_converted): Likewise.
10723 (file_normally_convertible): Likewise.
10724 (directory_specified_p): Likewise.
10725 (file_excluded_p): Likewise.
10726 (abspath): Likewise.
10727 (shortpath): Likewise.
10728 (referenced_file_is_newer): Likewise.
10729 (save_def_or_dec): Likewise.
10730 (do_processing): Likewise.
10732 (edit_file): Likewise. Use rename instead of link.
10733 (rename_c_file): Likewise. Don't rename syscalls file.
10734 (munge_compile_params): Define null device for DOS based systems.
10735 (process_aux_info_file): Use binary mode if appliable.
10736 (edit_file): Likewise.
10737 * invoke.texi (Running Protoize): Document C++ suffixes used.
10739 * cccp.c: Delete PATH_SEPARATOR, DIR_SEPARATOR and
10740 IS_DIR_SEPARATOR macros.
10741 * collect2.c: Likewise.
10742 * cppinit.c: Likewise.
10743 * dwarf2out.c: Likewise.
10745 * gcov.c: Likewise.
10746 * prefix.c: Likewise.
10748 * toplev.c: Likewise.
10749 * system.h: And move to here.
10751 * prefix.c (update_path): Fix typo in variable name.
10753 2000-01-06 Richard Henderson <rth@cygnus.com>
10755 * flow.c (mark_set_1): Use loop_depth+1 as reference weight.
10756 (find_auto_inc, mark_used_regs, try_pre_increment_1): Likewise.
10757 (count_reg_sets_1, count_reg_references): Likewise.
10758 (flow_loops_level_compute): Start counting actual loop depth at 1.
10759 (flow_loops_find): Likewise.
10760 * local-alloc.c (update_equiv_regs): Likewise.
10761 * regclass.c (regclass): Re-instate Jan 4 0-based loop_depth change.
10763 2000-01-06 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
10765 * defaults.h (DWARF_FRAME_REGISTERS): if not defined, default to
10766 FIRST_PSEUDO_REGISTER
10767 * dwarf2out.c: Don't include frame.h
10768 * dwarfout.c: Likewise
10769 * Makefile.in (dwarfout.o, dwarf2out.o): Remove dependence on
10772 Thu Jan 6 13:44:59 CET 2000 Jan Hubicka <jh@suse.cz>
10774 * reg-stack.c (subst_stack_regs_pat): Handle correctly USEs of
10777 * i386.c (movsf splitter): Fix typo in my last checkin.
10779 2000-01-05 Nick Clifton <nickc@cygnus.com>
10781 * varasm.c (IN_NAMED_SECTION): Allow targets to provide their
10782 own definition of this macro.
10783 (asm_emit_uninitialised): Invoke UNIQUE_SECTION if either
10784 flag_data_sections or UNIQUE_SECTION_P are true.
10786 * tm.texi (UNIQUE_SECTION): Document that it can be called for
10787 unitialised data decls.
10789 * config/i386/winnt.c (i386_pe_unique_section): Cope with
10790 being called for uninitialised data.
10792 * config/i386/interix.c (i386_pe_unique_section): Cope with
10793 being called for uninitialised data.
10795 * config/mips/elf.h (UNIQUE_SECTION): Cope with being called
10796 for uninitialised data.
10798 * config/mips/elf64.h (UNIQUE_SECTION): Cope with being called
10799 for uninitialised data.
10801 * config/mips/iri6gld.h (UNIQUE_SECTION): Cope with being called
10802 for uninitialised data.
10804 * config/arm/unknown-elf.h (IN_NAMED_SECTION): Define.
10805 (UNIQUE_SECTION_P): Always generate a unique section if
10806 flag_data_sections is true.
10807 (UNIQUE_SECTION): Also generate unique sections for
10808 uninitialised data.
10809 (ASM_OUTPUT_ALIGNED_BSS): Redefine to use named_section().
10810 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Redefine to use
10813 2000-01-06 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
10815 * config/c4x/t-c4x (TARGET_LIBGCC2_CFLAGS): Don't redefine SF, DF,
10818 2000-01-06 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
10820 * config/c4x/c4x.md (udivqi3, divqi3): Delete.
10821 (umodqi3, modqi3, udivhi3, divhi3, umodhi3, modhi3, ffsqi2): Likewise.
10822 (*smulqi3_highpart_noclobber, *umulqi3_highpart_noclobber): New.
10823 (*lshrqi3_const_noclobber, *lshrqi3_nonconst_noclobber): Likewise.
10824 (*ashrqi3_const_noclobber, *ashrqi3_nonconst_noclobber): Likewise.
10826 * c4x.h (INIT_TARGET_OPTABS): Define to init libcalls.
10828 2000-01-05 11:25 -0800 Zack Weinberg <zack@rabi.columbia.edu>
10830 * c-decl.c (finish_enum): Simplify code to determine minimum and
10831 maximum values of the enum, and calculate the type. Remove check
10832 for FUNCTION_DECLs in the values list, which cannot happen. Replace
10833 the DECL_INITIAL of each enumeration constant with a copy converted
10834 to the enumeration type. When updating variant types, don't bother
10835 updating the type itself.
10837 * c-typeck.c (build_binary_op): Simplify conditional expressions
10838 when weeding out spurious signed-unsigned warnings. Add new
10839 spurious warning category: if the unsigned quantity is an enum
10840 and its maximum value fits in signed_type(result_type). Update
10842 (build_conditional_expr): Warn here if one alternative is signed
10843 and the other is unsigned.
10845 2000-01-05 Nick Clifton <nickc@cygnus.com>
10847 * config/fr30/fr30.h: Remove extraneous comments.
10849 2000-01-05 Bernd Schmidt <bernds@cygnus.co.uk>
10851 * reload1.c (choose_reload_regs): When disabling a reload, also
10852 set reload_spill_index to -1.
10854 2000-01-04 Joel Sherrill (joel@OARcorp.com>
10856 * configure.in (m68*-*-rtemscoff*): New target, formal name for
10858 (m68*-*-rtemself*): New target.
10859 (mips64orion-*-rtems*): Remove duplicate definition of tm_file.
10860 (sparc*-*-rtemsaout*): New target, formal name for old sparc*-*-rtems*.
10861 (sparc*-*-rtemself*): New target.
10862 (sparc*-*-rtems*): Now elf not a.out.
10863 * config/i386/rtems.h: Include config/rtems.h.
10864 * config/i386/rtemself.h: Include config/rtems.h.
10865 * config/i960/rtems.h: Include config/rtems.h.
10866 * config/m68k/rtems.h: Include config/rtems.h.
10867 * config/m68k/rtemself.h: Include config/rtems.h.
10868 * config/mips/rtems64.h: Include config/rtems.h.
10869 * config/pa/rtems.h: Include config/rtems.h.
10870 * config/rs6000/rtems.h: Include config/rtems.h.
10871 * config/sh/rtems.h: Include config/rtems.h.
10872 * config/sh/rtemself.h: Include config/rtems.h.
10873 * config/sparc/rtems.h: Include config/rtems.h.
10874 * config/sparc/rtemself.h: Include config/rtems.h
10876 Tue Jan 4 23:59:26 2000 Denis Chertykov <denisc@overta.ru>
10878 * final.c (shorten_branches): Correctly compute length of
10879 asms without operands.
10881 Tue Jan 4 22:55:41 2000 Steve Chamberlain <sac@pobox.com>
10883 * configure.in: Add pj target.
10884 * configure: Regenerate.
10885 * config/pj: New directory.
10886 * config/pj/lib1funcs.S: New file.
10887 * config/pj/linux.h: New file.
10888 * config/pj/pj.c: New file.
10889 * config/pj/pj.md: New file.
10890 * config/pj/pjl.h: New file.
10891 * config/pj/t-pj: New file.
10892 * config/pj/xm-pj.h: New file
10894 Tue Jan 4 22:30:16 2000 Jeffrey A Law (law@cygnus.com)
10896 * toplev.c (rest_of_compilation): Run shorten-branches before
10899 2000-01-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
10901 * config/c4x/c4x.h (IS_XXX_REG, IS_XXX_REGNO): Swap behaviour of
10902 macros so that they're consistent with their names.
10903 * config/c4x/c4x.c (IS_XXX_REG, IS_XXX_REGNO): Likewise.
10904 * config/c4x/c4x.md (IS_XXX_REG, IS_XXX_REGNO): Likewise.
10906 2000-01-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
10908 * config/c4x/c4x.md (*addqi3_noclobber_reload): Ensure that CC never
10909 modified inadvertently.
10911 2000-01-04 Joel Sherrill <joel@OARcorp.com>
10913 * configure.in (v850*-*-rtems*): New target.
10914 * configure: Regenerate.
10915 * config/v850/rtems.h: New file.
10917 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
10919 * gthr-win32.h (__gthread_active_p): Support Mingw MT runtime.
10920 (__gthread_key_create): Likewise.
10921 (__gthread_key_dtor): Likewise.
10922 (__gthread_once): Fix logic.
10923 (__gthread_key_delete): Cast away constness.
10925 * i386/cygwin.h (SUBTARGET_SWITCHES): Add -mthreads option.
10926 * invoke.texi: Document.
10927 * i386/mingw32.h (CPP_SPEC): Use.
10928 (LIBGCC_SPEC): Likewise.
10929 * i386/crtdll.h (LIBGCC_SPEC): Likewise.
10931 2000-01-04 David Edelsohn <edelsohn@gnu.org>
10933 * rs6000/sysv4.h (ASM_OUTPUT_DEF): Undefine.
10934 (HANDLE_PRAGMA_PACK): Undefine.
10935 (SLOW_UNALIGNED_ACCESS): Define.
10937 2000-01-04 David Edelsohn <edelsohn@gnu.org>
10939 * expmed.c (SLOW_UNALIGNED_ACCESS): Add mode and align parameters
10940 to default definition.
10941 (store_bit_field): Call SLOW_UNALIGNED_ACCESS with mode and alignment.
10942 (store_fixed_bit_field): Call macro with word_mode and alignment.
10943 (extract_bit_field): Call macro with relevant mode and alignment.
10944 * expr.c (SLOW_UNALIGNED_ACCESS): Add mode and align parameters
10945 to default definition.
10946 (move_by_pieces): Call SLOW_UNALIGNED_ACCESS with word_mode
10948 (move_by_pieces_ninsns): Likewise.
10949 (clear_by_pieces): Likewise.
10950 (emit_push_insn): Likewise.
10951 (store_field): Call macro with relevant mode and alignment.
10952 (expand_expr): Likewise.
10953 (expand_expr_unaligned): Likewise.
10955 * rs6000.h (HANDLE_PRAGMA_PACK): Define.
10956 (SLOW_UNALIGNED_ACCESS): Define.
10957 (CASE_VECTOR_MODE): Always use 32-bit offsets.
10958 (ASM_FILE_END): Generate 64-bit symbol in 64-bit mode.
10959 (EXTRA_SECTOIN_FUNCTIONS): Indent .csect pseudo-op.
10960 (toc_section): Likewise and .toc pseudo-op.
10961 (ASM_DECLARE_FUNCTION): Likewise. Align text more strictly in
10963 (TEXT_SECTION_ASM_OP): Likewise.
10964 (ASM_OUTPUT_ADD_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Always use
10967 * a29k.h (SLOW_UNALIGNED_ACCESS): Add MODE and ALIGN parameters.
10968 * alpha.h (SLOW_UNALIGNED_ACCESS): Likewise.
10969 * arm/thumb.h (SLOW_UNALIGNED_ACCESS): Likewise.
10970 * gmicro.h (SLOW_UNALIGNED_ACCESS): Likewise.
10971 * fr30.h (SLOW_UNALIGNED_ACCESS): Likewise.
10973 Tue Jan 4 11:44:13 2000 Jeffrey A Law (law@cygnus.com)
10975 * regclass.c: Revert my Jan 4 change to loop cost computation.
10977 Tue Jan 4 19:22:39 MET 2000 Jan Hubicka <hubicka@freesoft.cz>
10979 * regclass.c (regclass): Do not obey REG_N_REFS in non-optimizing
10982 2000-01-04 Stan Cox <scox@cygnus.com>
10984 * haifa-sched.c (build_control_flow): Change unreachable simple
10985 loop test to check if current block has only one predecessor.
10986 (find_rgns): Initialize degree. Use dest as degree index, not src.
10988 2000-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10990 * builtins.c (expand_builtin_strlen): Initialize variable `icode'.
10992 * calls.c (expand_call): Likewise for
10993 `old_stack_arg_under_construction'.
10995 * cpphash.c (macroexpand): Likewise for `args' and `rest_zero'.
10997 * function.c (pad_to_arg_alignment): Likewise for `save_var' and
11000 * gcc.c (execute): Likewise for `ut' and `st'.
11002 * genattrtab.c (attr_rtx): Likewise for `rt_val'.
11004 * genopinit.c (gen_insn): Likewise for `m1', `m2' and `op'.
11006 * jump.c (jump_optimize_1): Likewise for `temp2'.
11008 * local-alloc.c (block_alloc): Likewise for `r1'.
11010 * loop.c (recombine_givs): Likewise for `life_start' and `life_end'.
11012 * reg-stack.c (check_asm_stack_operands): Likewise for `clobber_reg'.
11013 (subst_asm_stack_regs): Likewise for `clobber_reg' and `clobber_loc'.
11015 * regmove.c (fixup_match_1): Likewise for `insn_const', `dst_node'
11018 * reload.c (find_reloads): Likewise for `goal_alternative_number'
11019 and `goal_earlyclobber'.
11021 * scan-decls.c (scan_decls): Likewise for `prev_id_end'.
11023 * sdbout.c (sdbout_one_type): Likewise for `member_scl'.
11025 * stupid.c (stupid_life_analysis): Likewise for `chain'.
11027 * unroll.c (copy_loop_body): Likewise for `copy'.
11029 * varasm.c (output_constructor): Likewise for `byte'.
11031 Tue Jan 4 15:34:34 MET 2000 Jan Hubicka <hubicka@freesoft.cz>
11033 * i386.c (ix86_expand_move): Allow pushes of memory, offload to memory
11034 all FP constants for constant->reg moves.
11035 (ix86_split_to_parts): Try to convert memory address into immediate
11036 when available in the constant pool.
11037 * i386.h (PREFERRED_RELOAD_CLASS): Allow CONST_DOUBLE->integer reg
11039 (LEGITIMATE_CONSTANT_P): Return 1.
11040 * i386.md (pushsf): New splitter to convert constant pool memory
11041 reference to immediate.
11042 (mov?f): Likewise; do not allow CONST_DOUBLE for reg moves before
11045 2000-01-04 Bernd Schmidt <bernds@cygnus.co.uk>
11047 * i386.md (ashlsi3_cmpno): Don't accept variables shifts.
11048 (ashlhi3_cmpno, ashlqi3_cmpno, ashrsi3_cmpno, ashrhi3_cmpno,
11049 ashrqi3_cmpno, lshrsi3_cmpno, lshrhi3_cmpno, lshrqi3_cmpno): Likewise.
11050 (rotlsi3_cmpno, rotlhi3_cmpno, rotlqi3_cmpno, rotrsi3_cmpno,
11051 rotrhi3_cmpno, rotrqi3_cmpno): Likewise.
11053 2000-01-04 Martin von Löwis <loewis@informatik.hu-berlin.de>
11055 * ginclude/stdbool.h: Support compilation as C++.
11057 Tue Jan 4 01:35:13 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
11059 * fold-const.c (make_range): Don't try to reverse an unbounded range.
11061 Tue Jan 4 00:18:46 2000 Jeffrey A Law (law@cygnus.com)
11063 * regclass.c (regclass): Properly compute loop_cost. Adjust
11066 * regclass.c: Fix minor whitespace problems.
11068 2000-01-03 Anthony Green <green@cygnus.com>
11070 * config/i386/i386.md (builtin_setjmp_receiver): New pattern.
11071 Restore the pic register if required.
11073 2000-01-03 Ulrich Drepper <drepper@cygnus.com>
11075 * c-common.c (format_char_info): Update comment.
11076 (check_format_info): Recognize 'z' modifier in the same way 'Z'
11077 was recognized. Emit warning for formats new in ISO C99 only
11078 if flag_isoc9x is not set.
11080 Mon Jan 3 12:59:54 2000 Mark P. Mitchell <mark@codesourcery.com>
11082 * config/mips/iris6gld.h: Fix typo in -mabi=n32 specs.
11084 Mon Jan 3 15:33:37 MET 2000 Jan Hubicka <hubicka@freesoft.cz>
11086 * combine.c (expand_compound_operation): Do not convert ZERO_EXTEND to
11087 SIGN_EXTEND, convert SIGN_EXTEND to ZERO_EXTEND.
11088 (make_compound_operation): Choose cheaper alternative between
11089 ZERO_EXTEND and SIGN_EXTEND when sign bit is not set.
11091 * regclass.c (op_costs): Remove global variable.
11092 (record_reg_classes): New parameter "op_costs" and "reg_pref".
11093 (record_operand_costs): Break out from ...
11094 (scan_one_insn): ... here.
11095 (dump_regclass): Make dumps nicer.
11096 (regclass): Dump preferrences choosed and changes done during passes.
11098 2000-01-03 Jakub Jelinek <jakub@redhat.com>
11100 * config/sparc/sparc.c (gen_df_reg): Fix for 32bit SPARC.
11102 2000-01-03 Jakub Jelinek <jakub@redhat.com>
11104 * config/sparc/sparc.c (gen_df_reg): New function.
11105 * config/sparc/sparc-protos.h (gen_df_reg): Add prototype.
11106 * config/sparc/sparc.md (movtf_no_e_insn_sp64+1,
11107 movtf_no_e_insn_sp64+2, movtf_no_e_insn_sp64+3, movtf_cc_sp64+1,
11108 movtf_cc_reg_sp64+1): Use it.
11110 2000-01-02 Mark Mitchell <mark@codesourcery.com>
11112 * integrate.c (copy_decl_for_inlining): Clear TREE_ADDRESSABLE on
11113 copied LABEL_DECLs.
11115 Mon Jan 3 02:54:40 2000 Hans-Peter Nilsson <hp@bitrange.com>
11117 * config/i386/i386.c (ix86_expand_unary_operator): Function
11118 definition made void.
11119 (ix86_expand_binary_operator): Update outdated preceding comment.
11120 * config/i386/i386-protos.h (ix86_expand_unary_operator): Update
11123 * config/i386/i386.c (override_options): Fix option-name typo.
11125 2000-01-02 Mark Mitchell <mark@codesourcery.com>
11127 * system.h (CEIL): Define.
11128 * builtins.c (CEIL): Remove.
11129 * expmed.c (CEIL): Likewise.
11130 * expr.c (CEIL): Likewise.
11131 * stor-layout.c (CEIL): Likewise.
11133 2000-01-02 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11135 * expr.c (store_constructor_field): Fix typo introduced with last
11138 2000-01-01 Mark Mitchell <mark@codesourcery.com>
11140 * tree.h (BINFO_N_BASETYPES): New macro.
11142 2000-01-01 Bernd Schmidt <bernds@cygnus.co.uk>
11144 * expmed.c (emit_store_flag): Prevent losing a pending stack
11145 adjust the same way we prevent losing queued increments.
11147 Fri Dec 31 19:10:31 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11149 * function.c (update_temp_slot_address): Handle case where sum of
11150 temporary address plus offset in register is a valid address.
11152 1999-12-30 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
11154 * genrecog.c (change_state) Corrected typo.
11156 1999-12-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11158 * system.h (bcopy, bcmp, bzero, index, rindex, atof, atol, free,
11159 getcwd, getenv, getwd, sbrk, strstr, malloc, calloc, realloc,
11160 strerror, getrlimit, setrlimit, abort): Add prototype arguments.
11162 1999-12-30 Bernd Schmidt <bernds@cygnus.co.uk>
11164 * i386.c (ix86_expand_fp_compare): In non-sahf non-TARGET_IEEE
11165 case, expand GT comparisons correctly. Fix a comment before this
11168 1999-12-30 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
11170 * dwarfout.c: Include "frame.h"
11171 * dwarf2out.c: Likewise.
11172 * Makefile.in (dwarfout.o): Depend on frame.h
11173 (dwarf2out.o): Likewise.
11175 1999-12-29 "Martin v. Loewis" <martin@loewis.home.cs.tu-berlin.de>
11177 Restore i386 binary compatibility in Dwarf EH info.
11178 * config/i386/i386.h (DWARF_FRAME_REGISTERS): Define as 17, the old
11179 value of FIRST_PSEUDO_REGISTER.
11180 * frame.h (DWARF_FRAME_REGISTERS): Default to FIRST_PSEUDO_REGISTER.
11181 (struct frame_state): Use DWARF_FRAME_REGISTERS.
11182 * dwarfout.c (output_reg_number): Ditto.
11183 * dwarf2out.c (reg_number, expand_builtin_init_dwarf_reg_sizes): Ditto.
11184 (DWARF_FRAME_RETURN_COLUMN): Default to DWARF_FRAME_REGISTERS.
11186 1999-12-29 Bruce Korb <autogen@linuxbox.com>
11188 * fixinc/fixincl.c(wait_for_pid): sometimes a WSTOPSIG of zero is OK
11189 * fixinc/fixincl.tpl(<hack>TEST_CT): Just do the existence test once
11190 (<hack>_RE_CT): not needed
11191 * fixinc/fixlib.c(is_cxx_header): moved from fixtests.c
11192 rewritten to scan the file text once only
11193 "template<..." test added
11194 * fixinc/fixlib.h(apply_fix_p_t): moved from fixtests.c
11195 (is_cxx_header): declaration added
11196 * fixinc/fixtests.c(is_cxx_header): removed
11197 (apply_fix_p_t): removed
11198 (double_slash_test): is_cxx_header is only called once now
11199 * fixinc/hackshell.tpl: indexing the fixes is now done under DEBUG
11200 * fixinc/inclhack.def(FIXINC_DEBUG): added for testing DEBUG state
11201 within the templates.
11202 The borken spelling of "broken" was fixed.
11203 * fixinc/inclhack.tpl: The $VERBOSE level is used on various messages
11204 The default level depends on FIXINC_DEBUG.
11206 1999-12-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11208 * crtstuff.c: If !inhibit_libc, include stdlib.h/unistd.h.
11209 Otherwise provide a declaration for atexit.
11210 (init_dummy): Make sure dummy call to atexit is nevertheless
11211 called with correct number of args.
11213 * frame.c: Update comments referring to other files.
11215 * libgcc2.c: Likewise.
11217 1999-12-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11219 * cse.c (free_element, get_element): Remove unused prototypes.
11221 * fold-const.c (extract_muldiv): Initialize variables `op0' and
11224 * jump.c (invert_exp): Add explicit braces to avoid ambiguous
11227 Wed Dec 29 12:44:54 1999 Donald Lindsay <dlindsay@cygnus.com>
11229 * configure.in,configure: case arm for mn10200-*-* now sets
11230 float_format=i32 so that float.h will correctly claim "double"
11231 to be 32 bits. Ran autoconf to generate configure from .in file.
11233 Wed Dec 29 10:53:21 1999 Jeffrey A Law (law@cygnus.com)
11235 * pa.md (conditional zero): If op1 is a register, force it into
11236 the same register as op0.
11238 1999-12-28 Mark Mitchell <mark@codesourcery.com>
11240 * tree.h (BINFO_BASETYPES): Improve documentation.
11242 1999-12-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11244 * configure.in (--enable-checking): Use a more portable `for'
11247 1999-12-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11249 * configure.in (AC_DECL_SYS_SIGLIST, xm-siglist.h,
11250 arm/xm-netbsd.h, NO_SYS_SIGLIST): Don't use.
11252 * xm-siglist.h, arm/xm-netbsd.h, mips/xm-news.h, mips/xm-sysv4.h:
11255 * gcc.texi (NO_SYS_SIGLIST, sys_siglist, SYS_SIGLIST_DECLARED):
11256 Delete descriptions.
11258 * i386/osf1elf.h, i386/xm-cygwin.h, i386/xm-mingw32.h, m68k/3b1.h,
11259 m68k/a-ux.h, m68k/dpx2.h, m68k/plexus.h, m68k/xm-hp320.h,
11260 m88k/xm-m88k.h, mips/x-sni-svr4, pa/xm-pa.h, pa/xm-pahpux.h,
11261 pa/xm-papro.h, we32k/xm-we32k.h, winnt/xm-winnt.h, xm-interix.h,
11262 xm-svr4.h: Remove all instances of sys_siglist handling.
11264 1999-12-27 Jakub Jelinek <jakub@redhat.com>
11266 * config/sparc/sparc.md (cmp_zero_qi,
11267 cmp_zero_extendqisi2_andcc_set, cmp_zero_qi_sp64,
11268 cmp_zero_extendqidi2_andcc_set): New patterns.
11270 1999-12-28 Manfred Hollstein <mhollstein@cygnus.com>
11272 * m68k/t-mot3300-gald (CROSS_LIBGCC1): Define to libgcc1-asm.a.
11273 (LIB1ASMSRC, LIB1ASMFUNCS, LIB2FUNCS_EXTRA): Define.
11274 (fpgnulib.c, xfgnulib.c): Add rules.
11275 * m68k/t-mot3300-gas: Likewise.
11277 1999-12-27 Ian Lance Taylor <ian@zembu.com>
11279 * configure.in: Avoid [[ by using test and changequote. Add
11280 changequote required by 1999-12-14 change.
11281 * configure: Rebuild.
11283 1999-12-27 Clinton Popetz <cpopetz@cygnus.com>
11285 * config/mips/mips.h: Fix typo from 12/17/99 libgcc2 fix.
11287 1999-12-27 Christophe Jaillet <jaillet.christophe@caramail.com>
11289 * alias.c (nonlocal_reference_p): Add else for disjoint ifs.
11290 * flow.c (find_use_as_address): Likewise.
11291 * function.c (fixup_var_refs_1): Likewise.
11292 (walk_fixup_memory_subreg, fixup_stack_1): Likewise.
11293 * jump.c (invert_exp, redirect_exp): Likewise.
11294 * loop.c (replace_call_address): Likewise.
11295 (count_nonfixed_reads): Likewise.
11296 * rtlanal.c (modified_between_p): Likewise.
11297 (modified_in_p, volatile_insn_p, volatile_refs_p): Likewise.
11298 (side_effects_p, replace_regs, jmp_uses_reg_or_mem): Likewise.
11299 * unroll.c (remap_split_bivs): Likewise.
11301 1999-12-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11303 * diagnostic.c (v_message_with_decl): Use .* format specifier
11304 instead of building the format specifier width manually.
11306 * system.h (strsignal): Don't check HAVE_STRSIGNAL when
11307 determining whether to provide a prototype. Remove the
11308 sys_siglist clause in the conditional.
11310 1999-12-23 Martin v. Löwis <loewis@informatik.hu-berlin.de>
11312 * fold-const.c (operand_equal_p): Use memcmp to compare string
11314 Suggested by D. J. Bernstein
11316 1999-12-17 Jakub Jelinek <jakub@redhat.com>
11318 * config/h8300/h8300.h (TARGET_H8300H, TARGET_H8300S): Make sure
11319 UNITS_PER_WORD and BITS_PER_WORD are compile time constants when
11321 * config/mips/mips.h (TARGET_64BIT): Likewise.
11322 * config/rs6000/rs6000.h (TARGET_POWERPC64): Likewise.
11323 * libgcc2.c: Use {,U}{HW,W,DW}type and DWunion everywhere instead
11324 of {SI,DI}type and DIunion. Define these types to QI/HI modes on
11325 dsps. Give routines proper names if SI/DI modes are not used.
11326 * longlong.h: Use DWunion instead of DIunion.
11328 1999-12-26 Zack Weinberg <zack@wolery.cumb.org>
11330 * acconfig.h: New ENABLE flags: TREE_CHECKING, RTL_CHECKING,
11331 GC_CHECKING, GC_ALWAYS_COLLECT.
11332 * configure.in: Allow --enable-checking with an argument
11333 listing check modes to enable.
11334 * config.in, configure: Rebuilt.
11335 * ggc-page.c, ggc-simple.c: Define GGC_POISON (and
11336 GGC_ALWAYS_VERIFY for ggc-simple.c) only if
11337 ENABLE_GC_CHECKING. Define GGC_ALWAYS_COLLECT only if
11338 ENABLE_GC_ALWAYS_COLLECT.
11339 * rtl.h, rtl.c: Change ENABLE_CHECKING to ENABLE_RTL_CHECKING
11341 * tree.h, tree.c: Change ENABLE_CHECKING to
11342 ENABLE_TREE_CHECKING throughout.
11344 Sun Dec 26 07:48:20 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11346 * fold-const.c (fold_truthop): Properly check for FP RHS.
11348 1999-12-24 Mark Mitchell <mark@codesourcery.com>
11350 * toplev.h (note_deferall_of_defined_inline_function): Declare.
11351 * toplev.c (note_deferral_of_defined_inline_function): New
11352 function, split out from ...
11353 (rest_of_compilation): ... here. Use it.
11355 Fri Dec 24 12:34:26 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11357 * expr.c (store_constructor): Don't call clear_storage if size is
11360 1999-12-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11362 * Makefile.in (toplev.o): Depend on loop.h.
11364 * dwarfout.c: Include tm_p.h.
11366 * emit-rtl.c (restore_emit_status): Mark parameter with
11369 * final.c (final_scan_insn): Likewise.
11371 * flow.c (flow_nodes_print, flow_exits_print, flow_loops_cfg_dump,
11372 flow_loop_nested_p, flow_loop_exits_find, flow_loop_nodes_find,
11373 flow_depth_first_order_compute, flow_loop_pre_header_find,
11374 flow_loop_tree_node_add, flow_loops_tree_build,
11375 flow_loop_level_compute, flow_loops_level_compute,
11376 flow_loop_outside_edge_p): Add prototypes.
11377 (recompute_reg_usage): Mark parameters with ATTRIBUTE_UNUSED.
11379 * ggc-callbacks.c (lang_mark_tree, lang_mark_false_label_stack):
11380 Mark with ATTRIBUTE_NORETURN.
11382 * hash.c (hash_newfunc): Mark parameter with ATTRIBUTE_UNUSED.
11384 * local-alloc.c (no_conflict_p): Likewise.
11386 * loop.c (insert_bct): Hide definitions of variables with hidden
11388 (note_reg_stored): Mark parameter with ATTRIBUTE_UNUSED.
11390 * regclass.c (memory_move_secondary_cost): Mark variable `mem'
11391 with ATTRIBUTE_UNUSED.
11392 (record_reg_classes): Mark parameter with ATTRIBUTE_UNUSED.
11393 (reg_scan): Likewise.
11395 * reload.c (find_reloads): Remove unused variables `changed'.
11397 * reload1.c (reload_reg_class_lower): Don't unnecessarily cast
11399 (allocate_reload_reg): Mark parameter with ATTRIBUTE_UNUSED.
11400 Remove unused variable `insn'.
11402 * toplev.c: Include loop.h.
11403 (report_file_and_line): Remove unnecessary prototype.
11405 * tree.c (build_block): Mark parameter with ATTRIBUTE_UNUSED.
11407 * unroll.c (biv_total_increment): Likewise.
11409 Thu Dec 23 23:15:22 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
11411 * reload1.c (emit_input_reload_insns): Restore old behaviour
11412 wrt. 'special' reloads.
11414 1999-12-23 Zack Weinberg <zack@wolery.cumb.org>
11416 * Makefile.in (ggc-simple.c, ggc-page.c): Don't depend on
11417 hash.h. (cse.c): Don't depend on hashtab.h.
11419 * cse.c: Don't include hashtab.h.
11420 (hash_cse_reg_info, cse_reg_info_equal_p): Delete prototypes
11422 * ggc-simple.c: Don't include hash.h.
11424 1999-12-22 Jason Merrill <jason@casey.cygnus.com>
11426 * dwarf2out.c (add_abstract_origin_attribute): Call
11427 gen_abstract_function on our function context.
11429 Thu Dec 23 03:57:10 1999 Hans-Peter Nilsson <hp@bitrange.com>
11431 * Makefile.in (INTEGRATE_H): Fix typo: INTEGRATE_H, not INTREGRATE_H.
11433 1999-12-23 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
11435 * config/c4x/c4x.c (c4x_address_cost): Add statement to default
11438 1999-12-22 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
11440 * config/c4x/c4x.md (*addqi3_noclobber_reload): Change operand 0
11441 constraints to "a!r".
11443 1999-12-21 Mark Mitchell <mark@codesourcery.com>
11445 * Makefile.in (calls.o): Depend on function.h.
11446 (alias.o): Likewise.
11448 1999-12-21 Bernd Schmidt <bernds@cygnus.co.uk>
11450 * reload1.c (emit_reload_insns): Break out code and variables into...
11451 (input_reload_insns, other_input_address_reload_insns,
11452 other_input_reload_insns, input_address_reload_insns,
11453 inpaddr_address_reload_insns, output_reload_insns,
11454 output_address_reload_insns, outaddr_address_reload_insns,
11455 operand_reload_insns, other_operand_reload_insns,
11456 other_output_reload_insns): ... new static variables, and...
11457 (emit_input_reload_insns, emit_output_reload_insns, do_input_reload,
11458 do_output_reload): ... new functions.
11460 Tue Dec 21 07:06:36 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11462 * pa.h (FUNCTION_ARG_BOUNDARY): Never return 0.
11464 1999-12-21 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
11466 * md.texi: Add c4x constraints documentation.
11468 1999-12-21 Martin v. Löwis <loewis@informatik.hu-berlin.de>
11470 * config/i386/dgux.c (struct option): Rename to
11471 lang_independent_option.
11472 (struct m_options): Add description field.
11473 (output_options): Rename option type, add sep declaration, output
11474 ix86_cpu_string and ix86_arch_string only if set.
11475 (output_file_start): Rename option type.
11477 Mon Dec 20 23:15:36 1999 Mike Stump <mrs@wrs.com>
11479 * Makefile.in (crtbegin.o, crtend.o, s-crtS): Depend on
11481 (libgcc2.a): Similarly.
11483 Mon Dec 20 23:06:47 1999 David Edelsohn <edelsohn@gnu.org>
11485 * longlong.h (_ARCH_PPC): Only protect add_ssaaaa and sub_ddmmss
11486 with W_TYPE_SIZE == 32. Do not fall through to POWER architecture
11487 for umul_ppmm and smul_ppmm if !_ARCH_PPC and !_ARCH_POWER.
11489 Mon Dec 20 23:02:03 1999 Jeffrey A Law (law@cygnus.com)
11491 * fold-const.c (real_hex_to_f): Remove unused "isldouble" variable.
11492 Remove redundant initialization of "frexpon" and "expon".
11494 Mon Dec 20 15:00:04 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11496 * tree.c (real_value_from_int_cst): Clear REAL_VALUE_TYPE object first.
11498 * expr.c (store_constructor): New argument SIZE; pass to clear_storage.
11499 (store_constructor_field, expand_expr): Pass new arg.
11501 1999-12-20 Mark Mitchell <mark@codesourcery.com>
11503 * Makefile.in (explow.o): Depend on function.h.
11505 * stor-layout.c (set_sizetype): Fix typo.
11507 1999-12-20 Bernd Schmidt <bernds@cygnus.co.uk>
11509 * function.c (cfun): Renamed from current_function. All users
11511 * function.h (cfun): Rename declaration as well.
11513 * reload.h (struct insn_chain): Change live_throughout and dead_or_set
11514 to be of type regset_head, not regset. All users changed by adding
11516 * reload1.c (new_insn_chain): Don't allocate regsets, just clear them.
11518 1999-12-20 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
11520 * config/c4x/rtems.h: New file.
11522 1999-12-19 Bernd Schmidt <bernds@cygnus.co.uk>
11524 * reload1.c (spill_failure): Take class of failed reload as argument
11525 and print it. Caller changed.
11527 Sun Dec 19 07:50:42 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11529 * rs6000.h (SUBTARGET_DEFAULT): New macro.
11530 (TARGET_SWITCHES): Allow subtargets to default switches.
11531 * rs6000/vxppc.h (SUBTARGET_DEFAULT): New macro.
11533 1999-12-18 Mark Mitchell <mark@codesourcery.com>
11535 * crtstuff.c (__do_global_ctors_aux): Do not call __cxa_finalize
11538 Sat Dec 18 20:42:43 1999 Richard Henderson <rth@cygnus.com>
11540 * cccp.c (main): Define __STDC_VERSION__ as necessary.
11541 * cppinit.c (cpp_handle_option): Likewise.
11543 * ginclude/stdarg.h (va_copy): Use __STDC_VERSION__ to
11544 determine when to define.
11546 Sat Dec 18 20:34:00 1999 Richard Henderson <rth@cygnus.com>
11548 * alpha.c (alpha_emit_conditional_move): If TARGET_FIX, handle
11549 cmove with mismatched test and data modes.
11551 Sat Dec 18 20:30:15 1999 Richard Henderson <rth@cygnus.com>
11553 * c-typeck.c (c_expand_start_case): Don't warn for long switch
11556 Sat Dec 18 16:28:43 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11558 * alias.c: Minor reformatting.
11559 * flow.c: Likewise.
11560 * regs.h: Likewise.
11561 * stor-layout.c: Likewise.
11562 * fold-const.c: Likewise.
11563 (OVERFLOW_SUM_SIGN): Renamed from overflow_sum_sign.
11564 (struct cb_args, const_binop_1, const_binop): Pass type of arg,
11566 (size_int_wide): Cache nodes even if garbage collecting.
11567 (twoval_comparison_p): Reenable SAVE_EXPR case if operand
11568 of SAVE_EXPR has no side effects.
11569 * cse.c: Move a comment.
11570 * tree.c: Minor reformatting.
11571 (int_size_in_bytes): Return -1 if constant overflows.
11573 Sat Dec 18 18:30:20 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
11575 * unroll.c (copy_loop_body): Don't treat a REG like a PLUS.
11577 1999-12-18 10:42 -0800 Zack Weinberg <zack@wolery.cumb.org>
11579 * objc/objc-parse.c: Regenerate. This file must be rebuilt
11580 after any change to c-parse.in, even if objc-parse.y didn't
11583 1999-12-18 David S. Miller <davem@redhat.com>
11585 * toplev.c (rest_of_compilation): Restore BLOCK tree
11586 reconstruction and branch shortening changes lost in
11587 December 18th change.
11589 Sat Dec 18 05:29:29 1999 Scott Bambrough <scottb@netwinder.org>
11591 * config/arm/linux-elf.h: Change all instances of
11592 ARM_FLAG_SHORT_BYTES to ARM_FLAG_MMU_TRAPS.
11593 * config/arm/uclinux-elf.h: Likewise.
11595 1999-12-18 Gabriel Dos Reis <gdr@codesourcery.com>
11597 * toplev.c (notice, vmessage, v_message_with_file_and_line,
11598 v_message_with_decl, file_and_line_for_asm,
11599 v_error_with_file_and_line, v_error_with_decl, v_error_for_asm,
11600 verror, vfatal, v_warning_with_file_and_line, v_warning_with_decl,
11601 v_warning_for_asm, vwarning, vpedwarn, v_pedwarn_with_decl,
11602 v_pedwarn_with_file_and_line, vsorry, vnotice, count_error,
11603 pfatal_with_name, fatal_io_error, need_error_newline,
11604 last_error_function, last_error_tick, announce_function,
11605 default_print_error_function, print_error_function,
11606 report_error_function, fnotice, error_with_file_and_line,
11607 error_with_decl, error_for_asm, error, set_fatal_function, fatal,
11608 _fatal_insn, _fatal_insn_not_found, warning_with_file_and_line,
11609 warning_with_decl, warning_for_asm, warning, pedwarn,
11610 pedwarn_with_decl, pedwarn_with_file_and_line, sorry): Move to
11612 (compile_file): Use fnotice instead of notice. Adjust call.
11614 * diagnostic.c: New file.
11616 * Makefile.in (OBJS): Include diagnostic.o
11617 (diagnostic.o): Define dependence.
11619 1999-12-18 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
11621 * config/c4x/c4x.h (ASM_OUTPUT_XXX): Wrap in do-while(0).
11624 1999-12-18 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
11626 * config/c4x/c4x.md (rpts_top, rptb_top): Add clobbers for rs and re.
11628 1999-12-17 13:21 -0800 Zack Weinberg <zack@rabi.columbia.edu>
11630 * fixtests.c (is_cxx_header): New fn, split out of
11632 (else_endif_label): Allow "#endif // comment" in C++ headers,
11633 as determined by is_cxx_header.
11634 * fixfixes.c (else_endif_label_fix): Update comment.
11635 * fixincl.c: Don't output VERB_PROGRESS lines if stdout is not
11637 * genfixes: Correct double thinko in commandline parsing.
11638 * hackshell.tpl: Generate correct sh syntax for bypass
11641 * inclhack.def (all): Whenever an inserted preprocessor
11642 conditional is split over multiple lines, use double
11643 backslashes in this file so the fixed header will be readable.
11645 (AAB_fd_zero_glibc_1_0): Rename to AAB_fd_zero_asm_posix_types_h
11646 and add bypass entry for correct version of this header.
11647 (AAB_fd_zero_glibc_1_x): Rename to AAB_fd_zero_gnu_types_h.
11648 (AAB_fd_zero_glibc_2_0): Rename to AAB_fd_zero_selectbits_h.
11650 (hpux8_bogus_inlines): New fix, split from...
11651 (ultrix_atof_param) ... here.
11652 (math_expression): Add bypass entry keyed to glibc comment
11653 indicating the problem has been dealt with; disable
11654 unnecessary sed operations; update commentary.
11655 (math_gcc_ifndefs): Rename to math_huge_val_from_dbl_max,
11656 add select and bypass entries, simplify shell operation.
11657 (math_huge_val_ifndef): Split from math_gcc_ifndefs.
11659 (ip_missing_semi, rs6000_param, tinfo_cplusplus,
11660 ultrix_atof_param): Add select entry.
11661 (stdio_va_list, sunos_mather_decl): Add bypass entry.
11662 (systypes_for_aix, sysv86_string, tinfo_cplusplus): Put the
11663 comments with the fixes they describe.
11665 * c-parse.in (string action): Do not warn about ANSI string
11666 concatenation in system headers. Affects C parser only.
11667 * c-parse.y, c-parse.c, c-parse.h: Rebuild.
11669 1999-12-16 Jakub Jelinek <jakub@redhat.com>
11671 * config/sparc/sparc.h (TARGET_ARCH32): Exchange ifdefs so that if
11672 compiling libgcc2 the macro depends always on arch cpp defines.
11674 Fri Dec 17 10:34:16 1999 Richard Earnshaw <rearnsha@arm.com>
11676 * loop.c (insert_loop_mem): Don't record MEMs from inside
11679 Fri Dec 17 12:08:11 MET 1999 Jan Hubicka <hubicka@freesoftr.cz>
11681 * regclass.c (regclass): Do not use flowgraph when not optimizing.
11683 * gcse.c (try_replace_reg): Do replacements in REG_EQUAL/REG_EQUIV
11684 notes too, create one when replacement failed, attempt to simplify
11686 (cprop_insn): Propagate even to registers mentioned only in REG_EQUAL
11687 or REG_EQUIV notes.
11689 1999-12-16 Mark Mitchell <mark@codesourcery.com>
11691 * crtstuff.c (__dso_handle): Declare.
11692 (__cxa_finalize): Likewise.
11693 (do_global_dtors_aux): Call __cxa_finalize if __dso_handle is
11696 * invoke.texi: Document -fuse-cxa-atexit.
11698 * tree.h (ptr_type_node): Document.
11699 (const_ptr_type_node): Likewise.
11701 Fri Dec 17 01:32:38 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
11703 * regmove.c (optimize_reg_copy_1): Ignore LOOP notes.
11704 (optimize_reg_copy_2): Likewise.
11705 (optimize_reg_copy_3): Likewise.
11706 (fixup_match_2): Likewise.
11707 (regmove_optimize): Likewise.
11708 (fixup_match_1): Liekwise.
11710 * i386.md (HI to SImode promoting splitters): Rewrite.
11711 (pushsf mem peep2): New.
11712 (testhi to andhi peep2): Remove.
11713 * i386.h (x86_promote_QImode): New.
11714 (TARGET_PROMOTE_QImode): New.
11715 (PREDICATE_CODES): Add promotable_binary_operator.
11716 * i386.c (x86_promote_QImode0: New.
11717 (promotable_binary_operator): New.
11718 * i386-protos.h (promotable_binary_operator): New.
11720 * i386.md (test?i_1): Use "nonmemory_operand" predicate, simplify
11722 (one_cmpl?i*): Pass "NOT" to unary_operator_ok.
11724 1999-12-16 Mark Mitchell <mark@codesourcery.com>
11726 * Makefile.in (INTREGRATE_H): Rename to INTEGRATE_H.
11727 * function.c (insert_block_after_note): Remove.
11728 (retrofit_block): Likewise.
11729 (identify_blocks): Fix indentation.
11730 (reorder_blocks): Don't NULL out NOTE_SOURCE_FILE for a
11731 NOTE_INSN_BLOCK_BEG or NOTE_INSN_BLOCK_END.
11732 * function.h (insert_block_after_note): Remove prototype.
11733 (retrofit_block): Likewise.
11734 * integrate.c (expand_inline_function): Don't call
11735 find_loop_tree_blocks. Use expand_start_bindings_and_block, not
11736 just expand_start_bindings. Use the block_map to remap old
11737 NOTE_BLOCKs to new ones.
11738 (integrate_decl_tree): Keep track of remapped blocks.
11739 * integrate.h (struct inline_remap): Add block_map.
11740 * stmt.c (expand_fixup): Don't try to retrofit_blocks. Just set
11741 NOTE_BLOCK on the notes.
11742 (expand_start_bindings): Rename to ...
11743 (expand_start_bindings_and_block): Add parameter. Set NOTE_BLOCK.
11744 (expand_end_bindings): Set NOTE_BLOCK.
11745 * toplev.c (rest_of_compilation): In function-at-a-time-mode,
11746 reconstruct the BLOCK tree.
11747 * tree.h (expand_start_bindings): Macroize. Call ...
11748 (expand_start_bindings_and_block): New function.
11750 1999-12-16 Jakub Jelinek <jakub@redhat.com>
11752 * config/sparc/sparc.c (print_operand): Cast fprintf arguments
11753 to match the format.
11755 1999-12-16 David S. Miller <davem@redhat.com>
11757 * expr.c (emit_move_insn_1): Only emit clobbers if one of
11758 the outputs is a SUBREG.
11759 * rtlanal.c (reg_overlap_mentioned_p): Revert December 15th
11762 * config/sparc/sparc.c (epilogue_renumber): Add default case
11765 Thu Dec 16 11:33:57 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
11767 * toplev.c (rest_of_compilation): Run branch shortening after
11770 * regclass.c (loop_depth): Remove
11771 (scan_one_insn): Do not handle LOOP_NOTE insns.
11772 (regclass): Go through basic blocks and set loop_cost
11774 Thu Dec 16 02:56:25 1999 Zack Weinberg <zack@bitmover.com>
11776 * tree.h (DECL_FROM_INLINE): Check DECL_ABSTRACT_ORIGIN too.
11778 Thu Dec 16 10:43:35 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
11780 * i386.md (movqi): Use "nonimmediate_operand" for output operand.
11781 (movstrictqi, movdi, movsf, movdf, movxf): Likewise.
11782 (adddi, addqi, addhi, subdi, subqi, subhi, ffs): Likewise.
11784 Thu Dec 16 02:41:26 1999 Richard Henderson (rth@cygnus.com)
11786 * loop.c (insert_loop_mem): Ignore memory clobbers.
11788 * combine.c (simplify_comparison): Reduce (OP (MINUS A B) 0)
11791 Thu Dec 16 02:26:11 1999 Jeffrey A Law (law@cygnus.com)
11793 * profile.c: Remove redundant #include "output.h".
11795 * h8300.md (HImode preinc peephole): Fix typo.
11797 1999-12-15 Jason Merrill <jason@casey.cygnus.com>
11799 * function.c (retrofit_block): Abort if we don't find a suitable insn.
11800 (insert_block_after_note): Abort if we don't have a previous block.
11801 Remove FN parameter.
11802 * function.h: Adjust.
11804 1999-12-15 Mark Mitchell <mark@codesourcery.com>
11806 * builtins.c (expand_builtin_mathfn): Make sure not to expand the
11807 argument more than once.
11809 1999-12-15 Jason Merrill <jason@casey.cygnus.com>
11811 * stmt.c (expand_decl): Expand upper bound of a dynamic array.
11813 1999-12-15 Jakub Jelinek <jakub@redhat.com>
11815 * expr.c (emit_group_load): Use dst mode if src is VOIDmode.
11817 Wed Dec 15 16:11:55 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
11819 * function.c (PREFERRED_STACK_BOUDNARY): Provide default value.
11820 (assign_stack_local_1): Limit alignment to PREFERRED_STACK_BOUNDARY,
11821 update stack_alignment_needed.
11822 (prepare_function_start): Initialize stack_alignment_needed
11823 * function.h (struct function): Add field stack_alignment_needed.
11825 Wed Dec 15 14:55:24 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
11827 * caller-save.c (insert_one_insn): Returns struct insn_chain *.
11828 Handle live_throughout / dead_or_set instead of live_before /
11830 (save_call_clobbered_regs): Get register livenessinformation from
11831 chain->live_throughout.
11832 (add_stored_regs): New function.
11833 (insert_restore, insert_save): Add restored / saved registers to
11835 * global.c (reg_dies): New parameter chain.
11836 (reg_becomes_live): Third parameter is regs_set now.
11837 Changed all callers.
11838 (reg_dies): New parameter chain. Changed all callers.
11839 (build_insn_chain): Set live_throughout instead of
11840 live_before / live_after.
11841 * reload.h (struct insn_chain): Replace members live_before /
11842 live_after with live_throughout / dead_or_set.
11843 * reload1.c (new_insn_chain): Handle live_throughout / dead_or_set
11844 instead of live_before / live_after.
11845 (maybe_fix_stack_asms, find_reload_regs, finish_spills): Likewise.
11846 (order_regs_for_reload, find_reg, finish_spills): Likewise.
11847 (choose_reload_regs_init): Likewise.
11848 * stupid.c (current_chain, find_clobbered_regs): Delete.
11849 (stupid_life_analysis): Set chain->live_throughout chain->dead_or_set
11850 instead of chain->live_before / chain->live_after.
11851 (mark_hard_ref): New function.
11852 (stupid_mark_refs): Call mark_hard_ref. Clear chain->live_throughout.
11854 1999-12-15 David S. Miller <davem@redhat.com>
11856 * rtlanal.c (reg_overlap_mentioned_p): Handle CONCAT.
11858 Wed Dec 15 15:05:30 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
11860 * flow.c (calculate_loop_depth): Make global, remove prototype,
11861 rewrite to use new loop infrastructure.
11862 (find_basic_block): Remove calculate_loop_depth call.
11863 * toplev.c (rest_of_compilation): Call find_basic_block.
11864 * output.h (calculate_loop_depth): Declare.
11866 * flow.c (dump_flow_info): Dump loop_depth.
11867 (flow_loops_nodes_find): Increase loop_depth for basic block in the
11869 (flow_loops_find): Initialize the loop_depth for each basic block.
11871 1999-12-15 Jason Merrill <jason@casey.cygnus.com>
11873 * tree.c (decl_function_context): Handle virtual functions.
11875 * tlink.c (scan_linker_output): Don't look in demangled name when
11876 looking for linker output keywords.
11878 * dwarfout.c (output_type): We can defer namespace-scope classes.
11880 Wed Dec 15 01:23:29 1999 Jeffrey A Law (law@cygnus.com)
11882 * regclass.c (record_reg_classes): Update comment for merging
11883 register class preferences in reg->reg copies. Tighten conditions
11884 for merging register class preferences in reg->reg copies.
11886 Wed Dec 15 02:19:32 1999 David Edelsohn <edelsohn@gnu.org>
11888 * rs6000.md (tablejumpdi): Generate DImode LABEL_REF.
11890 1999-12-14 Geoff Keating <geoffk@cygnus.com>
11892 * config/m68k/m68020-elf.h (ENDFILE_SPEC): Delete.
11893 (INIT_SECTION_ASM_OP): Delete.
11894 (FINI_SECTION_ASM_OP): Delete.
11895 (STARTFILE_SPEC): Define to hold just crtbegin.o.
11897 1999-12-14 Jason Merrill <jason@casey.cygnus.com>
11899 * dwarf2out.c (add_abstract_origin_attribute): Do call abort if
11900 the abstract origin wasn't emitted.
11902 * dwarf2out.c (class_scope_p): New fn.
11903 (gen_subprogram_die): Use it.
11904 (gen_variable_die): Use it. Tweak logic.
11905 (gen_struct_or_union_type_die): Check context_die to determine
11906 if we're function-local.
11907 (dwarf2out_decl): Check DECL_BUILT_IN, not DECL_FUNCTION_CODE.
11909 1999-12-14 Bernd Schmidt <bernds@cygnus.co.uk>
11911 * loop.c (check_dbra_loop): Can't reverse a biv that has
11912 maybe_multiple set.
11914 1999-12-14 Nick Clifton <nickc@cygnus.com>
11916 * config/arm/arm.c: Add support for -mcpu=arm720 command line
11919 Tue Dec 14 18:13:32 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
11921 * loop.c (strength_reduce): Fix sign of giv lifetime calculation
11922 for givs made from biv increments.
11924 Tue Dec 14 08:11:27 1999 Richard Henderson <rth@cygnus.com>
11926 * configure.in (alpha-osf, alpha-linux): Handle ev6[78].
11927 * alpha.c (override_options): Recognize -mcpu=ev67.
11928 * alpha.h (CPP_CPU_EV67_SPEC): New.
11929 (CPP_CPU_DEFAULT_SPEC): Examine TARGET_CPU_DEFAULT to use it.
11930 (EXTRA_SPECS): Update.
11932 Tue Dec 14 08:04:28 1999 Richard Henderson <rth@cygnus.com>
11934 * cppp.c (main): Set trigraphs and __STRICT_ANSI__ as
11935 appropriate for -lang-c89 and -std=*.
11936 * cppinit.c (cpp_handle_option): Likewise.
11937 (new_pending_define): New, split out from cpp_handle_option.
11938 * gcc.c (default_compilers): Don't define __STRICT_ANSI__
11939 or enable trigraphs for -ansi/-std=*.
11941 * ginclude/stdarg.h (__va_copy): New.
11942 (va_copy): Don't define for C89.
11944 Tue Dec 14 08:37:27 CST 1999 Clinton Popetz <cpopetz@cygnus.com>
11946 * config/arm/arm.md (mulsidi3adddi, umulsidi3adddi): New patterns
11947 for long long multiply-accumulate.
11949 Tue Dec 14 13:51:38 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
11951 * regclass.c (scan_one_insn): Set loop_cost to 1 when
11952 optimizing for size.
11954 1999-12-14 Bernd Schmidt <bernds@cygnus.co.uk>
11956 * reload1.c (reload): Can't avoid select_reload_regs/finish_spills
11957 if something changed. Back out that part of yesterday's changes.
11959 * loop.c (loop_max_reg): New static variable.
11960 (loop_optimize): Initialize it. Eliminate one unnecessary call to
11962 (scan_loop): Call reg_scan_update whenever we may have added new
11963 registers, and update loop_max_reg.
11965 Tue Dec 14 12:07:29 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
11967 * regclass.c (record_reg_classes): Do not do the copying preferrencing
11968 when source does not die.
11970 * regclass.c (record_reg_classes): Handle INOUT operands propertly.
11972 1999-12-14 Jakub Jelinek <jakub@redhat.com>
11974 * config/sparc/linux64.h (TARGET_LIVE_G0,
11975 TARGET_BROKEN_SAVERESTORE): Don't support weird SPARC
11977 * config/sparc/linux.h (TARGET_LIVE_G0,
11978 TARGET_BROKEN_SAVERESTORE): Likewise.
11979 * config/sparc/linux-aout.h (TARGET_LIVE_G0,
11980 TARGET_BROKEN_SAVERESTORE): Likewise.
11982 * config/sparc/sparc.h (SPARC_DEFAULT_CMODEL): Default to CM_32.
11983 (CONDITIONAL_REGISTER_USAGE): For block profiling fix %g4 on sparc64,
11985 (MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Use %g4 instead of %g2
11986 as sparc64 block profiling register.
11987 * config/sparc/sparc.c (sparc_override_options): Allow block
11988 profiling with -m32.
11989 (sparc_block_profiler): Use %g4 instead of %g2 as sparc64 block
11990 profiling register.
11991 * config/sparc/linux64.h (MACHINE_STATE_*): Only provide these
11992 macros on TARGET_ARCH32. sparc.h has macros good enough for sparc64.
11993 * config/sparc/sol2.h (MACHINE_STATE_*): Likewise.
11995 * config/sparc/xm-sp64.h: Avoid using __sparc_v9__ when testing
11997 * config/sparc/sparc.h: Likewise.
11998 * config/sparc/xm-sysv4-64.h: Likewise.
11999 * config/float-sparc.h: Likewise.
12000 * glimits.h: Likewise.
12001 * longlong.h: Likewise.
12003 * config/sparc/linux64.h (DEFAULT_VTABLE_THUNKS): Define to 1.
12004 (ASM_IDENTIFY_GCC): Remove.
12006 1999-12-14 Bernd Schmidt <bernds@cygnus.co.uk>
12008 * combine.c (combine_simplify_rtx): Don't make shared rtl.
12009 (simplify_logical): Likewise.
12011 1999-12-14 Mumit Khan <khan@xraylith.wisc.edu>
12013 * cccp.c (INO_T_EQ): Disable inode-based optimization for Cygwin.
12014 * cppfiles.c (INO_T_EQ): Likewise.
12016 1999-12-14 Mumit Khan <khan@xraylith.wisc.edu>
12018 * i386/crtdll.h (STARTFILE_SPEC): Add -pg profiling support.
12019 * i386/mingw32.h (LIB_SPEC): Likewise.
12020 (STARTFILE_SPEC): Likewise.
12021 * i386/uwin.h (LIB_SPEC): Likewise.
12022 (STARTFILE_SPEC): Likewise.
12024 * i386/mingw32.h (SUBTARGET_PROLOGUE): Override Cygwin definition.
12025 * i386/uwin.h (SUBTARGET_PROLOGUE): Likewise.
12027 Mon Dec 13 20:25:29 1999 Jeffrey A Law (law@cygnus.com)
12029 * combine.c (combine_simplify_rtx): Fix order of checks for
12030 (ashiftrt foo C) -> (lt foo (const_int 0)) simplification.
12032 1999-12-13 Clinton Popetz <cpopetz@cygnus.com>
12034 * config/arm/arm.md (*mulsidi3adddi, *umulsidi3adddi) Backed out
12035 12/10/99 change, reapplied to merged-arm-thumb-backend-branch.
12037 1999-12-10 Bernd Schmidt <bernds@cygnus.co.uk>
12039 * hard-reg-set.h (inv_reg_alloc_order): Declare if REG_ALLOC_ORDER is
12041 * regclass.c (inv_reg_alloc_order): New array.
12042 (regclass_init): If REG_ALLOC_ORDER is defined, initialize it.
12044 * reload.h (struct insn_chain): Delete fields group_size, group_mode,
12045 counted_for_groups, counted_for_nongroups. Add fields rld and
12047 * reload.c (push_secondary_reload): Don't set nongroup field of
12049 (push_reload): Likewise.
12050 (find_reloads): Delete code to compute nongroup fields.
12051 * reload1.c (reload_insn_firstobj): New static variable.
12052 (pseudos_counted, spilled_pseudos): Now of type regset_head. All
12054 (calculate_needs, find_tworeg_group, find_group, possible_group_p,
12055 count_possible_groups, modes_equiv_for_class_p, new_spill_reg,
12056 dump_needs, maybe_mark_pseudo_spilled, hard_reg_use_compare): Delete
12058 (count_pseudo, select_reload_regs, copy_reloads, find_reg): New
12060 (struct hard_reg_n_uses): Deleted.
12061 (potential_reload_regs): Deleted.
12062 (init_reload): Initialize spilled_pseudos and pseudos_counted.
12063 (reload): Don't try to allocate reload registers if we already know
12064 we have to make another pass. Call select_reload_regs. Free memory
12065 starting with reload_firstobj when starting another pass.
12066 Don't allocate spilled_pseudos.
12067 (calculate_needs_all_insns): Call copy_reloads for an insn that
12068 needs reloads; don't call calculate_needs.
12069 (spill_cost): New static array.
12070 (used_spill_regs_local): New static variable.
12071 (order_regs_for_reload): Rewrite to lose hard_reg_n_uses and the code
12072 to compute potential_reload_regs.
12073 (find_reload_regs): Completely rewritten to use find_reg.
12074 (allocate_reload_reg): Don't test counted_for_groups or
12075 counted_for_nongroups. Lose NOERROR arg and code to give an error;
12076 all cllers changed.
12077 (choose_reload_regs): Add fallback code that uses the existing
12078 register allocation from find_reload_regs.
12080 Mon Dec 13 00:54:14 1999 Philippe De Muyter <phdm@macqel.be>
12082 * flow.c (create_edge_list): Cast xmalloc return value.
12084 Mon Dec 13 00:47:58 1999 Jeffrey A Law (law@cygnus.com)
12086 * doprnt.c: Remove incorrect comment closure.
12088 * cse.c: Fix a few minor whitespace goofs.
12090 1999-12-13 Don Bowman <don@pixstream.com>
12092 * mips/vxworks.h: Fix problem with comment termination.
12093 (EXTRA_SECTIONS): Add in_sbss.
12094 (EXTRA_SECTION_FUNCTIONS): Corresponding changes.
12096 1999-12-12 David S. Miller <davem@redhat.com>
12098 * cse.c (struct cse_reg_info): Add hash_next member,
12099 reorder rest of struct for better packing on 64-bit
12101 (cse_reg_info_tree): Kill.
12102 (REGHASH_SHIFT, REGHASH_SIZE, REGHASH_MASK, reg_hash,
12103 REGHASH_FN): New custom pow2 hash mechanism.
12105 (HASH_SHIFT, HASH_SIZE, HASH_MASK, HASH, table): Rework to
12106 use a pow2 hash table.
12107 (get_cse_reg_info): Rework to use new REGHASH.
12108 (new_basic_block): Likewise, use HASH_SIZE, and inline
12110 (remove_from_table): Rework to use HASH_SIZE/HASH_MASK,
12111 and inline free_element call.
12112 (lookup_as_function, insert, flush_hash_table, invalidate,
12113 remove_invalid_refs, remove_invalid_subreg_refs, rehash_using_reg,
12114 invalidate_for_call, use_related_value, find_comparison_args,
12115 fold_rtx, equiv_constant, cse_insn, invalidate_memory): Likewise.
12116 (hash_cse_reg_info, cse_reg_info_equal_p, free_element,
12117 get_element): Kill.
12119 Sun Dec 12 21:31:44 1999 Jeffrey A Law (law@cygnus.com)
12121 * cse.c (cse_basic_block): Free qty_table consistently.
12123 1999-12-12 David S. Miller <davem@redhat.com>
12124 Jakub Jelinek <jakub@redhat.com>
12126 * config/sparc/sparc.md (movtf reg/reg split): Don't generate
12127 SUBREGs by hand, gen the appropriate hard reg directly.
12128 (movtf reg/mem split): Likewise and alter_subreg on destination
12130 (movtf mem/reg split): Similarly.
12131 (movdf_cc_sp64): Rename from hidden pattern.
12132 (movtf_cc_hq_sp64): Renamed from movtf_cc_sp64.
12133 (movtf_cc_sp64, following split): New pattern and splitter.
12134 (movdf_cc_reg_sp64): Rename from hidden pattern.
12135 (movtf_cc_reg_hq_sp64): Renamed from movtf_cc_reg_sp64, require
12137 (movtf_cc_reg_sp64, following split): New pattern and splitter.
12139 1999-12-12 Stephen L Moshier <moshier@mediaone.net>
12141 * loop.c (load_mems): Don't hoist written floating point mem
12144 1999-12-12 Mark Mitchell <mark@codesourcery.com>
12146 * except.h (struct eh_queue): Add `next' pointer.
12147 (struct eh_status): Make x_ehqueue a pointer.
12148 (push_ehqueue): Declare.
12149 (pop_ehqueue): Likewise.
12150 * except.c (expand_eh_region_end): Adjust now that ehqueue is a
12152 (expand_fixup_region_end): Likewise.
12153 (expand_leftover_cleanups): Likewise.
12154 (push_ehqueue): Define.
12155 (pop_ehqueue): Likewise.
12156 (emit_cleanup_handler): Use push_ehqueue and pop_ehqueue rather
12157 than doing it inline.
12158 (expand_start_all_catch): Adjust now that ehqueue is a
12160 (mark_eh_queue): Mark all level of the queue.
12161 (mark_eh_status): Adjust now that ehqueue is a
12163 (init_eh_for_function): Allocate ehqueue.
12164 (free_eh_status): Free it.
12165 * stmt.c (expand_cleanups): Save the ehqueue around the cleanup
12166 expansion for a fixup.
12168 1999-12-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12170 * gthr-single.h (__gthread_active_p): Add prototype arguments.
12172 * libgcc2.c (__udivmoddi4): Remove unnecessary decls.
12173 (__dummy, __builtin_saveregs, __bb_exit_trace_func, __bb_init_prg,
12174 __bb_trace_func, __bb_trace_func_ret, __bb_trace_ret,
12175 function_ptr, getpagesize, __enable_execute_stack,
12176 __enable_execute_stack, __clear_insn_cache,
12177 __enable_execute_stack, __do_global_dtors, __do_global_ctors,
12178 _cleanup, _exit, __default_terminate, __terminate_func,
12179 __terminate, __empty, __throw, new_eh_context,
12180 eh_context_initialize, eh_context_static, eh_context_specific,
12181 get_eh_context, __get_eh_context, __get_eh_info,
12182 init_reg_size_table, eh_threads_initialize,
12183 __get_dynamic_handler_chain, __sjthrow, __sjpopnthrow,
12184 __unwinding_cleanup, throw_helper, __throw, __rethrow,
12185 __pure_virtual): Add prototype arguments.
12186 (__bb_exit_func): Cast a sizeof to long when comparing against one.
12187 Cast a signed value to unsigned long when comparing against one.
12188 (new_eh_context): Wrap in _GTHREADS macro.
12189 (__sjthrow, __sjpopnthrow): Initialize variable `cleanup' at
12191 (in_reg_window): Mark parameters with __attribute__ ((__unused__)).
12192 (throw_helper): Initialize variables `handler_p' and `pc_p'.
12194 1999-12-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12196 * combine.c (record_promoted_value): Remove unused variable
12199 * emit-rtl.c (renumber_insns): Likewise for `old_max_uid'.
12201 * global.c (record_conflicts): Likewise for `j'.
12203 * genoutput.c (output_insn_data): Don't unnecessarily cast away
12206 1999-12-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12208 * i386-protos.h (output_387_binary_op, output_fix_trunc,
12209 output_fp_compare): Constify a char*.
12211 * i386.c (ix86_split_to_parts, ix86_safe_length_prefix): Add
12213 (override_options, ix86_comp_type_attributes, print_operand,
12214 output_387_binary_op, output_fix_trunc, output_fp_compare):
12216 (ix86_sched_reorder): Mark parameter `clock_var' with
12219 * i386.h (DEBUG_PRINT_REG): Constify a char*.
12221 Fri Dec 10 16:12:13 1999 Alexandre Petit-Bianco <apbianco@cygnus.com>
12223 * tree.def (EXPR_WITH_FILE_LOCATION): Temporarily add a third
12224 operand, for use in the Java front-end.
12226 1999-12-10 Ben Collins <bcollins@debian.org>
12228 * configure.in: Fix typo for "-64" in 64bit as check.
12229 * configure: Rebuilt.
12231 1999-12-10 Jakub Jelinek <jakub@redhat.com>
12233 * longlong.h (__sparc_v9__): Use %rDIGIT instead of %DIGIT where
12236 1999-12-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12238 * c-parse.in (string): With -Wtraditional, warn if ANSI string
12239 concatenation is utilized.
12241 * invoke.texi (-Wtraditional): Document it.
12243 1999-12-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12245 * flow.c (flow_loops_dump): Avoid ANSI string concatenation.
12246 Cast a ptrdiff_t to long and pass it to printf with %ld.
12248 1999-12-10 Geoff Keating <geoffk@cygnus.com>
12250 * config/m68k/m68k.h (CONDITIONAL_REGISTER_USAGE): If we have no
12251 68881, we have no 68881 registers at all.
12252 (HARD_REGNO_MODE_OK): It is always OK to put a MODE_FLOAT
12253 value in a 68881 register if it is available.
12255 1999-12-10 Clinton Popetz <cpopetz@cygnus.com>
12257 * config/arm/arm.md (*mulsidi3adddi, *umulsidi3adddi): New patterns
12258 for long long multiply-accumulate.
12260 1999-12-10 Bernd Schmidt <bernds@cygnus.co.uk>
12262 * loop.c (insert_loop_mem): Undo last change.
12264 1999-12-10 David S. Miller <davem@redhat.com>
12266 * config/sparc/sparc.c (fp_sethi_p, fp_mov_p, fp_high_losum_p):
12268 * config/sparc/sparc-protos.h: Add them.
12269 * config/sparc/sparc.h: Add them to PREDICATE_CODES.
12270 (EXTRA_CONSTRAINT_BASE): New macro, handling Q, R, and S
12271 constraints which use those helpers.
12272 (EXTRA_CONSTRAINT): Use this new macro.
12273 * md.texi: Update sparc target constraints documentation.
12274 * config/sparc/sparc.md (clear_sf, clear_sfp, movsf_const_intreg,
12275 movsf_const_high, movsf_const_lo, movsf_insn): Delete.
12276 (movsf_insn_novis_liveg0, movsf_insn_novis_noliveg0,
12277 movsf_insn_vis, movsf_lo_sum, movsf_high): New patterns.
12278 (movsf high/lo_sum split): Rework for new patterns.
12279 (movsf expander): Allow storing fp_zero to memory if ! live_g0.
12281 1999-12-09 Gavin Romig-Koch <gavin@cetus.cygnus.com>
12283 * c-common.c (c_common_nodes_and_builtins):
12284 Create __builtin_ptrdiff_t and __builtin_size_t.
12286 Thu Dec 9 18:05:48 1999 Jeffrey A Law (law@cygnus.com)
12288 * pa/elf.h (MAX_OFILE_ALIGNMENT): Define.
12290 Fri Dec 10 00:53:10 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
12292 * regclass.c (globalize_reg): Re-instate test that allows
12293 fixed registers to be declared as a variable even after functions
12296 Fri Dec 10 00:52:13 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
12298 * i386.md (cpu attribute): Add "athlon".
12299 (athlon_decode): New attribute.
12300 (Athlon scheduling units definitions): New.
12301 (fcmp and shld patterns): Set athlon_decode to "vector".
12302 * i386.c (athlon_cost): New.
12304 (x86_use_leave, x86_push_memory, x86_movx, x86_cmove, x86_deep_branch,
12305 x86_use_sahf): Set for Athlon.
12306 (x86_use_fiop): Unset for Athlon.
12307 (override_options): Define Athlon alignments and "athlon" name.
12308 (x86_adjust_cost): Penalize AGI and delayed latencies for Athlon.
12309 * i386.h (TARGET_ATHLON): New.
12310 (enum processor_type): Add PROCESSOR_ATHLON.
12311 (TARGET_CPU_DEFAULT_SPEC): Set to "-D__tune_athlon__"
12313 (TARGET_CPP_CPU_SPECS): Set -D__tune_athlon__ for Athlon.
12315 1999-12-09 Andreas Jaeger <aj@suse.de>
12317 * loop.c (record_biv): Declare parameter as int.
12319 * config/i386/i386-protos.h: Declare long_memory_operand.
12321 1999-12-09 Mark Mitchell <mark@codesourcery.com>
12323 * tree.c (copy_node): Do zero the TREE_CHAIN, even for an
12324 EXPR_WITH_FILE_LOCATION.
12326 Thu Dec 9 11:36:24 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
12328 * i386.md (neg??, abs?f, one_cmpl?i): Use nonimmediate_operand
12331 * flow.c (recompute_reg_usage): Use basic block info to get loop_depth.
12333 * combine.c (try_combine, distribute_notes): Remove REG_N_REFS
12336 1999-12-09 Jakub Jelinek <jakub@redhat.com>
12338 * config/sparc/linux64.h (TARGET_DEFAULT): Make -mapp-regs
12339 default on linux64 again.
12340 * config/sparc/t-linux64: Add mno-app-regs and non-medlow code
12341 models for multilibing.
12342 * genmultilib: Accept | as alternative separator within a set in
12345 * config/sparc/sparc.h (PROMOTE_FOR_CALL_ONLY): Define.
12347 * calls.c (precompute_arguments): Make sure initial_value contains
12348 value pseudo which CSE expects.
12349 * cse.c (struct set): New entry orig_src.
12350 (cse_insn): Set it early on entry, use it for libcall EQUIV note
12353 Wed Dec 8 22:24:15 1999 Richard Henderson <rth@cygnus.com>
12355 * flow.c (count_basic_blocks): Don't add (use (const_int 0)) insns.
12357 1999-12-08 Bernd Schmidt <bernds@cygnus.co.uk>
12359 * loop.c (insert_loop_mem): Don't hoist volatile mems out of loops.
12361 1999-12-08 Jakub Jelinek <jakub@redhat.com>
12363 * config/sparc/sparc.c (ultra_cmove_results_ready_p,
12364 ultra_fpmode_conflict_exists, ultra_flush_pipeline): Typo fix.
12366 * config/sparc/sparc.h (SPARC_SETHI_P): Don't look at topmost 32 bits
12369 * longlong.h: Merge in changes from glibc.
12370 Also don't clobber %g2 register in 32bit SPARC assembly, so that
12371 -mno-app-regs libgcc can be compiled.
12372 * libgcc2.c: Add defines so that the updated longlong.h
12373 can be used in libgcc2.a. Also, make sure on most architectures
12374 (at least on all which have optimized code in longlong.h defined
12375 for) {SI,W}_TYPE_SIZE is suitable for preprocessor tests.
12377 1999-12-08 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
12379 * config/sparc/sol2-64.h: Same as sol2-sld-64.h, except that
12380 `-m EMULATION' is added to non-default LINK_ARCH_SPECs.
12381 * configure.in: Use sol2-64.h instead of sol2-sld-64.h if linker
12383 * configure: Rebuilt.
12385 Wed Dec 8 03:45:40 1999 Richard Henderson <rth@cygnus.com>
12387 * alpha.c (secondary_reload_class): For !BWX, sub-simode
12388 outputs require a register.
12390 1999-12-08 Brendan Kehoe <brendan@cygnus.com>
12392 * Makefile.in (FPBIT_FUNCS, DPBIT_FUNCS): Add _sf_to_usi
12393 _df_to_usi. Required by some targets, so US_SOFTWARE_GOFAST calls to
12394 functions like dptoul will be resolved.
12395 (libgcc2.a): Make sure that the object files from DPBIT are named
12396 differently (prefix `_dp') from those that would be coming from
12399 1999-12-08 Alexandre Oliva <oliva@lsd.ic.unicamp.br>, Jakub Jelinek <jakub@redhat.com>
12401 * configure.in: When target is sparc* and tm_file contains 64,
12402 test for 64bit support in assembler. If not supported, remove
12403 sparc/t-sol2-64 from target-dependent Makefile fragments.
12404 (AS_SPARC64_FLAG): Define to the assembler flag for 64bit.
12405 (HAVE_AS_OFFSETABLE_LO10): Rework test to use these flags.
12406 (HAVE_AS_REGISTER_PSEUDO_OP): Use config.cache.
12407 * acconfig.h (AS_SPARC64_FLAG): Added.
12408 * configure, config.in: Rebuilt.
12409 * config/sparc/sol2-sld-64.h: Same as sol2.h, if without 64bit
12410 support. Use AS_SPARC64_FLAG.
12412 1999-12-07 Jakub Jelinek <jakub@redhat.com>
12414 * config/sparc/sparc.c (hard_32bit_mode_classes): Mark registers
12415 suitable for holding OFmode values so that gcc works with complex
12417 (hard_64bit_mode_classes): Likewise.
12419 * config/sparc/sparc.md (sethi_di_medlow_embmedany_pic): Fix pattern
12420 so that it is actually matched.
12421 (sethi_di_medlow): Likewise.
12423 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Consider TFmode 0.0L
12424 as legitimate constant if -mvis.
12425 * config/sparc/sparc.md (movtf): Likewise.
12426 (clear_sf): Use const_double_operand.
12427 (clear_sfp, clear_dfp, clear_tf, clear_tfp): New patterns.
12429 * config/sparc/sparc.c (sparc_emit_float_lib_cmp): New function.
12430 * config/sparc/sparc-protos.h (sparc_emit_float_lib_cmp): Prototype.
12431 * config/sparc/sparc.h (*_LIBCALL): Only use for _Q_*
12432 routines, _Qp_* cannot be handled like that now.
12433 (INIT_TARGET_OPTABS): Likewise.
12434 * config/sparc/sparc.md (cmptf): Accept soft float ARCH64.
12435 (seq, sne, sgt, sge, slt, sle, beq, bne, bgt, bge, blt, ble): Call
12436 sparc_emit_float_lib_cmp if ARCH64 and soft float.
12437 (extendsftf2, extenddftf2, trunctfsf2, trunctfdf2, floatsitf2,
12438 floatditf2, fix_trunctfsi2, fix_trunctfdi2, addtf3, subtf3, multf3,
12439 divtf3, sqrttf3): New expanders.
12440 (extendsftf2_hq, extenddftf2_hq, trunctfsf2_hq, trunctfdf2_hq,
12441 floatsitf2_hq, floatditf2_hq, fix_trunctfsi2_hq, fix_trunctfdi2_hq,
12442 addtf3_hq, subtf3_hq, multf3_hq, divtf3_hq, sqrttf3_hq): Rename from
12445 * configure.in (sparc64-*-linux*): Use posix threads if enabled.
12446 * configure: Rebuilt.
12447 * config/sparc/linux64.h: Default to -mcpu=ultrasparc if no
12448 -mcpu is given and we're doing 64bit compiles.
12450 Tue Dec 7 19:22:06 1999 Richard Henderson <rth@cygnus.com>
12452 * loop.h (struct induction): Add multi_insn_incr.
12453 * loop.c (basic_induction_var): New multi_insn_incr argument.
12454 Set it if we search back through previous insns for the biv.
12455 (record_biv): New multi_insn_incr argument; fill in struct induction.
12456 (strength_reduce): Discard an iv with multiple bivs, any of
12457 which require multiple insns to increment.
12459 1999-12-07 Martin v. Löwis <loewis@informatik.hu-berlin.de>
12461 * invoke.texi (C Dialect Options): Remove -flang-c9x, add -std
12464 1999-12-06 David S. Miller <davem@redhat.com>
12466 * combine.c (check_promoted_subreg): Do not conditionalize this upon
12467 PROMOTE_FUNCTION_RETURN.
12469 Mon Dec 6 15:12:14 1999 Jim Wilson <wilson@cygnus.com>
12471 * regmove.c (optimize_reg_copy_1): If no REG_DEAD note, check for
12472 and handle REG_UNUSED note on insn.
12474 * combine.c (force_to_mode, case LSHIFTRT): New local inner_mask. Set
12475 inner_mask instead of mask.
12477 1999-12-06 Brendan Kehoe <brendan@cygnus.com>
12479 * dwarf2out.c (field_byte_offset): As with dwarfout.c, size can be
12480 zero if there was an error.
12482 1999-12-06 Jakub Jelinek <jakub@redhat.com>
12484 * config/sparc/sparc.md (return_losum_di): Fix typo in asm
12487 * longlong.h: Fix clobbers in SPARC asm statements.
12489 * config/sparc/sparc.c (input_operand): Allow HImode and QImode
12490 valid sethi operations when TARGET_ARCH64.
12492 * calls.c (save_fixed_argument_area): If save_mode is BLKmode,
12493 always use move_by_pieces to avoid infinite recursion.
12494 (restore_fixed_argument_area): Likewise.
12496 * combine.c (check_promoted_subreg, record_promoted_value): New
12498 (combine_instructions): Use them to retain nonzero and sign bit
12499 information after SUBREGs are eliminated by optimizations in
12500 this pass if PROMOTE_FUNCTION_RETURN.
12502 * config/sparc/sparc.h (ASM_DECLARE_REGISTER_GLOBAL): Document
12503 .register declaration. Don't use variables with __ prefixes.
12505 Mon Dec 6 12:24:52 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12507 * fold-const.c (optimize_bit_field_compare): Only use one mode
12508 for both RHS and LHS in non-constant case.
12510 1999-12-06 Nathan Sidwell <nathan@acm.org>
12512 * frame.c (start_fde_sort): Only allocate erratic array, if
12513 linear one was allocated. Return allocated flag.
12514 (fde_insert): Only insert, if there's a valid array.
12515 (fde_end_sort): Split, sort and merge if linear and erratic
12516 arrays exist, else just sort linear one.
12517 (search_fdes): New function. Linear search through original fde
12519 (frame_init): Permit multiple initializations. Cope with
12521 (find_fde): Fallback on linear search, if failed to sort array.
12522 (__deregister_frame_info): Only free sorted array, if we
12525 1999-12-06 Jakub Jelinek <jakub@redhat.com>
12527 * config/sparc/sparc.h (MUST_PASS_IN_STACK): New macro.
12529 1999-12-05 Jakub Jelinek <jakub@redhat.com>
12531 * config/sparc/sparc.c (sparc64_initialize_trampoline): Use gen_flushdi.
12533 1999-12-05 Mark Mitchell <mark@codesourcery.com>
12535 * tree.h (special_function_p): Declare.
12536 * calls.c (special_function_p): Make it global. Don't take `name'
12537 as a parameter. Fix typo in 1999-11-28 change.
12538 (expand_cal): Adjust.
12540 1999-12-04 Mark Mitchell <mark@codesourcery.com>
12542 * tree.def (EXPR_WITH_FILE_LOCATION): Fix comment formatting.
12543 * tree.h (EXPR_WFL_FILENAME): Define in terms of
12544 EXPR_WFL_FILENAME_NODE.
12545 (EXPR_WFL_FILENAME_NODE): Use the second operand slot rather than
12547 * print-tree.c (print_note): Print TREE_PRIVATE and
12550 * dwarf2out.c (add_abstract_origin_attribute): Don't abort when
12551 the original die cannot be found.
12553 * varray.h (varray_head_tag): Add elements_used.
12554 (VARRAY_PUSH): New macro.
12555 (VARRAY_POP): Likewise.
12556 (VARRAY_TOP): Likewise.
12557 Add variants of VARRAY_PUSH and VARRAY_POP for all varray element
12559 * varray.c (varray_init): Initialize elements_used.
12560 * Makefile.in (BASIC_BLOCK_H): Add varray.h.
12561 (INTEGRATE_H): New variable.
12562 (integrate.o): Depend on INTEGRATE_H.
12563 (unroll.o): Likewise.
12565 * function.h (insert_block_after_note): Declare.
12566 * function.c (insert_block_after_note): Split out from ...
12567 (retrofit_block): ... here.
12569 * stmt.c (expand_fixup): Fix typo in comment.
12571 Sat Dec 4 14:13:38 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
12573 * regmove.c (copy_src_to_dest): Remove loop_depth parameter.
12574 (optimize_reg_copy_1): Remove REG_N_REFS updating code.
12575 (optimize_reg_copy_2, copy_src_to_dest, fixup_match_2): Likewise.
12576 (regmove_optimize, fixup_match_1): Likewise.
12578 1999-12-05 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
12580 * flow.c (flow_loops_dump): Add missing argument when calling
12581 flow_loop_nested_p.
12583 1999-12-04 Geoffrey Keating <geoffk@cygnus.com>
12584 Greg McGary <gkm@gnu.org>
12586 * c-common.c (enum attrs): Add A_NO_LIMIT_STACK.
12587 (init_attributes): Add A_NO_LIMIT_STACK.
12588 (decl_attributes): Handle A_NO_LIMIT_STACK.
12589 * c-decl.c (duplicate_decls): Handle DECL_NO_LIMIT_STACK.
12590 * explow.c (allocate_dynamic_stack_space) [!HAVE_allocate_stack]:
12591 Handle stack bounds checking.
12592 * flags.h (flag_stack_check): Use the word 'probe' rather than
12593 'check', because the flag doesn't actually cause any checking to
12595 * function.c (expand_function_start): Set
12596 current_function_limit_stack.
12597 * function.h (struct function): Add limit_stack.
12598 (current_function_limit_stack): Define.
12599 * invoke.texi (Code Gen Options): Document new options.
12600 * rtl.h: Declare stack_limit_rtx.
12601 * toplev.c (stack_limit_rtx): New variable.
12602 (decode_f_option): Handle new options -fstack-limit-register=REG,
12603 -fstack-limit-symbol=IDENT, -fno-stack-limit.
12604 (main): Add stack_limit_rtx as GC root.
12605 * tree.h (DECL_NO_LIMIT_STACK): New macro.
12606 (struct tree_decl): New member no_limit_stack.
12608 * config/rs6000/rs6000.c (rs6000_allocate_stack_space): Handle
12610 * config/rs6000/rs6000.md (allocate_stack): Handle stack_limit_rtx.
12611 (conditional_trap+1): Get new mnemonic correct.
12612 (conditional_trap+2): New pattern for DImode traps.
12614 * config/m68k/m68k.c (output_function_prologue): Handle
12616 * config/m68k/m68k.md (trap): New insn.
12617 (conditional_trap): New insn.
12618 * md.texi (Standard Names): Document `trap' and
12619 `conditional_trap'.
12620 * optabs.c (gen_cond_trap): Use start_sequence()/end_sequence()
12621 so a cc0 setter doesn't get emitted at some random place in the
12624 * config/i960/i960.md (trap): New insn.
12625 (conditional_trap): New expander.
12626 (conditional_trap+1, conditional_trap+2): New insns for signed
12627 and unsigned cases.
12628 * config/i960/i960.c (i960_function_prologue): Use
12629 STARTING_FRAME_OFFSET. Handle stack_limit_rtx.
12631 Thu Dec 2 21:22:45 1999 Greg McGary <gkm@gnu.org>
12632 Geoffrey Keating <geoffk@cygnus.com>
12634 * flags.h (warn_padded, warn_packed): Add global var decls.
12635 * toplev.c (warn_padded, warn_packed): Add global var defns.
12636 (W_options): Add warnings `-Wpacked' and `-Wpadded'.
12637 * stor-layout.c (layout_record): Add local variable `type'
12638 to hold often-used TREE_TYPE (field). Add local variable
12639 `unpacked_align' to hold alignment that would be in force
12640 if no `packed' attribute were present. Warn if `packed' attribute
12641 is unnecessary, or even harmful. Warn when gcc inserts padding
12642 to satisfy alignment requirements of members. Use NULL_TREE
12643 when checking whether var_size is set.
12644 * invoke.texi: Document new flags.
12646 1999-12-03 Nathan Sidwell <nathan@acm.org>
12648 * frame.c (fde_split): Reimplement to avoid variable sized array.
12650 Thu Dec 2 18:59:48 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
12652 * combine.c (try_combine): Before fixing up LOG_LINKS for the
12653 i3_subst_into_i2 case, check that GET_CODE (PATTERN (i2)) == PARALLEL.
12655 1999-12-02 Gavin Romig-Koch <gavin@cygnus.com>
12657 * invoke.texi: Document the mips option -mno-crt0
12659 1999-12-02 Mike Karr <mkarr@mathworks.com>
12661 * cccp.c (argdata): Added free_ptr member.
12662 (macroexpand): Initialize free_ptr of each argument. When an
12663 argument's buffers are freed, if the argument's free_ptr corresponds
12664 to a buffer on the input stack, then return the free_ptr to that stack
12665 frame, otherwise, free it.
12666 (macarg): If an argument begins and ends on the same input stack level,
12667 then transfer the free_ptr of that buffer to the argument in case
12668 the stack is popped during the processing of a subsequent argument.
12670 1999-12-02 Bernd Schmidt <bernds@cygnus.co.uk>
12672 * loop.c (note_reg_stored): New function.
12673 (struct note_reg_stored_arg): New structure.
12674 (try_copy_prop): Change to be more conservative; only replace within
12675 one extended basic block and stop replacing if a store to the
12676 replacement reg is seen.
12678 1999-12-02 Nick Clifton <nickc@cygnus.com>
12680 * config/fp-bit.c: Initialise all fields of the NAN
12683 * c-lex.c (check_newline): Pass pragma_getc and pragma_ungetc
12686 Wed Dec 1 18:16:38 1999 Jan Hubicka <hubicka@freesoft.cz>
12688 * i386.md (extend?f?f2): Force the input into a register, not
12691 1999-12-01 Jakub Jelinek <jakub@redhat.com>
12693 * config/sparc/sparc.md (movsf_const_intreg): Add constraints for
12695 (movdf_const_intreg_sp32): Likewise. Prefer the memory load
12696 alternative because setting up 64bit constant is usually costly,
12697 especially when reload is in progress or completed.
12698 (movdf_const_intreg_sp64): Likewise.
12699 (movdf_const_intreg split): Fix building up constants when
12700 HOST_BITS_PER_WIDE_INT is 64 yet long is 32bit.
12702 Wed Dec 1 16:51:22 1999 Jeffrey A Law (law@cygnus.com)
12704 * combine.c (if_then_else_cond): Use const_true_rtx instead of
12705 const1_rtx for return values in EQ/NE comparison against (const_int 0)
12708 * mn10300.c (REG_SAVE_BYTES): Allocate space for AM33 registers.
12709 (asm_file_start): Emit .am33 into assembly file when compiling for
12711 (print_operand_address): Handle POST_INC addresses.
12712 (can_use_return_insn, initial_offset): Check AM33 registers too.
12713 (expand_prologue): Check & save AM33 registers too.
12714 (expand_epilogue): Similarly.
12715 (secondary_reload_class): Handle AM33 specific secondary reloads.
12716 (output_tst): Emit efficient code for the AM33 too.
12717 * mn10300.h (CPP_SPEC, TARGET_AM33): Define.
12718 (TARGET_SWITCHES): Add -mam33 switch.
12719 (FIRST_PSEUDO_REGISTER): Handle new AM33 registers.
12720 (FIXED_REGISTERS, CALL_USED_REGISTERS): Likewise.
12721 (REG_ALLOC_ORDER, CONDITIONAL_REGISTER_USAGE): Likewise.
12722 (HARD_REGNO_MODE_OK, MODES_TIEABLE_P): Likewise.
12723 (enum reg_class, REG_CLASS_NAMES): Likewise.
12724 (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Likewise.
12725 (INDEX_REG_CLASS, REG_CLASS_FROM_LETTER): Likewise.
12726 (REGNO_OK_FOR_INDEX_P, PREFERRED_RELOAD_CLASS): Likewise.
12727 (PREFERRED_OUTPUT_RELOAD_CLASS, LIMIT_RELOAD_CLASS): Likewise.
12728 (REGISTER_MOVE_COST, REGISTER_NAMES): Likewise.
12729 (HAVE_POST_INCREMENT): Define.
12730 (GO_IF_LEGITIMATE_ADDRESS): Allow POST_INC addresses for the AM33.
12731 (GO_IF_MODE_DEPENDENT_ADDRESS): POST_INC is a mode dependent address.
12732 * mn10300.md (movqi, movhi, addsi, subsi): Add AM33 variants.
12733 (mulsi, andsi, iorsi, xorsi, notsi): Likewise.
12734 (ashiftsi, lshiftrtsi, ashiftrtsi): Likewise.
12735 (zero_extend to SI from QI/HI): Likewise.
12736 (sign_extend to SI from QI/HI): Likewise.
12737 (mulsidi3, umulsidi3): New patterns for the AM33.
12738 (tstsi with zero extension from QI/HI): Add AM33 variants.
12739 (movsi, movsf, movdi, movdf): Generate efficient code for the AM33 too.
12740 (return_internal_regs, store_movm): Handle new AM33 registers.
12741 * t-mn10300 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES): Define.
12742 (LIBGCC, INSTALL_LIBGCC): Likewise.
12743 * invoke.texi: Document new flags.
12745 Fri Nov 26 10:59:12 CET 1999 Jan Hubicka <hubicka@freesoft.cz>
12747 * i386.md (addsi3_cc): Add "binary_operator_ok" to the condition.
12748 (addsi3_carry): Likewise.
12749 (sbbsi3_cc): Add "binary_operator_ok" to the condition.
12750 (sbbsi3_carry): Likewise.
12751 (mulsi3): Rewrite to expander, ensure that only one operand is memory.
12752 (mulhi3): Likewise.
12753 (test?i_1): Ensure that only one operand is memory.
12754 (conditional move patterns): likewise.
12755 (shift and rotate patterns): Rewrite to expander, add
12756 "binary_operator_ok" to the condition.
12758 * i386.md (QImode patterns): Remove '*' before the 'r' constraints.
12759 * i386.h (procesor_costs): Add movzbl_load field.
12760 (HARD_REGNO_MODE_OK): Accept QImode on non PARTIAL_REGISTER_STALL in
12761 non-Q registers, accept DImode registers anywhere.
12763 (MEMORY_MOVE_COST): Calculate QImode moves correctly.
12764 * i386.c (*_cost): Set value for movxbl_load field.
12766 * (addsi): New add to lea splitter.
12767 (ashlsi): Likewise.
12768 (lea to add/shift peep2): New.
12770 1999-12-01 Mark Salter <msalter@cygnus.com>
12772 * config/mips/elf.h (STARTFILE_SPEC): Add no-crt0.
12773 * config/mips/elf64.h (STARTFILE_SPEC): Add no-crt0.
12774 * config/mips/mips.h (TARGET_SWITCHES): Add no-crt0.
12776 Tue Nov 30 15:20:52 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
12778 * i386.c (ix86_expand_move): Never add clobbers to move patterns.
12779 * i386.md (movsi_xor): New.
12781 (movsi_1, movhi_1, movqi_1): Remove.
12782 (movsi_2): Rename to movsi_1.
12783 (movhi_2): Rename to movhi_1.
12784 (movqi_2): Rename to movqi_1.
12785 (movdi_1): Remove; remove splitter.
12786 (movdi_2): Rename to movdi_1.
12787 (divmodsi4 splitter): Do not emit clobbers for move patterns.
12788 (long move peep2): Do not create QI or HI mode mov0s
12789 (mov -1,reg -> or peep2s): Enable again, rewrite to single peephole.
12791 * i386.md (zero_extend?i?i2): Rewrite to expanders; new patterns,
12794 * i386.md (neg?f2_if): Split "r" and "f" to separate alternatives.
12795 (abs?f2_if): Likewise.
12797 1999-11-30 Alex Samuel <samuel@codesourcery.com>
12799 * ggc.h (ggc_test_and_set_mark): New macro.
12800 (ggc_mark_rtx): Use ggc_test_and_set_mark.
12801 (ggc_mark_tree): Likewise.
12802 (ggc_mark_rtvec): Likewise.
12803 * ggc-common.c (ggc_mark_rtx_children): Reduce recursion.
12805 1999-11-30 Jason Merrill <jason@casey.cygnus.com>
12807 * dwarf2out.c (scope_die_for): Only handle types. Only search for
12809 (decl_scope_table): Just an array of trees now.
12810 (push_decl_scope): Simplify.
12811 (dwarf2out_init): Adjust.
12812 (local_scope_p): New fn.
12813 (gen_inlined_enumeration_type_die): Don't call scope_die_for.
12814 (gen_inlined_union_type_die, gen_inlined_structure_type_die): Likewise.
12815 (gen_typedef_die): Likewise.
12816 (gen_lexical_block_die): Don't call push/pop_decl_scope.
12817 (gen_inlined_subroutine_die): Likewise.
12818 (gen_abstract_function): Set current_function_decl temporarily.
12819 (gen_subprogram_die): Don't check DECL_ABSTRACT to set declaration.
12820 Handle block extern declarations. Don't call push/pop_decl_scope.
12821 (gen_decl_die): Fix logic for block externs.
12823 1999-11-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12825 * calls.c (special_function_p): Remove `realloc' and add `strdup'
12826 to the list of functions which have attribute malloc by default.
12828 1999-11-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12830 * c-lex.c (yylex): With -Wtraditional, when the ANSI type of an
12831 integer constant does not match the traditional type, limit the
12832 warnings to cases where the base of the type is ten.
12834 * invoke.texi (-Wtraditional): Document it.
12836 Tue Nov 30 15:18:35 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
12838 * combine.c (try_combine): Only pass SET or CLOBBER to SET_DEST
12839 * rs6000.md: Only access a CONST_INT with INTVAL
12841 Tue Nov 30 14:21:00 1999 Richard Henderson <rth@cygnus.com>
12843 * lcm.c (compute_laterin): Cast bb->aux to size_t not int.
12844 (compute_nearerout): Likewise.
12845 * ggc-page.c (ggc_page_print_statistics): Explicitly cast
12846 size_t to unsigned long for formatting.
12848 1999-11-30 Jakub Jelinek <jakub@redhat.com>
12850 * config/sparc/sparc.h (FIXED_REGISTERS, CONDITIONAL_REGISTER_USAGE):
12851 Allow the user to override call-used/fixed state of %g2-5
12852 registers from the command line (with the exception of %g4 for
12854 (REG_LEAF_ALLOC_ORDER): Move %g1 and %g4-7 registers to front, so that
12855 there is a higher chance of having a leaf function.
12856 (MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Provide separate macros
12857 for ARCH64 which has %ccr register.
12858 * config/sparc/sparc.md (return_losum_si, return_losum_di): New
12860 * config/sparc/sparc.c (eligible_for_epilogue_delay): For the return
12861 insn accept into delay slot any insn which does not use %[ol]
12862 registers. Accept some LO_SUM and shift left by 1 for the normal
12864 (output_function_epilogue): Likewise.
12865 (epilogue_renumber): Added argument which inhibits any renumbering
12866 and just tests if the rtx does not use any %[ol] registers.
12867 (output_return): Reflect above change.
12869 1999-11-30 Jakub Jelinek <jakub@redhat.com>
12871 * config/sparc/sparc.c (sparc_va_arg): Fix sparc64 va_arg
12872 aggregate passing for sizes <= 16 bytes.
12874 1999-11-30 Bernd Schmidt <bernds@cygnus.co.uk>
12876 * cse.c (FIXED_REGNO_P): Delete tests for OVERLAPPING_REGNO_P.
12877 * global.c (global_alloc): Delete [OVERLAPPING_REGNO_P] code.
12878 * reload.c (find_dummy_reload): Likewise.
12879 (find_equiv_reg): Likewise; also for INSN_CLOBBERS_REGNO_P.
12880 * reload1.c (reload_as_needed): Likewise.
12881 * stupid.c (stupid_find_reg): Likewise.
12882 * tm.texi (Obsolete Register Macros): Delete section.
12883 * gmicro.h: Remove all traces of the two macros.
12884 * i386.h: Likewise.
12885 * m88k.h: Likewise.
12886 * mips.h: Likewise.
12888 1999-11-30 Brendan Kehoe <brendan@cygnus.com>
12890 * sparc.h (MASK_FASTER_STRUCTS, TARGET_FASTER_STRUCTS): Define.
12891 (TARGET_SWITCHES): Add -mfaster-structs/-mno-faster-structs flags.
12892 (ROUND_TYPE_ALIGN): Use better value if -mfaster-structs.
12893 * sparc.md (sparclite86x_branch, sparclite86x_shift): New function
12894 units for the sparclite86x chip.
12895 (flush): Revert October 14th change; add SImode specifically.
12896 (flushdi): Copy of flush, but DImode, to avoid genrecog warnings.
12897 * invoke.texi: Document it.
12899 Tue Nov 30 14:58:14 1999 Nick Clifton <nickc@cygnus.com>
12901 * config/mn10200/mn10200.h (PREDICATE_CODES): Add
12902 psimode_truncation_operand.
12904 * config/mn10200/mn10200.c (psimode_truncation_operand): New
12905 function. Return true if the operand is either a MEM valid
12906 for a PSImode address or not a MEM at all.
12908 * config/mn10200/mn10200.md (truncsipsi2): Use
12909 psimode_truncation_operand.
12911 1999-11-30 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
12913 * flow.c (flow_nodes_print, flow_loops_cfg_dump): New functions.
12914 (flow_loop_nested_p, flow_loops_dump, flow_loops_free): Likewise.
12915 (flow_loop_exits_find, flow_loop_nodes_find): Likewise.
12916 (flow_depth_first_order_compute, flow_loop_pre_header_find): Likewise.
12917 (flow_loop_tree_node_add, flow_loops_tree_build): Likewise.
12918 (flow_loop_level_compute, low_loops_level_compute): Likewise.
12919 (flow_loops_find, flow_loop_outside_edge_p): Likewise.
12920 * basic-block.h: Protect from multiple inclusion.
12921 (flow_loops_find, flow_loops_free, flow_loop_dump): Add protoypes.
12922 (struct loops, struct loop): Define structures.
12923 * sbitmap.c (sbitmap_a_subset_b_p): New function.
12924 * sbitmap.h: Protect from multiple inclusion.
12925 (sbitmap_a_subset_b_p): Add prototype.
12926 * Makefile.in (LOOP_H): New macro.
12927 (stmt.o, integrate.o, loop.o, unroll.o): Replace loop.h with LOOP_H.
12929 Tue Nov 30 01:34:47 1999 Philippe De Muyter <phdm@macqel.be>
12931 * cppinit.c (CAT): The argument list of this macro may not contain
12934 1999-11-29 David S. Miller <davem@redhat.com>
12936 Move quantity tables and register equivalence chains into
12937 per-qty and per-register structure arrays respectively.
12938 * cse.c (qty_first_reg, qty_last_reg, qty_mode, qty_const,
12939 qty_const_insn, qty_comparison_code, qty_comparison_const,
12940 qty_comparison_qty): Delete, replace with...
12941 (qty_table): this structure table.
12942 (reg_next_eqv, reg_prev_eqv): Delete, replace with...
12943 (reg_eqv_table): this structure table.
12944 (make_new_qty): Add argument MODE. Caller updated.
12945 Update to use qty_table and reg_eqv_table.
12946 (make_regs_eqv, delete_reg_equiv, insert_regs,
12947 insert, exp_equiv_p, cse_rtx_varies_p, canon_reg,
12948 fold_rtx, equiv_constant, record_jump_cond, cse_insn,
12949 cse_process_notes, cse_main, cse_basic_block): Likewise.
12951 Mon Nov 29 16:56:42 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12953 * fold-const.c (extract_muldiv, case {MIN,MAX}_EXPR): Reverse
12954 operation if C is negative.
12955 (extract_muldiv, case SAVE_EXPR): Supresss if arg has side effects.
12956 (extract_muldiv, case {PLUS,MINUS}_EXPR): Don't apply distributive
12957 law for some divisions if constant is negative and change other
12958 divisions to the opposite rounding.
12960 * expr.c (store_constructor_field): If bit position is not multiple
12961 of alignment of TARGET's mode, use BLKmode.
12963 * expr.c (expand_expr_unaligned): Add more code from full case
12964 that is needed when OP0 is in a register.
12966 Mon Nov 29 18:09:39 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
12968 * dwarfout.c (field_byte_offset): Size can be zero if there was
12971 1999-11-29 Bernd Schmidt <bernds@cygnus.co.uk>
12973 * fold-const.c (split_tree): Delete unused vars ORIG_IN and TYPE.
12974 (associate_trees): Delete unused var TEM.
12975 (extract_muldiv): Delete unused var CANCEL_P.
12977 * fold-const.c [TARGET_FLOAT_FORMAT != IEEE_FLOAT_FORMAT]
12978 (target_isinf, target_isnan, target_negative): Add return types to
12979 function definitions.
12981 1999-11-29 Bruce Korb <autogen@linuxbox.com>
12983 * fixinc/fixincl.c(process): don't skip GLIBC files any more.
12984 * fixinc/hackshell.tpl: ditto
12985 * fixinc/fixtests.c(double_slash_test): more C++ header testing
12986 * fixinc/inclhack.def(AAB_fd_zero_glibc*): corrected spelling of mach
12988 1999-11-29 Bernd Schmidt <bernds@cygnus.co.uk>
12990 * reload.c (push_reload): When looking for a register to put into
12991 reg_rtx, make sure all hard regs in a multi-reg register are in the
12992 right class and nonfixed.
12994 * haifa-sched.c (reg_last_uses, reg_last_sets, reg_last_clobbers,
12995 pending_read_insns, pending_write_insns, pending_read_mems,
12996 pending_write_mems, pending_list_length, last_pending_memory_flush,
12997 last_function_call, sched_before_next_call): Move static variables
12999 (bb_ prefixed versions): Replace with single array bb_deps.
13000 (struct deps): New structure.
13001 (add_insn_mem_dependence, flush_pending_lists, sched_analyze_1,
13002 sched_analyze_2, sched_analyze_insn, sched_analyze): Accept new
13003 argument of type "struct deps *"; use that instead of global
13004 variables. All callers changed.
13005 (init_rgn_data_dependencies): Delete function.
13006 (init_rtx_vector): Delete function.
13007 (init_deps): New function.
13009 (free_pending_lists): Simplify, we always use the bb_deps array even
13010 if only one basic block.
13011 (compute_block_backward_dependences): Likewise.
13012 (schedule_region): Likewise.
13014 (propagate_deps): New function, broken out of
13015 compute_block_backward_dependences.
13016 (compute_block_backward_dependences): Use it.
13018 * alpha.md: Delete useless patterns that tried to work around
13019 register elimination problems.
13021 * unroll.c (loop_iterations): Don't abort if iteration variable
13024 From Joern Rennecke:
13025 * reload1.c (reloads_conflict): Reverse test comparing operand
13026 numbers when testing for conflict between output/outaddr reloads.
13028 1999-11-29 David S. Miller <davem@redhat.com>
13030 * config/sparc/sparc.c (init_cumulative_args): Fix type of third
13032 * config/sparc/sparc-protos.h: Update proto, move into RTX_CODE.
13034 1999-11-28 Robert Lipe <robertl@cygnus.com>
13036 * i386/sco5.h (FINI_SECTION_ASM_OP_COFF): Move destructor fn
13037 table from .fini into .dtor.
13039 1999-11-28 Anthony Green <green@cygnus.com>
13041 * tree.h (struct tree_decl): Add malloc_flag.
13042 (DECL_IS_MALLOC): Define.
13043 * c-common.c (attrs): Add A_MALLOC attribute.
13044 (init_attributes): Add this attribute to the table.
13045 (decl_attributes): Handle malloc attribute.
13046 * calls.c (special_function_p): Check for the malloc attribute.
13047 * extend.texi (Function Attributes): Document malloc attribute.
13049 Sun Nov 28 13:21:00 1999 Jeffrey A Law (law@cygnus.com)
13051 * pa.md (reload shift-add patterns): Remove.
13053 1999-11-28 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
13055 * reorg.c (dbr_schedule) Print more statistics. Corrected
13056 problem when printing info when 3 delay slots are filled.
13058 1999-11-28 Jakub Jelinek <jakub@redhat.com>
13060 * combine.c (setup_incoming_promotions): Pass an outgoing
13061 regno to FUNCTION_ARG_REGNO_P which it expects.
13063 1999-11-28 Andreas Jaeger <aj@suse.de>
13065 * mips/linux.h (CPP_PREDEFINES): Undefine before redefining.
13067 Sun Nov 28 00:48:15 1999 Philippe De Muyter <phdm@macqel.be>
13069 * cccp.c (do_include): Avoid initialization of automatic variable.
13071 * integrate.c (mark_stores): Function definition made void, to match
13072 previous declaration.
13073 * regclass.c (dump_regclass): Ditto.
13074 * Makefile.in (WARN_CFLAGS): Macro augmented by `-Wtraditional'.
13076 Sat Nov 27 08:38:26 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13078 * expr.c (store_constructor): Use EXACT_DIV_EXPR when dividend is
13079 known to be multiple of divisor.
13081 * expr.c (store_constructor): Don't clobber TARGET if CLEARED.
13083 * combine.c (try_combine): Add code to try to merge a set of a
13084 two-word pseudo to a constant with a setting of one of those words
13087 * fold-const.c (negate_expr, associate_trees, extract_muldiv): New.
13088 (split_tree): Completely rework to make more general.
13089 (make_range, fold): Call negate_expr.
13090 (fold, case NEGATE_EXPR): Simplify -(a-b) is -ffast-math.
13091 (fold, associate): Call new split_tree and associate_trees.
13092 (fold, case MULT_EXPR, case *_{DIV,MOD}_EXPR): Call extract_muldiv.
13094 1999-11-26 Bernd Schmidt <bernds@cygnus.co.uk>
13096 * loop.c (try_copy_prop): Avoid GNU C extension.
13098 1999-11-25 Mark Mitchell <mark@codesourcery.com>
13100 * except.c (init_eh_for_function): Still zero eh_return_context,
13101 eh_return_stack_adjust, and eh_return_handler.
13103 * except.h (eh_status): Adjust documentation for x_protect_list.
13104 (begin_protect_partials): New function.
13105 * except.c (enqueue_eh_entry): Fix formatting.
13106 (get_first_handler): Add consistency check.
13107 (add_partial_entry): Adjust usage of protect_list.
13108 (emit_cleanup_handler): Save and restore ehqueue.
13109 (expand_start_all_catch): Add comment.
13110 (begin_protect_partials): New function.
13111 (end_protect_partials): Adjust usage of protect_list.
13112 (init_eh_for_function): Use xcalloc.
13114 1999-11-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13116 * c-common.c (check_format_info): Don't call a variadic function
13117 with a non-literal format string.
13119 * c-decl.c (grokdeclarator, start_struct, finish_struct): Likewise.
13121 * c-typeck.c (build_component_ref, build_unary_op, lvalue_or_else,
13122 pedantic_lvalue_warning, error_init, pedwarn_init, warning_init):
13125 * cccp.c (check_macro_name, do_xifdef, vwarning_with_line):
13128 * collect2.c (collect_wait): Likewise.
13130 * dbxout.c (dbxout_type): Likewise.
13132 * gcc.c (do_spec_1): Likewise.
13134 * genemit.c (gen_insn, gen_expand): Likewise.
13136 * genrecog.c (write_switch, write_subroutine): Likewise.
13138 * mips-tfile.c (catch_signal, botch): Likewise.
13140 * print-rtl.c (print_rtx): Likewise.
13142 * toplev.c (default_print_error_function, report_error_function,
13143 _fatal_insn): Likewise.
13145 1999-11-25 Mark Mitchell <mark@codesourcery.com>
13147 * tree.c (unsave_expr_now): Handle NULL_TREE as input.
13149 Wed Nov 24 17:08:09 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
13151 * reg-stack.c (subst_stack_regs_pat): Swap operands in commutative
13152 operations when needed.
13153 * i386.md (fop_?f_comm): New.
13154 (fop_?f_1): Do not accept commutative operands.
13156 1999-11-25 Andreas Jaeger <aj@suse.de>
13158 * config/mips/mips.md (casesi_internal): Add missing brace.
13160 1999-11-25 Jason Merrill <jason@casey.cygnus.com>
13162 * dwarf2out.c (pend_type, output_pending_types_for_scope): Lose.
13163 (splice_child_die): Handle moving a child DIE from the declaration
13164 DIE of a class to its specification.
13165 (gen_struct_or_union_type_die): Use 'complete' consistently.
13166 (gen_decl_die): Generate the virtual context DIE first.
13167 Use decl_ultimate_origin instead of DECL_ABSTRACT_ORIGIN.
13169 1999-11-24 Gavin Romig-Koch <gavin@cygnus.com>
13171 * config/mips/mips.md (call_value_multiple_interanal1): New.
13173 1999-11-24 Jason Merrill <jason@casey.cygnus.com>
13175 * dwarf2out.c (free_AT, free_die): New fns.
13176 (remove_children): Call them.
13177 (output_line_info): Disable removal of duplicate notes.
13179 Generate minimal debug info for types with TYPE_DECL_SUPPRESS_INFO set.
13180 * dwarf2out.c (gen_struct_or_union_type_die): TYPE_DECL_SUPPRESS_INFO
13181 means pretend the type isn't defined.
13182 Don't defer emitting types.
13183 (gen_type_die_for_member): New fn.
13184 (gen_decl_die): Call it.
13185 (splice_child_die): New fn.
13186 (gen_member_die): Call it rather than generate duplicate dies.
13188 Defer emitting information for the abstract instance of an inline
13189 until we either inline it or emit an out-of-line copy.
13190 * dwarf2out.c (decl_ultimate_origin): Ignore DECL_ABSTRACT_ORIGIN
13191 from output_inline_function if DECL_ABSTRACT is also set.
13192 (block_ultimate_origin): Likewise.
13193 (gen_abstract_function): New fn.
13194 (gen_decl_die, gen_inlined_subroutine_die): Call it.
13195 (gen_subprogram_die): An abstract instance is not a declaration
13196 just because it doesn't match current_function_decl. Don't abort
13197 because DECL_DEFER_OUTPUT isn't set. Do abort if a declaration
13198 has an abstract origin.
13199 * toplev.c (rest_of_compilation): Don't emit dwarf2 info for the
13200 abstract instance here.
13202 Wed Nov 24 18:39:18 1999 Andrew Haley <aph@cygnus.com>
13204 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Add the case
13205 where we need to reload fpul from a system register.
13207 1999-11-24 Andreas Jaeger <aj@suse.de>
13209 * config/mips/linux.h (CPP_PREDEFINES): Added.
13210 (LINK_SPEC): Remove -Y since this is only needed on sparc.
13212 1999-11-24 Andreas Jaeger <aj@suse.de>
13214 * config/mips/linux.h (TARGET_VERSION): Added.
13215 (HANDLE_SYSV_PRAGMA): Added.
13216 (DEFAULT_VTABLE_THUNKS): Added.
13218 Wed Nov 24 14:12:15 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
13220 * local-alloc.c (qty): New structure and static variable.
13221 (qty_phys_reg): Remove, all references changed to qty.
13222 (qty_n_refs): Likewise.
13223 (qty_min_class): Likewise.
13224 (qty_birth): Likewise.
13225 (qty_death): Likewise.
13226 (qty_size): Likewise.
13227 (qty_mode): Likewise.
13228 (qty_n_calls_crossed): Likewise.
13229 (qty_alternate_class): Likewise.
13230 (qty_changes_size): Likewise.
13231 (qty_first_reg): Likewise.
13232 (alloc_qty): Rename variable QTY to QTYNO.
13233 (finf_free_reg): Likewise.
13234 (local_alloc): Allocate qty, do not allocate the removed variables.
13236 Wed Nov 24 17:26:05 1999 Geoffrey Keating <geoffk@cygnus.com>
13238 * config/mips/mips.h (ASM_SPEC): Don't pass -G to the assembler
13239 when -membedded-pic is passed.
13241 * config/mips/mips.md (casesi): Handle 64-bit case too.
13242 (casesi_internal_di): New insn.
13244 * config/mips/mips.c (embedded_pic_offset): Always make the
13245 embedded-pic subtractions relative to the name of the current
13246 function by use of the magic string "..CURRENT_FUNCTION".
13247 * config/mips/mips.h (ASM_OUTPUT_LABELREF): Make the magic happen.
13249 1999-11-24 Geoffrey Keating <geoffk@cygnus.com>
13251 * config/mips/mips.md (div_trap_normal): Don't ask for the REGNO
13252 of (const_int 0), when what we really care about is
13253 whether it's a zero constant anyway.
13254 (div_trap_mips16): Likewise.
13256 1999-11-23 Mark Mitchell <mark@codesourcery.com>
13258 * loop.c (loop_optimize): Always find_loop_tree_blocks and
13259 unroll_block_trees when generating debuggable code.
13261 * tree.h (unsave_expr_1): New function.
13262 (lang_unsave): New variable.
13263 (get_callee_fndecl): New function.
13264 * tree.c (unsave_expr_now_r): New function.
13265 (lang_unsave): Define.
13266 (unsave_expr_1): Likewise.
13267 (unsave_expr_now_r): Split out from unsave_expr_now.
13268 (unsave_expr_now): Call lang_unsave if it is non-NULL. Otherwise,
13269 call unsave_expr_now_r.
13270 (get_callee_fndecl): Define.
13272 * Makefile.in (gencheck): Don't depend on lang_tree_files.
13273 (gencheck.o): Do depend on lang_tree_files.
13275 * integrate.h (copy_decl_for_inlining): New declaration.
13276 * integrate.c (copy_and_set_decl_abstract_origin): Remove.
13277 (copy_decl_for_inlining): New function.
13278 (integrate_parm_decls): Use it.
13279 (integrate_decl_tree): Likewise.
13281 1999-11-23 Gavin Romig-Koch <gavin@cygnus.com>
13283 * config/mips/mips.h (ISA_HAS_FP4,ISA_HAS_CONDMOVE,ISA_HAS_8CC): Split
13284 the second two from the first.
13285 (CONDITIONAL_REGISTER_USAGE): Use ISA_HAS_8CC rather than ISA_HAS_FP4.
13286 * config/mips/mips.md (movcc,reload_incc,reload_outcc,
13287 conditional move): Use ISA_HAS_CONDMOVE or ISA_HAS_8CC rather than
13289 * config/mips/mips.c (mips_move_1word,gen_conditional_branch,
13290 override_options): Use ISA_HAS_CONDMOVE or ISA_HAS_8CC rather than
13293 Tue Nov 23 11:15:04 1999 Jeffrey A Law (law@cygnus.com)
13295 * pa.md (call_internal_symref, call_value_internal_symref): No mode
13296 needed on the address operand.
13297 * pa.c (call_operand_address): Check for the correct mode.
13299 1999-11-23 Bernd Schmidt <bernds@cygnus.co.uk>
13301 * loop.c: Include "basic-block.h".
13302 (try_copy_prop, replace_loop_reg): New functions.
13303 (load_mems): Detect registers that just hold copies of the hoisted
13304 mem, and call try_copy_prop to eliminate them.
13305 * Makefile.in (loop.o): Update dependencies.
13307 Tue Nov 23 01:03:29 1999 Hans-Peter Nilsson <hp@axis.com>
13309 * Makefile.in (gencheck.o): Depend on gencheck.h.
13310 (insn-emit.o): Depend on flags.h, hard-reg-set.h and resource.h.
13311 (insn-peep.o): Depend on except.h and function.h.
13312 (insn-attrtab.o): Depend on RECOG_H.
13313 (insn-output.o): Depend on toplev.h and flags.h.
13314 (gengenrtl.o): Depend on real.h.
13315 (gen-protos.o): Depend on cpplib.h and cpphash.h.
13316 Unify all dependencies to be on RECOG_H rather than recog.h.
13318 Tue Nov 23 00:57:10 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
13320 From Casper H.S. Dik on comp.unix.solaris, 23 Oct 1998:
13321 * configure.in: Try building a bi-arch 32/64-bit compiler on
13322 sparc-*-solaris2.7 and higher.
13323 * configure: Rebuild.
13325 Mon Nov 22 23:09:44 1999 David O'Brien <obrien@FreeBSD.org>
13327 * config/freebsd.h: New, FreeBSD architecture independent file.
13328 * config/i386/freebsd-elf.h: removed FreeBSD architecturally
13329 independent pieces.
13330 * config/i386/freebsd.h: include i386/perform.h via tm.h rather than
13331 directly by i386/freebsd.h.
13332 * configure.in (*-*-freebsdelf): Include new FreeBSD architecturally
13333 independent configuration file.
13334 (*-*-freebsdelf): Include i386/perform.h via tm.h rather than
13335 directly by i386/freebsd.h.
13336 * configure: Rebuilt.
13338 * xm-i386.h: Define `__i386__' if not defined, rather than `i386'
13339 which is in the user's namespace.
13340 * libgcc2.c: Look for the ANSI-C approved `__i386__' symbol, vs.
13341 `i386' which is not in our namespace.
13343 Mon Nov 22 22:58:01 1999 "R. Kelley Cook" <KelleyCook@attglobal.net>
13345 * invoke.texi (ARM Options): Add in -mno-alignment-traps
13347 1999-11-22 Jason Merrill <jason@casey.cygnus.com>
13349 * dwarf2out.c (die_struct): Remove die_attr_last and die_child_last.
13350 (add_dwarf_attr, add_child_die): Just push onto the front.
13351 (reverse_die_lists): New fn.
13352 (add_sibling_attributes): Use it.
13353 (push_decl_scope): Reorganize.
13354 (add_name_and_src_coords_attributes): Don't set file and line for
13355 an artificial decl.
13356 (gen_subprogram_die): An artificial function doesn't need to match
13358 (gen_compile_unit_die): Return the generated die. Only add
13359 AT_comp_dir if the filename is relative.
13360 (remove_AT): Simplify loop. Also free string values.
13361 (output_die): A DIE ref can't be null.
13362 (output_value_format, value_format): Take a dw_attr_ref.
13363 (dwarf_last_decl, is_extern_subr_die, sibling_offset): Remove.
13364 (AT_class, AT_flag, AT_int, AT_unsigned, AT_string, AT_ref, AT_loc,
13365 AT_addr, AT_lbl): New fns.
13366 (various): Use them.
13367 (various): Constify.
13369 Mon Nov 22 23:53:50 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
13371 * combine.c (combine_simplify_rtx): When handling a SUBREG,
13372 take SUBREG_WORD into account.
13373 (if_then_else_cond): Likewise.
13375 1999-11-22 Jason Merrill <jason@casey.cygnus.com>
13377 * gmon.c, i386/gmon-sol2.c, sparc/gmon-sol2.c: Remove advertising
13378 clause from BSD license, pursuant with
13380 ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
13382 1999-11-22 Bernd Schmidt <bernds@cygnus.co.uk>
13384 * loop.c (load_mems): Reformat slightly.
13385 * basic-block.h (regset_head): New typedef.
13386 (INIT_REG_SET): New macro.
13388 1999-11-22 Bruce Korb <autogen@linuxbox.com
13390 * fixinc/mkfisinc.sh(i?86-*-linux): disable script, run fixincl exe
13391 (mips-dec-bsd*): non-functional code
13392 (alpha*-*-linux-gnu*): redundant, duplicated by "*-*-linux-gnu*"
13394 * fixinc/inclhack.def(AAB_fd_zero_glibc_*):
13395 added three replacement fixes
13396 (no_double_slash): removed comments that are not (any longer) pertinent
13397 (bad_lval): this fix currently runs against many files.
13398 The comment seems to indicate that we should select for files
13399 containing 'pragma extern_prefix'.
13401 * fixinc/fixinc.x86-linux-gnu: deleted
13402 * fixinc/inclhack.sh: regen
13403 * fixinc/fixincl.x: regen
13404 * fixinc/fixincl.sh: regen
13406 Fri Nov 12 14:08:40 1999 Andrew Haley <aph@cygnus.com>
13408 * emit-rtl.c (gen_sequence): Only return the pattern of an insn if
13409 its code is INSN and it has no notes.
13411 1999-11-22 Andrew Haley <aph@cygnus.com>
13413 * varasm.c (function_defined): Remove.
13414 (make_function_rtl): Don't set function_defined.
13415 (make_decl_rtl): Remove global register warning.
13416 * regclass.c (no_global_reg_vars): New variable.
13417 (globalize_reg): Warn if function has already been defined.
13418 (regclass_init): Set no_global_reg_vars.
13420 Mon Nov 22 14:42:22 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
13422 * regclass.c (reg_pref): New structure and static variable
13423 (prefclass): Delete.
13424 (altclass): Delete.
13425 (all uses of prefclass and altclass): Use reg_pref instead.
13427 1999-11-21 Nick Clifton <nickc@cygnus.com>
13429 * invoke.texi (ARM Options): Replace -mshort-load-bytes with
13431 (arm.h): Replace -mshort-load-bytes with -malignment-traps.
13432 (arm.c): Replace TARGET_SHORT_BY_BYTES with TARGET_MMU_TRAPS.
13433 (arm.md): Replace TARGET_SHORT_BY_BYTES with TARGET_MMU_TRAPS.
13435 Sun Nov 21 17:11:13 1999 Geoffrey Keating <geoffk@cygnus.com>
13437 * varasm.c (output_constructor): Solve problem with long long
13438 bitfields, even on BYTES_BIG_ENDIAN machines (testcase 991118-1).
13440 Fri Nov 19 05:48:45 CET 1999 Jan Hubicka <hubicka@freesoft.cz>
13442 * global.c (allocno): New structure and static variable.
13443 (allocno_reg): Remove, all references replaced by allocno.
13444 (allocno_size): Likewise.
13445 (hard_reg_conflicts): Likewise.
13446 (hard_reg_preferences): Likewise.
13447 (hard_reg_copy_preferences): Likewise.
13448 (hard_reg_full_preferences): Likewise.
13449 (regs_someone_prefers): Likewise.
13450 (allocno_calls_crossed): Likewise.
13451 (allocno_n_refs): Likewise.
13452 (allocno_live_length): Likewise.
13453 (find_reg): Rename ALLOCNO to NUM.
13455 * regclass.c (may_move_in_cost): Rename from may_move_cost, all
13456 references updated.
13457 (may_move_out_cost): New variable.
13458 (init_reg_sets_1): Initialize may_move_out_cost.
13459 (record_reg_classes): Use may_move_out_cost.
13461 * regclass.c (dump_regclass): New function.
13462 (regclass): New parameter DUMP, call DUMP_REGCLASS.
13463 * toplev.c (rest_of_compilation): Open lreg dump file before regclass,
13464 pass rtl_dump_file to regclass.
13465 * rtl.h (regclass): Update prototype.
13467 Fri Nov 19 06:32:19 CET 1999 Jan Hubicka <hubicka@freesoft.cz>
13469 * i386.md (neg, not and abs patterns): Revmap to use
13470 ix86_expand_unary_operator and ix86_unary_operator_ok.
13471 (add?f and sub?f expanders): Force operand 1 to register.
13472 * i386.c (ix86_expand_unary_operator): Rewrite.
13473 (ix86_unary_operator_ok): Ensure that memory operands
13475 (ix86_binary_operator_ok): Do not allow operand 1 to
13476 come into memory and operand 0 not.
13477 (ix86_expand_binary_operator): Ensure that
13478 src1 is not non-matching memory.
13480 * i386.md (negs?2): Rewrite to expanders, new patterns and splitters
13481 to support integer registers and memory.
13482 (abss?2_integer): Likewise.
13484 * i386.h (enum reg_class): Add FLOAT_INT_REGS.
13485 (REG_CLASS_NAMES): Likewise.
13486 (REG_CLASS_CONTENTS): Define FLOAT_INT_REGS as union of FLOAT_REGS
13488 * i386.md (pushsf): Do not preferre FLOAT_REGS over GENERAL_REGS.
13489 (movsf): Likewise; unify 4th and 5th alternative.
13490 (pushdf): Likewise.
13491 (movdf_1): Likewise; rename to movdf_integer.
13492 (pushxf): Likewise; rename to pushxf_integer; fix output template;
13493 remove redundant splitter.
13494 (movxf_1): Likewise; rename to movxf_integer; fix splitter's condition.
13495 (movdf_nointeger): New.
13496 (movxf_nointeger): New.
13497 (pushxf_nointeger): New.
13499 * i386.md (extend?f?f): Split to expander and pattern, refuse two
13500 memory operands in patterns.
13501 (fop*): Refuse two memory operands.
13503 * i386.md (ashrsi3_31): Allow cltd when optimizing for size even
13504 on !TARGET_USE_CLTD CPUs.
13506 Fri Nov 19 10:41:15 GMT 1999 Nathan Sidwell <nathan@acm.org>
13508 * extend.texi: Document C++ restricted pointers and references.
13510 1999-11-19 Bernd Schmidt <bernds@cygnus.co.uk>
13512 * cse.c (addr_affects_sp): No longer conditional on AUTO_INC_DEC.
13513 (invalidate_skipped_set): Call it unconditionally.
13514 (cse_set_around_loop): Likewise.
13516 Thu Nov 18 17:29:34 MST 1999 Diego Novillo <dnovillo@cygnus.com>
13518 * rtl.texi (mem): Add documentation for alias-set argument
13521 Fri Nov 18 13:39:22 CET 1999 Jan Hubicka <hubicka@freesoft.cz>
13523 * i386.h (struct_processor_costs): New fields int_load, int_store,
13524 fp_move, fp_load and fp_store
13525 (REGISTER_MOVE_COST): Fix comment, calculate exactly the cost of
13527 (MEMORY_MOVE_COST): New macro.
13528 * i386.c (386_cost): Define new fields.
13529 (i486_cost): Likewise.
13530 (pentium_cost): Likewise.
13531 (pentiumpro_cost): Likewise.
13532 (k6_cost): Likewise.
13534 Fri Nov 19 11:11:55 1999 Greg McGary <gkm@gnu.org>
13535 Geoffrey Keating <geoffk@cygnus.com>
13537 * config/m68k/m68kelf.h: Suppress '/* within comment' warning.
13539 * config/m68k/m68k.h (MASK_PCREL): Don't use same value as
13542 * config/m68k/m68k.h (MASK_NO_STRICT_ALIGNMENT): New macro.
13543 (TARGET_STRICT_ALIGNMENT): New macro.
13544 (TARGET_SWITCHES): Add "strict-align" and "no-strict-align".
13545 (STRICT_ALIGNMENT): Depend on TARGET_STRICT_ALIGNMENT.
13546 * invoke.texi (M680x0 Options): Document -mstrict-align.
13548 Thu Nov 18 11:10:03 1999 Jan Hubicka <hubicka@freesoft.cz>
13549 Richard Henderson <rth@cygnus.com>
13551 * i386-protos.h (split_xf, ix86_split_movdi): Remove.
13552 (ix86_split_long_move): Declare.
13553 * i386.c (split_xf, ix86_split_movdi): Remove.
13554 (ix86_split_to_parts, ix86_split_long_move): New.
13555 * i386.md (dimode move splitters): Use ix86_split_long_move.
13556 (dfmode move splitters): Likewise.
13557 (xfmode move splitters): Likewise.
13558 (movsf_1): Allow F->r.
13559 (movdf_1, movxf_1): Allow F->ro.
13561 1999-11-17 Mark Mitchell <mark@codesourcery.com>
13563 * except.h (struct eh_entry): Add goto_entry_p.
13564 (eh_region_from_symbol): Remove prototype.
13565 * except.c (find_func_region_from_symbol): New function.
13566 (emit_cleanup_handler): Likewise.
13567 (eh_region_from_symbol): Make it static.
13568 (add_new_handler): Verify the argument.
13569 (find_func_region): Update comment.
13570 (expand_eh_region_end): Expand handlers here, rater than waiting
13571 until expand_leftover_cleanups or start_all_catch.
13572 (expand_leftover_cleanups): Don't expand here.
13573 (expand_start_all_catch): Or here.
13574 (expand_rethrow): Check the return value from find_func_region.
13575 * function.c (expand_function_end): Emit the catch_clauses.
13577 1999-11-18 Gavin Romig-Koch <gavin@cygnus.com>
13579 * integrate.c (expand_inline_function): Add necessary check for NULL.
13581 1999-11-18 Nick Clifton <nickc@cygnus.com>
13583 * toplev.c (main): Correctly detect an unrecognised option.
13585 * cppinit.c (cpp_handle_option): Do not claim to have consumed
13586 a -f option if it has not been recognised.
13588 Thu Nov 18 00:59:11 1999 Michael Gschwind <mikeg@alagoas.watson.ibm.com>
13590 * basic-block.h (update_life_extent): Remove trailing comma on
13591 enumeration type list.
13593 1999-11-18 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
13595 * varasm.c (output_constructor) Solved problem with long long
13596 bitfields. Corrected calculating this_time and shift. Also
13597 corrected calculating mask when BITS_PER_UNIT == 32 (c4x).
13599 Wed Nov 17 23:46:14 1999 Jeffrey A Law (law@cygnus.com)
13601 * flow.c (split_edge): Take looping structure into account when
13602 determining where to put the new block note.
13604 Wed Nov 17 20:42:43 1999 Jeff Holcomb <jeffh@cygnus.com>
13606 * Makefile.in (ggc-none.o): Provide host specific version if
13609 Wed Nov 17 16:51:23 1999 Richard Henderson <rth@cygnus.com>
13611 * cse.c (delete_trivially_dead_insns): Identify no-op insns
13612 containing subregs too.
13614 Wed Nov 17 17:39:48 MST 1999 Diego Novillo <dnovillo@cygnus.com>
13616 * invoke.texi: Add documentation for -muninit-const-in-rodata.
13617 * config/mips/mips.h (MASK_UNINIT_CONST_IN_RODATA): Define.
13618 (TARGET_UNINIT_CONST_IN_RODATA): Define.
13619 (text_section): Add switches -munint-const-in-rodata and
13620 -mno-uninit-const-in-rodata.
13621 (ASM_OUTPUT_COMMON): Remove.
13622 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define. Check if uninitialized
13623 const objects should be placed in read-only data. Otherwise declare
13626 Wed Nov 17 16:38:32 1999 Richard Henderson <rth@cygnus.com>
13628 * jump.c (jump_optimize_1): Revert last change.
13630 Wed Nov 17 15:18:30 1999 Richard Henderson <rth@cygnus.com>
13632 * jump.c (jump_optimize_1): Don't try to duplicate the loop exit
13633 test if optimizing for size.
13635 1999-11-17 Mark Mitchell <mark@codesourcery.com>
13637 * Makefile.in (toplev.o): Depend on except.h.
13638 (dwarf2out.o,loop.o,flow.o,haifa-sched.o): Likewise.
13640 Mon Nov 15 22:45:39 CET 1999 Jan Hubicka <hubicka@freesoft.cz>
13642 * i386.md (divmodsi4): Rewrite to expander.
13643 (*divmodsi4_nocltd): New.
13644 (*divmodsi4_cltd): New.
13645 (divmodsi4 splitter): Handle the case when input comes in edx.
13646 (udivmodhi4): Do not use constraints in exander.
13647 (ashrsi3_31): Conditionize by TARGET_USE_CLTD.
13649 1999-11-17 Jason Merrill <jason@yorick.cygnus.com>
13651 * dwarf2out.c (push_decl_scope): Still use decl_scope_depth - 1
13652 for the common case.
13654 1999-11-16 Jakub Jelinek <jakub@redhat.com>
13656 * explow.c (hard_function_value): Add outgoing argument.
13657 * expr.h (hard_function_value): Declare it.
13658 * calls.c (expand_call, emit_library_call_value): Update callers.
13659 * function.c (aggregate_value_p): Ditto.
13660 (diddle_return_value): Must look at the outgoing registers
13661 on archs with register windows.
13663 Mon Nov 15 20:46:45 1999 Richard Henderson <rth@cygnus.com>
13665 * alpha.c (alpha_build_va_list): Use make_lang_type and
13666 initialize TYPE_NAME for the va_list record.
13668 * flow.c (calculate_global_regs_live): Zero bb->aux to begin.
13670 * ggc-common.c (ggc_print_statistics): Cast size_t to unsigned long
13672 * ggc.h (struct ggc_statistics): Rearrange elements for better
13673 packing on 64-bit hosts.
13674 * lcm.c (compute_laterin): Store a size_t not an int in bb->aux.
13675 (compute_nearerout): Likewise.
13677 Tue Nov 16 14:37:52 1999 Geoffrey Keating <geoffk@cygnus.com>
13679 * config/rs6000/rs6000.c (first_reg_to_save): Save
13680 PIC_OFFSET_TABLE_REGNUM when -fpic even though it is fixed.
13682 1999-11-15 Jason Merrill <jason@casey.cygnus.com>
13684 * dwarf2out.c (scope_die_for): Don't rely on the decl_scope_table
13685 notion of nesting to find the DIE for a type or function.
13686 DIEs can go in limbo even if we got a context_die.
13687 (push_decl_scope): Our context doesn't need to be in decl_scope_table.
13688 (gen_struct_or_union_type_die): Don't use TREE_PERMANENT to test
13690 (gen_decl_die): Ignore NAMESPACE_DECLs for now.
13691 (gen_type_die): Writing out the context doesn't cause member class
13692 template instantiations to be written out as well.
13694 Mon Nov 15 15:33:18 1999 Richard Henderson <rth@cygnus.com>
13696 * rs6000.h (ASM_OUTPUT_DEF): New.
13697 Based on proposed addition from David Edelsohn.
13699 1999-11-15 Robert Lipe <RobertLipe@usa.net>
13700 Bruce Korb <autogen@linuxbox.com>
13702 * fixinc/inclhack.def
13703 (AAB_svr4_replace_byteorder): added. Takes advantage of GCC features
13704 (unixware7_byteorder_fix): added. Removes conflicts for new defs
13706 (svr5_mach_defines): added. Like svr4_mach_defines, with new syntax
13707 (svr4_endian): enabled with SVR5
13708 (svr4_mkdev): simplified syntax and enabled with SVR5
13710 Sun Nov 14 18:49:37 1999 David O'Brien <obrien@FreeBSD.org>
13712 * configure.in: Handle libgcc2 threads support on FreeBSD platforms.
13713 * configure: Rebuilt.
13714 * config/t-freebsd-thread: New file.
13716 Sun Nov 14 23:11:05 1999 Jeffrey A Law (law@cygnus.com)
13718 * i386.c (ix86_decompose_address): Verify the base is a REG
13719 before trying to examine its register number.
13721 * basic-block.h: Remove all #defines and prototypes related to
13723 (free_bb_mem, compute_preds_succs): Remove prototype.
13724 * rtl.h (free_bb_mem): Remove prototype.
13725 * flow.c (alloc_int_list_node); Remove function.
13726 (add_inst_list_node, free_int_list, add_pred_succ): Likewise.
13727 (compute_preds_succs, free_bb_mem): Likewise.
13728 * gcse.c (gcse_main): Do not call free_bb_mem anymore.
13729 * toplev.c (rest_of_compilation): Likewise.
13730 * haifa-sched.c (build_control_flow): Use flow generated edge
13731 list to build the haifa specific edge list.
13732 (find_rgns): Use new CFG data structures instead of pred/succ lists.
13733 (schedule_insns): Do not build pred/succ lists anymore. Instead
13734 build the edge table.
13736 * basic-block.h (dump_bb_data): Remove declaration.
13737 * flow.c (dump_bb_data): Remove function.
13738 * sbitmap.c (sbitmap_intersect_of_predsucc): Delete function.
13739 (sbitmap_union_of_predsucc): Likewise.
13741 * gcse.c (delete_null_pointer_checks_1): Kill unused s_preds
13742 argument. All callers changed.
13743 (delete_null_pointer_checks_1): No longer need to compute the
13746 * gcse.c (pre_expr_reaches_here_p): Kill CHECK_PRE_COM argument.
13747 All callers changed.
13748 (pre_expr_reaches_here_p_work): Likewise.
13749 (pre_edge_insert): No longer call pre_expr_reaches_here_p.
13750 * lcm.c (compute_laterin): Fix initialization of LATER.
13751 (compute_nearerout): Similarly for NEARER.
13753 Sun Nov 14 12:41:57 1999 Bernd Schmidt <bernds@cygnus.co.uk>
13755 * cse.c (set_nonvarying_address_components): Delete unused function.
13756 (refers_to_p): Likewise.
13758 Fri Nov 12 20:53:22 1999 Jeffrey A Law (law@cygnus.com)
13760 * function.c (diddle_return_value): Set REG_FUNCTION_VALUE_P as
13763 Sat Nov 13 16:20:09 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
13765 * defaults.h (ASM_OUTPUT_ALTERNATE_LABEL_NAME): Wrap macro
13766 definition in do while (0).
13768 Fri Nov 12 16:26:25 1999 Jim Wilson <wilson@cygnus.com>
13770 * stmt.c (pushcase, pushcase_range): Partially revert Oct 28 change.
13772 Fri Nov 12 12:43:49 1999 Richard Henderson <rth@cygnus.com>
13774 * unroll.c (unroll_loop): Make temp an unsigned HOST_WIDE_INT.
13776 Fri Nov 12 15:14:19 1999 Vladimir Makarov <vmakarov@tofu.to.cygnus.com>
13778 * i960.h (CAN_DEBUG_WITHOUT_FP): Don't define it.
13779 (FRAME_POINTER_REQUIRED): Don't worry about nonlocal goto.
13780 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
13781 (INITIAL_FRAME_POINTER_OFFSET): Remove it.
13783 * i960.c (i960_function_prologue): Don't allocate space for g8-g11
13784 saved on the stack. Output more accurate stack frame statistics
13785 into assembler file.
13787 1999-11-12 11:47 -0800 Zack Weinberg <zack@bitmover.com>
13789 * genextract.c (record_insn_name): New function.
13790 (get_insn_name): No longer a stub.
13791 (main): Call record_insn_name for each insn. After each label
13792 written, print the insn name in a comment.
13794 Fri Nov 12 13:45:02 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13796 * output.h (const_section, init_section, fini_section): Add
13799 * alpha/elf.h (const_section): Delete declaration.
13801 * svr4.h (const_section): Likewise.
13803 Fri Nov 12 08:54:22 1999 Mark Mitchell <mark@codesourcery.com>
13805 * tree.h (SAVE_EXPR_PERSISTENT_P): New macro.
13806 * tree.c (array_type_nelts): Don't handle SAVE_EXPRs specially.
13807 (unsave_expr_now): Don't unsave SAVE_EXPR_PERSISTENT_P
13809 * stor-layout.c (variable_size): Set SAVE_EXPR_PERSISTENT_P on
13810 variable-sized array bounds.
13812 Fri Nov 12 08:04:45 1999 Catherine Moore <clm@cygnus.com>
13814 * defaults.h (ASM_OUTPUT_ALTERNATE_LABEL_NAME): Use
13817 Fri Nov 12 13:31:54 1999 Bernd Schmidt <bernds@cygnus.co.uk>
13819 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Treat QImode
13820 addresses the same way GO_IF_LEGITIMATE_INDEX does.
13822 Fri Nov 12 12:36:04 1999 Bernd Schmidt <bernds@cygnus.co.uk>
13824 * cse.c (hash_arg_in_struct): Delete.
13825 (struct table_elt): Delete elt in_struct.
13826 (struct set): Delete elt src_in_struct.
13827 (merge_equiv_classes): Don't set either hash_arg_in_struct or
13828 the corresponding in_struct elts.
13829 (canon_hash): Likewise.
13830 (safe_hash): Likewise.
13831 (find_best_addr): Likewise.
13832 (record_jump_cond): Likewise.
13833 (cse_insn): Likewise.
13835 Thu Nov 11 19:45:24 1999 Jim Wilson <wilson@cygnus.com>
13837 * loop.c (invariant_p, case MEM): Put MEM_VOLATILE_P check back.
13839 * dbxout.c (dbxout_type, case INTEGER_TYPE): Handle too large
13842 Thu Nov 11 18:54:24 1999 Jeffrey A Law (law@cygnus.com)
13844 * function.c (diddle_return_value): Put back check that the DECL_RTL
13845 for the function is a register.
13847 * function.c (diddle_return_value): Use hard_function_value to
13848 get an rtx suitable for use in the USE/CLOBBER insn.
13850 * global.c (global_conflicts): Update comments.
13851 (record_conflicts): No need to record conflicts between pseudos here.
13853 1999-11-11 Bruce Korb <autogen@linuxbox.com>
13855 * fixinc/fixincl.c: Added verbose levels for status messages
13857 Thu Nov 11 13:23:04 1999 Bernd Schmidt <bernds@cygnus.co.uk>
13859 * jump.c (jump_optimize_1): Avoid passing an rtx that is not an
13860 operand as argument to expand_and or expand_binop.
13862 Thu Nov 11 02:21:16 1999 Rodney Brown <RodneyBrown@pmsc.com>
13864 * xcoffout.c (xcoffout_source_file): Change ggc_add_root to
13865 gcc_add_string_root.
13867 Wed Nov 10 21:24:19 1999 Jason Eckhardt <jle@cygnus.com>
13869 * config/pa/pa.h (MASK_RETURN_ADDR): Change 0xfffffffc to -4.
13871 Wed Nov 10 15:56:16 1999 Jeffrey A Law (law@cygnus.com)
13873 * flow.c (compute_flow_dominators): Initially put all blocks on
13875 * lcm.c (compute_antinout_edge, compute_available): Similarly.
13876 * gcse.c (compute_cprop_avinout): Remove.
13877 (compute_cprop_data): Use compute_available.
13878 (delete_null_pointer_checks_1): Use compute_available.
13880 * basic-block.h (compute_available): Returns a void now.
13881 * gcse.c (one_classic_gcse_pass): Do not expect compute_available
13882 to return a value anymore.
13883 * lcm.c (compute_available, compute_antinout_edge): Revamp to use
13884 worklists. Fix boundary cases. Compute maximal solutions.
13885 (compute_laterin, compute_nearerout): Similarly.
13887 * dwarf2out.c (add_AT_location_description): Allow
13888 (mem (plus (pseudo) (...)) too.
13890 Wed Nov 10 10:52:42 1999 Tom Tromey <tromey@cygnus.com>
13892 * gcc.c (do_spec_1): Support text between `%u' and `%O'.
13894 Wed Nov 10 12:43:21 1999 Philippe De Muyter <phdm@macqel.be>
13895 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13897 * cppinit.c: Test `GCC_VERSION', not `HAVE_GCC_VERSION'.
13899 * gansidecl.h: Likewise.
13905 * toplev.h: Likewise.
13907 * tree.c: Likewise.
13909 * tree.h: Likewise.
13911 * varray.c: Likewise.
13913 * varray.h: Likewise.
13915 Wed Nov 10 10:57:22 1999 Clinton Popetz <cpopetz@cygnus.com>
13917 * gcov.c (struct arcdata): Add hits and total, remove prob.
13918 (output_branch_counts): New.
13919 (process_args): Set output_branch_counts if -c.
13920 (calculate_branch_probs): Store hits and total instead of
13922 (output_data): Emit counts if output_branch_counts is true.
13923 * gcov.texi (Invoking Gcov): Document -c switch..
13925 Wed Nov 10 01:10:41 1999 Philippe De Muyter <phdm@macqel.be>
13927 * genoutput.c (output_insn_data): Cast `INSN_OUTPUT_FORMAT_MULTI' and
13928 `INSN_OUTPUT_FORMAT_FUNCTION' to `PTR'-type.
13930 Wed Nov 10 00:51:41 1999 Hans-Peter Nilsson <hp@axis.se>
13932 * invoke.texi (C Dialect Options): Add missing builtins from
13933 c-common.c to list.
13934 * extend.texi (Other Builtins): Copy to this list.
13936 Wed Nov 10 04:58:09 1999 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
13938 * Makefile.in (recog.o): Use BASIC_BLOCK_H macro.
13939 (print-rtl.o, $(HOST_PREFIX_1)print-rtl.o): Likewise. Remove
13940 redundant bitmap.h.
13942 Wed Nov 10 00:02:53 1999 Jeffrey A Law (law@cygnus.com)
13944 * flow.c (compute_flow_dominators): No longer treat basic block 0
13945 or (n_basic_blocks - 1) specially. Clear the AUX field before
13946 starting computation of doms/pdoms. Fix initial state for pdoms.
13948 Wed Nov 10 03:58:08 1999 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
13950 * Makefile.in ($(HOST_PREFIX_1)rtl.o): Update dependencies to
13951 match rtl.o's: added ggc.h and toplev.h
13952 ($(HOST_PREFIX_1)print-rtl.o): Likewise: added system.h.
13953 ($(HOST_PREFIX_1)rtlanal.o): Likewise: added system.h.
13954 ($(HOST_PREFIX_1)obstack.o): Likewise: added $(CONFIG_H).
13956 Tue Nov 9 10:30:08 1999 Tom Tromey <tromey@cygnus.com>
13958 * config/i386/xm-djgpp.h (HAVE_DOS_BASED_FILE_SYSTEM): Renamed
13959 from HAVE_DOS_BASED_FILESYSTEM.
13960 * gcc.c (find_a_file): Use HAVE_DOS_BASED_FILE_SYSTEM, not
13961 HAVE_DOS_BASED_FILESYSTEM.
13963 (split_directories): Only special-case DOS file names if
13964 HAVE_DOS_BASED_FILE_SYSTEM is defined. Use IS_DIR_SEPARATOR
13965 instead of explicit tests. Conditionalize on !VMS.
13966 (make_relative_prefix): Use IS_DIR_SEPARATOR instead of explicit
13967 tests. Conditionalize on !VMS.
13968 (process_command): Only use make_relative_prefix if !VMS.
13969 (free_split_directories): Conditionalize on !VMS.
13970 (DIR_UP): Conditionalize on !VMS.
13972 Wed Jun 9 16:57:11 1999 Mumit Khan <khan@xraylith.wisc.edu>
13974 * gcc.c (STANDARD_BINDIR_PREFIX): Provide default.
13976 Fri Feb 5 14:22:01 1999 Mumit Khan <khan@xraylith.wisc.edu>
13978 * gcc.c (make_relative_prefix): Handle the HAVE_EXECUTABLE_SUFFIX
13981 Mon Nov 8 14:16:57 1999 Michael Meissner <meissner@cygnus.com>
13983 * invoke.texi (Environment Variables): Document relative path
13985 * gcc.c (DIR_UP): If not defined, define as "..".
13986 (standard_bindir_prefix): New static, holds target location to
13988 (split_directories): New function to split a filename into
13989 component directories.
13990 (free_split_directories): New function, release memory allocated
13991 by split_directories.
13992 (make_relative_prefix): New function, make a relative pathname if
13993 the compiler is not in the expected location.
13994 (process_command): If GCC_EXEC_PREFIX was not specified, see if we
13995 can figure out an appropriate prefix from argv[0].
13996 * Makefile.in (DRIVER_DEFINES): Use unlibsubdir in definition of
13997 STANDARD_STARTFILE_PREFIX and TOOLDIR_BASE_PREFIX. Define
13998 STANDARD_BINDIR_PREFIX.
14000 Wed Nov 10 11:47:54 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14002 * config/c4x/c4x-protos.h: New file. Prototypes for functions defined
14004 * config/c4x/c4x.h: Moved prototypes to c4x.h.
14005 * config/c4x/c4x.c (c4x_preferred_reload_class, c4x_limit_reload_class,
14006 c4x_secondary_memory_needed) Delete.
14007 (fp_zero_operand): Add mode argument.
14009 Thu Nov 4 15:52:35 1999 Andrew Haley <aph@cygnus.com>
14011 * reload1.c (reload_reg_free_for_value_p): Don't use a register
14012 that is in reload_reg_used.
14014 Tue Nov 9 16:43:00 1999 Nick Clifton <nickc@cygnus.com>
14016 * config/arm/arm-protos.h: New file: Prototypes for functions
14017 defined in arm.c and pe.c.
14018 * config/arm/arm.h: Fix compile time warnings.
14019 * config/arm/arm.c: Fix compile time warnings.
14020 * config/arm/pe.h: Fix compile time warnings.
14021 * config/arm/aout.h: Fix compile time warnings.
14023 Tue Nov 9 14:55:44 1999 Nick Clifton <nickc@cygnus.com>
14025 * config/m32r/m32r-protos.h: New file: Prototypes for functions
14028 * config/m32r/m32r.h: Move prototypes to m32r-protos.h
14029 Add support for subtargets.
14030 Add prototypes for new predicates.
14031 Add scheduling macros.
14033 * config/m32r/m32r.c: Fix compile time warnings.
14034 (int8_operand): New predicate function.
14035 (reg_or_cmp_int16_operand): New predicate function.
14036 (extend_operand): New predicate function.
14037 (m32r_adjust_code): New scheduling function.
14038 (m32r_adjust_priorty): New scheduling function.
14039 (m32r_sched_init): New scheduling function.
14040 (m32r_sched_reorder): New scheduling function.
14041 (m32r_sched_variable_issue): New scheduling function.
14042 (direct_return): New codegen function.
14043 (m32r_not_same_reg): New rtl testsing function.
14045 * config/m32r/m32r.md: Fix compile time warnings.
14046 Add support for pre decrement and post increment memory
14048 Add S<cc> patterns.
14051 Mon Nov 8 22:20:13 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
14053 * global.c (EXECUTE_IF_CONFLICT): Don't define.
14054 (prune_preferences): Use EXECUTE_IF_SET_IN_ALLOCNO_SET instead.
14055 (find_reg): Likewise.
14057 Mon Nov 8 13:16:46 1999 Jason Eckhardt <jle@cygnus.com>
14059 * config/pa/pa.md (fmpynfadd,{sgl,dbl} insns): Use %fr0 rather than 0
14060 to avoid assembler errors.
14062 Mon Nov 8 15:38:41 1999 Nick Clifton <nickc@cygnus.com>
14064 * config/v850/v850-protos.h: New file: Prototypes for functions
14066 * config/v850/v850.h: Move prototypes to v850-protos.h
14067 * config/v850/v850.c: Move prototypes to v850-protos.h
14068 * config/v850/v850.md: Fix compile time warnings.
14070 * config/fr30/fr30-protos.h: New file: Prototypes for functions
14072 * config/fr30/fr30.h: Move prototypes to fr30-protos.h
14073 * config/fr30/fr30.c: Fix compile time warnings.
14074 * config/fr30/fr30.md: Fix compile time warnings.
14076 Mon Nov 8 07:25:37 1999 Mark Mitchell <mark@codesourcery.com>
14078 * tree.h (get_containing_scope): Declare it.
14079 * tree.c (get_containing_scope): New fucntion.
14080 (decl_function_context): Use it.
14081 * toplev.c (rest_of_compilation): Use get_containing_scope.
14083 aMon Nov 8 03:03:07 1999 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
14085 * Makefile.in (rtl.o): Depend on toplev.h.
14087 Sun Nov 7 20:55:14 1999 Mark Mitchell <mark@codesourcery.com>
14089 * cse.c (delete_trivially_dead_insns): Replace alloca with
14091 * except.c (update_rethrow_references): Likewise.
14092 (init_eh_nesting_info): Likewise.
14093 * function.c (identify_blocks): Likewise.
14094 * gcse.c (dump_hash_table): Likewise.
14095 * graph.c (print_rtl_graph_with_bb): Likewise.
14096 * loop.c (combine_movables): Likewise.
14097 (move_movables): Likewise.
14098 (count_loop_regs_set): Likewise.
14099 (strength_reduce): Likewise.
14100 * profile.c (compute_branch_probabilities): New function, split
14102 (branch_prob): Here. Replace alloca with xmalloc/xcalloc.
14103 * regclass.c (regclass): Likewise.
14104 * regmove.c (regmove_optimize): Likewise.
14105 * toplev.c (compile_file): Likewise.
14106 (main): Don't mess with the stack rlimit.
14108 Sun Nov 7 19:41:17 1999 Catherine Moore <clm@cygnus.com>
14110 * config/elfos.h (ASM_DECLARE_FUNCTION_NAME): Conditionally define.
14111 (ASM_DECLARE_FUNCTION_SIZE): Conditionally define.
14113 Sun Nov 7 10:23:28 1999 Mark P. Mitchell <mark@codesourcery.com>
14115 * integrate.c (save_for_inline_nocopy): Clear in_nonparm_insns.
14117 Sun Nov 7 02:58:48 1999 Jeffrey A Law (law@cygnus.com)
14119 * global.c (EXECUTE_IF_CONFLICT): Undo Robert's change.
14120 (EXECUTE_IF_SET_IN_ALLOCNO_SET): Put curleys around CODE in
14123 Sat Nov 6 23:48:30 1999 Robert Lipe (robertlipe@usa.net)
14125 * global.c (EXECUTE_IF_CONFLICT): Correct quoting typo.
14127 Sat Nov 6 17:34:39 1999 Jeffrey A Law (law@cygnus.com)
14129 * gcse.c (post_dominators): Kill.
14130 (alloc_code_hoist_mem, free_code_hoist_mem); Kill post_dominators.
14131 (compute_code_hoist_data): Use compute_flow_dominators. Do not
14132 pass in a pdom array since we do not need pdoms.
14133 * haifa-sched.c (schedule_insns): Similarly.
14134 * flow.c (compute_dominators): Remove dead function.
14135 (compute_flow_dominators): Do not compute doms or pdoms if the
14136 caller does not request them. Split up loop to build doms and
14137 pdoms. Use a worklist to compute doms and pdoms.
14138 * basic-block.h (compute_dominators): Remove prototype.
14140 Sat Nov 6 11:38:39 1999 Richard Henderson <rth@cygnus.com>
14142 * haifa-sched.c (struct haifa_insn_data, h_i_d): New.
14143 (insn_luid, insn_priority, insn_costs, insn_units): Remove.
14144 (insn_reg_weight, insn_depend, insn_dep_count): Remove.
14145 (insn_blockage, insn_ref_count, line_note, insn_tick): Remove.
14146 (cant_move, fed_by_spec_load, is_load_insn): Remove.
14147 (schedule_region): Remove unused variable.
14148 (schedule_insns): Allocate h_i_d, and not all the separate arrays.
14150 Sat Nov 6 10:00:34 1999 Mark Mitchell <mark@codesourcery.com>
14152 * local-alloc.c (local_alloc): Use xmalloc/xcalloc, not alloca.
14153 (update_equiv_regs): Likewise.
14154 (block_alloc): Likewise.
14155 * reg-stack.c (reg_to_stack): Likewise.
14156 (convert_regs_2): Likewise.
14157 * reload1.c (reload_as_needed): Likewise.
14159 Sat Nov 6 09:57:59 1999 Mark Mitchell <mark@codesourcery.com>
14161 * Makefile.in (dbxout.o): Depend on ggc.h.
14162 (dwarf2out.o): Likewise.
14163 (xcoffout.o): Likewise.
14164 * dbxout.c: Include ggc.h.
14165 (dbxout_init): Register lastfile as a root.
14166 * dwarf2out.c: Include ggc.h.
14167 (dwarf2out_line): Register lastfile as a root.
14168 * xcoffout.c: Include ggc.h.
14169 (xcoffout_source_line): Register xcoff_lastfile as a root.
14171 Sat Nov 6 09:52:09 1999 Richard Henderson <rth@cygnus.com>
14173 * i386.md (movdf_1, movxf_1): Earlyclobber general regs destination.
14175 Sat Nov 6 07:48:59 1999 Catherine Moore <clm@cygnus.com>
14177 * config/svr4.h (ASM_DECLARE_FUNCTION): Check if already
14179 (ASM_DECLARE_FUNCTION_SIZE): Likewise.
14181 Fri Nov 5 18:33:39 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
14183 * global.c (EXECUTE_IF_SET_IN_ALLOCNO_SET): New macro.
14184 (EXECUTE_IF_CONFLICT): Likewise.
14185 (ALLOCNO_LIVE_P): Avoid signed division.
14186 (SET_ALLOCNO_LIVE, CLEAR_ALLOCNO_LIVE): Likewise.
14187 (prune_preferences, find_reg): Use EXECUTE_IF_CONFLICT.
14188 (record_one_conflict): Use EXECUTE_IF_SET_IN_ALLOCNO_SET.
14190 Fri Nov 5 12:04:02 1999 Richard Henderson <rth@cygnus.com>
14192 * haifa-sched.c (schedule_block): Don't crash if there's no
14193 next insn for an interblock movement.
14194 (add_branch_dependences): Don't allow clobber insns to move either.
14196 Fri Nov 5 10:18:11 1999 Richard Henderson <rth@cygnus.com>
14198 * i386.c (split_xf): New.
14199 * i386-protos.h: Declare it.
14200 * i386.md (movxf_1): Add general regs alternatives.
14201 (movxf_1+1): New splitter for same.
14203 Fri Nov 5 12:05:52 1999 Nick Clifton <nickc@cygnus.com>
14205 * function.c (purge_addressof_1): Add missing return values.
14207 Fri Nov 5 10:07:25 1999 Nick Clifton <nickc@cygnus.com>
14209 * function.c (is_addressof): New function. Returns true if
14210 the given piece of RTL is an ADDRESSOF.
14211 (purge_addressof_1): Make boolean. Return false if the
14212 ADDRESSOFs could not be purged.
14213 (purge_addressof): If ADDRESSOFs could not be purged from the
14214 notes attached to an insn, remove the offending note(s),
14215 unless they are attached to a libcall.
14217 1999-11-05 Andreas Jaeger <aj@suse.de>
14219 * genoutput.c (null_operand =): Initialize all fields.
14221 * errors.h: Add extern to prototypes.
14223 Fri Nov 5 01:44:09 1999 Jeffrey A Law (law@cygnus.com)
14225 * configure.in (m68k-next-nextstep4): Handle Openstep 4.2.
14226 * configure: Rebuilt.
14228 Fri Nov 5 01:24:37 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
14230 * global.c (CONFLICTP, SET_CONFLICT): Avoid signed division.
14231 (mirror_conflicts): New function.
14232 (global_alloc): Call it.
14233 (expand_preferences): Remove redundant CONFLICTP test.
14234 (find_reg, dump_conflicts): Likewise.
14235 (prune_preferences): Process conflicts one word at a time.
14237 Fri Nov 5 01:05:21 1999 Richard Henderson <rth@cygnus.com>
14239 * global.c (build_insn_chain): Use EXECUTE_IF_SET_IN_BITMAP
14240 instead of an explicit loop.
14242 Thu Nov 4 23:07:14 1999 Jim Wilson <wilson@cygnus.com>
14244 * cse.c (cse_insn): Revert Oct 31 change. When computing src_elt,
14245 if REG_RETVAL check succeeds, then put classp in src_elt.
14247 Thu Nov 4 23:48:14 1999 Jeffrey A Law (law@cygnus.com)
14249 * function.c (pad_to_arg_alignment): Only update argument_pad
14250 if the argument's alignment is greater than STACK_BOUNDARY.
14252 Thu Nov 4 16:44:53 1999 Richard Henderson <rth@cygnus.com>
14254 * bitmap.h (BITMAP_XFREE): New.
14255 * flow.c (life_analysis): Use it.
14256 (life_analysis_1): Free blocks.
14258 * combine.c (undo_commit): New.
14259 (try_combine): Use it. Don't zap undobuf.undos.
14260 (combine_instructions): Don't zap undobuf.undos; free the
14261 undobuf.frees list.
14263 * local-alloc.c (local_alloc): Free qty_phys_num_sugg.
14265 * stmt.c (cost_table_): New.
14266 (estimate_case_costs): Use it instead of xmalloc.
14268 * toplev.c (compile_file): Reuse dumpname memory instead
14271 Thu Nov 4 16:36:44 1999 Richard Henderson <rth@cygnus.com>
14273 * reg-stack.c (convert_regs_1): Initialize target_stack->top
14274 after verifying an EH edge.
14276 * haifa-sched.c (init_rgn_data_dependences): Correctly
14277 size bb_pending_lists_length when zeroing.
14279 Thu Nov 4 16:36:36 1999 Richard Henderson <rth@cygnus.com>
14281 * function.c (diddle_return_value): New.
14282 (expand_function_end): Use it.
14283 * stmt.c (expand_null_return): Likewise.
14284 (expand_value_return): Likewise.
14286 * reg-stack.c (subst_stack_regs_pat): Handle clobbers at top-level.
14288 * reload1.c (reload): Don't remove return value clobbers.
14290 Thu Nov 4 13:33:46 1999 Richard Henderson <rth@cygnus.com>
14292 * rtl.c (read_rtx): Use fatal_with_file_and_line not fatal.
14294 Thu Nov 4 12:49:52 1999 Richard Henderson <rth@cygnus.com>
14296 * cse.c (cse_main): Use xmalloc, not alloca.
14297 (cse_basic_block): Likewise.
14298 * local-alloc.c (local_alloc): Likewise.
14300 Thu Nov 4 14:22:12 1999 David Billinghurst <David.Billinghurst@riotinto.com.au>
14301 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
14303 * rtl.c: Include toplev.h.
14304 (fatal): Remove declaration.
14306 Thu Nov 4 06:39:47 1999 Jeffrey A Law (law@cygnus.com)
14308 * haifa-sched.c (schedule_block): Fix thinko.
14310 1999-11-03 James McKelvey <mckelvey@fafnir.com>
14312 * fixinc/fixincl.c(create_file): Allow for systems that do not have
14313 S_IR* defined values
14315 1999-11-03 Philippe De Muyter <phdm@macqel.be>
14317 * fixlib.c (load_file_data): Do not call `realloc' with a NULL pointer;
14318 call `malloc' instead.
14320 Wed Nov 3 23:05:14 1999 Mark Mitchell <mark@codesourcery.com>
14322 * flags.h (flag_renumber_insns): Declare.
14323 * emit-rtl.c (renumber_insns): Check flag_renumber_insns. Print
14325 * rtl.h (renumber_insns): Change prototype.
14326 * toplev.c (flag_renumber_insns): Define.
14327 (rest_of_compilation): Pass rtl_dump_file to flag_renumber_insns.
14329 Wed Nov 3 15:11:27 1999 David S. Miller <davem@redhat.com>
14331 * config/sparc/sparc.md: Remove insn type fpsqrt, add fpsqrts
14332 and fpsqrtd. Use them and create fdiv function unit to more
14333 accurately represent fpu sqrt pipeline semantics on UltraSparc.
14334 * config/sparc/sparc.c: Account for fpsqrt{s,d} changes.
14336 Wed Nov 3 15:11:27 1999 Matteo Frigo <athena@fftw.org>
14338 * config/sparc/sparc.md: Adjust FADD/FMUL result latencies to
14340 * config/sparc/sparc.c (ultra_schedule_insn): Insert launched
14341 insn into ready list, do not use just a raw swap.
14343 Wed Nov 3 14:51:59 1999 Mark P. Mitchell <mark@codesourcery.com>
14345 * rtl.h (renumber_insns): New function.
14346 (remove_unnecessary_notes): Likewise.
14347 * emit-rtl.c (renumber_insns): Define.
14348 (remove_unncessary_notes): Likewise.
14349 * toplev.c (rest_of_compilation): Remove dead code.
14350 Use renumber_insns and remove_unncessary_notes.
14352 * gcse.c (struct null_pointer_info): New type.
14353 (get_bitmap_width): New function.
14354 (current_block): Remove.
14355 (nonnull_local): Likewise.
14356 (nonnull_killed): Likewise.
14357 (invalidate_nonnull_info): Take a null_pointer_info as input.
14358 (delete_null_pointer_checks_1): New function.
14359 (delete_null_pointer_checks): Use it.
14361 * haifa-sched.c (find_rgns): Replace uses of alloca with xmalloc.
14362 (split_edges): Likewise.
14363 (schedule_block): Likewise.
14364 (compute_block_backward_dependencies): Likewise.
14365 (schedule_region): Likewise.
14366 (schedule_insns): Likewise.
14368 Wed Nov 3 15:40:23 1999 Catherine Moore <clm@cygnus.com>
14370 * defaults.h (ASM_OUTPUT_ALTERNATE_LABEL_NAME): Provide default.
14371 * emit-rtl.c (gen_label_rtx): Support LABEL_ALTERNATE_NAME.
14372 * final.c (final_scan_insn): Emit LABEL_ALTERNATE_NAME.
14373 * ggc-common.c (ggc_mark_rtx_children): Mark LABEL_ALTERNATE_NAME.
14374 * jump.c (delete_unreferenced_labels): Don't delete if
14375 LABEL_ALTERNATE_NAME is set.
14376 * print-rtl.c (print_rtx): Dump alternate name.
14377 * rtl.def (CODE_LABEL): Change format to "iuuis00s".
14378 * rtl.h (LABEL_ALTERNATE_NAME): Define.
14379 * rtl.texi (LABEL_ALTERNATE_NAME): Document.
14380 * tm.texi (ASM_OUTPUT_ALTERNATE_LABEL_NAME): Document.
14382 Wed Nov 3 15:39:19 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14384 * fix-header.c (recognized_extern, recognized_function): Constify
14387 * lcm.c (compute_laterin): Remove unused variable `temp_bitmap'.
14388 (pre_edge_lcm): Mark parameter `file' with ATTRIBUTE_UNUSED.
14389 (compute_available): Remove unused variable `last'.
14390 (compute_nearerout): Remove unused variable `temp_bitmap'.
14391 (pre_edge_rev_lcm): Mark parameter `file' with ATTRIBUTE_UNUSED.
14392 Remove unused variable `x'.
14394 * scan.h (recognized_function, recognized_extern): Constify a
14397 * simplify-rtx.c (simplify_rtx): Remove unused variable `new'.
14399 Wed Nov 3 10:40:53 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
14401 * varasm.c (decode_rtx_const): Use XSTR to access the string
14404 Wed Nov 3 10:10:58 1999 Richard Henderson <rth@cygnus.com>
14406 * c-decl.c (duplicate_decls): Copy DECL_MODE too.
14408 Wed Nov 3 12:12:59 1999 Bernd Schmidt <bernds@cygnus.co.uk>
14410 * reload1.c (eliminate_regs_in_insn): If copying insn, also copy notes.
14412 Wed Nov 3 03:26:28 1999 Jeffrey A Law (law@cygnus.com)
14414 * pa.c (ireg_operand): New function.
14415 * pa.h (PREDICATE_CODES): Handle ireg_operand.
14416 * pa.md (parallel_addb, parallel_movb): Use ireg_operand.
14417 Fix out of date comment.
14419 * pa.md (negdi2): Turn into expander + anonymous pattern.
14421 * reload.c (find_reloads): Fix typos in recent change.
14423 * dwarf2out.c: Do not include ctype.h.
14425 Tue Nov 2 21:53:44 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14427 * regclass.c (record_reg_classes): Always use may_move_cost when
14428 seeing how operand fits with various register classes.
14430 Tue Nov 2 15:38:17 1999 Richard Henderson <rth@cygnus.com>
14432 * resource.c: Revert Oct 26 20:42 and Oct 27 00:56 changes.
14433 * toplev.c: Revert Nov 1 13:22 change.
14435 Tue Nov 2 14:21:37 1999 Jason Eckhardt <jle@cygnus.com>
14437 * config/pa/pa.md (height reduction patterns): Add checks for
14438 overlapping operands to avoid semantic-destroying splits for
14439 height reduction patterns.
14441 Tue Nov 2 15:27:31 1999 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
14443 * configure.in (m68k-hp-hpux*, xm_alloca.h): The underscore should
14444 have been an hyphen, fixed.
14445 * configure: Rebuilt.
14447 Tue Nov 2 17:04:36 1999 Nick Clifton <nickc@cygnus.com>
14449 * config/arm/tpe.h: Add prototypes for exported functions.
14450 * config/arm/pe.c: Fix compile time warnings.
14451 * config/arm/semi.h: Fix compile time warnings.
14452 * config/arm/arm.c: Fix compile time warnings.
14453 * config/arm/arm.h: Fix compile time warnings.
14454 * config/arm/arm.md: Fix compile time warnings.
14455 * config/arm/thumb.c: Fix compile time warnings.
14456 * config/arm/thumb.h: Fix compile time warnings.
14457 * config/arm/thumb.md: Fix compile time warnings.
14459 Tue Nov 2 04:10:24 1999 Jan Hubicka <hubicka@freesoft.cz>
14461 * jump.c (jump_optimize_1): Swap the incscc and the conditional mode
14464 * unroll.c (unroll_loop): Remove LOOP notes when loop is
14465 completely unrolled.
14467 Tue Nov 2 16:57:22 1999 Bernd Schmidt <bernds@cygnus.co.uk>
14469 * cse.c (simplify_plus_minus, check_fold_const): Delete declarations.
14471 Tue Nov 2 09:43:00 1999 Catherine Moore <clm@cygnus.com>
14473 * Makefile.in (genattrtab): Don't use (HOST_RTLANAL).
14474 * rtl.h (rtx_equal_p): Move prototype.
14475 * rtl.c (rtx_equal_function_value_matters): Move from
14477 (rtx_equal_p): Likewise.
14478 * rtlanal.c (rtx_equal_function_value_matters): Delete.
14479 (rtx_equal_p): Likewise.
14481 Mon Nov 1 23:21:17 1999 Jason Merrill <jason@yorick.cygnus.com>
14483 * libgcc2.c (__do_global_dtors): Only do EH frame stuff if
14484 ! HAS_INIT_SECTION.
14486 Mon Nov 1 23:37:38 1999 Jeffrey A Law (law@cygnus.com)
14488 * gcc.1 (PA options): Remove obsolete -mshared-libs options.
14490 * pa.h (ADDR_VEC_ALIGN): Define.
14492 * jump.c (jump_optimize_1): Also move LOOP_VTOP and LOOP_CONT
14493 notes when presented with "if (foo) break; end_of_loop" and
14494 the break sequence gets moved out of the loop.
14496 * unroll.c (unroll_loop): Allocate memory for MAP using xcalloc.
14497 Remove explicit zero initializations of entries within MAP.
14499 Mon Nov 1 18:09:14 1999 Richard Henderson <rth@cygnus.com>
14501 * reg-stack.c (convert_regs_1): Handle EH edges specially.
14503 Mon Nov 1 15:41:01 1999 Mark P. Mitchell <mark@codesourcery.com>
14505 * bitmap.h (BITMAP_XMALLOC): New macro.
14506 * flow.c (CLEAN_ALLOCA): Remove.
14507 (delete_unreachable_blocks): Use xmalloc/xcalloc instead of alloca.
14508 (life_analysis): Likewise.
14509 (update_life_info): Don't use CLEAN_ALLOCA.
14510 (life_analysis_1): Use xmalloc/xcalloc instead of alloca.
14511 (calculate_global_regs_live): Likewise.
14512 (print_rtl_with_bb): Likewise.
14513 (verify_flow_info): Likewise.
14514 * global.c (global_alloc): Likewise.
14515 (global_conflicts): Likewise.
14516 * integrate.c (save_for_inline_nocopy): Likewise.
14517 (expand_inline_function): Likewise.
14518 * jump.c (jump_optimize_1): Likewise.
14519 (duplicate_loop_exit_test): Likewise.
14520 (thread_jumps): Likewise.
14521 * loop.c (loop_optimize): Likewise.
14522 (combine_givs): Likewise.
14523 (recombine_givs): Likewise.
14524 * reorg.c (dbr_schedule): Likewise.
14525 * unroll.c (unroll_loop): Likewise.
14527 * combine.c (combine_instructions): Use xmalloc instead of alloca.
14529 Mon Nov 1 13:22:30 1999 Richard Henderson <rth@cygnus.com>
14531 * toplev.c (rest_of_compilation): Don't optimize the CFG
14532 when rebuilding, just before dbr.
14534 Mon Nov 1 14:35:50 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14536 * output.h (assemble_end_function, assemble_destructor,
14537 assemble_constructor, assemble_gc_entry, assemble_global,
14538 assemble_label, output_constant_pool) Constify a char*.
14540 * varasm.c (assemble_destructor, assemble_constructor,
14541 assemble_gc_entry, assemble_end_function, assemble_global,
14542 assemble_label, output_constant_pool): Likewise.
14544 Mon Nov 1 14:22:51 1999 Nick Clifton <nickc@cygnus.com>
14546 * config/arm/thumb.c (thumb_expand_prologue): Add comments
14547 explaining what is goin on in this function.
14549 Mon Nov 1 08:03:15 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14551 * regclass.c (record_reg_classes): In matching case, recompute
14552 costs since the direction of movement is different.
14554 Sun Oct 31 21:59:34 MST 1999 Diego Novillo <dnovillo@cygnus.com>
14556 * resource.c (mark_target_live_regs): For unconditional branches,
14557 the resources found at the branch target should be added to the
14558 resources found so far, not intersected.
14560 Sun Oct 31 15:48:49 1999 Philippe De Muyter <phdm@macqel.be>
14562 * fixinc/fixtests.c, fixinc/fixfixes.c : Keep `#' in first column for
14564 * fixinc/fixincl.c (fcntl.h) : Do not include this file twice.
14565 (sys/mman.h): Include this file only if #HAVE_MMAP.
14566 (run_compiles): Initialize `esac_fmt' with one old KR string, not
14567 with automatically concatenated ANSI strings.
14569 Sun Oct 31 23:57:07 1999 Mark Mitchell <mark@codesourcery.com>
14571 * ggc-page.c (struct page_entry): Remove save_num_free_objects.
14572 (DIV_ROUND_UP): Robustify.
14573 (ggc_recalculate_in_use_p): New function.
14574 (release_pages): Don't inline it.
14575 (ggc_alloc_obj): Don't refuse to allocate objects on pages for
14577 (ggc_pop_context): Use ggc_recalculate_in_use_p.
14578 (clear_marks): Always save in_use_p.
14579 (sweep_pages): Use ggc_recalculate_in_use_p.
14580 (ggc_page_print_statistics): Avoid signed/unsigned comparisons.
14581 Release pages before counting statistics.
14583 Sun Oct 31 23:42:37 1999 Mark Mitchell <mark@codesourcery.com>
14585 * toplev.c (rest_of_compilation): Fix thinko in this change:
14587 Fri Oct 29 15:25:07 1999 Arnaud Charlet <charlet@ACT-Europe.FR>
14589 (rest_of_compilation): If inside an inlined external function,
14590 pretend we are just being declared.
14592 Sun Oct 31 23:03:25 1999 Jeffrey A Law (law@cygnus.com)
14594 * flow.c (calculate_global_regs_live): Fix thinko.
14596 * integrate.c (expand_inline_function): Fix bugs in previous
14597 change from Oct 28, 1999.
14599 Sun Oct 31 20:27:45 1999 Mark Mitchell <mark@codesourcery.com>
14601 * stmt.c (expand_value_return): Fix typo in this change:
14603 Thu Oct 28 18:06:50 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14604 (expand_value_return): Correctly convert VAL when promoting function
14605 return; support RETURN_REG being a PARALLEL.
14607 Sun Oct 31 20:25:42 1999 Mark P. Mitchell <mark@codesourcery.com>
14609 * expr.c (readonly_fields_p): Ignore everything except FIELD_DECLs.
14611 Sun Oct 31 20:42:17 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14613 * hard-reg-set.h (reg_names): Constify a char*.
14615 * regclass.c (reg_names): Likewise.
14617 * regs.h (reg_names): Likewise
14619 * a29k/a29k.c (reg_names): Delete declaration.
14621 * a29k/a29k.h (CONDITIONAL_REGISTER_USAGE): Constify a char*.
14623 * arc/arc.c (arc_save_restore, arc_output_function_prologue,
14624 arc_output_function_epilogue): Likewise.
14626 * elxsi/elxsi.c (reg_names): Likewise.
14628 * gmicro/gmicro.h (FUNCTION_PROLOGUE, FUNCTION_EPILOGUE): Likewise.
14630 * m32r/m32r.c (m32r_output_function_epilogue, emit_cond_move):
14633 * m88k/m88k.c (output_function_profiler): Likewise.
14635 * sparc/sparc.c (sparc_flat_output_function_prologue,
14636 sparc_flat_output_function_epilogue): Likewise.
14638 Sun Oct 31 13:32:15 CET 1999 Marc Lehmann <pcg@goof.com>
14640 * toplev.c (rest_of_compilation): Seperate the setjmp/vfork clobber
14641 warning from -Wuninitialized and put it under -W.
14642 * function.c (uninitialized_vars_warning): Warn only when the
14643 corresponding flag is set.
14645 Sun Oct 31 01:53:30 1999 Jeffrey A Law (law@cygnus.com)
14647 * cse.c (cse_insn): If an insn has only a single set, SRC_EQV
14648 is nonzero and the single set does not have an elt, then assign
14651 * simplify-rtx.c: New file.
14652 * Makefile.in (OBJS): Add simplify-rtx.o
14653 (simplify-rtx.o): Add dependencies.
14654 * rtl.h (simplify_gen_binary, simplify_rtx): Add prototypes.
14655 * cse.c: Use simplify_gen_binary intead of cse_gen_binary.
14656 (cse_gen_binary, simplify_unary_operation): Delete.
14657 (simplify_binary_operation, simplify_plus_minus): Likewise.
14658 (check_fold_consts, simplify_relation_operation): Likewise.
14659 (simplify_ternary_operation): Likewise.
14660 (delete_trivially_dead_insns): Simplify the contents of the
14661 REG_EQUAL note before trying to substitute it into the source
14662 of the reg-reg copy at the end of a libcall sequence.
14664 * combine.c (combine_simplify_rtx): Renamed from simplify_rtx. All
14665 references/callers changed.
14667 * mn10200.c (mn10200_va_arg): Force the return value into a
14670 * fr30.h (EXTRA_CC_NAMES): Remove obsolete macro.
14672 * cccp.c (macroexpand): Avoid out of range accesses for omitted
14675 Sat Oct 30 22:42:50 1999 Stephen L Moshier <moshier@mediaone.net>
14677 * c-lex.c (yylex): Accept 'f' in mantissa of hex float constant.
14679 Sat Oct 30 22:19:26 1999 Jeffrey A Law (law@cygnus.com)
14681 * fold-const.c (fold): Fix thinko when optimizing comparisons
14684 Sat Oct 30 21:32:17 1999 David Starner <dstarner98@aasaa.ofe.org>
14686 * gcc.texi (Passes): Update front-end files to their current
14689 Sat Oct 30 14:41:40 1999 Richard Henderson <rth@cygnus.com>
14691 * alpha.h (SECONDARY_INPUT_RELOAD_CLASS): Call secondary_reload_class.
14692 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
14693 (PREDICATE_CODES): Add addition_operation.
14694 * alpha-protos.h (addition_operation): Declare.
14695 (secondary_reload_class): Likewise.
14696 * alpha.c (addition_operation): New.
14697 (secondary_reload_class): New, from old SECONDARY_INPUT_RELOAD_CLASS.
14698 * alpha.md (adddi3): Turn into expander.
14699 (*lda, *adddi_2): New.
14700 (movsf, movdf patterns): Don't preference integer regs.
14701 (movsi, movdi patterns): Don't preference fp regs.
14703 Sat Oct 30 14:38:22 1999 Richard Henderson <rth@cygnus.com>
14705 * genrecog.c (write_switch): Check for duplicate CODE cases.
14707 Sat Oct 30 14:31:48 1999 Richard Henderson <rth@cygnus.com>
14709 * ggc-common.c: Update pre-function commentary.
14710 * ggc-page.c: Likewise.
14712 (poison_pages): Use memset directly.
14713 (ggc_alloc_obj): Likewise. Use a different pattern than poison_pages.
14714 (ggc_collect): Poison before sweeping.
14715 * ggc-simple.c: Update pre-function commentary.
14716 (ggc_alloc_obj): Poison non-zeroed memory.
14718 Sat Oct 30 14:28:52 1999 Mark Mitchell <mark@codesourcery.com>
14720 * ggc-common.c (ggc_print_statistics): Make arguments to fprintf
14721 match format string, even on 64-bit hosts.
14722 * gcc-page.c (ggc_page_print_statistics): Likewise.
14724 Sat Oct 30 14:38:04 1999 Catherine Moore <clm@cygnus.com>
14726 * config/i386/i386.c (ix86_cpu): Revert last patch.
14727 * config/i386/i386.h (ix86_cpu): Ditto.
14729 Fri Oct 29 17:00:42 1999 Jim Wilson <wilson@cygnus.com>
14731 * stor-layout.c (layout_type): When compute TYPE_SIZE_UNIT from
14732 TYPE_SIZE, convert type of result to sizetype.
14734 Fri Oct 29 14:34:17 1999 Richard Henderson <rth@cygnus.com>
14736 * flow.c (count_or_remove_death_notes): Equate NULL with the
14739 * jump.c, reg-stack.c, toplev.c: Revert Oct 27 change.
14740 * toplev.c (rest_of_compilation): Rebuild CFG immediately before
14743 * i386.c (pic_label_no): Delete.
14744 (ix86_attr_length_default): Don't use single_set to peek
14747 * recog.c (peephole2_optimize): Allow recog_next_insn to index
14748 the first insn after bb->end.
14749 * i386.md (push mem peeps): Scratch is live after evaluation
14751 (cmp mem peep): Similarly.
14753 Fri Oct 29 11:50:11 1999 Catherine Moore <clm@cygnus.com>
14755 * calls.c (emit_library_call_value): Fix declaration of alignment_pad.
14756 * function.c (pad_to_arg_alignment): Add missing braces.
14758 Fri Oct 29 13:53:48 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14760 * alpha/alpha-protos.h (literal_section): Add prototype.
14761 (alpha_need_linkage, alpha_start_function,alpha_end_function):
14764 * alpha/alpha.c (alpha_ra_ever_killed, set_frame_related_p): Add
14766 (alpha_start_function, alpha_end_function, float_strings,
14767 alpha_need_linkage): Constify a char*
14769 * alpha/alpha.h (ASM_OUTPUT_ASCII, ASM_OUTPUT_MI_THUNK): Likewise.
14771 * alpha/alpha32.h (ASM_OUTPUT_MI_THUNK): Likewise.
14773 * alpha/elf.h (ASM_FINISH_DECLARE_OBJECT): Likewise.
14775 * alpha/vms.h (ASM_OUTPUT_SECTION_NAME): Likewise.
14777 Fri Oct 29 13:49:39 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14779 * flow.c (debug_flow_info): Add prototype.
14781 * gcc.c (main): Likewise.
14783 * gcse.c (expr_reaches_here_p_work, pre_expr_reaches_here_p_work):
14786 * reload1.c (failed_reload, set_reload_reg): Likewise.
14788 * mips-tfile.c (main): Likewise.
14789 (pfatal_with_name, fancy_abort, botch, fatal, catch_signal): Mark
14790 with ATTRIBUTE_NORETURN.
14792 Fri Oct 29 18:16:03 1999 Andrew Haley <aph@cygnus.com>
14794 * config/i386/i386.h (ENCODE_SECTION_INFO): Don't do anything if
14795 DECL is not a memory ref.
14797 Fri Oct 29 09:05:34 1999 Catherine Moore <clm@cygnus.com>
14799 * config/i386/i386.h (ix86_cpu): Remove extern attribute.
14800 * config/i386/i386.c (ix86_cpu): Add extern attribute.
14802 Fri Oct 29 16:30:04 1999 Andrew Haley <aph@cygnus.com>
14804 * config/mips/elf.h: remove NAME__MAIN and SYMBOL__MAIN.
14805 * config/mips/elf64.h: ditto.
14807 Fri Oct 29 08:03:57 1999 Catherine Moore <clm@cygnus.com>
14809 * expr.c (emit_push_insn): New argument alignment_pad.
14810 Update all callers. Adjust stack pointer based on alignment pad.
14811 * function.c (pad_to_arg_alignment): New argument alignment_pad.
14812 Update all callers. Track alignment_pad if boundary > PARM_BOUNDARY.
14813 (locate_and_pad_parm): New argument alignment_pad. Update all
14815 * expr.h (emit_push_insn): Update prototype.
14816 (locate_and_pad_parm): Update prototype.
14817 * calls.c (arg_data): Add new field alignment_pad.
14818 (initialize_argument_information): Initialize alignment_pad.
14820 Fri Oct 29 02:51:35 1999 Mark Mitchell <mark@codesourcery.com>
14822 * except.c (free_eh_nesting_info): Free the info itself.
14823 * function.c (free_after_compilation): Don't free NULL.
14824 * gcse.c (alloc_pre_mem): Free the temp_bitmap, too.
14825 (pre_edge_insert): Free inserted.
14826 * stmt.c (free_stmt_status): Don't free NULL.
14828 Fri Oct 29 15:25:07 1999 Arnaud Charlet <charlet@ACT-Europe.FR>
14830 * gcov.c (DIR_SEPARATOR): Provide default.
14831 (output_data): Add test for MS-DOS format absolute filename.
14832 (fancy_abort): Correct program name.
14833 (open_files): Open all files in binary mode.
14834 * libgcc2.c (__bb_exit_func): Likewise.
14836 * profile.c (init_branch_prob): Specify binary when opening files.
14838 * flags.h (flag_unwind_tables): New decl.
14839 * toplev.c (flag_unwind_table): New definition.
14840 (f_options): Add -funwind-tables.
14841 (decode_g_option): Clarify warning when unknown -g option is given.
14842 (rest_of_compilation): If inside an inlined external function,
14843 pretend we are just being declared.
14845 * dwarf2out.c (dwarf2out_do_frame): Check -funwind_tables.
14846 (dwarf2out_frame_finish): Likewise.
14848 Fri Oct 29 07:44:26 1999 Vasco Pedro <vp@di.fct.unl.pt>
14850 * fold-const.c (merge_ranges): If not in0, but in1, handle
14851 upper bounds equal like subset case.
14853 Thu Oct 28 19:22:24 1999 Douglas Rupp <rupp@gnat.com>
14855 * dbxout.c (dbxout_parms): Generate a second stabs line for parameters
14856 passed in a register but moved to the stack.
14858 Thu Oct 28 19:12:57 1999 Sam Tardieu <tardieu@act-europe.fr>
14860 * gcc.c (pass_exit_codes, greatest_status): New variables.
14861 (struct option_map): Add entry for "--pass-exit-codes".
14862 (execute): Update greatest_status if error.
14863 (display_help): Add documentation for -pass-exit-codes.
14864 (process_command): Handle -pass-exit-codes.
14865 (main): Look at pass_exit_codes and greatest_status on call to exit.
14867 Thu Oct 28 18:06:50 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14869 * reload.c (find_reloads): Refine test for no input reload
14870 case to not includes reloads emitted after insn.
14872 * function.c (find_temp_slots_from_address): Handle sum involving
14873 a register that points to a temp slot.
14874 (update_temp_slot_address): Make recursive call if both old and
14875 new are PLUS with a common operand.
14876 * calls.c (expand_call): Mark temp slot for result as having
14879 * rtlanal.c (reg_referenced_p, case IF_THEN_ELSE): New case.
14881 * gcc.c (process_command): Add standard_exec_prefix with "GCC"
14882 component as well as "BINUTILS".
14884 * integrate.h (copy_rtx_and_substitute): New arg, FOR_LHS.
14885 * integrate.c (copy_rtx_and_substitute): Likewise.
14886 (expand_inline_function, integrate_parm_decls, integrate_decl_tree):
14887 All callers changed.
14888 * unroll.c (inital_reg_note_copy, copy_loop_body): Likewise.
14890 * dbxout.c (dbxout_type, case INTEGER_TYPE_NODE): If can use
14891 gdb extensions, write size of type; also be more consistent
14892 in using references when this is a subtype.
14894 * pa.md (extv, extzv, insv): Use define_expand to reject constant
14895 that is out of range.
14897 * loop.c (unknown_constant_address_altered): New variable.
14898 (prescan_loop): Initialize it.
14899 (note_addr_stored): Set it for RTX_UNCHANGING_P MEM.
14900 (invariant_p, case MEM): Remove handling for volatile and readonly;
14901 check new variable if readonly.
14902 (check_dbra_loop): Chdeck unknown_constant_address_altered.
14904 * cse.c (canon_hash, case MEM): Do not record if BLKmode.
14905 (addr_affects_sp_p): Removed from note_mem_written and only
14906 define #ifdef AUTO_INC_DEC.
14908 * alpha.c (input_operand, case ADDRESSOF): Treat as REG.
14910 * regclass.c (record_reg_classes): Properly handle register move
14913 * varasm.c (initializer_constant_valid_p, case MINUS_EXPR):
14914 Don't think valid if both operands are invalid.
14915 (struct constant_descriptor): New field RTL.
14916 (mark_const_hash_entry): Mark it.
14917 (record_constant{,_rtx}): Initialize it.
14918 (output_constant_def): Allocate RTL in permanent obstack and
14920 ({record,compare}_constant_1): Modes must match for
14921 CONSTRUCTOR of ARRAY_TYPE.
14923 * c-common.h (initializer_constant_valid_p): Delete decl from here.
14924 * output.h (initializer_constant_valid_p): Move decl to here.
14925 * c-common.c (initializer_constant_valid_p): Delete function from here.
14926 * varasm.c (initializer_constant_valid_p): Move function to here.
14928 * tree.h (STRIP_SIGN_NOPS): New macro.
14929 * fold-const.c (optimize_minmax_comparison): New function.
14930 (invert_truthvalue, case WITH_RECORD_EXPR): New case.
14931 (fold): Use STRIP_SIGN_NOPS instead of STRIP_TYPE_NOPS.
14932 (fold, case EQ_EXPR): Call optimize_minmax_comparison and add
14933 cases with ABS_EXPR, NEGATE_EXPR, PLUS_EXPR, MINUS_EXPR, and
14934 widening conversions.
14935 (fold, case LE_EXPR): Rework changing unsigned to signed comparisons
14936 to look at size of mode, not precision of type; also add missing cases.
14937 (optimize_bit_field_compare, decode_field_reference): Don't try to
14938 optimize COMPONENT_REF of a PLACEHOLDER_EXPR.
14940 * dwarf2out.c (ctype.h): Include.
14941 (dwarf2out_set_demangle_name_func): New function.
14942 (size_of_line_info): Deleted.
14943 (output_line_info): Compute size of line info table from difference
14945 (base_type_die, add_name_attribute): Call demangle function, if any.
14946 (field_byte_offset): Use bits per word for variable length fields.
14947 (gen_array_type_die): Add array name.
14948 (gen_subprogram_die): Ignore DECL_INLINE if -fno-inline.
14949 (dwarf2out_add_library_unit_info): New function.
14951 * explow.c (set_stack_check_libfunc): New function.
14952 (stack_check_libfunc): New static variable.
14953 (probe_stack_range): Allow front-end to set up a libfunc to call.
14955 * combine.c (simplify_comparison): When making comparison in wider
14956 mode, check for having commuted an AND and a SUBREG.
14957 (contains_muldiv): New function.
14958 (try_combine): Call it when dividing a PARALLEL.
14959 (simplify_rtx, case TRUNCATE): Don't remove for umulsi3_highpart.
14960 (simplify_comparison, case ASHIFTRT): Recognize sign-extension of
14962 (record_value_for_reg): If TEM is a binary operation with two CLOBBERs,
14963 use one of the CLOBBERs instead.
14964 (if_then_else_cond): If comparing against zero, just return thing
14967 * optabs.c (expand_abs): If machine has MAX, ABS (x) is MAX (x, -x).
14968 Don't generate shifts and subtract if have conditional arithmetic.
14970 * rtl.h (delete_barrier): New declaration.
14971 * jump.c (jump_optimize): Set up to handle conditional call.
14972 In conditional arithmetic case, handle CALL_INSN followed by a BARRIER.
14973 (delete_barrier): New function.
14975 * rtl.c (read_rtx): Call fatal if bad RTL code; check for bad mode.
14977 * recog.c (nonmemory_operand): Accept ADDRESSOF.
14979 * tree.c (build_type_attribute_variant): Push to obstack of
14980 ttype around type_hash_canon call.
14982 * expr.c (placeholder_list): Move decl to file scope.
14983 (expand_expr): Don't force access to volatile just because its
14985 If ignoring reference operations, just expand the operands.
14986 (expand_expr, case COMPONENT_REF): Propagate
14987 EXPAND_CONST_ADDRESS to recursive call when expanding inner.
14988 Refine test for using bitfield operations vs pointer punning.
14989 (expand_expr, case CONVERT_EXPR): If converting to
14990 BLKmode UNION_TYPE from BLKmode, just return inner object.
14991 Use proper mode in store_field call.
14992 Properly set sizes of object to store and total size in store_field
14993 call for convert to union.
14994 (expand_expr, case ARRAY_REF): If OP0 is in a register, put it in
14995 memory (like for ADDR_EXPR). Also, don't put constant in register if
14996 we'll want it in memory.
14997 (readonly_fields_p): New function.
14998 (expand_expr, case INDIRECT_REF): Call it if LHS.
14999 (expand_assignment): Handle a RESULT_DECL where
15000 DECL_RTL is a PARALLEL.
15001 (do_jump, case WITH_RECORD_EXPR): New case.
15002 (get_inner_reference): Always go inside a CONVERT_EXPR
15003 and NOP_EXPR if both modes are the same.
15004 (store_field): Use bitfield operations if size of bitsize is not same
15005 as size of RHS's type.
15006 Check for bitpos not a multiple of alignment in BLKmode case.
15007 Do block move in largest possible alignment.
15008 (store_constructor): Set BITSIZE to -1 for variable size and properly
15009 in case of array of BLKmode.
15010 (expand_expr_unaligned): New function.
15011 (do_compare_and_jump): Call it.
15013 * mips/iris5.h (SWITCHES_NEED_SPACES): New macro.
15014 * collect2.c (main): Only allow -ofoo if SWITCHES_NEED_SPACES
15015 does not include 'o'.
15017 * function.c (instantiate_virtual_regs_1, case SET): Handle case where
15018 both SET_DEST and SET_SRC reference a virtual register.
15019 (gen_mem_addressof): Copy RTX_UNCHANGING_P from new REG to old REG.
15021 * integrate.c (expand_inline_function): Handle case of setting
15022 virtual stack vars register (from built in setjmp); when parameter
15023 lives in memory, expand virtual_{stack_vars,incoming_args}_rtx early.
15024 (subst_constant): Add new parm, MEMONLY.
15025 (expand_inline_function, integrate_parm_decls): Pass new parm.
15026 (integrate_decl_tree): Likewise.
15027 (copy_rtx_and_substitute, case MEM): Do copy RTX_UNCHANGING_P.
15028 (try_constants): Call subst_constants twice, with MEMONLY 0 and 1.
15029 (copy_rtx_and_substitute, case SET): Add explicit calls to
15030 copy_rtx_and_substitute for both sides.
15032 * stmt.c (expand_asm_operands): Don't use TREE_STRING_LENGTH for
15034 (pushcase{,_range}): Convert to NOMINAL_TYPE after checking for
15035 within INDEX_TYPE, instead of before.
15036 (fixup_gotos): Use f->target_rtl, not the next insn,
15037 since latter may be from a later fixup.
15038 (expand_value_return): Correctly convert VAL when promoting function
15039 return; support RETURN_REG being a PARALLEL.
15040 (expand_return): When checking for result in regs and having
15041 cleanup, consider PARALLEL in DECL_RTL as being in regs.
15043 1999-10-28 21:27 -0700 Zack Weinberg <zack@bitmover.com>
15045 * cpplib.h (struct cpp_buffer: fname, nominal_fname,
15046 last_nominal_fname): Mark const.
15047 (struct include_hash: name, nshort, control_macro): Mark
15049 (struct macrodef: symnam): Mark const.
15050 (struct if_stack: fname): Mark const.
15051 (is_idchar, is_idstart, is_hor_space, trigraph_table): Delete.
15052 (IStable): New character-syntax array which encompasses all
15053 the old is_foo arrays.
15054 (is_idchar, is_numchar, is_idstart, is_numstart, is_hspace,
15055 is_space): New macros for interrogating IStable.
15056 (check_macro_name): Kill last argument. All callers changed.
15058 * cppinit.c (initialize_char_syntax): Delete.
15059 (is_idchar, is_idstart, is_hor_space, is_space,
15060 trigraph_table): Delete.
15061 (IStable): New. Initialize with clever macros to avoid
15062 information duplication.
15063 (builtin_array): Table of builtins to get rid of explicit list
15064 in initialize_builtins.
15065 (initialize_builtins): Use builtins_array.
15066 (cpp_start_read): Call init_IStable, and set IStable['$'] if
15067 opts->dollars_in_ident.
15069 * cppexp.c: Change all refs to is_xyz[] arrays to use new
15071 (cpp_parse_expr): Avoid 'format string is not constant'
15072 warning. Use ISGRAPH to identify printable chars.
15073 * cppfiles.c: Change all refs to is_xyz[] arrays to use new
15075 (read_and_prescan): Map trigraphs to chars with open-coded
15076 if-else-if-... sequence, not a lookup table.
15077 * cpphash.c: Change all refs to is_xyz[] arrays to use new
15079 * cpplib.c: Change all refs to is_xyz[] arrays to use new
15080 is_xyz() macros. Kill SKIP_ALL_WHITE_SPACE (unused).
15081 (check_macro_name): Remove ability to report an invalid
15082 assertion name, which is never used.
15083 (do_line): Constify a couple of char *'s.
15084 * cppmain.c (main): Call cpp_cleanup before returning.
15086 Thu Oct 28 21:16:35 1999 Mark Mitchell <mark@codesourcery.com>
15088 * ggc.h (struct ggc_statistics): New type.
15089 (ggc_get_size): New function.
15090 (ggc_print_statistics): Likewise.
15091 * ggc-common.c (ggc_stats): New variable.
15092 (ggc_mark_rtx_children): Keep statistics.
15093 (ggc_mark_tree_children): Likewise.
15094 (ggc_print_statistics): New function.
15095 * ggc-page.c (struct globals): Add bytes_mapped field.
15096 (alloc_anon): Update it.
15097 (release_pages): Likewise.
15098 (ggc_get_size): New function.
15099 (ggc_page_print_statistics): New function.
15100 * ggc-simple.c (ggc_get_size): New function.
15102 Fri Oct 29 06:32:44 1999 Geoffrey Keating <geoffk@cygnus.com>
15104 * flow.c (propagate_block): When the last reference to a label
15105 before an ADDR_VEC is deleted because the reference is a dead
15106 store, delete the ADDR_VEC.
15108 Thu Oct 28 12:28:50 1999 Richard Henderson <rth@cygnus.com>
15110 * resource.c (find_free_register): Don't use the frame pointer
15111 if frame_pointer_needed.
15113 Thu Oct 28 10:02:00 1999 Jim Wilson <wilson@cygnus.com>
15115 * config/mips/mips.c (mips_va_arg): Delete gen_jump as emit_jump arg.
15116 (function_arg_pass_by_reference): Check for a NULL pointer in cum.
15118 * config/i960/i960.c (i960_va_start): New locals base, num.
15119 Use INDIRECT_REF instead of ARRAY_REF on valist.
15120 (i960_va_arg): Use INDIRECT_REF instead of ARRAY_REF on valist.
15122 Thu Oct 28 09:45:48 1999 Mark Mitchell <mark@codesourcery.com>
15124 * gcse.c (delete_null_pointer_checks): Fix typo in previous change.
15126 Thu Oct 28 03:37:50 1999 Peter Gerwinski <peter@gerwinski.de>
15128 * tree.def (PLACEHOLDER_EXPR): Update comments.
15130 Thu Oct 28 06:47:32 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15132 * c-common.c (check_format_info): Avoid non-literal format string
15133 warnings when `first_arg_num' is zero.
15135 Thu Oct 28 12:28:48 1999 Bernd Schmidt <bernds@cygnus.co.uk>
15137 * rtl.texi: Delete explicit Prev, Up and Next entries in "@node"s.
15139 Thu Oct 28 11:05:13 1999 Richard Earnshaw <rearnsha@arm.com>
15141 * arm.md (casesi_insn): Add a clobber of the condition code
15144 Mon Oct 18 21:16:06 1999 Fred Fish <fnf@be.com>
15146 * tm.texi (CC1PLUS_SPEC): Make it clear in the docs that CC1_SPEC is
15147 used by both cc1 and cc1plus.
15149 Thu Oct 28 10:00:48 1999 Nick Clifton <nickc@cygnus.com>
15151 * config/arm/arm.c: Initialise arm_structure_size_boundary to
15152 DEFAULT_STRUCTURE_SIZE_BOUNDARY.
15153 * config/arm/arm.h (DEFAULT_STRUCTURE_SIZE_BOUNDARY): Define
15154 to the value 32 if it has not already been defined.
15155 * config/arm/netbsd.h (DEFAULT_STRUCTURE_SIZE_BOUNDARY):
15156 Override definition in arm.h with a value of 8.
15158 Thu Oct 28 03:12:02 1999 David Starner <dstarner98@aasaa.ofe.org>
15160 * c-pragma.c (push_alignment): Don't check the return value
15163 Thu Oct 28 03:08:38 1999 Matteo Frigo <athena@fftw.org>
15165 * sparc.h (ADJUST_COST): Fix thinko.
15167 Thu Oct 28 02:44:03 1999 Glen Nakamura <glen.nakamura@usa.net>
15169 * cccp.c (rescan): Fixed obp pointer handling around call to
15170 check_expand subroutine.
15172 Thu Oct 28 02:15:22 1999 Jeffrey A Law (law@cygnus.com)
15174 * gcse.c (delete_null_pointer_checks): Only record non-null info
15175 for pseudos when examining stores.
15177 * arm.md (adddi3, adddi_sesidi_di, adddi_sesidi_di): Add
15178 splitters for these patterns. Use "#" for output templates.
15179 (addsi3_carryin_shift): New pattern.
15181 Thu Oct 28 10:20:02 1999 Geoffrey Keating <geoffk@cygnus.com>
15183 * config/rs6000/rs6000.md (movsf): Don't convert a SUBREG
15184 of the function return register into a plain REG until
15185 after function inlining is done.
15187 Wed Oct 27 15:21:46 1999 Richard Henderson <rth@cygnus.com>
15189 * jump.c (jump_optimize_1): If we did cross-jumping, and
15190 the data will matter, rebuild the CFG.
15191 * reg-stack.c (reg_to_stack): Only (re)build the CFG if
15192 not optimizing. Don't run shorten_branches.
15193 * toplev.c (rest_of_compilation): Run shorten_branches after
15196 Wed Oct 27 12:33:40 1999 Mark Mitchell <mark@codesourcery.com>
15198 * rtl.h (note_stores): Add additional paramter.
15199 * rtlanal.c (reg_set_p_1): Take additional paramter.
15200 (reg_set_last_1): Likewise.
15201 (reg_set_p): Adjust call to note_stores.
15202 (reg_set_last): Likewise.
15203 (note_stores): Pass data parameter to worker function.
15204 * alias.c (record_set): Take additional parameter.
15205 (init_alias_analysis): Pass it.
15206 * caller-save.c (mark_set_regs): Take additional parameter.
15207 (save_call_clobbered_regs): Pass NULL to note_stores.
15208 * combine.c (set_nonzero_bits_and_sign_copies): Take additional
15210 (record_dead_and_set_regs_1): Likewise.
15211 (reg_dead_at_p_1): Likewise.
15212 (combine_instructions): Adjust calls to note_stores.
15213 (try_combine): Likewise.
15214 (record_dead_insn): Remove.
15215 (record_dead_and_set_regs): Adjust calls to note_stores.
15216 (reg_dead_at_p): Likewise.
15217 * cse.c (invalidate_skipped_set): Take additional parameter.
15218 (cse_check_loop_start): Likewise.
15219 (cse_check_loop_start_value): Remove.
15220 (cse_set_around_loop): Adjust calls to note_stores.
15221 * flow.c (notice_stack_pointer_modification): Take additional
15222 parameter. Remove duplicate declaration.
15223 (record_volatile_insns): Adjust calls to note_stores.
15224 * gcse.c (record_set_info): Take additional parameter.
15225 (record_last_set_info): Likewise.
15226 (invalidate_nonnull_info): Likewise.
15227 (record_set_insn): Remove.
15228 (compute_sets): Adjust calls to note_stores.
15229 (last_set_insn): Remove.
15230 (compute_hash_table): Adjust calls to note_stores.
15231 (insert_insn_end_bb): Likewise.
15232 (delete_null_pointer_checks): Likewise.
15233 * global.c (mark_reg_store): Take additional parameter.
15234 (mark_reg_clobber): Likewise.
15235 (reg_becomes_live): Likewise.
15236 (global_conflicts): Adjust calls to note_stores.
15237 (build_insn_chain): Likewise.
15238 * integrate.c (note_modified_parmregs): Take additional parameter.
15239 (mark_stores): Likewise. Make it static.
15240 (save_for_inline_nocopy): Adjust calls to note_stores.
15241 (try_constants): Likewise.
15242 * integrate.h (mark_stores): Remove declaration.
15243 * jump.c (mark_modified_reg): Take additional parameter.
15244 (thread_jumps): Adjust calls to note_stores.
15245 * local-alloc.c (validate_equiv_mem_from_store): Take additional
15247 (no_equiv): Likewise.
15248 (reg_is_set): Likewise.
15249 (validate_equiv_mem): Adjust calls to note_stores.
15250 (update_equiv_regs): Likewise.
15251 (block_alloc): Likewise.
15252 * loop.c (note_set_pseudo_multiple_uses_retval): Remove.
15253 (note_addr_stored): Take additional parameter.
15254 (note_set_pseudo_multiple_uses): Likewise.
15255 (record_initial): Likewise.
15256 (prescan_loop): Adjust calls to note_stores.
15257 (strength_reduce): Likewise.
15258 (check_dbra_loop): Likewise.
15259 * regmove.c (flags_set_1): Take additional paramter.
15260 (mark_flags_life_zones): Adjust calls to note_stores.
15261 * reload1.c (mark_not_eliminable): Take additional parameter.
15262 (forget_old_reloads_1): Likewise.
15263 (reload_cse_invalidate_rtx): Likewise.
15264 (reload_cse_check_clobber): Likewise.
15265 (reload_combine_note_store): Likewise.
15266 (move2add_note_store): Likewise.
15267 (reload): Adjust calls to note_stores.
15268 (reload_as_needed): Likewise.
15269 (emit_reload_insns): Likewise.
15270 (reload_cse_regs_1): Likewise.
15271 (reload_cse_record_set): Adjust calls to reload_cse_invalidate_rtx.
15272 (reload_combine): Adjust calls to note_stores.
15273 * resource.c (update_live_status): Take additional paramter.
15274 (mark_target_live_regs): Adjust calls to note_stores.
15275 * stupid.c (find_clobbered_regs): Take additional parameter.
15276 (stupid_life_analysis): Adjust calls to note_stores.
15278 Wed Oct 27 19:26:12 1999 Nick Clifton <nickc@cygnus.com>
15280 * config/arm/coff.h (STRUCTURE_SIZE_BOUNDARY): Delete
15283 * config/arm/elf.h (STRUCTURE_SIZE_BOUNDARY): Delete
15286 * config/arm/arm.h (STRUCTURE_SIZE_BOUNDARY): Define in terms
15287 of the variable arm_structure_size_boundary.
15289 Wed Oct 27 02:05:58 1999 Mark P. Mitchell <mark@codesourcery.com>
15291 * alias.c (init_alias_analysis): Allocate reg_known_value and
15292 reg_known_equiv_p on the heap. Likewise for new_reg_base_value
15294 (end_alias_analysis): Free reg_known_value and reg_known_equiv_p.
15295 * cse.c (cse_main): Call end_alias_analysis.
15296 * haifa-sched.c (schedule_insns): Likewise.
15297 * local-alloc. (update_equiv_regs): Likewise.
15298 * reload1.c (reload_cse_regs): Likewise.
15300 Wed Oct 27 01:49:17 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
15302 * sparc/sparc.c (sparc_override_options): Clear MASK_FPU_SET.
15303 * sparc/sparc.h (TARGET_SWITCHES): Add "fpu" entry for reverse
15304 mapping from MASK_FPU.
15306 Wed Oct 27 01:42:26 1999 Scott Christley <scottc@net-community.com>
15308 * sparc.md (call): Don't bound structure return size to 0xfff.
15310 Wed Oct 27 00:56:59 1999 Richard Henderson <rth@cygnus.com>
15312 * resource.c (mark_target_live_regs): Check that the target
15313 insn wasn't created after compute_bb_for_insn.
15315 Tue Oct 26 23:15:03 1999 Mark Mitchell <mark@codesourcery.com>
15317 * ggc-page.c (poison_pages): Don't be overzealous.
15319 Tue Oct 26 23:29:18 1999 Jeffrey A Law (law@cygnus.com)
15321 * alias.c: Update comments for ADDRESS.
15322 (nonlocal_reference_p): Look inside the ADDRESS to determine if
15323 it is a local memory reference.
15325 * c-typeck.c (build_function_call): Check that the built-in
15326 function is of class BUILT_IN_NORMAL before trying to recongize
15327 it as BUILT_IN_ABS.
15328 * calls.c (calls_function_1): Similarly for BUILT_IN_ALLOCA.
15329 * stmt.c (expand_end_cae): Similarly for BUILT_IN_CLASSIFY_TYPE.
15331 Wed Oct 27 00:14:13 1999 Robert Lipe <robertlipe@usa.net>
15333 * gcse.c (expr_reaches_here_p): Use xcalloc and explit free instead
15335 (pre_gcse): Likewise.
15336 (hoist_expr_reaches_here_p): Likewise.
15337 (hoist_code): Likewise.
15338 (pre_expr_reaches_here_p): Replace alloca with xcalloc. Move core
15340 (pre_expr_reaches_here_p_work): ... here.
15341 (expr_reaches_here_p): Replace alloca with xcalloc. Move core
15343 (expr_reaches_here_p_work): ... here.
15345 Tue Oct 26 20:42:45 1999 Richard Henderson <rth@cygnus.com>
15347 * resource.c (find_basic_block): Delete.
15348 (mark_target_live_regs, incr_ticks_for_insn): Use BLOCK_NUM instead.
15349 (init_resource_info): Call compute_bb_for_insn.
15351 Tue Oct 26 20:21:02 1999 Richard Henderson <rth@cygnus.com>
15353 * flow.c (merge_blocks_move_predecessor_nojumps): Cope
15354 with already adjacent blocks, but no fallthru.
15355 (merge_blocks_move_successor_nojumps): Simplify.
15356 (debug_flow_info): New.
15358 * toplev.c (rest_of_compilation): Open jump1 dump file before
15359 jump and close after, as opposed to just using dump_rtl.
15361 Wed Oct 27 03:09:23 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
15363 * reload.h (earlyclobber_operand_p): Declare.
15364 * reload.c (earlyclobber_operand_p): Don't declare. No longer static.
15365 * reload1.c (reload_reg_free_for_value_p): RELOAD_OTHER reloads with
15366 an earlyclobbered output conflict with RELOAD_INPUT reloads - handle
15367 case where the RELOAD_OTHER reload is new. Use earlyclobber_operand_p.
15369 Tue Oct 26 18:23:38 1999 Jan Hubicka <hubicka@freesoft.cz>
15370 Richard Henderson <rth@cygnus.com>
15372 * emit-rtl.c (emit_block_insn_before): New.
15373 (emit_block_insn_after): New.
15374 * basic-block.h: Declare them.
15376 * bitmap.h: Protect from multiple inclusion.
15378 * recog.c (scratch_operand): Handle VOIDmode correctly.
15380 * rtl.h (JUMP_CROSS_JUMP_DEATH_MATTERS): New.
15382 * builtins.c (expand_builtin_apply_args_1): Remove STACK_REGS hack.
15383 * function.c (assign_parms): Likewise.
15384 * global.c (global_conflicts): Clarify STACK_REGS commentary.
15386 * reg-stack.c (max_uid): Remove.
15387 (blocks, block_begin, block_end, block_drops_in): Remove.
15388 (block_stack_in, block_out_reg_set, block_number): Remove.
15389 (struct block_info_def, BLOCK_INFO): New.
15390 (enum emit_where): New.
15391 (current_block): New.
15392 (BLOCK_NUM): Remove.
15393 (mark_regs_pat, record_label_references): Remove.
15394 (record_reg_life_pat, record_reg_life, find_blocks): Remove.
15396 (goto_block_pat, print_blocks, dump_stack_info): Remove.
15397 (reg_to_stack): Simplified test for existance of fp code. Use
15398 flow.c code. Call shorten_branches after cross-jump opt.
15399 (check_asm_stack_operands): Renamed from record_asm_reg_life.
15400 Return false if the asm doesn't use stack regs. Don't do life
15401 analysis on the asm.
15402 (emit_pop_insn): Replace function pointer arg `when' with
15403 enum `where'. Update all callers.
15404 (change_stack): Likewise. Update basic block end.
15405 (emit_swap_insn): Use current_block->head to limit reverse search
15406 for start of block. Use emit_block_insn_after.
15407 (subst_stack_regs_pat): Handle USE and CLOBBER patterns.
15408 (subst_asm_stack_regs): Use check_asm_stack_operands. Use direct
15409 structure assignment instead of bcopy.
15410 (print_stack): New.
15411 (convert_regs_entry, convert_regs_exit): New.
15412 (convert_regs_1, convert_regs_2): Split out from convert_regs.
15413 Work on basic blocks and the CFG.
15414 (convert_regs): Use them.
15416 * i386.c (output_fix_trunc): Remove code for DImode input operand
15417 not at top-of-stack.
15418 * i386.c (fix_truncdfdi2, fix_truncsfdi2): Use scratch with
15420 (fix_truncdi_1): Allow any mode scratch.
15422 Tue Oct 26 13:30:35 1999 Richard Henderson <rth@cygnus.com>
15424 * alpha.h (TARGET_MEM_FUNCTIONS): Define here.
15425 * linux.h, netbsd.h, vms.h: Not here.
15427 1999-10-26 Gavin Romig-Koch <gavin@cygnus.com>
15429 * config/mips/mips.h (ISA_HAS_64BIT_REGS,ISA_HAS_BRANCHLIKELY,
15430 ISA_HAS_FP4,ISA_HAS_CONDMOVE): New.
15431 (GENERATE_BRANCHLIKELY,HAVE_SQRT_P,
15432 CONDITIONAL_REGISTER_USEAGE): Use them.
15433 * config/mips/mips.c (mips_move_1word,mips_move_2words,
15434 gen_conditional_branch,override_options) : Use them.
15435 * config/mips/mips.md : Use them.
15437 Tue Oct 26 13:09:23 1999 Richard Henderson <rth@cygnus.com>
15439 * i386.md (zero_extendqihi2): Use SImode register name with andl.
15441 Tue Oct 26 12:35:38 1999 Richard Henderson <rth@cygnus.com>
15443 * integrate.c (function_cannot_inline_p): Don't allow inlining
15446 Tue Oct 26 14:10:23 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15448 * c-parse.in (cast_expr): Constify.
15450 * cccp.c (special_symbol): Likewise.
15452 * cse.c (hash_cse_reg_info, cse_reg_info_equal_p): Likewise.
15454 * dwarf2out.c (base_type_die): Likewise.
15456 * global.c (allocno_compare): Likewise.
15458 * local-alloc.c (qty_compare_1, qty_sugg_compare_1): Likewise.
15460 * regclass.c (fix_register): Likewise.
15462 * rtl.h (fix_register): Likewise.
15464 * stupid.c (stupid_reg_compare): Likewise.
15466 * toplev.c (decode_f_option): Likewise.
15468 * tree.c (build_complex_type): Likewise.
15470 Tue Oct 26 18:35:25 1999 Richard Earnshaw <rearnsha@arm.com>
15472 * output.h: Don't unnecessarily conditionalize prototypes on TREE_CODE.
15474 Tue Oct 26 15:42:56 1999 Bernd Schmidt <bernds@cygnus.co.uk>
15476 * reload.c (find_reloads): Compute mode and nregs fields of all
15478 * reload1.c (calculate_needs_all_insns): Simplify a bit.
15479 (calculate_needs): Use precomputed mode/nregs values.
15480 (allocate_reload_reg): Likewise.
15482 (failed_reload, set_reload_reg): ... new functions.
15483 (choose_reload_regs_init): New function, mostly broken out from...
15484 (choose_reload_regs): ... here. Lose all the save_xxx nonsense.
15485 Also lose one #if 0 block.
15487 Tue Oct 26 02:48:32 1999 Marc Espie <espie@cvs.openbsd.org>
15489 * Makefile.in (AR_FOR_TARGET, RANLIB_FOR_TARGET): Fix target name
15492 Tue Oct 26 01:27:32 1999 Mark Mitchell <mark@codesourcery.com>
15494 * tree.h (BLOCK_TYPE_TAGS): Remove.
15495 (BLOCK_END_NOTE): Likewise.
15496 (BLOCK_LIVE_RANGE_FLAG): Likewise.
15497 (BLOCK_LIVE_RANGE_START): Likewise.
15498 (BLOCK_LIVE_RANGE_END): Likewise.
15499 (tree_block): Remove live_range_flag, live_range_var_flag, and
15500 type_tags. Remove end_note, live_range_start, and live_range_end.
15501 (remember_end_note): Remove prototype.
15502 * tree.c (build_block): Don't set BLOCK_TYPE_TAGS.
15503 * c-decl.c (poplevel): Don't set BLOCK_TYPE_TAGS or call
15505 * ggc-common.c (ggc_mark_tree_children): Don't mark
15506 BLOCK_TYPE_TAGS or BLOCK_END_NOTE.
15507 * integrate.c (adjust_copied_decl_tree): Remove.
15508 * print-tree.c (print_node): Don't print BLOCK_TYPE_TAGS.
15509 * stmt.c (last_block_end_note): Remove.
15510 (init_stmt): Don't add a GC root for it.
15511 (expand_fixup): Don't set it.
15512 (remember_end_note): Remove.
15513 (expand_end_bindings): Don't set last_block_end_note.
15515 Tue Oct 26 00:41:54 1999 Bernd Schmidt <bernds@cygnus.co.uk>
15517 * reload1.c (reload_reg_free_for_value_p): Show
15518 RELOAD_FOR_OTHER_ADDRESS reloads can conflict with RELOAD_OTHER
15521 Mon Oct 25 23:54:45 1999 Geoff Keating <geoffk@cygnus.com>
15523 * expmed.c (extract_bit_field): Allow for the case of non-integer
15524 objects that are smaller than a word (like SFmode on a 64-bit
15527 * loop.c (basic_induction_var): A non-integer variable which is
15528 being set by a paradoxical subreg is probably not a biv.
15530 1999-10-25 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
15532 * prefix.c (translate_name) Check for empty prefix string.
15534 Mon Oct 25 23:10:45 1999 Andreas Schwab <schwab@suse.de>
15536 * Makefile.in (CPP_CROSS_NAME): New variable.
15537 (install-cpp): Use it instead of CPP_INSTALL_NAME for the cross
15539 (uninstall-cpp): Use CPP_INSTALL_NAME and CPP_CROSS_NAME for the
15540 names of the files to be uninstalled.
15542 Mon Oct 25 23:03:09 1999 Jeffrey A Law (law@cygnus.com)
15544 * collect2.c (IS_DIR_SEPARATOR): Define.
15545 (prefix_from_string): Use IS_DIR_SEPARATOR and DIR_SEPARATOR.
15547 * som.h (ASM_DECLARE_FUNCTION_NAME): Set PRIV_LEV for static
15550 * haifa-sched.c (add_dependence): Update the true dependency
15551 cache the first time we add a true dependence to the LOG_LINKS chain.
15553 Mon Oct 25 22:27:40 1999 Jim Kingdon <http://developer.redhat.com/>
15555 * fold-const.c (fold): Fix comment.
15557 Mon Oct 25 22:49:34 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15559 * dbxout.c (lastfile, cwd, dbxout_type_method_1,
15560 dbxout_symbol_location, dbxout_symbol_name, dbxout_init,
15561 dbxout_start_new_source_file, dbxout_source_file,
15562 dbxout_source_line, dbxout_finish, dbxout_type_fields,
15563 dbxout_type_methods, dbxout_symbol, dbxout_prepare_symbol):
15565 (dbxout_types, dbxout_args, dbxout_symbol): Delete prototypes.
15566 (dbxout_symbol): Mark parameter `local' with ATTRIBUTE_UNUSED.
15567 (dbxout_block): Initialize variable `blocknum'.
15569 * dbxout.h (dbxout_init, dbxout_finish,
15570 dbxout_start_new_source_file, dbxout_source_file, dbxout_types,
15571 dbxout_args, dbxout_source_line): Constify a char*.
15573 * dwarfout.c (dwarf_tag_name, dwarf_attr_name,
15574 dwarf_stack_op_name, dwarf_typemod_name, dwarf_fmt_byte_name,
15575 dwarf_fund_type_name, name_attribute, stmt_list_attribute,
15576 low_pc_attribute, high_pc_attribute, body_begin_attribute,
15577 body_end_attribute, comp_dir_attribute, sf_names_attribute,
15578 src_info_attribute, mac_info_attribute, producer_attribute,
15579 lookup_filename, generate_macinfo_entry, fundamental_type_code,
15580 dwarfout_line, dwarfout_start_new_source_file, dwarfout_define,
15581 dwarfout_undef): Constify a char*.
15582 (add_incomplete_type, retry_incomplete_types): Add prototypes.
15584 * dwarfout.h (dwarfout_define, dwarfout_undef,
15585 dwarfout_start_new_source_file, dwarfout_line): Constify a char*.
15587 1999-10-25 Gavin Romig-Koch <gavin@cygnus.com>
15589 * config/mips/mips.h (MIPS_ISA_DEFAULT): Insure it's defined.
15590 (MULTILIB_ISA_DEFAULT): New.
15591 (MULTILIB_DEFAULTS): Use it.
15592 * config/mips/mips.c (): Remove the now unnecessary definition
15593 of MIPS_ISA_DEFAULT.
15594 * config/mips/elf64.h (MULTILIB_DEFAULTS): Remove the now
15595 unnecessary definition.
15597 Mon Oct 25 22:08:35 1999 Richard Earnshaw (rearnsha@arm.com)
15599 * arm.md (pic_load_addr): Add constraints to operand 1.
15601 1999-10-25 Bruce Korb <autogen@linuxbox.com>
15603 * fixinc/genfixes: Provide a means for specifying -D options to
15606 Mon Oct 25 00:42:35 1999 Jeffrey A Law (law@cygnus.com)
15608 * arm.c (arm_override_options): Correct initialization of
15609 arm_fast_multiply, arm_arch4, arm_arch5, arm_ld_sched,
15610 arm_is_strong, and arm_is_6_or_7.
15612 * loop.c (note_set_pseudo_multiple_uses_retval): New variable.
15613 (note_set_pseudo_multiple_uses): New function.
15614 (check_dbra_loop): Use not_set_pseudo_multiple_uses to determine
15615 if a pseudo set in the loop exit is used elsewhere.
15617 Sun Oct 24 20:52:40 1999 Mark Mitchell <mark@codesourcery.com>
15619 * i386.md (mulsi3): Tweak to work with SCO OSR5 COFF assembler.
15621 Sun Oct 24 21:02:46 1999 Richard Henderson <rth@cygnus.com>
15623 * i386.md (*lea_0): Collapse addsi_0, addsi_lea_[123] into
15624 a single load-address pattern.
15626 Sun Oct 24 19:33:24 1999 Mark P. Mitchell <mark@codesourcery.com>
15628 * haifa-sched.c (schedule_insns): Don't assign LUIDs differently
15629 depending on whether or not line-number notes are present.
15631 Sun Oct 24 20:29:59 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15633 * cccp.c (progname, file_buf, default_include, include_file,
15634 macrodef, definition, hashval, wchar_type, user_label_prefix,
15635 directive, out_fname, if_stack, safe_write, index0, get_lintcmd,
15636 expand_to_temp_buffer, is_system_include, base_name,
15637 absolute_filename, read_name_map, open_include_file,
15638 record_control_macro, check_precompiled, check_preconditions,
15639 pcfinclude, pass_thru_directive, create_definition,
15640 check_macro_name, comp_def_part, collect_expansion,
15641 check_assertion, read_token_list, assertion_install,
15642 assertion_lookup, eval_if_expression, conditional_skip,
15643 validate_else, skip_quoted_string, quote_string, macarg1,
15644 error_from_errno, install, lookup, hashf, dump_defn_1,
15645 perror_with_name, pfatal_with_name, main, trigraph_pcp,
15646 check_white_space, rescan, handle_directive, monthnames,
15647 special_symbol, do_include, remap_include_file, write_output,
15648 arglist, do_assert, do_unassert, do_line, do_error, do_once,
15649 do_ident, do_sccs, do_xifdef, skip_if_group,
15650 output_line_directive, macroexpand, macarg, change_newlines,
15651 initialize_builtins, make_definition): Constify a char*.
15653 * pcp.h (stringdef): Likewise.
15655 Sun Oct 24 13:29:28 1999 Richard Henderson <rth@cygnus.com>
15657 * unroll.c (copy_loop_body): Examine SET_DEST of single_set
15660 Sun Oct 24 13:14:20 1999 Graham <grahams@rcp.co.uk>
15661 Richard Henderson <rth@cygnus.com>
15663 * alias.c: Include ggc.h.
15664 (reg_base_value, new_reg_base_value, reg_base_value_size): Make static.
15665 (record_set): Verify enough room in reg_base_value.
15666 (init_alias_analysis): Allocate reg_base_value with xcalloc.
15667 Register it as a GC root.
15668 (end_alias_analysis): Free reg_base_value. Remove it as a GC root.
15669 * Makefile.in (alias.o): Depend on ggc.h.
15671 * unroll.c (unroll_loop): Verify the insn before a barrier
15672 is a JUMP_INSN before checking JUMP_LABEL.
15674 Sun Oct 24 15:46:44 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15676 * mips/bsd-5.h (ASM_OUTPUT_ASCII): Constify a char*.
15677 * mips/iris4.h (ASM_OUTPUT_ASCII): Likewise.
15678 * mips/mips-5.h (ASM_OUTPUT_ASCII): Likewise.
15679 * mips/mips.h (ASM_OUTPUT_ASCII): Likewise.
15680 * mips/svr3-5.h (ASM_OUTPUT_ASCII): Likewise.
15681 * mips/svr4-5.h (ASM_OUTPUT_ASCII): Likewise.
15683 Sun Oct 24 15:35:43 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15685 * output.h (ctors_section, dtors_section, bss_section): Prototype.
15687 * alpha/alpha-interix.h (text_section): Delete prototype.
15688 * alpha/elf.h (text_section): Likewise.
15689 * arm/linux-elf.h (text_section): Likewise.
15690 * arm/linux-telf.h (text_section): Likewise.
15691 * c4x/c4x.h (text_section): Likewise.
15692 * dsp16xx/dsp16xx.h (bss_section): Likewise.
15693 * elfos.h (text_section): Likewise.
15694 * i386/aix386ng.h (text_section): Likewise.
15695 * i386/i386-interix.h (text_section): Likewise.
15696 * i386/sco5.h (text_section): Likewise.
15697 * i386/svr3gas.h (text_section): Likewise.
15698 * nextstep.h (text_section): Likewise.
15699 * psos.h (text_section): Likewise.
15700 * ptx4.h (text_section): Likewise.
15701 * svr3.h (text_section): Likewise.
15702 * svr4.h (text_section, ctors_section, dtors_section): Likewise.
15704 Sun Oct 24 15:20:59 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15706 * final.c (peephole): Delete prototype.
15708 * gcse.c (process_insert_insn, pre_edge_insert): Add prototypes.
15709 (pre_insert_copies): Remove unused variable `bb'.
15711 * genrecog.c (debug_decision_0, debug_decision_list, main): Add
15714 * output.h (peephole): Add prototype.
15716 Sun Oct 24 11:35:30 1999 Mark P. Mitchell <mark@codesourcery.com>
15718 * config/mips/iris6.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Define to
15721 Sat Oct 23 21:13:00 1999 Mark Mitchell <mark@codesourcery.com>
15723 * integrate.c (integrate_decl_tree): Tweak setting of DECL_CONTEXT
15724 for inlined declarations.
15726 Fri Oct 22 18:05:43 1999 Jeffrey A Law (law@cygnus.com)
15728 * arm.c (logical_binary_operator): New fucntion.
15729 * arm.h (logical_binary_operator): Declare it.
15730 (PREDICATE_CODES): Handle logical_binary_operator.
15731 * arm.md (anddi3, anddi_zesidi_di, anddi_sesdi_di): Use "#" for
15732 output constraints. Add appropriate splitters.
15733 (anddi_notdi_di, anddi_notzesidi_di, anddi_notsesidi_di): Likewise.
15734 (iordi3, iordi_zesidi_di, iordi_sesidi_di): Likewise.
15735 (xordi3, xordi_zesidi_di, xordi_sesidi_di): Likewise.
15737 Fri Oct 22 23:46:50 1999 Bernd Schmidt <bernds@cygnus.co.uk>
15739 * genoutput.c (struct operand_data): New elt eliminable.
15740 (output_operand_data): Write it.
15741 (scan_operands): Set it for MATCH_OPERAND, clear for other matchers.
15742 (compare_operands): Take it into account.
15743 * recog.h (struct insn_operand_data): New elt eliminable.
15744 * reload1.c (check_eliminable_occurrences, elimination_effects): New
15746 (old_asm_operands_vec, new_asm_operands_vec): Delete.
15747 (eliminate_regs): Move code that detects changes to elimination
15748 target regs into new function elimination_effects.
15749 Delete one #if 0 block.
15750 Abort for USE, CLOBBER, ASM_OPERANDS and SET.
15751 (eliminate_regs_in_insn): Return immediately for USEs, CLOBBERs,
15752 ADDR_VECs, ADDR_DIFF_VECs and ASM_INPUTs.
15753 Only call eliminate_regs for real operands of the insn, not for parts
15754 of its structure or parts matched by things like match_operator.
15755 Use elimination_effects and check_eliminable_occurrences. Use
15756 copy_insn to duplicate the pattern when not in the final pass.
15758 Fri Oct 22 09:03:44 1999 Mark Mitchell <mark@codesourcery.com>
15760 * i386.md: Add missing `y' modifiers to uses of fst, fstp, fld,
15763 1999-10-22 Bruce Korb <autogen@linuxbox.com>
15765 * fixinc/README: document the "mach" machine matching test
15766 * fixinc/fixfixes.c: Implement the #else/#endif label fix
15767 * fixinc/fixtests.c: Implement the #else/#endif label test
15768 * fixinc/inclhack.def: utilize these tests and fixes
15769 * fixinc/inclhack.sh: regen
15770 * fixinc/fixincl.x: regen
15771 * fixinc/fixincl.sh: regen
15773 Thu Oct 21 20:37:19 1999 Jeffrey A Law (law@cygnus.com)
15775 * Makefile.in (cse.o): Depend on hashtab.h, not splay-tree.h. Also
15778 Thu Oct 21 20:30:19 1999 Matthias Klose <doko@debian.org>
15780 * gcc.1: Document exit codes.
15782 Thu Oct 21 12:49:05 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15784 * calls.c: Include tm_p.h later, so everything we need is defined.
15785 * expr.c: Likewise.
15786 * function.c: Likewise.
15788 * except.c: Include tm_p.h.
15790 * sparc.c: Likewise.
15791 (dwarf2out_cfi_label): Don't prototype.
15792 (check_return_regs, epilogue_renumber,
15793 ultra_cmove_results_ready_p, ultra_fpmode_conflict_exists,
15794 ultra_find_type, ultra_build_types_avail, ultra_flush_pipeline,
15795 ultra_rescan_pipeline_state, set_extends, ultra_code_from_mask,
15796 ultra_schedule_insn): Add static prototype.
15797 (data_segment_operand, text_segment_operand): Call itself with the
15798 proper number of arguments.
15799 (sparc_flat_save_restore, sparc_v8plus_shift): Constify a char*.
15801 * sparc.h: Move all declarations to sparc-protos.h.
15802 (SELECT_RTX_SECTION): Pass a missing MODE argument to
15805 * sparc/sysv4.h (SELECT_RTX_SECTION): Likewise.
15807 * config/svr4.h (text_section, ctors_section, dtors_section): Add
15809 (ASM_OUTPUT_SECTION_NAME, UNIQUE_SECTION,
15810 ASM_FINISH_DECLARE_OBJECT, ASM_OUTPUT_LIMITED_STRING,
15811 ASM_OUTPUT_ASCII): Constify a char*.
15813 * sparc-protos.h: New file for sparc prototypes.
15815 Thu Oct 21 12:23:40 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15817 * function.c (record_insns, contains): Always declare and define.
15818 (record_insns): Mark with ATTRIBUTE_UNUSED.
15820 Thu Oct 21 13:03:49 1999 Jonathan Larmour <jlarmour@cygnus.co.uk>
15822 * config/arm/telf.h (ASM_OUTPUT_SECTION_NAME): Add %nobits option
15823 to .section when outputting a .bss section to deal with multiple
15824 .bss input sections (as happens with -fdata-sections)
15825 Also output %progbits, not @progbits so the assembler doesn't treat as
15827 * config/arm/unknown-elf.h (ASM_OUTPUT_SECTION_NAME): Likewise
15829 * config/arm/lib1funcs.asm (_call_via_rX): Allow compilation of
15830 thumb parts even when building with non-thumb CPUs, by forcing
15833 Wed Oct 20 22:57:58 1999 Jeffrey A Law (law@cygnus.com)
15835 * sparc.md (movsf_const_intreg): If splitting, length must be > 1.
15836 (movdf_const_intreg_sp64): Similarly.
15838 * local-alloc.c (update_equiv_regs): Check the correct insn
15839 for pre-existing REG_EQUIV notes.
15841 Wed Oct 20 20:41:46 1999 Mark Mitchell <mark@codesourcery.com>
15843 * cse.c (cse_end_of_basic_block): Don't return the end of a basic
15844 block reached by a branch if we're not going to actually process
15847 Wed Oct 20 15:18:42 1999 Jim Wilson <wilson@cygnus.com>
15849 * integrate.c (integrate_decl_tree): Set DECL_CONTEXT to 0 if this is
15850 a local extern function declaration.
15852 Wed Oct 20 13:56:01 1999 Richard Henderson <rth@cygnus.com>
15854 * i386.c (ix86_expand_prologue): Properly wrap USE around
15855 reg for CALL_INSN_FUNCTION_USAGE.
15857 Thu Oct 14 18:51:37 1999 Andrew Haley <aph@cygnus.com>
15859 * config/mips/mips.md (movdf_internal1a): Allow floating-point
15860 move between GP_REGs.
15862 Wed Oct 20 15:36:11 1999 Andrew Haley <aph@cygnus.com>
15864 * config/arm/thumb.h (GO_IF_LEGITIMATE_ADDRESS): Take account of
15865 the mode size when finding out if an offset is legal.
15867 Wed Oct 20 06:26:58 1999 Richard Henderson <rth@cygnus.com>
15869 * basic-block.h (PROP_*): Move constants from ...
15870 * flow.c: ... here.
15871 (compute_bb_for_insn): Free the array before reallocating.
15872 (update_life_info): New arg PROP_FLAGS; pass on to propagate_block.
15873 (allocate_reg_life_data): Reset all reg variables collected by
15875 (get_block_head_tail): Don't convert from bb to block.
15876 (get_bb_head_tail): New. Update all callers of get_block_head_tail.
15877 (find_insn_reg_weight): Take block not bb.
15878 (schedule_block): Don't set block num for moved insns.
15879 (schedule_region): Don't update_life_info or find_insn_reg_weight.
15880 (schedule_insns): Do it here instead.
15881 * combine.c (combine_instructions): Invoke compute_bb_for_insn
15882 before update_life_info.
15883 * recog.c (split_all_insns, peephole2_optimize): Update for
15884 new arg to update_life_info.
15885 * rtlanal.c (remove_note): Cope with NULL note.
15886 * toplev.c (rest_of_compilation): Don't invoke recompute_reg_usage
15889 Wed Oct 20 10:46:41 1999 Richard Earnshaw (rearnsha@arm.com)
15891 * jump.c (jump_optimize_1): More accurately detect casesi insns.
15893 * flow.c (merge_blocks_move_predecessor_nojumps): Re-order the basic
15894 block records so that merge_blocks_nomove will clean up correctly.
15895 (split_edge): Handle casesi insns.
15897 * gcc-page.c: Try MAP_ANON if we don't have MAP_ANONYMOUS.
15899 Tue Oct 19 23:43:50 1999 Jeffrey A Law (law@cygnus.com)
15901 * pa.md (call, call_value): Do not emit a blockage after restoring
15904 Tue Oct 19 17:22:39 1999 Mark Mitchell <mark@codesourcery.com>
15906 * c-typeck.c (c_expand_asm_operands): Fix typo.
15908 Tue Oct 19 18:42:58 1999 Bernd Schmidt <bernds@cygnus.co.uk>
15910 * arm.c (fpu_rhs_operand): Verify modes.
15911 (fpu_add_operand): Likewise.
15912 (di_operand): Likewise.
15913 (soft_df_operand): Likewise.
15915 Tue Oct 19 15:26:11 1999 Richard Earnshaw (rearnsha@arm.com)
15917 * arm.c (arm_return_in_memory): APCS rules state that the elements
15918 of a structure returned in a register must be 'integer-like'.
15920 1999-10-19 Bruce Korb <autogen@linuxbox.com>
15922 * fixinc/Makefile.in: Change the generation rules to run `genfixes'
15923 in the source tree when the generated targets are out of date
15924 * fixinc/genfixes: Alter it to run individual fixes for make.
15925 * fixinc/README: rewrite
15926 * fixinc/inclhack.def: moved initial comments to README
15928 Tue Oct 19 14:01:34 1999 Nick Clifton <nickc@cygnus.com>
15930 * toplev.c (main): Do not generate an error message if an
15931 unrecognised command line switch is recognisable by another
15932 language. If extra_warnings are enabled, then generate a
15933 warning message instead.
15935 Tue Oct 19 11:41:12 1999 Mumit Khan <khan@xraylith.wisc.edu>
15937 * c-pragma.h (PRAGMA_INSERT_ATTRIBUTES): Delete macro.
15938 (insert_pack_attributes): Delete prototype.
15940 * c-pragma.c (default_alignment): New static variable.
15941 (push_alignment): Initialize to current effective alignment.
15942 (pop_alignment): Use to set new alignment.
15943 (insert_pack_attributes): Delete function.
15944 (handle_pragma_token): Set default_alignment as well each time
15945 a #pragma pack(<n>) is encountered.
15947 Tue Oct 19 02:03:00 1999 Jeffrey A Law (law@cygnus.com)
15949 * reg-stack.c (stack_result): Aggregates are not returned in
15952 Tue Oct 19 01:26:48 1999 Alasdair Baird <alasdair@wildcat.demon.co.uk>
15954 * fold-const.c (fold): Fix thinko in x+(-0) -> x transformation.
15956 Mon Oct 18 15:19:41 1999 Richard Henderson <rth@cygnus.com>
15958 * basic-block.h (set_block_num): Declare.
15959 * flow.c (update_life_info): Don't call compute_bb_for_insn
15960 or free_basic_block_vars.
15961 * haifa-sched.c (remove_dependence): Conditionalize on HAVE_cc0.
15962 (insn_orig_block): Remove.
15963 (INSN_BLOCK): Remove. Update all callers to use BLOCK_NUM.
15964 (schedule_block): Keep BLOCK_NUM up-to-date.
15965 (schedule_insns): Use compute_bb_for_insn.
15966 * recog.c (split_all_insns): Likewise.
15967 (peephole2_optimize): Likewise.
15969 Mon Oct 18 18:50:51 1999 Andreas Schwab <schwab@suse.de>
15971 * config/m68k/m68k.h (INITIAL_FRAME_POINTER_OFFSET): Add one word
15972 if the pic register is used.
15974 Mon Oct 18 02:38:46 1999 Bernd Schmidt <bernds@cygnus.co.uk>
15976 * c-decl.c (pushdecl): Use TYPE_CONTEXT rather than TREE_PERMANENT.
15977 (finish_decl): Duplicate test for TREE_ASM_WRITTEN in else branch of
15978 if that tests TREE_PERMANENT.
15980 Mon Oct 18 01:41:35 1999 Jeffrey A Law (law@cygnus.com)
15982 * cse.c (invalidate_for_call): Do not remove memory references from
15983 the table here. It's handled elsewhere.
15985 * haifa-sched.c (add_dependence): Protect references to the
15986 true dependency cache with #ifdef INSN_SCHEDULING.
15987 (remove_dependence): Similarly.
15989 * mn10200.md (outline_epilogue_jump): Embed a (return) to indicate
15990 to the cfg code that this is a return instruction.
15991 * mn10300.md (return_internal): Similarly.
15993 * combine.c (get_last_value): If the last set of a register
15994 is after subst_low_cuid, then we can not use it to determine
15995 the register's last value.
15997 Sun Oct 17 11:02:52 1999 Mark Mitchell <mark@codesourcery.com>
15999 * Makefile.in: Back out previous change.
16001 Sun Oct 17 15:22:50 1999 Jeffrey A Law (law@cygnus.com)
16003 * pa.c (move_operand): Reject (lo_sum (reg) (unspec ...)).
16005 * haifa-sched.c (add_dependence): Only check/update the cache
16007 (remove_dependence): Likewise.
16008 (schedule_insns): Only create the true_dependency_cache if the
16009 average number of instructions in a basic block is very large.
16011 Sun Oct 17 11:02:52 1999 Mark Mitchell <mark@codesourcery.com>
16013 * Makefile.in (ggc-common.o): Depend on genrtl.h.
16014 (ggc-simple.o): Likewise.
16015 (ggc-page.o): Likewise.
16017 Sun Oct 17 02:09:50 1999 Andrew MacLeod <amacleod@cygnus.com>
16019 * basic-block.h (pre_edge_lcm, pre_edge_rev_lcm, compute_available):
16020 Prototype for exported functions.
16021 (pre_lcm, pre_rev_lcm): Remove prototypes.
16022 * gcse.c (compute_ae_kill): Add ae_gen and ae_kill as parameters.
16023 (compute_available): Move to lcm.c, and change parameter order.
16024 (one_classic_gcse_pass): Call compute_ae_kill with parameters.
16025 (pre_insert, s_preds, s_succs, num_preds, num_succs): Delete.
16026 (gcse_main): No longer call compute_preds_succs. Rebuild the
16027 set table after reach pre pass.
16028 (pre_insert_map, pre_delete_map, edge_list): New.
16029 (alloc_pre_mem): Allocate edge vectors.
16030 (free_pre_mem): Delete edge vectors.
16031 (compute_pre_data): Call new edge based lcm routines.
16032 (process_insert_insn): New function.
16033 (insert_insn_end_bb): Use it.
16034 (pre_edge_insert): New function.
16035 (pre_insert_copy_insn): Formatting fixes. Update BLOCK_END as
16037 (pre_insert_copies): Revamp using new edge based lcm outputs.
16038 (pre_delete): Likewise.
16039 (one_pre_gcse_pass): Insert & remove fake edges to the exit
16041 (compute_code_hoist_vbeinout): New new edge based routines.
16042 * lcm.c: Remove all the old LCM functions. Replace with new ones
16043 that work with the new cfg datastructures and work with edges
16046 Sun Oct 17 00:44:17 1999 Bernd Schmidt <bernds@cygnus.co.uk>
16048 * reload.h (struct reload): Add new fields "mode" and "nregs".
16049 * reload1.c: Change all occurrences of reload_mode and reload_nregs
16050 to reference the "mode" and "nregs" field within struct reload.
16052 Sat Oct 16 21:50:28 1999 Jeffrey A Law (law@cygnus.com)
16054 * haifa-sched.c (true_dependency_cache): New.
16055 (add_dependence): Use the true dependency cache to avoid expensive
16056 walks down the LOG_LINKS dependency list. Add entries to the
16057 cache as necessary.
16058 (remove_dependence): Remove entries from the true dependency cache
16060 (schedule_insns): Allocate and initialize and free the true
16063 * haifa-sched.c (schedule_insns): Do not remove inter-block
16064 dependencies anymore.
16066 Sat Oct 16 11:19:52 1999 Richard Henderson <rth@cygnus.com>
16068 * i386/t-cygwin (winnt.o): Depend on RTL_H and TREE_H.
16069 * i386/t-winnt: Likewise.
16071 Sat Oct 16 11:11:54 1999 Richard Henderson <rth@cygnus.com>
16073 * ggc-page.c (init_ggc): Work around SunOS unaligned mmap bug.
16075 1999-10-16 Manfred Hollstein <mhollstein@cygnus.com>
16077 * Makefile.in (LANGUAGES): Omit "proto".
16078 (clean): Remove stale comment about removing unprotoize.c.
16080 Sat Oct 16 11:29:14 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16082 * protoize.c (safe_read, safe_write): Avoid the gcc extension of
16083 using arithmetic on void pointers.
16085 Sat Oct 16 02:48:22 1999 Jeffrey A Law (law@cygnus.com)
16087 * haifa-sched.c (compute_block_forward_dependencies): Only check
16088 for notes, deleted insns and duplicates if ENABLE_CHECKING is defined.
16090 Sat Oct 16 00:07:01 1999 Richard Henderson <rth@cygnus.com>
16092 * gcse.c (hash_expr_1): Add in MEM_ALIAS_SET.
16093 (expr_equiv_p): Reject memories with different alias sets.
16095 Fri Oct 15 15:17:29 1999 Greg McGary <gkm@gnu.org>
16097 * flags.h (flag_bounds_check, flag_bounded_pointers): New extern decls.
16098 * toplev.c (flag_bounds_check, flag_bounded_pointers): New flags.
16099 (f_options): Add "bounded-pointers" and "bounds-check" entries.
16100 * c-lang.c (lang_init_options): Set flag_bounds_check as "unspecified".
16101 (lang_init): Set default for flag_bounds_check if still "unspecified".
16103 Sat Oct 16 13:42:29 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
16105 * config/c4x/c4x.md (HF mode patterns): Add missing modes.
16107 Sat Oct 16 13:37:46 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
16109 * config/c4x/c4x.md (movstrqi_small): Utilise parallel move
16112 Sat Oct 16 13:26:47 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
16114 * config/c4x/c4x.md (*db_noclobber,
16115 *decrement_and_branch_until_zero_noclobber): New patterns and
16116 associated splitters.
16118 Sat Oct 16 13:13:15 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
16120 * config/c4x/c4x.md (parallel instruction patterns): Rework
16121 constraints to keep reload happy.
16123 Sat Oct 16 13:03:16 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
16125 * config/c4x/c4x.md (*absqi2_noclobber, *negqi2_noclobber,
16126 *one_cmplqi2_noclobber, *subqi3_noclobber, *andqi3_255_noclobber,
16127 *andqi3_65535_noclobber, *andnqi3_noclobber, *xorqi3_noclobber):
16128 Add new patterns and associated post-reload splitters.
16130 Sat Oct 16 12:42:12 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
16132 * config/c4x/c4x.c (c4x_emit_libcall): Use ggc_alloc_string.
16134 Sat Oct 16 12:34:44 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
16136 * config/c4x/c4x.c (c4x_rptb_insert): Emit rpts_top pattern
16138 * config/c4x/c4x.md (rpts_top): New pattern and splitter.
16140 Sat Oct 16 12:26:30 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
16142 * config/c4x/c4x.c (src_operand): Check SYMBOL_REF and LABEL_REF
16145 Fri Oct 15 17:02:09 1999 Jeffrey A Law (law@cygnus.com)
16147 * pa.c (move_operand): Rely on memory_address_p to determine the
16148 validity of non-indexed memory addresses.
16149 * pa.h (GO_IF_LEGITIMATE_ADDRESS): Allow LO_SUM with a symbolic
16150 operand in DFmode and SFmode when generating PA2.0 code.
16152 Fri Oct 15 14:25:19 1999 Richard Henderson <rth@cygnus.com>
16154 * print-rtl.c (print_rtx): Limit last 'u' change to LABEL_REF.
16156 Fri Oct 15 13:48:45 1999 Richard Henderson <rth@cygnus.com>
16158 * mips.c (function_prologue): Fix argument types.
16159 * mips.md (casesi): Use emit_jump_insn for casesi_internal.
16160 (casesi_internal): Write to the scratch register.
16162 1999-10-15 11:16 -0700 Zack Weinberg <zack@bitmover.com>
16164 * cppexp.c (cpp_parse_escape): Make static. Change second arg
16166 (parse_charconst): Delete unnecessary cast when calling
16168 (cpplib.h): Kill prototype of cpp_parse_escape.
16170 Fri Oct 15 11:02:46 1999 Richard Henderson <rth@cygnus.com>
16172 Based on patch from Michael Gschwind <mikeg@watson.ibm.com>:
16173 * unroll.c (unroll_loop): Cast return value of alloca.
16174 * i370/i370.c: Include function.h and toplev.h.
16175 (i370_label_scan): Remove c++ commented abort.
16176 * i370/i370.h (HANDLE_PRAGMA): Takes three arguments.
16177 (ASM_OUTPUT_LABELREF): Fix TOUPPER/else broken 16 Sept.
16178 * i370/xm-i370.h (HOST_BITS_PER_LONGLONG): Define.
16179 * i370/xm-mvs.h, i370/xm-oe.h: Likewise.
16181 Fri Oct 15 03:01:01 1999 Loren Rittle <ljrittle@acm.org>
16183 * config/t-freebsd: Do not override USER_H.
16184 * ginclude/stddef.h: Generalize check for _MACHINE_ANSI_H_.
16186 Fri Oct 15 02:37:28 1999 Alastair J. Houghton <ajh8@doc.ic.ac.uk>
16187 Mumit Khan <khan@xraylith.wisc.edu>
16189 * c-parse.in (component_decl): Support anonymous struct/union.
16191 * c-parse.y: Regenerate.
16192 * c-parse.c: Likewise.
16193 * objc/objc-parse.y: Likewise.
16194 * objc/objc-parse.c: Likewise.
16195 * c-decl.c (finish_struct): Don't sort the fields.
16196 (field_decl_cmp): Delete unused function.
16198 Fri Oct 15 01:20:52 1999 Richard Henderson <rth@cygnus.com>
16200 * sparc.md (movsf_const_intreg): Revert last constraint change.
16201 (movdf_const_intreg_sp32): Likewise.
16203 Fri Oct 15 01:47:51 1999 Vladimir Makarov <vmakarov@loony.cygnus.com>
16205 * cse.c: Include hashtab.h instead of splay-tree.h
16206 (struct cse_reg_info): No longer use variant union. Add new
16207 field "regno". All references changed to avoid union.
16208 (cse_reg_info_used_list, cse_reg_info_used_list_end): New variables.
16209 (free_cse_reg_info): Remove.
16210 (hash_cse_reg_info, cse_reg_info_equal_p): New functions.
16211 (get_cse_reg_info): Revamp to use expandable hash tables instead
16212 of splay trees. Initialize new fields in cse_reg_info structure.
16213 (new_basic_block): Similarly.
16215 Thu Oct 14 23:51:56 1999 Richard Henderson <rth@cygnus.com>
16217 * genrecog.c (message_with_line): Prototype.
16218 (validate_pattern): Pass along the set for the dest, not a flag.
16219 Fix non-lvalue message. Don't warn for VOIDmode SET_DEST of CALL.
16220 Check for PC/CC0 as sources.
16221 (nodes_identical): Check for children position match before
16222 allowing the combination.
16224 * rtl.c (read_rtx): Track line number across \\\n.
16226 Thu Oct 14 23:50:25 1999 Richard Henderson <rth@cygnus.com>
16228 * mips.h (SPECIAL_MODE_PREDICATES): New.
16229 * mips.md (*) Use nonimmediate_operand not general_operand for outputs.
16230 (movdi+1, movsi+1): Add output reload constraint.
16231 (casesi_internal): Likewise. Fix commentary.
16232 (return_internal): Use pmode_register_operand.
16234 Thu Oct 14 23:19:34 1999 Richard Henderson <rth@cygnus.com>
16236 * 1750a.md (movstrqi): Add missing output reload constraint.
16237 (call_value): Likewise.
16238 * a29k.md (cpxxx patterns): Add missing match_operator mode.
16239 (jmpfdec): Add missing inout reload constraint.
16240 * elxsi.md (addsi patterns): Add missing output reload constraint.
16241 (move from sp): Use @ alternates.
16242 (call_value): No constraint on output.
16243 * fr30.md (movsi_pop): Add missing output reload constraint.
16244 (movsf_constant_store): Likewise.
16245 (splits): Remove constraints.
16246 (subsi3): Add missing mode.
16247 * i370.md (cmpstrsi+1): Add missing output reload constraint.
16248 (call_value): Likewise.
16249 * i960.md (cmpinc/cmpdec patterns): Add inout reload constraints.
16250 * m32r.h (PREDICATE_CODES): Add seth_add3_operand.
16251 * m32r.md (movsicc_internal): Add output reload constraint.
16252 (movstrsi_internal): Add inout reload constraints.
16253 * m88k.h (reg_names): Don't declare.
16254 (SPECIAL_MODE_PREDICATES): New.
16255 * m88k.md (*): Use register_operand not reg_or_0_operand
16257 * mn10200.h (PREDICATE_CODES): New.
16258 * ns32k.md (ffs pattern): Add output reload constraint.
16259 * pdp11.md (sob pattern): Add inout reload constraint.
16260 * sh.md (splits): Remove constraints.
16261 (indirect_jump_scratch, fpu_switch): Add output reload constraint.
16262 * v850.md (pattern_is_ok_for_epilogue): Likewise.
16263 * vax.md (jgequ pattern): Add inout reload constraint.
16265 Fri Oct 15 00:05:00 1999 Jeffrey A Law (law@cygnus.com)
16267 * configure.in (djgpp): Revert previous patch.
16268 * configure: Rebuit.
16269 * config/i386/djgpp.h: Revert previous patch.
16271 Fri Oct 15 00:00:24 1999 Loren J. Rittle <ljrittle@acm.org>
16273 * fixinc/inclhack.def: Restore patch lost during last merge of
16274 "no_bogosity" branch.
16275 * fixinc/inclhack.sh, fixinc/fixincl.x: Rebuilt.
16277 Thu Oct 14 23:57:56 1999 Gavin Romig-Koch <gavin@cygnus.com>
16279 * fixincludes: Add a HPUX 11 fix for inttypes.h.
16280 * fixinc/inclhack.def: Same.
16281 * fixinc/inclhack.sh, fixinc/fixincl.sh, fixinc/fixincl.x: Regenerate.
16283 Thu Oct 14 22:51:55 1999 Richard Henderson <rth@cygnus.com>
16285 * alpha.h (GO_IF_LEGITIMATE_SIMPLE_ADDRESS): Accept ADDRESSOF
16286 as the base of a PLUS.
16288 Fri Oct 15 18:36:07 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
16290 * config/c4x/c4x.md: Define mode for remaining unspec operators.
16291 * config/c4x/c4x.c (dst_operand): Use nonimmediate_operand.
16293 Thu Oct 14 22:14:23 1999 Richard Henderson <rth@cygnus.com>
16295 * pa.md (post_stw+1): Use pmode_register_operand.
16296 (dcacheflush, icacheflush): Likewise.
16298 * i386.md (movstricthi_1): Allow r/r.
16300 Thu Oct 14 19:44:08 1999 Jan Hubicka <hubicka@freesoft.cz>
16302 * fold-const.c (fold): Convert (or (not arg0) (not arg1))
16303 to (not (and (arg0) (arg1))). Similary for and.
16305 * fold-const.c (fold): Move bit_rotate code to the EXPR_PLUS case,
16306 fallthrough to associate code.
16307 Convert XOR to OR in code like (a&c1)^(a&c2) where c1 and c2 don't have
16310 * combine.c (simplify_logical): Convert XOR to IOR if operands have
16311 no bits in common; remove XOR to ROTATE conversion.
16313 Fri Oct 15 17:40:11 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
16315 * config/c4x/c4x.h (c4x_va_start, c4x_va_arg): Declare.
16317 Fri Oct 15 17:27:17 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
16319 * config/c4x/c4x.c (dst_operand): New.
16320 (PREDICATE_CODES): Update.
16321 * config/c4x/c4x.h (dst_operand): Declare it.
16322 * config/c4x/c4x.md: Define mode for each unspec usage.
16323 (move patterns): Use dst_operand predicate instead of src_operand.
16324 (movqi_update, movqf_update): Delete.
16326 Thu Oct 14 18:48:54 1999 Richard Henderson <rth@cygnus.com>
16328 * recog.c (pmode_register_operand): New.
16329 * recog.h: Declare it.
16330 * genrecog.c (pred_codes): Likewise.
16331 (special_mode_pred_table): Likewise.
16332 (validate_pattern): Don't warn no mode for address_operand.
16334 * print-rtl.c (print_rtx) [LABEL_REF]: Only do full subexpression
16335 if the operand is not insn-like.
16337 Thu Oct 14 19:38:42 1999 Jeffrey A Law (law@cygnus.com)
16338 Sylvian Pion <Sylvain.Pion@sophia.inria.fr>
16340 * fold-const.c (fold): Handle more simplifications allowed by IEEE.
16342 Thu Oct 14 17:30:14 1999 Richard Henderson <rth@cygnus.com>
16344 * sparc.md (*): Use {nonimmediate,register}_operand as appropriate
16345 instead of general_operand in a SET_DEST. Use const_double_operand
16346 instead of an explicit test against CONST_DOUBLE.
16347 (movsf_const_lo): Add missing register mode.
16348 (goto_handler_and_restore): Add auxiliary test for Pmode.
16349 (flush): Adjust to use address_operand.
16350 (return_sf_no_fpu): Add missing output constraint.
16352 Thu Oct 14 17:21:26 1999 Richard Henderson <rth@cygnus.com>
16354 * rs6000.md (call_value_indirect_aix32): Use wildcard match_operand
16355 for call return value.
16356 (call_value_indirect_aix64, call_value_indirect_nt): Likewise.
16358 Thu Oct 14 13:54:25 1999 Jason Merrill <jason@yorick.cygnus.com>
16360 * toplev.c (main): Only warn about options for other languages.
16361 * collect2.c (main): Pass -w to sub-gcc.
16363 Thu Oct 14 16:27:50 1999 Richard Henderson <rth@cygnus.com>
16365 * flow.c (propagate_block): Add call-clobbered registers to
16368 * flow.c (propagate_block): Use free_EXPR_LIST_list instead of
16369 zapping mem_set_list.
16370 (invalidate_mems_from_autoinc): Use free_EXPR_LIST_node.
16371 (mark_set_1, mark_used_regs): Likewise.
16373 Thu Oct 14 10:51:49 1999 Richard Henderson <rth@cygnus.com>
16375 * m68k.md (zero_extendsidi2): Add missing output reload constraint.
16377 Wed Oct 13 00:09:18 1999 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
16379 * invoke.texi: Label -Wbad-function-cast, -Wmissing-prototypes,
16380 -Wnested-externs, -Wstrict-prototypes, and -Wtraditional as C only
16381 options. Also add a new item "C-only Warning Options" to the
16384 1999-10-14 Gavin Romig-Koch <gavin@cygnus.com>
16386 * libgcc2.c (__do_global_dtors): Protect __deregister_frame_info
16387 from multiple calls.
16389 Thu Oct 14 04:54:54 1999 Richard Henderson <rth@cygnus.com>
16391 * i386.md (call value patterns): Move to the end of the file.
16392 (prologue_set_got, prologue_get_pc): Use register_operand for op 0.
16394 1999-10-14 Mark Elbrecht <snowball3@bigfoot.com>
16396 * configure.in (djgpp configuration): Define extra_objects..
16397 * configure: Rebuilt.
16398 * config/i386/djgpp.h (CTORS_SECTION_ASM_OP): Define.
16399 (DTORS_SECTION_ASM_OP): Define.
16400 (INIT_SECTION_ASM_OP): Define.
16401 (FINI_SECTION_ASM_OP): Define.
16402 (DATA_SECTION_ASM_OP): Define.
16403 (TEXT_SECTION_ASM_OP): Define.
16404 (EH_FRAME_SECTION_ASM_OP): Define.
16405 (LINK_COMMAND_SPEC): Remove -Tdjgpp.djl.
16406 (STARTFILE_SPEC): Add crtbegin.o.
16407 (ENDFILE_SPEC): Define and add crtend.o. Move argument -Tdjgpp.djl
16408 to here from LINK_COMMAND_SPEC.
16409 (DO_GLOBAL_CTORS_BODY): Define.
16410 (CRTSTUFF_USE_FINI_SECTION): Define
16411 (HAS_INIT_SECTION): Delete.
16413 Thu Oct 14 05:08:14 1999 Andreas Schwab <schwab@suse.de>
16415 * Makefile.in (all.cross): Depend on xcpp$(exeext).
16417 Thu Oct 14 04:00:40 1999 Richard Henderson <rth@cygnus.com>
16419 * pa.h (PREDICATE_CODES): New.
16421 * genrecog.c (validate_pattern): Condense the destination
16422 non-lvalue message.
16424 Thu Oct 14 03:23:08 1999 Richard Henderson <rth@cygnus.com>
16426 * alpha.md (call-1): Supply missing mode for operator.
16427 (*): Add missing output reload constraints. Remove constraints
16428 from define_splits.
16430 * i386.h (SPECIAL_MODE_PREDICATES): New.
16431 * i386.md (movstricthi_1): Use nonimmediate_operand for op 0.
16432 (movqi_1, movdi_1, movdi_2, some splits): Likewise.
16433 (addsi_lea_3): Add missing mode for op 3.
16434 (prologue_set_got, prologue_get_pc): Add missing modes.
16435 (*) Add missing output reload constraints.
16437 Thu Oct 14 03:59:57 1999 Stephane Carrez <stcarrez@worldnet.fr>
16439 * stor-layout.c (layout_union): Use HOST_WIDE_INT for const_size;
16440 check for member bit-size overflow and use var_size if it occurs.
16441 (layout_record): Use bitsize_int() to define the type size in bits.
16442 Likewise for computation and assignment to DECL_FIELD_BITPOS.
16443 (layout_decl): Likewise when assigning to DECL_SIZE.
16445 Thu Oct 14 02:57:05 1999 Richard Henderson <rth@cygnus.com>
16447 * genrecog.c (validate_pattern): Typo last change. Verify
16448 that output operands have output reloads.
16450 Thu Oct 14 01:49:54 1999 Richard Henderson <rth@cygnus.com>
16452 * genrecog.c (special_mode_pred_table): New.
16453 (NUM_SPECIAL_MODE_PREDS): New.
16454 (find_operand): New.
16455 (validate_pattern): New argument `insn'. Warn for assignment to
16456 any predicate accepting non-lvalues. Conditionaly warn for
16457 match_operand without a mode. Try much harder to match source
16458 and destination modes on a set.
16459 * tm.texi (SPECIAL_MODE_PREDICATES): Document.
16461 Thu Oct 14 02:54:13 1999 Jeffrey A Law (law@cygnus.com)
16463 * fold-const.c (fold): Detect rotates built from BIT_XOR_EXPRs.
16465 Thu Oct 14 02:18:19 1999 Marc Espie <espie@cvs.openbsd.org>
16467 * combine.c (simplify_logical): Recognize xor pattern that encodes
16470 Wed Oct 13 23:23:45 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
16472 * rs6000.c (expand_block_move): Use INTVAL, not XINT to access
16475 Wed Oct 13 21:47:18 1999 Richard Henderson <rth@cygnus.com>
16477 * ggc-page.c (MAP_FAILED): Provide default.
16479 Wed Oct 13 21:41:59 1999 Richard Henderson <rth@cygnus.com>
16481 * sparc.c (symbolic_operand): Verify mode; don't accept CONST_DOUBLE.
16482 * sparc.h (PREDICATE_CODES): Update.
16484 Wed Oct 13 21:18:17 1999 Richard Henderson <rth@cygnus.com>
16486 * alpha.c (some_ni_operand): New.
16487 * alpha-protos.h: Declare it.
16488 * alpha.h (PREDICATE_CODES): Update.
16489 * alpha.md (sXaddq reload insns): Use some_ni_operand
16490 for SET_DEST instead of some_operand.
16492 Wed Oct 13 21:04:45 1999 Richard Henderson <rth@cygnus.com>
16493 Jim Wilson <wilson@cygnus.com>
16495 * genrecog.c (maybe_both_true_2): Don't compare modes of
16497 (process_tree): Elide peephole2_insns. Invoke simplify_tests
16498 after find_afterward.
16499 (debug_decision_1): Dump next and afterward codes.
16501 Wed Oct 13 20:35:16 1999 Richard Henderson <rth@cygnus.com>
16503 * rtl.c (dump_and_abort): Remove.
16504 (fatal_with_file_and_line): New.
16505 (fatal_expected_char): New.
16506 (read_rtx_lineno, read_rtx_filename): New.
16507 (read_skip_spaces): Track line number.
16508 (read_name): Use fatal_with_file_and_line.
16509 (read_rtx): Use fatal_expected_char. Track line number.
16510 * rtl.h (read_rtx_filename, read_rtx_lineno): Declare.
16512 * print-rtl.c (print_rtx): Don't special case LABEL_REF argument
16513 if it isn't a CODE_LABEL.
16515 * genattr.c (main): Set read_rtx_filename.
16516 * genattrtab.c (main): Likewise.
16517 * gencodes.c (main): Likewise.
16518 * genconfig.c (main): Likewise.
16519 * genemit.c (main): Likewise.
16520 * genextract.c (main): Likewise.
16521 * genflags.c (main): Likewise.
16522 * genopinit.c (main): Likewise.
16523 * genoutput.c (main): Likewise.
16524 * genpeep.c (main): Likewise.
16526 * genrecog.c (decision_test.u.insn): Add `lineno'.
16527 (pattern_lineno, error_count): New variables.
16528 (message_with_line): New.
16529 (add_to_sequence): Break out checking code to ...
16530 (validate_pattern): ... here. Detect SET_DEST matching CONST_INT.
16531 (merge_insn): Use message_with_line.
16532 (make_insn_sequence): Use validate_pattern. Record insn lineno.
16533 (main): Set read_rtx_filename, pattern_lineno. Exit early on error.
16535 Wed Oct 13 22:01:35 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
16537 * expr.c (store_constructor): Clear union if constructor is empty.
16539 Wed Oct 13 15:19:04 1999 Jim Wilson <wilson@cygnus.com>
16541 * config/rs6000/sysv4.h (CC1_SPEC): Fix errors from Jan 19 change.
16542 Add !endian checks. Change %{...} to %(...).
16544 Wed Oct 13 13:30:34 1999 Richard Henderson <rth@cygnus.com>
16546 * i386.md (*addsi3_cc): Renamed from addcsi3.
16547 (*addsi3_carry): Renamed from addxsi3.
16548 (*subsi3_cc): Renamed from subcsi3.
16549 (*subsi3_carry): Renamed from subxsi3.
16550 (*xorqi_cc_1): Renamed from xorcqi_1.
16551 (xorqi_cc_ext_1): Renamed from xorcqi_ext_1.
16552 * i386.c (ix86_expand_fp_compare): Update for xorqi_cc_ext_1.
16554 Wed Oct 13 13:10:46 1999 Richard Henderson <rth@cygnus.com>
16556 * Makefile.in (ggc-common.o): Depend on RTL_H not RTL_BASE_H.
16557 (ggc-simple.o, ggc-page.o, ggc-none.o, ggc-callbacks.o): Likewise.
16559 1999-10-13 Brendan Kehoe <brendan@cygnus.com>
16561 * regmove.c (optimize_reg_copy_3): Make sure P is non-nil as we
16562 climb up the chain of insns.
16564 Wed Oct 13 10:20:58 1999 Richard Henderson <rth@cygnus.com>
16566 * genrecog.c (write_subroutine): Careful for null trees.
16567 (process_tree): Don't elide empty functions.
16569 Wed Oct 13 10:07:54 1999 Richard Henderson <rth@cygnus.com>
16571 * Makefile.in (genrtl.o): Depend on ggc.h.
16572 * configure.in (valloc): Probe for it.
16573 (with-gc): Use ggc-page if valloc present.
16574 * ggc-common.c (ggc_mark_rtx_children): Use ggc_mark_if_gcable.
16575 (ggc_mark_rtvec_children): New from corpse of ggc_mark_rtvec.
16576 (ggc_alloc_string): Moved from ggc-page.c.
16577 * ggc-none.c (ggc_alloc_obj): New.
16578 (ggc_alloc_rtx, ggc_alloc_rtvec): Remove.
16579 * ggc-page.c (sys/mman.h): Only include if HAVE_MMAP.
16580 (struct globals): Likewise for dev_zero_fd.
16581 (init_ggc): Likewise for it's initialization.
16582 (ggc_allocated_p): Move careful dereference from ...
16583 (ggc_lookup_page_table): ... here. Delete.
16584 (lookup_page_table_entry): Don't use ggc_lookup_page_table.
16585 (alloc_anon): Use valloc if no mmap.
16586 (release_pages): Use free if using valloc.
16587 (ggc_alloc_obj): Renamed from alloc_obj.
16588 (ggc_set_mark): Renamed from mark_obj.
16589 (ggc_mark_if_gcable): Renamed from ggc_mark_string_if_gcable.
16590 (ggc_alloc_rtx, ggc_alloc_rtvec): Delete.
16591 (ggc_alloc_tree, ggc_alloc_string, ggc_alloc): Delete.
16592 (ggc_set_mark_rtx, ggc_set_mark_rtvec): Delete.
16593 (ggc_set_mark_tree, ggc_mark_string, ggc_mark): Delete.
16594 (ggc_collect): Use fp printing instead of our own rounding.
16595 * ggc-simple.c (IS_MARKED, IGNORE_MARK): Delete.
16596 (GGC_STRING_MAGIC, GGC_STRING_MAGIC_MARK): Delete.
16597 (GGC_ANY_MAGIC, GGC_ANY_MAGIC_MARK): Delete.
16598 (struct ggc_rtx, struct ggc_rtvec, struct ggc_tree): Delete.
16599 (struct ggc_string, struct ggc_any): Delete.
16600 (offsetof): Provide default definition.
16601 (GGC_BALANCE, GGC_ALWAYS_COLLECT, GGC_ALWAYS_VERIFY): New.
16603 (struct ggc_mem): New, from corpse of ggc_any.
16604 (struct ggc_status): Delete.
16605 (ggc_chain, ggc_allocated_strings, ggc_strings_used): Delete.
16606 (n_rtxs_collected, n_vecs_collected, n_trees_collected): Delete.
16607 (n_strings_collected, n_anys_collected): Delete.
16608 (ggc_alloc_rtx, ggc_alloc_rtvec, ggc_alloc_tree): Delete.
16609 (ggc_alloc_string, ggc_alloc): Delete.
16610 (ggc_free_rtx, ggc_free_rtvec, ggc_free_tree): Delete.
16611 (ggc_free_string, ggc_free_any): Delete.
16612 (ggc_set_mark_rtx, ggc_set_mark_rtvec, ggc_set_mark_tree): Delete.
16613 (ggc_compare_addresses, ggc_mark_string): Delete.
16614 (ggc_mark_string_if_gcable, ggc_mark): Delete.
16615 (search_data): Delete.
16616 (struct globals): New.
16617 (GGC_MIN_EXPAND_FOR_GC, GGC_MIN_LAST_ALLOCATED): New.
16618 (tree_insert, tree_lookup): New.
16619 (ggc_alloc_obj, ggc_set_mark, ggc_mark_if_gcable): New.
16620 (clear_marks, sweep_objs): New.
16621 (ggc_collect): Gut. Use clear_marks, sweep_objs.
16622 (init_ggc): Set allocated_last_gc.
16623 (ggc_push_context): Gut. Use G.context.
16624 (ggc_pop_context): Likewise.
16625 (ggc_pop_context_1): New.
16626 (debug_ggc_tree): New.
16627 (debug_ggc_balance, tally_leaves): New.
16628 * ggc.h (ggc_mark_rtvec, ggc_mark_string, ggc_mark): Remove decl.
16629 (ggc_mark_string_if_gcable): Remove decl.
16630 (ggc_mark_rtx, ggc_mark_tree): Use ggc_set_mark.
16631 (ggc_mark_rtvec_children): New.
16632 (ggc_mark_rtvec, ggc_mark_string, ggc_mark): New.
16633 (ggc_mark_if_gcable): New decl.
16634 (ggc_alloc_rtx, ggc_alloc_rtvec): Remove decl.
16635 (ggc_alloc_tree, ggc_alloc): Likewise.
16636 (ggc_set_mark_rtx, ggc_set_mark_rtvec, ggc_set_mark_tree): Likewise.
16637 (ggc_alloc_obj): New decl.
16638 (ggc_alloc_rtx, ggc_alloc_rtvec): New macros.
16639 (ggc_alloc_tree, ggc_alloc): Likewise.
16640 (ggc_set_mark): New decl.
16641 * rtl.h (struct rtx_def): Remove gc_mark.
16642 (struct rtvec_def): Likewise.
16643 * tree.h (struct tree_common): Likewise.
16645 Wed Oct 13 01:44:29 1999 Carol LePage <carolo@hal.com>
16647 * configure.in (sparc-hal-solaris2*): Fix xm_file, xm_defines,
16648 float_format and thread_file definitions.
16649 * configure: Rebuilt.
16651 Wed Oct 13 09:25:03 1999 Niels Möller <nisse@lysator.liu.se>
16653 * extend.texi (Function Names): Document types of function names.
16655 Wed Oct 13 00:45:04 1999 Bernd Schmidt <bernds@cygnus.co.uk>
16657 * reload1.c (reload_reg_free_for_value_p): RELOAD_OTHER reloads with
16658 an earlyclobbered output conflict with RELOAD_INPUT reloads.
16660 Tue Oct 12 23:28:28 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
16662 * sh.h (BOOL_TYPE_SIZE): Don't use INT_TYPE_SIZE / CHAR_TYPE_SIZE.
16664 Tue Oct 12 23:19:32 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
16666 * sh.h (REGISTER_MOVE_COST): Change PR_REG to PR_REGS.
16668 Tue Oct 12 17:09:38 1999 David Edelsohn <edelsohn@gnu.org>
16670 * collect2.c (main): Do prelimnary link on AIX if rflag.
16672 Tue Oct 12 09:45:19 1999 Jonathan Larmour <jlarmour@cygnus.co.uk>
16674 * config/rs6000/eabi-ctors.c (__do_global_ctors): Run through
16675 __CTOR_LIST__ in opposite order, which is the correct order for sorted
16677 (__do_global_dtors): similarly for __DTOR_LIST__.
16679 Fri Oct 8 19:46:03 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
16680 Diego Novillo <dnovillo@cygnus.com>
16682 * config/sh/sh.h (REGISTER_MOVE_COST): Handle moves from T_REGS to
16685 Tue Oct 12 07:38:41 1999 Bruce Korb <autogen@linuxbox.com>
16687 * fixincl/*: Merged "no_bogosity" branch
16688 * fixincl/fixlib.h: protect against doubly defining t_bool
16689 * fixincl/server.h: protect against doubly defining t_bool
16691 Mon Oct 11 20:18:41 1999 Jim Wilson <wilson@cygnus.com>
16693 * genoutput.c: Include toplev.h.
16695 Mon Oct 11 18:56:14 1999 Jim Wilson <wilson@cygnus.com>
16697 * config/sparc/liteelf.h (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP):
16699 * configure.in (sparclite-*-elf, sparc86x-*-elf): Don't use libgloss.h.
16700 * configure: Regenerate.
16702 Mon Oct 11 16:07:49 1999 Richard Henderson <rth@cygnus.com>
16704 * gcse.c (delete_null_pointer_checks): Returns void.
16706 Mon Oct 11 20:31:51 1999 Bernd Schmidt <bernds@cygnus.co.uk>
16708 * rtl.c (copy_rtx): Don't use accessor macros to copy fields.
16709 * emit-rtl.c (copy_insn_1): Likewise.
16711 Mon Oct 11 13:29:06 1999 Geoffrey Keating <geoffk@cygnus.com>
16713 * config/mips/mips.c (mips_build_va_list): Correct
16714 TREE_CHAIN setting when hard-float.
16715 (mips_va_start): Use corrected setting.
16716 (mips_va_arg): Likewise. Also pass a tree to build of
16717 POSTINCREMENT_EXPR rather than a naked 'int'.
16719 Sun Oct 10 18:27:27 1999 Mark Mitchell <mark@codesourcery.com>
16721 * ggc.h (ggc_push_context): Fix comment.
16722 (ggc_pop_context): Likewise.
16723 (mark_string_if_gcable): Likewise.
16724 * ggc-common.c (ggc_mark_rtx_children): Use
16725 ggc_mark_string_if_gcable.
16726 * ggc-page.c (ggc_lookup_page_table): New function.
16727 (ggc_allocated_p): Likewise.
16728 (mark_obj): Fix formatting.
16729 (ggc_mark_string_if_gcable): New function.
16730 * ggc-simple.c (ggc_allocated_strings): New variable.
16731 (ggc_strings_used): Likewise.
16732 (ggc_compare_addresses): New function.
16733 (ggc_pop_context): Pop the `any' memory too.
16734 (ggc_mark_string_if_gcable): New function.
16735 (ggc_collect): Initialize and tear down ggc_allocated_strings.
16737 Sun Oct 10 20:05:21 1999 David Edelsohn <edelsohn@gnu.org>
16739 * rs6000.md (movstrsi_?reg): Use preferred rD/rS = r5 form.
16740 (scc patterns): Disable most SImode variants if TARGET_POWERPC64.
16741 * rs6000.c (expand_block_move): Match movstrsi_?reg register
16744 Sun Oct 10 16:37:01 1999 Richard Henderson <rth@cygnus.com>
16746 * haifa-sched.c (sched_reg_n_calls_crossed): Delete.
16747 (sched_reg_live_length, sched_reg_basic_block): Delete.
16748 (current_block_num, bb_live_regs, old_live_regs): Delete.
16749 (dead_notes, struct sometimes): Delete.
16750 (sched_note_set, birthing_insn_p): Delete.
16751 (adjust_priority): Gut useless reg lifetime code.
16752 (create_reg_dead_note, attach_deaths): Delete.
16753 (attach_deaths_insn, new_sometimes_live): Delete.
16754 (finish_sometimes_live): Delete.
16755 (find_pre_sched_live, find_post_sched_live): Delete.
16756 (update_reg_usage): Delete.
16757 (find_insn_reg_weight): New, from corpse of find_pre_sched_live.
16758 (schedule_insns): Delete reg lifetime code.
16759 (sched_analyze): Use REG_SAVE_NOTE to stuff NOTE_INSN notes away.
16760 (unlink_other_notes): Adjust REG_NOTE commentary.
16761 (reemit_notes): Use REG_SAVE_NOTE.
16762 (schedule_block): Likewise.
16763 (schedule_region): Allocate bitmap of blocks in region. Use
16764 count_or_remove_death_notes. Use update_life_info.
16766 * rtl.h (REG_SAVE_NOTE): New.
16767 * rtl.c (reg_note_name): Update.
16769 Sun Oct 10 16:14:16 1999 Richard Henderson <rth@cygnus.com>
16771 * combine.c (refresh_blocks, need_refresh): New.
16772 (combine_instructions): Allocate refresh_blocks. Invoke
16773 update_life_info if needed.
16774 (distribute_notes): Mark refresh_blocks instead of installing
16776 * flow.c (update_life_info): Remove notes if GLOBAL_RM_NOTES.
16777 * basic_block.h (enum update_life_extent): Add GLOBAL_RM_NOTES.
16779 * Makefile.in (recog.o): Depend on basic-block.h.
16781 Sun Oct 10 12:03:21 1999 Richard Henderson <rth@cygnus.com>
16783 * genrecog.c (add_to_sequence): Thinko last change: delete
16784 shadowing allow_const_int variable.
16786 Sun Oct 10 08:40:00 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16788 * cppinit.c: Use HAVE_GCC_VERSION instead of explicitly testing
16789 __GNUC__ and __GNUC_MINOR__.
16791 * gansidecl.h: Likewise.
16797 * toplev.h: Likewise.
16799 * tree.c: Likewise.
16801 * tree.h: Likewise.
16803 * varray.c: Likewise.
16805 * varray.h: Likewise.
16807 Sun Oct 10 13:28:48 1999 Bernd Schmidt <bernds@cygnus.co.uk>
16809 * loop.c (find_and_verify_loops): When looking for a BARRIER, don't
16810 use one before a jump table.
16812 * rtl.def (ADDRESS): Change documentation to match reality.
16813 * md.texi: Don't document it.
16814 * gmicro.md (load address pattern): Use 'p' constraint, delete use
16817 * emit-rtl.c (copy_insn_1): Make format_ptr a const char *.
16819 Sun Oct 10 02:41:41 1999 Richard Henderson <rth@cygnus.com>
16821 * genrecog.c (add_to_sequence): Move allow_const_int test outside
16822 known predicate block; default allow_const_int true.
16823 (debug_decision_list): New.
16825 Sun Oct 10 00:43:08 1999 Richard Henderson <rth@cygnus.com>
16827 * i386.h (CC1_SPEC): Typo -- use cc1_cpu.
16829 Sat Oct 9 23:26:55 1999 Jeffrey A Law (law@cygnus.com)
16831 * gcse.c (gcse_main): Avoid global optimizations if we have a
16832 large number of basic blocks and the ratio of edges to blocks
16834 (delete_null_pointer_checks): Likewise.
16836 Sat Oct 9 23:16:01 1999 Ken Raeburn <raeburn@mit.edu>
16838 * c-common.c (check_format_info): Warn if format string isn't a
16841 Sat Oct 9 23:04:02 1999 Jonathan Larmour <jlarmour@cygnus.co.uk>
16843 * configure.in (arm*-*-*): Don't let autoconf remove brackets
16844 * configure: regenerate
16846 Sat Oct 9 13:15:53 1999 Richard Henderson <rth@cygnus.com>
16848 * alpha.md (extendsidi2): Turn into a splitter. Allow f/f.
16849 If TARGET_FIX, allow r/f. Remove cvtlq unspec pattern.
16850 (peepholes): Re-enable.
16852 Sat Oct 9 12:18:16 1999 Richard Henderson <rth@cygnus.com>
16854 * Makefile.in (flow.o): Depend on TREE_H.
16855 * basic-block.h (REG_SET_EQUAL_P): New.
16856 (XOR_REG_SET): New.
16857 (n_edges): Declare.
16858 (free_regset_vector): Remove declaration.
16859 (flow_delete_insn_chain): Declare.
16860 (enum update_life_extent): New.
16861 (update_life_info, count_or_remove_death_notes): Declare.
16862 * combine.c (distribute_notes) [REG_DEAD]: Stop search at bb->head.
16863 Verify register live at bb->global_live_at_start before adding USE.
16864 * flow.c (HAVE_epilogue, HAVE_prologue): Provide default.
16865 (CLEAN_ALLOCA): New.
16867 (PROP_*): New flags.
16868 (find_basic_blocks_1): Use alloc_EXPR_LIST.
16869 (clear_edges): Zero n_edges.
16870 (make_edge): Increment n_edges.
16871 (split_edge): Don't allocate bb->local_set. Increment n_edges.
16872 (flow_delete_insn_chain): Export.
16873 (delete_block): Decrement n_edges.
16874 (merge_blocks_nomove): Likewise.
16875 (life_analysis): Give life_analysis_1 PROP flags.
16876 (verify_wide_reg_1, verify_wide_reg): New.
16877 (verify_local_live_at_start): New.
16878 (update_life_info): Rewrite to call into propogate_block.
16880 (mark_regs_live_at_end): After reload, if epilogue as rtl,
16881 always mark stack pointer. Conditionally mark PIC register.
16882 After reload, mark call-saved registers, return regsiters.
16883 (life_analysis_1): Accept PROP flags not remove_dead_code.
16884 Call mark_regs_live_at_end before zeroing regs_ever_live.
16885 Use calculate_global_regs_live. Copy global_live_at_end before
16886 calling final propagate_block. Zero reg_next_use on exit.
16887 (calculate_global_regs_live): New.
16888 (allocate_bb_life_data): Don't allocate bb->local_set.
16889 (init_regset_vector, free_regset_vector): Remove.
16890 (propagate_block): Accept FLAGS not FINAL or REMOVE_DEAD_CODE.
16891 Test flags before every operation. Warn if prologue/epilogue insn
16892 would have been deleted.
16893 (mark_set_regs, mark_set_1): Accept and use FLAGS.
16894 Use alloc_EXPR_LIST.
16895 (mark_used_regs): Accept and use FLAGS, not FINAL.
16896 Remove special handling for RETURN.
16897 (try_pre_increment): Use alloc_EXPR_LIST.
16898 (dump_flow_info): Dump n_edges.
16899 (unlink_insn_chain, split_hard_reg_notes): Remove.
16900 (maybe_add_dead_note, maybe_add_dead_note_use): Remove.
16901 (find_insn_with_note, new_insn_dead_notes): Remove.
16902 (update_n_sets, sets_reg_or_subreg_1, sets_reg_or_subreg): Remove.
16903 (maybe_remove_dead_notes, prepend_reg_notes): Remove.
16904 (replace_insns): Remove.
16905 (count_or_remove_death_notes): New.
16906 (verify_flow_info): Abort on error after all checks.
16907 (remove_edge): Decrement n_edges.
16908 (remove_fake_edges): Tweak format.
16909 * haifa-sched.c (schedule_insns): Use split_all_insns.
16910 * output.h (update_life_info): Remove declaration.
16911 * recog.c (split_all_insns): From the corpse of split_block_insns,
16912 do the whole function block by block. Use update_life_info.
16913 (recog_last_allowed_insn): New.
16914 (recog_next_insn): Mind it.
16915 (peephole2_optimize): Set it. Walk backwards through blocks.
16916 Use update_life_info.
16917 * rtl.h (update_flow_info, replace_insns): Remove declarations.
16918 (split_all_insns): Declare.
16919 * toplev.c (rest_of_compilation): Thread prologue before flow2.
16920 Use split_all_insns.
16922 * i386.md (or -1 peep2s): Disable.
16924 Fri Oct 8 17:49:08 1999 Richard Henderson <rth@cygnus.com>
16926 * config/mips/mips.md (movstrsi+[123]) : Combine these into
16927 a single pattern. Scrap the 'd' versions as unnecessary.
16929 * config/mips/mips.md (tablejump_internal3,tablejump_mips161,
16930 tablejump_mips162,tablejump_internal4): The operands to a
16931 label_ref must be VOIDmode.
16933 Fri Oct 8 16:12:42 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16935 * configure.in (c-mbchar): Append, don't overwrite, `extra_c_flags'.
16937 Fri Oct 8 11:58:34 1999 Richard Henderson <rth@cygnus.com>
16939 * mips.c (mips_va_arg) [EABI]: Return addr_rtx.
16941 Fri Oct 8 11:58:34 1999 Richard Henderson <rth@cygnus.com>
16943 * lists.c (init_EXPR_INSN_LIST_cache): Don't need to zap the
16944 cache every function if ggc_p.
16946 Fri Oct 8 18:46:11 1999 Bernd Schmidt <bernds@cygnus.co.uk>
16948 * jump.c (duplicate_loop_exit_test): Use copy_insn/copy_insn_1
16949 instead of copy_rtx. Accept sequences that contain asm statements.
16950 * emit-rtl.c (copy_insn_1, copy_insn): New functions.
16951 (copy_insn_scratch_in, copy_insn_scratch_out, copy_insn_n_scratches,
16952 orig_asm_operands_vector, copy_asm_operands_vector,
16953 orig_asm_constraints_vecotr, copy_asm_constraints_vector): New static
16955 * rtl.h (copy_insn, copy_insn_1): Declare.
16957 Fri Oct 8 13:08:12 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16959 * Makefile.in (insn-recog.o): Depend on hard-reg-set.h and resource.h.
16961 * alpha.h (ASM_OUTPUT_MI_THUNK): Pass the correct number of
16962 arguments to `current_file_function_operand'.
16964 * genrecog.c: Include hard-reg-set.h and resource.h in the
16965 generated output file.
16967 * real.c: Include tm_p.h.
16969 Fri Oct 8 18:46:11 1999 Bernd Schmidt <bernds@cygnus.co.uk>
16971 * i386.md (prologue_allocate_stack): Add '=' constraint letter on
16974 Thu Oct 7 23:06:50 1999 Richard Henderson <rth@cygnus.com>
16976 * rs6000.md (fix_truncdfsi2_internal+1): Emit a clobber
16977 before the fctiwz insn.
16979 Thu Oct 7 22:53:00 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
16980 Mark Mitchell <mark@codesourcery.com>
16982 * tree.c (make_lang_type_fn): New funtion pointer.
16983 (make_lang_type): Call it.
16984 * tree.h (make_lang_type): Declare.
16985 (make_lang_type_fn): Likewise.
16986 * rs6000.c (rs6000_build_va_list): Use make_lang_type.
16988 Thu Oct 7 00:36:17 1999 Diego Novillo <dnovillo@cygnus.com>
16990 * config/rs6000/rs6000.c (secondary_reload_class): For TARGET_ELF
16991 make sure that HIGH instructions are copied into BASE_REGS.
16993 Thu Oct 7 17:02:34 1999 Jason Merrill <jason@yorick.cygnus.com>
16995 * expr.c (expand_expr, TARGET_EXPR): Set TREE_USED sooner.
16997 Thu Oct 7 17:01:58 1999 Greg McGary <gkm@gnu.org>
16999 * c-decl.c (finish_struct): Use simpler method of
17000 removing elements of a singly-linked list.
17002 Thu Oct 7 15:23:28 1999 Michael Meissner <meissner@cygnus.com>
17004 * alpha.md (peephole2's): Comment out peephole2's that generate
17007 Thu Oct 7 12:00:53 1999 Richard Henderson <rth@cygnus.com>
17009 * genrecog.c (add_to_sequence): Disable mode check for
17012 Thu Oct 7 20:14:16 1999 Bernd Schmidt <bernds@cygnus.co.uk>
17014 * ggc-simple.c (init_ggc): Set empty_string.
17016 Thu Oct 7 01:13:15 1999 Richard Henderson <rth@cygnus.com>
17018 * configure.in: Detect mmap. Add --with-gc=foo to select
17019 garbage collector; default to page if mmap available.
17020 * Makefile.in (GGC): Substitute.
17022 Wed Oct 6 23:56:30 1999 Richard Henderson <rth@cygnus.com>
17024 * c-decl.c (ggc_p): Enable.
17026 Wed Oct 6 17:17:08 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17028 * flow.c (verify_flow_info): Make it extern & unconditionally define.
17030 1999-10-06 Brendan Kehoe <brendan@cygnus.com>
17032 * sparc/sp86x-elf.h (SUBTARGET_SWITCHES): Add missing doc
17033 string for little-endian-data.
17035 Wed Oct 6 16:10:35 1999 Michael Meissner <meissner@cygnus.com>
17037 * varray.h (VARRAY_CHECK): Fix up appropriate revision check, in
17038 case somebody tries to compile --enable-checking code with gcc
17041 Wed Oct 6 12:22:50 1999 Richard Henderson <rth@cygnus.com>
17043 * genrecog.c (add_to_sequence): Verify operand to label_ref is
17046 Wed Oct 6 10:21:15 1999 Richard Henderson <rth@cygnus.com>
17048 * genconfig.c (main): Disable HAVE_conditional_arithmetic.
17049 * jump.c (jump_optimize_1): Document why.
17051 Wed Oct 6 10:41:56 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17053 * collect2.c (scan_prog_file, scan_libraries): Prototype function
17054 pointers and casts for `int_handler' and `quit_handler'.
17056 * flow.c (verify_flow_info, split_hard_reg_notes,
17057 find_insn_with_note, sets_reg_or_subreg_1, prepend_reg_notes,
17058 remove_edge, remove_fake_successors): Add static prototypes.
17059 (verify_flow_info): Wrap with macro ENABLE_CHECKING.
17060 (mark_set_1): Initialize variable `regno'.
17061 (unlink_insn_chain): Likewise for variable `curr'.
17062 (remove_fake_edges): Remove unused variables `e', `tmp' and `last'.
17064 * loop.c (strength_reduce): Initialize variable
17065 `unrolled_insn_copies'.
17066 (cmp_combine_givs_stats, cmp_recombine_givs_stats): Add static
17067 prototypes. Change these functions to take const PTR parameters
17068 to avoid prototype conflict when used as the comparson argument
17070 (check_dbra_loop): Initialize variable `comparison_val'.
17072 * reload.c (debug_reload_to_stream, debug_reload): Add prototypes.
17073 (get_secondary_mem): Mark parameter `x' with ATTRIBUTE_UNUSED.
17074 (find_valid_class): Initialize variable `best_class'.
17075 (find_reloads): Call memcpy, not bcopy.
17077 * reload1.c (gen_mode_int, dump_needs): Add prototypes.
17078 (hard_reg_use_compare): Don't needlessly cast away const.
17079 (reload_reg_class_lower): Likewise.
17080 (choose_reload_regs): Initialize variable `regno'.
17082 Tue Oct 5 16:34:12 1999 Paul Burchard <burchard@pobox.com>
17084 * ggc-page.c (GGC_ALWAYS_COLLECT): Fix typo when undef'ing.
17086 Tue Oct 5 16:14:40 1999 Michael Meissner <meissner@cygnus.com>
17088 * libgcc1-test.c (toplevel): Include stddef.h to get size_t.
17089 ({,d}discard): Add forward declarations. Declare parameter as
17091 (main_without_main): Explicitly declare return type to be int.
17092 (memcpy): Properly declare.
17094 * libgcc2.c (toplevel): If inhibit_libc is defined and not
17095 building the trampoline support, declare malloc, free, and
17097 (__clear_cache): Mark arguments as potentially unused.
17099 * frame.c (toplevel): If inhibit_libc is defined, declare
17102 Tue Oct 5 12:00:32 1999 Richard Henderson <rth@cygnus.com>
17104 * flow.c (make_edge): Accept an optional 2D bitmap in which
17105 to cache edge existence. Update all callers.
17106 (make_label_edge, make_eh_edge): Pass through the edge cache.
17107 (make_edges): Provide the cache.
17109 Tue Oct 5 12:16:49 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17111 * mbchar.c (literal_codeset, local_mbtowc, local_mblen): Constify
17113 (local_mbtowc): Change the type of variable `i' from int to size_t.
17115 * mbchar.h (ISSJIS1, ISSJIS2): Use parens around && within ||.
17116 (local_mbtowc, local_mblen, literal_codeset): Constify a char*.
17118 Tue Oct 5 11:34:52 1999 Michael Meissner <meissner@cygnus.com>
17120 * ggc-common.c (toplevel): Reorder includes, so that ggc.h comes
17121 after other includes that define the appropriate types. Include
17122 tm_p.h for getting user prototypes.
17123 * ggc-callbacks.c (toplevel): Ditto.
17124 * ggc-none.c (toplevel): Ditto.
17125 * gcc-page.c (toplevel): Ditto.
17126 * ggc-simple.c (toplevel): Ditto.
17128 Mon Oct 4 16:48:16 1999 Diego Novillo <dnovillo@cygnus.com>
17129 Jonathan Larmour <jlarmour@cygnus.co.uk>
17131 * config/mips/mips.c (mips_move_2words): Split doubles if
17132 ISA >= 3, !TARGET_64BIT, and destination is not an FP register.
17134 Mon Oct 4 21:47:31 1999 Richard Henderson <rth@cygnus.com>
17136 * genrecog.c (struct decision_test): New.
17137 (struct decision): Remove test-related members, sort the rest by size.
17138 (IS_SPLIT): Simplify.
17139 (new_decision, new_decision_test): New.
17140 (add_to_sequence): Use them. No special handling for args of
17142 (maybe_both_true): Renamed from not_both_true; return sense changed.
17143 (maybe_both_true_1, maybe_both_true_2): New. Broken out
17144 of maybe_both_true and adjusted for decision_test.
17145 (position_merit): Remove.
17146 (nodes_identical, nodes_identical_1): New, broken out of merge_trees.
17147 (merge_accept_insn): New, broken out of merge_trees.
17148 (merge_trees): Use them. No special case for c_test; no node
17149 splitting; use test type instead of position_merit.
17150 (factor_tests): New.
17151 (simplify_tests): New.
17152 (break_out_subroutines): Don't write code now.
17153 (find_afterward): New.
17154 (write_afterward, write_switch, write_cond): New.
17155 (write_action, is_unconditional): New.
17156 (write_node): New. Use them.
17157 (write_tree_1): Rewrite. Use the new functions above.
17158 (write_tree): Remove afterward processing.
17159 (write_subroutine): Simplify function variant emission.
17160 (write_subroutines): New.
17161 (same_codes, clear_codes): Remove.
17162 (same_modes, clear_modes): Remove.
17163 (write_header): New, broken out of main.
17164 (make_insn_sequence): Use new_decision and new_decision_test.
17165 (process_tree): New, broken out of main.
17166 (main): Adjust for merge_trees interface change.
17167 Don't #define operands in the output file.
17168 (record_insn_name): New, broken out of make_insn_sequence.
17169 (debug_decision_2, debug_decision_1, debug_decision_0): New.
17170 (debug_decision): New.
17172 1999-10-04 21:58 -0700 Zack Weinberg <zack@bitmover.com>
17174 * resource.c (find_free_register): Mark class_str argument const.
17175 * resource.h: Update prototype to match.
17177 * i386.h (PREDICATE_CODES): Add entry for long_memory_operand.
17178 * i386.md: Give all anonymous insns names.
17180 Mon Oct 4 21:12:02 1999 Jeffrey A Law (law@cygnus.com)
17182 * flow.c (merge_blocks): Avoid assing BASIC_BLOCK for non-existent
17185 Mon Oct 4 21:01:39 1999 Richard Henderson <rth@cygnus.com>
17187 * toplev.c (dbr_sched_time): Unconditional.
17188 (peephole2_time): New.
17189 (compile_file): Add pass numbers to all of the dump file suffixes.
17190 Dump peephole2_time. Don't dump times for non-applicable passes.
17191 (rest_of_compilation): Add pass numbers to dump file suffixes.
17192 Conditionalize calls to the scheduler.
17193 * invoke.texi: Update.
17195 Mon Oct 4 20:25:13 1999 Anthony Green <green@cygnus.com>
17197 * flow.c (make_edges): Fix insn iteration.
17198 (find_basic_blocks): Assign NULL_RTX, not 0, to rtx.
17199 (find_basic_blocks_1): Fix spelling mistake.
17201 Mon Oct 4 16:56:11 1999 Richard Henderson <rth@cygnus.com>
17203 * tree.c (build1): Set TREE_SIDE_EFFECTS for expressions that
17204 always have side-effects. Use memset not bzero.
17205 (make_node): Likewise.
17207 Mon Oct 4 16:22:20 1999 Mark Mitchell <mark@codesourcery.com>
17209 * stmt.c (expand_anon_union_decl): When any of the elements of the
17210 union is addressable, so is the entire union.
17212 Mon Oct 4 11:38:33 1999 Richard Henderson <rth@cygnus.com>
17214 * sbitmap.c (sbitmap_ones): Don't set too many bits.
17216 * bitmap.h (enum bitmap_bits): Add BITMAP_XOR.
17217 * bitmap.c (bitmap_operation): Return true iff TO changed.
17218 (bitmap_equal_p): New.
17219 (bitmap_bit_p): Tidy arithmetic.
17220 (debug_bitmap_file): Likewise.
17222 Mon Oct 4 11:28:37 1999 Richard Henderson <rth@cygnus.com>
17224 * toplev.c (rest_of_compilation): Turn on cse_not_expected
17225 before cse2 instead of after.
17227 Mon Oct 4 09:55:17 1999 Stan Cox <scox@cygnus.com>
17229 * mips.h (GO_IF_LEGITIMATE_ADDRESS): Let leasi/liadi handle large
17232 Mon Oct 4 08:54:12 1999 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
17234 * cppinit.c (is_idchar initializer): Loosen tests to accept
17237 Mon Oct 4 02:31:20 1999 Mark Mitchell <mark@codesourcery.com>
17239 * mips.md: Define conditional move patterns for floating point
17240 operands and DI mode conditions.
17242 Mon Oct 4 02:12:41 1999 Mark Mitchell <mark@codesourcery.com>
17244 * tree.c (make_node): Set TREE_SIDE_EFFECTS for expressions that
17245 always have side-effects.
17247 Sun Oct 3 14:14:16 1999 Jeffrey A Law (law@cygnus.com)
17249 * mn10200.c (asm_file_start): Fix typo.
17251 * cppinit.c (is_idchar initializer): Tighten tests for when
17252 to put the table into initialized memory.
17254 * ggc-none.c (ggc_alloc_rtvec): An rtvec is an array of rtx,
17255 not an array of rtunion.
17256 * gcc-page.c (ggc_alloc_rtvec): Similarly.
17257 * gcc-simple (ggc_free_rtvec): Similarly.
17259 * genattrtab.c (simplify_cond): Make TESTS an array of rtxs, instead
17262 * mbchar.h: Add missing #endif.
17264 * t-fr30 (LIB2FUNCS_EXTRA): Remove definition.
17265 (FPBIT, DPBIT): Define.
17267 Sun Oct 3 12:44:05 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17269 * print-tree.c (print_node, indent_to): Remove redundant prototypes.
17271 * profile.c (instrument_arcs, output_gcov_string,
17272 tablejump_entry_p): Add static prototypes.
17273 (output_gcov_string): Constify a char*.
17275 * regmove.c (replacement_quality, fixup_match_2): Add static
17278 * resource.h (reg_dead_p): Add extern prototype.
17280 * rtl.c (trim_filename): Add static prototype.
17282 * scan-decls.c (skip_to_closing_brace): Likewise.
17284 * stmt.c (expand_decl_cleanup_no_eh): Hide definition.
17285 (expand_end_case): Initialize variable `range'.
17286 (emit_case_nodes): Remove unused prototype `rtx_fn'.
17288 * varasm.c (asm_emit_uninitialised): Add static prototype.
17289 (asm_emit_uninitialised, assemble_variable): Mark parameter with
17292 Sun Oct 3 12:24:52 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17294 * cpplib.c (if_directive_nameo): Add static prototype.
17296 * cse.c (cse_insn): Remove unused variable `p'.
17298 * except.c (create_rethrow_ref, push_entry,
17299 receive_exception_label, new_eh_region_entry, find_func_region,
17300 clear_function_eh_region, process_nestinfo): Add static prototypes.
17301 (get_reg_for_handler): Hide definition.
17302 (process_nestinfo): Initialize variable `extra_handlers'.
17304 * expr.h (expand_builtin_longjmp): Add extern prototype.
17306 * final.c (final_addr_vec_align, align_fuzz): Add static prototypes.
17308 * function.c (prepare_function_start): Likewise.
17309 (pop_function_context_from): Mark parameter `context' with
17311 (push_temp_slots_for_block, flush_addressof): Hide definition.
17313 * gcov.c (init_arc, reverse_arcs, create_program_flow_graph,
17314 solve_program_flow_graph, calculate_branch_probs,
17315 function_summary, main, fancy_abort): Add prototypes.
17317 * gen-protos.c (add_hash, parse_fn_proto, main): Likewise.
17318 (add_hash): Constify a char*.
17320 * ggc-common.c (ggc_mark_rtx_ptr, ggc_mark_tree_ptr,
17321 ggc_mark_tree_varray_ptr, ggc_mark_tree_hash_table_ptr,
17322 ggc_mark_string_ptr, ggc_mark_tree_hash_table_entry): Add prototypes.
17324 * integrate.c (expand_inline_function_eh_labelmap): Likewise.
17326 * lists.c (free_list, zap_lists): Likewise.
17328 Sun Oct 3 12:05:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17330 * alias.c (nonlocal_reference_p): Add static prototype.
17332 * bitmap.c (bitmap_element_allocate): Prototype args in function
17335 * builtins.c (stabilize_va_list): Add static prototype.
17336 (expand_builtin_va_arg): Constify a char*.
17338 * c-lex.c (getch, put_back, extend_token_buffer_to,
17339 read_line_number, token_getch, token_put_back): Add static
17342 * c-parse.gperf (hash, is_reserved_word): Likewise.
17344 * cccp.c (is_dir_separator): Likewise.
17346 Sat Oct 2 16:07:56 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17348 * graph.h: New file to prototype functions exported by graph.c.
17350 * Makefile.in (graph.o, toplev.o): Depend on graph.h.
17352 * graph.c: Include graph.h.
17354 * toplev.c: Likewise. Remove redundant prototypes.
17356 Sat Oct 2 11:28:33 1999 Krister Walfridsson <cato@df.lth.se>
17358 * invoke.texi: Removed duplicated description for -Q.
17360 Sat Oct 2 11:16:00 1999 Jim Kingdon <http://developer.redhat.com>
17362 * extend.texi: Grammar fix in __extension__ text.
17364 Sat Oct 2 11:06:31 1999 Richard Henderson <rth@cygnus.com>
17366 * md.texi (define_peephole2): New section.
17368 Sat Oct 2 10:57:56 1999 Jan Hubicka <hubicka@freesoft.cz>
17370 * i386.md (mov?i patterns): Fix handling of TARGET_USE_MOV0
17371 (mov $-1 to or peepholer): Enable for pentium when optimizing for
17374 Sat Oct 2 10:55:25 1999 Jan Hubicka <hubicka@freesoft.cz>
17376 * builtins.c (expand_builtin_strlen): Fix best mode searching loop.
17378 Sat Oct 2 10:53:22 1999 Jan Hubicka <hubicka@freesoft.cz>
17380 * i386.md (ffs expander): Emit Pentium friendly code for
17383 Sat Oct 2 02:48:21 1999 Mark P. Mitchell <mark@codesourcery.com>
17385 * tree.c (build): Don't look at TREE_SIDE_EFFECTS or TREE_RAISES
17387 (build1): Likewise.
17389 Fri Oct 1 18:01:11 1999 Bernd Schmidt <bernds@cygnus.co.uk>
17391 * i386elf.h (TARGET_DEFAULT): Use symbolic constants.
17393 Fri Oct 1 12:42:53 1999 Andreas Schwab <schwab@suse.de>
17395 * config/m68k/m68k.c (use_return_insn): Return false if the pic
17396 register is in use.
17398 Fri Oct 1 10:56:06 1999 Bernd Schmidt <bernds@cygnus.co.uk>
17400 * md.texi (No Constraints): Delete section.
17401 * Makefile.in (genattrtab.o): Don't depend on "insn-config.h".
17402 * final.c (final_scan_insn): We always have register constraints.
17403 * genattrtab.c: Don't include "insn-config.h".
17404 (write_attr_case): We always have register constraints.
17405 * genconfig.c (register_constraint_flag): Delete.
17406 (walk_insn_part): Don't check whether we have register constraints.
17407 (main): Don't write out "#define REGISTER_CONSTRAINTS".
17408 * genoutput.c (have_constraints): Delete.
17409 (main): Don't set it.
17410 (output_operand_data): We always have constraints.
17411 (scan_operands): Likewise.
17412 (compare_operands): Likewise.
17413 * local-alloc.c (block_alloc): We always have constraints.
17414 (requires_inout): Always compile this function.
17415 * recog.c (extract_insn): We always have constraints.
17416 (constrain_operands, reg_fits_class_p): Always compile these
17418 * recog.h (struct recog_data): Delete non-REGISTER_CONSTRAINTS
17420 (struct insn_operand_data): Likewise.
17421 * regclass.c (regclass): We always have constraints.
17422 (record_reg_classes, copy_cost, record_address_regs,
17423 auto_inc_dec_reg_p): Always compile these functions.
17424 * regmove.c (regmove_optimize): We always have constraints.
17425 * reload.c (find_reloads): Likewise.
17426 * reload1.c (reload): Likewise.
17427 (reload_cse_simplify_operands): Likewise.
17428 * i860.c (output_delay_insn): Likewise.
17430 Thu Sep 30 23:04:41 1999 Mark P. Mitchell <mark@codesourcery.com>
17432 * iris6.h (BUILD_VA_LIST_TYPE): Define.
17434 Thu Sep 30 18:44:50 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
17436 * rs6000.c (rs6000_build_va_list): Create a TYPE_DECL node
17437 for the va_list record.
17439 Thu Sep 30 18:34:54 1999 Jan Hubicka <hubicka@freesoft.cz>
17441 * i386.c (ix86_adjust_cost): Ignore false ebp dependencies in
17444 Thu Sep 30 18:31:36 1999 Jan Hubicka <hubicka@freesoft.cz>
17446 * alias.c: Include insn-flags.h.
17447 * Makefile.in (alias.o): Update.
17449 Thu Sep 30 18:21:30 1999 Jan Hubicka <hubicka@freesoft.cz>
17451 * i386.c (ix86_expand_int_movcc): Convert LEU and GTU comparisons
17452 to LTU and GEU. Handle more cases using sbb.
17454 Thu Sep 30 18:18:39 1999 Jan Hubicka <hubicka@freesoft.cz>
17456 * i386.md (truncatexfdf splitters): Do not use subreg.
17457 (fop XFmode patterns): Fix mode in operand testing.
17459 Thu Sep 30 18:04:13 1999 Richard Henderson <rth@cygnus.com>
17461 * jump.c (jump_optimize_1): Amend last change to test only the
17462 form of the operand, not the insn.
17464 * jump.c (jump_optimize_1) [conditional_move]: Use general_operand
17465 not register_operand to determine when B may need preloading.
17467 Thu Sep 30 17:39:16 1999 Richard Henderson <rth@cygnus.com>
17469 * alpha.md (*): Use nonimmediate not general_operand for SET_DEST.
17470 (ffsdi2, extxl, insxh, mskxh): Add missing DImode to SET_SRC.
17471 (call-value patterns): Move to end of file.
17472 (*): Remove mode from label_ref in (pc) context.
17473 (movstrqi): Use memory not general_operand for BLKmode operands.
17474 (prologue_stack_probe_loop, builtin_longjmp): Add missing mode
17475 to register_operand operands.
17476 (peep2 patterns): Convert from commented-out peephole patterns.
17478 Thu Sep 30 14:39:17 1999 Bernd Schmidt <bernds@cygnus.co.uk>
17480 * tree.h (enum built_in_function): Rename BUILT_IN_DWARF_REG_SIZE
17481 to BUILT_IN_INIT_DWARF_REG_SIZES.
17482 * builtins.c (expand_builtins, case BUILT_IN_INIT_DWARF_REG_SIZES):
17483 Renamed from BUILT_IN_DWARF_REG_SIZE; call
17484 expand_builtin_init_dwarf_reg_sizes.
17485 * c-decl.c (init_decl_processing): Replace __builtin_dwarf_reg_size
17486 with __builtin_init_dwarf_reg_size_table.
17487 * dwarf2out.c (struct reg_size_range): Delete.
17488 (expand_builtin_init_dwarf_reg_sizes): New function.
17489 (expand_builtin_dwarf_reg_size): Delete.
17490 * except.h (expand_builtin_init_dwarf_reg_sizes): Declare.
17491 (expand_builtin_dwarf_reg_size): Don't declare.
17492 * libgcc2.c (dwarf_reg_size_table_initialized): New.
17493 (dwarf_reg_size_table): New.
17494 (init_reg_size_table): New function.
17495 (copy_reg): Use dwarf_reg_size_table.
17496 (eh_context_initialize): Make sure dwarf_reg_size_table is initialized
17499 Thu Sep 30 05:40:34 1999 Richard Earnshaw <rearnsha@arm.com>
17501 * c-lang.c (finish_file case ndef ASM_OUTPUT_{CON,DE}STRUCTOR):
17502 Correctly build argument list to constructor and destructor functions.
17504 Thu Sep 30 00:13:27 1999 Dirk Zoller <duz@rtsffm.com>
17506 * c-tree.h (warn_float_equal): Declare.
17507 * c-decl.c (warn_float_equal): Define.
17508 (c_decode_option): Recognize -W[no-]float-equal.
17509 * c-typeck.c (build_binary_op): Conditionally warn
17510 about equality tests of floating point types.
17511 * toplev.c (documented_lan_options): Add -W[no-]float-equal.
17512 * invoke.texi: Add docs for -Wfloat-equal warning.
17514 Wed Sep 29 23:43:39 1999 Jeffrey A Law (law@cygnus.com)
17516 * h8300.h (INIT_TARGET_OPTABS): Use init_one_optab instead of
17517 generating RTL directly.
17518 * mips.h (INIT_TARGET_OPTABS): Likewise.
17519 * mn10200.h (INIT_TARGET_OPTABS): Likewise.
17521 * expr.h (init_mov_optab): Delete declaration
17523 * h8300.c (WORD_REG_USED): Update to avoid useless register
17524 saves in interrupt functions and functions which never return.
17526 * cse.c (struct set): Delete inner_dest_loc field.
17527 (cse_insn): Remove assignments to inner_dest_loc field.
17529 Wed Sep 29 16:06:20 1999 Richard Henderson <rth@cygnus.com>
17531 * ggc-page.c: Don't include <unistd.h> etc taken care of
17532 by "system.h". Include <sys/mman.h> afterward.
17534 Wed Sep 29 16:05:18 1999 Richard Henderson <rth@cygnus.com>
17536 * rs6000.c (rs6000_encode_section_info): If ggc_p, use
17539 Tue Sep 28 16:45:40 1999 David Edelsohn <edelsohn@gnu.org>
17541 * xcoffout.c (xcoffout_declare_function): Add documentation.
17542 * rs6000.c (num_insns_constant_wide): Use TARGET_POWERPC64 not
17543 TARGET_64BIT. Compare constant to -1, not bit pattern.
17544 (easy_fp_constant): Use TARGET_POWERPC64 not TARGET_64BIT.
17545 (expand_block_move): Allow 8 DImode loads for PowerPC64. Fix
17548 Tue Sep 28 16:43:14 1999 Nick Clifton <nickc@cygnus.com>
17550 * dwarf2out.c (add_abstract_origin_attribute): Abort if
17551 origin_die is NULL.
17552 (gen_inlined_enumeration_type_die): Do not abort if the type has
17553 not been writeen out.
17554 (gen_inlined_structure_type_die): Do not abort if the type has
17555 not been writeen out.
17556 (gen_inlined_union_type_die): Do not abort if the type has
17557 not been writeen out.
17558 (gen_tagged_type_instantiation_die): Do not abort if the type
17559 has not been written out.
17561 Tue Sep 28 14:33:47 1999 Bernd Schmidt <bernds@cygnus.co.uk>
17563 * c-decl.c (init_decl_processing): If MD_INIT_BUILTINS is defined,
17565 * reg-stack.c (straighten_stack): Copy hard reg set with
17568 Tue Sep 28 01:11:05 1999 Richard Henderson <rth@cygnus.com>
17570 * builtins.c (stabilize_va_list): Stabilize array type va_list
17571 to a pointer type, not the base record type.
17572 (expand_builtin_va_copy): Dereference the pointers explicitly;
17573 use the correct size for the copy.
17575 * rs6000.c (rs6000_va_start): Dereference valist to get to the record.
17576 (rs6000_va_arg): Likewise.
17578 Mon Sep 27 23:27:21 1999 Richard Henderson <rth@cygnus.com>
17580 * rtl.h (struct rtx_def): Move gc_mark to align mode field.
17582 Mon Sep 27 23:20:29 1999 Mark Mitchell <mark@codesourcery.com>
17584 * tree.h (struct tree_decl): Use `bclass', not `class', in name of
17586 (DECL_BUILT_IN_CLASS): Adjust accordingly.
17588 Mon Sep 27 23:03:16 1999 Richard Henderson <rth@cygnus.com>
17590 * ggc-page.c (GGC_MIN_LAST_ALLOCATED): New.
17591 (init_ggc): Use it instead of a constant.
17592 (ggc_collect): Bound allocated_last_gc by it.
17594 Mon Sep 27 19:06:04 1999 Jeffrey A Law (law@cygnus.com)
17596 * fixinc/fixinc.irix (stdio.h): Hack stdio.h to avoid problems
17599 Mon Sep 27 19:40:17 CEST 1999 Marc Espie <espie@cvs.openbsd.org>
17601 * configure.in (mips*el-*-openbsd*): Don't duplicate default settings.
17602 (mips*-*-openbsd*): Let big endian configuration be a fragment.
17603 * configure: Regen.
17604 * config/mips/openbsd.h: New, OpenBSD little endian target.
17605 * config/mips/openbsd-be.h: New, OpenBSD big endian target fragment.
17606 * config/mips/xm-openbsd.h: New, OpenBSD host.
17608 Mon Sep 27 10:28:48 1999 Andreas Schwab <schwab@suse.de>
17610 * config/m68k/m68k.c (output_function_prologue,
17611 output_function_epilogue): Use
17612 current_function_uses_pic_offset_table instead of regs_ever_live
17613 to decide whether to save/restore pic register.
17614 (legitimize_pic_address): Don't modify regs_ever_live any more.
17616 Sun Sep 26 10:55:36 1999 Mark Mitchell <mark@codesourcery.com>
17618 * function.h (struct function): Add x_dont_save_pending_sizes_p.
17619 * stor-layout.c (variable_size): Don't add sizes to the pending
17620 sizes list if x_dont_save_pending_sizes_p is set.
17622 Sun Sep 26 16:36:52 1999 Robert Lipe (robertlipe@usa.net)
17624 * config/i386/dgux.h (SELECT_RTX_SECTION): Provide dummy argument
17625 for symbolic_operand().
17626 * config/i386/sco5.h (SELECT_RTX_SECTION): Likewise.
17628 Sun Sep 26 07:37:11 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17630 * combine.c (gen_rtx_combine): Add missing call to va_end().
17632 * final.c (asm_fprintf): Likewise.
17634 * genattrtab.c (attr_rtx): Likewise.
17636 Sat Sep 25 13:11:07 1999 Jeffrey A Law (law@cygnus.com)
17638 * cse.c: Update comments.
17639 (cse_insn): When converting a conditional/computed jump into
17640 an unconditional jump, always make sure a BARRIER immediately
17641 follows the converted jump. Do not delete unreachable code.
17642 (cse_basic_block): Do not delete unreachable code.
17643 * toplev.c (rest_of_compilation): Move call to
17644 delete_trivially_dead_insns after the conditional call to
17647 Sat Sep 25 09:03:17 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17649 * collect2.c (make_temp_file): Don't prototype.
17651 * gcc.c (make_temp_file): Likewise.
17653 * mips.c (mips_make_temp_file): Renamed from `make_temp_file'.
17655 Sat Sep 25 13:42:15 1999 Nick Clifton <nickc@cygnus.com>
17657 * varasm.c (asm_emit_uninitialised): New function: Generate
17658 the assembler statements necessary to declare an uninitialised
17660 (ASM_EMIT_LOCAL): New macro: Emit a local, uninitialised
17662 (ASM_EMIT_BSS): New macro: Emit an entry in the bss section.
17663 (ASM_EMIT_COMMON): New macro: Emit an entry in the common
17665 (assemble_variable): Use asm_emit_uninitialised to emit an
17666 uninitialised variable.
17668 Fri Sep 24 17:10:56 1999 Nick Clifton <nickc@cygnus.com>
17670 * combine.c (simplify_comparison): Cope with downshifting a 32 bit
17671 constant on a 64 bit host. Patch supplied by Geoffrey Keating
17672 <geoffk@cygnus.com>.
17674 Fri Sep 24 10:48:10 1999 Bernd Schmidt <bernds@cygnus.co.uk>
17676 * builtins.c (expand_builtin): Use MD_EXPAND_BUILTIN if defined.
17677 * c-common.h (builtin_function): Don't declare.
17679 * c-decl.c (duplicate_decls): Use DECL_BUILT_IN_CLASS rather than
17681 (pushdecl): Likewise.
17682 (finish_decl): Likewise.
17683 (builtin_function): New arg CLASS. Arg FUNCTION_CODE now of type
17684 int. All callers changed.
17685 Set the builtin's DECL_BUILT_IN_CLASS.
17686 * tree.h (enum built_in_class): New.
17687 (enum built_in_function): Delete NOT_BUILT_IN.
17688 (DECL_FUNCTION_CODE): The corresponding field in tree_decl is now
17690 (DECL_SET_FUNCTION_CODE): Likewise.
17691 (DECL_BUILT_IN_CLASS): New macro.
17692 (DECL_BUILT_IN): Use DECL_BUILT_IN_CLASS.
17693 (struct tree_decl): Split builtin function code field into a
17695 (builtin_function): Declare.
17697 Fri Sep 24 01:45:05 1999 Mark Mitchell <mark@codesourcery.com>
17699 * optabs.c (init_traps): Fix typo in last change.
17701 Fri Sep 24 01:10:11 1999 Mark Mitchell <mark@codesourcery.com>
17703 * toplev.c (rest_of_decl_compilation): Update comment.
17705 Fri Sep 24 11:57:06 1999 Geoffrey Keating <geoffk@cygnus.com>
17707 * config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Put the symbol
17708 in .sbss if appropriate.
17709 (EXTRA_SECTION_FUNCTIONS): Add sbss.
17710 (SBSS_SECTION_ASM_OP): New macro.
17711 * config/mips/linux.h (EXTRA_SECTION_FUNCTIONS): Add sbss.
17712 (EXTRA_SECTIONS): Add in_sbss.
17713 * config/mips/mips.h: Prototype sbss_section.
17715 Thu Sep 23 18:18:55 1999 Mark Mitchell <mark@codesourcery.com>
17717 * stmt.c (expand_start_bindings): Don't allow cleanup instructions
17720 Thu Sep 23 18:07:01 1999 Mark Mitchell <mark@codesourcery.com>
17722 * optabs.c (init_traps): Register trap_rtx as a GC root.
17724 Thu Sep 23 17:41:47 1999 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
17726 * config/mips/mips.c (function_arg_pass_by_reference): Define
17727 unconditionally, since it's called unconditionally.
17729 Thu Sep 23 13:40:02 1999 Jason Merrill <jason@yorick.cygnus.com>
17731 * toplev.c (documented_lang_options): Add -fshort-wchar.
17732 * c-decl.c (c_decode_option): Likewise.
17733 (init_decl_processing): If -fshort-wchar, use 'short unsigned int'
17735 * c-common.c, c-lex.c: Get WCHAR_TYPE_SIZE from wchar_type_node.
17736 * gcc.c (default_compilers): If -fshort-wchar,
17737 override __WCHAR_TYPE__.
17738 * tm.texi (C Dialect Options): Add -fshort-wchar.
17740 * dwarf2out.c (output_aranges): Use DW_AT_location to find the
17741 symbol for a variable.
17743 * cpplib.h (CPP_PREPROCESSED): New macro.
17744 * cpplib.c (handle_directive): Don't complain about `# NUMBER' if
17745 we're seeing this input for a second time.
17747 Thu Sep 23 12:54:49 1999 Alex Samuel <samuel@codesourcery.com>
17749 * emit-rtl.c (init_emit_once): Initialize modes first.
17751 Sun Sep 19 01:23:23 1999 Alex Samuel <samuel@codesourcery.com>
17753 * config/i386/i386.c (pic_label_name): Change to char pointer.
17754 (global_offset_table): New variable.
17755 (load_pic_register): Fill global_offset_table if it hasn't
17756 already been done. Allocate pic_label_name dynamically.
17757 * ggc.h (empty_string): New variable.
17758 * ggc-simple.c (empty_string): Likewise.
17759 (init_ggc): Allocate empty_string and add as root.
17760 * stmt.c (digit_strings): New variable.
17761 (init_stmt): Add last_block_end_note as root. Allocate and
17762 initialize digit_strings.
17763 (expand_asm_operands): Use empty_string instead of string
17764 constant. Use digit_strings instead of string constants.
17765 * profile.c (init_arc_profiler): Allocate string with
17766 ggc_alloc_string instead of xmalloc.
17767 (output_func_start_profiler): Likewise.
17768 * c-typeck.c (digest_init): Check if init is error_mark_node.
17770 Thu Sep 23 12:59:14 1999 Alex Samuel <samuel@codesourcery.com>
17771 Richard Henderson <rth@cygnus.com>
17773 * ggc-page.c: New file.
17774 * Makefile.in (ggc-page.o): New.
17776 Thu Sep 23 13:55:21 1999 Jeffrey A Law (law@cygnus.com)
17778 * invoke.texi: Document -fdelete-null-pointer-checks
17779 * toplev.c (flag_delete_null_pointer_checks): New.
17780 (f_options): Add entry for -fdelete-null-pointer-checks.
17781 (rest_of_compilation): Conditionalize null pointer check
17782 elimination on flag_delete_null_pointer_checks.
17783 (main): If -O2 or greater, enable -fdelete-null-pointer-checks
17785 1999-09-23 10:56 -0700 Zack Weinberg <zack@bitmover.com>
17787 * iso646.h, stdarg.h, stdbool.h, stddef.h, varargs.h: Add
17788 copyright notice and special exception to GPL.
17790 Thu Sep 23 13:40:23 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17792 * abi64.h (mips_function_value): Add prototype arguments.
17794 * mips-protos.h: New file with mips prototypes.
17796 * mips.c: Include "tm_p.h".
17797 (mktemp, lookup_name): Add prototype arguments.
17798 (extern_list, string_constant, mips_fill_delay_slot,
17799 mips_output_external, mips_output_external_libcall,
17800 mips_output_filename, mips_declare_object, function_prologue,
17801 mips_expand_prologue, function_epilogue, mips16_constant,
17802 build_mips16_function_stub, mips_output_conditional_branch):
17804 (mips_va_start): Remove unused variable `u'.
17805 (mips_va_arg): Cast value to unsigned when comparing against one.
17807 (save_restore_insns, mips_expand_prologue): Add missing arg in
17808 call to `large_int'.
17810 * mips.h: Move prototypes to mips-protos.h.
17811 (data_section, memory_address_p, rdata_section,
17812 readonly_data_section, simple_epilogue_p, text_section): Delete
17813 prototypes delcared elsewhere.
17814 (mips_epilogue_delay_slots, print_options): Delete unused decls.
17816 (GO_PRINTF, GO_PRINTF2): Call fprintf, not trace.
17818 * mips.md: Delete extra args in call to `mips_move_2words'.
17820 * xm-iris6.h (alloca): Add prototype argument.
17822 * genpeep.c: Include "tm_p.h" in generated output file.
17824 Thu Sep 23 10:36:55 EDT 1999 Andrew MacLeod <amacleod@cygnus.com>
17826 * basic-block.h (find_edge_index): Change parameters.
17827 * flow.c (verify_edge_list): Pass basic_block parameters to
17828 find_edge_index instead of integers.
17830 Thu Sep 23 15:54:12 1999 Nick Clifton <nickc@cygnus.com>
17832 * combine.c (simplify_comparison): Use an unsigned shift to adjust
17835 Thu Sep 23 08:46:21 1999 Guy Harris <guy@netapp.com>
17837 * gcc.1: Fix a formatting error.
17839 Wed Sep 22 16:10:21 1999 Martin v. Löwis <loewis@informatik.hu-berlin.de>
17841 * install.texi (Configurations): Remove pyramid. Add fr30, i686,
17842 i786, mn10200, mn10300, pdp11, v850.
17844 Thu Sep 23 07:37:13 1999 Dan Nicolaescu <dann@ics.uci.edu>
17846 * libgcc2.c (num_digits): Add prototype with
17847 __attribute__((const)).
17848 (__terminate): Add prototype.
17850 Thu Sep 23 05:32:06 1999 Richard Henderson <rth@cygnus.com>
17852 * builtins.c, dbxout.c, varasm.c: Include tm_p.h.
17854 * alpha/alpha.c (print_operand): Fix type of `code'.
17855 (alpha_output_filename): Constify.
17856 * alpha/alpha.h: Move all function declarations ...
17857 * alpha/alpha-protos.h: ... here. New file.
17858 * alpha/elf.h (CONST_SECTION_FUNCTION): Prototype the function.
17859 (SECTION_FUNCTION_TEMPLATE): Likewise.
17861 Thu Sep 23 11:15:36 1999 Bernd Schmidt <bernds@cygnus.co.uk>
17863 * expmed.c (do_cmp_and_jump): Pass ccp_jump to can_compare_p.
17864 * expr.c (expand_expr): Likewise.
17865 (do_jump): Likewise.
17866 (do_store_flag): Pass ccp_store_flag to can_compare_p.
17867 * expr.h (enum optab_index): Add cbranch, cmov, cstore optabs and
17869 (enum can_compare_purpose): New.
17870 (can_compare_p): Adjust prototype.
17871 (prepare_cmp_insn, prepare_operand): Declare.
17872 * genopinit.c (optabs): Add cbranch_optab, cmov_optab, cstore_optab.
17873 * optabs.c (cmp_available_p): Deleted.
17874 (expand_abs): Pass ccp_jump to can_compare_p.
17875 (can_compare_p): New arg PURPOSE. Check for combined optabs.
17876 (prepare_cmp_insn): No longer static. Add arg PURPOSE.
17877 Call can_compare_p rather than cmp_available_p.
17878 (prepare_operand): No longer static.
17879 (emit_cmp_and_jump_insn): Check for and use cbranch patterns.
17880 (emit_cmp_and_jump_insns): Pass ccp_jump to prepare_cmp_insn.
17881 (expand_float): Fix a slightly broken emit_cmp_insn/emit_jump_insn
17882 sequence to use emit_cmp_and_jump_insns.
17883 (init_optabs): Initialize cbranch_optab, cmov_optab, cstore_optab.
17885 Wed Sep 22 17:58:01 1999 Stan Cox <scox@cygnus.com>
17887 * mips.h (GO_IF_LEGITIMATE_ADDRESS): Don't accept large
17888 register offsets; let LEGITIMIZE_ADDRESS load it into a register.
17889 (LEGITIMIZE_ADDRESS): Use plus_constant to avoid
17890 (plus (reg) (const_int 0))
17891 * mips.md (call_internal3c): New pattern for -mips16 -mlong-calls.
17893 Wed Sep 22 17:55:31 1999 David Edelsohn <edelsohn@gnu.org>
17895 * rs6000.c (expand_block_move): DImode loads and stores require
17896 word-aligned displacements. Increment address registers with
17897 adddi3 on 64-bit platform. Use TARGET_POWERPC64 not TARGET_64BIT.
17899 Wed Sep 22 17:35:55 1999 Michael Meissner <meissner@cygnus.com>
17901 * dwarf2out.c (base_type_die): Use the name __unknown__ if there
17902 is no name for the base type, rather than segfault. If we are
17903 writing out a complex integer type, use DW_ATE_lo_user.
17905 * expr.c (emit_move_insn_1): If we are copying a complex that fits
17906 in one word or less (complex char, complex short, or on 64 bit
17907 systems complex float) to/from a hard register, copy it through
17908 memory instead of dying in gen_{real,imag}part. If we have a
17909 short complex type, prevent inlining since it allocates stack
17912 * tree.c (build_complex_type): If we are writing dwarf2 output,
17913 generate a name for complex integer types.
17915 Wed Sep 22 11:34:08 EDT 1999 Andrew MacLeod <amacleod@cygnus.com>
17917 * basic-block.h (add_noreturn_fake_exit_edges): Use correct name.
17918 * flow.c (remove_edge): Remove extra whitespace.
17919 (remove_fake_edges): Fix comment.
17920 (add_noreturn_fake_exit_edges): Use the correct name.
17922 Wed Sep 22 16:12:40 BST 1999 Nathan Sidwell <nathan@acm.org>
17924 * Makefile.in (INTL_MOSTLYCLEAN, INTL_CLEAN): New variables.
17925 (mostlyclean): Depend on INTL_MOSTLYCLEAN.
17926 (clean): Depend on INTL_CLEAN.
17927 (maintainer-clean): Adjust.
17929 Wed Sep 22 10:18:56 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17931 * configure.in (AC_PREREQ): Bump to 2.13.
17932 (AC_C_STRINGIZE): Call this instead of using a custom macro.
17934 * gansidecl.h (HAVE_STRINGIZE): Define, if stage2 gcc && __STDC__.
17936 * system.h (HAVE_STRINGIZE): Test this instead of HAVE_CPP_STRINGIFY.
17938 * acconfig.h (HAVE_CPP_STRINGIFY): Delete.
17940 * alpha/xm-vms.h (HAVE_CPP_STRINGIFY): Delete.
17941 (HAVE_STRINGIZE): Define.
17943 Wed Sep 22 06:25:15 1999 Jim Kingdon <http://developer.redhat.com>
17945 * c-parse.in: save and restore warn_pointer_arith on __extension__
17946 along with pedantic.
17947 (SAVE_WARN_FLAGS, RESTORE_WARN_FLAGS): Added.
17948 Set the type of extension to itype rather than $<itype>1 kludge.
17949 * extend.texi (Alternate Keywords): Adjust documentation.
17950 * c-parse.c, c-parse.y, objc-parse.c, objc-parse.y: Rebuilt.
17952 Wed Sep 22 06:06:57 1999 Jeffrey A Law (law@cygnus.com)
17954 * pa.c, pa.h, pa.md: Support multiple assembler dialects in
17955 most assembler templates.
17957 * pa.c (hppa_legitimize_address): Handle full offsets for PA2.0
17958 FP loads and stores.
17959 (following_call): Always return zero for the PA8000.
17960 * pa.h (GO_IF_LEGITIMATE_ADDRESS): Handle full offsets for PA2.0
17961 FP loads and stores.
17962 (LEGITIMIZE_RELOAD_ADDRESS): Similarly.
17964 * pa.h (BRANCH_COST): Define.
17966 * pa.md (return, return_internal): Use bve for PA2.0.
17968 * pa.md (fused multiply): Add variants which reduce height for the
17969 fused multiply, but which still generate 2 insns.
17970 (fnegabs): Similarly.
17972 * pa.md (subsi3): Turn into an expander. Create two anonymous
17973 patterns. One for PA2.0 one for PA1.x. Use mtsarcm for PA2.0.
17974 * pa.h (EXTRA_CONSTRAINT): Handle 'S'.
17976 * pa.md (floatunssisf2, floatunssidf2): Generate different RTL
17978 (floatunssidf2_pa20, floatunssisf2_pa20): New patterns for PA2.0
17980 (floatunsdisf2, floatunsdidf2, fixuns_truncsfsi2): Likewise.
17981 (fixuns_truncdfsi2, fixuns_truncsfdi2, fixuns_truncdfsi2): Likewise.
17983 * regclass.c (init_regs): Add "top_of_stack" as a garbage
17986 * flow.c (record_active_eh_regions): Terminate loop after finding
17987 the last insn in the last basic block.
17989 Wed Sep 22 20:25:00 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
17991 * config/c4x/c4x.md: Delete parallel instruction peepholes.
17993 Wed Sep 22 19:59:19 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
17995 * config/c4x/c4x.c (c4x_add_gc_roots): Add tree roots.
17997 Wed Sep 22 19:56:25 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
17999 * config/c4x/c4x.c (c4x_process_after_reload): Rework machdep insn
18000 splitting to not use output template.
18002 Wed Sep 22 19:50:12 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
18004 * config/c4x/c4x.h (EXPAND_BUILTIN_VA_START): Call c4x_va_start.
18005 * config/c4x/c4x.c (c4x_va_start): New function.
18007 Tue Sep 21 18:40:01 1999 Jan Hubicka <hubicka@freesoft.cz>
18009 * genrecog.c (not_both_true): Handle correctly cases when called for
18010 tests with different positions in the insn.
18012 Tue Sep 21 18:29:11 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18014 * machmode.h (HOST_PTR_PRINTF): Move from here ...
18016 * system.h (HOST_PTR_PRINTF): ... to here.
18018 * mips-tfile.c: Don't include machmode.h.
18020 * Makefile.in (MACHMODE_H): New variable. Update to use it.
18021 (mips-tfile.o): Don't depend on machmode.h.
18023 Tue Sep 21 18:27:34 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18025 * haifa-sched.c (sched_analyze): Rename local variable `region' to
18026 avoid conflicts with typedef struct `region' at the top level scope.
18028 Tue Sep 21 14:14:50 1999 Richard Henderson <rth@cygnus.com>
18030 * basic-block.h (basic_block): Add eh_beg, eh_end.
18031 * flow.c (entry_exit_blocks): Update.
18032 (find_basic_blocks): Don't allocate bb_eh_end, or pass it around.
18033 Call new functions.
18034 (find_basic_blocks_1): Don't record eh_list at each bb. Use
18035 lists.c functions to allocate insn lists.
18036 (make_edges): Use eh_beg+eh_end, not the lists. Split out EH
18038 (make_eh_edge): ... here. New.
18039 (move_stray_eh_region_notes): New.
18040 (record_active_eh_regions): New.
18041 (delete_unreachable_blocks): Split out block merging ...
18042 (try_merge_blocks): ... here. New.
18043 (merge_blocks_move_predecessor_nojumps): Remove edge arg.
18044 Dump debugging data.
18045 (merge_blocks_move_successor_nojumps): Likewise.
18046 (merge_blocks): Use eh_beg+eh_end to validate block movement.
18048 Tue Sep 21 11:15:03 1999 Martin v. Löwis <loewis@informatik.hu-berlin.de>
18050 * extend.texi (Bound member functions): Document unbound pmf
18053 Tue Sep 21 14:55:11 EDT 1999 Andrew MacLeod <amacleod@cygnus.com>
18055 * flow.c (split_edge): Handle insertion on a fallthrough edge which
18056 has the EXIT_BLOCK as a dest.
18058 Tue Sep 21 14:51:23 EDT 1999 Andrew MacLeod <amacleod@cygnus.com>
18060 * flow.c (remove_edge): New function to remove an edge from the
18062 (remove_fake_successors): New function to remove fake successor edges.
18063 (remove_fake_edges): New function to remove all fake edges from the
18065 (add_fake_exit_edges): New function to add fake edges from all blocks
18066 with no successors to the exit block.
18067 * basic-block.h (remove_fake_edges, add_fake_exit_edges): Add
18068 prototypes for new functions.
18070 Tue Sep 21 14:49:53 EDT 1999 Andrew MacLeod <amacleod@cygnus.com>
18072 * config/mips/elf64.h (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR):
18073 Use Pmode to determine whether to output .dword or .word.
18075 Tue Sep 21 11:04:34 1999 Alex Samuel <samuel@codesourcery.com>
18077 * tree.c (built_in_filename): New variable.
18078 (BUILT_IN_FILENAME): New macro.
18079 (init_tree_codes): Allocate built_in_filename.
18080 (make_node): Use built_in_filename instead of string constant.
18082 Tue Sep 21 14:13:27 1999 Nick Clifton <nickc@cygnus.com>
18084 * configure.in: Add fr30 target.
18085 * configure: Regenerate.
18086 * config/fr30: New directory.
18087 * config/fr30/crti.asm: New file.
18088 * config/fr30/fr30.c: New file.
18089 * config/fr30/crtn.asm: New file.
18090 * config/fr30/fr30.h: New file.
18091 * config/fr30/fr30.md: New file.
18092 * config/fr30/lib1funcs.asm: New file.
18093 * config/fr30/t-fr30: New file.
18094 * config/fr30/xm-fr30.h: New file.
18096 Tue Sep 21 06:45:31 1999 Jeffrey A Law (law@cygnus.com)
18098 * flow.c (merge_blocks_move_successor_nojumps): Delete the
18099 BARRIER at the end of the successor, not the BARRIER before
18102 * pa.c (pa_add_gc_roots): Fix thinko in last change.
18104 Tue Sep 21 05:29:17 1999 Richard Earnshaw (rearnsha@arm.com)
18106 * stmt.c (any_pending_cleanups): Don't crash when
18107 current_function->stmt is unset.
18109 Tue Sep 21 00:59:49 1999 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
18111 * emit-rtl.c (init_emit_once): Initialize const_int_rtx before
18112 other initializations that may use it for relative offsets.
18114 Mon Sep 20 21:43:25 1999 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
18116 * config/i386/sol2.h (PREFERRED_DEBUGGING_TYPE): Use stabs.
18117 (ASM_SPEC): Moved from sol2dbg.h. Added work-around for gas.
18118 * config/i386/sol2dbg.h: Removed.
18119 * config/i386/sol2gas.h: New file, to enable gas work-around.
18120 * configure.in: Use i386/sol2gas.h on Solaris/x86 --with-gas.
18121 Don't use sol2dbg.h.
18122 * configure: Rebuilt.
18124 Mon Sep 20 13:29:41 1999 Mark Mitchell <mark@codesourcery.com>
18126 * invoke.texi (-fthis-is-variable): Remove documentation.
18128 Mon Sep 20 12:59:16 1999 Richard Henderson <rth@cygnus.com>
18130 * basic-block.h (compute_bb_for_insn): Declare.
18131 * flow.c (compute_bb_for_insn): Export. Don't accept the varray
18132 to use; set size of basic_block_for_insn directly.
18133 (find_basic_blocks): Update.
18135 Mon Sep 20 15:11:54 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18137 * flow.c (verify_flow_info): Fix typo, "abort;" -> "abort ();".
18139 Mon Sep 20 14:56:34 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18141 * crtstuff.c (ON_EXIT): Delete empty macro definition.
18142 (__do_global_ctors_aux): Call atexit(), not ON_EXIT().
18144 Mon Sep 20 15:25:35 1999 Nick Clifton <nickc@cygnus.com>
18146 * c-decl.c (c_decode_option): Extend comment.
18148 Mon Sep 20 14:43:37 1999 Nick Clifton <nickc@cygnus.com>
18150 * toplev.c (progname): Make 'const char *'
18151 (flag_print_mem): Move out of main.
18152 (version_flag): Move out of main.
18153 (filename): Move out of main.
18154 (debug_args): Remove g prefix from options.
18155 (documented_lang_options): Remove cpplib specific options.
18156 (display_help): Add g prefix to debug options.
18157 (check_lang_option): Delete this function.
18158 (decode_d_option): New function: Decode -d... option.
18159 (decode_f_option): New function: Decode -f... option.
18160 (decode_W_option): New function: Decode -W... option.
18161 (decode_g_option): New function: Decode -g... option.
18162 (independent_decode_option): New function: Decode a language
18163 independent command line option.
18164 (main): Invoke lang_decode_option and then
18165 independent_decode_option on each command line option in
18168 Mon Sep 20 05:41:36 1999 Jeffrey A Law (law@cygnus.com)
18170 Revert this change. Gavin's patch to operand_equal_p is a better fix.
18171 * fold-const.c (fold_range_test): Do not try to fold the range
18172 test if the rhs or lhs has side effects.
18174 * basic-block.h (compute_flow_dominators): Declare.
18176 * gcse.c (alloc_code_hoist_mem): New function.
18177 (free_code_hoist_mem, compute_code_hoist_vbeinout): Likewise.
18178 (compute_code_hoist_data, hoist_expr_reaches_here_p): Likewise.
18179 (hoist_code, one_code_hoisting_pass): Likewise.
18180 (gcse_main): If optimizing for size, then hoist expressions
18181 computed in multiple dominated basic blocks.
18183 * gcse.c (invalid_nonnull_info): New function.
18184 (delete_null_pointer_checks): Likewise.
18185 * rtl.h (delete_null_pointer_checks): Declare.
18186 * toplev.c (rest_of_compilation): Call delete_null_pointer_checks.
18188 * flow.c (merge_blocks_move_predecessor_nojumps): New function.
18189 (merge-blocks_move_successor_nojumps): Likewise.
18190 (merge_blocks): Allow merging of some blocks, even if it requires
18191 physical movement of the blocks, but not if it requires new jumps.
18193 * bitmap.c (debug_bitmap_file): Renmaed from bitmap_debug_file.
18194 Callers and prototype changed.
18195 * bitmap.h: Fix debug_bitmap and debug_bitmap_file prototypes.
18197 Mon Sep 20 06:56:32 1999 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
18199 * config/sparc/sol2.h (LINK_SPEC): Avoid the duplication of
18200 -YP when both -p and -pg are present. From i386/sol2.h.
18202 Mon Sep 20 10:49:05 1999 Bernd Schmidt <bernds@cygnus.co.uk>
18204 * Makefile.in (distclean): Delete tm_p.h.
18205 * configure.in: Create a new file, "tm_p.h", from a list in
18206 "tm_p_file". For ix86 systems, set up "tm_p_file" to include
18207 "i386/i386-protos.h".
18209 * alias.c: Include "tm_p.h".
18210 * c-typeck.c: Likewise.
18211 * calls.c: Likewise.
18213 * emit-rtl.c: Likewise.
18214 * explow.c: Likewise.
18215 * expmed.c: Likewise.
18216 * expr.c: Likewise.
18217 * final.c: Likewise.
18218 * flow.c: Likewise.
18219 * fold-const.c: Likewise.
18220 * function.c: Likewise.
18221 * gcse.c: Likewise.
18222 * global.c: Likewise.
18223 * haifa-sched.c: Likewise.
18224 * integrate.c: Likewise.
18225 * jump.c: Likewise.
18226 * local-alloc.c: Likewise.
18227 * loop.c: Likewise.
18228 * optabs.c: Likewise.
18229 * recog.c: Likewise.
18230 * reg-stack.c: Likewise.
18231 * regclass.c: Likewise.
18232 * regmove.c: Likewise.
18233 * reload.c: Likewise.
18234 * reload1.c: Likewise.
18235 * reorg.c: Likewise.
18236 * resource.c: Likewise.
18237 * stmt.c: Likewise.
18238 * stor-layout.c: Likewise.
18239 * toplev.c: Likewise.
18240 * tree.c: Likewise.
18241 * unroll.c: Likewise.
18242 * genattrtab.c (main): Make generated file include "tm_p.h".
18243 * genemit.c (main): Likewise.
18244 * genoutput.c (main): Likewise.
18245 * genrecog.c (main): Likewise.
18247 * i386.h: Delete all prototypes.
18248 * i386.c: Include "tm_p.h".
18249 (ix86_attr_length_default): Call constant_call_address_operand
18250 with correct number of arguments.
18251 * i386-protos.h: New file.
18252 * i386.md (unnamed patterns): Call constant_call_address_operand
18253 with correct number of arguments.
18254 (exception_receiver): Call load_pic_register with correct number
18257 Sun Sep 19 14:18:39 1999 Richard Henderson <rth@cygnus.com>
18259 * c-pragma.c (mark_align_stack): Dereference the void* properly.
18261 Sun Sep 19 09:03:40 1999 Mark Mitchell <mark@codesourcery.com>
18263 * rtl.h (insns_safe_to_move_p): New function.
18264 * loop.c (find_and_verify_loops): Use it.
18265 * rtlanal.c (insns_safe_to_move_p): Define it.
18267 Sun Sep 19 02:54:33 1999 Richard Henderson <rth@cygnus.com>
18269 * c-pragma.c: Include ggc.h.
18270 * Makefile.in (c-pragma.o): Update.
18272 Sat Sep 18 16:01:18 1999 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
18274 * config/i386/sol2.h (CPP_SPEC): Support -[p]threads
18275 (LIB_SPEC): Likewise.
18276 (LINK_SPEC): Do not assert -z text with -shared -mimpure-text.
18277 Reindent -YP/-p/-pg.
18278 Copied from config/sparc/sol2.h.
18280 Sat Sep 18 11:52:43 1999 Richard Henderson <rth@cygnus.com>
18282 * c-pragma.c (mark_align_stack): New.
18283 (init_pragma): New.
18284 * c-pragma.h (init_pragma): Declare it.
18285 * c-lex.c (init_parse): Call it.
18287 Sat Sep 18 15:20:38 1999 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
18289 * configure.in: Pick up thread library on Solaris/x86 just
18290 like on Solaris/sparc.
18291 * configure: Rebuilt.
18293 Sat Sep 18 11:15:58 1999 Alex Samuel <samuel@codesourcery.com>
18295 * rtl.h (global_rtx_index): New enum.
18296 (global_rtl): Change to array of rtx.
18297 (pc_rtx, cc0_rtx): Redefine accordingly.
18298 (cc0_rtx, stack_pointer_rtx, frame_pointer_rtx): Likewise.
18299 (hard_frame_pointer_rtx, arg_pointer_rtx): Likewise.
18300 (virtual_incoming_args_rtx, virtual_stack_vars_rtx): Likewise.
18301 (virtual_outgoing_args_rtx, virtual_cfa): Likewise.
18302 (const_int_rtx): Change to array of rtx.
18303 (const0_rtx, const1_rtx, const2_rtx, constm1_rtx): Redefine
18305 * emit-rtl.c (global_rtl): Change to array of rtx.
18306 (const_int_rtx): Change to aray of rtx.
18307 (gen_rtx_CONST_INT): Redefine accordingly.
18308 (init_emit_once): Allocate and initialize global_rtl. Likewise
18309 for const_int_rtx. Add both as GC roots.
18310 * genattrtab.c (global_rtl): Update declaration.
18312 1999-09-17 Ulrich Drepper <drepper@cygnus.com>
18314 * Makefile (USER_H): Add iso646.h back.
18316 Sat Sep 18 01:07:21 1999 Jeffrey A Law (law@cygnus.com)
18318 * haifa-sched.c (sched_analyze): Use free_INSN_LIST_list instead of
18319 zapping the LOG_LINKS of sched_before_next_call.
18321 * pa.h (INSN_SETS_ARE_DELAYED): Delete.
18322 * pa.c (insn_refs_are_delayed): Renamed from
18323 insn_sets_and_refs_are_delayed.
18325 Fri Sep 17 15:19:01 1999 Mark Mitchell <mark@codesourcery.com>
18327 * functiion.h (struct function): Add x_whole_function_mode_p.
18328 (retrofit_block): Declare.
18329 * function.c (retrofit_block): New function.
18330 (identify_blocks): Add assertions. Allow an incomplete set of
18331 block notes if we're still generating code for the function.
18332 * integrate.c: Include loop.h.
18333 (expand_inline_function): Call find_loop_tree_blocks to map block
18334 notes to blocks when in whole-function mode. Use retrofit_block
18335 to insert new BLOCKs for the inlined function, rather than
18337 * stmt.c (expand_fixup): Likewise. Don't use pushlevel/polevel.
18338 * Makefile.in (integrate.o): Depend on loop.h.
18340 Fri Sep 17 15:11:20 1999 Mark Mitchell <mark@codesourcery.com>
18342 * tree.h (warn_about_unused_variables): Declare.
18343 * stmt.c (warn_about_unused_variables): New function, split out
18345 (expand_end_bindings): Here.
18347 Fri Sep 17 15:07:37 1999 Mark Mitchell <mark@codesourcery.com>
18349 * stmt.c (preserve_subexpressions_p): Don't crash when
18350 current_function->stmt is unset.
18352 Fri Sep 17 15:03:16 1999 Mark Mitchell <mark@codesourcery.com>
18354 * stmt.c (expand_start_bindings): Allow callers to pass a flag
18355 indicating that no NOTE_INSN_BLOCK_BEG note is required.
18356 (expand_start_target_temps): Use it.
18357 * except.c (expand_eh_region_start_for_decl): Likewise.
18358 * expr.c (expand_expr): Likewise.
18360 Fri Sep 17 15:05:27 1999 Gavin Romig-Koch <gavin@cygnus.com>
18362 * fold-const.c (operand_equal_p): Pay attention to side effects.
18364 Fri Sep 17 11:14:17 1999 Jason Merrill <jason@yorick.cygnus.com>
18366 * libgcc2.c (L_exit): Check for ON_EXIT, not HAVE_ON_EXIT.
18367 * sparc/sunos4.h (HAVE_ON_EXIT): Remove.
18369 * tlink.c (scan_linker_output): Look for keywords before accepting
18370 a mangled name in quotes.
18372 Thu Sep 16 16:47:08 1999 Richard Henderson <rth@cygnus.com>
18374 * alpha/alpha-interix.h (DWARF2_UNWIND_INFO): Define to zero.
18375 * alpha/osf2or3.h (DWARF2_UNWIND_INFO): Likewise.
18377 Thu Sep 16 16:35:41 1999 Richard Henderson <rth@cygnus.com>
18379 * alpha.md: Revert Thu Nov 26 change that came in through the
18380 last gcc2 merge: reinstate (plus (plus ...)) reload patterns.
18381 Avoid earlyclobber when possible.
18383 Thu Sep 16 18:44:48 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18385 * libgcc2.c (__do_global_ctors): Call atexit with one arg.
18387 * sparc/sunos4.h (on_exit): Wrap prototype parameters in PARAMS().
18388 Define HAVE_ON_EXIT.
18390 Thu Sep 16 18:06:35 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18392 * system.h (CTYPE_CONV, TOUPPER, TOLOWER): New macros. Use
18393 CTYPE_CONV in all ctype macros.
18395 * cccp.c (initialize_char_syntax): Use uppercase ctype macro
18398 * cexp.y (initialize_random_junk): Likewise.
18400 * c4x.c (c4x_interrupt_function_p, c4x_handle_pragma): Likewise.
18402 * i370.c (handle_pragma): Likewise.
18404 * i370.h (ASM_OUTPUT_LABELREF, ASM_OUTPUT_ASCII): Likewise.
18406 * v850.c (override_options): Likewise.
18408 * doprint.c (_doprnt): Likewise.
18410 * fixinc/fixincl.c (main, quoted_file_exists, extract_quoted_files):
18413 * fixinc/server.c (load_data): Likewise.
18415 * fold-const.c (real_hex_to_f): Likewise.
18417 * genattr.c (write_upcase, gen_attr): Likewise.
18419 * genattrtab.c (convert_const_symbol_ref, evaluate_eq_attr,
18420 write_upcase): Likewise.
18422 * genemit.c (print_code): Likewise.
18424 * genopinit.c (gen_insn): Likewise.
18426 * genpeep.c (print_code): Likewise.
18428 * genrecog.c (print_code): Likewise.
18430 * optabs.c (init_libfuncs): Likewise.
18432 Thu Sep 16 14:03:32 1999 Mark Mitchell <mark@codesourcery.com>
18434 * haifa-sched.c (sched_analyze): Keep the list of notes organized
18436 (reemit_notes): Likewise.
18438 Thu Sep 16 11:50:52 1999 Alex Samuel <samuel@codesourcery.com>
18440 * ggc.h (ggc_root): Move to ggc-common.c.
18442 (ggc_mark_rtx, ggc_mark_tree): Change to macro.
18443 (ggc_mark_rtvec, ggc_mark_tree_varray): Declare extern.
18444 (ggc_mark_tree_hash_table, ggc_mark_string, ggc_mark): Likewise.
18445 (ggc_mark_roots, ggc_mark_rtx_children, ggc_mark_tree_children): New.
18446 * ggc-common.c (ggc_root): Move from ggc.h.
18447 (roots): Declare, static.
18448 (ggc_mark_rtx, ggc_mark_tree): Renamed to...
18449 (ggc_mark_rtx_children, ggc_mark_tree_children): Don't check for
18450 null or check/set mark bit.
18451 (ggc_mark_roots): New.
18452 * ggc-simple.c (ggc_collect): Call ggc_mark_roots.
18454 Thu Sep 16 11:37:32 1999 Richard Henderson <rth@cygnus.com>
18456 * m32r.c: Include toplev.h.
18457 (*): Add ATTRIBUTE_UNUSED as needed to arguments.
18458 (gen_compare): Rename swap_p to must_swap to match uses.
18459 Add default abort case.
18460 (m32r_output_function_epilogue): Remove unused variables.
18461 (m32r_print_operand): Use HOST_WIDE_INT_PRINT_HEX.
18462 * m32r.h (PROTO, STDIO_PROTO): Rename XPROTO; unconditionally
18463 define to empty parameter list. Update all uses.
18464 (predicate decls): Use enum machine_mode not int.
18465 * m32r.md (movsi): Call abort, not fatal_insn.
18466 (zero_branch_insn, rev_zero_branch_insn): Add default abort case.
18468 1999-09-14 Andrew Haley <aph@cygnus.com>
18470 * config/mips/mips.md (movsi_usw): if operand 1 is const_int 0,
18471 use $0 instead of 0.
18473 Thu Sep 16 10:53:36 1999 Bernd Schmidt <bernds@cygnus.co.uk>
18475 * reload1.c (order_regs_for_reload): Move hard_reg_n_uses
18476 computation out of loop over hard regs.
18478 Wed Sep 15 21:37:06 1999 Mark Mitchell <mark@codesourcery.com>
18480 * function.c (identify_blocks): Don't shadow a variable in an
18482 * integrate.c (integrate_decl_tree): Don't use pushlevel,
18483 pushdecl, or poplevel to build up the new BLOCK tree.
18484 (expand_inline_function): Likewise.
18485 (integrate_parm_decls): Likewise.
18487 Wed Sep 15 21:20:38 1999 Mark Mitchell <mark@codesourcery.com>
18489 * c-typeck.c (qualify_type): Merge qualifiers from both types.
18491 1999-09-15 Brad Lucier <lucier@math.purdue.edu>
18493 * toplev.c: Allow -f[no-]math-errno to set (clear) flag_errno_math
18494 * invoke.texi: Document this change.
18496 Wed Sep 15 17:56:00 1999 Richard Henderson <rth@cygnus.com>
18498 * emit-rtl.c (free_emit_status): Don't check DECL_DEFER_OUTPUT.
18500 (mark_emit_status): Renamed from mark_emit_state.
18501 * except.c (mark_eh_status): Renamed from mark_eh_state.
18502 Check not null before marking.
18503 (free_eh_status): New.
18504 * expr.c (mark_expr_status, free_expr_status): New.
18505 * function.c (free_machine_status): New.
18506 (free_after_parsing): New.
18507 (free_after_compilation): Move bits to free_after_parsing; call
18508 free_eh_status, free_expr_status; zero the marked members of the
18510 (prepare_function_start): No can_garbage_collect.
18511 Call init_eh_for_function.
18512 (expand_dummy_function_end): Free up current_function state.
18513 (mark_function_status): Renamed from mark_function_state.
18514 (mark_function_chain): No can_garbage_collect. Call mark_expr_status.
18515 * function.h (struct function): No can_garbage_collect.
18516 (free_machine_status, free_after_parsing): Declare.
18517 (free_eh_status, free_expr_status): Declare.
18518 * ggc.h (mark_expr_status): Declare.
18519 * stmt.c (free_stmt_status): Free the struct.
18520 (mark_stmt_status): Renamed from mark_stmt_state.
18521 (init_stmt): Don't call init_eh.
18522 (init_stmt_for_function): Don't call init_eh_for_function.
18523 * toplev.c (compile_file): Call init_eh.
18524 (rest_of_compilation): Free basic block info before ggc_collect.
18525 Call free_after_parsing; conditionally call free_after_compilation.
18526 * varasm.c (mark_varasm_status): Renamed from mark_varasm_state.
18527 Check not null before marking.
18528 (free_varasm_status): Don't check DECL_DEFER_OUTPUT. Free the struct.
18530 Wed Sep 15 17:53:16 1999 Richard Henderson <rth@cygnus.com>
18532 * c-lex.c (yylex): Initialize warn.
18534 Wed Sep 15 18:35:38 1999 Jeffrey A Law (law@cygnus.com)
18536 * pa.c (emit_move_sequence): Properly set the mode of the scratch
18537 register when performing secondary reloads for the SAR register.
18539 Wed Sep 15 15:51:52 1999 Mark Mitchell <mark@codesourcery.com>
18541 * rtl.h (NOTE_BLOCK_NUMBER): Replace with ...
18542 (NOTE_BLOCK): New macro.
18543 (NOTE_BLOCK_LIVE_RANGE_BLOCK): Remove.
18544 * function.h (identify_blocks): Change prototype.
18545 * function.c (identify_blocks): Simplify.
18546 (reorder_blocks): Likewise.
18547 * ggc-common.c (ggc_mark_rtx): Mark the BLOCK associated with a
18548 NOTE_INSN_BLOCK_{BEG,END}.
18549 * haifa-sched.c (sched_analyze): Don't put NOTE_BLOCK_NUMBER on
18550 the list of saved notes if the note isn't a
18551 NOTE_INSN_BLOCK_{BEG,END}.
18552 (move_insn1): Use NOTE_EH_HANDLER in comment, rather than
18554 (reemit_notes): Adjust recreation of notes to reflect new saved
18556 * print-rtl.c (print_rtx): Print the address of the BLOCK when
18557 printing a block note.
18558 * stmt.c (block_vector): Remove.
18559 (find_loop_tree_blocks): Simplify.
18560 (unroll_block_trees): Likewise.
18561 * tree.h (reorder_block): Change prototype.
18563 Wed Sep 15 14:39:35 1999 Jason Merrill <jason@yorick.cygnus.com>
18565 * gbl-ctors.h: Lose HAVE_ATEXIT. Don't define ON_EXIT.
18566 * libgcc2.c: Lose obsolete defn of WEAK_ALIAS.
18567 (__bb_init_func, __bb_init_prg): Use atexit instead of ON_EXIT.
18568 (__do_global_dtors): Likewise. Don't mess with _exit_dummy_decl.
18569 (atexit, exit): Simplify.
18570 * tm.texi: Document NEED_ATEXIT and ON_EXIT. Remove HAVE_ATEXIT.
18571 * config/lots: Remove defns of HAVE_ATEXIT.
18573 Wed Sep 15 10:25:12 1999 Mark Mitchell <mark@codesourcery.com>
18575 * calls.c (precompute_arguments): Fix typo in comment.
18576 * expr.c (preexpand_calls): Don't preexpand the cleanup in a
18579 Wed Sep 15 09:59:59 1999 Mark Mitchell <mark@codesourcery.com>
18581 * dsp16xx.c (override_options): Fix typos in GC root registration.
18583 Wed Sep 15 15:23:28 1999 Philip Blundell <pb@nexus.co.uk>
18585 * config/arm/linux-elf.h (MAKE_DECL_ONE_ONLY): Copy definition
18586 from config/svr4.h.
18587 (UNIQUE_SECTION_P, UNIQUE_SECTION): Likewise.
18588 (FUNCTION_PROFILER): Redefine appropriately for Linux.
18589 (CC1_SPEC): Likewise.
18591 Wed Sep 15 10:09:48 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18593 * genattr.c (main): Add extern prototype. Call return, not exit.
18594 * genattrtab.c (main): Likewise.
18595 * gencheck.c (main): Likewise.
18596 * gencodes.c (main): Likewise.
18597 * genconfig.c (main): Likewise.
18598 * genemit.c (main): Likewise.
18599 * genextract.c (main): Likewise.
18600 * genflags.c (main): Likewise.
18601 * gengenrtl.c (main): Likewise.
18602 * genopinit.c (main): Likewise.
18603 * genoutput.c (main): Likewise.
18604 * genpeep.c (main): Likewise.
18605 * genrecog.c (main): Likewise.
18607 * genattr.c (get_insn_name): Mark parameter with ATTRIBUTE_UNUSED.
18608 * genattrtab.c (get_insn_name): Likewise.
18609 * gencodes.c (get_insn_name): Likewise.
18610 * genconfig.c (get_insn_name): Likewise.
18611 * genemit.c (get_insn_name): Likewise.
18612 * genextract.c (get_insn_name): Likewise.
18613 * genflags.c (get_insn_name): Likewise.
18614 * genopinit.c (get_insn_name): Likewise.
18615 * genpeep.c (get_insn_name): Likewise.
18617 * gencheck.c (usage): Add static prototype.
18618 * genextract.c (print_path): Constify a char*.
18619 * genopinit.c (optabs): Likewise.
18620 * genoutput.c (operand_data, data, output_predicate_decls,
18621 compare_operands): Likewise.
18622 * genrecog.c (write_tree): Add default case in switch.
18624 Wed Sep 15 09:59:16 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18626 * rtl.h (get_insn_name, print_rtl_with_bb): Add prototypes.
18628 * print-rtl.c (get_insn_name): Remove prototype.
18630 * toplev.h (progname): Declare const.
18632 * toplev.c (init_decl_processing, init_obstacks, init_tree_codes,
18633 init_regs, init_optabs, init_stmt, init_reg_sets, dump_flow_info,
18634 dump_sched_info, dump_local_alloc, regset_release_memory,
18635 print_rtl, print_rtl_with_bb, rest_of_decl_compilation,
18636 error_with_file_and_line, error_with_decl, error_for_asm, error,
18637 fatal, warning_with_file_and_line, warning_with_decl, warning,
18638 pedwarn, pedwarn_with_decl, pedwarn_with_file_and_line, sorry):
18639 Remove redundant prototypes.
18641 (notice, check_lang_option, report_file_and_line, vnotice,
18642 mark_file_stack): Add static prototype.
18643 (set_fatal_function): Add prototype.
18644 (vnotice, report_file_and_line, set_fatal_function,
18645 check_lang_option): Constify a char*.
18646 (main): Prototype. Call return, not exit.
18648 Wed Sep 15 09:50:18 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18650 * aclocal.m4 (AC_GCC_C_LONG_DOUBLE): New macro.
18652 * configure.in (AC_GCC_C_LONG_DOUBLE): Call it.
18654 * gansidecl.h (HAVE_LONG_DOUBLE): Define if gcc for stage2.
18656 * ggc-simple.c (HAVE_LONG_DOUBLE): Test before using long double.
18658 Wed Sep 15 11:04:43 1999 Bernd Schmidt <bernds@cygnus.co.uk>
18660 * function.c (assign_parms): Delete arg SECOND_TIME. Don't test it,
18661 behave as if it's zero in all cases.
18662 (expand_function_start): Adjust call to assign_parms.
18663 * tree.h (assign_parms): Adjust prototype.
18664 * objc/objc-act.c (hack_method_prototype): Adjust call to
18667 Tue Sep 14 21:47:06 1999 Jeffrey A Law (law@cygnus.com)
18669 * cse.c (FIXED_BASE_PLUS_P): Do not consider referneces to
18670 arg_pointer_rtx fixed if the argument pointer register is
18672 (NONZERO_BASE_PLUS_P): Likewise.
18674 Tue Sep 14 20:26:02 1999 Richard Henderson <rth@cygnus.com>
18676 * rtl.def (match_insn, match_insn2): Remove match_insn; rename
18677 match_insn2 to match_insn.
18678 * genrecog.c (add_to_sequence): Rename MATCH_INSN2.
18680 Tue Sep 14 20:10:29 1999 Richard Henderson <rth@cygnus.com>
18682 * Makefile.in (USER_H): Remove va-foo.h.
18684 * ginclude/{va-alpha.h,va-arc.h,va-c4x.h,va-clipper.h,va-h8300.h,
18685 va-i860.h,va-i960.h,va-m32r.h,va-m88k.h,va-mips.h,va-mn10200.h,
18686 va-mn10300.h,va-pa.h,va-ppc.h,va-pyr.h,va-sh.h,va-sparc.h,
18687 va-spur.h,va-v850.h}: Remove.
18689 Tue Sep 14 19:43:16 1999 Richard Henderson <rth@cygnus.com>
18691 * sparc/sparc.md (eligible_for_return_delay): New attribute.
18692 (in_return_delay): Use it instead of match_insn.
18694 Tue Sep 14 23:05:37 1999 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
18696 * config/alpha/va_list.h (va-alpha.h): Do not include.
18697 (__gnuc_va_list): Typedef as in varargs.h.
18699 Tue Sep 14 18:14:03 1999 Richard Henderson <rth@cygnus.com>
18701 * ggc-common.c (ggc_mark_tree): Mark DECL_SOURCE_FILE and
18702 DECL_LIVE_RANGE_RTL.
18704 Tue Sep 14 16:47:08 1999 Mark Mitchell <mark@codesourcery.com>
18706 * except.c (expand_eh_region_start_for_decl): Use NOTE_EH_HANDLER,
18707 not NOTE_BLOCK_NUMBER.
18708 (expand_eh_region_end): Likewise.
18709 (find_exception_handler_labels): Likewise.
18710 (scan_region): Likewise.
18711 (exception_optimize): Likewise.
18712 (update_rethrow_references): Likewise.
18713 (set_insn_eh_region): Likewise.
18714 * final.c (final_scan_insn): Likewise.
18715 * flow.c (make_edges): Likewise.
18716 * integrate.c (expand_inline_function): Likewise.
18717 * print-rtl.c (print_rtx): Likewise.
18719 Tue Sep 14 16:30:16 1999 Richard Henderson <rth@cygnus.com>
18721 * ginclude/stdarg.h, ginclude/varargs.h: Implement in
18722 terms of builtin functions and types.
18724 * mips.c (mips_build_va_list): New.
18725 (mips_va_start, mips_va_arg): New.
18726 * mips.h (BUILD_VA_LIST_TYPE): New.
18727 (EXPAND_BUILTIN_VA_START, EXPAND_BUILTIN_VA_ARG): New.
18729 * sh.c (sh_builtin_saveregs): Use get_varargs_alias_set.
18730 (sh_build_va_list, sh_va_start, sh_va_arg): New.
18731 * sh.h (BUILD_VA_LIST_TYPE): New.
18732 (EXPAND_BUILTIN_VA_START, EXPAND_BUILTIN_VA_ARG): New.
18734 Tue Sep 14 16:20:24 1999 Richard Henderson <rth@cygnus.com>
18736 * recog.h (struct recog_data): Make dup_num, operand_address_p,
18737 n_operands, n_dups, n_alternatives `char' instead of `unsigned char'.
18738 (struct insn_data): Likewise with n_operands, n_dups,
18739 n_alternatives, output_format.
18740 * regclass.c (scan_one_insn): Cast n_operands to int before
18741 arithmetic inside comparison.
18743 Tue Sep 14 15:13:36 1999 Richard Henderson <rth@cygnus.com>
18745 * toplev.c (compile_function): Unconditionally emit nop.
18747 Tue Sep 14 14:41:47 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18749 * haifa-sched.c (actual_hazard): Move declaration of variable
18750 `this_cost' into the scope where it is used.
18752 Tue Sep 14 14:14:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18754 * c-pragma.c (handle_pragma_token): Wrap variables `name' and
18755 `value' in HANDLE_PRAGMA_WEAK. Wrap variable `align' in
18756 HANDLE_PRAGMA_PACK||HANDLE_PRAGMA_PACK_PUSH_POP.
18758 * genrecog.c (make_insn_sequence): Call memset, not bzero.
18760 * jump.c (find_insert_position): Don't declare or define unless
18761 !HAVE_conditional_arithmetic.
18762 (returnjump_p_1, delete_prior_computation): Add static prototypes.
18764 * mips-tdump.c (fatal, fancy_abort, main): Add extern prototypes.
18766 * recog.c (offsettable_address_p): Prototype function pointer.
18767 (preprocess_constraints): Call memset, not bzero.
18769 * tree.c (tree_node_kind_names): Constify a char*. Make static.
18770 (gcc_obstack_init): Don't declare.
18771 (fix_sizetype): Add static prototype.
18772 (gcc_obstack_init): Use prototype casts in call to _obstack_begin.
18773 (tree_cons): Call memset, not bzero.
18775 * varasm.c (remove_from_pending_weak_list): Wrap declaration and
18776 definition in macro ASM_WEAKEN_LABEL.
18777 (mark_const_hash_entry): Add static prototype.
18779 Tue Sep 14 12:22:50 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18781 * c-lex.c (handle_generic_pragma): Remove unused variable `c'.
18783 * unroll.c (find_common_reg_term, subtract_reg_term,
18784 loop_find_equiv_value): Add static prototypes.
18785 (unroll_loop): Wrap variable `prev' in macro HAVE_cc0.
18786 (copy_loop_body): Remove unreachable break statement.
18788 * sparc.c (sparc_va_arg): Remove unused variable `tmp'.
18790 * sparc.h (sparc_va_start, sparc_va_arg): Add extern prototypes.
18792 Tue Sep 14 15:28:00 1999 Bernd Schmidt <bernds@cygnus.co.uk>
18794 Undo some changes from the gcc2 merge:
18795 * rtl.def (CONSTANT_P_RTX): Fix the comment for this rtx code.
18796 * emit-rtl.c (gen_rtx_REG): Don't test special reg rtx's for null
18800 Sat Oct 3 07:20:28 1998 Stephen L Moshier <moshier@world.std.com>
18801 * emit-rtl.c (gen_lowpart_common): Disable optimization of
18802 initialized float-int union if the value is a NaN.
18804 Tue Sep 14 04:03:44 1999 Mumit Khan <khan@xraylith.wisc.edu>
18806 * gthr-win32.h: New file.
18808 * i386/winnt.c (i386_pe_valid_decl_attribute_p): Recognize
18809 shared as a valid attribute.
18810 * i386/cygwin.h (ASM_OUTPUT_SECTION): Handle shared attribute.
18811 * extend.texi: Document `shared' variable attribute.
18813 Tue Sep 14 04:01:46 1999 Loren Rittle <ljrittle@acm.org>
18815 * configure.in: Handle --enable-threads on FreeBSD.
18816 * configure: Rebuit.
18818 Tue Sep 14 03:58:44 1999 Andreas Jaeger <aj@arthur.rhein-neckar.de>
18820 * configure.in: Add crtbeginS.o, crtendS.o for mips-linux; add
18822 * configure: Rebuilt.
18824 Tue Sep 14 03:47:23 1999 Joel Sherrill <joel@OARcorp.com>
18825 Charles-Antoine Gauthier <charles.gauthier@iit.nrc.ca>
18826 Rosimildo DaSilva <rdasilva@connecttel.com>
18828 * configure.in (m68k-*-rtemscoff*): Added.
18829 * configure.in (mips64orion-*-rtems*): Converted to ELF.
18830 * configure.in (sparc-*-rtemsaout*): Added as alias for old
18831 sparc-rtems configuration.
18832 * configure.in (sparc-*-rtemself*): Added.
18833 * configure.in (sparc-*-rtems*): Now ELF not a.out.
18834 * config/i386/rtems.h: Added comment.
18835 * config/sparc/rtemself.h: New file.
18837 * configure.in (m68k-rtemself): Added.
18838 * config/elfos.h: Added ifndef wrapper for DWARF2_DEBUGGING_INFO
18839 and DWARF_DEBUGGING_INFO.
18840 * config/m68k/crti.s: New file.
18841 * config/m68k/crtn.s: New file.
18842 * config/m68k/t-crtstuff: New file.
18843 * config/m68k/rtemself.h: New file.
18845 * configure.in (i[[34567]]86-*-rtemself*): Now uses crtstuff for
18846 global ctor/dtor and C++ exception handling.
18847 * config/i386/rtemself.h: Now uses crtstuff (crti.o + crtbegin.o)
18848 for STARTFILE_SPEC and crtstuff (crtend.o + crtn.o) for
18850 * config/i386/t-rtems-i386: New File.
18852 Tue Sep 14 09:47:41 1999 Andreas Schwab <schwab@suse.de>
18854 * stmt.c (expand_end_case): Return right away if the case stack is
18857 Tue Sep 14 01:47:19 1999 Jeffrey A Law (law@cygnus.com)
18859 * Makefile.in (version.c): Remove rule incorrectly brought in from
18862 Tue Sep 14 01:42:27 1999 Marc Espie <espie@cvs.openbsd.org>
18864 * Makefile.in: Prepend $(SHELL) to move-if-change calls.
18865 * msdos/top.sed: Take into account a prepended $(SHELL) to
18867 * winnt/config-nt.sed: Likewise. Kill bogus substitution.
18869 * objc/Make-lang.in: Prepend $(SHELL) to move-if-change calls.
18871 Tue Sep 14 01:38:52 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
18873 * regmove.c (fixup_match_1): Don't change an unchanging register.
18874 (stable_but_for_p): Renamed to:
18875 (stable_and_no_regs_but_for_p). Reject unchanging registers too.
18876 Changed all callers.
18878 Tue Sep 14 01:33:15 1999 Andreas Schwab <schwab@suse.de>
18880 * loop.c (strength_reduce): Don't call reg_used_between_p if the
18881 insn from BL2 is after the insn from BL.
18883 Mon Sep 13 21:06:01 1999 Richard Henderson <rth@cygnus.com>
18885 * recog.h (INSN_OUTPUT_FORMAT_*): New.
18886 (struct insn_data): Merge `template' and `outfun' into `output'.
18887 Add `output_format'.
18888 * genoutput.c (INSN_OUTPUT_FORMAT_*): New.
18889 (struct data): Remove `outfun'; add `output_format'.
18890 (name_for_index): Remove declaration.
18891 (output_insn_data): Handle output formats.
18892 (process_template): Emit the bare array for @.
18893 (gen_expand, gen_split): Set output_format to NONE.
18894 * output.h (get_insn_template): Declare.
18895 * final.c (get_insn_template): New.
18896 (final_scan_insn): Use it.
18897 * toplev.c (compile_file): Likewise.
18899 * c4x/c4x.c (c4x_process_after_reload): Likewise.
18900 * i860/i860.c (output_delayed_branch): Likewise.
18901 (output_delay_insn): Likewise.
18903 1999-09-13 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
18905 * rtl.c (obstack_alloc_rtx): Removed.
18907 1999-09-13 17:03 -0700 Zack Weinberg <zack@bitmover.com>
18909 * config/gmicro/gmicro.md: Disable move DF->DI anonymous pattern.
18911 Mon Sep 13 15:21:46 1999 Richard Henderson <rth@cygnus.com>
18913 * i386.c (call_insn_operand): Reject const_int.
18914 (expander_call_insn_operand): Use call_insn_operand.
18916 Mon Sep 13 17:44:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18918 * gcc.c (getrusage): Wrap prototype arguments in PROTO().
18920 1999-09-13 12:18 -0700 Zack Weinberg <zack@bitmover.com>
18922 * config/i370/i370.md (mulsi, divsi, modsi anonymous insns):
18923 Use DImode operation.
18925 1999-09-13 12:13 -0700 Zack Weinberg <zack@bitmover.com>
18927 * gcc.c: Include sys/resource.h.
18928 (report_times): New flag.
18929 (execute): If report_times is set, calculate and report the
18930 CPU time consumed by each subprocess.
18932 (rus, prus): New globals.
18933 (option_map): Add --time.
18934 (display_help): Document -time.
18935 (process_command): Set report_times if -time is given.
18936 Turn off -pipe if -time is given.
18938 * invoke.texi: Document new option -time.
18940 * configure.in: Check for getrusage. Check if we have to
18941 prototype getrusage.
18942 * acconfig.h: Add NEED_DECLARATION_GETRUSAGE.
18943 * configure: Regenerate.
18944 * config.in: Regenerate.
18946 Mon Sep 13 12:57:06 1999 Dave Brolley <brolley@cygnus.com>
18948 * cppinit.c (append_include_chain): Initialize 'next' and 'alloc'
18951 Mon Sep 13 10:01:33 1999 Nick Clifton <nickc@cygnus.com>
18953 * config/fp-bit.c: Define L_thenan_sf or L_thenan_df (as
18954 appropriate) if FINE_GRAINED_LIBRARIES is not defined.
18955 (nan): Return _thenan_sf or _thenan_df as appropriate.
18956 (L_thenan_sf): Define _thenan_sf.
18957 (L_thenan_df): Define _thenan_df.
18959 * Makefile.in (FPBIT_FUNCS): Add _thenan_sf.
18960 (DPBIT_FUNCS): Add _thenan_df.
18962 Mon Sep 13 09:38:53 1999 Andreas Schwab <schwab@suse.de>
18964 * tree.c (fix_sizetype): Exchange the types for TYPE_SIZE and
18967 Sun Sep 12 23:28:20 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18969 * Makefile.in (gcc.o, gccspec.o, cppspec.o): Depend on gcc.h.
18972 (lang_specific_driver): Don't take a function pointer parameter.
18973 All callers changed.
18975 * gcc.c: Include gcc.h.
18976 (do_spec, fancy_abort,lang_specific_driver,lang_specific_pre_link,
18977 lang_specific_extra_outfiles, fatal): Don't declare.
18978 (multilib_defaults_raw): Constify.
18979 (read_specs): Call memset, rather than bzero.
18980 (main): Call return, not exit.
18981 (lookup_compiler): Call memcpy, not bcopy.
18982 (fatal): Make extern.
18984 * cppspec.c: Include gcc.h.
18985 (lang_specific_driver): Initialize variable `quote'. Constify a
18986 char*. All calls to the function pointer parameter now
18987 explicitly call `fatal'.
18989 * gccspec.c (lang_specific_driver): Include gcc.h.
18991 Sun Sep 12 19:52:10 1999 Richard Earnshaw <rearnsha@arm.com>
18993 * arm.c (note_invalid_constants): Use recog_data.operand_type
18996 Sun Sep 12 15:53:20 1999 Bernd Schmidt <bernds@cygnus.co.uk>
18998 * tree.h (build_common_tree_nodes, build_common_tree_nodes_2):
19001 * reload.h (reload_in, reload_out, reload_in_reg, reload_out_reg,
19002 reload_reg_class, reload_inmode, reload_outmode, reload_optional,
19003 reload_nongroup, reload_inc, reload_opnum, reload_secondary_p,
19004 reload_secondary_in_reload, reload_secondary_out_reload,
19005 reload_secondary_in_icode, reload_secondary_out_icode,
19006 reload_reg_rtx, reload_when_needed): Delete declarations.
19007 (struct reload): New structure.
19008 (rld): Declare new array.
19009 * reload.c (reload_in, reload_out, reload_in_reg, reload_out_reg,
19010 reload_reg_class, reload_inmode, reload_outmode, reload_optional,
19011 reload_nongroup, reload_inc, reload_opnum, reload_secondary_p,
19012 reload_secondary_in_reload, reload_secondary_out_reload,
19013 reload_secondary_in_icode, reload_secondary_out_icode,
19014 reload_reg_rtx, reload_when_needed): Delete definitions.
19016 (whole file): Replace uses of the deleted arrays with uses of rld.
19017 * reload1.c (whole file): Replace uses of the deleted arrays with
19019 (choose_reload_regs): Copy in/out of save_reload_reg_rtx with
19020 explicit loops, not with bcopy.
19022 Sun Sep 12 05:00:24 1999 Richard Henderson <rth@cygnus.com>
19024 * recog.h (insn_template, insn_outfun, insn_n_operands, insn_n_dups,
19025 insn_n_alternatives, insn_operand_constraint, insn_operand_address_p,
19026 insn_operand_mode, insn_operand_strict_low, insn_operand_predicate,
19027 insn_name): Delete and consolidate into new structures.
19028 (insn_operand_predicate_fn): New.
19029 (insn_output_fn): New.
19030 (insn_gen_fn): New.
19031 (struct insn_operand_data): New.
19032 (struct insn_data): New.
19034 (OUT_FCN): Update for insn_data change.
19035 * builtins.c (expand_builtin_strlen): Likewise.
19036 (expand_builtin_memcmp): Likewise.
19037 * combine.c (make_extraction, simplify_comparison): Likewise.
19038 * cse.c (canon_reg, cse_insn): Likewise.
19039 * explow.c (allocate_dynamic_stack_space, probe_stack_range): Likewise.
19040 * expmed.c (store_bit_field, extract_bit_field): Likewise.
19041 (emit_store_flag): Likewise.
19042 * expr.c (convert_move, emit_block_move): Likewise.
19043 (clear_storage, emit_push_insn, expand_increment): Likewise.
19044 (do_store_flag): Likewise.
19045 * expr.h (GEN_FCN): Likewise.
19046 (insn_gen_function): Die.
19047 * final.c (final_scan_insn): Update for insn_data change.
19048 (output_asm_name): Likewise.
19049 * function.c (fixup_var_refs_1): Likewise.
19050 * loop.c (check_dbra_loop): Likewise.
19051 * optabs.c (expand_binop, expand_twoval_binop): Likewise.
19052 (expand_unop, expand_complex_abs, emit_unop_insn): Likewise.
19053 (prepare_cmp_insn, prepare_operand, emit_indirect_jump): Likewise.
19054 (emit_conditional_move, gen_add2_insn, gen_sub2_insn): Likewise.
19055 * recog.c (validate_replace_rtx_1, extract_insn): Likewise.
19056 * regmove.c (gen_add3_insn): Likewise.
19057 * reload.c (push_secondary_reload, combine_reloads): Likewise.
19058 (find_reloads, find_reloads_address_1): Likewise.
19059 (debug_reload_to_stream): Likewise.
19060 * reload1.c (emit_reload_insns, gen_reload): Likewise.
19061 * stmt.c (expand_end_case): Likewise.
19062 * toplev.c (compile_file): Likewise.
19064 * c4x/c4x.c (c4x_process_after_reload): Likewise.
19065 * i860/i860.c (output_delayed_branch, output_delay_insn): Likewise.
19067 * print-rtl.c (insn_name_ptr): Remove declaration.
19068 (get_insn_name): Declare.
19069 (print_rtx): Use it.
19070 * genoutput.c (insn_name_ptr): Remove.
19071 (next_operand_number): New.
19072 (struct operand_data): New.
19073 (null_operand, odata, odata_end): New.
19074 (struct data): Use struct operand_data.
19075 (idata, idata_end): Renamed from insn_data and end_of_insn_data.
19076 (get_insn_name): Renamed from name_for_index.
19077 (output_prologue): Define NO_MD_PROTOTYPES.
19078 (output_predicate_decls): Break out from output_epilogue.
19079 Iterate over the operands list.
19080 (output_operand_data): Break out from output_epilogue. Emit
19081 just the operands list.
19082 (output_insn_data): Break out from output_epilogue. Emit just
19084 (output_epilogue): Remove.
19085 (output_get_insn_name): New.
19086 (constraints, op_n_alternatives, predicates, address_p): Die.
19087 (modes, strict_low, seen): Die.
19088 (scan_operands): Take new param `d' instead of writing to
19089 seven global variables.
19090 (compare_operands): New.
19091 (place_operands): New.
19092 (validate_insn_alternatives): Update for struct data change.
19093 (gen_insn): Don't zero or copy 7 global arrays. Update for
19094 scan_operands; call place_operands.
19095 (gen_peephole, gen_expand, gen_split): Likewise.
19096 (main): Update for new output routines.
19098 * genattr.c (insn_name_ptr): Remove.
19099 (get_insn_name): New function.
19100 * genattrtab.c, gencodes.c, genconfig.c, genemit.c: Likewise.
19101 * genextract.c, genflags.c, genopinit.c, genpeep.c: Likewise.
19102 * genrecog.c: Likewise.
19104 * alpha.md (adddi3): Make `pattern' array static.
19106 Sun Sep 12 22:05:21 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
19108 * config/c4x/c4x.h (c4x_rpts_cycles_string,
19109 c4x_cpu_version_string): Constify char *.
19110 * config/c4x/c4x.c (c4x_rpts_cycles_string,
19111 c4x_cpu_version_string): Likewise.
19113 Sat Sep 11 23:28:33 1999 Richard Henderson <rth@cygnus.com>
19115 * tree.c (save_tree_status): Revert 10 Sep change.
19116 (restore_tree_status): Likewise. Call obstack_free with NULL
19117 before freeing the obstack proper.
19119 Sat Sep 11 23:23:46 1999 Richard Henderson <rth@cygnus.com>
19121 * cse.c (cse_main): If gc'ing, collect around cse_basic_block.
19123 * ggc-simple.c (ggc_pop_context): Fold outstanding bytes into
19124 surrounding context.
19126 Sat Sep 11 19:52:43 1999 Mark Mitchell <mark@codesourcery.com>
19128 * tree.c (type_hash_canon): Put all types in the hash-table, when
19131 Sat Sep 11 18:37:04 1999 Richard Henderson <rth@cygnus.com>
19133 * recog.h (struct recog_data, recog_data): New.
19134 (recog_foo variables): Kill.
19135 * recog.c (recog_operand, recog_operand_loc): Kill.
19136 (recog_dup_loc, recog_dup_num, recog_n_operands): Kill.
19137 (recog_n_dups, recog_n_alternatives, recog_operand_mode): Kill.
19138 (recog_constraints, recog_op_type, recog_operand_address_p): Kill.
19139 (recog_data): Define.
19140 (extract_insn): Update all recog_foo references to use recog_data.
19141 (preprocess_constraints, constrain_operands): Likewise.
19142 * final.c (final_scan_insn, cleanup_subreg_operands): Likewise.
19143 * genattrtab.c (main): Likewise.
19144 * genextract.c (main): Likewise.
19145 * genoutput.c: Likewise.
19146 * genrecog.c (write_subroutine, main): Likewise.
19147 * local-alloc.c (block_alloc): Likewise.
19148 * reg-stack.c (record_asm_reg_life, subst_asm_stack_regs): Likewise.
19149 * regclass.c (scan_one_insn, record_reg_classes): Likewise.
19150 * regmove.c (regmove_optimize, find_matches, fixup_match_1): Likewise.
19151 * reload.c (find_reloads, find_reloads_toplev): Likewise.
19152 * reload1.c (maybe_fix_stack_asms, eliminate_regs_in_insn): Likewise.
19153 (reload_cse_simplify_operands): Likewise.
19155 * arc/arc.c (arc_final_prescan_insn): Likewise.
19156 * arm/arm.c (note_invalid_constants, arm_final_prescan_insn): Likewise.
19157 * h8300/h8300.c (notice_update_cc): Likewise.
19158 * i386/i386.c (ix86_attr_length_default, ix86_agi_dependant): Likewise.
19159 * i860/i860.c (output_delayed_branch, output_delay_insn): Likewise.
19160 * mn10200/mn10200.c (notice_update_cc): Likewise.
19161 * mn10300/mn10300.c (notice_update_cc): Likewise.
19162 * romp/romp.c (update_cc): Likewise.
19163 * sparc/sparc.c (check_pic): Likewise.
19164 * v850/v850.c (notice_update_cc): Likewise.
19166 * genemit.c (main): Don't declare recog_operand.
19168 Sat Sep 11 12:41:55 1999 Alex Samuel <samuel@codesourcery.com>
19170 * ggc.h (rtvec_def): Forward declare.
19171 (tree_node): Likewise.
19172 (ggc_root): Define.
19174 (ggc_set_mark_rtx): Add prototype.
19175 (ggc_set_mark_rtvec): Likewise.
19176 (ggc_set_mark_tree): Likewise.
19177 * ggc-simple.c (ggc_root): Don't define.
19178 (roots): Don't declare.
19179 (ggc_mark_rtx): Remove.
19180 (ggc_mark_rtvec): Likewise.
19181 (ggc_mark_tree): Likewise.
19182 (ggc_mark_varray): Likewise.
19183 (ggc_mark_tree_hash_table_entry): Likewise.
19184 (ggc_mark_tree_hash_table): Likewise.
19185 (ggc_set_mart_rtx): New function.
19186 (ggc_set_mark_rtvec): Likewise.
19187 (ggc_set_mark_tree): Likewise.
19188 (ggc_add_root): Remove.
19189 (ggc_add_rtx_root): Likewise.
19190 (ggc_remove_tree_root): Likewise.
19191 (ggc_add_string_root): Likewise.
19192 (ggc_add_tree_varray_root): Likewise.
19193 (ggc_add_tree_hash_table_root): Likewise.
19194 (ggc_del_root): Likewise.
19195 (ggc_mark_rtx_ptr): Likewise.
19196 (ggc_mark_tree_ptr): Likewise.
19197 (ggc_mark_string_ptr): Likewise.
19198 (ggc_mark_tree_varray_ptr): Likewise.
19199 (ggc_mark_tree_hash_table_ptr): Likewise.
19200 * ggc-common.c: New file.
19201 * Makefile.in (OBJS): Add ggc-common.o.
19202 (ggc-common.o): List dependencies.
19204 1999-09-10 22:37 -0700 Zack Weinberg <zack@bitmover.com>
19206 * cppalloc.c (xstrdup): Use memcpy.
19207 * cpperror.c (cpp_print_containing_files): Don't use
19209 * cpplib.c (conditional_skip): Set temp->lineno.
19210 (do_endif): Make error message less obscure.
19211 (if_directive_name): New function.
19212 (cpp_get_token [case EOF]): Unwind the if stack and generate
19213 error messages for each unterminated conditional in this file.
19214 (parse_string): Do not behave differently if -traditional.
19216 Fri Sep 10 14:04:07 1999 Richard Henderson <rth@cygnus.com>
19218 * builtins.c (expand_builtin_va_arg): Cope with an array-type
19219 va_list decomposing to pointer-type.
19220 * rs6000.c (rs6000_va_start) Unwrap the ARRAY_TYPE to get at fields.
19221 (rs6000_va_arg): Likewise.
19223 Fri Sep 10 13:21:21 1999 Jim Wilson <wilson@cygnus.com>
19225 * except.c (start_dynamic_handler): Compute size using
19226 STACK_SAVEAREA_MODE.
19228 Fri Sep 10 16:01:23 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19230 * protoize.c: Remove various __STDC__ and POSIX hacks. Don't
19231 include directory headers. Don't define strrchr. Don't provide
19232 my_* replacement functions. Prefer PTR over `pointer_type'.
19233 Don't prototype system functions. Don't redefine getopt.
19235 (shortpath, fancy_abort, notice, savestring, dupnstr, substr,
19236 safe_read, safe_write, save_pointers, restore_pointers,
19237 is_id_char, in_system_include_dir, directory_specified_p,
19238 file_excluded_p, unexpand_if_needed, abspath, check_aux_info,
19239 find_corresponding_lparen, referenced_file_is_newer,
19240 save_def_or_dec, munge_compile_params, gen_aux_info_file,
19241 process_aux_info_file, identify_lineno, check_source,
19242 seek_to_line, forward_to_next_token_char, output_bytes,
19243 output_string, output_up_to, other_variable_style_function,
19244 find_rightmost_formals_list, do_cleaning, careful_find_l_paren,
19245 do_processing, is_syscalls_file, rename_c_file, find_extern_def,
19246 find_static_definition, connect_defs_and_decs, add_local_decl,
19247 add_global_decls, needs_to_be_converted, visit_each_hash_node,
19248 add_symbol, lookup, free_def_dec, find_file, reverse_def_dec_list,
19249 edit_fn_declaration, edit_formals_lists, edit_fn_definition,
19250 scan_for_missed_items, edit_file, string_list_cons): Add static
19252 (standard_exec_prefix, target_machine, target_version,
19253 default_syscalls_dir, string_list, string_list_cons, find_file,
19254 do_cleaning): Constify a char*.
19255 (safe_read, safe_write): Use PTR, not a char*.
19256 (is_id_char): Take an int, not a char.
19257 (main): Add prototype. Call return, not exit.
19259 Fri Sep 10 16:48:26 1999 Andrew Haley <aph@cygnus.com>
19261 * tree.c (type_hash_lookup): Check for equal TYPE_ALIGN fields
19262 when comparing types.
19264 Fri Sep 10 08:43:32 1999 Richard Henderson <rth@cygnus.com>
19266 * loop.c (basic_induction_var): Typo NULL_RTX -> NULL.
19267 (strength_reduce): Release the varrays from the no-bivs early exit.
19269 * reload1.c (order_regs_for_reload): Init hard_reg_n_uses before
19270 the loop over the registers.
19272 * tree.c (save_tree_status): Set maybepermanent_firstobj NULL
19274 (restore_tree_status): Check that instead when freeing the obstack.
19276 Wed Sep 8 16:12:04 1999 Andrew Haley <aph@cygnus.com>
19278 * alias.c (rtx_equal_for_memref_p): Allow CONST_DOUBLEs to be used
19281 Fri Sep 10 11:58:55 1999 Bernd Schmidt <bernds@cygnus.co.uk>
19283 * i386.md (ashlqi3): For NON_QI_REG_P regs, use sall. Fix some
19284 operand size modifiers.
19286 Fri Sep 10 10:32:32 1999 Bernd Schmidt <bernds@cygnus.co.uk>
19288 * c-common.c (c_common_nodes_and_builtins): Don't build
19290 * c-common.h (enum c_tree_index and related accesor macros): Remove
19291 everything now declared in tree.h.
19292 * c-decl.c (CHAR_TYPE_SIZE, SHORT_TYPE_SIZE, INT_TYPE_SIZE,
19293 LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE, WCHAR_UNSIGNED, FLOAT_TYPE_SIZE,
19294 DOUBLE_TYPE_SIZE, LONG_DOUBLE_TYPE_SIZE): Don't provide defaults.
19295 (error_mark_node, void_type_node, char_type_node, integer_type_node,
19296 unsigned_type_node, ptr_type_node, va_list_type_node,
19297 integer_zero_node, null_pointer_node, integer_one_node): Delete.
19298 (init_decl_processing): Call build_common_tree_nodes and
19299 build_common_tree_nodes_2 instead of building their nodes here.
19300 Don't add roots for these nodes.
19301 * stor-layout.c (size_zero_node, size_one_node): Delete.
19302 (set_sizetype): Make a new node for bitsizetype each time.
19303 * tree.c (global_trees): New variable.
19304 (init_obstacks): Add a gc root for it.
19305 (CHAR_TYPE_SIZE, SHORT_TYPE_SIZE, INT_TYPE_SIZE,
19306 LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE, FLOAT_TYPE_SIZE,
19307 DOUBLE_TYPE_SIZE, LONG_DOUBLE_TYPE_SIZE): Provide defaults.
19308 (build_common_tree_nodes): New function.
19309 (fix_sizetype): New function.
19310 (build_common_tree_nodes_2): New function.
19311 * tree.h (enum tree_index): New.
19312 (global_trees): Declare.
19313 Add accessor macros for all nodes now moved to global_trees.
19314 Delete their declarations.
19316 Thu Sep 9 20:15:46 1999 Richard Henderson <rth@cygnus.com>
19318 * c-decl.c (finish_function): When processing a nested function,
19319 push and pop GC context around rest_of_compilation.
19321 Thu Sep 9 16:42:06 1999 Richard Henderson <rth@cygnus.com>
19323 * i386.c (override_options): Remove ppro, pentium2, and p2 as aliases.
19324 Default ix86_arch to PROCESSOR_I386.
19325 * i386.h (CC1_CPU_SPEC): Don't add -march=foo. Remove -mno-foo.
19326 (CPP_486_SPEC, CPP_586_SPEC, CPP_686_SPEC): Delete.
19327 (CPP_CPU_DEFAULT_SPEC): Define to __tune_foo__.
19328 (CC1_CPU_SPEC): Make -march=foo define __foo__, and provide
19329 __tune_foo__ if no -mcpu. Make -mcpu=bar define __tune_bar__.
19330 (EXTRA_SPECS): Remove deleted specs.
19332 Thu Sep 9 16:03:06 1999 Richard Henderson <rth@cygnus.com>
19334 * function.c (assign_stack_local_1): Allocate from
19335 function->x_frame_offset, not frame_offset.
19337 Thu Sep 9 14:36:31 1999 Mark Mitchell <mark@codesourcery.com>
19339 * ggc.h (lang_cleanup_tree): Remove.
19340 * gcc-simple.c (ggc_free_tree): Don't call lang_cleanup_tree.
19341 * ggc-callbacks.c (lang_cleanup_tree): Remove.
19343 * c-decl.c (finish_struct): Use ggc_alloc to allocate
19344 TYPE_LANG_SPECIFIC when garbage collecting.
19345 (lang_mark_tree): Mark TYPE_LANG_SPECIFIC.
19346 (lang_cleanup_tree): Remove.
19348 Thu Sep 9 14:23:02 1999 Jason Merrill <jason@yorick.cygnus.com>
19350 * defaults.h (EH_FRAME_SECTION, EH_FRAME_SECTION_ASM_OP): Define here.
19351 * crtstuff.c: Not here.
19352 * dwarf2out.c: Or here.
19353 * libgcc2.c (__do_global_ctors, __do_global_dtors): Handle EH frame
19356 Thu Sep 9 09:40:58 1999 Mark Mitchell <mark@codesourcery.com>
19358 * function.h (free_after_compilation): Remove decl parameter.
19359 (free_varasm_status0: Likewise.
19360 (free_emit_status): Likewise.
19361 (free_stmt_status): Likewise.
19362 (free_after_compilation): Likewise.
19363 (init_lang_status): New variable.
19364 (free_lang_status): Likewise.
19365 * emit-rtl.c (free_emit_status): Make decl parameter implicit.
19366 * function.c (init_lang_status): New variable.
19367 (free_lang_status): Likewise.
19368 (push_function_context_to): Don't set function::decl here.
19369 (free_after_copmilation): Make decl parameter implicit. Call
19370 free_lang_status if defined.
19371 (prepare_function_start): Call init_lang_status if defined.
19372 (init_function_start): Set function::decl here.
19373 * profile.c (output_func_start_profiler): Don't call pushdecl
19374 until we've actually started the function.
19375 * stmt.c (free_stmt_status): Make decl parameter implicit.
19376 * toplev.c (rest_of_compilation): Don't pass decl to
19377 free_after_compilation.
19378 * varasm.c (free_varasm_status): Likewise.
19380 Thu Sep 9 17:23:19 1999 Bernd Schmidt <bernds@cygnus.co.uk>
19382 * except.c (call_get_eh_context): Add root when allocating static
19385 Thu Sep 9 15:24:59 BST 1999 Richard Earnshaw <rearnsha@arm.com>
19387 * arm.c: Include "ggc.h".
19388 (arm_add_gc_roots): New function.
19389 (arm_override_options): Call it.
19390 (aof_pic_entry): Add a GC root for aof_pic_label when it's allocated.
19392 * arm.md (define_asm_attributes): Add a pool_range attribute.
19394 Thu Sep 9 12:32:57 BST 1999 Nathan Sidwell <nathan@acm.org>
19396 * extend.texi (Volatiles): New node.
19398 Thu Sep 9 03:37:31 1999 Richard Henderson <rth@cygnus.com>
19400 * ggc-simple.c (IS_MARKED, IGNORE_MARK): New.
19401 (GGC_ANY_MAGIC, GGC_ANY_MAGIC_MARK): New.
19402 (struct ggc_any): Replace `mark' with `magic_mark'.
19403 (ggc_alloc_string): Use memcpy, not bcopy.
19404 (ggc_alloc_any): Set magic_mark. Update bytes_alloced_since_gc.
19405 (ggc_free_{rtx,rtvec,tree,string}): Mark inline.
19406 (ggc_free_any): New.
19407 (ggc_mark_string): Use IGNORE_MARK. Calc back to struct gcc_string.
19408 (ggc_mark): Use IGNORE_MARK. Abort if magic doesn't match.
19409 (ggc_collect): Re-enable collection avoidance. Use GGC_ANY_MARK.
19410 Use IS_MARKED. Use ggc_free_any.
19412 1999-09-09 Scott Bambrough <scottb@netwinder.org>
19414 * config/arm/linux-elf.h: define NO_IMPLICIT_EXTERN_C
19416 Thu Sep 9 01:55:21 1999 Richard Henderson <rth@cygnus.com>
19418 * toplev.c (main): Always init_ggc.
19420 Wed Sep 8 23:53:22 1999 Richard Henderson <rth@cygnus.com>
19422 * except.c (find_all_handler_type_matches): Free the list if
19423 we found no matches.
19425 * combine.c (SUBST): Break out to a real function do_SUBST.
19426 (SUBST_INT): Likewise.
19427 * gcse.c (free_pre_mem): Free `temp_bitmap'.
19428 (pre_insert): Free `inserted'.
19429 * loop.c (basic_induction_var): Always set `location'.
19431 * function.c (expand_function_end): Add initial_trampoline as a root.
19432 * rtl.h (init_varasm_once): Declare.
19433 * toplev.c (compile_file): Call it.
19434 * ggc-simple.c (ggc_mark_string_ptr): New.
19435 (ggc_add_string_root): New.
19436 (ggc_collect): Disable collection avoidance temporarily.
19437 * ggc.h (ggc_add_string_root): Declare.
19438 * except.c (create_rethrow_ref): Use ggc_alloc_string.
19439 * optabs.c (init_libfuncs): Likewise.
19440 * varasm.c (named_section): Use ggc_alloc_string.
19441 (make_function_rtl): Likewise.
19442 (make_decl_rtl): Likewise.
19443 (assemble_static_space): Likewise.
19444 (assemble_trampoline_template): Likewise.
19445 (output_constant_def): Likewise.
19446 (force_const_mem): Likewise.
19447 (mark_const_hash_entry): New.
19448 (mark_pool_sym_hash_table): New.
19449 (mark_varasm_state): Use it.
19450 (init_varasm_once): New.
19452 * expr.h (init_one_libfunc): Declare.
19453 * optabs.c (init_one_libfunc): New.
19454 (init_optabs): Use it.
19455 * config/gofast.h: Likewise.
19456 * config/sparc/sol2.h (INIT_SUBTARGET_OPTABS): Likewise.
19457 * config/sparc/sparc.h (INIT_TARGET_OPTABS): Likewise.
19459 Thu Sep 9 13:46:06 1999 Geoffrey Keating <geoffk@cygnus.com>
19461 * Makefile.in (cppexp.o): Depend on cpphash.h.
19462 * cppexp.c (cpp_lex): Handle `defined (xxx)' for poisoned xxx.
19464 * cpphash.c (special_symbol): Handle plain `xxx' for poisoned xxx.
19465 * cpplib.c (do_define): Generalise to handle poisoned definitions,
19466 redefining poisoned identifiers, etc.
19467 (do_undef): Don't allow poisoned identifiers to be undefined.
19468 (do_pragma): Add #pragma poison.
19469 (do_xifdef): Handle `#ifdef xxx' for poisoned xxx.
19471 * cccp.c: Add T_POISON node type.
19472 (special_symbol): Handle `defined(xxx)' and plain `xxx' for
19474 (do_define): Generalise to handle poisoned definitions,
19475 redefining poisoned identifiers, etc.
19476 (do_undef): Don't allow poisoned identifiers to be undefined.
19477 (do_pragma): Add #pragma poison.
19478 (do_xifdef): Handle `#ifdef xxx' for poisoned xxx.
19480 * c-pragma.c (handle_pragma_token): Ignore #pragma poison.
19481 * c-pragma.h: Add ps_poison state. We now always have generic
19484 Wed Sep 8 20:30:42 1999 Mark Mitchell <mark@codesourcery.com>
19486 * ggc.h (ggc_alloc): New function.
19487 (ggc_mark): Likewise.
19488 * ggc-simple.c (ggc_any): New structure.
19489 (ggc_status): Add anys.
19490 (n_anys_collected): New variable.
19491 (ggc_alloc): Define.
19492 (ggc_mark): Likewise.
19493 (ggc_collect): Collect the anys.
19495 Wed Sep 8 20:15:14 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19497 * c-decl.c (mark_binding_level): Make static to match prototype.
19499 Wed Sep 8 16:41:27 1999 Richard Henderson <rth@cygnus.com>
19501 * flow.c (new_insn_dead_notes): Don't early out for preexisting regs.
19503 Wed Sep 8 16:07:52 1999 Richard Henderson <rth@cygnus.com>
19505 * gengenrtl.c (CONST_DOUBLE_FORMAT): Take the size REAL_ARITHMETIC
19506 will use into account. Expand the max width to 5.
19509 Wed Sep 8 16:01:14 1999 Richard Henderson <rth@cygnus.com>
19511 * ggc-simple.c (ggc_free_rtx): Poison the correct amount
19512 for the rtx length.
19514 Wed Sep 8 15:23:54 1999 Richard Henderson <rth@cygnus.com>
19516 * alpha.md (call value patterns): Remove the result predicates.
19518 Wed Sep 8 13:35:38 1999 Richard Henderson <rth@cygnus.com>
19520 * Makefile.in (stmp-fixinc): Remove extraneous exit 1 from
19523 Wed Sep 8 15:32:16 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19525 * system.h (sbrk, malloc, calloc, realloc): Backup prototypes
19526 changed from extern char *, to extern PTR. Also fix typo in
19527 NEED_DECLARATION_REALLOC test.
19529 * mips-tdump.c (malloc, calloc, realloc): Don't prototype.
19531 Wed Sep 8 11:40:47 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19533 * gansidecl.h (__attribute__, ATTRIBUTE_UNUSED_LABEL,
19534 ATTRIBUTE_UNUSED, ATTRIBUTE_NORETURN, ATTRIBUTE_PRINTF,
19535 ATTRIBUTE_PRINTF_1, ATTRIBUTE_PRINTF_2, ATTRIBUTE_PRINTF_3,
19536 ATTRIBUTE_PRINTF_4, ATTRIBUTE_PRINTF_5, GENERIC_PTR): Delete.
19538 * c-decl.c (field_decl_cmp): Use PTR instead of GENERIC_PTR.
19540 * cccp.c (pcfinclude): Likewise.
19542 * global.c (allocno_compare): Likewise.
19544 * haifa-sched.c (rank_for_schedule): Likewise.
19546 * local-alloc.c (qty_sugg_compare_1, qty_compare_1): Likewise.
19548 * reload1.c (hard_reg_use_compare, reload_reg_class_lower): Likewise.
19550 * stupid.c (stupid_reg_compare): Likewise.
19552 * tree.c (_obstack_allocated_p): Likewise.
19554 * varray.h (varray_data_tag, VARRAY_GENERIC_PTR_INIT): Likewise.
19556 1999-09-08 Bruce Korb autogen@linuxbox.com
19558 * Makefile.in: Give the hapless gperf user a hint about
19559 why "gperf -F" fails.
19561 Wed Sep 8 04:43:22 1999 Richard Henderson <rth@cygnus.com>
19563 * lists.c: Include ggc.h.
19565 (init_EXPR_INSN_LIST_cache): Install it.
19567 * ggc-simple.c (init_ggc): Absorb the old init.
19568 (ggc_push_context): Use xcalloc.
19569 (ggc_alloc_rtx, ggc_alloc_rtvec, ggc_alloc_tree): Likewise.
19570 (ggc_collect): Add [rvts] tags to the collection stats.
19572 Wed Sep 8 11:14:25 1999 Andreas Schwab <schwab@suse.de>
19574 * cccp.c (main): Fix handling of -include and -imacros options.
19576 Wed Sep 8 02:23:08 1999 Jeffrey A Law (law@cygnus.com)
19578 * cpplib.c (cpp_push_buffer): Fix order of arguments.
19580 Wed Sep 8 04:44:09 1999 Alexandre Oliva <oliva@dcc.unicamp.br>
19582 * rtl.h (obstack_alloc_rtx): Removed, it's now static in
19585 Wed Sep 8 00:33:43 1999 Alasdair Baird <alasdair@wildcat.demon.co.uk>
19587 * flow.c (insn_dead_p): Use XEXP rather than SUBREG_REG.
19588 * haifa-sched.c (sched_analyze_1): Use XEXP rather than SUBREG_REG
19589 and SET_DEST. Update comment.
19591 Wed Sep 8 18:55:17 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
19593 * config/c4x/c4x.c: Include ggc.h.
19594 (c4x_add_gc_roots): New function.
19595 (c4x_override_options): Call c4x_add_gc_roots.
19597 Wed Sep 8 00:00:16 1999 Richard Henderson <rth@cygnus.com>
19599 * defaults.h (TARGET_ESC): Move ...
19600 * system.h: ... here, where Linas had it in the first place. Silly me.
19602 Tue Sep 7 23:46:35 1999 Linas Vepstas <linas@linas.org>
19604 * c-common.c: Use ISGRAPH, ISLOWER, toupper.
19605 * c-lex.c, cccp.c, cexp.c, cexp.y, cppexp.c, dwarf2out.c, genattr.c,
19606 genattrtab.c, genemit.c, genextract.c, genpeep.c, tree.c: Likewise.
19607 * system.h (IN_CTYPE_DOMAIN): Define to 1 if HOST_EBCDIC.
19608 * defaults.h (TARGET_ESC): Add default.
19610 Tue Sep 7 23:36:59 1999 Linas Vepstas <linas@linas.org>
19612 * configure.in: add i370-*-openedition, i370-*-mvs and
19613 i370-*-linux targets
19615 Tue Sep 7 23:31:53 1999 Mark Mitchell <mark@codesourcery.com>
19617 * dsp16xxx.c: Include ggc.h
19618 (override_options): Mark GC roots.
19619 * mn10200.c: Include ggc.h.
19620 (asm_file_start): Mark GC roots.
19621 * tahoe.c: Include ggc.h.
19622 (extensible_operand): Mark GC roots.
19624 Tue Sep 7 23:23:15 1999 Linas Vepstas <linas@linas.org>
19626 * README: Add section discussing status of ELF ABI.
19627 * i370.c: Fix misc spelling mistakes.
19628 (i370_label_scan): Updated notes, exception handling.
19629 (i370_function_prolog): Simplify ELF stack handling.
19630 * i370.h: (FIXED_REGISTERS): Free up r12 for ELF.
19631 (STACK_GROWS_DOWNWARD): ELF stack grows down.
19632 (ASM_DECLARE_FUNCTION_NAME): Fix crazy malloc size.
19633 * i370.md: (movdi): Add notes.
19634 (floatsidf2): Use stack not rtca for scratch float area.
19635 (iorsi3): Correct operand constraints.
19636 * x-oe: Restore TAROUTOPTS which are used by pax.
19638 Tue Sep 7 22:39:18 1999 Mark Mitchell <mark@codesourcery.com>
19640 * rs6000.c: Include ggc.h.
19641 (rs6000_add_gc_roots): New function.
19642 (override_options): Call it.
19644 Tue Sep 7 22:09:03 1999 Richard Henderson <rth@cygnus.com>
19646 * alpha.h (alpha_compare): New.
19647 (alpha_compare_op0, alpha_compare_op1, alpha_compare_fp_p): Remove.
19648 * alpha.c: Likewise for the definitions.
19649 (alpha_emit_conditional_branch): Update for alpha_compare.
19650 (alpha_emit_conditional_move): Likewise.
19651 * alpha.md (cmpdf, cmpdi): Likewise.
19652 (setcc patterns): Likewise. Zero alpha_compare after use.
19653 (sne): Optimize (x != 0) into (0U < x).
19655 Tue Sep 7 21:55:02 1999 Richard Henderson <rth@cygnus.com>
19657 * alpha.h (alpha_eh_epilogue_sp_ofs): Remove.
19658 (struct machine_function): Declare; add eh_epilogue_sp_ofs.
19659 (INIT_EXPANDERS): Remove.
19660 * alpha.c: Include ggc.h.
19661 (alpha_eh_epilogue_sp_ofs, alpha_return_addr_rtx): Remove.
19662 (alpha_init_machine_status, alpha_mark_machine_status): New.
19663 (override_options): Install them.
19664 (struct machine_function): Moved to alpha.h.
19665 (alpha_save_machine_status, alpha_restore_machine_status): Remove.
19666 (alpha_init_expanders): Remove.
19667 (alpha_return_addr): Adjust to use current_function->machine.
19668 (alpha_ra_ever_killed): Likewise.
19669 (alpha_expand_epilogue): Likewise.
19670 * alpha.md (eh_epilogue): Likewise.
19672 Wed Sep 8 14:34:42 1999 Ian Piumarta <piumarta@prof.inria.fr>
19673 Melissa O'Neill <oneill@cs.sfu.ca>
19674 Geoffrey Keating <geoffk@cygnus.com>
19676 * config/rs6000/rs6000.c (first_reg_to_save): Don't save fixed or
19677 call-used registers (call-saved registers must still be contiguous
19678 and end with r31, of course).
19680 Tue Sep 7 21:41:38 1999 Richard Henderson <rth@cygnus.com>
19682 * c-typeck.c (type_lists_compatible_p): Use simple_type_promotes_to.
19683 (self_promoting_type_p): Delete.
19684 (self_promoting_args_p): Move ...
19685 * c-common.c: ... here.
19686 (c_common_nodes_and_builtins): Initialize lang_type_promotes_to.
19687 (simple_type_promotes_to): New.
19688 * builtins.c (lang_type_promotes_to): New.
19689 (expand_builtin_va_arg): Use it to give diagnostic for illegal types.
19690 * c-tree.h (C_PROMOTING_INTEGER_TYPE_P): Move ...
19691 * c-common.h: ... here.
19692 (self_promoting_args_p, simple_type_promotes_to): Declare.
19693 * c-decl.c (duplicate_decls): Use simple_type_promotes_to.
19694 (grokdeclarator): Likewise.
19695 * tree.h (lang_type_promotes_to): Declare.
19697 Tue Sep 7 17:15:21 1999 Mark Mitchell <mark@codesourcery.com>
19699 Add some machine-dependent GC roots.
19700 * sparc.c: Include ggc.h.
19701 (sparc_add_gc_roots): New function.
19702 (mark_ultrasparc_pipeline_state): Likewise.
19703 (override_options): Call sparc_add_gc_roots.
19704 * pa.c: Include ggc.h.
19705 (pa_add_gc_roots): New function.
19706 (mark_deferred_plabels): Likewise.
19707 (override_options): Call pa_add_gc_roots.
19708 * mips.c: Include ggc.h.
19709 (mips_add_gc_roots): New function.
19710 (override_options): Use it.
19712 Tue Sep 7 11:39:41 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19714 * cpperror.c (cpp_file_line_for_message): Constify a char*.
19716 * cppexp.c (parse_number, parse_charconst, cpp_lex,
19717 cpp_parse_expr): Add static prototypes.
19718 (parse_charconst): Don't cast away const-ness.
19719 (token): Constify a char*.
19721 * cppfiles.c (file_name_list, include_hash, find_include_file,
19722 finclude, initialize_input_buffer): Constify a char*.
19723 (file_cleanup, find_position): Add static prototypes.
19725 * cpphash.c (macro_cleanup, macarg, timestamp, special_symbol,
19726 collect_expansion): Add static prototypes.
19727 (cpp_install, create_definition, monthnames): Constify a char*.
19729 * cpphash.h (cpp_install): Likewise.
19731 * cppinit.c (known_suffixes, default_include,
19732 dump_special_to_buffer, NAME, cpp_start_read, cpp_finish): Likewise.
19733 (base_name, dump_special_to_buffer, initialize_dependency_output):
19734 Add static prototypes.
19736 * cpplib.c (my_strerror): Constify a char*.
19737 (null_underflow, null_cleanup, skip_comment, copy_comment,
19738 copy_rest_of_line, handle_directive, pass_thru_directive,
19739 get_directive_token, read_line_number, cpp_print_file_and_line,
19740 v_cpp_error, v_cpp_warning, v_cpp_error_with_line,
19741 v_cpp_warning_with_line, detect_if_not_defined,
19742 consider_directive_while_skipping): Add static prototypes.
19743 (pass_thru_directive, check_macro_name, cpp_expand_to_buffer,
19744 cpp_pedwarn_with_file_and_line): Constify a char*.
19746 * cpplib.h (cpp_options, include_hash, progname, definition,
19747 cpp_pedwarn_with_file_and_line, cpp_expand_to_buffer,
19748 check_macro_name, cpp_pfatal_with_name, cpp_file_line_for_message,
19749 find_include_file, deps_output, include_hash): Constify a char*.
19751 * cppmain.c (progname): Constify.
19752 (main): Add prototype. Use return, not exit.
19754 * fix-header.c (fatal, add_symbols, lookup_std_proto, write_lbrac,
19755 recognized_macro, check_macro_names, read_scan_file, write_rbrac,
19756 inf_skip_spaces, inf_read_upto, inf_scan_ident, inf_scan_ident,
19757 check_protection): Add static prototype.
19759 (progname, recognized_macrom, recognized_extern): Constify a char*.
19760 (main): Add prototype.
19762 * gen-protos.c (progname): Constify a char*.
19764 Tue Sep 7 00:47:52 1999 Mark Mitchell <mark@codesourcery.com>
19766 * emit-rtl.c (free_emit_status): Take decl as a parameter.
19767 (init_emit_once): Add more GC roots.
19768 * except.c (mark_func_eh_entry): New function.
19769 (mark_eh_node): Mark false_label and rethrow_label.
19770 (init_eh): Add more GC roots.
19771 * function.c (free_after_compilation): Take decl as a paramter.
19772 Call free_stmt_status.
19773 (mark_function_state): Don't assume x_parm_reg_stack_loc is
19775 * function.h (free_after_compilation): Change prototype.
19776 (free_varasm_status): Likewise.
19777 (free_emit_status): Likewise.
19778 (free_stmt_status): New function.
19779 * ggc-simple.c (rtx, vecs, trees, strings, bytes_alloced_since_gc):
19780 Remove, replacing with ...
19781 (ggc_status): New structure.
19782 (ggc_chain): New variable.
19783 (init_gcc): Define.
19784 (ggc_push_context): New function.
19785 (ggc_pop_context): Likewise.
19786 (ggc_alloc_rtx): Adjust for use of ggc_chain.
19787 (ggc_alloc_rtvec): Likewise.
19788 (ggc_alloc_tree): Likewise.
19789 (ggc_alloc_string): Likewise.
19790 (ggc_mark_rtx): Mark NOTE_SOURCE_FILE and NOTE_RANGE_INFO.
19791 (ggc_mark_tree): Give language-dependent code a chance to mark
19793 (ggc_mark_tree_varray): Handle empty arrays.
19794 (ggc_collect): Adjust for use of ggc_chain. Clear
19795 bytes_alloced_since_last_gc.
19796 * ggc.h (ggc_pop_context): New function.
19797 (ggc_push_context): Likewise.
19798 * print-tree.c (print_node): Don't print obstacks when GC'ing.
19799 * stmt.c (free_stmt_status): New function.
19800 (init_stmt_for_function): Clear last_expr_value.
19801 * toplev.c (rest_of_compilation): Always call free_after_compilation.
19802 Conditionalize call to ggc_collect.
19803 (main): Call init_ggc.
19804 * tree.c (push_obstacks): Do the push, even when GC'ing.
19805 (push_obstacks_nochange): Likewise.
19806 (pop_obstacks): Liekwise.
19807 * varasm.c (free_varasm_status): Take decl as a parameter.
19809 Tue Sep 7 08:15:49 1999 Gavin Romig-Koch <gavin@cygnus.com>
19811 * config/mips/mips.h (MULTILIB_ENDIAN_DEFAULT) : New macro.
19812 (MULTILIB_ENDIAN_DEFAULT) : Use the new macro.
19813 * config/mips/elf64.h (MULTILIB_DEFAULTS) : Use the new macro.
19814 * config/mips/r3900.h (MULTILIB_DEFAULTS) : Use the new macro.
19816 Tue Sep 7 03:42:45 1999 Mark Klein (mklein@dis.com)
19818 * pa/x-pa-mpeix: New file for the MPE port.
19820 * pa/quadlib.asm: New file for long double support.
19822 * configure.in: Add hppa1.0-*-mpeix for MPE port.
19823 * configure: Rebuilt.
19825 Tue Sep 7 10:08:40 1999 Andreas Schwab <schwab@suse.de>
19827 * final.c (shorten_branches): Fix last change.
19829 Tue Sep 7 00:30:32 1999 Jeffrey A Law (law@cygnus.com)
19831 * pa.h (ASM_OUTPUT_DOUBLE_INT): Delete.
19833 Mon Sep 6 22:44:47 1999 Jeffrey A Law (law@cygnus.com)
19835 * Merge from gcc2 snapshot Jan 9, 1999. See FSFChangeLog for
19838 Mon Sep 6 22:31:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19840 * c-aux-info.c (concat): Don't define.
19842 * cccp.c (my_strerror): Likewise. All callers changed to use
19844 (do_include): Call xstrdup, not xmalloc/strcpy.
19845 (grow_outbuf): Don't check if xrealloc returns NULL, it can't.
19846 (xmalloc, xrealloc, xcalloc, xstrdup): Don't define.
19848 * collect2.c (my_strsignal): Likewise. All callers changed to use
19850 (locatelib): Call xstrdup, not xmalloc/strcpy.
19852 * 1750a.h (ASM_OUTPUT_INTERNAL_LABEL): Call xmalloc, not malloc.
19854 * dsp16xx.c (override_options): Call xstrdup, not xmalloc/strcpy.
19856 * i370.h (ASM_DECLARE_FUNCTION_NAME): Call xmalloc, not malloc.
19858 * mips.c (build_mips16_call_stub): Call xstrdup, not xmalloc/strcpy.
19860 * cppinit.c (cpp_options_init): Call xcalloc, not xmalloc/bzero.
19862 * dwarfout.c (dwarfout_init): Call concat, not xmalloc/strcpy/...
19864 * except.c (new_eh_region_entry): Call xmalloc/xrealloc, not
19866 (find_all_handler_type_matches): Likewise. Don't check return
19868 (get_new_handler, init_insn_eh_region, process_nestinfo): Call
19869 xmalloc, not malloc.
19870 (init_eh_nesting_info): Likewise. Call xcalloc, not xmalloc/bzero.
19872 * gcc.c (xstrerror, xmalloc, xrealloc): Don't define.
19873 (init_spec): Call xcalloc, not xmalloc/bzero.
19874 (set_spec): Call xstrdup, not save_string.
19875 (record_temp_file): Call xstrdup, not xmalloc/strcpy.
19876 (find_a_file): Call xstrdup, not xmalloc/strcpy.
19877 (process_command): Call xstrdup, not save_string.
19878 (main): Call xcalloc, not xmalloc/bzero.
19880 * gcov.c (xmalloc): Don't define.
19881 (create_program_flow_graph): Call xcalloc, not xmalloc/bzero.
19882 (scan_for_source_files): Call xstrdup, not xmalloc/strcpy.
19883 (output_data): Call xcalloc, not xmalloc/bzero.
19885 * haifa-sched.c (schedule_insns): Call xcalloc, not xmalloc/bzero.
19887 * mips-tdump.c (xmalloc): Don't define.
19888 (print_symbol): Call xmalloc, not malloc.
19889 (read_tfile): Call xcalloc, not calloc.
19891 * mips-tfile.c (xfree, my_strsignal, xmalloc, xcalloc, xrealloc):
19892 Don't define. All callers of xfree/my_strsignal changed to use
19893 free/strsignal instead.
19894 (allocate_cluster): Call xcalloc, not calloc.
19896 * objc/objc-act.c (lang_init): Call concat, not xmalloc/strcpy/...
19897 Fix memory leak, free allocated memory.
19899 * prefix.c (translate_name): Call xstrdup, not save_string.
19900 (update_path): Likewise.
19902 * profile.c (branch_prob): Call xstrdup, not xmalloc/strcpy.
19904 * protoize.c (xstrerror, xmalloc, xrealloc, xfree, savestring2):
19905 Don't define. Callers of xfree/savestring2 changed to use
19906 free/concat instead.
19908 * reload1.c (reload): Call xcalloc, not xmalloc/bzero.
19909 (init_elim_table): Likewise.
19911 * resource.c (init_resource_info): Likewise.
19913 * stupid.c (stupid_life_analysis): Likewise.
19915 * toplev.c (xmalloc, xcalloc, xrealloc, xstrdup): Don't define.
19916 (open_dump_file): Call concat, not xmalloc/strcpy/...
19917 (clean_dump_file): Likewise.
19918 (compile_file): Call xstrdup, not xmalloc/strcpy.
19920 Mon Sep 6 15:04:55 1999 Richard Henderson <rth@cygnus.com>
19922 * v850.h (EXPAND_BUILTIN_VA_ARG): New.
19923 * v850.c (v850_va_arg): New.
19925 Tue Sep 7 09:36:01 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
19927 * haifa-sched.c: Tidy comments.
19929 Mon Sep 6 14:30:13 1999 Bernd Schmidt <bernds@cygnus.co.uk>
19931 * Makefile.in (C_AND_OBJC_OBJS): Remove ggc-callbacks.o.
19932 (c-parse.o, c-decl.o, c-lang.o, c-lex.o, c-common.o,
19933 $(out_object_file)): Depend on ggc.h.
19934 * c-common.c: Include "ggc.h".
19935 (combine_strings): If doing GC, use ggc_alloc_string.
19936 * c-decl.c: Include "ggc.h".
19937 (ggc_p): Define with value 0.
19938 (mark_binding_level): New function.
19939 (init_decl_processing): Add GC roots.
19940 (mark_c_function_context): New function.
19941 (lang_mark_false_label_stack): New function.
19942 (lang_mark_tree): New function.
19943 (lang_cleanup_tree): New function.
19944 * c-lang.c: Include "ggc.h".
19945 (lang_init): Call c_parse_init.
19946 * c-lex.c: Include "ggc.h".
19947 (check_linenum): If doing GC, don't copy filenames to permanent
19949 * c-parse.in: Include "ggc.h".
19950 (c_parse_init): New function.
19951 * c-tree.h (c_parse_init, mark_c_function_context): Declare.
19952 * objc/Make-lang.in (objc-parse.o): Depend on ggc.h.
19954 * except.c (mark_eh_state): Mark more state.
19955 * function.c (mark_function_state): Likewise.
19956 * ggc-simple.c (ggc_alloc_rtvec): Bring in sync with non-gc version.
19957 (ggc_alloc_string) [GGC_DUMP]: Fix typo.
19958 * toplev.c (mark_file_stack): New function.
19959 (compile_file): If doing GC, use ggc_alloc_string on input filename.
19960 (main): Add root for input_file_stack.
19962 * i386.c: Include "ggc.h".
19963 (ix86_mark_machine_status): New function.
19964 (override_options): Set mark_machine_status.
19966 Mon Sep 6 15:26:23 1999 Bernd Schmidt <bernds@cygnus.co.uk>
19968 * tree.c (copy_node): Copy node contents also if doing GC.
19970 Mon Sep 6 08:42:06 1999 Alexandre Oliva <oliva@dcc.unicamp.br>
19972 * collect2.c (scan_libraries): Fix double-thinko :-).
19974 Mon Sep 6 02:42:36 1999 Jeffrey A Law (law@cygnus.com)
19976 * collect2.c (scan_libraries): Fix thinko.
19978 * cse.c (delete_trivially_dead_insns): Do not skip the last
19979 insn if it is a real insn.
19981 Sun Sep 5 18:57:42 1999 Mark Mitchell <mark@codesourcery.com>
19983 * Makefile.in (ggc-simple.o): Depend on hash.h.
19984 * ggc.h (ggc_add_tree_hash_table_root): Declare.
19985 (ggc_mark_tree_varray): Likewise.
19986 (ggc_mark_tree_hash_table): Likewise.
19987 * ggc-simple.c: Include hash.h.
19988 (ggc_mark_tree_hash_table_ptr): New function.
19989 (ggc_mark_tree_hash_table_entry): Likewise.
19990 (ggc_mark_tree_hash_table): Likewise.
19991 (ggc_add_tree_hash_table_root): Likewise.
19992 * varray.h (const_equiv_data): Use struct rtx_def *, rather than
19993 rtx, when defining fields.
19995 Sun Sep 5 18:57:42 1999 Bernd Schmidt <crux@pool.informatik.rwth-aachen.de>
19997 * profile.c (output_func_start_profiler): Remove apparently
19998 nonsensical call to start_sequence.
20000 Sun Sep 5 17:34:33 1999 Richard Henderson <rth@cygnus.com>
20002 * clipper/clipper.c (clipper_va_start): Fix typos.
20004 * pyr/pyr.c (pyr_build_va_list, pyr_va_start, pyr_va_arg): New stubs.
20005 * spur/spur.c (spur_build_va_list, spur_va_start): New stubs.
20006 (spur_va_arg): New stub.
20008 * configure.in: Comment out pyramid.
20010 Sun Sep 5 19:11:01 1999 Michael Meissner <meissner@cygnus.com>
20012 * i386.h (MASK_{DEBUG_{ADDR,ARG},INTEL_SYNTAX}): Move so these
20013 don't conflict with the bits that win32, cygwin, and dgux
20016 Sun Sep 5 09:31:56 1999 Richard Henderson <rth@cygnus.com>
20017 Bernd Schmidt <bernds@cygnus.co.uk>
20019 * integrate.c (function_cannot_inline_p): Do not inline
20020 functions with forced labels.
20022 Sun Sep 5 00:35:17 1999 Richard Henderson <rth@cygnus.com>
20023 Bernd Schmidt <bernds@cygnus.co.uk>
20024 Mark Mitchell <mark@codesourcery.com>
20026 * Makefile.in (ggc-simple.o): Depend on varray.h.
20027 (rtl.o): Depend on ggc.h.
20028 (genattrtab.o): Depend on ggc.h.
20029 (print-tree.o): Likewise.
20030 (fold-const.o): Likewise.
20031 * emit-rtl.c (sequence_element_free_list): Remove, and all references.
20032 (make_insn_raw): Don't cache insns when GC'ing.
20033 (emit_insn_before): Likewise.
20034 (emit_insn_after): Likewise.
20035 (emit_insn): Likewise.
20036 (start_sequence): Use xmalloc to allocate the sequence_stack.
20037 (end_sequence): Add free to free it.
20038 (gen_sequence): Don't cache insns when GC'ing.
20039 (clear_emit_caches): Don't use sequence_element_free_list.
20040 (init_emit): Use xcalloc, not xmalloc+bzero.
20041 * fold-const.c (size_int_wide): Kill the cache, when GC'ing.
20042 * function.c (pop_function_context_from): Use free to free the
20043 fixup_var_refs_queue.
20044 (put_reg_into_stack): Allocate it with xmalloc.
20045 * genattrtab.c: Include ggc.h.
20046 (operate_exp): Don't use obstack_free when GC'ing.
20047 (simplify_cond): Likewise.
20048 (simplify_text_exp): Likewise.
20049 (optimize_attrs): Likewise.
20050 * gengenrtl.c (gendef): Use ggc_alloc_rtx to allocate RTL, when
20052 (gencode): Generate a #include for ggc.h.
20053 * ggc-callbacks.c (ggc_p): Define it to zero.
20054 * ggc-none.c (ggc_p): Likewise.
20055 * ggc-simple.c: Include varray.h.
20056 (ggc_mark_tree_varray): New function.
20057 (ggc_add_tree_varray_root): Likewise.
20058 (ggc_mark_tree_varray_ptr): Likewise.
20059 * ggc.h (ggc_p): Declare.
20060 (varray_head_tag): Likewise.
20061 (ggc_add_tree_varray_root): Declare.
20062 * print-tree.c (print_node): Don't check for TREE_PERMANENT
20063 inconsistencies when GC'ing.
20064 * rtl.c: Include ggc.h.
20065 (rtvec_alloc): Use ggc_alloc_rtvec when GC'ing.
20066 (rtx_alloc): Use ggc_alloc_rtx when GC'ing.
20067 (rtx_free): Don't call obstack_free when GC'ing.
20068 * toplev.c (rest_of_compilation): Call ggc_collect after every
20070 * tree.c (push_obstacks): Do nothing, if GC'ing.
20071 (pop_obstacks_nochange): Likewise.
20072 (pop_obstacks): Likewise.
20073 (make_node): Use ggc_alloc_tree when GC'ing.
20074 (copy_node): Likewise.
20075 (get_identifier): Use ggc_alloc_string when GC'ing.
20076 (build_string): Likewise.
20077 (make_tree_vec): Use ggc_alloc_tree when GC'ing.
20078 (tree_cons): Likewise.
20079 (build1): Likewise.
20080 (type_hash_canon): Don't call obstack_free when GC'ing.
20082 Sat Sep 4 21:52:32 1999 Richard Henderson <rth@cygnus.com>
20084 * haifa-sched.c (schedule_block): Use next_nonnote_insn instead
20085 of NEXT_INSN when examining speculative insns for SCHED_GROUP_P.
20087 Sat Sep 4 20:40:19 1999 Richard Henderson <rth@cygnus.com>
20088 Bernd Schmidt <bernds@cygnus.co.uk>
20089 Mark Mitchell <mark@codesourcery.com>
20091 * Makefile.in (stor-layout.o): Depend on ggc.h.
20092 (expr.o): Depend on ggc.h.
20093 (profile.o): Depend on ggc.h.
20094 (stor-layout.o): Depend on ggc.h.
20095 * emit-rtl.c (init_emit_once): Add gc roots.
20096 * expr.c: Include ggc.h.
20097 (emit_block_move): Add gc roots.
20098 (clear_storage): Likewise.
20099 * expr.h (init_stor_layout_once): New function.
20100 * profile.c: Include ggc.h.
20101 (init_arc_profiler): profiler_label is a root.
20102 * scan.c (make_sstring_space): Trust xrealloc to function
20103 correctly with first parameter NULL.
20104 * stor-layout.c: Include ggc.h.
20105 (set_sizetype): Add gc root.
20106 (init_stor_layout_once): New function.
20107 * toplev.c (compile_file): Call it.
20109 Sat Sep 4 19:26:25 1999 Richard Henderson <rth@cygnus.com>
20110 Bernd Schmidt <bernds@cygnus.co.uk>
20111 Mark Mitchell <mark@codesourcery.com>
20113 * Makefile.in (tree.o): Depend on ggc.h.
20114 (varasm.o): Likewise.
20115 (function.o): Likewise.
20116 (stmt.o): Likewise.
20117 (except.o): Likewise.
20118 (optabs.o): Likewise.
20119 (emit-rtl.o): Likewise.
20120 * emit-rtl.c: Include ggc.h.
20121 (sequence_element_free_list): Remove, and all references.
20122 (mark_sequence): New functions.
20123 (mark_emit_state): New function.
20124 * except.c: Include ggc.h.
20125 (mark_eh_node, mark_eh_stack, mark_eh_queue): New functions.
20126 (mark_tree_label_node): New functions.
20127 (mark_eh_state): New function.
20128 * function.c: Include ggc.h.
20129 (mark_temp_slot, mark_function_chain): New functions.
20130 (mark_function_state): New function.
20131 (init_function_once): New function.
20132 * function.h (init_function_once): New function.
20133 * ggc-callbacks.c (lang_mark_false_label_stack): New function.
20134 * ggc.h (label_node): Declare.
20135 (eh_status, emit_status, stmt_status, varasm_status): Likewise.
20136 (lang_mark_false_label_stack): New function.
20137 (mark_temp_slot): Remove declaration.
20138 (mark_function_chain): Likewise.
20139 (mark_eh_state): Adjust prototype.
20140 (mark_stmt_state, mark_emit_state, mark_varasm_state, mark_optab):
20142 * optabs.c: Include ggc.h.
20143 (mark_optab): New function.
20144 (init_optabs): Add gc roots.
20145 * stmt.c: Include ggc.h.
20146 (mark_cond_nesting, mark_loop_nesting): New functions.
20147 (mark_block_nesting, mark_case_nesting, mark_goto_fixup): Likewise.
20148 (mark_stmt_state): New function.
20149 * toplev.c (compile_file): Call init_function_once.
20150 * tree.c: Include ggc.h.
20151 (type_hash): Move declaration earlier in file.
20152 (TYPE_HASH_SIZE, type_hash_table): Likewise.
20153 (init_obstacks): Add gc roots.
20154 (mark_type_hash): New function.
20155 * varasm.c: Include ggc.h.
20156 (mark_pool_constant): New function.
20157 (mark_varasm_state): New function.
20159 Sat Sep 4 22:28:56 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20161 * ggc-simple.c (ggc_root, ggc_collect): Wrap prototype with PROTO.
20163 Sat Sep 4 18:01:45 1999 Bernd Schmidt <bernds@cygnus.co.uk>
20165 * c-decl.c (struct language_function): Renamed from struct c_function.
20167 (c_function_chain): Delete.
20168 (push_c_function_context): New arg F. Don't warn about nested
20169 functions here. Fill LANGUAGE elt of F. Delete code to update
20170 c_function_chain. Don't call push_function_context.
20171 (pop_c_function_context): New arg F. Restore from there instead of
20172 from c_function_chain. Don't call pop_function_context. Clear out
20173 LANGUAGE field of F when done.
20174 * c-lang.c: Include "function.h"
20175 (lang_init): Initialize save_lang_status and restore_lang_status.
20176 * c-parse.in (nested_function, nested_function_notype): Warn about
20177 nested functions. Call push_function_context/pop_function_context
20178 instead of the _c_ variants.
20179 * c-tree.h (push_c_function_context, pop_c_function_context): Update
20181 * Makefile.in (c-lang.o): Update dependencies.
20183 * emit-rtl.c (init_emit): Use xmalloc to allocate regno_reg_rtx,
20184 regno_pointer_flag, regno_pointer_align.
20185 (gen_reg_rtx): Use xrealloc to enlarge them.
20186 (free_emit_status): New function.
20187 * function.c (mark_machine_status, mark_lang_status): New variables.
20188 (assign_stack_local_1): Renamed from assign_outer_stack_local. Merge
20189 in some bits from assign_stack_local. All callers changed to use new
20191 (assign_stack_local): Just call assign_stack_local_1.
20192 (free_after_compilation): New function.
20193 (put_reg_into_stack): Simplify to always call assign_stack_local_1.
20194 (trampoline_address): Likewise.
20195 (assign_parms): Use xcalloc/xrealloc to allocate parm_reg_stack_loc.
20196 (prepare_function_start): Explicitly clear some more variables.
20197 * function.h (struct function): New elt can_garbage_collect.
20198 (mark_machine_status, mark_lang_status): Declare variables.
20199 (free_after_compilation, free_emit_status, free_varasm_status,
20200 init_varasm_status): Declare functions.
20201 * toplev.c (rest_of_compilation): Call free_after_compilation when
20202 done with the current function.
20203 * varasm.c (free_varasm_status): New function.
20205 Sat Sep 4 17:15:13 1999 Richard Henderson <rth@cygnus.com>
20207 * sparc.h (EXPAND_BUILTIN_VA_START): Define.
20208 (EXPAND_BUILTIN_VA_ARG): Define.
20209 * sparc.c (sparc_va_start): New.
20210 (sparc_va_arg): New.
20212 Sun Sep 5 11:11:59 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
20214 * config/c4x/c4x.h (DBR_OUTPUT_SEQEND): Use XVECEXP not XEXPs.
20216 Sun Sep 5 10:13:19 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
20218 * config/c4x/c4x.h (CALLER_SAVE_PROFITABLE): Disable.
20220 Sat Sep 4 13:44:01 1999 Mark Mitchell <mark@codesourcery.com>
20222 * Makefile.in (C_AND_C_OBJS): Add gcc-callbacks.o.
20223 (OBJS): Add $(GGC).
20224 (ggc-callbacks.o): New target.
20225 * ggc-callbacks.c: New file.
20227 Sat Sep 4 22:53:13 1999 Bernd Schmidt <bernds@cygnus.co.uk>
20229 * expr.h: Collapse individual optab and libfunc vars to arrays.
20230 (optab_index, libfunc_index): New enumerations.
20231 (optab_table, libfunc_table): New arrays.
20232 Add accessor macros for both.
20234 * optabs.c (optab_table, libfunc_table): New.
20235 Delete declarations for individual optab and libfunc vars.
20237 Sat Sep 4 12:57:17 1999 Richard Henderson <rth@cygnus.com>
20239 * i386/sco5.h (RETURN_POPS_ARGS): Name change ix86_return_pops_args.
20241 Sat Sep 4 11:19:52 1999 Richard Henderson <rth@cygnus.com>
20243 * Makefile.in (GGC, GGC_LIB): New.
20244 (HOST_RTL): Include ggc-none.o.
20245 (ggc-simple.o): New target.
20246 (ggc-none.o): Likewise.
20247 * tree.h (tree_common): Add gc_mark.
20248 * rtl.h (struct rtx_def): Steal a bit from code to make gc_mark.
20249 (struct rtvec_def): Add gc_mark.
20250 * emit-rtl.c (global_rtl): Update static initializers to contain
20251 enough initializers.
20252 * ggc.h, ggc-none.c, ggc-simple.c: New files.
20253 * toplev.c (gc_time): New variable.
20254 (all_time): New variable.
20255 (compile_file): Print gc time.
20256 (print_time): Calculate percentage of the whole.
20258 Sat Sep 4 13:11:01 1999 Bernd Schmidt <bernds@cygnus.co.uk>
20260 Change obstack memory management and varasm constant pool handling so
20261 that nested functions are treated like any other functions.
20262 * function.c (init_machine_status): New variable.
20263 (push_function_context_to): Set contains_functions for the outer
20264 function. Don't call save_varasm_status.
20265 (pop_function_context_from): Don't call restore_varasm_status. Don't
20266 set current_function_contains_functions.
20267 (prepare_function_start): Call init_varasm_status rather than
20268 init_const_rtx_hash_table. Call (*init_machine_status) if the pointer
20270 * function.h (struct function) Add field varasm. Delete fields
20271 inline_obstacks, inl_emit, const_rtx_hash_table, first_pool,
20272 last_pool, const_rtx_sym_hash_table, pool_offset, const_double_chain.
20273 (init_machine_status): Declare.
20274 (save_varasm_status, restore_varasm_status): Delete declarations.
20275 (save_tree_status, restore_tree_status): Delete last argument.
20276 * integrate.c (initialize_for_inline): Lose arg COPY. Delete copying
20277 code. All callers changed.
20278 (copy_decl_list, copy_decl_tree, copy_decl_rtls, copy_for_inline,
20279 save_constants_in_decl_trees, restore_constants, save_constants,
20280 save_for_inline_eh_labelmap, save_for_inline_copying): Delete
20282 (inlining): New variable.
20283 (reg_map, label_map, insn_map, orig_asm_operands_vector,
20284 copy_asm_operands_vector, copy_asm_constraints_vector): Delete
20286 (save_for_inline_nocopy): Don't save constants.
20287 Don't set inl_emit field in current_function.
20288 (expand_inline_function): Use emit field, not inl_emit, of the inlined
20289 function. Set new variable inlining before
20290 calling copy_rtx_and_substitute.
20291 (copy_rtx_and_substitute): In MEM and SYMBOL_REF cases, handle
20292 constant pool references if inlining is nonzero.
20293 Delete ADDRESS and (most of the) CONST cases.
20294 (output_inline_function): Save and restore current_function/
20295 current_function_decl. Delete restore_constants code. Don't call
20296 init_const_rtx_hash_table.
20297 * output.h (init_const_rtx_hash_table): Don't declare.
20298 * rtl.h (struct function): Declare.
20299 (get_pool_constant_for_function, get_pool_mode_for_function): Declare.
20300 * toplev.c (rest_of_compilation): Don't treat nested functions or
20301 functions containing them specially. Delete all code to deal with
20302 save_for_inline_copying.
20303 * tree.c (toplev_inline_obstacks, extra_inline_obstacks,
20304 inline_obstacks): Delete variables.
20305 (save_tree_status): Lose arg CONTEXT. All callers changed.
20306 Simply allocate a new function_maybepermanent_obstack for the new
20307 function, delete all the special cases.
20308 Don't save inline_obstacks.
20309 (restore_tree_status): Lose arg CONTEXT. All callers changed.
20310 Delete special handling for function_maybepermanent_obstack; simply
20312 Don't restore inline_obstacks.
20313 (permanent_allocation): Delete code that frees inline_obstacks.
20314 (print_inline_obstack_statistics): Delete function.
20315 (dump_tree_statistics): Don't call it.
20316 * varasm.c (struct varasm_status): New.
20317 (const_rtx_hash_table, const_rtx_sym_hash_table, first_pool,
20318 last_pool, pool_offset, const_double_chain): Delete global
20319 variables, replace with accessor macros.
20320 (immed_double_const): Don't walk const_double_chain outside a
20321 function, but don't treat nested functions specially anymore.
20322 (immed_real_const_1): Likewise.
20323 (clear_const_double_mem): Don't treat nested functions specially.
20324 (init_const_rtx_hash_table): Deleted, code moved to init_varasm_status.
20325 (save_varasm_status, restore_varasm_status): Delete functions.
20326 (init_varasm_status): New function.
20327 (force_const_mem): Don't treat nested functions specially.
20328 (find_pool_constant): Accept new arg F, search for constants in
20329 that function's pool rather than the current one. All callers
20331 (get_pool_constant_for_function, get_pool_mode_for_function): New
20334 * i386.c (init_386_machine_status): New function, mostly from
20335 clear_386_stack_locals.
20336 (struct machine_functions): Rename element names to avoid name
20338 (pic_label_rtx, pic_label_name, i386_stack_locals): New accessor
20339 macros, replacing global variables.
20340 (clear_386_stack_locals, save_386_machine_status,
20341 restore_386_machine_status): Delete functions.
20342 (override_options): Initialize init_machine_status.
20343 * i386.h (INIT_EXPANDERS): Delete macro.
20344 (save_386_machine_status, restore_386_machine_status,
20345 clear_386_stack_locals): Delete declarations.
20347 Sat Sep 4 16:56:28 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
20349 * config/c4x/c4x.md (rptb_init): Renamed from *rptb_init.
20350 (doloop_begin): Simplify pattern and use emit_jump_insn.
20351 (doloop_end): Simplify pattern, switch operand order,
20352 and use emit_jump_insn.
20354 Fri Sep 3 19:02:38 1999 Bernd Schmidt <crux@pool.informatik.rwth-aachen.de>
20356 * function.h (struct function): Add new element LANGUAGE.
20357 (save_lang_status): Declare new variable.
20358 (restore_lang_status): Likewise.
20359 * function.c (save_lang_status): Define.
20360 (restore_lang_status): Likewise.
20361 (push_function_context_to): Call language-specific save function.
20362 (pop_function_context_from): Call language-specific restore function.
20364 Fri Sep 3 01:16:18 1999 Alasdair Baird <alasdair@wildcat.demon.co.uk>
20366 * i386.md (movsf_1): Check REG_P before use of REGNO.
20367 (movdf_1): Likewise.
20368 (movxf_1): Likewise.
20369 (extendsfdf2): Likewise.
20370 (extendsfxf2): Likewise.
20371 (extenddfxf2): Likewise.
20373 Sat Sep 4 11:37:15 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
20375 * config/c4x/c4x.c (c4x_emit_move_sequence): Do not force large
20376 constants into memory.
20377 (c4x_shiftable_constant): New function.
20378 * config/c4x/c4x.c (LEGITIMATE_CONSTANT_P): Allow any CONST_INT.
20379 (c4x_shiftable_constant): Declare.
20380 * config/c4x/c4x.md (loadqi_big_constant, loadhi_big_constant,
20381 ashlqi3_noclobber): Add new patterns and associated splitters.
20383 Fri Sep 3 16:22:17 1999 Richard Henderson <rth@cygnus.com>
20385 * dbxout.c (dbxout_init): Use xcalloc instead of xmalloc+bzero.
20386 * dwarf2out.c (dwarf2out_frame_init): Likewise.
20387 * final.c (shorten_branches): Likewise.
20388 * global.c (global_alloc): Likewise.
20389 * haifa-sched.c (build_control_flow): Likewise.
20390 * stmt.c (check_for_full_enumeration_handling): Likewise.
20391 (estimate_case_costs): Likewise.
20393 Fri Sep 3 15:49:56 1999 Mark Mitchell <mark@codesourcery.com>
20395 * rtl.h (RTL_CHECKC2): Fix typo in last change.
20397 Fri Sep 3 15:13:34 1999 Richard Henderson <rth@cygnus.com>
20399 * flow.c (propagate_block): Use XEXP not SET_DEST for a USE.
20400 (recompute_reg_usage): Likewise.
20401 * rtlanal.c (find_regno_fusage): Likewise.
20403 * rtl.c (rtl_check_failed_code1): New function.
20404 (rtl_check_failed_code2): New.
20405 * rtl.h (RTL_CHECK1, RTL_CHECK2, RTVEC_ELT): Parenthesize args.
20406 (RTL_CHECKC1, RTL_CHECKC2): New.
20407 (XC*): New accessor macros.
20408 (NOTE_*, LABEL_NAME, LABEL_NUSES, ADDRESSOF_REGNO): Use them.
20409 (ADDRESSOF_DECL, JUMP_LABEL, LABEL_REFS, LABEL_NEXTREF): Likewise.
20410 (CONTAINING_INSN, REGNO, INTVAL, SUBREG_REG, SUBREG_WORD): Likewise.
20411 (ASM_OPERANDS_*, MEM_ALIAS_SET, SET_SRC, SET_DEST): Likewise.
20412 (TRAP_*, RANGE_INFO_*): Likewise.
20414 Fri Sep 3 15:10:20 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20416 * Makefile.in (tlink.o): Don't depend on toplev.h.
20418 * collect2.c (c_file, o_file, export_file, import_file, ldout,
20419 output_file, nm_file_name, ldd_file_name, strip_file_name,
20420 c_file_name, prefix_list, libexts, is_ctor_dtor, find_a_file,
20421 add_prefix, prefix_from_env, prefix_from_string, do_wait,
20422 fork_execute, maybe_unlink, add_to_list,
20423 extract_init_priority, write_list, dump_list,
20424 dump_prefix_list, write_list_with_asm, write_c_file,
20425 write_c_file_stat, write_c_file_glob, scan_prog_file,
20426 scan_libraries, is_in_list, resolve_lib_name, use_import_list,
20427 ignore_library, extract_string, notice, dump_file, target_machine,
20428 collect_wait, collect_execute, libname, locatelib, aix_std_libs,
20429 read_file, print_load_command): Constify a char*.
20430 (fdopen, error, fatal, fatal_perror): Don't prototype.
20431 (my_strerror): Remove. All callers use xstrerror instead.
20432 (xcalloc, xmalloc, xrealloc, xstrdup, putenv): Remove definitions.
20433 (main): Add prototype. Constify lots of char* ptrs. Change calls
20434 to xcalloc/strcpy/strcat/... to one call to concat.
20435 (main, scan_prog_file, scan_libraries): Use an intermediate
20436 `const char **' to build an argv array.
20437 (mapfile, libselect, libcompare, locatelib): Add prototypes.
20439 * collect2.h (collect_execute, collect_wait, dump_file,
20440 file_exists): Constify a char*.
20441 (ldout, c_file_name, temporary_obstack, permanent_obstack,
20442 temporary_firstobj, vflag, debug): Add extern declarations.
20443 (fancy_abort, error, notice, fatal, fatal_perror): Add prototypes.
20445 * tlink.c: Don't include toplev.h.
20446 (vflag, debug, ldout, c_file_name, temporary_obstack,
20447 permanent_obstack, temporary_firstobj): Don't declare.
20448 (tlink_execute, frob_extension, symbol_hash_lookup,
20449 file_hash_lookup, demangled_hash_lookup, tlink_init, freadsym,
20450 recompile_files, read_repo_files, demangle_new_symbols,
20451 scan_linker_output): Constify a char*.
20452 (symbol_hash_newfunc, file_hash_newfunc, demangled_hash_newfunc,
20453 do_tlink): Mark parameters with ATTRIBUTE_UNUSED.
20455 Fri Sep 3 18:09:24 1999 Andrew Haley <aph@cygnus.com>
20457 * config/m68k/m68kelf.h: Set USE_GAS; this makes gcc generate jbsr
20458 (relative) rather than jsr (absolute) subroutine call insns.
20459 * config/m68k/m68k-coff.h: Ditto.
20461 Fri Sep 3 17:24:31 1999 Richard Earnshaw <rearnsha@arm.com>
20463 * arm.c (note_invalid_constants): No need to ignore ASMs, we can
20464 now rework these too.
20465 (arm_reorg): If an insn can't reach the end of the current pool,
20466 ensure that we emit that pool before the insn.
20468 Fri Sep 3 09:14:32 1999 Marc Espie <espie@tetto.liafa.jussieu.fr>
20470 * tlink.c (scan_linker_output): Skip the initial underscore in
20471 a mangled name if appropriate.
20473 Fri Sep 3 01:28:33 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20475 * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
20476 objc_tree_code_name, synth_id_with_class_suffix, warn_with_method,
20477 error_with_ivar, gen_declarator, create_builtin_decl,
20478 my_build_string, generate_descriptor_table, generate_ivars_list,
20479 generate_dispatch_table, check_protocols, TAG_GETCLASS,
20480 TAG_GETMETACLASS, TAG_MSGSEND, TAG_MSGSENDSUPER, TAG_EXECCLASS,
20481 dump_base_name, lang_decode_option, build_encode_expr,
20482 start_class, finish_class, encode_pointer, really_start_method,
20483 gen_declaration, dump_interface, handle_class_ref, handle_impent):
20485 (objc_demangle, objc_printable_name, generate_struct_by_value_array):
20486 Add static prototypes.
20487 (build_objc_string_decl, build_selector_reference_decl,
20488 encode_bitfield, build_class_reference_decl): Remove unused
20489 parameter, all callers changed.
20490 (maybe_objc_method_name): Mark with ATTRIBUTE_UNUSED.
20491 (objc_printable_name): Likewise. Change second parameter to type int.
20492 (init_objc): Use memcpy, not bcopy, to avoid casts.
20494 Thu Sep 2 21:49:52 1999 Richard Henderson <rth@cygnus.com>
20496 * reload1.c (eliminate_regs_in_insn): Avoid eliminating the
20497 reg notes on a deleted insn.
20498 * gcse.c (hash_expr_1): Use XWINT on a CONST_DOUBLE.
20500 Thu Sep 2 20:18:12 1999 Jeffrey A Law (law@cygnus.com)
20502 * i386.c (ix86_attr_length_default): Handle TYPE_FXCH.
20504 Thu Sep 2 22:00:08 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
20506 * stmt.c (expand_asm_operands): Fix index into inout_mode when
20509 Thu Sep 2 13:00:48 1999 Richard Henderson <rth@cygnus.com>
20511 * stmt.c (expand_asm_operands): Invoke MD_ASM_CLOBBERS if present.
20512 * tm.texi (MD_ASM_CLOBBERS): Document it.
20514 Thu Sep 2 10:22:40 1999 Richard Henderson <rth@cygnus.com>
20516 * dwarf2out.c (dwarf2out_line): Constify `lastfile'.
20517 * except.c (expand_rethrow): Remove unused variable.
20518 * expr.c (do_jump_by_parts_greater_rtx): Likewise.
20519 * flow.c (replace_insns): Likewise.
20520 (create_edge_list, verify_edge_list): Likewise.
20521 * gcse.c (cprop_cc0_jump): Protect declaration with HAVE_cc0.
20523 * genemit.c (gen_expand): Only emit `operands[N]' decl if there
20524 is special code to run.
20525 (main): Don't define operands to emit_operand.
20526 * genrecog.c (main): Don't emit an empty peephole2_insn function.
20528 * rtl.h (NOTE_BASIC_BLOCK): Use X0BBDEF.
20530 * alpha/alpha.h (normal_memory_operand): Declare.
20531 (reg_no_subreg_operand): Declare.
20532 * alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use HOST_WIDE_INT_PRINT_DEC.
20534 Thu Sep 2 10:19:20 1999 Richard Henderson <rth@cygnus.com>
20536 * c-parse.in (compstmt_primary_start): New, broken out of first
20537 part of compstmt handling in primary.
20538 (primary): Use it. Add an error clause.
20539 (compstmt_nostart): Renamed from compstmt; remove all
20540 initial invocations of compstmt_start.
20543 Thu Sep 2 01:35:50 1999 Marc Espie <espie@cvs.openbsd.org>
20545 * protoize.c (gen_aux_info_file): Let pexecute call choose_temp_base if
20548 Thu Sep 2 00:43:59 1999 Finn Hakansson <finn@axis.com>
20550 * combine.c (simplify_shift_const): Remove extra semicolon.
20551 * dwarf2out.c (remove_AT): Likewise.
20552 * expmed.c (expand_mult): Likewise.
20553 * gcov.c (create_program_flow_graph): Likewise.
20554 * reorg.c (mostly_true_jump): Likewise.
20556 Thu Sep 2 00:06:43 1999 Jeffrey A Law (law@cygnus.com)
20558 * fold-const.c (fold_range_test): Do not try to fold the range
20559 test if the rhs or lhs has side effects.
20561 * combine.c (simplify_rtx): Recognize another case of a synthesized
20564 * varasm.c (mark_constant_pool): When marking indirect references,
20565 only look at SYMBOL_REFs.
20567 * except.c (expand_fixup_region_end): Do not peek at
20568 INSN_UID (node->entry->outer_context) for flag_new_exceptions.
20570 Thu Sep 2 13:52:53 1999 Geoffrey Keating <geoffk@cygnus.com>
20572 * flags.h: New variables align_loops, align_loops_log,
20573 align_jumps, align_jumps_log, align_labels, align_labels_log,
20574 align_functions, align_functions_log.
20575 * toplev.c: Define them.
20576 (f_options): Handle -falign-* when they have no argument.
20577 (main): Add logic to set variables for -falign-functions,
20578 -falign-jumps, -falign-labels, -falign-loops.
20579 Make it -fsched-verbose=<n> and -finline-limit=<n>.
20580 (display_help): Change help to match options.
20581 * final.c (LABEL_ALIGN): Default to align_labels_log.
20582 (LABEL_ALIGN_MAX_SKIP): Default to align_labels-1.
20583 (LOOP_ALIGN): Default to align_loops_log.
20584 (LOOP_ALIGN_MAX_SKIP): Default to align_loops-1.
20585 (LABEL_ALIGN_AFTER_BARRIER): Default to align_jumps_log.
20586 (LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Default to align_jumps-1.
20587 * varasm.c (assemble_start_function): Handle align_functions.
20589 * config/sparc/sparc.h: Don't declare sparc_align_*.
20590 Don't provide LABEL_ALIGN_AFTER_BARRIER or LOOP_ALIGN.
20591 (DEFAULT_SPARC_ALIGN_FUNCS): Delete; take functionality into
20593 (FUNCTION_BOUNDARY): Fix incorrect use---it's not just a request,
20595 * config/sparc/sparc.c: Delete sparc_align_loops,
20596 sparc_align_jumps, sparc_align_funcs and the corresponding string
20598 (sparc_override_options): Default align_functions on ultrasparc.
20599 Delete -malign-* handling.
20601 * config/mips/mips.c (override_options): On 64-bit targets,
20602 try to align code to 64-bit boundaries.
20603 (print_operand): New substitution, %~,
20604 which aligns labels to align_labels_log.
20605 * config/mips/mips.md (div_trap_normal): Use %~.
20606 (div_trap_mips16): Likewise.
20608 (absdi2): Likewise.
20609 (ffssi2): Likewise.
20610 (ffsdi2): Likewise.
20611 (ashldi3_internal): Likewise.
20612 (ashrdi3_internal): Likewise.
20613 (lshrdi3_internal): Likewise.
20614 (casesi_internal): Likewise.
20616 Wed Sep 1 21:13:48 1999 Richard Henderson <rth@cygnus.com>
20618 Merge new ia32 backend from the branch!
20620 * i386.h, i386.c, i386.md, reg-stack.c, i386/unix.h: Many changes.
20621 See ChangeLog.P2 on new_ia32_branch for details.
20623 * rtl.h (stack_regs_mentioned_p): Delete prototype.
20624 * i386/cygwin.h (SUBTARGET_PROLOGUE): No more do_rtl.
20625 * i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
20626 * i386/gas.h (ASM_FILE_START): Define.
20627 * i386/winnt.c (i386_pe_valid_decl_attribute_p): Update
20628 for name change of ix86_valid_decl_attribute_p.
20629 (i386_pe_valid_type_attribute_p): Similarly.
20631 Wed Sep 1 18:21:23 1999 Richard Henderson <rth@cygnus.com>
20633 * emit-rtl.c (init_emit_once): Don't use GET_MODE_WIDER_MODE
20634 to step through CC modes.
20636 Wed Sep 1 20:18:06 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
20638 * regmove.c (fixup_match_1): Don't move INSN in front of P if
20639 it would end up in the shadow of a live flags regsiter.
20641 Wed Sep 1 11:32:00 1999 Bernd Schmidt <bernds@cygnus.co.uk>
20643 * reload1.c: Fix many indentation problems.
20644 * reload.c: Likewise.
20646 Tue Aug 31 22:08:03 1999 Marc Espie <espie@cvs.openbsd.org>
20648 * alias.c (non_local_reference_p): Constify fmt.
20650 Tue Aug 31 23:19:35 1999 Michael Meissner <meissner@cygnus.com>
20652 * config/i386/xm-cygwin.h (HAVE_DOS_BASED_FILE_SYSTEM): Define.
20654 Tue Aug 31 16:44:52 1999 Jeffrey A Law (law@cygnus.com)
20656 * cse.c (delete_trivially_dead_insns): Do not delete stores to
20657 the internal_arg_pointer.
20659 Tue Aug 31 13:35:42 1999 Richard Henderson <rth@cygnus.com>
20661 Merge peephole2 from new_ia32_branch:
20662 * Makefile.in (STAGESTUFF): Add *.peephole2.
20663 (mostlyclean): Likewise.
20664 (recog.o): Depend on resource.h.
20666 * final.c (peephole): Conditionalize decl on HAVE_peephole.
20667 (final_scan_insn): Likewise for the invocation of peephole.
20668 * genconfig.c (main): Look for peephole and peephole2 patterns.
20669 Emit HAVE_peephole* accordingly.
20670 * genpeep.c (main): Conditionalize entire output on HAVE_peephole.
20671 * flags.h (flag_peephole2): Declare.
20672 * toplev.c: New pass peephole2. New flag -fpeephole2.
20674 * genattrtab.c (main): Count DEFINE_PEEPHOLE2.
20675 * gencodes.c (main): Likewise.
20676 * genextract.c (main): Likewise.
20677 * genoutput.c (main): Likewise.
20678 * genemit.c (max_operand_1): Look for the max scratch operand.
20679 (gen_rtx_scratch): New.
20680 (gen_exp): Use it, and pass on new arg subroutine_type.
20681 (gen_expand): Take max scratch into account.
20682 (gen_split): Emit peephole2 functions.
20683 (output_peephole2_scratch): New.
20684 (main): Include hard-reg-set.h and resource.h. Handle peephole2.
20685 * genrecog.c (routine_type): Add PEEPHOLE2.
20687 (make_insn_sequence): Match outer parallel for peep2. Discard
20688 top level scratches and dups.
20689 (add_to_sequence): New args insn_type and top. Update all callers.
20690 Handle toplevel peep2 matching insns.
20691 (write_subroutine): Handle peep2.
20692 (write_tree_1): Likewise.
20693 (write_tree): Likewise.
20695 (change_state): New arg afterward. Update all callers.
20696 Handle matching separate insns.
20697 * recog.c (recog_next_insn): New.
20698 (peephole2_optimize): New.
20699 * rtl.def (DEFINE_PEEPHOLE2): New.
20700 * resource.c (find_free_register): New argument last_insn. Use it
20701 to find a register available through the entire span.
20702 * resource.h (find_free_register): Update prototype.
20704 Tue Aug 31 11:51:06 1999 Jim Kingdon <http://developer.redhat.com>
20706 * i386.c (output_strlen_unroll): Don't write xops[7]
20707 label if it wasn't set.
20709 1999-08-31 12:44 -0700 Zack Weinberg <zack@bitmover.com>
20711 * cpplib.c (struct directive): Const-ify name pointer and
20712 function pointer prototype.
20713 (validate_else, do_define, do_line, do_include, do_undef,
20714 do_error, do_pragma, do_ident, do_if, do_xifdef, do_else,
20715 do_elif, do_endif, do_sccs, do_assert, do_unassert,
20716 do_warning): Const-ify second arg.
20717 (directive_table): Mark const. Reorder entries by frequency
20718 of usage, record statistics.
20720 1999-08-31 12:20 -0700 Zack Weinberg <zack@bitmover.com>
20722 * rtl.h (RTL_CHECK1, RTL_CHECK2): New macros which type- and
20723 bounds- check RTL accesses if --enable-checking.
20724 (RTVEC_ELT): Bounds check if --enable-checking.
20725 (XWINT, XINT, XSTR, XEXP, XVEC, XMODE, XBITMAP, XTREE,
20726 XBBDEF): Use RTL_CHECK1/RTL_CHECK2 as appropriate.
20727 (XVECEXP, XVECLEN): Define in terms of XVEC, RTVEC_ELT, and
20729 (X0WINT, X0INT, X0STR, X0EXP, X0VEC, X0MODE, X0BITMAP, X0TREE,
20730 X0BBDEF, X0ADVFLAGS): New macros for accessing '0' slots of RTXes.
20732 (ADDR_DIFF_VEC_FLAGS): Use X0ADVFLAGS.
20733 (NOTE_SOURCE_FILE): Use X0STR.
20734 (NOTE_BLOCK_NUMBER, NOTE_EH_HANDLER, LABEL_NUSES,
20735 MEM_ALIAS_SET): Use X0INT.
20736 (NOTE_RANGE_INFO, NOTE_LIVE_INFO, NOTE_BASIC_BLOCK,
20737 JUMP_LABEL, LABEL_REFS, LABEL_NEXTREF, CONTAINING_INSN):
20739 * real.h (CONST_DOUBLE_CHAIN): Use X0EXP.
20740 * rtl.c (copy_rtx, copy_most_rtx): Copy '0' slots with X0WINT.
20741 (rtl_check_failed_bounds, rtl_check_failed_type1,
20742 rtl_check_failed_type2, rtvec_check_failed_bounds): New
20744 (fancy_abort): Fix comment.
20746 * cse.c (canon_hash): Read CONST_DOUBLE data slots with XWINT.
20747 (cse_insn): Decrement LABEL_NUSES for jump target before
20748 deleting jump insn.
20749 * emit-rtl.c (gen_rtx_CONST_DOUBLE): Use X0EXP for slot 1.
20750 * final.c (alter_subreg): Compute regno before changing x to
20751 REG; set REGNO(x) after changing it.
20752 * flow.c (count_basic_blocks): Use XWINT to inspect EH_REGION
20753 notes containing CONST_INTs.
20754 (delete_eh_regions): Use NOTE_EH_HANDLER.
20755 * function.c (put_reg_into_stack): Make reg a MEM before
20757 (fixup_var_refs_insns): Save REG_NOTES (insn) in case we
20759 (gen_mem_addressof): Make reg a MEM before initializing it.
20760 * integrate.c (copy_rtx_and_substitute): Copy '0' slots with
20762 * local-alloc.c (update_equiv_regs): Zap REG_NOTES before
20763 deleting an insn, not after.
20764 (block_alloc): Only look at PATTERN(insn) if we have to, and
20765 only if it's format class 'i'.
20766 * loop.c (check_dbra_loop): Check bl->biv->add_val is a
20767 CONST_INT before using its INTVAL.
20768 * print-rtl.c (print_rtx): Use X0STR.
20769 * regmove.c (fixup_match_1): Don't look at PATTERN of
20770 non-class-'i' insn chain elements.
20771 * reload.c (loc_mentioned_in_p): Take address of
20772 in->fld[1].rtx directly.
20773 * reload1.c (reload): Change reg to a MEM before initializing
20775 * varasm.c (mark_constant_pool): Skip CONST_DOUBLES, which
20777 * config/i386/i386.md (decrement_and_branch_if_zero): Fix typo.
20779 Fri Aug 20 13:43:41 1999 Andrew Haley <aph@cygnus.com>
20781 * config/mips/mips.c (machine_dependent_reorg): Force a
20782 barrier to output the local constant pool if a barrier hasn't
20783 been found at a natural point in the instruction stream.
20785 Mon Aug 30 22:04:36 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20787 * c-parse.in (language_string): Constify.
20789 * dwarf2out.c (language_string): Remove declaration.
20791 * dwarfout.c (language_string): Likewise.
20793 * toplev.c (language_string, init_parse, finish_parse): Likewise.
20795 * tree.h (language_string, init_parse, finish_parse): Declare.
20797 * i386/sun386.h (language_string): Remove declaration.
20799 * mips.h (language_string): Likewise.
20801 * nextstep.h (language_string): Likewise.
20803 * nextstep21.h (language_string): Likewise.
20805 * rs6000.c (language_string): Likewise.
20807 Mon Aug 30 20:56:08 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20809 * Makefile.in (OBJS, PROTO_OBJS): Remove getpwd.o.
20810 (getpwd.o): Remove target.
20812 * getpwd.c: Delete file. Its in libiberty now.
20814 * dbxout.c (getpwd): Don't prototype.
20815 * dwarf2out.c (getpwd): Likewise
20816 * dwarfout.c (getpwd): Likewise
20817 * final.c (getpwd): Likewise.
20818 * protoize.c (getpwd): Likewise.
20820 Mon Aug 30 20:21:34 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20822 * cse.c: (fold_rtx): Cast to HOST_WIDE_INT in left shift.
20824 Mon Aug 30 16:07:49 1999 Richard Henderson <rth@cygnus.com>
20826 * flow.c (new_insn_dead_notes): Use sets_reg_or_subreg not
20827 mark_set_resources.
20829 Mon Aug 30 12:23:53 1999 Jim Wilson <wilson@cygnus.com>
20831 * fixinc/Makefile.in (subdir): New.
20832 (fixincl.x, inclhack.sh, fixincl.sh): Use cp instead of $(CP).
20835 Mon Aug 30 01:02:09 1999 Jeffrey A Law (law@cygnus.com)
20837 * emit-rtl.c (copy_rtx_if_shared): A MEM which references
20838 virtual_stack_vars_rtx or virtual_incoming_args_rtx can not
20841 * invoke.texi: Fix typo.
20843 * dwarf2out.c (mem_loc_descriptor): New argument MODE. All callers
20844 changed. Handle autoincrement addressing modes.
20846 * integrate.c (copy_rtx_and_substitute): Handle internal_arg_pointer
20847 just like we would the virtual incoming args register when
20850 Sun Aug 29 23:17:54 1999 David Edelsohn <edelsohn@gnu.org>
20852 * rs6000.h (ASM_FILE_START): Specify complete filename, including
20853 path, in .file directive.
20855 Sun Aug 29 05:06:43 1999 Russ Allbery <rra@stanford.edu>
20857 * gcc.texi (External Bugs): Remove obsolete note about Perl on
20860 1999-08-29 08:38 -0700 Zack Weinberg <zack@bitmover.com>
20862 * stdbool.h: Make the typedef name _Bool, with bool a #defined
20865 Sun Aug 29 09:36:50 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20867 * tree.c (tree_code_name): Constify a char*.
20869 * tree.h (tree_code_name, decl_printable_name): Likewise.
20871 * function.h (struct function): Likewise.
20873 * toplev.c (decl_name, decl_printable_name): Likewise.
20875 * vax/vms.h (MAYBE_VMS_FUNCTION_PROLOGUE): Likewise.
20877 * objc/objc-act.c (decl_printable_name): Remove redundant prototype.
20878 (init_objc): Remove function pointer cast.
20880 Sun Aug 29 05:01:17 1999 John David Anglin <dave@hiauly1.hia.nrc.ca>
20882 * pa.md (interspace_jump): New pattern.
20883 (builtin_longjmp): New expander.
20885 1999-08-29 Bernd Schmidt <bernds@cygnus.co.uk>
20887 * fp-bit.c (add, sub, multiply, divide, compare, _eq_f2, _ne_f2,
20888 _gt_f2, _ge_f2, _lt_f2, _le_f2, float_to_si, float_to_usi, negate,
20889 sf_to_df, df_to_sf): Fix potential problem with alias analysis.
20891 Sun Aug 29 04:30:52 1999 John Wehle (john@feith.com)
20893 * jump.c (delete_prior_computation): Also check calls
20894 to constant functions. Don't bother checking for a
20895 REG_UNUSED note before adding it.
20896 (delete_computation): Handle multi-word hard registers
20897 when synthesizing missing REG_DEAD notes for a register
20898 which is both set and used by an insn.
20900 1999-08-29 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
20902 * loop.c (this_loop_info): New variable.
20903 (loop_has_call, loop_has_volatile, loop_has_tablejump,
20904 loop_continue, loops_enclosed): Replace with fields in this_loop_info.
20906 (prescan_loop, strength_reduce): New argument loop_info. All callers
20908 (scan_loop): New variable loop_info, initialise to address of
20910 (prescan_loop): Set loop_info->vtop if find NOTE_INSN_LOOP_VTOP.
20911 Delete variable loop_has_multiple_exit targets and replace with
20912 field in this_loop_info.
20913 (find_and_verify_loops): Rename this_loop to this_loop_num.
20914 (strength_reduce): Delete loop_iteration_info. Replace variable
20915 loop_info with function argument of same name.
20916 (insert_bct): Rework test for loop being completely unrolled.
20918 * loop.h (struct loop_info): New fields num, loops_enclosed,
20919 has_call, has_volatile, has_tablejump, has_multiple_exit_targets,
20920 has_indirect_jump, and cont. Redefine use of unroll_number.
20921 (loop_unroll_number): Delete.
20923 * unroll.c (unroll_loop): Store loop unroll count in unroll_number
20924 field of loop_info.
20925 (loop_iterations): Delete variable vtop and instead use
20926 loop_info->vtop computed in prescan_loop.
20928 Sun Aug 29 03:27:23 1999 Scott Weikart <scott@igc.apc.org>
20930 * fix-header.c (main): Do not pass a null pointer to strcmp.
20932 Sun Aug 29 03:18:48 1999 William Bader (william@nscs.fast.net)
20934 * configure.in (i[34567]86-*-sco3.2v4*): Target does not truncate
20936 * configure: Rebuilt.
20938 Sat Aug 28 19:36:05 1999 Jeffrey A Law (law@cygnus.com)
20940 * jump.c (jump_optimize_1): Do not delete assignments to
20941 internal_arg_pointer.
20942 * cse.c (delete_trivially_dead_insns): Always consider a set of
20943 the internal_arg_pointer live.
20945 Sat Aug 28 16:24:31 1999 Richard Henderson <rth@cygnus.com>
20947 * flow.c (flow_delete_insn_chain): Rename from delete_insn_chain.
20948 (update_life_info) [REG_WAS_0]: Search the original insns rather
20949 than the new insns for the note. Fix typos finding note_dest.
20950 If no dest found, discard the note rather than abort.
20951 [REG_NOALIAS]: Handle as REG_NO_CONFLICT.
20952 (replace_insns): Remove the old insn list after update_life_info
20955 Sat Aug 28 16:20:12 1999 Richard Henderson <rth@cygnus.com>
20957 * haifa-sched.c (sched_analyze): Clear LOG_LINKS before calling
20958 sched_analyze_insn.
20959 (sched_analyze_1): Let add_dependence care for not adding dups.
20960 (sched_analyze_2): Likewise.
20961 (add_branch_dependences): Likewise.
20963 Sat Aug 28 15:58:16 1999 Mumit Khan <khan@xraylith.wisc.edu>
20965 * i386/winnt.c (export_list): New type.
20966 (exports_head): Rename to
20967 (export_head): this.
20968 (i386_pe_record_exported_symbol): Add is_data flag.
20969 (i386_pe_asm_file_end): Emit directive for exported variables.
20970 * i386/cygwin.h (i386_pe_record_exported_symbol): Update
20972 * i386/cygwin.h (ASM_OUTPUT_COMMON): Specify symbol type.
20973 (ASM_DECLARE_OBJECT_NAME): Likewise.
20974 (ASM_DECLARE_FUNCTION_NAME): Likewise.
20975 * i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
20977 Fri Aug 27 15:35:24 1999 Jeffrey A Law (law@cygnus.com)
20979 * cse.c (fold_rtx): Work around bug in Sun V5.0 compilers.
20981 * pa.c (emit_move_sequence): Do not stop on SUBREG_WORD of an
20984 Fri Aug 27 14:01:19 1999 Marc Espie <espie@cvs.openbsd.org>
20986 * config/openbsd.h: Define SET_ASM_OP.
20987 * tm.texi: cross-reference SET_ASM_OP in the index.
20989 1999-08-27 13:27 -0700 Zack Weinberg <zack@bitmover.com>
20991 * rtl.c: Define CONST_DOUBLE_FORMAT to the appropriate format
20992 for a CONST_DOUBLE, at compile time. Initialize rtx_length
20993 and class_narrowest_mode at compile time. Kill init_rtl.
20994 Mark rtx_length, mode_class, mode_size, mode_unit_size,
20995 mode_wider_mode, mode_mask_array, class_narrowest_mode, and
20996 rtx_format as const. Kill all references to EXTRA_CC_MODES or
20998 * rtl.def (CONST_DOUBLE): Use CONST_DOUBLE_FORMAT macro for
21000 * rtl.h: Declare rtx_length and rtx_format as const.
21001 * machmode.def: Define CC(). Use CC() to define CCmode. If
21002 EXTRA_CC_MODES is defined, expand it here.
21003 * machmode.h: Declare mode_class, mode_size, mode_unit_size,
21004 mode_wider_mode, mode_mask_array, and class_narrowest_mode as
21005 const. Kill all references to EXTRA_CC_MODES.
21007 * toplev.c: Don't prototype or call init_rtl.
21008 * optabs.c: Don't call init_mov_optab.
21009 * genemit.c: Don't generate init_mov_optab. Don't call
21011 * gengenrtl.c: Duplicate calculation of CONST_DOUBLE_FORMAT
21013 * genattr.c, genattrtab.c, gencodes.c, genconfig.c,
21014 genextract.c, genflags.c, genopinit.c, genoutput.c, genpeep.c,
21015 genrecog.c: Don't call init_rtl.
21017 * arc.h, arm.h, c4x.h, i386.h, i960.h, m88k.h, pa.h, pdp11.h,
21018 rs6000.h, sparc.h: Don't define EXTRA_CC_NAMES. Use CC() in
21019 definition of EXTRA_CC_MODES.
21021 * md.texi: Kill ref to EXTRA_CC_NAMES.
21022 * tm.texi: Document new way to define EXTRA_CC_MODES.
21024 * genrecog.c: Do not look up the name of a define_split.
21025 (Unrelated bugfix.)
21027 Fri Aug 27 17:03:42 1999 Nick Clifton <nickc@cygnus.com>
21029 * config/v850/v850.md: Fix typo introduced by previous delta.
21031 Fri Aug 27 09:48:59 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21033 * gcc.c (fatal): Make definition static to match prototype.
21035 Fri Aug 27 10:33:35 1999 Bernd Schmidt <bernds@cygnus.co.uk>
21037 * combine.c (get_last_value): Don't look for earlier sets if the last
21038 known set is somewhere in between the insns being combined.
21040 Fri Aug 27 10:03:12 BST 1999 Nathan Sidwell <nathan@acm.org>
21042 * configure.in: Don't use shell ! to negate exit codes
21043 * configure: Regenerate
21045 Fri Aug 27 09:36:17 1999 Andreas Schwab <schwab@suse.de>
21047 * function.c (assign_stack_temp_for_type): Fix change of Mar 5 for
21048 the fact that ALIGN is measured in bits, not bytes.
21050 1999-08-27 00:27 -0700 Zack Weinberg <zack@bitmover.com>
21052 * errors.c: New file; defines functions error, warning, and
21053 fatal, variables have_error and progname.
21054 * errors.h: New file; prototypes and decls for stuff in errors.c.
21056 * Makefile: Add rules to build errors.o and
21057 $(HOST_PREFIX)errors.o. Link genconfig, gencodes, genemit,
21058 genopinit, genrecog, genextract, genpeep, genattr, and
21059 genoutput with errors.o. Add errors.h to deps of genconfig.o,
21060 gencodes.o, genemit.o, genopinit.o, genrecog.o, genextract.o,
21061 genpeep.o, genattr.o, and genoutput.o.
21063 * genconfig.c, gencodes.c, genemit.c, genopinit.c, genrecog.c,
21064 genextract.c, genpeep.c, genattr.c: Include errors.h. Don't
21065 define or prototype fatal. Set progname at beginning of main.
21066 * genoutput.c: Likewise, and don't define or prototype error
21069 * c-typeck.c (c_expand_start_case): Return immediately if exp
21071 * fold-const.c (operand_equal_p): Return immediately if arg1
21072 or arg0 are ERROR_MARKs.
21073 * stor-layout.c (layout_type [case RECORD_TYPE]): Ignore
21074 fields of type ERROR_MARK when calculating if the record can
21077 Fri Aug 27 01:03:48 1999 Jim Kingdon <http://developer.redhat.com>
21078 with much help from Jeffrey A Law and Richard Henderson
21080 * i386.md: In the 6 insns which call output_fix_trunc,
21081 earlyclobber operands[0].
21083 Fri Aug 27 01:01:51 1999 Philip Blundell <pb@nexus.co.uk>
21085 * jump.c (duplicate_loop_exit_test): Call reg_scan_update after
21086 creating new registers.
21088 1999-08-26 23:09 -0700 Zack Weinberg <zack@bitmover.com>
21090 * i386.h: Declare ix86_cpu_string, ix86_arch_string,
21091 i386_reg_alloc_order, i386_regparm_string,
21092 i386_align_loops_string, i386_align_jumps_string,
21093 i386_align_funcs_string, i386_preferred_stack_boundary_string,
21094 and i386_branch_cost_string as type "const char *".
21095 * i386.c: Define all above strings as type "const char *".
21097 Thu Aug 26 20:36:30 1999 Jim Wilson <wilson@cygnus.com>
21099 * dwarf2out.c (output_aranges): Check DWARF_OFFSET_SIZE not PTR_SIZE
21100 when emitting alignment padding. Emit padding byte of 0 instead of 4.
21102 Thu Aug 26 18:11:20 1999 Mark Mitchell <mark@codesourcery.com>
21104 * tree.c (array_type_nelts): Don't create RTL_EXPRs from
21105 SAVE_EXPRs unless the SAVE_EXPRs have already been expanded.
21107 Thu Aug 26 19:33:23 1999 Jim Wilson <wilson@cygnus.com>
21109 * dwarf2out.c (DWARF2_ASM_LINE_DEBUG_INFO): Add default definition.
21110 (debug_dwarf): Add DWARF2_ASM_LINE_DEBUG_INFO support.
21111 (dwarf2out_line, dwarf2out_finish): Likewise.
21112 * tm.texi (DWARF2_ASM_LINE_DEBUG_INFO): Add documetation.
21114 Thu Aug 26 16:10:56 1999 Gavin Romig-Koch <gavin@cygnus.com>
21116 * tree.c (lang_unsave_expr_now) : Correct return type.
21117 * tree.h (lang_unsave_expr_now) : Same.
21119 Thu Aug 26 13:12:29 1999 Jeffrey A Law (law@cygnus.com)
21121 * pa.c (cint_ok_for_move): Use CONST_INT_OK_FOR_LETTER_P macros
21122 instead of duplicating code.
21124 Thu Aug 26 18:32:32 1999 Bernd Schmidt <bernds@cygnus.co.uk>
21126 * gcse.c (hash_scan_insn): Don't scan obvious no-ops.
21128 1999-08-26 09:42 -0700 Zack Weinberg <zack@bitmover.com>
21130 * tree.h: fancy_abort always takes three args.
21131 * resource.c: Move include of system.h before toplev.h.
21133 Thu Aug 26 09:46:16 1999 Nick Clifton <nickc@cygnus.com>
21135 * dwarf2out.c (mem_loc_descriptor): Accept LABEL_REFs as well
21138 1999-08-25 22:10 -0700 Zack Weinberg <zack@bitmover.com>
21140 * system.h: Don't redefine abort or trim_filename.
21141 * rtl.h: Define abort to fancy_abort (__FILE__, __LINE__, 0)
21142 or fancy_abort (__FILE__, __LINE__, __FUNCTION__) depending on
21143 whether or not __FUNCTION__ is available.
21144 * tree.h: Duplicate rtl.h's definition of abort, for files
21145 that don't include rtl.h. Delete all code to perform type
21146 checking with a compiler other than GCC.
21147 * varray.h: Delete all code to perform type checking with a
21148 compiler other than GCC. Make VARRAY_CHECK() always evaluate
21149 its arguments exactly once, using a statement expression.
21150 Adjust the VARRAY_<type> accessor macros to match.
21151 * toplev.h (fatal_insn, fatal_insn_not_found): Kill.
21152 (_fatal_insn, _fatal_insn_not_found): New fns, take info on
21153 caller's location. Define fatal_insn and fatal_insn_not_found
21154 as macros that use _fatal_insn and _fatal_insn_not_found.
21155 (fancy_abort, trim_filename): Kill prototypes.
21157 * rtl.c (trim_filename): Move here from toplev.c.
21158 (fancy_abort): New function.
21159 (DIR_SEPARATOR): Provide default definition.
21160 * tree.c (tree_check_failed, tree_class_check_failed): Go
21161 through fancy_abort.
21162 (tree_check, tree_class_check, cst_or_constructor_check,
21163 expr_check): Delete.
21164 * varray.c (varray_check_failed): New function.
21165 * toplev.c (fatal_insn, fatal_insn_not_found): Replace with
21166 _fatal_insn and _fatal_insn_not_found. Go through
21168 (trim_filename, fancy_abort): Delete.
21170 * builtins.c (expand_builtin_args_info): Report ICE with abort.
21171 * except.c (start_catch_handler): Report ICE with error/abort
21173 * final.c (output_operand_lossage): Likewise.
21174 * flow.c (verify_flow_info): Likewise.
21176 * gcc.c: Prototype fatal.
21177 * gengenrtl.c: Undef abort after including rtl.h not system.h.
21178 * genattr.c, genattrtab.c, genemit.c, genextract.c,
21179 genflags.c, genopinit.c, genoutput.c, genpeep.c, genrecog.c:
21180 Don't define fancy_abort.
21182 Wed Aug 25 17:56:59 1999 Richard Henderson <rth@cygnus.com>
21184 * optabs.c (emit_cmp_and_jump_insns): Be more thorough in
21187 Wed Aug 25 15:35:55 1999 Richard Henderson <rth@cygnus.com>
21189 * m88k.h (VERSION_INFO2): Kill.
21190 (VERSION_STRING): Kill.
21192 (VERSION_INFO1): Tidy.
21193 (TARGET_VERSION): Update.
21194 * m88k/dgux.h (VERSION_INFO2): Kill.
21195 (ASM_FIRST_LINE): Adjust for death of VERSION_STRING.
21196 * m88k/luna.h (VERSION_INFO1): Tidy.
21197 * m88k/sysv4.h (VERSION_INFO1): Likewise.
21198 * m88k.c (out_rcs_id, tm_rcs_id): Kill.
21199 (output_file_start): Adjust for death of VERSION_STRING.
21201 1999-08-25 13:51 -0700 Jim Meyering <meyering@ascend.com>
21203 * cpplib.c (detect_if_not_defined): New function.
21204 (do_if): Use it to detect potential once-only headers.
21206 Wed Aug 25 14:00:18 1999 Jason Merrill <jason@yorick.cygnus.com>
21208 * c-common.c (combine_strings): Always set TREE_CONSTANT.
21210 Wed Aug 25 15:27:22 1999 Gavin Romig-Koch <gavin@cygnus.com>
21212 * combine.c (nonzero_bits) : Allow single-ly set registers to be
21213 anywere in the function only if they are pseudos and set before
21214 being used (not live at the start of the function).
21215 (num_sign_bit_copies) : Same.
21216 (get_last_value_validate) : Same.
21217 (get_last_value) : Same.
21219 Wed Aug 25 11:13:29 1999 Richard Henderson <rth@cygnus.com>
21221 * loop.c (express_from): Try harder to unify (* c N) and (* c M)
21222 where N and M are constant and N is an integer multiple of M.
21224 Wed Aug 25 13:55:47 EDT 1999 Andrew MacLeod <amacleod@cygnus.com>
21226 * sbitmap.h (sbitmap_intersection_of_succs): Add prototype.
21227 (sbitmap_intersection_of_preds, sbitmap_union_of_succs,
21228 sbitmap_union_of_preds): Add prototypes.
21229 * sbitmap.c (sbitmap_intersection_of_succs): New function to compute
21230 the intersection of successors with the new flow graph structures.
21231 (sbitmap_intersection_of_preds): New function to compute the
21232 intersection of predecessors with the new flow graph structures.
21233 (sbitmap_union_of_succs): New function to compute the union of
21234 successors with the new flow graph structures.
21235 (sbitmap_union_of_preds): New function to compute the union of
21236 predecessors with the new flow graph structures.
21237 * gcse.c (compute_rdm, compute_available): Use new sbitmap routines.
21238 (expr_reaches_here_p): Use edge and basic_block structures instead
21239 of s_preds and s_succs.
21240 (compute_cprop_avinout): Use new sbitmap routines.
21241 (pre_expr_reaches_here_p): Use edge and basic_block structures instead
21242 of s_preds and s_succs.
21243 * flow.c (compute_flow_dominators): Compute dominators using
21244 edges and basic blocks instead of s_preds and s_succs.
21246 Wed Aug 25 13:41:47 EDT 1999 Andrew MacLeod <amacleod@cygnus.com>
21248 * lists.c (unused_insn_list, unused_expr_list): New file for
21249 maintaining various types of lists. New statics for maintaining a
21250 cache of available INSN_LIST and EXPR_LIST nodes.
21251 (free_list): Static function for freeing a list of INSN/EXPR nodes.
21252 (alloc_INSN_LIST): Function to get a free INSN_LIST node.
21253 (alloc_EXPR_LIST): Function to get a free EXPR_LIST node.
21254 (init_EXPR_INSN_LIST_cache): Initialize the cache lists.
21255 (free_EXPR_LIST_list): Free an entire list of EXPR_LIST nodes.
21256 (free_INSN_LIST_list): Free an entire list of INSN_LIST nodes.
21257 (free_EXPR_LIST_node): Free an individual EXPR_LIST node.
21258 (free_INSN_LIST_node): Free an individual INSN_LIST node.
21259 * haifa-sched.c (unused_insn_list, unused_expr_list): Moved to flow.c
21260 (free_list, alloc_INSN_LIST, alloc_EXPR_LIST): Moved to flow.c
21261 (remove_dependence, free_pending_lists): Use new global routines.
21262 (flush_pending_lists, sched_analyze_insn): Use new global routines.
21263 (sched_analyze, compute_block_backward_dependences): Use new routines.
21264 (sched_analyze_1, sched_analyze_2): Use new routines.
21265 (schedule_insns): Use new global routines.
21266 * rtl.h (init_EXPR_INSN_LIST_cache, free_EXPR_LIST_list): Add function
21268 (free_INSN_LIST_list, free_EXPR_LIST_node): Add prototypes.
21269 (free_INSN_LIST_node, alloc_INSN_LIST, alloc_EXPR_LIST): Add function
21271 * toplev.c (rest_of_compilation): Initialize node cache.
21272 * Makefile.in (OBJS): Add lists.o to list of object files.
21273 (lists.o): Add dependancies.
21275 Wed Aug 25 17:31:56 1999 Nick Clifton <nickc@cygnus.com>
21277 * config/v850/v850.md: Fix compile time warning messages.
21278 * config/v850/v850.c: Fix compile time warning messages.
21279 * config/v850/v850.h: Fix compile time warning messages.
21281 Wed Aug 25 09:44:43 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21283 * genattr.c (gen_attr): Add prototype arguments for get_attr_*().
21284 Remove unused prototype for `init_lengths'.
21286 Wed Aug 25 09:32:31 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21288 * calls.c (emit_call_1): Mark parameter `stack_size' with
21290 (expand_call): Initialize variable `insn'.
21291 (emit_library_call): Likewise for variable `high_to_save'.
21292 (emit_library_call_value): Likewise.
21293 (store_one_arg): Likewise for variables `lower_bound' and
21296 * combine.c (try_combine): Likewise for variables `i2_code_number'
21297 and `other_code_number'.
21298 (find_split_point): Likewise for variables `pos', `unsignedp' and
21300 (simplify_if_then_else): Likewise for variables `op' and `c1'.
21301 (simplify_and_const_int): Remove unused variable `width'.
21302 (merge_outer_ops): Likewise.
21304 * cse.c (simplify_binary_operation): Cast an INTVAL() to `unsigned
21305 HOST_WIDE_INT' when comparing against one.
21306 (simplify_relational_operation): Likewise.
21307 (cse_insn): Initialize variables `src_eqv_volatile',
21308 `src_eqv_in_memory', `src_eqv_in_struct', `src_eqv_hash' and `sets'.
21310 * final.c (init_final): Constify parameter `filename'.
21311 (final_start_function): Mark parameter `optimize' with
21313 (profile_function): Likewise for parameters `first' and `optimize'.
21314 (output_source_line): Likewise for parameter `file'.
21316 * integrate.c (subst_constants): Cast a value to `size_t' when
21317 comparing against one.
21318 (mark_stores): Initialize variable `mode'. Cast a value to
21319 `size_t' when comparing against one.
21321 * integrate.h (MAYBE_EXTEND_CONST_EQUIV_VARRAY): Likewise.
21323 * loop.c (move_movables): Initialize variable `first'.
21324 (strength_reduce): Likewise for variable `increment'.
21325 (check_dbra_loop): Likewise for variable `comparison_val'. Cast a
21326 value to `size_t' when comparing against one.
21327 (load_mems): Initialize variable `end_label'.
21329 * output.h (init_final): Constify parameter.
21331 * reload.c (decompose): Initialize variable `base'.
21333 * reload1.c (reload): Likewise for variable `is_scalar'.
21334 (spill_hard_reg): Mark parameter `dumpfile' with ATTRIBUTE_UNUSED.
21335 (choose_reload_regs): Initialize variable `mode'.
21336 (emit_reload_insns): Likewise for variable `store_insn'.
21337 (reload_cse_noop_set_p): Mark parameter `insn' with
21339 (reload_combine): Initialize variable `set'.
21341 * unroll.c (unroll_loop): Likewise for variable `local_label'.
21342 (copy_loop_body): Cast a value to `size_t' when comparing against
21345 * varasm.c (assemble_variable): Initialize variable `size_tree'.
21346 (const_hash): Add an `else abort()' in an if-else-if-else sequence.
21347 (remove_from_pending_weak_list): Mark parameter `name' with
21350 Wed Aug 25 11:18:39 1999 Bernd Schmidt <bernds@cygnus.co.uk>
21352 * toplev.c (rest_of_compilation): Use decl_printable_name when opening
21355 Wed Aug 25 10:57:12 1999 Nick Clifton <nickc@cygnus.com>
21357 * config/arm/telf.h (ASM_WEAKEN_LABEL): Define.
21358 (ASM_DECLARE_FUNCTION_NAME): Define.
21359 (TYPE_ASM_OP, SIZE_ASM_OP, TYPE_OPERAND_FORMAT,
21360 ASM_DECLARE_RESULT, ASM_DECLARE_OBJECT_NAME,
21361 ASM_FINISH_DECLARE_OBJECT, ASM_DECLARE_FUNCTION_SIZE): Define if
21362 not already defined.
21364 Wed Aug 25 01:36:11 1999 John David Anglin <dave@hiauly1.hia.nrc.ca>
21366 * calls.c (emit_call_1): Use call_pop/call_value_pop for all values
21367 of n_popped when call/call_value are not defined.
21369 Wed Aug 25 01:25:14 1999 Jeffrey A Law (law@cygnus.com)
21371 * tm.texi: GNU CC -> GCC conversion.
21372 (CC1_SPEC): Indicate it is used for all language front ends.
21374 Tue Aug 24 23:43:03 1999 Mark Mitchell <mark@codesourcery.com>
21376 * flow.c (delete_block): Spell NOTE_INSN_EH_REGION_BEG and
21377 NOTE_INSN_EH_REGION_END correctly.
21379 Tue Aug 24 23:26:44 1999 Michael Tiemann <tiemann@holodeck.cygnus.com>
21380 Jeff Law <law@cygnus.com>
21382 * loop.c (strength_reduce): Automatically unroll loops if the
21383 unrolled loop size is smaller than the rolled loop size.
21385 * loop.c (insert_bct): Replace use of sdiv_optab with asr_optab
21386 and delete comment that code should be rewritten.
21388 Tue Aug 24 22:56:35 1999 Jeffrey A Law (law@cygnus.com)
21390 * haifa-sched.c (find_rgns): Mark a block found during the DFS search
21393 * haifa-sched.c (get_visual_tbl_length): Fix off-by-one error.
21395 Tue Aug 24 22:41:06 1999 Mumit Khan <khan@xraylith.wisc.edu>
21397 * fixinc/mkfixinc.sh: Don't fix uwin headers.
21398 * i386/uwin.h (MD_STARTFILE_PREFIX): Define.
21399 (LINK_SPEC): Add -u _main when building executables.
21400 (ASM_DECLARE_FUNCTION): Update from Cygwin.
21401 (ASM_FILE_END): Use the default for ix86-pe.
21402 * i386/xm-uwin.h (HAVE_BCOPY): Undefine.
21404 Tue Aug 24 20:49:47 1999 Art Haas <ahaas@neosoft.com>
21406 * final.c (output_addr_const): Handle case where ASM_OPEN_PAREN
21407 and ASM_CLOSE_PAREN are empty strings.
21409 Wed Aug 25 12:46:22 1999 Fred Fish <fnf@cygnus.com>
21410 Geoffrey Keating <geoffk@cygnus.com>
21412 * Makefile.in (PREPROCESSOR_DEFINES): New macro.
21413 (protoize.o): Use PREPROCESSOR_DEFINES and DRIVER_DEFINES.
21414 (unprotoize.o): Ditto.
21415 (test-protoize-simple): Don't define STD_PROTO_DIR.
21416 * protoize.c: Use PARAMS rather than PROTO. Minor whitespace
21417 changes to make 'test-protoize-simple' pass.
21418 (STD_PROTO_DIR): Remove define.
21419 (STANDARD_EXEC_PREFIX): Supply default define.
21420 (standard_exec_prefix): New variable, init to STANDARD_EXEC_PREFIX.
21421 (target_machine): New variable, init to DEFAULT_TARGET_MACHINE.
21422 (target_version): New variable, init to DEFAULT_TARGET_VERSION.
21423 (GET_ENV_PATH_LIST): New macro.
21424 (default_syscalls_dir): No longer initialized to STD_PROTO_DIR.
21425 (do_processing): Initialize default_syscalls_dir using new
21426 macros. Use it to initialize syscalls_absolute_filename.
21428 Tue Aug 24 16:58:15 1999 Richard Henderson <rth@cygnus.com>
21430 * jump.c (jump_optimize_1): Do cmov opt on any single-set; force
21431 B into a register before emit_conditional_move.
21433 Tue Aug 24 15:37:03 1999 Richard Henderson <rth@cygnus.com>
21435 * fold-const.c (fold): Reassociate (+ (+ (* a b) c) (* d e))
21436 as (+ (+ (* a b) (* d e)) c). Factor a common power-of-two
21437 multiplicand out of (+ (* a b) (* c d)).
21439 Tue Aug 24 11:46:10 1999 Bob Manson <manson@cygnus.com>
21440 Richard Henderson <rth@cygnus.com>
21442 * haifa-sched.c (split_hard_reg_notes): Move to flow.c
21443 (new_insn_dead_notes): Likewise.
21444 (update_n_sets): Likewise.
21445 (update_flow_info): Move to flow.c, renamed to update_life_info;
21446 extend to handle multiple source insns.
21447 * flow.c: Include resource.h
21448 (unlink_insn_chain): New.
21449 (split_hard_reg_notes): New.
21450 (maybe_add_dead_note): New.
21451 (maybe_add_dead_note_use): New.
21452 (find_insn_with_note): New.
21453 (new_insn_dead_notes): New.
21454 (update_n_sets): New.
21455 (sets_reg_or_subreg_1, sets_reg_or_subreg): New.
21456 (maybe_remove_dead_notes): New.
21457 (update_life_info): New.
21458 (prepend_reg_notes): New.
21459 (replace_insns): New.
21460 * output.h (update_life_info): Declare.
21461 * recog.c (split_block_insns): Use update_life_info.
21462 * resource.c (find_free_register): Use reg_alloc_order, don't use
21463 fixed regs, make sure the mode is supported, don't use new regs.
21465 * rtl.h (replace_insns): Declare.
21467 Tue Aug 24 13:48:39 1999 Nathan Sidwell <nathan@acm.org>
21469 * expr.c (expand_expr): Cope with COND_EXPRs with one
21470 non-returning branch.
21472 Mon Aug 23 22:28:16 1999 Mark Mitchell <mark@codesourcery.com>
21474 * expr.c (store_expr): Always pass down the target, even when not
21477 1999-08-24 Nick Clifton <nickc@cygnus.com>
21479 * configure.in: Define target_cpu_default for v850 targets.
21480 * configure: Regenerate
21482 * config/v850/v850.h (TARGET_CPU_generic): Define.
21483 (GO_IF_LEGITIMATE_ADDRESS): Insist that SImode and larger constant
21484 addresses are 4 byte aligned.
21486 * config/v850/v850.c (print_operand): Cope with 'R' format DFmode
21489 Tue Aug 24 09:32:07 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21491 * genattr.c (function_unit_desc): Constify a char*. Add prototype.
21492 (main): Add prototypes.
21494 * genattrtab.c (substitute_address, write_const_num_delay_slots,
21495 attr_eq, attr_numeral, attr_equal_p, attr_copy_rtx): Prototype.
21496 (write_attr_get): Emit prototypes along with function definition.
21497 (write_eligible_delay): Mark a parameter with ATTRIBUTE_UNUSED.
21498 (write_complex_function): Emit static prototype along with
21499 function definition.
21501 * genemit.c (gen_split): Emit prototypes along with function
21504 * genoutput.c (output_epilogue): Add prototype to `insn_outfun'.
21505 Likewise for predicates and `insn_operand_predicate'.
21506 (process_template): Emit static prototype along with function
21509 * genrecog.c (make_insn_sequence): Constify a char*. Add
21510 prototypes for get_split_*().
21511 (write_subroutine): Emit prototypes along with function
21514 Tue Aug 24 12:35:20 1999 Bernd Schmidt <bernds@cygnus.co.uk>
21516 * gcse.c (find_avail_set): Follow chains of register-register copies.
21517 Use oprs_not_set_p to guarantee that the returned value can be
21519 (cprop_insn): Don't verify the return value of find_avail_set with
21522 * gcse.c (cprop_jump): New function, broken out of cprop_insn.
21523 (cprop_cc0_jump): New function.
21524 (cprop_insn): Break out new function cprop_jump and use it.
21525 Also use cprop_cc0_jump for machines with CC0.
21526 (cprop): Don't crash if cprop_insn turned the insn into a NOTE.
21528 * tree.h (current_function_calls_setjmp,
21529 current_function_calls_longjmp): Delete declarations.
21530 * dsp16xx.c: Include "function.h".
21531 * elxsi.c: Likewise.
21532 * gmicro.c: Likewise.
21533 * h8300.c: Likewise.
21534 * i370.c: Likewise.
21535 * m32r.c: Likewise.
21536 * mn10200.c: Likewise.
21537 * mn10300.c: Likewise.
21538 * ns32k.c: Likewise.
21539 * spur.c: Likewise.
21540 * v850.c: Likewise.
21542 * rtl.h (rtx_equal_function_value_matters): Declare.
21543 * toplev.c (rtx_equal_function_value_matters): Don't declare.
21545 * function.c: Likewise.
21546 * emit-rtl.c: Likewise.
21548 Tue Aug 24 02:47:44 1999 Jeffrey A Law (law@cygnus.com)
21550 * expr.c (convert_move): Fix arguments to TRULY_NOOP_TRUNCATION
21553 1999-08-24 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
21555 * jump.c (delete_barrier_successors) Match (set (pc) (pc)) insn
21558 Mon Aug 23 23:35:52 1999 Matthias Klose <doko@cs.tu-berlin.de>
21560 * cpp.texi: Add a node documenting macro varargs (copied
21563 1999-08-23 22:23 -0700 Zack Weinberg <zack@bitmover.com>
21565 * cppspec.c: Put a null pointer at the end of the new argv.
21567 Mon Aug 23 21:23:24 1999 Jeffrey A Law (law@cygnus.com)
21569 * configure.in: Remove code to select/de-select the haifa
21570 scheduler. Every scheduled port gets haifa now.
21571 * configure: Rebuilt.
21572 * flags.h, genattrtab.c, rtl.h, toplev.c: Remove HAIFA ifdefs.
21574 * Makefile.in: Corresponding changes.
21576 Mon Aug 23 16:04:13 1999 Bernd Schmidt <bernds@cygnus.co.uk>
21578 * optabs.c (prepare_cmp_insn): Turn COMPARISON arg into a pointer.
21579 All callers changed.
21580 (prepare_float_lib_cmp): Likewise.
21581 Use FLOAT_LIB_COMPARE_RETURNS_BOOL.
21582 * expr.h (emit_float_lib_cmp): Delete declaration.
21583 * tm.texi (FLOAT_LIB_COMPARE_RETURNS_BOOL): Document.
21584 * sparc.h (FLOAT_LIB_COMPARE_RETURNS_BOOL): Define.
21585 * sparc.md (bcc and scc patterns): Don't handle TFmode comparisons
21587 (cmptf): Now conditional on TARGET_HARD_QUAD.
21589 Fri Aug 20 17:52:27 1999 Jim Wilson <wilson@cygnus.com>
21591 * resource.c (mark_target_live_regs): Use
21592 PIC_OFFSET_TABLE_REG_CALL_CLOBBERED.
21594 Fri Aug 20 19:07:55 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21596 * rtl.c (rtx_class, note_insn_name, reg_note_name): Constify.
21598 * rtl.h (rtx_class, reg_note_name, note_insn_name): Likewise.
21600 * genopinit.c (gen_insn): Use accessor macro, not `rtx_class'.
21602 Fri Aug 20 18:53:43 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21604 * rtl.h (rtx_format): Constify a char*.
21606 * rtl.c (rtx_format): Likewise.
21607 (copy_rtx, copy_most_rtx, read_rtx): Likewise.
21608 (init_rtl): Use accessor macro, not `rtx_format'.
21610 * alias.c (rtx_equal_for_memref_p, find_symbolic_term): Constify a
21613 * caller-save.c (mark_referenced_regs): Likewise.
21615 * combine.c (subst, make_compound_operation, known_cond,
21616 gen_rtx_combine, update_table_tick, get_last_value_validate,
21617 use_crosses_set_p, mark_used_regs_combine, move_deaths): Likewise.
21619 * cse.c (rtx_cost, mention_regs, canon_hash, exp_equiv_p,
21620 refers_to_p, canon_reg, fold_rtx, cse_process_notes,
21621 count_reg_usage): Likewise.
21623 * emit-rtl.c (gen_rtx, copy_rtx_if_shared, reset_used_flags):
21626 * final.c (leaf_renumber_regs_insn): Likewise.
21628 * flow.c (mark_used_regs, find_use_as_address, dump_flow_info,
21629 dump_edge_info, count_reg_references): Likewise.
21631 * function.c (fixup_var_refs_1, walk_fixup_memory_subreg,
21632 fixup_stack_1, purge_addressof_1, instantiate_virtual_regs_1):
21635 * gcse.c (oprs_unchanged_p, hash_expr_1, expr_equiv_p,
21636 oprs_not_set_p, expr_killed_p, compute_transp, find_used_regs,
21637 add_label_notes): Likewise.
21639 * genattrtab.c (attr_rtx, attr_copy_rtx, encode_units_mask,
21640 clear_struct_flag, count_sub_rtxs, count_alternatives,
21641 compares_alternatives_p, contained_in_p, walk_attr_value,
21642 write_expr_attr_cache): Likewise.
21644 * genconfig.c (walk_insn_part): Likewise.
21646 * genemit.c (max_operand_1, gen_exp): Likewise.
21648 * genextract.c (walk_rtx): Likewise.
21650 * genflags.c (num_operands): Likewise.
21652 * genoutput.c (scan_operands): Likewise.
21654 * genpeep.c (match_rtx): Likewise.
21656 * genrecog.c (add_to_sequence): Likewise.
21658 * haifa-sched.c (may_trap_exp, sched_analyze_2, attach_deaths):
21661 * integrate.c (save_constants, copy_for_inline,
21662 copy_rtx_and_substitute, subst_constants, restore_constants):
21665 * jump.c (mark_jump_label, invert_exp, redirect_exp,
21666 rtx_renumbered_equal_p, rtx_equal_for_thread_p): Likewise.
21668 * local-alloc.c (contains_replace_regs, memref_referenced_p):
21671 * loop.c (record_excess_regs, rtx_equal_for_loop_p,
21672 add_label_notes, replace_call_address, count_nonfixed_reads,
21673 invariant_p, find_single_use_in_loop, find_mem_givs,
21674 find_life_end, maybe_eliminate_biv_1, update_reg_last_use):
21677 * print-rtl.c (reg_names, print_rtx): Likewise.
21679 * recog.c (validate_replace_rtx_1, find_single_use_1): Likewise.
21681 * reg-stack.c (stack_regs_mentioned_p, record_label_references,
21682 record_reg_life_pat, swap_rtx_condition, goto_block_pat,
21683 print_blocks): Likewise.
21685 * regclass.c (fix_register, record_address_regs,
21686 reg_scan_mark_refs): Likewise.
21688 * regmove.c (stable_but_for_p): Likewise.
21690 * reload.c (loc_mentioned_in_p, operands_match_p,
21691 find_reloads_toplevsubst_reg_equivs, find_reloads_address_1,
21692 copy_replacements, refers_to_regno_for_reload_p,
21693 refers_to_mem_for_reload_p, find_inc_amount, regno_clobbered_p,
21694 reload_when_needed_name, reg_class_names, debug_reload_to_stream):
21697 * reload1.c (eliminate_regs, scan_paradoxical_subregs,
21698 delete_address_reloads_1, count_occurrences,
21699 reload_cse_mem_conflict_p, reload_combine_note_use,
21700 add_auto_inc_notes): Likewise.
21702 * resource.c (mark_referenced_resources, mark_set_resources):
21705 * rtlanal.c (rtx_unstable_p, rtx_varies_p, rtx_addr_varies_p,
21706 reg_mentioned_p, regs_set_between_p, modified_between_p,
21707 modified_in_p, refers_to_regno_p, reg_overlap_mentioned_p,
21708 rtx_equal_p, volatile_insn_p, volatile_refs_p, side_effects_p,
21709 may_trap_p, inequality_comparisons_p, replace_rtx, replace_regs,
21710 jmp_uses_reg_or_mem, for_each_rtx, regno_use_in): Likewise.
21712 * sched.c (sched_analyze_2, attach_deaths): Likewise.
21714 * stupid.c (stupid_mark_refs): Likewise.
21716 * unroll.c (remap_split_bivs): Likewise.
21718 * varasm.c (mark_constants): Likewise.
21720 * a29k/a29k.c (uses_local_reg_p): Likewise.
21722 * alpha/alpha.c (summarize_insn): Likewise.
21724 * arm/arm.c (symbol_mentioned_p, label_mentioned_p,
21725 eliminate_lr2ip): Likewise.
21727 * arm/thumb.c (symbol_mentioned_p, label_mentioned_p): Likewise.
21729 * i386/i386.c (symbolic_reference_mentioned_p, copy_all_rtx,
21730 reg_mentioned_in_mem): Likewise.
21732 * ns32k/ns32k.c (global_symbolic_reference_mentioned_p,
21733 symbolic_reference_mentioned_p): Likewise.
21735 * romp/romp.c (unsigned_comparisons_p, hash_rtx): Likewise.
21737 * sh/sh.c (regs_used, mark_use): Likewise.
21739 * vax/vax.c (vax_rtx_cost): Likewise.
21741 Fri Aug 20 18:38:43 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21743 * machmode.h (mode_name): Constify a char*.
21745 * rtl.c (mode_name): Likewise.
21747 * genopinit.c (gen_insn): Use accessor macro, not `mode_name'.
21749 * optabs.c (init_libfuncs): Constify a char*.
21751 * print-tree.c (mode_name): Remove redundant declaration.
21752 (print_node): Use accessor macro, not `mode_name'.
21754 * reload1.c (dump_needs): Constify a char*. Use accessor macro,
21756 (new_spill_reg): Constify a char*.
21758 * tree.c (mode_name): Remove redundant declaration.
21760 Fri Aug 20 18:31:26 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21762 * rtl.c (rtx_name): Constify a char*.
21764 * rtl.h (rtx_name, fix_sched_param): Likewise.
21766 * gmicro/gmicro.c (rtx_name): Remove redundant declaration.
21767 (mypr): Use accessor macro, not `rtx_name'.
21769 * genemit.c (print_code): Constify a char*.
21771 * genopinit.c (gen_insn): Use accessor macro, not `rtx_name'.
21773 * genpeep.c (print_code): Constify a char*.
21775 * genrecog.c (print_code): Likewise.
21777 * graph.c (start_fct, start_bb, node_data, draw_edge, end_fct,
21778 end_bb): Add static prototype.
21779 (draw_edge): Constify a char*.
21780 (end_bb): Remove unused parameter.
21782 * haifa-sched.c (fix_sched_param, safe_concat, print_exp
21783 print_block_visualization): Constify a char*.
21785 Fri Aug 20 15:02:10 1999 Mark Mitchell <mark@codesourcery.com>
21787 * c-common.c (c_get_alias_set): Update comment.
21789 1999-08-20 Andreas Jaeger <aj@arthur.rhein-neckar.de>
21791 * linux.h (LIB_SPEC): Added.
21793 Fri Aug 20 22:32:17 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
21795 * config/c4x/c4x.h (STARTFILE_SPEC): Don't def.
21797 1999-08-19 18:43 -0700 Zack Weinberg <zack@bitmover.com>
21799 * tree.c (expr_check): Fix typo in last change.
21801 1999-08-19 14:44 -0700 Zack Weinberg <zack@bitmover.com>
21803 * rtl.def (NOTE): Change format to "iuu0n".
21804 (ADDR_DIFF_VEC): Change format to "eEee0".
21805 (ADDRESSOF): Change format to "eit".
21807 * rtl.h (rtvec): Make "elem" an array of rtx, not rtunion.
21808 (RTVEC_ELT): Change to match.
21809 (XVECEXP): Use XVEC and RTVEC_ELT.
21810 (INSN_UID, INSN_CODE, CODE_LABEL_NUMBER, NOTE_LINE_NUMBER,
21811 ADDRESSOF_REGNO, REGNO, SUBREG_WORD): Use XINT.
21812 (PREV_INSN, NEXT_INSN, PATTERN, REG_NOTES,
21813 CALL_INSN_FUNCTION_USAGE, SUBREG_REG, SET_SRC, SET_DEST,
21814 TRAP_CONDITION, TRAP_CODE): Use XEXP.
21815 (INTVAL): Use XWINT.
21816 (ADDRESSOF_DECL): Use XTREE.
21817 (SET_ADDRESSOF_DECL): Delete.
21818 (NOTE_DECL_NAME, NOTE_DECL_CODE, NOTE_DECL_RTL,
21819 NOTE_DECL_IDENTIFIER, NOTE_DECL_TYPE): Kill. These have been
21820 ifdefed out since 2.6 at least.
21821 (gen_rtvec_vv): Delete prototype.
21823 * rtl.h (rtvec_alloc): rt->elem is now an array of rtx,
21825 (copy_most_rtx): Handle 't' format letter.
21826 * emit-rtl.c (gen_rtvec_v): rt_val->elem is an array of rtx.
21827 (gen_rtvec_vv): Delete function. All callers changed to use
21828 gen_rtvec_v instead.
21829 * print-rtl.c (print_rtx): Move special casing of NOTEs to
21830 the '0' format letter.
21832 * function.c (gen_mem_addressof): Don't use
21833 SET_ADDRESSOF_DECL; provide `decl' to gen_rtx_ADDRESSOF
21835 * integrate.c (copy_rtx_and_substitute): Likewise.
21836 Copy 't' slots with XTREE.
21837 (subst_constants): Treat 't' slots like '[swi]' slots.
21838 * cse.c (canon_hash, exp_equiv_p): Treat 't' slots like '0' slots.
21839 * jump.c (rtx_equal_for_thread_p): Likewise.
21840 * rtlanal.c (rtx_equal_p): Likewise.
21841 * stmt.c (expand_end_case): gen_rtx_ADDR_DIFF_VEC now takes
21842 only four arguments.
21843 * gengenrtl.c (type_from_format): Provide correct types for
21847 * tree.h [ENABLE_CHECKING] (TREE_CHECK, TREE_CLASS_CHECK):
21848 If a recent gcc is in use (always in stage2 and beyond), use
21849 statement expressions, so we don't make a function call unless
21850 the check fails. Evaluate arguments exactly once.
21851 (CHAIN_CHECK, DO_CHECK, DO_CHECK1, TREE_CHECK1,
21852 TREE_CLASS_CHECK1, TYPE_CHECK1, DECL_CHECK1, CST_CHECK1):
21854 (CST_OR_CONSTRUCTOR_CHECK, EXPR_CHECK): Redefine such that
21855 they evaluate their arguments exactly once, irrespective of
21856 the compiler in use.
21858 * tree.c [ENABLE_CHECKING]: Define whichever set of functions
21859 is used by the currently-enabled check macros. This is:
21860 (tree_check_failed, tree_class_check_failed): For gcc.
21861 (tree_check, tree_class_check, cst_or_constructor_check,
21862 expr_check): For other compilers.
21864 * gencheck.c: Do not define any *_CHECK1 macros.
21866 Thu Aug 19 14:42:38 1999 Mike Stump <mrs@wrs.com>
21867 Mark Mitchell <mark@codesourcery.com>
21869 * c-common.c (c_get_alias_set): Fix support for poitners and
21872 Thu Aug 19 11:51:22 EDT 1999 John Wehle (john@feith.com)
21874 * alias.c: Include tree.h.
21875 (nonlocal_reference_p, mark_constant_function): New functions.
21876 * flow.c (life_analysis): Call mark_constant_function.
21877 * rtl.h (mark_constant_function): Declare it.
21879 Thu Aug 19 15:02:01 1999 Nick Clifton <nickc@cygnus.com>
21881 * config/rs6000/rs6000.c (rs6000_override_options): Fix test for
21882 unrecognisable switches.
21884 Wed Aug 18 23:31:57 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
21886 * loop.c (recombine_givs): Set ix field after sorting.
21887 (recombine_givs): Remove bogus index / giv lockstep looping.
21889 Wed Aug 18 18:20:40 1999 Bernd Schmidt <bernds@cygnus.co.uk>
21891 * expmed.c (emit_store_flag): If UNSIGNEDP, call unsigned_condition
21893 (emit_store_flag_force): Use do_compare_rtx_and_jump.
21894 (do_cmp_and_jump): Formatting fixes.
21895 * expr.c (do_compare_and_jump): Renamed from compare; changed to call
21896 do_compare_rtx_and_jump instead of compare_from_rtx.
21897 (do_compare_rtx_and_jump): New function; mostly copied from
21899 (do_jump_for_compare): Delete.
21900 (expand_expr): Use do_compare_rtx_and_jump when handling MAX_EXPR and
21902 (do_jump): Use do_compare_and_jump or do_compare_rtx_and_jump instead
21903 of compare/do_jump_for_compare pairs.
21904 (do_jump_by_parts_greater): Use do_jump_by_parts_greater_rtx.
21905 (do_jump_by_parts_greater_rtx): Use do_compare_rtx_and_jump instead of
21906 compare_from_rtx/do_jump_for_compare pairs.
21907 (do_jump_by_parts_equality): Likewise.
21908 (do_jump_by_parts_equality_rtx): Likewise.
21909 * expr.h (do_compare_rtx_and_jump): Declare.
21910 * optabs.c (prepare_cmp_insn): New function, contains most of the code
21911 that used to be in emit_cmp_insn.
21912 (cmp_available_p): New function.
21913 (prepare_operand): New function.
21914 (emit_cmp_and_jump_insn_1): New function, contains some code that used
21915 to be in emit_cmp_insn.
21916 (prepare_float_lib_cmp): Renamed from emit_float_lib_cmp; change some
21917 parameters to be pointers; don't emit final compare but modify some of
21918 the values pointed to by the args so the caller can perform the
21919 correct comparison.
21920 (expand_binop): Call emit_store_flag_force with signed forms of
21922 (expand_abs): Use do_compare_rtx_and_jump instead of compare_from_rtx/
21923 emit_jump_insn pair.
21924 (emit_cmp_and_jump_insn): Use prepare_cmp_insn and
21925 emit_cmp_and_jump_insn_1. Call emit_queue.
21926 (emit_cmp_insn): Just call emit_cmp_and_jump_insns with zero for LABEL
21928 * flow.c (tidy_fallthru_edge): If HAVE_cc0, verify insn before a
21929 jump sets cc0 before deleting it.
21930 * integrate.c (expand_inline_function): Likewise.
21931 * unroll.c (unroll_loop): Similar changes in several places.
21932 (copy_loop_body): If HAVE_cc0, verify insn before a jump sets cc0
21933 before deleting it.
21935 Wed Aug 18 06:37:44 1999 Bernd Schmidt <bernds@cygnus.co.uk>
21937 * Makefile.in (insn-recog.o): Update dependencies.
21938 * genrecog.c (main): Make generated file include "function.h".
21940 Sat Aug 14 00:54:57 1999 Geoffrey Keating <geoffk@cygnus.com>
21942 * cse.c (cse_insn): Call never_reached_warning when a jump is
21943 changed to be unconditional.
21944 * flags.h: Declare warn_notreached.
21945 * flow.c (delete_block): Call never_reached_warning when
21946 a block is deleted.
21947 * jump.c (delete_barrier_successors): Call never_reached_warning
21948 when we delete everything after a BARRIER.
21949 (never_reached_warning): New function.
21950 * rtl.h: Declare never_reached_warning.
21951 * toplev.c (warn_notreached): New variable.
21952 (lang_independent_options): Set warn_notreached
21953 when -Wunreachable-code.
21954 (compile_file): We need line numbers for -Wunreachable-code.
21956 Tue Aug 17 22:06:11 1999 Jan Hubicka <hubicka@freesoft.cz>
21958 * haifa-sched.c (insn_unit): Fix typo on out of range test.
21959 * sched.c (insn_unit): Likewise.
21961 Tue Aug 17 21:57:23 1999 Andreas Schwab <schwab@suse.de>
21963 * combine.c (distribute_notes): Handle REG_EH_RETHROW.
21965 Tue Aug 17 17:39:43 EDT 1999 Andrew MacLeod <amacleod@cygnus.com>
21967 * flow.c (create_edge_list): Use xmalloc, not malloc.
21969 Tue Aug 17 01:40:54 1999 Loren Rittle <ljrittle@acm.org>
21971 * fixinc/inclhack.def (no_double_slash): Do not trash single-line
21972 C-style comments. Do not lose the character before double slash.
21974 Mon Aug 16 18:08:22 EDT 1999 Andrew MacLeod <amacleod@cygnus.com>
21976 * basic-block.h (struct edge_list): Stucture to maintain a vector
21978 (EDGE_INDEX_NO_EDGE, EDGE_INDEX, INDEX_EDGE_PRED_BB, INDEX_EDGE_SUCC_BB,
21979 INDEX_EDGE, NUM_EDGES): New Macros for accessing edge list.
21980 (create_edge_list, free_edge-List, print_edge_list, verify_edge_list):
21981 New function prototypes.
21982 * flow.c (create_edge_list): Function to create an edge list.
21983 (free_edge_list): Discards memory used by an edge list.
21984 (print_edge_list): Debug output showing an edge list.
21985 (verify_edge_list): Internal consistency check for an edge list.
21986 (find_edge_index): Function to find an edge index for a pred and succ.
21988 Mon Aug 16 11:56:36 1999 Mark Mitchell <mark@codesourcery.com>
21990 * tree.c (type_hash_add): Use permalloc to allocate nodes in the
21993 Mon Aug 16 17:04:15 1999 Jorn Rennecke <amylaar@cygnus.co.uk>
21995 * mips.h (CLASS_CANNOT_CHANGE_SIZE): Define.
21997 Fri Aug 13 15:20:43 1999 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
21999 * config/i386/freebsd.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
22001 Fri Aug 13 10:21:28 1999 Nick Clifton <nickc@cygnus.com>
22003 * toplev.c (rest_of_compilation): Allow machine dependent
22004 reorganisation pass to place information into the RTL dump
22005 file if it so wishes.
22007 Sun Aug 15 12:41:21 1999 Jim Wilson <wilson@cygnus.com>
22009 * explow.c (hard_function_value): Use VOIDmode instead of
22011 * stmt.c (expand_return): Likewise.
22012 * stor-layout.c (get_best_mode): Likewise.
22014 * genemit.c (gen_expand): If next is MATCH_PAR_DUP, then output
22015 emit call instead of emit_insn call.
22017 Sat Aug 14 15:04:06 1999 Mumit Khan <khan@xraylith.wisc.edu>
22019 * configure.in: Handle --disable/enable-win32-registry.
22020 * install.texi: Document --disable/enable-win32-registry.
22021 * acconfig.h (ENABLE_WIN32_REGISTRY): New macro.
22022 (WIN32_REGISTRY_KEY): New macro.
22023 * prefix.c: Use to enable/disable win32-specific code.
22024 (lookup_key): Use versioned key.
22025 * configure: Regenerate.
22026 * config.in: Likewise.
22028 Fri Aug 13 17:41:55 1999 Jason Merrill <jason@yorick.cygnus.com>
22030 * cpplib.c (read_line_number): New fn, split out of...
22033 Fri Aug 13 14:18:27 1999 Gavin Romig-Koch <gavin@cygnus.com>
22035 tree.c (lang_unsave_expr_now) : New.
22036 (unsave_expr_now): Call lang_unsave_expr_now.
22037 tree.h (lang_unsave_expr_now) : New.
22039 Fri Aug 13 00:49:46 1999 Jason Merrill <jason@yorick.cygnus.com>
22041 * toplev.c (flag_new_exceptions): On by default.
22043 1999-08-13 Michael Meissner <meissner@cygnus.com>
22045 * Makefile.in (GCC_FOR_TARGET): Move -B./ after the tooldir -B.
22047 Fri Aug 13 01:29:57 1999 Alexandre Oliva <oliva@dcc.unicamp.br>
22049 * dwarfout.c (fundamental_type_code): Return FT_boolean for
22050 INTEGER_TYPE with precision==1, it's __java_boolean.
22052 Thu Aug 12 23:51:04 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
22054 * global.c (prune_preferences): Move some invariants out of the
22057 Thu Aug 12 15:30:29 1999 Jesse Perry (jap@unx.dec.com)
22059 * configure.in (alpha*-dec-osf*): Add osf5.
22061 Sun Aug 1 22:24:03 1999 Philip Blundell <philb@gnu.org>
22063 * configure.in: Rework handling of ARM GNU/Linux slightly.
22064 (arm*-*-linux-gnuoldld): New target.
22065 * configure: Regenerate.
22066 * install.texi (Configurations): Add arm-*-linux-gnu{oldld} and
22067 arm-*-elf. Mention that arm-*-linux-gnuaout is obsolete.
22068 * config/arm/linux-oldld.h: New file.
22069 * config/arm/linux-elf26.h: Don't include linux-elf.h.
22070 (TARGET_DEFAULT, SUBTARGET_LINK_SPEC, SUBTARGET_EXTRA_ASM_SPEC):
22072 * config/arm/linux-elf.h (ASM_SPEC): Define.
22073 (TARGET_DEFAULT, SUBTARGET_EXTRA_LINK_SPEC,
22074 SUBTARGET_EXTRA_ASM_SPEC, CPP_APCS_PC_DEFAULT): Add definitions
22075 for 26-bit APCS and old linker.
22076 (CPP_PREDEFINES): Define `__arm__'; don't define `arm' or
22078 (FP_DEFAULT): Define to FP_SOFT3 for all machines.
22079 * config/arm/linux-aout.h (CPP_PREDEFINES): Define `__arm__';
22080 don't define `arm' or `arm_elf'.
22081 * config/arm/t-linux (EXTRA_MULTILIB_PARTS, MULTILIB_OPTIONS,
22082 MULTILIB_DIRNAMES): Define. Fix typo in comment.
22084 Thu Aug 12 10:14:47 1999 Andreas Schwab <schwab@suse.de>
22086 * rtl.texi: Fix typo.
22088 Wed Aug 11 23:50:57 1999 Jason Merrill <jason@yorick.cygnus.com>
22090 * invoke.texi (C++ Dialect Options): Add -fms-extensions.
22092 Wed Aug 11 12:59:37 1999 Mark Mitchell <mark@codesourcery.com>
22094 * extend.texi (C++ Signatures): Remove node.
22095 * invoke.texi: Remove discussion of -fhandle-signatures,
22096 signature, sigof, __signature__, and __sigof__.
22098 Wed Aug 11 03:38:25 1999 Jeffrey A Law (law@cygnus.com)
22100 * Makefile.in (JAVAGC): Removed.
22102 Wed Aug 11 02:13:26 1999 Mumit Khan <khan@xraylith.wisc.edu>
22104 * i386/cygwin.h (ASM_OUTPUT_ALIGNED_BSS): Define.
22106 1999-08-11 Mark Elbrecht <snowball3@bigfoot.com>
22108 * i386/djgpp.h (ASM_OUTPUT_ALIGNED_BSS): Define.
22110 1999-08-11 Richard Earnshaw (rearnsha@arm.com)
22112 * emit-rtl.c (mark_reg_pointer): Don't increase the alignment of
22113 a register that is already known to be a pointer.
22115 1999-08-11 Bruce Korb <ddsinc09@ix.netcom.com>
22117 * fixinc/inclhack.tpl: Only install assert.h conditionally.
22118 * fixinc/inclhack.sh: Regenerated.
22119 * fixinc/fixincl.sh: Regenerated.
22121 Wed Aug 11 00:34:22 1999 Joe Buck <jbuck@synopsys.com>
22123 * invoke.texi: s/GNU CC/GCC/ for consistency with gcc.texi.
22124 Fix documentation of -ansi flag to describe its C++ behavior.
22125 Remove bogus reference to GCC 2.9.
22127 Tue Aug 10 17:19:02 1999 Jim Wilson <wilson@cygnus.com>
22129 * config/sh/sh.c (machine_dependent_reorg): Only call PUT_MODE on
22130 note if it is non-NULL.
22132 Tue Aug 10 10:47:42 EDT 1999 Andrew MacLeod <amacleod@cygnus.com>
22134 * except.h (eh_nesting_info): Add new structure defintion.
22135 (init_eh_nesting_info, free_eh_nesting_info): Add function prototypes.
22136 (reachable_handlers, update_rethrow_references): Add function
22138 * rtl.h (struct rtvec_def): Update comments. REG_EH_RETHROW takes
22139 a rethrow symbol instead of an integer exception region number.
22140 * flow.c (Make_edges): Use new exception nesting routines to determine
22141 which handlers are reachable from a CALL or asynchronous insn.
22142 Dont add an edge for calls with a REG_EH_REGION of -1 to non-local
22144 (delete_eh_regions): Update rethrow labels, and don't delete
22145 regions which are the target of a rethrow.
22146 * except.c (struct func_eh_entry): Add rethrow_ref field, now we can
22147 avoid overloading the SYMBOL_REF_USED flag.
22148 (rethrow_symbol_map): Use new rethrow_ref field.
22149 (rethrow_used): Use new rethrow_ref field.
22150 (expand_rethrow): REG_EH_RETHROW now has a SYMBOL_REF instead
22151 of an integer. Fix formatting.
22152 (output_exception_table_entry): Use new rethrow_ref field.
22153 (can_throw): Check for EH_REGION_NOTE before deciding
22154 whether a CALL can throw or not.
22155 (scan_region): Call rethrow_used() instead of accessing data structure.
22156 (update_rethrow_references): New function to make sure only regions
22157 which are still targets of a rethrow are flagged as such.
22158 (process_nestinfo): New static function to initialize a handler
22159 list for a specific region.
22160 (init_eh_nesting_info): New function to allocate and initialize
22161 the list of all EH handlers reachable from all regions.
22162 (reachable_handlers): New function to retrieve the list of handlers
22163 reachable from a specific region and insn.
22164 (free_eh_nesting_info): New function to dispose of a list of
22165 reachable handlers.
22167 Tue Aug 10 10:39:31 EDT 1999 Andrew MacLeod <amacleod@cygnus.com>
22169 * flow.c (split_edge): Set JUMP_LABEL field.
22170 (commit_one_edge_insertion): Set head correctly for insert_before.
22171 When inserting insns, update insn block numbers if allocated.
22173 Tue Aug 10 09:26:07 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22175 * dwarf2out.c (dwarf2out_frame_debug_expr, add_incomplete_type,
22176 retry_incomplete_types): Add static prototype.
22177 (stripattributes, dwarf_cfi_name, ASM_OUTPUT_DWARF_STRING,
22178 dwarf_tag_name, dwarf_attr_name, dwarf_form_name,
22179 dwarf_stack_op_name, dwarf_type_encoding_name, add_AT_string,
22180 dwarf2_name, add_name_attribute, lookup_filename, dwarf2out_line,
22181 dwarf2out_start_source_file, dwarf2out_define, dwarf2out_undef):
22184 * dwarf2out.h (dwarf2out_define, dwarf2out_undef,
22185 dwarf2out_start_source_file, dwarf2out_line): Likewise.
22187 Tue Aug 10 09:21:46 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22189 * output.h (assemble_name): Constify a char*.
22191 * varasm.c (UNIQUE_SECTION, assemble_start_function,
22192 assemble_variable, assemble_name): Likewise.
22194 * dwarf2out.c (ASM_NAME_TO_STRING): Likewise.
22196 * arm/pe.c (arm_pe_unique_section): Likewise.
22198 * i386/cygwin.h (STRIP_NAME_ENCODING): Likewise.
22200 * i386/i386-interix.h (STRIP_NAME_ENCODING): Likewise.
22202 * i386/interix.c (i386_pe_unique_section): Likewise.
22204 * i386/win32.h (STRIP_NAME_ENCODING): Likewise.
22206 * i386/winnt.c (i386_pe_unique_section): Likewise.
22208 * m32r/m32r.h (ASM_OUTPUT_LABELREF): Likewise.
22210 * mn10200/mn10200.h (ASM_OUTPUT_LABELREF): Likewise.
22212 * mn10300/mn10300.h (ASM_OUTPUT_LABELREF): Likewise.
22214 * pa/pa.c (output_call): Likewise.
22216 * pa/pa.h (ASM_OUTPUT_MI_THUNK): Likewise.
22218 * pa/som.h (ASM_OUTPUT_FUNCTION_PREFIX): Likewise.
22220 * rs6000/rs6000.c (rs6000_output_load_toc_table, output_toc):
22223 * rs6000/rs6000.h (RS6000_OUTPUT_BASENAME, STRIP_NAME_ENCODING):
22226 * rs6000/sol2.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
22228 * rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME, ASM_OUTPUT_INT,
22229 STRIP_NAME_ENCODING, ASM_OUTPUT_LABELREF): Likewise.
22231 * v850/v850.h (ASM_OUTPUT_LABELREF): Likewise.
22233 Mon Aug 9 19:54:05 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22235 * real.c (GET_REAL, PUT_REAL): Use memcpy instead of bcopy.
22237 Mon Aug 9 19:36:00 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22239 * tree.h (lang_identify): Constify a char*.
22240 (print_error_function): Add extern prototype. Constify a char*.
22242 * c-lang.c (lang_identify): Constify a char*.
22244 * objc/objc-act.c (lang_identify): Constify a char*.
22246 Mon Aug 9 16:21:53 1999 Bernd Schmidt <bernds@cygnus.co.uk>
22248 * genpeep.c (main): Make generated file include "function.h".
22249 * arm.c (function_really_clobbers_lr): Delete INLINE_HEADER case.
22251 Mon Aug 9 10:08:50 1999 Bernd Schmidt <bernds@cygnus.co.uk>
22253 * Makefile.in: Update dependencies.
22254 * alias.c: Include "function.h"
22255 * c-decl.c: Likewise.
22256 * caller-save.c: Likewise.
22257 * calls.c: Likewise.
22258 * combine.c: Likewise.
22260 * explow.c: Likewise.
22261 * final.c: Likewise.
22262 * global.c: Likewise.
22263 * graph.c: Likewise.
22264 * local-alloc.c: Likewise.
22265 * loop.c: Likewise.
22266 * optabs.c: Likewise.
22267 * profile.c: Likewise.
22268 * recog.c: Likewise.
22269 * regclass.c: Likewise.
22270 * regmove.c: Likewise.
22271 * reload.c: Likewise.
22272 * reorg.c: Likewise.
22273 * resource.c: Likewise.
22274 * sched.c: Likewise.
22275 * stupid.c: Likewise.
22276 * config/1750a/1750a.c: Likewise.
22277 * config/a29k/a29k.c: Likewise.
22278 * config/arc/arc.c: Likewise.
22279 * config/arm/arm.c: Likewise.
22280 * config/arm/thumb.c: Likewise.
22281 * config/c4x/c4x.c: Likewise.
22282 * config/clipper/clipper.c: Likewise.
22283 * config/convex/convex.c: Likewise.
22284 * config/fx80/fx80.c: Likewise.
22285 * config/i860/i860.c: Likewise.
22286 * config/m68k/m68k.c: Likewise.
22287 * config/m88k/m88k.c: Likewise.
22288 * config/mips/mips.c: Likewise.
22289 * config/pdp11/pdp11.c: Likewise.
22290 * config/pyr/pyr.c: Likewise.
22291 * config/romp/romp.c: Likewise.
22292 * config/sh/sh.c: Likewise.
22293 * config/tahoe/tahoe.c: Likewise.
22294 * config/vax/vax.c: Likewise.
22295 * config/we32k/we32k.c: Likewise.
22296 * config/sparc/sparc.c: Include "function.h".
22297 (mem_min_alignment): Test current_function rather than
22298 regno_pointer_align.
22299 * config/pa/pa.c: Likewise.
22300 (compute_frame_size): Delete declaration of
22301 current_function_outgoing_args_size.
22302 * config/arc/arc.h (current_function_varargs): Delete declaration.
22303 * config/elxsi/elxsi.h (current_function_calls_alloca): Delete
22305 * config/i370/i370.h (current_function_outgoing_args_size): Delete
22307 * config/i386/i386.h (FINALIZE_PIC): Delete declaration of
22308 current_function_uses_pic_offset_table.
22309 * config/m68k/a-ux.h (FUNCTION_EXTRA_EPILOGUE): Delete declaration
22310 of current_function_returns_pointer.
22311 * config/m68k/altos3068.h (FUNCTION_EXTRA_EPILOGUE): Likewise.
22312 * config/m68k/linux.h (FUNCTION_EXTRA_EPILOGUE): Likewise.
22313 * config/m68k/m68kv4.h (FUNCTION_EXTRA_EPILOGUE): Likewise.
22314 * config/m68k/mot3300.h (FUNCTION_EXTRA_EPILOGUE): Likewise.
22315 * config/m68k/pbb.h (FUNCTION_EXTRA_EPILOGUE): Likewise.
22316 * config/m68k/tower-as.h (FUNCTION_EXTRA_EPILOGUE): Likewise.
22317 * config/m88k/m88k.c: Include "function.h"
22318 (call_used_regs, current_function_pretend_args_size,
22319 current_function_outgoing_args_size, frame_pointer_needed): Delete
22321 * config/m88k/m88k.h (current_function_pretend_args_size): Delete
22323 * config/mips/mips.h (current_function_calls_alloca): Delete
22325 * config/mn10200/mn10200.h (current_function_needs_context,
22326 rtx_equal_function_value_matters): Delete declarations.
22327 * config/ns32k/ns32k (current_function_uses_pic_offset_table,
22328 flag_pic): Delete declarations.
22329 * config/pa/pa.h (current_function_pretend_args_size,
22330 current_function_decl): Delete declarations.
22331 * config/pa/som.h (current_function_varargs): Delete declaration.
22332 * config/pdp11/pdp11.h (current_function_pretend_args_size): Delete
22334 * config/pyr/pyr.h (current_function_pretend_args_size,
22335 current_function_args_size, current_function_calls_alloca): Delete
22337 * config/sh/sh.h (current_function_varargs): Delete declaration.
22338 * config/sparc/sparc.h (current_function_outgoing_args_size,
22339 current_function_calls_alloca, current_function_decl): Delete
22341 * config/spur/spur.h (current_function_pretend_args_size,
22342 current_function_calls_alloca): Delete declarations.
22343 * config/v850/v850.c (current_function_outgoing_args_size): Delete
22345 * config/vax/vms.h (current_function_name): Delete declaration.
22346 * gcse.c: Include "function.h".
22347 (current_function_name, current_function_calls_setjmp): Delete
22349 * haifa-sched.c: Include "function.h".
22350 (forced_labels): Delete declaration.
22351 * jump.c: Likewise.
22352 * reg-stack.c: Likewise.
22353 * reload1.c: Likewise.
22354 * genemit.c (main): Make generated file include function.h.
22355 * genoutput.c (output_prologue): Likewise.
22357 * builtins.c (saveregs_value, apply_args_value): Delete variables.
22358 * emit-rtl.c (reg_rtx_no, first_label_num, first_insn, last_insn,
22359 sequence_rtl_expr, cur_insn_uid, last_linenum, last_filename,
22360 regno_pointer_flag, regno_pointer_flag_length, regno_pointer_align,
22361 regno_reg_rtx, sequence_stack): Delete variables. Add accessor
22362 macros for some of them.
22363 (emit_filename, emit_lineno): Delete declarations.
22364 (gen_reg_rtx): Use memset/memcpy instead of bzero/bcopy. Access
22365 regno_pointer_* variables through current_function.
22366 (gen_inline_header_rtx): Delete function.
22367 (save_emit_status): Delete function.
22368 (set_new_last_label_num): New function.
22369 (clear_emit_caches): New function.
22370 (restore_emit_status): Just clear last_labelnum and call
22372 (get_last_insn_anywhere): Variable sequence_stack is now accessed
22373 through macro seq_stack.
22374 (add_insn_after): Likewise.
22375 (add_insn_before): Likewise.
22376 (remove_insn): Likewise.
22377 (pop_topmost_sequence): Likewise.
22378 (in_sequence_p): Likewise.
22379 (start_sequence_for_rtl_expr): Likewise.
22380 (start_sequence): Likewise, and likewise for
22381 sequence_rtl_expr/seq_rtl_expr.
22382 (push_topmost_sequence): Likewise.
22383 (end_sequence): Likewise.
22384 (init_virtual_regs): Now takes a "struct emit_status *" argument.
22385 All callers changed. Store into that pointer instead of globals.
22386 (init_emit): Allocate emit elt of current_function.
22387 Changes for sequence_rtl_expr/sequence_stack renaming.
22388 Call clear_emit_caches instead of doing it in-line.
22389 Access regno_pointer_* variables through current_function.
22390 (init_emit_once) Don't clear sequence_stack.
22392 * expr.c (pending_stack_adjust, inhibit_defer_pop, pending_chain):
22394 (arg_pointer_save_area): Delete declaration.
22395 (finish_expr_for_function): Renamed from init_queue; no longer static.
22396 (init_expr): Don't call init_queue.
22397 (save_expr_status, restore_expr_status): Delete functions.
22398 (expand_expr): Changes to reflect new layout of struct function.
22399 Don't access current_function_check_memory_usage when current_function
22401 * expr.h (forced_labels, save_expr_regs, saveregs_value,
22402 apply_args_value, current_function_calls_alloca, inhibit_defer_pop,
22403 current_function_outgoing_args_size, current_function_arg_offset_rtx,
22404 current_function_uses_const_pool, function_call_count,
22405 current_function_uses_pic_offset_table, nonlocal_labels,
22406 current_function_internal_arg_pointer, nonlocal_goto_stack_level,
22407 current_function_check_memory_usage, nonlocal_goto_handler_slots,
22408 pending_stack_adjust, target_temp_slot_level, temp_slot_level): Delete
22410 (finish_expr_for_function): Declare.
22411 * flags.h (current_function_has_nonlocal_label,
22412 current_function_has_nonlocal_goto, current_function_is_thunk,
22413 current_function_has_computed_jump): Delete declarations.
22414 * flow.c (forced_labels): Delete declaration.
22415 * function.c (current_function_pops_args,
22416 current_function_returns_struct, current_function_returns_pcc_struct,
22417 current_function_needs_context, current_function_calls_setjmp,
22418 current_function_calls_longjmp, current_function_has_nonlocal_label,
22419 current_function_has_nonlocal_goto, current_function_is_thunk,
22420 current_function_has_computed_jump, current_function_calls_alloca,
22421 current_function_contains_functions, current_function_returns_pointer,
22422 current_function_epilogue_delay_list, current_function_args_size,
22423 current_function_pretend_args_size, current_function_arg_offset_rtx,
22424 current_function_outgoing_args_size, current_function_varargs,
22425 current_function_stdarg, current_function_args_info, cleanup_label,
22426 current_function_name, current_function_uses_const_pool,
22427 current_function_instrument_entry_exit, current_function_return_rtx,
22428 current_function_uses_pic_offset_table, nonlocal_labels,
22429 current_function_internal_arg_pointer, current_function_cannot_inline,
22430 current_function_check_memory_usage, function_call_count,
22431 nonlocal_goto_handler_slots, nonlocal_goto_handler_labels,
22432 nonlocal_goto_stack_level, return_label, save_expr_regs,
22433 stack_slot_list, rtl_expr_chain, tail_recursion_label, temp_slots,
22434 tail_recursion_reentry, arg_pointer_save_area, frame_offset,
22435 context_display, trampoline_list, parm_birth_insn, invalid_stack_slot,
22436 last_parm_insn, max_parm_reg, parm_reg_stack_loc, sequence_rtl_expr,
22437 temp_slot_level, var_temp_slot_level, target_temp_slot_level):
22439 (push_function_context_to): Don't save them. Don't call
22440 save_storage_status, save_emit_status or save_expr_status.
22441 (pop_function_context_from): Don't restore them. Don't call
22442 restore_storage_status or restore_expr_status.
22443 (get_func_frame_size): New function.
22444 (get_frame_size): Use it.
22445 (assign_outer_stack_local): Reflect some member name changes in struct
22447 (put_reg_into_stack): Likewise.
22448 (assign_stack_temp_for_type): sequence_rtl_expr was renamed to
22450 (fixup_var_refs): Likewise.
22451 (fix_lexical_addr): Likewise.
22452 (trampoline_address): Likewise.
22453 (prepare_function_start): Clear field inlinable of current_function.
22454 (init_function_for_compilation): New function.
22455 (expand_dummy_function_end): New function.
22456 (expand_function_end): Call finish_expr_for_function.
22457 * function.h (struct emit_status): New; fields moved here from struct
22458 function and from global variables. Add accessor macros for some of
22460 (struct expr_status): Likewise.
22461 (REGNO_POINTER_ALIGN, REGNO_POINTER_FLAG): Moved here from regs.h.
22462 (struct function): Add fields expr and emit, inlinable, inl_emit,
22463 original_arg_vector, original_decl_initial, inl_last_parm_insn,
22464 inl_max_label_num. Add many comments.
22465 Add accessor macros for all elts of struct function that no longer
22466 have a global variable.
22467 (cleanup_label, return_label, frame_offset, tail_recursion_label,
22468 tail_recursion_reentry, arg_pointer_save_area, rtl_expr_chain,
22469 stack_slot_list): Delete declarations.
22470 (get_func_frame_size): Declare.
22471 (save_expr_status, restore_expr_status, save_emit_status,
22472 save_storage_status, restore_storage_status): Delete declarations.
22473 (init_virtual_regs): Declare.
22474 * output.h (current_function_pops_args,
22475 current_function_returns_struct, current_function_returns_pcc_struct,
22476 current_function_needs_context, current_function_calls_setjmp,
22477 current_function_calls_longjmp, current_function_calls_alloca,
22478 current_function_has_nonlocal_label, current_function_varargs,
22479 current_function_has_computed_jump, current_function_returns_pointer,
22480 current_function_contains_functions, current_function_args_size,
22481 current_function_pretend_args_size, current_function_stdarg,
22482 current_function_outgoing_args_size, current_function_args_info,
22483 current_function_name, current_function_return_rtx,
22484 current_function_epilogue_delay_list,
22485 current_function_uses_const_pool, current_function_cannot_inline):
22486 Delete declarations.
22487 * regs.h (reg_rtx_no, regno_pointer_flag, regno_pointer_flag_length,
22488 regno_reg_rtx): Delete declaration.
22489 (REGNO_POINTER_FLAG): Delete macro.
22490 * stmt.c (expand_goto): Changes to reflect that some fields in struct
22491 function were renamed.
22492 * stor-layout.c (save_storage_status, restore_storage_status): Delete
22494 * toplev.c: Include "function.h".
22495 (current_function_decl): Delete declaration.
22496 (compile_file): Call init_dummy_function_start and
22497 expand_dummy_function_end around some initializations that need to
22499 (rest_of_compilation): Use DECL_SAVED_INSNS properly.
22500 Call init_function_for_compilation.
22501 * unroll.c: Include "function.h"
22502 (unroll_loop): Access regno_pointer_* variables through
22505 * tree.h (struct tree_decl): Add elt f to saved_insns member.
22506 (DECL_SAVED_INSNS): use it.
22507 (expand_dummy_function_end): Declare.
22508 (init_function_for_compilation): Declare.
22509 * calls.c (calls_function_1): Change use of DECL_SAVED_INSNS now
22510 that it's no longer an INLINE_HEADER.
22511 (expand_call): Likewise.
22512 * integrate.c (finish_inline): Delete function.
22513 (max_parm_reg, parm_reg_stack_loc): Delete declarations.
22514 (initialize_for_inline): Delete min_labelno, max_labelno and max_reg
22515 args. Don't generate an INLINE_HEADER rtx, just return the arg
22516 vector. All callers changed.
22517 (save_for_inline_copying): Create a duplicate struct emit_status to
22518 hold the emit state for compiling the current function. Use this and
22519 the other new fields in struct function that are for integration
22520 instead of an INLINE_HEADER.
22521 Use memcpy instead of bcopy.
22522 Store the current struct function in DECL_SAVED_INSNS of fndecl.
22523 (save_for_inline_nocopy): Similar changes, except no new emit_status
22525 (expand_inline_function): Get information from function structure,
22526 not from an inline header rtx.
22527 (output_inline_function): Lose code to extract the necessary
22528 information from an inline header; simply put back the function
22529 structure into current_function. Clear its inlinable elt.
22530 * rtl.def (INLINE_HEADER): Delete.
22531 * rtl.h: Delete all accessors for an INLINE_HEADER.
22532 (gen_inline_header_rtx): Delete declaration.
22533 (regno_reg_rtx, regno_pointer_align, nonlocal_goto_handler_labels):
22534 Delete declarations.
22535 (REGNO_POINTER_ALIGN): Delete.
22536 (clear_emit_caches): Declare.
22537 (set_new_last_label_num): Declare.
22539 Mon Aug 9 01:52:24 1999 Jason Merrill <jason@yorick.cygnus.com>
22541 * print-tree.c (print_node): Print base for OFFSET_TYPEs.
22543 * except.c (expand_eh_region_start_for_decl): Always start a new block.
22544 * stmt.c (is_eh_region): Make sure current_function is present, too.
22546 Mon Aug 9 01:15:24 1999 Jeffrey A Law (law@cygnus.com)
22548 * pa.h (HARD_REGNO_MODE_OK): Correctly handle FPregs, even when
22549 for 64bit PA targets.
22551 * pa.h (SELECT_SECTION): Define.
22552 * som.h (SELECT_SECTION): Delete.
22554 Sun Aug 8 15:13:20 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22556 * alias.c (init_alias_analysis): Wrap call to
22557 `prologue_epilogue_contains' within HAVE_prologue||HAVE_epilogue.
22559 1999-08-07 Bruce Korb <autogen@linuxbox.com>
22561 * fixinc/inclhack.def(irix_asm_apostrophe): IRIX 5.2's
22562 <sys/asm.h> contains an asm comment with an apostrophe
22563 * fixinc/inclhack.sh: regen
22564 * fixinc/fixincl.x: regen
22566 Sat Aug 7 19:37:07 1999 Richard Henderson <rth@cygnus.com>
22568 * function.c (init_function_start): Clear prologue & epilogue.
22569 (prologue_epilogue_contains): New function.
22570 * alias.c (init_alias_analysis): Use it.
22571 * rtl.h (prologue_epilogue_contains): Declare it.
22573 Sat Aug 7 19:32:16 1999 Richard Henderson <rth@cygnus.com>
22575 * jump.c (onlyjump_p): New function.
22576 * rtl.h: Declare it.
22577 * flow.c (delete_unreachable_blocks): Use onlyjump_p instead
22578 of condjump_p in calling tidy_fallthru_edge and merge_blocks.
22580 Sat Aug 7 17:09:36 1999 Richard Henderson <rth@cygnus.com>
22582 * global.c (build_insn_chain): Use EXECUTE_IF_SET_IN_REG_SET
22583 to invert loops. Simplify block scanning.
22585 Sat Aug 7 02:11:13 1999 Bernd Schmidt <bernds@cygnus.co.uk>
22587 * gcse.c (hash_scan_set): Treat SYMBOL_REFs like CONST_INTs.
22588 (cprop_insn): Treat SYMBOL_REFs like CONST_INTs.
22590 1999-08-07 Jonathan Larmour <jlarmour@cygnus.co.uk>
22592 * config/sparc/liteelf.h: New file to support sparclite-elf target
22593 * config/sparc/t-sp86x: New file to support sparc86x targets
22594 * config/sparc/sp86x-aout.h: New file to support sparc86x-aout target
22595 * config/sparc/sp86x-elf.h: New file to support sparc86x-elf target
22596 * configure.in: Support above target triplets
22597 * configure: Regenerated
22599 Sat Aug 7 01:39:27 1999 Philippe De Muyter <phdm@macqel.be>
22601 * fixinc/server.c (server_setup): Do not prefix function used as
22602 parameter with `&'.
22604 Sat Aug 7 00:21:20 1999 Richard Henderson <rth@cygnus.com>
22606 * alpha.md (movhi and movqi patterns): Correct predicate for !BWX.
22607 Remove fp reg alternatives.
22609 Sat Aug 7 00:06:54 1999 Jeffrey A Law (law@cygnus.com)
22611 * Makefiin (TAROUTOPTS): Kill.
22612 (install-headers-tar): Use "xpf" for tar headerfile extraction
22613 * i370/x-oe (TAROUTOPTS): Delete.
22614 * m68k/x-apollo68 (TAROUTOPTS): Delete.
22615 * m68k/x-hp320 (TAROUTOPTS): Delete.
22616 * m68k/x-hp320g (TAROUTOPTS): Delete.
22617 * gcc.texi: Update bug reporting text.
22619 1999-08-6 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
22621 * reg-stack.c (change_stack) Fixed problem with negative array index.
22623 Fri Aug 6 23:08:44 1999 Jeffrey A Law (law@cygnus.com)
22625 * extend.texi, install.texi: Fix spelling mistakes.
22627 * Makefile.in (PREMADE_ATTRTAB_MD, PREMADE_ATTRTAB): Delete.
22628 (s-attrtab); No longer try to use pre-made insn-attrtab file.
22629 * mips/t-bsd: Delete references to obsolete PREMADE_ATTRTAB and
22630 PREMADE_ATTRTAB_MD.
22631 * mips/t-ecoff: Likewise.
22632 * mips/t-elf: Likewise.
22633 * mips/t-mips: Likewise.
22634 * mips/t-osfrose: Likewise.
22635 * mips/t-r3900: Likewise.
22636 * mips/t-svr3: Likewise.
22637 * mips/t-svr4: Likewise.
22638 * mips/t-ultrix: Likewise.
22640 * gcc.texi: Document recommend means to provide software floating
22641 point libraries in libgcc.a
22643 1999-08-06 Jason Merrill <jason@yorick.cygnus.com>
22645 * c-lex.c (yylex): We can have a number with no digits.
22647 Fri Aug 6 16:53:55 EDT 1999 John Wehle (john@feith.com)
22649 * jump.c (delete_prior_computation): New function, broken
22650 out of delete_computation. Check for side effects with
22651 side_effects_p instead of FIND_REG_INC_NOTE. Handle
22652 multi-word hard registers.
22653 (delete_computation): Use it. Check for side effects with
22654 side_effects_p instead of FIND_REG_INC_NOTE. Synthesize a
22655 missing REG_DEAD note for a register which is both set and
22658 Fri Aug 6 11:05:29 1999 Jeffrey A Law (law@cygnus.com)
22660 * elf.h (TEXT_SPACE_P, FUNCTION_NAME_P): Delete.
22661 (ASM_GLOBALIZE_LABEL, ASM_OUTPUT_INT, ASM_OUTPUT_DOUBLE_INT): Likewise.
22662 (ASM_FILE_START): Import _mcount with the right type.
22663 (ASM_DECLARE_FUNCTION_NAME): Define.
22664 (ASM_OUTPUT_EXTERNAL, ASM_OUTPUT_EXTERNAL_LIBCALL): Define.
22665 * pa.c (output_function_prologue): Always emit the function's label
22667 * pa.h (TEXT_SPACE_P): Define.
22668 (FUNCTION_NAME_P, ENCODE_SECTION_INFO, STRIP_NAME_ENCODING): Likewise.
22669 (ASM_OUTPUT_INT, ASM_OUTPUT_DOUBLE_INT, ASM_GLOBALIZE_LABEL): Likewise.
22670 * som.h (TEXT_SPACE_P): Delete.
22671 (FUNCTION_NAME_P, ENCODE_SECTION_INFO, STRIP_NAME_ENCODING): Likewise.
22672 (ASM_GLOBALIZE_LABEL, ASM_OUTPUT_INT): Likewise.
22674 Thu Aug 5 19:29:39 1999 Jim Wilson <wilson@cygnus.com>
22676 * expr.c (emit_group_load): Allow src to be a CONCAT.
22678 Thu Aug 5 22:27:15 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
22680 * config/sh/lib1funcs.asm (___movstrSI0): Change or r0,r0,r0 to nop.
22681 (___mulsi3): Use '!' comment character.
22683 Thu Aug 5 13:34:14 1999 Bernd Schmidt <bernds@cygnus.co.uk>
22685 * reload1.c (maybe_fix_stack_asms): Also declare P as "const char *".
22687 Thu Aug 5 02:40:42 1999 Jeffrey A Law (law@cygnus.com)
22689 * gcc.c: Update URLs and mail addresses.
22690 * gcc.texi: Likewise.
22692 Thu Aug 5 01:14:13 1999 Daniel Jacobowitz <drow@false.org>
22694 * rs6000.c (current_file_function_operand): Return zero for
22696 (rs6000_encode_section_info): Do not set SYMBOL_REF_FLAG for
22698 * rs6000.h (ENCODE_SECTION_NIFO): Do not set SYMBOL_REF_FLAG
22701 Thu Aug 5 00:56:30 1999 Geoffrey Keating <geoffk@cygnus.com>
22703 * rs6000.c (rs6000_stack_info): For ABI_V4/ABI_SOLARIS -fpic, always
22704 allocate space in the stack frame for the PIC register.
22706 Thu Aug 5 00:20:47 1999 Jeffrey A Law (law@cygnus.com)
22708 * m68k.md (xordi3, anddi3): These patterns are not available on
22711 Wed Aug 4 23:39:20 1999 Mark Mitchell <mark@codesourcery.com>
22713 * real.c (GET_REAL): Don't violate ANSI/ISO aliasing rules.
22714 (PUT_REAL): Likewise.
22716 Wed Aug 4 20:45:04 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
22718 * final.c (shorten_branches): Don't add an alignment for loops
22719 that have no label inside.
22721 Wed Aug 4 16:39:24 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22723 * builtins.c (expand_builtin_memcmp, expand_builtin_strcmp): Wrap
22724 prototypes in macro HAVE_cmpstrsi.
22726 * cpplib.c (cpp_get_token): Remove unused label `op3'.
22728 * emit-rtl.c (operand_subword): Remove unused variable
22731 * rtl.c (shallow_copy_rtx): Remove unused variable `format_ptr'.
22733 * tree.c (chainon): Wrap variable `t2' in macro ENABLE_CHECKING.
22735 Wed Aug 4 13:29:23 1999 Zack Weinberg <zack@bitmover.com>
22737 * cpphash.c (macroexpand): Delete leading whitespace when arg
22738 is concatenated before.
22739 (unsafe_chars): Correct test for whether + and - can extend a
22742 * cppinit.c (cpp_start_read): Do dependencies for
22743 -include/-imacros files also.
22745 * cpplib.c (cpp_scan_buffer): In no-output mode, don't bother
22746 tokenizing non-directive lines.
22747 (cpp_expand_to_buffer): Temporarily disable no-output mode.
22748 * cppmain.c: In no-output mode, just call cpp_scan_buffer for
22751 Wed Aug 4 12:53:44 1999 Jason Merrill <jason@yorick.cygnus.com>
22753 * expr.c (expand_expr, case PLUS_EXPR): Fix parallel case, too.
22755 * c-lex.c: Sync with C++ frontend.
22756 (linemode): New variable.
22757 (parse_float): imag, conversion_errno, and type are output only.
22758 (yylex): Adjust. Move initial '.' case into main switch.
22760 (handle_generic_pragma): Just deal with tokens.
22761 (readescape): Use ISXDIGIT and ISGRAPH.
22762 * c-parse.in: Add END_OF_LINE token.
22764 * c-lex.c (lang_init): Generalize.
22765 (nextchar): Remove. Replace uses with UNGETC.
22766 (skip_white_space): Handle linemode here. Optimize for cpplib.
22767 (skip_white_space_on_line): Remove.
22768 (extend_token_buffer_to): New fn.
22769 (extend_token_buffer): Use it.
22770 (read_line_number, check_newline): Just deal with tokens.
22771 (token_getch, token_put_back): New fns.
22772 (yylex): Use them. More cpplib optimizations. Simplify.
22774 Wed Aug 4 12:53:44 1999 Michael Tiemann <tiemann@holodeck.cygnus.com>
22775 Jason Merrill <jason@yorick.cygnus.com>
22777 * c-lex.c (init_parse): Set cpp_token to CPP_DIRECTIVE.
22778 (consume_string): Make this smart about USE_CPPLIB.
22779 (check_newline): Rewrite to be intelligent about USE_CPPLIB.
22780 (yylex): Rewrite to be intelligent about USE_CPPLIB.
22781 Also, clean up cases where we redundantly set token_buffer[0].
22782 (read_line_number): New fn.
22783 (ignore_escape_flag): New variable.
22785 Wed Aug 4 13:12:17 1999 Jeffrey A Law (law@cygnus.com)
22787 * a29k/t-a29kbare: Fix some comments.
22788 (LIB2FUNCS_EXTRA): Remove fp-bit.c and dp-bit.c
22789 (FPBIT, DPBIT): Define.
22790 * a29k/t-vx29k: Likewise.
22791 * arc/t-arc: Likewise.
22792 * arm/t-arm-elf: Likewise.
22793 * arm/t-bare: Likewise.
22794 * arm/t-pe: Likewise.
22795 * arm/t-pe-thumb: Likewise.
22796 * arm/t-semi: Likewise.
22797 * arm/t-thumb: Likewise.
22798 * arm/t-thumb-elf: Likewise.
22799 * arm/t-thumb-linux: Likewise.
22800 * h8300/t-h8300: Likewise.
22801 * i960/t-i960: Likewise.
22802 * i960/t-vxworks960: Likewise.
22803 * m32r/t-m32r: Likewise.
22804 * mips/t-ecoff: Likewise.
22805 * mips/t-elf: Likewise.
22806 * mips/t-r3900: Likewise.
22807 * pa/t-pro: Likewise.
22808 * rs6000/t-aix43: Likewise.
22809 * rs6000/t-beos: Likewise.
22810 * rs6000/t-newas: Likewise.
22811 * rs6000/t-ppccomm: Likewise.
22812 * rs6000/t-rs6000: Likewise.
22813 * rs6000/t-winnt: Likewise.
22814 * rs6000/t-xnewas: Likewise.
22815 * rs6000/t-xrs6000: Likewise.
22816 * sh/t-sh: Likewise.
22817 * sparc/t-elf: Likewise.
22818 * sparc/t-sparcbare: Likewise.
22819 * sparc/t-sparclite: Likewise.
22820 * sparc/t-splet: Likewise.
22821 * v850/t-v850: Likewise.
22822 * mn10200/t-mn10200: Fix comments.
22823 * mn10300/t-mn10300: Likewise.
22825 * pa.md (divsi3, udivsi3, modsi3, umodsi3 expanders): Clobber a new
22826 dummy operand. Allocate a new pseudo for the dummy operand.
22827 (divsi3, udivsi3, modis3, umodsi3 patterns): Corresponding changes.
22829 * pa.md (movqi, movhi patterns): Do not expose FP regs to regclass.
22831 Wed Aug 4 11:53:55 1999 Tom Tromey <tromey@cygnus.com>
22833 * configure: Rebuilt.
22834 * configure.in: Removed --enable-java-gc option and JAVAGC subst.
22836 Wed Aug 4 09:06:14 1999 Richard Earnshaw (rearnsha@arm.com)
22838 * recog.c (preproces_constraints): Zero recog_op_alt before
22839 processing the constraints.
22841 * arm.c (typedef minipool_node): Renamed from pool_node.
22842 (minipool_vector, minipool_size, minipool_vector_label): Similarly.
22843 (add_minipool_constant): New function.
22844 (dump_minipool): New function.
22845 (find_barrier): Remove special case for getting the insn size of
22846 an insn that references the constant pool.
22847 (minipool_fixup): New structure.
22848 (push_minipool_barrier): New function.
22849 (push_minipool_fix): New function.
22850 (note_invalid_constants): New function.
22851 (add_pool_constant, dump_table, fixit, broken_move): Delete.
22852 (arm_reorg): Rewrite code to fix up the constant pool into a
22853 series of mini-pools embedded in the insn stream.
22854 (arm_output_epilogue): New function, made mainly from the body
22855 of output_func_epilogue.
22856 (output_func_epilogue): Move insn generation part of epilogue code
22857 to arm_output_epilogue.
22858 * arm.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Delete.
22859 * arm.md (pool_range): New attribute.
22860 (zero_extendqidi2): Add attribute pool_range.
22861 (zero_extend_hisi_insn, load_extendqisi, extendhisi_insn,
22862 extendqihi_insn, extendqisi_insn, movdi, movsi_insn, pic_load_addr,
22863 pic_load_addr_based_insn, movhi_insn_arch4, movhi_insn_littleend,
22864 movhi_insn_bigend, loadhi_si_bigend, movsf_hard_insn, movsf_soft_insn,
22865 movdf_hard_insn, movdf_soft_insn, movxf_hard_insn): Likewise.
22866 (epilogue): New expand.
22867 (epilogue_insn): New insn. Call arm_output_epilogue.
22869 * arm.c (arm_poke_function_name): Undo change of July 17. Tidy up.
22870 * arm.h (TARGET_SWITCHES): Add missing doc string for TARGET_DEFAULT.
22872 Mon Aug 2 19:18:44 1999 Jason Merrill <jason@yorick.cygnus.com>
22874 * linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
22876 1999-08-04 Mark Elbrecht <snowball3@bigfoot.com>
22878 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Define.
22880 Wed Aug 4 02:15:32 1999 Richard Henderson <rth@cygnus.com>
22882 * jump.c (delete_insn): Delete the addr_vec when deleting a tablejump.
22884 Wed Aug 4 01:48:08 1999 Jim Kingdon <http://developer.redhat.com>
22886 * global.c: Fix comment.
22888 Wed Aug 4 01:43:01 1999 Ian Lance Taylor <ian@zembu.com>
22890 * gcc.c (access_check): New static function.
22891 (find_a_file): Use it when searching a directory list.
22892 * collect2.c (find_a_file): Don't accept directories found when
22893 searching a directory list.
22895 Wed Aug 4 01:40:43 1999 Philippe De Muyter <phdm@macqel.be>
22897 * tlink.c (symbol_hash_lookup): Do not prefix functions used as
22898 function parameters with `&'.
22899 (file_hash_lookup, demangled_hash_lookup, tlink_init): Ditto.
22901 Wed Aug 4 01:08:44 1999 Jeffrey A Law (law@cygnus.com)
22903 * flow.c (delete_unreachable_blocks): Do not call merge_blocks
22904 or tidy_fallthru_edge if the last insn in the block is not
22905 an unconditional jump or a simple conditional jump.
22907 Tue Aug 3 20:21:20 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
22909 * Makefile.in (c-decl.o): Depends on defaults.h.
22911 Tue Aug 3 14:14:52 1999 Jeffrey A Law (law@cygnus.com)
22913 * pa.h (HARD_REGNO_NREGS): FP registers are always 4 bytes wide for
22915 (CLASS_MAX_NREGS): Likewise.
22917 Tue Aug 3 03:51:20 1999 Jeffrey A Law (law@cygnus.com)
22919 * cse.c (cse_insn): Fix dumb thinko in last change.
22921 Tue Aug 3 10:36:13 1999 Bernd Schmidt <bernds@cygnus.co.uk>
22923 * reload1.c (maybe_fix_stack_asms): Declare CONSTRAINTS as
22926 Mon Aug 2 23:45:45 1999 Hans-Peter Nilsson <hp@bitrange.com>
22928 * dwarf2out.c (add_location_or_const_value_attribute): Correct
22929 test for sizes of passed and declared parameter types.
22931 Tue Aug 3 00:03:41 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22933 * fixincludes: Fix the return type of bsearch, char* -> void*.
22935 * fixinc/inclhack.def: Likewise.
22937 Mon Aug 2 18:29:32 1999 Mark Mitchell <mark@codesourcery.com>
22939 * invoke.texi (-fdump-translation-unit): New option.
22941 Mon Aug 2 17:54:19 1999 Richard Henderson <rth@cygnus.com>
22943 * expr.h (PROMOTE_PROTOTYPES): Move ...
22944 * defaults.h: ... to here.
22945 * c-decl.c: Include defaults.h instead of expr.h.
22946 * c-typeck.c: Include defaults.h.
22948 Mon Aug 2 17:10:24 1999 Mark Mitchell <mark@codesourcery.com>
22950 * toplev.h (errorcount): Declare.
22951 (warningcount): Likewise.
22952 (sorrycount): Likewise.
22953 * c-lex.c (errorcount): Don't declare.
22954 * dwarf2out.c (errorcount): Don't declare.
22956 Mon Aug 2 17:02:08 1999 Jason Merrill <jason@yorick.cygnus.com>
22958 * config/libgloss.h: Add a note discouraging use with ELF.
22959 * configure.in: Don't use libgloss.h for ELF targets.
22960 Always use_collect2 on a.out targets.
22962 Mon Aug 2 16:27:42 1999 Jim Wilson <wilson@cygnus.com>
22964 * combine.c (force_to_mode, case LSHIFTRT): Add goto shiftrt.
22965 (force_to_mode, case ASHIFTRT): Add shiftrt label.
22967 Tue Aug 3 00:45:02 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
22969 * loop.c (strength_reduce): When doing biv->giv conversion, update
22970 reg note of NEXT->insn.
22972 1999-08-02 Jakub Jelinek <jj@ultra.linux.cz>
22974 * real.c (PUT_REAL): Clear unused bytes if long double is IEEE quad.
22976 1999-08-02 Jakub Jelinek <jj@ultra.linux.cz>
22978 * c-decl.c (get_parm_info, store_parm_decls): Change all uses of
22979 PROMOTE_PROTOTYPES, so that it tests it as a C expression.
22980 Ensure expr.h is included.
22981 * c-typecheck.c (convert_arguments): Ditto.
22983 * expr.h: Supply default for PROMOTE_PROTOTYPES (0).
22985 * config/arc/arc.h: Define PROMOTE_PROTOTYPES to 1.
22986 * config/convex/convex.h: Ditto.
22987 * config/dsp16xx/dsp16xx.h: Ditto.
22988 * config/fx80/fx80.h: Ditto.
22989 * config/gmicro/gmicro.h: Ditto.
22990 * config/i370/i370.h: Ditto.
22991 * config/i386/i386.h: Ditto.
22992 * config/m32r/m32r.h: Ditto.
22993 * config/m68k/m68k.h: Ditto.
22994 * config/m88k/m88k.h: Ditto.
22995 * config/mips/mips.h: Ditto.
22996 * config/pa/pa.h: Ditto.
22997 * config/pyr/pyr.h: Ditto.
22998 * config/tahoe/tahoe.h: Ditto.
22999 * config/we32k/we32k.h: Ditto.
23001 * config/sparc/sparc.h: Define PROMOTE_PROTOTYPES
23002 based on arch size.
23004 * config/i1750a/i1750a.h: Define PROMOTE_PROTOTYPES to 0.
23006 * config/i860/paragon.h: Remove PROMOTE_PROTOTYPES
23009 * tm.texi: Document new usage of PROMOTE_PROTOTYPES.
23011 1999-08-02 Richard Henderson <rth@cygnus.com>
23013 * m32r.c (m32r_setup_incoming_varargs): Use get_varargs_alias_set
23014 for the register spill block.
23015 (m32r_va_arg): New.
23016 * m32r.h (EXPAND_BUILTIN_VA_ARG): New.
23017 (EXPAND_BUILTIN_SAVEREGS): Delete #if 0 code.
23019 * m32r.h (INT8_P): Don't short-cut test with (unsigned).
23020 (INT16_P, CMP_INT16_P, UINT16_P): Likewise.
23021 (UPPER16_P, UINT24_P, INT32_P, UINT5_P): Likewise.
23023 1999-08-02 Jakub Jelinek <jj@ultra.linux.cz>
23025 * config/sparc/linux.h: Define WCHAR_TYPE as "int" and undef
23026 MAX_WCHAR_TYPE defined in sparc.h.
23027 * config/sparc/linuxaout.h: Likewise.
23028 * config/sparc/linux64.h: Likewise.
23029 Also default to -mvis if CPU is UltraSPARC.
23031 1999-08-02 Jakub Jelinek <jj@ultra.linux.cz>
23033 * config/sparc/sparc.h (ASM_DECLARE_REGISTER_GLOBAL): New macro.
23034 (RTX_OK_FOR_OLO10): Likewise.
23035 (GO_IF_LEGITIMATE_ADDRESS): If assembler supports offsetable
23036 %lo(), allow it in addresses...
23037 (PRINT_OPERAND_ADDRESS): ... and print it appropriately.
23038 * config/sparc/sparc.md (sethi_di_medlow_embmedany_pic): sethi %lo()
23039 does not make sense.
23040 * config/sparc/sparc.c (sparc_hard_reg_printed): New array.
23041 (sparc_output_scratch_registers): New function.
23042 (output_function_prologue, sparc_flat_output_function_prologue): Use
23044 * varasm.c (make_decl_rtl): Use ASM_DECLARE_REGISTER_GLOBAL if
23046 * tm.texi (ASM_DECLARE_REGISTER_GLOBAL): Document it.
23047 * configure.in: Add check for .register pseudo-op support in as and
23048 check for offsetable %lo().
23049 * acconfig.h: Add templates for the above checks.
23050 * configure: Regenerate.
23052 1999-08-02 Richard Henderson <rth@cygnus.com>
23054 * sparc/linux64.h (TARGET_DEFAULT): Remove MASK_APP_REGS.
23055 * sparc/sol2-sld-64.h (TARGET_DEFAULT): Likewise.
23056 * sparc/sol2.h (TARGET_DEFAULT): Likewise.
23058 Mon Aug 2 23:46:45 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
23060 * loop.c (strength_reduce): When doing biv->giv conversion, fix up
23063 1999-08-02 Jakub Jelinek <jj@ultra.linux.cz>
23065 * config/float-sparc.h: New file.
23066 * configure.in: Use float_format=sparc for sparc-*-linux-gnulibc1,
23067 sparc-*-linux-gnu and sparc64-*-linux*.
23069 1999-08-02 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
23071 * rs6000.c (rs6000_va_list): Type is an array.
23072 (rs6000_va_start): Don't doubly adjust for varargs.
23073 (rs6000_va_arg): Evaluate long long GPR adjustment.
23075 Mon Aug 2 16:15:57 1999 David Edelsohn <edelsohn@gnu.org>
23077 * rs6000/aix43.h (SUBTARGET_SWITCHES): Use -m64 and -m32 instead of
23078 -maix64 and -maix32.
23079 (ASM_SPEC, ASM_CPU_SPEC, CPP_SPEC, CPP_CPU_SPEC, LIB_SPEC,
23080 LINK_SPEC): Change appropriately.
23081 * rs6000/rs6000.c (short_cint_operand): Use CONST_OK_FOR_LETTER_P.
23082 (u_short_cint_operand): Likewise.
23083 * rs6000/rs6000.md (movdi splitters): Add TARGET_POWERPC64 support
23085 * rs6000/t-aix43 (MULTILIB): Change to -m64.
23087 * invoke.texi (RS/6000 Submodel): Document 64-bit processor options.
23089 Mon Aug 2 16:15:57 1999 Geoff Keating <geoffk@cygnus.com>
23091 * rs6000/rs6000.c (num_insns_constant_wide): Correct
23092 for type promotion.
23093 (add_operand): Get test correct for 64-bit HOST_WIDE_INT.
23094 (non_add_cint_operand): Likewise.
23095 (logical_operand): Likewise.
23096 (non_logical_cint_operand): Likewise.
23097 (print_operand): Correct printf()s for 64-bit HOST_WIDE_INT.
23098 (print_operand_address): Correct printf() for 64-bit HOST_WIDE_INT.
23099 (rs6000_select_rtx_section): Suppress warning.
23100 (small_data_operand): Suppress warning.
23101 (rs6000_got_register): Suppress warning.
23102 * rs6000/rs6000.md (andsi3): HOST_WIDE_INT is a signed
23103 type, so `J' is generally the wrong constraint for a SImode value;
23105 (andsi3_internal2): Likewise.
23106 (andsi3_internal3): Likewise.
23107 (iorsi3_internal1): Likewise.
23108 (xorsi3_internal1): Likewise.
23110 (movsf_softfloat): Likewise.
23111 (scc insns): Likewise.
23112 (movsi+2): Preserve sign bits of SImode constant.
23113 (floatsidf2_internal+1): Sign-extend SImode constant correctly.
23114 (movdf+1): Sign-extend properly.
23115 (movdi_32+1): Sign-extend properly.
23116 (scc insns): Sign-extend properly.
23118 * md.texi (RS/6000 EXTRA_CONSTRAINTS): Update documentation for J,
23121 1999-08-02 Richard Henderson <rth@cygnus.com>
23123 * alpha.c (override_options): Move ev6 alpha_tp frobbing out of
23124 -mcpu parsing code.
23125 (print_operand): Notice alpha_fptm not alpha_tp for sw completion.
23126 * alpha.md (all fp insns): Likewise.
23128 1999-08-02 Nick Clifton <nickc@cygnus.com>
23130 * config/v850/v850.h (STRICT_ALIGNMENT): Only define if not
23133 Mon Aug 2 03:38:33 1999 Jeffrey A Law (law@cygnus.com)
23135 * pa.c (legitimize_pic_address): Clarify comments. Do not call the
23136 pic_load_label generator directly.
23137 * pa.md (pic_load_label): Clarify comments. Remove modes on operands.
23138 No longer a named pattern.
23140 Mon Aug 2 09:38:10 1999 Nick Clifton <nickc@cygnus.com>
23142 * explow.c (force_reg): Call force_operand if X does not
23143 satisfy general_operand.
23145 Mon Aug 2 01:34:22 1999 Jeffrey A Law (law@cygnus.com)
23147 * fix-header.c (main): When testing for CONTINUED, use string
23148 equality, not pointer equality.
23150 Mon Aug 2 01:27:24 1999 Dan Nicolaescu <dann@ics.uci.edu>
23152 * sparc.c (sparc_block_profiler): Use the %g2 register, not %o0.
23154 Sun Aug 1 22:46:42 1999 Jeffrey A Law (law@cygnus.com)
23156 * cse.c (cse_insn): Fix loop which deletes insns after a jump
23157 that has become an unconditional jump.
23159 * m68k.c (output_function_prologue): Fix typo in CPU32 case.
23160 (output_function_epilogue): Similarly.
23162 Sun Aug 1 20:14:00 1999 Bernd Schmidt <bernds@cygnus.co.uk>
23164 * tree.h (init_dummy_function_start): Declare.
23166 Sun Aug 1 12:55:31 1999 Bernd Schmidt <bernds@cygnus.co.uk>
23168 * stmt.c (emit_filename, emit_lineno, expr_stmts_for_value,
23169 last_expr_type, last_expr_value, block_start_count, block_stack,
23170 stack_block_stack, cond_stack, loop_stack, case_stack, nesting_stack,
23171 nesting_depth, goto_fixup_chain): Delete global vars; now allocated
23172 dynamically in stmt elt of struct function for each function.
23173 (struct nesting): Rename function_call_count elt to n_function_calls,
23174 target_temp_slot_level to block_target_temp_slot_level. All users
23176 (struct stmt_status): New structure definition.
23177 Add many accessor macros for stmt_status elements which previously
23178 were global variables.
23179 (init_stmt_for_function): Allocate stmt elt for current_function.
23180 Reflect that block_start_count was renamed to
23181 current_block_start_count.
23182 (save_stmt_status, restore_stmt_status): Delete functions.
23183 (preserve_subexpressions_p): Don't access loop_stack when outside
23185 (expand_start_bindings): Reflect that block_start_count was renamed to
23186 current_block_start_count.
23187 (expand_fixup): Likewise.
23188 (expand_decl): Don't access block_stack when outside a function.
23189 (expand_decl_cleanup): Likewise.
23190 (expand_dcc_cleanup): Likewise.
23191 (expand_dhc_cleanup): Likewise.
23192 (expand_anon_union_decl): Likewise.
23193 (set_file_and_line_for_stmt): New function.
23194 (in_control_zone_p): New function.
23196 * function.h (struct function): Add new elt stmt.
23197 Delete elts block_stack, stack_block_stack, cond_stack, loop_stack,
23198 case_stack, nesting_stack, nesting_depth, block_start_count,
23199 last_expr_type, last_expr_value, expr_stmts_for_value, emit_filename,
23200 emit_lineno, goto_fixup_chain.
23201 (save_eh_status, restore_eh_status, save_stmt_status,
23202 restore_stmt_status): Delete declarations.
23203 * function.c (push_function_context_to): Don't call save_stmt_status.
23204 (pop_function_context_to): Don't call restore_stmt_status.
23205 * tree.h (in_control_zone_p): Declare.
23206 * rtl.h (set_file_and_line_for_stmt): Declare.
23208 * emit-rtl.c (emit_line_note): Don't set emit_filename/emit_lineno;
23209 call set_file_and_line_for_stmt.
23211 Thu Jul 31 12:34:45 1999 Joe Buck <jbuck@synopsys.com>
23213 * gcc.texi: Use terms "GNU Compiler Collection" and "GCC".
23214 Also update copyright.
23216 Sat Jul 31 11:10:07 1999 Bernd Schmidt <bernds@cygnus.co.uk>
23218 * c-pragma.c: Don't include "except.h".
23219 * emit-rtl.c: Likewise.
23220 * stor-layout.c: Likewise.
23221 * tree.c: Likewise.
23222 * varasm.c: Likewise.
23224 * flow.c: Include "function.h".
23225 * tree.h (init_dummy_function_start): Declare new function.
23227 * except.h (struct eh_status): New structure.
23228 (struct label_node, struct eh_entry): Declare even if tree.h hasn't
23230 (eh_return_stub_label, ehstack, catchstack, ehqueue,
23231 catch_clauses, false_label_stack, caught_return_label_stack,
23232 protect_list, current_function_ehc): Add accessor macros for the
23233 corresponding fields in current_function->eh; delete declarations
23234 for all items that used to be declared here.
23235 * except.c (eh_return_stub_label, ehstack, catchstack, ehqueue,
23236 catch_clauses, false_label_stack, caught_return_label_stack,
23237 protect_list, current_function_ehc): Delete variables.
23238 (init_eh_for_function): Allocate current_function->eh.
23239 (save_eh_status, restore_eh_status): Delete functions.
23241 * function.h (struct function): Add fields next_global and eh.
23242 Delete all exception handling related fields.
23243 * function.c (current_function): New variable.
23244 (all_functions): New variable.
23245 (push_function_context_to): Don't allocate a struct function,
23246 use current_function instead. Call init_dummy_function_start when
23247 outside a function. Clear current_function before returning.
23248 (pop_function_context_from): Restore current_function.
23249 Don't free the restored struct function.
23250 (prepare_function_start): New function.
23251 (init_dummy_function_start): New function.
23252 (init_function_start): Break out some code into prepare_function_start
23255 * stmt.c (save_stmt_status): Don't call save_eh_status.
23256 (restore_stmt_status): Don't call restore_eh_status.
23258 * Makefile.in: Update dependencies.
23260 Sat Jul 31 04:10:01 1999 Jeffrey A Law (law@cygnus.com)
23262 * pa.c (compute_frame_size): Use STARTINg_FRAME_OFFSET instead
23263 of depending on a magic constant value. Update comments.
23264 (hppa_expand_prologue): Similarly.
23266 * pa.md (reload_indi, reload_outdi): Allow any register for the
23267 original reload register.
23269 Fri Jul 30 19:41:35 1999 Jim Wilson <wilson@cygnus.com>
23271 * cccp.c (print_help): Change marcos to macros.
23273 1999-07-30 Richard Henderson <rth@cygnus.com>
23275 * c-typeck.c (initializer_constant_valid_p): Move ...
23276 * c-common.c (initializer_constant_valid_p): ... here. Use
23277 FOO_TYPE_P instead of tests against TREE_CODE. Allow subtraction
23278 of label addresses.
23279 * c-common.h (initializer_constant_valid_p): Declare.
23280 * c-tree.h (initializer_constant_valid_p): Remove.
23282 Fri Jul 30 16:33:42 1999 Mathias Froehlich <frohlich@na.uni-tuebingen.de>
23284 * config/i386/sol2-c1.asm: Align the stack.
23285 * config/i386/sol2-gc1.asm: Likewise.
23287 1999-07-30 Vladimir Makarov <vmakarov@loony.cygnus.com>
23289 * config/sparc/sparc.h (ASM_CPU32_DEFAULT_SPEC): Change -Av8 onto
23290 -Asparclite for sparc86x.
23291 (CPP_CPU32_DEFAULT_SPEC, CPP_CPU_SPEC): Remove -D__sparc_v8__ for
23293 (ASM_CPU_SPEC): Use -Asparclite for sparc86x.
23295 Fri Jul 30 14:53:56 1999 Jakub Jelinek <jj@ultra.linux.cz>
23297 * config/sparc/linux64.h (CC1_SPEC): Preserve CPU specified by
23298 the user if using the non-default arch size in BI_ARCH configuration.
23299 * config/sparc/sol2-sld-64.h (CC1_SPEC): Ditto.
23301 * config/sparc/sparc.md (cmp_mul_set, cmp_udiv_cc_set):
23302 Fix patterns so that they actually match.
23303 (cmp_sdiv_cc_set): Ditto, also don't require g0 to be zero.
23304 (mulsidi3_sp64, const_mulsidi3_sp64): New patterns.
23305 (const_mulsidi3_sp32): Renamed from const_mulsidi3, only on
23307 (mulsidi3): Reflect this in the expand.
23308 (smulsi3_highpart): Only on TARGET_ARCH32.
23309 (umulsidi3_sp64, const_umulsidi3_sp64): New patterns.
23310 (const_umulsidi3_sp32): Renamed from const_umulsidi3.
23311 (umulsidi3): Reflect this in the expand.
23312 (umulsi3_highpart): Only on TARGET_ARCH32.
23313 (divsi3_sp32): Renamed from divsi3, only on TARGET_ARCH32,
23314 don't require g0 to be zero.
23315 (udivsi3_sp32): Renamed from udivsi3, only on TARGET_ARCH32.
23316 ({,u}divsi3): New expands.
23317 ({,u}divsi3_sp64): New patterns.
23318 (after lshrdi3_v8plus): Four new patterns to help combiner
23319 optimizing nested mixed mode shifts.
23321 * config/sparc/sparc.c (sparc_override_options): Use deprecated
23322 v8 instructions if optimizing for UltraSPARC I, II, IIi, as it
23323 speed things up. Don't use them by default on plain v9 in 64bit
23324 mode, according to what SPAMv9 sais.
23326 * config/sparc/sparc.h: Fix comments, e.g. Linux already preserves
23327 top 32 bits of %[og][0-7] in signal handlers.
23328 Also, TARGET_HARD_MUL32 now is only true for TARGET_ARCH32.
23330 Fri Jul 30 03:00:41 1999 Jeffrey A Law (law@cygnus.com)
23332 * pa.md (zvdep_imm32): Renamed from zvdep_imm.
23333 (ashlsi3): Corresponding changes.
23335 * pa.c (compute_zdepwi_operands): Renamed from compute_zdepi_operands.
23337 Thu Jul 29 18:37:13 1999 Jeffrey A Law (law@cygnus.com)
23339 * pa.h (FIRST_PARM_CALLER_OFFSET): Delete.
23341 Thu Jul 29 19:01:58 1999 Bernd Schmidt <bernds@cygnus.co.uk>
23343 * arm.h (Hint): Delete macro.
23344 Substitute HOST_WIDE_INT for Hint in some prototypes.
23345 * arm.c: Substitute HOST_WIDE_INT for Hint in one prototype.
23347 Thu Jul 29 09:21:42 1999 Nick Clifton <nickc@cygnus.com>
23349 * builtins.c (expand_builtin_setjmp): Use force_operand to
23350 make sure that the buffer address is in a suitable form to be
23351 passed to force_reg.
23353 Wed Jul 28 12:50:48 1999 Geoff Keating <geoffk@cygnus.com>
23355 * config/mips/mips.c: system.h handles MIN and MAX, don't undefine
23358 Wed Jul 28 13:18:35 1999 Jeffrey A Law (law@cygnus.com)
23360 * pa.md (indirect_jump): Remove mode from match_operand. Verify
23361 proper mode in the condition string.
23362 (icacheflush, dcacheflush): Remove modes from match_operands.
23364 * pa.c (emit_move_sequence): Always convert scratch_reg to the
23365 proper mode before using it.
23367 * pa.md (adddi3, subdi3): Turn into a define_expand/define_insn
23370 * pa.c (store_reg): Do not call add_high_const generator directly.
23371 (load_reg, set_reg_plus_d): Likewise.
23372 * pa.md (add_high_const): No longer a named pattern.
23374 * pa.c (legitimize_address): Consistently use Pmode rather than
23375 SImode. Do not call gen_pic2_highpart directly anymore.
23376 * pa.md (pic2_highpart): No longer a named pattern.
23377 (pic2_lo_sum): Similarly. Reformat to make more readable.
23379 * pa.md (call, call_value): Use "word_mode" instead of "SImode" as
23384 Wed Jul 28 11:28:04 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
23386 * builtins.c (expand_builtin): Typo in call to expand_builtin_ffs.
23388 Wed Jul 28 11:23:48 1999 Richard Henderson <rth@cygnus.com>
23390 * pa.c (hppa_builtin_saveregs): Use get_varargs_alias_set
23391 and tag the spill mems.
23392 (hppa_va_start): New.
23393 (hppa_va_arg): New.
23394 * pa.h (EXPAND_BUILTIN_VA_START): New.
23395 (EXPAND_BUILTIN_VA_ARG): New.
23397 Wed Jul 28 11:22:21 1999 Richard Henderson <rth@cygnus.com>
23399 * mn10300.c (mn10300_builtin_saveregs): Use get_varargs_alias_set
23400 and tag the spill mems.
23401 (mn10300_va_start): New.
23402 (mn10300_va_arg): New.
23403 * mn10300.h (EXPAND_BUILTIN_VA_START): New.
23404 (EXPAND_BUILTIN_VA_ARG): New.
23406 Wed Jul 28 11:20:19 1999 Richard Henderson <rth@cygnus.com>
23408 * mn10200.c (mn10200_va_arg): New.
23409 * mn10200.h (EXPAND_BUILTIN_VA_ARG): New.
23411 Wed Jul 28 11:19:06 1999 Richard Henderson <rth@cygnus.com>
23413 * builtins.c (std_expand_builtin_va_arg): Use int_size_in_bytes
23414 rather than play with TREE_INT_CST_LOW.
23416 1999-07-27 Philip Blundell <pb@nexus.co.uk>
23418 * config/arm/telf.h: Include dbxelf.h.
23419 (CPP_PREDEFINES): Only define if not already defined.
23420 (ASM_IDENTIFY_GCC): Likewise.
23421 (SUBTARGET_EXTRA_SECTIONS): Likewise.
23422 (SUBTARGET_EXTRA_SECTION_FUNCTIONS): Likewise.
23423 * config/arm/thumb.h (LINK_SPEC): Only define if not already
23425 (DBX_DEBUGGING_INFO): Don't define.
23426 * config/arm/linux-telf.h: New file.
23427 * config/arm/linux-tgas.h: New file.
23428 * config/arm/t-thumb-linux: New file.
23429 * config/arm/uclinux-elf.h: New file.
23430 * config/arm/uclinux-telf.h: New file.
23431 * configure.in (arm-*-uclinux, thumb-*-linux-gnu,
23432 thumb-*-uclinux): New targets.
23433 * configure: Regenerate.
23435 Tue Jul 27 23:20:21 1999 Jeffrey A Law (law@cygnus.com)
23437 * pa.md (post_store, pre_load): New expanders.
23438 (post_stwm, pre_ldwm): Renamed to post_stw and pre_ldw respectively.
23439 (post_ldwm, pre_stwm): Make these unnamed patterns since we never
23440 need to directly generate RTL for them.
23441 * pa.c (hppa_expand_prologue, hppa_expand_epilogue): Corresponding
23444 Tue Jul 27 16:05:52 1999 David Edelsohn <edelsohn@gnu.org>
23446 * aix43.h (ASM_CPU_SPEC, CPP_CPU_SPEC): Add rs64a and PPC630.
23447 * rs6000.c (processor_target_table): Add powerpc64, rs64a, and PPC630.
23448 (rs6000_cpu): Choose between 32-bit and 64-bit default processors.
23449 (secndary_reload_class): Make TARGET_ELF conditional compile.
23450 (print_operand_address): Similar.
23451 (output_toc): Print all values as hex.
23452 (get_issue_rate): Rearrange and add RS64A and PPC630.
23453 * rs6000.h (processor_type): Add RS64A and PPC630.
23454 (PROCESSOR_POWERPC64): New.
23455 (PROMOTE_MODE): Use word_mode.
23456 (RTX_COSTS): Add RS64A and PPC630.
23457 * rs6000.md (scheduling information): Add lmul and ldiv
23458 representing 64-bit integer multiply and divide. Add rs64a and
23459 PPC630 information.
23460 (ashldi3): Add support for "rldic" instruction.
23461 * sysv4.h (PROCESSOR_DEFAULT): Change to PROCESSOR_750.
23463 Tue Jul 27 15:31:53 1999 Vladimir Makarov <vmakarov@toad.to.cygnus.com>
23465 * config/sparc/sparc.c (sparc_override_options): Enable SPARCLITE
23466 instead of V8 for sparclite86x in cpu_table.
23468 Tue Jul 27 17:49:42 1999 Bernd Schmidt <bernds@cygnus.co.uk>
23470 * config/arm/coff.h (ASM_FILE_START): If generating SDB output, call
23471 output_file_directive.
23473 Tue Jul 27 03:15:33 1999 Jason Merrill <jason@yorick.cygnus.com>
23475 * expr.c (expand_expr, case PLUS_EXPR): Get the mode from the
23476 tree for op1, not the rtl.
23478 Tue Jul 27 00:18:34 1999 Richard Henderson <rth@cygnus.com>
23480 * m88k.c (m88k_builtin_saveregs): Break out the constructor code
23481 to m88k_va_start, leaving only the register spill.
23482 (m88k_build_va_list): New.
23483 (m88k_va_start): New.
23484 (m88k_va_arg): New.
23485 * m88k.h (BUILD_VA_LIST_TYPE): New.
23486 (EXPAND_BUILTIN_VA_START): New.
23487 (EXPAND_BUILTIN_VA_ARG): New.
23489 Mon Jul 26 19:07:11 1999 Geoff Keating <geoffk@cygnus.com>
23491 * config/rs6000/rs6000.c (rs6000_expand_builtin_saveregs):
23492 Rename from expand_builtin_saveregs.
23493 * config/rs6000/rs6000.h (EXPAND_BUILTIN_SAVEREGS): Change caller.
23495 Mon Jul 26 22:52:47 1999 Richard Henderson <rth@cygnus.com>
23497 * i960.c (i960_setup_incoming_varargs): Use get_varargs_alias_set
23498 for the register spill block.
23499 (i960_build_va_list): New.
23500 (i960_va_start): New.
23501 (i960_va_arg): New.
23502 * i960.h (BUILD_VA_LIST_TYPE): New.
23503 (EXPAND_BUILTIN_VA_START): New.
23504 (EXPAND_BUILTIN_VA_ARG): New.
23505 * i960.md (store_multiple): Use change_address on individul mems.
23507 Mon Jul 26 22:43:12 1999 Richard Henderson <rth@cygnus.com>
23509 * builtins.c (stabilize_va_list): Don't INDIRECT_REF through
23511 (std_expand_builtin_va_start): Back out one word if !stdarg_p.
23512 (expand_builtin_va_end): Evaluate arg for side effects.
23513 * c-common.c (c_common_nodes_and_builtins): Construct a
23514 va_list_arg_type_node to handle array decomposition to pointer.
23516 Mon Jul 26 18:51:34 1999 Richard Henderson <rth@cygnus.com>
23518 * except.c (st_dynamic_cleanup): Use force_operand on the
23521 Mon Jul 26 16:43:26 1999 Richard Henderson <rth@cygnus.com>
23523 * c4x.h (EXPAND_BUILTIN_VA_ARG): New.
23524 * c4x.c (c4x_va_arg): New.
23526 Mon Jul 26 12:30:09 1999 Jason Merrill <jason@yorick.cygnus.com>
23528 * cpplib.c (cpp_get_token): Don't return a CPP_POP if the buffer
23529 has manual_pop set.
23531 1999-07-26 Nathan Sidwell <nathan@acm.org>
23533 * eh-common.h (__eh_matcher): Prototype correctly.
23535 Mon Jul 26 17:24:51 1999 Philip Blundell <pb@nexus.co.uk>
23537 * config/arm/thumb.h (THUMB_FLAG_SINGLE_PIC_BASE): Define.
23538 (TARGET_SINGLE_PIC_BASE): Likewise.
23539 (GOT_PCREL, NEED_GOT_RELOC, NEED_PLT_RELOC): Provide default
23541 (TARGET_CALLEE_INTERWORKING): Fix typo in comment.
23542 (TARGET_SWITCHES): Add -m{no-}single-pic-base.
23543 (TARGET_OPTIONS): Add -mpic-register=N.
23544 (OUTPUT_INT_ADDR_CONST): New macro.
23545 (INDEX_REGISTER_RTX_P, PIC_OFFSET_TABLE_REGNUM, FINALIZE_PIC,
23546 LEGITIMATE_PIC_OPERAND_P): Likewise.
23547 (LEGITIMIZE_ADDRESS, GOT_IF_LEGITIMATE_ADDRESS): Support PIC.
23548 (ASM_OUTPUT_INT): Use OUTPUT_INT_ADDR_CONST rather than calling
23549 output_addr_const directly.
23550 (PRINT_OPERAND_PUNCT_VALID_P): Accept `|' for compatibility with
23552 (thumb_pic_register, thumb_pic_register_string): Declare.
23554 * config/arm/thumb.c (symbol_mentioned_p): New function: Imported
23556 (label_mentioned_p): New function: Imported from arm.c.
23557 (legitimize_pic_address): New function: Imported from arm.c.
23558 (is_pic):New function: Imported from arm.c.
23559 (thumb_finalize_pic):New function: Imported from arm.c.
23560 (add_constant): Cope with PIC constants.
23561 (fixit): Cope with PIC constants.
23562 (output_return): Do not treat the PIC register as live if
23563 TARGET_SINGLE_PIC_BASE is true.
23564 (thumb_function_prologue): Do not treat the PIC register as live if
23565 TARGET_SINGLE_PIC_BASE is true.
23566 (thumb_expand_prologue): Do not treat the PIC register as live if
23567 TARGET_SINGLE_PIC_BASE is true.
23568 (thumb_unexpand_epilogue): Do not treat the PIC register as live if
23569 TARGET_SINGLE_PIC_BASE is true.
23570 (thumb_print_operand): Accept '|'.
23571 (thumb_override_options): Process PIC options.
23573 * config/arm/thumb.md (movsi): Support PIC.
23574 (call_insn): Change "i" constraint to "X".
23575 (call_value_insn): Likewise.
23576 (consttable_4, consttable_8, consttable_end): Set and clear
23577 "making_const_table" as appropriate.
23578 (pic_load_addr, pic_add_dot_plus_four): New insns.
23580 * invoke.texi (Thumb Options): Fix spelling. Document new
23581 options -msingle-pic-base and -mpic-register=.
23583 1999-07-26 Andrew Haley <aph@cygnus.com>
23585 * config/m32r/initfini.c (__init): Use a full word immediate for
23586 __fini: this allows it to be placed in any memory region.
23588 * config/m32r/t-m32r: Compile crtinit.o and crtfini.o for
23589 -mmodel=medium. This is OK for all memory models.
23591 Mon Jul 26 11:58:46 1999 Nick Clifton <nickc@cygnus.com>
23593 * config/arm/arm.c: Replace %R%s in asm_fprintf strings with %r.
23594 * config/arm/arm.h: Replace %R%s in asm_fprintf strings with %r.
23596 Mon Jul 26 10:23:36 1999 Nick Clifton <nickc@cygnus.com>
23598 * final.c (asm_fprintf): Accept ASM_FPRINTF_EXTENSIONS, if
23601 * tm.texi: Document ASM_FPRINTF_EXTENSIONS.
23603 Sun Jul 25 23:51:59 1999 Richard Henderson <rth@cygnus.com>
23605 * i860.h (EXPAND_BUILTIN_SAVEREGS): New.
23606 (BUILD_VA_LIST_TYPE): New.
23607 (EXPAND_BUILTIN_VA_START): New.
23608 (EXPAND_BUILTIN_VA_ARG): New.
23609 * i860.c (output_delayed_branch): Disable.
23610 (output_delay_insn): Likewise.
23611 (i860_saveregs): New.
23612 (i860_build_va_list): New.
23613 (i860_va_start): New.
23614 (i860_va_arg): New.
23615 * i860.md: Disable all peepholes using output_delayed_branch.
23616 * i860/sysv4.h (I860_SVR4_VA_LIST): New.
23618 Sun Jul 25 23:44:13 1999 Richard Henderson <rth@cygnus.com>
23620 * clipper.h (EXPAND_BUILTIN_SAVEREGS): Remove argument.
23621 (BUILD_VA_LIST_TYPE): New.
23622 (EXPAND_BUILTIN_VA_START): New.
23623 (EXPAND_BUILTIN_VA_ARG): New.
23624 * clipper.c (clipper_builtin_saveregs): Only dump registers.
23625 Return the address of the save area.
23626 (clipper_build_va_list): New.
23627 (clipper_va_start): New.
23628 (clipper_va_arg): New.
23630 Sun Jul 25 22:56:47 1999 Richard Henderson <rth@cygnus.com>
23632 * arc.h (EXPAND_BUILTIN_VA_START): New.
23633 (EXPAND_BUILTIN_VA_ARG): New.
23634 * arc.c (arc_setup_incoming_varargs): Set alias set of
23636 (arc_va_start): New.
23639 Sun Jul 25 22:45:55 1999 Richard Henderson <rth@cygnus.com>
23641 * alpha.h (EXPAND_BUILTIN_SAVEREGS): Delete.
23642 (BUILD_VA_LIST_TYPE): New.
23643 (EXPAND_BUILTIN_VA_START): New.
23644 (EXPAND_BUILTIN_VA_ARG): New.
23645 * alpha.c (alpha_builtin_saveregs): Delete.
23646 (alpha_build_va_list): New.
23647 (alpha_va_start): New.
23648 (alpha_va_arg): New.
23650 Sun Jul 25 21:40:33 1999 Jeffrey A Law (law@cygnus.com)
23652 * config/svr4.h (CTORS_SECTION_ASM_OP): Do not emit directives in
23654 (DTORS_SECTION_ASM_OP, INIT_SECTION_ASM_OP): Likewise.
23655 (FINI_SECTION_ASM_OP, ASM_OUTPUT_SECTION_NAME): Likewise.
23657 * gcc.texi: More changes related to list conversion.
23658 * invoke.texi: Likewise.
23660 Sun Jul 25 18:15:39 1999 Richard Henderson <rth@cygnus.com>
23662 * builtins.c (expand_builtin_saveregs): Remove static, remove exp
23663 and ignore arguments, bail if no EXPAND_BUILTIN_SAVEREGS.
23664 (expand_builtin_next_arg): Accept ARGLIST not EXP.
23665 (stabilize_va_list): New function.
23666 (std_expand_builtin_va_start): New function.
23667 (expand_builtin_va_start): New function.
23668 (get_varargs_alias_set): New function.
23669 (std_expand_builtin_va_arg): New function.
23670 (expand_builtin_va_arg): New function.
23671 (expand_builtin_va_end): New function.
23672 (expand_builtin_va_copy): New function.
23673 (expand_builtin): Call them.
23674 * c-common.c (c_common_nodes_and_builtins): Build __builtin_va_list,
23675 __builtin_{varargs_start,stdarg_start,end,copy}.
23676 (build_va_arg): New function.
23677 * c-common.h (CTI_PTR_TYPE, ptr_type_node): Delete.
23678 (build_va_arg): Declare.
23679 * c-decl.c (ptr_type_node, va_list_type_node): New.
23680 * c-parse.gperf (__builtin_va_arg): New.
23681 * c-parse.in (VA_ARG): New token.
23682 (unary_expr): Recognize it.
23683 * expr.c (expand_expr): Expand VA_ARG_EXPR.
23684 * expr.h (std_expand_builtin_va_start): Declare.
23685 (std_expand_builtin_va_arg): Declare.
23686 (expand_builtin_va_arg): Declare.
23687 (get_varargs_alias_set): Declare.
23688 * tree.def (VA_ARG_EXPR): New.
23689 * tree.h (BUILT_IN_VARARGS_START): New.
23690 (BUILT_IN_STDARG_START, BUILT_IN_VA_END): New.
23691 (ptr_type_node, va_list_type_node): Declare.
23692 * tm.texi (EXPAND_BUILTIN_SAVEREGS): Kill unused ARGLIST argument.
23693 * m32r.h (EXPAND_BUILTIN_SAVEREGS): Likewise.
23694 * m88k.h, m88k.c: Likewise.
23695 * mn10300.h, mn10300.c: Likewise.
23696 * pa.h, pa.c: Likewise.
23697 * rs6000.h, rs6000.c: Likewise.
23698 * sh.h, sh.c: Likewise.
23699 * sparc.h, sparc.c: Likewise.
23701 * emit-rtl.c (operand_subword): Copy alias set.
23702 (change_address): Likewise.
23704 Sun Jul 25 15:04:37 1999 Jeffrey A Law (law@cygnus.com)
23706 * pa.c (compute_frame_size): Scan all the used callee saved registers,
23707 not just the first one.
23709 Fri Jul 23 14:09:58 1999 Philip Blundell <pb@nexus.co.uk>
23711 * config/arm/arm.h (TARGET_SWITCHES): Add
23712 -m{no-}single-pic-base. Correct help string for -mshort-load-words.
23713 (TARGET_OPTIONS): Add -mpic-register=.
23714 (ARM_FLAG_SINGLE_PIC_BASE, TARGET_SINGLE_PIC_BASE): Define.
23715 (arm_pic_register_string): Declare.
23716 (NEED_PLT_GOT): Delete, replace with ...
23717 (NEED_GOT_RELOC, NEED_PLT_RELOC): ... these. New macros.
23718 (OUTPUT_INT_ADDR_CONST): Replace NEED_PLT_GOT with NEED_GOT_RELOC.
23719 (ASM_OUTPUT_MI_THUNK): Replace NEED_PLT_GOT with NEED_PLT_RELOC.
23720 * config/arm/arm.c (arm_override_options): Add new option
23722 (arm_pic_register_string): New variable.
23723 (arm_finalize_pic): Respect TARGET_SINGLE_PIC_BASE.
23724 (output_func_prologue): If TARGET_SINGLE_PIC_BASE, treat the PIC
23725 register as never live. Use NEED_PLT_RELOC not NEED_PLT_GOT.
23726 (output_return_instruction): Likewise.
23727 * config/arm/elf.h (NEED_PLT_GOT): Delete, replace with ...
23728 (NEED_GOT_RELOC, NEED_PLT_RELOC): ... these. Define to flag_pic.
23729 * config/arm/arm.md: Use NEED_PLT_RELOC in place of NEED_PLT_GOT.
23731 * invoke.texi (ARM Options): Fix spelling. Remove duplicate
23732 mention of -msched-prolog. Document new options -msingle-pic-base
23733 and -mpic-register=.
23735 Thu Jul 22 18:23:56 1999 Richard Henderson <rth@cygnus.com>
23737 * haifa-sched.c (reemit_notes): Tidy.
23738 * sched.c (reemit_notes): Duplicate 1998-08-31 patch to
23741 Thu Jul 22 18:21:04 1999 Richard Henderson <rth@cygnus.com>
23743 * explow.c (trunc_int_for_mode): New function.
23744 (plus_constant_wide): Use it.
23745 * combine.c (simplify_and_const_int): Likewise.
23746 (merge_outer_ops): Likewise.
23747 (simplify_shift_const): Likewise.
23748 * cse.c (simplify_unary_operation): Likewise.
23749 (simplify_binary_operation): Likewise.
23750 * emit-rtl.c (operand_subword): Likewise.
23751 * rtl.h: Declare it.
23753 Thu Jul 22 14:34:59 1999 Bernd Schmidt <bernds@cygnus.co.uk>
23755 * config/arm/arm.c (arm_print_operand): Fix typo in 'M' case
23756 (use NUM_REGS instead of NUM_INTS).
23758 Thu Jul 22 11:25:20 1999 Bernd Schmidt <bernds@cygnus.co.uk>
23760 * builtins.c: New file.
23761 * expr.c (saveregs_value, apply_args_value): Delete definition,
23762 moved into builtins.c.
23763 (string_constant): No longer static.
23764 (get_pointer_alignment, c_strlen, get_memory_rtx, expand_builtin,
23765 apply_args_size, apply_result_size, result_vector,
23766 expand_builtin_apply_args, expand_builtin_apply,
23767 expand_builtin_return): Delete functions, moved into builtins.c.
23768 (INCOMING_REGNO, OUTGOING_REGNO): Delete unused macros.
23769 * expr.h (saveregs_value, apply_args_value): Declare variables.
23770 (expand_builtin, string_constant): Declare functions.
23771 * Makefile.in: Update to build builtin.o.
23773 Wed Jul 21 00:46:58 1999 Mark P. Mitchell <mark@codesourcery.com>
23775 * defaults.h (DWARF2_GENERATE_TEXT_SECTION_LABEL): New macro.
23776 * tm.texi (DWARF2_GENERATE_TEXT_SECTION_LABEL): Define it.
23777 * dwarf2out.c (dwarf2out_init): Don't output a label to mark the
23778 start of the text section if DWARF2_GENERATE_TEXT_SECTION_LABEL is
23780 * config/mips/iris6.h (DWARF2_GENERATE_TEXT_SECTION_LABEL):
23783 1999-07-21 Michael Meissner <meissner@cygnus.com>
23785 * print-rtl.c (print_rtx): Print the names of the virtual
23788 Wed Jul 21 16:00:32 1999 Nick Clifton <nickc@cygnus.com>
23790 * config/arm/arm.h (INITIAL_ELIMINATION_OFFSET): Fix typo
23791 introduced in previous delta.
23793 Wed Jul 21 14:30:51 1999 Bernd Schmidt <bernds@cygnus.co.uk>
23795 * c-lang.c (finish_file): Rename void_list_node to void_list_node_1
23796 to avoid name clash.
23798 Wed Jul 21 08:39:22 1999 Gavin Romig-Koch <gavin@cygnus.com>
23800 * c-lex.c (yylex) : Correct the test for overflow when lexing
23803 Tue Jul 20 18:02:42 1999 Richard Henderson <rth@cygnus.com>
23805 * haifa-sched.c (insn_cost): FREE implies cost 0 and vice versa.
23806 (adjust_priority): Always call ADJUST_PRIORITY.
23807 (schedule_insn): Only put insns into the ready at cost 0.
23808 (schedule_block): Remove redundant initial sort. Give clock_var
23809 and can_issue_more to MD_SCHED_REORDER. Requeue if hazard cost
23811 * tm.texi (MD_SCHED_REORDER): Update docs.
23813 * sparc.h (MD_SCHED_REORDER): Update. Set CAN_ISSUE_MORE.
23814 * sparc.c (ultra_reorder_called_this_block): Delete.
23815 (ultrasparc_sched_init): Don't set it.
23816 (ultrasparc_sched_reorder): Don't check it.
23818 Tue Jul 20 17:07:54 1999 Richard Henderson <rth@cygnus.com>
23820 * rs6000.h (struct rs6000_args): Add sysv_gregno.
23821 * rs6000.c (init_cumulative_args): Init sysv_gregno.
23822 (function_arg_boundary): Align DFmode.
23823 (function_arg_advance): Restructure for ABI_V4; use sysv_gregno
23824 to get fp reg and stack overflow correct.
23825 (function_arg): Likewise.
23826 (function_arg_pass_by_reference): True for TFmode for ABI_V4.
23827 (setup_incoming_varargs): Restructure for ABI_V4; use
23828 function_arg_advance to skip final named argument.
23829 (expand_builtin_saveregs): Properly unskip the last integer arg
23830 when doing varargs. Adjust overflow location calculation.
23832 * ginclude/va-ppc.h (struct __va_list_tag): Make gpr and fpr
23833 explicitly unsigned.
23834 (__VA_FP_REGSAVE): Use new OFS argument instead of AP->fpr directly.
23835 (__VA_GP_REGSAVE): Similarly.
23836 (__va_longlong_p): Delete.
23837 (__va_arg_type_violation): New declaration.
23838 (va_arg): Restructure. Flag promotion errors. Align double.
23839 TFmode passed by reference.
23841 * rs6000.md (movdi_32+1): Use GEN_INT after arithmetic
23842 in the HOST_BITS_PER_WIDE_INT > 32 case.
23844 Tue Jul 20 12:37:30 1999 Hans-Peter Nilsson <hp@bitrange.com>
23846 * dwarf2out.c (output_abbrev_section): Terminate with a zero.
23848 Tue Jul 20 12:12:27 1999 Jason Merrill <jason@yorick.cygnus.com>
23850 * gcc.c (default_compilers, cpp-output): Pass -fpreprocessed.
23851 * toplev.c (documented_lang_options): Add -fpreprocessed.
23852 * cpplib.h (struct cpp_buffer): Add preprocessed.
23853 * cppinit.c (cpp_handle_option): Handle -fpreprocessed.
23854 (cpp_start_read): Don't expand macros or emit an initial #line
23855 directive if -fpreprocessed.
23857 Tue Jul 20 12:12:09 1999 Michael Tiemann <tiemann@holodeck.cygnus.com>
23859 * cpplib.h (struct cpp_buffer): Added manual_pop for
23860 better C++ tokenization.
23861 * cpplib.c (cpp_get_token): Return CPP_EOF if manual_pop.
23862 Also, support C++ tokenization for ->*, .*, <?, and >? operators.
23863 * c-common.c (cpp_token): Make non-static.
23865 Tue Jul 20 11:24:19 1999 Bernd Schmidt <bernds@cygnus.co.uk>
23867 * c-common.h: New file.
23868 * c-common.c (permanent_obstack): Delete unused declaration.
23869 (c_global_trees): New array.
23870 (c_common_nodes_and_builtins): New function; split off common code
23871 from init_decl_processing in both c-decl.c and cp/decl.c.
23872 * c-tree.h: Delete lots of declarations of tree nodes; replaced by
23873 c_global_trees and accessor macros defined in c-common.h.
23874 Include c-common.h.
23875 * c-decl.c: Delete definitions for tree nodes that were replaced by
23877 (init_decl_processing): Build void_list_node.
23878 Call c_common_nodes_and_builtins; delete code to generate the common
23880 * objc/objc-act.c (build_module_descriptor): Rename variable
23881 void_list_node to avoid clash with c-common.h.
23883 * Makefile.in: Update dependencies.
23884 * objc/Make-lang.in: Likewise.
23886 Mon Jul 19 14:22:18 1999 Mark P. Mitchell <mark@codesourcery.com>
23888 * config/mips/iris6gld.h (MAKE_DECL_ONE_ONLY): Define.
23889 (UNIQUE_SECTION_P): Likewise.
23890 (UNIQUE_SECTION): Likewise.
23892 1999-07-19 Linas Vepstas <linas@linas.org>
23894 * config/i370/README: New file.
23895 * config/i370/linux.h: New file.
23896 * config/i370/mvs.h: New file.
23897 * config/i370/oe.h: New file.
23898 * config/i370/t-linux: New file.
23899 * config/i370/t-mvs: New file.
23900 * config/i370/t-oe: New file.
23901 * config/i370/x-oe: New file.
23902 * config/i370/xm-linux.h: New file.
23903 * config/i370/xm-mvs.h: New file.
23904 * config/i370/xm-oe.h: New file.
23906 * i370.c (label_node_t): Add first_ref_page, label_addr,
23907 label_first_ref, label_last_ref members.
23908 (mvs_need_base_reload): Renamed from mvs_label_emitted.
23909 (MAX_MVS_LABEL_SIZE): Define.
23910 (MAX_LONG_LABEL_SIZE): Define.
23911 (alias_node_t, alias_anchor, alias_number): New.
23912 (mvs_function_table): Reorder for EBCDIC.
23913 (ascebc, ebcasc): Unconditionally define.
23914 (i370_branch_dest, i370_branch_length): New functions.
23915 (i370_short_branch, i370_label_scan): New functions.
23916 (mvs_get_label): Renamed from mvs_add_label. Search for
23917 an existing label before creating a new one.
23918 (mvs_add_label): New function.
23919 (mvs_get_label_page): New function.
23920 (mvs_free_label_list): Renamed from mvs_free_label. Iterate
23921 over the entire list.
23922 (mvs_check_page) [TARGET_HLASM]: Use BASR not BALR.
23923 (mvs_check_page) [TARGET_ELF_ABI]: New function.
23924 (mvs_add_alias, mvs_need_alias): New functions.
23925 (mvs_get_alias, mvs_check_alias): New functions.
23926 (handle_pragma): New function.
23927 (mvs_function_check): New function.
23928 (unsigned_jump_follows_p): Search harder.
23929 (i370_function_prolog) [TARGET_HLASM]: Handle LE370. Scan labels.
23930 (i370_function_prolog) [TARGET_ELF_ABI]: New function.
23931 * i370.h (TARGET_VERSION): Delete.
23932 (CPP_SPEC, CPP_PREDEFINES): Delete.
23933 (mvs_label_emitted): Delete.
23934 (TARGET_EBCDIC): Delete.
23935 (MAP_CHARACTER): Define only if TARGET_EBCDIC.
23936 (HANDLE_PRAGMA): Define.
23937 (HARD_REGNO_NREGS): Handle complex modes.
23938 (HARD_REGNO_MODE_OK): Likewise.
23939 (CLASS_MAX_NREGS): Likewise.
23940 (RET_REG): Likewise.
23941 (EXTRA_CONSTRAINT): Define.
23942 (RETURN_IN_MEMORY): True for DImode.
23943 (TRAMPOLINE_TEMPLATE): Use gen_rtx instead of GEN_INT.
23944 (FUNCTION_PROFILER): Delete.
23945 (COUNT_REGS): Fail if REG_P but not REG_OK_FOR_BASE_P.
23946 (NOTICE_UPDATE_CC): Correct handling of MULT, DIV, logicals and shifts.
23947 (TARGET_ESC, TARGET_BELL): Conditionally define for TARGET_EBCDIC.
23948 (TARGET_BS, TARGET_TAB, TARGET_NEWLINE): Likewise.
23949 (TARGET_VT, TARGET_FF, TARGET_CR): Likewise.
23950 (ASM_FILE_START): Add "RMODE ANY".
23951 (ASM_OUTPUT_EXTERNAL): Check for aliases.
23952 (ASM_GLOBALIZE_LABEL): Likewise.
23953 (ASM_OUTPUT_LABELREF): Likewise.
23954 (ASM_OUTPUT_COMMON): Likewise.
23955 (PRINT_OPERAND): Handle 'K', 'W', default.
23956 (PRINT_OPERAND_ADDRESS): New.
23957 (Lots of defines): Add support for TARGET_ELF_ABI.
23958 * i370.md (attr length): New. Define for all patterns.
23959 (*): Lots of tweeks to assembly output and constraints.
23961 Mon Jul 19 15:09:29 1999 David Edelsohn <edelsohn@gnu.org>
23963 * rs6000.md (arithmetic, logical, and shift Rc combiner patterns):
23964 Disable patterns performing SImode comparisons with SImode values
23965 if TARGET_POWERPC64 and instruction does not sign-extend or does
23966 not mask to narrower than SImode, i.e. where bit 31 and bit 63 may
23967 differ for signed quantities.
23968 (indirect_jump): Add expander to choose RTL based on TARGET_64BIT.
23969 (tablejump): Patterns contingent on TARGET_64BIT not TARGET_POWERPC64.
23970 (decrement_and_branch_on_count): Add 64-bit variant.
23972 Mon Jul 19 09:36:27 1999 Bernd Schmidt <bernds@cygnus.co.uk>
23974 * final.c (output_asm_insn): When searching for the matching string
23975 for a given dialect, don't run past the end of the list of
23976 alternatives if there are fewer alternatives in the template than
23979 1999-07-17 Alexandre Oliva <oliva@dcc.unicamp.br>
23981 * gcc.texi: Update e-mail addresses and URLs to gcc.gnu.org.
23982 Removed paragraph about compression of files and size limitation,
23983 duplicated in the FAQ. Use gcc-patches for posting patches.
23984 * gcc.c (main): Updated URL with bug reporting instructions to
23985 gcc.gnu.org. Removed e-mail address.
23986 * system.h (abort): Likewise.
23988 1999-07-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
23990 * Makefile.in (stmp-multilib-sub): Make the files extracted
23991 from $(LIBGCC1) writable.
23993 Sat Jul 17 14:25:46 1999 Nick Clifton <nickc@cygnus.com>
23995 * config/arm/aout.h: Reformat for improved readability.
23997 * config/arm/arm.h: Reformat for improved readability.
23998 Replace uses of fprintf with asm_fprintf where appropriate.
23999 (ARM_DECLARE_FUNCTION_NAME): New macro: Perform any generic ARM
24000 function declaration assembler actions.
24001 (NUM_INTS): New macro: Convert from bytes to words.
24002 (NUM_REGS): New macro: Compute number of registers required to
24003 hold a quanitity of tyep MODE.
24004 (NUM_REGS2): New macro: Like NUM_REGS but also copes with BLKmode
24006 (NUM_ARG_REGS): New macro: The number of argument registers
24008 (ARG_REGISTER): New macro: Compute the register number of the Nth
24010 (LAST_ARG_REGNUM): New macro: The number of the last argument
24012 (SP_REGNUM): New macro: Register number of the stack pointer.
24013 (FP_REGNUM): New macro: Register number of the frame pointer.
24014 (FUNCTION_ARG, FUNCTION_ARG_PARTIAL_NREGS, INIT_CUMULATIVE_AGS,
24015 FUNCTION_ARG_ADVANCE, SETUP_INCOMING_VARARGS): Change
24016 CUMULATIVE_ARGS so that it counts registers not bytes.
24018 * config/arm/arm.c: Rename TARGET_THUMB_INTERWORK to
24020 Replace uses of fprintf with asm_fprintf where appropriate.
24021 (output_ascii_pseudo_op): Replace with version from thumb.c
24023 * config/arm/coff.h (ASM_FILE_START): Emit ASM_APP_OFF.
24025 * config/arm/elf.h (CPP_PREDEFINES): Replace with
24026 SUBTARGET_CPP_SPEC.
24027 (ASM_DECLARE_FUNCTION_NAME): Use ARM_DECLARE_FUNCTION_NAME.
24028 (ASM_FILE_START): Emit ASM_APP_OFF.
24030 Fri Jul 16 13:48:09 1999 Jeffrey A Law (law@cygnus.com)
24032 * pa.c (compute_frame_size): Round frame according to
24033 STACK_BOUNDARY rather than a hardwired value.
24035 * pa.h (POINTER_SIZE, PARM_BOUNDARY): Define in terms of BITS_PER_WORD.
24037 * configure.in (hppa*-*-hpux11*): Use symbolic MASK_PA_11 instead
24039 * configure: Rebuilt.
24041 * configure.in (hppa*-*-linux*): New configuration.
24042 * configure: Rebuilt.
24043 * pa.h (MAX_OFILE_ALIGNMENT): Delete.
24044 * pa/som.h (MAX_OFILE_ALIGNMENT): Define.
24045 * pa/pa-linux.h: New file.
24046 * pa/t-linux: New file.
24047 * pa/xm-linux.h: New file.
24049 * pa.c (hppa_legitimize_address): Change references from SImode to
24050 either Pmode or word_mode as appropriate.
24051 (emit_move_sequence, store_reg, load_reg): Likewise.
24052 (set_reg_plus_d, hppa_expand_prologue): Likewise.
24053 (output_mul_insn): Likewise.
24054 * pa.h (PROMOTE_MODE): Likewise.
24055 (INITIALZE_TRAMPOLINE): Likewise.
24056 (Pmode): Define to word_mode.
24058 * pa.c (compute_frame_size): Use UNITS_PER_WORD instead of hardwired
24059 value of 4. Allocate 8 bytes for each FP register save.
24060 (hppa_expand_epilogue): Use UNITS_PER_WORD instead of harwarewired
24062 (hppa_expand_prologue): Likewise.
24063 * pa.h (PROMOTE_MODE): Likewise.
24064 (HARD_REGNO_MODE_OK, FUNCTION_ARG_SIZE): Likewise.
24065 (FUNCTION_ARG_BOUNDARY): Likewise.
24067 * invoke.texi (HPPA Options): Remove -mspace/-mno-space.
24069 * pa.c (out_of_line_prologue_epilogue): Delete.
24070 (override_options): Remove -mspace related code.
24071 (hppa_expand_prologue, hppa_expand_epilogue): Likewise.
24072 (compute_frame_size): Only allocate space for register that
24073 actually need to be saved.
24074 * pa.h (MASK_SPACE, TARGET_SPACE): Delete.
24075 (TARGET_SWITCHES): Remove -mspace, -mno-space
24076 * pa/t-pa (LIB2FUNCS_EXTRA): Remove ee.asm and ee_fp.asm
24077 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise. Remove -mspace multilib.
24078 * pa/ee.asm, pa/ee_fp.asm: Delete.
24080 * pa/elf.h (ASM_OUTPUT_DOUBLE_INT): Define.
24082 * config/svr4.h (CONST_SECTION_ASM_OP): Do not emit assembler
24083 directive in column zero.
24085 Fri Jul 16 01:39:57 1999 Jeffrey A Law (law@cygnus.com)
24087 * m68k.c (output_function_prologue): Fix computation of save mask
24088 when generating PIC code.
24090 Thu Jul 15 15:40:09 1999 Jim Wilson <wilson@cygnus.com>
24092 * tree.c (build_type_attribute_variant): Move current_obstack restore
24093 after build_qualified_type call.
24095 1999-07-15 Mark Mitchell <mark@codesourcery.com>
24097 * configure.in: Use t-iris6, even with GNU LD.
24098 * config/mips/iris6gld.h: Fix typo in linker spec.
24099 * config/mips/t-iris6gld: Remove.
24101 Thu Jul 15 15:15:43 1999 David Edelsohn <edelsohn@gnu.org>
24103 * rs6000.md (insv, extzv): Remove SImode dependence in named
24104 patterns. Explicitly generate DImode RTL if PowerPC64 and
24106 (insvdi): Reverse start and size in instruction template.
24108 1999-07-12 Joseph S. Myers <jsm28@cam.ac.uk>
24110 * invoke.texi: Typo fixes.
24112 Wed Jul 14 23:28:06 1999 Jeffrey A Law (law@cygnus.com)
24114 * emit-rtl.c (gen_realpart): Issue an error for cases GCC can not
24115 handle at this time instead of silently generating incorrect code.
24116 (gen_imagpart): Likewise.
24118 * reload.c (find_reloads): Emit a USE for a pseudo register without
24119 a hard register if we could not create an optional reload for the
24122 Wed Jul 14 23:45:48 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
24124 * c-typeck.c (output_init_element, process_init_element):
24125 When advancing constructor_unfilled_fields for a RECORD_TYPE,
24126 check for nameless bit fields.
24128 Wed Jul 14 01:57:39 1999 Richard Henderson <rth@cygnus.com>
24130 * regclass.c (scan_one_insn): Notice subregs that change the
24131 size of their operand.
24132 (record_reg_classes): Use that to obey CLASS_CANNOT_CHANGE_SIZE.
24134 Wed Jul 14 01:41:42 1999 Jeffrey A Law (law@cygnus.com)
24136 * configure.in (alpha*-*-*): Include alpha/t-ieee.
24137 * configure: Rebuilt.
24138 * alpha/t-ieee: New file.
24140 Tue Jul 13 10:45:58 1999 Jeffrey A Law (law@cygnus.com)
24142 * rs6000.c (find_addr_reg): Do not select r0 as an address
24145 Tue Jul 13 00:46:18 1999 Philippe De Muyter <phdm@macqel.be>
24147 * m68k/x-mot3300 (XCFLAGS): List of big files now includes `cse.o'.
24149 Mon Jul 12 14:29:15 1999 Jeffrey A Law (law@cygnus.com)
24151 * rs6000.md (movsf): Do not force easy FP constants into memory.
24153 * expr.c (expand_expr, case PLUS_EXPR): Pass constants through
24154 immed_double_const to ensure they are properly truncated then
24157 Mon Jul 12 10:40:01 1999 Vladimir Makarov <vmakarov@tofu.to.cygnus.com>
24159 * config/arm/thumb.c (thumb_reorg): Call replace_symbols_in_block
24160 always unless NO_DEBUG is used. Compile this code
24162 (replace_symbols_in_block): Compile it unconditionally.
24164 Sun Jul 11 12:32:32 1999 Jeffrey A Law (law@cygnus.com)
24166 * configure.in (i?86-*-elf*): New target.
24167 * configure: Rebuilt.
24168 * i386/i386elf.h, i386/t-i386elf: New files.
24170 Fri Jul 9 22:39:44 1999 Jason Merrill <jason@yorick.cygnus.com>
24172 * toplev.c (main): Don't complain about saying -gdwarf.
24173 (rest_of_compilation): Remove redundant code.
24175 Fri Jul 9 19:08:55 1999 Jim Wilson <wilson@cygnus.com>
24177 * unroll.c (unroll_loops): Don't delete named CODE_LABELs.
24179 Fri Jul 9 18:54:18 1999 Felix Lee <flee@cygnus.com>
24181 * config/i960/i960.c (ret_label): Change asm label from "LR:" to
24182 "Li960R:", to avoid name clash.
24184 Fri Jul 9 10:48:28 1999 Bernd Schmidt <bernds@cygnus.co.uk>
24186 * loop.c (check_dbra_loop): When reversing a loop, delete all
24187 REG_EQUAL notes referencing the reversed biv except those which are
24188 for a giv based on it.
24190 Fri Jul 9 03:51:52 1999 Jeffrey A Law (law@cygnus.com)
24192 * version.c: Drop "gcc-" prefix from version #.
24194 Thu Jul 8 18:06:30 1999 Jason Merrill <jason@yorick.cygnus.com>
24196 * dwarf2out.c (dwarf2out_line): Emit a line number comment after
24197 the label if we're being verbose.
24199 Thu Jul 8 14:18:46 1999 Richard Henderson <rth@cygnus.com>
24201 * m68k.c (output_function_prologue): Add pic register to mask
24202 if live and flag_pic.
24203 (output_function_epilogue): Likewise.
24205 Thu Jul 8 12:55:12 1999 Jeffrey A Law (law@cygnus.com)
24207 * dbxelf.h (ASM_OUTPUT_SOURCE_LINE): Do not put assembler
24208 directives in column zero.
24210 * pa/elf.h (ASM_FILE_START): Define.
24211 * pa/som.h (ASM_FILE_START): Include .level directives.
24212 * pa/hpux10.h (ASM_FILE_START): Delete.
24213 * pa/hpux11.h (ASM_FILE_START): Delete.
24215 * pa/elf.h (BSS_SECTION_ASM_OP): Use .section .bss.
24217 Thu Jul 8 18:03:19 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
24219 * reload1.c (choose_reload_regs): Never call remove_adress_replacements
24220 when reload_out equals reload_in.
24222 Thu Jul 8 16:50:14 1999 Nick Clifton <nickc@cygnus.com>
24224 * invoke.texi (Spec Files): New node: Describe the contents of
24227 Thu Jul 8 10:28:25 1999 Craig Burley <craig@jcb-sc.com>
24229 * invoke.texi (DEC Alpha Options): Put @end table at
24230 beginning of line, to avoid confusing texi2html.
24232 Thu Jul 8 09:22:06 1999 Nick Clifton <nickc@cygnus.com>
24234 * config/arm/elf.h (ASM_OUTPUT_INTERNAL_LABEL): Fixed typo
24235 introduced in previous delta.
24237 Wed Jul 7 02:00:04 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
24239 * reload1.c (gen_reload): When synthesizing a 3 operand add
24240 sequence, improve test for when to reload OP1 into the reload
24241 register instead of OP0.
24243 Wed Jul 7 01:38:03 1999 Jim Wilson <wilson@cygnus.com>
24245 * unroll.c (unroll_loop): Don't delete NOTE_INSN_DELETED_LABEL notes.
24247 1999-07-07 Manfred Hollstein <mhollstein@cygnus.com>
24249 * m88k/dguxbcs.h (CPP_SPEC): Add missing \ in multi-line
24252 Wed Jul 7 01:16:43 1999 Richard Henderson <rth@cygnus.com>
24254 * ginclude/varargs.h (__builtin_va_alist_t): New typedef.
24255 (va_dcl): Use __builtin_va_alist_t.
24257 Wed Jul 7 01:14:42 1999 Jason Merrill <jason@yorick.cygnus.com>
24259 * dwarf2out.c (gen_struct_or_union_type_die): Only remember types
24260 on the permanent_obstack.
24261 * dwarfout.c (output_type): Likewise.
24263 Tue Jul 6 15:25:32 1999 Gavin Romig-Koch <gavin@cygnus.com>
24265 * c-common.c (unsigned_type,signed_type,signed_or_unsigned_type) :
24266 Merged from c-typeck.c and cp/typeck.c.
24267 * c-typeck.c (unsigned_type,signed_type,signed_or_unsigned_type) :
24268 Merged into c-common.
24270 Tue Jul 6 13:06:01 1999 Dave Brolley <brolley@cygnus.com>
24272 * c-lex.c (errorcount): Declare it.
24273 (finish_parse): Update errorcount when using CPPLIB.
24275 1999-07-06 Bruce Korb <ddsinc09@ix.netcom.com>
24277 * fixinc/inclhack.def(end_else_label): Double the backslash so
24278 sed gets a chance to see it.
24279 * fixinc/inclhack.sh: regen
24280 * fixinc/fixincl.x: regen
24282 Fri Jul 2 18:49:51 1999 Nick Clifton <nickc@cygnus.com>
24284 Add framework to support armv5 architecture when it becomes
24287 * config/arm/arm.c (FL_ARCH5): New processor capability flag.
24288 (arm_arch5): New variable.
24289 (all_architectures): Add armv5 line.
24290 * config/arm/arm.h (CPP_CPU_ARCH_SPEC): Define __ARM_ARCH_5__ if
24291 -march=armv5 is specified on the command line.
24292 (arm_arch5): Export this variable.
24293 * invoke.texi: Document new string accepted by -march= switch for
24296 * config/arm/arm.h: Replace use of constant 12 as a register
24297 number with IP_REGNUM. Similarly 14 and LR_REGNUM.
24298 * config/arm/arm.c: Replace use of constant 12 as a register
24299 number with IP_REGNUM. Similarly 14 and LR_REGNUM.
24301 * config/arm/elf.h: Tidy up.
24302 * config/arm/coff.h: Tidy up.
24304 Thu Jul 1 19:08:13 1999 Mark P. Mitchell <mark@codesourcery.com>
24306 * gcc/configure.in (mips-sgi-irix6*): Handle --with-gnu-ld.
24307 * gcc/config/mips/t-iris6gld: New file.
24308 * gcc/config/mips/iris6gld.h: Likewise.
24310 Fri Jul 2 13:23:39 1999 Gavin Romig-Koch <gavin@cygnus.com>
24312 * c-decl.c (widest_integer_literal_type_node,
24313 widest_unsigned_literal_type) : New.
24314 (init_decl_processing): Handle/use the two new types.
24315 * c-common.c (type_for_size,type_for_mode) : Same.
24316 * c-lex.c (yylex) : Same.
24317 * c-typeck.c (unsigned_type,signed_type,signed_or_unsigned_type) :
24319 * c-tree.h (widest_integer_literal_type_node,
24320 widest_unsigned_literal_type) : New.
24322 Fri Jul 2 03:05:44 1999 Jeffrey A Law (law@cygnus.com)
24324 * dwarfout.c (field_byte_offset): Correctly compute the object's
24325 byte offset for the first bit of a field which crosses an alignment
24326 boundary on a !BYTES_BIG_ENDIAN target.
24328 Fri Jul 2 01:36:36 1999 Robert Lipe <robertlipe@usa.net>
24330 * fixinc.svr4: Fix <arpa/inet.h> by deleting protos for htons and
24333 Fri Jul 2 00:46:47 1999 Richard Henderson <rth@cygnus.com>
24334 Jeff Law <law@cygnus.com>
24336 * ginclude/varargs.h (va_dcl): Use word_mode for type of
24339 * except.c: Include intl.h.
24340 (expand_eh_return): Set current_function_cannot_inline.
24341 (save_eh_status, restore_eh_status): Twiddle eh_return_stub_label.
24342 * function.h (struct function): Add eh_return_stub_label.
24343 * flow.c (delete_unreachable_blocks): Don't merge across EH edges.
24344 * Makefile.in (except.o): Depend on intl.h.
24346 Fri Jul 2 00:04:23 1999 David Edelsohn <edelsohn@gnu.org>
24348 * rs6000.md (movdf_hardfloat32): Handle PRE_INC and PRE_DEC the
24349 same as offsettable in cases 1 and 2.
24351 Thu Jul 1 20:54:10 1999 Richard Henderson <rth@cygnus.com>
24353 * alpha.md (extqh): Define as 64-((R&7)*8) instead of 56-(((R-1)&7)*8).
24354 (extlh, extwh): Likewise.
24356 Thu Jul 1 11:05:25 1999 Gavin Romig-Koch <gavin@cygnus.com>
24358 * c-lex.c (yylex): Improve 'integer constant out of range' messages.
24360 Wed Jun 30 16:51:41 1999 Nick Clifton <nickc@cygnus.com>
24362 * configure.in: Add arm-pe and thumb-pe targets.
24363 * configure: Regenerate.
24365 * thumb.c (arm_naked_function_p): New function: Determines if
24366 a function is naked (has no gcc generated prologue/epilogue).
24367 (is_called_in_ARM_mode): Return true if the func has the
24368 interfacearm attribute.
24369 (output_return): Do not generate a return for naked functions.
24370 (thumb_function_prologue): Do not generate a prologue for
24372 (thumb_expand_prologue): Do not generate a prologue for naked
24374 (thumb_expand_epilogue): Do not generate an epilogue for naked
24376 (arm_valid_machine_decl_attribute): New function, copied from
24377 arm.c: Permit naked and interfacearm attributes.
24379 * config/arm/pe.c: New file: Support code for arm-pe target.
24380 * config/arm/pe.h: New file: Header file for arm-pe target.
24381 * config/arm/tpe.h: New file: Header file for thumb-pe target.
24382 * config/arm/t-thumb-pe: New file: Makefile fragment for
24385 1999-07-01 Mark Kettenis <kettenis@gnu.org>
24387 * config/i386/gnu.h (CPP_SPEC): Define __PIC__ and __pic__ if
24388 -fPIC or -fpic is specified.
24390 Wed Jun 30 03:31:54 1999 Jeffrey A Law (law@cygnus.com)
24392 * expr.c (emit_block_move): Use copy_to_mode_reg for
24393 !TARGET_MEM_FUNCTIONS case too.
24395 * configure.in (hppa*-*-*): Add som.h or elf.h to tm_file as
24397 * configure: Rebuilt.
24398 (hppa1.1-*-pro*, hppa1.1-*-rtems*): Define target_cpu_default.
24399 * pa.h: Include dbxelf.h. Delete various dbx/stabs related
24400 definitions made redundant by dbxelf.h inclusion. Delete
24401 lots of definitions related to assembly output that are
24402 specific to the SOM object format.
24403 * pa.c (output_function_prologue): Do not emit the function's
24405 * pa-pro-end.h (STARTFILE_SPEC): Undefine before redefining.
24406 * pa-pro.h: Deleted.
24407 * som.h: New file with SOM specific definitions.
24408 * elf.h: New file with ELF specific definitions.
24410 * elfos.h (const_section): Output a tab before assembler directives.
24411 (ctors_section, dtors_section): Likewise.
24412 (ASM_OUTPUT_SECTION_NAME): Likewise.
24414 * pa/pa1.h: Delete unused file.
24416 Tue Jun 29 01:37:53 1999 Jeffrey A Law (law@cygnus.com)
24418 * configure.in (hppa*-hp-hpux11*): New configuration.
24419 * configure: Rebuilt.
24420 * pa/pa-hpux11.h: New file.
24421 * pa.h (CPP_SPEC): Conditionally add -D__STDC_EXT__ to the cpp
24424 * mips.md (leasi, leadi): New patterns.
24426 * expr.c (emit_block_move): Properly handle case where one of the
24427 block move arguments has a queued increment or decrement.
24428 (clear_storage): Similarly. Fix formatting goof.
24430 1999-06-28 "David O'Brien" <obrien@NUXI.com>
24432 * fixinc/inclhack.def(stdio_va_list): This patch Removes a
24433 semicolon from the BSD VA_LIST replacement expression.
24435 * fixinc/inclhack.sh: regen
24436 * fixinc/fixincl.x: regen
24438 * fixinc/mkfixinc.sh: Have `i[34567]86-*-freebsd*' machines
24439 now use the fixincl program.
24441 Mon Jun 28 05:28:12 1999 Jeffrey A Law (law@cygnus.com)
24443 * m68k.h (CONDITIONAL_REGISTER_USAGE): Define for !SUN_FPA
24444 case. Also make the PIC register call_used.
24446 * m68k.h (FINALIZE_PIC): Delete.
24447 * m68k.c (finalize_pic): Delete.
24449 Mon Jun 28 05:16:35 1999 Richard Henderson <rth@cygnus.com>
24451 * m68k.h (PREFERRED_RELOAD_CLASS): Don't force any FP const_doubles
24454 Mon Jun 28 04:07:27 1999 David Edelsohn <edelsohn@gnu.org>
24456 * expmed.c (expand_divmod): Ensure unsigned value fits in reg_note.
24458 Sun Jun 27 02:39:08 1999 Richard Henderson <rth@cygnus.com>
24460 * jump.c (jump_optimize_1): Validate the cmov copy to a temporary.
24462 Sat Jun 26 17:18:18 1999 David Edelsohn <edelsohn@gnu.org>
24464 * rs6000.c (print_operand, case 'L'): Use plus_constant_for_output.
24466 Fri Jun 25 11:33:24 1999 Richard Henderson <rth@cygnus.com>
24468 * alpha.c (override_options): Add -mcpu=ev45 as an alias for ev4.
24470 Fri Jun 25 13:41:25 1999 David Edelsohn <edelsohn@gnu.org>
24472 * rs6000.c (output_toc): Always use hex values for floating-point
24473 constants. Store single-precision values in upper-half of TOC
24474 entry in 64-bit mode.
24475 * rs6000.md (floatsidf2, floatunssidf2): Add !TARGET_POWERPC64
24476 to final constraints.
24477 (fix_truncdfsi2 splitter): Change pattern matching fctiwz.
24478 (fctiwz): Improve accuracy of RTL for pattern.
24480 Fri Jun 25 11:26:38 1999 Gavin Romig-Koch <gavin@cygnus.com>
24482 * expr.c (expand_expr): Allow RTL_EXPR's through the
24483 MAX_INTEGER_COMPUTATION_MODE checks.
24485 Fri Jun 25 06:06:37 1999 Richard Henderson <rth@cygnus.com>
24487 * alpha.h (MASK_SUPPORT_ARCH, MASK_CPU_EV5, MASK_CPU_EV6): Define
24488 such that MASK_SUPPORT_ARCH is not negative.
24490 Fri Jun 25 05:35:44 1999 Jeffrey A Law (law@cygnus.com)
24492 * loop.c (verify_dominator): Properly handle ADDR_VEC and
24493 ADDR_DIFF_VEC insns that appear inside loops.
24495 Thu Jun 24 22:54:05 1999 David Edelsohn <edelsohn@gnu.org>
24496 Jeff Law <law@cygnus.com>
24498 * rs6000.md (movdf_hardfloat32): Revert previous patch.
24499 Handle LO_SUM the same as offsettable in cases 1 and 2.
24500 * rs6000.c (find_addr_reg): Revert previous patch.
24502 Thu Jun 24 22:43:12 1999 Philippe De Muyter <phdm@macqel.be>
24504 * system.h (strstr): New external function declaration.
24505 * acconfig.h (NEED_DECLARATION_STRSTR): New define slot.
24506 * configure.in (GCC_NEED_DECLARATIONS): Check for strstr.
24507 * config.in, configure: Rebuilt.
24509 1999-06-24 Tom Tromey <tromey@cygnus.com>
24511 * gcc.c (main): Read user-specified specs files after computing
24512 additional startfile_prefixes.
24514 Thu Jun 24 15:00:47 1999 Mark Mitchell <mark@codesourcery.com>
24516 Revert these two patches:
24518 Thu Jun 17 21:34:24 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
24519 * loop.c (strength_reduce): When doing biv->giv conversion, update
24520 reg note of NEXT->insn.
24522 Thu Jun 17 17:22:07 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
24523 * loop.c (strength_reduce): When doing biv->giv conversion, fix up
24525 (recombine_givs): Set ix field after sorting.
24527 Wed Jun 23 21:26:00 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
24529 * rtlanal.c (reg_referenced_p): Use reg_overlap_mentioned_p
24530 for the parts of an UNSPEC / UNSPEC_VOLATILE.
24532 1999-06-23 Bruce Korb <ddsinc09@ix.netcom.com>
24534 *fixinc/inclhack.def: Add fix development commentary
24535 (read_ret_type): reactivate and add selection clause
24536 (zzz_*): tweak output file name to match what is used in hackshell.tpl
24537 *fixinc/{fixincl.x|inclhack.sh}: regen
24539 Wed Jun 23 00:48:21 1999 Jason Merrill <jason@yorick.cygnus.com>
24541 * expr.c (expand_expr): STRIP_NOPS before checking against
24542 MAX_INTEGER_COMPUTATION_MODE
24543 (check_max_integer_computation_mode): Likewise.
24545 Tue Jun 22 20:23:43 1999 Jim Wilson <wilson@cygnus.com>
24547 * md.texi (smul@var{m}3_highpart): Add missing 's' prefix.
24549 1999-06-22 Jim Wilson <wilson@cygnus.com>
24551 * expr.c (store_expr): When target is a promoted subreg, return a
24552 promoted subreg as a result.
24554 Tue Jun 22 17:14:58 1999 Michael Meissner <meissner@cygnus.com>
24556 * dwarf2out.c (dwarf2out_frame_debug_expr): Reformat to match GNU
24558 (dwarf2out_define): Mark unused parameters appropriately.
24559 (gen_unspecified_parameters_die): Ditto.
24560 (gen_subprogram_die): Fix signed/unsigned warnings.
24561 (gen_variable_die): Ditto.
24563 1999-06-22 Bruce Korb <ddsinc09@ix.netcom.com>
24565 * fixinc/inclhack.def(end_else_label): combined else_label
24566 and endif_label and fixed the sed expression.
24567 *fixinc/{fixincl.x|inclhack.sh}: regen
24569 Tue Jun 22 01:58:18 1999 Jeffrey A Law (law@cygnus.com)
24571 * rs6000.md (movdf_hardfloat32): Use %X instead of always emitting
24572 'x' when handling non-offsettable addresses
24574 Tue Jun 22 00:20:05 1999 Richard Earnshaw (rearnsha@arm.com)
24576 * final.c (shorten_branches): Don't try to split an insn that has
24579 Mon Jun 21 12:47:39 1999 Mark Mitchell <mark@codesourcery.com>
24581 * config/mips/mips.c (symbolic_expression_p): New function.
24582 (mips_select_rtx_section): Put symbolic expressions in the
24583 data section, not the read-only data section.
24585 Mon Jun 21 22:13:06 1999 Jeffrey A Law (law@cygnus.com)
24587 * rs6000.md (find_addr_reg): Handle LO_SUM addresses.
24589 Mon Jun 21 20:10:42 1999 Richard Henderson <rth@cygnus.com>
24591 * collect2.c (main): Log frame table count.
24592 (GCC_OK_SYMBOL) [ECOFF]: Accept stGlobal.
24593 (scan_prog_file) [COFF]: Handle frame tables.
24595 * alpha/alpha.h (UNALIGNED_SHORT_ASM_OP): Define.
24596 (UNALIGNED_INT_ASM_OP, UNALIGNED_DOUBLE_INT_ASM_OP): Define.
24597 * alpha/elf.h: Undef them again.
24598 * alpha/vms.h: Remove their definitions.
24600 Tue Jun 22 03:17:53 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
24602 * sh.c (machine_dependent_reorg): When fixing up fp pcloads,
24603 remove the clobber of r0 and change the REG_UNUSED note to
24606 1999-06-21 Jakub Jelinek <jj@ultra.linux.cz>
24608 * real.c (ereal_from_double): Fix for 64-bit big endian hosts.
24609 * emit-rtl.c (gen_lowpart_common): Add case for hosts where double
24610 fits in HOST_WIDE_INT and one uses union to access a long constant
24613 Mon Jun 21 17:18:25 1999 Richard Henderson <rth@cygnus.com>
24615 * sparc.c (sparc_override_options): Don't allow profiling for
24616 code models other than medlow.
24617 (sparc_function_profiler): New function from old FUNCTION_PROFILER
24618 macro. Use ASM_GENERATE_INTERNAL_LABEL and MCOUNT_FUNCTION.
24619 (sparc_function_block_profiler): Likewise. Use user_label_prefix.
24620 (sparc_block_profiler): Likewise.
24621 (sparc_function_block_profiler_exit): Likewise.
24622 * sparc.h (FUNCTION_PROFILER): Call new sparc.c function.
24623 (FUNCTION_BLOCK_PROFILER): Likewise.
24624 (BLOCK_PROFILER): Likewise.
24625 (FUNCTION_BLOCK_PROFILER_EXIT): Likewise.
24626 (MCOUNT_FUNCTION): New.
24627 * sparc/pbd.h (FUNCTION_PROFILER): Delete.
24628 (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Delete.
24629 * sparc/sun4o3.h (FUNCTION_PROFILER): Delete.
24630 (MCOUNT_FUNCTION): New.
24631 * sparc/sysv4.h (FUNCTION_BLOCK_PROFILER): Delete.
24632 (BLOCK_PROFILER): Delete.
24633 (MCOUNT_FUNCTION): New.
24635 Mon Jun 21 14:11:29 1999 David Edelsohn <edelsohn@gnu.org>
24637 * rs6000.md (movdf_hardfloat32): Fix typo in case 2.
24639 Mon Jun 21 12:27:17 1999 Vladimir Makarov <vmakarov@tofu.to.cygnus.com>
24641 * config/mips/elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
24644 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
24647 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
24650 * config/arm/telf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
24653 Mon Jun 21 14:58:42 1999 Nick Clifton <nickc@cygnus.com>
24655 * config/arm/arm.h: Add cpp support for ARM920 and ARM920T cpu
24658 Mon Jun 21 06:22:21 1999 Mark Elbrecht <snowball3@bigfoot.com>
24660 * i386/djgpp.h (LIB_SPEC): New.
24661 (STARTFILE_SPEC): New.
24663 * i386/xm-djgpp.h (NO_SYS_SIGLIST): Deleted. Now obsolete.
24665 Mon Jun 21 06:19:33 1999 Philippe De Muyter <phdm@macqel.be>
24667 * fixinc/Makefile.in (gnu-regex.o): Do not define STDC_HEADERS in
24670 * system.h (WSTOPSIG): New macro.
24672 Mon Jun 21 05:33:15 1999 Mumit Khan <khan@xraylith.wisc.edu>
24674 * c-pragma.c (push_alignment): Don't ignore alignments greater than
24676 (insert_pack_attributes): Take into account member natural
24679 * i386/winnt.c (exports_head): New static variable.
24680 (i386_pe_record_exported_symbol): New function.
24681 (i386_pe_asm_file_end): Use.
24682 * i386/cygwin.h (ASM_OUTPUT_COMMON): Record the exported
24683 symbols to be emitted at end of assembly.
24684 (ASM_DECLARE_OBJECT_NAME): Likewise.
24685 (ASM_DECLARE_FUNCTION_NAME): Likewise.
24687 * i386/uwin.h (CPP_SPEC): Use -idirafter instead -iprefix and
24690 Mon Jun 21 04:44:31 1999 Jeffrey A Law (law@cygnus.com)
24692 * sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Fix paren error introduced
24695 Sun Jun 20 17:27:20 1999 Richard Henderson <rth@cygnus.com>
24697 * haifa-sched.c (sched_analyze_1): Use free_list instead of
24698 zapping reg_last_uses directly.
24699 (sched_analyze_2, sched_analyze_insn): Likewise.
24700 (sched_analyze): Likewise. Don't clear reg_last_uses on calls.
24702 Sun Jun 20 16:57:29 1999 David Edelsohn <edelsohn@gnu.org>
24704 * rs6000.md (movdf_hardfloat32): Use worst case insn length
24705 attributes for cases 1 and 2.
24707 Sat Jun 19 22:52:55 1999 Richard Henderson <rth@cygnus.com>
24709 * haifa-sched.c (sched_analyze): Mark call-user regs as clobbered
24712 Sat Jun 19 05:40:07 1999 Philip Blundell <pb@nexus.co.uk>
24714 * arm.c (arm_reload_in_hi): Invert sense of test on BYTES_BIG_ENDIAN.
24716 Sat Jun 19 05:25:05 1999 Richard Earnshaw (rearnsha@arm.com)
24718 * arm.h (CONDITIONAL_REGISTER_USAGE): If flag_pic, never use
24719 PIC_OFFSET_TABLE_REGNUM for general alloaction.
24720 (INITIAL_ELIMINATION_OFFSET): Count the fact that the PIC register
24721 must be stacked if it is used for PIC accesses.
24722 * arm.c (use_return_insn): Handle PIC register specially.
24723 (output_return_instruction): Likewise.
24724 (output_func_{prologue,epilogue}): Likewise.
24725 (output_expand_prologue): Likewise.
24727 * arm.md (*adddf_esfdf_df): Renamed from *adddf_df_esfdf.
24728 (*strsi_predec): Renamed from *strqi_predec.
24729 (*loadsi_shiftpreinc): Renamed from *loadqi_shiftpreinc.
24730 (*loadsi_shiftpredec): Renamed from *loadqi_shiftpredec.
24732 * arm.c (arm_override_options): Remove warning about PIC code
24733 not being supported.
24735 Fri Jun 18 23:47:06 1999 David Edelsohn <edelsohn@gnu.org>
24737 * rs6000.c (find_addr_reg): New function.
24738 * rs6000.h (find_addr_reg): Declare.
24739 (offsettable_addr_operand): Delete.
24740 * rs6000.md (movdf_hardfloat32): Handle non-offsettable loads
24741 from and stores to GPRs.
24743 Fri Jun 18 15:44:18 1999 Richard Henderson <rth@cygnus.com>
24745 * alpha.c (alpha_expand_block_move): Use get_insns rather than
24746 gen_sequence as argument to emit_no_conflict_block.
24748 Fri Jun 18 07:02 1999 Bruce Korb <ddsinc09@ix.netcom.com>
24750 * fixinc/mkfixinc.sh: enable the fixincl program for DG/UX
24751 * fixinc/inclhack.def(dgux_int_varargs): script must end with \n
24752 *fixinc/fixincl.x: regen
24753 *fixinc/inclhack.sh: regen
24755 Thu Jun 17 15:06:10 PDT 1999 Don Lindsay <dlindsay@cygnus.com>
24757 * added support for -mpcrel (PC relative addressing for m68k)
24758 based on code done by Michael Tiemann <tiemann@axon.cygnus.com>.
24759 * invoke.texi (m68000 options): Add documentation for -mpcrel flag.
24760 * m68k.c (print_operand_address): Handle 32-bit PIC case.
24761 (comments for general_src_operand): Add some explanation
24762 about EXTRA_CONSTRAINTS.
24763 (OVERRIDE_OPTIONS): Enable -fPIC in combination with -mpcrel.
24764 * m68kelf.h (OVERRIDE_OPTIONS): Ditto.
24765 (LEGITIMATE_PIC_OPERAND_P): Fix typo.
24766 (LEGITIMATE_PIC_OPERAND_P): Re-derive from m68k.h case.
24767 * m68k.h (LEGITIMATE_PIC_OPERAND_P): Fix delete-o.
24768 (INDIRECTABLE_1_ADDRESS): Delete spurious '/' at end of macro.
24769 (OVERRIDE_OPTIONS): Change behavior so that -mpcrel implies -fpic
24770 if not already set.
24771 (OVERRIDE_OPTIONS): Merge in changes from m68k.h.
24772 * m68k.h (TARGET_PCREL): New target flag.
24773 (TARGET_SWITCHES): Add "pcrel" as a recognized switch.
24774 (OVERRIDE_OPTIONS): Add checks for -mpcrel.
24775 (LEGITIMATE_PIC_OPERAND_P): Don't normally accept anything that
24776 contains a SYMBOL_REF. Relax this constraint during reload, since
24777 we want to use the predicates, not reload's built-in concept of a
24778 valid memory address, to control what insns need reloading.
24779 (EXTRA_CONSTRAINT): Define constraints to accept pc-relative
24780 operands (essentially 'g', 'm', and 's' under normal circumstances).
24781 * m68k.c (print_operand): Cause printing of pc-relative addresses
24782 to include pc register.
24783 (print_operand_address): Ditto.
24784 (general_src_operand): Accept operands that are not only
24785 general_operands, but are also valid when used as a pc-relative
24787 (nonimmediate_src_operand): Similar, for nonimmediate_operands.
24788 (memory_src_operand): Similar, for memory_operands.
24789 (pcrel_address): New predicate to accept the special case of a
24790 pc-relative address.
24791 * m68k.md (many patterns): Rewrite common SImode, HImode, and
24792 QImode insns to accept *_src_operand instead of *_operand where
24793 pc-relative operands can fit. For example, a pc-relative operand
24794 can be used as a memory source operand for addsi3, but not as a
24795 memory destination.
24796 * hp320.h linux.h m68kv4.h (LEGITIMATE_PIC_OPERAND_P) as in m68k.h.
24798 Fri Jun 18 09:11:07 1999 Nick Clifton <nickc@cygnus.com>
24800 * config/arm/telf.h (ASM_OUTPUT_DEF_FROM_DECLS): New Marco: USe
24801 .thumb_set pseudo op to mark aliases of thumb functions.
24803 Wed Jun 16 18:19:13 1999 Nick Clifton <nickc@cygnus.com>
24805 * varasm.c (assemble_alias): Use ASM_OUTPUT_DEF_FROM_DECLS in
24806 preference to ASM_OUTPUT_DEF, if it is defined.
24808 * tm.texi: Document new, optional target macro
24809 ASM_OUTPUT_DEF_FROM_DECLS.
24811 Thu Jun 17 15:07 1999 Bruce Korb <ddsinc09@ix.netcom.com>
24813 * fixincludes: ISCNTL patch
24814 * fixinc/inclhack.def (ioctl_fix_ctrl): Fix the definition of [_]*ISCTRL().
24815 (dgux_int_varargs): new for DG/UX
24816 * fixinc/{fixincl.x,inclhack.sh}: Regenerated.
24818 Thu Jun 17 21:34:24 1999 Jeff Law <law@cygnus.com>
24820 * invoke.texi (ia32 options): Fix typo.
24822 Thu Jun 17 21:34:24 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
24824 * loop.c (strength_reduce): When doing biv->giv conversion, update
24825 reg note of NEXT->insn.
24827 Thu Jun 17 14:25:08 1999 Jeffrey A Law (law@cygnus.com)
24829 * loop.c (move_movables): Note issues with replacing REGs with
24831 * mips.h (GO_IF_LEGITIMATE_ADDRESS): Handle SUBREGs properly.
24833 Thu Jun 17 13:28:30 1999 David O'Brien <obrien@FreeBSD.org>
24835 * i386/freebsd-elf.h (LINK_SPEC): Fix typo.
24837 * i386/freebsd-elf.h (FUNCTION_PROFILER): labels are not needed and
24838 the reference to `mcount' was not correct for the ELF on FreeBSD.
24840 Thu Jun 17 17:22:07 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
24842 * loop.c (strength_reduce): When doing biv->giv conversion, fix up
24845 (recombine_givs): Set ix field after sorting.
24847 Thu Jun 17 02:54:30 1999 Jeffrey A Law (law@cygnus.com)
24849 * emit-rtl.c (operand_subword): Tighten checks for when it is safe
24850 to safe to extract a subword out of a REG.
24852 Thu Jun 17 01:45:24 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
24854 * sh.md (mulsi3): Don't add a no-op move at the end.
24856 Wed Jun 16 20:29:00 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
24858 * cse.c (cse_insn): Don't put hard register source into tables for
24859 the last insn of a libcall.
24861 Wed Jun 16 19:44:33 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
24863 * loop.c (strength_reduce): Insert sets of derived givs at every
24864 biv increment, even if it's the only one.
24866 Wed Jun 16 10:33:02 1999 Jason Merrill <jason@yorick.cygnus.com>
24868 * dwarfout.c (add_incomplete_type): New fn.
24869 (output_type): Call it.
24870 (retry_incomplete_types): New fn.
24871 (dwarfout_finish): Call it.
24873 From Eric Raskin <ehr@listworks.com>:
24874 (output_type): Output types for bases.
24876 Tue Jun 15 12:51:23 1999 Alexandre Oliva <oliva@dcc.unicamp.br>
24878 * mips.c (mips_output_conditional_branch): Add `break'
24879 between `default' label and `close braces'.
24881 Tue Jun 15 01:55:20 1999 David O'Brien <obrien@FreeBSD.org>
24883 * i386/freebsd-elf.h (LINK_SPEC): clean up the linking library
24884 specifications and make it realistic.
24885 (LIB_SPEC): Likewise.
24887 Mon Jun 14 15:38:43 1999 Jim Wilson <wilson@cygnus.com>
24889 * config/mips/mips.c (mips_secondary_reload_class): Check for
24890 (PLUS (SP) (REG)) and return appropriate register class.
24891 * config/mips/mips.md (reload_insi): Delete predicate for operand 1.
24892 Handle (PLUS (SP) (REG)).
24893 (tablejump): In mips16 code, use emit_insn instead of emit_jump_insn.
24894 (tablejump_mips161, tablejump_mips162): Use emit_jump_insn instead
24895 of emit_insn for tablejump.
24897 Mon Jun 14 17:26:40 1999 David Edelsohn <edelsohn@gnu.org>
24899 * rs6000.c (output_prolog): RS6000_CALL_GLUE must be
24900 asm_fprintf format string by itself.
24901 (output_function_profiler): Likewise.
24903 Mon Jun 14 12:57:38 1999 David Mosberger <davidm@hpl.hp.com>
24905 * combine.c (simplify_logical, case AND): Only call
24906 simplify_and_const_int if the mode is no wider than HOST_WIDE_INT
24907 or the constant is positive.
24909 Mon Jun 14 11:43:41 1999 Nick Clifton <nickc@cygnus.com>
24911 * configure.in: Fix typo in rs6000-ibm-aix4 case.
24912 * configure: Regenerate.
24914 Mon Jun 14 03:55:40 1999 Jeffrey A Law (law@cygnus.com)
24916 * configure.in (rs6000-ibm-aix4.3*, powerpc-ibm-aix4.3*): Do not
24917 require a sub-version #.
24918 * configure: Rebuilt.
24920 1999-06-14 Robert Lipe (robertlipe@usa.net)
24922 * svr4.h (DWARF2_DEBUGGING_INFO): Check for redefinition.
24924 Mon Jun 14 10:30:52 BST 1999 Nathan Sidwell <nathan@acm.org>
24926 * c-typeck.c (process_init_element): Detect excess elements in
24927 char array initializer.
24929 1999-06-14 Andreas Jaeger <aj@arthur.rhein-neckar.de>
24931 * gcc.texi: Mention gcc 2.96 instead of egcs 1.00.
24933 Sat Jun 12 22:29:48 EDT 1999 Jerry Quinn <jquinn@nortelnetworks.com>
24935 * invoke.texi (Option Summary): Add -fpermissive flag.
24937 Sat Jun 12 03:40:42 1999 Jeffrey A Law (law@cygnus.com)
24939 * sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Do nothing with operands
24940 that require PIC code sequences.
24942 Wed Jun 9 16:29:01 1999 Nick Clifton <nickc@cygnus.com>
24944 * configure.in: Add new target: thumb-elf.
24945 * configure: Regenerate.
24946 * config/arm/t-thumb-elf: New file: Makefile fragment for
24948 * config/arm/telf.h: New file: Header file for thumb-elf
24951 Fri Jun 11 03:17:51 1999 Jeffrey A Law (law@cygnus.com)
24953 * Makefile.in (libgcc2): Pass MAYBE_USE_COLLECT2 as an argument.
24954 * libgcc2.c (__CTOR_LIST, __DTOR_LIST); Do not provide
24955 initializers is some circumstances.
24957 * fixinc/inclhack.def (endif_label): Add additional selector for
24958 more bogus stuff after #endif statements.
24959 * fixinc/inclhack.sh, fixinc/fixincl.x: Rebuilt.
24961 Thu Jun 10 20:44:36 1999 Mumit Khan <khan@xraylith.wisc.edu>
24963 * i386/cygwin.h (SET_ASM_OP): Define.
24965 Thu Jun 10 20:37:57 1999 Mumit Khan <khan@xraylith.wisc.edu>
24967 * reg-stack.c (stack_reg_life_analysis): Find all the RETURN insns.
24969 Thu Jun 10 19:23:00 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
24971 * sh.h (TARGET_HARWARD, TARGET_HARVARD): Changed the former to the
24974 * sh.md (ic_invalidate_line_i): Remove second alternative.
24976 Thu Jun 10 06:55 1999 Bruce Korb <ddsinc09@ix.netcom.com>
24978 *fixinc/inclhack.def(sun_auth_proto): We do not know how to
24979 test for the presence of valid prototypes. Delete bypass expr.
24980 (ioctl_fix_ctrl): Correct the selection expression.
24981 (no_double_slash): Correct quoting rules
24982 *fixinc/fixincl.x: regen
24983 *fixinc/inclhack.sh: regen
24985 Thu Jun 10 15:08:15 1999 Nick Clifton <nickc@cygnus.com>
24987 * config/arm/arm.c (struct all_cores): Add ARM920 and ARM920t.
24989 Wed Jun 9 15:57:57 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
24991 * rs6000.md (movsi_got_internal_mem): Delete.
24992 * rs6000.h (CONDITIONAL_REGISTER_USAGE): Mark PIC_OFFSET_TABLE_REGNUM.
24993 (GOT_TOC_REGNUM): Delete.
24994 (PIC_OFFSET_TABLE_REGNUM): Define.
24995 (FINALIZE_PIC): Disable.
24996 * rs6000.c (rs6000_got_register): New code for fixed pic register.
24997 (rs6000_replace_regno): Delete.
24998 (rs6000_finalize_pic): Likewise.
24999 (output_prolog): Handle PIC_OFFSET_TABLE_REGNUM.
25001 Wed Jun 9 19:44:26 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
25003 * loop.c (loop_insn_first_p): Don't compare LUIDs when P
25004 is a note; use <= for the compare; advance P while it is
25007 Wed Jun 9 13:12:24 1999 Jeffrey A Law (law@cygnus.com)
25009 * fixinc/inclhack.def (no_double_slash): Fix quoting for test.
25010 * fixinc/inclhack.sh, fixinc/fixincl.x, fixinc/fixincl.sh; Rebuilt.
25012 * varasm.c (remove_from_pending_weak_list): Verify t->name
25013 is non-NULL before passing it to strcmp.
25015 Wed Jun 9 06:50 1999 Bruce Korb <ddsinc09@ix.netcom.com>
25017 *fixinc/inclhack.def(sun_auth_proto): bypass the patch if
25018 the typed arguments are not part of a comment
25019 (ioctl_fix_ctrl): Added a purpose comment
25020 *fixinc/fixincl.x: regenerate
25021 *fixinc/inclhack.sh: regenerate
25023 Wed Jun 9 22:57:02 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
25025 * invoke.texi: Add C4x invocation docs.
25027 Wed Jun 9 22:34:38 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
25029 * config/c4x/c4x.h (TARGET_EXPOSE_LDP, LEGITIMIZE_RELOAD_ADDRESS):
25031 * config/c4x/c4x.c (c4x_emit_move_sequence, src_operand): Use
25033 (c4x_legitimize_reload_address): New function.
25034 * config/c4x/c4x.md: Update docs.
25036 Wed Jun 9 04:14:48 1999 Jeffrey A Law (law@cygnus.com)
25038 * fixincludes: Avoid removing '.'.
25039 * fixinc/fixinc.svr4: Likewise.
25040 * fixinc/fixinc.winnt: Likewise.
25041 * fixinc/inclhack.tpl: Likewise.
25042 * fixinc/fixincl.sh, fixinc/inclhack.sh: Rebuilt.
25044 1999-06-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
25046 * fixinc/inclhack.def (sun_catmacro): Escape parens in the select
25048 * fixinc/fixincl.x, fixinc/inclhack.sh: Rebuilt.
25050 Wed Jun 9 03:10:34 1999 Mumit Khan <khan@xraylith.wisc.edu>
25052 * c-pragma.c (handle_pragma_token): Handle `#pragma pack()'
25055 Tue Jun 8 13:06:15 1999 Jim Wilson <wilson@cygnus.com>
25057 * configure.in (rs6000-ibm-aix4.[12]*): Change rx6000 to rs6000.
25058 * configure: Regenerate.
25060 Tue Jun 8 05:47:48 1999 Richard Earnshaw (rearnsha@arm.com)
25062 * optabs.c (expand_cmplxdiv_wide): Use expand_abs to get the absolute
25065 Mon Jun 7 22:30:37 1999 Jeffrey A Law (law@cygnus.com)
25067 * fixinc/inclhack.def (avoid_bool): Also catch
25068 "typedef [unsigned] int bool".
25069 * fixinc/inclhack.sh, fixinc/fixincl.x, fixinc/fixincl.sh: Rebuilt.
25071 * m68k/x-hp3bsd44: Delete obsolete and incorrect file.
25072 * configure.in (m68k-hp-bsd4.4): No longer use x-hp3bsd44.
25073 * configure: Rebuilt.
25075 Mon Jun 7 22:05:03 1999 Mark Kettenis <kettenis@gnu.org>
25077 * config/i386/gnu.h: Include <gnu.h> right after <i386/linux.h>,
25078 such that we can override its definitions if necessary.
25079 (CPP_SPEC): New define. Support processor specific predefines via
25081 (CC1_SPEC): New define. Support processor specific compiler
25082 options via %(cc1_cpu).
25083 (STARTFILE_SPEC): New define. Use crt0.o instead of crt1.o for
25086 1999-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
25088 * fixinc/inclhack.def (math_gcc_ifndefs): Insert whitespace
25089 between sed's -e flag, and the open-quote following it.
25090 * fixinc/fixincl.x, fixinc/fixincl.sh: Rebuilt.
25092 Mon Jun 7 20:34:20 1999 Robert Lipe <robertlipe@usa.net>
25093 Jeffrey A Law (law@cygnus.com)
25095 * varasm.c (assemble_start_function): Remove the function
25096 from the pending weak decls list when we define a function.
25097 (assemble_variable): Similarly for variables.
25098 (weak_finish): Ignore items on the list with a NULL name.
25099 (remove_from_ending_weak_list); New function to "remove" an item
25100 from the pending weak declarations list.
25102 Mon Jun 7 19:27:07 1999 Jerry Quinn <jquinn@nortelnetworks.com>
25104 * pa.md (fmpyfadd, fmpynfadd, fnegabs): New patterns.
25106 Mon Jun 7 14:07:39 1999 Dave Brolley <brolley@cygnus.com>
25108 * c-lex.c (GETC): Redefine to call getch.
25109 (UNGETC): Redefine to call put_back.
25110 (putback_buffer): New structure type.
25111 (putback): New static structure.
25112 (getch): New function.
25113 (put_back): New function.
25114 (yylex): Replace unused bytes from bad multibyte character.
25116 Mon Jun 7 13:33:39 1999 Dave Brolley <brolley@cygnus.com>
25118 * cpplib.c (do_define): Cast `alloca' return value.
25119 (do_include, do_undef, do_pragma): Likewise.
25120 * cpphash.c (dump_definition): Cast `xstrdup' and `alloca' return
25122 * cppfiles.c (initialize_input_buffer): Cast `xmalloc' return values.
25123 * gcc/cppspec.c (lang_specific_driver): Cast xmalloc return value.
25125 Sun Jun 6 11:58:34 1999 Jakub Jelinek <jj@ultra.linux.cz>
25127 * sparc.md (abstf2): This should be an expand.
25128 (split after abstf2_notv9): Fix mode.
25129 (abstf2_hq_v9): New pattern.
25130 (abstf2_v9): Only use when no hard quad.
25131 (absdf2_v9): Fix if target is not the same as source.
25132 (ashrsi3_extend, ashrsi3_extend2, lshrsi3_extend, lshrsi3_extend2):
25133 Add correct output constraints.
25135 Sat Jun 5 17:04:16 1999 Craig Burley <craig@jcb-sc.com>
25137 From Dave Love to egcs-patches on 20 May 1999 17:38:38 +0100:
25138 * invoke.texi: Clarify text vis-a-vis Intel CPUs.
25140 Sat Jun 5 12:11:24 1999 Mark Mitchell <mark@codesourcery.com>
25142 * mips.h (mips_output_conditional_branch): New function.
25143 (mips_adjust_insn_length): Likewise.
25144 (ASSEMBLER_SCRATCH_REGNUM): New macro.
25145 (ADJUST_INSN_LENGTH): Likewise.
25146 * mips.c (print_operand): Add `F' and `W' for floating-point
25147 comparison opcodes.
25148 (machine_dependent_reorg): Adjust MIPS16 code; instruction-lengths
25150 (mips_adjust_insn_length): New function.
25151 (mips_output_conditional_branch): New function.
25152 * mips.md (length): Adjust attribute definition to handle
25153 conditional branches. Change lengths to bytes, rather than
25154 instructions throughout. Remove length attribute from
25155 instructions whose length is four bytes, and rely on the default
25157 (dslot): Fix typo in comment.
25158 Reword conditional branch patterns to use
25159 mips_output_conditional_branch.
25161 Fri Jun 4 13:30:27 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
25163 * alpha/osf.h (CPP_SUBTARGET_SPEC): Handle -threads.
25164 (LIB_SPEC): Likewise.
25165 Link with -lprof1_r for -g/-pg.
25167 1999-06-04 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
25169 * loop.c (check_dbra_loop): Fix change of Jan 19.
25171 Fri Jun 4 00:12:40 1999 Marc Espie <espie@cvs.openbsd.org>
25173 * freebsd-elf.h (SWITCH_TAKES_ARG): Redefine, not define.
25174 (STARTFILE_SPEC): Define, override the svr4.h version.
25175 (ENDFILE_SPEC): Likewise.
25177 Thu Jun 3 23:58:55 1999 Jeffrey A Law (law@cygnus.com)
25179 * fixinc/inclhack.def (limits_ifndefs): Also apply to sys/limits.h
25180 * fixinc/fixincl.x: Regenerated.
25181 * fixinc/inclhack.sh: Regenerated.
25183 Fri Jun 4 05:42:23 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
25185 * sh.c (barrier_align): Don't return early for normal branch/barrier
25186 when optimizing for SH2.
25188 Thu Jun 3 22:27:50 1999 Robert Lipe <robertlipe@usa.net>
25190 * i386/udk.h (LINK_SPEC): Correct linker search path for
25193 Fri Jun 4 03:20:40 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
25195 * sh.c (fixup_addr_diff_vecs): Emit braf reference label.
25196 (braf_label_ref_operand): Delete.
25197 * sh.h (PREDICATE_CODES): Remove braf_label_ref_operand.
25198 * sh.md (casesi_jump_2): Operand1 is now the inside of a
25199 label_ref, and has no predicate.
25200 The patten has a predicate to guard against invalid substitutions.
25201 (dummy_jump): Delete.
25202 (casesi): Update use of casesi_jump_2.
25204 Thu Jun 3 07:48 1999 Bruce Korb <ddsinc09@ix.netcom.com>
25206 *fixinc/inclhack.def(Io_Def_Quotes): corrected sed expression
25207 *fixinc/fixincl.x: regenerate
25208 *fixinc/inclhack.sh: regenerate
25210 Thu Jun 3 02:15:07 1999 Jason Merrill <jason@yorick.cygnus.com>
25212 * dwarf2out.c (add_incomplete_type): New fn.
25213 (gen_struct_or_union_type_die): Call it.
25214 (retry_incomplete_types): New fn.
25215 (dwarf2out_finish): Call it.
25217 Thu Jun 3 01:19:03 1999 Jeffrey A Law (law@cygnus.com)
25219 * gcse.c (insert_insn_end_bb): Correct placement of insns when the
25220 current block starts with a CODE_LABEL and ends with a CALL and
25221 we can not find all the argument setup instructions for the CALL.
25223 Wed Jun 2 15:44:15 1999 Mark Mitchell <mark@codesourcery.com>
25225 Revert this change:
25226 * fold-const.c (fold): STRIP_NOPS when deciding whether or not
25227 something is a candidate for optimize_bit_field_compare.
25229 Wed Jun 2 21:53:05 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
25231 * sh.h (CONST_OK_FOR_I, CONST_OK_FOR_L): Cast VALUE to HOST_WIDE_INT.
25233 Wed Jun 2 12:25:55 1999 Richard Henderson <rth@cygnus.com>
25235 * alpha.c (override_options): Thinko in last patch.
25237 * alpha/osf.h (CPP_SUBTARGET_SPEC): Define.
25238 (LIB_SPEC): Recognize -pthread.
25240 Wed Jun 2 08:42:55 1999 Nick Clifton <nickc@cygnus.com>
25242 * config/arm/tcoff.h (USER_LABEL_PREFIX): Synchronise with
25243 definition in config/arm/coff.h
25244 * config/arm/coff.h: Add comment about USER_LABEL_PREFIX.
25246 Wed Jun 2 07:07 1999 Bruce Korb <ddsinc09@ix.netcom.com>
25248 * fixinc/fixincl.c(global def): Add FD_SHELL_SCRIPT to mark
25249 fixes that need "file=xxx\n" prepended before invocation
25250 (start_fixer - new): starting the fixer process is complex enough
25251 to warrent its own routine. It prepends the "file=xxx\n" stuff.
25252 (process): uses the new routine; omit usage of putenv()
25253 * fixinc/fixincl.tpl: mark shell scripts with FD_SHELL_SCRIPT
25254 * fixinc/fixincl.x: regenerate
25256 Wed Jun 2 02:29:07 1999 Jeffrey A Law (law@cygnus.com)
25258 * README, configure.in, gcc.1, gcc.texi: Update name (egcs -> gcc)
25259 and version #s (1.1 -> 2.96) as needed.
25260 * README.g77: Kill way out of date file in the toplevel directory.
25262 Wed Jun 2 00:52:34 1999 David O'Brien <obrien@FreeBSD.org>
25264 * configure.in (i[34567]86-*-freebsdelf): Don't include linux.h,
25265 i386/freebsd-elf.h no longer requires it. Instead include svr4.h.
25266 * configure: Rebuilt.
25267 * i386/freebsd-elf.h (DEFAULT_VTABLE_THUNKS): Define.
25268 (ASM_COMMENT_START, ASM_APP_ON, ASM_APP_OFF, SET_ASM_OP): Likewise.
25269 (PREFERRED_DEBUGGING_TYPE, WCHAR_UNSIGNED): Likewise.
25270 (SWITCH_TAKES_ARG): Likewise.
25271 * i386/freebsd.h: Remove FREEBSD_NATIVE support.
25272 * config/t-freebsd: Moved from config/i386/ so it can used for all
25275 Mon May 31 02:22:55 1999 Philippe De Muyter <phdm@macqel.be>
25277 * m68k/x-mot3300 (XCFLAGS): Fixed to match stb.o, not f/stb.o.
25279 Wed Jun 2 00:08:34 1999 Robert Lipe <robertlipe@usa.net>
25281 * configure.in (i[34567]86-*-udk*): Install headers with cpio.
25282 * configure: Rebuilt.
25284 Tue Jun 1 19:06:22 1999 David Edelsohn <edelsohn@gnu.org>
25286 * rs6000/aix41.h (RS6000_CALL_GLUE): Define.
25287 * rs6000/aix43.h (RS6000_CALL_GLUE): Likewise.
25288 * rs6000/rs6000.c (rs6000_file_start): Use putc.
25289 (rs6000_output_load_toc_table): Same.
25290 (output_prolog, output_mi_thunk): Same.
25291 * rs6000/rs6000.h (SELECT_SECTION): Formatting.
25292 (ASM_GLOBALIZE_LABEL): Use putc.
25294 Mon May 31 15:23:23 1999 Richard Henderson <rth@cygnus.com>
25296 * alpha.md (reload_*_help): New patterns and splitters.
25297 (reload_*): Use them.
25298 (mov[qh]i): Likewise.
25300 Mon May 31 11:48:07 1999 Mark Mitchell <mark@codesourcery.com>
25302 * cccp.c (handle_directive): Handle backslash-newlines in quoted
25305 Mon May 31 09:36:11 1999 Cort Dougan <cort@cs.nmt.edu>
25307 * rs6000/linux.h (LINK_SPEC): Use emulation elf32ppclinux.
25309 Mon May 31 11:40:20 EDT 1999 John Wehle (john@feith.com)
25311 * flow.c (mark_regs_live_at_end, insn_dead_p,
25312 mark_set_1, mark_used_regs): Only give FRAME_POINTER_REGNUM
25313 and HARD_FRAME_POINTER_REGNUM special treatment if reload
25314 hasn't run or the frame pointer is needed.
25315 * haifa-sched.c (attach_deaths): Likewise.
25316 * sched.c (attach_deaths): Likewise.
25318 Mon May 31 00:46:17 1999 Jeffrey A Law (law@cygnus.com)
25320 * jump.c (jump_optimize_1): Only set CAN_REACH_END if
25321 calculate_can_reach_end returns nonzero.
25323 * configure.in (native gas tests): Search for an assembler in the
25324 same manner that the installed compiler will.
25325 * configure: Rebuilt.
25326 * tm.texi (MD_EXEC_PREFIX): Note need to update configure.in too.
25328 * alias.c (find_base_term): Improve handling of addresses
25329 constructed from binary operations.
25331 Sun May 30 14:29:17 1999 Eric Raskin (ehr@listworks.com)
25333 * dgux.h (STARTFILE_SPEC): Fix incorrectly matched curly-braces.
25335 Sun May 30 14:19:13 1999 Jeffrey A Law (law@cygnus.com)
25337 * function.h (cleanup_label, frame_offset): Declare.
25338 (tail_recursion_label, tail_recursion_reentry): Likewise.
25339 (arg_pointer_save_area, rtl_expr_chain): Likewise.
25340 * stmt.c (cleanup_label, frame_offset): Delete extern declarations.
25341 (tail_recursion_label, tail_recursion_reentry): Likewise.
25342 (arg_pointer_save_area, rtl_expr_chain): Likewise.
25344 Sat May 29 19:08:10 1999 Philip Blundell <philb@gnu.org>
25346 * config/arm/aout.h (ASM_OUTPUT_ALIGN): Only define if not already
25348 * config/arm/elf.h (ASM_OUTPUT_ALIGN): Define.
25349 (MAX_OFILE_ALIGNMENT): Define.
25351 Fri May 28 21:40 1999 Robert Lipe <robertlipe@usa.net>
25353 * fixincl.c: Replace local include scheme with #includes of
25354 gansidecl.h and system.h.
25355 * procopen.c: Likewise.
25356 * server.c: Likewise.
25358 Fri May 28 03:47:03 1999 Eric Raskin (ehr@listworks.com)
25360 * i386/t-dgux (EXTRA_PARTS): Add crti.o
25361 (crti.o): Add build rule and dependencies.
25362 * fixinc/fixinc.dgux: Use modified _int_varargs.h
25364 Fri May 28 03:41:02 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
25366 * rs6000/sysv4.h (CC1_SPEC): Add support for -profile
25367 (LIB_LINUX_SPEC): Likewise.
25368 (LIB_LINUX_SPEC): Add support for -pthread
25369 (CPP_OS_LINUX_SPEC): Likewise.
25370 (CPP_SYSV_SPEC): Avoid redefinitions if both -fpic and -fPIC are
25373 Thu May 27 13:04:52 1999 H.J. Lu (hjl@gnu.org)
25375 * i386.c (output_fp_cc0_set): Don't check the JUMP_INSN code for
25377 (notice_update_cc, output_float_compare): Enable TARGET_CMOVE support.
25378 (output_float_compare, output_fp_cc0_set): Fix the FLOAT comparison
25379 for IEEE math and CC_FCOMI.
25380 (put_jump_code): No IEEE if CC_FCOMI is set.
25382 1999-05-27 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
25384 * fold-const.c (fold_truthop): Make the field reference unsigned
25385 when converting a single bit compare.
25387 Thu May 27 02:40:48 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
25389 * loop.c (strength_reduce): Don't do biv->giv conversion on constants.
25391 Thu May 27 02:09:27 1999 Jeffrey A Law (law@cygnus.com)
25393 * varasm.c (STRIP_NAME_ENCODING): Remove default definition.
25394 * output.h (STRIP_NAME_ENCODING): Strip '*' like the old varasm
25397 * reload.c (push_reload): Do not call remove_address_replacements
25398 when presented with identical optional reloads.
25400 Wed May 26 14:18:05 1999 Richard Henderson <rth@cygnus.com>
25402 * alpha.h (MASK_FIX, TARGET_FIX): New.
25403 (MASK_*): Reorganize constants.
25404 (CPP_AM_FIX_SPEC): New.
25405 (TARGET_SWITCHES): Add FIX.
25406 (EXTRA_SPECS): Likewise.
25407 (CPP_CPU_EV6_SPEC): Use FIX, not CIX.
25408 (SECONDARY_MEMORY_NEEDED): Likewise.
25409 (REGISTER_MOVE_COST): Likewise.
25410 * alpha.c (override_options): Add FIX support. Always use
25411 ALPHA_TP_PROG for ev6.
25412 * alpha.md (sqrt and mov[sd]i patterns): Use FIX, not CIX.
25413 * alpha/elf.h (ASM_FILE_START): Look at FIX too.
25414 * configure.in (target_cpu_default2) [ev6]: Use FIX, not CIX.
25416 Wed May 26 09:53:05 1999 Mark Mitchell <mark@codesourcery.com>
25418 * fold-const.c (fold): STRIP_NOPS when deciding whether or not
25419 something is a candidate for optimize_bit_field_compare.
25421 Wed May 26 09:40:02 1999 Mark Mitchell <mark@codesourcery.com>
25423 * gcc.texi (Passes): Document branch-shortening.
25424 * invoke.texi (Debugging Options): Document the fact that `-dp'
25425 outputs length information for instructions.
25427 Wed May 26 08:49:31 1999 Nick Clifton <nickc@cygnus.com>
25429 * flow.c: Revert previous delta.
25431 Wed May 26 06:05:10 1999 Nick Clifton <nickc@cygnus.com>
25433 * flow.c (insn_dead_p): Check against frame_pointer_rtx not
25434 FRAME_POINTER_REGNUM.
25435 (mark_set_1): Ditto.
25436 (mark_used_regs): Ditto.
25438 Wed May 26 02:19:31 1999 Philip Blundell <pb@nexus.co.uk>
25440 * arm.h (NEED_PLT_GOT): Fix mistake in last change.
25441 (GOT_PCREL): New macro. Define to 1 if not already defined.
25442 * arm/elf.h (GOT_PCREL): Define to 0.
25443 * arm.c (arm_finalize_pic): Take into account the setting of
25446 Tue May 25 14:06:06 1999 Jeffrey A Law (law@cygnus.com)
25448 * output.h (STRIP_NAME_ENCODING): Provide default definition.
25449 * dwarf2out.c (ASM_NAME_TO_STRING): Use STRIP_NAME_ENCODING.
25451 * flow.c (mark_set_1): Do not record BLKmode stores as dead
25452 store elimination candidates.
25454 Tue May 25 08:55:57 1999 Gavin Romig-Koch <gavin@cygnus.com>
25456 * config/mips/mips.h (ASM_OUTPUT_DOUBLE_INT) : Use 'dword' if
25459 Mon May 24 20:30:08 1999 Jim Wilson <wilson@cygnus.com>
25461 * configure.in (rs6000-ibm-aix4.[12]*): Delete use of aix41-gld.h.
25462 Add use of x-aix41-gld.
25464 Mon May 24 16:44:09 1999 Jakub Jelinek <jj@ultra.linux.cz>
25466 * sparc/linux64.h (ASM_OUTPUT_CONSTRUCTOR): Define.
25467 (ASM_OUTPUT_DESTRUCTOR): Define.
25469 Mon May 24 14:35:24 1999 Jeffrey A Law (law@cygnus.com)
25471 * loop.c (strength_reduce): Do not clear NOT_EVERY_ITERATION at the
25472 last CODE_LABEL in a loop if we have previously passed a jump
25473 to the top of the loop.
25475 Mon May 24 07:56:29 1999 Nick Clifton <nickc@cygnus.com>
25477 * config/arm/arm.h (OUTPUT_INT_ADDR_CONST): Fix blunder made when
25478 applying Philip's patch.
25480 Mon May 24 01:02:12 1999 Mark Mitchell <mark@codesourcery.com>
25482 * stmt.c (expand_end_bindings): Ignore any elements of VARS that
25485 Sun May 23 20:31:16 1999 Jeffrey A Law (law@cygnus.com)
25487 * loop.c (strength_reduce): Grow reg_single_usage as needed.
25489 Sun May 23 10:13:20 1999 David O'Brien <obrien@FreeBSD.org>
25491 * i386/freebsd-elf.h (LINK_SPEC): Change -static to -Bstatic.
25492 Also remove a useless comment.
25494 Sun May 23 10:05:23 1999 Jerry Quinn <jquinn@nortelnetworks.com>
25496 * pa.md (negdf2,negsf2): Use fneg instead of fsub on pa 2.0.
25498 Sat May 22 21:02:06 1999 David Edelsohn <edelsohn@gnu.org>
25500 * collect2.c (main): Only generate import or export file and add
25501 to link arguments if non-empty. Use xmalloc not alloca.
25502 (write_{export,import}_file): Delete.
25503 (write_aix_file): New function.
25504 (locatelib): Use xmalloc not malloc.
25505 (GCC_OK_SYMBOL): Do not check type if aix64.
25507 Sat May 22 09:35:51 1999 Philip Blundell <pb@nexus.co.uk>
25509 Based on patch by Scott Bambrough and Pat Beirne:
25510 * config/arm/arm.c (making_const_table): New variable.
25511 * config/arm/arm.h (making_const_table): Declare.
25512 (OUTPUT_INT_ADDR_CONST): Mark symbols as position independent if
25514 * config/arm/arm.md (consttable_4, consttable_8, consttable_end):
25515 Keep track of when we are building the constant table.
25517 Sat May 22 09:34:22 1999 Philip Blundell <pb@nexus.co.uk>
25519 * config/arm/arm.c (arm_override_options): Fix erroneous warning
25522 Sat May 22 09:06:33 1999 Nick Clifton <nickc@cygnus.com>
25524 * config/arm/arm.h (NEED_PLT_GOT): Only define if not already
25527 Sat May 22 07:17:05 1999 Nick Clifton <nickc@cygnus.com>
25529 * tm.texi (FUNCTION_ARG): Correct description of a stack element
25532 Sat May 22 01:27:49 1999 Mark Mitchell <mark@codesourcery.com>
25534 * expr.h (lang_expand_constant): Guard with #ifdef TREE_CODE.
25536 Fri May 21 21:19:02 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
25538 * rs6000.c (output_mi_thunk): Enable full support again.
25540 Fri May 21 20:09:52 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
25542 * sh.h (BRANCH_COST): Define.
25544 Thu May 20 10:00:42 1999 Stephen L Moshier <moshier@world.std.com>
25546 * Makefile.in (GCC_FOR_TARGET): Add -I$(build_tooldir)/include.
25548 Thu May 20 09:58:57 1999 Jan Hubicka <hubicka@freesoft.cz>
25550 * function.c (assign_stack_local): Align stack slot propertly.
25551 (assign_outer_stack_local): Likewise.
25553 Thu May 20 10:38:43 1999 Mark Mitchell <mark@codesourcery.com>
25555 * expr.h (lang_expand_constant): Declare.
25556 * toplev.c (lang_expand_constant): Define it.
25557 * varasm.c (output_constant): Use it.
25559 Thu May 20 11:28:53 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
25561 * optabs.c (expand_cmplxdiv_straight, expand_cmplxdiv_wide):
25562 Change function definitions to K&R style.
25564 Thu May 20 08:16:39 1999 Bruce Korb <ddsinc09@ix.netcom.com>
25566 * fixinc/fixincl.c: We must not ignore SIGCLD now.
25568 Thu May 20 07:06:39 1999 Alexandre Oliva <aoliva@acm.org>
25570 * fixinc/Makefile.in(gnu-regex.o): add $(INCLUDES) to compile options
25571 * fixinc/fixincl.c(wait_for_pid): K&R-ify arguments
25572 (several places): omit static initialization
25573 (process): use single fd, since only the read fd is used
25574 * fixinc/gnu-regex.c: define 'const' away, if not supported
25575 * fixinc/procopen.c(several places): omit static initialization
25576 * fixinc/server.c: define 'volitile' away, if not supported
25578 1999-05-20 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
25580 * config/dbxcoff.h (DBX_OUTPUT_MAIN_SOURCE_FILE_END): Use
25581 asm_fprintf and %L to generate the label name.
25582 * config/dbxelf.h (DBX_OUTPUT_MAIN_SOURCE_FILE_END): Likewise.
25583 (ASM_OUTPUT_SOURCE_LINE): Correct generation of internal labels.
25585 Thu May 20 01:40:55 1999 Jeffrey A Law (law@cygnus.com)
25587 * jump.c (can_reverse_comparison_p): Do not abort if the comparison
25588 insn for a conditional jump can not be found.
25590 Wed May 19 23:58:58 1999 Jeffrey A Law (law@cygnus.com)
25592 * mips.h (ENCODE_SECTION_INFO): Do not perform GP optimizations
25593 on variables in specific sections other than .sbss and .sdata.
25595 Wed May 19 03:56:56 1999 Mark Mitchell <mark@codesourcery.com>
25597 * stmt.c (expand_return): Call start_cleanup_deferral and
25598 end_cleanup_deferral around conditional code.
25600 Wed May 19 08:40:08 1999 Bruce Korb <ddsinc09@ix.netcom.com>
25602 * fixinc/fixincl.tpl: Avoid depending on ANSI C features for
25603 filename lists. Utilizes new "krstr" AutoGen function.
25604 * fixinc/fixincl.x: Rebuilt.
25606 Wed May 19 02:47:11 1999 Jan Hubicka (hubicka@freesoft.cz)
25608 * i386.c (output_float_compare): Avoid GNU-C extensions.
25610 Wed May 19 00:34:40 1999 Jeffrey A Law (law@cygnus.com)
25612 * version.c: Bump to distinguish mainline tree from the
25615 See ChangeLog.1 for earlier changes.