OSDN Git Service

Fix m68k-hp-hpux8 problem for Manfred Holstein.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 Mon Sep  8 18:26:35 1997  Jim Wilson  <wilson@cygnus.com>
2
3         * m68k.h (MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): In MOTOROLA
4         cases, add %# and %/, and add : to make them into extended asms.
5
6 Sun Sep  7 23:57:50 1997  Weiwen Liu  <liu@hepunix.physics.yale.edu>
7
8         * alias.c (init_alias_analysis): Clean up incompatible pointer
9         type warning in bzero.
10         * regmove.c (regmove_optimize): Ditto.
11         * haifa-sched.c (find_rgns): Ditto.
12
13         * haifa-sched.c (print_value): Clean up ptr->int cast
14         warnings.
15
16 Sun Sep  7 23:18:32 1997  Fred Fish  <fnf@ninemoons.com>
17
18         * INSTALL: Change 'amigados' to 'amigaos' to match current usage.
19         * install.texi (Configurations): Ditto.
20         * config.sub: Ditto.
21
22 Sun Sep  7 22:56:56 1997  Weiwen Liu  (liu@hepvms.physics.yale.edu)
23
24         * Makefile.in (sdbout.o): Depend on insn-config.h.
25
26 Sun Sep  7 18:44:50 1997  Jim Wilson  <wilson@cygnus.com>
27
28         * m68k/m68k.h (TARGET_SWITCHES): For 68000, 68302, subtract MASK_68881.
29         For 68303, 68332, cpu32, subtract MASK_68040_ONLY.
30
31 Sun Sep  7 18:30:46 1997  Jason Merrill  <jason@yorick.cygnus.com>
32
33         * dwarf2out.c (dwarf2out_frame_debug): Assume that in a PARALLEL
34         prologue insn, only the first elt is significant.
35         (output_call_frame_info): For exception handling, always use 4-byte
36         fields as specified by the dwarf2 spec.
37         Don't skip trivial FDEs.
38
39 Sun Sep  7 14:19:39 1997  Jeffrey A Law  (law@cygnus.com)
40
41         * version.c: Bump for snapshot.
42
43 Sun Sep  7 14:17:36 1997  Torbjorn Granlund  (tege@pdc.kth.se)
44
45         * expmed.c (expand_divmod): Make op1_is_pow2 depend on unsignedp
46         for negative constants.  Promote EXACT_DIV_EXPR to TRUNC_DIV_EXPR
47         when op1_is_pow2.
48
49 Sun Sep  7 13:46:46 1997  Jeffrey A Law  (law@cygnus.com)
50
51         * final.c (shorten_branches): During first pass, assume worst
52         possible alignment for ADDR_VEC and ADDR_VEC_DIFF insns.
53
54         * Makefile.in (distclean): Remove various things left around
55         by running the testsuite.
56
57 Sun Sep  7 13:16:06 1997  Manfred Hollstein  <manfred@s-direktnet.de>
58
59         * configure.in (out_file): Emit definition to config.status in order
60         to have a defined value for configure.lang.
61         * configure: Re-built.
62
63 Sun Sep  7 09:59:08 1997  Jan-Jaap van der Heijden (J.J.vanderHeijden@student.utwente.nl)
64
65         * configure.in: Make symlink to as-new rather than as.new.  Similarly
66         for ld-new.
67         * configure: Rebuilt.
68
69 Fri Sep  5 16:54:55 1997  Jim Wilson  <wilson@cygnus.com>
70
71         * profile.c (output_func_start_profiler): Set DECL_EXTERNAL to zero.
72
73 Fri Sep  5 16:16:44 1997  Christian Kuehnke  <Christian.Kuehnke@arbi.Informatik.Uni-Oldenburg.DE>
74
75         * sparc/sparc.md: Add ultrasparc scheduling support.
76         * sparc/sparc.h (RTX_COSTS): For MULT give v9 a cost of 25 insns.
77
78 Fri Sep  5 14:04:59 1997  Philippe De Muyter  <phdm@info.ucl.ac.be>
79
80         * integrate.c (save_for_inline_copying): Use 0, not NULL_PTR,
81         as initial value for real_label_map.
82         (copy_for_inline): Likewise.
83
84 Fri Sep  5 13:36:44 1997  J"orn Rennecke <amylaar@cygnus.co.uk>
85
86         * sched.c (update_flow_info) When looking if to set found_split_dest
87         or found_orig_dest, look at all parts of a PARALLEL.
88         * haifa-sched.c (update_flow_info): Likewise.
89
90 Fri Sep  5 10:08:44 1997  Jeffrey A Law  (law@cygnus.com)
91
92         * v850: New directory for v850 port.
93         * v850/lib1funcs.asm: New file.
94         * t-v850, v850.c, v850.h, v850.md, xm-v850.h: New files.
95         * ginclude/va-v850.h: New file.
96         * ginclude/varargs.h, ginclude/stdarg.h: Include va-mn10200.h.
97         * configure.in (mn10200-*-*): New target.
98         * configure: Rebuilt.
99         * config.sub: Handle v850-elf.
100         * Makefile.in (USER_H): Add va-mn10200.h. 
101         * invoke.texi: Document v850 stuff.
102
103 Fri Sep  5 09:37:50 1997  Jim Wilson  (wilson@cygnus.com)
104
105         * sdbout.c (plain_type_1, case ARRAY_TYPE): Verify that TYPE_DOMAIN
106         has integer TYPE_{MAX,MIN}_VALUE before using them.
107
108         * m68k/m68k.h (MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Add
109         __HPUX_ASM__ versions.
110
111 Fri Sep  5 09:08:44 1997  Jeffrey A Law  (law@cygnus.com)
112
113         * install.sh: Delete duplicate install script.
114
115 Thu Sep  4 23:14:27 1997  Stan Cox  (coxs@dg-rtp.dg.com)
116
117         * reg-stack.c (subst_stack_regs): Pop the stack register for a
118         computed goto which sets the same stack register.
119
120         * reg-stack.c (compare_for_stack_reg): Swap only if the source and
121         destination are both on the regstack.
122         (subst_stack_regs_pat): Put the destination at the top of the regstack.
123
124 Thu Sep  4 15:02:27 1997  Jim Wilson  <wilson@cygnus.com>
125
126         * mips.md (nonlocal_goto_receiver): Define.
127
128         * profile.c (output_arc_profiler): Check next_insert_after for non
129         NULL before deferencing it.
130
131         * i386/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define to -fPIC.
132
133 Thu Sep  4 14:51:57 1997  Jeffrey A Law  (law@cygnus.com)
134
135         * i386.h (CPP_CPU_DEFAULT): Avoid using #elif.
136
137 Thu Sep  4 15:01:49 1997  Michael Meissner  <meissner@cygnus.com>
138
139         * toplev.c (rest_of_compilation): For passes starting with
140         flow_analysis, use print_rtl_with_bb instead of print_rtl.
141
142         * print-rtl.c (print_rtl_single): Print a single rtl value to a
143         file.
144
145         * flow.c (print_rtl_with_bb): Print which insns start and end
146         basic blocks.  For the start of a basic block, also print the live
147         information.
148
149 Thu Sep  4 11:51:43 1997  Jim Wilson  <wilson@cygnus.com>
150
151         * toplev.c (main): Change #elif to #else/#ifdef
152
153         * tlink.c: Include ctype.h.
154         * ginclude/va-mips.h: Add _VA_MIPS_H_ENUM ifdef/define/endif.
155
156 Thu Sep  4 11:17:16 1997  Mikeael Meissner  (meissner@cygnus.com)
157
158         * bitmap.c: Conditionally include stdlib.h.
159         (free): Provide a declaration if NEED_DECLARATION_FREE.
160
161 Thu Sep  4 09:58:53 1997  Joel Sherrill  (joel@OARcorp.com)
162
163         * i960/i960.h: Added default for SUBTARGET_SWITCHES macro.
164
165 Thu Sep  4 09:53:20 1997  Jim Wilson  (wilson@cygnus.com)
166
167         * profile.c (output_arc_profiler): Verify next_insert_after is an
168         INSN before and after skipping a stack pop.
169
170 Thu Sep  4 07:39:19 1997  J"orn Rennecke <amylaar@cygnus.co.uk>
171
172         * final.c (shorten_branches): Don't count the lengths of deleted
173         instructions.
174
175 Thu Sep  4 09:43:01 1997  Jeffrey A Law  (law@cygnus.com)
176
177         * version.c: Bump for snapshot.
178
179 Thu Sep  4 11:04:21 1997  Michael Meissner  <meissner@cygnus.com>
180
181         * bitmap.h (EXECUTE_IF_AND_IN_BITMAP): New macro, to iterate over
182         two bitmaps ANDed together.
183         (bitmap_print): Declare.
184
185         * bitmap.c (function_obstack): Don't declare any more.
186         (bitmap_obstack): Obstack for allocating links from.
187         (bitmap_obstack_init): New static to say whether to initialize
188         bitmap_obstack.
189         (bitmap_element_allocate): Use bitmap_obstack to allocate from.
190         (bitmap_release_memory): Free all memory allocated from
191         bitmap_obstack.
192
193         * basic-block.h (EXECUTE_IF_AND_IN_REG_SET): New macro, invoke
194         EXECUTE_IF_AND_IN_BITMAP.
195
196 Wed Sep  3 10:39:42 1997  Jim Wilson  <wilson@cygnus.com>
197
198         * alias.c (true_dependence): Address with AND can alias scalars.
199         (anti_dependence, output_dependence): Likewise.
200         
201         * alias.c (true_dependence): Test x for BLKmode, in addition to mem.
202
203 Wed Sep  3 09:28:50 CDT 1997  Joel Sherrill (joel@OARcorp.com)
204
205         * i386/go32-rtems.h, i386/rtems.h, i960/rtems.h, m68k/rtems.h,
206           mips/rtems64.h, pa/rtems.h, rs6000/rtems.h, sh/rtems.h,
207           sparc/rtems.h (subtarget_switches): Removed SUBTARGET_SWITCHES
208           definitions.  Use -qrtems instead of -mrtems.
209
210 Wed Sep  3 09:05:41 1997  Robert Lipe  (robert@dgii.com)
211
212         * xm-sco5.h (sys_siglist): Define.
213         (SYS_SIGLIST_DECLARED): Likewise.
214
215 Tue Sep  2 23:33:33 1997  Jeffrey A Law  (law@cygnus.com)
216
217         * expr.c (convert_move): Handle truncation from TQFmode to QFmode.
218
219 Wed Sep  3 02:09:30 1997  Torbjorn Granlund  <tege@pdc.kth..se>
220
221         * except.c (eh_outer_context): Expand masking operation using
222         expand_binop.
223
224 Tue Sep  2 18:09:39 1997  Jim Wilson  <wilson@cygnus.com>
225
226         * alpha.md (floatdisf2-1): New pattern.
227
228 Tue Sep  2 18:41:55 1997  Jeffrey A Law  (law@cygnus.com)
229
230         * xm-svr4.h (SYS_SIGLIST_DECLARED): Define.
231         * xm-news.h (SYS_SIGLIST_DECLARED): Likewise.
232         * xm-sysv4.h (SYS_SIGLIST_DECLARED): Likewise.
233         * gcc.texi: Note that if you define sys_siglist that you should
234         also define SYS_SIGLIST_DECLARED.
235
236         * mn10200.h (INITIALIZE_TRAMPOLINE): PC relative instructions
237         are relative to the next instruction, not the current instruction.
238
239 Tue Sep  2 14:22:43 1997  Jim Wilson  <wilson@cygnus.com>
240
241         * local-alloc.c (contains_replace_regs): New function.
242         (update_equiv_regs): When adding a REG_EQUIV note for a set of a MEM,
243         verify that there is no existing REG_EQUIV note, and add a call to
244         contains_place_regs.
245
246 Tue Sep  2 12:48:11 1997  H.J. Lu  (hjl@gnu.ai.mit.edu)
247
248         * config/alpha/elf.h (CPP_PREDEFINES): Add -D__PIC__ -D__pic__.
249         (STARTFILE_SPEC): Always use crtbegin.o%s
250         (ENDFILE_SPEC): Always use crtend.o%s.
251
252 Tue Sep  2 12:00:36 1997  Jim Wilson  <wilson@cygnus.com>
253
254         * alpha/alpha.h (PREFERRED_RELOAD_CLASS): Return NO_REGS if NO_REGS
255         is passed in.
256         * emit-rtl.c (gen_lowpart_common): Add code to convert CONST_INT to
257         SFmode for 64 bit hosts.
258         
259 Tue Sep  2 13:42:38 1997  Paul N. Hilfinger  <hilfingr@CS.Berkeley.EDU>
260
261         * fixincludes: Permits spaces between # and define.  Discard C++
262         comments in sys/pci.h on HP/UX 10.20.
263
264 Mon Sep  1 22:13:18 1997  Jeffrey A Law  (law@cygnus.com)
265
266         * version.c: Bump for snapshot.
267
268         * pa.c (restore_unscaled_index_insn_codes): New function.
269         (record_unscaled_index_insn_codes): Likewise.
270         (output_function_prologue): Call restore_unscaled_index_insn_codes.
271         (output_function_epilogue): Free memory for unscaled_index_insn_codes.
272         (pa_reorg): Call record_unscaled_index_insn_codes.
273
274         * haifa-sched.c (move_insn): Handle notes correctly for insns
275         with SCHED_GROUP_P set.
276         
277 Mon Sep  1 16:58:57 1997  H.J. Lu  (hjl@gnu.ai.mit.edu)
278
279         * alpha/xm-linux.h (USE_BFD): Undef before define.
280
281 Mon Sep  1 16:25:34 1997  Jim Wilson  <wilson@cygnus.com>
282
283         * cse.c (cse_insn): Don't record BLKmode values.
284
285 Mon Sep  1 11:25:47 1997  Stephen Williams  (steve@icarus.icarus.com)
286
287         * i960.h (LINK_SPEC): Handle "-mjX" and "-mrp" switches.
288
289 Mon Sep  1 08:29:46 1997  Jeffrey A Law  (law@cygnus.com)
290
291         * cccp.c (sys_errlist): Remove special 4.4bsd declaration.
292         * collect2.c (sys_errlist): Likewise.
293         * cpplib.c (sys_errlist): Likewise.
294         * gcc.c (sys_errlist): Likewise.
295         * protoize (sys_errlist): Likewise.
296         * configure.in: Check for strerror.
297         * xm-freebsd.h (HAVE_STRERROR): Remove definition.
298         * xm-gnu.h (HAVE_STRERROR): Likewise.
299         * xm-linux.h (HAVE_STRERROR): Likewise.
300         * xm-netbsd.h (HAVE_STRERROR): Likewise.
301         * xm-bsd386.h (HAVE_STRERROR): Likewise.
302         * xm-cygwin32.h (HAVE_STRERROR): Likewise.
303         * xm-dos.h (HAVE_STRERROR): Likewise.
304         * xm-mingw32.h (HAVE_STRERROR): Likewise.
305         * xm-pa.h (HAVE_STRERROR): Likewise.
306         * xm-papro.h (HAVE_STRERROR): Likewise.
307         * xm-sysv4.h (HAVE_STRERROR): Likewise.
308         * configure, config.in: Rebuilt.
309
310         * Makefile.in: Add several missing "else true" clauses.
311
312         * collect2.c: Change DONT_DECLARE_SYS_SIGLIST to SYS_SIGLIST_DECLARED.
313         * mips-tfile.c: Likewise.
314         * gcc.texi: DONT_DECLARE_SYS_SIGLIST: Remove docs.
315         * xm-linux.h (DONT_DECLARE_SYS_SIGLIST): Delete definition.
316         * xm-freebsd.h, xm-bsd386.h, xm-sysv4.h, xm-sol2.h: Likewise.
317         * configure.in: Check for sys_siglist declaration.
318         * configure, config.in: Rebuilt.
319
320 Mon Sep  1 08:04:07 1997  Joel Sherrill (joel@OARcorp.com)
321
322         * i386/go32-rtems.h, i386/rtems.h, i960/rtems.h, 
323         m68k/rtems.h, mips/rtems64.h, pa/rtems.h, rs6000/rtems.h,
324         sparc/rtems.h (subtarget_switches): Added -mrtems as a switch.
325         * i960/i960.h: Added SUBTARGET_SWITCHES macro.
326         * rs6000/sysv4.h (extra_subtarget_switches): Added new
327         macro EXTRA_SUBTARGET_SWITCHES.
328         * configure.in (sh*-*-rtems*): New target.
329         * sh/rtems.h: New file.
330         * sh/sh.h: Added SUBTARGET_SWITCHES macro.
331         * configure: Rebuilt.
332
333 Sat Aug 30 22:54:26 1997  Jim Wilson  <wilson@cygnus.com>
334
335         * unroll.c (calculate_giv_inc): Handle increment with code PLUS.
336
337 Sat Aug 30 10:49:46 1997  David Edelsohn  <edelsohn@mhpcc.edu>
338
339         * rs6000.md: Make DF fused-add operations pay attention to
340         -mno-fused-add.
341
342 Fri Aug 29 19:19:54 1997  Jim Wilson  <wilson@cygnus.com>
343
344         * i386/xm-sysv4.h (DONT_DECLARE_SYS_SIGLIST): Define.
345
346 Fri Aug 29 16:13:51 1997  Jeffrey A Law  (law@cygnus.com)
347
348         * pa.md (reload_peepholes): Make sure operand is a REG before
349         examining REGNO.  Allow general registers too.
350
351 Fri Aug 29 11:42:04 1997  Jim Wilson  <wilson@cygnus.com>
352
353         * varasm.c (mark_constants): Don't look inside CONST_DOUBLEs.
354
355 Fri Aug 29 09:33:20 1997  Philipp Thomas  (kthomas@lxi165.gwdg.de)
356
357         * dwarf2out.c (build_abbrev_table): Use xrealloc, not xmalloc
358         to reallocate abbrev_die_table.
359
360 Thu Aug 28 15:14:46 1997  Jim Wilson  <wilson@cygnus.com>
361
362         * m68k/m68k.md (iorsi_zexthi_ashl16): Disable.
363
364 1997-08-27  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
365
366         * Makefile.in (config.status): Depend on version.c
367
368         * expr.h (insn_gen_function): Reenable prototype.
369
370         * expr.c (move_by_pieces_1, clear_by_pieces_1): Fix prototype of
371         first parameter.
372
373 Thu Aug 28 13:01:43 1997  Jim Wilson  <wilson@cygnus.com>
374
375         * i386.c (ix86_expand_epilogue): Emit blockage instruction when pic.
376
377 Thu Aug 28 07:03:15 1997  Jeffrey A Law  (law@cygnus.com)
378
379         * version.c: Bump for latest snapshot.
380
381         * bc-optab.c: Conditionally include stdlib.h.
382         (free): Provide a declaration if NEED_DECLARATION_FREE.
383         * tree.c (free): Provide a declaration if NEED_DECLARATION_FREE.
384         * rtl.h (free): Remove declaration.
385         * tree.h (free): Remvoe declaration.
386
387         * configure: Rebuilt.
388
389 Wed Aug 27 21:32:20 1997  Jeffrey A Law  (law@cygnus.com)
390
391         * flags.h (flag_move_all_movables): Declare.
392         (flag_reduce_all_givs): Likewise.
393         * loop.c (move_movables): Handle flag_move_all_movables.
394         (strength_reduce): Handle flag_reduce_all_givs.
395         * toplev.c (flag_move_all_movables): Define.
396         (flag_reduce_all_givs): Likewise.
397         (f_options): Add -fmove-all-movables and -freduce-all-givs.
398         * invoke.texi: Document new options, including alias stuff that
399         wasn't included last time.
400
401 Wed Aug 27 18:08:51 1997  Bob Manson  (manson@cygnus.com)
402
403         * t-h8300: Use TARGET_LIBGCC2_CFLAGS instead of LIBGCC2_CFLAGS.
404         * t-mn10200: Ditto.
405         * t-vxsparc: Ditto.
406         * t-vxworks68: Ditto.
407         * t-vxworks960: Ditto.
408         * t-vx29k: Ditto.
409
410 Wed Aug 27 16:35:29 1997  Richard Henderson  <rth@cygnus.com>
411
412         * alpha/xm-alpha.h (alloca): Define alloca to builtin_alloca for GNUC
413         if not already defined, and USE_C_ALLOCA not defined.
414
415 Wed Aug 27 16:08:43 1997  Jim Wilson  <wilson@cygnus.com>
416
417         * config.guess: Replace with script that uses ../config.guess.
418
419         * config/alpha/elf.h (DEFAULT_VTABLE_THUNKS): New. Defined as 1
420         if USE_GNULIBC_1 is not defined.
421
422 Wed Aug 27 15:49:12 1997  Richard Henderson  <rth@cygnus.com>
423
424         * alpha/elf.h (LINK_SPEC): Conditionalize on USE_GNULIBC_1.
425         * config.guess: Recognize alpha-linux-gnulibc1.
426         * configure.in (alpha-*-linux-gnulibc1): New target.
427         (alpha-*-linux-gnu*): Don't build crtbegin/end.
428
429 Wed Aug 27 11:52:58 1997  Jim Wilson  <wilson@cygnus.com>
430
431         * m68k.md (iorsi3_internal): Readd ! TARGET_5200 check lost in
432         last change.
433
434 Wed Aug 27 01:56:18 1997  Doug Evans  <dje@seba.cygnus.com>
435
436         * loop.c (combine_movables): Earlier insns don't match later ones.
437
438 Wed Aug 27 01:24:25 1997  H.J. Lu   (hjl@gnu.ai.mit.edu)
439
440         * config/linux.h (CC1_SPEC): Define it only if not defined.
441
442         * config/m68k/linux.h (CC1_SPEC): Undefine it before include
443         <linux.h>
444
445         * config/linux.h (DEFAULT_VTABLE_THUNKS): New. Defined as 1 if
446         USE_GNULIBC_1 is not defined.
447
448         * config/rs6000/linux.h (DEFAULT_VTABLE_THUNKS): New.  Defined as 1.
449
450         * config/sparc/linux.h (DEFAULT_VTABLE_THUNKS): New. Defined
451         as 1 if USE_GNULIBC_1 is not defined.
452
453 Wed Aug 27 00:49:14 1997  Jeffrey A Law  (law@cygnus.com)
454
455         * reorg.c (dbr_schedule): Allow current_function_return_rtx
456         to be something other than a REG.
457         * function.c (expand_function_end): Fix current_function_return_rtx
458         if it was a pseudo.
459
460         * t-freebsd (USER_H): Include EXTRA_HEADERS and LANG_EXTRA_HEADERS.
461         * x-netbsd: Likewise
462         * x-dgux (USER_H): Include EXTRA_HEADERS and LANG_EXTRA_HEADERS
463         (INSTALL_HEADERS): Delete.
464         * x-dguxbcs: Likewise.
465         * x-hp3bsd44: Likewise
466         * x-pa: Likewise.
467
468 Wed Aug 27 00:30:00 1997  Bernd Schmidt  <crux@pool.informatik.rwth-aachen.de>
469
470         * i386.md (pop): pop increments the stack pointer.
471         (prologue_set_stack_ptr): New pattern.
472         * i386.c (ix86_expand_prologue): Use prologue_set_stack_ptr
473         instead of subsi3.
474
475 Tue Aug 26 18:50:32 1997  Jim Wilson  <wilson@cygnus.com>
476
477         * reload.c (find_reloads, case '0'): Reject matching a non-offsettable
478         address where an offsettable address is required.
479
480 Tue Aug 26 17:54:56 1997  Michael P. Hayes  (michaelh@ongaonga.chch.cri.nz>
481
482         * loop.c (check_final_value): Don't miss a biv increment in a
483         parallel.
484
485 Tue Aug 26 12:03:49 1997  Jim Wilson  (wilson@cygnus.com)
486
487         * dwarfout.c (dwarfout_file_scope_decl, case TYPE_DECL): Check
488         TYPE_DECL_IS_STUB instead of DECL_NAME.
489
490 Mon Aug 25 23:27:10 1997  H.J. Lu  (hjl@gnu.ai.mit.edu)
491
492         * objc/Make-lang.in ($(OBJC_O)): Also depend on cc1obj.
493
494 Mon Aug 25 23:27:10 1997  Jim Meyering <meyering@eng.ascend.com>
495
496         * objc/Make-lang.in ($(OBJC_O)): Also depend on $(GCC_PASSES).
497
498 Mon Aug 25 13:12:24 1997  Jeffrey A Law  (law@cygnus.com)
499
500         * haifa-sched.c (find_pre_sched_live): Remove #if 0 code.
501         (find_post_sched_live): Likewise.
502
503         * haifa-sched.c (schedule_block): Remove old code to get arguments
504         from hard regs into pseudos early.
505
506 Mon Aug 25 08:55:00 1997  Jeffrey A Law  (law@cygnus.com)
507
508         * version.c: Bump for new snapshot.
509
510         * local-alloc.c (update_equiv_regs): All the target to reject
511         promotion of some REG_EQUAL to REG_EQUIV notes.
512         * pa.h (DONT_RECORD_EQUIVALENCE): Define.
513
514         * pa.c (secondary_reload_class): (mem (mem ... )) does not need
515         secondary reloads.
516
517         * pa.c (hppa_builtin_saveregs): Emit a blockage insn after the
518         store of the argument registers.
519
520 Mon Aug 25 08:39:02 1997  Craig Burley  (burley@gnu.ai.mit.edu)
521
522         * fold-const.c (multiple_of_p): New function.
523         (fold): Turn some cases of *_DIV_EXPR into EXACT_DIV_EXPR.
524
525 Mon Aug 25 01:47:41 1997  Jeffrey A Law  (law@cygnus.com)
526
527         * expr.h (insn_gen_function): Temporarily remove prototype.
528
529 Sun Aug 24 17:22:21 1997  Jim Wilson  <wilson@cygnus.com>
530
531         * Makefile.in (install-info): Don't cd into srcdir.  Add srcdir to
532         filenames.  Use sed to extract base filename for install.
533
534 Sat Aug 23 18:19:40 1997  John F. Carr  <jfc@mit.edu>
535
536         * unroll.c (find_splittable_givs): Only share if two givs have the
537         same add and multiply values.
538
539 Sat Aug 23 14:36:27 1997  Jim Wilson  <wilson@cygnus.com>
540
541         * m68k/next.h (GO_IF_INDEXABLE_BASE): Fix typo in undef.
542         * m68k/m68kemb.h (LIB_SPEC): Add missing comment end before it.
543
544 Sat Aug 23 00:18:22 1997  Jeffrey A Law  (law@cygnus.com)
545
546         * pa.c (pa_reorg): Always put begin_brtab and end_brtab insns
547         around branch tables.
548         * pa.md (begin_brtab, end_brtab): Only emit the .begin_brtab
549         and .end_brtab directives if TARGET_GAS.
550
551 Fri Aug 22 14:05:55 1997  Jim Wilson  <wilson@cygnus.com>
552
553         * alias.c (true_dependence): Pass x_addr not x to varies.
554
555         * acconfig.h (NEED_DECLARATION_CALLOC): Add.
556         * configure.in: Add GCC_NEED_DECLARATION call for calloc.
557         * rs6000/xm-rs6000.h (malloc, realloc, calloc, free): Delete
558         declarations.
559         * config.in, configure: Regenerate.
560
561 Thu Aug 21 23:52:16 1997  John F. Carr  <jfc@mit.edu>
562
563         * alias.c (find_base_value): Improve handling of PLUS, MINUS, and
564         LO_SUM.
565         (record_set): Handle LO_SUM like PLUS.
566         (init_alias_analysis): When following chains of base addresses,
567         do not stop on reaching a hard register.
568
569 Thu Aug 21 20:17:37 1997  Jeffrey A Law  (law@cygnus.com)
570
571         * version.c: Bump for new snapshot.
572
573 Thu Aug 21 17:28:00 1997  Jim Wilson  <wilson@cygnus.com>
574
575         * alpha.h (ARCH_ASM_FILE_START): Define.
576         (ASM_FILE_START): Use ARCH_ASM_FILE_START.
577         * osf12.h, osf2or3.h (ARCH_ASM_FILE_START): Redefine to null string.
578
579 Thu Aug 21 10:22:19 1997  Jeffrey A Law  (law@cygnus.com)
580
581         * Makefile.in (install-common): Put gcov comment at start of line.
582
583 Wed Aug 20 22:47:33 1997  Jeffrey A Law  (law@cygnus.com)
584
585         * alias.c (init_alias_analysis): When simplifying the reg_base_value
586         array, simplify entries for hard registers too.
587
588 Wed Aug 20 12:35:47 1997  Dave Love  <d.love@dl.ac.uk>
589
590         * dwarf2.h (enum dwarf_call_frame_info): Remove trailing comma from
591         list.
592
593 Wed Aug 20 11:58:33 1997  Jim Wilson  <wilson@cygnus.com>
594
595         * stmt.c (start_cleanup_deferal, end_cleanup_deferal): Test
596         block_stack before dereferencing it.
597
598 Wed Aug 20 11:57:11 1997  Michael Meissner  <meissner@cygnus.com>
599
600         * rs6000.h (ISSUE_RATE): Define instead of MACHINE_issue_rate.
601
602 Tue Aug 19 17:10:56 1997  Jason Merrill  <jason@yorick.cygnus.com>
603
604         * cplus-dem.c: Add 'extern' to prepends_underscore.
605
606 Tue Aug 19 09:34:57 1997  Jeffrey A Law  (law@cygnus.com)
607
608         * haifa-sched.c (ISSUE_RATE): Renamed from MACHINE_issue_rate.
609         (get_issue_rate): Delete.
610         * pa.h (ISSUE_RATE): Define.
611
612         * configure.in: Turn on haifa by default for the PA.
613         * configure: Rebuilt.
614         * pa.c (override_options): Accept -mschedule=7200 option.
615         (pa_adjust_cost): No longer need to scale costs for newer
616         processors.
617         * pa.h (enum processor_type): Add PROCESSOR_7200.
618         * pa.md: Revamp scheduling parameters to work better with
619         haifa.  Add scheduling parameters for the 7200.
620
621         * haifa-sched.c (move_insn): Reemit notes for SCHED_GROUP_P
622         insns too.
623         (schedule_block): When adjusting basic_block_{head,end}, account
624         for movement of SCHED_GROUP_P insns too.
625
626         * haifa-sched.c (debug_dependencies): Fix thinko.
627
628         * Makefile.in (EXPECT, RUNTEST, RUNTESTFLAGS): Define.
629         (site.exp, check, check-g++, check-gcc): New targets.
630
631         * haifa-sched.c: Make lots of variables static.
632
633 Tue Aug 19 07:18:34 1997  H.J. Lu  (hjl@gnu.ai.mit.edu)
634
635         * expr.h, real.h: Finish prototyping.
636
637 Mon Aug 18 21:49:02 1997  Jim Wilson  <wilson@cygnus.com>
638
639         * reload.c (find_reloads): Add code to convert RELOAD_FOR_OPADDR_ADDR
640         reloads to RELOAD_FOR_OPERAND_ADDRESS reloads.
641         * reload1.c: Undo bugfix from Aug 11.
642
643 Mon Aug 18 17:39:02 1997  Mike Meissner  <meissner@cygnus.com>
644
645         * configure.in ({powerpc,rs6000}*-*-*, --with-cpu): Remove single
646         quotes around the name.
647         * configure: Regenerate.
648
649 Mon Aug 18 13:46:47 1997  Jim Wilson  <wilson@cygnus.com>
650
651         * Makefile.in (stmp-multilib-sub): Fix typo in last change.
652
653 Thu Aug  7 10:33:13 1997  Manfred Hollstein  <manfred@s-direktnet.de>
654
655         * Makefile.in (sub-makes): Pass the current value of LANGUAGES down
656         to sub-makes to avoid building more passes than the user might have
657         requested on the command line.
658
659 Sun Aug 17 15:42:17 1997  Dave Love  (d.love@dl.ac.uk)
660
661         * configure.in: Expurgate `broken_install' (install is
662         autoconfed).
663
664         * configure.lang: Substitute autoconfed ${INSTALL} (not currently
665         relevant).
666
667 Sat Aug 16 01:08:12 1997  Jeffrey A Law  (law@cygnus.com)
668
669         * loop.c (is_power_of_2, is_conditional_branch): Delete unused
670         functions and declarations.
671         (analyze_loop_iterations): Use condjump_p.
672         (insert_bct): Likewise.  Use exact_log2.
673         
674 Fri Aug 15 23:48:32 1997  Jeffrey A Law  (law@cygnus.com)
675
676         * haifa-sched.c (find_post_sched_live): Call FREE_REG_SET as needed.
677         (schedule_region): Likewise.
678         (schedule_insns): Likewise.
679
680         * PROJECTS: Update with Haifa stuff.
681
682 Fri Aug 15 12:49:56 1997  Jeffrey A Law  (law@cygnus.com)
683
684         * version.c: Change the version string to look like:
685         egcs-2.90.00 970814 (gcc2-970802 experimental).
686
687         * loop.c (is_conditional_branch): Make definition match declaration.
688
689         * gcc.c: Take out experimental snapshot warning message.
690
691 Fri Aug 15 13:43:39 1997  Michael Meissner  <meissner@cygnus.com>
692
693         * haifa-sched.c (debug_dependencies): Use GET_NOTE_INSN_NAME to
694         print out the names of the notes.  Print out the name of the insn
695         that is not a note, and not an {,CALL_,JUMP_}INSN.
696
697 Wed Aug 13 01:03:37 1997  Doug Evans  <dje@canuck.cygnus.com>
698
699         * configure.in (haifa configury): Fix typo.
700         * configure: Regenerate.
701
702 Tue Aug 12 10:20:36 1997  Jeffrey A Law  (law@cygnus.com)
703
704         * version.c: Bump version to "gcc-3.0.0 970802 experimental".
705
706         * gcc.info*: Rebuilt.
707
708         * COPYING.g77, README.g77: New files.
709         * real.c (ereal_unto_float, ereal_unto_double): New functions.
710         * real.h (ereal_unto_float, ereal_unto_double): Declare them.
711         (REAL_VALUE_UNTO_TARGET_DOUBLE, REAL_VALUE_UNTO_TARGET_SINGLE): Define.
712
713 Mon Aug 11 14:50:55 1997  Jeffrey A Law  (law@cygnus.com)
714
715         * Integrate Haifa instruction scheduler.
716         * Makefile.in (ALL_CFLAGS): Add SCHED_CFLAGS.  Prefix all references
717         to sched with $(SCHED_CFLAGS.
718         * configure.in: Handle --enable-haifa.
719         * configure: Rebuilt.
720         * flags.h: Add new flags for haifa instruction scheduler.
721         * genattrtab.c (expand_units): For haifa, don't subtract one
722         when computing blockage.
723         * toplev.h (flag_schedule_interblock): Haifa scheduler flag.
724         (flag_schedule_speculative): Ditto.
725         (flag_schedule_speculative_load): Ditto.
726         (flag_schedule_speculative_load_dangerous): Ditto.
727         (flag_schedule_reverse_before_reload): Ditto.
728         (flag_schedule_reverse_after_reload): Ditto.
729         (flag_branch_on_count_reg): Ditto.
730         (f_options): Add Haifa switches.
731         (main): Turn off some Haifa options if appropriate macro is
732         defined.  Process Haifa switches.
733         * unroll.c (iteration_info): No longer static, since Haifa
734         scheduler uses it.
735         (unroll_loop): Inform HAIFA scheduler about loop unrolling factor.
736         * unroll.c (unroll_loop): Set loop_unroll_iter, loop_start_value.
737         * loop.h (loop_unroll_factor, loop_number): Add HAIFA decls.
738         * loop.h (loop_initial_value,loop_unroll_iter): New globals.
739         * loop.c (loop_optimize): If HAIFA is defined, allocate additional
740         storage for the Haifa scheduler.
741         (mark_loop_jump): If HAIFA defined, set LABEL_OUTSIDE_LOOP_P and
742         LABEL_NEXTREF.
743         (strength_reduce): If HAIFA and HAVE_decrement_and_branch_on_count
744         are defined, call analyze_loop_iterations and insert_bct to use
745         countdown loops.
746         (record_giv): Refine test for jumps out of loops if HAIFA is
747         defined.
748         (analyze_loop_iterations): New function to identify if we can use
749         a countdown loop.
750         (insert_bct): Insert countdown loop.
751         (instrument_loop_bct): Low level code to insert countdown loop.
752         (loop_number): Calculate UID of loop.
753         (indirect_jump_in_function_p): Return true if an indirect jump is
754         in the function.
755         (is_power_of_2): Return true if value is a power of 2.
756         (is_conditional_branch): Return true if insn is a conditional
757         jump.
758         (fix_bct_param): Process -fbct-{min,max}-N switches.
759         (check_bct_param): Return true if loop should be instrumented.
760         * loop.c (loop_initial_value,loop_unroll_iter): New globals.
761         (loop_optimize): Initialize.
762         (get_condition_for_loop): Ditto.
763         * loop.c (strength_reduce): Inside of code that uses #ifdef
764         HAVE_decrement_and_branch_on_count code, test it to make sure the
765         condition is true.
766         (instrument_loop_bct): Ditto.
767         * haifa-sched.c: New file.
768         
769
770         * Integrate regmove pass.
771         * Makefile.in (OBJS): Add regmove.o
772         (regmove.o): Add dependencies.
773         * flow.c (find_use_as_address): No longer static.
774         * rtl.h (find_use_as_address): Declare.
775         * toplev.c (regmove_dump, flag_regmove): Define.
776         (f_options): Add -fregmove.
777         (regmove_dump_file, regmove_time): Define.
778         (fatal_insn): Close the regmove dump file.
779         (compile_file): Initialize regmove_time; open/close the regmove dump
780         file as needed.  Print regmove time as needed.
781         (rest_of_compilation): Run regmove pass if requested, dump
782         RTL after regmove if requested.
783         (main): If -O2 or more, turn on regmove.  Handle dump switches.
784         * regmove.c: New file.
785         
786 Mon Aug 11 14:15:02 1997  Jeffrey A Law  (law@cygnus.com)
787
788         * Integrate tlink patch from jason@cygnus.com
789         * gcc.c (SWITCH_TAKES_ARG): Add 'V', 'B' and 'b'.
790         (process_command): Increment n_switches for them.  Don't discard
791         their args.  Validate them.
792         (main): Escape " marks when creating COLLECT_GCC_OPTIONS.
793         From Rohan Lenard.
794         (process_command): Set include_prefixes from COMPILER_PATH.
795         (main): Set COLLECT_GCC_OPTIONS sooner.
796         * confiugre.in: Link ../ld/ld.new to collect-ld rather than real-ld.
797         * tlink.c, hash.c, hash.h: New files.
798         * Makefile.in (USE_COLLECT2): Always use collect2.
799         (collect2): Depend on and link in hash.o and tlink.o.
800         (tlink.o, hash.o): Add dependencies.
801
802 Mon Aug 11 10:04:49 1997  Jeffrey A Law  (law@cygnus.com)
803
804         * Integrate alias analysis changes from jfc@mit.edu
805         * Makefile.in (OBJS): Add alias.o
806         (alias.o): Add dependencies.
807         * alias.c: New file.
808         * sched.c: Remove alias analysis code.  It lives in alias.c now.
809         (sched_analyze_2): Add new arguments to true_dependence.
810         (schedule_insns): Always call init_alias_analysis.
811         * calls.c (expand_call): Note calls to malloc, calloc, and realloc;
812         mark return value from such functions as a pointer and keep track of
813         them for alias analysis.  If a return value from a function is a
814         pointer, mark it as such.
815         * combine.c (distribute_notes): Handle REG_NOALIAS.
816         * cse.c (struct write_data): Delete.  No longer needed.
817         (invalidate): Don't call set_nonvarying_address_components anymore.
818         Use true_dependence to decide if an entry should be removed from
819         the hash table.
820         (invalidate_memory): Remove WRITES argument, simplify appropriately.
821         Fix all callers.
822         (note_mem_written): Similarly for WRITE_PTR argument.
823         (invalidate_from_clobbers): Similarly for W argument.
824         (invalidate_for_call): Remove memory elements from the hash table.
825         (refers_to_mem_p, cse_rtx_addr_varies_p): Deleted.
826         (cse_rtx_varies_p): New function.  Derived from old
827         cse_rtx_addr_varies_p.
828         (cse_insn): Remove WRITES_MEMORY and INIT variables and all references.
829         Don't call note_mem_written anymore.  Stack pushes invalidate the stack
830         pointer if PUSH_ROUNDING is defined.  No longer need to call
831         cse_rtx_addr_varies_p to decide if a MEM should be invalidated.
832         (skipped_writes_memory): Remove variable.
833         (invalidate_skipped_set): Simplify and wewrite to use invalidate_memory.
834         (invalidate_skipped_block): Simplify for new alias analysis code.
835         (cse_set_around_loop): Likewise.
836         (cse_main): Call init_alias_analysis.
837         * flags.h (flag_alias_check, flag_argument_noalias): Declare.
838         * toplev.c (flag_alias_check, flag_argument_noalias): Define.
839         (f_options): Add new alias checking arguments.
840         (main): Set flag_alias_check when optimizing.
841         * local_alloc (validate_equiv_mem_from_store): Add new arguments
842         to true_dependence.
843         (memref_referenced_p): Likewise.
844         * loop.c (NUM_STORES): Increase to 30.
845         (prescan_loop): Only non-constant calls set unknown_address_altered.
846         (invariant_p): Add new arguments to true_dependence.
847         (record_giv): Initialize unrolled and shared fields.
848         (emit_iv_add_mult): Call record_base_value as needed.
849         * loop.h (struct induction): Add unrolled and shared fields.
850         * unroll.c  (unroll_loop): Call record_base_value as needed.
851         (copy_loop_body): Likewise.
852         (final_biv_value): Likewise.
853         (final_giv_value): Likewise.
854         (find_splittable_regs): Likewise.  Only create one new pseudo
855         if we have multiple address GIVs that were combined with the same
856         dst_reg GIV.  Note when a new register is created due to unrolling.
857         * rtl.c (reg_note_name): Add REG_NOALIAS.
858         * rtl.h (enum reg_note): Similarly.
859         (rtx_varies_p, may_trap_p, side_effects_p): Declare.
860         (volatile_refs_p, volatile_insn_p, remove_note): Likewise.
861         (note_stores, refers_to_regno_p, reg_overlap_mentioned_p): Likewise.
862         (true_dependence, read_dependence, anti_dependence): Likewise.
863         (output_dependence, init_alias_analysis, end_alias_analysis): Likewise.
864         (mark_user_reg, mark_reg_pointer): Likewise.
865
866
867         * Integrate reload bugfix from Wilon which enables the PA port
868         to bootstrap again.
869         * reload1.c (reload): Sum needs for both OPADDR_ADDR and and
870         OPERAND_ADDRESS when computing how many registers an insn needs.
871         (reload_reg_free_p): OPADDR_ADDR and OPERAND_ADDRESS reloads do
872         conflict.
873         (reload_reg_free_before_p): Treat OPERAND_ADDRESS reloads just like
874         OPADDR_ADDR reload.
875         (reload_reg_reaches_end_p): For RELOAD_FOR_OPADDR_ADDR insns, registers
876         in reload_reg_use_in_op_addr do not reach the end.
877         do not reach the end.
878         (reloads_conflict): RELOAD_FOR_OPADDR_ADDR conflicts with
879         RELOAD_FOR_OPERAND_ADDRESS.
880
881 Sun Aug 10 12:00:20 1997  Jeffrey A Law  (law@cygnus.com)
882
883         * egcs project officially starts.
884