OSDN Git Service

8bd67b992d2a87efed81814b4ebf8d63cb781df6
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 Wed Aug 27 18:08:51 1997  Bob Manson  (manson@cygnus.com)
2
3         * t-h8300: Use TARGET_LIBGCC2_CFLAGS instead of LIBGCC2_CFLAGS.
4         * t-mn10200: Ditto.
5         * t-vxsparc: Ditto.
6         * t-vxworks68: Ditto.
7         * t-vxworks960: Ditto.
8         * t-vx29k: Ditto.
9
10 Wed Aug 27 16:35:29 1997  Richard Henderson  <rth@cygnus.com>
11
12         * alpha/xm-alpha.h (alloca): Define alloca to builtin_alloca for GNUC
13         if not already defined, and USE_C_ALLOCA not defined.
14
15 Wed Aug 27 16:08:43 1997  Jim Wilson  <wilson@cygnus.com>
16
17         * config.guess: Replace with script that uses ../config.guess.
18
19         * config/alpha/elf.h (DEFAULT_VTABLE_THUNKS): New. Defined as 1
20         if USE_GNULIBC_1 is not defined.
21
22 Wed Aug 27 15:49:12 1997  Richard Henderson  <rth@cygnus.com>
23
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.
28
29 Wed Aug 27 11:52:58 1997  Jim Wilson  <wilson@cygnus.com>
30
31         * m68k.md (iorsi3_internal): Readd ! TARGET_5200 check lost in
32         last change.
33
34 Wed Aug 27 01:56:18 1997  Doug Evans  <dje@seba.cygnus.com>
35
36         * loop.c (combine_movables): Earlier insns don't match later ones.
37
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.
42
43 Wed Aug 27 01:24:25 1997  H.J. Lu   (hjl@gnu.ai.mit.edu)
44
45         * config/linux.h (CC1_SPEC): Define it only if not defined.
46
47         * config/m68k/linux.h (CC1_SPEC): Undefine it before include
48         <linux.h>
49
50         * config/linux.h (DEFAULT_VTABLE_THUNKS): New. Defined as 1 if
51         USE_GNULIBC_1 is not defined.
52
53         * config/rs6000/linux.h (DEFAULT_VTABLE_THUNKS): New.  Defined as 1.
54
55         * config/sparc/linux.h (DEFAULT_VTABLE_THUNKS): New. Defined
56         as 1 if USE_GNULIBC_1 is not defined.
57
58 Wed Aug 27 00:49:14 1997  Jeffrey A Law  (law@cygnus.com)
59
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
63         if it was a pseudo.
64
65         * t-freebsd (USER_H): Include EXTRA_HEADERS and LANG_EXTRA_HEADERS.
66         * x-netbsd: Likewise
67         * x-dgux (USER_H): Include EXTRA_HEADERS and LANG_EXTRA_HEADERS
68         (INSTALL_HEADERS): Delete.
69         * x-dguxbcs: Likewise.
70         * x-hp3bsd44: Likewise
71         * x-pa: Likewise.
72
73 Wed Aug 27 00:30:00 1997  Bernd Schmidt  <crux@pool.informatik.rwth-aachen.de>
74
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
78         instead of subsi3.
79
80 Tue Aug 26 18:50:32 1997  Jim Wilson  <wilson@cygnus.com>
81
82         * reload.c (find_reloads, case '0'): Reject matching a non-offsettable
83         address where an offsettable address is required.
84
85 Tue Aug 26 17:54:56 1997  Michael P. Hayes  (michaelh@ongaonga.chch.cri.nz>
86
87         * loop.c (check_final_value): Don't miss a biv increment in a
88         parallel.
89
90 Tue Aug 26 12:03:49 1997  Jim Wilson  (wilson@cygnus.com)
91
92         * dwarfout.c (dwarfout_file_scope_decl, case TYPE_DECL): Check
93         TYPE_DECL_IS_STUB instead of DECL_NAME.
94
95 Mon Aug 25 23:27:10 1997  H.J. Lu  (hjl@gnu.ai.mit.edu)
96
97         * objc/Make-lang.in ($(OBJC_O)): Also depend on cc1obj.
98
99 Mon Aug 25 23:27:10 1997  Jim Meyering <meyering@eng.ascend.com>
100
101         * objc/Make-lang.in ($(OBJC_O)): Also depend on $(GCC_PASSES).
102
103 Mon Aug 25 13:12:24 1997  Jeffrey A Law  (law@cygnus.com)
104
105         * haifa-sched.c (find_pre_sched_live): Remove #if 0 code.
106         (find_post_sched_live): Likewise.
107
108         * haifa-sched.c (schedule_block): Remove old code to get arguments
109         from hard regs into pseudos early.
110
111 Mon Aug 25 08:55:00 1997  Jeffrey A Law  (law@cygnus.com)
112
113         * version.c: Bump for new snapshot.
114
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.
118
119         * pa.c (secondary_reload_class): (mem (mem ... )) does not need
120         secondary reloads.
121
122         * pa.c (hppa_builtin_saveregs): Emit a blockage insn after the
123         store of the argument registers.
124
125 Mon Aug 25 08:39:02 1997  Craig Burley  (burley@gnu.ai.mit.edu)
126
127         * fold-const.c (multiple_of_p): New function.
128         (fold): Turn some cases of *_DIV_EXPR into EXACT_DIV_EXPR.
129
130 Mon Aug 25 01:47:41 1997  Jeffrey A Law  (law@cygnus.com)
131
132         * expr.h (insn_gen_function): Temporarily remove prototype.
133
134 Sun Aug 24 17:22:21 1997  Jim Wilson  <wilson@cygnus.com>
135
136         * Makefile.in (install-info): Don't cd into srcdir.  Add srcdir to
137         filenames.  Use sed to extract base filename for install.
138
139 Sat Aug 23 18:19:40 1997  John F. Carr  <jfc@mit.edu>
140
141         * unroll.c (find_splittable_givs): Only share if two givs have the
142         same add and multiply values.
143
144 Sat Aug 23 14:36:27 1997  Jim Wilson  <wilson@cygnus.com>
145
146         * m68k/next.h (GO_IF_INDEXABLE_BASE): Fix typo in undef.
147         * m68k/m68kemb.h (LIB_SPEC): Add missing comment end before it.
148
149 Sat Aug 23 00:18:22 1997  Jeffrey A Law  (law@cygnus.com)
150
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.
155
156 Fri Aug 22 14:05:55 1997  Jim Wilson  <wilson@cygnus.com>
157
158         * alias.c (true_dependence): Pass x_addr not x to varies.
159
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
163         declarations.
164         * config.in, configure: Regenerate.
165
166 Thu Aug 21 23:52:16 1997  John F. Carr  <jfc@mit.edu>
167
168         * alias.c (find_base_value): Improve handling of PLUS, MINUS, and
169         LO_SUM.
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.
173
174 Thu Aug 21 20:17:37 1997  Jeffrey A Law  (law@cygnus.com)
175
176         * version.c: Bump for new snapshot.
177
178 Thu Aug 21 17:28:00 1997  Jim Wilson  <wilson@cygnus.com>
179
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.
183
184 Thu Aug 21 10:22:19 1997  Jeffrey A Law  (law@cygnus.com)
185
186         * Makefile.in (install-common): Put gcov comment at start of line.
187
188 Wed Aug 20 22:47:33 1997  Jeffrey A Law  (law@cygnus.com)
189
190         * alias.c (init_alias_analysis): When simplifying the reg_base_value
191         array, simplify entries for hard registers too.
192
193 Wed Aug 20 12:35:47 1997  Dave Love  <d.love@dl.ac.uk>
194
195         * dwarf2.h (enum dwarf_call_frame_info): Remove trailing comma from
196         list.
197
198 Wed Aug 20 11:58:33 1997  Jim Wilson  <wilson@cygnus.com>
199
200         * stmt.c (start_cleanup_deferal, end_cleanup_deferal): Test
201         block_stack before dereferencing it.
202
203 Wed Aug 20 11:57:11 1997  Michael Meissner  <meissner@cygnus.com>
204
205         * rs6000.h (ISSUE_RATE): Define instead of MACHINE_issue_rate.
206
207 Tue Aug 19 17:10:56 1997  Jason Merrill  <jason@yorick.cygnus.com>
208
209         * cplus-dem.c: Add 'extern' to prepends_underscore.
210
211 Tue Aug 19 09:34:57 1997  Jeffrey A Law  (law@cygnus.com)
212
213         * haifa-sched.c (ISSUE_RATE): Renamed from MACHINE_issue_rate.
214         (get_issue_rate): Delete.
215         * pa.h (ISSUE_RATE): Define.
216
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
221         processors.
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.
225
226         * haifa-sched.c (move_insn): Reemit notes for SCHED_GROUP_P
227         insns too.
228         (schedule_block): When adjusting basic_block_{head,end}, account
229         for movement of SCHED_GROUP_P insns too.
230
231         * haifa-sched.c (debug_dependencies): Fix thinko.
232
233         * Makefile.in (EXPECT, RUNTEST, RUNTESTFLAGS): Define.
234         (site.exp, check, check-g++, check-gcc): New targets.
235
236         * haifa-sched.c: Make lots of variables static.
237
238 Tue Aug 19 07:18:34 1997  H.J. Lu  (hjl@gnu.ai.mit.edu)
239
240         * expr.h, real.h: Finish prototyping.
241
242 Mon Aug 18 21:49:02 1997  Jim Wilson  <wilson@cygnus.com>
243
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.
247
248 Mon Aug 18 17:39:02 1997  Mike Meissner  <meissner@cygnus.com>
249
250         * configure.in ({powerpc,rs6000}*-*-*, --with-cpu): Remove single
251         quotes around the name.
252         * configure: Regenerate.
253
254 Mon Aug 18 13:46:47 1997  Jim Wilson  <wilson@cygnus.com>
255
256         * Makefile.in (stmp-multilib-sub): Fix typo in last change.
257
258 Thu Aug  7 10:33:13 1997  Manfred Hollstein  <manfred@s-direktnet.de>
259
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.
263
264 Sun Aug 17 15:42:17 1997  Dave Love  (d.love@dl.ac.uk)
265
266         * configure.in: Expurgate `broken_install' (install is
267         autoconfed).
268
269         * configure.lang: Substitute autoconfed ${INSTALL} (not currently
270         relevant).
271
272 Sat Aug 16 01:08:12 1997  Jeffrey A Law  (law@cygnus.com)
273
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.
278         
279 Fri Aug 15 23:48:32 1997  Jeffrey A Law  (law@cygnus.com)
280
281         * haifa-sched.c (find_post_sched_live): Call FREE_REG_SET as needed.
282         (schedule_region): Likewise.
283         (schedule_insns): Likewise.
284
285         * PROJECTS: Update with Haifa stuff.
286
287 Fri Aug 15 12:49:56 1997  Jeffrey A Law  (law@cygnus.com)
288
289         * version.c: Change the version string to look like:
290         egcs-2.90.00 970814 (gcc2-970802 experimental).
291
292         * loop.c (is_conditional_branch): Make definition match declaration.
293
294         * gcc.c: Take out experimental snapshot warning message.
295
296 Fri Aug 15 13:43:39 1997  Michael Meissner  <meissner@cygnus.com>
297
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.
301
302 Wed Aug 13 01:03:37 1997  Doug Evans  <dje@canuck.cygnus.com>
303
304         * configure.in (haifa configury): Fix typo.
305         * configure: Regenerate.
306
307 Tue Aug 12 10:20:36 1997  Jeffrey A Law  (law@cygnus.com)
308
309         * version.c: Bump version to "gcc-3.0.0 970802 experimental".
310
311         * gcc.info*: Rebuilt.
312
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.
317
318 Mon Aug 11 14:50:55 1997  Jeffrey A Law  (law@cygnus.com)
319
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
339         scheduler uses it.
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
347         LABEL_NEXTREF.
348         (strength_reduce): If HAIFA and HAVE_decrement_and_branch_on_count
349         are defined, call analyze_loop_iterations and insert_bct to use
350         countdown loops.
351         (record_giv): Refine test for jumps out of loops if HAIFA is
352         defined.
353         (analyze_loop_iterations): New function to identify if we can use
354         a countdown loop.
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
359         in the function.
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
362         jump.
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
370         condition is true.
371         (instrument_loop_bct): Ditto.
372         * haifa-sched.c: New file.
373         
374
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.
390         
391 Mon Aug 11 14:15:02 1997  Jeffrey A Law  (law@cygnus.com)
392
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.
398         From Rohan Lenard.
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.
406
407 Mon Aug 11 10:04:49 1997  Jeffrey A Law  (law@cygnus.com)
408
409         * Integrate alias analysis changes from jfc@mit.edu
410         * Makefile.in (OBJS): Add alias.o
411         (alias.o): Add dependencies.
412         * alias.c: New file.
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
424         the hash table.
425         (invalidate_memory): Remove WRITES argument, simplify appropriately.
426         Fix all callers.
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
447         to true_dependence.
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.
470
471
472         * Integrate reload bugfix from Wilon which enables the PA port
473         to bootstrap again.
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
477         conflict.
478         (reload_reg_free_before_p): Treat OPERAND_ADDRESS reloads just like
479         OPADDR_ADDR reload.
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.
485
486 Sun Aug 10 12:00:20 1997  Jeffrey A Law  (law@cygnus.com)
487
488         * egcs project officially starts.
489