1 Mon Aug 31 13:57:55 1998 Richard Henderson <rth@cygnus.com>
3 * alpha/va_list.h: New file.
4 * alpha/x-alpha (EXTRA_HEADERS): New. Add va_list.h.
6 Mon Aug 31 14:55:02 1998 Jeffrey A Law (law@cygnus.com)
10 Mon Aug 31 15:42:18 1998 Dave Brolley <brolley@cygnus.com>
12 * varasm.c (compare_constant_1): Handle RANGE_EXPR.
13 (record_constant_1): Handle RANGE_EXPR.
15 Mon Aug 31 10:54:03 1998 Richard Henderson <rth@cygnus.com>
17 * print-rtl.c (print_rtx): NOTE_INSN_LIVE has an rtx not a bitmap.
18 * haifa-sched.c (sched_analyze): Handle NOTE_INSN_RANGE_START
19 and NOTE_INSN_RANGE_END specially.
20 (reemit_notes): Likewise.
22 Mon Aug 31 10:18:52 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
24 * sparc.c (TMASK, UMASK): Use `(unsigned)1' not `1U'.
25 (ultrasparc_sched_init): Remove unneeded &.
27 Mon Aug 31 10:47:16 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
29 * config/m68k/m68k.h (TARGET_SWITCHES): Don't remove MASK_68040
30 for m68020-60, to prevent the use of fintrz.
32 Sun Aug 30 22:17:20 1998 Mark Mitchell <mark@markmitchell.com>
34 * configure.in: If the native compiler is GCC use $(WARN_CFLAGS)
36 * Makefile.in: Likewise.
37 * configure: Regenerated.
39 Sun Aug 30 22:15:41 1998 H.J. Lu (hjl@gnu.org)
41 * configure.in (gxx_include_dir): Changed to
42 '${prefix}/include/g++'-${libstdcxx_interface}.
45 Sun Aug 30 20:19:43 1998 Hans-Peter Nilsson <hp@axis.se>
47 * expr.c (expand_expr): Change ">" to ">=" making MOVE_RATIO use
49 * tm.texi (Costs): Say MOVE_RATIO is number of mem-mem move
50 *sequences* *below* which scalar moves will be used.
52 Sun Aug 30 17:18:43 1998 Jeffrey A Law (law@cygnus.com)
54 * collect2.c (mktemp): Delete unused declaration.
56 * config/xm-netbsd.h: Remove unnecessary file.
57 * config/*/xm-netbsd.h: Do not include the generic xm-netbsd.h
58 file anymore, it is not needed.
60 Sun Aug 30 16:05:45 1998 Mark Mitchell <mark@markmitchell.com>
62 * convert.c (convert_to_integer): Issue an error on conversions to
65 Sun Aug 30 16:47:20 1998 Martin von Lvwis <loewis@informatik.hu-berlin.de>
67 * Makefile.in: Add lang_tree_files and gencheck.h.
68 * configure.in: Generate them.
69 * gencheck.c: Include gencheck.h.
71 Sat Aug 29 21:38:24 1998 David S. Miller <davem@pierdol.cobaltmicro.com>
73 * config/sparc/sparc.md (pic_lo_sum_di, pic_sethi_di): Rename to
74 movdi_lo_sum_pic and movdi_high_pic and make visible.
75 * config/sparc/sparc.c (legitimize_pic_address): For -fPIC,
76 emit these when Pmode is not SImode.
77 * config/sparc/linux64.h (SPARC_DEFAULT_CMODEL): Make CM_MEDLOW.
79 Sat Aug 29 14:59:32 1998 Mumit Khan <khan@xraylith.wisc.edu>
81 * i386/cygwin32.h (ASM_OUTPUT_SECTION_NAME): Don't emit
82 .linkonce directive after the first time.
84 Sat Aug 29 12:39:56 1998 Jeffrey A Law (law@cygnus.com)
86 * m68k.md (beq0_di): Generate correct (and more efficient) code when
87 the clobbered operand overlaps with an input.
90 * Makefile.in (INSTALL): Remove "--no-header" argument.
92 * NEWS: Various updates.
94 Fri Aug 28 19:00:44 1998 David S. Miller <davem@pierdol.cobaltmicro.com>
96 * config/sparc/sparc.c (arith_operand, const64_operand,
97 const64_high_operand, arith_double_4096_operand): Mark mode as
99 (create_simple_focus_bits): Remove unused arg highest_bit_set, all
101 (sparc_emit_set_const64): Remove unused variable i.
102 (sparc_splitdi_legitimate): Likewise for addr_part.
103 (ultra_code_from_mask): Likewise for mask.
104 (ultra_cmove_results_ready_p): Fixup entry modulo calc. and
105 reverse return values so it matches usage and comments.
106 (ultra_flush_pipeline): Likewise.
107 (ultra_fpmode_conflict_exists): Likewise, remove unused variable
108 this_type, and allow loads and stores of differing FP modes as
109 they do not create a conflict.
110 (ultra_find_type): Initialize fpmode to SFmode, fix
111 parenthesization thinkos in large conditional.
112 (ultrasparc_sched_init): Mark dump and sched_verbose as unused.
113 Init free_slot_mask after ultra_cur_hist is reset, not before.
114 (ultrasparc_rescan_pipeline_state): Remove unused variable ucode.
115 (ultrasparc_sched_reorder): Don't bzero current pipeline state,
116 use ultra_flush_pipeline instead, then re-init group pointer.
117 Fix statement with no effect. If no progress made in, and no
118 instructions scheduled at all, advance to new pipeline cycle else
119 we get into an endless loop.
120 (ultrasparc_adjust_cost): Remove previous arg.
121 * config/sparc/sparc.h (ADJUST_COST): Update to reflect that.
123 Fri Aug 28 13:52:35 1998 Jim Wilson <wilson@cygnus.com>
125 * sparc.md (DImode, DFmode, TFmode splits): Delete self_reference
126 code. Use reg_overlap_mentioned_p to detect when source and
128 (negtf2_notv9+1): Use DFmode instead of SFmode in last two operands.
130 1998-08-28 Brendan Kehoe <brendan@cygnus.com>
132 * loop.c (check_dbra_loop): Pass COMPARISON_VALUE, not
133 COMPARISON_VAL, into invariant_p.
135 Fri Aug 28 15:13:25 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
137 * regmove.c (regclass_compatible_p): New function.
138 (regmove_optimize): Use it.
140 Use NREGS parameter insted of calling max_reg_num.
142 (fixup_match_1): Don't use code = MINUS when later tieing with
143 a hard register is likely.
145 Fri Aug 28 14:54:07 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
147 * loop.c (check_dbra_loop): Fix calculation of FINAL_VALUE when
148 COMPARISON_VAL was normalized.
150 Thu Aug 27 20:10:46 1998 Jeffrey A Law (law@cygnus.com)
152 * loop.c (check_dbra_loop): The loop ending comparison value
153 must be an invariant or we can not reverse the loop.
155 * loop.c (scan_loop): Count down from max_reg_num - 1 to
156 FIRST_PSEUDO_REGISTER to avoid calling max_reg_num each iteration
158 (load_mems_and_recount_loop_regs_set): Likewise.
160 * i386.c (print_operand): Remove obsolete 'c' docs.
162 Wed Aug 26 17:13:37 1998 Tom Tromey <tromey@cygnus.com>
164 * gthr.h: Document __GTHREAD_MUTEX_INIT_FUNCTION.
165 * frame.c (init_object_mutex): New function.
166 (init_object_mutex_once): Likewise.
168 (__register_frame_info): Likewise.
169 (__register_frame_info_table): Likewise.
170 (__deregister_frame_info): Likewise.
172 Thu Aug 27 15:14:18 1998 Jeffrey A Law (law@cygnus.com)
174 * haifa-sched.c (sched_analyze_insn): Fix thinko in last change.
176 Thu Aug 27 16:34:51 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
178 * loop.c (check_dbra_loop): Enable code for reversal
179 of some loops without a known constant loop end.
181 Wed Aug 26 18:38:15 1998 Richard Henderson <rth@cygnus.com>
183 * haifa-sched.c (last_clock_var): New.
184 (schedule_block): Initialize it.
185 (schedule_insn): Use it to fill insn modes with issue information.
187 * alpha.c (alpha_handle_trap_shadows): Remove do-nothing exit.
188 Tag trapb and next insn with TImode.
189 (alphaev5_insn_pipe, alphaev5_next_group, alphaev5_align_insns): New.
190 (alpha_reorg): Add conditional for alpha_handle_trap_shadows.
191 Invoke alphaev5_align_insns as appropriate.
192 * alpha.h (LABEL_ALIGN_AFTER_BARRIER): Was ALIGN_LABEL_AFTER_BARRIER.
193 (MD_SCHED_VARIABLE_ISSUE): New.
194 * alpha.md (attr type): Add multi.
195 (define_asm_attributes): New.
196 (prologue_stack_probe_loop, builtin_setjmp_receiver): Set type multi.
197 (arg_home): Likewise.
198 (fnop, unop, realign): New.
200 Wed Aug 26 15:55:41 1998 Jim Wilson <wilson@cygnus.com>
202 * iris5.h (PREFERRED_DEBUGGING_TYPE): Undef.
203 * iris5gas.h (PREFERRED_DEBUGGING_TYPE): Define.
205 * configure.in (powerpc-ibm-aix4.[12]*): Change from 4.[12].*.
206 (rs6000-ibm-aix4.[12]*): Likewise.
207 * configure: Regnerate.
209 Wed Aug 26 09:30:59 1998 Nick Clifton <nickc@cygnus.com>
211 * config/arm/thumb.c (thumb_exit): Do not move a4 into lr if it
212 already contains the return address.
214 Wed Aug 26 12:57:09 1998 Jeffrey A Law (law@cygnus.com)
216 * calls.c (expand_call): Use bitfield instructions to extract/deposit
217 word sized hunks when loading unaligned args into registers.
219 * haifa-sched.c (sched_analyze_insn): Only create scheduling
220 barriers for LOOP, EH and SETJMP notes on the loop_notes list.
222 * mn10300.h (RTX_COSTS): Handle UDIV and UMOD too.
224 Wed Aug 26 16:35:37 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
226 * loop.c (check_dbra_loop): Add some code that would allow reversal
227 of some loops without a known constant loop end if it were enabled.
229 Wed Aug 26 11:08:44 1998 Gavin Romig-Koch <gavin@cygnus.com>
231 * mips.md (lshrsi3_internal2+2): Fix type-o.
233 Wed Aug 26 10:53:03 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
235 * system.h: Include stdarg.h/varargs.h, make sure they are ordered
236 correctly with regards to stdio.h.
238 * calls.c: Remove stdarg.h/varargs.h.
241 * combine.c: Likewise.
242 * cpperror.c: Likewise.
243 * cpplib.c: Likewise.
244 * cpplib.h: Likewise.
245 * doprint.c: Likewise.
246 * emit-rtl.c: Likewise.
248 * fix-header.c: Likewise.
250 * genattr.c: Likewise.
251 * genattrtab.c: Likewise.
252 * gencodes.c: Likewise.
253 * genconfig.c: Likewise.
254 * genemit.c: Likewise.
255 * genextract.c: Likewise.
256 * genflags.c: Likewise.
257 * genopinit.c: Likewise.
258 * genoutput.c: Likewise.
259 * genpeep.c: Likewise.
260 * genrecog.c: Likewise.
261 * mips-tfile.c: Likewise.
262 * prefix.c: Likewise.
263 * protoize.c: Likewise.
264 * regmove.c: Likewise.
265 * toplev.c: Likewise.
268 Wed Aug 26 05:09:27 1998 Jakub Jelinek <jj@sunsite.ms.mff.cuni.cz>
270 * config/sparc/sparc.c (sparc_override_options): If not
271 TARGET_FPU, turn off TARGET_VIS.
272 * config/sparc/sparc.h (TARGET_SWITCHES): Add no-vis.
273 (LEGITIMATE_CONSTANT_P): Allow SF/DF mode zero when TARGET_VIS.
274 * config/sparc/sparc.md (movsi_insn): Use fzeros not fzero.
275 (movdi_insn_sp64): Add VIS fzero alternative.
276 (clear_sf, clear_df): New VIS patterns.
277 (movsf, movdf expanders): Allow fp_zero_operand flat out when
279 (one_cmpldi2_sp64): Provide new fnot1 VIS alternative.
281 Tue Aug 25 10:57:41 1998 Mark Mitchell <mark@markmitchell.com>
283 * loop.c (n_times_set, n_times_used, may_not_optimize,
284 reg_single_usage): Convert to varrays. All uses changed.
285 (insert_loop_mem): Return a value.
286 (scan_loop): Tweak AVOID_CC_MODE_COPIES code.
287 (load_mems_and_recount_loop_regs_set): Likewise. Grow the arrays, if
290 Tue Aug 25 23:57:12 1998 Jeffrey A Law (law@cygnus.com)
293 * configure.in: Do not set thread_file to "irix" since no such
296 * sparc.md (float abs/neg splits): Check reload_completed before
297 calling alter_subreg.
299 Tue Aug 25 19:17:59 1998 David S. Miller <davem@pierdol.cobaltmicro.com>
301 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): New
303 * config/sparc/sparc.h: Declare it.
304 * config/sparc/sparc.md (float abs/neg splits): Use it.
305 (all other splits): Handle SUBREGs properly where necessary.
306 (unnamed (1<<x)-1 V8PLUS pattern): Disable for now.
308 Tue Aug 25 19:48:46 1998 Jeffrey A Law (law@cygnus.com)
310 * reorg.c (fill_simple_delay_slots): Do not abort if we encounter
311 an insn on the unfilled_slots_list that has no delay slots.
312 (fill_eager_delay_slots): Similarly.
314 Tue Aug 25 13:35:20 1998 Nick Clifton <nickc@cygnus.com>
316 * config/v850/v850.c (movsi_source_operand): Treat CONSTANT_P_RTX
317 as an ordinary operand.
319 Tue Aug 25 12:54:57 1998 Jason Merrill <jason@yorick.cygnus.com>
321 * tree.c (valid_machine_attribute): Don't apply attributes to both
324 Tue Aug 25 12:23:20 PDT 1998 Richard Henderson <rth@cygnus.com>
326 * reload.c (operands_match_p): Handle rtvecs.
328 * i386.c (legitimate_pic_address_disp_p): New.
329 (legitimate_address_p): Use it.
330 (legitimize_pic_address): Use unspecs to represent @GOT and @GOTOFF.
331 Handle constant pool symbols just like statics.
332 (emit_pic_move): Use Pmode not SImode for clarity.
333 (output_pic_addr_const) [SYMBOL_REF]: Remove @GOT and @GOTOFF hacks.
334 [UNSPEC]: New, handling what we killed above.
335 [PLUS]: Detect and abort on invalid symbol arithmetic.
336 * i386.h (CONSTANT_ADDRESS_P): Remove HIGH.
338 Tue Aug 25 12:02:23 1998 Mark Mitchell <mark@markmitchell.com>
340 * alias.c: Include output.h.
341 (DIFFERENT_ALIAS_SETS_P): Don't treat alias sets as
342 different if we're in a varargs function.
343 * Makefile.in (alias.o): Depend on output.h
345 Tue Aug 25 19:20:12 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
347 * sh.h (GIV_SORT_CRITERION): Delete.
349 Tue Aug 25 13:19:46 1998 Dave Brolley <brolley@cygnus.com>
351 * regclass.c (regclass): Use xmalloc/free instead of alloca.
352 * stupid.c (stupid_life_analysis): Ditto.
353 * reload1.c (reload): Ditto.
355 Tue Aug 25 05:48:18 1998 Jakub Jelinek <jj@sunsite.ms.mff.cuni.cz>
357 * config/sparc/sparc.c (arith_4096_operand, arith_add_operand,
358 arith_double_4096_operand, arith_double_add_operand): New
360 * config/sparc/sparc.h (PREDICATE_CODES): Add them, declare them.
361 * config/sparc/sparc.md (adddi3, addsi3, subdi3, subsi3): Use
362 them to transform add/sub 4096 into add/sub -4096.
364 Mon Aug 24 23:31:03 1998 David S. Miller <davem@pierdol.cobaltmicro.com>
366 * loop.c (scan_loop): Allocate some slop to handle pseudos
367 generated by move_movables.
368 (load_mems_and_recount_loop_regs_set): Honor AVOID_CC_MODE_COPIES
371 Mon Aug 24 19:45:40 1998 Jim Wilson <wilson@cygnus.com>
373 * tree.def (DECL_RESULT): Correct documentation.
375 Tue Aug 25 01:15:27 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
377 * reload1.c (reload_reg_free_before_p): New argument EQUIV; Changed
378 all callers. Abort for RELOAD_FOR_INSN. RELOAD_FOR_OUTADDR_ADDR:
379 conflicts will all RELOAD_FOR_OUTPUT reloads.
381 * reload1.c (reload_cse_regs_1): When deleting a no-op move that
382 loads the function result, substitute with a USE.
384 Mon Aug 24 15:20:19 1998 David Edelsohn <edelsohn@mhpcc.edu>
386 * rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Use TARGET_POWERPC64
387 when testing LEGITIMATE_INDEXED_ADDRESS_P DFmode and DImode.
388 (LEGITIMIZE_ADDRESS): Use TARGET_POWERPC64 for INDEXED fixup.
389 * rs6000.c (print_operand, case 'L'): Add UNITS_PER_WORD, not 4.
390 (print_operand, cases 'O' and 'T'): Fix typos in lossage strings.
391 * rs6000.md (fix_truncdfsi2_store): Remove %w from non-CONST_INT
393 (movdf_softfloat32, movdf_hardfloat64, movdf_softfloat64): Change
394 'o' to 'm' for GPR variant constraints.
396 Mon Aug 24 10:25:46 1998 Jeffrey A Law (law@cygnus.com)
398 * loop.c (scan_loop): Honor AVOID_CC_MODE_COPIES.
400 * h8300.h (STRIP_NAME_ENCODING): Fix typo.
402 * sparc.md (TFmode splits): Use reg_overlap_mentioned_p to detect
403 when the source and destination overlap.
405 * stmt.c (emit_case_nodes): Change rtx_function to rtx_fn to avoid
406 clash with global type.
408 Mon Aug 24 00:53:53 1998 Jason Merrill <jason@yorick.cygnus.com>
410 * fixinc.irix: Add curses.h handling from fixinc.wrap.
412 * c-common.c (combine_strings): Also set TREE_READONLY.
413 Change warn_write_strings to flag_const_strings.
414 * c-decl.c, c-tree.h: Likewise.
416 Sun Aug 23 18:39:11 1998 David S. Miller <davem@pierdol.cobaltmicro.com>
418 * config/sparc/sparc.c (sparc_emit_set_const32): If outputting a
419 CONST_INT, not a symbolic reference, don't use a HIGH/LO_SUM
420 sequence, use SET/IOR instead so CSE can see it.
421 * config/sparc/sparc.md (movhi_const64_special,
422 movsi_const64_special): New patterns necessitated by that change.
423 (movhi_high): Remove.
424 (movhi_lo_sum): Change to match an IOR.
425 (movdf_insn_sp32): Test TARGET_V9 not TARGET_ARCH64.
426 (movdf_insn_v9only): New pattern for when V9 but not ARCH64.
427 (movdf_insn_sp64): Test both TARGET_V9 and TARGET_ARCH64.
428 (movdf splits): Allow when not V9 or when not ARCH64 and integer
429 registers are involved.
430 (snesi_zero_extend split): Remove reload_completed test.
431 (unnamed plus and minus zero_extend sidi splits): Add it.
433 Sun Aug 23 11:56:08 1998 Mark Mitchell <mark@markmitchell.com>
435 * extend.texi: Remove description of extension to explicit
436 instantiation that is now endorsed by standard C++.
438 Sun Aug 23 09:39:09 1998 David S. Miller <davem@pierdol.cobaltmicro.com>
440 * config/arc/arc.c (arc_initialize_pic): Remove.
441 * config/arc/arc.h (INITIALIZE_PIC): Similarly, this routine does
442 nothing on any platform and is invoked by no-one, it does not even
443 appear in the documentation.
444 * config/sparc/sparc.h (INITIALIZE_PIC): Likewise.
445 * config/sparc/sparc.c (initialize_pic): Likewise.
446 (find_addr_reg): Remove this as well, no longer referenced after
449 Sun Aug 23 00:17:14 1998 Jeffrey A Law (law@cygnus.com)
451 * recog.c (validate_replace_rtx_group): New function.
452 * recog.h (validate_replace_rtx_group): Declare it.
453 * regmove.c (optimize_reg_copy_3): If any substitution fails, then undo
454 the entire group of substitutions.
456 Sat Aug 22 23:31:00 1998 Klaus-Georg Adams (Klaus-Georg.Adams@chemie.uni-karlsruhe.de)
458 * loop.c (load_mems): Fix initializers.
460 Fri Aug 21 23:07:46 1998 David S. Miller <davem@pierdol.cobaltmicro.com>
462 * config/sparc/sparc.md (TFmode splits): Handle destination
463 registers being referenced in the address correctly.
465 * expmed.c (make_tree) [CONST_INT]: Sign extend even if
466 TREE_UNSIGNED, when bitsize of type's mode is larger than
467 HOST_BITS_PER_WIDE_INT.
469 Fri Aug 21 19:31:31 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
471 * tree.def (LABELED_BLOCK_EXPR, EXIT_BLOCK_EXPR): New tree nodes.
472 * tree.h (LABELED_BLOCK_LABEL, LABELED_BLOCK_BODY,
473 EXIT_BLOCK_LABELED_BLOCK, EXIT_BLOCK_RETURN, LOOP_EXPR_BODY): New
475 * expr.c (expand_expr): Handle LABELED_BLOCK_EXPR and
478 Thu Aug 20 19:43:44 1998 Jeffrey A Law (law@cygnus.com)
480 * h8300.c (h8300_encode_label): Use '&' for tiny data items.
481 * h8300.h (TINY_DATA_NAME_P): Likewise.
482 (STRIP_NAME_ENCODING): Handle '&'.
484 * mn10200.h (REG_OK_FOR_INDEX_P): Do not check the mode of the
485 register (it could be accessed via an outer SUBREG).
486 (REG_OK_FOR_BASE_P): Likewwise.
487 (GO_IF_LEGITIMATE_ADDRESS): Consistently use REGNO_OK_FOR_BASE_P.
489 * remove.c (optimize_reg_copy_3): Abort instead of silently generating
492 * jump.c (rtx_renumbered_equal_p): Do not consider PLUS commutative.
494 Thu Aug 20 17:35:20 1998 David S. Miller <davem@pierdol.cobaltmicro.com>
496 * config/sparc/sparc.md (movtf_insn_sp32): All memory operands
497 must be offsettable so the splits can be made.
499 Thu Aug 20 13:56:53 1998 Michael Meissner <meissner@cygnus.com>
501 * config/i386/winnt.c: Include system.h, not stdio.h to get
502 sys/param.h pulled in before rtl.h in case the system defines MIN
505 Thu Aug 20 13:44:20 1998 David Edelsohn <edelsohn@mhpcc.edu>
507 * rs6000.md (movqi, movhi): Add CONSTANT_P_RTX.
509 Thu Aug 20 13:15:11 1998 Dave Brolley <brolley@cygnus.com>
511 * stor-layout.c (layout_type): Compute TYPE_SIZE_UNIT correctly for
513 * cpplib.c (cpp_define): Handle macros with parameters.
515 Wed Aug 19 21:33:19 1998 David Edelsohn <edelsohn@mhpcc.edu>
517 * rs6000.c (rs6000_output_load_toc_table): Use ld for 64-bit.
518 (output_toc): Use single TOC slot or llong minimal-toc for DFmode
519 and DImode 64-bit. Use llong for minimal-toc SFmode and
520 SYMBOL_REF / LABEL_REF 64-bit.
521 (output_function_profiler): Use llong for profiler label and ld to
522 load 64-bit label address.
524 Wed Aug 19 17:52:27 1998 Nick Clifton (nickc@cygnus.com)
526 * config/arm/thumb.md (extendqisi2_insn): Cope with REG +
529 Wed Aug 19 14:13:31 PDT 1998 Jeff Law (law@cygnus.com)
531 * version.c: Bump for snapshot.
533 Wed Aug 19 13:10:30 PDT 1998 Jeff Law (law@cygnus.com)
535 * version.c: Bump for snapshot.
537 Wed Aug 19 13:06:47 1998 Jason Merrill <jason@yorick.cygnus.com>
539 * collect2.c (extract_init_priority): Use atoi instead of strtoul.
541 Wed Aug 19 13:51:35 1998 Hans-Peter Nilsson <hp@axis.se>
543 * tm.texi (Misc): Fix typo "teh".
545 * tm.texi (PIC): Fix typo "PPIC".
547 * tm.texi (Caller Saves): Say that DEFAULT_CALLER_SAVES has no
548 effect when -O2 and higher.
549 * invoke.texi (Optimize Options): Likewise for -fcaller-saves.
551 1998-08-19 Michael Hayes <michaelh@ongaonga.chch.cri.nz>
553 * regclass.c: Changed register set documentation to be consistent
556 * final.c (final_start_function) Removed redundant test for
559 Wed Aug 19 13:28:41 1998 Mark Mitchell <mark@markmitchell.com>
561 * rtl.h (rtx_function): New type.
562 (for_each_rtx): New function.
563 * rtlanal.c (for_each_rtx): Define it.
565 * recog.c (change_t): New type.
566 (change_objects, change_old_codes, change_locs, change_olds):
568 (changes): New variable.
569 (validate_change): Dynamically allocate room for more changes, if
570 necessary. Uses changes array instead of change_objects, etc.
571 (apply_change_group): Use changes array instead of
574 * loop.c (loop_mem_info): New type.
575 (loop_mems): New variable.
576 (loop_mems_idx): Likewise.
577 (looop_mems_allocated): Likewise.
578 (scan_loop): Remove nregs parameter.
579 (next_insn_in_loop): New function.
580 (load_mems_and_recount_loop_regs_set): Likewise.
581 (load_mems): Likewise.
582 (insert_loop_mem): Likewise.
583 (replace_loop_mem): Likewise.
584 (replace_label): Likewise.
585 (INSN_IN_RANGE_P): New macro.
586 (loop_optimize): Don't pass max_reg_num() to scan_loop.
587 (scan_loop): Remove nregs parameter, compute it after any new
588 registers are created by load_mems. Use INSN_IN_RANGE_P and
589 next_insn_in_loop rather than expanding them inline. Call
590 load_mems to load memory into pseudos, if appropriate.
591 (prescan_loop): Figure out whether or not there are jumps from the
592 loop to targets other than the label immediately following the
593 loop. Call insert_loop_mem to notice all the MEMs used in the
594 loop, if it could be safe to pull MEMs into REGs for the duration
596 (strength_reduce): Use next_insn_in_loop. Tweak comments.
598 Wed Aug 19 08:29:44 1998 Richard Earnshaw (rearnsha@arm.com)
600 * arm.c (arm_override_options): Remove lie about ignoring PIC flag.
602 Wed Aug 19 07:08:15 1998 David S. Miller <davem@pierdol.cobaltmicro.com>
604 * config/sparc/sparc.c (finalize_pic): Check for the correct
605 nonlocal_goto_receiver UNSPEC number.
606 * config/sparc/sparc.md (nonlocal_goto_receiver): Add comment
607 making note of this dependency existing in sparc.c
608 (negtf2_notv9 split): Give NEG SFmode.
609 (negsf2): Fix insn output string.
611 Tue Aug 18 12:40:27 1998 Richard Henderson <rth@cygnus.com>
613 * c-common.c (decl_attributes): Issue an error if the argument
614 to alias is not a string.
616 Tue Aug 18 10:33:30 1998 Jeffrey A Law (law@cygnus.com)
618 * haifa-sched.c (sched_analyze): Put all JUMP_INSNs on the last
619 pending memory flush list.
621 * combine.c (can_combine_p): Allow combining insns with REG_RETVAL
623 (try_combine): Allow combining insns with REG_LIBCALL notes.
625 * expr.c (emit_block_move): Do not call memcpy as a libcall
626 instead build up a CALL_EXPR and call it like any other
628 (clear_storage): Similarly for memset.
630 * regmove.c (fixup_match_2): Do not call reg_overlap_mentioned_p
633 * Makefile.in (cplus-dem.o): Provide explicit rules for building
636 * regmove.c (optimize_reg_copy_1): Update REG_N_CALLS_CROSSED
637 and REG_LIVE_LENGTH as successful substitutions are made.
639 Tue Aug 18 07:15:27 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
641 * config/sparc/sparc.c (ultra_find_type): Add empty semicolon
642 statement after end of loop label.
644 Tue Aug 18 07:13:27 1998 David S. Miller <davem@pierdol.cobaltmicro.com>
646 * config/sparc/sparc.c (ultra_types_avail): New variable.
647 (ultra_build_types_avail): New function to record mask of insn
648 types in ready list at this cycle.
649 (ultrasparc_sched_reorder): Call it.
650 (ultra_find_type): Use it to quicken the search. Also simplif
651 dependency check, don't use rtx_equal_p because we know exactly
652 what we are looking for.
654 Tue Aug 18 03:20:53 1998 Richard Earnshaw (rearnsha@arm.com)
656 * arm.h (SECONDARY_INPUT_RELOAD_CLASS): Return NO_REGS if compiling
659 Mon Aug 17 21:26:38 1998 David S. Miller <davem@pierdol.cobaltmicro.com>
661 * config/sparc/sparc.md (sltu, sgeu): Don't FAIL, call
663 (movsf_const_intreg, movsf_const_high, movsf_const_lo,
664 movdf_const_intreg and helper splits): New patterns to move float
665 constants into integer registers.
666 (negtf2, negdf2, abstf2, absdf2): Rework using new patterns and
669 Mon Aug 17 11:46:19 1998 Jeffrey A Law (law@cygnus.com)
672 * tree.c (build_index_type): Copy TYPE_SIZE_UNIT from sizetype
674 * c-decl.c (finish_enum): Copy TYPE_SIZ_UNIT from enumtype to tem.
676 * rs6000.c (secondary_reload_class): For TARGET_ELF, indicate that
677 a BASE_REGS register is needed as an intermediate when copying
678 a symbolic value into any register class other than BASE_REGS.
680 * expr.c (move_by_pieces): No longer static. Remove prototype.
681 * rtl.h (move_by_pieces): Add extern prototype.
682 * mips.c (expand_block_move): Handle aligned straight line copy by
683 calling move_by_pieces.
685 * expr.c (expand_expr): Allow assignments from TImode PARM_DECLs
688 Mon Aug 17 10:28:52 1998 Mark Mitchell <mark@markmitchell.com>
690 * stmt.c (expand_end_loop): Tidy. Allow unconditional
691 jumps out of the loop to be treated as part of the exit test.
693 Mon Aug 17 10:06:11 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
694 Jeff Law <law@cygnus.com>
696 * Makefile.in (cplus-dep.o): Use cplus-dem.c from libiberty.
697 * cplus-dem.c: Delete.
699 * Makefile.in (fold-const.o): depend on $(RTL_H).
701 * fold-const.c: Include rtl.h to get the prototype for
702 `set_identifier_local_value'.
704 * loop.c (express_from_1): Remove unused variable `tmp'.
705 (combine_givs): cast the first argument of bzero to char *.
707 * toplev.c (display_help): Remove unused variable `looking_for_start'.
709 * c-decl.c (init_decl_processing): Remove unneeded &.
711 * alpha.h (alpha_initialize_trampoline): Provide prototype.
713 * except.c (set_exception_lang_code, set_exception_version_code):
714 Change parameter from `short' to `int' to avoid using a gcc
717 * except.h (set_exception_lang_code, set_exception_version_code):
718 Likewise for prototypes.
720 * flow.c (count_reg_references): Remove unused variables `regno'
723 * gcse.c (hash_scan_insn): Declare parameter `in_libcall_block'.
725 * prefix.c (translate_name): Cast the result of `alloca'.
727 * varray.h (VARRAY_FREE): Reimplement as a `do-while(0)' statement.
729 Mon Aug 17 09:23:42 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
731 * config/m68k/m68k.c: Include "system.h" instead of <stdio.h>.
733 (valid_dbcc_comparison_p): Mark mode argument as unused.
734 (symbolic_operand): Likewise.
735 (legitimize_pic_address): Likewise.
736 (const_uint32_operand): Likewise.
737 (const_sint32_operand): Likewise.
738 * sched.c [!INSN_SCHEDULING]: Define only dummy function
739 schedule_insns and comment out rest of file.
741 * m68k.c (output_move_simode_const): Use subl to move a zero into an
743 (output_move_[hq]imode): Likewise.
745 Mon Aug 17 09:15:47 1998 Jeffrey A Law (law@cygnus.com)
747 * toplev.c (main): Enable -fstrict-aliasing for -O2 and above.
748 * invoke.texi: Corresponding changes.
750 Mon Aug 17 02:03:55 1998 Richard Henderson <rth@cygnus.com>
752 * regclass.c (allocate_reg_info): Respect MIN when clearing data.
754 Sun Aug 16 17:37:06 1998 David S. Miller <davem@pierdol.cobaltmicro.com>
756 * config/sparc/sparc.c (ultra_code_from_mask,
757 ultra_cmove_results_ready_p, ultra_fpmode_conflict_exists,
758 ultra_find_type, ultra_schedule_insn, ultra_flush_pipeline,
759 ultrasparc_sched_init, ultrasparc_variable_issue,
760 ultra_rescan_pipeline_state, ultrasparc_sched_reorder): New
761 functions to describe UltraSPARC pipeline exactly to Haifa.
762 (ultrasparc_adjust_cost): Indicate IMUL type insns have zero cost,
763 as there is nothing the scheduler can do about it. Indicate that
764 REG_DEP_OUTPUT's collide. Fixup formatting.
765 * config/sparc/sparc.h (RTX_COSTS): Fixup integer multiply and
766 divide costs on Ultra for DImode.
767 (MD_SCHED_INIT, MD_SCHED_REORDER, MD_SCHED_VARIABLE_ISSUE):
769 * config/sparc/sparc.md (ieu_unnamed function unit): Rename to
770 ieuN and add call_no_delay_slot to type list.
771 (cti function unit): New unit for branches on UltraSPARC.
772 (subx/addx insns): Set type to misc.
773 (sidi zero/sign extension insns on arch64): Set type to shift.
774 (sign_extendhidi2_insn): Set type to sload.
776 Sun Aug 16 13:52:00 1998 David Edelsohn <edelsohn@mhpcc.edu>
778 * rs6000.c (rs6000_stack_info): Use if == 0 for sizes.
779 (output_epilog): Use if != 0 for offset.
780 (rs6000_fatal_bad_address): Prepare for Intl.
781 * rs6000.h (rs6000_fatal_bad_address): Declare.
782 * rs6000.md (movsfcc, movdfcc): Use else if.
783 (elf_high): Use {liu|lis}.
784 (elf_low): Use {cal|la}. Remove %a template from old mnemonics.
785 (movsi): Use rs6000_fatal_bad_address.
787 Sun Aug 16 01:53:21 1998 Richard Henderson <rth@cygnus.com>
789 * reload.c (find_equiv_reg): Reject equivalences separated
790 by a volatile instruction.
792 Sun Aug 16 00:21:44 1998 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
794 * rs6000/linux.h (CPP_OS_DEFAULT_SPEC): Define.
796 Sat Aug 15 20:51:35 1998 Richard Henderson <rth@cygnus.com>
798 * alpha.md (movsicc): Fix mode mismatch.
800 Sat Aug 15 20:22:33 1998 H.J. Lu (hjl@gnu.org)
802 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): Handle aggregated
804 * config/alpha/win-nt.h (ASM_OUTPUT_MI_THUNK): Likewise.
806 Sat Aug 15 08:39:49 1998 David S. Miller <davem@pierdol.cobaltmicro.com>
808 * config/sparc/sparc.md (movsi_lo_sum_pic_label_reg): Remove
809 write-only modifier from operand 1 constraint.
811 Sat Aug 15 06:28:19 1998 David S. Miller <davem@pierdol.cobaltmicro.com>
813 * config/sparc/sparc.c (sparc_emit_set_const64_quick1): If
814 emitting a XOR of -1 at the end, emit a NOT instead for combine's
816 (sparc_emit_set_const64): Likewise, also when computing trailing
817 bits do not negate low_bits and make fast_int an int.
819 Fri Aug 14 21:07:03 1998 Jeffrey A Law (law@cygnus.com)
821 * loop.c (add_label_notes): Do not ignore references to labels
822 before dispatch tables. Mirrors Apr 8 change to mark_jump_label.
823 * gcse.c (add_label_notes): Similarly.
825 * pa.h (ASM_OUTPUT_MI_THUNK): Strip name encoding.
827 * m68k.md (adddi_dilshr32): One of the operands must be a register.
828 (adddi_dishl32): Similarly.
830 Fri Aug 14 14:12:59 1998 Jason Merrill <jason@yorick.cygnus.com>
832 * i386.h (MODES_TIEABLE_P): Reorganize to shut up warnings.
833 * alias.c (memrefs_conflict_p): Add braces to shut up warnings.
834 * cse.c (cse_basic_block): Add parens to shut up warnings.
836 Fri Aug 14 12:58:21 1998 David S. Miller <davem@pierdol.cobaltmicro.com>
838 * config/sparc/sparc.c (sparc_emit_set_const64_quick2,
839 sparc_emit_set_const64_longway, const64_is_2insns,
840 create_simple_focus_bits, sparc_emit_set_const64): Fix more bugs
841 in 64-bit constant formation.
842 * config/sparc/sparc.md (snesi_zero_extend split): Generate
843 rtl for addx not subx.
844 (define_insn movdi_const64_special): Make available even when
845 HOST_BITS_PER_WIDE_INT is not 64.
846 (movdi_lo_sum_sp64_cint, movdi_high_sp64_cint): Remove.
847 (losum_di_medlow, sethm, setlo): Make op2 symbolic_operand.
848 (cmp_siqi_trunc_set, cmp_diqi_trunc_set): Encapsulate both
849 instances of operand 1 inside a QI subreg.
850 (xordi3_sp64_dbl): Remove '%' constraint for op1.
851 (one_cmpldi2_sp64): Fix output string.
852 (one_cmplsi2_not_liveg0): Rewrite to remove unneeded extra
854 (unnamed arch64 ashift DI): Truncate shift count if greater than
857 Fri Aug 14 21:52:53 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
859 * expr.c (store_expr): Don't optimize away load-store pair
860 when either source or destination have a side effect.
862 Fri Aug 14 16:50:10 1998 John Carr <jfc@mit.edu>
864 * genrecog.c (add_to_sequence): Fatal error if the modes of the
865 operands of SET are incompatible.
867 * alpha.md: Fix max and min patterns so modes of SET operands match.
869 Fri Aug 14 12:22:55 1998 Ian Lance Taylor <ian@cygnus.com>
871 * configure.in: Avoid [[ by using test and changequote.
872 * configure: Rebuild.
874 Fri Aug 14 01:22:31 1998 David S. Miller <davem@pierdol.cobaltmicro.com>
876 * rtl.def (CONSTANT_P_RTX): Fix typo in string name.
878 * config/sparc/sparc.md (seqdi_special_trunc, snedi_special_trunc,
879 seqsi_special_extend, snesi_special_extend, snesi_zero_extend and
880 split, snedi_zero_trunc and split, seqsi_zero_extend and split,
881 seqdi_zero_trunc and split, pic_lo_sum_di, pic_sethi_di,
882 movdi_cc_sp64_trunc, movdi_cc_reg_sp64_trunc, addx_extend_sp32 and
883 split, addx_extend_sp64, subx_extend_sp64, subx_extend and split):
884 Fix mismatching modes in SET operands.
885 (conditional move patterns): Fix formatting.
886 (unnamed subx arch64 pattern): Remove duplicate insn.
888 Fri Aug 14 00:34:34 1998 David S. Miller <davem@pierdol.cobaltmicro.com>
890 * config/sparc/sparc.c (const64_operand, const64_high_operand):
891 Get it right when HOST_BITS_PER_WIDE_INT is not 64.
892 (input_operand): Fixup test for what we accept for constant
894 (sparc_emit_set_const32, sparc_emit_set_symbolic_const64): Give
896 (safe_constDI): Remove.
897 (sparc_emit_set_safe_HIGH64, gen_safe_SET64, gen_safe_OR64,
898 gen_safe_XOR64): New functions.
899 (sparc_emit_set_const64_quick1, sparc_emit_set_const64_quick2,
900 sparc_emit_set_const64_longway, sparc_emit_set_const64): Use
902 * config/sparc/sparc.md (define_insn xordi3_sp64_dbl): Only make
903 available when HOST_BITS_PER_WIDE_INT is not 64.
904 (define_insn movdi_sp64_dbl, movdi_const64_special): Likewise and
905 move before movdi_insn_sp64 pattern.
906 (define_insn movdi_lo_sum_sp64_dbl, movdi_high_sp64_dbl): Remove.
907 (define_insn sethi_di_medlow, seth44, setm44, sethh): Use
908 symbolic_operand as predicate for second operand.
909 (DImode minus split on arch32, negsi2 expander, one_cmplsi2
910 expander): Give set VOIDmode.
912 Fri Aug 14 01:45:06 1998 Mumit Khan <khan@xraylith.wisc.edu>
914 * i386/cygwin32 (DEFAULT_PCC_STRUCT_RETURN): Define.
916 Fri Aug 14 01:40:21 1998 Geoffrey Keating <geoffk@ozemail.com.au>
918 * rs6000/linux.h (LINK_SPEC): Pass -G args to the linker.
920 Fri Aug 14 01:23:23 1998 Richard Earnshaw (rearnsha@arm.com)
922 * arm/netbsd.h (TARGET_DEFAULT): Default includes software floating
924 (CPP_FLOAT_DEFAULT_SPEC): Re-define accordingly.
926 Fri Aug 14 01:19:08 1998 Robert Lipe <robertl@dgii.com>
928 * install.texi: Various SCO OpenServer tweaks.
930 Thu Aug 13 20:14:40 1998 Jim Wilson <wilson@cygnus.com>
932 * reload1.c (eliminate_regs_in_insn): Handle another case when
933 eliminating the frame pointer to the hard frame pointer. Add
934 missing ep->to_rtx check to one existing case.
936 * mips/mips.md (movhi_internal2+2): Fix typo mem:SI -> mem:HI.
938 Thu Aug 13 17:08:11 1998 Jason Merrill <jason@yorick.cygnus.com>
940 * tree.h: De-conditionalize init_priority code.
942 * mips.h (NM_FLAGS): Change from -Bp to -Bn.
943 * collect2.c (NM_FLAGS): Change from -p to -n.
945 * configure.in: Turn on collect2 for mipstx39-elf.
946 Handle use_collect2=no properly.
948 * c-common.c: De-conditionalize init_priority code.
949 * collect2.c (extract_init_priority, sort_ids): New fns.
950 (main): Call sort_ids.
951 Move sequence_number to file scope.
953 * configure.in: Handle --enable-init-priority.
954 * c-common.c (attrs): Add A_INIT_PRIORITY.
955 (init_attributes, decl_attributes): Likewise.
956 * tree.h (DEFAULT_INIT_PRIORITY, MAX_INIT_PRIORITY): New macros.
957 * tree.c (get_file_function_name_long): Split out...
958 (get_file_function_name): ...from here.
960 Thu Aug 13 16:09:53 1998 Martin von Loewis <loewis@informatik.hu-berlin.de>
962 * expr.c (safe_from_p): Change code to ERROR_MARK only when not
965 Thu Aug 13 15:24:48 1998 Jason Merrill <jason@yorick.cygnus.com>
967 * toplev.c (display_help): Add braces to shut up warnings.
968 * tree.c (simple_cst_equal): Likewise.
970 * fold-const.c (non_lvalue): Don't deal with null pointer
972 (fold, case COMPOUND_EXPR): Wrap a constant 0 in a NOP_EXPR.
974 * c-typeck.c (initializer_constant_valid_p): Allow conversion of 0
975 of any size to a pointer.
977 Thu Aug 13 12:53:13 1998 Jim Wilson <wilson@cygnus.com>
979 * i386/winnt.c (i386_pe_asm_file_end): Check TREE_SYMBOL_REFERENCED.
981 Wed Aug 12 17:25:18 1998 Jeffrey A Law (law@cygnus.com)
983 * mn10300.c (REG_SAVE_BYTES): Only reserve space for registers
985 * mn10300.md (prologue insn): Only save registers which need saving.
986 (epilogue insn): Similarly.
988 * mn10300.c, mn10300.h, mn10300.md: Remove "global zero register"
991 Wed Aug 12 12:39:16 1998 Gavin Romig-Koch <gavin@cygnus.com>
993 * mips/mips.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG for
994 VAR_DECL's in gp addressable sections.
996 Tue Aug 11 23:02:31 1998 John Carr <jfc@mit.edu>
998 * sparc.c: Change return <exp> to <exp>; return; in functions
1000 * sparc.md: Add empty semicolon statement after final label in
1003 Tue Aug 11 22:42:01 1998 David S. Miller <davem@pierdol.cobaltmicro.com>
1005 * config/sparc/sparc.md (define_insn addx_extend): Rename to
1006 addx_extend_sp64, only allow when TARGET_ARCH64.
1007 (define_insn addx_extend_sp32 and split): Version that works when
1009 (define_insn subx_extend): Likewise.
1010 (define_split adddi3 and subdi3 with zero extension): Fixup and
1011 correct bugs when not TARGET_ARCH64.
1013 Tue Aug 11 16:04:34 1998 John Carr <jfc@mit.edu>
1015 * except.c (set_exception_lang_code, set_exception_version_code):
1016 Use prototype-style definition if __STDC__, to match declaration
1019 * genemit.c: Change FAIL and DONE macros not to use loops.
1021 Tue Aug 11 12:27:03 1998 Jim Wilson <wilson@cygnus.com>
1023 * dwarf2out.c (ASM_OUTPUT_DWARF_ADDR_CONST): Use
1024 ASM_OUTPUT_DWARF2_ADDR_CONST if defined.
1026 * mips/mips.md (reload_outsi): Use M16_REG_P when TARGET_MIPS16.
1028 Tue Aug 11 18:12:53 1998 Dave Love <d.love@dl.ac.uk>
1030 * README.g77: Update from Craig.
1032 Tue Aug 11 04:46:01 1998 David S. Miller <davem@pierdol.cobaltmicro.com>
1034 * config/sparc/sparc.c (sparc_emit_set_const32): INTVAL is of
1036 (safe_constDI sparc_emit_set_const64_quick1,
1037 sparc_emit_set_const64_quick2, sparc_emit_set_const64_longway,
1038 analyze_64bit_constant, const64_is_2insns,
1039 create_simple_focus_bits): Fix some bugs when compiled on real
1041 (function_arg_record_value_3, function_arg_record_value_2,
1042 function_arg_record_value): Add fully prototyped forward decls.
1043 * config/sparc/sparc.md (define_insn cmpsi_insn_sp32): Rename back
1044 to cmpsi_insn and use on both 64 and 32 bit targets.
1045 (define_insn cmpsi_insn_sp64): Remove.
1046 (define_expand zero_extendsidi2): Allow for 32-bit target too.
1047 (define_insn zero_extendsidi2_insn): Rename to
1048 zero_extendsidi2_insn_sp64.
1049 (define_insn zero_extendsidi2_insn_sp32): New pattern and
1050 assosciated forced split for it.
1052 * config/sparc/sparc.c (const64_operand, const64_high_operand):
1054 * config/sparc/sparc.h: Declare them.
1055 (PREDICATE_CODES): Add them.
1056 * config/sparc/sparc.md (movdi_lo_sum_sp64_dbl,
1057 movdi_high_sp64_dbl, xordi3_sp64_dbl): Use them.
1059 Mon Aug 10 22:57:24 1998 John Carr <jfc@mit.edu>
1061 * config/sparc/sparc.md (define_insn jump): Output ba,pt not b,pt
1062 in v9 case as the latter makes the Solaris assembler crash.
1064 Mon Aug 10 22:39:09 1998 David S. Miller <davem@pierdol.cobaltmicro.com>
1066 * config/sparc/sparc.c (input_operand): Do not accept a LO_SUM MEM
1067 for TFmode when !v9. We require offsettable memory addresses.
1068 * config/sparc/sparc.h (ALTER_HARD_SUBREG): Handle TFmode to
1069 DFmode register number conversions.
1070 * config/sparc/sparc.md (define_split DFmode moves): If register
1071 is a SUBREG do alter_subreg on it before using.
1072 (define_expand movtf): Fixup comment about alignment on v9.
1073 (define_split TFmode moves): Don't use gen_{high,low}part, create
1074 explicit SUBREGs instead.
1076 Mon Aug 10 19:02:55 1998 John Carr <jfc@mit.edu>
1078 * Makefile.in (mbchar.o): Depend on mbchar.c.
1080 Mon Aug 10 04:28:13 1998 David S. Miller <davem@pierdol.cobaltmicro.com>
1081 Richard Henderson <rth@cygnus.com>
1083 Rewrite Sparc backend for better code generation and
1084 improved sparc64 support.
1085 * config/sparc/sp64-elf.h: Set JUMP_TABLES_IN_TEXT_SECTION to
1087 * config/sparc/sysv4.h: Likewise.
1088 * config/sparc/sparc.c (v8plus_regcmp_p, sparc_operand,
1089 move_operand, v8plus_regcmp_op, emit_move_sequence,
1090 singlemove_string, doublemove_string, mem_aligned_8,
1091 output_move_double, output_move_quad, output_fp_move_double,
1092 move_quad_direction, output_fp_move_quad, output_scc_insn):
1094 (small_int_or_double): New predicate.
1095 (gen_compare_reg): Remove TARGET_V8PLUS cmpdi_v8plus emission.
1096 (legitimize_pic_address): Emit movsi_{high,lo_sum}_pic instead of
1097 old pic_{sethi,lo_sum}_si patterns.
1098 (mem_min_alignment): New generic function to replace
1099 mem_aligned_8, which uses REGNO_POINTER_ALIGN information when
1100 available and can test for arbitrary alignments. All callers
1102 (save_regs, restore_regs, build_big_number,
1103 output_function_prologue, output_cbranch, output_return,
1104 sparc_flat_save_restore, sparc_flat_output_function_prologue,
1105 sparc_flat_output_function_epilogue): Prettify
1107 (output_function_epilogue): Likewise and add code to output
1108 deferred case vectors.
1109 (output_v9branch): Likewise, add new arg INSN and use it to tack
1110 on branch prediction settings. All callers changed.
1111 (print_operand): Likewise and output %l44 for LO_SUMs when
1113 (sparc_splitdi_legitimate): New function to make sure DImode
1114 splits can be run properly when !arch64.
1115 (sparc_initialize_trampoline, sparc64_initialize_trampoline):
1116 Reformat example code in comments.
1117 (set_extends): Remove UNSPEC/v8plus_clear_high case.
1118 (sparc_addr_diff_list, sparc_addr_list): New statics to keep track
1119 of deferred case vectors we need to output.
1120 (sparc_defer_case_vector): Record a case vector.
1121 (sparc_output_addr_vec, sparc_output_addr_diff_vec,
1122 sparc_output_deferred_case_vectors): New functions to output them.
1123 (sparc_emit_set_const32): New function to form 32-bit constants in
1124 registers when that requires more than one instruction.
1125 (safe_constDI, sparc_emit_set_const64_quick1,
1126 sparc_emit_set_const64_quick2, sparc_emit_set_const64_longway,
1127 analyze_64bit_constant, const64_is_2insns,
1128 create_simple_focus_bits, sparc_emit_set_const64): New functions
1129 which do the same for 64-bit constants when arch64.
1130 (sparc_emit_set_symbolic_const64): New function to emit address
1131 loading for all code models on v9.
1132 * config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Do not make
1133 %g1 fixed when arch64, unfix %g0 when TARGET_LIVE_G0.
1134 (ALTER_HARD_SUBREG): Fix thinko, return REGNO + 1 not 1.
1135 (SECONDARY_INPUT_RELOAD_CLASS, SECONDARY_OUTPUT_RELOAD_CLASS): Fix
1136 inaccuracies in comments, add symbolic and text_segment operands
1137 when TARGET_CM_MEDANY and TARGET_CM_EMBMEDANY respectively. Use
1138 GENERAL_REGS in these cases as a temp REG is needed to load these
1139 addresses into a register properly.
1140 (EXTRA_CONSTRAINT): Document more accurately, remove Q case as it
1142 (GO_IF_LEGITIMATE_ADDRESS): Allow TFmode for LO_SUM on v9 since fp
1143 quads are guarenteed to have 16-byte alignment.
1144 (LEGITIMIZE_ADDRESS): For SYMBOL_REF, CONST, and LABEL_REF use
1145 copy_to_suggested_reg instead of explicit LO_SUM and HIGH.
1146 (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC): New macros for
1147 deferred case vector implementation.
1148 (ASM_OUTPUT_ADDR_VEC_ELT): Use fputc to output newline.
1149 (ASM_OUTPUT_ADDR_DIFF_ELT): Parenthesize LABEL in macro calls.
1150 Generate "internal label - label" instead of "label - 1b".
1151 (PRINT_OPERAND_ADDRESS): For LO_SUM use %l44 on TARGET_CM_MEDMID.
1152 (PREDICATE_CODES): Remove sparc_operand, move_operand,
1153 v8plus_regcmp_op. Add small_int_or_double, input_operand, and
1155 (doublemove_string, output_block_move, output_fp_move_double,
1156 output_fp_move_quad, output_move_double, output_move_quad,
1157 output_scc_insn, singlemove_string, mem_aligned_8, move_operand,
1158 sparc_operand, v8plus_regcmp_op, v8plus_regcmp_p): Remove externs.
1159 (sparc_emit_set_const32, sparc_emit_set_const64,
1160 sparc_emit_set_symbolic_const64, input_operand, zero_operand,
1161 mem_min_alignment, small_int_or_double): Add externs.
1162 * config/sparc/sparc.md: Document the many uses of UNSPEC and
1163 UNSPEC_VOLATILE in this backend.
1164 (define_function_unit ieu): Rename to ieu_unnamed. Add move and
1165 unary to types which execute in it.
1166 (define_function_unit ieu_shift): Rename to ieu0.
1167 (define_function_unit ieu1): New, executes compare, call, and
1168 uncond_branch type insns.
1169 (define_function_units for type fdivs, fdivd, fsqrt): These
1170 execute in the fpu multiply unit not the adder on UltraSparc.
1171 (define_expand cmpdi): Disallow TARGET_V8PLUS.
1172 (define_insn cmpsi_insn): Rename to cmpsi_insn_sp32.
1173 (define_insn cmpsi_insn_sp64): New, same as sp32 variant except it
1174 allows the arith_double_operand predicate and rHI constraint when
1176 (define_insn cmpdi_sp64, cmpsf_fpe, cmpdf_fpe, cmptf_fpe,
1177 cmpsf_fp, cmpdf_fp, cmptf_fp, sltu_insn, neg_sltu_insn,
1178 neg_sltu_minux_x, neg_sltu_plus_x, sgeu_insn, neg_sgeu_insn,
1179 sltu_plus_x, sltu_plus_x, sltu_plus_x_plus_y, x_minus_sltu,
1180 sgeu_plus_x, x_minus_sgeu, movqi_cc_sp64, movhi_cc_sp64,
1181 movsi_cc_sp64, movdi_cc_sp64, movsf_cc_sp64, movdf_cc_sp64,
1182 movtf_cc_sp64, movqi_cc_reg_sp64, movhi_cc_reg_sp64,
1183 movsi_cc_reg_sp64, movdi_cc_reg_sp64, movsf_cc_reg_sp64,
1184 movdf_cc_reg_sp64, movtf_cc_reg_sp64, zero_extendhisi2_insn,
1185 cmp_siqi_trunc, cmp_siqi_trunc_set, sign_extendhisi2_insn,
1186 sign_extendqihi2_insn, sign_extendqisi2_insn,
1187 sign_extendqidi2_insn, sign_extendhidi2_insn,
1188 extendsfdf2, extendsftf2, extenddftf2, truncdfsf2, trunctfsf2,
1189 trunctfdf2, floatsisf2, floatsidf2, floatsitf2, floatdisf2,
1190 floatdidf2, floatditf2, fix_truncsfsi2, fix_truncdfsi2,
1191 fix_trunctfsi2, fix_truncsfdi2, fix_truncdfdi2, fix_trunctfdi2,
1192 adddi3_sp64, addsi3, cmp_ccx_plus, cmp_cc_plus_set, subdi_sp64,
1193 subsi3, cmp_minus_ccx, cmp_minus_ccx_set, mulsi3, muldi3,
1194 muldi3_v8plus, cmp_mul_set, mulsidi3, mulsidi3_v8plus,
1195 const_mulsidi3_v8plus, mulsidi3_sp32, const_mulsidi3,
1196 smulsi3_highpart_v8plus, unnamed subreg mult,
1197 const_smulsi3_highpart_v8plus, smulsi3_highpart_sp32,
1198 const_smulsi3_highpart, umulsidi3_v8plus, umulsidi3_sp32,
1199 const_umulsidi3, const_umulsidi3_v8plus, umulsi3_highpart_v8plus,
1200 const_umulsi3_highpart_v8plus, umulsi3_highpart_sp32,
1201 const_umulsi3_highpart, divsi3, divdi3, cmp_sdiv_cc_set, udivsi3,
1202 udivdi3, cmp_udiv_cc_set, smacsi, smacdi, umacdi, anddi3_sp64,
1203 andsi3, and_not_di_sp64, and_not_si, iordi3_sp64, iorsi3,
1204 or_not_di_sp64, or_not_si, xordi3_sp64, xorsi3, xor_not_di_sp64,
1205 xor_not_si, cmp_cc_arith_op, cmp_ccx_arith_op,
1206 cmp_cc_arith_op_set, cmp_ccx_arith_op_set, cmp_ccx_xor_not,
1207 cmp_cc_xor_not_set, cmp_ccx_xor_not_set, cmp_cc_arith_op_not,
1208 cmp_ccx_arith_op_not, cmp_cc_arith_op_not_set,
1209 cmp_ccx_arith_op_not_set, negdi2_sp64, cmp_cc_neg, cmp_ccx_neg,
1210 cmp_cc_set_neg, cmp_ccx_set_neg, one_cmpldi2_sp64, cmp_cc_not,
1211 cmp_ccx_not, cmp_cc_set_not, cmp_ccx_set_not, addtf3, adddf3,
1212 addsf3, subtf3, subdf3, subsf3, multf3, muldf3, mulsf3,
1213 muldf3_extend, multf3_extend, divtf3, divdf3, divsf3, negtf2,
1214 negdf2, negsf2, abstf2, absdf2, abssf2, sqrttf2, sqrtdf2, sqrtsf2,
1215 ashlsi3, ashldi3, unnamed DI ashift, cmp_cc_ashift_1,
1216 cmp_cc_set_ashift_1, ashrsi3, ashrdi3, unnamed DI ashiftrt,
1217 ashrdi3_v8plus, lshrsi3, lshrdi3, unnamed DI lshiftrt,
1218 lshrdi3_v8plus, tablejump_sp32, tablejump_sp64, call_address_sp32,
1219 call_symbolic_sp32, call_address_sp64, call_symbolic_sp64,
1220 call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
1221 call_address_untyped_struct_value_sp32,
1222 call_symbolic_untyped_struct_value_sp32, call_value_address_sp32,
1223 call_value_symbolic_sp32, call_value_address_sp64,
1224 call_value_symbolic_sp64, branch_sp32, branch_sp64,
1225 flush_register_windows, goto_handler_and_restore,
1226 goto_handler_and_restore_v9, goto_handler_and_restore_v9_sp64,
1227 flush, all ldd/std peepholes, return_qi, return_hi, return_si,
1228 return_addsi, return_di, return_adddi, return_sf, all call+jump
1229 peepholes, trap, unnamed trap insns): Prettify output strings.
1230 (define_insn anddi3_sp32, and_not_di_sp32, iordi3_sp32,
1231 or_not_di_sp32, xordi3_sp32, xor_not_di_sp32, one_cmpldi2):
1232 Likewise and force + implement splits for integer cases.
1233 (define_insn return_sf_no_fpu): Likewise and allow to match when
1234 no-fpu because of our subreg SFmode splits.
1235 (define_insn zero_extendqihi2, zero_extendqisi2_insn,
1236 zero_extendqidi2_insn, zero_extendhidi2_insn,
1237 zero_extendsidi2_insn, sign_extendsidi2_insn): Likewise and use
1238 input_operand for second operand.
1239 (cmp_minus_cc, cmp_minus_cc_set): Likewise and use
1240 reg_or_0_operand for operand 2 so new splits can use it.
1241 (cmp_zero_extendqisi2, cmp_zero_extendqisi2_set, cmp_cc_plus,
1242 cmp_cc_xor_not): Likewise and don't forget to check TARGET_LIVE_G0
1244 (cmp_zero_extract, cmp_zero_extract_sp64): Likewise and allow
1245 CONST_DOUBLEs for operand 2.
1246 (define_insn move_label_di): Likewise and label distance
1247 optimization because it no longer works with new deferred case
1248 vector scheme. To be revisited.
1249 (define_insn x_minus_y_minus_sltu, x_minus_sltu_plus_y): Likewise
1250 and allow reg_or_0_operand and J constraint for second operand.
1251 (define_insn jump): Set branch predict taken on V9.
1252 (define_insn tablejump): Emit LABEL_REF + PLUS memory address for
1253 new deferred case vector scheme.
1254 (define_insn pic_tablejump_32, pic_tablejump_64): Remove.
1255 (define_insn negdi2_sp32): Force + implement splits.
1256 (define_insn negsi2, one_cmplsi2): Rename to negsi2_not_liveg0 and
1257 one_cmplsi2_not_liveg0 respectively, and create expander of original
1258 names which emit special rtl for TARGET_LIVE_G0.
1259 (define_insn cmpdi_v8plus, scc_si, scc_di): Remove.
1260 (define_insn seq, sne, slt, sge, sle, sltu, sgeu): Don't do
1261 gen_compare_reg, FAIL instead.
1262 (define_insn sgtu, sleu): Likewise and check gen_s*() return
1263 values when trying to reverse condition codes, if they FAIL then
1265 (define_insn snesi_zero, neg_snesi_zero, snesi_zero_extend,
1266 snedi_zero, neg_snedi_zero, snedi_zero_trunc, seqsi_zero,
1267 neg_seqsi_zero, seqsi_zero_extend, seqdi_zero, neg_seqdi_zero,
1268 seqdi_zero_trunc, x_plus_i_ne_0, x_minus_i_ne_0, x_plus_i_eq_0,
1269 x_minus_i_eq_0): Add new splits to perform these multi-insn cases,
1270 set output string to # to indicate they are mandatory splits.
1271 (define_insn pic_lo_sum_si, pic_sethi_si, pic_lo_sum_di,
1272 pic_sethi_di, move_pic_label_si): Remove.
1273 (define_insn movsi_low_sum, movsi_high, movsi_lo_sum_pic,
1274 movsi_high_pic, movsi_pic_label_reg): New patterns to take their
1276 (define_expand movsi_pic_label_ref, define_insn
1277 movsi_high_pic_label_ref, movsi_lo_sum_pic_label_ref): New
1278 expander and insns to handle PIC label references and deferred
1280 (define_insn get_pc_via_rdpc): Comment out as it is no longer
1282 (define_expand movqi, movhi, movsi, movdi, movsf, movdf, movtf):
1283 Rewrite to not use emit_move_sequence, make use of new constant
1284 formation code, and new splits for all multi-insn cases.
1285 (define_insn movqi_insn): Remove sethi case, it can never happen.
1286 Use reg_or_zero_operand instead of const0_rtx explicit test,
1287 use input_operand instead of move_operand for source, and use
1288 general_operand now for dest.
1289 (define_insn movhi_insn): Similar but leave sethi case.
1290 (define_insn lo_sum_qi, store_qi, store_hi): Remove.
1291 (define_insn sethi_hi lo_sum_hi): Rename to movhi_high and
1292 movhi_lo_sum respectively, prettify output string.
1293 (define_insn movsi_zero_liveg0): New pattern to put zero into a
1294 register when needed on TARGET_LIVE_G0.
1295 (define_insn movsi_insn): Use general_operand and input_operand
1296 for dest and src respectively. Simplify applicability test.
1297 Prettify output strings, and add clr alternative for J
1299 (define_insn movdi_sp32_v9, movdi_sp32, define_splits for
1300 deprecated std and reg-reg DI moves): Remove and...
1301 (define_insn movdi_insn_sp32, movdi_insn_sp64): Replace with new
1302 implementation which uses forced splits for all non-single insn
1304 (define_split DI move cases on !arch64): New splits to handle all
1305 situations of 64-bit double register DImode on 32bit, and
1306 unaligned registers and memory addresses for all subtargets.
1307 (define_insn movsf_const_insn, movdf_const_insn, store_sf):
1309 (define_insn movsf_insn, movsf_no_f_insn): Use general_operand and
1310 input_operand for dest and src respectively, prettify output
1312 (define_insn movdf_insn, movdf_no_e_insn, store_df,
1313 movtf_const_insn, movtf_insn, movtf_no_e_insn, store_tf): Remove
1315 (define_insn movdf_insn_sp32, movdf_no_e_insn_sp32,
1316 movdf_insn_sp64, movdf_no_e_insn_sp64, movtf_insn,
1317 movtf_no_e_insn_sp32, movtf_insn_hq_sp64, movtf_insn_sp64,
1318 movtf_no_e_insn_sp64) Replace with new
1319 implementation which uses forced splits for all non-single insn
1321 (define_split DF move cases): New splits in similar vein to DI
1323 (define_insn sethi_di_medlow, sethi_di_medium_pic,
1324 sethi_di_embmedany_data, sethi_di_embmedany_text, sethi_di_sp64,
1325 movdi_sp64_insn): Remove old v9 code model and constant loading
1327 (define_insn pic_lo_sum_di, pic_sethi_di,
1328 sethi_di_medlow_embmedany_pic, sethi_di_medlow, losum_di_medlow,
1329 seth44, setm44, setl44, sethh, setlm, sethm, setlo,
1330 embmedany_sethi, embmedany_losum, embmedany_brsum,
1331 embmedany_textuhi, embmedany_texthi, embmedany_textulo,
1332 embmedany_textlo, movdi_lo_sum_sp64_cint, movdi_lo_sum_sp64_dbl,
1333 movdi_high_sp64_cint, movdi_high_sp64_dbl): Replace with new
1334 scheme, using unspecs, secondary reloads, and one to one sparc
1335 insn to rtl insn mapping for better scheduling and code gen.
1336 (define_expand reload_indi, reload_outdi): Reload helpers for
1337 MEDANY and EMBMEDANY symbol address loading cases which require a
1339 (define_expand movsicc): Remove v8plus_regcmp cases.
1340 (define_insn movdi_cc_sp64_trunc, movdi_cc_reg_sp64_trunc,
1341 cmp_zero_extendqidi2, cmp_zero_extendqidi2_set, cmp_qidi_trunc,
1342 cmp_diqi_trunc_set): New patterns used by some of the new scc
1344 (define_insn xordi3_sp64_dbl): New pattern used for constant
1345 formation when crossing from 32-bit targets.
1346 (define_insn movsi_cc_reg_v8plus, v8plus_clear_high, and helper
1348 (define_insn addx, subx): Make visible and prettify.
1349 (define_insn adddi3_insn_sp32): Likewise and force split.
1350 (define_insn addx_extend, subx_extend, unnamed): New patterns for
1351 64bit scc split usage.
1352 (define_insn unnamed plusDI zero_extend, unnamed minusDI
1353 zero_extend, subdi3): Force and implement splits.
1355 * final.c (final_scan_insn): Don't output labels if target
1356 specifies ASM_OUTPUT_ADDR_{DIFF}_VEC. Do these macro operations
1359 * reorg.c (dbr_schedule): When taking on BR_PRED notes at the end,
1360 don't forget to walk inside SEQUENCESs too as these are what the
1361 delay slot scheduler will create.
1363 Mon Aug 10 01:21:01 1998 Richard Henderson <rth@cygnus.com>
1365 * alpha.md (extxl+1,+2): New patterns to work around
1368 Sat Aug 8 19:20:22 1998 Gary Thomas (gdt@linuxppc.org)
1370 * rs6000.c (rs6000_allocate_stack_space) Fix typo which
1371 caused bad assembly code to be generated.
1373 Sat Aug 8 18:53:28 1998 Jeffrey A Law (law@cygnus.com)
1375 * netbsd.h: Fix typo.
1377 Mon Aug 3 00:06:42 1998 Robert Lipe <robertl@dgii.com>
1379 * config.sub: Fix typo.
1381 Sun Aug 2 22:39:08 1998 Hans-Peter Nilsson <hp@axis.se>
1383 * invoke.texi (Environment Variables): Typo: Change "ascpects"
1385 (Running Protoize): Typo: Change "ther" into "other".
1387 Sun Aug 2 00:42:50 1998 Jeffrey A Law (law@cygnus.com)
1389 * i386/netbsd.h: Undo previous change to DWARF2_UNWIND_INFO.
1390 * m68k/netbsd.h: Likewise.
1391 * ns32k/netbsd.h: Likewise.
1392 * sparc/netbsd.h: Likewise.
1394 Sat Aug 1 17:59:30 1998 Richard Henderson <rth@cygnus.com>
1396 * ginclude/va-alpha.h (va_list): Use a typedef, not a define.
1397 * ginclude/va-clipper.h (va_list): Likewise.
1399 Fri Jul 31 20:22:02 1998 Michael Meissner <meissner@cygnus.com>
1401 * rs6000.c (rs6000_override_options): If big endian and -Os, use
1402 load/store multiple instructions unless user overrides.
1404 Fri Jul 31 17:08:59 1998 Jeffrey A Law (law@cygnus.com)
1406 * ns32k/netbsd.h: Fix typo.
1408 Fri Jul 31 10:23:55 1998 Doug Evans <devans@canuck.cygnus.com>
1410 * m32r/m32r.h (ASM_OUTPUT_SOURCE_LINE): Always output line number
1411 labels with .debugsym if no parallel insns.
1413 Thu Jul 30 19:15:53 1998 Richard Henderson <rth@cygnus.com>
1415 * alpha.md (fp cmp): Replicate patterns for ALPHA_TP_INSN.
1416 (fcmov): Remove ALPHA_TP_INSN patterns -- fcmov doesn't trap.
1418 Thu Jul 30 19:50:15 1998 David Edelsohn <edelsohn@mhpcc.edu>
1420 * rs6000/x-aix43 (AR_FOR_TARGET_FLAGS): Delete.
1421 (AR_FOR_TARGET): Define.
1423 Thu Jul 30 12:29:12 1998 Mark Mitchell <mark@markmitchell.com>
1425 * dyn-string.h: New file.
1426 * dyn-string.c: Likewise.
1427 * Makefile.in (OBJS): Add dyn-string.o.
1428 (dwarf2out.o): Add dyn-string.h dependency.
1429 (dyn-string.o): List dependencies.
1430 * dwarf2out.c: Include dyn-string.h.
1431 (ASM_NAME_TO_STRING): Use dyn_string_append, rather than strcpy.
1432 (addr_const_to_string): Take a dyn_string_t, not a char* as a
1433 prototype. Use dyn_string_append rather than strcat, throughout.
1434 (addr_to_string): Use dyn_string_t.
1436 Thu Jul 30 13:08:07 1998 Ken Raeburn <raeburn@cygnus.com>
1438 Function entry/exit profiling instrumentation:
1439 * expr.h (profile_function_entry_libfunc,
1440 profile_function_exit_libfunc): Declare new variables.
1441 * optabs.c: Define them here.
1442 (init_optabs): Initialize them.
1443 * tree.h (struct tree_decl): New flag
1444 no_instrument_function_entry_exit.
1445 (DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT): New accessor macro.
1446 * c-decl.c (duplicate_decls): Merge it.
1447 * c-common.c (enum attrs): New value A_NO_INSTRUMENT_FUNCTION.
1448 (init_attributes): Use it for "no_instrument_function".
1449 (decl_attributes): Handle it, for functions that have not yet been
1450 compiled. Set decl flag.
1451 * flags.h (flag_instrument_function_entry_exit): Declare new
1453 * toplev.c (flag_instrument_function_entry_exit): Define it here.
1454 (f_options): New option "instrument-functions".
1455 * function.h (struct function): New field instrument_entry_exit.
1456 * function.c (current_function_instrument_entry_exit): New
1458 (push_function_context_to, pop_function_context_from): Save and
1460 (expand_function_start): Set current_ variable, maybe emit return
1461 label and entry profile call.
1462 (expand_function_end): Maybe emit exit profile call.
1464 Thu Jul 30 00:58:34 1998 Jeffrey A Law (law@cygnus.com)
1466 * i386.md (movqi): When optimizing a load of (const_int 1) into a
1467 NON_QI_REG_P, pretend the register is SImode.
1469 Wed Jul 29 23:49:23 1998 Todd Vierling <tv@netbsd.org>
1471 * configure.in: Use xm-netbsd.h as the NetBSD xm file (not xm-siglist).
1472 Accept arm32 as arm, m68k4k as m68k, mipsle as mips-dec, and any
1473 manufacturer id for ns32k.
1474 * configure: Regenerated.
1475 * config/netbsd.h: When using ASM_WEAKEN_LABEL, make it global too.
1476 * config/t-netbsd: Don't compile libgcc1-test as the fns are in libc.
1477 * config/i386/netbsd.h: Undefine DWARF2_UNWIND_INFO, not define as 0.
1478 * config/m68k/netbsd.h: Same.
1479 * config/ns32k/netbsd.h: Same.
1480 * config/sparc/netbsd.h: Same.
1482 Wed Jul 29 22:39:21 1998 Jeffrey A Law (law@cygnus.com)
1484 * unroll.c (unroll_loop): Do not abort for an UNROLL_MODULO
1485 or UNROLL_COMPLETELY loop that starts with a jump to its
1488 Wed Jul 29 22:18:14 1998 David Edelsohn <edelsohn@mhpcc.edu>
1490 * rs6000/rs6000.md (absdi2 define_split): Swap operands of MINUS.
1491 * rs6000/rs6000.c (mask64_operand): Use HOST_BITS_PER_WIDE_INT.
1492 (print_operand, case 'B'): Don't fall through.
1493 (print_operand, case 'S'): Correct mask begin/end computation.
1494 Use HOST_BITS_PER_WIDE_INT.
1495 * rs6000/rs6000.h (CPP_PREDEFINES): Define _LONG_LONG.
1496 (CONDITIONAL_REGISTER_USAGE): GPR13 fixed if TARGET_64BIT.
1497 * rs6000/aix41.h (CPP_PREDEFINES): Same.
1498 * rs6000/aix43.h (CPP_PREDEFINES): Same.
1500 Wed Jul 29 11:47:10 1998 Nick Clifton <nickc@cygnus.com>
1502 * config/arm/thumb.md (extendqisi2_insn): Remove earlyclobber
1503 constraint from second alternative.
1505 Tue Jul 28 23:29:04 1998 Jason Merrill <jason@yorick.cygnus.com>
1507 * configure.in: Fix --without/--disable cases for local-prefix,
1508 gxx-include-dir and checking.
1510 Tue Jul 28 22:01:23 1998 David S. Miller <davem@pierdol.cobaltmicro.com>
1512 * configure.in (enable_haifa): Set by default for sparc64 too.
1515 Tue Jul 28 23:29:04 1998 Jason Merrill <jason@yorick.cygnus.com>
1517 * i386/cygwin32.h (VALID_MACHINE_TYPE_ATTRIBUTE): New macro.
1518 * i386/winnt.c (associated_type): New fn.
1519 (i386_pe_valid_type_attribute_p): New fn.
1520 (i386_pe_check_vtable_importexport): Remove.
1521 (i386_pe_dllexport_p): Use associated_type.
1522 (i386_pe_dllimport_p): Likewise.
1524 From Antonio M. O. Neto <anmendes@cruzeironet.com.br>:
1525 * i386.c (i386_valid_type_attribute_p): Also accept
1526 attributes for METHOD_TYPEs.
1528 Tue Jul 28 23:17:39 1998 Peter Gerwinski <peter@gerwinski.de>
1530 * tree.c (build_range_type): Copy TYPE_SIZE_UNIT.
1532 Tue Jul 28 22:31:12 1998 Craig Burley <burley@gnu.org>
1534 * gcc.c: Fix commentary describing %g, %u, %U, and %O.
1536 * gcc.c (do_spec_1): Fix handling of %g%O and %U%O to prevent
1537 them from generating a new base name for each occurence of
1540 1998-07-28 Vladimir N. Makarov <vmakarov@cygnus.com>
1542 * cse.c (cse_insn): Enable subsitution inside libcall only for REG,
1544 * rtlanal.c (replace_rtx): Prohibit replaces in CONST_DOUBLE.
1548 * cplus-dem.c (type_kind_t): New type.
1549 (demangle_template_value_parm): Add type_kind_t parameter. Rely
1550 on this paramter, rather than demangling the type again.
1551 (demangle_integral_value): Pass tk_integral.
1552 (demangle_template_: Pass the value returned from do_type.
1553 (do_type): Return a type_kind_t. Pass tk_integral to
1554 demangle_template_value_parm for array bounds.
1555 (demangle_fund_type): Likewise.
1557 Mon Jul 27 00:54:41 1998 Jason Merrill <jason@yorick.cygnus.com>
1559 * tree.c (simple_cst_equal, case CONSTRUCTOR): OK if the elts are
1562 Mon Jul 27 22:18:36 1998 Jeffrey A Law (law@cygnus.com)
1564 * pa.c (move_operand): Accept CONSTANT_P_RTX.
1566 Mon Jul 27 17:18:52 1998 Dave Brolley <brolley@cygnus.com>
1568 * stor-layout.c (layout_type): Handle arrays of bits, for Chill.
1570 * expr.c (get_inner_reference): Handle zero-based, unsigned, array
1573 Mon Jul 27 14:51:33 1998 Jeffrey A Law (law@cygnus.com)
1575 * mn10300.h (DEBUGGER_AUTO_OFFSET): Define.
1576 (DEBUGGER_ARG_OFFSET): Likewise.
1578 * mn10300.md (movsf): Remove last change. Not needed.
1580 Mon Jul 27 14:22:36 1998 Dave Brolley <brolley@cygnus.com>
1582 * c-lex.c (yylex): Fix boundary conditions in character literal and
1583 string literal loops.
1585 Mon Jul 27 11:43:54 1998 Stan Cox <scox@cygnus.com>
1587 * longlong.h (count_leading_zeros): Sparclite scan instruction was
1588 being invoked incorrectly.
1590 * i386.c (ix86_prologue): Added SUBTARGET_PROLOGUE invocation.
1591 * i386/cygwin32.h (STARTFILE_SPEC, LIB_SPEC, SUBTARGET_PROLOGUE):
1593 * i386/win32.h: New file. Hybrid mingw32.h/cygwin32.h configuration.
1594 * configure.in: Added i[34567]86-*-win32
1595 * config.sub: Ditto.
1596 * configure: Rebuilt.
1598 Sun Jul 26 01:11:12 1998 H.J. Lu (hjl@gnu.org)
1600 * i386.h (CONST_DOUBLE_OK_FOR_LETTER_P): Return 0 when eliminating
1601 the frame pointer and compiling PIC code and reload has not completed.
1603 * i386.c (output_to_reg): Add code to emulate non-popping DImode
1606 Sun Jul 26 01:01:32 1998 Jeffrey A Law (law@cygnus.com)
1608 * regmove.c (regmove_optimize): Fix typo initializing regmove_bb_head.
1610 Sat Jul 25 23:29:23 1998 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1612 * Makefile.in (install-info): Only try to update the info
1613 directory file if it exists in the first place.
1615 Fri Jul 24 18:58:37 1998 Klaus Espenlaub <kespenla@student.informatik.uni-ulm.de>
1617 * rs6000.h (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Delete.
1619 Fri Jul 24 14:20:26 1998 Jeffrey A Law (law@cygnus.com)
1621 * mn10300.md (movqi, movhi, movsi, movsf): Correctly handle
1622 CONST_DOUBLE source.
1624 Fri Jul 24 11:17:04 1998 Nick Clifton <nickc@cygnus.com>
1626 * config/arm/thumb.c (thumb_print_operand): Decode %_ in asm
1627 strings as the insertion of USER_LABEL_PREFIX.
1628 * config/arm/thumb.h (PRINT_OPERAND_PUNCT_VALID_P): Accept _ as a
1630 * config/arm/thumb.md: Use %_ as a prefix to gcc library function
1633 Thu Jul 23 18:53:20 1998 Jim Wilson <wilson@cygnus.com>
1635 * dbxout.c (dbxout_range_type): Only call dbxout_type_index for
1636 already defined type.
1638 Thu Jul 23 13:49:41 1998 Jeffrey A Law (law@cygnus.com)
1640 * expr.c (check_max_integer_computation_mode): Allow conversions
1641 of constant integers to MAX_INTEGER_COMPUTATION_MODE.
1642 (expand_expr): Likewise.
1644 Thu Jul 23 11:12:06 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
1646 * expr.c (expand_expr): Expand RETURN_EXPR.
1648 Thu Jul 23 11:00:29 1998 Jim Wilson <wilson@cygnus.com>
1650 * dwarf2out.c (dwarf2out_finish): Call stripattributes on TEXT_SECTION.
1652 Wed Jul 22 19:10:00 1998 Catherine Moore <clm@cygnus.com>
1654 * dwarf2out.c (output_aranges): Call stripattributes
1655 for TEXT_SECTION references.
1656 (output_line_info): Likewise.
1658 Wed Jul 22 14:08:54 1998 David S. Miller <davem@pierdol.cobaltmicro.com>
1660 * profile.c (branch_prob): Call allocate_reg_info after outputting
1661 profile rtl in instrument_arcs.
1663 Wed Jul 22 12:47:49 1998 Jim Wilson <wilson@cygnus.com>
1665 * fixinc.irix (math.h): Install wrapper instead of copying.
1667 Wed Jul 22 12:37:14 1998 Alexandre Petit-Bianco <apbianco@cygnus.com>
1669 * tree.def (EXPR_WITH_FILE_LOCATION): Defined as an 'e' expression
1670 so WFL are expanded correctly when contained in a COMPOUND_EXPR.
1671 * tree.h (EXPR_WFL_EMIT_LINE_NOTE): Change macro not to use
1672 lang_flag_0. Added documentation in the flag table.
1674 Tue Jul 21 23:28:35 1998 Klaus Kaempf <kkaempf@rmi.de>
1676 * cccp.c (do_include): Fix vax c style include handling.
1678 Tue Jul 21 13:28:19 1998 Jason Merrill <jason@yorick.cygnus.com>
1680 * cplus-dem.c (do_type): Use demangle_template_value_parm for arrays.
1682 Sun Jul 12 01:27:05 1998 Jason Merrill <jason@yorick.cygnus.com>
1684 * fold-const.c (non_lvalue): Don't deal with null pointer
1686 (fold, case COMPOUND_EXPR): Wrap a constant 0 in a NOP_EXPR.
1688 Tue Jul 21 15:49:31 1998 David Edelsohn <edelsohn@mhpcc.edu>
1690 * rs6000.h (PREDICATE_CODES): Add CONSTANT_P_RTX.
1691 * rs6000.md (movsi, movdi): Add CONSTANT_P_RTX.
1692 * rs6000.c (short_cint_operand): Add CONSTANT_P_RTX.
1693 (u_short_cint_operand): Same.
1694 (reg_or_cint_operand): Same.
1695 (logical_operand): Same.
1696 (input_operand): Same.
1697 (reg_or_short_operand): Use u_short_cint_operand.
1699 Tue Jul 21 08:56:42 1998 Richard Henderson <rth@cygnus.com>
1701 * alpha.md (fix_truncdfsi2, fix_truncsfsi2): Remove the define_expands,
1702 but keep the insns and splits. Adjust so when the ultimate destination
1703 is memory, use cvtql.
1705 Tue Jul 21 08:55:09 1998 Richard Henderson <rth@cygnus.com>
1707 * flow.c (regno_uninitialized): Fixed regs are never uninitialized.
1709 Tue Jul 21 00:31:01 1998 Jeffrey A Law (law@cygnus.com)
1711 * gcc.c (do_spec): Call "error" not "warning".
1713 * configure.in: Fix minor problems with gas feature detection code.
1714 * configure: Rebuilt.
1716 * gcc.c (do_spec): Issue a warning for '%[]' usage.
1719 * gcc.c: Delete %[spec] support.
1720 (do_spec_1, case '('): Likewise.
1721 (do_spec_1, case '['): Call error.
1723 Mon Jul 20 22:34:17 1998 Richard Henderson <rth@cygnus.com>
1725 * alpha.h (CPP_SPEC): Tidy. Hook to cpp_cpu and cpp_subtarget.
1726 (CPP_SUBTARGET_SPEC): Default to empty string.
1727 (CPP_AM_*, CPP_IM_*, CPP_CPU_*, CPP_CPU_SPEC): New.
1728 (EXTRA_SPECS, SUBTARGET_EXTRA_SPECS): New.
1729 * alpha/elf.h (LD_SPEC): Use %(elf_dynamic_linker).
1730 * alpha/linux-elf.h (SUBTARGET_EXTRA_SPECS): New.
1732 * alpha/linux.h (CPP_PREDEFINES): Tidy.
1733 * alpha/netbsd-elf.h (SUBTARGET_EXTRA_SPECS): New.
1734 * alpha/netbsd.h (CPP_PREDEFINES): Tidy.
1735 * alpha/osf.h (CPP_PREDEFINES): Remove bits subsumed by CPP_CPU_SPEC.
1736 * alpha/win-nt.h (CPP_PREDEFINES): Likewise.
1737 * alpha/vsf.h (CPP_PREDEFINES): Likewise.
1738 (CPP_SUBTARGET_SPEC): New. Do this instead of overriding CPP_SPEC.
1739 * alpha/vxworks.h: Likewise.
1741 Mon Jul 20 22:51:57 1998 Ken Raeburn <raeburn@cygnus.com>
1743 * mips.md (reload_outsi): Added missing REGNO call.
1744 (smulsi3_highpart, umulsi3_highpart): Provide prototype for
1746 (mul_acc_di, mul_acc_64bit_di): Don't use match_op_dup, use
1747 another match_operator and compare the codes.
1749 * mips.h (MASK_DEBUG_E, MASK_DEBUG_I): Set to zero.
1751 * MIPS multiply pattern fixes:
1752 * mips.h (enum reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS):
1753 Add union classes for HI, LO, or HILO plus general registers.
1754 (GENERATE_MADD): Deleted.
1755 * mips.md (mulsi3_mult3): Don't disparage output-LO alternative.
1756 Add TARGET_MAD to condition.
1757 (mulsi3): Test HAVE_mulsi3_mult3, not specific flags.
1758 (mul_acc_si): Expand GENERATE_MADD here; it's the only use. Use
1759 "*d" for accumulator, to give preference to LO initially but not
1762 Mon Jul 20 16:16:38 1998 Dave Brolley <brolley@cygnus.com>
1764 * configure.in (enable_c_mbchar): New configure option.
1765 (extra_cpp_objs): Always available now.
1767 * cexp.y (mbchar.h): #include it.
1768 (yylex): Handle Multibyte characters in character literals.
1770 * cccp.c (mbchar.h): #include it.
1771 (main): Set character set based on LANG environment variable.
1772 (rescan): Handle multibyte characters in comments.
1773 (skip_if_group): See above.
1774 (validate_else): See above.
1775 (skip_to_end_of_comment): See above.
1776 (macarg1): See above.
1777 (discard_comments): See above.
1778 (rescan): Handle multibyte characters in string and character literals.
1779 (collect_expansion): See above.
1780 (skip_quoted_string): See above.
1781 (macroexpand): See above.
1782 (macarg1): See above.
1783 (discard_comments): See above.
1784 (change_newlines): See above.
1786 * c-lex.c (mbchar.h): #include it.
1787 (GET_ENVIRONMENT): New macro.
1788 (init_lex): Set character set based on LANG environment variable.
1789 (yylex): Handle multibyte characters in character literals.
1790 (yylex): Handle multibyte characters in string literals.
1792 * Makefile.in (mbchar.o): New target.
1793 (cccp$(exeext)): @extra_cpp_objs@ is always available.
1794 (cppmain$(exeext)): @extra_cpp_objs@ is always available.
1796 * mbchar.[ch]: New files for multibyte character handling.
1798 Mon Jul 20 01:11:11 1998 David S. Miller <davem@pierdol.cobaltmicro.com>
1800 * jump.c (jump_optimize): When simplifying noop moves and
1801 PUSH_ROUNDING, fix thinko so we use same criterion for identifying
1802 the PUSHes to rewrite in second loop as we did in the first.
1804 Sun Jul 19 08:23:53 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1806 * cplus-dem.c (demangle_nested_args): Make function definition
1807 static to match the prototype.
1809 Fri Jul 17 14:58:44 1998 Richard Henderson <rth@cygnus.com>
1811 * alloca.c: Respect USE_C_ALLOCA.
1812 * gencheck.c (xmalloc): Ignore __GNUC__ for definition.
1813 * gengenrtl.c (xmalloc): Likewise.
1815 Fri Jul 17 14:18:14 1998 Richard Henderson <rth@cygnus.com>
1817 * loop.h (struct induction): Add no_const_addval.
1818 * loop.c (the_movables, reg_address_cost): New variables.
1819 (init_loop): Init reg_address_cost.
1820 (loop_optimize): Call end_alias_analysis.
1821 (scan_loop): Init the_movables.
1822 (record_giv): Init induction->no_const_addval.
1823 (basic_induction_var) [PLUS]: Use rtx_equal_p instead of ==.
1824 [REG]: Rearrange loop search test to catch more cases.
1825 (general_induction_var): Return success not benefit; take an extra
1826 argument for that. Change all callers.
1827 (simplify_giv_expr) [PLUS]: Always combine invariants. Use sge_plus.
1828 [MULT]: Use rtx_equal_p instead of ==. Combine simple invariants.
1829 [default]: Search the_movables for additional combinations.
1830 (sge_plus_constant, sge_plus): New functions.
1831 (express_from_1): New function.
1832 (express_from): Always define. Rewrite using express_from_1.
1833 (combine_givs_p): Handle more cases. Ignore address cost.
1834 (cmp_combine_givs_stats): New function.
1835 (combine_givs_used_once, combine_givs_benefit_from): New functions.
1836 (combine_givs): Rewrite to do best-fit combination.
1838 * fold-const.c (operand_equal_p): Handle RTL_EXPR.
1839 (fold): Do a complete (A*C)+(B*C) association check.
1841 Fri Jul 17 11:21:55 1998 Jim Wilson <wilson@cygnus.com>
1843 * function.c (fixup_var_refs_insns): Handle CLOBBER of a CONCAT.
1845 Fri Jul 17 11:48:55 1998 Jeffrey A Law (law@cygnus.com)
1847 * mn10300.c (MODES_TIEABLE_P): Fix typo.
1849 Fri Jul 17 03:26:12 1998 Rihcard Earnshaw (rearnsha@arm.com)
1851 * tree.c (valid_machine_attribute): Only create a new type variant if
1852 there is a decl to use it.
1854 Thu Jul 16 14:48:04 1998 Nick Clifton <nickc@cygnus.com>
1856 * gcc.c (do_spec_1): Cope with %g/%u/%U options which do not have
1859 Fri Jul 17 03:24:40 1998 Hans-Peter Nilsson <hp@axis.se>
1861 * extend.texi (Explicit Reg Vars): Typo: change "may deleted" into "may
1864 Thu Jul 16 14:48:47 1998 Jeffrey A Law (law@cygnus.com)
1866 * mn10300.c (count_tst_insns): New arg oreg_countp. Callers changed.
1867 Simplify tests for clearing an address register.
1868 (expand_prologue): Corresponding changes.
1870 * mn10300.md (movXX patterns): Make sure the destination is an
1871 ADDRESS_REG when substituting "zero_areg" for (const_int 0).
1872 (logical patterns): Split into expanders + patterns
1873 (zero and sign extension patterns): Similarly.
1874 (shift patterns): Similarly.
1876 Thu Jul 16 01:17:44 1998 Richard Henderson <rth@cygnus.com>
1878 * loop.c (emit_iv_add_mult): Scan the entire insn list generated
1879 for the sequence, recording base values.
1881 Wed Jul 15 10:49:55 1998 Richard Henderson <rth@cygnus.com>
1883 * i386.h (CPP_CPU_SPEC): Remove -Asystem(unix).
1885 Tue Jul 14 14:15:30 1998 Nick Clifton <nickc@cygnus.com>
1887 * gcc.c: Remove ANSI-C ism from --help code.
1889 * toplev.c: Support --help with USE_CPPLIB.
1891 Tue Jul 14 14:46:08 1998 Jeffrey A Law (law@cygnus.com)
1893 * configure.in: Rework gas feature code to work with symlink based
1896 * extend.texi: Clarify some issues related to local variables
1897 assigned to explicit registers.
1899 * mn10300.md (mulsi): Turn into expander + pattern.
1901 * mn10300.md (movsi, movsf, movdi, movdf): Remove "x" from I -> a
1904 Tue Jul 14 07:41:59 1998 Richard Earnshaw (rearnsha@arm.com)
1906 * arm/tcoff.h (USER_LABEL_PREFIX): Make it empty to match coff.h.
1908 Tue Jul 14 03:02:44 1998 Jeffrey A Law (law@cygnus.com)
1910 * version.c: Bump again to distinguish mainline tree from the
1913 See ChangeLog.0 for earlier changes.
1916 add-log-time-format: current-time-string