1 Sat Dec 12 23:39:10 1998 Jeffrey A Law (law@cygnus.com)
3 * i386/next.h (ASM_OUTPUT_ALIGN): Use 0x90 for fill character.
5 * rtlanal.c (multiple_sets): New function.
6 * rtl.h (multiple_sets): Declare it.
7 * local-alloc.c (wipe_dead_reg): Use it.
8 * global.c (global_conflicts): Likewise.
10 Sat Dec 12 22:13:02 1998 Mark Mitchell <mark@markmitchell.com>
12 * global.c (record_conflicts): Don't use an array of shorts to
13 store an array of ints.
14 (global_conflicts): Likewise.
16 Sat Dec 12 16:49:24 1998 Richard Henderson <rth@cygnus.com>
18 * alpha.c (alpha_expand_block_move): mode_for_size expects
19 bits, not bytes. Infer extra alignment from addressof.
21 1998-12-11 Michael Meissner <meissner@cygnus.com>
23 * rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Put small data in the
24 .sbss section, not .sdata.
26 1998-12-11 Manfred Hollstein <manfred@s-direktnet.de>
28 * cccp.c: Do not #include <sys/stat.h> here; this is already done
30 * collect2.c: Likewise.
35 * protoize.c: Likewise.
38 * cpplib.h (HOST_WIDE_INT): Get definition from "machmode.h"
39 and don't try to define it here.
40 * Makefile.in (cppmain.o): Depend on machmode.h.
42 (cpperror.o): Likewise.
44 (cppfiles.o): Likewise.
45 (cpphash.o): Likewise.
46 (cppalloc.o): Likewise.
47 (fix-header.o): Likewise.
48 (scan-decls.o): Likewise.
50 Fri Dec 11 11:02:49 1998 Stan Cox <scox@cygnus.com>
52 * sh.c (print_operand): lookup interrupt_handler attribute instead
53 of relying on static variable.
54 * (calc_live_regs): Likewise.
55 * (sh_pragma_insert_attributes): Create interrupt_handler
56 attribute if a pragma was specified
57 * (sh_valid_machine_decl_attribute): Don't set static flag.
58 * sh.h (PRAGMA_INSERT_ATTRIBUTES): New.
60 Fri Dec 11 12:56:07 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
62 * reload1.c (reload_combine): Use BASIC_BLOCK_LIVE_AT_START
63 to determine if a register is live at a jump destination.
64 Everything is dead at a BARRIER.
66 Thu Dec 10 16:02:06 1998 Jim Wilson <wilson@cygnus.com>
68 * cse.c (simplify_unary_operation): Sign-extend constants when
69 they have the most significant bit set for the target.
70 * real.c (endian): Sign-extend 32 bit output values on a 64 bit
72 * m32r/m32r.c (m32r_expand_prologue): Store pretend_size in
73 HOST_WIDE_INT temporary before negating it.
74 * m32r/m32r.md (movsi_insn+1): Use ~0xffff instead of 0xffff0000.
76 Thu Dec 10 15:05:59 1998 Dave Brolley <brolley@cygnus.com>
78 * objc/objc-act.c (lang_init_options): Enclose cpplib related code in
81 Thu Dec 10 13:39:46 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
83 * collect2.h: New header file for prototypes.
85 * Makefile.in (collect2.o, tlink.o): Depend on collect2.h.
87 * collect2.c: Include collect2.h.
90 Wed Dec 9 23:55:11 1998 Jeffrey A Law (law@cygnus.com)
92 * flow.c: Update some comments.
94 Wed Dec 9 15:29:26 1998 Dave Brolley <brolley@cygnus.com>
96 * objc/objc-act.c (cpp_initialized): Removed.
97 (lang_init_options): Initialize cpplib.
98 (lang_decode_option): Move initialization of cpplib to
100 * c-lang.c: (parse_options,parse_in): Added.
101 (lang_init_options): Initialized cpplib here.
102 * c-decl.c (parse_options,cpp_initialized): Removed.
103 (c_decode_option): Move initialization of cpplib to
106 Wed Dec 9 19:36:57 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
108 * reload1.c (reload_combine, reload_combine_note_store):
109 Make STORE_RUID always valid.
110 (reload_combine): Check if BASE is clobbered too early.
112 Wed Dec 9 09:53:58 1998 Nick Clifton <nickc@cygnus.com>
114 * reload.c (find_reloads): Display the insn that cannot be
117 Wed Dec 9 12:15:26 1998 Dave Brolley <brolley@cygnus.com>
119 * cccp.c (create_definition): Fix end of bufer logic.
121 Wed Dec 9 10:15:45 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
123 * except.c (duplicate_eh_handlers, rethrow_symbol_map): Function
124 pointer parameters changed to use the PARAMS() macro.
126 Wed Dec 9 09:12:40 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
128 * except.h (struct handler_info): Add handler_number field.
129 * except.c (gen_exception_label): EH labels no longer need to be
130 on the permanent obstack.
131 (get_new_handler): Set the label number field.
132 (output_exception_table_entry): Regenerate handler label reference
133 from the label number field.
134 (init_eh): Remove a blank line.
135 * integrate.c (get_label_from_map): Labels no longer need to be
136 on the permanent obstack.
138 Tue Dec 8 22:04:33 1998 Jim Wilson <wilson@cygnus.com>
140 * i960/i960.h (CONST_COSTS, case CONST_INT): Accept power2_operand
141 only when OUTER_CODE is SET.
143 Tue Dec 8 22:47:15 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
145 * loop.c (strength_reduce): If scan_start points to the loop exit
146 test, be wary of subversive use of gotos inside expression statements.
147 Don't set maybe_multiple for a backward jump that does not
148 include the label under consideration into its range.
149 * unroll.c (biv_total_increment): Make use of maybe_multiple field.
151 Tue Dec 8 22:33:18 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
153 * explow.c (plus_constant_wide): Don't immediately return with
154 result of recursive call.
156 Tue Dec 8 15:32:56 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
158 * eh-common.h (struct eh_context): Add table_index for rethrows.
160 * rtl.h (enum reg_note): Add REG_EH_REGION and REG_EH_RETHROW reg notes.
161 (SYMBOL_REF_NEED_ADJUST): New flag indicating symbol needs to be
162 processed when inlined or unrolled (ie duplicated in some way).
164 * rtl.c (reg_note_name): Add strings for new reg_note enums.
166 * expr.h (rethrow_libfunc): New library decl.
168 * optabs.c (rethrow_libfunc): Initialize.
170 * except.h (struct eh_entry): Add new field 'rethrow_label'.
171 (new_eh_region_entry): No longer exported from except.c.
172 (duplicate_handlers): Renamed to duplicate_eh_handlers and
174 (rethrow_symbol_map, rethrow_used): New exported functions.
175 (eh_region_from_symbol): New exported function.
177 * except.c (create_rethrow_ref): New function to create a single
178 SYMBOL_REF for a rethrow region.
179 (push_eh_entry): Initialize a rethrow ref.
180 (func_eh_entry): Add a rethrow_label field.
181 (new_eh_region_entry): Make static, and initialize the rethrow entry.
182 (duplicate_eh_handlers): Create a new region, and remap labels/symbols.
183 (eh_region_from_symbol): Find an EH region based on its rethrow symbol.
184 (rethrow_symbol_map): Given a label map, maps a rethrow symbol for
185 a region into an appropriate new symbol.
186 (rethrow_used): Indicate whether a rethrow symbol has been referenced.
187 (expand_eh_region_end): Don't issue jump around code for new-exceptions.
188 (end_catch_handler): Emit a barrier for new-exceptions since
189 control can never drop through the end of a catch block.
190 (expand_end_all_catch): new-exceptions never fall through a catch
192 (expand_rethrow): use __rethrow routine for new exceptions.
193 (output_exception_table_entry): Generate rethrow labels, if needed.
194 (output_exception_table): Generate start and end rethrow labels.
195 (init_eh): Create rethrow symbols for beginning and end of table.
196 (scan_region): Don't eliminate EH regions which are the targets of
199 * flow.c (make_edges): Add different edges for rethrow calls,
200 identified by having the REG_EH_RETHROW reg label.
201 (delete_unreachable_blocks): Don't delete regions markers which are
202 the target of a rethrow.
204 * integrate.c (save_for_inline_eh_labelmap): New callback routine to
205 allow save_for_inline_copying to call duplicate_eh_handlers.
206 (save_for_inline_copying): Call duplicate_eh_handlers instead of
207 exposing internal details of exception regions.
208 (copy_for_inline): Check if SYMBOL_REFs need adjustment.
209 (expand_inline_function_eh_labelmap): New callback routine to
210 allow expand_inline_function to call duplicate_eh_handlers.
211 (expand_inline_function): Call duplicate_eh_handlers instead of
212 exposing internal details of exception regions.
213 (copy_rtx_and_substitute): Adjust SYMBOL_REFS if SYMBOL_REF_NEED_ADJUST
216 * libgcc2.c (find_exception_handler): Generalize to enable it to
217 pick up processing where it left off last time for a rethrow.
218 (__unwinding_cleanup): New function. debug hook which is called before
219 unwinding when __throw finds there is nothing but cleanups left.
220 (throw_helper): Common parts of __throw extracted out for reuse.
221 (__throw): Common parts moved to throw_helper.
222 (__rethrow): New function for performing rethrows.
224 Tue Dec 8 13:11:04 1998 Jeffrey A Law (law@cygnus.com)
226 * reload1.c (current_function_decl): Tweak declaration.
228 Tue Dec 8 10:23:52 1998 Richard Henderson <rth@cygnus.com>
230 * c-decl.c (flag_isoc9x): Default off.
231 (c_decode_option): Kill -std=gnu, add -std=gnu89 and -std=gnu9x.
232 * cccp.c (print_help, main): Likewise.
233 * gcc.c (default_compilers): Update for -std=gnu*.
235 Tue Dec 8 01:14:46 1998 Jeffrey A Law (law@cygnus.com)
237 * Makefile.in (DEMANGLE_H): Change location to shared demangle.h.
238 * demangle.h: Deleted.
240 * reload1.c (current_function_decl): Declare.
242 Tue Dec 8 11:58:51 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
244 * cpplib.c (convert_string): Use `0x00ff', not `0x00ffU'.
246 Tue Dec 8 09:28:36 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
248 * dbxout.c: If USG is defined use gstab.h, even if HAVE_STAB_H is set.
250 1998-12-08 Ulrich Drepper <drepper@cygnus.com>
252 * configure.in: Test for availability of putc_unlocked, fputc_unlocked,
254 * configure: Rebuilt.
255 * system.h: If the *_unlocked functions are available use them
256 instead of the locked counterparts by defining macros.
257 * config.in: Regenerated.
259 Tue Dec 8 00:34:05 1998 Mike Stump <mrs@wrs.com>
261 * i386/bsd.h (ASM_FILE_START): Don't use dump_base_name, it is
262 wrong and should only be used for dump related things, not
263 debugging information, instead main_input_filename should be used.
264 Also, reuse output_file_directive if possible.
265 * i386/aix386ng.h (ASM_FILE_START): Likewise.
266 * i386/isc.h (ASM_FILE_START): Likewise.
267 * i386/win-nt.h (ASM_FILE_START): Likewise.
268 * i386/sun386.h (ASM_FILE_START): Likewise.
270 Mon Dec 7 23:56:28 1998 Robert Lipe <robertl@dgii.com>
272 * configure.in (mips*-*-linux*): Handle big and little endian
274 * configure: Rebuilt.
276 Mon Dec 7 23:14:51 1998 Mike Stump <mrs@wrs.com>
278 * emit-rtl.c: Fix typo.
280 Mon Dec 7 23:07:38 1998 Nathan Sidwell <nathan@acm.org>
282 * reload1.c (eliminate_regs): Don't do anything, if we're not
285 Mon Dec 7 15:27:09 1998 DJ Delorie <dj@cygnus.com>
287 * mips/mips.h (ENCODE_SECTION_INFO): Handle TARGET_EMBEDDED_DATA.
289 * mips/mips.c (mips_select_section): Add comment.
291 Mon Dec 7 17:55:06 1998 Mike Stump <mrs@wrs.com>
293 * cccp.c (ignore_escape_flag): Add support for \ as `natural'
294 characters in file names in #line to be consistent with #include
295 handling. We support escape prcessing in the # 1 "..." version of
296 the command. See also support in cp/lex.c.
297 (handle_directive): Likewise.
300 1998-12-07 Zack Weinberg <zack@rabi.phys.columbia.edu>
302 * cpplib.c (initialize_char_syntax): Use ISALPHA and ISALNUM
303 so it'll work on non-ASCII platforms. Always consider $ an
304 identifier character. Take no arguments.
305 (cpp_reader_init): Call initialize_char_syntax with no
307 (cpp_start_read): Don't call initialize_char_syntax again.
308 Clear is_idchar['$'] and is_idstart['$'] if not
309 opts->dollars_in_ident.
311 * cpplib.h (struct cpp_reader): Replace void *data element by
312 cpp_options *opts. Rearrange elements to make gdb printout
313 less annoying (put buffer stack at end).
314 (CPP_OPTIONS): Get rid of now-unnecessary cast.
316 * cppmain.c: s/data/opts/ when initializing cpp_reader
318 * c-decl.c: Likewise.
319 * objc/objc-act.c: Likewise.
320 * fix-header.c: Likewise.
322 1998-12-07 Zack Weinberg <zack@rabi.phys.columbia.edu>
324 * cpplib.h (struct cpp_buffer): Replace dir and dlen members
325 with a struct file_name_list pointer.
326 (struct cpp_reader): Add pointer to chain of `actual
327 directory' include searchpath entries.
328 (struct file_name_list): Add *alloc pointer for the sake of
329 the actual-directory chain.
331 Move definition of HOST_WIDE_INT here.
332 (cpp_parse_escape): Change prototype to match changes in
335 * cppfiles.c (actual_directory): New function.
336 (finclude): Use it to initialize the buffer's actual_dir
338 (find_include_file): We don't need to fix up max_include_len
341 * cpplib.c (do_include): Don't allocate a file_name_list on
342 the fly for current directory "" includes, use the one that's
343 been preallocated in pfile->buffer->actual_dir. Hoist out
344 duplicate code from the search_start selection logic.
345 (cpp_reader_init): Initialize pfile->actual_dirs.
347 Remove definition of HOST_WIDE_INT. Change calls
348 to cpp_parse_escape to match changes in cppexp.c (note
349 hardcoded MASK, which is safe since this is the source
352 * cppexp.c: Bring over changes to cpp_parse_escape from cccp.c
353 to handle wide character constants in #if directives. The
354 function now returns a HOST_WIDE_INT, and takes a third
355 argument which is a binary mask for all legal values (0x00ff
356 for 8-bit `char', 0xffff for 16-bit `wchar_t', etc.) Define
357 MAX_CHAR_TYPE_MASK and MAX_WCHAR_TYPE_MASK. Change callers of
358 cpp_parse_escape to match. [Fixes c-torture/execute/widechar-1.c]
360 Mon Dec 7 15:38:25 1998 Dave Brolley <brolley@cygnus.com>
362 * gcc.c (default_compilers): Fix typo in USE_CPPLIB spec for cc1.
364 Mon Dec 7 15:38:25 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
366 * c-aux-info.c (concat): Wrap function definition in !USE_CPPLIB.
367 * cppalloc.c: Move function `xcalloc' from cpplib.c to here.
368 * cpplib.c: Move function `xcalloc' from here to cppalloc.c.
370 Mon Dec 7 11:30:49 1998 Nick Clifton <nickc@cygnus.com>
372 * final.c (output_asm_name): Use tabs to seperate comments from
375 Include instruction lengths (if defined) in output.
377 Mon Dec 7 10:53:38 1998 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
379 * loop.c (check_dbra_loop): Fix initial_value and initial_equiv_value
380 in the loop_info structure.
382 Mon Dec 7 11:04:40 1998 Catherine Moore <clm@cygnus.com>
384 * configure.in: (arm*-*-ecos-elf): New target.
385 * configure: Regenerated.
386 * config/arm/elf.h (ASM_WEAKEN_LABEL): Define.
387 * config/arm/ecos-elf.h: New file.
388 * config/arm/unknown-elf.h (TARGET_VERSION): Check
391 Mon Dec 7 16:15:51 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
393 * sh.c (output_far_jump): Emit braf only for TARGET_SH2.
395 Sun Dec 6 04:19:45 PST 1998 Jeff Law (law@cygnus.com)
397 * version.c: Bump for snapshot.
399 Sun Dec 6 05:16:16 1998 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
401 * loop.c (check_dbra_loop): New argument loop_info. Update fields
404 Sun Dec 6 03:40:13 PST 1998 Jeff Law (law@cygnus.com)
406 * version.c: Bump for snapshot.
408 Sun Dec 6 07:49:29 1998 Alexandre Oliva <oliva@dcc.unicamp.br>
410 * gcc.texi (Bug Reporting): 40Kb is a soft limit, larger
411 compressed reports are ok and preferred over URLs
413 Sun Dec 6 07:45:33 1998 Alexandre Oliva <oliva@dcc.unicamp.br>
415 * invoke.texi (Warning Options): Soften the tone of -pedantic
417 Sun Dec 6 00:20:44 1998 H.J. Lu (hjl@gnu.org)
419 * print-rtl.c (print_rtx): Add prototype.
421 * unroll.c (iteration_info): Make it static.
423 Sun Dec 6 01:19:46 1998 Richard Henderson <rth@cygnus.com>
425 * alias.c (memrefs_conflict_p): A second ANDed address
426 disables the aligned address optimization.
428 Sat Dec 5 18:48:25 1998 Richard Henderson <rth@cygnus.com>
430 * alpha.c (alpha_emit_set_const_1): Fix parenthesis error
433 Sat Dec 5 15:14:52 1998 Jason Merrill <jason@yorick.cygnus.com>
435 * i960.h (BOOL_TYPE_SIZE): Define.
437 Sun Dec 6 00:28:16 1998 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
439 * config/c4x/c4x.c (valid_parallel_load_store): Flog functionality
440 from old valid_parallel_operands_4.
441 (valid_parallel_operands_4): Check that operands for 4 operand
442 parallel insns are valid, excluding load/store insns.
443 * config/c4x/c4x.h (valid_parallel_load_store): Add prototype.
444 * config/c4x/c4x.md (*movqf_parallel, *movqi_parallel): Use
445 valid_parallel_load_store instead of valid_parallel_operands_4.
446 (*absqf2_movqf_clobber, *floatqiqf2_movqf_clobber,
447 *negqf2_movqf_clobber, *absqi2_movqi_clobber,
448 *fixqfqi2_movqi_clobber, *negqi2_movqi_clobber,
449 *notqi_movqi_clobber): Use valid_parallel_operands_4.
450 (*subqf3_movqf_clobber, *ashlqi3_movqi_clobber,
451 *ashrqi3_movqi_clobber, *lshrqi3_movqi_clobber,
452 *subqi3_movqi_clobber): Use valid_parallel_operands_5.
454 Sat Dec 5 23:52:01 1998 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
456 * config/c4x/c4x.c (iteration_info): Delete extern.
458 Fri Dec 4 20:15:57 1998 Bernd Schmidt <crux@pool.informatik.rwth-aachen.de>
460 * tm.texi (SMALL_REGISTER_CLASSES): Make description match reality.
462 * final.c (cleanup_subreg_operands): Delete some unused code.
464 * recog.h (MAX_RECOG_ALTERNATIVES): New macro.
465 (struct insn_alternative): New structure definition.
466 (recog_op_alt): Declare variable.
467 (preprocess_constraints): Declare function.
468 * recog.c (recog_op_alt): New variable.
469 (extract_insn): Verify number of alternatives is in range.
470 (preprocess_constraints): New function.
471 * reg-stack.c: Include recog.h.
472 (constrain_asm_operands): Delete.
473 (get_asm_operand_lengths): Delete.
474 (get_asm_operand_n_inputs): New function.
475 (record_asm_reg_life): Delete OPERANDS, CONSTRAINTS, N_INPUTS and
476 N_OUTPUTS args. All callers changed.
477 Compute number of inputs and outputs here by calling
478 get_asm_operand_n_inputs.
479 Instead of constrain_asm_operands, call extract_insn,
480 constrain_operands and preprocess_constaints. Use information
481 computed by these functions throughout.
482 (record_reg_life): Delete code that is unused due to changes in
484 (subst_asm_stack_regs): Delete OPERANDS, OPERAND_LOC, CONSTRAINTS,
485 N_INPUTS and N_OUTPUTS args. All callers changed.
486 Similar changes as in record_asm_reg_life.
487 (subst_stack_regs): Move n_operands declaration into the if statement
489 Delete code that is unused due to changes in subst_asm_stack_regs.
490 * stmt.c (expand_asm_operands): Verify number of alternatives is in
492 * Makefile.in (reg-stack.o): Depend on recog.h.
494 Fri Dec 4 02:23:24 1998 Jeffrey A Law (law@cygnus.com)
496 * except.c (set_exception_version_code): Argument is an "int".
498 Fri Dec 4 01:29:28 1998 Jeffrey A Law (law@cygnus.com)
500 * configure.in (hppa2*-*-*): Handle like hppa1.1-*-* for now.
501 * configure: Rebuilt.
503 Fri Dec 4 01:29:28 1998 Robert Lipe <robertl@dgii.com>
505 * configure.in (mipsel-*-linux*): New target.
506 * mips/linux.h: New file, based on other Linux targets.
508 Thu Dec 3 11:19:50 1998 Mike Stump <mrs@wrs.com>
510 * gthr-vxworks.h (__ehdtor): Fix memory leak. The delete hook
511 runs in the context of the deleter, not the deletee, so we must
512 use taskVarGet to find the correct memory to free.
513 (__gthread_key_create): Initialize the task
514 variable subsystem so that the task variable is still active when
515 the delete hook is run.
517 1998-12-03 Joseph S. Myers <jsm28@cam.ac.uk>
519 * pdp11.h: Use optimize_size for space optimizations.
521 * pdp11.md: Likewise.
523 * pdp11.h (TARGET_40_PLUS): Fix typo.
525 Thu Dec 3 11:48:32 1998 Jeffrey A Law (law@cygnus.com)
527 * local-alloc.c (block_alloc): Slightly retune heuristic to widen
530 Thu Dec 3 22:30:18 1998 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
532 * alias.c (addr_side_effect_eval): New function.
533 (memrefs_conflict_p): Use it.
534 * rtl.h (addr_side_effect_eval): Prototype it.
536 1998-12-02 Joseph S. Myers <jsm28@cam.ac.uk>
538 * pdp11.md (extendsfdf2): Fix mode mismatch in SET.
540 Wed Dec 2 11:23:07 1998 Jim Wilson <wilson@cygnus.com>
542 * reload.c (find_reloads): When force const to memory, put result
543 in substed_operand not *recog_operand_loc.
545 1998-12-02 Ulrich Drepper <drepper@cygnus.com>
547 * c-lex.c: Fix indentation from last patch.
548 Remove trailing whitespace.
551 Wed Dec 2 10:11:12 1998 Jeffrey A Law (law@cygnus.com)
553 * flow.c (delete_block): Call set_last_insn after we have reset
554 NEXT_INSN (kept_tail).
556 Wed Dec 2 00:47:31 1998 Jeffrey A Law (law@cygnus.com)
558 * mips.md (trap_if): Use "$0" for the value zero.
560 Tue Dec 1 20:49:49 1998 Ulrich Drepper <drepper@cygnus.com>
561 Stephen L Moshier <moshier@world.std.com>
562 Richard Henderson <rth@cygnus.com>
564 * c-common.c (declare_function_name): Declare predefinied variable
567 * c-decl.c (flag_isoc9x): Set to 1 by default.
568 (c_decode_option): Handle -std= option. Remove -flang-isoc9x.
569 (grokdeclarator): Always emit warning about implicit int for ISO C 9x.
571 * c-parse.in: Allow constructors in ISO C 9x.
572 Rewrite designator list handling.
573 Allow [*] parameters.
574 Don't warn about comma at end of enum definition for ISO C 9x.
576 * cccp.c (c9x): New variable.
577 (rest_extension): New variable.
578 (print_help): Document new -std= option.
579 (main): Recognize -std= option. Set c9x appropriately.
580 (create_definition): Recognize ISO C 9x vararg macros.
582 * gcc.c (default_compilers): Adjust specs for -std options.
583 (option_map): Add --std.
584 (display_help): Document -std.
586 * toplev.c (documented_lang_options): Add -std and remove
589 * c-lex.c (yylex): Recognize hex FP constants and call REAL_VALUE_ATOF
590 or REAL_VALUE_HTOF based on base of the constants.
591 * fold-const.c (real_hex_to_f): New function. Replacement function
592 for hex FP conversion if REAL_ARITHMETIC is not defined.
593 * real.c (asctoeg): Add handling of hex FP constants.
594 * real.h: Define REAL_VALUE_HTOF if necessary using ereal_atof or
597 Tue Dec 1 16:45:49 1998 Stan Cox <scox@cygnus.com>
599 * mips.md (divmodsi4*, divmoddi4*, udivmodsi4*, udivmoddi4): Add
600 -mcheck-range-division/-mcheck-zero-division checking. Avoid as macro
601 expansion. Use hi/lo as destination register.
603 (divsi3*, divdi3*, modsi3*, moddi3*, udivsi3*, udivdi3*, umodsi3*,
604 umoddi3*): Add -mcheck-range-division/-mcheck-zero-division checking.
605 Avoid as macro expansion. Use hi/lo as destination register.
607 * mips.h (MASK_CHECK_RANGE_DIV): New.
608 (MASK_NO_CHECK_ZERO_DIV): New.
609 (ELIMINABLE_REGS): Added GP_REG_FIRST + 31.
610 (CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): Allow for getting
611 return address for leaf functions out of r31 to support
612 builtin_return_address.
614 Tue Dec 1 15:03:30 1998 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
616 * jump.c (jump_optimize): Call regs_set_between_p with PREV_INSN(x),
617 NEXT_INSN(x) to check insn x.
619 Tue Dec 1 15:20:44 1998 Jeffrey A Law (law@cygnus.com)
621 * flow.c (delete_block): Call set_last_insn if we end up deleting the
622 last insn in the rtl chain.
624 * reload1.c (reload): Do not set reload_completed or split insns
626 * toplev.c (rest_of_compilation): Set reload_completed after
627 reload returns. Split insns after reload_cse has run.
629 Tue Dec 1 11:55:04 1998 Richard Henderson <rth@cygnus.com>
631 * final.c (final_scan_insn): Abort if block_depth falls below 0.
633 Tue Dec 1 10:23:16 1998 Nick Clifton <nickc@cygnus.com>
635 * config/arm/t-arm-elf (LIBGCC2_CFLAGS): Define inhibit_libc.
637 Tue Dec 1 10:22:18 1998 Nick Clifton <nickc@cygnus.com>
639 * config/arm/unknown-elf.h (ASM_OUTPUT_DWARF2_ADDR_CONST): Remove
640 use of user-label_prefix.
642 Tue Dec 1 17:58:26 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
644 * reload1.c (emit_reload_insns): Clear spill_reg_store
645 when doing a new non-inherited reload from the same pseudo.
647 * local-alloc.c (function_invariant_p): New function.
648 (update_equiv_regs): Use function_invariant_p instead of CONSTANT_P
649 to decide if an equivalence should be recorded.
650 * reload1.c (num_eliminable_invariants): New static variable.
651 (reload): Set it. Use function_invariant_p instead of CONSTANT_P
652 to decide if an equivalence should be recorded.
654 (calculate_needs_all_insns): Skip insns that only set an equivalence.
655 Take num_eliminable_invariants into account when deciding
656 if register elimination should be done.
657 (reload_as_needed): Take num_eliminable_invariants into account
658 when deciding if register elimination should be done.
659 (eliminate_regs): Handle non-constant reg_equiv_constant.
660 * rtl.h (function_invariant_p): Declare.
662 Mon Nov 30 02:00:08 PST 1998 Jeff Law (law@cygnus.com)
664 * version.c: Bump for snapshot.
666 Mon Nov 30 00:42:59 PST 1998 Jeff Law (law@cygnus.com)
668 * version.c: Bump for snapshot.
670 Sun Nov 29 22:59:40 1998 Jason Merrill <jason@yorick.cygnus.com>
672 * except.c (add_new_handler): Complain about additional handlers
673 after one that catches everything.
675 Sat Nov 28 10:56:32 1998 Jeffrey A Law (law@cygnus.com)
677 * configure.in (alpha*-*-netbsd): Fix typo.
678 * configure: Rebuilt.
680 Fri Nov 27 12:28:56 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
682 * system.h: Include libiberty.h.
684 * c-aux-info.c: Remove prototypes for concat/concat3. Change
685 function `concat' from fixed parameters to variable parameters,
686 as is done in libiberty. All callers of concat/concat3
687 changed to use the new `concat' with variable args.
689 * cccp.c: Remove things made redundant by libiberty.h and/or
690 conform to libiberty standards.
692 * collect2.c: Likewise.
693 * config/1750a/1750a.h: Likewise.
694 * cppalloc.c: Likewise.
695 * cppexp.c: Likewise.
696 * cppfiles.c: Likewise.
697 * cpphash.c: Likewise.
698 * cpplib.c: Likewise.
699 * dyn-string.c: Likewise.
700 * fix-header.c: Likewise.
703 * genattr.c: Likewise.
704 * genattrtab.c: Likewise.
705 * gencheck.c: Likewise.
706 * gencodes.c: Likewise.
707 * genconfig.c: Likewise.
708 * genemit.c: Likewise.
709 * genextract.c: Likewise.
710 * genflags.c: Likewise.
711 * gengenrtl.c: Likewise.
712 * genopinit.c: Likewise.
713 * genoutput.c: Likewise.
714 * genpeep.c: Likewise.
715 * genrecog.c: Likewise.
716 * getpwd.c: Likewise.
717 * halfpic.c: Likewise.
719 * mips-tdump.c: Likewise. Wrap malloc/realloc/calloc prototypes
720 in NEED_DECLARATION_* macros.
722 * mips-tfile.c: Remove things made redundant by libiberty.h and/or
723 conform to libiberty standards.
724 (fatal): Fix const-ification of variable `format' in
725 !ANSI_PROTOTYPES case.
727 * prefix.c: Remove things made redundant by libiberty.h and/or
728 conform to libiberty standards.
730 * print-rtl.c: Rename variable `spaces' to `xspaces' to avoid
731 conflicting with function `spaces' from libiberty.
733 * profile.c: Remove things made redundant by libiberty.h and/or
734 conform to libiberty standards.
735 * protoize.c: Likewise.
739 * toplev.c: Likewise.
740 * toplev.h: Likewise.
743 Thu Nov 26 08:38:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
745 * cppfiles.c (simplify_pathname): Un-ANSI-fy function definition.
747 Thu Nov 26 23:45:37 1998 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
749 * README.C4X: Updated URLs.
750 * config/c4x/c4x.c (c4x_address_conflict): Fix typo.
751 (valid_parallel_operands_5): Remove unused variable.
753 Thu Nov 26 23:40:03 1998 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
755 * config/c4x/c4x.h (TARGET_DEFAULT): Fix typo.
757 1998-11-26 Manfred Hollstein <manfred@s-direktnet.de>
759 * Makefile.in (CONFIG_LANGUAGES): New macro taking all languages
760 which can be configured.
761 (LANGUAGES): Use $(CONFIG_LANGUAGES) instead of @all_languages@
762 (Makefile): Pass actual LANGUAGES through the environment when
764 (cstamp-h): Likewise.
765 (config.status): Likewise.
767 * configure.in (enable_languages): Add new configuration parameter
768 "--enable-languages=lang1,lang2,...".
769 (${srcdir}/*/config-lang.in): Change handling to configure only
770 those directories, that the user might have enabled; default to
771 "all" existing languages.
772 * configure: Regenerate.
774 Thu Nov 26 00:19:19 1998 Richard Henderson <rth@cygnus.com>
776 * rtlanal.c (regs_set_between_p): New function.
777 * rtl.h (regs_set_between_p): Prototype it.
778 * jump.c (jump_optimize): Use it instead of modified_between_p
781 Wed Nov 25 23:32:02 1998 Ian Dall <Ian.Dall@dsto.defence.gov.au>
782 Matthias Pfaller <leo@dachau.marco.de>
784 * invoke.texi (Option Summary, NS32K Options): add description
785 of NS32K specific options.
787 * ns32k.md (tstdf, cmpdf, movdf, truncdfsf2, fixdfqi2, fixdfhi2,
788 fixdfsi2, fixunsdfqi2, fixunsdfhi2, fixunsdfsi2, fix_truncdfqi2,
789 fix_truncdfhi2, fix_truncdfsi2, adddf3, subdf3, muldf3, divdf3,
790 negdf2, absdf2): Use l instead of f since the double class and
791 float class are no longer the same.
792 (cmpsi, truncsiqi2, truncsihi2, addsi3, subsi3, mulsi3, umulsidi3,
793 divsi3, modsi3, andsi3, iorsi3, xorsi3, negsi2, one_cmplsi2,
794 ashlsi3, ashlhi3, ashlqi3, rotlsi3, rotlhi3, rotlqi3, abssi2,...):
795 use "g" instead of "rmn" since LEGITIMATE_PIC_OPERAND has been
797 (cmpsi, cmphi, cmpqi): use general_operand instead of
798 non_immediate_operand. Removes erroneous assumption that can't
800 (movsf, movsi, movhi, movqi,...): New register numbering scheme.
801 (movsi, addsi3): Use NS32K_DISPLACEMENT_P instead of hard coded
803 (movstrsi, movstrsi1, movstrsi2): completely new block move
805 (...): Patterns to exploit multiply-add instructions.
806 (udivmodsi4, udivmodsi_internal4, udivmodhi4,
807 udivmoddihi4_internal, udivmodqi4, udivmoddiqi4_internal): new
808 patterns to exploit extended divide insns.
809 (udivsi3, udivhi3, udivqi3): remove since superceded by udivmodsi
812 * ns32k.h (FUNCTION_VALUE, LIBCALL_VALUE): Use f0 for complex
813 float return values as well as simple scalar floats.
814 (TARGET_32381, TARGET_MULT_ADD, TARGET_SWITCHES):
815 support new flag to denote 32381 fpu.
816 (OVERRIDE_OPTIONS): 32381 is a strict superset of 32081.
817 (CONDITIONAL_REGISTER_USAGE): disable extra 32381 registers if not
819 (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS, CALL_USED_REGISTERS,
820 REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES, OUTPUT_REGISTER_NAMES,
821 REG_ALLOC_ORDER, DBX_REGISTER_NUMBER, R0_REGNUM, F0_REGNUM,
822 L1_REGNUM, STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM,
823 LONG_FP_REGS_P, ARG_POINTER_REGNUM, reg_class, REG_CLASS_NAMES,
824 REG_CLASS_CONTENTS, SUBSET_P,REGNO_REG_CLASS,
825 REG_CLASS_FROM_LETTER, FUNCTION_PROLOGUE, FUNCTION_EPILOGUE,
826 REGNO_OK_FOR_INDEX_P, FP_REG_P, REG_OK_FOR_INDEX_P,
827 REG_OK_FOR_BASE_P, MEM_REG): new register scheme to include 32381
828 fpu registers and special register classes for new 32381
829 instructions dotf and polyf.
830 (MODES_TIEABLE_P): Allow all integer modes, notably DI and SI, to
832 (INCOMING_RETURN_ADDR_RTX, RETURN_ADDR_RTX,
833 INCOMING_FRAME_SP_OFFSET): New macros in case DWARF support is
835 (SMALL_REGISTER_CLASSES): Make dependant on -mmult-add option.
836 (MOVE_RATIO): Set to zero because of smart movstrsi implimentation.
837 (REGISTER_MOVE_COST): move code to register_move_cost function for
838 ease of coding and debugging.
839 (CLASS_LIKELY_SPILLED_P): Under new register scheme class
840 LONG_FLOAT_REGO is likely spilled but not caught by default
842 (CONSTANT_ADDRESS_P, CONSTANT_ADDRESS_NO_LABEL_P): use macro
843 instead of hard coded numbers in range check.
844 (ASM_OUTPUT_LABELREF_AS_INT): delete since unused.
845 (...): Add prototypes for functions in ns32k.c but disable because
846 of problems when ns32k.h is included in machine independant files.
848 * ns32k.c: include "system.h", "tree.h", "expr.h", "flags.h".
849 (ns32k_reg_class_contents, regcass_map, ns32k_out_reg_names,
850 hard_regno_mode_ok, secondary_reload_class,
851 print_operand, print_operand_address): new register scheme to
852 include 32381 fpu registers and special register classes for new
853 32381 instructions dotf and polyf.
854 (gen_indexed_expr): Make static to keep namespace clean.
855 (check_reg): remove since never called.
856 (move_tail, expand_block_move): helper functions for "movstrsi"
858 (register_move_cost): Helper function for REGISTER_MOVE_COST macro.
859 Increase cost of moves which go via memory.
860 * netbsd.h (TARGET_DEFAULT): Set (new) 32381 fpu flag.
861 (CPP_PREDEFINES): nolonger predefine "unix".
863 * ns32k.md (movsi, movsi, adddi3, subdi3, subsi3, subhi3, subqi3,...):
864 Remove erroneous %$. print_operand() can work out from the rtx is
865 an immediate prefix is required.
867 * ns32k.h (RETURN_POPS_ARGS, VALID_MACHINE_DECL_ATTRIBUTE,
868 VALID_MACHINE_TYPE_ATTRIBUTE, COMP_TYPE_ATTRIBUTES,
869 SET_DEFAULT_TYPE_ATTRIBUTES): Support for -mrtd calling
871 (LEGITIMATE_PIC_OPERAND_P, SYMBOLIC_CONST): Correct handling of
874 * ns32k.c (symbolic_reference_mentioned_p, print_operand):
875 Correct handling of pic operands.
876 (ns32k_valid_decl_attribute_p, ns32k_valid_type_attribute_p,
877 ns32k_comp_type_attributes, ns32k_return_pops_args): Support for
878 -mrtd calling convention.
880 Wed Nov 25 23:42:20 1998 Tom Tromey <tromey@cygnus.com>
882 * gcc.c (option_map): Recognize --output-class-directory.
884 Thu Nov 26 18:26:21 1998 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
886 * loop.h (precondition_loop_p): Added new mode argument.
887 * unroll.c (precondition_loop_p): Likewise.
888 (approx_final_value): Function deleted and subsumed
889 into loop_iterations.
890 (loop_find_equiv_value): New function.
891 (loop_iterations): Use loop_find_equiv_value to find increments
892 too large to be immediate constants. Also use it to find terms
893 common to initial and final iteration values that can be removed.
895 Thu Nov 26 18:05:04 1998 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
897 * loop.h (struct loop_info): Define new structure.
898 (precondition_loop_p): Added prototype.
899 (unroll_loop): Added new argument loop_info to prototype.
900 (final_biv_value, final_giv_value): Added new argument n_iterations
902 * loop.c (strength_reduce): Declare new structure loop_iteration_info
903 and new pointer loop_info.
904 (loop_n_iterations): Replace global variable by element in
906 (check_final_value): New argument n_iterations.
907 (insert_bct): New argument loop_info.
908 (loop_unroll_factor): Replace global array by element in
910 (loop_optimize): Remove code to allocate and initialise
911 loop_unroll_factor_array.
912 * unroll.c (precondition_loop_p): No longer static since
913 used by branch on count optimization.
914 (precondition_loop_p, unroll_loop): New argument loop_info.
915 (final_biv_value, final_giv_value, find_splittable_regs): New
916 argument n_iterations.
917 (loop_iteration_var, loop_initial_value, loop_increment,
918 loop_final_value, loop_comparison_code, loop_unroll_factor):
919 Replaced global variables by loop_info structure.
920 (loop_unroll_factor): Replace global array by element in
923 Thu Nov 26 17:49:29 1998 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
925 * loop.c (check_dbra_loop): Update JUMP_LABEL field of jump insn
928 * unroll.c (precondition_loop_p): Return loop_initial_value
929 for initial_value instead of loop_iteration_var.
931 Thu Nov 26 17:15:38 1998 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
933 * config/c4x/c4x.md: Fix minor formatting problems. Update docs.
934 (*b, *b_rev, *b_noov, *b_noov_rev, *db,
935 decrement_and_branch_until_zero, rptb_end): Use c4x_output_cbranch
936 to output the instruction sequences.
938 (rptb_top): Provide alternatives to use any register or memory
940 (rptb_end): Emit use of operands rather than assigning them
941 explicitly to the RS and RE registers.
943 Thu Nov 26 16:37:59 1998 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
945 * config/c4x/c4x.c (c4x_modified_between_p, c4x_mem_set_p,
946 c4x_mem_set_p, c4x_mem_modified_between_p, c4x_insn_moveable_p,
947 c4x_parallel_pack, c4x_parallel_find, c4x_update_info_reg,
948 c4x_update_info_regs, c4x_copy_insn_after, c4x_copy_insns_after,
949 c4x_merge_notes, c4x_parallel_process,
950 c4x_combine_parallel_independent, c4x_combine_parallel_dependent,
951 c4x_combine_parallel): Delete.
953 Thu Nov 26 15:16:05 1998 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
955 * config/c4x/c4x.c: (c4x_override_options): For compatibility
956 with old target options clear flag_branch_on_count_reg if
957 -mno-rptb specified and set flag_argument_alias is -mno-aliases
959 (c4x_output_cbranch): Handle a sequence of insns rather than a
961 (c4x_rptb_insert): Do not emit a RPTB insn if the RC register
962 has not been allocated as the loop counter.
963 (c4x_address_conflict): Do not allow two volatile memory references.
964 (valid_parallel_operands_4, valid_parallel_operands_5,
965 valid_parallel_operands_6): Reject pattern if the register destination
966 of the first set is used as part of an address in the second set.
968 Thu Nov 26 14:56:32 1998 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
970 * config/c4x/c4x.h (TARGET_DEFAULT): Add PARALEL_MPY_FLAG.
971 (TARGET_SMALL_REG_CLASS): Set to 0 so that SMALL_REGISTER_CLASSES
972 is no longer enabled if PARALLEL_MPY_FLAG set.
973 (HARD_REGNO_CALL_CLOBBERED): Add parentheses to remove ambiguity.
974 (REG_CLASS_CONTENTS): Add braces around initializers.
975 (HAVE_MULTIPLE_PACK): Define.
976 (ASM_OUTPUT_BYTE_FLOAT): Use %lf format specifier with
977 REAL_VALUE_TO_DECIMAL.
978 (ASM_OUTPUT_SHORT_FLOAT): Use %lf format specifier with
979 REAL_VALUE_TO_DECIMAL.
980 (ar0_reg_operand): Add prototype.
981 (ar0_mem_operand): Likewise.
982 (ar1_reg_operand): Likewise.
983 (ar1_mem_operand): Likewise.
984 (ar2_reg_operand): Likewise.
985 (ar2_mem_operand): Likewise.
986 (ar3_reg_operand): Likewise.
987 (ar3_mem_operand): Likewise.
988 (ar4_reg_operand): Likewise.
989 (ar4_mem_operand): Likewise.
990 (ar5_reg_operand): Likewise.
991 (ar5_mem_operand): Likewise.
992 (ar6_reg_operand): Likewise.
993 (ar6_mem_operand): Likewise.
994 (ar7_reg_operand): Likewise.
995 (ar7_mem_operand): Likewise.
996 (ir0_reg_operand): Likewise.
997 (ir0_mem_operand): Likewise.
998 (ir1_reg_operand): Likewise.
999 (ir1_mem_operand): Likewise.
1000 (group1_reg_operand): Likewise.
1001 (group1_mem_operand): Likewise.
1002 (ir1_reg_operand): Likewise.
1003 (arx_reg_operand): Likewise.
1004 (not_rc_reg): Likewise.
1005 (not_modify_reg): Likewise.
1006 (c4x_group1_reg_operand): Remove prototype.
1007 (c4x_group1_mem_operand): Likewise.
1008 (c4x_arx_reg_operand): Likewise.
1010 Wed Nov 25 19:02:55 1998 (Stephen L Moshier) <moshier@world.std.com>
1012 * emit-rtl.c (gen_lowpart_common): Remove earlier change.
1013 * real.c (make_nan): Make SIGN arg actually specify the sign bit.
1015 Thu Nov 26 14:12:05 1998 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
1017 * config/c4x/c4x.md (addqi3): Emit addqi3_noclobber pattern
1020 Wed Nov 25 22:05:28 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
1022 * config/sh/lib1funcs.asm (___udivsi3_i4): Don't switch to sz == 1
1023 unless FMOVD_WORKS is defined.
1025 Wed Nov 25 20:11:04 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
1027 * regclass.c (init_reg_sets): Move code that calculates tables
1028 dependent on reg_class_contents from here...
1029 (init_reg_sets_1): To here.
1031 Wed Nov 25 14:54:46 1998 Zack Weinberg <zack@rabi.phys.columbia.edu>
1033 * cpplib.h: Delete struct import_file. Add ihash element to
1034 struct cpp_buffer. Delete dont_repeat_files and
1035 import_hash_table elements from cpp_reader; change
1036 all_include_files to a hash table. Delete all foobar_include
1037 / last_foobar_include elements from struct cpp_options; put
1038 back four such: quote_include, bracket_include,
1039 system_include, after_include. Redo struct file_name_list
1040 completely. Add new structure type include_hash. Add
1041 prototypes for merge_include_chains and include_hash. Change
1042 prototypes for finclude, find_include_file, and
1043 append_include_chain to match changes below.
1045 * cppfiles.c (simplify_pathname, include_hash,
1046 remap_filename, merge_include_chains): New functions.
1047 (add_import, lookup_import, open_include_file): Removed.
1048 (INO_T_EQ): Define this (copied from cccp.c).
1049 (hack_vms_include_specification): Remove all calls and #if 0
1050 out the definition. It was being called incorrectly and at
1051 the wrong times. Until a VMSie can look at this, it's better
1052 to not pretend to support it.
1053 (append_include_chain): Change calling convention; now takes
1054 only one directory at a time, and sets up the data structure
1056 (redundant_include_p): Rewritten - this is now used for all
1057 include redundancy, whether by #ifndef, #import, or #pragma
1058 once. Looks up things in the include hash table.
1059 (file_cleanup): Decrement pfile->system_include_depth here if
1061 (find_include_file): Calling convention changed; now passes
1062 around a struct include_hash instead of 3 separate parameters.
1063 Guts ripped out and replaced with new include_hash mechanism.
1064 (finclude): Calling convention changed as for
1065 find_include_file. Error exits pulled out-of-line. Reformat.
1066 (safe_read): Return a long, not an int.
1067 (deps_output): Don't recurse.
1069 * cpplib.c (is_system_include): Deleted.
1070 (path_include): Fix up call to append_include_chain.
1071 (do_include): Fix up calls to find_include_file and finclude.
1072 Clean up dependency output a bit. Shorten obnoxiously lengthy
1073 #import warning message. Don't decrement
1074 pfile->system_include_depth here.
1075 (do_pragma): Understand the include_hash structure. Reformat.
1076 (do_endif): Correct handling of control macros. Understand
1078 (cpp_start_read): Fix up calls to finclude. Call
1079 merge_include_chains.
1080 (cpp_handle_option): Fix up calls to append_include_chain.
1081 Understand the four partial include chains.
1082 (cpp_finish): Add debugging code (#if 0-ed out) for the
1084 (cpp_cleanup): Free the include_hash, not the import hash and
1085 the all_include and dont_repeat lists which no longer exist.
1087 Wed Nov 25 11:26:19 1998 Jeffrey A Law (law@cygnus.com)
1089 * toplev.c (no_new_pseudos): Define.
1090 (rest_of_compilation): Set no_new_pseudos as needed.
1091 * emit-rtl.c (gen_reg_rtx): Abort if we try to create a new pseudo
1092 if no_new_pseudos is set.
1093 * rtl.h (no_new_pseudos): Declare it.
1094 * reload1.c (reload): Update comments.
1095 * md.texi: Corresponding changes.
1097 Wed Nov 25 11:26:17 1998 Bernd Schmidt <crux@pool.informatik.rwth-aachen.de>
1099 * reload1.c (reg_used_in_insn): Renamed from reg_used_by_pseudo.
1100 (choose_reload_regs): Rename it here as well. When computing it,
1101 also merge in used hardregs.
1103 1998-11-25 07:51 -0500 Zack Weinberg <zack@rabi.phys.columbia.edu>
1105 * gcc.c: Split out Objective-C specs to...
1106 * objc/lang-specs.h: here. (New file.) Make the specs cpplib
1109 * c-lex.c (init_parse): Always initialize the filename global.
1110 * objc/objc-act.c (lang_init): Always call check_newline at
1113 Wed Nov 25 00:48:29 1998 Graham <grahams@rcp.co.uk>
1115 * reload1.c (reload): Remove unused variable.
1116 (reload_reg_free_for_value_p): Add missing parameter definition.
1118 * jump.c (jump_optimize): Remove unused variable.
1120 Wed Nov 25 00:07:11 1998 Jeffrey A Law (law@cygnus.com)
1122 * Makefile.in (graph.o): Depend on $(RTL_H), not rtl.h.
1124 * cse.c (fold_rtx): Make autoincrement addressing mode tests be
1126 * expr.c (move_by_pieces): Similarly.
1127 (move_by_pieces_1, clear_by_pieces, clear_by_pieces_1): Similarly.
1128 * flow.c (find_auto_inc): Similarly.
1129 (try_pre_increment): Similarly.
1130 * loop.c (strength_reduce): Similarly.
1131 * regclass.c (auto_inc_dec_reg_p): Similarly.
1132 * regmove.c (try_auto_increment): Similarly.
1133 (fixup_match_1): Similarly.
1134 * rtl.h (HAVE_PRE_INCREMENT): Define if not already defined.
1135 (HAVE_PRE_DECREMENT): Similarly.
1136 (HAVE_POST_INCREMENT, HAVE_POST_DECREMENT): Similarly.
1137 * Corresponding changes to all target header files.
1138 * tm.texi: Update docs for autoinc addressing modes.
1140 Tue Nov 24 20:24:59 1998 Jim Wilson <wilson@cygnus.com>
1142 * configure.in (m68020-*-elf*, m68k-*-elf*): New targets.
1143 * configure: Rebuild.
1144 * config/elfos.h: New file.
1145 * config/m68k/m68020-elf.h, config/m68k/m68kelf.h,
1146 config/m68k/t-m68kelf: New file.
1148 Tue Nov 24 13:40:06 1998 Jeffrey A Law (law@cygnus.com)
1150 * Makefile.in (HOST_AR): Define.
1151 (HOST_AR_FLAGS, HOST_RANLIB, HOST_RANLIB_TEST): Similarly.
1152 (libcpp.a): Use the host tools explicitly.
1153 (STAGESTUFF): Add libcpp.a.
1155 Tue Nov 24 09:33:49 1998 Nick Clifton <nickc@cygnus.com>
1157 * config/m32r/m32r.md (movstrsi_internal): Describe changes made
1158 to source and destination registers.
1160 Mon Nov 23 20:28:02 1998 Mike Stump <mrs@wrs.com>
1162 * libgcc2.c (top_elt): Remove top_elt, it isn't thread safe.
1163 The strategy we now use is to pre allocate the top_elt along
1164 with the EH context so that each thread has its own top_elt.
1165 This is necessary as the dynmanic cleanup chain is used on the
1166 top element of the stack and each thread MUST have its own.
1167 (eh_context_static): Likewise.
1168 (new_eh_context): Likewise.
1169 (__sjthrow): Likewise.
1171 Mon Nov 23 20:25:03 1998 Jason Merrill <jason@yorick.cygnus.com>
1173 * i386/linux.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Wrap in do...while.
1174 * i386.md (prologue_get_pc): Remove unused variable.
1176 Mon Nov 23 17:05:40 1998 Geoffrey Noer <noer@cygnus.com>
1178 * i386/xm-cygwin.h: Rename cygwin_ path funcs back to cygwin32_.
1180 Mon Nov 23 16:40:00 1998 Ulrich Drepper <drepper@cygnus.com>
1182 * Makefile.in (OBJS): Add graph.o
1183 (graph.o): New dependency list.
1184 * flags.h: Declare dump_for_graph and define graph_dump_types type.
1185 * print-rtl.c (dump_for_graph): Define new variable.
1186 (print_rtx): Rewrite to allow use in graph dumping functions.
1187 * toplev.c: Declare print_rtl_graph_with_bb, clean_graph_dump_file,
1188 finish_graph_dump_file.
1189 Define graph_dump_format.
1190 (compile_file): If graph dumping is enabled also clear these files.
1191 Finish graph dump files.
1192 (rest_of_compilation): Also dump graph information if enabled.
1193 (main): Recognize -dv to enabled VCG based graph dumping.
1194 * graph.c: New file. Graph dumping functions.
1196 Mon Nov 23 16:39:04 1998 Richard Henderson <rth@cygnus.com>
1198 * configure.in: Look for <sys/stat.h>.
1199 * system.h: Include it before substitute S_ISREG definitions.
1201 Mon Nov 23 17:40:37 1998 Gavin Romig-Koch <gavin@cygnus.com>
1203 * config/mips/abi.h: Use ABI_O64, duplicating ABI_32 usage.
1204 * config/mips/iris6.h: Same.
1205 * config/mips/mips.md: Same.
1206 * config/mips/mips.c: Same; also add "-mabi=o64" option.
1207 * config/mips/mips.h: Same; also define ABI_O64.
1209 Mon Nov 23 17:02:27 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1211 * configure.in: Use AC_PREREQ(2.12.1).
1213 Mon Nov 23 10:16:38 1998 "Melissa O'Neill" <oneill@cs.sfu.ca>
1215 * cccp.c (S_ISREG, S_ISDIR): Delete defines.
1216 * cpplib.c, gcc.c: Likewise.
1217 * system.h (S_ISREG, S_ISDIR): Define if not already defined.
1219 Mon Nov 23 09:53:44 1998 Richard Henderson <rth@cygnus.com>
1221 * local-alloc.c (local_alloc): Use malloc not alloca for
1222 reg_qty, reg_offset, ref_next_in_qty.
1224 Mon Nov 23 16:46:46 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
1226 * caller-save.c (insert_one_insn): Initialize the live_before and
1227 live_after register sets.
1231 * config/sh/lib1funcs.asm (___movstr_i4_even, ___movstr_i4_odd): Define.
1232 (___movstrSI12_i4, ___sdivsi3_i4, ___udivsi3_i4): Define.
1233 * sh.c (reg_class_from_letter, regno_reg_class): Add DF_REGS.
1234 (fp_reg_names, assembler_dialect): New variables.
1235 (print_operand_address): Handle SUBREGs.
1236 (print_operand): Added 'o' case.
1237 Don't use adj_offsettable_operand on PRE_DEC / POST_INC.
1238 Name of FP registers depends on mode.
1239 (expand_block_move): Emit different code for SH4 hardware.
1240 (prepare_scc_operands): Use emit_sf_insn / emit_df_insn as appropriate.
1241 (from_compare): Likewise.
1242 (add_constant): New argument last_value. Changed all callers.
1243 (find_barrier): Don't try HImode load for FPUL_REG.
1244 (machine_dependent_reorg): Likewise.
1245 (sfunc_uses_reg): A CLOBBER cannot be the address register use.
1246 (gen_far_branch): Emit a barrier after the new jump.
1247 (barrier_align): Don't trust instruction lengths before
1249 (machine_dependent_reorg): Add support for FIRST_XD_REG .. LAST_XD_REG.
1250 Use auto-inc addressing for fp registers if doubles need to
1251 be loaded in two steps.
1252 Set sh_flag_remove_dead_before_cse.
1253 (push): Support for TARGET_FMOVD. Use gen_push_fpul for fpul.
1254 (pop): Support for TARGET_FMOVD. Use gen_pop_fpul for fpul.
1255 (calc_live_regs): Support for TARGET_FMOVD. Don't save FPSCR.
1256 Support for FIRST_XD_REG .. LAST_XD_REG.
1257 (sh_expand_prologue): Support for FIRST_XD_REG .. LAST_XD_REG.
1258 (sh_expand_epilogue): Likewise.
1259 (sh_builtin_saveregs): Use DFmode moves for fp regs on SH4.
1260 (initial_elimination_offset): Take TARGET_ALIGN_DOUBLE into account.
1261 (arith_reg_operand): FPUL_REG is OK for SH4.
1262 (fp_arith_reg_operand, fp_extended_operand) New functions.
1263 (tertiary_reload_operand, fpscr_operand): Likewise.
1264 (commutative_float_operator, noncommutative_float_operator): Likewise.
1265 (binary_float_operator, get_fpscr_rtx, emit_sf_insn): Likewise.
1266 (emit_df_insn, expand_sf_unop, expand_sf_binop): Likewise.
1267 (expand_df_unop, expand_df_binop, expand_fp_branch): Likewise.
1268 (emit_fpscr_use, mark_use, remove_dead_before_cse): Likewise.
1269 * sh.h (CPP_SPEC): Add support for -m4, m4-single, m4-single-only.
1270 (CONDITIONAL_REGISTER_USAGE): Likewise.
1271 (HARD_SH4_BIT, FPU_SINGLE_BIT, SH4_BIT, FMOVD_BIT): Define.
1272 (TARGET_CACHE32, TARGET_SUPERSCALAR, TARGET_HARWARD): Define.
1273 (TARGET_HARD_SH4, TARGET_FPU_SINGLE, TARGET_SH4, TARGET_FMOVD): Define.
1274 (target_flag): Add -m4, m4-single, m4-single-only, -mfmovd.
1275 (OPTIMIZATION_OPTIONS): If optimizing, set flag_omit_frame_pointer
1276 to -1 and sh_flag_remove_dead_before_cse to 1.
1277 (ASSEMBLER_DIALECT): Define to assembler_dialect.
1278 (assembler_dialect, fp_reg_names): Declare.
1279 (OVERRIDE_OPTIONS): Add code for TARGET_SH4.
1280 Hide names of registers that are not accessible.
1281 (CACHE_LOG): Take TARGET_CACHE32 into account.
1282 (LOOP_ALIGN): Take TARGET_HARWARD into account.
1283 (FIRST_XD_REG, LAST_XD_REG, FPSCR_REG): Define.
1284 (FIRST_PSEUDO_REGISTER: Now 49.
1285 (FIXED_REGISTERS, CALL_USED_REGISTERS): Include values for registers.
1286 (HARD_REGNO_NREGS): Special treatment of FIRST_XD_REG .. LAST_XD_REG.
1287 (HARD_REGNO_MODE_OK): Update.
1288 (enum reg_class): Add DF_REGS and FPSCR_REGS.
1289 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REG_ALLOC_ORDER): Likewise.
1290 (SECONDARY_OUTPUT_RELOAD_CLASS, SECONDARY_INPUT_RELOAD_CLASS): Update.
1291 (CLASS_CANNOT_CHANGE_SIZE, DEBUG_REGISTER_NAMES): Define.
1292 (NPARM_REGS): Eight floating point parameter registers on SH4.
1293 (BASE_RETURN_VALUE_REG): SH4 also passes double values
1294 in floating point registers.
1295 (GET_SH_ARG_CLASS) Likewise.
1296 Complex float types are also returned in float registers.
1297 (BASE_ARG_REG): Complex float types are also passes in float registers.
1298 (FUNCTION_VALUE): Change mode like PROMOTE_MODE does.
1299 (LIBCALL_VALUE): Remove trailing semicolon.
1300 (ROUND_REG): Round when double precision value is passed in floating
1302 (FUNCTION_ARG_ADVANCE): No change wanted for SH4 when things are
1303 passed on the stack.
1304 (FUNCTION_ARG): Little endian adjustment for SH4 SFmode.
1305 (FUNCTION_ARG_PARTIAL_NREGS): Zero for SH4.
1306 (TRAMPOLINE_ALIGNMENT): Take TARGET_HARWARD into account.
1307 (INITIALIZE_TRAMPOLINE): Emit ic_invalidate_line for TARGET_HARWARD.
1308 (MODE_DISP_OK_8): Not for SH4 DFmode.
1309 (GO_IF_LEGITIMATE_ADDRESS): No base reg + index reg for SH4 DFmode.
1310 Allow indexed addressing for PSImode after reload.
1311 (LEGITIMIZE_ADDRESS): Not for SH4 DFmode.
1312 (LEGITIMIZE_RELOAD_ADDRESS): Handle SH3E SFmode.
1313 Don't change SH4 DFmode nor PSImode RELOAD_FOR_INPUT_ADDRESS.
1314 (DOUBLE_TYPE_SIZE): 64 for SH4.
1315 (RTX_COSTS): Add PLUS case.
1316 Increae cost of ASHIFT, ASHIFTRT, LSHIFTRT case.
1317 (REGISTER_MOVE_COST): Add handling of R0_REGS, FPUL_REGS, T_REGS,
1318 MAC_REGS, PR_REGS, DF_REGS.
1319 (REGISTER_NAMES): Use fp_reg_names.
1320 (enum processor_type): Add PROCESSOR_SH4.
1321 (sh_flag_remove_dead_before_cse): Declare.
1322 (rtx_equal_function_value_matters, fpscr_rtx, get_fpscr_rtx): Declare.
1323 (PREDICATE_CODES): Add binary_float_operator,
1324 commutative_float_operator, fp_arith_reg_operand, fp_extended_operand,
1325 fpscr_operand, noncommutative_float_operator.
1326 (ADJUST_COST): Use different scale for TARGET_SUPERSCALAR.
1327 (SH_DYNAMIC_SHIFT_COST): Cheaper for SH4.
1328 * sh.md (attribute cpu): Add value sh4.
1329 (attrbutes fmovd, issues): Define.
1330 (attribute type): Add values dfp_arith, dfp_cmp, dfp_conv, dfdiv.
1331 (function units memory, int, mpy, fp): Make dependent on issue rate.
1332 (function units issue, single_issue, load_si, load): Define.
1333 (function units load_store, fdiv, gp_fpul): Define.
1334 (attribute hit_stack): Provide proper default.
1335 (use_sfunc_addr+1, udivsi3): Predicated on ! TARGET_SH4.
1336 (udivsi3_i4, udivsi3_i4_single, divsi3_i4, divsi3_i4_single): New insns.
1337 (udivsi3, divsi3): Emit special patterns for SH4 hardware,
1338 (mulsi3_call): Now uses match_operand for function address.
1339 (mulsi3): Also emit code for SH1 case. Wrap result in REG_LIBCALL /
1341 (push, pop, push_e, pop_e): Now define_expands.
1342 (push_fpul, push_4, pop_fpul, pop_4, ic_invalidate_line): New expanders.
1343 (movsi_ie): Added y/i alternative.
1344 (ic_invalidate_line_i, movdf_i4): New insns.
1345 (movdf_i4+[123], reload_outdf+[12345], movsi_y+[12]): New splitters.
1346 (reload_indf, reload_outdf, reload_outsf, reload_insi): New expanders.
1347 (movdf): Add special code for SH4.
1348 (movsf_ie, movsf_ie+1, reload_insf, calli): Make use of fpscr visible.
1349 (call_valuei, calli, call_value): Likewise.
1350 (movsf): Emit no-op move.
1351 (mov_nop, movsi_y): New insns.
1352 (blt, sge): generalize to handle DFmode.
1353 (return predicate): Call emit_fpscr_use and remove_dead_before_cse.
1354 (block_move_real, block_lump_real): Predicate on ! TARGET_HARD_SH4.
1355 (block_move_real_i4, block_lump_real_i4, fpu_switch): New insns.
1356 (fpu_switch0, fpu_switch1, movpsi): New expanders.
1357 (fpu_switch+[12], fix_truncsfsi2_i4_2+1): New splitters.
1358 (toggle_sz): New insn.
1359 (addsf3, subsf3, mulsf3, divsf3): Now define_expands.
1360 (addsf3_i, subsf3_i, mulsf3_i4, mulsf3_ie, divsf3_i): New insns.
1361 (macsf3): Make use of fpscr visible. Disable for SH4.
1362 (floatsisf2): Make use of fpscr visible.
1363 (floatsisf2_i4): New insn.
1364 (floatsisf2_ie, fixsfsi, cmpgtsf_t, cmpeqsf_t): Disable for SH4.
1365 (ieee_ccmpeqsf_t): Likewise.
1366 (fix_truncsfsi2): Emit different code for SH4.
1367 (fix_truncsfsi2_i4, fix_truncsfsi2_i4_2, cmpgtsf_t_i4): New insns.
1368 (cmpeqsf_t_i4, ieee_ccmpeqsf_t_4): New insns.
1369 (negsf2, sqrtsf2, abssf2): Now expanders.
1370 (adddf3, subdf3i, muldf2, divdf3, floatsidf2): New expanders.
1371 (negsf2_i, sqrtsf2_i, abssf2_i, adddf3_i, subdf3_i): New insns.
1372 (muldf3_i, divdf3_i, floatsidf2_i, fix_truncdfsi2_i): New insns.
1373 (fix_truncdfsi2, cmpdf, negdf2, sqrtdf2, absdf2): New expanders.
1374 (fix_truncdfsi2_i4, cmpgtdf_t, cmpeqdf_t, ieee_ccmpeqdf_t): New insns.
1375 (fix_truncdfsi2_i4_2+1): New splitters.
1376 (negdf2_i, sqrtdf2_i, absdf2_i, extendsfdf2_i4): New insns.
1377 (extendsfdf2, truncdfsf2): New expanders.
1378 (truncdfsf2_i4): New insn.
1379 * t-sh (LIB1ASMFUNCS): Add _movstr_i4, _sdivsi3_i4, _udivsi3_i4.
1380 (MULTILIB_OPTIONS): Add m4-single-only/m4-single/m4.
1381 * float-sh.h: When testing for __SH3E__, also test for
1382 __SH4_SINGLE_ONLY__ .
1383 * va-sh.h (__va_freg): Define to float.
1384 (__va_greg, __fa_freg, __gnuc_va_list, va_start):
1385 Define for __SH4_SINGLE_ONLY__ like for __SH3E__ .
1386 (__PASS_AS_FLOAT, __TARGET_SH4_P): Likewise.
1387 (__PASS_AS_FLOAT): Use different definition for __SH4__ and
1389 (TARGET_SH4_P): Define.
1392 * sh.md (movdf_k, movsf_i): Tweak the condition so that
1393 init_expr_once is satisfied about the existence of load / store insns.
1395 * sh.md (movsi_i, movsi_ie, movsi_i_lowpart, movsf_i, movsf_ie):
1396 change m constraint in source operand to mr / mf .
1398 * va-sh.h (__va_arg_sh1): Use __asm instead of asm.
1400 * (__VA_REEF): Define.
1401 (__va_arg_sh1): Use it.
1403 * va-sh.h (va_start, va_arg, va_copy): Add parenteses.
1405 Sun Nov 22 21:34:02 1998 Jeffrey A Law (law@cygnus.com)
1407 * i386/dgux.c (struct option): Add new "description field".
1408 * m88k/m88k.c (struct option): Likewise.
1410 Sun Nov 22 16:07:57 PST 1998 Jeff Law (law@cygnus.com)
1412 * version.c: Bump for snapshot.
1414 Sun Nov 22 13:40:02 1998 Bernd Schmidt <crux@pool.informatik.rwth-aachen.de>
1416 * regmove.c (regmove_profitable_p): Use return value of find_matches
1419 Sun Nov 22 02:47:37 PST 1998 Jeff Law (law@cygnus.com)
1421 * version.c: Bump for snapshot.
1423 Sat Nov 21 22:12:09 1998 Jeffrey A Law (law@cygnus.com)
1425 * reload1.c (eliminate_regs): Do not lose if eliminate_regs is called
1426 without reload having been called earlier.
1428 * v850.c (ep_memory_operand): Offsets < 0 are not valid for EP
1430 (v850_reorg): Similarly.
1432 * loop.c (check_dbra_loop): Avoid using gen_add2_insn.
1434 Sat Nov 21 02:18:38 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
1436 * loop.c (move_movables): Start of libcall might be new loop start.
1438 Fri Nov 20 12:14:16 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1440 * hash.c (hash_table_init_n): Wrap prototype arguments in PARAMS().
1442 Fri Nov 20 08:34:00 1998 Bernd Schmidt <crux@pool.informatik.rwth-aachen.de>
1444 * function.c (nonlocal_goto_handler_slots): Renamed from
1445 nonlocal_goto_handler_slot; now an EXPR_LIST chain.
1446 (push_function_context_to): Adjust for this change.
1447 (pop_function_context_from): Likewise.
1448 (init_function_start): Likewise.
1449 (expand_function_end): Likewise.
1450 * function.h (struct function): Likewise.
1451 * calls.c (expand_call): Likewise.
1452 * explow.c (allocate_dynamic_stack_space): Likewise.
1453 * expr.h (nonlocal_goto_handler_slots): Rename its declaration.
1454 * stmt.c (declare_nonlocal_label): Make a new handler slot for each
1456 (expand_goto): When doing a nonlocal goto, find corresponding handler
1457 slot for it. Don't put the label address in the static chain register.
1458 (expand_end_bindings): Break out nonlocal goto handling code into
1459 three new functions.
1460 (expand_nl_handler_label, expand_nl_goto_receiver,
1461 expand_nl_goto_receivers): New static functions, broken out of
1462 expand_end_bindings and adapted to create one handler per nonlocal
1464 * function.c (delete_handlers): Delete insn if it references any of
1465 the nonlocal goto handler slots.
1466 * i960.md (nonlocal_goto): Comment out code that modifies
1468 * sparc.md (nonlocal_goto): Likewise.
1469 (goto_handler_and_restore_v9): Comment out.
1470 (goto_handler_and_restore_v9_sp64): Comment out.
1472 Thu Nov 19 23:44:38 1998 Bernd Schmidt <crux@pool.informatik.rwth-aachen.de>
1474 * expr.c (STACK_BYTES): Delete unused macro.
1475 * calls.c: Provide default for PREFERRED_STACK_BOUNDARY.
1476 (STACK_BYTES): Use PREFERRED_STACK_BOUNDARY, not STACK_BOUNDARY.
1477 (expand_call): Likewise.
1478 (emit_library_call): Likewise.
1479 (emit_library_call_value): Likewise.
1480 * function.c: Provide default for PREFERRED_STACK_BOUNDARY.
1481 (STACK_BYTES): Use PREFERRED_STACK_BOUNDARY, not STACK_BOUNDARY.
1482 * explow.c: Provide default for PREFERRED_STACK_BOUNDARY.
1483 (round_push): Use PREFERRED_STACK_BOUNDARY, not STACK_BOUNDARY.
1484 (allocate_dynamic_stack_space): Likewise.
1485 * tm.texi (PREFERRED_STACK_BOUNDARY): Document new macro.
1486 (STACK_BOUNDARY): Update description to reflect the new situation.
1488 Thu Nov 19 22:20:51 1998 Jeffrey A Law (law@cygnus.com)
1490 * reorg.c (relax_delay_slots): When optimizing for code size, if a
1491 return with a filled delay slot is followed by a return with an
1492 unfilled delay slot, delete the first return and reemit the insn
1493 that was previously in its delay slot.
1495 * i860.c (single_insn_src_p): Add missing parens.
1496 * ginclude/math-3300.h: Likewise.
1498 Thu Nov 19 20:55:59 1998 H.J. Lu (hjl@gnu.org)
1500 * regclass.c (init_reg_sets_1): Add prototype.
1501 (init_reg_modes): Likewise.
1503 1998-11-19 Zack Weinberg <zack@rabi.phys.columbia.edu>
1505 * c-common.c: Change warning messages to say `comparison is
1506 always true' or `comparison is always false' instead of the
1507 confusing `is always 0', `is always 1'.
1509 Thu Nov 19 19:05:49 1998 Per Bothner <bothner@cygnus.com>
1511 * print-tree.c (print_node): After printing BLOCK or BIND_EXPR,
1512 break instead of return (which loses closing '>').
1514 Thu Nov 19 19:34:13 1998 Jeffrey A Law (law@cygnus.com)
1516 * i386.h (LEGITIMATE_CONSTANT_P): Reject CONST_DOUBLEs that are not
1517 standard 387 constants.
1519 * i386.md (jump): Explicitly set "memory" attribute.
1520 (indirect_jump, prologue_set_stack_ptr): Likewise.
1521 (prologue_get_pc_and_set_got, pop): Likewise.
1522 (allocate_stack_worder, blockage, return_internal): Likewise.
1523 (return_pop_internal, nop): Likewise.
1524 (epilogue_set_stack_ptr, leave): Likewise.
1526 Thu Nov 19 15:42:54 1998 Nick Clifton <nickc@cygnus.com>
1528 * config/arm/coff.h: Set USER_LABEL_PREFIX to "_".
1530 Thu Nov 19 23:20:59 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
1532 * reload1.c (reload_reg_free_for_value_p):
1533 Early auto_inc reloads don't conflict with outputs.
1535 Thu Nov 19 12:58:55 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1537 * configure.in: Don't do AC_CHECK_HEADERS(wait.h sys/wait.h).
1538 Instead call AC_HEADER_SYS_WAIT.
1540 * collect2.c: Don't provide defaults for sys/wait.h macros.
1542 * protoize.c: Likewise. Also, don't include sys/wait.h.
1544 * system.h: Include sys/wait.h and provide macro defaults.
1546 1998-11-19 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
1548 * Makefile.in (mandir): Set to @mandir@.
1549 (man1dir): New variable to hold the former value of $(mandir).
1550 Replace all uses of $(mandir) by $(man1dir).
1552 Wed Nov 18 16:31:28 1998 Jim Wilson <wilson@cygnus.com>
1554 * reload.c (find_reloads_address_part): If have a CONST_INT, create
1555 a new one before passing it to force_const_mem.
1557 * reload.c (find_reloads_toplev): Pass &x instead of NULL_PTR in
1558 find_reloads_address call.
1560 Wed Nov 18 22:13:00 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
1562 * expr.c (store_expr): Don't generate load-store pair
1563 if TEMP is identical (according to ==) with TARGET.
1565 Tue Nov 17 22:25:16 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
1567 * reload1.c (reload_reg_free_for_value_p): When considered reload
1568 has an output, matching inputs are not sufficient to avoid conflict.
1570 Tue Nov 17 11:51:16 1998 Mark Mitchell <mark@markmitchell.com>
1572 * hash.h (hash_table_key): New type.
1573 (hash_entry): Change `string' field to generic `key'.
1574 (hash_table): Add `comp' and `hash' functions.
1575 (hash_table_init): Take them as input.
1576 (hash_table_init_n): Likewise.
1577 (hash_lookup): Modify for generic keys.
1578 (hash_newfunc): Likewise.
1579 (hash_traverse): Likewise.
1580 (string_hash): New function.
1581 (string_compare): Likewise.
1582 (string_copy): Likewise.
1583 * hash.c (hash_table_init_n): Modify for generic keys.
1584 (hash_table_init): Likewise.
1585 (hash_lookup): Likewise.
1586 (hash_newfunc): Likewise.
1587 (hash_traverse): Likewise.
1588 (string_hash): Split out from hash_lookup.
1589 (string_compare): New function.
1590 (string_copy): Split out from hash_lookup.
1591 * tlink.c (symbol_hash_newfunc): Modify for new interfaces to hash
1593 (symbol_hash_lookup): Likewise.
1594 (file_hash_newfunc): Likewise.
1595 (file_hash_lookup): Likewise.
1596 (demangled_hash_newfunc): Likewise.
1597 (demangled_hash_lookup): Likewise.
1598 (tlink_int): Likewise.
1599 (read_repo_file): Likewise.
1600 (recompile_files): Likewise.
1601 (demangle_new_symbols): Likewise.
1602 (scan_linker_output): Likewise.
1604 Tue Nov 17 17:13:53 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
1606 * flow.c (insn_dead_p): New argument NOTES. Changed all callers.
1608 Mon Nov 16 17:56:07 1998 David Edelsohn <edelsohn@mhpcc.edu>
1610 * rs6000.c (output_mi_thunk): Improve test for local branch.
1612 Mon Nov 16 17:56:07 1998 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1614 * rs6000.c (output_mi_thunk): Correct test for aggregate values.
1616 Mon Nov 16 21:02:52 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
1618 * reload1.c (reload_reg_free_before_p): Delete.
1619 Changed all callers to use reload_reg_free_for_value_p instead.
1620 (reload_reg_free_for_value_p): Handle more reload types.
1621 A RELOAD_FOR_INPUT doesn't conflict with its
1622 RELOAD_FOR_INPUT_ADDRESS / RELOAD_FOR_INPADDR_ADDRESS.
1623 Add special case for OUT == const0_rtx.
1624 Added ignore_address_reloads argument. Changed all callers.
1626 Mon Nov 16 02:22:29 1998 Jason Merrill <jason@yorick.cygnus.com>
1628 * toplev.c (compile_file): Don't pedwarn about undefined static
1629 functions just because we passed -Wunused.
1631 Mon Nov 16 04:41:41 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
1633 * function.c (purge_addressof_1): Unshare rtl created by
1636 Mon Nov 16 04:23:06 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
1638 * regmove.c (regmove_optimize): Don't do anything but
1639 optimize_reg_copy[123] when flag_regmove is not set.
1641 Sat Nov 14 15:05:07 1998 Richard Henderson <rth@cygnus.com>
1643 * alpha.md (addsi3, subsi3): Revise 5 Nov change to store DImode
1644 value in paradoxical SImode result, rather than truncating midpoint.
1646 Fri Nov 13 22:19:23 1998 Richard Henderson <rth@cygnus.com>
1648 * alpha.c (reg_not_elim_operand): New.
1649 * alpha.h (PREDICATE_CODES): Add it.
1650 * alpha.md (s48addq, s48subq patterns): Use it as the predicate
1651 for the multiplicand.
1653 Fri Nov 13 22:50:37 1998 David Edelsohn <edelsohn@mhpcc.edu>
1655 * rs6000.md (movsf): Remove explicit secondary-reload-like
1656 functionality. Only truncate SFmode store if in FPR.
1657 (movsf splitters): Combine const_double splitters.
1658 (movsf_hardfloat): Add GPR support.
1660 Fri Nov 13 11:02:11 1998 Stan Cox <scox@cygnus.com>
1662 * splet.h (SUBTARGET_OVERRIDE_OPTIONS): New to
1663 deprecate -mlive-g0 and -mbroken-saverestore.
1664 * t-splet (MULTILIB_OPTIONS): Likewise.
1666 * sparc.c (sparc_flat_compute_frame_size): Correctly calc args_size
1667 in a leaf function. Clarify total_size/extra_size relationship.
1669 Thu Nov 12 19:20:57 1998 Geoffrey Noer <noer@cygnus.com>
1671 * i386/cygwin32.asm: Delete.
1672 * i386/cygwin.asm: New file, renamed from cygwin32.asm.
1673 * i386/cygwin32.h: Delete.
1674 * i386/cygwin.h: New file, renamed from cygwin32.h.
1675 * i386/t-cygwin32: Delete.
1676 * i386/t-cygwin: New file, renamed from t-cygwin32. Include
1677 cygwin.asm instead of cygwin32.asm. Remove "32" from comment.
1678 * i386/x-cygwin32: Delete.
1679 * i386/x-cygwin: New file, renamed from x-cygwin32.
1680 * i386/xm-cygwin32: Delete.
1681 * i386/xm-cygwin: New file, renamed from xm-cygwin32. Use newly
1682 renamed cygwin_ funcs for path translations.
1683 * i386/win32.h: Define __CYGWIN__ when -mcygwin given.
1684 * i386/winnt.c: Remove "32" from comment about cygwin.
1685 * i386/mingw32.h: Fix references to cygwin32.h in light of above.
1686 * rs6000/cygwin32.h: Delete.
1687 * rs6000/cygwin.h: New file, renamed from cygwin32.h. Add
1688 -D__CYGWIN__ to CPP_PREDEFINES.
1689 * rs6000/x-cygwin32: Delete.
1690 * rs6000/x-cygwin: New file, renamed from x-cygwin32.
1691 * rs6000/xm-cygwin32: Delete.
1692 * rs6000/xm-cygwin: New file, renamed from xm-cygwin32.
1694 * configure.in: Check for cygwin* instead of cygwin32. Account
1695 for the rename of cygwin-related config files to lose the "32"s.
1696 * configure: Regenerate.
1698 * cccp.c, collect2.c, gcc.c, getpwd.c, libgcc2.c, protoize.c,
1699 toplev.c: Change all refs to __CYGWIN32__ to __CYGWIN__.
1701 Wed Nov 11 12:25:19 1998 Tom Tromey <tromey@cygnus.com>
1703 * Makefile.in (JAVAGC): New macro.
1704 * configure: Rebuilt.
1705 * configure.in: Recognize --enable-java-gc argument. Subst
1708 Thu Nov 12 03:32:16 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
1710 Handle equivalences that have been obscured by gcse:
1712 * reload1.c (reload): Handle equivalences set up in multiple places.
1713 * local-alloc.c (reg_equiv_init_insns): New variable.
1714 (no_equiv): New function.
1715 (update_equiv_regs): Handle equivalences set up in multiple places.
1716 Don't ignore an insn just because its destination is likely to be
1719 Wed Nov 11 13:46:13 1998 Jim Wilson <wilson@cygnus.com>
1721 * except.c (expand_eh_return): Readd force_operand call lost in
1724 Tue Nov 10 17:04:11 1998 David Edelsohn <edelsohn@mhpcc.edu>
1726 * rs6000.h (LEGITIMIZE_ADDRESS): Add missing goto on last case.
1728 1998-11-09 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
1730 * dbxout.c: Check HAVE_STAB_H instead of HAVE_STABS_H.
1732 Mon Nov 9 20:15:19 1998 Bernd Schmidt <crux@pool.informatik.rwth-aachen.de>
1734 * regmove.c (regmove_optimize): Fix error in last change.
1736 Mon Nov 9 16:37:52 1998 Andrew Cagney <cagney@b1.cygnus.com>
1738 * mips.c (function_prologue): When TARGET_MIPS16, adjust the register
1739 offset in the .mask pseudo to compensate for frame pointer adjustments.
1740 (mips16_fp_args, build_mips16_call_stub): For little endian, do not
1741 word swap arguments moved to/from FP registers.
1742 * mips16.S (DFREVCMP): Reverse arguments to OPCODE.
1744 Mon Nov 9 09:47:06 PST 1998 Jeff Law (law@cygnus.com)
1746 * version.c: Bump for snapshot.
1748 Mon Nov 9 02:14:14 PST 1998 Jeff Law (law@cygnus.com)
1750 * version.c: Bump for snapshot.
1752 Mon Nov 9 03:06:24 1998 Jeffrey A Law (law@cygnus.com)
1754 * reload1.c (delete_output_reload_insn): If a pseudo is set multiple
1755 times, then it can not be completely replaced.
1757 Mon Nov 9 00:39:02 1998 Richard Henderson <rth@cygnus.com>
1759 * alpha.md (call, call_value) [OSF]: Correct alt 3 insn length.
1761 Sun Nov 8 17:50:30 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1763 * gansidecl.h: Prepend a "G" to the macro wrapping this file
1764 (to distinguish it from the macro wrapping ansidecl.h.)
1765 Include libiberty's ansidecl.h. Remove all redundant definitions.
1766 Define the PROTO() style macros in terms of the PARAMS() ones.
1769 * calls.c (emit_library_call): Switch on ANSI_PROTOTYPES, not
1770 __STDC__, when deciding whether to use ANSI variable args.
1771 (emit_library_call_value): Likewise.
1773 * cccp.c (error): Likewise.
1774 (warning): Likewise.
1775 (error_with_line): Likewise.
1776 (warning_with_line): Likewise.
1777 (pedwarn): Likewise.
1778 (pedwarn_with_line): Likewise.
1779 (pedwarn_with_file_and_line): Likewise.
1782 * cexp.y (error): Likewise.
1783 (pedwarn): Likewise.
1784 (warning): Likewise.
1786 * collect2.c (fatal_perror): Likewise.
1790 * combine.c (gen_rtx_combine): Likewise.
1792 * cpperror.c (cpp_message): Likewise.
1793 (cpp_fatal): Likewise.
1795 * cpplib.c (cpp_error): Likewise.
1796 (cpp_warning): Likewise.
1797 (cpp_pedwarn): Likewise.
1798 (cpp_error_with_line): Likewise.
1799 (cpp_warning_with_line): Likewise.
1800 (cpp_pedwarn_with_line): Likewise.
1801 (cpp_pedwarn_with_file_and_line): Likewise.
1803 * cpplib.h: Don't define PARAMS() macro.
1805 * demangle.h: Likewise.
1807 * doprint.c (checkit): Switch on ANSI_PROTOTYPES, not __STDC__,
1808 when deciding whether to use ANSI variable args.
1810 * emit-rtl.c (gen_rtx): Likewise.
1811 (gen_rtvec): Likewise.
1813 * final.c (asm_fprintf): Likewise.
1815 * fix-header.c (cpp_message): Likewise.
1817 (cpp_fatal): Likewise.
1819 * gcc.c (concat): Likewise.
1823 * genattr.c (fatal): Likewise.
1825 * genattrtab.c (attr_rtx): Likewise.
1826 (attr_printf): Likewise.
1829 * gencodes.c (fatal): Likewise.
1831 * genconfig.c (fatal): Likewise.
1833 * genemit.c (fatal): Likewise.
1835 * genextract.c (fatal): Likewise.
1837 * genflags.c (fatal): Likewise.
1839 * genopinit.c (fatal): Likewise.
1841 * genoutput.c (fatal): Likewise.
1844 * genpeep.c (fatal): Likewise.
1846 * genrecog.c (fatal): Likewise.
1848 * halfpic.h: Switch on ANSI_PROTOTYPES, not __STDC__, when
1849 deciding whether to declare `tree_node' and `rtx_def'.
1851 * hash.h: Don't define stuff we get from gansidecl.h.
1853 * mips-tfile.c: Likewise. Define __proto() in terms of PARAMS().
1854 (fatal): Switch on ANSI_PROTOTYPES, not __STDC__, when deciding
1855 whether to use ANSI variable args.
1858 * prefix.c (concat): Likewise.
1862 * system.h: Likewise.
1864 * toplev.c (error_with_file_and_line): Likewise.
1865 (error_with_decl): Likewise.
1866 (error_for_asm): Likewise.
1869 (warning_with_file_and_line): Likewise.
1870 (warning_with_decl): Likewise.
1871 (warning_for_asm): Likewise.
1872 (warning): Likewise.
1873 (pedwarn): Likewise.
1874 (pedwarn_with_decl): Likewise.
1875 (pedwarn_with_file_and_line): Likewise.
1877 (really_sorry): Likewise.
1879 * toplev.h: Switch on ANSI_PROTOTYPES, not __STDC__, when deciding
1880 whether to declare `tree_node' and `rtx_def'.
1882 * tree.c (build): Switch on ANSI_PROTOTYPES, not __STDC__, when
1883 deciding whether to use ANSI variable args.
1884 (build_nt): Likewise.
1885 (build_parse_node): Likewise.
1887 Sun Nov 8 13:10:55 PST 1998 Jeff Law (law@cygnus.com)
1889 * version.c: Bump for snapshot.
1891 Sat Nov 7 23:34:01 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1893 * Makefile.in (libcpp.a): Check RANLIB_TEST before runing RANLIB.
1895 Sat Nov 7 22:26:19 1998 David Edelsohn <edelsohn@mhpcc.edu>
1897 * collect2.c (main, case 'b'): Use else if.
1899 Sat Nov 7 15:35:25 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1901 * configure.in (host_xm_file, build_xm_file, xm_file, tm_file):
1902 Arrange to include gansidecl.h in {ht}config.h & tm.h just
1903 before the config/ directory headers.
1904 (tm_file_list, host_xm_file_list, build_xm_file_list): Handle
1905 gansidecl.h in the list of dependencies.
1907 * Makefile.in (RTL_BASE_H): Don't depend on gansidecl.h.
1908 (TREE_H, DEMANGLE_H, RECOG_H, REGS_H, libgcc2.a, stmp-multilib,
1909 mbchar.o, collect2.o, pexecute.o, vfprintf.o, splay-tree.o, gcc.o,
1910 gencheck.o, choose-temp.o, mkstemp.o, mkstemp.o, prefix.o,
1911 dyn-string.o, cexp.o, cccp.o, cppmain.o, cpplib.o, cpperror.o,
1912 cppexp.o, cppfiles.o, cpphash.o, cppalloc.o, scan-decls.o):
1915 * cccp.c: Don't include gansidecl.h.
1917 * collect2.c: Likewise.
1918 * config/c4x/c4x.c: Likewise.
1919 * config/v850/v850.h: Likewise.
1920 * cppalloc.c: Likewise.
1921 * cpperror.c: Likewise.
1922 * cppexp.c: Likewise.
1923 * cppfiles.c: Likewise.
1924 * cpphash.c: Likewise.
1925 * cpplib.c: Likewise.
1926 * cppmain.c: Likewise.
1927 * cppulp.c: Likewise.
1928 * demangle.h: Likewise.
1929 * doprint.c: Likewise.
1930 * dyn-string.c: Likewise.
1931 * eh-common.h: Likewise.
1932 * fix-header.c: Likewise.
1933 * frame.c: Likewise.
1936 * gen-protos.c: Likewise.
1937 * gencheck.c: Likewise.
1938 * halfpic.h: Likewise.
1940 * machmode.h: Likewise.
1941 * mbchar.c: Likewise.
1942 * prefix.c: Likewise.
1943 * protoize.c: Likewise.
1944 * recog.h: Likewise.
1946 * scan-decls.c: Likewise.
1948 * varray.h: Likewise.
1950 Sat Nov 7 11:37:53 1998 Richard Henderson <rth@cygnus.com>
1952 * i386.md (call_value_pop): If we're not popping anything,
1953 defer to call_value.
1954 (call_pop): Likewise defer to call.
1956 Sat Nov 7 02:49:56 1998 Richard Henderson <rth@cygnus.com>
1958 * function.c (purge_addressof): Clear purge_addressof_replacements
1959 only after processing the whole function.
1961 Sat Nov 7 00:54:55 1998 Jeffrey A Law (law@cygnus.com)
1963 * reload1.c (reload): If we can not perform a particular elimination
1964 when we thought we could earlier, then we must always iterate through
1965 the loop at least one more time.
1967 Fri Nov 6 19:37:33 1998 Richard Henderson <rth@cygnus.com>
1969 * alpha.c (add_operand): Simplify the CONST_INT match.
1970 (sext_add_operand): Correct typo in comparison by using
1971 CONST_OK_FOR_LETTER_P.
1972 * alpha.md (s?addq): Use sext_add_operand to allow the negative
1973 constant alternatives to be generated.
1974 (mulsi3, muldi3, umuldi3_highpart): Loosen constraints to allow
1975 small constants, since the hw instructions do.
1977 Fri Nov 6 20:15:19 1998 Bernd Schmidt <crux@pool.informatik.rwth-aachen.de>
1979 * reload1.c (emit_reload_insns): When rewriting the SET_DEST of a
1980 previous insn to store directly into our reload register, make sure
1981 that if the source of the previous insn is a reload register, its
1982 spill_reg_store and spill_reg_stored_to values are cleared.
1984 Fri Nov 6 16:35:10 1998 David Edelsohn <edelsohn@mhpcc.edu>
1986 * rs6000.md (floatunssidf2_internal splitter): Use base register
1987 operand, not hard-coded SP.
1989 Fri Nov 6 04:07:53 1998 David S. Miller <davem@pierdol.cobaltmicro.com>
1991 * jump.c (calculate_can_reach_end): Fix thinko.
1993 Fri Nov 6 00:16:04 1998 Jeffrey A Law (law@cygnus.com)
1995 * reorg.c (fill_simple_delay_slots): Fix typo.
1997 * romp.h (LEGITIMIZE_ADDRESS): Fix typo.
1999 Fri Nov 6 00:10:00 1998 Jan Hubicka (hubicka@freesoft.cz)
2001 * i386.md (extendsidi2): Use # in the output template.
2002 (extendsidi splitters): New splitters.
2004 Thu Nov 5 11:13:27 1998 Nick Clifton <nickc@cygnus.com>
2006 * configure.in: Use unknown-elf.h as tm_file for arm-elf
2008 * configure: Regenerate.
2010 Thu Nov 5 07:59:05 1998 David S. Miller <davem@pierdol.cobaltmicro.com>
2012 * jump.c (init_label_info, delete_barrier_successors,
2013 mark_all_labels, delete_unreferenced_labels,
2014 delete_noop_moves, calculate_can_reach_end): New functions broken
2015 out of jump_optimize.
2016 (jump_optimize): Use them.
2018 Thu Nov 5 07:57:45 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
2020 * except.c (expand_fixup_region_end): Make sure outer context labels
2021 are not issued in an inner context during cleanups.
2023 Thu Nov 5 04:03:06 1998 Richard Henderson <rth@cygnus.com>
2025 * alpha.md (addsi3, subsi3): No new temporaries once cse is
2028 Thu Nov 5 03:29:19 1998 Richard Henderson <rth@cygnus.com>
2030 * alpha.md (addsi3, subsi3): Expand to a DImode temporary so as
2031 to expose this midpoint to CSE.
2033 Thu Nov 5 03:42:54 1998 David S. Miller <davem@pierdol.cobaltmicro.com>
2035 * config/sparc/sparc.md (movdf_const_intreg_sp64): Enable again.
2037 Thu Nov 5 10:53:01 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
2039 * configure.in: Bring over gcc2 change of Nov 19 1997.
2041 Wed Nov 4 23:43:08 1998 Graham <grahams@rcp.co.uk>
2043 * toplev.c (output_lang_identify): Make definition dependent on
2044 ASM_IDENTIFY_LANGUAGE.
2046 * print-rtl.c (spaces): Make static.
2048 Wed Nov 4 22:16:36 1998 Hans-Peter Nilsson <hp@axis.se>
2050 * extend.texi: Clarify proper uses for register clobbers in asms.
2052 Wed Nov 4 22:16:36 1998 Bernd Schmidt <crux@pool.informatik.rwth-aachen.de>
2054 * recog.h (enum op_type): Define.
2055 (constrain_operands): Adjust prototype.
2056 (recog_op_type): Declare new variable.
2057 * recog.c (recog_op_type): New variable.
2058 (insn_invalid_p): Allow modifying an asm statement after reload.
2059 (extract_insn): Set up recog_op_type.
2060 (constrain_operands): Lose INSN_CODE_NUM arg. All callers changed.
2061 Don't compute operand types, use recog_op_type.
2062 Use the information computed by extract_insn instead of the previous
2063 method of finding it by insn code number.
2064 * caller-save.c (init_caller_save): Use extract_insn, not insn_extract.
2065 * reorg.c (fill_slots_from_thread): Likewise.
2066 * reload1.c (reload_as_needed): Likewise.
2067 (gen_reload): Likewise.
2068 (inc_for_reload): Likewise.
2069 (reload_cse_simplify_operands): Likewise.
2070 Use the information computed by extract_insn instead of the previous
2071 method of finding it by insn code number.
2072 * genattrtab.c (write_attr_case): Generate call to extract_insn, not
2074 * final.c (final_scan_insn): Use extract_insn, not insn_extract.
2075 (cleanup_operand_subregs): Use extract_insn, not insn_extract.
2076 Use the information computed by extract_insn instead of the previous
2077 method of finding it by insn code number.
2078 * regmove.c (find_matches): Likewise. Change meaning of the return
2079 value to be nonzero if the optimization can be performed, zero if
2080 not. All callers changed.
2081 Shorten some variable names to fix formatting problems.
2082 (regmove_optimize): Shorten some variable names to fix formatting
2084 Use the information computed by extract_insn instead of the previous
2085 method of finding it by insn code number.
2086 * regclass.c (scan_one_insn): Likewise.
2087 (record_reg_classes): Don't compute operand types, use recog_op_type.
2088 * reload.c (find_reloads): Lose CONSTRAINTS1 variable; use
2089 recog_constraints instead.
2091 Wed Nov 4 21:37:46 1998 Jeffrey A Law (law@cygnus.com)
2093 * rtl.h (flow2_completed): Declare.
2094 * flow.c (flow2_completed): Definition.
2095 * toplev.c (rest_of_compilation): Set and clear flow2_completed
2098 Wed Nov 4 19:15:37 1998 "Melissa O'Neill" <oneill@cs.sfu.ca>
2100 * Makefile.in (libcpp.a): Ranlib libcpp.a
2102 * cppulp.c (user_label_prefix): Initialize.
2104 Wed Nov 4 19:07:08 1998 John Wehle (john@feith.com)
2106 * flow.c (mark_regs_live_at_end): Mark the stack pointer as live
2107 at a RETURN if current_function_sp_is_unchanging is set.
2109 Wed Nov 4 18:16:29 1998 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
2111 * emit-rtl.c (try_split): Fixed error in Oct 10 patch.
2113 Wed Nov 4 15:11:15 1998 Geoffrey Noer <noer@cygnus.com>
2115 * i386/cygwin32.h (MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS, MASK_DLL,
2116 TARGET_WIN32, TARGET_CYGWIN, TARGET_WINDOWS, TARGET_DLL): New.
2117 (SUBTARGET_SWITCHES): Add -mno-cygwin, -mcygwin, and -mdll options.
2118 (CPP_PREDEFINES): Don't define __CYGWIN32__ here.
2119 (STARTFILE_SPEC): Handle -mdll, -mno-cygwin options.
2120 (CPP_SPEC): Handle -mno-cygwin option. Define __CYWIN__ in addition
2122 (LIB_SPEC): Handle -mno-cyginw option.
2123 (LINK_SPEC): Handle -mdll.
2125 Wed Nov 4 22:56:14 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
2127 * reload.c (find_reloads): Fix test for usage by other reload
2128 to handle secondary reloads properly.
2130 Wed Nov 4 17:25:10 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2132 * reload1.c (ELIMINABLE_REGS, NUM_ELIMINABLE_REGS): Introduce an
2133 intermediate structure which has exactly the members provided by
2134 ELIMINABLE_REGS. Define NUM_ELIMINABLE_REGS in terms of the
2135 static intermediate structure.
2137 (init_elim_table): Xmalloc() `reg_eliminate', and initialize it
2138 from the intermediate structure. Do the same analogous fix in
2139 the case where ELIMINABLE_REGS is not defined.
2141 Tue Nov 3 20:50:03 1998 Jeffrey A Law (law@cygnus.com)
2143 * pa.h (SELECT_SECTION): Fix thinko.
2145 Tue Nov 3 17:51:36 1998 Jim Wilson <wilson@cygnus.com>
2147 * dwarf2out.c (output_call_frame_info): Comments on last change.
2149 Tue Nov 3 07:51:43 1998 Richard Earnshaw (rearnsha@arm.com)
2151 * arm.c (add_constant): When taking the address of an item in the
2152 pool, get the mode of the item addressed.
2154 * arm.c (final_prescan_insn case INSN): If an insn doesn't
2155 contain a SET or a PARALLEL, don't consider it for conditional
2158 Restore ABI compatibility for NetBSD.
2159 * arm/netbsd.h (DEFAULT_PCC_STRUCT_RETURN): Override setting in
2161 (RETURN_IN_MEMORY): Likewise.
2163 Mon Nov 2 11:46:17 1998 Doug Evans <devans@canuck.cygnus.com>
2165 * m32r/m32r.c (m32r_expand_block_move): Fix byte count computations.
2166 (m32r_output_block_move): Rewrite bytes < 4 handling.
2168 Mon Nov 2 10:10:35 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2170 * configure.in: Call AC_FUNC_VFORK.
2172 * collect2.c: Define VFORK_STRING as a printable string for
2173 error messages (either "vfork" or "fork".) If HAVE_VFORK_H is
2174 defined, include vfork.h. If VMS is defined, define vfork()
2175 appropriately. Remove vfork check on USG, we're using autoconf.
2176 (collect_execute): Pass VFORK_STRING to fatal_perror instead of
2177 checking locally what string to pass.
2178 (scan_prog_file): Likewise.
2179 (scan_libraries): Likewise.
2181 * gcc.c: Remove vfork check on USG, we're using autoconf.
2182 Besides, no calls to vfork/fork occur in this file.
2184 * protoize.c: Likewise.
2186 Mon Nov 2 07:52:28 1998 Alexandre Oliva <oliva@dcc.unicamp.br>
2188 * configure.in (DEFAULT_LINKER): renamed from LD
2189 (DEFAULT_ASSEMBLER): renamed from AS; reverted Schwab's patch
2190 (gcc_cv_as): try $DEFAULT_ASSEMBLER before $AS
2191 * configure: rebuilt
2193 Mon Nov 2 01:48:10 1998 Alexandre Oliva <oliva@dcc.unicamp.br>
2195 * BUGS: fix the regexp for `more' to find the appropriate node.
2196 Reported by Joerg Pietschmann <joerg_pietschmann@zkb.ch>
2198 * BUGS: added link to the WWW FAQ
2200 Sun Nov 1 18:27:15 PST 1998 Jeff Law (law@cygnus.com)
2202 * version.c: Bump for snapshot.
2204 Sun Nov 1 11:04:32 1998 Jeffrey A Law (law@cygnus.com)
2206 * From Christian Gafton:
2207 * i386/linux.h (CPP_PREDEFINES): Add -D__i386__.
2208 * sparc/linux.h (CPP_PREDEFINES): Add -D__sparc__.
2209 * sparc/linux64.h (CPP_PREDEFINES): Add -D__sparc__.
2211 Sat Oct 31 21:42:39 1998 Mark Mitchell <mark@markmitchell.com>
2213 * c-common.c (c_get_alias_set): Allow all type-punning through
2214 unions. Don't get confused about the type of a bit-field, despite
2215 the antics of build_modify_expr.
2217 Sat Oct 31 22:35:29 1998 Jean-Pierre Radley <jpr@jpr.com>
2219 * fixinc.sco: Paramaterize #include_next values.
2220 * fixinc/fixinc.sco: Likewise.
2222 Sat Oct 31 20:39:35 1998 Jeffrey A Law (law@cygnus.com)
2224 * toplev.c (rest_of_compilation): No longer set reload_completed.
2225 * reload1.c (reload): Set it here. Perform instruction splitting
2226 after reload has completed if we will be running the scheduler
2229 Sat Oct 31 12:30:02 1998 Jeffrey A Law (law@cygnus.com)
2231 * jump.c (jump_optimize): Initialize mappings from INSN_UID to
2232 EH region if exceptions are enabled and we're performing cross
2234 (find_cross_jump): Exit loop if the insns are in different EH regions.
2236 Sat Oct 31 10:02:48 1998 Mark Mitchell <mark@markmitchell.com>
2238 * dwarf2out.c (output_call_frame_info): Use
2239 ASM_OUTPUT_DWARF_DELTA4 for the CIE offset to match frame.c.
2241 Sat Oct 31 10:23:14 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2243 Reinstall Apr 24th fix, lost during May 6th gcc2 merge:
2244 * c-common.c (check_format_info): Don't check for the 'x'
2245 format character twice, instead check for 'x' and 'X'
2247 Fri Oct 30 14:50:25 1998 Jeffrey A Law (law@cygnus.com)
2249 * configure.in (assembler features): Also make gas is configured if
2250 we find it in the souce tree.
2252 Fri Oct 30 13:23:20 1998 Richard Henderson <rth@cygnus.com>
2254 * i386.c (i386_comp_type_attributes): Compare whether the
2255 attributes are defined, not their tree nodes.
2257 Fri Oct 30 11:39:47 1998 Alexandre Oliva <oliva@dcc.unicamp.br>
2259 * configure.in (gxx_include_dir): bitten by autoconf quoting
2261 * configure: rebuilt
2263 Fri Oct 30 10:43:29 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
2265 * configure.in: Ignore non-absolute value in $AS.
2267 Fri Oct 30 00:54:25 1998 Peter Jakubek <pjak@snafu.de>
2269 * m68k.h (INDIRECTABLE_1_ADDRESS_P): Fix thinko.
2271 Fri Oct 30 00:42:34 1998 Mark Elbrecht <snowball3@usa.net>
2273 * configure.in (msdosdjgpp): Set exeext and target_alias.
2275 Thu Oct 29 23:55:43 1998 Bernd Schmidt <crux@pool.informatik.rwth-aachen.de>
2277 * flow.c (XNMALLOC): New macro.
2278 (flow_int_list_blocks, basic_block_succ, basic_block_pred): New
2280 (add_edge, add_edge_to_label): New static functions.
2281 (free_bb_memory): New function.
2282 (flow_delete_insn): Delete function.
2283 (basic_block_drops_in): Delete variable.
2284 (find_basic_blocks): Allocate and initialize basic_block_head,
2285 basic_block_succ. Don't allocate basic_block_drops_in.
2286 Call free_bb_memory at the beginning.
2287 (find_basic_blocks_1): Don't do multiple passes.
2288 Delete code to compute basic_block_drops_in.
2289 After calling make_edges, mark blocks reached by current block live.
2290 Update test for unreachable live blocks.
2291 (mark_label_ref): Delete args X, CHECKDUP. Add PRED arg. All callers
2293 Simplify to call add_edge_to_label when a LABEL_REF is found.
2294 (make_edges): Simplify to call add_edge_to_label instead of
2295 mark_label_ref most of the time.
2296 Compute here whether control drops into the next block.
2297 (delete_unreachable_blocks): Return void. All callers changed.
2298 Delete unreachable blocks in reverse order.
2299 After deleting all unreachable blocks, renumber the remaining ones
2300 and update n_basic_blocks.
2301 (delete_block): Speed up deletion a bit.
2302 Don't set basic_block_drops_in for deleted blocks.
2303 (free_basic_block_vars): Don't free basic_block_drops_in.
2304 (life_analysis_1): Update to use new edge representation.
2305 (dump_flow_info): Delete code to print basic block info; call
2306 dump_bb_data instead.
2307 (compute_preds_succs): Delete code to recompute basic_block_drops_in
2308 and uid_block_number.
2309 Simply copy the previously computed cfg.
2310 (dump_bb_data): New arg LIVE_INFO. All callers changed.
2311 Print register lifetime information if LIVE_INFO is nonzero.
2312 * basic-block.h (dump_bb_data): Adjust prototype.
2313 * gcse.c (gcse_main): Update call to dump_bb_data.
2314 * rtl.h (free_bb_memory): Declare.
2315 * toplev.c (rest_of_compilation): Call free_bb_memory.
2317 * reload1.c (struct elim_table): Delete MAX_OFFSET member.
2318 (update_eliminable_offsets): Don't compute it.
2319 (set_initial_elim_offsets): Don't initialize it.
2320 Break out some code into set_initial_label_offsets so the rest of
2321 this function can be called from reload_as_needed.
2322 Assume that INITIAL_FRAME_POINTER_OFFSET is defeined when
2323 ELIMINABLE_REGS isn't.
2324 (set_initial_label_offsets): New function, broken out of
2325 set_initial_elim_offsets.
2326 (set_offsets_for_label): New function, broken out of set_label_offsets
2327 and reload_as_needed.
2328 (reload): Call the two new functions.
2329 (reload_as_needed): Call set_initial_elim_offsets instead of
2330 duplicating the code. Likewise for set_offsets_for_label.
2332 * reload1.c (choose_reload_regs): Fix typo in Oct 17 change.
2333 (emit_reload_insns): Ensure that when we set reg_reloaded_valid for
2334 any hard reg, reg_reloaded_dead contains valid data.
2336 Thu Oct 29 22:30:54 1998 Marcus Meissner <Marcus.Meissner@informatik.uni-erlangen.de>
2338 * i386.c (i386_comp_type_attributes): Return nonzero for mismatched
2339 "stdcall" and "cdecl" attributes.
2341 Thu Oct 29 19:05:17 1998 Jim Wilson <wilson@cygnus.com>
2343 * sched.c (update_flow_info): Add code to ! found_orig_dest case to
2344 handle deleted no-op moves of hard registers.
2345 * haifa-sched.c (update_flow_info): Likewise.
2347 Thu Oct 29 18:07:47 1998 Jeffrey A Law (law@cygnus.com)
2349 * mips.md (reload_{in,out}{si,di}): Emit a USE of HILO at the end
2350 of the sequences to reload the HILO register which do not actually
2353 Thu Oct 29 12:39:35 1998 Jim Wilson <wilson@cygnus.com>
2355 * c-common.c (c_get_alias_set): Handle ARRAY_REF of union field.
2357 Thu Oct 29 14:10:22 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
2359 * except.c (emit_eh_context): Make the EH context register stay alive
2360 at -O0 so stupid.c doesn't get confused.
2362 1998-10-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
2364 * emit-rtl.c (try_split): Do not try to split a BARRIER.
2366 Thu Oct 29 01:33:54 1998 Jan Hubicka <hubicka@freesoft.cz>
2367 Jeffrey A Law (law@cygnus.com)
2369 * i386.md: Change ix86_cpu == PROCESSOR_PENTIUM to TARGET_PENTIUM
2370 (zero_extendsidi2): Use # in output template and handle completely by
2372 (zero_extend splitters): New define_splits.
2373 (ashiftrt_32): New pattern.
2375 Wed Oct 28 22:58:35 1998 Jason Merrill <jason@yorick.cygnus.com>
2377 * tree.c (append_random_chars): New fn.
2378 (get_file_function_name_long): Use it.
2380 Wed Oct 28 22:27:05 1998 Richard Henderson <rth@cygnus.com>
2382 * Makefile.in (cc1): Put C_OBJS, and thence @extra_c_objs@ last.
2383 (LIBCPP_OBJS): New. Add cppulp.o.
2384 (cppmain, fix-header): Depend on and use libcpp.a.
2385 * configure.in (extra_c_objs, extra_cxx_objs): Use libcpp.a instead
2386 of the individual object files.
2387 * objc/Make-lang.in (cc1obj): Put OBJC_OBJS, and thence @extra_c_objs@,
2390 * cccp.c (user_label_prefix): New.
2391 (main): Set it off -f*leading-underscore.
2392 (special_symbol): Use it.
2393 * cpplib.c (special_symbol): Likewise.
2394 (cpp_handle_option): Handle -f*leading-underscore.
2395 * cppulp.c: New file.
2397 * output.h (user_label_prefix): Declare it.
2398 * dwarf2out.c (ASM_NAME_TO_STRING): Prepend user_label_prefix.
2399 * toplev.c (f_options, main): Handle -f*leading-underscore.
2401 * defaults.h (ASM_OUTPUT_LABELREF): Use asm_fprintf instead of
2402 referencing USER_LABEL_PREFIX directly.
2403 * config/nextstep.h (ASM_OUTPUT_LABELREF): Likewise.
2404 * m32r/m32r.h (ASM_OUTPUT_LABELREF): Likewise.
2405 * final.c (asm_fprintf): Use user_label_prefix instead.
2406 * arm/thumb.c (thumb_print_operand): Likewise.
2408 * gcc.c (default_compilers): Pass -f*leading-underscore on to
2409 cpp wherever appropriate.
2411 Wed Oct 28 23:09:25 1998 Robert Lipe <robertl@dgii.com>
2413 * sco5.h (SUBTARGET_SWITCHES): Add documentation for OpenServer-
2414 specific compiler switches.
2416 Wed Oct 28 21:05:53 1998 Jeffrey A Law (law@cygnus.com)
2418 * Makefile.in (c-common.o): Depend on c-pragma.h. Use $(RTL_H) instead
2421 Wed Oct 28 20:52:47 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2423 * gcc.c (EXTRA_SPECS, extra_specs): Introduce an intermediate
2424 structure which has exactly the members provided by EXTRA_SPECS.
2425 Xmalloc() the real `extra_specs', and initialize it from this
2426 intermediate structure.
2428 * alpha.h (EXTRA_SPECS): Revert change for missing initializers.
2430 * mips.h (EXTRA_SPECS): Likewise.
2432 * sparc.h (EXTRA_SPECS): Likewise.
2434 Wed Oct 28 16:46:07 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
2436 * function.c (purge_addressof_1): Instead of aborting when a
2437 bitfield insertion as a replacement for (MEM (ADDRESSOF)) does not
2438 work just put the ADDRESSOF on stack. Otherwise remember all such
2439 successfull replacements, so that exactly the same replacements
2440 can be made on the REG_NOTEs. Remove the special case for CALL
2442 (purge_addressof_replacements): New variable.
2443 (purge_addressof): Clear it at end.
2445 1998-10-28 16:10 -0500 Zack Weinberg <zack@rabi.phys.columbia.edu>
2447 * c-lang.c: Declare extern char *yy_cur if USE_CPPLIB.
2448 (lang_init): Call check_newline always.
2449 * c-lex.c (init_parse) [USE_CPPLIB=1]: After calling
2450 cpp_start_read, set yy_cur and yy_lim to read from
2451 parse_in.token_buffer, so that we'll see the first #line
2453 * cpplib.c (cpp_start_read): finclude the main input file
2454 before processing -include/-imacros. Process -imacros and
2455 -include separately, and handle -include by stacking a
2456 buffer for the file in question as if it'd been #included.
2457 * toplev.c (documented_lang_options) Recognize -H when
2460 1998-10-28 16:09 -0500 Zack Weinberg <zack@rabi.phys.columbia.edu>
2462 * cpplib.c: Merge do_once into do_pragma. Break file handling
2463 code out of do_include.
2464 Move append_include_chain, deps_output,
2465 file_cleanup, redundant_include_p, import_hash,
2466 lookup_import, add_import, read_filename_string, read_name_map,
2467 open_include_file, finclude, safe_read to cppfiles.c.
2468 Move prototypes for deps_output, append_include_chain,
2469 finclude to cpplib.h. Move definition of struct
2470 file_name_list there also.
2472 * cppfiles.c: New file. Contains all the above functions
2473 broken out of cpplib.c; also hack_vms_include_specification
2474 from cccp.c and find_include_file, a new function broken out of
2477 * Makefile.in (cppmain): Depend on cppfiles.o.
2478 (fix-header): Likewise.
2479 (cppfiles.o): New target.
2480 * configure.in (--enable-c-cpplib): Add cppfiles.o to
2481 extra_c_objs. Add ../cppfiles.o to extra_cxx_objs.
2483 Wed Oct 28 14:06:49 1998 Jim Wilson <wilson@cygnus.com>
2485 * dwarfout.c (dwarfout_file_scope_decl): If DECL_CONTEXT, don't abort
2486 if pending_types is non-zero.
2487 (dwarfout_finish): Verify pending_types is zero before finishing.
2489 Wed Oct 28 10:29:09 1998 Nick Clifton <nickc@cygnus.com>
2491 * expr.c (convert_move): Use shifts to perform the move if a
2492 suitable extend pattern cannot be found. Code written by
2493 Richard Henderson <rth@cygnus.com>.
2495 Wed Oct 28 03:59:29 1998 Bernd Schmidt <crux@pool.informatik.rwth-aachen.de>
2497 * regclass.c (renumber, regno_allocated): New static variables, moved
2498 out of allocate_reg_info.
2499 (allocate_reg_info): Move these two variables outside the function.
2500 Move code to free memory into new function free_reg_info.
2501 (free_reg_info): New function, broken out of allocate_reg_info.
2502 * toplev.c (compile_file): Call free_reg_info, not allocate_reg_info.
2503 * rtl.h (allocate_reg_info): Don't declare.
2504 (free_reg_info): Declare.
2506 * final.c (cleanup_subreg_operands): ASM_INPUTs need no treatment.
2508 Wed Oct 28 02:38:12 1998 Jason Merrill <jason@yorick.cygnus.com>
2510 * toplev.c (compile_file): Temporarily revert last change.
2512 Wed Oct 28 00:00:35 1998 Jason Merrill <jason@yorick.cygnus.com>
2514 * c-typeck.c (convert_for_assignment): Parenthesize.
2516 1998-10-28 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
2518 * reload1.c (delete_output_reload): Avoid ambigous else.
2520 Wed Oct 28 00:10:35 1998 Jeffrey A Law (law@cygnus.com)
2522 * toplev.c (compile_file): Call allocate_reg_info to free register
2524 * rtl.h (allocate_reg_info): Declare.
2526 * PROJECTS: Remove entry for local spilling.
2528 * final.c (cleanup_subreg_operands): New function.
2529 (final_scan_insn): Use it.
2530 (alter_subreg): Clear the "used" field when we turn a SUBREG into
2532 * reload1.c (reload): Delete CLOBBER insns and also cleanup SUBREG
2533 operands when reload has finished.
2534 * reload.h (cleanup_subreg_operands): Declare..
2535 * flow.c (life_analysis_1): No longer delete CLOBBER insns after
2536 reload. Handled in reload itself.
2538 Tue Oct 27 23:32:34 1998 Bernd Schmidt <crux@pool.informatik.rwth-aachen.de>
2540 * reload1.c (verify_initial_offsets): New function.
2541 (reload): Call it after reload_as_needed. Also verify that the frame
2542 size stays constant during reload_as_needed.
2543 * i386.h (CONST_DOUBLE_OK_FOR_LETTER_P): Undo Jul 26 change.
2545 * reload.h (struct insn_chain): Add need_operand_change element.
2546 * reload1.c (new_insn_chain): Clear it.
2547 (calculate_needs_all_insns): Set it; don't overload need_reload.
2548 (reload_as_needed): Use it.
2550 * reload.c (find_reloads_address): Use BASE_REG_CLASS instead of
2551 reload_address_base_reg_class throughout. Similar for INDEX_REG_CLASS
2552 and reload_address_index_reg_class.
2553 (find_reloads_address_1): Likewise.
2554 * reload.h (reload_address_base_reg_class,
2555 reload_address_index_reg_class): Don't declare.
2556 * reload1.c (reg_old_renumber, pseudo_previous_regs,
2557 pseudo_forbidden_regs, bad_spill_regs_global): New static variables.
2558 (used_spill_regs): Now static.
2559 (reload_address_base_reg_class, reload_address_index_reg_class,
2560 regs_explicitly_used, counted_for_groups, counted_for_nongroups,
2561 basic_block_needs, max_needs, group_size, group_mode, max_groups,
2562 max_nongroups, max_needs_insn, max_groups_insn, max_nongroups_insn,
2565 (init_reload): Delete code to compute base/index reg classes.
2566 (reload): Delete variable J.
2567 Delete code to manage basic_block_needs.
2568 Don't compute regs_explicitly_used.
2569 Allocate, initialize and free reg_old_renumber, pseudo_forbidden_regs,
2570 pseudo_previous_regs.
2571 Initialize bad_spill_regs_global.
2572 Don't call order_regs_for_reload here.
2573 Don't initialize spill_reg_order and n_spills.
2574 Don't forbid explicitly used regs to be used for spill regs.
2575 Change main loop to infinite loop, with explicit break statements.
2576 Make SOMETHING_CHANGED variable local to that loop.
2577 Don't initialize max_needs, max_groups, max_nongroups, max_needs_insn,
2578 max_groups_insn, max_nongroups_insn, group_size, group_mode.
2579 Make sure spilled_speudos is cleared before calling spill_hard_reg or
2581 Don't call dump_needs.
2582 Delete code to reset potential_reload_regs.
2583 Delete code to terminate loop conditional on the global needs variables
2584 showing no further needs.
2585 (calculate_needs_all_insns): Return void. All callers changed.
2586 Initialize somehing_needs_elimination here, not in reload.
2587 Delete avoid_return_reg kludge.
2588 (calculate_needs): Lose AVOID_RETURN_REG and GLOBAL args, return void.
2589 All callers changed.
2590 Initialize the group_mode and group_size elements of the arg CHAIN.
2591 Delete code to manage basic_block_needs.
2592 Operate on elements of CHAIN instead of global variables.
2593 Delete avoid_return_reg kludge.
2594 (find_tworeg_group): Lose GLOBAL arg, take CHAIN arg, return void.
2595 All callers changed.
2596 Operate on elements of CHAIN instead of global variables.
2597 Delete special SMALL_REGISTER_CLASSES code.
2598 Delete spill_failure code; now in new_spill_reg.
2599 (find_group): Lose GLOBAL arg, take CHAIN arg, return void.
2600 All callers changed.
2601 Operate on elements of CHAIN instead of global variables.
2602 (maybe_mark_pseudo_spilled): New static function.
2603 (find_reload_regs): Lose GLOBAL arg, take CHAIN arg, return void.
2604 All callers changed.
2605 Operate on elements of CHAIN instead of global variables.
2606 Call order_regs_for_reload here, not in reload.
2607 Initialize spill_reg_order and n_spills.
2608 Simplify test whether an asm insn is involved.
2609 Delete spill_failure code; now in new_spill_reg.
2610 Call maybe_mark_pseudo_spilled for everything marked as live in
2611 CHAIN. Merge CHAIN's used_spill_regs into the global variable
2613 (dump_needs): Take CHAIN arg. No longer static, to prevent the
2614 compiler from optimizing this function (now unused) away.
2615 Operate on elements of CHAIN instead of global variables.
2616 (possible_group_p): Lose MAX_GROUPS arg, take CHAIN arg. All callers
2618 Operate on elements of CHAIN instead of global variables.
2619 (count_possible_groups): Lose GROUP_SIZE, GROUP_MODE, MAX_GROUPS args,
2620 take CHAIN arg. All callers changed.
2621 Operate on elements of CHAIN instead of global variables.
2622 (new_spill_reg): Lose MAX_NEEDS, MAX_NONGROUPS, GLOBAL args, take
2623 CHAIN, NONGROUP args. Return void. All callers changed.
2624 Verify caller isn't trying to spill a pseudo.
2625 Simplify test for illegal reg, just use bad_spill_regs.
2626 Generate better error messages.
2627 Operate on elements of CHAIN instead of global variables.
2628 Mark spilled register in CHAIN's used_spill_regs element.
2629 Don't call spill_hard_reg.
2630 (spill_hard_reg): Lose GLOBAL arg, return void. All callers changed.
2631 Mark spilled hard regs in bad_spill_regs_global.
2632 Mark affected pseudos in spilled_pseudos, but don't spill them.
2633 (ior_hard_reg_set): New static function.
2634 (finish_spills): Return int. All callers changed.
2635 Compute spill_reg_order, n_spills and spill_regs here. Also update
2636 regs_ever_live for regs used as spills.
2637 For every pseudo in spilled_pseudos, spill it and mark the previous
2638 hard reg it had in pseudo_previous_regs. Compute which hard regs
2639 arseudo): New static function.
2640 (order_regs_for_reload): Take CHAIN arg. All callers changed.
2641 Initialize bad_spill_regs from bad_spill_regs_global, then merge any
2642 hard registers explicitly used across the current insn into the set.
2643 Compute hard_reg_n_uses taking only pseudos live across this insn
2645 Tweak sorting of potential_reload_regs.
2646 (compare_spill_regs): Delete function.
2647 (reload_as_needed): Don't sort the spill_regs array, it's computed
2648 in proper order in finish_spills.
2649 Delete avoid_return_reg kludge.
2650 Delete code to manage basic_block_needs.
2651 (allocate_reload_reg): Minor speed/readability tweaks.
2652 Operate on elements of CHAIN instead of global variables.
2653 (choose_reload_regs): Lose AVOID_RETURN_REG arg. All callers changed.
2654 Delete avoid_return_reg kludge.
2655 Initialize reload_reg_used from CHAIN's used_spill_regs element.
2656 Delete unused label FAIL.
2657 (reload_combine): Replce reload_address_index_reg_class with
2659 Don't use used_spill_regs to determine information about lifetime of
2662 Tue Oct 27 13:15:02 1998 Nick Clifton <nickc@cygnus.com>
2664 * toplev.c (display_help): Ignore empty target specific
2665 options, and if -W is also specified on the command line then
2666 display undocumented options.
2668 * config/arm/arm.c: Updated with changes in devo sources.
2669 * config/arm/arm.h: Updated with changes in devo sources.
2670 * config/arm/lib1funcs.asm: Updated with changes in devo sources.
2671 * config/arm/lib1thumb.asm: Add ELF support.
2673 Tue Oct 27 16:11:43 1998 David Edelsohn <edelsohn@mhpcc.edu>
2675 * collect2.c (aix64_flag): New variable.
2676 (main, case 'b'): Parse it.
2677 (GCC_CHECK_HDR): object magic number must match mode.
2678 (scan_prog_file): Only check for shared object if valid header.
2679 Print debugging if header/mode mismatch.
2681 Tue Oct 27 10:15:02 1998 Nick Clifton <nickc@cygnus.com>
2683 Added support for arm-elf-linux configuration, submitted by Philip
2684 Blundell <pb@nexus.co.uk>, and integrated this with the arm-elf
2685 code developed by Catherine Moore <clm@cygnus.com>. The following
2688 * configure.in: Add arm-*-linux-gnu, armv2-*-linux and arm-*-elf
2691 * configure: Regenerated.
2693 * config/arm/aout.h: Add default definitions of REGISTER_PREFIX,
2694 USER_LABEL_PREFIX and LOCAL_LABEL_PREFIX. Make other macro
2695 definitions conditional on their not having been already defined.
2697 * config/arm/lin1funcs.asm: Add ELF only macros to generate .size
2698 and .type directives, and add "(PLT)" qualification to function
2701 * config/arm/linux.h: Deleted. This file is now superceeded by
2702 either linux-elf.h or linux-aout.h.
2704 * config/arm/linux-gas.h: Define `inhibit_libc' if cross-compiling.
2705 (CLEAR_INSN_CACHE): New macro, currently disabled (awaiting kernel
2707 Move definitions from old linux.h file here.
2709 * config/arm/elf.h: New file. Generic ARM/ELF support.
2711 * config/arm/linux-aout.h: New file. Support for Linux with a.out.
2713 * config/arm/linux-elf.h: New file. Support for Linux with ELF.
2715 * config/arm/linux-elf26.h: New file. Support for Linux with ELF
2716 using the 26bit APCS.
2718 * config/arm/unknown-elf.h: New file. Support for OS'es other
2719 than Linux with ELF.
2721 * config/arm/t-arm-elf: New file. makefile fragment for arm-elf
2724 * config/arm/coff.h: Include aout.h for basic assembler macros.
2725 Add support for -mstructure_size_boundary=<n> command line option.
2727 * config/arm/arm.h: Add support for -mstructure_size_boundary=<n>
2728 command line option. Make macro definitions conditional on their
2729 not having been already defined.
2731 * config/arm/arm.c: Add support for -mstructure_size_boundary=<n>
2732 command line option.
2735 Tue Oct 27 08:56:46 1998 Andrew MacLeod <amacleod@cygnus.com>
2737 * dwarfout.c (ASM_OUTPUT_DWARF_STRING_NEWLINE): ASM_OUTPUT_DWARF_STRING
2738 has been changed to not include a newline. Use this macro instead.
2739 (output_enumeral_list, const_value_attribute, name_attribute,
2740 comp_dir_attribute, prototyped_attribute, producer_attribute,
2741 inline_attribute, pure_or_virtual_attribute, output_inheritance_die,
2742 dwarfout_file_scope_decl, generate_new_sfname_entry,
2743 generate_macinfo_entry, dwarfout_init, dwarfout_finish): Use
2744 ASM_OUTPUT_DWARF_STRING_NEWLINE macro.
2746 Mon Oct 26 13:35:02 1998 Richard Henderson <rth@cygnus.com>
2748 * combine.c (subst): Process the inputs to a parallel asm_operands
2751 Mon Oct 26 13:32:31 1998 Richard Henderson <rth@cygnus.com>
2753 * stmt.c (expand_asm_operands): Accept `=' or `+' at any position.
2755 Mon Oct 26 12:53:14 1998 Jeffrey A Law (law@cygnus.com)
2757 * tm.texi (ASM_OUTPUT_MAX_SKIP_ALIGN): Document.
2759 Mon Oct 26 00:36:58 PST 1998 Jeff Law (law@cygnus.com)
2761 * version.c: Bump for snapshot.
2763 Sun Oct 25 23:36:52 1998 Jason Merrill <jason@yorick.cygnus.com>
2765 * stmt.c (expand_fixup): Set fixup->before_jump to a
2766 NOTE_INSN_DELETED instead of a NOTE_INSN_BLOCK_BEG.
2768 Sun Oct 25 15:49:57 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2770 * Makefile.in (recog.o): Depend on toplev.h.
2771 (insn-emit.o): Depend on recog.h.
2772 (insn-peep.o): Depend on recog.h and insn-config.h.
2774 * combine.c (simplify_set): Remove unused variable `scratches'.
2776 * final.c (final_scan_insn): Wrap declaration of variables `vlen'
2777 and `idx' in macro conditional controlling their use.
2779 * genemit.c (main): Make the generated output file include
2780 recog.h. Don't have it declare `insn_operand_constraint', since
2781 we get it from recog.h.
2783 * genpeep.c (main): Make the generated output file include
2784 insn-config.h and recog.h.
2786 * recog.c: Include toplev.h.
2787 (extract_insn): Remove unused variable `p'.
2789 * regclass.c (fix_register): Add missing braces around initializer
2791 (allocate_reg_info): Move variable `i' into the scope where it is
2792 used. Change its type to `size_t'.
2794 Sun Oct 25 13:10:15 1998 Bernd Schmidt <crux@pool.informatik.rwth-aachen.de>
2796 * reload.c (push_reload): When merging reloads, make sure
2797 that reload_in_reg and reload_in are from the same reload in
2800 Sun Oct 25 12:07:00 1998 Mumit Khan <khan@xraylith.wisc.edu>
2802 * i386/crtdll.h (CPP_PREDEFINES): Fix typo.
2803 * i386/mingw32.h (CPP_PREDEFINES): Likewise.
2805 Fri Oct 23 23:42:03 1998 David Edelsohn <edelsohn@mhpcc.edu>
2807 * loop.c (loop_has_tablejump): New variable.
2808 (prescan_loop): Scan for it.
2809 (insert_bct): Replace explicit scan with use of it.
2810 * regclass.c (regclass): Restore loop variable j.
2811 (record_reg_classes): Deterine op_types modifiers and initialize
2812 classes[i] before matching constraints. Handle matching
2815 Fri Oct 23 13:55:48 1998 Jim Wilson <wilson@cygnus.com>
2817 * m32r/m32r.c (gen_split_move_double): Call alter_subreg. Delete
2820 Fri Oct 23 16:19:24 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2822 * mips.h (EXTRA_SPECS): Add missing initializers.
2824 Fri Oct 23 16:08:39 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2826 * sparc.h (EXTRA_SPECS): Add missing initializers.
2827 (sparc_defer_case_vector): Provide a prototype.
2829 * svr4.h (ASM_OUTPUT_ASCII): Cast STRING_LIMIT to (long) when
2830 comparing it to the result of a pointer subtraction.
2832 Fri Oct 23 15:34:14 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2834 * alpha.c (override_options): Use ISDIGIT(), not isdigit(). Cast
2835 the argument to (unsigned char).
2837 * alpha.h (EXTRA_SPECS): Add missing initializers.
2838 (ASM_GENERATE_INTERNAL_LABEL): Ensure the argument matches the
2841 Fri Oct 23 13:12:35 1998 Jeffrey A Law (law@cygnus.com)
2843 * flow.c (life_analysis_1): Enable "rescan" code after reload.
2844 (propagate_block): Delete dead code after reload.
2846 * sched.c (update_flow_info): Revert Oct 19, 1998 change. Brings
2847 back Oct 15, 1998 change.
2848 * haifa-sched.c (update_flow_info): Likewise.
2849 * flow.c (life_analysis_1): Delete CLOBBER insns after reload.
2851 * mn10200.md (truncated shift): Accept constant inputs too.
2853 Fri Oct 23 04:06:57 1998 Richard Earnshaw (rearnsha@arm.com)
2855 * machmode.h (mode_mask_array): No longer const.
2856 * rtl.c (init_rtl): Fully initialize it if EXTRA_CC_MODES defined.
2858 Fri Oct 23 11:19:06 1998 Martin v. Löwis <loewis@informatik.hu-berlin.de>
2860 * frame.c: Somewhat explain `FDE'.
2861 Suggested by Brendan Kehoe
2863 Fri Oct 23 00:56:11 1998 Jason Merrill <jason@yorick.cygnus.com>
2865 * expr.c (pending_chain): Move up.
2866 (save_expr_status): Do save pending_chain.
2867 (restore_expr_status): And restore it.
2868 * function.h (struct function): Add pending_chain.
2870 1998-10-23 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
2872 * reorg.c (relax_delay_slots): Fixed test for mostly_true_jump. The
2873 did not match the code.
2875 Fri Oct 23 00:07:01 1998 Bernd Schmidt <crux@pool.informatik.rwth-aachen.de>
2877 * regclass.c (regclass): Break out some code into new function
2878 scan_one_insn, and into regclass_init.
2879 (init_cost): New static variable, moved out of regclass.
2880 (regclass_init): Initialize it here, not in .
2881 (scan_one_insn): New static function, broken out of regclass.
2882 * recog.c (apply_change_group): Break out some code into new
2883 function insn_invalid_p.
2884 (insn_invalid_p): New static fn, broken out of apply_change_group.
2886 Thu Oct 22 22:34:42 1998 Jim Wilson <wilson@cygnus.com>
2888 * reload1.c (reload_as_needed): When rewrite POST_INC, verify
2889 reg_reloaded_contents matches incremented pseudo.
2891 * v850/v850.c (v850_reorg): Call alter_subreg. Delete subreg support.
2893 Fri Oct 23 11:11:56 1998 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
2895 * rtl.def (POST_MODIFY, PRE_MODIFY): New generalized operators for
2896 addressing modes with side effects. These are currently
2897 placeholders for the C4x target.
2899 Thu Oct 22 16:46:35 1998 Bernd Schmidt <crux@pool.informatik.rwth-aachen.de>
2901 * loop.c (express_from): Make sure that when generating a PLUS of
2902 a PLUS, any constant expression appears on the outermost PLUS.
2904 Thu Oct 22 15:46:23 1998 Per Bothner (bothner@cygnus.com)
2906 * Makefile.in (distdir-cvs, distdir-start): Clean up so it
2907 works if "$(srcdir)" != ".".
2909 Wed Oct 21 19:23:59 1998 Jim Wilson <wilson@cygnus.com>
2911 * expmed.c (store_bit_field): If need to add a SUBREG, then remove
2912 existing SUBREG if we can, otherwise abort.
2914 Wed Oct 21 09:58:51 1998 Mark Mitchell <mark@markmitchell.com>
2916 * c-common.c (c_apply_type_quals_to_decl): Don't crash when
2917 `restrict' is applied to a non-pointer variable.
2919 Wed Oct 21 09:18:58 1998 Mark Mitchell <mark@markmitchell.com>
2921 * invoke.texi: Document -flang-isoc9x.
2923 * Makefile.in (OBJS): Add splay-tree.o.
2924 (c-common.o): Depend on rtl.h.
2925 (splay-tree.o): List dependencies and provide build rule.
2927 * rtl.h (record_alias_subset): New function.
2928 * alias.c: Include splay-tree.h.
2929 (alias_set_entry): New type.
2930 (CHECK_ALIAS_SETS_FOR_CONSISTENCY): Remove.
2931 (DIFFERENT_ALIAS_SETS_P): Use mem_in_disjoint_alias_sets_p.
2932 (mems_in_disjoin_alias_sets_p): New function.
2933 (alias_set_compare): Likewise.
2934 (insert_subset_children): Likewise.
2935 (get_alias_set_entry): Likewise.
2937 * tree.h (TYPE_RESTRICT): New macro.
2938 (TYPE_UNQUALIFIED): New manifest constant.
2939 (TYPE_QUAL_CONST): Likewise
2940 (TYPE_QUAL_VOLATILE): Likewise.
2941 (TYPE_QUAL_RESTRICT): Likewise.
2942 (tree_type): Add restrict_flag. Reduce count of free bits.
2943 (DECL_POINTER_ALIAS_SET): New macro.
2944 (DECL_POINTER_ALIAS_SET_KNOWN_P): Likewise.
2945 (tree_decl): Add pointer_alias_set.
2946 (build_qualified_type): New function.
2947 (build_type_variant): Define in terms of build_qualified_type.
2948 * tree.c (set_type_quals): New function.
2949 (make_node): Initializae DECL_POINTER_ALIAS_SET.
2950 (build_type_attribute_variant): Use build_qualified_type and
2952 (build_type_variant): Rename, and modify, to become...
2953 (build_qualified_type): New function.
2954 (build_complex_type): Use set_type_quals.
2956 * c-tree.h (C_TYPE_OBJECT_P): New macro.
2957 (C_TYPE_FUNCTION_P): Likewise.
2958 (C_TYPE_INCOMPLETE_P): Likewise.
2959 (C_TYPE_OBJECT_OR_INCOMPLETE_P): Likewise.
2960 (c_apply_type_quals_to_decl): New function.
2961 (c_build_qualified_type): New function.
2962 (c_build_type_variant): Define in terms of c_build_qualified_type.
2963 (flag_isoc9x): Declare.
2964 * c-typeck.c (qualify_type): Use c_build_qualified_type.
2965 (common_type): Change to use TYPE_QUALS.
2966 (comptypes): Likewise.
2967 (convert_for_assignment): Likewise.
2968 * c-aux-info.c (gen_type): Likewise. Deal with `restrict'.
2969 * c-decl.c (flag_isoc9x): Define.
2970 (c_decode_option): Handle -flang-isoc9x.
2971 (grokdeclarator): Update to handle restrict. Use TYPE_QUALS,
2972 c_build_qualified_type, etc. Use c_apply_type_quals_to_decl.
2973 * c-lex.c (init_lex): Deal with restrict.
2974 (init_lex): Don't treat restrict as a reserved word in
2975 -traditional mode, or without -flang-isoc9x.
2976 * c-lex.h (rid): Add RID_RESTRICT.
2977 * c-parse.gperf (restrict, __restrict, __restrict__): Make
2978 equivalent to RID_RESTRICT.
2979 * c-parse.in (TYPE_QUAL): Update comment.
2980 * c-common.c: Include rtl.h.
2981 (c_find_base_decl): New function.
2982 (c_build_type_variant): Rename, and modify, to become ...
2983 (c_build_qualified_type): New function.
2984 (c_apply_type_quals_to_decl): Likewise.
2985 (c_get_alias_set): For INDIRECT_REFs, check to see if we can find
2986 a particular alias set for the reference.
2987 * toplev.c (documented_lang_options): Add -flang-isoc9x.
2989 Wed Oct 21 09:15:06 1998 Nick Clifton <nickc@cygnus.com>
2991 * config/arm/arm.h (TARGET_SWITCHES): Document arm specific
2992 command line switches.
2994 Tue Oct 20 10:04:51 1998 Graham <grahams@rcp.co.uk>
2996 * reload.c (loc_mentioned_in_p): Add missing braces to bind
2999 Mon Oct 19 16:34:05 1998 Tom Tromey <tromey@cygnus.com>
3001 * gcc.c (option_map): Added --classpath and --CLASSPATH.
3003 Tue Oct 20 10:59:02 1998 Gavin Romig-Koch <gavin@cygnus.com>
3005 * regclass.c (fix_register): Add error message.
3006 * invoke.texi (-fcall-used-REG,-fcall-saved-REG): Note the
3009 Tue Oct 20 10:12:17 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3011 * c-decl.c (warn_missing_noreturn): New global variable.
3012 (c_decode_option): Check for new flags -W{no-}missing-noreturn.
3013 (finish_function): Implement missing noreturn warning.
3015 * c-tree.h (warn_missing_noreturn): Declare extern.
3017 * invoke.texi: Document new flags.
3019 * toplev.c (documented_lang_options): Add description.
3021 Tue Oct 20 22:16:11 1998 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
3023 * config/c4x/c4x.c (c4x_parallel_process): Disable until BCT
3024 loop optimization stable for the C4x.
3025 (c4x_rptb_info_t, c4x_dump, c4x_rptb_in_range, c4x_rptb_unjumped_loop,
3026 c4x_rptb_find_comp_and_jump, c4x_rptb_loop_info_get,
3027 c4x_rptb_emit_init, c4x_rptb_process): Deleted (superceded by BCT
3029 (c4x_address_conflict): Be more paranoid when packing a volatile
3030 memref in a parallel load/store.
3032 Tue Oct 20 21:56:05 1998 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
3034 * config/c4x/c4x.md (repeat_block_top, repeat_block_end,
3035 repeat_block_filler): Deleted.
3036 (*ashlqi3_set, *ashrqi3_const_set, *ashrqi3_nonconst_clobber):
3037 Condition code not set if destination register from 'c' class.
3038 (*subbqi3_carry_clobber): Fix typo.
3040 1998-10-18 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
3042 * reorg.c (steal_delay_list_from_target) Check for insns that
3043 modify the condition codes and effect the direction of the jump
3046 Sat Oct 17 13:09:09 1998 Graham <grahams@rcp.co.uk>
3048 * function.c (purge_addressof_1): Replace call to
3049 emit_insns_before() with emit_insn_before().
3051 Mon Oct 19 19:34:03 1998 Mike Stump <mrs@wrs.com>
3053 * libgcc2.c (__pure_virtual): Call __terminate instead of _exit.
3055 Mon Oct 19 13:26:24 1998 Bernd Schmidt <crux@pool.informatik.rwth-aachen.de>
3057 * jump.c (sets_cc0_p): Compile only if HAVE_cc0.
3059 Mon Oct 19 11:40:56 1998 Jeffrey A Law (law@cygnus.com)
3061 * gcse.c (compute_hash_table): Correctly identify hard regs which are
3062 clobbered across calls.
3064 * loop.c (scan_loop): Be more selective about what invariants are
3065 moved out of a loop.
3067 Mon Oct 19 10:46:58 PDT 1998 Jeff Law (law@cygnus.com)
3069 * version.c: Bump for snapshot.
3071 Mon Oct 19 11:40:56 1998 Jeffrey A Law (law@cygnus.com)
3073 * libgcc2.c (eh_context_static): Do not call malloc to allocate the
3074 static eh_context structure.
3076 Mon Oct 19 10:45:40 1998 Bernd Schmidt <crux@pool.informatik.rwth-aachen.de>
3078 * combine.c (recog_for_combine): Lose PADDED_SCRATCHES arg. All
3080 (try_combine): Don't update max_scratch.
3081 * flow.c (max_scratch, num_scratch): Delete variables.
3082 (life_analysis_1): Don't initialize max_scratch.
3083 (propagate_block): Don't update max_scratch.
3084 (mark_set_1): Don't increment num_scratch.
3085 * regs.h (max_scratch): Delete declaration.
3087 Mon Oct 19 10:28:15 1998 Jeffrey A Law (law@cygnus.com)
3089 * reload1.c (reload_reg_free_before_p): Hack. Return 0 if EQUIV
3090 is nonzero. This is temporary!
3092 * sched.c (update_flow_info): Handle death notes made invalid by
3093 instruction splitting. Partially reverts Oct 15, 1998 patch.
3094 * haifa-sched.c (update_flow_info): Likewise.
3096 Sun Oct 18 17:31:26 1998 Jeffrey A Law (law@cygnus.com)
3098 * function.c (uninitialized_vars_warning): Do not warn for a VAR_DECL
3099 if it has a nonzero DECL_INITIAL.
3101 Sat Oct 17 23:18:08 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3103 * Makefile.in (flow.o): Depend on recog.h.
3105 * cpplib.h (directive_table): Add missing initializiers.
3106 (finclude): Change type of variable `bsize' to size_t.
3108 * cse.c (rtx_cost): Mark parameter `outer_code' with ATTRIBUTE_UNUSED.
3110 * dwarfout.h (dwarfout_label): Wrap prototype in macro RTX_CODE.
3112 * fix-header.c (lookup_std_proto): Cast the result of `strlen' to
3113 `int' when comparing against one.
3114 (cpp_file_line_for_message): Mark parameter `pfile' with
3116 (cpp_fatal): Mark parameter `pfile' with ATTRIBUTE_UNUSED.
3118 * flow.c: Include recog.h.
3119 (sbitmap_copy): Cast arguments 1 & 2 of `bcopy' to (PTR).
3121 * function.c (thread_prologue_and_epilogue_insns): Mark parameter
3122 `f' with ATTRIBUTE_UNUSED.
3123 (reposition_prologue_and_epilogue_notes): Likewise.
3125 * genopinit.c (gen_insn): Cast argument of ctype functions to
3128 * haifa-sched.c: Include recog.h.
3129 (blockage_range): Cast result of UNIT_BLOCKED macro to (int) when
3130 comparing against one.
3132 * libgcc2.a (__throw): Revert ATTRIBUTE_UNUSED change for now.
3134 * mips-tfile.c (parse_end): Cast the argument of ctype function to
3136 (parse_ent): Likewise.
3137 (parse_input): Likewise.
3139 * optabs.c (init_libfuncs): Likewise.
3141 * protoize.c (find_rightmost_formals_list): Likewise.
3143 * recog.h (const_double_operand): Fix typo in prototype.
3145 * tlink.c (scan_linker_output): Cast the argument of ctype
3146 function to `unsigned char'.
3148 * toplev.c (check_lang_option): Cast the result of `strlen' to
3149 `int' when comparing against one.
3151 Sat Oct 17 13:09:09 1998 Graham <grahams@rcp.co.uk>
3153 * gcse.c (dump_cuid_table): Correct typo.
3155 Sat Oct 17 11:02:47 1998 Nick Clifton <nickc@cygnus.com>
3157 * toplev.c (display_help): Prepend '-m' to target specific
3159 (check_lang_option): Ignore text after end of first word of a
3160 language specific option.
3162 Sat Oct 17 02:26:03 1998 Bernd Schmidt <crux@pool.informatik.rwth-aachen.de>
3164 * reload1.c (reg_used_by_pseudo): New static variable.
3165 (choose_reload_regs): Initialize it.
3166 Use it instead of testing spill_reg_order to determine whether a
3167 pseudo is live in a hard register across the current insn.
3168 Fix a typo in a reference to reload_reg_rtx.
3170 * flow.c (propagate_block): Replace code that computes and uses
3171 regs_sometimes_live with simpler code that just walks the set of
3172 currently live registers.
3174 * Makefile.in (insn-extract.o): Fix dependencies.
3175 * genextract.c (main): Generate includes for insn-config.h and
3177 Delete generation of declarations which are now in recog.h.
3178 * genrecog.c (main): Delete generation of definitions which are
3180 * local-alloc.c (block_alloc): Use extract_insn and the variables
3181 it sets up instead of looking up values by insn_code.
3182 * recog.c (recog_operand, recog_operand_loc, recog_dup_loc,
3183 recog_dup_num): Define here instead of generating the definition in
3185 (recog_n_operands, recog_n_dups, recog_n_alternatives,
3186 recog_operand_mode, recog_constraints, recog_operand_address_p):
3188 (extract_insn): New function.
3189 * recog.h (extract_insn): Declare function.
3190 (which_alternative, recog_n_operands, recog_n_dups,
3191 recog_n_alternatives, recog_operand_mode, recog_constraints,
3192 recog_operand_address_p): Declare variables.
3193 * regclass.c (n_occurrences): New static function.
3194 * reload.c (n_occurrences): Delete function.
3195 (find_reloads): Use extract_insn.
3196 * reload.h (n_occurrences): Delete declaration.
3198 Sat Oct 17 01:17:51 1998 Jeffrey A Law (law@cygnus.com)
3200 * reload1.c (reload_as_needed): Fix test for when to call
3201 update_eliminable_offsets.
3203 Fri Oct 16 20:40:50 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
3205 Fix consistency problems with reg_equiv_{mem,address};
3206 Improve reload inheritance;
3208 * reload.c (reload_out_reg): New variable.
3209 (loc_mentioned_in_p, remove_address_replacements): New functions.
3210 (remove_replacements): Deleted.
3211 (push_reload): Set reload_out_reg[i].
3212 When merging, also set reload_{in,out}_reg[i], and remove
3213 duplicate address reloads.
3214 (combine_reloads): Copy reload_out_reg[i].
3215 (find_reloads): Do make_memloc substitution also when
3216 reg_equiv_memory_loc[regno] and num_not_at_initial_offset
3218 Include *recog_operand_loc in commutativity operand changes.
3219 Generate optional output reloads.
3220 Delete reference to n_memlocs. Don't set *recog_operand_loc before
3221 processing operands. Call make_memloc in reg_equiv_address code.
3222 Set *recog_operand_loc only after processing operands, and only
3223 if replace is true. Return a value.
3224 When changing address reload types for operands that didn't get
3225 reloaded, use RELOAD_FOR_OPADDR_ADDRESS for
3226 RELOAD_FOR_INPADDR_ADDRESS / RELOAD_FOR_OUTADDR_ADDRESS reloads.
3227 Don't emit USEs for pseudo SUBREGs when not replacing.
3228 (find_reloads_address): Do make_memloc substitution also when
3229 reg_equiv_memory_loc[regno] and num_not_at_initial_offset
3231 (find_reloads_toplev): Likewise.
3232 Call make_memloc in reg_equiv_address code.
3233 (debug_reload_to_stream): Add code to output reload_out_reg.
3234 (make_memloc): Delete local variable i, ifdefed out code, and
3235 references to memlocs and n_memlocs.
3236 (memlocs, n_memlocs): Delete.
3237 (push_secondary_reload): Clear reload_out_reg.
3238 (find_reloads_address_1): Provide memrefloc argument to all calls
3239 to find_reloads_address.
3240 In AUTO_INC code, handle non-directly addressable equivalences properly.
3241 * reload.h (reload_out_reg, num_not_at_initial_offset): Declare.
3242 (find_reloads): Add return type.
3243 (remove_address_replacements, deallocate_reload_reg): Declare.
3244 * reload1.c (num_not_at_initial_offset): No longer static.
3245 (delete_address_reloads, delete_address_reloads_1): Likewise.
3246 (deallocate_reload_reg): New function.
3247 (spill_reg_stored_to): New array.
3248 (eliminate_regs): Don't substitute from reg_equiv_memory_loc.
3249 (eliminate_regs_in_insn): Move assignments of previous_offset and
3250 max_offset fields, and recalculation of num_not_at_initial_offset
3251 into new static function:
3252 (update_eliminable_offsets) .
3253 (reload_as_needed): Call update_eliminable_offsetss after calling
3255 Call forget_old_reloads_1 with contents of reloaded auto_inc
3256 expressions if the actual addressing can't be changed to match the
3258 (choose_reload_regs): For inheritance, replace
3259 reload_reg_free_before_p test with reload_reg_used_at_all test, and
3260 remove stand-alone reload_reg_used_at_all test.
3261 Use reload_out_reg to determine which reload regs have output reloads.
3262 Treat reload_override_in more similar to inherited reloads.
3263 Handle (subreg (reg... for inheritance.
3264 For flag_expensive_optimizations, add an extra pass to remove
3265 unnecessary reloads from known working inheritance.
3266 Delete obsolete code for pseudos replaced with MEMs.
3267 Handle inheritance from auto_inc expressions.
3268 (emit_reload_insns): If reload_in is a MEM, set OLD to
3270 Don't reload directly from oldequiv; if it's a pseudo with a
3271 stack slot, use reload_in[j].
3272 Check that reload_in_reg[j] is a MEM before replacing reload_in
3273 from reg_reloaded_contents.
3274 Include non-spill registers in reload inheritance processing.
3275 Also try to use reload_out_reg to set spill_reg_store /
3276 reg_last_reload_reg.
3277 In code to set new_spill_reg_store, use single_set to find out if
3278 there is a single set.
3279 Add code that allows to delete optional output reloads.
3280 Add code to allow deletion of output reloads that use no spill reg.
3281 At the end, set reload_override_in to oldequiv.
3282 Also call delete_output_reload if reload_out_reg is equal to old
3284 Add code to call delete_output_reload for stores with no matching load.
3285 Set / use spill_reg_stored_to.
3286 Handle case where secondary output reload uses a temporary, but
3287 actual store isn't found.
3288 When looking for a store of a value not loaded in order to call
3289 delete_output_reload, count_occurences should return 0 for no
3290 loads; but discount inherited input reloadill_reg_stored_to.
3291 Do checks for extra uses of REG. Changed all
3293 Use delete_address_reloads.
3294 (reload): Take return value of find_reloads into account.
3295 If a no-op set needs more than one reload, delete it.
3296 (reload_reg_free_before_p): RELOAD_FOR_INPUT
3297 can ignore RELOAD_FOR_INPUT_ADDRESS / RELOAD_FOR_INPADDR_ADDRESS
3298 for the same operand.
3299 (clear_reload_reg_in_use): Check for other reloads that keep a
3301 (reload_reg_free_for_value_p): handle RELOAD_FOR_OPERAND_ADDRESS /
3302 RELOAD_FOR_OPADDR_ADDR.
3303 Take into account when an address address reload is only needed
3304 for the address reload we are considering.
3305 (count_occurrences): Use rtx_equal_p for MEMs.
3306 (inc_for_reload): Return instruction that stores into RELOADREG.
3307 New argument two, IN, and rtx. Changed all callers.
3308 (calculate_needs_all_insns, reload_as_needed):
3309 Don't clear after_call for a CLOBBER.
3310 Keep track of how many hard registers need to be copied from
3311 after_call, and don't clear after_call before we have seen
3312 that much copies, or we see a different instruction.
3314 Fri Oct 16 10:58:23 1998 Jeffrey A Law (law@cygnus.com)
3316 * flow.c (find_basic_blocks_1): Do not delete unreachable blocks
3317 after reload has completed.
3319 Fri Oct 16 17:26:10 1998 Dave Brolley <brolley@cygnus.com>
3321 * cpplib.c (cpp_get_token): Replace whitespace that occurs between
3322 a macro name and the next token with a single blank if that whitespace
3323 is in a macro buffer and the next token is not '('.
3325 Fri Oct 16 15:44:02 1998 Dave Brolley <brolley@cygnus.com>
3327 * cccp.c (rescan): Handle multibyte chartacters ending in backslash.
3329 (skip_if_group): Ditto.
3330 (skip_to_end_of_comment): Ditto.
3332 (discard_comments): Ditto.
3333 (change_newlines): Ditto.
3335 Fri Oct 16 15:26:24 1998 Dave Brolley <brolley@cygnus.com>
3337 * c-lex.c (yylex): Fix unaligned access of wchar_t.
3339 Fri Oct 16 10:47:53 1998 Nick Clifton <nickc@cygnus.com>
3341 * config/arm/arm.h (TARGET_SWITCHES): Add --help documentation.
3342 (TARGET_OPTIONS): Add --help documentation.
3344 Fri Oct 16 11:49:01 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3346 * rtl.h (sets_cc0_p): Revert Oct 14 ATTRIBUTE_NORETURN change.
3348 Fri Oct 16 07:08:46 1998 Bruce Korb <korb@datadesign.com>
3350 * fixinc/* Moved in from ../contrib directory in preparation
3351 for integrating it into the normal build process. In particular,
3352 fixinc/Makefile.in must be config-ed into the build directory
3353 as fixinc/Makefile. Proposed patches to ./Makefile.in and
3354 ./configure.in will be "in the mail" momentarily.
3356 Fri Oct 16 08:13:46 1998 David S. Miller <davem@pierdol.cobaltnet.com>
3358 * cse.c (cse_basic_block): Fixup hash flushing loop so we do not
3359 accidently walk into the free list. Comment how that can happen.
3360 (invalidate): Fix indentation.
3362 Thu Oct 15 23:53:29 1998 Bernd Schmidt <crux@pool.informatik.rwth-aachen.de>
3363 Jeffrey A Law (law@cygnus.com)
3365 * flow.c (life_analysis_1): Do not clobber regs_ever_live after
3366 reload. Never perform rescans of the insn chain after reload.
3367 (propagate_block): Do not delete insn or create new autoinc addressing
3370 * jump.c (jump_optimize): Unconditionally use the code that was
3371 previously conditional on PRESERVE_DEATH_INFO_REGNO_P.
3372 * reload1.c (reload): When reloading is finished, delete all
3373 REG_DEAD and REG_UNUSED notes.
3374 (emit_reload_insns): Delete all code that was conditional on
3375 PRESERVE_DEATH_INFO_REGNO_P.
3376 (no_longer_dead_regs): Delete variable.
3377 (reload_cse_delete_death_notes): Delete function.
3378 (reload_cse_no_longer_dead): Delete function.
3379 (reload_cse_regs_1): Delete all code to handle deletion of death
3381 (reload_cse_noop_set_p): Likewise.
3382 (reload_cse_simplify_set): Likewise.
3383 (reload_cse_simplify_operands): Likewise.
3384 (reload_cse_move2add): Likewise.
3385 * reorg.c (used_spill_regs): Delete declaration.
3386 (max_label_num_after_reload): Delete declaration.
3387 (find_dead_or_set_registers): Don't assume that spill regs are
3388 dead at a CODE_LABEL.
3389 * rtlanal.c (dead_or_set_regno_p): Death notes are always accurate,
3391 * sched.c (sched_analyze_insn): Likewise.
3392 (update_flow_info): Likewise.
3393 * haifa-sched.c (sched_analyze_insn): Likewise.
3394 (update_flow_info): Likewise.
3395 * tm.texi (PRESERVE_DEATH_INFO_REGNO_P): Delete documentation.
3396 * toplev.c (max_label_num_after_reload): Delete variable.
3397 (rest_of_compilation): Don't set max_label_num_after_reload.
3398 Call life_analysis after reload_cse_regs if optimizing.
3399 * config/gmicro/gmicro.h: Delete comment referring to
3400 PRESERVE_DEATH_INFO_REGNO_P.
3401 * config/i386/i386.h: Likewise.
3402 * config/m88k/m88k.h: Likewise.
3403 * config/m32r/m32r.h (PRESERVE_DEATH_INFO_REGNO_P): Delete definition.
3404 * config/sh/sh.h: Likewise.
3406 Thu Oct 15 19:48:41 1998 David Edelsohn <edelsohn@mhpcc.edu>
3408 * loop.c (strength_reduce): Restore marking bct_p as
3410 * rs6000.c (optimization_options): Change #ifdef HAIFA to
3411 HAVE_decrement_and_branch_on_count.
3412 (small_data_operand): Remove TARGET_ELF condition for marking
3413 parameters ATTRIBUTE_UNUSED.
3415 Thu Oct 15 11:45:51 1998 Robert Lipe <robertl@dgii.com>
3417 * config/i386/sco5.h (MAX_OFILE_ALIGNMENT): Define.
3418 (SELECT_SECTION): Resync with svr4.h.
3420 Thu Oct 15 12:42:13 1998 David Edelsohn <edelsohn@mhpcc.edu>
3422 * loop.c (strength_reduce): Undo Oct 14 change marking bct_p
3425 Thu Oct 15 00:57:55 1998 Robert Lipe <robertl@dgii.com>
3427 * c-pragma.c (handle_pragma_token): Test for null tree before
3428 dereferencing TREE_CODE.
3430 Thu Oct 15 17:36:48 1998 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
3432 * config/c4x/c4x.c: Convert to use GEN_INT.
3433 (c4x_parallel_process): Rework to handle new repeat loop structure.
3435 * config/c4x/c4x.md: Convert to use GEN_INT.
3436 (rptb_end): Convert to use GE test. Replace uses with clobbers.
3437 (decrement_and_branch_on_count): Likewise.
3439 * config/c4x/c4x.h (REPEAT_BLOCK_PROCESS): Deleted hook now that
3440 loop.c has the desired functionality.
3441 (rc_reg_operand): New prototype.
3443 * config/c4x/t-c4x: Can now build all front ends.
3445 Wed Oct 14 23:27:08 1998 Didier FORT (didier.fort@fedex.com)
3447 * fixincludes: Fix up rpc/{clnt,svr,xdr}.h for SunOS.
3449 Wed Oct 14 22:13:28 1998 Joel Sherrill (joel@OARcorp.com)
3451 * Makefile.in (stmp-fixinc): Do not install assert.h if not desired.
3452 * config/t-rtems: Do not install assert.h -- use newlib's.
3454 Wed Oct 14 21:57:08 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
3456 * combine.c (combine_instructions): When finished, call init_recog.
3457 * regmove.c (optimize_reg_copy_3): Reject volatile MEMs.
3459 Wed Oct 14 16:10:22 1998 Per Bothner <bothner@cygnus.com>
3461 * toplev.c: If flag_syntax_only, don't open or write assembler file.
3463 Wed Oct 14 13:26:05 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3465 * cppalloc.c (memory_full): Mark function prototype with
3468 * demangle.h (collect_exit): Likewise.
3470 * fix-header.c (v_fatal, fatal): Likewise.
3472 * gcc.c (pfatal_with_name, pfatal_pexecute, fatal, fancy_abort):
3475 * gcov.c (print_usage): Likewise.
3477 * genattr.c (fatal, fancy_abort): Likewise.
3479 * genattrtab.c (fatal, fancy_abort): Likewise.
3481 * gencodes.c (fatal, fancy_abort): Likewise.
3483 * genconfig.c (fatal, fancy_abort): Likewise.
3485 * genemit.c (fatal, fancy_abort): Likewise.
3487 * genextract.c (fatal, fancy_abort): Likewise.
3489 * genflags.c (fatal, fancy_abort): Likewise.
3491 * genopinit.c (fatal, fancy_abort): Likewise.
3493 * genoutput.c (fatal, fancy_abort): Likewise.
3495 * genpeep.c (fatal, fancy_abort): Likewise.
3497 * genrecog.c (fatal, fancy_abort): Likewise.
3499 * libgcc2.c (__eprintf, __default_terminate, __sjthrow,
3500 __sjpopnthrow, __throw): Likewise.
3502 * objc/objc-act.c (objc_fatal): Likewise.
3504 * protoize.c (usage, aux_info_corrupted,
3505 declare_source_confusing): Likewise.
3507 * rtl.c (dump_and_abort): Likewise.
3509 * rtl.h (sets_cc0_p): Likewise.
3511 * toplev.c (float_signal, pipe_closed): Likewise.
3513 1998-10-14 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
3515 * dwarf2out.c (expand_builtin_dwarf_reg_size): Look at all ranges
3516 when generating the decision tree for the general case.
3518 * config/m68k/m68k.h (HARD_REGNO_MODE_OK): Don't accept modes
3519 wider that 12 bytes in fpu regs or wider than 8 byte in fpa regs.
3521 Wed Oct 14 11:14:02 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3523 * Makefile.in (sched.o): Depend on recog.h.
3525 * alias.c (REG_BASE_VALUE): Cast the result of REGNO() macro to
3526 (unsigned) when comparing against one.
3527 (find_base_value): Likewise.
3528 (record_base_value): Cast variable `regno' to (unsigned) when
3529 comparing against one. Cast the result of REGNO() macro to
3530 (unsigned) when comparing against one.
3531 (memrefs_conflict_p): Change type of variables `r_x' and `r_y' to
3533 (init_alias_analysis): Add unsigned variable `ui'. Use it as loop
3534 variable where an unsigned index is needed.
3536 * caller-save.c (init_caller_save): Cast `-1' to (enum insn_code)
3537 before comparing against one.
3539 * collect2.c: Add prototypes for functions `error', `fatal' and
3540 `fatal_perror'. Make these functions take variable arguments
3541 instead of faking it with a fixed number of args.
3542 (write_c_file_stat): Cast the argument of ctype macro to (unsigned
3545 * combine.c (can_combine_p): Mark parameter `pred' with
3547 (find_split_point): Cast variable `src' to (unsigned
3548 HOST_WIDE_INT) when comparing against one.
3549 (simplify_rtx): Cast 1 to (unsigned HOST_WIDE_INT) in shift.
3550 (simplify_logical): Likewise.
3551 (force_to_mode): Cast result of INTVAL() macro to (unsigned
3552 HOST_WIDE_INT) when comparing against one. Cast 1 to (unsigned
3553 HOST_WIDE_INT) in shift.
3554 (simplify_and_const_int): Cast result of INTVAL() macro to
3555 `unsigned HOST_WIDE_INT' when comparing against one.
3556 (merge_outer_ops): Cast variable const0 to `unsigned
3557 HOST_WIDE_INT' when comparing against the result of
3558 GET_MODE_MASK() macro.
3559 (simplify_comparison): Likewise for variable `c0'. Cast variable
3560 `const_op' to `unsigned HOST_WIDE_INT' when comparing against
3561 one. Cast `1' to `unsigned HOST_WIDE_INT' in shift. Cast the
3562 result of `GET_MODE_MASK()/2' to `HOST_WIDE_INT' when comparing
3563 against one. Cast `1' to `unsigned HOST_WIDE_INT' in shift. Cast
3564 result of INTVAL() macro to `unsigned HOST_WIDE_INT' when
3565 comparing against one.
3566 (distribute_notes): Wrap variable `cc0_setter' in macro `HAVE_cc0'.
3568 config/mips/mips.c (gen_int_relational): Cast result of INTVAL()
3569 macro to `unsigned HOST_WIDE_INT' when comparing against one.
3570 (output_block_move): Cast `sizeof' expression to (int) when
3571 comparing against one.
3572 (function_arg): Cast BITS_PER_WORD to `unsigned' when comparing
3574 (save_restore_insns): Cast `base_offset' to `long' to match format
3575 specifier in fprintf.
3577 * config/mips/mips.h (Pmode): Cast the result of `Pmode' macro
3578 to `enum machine_mode'.
3580 * flow.c (life_analysis_1): Remove unused variable `insn'.
3582 * gcc.c (translate_options): Move variables `j' and `k' into the
3583 scope in which they are used. Change their types to `size_t'.
3584 (set_spec): Cast the argument of ctype macro to `unsigned char'.
3585 (read_specs): Likewise.
3586 (process_command): Cast `sizeof' to (int) when comparing against one.
3587 (do_spec_1): Cast the argument of ctype macro to `unsigned char'.
3588 (handle_braces): Cast both sides of `==' expression to `long' to
3589 ensure sign matching.
3590 (main): Cast variable `i' to `int' when comparing against one.
3592 * gcov-io.h (__fetch_long): Change type of parameter `bytes' from
3593 int to size_t. Cast variable `i' to size_t when comparing against
3596 * genattrtab.c (convert_set_attr_alternative): Remove unused
3597 parameter `insn_code'. All callers changed.
3598 (convert_set_attr): Likewise.
3600 * genrecog.c (add_to_sequence): Cast result of XVECLEN() macro to
3601 size_t when comparing against one. Likewise for variable `len'.
3603 * global.c (global_alloc): Cast variable `max_regno' to size_t
3604 when comparing against one. Likewise for variable `max_allocno'.
3606 * jump.c (sets_cc0_p): Mark parameter `x' with ATTRIBUTE_UNUSED.
3608 * local-alloc.c (validate_equiv_mem_from_store): Mark parameter
3609 `set' with ATTRIBUTE_UNUSED.
3610 (find_free_reg): Cast `sizeof' expression to (int) when comparing
3613 * loop.c (count_loop_regs_set): Remove unused variable `dest'.
3614 (strength_reduce): Mark parameter `bct_p' with ATTRIBUTE_UNUSED.
3615 (get_condition): Cast variable `const_val' to `unsigned
3616 HOST_WIDE_INT' when comparing against one. Cast unsigned
3617 expression to HOST_WIDE_INT when comparing against one.
3618 (insert_loop_mem): Mark parameter `data' with ATTRIBUTE_UNUSED.
3619 (load_mems_and_recount_loop_regs_set): Cast variable `nregs' to
3620 `unsigned' when comparing against one.
3622 * protoize.c (is_id_char): Change type of parameter `ch' to
3624 (munge_compile_params): Cast argument of ctype macro to (const
3626 (process_aux_info_file): Cast variable `aux_info_size' to int when
3627 comparing against one.
3628 (forward_to_next_token_char): Cast argument of ctype macro to
3629 `const unsigned char'.
3630 (edit_formals_lists): Likewise.
3631 (find_rightmost_formals_list): Likewise.
3632 (add_local_decl): Likewise.
3633 (add_global_decls): Likewise.
3634 (edit_fn_definition): Likewise.
3635 (do_cleaning): Likewise.
3636 (scan_for_missed_items): Likewise.
3637 (edit_file): Cast variable `orig_size' to (int) when comparing
3639 (main): Cast argument of ctype macro to `const unsigned char'.
3641 * recog.c (const_int_operand): Mark parameter `mode' with
3644 * regclass.c (record_reg_classes): Change type of variable `c' to
3645 `unsigned char'. Cast `char' array index to `unsigned char'.
3647 * reload.c (push_secondary_reload): Cast argument to
3648 REG_CLASS_FROM_LETTER() macro to `unsigned char'.
3650 * reload1.c (calculate_needs): Cast `char' array index to
3652 (set_label_offsets): Change type of variable `i' to unsigned int.
3653 Cast result of XVECLEN() macro to unsigned when comparing against
3655 (mark_not_eliminable): Change type of variable `i' to unsigned.
3656 (order_regs_for_reload): Likewise. Cast `max_regno' to unsigned
3657 when comparing against one.
3658 (reload_as_needed): Cast macro NUM_ELIMINABLE_REGS to (int) when
3659 comparing against one.
3660 (choose_reload_regs): Hide unused label `fail'.
3661 (reload_cse_simplify_operands): Cast `char' array index to
3663 (reload_combine_note_store): Mark parameter `set' with
3664 ATTRIBUTE_UNUSED. Cast UNITS_PER_WORD to unsigned when comparing
3666 (reload_cse_move2add): Remove unused variable `src2'.
3668 * sched.c: Include recog.h.
3669 (sched_note_set): Remove unused parameter `b'. All callers
3671 (split_hard_reg_notes): Likewise for parameter `orig_insn'.
3672 (blockage_range): Cast result of UNIT_BLOCKED() macro to (int)
3673 when comparing against one.
3675 * stupid.c (stupid_find_reg): Mark parameter `changes_size' with
3676 ATTRIBUTE_UNUSED. Cast `sizeof' expression to (int) when
3677 comparing against one.
3679 * unroll.c (precondition_loop_p): Remove unused parameter
3680 `loop_end'. All callers changed.
3682 Tue Oct 13 22:12:11 1998 Bernd Schmidt <crux@pool.informatik.rwth-aachen.de>
3684 * reload1.c (maybe_fix_stack_asms): New static function.
3687 * reload.h (compute_use_by_pseudos): Declare.
3689 * reload1.c (spilled_pseudos, insns_need_reload): New variables.
3690 (something_needs_reloads): Delete variable.
3691 (finish_spills): New function.
3692 (compute_use_by_pseudos): New function.
3694 (delete_caller_save_insns): Lose argument FIRST. All callers changed.
3695 Use the reload_insn_chain instead of walking the rtl directly.
3697 (reload): Allocate and free spilled_pseudos.
3698 Ensure that all calls of spill_hard_reg are followed by a call to
3700 Use the insns_need_reload list instead of something_needs_reloads
3701 to find out if reload_as_needed must be called.
3702 Clear unused_insn_chains at the end.
3704 (calculate_needs_all_insns): Lose FIRST parameter. All callers
3706 Delete code to keep track of current basic block.
3707 Walk reload_insn_chain instead of the rtl structure. Build the
3708 insns_need_reload chain.
3709 Remember which insns need reloading/elimination by setting the
3710 appropriate fields in struct insn_chain, not by putting modes on the
3713 (calculate_needs): Lose THIS_BLOCK arg. Accept arg CHAIN instead of
3714 arg INSN. All callers changed.
3715 Delete declaration of struct needs.
3716 Don't set something_needs_reloads.
3717 Record insn needs in the CHAIN argument.
3719 (spill_hard_reg): Record the affected pseudos in spilled_pseudos.
3721 (reload_as_needed): Lose FIRST arg. All callers changed.
3722 Walk the reload_insn_chain instead of the rtx structure.
3723 Delete code to keep track of current basic block.
3724 Rename one of the NEXT variables to OLD_NEXT.
3726 (allocate_reload_reg): Accept arg CHAIN instead of arg INSN. All
3728 (choose_reload_regs): Likewise.
3730 (emit_reload_insns): Replace INSN and BB args with arg CHAIN. All
3733 * caller-save.c (MOVE_MAX_WORDS): New macro. Use it throughout
3734 instead of (MOVE_MAX / UNITS_PER_WORD) computation.
3735 (hard_regs_live, hard_regs_need_restore): Delete variables.
3736 (n_regs_saved): Now static.
3737 (referenced_regs, this_insn_sets): New variables.
3739 (setup_save_areas): Restructure the code a bit.
3741 (restore_referenced_regs): Delete function.
3742 (mark_referenced_regs): New function, similar to the old
3743 restore_referenced_regs, but mark registers in referenced_regs.
3745 (clear_reg_live): Delete function.
3746 (mark_set_regs): Renamed from set_reg_live. All callers changed.
3747 Only mark registers in this_insn_sets.
3749 (save_call_clobbered_regs): Rework this function to walk the
3750 reload_insn_chain instead of using the list of instructions directly.
3751 Delete code to keep track of register lives, compute live regs on the
3752 fly from information in the chain.
3753 Instead of calling restore_referenced_regs, use mark_referenced_regs,
3754 then walk the set it computes and call insert_restore as appropriate.
3756 (insert_restore): Lose INSN and BLOCK args. Add CHAIN arg. All
3758 Restructure the code a bit. Test hard_regs_saved instead of
3759 hard_regs_need_restore.
3760 (insert_save): Lose INSN and BLOCK args. Add CHAIN and TO_SAVE
3761 args. All callers changed.
3762 Restructure the code a bit. Use TO_SAVE to determine which regs to
3763 save instead of more complicated test.
3764 (insert_one_arg): Lose INSN and BLOCK args. Add CHAIN arg. All
3766 Create a new insn_chain structure for the new insn and place it
3769 * rtl.texi: Update documentation to reflect that reload no longer
3770 puts modes on the insns.
3772 1998-10-14 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
3774 * function.c (purge_addressof_1): Force the first argument of a
3775 CALL insn to memory.
3777 Wed Oct 14 00:38:40 1998 Jeffrey A Law (law@cygnus.com)
3779 * rtl.h: Delete duplicate prototypes. Add some missing
3781 * rtlanal.c: (for_each_rtx): Formatting tweak.
3783 1998-10-13 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
3785 * real.c (emdnorm and etoasc): Disable round to even for c4x target
3786 to be compatible with TI compiler.
3788 * Makefile.in (USER_H): Add va-c4x.h to definition.
3790 Tue Oct 13 23:03:37 1998 Richard Henderson <rth@cygnus.com>
3792 * function.c (purge_addressof_1): Fix typo in inequality: do
3793 bitfield optimization for equal mode sizes.
3794 * expmed.c (store_bit_field): Don't take subregs of subregs in
3795 the movstrict case. Tidy a potential problem in the multi-word case.
3796 (extract_bit_field): Likewise.
3798 Tue Oct 13 22:12:11 1998 Bernd Schmidt <crux@pool.informatik.rwth-aachen.de>
3800 * flow.c (find_basic_blocks): Emit NOPs after normal calls in this
3802 Compute max_uid_for_flow by calling get_max_uid after the scan.
3803 (find_basic_blocks_1): Don't emit NOPs here.
3805 Tue Oct 13 22:05:49 1998 Richard Henderson <rth@cygnus.com>
3807 * alias.c (base_alias_check): Accept new args for the modes of the
3808 two references. Use them to determine if an AND can overlap. Update
3810 (memrefs_conflict_p): Assume sizes are aligned, and uses them
3811 to determine if an AND can overlap.
3813 Tue Oct 13 17:51:04 1998 Jim Wilson <wilson@cygnus.com>
3815 * config/m68k/m68k.h (HARD_REGNO_MODE_OK): For FP regs, add REGNO >= 16
3816 check. Add comment to document problems with TARGET_SUN_FPA version
3818 * config/m68k/m68k.md (movxf+1): Support 'r'/'r' moves.
3820 Tue Oct 13 17:46:18 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3822 * Makefile.in (gencheck.o): Depend on gansidecl.h.
3824 * c-common.c (print_char_table): Add missing initializers.
3825 (scan_char_table): Likewise.
3826 (time_char_table): Likewise.
3828 * c-decl.c (c_decode_option): Mark parameter `argc' with
3830 (declare_parm_level): Mark parameter `definition_flag' with
3833 * c-lex.c (readescape): Use `(unsigned)1' in shift.
3834 (yylex): Likewise. Cast `sizeof' to an (int) when comparing
3837 * calls.c (store_one_arg): Remove unused parameter `fndecl'. All
3839 (emit_call_1): Mark parameters `fndecl' and `funtype' with
3841 (expand_call): Cast result of MIN() to (unsigned int) when
3842 comparing against an unsigned value.
3844 * cccp.c (pcfinclude): Remove unused parameter `limit'. All
3846 (make_definition): Remove unused parameter `op'. All callers
3848 (create_definition): Cast REST_EXTENSION_LENGTH to (long) when
3849 comparing against the result of pointer arithmetic.
3851 * config/mips/mips.h (FUNCTION_ARG_BOUNDARY): Cast to (unsigned)
3852 when comparing against one.
3854 * dwarf2out.c (dwarf2out_frame_debug): Cast REGNO() and
3855 HARD_FRAME_POINTER_REGNUM to (unsigned) when comparing against
3857 (output_die): Move variable `i' into the scope in which it is
3858 used. Change its type to `unsigned'.
3859 (output_die): Cast the result of `strlen' to (int) when passing it
3860 to ASM_OUTPUT_ASCII().
3861 (output_pubnames): Likewise.
3862 (output_line_info): Likewise.
3864 * emit-rtl.c (global_rtl): Add missing initializers.
3866 * explow.c (promote_mode): Mark parameter `for_call' with
3869 * expmed.c (expand_shift): Cast the result of GET_MODE_BITSIZE to
3870 `unsigned HOST_WIDE_INT' when comparing against one.
3871 (synth_mult): Change type of variable `cost' to int.
3872 (emit_store_flag): Use `(unsigned HOST_WIDE_INT) 1' in shift.
3874 * expr.c (copy_blkmode_from_reg): Cast BITS_PER_WORD to (unsigned)
3875 when comparing against one.
3876 (get_inner_reference): Change variable `alignment' to unsigned.
3877 (expand_expr): Cast the result of GET_MODE_ALIGNMENT to (unsigned
3878 int) when comparing against one.
3879 (expand_builtin_setjmp): Change type of variable `i' to size_t.
3881 * fold-const.c (div_and_round_double): Cast BASE to
3882 (HOST_WIDE_INT) when comparing against one.
3884 * gencheck.c: Include gansidecl.h.
3885 (main): Mark parameter `argv' with ATTRIBUTE_UNUSED.
3887 * optabs.c (gen_cond_trap): Mark parameters `code', `op2' and
3888 `tcode' with ATTRIBUTE_UNUSED.
3890 * real.c (edivm): Cast constant value to (unsigned long) in
3891 expression compared against an unsigned value.
3893 * stmt.c (expand_return): Cast BITS_PER_WORD to (unsigned) when
3894 comparing against one.
3895 (expand_end_case): Cast CASE_VALUES_THRESHOLD to (unsigned int)
3896 when comparing against one.
3898 * stor-layout.c (mode_for_size): Cast MAX_FIXED_MODE_SIZE to
3899 (unsigned int) when comparing against one. Likewise for
3901 (smallest_mode_for_size): Likewise.
3902 (save_storage_status): Mark parameter `p' with ATTRIBUTE_UNUSED.
3903 (restore_storage_status): Likewise.
3905 * toplev.c (debug_args): Add missing initializer.
3906 (f_options): Spelling correction. Add missing initializers.
3907 (documented_lang_options): Likewise.
3908 (debug_end_source_file): Mark parameter `lineno' with
3911 * tree.c (valid_machine_attribute): Mark parameters `attr_args',
3912 `decl' and `type' with ATTRIBUTE_UNUSED.
3914 * varasm.c (decode_reg_name): Cast `sizeof' expression to (int)
3915 when comparing against one.
3916 (assemble_variable): Mark parameter `top_level' with
3918 (assemble_external_libcall): Mark parameter `fun' with
3920 (output_constant_pool): Mark parameters `fnname' and `fndecl' with
3923 Tue Oct 13 12:51:04 1998 Nick Clifton <nickc@cygnus.com>
3925 * config/v850/lib1funcs.asm (_udivsi3): Add .type declaration.
3926 Replace use of r5 with use of r19.
3928 * config/v850/v850.h (LINK_POINTER_REGNUM): Define.
3930 * config/v850/v850.c (compute_register_save_size): Allow for the
3931 fact that helper functions save all registers, not just those used
3934 Replace constant 31 with macro LINK_POINTER_REGNUM.
3936 * config/v850/v850.md: Use 'indirect_operand' rather than
3937 'memory_operand' for bit test/set/clear patterns.
3939 Tue Oct 13 11:49:14 1998 Jason Merrill <jason@yorick.cygnus.com>
3941 * mips/iris6.h (ASM_OUTPUT_WEAK_ALIAS): Call ASM_GLOBALIZE_LABEL.
3942 * varasm.c (assemble_start_function et al): Don't call
3943 ASM_GLOBALIZE_LABEL for weak symbols.
3945 Tue Oct 13 11:37:45 1998 Nick Clifton <nickc@cygnus.com>
3947 * cse.c (equiv_constant): Check for NULL return from
3948 gen_lowpart_if_possible().
3950 Tue Oct 13 11:24:51 1998 Jeffrey A Law (law@cygnus.com)
3952 * mn10200.md (addsi3, subsi3, negsi2): Only allow register operands.
3954 * collect2.c (main): Pass -EL/-EB through to the compiler.
3956 1998-10-12 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
3958 * expr.c (push_block): Handle targets where the stack grows
3959 to higher addresses, but args grow to lower addresses and
3960 ACCUMULATE_OUTGOING_ARGS is not defined.
3962 Tue Oct 13 08:00:52 1998 Catherine Moore <clm@cygnus.com>
3964 * config/v850/v850.c (print_operand): Extend meaning
3965 of 'c' operands to support .vtinherit.
3967 Tue Oct 13 21:38:35 1998 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
3969 * config/c4x/c4x.c: Convert to gen_rtx_FOO.
3970 Added ATTRIBUTE_UNUSED to unused function arguments.
3971 (rc_reg_operand): New predicate.
3972 (c4x_rptb_insert): New function.
3973 (c4x_rptb_nop_p): Recognize modified rptb_top pattern.
3974 (c4x_optimization_options): New function.
3976 * config/c4x/c4x.md: Convert to gen_rtx_FOO.
3977 (decrement_and_branch_on_count): New pattern.
3978 (rptb_top): Modified pattern to work with BCT optimization.
3980 * config/c4x/c4x.h (RC_REG): New register class.
3981 (rc_reg_operand): Define prototype.
3982 (IS_RC_REG): New macro.
3983 (IS_RC_OR_PSEUDO_REG): New macro.
3984 (IS_RC_OR_PSEUDO_REGNO): New macro.
3985 (OPTIMIZATION_OPTIONS): Define.
3987 Mon Oct 12 19:57:34 1998 Jason Merrill <jason@yorick.cygnus.com>
3989 * collect2.c (extract_init_priority): No priority is 65535.
3991 Mon Oct 12 12:10:37 1998 Alexandre Oliva <oliva@dcc.unicamp.br>
3993 * Makefile.in (build_tooldir): new variable, same as old
3994 $(tooldir), but without depending on $(libdir)/$(unlibsubdir)
3995 (GCC_FOR_TARGET): add -B$(build_tooldir)/bin/
3996 (bootstrap, bootstrap2, bootstrap3, bootstrap4): ditto
3998 * configure.in (gxx_include_dir): set default based on unlibsubdir
3999 * Makefile.in (tooldir): ditto
4000 (cccp.o, cpplib.o): use unlibsubdir implicitly through
4001 gxx_include_dir, includedir and tooldir
4002 (protoize.o, unprotoize.o): ditto
4004 Mon Oct 12 10:50:44 1998 Nick Clifton <nickc@cygnus.com>
4006 * config/arm/arm.md: Replace (reg 24) with (reg:CC 24).
4008 * config/arm/thumb.c (thumb_override_options): Add warning about
4009 PIC code not being supported just yet.
4011 Sun Oct 11 16:49:15 EDT 1998 John Wehle (john@feith.com)
4013 * flow.c: Update comment.
4014 (notice_stack_pointer_modification): New static function.
4015 (record_volatile_insns): Use it.
4016 (mark_regs_live_at_end): Mark the stack pointer as alive
4017 at the end of the function if current_function_sp_is_unchanging
4019 (life_analysis_1): Set current_function_sp_is_unchanging.
4020 * function.c: Define it.
4021 (init_function_start): Initialize it.
4022 * output.h: Declare it.
4023 * reorg.c (fill_simple_delay_slots, dbr_schedule): Mark
4024 the stack pointer as alive at the end of the function if
4025 current_function_sp_is_unchanging is set.
4026 * i386.c (ix86_epilogue): Optimize the restoring
4027 of the stack pointer.
4029 Mon Oct 12 01:22:53 PDT 1998 Jeff Law (law@cygnus.com)
4031 * version.c: Bump for snapshot.
4033 Sun Oct 11 23:04:30 1998 Robert Lipe <robertl@dgii.com>
4035 * c-pragma.c (handle_pragma_token): If passed a token instead
4036 of a tree, use that as the pack value.
4038 Sun Oct 11 14:21:14 1998 Mark Mitchell <mark@markmitchell.com>
4040 * flow.c (find_basic_blocks_1): Fix prototype.
4042 Sun Oct 11 05:03:41 1998 Ken Raeburn <raeburn@cygnus.com>
4044 * tree.h (DECL_NO_CHECK_MEMORY_USAGE): New macros.
4045 (struct tree_decl): New fields no_check_memory_usage.
4046 * c-common.c (enum attrs): Add A_NO_CHECK_MEMORY_USAGE.
4047 (init_attributes): Register it as a new attribute.
4048 (decl_attributes): Set flags on functions given that attribute.
4049 * c-decl.c (duplicate_decls): Merge new attribute.
4050 * expr.h (current_function_check_memory_usage): Declare new var.
4051 * calls.c, expr.c, function.c, stmt.c, alpha.c, clipper.c, m88k.c,
4052 pa.c, sparc.c: Replace uses of flag_check_memory_usage with
4053 current_function_check_memory_usage.
4054 * function.h: Add field to struct function.
4055 * function.c (current_function_check_memory_usage): Define it.
4056 (push_function_context_to, pop_function_context_from): Save and
4058 (expand_function_start): Set it, based on global flag and function
4061 * expr.c (expand_expr, case VAR_DECL): In memory-checking code, do
4062 check non-automatic variables, to permit detection of writes to
4063 read-only locations in embedded systems without memory management.
4064 * calls.c (store_one_arg): Use ARGS_SIZE_RTX to get size of argument
4065 when emitting chkr_set_right_libfunc call, even if the argument is
4066 BLKmode or variable-sized; don't abort.
4068 * optabs.c (init_optabs): Create Checker and __cyg_profile_*
4069 symbols in Pmode, not VOIDmode.
4071 Sun Oct 11 01:03:05 1998 Zack Weinberg <zack@rabi.phys.columbia.edu>
4073 * cppexp.c: When forcing unsigned comparisons, cast both sides
4076 * cpphash.h: Move static declaration of hashtab[]...
4077 * cpphash.c: ...here.
4079 * cpplib.c: Cast difference of two pointers to size_t before
4080 comparing it to size_t. Cast signed to unsigned
4081 before comparing to size_t. (FIXME: struct argdata should use
4082 unsigned buffer sizes.)
4083 * cpplib.h (struct cpp_reader): Declare token_buffer_size as
4084 unsigned int. (CPP_WRITTEN): Cast return value to size_t.
4085 (CPP_RESERVE): Parenthesize N for evaluation order, cast to
4086 size_t before comparison.
4088 Sun Oct 11 00:15:29 1998 Jeffrey A Law (law@cygnus.com)
4090 * flow.c (find_basic_blocks): Delete "live_reachable_p" argument.
4091 (find_basic_blocks_1): Similarly.
4092 * output.h (find_basic_blocks): Fix prototype.
4093 * gcse.c, toplev.c: Don't pass "live_reachable_p" argument to
4094 find_basic_blocks anymore.
4096 Sat Oct 10 22:00:34 1998 Richard Henderson <rth@cygnus.com>
4098 * basic-block.h (EXECUTE_IF_SET_IN_SBITMAP): New macro.
4099 (sbitmap_free, sbitmap_vector_free): New macros.
4100 * output.h (rtl_dump_file): Declare.
4102 Sat Oct 10 17:01:42 1998 Jeffrey A Law (law@cygnus.com)
4104 * regmove.c (optimize_reg_copy_3): Honor TRULY_NOOP_TRUNCATION.
4106 Fri Oct 9 22:08:05 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4108 * fp-bit.c (SFtype): Don't implicitly use int in declaration.
4110 (_fpdiv_parts): Remove unused parameter `tmp', all callers changed.
4111 (divide): Remove unused variable `tmp'.
4112 (si_to_float): Cast numeric constant to (SItype) before comparing
4115 Fri Oct 9 16:03:19 1998 Graham <grahams@rcp.co.uk>
4117 * flow.c (print_rtl_with_bb): Changed type of in_bb_p to match use.
4118 * gcc.c (add_preprocessor_option): Correct typo when allocating
4119 memory, sizeof() argument had one too many `*'.
4120 (add_assembler_option): Likewise.
4121 (add_linker_option): Likewise.
4122 * gcov.c (output_data): Likewise.
4123 * local-alloc.c (memref_used_between_p): Likewise.
4124 (update_equiv_regs): Likewise.
4125 * loop.c (strength_reduce): Likewise.
4126 * reg-stack.c (record_asm_reg_life): Likewise.
4127 (subst_asm_stack_reg): Likewise.
4128 * reorg.c (dbr_schedule): Likewise.
4130 Fri Oct 9 15:57:51 1998 Bernd Schmidt <crux@Pool.Informatik.RWTH-Aachen.DE>
4132 * flow.c (life_analysis_1): Break out some functions.
4133 (find_basic_blocks_1): Likewise. Also move some variables out and
4135 Rename NONLOCAL_LABEL_LIST arg to NONLOCAL_LABELS and initialize
4136 new static var nonlocal_label_list with it.
4137 (active_eh_region, nested_eh_region, label_value_list,
4138 nonlocal_label_list): New static variables.
4139 (make_edges, delete_unreachable_blocks, delete_block): New static
4140 functions, broken out of find_basic_blocks_1.
4141 (record_volatile_insns, mark_regs_live_at_end, set_noop_p,
4142 noop_move_p): New static functions, broken out of life_analysis_1.
4144 Fri Oct 9 15:49:29 1998 Richard Henderson <rth@cygnus.com>
4146 * expmed.c (store_bit_field): Pun non-integral str_rtx modes.
4147 Take extra care for op0 now possibly being a subreg.
4148 (extract_bit_field): Likewise.
4149 * function.c (purge_addressof_1): Revert Oct 4 change. Drop
4150 the reg to memory if there is no equal sized integral mode.
4151 * stor-layout.c (int_mode_for_mode): New function.
4152 * machmode.h: Prototype it.
4154 Fri Oct 9 14:26:44 1998 Jeffrey A Law (law@cygnus.com)
4156 * global.c (build_insn_chain): Verify no real insns exist past the
4157 end of the last basic block, then exit the loop.
4159 Fri Oct 9 11:44:47 1998 David Edelsohn <edelsohn@mhpcc.edu>
4161 * loop.c (insert_bct): Ensure loop_iteration_var non-zero before use.
4163 Thu Oct 8 21:59:47 1998 Dave Brolley <brolley@cygnus.com>
4165 * emit-rtl.c (init_emit_once): Call INIT_EXPANDERS.
4167 Thu Oct 8 22:03:45 1998 David Edelsohn <edelsohn@mhpcc.edu>
4169 * rs6000.h (RTX_COSTS): Add PROCESSOR_PPC604e cases.
4171 Thu Oct 8 17:00:18 1998 Richard Henderson <rth@cygnus.com>
4173 * flow.c (find_basic_blocks): Correctly determine when a call
4174 is within an exception region.
4176 Thu Oct 8 17:15:04 1998 Jeffrey A Law (law@cygnus.com)
4178 * toplev.c (output_file_directive): Use DIR_SEPARATOR, not '/'.
4180 * cpplib.h: Protect from multiple inclusions.
4181 * cpplib.c: Fix minor formatting problems.
4183 * i386/xm-cygwin32.h: Only define POSIX if it is not already defined.
4185 * jump.c (jump_optimize): Revert accidental patch.
4187 * Makefile.in (cpplib.o): Use unlibsubdir.
4189 Thu Oct 8 12:50:47 1998 Jim Wilson <wilson@cygnus.com>
4191 * loop.c (get_condition): Allow combine when either compare is
4194 Thu Oct 8 11:31:01 PDT 1998 Jeff Law (law@cygnus.com)
4196 * version.c: Bump for snapshot.
4198 Thu Oct 8 12:21:14 1998 Richard Frith-Macdonald <richard@brainstorm.co.uk>
4200 * c-lex.c (remember_protocol_qualifiers): Handle RID_BYREF.
4201 (init_lex): Initialize ridpointers[RID_BYREF].
4202 * c-lex.h (enum rid): Add RID_BYREF.
4203 * c-parse.gperf: Add RID_BYREF as a type qualifier.
4204 * objc/objc-act.c (is_objc_type_qualifiers): Handle RID_BYREF.
4205 (encode_type_qualifiers): Similarly
4206 * c-gperf.h: Rebuilt.
4208 Thu Oct 8 05:56:00 1998 Jeffrey A Law (law@cygnus.com)
4210 * c-common.c (type_for_mode): Only return TItype nodes when
4211 HOST_BITS_PER_WIDE_INT is >= 64 bits.
4212 * c-decl.c (intTI_type_node, unsigned_intTI_type_node): Only declare
4213 when HOST_BITS_PER_WIDE_INT is >= 64 bits.
4214 (init_decl_processing): Only create TItype nodes when
4215 HOST_BITS_PER_WIDE_INT is >= 64 bits.
4216 * c-tree.h (intTI_type_node, unsigned_intTI_type_node): Only declare
4217 when HOST_BITS_PER_WIDE_INT is >= 64 bits.
4219 Thu Oct 8 05:05:34 1998 Bernd Schmidt <crux@Pool.Informatik.RWTH-Aachen.DE>
4221 * stmt.c (n_occurrences): New static function.
4222 (expand_asm_operands): Verify that all constrains match in the
4223 number of alternatives.
4224 Verify that '+' or '=' are at the beginning of an output constraint.
4225 Don't allow '&' for input operands.
4226 Verify that '%' isn't written for the last operand.
4227 * reload.c (find_reloads): Abort if an asm is found with invalid
4228 constraints; all possible problems ought to be checked for earlier.
4230 Thu Oct 8 04:26:20 1998 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
4232 * flags.h (flag_branch_on_count_reg): Always declare
4233 * toplev.c (flag_branch_on_count_reg): Likewise.
4234 * toplev.c: Fix typos.
4236 * real.c (c4xtoe): Remove unused variables. Add some missing parens.
4239 Thu Oct 8 01:25:22 1998 Richard Henderson <rth@cygnus.com>
4241 * flow.c (find_basic_blocks): Calc upper bound for extra nops in
4243 (find_basic_blocks_1): Add a nop to the end of a basic block when
4244 a trailing call insn does not have abnormal control flow.
4245 * gcse.c (pre_transpout): New variable.
4246 (alloc_pre_mem, free_pre_mem, dump_pre_data): Bookkeeping for it.
4247 (compute_pre_transpout): Calculate it.
4248 (compute_pre_ppinout): Use it to eliminate impossible placements
4249 due to abnormal control flow through calls.
4250 (compute_pre_data): Call compute_pre_transpout.
4252 Wed Oct 7 21:40:24 1998 David S. Miller <davem@pierdol.cobaltmicro.com>
4254 * config/sparc/sol2-sld-64.h (ASM_CPU_SPEC): Fix typo.
4256 Wed Oct 7 21:19:46 1998 Ken Raeburn <raeburn@cygnus.com>
4258 * config/mips/mips.md (tablejump_internal3, tablejump_internal4
4259 and matching define_insns): Tack on a `use' of the table label, so
4260 flow analysis will recognize a tablejump.
4262 Wed Oct 7 17:33:39 1998 Richard Henderson <rth@cygnus.com>
4264 * gcse.c (pre_insert_insn): Tweek to notice that calls do not
4265 always end basic blocks for abnormal edge reasons.
4267 Wed Oct 7 14:40:43 1998 Nick Clifton <nickc@cygnus.com>
4269 * config/i386/i386.h: Remove definition of
4270 HANDLE_PRAGMA_PACK_PUSH_POP.
4272 * config/i386/go32.h: Add definition of
4273 HANDLE_PRAGMA_PACK_PUSH_POP.
4275 * config/i386/win32.h: Add definition of
4276 HANDLE_PRAGMA_PACK_PUSH_POP.
4278 * config/i386/cygwin32.h: Add definition of
4279 HANDLE_PRAGMA_PACK_PUSH_POP.
4281 * c-pragma.c (insert_pack_attributes): Do not insert
4282 attributes unless #pragma pack(push,<n>) is in effect.
4284 Wed Oct 7 12:10:46 1998 Jim Wilson <wilson@cygnus.com>
4286 * expr.c (emit_group_store): Handle a PARALLEL destination.
4288 Wed Oct 7 10:07:29 1998 Richard Henderson <rth@cygnus.com>
4290 * gcse.c (pre_insert_insn): When a call ends a bb, insert
4291 the new insns before the argument regs are loaded.
4293 Wed Oct 7 12:55:26 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4295 * Makefile.in (c-gperf.h): Add -L KR-C -F ', 0, 0' flags to gperf.
4296 (c-parse.gperf): Update comments describing invocation flags.
4297 (c-gperf.h): Regenerate using gperf 2.7.1 (19981006 egcs).
4299 1998-10-07 Manfred Hollstein <manfred@s-direktnet.de>
4301 * reload1.c (reload): Call free before clobbering the memory
4302 locations or constants pointers.
4304 Wed Oct 7 02:05:20 1998 David S. Miller <davem@pierdol.cobaltmicro.com>
4306 * config/sparc/sol2-sld-64.h (TRANSFER_FROM_TRAMPOLINE): Rework
4307 for efficiency by checking whether we need to modify the current
4308 stack permission at all.
4309 (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Define.
4310 * config/sparc/sparc.c (sparc_initialize_trampoline): Emit
4311 __enable_execute_stack libcall here too if
4312 TRANSFER_FROM_TRAMPOLINE is defined.
4313 * config/sparc/sparc.h: Set TARGET_ARCH32 to a constant if
4316 Wed Oct 7 02:27:52 1998 Jeffrey A Law (law@cygnus.com)
4318 * Makefile.in (DRIVER_DEFINES): Remove last change.
4320 Wed Oct 7 01:08:43 1998 Bernd Schmidt <crux@Pool.Informatik.RWTH-Aachen.DE>
4322 * jump.c (duplicate_loop_exit_test): Strip REG_WAS_0 notes off all
4323 insns we're going to copy.
4324 * regclass.c (reg_scan_mark_refs): Don't test X for NULL_RTX.
4326 * loop.c (count_one_set): Add prototype.
4328 * caller-save.c (restore_referenced_regs): Lose mode argument.
4329 (insert_save): Lose mode argument.
4330 (insert_restore): Lose mode argument.
4331 (insert_one_insn): Lose mode argument.
4332 (save_call_clobbered_regs): Lose mode argument.
4333 (setup_save_areas): Take no argument and return void. All callers
4335 Don't verify validity of memory addresses.
4336 * reload.h (setup_save_ares): Adjust prototype.
4337 (save_call_clobbered_regs): Likewise.
4338 * reload1.c (delete_caller_save_insns): New function.
4339 (caller_save_spill_class): Delete variable.
4340 (caller_save_group_size): Delete variable.
4341 (reload): Call setup_save_areas and save_call_clobbered_regs
4342 in the main loop, before calling calculate_needs_all_insns.
4343 Don't call save_call_clobbered_regs after the loop.
4344 Call delete_caller_save_insns at the end of an iteration if
4346 Delete code to manage caller_save_spill_class.
4347 Emit the final note before setting reload_first_uid.
4348 Simplify test that determines whether reload_as_needed gets run.
4349 (calculate_needs): Delete code to manage caller_save_spill_class.
4351 Tue Oct 6 15:42:27 1998 Richard Henderson <rth@cygnus.com>
4353 * collect2.c (main): Initialize ld_file_name.
4355 Tue Oct 6 15:45:15 1998 Catherine Moore <clm@cygnus.com>
4357 * config/sparc/sysv4.h (ASM_OUTPUT_SECTION_NAME): Don't
4358 check for flag_function_sections.
4360 Tue Oct 6 20:02:31 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
4362 * cse.c (insert_regs): Fix bug in Sep 24 change.
4364 Tue Oct 6 17:00:42 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
4366 * flags.h (flag_dump_unnumbered): Declare.
4367 * toplev.c (flag_dump_unnumbered): Don't declare.
4368 * print-rtl.c (flags.h): Include.
4369 (print_rtl_single): Add return value.
4370 * rtl.h (print_rtl_single): Update declaration.
4371 * flow.c (flag_dump_unnumbered): Don't declare.
4372 (print_rtl_with_bb): Use return value of print_rtl_single.
4374 Tue Oct 6 01:36:00 1998 Bernd Schmidt <crux@Pool.Informatik.RWTH-Aachen.DE>
4376 * loop.c (count_one_set): New static function, broken out of
4378 (count_loop_regs_set): Call it.
4379 * global.c (mark_reg_store): Handle clobbers here by not calling
4381 (mark_reg_clobber): Just call mark_reg_store after ensuring SETTER
4382 is in fact a clobber.
4383 * integrate.c (process_reg_param): New function, broken out of
4384 expand_inline_function.
4385 (expand_inline_function): Call it.
4388 * i386.md (addsidi3_1): Delete unused variable temp.
4389 (addsidi3_2): Likewise.
4390 (clstrstrsi): Delete unused variable addr1.
4392 * rtl.h: Don't declare any functions also declared in recog.h.
4394 * Makefile.in (stupid.o): Update dependencies.
4395 (global.o): Likewise.
4397 * global.c: Include reload.h
4398 (reg_becomes_live): New function.
4399 (reg_dies): New function.
4400 (build_insn_chain): New function.
4401 (global_alloc): Call build_insn_chain before calling reload.
4403 * reload.h (struct needs): New structure definition.
4404 (struct insn_chain): Likewise.
4405 (reload_insn_chain): Declare variable.
4406 (new_insn_chain): Declare function.
4409 * reload1.c (reload_startobj): New variable.
4410 (reload_insn_chain): New variable.
4411 (unused_insn_chains): New variable.
4412 (new_insn_chain): New function.
4413 (init_reload): Initialize reload_startobj, not reload_firstobj.
4414 (reload): Initialize reload_firstobj.
4415 Before returning, free everything on the reload_obstack.
4417 * stupid.c: Include insn-config.h, reload.h and basic-block.h.
4418 (reg_where_dead_chain, reg_where_born_exact, reg_where_born_clobber,
4419 current_chain): New variables.
4420 (reg_where_born): Delete variable.
4421 (REG_WHERE_BORN): New macro.
4422 (find_clobbered_regs): New function.
4423 (stupid_life_analysis): Don't allocate/free reg_where_born.
4424 Allocate and free reg_where_born_exact, reg_where_born_clobber,
4425 reg_where_dead_chain.
4426 Use REG_WHERE_BORN instead of reg_where_born.
4427 While processing the insns, build the reload_insn_chain with
4428 information about register lifetimes.
4429 (stupid_reg_compare): Use REG_WHERE_BORN instead of reg_where_born.
4430 (stupid_mark_refs): Replace arg INSN with arg CHAIN. All callers
4432 Compute and information about birth and death of pseudo registers in
4433 reg_where_dead_chain, reg_where_born_exact and reg_where_born_clobber.
4434 Delete code to set elements of reg_where_born.
4436 Mon Oct 5 22:34:30 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
4438 * tree.def (GOTO_EXPR): Modified documentation.
4439 * expr.c (expand_expr): Expand GOTO_EXPR into a goto or a computed
4442 Mon Oct 5 22:43:36 1998 David Edelsohn <edelsohn@mhpcc.edu>
4444 * unroll.c (loop_iteration_var, loop_initial_value, loop_increment
4445 loop_final_value, loop_comparison_code): No longer static.
4446 (unroll_loop): Delete loop_start_value update.
4447 * loop.h (loop_iteration_var, loop_initial_value, loop_increment,
4448 loop_final_value, loop_comparison_code): Extern.
4449 (loop_start_value): Delete extern.
4450 * loop.c (loop_can_insert_bct, loop_increment, loop_start_value,
4451 loop_comparison_value, loop_comparison_code): Delete.
4452 (loop_optimize): Remove initialization for deleted variables.
4453 (strength_reduce): Delete analyze_loop_iterations call. Only call
4454 insert_bct if flag_branch_count_on_reg set.
4455 (analyze_loop_iterations): Delete.
4456 (insert_bct): Remove iteration count calculation. Move checks for
4457 viable BCT optimization to here. Obtain iteration count from
4458 loop_iterations and correct for unrolling. Check for enough
4459 iteration to be beneficial. Comment out runtime iteration count
4461 (insert_bct): Print iteration count in dump file. Remove
4462 loop_var_mode and use word_mode directly.
4464 * rs6000.h (processor_type): Add PROCESSOR_PPC604e.
4465 * rs6000.c (rs6000_override_options): Use it.
4466 (optimization_options): Enable use of flag_branch_on_count_reg.
4467 * rs6000.md (define_function_unit): Describe 604e.
4469 1998-10-05 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
4471 * loop.c (move_movables): Corrected threshold calculation for
4472 moved_once registers.
4474 Mon Oct 5 21:18:45 1998 Bernd Schmidt <crux@Pool.Informatik.RWTH-Aachen.DE>
4476 * loop.c (combine_givs_p): Fix test for identical givs.
4478 Mon Oct 5 10:11:28 1998 Nick Clifton <nickc@cygnus.com>
4480 * dwarf2out.c (gen_subprogram_die): If errorcount nonzero, don't
4481 call abort if the function is already defined.
4483 Mon Oct 5 10:02:36 1998 Jeffrey A Law (law@cygnus.com)
4485 * combine.c (simplify_rtx): Do not replace TRUNCATE with a SUBREG if
4486 truncation is not a no-op.
4488 Mon Oct 5 09:02:04 PDT 1998 Jeff Law (law@cygnus.com)
4490 * version.c: Bump for snapshot.
4492 Mon Oct 5 08:19:55 PDT 1998 Jeff Law (law@cygnus.com)
4494 * version.c: Bump for snapshot.
4496 Mon Oct 5 01:07:23 1998 Torbjorn Granlund <tege@matematik.su.se>
4498 * expmed.c (expand_divmod): Don't widen for computing remainder
4499 if we seem to have a divmod pattern for needed mode.
4501 Mon Oct 5 01:01:42 1998 Zack Weinberg <zack@rabi.phys.columbia.edu>
4503 * cpplib.c (macroexpand): Correct off-by-one error in handling
4506 Sun Oct 4 23:58:30 1998 Richard Henderson <rth@cygnus.com>
4508 * combine.c (expand_field_assignment): Don't do bitwise operations
4509 on MODE_FLOAT; pun to MODE_INT if possible.
4511 Sun Oct 4 18:33:24 1998 Jason Merrill <jason@yorick.cygnus.com>
4512 scott snyder <snyder@d0sgif.fnal.gov>
4514 * tlink.c (scan_linker_output): Recognize errors from irix 6.2
4515 linker. Recognize mangled names in quotes.
4517 Sun Oct 4 02:58:20 1998 Jakub Jelinek <jj@sunsite.ms.mff.cuni.cz>
4519 * config/sparc/sparc.md (ashldi3+1): Name it ashldi3_sp64.
4520 (ashlsi3_const1, ashldi3_const1): New combiner patterns.
4521 (ashrsi3_extend, ashrsi3_extend2): New combiner patterns.
4522 (lshrsi3_extend, lshrsi3_extend2): Ditto.
4524 Sun Oct 4 00:23:00 1998 David S. Miller <davem@pierdol.cobaltmicro.com>
4526 * function.c (purge_addressof_1): If trying to take a sub-word
4527 integral piece of a floating point mode, put it on the stack.
4529 Sat Oct 3 19:01:03 1998 Richard Henderson <rth@cygnus.com>
4531 * alpha/linux.h (CPP_PREDEFINES): Define __alpha__ for imake.
4533 Sat Oct 3 14:42:19 1998 Jason Merrill <jason@yorick.cygnus.com>
4535 * PROJECTS: Remove template friends.
4537 * collect2.c (sort_ids): Remove unused variable.
4539 * tm.texi (MATH_LIBRARY): Document.
4540 (NEED_MATH_LIBRARY): Remove.
4542 * varasm.c (assemble_start_function, assemble_variable, weak_finish,
4543 assemble_alias): Do ASM_GLOBALIZE_LABEL for weak symbols, too.
4545 Sat Oct 3 16:14:44 1998 John Carr <jfc@mit.edu>
4547 * dwarf2out.c (expand_builtin_dwarf_reg_size): Initialize
4548 last_end to 0x7fffffff.
4550 Fri Oct 2 19:14:20 1998 David S. Miller <davem@pierdol.cobaltmicro.com>
4552 * function.c (purge_addressof_1): Do not perform endianness
4553 corrections on bitpos, who we call will do it for us.
4555 Fri Oct 2 11:52:35 1998 Jeffrey A Law (law@cygnus.com)
4557 * h8300.c (WORD_REG_USED): Fix typo.
4558 (initial_offset): Use WORD_REG_USED.
4560 * h8300.c (handle_pragma): Fix typo.
4562 Fri Oct 2 10:51:35 1998 Bernd Schmidt <crux@Pool.Informatik.RWTH-Aachen.DE>
4564 * caller-save.c (insert_save_restore): Break this function up
4565 into new functions insert_restore, insert_save and insert_one_insn.
4566 All callers changed.
4567 (insert_restore): New function, mostly broken out of
4568 insert_save_restore.
4569 (insert_save): Likewise.
4570 (insert_one_insn): Likewise.
4571 (restore_referenced_regs): New argument BLOCK. All callers changed.
4572 (save_call_clobbered_regs): Don't keep track of basic block boundaries
4573 in this function, do it in insert_one_insn instead.
4575 * reload1.c (reload): Break out some more pieces into separate
4577 (dump_needs): New function, broken out of reload.
4578 (set_initial_elim_offsets): Likewise.
4579 (init_elim_table): Likewise.
4580 (update_eliminables): Likewise.
4582 * global.c (global_alloc): Delete code to manage the scratch_list.
4583 * local-alloc.c (qty_scratch_rtx): Delete.
4584 (scratch_block): Delete.
4585 (scratch_list): Delete.
4586 (scratch_list_length): Delete.
4587 (scratch_index): Delete.
4588 (alloc_qty_for_scratch): Delete.
4589 (local-alloc): Update initialization of max_qty.
4590 Delete code to manage the scratch list.
4591 Delete code to allocate/initialize qty_scratch_rtx.
4592 (block_alloc): Don't allocate quantities for scratches.
4593 Delete code to manage the scratch list.
4594 * regs.h (scratch_list): Delete declaration.
4595 (scratch_block): Delete declaration.
4596 (scratch_list_length): Delete declaration.
4597 * reload1.c (reload): Delete code to manage the scratch list.
4598 (spill_hard_reg): Likewise.
4599 (mark_scratch_live): Delete.
4601 * recog.c (alter_subreg): Delete declaration.
4603 1998-10-02 Andreas Jaeger <aj@arthur.rhein-neckar.de>
4605 * Makefile.in (cccp.o): Fix typo in last patch.
4607 Fri Oct 2 16:13:12 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
4609 * t-sh (LIB1ASMFUNCS): Add _set_fpscr .
4610 * config/sh/lib1funcs.asm (___set_fpscr): Add.
4612 Fri Oct 2 02:01:59 1998 Jeffrey A Law (law@cygnus.com)
4614 * regclass.c (reg_scan_mark_refs): Return immediately if passed a
4615 NULL_RTX as an argument.
4617 * Makefile.in (unlibsubdir): Define.
4618 (DRIVER_DEFINES): Use unlibsubdir.
4619 (cccp.o, cpplib.o, protoize.o, unprotoize.o): Similarly.
4620 (stmp-fixinc): Similarly.
4622 Thu Oct 1 19:58:30 1998 Bernd Schmidt <crux@Pool.Informatik.RWTH-Aachen.DE>
4624 * regmove.c (regmove_optimize): Add variable old_max_uid.
4625 At the end of the function, update basic_block_end.
4627 Thu Oct 1 17:58:25 1998 David S. Miller <davem@pierdol.cobaltmicro.com>
4629 * dwarf2out.c (expand_builtin_dwarf_reg_size): Use
4630 FIRST_PSEUDO_REGISTER as upper bound for last_end, not an
4633 Thu Oct 1 17:57:14 1998 Nick Clifton <nickc@cygnus.com>
4635 * config/arm/arm.c: Improve interworking support.
4637 Thu Oct 1 18:43:35 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
4639 * reload1.c (choose_reload_regs): Fix test if reload_reg_rtx[r] was
4640 copied from reload_out[r] .
4642 Thu Oct 1 19:20:09 1998 John Carr <jfc@mit.edu>
4644 * dwarf2out.c (expand_builtin_dwarf_reg_size): Fix to work
4645 with more than three size ranges.
4647 * flow.c (sbitmap_copy): Use bcopy to copy bitmap.
4649 * rtl.c (mode_name): Add a null string at the end of the array.
4650 (mode_wider_mode): Change type to unsigned char.
4651 (mode_mask_array): New variable.
4652 (init_rtl): Update for mode_wider_mode type change.
4654 * rtl.h (mode_wider_mode): Change type to unsigned char.
4655 (mode_mask_array): Declare.
4656 (GET_MODE_MASK): Use mode_mask_array.
4658 Thu Oct 1 15:56:01 1998 Gavin Romig-Koch <gavin@cygnus.com>
4660 * calls.c (expand_call) : Encapsulate code into
4661 copy_blkmode_from_reg.
4662 * expr.c (copy_blkmode_from_reg): New function.
4663 * expr.h (copy_blkmode_from_reg): New function.
4664 * integrate.c (function_cannot_inline_p): We can inline
4666 (expand_inline_function): Use copy_blkmode_from_reg
4667 if needed. Avoid creating BLKmode REGs.
4668 (copy_rtx_and_substitute): Don't try to SUBREG a BLKmode
4671 Thu Oct 1 10:42:27 1998 Nick Clifton <nickc@cygnus.com>
4673 * config/v850/v850.c: Add function prototypes.
4674 Add support for v850 special data areas.
4676 * config/v850/v850.h: Add support for v850 special data areas.
4678 * c-pragma.c: Add support for HANDLE_PRAGMA_PACK and
4679 HANDLE_PRAGMA_PACK_PUSH_POP.
4680 (push_alignment): New function: Cache an alignment requested
4681 by a #pragma pack(push,<n>).
4682 (pop_alignment): New function: Pop an alignment from the
4684 (insert_pack_attributes): New function: Generate __packed__
4685 and __aligned__ attributes for new decls whilst a #pragma pack
4687 (add_weak): New function: Cache a #pragma weak directive.
4688 (handle_pragma_token): Document calling conventions. Add
4689 support for #pragma pack(push,<n>) and #pragma pack (pop).
4691 * c-pragma.h: If HANDLE_SYSV_PRAGMA or HANDLE_PRAGMA_PACK_PUSH_POP
4692 are defined enable HANDLE_PRAGMA_PACK.
4693 Move 'struct weak_syms' here (from varasm.c).
4694 Add pragma states for push and pop pragmas.
4696 * c-common.c (decl_attributes): Call PRAGMA_INSERT_ATTRIBUTES
4699 * c-lex.c: Replace occurances of HANDLE_SYSV_PRAGMA with
4700 HANDLE_GENERIC_PRAGMAS.
4702 * varasm.c: Move definition of 'struct weak_syms' into
4704 (handle_pragma_weak): Deleted.
4706 * config/i386/i386.h: Define HANDLE_PRAGMA_PACK_PUSH_POP.
4708 * config/winnt/win-nt.h: Define HANDLE_PRAGMA_PACK_PUSH_POP.
4710 * c-decl.c (start_function): Add invocation of
4711 SET_DEFAULT_DECL_ATTRIBUTES, if defined.
4713 * tm.texi: Remove description of non-existant macro
4714 SET_DEFAULT_SECTION_NAME.
4716 (HANDLE_SYSV_PRAGMA): Document.
4717 (HANDLE_PRAGMA_PACK_PUSH_POP): Document.
4719 Wed Sep 30 22:27:53 1998 Robert Lipe <robertl@dgii.com>
4721 * config.sub: Recognize i[34567]86-pc-udk as new target.
4722 * configure.in: Likewise.
4723 * config/i386/t-udk: New file.
4724 * config/i386/udk.h: New file.
4726 Wed Sep 30 19:33:07 1998 Jeffrey A Law (law@cygnus.com)
4728 * reorg.c (check_annul_list_true_false): Remove unused variables.
4729 (steal_delay_list_from_target): Add missing "used_annul" variable.
4730 (try_merge_delay_insns): Close out half formed comment.
4732 Wed Sep 30 19:13:20 1998 Zack Weinberg <zack@rabi.phys.columbia.edu>
4734 * cpplib.c (macroexpand): If arg->raw_before or
4735 arg->raw_after, remove any no-reexpansion escape at the
4736 beginning of the pasted token. Correct handling of whitespace
4737 markers and no-reexpand markers at the end if arg->raw_after.
4739 * toplev.c (documented_lang_options): Recognize -include,
4740 -imacros, -iwithprefix, -iwithprefixbefore.
4741 * cpplib.c (cpp_start_read): Process -imacros and -include
4742 switches at the same time and in command-line order, after
4743 initializing the dependency-output code. Emit properly nested
4744 #line directives for them. Emit a #line for the main file
4745 before processing these switches, and don't do it again
4748 Wed Sep 30 18:03:22 1998 Richard Henderson <rth@cygnus.com>
4750 * function.c (purge_addressof_1): Use bitfield manipulation
4751 routines to handle mem mode < reg mode.
4753 Wed Sep 30 18:43:32 1998 Herman ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
4755 * reorg.c (try_merge_delay_insns): Account for resources referenced
4756 in each instruction in INSN's delay list before trying to eliminate
4757 useless instructions. Similarly when looking at a trial insn's delay
4760 * reorg.c (check_annul_list_true_false): New function.
4761 (steal_delay_list_from_{target,fallthrough}): Call it and also
4762 refine tests for when we may annul if already filled a slot.
4763 (fill_slots_from_thread): Likewise.
4764 (delete_from_delay_slot): Return newly-created thread.
4765 (try_merge_delay_isns): Use its new return value.
4767 Wed Sep 30 18:29:26 1998 Jeffrey A Law (law@cygnus.com)
4769 * loop.c (check_dbra_loop): Use a vanilla loop reversal if the biv is
4770 used to compute a giv or as some other non-counting use.
4772 Wed Sep 30 18:19:27 1998 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
4774 * regs.h (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
4775 * local-alloc.c (find_free_reg): Use it.
4776 * global.c (find_reg): Likewise.
4777 * tm.texi: Document HARD_REGNO_CALL_PART_CLOBBERED.
4779 * regs.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
4780 * caller-save.c (init_caller_save): Use it.
4781 * tm.texi: Document HARD_REGNO_CALLER_SAVE_MODE.
4783 Wed Sep 30 12:57:30 1998 Zack Weinberg <zack@rabi.phys.columbia.edu>
4785 * configure.in: Add --enable-cpplib option which uses cpplib
4786 for cpp, but doesn't link cpplib into cc1. Make help text
4787 capitalization consistent.
4788 * configure: Rebuilt.
4790 Wed Sep 30 10:09:39 1998 Mark Mitchell <mark@markmitchell.com>
4792 * function.c (gen_mem_addressof): If the address REG is
4793 REG_USERVAR_P make the new REG be so also.
4794 * loop.c (scan_loop): Apply DeMorgan's laws and add documentation
4795 in an attempt to clarify slightly.
4797 Wed Sep 30 09:57:40 1998 Jeffrey A Law (law@cygnus.com)
4799 * expr.c (expand_expr): Handle COMPONENT_REF, BIT_FIELD_REF ARRAY_REF
4800 and INDIRECT_REF in code to check MAX_INTEGER_COMPUTATION_MODE.
4802 Wed Sep 30 10:13:39 1998 Catherine Moore <clm@cygnus.com>
4804 * toplev.c: Fix last patch.
4806 Tue Sep 29 20:03:18 1998 Jim Wilson <wilson@cygnus.com>
4808 * loop.c (get_condition): Fix typo in May 9 change.
4810 Tue Sep 29 11:11:38 EDT 1998 Andrew MacLeod <amacleod@cygnus.com>
4812 * invoke.texi (-fexceptions): Merge 2 different descriptions.
4814 Mon Sep 28 22:08:52 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4816 * toplev.c (documented_lang_options): Spelling corrections.
4818 Mon Sep 28 19:41:24 1998 Alexandre Oliva <oliva@dcc.unicamp.br>
4820 * configure.in: new flags --with-ld and --with-as, equivalent
4821 to setting LD and AS environment variables. Test whether
4822 specified arguments are GNU commands, and report them with
4823 checking messages. Use the specified AS for configure
4826 * acconfig.h: add DEFAULT_ASSEMBLER and DEFAULT_LINKER
4828 * gcc.c (find_a_file): when looking for `as' and `ld', return
4829 the DEFAULT program if it exists
4830 * collect2.c (main): use DEFAULT_LINKER if it exists
4832 * gcc.c (find_a_file): the test for existence of a full
4833 pathname was reversed
4835 Mon Sep 28 17:34:35 1998 Michael Meissner <meissner@cygnus.com>
4837 * rs6000.h (ASM_OUTPUT_MI_THUNK): Only define on ELF systems.
4838 * rs6000.c (output_mi_thunk): Always use a raw jump for now.
4840 Mon Sep 28 14:24:03 1998 Mark Mitchell <mark@markmitchell.com>
4842 * tree.h (TYPE_BINFO): Document.
4844 Mon Sep 28 12:55:49 1998 Stan Cox <scox@cygnus.com>
4846 * i386-coff.h (dbxcoff.h): Added.
4848 Mon Sep 28 12:51:00 1998 Catherine Moore <clm@cygnus.com>
4850 * toplev.c: fix bad patch around flag_data_sections.
4852 Mon Sep 28 10:32:28 1998 Nick Clifton <nickc@cygnus.com>
4854 * reload1.c (reload): Use reload_address_index_reg_class and
4855 reload_address_base_reg_class when setting
4856 caller_save_spill_class. (Patch generated by Jim Wilson:
4859 Mon Sep 28 07:43:34 1998 Mark Mitchell <mark@markmitchell.com>
4861 * c-common.c (c_get_alias_set): Tighten slightly for FUNCTION_TYPEs
4862 and ARRAY_TYPEs. Tidy up. Improve support for type-punning.
4863 * expr.c (store_field): Add alias_set parameter. Set the
4864 MEM_ALIAS_SET accordingly, if the target is a MEM.
4865 (expand_assignment): Use it.
4866 (store_constructor_field): Pass 0.
4867 (expand_expr): Likewise.
4869 Mon Sep 28 07:54:03 1998 Catherine Moore <clm@cygnus.com>
4871 * flags.h: Add flag_data_sections.
4872 * toplev.c: Add option -fdata-sections. Add flag_data_sections.
4873 (compile_file): Error if flag_data_sections not supported.
4874 * varasm.c (assemble_variable): Handle flag_data_sections.
4875 * config/svr4.h: Modify prefixes for UNIQUE_SECTION_NAME.
4876 * config/mips/elf.h: Likewise.
4877 * config/mips/elf64.h: Likewise.
4878 * invoke.texi: Describe -fdata-sections.
4880 Mon Sep 28 04:15:44 1998 Craig Burley <burley@melange.gnu.org>
4882 * invoke.texi (-ffloat-store): Clarify that this option
4883 does not affect intermediate results -- only variables.
4885 Mon Sep 28 04:11:35 1998 Jeffrey A Law (law@cygnus.com)
4887 * cpp.texi: Update for Fortran usage from Craig.
4889 Fri Sep 25 22:09:47 1998 David Edelsohn <edelsohn@mhpcc.edu>
4891 * rs6000.c (function_arg_boundary): Revert accidental change on
4894 Fri Sep 25 20:30:00 1998 Michael Meissner <meissner@cygnus.com>
4896 * rs6000.h (ASM_OUTPUT_MI_THUNK): Declare, call output_mi_thunk.
4897 (output_mi_thunk): Declare.
4899 * rs6000.c (output_mi_thunk): Function to create thunks for MI.
4900 (output_function_profiler): Use r12 for temp, instead of r11 so
4901 that we preserve the static chain register.
4903 Fri Sep 25 14:18:33 1998 Jim Wilson <wilson@cygnus.com>
4905 * sdbout.c (sdbout_one_type): Don't look at TYPE_BINFO field of enums.
4907 Fri Sep 25 19:30:19 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
4909 * sh.c (gen_shl_sext): Fix case 5.
4911 Fri Sep 25 17:35:23 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
4913 * reload1.c (reload_combine): Re-add line that got accidentally lost.
4915 Fri Sep 25 10:43:47 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4917 * cccp.c (pedwarn_with_file_and_line): For !__STDC__ case, avoid
4918 accessing variables until they are initialized via va_arg().
4920 Thu Sep 24 22:12:16 1998 David S. Miller <davem@pierdol.cobaltmicro.com>
4922 * reload1.c (reload_combine): Initialize set before using.
4924 Thu Sep 24 18:53:20 1998 Jason Merrill <jason@yorick.cygnus.com>
4926 * sdbout.c (sdbout_field_types): Don't emit the types of fields we
4929 Thu Sep 24 17:05:30 1998 Nick Clifton <nickc@cygnus.com>
4931 * config/arm/arm.md (insv): Add comment. In CONST_INT case, and
4932 operand3 with mask before using it. Patch provided by Jim Wilson.
4934 Thu Sep 24 15:08:08 1998 Jakub Jelinek <jj@sunsite.ms.mff.cuni.cz>
4936 * config/sparc/sparc.c (function_value): Perform the equivalent of
4937 PROMOTE_MODE for ARCH64.
4938 (eligible_for_epilogue_delay): Allow DImode operations in delay
4939 slot of a return for ARCH64.
4941 Thu Sep 24 22:17:54 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
4943 * sh.md (sqrtsf2): Fix mode of sqrt.
4945 Thu Sep 24 21:48:51 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
4947 * reload1.c (choose_reload_regs): Also try inheritance when
4948 reload_in is a stack slot of a pseudo, even if we already got a
4951 Thu Sep 24 21:22:39 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
4953 * reload1.c (reload_cse_regs_1): Renamed from reload_cse_regs.
4954 (reload_cse_regs): New function body: call reload_cse_regs_1,
4955 reload_combine, reload_cse_move2add.
4956 When doing expensive_optimizations, call reload_cse_regs_1 a
4957 second time after reload_cse_move2add.
4958 (reload_combine, reload_combine_note_store): New functions.
4959 (reload_combine_note_use): New function.
4960 (reload_cse_move2add, move2add_note_store): New functions.
4962 Thu Sep 24 18:48:43 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
4964 * reload.c (find_reloads): In code to promote RELOAD_FOR_X_ADDR_ADDR
4965 reloads to RELOAD_FOR_X_ADDRESS reloads, test for reload sharing.
4967 Properly keep track of first RELOAD_FOR_X_ADDRESS also for
4968 more than 3 such reloads.
4970 If there is not more than one RELOAD_FOR_X_ADDRESS, don't change
4971 RELOAD_FOR_X_ADDR_ADDR reload.
4973 Thu Sep 24 17:45:55 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
4975 * expr.c (store_constructor): When initializing a field that is smaller
4976 than a word, at the start of a word, try to widen it to a full word.
4978 * cse.c (cse_insn): When we are about to change a register,
4979 remove any invalid references to it.
4981 (remove_invalid_subreg_refs): New function.
4982 (mention_regs): Special treatment for SUBREGs.
4983 (insert_regs): Don't strip SUBREG for call to mention_regs.
4984 Check if reg_tick needs to be bumped up before that call.
4985 (lookup_as_function): Try to match known word_mode constants when
4986 looking for a norrower constant.
4987 (canon_hash): Special treatment for SUBREGs.
4989 Thu Sep 24 01:35:34 1998 David S. Miller <davem@pierdol.cobaltmicro.com>
4991 * config/sparc/sol2-sld-64.h (TRANSFER_FROM_TRAMPOLINE): Define.
4992 * config/sparc/sparc.c (sparc64_initialize_trampoline): If that is
4993 defined, emit libcall to __enable_execute_stack. Also fix opcodes
4994 and offsets in actual stack trampoline code so they match the
4995 commentary and actually work.
4997 Thu Sep 24 01:19:02 1998 Jakub Jelinek <jj@sunsite.ms.mff.cuni.cz>
4999 * configure.in (sparcv9-*-solaris): Use t-sol2 and t-sol2-64 for
5001 (sparc64-*-linux): Use t-linux and sparc/t-linux64 for
5002 tmake_file. Set extra_parts to needed crt objects.
5003 * configure: Rebuilt.
5004 * config/sparc/linux64.h (SPARC_BI_ARCH): Define.
5005 (TARGET_DEFAULT): Set if default is v9 or ultra.
5006 (STARTFILE_SPEC32, STARTFILE_SPEC64): New macros.
5007 (STARTFILE_SPEC): Set to those upon SPARC_BI_ARCH.
5008 (ENDFILE_SPEC32, ENDFILE_SPEC64, ENDFILE_SPEC): Likewise.
5009 (SUBTARGET_EXTRA_SPECS, LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
5010 LINK_SPEC, LINK_ARCH_SPEC): Likewise.
5011 (TARGET_VERSION): Define.
5012 (MULTILIB_DEFAULT): Define.
5013 * config/sparc/sparc.h (CPP_CPU_DEFAULT_SPEC): Rearrange so that
5014 mixed 32/64 bit compilers based upon SPARC_BI_ARCH work.
5015 (CPP_CPU64_DEFAULT_SPEC, CPP_CPU32_DEFAULT_SEC): Define
5017 (TARGET_SWITCHES): Allow ptr32/ptr64 options once more.
5018 * config/sparc/sparc.c (sparc_override_options): If arch and
5019 pointer size disagree, emit diagnostic and fix it up. If
5020 SPARC_BI_ARCH and TARGET_ARCH32, set cmodel to CM_32. Turn off
5021 V8PLUS in 64-bit mode.
5022 * config/sparc/t-linux64: New file.
5023 * config/sparc/t-sol2-64: New file.
5024 * config/sparc/t-sol2: Adjust build rules to use MULTILIB_CFLAGS.
5025 * config/sparc/sol2-sld-64.h (SPARC_BI_ARCH): Define.
5026 (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC,
5027 CPP_CPU32_DEFAULT_SPEC, CPP_CPU64_DEFAULT_SPEC): Define.
5028 (ASM_SPEC, CPP_CPU_SPEC): Set appropriately based upon those.
5029 (STARTFILE_SPEC32, STARTFILE_SPEC32, STARTFILE_ARCH_SPEC):
5031 (STARTFILE_SPEC): Set approriately based upon those.
5032 (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Set based upon
5033 disposition of DEFAULT_ARCH32_P.
5034 (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Define.
5035 (LINK_ARCH_SPEC, LINK_ARCH_DEFAULT_SPEC): Set based upon those.
5036 (CC1_SPEC, MULTILIB_DEFAULTS): Set based upon DEFAULT_ARCH32_P.
5037 (MD_STARTFILE_PREFIX): Set correctly based upon SPARC_BI_ARCH.
5038 * config/sparc/xm-sysv4-64.h (HOST_BITS_PER_LONG): Only set on
5040 * config/sparc/xm-sp64.h (HOST_BITS_PER_LONG): Likewise.
5042 Wed Sep 23 22:32:31 1998 Mark Mitchell <mark@markmitchell.com>
5044 * rtl.h (init_virtual_regs): New function.
5045 * emit-rtl.c (init_virtual_regs): Define.
5046 (insn_emit): Use it.
5047 * integrate.c (save_for_inline_copying): Likewise.
5049 Wed Sep 23 16:22:01 1998 Nick Clifton <nickc@cygnus.com>
5051 * config/arm/thumb.h: The following patches were made by Jim Wilson:
5052 (enum reg_class): Add NONARG_LO_REGS support.
5053 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS,
5054 PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Likewise.
5055 (GO_IF_LEGITIMATE_ADDRESS): Disable REG+REG addresses before reload
5056 completes. Re-enable HImode REG+OFFSET addresses.
5057 (LEGITIMIZE_RELOAD_ADDRESS): Define.
5059 * expmed.c (extract_bit_field): Add comment from Jim Wilson.
5061 Wed Sep 23 13:26:02 1998 Richard Henderson <rth@cygnus.com>
5063 * alpha.c (get_aligned_mem): Revert Sep 20 change.
5064 (alpha_set_memflags, alpha_set_memflags_1): Likewise.
5065 (alpha_align_insns): Properly calculate initial offset wrt max_align.
5067 Wed Sep 23 10:45:44 1998 Richard Earnshaw (rearnsha@arm.com)
5069 * arm.c (find_barrier): Revert change of Apr 23. Handle table
5070 jumps as a single entity, taking into account the size of the
5073 Tue Sep 22 15:13:34 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
5075 * tree.def (SWITCH_EXPR): New tree node definition.
5077 Mon Sep 21 23:40:38 PDT 1998 Jeff Law (law@cygnus.com)
5079 * version.c: Bump for snapshot.
5081 Mon Sep 21 22:31:14 PDT 1998 Jeff Law (law@cygnus.com)
5083 * version.c: Bump for snapshot.
5085 Mon Sep 21 22:48:09 1998 Jeffrey A Law (law@cygnus.com)
5087 * configure.in: Recognize i[34567]86-*-openbsd* and handle it like
5090 Mon Sep 21 22:05:28 1998 Jeffrey A Law (law@cygnus.com)
5092 * Revert this patch.
5093 * reload.c (find_reloads): Do not replace a pseudo with
5094 (MEM (reg_equiv_addr)) in the initializing insn for the
5097 Mon Sep 21 20:19:41 1998 John Carr <jfc@mit.edu>
5099 * final.c (final_scan_insn): Disable tracking CC across branches.
5101 Mon Sep 21 17:15:26 EDT 1998 Andrew MacLeod <amacleod@cygnus.com>
5103 * expr.h (eh_rtime_match_libfunc): New extern declaration.
5104 * optabs.c (init_optabs): Set eh_rtime_match_libfunc.
5105 * except.c (start_catch_handler): Use eh_rtime_match_libfunc.
5106 * libgcc2.c (__eh_rtime_match): Always return 0 if the matcher is
5107 NULL. Only include <stdio.h> if inhibit_libc is not defined.
5109 Mon Sep 21 14:10:51 1998 Jason Merrill <jason@yorick.cygnus.com>
5111 * toplev.c (rest_of_compilation): Skip compiling anything with
5112 DECL_EXTERNAL set, not just if it has DECL_INLINE as well.
5114 Mon Sep 21 13:51:05 1998 Jim Wilson <wilson@cygnus.com>
5116 * flow.c (find_basic_blocks): Delete check for in_libcall_block when
5117 prev_code is a CALL_INSN. Change check for REG_RETVAL note to
5118 use in_libcall_block.
5119 (find_basic_blocks_1): Delete check for in_libcall_block when prev_code
5120 is a CALL_INSN. If CALL_INSN and in_libcall_block, then change code
5123 Mon Sep 21 14:02:23 1998
5125 * i386.h: (TARGET_SWITCHES) Improve doc for align-double. Fix
5126 typo in no-fancy-math-387 description.
5128 Mon Sep 21 09:27:18 PDT 1998 Jeff Law (law@cygnus.com)
5130 * version.c: Bump for snapshot.
5132 Mon Sep 21 09:24:49 1998 Stan Cox <scox@cygnus.com>
5134 * i386-coff.h (DBX_DEBUGGING_INFO): Added.
5136 Mon Sep 21 09:14:49 1998 Robert Lipe <robertl@dgii.com>
5138 * i386.h: (TARGET_SWITCHES) Add description fields for flags
5139 documented in install.texi.
5140 (TARGET_OPTIONS) Likewise.
5142 Mon Sep 21 01:39:03 PDT 1998 Jeff Law (law@cygnus.com)
5144 * version.c: Bump for snapshot.
5146 Mon Sep 21 01:53:05 1998 Felix Lee <flee@cygnus.com>
5148 * c-lex.c (init_lex): Use getenv ("LANG"), not GET_ENVIRONMENT ().
5149 * cccp.c (main): Likewise.
5151 * cccp.c, collect2.c, cpplib.c, gcc.c, config/i386/xm-cygwin32.h:
5152 Rename GET_ENVIRONMENT to GET_ENV_PATH_LIST, and fix some
5155 Mon Sep 21 00:52:12 1998 Per Bothner <bothner@cygnus.com>
5157 * Makefile.in (LIBS): Link in libiberty.a.
5158 * c-common.c, gcc.c, toplev.c: Replace (some) bcopy calls by memcpy.
5160 Sun Sep 20 23:28:11 1998 Richard Henderson <rth@cygnus.com>
5162 * reload1.c (emit_reload_insns): Accept a new arg for the bb. Use
5163 it to update bb boundaries. Update caller.
5164 * function.c (reposition_prologue_and_epilogue_notes): Update
5165 bb boundaries wrt the moved note.
5167 Sun Sep 20 20:57:02 1998 Robert Lipe <robertl@dgii.com>
5169 * configure.in (i*86-*-sysv5*): Use fixinc.svr4 to patch byteorder
5171 * configure: Regenerate.
5173 Sun Sep 20 19:01:51 1998 Richard Henderson <rth@cygnus.com>
5175 * alpha.c (alpha_sr_alias_set): New variable.
5176 (override_options): Set it.
5177 (alpha_expand_prologue, alpha_expand_epilogue): Use it.
5178 (mode_mask_operand): Fix signed-unsigned comparision warning.
5179 (alpha_expand_block_move): Likewise.
5180 (print_operand): Likewise.
5181 (get_aligned_mem): Use change_address.
5182 (alpha_set_memflags, alpha_set_memflags_1): Set the alias set.
5183 (alphaev4_insn_pipe, alphaev4_next_group): New functions.
5184 (alphaev4_next_nop, alphaev5_next_nop): New functions.
5185 (alpha_align_insns): Remade from old alphaev5_align_insns
5186 to handle multiple processors.
5187 (alpha_reorg): Call alpha_align_insns for both ev4 and ev5.
5188 * output.h (label_to_alignment): Prototype.
5190 * tree.c (new_alias_set): New function.
5191 * tree.h (new_alias_set): Declare it.
5192 * c-common.c (c_get_alias_set): Use it.
5194 Sun Sep 20 12:35:55 1998 Richard Henderson <rth@cygnus.com>
5196 * fold-const.c (fold): Yet another COND_EXPR bug: when folding
5197 to an ABS expr, convert an unsigned input to signed.
5199 Sun Sep 20 12:14:45 1998 Jeffrey A Law (law@cygnus.com)
5201 * fold-const.c (fold): Fix another type in COND_EXPR handling code.
5203 1998-09-20 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
5205 * configure.in: Add support for c4x targets.
5206 * configure: Rebuilt.
5208 Sun Sep 20 00:00:51 1998 Richard Henderson <rth@cygnus.com>
5210 * combine.c (distribute_notes): If an insn is a cc0 user, only
5211 delete it if we can also delete the cc0 setter.
5213 Sun Sep 20 00:22:23 1998 Michael Tiemann <michael@impact.tiemann.org>
5215 * fold-const.c (fold): Fix typo in COND_EXPR handling code.
5216 (invert_truthvalue): Enable truthvalue inversion for
5217 floating-point operands if -ffast-math.
5219 Sat Sep 19 23:58:07 1998 Melissa O'Neill <oneill@cs.sfu.ca>
5221 * configure.in: Disable collect2 for nextstep. Instead use
5223 * configure: Rebuilt.
5224 * config/nextstep.h (STARTFILE_SPEC): Add crtbegin.
5225 (ENDFILE_SPEC): Define.
5226 (OBJECT_FORMAT_MACHO): Define.
5227 (EH_FRAME_SECTION_ASM_OP): Define.
5228 * crtstuff.c: Handle MACHO.
5230 Sun Sep 20 00:24:24 1998 Robert Lipe <robertl@dgii.com>
5232 * config/i386/sco5.h (TARGET_MEM_FUNCTIONS): Define.
5234 1998-09-19 Torbjorn Granlund <tege@matematik.su.se>
5236 * fp-bit.c (pack_d): Do not clear SIGN when fraction is 0.
5237 (_fpadd_parts): Get sign right for 0.
5239 1998-09-19 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
5241 * ginclude/varargs.h: Add support for C4x target.
5242 * ginclude/stdargs.h: Likewise.
5244 Sat Sep 19 12:05:09 1998 Richard Henderson <rth@cygnus.com>
5246 * alpha.c (alpha_return_addr): SET should be VOIDmode.
5247 (alpha_emit_set_long_const): Rewrite to be callable from reload
5249 (alpha_expand_epilogue): Update for alpha_emit_set_long_const.
5250 * alpha.md (movdi): Likewise.
5252 Sat Sep 19 07:33:36 1998 Richard Earnshaw (rearnsha@arm.com)
5254 * arm.c (add_constant): New parameter address_only, change caller.
5255 Set it non-zero if taking the address of an item in the pool.
5256 (arm_reorg): Handle cases where we need the address of an item in
5259 * arm.c (bad_signed_byte_operand): Check both arms of a sum in
5261 * arm.md (splits for *extendqihi_insn and *extendqisi_insn): Handle
5262 memory addresses that are not in standard canonical form.
5264 Sat Sep 19 01:00:32 1998 Michael Hayes (mph@elec.canterbury.ac.nz)
5266 * README.C4X: New file with information about the c4x ports.
5267 * ginclude/va-c4x.h: New file for c4x varargs support.
5268 * config/c4x: New directory with c4x port files.
5270 Fri Sep 18 22:52:05 1998 Jeffrey A Law (law@cygnus.com)
5272 * reload.c (find_reloads): Do not replace a pseudo with
5273 (MEM (reg_equiv_addr)) in the initializing insn for the
5276 Fri Sep 18 23:50:56 1998 David Edelsohn <edelsohn@mhpcc.edu>
5278 * toplev.c (rest_of_compilation): Set bct_p on second call to
5280 * loop.c (loop_optimize, scan_loop, strength_reduce): New argument
5282 (strength_reduce): Only call analyze_loop_iterations and
5283 insert_bct if bct_p set.
5284 (check_dbra_loop): Fix typo.
5285 (insert_bct): Use word_mode instead of SImode.
5286 (instrument_loop_bct): Likewise. Do not delete iteration count
5287 condition code generation insn. Initialize iteration count before
5289 * rtl.h (loop_optimize): Update prototype.
5291 * ginclude/va-ppc.h (va_arg): longlong types in overflow area are
5292 not doubleword aligned.
5294 * rs6000.c (optimization_options): New function.
5295 (secondary_reload_class): Only call true_regnum for PSEUDO_REGs.
5296 * rs6000.h (OPTIMIZATION_OPTIONS): Define.
5297 (REG_ALLOC_ORDER): Allocate highest numbered condition regsiters
5298 first; cr1 can be used for FP record condition insns.
5300 Fri Sep 18 09:44:55 1998 Nick Clifton <nickc@cygnus.com>
5302 * config/m32r/m32r.h (m32r_block_immediate_operand): Add to
5305 * config/m32r/m32r.md: Add "movstrsi" and "movstrsi_internal"
5308 * config/m32r/m32r.c (m32r_print_operand): Add 's' and 'p'
5310 (block_move_call): New function: Call a library routine to copy a
5312 (m32r_expand_block_move): New function: Expand a "movstrsi"
5313 pattern into a sequence of insns.
5314 (m32r_output_block_move): New function: Expand a
5315 "movstrsi_internal" pattern into a sequence of assembler opcodes.
5316 (m32r_block_immediate_operand): New function: Return true if the
5317 RTL is an integer constant, less than or equal to MAX_MOVE_BYTES.
5319 Thu Sep 17 16:42:16 EDT 1998 Andrew MacLeod <amacleod@cygnus.com>
5321 * except.c (start_catch_handler): Issue 'fatal' instead of 'error' and
5323 * libgcc2.c (__eh_rtime_match): fprintf a runtime error. Use <stdio.h>.
5325 Thu Sep 17 12:24:33 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
5327 * regmove.c (copy_src_to_dest): Check that modes match.
5329 Wed Sep 16 22:10:42 1998 Robert Lipe <robertl@dgii.com>
5331 * config/i386/sco5.h (SUPPORTS_WEAK): True only if targeting ELF.
5333 Wed Sep 16 15:24:54 1998 Richard Henderson <rth@cygnus.com>
5335 * i386.h (PREFERRED_RELOAD_CLASS): Respect an existing class
5336 narrower than FLOAT_REGS.
5338 Wed Sep 16 17:51:00 1998 Alexandre Oliva <oliva@dcc.unicamp.br>
5340 * cpplib.c: removed OLD_GPLUSPLUS_INCLUDE_DIR
5342 * Makefile.in (old_gxx_include_dir): removed
5344 Wed Sep 16 12:29:22 1998 Nick Clifton <nickc@cygnus.com>
5346 * config/sh/sh.h: Update definition of HANDLE_PRAGMA to match
5349 * config/sh/sh.c (handle_pragma): Rename to sh_handle_pragma().
5350 (sh_handle_pragma): Change function arguments to match new
5351 specification for HANDLE_PRAGMA.
5353 Wed Sep 16 12:43:19 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5355 * gen-protos.c (parse_fn_proto): Cast argument of ISALNUM to
5357 (main): Mark parameter `argc' with ATTRIBUTE_UNUSED.
5358 When generating output, initialize missing struct member to zero.
5360 Wed Sep 16 14:47:43 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
5362 * regmove.c (copy_src_to_dest): Don't copy if that requires
5363 (a) new register(s).
5365 Wed Sep 16 01:29:12 1998 Bernd Schmidt <crux@pool.informatik.rwth-aachen.de>
5367 * global.c (reg_allocno): Now static.
5368 * reload1.c (reg_allocno): Delete declaration.
5369 (order_regs_for_reload): Take no arguments. Don't treat regs
5370 allocated by global differently than those allocated by local-alloc.
5372 Wed Sep 16 01:09:01 1998 Kamil Iskra <iskra@student.uci.agh.edu.pl>
5374 * m68k/m68k.c (output_function_prologue): Reverse NO_ADDSUB_Q
5375 condition, fix format strings.
5376 (output_function_epilogue): Likewise.
5378 * m68k/m68k.c: Don't include <stdlib.h> directly.
5380 Wed Sep 16 00:30:56 1998 Geoff Keating <geoffk@ozemail.com.au>
5382 * gcse.c: New definition NEVER_SET for reg_first_set, reg_last_set,
5383 mem_first_set, mem_last_set; because 0 can be a CUID.
5384 (oprs_unchanged_p): Use new definition.
5385 (record_last_reg_set_info): Likewise.
5386 (record_last_mem_set_info): Likewise.
5387 (compute_hash_table): Likewise.
5389 Tue Sep 15 22:59:52 1998 Jeffrey A Law (law@cygnus.com)
5391 * rs6000.c (output_epilogue): Handle Chill.
5393 * mn10200.h (ASM_OUTPUT_DWARF2_ADDR_CONST): Define.
5394 * mn10300.h (ASM_OUTPUT_DWARF2_ADDR_CONST): Define.
5396 * combine.c (make_extraction): If no mode is specified for
5397 an operand of insv, extv, or extzv, default it to word_mode.
5398 (simplify_comparison): Similarly.
5399 * expmed.c (store_bit_field): Similarly.
5400 (extract_bit_field): Similarly.
5401 * function.c (fixup_var_regs_1): Similarly.
5402 * recog.c (validate_replace_rtx_1): Similarly.
5403 * mips.md (extv, extzv, insv expanders): Default modes for most
5404 operands. Handle TARGET_64BIT.
5405 (movdi_uld, movdi_usd): New patterns.
5407 * pa.c (emit_move_sequence): Do not replace a pseudo with its
5408 equivalent memory location unless we have been provided a scratch
5409 register. Similarly do not call find_replacement unless a
5410 scratch register has been provided.
5412 Tue Sep 15 19:23:01 1998 Bernd Schmidt <crux@pool.informatik.rwth-aachen.de>
5414 * i386.h (PREFERRED_RELOAD_CLASS): For standard 387 constants,
5417 Tue Sep 15 19:09:06 1998 Richard Henderson <rth@cygnus.com>
5419 * tree.h (BUILT_IN_CALLER_RETURN_ADDRESS): Unused. Kill.
5420 (BUILT_IN_FP, BUILT_IN_SP, BUILT_IN_SET_RETURN_ADDR_REG): Kill.
5421 (BUILT_IN_EH_STUB_OLD, BUILT_IN_EH_STUB, BUILT_IN_SET_EH_REGS): Kill.
5422 (BUILT_IN_EH_RETURN, BUILT_IN_DWARF_CFA): New.
5423 * c-decl.c (init_decl_processing): Update accordingly.
5424 * expr.c (expand_builtin): Likewise.
5426 * rtl.h (global_rtl): Add cfa entry.
5427 (virtual_cfa_rtx, VIRTUAL_CFA_REGNUM): New.
5428 (LAST_VIRTUAL_REGISTER): Update.
5429 * emit-rtl.c (global_rtl): Add cfa entry.
5430 (init_emit): Initialize it.
5431 * function.c (cfa_offset): New.
5432 (instantiate_virtual_regs): Initialize it.
5433 (instantiate_virtual_regs_1): Instantiate virtual_cfa_rtx.
5434 (expand_function_end): Call expand_eh_return.
5435 * tm.texi (ARG_POINTER_CFA_OFFSET): New.
5437 * except.c (current_function_eh_stub_label): Kill.
5438 (current_function_eh_old_stub_label): Likwise; update all references.
5439 (expand_builtin_set_return_addr_reg): Kill.
5440 (expand_builtin_eh_stub_old, expand_builtin_eh_stub): Kill.
5441 (expand_builtin_set_eh_regs): Kill.
5442 (eh_regs): Produce a third reg for the actual handler address.
5443 (eh_return_context, eh_return_stack_adjust): New.
5444 (eh_return_handler, eh_return_stub_label): New.
5445 (init_eh_for_function): Initialize them.
5446 (expand_builtin_eh_return, expand_eh_return): New.
5447 * except.h: Update prototypes.
5448 * flow.c (find_basic_blocks_1): Update references to the stub label.
5449 * function.h (struct function): Kill stub label elements.
5451 * libgcc2.c (in_reg_window): For REG_SAVED_REG, check that the
5452 register number is one that would be in the previous window.
5453 Provide a dummy definition for non-windowed targets.
5454 (get_reg_addr): New function.
5455 (get_reg, put_reg, copy_reg): Use it.
5456 (__throw): Rely on in_reg_window, not INCOMING_REGNO. Kill stub
5457 generating code and use __builtin_eh_return. Use __builtin_dwarf_cfa.
5459 * alpha.c (alpha_eh_epilogue_sp_ofs): New.
5460 (alpha_init_expanders): Initialize it.
5461 (alpha_expand_epilogue): Use it.
5462 * alpha.h: Declare it.
5463 * alpha.md (eh_epilogue): New.
5465 * m68h.h (ARG_POINTER_CFA_OFFSET): New.
5466 * sparc.h (ARG_POINTER_CFA_OFFSET): New.
5468 Tue Sep 15 19:31:58 1998 Michael Meissner <meissner@cygnus.com>
5470 * i960.h (CONST_COSTS): Fix thinko. Test flag, not the constant
5473 Tue Sep 15 14:10:54 EDT 1998 Andrew MacLeod <amacleod@cygnus.com>
5475 * except.h (struct eh_entry): Add false_label field.
5476 (end_catch_handler): Add prototype.
5477 * except.c (push_eh_entry): Set false_label field to NULL_RTX.
5478 (start_catch_handler): When using old style exceptions, issue
5479 runtime typematch code before continuing with the handler.
5480 (end_catch_handler): New function, generates label after handler
5481 if needed by older style exceptions.
5482 (expand_start_all_catch): No need to check for new style exceptions.
5483 (output_exception_table_entry): Only output the first handler label
5484 for old style exceptions.
5485 * libgcc2.c (__eh_rtime_match): New routine to lump runtime matching
5486 mechanism into one function, if a runtime matcher is provided.
5488 Tue Sep 15 13:53:59 EDT 1998 Andrew MacLeod <amacleod@cygnus.com>
5490 * config/i960/i960.h (SLOW_BYTE_ACCESS): Change definition to 1.
5492 Tue Sep 15 09:59:01 1998 Mark Mitchell <mark@markmitchell.com>
5494 * integrate.c (copy_decl_list): Fix typo.
5496 Tue Sep 15 04:18:52 1998 David S. Miller <davem@pierdol.cobaltmicro.com>
5498 * config/sparc/sparc.md (movdf_const_intreg_sp32): Fix length
5501 Mon Sep 14 14:02:53 PDT 1998 Jeff Law (law@cygnus.com)
5503 * version.c: Bump for snapshot.
5505 Mon Sep 14 10:33:56 PDT 1998 Jeff Law (law@cygnus.com)
5507 * version.c: Bump for snapshot.
5509 Mon Sep 14 09:51:05 PDT 1998 Jeff Law (law@cygnus.com)
5511 * version.c: Bump for snapshot.
5513 Sun Sep 13 22:10:18 1998 David S. Miller <davem@pierdol.cobaltmicro.com>
5515 * invoke.texi (C Dialect Options): Put back missing @end itemize.
5517 Mon Sep 14 02:33:46 1998 Alexandre Oliva <oliva@dcc.unicamp.br>
5519 * configure.in: remove usage of `!' to negate the result of a
5520 command; some common shells do not support it
5522 Sun Sep 13 19:17:35 1998 David S. Miller <davem@pierdol.cobaltmicro.com>
5524 * configure.in: in sparc9-sol2 config, use 'if test' not
5526 * configure: Rebuilt.
5528 * config/sparc/sol2-sld-64.h (SPARC_DEFAULT_CMODEL): Change to
5530 (CPP_CPU_SPEC): Do not define _LP64, header files do this.
5531 (CPP_CPU_DEFAULT_SPEC): Likewise.
5532 * config/sparc/sol2.h (INIT_SUBTARGET_OPTABS): Get the names right
5533 for arch64 libfuncs.
5535 * config/sparc/sparc.md (goto_handler_and_restore): Allow any mode
5538 Sun Sep 13 09:11:59 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5540 * acconfig.h (NEED_DECLARATION_STRSIGNAL): Provide a stub.
5542 * collect2.c: Don't declare `sys_siglist' here.
5543 (my_strsignal): Prototype and define new function. Use it in
5544 place of `sys_siglist' hacks.
5546 * mips_tfile.c: Likewise.
5548 * configure.in (AC_CHECK_FUNCS): Check for strsignal.
5549 (GCC_NEED_DECLARATIONS): Likewise.
5551 * system.h (strsignal): Prototype it, if necessary.
5552 (sys_siglist): Declare it, if necessary.
5554 Sun Sep 13 04:37:28 1998 David S. Miller <davem@pierdol.cobaltmicro.com>
5556 * loop.c (move_movables): While removing insn sequences, preserve
5557 the next pointer of the most recently deleted insn when we skip
5560 Sun Sep 13 08:13:39 1998 Ben Elliston <bje@cygnus.com>
5562 * objc/config-lang.in: Do not output the name of the selected
5563 thread file when building the front-end. The Makefile for the
5564 runtime library will do this.
5566 * objc/Make-lang.in: Do not build the runtime library or install
5567 the Objective C header files. The Makefile for the runtime
5568 library will do this.
5570 * objc/Makefile.in (all.indirect): Only build the front-end.
5571 (compiler): Rename to `frontend'.
5572 (obj-runtime): Remove target.
5573 (copy-headers): Likewise.
5574 (clean): No need to remove `libobjc.a' any longer.
5576 Sat Sep 12 11:37:19 1998 Michael Meissner <meissner@cygnus.com>
5578 * rs6000.h ({ASM,CPP}_CPU_SPEC): Add support for all machines
5579 supported with -mcpu=xxx.
5581 Fri Sep 11 23:55:54 1998 David S. Miller <davem@pierdol.cobaltmicro.com>
5583 * flow.c (mark_set_1): Recognize multi-register structure return
5584 values in CALL insns.
5585 (mark_used_regs): Likewise.
5586 (count_reg_sets_1): Likewise.
5587 (count_reg_references): Likewise.
5588 * rtlanal.c (note_stores): Likewise.
5589 (reg_overlap_mentioned_p): Likewise.
5590 * haifa-sched.c (check_live_1): Likewise.
5591 (update_live_1): Likewise.
5592 (sched_analyze_1): Likewise.
5593 (sched_note_set): Likewise.
5594 (birthing_insn_p): Likewise.
5595 (attach_deaths): Likewise.
5597 * config/sparc/sparc.md (movdf_const_intreg_sp64): Disable.
5600 Fri Sep 11 22:57:55 1998 Eric Dumazet <dumazet@cosmosbay.com>
5602 * config/i386/sco5.h (ASM_WEAKEN_LABEL): Defined as in svr4.h.
5604 Thu Sep 10 22:02:04 1998 David S. Miller <davem@pierdol.cobaltmicro.com>
5606 * glimits.h (__LONG_MAX__): Recognize __sparcv9 too.
5608 Thu Sep 10 21:19:10 1998 Jakub Jelinek <jj@sunsite.ms.mff.cuni.cz>
5610 * configure.in: Add check for GAS subsection -1 support.
5611 * acconfig.h (HAVE_GAS_SUBSECTION_ORDERING): Add.
5612 * configure config.in: Rebuilt.
5613 * config/sparc/sparc.h (CASE_VECTOR_MODE): For V9 flag_pic, use
5614 SImode is subsection -1 works, else use DImode.
5615 (ASM_OUTPUT_ADDR_VEC_START, ASM_OUTPUT_ADDR_VEC_END): Define if
5616 subsection -1 works.
5617 * config/sparc/sparc.c (sparc_output_addr_vec,
5618 sparc_output_addr_diff_vec): Use them if defined.
5620 Thu Sep 10 10:46:01 1998 Mark Mitchell <mark@markmitchell.com>
5622 * tree.h (DECL_ORIGIN): New macro.
5623 * integrate.c (copy_and_set_decl_abstract_origin): New function.
5624 (copy_decl_list): Use it.
5625 (integrate_parm_decls): Likewise.
5626 (integrate_decl_tree): Likewise.
5627 * dwarf2out.c (decl_ultimate_origin): Simplify.
5628 * dwarfout.c (decl_ultimate_origin): Likewise.
5629 * c-decl.c (duplicate_decls): Use DECL_ORIGIN.
5630 (pushdecl): Likewise.
5632 Thu Sep 10 08:01:31 1998 Anthony Green <green@cygnus.com>
5634 * config/rs6000/rs6000.c (output_epilog): Add Java support.
5636 Thu Sep 10 14:48:59 1998 Martin von Löwis <loewis@informatik.hu-berlin.de>
5638 * invoke.texi (C++ Dialect Options): Document -fhonor-std.
5640 Thu Sep 10 01:38:05 1998 Jeffrey A Law (law@cygnus.com)
5642 * reg-stack.c (straighten_stack): Do nothing if the virtual stack is
5643 empty or has a single entry.
5645 * toplev.c (rest_of_compilation): Open up the dump file for reg-stack
5646 before calling reg_to_stack.
5648 Thu Sep 10 00:03:34 1998 Richard Henderson <rth@cygnus.com>
5650 * alpha.c (alphaev5_insn_pipe): Abort on default case.
5651 (alphaev5_next_group): Swallow CLOBBERs and USEs.
5653 * c-tree.h (warn_long_long): Declare it.
5655 Wed Sep 9 23:31:36 1998 (Stephen L Moshier) <moshier@world.std.com>
5657 * emit-rtl.c (gen_lowpart_common): Disable optimization of
5658 initialized float-int union if the value is a NaN.
5660 Wed Sep 9 23:00:48 1998 Nathan Sidwell <nathan@acm.org>
5662 * c-lex.c (real_yylex): Don't warn about long long constants if
5663 we're allowing long long
5665 Wed Sep 9 21:58:41 1998 Bernd Schmidt <crux@pool.informatik.rwth-aachen.de>
5667 * except.h (current_function_eh_stub_label): Declare.
5668 (current_function_eh_old_stub_label): Declare.
5669 * function.h (struct function): New members eh_stub_label and
5671 * except.c (current_function_eh_stub_label): New variable.
5672 (current_function_eh_old_stub_label): New variable.
5673 (init_eh_for_function): Clear them.
5674 (save_eh_status): Save them.
5675 (restore_eh_status): Restore them.
5676 (expand_builtin_eh_stub): Set current_function_eh_stub_label.
5677 (expand_builtin_eh_stub_old): Set current_function_eh_old_stub_label.
5678 * flow.c (find_basic_blocks_1): When handling a REG_LABEL note, don't
5679 make an edge from the block that contains it to the block starting
5680 with the label if this label is one of the eh stub labels.
5681 If eh stub labels exist, show they are reachable from the last block
5684 * reload1.c (reload): Break out several subroutines and make some
5686 (calculate_needs_all_insns): New function, broken out of reload.
5687 (calculate_needs): Likewise.
5688 (find_reload_regs): Likewise.
5689 (find_group): Likewise.
5690 (find_tworeg_group): Likewise.
5691 (something_needs_reloads): New global variable, formerly in reload.
5692 (something_needs_elimination): Likewise.
5693 (caller_save_spill_class): Likewise.
5694 (caller_save_group_size): Likewise.
5695 (max_needs): Likewise.
5696 (group_size): Likewise.
5697 (max_groups): Likewise.
5698 (max_nongroups): Likewise.
5699 (group_mode): Likewise.
5700 (max_needs_insn): Likewise.
5701 (max_groups_insn): Likewise.
5702 (max_nongroups_insn): Likewise.
5703 (failure): Likewise.
5705 * print-rtl.c (print_rtx): For MEMs, print MEM_ALIAS_SET.
5707 Wed Sep 9 13:14:41 1998 Richard Henderson <rth@cygnus.com>
5709 * loop.c (load_mems): Copy rtx for output mem.
5711 Wed Sep 9 15:16:58 1998 Gavin Romig-Koch <gavin@cygnus.com>
5713 * mips/abi64.h (LONG_MAX_SPEC): Don't set LONG_MAX for
5714 mips1 or mips2 either.
5716 Wed Sep 9 12:31:35 1998 Jeffrey A Law (law@cygnus.com)
5718 * pa.c (pa_reorg): New marking scheme for jumps inside switch
5720 (pa_adjust_insn_length): Update to work with new marking scheme
5721 for jumps inside switch tables.
5722 * pa.md (switch_jump): Remove pattern.
5723 (jump): Handle jumps inside jump tables.
5725 * Makefile.in (profile.o): Depend on insn-config.h
5727 Wed Sep 9 09:36:51 1998 Jim Wilson <wilson@cygnus.com>
5729 * iris6.h (DWARF2_UNWIND_INFO): Undef.
5731 Wed Sep 9 01:32:01 1998 David S. Miller <davem@pierdol.cobaltmicro.com>
5733 Add preliminary native sparcv9 Solaris support.
5734 * configure.in: Recognize sparv9-*-solaris2*
5735 * configure: rebuilt
5736 * config.sub: Recognize sparcv9 just like sparc64.
5737 * config/sparc/sol2-c1.asm config/sparc/sol2-ci.asm
5738 config/sparc/sol2-cn.asm: Macroize so it can be shared between
5739 32-bit and 64-bit Solaris systems.
5740 * config/sparc/t-sol2: Assemble those with cpp.
5741 * config/sparc/sparc.h (TARGET_CPU_sparcv9): New alias for v9.
5742 (*TF*_LIBCALL): If ARCH64 use V9 names.
5743 * config/sparc/{xm-sysv4-64,sol2-sld-64}.h: New files.
5745 Wed Sep 9 01:07:30 1998 Jakub Jelinek <jj@sunsite.ms.mff.cuni.cz>
5747 * config/sparc/sparc.h (TARGET_CM_MEDMID): Fix documentation.
5748 (CASE_VECTOR_MODE): Set to SImode even if PTR64, when MEDLOW and
5750 (ASM_OUTPUT_ADDR_{VEC,DIFF}_ELT): Check CASE_VECTOR_MODE not
5752 * config/sparc/sparc.md (tablejump): Likewise, and sign extend op0
5753 to Pmode if CASE_VECTOR_MODE is something else.
5755 Wed Sep 9 00:10:31 1998 Jeffrey A Law (law@cygnus.com)
5757 * prefix.c (update_path): Correctly handle cases where PATH is
5758 a substring of the builtin prefix, but specifies a different
5761 Tue Sep 8 23:46:04 1998 Hans-Peter Nilsson <hp@axis.se>
5763 * expr.c: Corrected comment about what MOVE_RATIO does.
5764 * config/alpha/alpha.h: Ditto.
5765 * config/1750a/1750a.h: Ditto.
5766 * config/clipper/clipper.h: Ditto.
5767 * config/i386/i386.h: Ditto.
5769 Tue Sep 8 22:56:12 1998 Jeffrey A Law (law@cygnus.com)
5771 * configure.in (m68k-next-nextstep3*): Use collect2.
5772 Similarly for x86 NeXT configurations.
5773 * configure: Rebuilt.
5775 Tue Sep 8 01:38:57 1998 Nathan Sidwell <nathan@acm.org>
5777 * configure.in: Don't assume srcdir is .../gcc
5778 * configure: Rebuilt.
5780 Sat Sep 5 16:34:34 EDT 1998 John Wehle (john@feith.com)
5782 * global.c: Update comments.
5783 (global_alloc): Assign allocation-numbers
5784 even for registers allocated by local_alloc in case
5785 they are later spilled and retry_global_alloc is called.
5786 (mark_reg_store, mark_reg_clobber,
5787 mark_reg_conflicts, mark_reg_death): Always record a
5788 conflict with a pseudo register even if it has been
5789 assigned to a hard register.
5790 (dump_conflicts): Don't list pseudo registers already assigned to
5791 a hard register as needing to be allocated, but do list their
5793 * local-alloc.c: Update comment.
5795 Mon Sep 7 23:38:01 1998 Jeffrey A Law (law@cygnus.com)
5797 * configure.in: Check for bogus GCC_EXEC_PREFIX and LIBRARY_PATH.
5798 * configure: Rebuilt.
5800 Mon Sep 7 22:41:46 1998 Michael Meissner <meissner@cygnus.com>
5802 * rs6000.c (rs6000_override_options): Fix name for ec603e, to add
5804 * t-ppccomm (MULTILIB_MATCHES_FLOAT): Add support for -mcpu=xxx
5805 for all targets that set -msoft-float.
5807 Mon Sep 7 23:30:07 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5809 * toplev.c (print_switch_values): Make static to match prototype.
5811 Mon Sep 7 19:13:59 1998 Jeffrey A Law (law@cygnus.com)
5813 * configure.in: If we are unable to find the "gnatbind" program,
5814 then do not configure the ada subdir.
5815 * configure: Rebuilt.
5817 Sun Sep 6 14:03:58 PDT 1998 Jeff Law (law@cygnus.com)
5819 * version.c: Bump for snapshot.
5821 Sun Sep 6 13:28:07 PDT 1998 Jeff Law (law@cygnus.com)
5823 * version.c: Bump for snapshot.
5825 Sun Sep 6 08:54:14 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5827 * Makefile.in (toplev.o): Depend on $(EXPR_H).
5828 (insn-extract.o, insn-attrtab.o): Depend on toplev.h.
5830 * gansidecl.h: Define ATTRIBUTE_NORETURN.
5832 * genattrtab.c: Have insn-attrtab.c include toplev.h.
5834 * genextract.c: Have insn-extract.c include toplev.h.
5836 * rtl.h: Don't prototype `fatal_insn_not_found' and `fatal_insn'.
5838 * toplev.c: Include expr.h.
5839 (really_sorry, fancy_abort): Remove prototypes.
5840 (set_target_switch): Add argument in prototype.
5841 (vfatal): Mark prototype with ATTRIBUTE_NORETURN.
5842 (v_really_sorry): Likewise.
5843 (print_version, print_single_switch, print_switch_values): Make
5844 static and add prototype arguments.
5845 (decl_printable_name): Add prototype arguments.
5846 (lang_expand_expr_t): New typedef.
5847 (lang_expand_expr): Declare as a lang_expand_expr_t.
5848 (incomplete_decl_finalize_hook): Add prototype argument.
5849 (decl_name): Mark variable `verbosity' with ATTRIBUTE_UNUSED.
5850 (botch): Likewise for variable `s'.
5851 (rest_of_type_compilation): Mark variables `type' and `toplev'
5852 with ATTRIBUTE_UNUSED if none of DBX_DEBUGGING_INFO,
5853 XCOFF_DEBUGGING_INFO or SDB_DEBUGGING_INFO are defined.
5854 (display_help): Make variable `i' an `unsigned long'.
5855 (main): Remove unused parameter `envp'.
5856 Cast assignment to `lang_expand_expr' to a `lang_expand_expr_t'.
5857 Cast -1 when comparing it with a `size_t'.
5859 * toplev.h (fatal, fatal_io_error, pfatal_with_name): Mark
5860 prototype with ATTRIBUTE_NORETURN.
5861 (fatal_insn_not_found, fatal_insn, really_sorry,
5862 push_float_handler, pop_float_handler): Add prototypes.
5863 (fancy_abort): Mark prototype with ATTRIBUTE_NORETURN.
5864 (do_abort, botch): Add prototypes.
5866 Sat Sep 6 12:05:18 1998 John Carr <jfc@mit.edu>
5868 * final.c (final): If a label is reached only from a single jump,
5869 call NOTICE_UPDATE_CC on the jump and its predecessor before
5870 emitting the insn after the label.
5872 * i386.h: Add AMD K6 support.
5873 Change TARGET_* macros to use table lookup.
5874 (INITIALIZE_TRAMPOLINE): Improve trampoline code.
5875 (ADJUST_COST): Change definition to call function in i386.c.
5876 (ISSUE_RATE): Define as 2 for anything newer than an 80486.
5877 * i386.c: Add AMD K6 support.
5878 Add constants for feature tests used by TARGET_* macros.
5879 (split_di): If before reload, call gen_lowpart and gen_highpart.
5880 (x86_adjust_cost): New function.
5881 (put_jump_code): New function.
5882 (print_operand): New codes 'D' and 'd'.
5883 * i386.md: New insn types. New insn attribute "memory".
5884 Redefine scheduling parameters to use new types and add AMD K6
5885 support. Explicitly set type of most insns.
5886 (move insns): K6 prefers movl $0,reg to xorl reg,reg. Pentium
5887 Pro and K6 prefer movl $1,reg to incl reg.
5888 (adddi3, subdi3): Set cc_status.
5889 (DImode shift patterns): Change label counters from HOST_WIDE_INT
5890 to int; x86 can't have more than 2^31 DImode shifts per file.
5891 (setcc): Combine all setcc patterns. Allow writing memory.
5892 Combine all jump patterns using match_operator.
5893 (*bzero): Name pattern. Emit mutliple stos instructions when that
5894 is faster than rep stos.
5895 (xordi3, anddi3, iordi3): Simplify DImode logical patterns and
5898 Sun Sep 6 11:17:20 1998 Dave Love <d.love@dl.ac.uk>
5900 * config/m68k/x-next (BOOT_LDFLAGS): Define suitably for f771
5903 Sat Sep 5 22:05:25 1998 Richard Henderson <rth@cygnus.com>
5905 * alpha.c (alpha_ra_ever_killed): Inspect the topmost sequence,
5906 not whatever we're generating now.
5908 * alpha.c (set_frame_related_p, FRP): New.
5909 (alpha_expand_prologue): Mark frame related insns.
5910 (alpha_expand_epilogue): Likewise, but with a null FRP.
5911 * alpha.h (INCOMING_RETURN_ADDR_RTX): New.
5912 * alpha.md (exception_receiver): New.
5913 * alpha/crtbegin.asm (.eh_frame): New beginning.
5914 (__do_frame_setup, __do_frame_takedown): New.
5915 * alpha/crtend.asm (.eh_frame): New ending.
5916 * alpha/elf.h (DWARF2_DEBUGGING_INFO): Define.
5917 (ASM_SPEC): Don't emit both dwarf2 and mdebug.
5918 (ASM_FILE_START): Don't emit .file for dwarf2.
5920 * rtl.h (enum reg_note): Add REG_FRAME_RELATED_EXPR.
5921 * rtl.c (reg_note_name): Likewise.
5922 * rtl.texi (REG_NOTES): Likewise.
5923 * dwarf2out.c (dwarf2out_frame_debug): Use it. Recognize a store
5926 Sat Sep 5 14:47:17 1998 Richard Henderson <rth@cygnus.com>
5928 * i386.h (PREFERRED_RELOAD_CLASS): Standard fp constants load to TOS.
5929 * i386.md (movsf, movdf, movxf): Validate memory address returned
5930 from force_const_mem. Kill useless REG_EQUAL setting code.
5932 Sat Sep 5 14:23:31 1998 Torbjorn Granlund <tege@matematik.su.se>
5934 * m68k.md (zero_extendsidi2): Fix typo.
5936 Sat Sep 5 13:40:24 1998 Krister Walfridsson <cato@df.lth.se>
5938 * configure.in: Removed references to the removed file
5939 * config/xm-netbsd.h. Use ${cpu_type}/xm-netbsd.h for
5940 * arm*-*-netbsd* and ns32k-*-netbsd*.
5941 * config/i386/xm-netbsd.h: Removed unnecessary file.
5942 * config/m68k/xm-netbsd.h: Likewise.
5943 * config/sparc/xm-netbsd.h: Likewise.
5944 * config/mips/xm-netbsd.h: Likewise.
5946 Sat Aug 29 13:32:58 1998 Mumit Khan <khan@xraylith.wisc.edu>
5948 * i386/cygwin32.h (BIGGEST_ALIGNMENT): Define.
5949 (PCC_BITFIELD_TYPE_MATTERS): Define to be 0.
5951 * i386/cygwin32.h (ASM_OUTPUT_SECTION_NAME): Don't check for
5952 for exact section attributions.
5954 * i386/mingw32.h (CPP_PREDEFINES): Add __MSVCRT__ for msvc
5956 * i386/crtdll.h (CPP_PREDEFINES): Define.
5958 Sat Sep 5 03:23:05 1998 Jeffrey A Law (law@cygnus.com)
5960 * m68k.md (5200 movqi): Do not allow byte sized memory references
5962 * m68k.c (output_move_qimode): Do not use byte sized operations on
5965 * Makefile.in (pexecute.o): Use pexecute.c from libiberty. Provide
5966 explicit rules for building. Similarly for alloca, vfprintf,
5967 choose-temp and mkstemp, getopt, getopt1, and obstack.
5968 (INCLUDES): Add $(srcdir)/../include.
5969 * pexecute.c, alloca.c, vfprintf.c, choose-temp.c, mkstemp.c: Delete.
5970 * getopt.h, getopt.c getopt1.c, obstack.c, obstack.h: Likewise.
5972 Fri Sep 4 11:57:50 1998 Tom Tromey <tromey@cygnus.com>
5974 * gcc.c (do_spec_1): [case 'o'] Account for
5975 lang_specific_extra_outfiles.
5976 (main): Correctly clear all slots in outfiles for
5977 lang_specific_extra_outfiles. Set input_file_number before
5978 calling lang_specific_pre_link.
5980 Fri Sep 4 10:37:07 1998 Jim Wilson <wilson@cygnus.com>
5982 * loop.c (load_mems): Fix JUMP_LABEL field after for_each_rtx call.
5984 Fri Sep 4 02:01:05 1998 David S. Miller <davem@pierdol.cobaltmicro.com>
5986 * config/sparc/sparc.c (output_double_int): In all V9 symbolic
5988 (sparc_output_deferred_case_vectors): If no work to do, return.
5989 Fix thinko in Sept 1 change.
5991 1998-09-03 SL Baur <steve@altair.xemacs.org>
5993 * Makefile.in: add semicolon in BISON definition for portability.
5995 Thu Sep 3 13:34:41 1998 Toon Moene <toon@moene.indiv.nluug.nl>
5997 * config/nextstep.c (handle_pragma): Correct name of third
6000 Tue Sep 1 11:30:33 1998 Nick Clifton <nickc@cygnus.com>
6002 * config/m32r/m32r.md: Change (reg:CC 17) to (reg:SI 17).
6003 * config/m32r/m32r.h: Make register 17 be fixed.
6004 * config/m32r/m32r.c: Use SImode for cc operations.
6006 Thu Sep 3 18:17:34 1998 Benjamin Kosnik <bkoz@cygnus.com>
6008 * invoke.texi (Warning Options): Add -Wnon-template-friend
6011 Thu Sep 3 18:16:16 1998 Michael Meissner <meissner@cygnus.com>
6013 * rs6000.c (rs6000_override_options): Add -mcpu={401,e603e}.
6015 Thu Sep 3 18:05:16 1998 David Edelsohn <edelsohn@mhpcc.edu>
6017 * rs6000.md (movsf): Disable explicit secondary-reload-like
6018 functionality if TARGET_POWERPC64.
6019 (movdf): Remove TARGET_POWERPC64 explicit secondary-reload-like
6022 Thu Sep 3 11:41:40 1998 Robert Lipe <robertl@dgii.com>
6024 * fixinc.sco: Borrow code to wrap 'bool' typedefs from tinfo.h
6025 and term.h from fixinc.wrap.
6027 Thu Sep 3 09:47:31 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6029 * aclocal.m4 (GCC_HEADER_STRING): New macro to detect if it is
6030 safe to include both string.h and strings.h together.
6031 (GCC_NEED_DECLARATION): Test STRING_WITH_STRINGS when deciding
6032 which headers to search for function declarations. Continue to
6033 prefer string.h over strings.h when both are not acceptable.
6035 * acconfig.h (STRING_WITH_STRINGS): Add stub.
6037 * configure.in: Call GCC_HEADER_STRING.
6039 * system.h: Test STRING_WITH_STRINGS when deciding which headers
6040 to include. Continue to prefer string.h over strings.h when both
6043 Wed Sep 2 23:56:29 1998 David S. Miller <davem@pierdol.cobaltmicro.com>
6045 * config/sparc/sparc.c (output_double_int): If V9 and MEDLOW, do
6046 not assume top 32-bits of symbolic addresses are zero if
6049 Thu Sep 3 00:23:21 1998 Richard Henderson <rth@cygnus.com>
6051 * ginclude/va-alpha.h: Protect entire second portion of the
6052 file against double inclusion.
6054 Thu Sep 3 00:37:55 1998 Ovidiu Predescu <ovidiu@aracnet.com>
6056 Added support for the Boehm's garbage collector.
6057 * configure.in: Handle --enable-objc-gc.
6058 * configure: Rebuilt.
6059 * Makefile.in (CHECK_TARGETS): Add check-objc.
6060 (check-objc): New rule.
6061 * objc/Make-lang.in: Build a different Objective-C library that
6062 runs with the Boehm's collector.
6063 * objc/encoding.c (objc_round_acc_size_for_types): New function.
6064 * objc/encoding.c: Correctly compute the size of compound types in
6065 the presence of bitfields. Skip the variable name of the type if
6066 any. Added support for long long.
6067 * objc/encoding.h (_C_GCINVISIBLE): New specifier.
6068 (_F_GCINVISIBLE): New mask.
6069 * objc/gc.c: New file. Compute the type memory mask associated with
6070 a class based on the runtime information.
6071 * objc/misc.c: Added the hooks that use the Boehm's collector
6072 allocation functions.
6073 * objc/objc-act.c (build_class_template): Generate a new class
6074 member (gc_object_type) to hold the class' type memory mask.
6075 (build_shared_structure_initializer): Initialize the new member to
6077 (encode_complete_bitfield): New function. Generate the new
6079 (encode_field_decl): Generate the new encoding only for the GNU
6081 * objc/objc-api.h (_C_LNG_LNG, _C_ULNG_LNG): New specifiers for the
6083 (class_get_gc_object_type): New function to mark a pointer instance
6084 variable as a weak pointer.
6085 * objc/objc-features.texi: New file.
6086 * objc/objc.h (gc_object_type): New class member.
6087 * objc/objects.c (class_create_instance): Create a typed memory
6088 object when compiled with Boehm's collector support.
6089 * objc/sendmsg.c (__objc_init_install_dtable): Call
6090 __objc_send_initialize instead of setting the initialize flag.
6091 (__objc_send_initialize): Call __objc_generate_gc_type_description
6092 to generate the class type memory mask. Rewrite the code that
6093 sends the +initialize so that it is called only once (bug report
6094 and fix from Ronald Pijnacker <Ronald.Pijnacker@best.ms.philips.com>).
6095 * testsuite/objc: New testsuite for Objective-C type encoding.
6096 * testsuite/lib/objc-torture.exp: New file.
6097 * testsuite/lib/objc.exp: New file.
6099 Wed Sep 2 14:47:36 1998 Jim Wilson <wilson@cygnus.com>
6101 * jump.c (jump_optimize): In if/then/else transformations, add
6102 another call to modified_between_p for the jump insn.
6104 Wed Sep 2 14:16:49 1998 Jeffrey A Law (law@cygnus.com)
6106 * fix-header.c (symlink): Treat like readlink.
6108 Wed Sep 2 19:30:06 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
6110 * dwarfout.c (fundamental_type_code): Encode 32 bit floats/doubles
6113 Wed Sep 2 10:06:07 1998 Nick Clifton <nickc@cygnus.com>
6115 * config/nextstep.h: Update HANDLE_PRAGMA macro.
6116 * config/h8300/h8300.h: Update HANDLE_PRAGMA macro.
6117 * config/i960/i960.h: Update HANDLE_PRAGMA macro.
6119 * config/nextstep.c (handle_pragma): Take three arguments, as per
6120 the new HANDLE_PRAGMA macro specification.
6121 * config/h8300/h8300.c (handle_pragma): Take three arguments, as
6122 per the new HANDLE_PRAGMA macro specification.
6123 * config/i960/i960.c (process_pragma): Take three arguments, as
6124 per the new HANDLE_PRAGMA macro specification.
6126 Wed Sep 2 09:25:29 1998 Nick Clifton <nickc@cygnus.com>
6128 * c-lex.c (check_newline): Call HANDLE_PRAGMA before
6129 HANDLE_SYSV_PRAGMA if both are defined. Generate warning messages
6130 if unknown pragmas are encountered.
6131 (handle_sysv_pragma): Interpret return code from
6132 handle_pragma_token (). Return success/failure indication rather
6133 than next unprocessed character.
6134 (pragma_getc): New function: retrieves characters from the
6135 input stream. Defined when HANDLE_PRAGMA is enabled.
6136 (pragma_ungetc): New function: replaces characters back into the
6137 input stream. Defined when HANDLE_PRAGMA is enabled.
6139 * c-pragma.c (handle_pragma_token): Return success/failure status
6142 * c-pragma.h: Change prototype of handle_pragma_token().
6144 * varasm.c: (handle_pragma_weak): Only create this function if
6145 HANDLE_PRAGMA_WEAK is defined.
6147 * c-common,c (decl_attributes): If defined call the expression
6148 contained within the INSERT_ATTRIBUTES macro before adding
6149 attributes to a decl.
6151 * tm.texi (HANDLE_PRAGMA): Document the new verion of
6152 HANDLE_PRAGMA, which takes three arguments.
6153 (INSERT_ATTRIBUTES): Document this new macro.
6155 * LANGUAGES: Document the new version of HANDLE_PRAGMA and the
6156 new INSERT_ATTRIBUTES macro.
6158 Wed Sep 2 02:03:23 1998 David S. Miller <davem@pierdol.cobaltmicro.com>
6160 * config/sparc/sparc.md (movdf): Only generate special RTL for
6161 LABEL_REFs when PIC.
6162 (move_label_di): Remove
6163 (movdi_pic_label_ref, movdi_high_pic_label_ref,
6164 movdi_lo_sum_pic_label_ref): New patterns for 64-bit label
6165 references when PIC.
6166 * config/sparc/sparc.h (ASM_OUTPUT_ADDR_VEC_ELT,
6167 ASM_OUTPUT_ADDR_DIFF_ELT): Don't do anything special for MEDLOW,
6168 output an .xword for all 64-bit cases.
6170 Tue Sep 1 15:55:17 1998 David S. Miller <davem@pierdol.cobaltmicro.com>
6172 * config/sparc/sparc.c (finalize_pic): Don't output arbitrary
6173 alignment, use FUNCTION_BOUNDARY instead.
6174 (sparc_output_deferred_case_vectors): Likewise.
6176 Mon Aug 31 17:25:41 1998 David S. Miller <davem@pierdol.cobaltmicro.com>
6178 * config/sparc/sparc.md (movsf_const_intreg): Kill warning.
6179 (movtf_insn_sp64, movtf_no_e_insn_sp64): Reorder alternatives.
6181 Mon Aug 31 13:57:55 1998 Richard Henderson <rth@cygnus.com>
6183 * alpha/va_list.h: New file.
6184 * alpha/x-alpha (EXTRA_HEADERS): New. Add va_list.h.
6186 Mon Aug 31 14:55:02 1998 Jeffrey A Law (law@cygnus.com)
6188 * NEWS: Add SCO Openserver and Unixware 7 notes.
6192 Mon Aug 31 15:42:18 1998 Dave Brolley <brolley@cygnus.com>
6194 * varasm.c (compare_constant_1): Handle RANGE_EXPR.
6195 (record_constant_1): Handle RANGE_EXPR.
6197 Mon Aug 31 10:54:03 1998 Richard Henderson <rth@cygnus.com>
6199 * print-rtl.c (print_rtx): NOTE_INSN_LIVE has an rtx not a bitmap.
6200 * haifa-sched.c (sched_analyze): Handle NOTE_INSN_RANGE_START
6201 and NOTE_INSN_RANGE_END specially.
6202 (reemit_notes): Likewise.
6204 Mon Aug 31 10:18:52 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6206 * sparc.c (TMASK, UMASK): Use `(unsigned)1' not `1U'.
6207 (ultrasparc_sched_init): Remove unneeded &.
6209 Mon Aug 31 10:47:16 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
6211 * config/m68k/m68k.h (TARGET_SWITCHES): Don't remove MASK_68040
6212 for m68020-60, to prevent the use of fintrz.
6214 Sun Aug 30 22:17:20 1998 Mark Mitchell <mark@markmitchell.com>
6216 * configure.in: If the native compiler is GCC use $(WARN_CFLAGS)
6218 * Makefile.in: Likewise.
6219 * configure: Regenerated.
6221 Sun Aug 30 22:15:41 1998 H.J. Lu (hjl@gnu.org)
6223 * configure.in (gxx_include_dir): Changed to
6224 '${prefix}/include/g++'-${libstdcxx_interface}.
6225 * configure: Rebuilt.
6227 Sun Aug 30 20:19:43 1998 Hans-Peter Nilsson <hp@axis.se>
6229 * expr.c (expand_expr): Change ">" to ">=" making MOVE_RATIO use
6231 * tm.texi (Costs): Say MOVE_RATIO is number of mem-mem move
6232 *sequences* *below* which scalar moves will be used.
6234 Sun Aug 30 17:18:43 1998 Jeffrey A Law (law@cygnus.com)
6236 * collect2.c (mktemp): Delete unused declaration.
6238 * config/xm-netbsd.h: Remove unnecessary file.
6239 * config/*/xm-netbsd.h: Do not include the generic xm-netbsd.h
6240 file anymore, it is not needed.
6242 Sun Aug 30 16:05:45 1998 Mark Mitchell <mark@markmitchell.com>
6244 * convert.c (convert_to_integer): Issue an error on conversions to
6247 Sun Aug 30 16:47:20 1998 Martin von Lvwis <loewis@informatik.hu-berlin.de>
6249 * Makefile.in: Add lang_tree_files and gencheck.h.
6250 * configure.in: Generate them.
6251 * gencheck.c: Include gencheck.h.
6253 Sat Aug 29 21:38:24 1998 David S. Miller <davem@pierdol.cobaltmicro.com>
6255 * config/sparc/sparc.md (pic_lo_sum_di, pic_sethi_di): Rename to
6256 movdi_lo_sum_pic and movdi_high_pic and make visible.
6257 * config/sparc/sparc.c (legitimize_pic_address): For -fPIC,
6258 emit these when Pmode is not SImode.
6259 * config/sparc/linux64.h (SPARC_DEFAULT_CMODEL): Make CM_MEDLOW.
6261 Sat Aug 29 14:59:32 1998 Mumit Khan <khan@xraylith.wisc.edu>
6263 * i386/cygwin32.h (ASM_OUTPUT_SECTION_NAME): Don't emit
6264 .linkonce directive after the first time.
6266 Sat Aug 29 12:39:56 1998 Jeffrey A Law (law@cygnus.com)
6268 * m68k.md (beq0_di): Generate correct (and more efficient) code when
6269 the clobbered operand overlaps with an input.
6270 (bne0_di): Similarly.
6272 * Makefile.in (INSTALL): Remove "--no-header" argument.
6274 * NEWS: Various updates.
6276 Fri Aug 28 19:00:44 1998 David S. Miller <davem@pierdol.cobaltmicro.com>
6278 * config/sparc/sparc.c (arith_operand, const64_operand,
6279 const64_high_operand, arith_double_4096_operand): Mark mode as
6281 (create_simple_focus_bits): Remove unused arg highest_bit_set, all
6283 (sparc_emit_set_const64): Remove unused variable i.
6284 (sparc_splitdi_legitimate): Likewise for addr_part.
6285 (ultra_code_from_mask): Likewise for mask.
6286 (ultra_cmove_results_ready_p): Fixup entry modulo calc. and
6287 reverse return values so it matches usage and comments.
6288 (ultra_flush_pipeline): Likewise.
6289 (ultra_fpmode_conflict_exists): Likewise, remove unused variable
6290 this_type, and allow loads and stores of differing FP modes as
6291 they do not create a conflict.
6292 (ultra_find_type): Initialize fpmode to SFmode, fix
6293 parenthesization thinkos in large conditional.
6294 (ultrasparc_sched_init): Mark dump and sched_verbose as unused.
6295 Init free_slot_mask after ultra_cur_hist is reset, not before.
6296 (ultrasparc_rescan_pipeline_state): Remove unused variable ucode.
6297 (ultrasparc_sched_reorder): Don't bzero current pipeline state,
6298 use ultra_flush_pipeline instead, then re-init group pointer.
6299 Fix statement with no effect. If no progress made in, and no
6300 instructions scheduled at all, advance to new pipeline cycle else
6301 we get into an endless loop.
6302 (ultrasparc_adjust_cost): Remove previous arg.
6303 * config/sparc/sparc.h (ADJUST_COST): Update to reflect that.
6305 Fri Aug 28 13:52:35 1998 Jim Wilson <wilson@cygnus.com>
6307 * sparc.md (DImode, DFmode, TFmode splits): Delete self_reference
6308 code. Use reg_overlap_mentioned_p to detect when source and
6309 destination overlap.
6310 (negtf2_notv9+1): Use DFmode instead of SFmode in last two operands.
6312 1998-08-28 Brendan Kehoe <brendan@cygnus.com>
6314 * loop.c (check_dbra_loop): Pass COMPARISON_VALUE, not
6315 COMPARISON_VAL, into invariant_p.
6317 Fri Aug 28 15:13:25 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
6319 * regmove.c (regclass_compatible_p): New function.
6320 (regmove_optimize): Use it.
6322 Use NREGS parameter insted of calling max_reg_num.
6324 (fixup_match_1): Don't use code = MINUS when later tieing with
6325 a hard register is likely.
6327 Fri Aug 28 14:54:07 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
6329 * loop.c (check_dbra_loop): Fix calculation of FINAL_VALUE when
6330 COMPARISON_VAL was normalized.
6332 Thu Aug 27 20:10:46 1998 Jeffrey A Law (law@cygnus.com)
6334 * loop.c (check_dbra_loop): The loop ending comparison value
6335 must be an invariant or we can not reverse the loop.
6337 * loop.c (scan_loop): Count down from max_reg_num - 1 to
6338 FIRST_PSEUDO_REGISTER to avoid calling max_reg_num each iteration
6340 (load_mems_and_recount_loop_regs_set): Likewise.
6342 * i386.c (print_operand): Remove obsolete 'c' docs.
6344 Wed Aug 26 17:13:37 1998 Tom Tromey <tromey@cygnus.com>
6346 * gthr.h: Document __GTHREAD_MUTEX_INIT_FUNCTION.
6347 * frame.c (init_object_mutex): New function.
6348 (init_object_mutex_once): Likewise.
6349 (find_fde): Call it.
6350 (__register_frame_info): Likewise.
6351 (__register_frame_info_table): Likewise.
6352 (__deregister_frame_info): Likewise.
6354 Thu Aug 27 15:14:18 1998 Jeffrey A Law (law@cygnus.com)
6356 * haifa-sched.c (sched_analyze_insn): Fix thinko in last change.
6358 Thu Aug 27 16:34:51 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
6360 * loop.c (check_dbra_loop): Enable code for reversal
6361 of some loops without a known constant loop end.
6363 Wed Aug 26 18:38:15 1998 Richard Henderson <rth@cygnus.com>
6365 * haifa-sched.c (last_clock_var): New.
6366 (schedule_block): Initialize it.
6367 (schedule_insn): Use it to fill insn modes with issue information.
6369 * alpha.c (alpha_handle_trap_shadows): Remove do-nothing exit.
6370 Tag trapb and next insn with TImode.
6371 (alphaev5_insn_pipe, alphaev5_next_group, alphaev5_align_insns): New.
6372 (alpha_reorg): Add conditional for alpha_handle_trap_shadows.
6373 Invoke alphaev5_align_insns as appropriate.
6374 * alpha.h (LABEL_ALIGN_AFTER_BARRIER): Was ALIGN_LABEL_AFTER_BARRIER.
6375 (MD_SCHED_VARIABLE_ISSUE): New.
6376 * alpha.md (attr type): Add multi.
6377 (define_asm_attributes): New.
6378 (prologue_stack_probe_loop, builtin_setjmp_receiver): Set type multi.
6379 (arg_home): Likewise.
6380 (fnop, unop, realign): New.
6382 Wed Aug 26 15:55:41 1998 Jim Wilson <wilson@cygnus.com>
6384 * iris5.h (PREFERRED_DEBUGGING_TYPE): Undef.
6385 * iris5gas.h (PREFERRED_DEBUGGING_TYPE): Define.
6387 * configure.in (powerpc-ibm-aix4.[12]*): Change from 4.[12].*.
6388 (rs6000-ibm-aix4.[12]*): Likewise.
6389 * configure: Regnerate.
6391 Wed Aug 26 09:30:59 1998 Nick Clifton <nickc@cygnus.com>
6393 * config/arm/thumb.c (thumb_exit): Do not move a4 into lr if it
6394 already contains the return address.
6396 Wed Aug 26 12:57:09 1998 Jeffrey A Law (law@cygnus.com)
6398 * calls.c (expand_call): Use bitfield instructions to extract/deposit
6399 word sized hunks when loading unaligned args into registers.
6401 * haifa-sched.c (sched_analyze_insn): Only create scheduling
6402 barriers for LOOP, EH and SETJMP notes on the loop_notes list.
6404 * mn10300.h (RTX_COSTS): Handle UDIV and UMOD too.
6406 Wed Aug 26 16:35:37 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
6408 * loop.c (check_dbra_loop): Add some code that would allow reversal
6409 of some loops without a known constant loop end if it were enabled.
6411 Wed Aug 26 11:08:44 1998 Gavin Romig-Koch <gavin@cygnus.com>
6413 * mips.md (lshrsi3_internal2+2): Fix type-o.
6415 Wed Aug 26 10:53:03 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6417 * system.h: Include stdarg.h/varargs.h, make sure they are ordered
6418 correctly with regards to stdio.h.
6420 * calls.c: Remove stdarg.h/varargs.h.
6423 * combine.c: Likewise.
6424 * cpperror.c: Likewise.
6425 * cpplib.c: Likewise.
6426 * cpplib.h: Likewise.
6427 * doprint.c: Likewise.
6428 * emit-rtl.c: Likewise.
6429 * final.c: Likewise.
6430 * fix-header.c: Likewise.
6432 * genattr.c: Likewise.
6433 * genattrtab.c: Likewise.
6434 * gencodes.c: Likewise.
6435 * genconfig.c: Likewise.
6436 * genemit.c: Likewise.
6437 * genextract.c: Likewise.
6438 * genflags.c: Likewise.
6439 * genopinit.c: Likewise.
6440 * genoutput.c: Likewise.
6441 * genpeep.c: Likewise.
6442 * genrecog.c: Likewise.
6443 * mips-tfile.c: Likewise.
6444 * prefix.c: Likewise.
6445 * protoize.c: Likewise.
6446 * regmove.c: Likewise.
6447 * toplev.c: Likewise.
6450 Wed Aug 26 05:09:27 1998 Jakub Jelinek <jj@sunsite.ms.mff.cuni.cz>
6452 * config/sparc/sparc.c (sparc_override_options): If not
6453 TARGET_FPU, turn off TARGET_VIS.
6454 * config/sparc/sparc.h (TARGET_SWITCHES): Add no-vis.
6455 (LEGITIMATE_CONSTANT_P): Allow SF/DF mode zero when TARGET_VIS.
6456 * config/sparc/sparc.md (movsi_insn): Use fzeros not fzero.
6457 (movdi_insn_sp64): Add VIS fzero alternative.
6458 (clear_sf, clear_df): New VIS patterns.
6459 (movsf, movdf expanders): Allow fp_zero_operand flat out when
6461 (one_cmpldi2_sp64): Provide new fnot1 VIS alternative.
6463 Tue Aug 25 10:57:41 1998 Mark Mitchell <mark@markmitchell.com>
6465 * loop.c (n_times_set, n_times_used, may_not_optimize,
6466 reg_single_usage): Convert to varrays. All uses changed.
6467 (insert_loop_mem): Return a value.
6468 (scan_loop): Tweak AVOID_CC_MODE_COPIES code.
6469 (load_mems_and_recount_loop_regs_set): Likewise. Grow the arrays, if
6472 Tue Aug 25 23:57:12 1998 Jeffrey A Law (law@cygnus.com)
6475 * configure.in: Do not set thread_file to "irix" since no such
6478 * sparc.md (float abs/neg splits): Check reload_completed before
6479 calling alter_subreg.
6481 Tue Aug 25 19:17:59 1998 David S. Miller <davem@pierdol.cobaltmicro.com>
6483 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): New
6485 * config/sparc/sparc.h: Declare it.
6486 * config/sparc/sparc.md (float abs/neg splits): Use it.
6487 (all other splits): Handle SUBREGs properly where necessary.
6488 (unnamed (1<<x)-1 V8PLUS pattern): Disable for now.
6490 Tue Aug 25 19:48:46 1998 Jeffrey A Law (law@cygnus.com)
6492 * reorg.c (fill_simple_delay_slots): Do not abort if we encounter
6493 an insn on the unfilled_slots_list that has no delay slots.
6494 (fill_eager_delay_slots): Similarly.
6496 Tue Aug 25 13:35:20 1998 Nick Clifton <nickc@cygnus.com>
6498 * config/v850/v850.c (movsi_source_operand): Treat CONSTANT_P_RTX
6499 as an ordinary operand.
6501 Tue Aug 25 12:54:57 1998 Jason Merrill <jason@yorick.cygnus.com>
6503 * tree.c (valid_machine_attribute): Don't apply attributes to both
6506 Tue Aug 25 12:23:20 PDT 1998 Richard Henderson <rth@cygnus.com>
6508 * reload.c (operands_match_p): Handle rtvecs.
6510 * i386.c (legitimate_pic_address_disp_p): New.
6511 (legitimate_address_p): Use it.
6512 (legitimize_pic_address): Use unspecs to represent @GOT and @GOTOFF.
6513 Handle constant pool symbols just like statics.
6514 (emit_pic_move): Use Pmode not SImode for clarity.
6515 (output_pic_addr_const) [SYMBOL_REF]: Remove @GOT and @GOTOFF hacks.
6516 [UNSPEC]: New, handling what we killed above.
6517 [PLUS]: Detect and abort on invalid symbol arithmetic.
6518 * i386.h (CONSTANT_ADDRESS_P): Remove HIGH.
6520 Tue Aug 25 12:02:23 1998 Mark Mitchell <mark@markmitchell.com>
6522 * alias.c: Include output.h.
6523 (DIFFERENT_ALIAS_SETS_P): Don't treat alias sets as
6524 different if we're in a varargs function.
6525 * Makefile.in (alias.o): Depend on output.h
6527 Tue Aug 25 19:20:12 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
6529 * sh.h (GIV_SORT_CRITERION): Delete.
6531 Tue Aug 25 13:19:46 1998 Dave Brolley <brolley@cygnus.com>
6533 * regclass.c (regclass): Use xmalloc/free instead of alloca.
6534 * stupid.c (stupid_life_analysis): Ditto.
6535 * reload1.c (reload): Ditto.
6537 Tue Aug 25 05:48:18 1998 Jakub Jelinek <jj@sunsite.ms.mff.cuni.cz>
6539 * config/sparc/sparc.c (arith_4096_operand, arith_add_operand,
6540 arith_double_4096_operand, arith_double_add_operand): New
6542 * config/sparc/sparc.h (PREDICATE_CODES): Add them, declare them.
6543 * config/sparc/sparc.md (adddi3, addsi3, subdi3, subsi3): Use
6544 them to transform add/sub 4096 into add/sub -4096.
6546 Mon Aug 24 23:31:03 1998 David S. Miller <davem@pierdol.cobaltmicro.com>
6548 * loop.c (scan_loop): Allocate some slop to handle pseudos
6549 generated by move_movables.
6550 (load_mems_and_recount_loop_regs_set): Honor AVOID_CC_MODE_COPIES
6553 Mon Aug 24 19:45:40 1998 Jim Wilson <wilson@cygnus.com>
6555 * tree.def (DECL_RESULT): Correct documentation.
6557 Tue Aug 25 01:15:27 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
6559 * reload1.c (reload_reg_free_before_p): New argument EQUIV; Changed
6560 all callers. Abort for RELOAD_FOR_INSN. RELOAD_FOR_OUTADDR_ADDR:
6561 conflicts will all RELOAD_FOR_OUTPUT reloads.
6563 * reload1.c (reload_cse_regs_1): When deleting a no-op move that
6564 loads the function result, substitute with a USE.
6566 Mon Aug 24 15:20:19 1998 David Edelsohn <edelsohn@mhpcc.edu>
6568 * rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Use TARGET_POWERPC64
6569 when testing LEGITIMATE_INDEXED_ADDRESS_P DFmode and DImode.
6570 (LEGITIMIZE_ADDRESS): Use TARGET_POWERPC64 for INDEXED fixup.
6571 * rs6000.c (print_operand, case 'L'): Add UNITS_PER_WORD, not 4.
6572 (print_operand, cases 'O' and 'T'): Fix typos in lossage strings.
6573 * rs6000.md (fix_truncdfsi2_store): Remove %w from non-CONST_INT
6575 (movdf_softfloat32, movdf_hardfloat64, movdf_softfloat64): Change
6576 'o' to 'm' for GPR variant constraints.
6578 Mon Aug 24 10:25:46 1998 Jeffrey A Law (law@cygnus.com)
6580 * loop.c (scan_loop): Honor AVOID_CC_MODE_COPIES.
6582 * h8300.h (STRIP_NAME_ENCODING): Fix typo.
6584 * sparc.md (TFmode splits): Use reg_overlap_mentioned_p to detect
6585 when the source and destination overlap.
6587 * stmt.c (emit_case_nodes): Change rtx_function to rtx_fn to avoid
6588 clash with global type.
6590 Mon Aug 24 00:53:53 1998 Jason Merrill <jason@yorick.cygnus.com>
6592 * fixinc.irix: Add curses.h handling from fixinc.wrap.
6594 * c-common.c (combine_strings): Also set TREE_READONLY.
6595 Change warn_write_strings to flag_const_strings.
6596 * c-decl.c, c-tree.h: Likewise.
6598 Sun Aug 23 18:39:11 1998 David S. Miller <davem@pierdol.cobaltmicro.com>
6600 * config/sparc/sparc.c (sparc_emit_set_const32): If outputting a
6601 CONST_INT, not a symbolic reference, don't use a HIGH/LO_SUM
6602 sequence, use SET/IOR instead so CSE can see it.
6603 * config/sparc/sparc.md (movhi_const64_special,
6604 movsi_const64_special): New patterns necessitated by that change.
6605 (movhi_high): Remove.
6606 (movhi_lo_sum): Change to match an IOR.
6607 (movdf_insn_sp32): Test TARGET_V9 not TARGET_ARCH64.
6608 (movdf_insn_v9only): New pattern for when V9 but not ARCH64.
6609 (movdf_insn_sp64): Test both TARGET_V9 and TARGET_ARCH64.
6610 (movdf splits): Allow when not V9 or when not ARCH64 and integer
6611 registers are involved.
6612 (snesi_zero_extend split): Remove reload_completed test.
6613 (unnamed plus and minus zero_extend sidi splits): Add it.
6615 Sun Aug 23 11:56:08 1998 Mark Mitchell <mark@markmitchell.com>
6617 * extend.texi: Remove description of extension to explicit
6618 instantiation that is now endorsed by standard C++.
6620 Sun Aug 23 09:39:09 1998 David S. Miller <davem@pierdol.cobaltmicro.com>
6622 * config/arc/arc.c (arc_initialize_pic): Remove.
6623 * config/arc/arc.h (INITIALIZE_PIC): Similarly, this routine does
6624 nothing on any platform and is invoked by no-one, it does not even
6625 appear in the documentation.
6626 * config/sparc/sparc.h (INITIALIZE_PIC): Likewise.
6627 * config/sparc/sparc.c (initialize_pic): Likewise.
6628 (find_addr_reg): Remove this as well, no longer referenced after
6631 Sun Aug 23 00:17:14 1998 Jeffrey A Law (law@cygnus.com)
6633 * recog.c (validate_replace_rtx_group): New function.
6634 * recog.h (validate_replace_rtx_group): Declare it.
6635 * regmove.c (optimize_reg_copy_3): If any substitution fails, then undo
6636 the entire group of substitutions.
6638 Sat Aug 22 23:31:00 1998 Klaus-Georg Adams (Klaus-Georg.Adams@chemie.uni-karlsruhe.de)
6640 * loop.c (load_mems): Fix initializers.
6642 Fri Aug 21 23:07:46 1998 David S. Miller <davem@pierdol.cobaltmicro.com>
6644 * config/sparc/sparc.md (TFmode splits): Handle destination
6645 registers being referenced in the address correctly.
6647 * expmed.c (make_tree) [CONST_INT]: Sign extend even if
6648 TREE_UNSIGNED, when bitsize of type's mode is larger than
6649 HOST_BITS_PER_WIDE_INT.
6651 Fri Aug 21 19:31:31 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
6653 * tree.def (LABELED_BLOCK_EXPR, EXIT_BLOCK_EXPR): New tree nodes.
6654 * tree.h (LABELED_BLOCK_LABEL, LABELED_BLOCK_BODY,
6655 EXIT_BLOCK_LABELED_BLOCK, EXIT_BLOCK_RETURN, LOOP_EXPR_BODY): New
6657 * expr.c (expand_expr): Handle LABELED_BLOCK_EXPR and
6660 Thu Aug 20 19:43:44 1998 Jeffrey A Law (law@cygnus.com)
6662 * h8300.c (h8300_encode_label): Use '&' for tiny data items.
6663 * h8300.h (TINY_DATA_NAME_P): Likewise.
6664 (STRIP_NAME_ENCODING): Handle '&'.
6666 * mn10200.h (REG_OK_FOR_INDEX_P): Do not check the mode of the
6667 register (it could be accessed via an outer SUBREG).
6668 (REG_OK_FOR_BASE_P): Likewwise.
6669 (GO_IF_LEGITIMATE_ADDRESS): Consistently use REGNO_OK_FOR_BASE_P.
6671 * remove.c (optimize_reg_copy_3): Abort instead of silently generating
6674 * jump.c (rtx_renumbered_equal_p): Do not consider PLUS commutative.
6676 Thu Aug 20 17:35:20 1998 David S. Miller <davem@pierdol.cobaltmicro.com>
6678 * config/sparc/sparc.md (movtf_insn_sp32): All memory operands
6679 must be offsettable so the splits can be made.
6681 Thu Aug 20 13:56:53 1998 Michael Meissner <meissner@cygnus.com>
6683 * config/i386/winnt.c: Include system.h, not stdio.h to get
6684 sys/param.h pulled in before rtl.h in case the system defines MIN
6687 Thu Aug 20 13:44:20 1998 David Edelsohn <edelsohn@mhpcc.edu>
6689 * rs6000.md (movqi, movhi): Add CONSTANT_P_RTX.
6691 Thu Aug 20 13:15:11 1998 Dave Brolley <brolley@cygnus.com>
6693 * stor-layout.c (layout_type): Compute TYPE_SIZE_UNIT correctly for
6695 * cpplib.c (cpp_define): Handle macros with parameters.
6697 Wed Aug 19 21:33:19 1998 David Edelsohn <edelsohn@mhpcc.edu>
6699 * rs6000.c (rs6000_output_load_toc_table): Use ld for 64-bit.
6700 (output_toc): Use single TOC slot or llong minimal-toc for DFmode
6701 and DImode 64-bit. Use llong for minimal-toc SFmode and
6702 SYMBOL_REF / LABEL_REF 64-bit.
6703 (output_function_profiler): Use llong for profiler label and ld to
6704 load 64-bit label address.
6706 Wed Aug 19 17:52:27 1998 Nick Clifton (nickc@cygnus.com)
6708 * config/arm/thumb.md (extendqisi2_insn): Cope with REG +
6711 Wed Aug 19 14:13:31 PDT 1998 Jeff Law (law@cygnus.com)
6713 * version.c: Bump for snapshot.
6715 Wed Aug 19 13:10:30 PDT 1998 Jeff Law (law@cygnus.com)
6717 * version.c: Bump for snapshot.
6719 Wed Aug 19 13:06:47 1998 Jason Merrill <jason@yorick.cygnus.com>
6721 * collect2.c (extract_init_priority): Use atoi instead of strtoul.
6723 Wed Aug 19 13:51:35 1998 Hans-Peter Nilsson <hp@axis.se>
6725 * tm.texi (Misc): Fix typo "teh".
6727 * tm.texi (PIC): Fix typo "PPIC".
6729 * tm.texi (Caller Saves): Say that DEFAULT_CALLER_SAVES has no
6730 effect when -O2 and higher.
6731 * invoke.texi (Optimize Options): Likewise for -fcaller-saves.
6733 1998-08-19 Michael Hayes <michaelh@ongaonga.chch.cri.nz>
6735 * regclass.c: Changed register set documentation to be consistent
6738 * final.c (final_start_function) Removed redundant test for
6741 Wed Aug 19 13:28:41 1998 Mark Mitchell <mark@markmitchell.com>
6743 * rtl.h (rtx_function): New type.
6744 (for_each_rtx): New function.
6745 * rtlanal.c (for_each_rtx): Define it.
6747 * recog.c (change_t): New type.
6748 (change_objects, change_old_codes, change_locs, change_olds):
6750 (changes): New variable.
6751 (validate_change): Dynamically allocate room for more changes, if
6752 necessary. Uses changes array instead of change_objects, etc.
6753 (apply_change_group): Use changes array instead of
6754 change_objects, etc.
6756 * loop.c (loop_mem_info): New type.
6757 (loop_mems): New variable.
6758 (loop_mems_idx): Likewise.
6759 (looop_mems_allocated): Likewise.
6760 (scan_loop): Remove nregs parameter.
6761 (next_insn_in_loop): New function.
6762 (load_mems_and_recount_loop_regs_set): Likewise.
6763 (load_mems): Likewise.
6764 (insert_loop_mem): Likewise.
6765 (replace_loop_mem): Likewise.
6766 (replace_label): Likewise.
6767 (INSN_IN_RANGE_P): New macro.
6768 (loop_optimize): Don't pass max_reg_num() to scan_loop.
6769 (scan_loop): Remove nregs parameter, compute it after any new
6770 registers are created by load_mems. Use INSN_IN_RANGE_P and
6771 next_insn_in_loop rather than expanding them inline. Call
6772 load_mems to load memory into pseudos, if appropriate.
6773 (prescan_loop): Figure out whether or not there are jumps from the
6774 loop to targets other than the label immediately following the
6775 loop. Call insert_loop_mem to notice all the MEMs used in the
6776 loop, if it could be safe to pull MEMs into REGs for the duration
6778 (strength_reduce): Use next_insn_in_loop. Tweak comments.
6780 Wed Aug 19 08:29:44 1998 Richard Earnshaw (rearnsha@arm.com)
6782 * arm.c (arm_override_options): Remove lie about ignoring PIC flag.
6784 Wed Aug 19 07:08:15 1998 David S. Miller <davem@pierdol.cobaltmicro.com>
6786 * config/sparc/sparc.c (finalize_pic): Check for the correct
6787 nonlocal_goto_receiver UNSPEC number.
6788 * config/sparc/sparc.md (nonlocal_goto_receiver): Add comment
6789 making note of this dependency existing in sparc.c
6790 (negtf2_notv9 split): Give NEG SFmode.
6791 (negsf2): Fix insn output string.
6793 Tue Aug 18 12:40:27 1998 Richard Henderson <rth@cygnus.com>
6795 * c-common.c (decl_attributes): Issue an error if the argument
6796 to alias is not a string.
6798 Tue Aug 18 10:33:30 1998 Jeffrey A Law (law@cygnus.com)
6800 * haifa-sched.c (sched_analyze): Put all JUMP_INSNs on the last
6801 pending memory flush list.
6803 * combine.c (can_combine_p): Allow combining insns with REG_RETVAL
6805 (try_combine): Allow combining insns with REG_LIBCALL notes.
6807 * expr.c (emit_block_move): Do not call memcpy as a libcall
6808 instead build up a CALL_EXPR and call it like any other
6810 (clear_storage): Similarly for memset.
6812 * regmove.c (fixup_match_2): Do not call reg_overlap_mentioned_p
6815 * Makefile.in (cplus-dem.o): Provide explicit rules for building
6818 * regmove.c (optimize_reg_copy_1): Update REG_N_CALLS_CROSSED
6819 and REG_LIVE_LENGTH as successful substitutions are made.
6821 Tue Aug 18 07:15:27 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6823 * config/sparc/sparc.c (ultra_find_type): Add empty semicolon
6824 statement after end of loop label.
6826 Tue Aug 18 07:13:27 1998 David S. Miller <davem@pierdol.cobaltmicro.com>
6828 * config/sparc/sparc.c (ultra_types_avail): New variable.
6829 (ultra_build_types_avail): New function to record mask of insn
6830 types in ready list at this cycle.
6831 (ultrasparc_sched_reorder): Call it.
6832 (ultra_find_type): Use it to quicken the search. Also simplif
6833 dependency check, don't use rtx_equal_p because we know exactly
6834 what we are looking for.
6836 Tue Aug 18 03:20:53 1998 Richard Earnshaw (rearnsha@arm.com)
6838 * arm.h (SECONDARY_INPUT_RELOAD_CLASS): Return NO_REGS if compiling
6839 for architecture v4.
6841 Mon Aug 17 21:26:38 1998 David S. Miller <davem@pierdol.cobaltmicro.com>
6843 * config/sparc/sparc.md (sltu, sgeu): Don't FAIL, call
6845 (movsf_const_intreg, movsf_const_high, movsf_const_lo,
6846 movdf_const_intreg and helper splits): New patterns to move float
6847 constants into integer registers.
6848 (negtf2, negdf2, abstf2, absdf2): Rework using new patterns and
6851 Mon Aug 17 11:46:19 1998 Jeffrey A Law (law@cygnus.com)
6854 * tree.c (build_index_type): Copy TYPE_SIZE_UNIT from sizetype
6856 * c-decl.c (finish_enum): Copy TYPE_SIZ_UNIT from enumtype to tem.
6858 * rs6000.c (secondary_reload_class): For TARGET_ELF, indicate that
6859 a BASE_REGS register is needed as an intermediate when copying
6860 a symbolic value into any register class other than BASE_REGS.
6862 * expr.c (move_by_pieces): No longer static. Remove prototype.
6863 * rtl.h (move_by_pieces): Add extern prototype.
6864 * mips.c (expand_block_move): Handle aligned straight line copy by
6865 calling move_by_pieces.
6867 * expr.c (expand_expr): Allow assignments from TImode PARM_DECLs
6870 Mon Aug 17 10:28:52 1998 Mark Mitchell <mark@markmitchell.com>
6872 * stmt.c (expand_end_loop): Tidy. Allow unconditional
6873 jumps out of the loop to be treated as part of the exit test.
6875 Mon Aug 17 10:06:11 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6876 Jeff Law <law@cygnus.com>
6878 * Makefile.in (cplus-dep.o): Use cplus-dem.c from libiberty.
6879 * cplus-dem.c: Delete.
6881 * Makefile.in (fold-const.o): depend on $(RTL_H).
6883 * fold-const.c: Include rtl.h to get the prototype for
6884 `set_identifier_local_value'.
6886 * loop.c (express_from_1): Remove unused variable `tmp'.
6887 (combine_givs): cast the first argument of bzero to char *.
6889 * toplev.c (display_help): Remove unused variable `looking_for_start'.
6891 * c-decl.c (init_decl_processing): Remove unneeded &.
6893 * alpha.h (alpha_initialize_trampoline): Provide prototype.
6895 * except.c (set_exception_lang_code, set_exception_version_code):
6896 Change parameter from `short' to `int' to avoid using a gcc
6899 * except.h (set_exception_lang_code, set_exception_version_code):
6900 Likewise for prototypes.
6902 * flow.c (count_reg_references): Remove unused variables `regno'
6905 * gcse.c (hash_scan_insn): Declare parameter `in_libcall_block'.
6907 * prefix.c (translate_name): Cast the result of `alloca'.
6909 * varray.h (VARRAY_FREE): Reimplement as a `do-while(0)' statement.
6911 Mon Aug 17 09:23:42 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
6913 * config/m68k/m68k.c: Include "system.h" instead of <stdio.h>.
6915 (valid_dbcc_comparison_p): Mark mode argument as unused.
6916 (symbolic_operand): Likewise.
6917 (legitimize_pic_address): Likewise.
6918 (const_uint32_operand): Likewise.
6919 (const_sint32_operand): Likewise.
6920 * sched.c [!INSN_SCHEDULING]: Define only dummy function
6921 schedule_insns and comment out rest of file.
6923 * m68k.c (output_move_simode_const): Use subl to move a zero into an
6925 (output_move_[hq]imode): Likewise.
6927 Mon Aug 17 09:15:47 1998 Jeffrey A Law (law@cygnus.com)
6929 * toplev.c (main): Enable -fstrict-aliasing for -O2 and above.
6930 * invoke.texi: Corresponding changes.
6932 Mon Aug 17 02:03:55 1998 Richard Henderson <rth@cygnus.com>
6934 * regclass.c (allocate_reg_info): Respect MIN when clearing data.
6936 Sun Aug 16 17:37:06 1998 David S. Miller <davem@pierdol.cobaltmicro.com>
6938 * config/sparc/sparc.c (ultra_code_from_mask,
6939 ultra_cmove_results_ready_p, ultra_fpmode_conflict_exists,
6940 ultra_find_type, ultra_schedule_insn, ultra_flush_pipeline,
6941 ultrasparc_sched_init, ultrasparc_variable_issue,
6942 ultra_rescan_pipeline_state, ultrasparc_sched_reorder): New
6943 functions to describe UltraSPARC pipeline exactly to Haifa.
6944 (ultrasparc_adjust_cost): Indicate IMUL type insns have zero cost,
6945 as there is nothing the scheduler can do about it. Indicate that
6946 REG_DEP_OUTPUT's collide. Fixup formatting.
6947 * config/sparc/sparc.h (RTX_COSTS): Fixup integer multiply and
6948 divide costs on Ultra for DImode.
6949 (MD_SCHED_INIT, MD_SCHED_REORDER, MD_SCHED_VARIABLE_ISSUE):
6951 * config/sparc/sparc.md (ieu_unnamed function unit): Rename to
6952 ieuN and add call_no_delay_slot to type list.
6953 (cti function unit): New unit for branches on UltraSPARC.
6954 (subx/addx insns): Set type to misc.
6955 (sidi zero/sign extension insns on arch64): Set type to shift.
6956 (sign_extendhidi2_insn): Set type to sload.
6958 Sun Aug 16 13:52:00 1998 David Edelsohn <edelsohn@mhpcc.edu>
6960 * rs6000.c (rs6000_stack_info): Use if == 0 for sizes.
6961 (output_epilog): Use if != 0 for offset.
6962 (rs6000_fatal_bad_address): Prepare for Intl.
6963 * rs6000.h (rs6000_fatal_bad_address): Declare.
6964 * rs6000.md (movsfcc, movdfcc): Use else if.
6965 (elf_high): Use {liu|lis}.
6966 (elf_low): Use {cal|la}. Remove %a template from old mnemonics.
6967 (movsi): Use rs6000_fatal_bad_address.
6969 Sun Aug 16 01:53:21 1998 Richard Henderson <rth@cygnus.com>
6971 * reload.c (find_equiv_reg): Reject equivalences separated
6972 by a volatile instruction.
6974 Sun Aug 16 00:21:44 1998 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6976 * rs6000/linux.h (CPP_OS_DEFAULT_SPEC): Define.
6978 Sat Aug 15 20:51:35 1998 Richard Henderson <rth@cygnus.com>
6980 * alpha.md (movsicc): Fix mode mismatch.
6982 Sat Aug 15 20:22:33 1998 H.J. Lu (hjl@gnu.org)
6984 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): Handle aggregated
6986 * config/alpha/win-nt.h (ASM_OUTPUT_MI_THUNK): Likewise.
6988 Sat Aug 15 08:39:49 1998 David S. Miller <davem@pierdol.cobaltmicro.com>
6990 * config/sparc/sparc.md (movsi_lo_sum_pic_label_reg): Remove
6991 write-only modifier from operand 1 constraint.
6993 Sat Aug 15 06:28:19 1998 David S. Miller <davem@pierdol.cobaltmicro.com>
6995 * config/sparc/sparc.c (sparc_emit_set_const64_quick1): If
6996 emitting a XOR of -1 at the end, emit a NOT instead for combine's
6998 (sparc_emit_set_const64): Likewise, also when computing trailing
6999 bits do not negate low_bits and make fast_int an int.
7001 Fri Aug 14 21:07:03 1998 Jeffrey A Law (law@cygnus.com)
7003 * loop.c (add_label_notes): Do not ignore references to labels
7004 before dispatch tables. Mirrors Apr 8 change to mark_jump_label.
7005 * gcse.c (add_label_notes): Similarly.
7007 * pa.h (ASM_OUTPUT_MI_THUNK): Strip name encoding.
7009 * m68k.md (adddi_dilshr32): One of the operands must be a register.
7010 (adddi_dishl32): Similarly.
7012 Fri Aug 14 14:12:59 1998 Jason Merrill <jason@yorick.cygnus.com>
7014 * i386.h (MODES_TIEABLE_P): Reorganize to shut up warnings.
7015 * alias.c (memrefs_conflict_p): Add braces to shut up warnings.
7016 * cse.c (cse_basic_block): Add parens to shut up warnings.
7018 Fri Aug 14 12:58:21 1998 David S. Miller <davem@pierdol.cobaltmicro.com>
7020 * config/sparc/sparc.c (sparc_emit_set_const64_quick2,
7021 sparc_emit_set_const64_longway, const64_is_2insns,
7022 create_simple_focus_bits, sparc_emit_set_const64): Fix more bugs
7023 in 64-bit constant formation.
7024 * config/sparc/sparc.md (snesi_zero_extend split): Generate
7025 rtl for addx not subx.
7026 (define_insn movdi_const64_special): Make available even when
7027 HOST_BITS_PER_WIDE_INT is not 64.
7028 (movdi_lo_sum_sp64_cint, movdi_high_sp64_cint): Remove.
7029 (losum_di_medlow, sethm, setlo): Make op2 symbolic_operand.
7030 (cmp_siqi_trunc_set, cmp_diqi_trunc_set): Encapsulate both
7031 instances of operand 1 inside a QI subreg.
7032 (xordi3_sp64_dbl): Remove '%' constraint for op1.
7033 (one_cmpldi2_sp64): Fix output string.
7034 (one_cmplsi2_not_liveg0): Rewrite to remove unneeded extra
7036 (unnamed arch64 ashift DI): Truncate shift count if greater than
7039 Fri Aug 14 21:52:53 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
7041 * expr.c (store_expr): Don't optimize away load-store pair
7042 when either source or destination have a side effect.
7044 Fri Aug 14 16:50:10 1998 John Carr <jfc@mit.edu>
7046 * genrecog.c (add_to_sequence): Fatal error if the modes of the
7047 operands of SET are incompatible.
7049 * alpha.md: Fix max and min patterns so modes of SET operands match.
7051 Fri Aug 14 12:22:55 1998 Ian Lance Taylor <ian@cygnus.com>
7053 * configure.in: Avoid [[ by using test and changequote.
7054 * configure: Rebuild.
7056 Fri Aug 14 01:22:31 1998 David S. Miller <davem@pierdol.cobaltmicro.com>
7058 * rtl.def (CONSTANT_P_RTX): Fix typo in string name.
7060 * config/sparc/sparc.md (seqdi_special_trunc, snedi_special_trunc,
7061 seqsi_special_extend, snesi_special_extend, snesi_zero_extend and
7062 split, snedi_zero_trunc and split, seqsi_zero_extend and split,
7063 seqdi_zero_trunc and split, pic_lo_sum_di, pic_sethi_di,
7064 movdi_cc_sp64_trunc, movdi_cc_reg_sp64_trunc, addx_extend_sp32 and
7065 split, addx_extend_sp64, subx_extend_sp64, subx_extend and split):
7066 Fix mismatching modes in SET operands.
7067 (conditional move patterns): Fix formatting.
7068 (unnamed subx arch64 pattern): Remove duplicate insn.
7070 Fri Aug 14 00:34:34 1998 David S. Miller <davem@pierdol.cobaltmicro.com>
7072 * config/sparc/sparc.c (const64_operand, const64_high_operand):
7073 Get it right when HOST_BITS_PER_WIDE_INT is not 64.
7074 (input_operand): Fixup test for what we accept for constant
7076 (sparc_emit_set_const32, sparc_emit_set_symbolic_const64): Give
7078 (safe_constDI): Remove.
7079 (sparc_emit_set_safe_HIGH64, gen_safe_SET64, gen_safe_OR64,
7080 gen_safe_XOR64): New functions.
7081 (sparc_emit_set_const64_quick1, sparc_emit_set_const64_quick2,
7082 sparc_emit_set_const64_longway, sparc_emit_set_const64): Use
7084 * config/sparc/sparc.md (define_insn xordi3_sp64_dbl): Only make
7085 available when HOST_BITS_PER_WIDE_INT is not 64.
7086 (define_insn movdi_sp64_dbl, movdi_const64_special): Likewise and
7087 move before movdi_insn_sp64 pattern.
7088 (define_insn movdi_lo_sum_sp64_dbl, movdi_high_sp64_dbl): Remove.
7089 (define_insn sethi_di_medlow, seth44, setm44, sethh): Use
7090 symbolic_operand as predicate for second operand.
7091 (DImode minus split on arch32, negsi2 expander, one_cmplsi2
7092 expander): Give set VOIDmode.
7094 Fri Aug 14 01:45:06 1998 Mumit Khan <khan@xraylith.wisc.edu>
7096 * i386/cygwin32 (DEFAULT_PCC_STRUCT_RETURN): Define.
7098 Fri Aug 14 01:40:21 1998 Geoffrey Keating <geoffk@ozemail.com.au>
7100 * rs6000/linux.h (LINK_SPEC): Pass -G args to the linker.
7102 Fri Aug 14 01:23:23 1998 Richard Earnshaw (rearnsha@arm.com)
7104 * arm/netbsd.h (TARGET_DEFAULT): Default includes software floating
7106 (CPP_FLOAT_DEFAULT_SPEC): Re-define accordingly.
7108 Fri Aug 14 01:19:08 1998 Robert Lipe <robertl@dgii.com>
7110 * install.texi: Various SCO OpenServer tweaks.
7112 Thu Aug 13 20:14:40 1998 Jim Wilson <wilson@cygnus.com>
7114 * reload1.c (eliminate_regs_in_insn): Handle another case when
7115 eliminating the frame pointer to the hard frame pointer. Add
7116 missing ep->to_rtx check to one existing case.
7118 * mips/mips.md (movhi_internal2+2): Fix typo mem:SI -> mem:HI.
7120 Thu Aug 13 17:08:11 1998 Jason Merrill <jason@yorick.cygnus.com>
7122 * tree.h: De-conditionalize init_priority code.
7124 * mips.h (NM_FLAGS): Change from -Bp to -Bn.
7125 * collect2.c (NM_FLAGS): Change from -p to -n.
7127 * configure.in: Turn on collect2 for mipstx39-elf.
7128 Handle use_collect2=no properly.
7130 * c-common.c: De-conditionalize init_priority code.
7131 * collect2.c (extract_init_priority, sort_ids): New fns.
7132 (main): Call sort_ids.
7133 Move sequence_number to file scope.
7135 * configure.in: Handle --enable-init-priority.
7136 * c-common.c (attrs): Add A_INIT_PRIORITY.
7137 (init_attributes, decl_attributes): Likewise.
7138 * tree.h (DEFAULT_INIT_PRIORITY, MAX_INIT_PRIORITY): New macros.
7139 * tree.c (get_file_function_name_long): Split out...
7140 (get_file_function_name): ...from here.
7142 Thu Aug 13 16:09:53 1998 Martin von Loewis <loewis@informatik.hu-berlin.de>
7144 * expr.c (safe_from_p): Change code to ERROR_MARK only when not
7147 Thu Aug 13 15:24:48 1998 Jason Merrill <jason@yorick.cygnus.com>
7149 * toplev.c (display_help): Add braces to shut up warnings.
7150 * tree.c (simple_cst_equal): Likewise.
7152 * fold-const.c (non_lvalue): Don't deal with null pointer
7154 (fold, case COMPOUND_EXPR): Wrap a constant 0 in a NOP_EXPR.
7156 * c-typeck.c (initializer_constant_valid_p): Allow conversion of 0
7157 of any size to a pointer.
7159 Thu Aug 13 12:53:13 1998 Jim Wilson <wilson@cygnus.com>
7161 * i386/winnt.c (i386_pe_asm_file_end): Check TREE_SYMBOL_REFERENCED.
7163 Wed Aug 12 17:25:18 1998 Jeffrey A Law (law@cygnus.com)
7165 * mn10300.c (REG_SAVE_BYTES): Only reserve space for registers
7166 which will be saved.
7167 * mn10300.md (prologue insn): Only save registers which need saving.
7168 (epilogue insn): Similarly.
7170 * mn10300.c, mn10300.h, mn10300.md: Remove "global zero register"
7173 Wed Aug 12 12:39:16 1998 Gavin Romig-Koch <gavin@cygnus.com>
7175 * mips/mips.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG for
7176 VAR_DECL's in gp addressable sections.
7178 Tue Aug 11 23:02:31 1998 John Carr <jfc@mit.edu>
7180 * sparc.c: Change return <exp> to <exp>; return; in functions
7182 * sparc.md: Add empty semicolon statement after final label in
7185 Tue Aug 11 22:42:01 1998 David S. Miller <davem@pierdol.cobaltmicro.com>
7187 * config/sparc/sparc.md (define_insn addx_extend): Rename to
7188 addx_extend_sp64, only allow when TARGET_ARCH64.
7189 (define_insn addx_extend_sp32 and split): Version that works when
7191 (define_insn subx_extend): Likewise.
7192 (define_split adddi3 and subdi3 with zero extension): Fixup and
7193 correct bugs when not TARGET_ARCH64.
7195 Tue Aug 11 16:04:34 1998 John Carr <jfc@mit.edu>
7197 * except.c (set_exception_lang_code, set_exception_version_code):
7198 Use prototype-style definition if __STDC__, to match declaration
7201 * genemit.c: Change FAIL and DONE macros not to use loops.
7203 Tue Aug 11 12:27:03 1998 Jim Wilson <wilson@cygnus.com>
7205 * dwarf2out.c (ASM_OUTPUT_DWARF_ADDR_CONST): Use
7206 ASM_OUTPUT_DWARF2_ADDR_CONST if defined.
7208 * mips/mips.md (reload_outsi): Use M16_REG_P when TARGET_MIPS16.
7210 Tue Aug 11 18:12:53 1998 Dave Love <d.love@dl.ac.uk>
7212 * README.g77: Update from Craig.
7214 Tue Aug 11 04:46:01 1998 David S. Miller <davem@pierdol.cobaltmicro.com>
7216 * config/sparc/sparc.c (sparc_emit_set_const32): INTVAL is of
7218 (safe_constDI sparc_emit_set_const64_quick1,
7219 sparc_emit_set_const64_quick2, sparc_emit_set_const64_longway,
7220 analyze_64bit_constant, const64_is_2insns,
7221 create_simple_focus_bits): Fix some bugs when compiled on real
7223 (function_arg_record_value_3, function_arg_record_value_2,
7224 function_arg_record_value): Add fully prototyped forward decls.
7225 * config/sparc/sparc.md (define_insn cmpsi_insn_sp32): Rename back
7226 to cmpsi_insn and use on both 64 and 32 bit targets.
7227 (define_insn cmpsi_insn_sp64): Remove.
7228 (define_expand zero_extendsidi2): Allow for 32-bit target too.
7229 (define_insn zero_extendsidi2_insn): Rename to
7230 zero_extendsidi2_insn_sp64.
7231 (define_insn zero_extendsidi2_insn_sp32): New pattern and
7232 assosciated forced split for it.
7234 * config/sparc/sparc.c (const64_operand, const64_high_operand):
7236 * config/sparc/sparc.h: Declare them.
7237 (PREDICATE_CODES): Add them.
7238 * config/sparc/sparc.md (movdi_lo_sum_sp64_dbl,
7239 movdi_high_sp64_dbl, xordi3_sp64_dbl): Use them.
7241 Mon Aug 10 22:57:24 1998 John Carr <jfc@mit.edu>
7243 * config/sparc/sparc.md (define_insn jump): Output ba,pt not b,pt
7244 in v9 case as the latter makes the Solaris assembler crash.
7246 Mon Aug 10 22:39:09 1998 David S. Miller <davem@pierdol.cobaltmicro.com>
7248 * config/sparc/sparc.c (input_operand): Do not accept a LO_SUM MEM
7249 for TFmode when !v9. We require offsettable memory addresses.
7250 * config/sparc/sparc.h (ALTER_HARD_SUBREG): Handle TFmode to
7251 DFmode register number conversions.
7252 * config/sparc/sparc.md (define_split DFmode moves): If register
7253 is a SUBREG do alter_subreg on it before using.
7254 (define_expand movtf): Fixup comment about alignment on v9.
7255 (define_split TFmode moves): Don't use gen_{high,low}part, create
7256 explicit SUBREGs instead.
7258 Mon Aug 10 19:02:55 1998 John Carr <jfc@mit.edu>
7260 * Makefile.in (mbchar.o): Depend on mbchar.c.
7262 Mon Aug 10 04:28:13 1998 David S. Miller <davem@pierdol.cobaltmicro.com>
7263 Richard Henderson <rth@cygnus.com>
7265 Rewrite Sparc backend for better code generation and
7266 improved sparc64 support.
7267 * config/sparc/sp64-elf.h: Set JUMP_TABLES_IN_TEXT_SECTION to
7269 * config/sparc/sysv4.h: Likewise.
7270 * config/sparc/sparc.c (v8plus_regcmp_p, sparc_operand,
7271 move_operand, v8plus_regcmp_op, emit_move_sequence,
7272 singlemove_string, doublemove_string, mem_aligned_8,
7273 output_move_double, output_move_quad, output_fp_move_double,
7274 move_quad_direction, output_fp_move_quad, output_scc_insn):
7276 (small_int_or_double): New predicate.
7277 (gen_compare_reg): Remove TARGET_V8PLUS cmpdi_v8plus emission.
7278 (legitimize_pic_address): Emit movsi_{high,lo_sum}_pic instead of
7279 old pic_{sethi,lo_sum}_si patterns.
7280 (mem_min_alignment): New generic function to replace
7281 mem_aligned_8, which uses REGNO_POINTER_ALIGN information when
7282 available and can test for arbitrary alignments. All callers
7284 (save_regs, restore_regs, build_big_number,
7285 output_function_prologue, output_cbranch, output_return,
7286 sparc_flat_save_restore, sparc_flat_output_function_prologue,
7287 sparc_flat_output_function_epilogue): Prettify
7289 (output_function_epilogue): Likewise and add code to output
7290 deferred case vectors.
7291 (output_v9branch): Likewise, add new arg INSN and use it to tack
7292 on branch prediction settings. All callers changed.
7293 (print_operand): Likewise and output %l44 for LO_SUMs when
7295 (sparc_splitdi_legitimate): New function to make sure DImode
7296 splits can be run properly when !arch64.
7297 (sparc_initialize_trampoline, sparc64_initialize_trampoline):
7298 Reformat example code in comments.
7299 (set_extends): Remove UNSPEC/v8plus_clear_high case.
7300 (sparc_addr_diff_list, sparc_addr_list): New statics to keep track
7301 of deferred case vectors we need to output.
7302 (sparc_defer_case_vector): Record a case vector.
7303 (sparc_output_addr_vec, sparc_output_addr_diff_vec,
7304 sparc_output_deferred_case_vectors): New functions to output them.
7305 (sparc_emit_set_const32): New function to form 32-bit constants in
7306 registers when that requires more than one instruction.
7307 (safe_constDI, sparc_emit_set_const64_quick1,
7308 sparc_emit_set_const64_quick2, sparc_emit_set_const64_longway,
7309 analyze_64bit_constant, const64_is_2insns,
7310 create_simple_focus_bits, sparc_emit_set_const64): New functions
7311 which do the same for 64-bit constants when arch64.
7312 (sparc_emit_set_symbolic_const64): New function to emit address
7313 loading for all code models on v9.
7314 * config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Do not make
7315 %g1 fixed when arch64, unfix %g0 when TARGET_LIVE_G0.
7316 (ALTER_HARD_SUBREG): Fix thinko, return REGNO + 1 not 1.
7317 (SECONDARY_INPUT_RELOAD_CLASS, SECONDARY_OUTPUT_RELOAD_CLASS): Fix
7318 inaccuracies in comments, add symbolic and text_segment operands
7319 when TARGET_CM_MEDANY and TARGET_CM_EMBMEDANY respectively. Use
7320 GENERAL_REGS in these cases as a temp REG is needed to load these
7321 addresses into a register properly.
7322 (EXTRA_CONSTRAINT): Document more accurately, remove Q case as it
7324 (GO_IF_LEGITIMATE_ADDRESS): Allow TFmode for LO_SUM on v9 since fp
7325 quads are guarenteed to have 16-byte alignment.
7326 (LEGITIMIZE_ADDRESS): For SYMBOL_REF, CONST, and LABEL_REF use
7327 copy_to_suggested_reg instead of explicit LO_SUM and HIGH.
7328 (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC): New macros for
7329 deferred case vector implementation.
7330 (ASM_OUTPUT_ADDR_VEC_ELT): Use fputc to output newline.
7331 (ASM_OUTPUT_ADDR_DIFF_ELT): Parenthesize LABEL in macro calls.
7332 Generate "internal label - label" instead of "label - 1b".
7333 (PRINT_OPERAND_ADDRESS): For LO_SUM use %l44 on TARGET_CM_MEDMID.
7334 (PREDICATE_CODES): Remove sparc_operand, move_operand,
7335 v8plus_regcmp_op. Add small_int_or_double, input_operand, and
7337 (doublemove_string, output_block_move, output_fp_move_double,
7338 output_fp_move_quad, output_move_double, output_move_quad,
7339 output_scc_insn, singlemove_string, mem_aligned_8, move_operand,
7340 sparc_operand, v8plus_regcmp_op, v8plus_regcmp_p): Remove externs.
7341 (sparc_emit_set_const32, sparc_emit_set_const64,
7342 sparc_emit_set_symbolic_const64, input_operand, zero_operand,
7343 mem_min_alignment, small_int_or_double): Add externs.
7344 * config/sparc/sparc.md: Document the many uses of UNSPEC and
7345 UNSPEC_VOLATILE in this backend.
7346 (define_function_unit ieu): Rename to ieu_unnamed. Add move and
7347 unary to types which execute in it.
7348 (define_function_unit ieu_shift): Rename to ieu0.
7349 (define_function_unit ieu1): New, executes compare, call, and
7350 uncond_branch type insns.
7351 (define_function_units for type fdivs, fdivd, fsqrt): These
7352 execute in the fpu multiply unit not the adder on UltraSparc.
7353 (define_expand cmpdi): Disallow TARGET_V8PLUS.
7354 (define_insn cmpsi_insn): Rename to cmpsi_insn_sp32.
7355 (define_insn cmpsi_insn_sp64): New, same as sp32 variant except it
7356 allows the arith_double_operand predicate and rHI constraint when
7358 (define_insn cmpdi_sp64, cmpsf_fpe, cmpdf_fpe, cmptf_fpe,
7359 cmpsf_fp, cmpdf_fp, cmptf_fp, sltu_insn, neg_sltu_insn,
7360 neg_sltu_minux_x, neg_sltu_plus_x, sgeu_insn, neg_sgeu_insn,
7361 sltu_plus_x, sltu_plus_x, sltu_plus_x_plus_y, x_minus_sltu,
7362 sgeu_plus_x, x_minus_sgeu, movqi_cc_sp64, movhi_cc_sp64,
7363 movsi_cc_sp64, movdi_cc_sp64, movsf_cc_sp64, movdf_cc_sp64,
7364 movtf_cc_sp64, movqi_cc_reg_sp64, movhi_cc_reg_sp64,
7365 movsi_cc_reg_sp64, movdi_cc_reg_sp64, movsf_cc_reg_sp64,
7366 movdf_cc_reg_sp64, movtf_cc_reg_sp64, zero_extendhisi2_insn,
7367 cmp_siqi_trunc, cmp_siqi_trunc_set, sign_extendhisi2_insn,
7368 sign_extendqihi2_insn, sign_extendqisi2_insn,
7369 sign_extendqidi2_insn, sign_extendhidi2_insn,
7370 extendsfdf2, extendsftf2, extenddftf2, truncdfsf2, trunctfsf2,
7371 trunctfdf2, floatsisf2, floatsidf2, floatsitf2, floatdisf2,
7372 floatdidf2, floatditf2, fix_truncsfsi2, fix_truncdfsi2,
7373 fix_trunctfsi2, fix_truncsfdi2, fix_truncdfdi2, fix_trunctfdi2,
7374 adddi3_sp64, addsi3, cmp_ccx_plus, cmp_cc_plus_set, subdi_sp64,
7375 subsi3, cmp_minus_ccx, cmp_minus_ccx_set, mulsi3, muldi3,
7376 muldi3_v8plus, cmp_mul_set, mulsidi3, mulsidi3_v8plus,
7377 const_mulsidi3_v8plus, mulsidi3_sp32, const_mulsidi3,
7378 smulsi3_highpart_v8plus, unnamed subreg mult,
7379 const_smulsi3_highpart_v8plus, smulsi3_highpart_sp32,
7380 const_smulsi3_highpart, umulsidi3_v8plus, umulsidi3_sp32,
7381 const_umulsidi3, const_umulsidi3_v8plus, umulsi3_highpart_v8plus,
7382 const_umulsi3_highpart_v8plus, umulsi3_highpart_sp32,
7383 const_umulsi3_highpart, divsi3, divdi3, cmp_sdiv_cc_set, udivsi3,
7384 udivdi3, cmp_udiv_cc_set, smacsi, smacdi, umacdi, anddi3_sp64,
7385 andsi3, and_not_di_sp64, and_not_si, iordi3_sp64, iorsi3,
7386 or_not_di_sp64, or_not_si, xordi3_sp64, xorsi3, xor_not_di_sp64,
7387 xor_not_si, cmp_cc_arith_op, cmp_ccx_arith_op,
7388 cmp_cc_arith_op_set, cmp_ccx_arith_op_set, cmp_ccx_xor_not,
7389 cmp_cc_xor_not_set, cmp_ccx_xor_not_set, cmp_cc_arith_op_not,
7390 cmp_ccx_arith_op_not, cmp_cc_arith_op_not_set,
7391 cmp_ccx_arith_op_not_set, negdi2_sp64, cmp_cc_neg, cmp_ccx_neg,
7392 cmp_cc_set_neg, cmp_ccx_set_neg, one_cmpldi2_sp64, cmp_cc_not,
7393 cmp_ccx_not, cmp_cc_set_not, cmp_ccx_set_not, addtf3, adddf3,
7394 addsf3, subtf3, subdf3, subsf3, multf3, muldf3, mulsf3,
7395 muldf3_extend, multf3_extend, divtf3, divdf3, divsf3, negtf2,
7396 negdf2, negsf2, abstf2, absdf2, abssf2, sqrttf2, sqrtdf2, sqrtsf2,
7397 ashlsi3, ashldi3, unnamed DI ashift, cmp_cc_ashift_1,
7398 cmp_cc_set_ashift_1, ashrsi3, ashrdi3, unnamed DI ashiftrt,
7399 ashrdi3_v8plus, lshrsi3, lshrdi3, unnamed DI lshiftrt,
7400 lshrdi3_v8plus, tablejump_sp32, tablejump_sp64, call_address_sp32,
7401 call_symbolic_sp32, call_address_sp64, call_symbolic_sp64,
7402 call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
7403 call_address_untyped_struct_value_sp32,
7404 call_symbolic_untyped_struct_value_sp32, call_value_address_sp32,
7405 call_value_symbolic_sp32, call_value_address_sp64,
7406 call_value_symbolic_sp64, branch_sp32, branch_sp64,
7407 flush_register_windows, goto_handler_and_restore,
7408 goto_handler_and_restore_v9, goto_handler_and_restore_v9_sp64,
7409 flush, all ldd/std peepholes, return_qi, return_hi, return_si,
7410 return_addsi, return_di, return_adddi, return_sf, all call+jump
7411 peepholes, trap, unnamed trap insns): Prettify output strings.
7412 (define_insn anddi3_sp32, and_not_di_sp32, iordi3_sp32,
7413 or_not_di_sp32, xordi3_sp32, xor_not_di_sp32, one_cmpldi2):
7414 Likewise and force + implement splits for integer cases.
7415 (define_insn return_sf_no_fpu): Likewise and allow to match when
7416 no-fpu because of our subreg SFmode splits.
7417 (define_insn zero_extendqihi2, zero_extendqisi2_insn,
7418 zero_extendqidi2_insn, zero_extendhidi2_insn,
7419 zero_extendsidi2_insn, sign_extendsidi2_insn): Likewise and use
7420 input_operand for second operand.
7421 (cmp_minus_cc, cmp_minus_cc_set): Likewise and use
7422 reg_or_0_operand for operand 2 so new splits can use it.
7423 (cmp_zero_extendqisi2, cmp_zero_extendqisi2_set, cmp_cc_plus,
7424 cmp_cc_xor_not): Likewise and don't forget to check TARGET_LIVE_G0
7426 (cmp_zero_extract, cmp_zero_extract_sp64): Likewise and allow
7427 CONST_DOUBLEs for operand 2.
7428 (define_insn move_label_di): Likewise and label distance
7429 optimization because it no longer works with new deferred case
7430 vector scheme. To be revisited.
7431 (define_insn x_minus_y_minus_sltu, x_minus_sltu_plus_y): Likewise
7432 and allow reg_or_0_operand and J constraint for second operand.
7433 (define_insn jump): Set branch predict taken on V9.
7434 (define_insn tablejump): Emit LABEL_REF + PLUS memory address for
7435 new deferred case vector scheme.
7436 (define_insn pic_tablejump_32, pic_tablejump_64): Remove.
7437 (define_insn negdi2_sp32): Force + implement splits.
7438 (define_insn negsi2, one_cmplsi2): Rename to negsi2_not_liveg0 and
7439 one_cmplsi2_not_liveg0 respectively, and create expander of original
7440 names which emit special rtl for TARGET_LIVE_G0.
7441 (define_insn cmpdi_v8plus, scc_si, scc_di): Remove.
7442 (define_insn seq, sne, slt, sge, sle, sltu, sgeu): Don't do
7443 gen_compare_reg, FAIL instead.
7444 (define_insn sgtu, sleu): Likewise and check gen_s*() return
7445 values when trying to reverse condition codes, if they FAIL then
7447 (define_insn snesi_zero, neg_snesi_zero, snesi_zero_extend,
7448 snedi_zero, neg_snedi_zero, snedi_zero_trunc, seqsi_zero,
7449 neg_seqsi_zero, seqsi_zero_extend, seqdi_zero, neg_seqdi_zero,
7450 seqdi_zero_trunc, x_plus_i_ne_0, x_minus_i_ne_0, x_plus_i_eq_0,
7451 x_minus_i_eq_0): Add new splits to perform these multi-insn cases,
7452 set output string to # to indicate they are mandatory splits.
7453 (define_insn pic_lo_sum_si, pic_sethi_si, pic_lo_sum_di,
7454 pic_sethi_di, move_pic_label_si): Remove.
7455 (define_insn movsi_low_sum, movsi_high, movsi_lo_sum_pic,
7456 movsi_high_pic, movsi_pic_label_reg): New patterns to take their
7458 (define_expand movsi_pic_label_ref, define_insn
7459 movsi_high_pic_label_ref, movsi_lo_sum_pic_label_ref): New
7460 expander and insns to handle PIC label references and deferred
7462 (define_insn get_pc_via_rdpc): Comment out as it is no longer
7464 (define_expand movqi, movhi, movsi, movdi, movsf, movdf, movtf):
7465 Rewrite to not use emit_move_sequence, make use of new constant
7466 formation code, and new splits for all multi-insn cases.
7467 (define_insn movqi_insn): Remove sethi case, it can never happen.
7468 Use reg_or_zero_operand instead of const0_rtx explicit test,
7469 use input_operand instead of move_operand for source, and use
7470 general_operand now for dest.
7471 (define_insn movhi_insn): Similar but leave sethi case.
7472 (define_insn lo_sum_qi, store_qi, store_hi): Remove.
7473 (define_insn sethi_hi lo_sum_hi): Rename to movhi_high and
7474 movhi_lo_sum respectively, prettify output string.
7475 (define_insn movsi_zero_liveg0): New pattern to put zero into a
7476 register when needed on TARGET_LIVE_G0.
7477 (define_insn movsi_insn): Use general_operand and input_operand
7478 for dest and src respectively. Simplify applicability test.
7479 Prettify output strings, and add clr alternative for J
7481 (define_insn movdi_sp32_v9, movdi_sp32, define_splits for
7482 deprecated std and reg-reg DI moves): Remove and...
7483 (define_insn movdi_insn_sp32, movdi_insn_sp64): Replace with new
7484 implementation which uses forced splits for all non-single insn
7486 (define_split DI move cases on !arch64): New splits to handle all
7487 situations of 64-bit double register DImode on 32bit, and
7488 unaligned registers and memory addresses for all subtargets.
7489 (define_insn movsf_const_insn, movdf_const_insn, store_sf):
7491 (define_insn movsf_insn, movsf_no_f_insn): Use general_operand and
7492 input_operand for dest and src respectively, prettify output
7494 (define_insn movdf_insn, movdf_no_e_insn, store_df,
7495 movtf_const_insn, movtf_insn, movtf_no_e_insn, store_tf): Remove
7497 (define_insn movdf_insn_sp32, movdf_no_e_insn_sp32,
7498 movdf_insn_sp64, movdf_no_e_insn_sp64, movtf_insn,
7499 movtf_no_e_insn_sp32, movtf_insn_hq_sp64, movtf_insn_sp64,
7500 movtf_no_e_insn_sp64) Replace with new
7501 implementation which uses forced splits for all non-single insn
7503 (define_split DF move cases): New splits in similar vein to DI
7505 (define_insn sethi_di_medlow, sethi_di_medium_pic,
7506 sethi_di_embmedany_data, sethi_di_embmedany_text, sethi_di_sp64,
7507 movdi_sp64_insn): Remove old v9 code model and constant loading
7509 (define_insn pic_lo_sum_di, pic_sethi_di,
7510 sethi_di_medlow_embmedany_pic, sethi_di_medlow, losum_di_medlow,
7511 seth44, setm44, setl44, sethh, setlm, sethm, setlo,
7512 embmedany_sethi, embmedany_losum, embmedany_brsum,
7513 embmedany_textuhi, embmedany_texthi, embmedany_textulo,
7514 embmedany_textlo, movdi_lo_sum_sp64_cint, movdi_lo_sum_sp64_dbl,
7515 movdi_high_sp64_cint, movdi_high_sp64_dbl): Replace with new
7516 scheme, using unspecs, secondary reloads, and one to one sparc
7517 insn to rtl insn mapping for better scheduling and code gen.
7518 (define_expand reload_indi, reload_outdi): Reload helpers for
7519 MEDANY and EMBMEDANY symbol address loading cases which require a
7521 (define_expand movsicc): Remove v8plus_regcmp cases.
7522 (define_insn movdi_cc_sp64_trunc, movdi_cc_reg_sp64_trunc,
7523 cmp_zero_extendqidi2, cmp_zero_extendqidi2_set, cmp_qidi_trunc,
7524 cmp_diqi_trunc_set): New patterns used by some of the new scc
7526 (define_insn xordi3_sp64_dbl): New pattern used for constant
7527 formation when crossing from 32-bit targets.
7528 (define_insn movsi_cc_reg_v8plus, v8plus_clear_high, and helper
7530 (define_insn addx, subx): Make visible and prettify.
7531 (define_insn adddi3_insn_sp32): Likewise and force split.
7532 (define_insn addx_extend, subx_extend, unnamed): New patterns for
7533 64bit scc split usage.
7534 (define_insn unnamed plusDI zero_extend, unnamed minusDI
7535 zero_extend, subdi3): Force and implement splits.
7537 * final.c (final_scan_insn): Don't output labels if target
7538 specifies ASM_OUTPUT_ADDR_{DIFF}_VEC. Do these macro operations
7541 * reorg.c (dbr_schedule): When taking on BR_PRED notes at the end,
7542 don't forget to walk inside SEQUENCESs too as these are what the
7543 delay slot scheduler will create.
7545 Mon Aug 10 01:21:01 1998 Richard Henderson <rth@cygnus.com>
7547 * alpha.md (extxl+1,+2): New patterns to work around
7550 Sat Aug 8 19:20:22 1998 Gary Thomas (gdt@linuxppc.org)
7552 * rs6000.c (rs6000_allocate_stack_space) Fix typo which
7553 caused bad assembly code to be generated.
7555 Sat Aug 8 18:53:28 1998 Jeffrey A Law (law@cygnus.com)
7557 * netbsd.h: Fix typo.
7559 Mon Aug 3 00:06:42 1998 Robert Lipe <robertl@dgii.com>
7561 * config.sub: Fix typo.
7563 Sun Aug 2 22:39:08 1998 Hans-Peter Nilsson <hp@axis.se>
7565 * invoke.texi (Environment Variables): Typo: Change "ascpects"
7567 (Running Protoize): Typo: Change "ther" into "other".
7569 Sun Aug 2 00:42:50 1998 Jeffrey A Law (law@cygnus.com)
7571 * i386/netbsd.h: Undo previous change to DWARF2_UNWIND_INFO.
7572 * m68k/netbsd.h: Likewise.
7573 * ns32k/netbsd.h: Likewise.
7574 * sparc/netbsd.h: Likewise.
7576 Sat Aug 1 17:59:30 1998 Richard Henderson <rth@cygnus.com>
7578 * ginclude/va-alpha.h (va_list): Use a typedef, not a define.
7579 * ginclude/va-clipper.h (va_list): Likewise.
7581 Fri Jul 31 20:22:02 1998 Michael Meissner <meissner@cygnus.com>
7583 * rs6000.c (rs6000_override_options): If big endian and -Os, use
7584 load/store multiple instructions unless user overrides.
7586 Fri Jul 31 17:08:59 1998 Jeffrey A Law (law@cygnus.com)
7588 * ns32k/netbsd.h: Fix typo.
7590 Fri Jul 31 10:23:55 1998 Doug Evans <devans@canuck.cygnus.com>
7592 * m32r/m32r.h (ASM_OUTPUT_SOURCE_LINE): Always output line number
7593 labels with .debugsym if no parallel insns.
7595 Thu Jul 30 19:15:53 1998 Richard Henderson <rth@cygnus.com>
7597 * alpha.md (fp cmp): Replicate patterns for ALPHA_TP_INSN.
7598 (fcmov): Remove ALPHA_TP_INSN patterns -- fcmov doesn't trap.
7600 Thu Jul 30 19:50:15 1998 David Edelsohn <edelsohn@mhpcc.edu>
7602 * rs6000/x-aix43 (AR_FOR_TARGET_FLAGS): Delete.
7603 (AR_FOR_TARGET): Define.
7605 Thu Jul 30 12:29:12 1998 Mark Mitchell <mark@markmitchell.com>
7607 * dyn-string.h: New file.
7608 * dyn-string.c: Likewise.
7609 * Makefile.in (OBJS): Add dyn-string.o.
7610 (dwarf2out.o): Add dyn-string.h dependency.
7611 (dyn-string.o): List dependencies.
7612 * dwarf2out.c: Include dyn-string.h.
7613 (ASM_NAME_TO_STRING): Use dyn_string_append, rather than strcpy.
7614 (addr_const_to_string): Take a dyn_string_t, not a char* as a
7615 prototype. Use dyn_string_append rather than strcat, throughout.
7616 (addr_to_string): Use dyn_string_t.
7618 Thu Jul 30 13:08:07 1998 Ken Raeburn <raeburn@cygnus.com>
7620 Function entry/exit profiling instrumentation:
7621 * expr.h (profile_function_entry_libfunc,
7622 profile_function_exit_libfunc): Declare new variables.
7623 * optabs.c: Define them here.
7624 (init_optabs): Initialize them.
7625 * tree.h (struct tree_decl): New flag
7626 no_instrument_function_entry_exit.
7627 (DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT): New accessor macro.
7628 * c-decl.c (duplicate_decls): Merge it.
7629 * c-common.c (enum attrs): New value A_NO_INSTRUMENT_FUNCTION.
7630 (init_attributes): Use it for "no_instrument_function".
7631 (decl_attributes): Handle it, for functions that have not yet been
7632 compiled. Set decl flag.
7633 * flags.h (flag_instrument_function_entry_exit): Declare new
7635 * toplev.c (flag_instrument_function_entry_exit): Define it here.
7636 (f_options): New option "instrument-functions".
7637 * function.h (struct function): New field instrument_entry_exit.
7638 * function.c (current_function_instrument_entry_exit): New
7640 (push_function_context_to, pop_function_context_from): Save and
7642 (expand_function_start): Set current_ variable, maybe emit return
7643 label and entry profile call.
7644 (expand_function_end): Maybe emit exit profile call.
7646 Thu Jul 30 00:58:34 1998 Jeffrey A Law (law@cygnus.com)
7648 * i386.md (movqi): When optimizing a load of (const_int 1) into a
7649 NON_QI_REG_P, pretend the register is SImode.
7651 Wed Jul 29 23:49:23 1998 Todd Vierling <tv@netbsd.org>
7653 * configure.in: Use xm-netbsd.h as the NetBSD xm file (not xm-siglist).
7654 Accept arm32 as arm, m68k4k as m68k, mipsle as mips-dec, and any
7655 manufacturer id for ns32k.
7656 * configure: Regenerated.
7657 * config/netbsd.h: When using ASM_WEAKEN_LABEL, make it global too.
7658 * config/t-netbsd: Don't compile libgcc1-test as the fns are in libc.
7659 * config/i386/netbsd.h: Undefine DWARF2_UNWIND_INFO, not define as 0.
7660 * config/m68k/netbsd.h: Same.
7661 * config/ns32k/netbsd.h: Same.
7662 * config/sparc/netbsd.h: Same.
7664 Wed Jul 29 22:39:21 1998 Jeffrey A Law (law@cygnus.com)
7666 * unroll.c (unroll_loop): Do not abort for an UNROLL_MODULO
7667 or UNROLL_COMPLETELY loop that starts with a jump to its
7670 Wed Jul 29 22:18:14 1998 David Edelsohn <edelsohn@mhpcc.edu>
7672 * rs6000/rs6000.md (absdi2 define_split): Swap operands of MINUS.
7673 * rs6000/rs6000.c (mask64_operand): Use HOST_BITS_PER_WIDE_INT.
7674 (print_operand, case 'B'): Don't fall through.
7675 (print_operand, case 'S'): Correct mask begin/end computation.
7676 Use HOST_BITS_PER_WIDE_INT.
7677 * rs6000/rs6000.h (CPP_PREDEFINES): Define _LONG_LONG.
7678 (CONDITIONAL_REGISTER_USAGE): GPR13 fixed if TARGET_64BIT.
7679 * rs6000/aix41.h (CPP_PREDEFINES): Same.
7680 * rs6000/aix43.h (CPP_PREDEFINES): Same.
7682 Wed Jul 29 11:47:10 1998 Nick Clifton <nickc@cygnus.com>
7684 * config/arm/thumb.md (extendqisi2_insn): Remove earlyclobber
7685 constraint from second alternative.
7687 Tue Jul 28 23:29:04 1998 Jason Merrill <jason@yorick.cygnus.com>
7689 * configure.in: Fix --without/--disable cases for local-prefix,
7690 gxx-include-dir and checking.
7692 Tue Jul 28 22:01:23 1998 David S. Miller <davem@pierdol.cobaltmicro.com>
7694 * configure.in (enable_haifa): Set by default for sparc64 too.
7697 Tue Jul 28 23:29:04 1998 Jason Merrill <jason@yorick.cygnus.com>
7699 * i386/cygwin32.h (VALID_MACHINE_TYPE_ATTRIBUTE): New macro.
7700 * i386/winnt.c (associated_type): New fn.
7701 (i386_pe_valid_type_attribute_p): New fn.
7702 (i386_pe_check_vtable_importexport): Remove.
7703 (i386_pe_dllexport_p): Use associated_type.
7704 (i386_pe_dllimport_p): Likewise.
7706 From Antonio M. O. Neto <anmendes@cruzeironet.com.br>:
7707 * i386.c (i386_valid_type_attribute_p): Also accept
7708 attributes for METHOD_TYPEs.
7710 Tue Jul 28 23:17:39 1998 Peter Gerwinski <peter@gerwinski.de>
7712 * tree.c (build_range_type): Copy TYPE_SIZE_UNIT.
7714 Tue Jul 28 22:31:12 1998 Craig Burley <burley@gnu.org>
7716 * gcc.c: Fix commentary describing %g, %u, %U, and %O.
7718 * gcc.c (do_spec_1): Fix handling of %g%O and %U%O to prevent
7719 them from generating a new base name for each occurence of
7722 1998-07-28 Vladimir N. Makarov <vmakarov@cygnus.com>
7724 * cse.c (cse_insn): Enable subsitution inside libcall only for REG,
7726 * rtlanal.c (replace_rtx): Prohibit replaces in CONST_DOUBLE.
7730 * cplus-dem.c (type_kind_t): New type.
7731 (demangle_template_value_parm): Add type_kind_t parameter. Rely
7732 on this paramter, rather than demangling the type again.
7733 (demangle_integral_value): Pass tk_integral.
7734 (demangle_template_: Pass the value returned from do_type.
7735 (do_type): Return a type_kind_t. Pass tk_integral to
7736 demangle_template_value_parm for array bounds.
7737 (demangle_fund_type): Likewise.
7739 Mon Jul 27 00:54:41 1998 Jason Merrill <jason@yorick.cygnus.com>
7741 * tree.c (simple_cst_equal, case CONSTRUCTOR): OK if the elts are
7744 Mon Jul 27 22:18:36 1998 Jeffrey A Law (law@cygnus.com)
7746 * pa.c (move_operand): Accept CONSTANT_P_RTX.
7748 Mon Jul 27 17:18:52 1998 Dave Brolley <brolley@cygnus.com>
7750 * stor-layout.c (layout_type): Handle arrays of bits, for Chill.
7752 * expr.c (get_inner_reference): Handle zero-based, unsigned, array
7755 Mon Jul 27 14:51:33 1998 Jeffrey A Law (law@cygnus.com)
7757 * mn10300.h (DEBUGGER_AUTO_OFFSET): Define.
7758 (DEBUGGER_ARG_OFFSET): Likewise.
7760 * mn10300.md (movsf): Remove last change. Not needed.
7762 Mon Jul 27 14:22:36 1998 Dave Brolley <brolley@cygnus.com>
7764 * c-lex.c (yylex): Fix boundary conditions in character literal and
7765 string literal loops.
7767 Mon Jul 27 11:43:54 1998 Stan Cox <scox@cygnus.com>
7769 * longlong.h (count_leading_zeros): Sparclite scan instruction was
7770 being invoked incorrectly.
7772 * i386.c (ix86_prologue): Added SUBTARGET_PROLOGUE invocation.
7773 * i386/cygwin32.h (STARTFILE_SPEC, LIB_SPEC, SUBTARGET_PROLOGUE):
7775 * i386/win32.h: New file. Hybrid mingw32.h/cygwin32.h configuration.
7776 * configure.in: Added i[34567]86-*-win32
7777 * config.sub: Ditto.
7778 * configure: Rebuilt.
7780 Sun Jul 26 01:11:12 1998 H.J. Lu (hjl@gnu.org)
7782 * i386.h (CONST_DOUBLE_OK_FOR_LETTER_P): Return 0 when eliminating
7783 the frame pointer and compiling PIC code and reload has not completed.
7785 * i386.c (output_to_reg): Add code to emulate non-popping DImode
7788 Sun Jul 26 01:01:32 1998 Jeffrey A Law (law@cygnus.com)
7790 * regmove.c (regmove_optimize): Fix typo initializing regmove_bb_head.
7792 Sat Jul 25 23:29:23 1998 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7794 * Makefile.in (install-info): Only try to update the info
7795 directory file if it exists in the first place.
7797 Fri Jul 24 18:58:37 1998 Klaus Espenlaub <kespenla@student.informatik.uni-ulm.de>
7799 * rs6000.h (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Delete.
7801 Fri Jul 24 14:20:26 1998 Jeffrey A Law (law@cygnus.com)
7803 * mn10300.md (movqi, movhi, movsi, movsf): Correctly handle
7804 CONST_DOUBLE source.
7806 Fri Jul 24 11:17:04 1998 Nick Clifton <nickc@cygnus.com>
7808 * config/arm/thumb.c (thumb_print_operand): Decode %_ in asm
7809 strings as the insertion of USER_LABEL_PREFIX.
7810 * config/arm/thumb.h (PRINT_OPERAND_PUNCT_VALID_P): Accept _ as a
7812 * config/arm/thumb.md: Use %_ as a prefix to gcc library function
7815 Thu Jul 23 18:53:20 1998 Jim Wilson <wilson@cygnus.com>
7817 * dbxout.c (dbxout_range_type): Only call dbxout_type_index for
7818 already defined type.
7820 Thu Jul 23 13:49:41 1998 Jeffrey A Law (law@cygnus.com)
7822 * expr.c (check_max_integer_computation_mode): Allow conversions
7823 of constant integers to MAX_INTEGER_COMPUTATION_MODE.
7824 (expand_expr): Likewise.
7826 Thu Jul 23 11:12:06 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
7828 * expr.c (expand_expr): Expand RETURN_EXPR.
7830 Thu Jul 23 11:00:29 1998 Jim Wilson <wilson@cygnus.com>
7832 * dwarf2out.c (dwarf2out_finish): Call stripattributes on TEXT_SECTION.
7834 Wed Jul 22 19:10:00 1998 Catherine Moore <clm@cygnus.com>
7836 * dwarf2out.c (output_aranges): Call stripattributes
7837 for TEXT_SECTION references.
7838 (output_line_info): Likewise.
7840 Wed Jul 22 14:08:54 1998 David S. Miller <davem@pierdol.cobaltmicro.com>
7842 * profile.c (branch_prob): Call allocate_reg_info after outputting
7843 profile rtl in instrument_arcs.
7845 Wed Jul 22 12:47:49 1998 Jim Wilson <wilson@cygnus.com>
7847 * fixinc.irix (math.h): Install wrapper instead of copying.
7849 Wed Jul 22 12:37:14 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
7851 * tree.def (EXPR_WITH_FILE_LOCATION): Defined as an 'e' expression
7852 so WFL are expanded correctly when contained in a COMPOUND_EXPR.
7853 * tree.h (EXPR_WFL_EMIT_LINE_NOTE): Change macro not to use
7854 lang_flag_0. Added documentation in the flag table.
7856 Tue Jul 21 23:28:35 1998 Klaus Kaempf <kkaempf@rmi.de>
7858 * cccp.c (do_include): Fix vax c style include handling.
7860 Tue Jul 21 13:28:19 1998 Jason Merrill <jason@yorick.cygnus.com>
7862 * cplus-dem.c (do_type): Use demangle_template_value_parm for arrays.
7864 Sun Jul 12 01:27:05 1998 Jason Merrill <jason@yorick.cygnus.com>
7866 * fold-const.c (non_lvalue): Don't deal with null pointer
7868 (fold, case COMPOUND_EXPR): Wrap a constant 0 in a NOP_EXPR.
7870 Tue Jul 21 15:49:31 1998 David Edelsohn <edelsohn@mhpcc.edu>
7872 * rs6000.h (PREDICATE_CODES): Add CONSTANT_P_RTX.
7873 * rs6000.md (movsi, movdi): Add CONSTANT_P_RTX.
7874 * rs6000.c (short_cint_operand): Add CONSTANT_P_RTX.
7875 (u_short_cint_operand): Same.
7876 (reg_or_cint_operand): Same.
7877 (logical_operand): Same.
7878 (input_operand): Same.
7879 (reg_or_short_operand): Use u_short_cint_operand.
7881 Tue Jul 21 08:56:42 1998 Richard Henderson <rth@cygnus.com>
7883 * alpha.md (fix_truncdfsi2, fix_truncsfsi2): Remove the define_expands,
7884 but keep the insns and splits. Adjust so when the ultimate destination
7885 is memory, use cvtql.
7887 Tue Jul 21 08:55:09 1998 Richard Henderson <rth@cygnus.com>
7889 * flow.c (regno_uninitialized): Fixed regs are never uninitialized.
7891 Tue Jul 21 00:31:01 1998 Jeffrey A Law (law@cygnus.com)
7893 * gcc.c (do_spec): Call "error" not "warning".
7895 * configure.in: Fix minor problems with gas feature detection code.
7896 * configure: Rebuilt.
7898 * gcc.c (do_spec): Issue a warning for '%[]' usage.
7901 * gcc.c: Delete %[spec] support.
7902 (do_spec_1, case '('): Likewise.
7903 (do_spec_1, case '['): Call error.
7905 Mon Jul 20 22:34:17 1998 Richard Henderson <rth@cygnus.com>
7907 * alpha.h (CPP_SPEC): Tidy. Hook to cpp_cpu and cpp_subtarget.
7908 (CPP_SUBTARGET_SPEC): Default to empty string.
7909 (CPP_AM_*, CPP_IM_*, CPP_CPU_*, CPP_CPU_SPEC): New.
7910 (EXTRA_SPECS, SUBTARGET_EXTRA_SPECS): New.
7911 * alpha/elf.h (LD_SPEC): Use %(elf_dynamic_linker).
7912 * alpha/linux-elf.h (SUBTARGET_EXTRA_SPECS): New.
7914 * alpha/linux.h (CPP_PREDEFINES): Tidy.
7915 * alpha/netbsd-elf.h (SUBTARGET_EXTRA_SPECS): New.
7916 * alpha/netbsd.h (CPP_PREDEFINES): Tidy.
7917 * alpha/osf.h (CPP_PREDEFINES): Remove bits subsumed by CPP_CPU_SPEC.
7918 * alpha/win-nt.h (CPP_PREDEFINES): Likewise.
7919 * alpha/vsf.h (CPP_PREDEFINES): Likewise.
7920 (CPP_SUBTARGET_SPEC): New. Do this instead of overriding CPP_SPEC.
7921 * alpha/vxworks.h: Likewise.
7923 Mon Jul 20 22:51:57 1998 Ken Raeburn <raeburn@cygnus.com>
7925 * mips.md (reload_outsi): Added missing REGNO call.
7926 (smulsi3_highpart, umulsi3_highpart): Provide prototype for
7928 (mul_acc_di, mul_acc_64bit_di): Don't use match_op_dup, use
7929 another match_operator and compare the codes.
7931 * mips.h (MASK_DEBUG_E, MASK_DEBUG_I): Set to zero.
7933 * MIPS multiply pattern fixes:
7934 * mips.h (enum reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS):
7935 Add union classes for HI, LO, or HILO plus general registers.
7936 (GENERATE_MADD): Deleted.
7937 * mips.md (mulsi3_mult3): Don't disparage output-LO alternative.
7938 Add TARGET_MAD to condition.
7939 (mulsi3): Test HAVE_mulsi3_mult3, not specific flags.
7940 (mul_acc_si): Expand GENERATE_MADD here; it's the only use. Use
7941 "*d" for accumulator, to give preference to LO initially but not
7944 Mon Jul 20 16:16:38 1998 Dave Brolley <brolley@cygnus.com>
7946 * configure.in (enable_c_mbchar): New configure option.
7947 (extra_cpp_objs): Always available now.
7949 * cexp.y (mbchar.h): #include it.
7950 (yylex): Handle Multibyte characters in character literals.
7952 * cccp.c (mbchar.h): #include it.
7953 (main): Set character set based on LANG environment variable.
7954 (rescan): Handle multibyte characters in comments.
7955 (skip_if_group): See above.
7956 (validate_else): See above.
7957 (skip_to_end_of_comment): See above.
7958 (macarg1): See above.
7959 (discard_comments): See above.
7960 (rescan): Handle multibyte characters in string and character literals.
7961 (collect_expansion): See above.
7962 (skip_quoted_string): See above.
7963 (macroexpand): See above.
7964 (macarg1): See above.
7965 (discard_comments): See above.
7966 (change_newlines): See above.
7968 * c-lex.c (mbchar.h): #include it.
7969 (GET_ENVIRONMENT): New macro.
7970 (init_lex): Set character set based on LANG environment variable.
7971 (yylex): Handle multibyte characters in character literals.
7972 (yylex): Handle multibyte characters in string literals.
7974 * Makefile.in (mbchar.o): New target.
7975 (cccp$(exeext)): @extra_cpp_objs@ is always available.
7976 (cppmain$(exeext)): @extra_cpp_objs@ is always available.
7978 * mbchar.[ch]: New files for multibyte character handling.
7980 Mon Jul 20 01:11:11 1998 David S. Miller <davem@pierdol.cobaltmicro.com>
7982 * jump.c (jump_optimize): When simplifying noop moves and
7983 PUSH_ROUNDING, fix thinko so we use same criterion for identifying
7984 the PUSHes to rewrite in second loop as we did in the first.
7986 Sun Jul 19 08:23:53 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7988 * cplus-dem.c (demangle_nested_args): Make function definition
7989 static to match the prototype.
7991 Fri Jul 17 14:58:44 1998 Richard Henderson <rth@cygnus.com>
7993 * alloca.c: Respect USE_C_ALLOCA.
7994 * gencheck.c (xmalloc): Ignore __GNUC__ for definition.
7995 * gengenrtl.c (xmalloc): Likewise.
7997 Fri Jul 17 14:18:14 1998 Richard Henderson <rth@cygnus.com>
7999 * loop.h (struct induction): Add no_const_addval.
8000 * loop.c (the_movables, reg_address_cost): New variables.
8001 (init_loop): Init reg_address_cost.
8002 (loop_optimize): Call end_alias_analysis.
8003 (scan_loop): Init the_movables.
8004 (record_giv): Init induction->no_const_addval.
8005 (basic_induction_var) [PLUS]: Use rtx_equal_p instead of ==.
8006 [REG]: Rearrange loop search test to catch more cases.
8007 (general_induction_var): Return success not benefit; take an extra
8008 argument for that. Change all callers.
8009 (simplify_giv_expr) [PLUS]: Always combine invariants. Use sge_plus.
8010 [MULT]: Use rtx_equal_p instead of ==. Combine simple invariants.
8011 [default]: Search the_movables for additional combinations.
8012 (sge_plus_constant, sge_plus): New functions.
8013 (express_from_1): New function.
8014 (express_from): Always define. Rewrite using express_from_1.
8015 (combine_givs_p): Handle more cases. Ignore address cost.
8016 (cmp_combine_givs_stats): New function.
8017 (combine_givs_used_once, combine_givs_benefit_from): New functions.
8018 (combine_givs): Rewrite to do best-fit combination.
8020 * fold-const.c (operand_equal_p): Handle RTL_EXPR.
8021 (fold): Do a complete (A*C)+(B*C) association check.
8023 Fri Jul 17 11:21:55 1998 Jim Wilson <wilson@cygnus.com>
8025 * function.c (fixup_var_refs_insns): Handle CLOBBER of a CONCAT.
8027 Fri Jul 17 11:48:55 1998 Jeffrey A Law (law@cygnus.com)
8029 * mn10300.c (MODES_TIEABLE_P): Fix typo.
8031 Fri Jul 17 03:26:12 1998 Rihcard Earnshaw (rearnsha@arm.com)
8033 * tree.c (valid_machine_attribute): Only create a new type variant if
8034 there is a decl to use it.
8036 Thu Jul 16 14:48:04 1998 Nick Clifton <nickc@cygnus.com>
8038 * gcc.c (do_spec_1): Cope with %g/%u/%U options which do not have
8041 Fri Jul 17 03:24:40 1998 Hans-Peter Nilsson <hp@axis.se>
8043 * extend.texi (Explicit Reg Vars): Typo: change "may deleted" into "may
8046 Thu Jul 16 14:48:47 1998 Jeffrey A Law (law@cygnus.com)
8048 * mn10300.c (count_tst_insns): New arg oreg_countp. Callers changed.
8049 Simplify tests for clearing an address register.
8050 (expand_prologue): Corresponding changes.
8052 * mn10300.md (movXX patterns): Make sure the destination is an
8053 ADDRESS_REG when substituting "zero_areg" for (const_int 0).
8054 (logical patterns): Split into expanders + patterns
8055 (zero and sign extension patterns): Similarly.
8056 (shift patterns): Similarly.
8058 Thu Jul 16 01:17:44 1998 Richard Henderson <rth@cygnus.com>
8060 * loop.c (emit_iv_add_mult): Scan the entire insn list generated
8061 for the sequence, recording base values.
8063 Wed Jul 15 10:49:55 1998 Richard Henderson <rth@cygnus.com>
8065 * i386.h (CPP_CPU_SPEC): Remove -Asystem(unix).
8067 Tue Jul 14 14:15:30 1998 Nick Clifton <nickc@cygnus.com>
8069 * gcc.c: Remove ANSI-C ism from --help code.
8071 * toplev.c: Support --help with USE_CPPLIB.
8073 Tue Jul 14 14:46:08 1998 Jeffrey A Law (law@cygnus.com)
8075 * configure.in: Rework gas feature code to work with symlink based
8078 * extend.texi: Clarify some issues related to local variables
8079 assigned to explicit registers.
8081 * mn10300.md (mulsi): Turn into expander + pattern.
8083 * mn10300.md (movsi, movsf, movdi, movdf): Remove "x" from I -> a
8086 Tue Jul 14 07:41:59 1998 Richard Earnshaw (rearnsha@arm.com)
8088 * arm/tcoff.h (USER_LABEL_PREFIX): Make it empty to match coff.h.
8090 Tue Jul 14 03:02:44 1998 Jeffrey A Law (law@cygnus.com)
8092 * version.c: Bump again to distinguish mainline tree from the
8095 See ChangeLog.0 for earlier changes.
8098 add-log-time-format: current-time-string