1 Wed Aug 27 18:08:51 1997 Bob Manson (manson@cygnus.com)
3 * t-h8300: Use TARGET_LIBGCC2_CFLAGS instead of LIBGCC2_CFLAGS.
10 Wed Aug 27 16:35:29 1997 Richard Henderson <rth@cygnus.com>
12 * alpha/xm-alpha.h (alloca): Define alloca to builtin_alloca for GNUC
13 if not already defined, and USE_C_ALLOCA not defined.
15 Wed Aug 27 16:08:43 1997 Jim Wilson <wilson@cygnus.com>
17 * config.guess: Replace with script that uses ../config.guess.
19 * config/alpha/elf.h (DEFAULT_VTABLE_THUNKS): New. Defined as 1
20 if USE_GNULIBC_1 is not defined.
22 Wed Aug 27 15:49:12 1997 Richard Henderson <rth@cygnus.com>
24 * alpha/elf.h (LINK_SPEC): Conditionalize on USE_GNULIBC_1.
25 * config.guess: Recognize alpha-linux-gnulibc1.
26 * configure.in (alpha-*-linux-gnulibc1): New target.
27 (alpha-*-linux-gnu*): Don't build crtbegin/end.
29 Wed Aug 27 11:52:58 1997 Jim Wilson <wilson@cygnus.com>
31 * m68k.md (iorsi3_internal): Readd ! TARGET_5200 check lost in
34 Wed Aug 27 01:56:18 1997 Doug Evans <dje@seba.cygnus.com>
36 * loop.c (combine_movables): Earlier insns don't match later ones.
38 * c-decl.c (grokdeclarator): If array index or size calculations
39 overflow, issue an error.
40 * fold-const.c (int_const_binop): New static function.
41 (const_binop, size_binop): Call it.
43 Wed Aug 27 01:24:25 1997 H.J. Lu (hjl@gnu.ai.mit.edu)
45 * config/linux.h (CC1_SPEC): Define it only if not defined.
47 * config/m68k/linux.h (CC1_SPEC): Undefine it before include
50 * config/linux.h (DEFAULT_VTABLE_THUNKS): New. Defined as 1 if
51 USE_GNULIBC_1 is not defined.
53 * config/rs6000/linux.h (DEFAULT_VTABLE_THUNKS): New. Defined as 1.
55 * config/sparc/linux.h (DEFAULT_VTABLE_THUNKS): New. Defined
56 as 1 if USE_GNULIBC_1 is not defined.
58 Wed Aug 27 00:49:14 1997 Jeffrey A Law (law@cygnus.com)
60 * reorg.c (dbr_schedule): Allow current_function_return_rtx
61 to be something other than a REG.
62 * function.c (expand_function_end): Fix current_function_return_rtx
65 * t-freebsd (USER_H): Include EXTRA_HEADERS and LANG_EXTRA_HEADERS.
67 * x-dgux (USER_H): Include EXTRA_HEADERS and LANG_EXTRA_HEADERS
68 (INSTALL_HEADERS): Delete.
69 * x-dguxbcs: Likewise.
70 * x-hp3bsd44: Likewise
73 Wed Aug 27 00:30:00 1997 Bernd Schmidt <crux@pool.informatik.rwth-aachen.de>
75 * i386.md (pop): pop increments the stack pointer.
76 (prologue_set_stack_ptr): New pattern.
77 * i386.c (ix86_expand_prologue): Use prologue_set_stack_ptr
80 Tue Aug 26 18:50:32 1997 Jim Wilson <wilson@cygnus.com>
82 * reload.c (find_reloads, case '0'): Reject matching a non-offsettable
83 address where an offsettable address is required.
85 Tue Aug 26 17:54:56 1997 Michael P. Hayes (michaelh@ongaonga.chch.cri.nz>
87 * loop.c (check_final_value): Don't miss a biv increment in a
90 Tue Aug 26 12:03:49 1997 Jim Wilson (wilson@cygnus.com)
92 * dwarfout.c (dwarfout_file_scope_decl, case TYPE_DECL): Check
93 TYPE_DECL_IS_STUB instead of DECL_NAME.
95 Mon Aug 25 23:27:10 1997 H.J. Lu (hjl@gnu.ai.mit.edu)
97 * objc/Make-lang.in ($(OBJC_O)): Also depend on cc1obj.
99 Mon Aug 25 23:27:10 1997 Jim Meyering <meyering@eng.ascend.com>
101 * objc/Make-lang.in ($(OBJC_O)): Also depend on $(GCC_PASSES).
103 Mon Aug 25 13:12:24 1997 Jeffrey A Law (law@cygnus.com)
105 * haifa-sched.c (find_pre_sched_live): Remove #if 0 code.
106 (find_post_sched_live): Likewise.
108 * haifa-sched.c (schedule_block): Remove old code to get arguments
109 from hard regs into pseudos early.
111 Mon Aug 25 08:55:00 1997 Jeffrey A Law (law@cygnus.com)
113 * version.c: Bump for new snapshot.
115 * local-alloc.c (update_equiv_regs): All the target to reject
116 promotion of some REG_EQUAL to REG_EQUIV notes.
117 * pa.h (DONT_RECORD_EQUIVALENCE): Define.
119 * pa.c (secondary_reload_class): (mem (mem ... )) does not need
122 * pa.c (hppa_builtin_saveregs): Emit a blockage insn after the
123 store of the argument registers.
125 Mon Aug 25 08:39:02 1997 Craig Burley (burley@gnu.ai.mit.edu)
127 * fold-const.c (multiple_of_p): New function.
128 (fold): Turn some cases of *_DIV_EXPR into EXACT_DIV_EXPR.
130 Mon Aug 25 01:47:41 1997 Jeffrey A Law (law@cygnus.com)
132 * expr.h (insn_gen_function): Temporarily remove prototype.
134 Sun Aug 24 17:22:21 1997 Jim Wilson <wilson@cygnus.com>
136 * Makefile.in (install-info): Don't cd into srcdir. Add srcdir to
137 filenames. Use sed to extract base filename for install.
139 Sat Aug 23 18:19:40 1997 John F. Carr <jfc@mit.edu>
141 * unroll.c (find_splittable_givs): Only share if two givs have the
142 same add and multiply values.
144 Sat Aug 23 14:36:27 1997 Jim Wilson <wilson@cygnus.com>
146 * m68k/next.h (GO_IF_INDEXABLE_BASE): Fix typo in undef.
147 * m68k/m68kemb.h (LIB_SPEC): Add missing comment end before it.
149 Sat Aug 23 00:18:22 1997 Jeffrey A Law (law@cygnus.com)
151 * pa.c (pa_reorg): Always put begin_brtab and end_brtab insns
152 around branch tables.
153 * pa.md (begin_brtab, end_brtab): Only emit the .begin_brtab
154 and .end_brtab directives if TARGET_GAS.
156 Fri Aug 22 14:05:55 1997 Jim Wilson <wilson@cygnus.com>
158 * alias.c (true_dependence): Pass x_addr not x to varies.
160 * acconfig.h (NEED_DECLARATION_CALLOC): Add.
161 * configure.in: Add GCC_NEED_DECLARATION call for calloc.
162 * rs6000/xm-rs6000.h (malloc, realloc, calloc, free): Delete
164 * config.in, configure: Regenerate.
166 Thu Aug 21 23:52:16 1997 John F. Carr <jfc@mit.edu>
168 * alias.c (find_base_value): Improve handling of PLUS, MINUS, and
170 (record_set): Handle LO_SUM like PLUS.
171 (init_alias_analysis): When following chains of base addresses,
172 do not stop on reaching a hard register.
174 Thu Aug 21 20:17:37 1997 Jeffrey A Law (law@cygnus.com)
176 * version.c: Bump for new snapshot.
178 Thu Aug 21 17:28:00 1997 Jim Wilson <wilson@cygnus.com>
180 * alpha.h (ARCH_ASM_FILE_START): Define.
181 (ASM_FILE_START): Use ARCH_ASM_FILE_START.
182 * osf12.h, osf2or3.h (ARCH_ASM_FILE_START): Redefine to null string.
184 Thu Aug 21 10:22:19 1997 Jeffrey A Law (law@cygnus.com)
186 * Makefile.in (install-common): Put gcov comment at start of line.
188 Wed Aug 20 22:47:33 1997 Jeffrey A Law (law@cygnus.com)
190 * alias.c (init_alias_analysis): When simplifying the reg_base_value
191 array, simplify entries for hard registers too.
193 Wed Aug 20 12:35:47 1997 Dave Love <d.love@dl.ac.uk>
195 * dwarf2.h (enum dwarf_call_frame_info): Remove trailing comma from
198 Wed Aug 20 11:58:33 1997 Jim Wilson <wilson@cygnus.com>
200 * stmt.c (start_cleanup_deferal, end_cleanup_deferal): Test
201 block_stack before dereferencing it.
203 Wed Aug 20 11:57:11 1997 Michael Meissner <meissner@cygnus.com>
205 * rs6000.h (ISSUE_RATE): Define instead of MACHINE_issue_rate.
207 Tue Aug 19 17:10:56 1997 Jason Merrill <jason@yorick.cygnus.com>
209 * cplus-dem.c: Add 'extern' to prepends_underscore.
211 Tue Aug 19 09:34:57 1997 Jeffrey A Law (law@cygnus.com)
213 * haifa-sched.c (ISSUE_RATE): Renamed from MACHINE_issue_rate.
214 (get_issue_rate): Delete.
215 * pa.h (ISSUE_RATE): Define.
217 * configure.in: Turn on haifa by default for the PA.
218 * configure: Rebuilt.
219 * pa.c (override_options): Accept -mschedule=7200 option.
220 (pa_adjust_cost): No longer need to scale costs for newer
222 * pa.h (enum processor_type): Add PROCESSOR_7200.
223 * pa.md: Revamp scheduling parameters to work better with
224 haifa. Add scheduling parameters for the 7200.
226 * haifa-sched.c (move_insn): Reemit notes for SCHED_GROUP_P
228 (schedule_block): When adjusting basic_block_{head,end}, account
229 for movement of SCHED_GROUP_P insns too.
231 * haifa-sched.c (debug_dependencies): Fix thinko.
233 * Makefile.in (EXPECT, RUNTEST, RUNTESTFLAGS): Define.
234 (site.exp, check, check-g++, check-gcc): New targets.
236 * haifa-sched.c: Make lots of variables static.
238 Tue Aug 19 07:18:34 1997 H.J. Lu (hjl@gnu.ai.mit.edu)
240 * expr.h, real.h: Finish prototyping.
242 Mon Aug 18 21:49:02 1997 Jim Wilson <wilson@cygnus.com>
244 * reload.c (find_reloads): Add code to convert RELOAD_FOR_OPADDR_ADDR
245 reloads to RELOAD_FOR_OPERAND_ADDRESS reloads.
246 * reload1.c: Undo bugfix from Aug 11.
248 Mon Aug 18 17:39:02 1997 Mike Meissner <meissner@cygnus.com>
250 * configure.in ({powerpc,rs6000}*-*-*, --with-cpu): Remove single
251 quotes around the name.
252 * configure: Regenerate.
254 Mon Aug 18 13:46:47 1997 Jim Wilson <wilson@cygnus.com>
256 * Makefile.in (stmp-multilib-sub): Fix typo in last change.
258 Thu Aug 7 10:33:13 1997 Manfred Hollstein <manfred@s-direktnet.de>
260 * Makefile.in (sub-makes): Pass the current value of LANGUAGES down
261 to sub-makes to avoid building more passes than the user might have
262 requested on the command line.
264 Sun Aug 17 15:42:17 1997 Dave Love (d.love@dl.ac.uk)
266 * configure.in: Expurgate `broken_install' (install is
269 * configure.lang: Substitute autoconfed ${INSTALL} (not currently
272 Sat Aug 16 01:08:12 1997 Jeffrey A Law (law@cygnus.com)
274 * loop.c (is_power_of_2, is_conditional_branch): Delete unused
275 functions and declarations.
276 (analyze_loop_iterations): Use condjump_p.
277 (insert_bct): Likewise. Use exact_log2.
279 Fri Aug 15 23:48:32 1997 Jeffrey A Law (law@cygnus.com)
281 * haifa-sched.c (find_post_sched_live): Call FREE_REG_SET as needed.
282 (schedule_region): Likewise.
283 (schedule_insns): Likewise.
285 * PROJECTS: Update with Haifa stuff.
287 Fri Aug 15 12:49:56 1997 Jeffrey A Law (law@cygnus.com)
289 * version.c: Change the version string to look like:
290 egcs-2.90.00 970814 (gcc2-970802 experimental).
292 * loop.c (is_conditional_branch): Make definition match declaration.
294 * gcc.c: Take out experimental snapshot warning message.
296 Fri Aug 15 13:43:39 1997 Michael Meissner <meissner@cygnus.com>
298 * haifa-sched.c (debug_dependencies): Use GET_NOTE_INSN_NAME to
299 print out the names of the notes. Print out the name of the insn
300 that is not a note, and not an {,CALL_,JUMP_}INSN.
302 Wed Aug 13 01:03:37 1997 Doug Evans <dje@canuck.cygnus.com>
304 * configure.in (haifa configury): Fix typo.
305 * configure: Regenerate.
307 Tue Aug 12 10:20:36 1997 Jeffrey A Law (law@cygnus.com)
309 * version.c: Bump version to "gcc-3.0.0 970802 experimental".
311 * gcc.info*: Rebuilt.
313 * COPYING.g77, README.g77: New files.
314 * real.c (ereal_unto_float, ereal_unto_double): New functions.
315 * real.h (ereal_unto_float, ereal_unto_double): Declare them.
316 (REAL_VALUE_UNTO_TARGET_DOUBLE, REAL_VALUE_UNTO_TARGET_SINGLE): Define.
318 Mon Aug 11 14:50:55 1997 Jeffrey A Law (law@cygnus.com)
320 * Integrate Haifa instruction scheduler.
321 * Makefile.in (ALL_CFLAGS): Add SCHED_CFLAGS. Prefix all references
322 to sched with $(SCHED_CFLAGS.
323 * configure.in: Handle --enable-haifa.
324 * configure: Rebuilt.
325 * flags.h: Add new flags for haifa instruction scheduler.
326 * genattrtab.c (expand_units): For haifa, don't subtract one
327 when computing blockage.
328 * toplev.h (flag_schedule_interblock): Haifa scheduler flag.
329 (flag_schedule_speculative): Ditto.
330 (flag_schedule_speculative_load): Ditto.
331 (flag_schedule_speculative_load_dangerous): Ditto.
332 (flag_schedule_reverse_before_reload): Ditto.
333 (flag_schedule_reverse_after_reload): Ditto.
334 (flag_branch_on_count_reg): Ditto.
335 (f_options): Add Haifa switches.
336 (main): Turn off some Haifa options if appropriate macro is
337 defined. Process Haifa switches.
338 * unroll.c (iteration_info): No longer static, since Haifa
340 (unroll_loop): Inform HAIFA scheduler about loop unrolling factor.
341 * unroll.c (unroll_loop): Set loop_unroll_iter, loop_start_value.
342 * loop.h (loop_unroll_factor, loop_number): Add HAIFA decls.
343 * loop.h (loop_initial_value,loop_unroll_iter): New globals.
344 * loop.c (loop_optimize): If HAIFA is defined, allocate additional
345 storage for the Haifa scheduler.
346 (mark_loop_jump): If HAIFA defined, set LABEL_OUTSIDE_LOOP_P and
348 (strength_reduce): If HAIFA and HAVE_decrement_and_branch_on_count
349 are defined, call analyze_loop_iterations and insert_bct to use
351 (record_giv): Refine test for jumps out of loops if HAIFA is
353 (analyze_loop_iterations): New function to identify if we can use
355 (insert_bct): Insert countdown loop.
356 (instrument_loop_bct): Low level code to insert countdown loop.
357 (loop_number): Calculate UID of loop.
358 (indirect_jump_in_function_p): Return true if an indirect jump is
360 (is_power_of_2): Return true if value is a power of 2.
361 (is_conditional_branch): Return true if insn is a conditional
363 (fix_bct_param): Process -fbct-{min,max}-N switches.
364 (check_bct_param): Return true if loop should be instrumented.
365 * loop.c (loop_initial_value,loop_unroll_iter): New globals.
366 (loop_optimize): Initialize.
367 (get_condition_for_loop): Ditto.
368 * loop.c (strength_reduce): Inside of code that uses #ifdef
369 HAVE_decrement_and_branch_on_count code, test it to make sure the
371 (instrument_loop_bct): Ditto.
372 * haifa-sched.c: New file.
375 * Integrate regmove pass.
376 * Makefile.in (OBJS): Add regmove.o
377 (regmove.o): Add dependencies.
378 * flow.c (find_use_as_address): No longer static.
379 * rtl.h (find_use_as_address): Declare.
380 * toplev.c (regmove_dump, flag_regmove): Define.
381 (f_options): Add -fregmove.
382 (regmove_dump_file, regmove_time): Define.
383 (fatal_insn): Close the regmove dump file.
384 (compile_file): Initialize regmove_time; open/close the regmove dump
385 file as needed. Print regmove time as needed.
386 (rest_of_compilation): Run regmove pass if requested, dump
387 RTL after regmove if requested.
388 (main): If -O2 or more, turn on regmove. Handle dump switches.
389 * regmove.c: New file.
391 Mon Aug 11 14:15:02 1997 Jeffrey A Law (law@cygnus.com)
393 * Integrate tlink patch from jason@cygnus.com
394 * gcc.c (SWITCH_TAKES_ARG): Add 'V', 'B' and 'b'.
395 (process_command): Increment n_switches for them. Don't discard
396 their args. Validate them.
397 (main): Escape " marks when creating COLLECT_GCC_OPTIONS.
399 (process_command): Set include_prefixes from COMPILER_PATH.
400 (main): Set COLLECT_GCC_OPTIONS sooner.
401 * confiugre.in: Link ../ld/ld.new to collect-ld rather than real-ld.
402 * tlink.c, hash.c, hash.h: New files.
403 * Makefile.in (USE_COLLECT2): Always use collect2.
404 (collect2): Depend on and link in hash.o and tlink.o.
405 (tlink.o, hash.o): Add dependencies.
407 Mon Aug 11 10:04:49 1997 Jeffrey A Law (law@cygnus.com)
409 * Integrate alias analysis changes from jfc@mit.edu
410 * Makefile.in (OBJS): Add alias.o
411 (alias.o): Add dependencies.
413 * sched.c: Remove alias analysis code. It lives in alias.c now.
414 (sched_analyze_2): Add new arguments to true_dependence.
415 (schedule_insns): Always call init_alias_analysis.
416 * calls.c (expand_call): Note calls to malloc, calloc, and realloc;
417 mark return value from such functions as a pointer and keep track of
418 them for alias analysis. If a return value from a function is a
419 pointer, mark it as such.
420 * combine.c (distribute_notes): Handle REG_NOALIAS.
421 * cse.c (struct write_data): Delete. No longer needed.
422 (invalidate): Don't call set_nonvarying_address_components anymore.
423 Use true_dependence to decide if an entry should be removed from
425 (invalidate_memory): Remove WRITES argument, simplify appropriately.
427 (note_mem_written): Similarly for WRITE_PTR argument.
428 (invalidate_from_clobbers): Similarly for W argument.
429 (invalidate_for_call): Remove memory elements from the hash table.
430 (refers_to_mem_p, cse_rtx_addr_varies_p): Deleted.
431 (cse_rtx_varies_p): New function. Derived from old
432 cse_rtx_addr_varies_p.
433 (cse_insn): Remove WRITES_MEMORY and INIT variables and all references.
434 Don't call note_mem_written anymore. Stack pushes invalidate the stack
435 pointer if PUSH_ROUNDING is defined. No longer need to call
436 cse_rtx_addr_varies_p to decide if a MEM should be invalidated.
437 (skipped_writes_memory): Remove variable.
438 (invalidate_skipped_set): Simplify and wewrite to use invalidate_memory.
439 (invalidate_skipped_block): Simplify for new alias analysis code.
440 (cse_set_around_loop): Likewise.
441 (cse_main): Call init_alias_analysis.
442 * flags.h (flag_alias_check, flag_argument_noalias): Declare.
443 * toplev.c (flag_alias_check, flag_argument_noalias): Define.
444 (f_options): Add new alias checking arguments.
445 (main): Set flag_alias_check when optimizing.
446 * local_alloc (validate_equiv_mem_from_store): Add new arguments
448 (memref_referenced_p): Likewise.
449 * loop.c (NUM_STORES): Increase to 30.
450 (prescan_loop): Only non-constant calls set unknown_address_altered.
451 (invariant_p): Add new arguments to true_dependence.
452 (record_giv): Initialize unrolled and shared fields.
453 (emit_iv_add_mult): Call record_base_value as needed.
454 * loop.h (struct induction): Add unrolled and shared fields.
455 * unroll.c (unroll_loop): Call record_base_value as needed.
456 (copy_loop_body): Likewise.
457 (final_biv_value): Likewise.
458 (final_giv_value): Likewise.
459 (find_splittable_regs): Likewise. Only create one new pseudo
460 if we have multiple address GIVs that were combined with the same
461 dst_reg GIV. Note when a new register is created due to unrolling.
462 * rtl.c (reg_note_name): Add REG_NOALIAS.
463 * rtl.h (enum reg_note): Similarly.
464 (rtx_varies_p, may_trap_p, side_effects_p): Declare.
465 (volatile_refs_p, volatile_insn_p, remove_note): Likewise.
466 (note_stores, refers_to_regno_p, reg_overlap_mentioned_p): Likewise.
467 (true_dependence, read_dependence, anti_dependence): Likewise.
468 (output_dependence, init_alias_analysis, end_alias_analysis): Likewise.
469 (mark_user_reg, mark_reg_pointer): Likewise.
472 * Integrate reload bugfix from Wilon which enables the PA port
474 * reload1.c (reload): Sum needs for both OPADDR_ADDR and and
475 OPERAND_ADDRESS when computing how many registers an insn needs.
476 (reload_reg_free_p): OPADDR_ADDR and OPERAND_ADDRESS reloads do
478 (reload_reg_free_before_p): Treat OPERAND_ADDRESS reloads just like
480 (reload_reg_reaches_end_p): For RELOAD_FOR_OPADDR_ADDR insns, registers
481 in reload_reg_use_in_op_addr do not reach the end.
482 do not reach the end.
483 (reloads_conflict): RELOAD_FOR_OPADDR_ADDR conflicts with
484 RELOAD_FOR_OPERAND_ADDRESS.
486 Sun Aug 10 12:00:20 1997 Jeffrey A Law (law@cygnus.com)
488 * egcs project officially starts.