dwarf2 EH support
[gcc.git] / gcc / ChangeLog
1 Mon Sep 15 15:24:00 1997 Richard Henderson <rth@cygnus.com>
2
3 * alpha.md (movdi): Handle CONST_DOUBLE for TARGET_BUILD_CONSTANTS.
4
5 * alpha/alpha.c (output_prolog): New variable sa_reg. Use it for
6 out-or-range reg_offset.
7 (output_epilog): Likewise.
8
9 Mon Sep 15 15:39:26 1997 Jeffrey A Law (law@cygnus.com)
10
11 * cse.c (simplify_relational_operation): If MODE specifies a
12 mode wider than HOST_WIDE_INT, then the high word of a CONST_INT
13 is derived from the sign bit of the low word.
14
15 Mon Sep 15 11:43:38 1997 Jason Merrill <jason@yorick.cygnus.com>
16
17 Support dwarf2 unwinding on PUSH_ROUNDING targets like the x86.
18
19 * dwarf2.h: Add DW_CFA_GNU_args_size.
20 * frame.c (execute_cfa_insn): Likewise.
21 * dwarf2out.c (dwarf_cfi_name, output_cfi): Likewise.
22 (dwarf2out_args_size, dwarf2out_stack_adjust): New fns.
23 (dwarf2out_frame_debug): If this isn't a prologue or epilogue
24 insn, hand it off to dwarf2out_stack_adjust.
25 (dwarf2out_begin_prologue): Initialize args_size.
26 * frame.h (struct frame_state): Add args_size.
27 * libgcc2.c (__throw): Use args_size.
28 * final.c (final_scan_insn): If we push args, hand off all insns
29 to dwarf2out_frame_debug.
30 * defaults.h (DWARF2_UNWIND_INFO): OK for !ACCUMULATE_OUTGOING_ARGS.
31
32 * dwarf2out.c dwarf2out_frame_debug): Fix typo.
33 Handle epilogue restore of SP from FP.
34 * emit-rtl.c (gen_sequence): Still generate a sequence if the
35 lone insn has RTX_FRAME_RELATED_P set.
36
37 * frame.c (extract_cie_info): Handle "e" augmentation.
38 * dwarf2out.c (ASM_OUTPUT_DWARF_*): Provide definitions in the
39 absence of UNALIGNED_*_ASM_OP.
40 (UNALIGNED_*_ASM_OP): Only provide defaults if OBJECT_FORMAT_ELF.
41 (output_call_frame_info): Use "e" instead of "z" for augmentation.
42 Don't emit augmentation fields length.
43 (dwarf2out_do_frame): Move outside of #ifdefs.
44 * defaults.h (DWARF2_UNWIND_INFO): Don't require unaligned data
45 opcodes.
46
47 * sparc.h (UNALIGNED_INT_ASM_OP et al): Don't define here after all.
48 * sparc/sysv4.h (UNALIGNED_INT_ASM_OP): Define here.
49 * sparc/sunos4.h (DWARF2_UNWIND_INFO): Define to 0.
50 * sparc/sun4gas.h: New file.
51 * configure.in: Use sun4gas.h if SunOS 4 --with-gnu-as.
52
53 * collect2.c (write_c_file_stat, write_c_file_glob): Declare
54 __register_frame_table and __deregister_frame.
55
56 1997-09-15 Brendan Kehoe <brendan@cygnus.com>
57
58 * except.c (find_exception_handler_labels): Use xmalloc instead of
59 alloca, since MAX_LABELNO - MIN_LABELNO can be more than 1 million
60 in some cases.
61
62 Sun Sep 14 21:01:23 1997 Jeffrey A Law (law@cygnus.com)
63
64 * Makefile.in: Various changes to build info files
65 in the object tree rather than the source tree.
66
67 Sun Sep 14 12:24:30 1997 Jeffrey A Law (law@cygnus.com)
68
69 * fixinc.math: New file to fix math.h on some systems.
70 * configure.in (freebsd, netbsd): Use fixinc.math on these
71 systems.
72 * configure: Rebuilt.
73
74 Sun Sep 14 11:11:05 1997 Jeffrey A Law (law@cygnus.com)
75
76 * regmove.c (regmove_optimize): If we end up moving the
77 original insn due to lifetime overlaps, make sure to move
78 REG_NOTES too.
79
80 Sat Sep 13 15:51:11 1997 Manfred Hollstein <manfred@s-direktnet.de>
81
82 * Makefile.in (INSTALL_{PROGRAM,DATA}): Use value found by configure.
83
84 Sat Sep 13 12:57:26 1997 Jeffrey A Law (law@cygnus.com)
85
86 * haifa-sched.c (add_branch_dependences): Make each insn in
87 a SCHED_GROUP_P block explicitly depend on the previous insn.
88
89 Fri Sep 12 13:49:58 1997 Jason Merrill <jason@yorick.cygnus.com>
90
91 * except.h: Prototype dwarf2 hooks.
92 * expr.c: Adjust.
93
94 Thu Sep 11 17:43:55 1997 Jim Wilson <wilson@cygnus.com>
95
96 * configure.in (native_prefix): Delete.
97 (mips-dec-netbsd): Don't set prefix.
98 (*linux*): Don't set prefix.
99
100 Thu Sep 11 15:48:32 1997 Fred Fish <fnf@ninemoons.com>
101
102 * protoize.c: Include <varargs.h> only if HAVE_VARARGS_H is
103 defined. If not defined, include <sys/varargs.h> if
104 HAVE_SYS_VARARGS_H is defined.
105 * configure.in: Test for varargs.h and sys/varargs.h.
106 * configure: Regenerate with autoconf.
107 * config.in: Regenerate with autoheader.
108
109 * cpplib.c (quote_string): Cast first arg of sprintf call
110 from "unsigned char *" to "char *".
111 (output_line_command): Ditto.
112 (macroexpand): Ditto.
113 (do_line): Cast atoi arg from "unsigned char *" to "char *".
114
115 Wed Sep 10 21:37:30 1997 Jeffrey A Law (law@cygnus.com)
116
117 * version.c: Bump for snapshot.
118
119 * Makefile.in (compare): Exit with nonzero status if there
120 are comparison failures. Note which files failed the
121 comparison test in .bad_compare.
122
123 Wed Sep 10 17:05:46 1997 H.J. Lu (hjl@gnu.ai.mit.edu)
124
125 * config/alpha/elf.h (CPP_PREDEFINES): Remove -D__PIC__ -D__pic__.
126
127 Wed Sep 10 16:37:28 1997 Fred Fish <fnf@ninemoons.com>
128
129 * Makefile.in (LN, LN_S): New macros, use where appropriate.
130 * aclocal.m4 (GCC_PROG_LN_S, GCC_PROG_LN): New tests.
131 * configure.in: Use GCC_PROG_LN_S and GCC_PROG_LN.
132 * configure: Regenerated.
133
134 Thu Sep 11 11:09:43 1997 Jeffrey A Law (law@cygnus.com)
135
136 * loop.c (strength_reduce): Fix typo.
137
138 Wed Sep 10 16:01:15 1997 Jim Wilson <wilson@cygnus.com>
139
140 * m88k/m88k.c (struct option): Rename to struct options.
141 * m88k/dolph.h (INITIALIZE_TRAMPOLINE): Delete here.
142 * m88k/sysv3.h (INITIALIZE_TRAMPOLINE): Delete ifdef and comments.
143 * libgcc2.c (__enable_execute_stack): Check for __sysV88__ not
144 __DOLPHIN__ or sysV88.
145
146 Wed Sep 10 14:58:40 1997 Jim Wilson <wilson@cygnus.com>
147
148 * emit-rtl.c (gen_lowpart_common): For a SUBREG, add in word when
149 create new subreg.
150
151 Wed Sep 10 15:19:22 1997 Jeffrey A Law (law@cygnus.com)
152
153 * config.sub: Accept 'amigados' for backward compatability.
154
155 Wed Sep 10 14:05:08 1997 H.J. Lu (hjl@gnu.ai.mit.edu)
156
157 * Makefile.in (testsuite/site.exp): New target.
158 (check-gcc, check-g++): Depend on testsuite/site.exp.
159 Don't stop for failure.
160
161 Wed Sep 10 12:59:57 1997 Jason Merrill <jason@yorick.cygnus.com>
162
163 * expr.c (expand_builtin): Only support __builtin_dwarf_fp_regnum()
164 if DWARF2_UNWIND_INFO.
165
166 Wed Sep 10 11:49:20 1997 Jason Merrill <jason@yorick.cygnus.com>
167
168 Add support for exception handling using DWARF 2 frame unwind info.
169 Currently works on SPARC and MIPS, and almost on x86.
170
171 * libgcc2.c (get_reg, put_reg, get_return_addr, put_return_addr,
172 next_stack_level, in_reg_window): Helper fns.
173 (__throw): Implement for DWARF2_UNWIND_INFO.
174
175 * expr.c (expand_builtin): Handle builtins used by __throw.
176 * tree.h (enum built_in_function): Add builtins used by __throw.
177 * c-decl.c (init_decl_processing): Declare builtins used by __throw.
178 * dwarf2out.c (expand_builtin_dwarf_fp_regnum): Used by __throw.
179 * except.c (expand_builtin_unwind_init): Hook for dwarf2 __throw.
180 (expand_builtin_extract_return_addr): Likewise.
181 (expand_builtin_frob_return_addr): Likewise.
182 (expand_builtin_set_return_addr_reg): Likewise.
183 (expand_builtin_eh_stub): Likewise.
184 (expand_builtin_set_eh_regs): Likewise.
185 (eh_regs): Choose two call-clobbered registers for passing back values.
186
187 * frame.c, frame.h: New files for parsing dwarf 2 frame info.
188 * Makefile.in (LIB2ADD): New variable. Add $(srcdir)/frame.c.
189 (libgcc2.a): Use it instead of $(LIB2FUNCS_EXTRA) $(LANG_LIB2FUNCS)
190 (stmp-multilib): Likewise.
191 ($(T)crtbegin.o, $(T)crtend.o): Add -fno-exceptions.
192
193 * except.c: #include "defaults.h".
194 (exceptions_via_longjmp): Default depends on DWARF2_UNWIND_INFO.
195 (emit_throw): Don't defeat assemble_external if DWARF2_UNWIND_INFO.
196 (register_exception_table_p): New fn.
197 (start_eh_unwinder): Don't do anything if DWARF2_UNWIND_INFO.
198 (end_eh_unwinder): Likewise.
199
200 * crtstuff.c: Wrap .eh_frame section, use EH_FRAME_SECTION_ASM_OP,
201 call __register_frame and __deregister_frame as needed.
202 * varasm.c (eh_frame_section): New fn if EH_FRAME_SECTION_ASM_OP.
203 * dwarf2out.c (EH_FRAME_SECTION): Now a function-like macro. Check
204 EH_FRAME_SECTION_ASM_OP.
205 * sparc/sysv4.h (EH_FRAME_SECTION_ASM_OP): Define.
206 * mips/iris6.h: (EH_FRAME_SECTION_ASM_OP): Define.
207 (LINK_SPEC): Add __EH_FRAME_BEGIN__ to hidden symbols.
208
209 * dwarf2out.c (output_call_frame_info): If no support for
210 EXCEPTION_SECTION, mark the start of the frame info with a
211 collectable tag.
212 * collect2.c (frame_tables): New list.
213 (is_ctor_dtor): Recognise frame entries.
214 (scan_prog_file): Likewise.
215 (main): Pass -fno-exceptions to sub-compile. Also do collection
216 if there are any frame entries.
217 (write_c_file_stat): Call __register_frame_table and
218 __deregister_frame as needed.
219 (write_c_file_glob): Likewise.
220
221 * defaults.h (DWARF2_UNWIND_INFO): Default to 1 if supported.
222 Also require unaligned reloc support.
223 * sparc.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
224 UNALIGNED_DOUBLE_INT_ASM_OP): Define here.
225 * sparc/sysv4.h: Not here.
226
227 * toplev.c (compile_file): Call dwarf2out_frame_{init,finish}.
228 * dwarf2out.c (dwarf2out_init): Don't call dwarf2out_frame_init.
229 (dwarf2out_finish): Don't call dwarf2out_frame_finish.
230
231 * libgcc2.c (L_eh): Reorganize, moving code shared by different
232 EH implementations to the top.
233 (find_exception_handler): Split out. Start from 0. Compare against
234 end with >=.
235 (__find_first_exception_table_match): Use it.
236 * except.c (output_exception_table): Don't do anything if there's
237 no table. Don't output a first entry of zeroes.
238 (eh_outer_context): Adjust properly.
239 (add_eh_table_entry): Use xrealloc.
240 * toplev.c (compile_file): Just call output_exception_table.
241
242 Wed Sep 10 11:30:36 1997 Jason Merrill <jason@cygnus.com>
243
244 * i386.c (ix86_prologue): Add dwarf2 support for !do_rtl case.
245
246 Wed Sep 10 08:17:10 1997 Torbjorn Granlund <tege@pdc.kth..se>
247
248 * except.c (eh_outer_context): Do masking using expand_and.
249
250 Wed Sep 10 01:38:30 1997 Doug Evans <dje@cygnus.com>
251
252 Add port done awhile ago for the ARC cpu.
253 * arc/arc.h: New file.
254 * arc/arc.c: New file.
255 * arc/arc.md: New file.
256 * arc/initfini.c: New file.
257 * arc/lib1funcs.asm: New file.
258 * arc/t-arc: New file.
259 * arc/xm-arc.h: New file.
260 * ginclude/va-arc.h: New file.
261 * ginclude/stdarg.h: Include va-arc.h ifdef __arc__.
262 * ginclude/varargs.h: Likewise.
263 * Makefile.in (USER_H): Add va-arc.h.
264 * configure.in (arc-*-elf*): Recognize.
265 * longlong.h: Add ARC support.
266
267 Wed Sep 10 01:32:54 1997 Jeffrey A Law (law@cygnus.com)
268
269 * expr.c (clear_storage): Use CONST0_RTX instead of const0_rtx.
270 when clearing non-BLKmode data.
271
272 Wed Sep 10 00:29:29 1997 Manfred Hollstein <manfred@s-direktnet.de>
273
274 * m88k/sysv3.h (INITIALIZE_TRAMPOLINE) Define.
275 * libgcc2.c (__enable_execute_stack): Provide for sysV88 too.
276
277 * xm-m88k.h (USG): Only define if it hasn't already been defined.
278
279 * Makefile.in (risky-stage1): Delete gratutious whitespace.
280
281 * Makefile.in (clean): Delete libgcc1-test.
282
283 * Makefile.in (INSTALL): cd to $(srcdir) before running texinfo.
284
285 Tue Sep 9 17:07:36 1997 Stan Cox <coxs@dg-rtp.dg.com>
286
287 * m88k.c (m88k_expand_prologue): Set MEM_IN_STRUCT_P of va_list
288 template.
289
290 Tue Sep 9 09:50:02 1997 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
291
292 * dwarf2out.c (output_call_frame_info): Call named_section.
293
294 Tue Sep 9 09:12:17 1997 Jeffrey A Law (law@cygnus.com)
295
296 * haifa-sched.c (print_value): Fix last change.
297
298 Tue Sep 9 01:30:37 1997 Jason Merrill <jason@yorick.cygnus.com>
299
300 * mips.h (DWARF_FRAME_REGNUM): Use the same numbering regardless of
301 write_symbols.
302
303 Mon Sep 8 16:32:43 1997 Jason Merrill <jason@yorick.cygnus.com>
304
305 * mips.c (function_prologue): Set up the CFA when ABI_32.
306
307 * sparc.c (save_regs): Check dwarf2out_do_frame instead of DWARF2_DEBUG
308 for dwarf2 unwind info.
309 (output_function_prologue, sparc_flat_output_function_prologue): Same.
310
311 * final.c (final_end_function): Check dwarf2out_do_frame instead
312 of DWARF2_DEBUG for dwarf2 unwind info.
313 (final_scan_insn): Likewise.
314 (final_start_function): Likewise. Initialize dwarf2 frame debug here.
315 (final): Not here.
316
317 * expr.c (expand_builtin_return_addr): Only SETUP_FRAME_ADDRESSES if
318 count > 0.
319
320 * varasm.c (exception_section): Check EXCEPTION_SECTION first.
321
322 Mon Sep 8 15:15:11 1997 Nick Clifton <nickc@cygnus.com>
323
324 * v850.h (ASM_SPEC): Pass on target processor.
325 (CPP_PREDEFINES): Only define if not already specified.
326 (TARGET_VERSION): Only define if not already specified.
327 (MASK_CPU, MASK_V850, MASK_DEFAULT): Bits to specify target
328 processor.
329 (EXTRA_SWITCHES): Extra entries in the switches array.
330 (TARGET_DEFAULT): Set default target processor.
331
332 Mon Sep 8 18:26:35 1997 Jim Wilson <wilson@cygnus.com>
333
334 * m68k.h (MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): In MOTOROLA
335 cases, add %# and %/, and add : to make them into extended asms.
336
337 Sun Sep 7 23:57:50 1997 Weiwen Liu <liu@hepunix.physics.yale.edu>
338
339 * alias.c (init_alias_analysis): Clean up incompatible pointer
340 type warning in bzero.
341 * regmove.c (regmove_optimize): Ditto.
342 * haifa-sched.c (find_rgns): Ditto.
343
344 * haifa-sched.c (print_value): Clean up ptr->int cast
345 warnings.
346
347 Sun Sep 7 23:18:32 1997 Fred Fish <fnf@ninemoons.com>
348
349 * INSTALL: Change 'amigados' to 'amigaos' to match current usage.
350 * install.texi (Configurations): Ditto.
351 * config.sub: Ditto.
352
353 Sun Sep 7 22:56:56 1997 Weiwen Liu (liu@hepvms.physics.yale.edu)
354
355 * Makefile.in (sdbout.o): Depend on insn-config.h.
356
357 Sun Sep 7 18:44:50 1997 Jim Wilson <wilson@cygnus.com>
358
359 * m68k/m68k.h (TARGET_SWITCHES): For 68000, 68302, subtract MASK_68881.
360 For 68303, 68332, cpu32, subtract MASK_68040_ONLY.
361
362 Sun Sep 7 18:30:46 1997 Jason Merrill <jason@yorick.cygnus.com>
363
364 * dwarf2out.c (dwarf2out_frame_debug): Assume that in a PARALLEL
365 prologue insn, only the first elt is significant.
366 (output_call_frame_info): For exception handling, always use 4-byte
367 fields as specified by the dwarf2 spec.
368 Don't skip trivial FDEs.
369
370 Sun Sep 7 14:19:39 1997 Jeffrey A Law (law@cygnus.com)
371
372 * version.c: Bump for snapshot.
373
374 Sun Sep 7 14:17:36 1997 Torbjorn Granlund (tege@pdc.kth.se)
375
376 * expmed.c (expand_divmod): Make op1_is_pow2 depend on unsignedp
377 for negative constants. Promote EXACT_DIV_EXPR to TRUNC_DIV_EXPR
378 when op1_is_pow2.
379
380 Sun Sep 7 13:46:46 1997 Jeffrey A Law (law@cygnus.com)
381
382 * final.c (shorten_branches): During first pass, assume worst
383 possible alignment for ADDR_VEC and ADDR_VEC_DIFF insns.
384
385 * Makefile.in (distclean): Remove various things left around
386 by running the testsuite.
387
388 Sun Sep 7 13:16:06 1997 Manfred Hollstein <manfred@s-direktnet.de>
389
390 * configure.in (out_file): Emit definition to config.status in order
391 to have a defined value for configure.lang.
392 * configure: Re-built.
393
394 Sun Sep 7 09:59:08 1997 Jan-Jaap van der Heijden (J.J.vanderHeijden@student.utwente.nl)
395
396 * configure.in: Make symlink to as-new rather than as.new. Similarly
397 for ld-new.
398 * configure: Rebuilt.
399
400 Fri Sep 5 16:54:55 1997 Jim Wilson <wilson@cygnus.com>
401
402 * profile.c (output_func_start_profiler): Set DECL_EXTERNAL to zero.
403
404 Fri Sep 5 16:16:44 1997 Christian Kuehnke <Christian.Kuehnke@arbi.Informatik.Uni-Oldenburg.DE>
405
406 * sparc/sparc.md: Add ultrasparc scheduling support.
407 * sparc/sparc.h (RTX_COSTS): For MULT give v9 a cost of 25 insns.
408
409 Fri Sep 5 14:04:59 1997 Philippe De Muyter <phdm@info.ucl.ac.be>
410
411 * integrate.c (save_for_inline_copying): Use 0, not NULL_PTR,
412 as initial value for real_label_map.
413 (copy_for_inline): Likewise.
414
415 Fri Sep 5 13:36:44 1997 J"orn Rennecke <amylaar@cygnus.co.uk>
416
417 * sched.c (update_flow_info) When looking if to set found_split_dest
418 or found_orig_dest, look at all parts of a PARALLEL.
419 * haifa-sched.c (update_flow_info): Likewise.
420
421 Fri Sep 5 10:08:44 1997 Jeffrey A Law (law@cygnus.com)
422
423 * v850: New directory for v850 port.
424 * v850/lib1funcs.asm: New file.
425 * t-v850, v850.c, v850.h, v850.md, xm-v850.h: New files.
426 * ginclude/va-v850.h: New file.
427 * ginclude/varargs.h, ginclude/stdarg.h: Include va-mn10200.h.
428 * configure.in (mn10200-*-*): New target.
429 * configure: Rebuilt.
430 * config.sub: Handle v850-elf.
431 * Makefile.in (USER_H): Add va-mn10200.h.
432 * invoke.texi: Document v850 stuff.
433
434 Fri Sep 5 09:37:50 1997 Jim Wilson (wilson@cygnus.com)
435
436 * sdbout.c (plain_type_1, case ARRAY_TYPE): Verify that TYPE_DOMAIN
437 has integer TYPE_{MAX,MIN}_VALUE before using them.
438
439 * m68k/m68k.h (MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Add
440 __HPUX_ASM__ versions.
441
442 Fri Sep 5 09:08:44 1997 Jeffrey A Law (law@cygnus.com)
443
444 * install.sh: Delete duplicate install script.
445
446 Thu Sep 4 23:14:27 1997 Stan Cox (coxs@dg-rtp.dg.com)
447
448 * reg-stack.c (subst_stack_regs): Pop the stack register for a
449 computed goto which sets the same stack register.
450
451 * reg-stack.c (compare_for_stack_reg): Swap only if the source and
452 destination are both on the regstack.
453 (subst_stack_regs_pat): Put the destination at the top of the regstack.
454
455 Thu Sep 4 15:02:27 1997 Jim Wilson <wilson@cygnus.com>
456
457 * mips.md (nonlocal_goto_receiver): Define.
458
459 * profile.c (output_arc_profiler): Check next_insert_after for non
460 NULL before deferencing it.
461
462 * i386/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define to -fPIC.
463
464 Thu Sep 4 14:51:57 1997 Jeffrey A Law (law@cygnus.com)
465
466 * i386.h (CPP_CPU_DEFAULT): Avoid using #elif.
467
468 Thu Sep 4 15:01:49 1997 Michael Meissner <meissner@cygnus.com>
469
470 * toplev.c (rest_of_compilation): For passes starting with
471 flow_analysis, use print_rtl_with_bb instead of print_rtl.
472
473 * print-rtl.c (print_rtl_single): Print a single rtl value to a
474 file.
475
476 * flow.c (print_rtl_with_bb): Print which insns start and end
477 basic blocks. For the start of a basic block, also print the live
478 information.
479
480 Thu Sep 4 11:51:43 1997 Jim Wilson <wilson@cygnus.com>
481
482 * toplev.c (main): Change #elif to #else/#ifdef
483
484 * tlink.c: Include ctype.h.
485 * ginclude/va-mips.h: Add _VA_MIPS_H_ENUM ifdef/define/endif.
486
487 Thu Sep 4 11:17:16 1997 Mikeael Meissner (meissner@cygnus.com)
488
489 * bitmap.c: Conditionally include stdlib.h.
490 (free): Provide a declaration if NEED_DECLARATION_FREE.
491
492 Thu Sep 4 09:58:53 1997 Joel Sherrill (joel@OARcorp.com)
493
494 * i960/i960.h: Added default for SUBTARGET_SWITCHES macro.
495
496 Thu Sep 4 09:53:20 1997 Jim Wilson (wilson@cygnus.com)
497
498 * profile.c (output_arc_profiler): Verify next_insert_after is an
499 INSN before and after skipping a stack pop.
500
501 Thu Sep 4 07:39:19 1997 J"orn Rennecke <amylaar@cygnus.co.uk>
502
503 * final.c (shorten_branches): Don't count the lengths of deleted
504 instructions.
505
506 Thu Sep 4 09:43:01 1997 Jeffrey A Law (law@cygnus.com)
507
508 * version.c: Bump for snapshot.
509
510 Thu Sep 4 11:04:21 1997 Michael Meissner <meissner@cygnus.com>
511
512 * bitmap.h (EXECUTE_IF_AND_IN_BITMAP): New macro, to iterate over
513 two bitmaps ANDed together.
514 (bitmap_print): Declare.
515
516 * bitmap.c (function_obstack): Don't declare any more.
517 (bitmap_obstack): Obstack for allocating links from.
518 (bitmap_obstack_init): New static to say whether to initialize
519 bitmap_obstack.
520 (bitmap_element_allocate): Use bitmap_obstack to allocate from.
521 (bitmap_release_memory): Free all memory allocated from
522 bitmap_obstack.
523
524 * basic-block.h (EXECUTE_IF_AND_IN_REG_SET): New macro, invoke
525 EXECUTE_IF_AND_IN_BITMAP.
526
527 Wed Sep 3 10:39:42 1997 Jim Wilson <wilson@cygnus.com>
528
529 * alias.c (true_dependence): Address with AND can alias scalars.
530 (anti_dependence, output_dependence): Likewise.
531
532 * alias.c (true_dependence): Test x for BLKmode, in addition to mem.
533
534 Wed Sep 3 09:28:50 CDT 1997 Joel Sherrill (joel@OARcorp.com)
535
536 * i386/go32-rtems.h, i386/rtems.h, i960/rtems.h, m68k/rtems.h,
537 mips/rtems64.h, pa/rtems.h, rs6000/rtems.h, sh/rtems.h,
538 sparc/rtems.h (subtarget_switches): Removed SUBTARGET_SWITCHES
539 definitions. Use -qrtems instead of -mrtems.
540
541 Wed Sep 3 09:05:41 1997 Robert Lipe (robert@dgii.com)
542
543 * xm-sco5.h (sys_siglist): Define.
544 (SYS_SIGLIST_DECLARED): Likewise.
545
546 Tue Sep 2 23:33:33 1997 Jeffrey A Law (law@cygnus.com)
547
548 * expr.c (convert_move): Handle truncation from TQFmode to QFmode.
549
550 Wed Sep 3 02:09:30 1997 Torbjorn Granlund <tege@pdc.kth..se>
551
552 * except.c (eh_outer_context): Expand masking operation using
553 expand_binop.
554
555 Tue Sep 2 18:09:39 1997 Jim Wilson <wilson@cygnus.com>
556
557 * alpha.md (floatdisf2-1): New pattern.
558
559 Tue Sep 2 18:41:55 1997 Jeffrey A Law (law@cygnus.com)
560
561 * xm-svr4.h (SYS_SIGLIST_DECLARED): Define.
562 * xm-news.h (SYS_SIGLIST_DECLARED): Likewise.
563 * xm-sysv4.h (SYS_SIGLIST_DECLARED): Likewise.
564 * gcc.texi: Note that if you define sys_siglist that you should
565 also define SYS_SIGLIST_DECLARED.
566
567 * mn10200.h (INITIALIZE_TRAMPOLINE): PC relative instructions
568 are relative to the next instruction, not the current instruction.
569
570 Tue Sep 2 14:22:43 1997 Jim Wilson <wilson@cygnus.com>
571
572 * local-alloc.c (contains_replace_regs): New function.
573 (update_equiv_regs): When adding a REG_EQUIV note for a set of a MEM,
574 verify that there is no existing REG_EQUIV note, and add a call to
575 contains_place_regs.
576
577 Tue Sep 2 12:48:11 1997 H.J. Lu (hjl@gnu.ai.mit.edu)
578
579 * config/alpha/elf.h (CPP_PREDEFINES): Add -D__PIC__ -D__pic__.
580 (STARTFILE_SPEC): Always use crtbegin.o%s
581 (ENDFILE_SPEC): Always use crtend.o%s.
582
583 Tue Sep 2 12:00:36 1997 Jim Wilson <wilson@cygnus.com>
584
585 * alpha/alpha.h (PREFERRED_RELOAD_CLASS): Return NO_REGS if NO_REGS
586 is passed in.
587 * emit-rtl.c (gen_lowpart_common): Add code to convert CONST_INT to
588 SFmode for 64 bit hosts.
589
590 Tue Sep 2 13:42:38 1997 Paul N. Hilfinger <hilfingr@CS.Berkeley.EDU>
591
592 * fixincludes: Permits spaces between # and define. Discard C++
593 comments in sys/pci.h on HP/UX 10.20.
594
595 Mon Sep 1 22:13:18 1997 Jeffrey A Law (law@cygnus.com)
596
597 * version.c: Bump for snapshot.
598
599 * pa.c (restore_unscaled_index_insn_codes): New function.
600 (record_unscaled_index_insn_codes): Likewise.
601 (output_function_prologue): Call restore_unscaled_index_insn_codes.
602 (output_function_epilogue): Free memory for unscaled_index_insn_codes.
603 (pa_reorg): Call record_unscaled_index_insn_codes.
604
605 * haifa-sched.c (move_insn): Handle notes correctly for insns
606 with SCHED_GROUP_P set.
607
608 Mon Sep 1 16:58:57 1997 H.J. Lu (hjl@gnu.ai.mit.edu)
609
610 * alpha/xm-linux.h (USE_BFD): Undef before define.
611
612 Mon Sep 1 16:25:34 1997 Jim Wilson <wilson@cygnus.com>
613
614 * cse.c (cse_insn): Don't record BLKmode values.
615
616 Mon Sep 1 11:25:47 1997 Stephen Williams (steve@icarus.icarus.com)
617
618 * i960.h (LINK_SPEC): Handle "-mjX" and "-mrp" switches.
619
620 Mon Sep 1 08:29:46 1997 Jeffrey A Law (law@cygnus.com)
621
622 * cccp.c (sys_errlist): Remove special 4.4bsd declaration.
623 * collect2.c (sys_errlist): Likewise.
624 * cpplib.c (sys_errlist): Likewise.
625 * gcc.c (sys_errlist): Likewise.
626 * protoize (sys_errlist): Likewise.
627 * configure.in: Check for strerror.
628 * xm-freebsd.h (HAVE_STRERROR): Remove definition.
629 * xm-gnu.h (HAVE_STRERROR): Likewise.
630 * xm-linux.h (HAVE_STRERROR): Likewise.
631 * xm-netbsd.h (HAVE_STRERROR): Likewise.
632 * xm-bsd386.h (HAVE_STRERROR): Likewise.
633 * xm-cygwin32.h (HAVE_STRERROR): Likewise.
634 * xm-dos.h (HAVE_STRERROR): Likewise.
635 * xm-mingw32.h (HAVE_STRERROR): Likewise.
636 * xm-pa.h (HAVE_STRERROR): Likewise.
637 * xm-papro.h (HAVE_STRERROR): Likewise.
638 * xm-sysv4.h (HAVE_STRERROR): Likewise.
639 * configure, config.in: Rebuilt.
640
641 * Makefile.in: Add several missing "else true" clauses.
642
643 * collect2.c: Change DONT_DECLARE_SYS_SIGLIST to SYS_SIGLIST_DECLARED.
644 * mips-tfile.c: Likewise.
645 * gcc.texi: DONT_DECLARE_SYS_SIGLIST: Remove docs.
646 * xm-linux.h (DONT_DECLARE_SYS_SIGLIST): Delete definition.
647 * xm-freebsd.h, xm-bsd386.h, xm-sysv4.h, xm-sol2.h: Likewise.
648 * configure.in: Check for sys_siglist declaration.
649 * configure, config.in: Rebuilt.
650
651 Mon Sep 1 08:04:07 1997 Joel Sherrill (joel@OARcorp.com)
652
653 * i386/go32-rtems.h, i386/rtems.h, i960/rtems.h,
654 m68k/rtems.h, mips/rtems64.h, pa/rtems.h, rs6000/rtems.h,
655 sparc/rtems.h (subtarget_switches): Added -mrtems as a switch.
656 * i960/i960.h: Added SUBTARGET_SWITCHES macro.
657 * rs6000/sysv4.h (extra_subtarget_switches): Added new
658 macro EXTRA_SUBTARGET_SWITCHES.
659 * configure.in (sh*-*-rtems*): New target.
660 * sh/rtems.h: New file.
661 * sh/sh.h: Added SUBTARGET_SWITCHES macro.
662 * configure: Rebuilt.
663
664 Sat Aug 30 22:54:26 1997 Jim Wilson <wilson@cygnus.com>
665
666 * unroll.c (calculate_giv_inc): Handle increment with code PLUS.
667
668 Sat Aug 30 10:49:46 1997 David Edelsohn <edelsohn@mhpcc.edu>
669
670 * rs6000.md: Make DF fused-add operations pay attention to
671 -mno-fused-add.
672
673 Fri Aug 29 19:19:54 1997 Jim Wilson <wilson@cygnus.com>
674
675 * i386/xm-sysv4.h (DONT_DECLARE_SYS_SIGLIST): Define.
676
677 Fri Aug 29 16:13:51 1997 Jeffrey A Law (law@cygnus.com)
678
679 * pa.md (reload_peepholes): Make sure operand is a REG before
680 examining REGNO. Allow general registers too.
681
682 Fri Aug 29 11:42:04 1997 Jim Wilson <wilson@cygnus.com>
683
684 * varasm.c (mark_constants): Don't look inside CONST_DOUBLEs.
685
686 Fri Aug 29 09:33:20 1997 Philipp Thomas (kthomas@lxi165.gwdg.de)
687
688 * dwarf2out.c (build_abbrev_table): Use xrealloc, not xmalloc
689 to reallocate abbrev_die_table.
690
691 Thu Aug 28 15:14:46 1997 Jim Wilson <wilson@cygnus.com>
692
693 * m68k/m68k.md (iorsi_zexthi_ashl16): Disable.
694
695 1997-08-27 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
696
697 * Makefile.in (config.status): Depend on version.c
698
699 * expr.h (insn_gen_function): Reenable prototype.
700
701 * expr.c (move_by_pieces_1, clear_by_pieces_1): Fix prototype of
702 first parameter.
703
704 Thu Aug 28 13:01:43 1997 Jim Wilson <wilson@cygnus.com>
705
706 * i386.c (ix86_expand_epilogue): Emit blockage instruction when pic.
707
708 Thu Aug 28 07:03:15 1997 Jeffrey A Law (law@cygnus.com)
709
710 * version.c: Bump for latest snapshot.
711
712 * bc-optab.c: Conditionally include stdlib.h.
713 (free): Provide a declaration if NEED_DECLARATION_FREE.
714 * tree.c (free): Provide a declaration if NEED_DECLARATION_FREE.
715 * rtl.h (free): Remove declaration.
716 * tree.h (free): Remvoe declaration.
717
718 * configure: Rebuilt.
719
720 Wed Aug 27 21:32:20 1997 Jeffrey A Law (law@cygnus.com)
721
722 * flags.h (flag_move_all_movables): Declare.
723 (flag_reduce_all_givs): Likewise.
724 * loop.c (move_movables): Handle flag_move_all_movables.
725 (strength_reduce): Handle flag_reduce_all_givs.
726 * toplev.c (flag_move_all_movables): Define.
727 (flag_reduce_all_givs): Likewise.
728 (f_options): Add -fmove-all-movables and -freduce-all-givs.
729 * invoke.texi: Document new options, including alias stuff that
730 wasn't included last time.
731
732 Wed Aug 27 18:08:51 1997 Bob Manson (manson@cygnus.com)
733
734 * t-h8300: Use TARGET_LIBGCC2_CFLAGS instead of LIBGCC2_CFLAGS.
735 * t-mn10200: Ditto.
736 * t-vxsparc: Ditto.
737 * t-vxworks68: Ditto.
738 * t-vxworks960: Ditto.
739 * t-vx29k: Ditto.
740
741 Wed Aug 27 16:35:29 1997 Richard Henderson <rth@cygnus.com>
742
743 * alpha/xm-alpha.h (alloca): Define alloca to builtin_alloca for GNUC
744 if not already defined, and USE_C_ALLOCA not defined.
745
746 Wed Aug 27 16:08:43 1997 Jim Wilson <wilson@cygnus.com>
747
748 * config.guess: Replace with script that uses ../config.guess.
749
750 * config/alpha/elf.h (DEFAULT_VTABLE_THUNKS): New. Defined as 1
751 if USE_GNULIBC_1 is not defined.
752
753 Wed Aug 27 15:49:12 1997 Richard Henderson <rth@cygnus.com>
754
755 * alpha/elf.h (LINK_SPEC): Conditionalize on USE_GNULIBC_1.
756 * config.guess: Recognize alpha-linux-gnulibc1.
757 * configure.in (alpha-*-linux-gnulibc1): New target.
758 (alpha-*-linux-gnu*): Don't build crtbegin/end.
759
760 Wed Aug 27 11:52:58 1997 Jim Wilson <wilson@cygnus.com>
761
762 * m68k.md (iorsi3_internal): Readd ! TARGET_5200 check lost in
763 last change.
764
765 Wed Aug 27 01:56:18 1997 Doug Evans <dje@seba.cygnus.com>
766
767 * loop.c (combine_movables): Earlier insns don't match later ones.
768
769 Wed Aug 27 01:24:25 1997 H.J. Lu (hjl@gnu.ai.mit.edu)
770
771 * config/linux.h (CC1_SPEC): Define it only if not defined.
772
773 * config/m68k/linux.h (CC1_SPEC): Undefine it before include
774 <linux.h>
775
776 * config/linux.h (DEFAULT_VTABLE_THUNKS): New. Defined as 1 if
777 USE_GNULIBC_1 is not defined.
778
779 * config/rs6000/linux.h (DEFAULT_VTABLE_THUNKS): New. Defined as 1.
780
781 * config/sparc/linux.h (DEFAULT_VTABLE_THUNKS): New. Defined
782 as 1 if USE_GNULIBC_1 is not defined.
783
784 Wed Aug 27 00:49:14 1997 Jeffrey A Law (law@cygnus.com)
785
786 * reorg.c (dbr_schedule): Allow current_function_return_rtx
787 to be something other than a REG.
788 * function.c (expand_function_end): Fix current_function_return_rtx
789 if it was a pseudo.
790
791 * t-freebsd (USER_H): Include EXTRA_HEADERS and LANG_EXTRA_HEADERS.
792 * x-netbsd: Likewise
793 * x-dgux (USER_H): Include EXTRA_HEADERS and LANG_EXTRA_HEADERS
794 (INSTALL_HEADERS): Delete.
795 * x-dguxbcs: Likewise.
796 * x-hp3bsd44: Likewise
797 * x-pa: Likewise.
798
799 Wed Aug 27 00:30:00 1997 Bernd Schmidt <crux@pool.informatik.rwth-aachen.de>
800
801 * i386.md (pop): pop increments the stack pointer.
802 (prologue_set_stack_ptr): New pattern.
803 * i386.c (ix86_expand_prologue): Use prologue_set_stack_ptr
804 instead of subsi3.
805
806 Tue Aug 26 18:50:32 1997 Jim Wilson <wilson@cygnus.com>
807
808 * reload.c (find_reloads, case '0'): Reject matching a non-offsettable
809 address where an offsettable address is required.
810
811 Tue Aug 26 17:54:56 1997 Michael P. Hayes (michaelh@ongaonga.chch.cri.nz>
812
813 * loop.c (check_final_value): Don't miss a biv increment in a
814 parallel.
815
816 Tue Aug 26 12:03:49 1997 Jim Wilson (wilson@cygnus.com)
817
818 * dwarfout.c (dwarfout_file_scope_decl, case TYPE_DECL): Check
819 TYPE_DECL_IS_STUB instead of DECL_NAME.
820
821 Mon Aug 25 23:27:10 1997 H.J. Lu (hjl@gnu.ai.mit.edu)
822
823 * objc/Make-lang.in ($(OBJC_O)): Also depend on cc1obj.
824
825 Mon Aug 25 23:27:10 1997 Jim Meyering <meyering@eng.ascend.com>
826
827 * objc/Make-lang.in ($(OBJC_O)): Also depend on $(GCC_PASSES).
828
829 Mon Aug 25 13:12:24 1997 Jeffrey A Law (law@cygnus.com)
830
831 * haifa-sched.c (find_pre_sched_live): Remove #if 0 code.
832 (find_post_sched_live): Likewise.
833
834 * haifa-sched.c (schedule_block): Remove old code to get arguments
835 from hard regs into pseudos early.
836
837 Mon Aug 25 08:55:00 1997 Jeffrey A Law (law@cygnus.com)
838
839 * version.c: Bump for new snapshot.
840
841 * local-alloc.c (update_equiv_regs): All the target to reject
842 promotion of some REG_EQUAL to REG_EQUIV notes.
843 * pa.h (DONT_RECORD_EQUIVALENCE): Define.
844
845 * pa.c (secondary_reload_class): (mem (mem ... )) does not need
846 secondary reloads.
847
848 * pa.c (hppa_builtin_saveregs): Emit a blockage insn after the
849 store of the argument registers.
850
851 Mon Aug 25 08:39:02 1997 Craig Burley (burley@gnu.ai.mit.edu)
852
853 * fold-const.c (multiple_of_p): New function.
854 (fold): Turn some cases of *_DIV_EXPR into EXACT_DIV_EXPR.
855
856 Mon Aug 25 01:47:41 1997 Jeffrey A Law (law@cygnus.com)
857
858 * expr.h (insn_gen_function): Temporarily remove prototype.
859
860 Sun Aug 24 17:22:21 1997 Jim Wilson <wilson@cygnus.com>
861
862 * Makefile.in (install-info): Don't cd into srcdir. Add srcdir to
863 filenames. Use sed to extract base filename for install.
864
865 Sat Aug 23 18:19:40 1997 John F. Carr <jfc@mit.edu>
866
867 * unroll.c (find_splittable_givs): Only share if two givs have the
868 same add and multiply values.
869
870 Sat Aug 23 14:36:27 1997 Jim Wilson <wilson@cygnus.com>
871
872 * m68k/next.h (GO_IF_INDEXABLE_BASE): Fix typo in undef.
873 * m68k/m68kemb.h (LIB_SPEC): Add missing comment end before it.
874
875 Sat Aug 23 00:18:22 1997 Jeffrey A Law (law@cygnus.com)
876
877 * pa.c (pa_reorg): Always put begin_brtab and end_brtab insns
878 around branch tables.
879 * pa.md (begin_brtab, end_brtab): Only emit the .begin_brtab
880 and .end_brtab directives if TARGET_GAS.
881
882 Fri Aug 22 14:05:55 1997 Jim Wilson <wilson@cygnus.com>
883
884 * alias.c (true_dependence): Pass x_addr not x to varies.
885
886 * acconfig.h (NEED_DECLARATION_CALLOC): Add.
887 * configure.in: Add GCC_NEED_DECLARATION call for calloc.
888 * rs6000/xm-rs6000.h (malloc, realloc, calloc, free): Delete
889 declarations.
890 * config.in, configure: Regenerate.
891
892 Thu Aug 21 23:52:16 1997 John F. Carr <jfc@mit.edu>
893
894 * alias.c (find_base_value): Improve handling of PLUS, MINUS, and
895 LO_SUM.
896 (record_set): Handle LO_SUM like PLUS.
897 (init_alias_analysis): When following chains of base addresses,
898 do not stop on reaching a hard register.
899
900 Thu Aug 21 20:17:37 1997 Jeffrey A Law (law@cygnus.com)
901
902 * version.c: Bump for new snapshot.
903
904 Thu Aug 21 17:28:00 1997 Jim Wilson <wilson@cygnus.com>
905
906 * alpha.h (ARCH_ASM_FILE_START): Define.
907 (ASM_FILE_START): Use ARCH_ASM_FILE_START.
908 * osf12.h, osf2or3.h (ARCH_ASM_FILE_START): Redefine to null string.
909
910 Thu Aug 21 10:22:19 1997 Jeffrey A Law (law@cygnus.com)
911
912 * Makefile.in (install-common): Put gcov comment at start of line.
913
914 Wed Aug 20 22:47:33 1997 Jeffrey A Law (law@cygnus.com)
915
916 * alias.c (init_alias_analysis): When simplifying the reg_base_value
917 array, simplify entries for hard registers too.
918
919 Wed Aug 20 12:35:47 1997 Dave Love <d.love@dl.ac.uk>
920
921 * dwarf2.h (enum dwarf_call_frame_info): Remove trailing comma from
922 list.
923
924 Wed Aug 20 11:58:33 1997 Jim Wilson <wilson@cygnus.com>
925
926 * stmt.c (start_cleanup_deferal, end_cleanup_deferal): Test
927 block_stack before dereferencing it.
928
929 Wed Aug 20 11:57:11 1997 Michael Meissner <meissner@cygnus.com>
930
931 * rs6000.h (ISSUE_RATE): Define instead of MACHINE_issue_rate.
932
933 Tue Aug 19 17:10:56 1997 Jason Merrill <jason@yorick.cygnus.com>
934
935 * cplus-dem.c: Add 'extern' to prepends_underscore.
936
937 Tue Aug 19 09:34:57 1997 Jeffrey A Law (law@cygnus.com)
938
939 * haifa-sched.c (ISSUE_RATE): Renamed from MACHINE_issue_rate.
940 (get_issue_rate): Delete.
941 * pa.h (ISSUE_RATE): Define.
942
943 * configure.in: Turn on haifa by default for the PA.
944 * configure: Rebuilt.
945 * pa.c (override_options): Accept -mschedule=7200 option.
946 (pa_adjust_cost): No longer need to scale costs for newer
947 processors.
948 * pa.h (enum processor_type): Add PROCESSOR_7200.
949 * pa.md: Revamp scheduling parameters to work better with
950 haifa. Add scheduling parameters for the 7200.
951
952 * haifa-sched.c (move_insn): Reemit notes for SCHED_GROUP_P
953 insns too.
954 (schedule_block): When adjusting basic_block_{head,end}, account
955 for movement of SCHED_GROUP_P insns too.
956
957 * haifa-sched.c (debug_dependencies): Fix thinko.
958
959 * Makefile.in (EXPECT, RUNTEST, RUNTESTFLAGS): Define.
960 (site.exp, check, check-g++, check-gcc): New targets.
961
962 * haifa-sched.c: Make lots of variables static.
963
964 Tue Aug 19 07:18:34 1997 H.J. Lu (hjl@gnu.ai.mit.edu)
965
966 * expr.h, real.h: Finish prototyping.
967
968 Mon Aug 18 21:49:02 1997 Jim Wilson <wilson@cygnus.com>
969
970 * reload.c (find_reloads): Add code to convert RELOAD_FOR_OPADDR_ADDR
971 reloads to RELOAD_FOR_OPERAND_ADDRESS reloads.
972 * reload1.c: Undo bugfix from Aug 11.
973
974 Mon Aug 18 17:39:02 1997 Mike Meissner <meissner@cygnus.com>
975
976 * configure.in ({powerpc,rs6000}*-*-*, --with-cpu): Remove single
977 quotes around the name.
978 * configure: Regenerate.
979
980 Mon Aug 18 13:46:47 1997 Jim Wilson <wilson@cygnus.com>
981
982 * Makefile.in (stmp-multilib-sub): Fix typo in last change.
983
984 Thu Aug 7 10:33:13 1997 Manfred Hollstein <manfred@s-direktnet.de>
985
986 * Makefile.in (sub-makes): Pass the current value of LANGUAGES down
987 to sub-makes to avoid building more passes than the user might have
988 requested on the command line.
989
990 Sun Aug 17 15:42:17 1997 Dave Love (d.love@dl.ac.uk)
991
992 * configure.in: Expurgate `broken_install' (install is
993 autoconfed).
994
995 * configure.lang: Substitute autoconfed ${INSTALL} (not currently
996 relevant).
997
998 Sat Aug 16 01:08:12 1997 Jeffrey A Law (law@cygnus.com)
999
1000 * loop.c (is_power_of_2, is_conditional_branch): Delete unused
1001 functions and declarations.
1002 (analyze_loop_iterations): Use condjump_p.
1003 (insert_bct): Likewise. Use exact_log2.
1004
1005 Fri Aug 15 23:48:32 1997 Jeffrey A Law (law@cygnus.com)
1006
1007 * haifa-sched.c (find_post_sched_live): Call FREE_REG_SET as needed.
1008 (schedule_region): Likewise.
1009 (schedule_insns): Likewise.
1010
1011 * PROJECTS: Update with Haifa stuff.
1012
1013 Fri Aug 15 12:49:56 1997 Jeffrey A Law (law@cygnus.com)
1014
1015 * version.c: Change the version string to look like:
1016 egcs-2.90.00 970814 (gcc2-970802 experimental).
1017
1018 * loop.c (is_conditional_branch): Make definition match declaration.
1019
1020 * gcc.c: Take out experimental snapshot warning message.
1021
1022 Fri Aug 15 13:43:39 1997 Michael Meissner <meissner@cygnus.com>
1023
1024 * haifa-sched.c (debug_dependencies): Use GET_NOTE_INSN_NAME to
1025 print out the names of the notes. Print out the name of the insn
1026 that is not a note, and not an {,CALL_,JUMP_}INSN.
1027
1028 Wed Aug 13 01:03:37 1997 Doug Evans <dje@canuck.cygnus.com>
1029
1030 * configure.in (haifa configury): Fix typo.
1031 * configure: Regenerate.
1032
1033 Tue Aug 12 10:20:36 1997 Jeffrey A Law (law@cygnus.com)
1034
1035 * version.c: Bump version to "gcc-3.0.0 970802 experimental".
1036
1037 * gcc.info*: Rebuilt.
1038
1039 * COPYING.g77, README.g77: New files.
1040 * real.c (ereal_unto_float, ereal_unto_double): New functions.
1041 * real.h (ereal_unto_float, ereal_unto_double): Declare them.
1042 (REAL_VALUE_UNTO_TARGET_DOUBLE, REAL_VALUE_UNTO_TARGET_SINGLE): Define.
1043
1044 Mon Aug 11 14:50:55 1997 Jeffrey A Law (law@cygnus.com)
1045
1046 * Integrate Haifa instruction scheduler.
1047 * Makefile.in (ALL_CFLAGS): Add SCHED_CFLAGS. Prefix all references
1048 to sched with $(SCHED_CFLAGS.
1049 * configure.in: Handle --enable-haifa.
1050 * configure: Rebuilt.
1051 * flags.h: Add new flags for haifa instruction scheduler.
1052 * genattrtab.c (expand_units): For haifa, don't subtract one
1053 when computing blockage.
1054 * toplev.h (flag_schedule_interblock): Haifa scheduler flag.
1055 (flag_schedule_speculative): Ditto.
1056 (flag_schedule_speculative_load): Ditto.
1057 (flag_schedule_speculative_load_dangerous): Ditto.
1058 (flag_schedule_reverse_before_reload): Ditto.
1059 (flag_schedule_reverse_after_reload): Ditto.
1060 (flag_branch_on_count_reg): Ditto.
1061 (f_options): Add Haifa switches.
1062 (main): Turn off some Haifa options if appropriate macro is
1063 defined. Process Haifa switches.
1064 * unroll.c (iteration_info): No longer static, since Haifa
1065 scheduler uses it.
1066 (unroll_loop): Inform HAIFA scheduler about loop unrolling factor.
1067 * unroll.c (unroll_loop): Set loop_unroll_iter, loop_start_value.
1068 * loop.h (loop_unroll_factor, loop_number): Add HAIFA decls.
1069 * loop.h (loop_initial_value,loop_unroll_iter): New globals.
1070 * loop.c (loop_optimize): If HAIFA is defined, allocate additional
1071 storage for the Haifa scheduler.
1072 (mark_loop_jump): If HAIFA defined, set LABEL_OUTSIDE_LOOP_P and
1073 LABEL_NEXTREF.
1074 (strength_reduce): If HAIFA and HAVE_decrement_and_branch_on_count
1075 are defined, call analyze_loop_iterations and insert_bct to use
1076 countdown loops.
1077 (record_giv): Refine test for jumps out of loops if HAIFA is
1078 defined.
1079 (analyze_loop_iterations): New function to identify if we can use
1080 a countdown loop.
1081 (insert_bct): Insert countdown loop.
1082 (instrument_loop_bct): Low level code to insert countdown loop.
1083 (loop_number): Calculate UID of loop.
1084 (indirect_jump_in_function_p): Return true if an indirect jump is
1085 in the function.
1086 (is_power_of_2): Return true if value is a power of 2.
1087 (is_conditional_branch): Return true if insn is a conditional
1088 jump.
1089 (fix_bct_param): Process -fbct-{min,max}-N switches.
1090 (check_bct_param): Return true if loop should be instrumented.
1091 * loop.c (loop_initial_value,loop_unroll_iter): New globals.
1092 (loop_optimize): Initialize.
1093 (get_condition_for_loop): Ditto.
1094 * loop.c (strength_reduce): Inside of code that uses #ifdef
1095 HAVE_decrement_and_branch_on_count code, test it to make sure the
1096 condition is true.
1097 (instrument_loop_bct): Ditto.
1098 * haifa-sched.c: New file.
1099
1100
1101 * Integrate regmove pass.
1102 * Makefile.in (OBJS): Add regmove.o
1103 (regmove.o): Add dependencies.
1104 * flow.c (find_use_as_address): No longer static.
1105 * rtl.h (find_use_as_address): Declare.
1106 * toplev.c (regmove_dump, flag_regmove): Define.
1107 (f_options): Add -fregmove.
1108 (regmove_dump_file, regmove_time): Define.
1109 (fatal_insn): Close the regmove dump file.
1110 (compile_file): Initialize regmove_time; open/close the regmove dump
1111 file as needed. Print regmove time as needed.
1112 (rest_of_compilation): Run regmove pass if requested, dump
1113 RTL after regmove if requested.
1114 (main): If -O2 or more, turn on regmove. Handle dump switches.
1115 * regmove.c: New file.
1116
1117 Mon Aug 11 14:15:02 1997 Jeffrey A Law (law@cygnus.com)
1118
1119 * Integrate tlink patch from jason@cygnus.com
1120 * gcc.c (SWITCH_TAKES_ARG): Add 'V', 'B' and 'b'.
1121 (process_command): Increment n_switches for them. Don't discard
1122 their args. Validate them.
1123 (main): Escape " marks when creating COLLECT_GCC_OPTIONS.
1124 From Rohan Lenard.
1125 (process_command): Set include_prefixes from COMPILER_PATH.
1126 (main): Set COLLECT_GCC_OPTIONS sooner.
1127 * confiugre.in: Link ../ld/ld.new to collect-ld rather than real-ld.
1128 * tlink.c, hash.c, hash.h: New files.
1129 * Makefile.in (USE_COLLECT2): Always use collect2.
1130 (collect2): Depend on and link in hash.o and tlink.o.
1131 (tlink.o, hash.o): Add dependencies.
1132
1133 Mon Aug 11 10:04:49 1997 Jeffrey A Law (law@cygnus.com)
1134
1135 * Integrate alias analysis changes from jfc@mit.edu
1136 * Makefile.in (OBJS): Add alias.o
1137 (alias.o): Add dependencies.
1138 * alias.c: New file.
1139 * sched.c: Remove alias analysis code. It lives in alias.c now.
1140 (sched_analyze_2): Add new arguments to true_dependence.
1141 (schedule_insns): Always call init_alias_analysis.
1142 * calls.c (expand_call): Note calls to malloc, calloc, and realloc;
1143 mark return value from such functions as a pointer and keep track of
1144 them for alias analysis. If a return value from a function is a
1145 pointer, mark it as such.
1146 * combine.c (distribute_notes): Handle REG_NOALIAS.
1147 * cse.c (struct write_data): Delete. No longer needed.
1148 (invalidate): Don't call set_nonvarying_address_components anymore.
1149 Use true_dependence to decide if an entry should be removed from
1150 the hash table.
1151 (invalidate_memory): Remove WRITES argument, simplify appropriately.
1152 Fix all callers.
1153 (note_mem_written): Similarly for WRITE_PTR argument.
1154 (invalidate_from_clobbers): Similarly for W argument.
1155 (invalidate_for_call): Remove memory elements from the hash table.
1156 (refers_to_mem_p, cse_rtx_addr_varies_p): Deleted.
1157 (cse_rtx_varies_p): New function. Derived from old
1158 cse_rtx_addr_varies_p.
1159 (cse_insn): Remove WRITES_MEMORY and INIT variables and all references.
1160 Don't call note_mem_written anymore. Stack pushes invalidate the stack
1161 pointer if PUSH_ROUNDING is defined. No longer need to call
1162 cse_rtx_addr_varies_p to decide if a MEM should be invalidated.
1163 (skipped_writes_memory): Remove variable.
1164 (invalidate_skipped_set): Simplify and wewrite to use invalidate_memory.
1165 (invalidate_skipped_block): Simplify for new alias analysis code.
1166 (cse_set_around_loop): Likewise.
1167 (cse_main): Call init_alias_analysis.
1168 * flags.h (flag_alias_check, flag_argument_noalias): Declare.
1169 * toplev.c (flag_alias_check, flag_argument_noalias): Define.
1170 (f_options): Add new alias checking arguments.
1171 (main): Set flag_alias_check when optimizing.
1172 * local_alloc (validate_equiv_mem_from_store): Add new arguments
1173 to true_dependence.
1174 (memref_referenced_p): Likewise.
1175 * loop.c (NUM_STORES): Increase to 30.
1176 (prescan_loop): Only non-constant calls set unknown_address_altered.
1177 (invariant_p): Add new arguments to true_dependence.
1178 (record_giv): Initialize unrolled and shared fields.
1179 (emit_iv_add_mult): Call record_base_value as needed.
1180 * loop.h (struct induction): Add unrolled and shared fields.
1181 * unroll.c (unroll_loop): Call record_base_value as needed.
1182 (copy_loop_body): Likewise.
1183 (final_biv_value): Likewise.
1184 (final_giv_value): Likewise.
1185 (find_splittable_regs): Likewise. Only create one new pseudo
1186 if we have multiple address GIVs that were combined with the same
1187 dst_reg GIV. Note when a new register is created due to unrolling.
1188 * rtl.c (reg_note_name): Add REG_NOALIAS.
1189 * rtl.h (enum reg_note): Similarly.
1190 (rtx_varies_p, may_trap_p, side_effects_p): Declare.
1191 (volatile_refs_p, volatile_insn_p, remove_note): Likewise.
1192 (note_stores, refers_to_regno_p, reg_overlap_mentioned_p): Likewise.
1193 (true_dependence, read_dependence, anti_dependence): Likewise.
1194 (output_dependence, init_alias_analysis, end_alias_analysis): Likewise.
1195 (mark_user_reg, mark_reg_pointer): Likewise.
1196
1197
1198 * Integrate reload bugfix from Wilon which enables the PA port
1199 to bootstrap again.
1200 * reload1.c (reload): Sum needs for both OPADDR_ADDR and and
1201 OPERAND_ADDRESS when computing how many registers an insn needs.
1202 (reload_reg_free_p): OPADDR_ADDR and OPERAND_ADDRESS reloads do
1203 conflict.
1204 (reload_reg_free_before_p): Treat OPERAND_ADDRESS reloads just like
1205 OPADDR_ADDR reload.
1206 (reload_reg_reaches_end_p): For RELOAD_FOR_OPADDR_ADDR insns, registers
1207 in reload_reg_use_in_op_addr do not reach the end.
1208 do not reach the end.
1209 (reloads_conflict): RELOAD_FOR_OPADDR_ADDR conflicts with
1210 RELOAD_FOR_OPERAND_ADDRESS.
1211
1212 Sun Aug 10 12:00:20 1997 Jeffrey A Law (law@cygnus.com)
1213
1214 * egcs project officially starts.
1215