296e59e28a0143937faf5a4b3172b1a7d47be6bd
[platform/upstream/gcc.git] / gcc / ChangeLog
1 Tue Aug 26 17:54:56 1997  Michael P. Hayes  (michaelh@ongaonga.chch.cri.nz>
2
3         * loop.c (check_final_value): Don't miss a biv increment in a
4         parallel.
5
6 Tue Aug 26 12:03:49 1997  Jim Wilson  (wilson@cygnus.com)
7
8         * dwarfout.c (dwarfout_file_scope_decl, case TYPE_DECL): Check
9         TYPE_DECL_IS_STUB instead of DECL_NAME.
10
11 Mon Aug 25 23:27:10 1997  H.J. Lu  (hjl@gnu.ai.mit.edu)
12
13         * objc/Make-lang.in ($(OBJC_O)): Also depend on cc1obj.
14
15 Mon Aug 25 23:27:10 1997  Jim Meyering <meyering@eng.ascend.com>
16
17         * objc/Make-lang.in ($(OBJC_O)): Also depend on $(GCC_PASSES).
18
19 Mon Aug 25 13:12:24 1997  Jeffrey A Law  (law@cygnus.com)
20
21         * haifa-sched.c (find_pre_sched_live): Remove #if 0 code.
22         (find_post_sched_live): Likewise.
23
24         * haifa-sched.c (schedule_block): Remove old code to get arguments
25         from hard regs into pseudos early.
26
27 Mon Aug 25 08:55:00 1997  Jeffrey A Law  (law@cygnus.com)
28
29         * version.c: Bump for new snapshot.
30
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.
34
35         * pa.c (secondary_reload_class): (mem (mem ... )) does not need
36         secondary reloads.
37
38         * pa.c (hppa_builtin_saveregs): Emit a blockage insn after the
39         store of the argument registers.
40
41 Mon Aug 25 08:39:02 1997  Craig Burley  (burley@gnu.ai.mit.edu)
42
43         * fold-const.c (multiple_of_p): New function.
44         (fold): Turn some cases of *_DIV_EXPR into EXACT_DIV_EXPR.
45
46 Mon Aug 25 01:47:41 1997  Jeffrey A Law  (law@cygnus.com)
47
48         * expr.h (insn_gen_function): Temporarily remove prototype.
49
50 Sun Aug 24 17:22:21 1997  Jim Wilson  <wilson@cygnus.com>
51
52         * Makefile.in (install-info): Don't cd into srcdir.  Add srcdir to
53         filenames.  Use sed to extract base filename for install.
54
55 Sat Aug 23 18:19:40 1997  John F. Carr  <jfc@mit.edu>
56
57         * unroll.c (find_splittable_givs): Only share if two givs have the
58         same add and multiply values.
59
60 Sat Aug 23 14:36:27 1997  Jim Wilson  <wilson@cygnus.com>
61
62         * m68k/next.h (GO_IF_INDEXABLE_BASE): Fix typo in undef.
63         * m68k/m68kemb.h (LIB_SPEC): Add missing comment end before it.
64
65 Sat Aug 23 00:18:22 1997  Jeffrey A Law  (law@cygnus.com)
66
67         * pa.c (pa_reorg): Always put begin_brtab and end_brtab insns
68         around branch tables.
69         * pa.md (begin_brtab, end_brtab): Only emit the .begin_brtab
70         and .end_brtab directives if TARGET_GAS.
71
72 Fri Aug 22 14:05:55 1997  Jim Wilson  <wilson@cygnus.com>
73
74         * alias.c (true_dependence): Pass x_addr not x to varies.
75
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
79         declarations.
80         * config.in, configure: Regenerate.
81
82 Thu Aug 21 23:52:16 1997  John F. Carr  <jfc@mit.edu>
83
84         * alias.c (find_base_value): Improve handling of PLUS, MINUS, and
85         LO_SUM.
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.
89
90 Thu Aug 21 20:17:37 1997  Jeffrey A Law  (law@cygnus.com)
91
92         * version.c: Bump for new snapshot.
93
94 Thu Aug 21 17:28:00 1997  Jim Wilson  <wilson@cygnus.com>
95
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.
99
100 Thu Aug 21 10:22:19 1997  Jeffrey A Law  (law@cygnus.com)
101
102         * Makefile.in (install-common): Put gcov comment at start of line.
103
104 Wed Aug 20 22:47:33 1997  Jeffrey A Law  (law@cygnus.com)
105
106         * alias.c (init_alias_analysis): When simplifying the reg_base_value
107         array, simplify entries for hard registers too.
108
109 Wed Aug 20 12:35:47 1997  Dave Love  <d.love@dl.ac.uk>
110
111         * dwarf2.h (enum dwarf_call_frame_info): Remove trailing comma from
112         list.
113
114 Wed Aug 20 11:58:33 1997  Jim Wilson  <wilson@cygnus.com>
115
116         * stmt.c (start_cleanup_deferal, end_cleanup_deferal): Test
117         block_stack before dereferencing it.
118
119 Wed Aug 20 11:57:11 1997  Michael Meissner  <meissner@cygnus.com>
120
121         * rs6000.h (ISSUE_RATE): Define instead of MACHINE_issue_rate.
122
123 Tue Aug 19 17:10:56 1997  Jason Merrill  <jason@yorick.cygnus.com>
124
125         * cplus-dem.c: Add 'extern' to prepends_underscore.
126
127 Tue Aug 19 09:34:57 1997  Jeffrey A Law  (law@cygnus.com)
128
129         * haifa-sched.c (ISSUE_RATE): Renamed from MACHINE_issue_rate.
130         (get_issue_rate): Delete.
131         * pa.h (ISSUE_RATE): Define.
132
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
137         processors.
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.
141
142         * haifa-sched.c (move_insn): Reemit notes for SCHED_GROUP_P
143         insns too.
144         (schedule_block): When adjusting basic_block_{head,end}, account
145         for movement of SCHED_GROUP_P insns too.
146
147         * haifa-sched.c (debug_dependencies): Fix thinko.
148
149         * Makefile.in (EXPECT, RUNTEST, RUNTESTFLAGS): Define.
150         (site.exp, check, check-g++, check-gcc): New targets.
151
152         * haifa-sched.c: Make lots of variables static.
153
154 Tue Aug 19 07:18:34 1997  H.J. Lu  (hjl@gnu.ai.mit.edu)
155
156         * expr.h, real.h: Finish prototyping.
157
158 Mon Aug 18 21:49:02 1997  Jim Wilson  <wilson@cygnus.com>
159
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.
163
164 Mon Aug 18 17:39:02 1997  Mike Meissner  <meissner@cygnus.com>
165
166         * configure.in ({powerpc,rs6000}*-*-*, --with-cpu): Remove single
167         quotes around the name.
168         * configure: Regenerate.
169
170 Mon Aug 18 13:46:47 1997  Jim Wilson  <wilson@cygnus.com>
171
172         * Makefile.in (stmp-multilib-sub): Fix typo in last change.
173
174 Thu Aug  7 10:33:13 1997  Manfred Hollstein  <manfred@s-direktnet.de>
175
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.
179
180 Sun Aug 17 15:42:17 1997  Dave Love  (d.love@dl.ac.uk)
181
182         * configure.in: Expurgate `broken_install' (install is
183         autoconfed).
184
185         * configure.lang: Substitute autoconfed ${INSTALL} (not currently
186         relevant).
187
188 Sat Aug 16 01:08:12 1997  Jeffrey A Law  (law@cygnus.com)
189
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.
194         
195 Fri Aug 15 23:48:32 1997  Jeffrey A Law  (law@cygnus.com)
196
197         * haifa-sched.c (find_post_sched_live): Call FREE_REG_SET as needed.
198         (schedule_region): Likewise.
199         (schedule_insns): Likewise.
200
201         * PROJECTS: Update with Haifa stuff.
202
203 Fri Aug 15 12:49:56 1997  Jeffrey A Law  (law@cygnus.com)
204
205         * version.c: Change the version string to look like:
206         egcs-2.90.00 970814 (gcc2-970802 experimental).
207
208         * loop.c (is_conditional_branch): Make definition match declaration.
209
210         * gcc.c: Take out experimental snapshot warning message.
211
212 Fri Aug 15 13:43:39 1997  Michael Meissner  <meissner@cygnus.com>
213
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.
217
218 Wed Aug 13 01:03:37 1997  Doug Evans  <dje@canuck.cygnus.com>
219
220         * configure.in (haifa configury): Fix typo.
221         * configure: Regenerate.
222
223 Tue Aug 12 10:20:36 1997  Jeffrey A Law  (law@cygnus.com)
224
225         * version.c: Bump version to "gcc-3.0.0 970802 experimental".
226
227         * gcc.info*: Rebuilt.
228
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.
233
234 Mon Aug 11 14:50:55 1997  Jeffrey A Law  (law@cygnus.com)
235
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
255         scheduler uses it.
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
263         LABEL_NEXTREF.
264         (strength_reduce): If HAIFA and HAVE_decrement_and_branch_on_count
265         are defined, call analyze_loop_iterations and insert_bct to use
266         countdown loops.
267         (record_giv): Refine test for jumps out of loops if HAIFA is
268         defined.
269         (analyze_loop_iterations): New function to identify if we can use
270         a countdown loop.
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
275         in the function.
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
278         jump.
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
286         condition is true.
287         (instrument_loop_bct): Ditto.
288         * haifa-sched.c: New file.
289         
290
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.
306         
307 Mon Aug 11 14:15:02 1997  Jeffrey A Law  (law@cygnus.com)
308
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.
314         From Rohan Lenard.
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.
322
323 Mon Aug 11 10:04:49 1997  Jeffrey A Law  (law@cygnus.com)
324
325         * Integrate alias analysis changes from jfc@mit.edu
326         * Makefile.in (OBJS): Add alias.o
327         (alias.o): Add dependencies.
328         * alias.c: New file.
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
340         the hash table.
341         (invalidate_memory): Remove WRITES argument, simplify appropriately.
342         Fix all callers.
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
363         to true_dependence.
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.
386
387
388         * Integrate reload bugfix from Wilon which enables the PA port
389         to bootstrap again.
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
393         conflict.
394         (reload_reg_free_before_p): Treat OPERAND_ADDRESS reloads just like
395         OPADDR_ADDR reload.
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.
401
402 Sun Aug 10 12:00:20 1997  Jeffrey A Law  (law@cygnus.com)
403
404         * egcs project officially starts.
405