1 Tue Aug 26 17:54:56 1997 Michael P. Hayes (michaelh@ongaonga.chch.cri.nz>
3 * loop.c (check_final_value): Don't miss a biv increment in a
6 Tue Aug 26 12:03:49 1997 Jim Wilson (wilson@cygnus.com)
8 * dwarfout.c (dwarfout_file_scope_decl, case TYPE_DECL): Check
9 TYPE_DECL_IS_STUB instead of DECL_NAME.
11 Mon Aug 25 23:27:10 1997 H.J. Lu (hjl@gnu.ai.mit.edu)
13 * objc/Make-lang.in ($(OBJC_O)): Also depend on cc1obj.
15 Mon Aug 25 23:27:10 1997 Jim Meyering <meyering@eng.ascend.com>
17 * objc/Make-lang.in ($(OBJC_O)): Also depend on $(GCC_PASSES).
19 Mon Aug 25 13:12:24 1997 Jeffrey A Law (law@cygnus.com)
21 * haifa-sched.c (find_pre_sched_live): Remove #if 0 code.
22 (find_post_sched_live): Likewise.
24 * haifa-sched.c (schedule_block): Remove old code to get arguments
25 from hard regs into pseudos early.
27 Mon Aug 25 08:55:00 1997 Jeffrey A Law (law@cygnus.com)
29 * version.c: Bump for new snapshot.
31 * local-alloc.c (update_equiv_regs): All the target to reject
32 promotion of some REG_EQUAL to REG_EQUIV notes.
33 * pa.h (DONT_RECORD_EQUIVALENCE): Define.
35 * pa.c (secondary_reload_class): (mem (mem ... )) does not need
38 * pa.c (hppa_builtin_saveregs): Emit a blockage insn after the
39 store of the argument registers.
41 Mon Aug 25 08:39:02 1997 Craig Burley (burley@gnu.ai.mit.edu)
43 * fold-const.c (multiple_of_p): New function.
44 (fold): Turn some cases of *_DIV_EXPR into EXACT_DIV_EXPR.
46 Mon Aug 25 01:47:41 1997 Jeffrey A Law (law@cygnus.com)
48 * expr.h (insn_gen_function): Temporarily remove prototype.
50 Sun Aug 24 17:22:21 1997 Jim Wilson <wilson@cygnus.com>
52 * Makefile.in (install-info): Don't cd into srcdir. Add srcdir to
53 filenames. Use sed to extract base filename for install.
55 Sat Aug 23 18:19:40 1997 John F. Carr <jfc@mit.edu>
57 * unroll.c (find_splittable_givs): Only share if two givs have the
58 same add and multiply values.
60 Sat Aug 23 14:36:27 1997 Jim Wilson <wilson@cygnus.com>
62 * m68k/next.h (GO_IF_INDEXABLE_BASE): Fix typo in undef.
63 * m68k/m68kemb.h (LIB_SPEC): Add missing comment end before it.
65 Sat Aug 23 00:18:22 1997 Jeffrey A Law (law@cygnus.com)
67 * pa.c (pa_reorg): Always put begin_brtab and end_brtab insns
69 * pa.md (begin_brtab, end_brtab): Only emit the .begin_brtab
70 and .end_brtab directives if TARGET_GAS.
72 Fri Aug 22 14:05:55 1997 Jim Wilson <wilson@cygnus.com>
74 * alias.c (true_dependence): Pass x_addr not x to varies.
76 * acconfig.h (NEED_DECLARATION_CALLOC): Add.
77 * configure.in: Add GCC_NEED_DECLARATION call for calloc.
78 * rs6000/xm-rs6000.h (malloc, realloc, calloc, free): Delete
80 * config.in, configure: Regenerate.
82 Thu Aug 21 23:52:16 1997 John F. Carr <jfc@mit.edu>
84 * alias.c (find_base_value): Improve handling of PLUS, MINUS, and
86 (record_set): Handle LO_SUM like PLUS.
87 (init_alias_analysis): When following chains of base addresses,
88 do not stop on reaching a hard register.
90 Thu Aug 21 20:17:37 1997 Jeffrey A Law (law@cygnus.com)
92 * version.c: Bump for new snapshot.
94 Thu Aug 21 17:28:00 1997 Jim Wilson <wilson@cygnus.com>
96 * alpha.h (ARCH_ASM_FILE_START): Define.
97 (ASM_FILE_START): Use ARCH_ASM_FILE_START.
98 * osf12.h, osf2or3.h (ARCH_ASM_FILE_START): Redefine to null string.
100 Thu Aug 21 10:22:19 1997 Jeffrey A Law (law@cygnus.com)
102 * Makefile.in (install-common): Put gcov comment at start of line.
104 Wed Aug 20 22:47:33 1997 Jeffrey A Law (law@cygnus.com)
106 * alias.c (init_alias_analysis): When simplifying the reg_base_value
107 array, simplify entries for hard registers too.
109 Wed Aug 20 12:35:47 1997 Dave Love <d.love@dl.ac.uk>
111 * dwarf2.h (enum dwarf_call_frame_info): Remove trailing comma from
114 Wed Aug 20 11:58:33 1997 Jim Wilson <wilson@cygnus.com>
116 * stmt.c (start_cleanup_deferal, end_cleanup_deferal): Test
117 block_stack before dereferencing it.
119 Wed Aug 20 11:57:11 1997 Michael Meissner <meissner@cygnus.com>
121 * rs6000.h (ISSUE_RATE): Define instead of MACHINE_issue_rate.
123 Tue Aug 19 17:10:56 1997 Jason Merrill <jason@yorick.cygnus.com>
125 * cplus-dem.c: Add 'extern' to prepends_underscore.
127 Tue Aug 19 09:34:57 1997 Jeffrey A Law (law@cygnus.com)
129 * haifa-sched.c (ISSUE_RATE): Renamed from MACHINE_issue_rate.
130 (get_issue_rate): Delete.
131 * pa.h (ISSUE_RATE): Define.
133 * configure.in: Turn on haifa by default for the PA.
134 * configure: Rebuilt.
135 * pa.c (override_options): Accept -mschedule=7200 option.
136 (pa_adjust_cost): No longer need to scale costs for newer
138 * pa.h (enum processor_type): Add PROCESSOR_7200.
139 * pa.md: Revamp scheduling parameters to work better with
140 haifa. Add scheduling parameters for the 7200.
142 * haifa-sched.c (move_insn): Reemit notes for SCHED_GROUP_P
144 (schedule_block): When adjusting basic_block_{head,end}, account
145 for movement of SCHED_GROUP_P insns too.
147 * haifa-sched.c (debug_dependencies): Fix thinko.
149 * Makefile.in (EXPECT, RUNTEST, RUNTESTFLAGS): Define.
150 (site.exp, check, check-g++, check-gcc): New targets.
152 * haifa-sched.c: Make lots of variables static.
154 Tue Aug 19 07:18:34 1997 H.J. Lu (hjl@gnu.ai.mit.edu)
156 * expr.h, real.h: Finish prototyping.
158 Mon Aug 18 21:49:02 1997 Jim Wilson <wilson@cygnus.com>
160 * reload.c (find_reloads): Add code to convert RELOAD_FOR_OPADDR_ADDR
161 reloads to RELOAD_FOR_OPERAND_ADDRESS reloads.
162 * reload1.c: Undo bugfix from Aug 11.
164 Mon Aug 18 17:39:02 1997 Mike Meissner <meissner@cygnus.com>
166 * configure.in ({powerpc,rs6000}*-*-*, --with-cpu): Remove single
167 quotes around the name.
168 * configure: Regenerate.
170 Mon Aug 18 13:46:47 1997 Jim Wilson <wilson@cygnus.com>
172 * Makefile.in (stmp-multilib-sub): Fix typo in last change.
174 Thu Aug 7 10:33:13 1997 Manfred Hollstein <manfred@s-direktnet.de>
176 * Makefile.in (sub-makes): Pass the current value of LANGUAGES down
177 to sub-makes to avoid building more passes than the user might have
178 requested on the command line.
180 Sun Aug 17 15:42:17 1997 Dave Love (d.love@dl.ac.uk)
182 * configure.in: Expurgate `broken_install' (install is
185 * configure.lang: Substitute autoconfed ${INSTALL} (not currently
188 Sat Aug 16 01:08:12 1997 Jeffrey A Law (law@cygnus.com)
190 * loop.c (is_power_of_2, is_conditional_branch): Delete unused
191 functions and declarations.
192 (analyze_loop_iterations): Use condjump_p.
193 (insert_bct): Likewise. Use exact_log2.
195 Fri Aug 15 23:48:32 1997 Jeffrey A Law (law@cygnus.com)
197 * haifa-sched.c (find_post_sched_live): Call FREE_REG_SET as needed.
198 (schedule_region): Likewise.
199 (schedule_insns): Likewise.
201 * PROJECTS: Update with Haifa stuff.
203 Fri Aug 15 12:49:56 1997 Jeffrey A Law (law@cygnus.com)
205 * version.c: Change the version string to look like:
206 egcs-2.90.00 970814 (gcc2-970802 experimental).
208 * loop.c (is_conditional_branch): Make definition match declaration.
210 * gcc.c: Take out experimental snapshot warning message.
212 Fri Aug 15 13:43:39 1997 Michael Meissner <meissner@cygnus.com>
214 * haifa-sched.c (debug_dependencies): Use GET_NOTE_INSN_NAME to
215 print out the names of the notes. Print out the name of the insn
216 that is not a note, and not an {,CALL_,JUMP_}INSN.
218 Wed Aug 13 01:03:37 1997 Doug Evans <dje@canuck.cygnus.com>
220 * configure.in (haifa configury): Fix typo.
221 * configure: Regenerate.
223 Tue Aug 12 10:20:36 1997 Jeffrey A Law (law@cygnus.com)
225 * version.c: Bump version to "gcc-3.0.0 970802 experimental".
227 * gcc.info*: Rebuilt.
229 * COPYING.g77, README.g77: New files.
230 * real.c (ereal_unto_float, ereal_unto_double): New functions.
231 * real.h (ereal_unto_float, ereal_unto_double): Declare them.
232 (REAL_VALUE_UNTO_TARGET_DOUBLE, REAL_VALUE_UNTO_TARGET_SINGLE): Define.
234 Mon Aug 11 14:50:55 1997 Jeffrey A Law (law@cygnus.com)
236 * Integrate Haifa instruction scheduler.
237 * Makefile.in (ALL_CFLAGS): Add SCHED_CFLAGS. Prefix all references
238 to sched with $(SCHED_CFLAGS.
239 * configure.in: Handle --enable-haifa.
240 * configure: Rebuilt.
241 * flags.h: Add new flags for haifa instruction scheduler.
242 * genattrtab.c (expand_units): For haifa, don't subtract one
243 when computing blockage.
244 * toplev.h (flag_schedule_interblock): Haifa scheduler flag.
245 (flag_schedule_speculative): Ditto.
246 (flag_schedule_speculative_load): Ditto.
247 (flag_schedule_speculative_load_dangerous): Ditto.
248 (flag_schedule_reverse_before_reload): Ditto.
249 (flag_schedule_reverse_after_reload): Ditto.
250 (flag_branch_on_count_reg): Ditto.
251 (f_options): Add Haifa switches.
252 (main): Turn off some Haifa options if appropriate macro is
253 defined. Process Haifa switches.
254 * unroll.c (iteration_info): No longer static, since Haifa
256 (unroll_loop): Inform HAIFA scheduler about loop unrolling factor.
257 * unroll.c (unroll_loop): Set loop_unroll_iter, loop_start_value.
258 * loop.h (loop_unroll_factor, loop_number): Add HAIFA decls.
259 * loop.h (loop_initial_value,loop_unroll_iter): New globals.
260 * loop.c (loop_optimize): If HAIFA is defined, allocate additional
261 storage for the Haifa scheduler.
262 (mark_loop_jump): If HAIFA defined, set LABEL_OUTSIDE_LOOP_P and
264 (strength_reduce): If HAIFA and HAVE_decrement_and_branch_on_count
265 are defined, call analyze_loop_iterations and insert_bct to use
267 (record_giv): Refine test for jumps out of loops if HAIFA is
269 (analyze_loop_iterations): New function to identify if we can use
271 (insert_bct): Insert countdown loop.
272 (instrument_loop_bct): Low level code to insert countdown loop.
273 (loop_number): Calculate UID of loop.
274 (indirect_jump_in_function_p): Return true if an indirect jump is
276 (is_power_of_2): Return true if value is a power of 2.
277 (is_conditional_branch): Return true if insn is a conditional
279 (fix_bct_param): Process -fbct-{min,max}-N switches.
280 (check_bct_param): Return true if loop should be instrumented.
281 * loop.c (loop_initial_value,loop_unroll_iter): New globals.
282 (loop_optimize): Initialize.
283 (get_condition_for_loop): Ditto.
284 * loop.c (strength_reduce): Inside of code that uses #ifdef
285 HAVE_decrement_and_branch_on_count code, test it to make sure the
287 (instrument_loop_bct): Ditto.
288 * haifa-sched.c: New file.
291 * Integrate regmove pass.
292 * Makefile.in (OBJS): Add regmove.o
293 (regmove.o): Add dependencies.
294 * flow.c (find_use_as_address): No longer static.
295 * rtl.h (find_use_as_address): Declare.
296 * toplev.c (regmove_dump, flag_regmove): Define.
297 (f_options): Add -fregmove.
298 (regmove_dump_file, regmove_time): Define.
299 (fatal_insn): Close the regmove dump file.
300 (compile_file): Initialize regmove_time; open/close the regmove dump
301 file as needed. Print regmove time as needed.
302 (rest_of_compilation): Run regmove pass if requested, dump
303 RTL after regmove if requested.
304 (main): If -O2 or more, turn on regmove. Handle dump switches.
305 * regmove.c: New file.
307 Mon Aug 11 14:15:02 1997 Jeffrey A Law (law@cygnus.com)
309 * Integrate tlink patch from jason@cygnus.com
310 * gcc.c (SWITCH_TAKES_ARG): Add 'V', 'B' and 'b'.
311 (process_command): Increment n_switches for them. Don't discard
312 their args. Validate them.
313 (main): Escape " marks when creating COLLECT_GCC_OPTIONS.
315 (process_command): Set include_prefixes from COMPILER_PATH.
316 (main): Set COLLECT_GCC_OPTIONS sooner.
317 * confiugre.in: Link ../ld/ld.new to collect-ld rather than real-ld.
318 * tlink.c, hash.c, hash.h: New files.
319 * Makefile.in (USE_COLLECT2): Always use collect2.
320 (collect2): Depend on and link in hash.o and tlink.o.
321 (tlink.o, hash.o): Add dependencies.
323 Mon Aug 11 10:04:49 1997 Jeffrey A Law (law@cygnus.com)
325 * Integrate alias analysis changes from jfc@mit.edu
326 * Makefile.in (OBJS): Add alias.o
327 (alias.o): Add dependencies.
329 * sched.c: Remove alias analysis code. It lives in alias.c now.
330 (sched_analyze_2): Add new arguments to true_dependence.
331 (schedule_insns): Always call init_alias_analysis.
332 * calls.c (expand_call): Note calls to malloc, calloc, and realloc;
333 mark return value from such functions as a pointer and keep track of
334 them for alias analysis. If a return value from a function is a
335 pointer, mark it as such.
336 * combine.c (distribute_notes): Handle REG_NOALIAS.
337 * cse.c (struct write_data): Delete. No longer needed.
338 (invalidate): Don't call set_nonvarying_address_components anymore.
339 Use true_dependence to decide if an entry should be removed from
341 (invalidate_memory): Remove WRITES argument, simplify appropriately.
343 (note_mem_written): Similarly for WRITE_PTR argument.
344 (invalidate_from_clobbers): Similarly for W argument.
345 (invalidate_for_call): Remove memory elements from the hash table.
346 (refers_to_mem_p, cse_rtx_addr_varies_p): Deleted.
347 (cse_rtx_varies_p): New function. Derived from old
348 cse_rtx_addr_varies_p.
349 (cse_insn): Remove WRITES_MEMORY and INIT variables and all references.
350 Don't call note_mem_written anymore. Stack pushes invalidate the stack
351 pointer if PUSH_ROUNDING is defined. No longer need to call
352 cse_rtx_addr_varies_p to decide if a MEM should be invalidated.
353 (skipped_writes_memory): Remove variable.
354 (invalidate_skipped_set): Simplify and wewrite to use invalidate_memory.
355 (invalidate_skipped_block): Simplify for new alias analysis code.
356 (cse_set_around_loop): Likewise.
357 (cse_main): Call init_alias_analysis.
358 * flags.h (flag_alias_check, flag_argument_noalias): Declare.
359 * toplev.c (flag_alias_check, flag_argument_noalias): Define.
360 (f_options): Add new alias checking arguments.
361 (main): Set flag_alias_check when optimizing.
362 * local_alloc (validate_equiv_mem_from_store): Add new arguments
364 (memref_referenced_p): Likewise.
365 * loop.c (NUM_STORES): Increase to 30.
366 (prescan_loop): Only non-constant calls set unknown_address_altered.
367 (invariant_p): Add new arguments to true_dependence.
368 (record_giv): Initialize unrolled and shared fields.
369 (emit_iv_add_mult): Call record_base_value as needed.
370 * loop.h (struct induction): Add unrolled and shared fields.
371 * unroll.c (unroll_loop): Call record_base_value as needed.
372 (copy_loop_body): Likewise.
373 (final_biv_value): Likewise.
374 (final_giv_value): Likewise.
375 (find_splittable_regs): Likewise. Only create one new pseudo
376 if we have multiple address GIVs that were combined with the same
377 dst_reg GIV. Note when a new register is created due to unrolling.
378 * rtl.c (reg_note_name): Add REG_NOALIAS.
379 * rtl.h (enum reg_note): Similarly.
380 (rtx_varies_p, may_trap_p, side_effects_p): Declare.
381 (volatile_refs_p, volatile_insn_p, remove_note): Likewise.
382 (note_stores, refers_to_regno_p, reg_overlap_mentioned_p): Likewise.
383 (true_dependence, read_dependence, anti_dependence): Likewise.
384 (output_dependence, init_alias_analysis, end_alias_analysis): Likewise.
385 (mark_user_reg, mark_reg_pointer): Likewise.
388 * Integrate reload bugfix from Wilon which enables the PA port
390 * reload1.c (reload): Sum needs for both OPADDR_ADDR and and
391 OPERAND_ADDRESS when computing how many registers an insn needs.
392 (reload_reg_free_p): OPADDR_ADDR and OPERAND_ADDRESS reloads do
394 (reload_reg_free_before_p): Treat OPERAND_ADDRESS reloads just like
396 (reload_reg_reaches_end_p): For RELOAD_FOR_OPADDR_ADDR insns, registers
397 in reload_reg_use_in_op_addr do not reach the end.
398 do not reach the end.
399 (reloads_conflict): RELOAD_FOR_OPADDR_ADDR conflicts with
400 RELOAD_FOR_OPERAND_ADDRESS.
402 Sun Aug 10 12:00:20 1997 Jeffrey A Law (law@cygnus.com)
404 * egcs project officially starts.