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