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