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