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