sibcall.c (return_value_pseudo): New static variable.
[gcc.git] / gcc / ChangeLog
1 Wed Aug 8 21:08:14 CEST 2001 Jan Hubicka <jh@suse.cz>
2
3 * sibcall.c (return_value_pseudo): New static variable.
4 (skip_copy_to_return_value): Handle return_value_pseudo.
5 (call_ends_block_p): Ensure that return_value_pseudo is set.
6 (optimize_sibling_and_tail_recursive_call): Discover the
7 load of pseudo return value in alternate exit block.
8
9 Wed Aug 8 21:06:43 CEST 2001 Jan Hubicka <jh@suse.cz>
10
11 * calls.c (ECF_ALWAYS_RETURN): New constant.
12 (emit_call_1): Add REG_ALWAYS_RETURN note if needed.
13 (expand_call): Use LCF_ALWAYS_RETURN for __bb_fork_func.
14 (emit_library_call_value_1): Handle LCT_ALWAYS_RETRUN.
15 * flow.c (need_fake_edge_p): Handle REG_ALWAYS_RETURN.
16 * rtl.c (reg_note_name): New name.
17 * rtl.h (enum reg_note): Add REG_ALWAYS_RETURN.
18
19 2001-08-07 Aldy Hernandez <aldyh@redhat.com>
20
21 * config/mips/mips.c (mips_legitimate_address_p): Limit "la" addresses.
22
23 2001-08-08 Jason Merrill <jason_merrill@redhat.com>
24
25 * alias.c (get_alias_set): Return a previously calculated
26 alias set for a VAR_DECL.
27 * function.c (gen_mem_addressof): Calculate the alias set before
28 touching the RTL.
29
30 Wed Aug 8 18:44:37 CEST 2001 Jan Hubicka <jh@suse.cz>
31
32 * predict.def: Set hitrates according our experimental run.
33
34 Wed Aug 8 18:01:58 CEST 2001 Jan Hubicka <jh@suse.cz>
35
36 * i386.h (HARD_REGNO_RENAME_OK): New macro.
37
38 2001-08-08 H.J. Lu <hjl@gnu.org>
39
40 * config/mips/mips.c (mips_unique_section): New. Copied from
41 config/mips/elf.h.
42
43 * config/mips/mips-protos.h (mips_unique_section): New
44 prototype.
45
46 * config/mips/elf.h (UNIQUE_SECTION): Use mips_unique_section.
47
48 * config/mips/little.h: New. Generic little endian mips
49 targets. Only mips*-*-linux* is converted to use it so far.
50
51 * config/mips/linux.h: Include "gofast.h" and "mips/mips.h".
52 (WCHAR_TYPE): Defined
53 (WCHAR_TYPE_SIZE): Likewise.
54 (INIT_SUBTARGET_OPTABS): Likewise.
55 (BSS_SECTION_ASM_OP): Likewise.
56 (SBSS_SECTION_ASM_OP): Likewise.
57 (ASM_OUTPUT_ALIGNED_BSS): Likewise.
58 (ASM_DECLARE_OBJECT_NAME): Likewise.
59 (UNIQUE_SECTION): Likewise.
60 (EXTRA_SECTIONS): Likewise.
61 (ASM_OUTPUT_CONSTRUCTOR): Likewise.
62 (ASM_OUTPUT_DESTRUCTOR): Likewise.
63 (ASM_OUTPUT_DEF): Likewise.
64 (HANDLE_SYSV_PRAGMA): Removed.
65 (NO_IMPLICIT_EXTERN_C): Likewise.
66 (TARGET_MEM_FUNCTIONS): Likewise.
67 (STARTFILE_SPEC): Likewise.
68 (ENDFILE_SPEC): Likewise.
69 (LIB_SPEC): Likewise.
70 (INVOKE__main): Likewise.
71 (CTOR_LIST_BEGIN): Likewise.
72 (CTOR_LIST_END): Likewise.
73 (DTOR_LIST_BEGIN): Likewise.
74 (DTOR_LIST_END): Likewise.
75 (SET_ASM_OP): Likewise.
76 (ASM_OUTPUT_SOURCE_LINE): Likewise.
77 (ASM_OUTPUT_DEF): Likewise.
78 (ASM_OUTPUT_IDENT): Likewise.
79
80 * config/mips/mips.h (ASM_SPEC): Undefine before define.
81 (CPLUSPLUS_CPP_SPEC): Likewise.
82 (ASM_APP_ON) Redefine only if not defined.
83 (ASM_APP_OFF): Likewise.
84 (ASM_OUTPUT_SOURCE_LINE): Likewise.
85 (ASM_OUTPUT_IDENT): Likewise.
86
87 * config.gcc: Update tm_file for Linux/mips.
88
89 2001-08-08 Bernd Schmidt <bernds@redhat.com>
90
91 * cselib.c (cselib_record_sets): If insn is predicated, turn
92 sources into IF_THEN_ELSEs.
93
94 * config/ia64/ia64.md (cond_opsi2_internal, cond_opsi2_internal_b):
95 Turn into define_insn_and_split.
96
97 * sched-deps.c: Include "cselib.h".
98 (add_insn_mem_dependence, sched_analyze_1, sched_analyze_2):
99 Use cselib to turn memory addresses into VALUEs.
100 (sched_analyze): Call cselib_init/cselib_finish if necessary.
101 * sched-int.h (struct sched_info): New member USE_CSELIB.
102 * sched-ebb.c (ebb_sched_info): Initialize it.
103 * sched-rgn.c (rgn_sched_info): Likewise.
104 * Makefile.in (sched-deps.o): Update dependencies.
105
106 * cselib.h (cselib_subst_to_values): Declare.
107 * cselib.c (cselib_subst_to_values): No longer static. Allow MEMs
108 that have no value and autoincs to be handled by generating a new
109 dummy value.
110
111 2001-08-08 Graham Stott <grahams@redhat.com>
112
113 * final.c (shorten_branches): Update the INSN_ADDRESSES of insns
114 within fixed length SEQUENCE.
115
116 2001-08-08 Graham Stott <grahams@redhat.com>
117
118 * diagnostic.h (diagnostic_format_decoder): Parenthesize macro parameter.
119 (diagnostic_prefixing_rule): Likewise.
120 (diagnostic_line_cutoff): Likewise.
121 (diagnostic_kind_count): Likewise.
122
123 2001-08-08 Graham Stott <grahams@redhat.com>
124
125 * alias.c (find_base_decl): Delete redundent assignment.
126
127 2001-08-08 Graham Stott <grahams@redhat.com>
128
129 * dependence.c (INDEX_LIMIT_CHECK): Uppercase macro parameter.
130 (abs): Uppercase and paranthesize macro parameter.
131 (MEM_DEPENDENCY): Add whitespace.
132
133 2001-08-08 Graham Stott <grahams@redhat.com>
134
135 * config/mips/mips.c (mips_legitimate_address_p): Fix enable checking
136 failure check for CONST_INT
137
138 2001-08-08 Graham Stott <grahams@redhat.com>
139
140 * flow.c (back_edge_of_syntactic_loop_p): Add whitespace.
141 (libcall_dead_p): Likewise.
142
143 (mark_used_regs): Constify fmt.
144 (find_use_as_address): Likewise.
145
146 2001-08-08 Graham Stott <grahams@redhat.com>
147
148 * c-typeck.c (RESTORE_SPELLING_DEPTH): Uppercase and parenthesize macro
149 parameter.
150
151 2001-08-08 Graham Stott <grahams@redhat.com>
152
153 * combine.c (combine_simplify_rtx): Update comment and
154 remove erroneous test.
155
156 2001-08-07 Neil Booth <neil@daikokuya.demon.co.uk>
157
158 * cppinit.c (cpp_finish): Pop the final buffer without comment.
159 * cpplex.c (_cpp_lex_token): Don't pop the final buffer; and
160 take care to avoid multiple no-newline at EOF warnings in that
161 case.
162
163 Tue Aug 7 22:18:06 CEST 2001 Jan Hubicka <jh@suse.cz>
164
165 * calls.c (expand_call): Do not emit INSN_SETJMP note.
166 (emit_library_call_value_1): Likewise.
167 (emit_call_1): Emit REG_SETJMP note.
168 * cse.c (cse_end_of_basic_block): Use REG_SETJMP instead
169 of INSN_SETJMP
170 * cselib.c (cselib_process_insn): Likewise.
171 * flow.c (propagate_block): Likewise.
172 * loop.c (find_and_verify_loops): Likewise.
173 * reload.c (find_equiv_regs): Likewise.
174 * reload1.c (reload): Likewise.
175 * resource.c (mark_referenced_resources,
176 mark_set_resources): Likewise.
177 * sched-deps (sched_analyze_insn, sched_analyze): Likewise.
178 * final.c (final_scan_insn): Remove NOTE_INSN_SETJMP.
179 * haifa-sched.c (unlink_other_notes): Likewise.
180 (reemit_notes): Likewise.
181 * sched-ebb.c (sched_ebb): Likewise.
182 * sched-rgc.c (sched_region): Likewise.
183 * rtl.c (note_insn_name): Likewise.
184 (reg_note_name): Add REG_SETJMP
185 * rtl.h (reg_note): Add REG_SETJMP.
186 (insn_note): Remove NOTE_INSN_SETJMP.
187
188 * profile.c (branch_prob): Add fake edges for setjmp.
189
190 2001-08-07 Daniel Jacobowitz <drow@mvista.com>
191
192 * config.gcc: Quote target_cpu_default2 correctly for
193 powerpc*-*-* targets.
194
195 2001-08-07 Neil Booth <neil@daikokuya.demon.co.uk>
196
197 * cpplib.h, line-map.h: Update comments.
198 * cppmain.c (printer_init): Move inline.
199 (maybe_print_line, print_line): Take a map pointer.
200 (cb_ident, cb_define, cb_undef, cb_include, cb_def_pragma): Update.
201 (cb_file_change): Don't use prior value of print.map.
202
203 2001-08-07 David Edelsohn <edelsohn@gnu.org>
204
205 * doc/install.texi: Document fine-grained multilib configuration.
206
207 Tue Aug 7 16:52:54 CEST 2001 Jan Hubicka <jh@suse.cz>
208
209 * rtlanal.c (find_first_parameter_load): Call note_stores
210 only on the instructions.
211
212 Tue Aug 7 14:56:16 CEST 2001 Jan Hubicka <jh@suse.cz>
213
214 * alias.c (nonlocal_mentioned_p):
215 Rename CONST_CALL_P to CONST_OR_PURE_CALL_P
216 * calls.c (emit_call_1): Likewise.
217 * cse.c (cse_insn, invalidate_skipped_block): Likewise.
218 * cselib.c (cselib_process_insn): Likewise.
219 * df.c (df_insns_modify): Likewise.
220 * flow.c (need_fake_edge_p): Likewise.
221 (propagate_one_insn): Likewise.
222 * haifa-sched.c (reemit_notes): Likewise.
223 * integrate.c (copy_insn_list): Likewise.
224 * jump.c (delete_prior_computation): Likewise.
225 * local-alloc.c (validate_equiv_mem): Likewise.
226 * loop.c (scan_loop): Likewise.
227 * predict.c (estimate_probability): Likewise.
228 * reload.c (reload): Likewise.
229 * sched-deps (sched_analyze): Likewise.
230 * rtl.h (CONST_CALL_P): rename to CONST_OR_PURE_CALL_P.
231 * gcse.c (compute_hash_table): Likewise.
232 (mark_call): Likewise.
233 (store_killed_in_insn): Likewise.
234
235 2001-08-07 Jason Merrill <jason_merrill@redhat.com>
236
237 * c-semantics.c (make_rtl_for_local_static): Use DECL_RTL_SET_P.
238
239 2001-08-06 Richard Henderson <rth@redhat.com>
240
241 * varasm.c (assemble_gc_entry): Remove.
242 * output.h: Likewise.
243
244 2001-08-06 Richard Henderson <rth@redhat.com>
245
246 * varasm.c (assemble_constructor): Take a symbol_ref and a
247 priority instead of a bare string. Move priority handling
248 here from cp/decl2.c.
249 * output.h: Update decls.
250
251 * c-decl.c (c_expand_body): Update calls to assemble_constructor
252 and assemble_destructor.
253 * profile.c (output_func_start_profiler): Likewise.
254 * objc/objc-act.c (finish_objc): Likewise.
255 (build_module_descriptor): Return the symbol not the symbol name.
256
257 2001-08-06 David Edelsohn <edelsohn@gnu.org>
258
259 * config/rs6000/darwin.h (DOUBLE_INT_ASM_OP): Add whitespace.
260 * config/rs6000/linux64.h (RS6000_MCOUNT): Define.
261 ({SAVE,RESTORE}_FP_{PREFFIX,SUFFIX}): Define.
262 * config/rs6000/rs6000.h (ASM_OUTPUT_DOUBLE_INT): Remove whitespace.
263 * config/rs6000/sysv4.h (DOUBLE_INT_ASM_OP): Add whitespace.
264 * config/rs6000/xcoff.h (DOUBLE_INT_ASM_OP): Add whitespace.
265
266 2001-08-06 Neil Booth <neil@daikokuya.demon.co.uk>
267
268 * cpperror.c (print_containing_files): Moved to line-map.c.
269 (print_location): line-map.c handles re-listing or otherwise.
270 * cpphash.h (struct lexer_state): Remove next_bol.
271 (struct cpp_buffer): Remove include_stack_listed.
272 * cpplib.c (do_line, cpp_push_buffer, _cpp_pop_buffer):
273 Remove faked buffer handling.
274 (_cpp_do_file_change): Tweak.
275 * cpplib.h (enum cpp_buffer_type): Remove BUF_FAKE.
276 * cppmain.c (struct printer): Remove filename.
277 (print_line, cb_file_change): Update accordingly.
278 * line-map.c: Include intl.h.
279 (init_line_maps): Initialize last_listed.
280 (free_line_maps): Sanity check, warn if ENABLED_CHECKING.
281 (add_line_map): Sanity check inputs, warn if ENABLED_CHECKING.
282 (print_containing_files): New.
283 * line-map.h (struct line_maps): New member last_listed.
284 (print_containing_files, INCLUDED_FROM): New.
285 * Makefile.in: Update.
286 * po/POTFILES.in: Add line-map.c.
287
288 2001-08-06 Richard Henderson <rth@redhat.com>
289
290 * except.c (convert_from_eh_region_ranges_1): Never mark
291 USE or CLOBBER insns as throwing.
292
293 * expr.c (store_constructor): Don't clobber memory targets.
294
295 2001-08-06 Andreas Jaeger <aj@suse.de>
296
297 * profile.c (branch_prob): Remove unused variable insn.
298
299 * Makefile.in (local-alloc.o): Add dependency on except.h.
300
301 * local-alloc.c: Include except.h for can_throw_internal prototype.
302
303 2001-08-06 Richard Henderson <rth@redhat.com>
304
305 * config/i386/i386.h (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): New.
306 * function.c (expand_main_function): Implement it.
307 * doc/tm.texi: Document it.
308
309 2001-08-06 Stan Shebs <shebs@apple.com>
310
311 * doc/install.texi: Document powerpc-*-darwin* details.
312
313 2001-08-06 Daniel Berlin <dan@cgsoftware.com>
314
315 * config/rs6000/aix.h (CPP_CPU_SPEC): Move back to rs6000.h
316 (ASM_CPU_SPEC): Move back to rs6000.h
317 #undef CPP_DEFAULT_SPEC and ASM_DEFAULT_SPEC before redefining them.
318
319 * config/rs6000/darwin.h (DOUBLE_INT_ASM_OP): New macro.
320
321 * config/rs6000/linux.h: Remove vtable thunks stuff we accidently
322 readded.
323
324 * config/rs6000/linux64.h: Ditto.
325
326 * config/rs6000/rs6000.h: Move CPP_CPU_SPEC and ASM_CPU_SPEC back
327 to here. Define default ASM_DEFAULT_SPEC and CPP_DEFAULT SPEC to
328 nothing.
329
330 Remove accidently readded definitions of FUNCTION_PROLOGUE,
331 FUNCTION_EPILOGUE, ASM_OPEN_PAREN, ASM_CLOSE_PAREN
332
333 * config/rs6000/sysv4.h: Move CPP_CPU_SPEC and ASM_CPU_SPEC back
334 to rs6000.h
335
336 2001-08-05 Richard Henderson <rth@redhat.com>
337
338 * local-alloc.c (update_equiv_regs): Do not move insns that
339 can throw.
340
341 2001-08-05 Jan Hubicka <jh@suse.cz>
342
343 * Makefile.in (reload1.o): Add dedendancy on except.h
344 * basic-block.h (purge_all_dead_edges, purge_dead_edges): Update
345 prototypes.
346 * flow.c (purge_dead_edges, purge_all_dead_edges): Return bool
347 indicating wehther edges has been cleaned up.
348 * reload1.c: Inlucde except.h
349 (fixup_abnormal_edges): Accept deleted insns.
350 * toplev.c (rest_of_compilation): Purge dead edges unconditionally
351 after combine.
352
353 2001-08-06 Neil Booth <neil@daikokuya.demon.co.uk>
354
355 * cpplib.c (do_line): Correct line number after pop_buffer.
356
357 2001-08-05 Neil Booth <neil@daikokuya.demon.co.uk>
358
359 PR preprocessor/3824
360 * line-map.c: Update comments.
361 * line-map.h: Update comments.
362 * tradcif.y: Don't consider large numbers unsigned.
363
364 2001-08-05 Neil Booth <neil@daikokuya.demon.co.uk>
365
366 PR preprocessor/3081
367 * c-lex.c (map): New.
368 (cb_file_change): Update map and use it.
369 (cb_def_pragma, cb_define, cb_undef): Use map and line.
370 (c_lex): Update to use map.
371 * cpperror.c (print_location): Move to using logical line numbers.
372 * cppfiles.c (stack_include_file): Update for new _cpp_do_file_change.
373 (cpp_make_system_header): Similarly.
374 (_cpp_execute_include): Stop line numbering hacks. Store the
375 line we will return to.
376 * cpphash.h (CPP_BUF_LINE): Remove.
377 (struct cpp_buffer): Remove lineno and pseudo_newlines.
378 Add map and return_to_line.
379 (_cpp_do_file_change): Update.
380 * cppinit.c (cpp_start_read): Update line kludge.
381 * cpplex.c (handle_newline): Don't update lineno and pseudo_newlines.
382 (trigraph_ok): Use logical line numbers for diagnostics.
383 (skip_block_comment): Likewise.
384 (skip_whitespace): Likewise.
385 (skip_line_comment): Use pfile->line instead.
386 (_cpp_lex_token): Update to use logical line numbering exclusively.
387 Handle BOL locally. Accept new lines in directives, but keep
388 pfile->line decremented. Diagnostics use logical lines. Update
389 directive handling.
390 * cpplib.c (SEEN_EOL): New.
391 (skip_rest_of_line, check_eol): Use it.
392 (end_directive): Increase line number when accepting the newline
393 at the end of a directive.
394 (run_directive): Simplify.
395 (do_line): Bad LC_LEAVEs become LC_RENAMEs. Update.
396 (_cpp_do_file_change): Update to take buffer line number as an
397 argument, and store the current map in the cpp_reader. Remove
398 line number kludges.
399 (_cpp_do__Pragma): Restore output position after a _Pragma.
400 (cpp_push_buffer): Don't set output line or lineno.
401 (_cpp_pop_buffer): Transfer more info from a faked buffer.
402 Remove line kludge. Set output_line.
403 * cppmacro.c (builtin_macro): Update handling of __LINE__.
404 (parse_arg): Use logical lines.
405 (save_lookahead_token): Save EOFs too now.
406 * cppmain.c (struct printer): Fix comments.
407 (printer_init): Simplify, let caller do errors.
408 (scan_translation_unit, check_multiline_token, dump_macro): Update.
409 (maybe_print_line): Simplify.
410 (print_line): Don't print a linemarker if -P.
411 (cb_define, cb_undef, cb_def_pragma, cb_ident, cb_include): Update.
412 (cb_file_change): Simplify.
413 * line-map.h (LAST_SOURCE_LINE): Fix.
414 (CURRENT_LINE_MAP): New.
415
416 2001-08-05 Bernd Schmidt <bernds@redhat.com>
417
418 * doloop.c (doloop_modify_runtime): Properly compute number of
419 iterations if loop was unrolled.
420
421 * alias.c (rtx_equal_for_memref_p): VALUEs are only identical
422 if their CSELIB_VAL_PTRs are.
423
424 * config/ia64/ia64.c (struct spill_fill_data): New member prev_insn.
425 (setup_spill_pointers): Initialize it.
426 (spill_restore_mem): Set it.
427 (do_spill, do_restore): Use it to add REG_INC note.
428 * config/ia64/ia64.md (movti_internal): Add REG_INC notes as needed.
429
430 * config/ia64/ia64.c (ia64_sched_reorder): Defer scheduling of
431 asms if other insns are available.
432
433 * config/ia64/ia64.c (condop_operator): New predicate.
434 * config/ia64/ia64.h (PREDICATE_CODES): Add it.
435 * config/ia64/ia64.md (cond_opsi2_internal and splitters): New
436 patterns.
437
438 * expr.c (expand_expr, case COND_EXPR): Prefer working with a
439 temporary register than directly using a MEM.
440
441 2001-08-04 Hans-Peter Nilsson <hp@bitrange.com>
442
443 * config/sh/sh.c (sh_asm_named_section): Fix typo in align
444 parameter in last change.
445
446 2001-08-04 Zack Weinberg <zackw@panix.com>
447
448 * sparc.md: Don't use #if inside C test expression.
449
450 2001-08-04 Richard Henderson <rth@redhat.com>
451
452 * i386.c: Revert 07-30 ix86_output_main_function_alignment_hack.
453
454 2001-08-04 Neil Booth <neil@daikokuya.demon.co.uk>
455
456 * cpphash.h (struct cpp_reader): New member directive_line.
457 * cpplib.h (struct cpp_callbacks): Update prototypes of callbacks.
458 * cpplib.c (do_define, do_undef, do_ident, do_include_common,
459 do_pragma): Pass line to callbacks.
460 (start_directive): Record line of directive.
461 * cppmain.c (cb_ident, cb_define, cb_undef, cb_def_pragma,
462 cb_include): Similarly.
463 * c-lex.c (cb_ident, cb_define, cb_undef, cb_def_pragma):
464 Similarly.
465
466 2001-08-04 Hans-Peter Nilsson <hp@bitrange.com>
467
468 * config/d30v/d30v.h: Fix typo in start of UNIQUE_SECTION
469 comment.
470
471 Sat Aug 4 13:51:36 CEST 2001 Jan Hubicka <jh@suse.cz>
472
473 * loop.c (try_copy_prop); Kill invalidated REG_EQUAL notes.
474
475 * reload1.c (fixup_abnormal_edges): New static function.
476 (reload): Use it.
477
478 * flow.c (need_fake_edge_p): New function.
479 (flow_call_edges_add): Fix handling of noreturn and sibbling calls;
480 avoid call insn to be very last insn in the insn stream.
481
482 * profile.c (branch_prob): Call flow_call_edges_add instead of
483 doing that by hand; cleanup cfg to re-merge basic blocks once
484 we are done.
485
486 2001-08-04 Neil Booth <neil@cat.daikokuya.demon.co.uk>
487
488 * Makefile.in (CPPLIB_H): New, so that dependencies on cpplib.h
489 are also on line-map.h.
490 * cppfiles.c (stack_include_file): Update.
491 * cpphash.h (struct cpp_buffer): New member return_at_eof.
492 (_cpp_pop_buffer): New.
493 * cppinit.c (cpp_destroy, cpp_finish): Update.
494 (do_includes): Mark each buffer to return at EOF.
495 * cpplex.c (_cpp_lex_token): Pop buffers at EOF. Continue or
496 return as requested.
497 * cpplib.c (run_directive, do_line, cpp_push_buffer): Update.
498 (cpp_pop_buffer): Rename _cpp_pop_buffer. Stop skipping.
499 * cpplib.h (cpp_pop_buffer): Remove.
500 (cpp_scan_buffer_nooutput): Rename cpp_scan_nooutput.
501 * cppmacro.c (cpp_scan_buffer_nooutput): Similarly. No need to pop
502 buffers.
503 * cppmain.c (scan_buffer): Rename scan_translation_unit. No need
504 to pop buffers.
505 (do_preprocessing): Update.
506 * fix-header.c (read_scan_file): Update. No need to pop buffers.
507 * c-parse.in (_yylex): Similarly.
508 * scan-decls.c (scan_decls): Similarly.
509 * line-map.h: Update comments.
510
511 * objc/Make-lang.in (objc-act.o): Update dependencies.
512
513 2001-08-04 Stephane Carrez <Stephane.Carrez@worldnet.fr>
514
515 * config/m68hc11/m68hc11.md ("cmphi_1", "cmpqi_1"): Allow memory
516 and soft register for operand 0.
517 ("cmphi_z_used", "cmpqi_z_used"): Allow memory for operand 0.
518
519 2001-08-04 Stephane Carrez <Stephane.Carrez@worldnet.fr>
520
521 * config/m68hc11/m68hc11.md ("bitcmpqi"): Allow memory and soft
522 register for operand 0.
523 ("bitcmpqi_z_used"): Allow memory for operand 0.
524 (split "bitcmpqi"): New split to handle address reg as operand 1.
525
526 2001-08-04 Andreas Jaeger <aj@suse.de>
527
528 * gcse.c: Revert Daniel's last patch.
529
530 2001-08-03 Zack Weinberg <zackw@stanford.edu>
531
532 * sparc-protos.h: Add prototypes for fp_zero_operand and
533 reg_or_0_operand.
534 * sh-protos.h: Add prototype for fpul_operand.
535
536 2001-08-04 Hans-Peter Nilsson <hp@bitrange.com>
537
538 * doc/extend.texi (Other Builtins): Fix typo in last change.
539
540 2001-08-03 Richard Henderson <rth@redhat.com>
541
542 * target.h (gcc_target): Add asm_out.named_section,
543 section_type_flags, have_named_sections.
544 * target-def.h (TARGET_ASM_NAMED_SECTION): New.
545 (TARGET_HAVE_NAMED_SECTIONS): New.
546 (TARGET_SECTION_TYPE_FLAGS): New.
547
548 * Makefile.in (toplev.o): Depend on TARGET_H.
549 (varasm.o, dbxout.o): Likewise.
550 * c-common.c (decl_attributes): Check targetm.have_named_sections
551 instead of ifdef ASM_OUTPUT_SECTION_NAME.
552 * dbxout.c (dbxout_function_decl): Likewise.
553 (dbxout_function_end): Likewise.
554 * toplev.c (compile_file): Likewise.
555 * varasm.c (exception_section): Likewise.
556 * cp/decl2.c (finish_objects): Likewise.
557
558 * defaults.h (EH_FRAME_SECTION): Remove.
559 (EH_FRAME_SECTION_ASM_OP): Remove.
560 (EH_FRAME_SECTION_NAME): New.
561 (UNIQUE_SECTION): Don't depend on ASM_OUTPUT_SECTION_NAME.
562 (UNIQUE_SECTION_P): Remove.
563 * dwarf2out.c (SECTION_FORMAT): Remove.
564 (ASM_OUTPUT_SECTION): Remove.
565 (output_call_frame_info): Use named_section_flags.
566 (output_comp_unit, dwarf2out_start_source_file): Likewise.
567 (dwarf2out_end_source_file, dwarf2out_define): Likewise.
568 (dwarf2out_undef, dwarf2out_init, dwarf2out_finish): Likewise.
569 * varasm.c (in_eh_frame, eh_frame_section): Remove.
570 (named_section_flags): New.
571 (named_section): Use it and targetm.section_type_flags.
572 (resolve_unique_section): New.
573 (assemble_start_function): Use it.
574 (asm_emit_uninitialised, assemble_variable): Likewise.
575 (default_section_type_flags): New.
576 (default_no_named_section, default_elf_asm_named_section): New.
577 (default_coff_asm_named_section, default_pe_asm_named_section): New.
578 * output.h: Update varasm.c decls.
579 (SECTION_*): New flags.
580
581 * crtstuff.c: Check EH_FRAME_SECTION_NAME not EH_FRAME_SECTION_ASM_OP.
582 (__EH_FRAME_BEGIN__, __FRAME_END__): Use attribute section.
583
584 * config/elfos.h (UNIQUE_SECTION_P): Remove.
585 * config/alpha/elf.h, config/arm/linux-elf.h: Likewise.
586 * config/arm/pe.h, config/arm/unknown-elf.h: Likewise.
587 * config/i386/cygwin.h, config/i386/djgpp.h: Likewise.
588 * config/i386/i386-interix.h, config/i386/win32.h: Likewise.
589 * config/ia64/sysv4.h, config/mcore/mcore-pe.h: Likewise.
590 * config/mips/elf.h, config/mips/elf64.h: Likewise.
591 * config/mips/iris6gld.h, config/mips/mips.h: Likewise.
592 * config/pa/pa64-hpux.h,
593
594 * config/elfos.h (ASM_OUTPUT_SECTION_NAME): Remove.
595 (TARGET_ASM_NAMED_SECTION): New.
596 * config/psos.h, config/a29k/a29k.h, config/alpha/elf.h: Likewise.
597 * config/alpha/vms.h, config/arm/coff.h: Likewise.
598 * config/arm/conix-elf.h, config/arm/elf.h: Likewise.
599 * config/arm/linux-elf.h, config/arm/pe.h: Likewise.
600 * config/arm/unknown-elf.h, config/avr/avr.h: Likewise.
601 * config/c4x/c4x.h, config/h8300/h8300.h: Likewise.
602 * config/i386/cygwin.h, config/i386/djgpp.h: Likewise.
603 * config/i386/i386-interix.h, config/i386/i386elf.h : Likewise.
604 * config/i386/sco5.h, config/i386/win32.h: Likewise.
605 * config/m68k/coff.h, config/mcore/mcore-pe.h: Likewise.
606 * config/mcore/mcore.h, config/mips/elf.h: Likewise.
607 * config/mips/elf64.h, config/mips/iris6.h: Likewise.
608 * config/mips/netbsd.h, config/mips/openbsd.h: Likewise.
609 * config/pa/pa64-hpux.h, config/rs6000/sysv4.h: Likewise.
610 * config/rs6000/xcoff.h, config/sh/sh.h: Likewise.
611 * config/sparc/sysv4.h: Likewise.
612
613 * config/nextstep.h: Error until named sections implemented.
614
615 * config/a29k/a29k.c (a29k_asm_named_section): New.
616 * config/alpha/alpha.c (SECTION_VMS_OVERLAY): New.
617 (vms_section_type_flags, vms_asm_named_section): New.
618 * config/arm/arm.c (arm_elf_asm_named_section): New.
619 * config/avr/avr.c (asm_output_section_name): Remove.
620 * config/avr/avr-protos.h: Update.
621 * config/c4x/c4x.c (c4x_asm_named_section): New.
622 * config/h8300/h8300.c (h8300_asm_named_section): New.
623 * config/i386/i386.c (sco_asm_named_section): New.
624 * config/i386/winnt.c (SECTION_PE_SHARED): New.
625 (i386_pe_section_type_flags): New.
626 (i386_pe_asm_named_section): New.
627 * config/i386/i386-protos.h: Update.
628 * config/m68k/m68k.c (m68k_coff_asm_named_section): New.
629 * config/mcore/mcore.c (mcore_asm_named_section): New.
630 * config/mips/mips.c (iris6_asm_named_section): New.
631 * config/mips/mips.h (ENCODE_SECTION_INFO): Use DECL_ONE_ONLY
632 instead of UNIQUE_SECTION_P.
633 * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): New.
634 (xcoff_asm_named_section): New.
635 * config/sh/sh.c (sh_asm_named_section): New.
636 * config/sparc/sparc.c (sparc_elf_asm_named_section): New.
637
638 * config/i386/djgpp.h (EH_FRAME_SECTION_ASM_OP): Remove.
639 * config/i386/sco5.h (EH_FRAME_SECTION_ASM_OP*): Remove.
640 (EH_FRAME_SECTION_NAME): New.
641 (EXCEPTION_SECTION): New.
642 * config/ia64/ia64.h (EH_FRAME_SECTION_ASM_OP): Remove.
643 (DEBUG_*_SECTION): Remove.
644 * config/m68k/rtemself.h (EH_FRAME_SECTION_ASM_OP): Remove.
645 * config/mips/iris6.h (DEBUG_*_SECTION): Remove.
646 (EH_FRAME_SECTION_ASM_OP): Remove.
647
648 * doc/tm.texi (UNIQUE_SECTION_P): Remove.
649 (ASM_OUTPUT_SECTION_NAME): Remove.
650 (TARGET_ASM_NAMED_SECTION): New.
651 (TARGET_HAVE_NAMED_SECTIONS): New.
652 (TARGET_SECTION_TYPE_FLAGS): New.
653 (EH_FRAME_SECTION_ASM_OP): Remove.
654 (EH_FRAME_SECTION_NAME): New.
655
656 2001-08-03 Zack Weinberg <zackw@stanford.edu>
657
658 * builtins.c (fold_builtin_constant_p): Return integer_zero_node
659 for complex expressions when cfun == 0.
660 * doc/extend.texi: Document that __builtin_constant_p can be
661 used in data initializers as well as functions.
662
663 2001-08-03 Alexandre Oliva <aoliva@redhat.com>
664
665 * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Declare
666 variable I locally, instead of expecting a declaration in the
667 calling context.
668
669 2001-08-03 Richard Henderson <rth@redhat.com>
670
671 * except.c (collect_one_action_chain): Add an explicit cleanup
672 action if regions surrounding a catch were encoded entirely
673 within the call-site entry.
674
675 2001-08-03 Richard Henderson <rth@redhat.com>
676
677 * dbxout.c (dbxout_symbol_location): Flatten subregs first;
678 don't take REGNO of a non-register.
679
680 2001-08-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
681
682 * gthr-dce.h (__GTHREAD_MUTEX_INIT_FUNCTION and
683 __GTHREAD_MUTEX_INIT_DEFAULT): New macros for mutex initialization.
684 (__gthread_key_delete): Remove code for __PTHREAD_LIBRARY_VERSION_1 >= 1
685 (__gthread_mutex_init_function): New function for mutex initialization.
686
687 2001-08-03 Daniel Berlin <dan@cgsoftware.com>
688
689 * Makefile.in: Revert screwed up commit.
690
691 2001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
692
693 * config/m68hc11/t-m68hc11-gas (T_CPPFLAGS): Add _ctor and _dtor.
694 * config/m68hc11/larith.asm (_exit): Split in several sub-sections
695 merged by linker script to get a final _exit().
696 (__do_global_dtors): New for destructor handling in specific exit
697 section.
698 (__do_global_ctors): New for constructors in specific install section.
699 (__map_data_section): Map data sections before running constructors.
700 * config/m68hc11/m68hc11.h (INT_ASM_OP): Define to use .word.
701 (CTORS_SECTION_ASM_OP): Define to put in readonly section.
702 (DTORS_SECTION_ASM_OP): Likewise.
703 (CTORS_SECTION_FUNCTION): Define to force a reference to
704 __do_global_ctors.
705 (DTORS_SECTION_FUNCTION): Likewise for __do_global_dtors.
706
707 2001-08-03 Daniel Berlin <dan@cgsoftware.com>
708
709 * ChangeLog: Fix date on previous ChangeLog entry for GCSE.
710
711 * Makefile.in: Add df.h to gcse.c dependencies.
712
713 2001-08-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
714
715 * varasm.c (output_constant_def_contents): Use for the length of a
716 string constant either its TREE_STRING_LENGTH or its int_size_in_bytes
717 depending on which is larger.
718
719 2001-08-03 Daniel Berlin <dan@cgsoftware.com>
720
721 * gcse.c: Include df.h for use as a dataflow analyzer.
722 Remove regvec.
723 Declaration of reg_set_info: gone.
724 New df_analyzer variable used by store motion.
725 (reg_set_info): Deleted.
726 (mark_mem_regs): New function, analyze regs used by a mem.
727 (store_ops_ok): Use dataflow analyzer results to determine if
728 necessary regs are changed in the block.
729 (find_moveable_store): Remove check for symbol ref, we can handle
730 much more complex expressions now.
731 (compute_store_table): Remove most of the code, it's unnecessary
732 now that the dataflow analyzer records the info for us.
733 (store_killed_after): Add parameter to say whether to do the
734 store_ops_okay test, used to speed up testing when we already know
735 the answer, and just want to know if the store itself was killed.
736 (build_store_vector): Largely rewritten to calculate the various
737 vectors properly, and somewhat optimized.
738 (store_motion): Init the df_analyzer, get REG_DEF chains.
739 Also handle trapping expressions (since mems almost always trap)
740 (simple_mem): Redefine what a simple mem is.
741
742 2001-08-03 DJ Delorie <dj@redhat.com>
743
744 * ifcvt.c (noce_get_alt_condition): Don't make an auxiliary
745 set from a constant part of the condition.
746
747 2001-08-01 Andrew Cagney <ac131313@redhat.com>
748
749 * mkdeps.c (deps_add_default_target): Make local variable
750 ``start'' a const char pointer.
751 * dwarf2out.c (compute_section_prefix): Localize use of ``p''.
752
753 2001-08-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
754
755 * doc/install.texi (Configuration): Fix markup.
756 (Specific, i?86-*-udk): Likewise.
757 (Specific, alpha*-dec-osf*): Warn against --with-gnu-as,
758 --with-gnu-ld.
759 Document --enable-threads and --enable-libgcj status.
760 (Specific, mips-sgi-irix*): Canonicalize triples.
761 (Specific, mips-sgi-irix5): Warn about problems with this config.
762 Mention required GNU as patch.
763 Native assembler problems are fixed.
764 (Specific, mips-sgi-irix6): Update O32 ABI support status.
765 Document --enable-threads and --enable-libgcj status.
766
767 2001-08-02 Nick Clifton <nickc@cambridge.redhat.com>
768
769 * Makefile.in, mklibgcc.in: Restore changes with fixed invocation
770 of mkinstalldirs.
771
772 2001-08-03 Richard Henderson <rth@redhat.com>
773
774 * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't write to
775 constant data.
776
777 2001-08-03 Richard Henderson <rth@redhat.com>
778
779 * rtlanal.c (find_first_parameter_load): Stop if we
780 reach a CODE_LABEL at BOUNDARY.
781
782 2001-08-03 Richard Henderson <rth@redhat.com>
783
784 * config/alpha/alpha.md (force_movdi): New insn.
785 * config/alpha/alpha.c (alpha_expand_prologue): Use it.
786 Tweek FRP marking of VMS prologue insns.
787 * config/alpha/vms.h (EPILOGUE_USES): New.
788
789 2001-08-02 Richard Henderson <rth@redhat.com>
790
791 * Makefile.in, mklibgcc.in: Revert mkinstalldirs change.
792
793 2001-08-02 Lars Brinkhoff <lars@nocrew.org>
794
795 * combine.c, config.gcc, cse.c, defaults.h, real.c, reload.c,
796 simplify-rtx.c, config/alpha/alpha.h, config/avr/avr.h,
797 config/convex/convex.h, config/d30v/d30v.c,
798 config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
799 config/elxsi/elxsi.h, config/fr30/fr30.h, config/m88k/m88k.c,
800 config/mips/mips.h, config/mn10200/mn10200.h,
801 config/mn10300/mn10300.h, config/pdp11/pdp11.md,
802 config/v850/v850.h, config/vax/openbsd.h,
803 config/vax/openbsd1.h, config/vax/ultrix.h,
804 config/vax/vax-protos.h, config/vax/vax.c, config/vax/vax.h,
805 config/vax/vax.md, config/vax/vaxv.h, config/vax/xm-vms.h,
806 cp/decl2.c, doc/contrib.texi, doc/cpp.texi, doc/gcc.texi,
807 doc/install.texi, doc/invoke.texi, doc/md.texi, doc/rtl.texi,
808 doc/tm.texi: consistently use "VAX", "VAXen", and "MicroVAX"
809 in comments and documentation.
810
811 2001-08-03 Neil Booth <neil@cat.daikokuya.demon.co.uk>
812
813 * line-map.c: New.
814 * line-map.h: New.
815 * Makefile.in (line-map.o): New.
816 (LIBCPP_OBJS, LIBCPP_DEPS): Update.
817 * c-lex.c (cb_file_change): Update for new cpp_file_change structure.
818 * cpperror.c (print_containing_files): Similarly.
819 (print_location): Update. Don't output a space before _Pragma.
820 * cppfiles.c (stack_include_file): Set to line 1 immediately.
821 (stack_include_filee, cpp_make_system_header): Update.
822 (_cpp_execute_include): Get logical line number right for calling
823 as-yet-unterminated #include.
824 * cpphash.h (struct cpp_reader): Add line_maps.
825 (_cpp_do_file_change): Update.
826 * cppinit.c (cpp_create_reader): Initialize line maps.
827 (cpp_destroy): Destroy line maps.
828 (cpp_start_read): Get logical line number right.
829 * cpplex.c (parse_string): Only warn once for multi-line strings.
830 Use boolean variable for null warning.
831 * cpplib.c (_cpp_handle_directive): End the directive if it isn't
832 already.
833 (do_include_common): End the directive early.
834 (do_line): Don't warn about out-of-range lines in preprocessed
835 source. Update. Remove unused variables.
836 (_cpp_do_file_change): Update for new line mapping.
837 (pragma_cb): New typedef.
838 (cpp_register_pragma): Stop looking ahead before calling the
839 handler. Clean up.
840 (do_pragma_system_header): End directive early.
841 (cpp_get_line_maps): New.
842 (cpp_pop_buffer): Fudge logical line. Update.
843 * cpplib.h: Include line-map.h
844 (enum cpp_fc_reason): Remove.
845 (struct cpp_file_change): Update.
846 (cpp_get_line_maps): New.
847 * cppmain.c (struct_printer): New member map.
848 (cb_file_change): Update for new mappings.
849 * fix-header.c (cb_file_change): Similarly.
850
851 2001-08-02 Nick Clifton <nickc@cambridge.redhat.com>
852
853 * Makefile.in (libgcc.mk): Define mkinstalldirs.
854 * mklibgcc.in: Use mkinstalldirs instead of mkdir.
855
856 2001-08-02 Lars Brinkhoff <lars@nocrew.org>
857
858 * config/vax/vax.c: include expr.h.
859
860 2001-08-02 Nick Clifton <nickc@cambridge.redhat.com>
861
862 * Makefile.in ($(srcdir)/configure): Only rebuild in
863 maintainer mode.
864 ($(srcdir)/config.in): Only define in maintainer mode.
865 ($(srcdir)/cstamp-h.in): Only define in maintainer mode.
866
867 2001-08-02 David Edelsohn <edelsohn@gnu.org>
868
869 * doc/install.texi (Install GCC: Binaries): Update Bull info.
870
871 2001-08-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
872
873 * gcc.c (set_collect_gcc_options): New function, split out from
874 main.
875 Ignore elided switches.
876 (do_spec_1): Invoke before executing command.
877 (set_input): Export.
878 Move declaration ...
879 * gcc.h (set_input): ... here.
880 * config/alpha/osf.h (ASM_FINAL_SPEC): Use %U.s to refer to input
881 file.
882
883 2001-08-02 Nathan Sidwell <nathan@codesourcery.com>
884
885 Kill -fhonor-std.
886 * doc/c-tree.texi (Namespaces): Remove std & -fhonor-std
887 interaction.
888 * doc/invoke.texi (C++ Dialect Options): Remove -fno-honor-std.
889
890 2001-08-02 Richard Sandiford <rsandifo@redhat.com>
891
892 * mips.md (movdicc): Make conditional on TARGET_64BIT. Likewise
893 for the unnamed instructions it expands to.
894
895 2001-08-02 Richard Henderson <rth@redhat.com>
896
897 * regclass.c (call_really_used_regs): Conditionally define.
898 (init_reg_sets_1): Don't use it if not defined.
899 (fix_register): Similarly, don't set it.
900
901 2001-08-01 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
902
903 * params.def (PARAM_MAX_INLINE_INSNS): Change default to 600.
904 Correct comment that had been missed in the previous change.
905
906 2001-08-01 Stan Shebs <shebs@apple.com>
907
908 * config/darwin.c (machopic_stub_name): Try matching by name.
909 (update_stubs): New function.
910 (darwin_encode_section_info): Call it and update_non_lazy_ptrs
911 unconditionally.
912
913 2001-08-01 Richard Henderson <rth@redhat.com>
914
915 * except.c (output_function_exception_table): Use assemble_align.
916 * varasm.c (assemble_eh_label): Remove.
917 (assemble_eh_align, assemble_eh_integer): Remove.
918
919 2001-08-01 Robert Lipe <robertl@caldera.com>
920
921 * dwarfout.c: Remove reference to README.DWARF.
922
923 2001-08-01 Andrew MacLeod <amacleod@redhat.com>
924
925 * regclass.c (call_really_used_regs): New array for registers which
926 are actually used by a call.
927 (init_reg_sets_1): Initialize regs_invalidated_by_call with the
928 new array.
929 (fix_register): Set call_really_used too.
930 * config/ia64/ia64.h (CALL_REALLY_USED_REGISTERS): Initialize.
931 * doc/tm.texi (CALL_REALLY_USED_REGISTERS): Document.
932
933 2001-08-01 Richard Henderson <rth@redhat.com>
934
935 * read-rtl.c (read_name): Consider \r whitespace.
936
937 2001-07-11 Andrew Cagney <ac131313@redhat.com>
938
939 * config.gcc: Recognize powerpc-*-netbsd*.
940
941 * doc/install.texi (Host/target specific installation notes for
942 GCC): Mention powerpc-*-netbsd*.
943
944 * config/rs6000/netbsd.h: New file.
945 (STANDARD_STARTFILE_PREFIX, LINK_SHLIB_SPEC): Redefine.
946 (LIB_DEFAULT_SPEC, STARTFILE_DEFAULT_SPEC): Redefine.
947 (ENDFILE_DEFAULT_SPEC, LINK_START_DEFAULT_SPEC): Redefine.
948 (LINK_OS_DEFAULT_SPEC, CPP_OS_DEFAULT_SPEC): Redefine.
949 (TARGET_VERSION): Redefine.
950
951 * config/rs6000/t-ppccomm (MULTILIB_MATCHES_SYSV): Recognize
952 mcall-netbsd as a match for mcall-sysv.
953 (EXTRA_MULTILIB_PARTS): Add ncrti$(objext) and ncrtn$(objext).
954 (ncrti.S, ncrtn.S): New targets.
955 ($(T)ncrti$(objext), $(T)ncrtn$(objext)): New targets.
956
957 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Recognize
958 "netbsd' as a V4 ABI.
959 (ASM_SPEC): Check for -mcall-netbsd.
960 (CC1_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC): Ditto.
961 (CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC): Ditto.
962 (LIB_SPEC, ENDFILE_SPEC): Ditto.
963 (LIB_NETBSD_SPEC, STARTFILE_NETBSD_SPEC): Define.
964 (ENDFILE_NETBSD_SPEC, LINK_START_NETBSD_SPEC): Define.
965 (LINK_OS_NETBSD_SPEC, CPP_OS_NETBSD_SPEC): Define.
966 (SUBTARGET_EXTRA_SPECS): Add NetBSD specs.
967
968 * doc/invoke.texi (Option Summary): Add -mcall-netbsd.
969 (RS/6000 and PowerPC Options): Mention -mcall-netbsd.
970
971 2001-08-01 Mark Kettenis <kettenis@gnu.org>
972
973 * unwind-pe.h (base_of_encoded_value, read_encoded_value): Define
974 only if NO_BASE_OF_ENCODED_VALUE isn't defined.
975 * unwind-dw2-fde.c (NO_BASE_OF_ENCODED_VALUE): Define before
976 including "unwind-pe.h".
977
978 Wed Aug 1 20:01:42 CEST 2001 Jan Hubicka <jh@suse.cz>
979
980 * rs6000.md (define_splits): Kill unused constraints.
981
982 Wed Aug 1 20:02:12 CEST 2001 Graham Stott <grahams@redhat.com>
983 Jan Hubicka <jh@suse.cz>
984
985 * function.c (thread_prologue_and_epilogue_insns): Kill code
986 dealing with non-existent CFG.
987
988 2001-08-01 Kazu Hirata <kazu@hxi.com>
989
990 * alias.c: Fix comment formatting.
991 * bitmap.c: Likewise.
992 * builtins.c: Likewise.
993 * calls.c: Likewise.
994 * c-common.c: Likewise.
995 * c-decl.c: Likewise.
996 * c-dump.c: Likewise.
997 * c-lex.c: Likewise.
998 * collect2.c: Likewise.
999 * combine.c: Likewise.
1000 * conflict.c: Likewise.
1001 * cppfiles.c: Likewise.
1002 * cppinit.c: Likewise.
1003 * cpplex.c: Likewise.
1004 * cpplib.c: Likewise.
1005 * cppmacro.c: Likewise.
1006 * cppspec.c: Likewise.
1007 * c-pragma.c: Likewise.
1008 * crtstuff.c: Likewise.
1009 * cse.c: Likewise.
1010 * cselib.c: Likewise.
1011 * c-semantics.c: Likewise.
1012 * c-typeck.c: Likewise.
1013
1014 2001-08-01 H.J. Lu <hjl@gnu.org>
1015
1016 * config/mips/linux.h (ASM_OUTPUT_IDENT): Defined.
1017
1018 2001-08-01 H.J. Lu <hjl@gnu.org>
1019
1020 * gcc/config/mips/linux.h (ASM_OUTPUT_SOURCE_LINE): Defined.
1021
1022 2001-08-01 Ziemowit Laski <zlaski@apple.com>
1023
1024 * c-parse.in (OBJC_NEED_RAW_IDENTIFIER): Define macro and flag for
1025 contextualizing Objective-C class name lookup by the lexer.
1026 (typespec_reserved_nonattr): Disable ObjC class name lookup after
1027 seeing a TYPESPEC.
1028 (protocoldef): Add support for forward @protocol declarations.
1029 (yylexname): Suppress ObjC class name lookup in certain contexts;
1030 re-enable after lookup is complete.
1031 (_yylex): Re-enable ObjC class name lookup when certain
1032 punctuation marks are seen.
1033
1034 * objc/objc-act.c (check_protocol_recursively): New function used
1035 for finding circular dependencies in protocols.
1036 (objc_declare_protocols): New function for handling forward
1037 @protocol declarations.
1038 (receiver_is_class_object): Detect the case when 'self' is used
1039 inside of a class method.
1040 (build_message_expr): Issue a warning if class method is desired
1041 but instance method is found instead.
1042 (conforms_to_protocol): Streamline.
1043 (objc_comptypes): Detect the fact that 'Bar<Foo> foo' conforms to
1044 protocol Foo, even if 'Bar foo' does not.
1045 (check_protocols): Streamline.
1046 (start_protocol): Add checks for circular and duplicate protocol
1047 definitions.
1048 (encode_aggregate_within): For typedefs of structs, encode the
1049 underlying struct.
1050 * objc/objc-act.h (PROTOCOL_DEFINED): New tree accessor.
1051 (objc_declare_protocols): New prototype.
1052
1053 2001-08-01 Neil Booth <neil@cat.daikokuya.demon.co.uk>
1054
1055 * cpphash.h (struct cpp_reader): New members line, pseudo_newlines.
1056 * cpplex.c (handle_newline): Update prototype. Maintain logical
1057 line number.
1058 (skip_escaped_newlines, skip_block_comment, parse_string):
1059 Update accordingly.
1060 (_cpp_lex_token): Update, and store token position within the token.
1061 * cpplib.h (struct cpp_token): Add line and column entries.
1062 * cppmacro.c (replace_args): Position stringified tokens correctly.
1063
1064 2001-08-01 Andreas Jaeger <aj@suse.de>
1065
1066 * basic-block.h: Add prototype for last_loop_beg_note.
1067
1068 2001-07-31 Alexandre Petit-Bianco <apbianco@redhat.com>
1069
1070 * expr.c (safe_from_p): Use WITH_CLEANUP_EXPR_RTL instead of
1071 RTL_EXPR_RTL while handling WITH_CLEANUP_EXPR nodes. Fixed typo in
1072 comment.
1073 (expand_expr): Use WITH_CLEANUP_EXPR_RTL instead of RTL_EXPR_RTL
1074 while handling WITH_CLEANUP_EXPR node. Use second operand calling
1075 expand_decl_cleanup.
1076 * tree.c (firt_rtl_op): The third operand of WITH_CLEANUP_EXPR is
1077 the first RTX.
1078 (simple_cst_equal): WITH_CLEANUP_EXPR node to use its second
1079 operand while calling simple_cst_equal.
1080 * tree.def (WITH_CLEANUP_EXPR): Switched operands: the second
1081 operand is the cleanup expression, the third is the RTL_EXPR.
1082 * tree.h (WITH_CLEANUP_EXPR_RTL): New macro.
1083
1084 2001-07-31 Jeff Sturm <jsturm@one-point.com>
1085
1086 * except.c (duplicate_eh_regions): Test n_array[i] for NULL.
1087
1088 2001-07-31 matthew green <mrg@eterna.com.au>
1089
1090 * config.gcc (i386-*-netbsdelf): New description.
1091 * config/i386/netbsd-elf.h: New file.
1092
1093 2001-07-30 Geoffrey Keating <geoffk@redhat.com>
1094
1095 * loop.c (check_dbra_loop): Use single_set to compute
1096 jump_label.
1097
1098 2001-07-31 Daniel Berlin <dan@cgsoftware.com>
1099
1100 PowerPC reorg and support for powerpc64-*-linux*.
1101
1102 Also fixes emitting of constants on 32 bit and 64 bit
1103 platforms.
1104
1105 * config.gcc: powerpc64-*-linux* is a new target.
1106 Things that needed aix.h now also include xcoff.h
1107
1108 * config/rs6000/rs6000.h: Split XCOFF specific stuff into
1109 xcoff.h.
1110 Move AIX specific stuff into aix.h.
1111 (TARGET_AIX): Renamed to TARGET_XCOFF, since the AIX ABI is used
1112 with more than just XCOFF now.
1113 (SET_ASM_OP): Remove, now defined where needed.
1114 (FUNCTION_PROLOGUE): New macro definition.
1115 (FUNCTION_EPILOGUE): New macro definition.
1116 (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): New macro definition.
1117
1118 * config/rs6000/xcoff.h: New file.
1119
1120 * config/rs6000/linux64.h: New file.
1121
1122 * config/rs6000/darwin.h: Copy needed AIX alignment definitions.
1123
1124 2001-07-31 Alan Modra <amodra@bigpond.net.au>
1125
1126 * rs6000.c (print_operand_address): Handle ELF syntax.
1127 (output_toc): Simplify. Use DOUBLE_INT_ASM_OP.
1128 * rs6000.md (load_toc_aix_di): Handle ELF syntax.
1129 * rs6000.h (ASM_OUTPUT_DOUBLE_INT, ASM_LONG): Use DOUBLE_INT_ASM_OP.
1130
1131 2001-07-31 David Edelsohn <edelsohn@gnu.org>
1132
1133 * rs6000.c (rs6000_override_options): Only disable
1134 flag_function_sections for XCOFF.
1135 (exact_log2_cint_operand): New predicate.
1136 (reg_or_{add,sub}_cint64_operand): New predicates.
1137 (add_operand): Compare CONST_INT with fewer function calls.
1138 (rs6000_emit_set_const, rs6000_emit_set_long_const): New functions.
1139 (print_operand, case 'p'): Ensure positive operand.
1140 (rs6000_emit_load_toc_table): No load_toc_v4_pic_di.
1141 * rs6000.h (CONST_OK_FOR_LETTER_P, case 'N'): Ensure positive value.
1142 (PREDICATE_CODES): Add new predicates.
1143 * rs6000.md (addsi3): Split 32-bit constants more correctly.
1144 (divsi3, modsi3): Ensure positive power-of-2.
1145 (adddi3): Use new predicate. Split 32-bit constants more
1146 correctly. Re-arrange splitter to handle any constant.
1147 (subdi3): Use new predicate.
1148 (divdi3, moddi3): Ensure positive power-of-2.
1149 (movdi): Use rs6000_emit_set_const.
1150 (load_toc_v4_pic_di): Delete.
1151
1152 2001-07-31 Graham Stott <grahams@redhat.com>
1153
1154 * function.c (pad_below): Revert 2001-07-26 patch.
1155
1156 Tue Jul 31 15:37:35 CEST 2001 Jan Hubicka <jh@suse.cz>
1157
1158 * reg-stack (convert_regs_1): Fix best edge condition.
1159
1160 Tue Jul 31 15:33:27 CEST 2001 Jan Hubicka <jh@suse.cz>
1161
1162 * jump.c (duplicate_loop_exit_test): Better test for jumps
1163 entering the loop; create loop pre_header.
1164
1165 2001-07-31 Hartmut Penner <hpenner@de.ibm.com>
1166
1167 * doc/install.texi: Add s390 and s390x as new targets.
1168 * doc/invoke.texi: Add documantation of S/390 and zSeries
1169 target options.
1170 * doc/md.texi: Add documantation of S/390 and zSeries constraints.
1171
1172 2001-07-30 Roman Zippel <zippel@linux-m68k.org>
1173
1174 * config/m68k/m68k.md: Replace all general_operand with
1175 nonimmediate_operand for all destinations.
1176 * config/m68k/m68k.c (not_sp_operand): Likewise.
1177
1178 Mon Jul 30 23:20:34 EDT 2001 John Wehle (john@feith.com)
1179
1180 * flow.c (merge_blocks): Return 1 if an extra jump is inserted.
1181
1182 2001-07-30 Richard Henderson <rth@redhat.com>
1183
1184 * config/ia64/ia64.h (DEBUG_RANGES_SECTION): New.
1185 * config/mips/iris6.h (DEBUG_RANGES_SECTION): New.
1186
1187 2001-07-30 Roman Zippel <zippel@linux-m68k.org>
1188
1189 * config/m68k/m68k.h (TARGET_SWITCHES/TARGET_OPTIONS):
1190 Add missing doc strings
1191 * config/m68k/linux-aout.h (SUBTARGET_SWITCHES): Likewise
1192 * config/m68k/linux.h (SUBTARGET_SWITCHES): Likewise
1193
1194 Mon Jul 30 22:16:08 CEST 2001 Jan Hubicka <jh@suse.cz>
1195
1196 * i386.c (ix86_output_main_function_alignment_hack): New function.
1197 (TARGET_ASM_FUNCTION_PROLOGUE): Default to it.
1198
1199 * flow.c (mark_dfs_back_edges): Move from loop_p ; mark back
1200 edges by EDGE_DFS_BACK flag.
1201 (dump_edge_info): Add dfs_back flag.
1202 * basic-block.h (EDGE_DFS_BACK): New constant.
1203 (mark_dfs_back_edges): Declare.
1204 * alias.c (loop_p): Remove.
1205 (mark_constant_function): Use mark_dfs_back_edges.
1206
1207 * reg-stack.c (block_info_def): Add predecesors counter and stack_out.
1208 (reg_to_stack): Call mark_dfs_back_edges; count the predecesors.
1209 (compensate_edge): Break out from ...
1210 (convert_regs_1): ... here; do smart choosing of stack_out to copy.
1211 (convert_regs_2): Set block_done once block is really done;
1212 Do updating of the predecesors counts.
1213
1214 * toplev.c (rest_of_compilation): Recompute block_for_insn
1215 before post-reload cfg_cleanup.
1216 * function.c (thread_prologue_epilogue_insns):
1217 Call set_block_for_new_insns when emitting prologue directly.
1218
1219 2001-07-30 Andreas Jaeger <aj@suse.de>
1220
1221 * jump.c: Add prototype for mark_modified_reg.
1222
1223 * cse.c (set_live_p): Add unused attribute.
1224
1225 * gcov.c (calculate_branch_probs): Use gcov_type to avoid
1226 overflow.
1227 (scan_for_source_files): Use long for count to avoid overflow.
1228 (output_data): Likewise.
1229 (output_data): Don't use string concatatenation to silence gcc
1230 -traditional.
1231
1232 * predict.c: Fix typos and grammar.
1233
1234 * gcse.c (insert_insn_end_bb): Remove unused variables.
1235
1236 Mon Jul 30 21:54:53 CEST 2001 Jan Hubicka <jh@suse.cz>
1237
1238 * flow.c (mark_set_1): Use REG_FREQ_FROM_BB.
1239 (attempt_auto_inc): LIkewise.
1240 (mark_used_reg): Likewise.
1241 (try_pre_increment_1): Likewise.
1242 * regclass.c (regclass): Likewise.
1243 * global.c (allocno_compare): Update comment; change scaling factor.
1244 * local-alloc.c (QTY_CMP_PRI): Likewise.
1245 * regs.h (REG_FREQ_FROM_BB): New.
1246 (REG_FREQ_MAX): Likewise.
1247
1248 2001-07-30 H.J. Lu <hjl@gnu.org>
1249
1250 * config/mips/linux.h (CPLUSPLUS_CPP_SPEC): Add
1251 -D_GNU_SOURCE.
1252
1253 2001-07-30 H.J. Lu (hjl@gnu.org)
1254
1255 * config/mips/linux.h (ASM_DECLARE_FUNCTION_NAME): Defined.
1256 (ASM_DECLARE_FUNCTION_SIZE): Likewise.
1257 (FUNCTION_NAME_ALREADY_DECLARED): Likewise.
1258
1259 2001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
1260
1261 * config/arm/t-arm-elf (MULTILIB_EXCEPTIONS): Skip -mthumb as well
1262 as -mthumb-interwork when -mcpu=arm7 is specified.
1263
1264 Mon Jul 30 17:44:43 CEST 2001 Jan Hubicka <jh@suse.cz>
1265
1266 * predict.def (noreturn, loop branch, loop exit): Mark as first
1267 match heuristics.
1268
1269 Mon Jul 30 12:52:11 CEST 2001 Jan Hubicka <jh@suse.cz>
1270
1271 * combine.c (try_combine): Avoid barrier after noop jumps.
1272
1273 2001-07-29 Neil Booth <neil@cat.daikokuya.demon.co.uk>
1274
1275 * cpphash.h (struct cpp_reader): Remove import_warning.
1276 * cpplib.c (skip_rest_of_line): Don't bother turning off
1277 macro expansion.
1278 (parse_include): Move include handling to...
1279 (do_include_common): ... here. Move import warning from...
1280 (do_import): ... here.
1281 (do_pragma_poison): Don't do a callback for poison identifiers.
1282 * cpplib.h (struct cpp_callbacks): Don't do poison callbacks.
1283 * cppmain.c (setup_callbacks): Similarly.
1284
1285 Sun Jul 29 23:26:50 CEST 2001 Jan Hubicka <jh@suse.cz>
1286
1287 * rtlanal.c (parms_set, find_first_parameter_load): Break out from...;
1288 handle multiple sets.
1289 * except.c (sjlj_mark_call_sites): .... here.
1290 * gcse.c (insert_insn_end_bb): Use find_first_parameter_load.
1291
1292 Sun Jul 29 21:38:45 CEST 2001 Jan Hubicka <jh@suse.cz>
1293
1294 Suggested by Richard Henderson and Richard Kenner:
1295 * combine.c (recog_for_combine): Use the fake recog
1296 only if instruction does not match.
1297 * rtl.h (NOOP_MOVE_INSN_CODE): New.
1298 * rtlanal.c (noop_move_p): Always return 1 for NOOP_MOVE_INSN_CODE.
1299
1300 * combine.c (try_combine): Discover noop jump as direct jump.
1301
1302 2001-07-29 Daniel Berlin <dan@cgsoftware.com>
1303
1304 * df.c (df_rd_global_compute): Add successors to worklist, not
1305 current item.
1306 (df_ru_global_compute): Ditto.
1307
1308 2001-07-27 Daniel Berlin <dan@cgsoftware.com>
1309
1310 * regclass.c (reg_scan_mark_refs): Increment REG_N_REFS when we
1311 increment REG_N_SETS.
1312
1313 2001-07-26 Daniel Berlin <dan@cgsoftware.com>
1314
1315 * sbitmap.h: New prototype for sbitmap_a_xor_b.
1316
1317 * sbitmap.c (sbitmap_a_xor_b): New function.
1318 ifdef the basic block stuff on IN_GCC.
1319
1320 2001-07-29 Neil Booth <neil@cat.daikokuya.demon.co.uk>
1321
1322 * cppexp.c (parse_defined): Always record the macro name.
1323 (lex): Don't worry about identifiers, or special-case
1324 CPP_NOT here.
1325 (_cpp_parse_expr): Figure out at the end of the routine
1326 whether we saw a valid !defined() expression.
1327 * cppfiles.c (stack_include_file): Update for mi_valid.
1328 (_cpp_pop_file_buffer): Similarly.
1329 * cpplex.c (_cpp_lex_token): Similarly.
1330 * cpphash.h (enum mi_state, enum mi_ind, mi_state,
1331 mi_if_not_defined, mi_lexed): Remove.
1332 (mi_valid): New.
1333 * cpplib.c (do_if): Simplify.
1334 (do_endif, push_conditional, _cpp_handle_directive): Update
1335 for renaming of mi_state to mi_valid.
1336 doc:
1337 * cpp.texi: Add index entries for digraphs, and add comment
1338 that C++ refers to them as alternative tokens.
1339
1340 Sun Jul 29 18:59:13 CEST 2001 Jan Hubicka <jh@suse.cz>
1341
1342 * basic-block.h (CLEANUP_PRE_LOOP): New.
1343 * except.c (finish_eh_generation): Update call of cleanup_cfg.
1344 * sibcall.c (optimize_sibling_calls): Likewise.
1345 * toplev.c (rest_of_compilation): Likewise.
1346 * flow.c (try_forward_edges): Take argument MODE;
1347 do not forward over loop pre-headers if CLEANUP_PRE_LOOP.
1348 (try_optimize_cfg): Update call of try_forward_edges.
1349
1350 Sun Jul 29 18:59:56 CEST 2001 Roman Zippel <zippel@linux-m68k.org>
1351 Jan Hubicka <jh@suse.cz>
1352
1353 * (validate_replace_rtx_1): Fix simplification of MINUS.
1354
1355 2001-07-29 Neil Booth <neil@daikokuya.demon.co.uk>
1356
1357 PR preprocessor/3669
1358 * cppinit.c (init_dependency_output): Turn off dump requests
1359 if sending dependencies to stdout.
1360
1361 2001-07-28 Richard Henderson <rth@redhat.com>
1362
1363 * flow.c (life_analysis): Elide PROP_ALLOW_CFG_CHANGES if
1364 not optimizing.
1365
1366 2001-07-28 Golubev I. N. <gin@mo.msk.ru>
1367
1368 * config/i386/sco5.h (DWARF2_DEBUGGING_INFO): Define.
1369
1370 2001-07-28 Kazu Hirata <kazu@hxi.com>
1371
1372 * config/h8300/h8300.h (ENCODE_SECTION_INFO): Check to see if DECL
1373 is VAR_DECL first to prevent an ICE.
1374
1375 2001-07-28 Richard Henderson <rth@redhat.com>
1376
1377 * varasm.c (immed_real_const_1): Don't elide special cases for
1378 nested functions.
1379 (clear_const_double_mem): Clear const_tiny_rtx too.
1380
1381 2001-07-28 Richard Henderson <rth@redhat.com>
1382
1383 * dwarf2out.c (dw_val_class_offset): New.
1384 (struct dw_ranges_struct, dw_ranges_ref): New.
1385 (ranges_table, ranges_table_allocated): New.
1386 (ranges_table_in_use, RANGES_TABLE_INCREMENT): New.
1387 (add_AT_offset, add_ranges, output_ranges): New.
1388 (print_die, output_die): Handle dw_val_class_offset.
1389 (attr_checksum, size_of_die, value_format): Likewise.
1390 (gen_lexical_block_die): Handle non-contiguous blocks.
1391 (gen_block_die): Likewise.
1392 (dwarf2out_finish): Add a DW_AT_entry_pc to the compilation unit
1393 if needed. Dump the ranges table.
1394 * final.c (final_start_function): Remove unnecessary notes and
1395 rebuild the block tree before numbering the blocks.
1396 * function.c (reorder_blocks_0): Walk the existing block tree
1397 to unmark all blocks.
1398 (reorder_blocks_1): Create block fragments when duplicate block
1399 notes are seen.
1400 (reorder_fix_fragments): New.
1401 (reorder_blocks): Call it.
1402 * tree.h (BLOCK_FRAGMENT_ORIGIN, BLOCK_FRAGMENT_CHAIN): New.
1403
1404 2001-07-28 Richard Henderson <rth@redhat.com>
1405
1406 * emit-rtl.c (adjust_address): Make a copy of the memory address.
1407
1408 2001-07-28 Richard Henderson <rth@redhat.com>
1409
1410 * flow.c (add_to_mem_set_list): New function.
1411 (init_propagate_block_info): Use it.
1412 (mark_set_1): Likewise.
1413 (insn_dead_p): Canonicalize memory address for dead store
1414 comparison. Allow wider mode stores to kill narrower mode stores.
1415 (invalidate_mems_from_autoinc): Use invalidate_mems_from_set.
1416 (invalidate_mems_from_set): Don't handle MEMs.
1417
1418 2001-07-28 Kazu Hirata <kazu@hxi.com>
1419
1420 * config/h8300/h8300.h: Fix formatting.
1421
1422 Sat Jul 28 23:35:22 CEST 2001 Jan Hubicka <jh@suse.cz>
1423
1424 * basic-block.h (EDGE_FREQUENCY): New macro.
1425 * bb-reorder (fixup_reorder_chain): Set counts and frequencies
1426 for new BB/edges.
1427 * flow.c (find_sub_basic_blocks): Likewise.
1428 (try_crossjump_to_edge): Likewise; use EDGE_FREQUENCY
1429 (redirect_edge_and_branch): Use EDGE_FREQUENCY.
1430
1431 * predict.c (DEF_PREDICTOR): New argument FLAGS.
1432 (HITRATE): New macro.
1433 (PRED_FLAG_FIRST_MATCH): New constant.
1434 (predictor_info): New field flgags.
1435 (combine_predictions_for_insn): Use DS theory to combine
1436 probabilities; set the edge probabilities when finished.
1437 (estimate_probability): Avoid duplicated matches
1438 of LOOP_BRANCH heuristics for nested loops; update comment.
1439 * predict.def: Add flags for each prediction, set probabilities
1440 according to B&L paper.
1441 * predict.h (DEF_PREDICTOR): New argument FLAGS.
1442
1443 * profile.c (compute_branch_probabilities): Cleanup way the edge
1444 probabilities are computed and REG_BR_PROB notes are dropped; if
1445 values does not match, emit error.
1446 (init_branch_prob): Do error instead of warning when profile driven
1447 feedback is missing or corrupt.
1448
1449 2001-07-27 DJ Delorie <dj@redhat.com>
1450
1451 * ifcvt.c (noce_get_alt_condition): If the condition is a compare
1452 against a constant, try to adjust the compare to have the desired
1453 constant in it so that min/max optimizations happen more often.
1454
1455 Fri Jul 27 17:53:00 CEST 2001 Jan Hubicka <jh@suse.cz>
1456
1457 * flow.c (last_loop_beg_note): New function.
1458 (redirect_edge_and_branch): Use it.
1459 (split_edge): Likewise.
1460
1461 * alias.c (loop_p): Avoid uninitialized memory access.
1462
1463 * flow.c (try_forward_edges): Avoid accessing freed memory.
1464
1465 * flow.c (backward_edge_of_syntactic_loop_p): Avoid uninitialized
1466 variable access.
1467
1468 2001-07-27 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1469
1470 * doc/install.texi (Configuration): Properly link the host
1471 specific instructions also when generating HTML.
1472
1473 Fri Jul 27 00:33:35 EDT 2001 John Wehle (john@feith.com)
1474
1475 * flow.c (redirect_edge_and_branch_force): Test
1476 target->global_live_at_start.
1477
1478 2001-07-26 Richard Henderson <rth@redhat.com>
1479
1480 * simplify-rtx.c (avoid_constant_pool_reference): Export.
1481 * rtl.h (avoid_constant_pool_reference): Declare it.
1482 * dwarf2out.c (add_location_or_const_value_attribute): Use it.
1483 (add_const_value_attribute): Use add_AT_unsigned for unsigned values.
1484
1485 Thu Jul 26 22:30:22 CEST 2001 Jan Hubicka <jh@suse.cz>
1486
1487 * rtl.h (cleanup_barriers): Declare.
1488 * jump.c (cleanup_barriers): New function.
1489 * toplev.c (rest_of_compilation): Call cleanup_barriers
1490 before loop optimizer and after bb_reorder.
1491
1492 * flow.c (back_edge_of_syntactic_loop_p): New.
1493 (split_edge): Use it.
1494
1495 2001-07-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1496
1497 * glimits.h (_MACH_MACHLIMITS_H_): Delete.
1498
1499 Thu Jul 26 22:22:21 2001 Denis Chertykov <denisc@overta.ru>
1500
1501 * cse.c (cse_process_notes): Replace any registers if the address
1502 remains valid.
1503
1504 Thu Jul 26 14:04:03 EDT 2001 John Wehle (john@feith.com)
1505
1506 * basic-block.h (PROP_ALLOW_CFG_CHANGES): Define.
1507 (PROP_FINAL): Include PROP_ALLOW_CFG_CHANGES.
1508 (propagate_block): Update prototype.
1509 * flow.c (update_life_info): Simplify the CFG and
1510 recalculate the global regs which are alive when
1511 removing dead code during a global update.
1512 (propagate_block): Return non-zero if an INSN is
1513 deleted.
1514
1515 2001-07-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1516
1517 * Makefile.in (LIBICONV): Define.
1518
1519 2001-07-26 Catherine Moore <clm@redhat.com>
1520
1521 * config/v850/v850.h (ENCODE_SECTION_INFO): Change order
1522 of conditional to avoid tree checking errors.
1523
1524 2001-07-26 Kazu Hirata <kazu@hxi.com>
1525
1526 * regmove.c (regmove_optimize): Don't replace a reg with
1527 another reg of a different mode.
1528
1529 2001-07-26 Andrew MacLeod <amacleod@redhat.com>
1530
1531 * params.def (PARAM_MAX_PENDING_LIST_LENGTH): Add parameter to
1532 limit length of dependancy flush list.
1533 * params.h (MAX_PENDING_LIST_LENGTH): Define.
1534 * sched-int.h (struct deps): Add pending_flush_length field.
1535 * sched-deps.c (flush_pending_lists): Last_pending_memory_flush now
1536 has 1 element in it.
1537 (sched_analyze_1): Use MAX_PENDING_LIST_LENGTH.
1538 (sched_analyze): After a jump, if the pending memory flush list is too
1539 large, flush the pending lists.
1540 (init_deps): Initialize pending_flush_length to 0.
1541 * doc/invoke.texi (max_pending_list_length): Document parameter.
1542
1543 2001-07-26 Neil Booth <neil@daikokuya.demon.co.uk>
1544
1545 * toplev.c, varasm.c, final.c: Include xcoffout.h if appropriate.
1546 * dbxout.c (dbxout_global_decl): Move outside #ifdef.
1547 * Makefile.in (varasm.o, final.o, toplev.o): Update dependencies.
1548
1549 2001-07-26 Neil Booth <neil@cat.daikokuya.demon.co.uk>
1550
1551 * cpphash.h (struct_lexer_state): Delete was_skipping.
1552 Move skipping here from struct cpp_reader.
1553 * cpplex.c (parse_identifier): Update.
1554 (_cpp_lex_token): Don't skip tokens in a directive.
1555 * cpplib.c (struct if_stack): Update.
1556 (start_directive, end_directive): Don't change skipping state.
1557 (_cpp_handle_directive): Update.
1558 (do_ifdef, do_ifndef, do_if, do_elif): Similarly.
1559 (do_else, do_endif): Update; only check for excess tokens if not
1560 in a skipped conditional block.
1561 (push_conditional): Update for new struct if_stack.
1562
1563 2001-07-26 Graham Stott <grahams@redhat.com>
1564
1565 * function.c (locate_and_pad_parm): Also pad initial offset
1566 so that the total argument size also includes the padding.
1567
1568 2001-07-26 Graham Stott <grahams@redhat.com>
1569
1570 * gensupport.c (alter_output_for_insn): Correct enable checking failure
1571 change XSTR to XTMPL.
1572
1573 (process_one_cond_exec): Likewise
1574
1575 2001-07-25 Richard Henderson <rth@redhat.com>
1576
1577 * varasm.c (assemble_variable): Create DECL_RTL before setting
1578 TREE_ASM_WRITTEN.
1579
1580 Thu Jul 26 00:19:30 CEST 2001 Jan Hubicka <jh@suse.cz>
1581
1582 * predict.c (estimate_probability): Avoid duplicated predictions.
1583
1584 * loop.c (find_and_verify_loops): Grok multiple barriers.
1585
1586 Wed Jul 25 18:00:05 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1587
1588 * config/alpha/alpha.c (print_operand, case '/'): Don't write '/'.
1589
1590 * dbxout.c: Consistently use putc instead of fputc.
1591 (print_wide_int): New function; call instead of direct fprintf.
1592 (dbxout_type_index): Adjust calls of CHARS to be more accurate.
1593 (dbxout_type_fields, dbxout_type_method_1): Likewise.
1594 (dbxout_type_methods, dbxout_range_type, dbxout_type): Likewise.
1595 (print_int_cst_octal): Likewise.
1596 (print_octal): Show we wrote characters.
1597 (dbxout_type): Set have_used_extensions in more places.
1598
1599 2001-07-25 Catherine Moore <clm@redhat.com>
1600
1601 * config/v850/v850.c (v850_va_arg): Use addr
1602 instead of valist to build incr.
1603
1604 Wed Jul 25 22:48:59 CEST 2001 Jan Hubicka <jh@suse.cz>
1605
1606 * flow.c (delete_dead_jumptables): New function.
1607 (life_analyzis): Call it.
1608 * bb-reorder.c (skip_insns_after_block): Handle contradictory
1609 sequences.
1610
1611 2001-07-25 Richard Henderson <rth@redhat.com>
1612
1613 * except.c (reachable_handlers): Handle a region being removed
1614 out from under a RESX.
1615
1616 2001-07-25 Richard Henderson <rth@redhat.com>
1617
1618 * config/alpha/alpha.c (alpha_emit_conditional_move): Always
1619 swap GE/GT if it is an fp comparison.
1620
1621 2001-07-25 Andrew Haley <aph@cambridge.redhat.com>
1622
1623 * alias.c (rtx_equal_for_memref_p): Allow strings as types in
1624 operands.
1625
1626 Wed Jul 25 08:25:01 2001 Jeffrey A Law (law@cygnus.com)
1627
1628 * ssa.c (rename_insn_1): Do not wrap an assignment to a
1629 paradoxical SUBREG inside a SEQUENCE. Fix minor formatting
1630 glitch.
1631
1632 * ssa-ccp.c (visit_expression): Handle CALL_INSNs that can
1633 throw an exception.
1634 (visit_expression): When attempting to simplify an expression,
1635 retrieve any modes for arguments before they are simplified
1636 to constants.
1637
1638 2001-07-25 Andrew MacLeod <amacleod@redhat.com>
1639 Janis Johnson <janis@us.ibm.com>
1640
1641 * stmt.c (expand_goto): A nonlocal goto can be a call too.
1642 * builtins.c (expand_builtin_longjmp): Reverse label and static chain
1643 pointer parameters to match documented usage of nonlocal_goto.
1644 * config/ia64/ia64.md (nonlocal_goto): Revert label and static chain
1645 parameters to their correct order.
1646 * config/sparc/sparc.md (nonlocal_goto): Revert label and static chain
1647 parameters to their correct order.
1648
1649 2001-07-25 Andrew MacLeod <amacleod@redhat.com>
1650
1651 * config/ia64/ia64.h (STRIP_NAME_ENCODING): Strip out '*' as well.
1652
1653 2001-07-25 Jan Hubicka <jh@suse.cz>
1654 Richard Henderson <rth@redhat.com>
1655
1656 * flow.c (find_sub_basic_blocks): Fix handling of the last BB in
1657 the sequence.
1658 (make_edges): New argument update_p; populate the edge cache if set.
1659 (find_basic_blocks): Update make_edges invocation.
1660
1661 2001-07-24 Joel Sherrill <joel@OARcorp.com>
1662
1663 * config/i960/i960.h (CPP_SPEC): Define _SOFT_FLOAT for -msoft-float.
1664
1665 2001-07-24 Joel Sherrill <joel@OARcorp.com>
1666
1667 * config/sparc/rtems.h (CPP_PREDEFINES): Remove redundant
1668 -Acpu and -Amachine.h.
1669 * config/sparc/rtemself.h (CPP_PREDEFINES): Likewise.
1670 Corrected header to say ELF not a.out.
1671 * config/sparc/sparc.h (CPP_CPU_SPEC): Define _SOFT_FLOAT
1672 when given -msoft-float.
1673
1674 2001-07-24 Joel Sherrill <joel@OARcorp.com>
1675
1676 * config.gcc (arm*-*-rtems*): Include crtinit.o and crtfini.o as
1677 extra multilib parts like arm-elf.
1678 (i960-*-coff*, i960-*-rtems): Should not use collect2.
1679 (m68020-*-elf*, m68k-*-elf*, m68k-*-rtems*): Include crtinit.o and
1680 crtfini.o as extra multilib parts.
1681
1682 2001-07-24 Joel Sherrill <joel@OARcorp.com>
1683
1684 * configure.in: Add rtems as a supported thread model.
1685 * gthr-rtems.h: Add missing entry point __gthread_active_p.
1686 * configure: Rebuilt.
1687
1688 2001-07-24 Lars Brinkhoff <lars@nocrew.org>
1689
1690 * stor-layout.c (get_mode_alignment): make it work when
1691 BITS_PER_UNIT is not a power of two.
1692 * builtins.c (get_pointer_alignment): Likewise.
1693
1694 2001-07-24 Richard Henderson <rth@redhat.com>
1695
1696 * simplify-rtx.c (avoid_constant_pool_reference): Coerce
1697 the retrieved constant into the expected mode.
1698
1699 Wed Jul 25 01:41:27 CEST 2001 Jan Hubicka <jh@suse.cz>
1700
1701 * flow.c (try_simplify_condjump): Avoid duplicated edges.
1702 (verify_flow_info): Check for duplicated edges; clarify
1703 error reporting.
1704
1705 * flow.c (block_label): Update basic_block_for_insn.
1706 (commit_edge_insertions): Call compute_bb_for_insn.
1707
1708 * flow.c (purge_dead_edges): Handle conditional jumps and conditional
1709 returns too.
1710
1711 * flow.c (redirect_edge_and_branch,
1712 try_optimize_cfg): Use redirect_edge_succ_nodup
1713 (redirect_edge_succ_nodup): New.
1714 * basic_block.h (redirect_edge_succ_nodup): Declare.
1715
1716 * toplev.c (rest_of_compilation): Rebuild CFG before cfg_cleanup
1717 after gcse.
1718
1719 Wed Jul 25 00:32:49 CEST 2001 Jan Hubicka <jh@suse.cz>
1720
1721 * flow.c (try_forward_edges): Accept fallthru edge; Update comment.
1722 (try_crossjump_to_edge): Update commetns.
1723 (try_crossjump_bb): Likewise.
1724
1725 2001-07-24 Richard Henderson <rth@redhat.com>
1726
1727 * combine.c (distribute_notes): Move set of need_refresh
1728 for noop_move_p down to catch all cases.
1729
1730 Tue Jul 24 20:32:44 CEST 2001 Jan Hubicka <jh@suse.cz>
1731
1732 * recog.c (split_all_insns_noflow): New.
1733 * rtl.h (split_all_insns_noflow): Declare.
1734 * ia64.c (ia64_reorg): Use split_all_insns_noflow.
1735 * m68hc11.c (m68hc11_reorg): Likewise.
1736 * sh.c (machine_dependent_reorg): Likewise.
1737 * toplev.c (rest_of_compilation): Likewise for last split_all_insns
1738 call.
1739
1740 2001-07-18 Andrew Haley <aph@cambridge.redhat.com>
1741
1742 * config/sh/sh.md (ashlsi3_std splitter): Split only after reload.
1743 (ashlsi3_n splitter): Likewise.
1744 (lshrsi3_n splitter): Likewise.
1745
1746 (GOTaddr2picreg): Make const SImode.
1747 (sym_label2reg): Likewise.
1748 (symGOT2reg): Likewise.
1749 (symGOTOFF2reg) Likewise.
1750
1751 (casesi_worker_0): Make unspec SImode.
1752
1753 2001-07-18 Andrew Haley <aph@cambridge.redhat.com>
1754
1755 * config/sh/sh.c (barrier_align): Check that an operand really is
1756 an insn before extracting its INSN_CODE.
1757
1758 2001-07-24 Andrew Haley <aph@cambridge.redhat.com>
1759
1760 * config/sh/sh.h (OVERRIDE_OPTIONS): Add braces to get rid of
1761 dangling else.
1762
1763 * config/sh/sh.h (INITIALIZE_TRAMPOLINE): Truncate operands
1764 for SImode to prevent overflow.
1765
1766 2001-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1767
1768 * config/mips/irix6-libc-compat.c: New file.
1769 * config/mips/t-iris6 (LIB2FUNCS_STATIC_EXTRA): Use it.
1770 * doc/install.texi (Specific, mips*-sgi-irix6): Mention structure
1771 passing workaround.
1772
1773 2001-07-24 lars brinkhoff <lars@nocrew.org>
1774
1775 * rtl.texi (REG_POINTER): Document.
1776 (Machine Modes): Document BImode, OImode, PQImode, PHImode,
1777 QFmode, HFmode, TQFmode, QCmode, and HCmode.
1778
1779 Tue Jul 24 10:49:40 CEST 2001 Jan Hubicka <jh@suse.cz>
1780
1781 * flow.c (delete_noop_moves): Do not confuse libcall regions.
1782
1783 2001-07-23 Richard Henderson <rth@redhat.com>
1784
1785 * flow.c (try_simplify_condjump): Use tidy_fallthru_edge.
1786
1787 2001-07-23 Kazu Hirata <kazu@hxi.com>
1788
1789 * config/h8300/h8300-protos.h: Add a prototype for
1790 general_operand_dst_push.
1791 * config/h8300/h8300.c (general_operand_dst_push): New.
1792 * config/h8300/h8300.h (OK_FOR_T): New.
1793 (EXTRA_CONSTRAINT): Use it.
1794 * config/h8300/h8300.md (movqi_push): Remove and integrate into
1795 the existing movqi pattern.
1796 (movhi_push): Likewise.
1797
1798 * reload.c: Fix comment typos.
1799
1800 Mon Jul 23 23:34:07 CEST 2001 Jan Hubicka <jh@suse.cz>
1801
1802 * gcse.c (cprop_insn): Update call of cprop_cc0_jump.
1803
1804 2001-07-23 H.J. Lu (hjl@gnu.org)
1805
1806 * doc/extend.texi: Update __builtin_return_address and
1807 __builtin_frame_address.
1808
1809 2001-07-23 Richard Henderson <rth@redhat.com>
1810
1811 * config/i386/i386.c (ix86_expand_setcc): Don't use method 0
1812 before CSE.
1813 * config/i386/i386.md: New setcc+movzbl peephole2.
1814
1815 2001-07-23 Neil Booth <neil@cat.daikokuya.demon.co.uk>
1816
1817 * objc/Make-lang.in (objc-act.o): Depend on debug.h.
1818 * objc/objc-act.c: Include debug.h.
1819 (synth_module_prologue): Save and restore debug hooks too.
1820
1821 2001-07-23 lars brinkhoff <lars@nocrew.org>
1822
1823 * tm.texi (TARGET_FLOAT_FORMAT): Document IBM_FLOAT_FORMAT
1824 and C4X_FLOAT_FORMAT.
1825 (BOOL_TYPE_SIZE): Document.
1826
1827 Mon Jul 23 11:54:23 2001 Clinton Popetz <cpopetz@cpopetz.com>
1828
1829 * unroll.c (loop_iterations): Fix miscalculation of initial
1830 giv offset.
1831
1832 2001-07-13 Andrew Haley <aph@redhat.com>
1833
1834 * doc/tm.texi (MD_CAN_REDIRECT_BRANCH): New macro.
1835 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): New macro.
1836 * config/sh/sh.c (sh_can_redirect_branch): New function.
1837 * config/sh/sh-protos.h (sh_can_redirect_branch): Declare.
1838 * reorg.c (steal_delay_list_from_target): Use
1839 MD_CAN_REDIRECT_BRANCH to see if redirection is possible.
1840
1841 Mon Jul 23 17:20:18 CEST 2001 Jan Hubicka <jh@suse.cz>
1842
1843 * flow.c (try_simplify_condjump): Unlink insn chain on
1844 fallthru edge; use can_fallthru.
1845
1846 Mon Jul 23 16:03:19 CEST 2001 Jan Hubicka <jh@suse.cz>
1847
1848 * basic-block.h (find_sub_basic_block): Declare.
1849 * flow.c (make_edges): New arguments MIN and MAX;
1850 (find_sub_basic_blocks): Revamp to use make_edges
1851 and purge_dead_edges.
1852 (find_basic_blocks): Update call of find_sub_basic_block.
1853
1854 * recog.c (split_all_insns): Always expect CFG to be consistent;
1855 call find_sub_basic_blocks in case something has changed.
1856 * toplev.c (rest_of_compilation): Always call split_all_insns once CFG
1857 has been built.
1858
1859 * basic-block.h (delete_noop_moves): Declare.
1860 * combine.c (combine_instructions): Call it.
1861 (recog_for_combine): Tolerate noop moves
1862 (distribute_notes): Force refresh when register dies at noop move.
1863 * flow.c (delete_noop_moves): Use BB structure; delete JUMP insns
1864 too.
1865 (life_analysis): Update delete_noop_moves call.
1866 (set_noop_p): Move too ...
1867 * rtlanal.c (noop_move_p): ... here.
1868 * rtl.h (noop_move_p): Declare.
1869
1870 * basic-block.h (purge_all_dead_edges, purge_dead_edges): New functions.
1871 * toplev.c (rest_of_compilation): Conditionally call purge_all_dead_edges
1872 after combine.
1873 * gcse.c (cprop_cc0_jump, cprop_insn): New argument "basic_block".
1874 (cprop_jump): Likewise; call purge_dead_edges if substitution suceeded.
1875
1876 2001-07-23 Hans-Peter Nilsson <hp@bitrange.com>
1877
1878 * reload.c (push_reload): Fix typo in comment.
1879 (find_reloads_address): Ditto.
1880 (reg_overlap_mentioned_for_reload_p): Ditto in head comment.
1881
1882 2001-07-22 Richard Henderson <rth@redhat.com>
1883
1884 * flow.c: Grammar check and clarify a lot of comments.
1885 (try_simplify_condjump): Rename variables to be clearer.
1886 (try_forward_edges): Skip complex and fallthru edges.
1887 Rearrange tests to avoid duplicate checks.
1888 (flow_find_cross_jump): Likewise.
1889 (outgoing_edges_match): Allow match if neither branch has
1890 probability data. Loosen probability match to 5%.
1891 (try_crossjump_to_edge): Hoist repeated indirection into
1892 local variables.
1893 (try_crossjump_bb): Don't check complex edges. Eliminate
1894 redundant crossjump tests.
1895 (try_optimize_cfg): Fix use of bool. Reorganize cheaper
1896 checks before more expensive checks.
1897
1898 2001-07-22 Richard Henderson <rth@redhat.com>
1899
1900 * fold-const.c (fold): Test vs FLOAT_TYPE_P instead of
1901 INTEGRAL_TYPE_P when folding comparisons with operand_equal_p
1902 arguments.
1903
1904 2001-07-22 Richard Henderson <rth@redhat.com>
1905
1906 * m68k.c (const_uint32_operand): Abort if mode is <= 32 bits.
1907 (const_sint32_operand): Likewise.
1908 * m68k.md (anon mulsi pattern): Use const_int_operand not
1909 const_sint32_operand.
1910 (umulsi3_highpart): Zero extend a constant input.
1911 (smulsi3_highpart): Don't bother checking SImode constant.
1912 (const_umulsi3_highpart): Give op3 DImode.
1913 (const_smulsi3_highpart): Likewise.
1914
1915 2001-07-22 Richard Henderson <rth@redhat.com>
1916
1917 * flow.c (split_block): Make sure bb_note is included in the
1918 new block when splitting before a label.
1919
1920 Sun Jul 22 23:28:56 CEST 2001 Jan Hubicka <jh@suse.cz>
1921
1922 * basic-block.h (redirect_edge_and_branch_force,
1923 redirect_edge_and_branch, block_label, forwarder_block_p): Declare.
1924 * flow.c (redirect_edge_and_branch_force,
1925 redirect_edge_and_branch, block_label, forwarder_block_p): Make global.
1926 (redirect_edge_and_branch_force): Fix copying of lifeness information.
1927 (block_label): Handle EXIT_BLOCK_PTR by returning NULL.
1928 * ifcvt.c (dead_or_predictable): Take BB as an new destionation
1929 instead of label; update CFG after transformation.
1930 (find_if_case_1): Update call, use redirect_edge_and_branch_force
1931 for finishing the transformation; handle even case where ELSE
1932 does not follow THEN.
1933 (find_if_case_2): Update call of dead_or_predictable; simplify
1934 CFG update.
1935
1936 * emit-rtl.c (split_branch_probability): New global variable.
1937 (try_split): Take care to set split_branch_probability and
1938 create REG_BR_PROB note for new jump insns.
1939 * md.texi (define_split): Document new feature.
1940
1941 * i386.c (ix86_split_fp_branch): Redistribute branch probability notes.
1942
1943 2001-07-22 Neil Booth <neil@daikokuya.demon.co.uk>
1944
1945 * varasm.c: Don't inlcude dbxout.h, sdbout.h or xcoffout.h.
1946 (asm_out_file): Remove redundant declaration.
1947 (assemble_asm): Remove old #if 0 block.
1948 (assemble_variable): Remove end of function; debug output is
1949 now handled with global_decl. Remove old #if 0 block. Update.
1950 Remove saved_in_section and associated no-op code.
1951 * Makefile.in (varasm.o): Correct dependencies.
1952
1953 Sun Jul 22 17:55:11 2001 Alexandre Oliva <aoliva@redhat.com>
1954
1955 * config/i386/freebsd-aout.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
1956 the definition in defaults.h.
1957
1958 Sun Jul 22 21:31:04 CEST 2001 Jan Hubicka <jh@suse.cz>
1959
1960 * jump.c: Update comments.
1961 (delete_barrier_successors, delete_unreferenced_labels,
1962 delete_noop_moves, tension_vector_labels, delete_from_jump_chain,
1963 delete_labelref_insn, redirect_tablejump, jump_optimize_1,
1964 jump_optimize, jump_optimize_minimal): Kill.
1965 (rebuild_jump_labels): Move code from jump_optimize_1.
1966 (purge_line_number_notes): Likewise.
1967 (copy_loop_headers): Likewise.
1968 * reg-stack.c: Update comment.
1969 * stmt.c: Likewise.
1970 * rtl.h (jump_optimize, jump_optimize_1, JUMP_NOOP_MOVES,
1971 JUMP_AFTER_REGSCAN): Kill.
1972 * toplev.c (rest_of_compilation): Use cleanup_cfg, call
1973 purge_line_number_notes and copy_loop_headers.
1974
1975 2001-07-22 Neil Booth <neil@daikokuya.demon.co.uk>
1976 Richard Henderson <rth@redhat.com>
1977
1978 * dbxout.c (dbxout_global_decl): New.
1979 (xcoff_debug_hooks, dbx_debug_hooks): Use it.
1980 * sdbout.c (sdbout_finish): New.
1981 (sdbout_debug_hooks): Use it, add comments.
1982 (sdbout_global_decl): Defer initialised public vars to
1983 sdbout_finish.
1984 * varasm.c (assemble_variable): Don't output debug information
1985 for file-scope variables.
1986
1987 2001-07-22 Richard Henderson <rth@redhat.com>
1988
1989 * config/alpha/alpha.c (get_trap_mode_suffix): New.
1990 (get_round_mode_suffix): New.
1991 (print_operand): Use them for [/]. Remove support for [&'`()+].
1992 * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Update.
1993 * config/alpha/alpha.md (attr round_suffix): New.
1994 (attr trap_suffix): New.
1995 (all insns): Set them appropriately. Use %/ instead of the
1996 myriad punctuators.
1997
1998 2001-07-22 Neil Booth <neil@cat.daikokuya.demon.co.uk>
1999
2000 * dbxout.c, sdbout.c, varasm.c: Revert most recent debug patch.
2001
2002 2001-07-22 Richard Henderson <rth@redhat.com>
2003
2004 * regrename.c (regrename_optimize): Compute nregs for each
2005 potential target register.
2006
2007 2001-07-21 Neil Booth <neil@daikokuya.demon.co.uk>
2008 Richard Henderson <rth@redhat.com>
2009
2010 * dbxout.c (dbxout_global_decl): New.
2011 (xcoff_debug_hooks, dbx_debug_hooks): Use it.
2012 * sdbout.c (sdbout_finish): New.
2013 (sdbout_debug_hooks): Use it, add comments.
2014 (sdbout_global_decl): Defer initialised public vars to
2015 sdbout_finish.
2016 * varasm.c (assemble_variable): Don't output debug information
2017 for file-scope variables.
2018
2019 2001-07-21 H.J. Lu (hjl@gnu.org)
2020
2021 * config/mips/mips.c (mips_cpu): Moved into ...
2022 (override_options): Here.
2023
2024 * config/mips/mips.h (mips_cpu_attr): Replace mips_cpu with
2025 mips_tune.
2026 (mips_cpu): Removed.
2027
2028 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2029
2030 * config/m68hc11/m68hc11.md ("andqi3"): Accept d as second operand.
2031 ("iorqi3"): Likewise.
2032 ("xorqi3"): Likewise.
2033 ("*addhi3"): Fix constraint to avoid reloading in a soft register.
2034 ("*subhi3_sp): Likewise.
2035 ("*subhi3"): Likewise.
2036 ("extendhisi2"): Accept D, X and Y as source operand to avoid
2037 reload problems.
2038
2039 2001-07-21 Nathan Sidwell <nathan@codesourcery.com>
2040
2041 * doc/tm.texi: Remove DEFAULT_VTABLE_THUNKS.
2042 * config/freebsd.h: Likewise.
2043 * config/linux.h: Likewise.
2044 * config/openbsd.h: Likewise.
2045 * config/alpha/linux-elf.h: Likewise.
2046 * config/arm/linux-elf.h: Likewise.
2047 * config/d30v/d30v.h: Likewise.
2048 * config/fr30/fr30.h: Likewise.
2049 * config/ia64/aix.h: Likewise.
2050 * config/ia64/ia64.h: Likewise.
2051 * config/mips/linux.h: Likewise.
2052 * config/pj/pj.h: Likewise.
2053 * config/rs6000/linux.h: Likewise.
2054 * config/sparc/linux.h: Likewise.
2055 * config/sparc/linux64.h: Likewise.
2056
2057 2001-07-20 Bruce Korb <bkorb@gnu.org>
2058
2059 * fixinc/fixincl.c(test_for_changes): force unsigned char comparisons
2060 because getc() and char* may disagree on signedness.
2061
2062 2001-07-20 Richard Henderson <rth@redhat.com>
2063
2064 * doc/rtl.texi (REG_DEAD): Update for current semantics.
2065
2066 * flow.c (try_redirect_by_replacing_jump): Correctly compute which
2067 insns to delete in the presence of cc0 in a jump insn.
2068
2069 Fri Jul 20 22:14:49 CEST 2001 Roman Zippel <zippel@linux-m68k.org>
2070 Jan Hubicka <jh@suse.cz>
2071
2072 * m68k.md (zero_extend?i?i2 expander): Use gen_lowpart instead
2073 of doing the change by hand.
2074
2075 Fri Jul 20 21:59:42 CEST 2001 Jan Hubicka <jh@suse.cz>
2076
2077 * rtlanal.c (set_noop_p): Return true for noop jumps.
2078
2079 * expr.c (emit_single_push_insn): Add call to push expander.
2080 * expr.h (optab_index): Add OTI_push
2081 (push_optab): New constant.
2082 * genopinit.c (optabs): Add push_optab.
2083 * optabs.c (init_optab): Init push optab.
2084 * md.texi (push??1): Document
2085
2086 2001-07-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2087
2088 * config/m68hc11/m68hc11.md ("movdi", "movdi_internal"): Use an
2089 expand to emit the pattern; put a REG_INC note for push/pop
2090 instructions.
2091 ("movdf", "movdf_internal"): Likewise.
2092 ("movsi", "movsi_internal"): Likewise.
2093 ("movsf", "movsf_internal"): Likewise.
2094 ("movhi", "movqi"): Emit a REG_INC note for push/pop instructions.
2095
2096 2001-07-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2097
2098 * config/m68hc11/m68hc11.c (m68hc11_gen_highpart): Don't use
2099 gen_highpart.
2100
2101 2001-07-20 Daniel Berlin <dan@cgsoftware.com>
2102
2103 * params.def: Change default max inline insns to 100.
2104
2105 2001-07-20 Diego Novillo <dnovillo@redhat.com>
2106
2107 * combine.c (combine_simplify_rtx): Generate a new shift operation
2108 when simplifying the first operand of a (neg (ashift)) expression.
2109
2110 2001-07-20 Roman Lechtchinsky <rl@cs.tu-berlin.de>
2111
2112 * regclass.c (N_REG_INTS): Use only 32 bits per element.
2113
2114 2001-07-20 Kelley Cook <kelley.cook@home.com>
2115
2116 * doc/install.texi (sparc-sun-solaris*): Add in 4.x assembler bug
2117 information. Move rest into ...
2118 (*-*-solaris): ... here. Eliminate redundant information and
2119 reword necessary packages section. Delete 4.x assembler bug info.
2120 (sparc-sun-*): Merge into ...
2121 (sparc-sun-sunos*): here.
2122
2123 2001-07-20 Catherine Moore <clm@redhat.com>
2124
2125 * config/v850/v850.md (casesi): Generate LABEL_REF
2126 with Pmode.
2127
2128 Fri Jul 20 14:12:57 CEST 2001 Jan Hubicka <jh@suse.cz>
2129
2130 * i386-protos.h (ix86_zero_extend_to_Pmode): Declare.
2131 * i386.c (ix86_zero_extend_to_Pmode): Make global.
2132 * i386.md (strclrsi expander): Use it.
2133
2134 Fri Jul 20 13:24:16 CEST 2001 Jan Hubicka <jh@suse.cz>
2135
2136 * integrate.c (copy_insn_list): handle
2137 NOTE_INSN_DELETED_LABEL, as if it were CODE_LABEL.
2138 (copy_rtx_and_substitute): Likewise; behave to NOTE_INSN_DELETED_LABEL
2139 identically as to CODE_LABEL.
2140
2141 * fold-const (fold): Convert A/B/C to A/(B*C) and
2142 A/(B/C) to (A/B)*C
2143
2144 * except.c (connect_post_landing_pads): Delete the RESX insns.
2145
2146 2001-07-20 Aldy Hernandez <aldyh@redhat.com>
2147
2148 * config/mips/mips.h (ISA_HAS_NMADD_NMSUB): New macro.
2149
2150 * config/mips/mips.md (nmadd/nmsub): Use macro.
2151
2152 2001-07-20 Nathan Sidwell <nathan@codesourcery.com>
2153
2154 * cppinit.c (remove_dup_dir): Make static.
2155 (remove_dup_dirs): Make static. Only warn about preempting a
2156 system directory with a non-system directory.
2157
2158 2001-07-19 Geoffrey Keating <geoffk@redhat.com>
2159
2160 * ifcvt.c (noce_try_store_flag_constants): Correct order
2161 of parameters to trunc_int_for_mode.
2162
2163 2001-07-19 Mark Mitchell <mark@codesourcery.com>
2164
2165 * reorg.c (fill_simple_delay_slots): If an instruction might throw
2166 an exception that will be caught within this function, do not fill
2167 its delay slot with any subsequent instruction.
2168
2169 2001-07-19 Steve Ellcey <sje@cup.hp.com>
2170
2171 * tm.texi (POINTERS_EXTEND_UNSIGNED) Modify definition.
2172 * optabs.c (can_extend_p) Check HAVE_ptr_extend for a specialized
2173 pointer extension instruction.
2174 * combine.c (nonzero_bits,num_sign_bit_copies) Likewise.
2175 * simplify-rtx.c (simplify_unary_operation) Likewise.
2176 * explow.c (convert_memory_address) Check value of
2177 POINTERS_EXTEND_UNSIGNED to avoid some conversions when
2178 less than zero.
2179 * config/ia64/t-hpux (LIBGCC, INSTALL_LIBGCC, MULTILIB_OPTIONS,
2180 MULTILIB_DIRNAMES, MULTILIB_MATCHES) Add multilib support.
2181 * config/ia64/hpux.h (CPP_SPEC, ASM_SPEC, SUBTARGET_SWITCHES)
2182 Add Multilib Support.
2183 (POINTERS_EXTEND_UNSIGNED) Define for ILP32 support.
2184 * config/ia64/ia64.h (MASK_ILP32, TARGET_ILP32, SUBTARGET_SWITCHES)
2185 Add Multilib Support.
2186 (POINTER_SIZE, LONG_TYPE_SIZE, MAX_LONG_TYPE_SIZE) Modify for ILP32
2187 support.
2188 * config/ia64/ia64.c (rtx_needs_barrier) Add support for addp4.
2189 * config/ia64/ia64.md (ptr_extend) New instruction to "swizzle"
2190 a 32 bit HP-UX pointer into a 64 bit HP-UX pointer.
2191
2192 2001-07-19 Alexandre Oliva <aoliva@redhat.com>
2193
2194 * simplify-rtx.c (simplify_replace_rtx): Try to obtain mode from
2195 old and new operands in `<', `3' and `b'.
2196
2197 2001-07-19 Neil Booth <neil@daikokuya.demon.co.uk>
2198
2199 * Makefile.in (emit-rtl.o, c-decl.o): Depend on debug.h.
2200 (final.o): Don't depend on xcoffout.h, dbxout.h or sdbout.h.
2201 (toplev.o): Don't depend on xcoffout.h.
2202 * c-decl.c: Include debug.h
2203 (duplicate_decls): Use debug hook.
2204 * dbxout.c (dbxout_source_file, dbxout_args): Make static.
2205 (dbx_debug_hooks, xcoff_debug_hooks): Update.
2206 (dbxout_types): Remove.
2207 * dbxout.h (dbxout_source_file, dbxout_types, dbxout_args): Remove.
2208 * debug.c (do_nothing_debug_hooks): Update.
2209 (debug_true_tree, debug_nothing_rtx): New.
2210 * debug.h (struct rtx_def): New.
2211 (struct gcc_debug_hooks): New hooks ignore_block,
2212 outlining_inline_function and label.
2213 (debug_true_tree, debug_nothing_rtx, dwarf2out_frame_init,
2214 dwarf2out_frame_finish): New.
2215 * dwarf2out.c (dwarf2out_ignore_block, dwarf2out_abstract_function):
2216 Make static, update prototype.
2217 (dwarf2_debug_hooks): Update.
2218 * dwarf2out.h (dwarf2out_ignore_block, dwarf2out_abstract_function,
2219 dwarf2out_frame_init, dwarf2out_frame_finish): Remove.
2220 * dwarfout.c (dwarf_debug_hooks): Update.
2221 * emit-rtl.c: Include debug.h.
2222 (remove_unnecessary_notes): Use debug hook.
2223 * final.c: Don't include dbxout.h, xcoffout.h or sdbout.h.
2224 (final_scan_insn): Use debug hook.
2225 * integrate.c (output_inline_function): Use debug hook.
2226 * sdbout.c (sdbout_toplevel_data, sdbout_label): Make static.
2227 (sdb_debug_hooks): Update.
2228 * sdbout.h (sdbout_label, sdbout_toplevel_data): Remove.
2229 * toplev.c: Don't include xcoffout.h.
2230 (note_outlining_of_inline_function, debug_ignore_block): Remove.
2231 * toplev.h (note_outlining_of_inline_function, debug_ignore_block):
2232 Remove.
2233 * tree.h (dwarf2out_do_frame): Remove.
2234
2235 2001-07-19 Catherine Moore <clm@cygnus.com>
2236
2237 * config/v850/v850.h (ASM_OUTPUT_LABELREF): Restore.
2238
2239 2001-07-19 Geoffrey Keating <geoffk@redhat.com>
2240
2241 * reload1.c (eliminate_regs_in_insn): When updating a set
2242 to the frame pointer to the hardware frame pointer, perform
2243 the update always not just when REPLACE is set.
2244
2245 * reload1.c (choose_reload_regs): Don't inherit a reload
2246 that crosses multiple registers if registers past the first
2247 don't fit in the desired class.
2248
2249 * ifcvt.c (noce_try_store_flag_constants): Use trunc_int_for_mode
2250 when negating constants.
2251
2252 2001-07-19 Toon Moene <toon@moene.indiv.nluug.nl>
2253
2254 * tree.def: Document restriction on {L|R}SHIFT_EXPR's second argument.
2255 * doc/tree.texi: Ditto.
2256
2257 2001-07-19 Mark Kettenis <kettenis@wins.uva.nl>
2258 Jakub Jelinek <jakub@redhat.com>
2259
2260 * unwind-dw2.c (_Unwind_FrameState): Add eh_ptr.
2261 (extract_cie_info): Handle "eh" augmentation properly,
2262 remember eh_ptr.
2263 (struct frame_state, __frame_state_for): New.
2264
2265 2001-07-19 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2266
2267 * config/alpha/osf.h (ASM_OUTPUT_WEAK_ALIAS, ASM_WEAKEN_LABEL,
2268 HANDLE_SYSV_PRAGMA): Define.
2269 * mips-tfile.c (add_ext_symbol): Pass complete symbol ptr, inline
2270 previous args.
2271 (copy_object): Caller changed.
2272
2273 2001-07-19 Andreas Schwab <schwab@suse.de>
2274
2275 * configure.in (assembler dwarf2 debug_line support): Define nop
2276 insn for m68k.
2277 * configure: Regenerated.
2278
2279 2001-07-19 Neil Booth <neil@daikokuya.demon.co.uk>
2280
2281 * Makefile.in (toplev.o, dwarfout.o, final.o): Don't depend on
2282 dwarfout.h.
2283 * dbxout.c (dbxout_function): Rename dbxout_funciton_decl, move
2284 to conditionally compiled block.
2285 (dbx_debug_hooks, xcoff_debug_hooks): Update.
2286 * dbxout.h (dbxout_function): Remove.
2287 * debug.c (do_nothing_debug_hooks): Update.
2288 * debug.h (struct gcc_debug_hooks): New hooks function_decl,
2289 global_decl, deferred_inline_function.
2290 * dwarf2out.c (dwarf2_debug_hooks): Update.
2291 (dwarf2out_global_decl): New.
2292 * dwarfout.c: Don't include dwarfout.h.
2293 (dwarfout_global_decl, dwarfout_function_decl,
2294 dwarfout_deferred_inline_function): New.
2295 (dwarf_debug_hooks): Update.
2296 * dwarfout.h: Remove.
2297 * final.c: Don't include dwarfout.h.
2298 * sdbout.c (sdbout_global_decl): New.
2299 (sdbout_debug_hooks): Update.
2300 * toplev.c: Don't include dwarfout.h.
2301 (check_global_declarations, rest_of_compilation): Use new debug hooks.
2302 (note_deferral_of_defined_inline_function): Remove.
2303 * toplev.h (note_deferral_of_defined_inline_function): Remove.
2304 * ch/Makefile.in (lex.o): No dependence on dwarfout.h.
2305 * ch/lex.c: Don't include dwarfout.h.
2306 * cp/Make-lang.in (decl2.o): No dependence on dwarfout.h, dwarf2out.h.
2307 (semantics.o, optimize.o): Depend on debug.h not dwarfout.h.
2308 * cp/decl2.c: Don't include dwarfout.h and dwarf2out.h.
2309 * cp/optimize.c: Include debug.h.
2310 (maybe_clone_body): Use debug hook.
2311 * cp/semantics.c: Include debug.h.
2312 (expand_body): Use debug hook.
2313 * po/POTFILES.in: Remove dwarfout.h.
2314
2315 2001-07-19 Neil Booth <neil@daikokuya.demon.co.uk>
2316
2317 * c-lex.c (c_lex): Remove CPP_INT, CPP_FLOAT cases.
2318 * c-parse.in (yyerror, _yylex): Similarly.
2319 * cppexp.c (parse_number, parse_defined, lex, _cpp_parse_expr):
2320 Don't use CPP_INT, CPP_FLOAT; CPP_NUMBER is enough.
2321 Update comments.
2322 * cpplib.h (CPP_INT, CPP_FLOAT): Remove.
2323 * cp/spew.c (read_token, yyerror): Remove CPP_INT, CPP_FLOAT cases.
2324
2325 2001-07-18 Jeff Sturm <jsturm@one-point.com>
2326
2327 * dwarf2out.c (dwarf2out_abstract_function): Don't emit
2328 in-class declaration at -g1. Fixes c++/2814.
2329
2330 2001-07-18 Richard Henderson <rth@redhat.com>
2331
2332 * doc/md.texi (reload_in/out): Document restrictions in predicates
2333 and constraints for these patterns. Document empty string matching
2334 ALL_REGS.
2335
2336 2001-07-18 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2337
2338 * defaults.h (ASM_OUTPUT_WEAK_ALIAS): Check for ASM_WEAKEN_LABEL.
2339
2340 Wed Jul 18 20:47:36 CEST 2001 Jan Hubicka <jh@suse.cz>
2341
2342 * cse.c: Undo my previous patch.
2343
2344 2001-07-18 Tom Tromey <tromey@redhat.com>
2345
2346 For PR java/2812:
2347 * configure: Rebuilt.
2348 * configure.in: Don't check for iconv.h or iconv(); use AM_ICONV
2349 instead.
2350 * aclocal.m4 (AM_ICONV): New macro from Bruno Haible.
2351
2352 Wed Jul 18 18:46:30 CEST 2001 Richard Henderson <rth@cygnus.com>
2353 Jan Hubicka <jh@suse.cz>
2354
2355 * flow.c (redirect_edge_and_branch): Bail out on complex edges.
2356 (try_optimize_cfg): Do not remove tail recursive labels before sibcall.
2357 * jump.c (mark_jump_label): Do not forward branches.
2358
2359 Wed Jul 18 18:35:01 CEST 2001 Jan Hubicka <jh@suse.cz>
2360
2361 * cse.c (delete_trivially_dead_insns): Delete the libcall block
2362 when return value is unused.
2363
2364 Wed Jul 18 18:28:16 CEST 2001 Jan Hubicka <jh@suse.cz>
2365
2366 * gcse.c (pre_insert_copy_insn): Call update_ld_motion_stores.
2367
2368 Wed Jul 18 12:05:29 2001 Nicola Pero <n.pero@mi.flashnet.it>
2369
2370 * gthr-posix.h (__gthread_objc_mutex_trylock): Fixed return value
2371 on error. We can't blindly return the result of
2372 pthread_mutex_trylock because it returns a positive number on
2373 error, while we must return -1 on error.
2374 (__gthread_objc_mutex_lock, __gthread_objc_mutex_unlock): Similar
2375 fixes.
2376 Reported by Stephen Brandon <stephen@brandonitconsulting.co.uk>.
2377
2378 2001-07-18 Andreas Jaeger <aj@suse.de>
2379
2380 * integrate.c (output_inline_function): Correct type of debug_hooks.
2381
2382 2001-07-18 Toon Moene <toon@moene.indiv.nluug.nl>
2383
2384 * combine.c (combine_simplify_rtx): DIV can be treated
2385 associatively for floats if unsafe math optimisations are enabled.
2386
2387 2001-07-17 Richard Henderson <rth@redhat.com>
2388
2389 * reload.c (push_secondary_reload): Accept empty-string for ALL_REGS.
2390
2391 2001-07-17 Richard Henderson <rth@redhat.com>
2392
2393 * calls.c (prepare_call_address): New parameter SIBCALLP. If true,
2394 don't force the function address into a register.
2395 (expand_call, emit_library_call_value_1): Update callers.
2396 * builtins.c (expand_builtin_apply): Likewise.
2397 * expr.h (prepare_call_address): Update decl.
2398
2399 2001-07-17 Chandrakala Chavva <cchavva@redhat.com>
2400
2401 * config.gcc: For *-*-chorusos triplet, get chorus.h file from
2402 config directory.
2403 * config/i386/chorus.h: Move up.
2404 * config/sparc/chorus.h: Likewise.
2405 * config/rs6000/chorus.h: Likewise.
2406 * config/chorus.h: Moved here.
2407
2408 2001-07-17 Andreas Schwab <schwab@suse.de>
2409
2410 * configure.in (assembler eh_frame optimization): Handle big
2411 endian.
2412 * configure: Regenerated.
2413
2414 Tue Jul 17 23:43:31 CEST 2001 Jan Hubicka <jh@suse.cz>
2415
2416 * expr.c (epxand_expr): Convert divisions into multiplications by
2417 reciprocals if -ffast-math.
2418
2419 2001-07-17 Neil Booth <neil@daikokuya.demon.co.uk>
2420
2421 * dbxout.c (dbxout_really_begin_function): Rename to
2422 dbxout_begin_function.
2423 (dbx_debug_hooks, xcoff_debug_hooks): Update.
2424 (dbxout_begin_function): Remove.
2425 (dbxout_function): Update.
2426 (dbxout_source_line): Update prototype.
2427 * dbxout.h (dbxout_begin_function): Remove.
2428 * debug.c (do_nothing_debug_hooks): Update.
2429 (debug_nothing_tree): Update.
2430 (debug_nothing_charstar_rtx): Remove.
2431 * debug.h (union tree_node): Declare.
2432 (struct rtx_def): Remove.
2433 (gcc_debug_hooks): New hooks begin_prologue, end_prologue,
2434 begin_function. Change source_line prototype.
2435 (debug_nothing_tree): New.
2436 (debug_nothing_charstar_rtx): Delete.
2437 (dwarf2out_begin_prologue): Moved from ...
2438 * tree.h: ... here.
2439 * dwarf2out.c (dwarf2_debug_hooks): Update.
2440 (dwarf2out_begin_prologue): Update prototype. If genuine dwarf2
2441 debug info, call dwarf2out_source_line.
2442 (dwarf2out_souce_line): Update prototype.
2443 * dwarfout.c (dwarfout_begin_function): Rename dwarfout_end_prologue.
2444 Change prototype, make static.
2445 (dwarfout_source_line): Update prototype.
2446 (dwarf_debug_hooks): Update.
2447 * dwarfout.h (dwarfout_begin_function): Remove.
2448 * final.c (final_start_function, final_scan_insn): Use appropriate
2449 debug hooks, update to use notice_source_line.
2450 (output_source_line): Rename notice_source_line. Don't call the
2451 source_line debug hook.
2452 * sdbout.c (sdbout_begin_function): Rename sdbout_begin_prologue,
2453 make static, update prototype.
2454 (sdbout_mark_begin_function): Rename sdbout_begin_function, update
2455 prototype.
2456 (sdbout_end_prologue): New.
2457 (sdbout_source_line): Update prototype.
2458 (sdbout_debug_hooks): Update.
2459 (sdbout_symbol): Remove unused var.
2460 * sdbout.h (sdbout_begin_function, sdbout_mark_begin_function):
2461 Delete.
2462 * varasm.c: Include debug.h.
2463 (assemble_start_function): Use begin_function debug_hook.
2464 * xcoffout.c (xcoffout_begin_prologue): Rename xcoffout_begin_function,
2465 update with prototype.
2466 (xcoffout_source_line): Update prototype.
2467 * xcoffout.h (xcoffout_begin_prologue): Rename xcoffout_begin_function,
2468 update prototype.
2469 (xcoffout_source_line): Update prototype.
2470
2471 2001-07-17 Richard Henderson <rth@redhat.com>
2472
2473 * c-typeck.c (build_binary_op): Do not shorten unsigned
2474 right shift after sign extension.
2475
2476 Tue Jul 17 16:56:05 CEST 2001 Jan Hubicka <jh@suse.cz>
2477
2478 * combine.c (combine_simplify_rtx): Attempt to simplify
2479 a*(b/c) as (a*b)/c for floats in unsafe_math mode.
2480
2481 * simplify-rtx.c (avoid_constatn_pool_reference): New static function.
2482 (simplify_binary_operation, simplify_unary_operation,
2483 simplify_relational_operation): Use it.
2484
2485 * combine.c (combine_simplify_rtx): Don't do associative law
2486 on divisions; allow associative law on floats.
2487
2488 2001-07-17 H.J. Lu <hjl@gnu.org>
2489 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2490
2491 * c-pragma.h (HANDLE_PRAGMA_WEAK): Define iff ASM_WEAKEN_LABEL and
2492 ASM_OUTPUT_WEAK_ALIAS are defined.
2493 * defaults.h (ASM_OUTPUT_WEAK_ALIAS): Define if possible.
2494 * config/mips/iris6.h (ASM_OUTPUT_WEAK_ALIAS, ASM_WEAKEN_LABEL):
2495 Moved ...
2496 * config/mips/iris5.h: ... here.
2497 (HANDLE_SYSV_PRAGMA): Defined as 1.
2498 * varasm.c (weak_finish): Use ASM_OUTPUT_WEAK_ALIAS.
2499 * doc/tm.texi (ASM_OUTPUT_WEAK_ALIAS): Support the undefined weak
2500 symbol.
2501
2502 2001-07-17 Joseph S. Myers <jsm28@cam.ac.uk>
2503
2504 * c-parse.in (all_prefix_attributes): New variable.
2505 (PUSH_DECLSPEC_STACK, POP_DECLSPEC_STACK): New macros.
2506 (maybe_resetattrs): New production.
2507 (c_parse_init, datadef, fndef, datadecl, setspecs, setattrs, decl,
2508 maybe_type_quals_setattrs, initdecls, notype_initdecls, initdcl,
2509 notype_initdcl, nested_function, notype_nested_function,
2510 component_decl, components, components_notype,
2511 component_declarator, component_notype_declarator,
2512 absdcl_maybe_attribute, parm, firstparm, setspecs_fp, ivar_decl,
2513 ivars, mydecl, myparm): Update. Avoid prefix attributes just
2514 after a comma being applied to more than one declarator.
2515 * doc/extend.texi (Attribute Syntax): Update. Remove
2516 documentation of bugs that are no longer present.
2517
2518 2001-07-13 Eric Christopher <echristo@redhat.com>
2519
2520 * config/mips/mips.h: Change TUNE_MIPS* options to use
2521 mips_tune.
2522 (EXTRA_SPECS): Add cc1_cpu_spec.
2523 * config/mips/mips.md (muldf3): Fix typo.
2524
2525 2001-07-16 Richard Henderson <rth@redhat.com>
2526
2527 * config/m68k/m68k.c: Include expr.h and reload.h.
2528 (print_operand_address) [16 bit int]: Cast INTVAL to int for %d.
2529 [general int]: Use HOST_WIDE_INT_PRINT_DEC.
2530
2531 2001-07-16 Daniel Berlin <dan@cgsoftware.com>
2532 Richard Henderson <rth@redhat.com>
2533
2534 * cse.c (set_live_p): Take INSN argument for cc0; update callers.
2535 (insn_live_p): Fix fall off end of function.
2536 (dead_libcall_p): Remove COUNTS argument; update callers.
2537 (delete_trivially_dead_insns): Remove unused variables.
2538
2539 2001-07-17 Andreas Jaeger <aj@suse.de>
2540
2541 * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Fix output format for
2542 x86-64 pic support.
2543
2544 * lcm.c (optimize_mode_switching): Avoid warning for unused
2545 variable if !NORMAL_MODE.
2546
2547 * flow.c (try_crossjump_to_edge): Remove unused variable.
2548
2549 2001-07-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
2550
2551 * inclhack.def (ultrix_atexit_param): New hack to fix ultrix 4.3
2552 atexit declaration in stdlib.h.
2553
2554 2001-07-16 Richard Begg <Richard.Begg@colesmyer.com.au>
2555
2556 * fixinc/inclhack.def(hpux_vsnprintf): brokenness in stdio.h
2557
2558 Mon Jul 16 22:48:00 CEST 2001 Jan Hubicka <jh@suse.cz>
2559
2560 * basic-block.h (CLEANUP_PRE_SIBCALL): New constant.
2561 * except.c (finish_eh_generation): Update call of cleanup_cfg;
2562 do rebuild_jump_labels instead of jump_optimize
2563 * sibcall.c (optimize_sibling_and_tail_recursive_call): Likewise.
2564 * toplev.c (rest_of_compulation): Likewise for -Wreturn_type.
2565 * flow.c (try_optimize_cfg): Remove unneeded code_labels.
2566
2567 * flow.c: Include timevar.h
2568 (find_basic_block): Push/pop timevar;
2569 (cleanup_cfg): Likewise.
2570 * timevar.def (TV_CFG, TV_CLEANUP_CFG): New.
2571 * Makefile: Add dependencies on timevar.h
2572
2573 * integrate.c (save_for_inline): Kill all BASIC_BLOCK notes.
2574 (copy_insn_list): Avoid killing of BASIC_BLOCK notes.
2575
2576 * rtl.h (delete_trivially_dead_insns): Add new parameter.
2577 * toplev.c (rest_of_compilation): Update calls.
2578 * cse.c (set_live_p, insn_live_p, dead_libcall_p): Break out from ...
2579 (delete_trivially_dead_insns): ... here; accept new argument
2580 preserve_basic_blocks; preserve basic blocks if set.
2581
2582 * reg-stack.c (stack_regs_mentioned): Return 0 if
2583 stack_regs_mentioned_data is not initialized.
2584 (reg_to_stack): Make stack_regs_mentioned survive after the
2585 reg-stack is completted; do not call cleanup_cfg.
2586 * toplev.c (rest_of_compilation): Do cleanup_cfg before bb-reorder;
2587 make cleanup_cfg after bb-reorder to output to debug file.
2588
2589 2001-07-16 Richard Henderson <rth@redhat.com>
2590
2591 * regclass.c (init_reg_sets): Use only 32 bits per initializer
2592 from int_reg_class_contents.
2593
2594 2001-07-16 Richard Henderson <rth@redhat.com>
2595
2596 * hard-reg-set.h (regs_invalidated_by_call): Declare.
2597 * regclass.c (regs_invalidated_by_call): Move from cse.c.
2598 (init_reg_sets_1): Move initialization from cse_main.
2599 * cse.c (regs_invalidated_by_call): Move to regclass.c.
2600 (cse_main): Move its initialization also.
2601 * df.c (df_insn_refs_record): Use regs_invalidated_by_call.
2602 * flow.c (propagate_one_insn): Likewise.
2603 * gcse.c (compute_hash_table): Likewise.
2604 (compute_kill_rd, compute_store_table): Likewise.
2605 * sched-deps.c (sched_analyze_1): Likewise.
2606
2607 Mon Jul 16 18:07:07 2001 J"orn Rennecke <amylaar@redhat.com>
2608
2609 * gcse.c (pre_insert_copy_insn): Use gen_move_insn instead of
2610 gen_rtx_SET.
2611
2612 2001-07-16 Steve Ellcey <sje@cup.hp.com>
2613
2614 * dominance.c (calc_dfs_tree_nonrec): Reverse order of tests
2615 in if statement so we don't access undefined memory.
2616
2617 2001-07-16 Daniel Berlin <dan@cgsoftware.com>
2618
2619 * gcse.c: Update comment at top.
2620 Update comment on mem handling.
2621 mem_last_set, mem_first_set, mem_set_in_block: gone.
2622 Declaration of reg_set_info: gone.
2623 (oprs_unchanged_p): Don't use mem_*set_* anymore. They are
2624 pointless with load_killed_in_block_p (they are *more*
2625 conservative then it, not less, and less accurate).
2626 (oprs_not_set_p): Ditto.
2627 (alloc_gcse_mem): Don't allocate mem_set_in_block
2628 (free_gcse_mem): Don't free it, either.
2629 (record_last_mem_set_info): Update comment in front, remove
2630 mem_*set_* stuff. Note the reason we don't handle stores directly
2631 here.
2632 (compute_hash_table): Update comments to reflect reality. Remove
2633 mem_*set_* references.
2634 (reset_opr_set_tables): Remove mem_*set_* references.
2635 (mark_call): Ditto.
2636 (mark_set): Ditto. Also remove double sets of bitmaps for REG's.
2637 (mark_clobber): Ditto (on both parts, we double set here too).
2638 (expr_killed_p): Remove mem_set_in_block test.
2639 (compute_transp): Remove mem_set_in_block test.
2640
2641 * ssa-ccp.c: (optimize_unexecutable_edges): Add note about removal
2642 of edge, and removal of phi alternative to dump file.
2643 (ssa_ccp_substitute_constants): Add note about register now being
2644 constant, and which uses were replaced in what insns to dump file.
2645
2646 2001-07-16 Andreas Jaeger <aj@suse.de>
2647
2648 * gcov.c (output_data): Use HOST_WIDEST_INT_PRINT_DEC to output
2649 variables of type HOST_WIDEST_INT.
2650
2651 * libgcc2.c (__bb_exit_func): Handle gcov_type as long long.
2652 (__bb_exit_func): Correct type of count_max to avoid overflow.
2653 (num_digits): Handle long long argument.
2654
2655 * combine.c (gen_lowpart_for_combine): Remove unused variable.
2656
2657 2001-07-16 Neil Booth <neil@cat.daikokuya.demon.co.uk>
2658
2659 * output.h (sdb_begin_function_line): Restore as an extern
2660 variable.
2661 * sdbout.c (sdb_begin_function_line): Make extern.
2662
2663 2001-07-15 Richard Henderson <rth@redhat.com>
2664
2665 * machmode.def (Pmode): Redefine if GENERATOR_FILE.
2666 * genrecog.c (maybe_both_true_mode): New.
2667 (maybe_both_true_2): Use it.
2668 (write_switch): Don't put Pmode in a switch.
2669 * rtl.c (mode arrays): Don't explicitly size them.
2670
2671 Sun Jul 15 14:07:36 CEST 2001 Jan Hubicka <jh@suse.cz>
2672
2673 * toplev.c (rest_of_compilation): Fix register_life_up_to_date
2674 handling; move unconditional splitting before mode switching.
2675
2676 * i386.md (type): Add fistp type.
2677 (i387, length_attr, scheduling definitions): Handle this type.
2678 (fix_trunc?f?i2): Revamp to use mode switching.
2679 (fix_trunct?f?i_nonmemory, fix_trunc?f?i_memory): New patterns.
2680 * i386.h (fp_cw_mode): New enum
2681 (OPTIMIZE_MODE_SWITCHING, NUM_MODES_FOR_MODE_SWITCHING, MODE_NEEDED,
2682 MODE_PRIORITY_TO_MODE, ENUM_MODE_SET): New macros.
2683
2684 Sun Jul 15 12:53:51 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2685
2686 * Makefile.in (integrate.o): Add debug.h.
2687 * integrate.c (debug.h): Add.
2688 (output_inline_function): Save, reset, and restore debug_hooks.
2689
2690 2001-07-15 Richard Henderson <rth@redhat.com>
2691
2692 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use CCmode
2693 instead of COMPARE for the EQUIV expression.
2694
2695 2001-07-15 Richard Henderson <rth@redhat.com>
2696
2697 * flow.c (redirect_edge_and_branch_force): Initialize
2698 global_live_at_start and global_live_at_end.
2699 (allocate_bb_life_data): Export.
2700 * basic-block.h (allocate_bb_life_data): Declare.
2701 * toplev.c (rest_of_compilation): Call it.
2702
2703 2001-07-15 Richard Henderson <rth@redhat.com>
2704
2705 * config/alpha/alpha.c (alpha_tablejump_addr_vec): New.
2706 (alpha_tablejump_best_label): New.
2707 * config/alpha/alpha-protos.h: Declare them.
2708 * config/alpha/alpha.md: Use braced strings for code blocks.
2709 (tablejump_osf): Break out add with r29.
2710 (tablejump_osf_internal): Remove.
2711 (tablejump_osf_nt_internal): Rename from tablejump_nt_internal,
2712 use alpha_tablejump_addr_vec and alpha_tablejump_best_label.
2713
2714 Sun Jul 15 00:53:35 CEST 2001 Jan Hubicka <jh@suse.cz>
2715
2716 * loop.c (scan_loop): Add USEs inside PARALLELs into dependencies
2717 of the movable.
2718
2719 * toplev.c (rest_of_compilation): Allow new pseudoes for mode switching.
2720
2721 * i386-protos.h (ix86_split_fp_branch): Update prototype.
2722 (ix86_fp_jump_nontrivial_p): New.
2723 * i386.md (fp_jcc_?): Update call of split_fp_branch;
2724 use ix86_fp_jump_nontrivial_p.
2725 * i386.c (ix86_fp_jump_nontrivial_p): New.
2726 (ix86_split_fp_branch): Accept code instead of rtx.
2727 (ix86_expand_compare): Expand comparison early in case
2728 doing so is resonably cheap.
2729
2730 2001-07-15 Nick Clifton <nickc@cambridge.redhat.com>
2731
2732 * config/rs6000/sysv4.h (CPP_ENDIAN_BIG_SPEC): Assert 'endian'
2733 not 'machine'.
2734 (CPP_ENDIAN_LITTLE_SPEC): Assert 'endian' not 'machine'.
2735 (CPP_ENDIAN_SOLARIS_SPEC): Assert 'endian' not 'machine'.
2736
2737 2001-07-15 Neil Booth <neil@daikokuya.demon.co.uk>
2738
2739 * dbxout.c (dbxout_source_line): Make static, update prototype.
2740 (dbx_debug_hooks, xcoff_debug_hooks): Add new hooks.
2741 (dbxout_init, dbxout_finish, dbxout_source_line,
2742 dbxout_begin_block, dbxout_end_block): Update for new prototypes.
2743 * dbxout.h (dbxout_source_line): Delete.
2744 * debug.c (debug_nothing_file, debug_nothing_file_int,
2745 debug_nothing_file_charstar_rtx): New.
2746 (do_nothing_debug_hooks): Update.
2747 (debug_nothing_void, debug_nothing_charstar_rtx,
2748 dwarf2out_end_epilogue): New.
2749 (debug_nothing_file_charstar, debug_nothing_file_int_int): Rename.
2750 * debug.h (struct rtx_def): Declare.
2751 (gcc_debug_hooks): New hooks source_line, end_epilogue
2752 and end_function.
2753 (debug_nothing_void, debug_nothing_charstar_rtx,
2754 dwarf2out_end_epilogue): New.
2755 (debug_nothing_file_charstar, debug_nothing_file_int_int): Rename.
2756 * dwarf2out.c (dwarf2out_source_line): Make static, update prototype.
2757 (dwarf2_debug_hooks): Update.
2758 (dwarf2out_init, dwarf2out_finish, dwarf2out_source_line,
2759 dwarf2out_begin_block, dwarf2out_end_block): Update for new prototypes.
2760 * dwarf2out.h (dwarf2out_source_line): Remove.
2761 * dwarfout.c (dwarfout_end_epilogue, dwarfout_end_function):
2762 Make static, update prototype.
2763 (dwarfout_init, dwarfout_finish, dwarfout_source_line,
2764 dwarfout_begin_block, dwarfout_end_block): Update for new prototypes.
2765 (dwarf_debug_hooks): Update.
2766 * dwarfout.h (dwarfout_end_epilogue, dwarfout_source_line,
2767 dwarfout_end_function): Remove.
2768 * final.c (profile_function): Use debug hooks for ending functions
2769 and epilogues.
2770 (output_source_line, final_end_function): Update prototype,
2771 use debug hooks.
2772 (final_start_function, final_scan_insn): Update.
2773 * output.h (sdb_begin_function_line): Remove.
2774 (final_end_function): Update prototype.
2775 * sdbout.c (sdb_begin_function_line): Make static.
2776 (PUT_SDB_EPILOGUE_END): Move to sdbout_end_epilogue.
2777 (sdbout_source_line): New.
2778 (sdbout_end_epilogue, sdbout_end_function): Make static, update
2779 prototypes.
2780 (sdb_debug_hooks): Update.
2781 (sdbout_init, sdbout_source_line,
2782 sdbout_begin_block, sdbout_end_block): Update for new prototypes.
2783 * sdbout.h (sdbout_end_epilogue, sdbout_end_function): Remove.
2784 * toplev.c (compile_file, rest_of_compilation): Update.
2785 * tree.h (dwarf2out_end_epilogue): Move to debug.h.
2786 * xcoffout.c (xcoffout_source_line, xcoffout_begin_block,
2787 xcoffout_end_block, xcoffout_end_epilogue, xcoffout_end_function):
2788 Update for prototype changes.
2789 * xcoffout.h (xcoffout_source_line, xcoffout_begin_block,
2790 xcoffout_end_block, xcoffout_end_epilogue): Update prototypes.
2791
2792 2001-07-15 Richard Henderson <rth@redhat.com>
2793
2794 * config/alpha/alpha.h (TARGET_ABI_OSF): New.
2795 (TARGET_ABI_WINDOWS_NT, TARGET_ABI_OPEN_VMS): Rename; update users.
2796 * config/alpha/alpha-protos.h: Update TARGET_ABI_* users.
2797 * config/alpha/alpha.c: Likewise.
2798 * config/alpha/alpha.md: Likewise.
2799 * config/alpha/alpha32.h: Likewise.
2800 * config/alpha/vms.h: Likewise.
2801 (OPEN_VMS): Remove.
2802
2803 2001-07-14 Richard Henderson <rth@redhat.com>
2804
2805 * config/alpha/alpha.md: Use define_constants for unspec values.
2806 Substitute throughout.
2807
2808 2001-07-14 Tim Josling <tej@melbpc.org.au>
2809
2810 * tree.def (EXPON_EXPR) remove. Never supported anyway.
2811
2812 2001-07-14 John David Anglin <dave@hiauly1.hia.nrc.ca>
2813
2814 * pa.md: Remove unused constraints from define_split's.
2815
2816 2001-04-14 Richard Henderson <rth@redhat.com>
2817
2818 * ifcvt.c (find_cond_trap): Test for exit block.
2819
2820 Sun Jul 15 00:50:20 CEST 2001 Jan Hubicka <jh@suse.cz>
2821
2822 Re-install recently reverted patch.
2823 * emit-rtl.c (try_split): Update mark_jump_label call.
2824 * flow.c (find_sub_basic_blocks): Likewise.
2825 * jump.c (cross_jump_death_matters, find_cross_jump, do_cross_jump,
2826 jump_back_p): Kill.
2827 (mark_all_labels): Kill second parameter.
2828 (jump_optimize, jump_optimize_1): Kill cross_jump parameter.
2829 (rebuild_jump_labels, jump_optimize_minimal): Update call
2830 of jump_optimize_1.
2831 (jump_optimize_1): Kill crossjumping code.
2832 (mark_jump_label): Kill cross_jump parameter.
2833 * rtl.h (mark_jump_label, jump_optimize): Update prototypes.
2834 (JUMP_CROSS_JUMP, JUMP_CROSS_JUMP_DEATH_MATTERS): Kill.
2835 * reg-stack.c (reg_to_stack): Do not rebuild if not needed; do
2836 splitting.
2837 * toplev.c (enum dump_file_index): Kill DFI_jump2; put DFI_stack before
2838 DFI_bpro.
2839 (dump_file_info): Likewise.
2840 (rest_of_compilation): Update calls to jump_optimize; kill jump2 pass;
2841 reorganize passes to do reg-stack first, bb-reorder second.
2842 * invoke.texi (-d letters doc): Remove the jump2 pass.
2843
2844 2001-07-14 Richard Henderson <rth@redhat.com>
2845
2846 * ifcvt.c (find_cond_trap): New.
2847 (find_if_header): Call it.
2848 (merge_if_block): Relax existing jump sanity check.
2849 * jump.c (jump_optimize_1): Remove conditional trap handling.
2850
2851 2001-07-14 Alan Modra <amodra@bigpond.net.au>
2852
2853 * config/pa/pa.c (emit_hpdiv_const): Return reg is r2 for 64-bit
2854 millicode.
2855 (insn_refs_are_delayed): Correct comment.
2856 * config/pa/pa.h (INSN_REFERENCES_ARE_DELAYED): Likewise.
2857 * config/pa/pa.md (mulsi3): If TARGET_64BIT, clobber r2
2858 instead of r31. Make associated insn !TARGET_64BIT, and
2859 provide an additional 64-bit insn that clobbers r2.
2860 (divsi3): Likewise.
2861 (udivsi3): Likewise.
2862 (modsi3): Likewise.
2863 (umodsi3): Likewise.
2864
2865 Sat Jul 14 02:58:38 CEST 2001 Jan Hubicka <jh@suse.cz>
2866
2867 * bb-reorder.c (skip_insn_after_block): Get past the line number notes.
2868
2869 * flow.c (redirect_edge_and_branch_force, split_edge,
2870 try_crossjump_to_edge): Use set_block_for_new_insns.
2871 * bb-reorder.c (emit_jump_to_block_after): Call set_block_for_new_insns.
2872
2873 2001-07-13 H.J. Lu (hjl@gnu.org)
2874
2875 * config/elfos.h (UNIQUE_SECTION): Enable .bss section with
2876 the correct patch.
2877
2878 2001-07-13 Geoffrey Keating <geoffk@redhat.com>
2879
2880 Revert H.J. Lu's UNIQUE_SECTION patch of 2001-07-13.
2881
2882 2001-07-13 Joseph S. Myers <jsm28@cam.ac.uk>
2883
2884 * c-common.c (decl_attributes): Take a pointer to the node to
2885 which attributes are to be attached, and a flags argument.
2886 * c-common.h (enum attribute_flags): New.
2887 (decl_attributes): Update prototype.
2888 * c-decl.c (start_decl, push_parm_decl, finish_struct,
2889 finish_enum, start_function): Update calls to decl_attributes.
2890 * c-parse.in (component_declarator, component_notype_declarator,
2891 label): Update calls to decl_attributes.
2892
2893 Fri Jul 13 23:04:00 2001 Denis Chertykov <denisc@overta.ru>
2894
2895 * config/avr/avr.md (strlenhi): PARALLEL keyword removed.
2896 * config/avr/avr.c (legitimate_address_p): Return value changed
2897 from letter to register classes. For better debugging.
2898
2899 2001-07-13 Kazu Hirata <kazu@hxi.com>
2900
2901 * jump.c (reversed_comparison_code_parts): Fix comment typos.
2902
2903 2001-07-13 H.J. Lu (hjl@gnu.org)
2904
2905 * config/elfos.h (UNIQUE_SECTION): Enable .bss section.
2906
2907 2001-07-13 Marc Espie <espie@cvs.openbsd.org>
2908
2909 * config.gcc (*-*-openbsd*): Add fragment to compile libgcc
2910 correctly for shared configurations.
2911 * config/t-libgcc-pic: New.
2912 * config/{i386,m68k,sparc}/t-openbsd: New.
2913 * config/openbsd.h: Include cpu_spec in cpp_spec where needed.
2914 Support -shared. Support debugging libraries with -g.
2915 * config/i386/openbsd.h: Correct ASM_COMMENT_START. Ensure dwarf2
2916 frame information does not emit pointer diffs.
2917 * config/sparc/openbsd.h: Ensure dwarf2 frame information does not
2918 emit pointer diffs.
2919
2920 2001-07-13 Geoffrey Keating <geoffk@redhat.com>
2921
2922 Revert Jan Hubicka's patch of Fri Jul 13 14:46:21 CEST 2001.
2923
2924 2001-07-13 David Edelsohn <edelsohn@gnu.org>
2925
2926 * combine.c (try_combine): Ensure const_int pow2 is positive.
2927
2928 2001-07-13 Hartmut Penner <hpenner@de.ibm.com>
2929
2930 * config.gcc: Add configuration for s/390.
2931 * config/s390/s390.c: New. Subroutines for code generation.
2932 * config/s390/s390.h: New. Definitions for s/390.
2933 * config/s390/s390-protos.h: New. Prototypes.
2934 * config/s390/linux.h: New. Definitions for linux for s/390.
2935 * config/s390/linux64.h: New. Definitions for linux for zSeries.
2936 * config/s390/t-linux: New. Makefile fragment.
2937 * config/s390/s390.md: New. Machine description for s/390 and zSeries.
2938 * config/s390/fixdfdi.h: New. Fix L_fix*di.
2939
2940 Fri Jul 13 14:46:21 CEST 2001 Jan Hubicka <jh@suse.cz>
2941
2942 * emit-rtl.c (try_split): Update mark_jump_label call.
2943 * flow.c (find_sub_basic_blocks): Likewise.
2944 * jump.c (cross_jump_death_matters, find_cross_jump, do_cross_jump,
2945 jump_back_p): Kill.
2946 (mark_all_labels): Kill second parameter.
2947 (jump_optimize, jump_optimize_1): Kill cross_jump parameter.
2948 (rebuild_jump_labels, jump_optimize_minimal): Update call
2949 of jump_optimize_1.
2950 (jump_optimize_1): Kill crossjumping code.
2951 (mark_jump_label): Kill cross_jump parameter.
2952 * rtl.h (mark_jump_label, jump_optimize): Update prototypes.
2953 (JUMP_CROSS_JUMP, JUMP_CROSS_JUMP_DEATH_MATTERS): Kill.
2954 * reg-stack.c (reg_to_stack): Do not rebuild if not needed; do
2955 splitting.
2956 * toplev.c (enum dump_file_index): Kill DFI_jump2; put DFI_stack before
2957 DFI_bpro.
2958 (rest_of_compilation): Update calls to jump_optimize; kill jump2 pass;
2959 reorganize passes to do reg-stack first, bb-reorder second.
2960 * invoke.texi (-d letters doc): Remove the jump2 pass.
2961
2962 2001-07-12 Steve Ellcey <sje@cup.hp.com>
2963
2964 * toplev.c (compile_file): Put call of ASM_FILE_START inside ifdef.
2965
2966 Thu Jul 12 17:57:16 CEST 2001 Jan Hubicka <jh@suse.cz>
2967
2968 * flow.c (try_optimize_cfg): Delete whole chain of trivially dead
2969 basic blocks.
2970 (verify_flow_info): Make diagnostics prettier.
2971
2972 Thu Jul 12 16:48:54 CEST 2001 Jan Hubicka <jh@suse.cz>
2973
2974 * flow.c (find_basic_blocks_1): Do not emit NOP after call.
2975
2976 * flow.c (outgoing_edges_match): Return early if condition reversal
2977 failed.
2978
2979 2001-07-06 Richard Sandiford <rsandifo@redhat.com>
2980
2981 * config/mips/mips.c (print_operand): Extend '%D' to memory operands.
2982 (mips_move_2words): When splitting a move into two instructions,
2983 prefix the second address operand with '%D'.
2984
2985 2001-07-12 Neil Booth <neil@daikokuya.demon.co.uk>
2986
2987 * Makefile.in (final.o): Depend on debug.h.
2988 * dbxout.c (dbxout_begin_block, dbxout_end_block): New.
2989 (dbx_debug_hooks): Add new hooks.
2990 (xcoff_debug_hooks): New.
2991 * debug.c (debug_nothing_file_int_int): New.
2992 (do_nothing_debug_hooks): Update.
2993 * debug.h (gcc_debug_hooks): New hooks begin_block and end_block.
2994 (debug_nothing_file_int_int): New.
2995 * dwarf2out.c (dwarf2out_begin_block, dwarf2out_end_block): Make
2996 static, update prototype.
2997 (dwarf2_debug_hooks): Update.
2998 * dwarf2out.h (dwarf2out_begin_block, dwarf2out_end_block): Remove.
2999 * dwarfout.c (dwarfout_begin_block, dwarfout_end_block): Make
3000 static, update prototype.
3001 (dwarf_debug_hooks): Update.
3002 * dwarfout.h (dwarfout_begin_block, dwarfout_end_block): Remove.
3003 * final.c: Include debug.h.
3004 (final_scan_insn): Use debug hooks when beginning and ending blocks.
3005 * sdbout.c (sdbout_begin_block, sdbout_end_block): Make
3006 static, update prototype.
3007 (sdb_debug_hooks): Update.
3008 * sdbout.h (sdbout_begin_block, sdbout_end_block): Remove.
3009 * toplev.c: Distinguish between xcoff and dbx.
3010
3011 * f/lex.c (ffelex_file_pop_, ffelex_file_push_, ffelex_hash_):
3012 Call all debug hooks, not just dwarf ones.
3013
3014 2001-07-11 Timothy Wall <twall@redhat.com>
3015
3016 * config.gcc: Add configuration for AIX5/IA64.
3017 * config/ia64/aix.h: New. AIX5/IA64-specific configuration.
3018 * config/ia64/crt[in].asm: New. Generic static ctor/dtor
3019 support prefix/suffix code.
3020 * config/ia64/t-aix: New. Makefile fragment.
3021 * config/ia64/unwind-aix.c: New. Unwind table entry lookup.
3022
3023 2001-07-11 Kazu Hirata <kazu@hxi.com>
3024
3025 * recog.c (validate_change): Fix a comment typo.
3026
3027 2001-07-11 Neil Booth <neil@daikokuya.demon.co.uk>
3028
3029 * Makefile.in (c-lex.o): Wrap long lines. Depend on debug.h.
3030 * c-lex.c (cb_file_change, cb_define, cb_undef): Use debug
3031 hooks directly.
3032 * dbxout.c (dbx_debug_hooks): Add new hooks.
3033 (dbxout_start_new_source_file): Rename dbxout_start_source_file,
3034 make static.
3035 (dbxout_resume_previous_source_file): Rename dbxout_end_source_file,
3036 make static.
3037 * dbxout.h (dbxout_start_new_source_file,
3038 dbxout_resume_previous_source_file): Delete.
3039 * debug.c (do_nothing_debug_hooks): Add new hooks.
3040 (debug_nothing_init_finish): Rename debug_nothing_file_charstar.
3041 (debug_nothing_int_charstar, debug_nothing_int): New.
3042 * debug.h (gcc_debug_hooks): New hooks define, undef,
3043 start_source_file and end_source_file.
3044 (debug_nothing_init_finish): Rename debug_nothing_file_charstar.
3045 (debug_nothing_int_charstar, debug_nothing_int): New.
3046 * dwarf2out.c (dwarf2_debug_hooks): Add new hooks. Move into
3047 the conditionally compiled section.
3048 (dwarf2out_start_source_file, dwarf2out_end_source_file,
3049 dwarf2out_define, dwarf2out_undef): Make static.
3050 * dwarf2out.h (dwarf2out_start_source_file, dwarf2out_end_source_file,
3051 dwarf2out_define, dwarf2out_undef): Remove.
3052 * dwarfout.c (dwarf_debug_hooks): Add new hooks.
3053 (dwarfout_start_source_file, dwarfout_end_source_file,
3054 dwarfout_define, dwarfout_undef): Make static.
3055 (dwarfout_start_source_file_check,
3056 dwarfout_end_source_file_check): New.
3057 (dwarfout_define, dwarfout_finish): Update.
3058 * dwarfout.h (dwarfout_start_new_source_file,
3059 dwarfout_resume_previous_source_file, dwarfout_define,
3060 dwarfout_undef): Remove.
3061 * sdbout.c (sdb_debug_hooks): Add new hooks.
3062 (sdbout_start_new_source_file): Rename sdbout_start_source_file,
3063 make static.
3064 (sdbout_resume_previous_source_file): Rename sdbout_end_source_file,
3065 make static, take an arg.
3066 * sdbout.h (sdbout_start_new_source_file,
3067 sdbout_resume_previous_source_file): Delete.
3068 * toplev.c (debug_start_source_file, debug_end_source_file,
3069 debug_define, debug_undef): Delete.
3070 * toplev.h (debug_start_source_file, debug_end_source_file,
3071 debug_define, debug_undef): Delete.
3072
3073 * java/jcf-parse.c: Include debug.h.
3074 (parse_class_file): Update to use debug hooks directly.
3075 * java/Make-lang.in (jcf-parse.o): Depend on debug.h.
3076
3077 Wed Jul 11 10:07:18 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3078
3079 * alias.c (set_mem_alias_set): New function.
3080 * rtl.h (set_mem_alias_set): Declare it.
3081 * builtins.c (expand_builtin_return_addr): Call it instead of
3082 using MEM_ALIAS_SET accessor.
3083 (expand_builtin_setjmp_setup, expand_builtin_longjmp): Likewise.
3084 (get_memory_rtx, expand_builtin_va_arg): Likewise.
3085 (expand_builtin_va_copy):Likewise.
3086 * caller-save.c (setup_save_areas): Likewise.
3087 * calls.c (compute_argument_addresses): Likewise.
3088 * explow.c (set_mem_attributes): Likewise.
3089 * expr.c (emit_single_push_insn, emit_push_insn): Likewise.
3090 (expand_assignment, store_constructor_field, store_field): Likewise.
3091 (expand_expr_unaligned): Likewise.
3092 * function.c (assign_stack_temp_for_type): Likewise.
3093 (put_reg_into_stack, gen_mem_addressof): Likewise.
3094 * ifcvt.c (noce_try_cmove_arith): Likewise.
3095 * reload1.c (reload, alter_reg): Likewise.
3096 * config/alpha/alpha.c (get_aligned_mem): Likewise.
3097 (alpha_set_memflags_1, alpha_expand_unaligned_load): Likewise.
3098 (alpha_expand_unaligned_store): Likewise
3099 (alpha_expand_unaligned_load_words): Likewise.
3100 (alpha_expand_unaligned_store_words): Likewise.
3101 (alpha_expand_block_clear, alpha_expand_prologue): Likewise.
3102 (alpha_expand_epilogue): Likewise.
3103 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
3104 * config/clipper/clipper.c (clipper_builtin_saveregs): Likewise.
3105 * config/i386/i386.c (legitimize_pic_address): Likewise.
3106 * config/i960/i960.c (setup_incoming_varargs): Likewise.
3107 * config/ia64/ia64.c (spill_restore_mem): Likewise.
3108 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
3109 * config/m8k/m88k.c (m88k_builtin_saveregs): Likewise.
3110 * config/mips/mips.c (mips_va_arg): Likewise.
3111 * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
3112 * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
3113 * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
3114 (setup_incoming_varargs, rs6000_va_arg): Likewise.
3115 (rs6000_emit_eh_toc_restore, rs6000_emit_prologue): Likewise.
3116 (rs6000_emit_epilogue): Likewise.
3117 * config/sh/sh.c (sh_builtin_saveregs): Likewise.
3118 * config/sparc/sparc.c (sparc_va_arg): Likewise.
3119 * config/v850/v850.c (v850_va_arg): Likewise.
3120
3121 Wed Jul 11 21:27:25 CEST 2001 Jan Hubicka <jh@suse.cz>
3122
3123 * flow.c (merge_blocks_move_successor_nojumps): Do not crash
3124 when fallthru edge is present.
3125 (mege_blocks): Handle case where creation of jump insn
3126 is required.
3127
3128 * basic-block.h (CLEANUP_EXPENSIVE, CLEANUP_CROSSJUMP,
3129 CLEANUP_POST_REGSTACK): New constants.
3130 * except.c (finish_eh_generation): Update call of cleanup_cfg,
3131 * jump.c (rtx_renumbered_equal_p): Handle 't' fields.
3132 * output.h (cleanup_cfg): Update prototype.
3133 * reg-stack.c (reg_to_stack): Use cleanup_cfg instead of jump_optimize
3134 * sibcall.c (optimize_sibling_and_tail_recursive_call): Update
3135 cleanup_cfg call; kill missleading comment.
3136 * toplev.c (rest_of_compilation): Update all cleanup_cfg calls.
3137 * flow.c (merge_blocks, try_optimize_cfg, cleanup_cfg): Accept mode
3138 parameter; control optimizations performed using it.
3139 (flow_find_cross_jump, outgoing_edges_match, try_crossjump_to_edge,
3140 try_crossjump_bb): New functions.
3141
3142 2001-07-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
3143
3144 * pa.c (pa_output_function_prologue): Delete prototype. Make function
3145 extern.
3146 * pa.h (ASM_OUTPUT_MI_THUNK): Rename output_function_prologue to
3147 pa_output_function_prologue.
3148 * pa-protos.h (pa_output_function_prologue): New prototype.
3149
3150 2001-07-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
3151
3152 * stmt.c (emit_case_nodes): Widen high and low instead of new_bound
3153 and low to get correct sign extension in low+high test.
3154
3155 2001-07-11 Janis Johnson <janis@us.ibm.com>
3156
3157 * gcov.c (arcdata): Use gcov_type to fix branch percentage
3158 for large hit count.
3159
3160 * profile.c (branch_prob): Fix .bbg info for computed gotos
3161 and C++ EH code.
3162
3163 2001-07-11 Mark Mitchell <mark@codesourcery.com>
3164
3165 * stmt.c (parse_output_constraint): New function, split out
3166 from ...
3167 (expand_asm_operands): ... here. Use parse_output_constraint.
3168 * tree.h (parse_output_constraint): Declare it.
3169
3170 2001-07-11 Richard Henderson <rth@redhat.com>
3171
3172 * bitmap.c: Comment some functions; fiddle whitespace.
3173 (bitmap_free): Don't export.
3174 (bitmap_element_allocate): Use memset.
3175 * bitmap.h (bitmap_free): Don't declare.
3176
3177 2001-07-11 Daniel Berlin <dan@cgsoftware.com>
3178
3179 * gcse.c, lcm.c, sched-deps.c:
3180 s/free on sbitmap vectors/sbitmap_vector_free on sbitmap vectors/g
3181
3182 * flow.c (flow_loops_find): Free dom if we found no loops, since
3183 we aren't going to save it.
3184
3185 * lcm.c (pre_edge_rev_lcm): Free st_antin, st_antout when we are
3186 done.
3187
3188 Wed Jul 11 09:00:48 2001 Jeffrey A Law (law@cygnus.com)
3189
3190 * ssa-ccp.c (ssa_fast_dce): Free worklist when completed.
3191
3192 Wed Jul 11 10:07:18 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3193
3194 * dwarf2out.c (dwarf2out_init, dwarf2out_finish): Add dummy version
3195 #ifndef DWARF2_DEBUGGING_INFO.
3196
3197 2001-07-11 Richard Sandiford <rsandifo@redhat.com>
3198
3199 * simplify-rtx.c (simplify_gen_subreg): Return null for QUEUED rtxes.
3200
3201 2001-07-11 Richard Sandiford <rsandifo@redhat.com>
3202
3203 * config/mips/mips.c (gen_int_relational): Tell the caller not to
3204 reverse a branch if a NE comparison is implemented with GTU.
3205
3206 2001-07-11 Richard Sandiford <rsandifo@redhat.com>
3207 H.J. Lu <hjl@gnu.org>
3208
3209 * mips.md (call_internal1): Use CONSTANT_ADDRESS_P to check for
3210 constant addresses.
3211 (call_internal2): Likewise.
3212 (call_value_internal1): Likewise.
3213 (call_value_internal2): Likewise.
3214 (call_value_multiple_internal1): Likewise.
3215 (call_value_multiple_internal2): Likewise.
3216
3217 2001-07-10 Kazu Hirata <kazu@hxi.com>
3218
3219 * calls.c (emit_library_call_value_1): Fix a comment typo.
3220 * dwarf2out.c (mem_loc_descriptor): Likewise.
3221 * config/i386/i386.c (ix86_expand_aligntest): Likewise.
3222
3223 2001-07-11 David Billinghurst <David.Billinghurst@riotinto.com>
3224
3225 * simplify-rtx.c (simplify_subreg): Fix typo in comment
3226
3227 Tue Jul 10 07:27:53 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3228
3229 * recog.c (offsettable_address_p): Handle LO_SUM case.
3230 * config/mips/mips.c (double_memory_operand): Use adjust_address_nv
3231 instead of plus_constant.
3232
3233 2001-07-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3234
3235 * reload1.c (merge_assigned_reloads): After a RELOAD_OTHER merge,
3236 fix setting of the reloads of that reload to RELOAD_FOR_OTHER_ADDRESS.
3237
3238 Tue Jul 10 07:27:53 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3239
3240 * config/rs6000/rs6000.c (print_operand, case 'L', 'Y', 'Z'): Use
3241 adjust_address_nv instead of plus_constant.
3242
3243 2001-07-10 Neil Booth <neil@daikokuya.demon.co.uk>
3244
3245 * Makefile.in (toplev.o, sdbout.o, dbxout.o, dwarfout.o,
3246 dwarf2out.o): Depend on debug.h, wrap long lines.
3247 * dbxout.c: Include debug.h.
3248 (dbx_debug_hooks): New.
3249 (dbxout_init): Make static, take just 2 args.
3250 (dbxout_finish): Make static.
3251 * dbxout.h (dbxout_init, dbxout_finish): Delete.
3252 * debug.c: New file.
3253 * debug.h: New file.
3254 * dwarf2out.c: Include debug.h.
3255 (dwarf2_debug_hooks): New.
3256 (dwarf2out_init): Make static.
3257 (dwarf2out_finish): Make static, take 2 args.
3258 * dwarf2out.h (dwarf2out_init, dwarf2out_finish): Delete.
3259 * dwarfout.c: Include debug.h.
3260 (dwarf_debug_hooks): New.
3261 (dwarfout_init): Make static.
3262 (dwarfout_finish): Make static, take 2 args.
3263 * dwarfout.h (dwarfout_init, dwarfout_finish): Delete.
3264 * sdbout.c: Include debug.h.
3265 (sdb_debug_hooks): New.
3266 (sdbout_init): Make static, take 2 args.
3267 * sdbout.h (sdbout_init): Delete.
3268 * toplev.c: Include debug.h.
3269 (debug_hooks): New.
3270 (compile_file): Set deubg_hooks based on command line options.
3271 Use the hooks unconditionally rather than conditional compilation.
3272
3273 Tue Jul 10 09:04:45 2001 Jeffrey A Law (law@cygnus.com)
3274
3275 * ssa-ccp.c (first_phi_node): Remove. Replace uses with calls to
3276 first_insn_after_basic_block_note instead.
3277
3278 * df.c (df_bb_refs_unlink): #if 0 out for now.
3279
3280 2001-07-10 David Billinghurst <David.Billinghurst@riotinto.com
3281
3282 * ssa.h: Add prototype for ssa_const_prop
3283 * ssa-ccp.c: Add prototype for ssa_fast_dce and mark_references
3284 (ssa_ccp_substitute_constants): Fix signed vs unsigned comparison
3285 (ssa_fast_dce): Remove unused variable
3286
3287 2001-07-10 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
3288
3289 * diagnostic.c (finish_diagnostic): Rename to
3290 diagnostic_finish. Make it take an 'output_buffer *'. Adjust
3291 calls thourghout.
3292
3293 2001-07-10 Jason Merrill <jason_merrill@redhat.com>
3294
3295 * dwarf2out.c (dwarf2out_line): Emit -dA comment even when we have
3296 .loc support.
3297
3298 * collect2.c (main): Set COLLECT_NO_DEMANGLE for subprocesses.
3299 (dump_file): Only pad the demangled name with spaces if the
3300 mangled name was padded with spaces.
3301
3302 2001-07-10 Bernd Schmidt <bernds@redhat.com>
3303
3304 * bb-reorder.c (make_reorder_chain_1): Correct branch/fallthru
3305 edge detection.
3306
3307 Tue Jul 10 07:27:53 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3308
3309 * expr.c (expand_expr, case COMPONENT_REF): Don't force using bitfield
3310 extraction if no direct load if either EXPAND_CONST_ADDRESS or
3311 EXPAND_INITIALIZER.
3312
3313 * emit-rtl.c (adjust_address, adjust_address_nv): Change criteria for
3314 whether can put offset inside LO_SUM to check mode alignment, not size.
3315
3316 2001-07-10 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
3317
3318 * doc/tm.texi (Misc): Fix thinko.
3319
3320 2001-07-10 Jan van Male <jan.vanmale@fenk.wau.nl>
3321
3322 * regmove.c (replace_in_call_usage): Fix warnings.
3323 * sched-deps.c (add_dependence): Fix warnings.
3324 * simplify-rtx.c (simplify_subreg): Likewise.
3325 Return NULL_RTX instead of NULL.
3326
3327 * reg-stack.c (emit_swap_insn): Eliminate warnings.
3328 (subst_asm_stack_regs): Likewise.
3329
3330 * combine.c (num_sign_bit_copies): Cast bitwidth to int to avoid
3331 warnings.
3332
3333 * dwarf2out.c (output_call_frame_info): Declare i as int.
3334 (build_abbrev_table): Declare n_alloc as int.
3335 (dwarf2out_finish): Initialize die.
3336 * except.c: Declare sjlj_funcdef_number as unsigned.
3337 (connect_post_landing_pads): Declare j as unsigned.
3338 (convert_to_eh_region_ranges): Initialize call_site.
3339 (output_function_exception_table): Initialize tt_format_size.
3340 * expr.c (move_by_pieces_1): Initialize to1.
3341 (store_constructor): Initialize minelt and maxelt.
3342 * flow.c (mark_regs_live_at_end): Declare i as unsigned.
3343 * function.c (instantiate_decls): Avoid signed/unsigned warning.
3344
3345 * c-decl.c (combine_parm_decls): Unused, remove.
3346 * c-tree.h: Remove prototype for combine_parm_decls.
3347
3348 * reload.c (push_reload): Fix warning.
3349 (regno_clobbered_p): Likewise.
3350 * reload1.c (replace_pseudos_in_call_usage): Likewise.
3351 (reload_combine): Likewise.
3352
3353 * bitmap.c: Rename bitmap_zero to bitmap_zero_bits to fix warnings.
3354 * bitmap.h: Rename bitmap_zero to bitmap_zero_bits to fix
3355 warnings.
3356 * bitmap.c (bitmap_operation): Change user.
3357 * bitmap.h (EXECUTE_IF_AND_COMPL_IN_BITMAP): Likewise.
3358
3359 2001-07-10 Eric Christopher <echristo@redhat.com>
3360
3361 * config/mips/mips.c (override_options): Fix typo.
3362
3363 2001-07-09 Stan Shebs <shebs@apple.com>
3364
3365 * target.h (struct gcc_target): New fields init_builtins and
3366 expand_builtin.
3367 * target-def.h (TARGET_INIT_BUILTINS): New macro.
3368 (TARGET_EXPAND_BUILTIN): New macro.
3369 (TARGET_INITIALIZER): Add them.
3370 * builtins.c: Include target.h.
3371 (expand_builtin): Use targetm.expand_builtin.
3372 (default_init_builtins): New function.
3373 (default_expand_builtin): New function.
3374 * expr.h (default_init_builtins): Declare.
3375 (default_expand_builtin): Declare.
3376 * c-common.c (c_common_nodes_and_builtins): Use
3377 targetm.init_builtins.
3378 * defaults.h (MD_INIT_BUILTINS): Remove.
3379 * Makefile.in (builtins.o): Depend on target.h.
3380
3381 * config/arm/arm.c (TARGET_INIT_BUILTINS): Define.
3382 (TARGET_EXPAND_BUILTIN): Define.
3383 * config/arm/arm.h (MD_INIT_BUILTINS): Remove.
3384 (MD_EXPAND_BUILTIN): Remove.
3385
3386 * config/c4x/c4x.c (TARGET_INIT_BUILTINS): Define.
3387 (TARGET_EXPAND_BUILTIN): Define.
3388 (c4x_init_builtins): Make endlink arg a local.
3389 (c4x_print_operand): Fix typos in adjust_address usages.
3390 * config/c4x/c4x-protos.h (c4x_init_builtins): Update decl.
3391 * config/c4x/c4x.h (MD_INIT_BUILTINS): Remove.
3392 (MD_EXPAND_BUILTIN): Remove.
3393
3394 * config/i386/i386.c (TARGET_INIT_BUILTINS): Define.
3395 (TARGET_EXPAND_BUILTIN): Define.
3396 (ix86_init_mmx_sse_builtins): New function, was ix86_init_builtins.
3397 (ix86_init_builtins): Call new function only if TARGET_MMX.
3398 * config/i386/i386-protos.h (ix86_init_mmx_sse_builtins): Declare.
3399 * config/i386/i386.h (MD_INIT_BUILTINS): Remove.
3400 (MD_EXPAND_BUILTIN): Remove.
3401
3402 * config/ia64/ia64.c (TARGET_INIT_BUILTINS): Define.
3403 (TARGET_EXPAND_BUILTIN): Define.
3404 * config/ia64/ia64.h (MD_INIT_BUILTINS): Remove.
3405 (MD_EXPAND_BUILTIN): Remove.
3406
3407 * doc/tm.texi: Document these changes.
3408
3409 2001-07-09 Diego Novillo <dnovillo@redhat.com>
3410
3411 * basic-block.h (tree_node): Forward declare if needed.
3412 (struct basic_block_def): Add fields 'head_tree' and 'end_tree'.
3413 (BLOCK_HEAD_TREE): Define.
3414 (BLOCK_END_TREE): Define.
3415 (struct loops): Rename field 'tree' to 'tree_root'.
3416 * flow.c (entry_exit_blocks): Add initializers for 'head_tree' and
3417 'end_tree'.
3418 (flow_loops_tree_build): Rename reference to field 'tree' to
3419 'tree_root'.
3420 (flow_loops_level_compute): Ditto.
3421 * predict.c (estimate_bb_frequencies): Ditto.
3422 * tree.h (struct tree_common): Add field 'aux'.
3423
3424 2001-07-09 Stan Shebs <shebs@apple.com>
3425
3426 * config/darwin.c (darwin_encode_section_info): Don't mark any
3427 DECL_EXTERNAL node as defined.
3428
3429 2001-07-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
3430
3431 * pa.c (pa_init_machine_status, pa_mark_machine_status,
3432 pa_free_machine_status, hppa_init_pic_save): Delete.
3433 (hppa_pic_save_rtx): New. Use get_hard_reg_initial_val.
3434 (hppa_profile_hook): Use hppa_pic_save_rtx.
3435 * pa.h (struct machine_function, PIC_OFFSET_TABLE_SAVE_RTX,
3436 hppa_init_pic_save): Delete.
3437 (hppa_pic_save_rtx): Declare.
3438 * pa.md (call, call_value, sibcall, sibcall_value,
3439 builtin_setjmp_receiver): Use hppa_pic_save_rtx.
3440
3441 2001-07-09 Kazu Hirata <kazu@hxi.com>
3442
3443 * config/h8300/t-h8300 (LIB1ASMFUNCS): Add _floatdisf and _fixsfdi.
3444 * config/mn10200/t-mn10200 (LIB1ASMFUNCS): Likewise.
3445
3446 2001-07-09 Andreas Jaeger <aj@suse.de>
3447
3448 * output.h: Add declaration of final_forward_branch_p.
3449
3450 * config/i386/i386.c (output_fix_trunc): Remove unused variable.
3451
3452 * varray.c: Include errors.h for internal_error and trim_filename
3453 declarations.
3454
3455 * Makefile.in (varray.o): Add errors.h.
3456
3457 2001-07-09 Toon Moene <toon@moene.indiv.nluug.nl>
3458
3459 * expr.h: Adjust prototypes for have_add2_insn, have_sub2_insn.
3460 * optabs.c (have_add2_insn): Check whether the add insn chosen
3461 really accepts the operands. (have_sub2_insn): Ditto for sub insn.
3462 * reload1.c (reload_cse_move2add): Adjust calls of have_add2_insn.
3463
3464 Mon Jul 9 13:26:40 2001 Jeffrey A Law (law@cygnus.com)
3465
3466 * Makefile.in (OBJS): Add ssa-ccp.o
3467 (ssa-ccp.o): Add dependencies.
3468 * toplev.c (DFI_ssa_ccp): New dump file enum.
3469 (dump_file): Add entry for dumping after SSA CCP.
3470 (flag_ssa_ccp): New flag variable.
3471 (f_options): Add -fssa-ccp.
3472 (rest_of_compilation): Run SSA CCP if requested.
3473 * timevar.def (TV_SSA_CCP): New timevar.
3474 * ssa.c (mark_phi_and_copy_regs): Handle deleted PHI nodes.
3475 * doc/gcc.texi (Passes): Add documentation for SSA CCP pass.
3476 Fix minor typo in SSA DCE documentation.
3477 * doc/invoke.texi: Add documentation for new flag -fssa-ccp.
3478 Add documentation for new dump option. Renumber dump files
3479 appropriately.
3480
3481 Mon Jul 9 21:36:00 CEST 2001 Jan Hubicka <jh@suse.cz>
3482
3483 * emit-rtl.c (gen_highpart_mode): New.
3484 * rtl.h (gen_highpart_mode): Declare.
3485 * sparc.md (insn splitters): Use gen_highpart_mode, whenever the
3486 operand can be VOIDmode constant.
3487
3488 Mon Jul 9 17:23:10 CEST 2001 Jan Hubicka <jh@suse.cz>
3489
3490 * flow.c (redirect_edge_and_branch_force): New.
3491 (can_fallthru): Ensure that basic blocks are succeeding.
3492 (try_optimize_cfg): Do not delete basic block if it is the last one.
3493
3494 * flow.c (try_redirect_by_replacing_jump): Do not remove
3495 jumps with side effects, unlink chain on fallthru edge;
3496 set block for new jump instruction; avoid basic block to
3497 over by line number note.
3498
3499 * flow.c (try_simplify_condjump): Verify that the condjump
3500 is not always falling trought.
3501
3502 Re-install patch:
3503 * flow.c (try_redirect_by_replacing_jump): Remove cc0 setter.
3504
3505 * flow.c (forwarder_block_p): Fix for fallthru blocks.
3506 (try_redirect_by_replacing_jump): Update properly the count
3507 and frequency information.
3508
3509 Mon Jul 9 06:41:07 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3510
3511 * emit-rtl.c (adjust_address, adjust_address_nv): Handle an
3512 address that is a LO_SUM specially.
3513 * explow.c (plus_constant_wide, case LO_SUM): Deleted.
3514
3515 * c-lang.c (start_cdtor): Remove extra parameter from start_function.
3516
3517 * emit-rtl.c (adjust_address_nv, replace_equiv_address_nv): New fcns.
3518 (operand_subword): Use them.
3519 (change_address_1): Renamed from change_address; new arg VALIDATE.
3520 * expr.h: Reflect above changes; change_address now macro.
3521 * alias.c (canon_rtx): Use replace_equiv_address_nv instead of
3522 making MEM.
3523 * cselib.c (add_mem_for_addr): Likewise.
3524 * expr.c (protect_from_queue, emit_move_insn_1): Likewise.
3525 * regmove.c (try_apply_stack_adjustment): Likewise.
3526 * reload.c (push_reload, make_memloc): Likewise.
3527 * reload1.c (eliminate_regs): Likewise.
3528 * simplify-rtx.c (simplify_replace_rtx): Likewise.
3529 * caller-save.c (setup_save_areas): Use adjust_address_nv instead of
3530 adjust_addess.
3531 * combine.c (make_extraction, simplify_shift_const): Likewise.
3532 (gen_lowpart_for_combine): Likewise.
3533 * cse.c (gen_lowpart_if_possible): Likewise.
3534 * function.c (fixup_var_refs_1, purge_addressof_1): Likewise.
3535 * expr.c (expand_expr, case COMPONENT_REF): Likewise.
3536 * optabs.c (gen_move_insn): Likewise.
3537 * reload1.c (alter_reg): Likewise.
3538 * simplify-rtx.c (simplify_subreg): Likewise.
3539 * stmt.c (expand_anon_union_decl): Likewise.
3540 * recog.c (validate_replace_rtx_1): Likewise.
3541 (expr.h): Include.
3542 * Makefile.in (recog.o): Add $(EXPR_H).
3543 * explow.c (stabilize): Call replace_equiv_address.
3544 * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
3545 * final.c (alter_subreg): OFFSET is HOST_WIDE_INT.
3546
3547 2001-07-03 Andrew Haley <aph@redhat.com>
3548
3549 * expmed.c (store_fixed_bit_field): Don't use a mode bigger than
3550 the mode of the memory location.
3551
3552 2001-07-09 Bo Thorsen <bo@suse.co.uk>
3553
3554 * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Fix x86-64 vtable support.
3555
3556 2001-07-09 Neil Booth <neil@daikokuya.demon.co.uk>
3557
3558 * final.c (output_addr_const): Use target opening and
3559 closing parentheses.
3560 * target-def.h: Define TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN
3561 defaults, add to TARGET_ASM_OUT.
3562 * target.h (struct gcc_target): Add open_paren and close_paren.
3563 * doc/md.texi: Update.
3564 * doc/tm.texi: Document TARGET_ASM_FUNCTION_END_PROLOGUE,
3565 TARGET_ASM_FUNCTION_BEGIN_EPILOGUE, TARGET_ASM_OPEN_PAREN and
3566 TARGET_ASM_CLOSE_PAREN.
3567 * config/i386/i386.c (TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN):
3568 Override.
3569 * config/pdp11/pdp11.c (TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN):
3570 Override.
3571 * config/1750a/1750a.h (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): Remove.
3572 * config/a29k/a29k.h: Similarly.
3573 * config/alpha/alpha.h: Similarly.
3574 * config/arc/arc.h: Similarly.
3575 * config/arm/aof.h: Similarly.
3576 * config/arm/aout.h: Similarly.
3577 * config/avr/avr.h: Similarly.
3578 * config/c4x/c4x.h: Similarly.
3579 * config/clipper/clipper.h: Similarly.
3580 * config/convex/convex.h: Similarly.
3581 * config/d30v/d30v.h: Similarly.
3582 * config/dsp16xx/dsp16xx.h: Similarly.
3583 * config/elxsi/elxsi.h: Similarly.
3584 * config/fr30/fr30.h: Similarly.
3585 * config/h8300/h8300.h: Similarly.
3586 * config/i370/i370.h: Similarly.
3587 * config/i386/i386.h: Similarly.
3588 * config/i860/i860.h: Similarly.
3589 * config/i960/i960.h: Similarly.
3590 * config/ia64/ia64.h: Similarly.
3591 * config/m32r/m32r.h: Similarly.
3592 * config/m68hc11/m68hc11.h: Similarly.
3593 * config/m68k/m68k.h: Similarly.
3594 * config/m88k/m88k.h: Similarly.
3595 * config/mcore/mcore.h: Similarly.
3596 * config/mips/mips.h: Similarly.
3597 * config/mn10200/mn10200.h: Similarly.
3598 * config/mn10300/mn10300.h: Similarly.
3599 * config/ns32k/ns32k.h: Similarly.
3600 * config/pa/pa.h: Similarly.
3601 * config/pdp11/pdp11.h: Similarly.
3602 * config/pj/pj.h: Similarly.
3603 * config/romp/romp.h: Similarly.
3604 * config/rs6000/rs6000.h: Similarly.
3605 * config/sh/sh.h: Similarly.
3606 * config/sparc/sparc.h: Similarly.
3607 * config/v850/v850.h: Similarly.
3608 * config/vax/vax.h: Similarly.
3609 * config/we32k/we32k.h: Similarly.
3610
3611 2001-07-09 Joseph S. Myers <jsm28@cam.ac.uk>
3612
3613 * doc/c-tree.texi: Document representation of attributes.
3614
3615 2001-07-08 Joseph S. Myers <jsm28@cam.ac.uk>
3616
3617 * doc/tm.texi: Update some places for the rename of target to
3618 targetm. Fix typo.
3619
3620 2001-07-08 Joseph S. Myers <jsm28@cam.ac.uk>
3621
3622 * target.h (struct gcc_target): Add insert_attributes.
3623 * target-def.h (TARGET_INSERT_ATTRIBUTES): Define.
3624 (TARGET_INITIALIZER): Update.
3625 * tree.c, tree.h (default_insert_attributes): New function.
3626 Update comments on other default functions to refer to targetm,
3627 not target.
3628 * doc/tm.texi (INSERT_ATTRIBUTES): Update to document
3629 TARGET_INSERT_ATTRIBUTES.
3630 (SET_DEFAULT_DECL_ATTRIBUTES): Remove.
3631 * c-common.c (decl_attributes): Use targetm.insert_attributes.
3632 Don't use PRAGMA_INSERT_ATTRIBUTES.
3633 * Makefile.in (c-common.o): Depend on $(TARGET_H).
3634 * c-decl.c (start_decl, start_function): Don't call
3635 SET_DEFAULT_DECL_ATTRIBUTES.
3636 * config/c4x/c4x.h (SET_DEFAULT_DECL_ATTRIBUTES): Don't define.
3637 * config/c4x/c4x-protos.h (c4x_set_default_attributes): Don't
3638 declare.
3639 * config/c4x/c4x.c (TARGET_INSERT_ATTRIBUTES): Define.
3640 (c4x_check_attribute): Avoid modifying attribute list itself.
3641 (c4x_set_default_attributes): Rename to c4x_insert_attributes.
3642 Make static.
3643 * config/sh/sh.h (PRAGMA_INSERT_ATTRIBUTES): Don't define.
3644 * config/sh/sh-protos.h (sh_pragma_insert_attributes): Don't
3645 declare.
3646 * config/sh/sh.c (TARGET_INSERT_ATTRIBUTES): Define.
3647 (sh_pragma_insert_attributes): Rename to sh_insert_attributes.
3648 Make static.
3649 * config/v850/v850.h (SET_DEFAULT_DECL_ATTRIBUTES): Don't define.
3650 * config/v850/v850-protos.h (v850_set_default_decl_attr): Don't
3651 declare.
3652 * config/v850/v850.c (TARGET_INSERT_ATTRIBUTES): Define.
3653 (v850_set_default_decl_attr): Rename to v850_insert_attributes.
3654 Adjust parameters. Make static.
3655
3656 2001-07-08 Joseph S. Myers <jsm28@cam.ac.uk>
3657
3658 * c-common.c (decl_attributes): Only take a single attributes
3659 parameter.
3660 * c-common.h (decl_attributes): Update prototype.
3661 * c-decl.c (start_decl, start_function): Only take a single
3662 attributes parameter. Update calls to decl_attributes.
3663 (finish_struct, finish_enum): Update calls to decl_attributes.
3664 (push_parm_decl): Expect unified list of attributes. Update call
3665 to decl_attributes.
3666 * c-parse.in (fndef, initdcl, notype_initdcl, nested_function,
3667 notype_nested_function, component_declarator,
3668 component_notype_declarator, label): Update calls to
3669 decl_attributes.
3670 (absdcl_maybe_attribute, parm, firstparm, myparm): Unify attribute
3671 lists that are passed to push_parm_decl.
3672 * c-tree.h (start_function, start_decl): Update prototypes.
3673 * config/sh/sh-protos.h, config/sh/sh.c
3674 (sh_pragma_insert_attributes): Only take a single attributes
3675 parameter.
3676 * config/sh/sh.h (PRAGMA_INSERT_ATTRIBUTES): Likewise.
3677 * doc/tm.texi (INSERT_ATTRIBUTES): Update.
3678 * objc/objc-act.c (define_decl, generate_objc_symtab_decl,
3679 build_module_descriptor, generate_static_references,
3680 generate_strings, build_selector_translation_table,
3681 generate_descriptor_table, generate_protocols,
3682 generate_ivars_list, generate_dispatch_table,
3683 generate_protocol_list, generate_category,
3684 generate_shared_structures, really_start_method, add_objc_decls,
3685 generate_classref_translation_entry): Update calls to start_decl
3686 and start_function.
3687 (build_tmp_function_decl, start_method_def): Unify attribute lists
3688 that are passed to push_parm_decl.
3689
3690 2001-07-08 Neil Booth <neil@daikokuya.demon.co.uk>
3691
3692 * final.c (no_asm_to_stream): New.
3693 (final_scan_insn): Use target structures for prologue ends
3694 and epilogue starts.
3695 * output.h (no_asm_to_stream): New.
3696 * target-def.h (TARGET_ASM_FUNCTION_END_PROLOGUE,
3697 TARGET_ASM_FUNCTION_BEGIN_EPILOGUE): New.
3698 (TARGET_ASM_OUT): Update.
3699 * target.h (struct gcc_target): New members function_end_prologue
3700 and function_begin_epilogue.
3701 * config/1750/1750.h (ASM_OUTPUT_FUNNAM): Delete as unused.
3702 * config/alpha/alpha-protos.h (output_end_prologue): Delete.
3703 * config/alpha/alpha.c (output_end_prologue): Rename to
3704 alpha_output_function_end_prologue. Use in target struct
3705 and make static.
3706 * config/alpha/alpha.h (FUNCTION_END_PROLOGUE): Delete.
3707 * config/ia64/ia64-protos.h (ia64_output_end_prologue): Delete.
3708 * config/ia64/ia64.c (ia64_output_end_prologue): Rename to
3709 ia64_output_function_end_prologue. Use in target struct
3710 and make static.
3711 (ia64_function_prologue, ia64_funciton_epilogue): Rename
3712 mistyped prototypes.
3713 * config/ia64/ia64.h (FUNCTION_END_PROLOGUE): Delete.
3714 * config/m88k/m88k-protos.h (m88k_end_prologue, m88k_begin_epilogue):
3715 Delete.
3716 * config/m88k/m88k.c (m88k_end_prologue, m88k_begin_epilogue): Rename
3717 an use in target struct, make static.
3718 * config/ia64/ia64.h (FUNCTION_END_PROLOGUE, FUNCTION_BEGIN_EPILOGUE):
3719 Delete.
3720
3721 2001-07-08 Richard Henderson <rth@redhat.com>
3722
3723 * stmt.c (emit_case_nodes): Convert modes properly in low+high test.
3724
3725 2001-07-08 Richard Henderson <rth@redhat.com>
3726
3727 * config/i386/i386.md: Remove constraints strings from define_split
3728 and define_peephole2 patterns.
3729 (eh_return_si, eh_return_di): Split eh_return_1 for modes.
3730 (eh_return): Use them.
3731
3732 2001-07-08 Richard Henderson <rth@redhat.com>
3733
3734 * doc/tm.texi (Exception Handling): New subnode of Stack and Calling.
3735 Document MD_FALLBACK_FRAME_STATE_FOR.
3736
3737 2001-07-07 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3738
3739 * config/m68hc11/m68hc11.c (m68hc11_initial_elimination_offset):
3740 Take into account m68hc11_sp_correction for FRAME_POINTER_REGNUM
3741 elimination.
3742 * config/m68hc11/m68hc11.h (STARTING_FRAME_OFFSET): Use 0.
3743
3744 2001-07-07 Nick Clifton <nickc@cambridge.redhat.com>
3745
3746 * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Append # to end
3747 of the label inside NAME as opposed to just the end of NAME.
3748
3749 2001-07-07 Neil Booth <neil@daikokuya.demon.co.uk>
3750
3751 * config/alpha/alpha-protos.h (vms_valid_decl_attribute_p): Delete.
3752 * config/alpha/alpha.c (alpha_init_machine_status,
3753 alpha_mark_machine_status, alpha_free_machine_status): Delete.
3754 (TARGET_VALID_DECL_ATTRIBUTE): Define for VMS.
3755 (vms_valid_decl_attribute_p): Make static, conditionally compile.
3756 * config/alpha/alpha.h (VALID_MACHINE_DECL_ATTRIBUTE): Delete.
3757
3758 2001-07-06 Stan Shebs <shebs@apple.com>
3759
3760 * target.h (targetm): Rename global from "target", so as not to
3761 conflict with local variables.
3762 * c-decl.c: Ditto.
3763 * c-typeck.c: Ditto.
3764 * final.c: Ditto.
3765 * tree.c: Ditto.
3766 * cp/decl.c: Ditto.
3767 * cp/decl2.c: Ditto.
3768 * cp/typeck.c: Ditto.
3769 * 1750a/1750a.c: Ditto.
3770 * a29k/a29k.c: Ditto.
3771 * arc/arc.c: Ditto.
3772 * arm/arm.c: Ditto.
3773 * avr/avr.c: Ditto.
3774 * clipper/clipper.c: Ditto.
3775 * convex/convex.c: Ditto.
3776 * d30v/d30v.c: Ditto.
3777 * dsp16xx/dsp16xx.c: Ditto.
3778 * elxsi/elxsi.c: Ditto.
3779 * fr30/fr30.c: Ditto.
3780 * h8300/h8300.c: Ditto.
3781 * i370/i370.c: Ditto.
3782 * i386/i386.c: Ditto.
3783 * i860/i860.c: Ditto.
3784 * i960/i960.c: Ditto.
3785 * ia64/ia64.c: Ditto.
3786 * m32r/m32r.c: Ditto.
3787 * m68hc11/m68hc11.c: Ditto.
3788 * m68k/m68k.c: Ditto.
3789 * m88k/m88k.c: Ditto.
3790 * mips/mips.c: Ditto.
3791 * ns32k/ns32k.c: Ditto.
3792 * pa/pa.c: Ditto.
3793 * pdp11/pdp11.c: Ditto.
3794 * romp/romp.c: Ditto.
3795 * rs6000/rs6000.c: Ditto.
3796 * sh/sh.c: Ditto.
3797 * sparc/sparc.c: Ditto.
3798 * vax/vax.c: Ditto.
3799 * we32k/we32k.c: Ditto.
3800 * doc/tm.texi: Update the manual to match.
3801
3802 2001-07-06 Richard Henderson <rth@redhat.com>
3803
3804 * except.h (MUST_USE_SJLJ_EXCEPTIONS): Examine the value of
3805 DWARF2_UNWIND_INFO not just whether it is defined.
3806
3807 2001-07-06 Diego Novillo <dnovillo@redhat.com>
3808
3809 * combine.c (combine_simplify_rtx): Also recompute 'mode' if the
3810 call to simplify_binary_operation returns a new pattern.
3811
3812 2001-07-06 Roman Lechtchinsky <rl@cs.tu-berlin.de>
3813
3814 * glimits.h (__SHRT_MAX__): New.
3815 (SHRT_MIN, USHRT_MAX): Define in terms of SHRT_MAX.
3816 (SHRT_MAX): Define in terms of __SHRT_MAX__.
3817
3818 2001-07-06 Jan van Male <jan.vanmale@fenk.wau.nl>
3819
3820 * alias.c (base_alias_check): Cast GET_MODE_UNIT_SIZE to int to
3821 avoid warnings.
3822
3823 2001-07-06 Richard Henderson <rth@redhat.com>
3824
3825 * bitmap.c (bitmap_release_memory): Move adjacent to the
3826 allocation functions.
3827 (bitmap_first_set_bit, bitmap_last_set_bit): Streamline knowing
3828 the implementation. Binary search for the set bit.
3829 (bitmap_union_of_diff): Allocate the temporary on the stack
3830 instead of using xmalloc.
3831
3832 2001-07-06 Richard Henderson <rth@redhat.com>
3833
3834 * genrecog.c (validate_pattern): Warn for constraints in
3835 define_{expand,split,peephole2}. Remove strict_low_part
3836 before looking up match_dup.
3837
3838 2001-07-06 DJ Delorie <dj@redhat.com>
3839
3840 * doc/gcc.texi (Makefile): Rename to be a more general purpose
3841 chapter about various build hints and history. Add section
3842 talking about the various types of native and cross builds.
3843
3844 2001-07-06 Neil Booth <neil@daikokuya.demon.co.uk>
3845
3846 * Makefile.in (final.o): Depend on target.h.
3847 * final.c: Include target.h.
3848 (default_function_pro_epilogue): New.
3849 (final_start_function): Use target structure for function prologues.
3850 (final_end_function): Use target structure for function epilogues.
3851 * fold-const.c (real_hex_to_f): Constify s and p.
3852 * output.h (default_function_pro_epilogue): New.
3853 * real.h (real_hex_to_f): Update prototype.
3854 * target-def.h (TARGET_ASM_FUNCTION_PROLOGUE,
3855 TARGET_ASM_FUNCTION_EPILOGUE, TARGET_ASM_OUT): New.
3856 (TARGET_INITIALIZER): Update.
3857 * target.h (gcc_target): Add struct asm_out.
3858 * doc/tm.texi: Update.
3859
3860 config:
3861 Update each arch to use TARGET_ASM_FUNCTION_PROLOGUE and
3862 TARGET_ASM_FUNCTION_EPILOGUE. Move macro code to functions
3863 in cpu/cpu.c, or rename old functions consistently. Take
3864 a HOST_WIDE INT not an int as the SIZE parameter. Remove now
3865 redundant macros and prototypes. Make new functions static.
3866
3867 * 1750a/1750a.c: Similarly.
3868 * 1750a/1750a.h: Similarly.
3869 * a29k/a29k-protos.h: Similarly.
3870 * a29k/a29k.c: Similarly.
3871 * a29k/a29k.h: Similarly.
3872 * arc/arc-protos.h: Similarly.
3873 * arc/arc.c: Similarly.
3874 * arc/arc.h: Similarly.
3875 * arm/arm-protos.h: Similarly.
3876 * arm/arm.c: Similarly.
3877 * arm/arm.h: Similarly.
3878 * avr/avr-protos.h: Similarly.
3879 * avr/avr.c: Similarly.
3880 * avr/avr.h: Similarly.
3881 * clipper/clipper-protos.h: Similarly.
3882 * clipper/clipper.c: Similarly.
3883 * clipper/clipper.h: Similarly.
3884 * convex/convex.c: Similarly.
3885 * convex/convex.h: Similarly.
3886 * d30v/d30v-protos.h: Similarly.
3887 * d30v/d30v.c: Similarly.
3888 * d30v/d30v.h: Similarly.
3889 * d30v/d30v.md: Similarly.
3890 * dsp16xx/dsp16xx-protos.h: Similarly.
3891 * dsp16xx/dsp16xx.c: Similarly.
3892 * dsp16xx/dsp16xx.h: Similarly.
3893 * elxsi/elxsi.c: Similarly.
3894 * elxsi/elxsi.h: Similarly.
3895 * fr30/fr30.c: Similarly.
3896 * fr30/fr30.md: Similarly.
3897 * h8300/h8300-protos.h: Similarly.
3898 * h8300/h8300.c: Similarly.
3899 * h8300/h8300.h: Similarly.
3900 * i370/i370-protos.h: Similarly.
3901 * i370/i370.c: Similarly.
3902 * i370/i370.h: Similarly.
3903 * i386/i386.c: Similarly.
3904 * i386/osf1elf.h: Similarly.
3905 * i386/osfrose.h: Similarly.
3906 * i860/i860-protos.h: Similarly.
3907 * i860/i860.c: Similarly.
3908 * i860/i860.h: Similarly.
3909 * i960/i960-protos.h: Similarly.
3910 * i960/i960.c: Similarly.
3911 * i960/i960.h: Similarly.
3912 * ia64/ia64-protos.h: Similarly.
3913 * ia64/ia64.c: Similarly.
3914 * ia64/ia64.h: Similarly.
3915 * m32r/m32r-protos.h: Similarly.
3916 * m32r/m32r.c: Similarly.
3917 * m32r/m32r.h: Similarly.
3918 * m68hc11/m68hc11-protos.h: Similarly.
3919 * m68hc11/m68hc11.c: Similarly.
3920 * m68hc11/m68hc11.h: Similarly.
3921 * m68k/crds.h: Similarly.
3922 * m68k/dpx2.h: Similarly.
3923 * m68k/m68k-protos.h: Similarly.
3924 * m68k/m68k.c: Similarly.
3925 * m68k/m68k.h: Similarly.
3926 * m68k/news.h: Similarly.
3927 * m88k/m88k-protos.h: Similarly.
3928 * m88k/m88k.c: Similarly.
3929 * m88k/m88k.h: Similarly.
3930 * mips/mips-protos.h: Similarly.
3931 * mips/mips.c: Similarly.
3932 * mips/mips.h: Similarly.
3933 * ns32k/merlin.h: Similarly.
3934 * ns32k/ns32k.c: Similarly.
3935 * ns32k/ns32k.h: Similarly.
3936 * ns32k/tek6000.h: Similarly.
3937 * pa/pa-protos.h: Similarly.
3938 * pa/pa.c: Similarly.
3939 * pa/pa.h: Similarly.
3940 * pdp11/2bsd.h: Similarly.
3941 * pdp11/pdp11-protos.h: Similarly.
3942 * pdp11/pdp11.c: Similarly.
3943 * pdp11/pdp11.h: Similarly.
3944 * romp/romp-protos.h: Similarly.
3945 * romp/romp.c: Similarly.
3946 * romp/romp.h: Similarly.
3947 * rs6000/rs6000-protos.h: Similarly.
3948 * rs6000/rs6000.c: Similarly.
3949 * rs6000/rs6000.h: Similarly.
3950 * rs6000/sysv4.h: Similarly.
3951 * sh/sh-protos.h: Similarly.
3952 * sh/sh.c: Similarly.
3953 * sh/sh.h: Similarly.
3954 * sparc/sparc-protos.h: Similarly.
3955 * sparc/sparc.c: Similarly.
3956 * sparc/sparc.h: Similarly.
3957 * vax/vax.c: Similarly.
3958 * vax/vax.h: Similarly.
3959 * vax/vms.h: Similarly.
3960 * we32k/we32k.c: Similarly.
3961 * we32k/we32k.h: Similarly.
3962
3963 Fri Jul 6 11:47:59 2001 Jeffrey A Law (law@cygnus.com)
3964
3965 * basic-block.h (first_insn_after_basic_block_note): Declare.
3966 * flow.c (first_insn_after_basic_block_note): Define. Moved
3967 from...
3968 * ssa.c (first_insn_after_basic_block_note): Remove.
3969 * ssa-dce.c (find_inherently_necessary): Consider BARRIERs
3970 necessary.
3971 (ssa_eliminate_dead_code): Properly update the CFG and PHI
3972 nodes when we find a dead conditional branch. Insert BARRIERs
3973 after any blocks with no successors, but which do not have
3974 any BARRIERs.
3975
3976 2001-07-06 Zack Weinberg <zackw@stanford.edu>
3977
3978 * varray.c (varray_check_failed): Use internal_error.
3979
3980 2001-07-05 Andrew Haley <aph@redhat.com>
3981
3982 * Makefile.in (LIB2_DIVMOD_FUNCS): New.
3983 (LIB2FUNCS): Move divmod functions to LIB2_DIVMOD_FUNCS.
3984 * mklibgcc.in: Compile LIB2_DIVMOD_FUNCS.
3985
3986 2001-07-02 Jason Merrill <jason_merrill@redhat.com>
3987
3988 * dwarf2out.c (mem_loc_descriptor): Only look through a constant pool
3989 reference if the target constant is also a SYMBOL_REF.
3990
3991 2001-07-05 Eric Christopher <echristo@redhat.com>
3992
3993 * config/mips/mips.h (MASK_MIPS3900): Remove.
3994 (MASK_MIPS16,MASK_NO_CHECK_ZERO_DIV,MASK_CHECK_RANGE_DIV,
3995 MASK_UNINIT_CONST_IN_RODATA): Change for 3900 mask removal.
3996 (TARGET_MIPS3900): Change to use mips_arch.
3997 (TARGET_MIPS4000): New.
3998 (TARGET_MIPS4100): New.
3999 (TARGET_MIPS4300): New.
4000 (TARGET_SWITCHES): Change 3900 and 4650 options to NULL.
4001 (SUBTARGET_TARGET_OPTIONS): Add -march. Change help text
4002 for -mipsX.
4003 (GENERATE_BRANCHLIKELY): Move TARGET_MIPS3900.
4004 (ISA_HAS_BRANCHLIKELY): To here.
4005 (CC1_CPU_SPEC): New.
4006 (CC1_SPEC): Use here. Remove 4650 and 3900 options.
4007 (mips_arch_string): Declare.
4008 (mips_arch): Declare.
4009 (TARGET_OPTIONS): Add -march and -mtune.
4010
4011 * config/mips/mips.c (mips_arch_string): New.
4012 (mips_arch): New.
4013 (override_options): Handle -march for codegen and -mtune
4014 for scheduling. Use mips_arch. Move tx39 target default here.
4015 (mips_parse_cpu): Move error message to override_options.
4016
4017 * config/mips/r3900.h (TARGET_DEFAULT): Remove.
4018
4019 * config/mips/mips.md: Use TARGET_MIPS4000 and TARGET_MIPS4300.
4020
4021 * doc/invoke.texi (Option Summary): Add -march and -mtune entries.
4022 (MIPS Options): Ditto. Change mcpu entry to historical text.
4023
4024 2001-07-05 H.J. Lu (hjl@gnu.org)
4025
4026 * config/mips/mips.c (mips_parse_cpu): New function to parse
4027 -march=*/-mcpu=*.
4028
4029 2001-07-05 Jim Wilson <wilson@redhat.com>
4030
4031 * config/ia64/lib1funcs.asm: Revert 2001-07-02 change.
4032 * config/ia64/t-ia64: Likewise.
4033 (LIB1ASMFUNCS): Update comment.
4034
4035 2001-07-05 David Edelsohn <edelsohn@gnu.org>
4036
4037 * doc/install.texi (Install GCC: Binaries): Fix typo.
4038
4039 2001-07-04 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4040
4041 * config/m68hc11/m68hc11.md ("*ashlsi3"): Operand 1 can be a memory
4042 reference using the stack pointer, adjust it since we push Y
4043 temporarily.
4044 ("*ashrsi3"): Likewise.
4045 ("*lshrsi3"): Likewise.
4046
4047 2001-07-05 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4048
4049 * config/m68hc11/m68hc11.h (RETURN_ADDR_RTX): Fix return address
4050 when -fomit-frame-pointer is used.
4051
4052 2001-07-05 Jeffrey Oldham <oldham@codesourcery.com>
4053
4054 * flow.c: Reverse Jan Hubicka's patch of 02July2001.
4055 (try_redirect_by_replacing_jump): Reverse updating properly the
4056 count and frequency information. Reverse removing cc0 setter.
4057 (forwarder_block_p): Reverse fixing for fallthru blocks.
4058
4059 2001-07-05 DJ Delorie <dj@redhat.com>
4060
4061 * gcc.c (TARGET_OPTION_TRANSLATE_TABLE): New.
4062 (translate_options): If the above is defined, use it to map
4063 given options to new options.
4064 * doc/tm.texi: Document it.
4065
4066 2001-07-05 Brad Lucier <lucier@math.purdue.edu>
4067 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4068
4069 * doc/invoke.texi (Optimize Options): Document that -fgcse may
4070 cause programs using computed gotos to run more slowly.
4071
4072 2001-07-05 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4073
4074 * doc/install.texi (Specific): Markup, spelling and typo fixes.
4075 Fixed sorting.
4076 Consistently require binutils 2.11.2, not prereleases.
4077 (Specific, decstation-*): Canonicalize as mips-dec-*.
4078 (Specific, i?86-*-sco3.2v5*): Remove make bootstrap requirement,
4079 always necessary.
4080 (Specific, m68k-altos): Removed reference to README.altos, deleted.
4081 (Specific, mips-*): Reword MIPS C compiler requirements.
4082 (Specific, powerpc*-*-*): New, mention --with-cpu once.
4083 (Specific, sunv5): Removed, obsolete.
4084
4085 2001-07-05 Nathan Sidwell <nathan@codesourcery.com>
4086
4087 * dwarf2out.c (output_loc_list): Use an all ones mask for
4088 .text asm output and don't rely on long long
4089 literals. Reformat some long lines.
4090
4091 2001-07-05 Andreas Jaeger <aj@suse.de>
4092
4093 * doc/gcc.texi (GNU/Linux): Remove accidental re-add of GPL
4094 section.
4095
4096 2001-07-04 Daniel Berlin <dan@cgsoftware.com>
4097
4098 * dwarf2out.c (dwarf2out_define): Update comment.
4099 (dwarf2out_undef): Ditto.
4100 (dwarf2out_start_source_file): Ditto.
4101 (dwarf2out_end_source_file): Ditto.
4102 (dwarf2out_finish): Output DW_MACINFO_end_file for primary file,
4103 since we never call the start/end debug hook for the primary file.
4104
4105 2001-07-04 Kazu Hirata <kazu@hxi.com>
4106
4107 * config/h8300/h8300.c (get_shift_alg): Remove an extra operand
4108 from shll.
4109
4110 2001-07-04 Nathan Sidwell <nathan@codesourcery.com>
4111
4112 * cppinit.c (remove_dup_dirs): Inform if a system include
4113 directory is being reordered.
4114 * doc/invoke.texi (Directory Options): GCC warns if you hide a
4115 system include.
4116 * doc/cpp.texi (Search Paths): Likewise.
4117 * doc/gcc.texi (Interoperation): Remove information about
4118 -I/usr/include.
4119
4120 2001-07-04 Nathan Sidwell <nathan@codesourcery.com>
4121
4122 * varray.h (VARRAY_TOP_GENERIC_PTR): Remove spurious parameter.
4123 (VARRAY_TOP_CHAR_PTR): Likewise.
4124
4125 2001-07-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4126
4127 * gcc.c (process_command): Don't assign elements of a const char*.
4128
4129 Wed Jul 4 13:40:02 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4130
4131 * emit-rtl.c (change_address): Don't abort if invalid address while
4132 reload is in progress.
4133
4134 2001-07-04 Daniel Berlin <dan@cgsoftware.com>
4135
4136 * c-lex.c (cb_file_change): Pass line number to
4137 debug_start_source_file.
4138 (cb_undefine): Pass correct line number to debug_undef.
4139
4140 * toplev.c (debug_start_source_file): Add line number to
4141 parameters. Pass it along to dwarf2out_start_source_file.
4142 (decode_g_option): Stop resetting debug level back to normal when
4143 we change debug formats, unless the current level is
4144 none. (Before, -g3 -gdwarf-2 would use debug level 2, rather than
4145 3).
4146
4147 * toplev.h (debug_start_source_file): Add line number to
4148 parameters.
4149
4150 * dwarf2out.h (dwarf2out_start_source_file): Add line number to
4151 parameters.
4152
4153 * dwarf2out.c (dwarf2out_start_source_file): Add line number to
4154 parameters.
4155 Output debug_macinfo data for starting file if requested.
4156 (dwarf2out_end_source_file): Output debug_macinfo data for ending
4157 file if requested.
4158 (dwarf2out_define): Output debug_macinfo data for defining a macro
4159 if requested.
4160 (dwarf2out_undef): Output debug_macinfo data for undefining a
4161 macro if requested.
4162 (DEBUG_MACINFO_SECTION): New. DWARF2 macro info section name.
4163 (DEBUG_MACINFO_SECTION_LABEL): New. DWARF2 macro info section label.
4164 (macinfo_section_label): New. DWARF2 macro info section label.
4165 (dwarf2out_init): If we want macro info, output the start label
4166 for the section.
4167 (dwarf2out_finish): If we want macro info, add a DW_AT_macro_info
4168 attribute to the compilation unit die pointing to the macro info.
4169
4170 2001-07-04 Daniel Berlin <dan@cgsoftware.com>
4171
4172 * dwarf2out.c (new_loc_list): Move to inside #ifdef
4173 DWARF2_DEBUGGING_INFO.
4174 (add_loc_descr_to_loc_list): Ditto.
4175 (output_loc_list): Ditto.
4176 Also, fix thinko in curr not being initialized.
4177 (gen_internal_sym): Ditto.
4178
4179 Wed Jul 4 13:40:02 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4180
4181 * emit-rtl.c (replace_equiv_address): New function.
4182 * expr.h (replace_equiv_address): New declaration.
4183 * explow.c (validize_mem): Call it instead of change_address and
4184 also call if -fforce-addr and address is constant.
4185 * expr.c: Replace more calls to change_address with adjust_address
4186 and/or replace_equiv_address or to validize_mem.
4187 * function.c, regmove.c, config/alpha/alpha.c: Likewise.
4188 * config/arm/arm.md, config/clipper/clipper.md: Likewise.
4189 * config/dsp16xx/dsp16xx.md, config/fr30/fr30.c: Likewise.
4190 * config/i370/i370.md, config/i860/i860.md: Likewise.
4191 * config/i960/i960.md, config/mips/mips.c: Likewise.
4192 * config/mips/mips.md, config/pa/pa.md: Likewise.
4193 * config/pdp11/pdp11.md, config/rs6000/rs6000.c: Likewise.
4194 * config/rs6000/rs6000.md, config/sh/sh.md: Likewise.
4195
4196 2001-07-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4197
4198 * bitmap.c (bitmap_union_of_diff): Don't use BITMAP_ALLOCA.
4199
4200 * bitmap.h (BITMAP_ALLOCA): Don't pass alloca as an argument to a
4201 function.
4202
4203 2001-07-04 Joseph S. Myers <jsm28@cam.ac.uk>
4204
4205 * doc/include: New directory.
4206 * doc/fdl.texi: Move to doc/include/fdl.texi.
4207 * doc/texinfo.tex: Move to doc/include/texinfo.tex.
4208 * doc/include/funding.texi, doc/include/gpl.texi: New files.
4209 * doc/gcc.texi: Use funding.texi and gpl.texi.
4210 * Makefile.in ($(docdir)/cpp.info, $(docdir)/gcc.info,
4211 $(docdir)/cppinternals.info, cpp.dvi. gcc.dvi. cppinternals.dvi):
4212 Update dependencies and use -I $(docdir)/include.
4213
4214 2001-07-04 Anthony Green <green@redhat.com>
4215
4216 * config/v850/t-v850 (v850-c.o): Add missing dependencies.
4217
4218 2001-07-04 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4219
4220 * doc/install.texi (sparc64-*-*): Remove garbage.
4221
4222 Wed Jul 4 09:07:44 2001 Jan van Male <jan.vanmale@fenk.wau.nl>
4223
4224 * i386.c (ix86_expand_builtin, case IX86_BUILTIN_SETPS):
4225 Fix typo in last change to use adjust_address.
4226
4227 2001-07-04 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4228
4229 * doc/install.texi (Specific): Update information for *-*-solaris*.
4230
4231 Tue Jul 3 22:33:15 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4232
4233 * explow.c (plus_constant_wide): Reinitialize Y for restart.
4234
4235 2001-07-03 Stan Shebs <shebs@apple.com>
4236
4237 * config/darwin.h (SECTION_FUNCTION): Remove WAS_TEXT argument, remove
4238 case for flag_no_mach_text_sections.
4239 (EXTRA_SECTION_FUNCTIONS): Remove arg from uses of SECTION_FUNCTION.
4240 * config/darwin.c (flag_no_mach_text_sections): Remove.
4241 * config/darwin-protos.h (darwin_init_pragma): Remove decl.
4242
4243 Tue Jul 3 15:35:52 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4244
4245 * explow.c (plus_constant_wide, case PLUS): Call find_constant_term
4246 and avoid checking for constant as first operand.
4247 * recog.c (find_constant_term_loc): No longer static.
4248 (adj_offettable_operand): Delete.
4249 * rtl.h (adj_offsettable_operand): Delete declaration.
4250 (find_constant_term): Add declaration.
4251 * caller-save.c: Replace calls to adj_offsettable_operand with calls
4252 to adjust_address.
4253 * config/arm/arm.c, config/c4x/c4x.c: Likewise.
4254 * config/clipper/clipper.md, config/h8300/h8300.c: Likewise.
4255 * config/i386/i386.c, config/i386/i386.md: Likewise.
4256 * config/i860/i860.c, config/i960/i960.c: Likewise.
4257 * config/i960/i960.md, config/m68hc11/m68hc11.c: Likewise.
4258 * config/m68k/m68k.c, config/m68k/m68k.md: Likewise.
4259 * config/m88k/m88k.md, config/mcore/mcore.c: Likewise.
4260 * config/mips/mips.c, config/mips/mips.md: Likewise.
4261 * config/mn10200/mn10200.c, config/mn10300/mn10300.c: Likewise.
4262 * config/ns32k/ns32k.c, config/ns32k/ns32k.md: Likewise.
4263 * config/pa/pa.c, config/pdp11/pdp11.c: Likewise.
4264 * config/pdp11/pdp11.md, config/sh/sh.c, config/v850/v850.c: Likewise.
4265 * config/vax/vax.md, config/ns32k/ns32k.c: Likewise.
4266 * config/ns32k/ns32k.md: Likewise.
4267
4268 2001-07-03 Zack Weinberg <zackw@stanford.edu>
4269
4270 * rtl.c (copy_rtx): Handle 'T' format letter.
4271 * gensupport.c (collect_insn_data): Likewise.
4272 * print-rtl.c (print_rtx): Print 'T' slots like 's'.
4273
4274 2001-07-03 Nick Clifton <nickc@cambridge.redhat.com>
4275
4276 * doc/invoke.texi (Directory Options): Specifiy range for <N> in
4277 -B option. Use 'dir' not 'foo' as example directory name.
4278
4279 2001-07-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4280
4281 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
4282 Fixes PRs bootstrap/3067, bootstrap/3249, bootstrap/3275.
4283
4284 2001-07-03 Joseph S. Myers <jsm28@cam.ac.uk>
4285
4286 * doc/cppinternals.texi: Improve formatting and logical markup.
4287
4288 2001-07-03 Andreas Jaeger <aj@suse.de>
4289
4290 * Makefile.in (insn-recog.o): Add dependency on reload.h.
4291
4292 * genrecog.c (write_header): Include reload.h for prototypes in
4293 insn-recog.c.
4294
4295 2001-07-03 Neil Booth <neil@daikokuya.demon.co.uk>
4296
4297 config:
4298 * i386/cygwin.h (VALID_MACHINE_DECL_ATTRIBUTE,
4299 VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
4300 * i386/i386-protos.h (i386_pe_valid_decl_attribute_p,
4301 i386_pe_valid_type_attribute_p): Add.
4302 * i386/i386.c (TARGET_INITIALIZER): Override for cygwin targets.
4303 * i386/winnt.c (i386_valid_decl_attribute_p): Return directly.
4304
4305 Mon Jul 2 21:52:19 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4306
4307 * explow.c (plus_constant_wide, case LO_SUM): New case.
4308 (plus_constant_for_output_wide): Delete.
4309 * rtl.h (plus_constant_for_output): Delete.
4310 * alias.c (canon_rtx, init_alias_analysis): Call plus_constant
4311 instead of plus_constant_for_output.
4312 * recog.c (offsettable_address_p, adj_offsettable_operand): Likewise.
4313 * config/darwin.c, config/arm/arm.c, config/m68k/m68k.c: Likewise.
4314 * config/m88k/m88k.c, config/mips/mips.c, config/pa/pa.c: Likewise.
4315 * config/rs6000/rs6000.c, config/sparc/sparc.c: Likewise.
4316 * config/sparc/sparc.md: Likewise.
4317 Convert some change_address calls to adjust_address.
4318
4319 2001-07-03 Joseph S. Myers <jsm28@cam.ac.uk>
4320
4321 * doc/extend.texi, doc/gcc.texi, doc/invoke.texi, doc/md.texi,
4322 doc/rtl.texi, doc/tm.texi: Improve formatting. Improve
4323 documentation of -std and -Wwrite-strings.
4324
4325 2001-07-02 Geoffrey Keating <geoffk@redhat.com>
4326
4327 * cse.c (canon_hash): Don't register registers in very small
4328 register classes, as extending their lifetime might cause
4329 reload to fail.
4330
4331 Mon Jul 2 23:14:00 CEST 2001 Jan Hubicka <jh@suse.cz>
4332
4333 * flow.c (try_redirect_by_replacing_jump): Remove cc0 setter.
4334
4335 * flow.c (forwarder_block_p): Fix for fallthru blocks.
4336 (try_redirect_by_replacing_jump): Update properly the count
4337 and frequency information.
4338
4339 Mon Jul 2 14:20:13 2001 Jeffrey A Law (law@cygnus.com)
4340
4341 * toplev.c (dump_file_index): Move SSA dumps just after first
4342 jump dump.
4343 (dump_file): Corresponding changes.
4344 (rest_of_compilation): Move SSA path to just after the first
4345 jump pass.
4346 * doc/gcc.texi (Passes): Update due to movement of SSA path.
4347 * doc/invoke.texi: Update dump file #s as they were completely
4348 out of date with reality.
4349
4350 2001-07-02 Geoffrey Keating <geoffk@redhat.com>
4351
4352 * doc/tm.texi (Frame Layout): Document STACK_PUSH_CODE.
4353
4354 * expr.c (emit_move_insn_1): Deal with non-default
4355 STACK_PUSH_CODE.
4356
4357 * expr.c (emit_single_push_insn): Fix warning.
4358
4359 2001-07-02 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
4360
4361 * expr.c (emit_move_insn_1): Avoid modifying
4362 cfun->expr->x_stack_pointer when PUSH_ROUNDING is defined.
4363
4364 Mon Jul 2 15:33:31 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4365
4366 * emit-rtl.c (adjust_address): New function.
4367 * expr.h (adjust_address): Add declaration.
4368 * builtins.c: Replace some calls to change_address with calls to it
4369 or to validize_mem.
4370 * caller-save.c, dwarf2out.c, except.c, expmed.c, expr.c: Likewise.
4371 * function.c, config/a29k/a29k.md, config/alpha/alpha.c: Likewise.
4372 * config/arm/arm.c, config/convex/convex.c: Likewise.
4373 * config/dsp16xx/dsp16xx.md, config/fr30/fr30.c: Likewise.
4374 * config/i386/i386.c, config/i386/i386.md: Likewise.
4375 * config/ia64/ia64.c, config/ia64/ia64.md: Likewise.
4376 * config/m32r/m32r.c, config/m68k/m68k.md: Likewise.
4377 * config/m88k/m88k.c, config/mips/mips.md: Likewise.
4378 * config/ns32k/ns32k.c, config/rs6000/rs6000.c: Likewise.
4379 * config/sh/sh.c, config/sparc/sparc.md: Likewise.
4380
4381 2001-07-02 Jim Wilson <wilson@redhat.com>
4382
4383 * config/ia64/ia64.h: Delete obsolete lib1funcs.asm comment.
4384
4385 2001-07-02 Steve Ellcey <sje@cup.hp.com>
4386
4387 * config/ia64/t-ia64: Change LIB1ASMFUNCS to use single underscore.
4388 * config/ia64/lib1funcs.asm: Change macro names to match t-ia64.
4389
4390 2001-07-02 Zack Weinberg <zackw@stanford.edu>
4391
4392 * cppinit.c (lang_defaults): New table.
4393 (set_lang): Just read from lang_defaults into the live options
4394 structure.
4395
4396 2001-07-02 Zack Weinberg <zackw@stanford.edu>
4397
4398 * Makefile.in (doc): Depend on $(GENERATED_MANPAGES).
4399 * doc/.cvsignore: Add gcc.1, cpp.1, gcov.1.
4400 * doc/gcc.1, doc/cpp.1, doc/gcov.1: Removed.
4401
4402 2001-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4403
4404 * doc/install.texi: Various spelling and markup fixes.
4405 (Installing GCC): Component specific installation instructions are
4406 gone.
4407 Fix reference.
4408 Warn about removing old install dir in the presence of shared libs.
4409 (Configuration): Invoke with options target to match configure
4410 --help.
4411 Consistently refer to gas, gld pathnames.
4412 Invert --enable-multilib documentation.
4413 Remove references to old compiler versions.
4414
4415 Mon Jul 2 12:50:51 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4416
4417 * flow.c (try_simplify_condjump): Fix typo in updating fallthru flags.
4418
4419 2001-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4420
4421 * doc/install.texi (Specific, mips*-sgi-irix4): Split from IRIX 5
4422 section.
4423 (Specific, mips*-sgi-irix5): Note IDO download.
4424 Reworded MIPS C hints.
4425 Use GNU as instead of GAS.
4426 Markup fixes.
4427 Removed SGI Freeware reference, IRIX 6 only.
4428 (Specific, mips*-sgi-irix6): Removed ranlib caveats, obsolete.
4429 Note N64 library requirement/workaround.
4430 Update O32 hints.
4431 Complete list of structure passing bug victims.
4432
4433 2001-07-02 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4434
4435 * doc/install.texi: Remove CVS Id.
4436
4437 2001-07-02 Andreas Jaeger <aj@suse.de>
4438
4439 * ssa-dce.c (note_inherently_necessary_set): Add unused attribute.
4440 (find_inherently_necessary): Remove unused variable.
4441
4442 2001-07-02 Nathan Sidwell <nathan@codesourcery.com>
4443
4444 * c-common.h (TDI_inlined): New ast dump phase.
4445 (dump_flag_name): New function.
4446 * c-dump.c (dump_files): Add inlined phase.
4447 (dump_flag_name): Define.
4448 * doc/invoke.texi (-fdump-ast-inlined): Document.
4449
4450 Mon Jul 2 06:29:36 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4451
4452 * stor-layout.c (layout_decl): Revert change to handling of alignment
4453 in packed types.
4454
4455 Sun Jul 1 11:53:52 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4456
4457 * c-common.c (decl_attributes, case A_MODE): Don't call layout_decl
4458 for FIELD_DECL.
4459
4460 2001-07-01 Geoffrey Keating <geoffk@redhat.com>
4461
4462 * doc/tm.texi (FUNCTION_ARG): Document that the last call
4463 is special.
4464
4465 2001-07-01 Nathan Sidwell <nathan@codesourcery.com>
4466
4467 * tlink.c (recompile_files): Remove COMPILER_PATH and
4468 LIBRARY_PATH from the environment.
4469
4470 2001-07-01 Zack Weinberg <zackw@stanford.edu>
4471
4472 * c-common.h (enum rid): Add RID_FIRST_AT, RID_LAST_AT,
4473 RID_LAST_PQ. Move RID_FIRST_PQ down with the other FIRST/LAST
4474 enumerators.
4475 (OBJC_IS_AT_KEYWORD, OBJC_IS_PQ_KEYWORD): New macros.
4476
4477 * c-parse.in (OBJC_STRING): Kill.
4478 (objc_string): Decompose to [objc_string] '@' STRING.
4479 (reswords): Take the leading '@' off all the Objective C keywords.
4480 (objc_rid_sans_at): Kill.
4481 (init_reswords): Don't initialize it.
4482 (yylexname): Use OBJC_IS_AT_KEYWORD and OBJC_IS_PQ_KEYWORD.
4483 (_yylex): Kill reconsider label. Look ahead one token after
4484 an '@'; if we get an identifier, check whether it's an
4485 Objective C @-keyword. If so, return the keyword. Otherwise,
4486 put back the token and return the '@' as a terminal.
4487
4488 * cpplib.c (lex_macro_node): Remove unnecessary check for
4489 leading '@' on identifier. Clarify control flow and commentary.
4490
4491 Sun Jul 1 11:53:52 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4492
4493 * cse.c (new_label_ref): Variable deleted.
4494 (insert): Remove set of new_label_ref.
4495 (check_for_label_ref): New function.
4496 (cse_basic_block): Don't check new_label_ref; call check_for_label_ref.
4497
4498 See ChangeLog.5 for earlier changes.