]> gcc.gnu.org Git - gcc.git/blame - gcc/ChangeLog
Index: include/ChangeLog
[gcc.git] / gcc / ChangeLog
CommitLineData
b2e2d0cc
EC
12002-06-05 Eric Christopher <echristo@redhat.com>
2
3 * varasm.c (make_decl_rtl): Fix comment for removed
4 halfpic.c.
5
0f81faf6
EC
62002-06-05 Eric Christopher <echristo@redhat.com>
7
8 * Makefile.in: Remove missed halfpic bits.
9
33005162
EC
102002-06-05 Eric Christopher <echristo@redhat.com>
11
12 * toplev.c: Remove half-pic.
13 * config/mips/mips.c: Ditto.
14 * config/mips/mips.h: Ditto. Remove unused defines.
15 * config/mips/openbsd.h: Update comment to reflect above.
16 * config/mips/mips.md: Remove half-pic constraints.
17 * halfpic.h: Delete.
18 * halfpic.c: Ditto.
19
80081028
JL
202002-06-05 Jeffrey Law <law@redhat.com>
21
22 * pa.h (EXTRA_CONSTRAINT, T case): Further refine so that it
23 rejects (mem (lo_sum (reg) (unspec))), but will allow
33005162 24 (mem (lo_sum (reg) (symbol_ref)) for PA2.0.
80081028 25
cbc69f84
NB
262002-06-05 Neil Booth <neil@daikokuya.demon.co.uk>
27
28 * cpphash.h (_cpp_create_definition): Update prototype.
29 (_cpp_push_text_context, _cpp_create_trad_definition): New.
30 ( cpp_lex_identifier_trad): New.
31 (_cpp_set_trad_context): New.
32 * cppinit.c (cpp_finish_options): Don't conditionalize builtins.
33 * cpplib.c (SEEN_EOL): Update.
34 (lex_macro_node): Update for -traditional.
35 (cpp_push_buffer, _cpp_pop_buffer): Similarly.
36 * cppmacro.c (_cpp_create_definition): Split into
37 create_iso_definition() and _cpp_create_trad_definition().
38 (warn_of_redefinition): Update prototype; handle traditional
39 macros.
40 (_cpp_push_text_context): New.
41 * cpptrad.c (skip_whitespace, push_replacement_text): New.
42 (lex_identifier): Call ht_lookup with correct start.
43 (_cpp_lex_identifier_tradm _cpp_create_trad_definition,
44 _cpp_set_trad_context): New.
45 (scan_out_logical_line): Update to handle changing contexts.
46
dbf87f32
R
47Wed Jun 5 20:42:31 2002 J"orn Rennecke <joern.rennecke@superh.com>
48
49 * config.gcc (sh-*-elf*, sh64*-*-elf*): Unify.
50 (shl*-*-elf*): Add.
51 * config/sh/t-be (MULTILIB_ENDIAN): Set.
52 * config/sh/t-le (MULTILIB_ENDIAN): Likewise.
53 * t-sh (MULTILIB_ENDIAN): Set.
54 (MULTILIB_OPTIONS): Use it.
55 * t-sh64 (MULTILIB_OPTIONS): Likewise.
56 (MULTILIB_DIRNAMES): Likewise.
57
47b69537
GDR
582002-06-05 Gabriel Dos Reis <gdr@codesourcery.com>
59
60 * toplev.h (report_error_function): Remove.
61
62 * diagnostic.h (location_t): New datatype.
63 (text_info): Likewise.
64 (diagnostic_info): Likewise.
65 (output_prefix): New macro.
66 (diagnostic_last_function_changed): Likewise.
67 (diagnostic_set_last_function): Likewise.
68 (diagnostic_last_module_changed): Likewise.
69 (diagnostic_set_last_module): Likewise.
70 (report_diagnostic): Now macro.
71 (diagnostic_set_info): Declare.
72
73 * diagnostic.c (report_problematic_module): Rename to
33005162 74 diagnostic_repor_current_module.
47b69537
GDR
75 (set_diagnostic_context): Remove.
76 (count_error): Rename to diagnostic_error_count.
77 (error_function_changed): Remove.
78 (record_last_error_function): Likewise.
79 (error_module_changed): Likewise.
80 (record_last_error_module): Likewise.
81 (context_as_prefix): Rename to diagnostic_build_prefix.
82 (flush_diagnostic_buffer): Rename to diagnostic_flush_buffer.
83 (diagnostic_set_info): New function.
84
85 * objc/objc-act.c: #include diagnostic.h
86 (error_with_ivar): Adjust call to count_error.
87 (warn_with_method): Likewise.
88 * objc/Make-lang.in (objc-act.o): Depend on diagnostic.h
89
540eaea8
BW
902002-06-05 Bob Wilson <bob.wilson@acm.org>
91
92 * config/xtensa/xtensa.c (xtensa_build_va_list): Use
93 lang_hooks.types.make_type instead of make_node; set up
94 __va_list_tag type decl.
95 (xtensa_builtin_saveregs): Remove broken use of
96 RTX_UNCHANGING_P and unnecessary use of MEM_IN_STRUCT_P
97 for saved registers; add varargs alias set.
98
f23a084d
NB
992002-06-05 Neil Booth <neil@daikokuya.demon.co.uk>
100
101config:
102 * alpha/gnu.h: Undef TARGET_OS_CPP_BUILTINS.
103 * i386/beos-elf.h: Use TARGET_OS_CPP_BUILTINS rather than
104 CPP_PREDEFINES and part of CPP_SPEC.
105 i386/freebsd-aout.h, i386/gas.h, i386/gnu.h, i386/linux-aout.h,
106 i386/linux.h, i386/moss.h, i386/xm-vsta.h: Similarly.
107
3fe3a596
JH
108Wed Jun 5 15:20:58 CEST 2002 Jan Hubicka <jh@suse.cz>
109
110 * reg-stack.c (reg_to_stack): Do not call find_basic_blocks.
111
1fd9ba59
AM
1122002-06-05 Alan Modra <amodra@bigpond.net.au>
113
114 * config/rs6000/linux64.h (ASM_OUTPUT_SOURCE_LINE): Define.
115
cea554e0
ZW
1162002-06-04 Zack Weinberg <zack@codesourcery.com>
117
118 * gengtype-yacc.y: Make sure all rules end with a semicolon.
119
07232638
BW
1202002-06-04 Bob Wilson <bob.wilson@acm.org>
121
122 * config/xtensa/xtensa.c (xtensa_init_machine_status): Fix
123 typo in function prototype and include "ggc.h" header.
124
c4b50f1a
RH
1252002-06-04 Richard Henderson <rth@redhat.com>
126
127 * config/alpha/alpha.c (mode_mask_operand): Simplify without ifdefs.
128 (print_operand) ['U']: Likewise.
129 (alpha_expand_unaligned_store): Correct constants for 32-bit cross.
130 (alpha_expand_unaligned_store_words): Likewise.
131 (alpha_expand_builtin_vector_binop): Fix typo.
132 (enum alpha_builtin, code_for_builtin): Add remaining ext, ins, msk,
133 umulh, and cix insns.
134 (one_arg_builtins): Add cix builtins.
135 (two_arg_builtins): Add ext, ins, msk, umulh builtins.
136 (alpha_expand_builtin): Fix typo in arity.
137 * config/alpha/alpha.md (UNSPEC_CTLZ, UNSPEC_CTPOP): New.
138 (builtin_extbl, builtin_extwl, builtin_extll, builtin_extwh,
139 builtin_extlh, builtin_insbl, builtin_inswl, builtin_insll,
140 builtin_insql, builtin_inswh, builtin_inslh, builtin_insqh,
141 builtin_mskbl, builtin_mskwl, builtin_mskll, builtin_mskql,
142 builtin_mskwh, builtin_msklh, builtin_mskqh, builtin_cttz,
143 builtin_ctlz, builtin_ctpop): New.
144 * doc/extend.texi (Alpha Built-in Functions): Update.
145
aaab35ae
GK
1462002-06-04 Geoffrey Keating <geoffk@redhat.com>
147
afb0f770
GK
148 * gengtype.c (write_gc_root): Don't unnecessarily prevent
149 global variable-length arrays being roots.
150
aaab35ae
GK
151 * config.gcc (powerpc-*-darwin*): Set config_gtfiles.
152 * configure.in (config_gtfiles): New variable.
153 (all_gtfiles): Initialise from config_gtfiles.
154 * configure: Regenerate.
155
1ba7b414
NB
1562002-06-04 Neil Booth <neil@daikokuya.demon.co.uk>
157
158config/i386:
159 * beos-elf.h, cygwin.h, djgpp.h, gas.h, gnu.h, i386-interix.h,
160 i386-interix3.h, i386elf.h, linux-aout.h, linux.h, linux64.h,
161 mingw32.h, netbsd-elf.h, netbsd.h, netbsd64.h, rtemself.h,
162 sco5.h, sol2.h, sysv3.h, sysv4.h, sysv5.h, uwin.h, vxi386.h,
163 win32.h (CPP_SPEC): Remove cpp_cpu.
164 * i386.h (TARGET_CPU_CPP_BUILTINS): Use.
165 (CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Die!
166
135ca7b2
JJ
1672002-06-04 Janis Johnson <janis187@us.ibm.com>
168
169 * config/ia64/ia64.c (gen_thread_pointer): Fix variable name.
170
85d69216
JL
1712002-06-04 Jeff Law <law@redhat.com.
172 David Edelsohn <edelsohn@gnu.org>
173 Michael Matz <matz@kde.org>
174
175 * sched-int.h (struct deps): New field libcall_block_tail_insn.
176 * sched_deps.c (init_deps): Initialize libcall_block_tail_insn.
177 * sched_deps.c (sched_analyze_insn): If libcall_block_tail_insn
178 is set, then mark the current insn as being part of a libcall
179 scheduling group.
180 (sched_analyze): Set and clear libcall_block_tail_insn appropriately.
181
182 * haifa-sched.c (schedule_block): Do not count USE or CLOBBER
183 insns against the issue rate.
184
63f4a88e
JH
185Tue Jun 4 19:29:42 CEST 2002 Jan Hubicka <jh@suse.cz>
186
187 * cfglayout.c (duplicate_insn_chain): Kill NOTE_INSN_RANGE notes.
188 * final.c (final_scan_insn): Likewise.
189 * ggc-common.c (ggc_mark_rtx_children_1): Likewise; use
190 NOTE_EXPECTED_VALUE instead of NOTE_RANGE.
191 * haifa-sched.c (unlink_other_notes): Likeewise.
192 (reemit_notes): Likewise.
193 * print-rtl.c (print_rtx): Likewise.
194 * sched-deps (sched-analyze): Likewise.
195 * rtl.c (note_insn_name): Likewise.
196 * rtl.h (NOTE_RANGE_INFO, NOTE_LIVE_INFO): Kill.
197 (enum insn_note): Kill NOTE_INSN_RANGE_*, NOTE_INSN_LIVE.
198 (RANGE_*): Kill.
199
a5d1f75b
JT
2002002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
201
202 * varasm.c (mark_constants): Handle RTX format 'B'.
203
82eda77e
NB
2042002-06-04 Neil Booth <neil@daikokuya.demon.co.uk>
205
206 * cpphash.h (FIRST, LAST, CUR, RLIMIT): New.
207 (struct cpp_context): Add traditional fields.
208 * cppmacro.c (paste_all_tokens, push_ptoken_context,
209 push_token_context, cpp_get_token, _cpp_backup_tokens): Update.
210 * cpptrad.c (skip_comment, lex_identifier,
211 _cpp_read_logical_line_trad, scan_out_logical_line): Update.
212
589005ff
KH
2132002-06-04 Kazu Hirata <kazu@cs.umass.edu>
214
215 * gbl-ctors.h: Fix formatting.
216 * gcc.c: Likewise.
217 * gccspec.c: Likewise.
218 * gcov.c: Likewise.
219 * gcov-io.h: Likewise.
220 * gcse.c: Likewise.
221 * ggc-common.c: Likewise.
222 * ggc.h: Likewise.
223 * ggc-page.c: Likewise.
224 * ggc-simple.c: Likewise.
225 * global.c: Likewise.
226 * graph.h: Likewise.
227 * gthr-dce.h: Likewise.
228 * gthr.h: Likewise.
229 * gthr-posix.h: Likewise.
230 * gthr-rtems.h: Likewise.
231 * gthr-solaris.h: Likewise.
232 * gthr-win32.h: Likewise.
233
e2500fed
GK
2342002-06-03 Geoffrey Keating <geoffk@redhat.com>
235
236 Merge from pch-branch:
33005162 237
e2500fed
GK
238 * gengtype.h (UNION_OR_STRUCT_P): New macro.
239 * gengtype.c (write_gc_structure_fields): Use it.
240 (write_gc_root): Use it here too.
241
242 * gengtype.c (write_gc_structure_fields): Assume that lengths
243 of typenames fit into an 'int'; don't pass a size_t to "%d" in
244 printf.
245 (write_gc_marker_routine_for_structure): Likewise.
246 (write_gc_types): Likewise.
247 (write_gc_root): Likewise.
248
249 * varray.h (VARRAY_CLEAR): New.
250 (varray_clear): Prototype.
251 * varray.c (varray_clear): New.
252 * cselib.c (reg_values_old): New.
253 (used_regs_old): New.
254 (cselib_init): Use cached varrays if available to avoid
255 generating large amounts of garbage.
256 (cselib_finish): Don't throw away old varrays.
257
258 * final.c (insn_addresses_): Move out of ifdef.
259
260 * varray.c (uses_ggc): Make more varray kinds GCable.
261 * varray.h (union varray_data_tag): Let gengtype see
262 fields 'generic' and 'te'.
263 * reg-stack.c: Include gt-reg-stack.h, ggc.h.
264 (stack_regs_mentioned_data): Move out of ifdef; mark with gengtype.
265 (reg_to_stack): Don't call VARRAY_FREE.
266 * insn-addr.h (INSN_ADDRESSES_FREE): Don't use VARRAY_FREE.
267 (insn_addresses_): Use gengtype to mark.
268 * gengtype.c (write_gc_structure_fields): Handle arrays of generic
269 pointers; handle generic pointers in unused union fields.
270 (get_output_file_with_visibility): Include cselib.h,
271 insn-addr.h in gtype-desc.c.
272 * function.c (prologue): Use gengtype to mark.
273 (epilogue): Likewise.
274 (sibcall_epilogue): Likewise.
275 * dependence.c: Include gt-dependence.h, ggc.h.
276 (struct def_use): Use gengtype to mark.
277 (struct loop): Likewise.
278 (struct induction): Likewise.
279 (struct dependence): Likewise.
280 (def_use_chain): Likewise.
281 (dep_chain): Likewise.
282 (loop_chain): Likewise.
283 (induction_chain): Likewise.
284 (init_dependence_analysis): Don't free anything, just clear pointers.
285 (build_def_use): Use GGC to allocate def_use.
286 (add_loop): Use GGC to allocate loop.
287 (find_induction_variable): Use GGC to allocate induction.
288 (check_node_dependence): Use GGC to allocate induction, dependence.
289 (dump_node_dependence): Don't free varrays.
290 (end_dependence_analysis): Likewise.
291 * cselib.h (struct cselib_val_struct): Use gengtype to mark.
292 (struct elt_loc_list): Likewise.
293 (struct elt_list): Likewise.
294 * cselib.c: Don't include obstack.h.
295 (hash_table): Use gengtype to mark.
296 (reg_values): Use gengtype to mark.
297 (used_regs): Use gengtype to mark.
298 (cselib_obstack): Delete.
299 (cselib_startobj): Delete.
300 (empty_vals): Mark as deletable.
301 (empty_elt_lists): Mark as deletable.
302 (empty_elt_loc_lists): Mark as deletable.
303 (new_elt_list): Use GGC to allocate struct elt_list.
304 (new_elt_loc_list): Use GGC to allocate struct elt_loc_list.
305 (clear_table): Don't delete obstack; don't unnecessarily clear
306 deletable variables.
307 (new_cselib_val): Use GGC to allocate struct cselib_val.
308 (cselib_init): Don't set up obstacks. Use GGC to allocate
309 hash table.
310 (cselib_finish): Just clear variables, don't free anything.
311 * Makefile.in (cselib.o): Remove dependency on $(OBSTACK_H).
312 (reg-stack.o): Add dependency on gt-reg-stack.h, $(GGC_H).
313 (dependence.o): Add dependency on gt-dependence.h, $(GGC_H).
314 (GTFILES): Add insn-addr.h, cselib.h, dependence.c, reg-stack.c.
315 (gt-reg-stack.h): New rule.
316 (gt-dependence.h): New rule.
317 (gtype-desc.o): Add cselib.h, insn-addr.h.
318
319 * varray.c: Use only necessary headers.
320 (element_size): New.
321 (uses_ggc): New.
322 (varray_init): Take type, not size. Use GGC if appropriate.
323 (varray_grow): Update for change to struct varray_head_tag.
324 Use GGC if appropriate.
325 * varray.h (struct const_equiv_data): Use gengtype.
326 (enum varray_data_enum): New.
327 (union varray_data_tag): Use gengtype.
328 (struct varray_head_tag): Use gengtype. Replace size field with
329 enum varray_data_enum.
330 (varray_init): Update prototype.
331 (VARRAY_SCHED_INIT): Delete.
332 (VARRAY_*_INIT): Update for change to varray_init.
333 (VARRAY_SCHED): Delete.
334 (VARRAY_PUSH_SCHED): Delete.
335 (VARRAY_TOP_SCHED): Delete.
336 * tree.h: Update for change to length specifier.
337 * tree-inline.c (optimize_inline_calls): Don't use VARRAY_FREE.
338 (clone_body): Likewise.
339 * ssa.h (ssa_definition): Use gengtype to mark.
340 * ssa.c (convert_from_ssa): Don't use VARRAY_FREE.
341 * ssa-dce.c (ssa_eliminate_dead_code): Don't use VARRAY_FREE.
342 * rtl.h (struct rtvec_def): Update for change to length specifier.
343 * integrate.c (expand_inline_function): Don't use VARRAY_FREE.
344 (struct initial_value_struct): Update for change to length specifier.
345 * ggc.h (ggc_add_rtx_varray_root): Delete prototype.
346 (ggc_add_tree_varray_root): Delete prototype.
347 (ggc_mark_rtx_varray): Delete prototype.
348 (ggc_mark_tree_varray): Delete prototype.
349 * ggc-common.c (ggc_add_rtx_varray_root): Delete.
350 (ggc_add_tree_varray_root): Delete.
351 (ggc_mark_rtx_varray): Delete.
352 (ggc_mark_tree_varray): Delete.
353 (ggc_mark_rtx_varray_ptr): Delete.
354 (ggc_mark_tree_varray_ptr): Delete.
355 * gengtype.h (enum typekind): Remove TYPE_VARRAY.
356 (create_varray): Delete prototype.
357 * gengtype.c (varrays): Delete.
358 (create_varray): Delete.
359 (adjust_field_type): Detect array of string pointers.
360 (process_gc_options): Remove code to handle varray_type option.
361 (set_gc_used_type): Remove TYPE_VARRAY case.
362 (output_escaped_param): New.
363 (write_gc_structure_fields): Use output_escaped_param on all
364 parameters. Handle 'skip' with 'use_param' option. Handle
365 arrays of strings. Remove TYPE_VARRAY handling.
366 (write_gc_roots): Use boolean to detect 'length' option.
367 * gengtype-yacc.y (VARRAY_TYPE): Delete token.
368 (struct_fields): Call adjust_field_type on array fields.
369 (type): Remove VARRAY_TYPE case.
370 (type_option): Likewise.
371 * gengtype-lex.l: Don't consider varray_type a keyword.
372 * function.h: Update for change to length specifier.
373 (free_eh_status): Delete prototype.
374 * function.c (free_after_compilation): Don't call free_eh_status.
375 (reorder_blocks): Don't use VARRAY_FREE.
376 * except.c (struct eh_status): Update for change to length specifier.
377 remove varray_type specifier.
378 (free_eh_status): Delete.
379 * dwarf2out.c: Include gt-dwarf2out.h.
380 (used_rtx_varray): Use gengtype to mark, move
381 outside ifdefs.
382 (incomplete_types): Likewise.
383 (decl_scope_table): Likewise.
33005162 384 (dwarf2out_init): Don't call ggc_add_tree_varray_root.
e2500fed
GK
385 * cfglayout.c (scope_to_insns_finalize): Don't use VARRAY_FREE.
386 * c-tree.h (struct lang_type): Update for change to length specifier.
387 * c-parse.in (yylexstring): Don't use VARRAY_FREE.
388 * c-objc-common.c: Include gt-c-objc-common.h.
389 (deferred_fns): Mark for gengtype.
390 (c_objc_common_init): Don't call ggc_add_tree_varray_root.
391 (expand_deferred_fns): Just set deferred_fns to 0 to free it.
392 * Makefile.in (c-objc-common.o): Add gt-c-objc-common.h.
393 (gtype-desc.o): Update dependencies.
394 (dwarf2out.o): Add gt-dwarf2out.h.
395 (varray.o): Update dependencies.
396 (GTFILES): Add varray.h, ssa.h, dwarf2out.c, c-objc-common.c.
397 (gt-c-objc-common.h): New rule.
398 (gt-dwarf2out.h): New rule.
399 * objc/objc-act.c (build_objc_string_object): Don't use VARRAY_FREE.
400
401 * doc/gty.texi (GTY Options): Correct spelling.
402 (GGC Roots): Likewise.
403 * Makefile.in (TEXI_CPP_FILES): New.
404 (TEXI_GCC_FILES): New.
405 (TEXI_GCCINT_FILES): New.
406 (TEXI_CPPINT_FILES): New.
407 ($(docdir)/cpp.info): Use new macros.
408 ($(docdir)/gcc.info): Likewise.
409 ($(docdir)/gccint.info): Likewise.
410 ($(docdir)/cppinternals.info): Likewise.
411 (cpp.dvi): Likewise.
412 (gcc.dvi): Likewise.
413 (gccint.dvi): Likewise.
414 (cppinternals.dvi): Likewise.
415
416 * Makefile.in ($(docdir)/gccint.info): Depend on gty.texi.
417 * doc/gccint.texi (Top): Include gty.texi.
418 * doc/gty.texi: New file.
419
420 * bitmap.c: Include ggc.h, gt-bitmap.h.
421 (bitmap_ggc_free): New.
422 (bitmap_elem_to_freelist): New.
423 (bitmap_element_free): Use bitmap_elem_to_freelist.
424 (bitmap_element_allocate): Allow use of GGC.
425 (bitmap_clear): Use bitmap_elem_to_freelist.
426 (bitmap_copy): Update for change to bitmap_element_allocate.
427 (bitmap_set_bit): Likewise.
428 (bitmap_operation): Update for changes elsewhere.
429 (bitmap_initialize): Allow to create bitmaps that will use GGC.
430 * bitmap.h (struct bitmap_element_def): Use gengtype.
431 (struct bitmap_head_def): Likewise. Also add 'using_obstack' field.
432 (bitmap_initialize): Add extra parameter.
433 (BITMAP_OBSTACK_ALLOC): Update for change to bitmap_initialize.
434 (BITMAP_ALLOCA): Delete.
435 (BITMAP_XMALLOC): Update for change to bitmap_initialize.
436 (BITMAP_GGC_ALLOC): New.
437 * Makefile.in (gtype-desc.o): Add bitmap.h.
438 (bitmap.o): Add gt-bitmap.h, $(GGC_H).
439 (GTFILES): Add bitmap.c.
440 (gt-bitmap.h): New rule.
441 ($(HOST_PREFIX_1)bitmap.o): Add gt-bitmap.h.
442 * basic-block.h: Update for changes to bitmap_initialize.
443 * except.c (exception_handler_label_map): Move into...
444 (struct eh_status): Here.
445 (struct eh_region): Make 'aka' GCable.
446 (free_eh_status): Don't need to specially handle
447 exception_handler_label_map.
448 (add_ehl_entry): Update for changes to exception_handler_label_map.
449 (find_exception_handler_labels): Likewise.
450 (remove_exception_handler_label): Likewise.
451 (maybe_remove_eh_handler): Likewise.
452 (for_each_eh_label): Likewise.
453 (remove_eh_handler): Allocate 'aka' using GGC.
454 * gengtype.c (get_output_file_with_visibility): Add bitmap.h
455 to list of includes.
456
457 * gengtype.c (write_gc_marker_routine_for_structure): Name
33005162 458 the routines 'gt_ggc_mx_*' instead of 'gt_ggc_m_*'.
e2500fed
GK
459 (write_gc_types): Arrange for the tests with NULL to be inlined.
460 (write_gc_roots): Update uses of procedure pointers.
461 * ggc-common.c (gt_ggc_mx_rtx_def): Rename from gt_ggc_m_rtx_def.
462
463 * Makefile.in (explow.o): Add dependency on gt-explow.h.
464 (sdbout.o): Add dependency on gt-sdbout.h.
465
466 * emit-rtl.c (const_int_htab): Use gengtype to clear unused entries.
467 (mem_attrs_htab): Likewise.
468 (init_emit_once): Don't call ggc_add_deletable_htab.
469 * fold-const.c (size_htab): Use gengtype to clear unused entries.
470 (size_int_type_wide): Don't call ggc_add_deletable_htab.
471 * gengtype.c (finish_root_table): Add LASTNAME and TNAME
472 parameters, use them, change callers.
473 (write_gc_root): Add IF_MARKED parameter, use it, change callers.
474 (write_gc_roots): Handle 'if_marked' option.
475 (main): Don't need to call set_gc_used_type any more.
476 * ggc.h (ggc_htab_marked_p): Delete.
477 (ggc_htab_mark): Delete.
478 (struct ggc_cache_tab): New.
479 (gt_ggc_cache_rtab): New declaration.
480 * ggc-common.c (struct d_htab_root): Delete.
481 (d_htab_roots): Delete.
482 (ggc_add_deletable_htab): Delete.
483 (ggc_htab_delete): Handle new htab-deleting mechanism.
484 (ggc_mark_roots): Use new htab-deleting mechanism.
485 * tree.c (type_hash_table): Use gengtype to clear unused entries.
486 Make static.
487 (init_obstacks): Don't call ggc_add_deletable_htab.
488
489 * objc/objc-act.h (struct hashed_attribute): Use gengtype.
490 (struct hashed_entry): Likewise.
491 (nst_method_hash_list): Likewise.
492 (cls_method_hash_list): Likewise.
493 (HASH_ALLOC_LIST_SIZE): Delete.
494 (ATTR_ALLOC_LIST_SIZE): Delete.
495 * objc/objc-act.c (hash_init): Use ggc to allocate
496 nst_method_hash_list, cls_method_hash_list.
497 (hash_enter): Use ggc to allocate; allocate one entry at a time.
498 (hash_add_attr): Likewise.
499 (ggc_mark_hash_table): Delete.
500 (objc_act_parse_init): Delete.
501 (objc_init): Delete reference to objc_act_parse_init.
502 * tlink.c: Replace hash.h with hashtab.h. Explicitly include
503 obstack.h. Replace references to 'struct hash_table' with htab_t.
504 (struct symbol_hash_entry): Replace hash header with key field.
505 (struct file_hash_entry): Replace hash header with key field.
506 (struct demangled_hash_entry): Replace hash header with key field.
507 (hash_string_eq): New.
508 (hash_string_hash): New.
509 (symbol_hash_newfunc): Delete.
510 (symbol_hash_lookup): Modify to use htab_t.
511 (file_hash_newfunc): Delete.
512 (file_hash_lookup): Modify to use htab_t.
513 (demangled_hash_newfunc): Delete.
514 (demangled_hash_lookup): Modify to use htab_t.
515 (tlink_init): Modify to use htab_t.
516 * hash.h: Delete.
517 * hash.c: Delete.
518 * ggc.h: Delete forward structure declarations.
519 Delete prototypes for deleted functions.
520 * ggc-common.c: Don't include hash.h.
521 (ggc_add_tree_hash_table_root): Delete.
522 (ggc_mark_tree_hash_table_entry): Delete.
523 (ggc_mark_tree_hash_table): Delete.
524 (ggc_mark_tree_hash_table_ptr): Delete.
525 * gengtype.c (write_gc_structure_fields): Allow param_is option.
526 (write_gc_marker_routine_for_structure): Use visibility of
527 the parameter if there is one.
528 * function.c: Replace hash.h with hashtab.h. Replace references
529 to 'struct hash_table *' with htab_t.
530 (struct insns_for_mem_entry): Include a plain key.
531 (fixup_var_refs_insns_with_hash): Update to use htab_t.
532 (insns_for_mem_newfunc): Delete.
533 (insns_for_mem_hash): Update to use htab_t.
534 (insns_for_mem_comp): Likewise.
535 (insns_for_mem_walk): Likewise.
536 * c-lang.c: Include ggc.h.
537 * Makefile.in (OBJS): Remove hash.o.
538 (c-lang.o): Add GGC_H.
539 (COLLECT2_OBJS): Remove hash.o.
540 (tlink.o): Remove hash.h, add HASHTAB_H and OBSTACK_H.
541 (ggc-common.o): Remove hash.h.
542 (function.o): Remove hash.h, add HASHTAB_H.
543 (genautomata.o): Remove hash.h, add HASHTAB_H.
544
545 * varasm.c (mark_const_str_htab_1): Delete.
546 (mark_const_str_htab): Delete.
547 (const_str_htab_del): Delete.
548 (const_str_htab): Use gengtype to mark.
549 (init_varasm_once): Use gengtype to mark hashtables. Use GC to
550 allocate them.
551 * tree.c (mark_tree_hashtable_entry): Delete.
552 (mark_tree_hashtable): Delete.
553 * tree.h (mark_tree_hashtable): Delete prototype.
554 * ggc.h (ggc_test_and_set_mark): Treat (void *)1 like NULL.
555 (ggc_mark): Likewise.
556 (ggc_calloc): New.
557 (htab_create_ggc): New.
558 * ggc-common.c (ggc_calloc): New.
559 * gengtype.h (enum typekind): Add TYPE_PARAM_STRUCT.
560 (struct type): Add param_struct structure.
561 * gengtype.c (param_structs): New.
562 (adjust_field_type): Handle param_is option.
563 (set_gc_used_type): Handle TYPE_PARAM_STRUCT.
564 (get_output_file_with_visibility): Include hashtab.h in gtype-desc.c.
565 (write_gc_structure_fields): Add new PARAM parameter. Update
566 callers. Handle use_param option. Handle TYPE_PARAM_STRUCT.
567 (write_gc_marker_routine_for_structure): Add new PARAM parameter.
568 Use it to generate function name. Update callers.
569 (write_gc_types): Add new PARAM_STRUCTS parameter. Update callers.
570 Process them.
571 (write_gc_roots): Handle TYPE_PARAM_STRUCT. Allow param_is
572 option.
573 (main): Define PTR as pointer-to-scalar. Don't specially
574 mark deferred_string or ehl_map_entry.
575 * gengtype-yacc.y (PARAM_IS): Add new token.
576 (externstatic): Use adjust_field_type.
577 (type_option): Add PARAM_IS.
578 * gengtype-lex.l: Add rule for typedef of function pointers.
579 Add rule for PARAM_IS.
580 (IWORD): Add size_t.
581 * except.c (exception_handler_label_map): Use gengtype to mark.
582 (type_to_runtime_map): Likewise.
583 (mark_ehl_map_entry): Delete.
584 (mark_ehl_map): Delete.
585 (init_eh): Use gengtype for roots; use GC to allocate hash tables.
586 (t2r_mark_1): Delete.
587 (t2r_mark): Delete.
588 * Makefile.in (gtype-desc.o): Correct dependencies.
589 (GTFILES): Add hashtab.h.
590 (genautomata.o): Actually uses hashtab.h.
591
592 * Makefile.in (stringpool.o): Add $(GGC_H).
593 (dwarf2asm.o): Likewise.
594 (GTFILES): Add hashtable.h.
595 * c-common.h (struct c_common_identifier): Use gengtype.
596 * c-decl.h (c_mark_tree): Delete.
597 * c-lang.c (LANG_HOOKS_MARK_TREE): Delete.
598 * c-tree.h (struct lang_identifier): Use gengtype.
599 (union lang_tree_node): New.
600 (c_mark_tree): Delete prototype.
33005162 601 * dwarf2out.c [!DWARF2_DEBUGGING_INFO]: Define dummy
e2500fed
GK
602 dwarf2_debug_hooks.
603 * gengtype-lex.l (IWORD): Allow 'bool'.
604 (ptr_alias): Match.
605 * gengtype-yacc.y (ALIAS): New token.
606 (type_option): New rule.
607 (option): Use type_option.
608 * gengtype.c (process_gc_options): New.
609 (set_gc_used_type): Use it.
610 (write_gc_structure_fields): Add 'bitmap' parameter, change callers.
611 Add new variable 't' to hold the type of the field being processed.
612 Add more error checking. Use UNION_P when looking at 'desc' option.
613 Handle language-specific structures containing other
614 language-specific structures.
615 (write_gc_types): Handle 'ptr_alias' option.
616 (main): Don't need to specially output lang_type, lang_decl, lang_id2.
617 * ggc-common.c (ggc_pending_trees): Delete.
618 (ggc_mark_roots): Don't manipulate ggc_pending_trees.
619 (ggc_mark_trees): Delete.
620 (gt_ggc_m_tree_node): Delete.
621 * ggc.h (ggc_pending_trees): Delete.
622 (ggc_mark_tree): Make alias of gt_ggc_m_tree_node.
623 * hashtable.h (ht_identifier): Use gengtype.
624 * langhooks-def.h (LANG_HOOKS_MARK_TREE): Delete.
625 * langhooks.h (struct lang_hooks): Delete mark_tree.
626 * sdbout.c [! SDB_DEBUGGING_INFO]: Define dummy sdb_debug_hooks
627 anyway.
628 * system.h: Poison LANG_HOOKS_MARK_TREE.
629 * tree.c (tree_node_structure): New.
630 * tree.h (struct tree_common): Use gengtype.
631 (struct tree_int_cst): Likewise.
632 (struct tree_real_cst): Likewise.
633 (struct tree_string): Likewise.
634 (struct tree_complex): Likewise.
635 (struct tree_vector): Likewise.
636 (struct tree_identifier): Likewise.
637 (struct tree_list): Likewise.
638 (struct tree_vec): Likewise.
639 (struct tree_exp): Likewise.
640 (struct tree_block): Likewise.
641 (struct tree_type): Likewise.
642 (struct tree_decl): Likewise.
643 (enum tree_structure_enum): New.
644 (union tree_node): Use gengtype, with an alias.
645 (tree_node_structure): Prototype.
646 * objc/objc-lang.c (LANG_HOOKS_MARK_TREE): Delete.
647
648 Merge to tag pch-merge-20020430. The LANG_HOOKS_FUNCTION_MARK
649 macro was deleted. The LANG_HOOKS_FUNCTION_FREE macro was renamed
650 to LANG_HOOKS_FUNCTION_FINAL.
651 * Makefile.in (GTFILES): Add bitmap.h.
652 * except.c (struct eh_region): Mark field 'aka' to be skipped.
653
654 * config/alpha/alpha.c [TARGET_ABI_UNICOSMK]
655 (alpha_init_machine_status): Give proper type.
656 * Makefile.in (c-lang.o): Depend on gtype-c.h.
657 (optabs.o): Depend on gt-optabs.h.
658 (GTFILES): Add optabs.o.
659 (gt-optabs.h): Add rule.
660 * optabs.c: Include gt-optabs.h.
661
662 * gengtype.c (set_gc_used_type): Correct some errors in last change.
663 (write_gc_structure_fields): If a field which should be NULL is
664 not, abort.
665 * c-pragma.c: Move struct align_stack and variable alignment_stack
666 out from the ifdef.
667
668 * config/xtensa/t-xtensa: Add dependencies for gt-xtensa.h.
669 * config/xtensa/xtensa.c: Include gt-cris.h.
670 (struct machine_function): Use gengtype to mark.
671 * config/mmix/mmix.h (struct machine_function): Use gengtype
672 to mark.
673 * config/cris/t-cris: Add dependencies for gt-cris.h.
674 * config/cris/cris.c: Include gt-cris.h.
675 (struct machine_function): Use gengtype to mark.
676 * config/rs6000/rs6000.h (struct machine_function): Use gengtype
677 to mark.
678 * doc/tm.texi (Per-Function Data): Delete references to
679 mark_machine_status.
680 * config/ia64/ia64.c (ia64_override_options): Don't set
681 mark_machine_status.
682 * config/i386/i386.c (override_options): Likewise.
683 * config/d30v/d30v.c (d30v_init_expanders): Likewise.
684 * config/arm/arm.c (arm_init_expanders): Likewise.
685 * config/alpha/alpha.c (override_options): Likewise.
33005162 686 * gengtype.h (enum gc_used_enum): Add GC_MAYBE_POINTED_TO.
e2500fed
GK
687 * gengtype.c (set_gc_used_type): Handle 'maybe_null' option.
688 (write_gc_structure_fields): Don't handle 'really' option.
689 Handle 'maybe_null' option.
690 (write_gc_types): Handle 'maybe_null' option.
691 * function.h (struct function): Don't use "really".
692 (mark_machine_status): Delete declaration.
693 (mark_lang_status): Delete declaration.
694 (gt_ggc_mr_machine_function): Delete prototype.
695 (gt_ggc_mr_language_function): Delete prototype.
696 * function.c (mark_machine_status): Delete.
697 (mark_lang_status): Delete.
698 (gt_ggc_mr_machine_function): Delete.
699 (gt_ggc_mr_language_function): Delete.
700 * c-tree.h (mark_c_function_context): Delete prototype.
701 * c-objc-common.c (c_objc_common_init): Don't set mark_lang_status.
702 * c-decl.c (struct language_function): Rename from struct
703 c_language_function. Update uses. Use gengtype to mark.
704 (mark_c_function_context): Delete.
705 * c-common.h (struct c_language_function): Rename from struct
706 language_function.
707 (mark_stmt_tree): Delete prototype.
708 (c_mark_lang_decl): Delete prototype.
709 (mark_c_language_function): Delete prototype.
710 * c-common.c (mark_stmt_tree): Delete.
711 (c_mark_lang_decl): Delete.
712 (mark_c_language_function): Delete.
713
714 * gengtype.h (enum typekind): Add TYPE_LANG_STRUCT.
715 (lang_bitmap): New typedef. Use where appropriate.
716 (struct type): Add gc_used field, lang_struct field.
717 (UNION_P): New macro.
718 (new_structure): New prototype.
719 (find_structure): Remove 'pos' parameter. Change all callers.
720 * gengtype-lex.l: Update for changes to find_structure.
721 * gengtype-yacc.y (typedef_struct): Use new_structure.
722 (yacc_ids): Suppress warning.
723 (type): Use new_structure.
724 * gengtype.c (string_type): Update for changes to struct type.
725 (find_structure): Just find a structure, don't worry about
726 creating one.
727 (new_structure): New.
728 (note_yacc_type): Use new_structure.
729 (set_gc_used_type): New.
730 (set_gc_used): New.
731 (write_gc_structure_fields): Allow for pointers to TYPE_LANG_STRUCT.
732 (write_gc_types): Handle TYPE_LANG_STRUCT.
733 (write_gc_marker_routine_for_structure): New.
734 (main): Call set_gc_used. Add some calls to set_gc_used_type
735 for places where GCC doesn't use gengtype properly yet.
736 * ggc.h (gt_ggc_m_rtx_def): Don't prototype.
737 (gt_ggc_m_tree_node): Likewise.
738
739 * varasm.c (copy_constant): Call expand_constant if we hit
740 something we can't recognise.
741
742 * ggc-common.c (ggc_mark_rtvec_children): Delete.
743 (ggc_mark_rtx_children): Use generic name for ggc_mark_rtvec.
744 (lang_mark_false_label_stack): Delete.
745 * rtl.h (struct rtvec_def): Use gengtype to mark.
746 * ggc.h (ggc_mark_rtvec): Delete.
747 (gt_ggc_m_rtvec_def): Delete.
748 (ggc_mark_nonnull_tree): Delete.
749 (ggc_mark_rtvec_children): Delete prototype.
750 (lang_mark_false_label_stack): Delete declaration.
751
752 * gengtype.h (note_yacc_type): Add prototype.
753 * gengtype.c (note_yacc_type): New function.
754 * gengtype-lex.l: Add lexer support for yacc files.
755 * gengtype-yacc.y (start): Extract union from yacc files.
756 (yacc_union): New rule.
757 (yacc_typematch): New rule.
758 (yacc_ids): New rule.
759 (enum_items): Tweak for efficiency.
760 (optionseq): Likewise.
761
762 * c-common.h (struct language_function): Use gengtype.
763 (struct c_lang_decl): Likewise.
764 * c-tree.h (struct lang_decl): Likewise.
765 (struct lang_type): Likewise.
766 * c-decl.c (lang_mark_tree): Use generated marker routines to mark
767 tree language substructures.
768
769 * stringpool.c (mark_ident): Replace ggc_mark_nonnull_tree with
770 ggc_mark_tree.
771 * dwarf2asm.c (mark_indirect_pool_entry): Likewise.
772
773 * varasm.c (struct rtx_const): Remove 'skip' tags for scalar arrays.
774
775 * stmt.c (struct nesting): Add discriminator. Use gengtype to
776 mark. Remove 'data.block.cleanup_ptr' field.
777 (struct stmt_status): Use usual technique to mark struct nesting.
778 (gt_ggc_mr_nesting_cond): Delete.
779 (gt_ggc_mr_nesting_loop): Delete.
780 (gt_ggc_mr_nesting_block): Delete.
781 (gt_ggc_mr_nesting_case_stmt): Delete.
782 (expand_start_cond): Set discriminator.
783 (expand_start_loop): Likewise.
784 (expand_start_null_loop): Likewise.
785 (expand_start_bindings_and_block): Set discriminator. Don't set
786 deleted fields.
787 (expand_decl_cleanup): Replace 'cleanup_ptr' with
788 &thisblock->data.block.cleanups.
789 (expand_start_case): Set discriminator.
790 (expand_start_case_dummy): Set discriminator.
791
792 * ggc-callbacks.c: Remove.
793
794 * gengtype.h (struct type): Add 'u.s.bitmap' field.
795 (find_structure): Add 'pos' parameter.
796 * gengtype-lex.l: Update callers to find_structure.
797 * gengtype-yacc.y: Likewise.
798 * gengtype.c (find_structure): Allow for structures to be defined
799 in multiple language backends.
800 (get_output_file_with_visibility): Include debug.h in gtype-desc.c.
801 (counter): Rename to gc_counter.
802 (write_gc_structure_fields): Fail when writing out fields for
803 an incomplete structure. Ignore arrays of scalars. Handle
804 'tree_vec' special.
805 (write_gc_types): Reset counter for each procedure written.
806
807 * stmt.c (add_case_node): Use GGC to allocate struct case_node.
808 (free_case_nodes): Delete.
809 (expand_end_case_type): Delete call to free_case_nodes.
810
811 * Makefile.in (cselib.o): Include gt-<filename>.h.
812 (gcse.o): Likewise.
813 (profile.o): Likewise.
814 (alias.o): Likewise.
815 (GTFILES): Add alias.c, cselib.c, gcse.c, profile.c, and
816 alphabetize backend files.
817 (gt-alias.h, gt-cselib.h, gt-gcse.h, gt-profile.h): New rules.
818 * alias.c: Use gengtype for roots.
819 * c-common.h (struct stmt_tree_s): Use gengtype.
820 * c-decl.c: Use gengtype for roots.
821 * cselib.c: Use gengtype for roots.
822 * expr.c: Use gengtype for roots.
823 * fold-const.c: Use gengtype for roots.
824 * gcse.c: Use gengtype for roots.
825 * gengtype-lex.l: Handle typedefs of function types.
826 Allow for empty array bounds.
827 Allow processing to stop on initialisers.
828 * gengtype-yacc.y (externstatic): Stop processing on initialisers.
829 (semiequal): New rule.
830 * gengtype.c (create_file): Tidy output files.
831 (get_output_file_with_visibility): Fix paren warning. Fix bug
832 involving multiple input files mapping to one output file.
833 (write_gc_structure_fields): Skip arrays of scalars.
834 (write_gc_types): Tidy output files.
835 (write_gc_root): New function.
836 (write_gc_roots): Fix bugs, add support for roots that are
837 structures.
838 * ggc-common.c (ggc_mark_rtx_ptr): Delete.
839 (ggc_mark_tree_ptr): Delete.
840 (ggc_add_rtx_root): Delete.
841 (ggc_add_tree_root): Delete.
842 (ggc_del_root): Delete.
843 * integrate.c (get_func_hard_reg_initial_val): Use ggc_alloc to
844 allocate struct initial_value_struct.
845 * profile.c: Use gengtype for roots.
846 * sdbout.c: Use gengtype for roots.
847 * varasm.c (mark_weak_decls): Delete unused prototype.
848 (mark_const_hash_entry): Delete unused function.
849 * config/darwin-protos.h: Use gengtype for roots.
850 (machopic_add_gc_roots): Delete.
851 * config/arm/arm.c: Use gengtype for roots.
852 * config/arm/arm.h: Use gengtype for roots.
853 * config/c4x/c4x-protos.h: Use gengtype for roots.
854 * config/c4x/c4x.c (c4x_add_gc_roots): Delete.
855 * config/d30v/d30v-protos.h: Use gengtype for roots.
856 * config/d30v/d30v.c (d30v_add_gc_roots): Delete.
857 * config/dsp16xx/dsp16xx.c (override_options): Use gengtype for roots.
858 * config/dsp16xx/dsp16xx.h: Use gengtype for roots.
859 * config/ia64/ia64-protos.h: Use gengtype for roots.
860 * config/ia64/ia64.c (ia64_add_gc_roots): Delete.
861 * config/m68hc11/m68hc11-protos.h: Use gengtype for roots.
862 * config/m68hc11/m68hc11.c (z_reg): Make global.
863 (z_reg_qi): Make global.
864 (m68hc11_add_gc_roots): Delete.
865 * config/mcore/mcore-protos.h: Use gengtype for roots.
866 * config/mcore/mcore.c (mcore_add_gc_roots): Delete.
867 * config/mips/mips.c (mips_add_gc_roots): Delete.
868 * config/mips/mips.h: Use gengtype for roots.
869 * config/mmix/mmix.c (override_options): Use gengtype for roots.
870 * config/mmix/mmix.h: Use gengtype for roots.
871 * config/mn10200/mn10200.c (asm_file_start): Use gengtype for roots.
872 * config/mn10200/mn10200.h: Use gengtype for roots.
873 * config/pa/pa.c: Use gengtype for roots, marking.
874 (struct deferred_plabel): Use GGC, gengtype.
875 (pa_add_gc_roots): Delete.
876 (mark_deferred_plabels): Delete.
877 * config/pj/pj-protos.h: Use gengtype for roots.
878 * config/pj/pj.h (OVERRIDE_OPTIONS): Don't define.
879 * config/rs6000/rs6000.c: Use gengtype for roots. Don't call
880 machopic_add_gc_roots.
881 * config/rs6000/rs6000.h: Use gengtype for roots.
882 * config/rs6000/t-darwin (darwin.o): Add dependency on gt-darwin.h.
883 (gt-darwin.h): Add rule.
884 * config/sh/sh.c: Use gengtype for roots.
885 * config/sh/t-sh ($(out_object_file)): Add dependency on gt-sh.h.
886 (gt-sh.h): Add rule.
887 * config/sparc/sparc.c: Use gengtype for roots.
888 (sparc_add_gc_roots): Delete.
889 (struct ultrasparc_pipeline_state): Use GGC, gengtype.
890 (mark_ultrasparc_pipeline_state): Delete.
891 * config/sparc/sparc.h: Use gengtype for roots.
892
893 * Makefile.in (c-parse.o): Update dependencies.
894 (c-common.o): Likewise.
895 (GTFILES): Add c-common.h, c-tree.h, c-common.c, c-parse.in.
896 Add dependencies for the files they generate.
897 * c-common.c: Replace ggc_add_* uses with GTY annotations.
898 * c-common.h: Likewise.
899 * c-decl.c: Likewise.
900 (gt_ggc_mp_binding_level): Delete.
901 * c-lang.c: Include gtype-c.h.
902 * c-parse.in: Replace ggc_add_* uses with GTY annotations. Include
903 gt-c-parse.h.
904 * c-pragma.h: Replace ggc_add_* uses with GTY annotations.
905 (gt_ggc_mp_align_stack): Delete.
906 * c-tree.h: Replace ggc_add_* uses with GTY annotations.
907 * function.c: Replace ggc_add_* uses with GTY annotations.
908 (gt_ggc_mp_function): Delete.
909 * function.h: Replace ggc_add_* uses with GTY annotations.
910 * gengtype.c (lang_names): New.
911 (NUM_BASE_FILES): New.
912 (open_base_files): Create language base files.
913 (startswith): New.
914 (get_file_basename): New.
915 (get_base_file_bitmap): New.
916 (get_output_file_with_visibility): Rename from get_output_file.
917 Add more mappings for various C/Objc filenames.
918 (finish_root_table): New.
919 (write_gc_roots): Handle dependencies and scoping properly.
920 * gengtype.h: Add prototypes for new functions.
921 * ggc-common.c (struct deletable_root): Delete.
922 (deletables): Delete.
923 (ggc_add_deletable_root): Delete.
924 (ggc_mark_roots): No need to deal with deleted functionality.
925 * ggc.h (ggc_add_deletable_root): Delete prototype.
926 * objc/Make-lang.in (objc-act.o): Add gtype-objc.h dependency.
927 (gtype-objc.h): Add rule to create.
928 * objc/config-lang.in (gtfiles): New.
929 * objc/objc-act.c: Allocate imp_list using GGC. Replace uses of
930 ggc_add_* with GTY markers. Include gtype-objc.h.
931 (ggc_mark_imp_list): Delete.
932 * objc/objc-act.h: Replace uses of ggc_add_* with GTY markers.
933 * objc/objc-lang.c: Random Whitespace Change.
934
935 * except.h (exception_handler_labels): Delete.
936 (get_exception_handler_labels): New.
937 * except.c (exception_handler_labels): Delete.
938 (struct eh_status): Add exception_handler_labels field.
939 (doing_eh): Don't add exception_handler_labels as root.
940 (free_eh_status): Don't need to free exception_handler_labels.
941 (get_exception_handler_labels): New.
942 (find_exception_handler_labels): Update for move of
943 exception_handler_labels.
944 (remove_exception_handler_label): Likewise.
945 * cfgrtl.c (can_delete_label_p): Use get_exception_handler_labels.
946 * jump.c (rebuild_jump_labels): Likewise.
947 * loop.c (find_and_verify_loops): Likewise.
948 * sched-rgn.c (is_cfg_nonregular): Likewise.
949
950 * gengtype.c (write_gc_structure_fields): Handle variable-length
951 TYPE_ARRAYs.
952
953 * varasm.c (struct weak_syms): Use GGC, gengtype.
954 (mark_weak_decls): Delete.
955 (weak_decls): Likewise.
956 (add_weak): Likewise.
957 (remove_from_pending_weak_list): Likewise.
958 (init_varasm_once): Likewise.
959
960 * Makefile.in (gtype-desc.o): Add libfuncs.h dependency.
961 (GTFILES): Add tree.h, libfuncs.h, emit-rtl.c, explow.c,
962 stor-layout.c, regclass.c, and lists.c.
963 Add dependencies of gt-emit-rtl.h gt-explow.h gt-stor-layout.h
964 gt-regclass.h and gt-lists.h on s-gtype.
965 * emit-rtl.c: Use gengtype for roots. Include gt-emit-rtl.h.
966 * except.c: Use gengtype for roots.
967 * explow.c: Use gengtype for roots. Include gt-explow.h.
968 * expr.h (init_stor_layout_once): Delete prototype.
969 * function.c: Use gengtype for roots.
970 * gengtype-lex.l: Add ENT_EXTERNSTATIC lexing.
971 * gengtype-yacc.y (start): Can also be an externstatic.
972 (externstatic): New production.
973 (struct_fields): Correct array bounds inversion for 2-d arrays.
974 * gengtype.c (variables): New variable.
975 (note_variable): New function.
976 (get_output_file): Include libfuncs.h into gtype-desc.c.
977 (get_output_file_name): New function.
978 (write_gc_structure_fields): Suppress warnings.
979 (write_gc_types): Make static.
980 (put_mangled_filename): New function.
981 (write_gc_roots): New function.
982 (main): Call write_gc_roots.
983 * gengtype.h (note_variable): Prototype.
984 (get_output_file_name): Prototype.
985 (write_gc_types): Delete prototype.
986 * ggc.h: Clean up unnecessary structure predefinitions.
987 (struct ggc_root_tab): Define.
988 (gt_ggc_m_rtx_def): Make function, not macro.
989 (gt_ggc_m_tree_node): Likewise.
990 * libfuncs.h: Use gengtype for roots.
991 * lists.c: Use gengtype for roots. Include gt-lists.h.
992 (init_EXPR_INSN_LIST_cache): Delete.
993 * optabs.c: Use gengtype for roots.
994 (gt_ggc_mp_optab): Delete.
995 * optabs.h: Use gengtype for roots.
996 * regclass.c: Use gengtype for roots. Include gt-regclass.h.
997 * rtl.h: Use gengtype for roots.
998 (init_EXPR_INSN_LIST_cache): Delete prototype.
999 * stor-layout.c: Use gengtype for roots.
1000 Include gt-stor-layout.h.
1001 (init_stor_layout_once): Delete.
1002 * toplev.c: Use gengtype for roots. Delete calls to deleted
1003 routines.
1004 * tree.c: Use gengtype for roots.
1005 * tree.h: Use gengtype for roots.
1006 * varasm.c: Use gengtype for roots.
33005162 1007
e2500fed
GK
1008 * Makefile.in (GTFILES): Add @all_gtfiles@.
1009 * configure: Regenerate.
1010 * configure.in: Construct all_gtfiles from the gtfiles definitions
1011 in config-lang.in.
1012 * gengtype-yacc.y (type): Warn about duplicate structure names.
1013 * gengtype.c (get_output_file): Handle .c files in language
1014 subdirectories.
1015
1016 * Makefile.in (GTFILES): Run gengtype on all the config files
1017 and on the target .c file.
1018 * except.c (mark_eh_region): Delete.
1019 (init_eh_for_function): Use GGC on struct eh_status.
1020 (mark_eh_status): Delete.
1021 (free_eh_status): Use GGC.
1022 (expand_eh_region_start): Use GGC to
1023 (collect_eh_region_array): Allocate last_region_number using GGC.
1024 (duplicate_eh_region_1): Use GGC to allocate struct eh_region.
1025 (remove_eh_handler): Let GGC free struct eh_region.
1026 (add_call_site): Use GGC to reallocate call_site_record array.
1027 * function.c (init_machine_status): Update calling sequence.
1028 (mark_machine_status): Likewise.
1029 (mark_lang_status): Likewise.
1030 (prepare_function_start): Update init_machine_status call.
1031 (mark_function_status): Delete.
1032 (maybe_mark_struct_function): Delete.
1033 (ggc_mark_struct_function): Delete.
1034 (gt_ggc_mp_function): New.
1035 (gt_ggc_mr_machine_function): New.
1036 (gt_ggc_mr_language_function): New.
1037 (init_function_once): Use canonical names.
1038 * function.h (struct function): Use gengtype.
1039 (init_machine_status): Return the structure.
1040 (mark_machine_status): Take a 'void *'.
1041 (mark_lang_status): Likewise.
1042 * ggc-common.c (ggc_mark_trees): Use canonical name for
1043 ggc_mark_struct_function.
1044 * tree.h (ggc_mark_struct_function): Delete prototype.
1045 * config/alpha/alpha.c (alpha_mark_machine_status): Delete.
1046 (alpha_init_machine_status): Likewise.
1047 (override_options): Use canonical name for alpha_mark_machine_status.
1048 * config/alpha/unicosmk.h (struct machine_function): Use gengtype.
1049 * config/arm/arm.h (struct machine_function): Use gengtype.
1050 * config/arm/arm.c (arm_mark_machine_status): Delete.
1051 (arm_init_machine_status): Update calling sequence.
1052 (arm_init_expanders): Use canonical name for arm_mark_machine_status.
33005162 1053 * config/cris/cris.c (cris_init_machine_status): Update
e2500fed
GK
1054 calling sequence.
1055 * config/d30v/d30v.h (struct machine_function): Use gengtype.
33005162 1056 * config/d30v/d30v.c (d30v_init_machine_status): Update
e2500fed
GK
1057 calling sequence.
1058 (d30v_mark_machine_status): Delete.
1059 * config/i386/i386.c: Include gt-i386.h.
1060 (struct machine_function): Use gengtype.
1061 (ix86_init_machine_status): Update calling sequence.
1062 (ix86_mark_machine_status): Delete.
1063 (override_options): Use canonical namke for ix86_mark_machine_status.
1064 * config/ia64/ia64.h (struct machine_function): Use gengtype.
33005162 1065 * config/ia64/ia64.c (ia64_init_machine_status): Update calling
e2500fed
GK
1066 sequence.
1067 (ia64_mark_machine_status): Delete.
33005162 1068 (ia64_override_options): Use canonical name for
e2500fed 1069 ia64_mark_machine_status.
33005162 1070 * config/mmix/mmix.c (mmix_init_machine_status): Update calling
e2500fed
GK
1071 sequence.
1072 * config/rs6000/rs6000.c (rs6000_init_machine_status): Likewise.
1073 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
1074 * gengtype.c (get_output_file): Fix warning.
1075 (main): Add prototype to suppress warning.
1076 * tree.c: Remove tree_hash_mark prototype.
1077
1078 * tree.h (init_stmt): Delete prototype.
1079 * toplev.c (lang_independent_init): Don't call init_stmt.
1080 * stmt.c (ALLOC_NESTING): Use GGC for 'struct nesting'.
1081 (stmt_obstack): Delete.
1082 (POPSTACK): No need to free 'struct nesting'.
1083 (gt_ggc_mr_nesting_cond): Use canonical names.
1084 (gt_ggc_mr_nesting_loop): Use canonical names.
1085 (gt_ggc_mr_nesting_block): Use canonical names.
1086 (gt_ggc_mr_nesting_case_stmt): Use canonical names.
1087 (mark_stmt_status): Delete.
1088 (init_stmt): Delete.
1089 (clear_last_expr): Clear both last_expr_type and last_expr_value.
1090 Use it everywhere that last_expr_type was cleared.
1091 * lists.c (init_EXPR_INSN_LIST_cache): Use ggc_add_deletable_root.
1092 (zap_lists): Delete.
1093 * ggc.h (ggc_add_deletable_root): Prototype.
1094 (mark_stmt_status): Remove prototype.
1095 * ggc-common.c (ggc_add_deletable_root): New.
1096 (ggc_mark_roots): Handle deletable roots.
1097 * function.c (ggc_mark_struct_function): Use canonical name
1098 for mark_stmt_status.
1099 * emit-rtl.c (free_sequence_stack): New.
1100 (start_sequence): Use a freelist for sequences.
1101 (end_sequence): Likewise.
1102 (init_emit_once): Add free_sequence_stack as a deleteable root.
1103 * c-pragma.c Include gt-c-pragma.h.
1104 (struct align_stack): Use gengtype.
1105 (push_alignment): Use GGC for struct align_stack.
1106 (mark_align_stack): Delete.
1107 (gt_ggc_mp_align_stack): New.
1108 (init_pragma): Use canonical name for mark_align_stack.
1109 * c-decl.c: Include gt-c-decl.h.
1110 (struct binding_level): Use gengtype.
1111 (make_binding_level): Use GGC; handle the freelist here.
1112 (pop_binding_level): New.
1113 (pushlevel): Move code into make_binding_level.
1114 (push_label_level): Likewise.
1115 (poplevel): Move code into pop_binding_level.
1116 (pop_label_level): Likewise.
1117 (mark_binding_level): Delete.
1118 (gt_ggc_mp_binding_level): New.
1119 (c_init_decl_processing): Use canonical name for mark_binding_level.
1120 Add free_binding_level as deletable root.
1121 (mark_c_function_context): Use canonical name for mark_binding_level.
1122 * Makefile.in (c-decl.o): Add gt-c-decl.h.
1123 (c-pragma.o): Add gt-c-pragma.h.
1124 (GTFILES): Add c-decl.c and c-pragma.c.
1125 (gt-c-decl.h, gt-c-pragma.h): Create using gengtype.
1126
1127 * tree.c (struct type_hash): Use gengtype.
1128 (init_obstacks): Use canonical name for type_hash_mark.
1129 (type_hash_mark): Delete.
1130 Include gt-tree.h.
1131 * rtl.h (struct mem_attrs): Use gengtype.
1132 * optabs.h (struct optab): Use gengtype.
1133 * optabs.c (expand_binop): Squish signed/unsigned warning.
1134 (mark_optab): Make local, use canonical name, use autogenerated
1135 marker procedure.
1136 (init_optabs): Use canonical name for mark_optab.
1137 (new_optab): Use GGC to allocate optabs.
1138 * ggc.h: Delete mark_optab prototype.
1139 * ggc-common.c (ggc_mark_rtx_children): Use canonical name for
1140 mem_attrs marker procedure.
1141 * gengtype.c (get_output_file): Include headers in gtype-desc.c
1142 explicitly rather than deducing them from file names.
1143 (write_gc_structure_fields): Handle arrays of structures.
1144 (main): Return non-zero exit code if errors occur during output.
1145 * emit-rtl.c (mem_attrs_mark): Delete.
1146 (init_emit_once): Use canonical name for mem_attrs marker procedure.
1147 * Makefile.in (gtype-desc.o): Explicitly name dependencies.
1148 (tree.o): Depend on gt-tree.h.
1149 (GTFILES): Add rtl.h, optabs.h, tree.c.
1150 (gt-tree.h): Add it to s-gtype rule.
1151
1152 * .cvsignore: Ignore gengtype flex/bison generated files.
1153 * Makefile.in (GGC_H): Add gtype-desc.h.
1154 (OBJS): Add gtype-desc.o.
1155 (GEN): Add gengtype.
1156 (STAGESTUFF): Add gengtype.
1157 (varasm.o): Add gt-varasm.h.
1158 (stmt.o): Add gt-stmt.h.
1159 (except.o): Add gt-except.h.
1160 (integrate.o): Add gt-integrate.h.
1161 (GTFILES): New.
1162 Add new rules for new files.
1163 * configure: Regenerate.
1164 * configure.in: Correct defaults.h paths.
1165 * emit-rtl.c (mark_sequence_stack): Delete.
1166 (mark_emit_status): Delete.
1167 (start_sequence): Allocate sequence structures using GGC.
1168 (end_sequence): Allocate sequence structures using GGC.
1169 * except.c: Use gengtype for various structures. Include
1170 gt-except.h.
1171 * expr.c (mark_expr_status): Delete.
1172 * function.c: Use gengtype for various structures. Include
1173 gt-function.h.
1174 (mark_function_status): Use standard gt_ggc names for marker functions.
1175 (ggc_mark_struct_function): Likewise.
1176 * function.h: Use gengtype for various structures.
1177 * gengtype-lex.l: New file.
1178 * gengtype-yacc.y: New file.
1179 * gengtype.c: New file.
1180 * gengtype.h: New file.
1181 * ggc.h: Include gtype-desc.h. Alias some marker procedures to
1182 the standard names. Remove some now-unnecessary prototypes.
1183 * integrate.c: Use gengtype for various structures. Include
1184 gt-integrate.h.
1185 (mark_hard_reg_initial_vals): Delete.
1186 * integrate.h (mark_hard_reg_initial_vals): Delete.
1187 * stmt.c: Use gengtype for various structures. Include
1188 gt-stmt.h.
1189 (mark_case_node): Delete.
1190 (mark_goto_fixup): Delete.
1191 (mark_stmt_status): Use standard gt_ggc names for marker functions.
1192 * system.h: Define GTY to empty. In flex/bison files,
1193 don't poison malloc or realloc, instead just define them to
1194 xmalloc and xrealloc.
1195 * varasm.c: Use gengtype for various structures. Include
1196 gt-varasm.h. Use standard gt_ggc names for marker functions.
1197 (mark_pool_constant): Delete.
1198 (mark_varasm_status): Delete.
1199 (decode_rtx_const): #if 0 out non-typesafe hack.
1200
1201 * function.h (free_lang_status): Mark as obsolete.
1202 * function.c (free_lang_status): Mark as obsolete.
1203 * c-decl.c (push_c_function_context): Use GC to allocate and free
1204 struct language_function.
1205 (pop_c_function_context): Likewise.
1206 * c-common.c (mark_c_language_function): Mark struct
1207 language_function.
1208
1209 * doc/tm.texi (Per-Function Data): Don't document free_machine_status.
1210 Document that the machine_function structures must be allocated
1211 using GC. Update mark_machine_status documentation.
1212 * function.h: Don't declare free_machine_status.
33005162 1213 * function.c (free_machine_status): Don't define.
e2500fed
GK
1214 (free_after_compilation): Don't call free_machine_status.
1215 (ggc_mark_struct_function): Mark f->machine. Call
1216 mark_machine_status only on non-NULL pointers.
1217 * system.h: Poison free_machine_status.
1218 * config/xtensa/xtensa.c (xtensa_init_machine_status): Use GC on
1219 struct machine_function.
1220 (xtensa_free_machine_status): Delete.
1221 (override_options): Don't set free_machine_status.
1222 * config/rs6000/rs6000.c (rs6000_override_options): Don't set
1223 free_machine_status.
1224 (rs6000_init_machine_status): Use GC on struct machine_function.
1225 (rs6000_free_machine_status): Delete.
1226 * config/ia64/ia64.c (ia64_init_machine_status): Use GC on struct
1227 machine_function.
1228 (ia64_mark_machine_status): Likewise.
1229 (ia64_free_machine_status): Delete.
1230 (ia64_override_options): Don't set free_machine_status.
1231 * config/i386/i386.c (override_options): Don't set
1232 free_machine_status.
1233 (ix86_init_machine_status): Use GC on struct machine_function.
1234 (ix86_mark_machine_status): Likewise.
1235 (ix86_free_machine_status): Delete.
1236 * config/d30v/d30v.c: (d30v_init_machine_status): Use GC on struct
1237 machine_function.
1238 (d30v_mark_machine_status): Likewise.
1239 (d30v_free_machine_status): Delete.
1240 (d30v_init_expanders): Don't set free_machine_status.
1241 * config/arm/arm.c (arm_mark_machine_status): Use GC on struct
1242 machine_function.
1243 (arm_init_machine_status): Likewise.
1244 (arm_free_machine_status): Delete.
1245 (arm_init_expanders): Don't set free_machine_status.
1246 * config/alpha/alpha.c (override_options): Don't set
1247 free_machine_status.
1248 (alpha_init_machine_status): Use GC on struct machine_function.
1249 (alpha_mark_machine_status): Likewise.
1250 (alpha_free_machine_status): Delete.
1251
1252 * varasm.c (compare_constant): Fix typo.
1253
1254 * varasm.c: Don't include obstack.h.
1255 (struct varasm_status): x_const_rtx_hash_table is a hash of rtxes.
1256 (struct rtx_const): Give substructures names, improve formatting.
1257 (struct constant_descriptor): Delete.
1258 (struct constant_descriptor_tree): New, based on constant_descriptor.
1259 (const_hash_table): Is a hash table of trees.
1260 (mark_const_hash_entry): Is used for hashes of trees. Mark
1261 constant_descriptor_tree structure.
1262 (mark_const_str_htab_1): Mark deferred_string structure.
1263 (compare_constant): Rewrite to compare trees.
1264 (compare_constant_1): Delete.
1265 (record_constant): Delete.
1266 (record_constant_1): Delete.
1267 (output_constant_def): Use struct constant_descriptor_tree.
1268 Don't duplicate trees twice.
1269 (struct constant_descriptor_rtx): New.
1270 (struct pool_constant): Used for rtx constants.
1271 (init_varasm_status): Update for change to struct varasm_status.
1272 (mark_varasm_status): Likewise.
1273 (free_varasm_status): Delete.
1274 (compare_constant_rtx): Rewrite to handle constant_descriptor_rtx.
1275 (record_constant_rtx): Likewise.
1276 (mem_for_const_double): Update to use struct constant_descriptor_rtx.
1277 (force_const_mem): Likewise.
1278 * Makefile.in (varasm.o): Doesn't depend on obstack.h.
1279 * function.c (free_after_compilation): Don't use free_varasm_status.
1280 * function.h: Don't prototype free_varasm_status.
1281
1282 * ggc-common.c (ggc_realloc): Handle X being NULL.
1283
1284 * ggc-common.c (ggc_realloc): New function.
1285 * ggc.h: Prototype it.
1286 * emit-rtl.c (free_emit_status): Delete.
1287 (init_emit): Allocate emit subarrays using GC.
1288 (gen_reg_rtx): Reallocate subarrays using GC.
1289 (init_emit): Use GC to allocate 'struct emit_status' and its
1290 subarrays.
1291 (mark_emit_status): Mark structure and its subarrays.
1292 * stmt.c (free_stmt_status): Delete.
1293 * expr.c (free_expr_status): Delete.
1294 * function.h: Remove prototypes for deleted functions.
1295 * function.c (free_after_compilation): Don't use deleted functions.
1296 Don't call free() on x_parm_reg_stack_loc.
1297 (free_after_parsing): Don't use free_stmt_status.
1298 (assign_parms): Use GC to allocate and resize x_parm_reg_stack_loc.
1299 (mark_function_status): Mark x_parm_reg_stack_loc.
1300
1301 * varasm.c (init_varasm_status): Use GC to allocate
1302 'struct varasm_status' and its fields x_const_rtx_hash_table
1303 and x_const_rtx_sym_hash_table.
1304 (mark_varasm_status): Mark them.
1305 (free_varasm_status): Use GC to free them.
1306 * expr.c (init_expr): Use GC to allocate 'struct expr_status'.
1307 (mark_expr_status): Mark the structure itself.
1308 (free_expr_status): Use GC to free the structure.
1309 * stmt.c (free_stmt_status): Use GC to free 'struct stmt_status'.
1310 (mark_stmt_status): Mark the 'struct stmt_status' itself.
1311 (init_stmt_for_function): Allocate the structure for GC.
1312
1313 * dwarf2out.c (lookup_type_die): Use TYPE_SYMTAB_DIE.
1314 (equate_type_number_to_die): Likewise.
1315 * tree.h (TYPE_SYMTAB_DIE): New macro.
1316 (struct die_struct): Predeclare.
1317 (struct tree_type): Add field symtab.die. Add a tag
1318 to the union type of field symtab.
1319
1320 * varray.h (VARRAY_RTVEC_INIT): A varray of rtvec contains
1321 'struct rtvec_def *', not 'struct rtvec_def'.
1322
1323 * function.h (original_arg_vector): Make a real rtvec.
1324 * function.c (ggc_mark_struct_function): Adjust.
1325 * integrate.c (expand_inline_function): Adjust.
1326
b655555e
JT
13272002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
1328
1329 * config.gcc (sh5-*-netbsd*, sh5l*-*-netbsd*)
1330 (sh64-*-netbsd*, sh64l*-*-netbsd*): New targets.
1331 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN)
1332 (TARGET_VERSION_CPU): Define according to the
1333 default target.
1334 (TARGET_VERSION): Use TARGET_VERSION_ENDIAN and
1335 TARGET_VERSION_CPU.
1336 (TARGET_OS_CPP_BUILTINS): Use NETBSD_OS_CPP_BUILTINS_LP64
1337 if TARGET_SHMEDIA64.
1338 (LINK_DEFAULT_CPU_EMUL): Define according to the
1339 default target.
1340 (SUBTARGET_LINK_EMUL_SUFFIX): Define.
1341 (SUBTARGET_LINK_SPEC): Define.
1342 (LINK_SPEC): Use SH_LINK_SPEC.
1343 (ASM_SPEC): Remove.
1344 (TARGET_DEFAULT): Use TARGET_CPU_DEFAULT.
1345 (FUNCTION_PROFILER): Add cases for TARGET_SHMEDIA32
1346 and TARGET_SHMEDIA64 which abort, for now.
1347 * config/sh/t-netbsd-sh5: New file.
1348 * config/sh/t-netbsd-sh5-32: New file.
1349 * config/sh/t-netbsd-sh5-64: New file.
1350
6d8fd7bb
RH
13512002-06-03 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
1352 Richard Henderson <rth@redhat.com>
1353
1354 * config/alpha/alpha.c (reg_or_const_int_operand): New.
1355 (some_operand, input_operand): Accept CONST_VECTOR.
1356 (alpha_extra_constraint): Add 'W'.
1357 (alpha_expand_zap_mask): New.
1358 (alpha_expand_builtin_vector_binop): New.
1359 (enum alpha_builtin): New.
1360 (zero_arg_builtins, one_arg_builtins, two_arg_builtins): New.
1361 (alpha_init_builtins, alpha_expand_builtin): New.
1362 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): New.
1363 * config/alpha/alpha.h (VECTOR_MODE_SUPPORTED_P): New.
1364 (PREDICATE_CODES): Update.
1365 * config/alpha/alpha-protos.h: Update.
1366 * config/alpha/alpha.md (UNSPEC_CMPBGE, UNSPEC_ZAP,
1367 UNSPEC_AMASK, UNSPEC_IMPLVER, UNSPEC_PERR, UNSPECV_RPCC): New.
1368 (movv8qi, movv8qi_fix, movv8qi_nofix): New.
1369 (movv4hi, movv4hi_fix, movv4hi_nofix): New.
1370 (movv2si, movv2si_fix, movv2si_nofix): New.
1371 (uminv8qi3, sminv8qi3, uminv4hi3, sminv4hi3): New.
1372 (umaxv8qi3, smaxv8qi3, umaxv4hi3, smaxv4hi3): New.
1373 (builtin_cmpbge, builtin_extql, builtin_extqh, builtin_zap,
1374 builtin_zap_1, builtin_zapnot, builtin_zapnot_1, builtin_amask,
1375 builtin_implver, builtin_rpcc, builtin_minub8, builtin_minsb8,
1376 builtin_minuw4, builtin_minsw4, builtin_maxub8, builtin_maxsb8,
1377 builtin_maxuw4, builtin_maxsw4, builtin_perr, builtin_pklb,
1378 pklb, builtin_pkwb, pkwb, builtin_unpkbl, unpkbl,
1379 builtin_unpkbw, unpkbw): New.
1380 * doc/extend.texi (Alpha Built-in Functions): New.
1381
618939de
RH
13822002-06-03 Richard Henderson <rth@redhat.com>
1383
1384 * crtstuff.c (__EH_FRAME_BEGIN__): Conditionalize on
1385 USE_EH_FRAME_REGISTRY, not EH_FRAME_SECTION_NAME.
1386
73db7137
RH
13872002-06-03 Richard Henderson <rth@redhat.com>
1388
6933647a
RH
1389 * config/alpha/alpha-protos.h: Eliminate unneeded ifdefs.
1390
73db7137
RH
1391 * config/alpha/alpha.c (reg_or_0_operand): Use CONST0_RTX.
1392 (const0_operand): New.
1393 (reg_or_fp0_operand, fp0_operand): Remove.
1394 * config/alpha/alpha.h (PREDICATE_CODES): Update.
1395 * config/alpha/alpha-protos.h: Update.
1396 * config/alpha/alpha.md: Replace all uses of reg_or_fp0_operand
1397 and fp0_operand with reg_or_0_operand and const0_operand.
1398
a6f7c915
DN
13992002-06-03 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
1400
1401 * alias.c (nonoverlapping_memrefs_p): Fix off by one error.
1402
b2f02503
RS
14032002-06-03 Roger Sayle <roger@eyesopen.com>
1404
1405 * gcse.c (cprop_jump): Use single_set to get the pattern
1406 from the setcc argument.
1407
4fcc2065
GDR
14082002-06-03 Gabriel Dos Reis <gdr@codesourcery.com>
1409
33005162 1410 * diagnostic.h (diagnostic_count): Move from output_buffer to
4fcc2065
GDR
1411 diagnostic_context.
1412 (diagnostic_kind_count): Adjust definition.
1413
5204d665
JH
1414Mon Jun 3 19:11:53 CEST 2002 Jan Hubicka <jh@suse.cz>
1415
1416 * except.c (except.c): Do not rebuild CFG.
1417 * toplev.c (rest_of_compilation): Recompute CFG after sibcall
1418 optimization.
1419
0478a14c
JH
1420Mon Jun 3 11:53:01 CEST 2002 Jan Hubicka <jh@suse.cz>
1421
1422 * integrate.c (copy_insn_list): Properly pace the INSN_SCOPE copies.
1423 * toplev.c: Include cfglahout.h
1424 * Makefile.in (toplev.c): Add dependnecy.
1425
30efe578
NB
14262002-06-03 Neil Booth <neil@daikokuya.demon.co.uk>
1427
1428 * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): New.
1429 (CPP_CPU32_SPEC, CPP_CPU64_SPEC): Kill.
1430 (CPP_CPUCOMMON_SPEC): Rename CPP_CPU_SPEC.
1431
a782515b
JT
14322002-06-03 Jason Thorpe <thorpej@wasabisystems.com>
1433
1434 * config/ns32k/netbsd.h: Update copyright years.
1435 (TARGET_OS_CPP_BUILTINS): Define.
1436 (CPP_PREDEFINES): Remove.
1437 * config/ns32k/ns32k.h (CPP_PREDEFINES): Remove.
1438 (TARGET_CPU_CPP_BUILTINS): Define.
1439
0fb7aeda
KH
14402002-06-02 Kazu Hirata <kazu@cs.umass.edu>
1441
589005ff 1442 * emit-rtl.c: Fix formatting.
0fb7aeda
KH
1443 * errors.h: Likewise.
1444 * except.c: Likewise.
1445 * explow.c: Likewise.
1446 * expmed.c: Likewise.
1447 * expr.c: Likewise.
1448 * expr.h: Likewise.
1449
1c8ec18b
KH
14502002-06-02 Kazu Hirata <kazu@cs.umass.edu>
1451
1452 * config/h8300/elf.h: Fix formatting.
1453 * config/h8300/rtems.h: Likewise.
1454
86cb04f6
JT
14552002-06-03 Jason Thorpe <thorpej@wasabisystems.com>
1456
1457 * config/rs6000/netbsd.h (DRAFT_V4_STRUCT_RET): Remove.
1458
5d83269d
TT
14592002-06-02 Tom Tromey <tromey@redhat.com>
1460
1461 * fixinc/fixincl.x: Rebuilt.
1462 * fixinc/inclhack.def (thread_keyword): Match `*__thread'.
1463
62f6a494
NB
14642002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
1465
1466config/i370:
1467 * i370.h (TARGET_CPU_CPP_BUILTINS): Use.
1468 * linux.h: Use TARGET_OS_CPP_BUILTINS rather than CPP_PREDEFINES.
1469 * mvs.h: Similarly.
1470 * oe.h: Similarly.
1471
0acb0203
JH
1472Mon Jun 3 00:18:20 CEST 2002 Jan Hubicka <jh@suse.cz>
1473
1474 * final.c (final): Allow notes to not have computed addresses;
1475 kill no longer needed STACK_REGS ifdef.
1476
ada8d98a
RH
14772002-06-02 Richard Henderson <rth@redhat.com>
1478
1479 * gcse.c (bypass_conditional_jumps): Fix typo last change.
1480
ba4f7968
JH
1481Sun Jun 2 23:02:11 CEST 2002 Jan Hubicka <jh@suse.cz>
1482
ada8d98a
RH
1483 * loop.c (emit_prefetch_instructions): Properly place the address
1484 computation.
ba4f7968
JH
1485
1486Sun Jun 2 22:56:48 CEST 2002 Jan Hubicka <jh@suse.cz>
1487
1488 * basic-block.h (basic_block_for_insn, BLOCK_FOR_INSN): Kill.
1489 (set_block_for_insn): Turn into macro.
1490 * cfgbuild.c (find_basic_block): Do not clear basic_block_for_insn.
1491 * cfglayout.c (insn_scopes): Kill.
1492 (scope_to_insns_initialize): Do not use insn_scopes.
1493 (scope_to_insns_finalize): Likewise.
1494 (duplicate_insn_chain): Likewise.
1495 (cfg_layout_initialize, cfg_layout_finalize): Do not turn scopes to notes.
1496 * cfgrtl.c (basic_block_for_insn): Kill.
1497 (delete_insn_and_edges, delete_insn_chain_and_edges): Simplify.
1498 (create_basic_block_structure): Use reorder_insns.
1499 (compute_bb_for_insn): Do not use basic_block_for_insn.
1500 (merge_blocks_nomove): Likewise.
1501 (update_bb_for_insn): Likewise.
1502 (verify_flow_info): Likewise.
1503 (set_block_for_insn): Kill.
1504 * combine.c (try_combine): Update gen_rtx_INSN call.
1505 * emit-rtl.c (gen_label_rtx): Update gen_rtx_CODE_LABEL call.
1506 (mark_insn_raw, make_jump_insn_raw, make_call_insn_raw): Clear
1507 scopes and BBs.
1508 (add_insn_after, add_insn_before, remove_insn, reorder_insns): Simplify.
1509 (emit_note_before, emit_note_after, emit_line_note_after, emit_note):
1510 Clear BB.
1511 (emit_insns_after): Simplify.
1512 (emit_copy_of_insn_after): Copy scope.
1513 * final.c (final_start_function): Lower scopes.
1514 * flow.c (check_function_return_warnings): Do not rely on deleted insn.
1515 * integrate.c (copy_insn_list): Cope scopes.
1516 * jump.c (duplicate_loop_exit_test): LIkewise; simplify.
1517 * loop.c (loop_optimize): Do not care block notes.
1518 * print-rtl.c (print_rtx): Print BB.
1519 * recog.c (apply_change_group): Simplify.
1520 * rtl.c (copy_rtx): Handle 'B'.
1521 * rtl.def (INSN, CALL_INSN, JUMP_INSN, NOTE): Add extra fields.
1522 * rtl.h (Field accessors): Update indexes.
1523 * sched-ebb.c (schedule_ebbs): Do not lower notes.
1524 * sched-rgn.c (schedule_insns): Likewise.
1525 * toplev.c (rest_of_compilation): Lower notes.
1526 * unroll.c (unroll_loop): Do not care scoping notes.
1527 (copy_loop_body): Copy scopes.
1528
537fc532
NB
15292002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
1530
1531config/h8300:
1532 * elf.h: Use TARGET_OS_CPP_BUILTINS rather than
1533 SUBTARGET_SPEC.
1534 * rtems.h: Similarly.
1535 * h8300.h (CPP_PREDEFINES, CPP_SPEC, SUBTARGET_CPP_SPEC,
1536 EXTRA_SPECS, SUBTARGET_EXTRA_SPECS): Remove.
1537 (TARGET_CPU_CPP_BUILTINS): Use.
1538
ab780373
RH
15392002-06-02 Richard Henderson <rth@redhat.com>
1540
1541 * alias.c: Include target.h.
1542 (mark_constant_function): Use targetm.binds_local_p instead
1543 of checking TREE_PUBLIC ourselves.
1544 * Makefile.in (alias.o): Add TARGET_H.
1545
b9305c66
NB
15462002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
1547
1548 * c-lex.c: Update copyright and file description.
1549
0ac3e0c4
NB
15502002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
1551
1552 * config/fr30/fr30.h: Update to new CPP macros.
1553
be3a1d46
NB
15542002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
1555
1556 * config/dsp16xx/dsp16xx.h: Update to new CPP macros.
1557
ceeedfc1 15582002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
a8fd5963 1559 Zack Weinberg <zack@codesourcery.com>
ceeedfc1
NB
1560
1561 * c-common.c (c_common_init): Override cpplib's default
1562 warn_long_long setting.
1563 * c-lex.c (lex_number): Replace with interpret_integer,
1564 interpret_float, narrowest_unsigned_type and
1565 narrowest_signed_type, taking advantage of the new
1566 cpplib functionality.
1567 * cpperror.c (_cpp_begin_message): If a warning is turned
1568 into an error, avoid printing "warning:".
1569 * cppexp.c (cpp_num_sign_extend): New.
1570 * cppinit.c: Update comment.
1571 * cpplib.h (cpp_num_sign_extend): New.
1572 * tree.h: Update comment.
1573
27e511e0
GDR
15742002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
1575
1576 * diagnostic.h (struct diagnostic_context): Add new member
33005162 1577 internal_error.
27e511e0
GDR
1578 (internal_error_function): Remove declaration.
1579 * diagnostic.c (internal_error_function): Remove definition..
1580 (internal_error): Adjust use.
1581
818b6b7f
RH
15822002-06-02 Richard Henderson <rth@redhat.com>
1583
1584 * rtl.h (CC0_P): New.
1585 * gcse.c (cprop_jump): Use it with single_set. Tweak dump text.
1586 (cprop_insn): Allow any mode register; use CC0_P. CSE out single_set.
1587 (bypass_block): Save old dest block for dump text.
1588 (bypass_conditional_jumps): Allow any mode register; use CC0_P.
1589 Allow only true SET insns, not single_set.
1590
167143a0
GDR
15912002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
1592
1593 * diagnostic.c (diagnostic_finish): Rename to output_flush.
1594 (clear_disgnostic_info): Rename to output_clear_data. Use false
1595 instead of 0 for boolean value.
1596 Adjust function call throughout.
1597
eae4bc56
JH
1598Sun Jun 2 19:15:27 CEST 2002 Jan Hubicka <jh@suse.cz>
1599
1600 * cfgrtl.c (commit_one_edge_insertion): Fix warning.
1601 * gcse.c (bypass_conditional_jumps): CSE out single_set call.
1602
9eb404a0
NB
16032002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
1604
1605 * d30v.h (CPP_PREDEFINES): Replace with
1606 (TARGET_CPU_CPP_BUILTINS): New.
1607
53e8b0b8
RS
16082002-06-02 Roger Sayle <roger@eyesopen.com>
1609
1610 * config/alpha/alpha.h [ASM_OUTPUT_LABELREF]: Fix typo.
1611
92e34b67
JH
1612Sun Jun 2 12:11:52 CEST 2002 Jan Hubicka <jh@suse.cz>
1613
1614 * gcse.c (bypass_conditional_jumps): Use single set to obtain set.
1615
e7e9d242
RH
16162002-06-02 Richard Henderson <rth@redhat.com>
1617
1618 * rtlanal.c (volatile_refs_p): Not automatically true for CALL.
1619
9af145ae
MM
16202002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
1621
1622 Support for C++ constructors/destructors.
1623 * config/avr/avr.c (avr_output_function_epilogue): Jump to exit()
1624 instead of looping if main() returns.
1625 (asm_file_start): Output global symbols that cause .data and .bss
1626 initialization code to be linked in, unconditionally for now.
1627 (avr_asm_out_ctor, avr_asm_out_dtor): New functions.
1628 * config/avr/avr.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): New.
1629 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
1630 (LIBSTDCXX): New.
1631 * config/avr/libgcc.S (_exit): Split in .fini9 and .fini0 sections.
1632 (__tablejump__): New.
1633 (__do_copy_data, __do_clear_bss): New.
1634 (__do_global_ctors, __do_global_dtors): New.
1635 * config/avr/t-avr (LIB1ASMFUNCS): Add _copy_data, _clear_bss,
1636 _ctors, _dtors.
1637
0d66ad57
NB
16382002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
1639
1640 * c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): New.
1641 (CPP_SPEC, CPP_PREDEFINES): Kill.
1642 * c4x/rtems.h (CPP_PREDEFINES): Kill.
1643 (TARGET_OS_CPP_BUILTINS): New.
1644
5c856b23
JH
1645Sat Jun 1 23:29:51 CEST 2002 Jan Hubicka <jh@suse.cz>
1646
1647 * Makefile.in (tracer.o): New.
1648 * params.def (TRACER_*): New options.
1649 * rtl.h (tracer): Declare.
1650 * timevar.def (TV_TRACER): New.
1651 * toplev.c (dump_file_index): Add DFI_tracer.
1652 (dump_file_info): Add tracer.
1653 (flag_tracer): New.
1654 (lang_indepdenent_options): Add tracer.
1655 (rest_of_compilation): Call tracer.
1656 * tracer.c: New file.
1657 * invoke.texi (-ftracer): Document.
1658 (--param tracer-*): Document.
1659
e2405951
DB
16602002-06-01 Daniel Berlin <dberlin@dberlin.org>
1661
1662 * tree-inline.c (expand_call_inline): Make the statement
33005162 1663 expression we generate have a COMPOUND_STMT.
e2405951 1664
0e3f0221
RS
16652002-06-01 Roger Sayle <roger@eyesopen.com>
1666
1667 * gcse.c (cprop_cc0_jump): Function deleted.
1668 (cprop_jump): Take an additional argument which is the possibly
1669 NULL cc setting insn immediately before the conditional jump.
1670 When a MODE_CC set is present, substitute it into the JUMP_INSN
1671 before attempting the constant propagation.
1672 (cprop_insn): Recognize cc setters followed by conditional jumps
1673 as a special case. Use cprop_jump instead of cprop_cc0_jump.
1674 (cprop_one_pass): Call bypass_conditional_jumps if altering jumps.
1675 (find_bypass_set): New function based upon find_avail_set used by
1676 cprop, but finds constant expressions available at the end of
1677 basic blocks.
1678 (bypass_block): New function. Given a basic block that begins
1679 with a conditional jump and multiple incoming edges, perform
1680 the jump bypass optimization.
1681 (bypass_conditional_jumps): New function. Call bypass_block with
1682 each suitable basic block in the CFG using a simple single pass.
1683
378393da
RS
16842002-06-01 Roger Sayle <roger@eyesopen.com>
1685
1686 * tree.c (real_minus_onep): New function to test for -1.0.
1687 * fold-const.c (fold) [MULT_EXPR]: Optimize -1.0*x into -x.
1688
01c58f26
RS
16892002-06-01 Roger Sayle <roger@eyesopen.com>
1690
1691 * fold-const.c (fold_truthop): Transform "a || b" into "(a|b) != 0"
1692 and "!p && !q" into "(p|q) == 0" under suitable conditions.
1693
91b12472
AJ
16942002-06-01 Andreas Jaeger <aj@suse.de>
1695
1696 * cppexp.c (cpp_classify_number): Cast precission to int for
1697 correct printf format.
1698
01e9ae86
MM
16992002-06-01 Marek Michalkiewicz <marekm@amelek.gda.pl>
1700
1701 * config/avr/avr.c (avr_mcu_types): Remove devices that were once
1702 expected, but don't really exist: atmega83, atmega85, attiny10.
1703 * config/avr/avr.h (LINK_SPEC): Update to use the new avr[1-5] ld
1704 emulations for all devices.
1705 (CRT_BINUTILS_SPECS): Remove atmega83, atmega85, attiny10.
1706 * config/avr/t-avr (MULTILIB_MATCHES): Remove atmega83, atmega85.
1707
be1e06df
KH
17082002-06-01 Kazu Hirata <kazu@cs.umass.edu>
1709
1710 * config/h8300/h8300-protos.h: Add a prototype for
1711 h8300_shift_needs_scratch_p.
1712 * config/h8300/h8300.c (h8300_shift_needs_scratch_p): New.
1713 * config/h8300/h8300.h (OK_FOR_R): New.
1714 (OK_FOR_S): Likewise.
1715 (OK_FOR_T): Likewise.
1716 (EXTRA_CONSTRAINT): Call OK_FOR_R, OK_FOR_S, and OK_FOR_T.
1717 * config/h8300/h8300.md (anonymous shift patterns): Use
1718 constraints R, S, and T.
1719
2ecfd709
ZD
1720Sat Jun 1 11:23:22 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1721
1722 * basic-block.h (struct basic_block_def): New field loop_father.
1723 (BB_VISITED): New flag.
1724 (struct loop): New field pred, removed field shared.
1725 (struct loops): New field parray.
1726 (LOOP_EXITS_DOMS): Removed.
1727 (flow_loop_tree_node_add, flow_loop_tree_node_remove,
1728 flow_loop_nested_p, flow_bb_inside_loop_p, get_loop_body,
1729 dfs_enumerate_from, loop_preheader_edge, loop_latch_edge,
1730 add_bb_to_loop, remove_bb_from_loops, find_common_loop,
1731 verify_loop_structure): Declare.
1732 * cfg.c (entry_exit_blocks): Initialize loop_father field.
1733 * cfganal.c (dfs_enumerate_from): New function.
1734 * cfgloop.c (HEAVY_EDGE_RATIO): New constant.
1735 (flow_loop_entry_edges_find, flow_loop_exit_edges_find,
1736 flow_loop_nodes_find, flow_loop_level_compute, flow_loop_nested_p,
1737 flow_loop_dump, flow_loops_dump, flow_loops_free,
1738 flow_loop_tree_node_add, flow_loop_level_compute,
1739 flow_loops_level_compute, flow_loop_scan, flow_loops_update,
1740 flow_loop_outside_edge_p): Modified for new infrastructure.
1741 (make_forwarder_block, canonicalize_loop_headers, glb_enum_p,
1742 redirect_edge_with_latch_update, flow_loop_free): New static functions.
1743 (flow_loop_tree_node_remove, flow_bb_inside_loop_p,
1744 get_loop_body, add_bb_to_loop, remove_bb_from_loops,
1745 find_common_loop, verify_loop_structure, loop_latch_edge,
1746 loop_preheader_edge): New functions.
1747 (flow_loops_cfg_dump): Do not show dominators, as this information
1748 does not remain up to date long.
1749 (flow_loops_find): Store results in new format.
1750 * predict.c (propagate_freq, estimate_probability,
1751 estimate_loops_at_level, estimate_bb_frequencies): Use new loop
1752 infrastructure.
1753
d9763749 17542002-06-01 Alan Lehotsky <apl@alum.mit.edu>
91b12472 1755
d9763749
AL
1756 * except.c (nothrow_function_p): Walk epilogue delay list
1757 checking the insn, not the chain for potential throws.
91b12472 1758
1e730c5c
ZW
17592002-05-31 Zack Weinberg <zack@codesourcery.com>
1760
1761 * Makefile.in (INSTALL_CPP, UNINSTALL_CPP): Remove.
1762 (install): Refer to install-cpp directly.
1763 (uninstall-cpp): Folded into uninstall rule.
1764 * configure.in: Delete all code relating to --disable-cpp.
1765 * configure: Regenerate.
1766 * config/t-install-cpp: Delete.
1767
6f9b006d
RH
17682002-05-31 Richard Henderson <rth@redhat.com>
1769
1770 * configure.in (HAVE_AS_TLS): Add alpha tests.
1771 * configure: Rebuild.
1772 * config/alpha/alpha.c (TARGET_AS_TLS): New.
1773 (alpha_tls_size, alpha_tls_size_string): New.
1774 (overide_options): Set it. Always install machine_status hooks.
1775 (input_operand): Accept got tls predicates.
1776 (local_symbol_p): Merge into ...
1777 (local_symbolic_operand): ... here. Reject tls symbols.
1778 (global_symbolic_operand): Likewise.
1779 (tls_symbolic_operand_1, dtp16_symbolic_operand): New.
1780 (dtp32_symbolic_operand, gotdtp_symbolic_operand): New.
1781 (tp16_symbolic_operand, tp32_symbolic_operand): New.
1782 (gottp_symbolic_operand, tls_symbolic_operand_type): New.
1783 (alpha_encode_section_info): Handle TLS symbols.
1784 (alpha_strip_name_encoding): Likewise.
1785 (alpha_legitimate_address_p): Likewise.
1786 (alpha_legitimize_address): Likewise.
1787 (alpha_expand_mov): Early exit to avoid nop moves.
1788 (struct machine_function): Move from unicosmk.h. Add some_ld_name.
1789 (alpha_init_machine_status, alpha_mark_machine_status,
1790 alpha_free_machine_status): Always define.
1791 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
1792 (print_operand, print_operand_address): Add TLS relocs.
1793 * config/alpha/alpha.h (HAVE_AS_TLS): Default 0.
1794 (MASK_TLS_KERNEL, TARGET_TLS_KERNEL): New.
1795 (TARGET_SWITCHES): Add -mtls-kernel.
1796 (alpha_tls_size, alpha_tls_size_string): New.
1797 (TARGET_OPTIONS): Add -mtls-size=.
1798 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS,
1799 REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Add R0_REG.
1800 (ASM_OUTPUT_LABELREF): Skip %.
1801 (PRINT_OPERAND_PUNCT_VALID_P): Add &.
1802 (PREDICATE_CODES): Update.
1803 * config/alpha/alpha.md (UNSPEC_TLSGD_CALL, UNSPEC_TLSLDM_CALL,
1804 UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_DTPREL, UNSPEC_TPREL,
1805 UNSPEC_TP, UNSPECV_SET_TP): New.
1806 (adddi_er_lo16_dtp, adddi_er_hi32_dtp, adddi_er_lo32_dtp,
1807 adddi_er_lo16_tp, adddi_er_hi32_tp, adddi_er_lo32_tp, load_tp,
1808 set_tp, movdi_er_tlsgd, movdi_er_tlsldm, movdi_er_gotdtp,
1809 movdi_er_gottp, call_value_osf_tlsgd, call_value_osf_tlsldm): New.
1810 (call_value_osf_2_er): Accept anything as op4.
1811 * config/alpha/alpha-protos.h: Update.
1812 * config/alpha/unicosmk.h (struct machine_function): Move to alpha.c.
1813
39e5db1a
ZW
18142002-05-31 Zack Weinberg <zack@codesourcery.com>
1815
1816 * cppinit.c (append_include_chain): Always pay attention to
1817 cxx_aware when setting new->sysp. Remove ATTRIBUTE_UNUSED
1818 marker on argument.
1819
41077ce4
KH
18202002-05-31 Kazu Hirata <kazu@cs.umass.edu>
1821
1822 * target.h: Fix formatting.
1823 * timevar.h: Likewise.
1824 * tlink.c: Likewise.
1825 * toplev.c: Likewise.
1826 * toplev.h: Likewise.
1827 * tree.c: Likewise.
1828 * tree-dump.h: Likewise.
1829 * tree.h: Likewise.
1830 * tree-inline.h: Likewise.
1831 * unroll.c: Likewise.
1832 * unwind-dw2.c: Likewise.
1833 * unwind-dw2-fde.c: Likewise.
1834 * unwind-dw2-fde-glibc.c: Likewise.
1835 * unwind-dw2-fde.h: Likewise.
1836 * unwind.h: Likewise.
1837 * unwind-sjlj.c: Likewise.
1838 * varasm.c: Likewise.
1839 * varray.h: Likewise.
1840 * vmsdbg.h: Likewise.
1841 * vmsdbgout.c: Likewise.
1842 * xcoffout.h: Likewise.
1843
b2e426a0
IS
18442002-05-31 Igor Shevlyakov <igor@microunity.com>
1845
1e730c5c 1846 * expr.c (compare_from_rtx): Generate comparison between op0 and op1
b2e426a0
IS
1847 rather than cc0 and 0 in a case when HAVE_cc0 is not defined.
1848
8b968bd1
MW
18492002-05-31 Matthew Woodcraft <mattheww@chiark.greenend.org.uk>
1850
1851 * gcc.c (cpp_unique_options): Remove "-d" options.
1852 (cpp_debug_options): New spec string.
1853 (default_compilers): Use it.
1854 * objc/lang-specs.h: Likewise.
1855
5c35940c
NN
18562002-05-31 Nathanael Nerode <neroden@twcny.rr.com>
1857
1e730c5c 1858 * gcc/Makefile.in: Replace HOST_PREFIX, HOST_PREFIX_1 with
5c35940c
NN
1859 BUILD_PREFIX, BUILD_PREFIX_1, to correct nomenclature.
1860 * gcc/mklibgcc.in: Likewise.
1861 * gcc/config/arc/t-arc: Likewise.
1862 * gcc/configure.in: Likewise.
1863 * gcc/configure: Regenerate.
1864
8b496ceb
SS
18652002-05-31 Stan Shebs <shebs@apple.com>
1866 Turly O'Connor <turly@apple.com>
1867
1868 * c-decl.c (struct binding_level): Change int field n_incomplete
1869 to tree list incomplete_list.
1870 (clear_binding_level): Init field with NULL.
1871 (pushdecl): Add incomplete type to list.
1872 (mark_binding_level): Mark the incomplete list.
1873 (finish_struct): Scan the incomplete list for types instead
1874 of all decls in the current binding level.
1875
4722213d
JDA
18762002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
1877
1878 * pa.c (output_millicode_call): Add missing '%' characters.
1879 (output_call): Likewise.
1880
1086fcb1
DE
18812002-05-31 David Edelsohn <edelsohn@gnu.org>
1882
1883 * config/rs6000/xcoff.h (HOT_TEXT_SECTION_NAME): Define.
1884 (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
1885
afdfb380 18862002-05-31 Alan Lehotsky <apl@alum.mit.edu>
91b12472 1887
afdfb380
AL
1888 * varasm.c (mark_constant_pool): Walk epilogue delay list
1889 checking the insn, not the chain for potential constants.
1e730c5c 1890
f2df45f6
R
1891Fri May 31 12:38:43 2002 J"orn Rennecke <joern.rennecke@superh.com>
1892
1893 * config/sh/elf.h (ASM_SPEC): Use subtarget_endian_asm_spec.
1894
91ea38f9
JH
1895Fri May 31 13:50:19 CEST 2002 Jan Hubicka <jh@suse.cz>
1896
1897 * i386.c (classify_argument): Properly handle base types.
1898
1899 * dwarf2out.c (expand_builin_init_dwarf_reg_sizes):
1900 Store first DWARF_FRAME_REGISTERS dwarf registers, not pseudo
1901 registers.
1902
10d1bb36
JH
1903Fri May 31 13:37:54 CEST 2002 Jan Hubicka <jh@suse.cz>
1904
1905 * gcse.c (gcse_emit_move_after): New.
1906 (pre_delete, hoist_store): Use it.
1907
1908 * reload1.c (emit_input_reload_insns): Use constrain_operands
1909 instead of constraint_accepts_reg_p to verify optimization.
1910 (constraint_accepts_reg_p): Kill
1911
1912 * reload1.c (reload_cse_delete_noop_set): Kill.
1913 (reload_cse_simplify): use delte_insn_and_edges.
1914
8a72fb76
ZD
19152002-05-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1916
1917 * cfgloop.c (flow_loops_find): Initialize first and last fields
1918 correctly.
1919
a9da2e5b
NB
19202002-05-31 Neil Booth <neil@daikokuya.demon.co.uk>
1921
1922 * c-common.c (builtin_define_std): Correct logic.
1923
6248c4dd
JDA
19242002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
1925
1926 * pa.c (output_millicode_call): Correct "be,l" insn for TARGET_PA_20.
1927 (output_call): Likewise.
1928
d499455b
JDA
19292002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
1930
1931 * pa.c: Move output.h include after tree.h include.
1932 (pa_asm_output_mi_thunk): Constify identifier lab.
1933
2eb2901a
JT
19342002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
1935
1936 * config/ns32k/ns32k.h: Define named constants for the
1937 bits in target_flags and use them.
1938 * config/ns32k/netbsd.h (TARGET_DEFAULT): Use named constants.
1939
806bf413
JDA
19402002-05-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
1941
1942 * config.gcc (tm_file): Prefix pa/pa-700.h to tm_file list for PA1.0
1943 architecture and pa/pa-7100.h for PA1.1 architecture, respectively.
1944 * pa/pa.c (override_options): Use TARGET_SCHED_DEFAULT to select
1945 default scheduling model.
1946 * pa/pa.h (TARGET_SCHED_DEFAULT): Define if not defined to "8000".
1947 * pa/pa-700.h (TARGET_SCHED_DEFAULT): New file for "700" scheduling.
1948 * pa/pa-7100.h (TARGET_SCHED_DEFAULT): New file for "7100" scheduling.
1949 * doc/install.texi (hppa*-*-*): Document default scheduling.
1950
6d8d2bbc
JDA
19512002-05-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
1952
1953 * pa.c (following_call): Check TARGET_JUMP_IN_DELAY.
1954
c8eb9785
JT
19552002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
1956
1957 * config.gcc (ns32k-*-netbsd*): Set tm_file to
1958 "${tm_file} netbsd.h netbsd-aout.h ns32k/netbsd.h"
1959 * config/ns32k/netbsd.h: Don't include ns32k/ns32k.h,
1960 netbsd.h, or netbsd-aout.h.
1961
6e2e5b6a
JT
19622002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
1963
1964 * longlong.h (count_trailing_zeros): Add missing \, and clean up
1965 whitespace in __ns32000__ case.
1966
00182e1e
AH
19672002-05-31 Aldy Hernandez <aldyh@redhat.com>
1968
1e730c5c
ZW
1969 * expr.c (expand_expr): Output partially zeroed out vectors with
1970 output_constant_def.
00182e1e 1971
b4eb03fe
JT
19722002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
1973
1974 * config.gcc (sh[123456789l]*-*-*): Set cpu_type to sh.
1975 (sh-*-netbsdelf*)
1976 (shl*-*-netbsdelf*): New targets.
1977 * config/sh/netbsd-elf.h: New file.
8fd0df91 1978 * config/sh/t-netbsd: New file.
b4eb03fe 1979
261376e7
RH
19802002-05-30 Richard Henderson <rth@redhat.com>
1981 Eric Botcazou <ebotcazou@multimania.com>
1982
1983 PR optimization/6822
1984 * config/i386/i386.c (ix86_expand_int_movcc): Don't cast INTVAL
1985 to unsigned int for op1 comparisons. Use gen_int_mode.
1986
ce60bf25
EB
19872002-05-30 Eric Botcazou <ebotcazou@multimania.com>
1988
1989 * expmed.c (const_mult_add_overflow_p): New.
1990 * expr.h: Declare it.
1991 * loop.c (maybe_eliminate_biv_1) [COMPARE]: Use it.
1992 Don't eliminate the biv if the giv has a constant multiplier and
1993 the rhs argument of the comparison does satisfy the predicate.
1994 Use expand_mult_add to compute the replacement constant.
1995
d18b1ed8
OS
19962002-05-30 Osku Salerma <osku@iki.fi>
1997
1998 * c-common.c (c_common_attribute_table): Add "may_alias" entry.
1999 (c_common_get_alias_set): Handle it.
2000 * doc/extend.texi: Document it.
2001
a7943381
RH
20022002-05-30 Richard Henderson <rth@redhat.com>
2003
2004 * defaults.h (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
2005 * toplev.c (process_options): Don't check it.
2006 * doc/tm.texi: Don't document it.
2007 * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): New.
2008 (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
2009 * config/i386/i386.c (ix86_frame_pointer_required): Suppress leaf
2010 frame pointer optimization if current_function_profile.
2011
e11e816e
KH
20122002-05-30 Kazu Hirata <kazu@cs.umass.edu>
2013
2014 * langhooks.c: Fix formatting.
2015 * langhooks.h: Likewise.
2016 * lcm.c: Likewise.
2017 * libgcc2.c: Likewise.
2018 * lists.c: Likewise.
2019 * local-alloc.c: Likewise.
2020 * loop.c: Likewise.
2021 * loop.h: Likewise.
2022
20232002-05-30 Marc Espie <espie@openbsd.org>
2024
2025 * config.gcc (sparc64-*-openbsd*): New.
2026 * config/sparc/openbsd1-64.h: New.
2027 * config/sparc/openbsd64.h: New.
91f0fcee 2028
d35dfca9
JL
20292002-05-30 Jeff Law <law@redhat.com>
2030
2031 * flow.c (propagate_one_insn): Revise yesterday's patch. Delete
2032 a dead insn with a REG_RETVAL note when the entire libcall is not
2033 dead and remove the associated REG_LIBCALL note at the same time.
2034
81b40b72
R
2035Thu May 30 19:54:30 2002 J"orn Rennecke <joern.rennecke@superh.com>
2036
2037 * lcm.c (output.h): #include.
2038 (compute_earliest): Remove hack to treat renumbered EXIT_BLOCK
2039 as an ordinary block.
2040 (optimize_mode_switching): Don't pretend that the exit block is
2041 an ordinary block, or handle sucessors of entry block specially.
2042 Instead, split edges from entry block and to exit block, and
2043 put a computing definition on the thus gained post-entry-block,
2044 and a need on the pre-exit-block.
2045
c8ea9a0f
JH
2046Thu May 30 20:28:01 CEST 2002 Jan Hubicka <jh@suse.cz>
2047
2048 * gengenrtl.c (type_from_format, accessor_from_format): Support 'B'.
2049 * rtl.texi: Document 'B'
2050
348f0869
JT
20512002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
2052
2053 * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Compute
2054 at run-time.
2055 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Set to 96 if not __mc68010__.
2056
9a171fcd
AH
20572002-05-30 Aldy Hernandez <aldyh@redhat.com>
2058
1e730c5c
ZW
2059 * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
2060 const0_rtx instead of NULL_RTX when in error.
2061 (altivec_expand_abs_builtin): Same.
2062 (rs6000_expand_binop_builtin): Same.
2063 (altivec_expand_predicate_builtin): Same.
2064 (altivec_expand_stv_builtin): Same.
2065 (rs6000_expand_ternop_builtin): Same.
2066 (altivec_expand_builtin): Same.
9a171fcd 2067
62a35e60
DM
20682002-05-29 David S. Miller <davem@redhat.com>
2069
2070 * rtl.h (clear_emit_caches): Delete.
2071 * integrate.c (output_inline_function): Don't call it.
2072 * emit-rtl.c (restore_emit_status, init_emit): Likewise.
2073 (clear_emit_caches): Delete definition.
2074 (SEQUENCE_RESULT_SIZE, sequence_result, free_insn): Likewise.
2075
cbc39da8
HPN
20762002-05-30 Hans-Peter Nilsson <hp@bitrange.com>
2077
2078 * config/mmix/mmix.c: Include real.h.
2079 (mmix_constant_address_p): Remove redundant test before switch.
2080
50efa737
JT
20812002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
2082
2083 * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Define
2084 only if not already defined.
2085
2e760b15
KH
20862002-05-29 Kazu Hirata <kazu@cs.umass.edu>
2087
2088 * config/h8300/h8300-protos.h: Remove prototypes for
2089 ok_for_bclr and small_power_of_two.
2090 * config/h8300/h8300.c (small_power_of_two): Remove.
2091 (ok_for_blcr): Likewise.
2092 (fix_bit_operand): Make WHAT deal with an integer instead of a
2093 constraint character.
2094 * config/h8300/h8300.h (CONST_OK_FOR_O): Remove.
2095 (CONST_OK_FOR_P): Likewise.
2096 (CONST_OK_FOR_LETTER_P): Do not call CONST_OK_FOR_O or
2097 CONST_OK_FOR_P any more.
2098 * config/h8300/h8300.md (andqi3): Adjust to the new prototype
2099 of fix_bit_operand.
2100 (iorqi3): Likewise.
2101 (xorqi3): Likewise.
2102
e1c293ae
JT
21032002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
2104
2105 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
2106 (CPP_PREDEFINES): Make sure this is undefined.
2107 (CPP_SPEC): Place -D__mips=1 at the beginning of the spec,
2108 since it is no longer in CPP_PREDEFINES. Don't -U__MIPSEL__
2109 or -U__MIPSEB__ before defining one or the other. Instead,
2110 use %(subtarget_endian_default) if neither -EB nor -EL are
2111 specified.
2112 (SUBTARGET_EXTRA_SPECS): Define.
2113 (SUBTARGET_CPP_SPEC): Remove __LONG64 handling. Use
2114 %(netbsd_cpp_spec).
2115
fde6d81f
HPN
21162002-05-29 Hans-Peter Nilsson <hp@axis.com>
2117
2118 * doc/md.texi (Patterns): Note pattern condition pitfall
2119 for unnamed insn.
2120
92898235
AH
21212002-05-29 Aldy Hernandez <aldyh@redhat.com>
2122
1e730c5c
ZW
2123 * rs6000.c: (altivec_expand_builtin): Only expand altivec builtins
2124 when TARGET_ALTIVEC. Move handling of generic unary, binary, and
2125 ternary operations from here...
2126 (rs6000_expand_builtin): ...to here.
2127 New argument expandedp.
2128 Change all instances of altivec_expand_binop_builtin to
2129 rs6000_expand_binop_builtin.
2130 (altivec_expand_unop_builtin): Rename to
2131 rs6000_expand_unop_builtin.
2132 (altivec_expand_binop_builtin): Rename to
2133 rs6000_expand_binop_builtin.
2134 (altivec_expand_ternop_builtin): Rename to
2135 rs6000_expand_ternop_builtin.
92898235 2136
67adf6a9
RH
21372002-05-29 Richard Henderson <rth@redhat.com>
2138
2139 * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Define with value.
2140 (TARGET_BI_ARCH): Likewise.
2141 * config/i386/i386.h: Test TARGET_64BIT_DEFAULT by value.
2142 (TARGET_SWITCHES): Combine target defaults here not in TARGET_DEFAULT.
2143 (TARGET_64BIT_DEFAULT): Default to 0.
2144 (TARGET_DEFAULT): Default to MASK_OMIT_LEAF_FRAME_POINTER.
2145
145aacc2
RH
21462002-05-29 Richard Henderson <rth@redhat.com>
2147
2148 * config/i386/i386.c (USE_HIDDEN_LINKONCE): New.
2149 (get_pc_thunk_name): New.
2150 (output_set_got): Use it.
2151 (ix86_asm_file_end): If USE_HIDDEN_LINKONCE, emit get_pc thunks
2152 into linkonce sections.
2153
a5b49bbc
JT
21542002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
2155
2156 * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
2157 (CPP_PREDEFINES): Make sure this is undefined.
2158 (CPP_SUBTARGET_SPEC64, CPP_SUBTARGET_SPEC32): Remove.
2159 (CPP_SUBTARGET_SPEC): Don't provide different versions for
2160 default-32 and default-64. Just always use %(netbsd_cpp_spec).
2161 (SUBTARGET_EXTRA_SPECS): Remove cpp_subtarget_spec32 and
2162 cpp_subtarget_spec64. Add netbsd_cpp_spec.
2163 * config/sparc/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
2164 (CPP_PREDEFINES): Make sure this is undefined.
2165 (SUBTARGET_EXTRA_SPECS): Define.
2166 (CPP_SPEC): Use %(netbsd_cpp_spec).
2167
54374491
JL
21682002-05-29 Jeff Law <law@redhat.com>
2169
ae02eae8
JL
2170 * pa.h (ASM_OUTPUT_MI_THUNK): Remove unwanted semi-colon.
2171
b862c2aa
JL
2172 * flow.c (propagate_one_insn): Do not remove a dead insn if it
2173 contains a REG_RETVAL note.
2174
d10791ba
JL
2175 * haifa-sched (sched_analyze): Remove another useless clearing
2176 of SCHED_GROUP_P I missed yesterday.
2177
54374491
JL
2178 * pa.h (ASM_OUTPUT_MI_THUNK): Move implementation into pa.c.
2179 * pa.c (pa_asm_output_mi_thunk): New function.
2180 * pa-protos.h (pa_asm_output_mi_thunk): Declare.
2181
92c392e6
NB
21822002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
2183 Marek Michalkiewicz <marekm@amelek.gda.pl>
2184
2185 * config/avr/avr.c (avr_base_arch_macro, avr_extra_arch_macro): New.
2186 (avr_asm_only_p): Make non-static.
2187 (enum avr_arch): Remove.
2188 (avr_arch_types): New.
2189 (avr_mcu_types): Update.
2190 (avr_override_options): Use avr_arch_types table instead of switch.
2191 * avr.h (CPP_PREDEFINES): Die.
2192 (avr_base_arch_macro, avr_extra_arch_macro): New.
2193 (TARGET_CPU_CPP_BUILTINS): New.
2194 (CPP_SPEC, EXTRA_SPECS): Simplify.
2195 (CPP_AVR1_SPEC, CPP_AVR2_SPEC, CPP_AVR3_SPEC, CPP_AVR4_SPEC,
2196 CPP_AVR5_SPEC): Die.
2197
4528173e
JT
21982002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
2199
2200 * config/arm/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
2201 NETBSD_OS_CPP_BUILTINS_AOUT.
2202 (SUBTARGET_EXTRA_SPECS): Define.
2203 (CPP_SPEC): Use %(netbsd_cpp_spec).
2204
bd09bdeb
RH
22052002-05-29 Richard Henderson <rth@redhat.com>
2206
2207 * config/i386/i386.c (ix86_output_function_epilogue): New.
2208 (TARGET_ASM_FUNCTION_EPILOGUE): New.
2209 (pic_label_name): Remove.
2210 (pic_labels_used): New.
2211 (ix86_asm_file_end): Emit one pc load stub for each register used.
2212 (output_set_got): Generate deep pc load to any register.
2213 (ix86_select_alt_pic_regnum): New.
2214 (ix86_save_reg): Don't save pic register if we can find a valid
2215 call-clobbered replacement.
2216 (ix86_expand_prologue): If we found a valid replacement, renumber
2217 pic_offset_table_rtx.
2218 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Look at
2219 pic_offset_table_rtx after reload.
2220 (REAL_PIC_OFFSET_TABLE_REGNUM): New.
2221 * config/i386/i386.md (set_got): Make insn, not expander.
2222 (set_got_nopic, set_got_deep, set_got_nodeep): Remove.
2223
002ff5bc
RH
22242002-05-29 Richard Henderson <rth@redhat.com>
2225
2226 * config/i386/i386.c (ix86_compute_frame_layout): Do add bottom
2227 alignment for alloca.
2228
edfe8595
RH
22292002-05-29 Richard Henderson <rth@redhat.com>
2230
2231 * config/i386/i386.c (output_pic_addr_const): Lowercase rip.
2232 (print_operand_address): Only add rip for symbolic addresses
2233 for which we do not have another relocation type.
2234
cd7714ee
JT
22352002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
2236
2237 * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
2238 (EXTRA_SPECS): Add netbsd_cpp_spec.
2239 (CPP_SPEC): Use %(netbsd_cpp_spec).
2240 (CPP_PREDEFINES): Remove.
2241 * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
2242 (EXTRA_SPECS): Define.
2243 (CPP_SPEC): Use %(netbsd_cpp_spec).
2244 (CPP_PREDEFINES): Remove.
2245
8dc901de
NB
22462002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
2247
2248 PR preprocessor/6844
2249 * cppmacro.c (cpp_macro_definition): Reserve space for terminating
2250 NUL.
2251
2274b31a
EC
22522002-05-29 Eric Christopher <echristo@redhat.com>
2253
2254 * config/mips/linux.h (SUBTARGET_CPP_SPEC): Add support for
2255 mips5/mips32/mips64 and _MIPS_ISA_MIPSXX.
2256
5c7666c1
NC
22572002-05-29 Nick Clifton <nickc@cambridge.redhat.com>
2258
2259 * config/fr30/fr30.md: Remove previous restriction on splits.
2260 Enforce conformance through gen_lowpart and cont_int_operand.
1e730c5c 2261 * config/fr30/fr30.h (BSS_SECTION_ASM_OP): Use ".section .bss"
5c7666c1
NC
2262 as the assembler does not support ".bss".
2263
45beef47
JT
22642002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
2265
2266 * config/i386/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
2267 (CPP_PREDEFINES): Remove.
2268 (SUBTARGET_EXTRA_SPECS): Define.
2269 (CPP_SPEC): Use %(netbsd_cpp_spec).
2270 * config/i386/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
2271 (CPP_PREDEFINES): Remove.
2272 (SUBTARGET_EXTRA_SPECS): Define.
2273 (CPP_SPEC): Use %(netbsd_cpp_spec).
2274 * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Define.
2275 (CPP_PREDEFINES, CPP_LP64_SPEC, CPP_SUBTARGET_SPEC): Remove.
2276 (SUBTARGET_EXTRA_SPECS): Remove cpp_lp64 and cpp_subtarget.
2277 Add netbsd_cpp_spec.
2278 (CPP_SPEC): Remove %(cpp_subtarget), add %(netbsd_cpp_spec).
2279
cd7ab83f
NB
22802002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
2281 Zack Weinberg <zack@codesourcery.com>
2282
2283 * cppexp.c (cpp_num): Move to cpplib.h.
2284 (CPP_ERROR): Remove.
2285 (interpret_float_suffix, interpret_int_suffix): New.
2286 (struct suffix, vsuf_1, vsuf_2, vsuf_3): Remove.
2287 (cpp_classify_number, cpp_interpret_integer): New.
2288 (interpret_number): Remove.
2289 (eval_token): Update to use new routines.
2290 * cpphash.h (cpp_num_part): Move to cpplib.h.
2291 * cppinit.c (cpp_post_options): Set warn_long_long.
2292 * cpplib.h (struct cpp_options): Add warn_long_long.
2293 (cpp_num, cpp_num_part, CPP_N_CATEGORY, CPP_N_INVALID,
2294 CPP_N_INTEGER, CPP_N_FLOATING, CPP_N_WIDTH, CPP_N_SMALL,
2295 CPP_N_MEDIUM, CPP_N_LARGE, CPP_N_RADIX, CPP_N_DEC, CPP_N_HEX,
2296 CPP_N_OCTAL, CPP_N_UNSIGNED, CPP_N_IMAGINARY, cpp_classify_number,
2297 cpp_interpret_integer): New.
2298
61a8515c
JS
22992002-05-29 Joel Sherrill <joel@OARcorp.com>
2300
2301 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Use -m403 and -m405.
2302
53a428b5
JT
23032002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
2304
2305 * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
2274b31a
EC
2306 NETBSD_OS_CPP_BUILTINS_ELF and NETBSD_OS_CPP_BUILTINS_LP64.
2307 (CPP_SUBTARGET_SPEC): Define.
2308 (SUBTARGET_EXTRA_SPECS): Define.
53a428b5
JT
2309 (CPP_SPEC): Remove.
2310
45b1f7c7
CL
23112002-05-29 Chris Lattner <sabre@nondot.org>
2312
1e730c5c
ZW
2313 * ssa.c (rename_insn_1): Rename uses of undefined registers to
2314 prevent confusion if/when the register is defined.
45b1f7c7 2315
049746c2
HPN
23162002-05-29 Hans-Peter Nilsson <hp@axis.com>
2317
2318 PR target/6838
2319 * config/cris/cris.md: Fix typos and thinkos in comments.
2320 ("*mov_sideqi_biap_mem"): Remove '*' in constraint for operand 4,
2321 second alternative.
2322 ("*mov_sidehi_biap_mem", "*mov_sidesi_biap_mem"): Ditto.
2323 ("*mov_sideqi_mem"): Similar, but for operand 3.
2324 ("*mov_sidehi_mem", "*mov_sidesi_mem"): Ditto.
2325 (splitter for mov_sideqi_mem, mov_sidehi_mem, mov_sidesi_mem):
2326 Remove spurious mode specifier on operand 2.
2327
4d4d89e2
KH
23282002-05-29 Kazu Hirata <kazu@cs.umass.edu>
2329
2330 * config/h8300/h8300-protos.h: Remove the prototype for
2331 o_operand.
2332 Add prototypes for single_one_operand and single_zero_operand.
2333 * config/h8300/h8300.c (o_operand): Remove.
2334 (single_one_operand): New.
2335 (single_zero_operand): Likewise.
2336 (print_operand): For 'V' operand, and the operand with 0xff.
2337 For 'V' and 'W' operands, do not and the bit position with 7.
2338 * config/h8300/h8300.md (various anonymous patterns): Replace
2339 use of exact_log2 with single_one_operand/single_zero_operand.
2340
abd6ddec
UW
23412002-05-29 Ulrich Weigand <uweigand@de.ibm.com>
2342
2343 * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New.
2344
da06d85a
UW
23452002-05-29 Ulrich Weigand <uweigand@de.ibm.com>
2346
2347 * config/s390/s390.c (legitimate_pic_operand_p): Do not
2348 accept symbolic LARL operands.
2274b31a 2349 (s390_emit_epilogue): Do not set FRAME_RELATED_P on
da06d85a 2350 epilogue insns.
2274b31a 2351
f8766020
HP
23522002-05-29 Hartmut Penner <hpenner@de.ibm.com>
2353
2354 * config/s390/s390.md (cmpstr_64/31): Mark whole
2274b31a 2355 input registers as used.
f8766020 2356
66edd3b4
RH
23572002-05-28 Richard Henderson <rth@redhat.com>
2358
2359 * config/i386/i386.c (ix86_save_reg): Examine regs_ever_live,
2360 not current_function_uses_pic_offset_table and
2361 current_function_uses_const_pool; examine current_function_profile.
2362 (ix86_expand_prologue): Likewise. Add pic_offset_table_rtx as
2363 input to blockage if needed.
2364 (ix86_expand_call): Do not set current_function_uses_pic_offset_table.
2365 (legitimize_pic_address): Likewise. Set regs_ever_live for
2366 pic_offset_table_rtx when invoked during reload.
2367 * config/i386/i386.h (FINALIZE_PIC): Remove.
2368 * config/i386/i386.md (tablejump): Reformat. Do not set
2369 current_function_uses_pic_offset_table.
2370 (tls_global_dynamic, tls_local_dynamic_base): Likewise.
2371 (blockage): Accept anything as operand 0.
2372
52f4fff6
JT
23732002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
2374
2375 * config/netbsd-aout.h (NETBSD_OS_CPP_BUILTINS_AOUT): Define
2376 common CPP built-ins for all NetBSD a.out targets.
2377 * config/netbsd-elf.h (NETBSD_OS_CPP_BUILTINS_ELF): Define
2378 common CPP built-ins for all NetBSD ELF targets.
2379 * config/netbsd.h: Add missing notice.
2380 (NETBSD_OS_CPP_BUILTINS_COMMON): Define common CPP built-ins
2381 for all NetBSD targets.
2382 (NETBSD_OS_CPP_BUILTINS_LP64): Define common CPP built-ins
2383 for all NetBSD targets using an LP64 code model.
2384 (NETBSD_CPP_SPEC): Define CPP_SPEC parts common to all
2385 NetBSD targets.
2386
e0e577a2
RH
23872002-05-28 Richard Henderson <rth@redhat.com>
2388
2389 * flow.c (update_life_info_in_dirty_blocks): Only do a partial
2390 update if UPDATE_LIFE_LOCAL.
2391
23922002-05-28 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
62526ec3
TM
2393
2394 * config/sh/sh.c: Include real.h for REAL_VALUE_TYPE.
2395
f1a58d92 2396Tue May 28 21:16:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
1e730c5c 2397 Jason R. Thorpe <thorpej@wasabisystems.com>
f1a58d92
R
2398
2399 config/sh reorganization to factor out endianness and coff:
2400
2401 * config/sh/little.h: New file.
1e730c5c
ZW
2402 * config/sh/sh.h (TARGET_ENDIAN_DEFAULT): If not already
2403 defined, define to 0 to select big-endian.
f1a58d92 2404 (SUBTARGET_ASM_ENDIAN_SPEC): Define according to TARGET_ENDIAN_DEFAULT.
1e730c5c
ZW
2405 (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
2406 * config/sh/sh64.h (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
2407 * config/sh/t-be: New file.
2408 * config/sh/t-le: New file.
f1a58d92
R
2409
2410 * sh.h (SDB_DEBUGGING_INFO, #include "dbxcoff.h"): Moved to sh/coff.h.
2411 (SDB_DELIM, MAX_OFILE_ALIGNMENT, IDENT_ASM_OP): Likewise.
2412 (TARGET_ASM_NAMED_SECTION, ASM_OUTPUT_SKIP): Likewise.
2413 (USER_LABEL_PREFIX, LOCAL_LABEL_PREFIX): Likewise.
2414 (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Likewise.
2415 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
2416 (ASM_FILE_END, ASM_DECLARE_FUNCTION_NAME): Deleted.
2417 (CPP_SPEC, SUBTARGET_CPP_ENDIAN_SPEC): Likewise.
2418 (SUBTARGET_CPP_SPEC, CPP_DEFAULT_CPU_SPEC, CPP_PREDEFINES): Likewise.
2419 (EXTRA_SPECS): Remove SUBTARGET_CPP_ENDIAN_SPEC and
2420 CPP_DEFAULT_CPU_SPEC. Add LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL,
2421 SUBTARGET_LINK_EMUL_SUFFIX and SUBTARGET_LINK_SPEC.
2422 (LINK_SPEC): Define to SH_LINK_SPEC.
2423 (TARGET_CPU_CPP_BUILTINS, SH_LINK_SPEC): Define.
2424 (LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL): Likewise.
2425 (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
2426 (CPP_SPEC): Reduce to %(subtarget_cpp_spec).
2427 (TARGET_ENDIAN_DEFAULT): Define if not already defined.
2428 * config/sh/coff.h: New file.
2429 (TARGET_ASM_NAMED_SECTION): Now default_coff_asm_named_section
2430 (TARGET_OBJFMT_CPP_BUILTINS): Define.
2431 * config/sh/elf.h (IDENT_ASM_OP): No need to #undef at the start.
2432 (ASM_FILE_END, ASM_OUTPUT_SOURCE_LINE): Likewise.
2433 (DBX_OUTPUT_MAIN_SOURCE_FILE_END, TARGET_ASM_NAMED_SECTION): Likewise.
2434 (ASM_DECLARE_FUNCTION_NAME, MAX_OFILE_ALIGNMENT, SIZE_TYPE): Likewise.
2435 (PTRDIFF_TYPE): Likewise.
2436 ("dbxelf.h", "elfos.h", "svr4.h"): Don't #include.
2437 (CPP_PREDEFINES): Don't define.
2438 (TARGET_OBJFMT_CPP_BUILTINS): Define.
2439 (LINK_SPEC): Define to SH_LINK_SPEC.
2440 (LINK_EMUL_PREFIX): Redefine.
2441 * config/sh/linux.h: (SUBTARGET_CPP_SPEC): Remove -fpic / -fPIC cases.
2442 (SUBTARGET_CPP_ENDIAN_SPEC, CPP_DEFAULT_CPU_SPEC): Remove redefinition.
2443 (CPP_PREDEFINES, SUBTARGET_ASM_ENDIAN_SPEC): Likewise.
2444 (CC1_SPEC, CC1PLUS_SPEC, LINK_SPEC): Likewise.
2445 (TARGET_OS_CPP_BUILTINS): Define.
2446 (TARGET_DEFAULT): Redefine.
2447 (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
2448 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Remove.
2449 (LINK_SPEC): Don't redefine.
2450 (LINK_DEFAULT_CPU_EMUL): Redefine.
2451 (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
2452 * sh.c (sh_asm_named_section): Don't declare / define.
2453 * t-linux (MULTILIB_OPTIONS): Rely on pre-set endianness option.
2454 * config.gcc (sh-*-elf* tm_file): Add dbxelf.h elfos.h svr4.h.
2455 (sh64-*-elf* tm_file): Likewise.
2456 (sh-*-rtemself* tm_file): Likewise.
2457 (sh-*-linux* tm_file): Likewise. Add sh/little.h.
2458 (sh-*-linux* tmake_file): Add sh/t-le.
2459 (sh-*-rtems* tm_file): Add sh/coff.h
2460 (sh-*-* tm_file): Likewise.
2461
2462Tue May 28 21:16:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
2463
2464 * sh.h (LEGITIMATE_PIC_OPERAND_P): Check for SYMBOL_REF before using
2465 CONSTANT_POOL_ADDRESS_P.
2466
2467 * coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Define.
2468
d10791ba 24692002-05-28 David Edelsohn <edelsohn@gnu.org>
33a3dfc4
DE
2470 Jeff Law <law@redhat.com>
2471
64de6c0a
DE
2472 * optabs.c (expand_binop): Fix nwords sign warnings.
2473 generate pseudo for add_optab.
2474
33a3dfc4
DE
2475 * sched-deps.c (sched_analyze): Do not clear SCHED_GROUP_P.
2476 * haifa-sched.c (move_insn): Clear SCHED_GROUP_P after it is used.
2477
972957ba 24782002-05-28 Marc Espie <espie@openbsd.org>
33a3dfc4 2479
2274b31a 2480 * config/i386/openbsd.h (HAVE_GAS_MAX_SKIP_P2ALIGN): Remove,
972957ba
ME
2481 inherited from gas.h.
2482 (ASM_QUAD): Undef. OpenBSD does not support it.
2483
cc92b8ab
DS
24842002-05-28 Danny Smith <dannysmith@users.sourceforge.net>
2485
2486 * doc/install.texi (binaries): Change mingw binaries
2487 link to www.mingw.org.
2488
f8088d55
ZD
24892002-05-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2490
2491 * cfgloop.c (flow_loops_cfg_dump): Use bb->index, not i.
2492
0b7ae565
RH
24932002-05-28 Richard Henderson <rth@redhat.com>
2494
2495 * config/i386/i386.c (ix86_compute_frame_layout): Do not add
2496 bottom alignment for leaf functions.
2497
16069d69
ZW
24982002-05-28 Zack Weinberg <zack@codesourcery.com>
2499
2500 * config/pa/milli32.S, config/pa/lib1funcs.asm,
2501 config/sparc/sol2-g1.asm: Delete unused files.
2502
04653686
RH
25032002-05-28 Richard Henderson <rth@redhat.com>
2504
2505 * cfg.c (dump_flow_info): Print bb->index, not i, for block number.
2506
f3ea5f6a
RH
2507 * flow.c (calculate_global_regs_live): Rename call_used to
2508 invalidated_by_call. Initialize from regs_invalidated_by_call
2509 instead of call_used_regs.
2510
923c7cdf
RH
2511 * varasm.c (default_binds_local_p): Check TREE_PUBLIC before
2512 DECL_EXTERNAL.
2513
11ad4784
ZW
25142002-05-28 Zack Weinberg <zack@codesourcery.com>
2515
8abbd76a
ZW
2516 * tree.h: Don't include real.h.
2517 Forward-declare struct realvaluetype.
11ad4784
ZW
2518 (struct tree_real_cst): Point to the REAL_VALUE_TYPE, do not
2519 contain it.
2520 (TREE_REAL_CST_PTR): New accessor.
2521 (TREE_REAL_CST): Update.
2522 * real.h: Include machmode.h.
2274b31a 2523 (realvaluetype): Make it struct realvaluetype, not a typedef.
11ad4784
ZW
2524 (build_real): Prototype here.
2525
2526 * tree.c: Include real.h.
2274b31a
EC
2527 (build_real): Allocate the REAL_VALUE_TYPE as a separate
2528 object in GC memory, set TREE_REAL_CST_PTR to point to it.
11ad4784
ZW
2529 (build_real_from_int_cst): Use build_real.
2530 * ggc-common.c (ggc_mark_trees): Mark TREE_REAL_CST_PTR of a
2531 REAL_CST.
2532
2533 * builtins.c, c-common.c, c-lex.c, dwarf2out.c, expr.c,
2534 fold-const.c, print-tree.c, real.c: Include real.h.
2535 * Makefile.in: Update dependency lists.
2536
bf77398c
ZD
25372002-05-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2538
2539 * basic-block.h (last_basic_block): Declare.
2540 (expunge_block_nocompact): Declaration removed.
2541 (compact_blocks): Declare.
2542 * cfg.c (last_basic_block): New variable.
2543 (expunge_block_nocompact): Removed.
2544 (expunge_block): Do not compact basic blocks.
2545 (compact_blocks): New.
2546 * cfganal.c (flow_call_edges_add): Use the fact that bb indices no
2547 longer change.
2548 * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Set
2549 last_basic_block.
2550 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Do not change
2551 real positions of blocks.
2552 (delete_unreachable_blocks): Simplified -- quadratic behavior now
2553 cannot occur.
2554 (cleanup_cfg): Compact blocks.
2555 * cfgrtl.c (create_basic_block): Insert basic blocks to the end of
2556 basic_block_info varray.
2557 (flow_delete_block): Comment update.
2558 (back_edge_of_syntactic_loop_p): Modify position check code.
2559 (verify_flow_info): Update checking.
2560 * flow.c (calculate_global_regs_live): Use FOR_EACH_BB.
2561 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
2562 (find_if_case_1, find_if_case_2, if_convert): Use the fact that bb
2563 indices no longer change.
2564 * lcm.c (optimize_mode_switching): Replace n_basic_blocks with
2565 last_basic_block.
2566 * predict.c (estimate_bb_frequencies): Remove unneccessary code.
2567 * profile.c (branch_prob): Compact blocks.
2568 * sched-rgn.c (find_rgns): Replace n_basic_blocks with
2569 last_basic_block.
2570
ae12a094
KH
25712002-05-28 Kazu Hirata <kazu@cs.umass.edu>
2572
2573 * config/h8300/h8300.md (two anonymous patterns): New.
2574
c6172f14
DM
25752002-05-28 David S. Miller <davem@redhat.com>
2576
2577 * config/sparc/sparc.md (cpu): Tidy.
2578 (type): Delete 'return', add 'ialuX', 'flushw', 'iflush', and
2579 'trap'.
2580 (in_call_delay): Delete reference to 'return' type.
2581 (eligible_for_return_delay, in_return_delay, define_delay
2582 referencing those): Delete.
2583 (rest of file): Use new type attributes as appropriate.
2584 * config/sparc/sparc-protos.h (eligible_for_return_delay): Delete.
2585 * config/sparc/sparc.c (eligible_for_return_delay): Likewise.
2586 * config/sparc/ultra1_2.md (us1_single): New reservation.
2587 (us1_ialuX): Likewise.
2588 * config/sparc/ultra3.md (us3_single): Likewise.
2589 (us3_ialuX): Likewise.
2590 (us3_imul, us3_idiv): Tweak.
2274b31a 2591
34a6c2ec
RH
25922002-05-28 Richard Henderson <rth@redhat.com>
2593
2594 * config/alpha/alpha.c (alpha_in_small_data_p): Return false for
2595 STRING_CST.
2596
9c075570
RH
25972002-05-28 Richard Henderson <rth@redhat.com>
2598
2599 * config.gcc: Obsolete mn10200.
2600
359b0bec
NB
26012002-05-28 Neil Booth <neil@daikokuya.demon.co.uk>
2602
2603 * cppexp.c (interpret_number): Optimize for single-digit
2604 and less-than-half-precision cases.
2605 (num_trim, num_positive, num_div_op): Cast constants.
2606
4075db8f
BT
26072002-05-27 Bo Thorsen <bo@suse.de>
2608
2609 * config/i386/libgcc-x86_64-glibc.ver: Copy this file from the
2610 3.1 branch. The file was made by Jakub Jelinek.
2611 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Add i386
2612 support so multilib doesn't break. And don't define this at all
2613 when -Dinhibit_libc is used.
2614 (MULTILIB_DEFAULTS): Always set default to 64 bit compilation.
2615 * config/i386/t-linux64: Implement full multilib support. Patch
2616 originally done by Andreas Jaeger and Jakub Jelinek.
2617
39f2f3c8
RS
26182002-05-27 Roger Sayle <roger@eyesopen.com>
2619
2620 * c-common.c: Add support for __attribute__((nothrow)) to specify
2621 that a function cannot throw an exception (using TREE_NOTHROW).
2622 (handle_nothrow_attribute): New function to process this attribute.
2623
2624 * doc/extend.texi: Document the new nothrow function attribute.
2625
d51b0053
L
26262002-05-27 H.J. Lu (hjl@gnu.org)
2627
2628 * cppexp.c (num_trim): Use 1UL instead of 1 for long int.
2629 (num_positive): Likewise.
2630 (num_div_op): Likewise.
2631
630363b4
NB
26322002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
2633
2634 * c-common.c (c_common_init): Always use intmax_t.
2635
d94cde01
NB
26362002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
2637
2638 * c-common.c (c_common_init): Use intmax_t for now.
2639
57f851a3
AH
26402002-05-24 Andrew Haley <aph@redhat.com>
2641
2642 * fold-const.c (fold): Don't convert (T)(x & c) into (T)x & (T)c
2643 if T is a boolean type.
2644
d55bc081
ZD
26452002-05-27 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2646
2647 * basic-block.h (last_basic_block): Defined as synonym for
2648 n_basic_blocks.
2649 * cfganal.c (mark_dfs_back_edges, flow_reverse_top_sort_order_compute,
2650 flow_depth_first_order_compute, flow_preorder_transversal_compute,
2651 flow_dfs_compute_reverse_init): Replaced relevant occurences of
2652 n_basic_blocks with last_basic_block.
2653 * cfgbuild.c (make_edges): Likewise.
2654 * cfgloop.c (flow_loop_scan, flow_loops_find): Likewise.
2655 * cfgrtl.c (verify_flow_info, purge_all_dead_edges): Likewise.
2656 * combine.c (combine_instructions): Likewise.
2657 * df.c (df_alloc, df_analyse_1, df_analyse, iterative_dataflow_sbitmap,
2658 iterative_dataflow_bitmap): Likewise.
2659 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
2660 calc_idoms, idoms_to_doms): Likewise.
2661 * flow.c (update_life_info_in_dirty_blocks, free_basic_block_vars):
2662 Likewise.
2663 * gcse.c (gcse_main, alloc_gcse_mem, compute_local_properties,
2664 compute_hash_table, expr_reaches_here_p, one_classic_gcse_pass,
2665 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p,
2666 one_pre_gcse_pass, compute_transpout, delete_null_pointer_checks_1,
2667 delete_null_pointer_checks, compute_code_hoist_vbeinout,
2668 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
2669 compute_store_table, build_store_vectors): Likewise.
2670 * haifa-sched.c (sched_init): Likewise.
2671 * ifcvt.c (if_convert): Likewise.
2672 * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
2673 pre_edge_lcm, compute_available, compute_nearerout,
2674 compute_rev_insert_delete, pre_edge_rev_lcm, optimize_mode_switching):
2675 Likewise.
2676 * predict.c (estimate_probability, process_note_prediction,
2677 note_prediction_to_br_prob): Likewise.
2678 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX): Likewise.
2679 * recog.c (split_all_insns, peephole2_optimize): Likewise.
2680 * regrename.c (copyprop_hardreg_forward): Likewise.
2681 * resource.c (init_resource_info): Likewise.
2682 * sched-rgn.c (build_control_flow, find_rgns, compute_trg_info,
2683 init_regions, schedule_insns): Likewise.
2684 * ssa-ccp.c (ssa_const_prop): Likewise.
2685 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
2686 * ssa.c (compute_dominance_frontiers,
2687 compute_iterated_dominance_frontiers, convert_to_ssa): Likewise.
2688
2689 * df.c (df_refs_unlink): Fix FOR_EACH_BB usage (in #if 0'ed code)
2690 * gcse.c (alloc_rd_mem, alloc_avail_expr_mem): Use n_blocks for vector
2691 sizes consistently.
2692
71d2c5bd
JH
2693Mon May 27 14:28:12 CEST 2002 Jan Hubicka <jh@suse.cz>
2694
2695 * basic-block.h (can_hoist_p, hoist_insn_after, hoist_insn_to_edge):
2696 new.
2697 * rtlanal.c (hoist_test_store, can_hoist_insn_p, hoist_update_store,
2698 hoist_insn_after, hoist_insn_to_edge): New.
2699
5149f070
JH
2700Mon May 27 12:14:02 CEST 2002 Jan Hubicka <jh@suse.cz>
2701
2702 * basic-block.h (PEOP_SCAN_DEAD_STORES): New.
2703 (PROP_FINAL): Include.
2704 * flow.c (life_analysis, update_life_info,
2705 init_propagate_block_info, mark_set_1, mark_used_rgs):
2706 Support SCAN_DEAD_STORE.
2707
c9220e3a
NB
27082002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
2709
2710 * c-common.c (c_common_init): Set CPP arithmetic precision.
2711 * cppexp.c (cpp_num_part): Move typedef ...
2712 * cpphash.h: ...here; make unsigned HOST_WIDE_INT.
2713 * cppinit.c (cpp_create_reader): Default to host long arithmetic.
2714 (sanity_checks): Update.
2715
e34a3d31
GK
27162002-05-26 Geoffrey Keating <geoffk@redhat.com>
2717
2718 * Makefile.in (INSTALL_HEADERS): Add 'install-mkheaders'.
2719 (mkheaders): New rule.
2720 (install-mkheaders): New rule.
2721 * configure.in (all_outputs): Add mkheaders.
2722 * configure: Regenerate.
2723 * mkheaders.in: New file.
2724
9059e33c
JJ
27252002-05-26 Jakub Jelinek <jakub@redhat.com>
2726
2727 * cse.c (fold_rtx): Don't optimize if SUBREG changes mode class.
2728
291cc0fe
AJ
27292002-05-26 Andreas Jaeger <aj@suse.de>
2730
2731 * cfg.c (dump_flow_info): Remove extra argument to fprintf.
2732
91318908
NB
27332002-05-26 Neil Booth <neil@daikokuya.demon.co.uk>
2734
2735 * cppexp.c (possible_sum_sign, integer_overflow, left_shift,
2736 right_shift): Remove.
2737 (cpp_num, cpp_num_part, PART_PRECISION, HALF_MASK, LOW_PART,
2738 HIGH_PART): New.
2739 (struct op): Use cpp_num.
2740 (num_zerop, num_eq, num_positive, num_greater_freq, num_trim,
2741 num_part_mul, num_unary_op, num_binary_op, num_negate,
2742 num_bitwise_op, num_inequality_op, num_equality_op, num_mul,
2743 num_div_op, num_lshift, num_rshift, append_digit): New.
2744 (interpret_number, parse_defined, eval_token, reduce): Update
2745 for two-integer arithmetic.
2746 (binary_handler): New typedef.
2747 (optab): Update.
2748 (COMPARE, EQUALITY, BITWISE, MINMAX, UNARY, SHIFT): Delete.
2749 (_cpp_parse_expr, reduce): Update to handle two-integers.
2750 * cpplib.c (_cpp_test_assertion): Back up on CPP_EOF.
2751
331ca350
MM
27522002-05-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
2753
2754 * config/avr/avr-protos.h (avr_out_sbxx_branch): Declare.
2755 * config/avr/avr.c (jump_over_one_insn_p): Take length of the
2756 branch insn into account, do not assume 1.
2757 (avr_out_sbxx_branch): New function. Optimize cases of skipping
2758 over single word insn. Handle upper half of I/O space too.
2759 * config/avr/avr.md (*sbrx_branch): Use it.
2760 (*sbrx_and_branchhi, *sbrx_and_branchsi): Likewise.
2761 (*sbix_branch, *sbix_branch_bit7): Likewise.
2762 (*sbix_branch_tmp, *sbix_branch_tmp_bit7): New.
2763 Use RTL peepholes to optimize register operand sign tests.
2764
bcb6a2be
MM
27652002-05-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
2766
2767 * config/avr/avr.c (avr_asm_only_p): New variable.
2768 (avr_override_options): Set it here if AVR1.
2769 (asm_file_start): Test it here, report an error if set.
2770
ca7fd9cd
KH
27712002-05-26 Kazu Hirata <kazu@cs.umass.edu>
2772
2773 * alias.c: Fix formatting.
2774 * attribs.c: Likewise.
2775 * bb-reorder.c: Likewise.
2776 * bitmap.c: Likewise.
2777 * bitmap.h: Likewise.
2778 * builtins.c: Likewise.
2779
a65dc37d
JH
2780Sun May 26 14:00:44 CEST 2002 Jan Hubicka <jh@suse.cz>
2781
2782 * reload.c (find_valid_class): Accept new argument DEST,
2783 choose class accordingly.
2784 (push_reload): Update callers.
2785
9b89393b
AJ
27862002-05-26 Andreas Jaeger <aj@suse.de>
2787
2788 * combine.c (combine_instructions): Do not indent #if for
2789 traditional C.
2790
b53bb376
RH
27912002-05-25 Richard Henderson <rth@redhat.com>
2792
2793 * c-pragma.c (apply_pragma_weak): Convert value identifier to
2794 string for decl_attributes.
2795 (handle_pragma_weak): Call assemble_alias if we're modifying
2796 an existing decl.
2797
e133041b
RH
27982002-05-25 Richard Henderson <rth@redhat.com>
2799
2800 PR target/6788
2801 * config/sparc/sparc.c (sparc_output_mi_thunk): New implementation
2802 using rtl instead of fprintf.
2803 * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Use it.
2804 * config/sparc/sparc-protos.h: Update.
2805
81a75f0f
NB
28062002-05-25 Neil Booth <neil@daikokuya.demon.co.uk>
2807
2808 * Makefile.in (C_COMMON_H): Fix.
2809 Update other targets.
2810 * c-common.c: Don't include c-lex.h.
2811 (builtin_define_with_value): Make static and prototype.
2812 (builtin_define_std): Move from c-lex.h.
2813 * c-common.h (init_c_lex): Move from c-lex.h.
2814 * c-decl.c: Don't include c-lex.h.
2815 (make_pointer_declarator): Move from c-parse.in.
2816 * c-lex.c: Don't include c-lex.h.
2817 * c-lex.h: Remove.
2818 * c-parse.in: Don't include c-lex.h; include c-pragma.h.
2819 (make_pointer_declarator): Move to c-decl.c.
2820 * c-pragma.c: Don't include c-lex.h.
2821 * c-pragma.h (yydebug, YYDEBUG, parse_in, c_lex): Move from c-lex.h.
2822 * c-tree.h (make_pointer_declarator): New.
2823doc:
2824 * passes.texi, tm.texi: Update.
2825objc:
2826 * Make-lang.in: Update and correct.
2827 * objc-act.c: Don't include c-lex.h or cpplib.h.
2828treelang:
2829 * treetree.c: Don't include c-lex.h.
2830config:
2831 * darwin-c.c: Don't include c-lex.h.
2832 * c4x/c4x-c.c: Don't include c-lex.h.
2833 * c4x/t-c4x: Update.
2834 * i370/i370-c.c: Don't include c-lex.h.
2835 * i370/t-i370: Update.
2836 * i960/i960-c.c: Don't include c-lex.h.
2837 * i960/i960.c: Don't include cpplib.h, c-lex.h or c-pragma.h.
2838 * i960/t-960bare: Update.
2839 * i960/t-vxworks: Update.
2840 * rs6000/rs6000-c.c: Don't include c-lex.h; include c-pragma.h.
2841 * rs6000/t-darwin: Update.
2842 * rs6000/t-rs6000-c-rule: Update.
2843 * v850/v850-c.c: Don't include c-lex.h.
2844 * v850/v850.c: Don't include c-lex.h or cpplib.h.
2845
2846
04d2be8e
KH
28472002-05-25 Kazu Hirata <kazu@cs.umass.edu>
2848
2849 * tree.def: Fix typos.
2850 * doc/install.texi: Likewise.
2851
7b6e506e
RH
28522002-05-25 Richard Henderson <rth@redhat.com>
2853
2854 * configure.in (HAVE_AS_TLS): Add ia64 test.
2855 * configure: Rebuild.
2856 * config/ia64/ia64.c (ia64_tls_size_string, ia64_tls_size): New.
2857 (override_options): Set it.
2858 (TARGET_HAVE_TLS): New.
2859 (sdata_symbolic_operand): Look for 's'.
2860 (tls_symbolic_operand): New.
2861 (ia64_expand_load_address): Abort for tls symbols.
2862 (gen_tls_get_addr): New.
2863 (gen_thread_pointer): New.
2864 (ia64_expand_move): Split out from movdi. Handle tls symbols.
2865 (rtx_needs_barrier): Add new unspecs.
2866 (ia64_encode_section_info): Handle tls symbols.
2867 (ia64_strip_name_encoding): Strip two encoding chars.
2868 * config/ia64/ia64.h (ia64_tls_size, ia64_tls_size_string): New.
2869 (TARGET_TLS14, TARGET_TLS22, TARGET_TLS64): New.
2870 (TARGET_OPTIONS): Add tls-size.
2871 (ENCODE_SECTION_INFO_CHAR): Rename from SDATA_NAME_FLAG_CHAR.
2872 * config/ia64/ia64.md (UNSPEC_LTOFF_DTPMOD, UNSPEC_LTOFF_DTPREL,
2873 UNSPEC_DTPREL, UNSPEC_LTOFF_TPREL, UNSPEC_TPREL, UNSPEC_LD_BASE): New.
2874 (movqi, movhi, movsi, movdi, movti): Use ia64_expand_move.
2875 (movsf, movdf): Likewise.
2876 (movdi_symbolic): Use match_scratch. Don't split if we won't
2877 have a scratch availiable.
2878 (load_ltoff_dtpmod, load_dtprel, load_dtprel64, load_dtprel22,
2879 add_dtprel, add_dtprel14, add_dtprel22, load_ltoff_tprel, load_tprel,
2880 load_tprel64, load_tprel22, add_tprel, add_tprel14, add_tprel22): New.
2881 * config/ia64/ia64-protos.h: Update.
2882 * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
2883 sdata_symbolic_operand.
2884 (ASM_OUTPUT_LABELREF): Strip two characters.
2885
8c1d52a3
KH
28862002-05-25 Kazu Hirata <kazu@cs.umass.edu>
2887
2888 * combine.c (simplify_set): Remove an unnecessary subreg.
2889
b47cae3d
MM
28902002-05-25 Marek Michalkiewicz <marekm@amelek.gda.pl>
2891
2892 * config/avr/avr.c (avr_handle_progmem_attribute): Handle TYPE_DECL.
2893
2894 * config/avr/avr.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_BSS): New.
2895
ce9e3a6d
GDR
28962002-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
2897
2898 * toplev.c (output_clean_symbol_name): Fix another thinko. Gosh.
2899
fb2c6841
RS
29002002-05-25 Roger Sayle <roger@eyesopen.com>
2901
2902 * simplify-rtx.c (simplify_gen_relational): Simplify the RTX
2903 (cond (compare x y) 0) into the equivalent (cond x y).
2904
da7ac8f1
GDR
29052002-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
2906
2907 * toplev.c (output_clean_symbol_name): Use xstrdup. Fix thinko.
2908
c7bdf0a6
ZW
29092002-05-24 Zack Weinberg <zack@codesourcery.com>
2910
2911 * config.gcc: Remove all stanzas for previously obsoleted
2912 systems. Where necessary, add explicit error stanzas to
2913 prevent removed systems from being misidentified as something
2914 else. Begin a fresh obsoletions list, with the systems that
2915 were reprieved last round.
2916 * doc/install.texi: Remove all mention of dead targets.
2917 * fixinc/mkfixinc.sh: Likewise.
2918
2919 * config/arm/arm.h: Bit 31 of target_flags is no longer
2920 reserved.
2921
2922 * config/1750a/1750a-protos.h, config/1750a/1750a.c,
2923 config/1750a/1750a.h, config/1750a/1750a.md, config/1750a/ms1750.inc,
2924 config/a29k/a29k-protos.h, config/a29k/a29k.c, config/a29k/a29k.h,
2925 config/a29k/a29k.md, config/a29k/rtems.h, config/a29k/t-a29kbare,
2926 config/a29k/t-vx29k, config/a29k/unix.h, config/a29k/vx29k.h,
2927 config/alpha/osf12.h, config/alpha/osf2or3.h,
2928 config/arm/arm-wince-pe.h, config/arm/arm.h, config/arm/riscix.h,
2929 config/arm/riscix1-1.h, config/arm/rix-gas.h, config/arm/t-riscix,
2930 config/clipper/clipper-protos.h, config/clipper/clipper.c,
2931 config/clipper/clipper.h, config/clipper/clipper.md,
2932 config/clipper/clix.h, config/convex/convex-protos.h,
2933 config/convex/convex.c, config/convex/convex.h,
2934 config/convex/convex.md, config/convex/fixinc.convex,
2935 config/convex/proto.h, config/elxsi/elxsi-protos.h,
2936 config/elxsi/elxsi.c, config/elxsi/elxsi.h, config/elxsi/elxsi.md,
2937 config/i386/386bsd.h, config/i386/aix386.h, config/i386/aix386ng.h,
2938 config/i386/bsd386.h, config/i386/dgux.h, config/i386/djgpp-rtems.h,
2939 config/i386/isc.h, config/i386/iscdbx.h, config/i386/linux-oldld.h,
2940 config/i386/next.h, config/i386/osf1-ci.asm, config/i386/osf1-cn.asm,
2941 config/i386/osf1elf.h, config/i386/osf1elfgdb.h, config/i386/osfelf.h,
2942 config/i386/osfrose.h, config/i386/rtems.h, config/i386/seq-gas.h,
2943 config/i386/seq-sysv3.h, config/i386/seq2-sysv3.h,
2944 config/i386/sequent.h, config/i386/sun.h, config/i386/sun386.h,
2945 config/i386/t-dgux, config/i386/t-next, config/i386/t-osf,
2946 config/i386/t-osf1elf, config/i860/bsd-gas.h, config/i860/bsd.h,
2947 config/i860/fx2800.h, config/i860/i860-protos.h, config/i860/i860.c,
2948 config/i860/i860.h, config/i860/i860.md, config/i860/mach.h,
2949 config/i860/paragon.h, config/i860/sysv3.h, config/i860/sysv4.h,
2950 config/i860/t-fx2800, config/i860/varargs.asm, config/m68k/a-ux.h,
2951 config/m68k/altos3068.h, config/m68k/apollo68.h,
2952 config/m68k/aux-crt1.c, config/m68k/aux-crt2.asm,
2953 config/m68k/aux-crtn.asm, config/m68k/aux-exit.c,
2954 config/m68k/aux-low.gld, config/m68k/aux-mcount.c,
2955 config/m68k/auxas.h, config/m68k/auxgas.h, config/m68k/auxgld.h,
2956 config/m68k/auxld.h, config/m68k/ctix.h, config/m68k/dpx2.h,
2957 config/m68k/dpx2.ifile, config/m68k/dpx2cdbx.h, config/m68k/dpx2g.h,
2958 config/m68k/isi-nfp.h, config/m68k/isi.h, config/m68k/lynx-ng.h,
2959 config/m68k/lynx.h, config/m68k/math-3300.h, config/m68k/news.h,
2960 config/m68k/news3.h, config/m68k/news3gas.h, config/m68k/newsgas.h,
2961 config/m68k/next.h, config/m68k/next21.h, config/m68k/rtems.h,
2962 config/m68k/t-aux, config/m68k/t-lynx, config/m68k/t-next,
2963 config/m68k/x-next, config/m88k/dgux.h, config/m88k/dgux.ld,
2964 config/m88k/dguxbcs.h, config/m88k/dolph.h, config/m88k/dolphin.ld,
2965 config/m88k/luna.h, config/m88k/m88k-coff.h, config/m88k/sysv3.h,
2966 config/m88k/t-bug, config/m88k/t-dgux, config/m88k/t-dgux-gas,
2967 config/m88k/t-dguxbcs, config/m88k/t-dolph, config/m88k/t-m88k-gas,
2968 config/m88k/t-tekXD88, config/m88k/tekXD88.h, config/m88k/tekXD88.ld,
2969 config/mips/bsd-4.h, config/mips/bsd-5.h, config/mips/dec-bsd.h,
2970 config/mips/dec-osf1.h, config/mips/elflorion.h,
2971 config/mips/iris4loser.h, config/mips/mips-5.h, config/mips/news4.h,
2972 config/mips/news5.h, config/mips/nws3250v4.h, config/mips/osfrose.h,
2973 config/mips/svr3-4.h, config/mips/svr3-5.h, config/mips/svr4-4.h,
2974 config/mips/svr4-5.h, config/mips/svr4-t.h, config/mips/t-bsd,
2975 config/mips/t-bsd-gas, config/mips/t-svr3, config/mips/t-svr3-gas,
2976 config/mips/t-svr4, config/mips/t-svr4-gas, config/mips/t-ultrix,
2977 config/mips/ultrix.h, config/nextstep-protos.h, config/nextstep.c,
2978 config/nextstep.h, config/nextstep21.h, config/ns32k/encore.h,
2979 config/ns32k/merlin.h, config/ns32k/pc532-mach.h,
2980 config/ns32k/pc532-min.h, config/ns32k/pc532.h,
2981 config/ns32k/sequent.h, config/ns32k/tek6000.h,
2982 config/ns32k/tek6100.h, config/ns32k/tek6200.h, config/pj/lib1funcs.S,
2983 config/pj/linux.h, config/pj/pj-protos.h, config/pj/pj.c,
2984 config/pj/pj.h, config/pj/pj.md, config/pj/pjl.h, config/pj/t-pj,
2985 config/sparc/rtems.h, config/we32k/we32k-protos.h,
2986 config/we32k/we32k.c, config/we32k/we32k.h, config/we32k/we32k.md:
2987 Delete file.
2988
755ac5d4
RH
29892002-05-24 Richard Henderson <rth@redhat.com>
2990
2991 * flags.h (TLS_MODEL_GLOBAL_DYNAMIC): Set to 1.
2992 * toplev.c (flag_tls_default) Set to TLS_MODEL_GLOBAL_DYNAMIC.
2993 * config/i386/i386.c (tls_model_chars): Add leading space.
2994 (tls_symbolic_operand): Don't bias by 1.
2995 (legitimize_address): Don't unbias by 1.
2996
c429f12e
TM
29972002-05-24 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
2998
2999 * lcm.c (optimize_mode_switching): Change bb used as indices
3000 to bb->index.
3001
8beda321
RH
30022002-05-24 Richard Henderson <rth@redhat.com>
3003
3004 * config/ia64/ia64.c (ia64_reorg): Use update_life_info instead
3005 of update_life_info_in_dirty_blocks.
3006
90442291
JJ
30072002-05-24 Jakub Jelinek <jakub@redhat.com>
3008
3009 PR other/6782
3010 * final.c (get_mem_expr_from_op): Return 0 if op is NULL.
3011
3620711b
NB
30122002-05-24 Neil Booth <neil@daikokuya.demon.co.uk>
3013
3014 PR preprocessor/6780
3015 * cppmacro.c (enter_macro_context): Clear state.angled_headers.
3016
2f8d482e
JB
30172002-05-24 Jim Blandy <jimb@redhat.com>
3018
3019 * dwarf2out.c (dwarf2out_finish): Don't forget to emit a final
3020 entry with a type code of zero, marking the end of the compilation
3021 unit's macro info.
3022
95bfe95f
RH
30232002-05-24 Richard Henderson <rth@redhat.com>
3024
c7bdf0a6
ZW
3025 * varasm.c (asm_output_bss): Always output one byte.
3026 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
95bfe95f 3027
7efda054
BM
30282002-05-24 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
3029
3030 * tree.c (decl_type_context): Return NULL_TREE if decl's context is a
3031 namespace.
3032
8a951190
AJ
30332002-05-24 Andreas Jaeger <aj@suse.de>
3034
3035 * ggc-page.c (alloc_page): Cast variables of type size_t to
3036 unsigned long, adjust printf format string.
3037 (ggc_alloc): Likewise.
3038 (ggc_print_statistics): Likewise.
3039 (ggc_print_statistics): Correct printf format string for SCALE to
3040 use unsigned long.
3041
f29e2ec0
DS
30422002-05-24 Danny Smith <dannysmith@users.sourceforge.net>
3043
3044 * config/i386/mingw32.h (CPP_SPEC): Remove -remap.
3045
211a0cbe 30462002-05-23 Gabriel Dos Reis <gdr@codesourcery.com>
c7bdf0a6 3047 Zack Weinberg <zack@codesourcery.com>
211a0cbe
GDR
3048
3049 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Properly output
3050 quoted strings.
3051 * dwarf2out.c (lookup_filename): Properly quote filename in .file
8a951190 3052 directive in assembly file.
211a0cbe
GDR
3053 * config/m68k/dpx2.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
3054 * config/m88k/m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
3055 * config/pj/pj.h (ASM_FILE_START): Likewise.
3056 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
3057 * config/avr/avr.c (asm_file_end): Likewise.
3058 * toplev.c (output_quoted_string): Handle possibly signed plain
8a951190 3059 char.
211a0cbe
GDR
3060 * toplev.h (output_clean_symbol_name): Declare
3061 * toplev.c (output_clean_symbol_name): Define.
3062 * config/alpha/alpha.c (unicosmk_output_module_name): Use it.
3063 * config/1750a/1750a.h (ASM_FILE_START): Likewise.
3064
2f0552b6
AM
30652002-05-24 Alan Modra <amodra@bigpond.net.au>
3066
3067 * config/rs6000/rs6000.c (output_toc): Mask longs to 32 bits.
3068
b326b2c1
VM
30692002-05-23 Vladimir Makarov <vmakarov@redhat.com>
3070
3071 * genautomata.c (reserv_sets_hash_value): Use shift equal to 3/4
3072 of size of unsigned.
3073
f996902d
RH
30742002-05-23 Richard Henderson <rth@redhat.com>
3075
3076 * configure.in (HAVE_AS_TLS): New test.
3077 * config.in, configure: Rebuild.
3078 * config/i386/i386.c (TARGET_HAVE_TLS): Set if HAVE_AS_TLS.
3079 (ix86_tls_dialect_string, ix86_tls_dialect): New.
3080 (override_options): Set it.
3081 (tls_model_chars, tls_symbolic_operand): New.
3082 (tls_symbolic_operand_1, global_dynamic_symbolic_operand): New.
3083 (local_dynamic_symbolic_operand, initial_exec_symbolic_operand): New.
3084 (local_exec_symbolic_operand): New.
3085 (get_pic_label_name): Merge into output_set_got.
3086 (ix86_asm_file_end): Emit pic_label_name if defined.
3087 (legitimate_constant_p, constant_address_p): New.
3088 (legitimate_pic_operand_p): New.
3089 (legitimate_pic_address_disp_p): Handle GOTTPOFF, NTPOFF, DTPOFF.
3090 (legitimate_address_p): Likewise.
3091 (ix86_encode_section_info): Rename from i386_; handle tls decls.
3092 (ix86_strip_name_encoding): New.
3093 (get_thread_pointer): New.
3094 (legitimize_address): Handle tls symbols.
3095 (output_pic_addr_const): Handle GOTTPOFF, TPOFF, NTPOFF, DTPOFF.
3096 Remove UNSPEC_PLT.
3097 (struct machine_function): Add some_ld_name.
3098 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Set it.
3099 (print_operand) [&]: Use it. Handle UNSPEC_TP.
3100 (output_addr_const_extra): New.
3101 (maybe_get_pool_constant): New.
3102 (ix86_split_to_parts): Use it.
3103 (ix86_expand_move): Handle tls symbols.
3104 (ix86_tls_get_addr): New.
3105 * config/i386/i386.h (TARGET_GNU_TLS, TARGET_SUN_TLS): New.
3106 (TARGET_OPTIONS): Add tls-dialect.
3107 (CONSTANT_ADDRESS_P): Use new out-of-line function.
3108 (LEGITIMATE_CONSTANT_P): Likewise.
3109 (LEGITIMATE_PIC_OPERAND_P): Likewise.
3110 (TARGET_STRIP_NAME_ENCODING): New.
3111 (ASM_OUTPUT_LABELREF): New.
3112 (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
3113 (OUTPUT_ADDR_CONST_EXTRA): New.
3114 (PREDICATE_CODES): Update.
3115 (ix86_tls_dialect, ix86_tls_dialect_string): New.
3116 * config/i386/i386.md: Regroup and renumber unspec constants.
3117 (tls_global_dynamic_gnu, tls_global_dynamic_sun): New.
3118 (tls_local_dynamic_base_gnu, tls_local_dynamic_base_sun): New.
3119 (tls_global_dynamic, tls_local_dynamic_base): New.
3120 (tls_local_dynamic_once): New.
3121 * config/i386/i386-protos.h: Update.
3122
821e35ba
RH
31232002-05-23 Richard Henderson <rth@redhat.com>
3124
3125 * genemit.c (gen_insn): Print file:lineno comment before function.
3126 (main): likewise.
3127 * gensupport.c (struct queue_elem): Add filename member.
3128 (queue_pattern): Initialize it; update all callers.
3129 (process_include): Don't free filename.
3130 (read_md_rtx): Set read_rtx_filename.
3131
0f1ffa23 31322002-05-23 Hans Boehm <Hans_Boehm@hp.com>
821e35ba
RH
3133
3134 * config/ia64/linux.h (IA64_GATE_AREA_END): Adjust for 64K pages.
0f1ffa23 3135
8e9fadc3
RH
31362002-05-23 Richard Henderson <rth@redhat.com>
3137
3138 * config/i386/i386.c (output_set_got): Fix typo in pic no-deep case.
3139
244c2241
RH
31402002-05-23 Richard Henderson <rth@redhat.com>
3141
3142 * doc/extend.texi (C++98 Thread-Local Edits): Update with
3143 commentary from Mark.
3144
e0082a72
ZD
31452002-05-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3146
3147 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1):
3148 Use FOR_EACH_BB macros to iterate over basic block chain.
3149 * cfg.c (clear_edges, clear_bb_flags, dump_flow_info,
3150 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges):
3151 Likewise.
3152 * cfganal.c (set_edge_can_fallthru_flag, flow_call_edges_add,
3153 find_unreachable_blocks, create_edge_list, verify_edge_list,
3154 remove_fake_edges, add_noreturn_fake_exit_edges,
3155 flow_preorder_transversal_compute, flow_dfs_compute_reverse_execute):
3156 Likewise.
3157 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
3158 find_sub_basic_blocks): Likewise.
3159 * cfgcleanup.c (try_optimize_cfg, delete_unreachable_blocks):
3160 Likewise.
3161 * cfglayout.c (record_effective_endpoints, cleanup_unconditional_jumps):
3162 Likewise.
3163 * cfgloop.c (flow_loops_cfg_dump, flow_loops_find):
3164 Likewise.
3165 * cfgrtl.c (compute_bb_for_insn, tidy_fallthru_edges,
3166 commit_edge_insertions, commit_edge_insertions_watch_calls,
3167 print_rtl_with_bb, verify_flow_info, purge_all_dead_edges): Likewise.
3168 * combine.c (combine_instructions, reg_dead_at_p): Likewise.
3169 * conflict.c (conflict_graph_compute): Likewise.
3170 * df.c (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
3171 df_modified_p, df_refs_unlink, df_dump): Likewise.
3172 * dominance.c (calc_dfs_tree, calculate_dominance_info): Likewise.
3173 * final.c (compute_alignments): Likewise.
3174 * flow.c (update_life_info, update_life_info_in_dirty_blocks,
3175 delete_noop_moves, calculate_global_regs_live, allocate_bb_life_data,
3176 count_or_remove_death_notes): Likewise.
3177 * gcse.c (oprs_unchanged_p, record_last_reg_set_info,
3178 compute_hash_table, compute_kill_rd, compute_rd, compute_ae_kill,
3179 classic_gcse, compute_transp, cprop, compute_pre_data,
3180 compute_transpout, invalidate_nonnull_info,
3181 delete_null_pointer_checks_1, delete_null_pointer_checks,
3182 compute_code_hoist_vbeinout, hoist_code, compute_ld_motion_mems,
3183 compute_store_table, build_store_vectors, store_motion): Likewise.
3184 * global.c (global_conflicts, mark_elimination): Likewise.
3185 * graph.c (print_rtl_graph_with_bb): Likewise.
3186 * haifa-sched.c (sched_init): Likewise.
3187 * ifcvt.c (if_convert): Likewise.
3188 * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
3189 compute_available, compute_nearerout, compute_rev_insert_delete,
3190 optimize_mode_switching): Likewise.
3191 * local-alloc.c (local_alloc, update_equiv_regs): Likewise.
3192 * predict.c (estimate_probability, note_prediction_to_br_prob,
3193 propagate_freq, counts_to_freqs, expensive_function_p,
3194 estimate_bb_frequencies): Likewise.
3195 * profile.c (instrument_edges, get_exec_counts,
3196 compute_branch_probabilities, compute_checksum, branch_prob,
3197 find_spanning_tree): Likewise.
3198 * recog.c (split_all_insns, peephole2_optimize): Likewise.
3199 * reg-stack.c (reg_to_stack, convert_regs_entry, convert_regs):
3200 Likewise.
3201 * regclass.c (scan_one_insn, regclass): Likewise.
3202 * regmove.c (mark_flags_life_zones, regmove_optimize,
3203 record_stack_memrefs): Likewise.
3204 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Likewise.
3205 * reload1.c (reload, reload_combine, fixup_abnormal_edges): Likewise.
3206 * resource.c (find_basic_block): Likewise.
3207 * sched-ebb.c (schedule_ebbs): Likewise.
3208 * sched-rgn.c (is_cfg_nonregular, build_control_flow,
3209 find_single_block_region, find_rgns, schedule_insns)
3210 * sibcall.c (optimize_sibling_and_tail_recursive_call)
3211 * ssa-ccp.c (optimize_unexecutable_edges,
3212 ssa_ccp_df_delete_unreachable_insns): Likewise.
3213 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
3214 * ssa.c (find_evaluations, compute_dominance_frontiers_1,
3215 rename_block, convert_to_ssa, compute_conservative_reg_partition,
3216 compute_coalesced_reg_partition, rename_equivalent_regs,
3217 convert_from_ssa): Likewise.
3218 * config/ia64/ia64.c (emit_predicate_relation_info, process_epilogue,
3219 process_for_unwind_directive): Likewise.
3220
3221 * df.c (FOR_ALL_BBS): Removed.
3222 * gcse.c (struct null_pointer_info): Type of current_block field
3223 changed.
3224 (struct reg_avail_info): Type of last_bb field changed.
3225 * config/ia64/ia64.c (block_num): Removed.
3226 (need_copy_state): Type changed.
3227 (last_block): New.
3228
17645b15
NB
32292002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
3230
3231 * cppinit.c (mark_named_operators): Split out from init_builtins.
3232 (cpp_finish_options): Call it from here instead.
3233
79ed7328
JT
32342002-05-23 Jason Thorpe <thorpej@wasabisystems.com>
3235
3236 * builtin-attrs.def: Update copyright years.
3237 (ATTR_NONNULL): New attribute identifier.
3238 (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_3): New
3239 attribute tree lists.
3240 (DEF_FORMAT_ATTRIBUTE): Chain a nonnull attribute for the
3241 format operand.
3242 (ATTR_FORMAT_ARG_1, ATTR_FORMAT_ARG_2): Use...
3243 (DEF_FORMAT_ARG_ATTRIBUTE): ...this to generate format_arg
3244 attribute lists. Chain the appropriate nonnull attribute.
3245 * c-format.c (check_format_arg): Remove null format string
3246 warning.
3247 * testsuite/gcc.dg/format/null-1.c: New test.
3248
7d600178
RO
32492002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3250
3251 * Makefile.in (ADAC): Define.
3252 (SYSLIBS): Define.
3253 (.SUFFIXES): Move before language makefile fragments.
3254 (STAGE2_FLAGS_TO_PASS): Use stage CC as ADAC.
3255
5ff225fc
MM
32562002-05-23 Mark Mitchell <mark@codesourcery.com>
3257
3258 * varasm.c (make_decl_rtl): Don't allow weak variables to be
3259 placed in common.
3260
0f72964f
JH
3261Thu May 23 19:43:41 CEST 2002 Jan Hubicka <jh@suse.cz>
3262
3263 * cfg.c (dump_flow_info): Print results of
3264 maybe_hot/probably_never_executed predicates.
3265 * toplev.c (open_dump_file): Print function frequency.
3266
c863f8c2
DM
32672002-05-23 David S. Miller <davem@redhat.com>
3268
3269 * cse.c (approx_reg_cost_1, approx_reg_cost): Recode to not use
3270 regsets.
3271
b34c7881
JT
32722002-05-23 Jason Thorpe <thorpej@wasabisystems.com>
3273
3274 * c-common.c (warn_nonnull): Declare.
3275 (c_common_attribute_table): Add "nonnull" attribute.
3276 (handle_nonnull_attribute, check_function_nonnull, nonnull_check_p,
3277 check_nonnull_arg, get_nonnull_operand, check_function_arguments,
3278 check_function_arguments_recurse): New functions.
3279 * c-common.h (warn_nonnull): Declare extern.
3280 (check_function_arguments, check_function_arguments_recurse): New
3281 prototypes.
3282 * c-decl.c (c_decode_option): Add -Wnonnull option.
3283 * c-format.c (set_Wformat): Set warn_nonnull if enabling
3284 format checking.
3285 (format_check_context): New structure.
3286 (check_format_info_recurse): Remove recursion and rename to...
3287 (check_format_arg): ...this. Update comment.
3288 (check_format_info): Use check_function_arguments_recurse.
3289 * c-typeck.c (build_function_call): Call check_function_arguments
3290 instead of check_function_format.
3291 * doc/extend.texi: Document "nonnull" attribute.
3292 * doc/invoke.texi: Docuemnt -Wnonnull option.
3293 * testsuite/gcc.dg/nonnull-1.c: New test.
3294 * testsuite/gcc.dg/nonnull-2.c: New test.
3295
95479831
DM
32962002-05-23 David S. Miller <davem@redhat.com>
3297
3298 * basic-block.h (CLEANUP_NO_INSN_DEL): Define it.
3299 * cfgcleanup.c (cleanup_cfg): If it is set do not
3300 attempt to delete trivially dead insns.
3301 * except.c (finish_eh_generation): Pass it to cleanup_cfg.
3302 * toplev.c (rest_of_compilation): Document non-trivial aspect
3303 the RTL before optimize_save_area_alloca is run.
3304
a97d1398
NB
33052002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
3306
3307 * c-lex.c (indent_level): Remove.
3308 (cb_file_change, c_lex): Remove indent level handling.
3309 * c-lex.h (indent_level): Remove.
3310 * input.h (struct file_stack): Remove indent_level.
3311 * toplev.c (push_srcloc): Remove indent_level handling.
3312
66b408f2
JJ
33132002-05-23 Jakub Jelinek <jakub@redhat.com>
3314
3315 PR target/6753
3316 * config/i386/i386.md (sse_movdfcc, sse_movdfcc_eq): Use Y instead
3317 of x in constraints for clarity.
3318 (sse_mov?fcc split): abort if op2 == op3.
3319 (sse_movsfcc_const0_1, sse_movsfcc_const0_2, sse_movsfcc_const0_3,
3320 sse_movsfcc_const0_4): Add earlyclobber.
3321 (sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
3322 sse_movdfcc_const0_4): Likewise. Use DFmode, not SFmode.
3323 Use Y instead of x in constraints.
3324
5bf0ebab
RH
33252002-05-23 Richard Henderson <rth@redhat.com>
3326
9217ef40
RH
3327 * doc/extend.texi (C99 Thread-Local Edits): New subsection.
3328 (C++98 Thread-Local Edits): New subsection.
3329
5bf0ebab
RH
3330 * config/i386/i386.c, config/i386/i386.h: Tidy comments and whitespace.
3331 (ix86_arch): Set type to enum processor_type.
3332
8a951190 3333 * config/i386/i386.md (movsi_1, movdi_1_rex64): Use
5bf0ebab
RH
3334 LEGITIMATE_PIC_OPERAND_P not SYMBOLIC_CONST.
3335
4832c9e1
JJ
33362002-05-23 Jakub Jelinek <jakub@redhat.com>
3337
3338 * configure.in: Fix as version test for binutils 2.12.1 releases
3339 (without dates).
3340 * configure: Rebuilt.
3341
c8c03509
RH
33422002-05-23 Richard Henderson <rth@redhat.com>
3343
3344 * config/i386/i386.c (get_pic_label_name): New.
3345 (load_pic_register): Remove.
3346 (output_set_got): New.
3347 (ix86_expand_prologue): Use gen_set_got; mark insn REG_MAYBE_DEAD.
3348 * config/i386/i386.md (UNSPEC_SET_GOT): New.
3349 (UNSPECV_PROLOGUE_SET_GOT, UNSPECV_PROLOGUE_GET_PC): Remove.
3350 (prologue_set_got, prologue_get_pc): Remove.
3351 (set_got, set_got_nopic, set_got_deep, set_got_nodeep): New.
3352 (builtin_setjmp_receiver): Use gen_set_got.
3353 * config/i386/i386-protos.h: Update.
3354
d51f3632
JH
3355Thu May 23 09:22:23 CEST 2002 Jan Hubicka <jh@suse.cz>
3356
3357 * gcse.c (hash_expr): Do not use alias set for hashing.
3358
b0a93386
KB
33592002-05-22 Kevin Buettner <kevinb@redhat.com>
3360
3361 * dbxout.c (dbxout_class_name_qualifiers): New function.
3362 (dbxout_symbol): Output class/struct qualifiers for a .stabs entry.
3363
bdee42b1
NB
33642002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
3365
3366 * cpperror.c (_cpp_begin_message): No special casing
3367 of CPP_FATAL_LIMIT.
3368 * cppinit.c (sanity_checks): s/DL_FATAL/DL_ICE/.
3369 (output_deps, cpp_handle_option, cpp_post_options): Use DL_ERROR.
3370 * cpplib.c (do_include_common): Use DL_ERROR.
3371 * cpplib.h (CPP_FATAL_LIMIT, CPP_FATAL_ERRORS, DL_FATAL): Remove.
3372 (DL_ICE): Renumber.
3373 * fix-header.c (read_scan_file): Update.
3374
0e07aff3
RH
33752002-05-22 Richard Henderson <rth@redhat.com>
3376
3377 * config/i386/i386.c (ix86_expand_call): New function, extracted
3378 from md call patterns. Add pic_offset_table_rtx to
3379 CALL_INSN_FUNCTION_USAGE when needed.
3380 * config/i386/i386.md (call_pop, call): Use ix86_expand_call.
3381 (call_value_pop, call_value, untyped_call): Likewise.
3382 (call_exp, call_value_exp): Remove.
3383 * config/i386/i386-protos.h: Update.
3384
6f001fdf
RH
33852002-05-22 Richard Henderson <rth@redhat.com>
3386
3387 * varasm.c (default_section_type_flags): Check for VAR_DECL
3388 before using DECL_THREAD_LOCAL.
3389
cbaaba19
DE
33902002-05-22 David Edelsohn <edelsohn@gnu.org>
3391
3392 * config/rs6000/aix43.h (LINK_SPEC): Add PE initializer.
3393 (STARTFILE_SPEC): Delete PE crt0.o.
3394 * config/rs6000/aix51.h: Same.
3395 * config/rs6000/rs6000.c: Use TARGET_XCOFF, not OBJECT_FORMAT_COFF.
3396 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Append [DS] to
3397 function descriptor symbol. Use RS6000_OUTPUT_BASENAME.
3398 (ASM_OUTPUT_DEF_FROM_DECLS): Use RS6000_OUTPUT_BASENAME.
3399 * config/rs6000/xcoff.h (ASM_OUTPUT_DEF): Define.
3400
c711ba8e
RH
34012002-05-22 Richard Henderson <rth@redhat.com>
3402
3403 * varasm.c (default_section_type_flags): Handle tls data and
3404 default sections.
3405 (default_unique_section): Handle tls sections.
3406
343f59d9
AM
34072002-05-23 Alan Modra <amodra@bigpond.net.au>
3408
3409 * configure.in (CROSS): Define NATIVE_CROSS.
3410 * configure: Regenerate.
3411 * gcc.c (STARTFILE_PREFIX_SPEC): Define.
3412 (startfile_prefix_spec): New var.
3413 (static_specs): Add startfile_prefix_spec.
3414 (do_spec_2): Split out from..
3415 (do_spec): ..here.
3416 (main): Process startfile_prefix_spec.
3417 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC) Change name of
3418 dynamic linker.
3419 (STARTFILE_PREFIX_SPEC): Define.
3420 (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Rewrite without
c7bdf0a6 3421 absolute paths.
343f59d9 3422
df383483
KH
34232002-05-22 Kazu Hirata <kazu@cs.umass.edu>
3424
3425 * cpperror.c: Fix formatting.
3426 * cppexp.c: Likewise.
3427 * cppfiles.c: Likewise.
3428 * cpphash.c: Likewise.
3429 * cpphash.h: Likewise.
3430 * cppinit.c: Likewise.
3431 * cpplex.c: Likewise.
3432 * cpplib.c: Likewise.
3433 * cppmacro.c: Likewise.
3434 * cppmain.c: Likewise.
3435 * cppspec.c: Likewise.
3436
2dd36f90
JJ
34372002-05-22 Jakub Jelinek <jakub@redhat.com>
3438
3439 * combine.c (force_to_mode): Use gen_int_mode.
3440 Don't clear CONST_INT bits outside of mode.
3441
8dc02d7f
RH
34422002-05-22 Richard Henderson <rth@redhat.com>
3443
3444 * fixinc/inclhack.def (thread_keyword): Match __thread as last arg.
3445 * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
3446
45f79783
JJ
34472002-05-22 Jakub Jelinek <jakub@redhat.com>
3448
3449 PR c/6643
3450 * emit-rtl.c (widen_memory_access): Only call compare_tree_int
3451 if DECL_SIZE_UNIT is INTEGER_CST.
3452
19f71cd7
RH
34532002-05-22 Richard Henderson <rth@redhat.com>
3454
3455 * flow.c (life_analysis): Delete broken reg_label check.
3456
d5bcfcce
RH
34572002-05-22 Richard Henderson <rth@redhat.com>
3458
3459 * fixinc/inclhack.def (thread_keyword): Allow as any prototype arg.
3460 * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
3461
985d311b 3462Wed May 22 18:39:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
5ff94354
R
3463
3464 * t-sh (LIB2FUNCS_EXTRA): Now embed-bb.c.
3465 (embed-bb.c): New rule.
985d311b 3466 * t-sh64 (LIB2FUNCS_EXTRA): Don't change.
5ff94354
R
3467 * config/sh/embed_bb.c: Delete.
3468
985d311b
R
3469Wed May 22 18:25:29 2002 J"orn Rennecke <joern.rennecke@superh.com>
3470
3471 * c-common.c (cb_register_builtins): Don't indent '#' of #define.
3472
f6d45746
KH
34732002-05-22 Kazu Hirata <kazu@cs.umass.edu>
3474
3475 * config/h8300/h8300.md (*andorqi3): New.
3476
e5f3b786
NB
34772002-05-22 Neil Booth <neil@daikokuya.demon.co.uk>
3478
3479 PR preprocessor/6517
3480 * Makefile.in: Update.
3481 * c-common.c (c_common_post_options): Add preprocessor
3482 errors to the error count.
3483 * c-lang.c (c_post_options): Kill.
3484 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
3485 * hooks.h: Add header guards.
3486 * langhooks-def.h: Include hooks.h.
3487 (LANG_HOOKS_POST_OPTIONS): Update.
3488 * langhooks.h (struct lang_hooks): Update post_options.
3489 * toplev.c (parse_options_and_default_flags): Update.
3490objc:
3491 * objc-lang.c (objc_post_options): Kill.
3492 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
3493
4c526be3
BK
34942002-05-21 Bruce Korb <bkorb@gnu.org>
3495
3496 * fixinc/tests/base/pthread.h(THREAD_KEYWORD_CHECK): add fix check
021c1f34
BK
3497 * fixinc/inclhack.def(thread_keyword): use c_fix = format.
3498 * fixinc/fixincl.x: regen.
4c526be3 3499
f87c27b4
KH
35002002-05-21 Kazu Hirata <kazu@cs.umass.edu>
3501
3502 * cfgbuild.c: Fix formatting.
3503 * cfg.c: Likewise.
3504 * cfgcleanup.c: Likewise.
3505 * cfglayout.c: Likewise.
3506 * cfgloop.c: Likewise.
3507 * cfgrtl.c: Likewise.
3508
3d78f2e9
RH
35092002-05-21 Richard Henderson <rth@redhat.com>
3510
3511 * c-common.h (enum rid): Add RID_THREAD.
3512 * c-decl.c (start_decl): Do not set DECL_COMMON for tls variables.
3513 (grokdeclarator): Grok __thread.
3514 * c-parse.in (reswords): Add __thread.
3515 (rid_to_yy): Add RID_THREAD.
3516
3517 * tree.h (DECL_THREAD_LOCAL): New.
3518 (struct tree_decl): Add thread_local_flag.
3519 * print-tree.c (print_node): Dump DECL_THREAD_LOCAL.
3520 * tree.c (staticp): TLS variables are not static.
3521
3522 * target-def.h (TARGET_HAVE_TLS): New.
3523 * target.h (have_tls): New.
3524 * output.h (SECTION_TLS): New.
3525 * varasm.c (assemble_variable): TLS variables can't be common for now.
3526 (default_section_type_flags): Handle .tdata and .tbss.
3527 (default_elf_asm_named_section): Handle SECTION_TLS.
3528 (categorize_decl_for_section): Handle DECL_THREAD_LOCAL.
3529
3530 * flags.h (flag_tls_default): Declare.
3531 * toplev.c (flag_tls_default): Define.
3532 (display_help): Display help for it.
3533 (decode_f_option): Set it.
3534
3535 * doc/extend.texi (Thread-Local): New node describing language-level
3536 thread-local storage.
3537 * doc/invoke.texi (-ftls-model): Document.
3538
3539 * fixinc/inclhack.def (thread_keyword): New.
3540 * fixinc/fixincl.x: Rebuild.
3541
a151daf0
JL
35422002-05-21 Jeffrey A Law <law@redhat.com>
3543
8a951190 3544 * optabs.c (expand_binop): For double-word integer multiplies,
c7539aa0
JL
3545 do not compute intermediate results into something that is
3546 not a register (such as a SUBREG or MEM).
3547
a151daf0
JL
3548 * i386.c (ix86_sched_reorder_ppro): Fix typo/thinko.
3549 (ix86_sched_reorder): Make sure to initialize scheduling
3550 data even when there's only one insn in the ready queue.
3551
96b1f73b
VM
35522002-05-21 Vladimir Makarov <vmakarov@redhat.com>
3553
3554 * genautomata.c (reserv_sets_hash_value): Fix a typo.
3555
dceb2b75
VM
35562002-05-21 Vladimir Makarov <vmakarov@redhat.com>
3557
3558 * genautomata.c (reserv_sets_hash_value): Define hash_value as
3559 set_el_t. Transform the hash value into unsigned.
3560 (output_cycle_reservs): Fix bug with output of repeated `nothing'.
3561 (transform_3): Add code to process `(A,B)+(D,E)'.
3562
159d5964
NY
35632002-05-21 NIIBE Yutaka <gniibe@m17n.org>
3564
3565 * reload1.c (do_output_reload): Run delete_output_reload
3566 only if optimizing.
3567
cf5124f6
RS
35682002-05-21 Roger Sayle <roger@eyesopen.com>
3569
3570 PR middle-end/6600
3571 * expr.c (STORE_MAX_PIECES): New macro to avoid immediate constants
3572 larger than INTEGER_CST. (store_by_pieces_1): Use it here...
3573 (can_store_by_pieces): ... and here to limit the largest mode used.
3574 Add a comment to document this function.
3575
380e6ade
RH
35762002-05-21 Richard Henderson <rth@redhat.com>
3577
3578 * flow.c (life_analysis): Fix test for deleted label.
3579
1f95326c
NB
35802002-05-21 Neil Booth <neil@daikokuya.demon.co.uk>
3581
3582 * doc/tm.texi: Fix typo.
3583
2a1dc0d8
ZW
35842002-05-21 Zack Weinberg <zack@codesourcery.com>
3585
3586 * c-common.c (c_common_init): Set options->unsigned_char from
3587 flag_signed_char.
3588 (cb_register_builtins): Define __STRICT_ANSI__ and
3589 __CHAR_UNSIGNED__ here...
3590 * cppinit.c (init_builtins): Not here.
3591 (cpp_create_reader): unsigned_char option defaults to 0, not
3592 !DEFAULT_SIGNED_CHAR.
3593 (COMMAND_LINE_OPTIONS, cpp_handle_option): Lose -fsigned-char
3594 and -funsigned-char.
3595
3596 * cpphash.h (struct spec_nodes): Kill n__STRICT_ANSI__.
3597 * cpphash.c (_cpp_init_hashtable): Don't set it.
3598 * cppmacro.c (builtin_macro) [BT_STDC]: Use the language setting
3599 directly. Clarify comment.
3600
d29146f2 36012002-05-21 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2a1dc0d8 3602
f5eb2fc8
ZD
3603 * bb-reorder.c (make_reorder_chain_1): Use prev_bb/next_bb to get to
3604 neighbouring basic blocks. Use ENTRY_BLOCK_PTR->next_bb instead of
3605 BASIC_BLOCK (0). Use EXIT_BLOCK_PTR->prev_bb instead of
3606 BASIC_BLOCK (n_basic_blocks - 1).
d29146f2 3607 * cfganal.c (can_fallthru, flow_call_edges_add,
f5eb2fc8 3608 flow_preorder_transversal_compute): Too.
d29146f2 3609 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
f5eb2fc8
ZD
3610 find_sub_basic_blocks): Too.
3611 * cfgcleanup.c (try_simplify_condjump, try_optimize_cfg): Too.
d29146f2 3612 * cfglayout.c (skip_insns_after_block, fixup_reorder_chain,
f5eb2fc8
ZD
3613 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge): Too.
3614 * cfgrtl.c (tidy_fallthru_edges, verify_flow_info): Too.
d29146f2
ZD
3615 * combine.c (this_basic_block): Type changed to basic_block.
3616 (combine_instructions, set_nonzero_bits_and_sign_copies, try_combine,
3617 nonzero_bits, num_sign_bit_copies, get_last_value_validate,
f5eb2fc8
ZD
3618 get_last_value, distribute_notes, distribute_links): Too.
3619 * final.c (compute_alignments): Too.
3620 * flow.c (regno_uninitialized, regno_clobbered_at_setjmp): Too.
3621 * function.c (thread_prologue_and_epilogue_insns): Too.
3622 * gcse.c (compute_code_hoist_vbeinout): Too.
3623 * global.c (build_insn_chain): Too.
3624 * ifcvt.c (find_if_block, find_cond_trap): Too.
3625 * predict.c (last_basic_block_p, note_prediction_to_br_prob): Too.
3626 * regmove.c (regmove_optimize): Too.
3627 * resource.c (find_basic_block): Too.
3628 * sched-ebb.c (schedule_ebbs): Too.
3629 * ssa-dce.c (find_control_dependence, find_pdom): Too.
d29146f2 3630
68bd6dd6
AJ
36312002-05-21 Andreas Jaeger <aj@suse.de>
3632
3633 * cppinit.c (sanity_checks): Avoid printf mismatch warnings.
3634
35a76aac
RH
36352002-05-21 Richard Henderson <rth@redhat.com>
3636
3637 * reg-stack.c (swap_rtx_condition, subst_stack_regs_pat): Use
3638 unspec names, not numbers.
3639
2870428f
JM
36402002-05-21 Joseph S. Myers <jsm28@cam.ac.uk>
3641
3642 * doc/sourcebuild.texi: Mention snapshot-README and
3643 snapshot-index.html as needing updating for new front ends.
3644
b0ad77d5
KG
36452002-05-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3646
3647 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Avoid warnings when
3648 disabling checking, and avoid multiple evaluation of RTX.
3649
279be7c8
RE
36502002-05-21 Richard Earnshaw <rearnsha@arm.com>
3651
3652 * bitmap.c (bitmap_find_bit): Return early if we have the correct
3653 element cached.
3654
193a563a
JH
3655Tue May 21 10:51:54 CEST 2002 Jan Hubicka <jh@suse.cz>
3656
3657 * profile.c (gen_edge_profiler): Set alias set before the memory is
3658 used.
3659
31825e57
DM
36602002-05-20 David S. Miller <davem@redhat.com>
3661
3662 * cselib.c (max_value_regs): New.
3663 (cselib_lookup, cselib_invalidate_regno): Initialize it when
3664 adding new entries to the REG_VALUES table and we are dealing with
3665 a hard register.
3666 (clear_table): Initialize it.
3667 (cselib_invalidate_regno): Use it to determine which hard
3668 registers to scan when mode is not VOIDmode.
3669
68bd6dd6 36702002-05-20 Duraid Madina <duraid@fl.net.au>
29d83d60
DM
3671
3672 * tradcpp.c (fixup_newlines): Use old-style function header.
3673
e0a09fda
KW
36742002-05-20 Krister Walfridsson <cato@df.lth.se>
3675
3676 * reload1.c (reload_cse_simplify): Fix typo in rtx code check.
3677
e0c13c70
L
36782002-05-20 H.J. Lu (hjl@gnu.org)
3679
3680 Base on suggestions from Zhang Fuxin <fxzhang@ict.ac.cn>:
3681
3682 * config/mips/mips.h (DFMODE_NAN): Defined.
3683 (SFMODE_NAN): Likewise.
3684
4c11675d 36852002-05-20 Dale Johannesen <dalej@apple.com>
e0c13c70 3686
2a1dc0d8
ZW
3687 * combine.c (cant_combine_insn_p): Back out my
3688 previous patch.
4c11675d 3689
6a4d6760
KH
36902002-05-20 Kazu Hirata <kazu@cs.umass.edu>
3691
3692 * params.c: Fix formatting.
3693 * params.h: Likewise.
3694 * predict.c: Likewise.
3695 * prefix.c: Likewise.
3696 * print-rtl.c: Likewise.
3697 * print-tree.c: Likewise.
3698 * profile.c: Likewise.
3699
5715ca64
L
37002002-05-20 H.J. Lu (hjl@gnu.org)
3701
3702 * gcc/config/mips/linux.h (SDB_DEBUGGING_INFO): Undefine.
3703
00b89f01
NC
37042002-05-20 Nick Clifton <nickc@cambridge.redhat.com>
3705
3706 * config/arm/arm-wince-pe.h (ASM_SPEC): Pass -mcpu and -march
3707 switches straight on to the assembler, do not abbreviate them.
3708 * config/arm/elf.h (ASM_SPEC): As above.
3709 * config/arm/semi.h (ASM_SPEC): As above.
3710 * config/arm/unknown-elf-oabi.h (ASM_SPEC): As above.
3711 * config/arm/xscale-coff.h (SUBTARGET_ASM_SPEC): Pass
3712 -mcpu=xscale on to the assembler by default.
3713 * config/arm/xscale-elf.h (SUBTARGET_ASM_SPEC): As above.
3714
1441374b
RH
37152002-05-20 Richard Henderson <rth@redhat.com>
3716
3717 * cse.c (canon_hash): Reorder do_not_record test. Always
3718 allow pic_offset_table_rtx.
3719
c0fe508e
TM
37202002-05-19 Toon Moene <toon@moene.indiv.nluug.nl>
3721
3722 * optabs.c (expand_cmplxdiv_wide): Use complex_part_zero_p.
3723 (expand_binop): Ditto (3 times).
3724
f362c762
MM
37252002-05-19 Mark Mitchell <mitchell@doubledemon.codesourcery.com>
3726
3727 * Makefile.in (distclean): Remove QMTest stuff.
3728 (QMTEST_PATH): New variable.
3729 (QMTESTFLAGS): Likewise.
3730 (QMTESTRUNFLAGS): Likewise.
3731 (QMTEST): Likewise.
3732 (QMTEST_GPP_TESTS): Likewise.
3733 (QMTEST_DIR): Likewise.
3734 (QMTEST_DIR/context): New target.
3735 (qmtest-g++): Likeise.
3736 (qmtest-gui): Likewise.
3737 (QMTEST_DIR/gpp-expected.qmr): Likewise.
3738
16861f33
AH
37392002-05-19 Aldy Hernandez <aldyh@redhat.com>
3740
2a1dc0d8
ZW
3741 * config/rs6000/rs6000.h (FUNCTION_VALUE): Only return vectors in
3742 an altivec register if TARGET_ALTIVEC.
16861f33 3743
2a1dc0d8
ZW
3744 * config/rs600/rs6000.c (rs6000_emit_move): Change VECTOR_MODE_P
3745 to ALTIVEC_VECTOR_MODE.
3746 (rs6000_va_arg): Only vectors of type AltiVec are 16 byte aligned.
3747 (rs6000_va_arg): Vectors may go in registers if they are not
3748 altivec vectors.
16861f33 3749
23459e15
KH
37502002-05-19 Kazu Hirata <kazu@cs.umass.edu>
3751
3752 * protoize.c: Fix formatting.
3753
174cc7d1
RH
37542002-05-19 Richard Henderson <rth@redhat.com>
3755
3756 * gensupport.c (init_include_reader): Merge into ...
3757 (process_include): ... here. Simplify composite path creation.
3758 Plug memory leaks. Fix file/line number tracking. Do not
3759 process_define_cond_exec. Return void.
3760 (process_rtx): Don't check process_include return value.
3761
918ed612
ZD
37622002-05-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3763
3764 * basic_block.h (struct basic_block_def): Added prev_bb and next_bb
3765 fields.
3766 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
3767 traversing basic block chain.
3768 (create_basic_block_structure, create_basic_block): Declaration changed.
3769 (link_block, unlink_block): Declare.
3770 * cfg.c (entry_exit_blocks): Initialize new fields.
3771 (link_block, unlink_block): New.
3772 (expunge_block_nocompact): Unlink basic block.
3773 (dump_flow_info): Print prev_bb/next_bb fields.
3774 * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Modified.
3775 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Modified.
3776 * cfglayout.c (fixup_reorder_chain, cfg_layout_duplicate_bb): Modified.
3777 * cfgrtl.c (create_basic_block_structure, create_basic_block,
3778 split_block, force_nonfallthru_and_redirect, split_edge): Modified.
3779 (verify_flow_info): Check that list agrees with numbering.
3780
e0322d5c
NB
37812002-05-19 Neil Booth <neil@daikokuya.demon.co.uk>
3782
3783 * c-common.c (preprocessing_asm): New macro.
3784 * c-lex.h (builtin_define, builtin_assert): Use pfile.
3785doc:
3786 * tm.texi: Update.
3787config/alpha:
3788 * alpha.h (CPLUSPLUS_CPP_SPEC): Remove.
3789 (CPP_SPEC): Simplify.
3790 (TARGET_CPU_CPP_BUILTINS): Update.
3791 * freebsd.h (TARGET_OS_CPP_BUILTINS): New.
3792 (CPP_SPEC): Simplify.
3793 * linux.h (CPLUSPLUS_CPP_SPEC): Remove.
3794 (TARGET_OS_CPP_BUILTINS): Update.
3795 * osf.h (CPP_XFLOAT_SPEC): Kill.
3796 (TARGET_OS_CPP_BUILTINS): Update.
3797 (CPP_SUBTARGET_SPEC, SUBTARGET_EXTRA_SPECS): Simplify.
3798 * osf5.h (CPP_XFLOAT_SPEC): Kill.
3799 * vms.h (CPP_SUBTARGET_SPEC): Kill.
3800 (TARGET_OS_CPP_BUILTINS): Update.
3801
121f5c2c
RH
38022002-05-19 Richard Henderson <rth@redhat.com>
3803
3804 * varasm.c (default_binds_local_p): Fix typo.
3805
651c5ed9
MM
38062002-05-19 Marek Michalkiewicz <marekm@amelek.gda.pl>
3807
3808 * config/avr/avr.c (machine_dependent_reorg): Sign extend the
3809 CONST_INT operand to the correct mode after adding 1 to it.
3810
bce0deb2
MM
38112002-05-19 Mark Mitchell <mark@codesourcery.com>
3812
3813 * config.gcc (powerpc-wrs-windiss*): New target.
3814
4aa74a4f
FS
38152002-05-19 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3816
3817 * config/rs6000/rs6000.md (ashrdi3_no_power): New.
3818 (ashrdi3): Use it.
3819
a15135c9
MM
38202002-05-18 Mark Mitchell <mark@codesourcery.com>
3821
3822 * configure.in (AC_CHECK_FUNCS): Add checks for scandir and
3823 alphasort.
3824 * config.in: Regenerated.
3825 * configure: Regenerated.
3826
47754fd5
RH
38272002-05-19 Richard Henderson <rth@redhat.com>
3828
3829 * target-def.h (TARGET_BINDS_LOCAL_P): New.
3830 * target.h (struct gcc_target): Move boolean fields to the end.
3831 Add binds_local_p.
3832 * varasm.c (default_binds_local_p): New.
3833 * output.h: Declare it.
3834
3835 * config/alpha/alpha.c (alpha_encode_section_info): Use the new hook.
3836 * config/cris/cris.c (cris_encode_section_info): Likewise.
3837 * config/i386/i386.c (i386_encode_section_info): Likewise.
3838 * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
3839 * config/sh/sh.c (sh_encode_section_info): Likewise.
3840
3841 * doc/tm.texi (TARGET_IN_SMALL_DATA_P): New.
3842 (TARGET_BINDS_LOCAL_P): New.
3843
fc881338
RH
38442002-05-19 Richard Henderson <rth@redhat.com>
3845
3846 * system.h (BLOCK_PROFILER, BLOCK_PROFILER_CODE,
3847 FUNCTION_BLOCK_PROFILER, FUNCTION_BLOCK_PROFILER_EXIT,
3848 MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Poison.
3849
3850 * toplev.c (display_help): Kill -a -ax help.
3851
68bd6dd6 3852 * config/1750a/1750a.h, config/alpha/alpha.h,
fc881338
RH
3853 config/clipper/clipper.h, config/dsp16xx/dsp16xx.h,
3854 config/h8300/h8300.h, config/i960/i960.h, config/m68k/tower-as.h,
3855 config/m88k/m88k.h, config/vax/vax.h, config/we32k/we32k.h:
3856 (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Kill.
3857
3858 * libgcc2.c [L_bb] (BLOCK_PROFILER_CODE): Kill.
3859 * config/m68k/sun3.h (BLOCK_PROFILER_CODE): Kill.
3860
3861 * config/i386/i386-protos.h (ix86_output_block_profiler): Kill.
3862 (ix86_output_function_block_profiler): Kill.
3863 * config/m68hc11/m68hc11.c (m68hc11_block_profiler): Kill.
3864 (m68hc11_function_block_profiler): Kill.
3865 * config/m68hc11/m68hc11-protos.h: Update.
3866 * config/m88k/m88k.c (output_block_profiler): Kill.
3867 (output_function_block_profiler): Kill.
3868 * config/m88k/m88k-protos.h: Update.
3869
772c5265
RH
38702002-05-19 Richard Henderson <rth@redhat.com>
3871
3872 * system.h (STRIP_NAME_ENCODING): Poison it.
3873 * output.h (STRIP_NAME_ENCODING): Remove.
3874 (default_strip_name_encoding): Declare.
3875 * target-def.h (TARGET_STRIP_NAME_ENCODING): New.
3876 * target.h (strip_name_encoding): New.
3877 * varasm.c (default_strip_name_encoding): New.
3878
3879 * dwarf2asm.c, varasm.c, config/darwin.c, config/darwin.h,
3880 config/alpha/alpha.c, config/arm/pe.c, config/avr/avr.c,
3881 config/cris/cris.c, config/i386/cygwin.h, config/i386/interix.c,
3882 config/i386/winnt.c, config/m32r/m32r.h, config/mcore/mcore-elf.h,
3883 config/mcore/mcore-pe.h, config/mcore/mcore.c, config/mcore/mcore.h,
3884 config/mips/mips.c, config/mn10200/mn10200.h, config/mn10300/mn10300.h,
3885 config/pa/pa.c, config/pa/pa.h, config/pa/som.h,
3886 config/rs6000/rs6000.c, config/rs6000/sysv4.h, config/rs6000/xcoff.h,
3887 config/v850/v850.h: Use the hook, not the macro.
3888
3889 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
3890 config/alpha/alpha.c, config/alpha/alpha.h, config/h8300/h8300.c,
3891 config/h8300/h8300.h, config/i386/cygwin.h, config/i386/i386-interix.h,
3892 config/i386/i386-protos.h, config/i386/win32.h, config/i386/winnt.c,
3893 config/ia64/ia64.c, config/ia64/ia64.h, config/m32r/m32r.c,
3894 config/m32r/m32r.h, config/mcore/mcore.c, config/mcore/mcore.h,
68bd6dd6 3895 config/pa/pa.c, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
772c5265
RH
3896 config/rs6000/xcoff.h, config/sh/sh.c, config/sh/sh.h,
3897 config/v850/v850.c, config/v850/v850.h:
3898 Move STRIP_NAME_ENCODING to out-of-line function and add
3899 TARGET_STRIP_NAME_ENCODING.
3900
3901 * config/arm/arm.c, config/arm/arm.h, config/mmix/mmix-protos.h,
3902 config/mmix/mmix.c, config/mmix/mmix.h: Replace STRIP_NAME_ENCODING
3903 with TARGET_STRIP_NAME_ENCODING referencing existing function;
3904 make function static.
3905
3906 * xcoffout.c: Include target.h
3907 * Makefile.in (xcoffout.o): Update.
3908
3909 * config/avr/avr.c (avr_encode_section_info): Correct prototype.
3910 * config/avr/avr.h (STRIP_NAME_ENCODING): Remove.
3911 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Mark
3912 reloc argument unused.
3913 * config/sh/sh.c (TARGET_ENCODE_SECTION_INFO): New.
3914
3915 * doc/tm.texi (TARGET_STRIP_NAME_ENCODING): Update from previous
3916 STRIP_NAME_ENCODING docs.
3917
8f9eb495
AJ
39182002-05-19 Andreas Jaeger <aj@suse.de>
3919
3920 * gengenrtl.c: Add prototype for excluded_rtx.
3921
3922 * real.h: Add prototype for exact_real_truncate.
3923
fb49053f
RH
39242002-05-18 Richard Henderson <rth@redhat.com>
3925
3926 * system.h (ENCODE_SECTION_INFO): Poison it.
3927 * target-def.h (TARGET_ENCODE_SECTION_INFO): New.
3928 * target.h (encode_section_info): New.
3929 * varasm.c (make_decl_rtl, output_constant_def): Use it.
3930 * hooks.c (hook_tree_int_void): New.
3931 * hooks.h: Declare it.
3932
3933 * config/darwin.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
3934 config/alpha/alpha.h, config/arm/pe.h, config/avr/avr-protos.h,
3935 config/avr/avr.c, config/avr/avr.h, config/c4x/c4x-protos.h,
3936 config/c4x/c4x.c, config/c4x/c4x.h, config/cris/cris-protos.h,
3937 config/cris/cris.c, config/cris/cris.h, config/i386/cygwin.h,
3938 config/i386/win32.h, config/ia64/ia64-protos.h, config/ia64/ia64.c,
3939 config/ia64/ia64.h, config/m32r/m32r-protos.h, config/m32r/m32r.c,
3940 config/m32r/m32r.h, config/m68hc11/m68hc11-protos.h,
3941 config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
3942 config/mcore/mcore-protos.h, config/mcore/mcore.c,
3943 config/mcore/mcore.h, config/mmix/mmix-protos.h, config/mmix/mmix.c,
3944 config/mmix/mmix.h, config/rs6000/rs6000-protos.h,
3945 config/rs6000/sysv4.h, config/stormy16/stormy16-protos.h,
3946 config/stormy16/stormy16.c, config/stormy16/stormy16.h:
3947 Replace ENCODE_SECTION_INFO with TARGET_ENCODE_SECTION_INFO
3948 referencing existing function. Make function static.
3949
3950 * config/a29k/a29k.c, config/a29k/a29k.h, config/arc/arc.c,
8f9eb495 3951 config/arc/arc.h, config/arm/arm.c, config/arm/arm.h,
fb49053f
RH
3952 config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
3953 config/i370/i370.h, config/i386/i386-interix.h, config/i386/i386.c,
3954 config/i386/i386.h, config/i386/interix.c, config/m88k/m88k.c,
8f9eb495 3955 config/m88k/m88k.h, config/mips/mips.c, config/mips/mips.h,
fb49053f
RH
3956 config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa.c,
3957 config/pa/pa.h, config/romp/romp.c, config/romp/romp.h,
3958 config/rs6000/linux64.h, config/rs6000/xcoff.h, config/s390/s390.c,
3959 config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
8f9eb495 3960 config/sparc/sparc.c, config/sparc/sparc.h, config/v850/v850.c,
fb49053f
RH
3961 config/v850/v850.h, config/vax/vax.c, config/vax/vms.h,
3962 config/xtensa/xtensa.c, config/xtensa/xtensa.h:
3963 Move ENCODE_SECTION_INFO to out-of-line function and add
3964 TARGET_ENCODE_SECTION_INFO.
3965
3966 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use hook, not macro.
3967 (ASM_DECLARE_OBJECT_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
3968
3969 * config/arm/pe.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Rename
3970 from SUBTARGET_*
3971 (switch_to_section): Replace in_rdata case with in_readonly_data.
3972
3973 * config/h8300/h8300.c (h8300_encode_label): Make static.
3974 * config/h8300/h8300-protos.h: Update.
3975
3976 * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Rename
3977 from rs6000_encode_section_info; make static.
3978 (rs6000_xcoff_encode_section_info): New.
3979
3980 * config/v850/v850.c (v850_encode_data_area): Make static.
3981 * config/v850/v850-protos.h: Update.
3982
3983 * config/vax/vax.c: Include flags.h.
3984 (vms_select_section): Fix typo.
3985
3986 * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update from previous
3987 ENCODE_SECTION_INFO docs.
3988
9fe08fd0
RH
39892002-05-18 Richard Henderson <rth@redhat.com>
3990
3991 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Rename from
3992 REGISTER_TARGET_PRAGMAS.
3993 * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Redefine.
3994
410b770f
RH
3995 * config.gcc: Do not use rs6000-c.c on powerpc-darwin.
3996
b64a1b53
RH
39972002-05-18 Richard Henderson <rth@redhat.com>
3998
3999 * system.h (SELECT_RTX_SECTION): Poison.
4000 * target-def.h (TARGET_ASM_SELECT_RTX_SECTION): New.
4001 * target.h (select_rtx_section): New.
4002 * varasm.c (output_constant_pool): Use it.
4003 (default_select_rtx_section, default_elf_select_rtx_section): New.
4004 * output.h: Declare them.
4005
4006 * config/darwin.h (SELECT_RTX_SECTION): Move ...
4007 * config/darwin.c (machopic_select_rtx_section): ... here.
4008 * config/darwin-protos.h: Update.
4009
4010 * config/nextstep.h (SELECT_RTX_SECTION): Move ...
4011 * config/nextstep.c (machopic_select_rtx_section): ... here.
4012 (nextstep_select_section): Rename variable to avoid macro clash.
4013 * config/nextstep-protos.h: Update.
4014
4015 * config/elfos.h, config/svr3.h, config/arm/aof.h, config/c4x/c4x.h,
4016 config/i386/dgux.h, config/i386/osfrose.h, config/i386/sco5.h,
4017 config/i386/svr3gas.h, config/i860/paragon.h, config/ia64/aix.h,
8f9eb495 4018 config/m32r/m32r.h, config/m68k/dpx2.h, config/m68k/lynx.h,
b64a1b53
RH
4019 config/m68k/m68k.h, config/m68k/tower-as.h, config/m88k/dgux.h,
4020 config/mcore/mcore-pe.h, config/mips/mips.h, config/mmix/mmix.h,
8f9eb495 4021 config/pa/pa-linux.h, config/pa/pa.h, config/romp/romp.h,
b64a1b53
RH
4022 config/rs6000/lynx.h, config/rs6000/sysv4.h, config/s390/linux.h,
4023 config/sparc/sysv4.h, config/xtensa/elf.h, config/xtensa/linux.h
4024 (SELECT_RTX_SECTION): Remove.
4025
4026 * config/darwin.h, config/elfos.h, config/nextstep.h,
4027 config/ia64/aix.h, config/ia64/sysv4.h, config/alpha/alpha.c,
4028 config/mips/mips.c, config/romp/romp.c, config/rs6000/sysv4.h,
4029 config/rs6000/xcoff.h, config/s390/s390.c, config/sparc/aout.h,
4030 config/sparc/lynx.h, config/xtensa/xtensa.c
4031 (TARGET_ASM_SELECT_RTX_SECTION): New.
4032
4033 * config/alpha/elf.h (SELECT_RTX_SECTION): Move ...
4034 * config/alpha/alpha.c (alpha_elf_select_rtx_section): ... here.
4035 * config/ia64/sysv4.h (SELECT_RTX_SECTION): Move ...
4036 * config/ia64/ia64.c (ia64_select_rtx_section): ... here.
4037 (ia64_aix_select_rtx_section): New.
4038 * config/mips/iris6.h (READONLY_DATA_SECTION_ASM_OP): Undef before
4039 redefining.
4040 * config/mips/mips.c (mips_select_rtx_section): Make static.
8f9eb495 4041 Support ELF SHF_MERGE features.
b64a1b53
RH
4042 * config/mips/mips-protos.h: Update.
4043 * config/rs6000/xcoff.h (SELECT_RTX_SECTION): Move ...
4044 * config/rs6000/rs6000.c (rs6000_xcoff_select_rtx_section): ... here.
4045 (rs6000_elf_select_rtx_section): Rename from rs6000_select_rtx_section;
4046 make static, fall back to default_elf_select_rtx_section.
4047 * config/rs6000/rs6000-protos.h: Update.
4048 * config/sparc/sparc.h (SELECT_RTX_SECTION): Move ...
4049 * config/sparc/sparc.c (sparc_aout_select_rtx_section): ... here.
4050 * config/sparc/sunos4.h (on_exit): Declare only if IN_LIBGCC2.
4051 * config/romp/romp.c (romp_select_rtx_section): New.
4052 * config/s390/s390.c (s390_select_rtx_section): New.
4053 * config/xtensa/xtensa.c: Include output.h. Shuffle local function
4054 declarations before target macro definition.
4055 (xtensa_emit_call): Use static buffer.
4056 (xtensa_select_rtx_section): New.
4057 * config/xtensa/xtensa.h (MAX_INT_TYPE_SIZE): Remove.
4058 (IMPLICIT_FIX_EXPR, EASY_DIV_EXPR): Remove.
4059 (ASM_OUTPUT_POOL_PROLOGUE): Update call to resolve_unique_section.
4060
4061 * doc/tm.texi (TARGET_ASM_SELECT_RTX_SECTION): Update from
4062 SELECT_RTX_SECTION docs.
4063
4064Sun May 19 00:24:23 CEST 2002 Jan Hubicka <jh@suse.cz>
5f90a099
JH
4065
4066 * i386.md (movsi/movdi): Fix template.
4067 (sse2 patterns): Set attributes consistently.
4068
4069 * i386.md (pushqi2, ashrqi_*): Fix constraint.
4070
6835a09c
TM
40712002-05-18 Toon Moene <toon@moene.indiv.nluug.nl>
4072
4073 * optabs.c (complex_part_zero_p): New.
4074 * (expand_cmplxdiv_straight): Use it.
4075 * (expand_cmplxdiv_wide): Ditto.
4076 * (expand_binop): Ditto.
4077
d48bc59a
RH
40782002-05-18 Richard Henderson <rth@redhat.com>
4079
4080 * final.c (HAVE_READONLY_DATA_SECTION): New.
4081 (shorten_branches): Use it instead of ifdefs.
4082 * varasm.c (enum in_section): Add in_readonly_data.
4083 (text_section, data_section): Tidy.
4084 (readonly_data_section): Use READONLY_DATA_SECTION_ASM_OP if present.
4085
4086 * config/darwin.h, config/nextstep.h, config/h8300/elf.h,
4087 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h
4088 (READONLY_DATA_SECTION): Don't undef.
4089
4090 * config/alpha/unicosmk.h, config/h8300/elf.h, config/i386/aix386ng.h,
4091 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h,
4092 config/rs6000/lynx.h (READONLY_DATA_SECTION_ASM_OP): Undef.
4093
4094 * config/elfos.h, config/svr3.h, config/alpha/alpha-interix.h,
4095 config/alpha/elf.h, config/c4x/c4x.h, config/i386/i386-interix.h,
4096 config/i386/sco5.h, config/i386/svr3gas.h, config/i860/sysv3.h,
4097 config/m88k/m88k.h, config/pa/pa64-hpux.h (USE_CONST_SECTION): Remove.
4098
4099 * config/elfos.h, config/netware.h, config/alpha/alpha-interix.h,
4100 config/alpha/elf.h, config/alpha/vms.h, config/arc/arc.h,
4101 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
4102 config/i386/dgux.h, config/i386/i386-interix.h, config/i386/sco5.h,
4103 config/ia64/hpux.h, config/m32r/m32r.h, config/m68k/tower-as.h,
4104 config/m88k/m88k.h, config/mcore/mcore-pe.h, config/mips/iris6.h,
4105 config/mips/mips.h, config/mmix/mmix.h, config/pa/pa64-hpux.h,
4106 config/sparc/sysv4.h (READONLY_DATA_SECTION_ASM_OP): Rename from
4107 CONST_SECTION_ASM_OP/READONLY_SECTION_ASM_OP/RDATA_SECTION_ASM_OP.
4108
4109 * config/elfos.h, config/netware.h, config/1750a/1750a.h,
4110 config/a29k/a29k.h, config/alpha/alpha-interix.h, config/alpha/alpha.h,
4111 config/arm/coff.h, config/h8300/h8300.h, config/i386/aix386ng.h,
4112 config/i386/i386-interix.h, config/i386/osfrose.h, config/mmix/mmix.h,
4113 config/pa/pa64-hpux.h, config/sparc/litecoff.h
4114 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
4115
4116 * config/elfos.h, config/netware.h, config/svr3.h,
4117 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
4118 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
4119 config/h8300/h8300.h, config/i386/i386-interix.h,
4120 config/i386/osfrose.h, config/i386/svr3gas.h, config/mmix/mmix.h,
4121 config/pa/pa64-hpux.h (READONLY_DATA_SECTION): Remove.
4122
4123 * config/elfos.h, config/netware.h, config/svr3.h,
4124 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
4125 config/c4x/c4x.h, config/i386/aix386ng.h, config/i386/i386-interix.h,
4126 config/i386/sco5.h, config/i386/svr3gas.h, config/mmix/mmix.h,
4127 config/pa/pa64-hpux.h (CONST_SECTION_FUNCTION): Remove.
4128
4129 * config/lynx.h, config/svr3.h, config/alpha/elf.h, config/alpha/vms.h,
4130 config/c4x/c4x.h, config/dsp16xx/dsp16xx.h, config/i386/sco5.h,
4131 config/i386/svr3gas.h, config/i860/sysv3.h, config/i860/sysv4.h,
4132 config/ia64/sysv4.h, config/m32r/m32r.h, config/m88k/m88k.h,
4133 config/mcore/mcore-elf.h, config/mcore/mcore-pe.h, config/mips/elf.h,
4134 config/mips/elf64.h, config/mips/iris6.h, config/mips/linux.h,
4135 config/mips/mips.h, config/mips/rtems64.h, config/mips/vxworks.h,
4136 config/rs6000/sysv4.h, config/v850/v850.h
4137 (EXTRA_SECTIONS): Remove in_const/in_rdata.
4138 (EXTRA_SECTION_FUNCTIONS): Remove accompanying function.
4139
4140 * config/svr3.h, config/c4x/c4x.h, config/i386/dgux.h,
4141 config/i386/sco5.h, config/i386/svr3gas.h, config/ia64/aix.h,
4142 config/m88k/dgux.h, config/mcore/mcore-pe.h, config/mmix/mmix.h,
4143 config/sparc/sysv4.h (SELECT_RTX_SECTION): Use readonly_data_section.
4144 * config/alpha/alpha.c (alpha_start_function): Likewise.
4145 (alpha_write_linkage): Likewise.
4146 * config/m32r/m32r.c (m32r_select_section): Likewise.
4147 * config/m88k/m88k.c (m88k_select_section): Likewise.
4148 * config/mips/mips.c (mips_select_rtx_section): Likewise.
4149 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Likewise.
4150 (rs6000_elf_select_section): Likewise.
4151 * config/v850/v850.c (v850_select_section): Likewise.
4152
4153 * config/1750a/1750a.h, config/i860/sysv3.h
4154 (READONLY_DATA_SECTION_ASM_OP): New.
4155 READONLY_DATA_SECTION_ASM_OP.
4156 * config/i386/interix.c, config/i386/winnt.c
4157 (i386_pe_unique_section): Always use .rdata prefix.
4158 * config/pa/som.h (readonly_data): Always switch to read-only section.
4159 (READONLY_DATA_SECTION): Predicate on flag_pic.
4160 * config/we32k/we32k.h (READONLY_DATA_SECTION): Remove parenthesis.
4161 * doc/tm.texi (READONLY_DATA_SECTION_ASM_OP): New.
4162 (READONLY_DATA_SECTION): Update.
4163
e964a556
JT
41642002-05-18 Jason Thorpe <thorpej@wasabisystems.com>
4165
4166 * c-common.c (c_common_post_options): Warn if -Wformat-zero-length
8f9eb495 4167 is used without -Wformat.
e964a556
JT
4168 * c-common.h (warn_format_zero_length): Declare extern.
4169 * c-decl.c (warn_options): Add "format-zero-length".
4170 * c-format.c (warn_format_zero_length): Declare.
4171 (set_Wformat): Set warn_format_zero_length for -Wformat.
4172 (check_format_info): Only warn about zero-length formats if
4173 warn_format_zero_length is true. Include the format type
4174 name in the warning message.
4175 * doc/invoke.texi: Document -Wformat-zero-length.
4176 * testsuite/gcc.dg/format/zero-length-1.c: New test.
4177
d92b4486
KH
41782002-05-18 Kazu Hirata <kazu@cs.umass.edu>
4179
4180 * timevar.c: Fix formatting.
4181 * tlink.c: Likewise.
4182 * toplev.c: Likewise.
4183 * tree-dump.c: Likewise.
4184 * tree-inline.c: Likewise.
4185
43612ffb
NB
41862002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
4187
4188 * cppinit.c (cpp_post_options): If preprocessed, turn off
4189 traditional. If traditional, turn off column numbers.
4190 * cpplib.c (cpp_push_buffer): Lex from stage 3 if traditional.
4191 * cpptrad.c (handle_newline): Update line_base.
4192 (skip_comment): Handle -Wcomment.
4193
f24a153a
ZW
41942002-05-17 Zack Weinberg <zack@codesourcery.com>
4195
4196 * cppinit.c (struct builtin): Remove unused fields.
4197 (CPLUS, BUILTIN, OPERATOR, O, builtin_array_end): Kill.
4198 (operator_array): New - was second half of builtin_array.
4199 (init_builtins): Simplify loop over builtin_array/operator_array.
4200
12403335
NB
42012002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
4202
4203 * defaults.h (UNIQUE_SECTION): Remove.
4204 * system.h (UNIQUE_SECTION, SELECT_SECTION): Poison.
4205
1f8c3c5b
RH
42062002-05-17 Richard Henderson <rth@redhat.com>
4207
4208 * expr.c (init_expr_once): Don't use start/end_sequence.
4209 Use rtx_alloc instead of emit_insn.
4210 * toplev.c (lang_dependent_init): Run init_expr_once here ...
4211 (lang_independent_init): ... not here.
4212
4664f4c4
JT
42132002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
4214
4215 * config/sh/lib1funcs.asm (GLOBAL): Use __USER_LABEL_PREFIX__.
4216
93febe68
MM
42172002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
4218
4219 * config/avr/avr.c (avr_regs_to_save): New function. Also check
4220 for fixed registers, possibly used for global register variables.
4221 (initial_elimination_offset, avr_output_function_prologue,
4222 avr_output_function_epilogue): Move common code to avr_regs_to_save.
4223
004cb263
NB
42242002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
4225
4226 * Makefile.in: Update for cpptrad.c.
4227 * cpphash.h (struct cpp_buffer): New members for buffer
4228 overlays.
4229 (struct cpp_reader): New members for traditional output.
4230 (_cpp_read_logical_line, _cpp_overlay_buffer): New.
4231 * cppinit.c (cpp_create_reader): Set trad_line.
4232 (cpp_destroy): Free trad_out_base if used.
4233 (cpp_read_main_file): Overlay an empty buffer if traditional.
4234 (cpp_finish_options): Don't do builtins.
4235 (COMMAND_LINE_OPTIONS): Add -traditional-cpp.
4236 (cpp_handle_option): Handle it.
4237 * cpplex.c (continue_after_nul): New.
4238 (_cpp_lex_direct): Use handle_nul.
4239 * cpplib.h (struct cpp_options): New traditional option.
4240 * cpptrad.c: New file.
4241
bdcae02b
NB
42422002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
4243
4244 * c-common.c (c_common_init_options): Use C89 for Objective-C,
4245 and set the options flag.
4246 * cppinit.c (lang_flags): Remove objc.
4247 (lang_defaults): Remove OBJC and OBJCXX.
4248 (set_lang): Update.
4249 (COMMAND_LINE_OPTIONS): Remove -+ and -lang-objc++.
4250 (cpp_handle_option): Remove -+ and -lang-objc++.
4251 For ObjC, just set a flag.
4252 (print_help): Update.
4253 * cpplib.h (enum c_lang): Remove CLK_OBJC and CLK_OBJCXX.
4254
0fca60ab
RO
42552002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4256
4257 * doc/install.texi (Specific, mips-sgi-irix6): Document need to
4258 bootstrap with -mips3.
4259
dd3f0101
KH
42602002-05-17 Kazu Hirata <kazu@cs.umass.edu>
4261
4262 * final.c: Fix formatting.
4263 * fix-header.c: Likewise.
4264 * flow.c: Likewise.
4265 * fold-const.c: Likewise.
4266 * function.c: Likewise.
4267
5ca9299f
DM
42682002-05-17 David S. Miller <davem@redhat.com>
4269
4270 PR c/6689, PR optimization/6615
4271 * local-alloc.c (struct equivalence): Rename 'src' to 'src_p'
4272 and make it a pointer to rtx. Update comments.
4273 (update_equiv_regs): When scanning for equivalences, record
4274 address of SET_SRC (set) in reg_equiv[].src_p. Dereference
4275 it while making the equiv replacements.
4276
508bc172
RO
42772002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4278
4279 * config/sparc/sparc.c (sparc_aout_select_section): Fixed typo.
4280
5cd983a6
KK
42812002-05-17 kaz Kojima <kkojima@rr.iij4u.or.jp>
4282
4283 * config/sh/sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P
4284 when encoding visibility into SYMBOL_REF_FLAG.
4285
ce0f3925
RS
42862002-05-17 Richard Sandiford <rsandifo@redhat.com>
4287
4288 * expr.c (force_operand): Fix reversed move.
4289
06809951
GP
42902002-05-17 Kurt Wall <kwall@kurtwerks.com>
4291
4292 * doc/install.texi (Testing): Mention two common DejaGnu warnings
4293 that can be ignored.
4294
42952002-05-16 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4296
4297 * doc/install.texi (Final install): Recommend to install into a
4298 "clean" target directory.
4299
1d5d7a21
RH
43002002-05-17 Richard Henderson <rth@redhat.com>
4301
4302 * config/ia64/ia64.md: Use braced strings instead of quoted strings
4303 for code blocks. Tidy whitespace.
4304
ae46c4e0
RH
43052002-05-17 Richard Henderson <rth@redhat.com>
4306
4307 * hooks.c (hook_tree_bool_false): New.
4308 * hooks.h: Declare it.
4309 * target-def.h (TARGET_ASM_SELECT_SECTION): New.
4310 (TARGET_ASM_UNIQUE_SECTION, TARGET_IN_SMALL_DATA_P): New.
4311 * target.h (select_section, unique_section): New.
4312 (in_small_data_p): New.
4313 * varasm.c (resolve_unique_section): Use hooks instead of macros.
4314 (variable_section, output_constant_def_contents): Likewise.
4315 (default_select_section, default_unique_section): New.
4316 (categorize_decl_for_section, default_elf_select_section): New.
4317 * output.h: Declare them.
4318
4319 * config/darwin.h (ALIAS_SECTION, try_section_alias): Remove.
4320 (TARGET_ASM_SELECT_SECTION): New.
4321 (SELECT_SECTION): Move ...
4322 * config/darwin.c (machopic_select_section): ... here.
4323 * config/darwin-protos.h: Update.
4324
4325 * config/nextstep.h (TARGET_ASM_SELECT_SECTION): New.
4326 (SELECT_SECTION): Move ...
4327 * config/nextstep.c (nextstep_select_section): ... here.
4328 * config/nextstep-protos.h: Update.
4329
4330 * config/elfos.h (UNIQUE_SECTION, SELECT_SECTION): Remove.
4331 (TARGET_ASM_SELECT_SECTION): New.
4332 * config/svr3.h (SELECT_SECTION): Remove.
4333
4334 * config/alpha/alpha.c (unicosmk_unique_section): Make static.
4335 (TARGET_ASM_UNIQUE_SECTION) [UNICOS]: New.
4336 (TARGET_IN_SMALL_DATA_P, alpha_in_small_data_p): New.
4337 (alpha_encode_section_info): Use it.
4338 * config/alpha/alpha-protos.h: Update.
4339 * config/alpha/elf.h (DO_SELECT_SECTION): Remove.
4340 (SELECT_SECTION, UNIQUE_SECTION): Remove.
4341 (TARGET_ASM_SELECT_SECTION): New.
4342 * config/alpha/unicosmk.h (UNIQUE_SECTION): Remove.
4343
4344 * config/arm/pe.h (UNIQUE_SECTION): Remove.
4345 (TARGET_ASM_UNIQUE_SECTION): New.
4346
4347 * config/avr/avr.c (TARGET_ASM_UNIQUE_SECTION): New.
4348 (avr_unique_section): Rename from unique_section; make static.
4349 * config/avr/avr-protos.h: Update.
4350 * config/avr/avr.h (UNIQUE_SECTION): Remove.
4351
4352 * config/c4x/c4x.h (SELECT_SECTION): Remove.
4353
4354 * config/i386/cygwin.h (UNIQUE_SECTION): Remove.
4355 (TARGET_ASM_UNIQUE_SECTION): New.
4356 * config/i386/i386-interix.h: Likewise.
4357 * config/i386/win32.h: Likewise.
4358 * config/i386/djgpp.h (UNIQUE_SECTION): Remove.
4359 * config/i386/i386.c (ix86_asm_file_end): Use target hook not macro.
4360 * config/i386/sco5.h (SELECT_SECTION): Remove.
4361 (TARGET_ASM_SELECT_SECTION): New.
4362 * config/i386/svr3gas.h (SELECT_SECTION): Remove.
4363
4364 * config/i860/paragon.h: Undef TARGET_ASM_SELECT_SECTION
4365 instead of SELECT_SECTION.
4366 * config/m68k/dpx2.h: Likewise.
4367 * config/rs6000/lynx.h: Likewise.
4368
4369 * config/ia64/aix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
4370 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
4371 * config/ia64/ia64.c (TARGET_IN_SMALL_DATA_P): New.
4372 (ia64_in_small_data_p): New.
4373 (ia64_encode_section_info): Use it. Reorganize overlarge conditional.
4374 (ia64_aix_select_section, ia64_aix_unique_section): New.
4375 * config/ia64/sysv4.h (DO_SELECT_SECTION): Remove.
4376 (SELECT_SECTION, UNIQUE_SECTION): Remove.
4377
4378 * config/m32r/m32r.h (SELECT_SECTION): Remove.
4379 (TARGET_ASM_SELECT_SECTION): New.
4380 * config/m32r/m32r.c (m32r_select_section): Take align argument.
4381 * config/m32r/m32r-protos.h: Update.
4382
4383 * config/m88k/m88k.h (TARGET_ASM_SELECT_SECTION): New.
4384 (SELECT_SECTION): Move ...
4385 * config/m88k/m88k.c (m88k_select_section): ... here.
4386
4387 * config/mcore/mcore-pe.h (SELECT_SECTION): Remove.
4388 * config/mcore/mcore.h (UNIQUE_SECTION): Remove.
4389 * config/mcore/mcore.c (TARGET_ASM_UNIQUE_SECTION): New.
4390 (mcore_unique_section): Make static.
4391 * config/mcore/mcore-protos.h: Update.
4392
4393 * config/mips/elf.h (UNIQUE_SECTION): Remove.
4394 (TARGET_ASM_UNIQUE_SECTION): New.
4395 * config/mips/elf64.h: Likewise.
4396 * config/mips/iris6gld.h: Likewise.
4397 * config/mips/linux.h: Likewise.
4398 * config/mips/mips-protos.h: Update.
4399 * config/mips/mips.c (mips_select_section): Add align argument.
4400 * config/mips/mips.h (SELECT_SECTION): Remove.
4401 (TARGET_ASM_SELECT_SECTION): New.
4402
4403 * config/mmix/mmix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
4404 * config/mmix/mmix.c (mmix_select_section): Remove.
4405 (mmix_unique_section): Remove.
4406 * config/mmix/mmix-protos.h: Update.
4407
4408 * config/pa/pa.h (TARGET_ASM_SELECT_SECTION): New.
4409 (SELECT_SECTION): Move ...
4410 * config/pa/pa.c (pa_select_section): ... here.
4411 * config/pa/pa64-hpux.h (UNIQUE_SECTION): Remove.
4412
4413 * config/rs6000/rs6000.c (rs6000_elf_select_section): Rename
4414 from rs6000_select_section and make static.
4415 (rs6000_elf_unique_section): Similarly.
4416 (rs6000_xcoff_select_section): From xcoff.h.
4417 (rs6000_xcoff_unique_section): Likewise.
4418 * config/rs6000/rs6000-protos.h: Update.
4419 * config/rs6000/sysv4.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
4420 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
4421 * config/rs6000/xcoff.h: Likewise.
4422
4423 * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): New.
4424 (SELECT_SECTION): Move ...
4425 * config/sparc/sparc.c (sparc_aout_select_section): ... here.
4426
4427 * config/v850/v850.h (SELECT_SECTION): Move ...
4428 * config/v850/v850.c (v850_select_section): ... here.
4429 (TARGET_ASM_SELECT_SECTION): New.
4430
4431 * config/vax/vms.h (SELECT_SECTION): Move ...
4432 * config/vax/vax.c (vms_select_section): ... here.
4433 (TARGET_ASM_SELECT_SECTION): New.
4434
4435 * doc/tm.texi: Update SELECT_SECTION and UNIQUE_SECTION docs
4436 for the target hooks.
4437
eaeb23a7
NC
44382002-05-17 Nick Clifton <nickc@cambridge.redhat.com>
4439
4440 * config/arm/arm.c (emit_multi_reg_push): Do not set
4441 RTX_FRAME_RELATED_P on the SEQUENCE.
4442
a00fe19f
RH
44432002-05-16 Richard Henderson <rth@redhat.com>
4444
4445 * config/ia64/ia64.c (ia64_reorg): Rebuild bb_for_insn before
4446 splitting. Use split_all_insns; update_life_info_in_dirty_blocks.
4447
5ccff482
RH
44482002-05-16 Richard Henderson <rth@redhat.com>
4449
4450 * config/alpha/unicosmk.h (TARGET_OS_CPP_BUILTINS): Fix typo.
4451
068d7739
RH
4452 * config/ia64/ia64.c (saveable_obstack): Do not declare.
4453
0b17ab2f
RH
44542002-05-16 Richard Henderson <rth@redhat.com>
4455
4456 * basic-block.h, bb-reorder.c, cfg.c, cfganal.c, cfgbuild.c,
4457 cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c, combine.c,
4458 conflict.c, df.c, df.h, dominance.c, final.c, flow.c, function.c,
4459 gcse.c, global.c, graph.c, haifa-sched.c, ifcvt.c, lcm.c,
4460 local-alloc.c, loop.c, predict.c, print-rtl.c, profile.c,
4461 recog.c, reg-stack.c, regclass.c, regmove.c, regrename.c,
4462 reload1.c, reorg.c, resource.c, sbitmap.c, sched-deps.c,
4463 sched-ebb.c, sched-rgn.c, sibcall.c, ssa-ccp.c, ssa-dce.c, ssa.c:
4464 Revert "Basic block renumbering removal", and two followup patches.
4465
8ae86b3c
JT
44662002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
4467
4468 * lcm.c (optimize_mode_switching): Revert previous change.
4469
4e9f27af
ZD
44702002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4471
4472 * sched-rgn.c (schedule_insns): Initialize large_region_blocks
4473 with only extant block numbers.
4474
3cdc1dbc
JT
44752002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
4476
4477 * lcm.c (optimize_mode_switching): Fix typo.
4478
fbfb3b09
ZD
44792002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4480
4481 * flow.c (calculate_global_regs_live): Queue blocks in program order.
4482
b4b0fb02
RO
44832002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4484
4485 * doc/install.texi (Configuration): Document PWDCMD.
4486
63b827c5
DJ
44872002-05-16 Dale Johannesen <dalej@apple.com>
4488
4489 * combine.c (cant_combine_insn_p): Reenable combinations
4490 involving hard regs unless CLASS_LIKELY_SPILLED_P.
4491
748d29c1
NB
44922002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
4493
4494 * c-common.c (cb_register_builtins): Handle more built-ins
4495 here rather than in gcc.c specs.
4496 * gcc.c (cpp_unique_options): Move many built-ins to c-common.c.
4497 (cpp_options): Pass -O flags even when only preprocessing.
4498 * toplev.c (set_fast_math_flags): New prototype.
4499 (fast_math_flags_set_p): New.
4500 (set_no_fast_math_flags): Remove.
4501 (decode_f_option): Update.
4502 * toplev.h (set_fast_math_flags): Update.
4503 (fast_math_flags_set_p): New.
4504 (set_no_fast_math_flags): Remove.
4505config:
4506 * c4x/c4x.c (c4x_override_options): Update.
4507
5279d739
ZW
45082002-05-16 Zack Weinberg <zack@codesourcery.com>
4509
4510 * c-common.c (STDC_0_IN_SYSTEM_HEADERS, REGISTER_PREFIX):
4511 Default-define here.
4512 (builtin_define_with_value): Can now wrap the expansion in
4513 quotation marks if such is wanted.
a00fe19f 4514 (cb_register_builtins): Update calls to builtin_define_with_value.
5279d739
ZW
4515 Define __REGISTER_PREFIX__, __USER_LABEL_PREFIX__, and __VERSION__
4516 here.
4517 (c_common_init): Set options->stdc_0_in_system_headers.
4518 * c-lex.h: Update prototype of builtin_define_with_value.
4519 * cppdefault.h: Remove default definitions of USER_LABEL_PREFIX
4520 and REGISTER_PREFIX.
4521
4522 * cppinit.c (VERS, ULP, C, X): Kill.
4523 (builtin_array): Remove entries for __VERSION__,
4524 __USER_LABEL_PREFIX__, __REGISTER_PREFIX__, and
4525 __HAVE_BUILTIN_SETJMP__. Make __STDC__ always a builtin, not
4526 a constant.
4527 (init_builtins): Kill off a bunch of now-dead code.
4528 (COMMAND_LINE_OPTIONS): Remove -fleading-underscore and
4529 -fno-leading-underscore.
4530 (cpp_handle_option): Remove code to set user_label_prefix.
4531 (cpp_post_options): Likewise.
4532
4533 * cpplib.h (struct cpp_options): Remove user_label_prefix.
4534 (stdc_0_in_system_headers): New.
4535 * cppmacro.c (builtin_macro): Check CPP_OPTION (pfile,
4536 stdc_0_in_system_headers) too to decide the value of __STDC__.
4537
4538 * tradcpp.c (user_label_prefix): Kill.
a00fe19f 4539 (main): Remove code handling -f(no-)leading-underscore.
5279d739
ZW
4540 (initialize_builtins): Don't define __REGISTER_PREFIX__
4541 or __USER_LABEL_PREFIX__.
4542 (install_value): Wrap compound statement in dummy loop so the
4543 macro works properly in an if statement.
4544
4545
62e6ca55
JJ
45462002-05-16 Janis Johnson <janis187@us.ibm.com>
4547
4548 * loop.h (struct loop_info): Add member has_prefetch.
4549 * loop.c (PREFETCH_CONDITIONAL): Change default to 1.
4550 (prescan_loop): Initialize has_prefetch.
4551 (struct prefetch_info): Change prefetch_in_loop and
4552 prefetch_before_loop from bit fields to ints.
4553 (emit_prefetch_instructions): Several small fixes.
4554 (check_dbra_loop): Don't reverse loop that uses prefetch.
4555
1e6347d8
RO
45562002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4557
4558 * Makefile.in: Allow for PWDCMD to override hardcoded pwd.
4559 * configure.in: Likewise.
4560 * fixinc/check.tpl: Likewise.
4561 * fixinc/fixinc.dgux: Likewise.
4562 * fixinc/fixinc.svr4: Likewise.
4563 * fixinc/fixinc.winnt: Likewise.
4564 * fixinc/fixincl.sh: Likewise.
4565 * fixproto: Likewise.
4566 * configure: Regenerate.
4567
355e4ec4
ZD
45682002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4569
4570 Basic block renumbering removal:
4571 * basic_block.h (struct basic_block_def): Renamed index to sindex,
4572 added prev_bb and next_bb fields.
4573 (n_basic_blocks): Renamed to num_basic_blocks.
4574 (last_basic_block): New, index of last basic block.
4575 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
4576 traversing basic block chain.
4577 (BLOCK_NUM): index -> sindex.
4578 (create_basic_block_structure, create_basic_block): Declaration changed.
4579 (debug_num2bb): Declare.
4580 (expunge_block_nocompact): Declaration removed.
4581 (link_block, unlink_block, compact_blocks): Declare.
4582 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1): Modified.
4583 * cfg.c (entry_exit_blocks): Initialize new fields.
4584 (clear_edges, alloc_block, expunge_block, cached_make_edge,
4585 redirect_edge_pred, dump_flow_info, dump_edge_info,
4586 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges,
4587 free_aux_for_edges): Modified.
4588 (link_block, unlink_block, compact_blocks, debug_num2bb): New.
4589 (expunge_block_nocompact): Removed.
4590 * cfganal.c (can_fallthru, mark_dfs_back_edges, flow_call_edges_add,
4591 find_unreachable_blocks, create_edge_list, print_edge_list,
4592 verify_edge_list, flow_edge_list_print, remove_fake_successors,
4593 remove_fake_edges, flow_reverse_top_sort_order_compute,
4594 flow_depth_first_order_compute, flow_preorder_transversal_compute,
4595 flow_dfs_compute_reverse_init, flow_dfs_compute_reverse_add_bb,
4596 flow_dfs_compute_reverse_execute): Modified.
4597 * cfgbuild.c (make_edges, make_eh_edge, find_basic_blocks_1,
4598 find_basic_blocks, find_many_sub_basic_blocks, find_sub_basic_blocks):
4599 Modified.
4600 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
4601 merge_blocks_move_predecessor_nojumps,
4602 merge_blocks_move_successor_nojumps, merge_blocks,
4603 outgoing_edges_match, try_crossjump_to_edge, try_crossjump_bb,
4604 try_optimize_cfg, delete_unreachable_blocks, cleanup_cfg): Modified.
4605 * cfglayout.c (skip_insns_after_block, label_for_bb,
4606 record_effective_endpoints, scope_to_insns_finalize,
4607 fixup_reorder_chain, verify_insn_chain, cleanup_unconditional_jumps,
4608 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge,
4609 cfg_layout_duplicate_bb): Modified.
4610 * cfgloop.c (flow_loops_cfg_dump, flow_loop_dump, flow_loops_dump,
4611 flow_loop_entry_edges_find, flow_loop_exit_edges_find,
4612 flow_loop_nodes_find, flow_loop_pre_header_find, flow_loop_scan,
4613 flow_loops_find, flow_loop_outside_edge_p): Modified.
4614 * cfgrtl.c (create_basic_block_structure, create_basic_block,
4615 flow_delete_block, compute_bb_for_insn, split_block,
4616 try_redirect_by_replacing_jump, redirect_edge_and_branch,
4617 force_nonfallthru_and_redirect, tidy_fallthru_edge,
4618 back_edge_of_syntactic_loop_p, split_edge, commit_one_edge_insertion,
4619 commit_edge_insertions, commit_edge_insertions_watch_calls,
4620 dump_bb, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
4621 purge_all_dead_edges): Modified.
4622 * combine.c (combine_instructions, set_nonzero_bits_and_sign_copies,
4623 try_combine, nonzero_bits, num_sign_bit_copies, get_last_value_validate,
4624 get_last_value, reg_dead_at_p, distribute_notes, distribute_links):
4625 Modified.
4626 * conflict.c (conflict_graph_compute): Modified.
4627 * df.c (FOR_ALL_BBS): Removed.
4628 (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
4629 df_modified_p, df_analyse, df_refs_unlink, df_insn_modify,
4630 df_dump, hybrid_search_bitmap, iterative_dataflow_sbitmap): Modified.
4631 * df.h (DF_BB_INFO, DF_REF_BBNO): Modified.
4632 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
4633 calc_idoms, idoms_to_doms, calculate_dominance_info): Modified.
4634 * final.c (compute_alignments, final_scan_insn): Modified.
4635 * flow.c (verify_local_live_at_start, update_life_info,
4636 update_life_info_in_dirty_blocks, free_basic_block_vars,
4637 delete_noop_moves, calculate_global_regs_live,
4638 initialize_uninitialized_subregs, allocate_bb_life_data,
4639 regno_uninitialized, regno_clobbered_at_setjmp, mark_set_1,
4640 mark_used_reg, count_or_remove_death_notes): Modified.
4641 * function.c (thread_prologue_and_epilogue_insns): Modified.
4642 * gcse.c (struct null_pointer_info): Change typo of current_block
4643 to basic_block.
4644 (gcse_main, alloc_gcse_mem, compute_local_properties, compute_sets,
4645 oprs_unchanged_p, load_killed_in_block_p, record_last_reg_set_info,
4646 compute_hash_table, alloc_rd_mem, handle_rd_kill_set, compute_kill_rd,
4647 alloc_avail_expr_mem, expr_killed_p, compute_ae_kill,
4648 expr_reaches_here_p_work, expr_reaches_here_p, handle_avail_expr,
4649 classic_gcse, one_classic_gcse_pass, compute_transp, cprop,
4650 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p_work,
4651 pre_expr_reaches_here_p, insert_insn_end_bb, pre_edge_insert,
4652 pre_delete, one_pre_gcse_pass, compute_transpout,
4653 invalidate_nonnull_info, delete_null_pointer_checks_1,
4654 free_code_hoist_mem, compute_code_hoist_vbeinout,
4655 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
4656 compute_ld_motion_mems, store_ops_ok, find_moveable_store,
4657 compute_store_table, build_store_vectors, insert_insn_start_bb,
4658 insert_store, replace_store_insn, free_store_memory, store_motion):
4659 Modified.
4660 * global.c (global_alloc, global_conflicts, mark_elimination,
4661 build_insn_chain): Modified.
4662 * graph.c (print_rtl_graph_with_bb): Modified.
4663 * haifa-sched.c (sched_init): Modified.
4664 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
4665 (find_if_block, find_cond_trap, find_if_case_1, find_if_case_2,
4666 if_convert): Modified.
4667 * lcm.c (compute_antinout_edge, compute_earliest, compute_laterin,
4668 compute_insert_delete, pre_edge_lcm, compute_available,
4669 compute_farthest, compute_nearerout, compute_rev_insert_delete,
4670 pre_edge_rev_lcm, make_preds_opaque, optimize_mode_switching):
4671 Modified.
4672 * local-alloc.c (alloc_qty, local_alloc, update_equiv_regs): Modified.
4673 * loop.c (loop_dump_aux): Modified.
4674 * predict.c (combine_predictions_for_insn, estimate_probability,
4675 last_basic_block_p, process_note_prediction, process_note_predictions,
4676 note_prediction_to_br_prob, propagate_freq, counts_to_freqs,
4677 expensive_function_p, estimate_bb_frequencies,
4678 compute_function_frequency): Modified.
4679 * print-rtl.c (print_rtx): Modified.
4680 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX, instrument_edges,
4681 get_exec_counts, compute_branch_probabilities, compute_checksum,
4682 branch_prob, find_spanning_tree): Modified.
4683 * recog.c (split_all_insns, peephole2_optimize): Modified.
4684 * reg-stack.c (reg_to_stack, convert_regs_entry, compensate_edge,
4685 convert_regs_1, convert_regs_2, convert_regs): Modified.
4686 * regclass.c (scan_one_insn, regclass): Modified.
4687 * regmove.c (mark_flags_life_zones, regmove_optimize,
4688 combine_stack_adjustments): Modified.
4689 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Modified.
4690 * reload1.c (reload, reload_combine, copy_eh_notes): Modified.
4691 * reorg.c (dbr_schedule): Modified.
4692 * resource.c (find_basic_block, init_resource_info): Modified.
4693 * sbitmap.c (sbitmap_intersection_of_succs,
4694 sbitmap_intersection_of_preds, sbitmap_union_of_succs,
4695 sbitmap_union_of_preds): Modified.
4696 * sched-deps.c (init_dependency_caches): Modified.
4697 * sched-ebb.c (schedule_ebbs): Modified.
4698 * sched-rgn.c (is_cfg_nonregular, build_control_flow, debug_regions,
4699 find_rgns, compute_trg_info, init_regions, schedule_insns): Modified.
4700 * sibcall.c (optimize_sibling_and_tail_recursive_call): Modified.
4701 * ssa-ccp.c (examine_flow_edges, optimize_unexecutable_edges,
4702 ssa_ccp_substitute_constants, ssa_ccp_df_delete_unreachable_insns,
4703 ssa_const_prop): Modified.
4704 * ssa-dce.c (set_control_dependent_block_to_edge_map_,
4705 find_control_dependence, find_pdom, ssa_eliminate_dead_code): Modified.
4706 * ssa.c (remove_phi_alternative, find_evaluations,
4707 compute_dominance_frontiers_1, compute_iterated_dominance_frontiers,
4708 insert_phi_node, rename_block, convert_to_ssa, eliminate_phi,
4709 make_regs_equivalent_over_bad_edges,
4710 make_equivalent_phi_alternatives_equival,
4711 compute_conservative_reg_partition,
4712 coalesce_regs_in_successor_phi_nodes, compute_coalesced_reg_partition,
4713 rename_equivalent_regs, convert_from_ssa, for_each_successor_phi):
4714 Modified.
4715
5a566bed
MM
47162002-05-16 Mark Mitchell <mark@codesourcery.com>
4717
4718 * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
4719
48f6efae
NC
47202002-05-16 Nick Clifton <nickc@cambridge.redhat.com>
4721
4722 * config/arm/arm.c (arm_rtx_costs): Check for RTX being a
4723 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
4724 (arm_adjust_cost): Check for RTX being a SYMBOL_REF before
4725 calling CONSTANT_POOL_ADDRESS_P.
4726 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in code
4727 to decide whether to define __arm__ or __thumb.
355e4ec4 4728 (THUMB_GO_IF_LEGITIMATE_ADDRESS): Check for RTX being a
48f6efae
NC
4729 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
4730
b166fadd
NB
47312002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
4732
4733 * config/arc/arc.h (CPP_PREDEFINES): Remove.
4734 (CPP_SPEC): Update.
4735 (TARGET_CPU_CPP_BUILTINS): New.
4736
601328bb
NB
47372002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
4738
4739 * cpphash.h (cpp_macro): Move here, and make expansion a union.
4740 * cppmacro.c (cpp_macro): Remove.
4741 (enter_macro_context, replace_args, warn_of_redefinition,
4742 _cpp_create_definition, cpp_macro_definition): Update.
4743
ff48be5c
JM
47442002-05-16 Jason Merrill <jason@redhat.com>
4745
4746 * config/mips/mips.c (mips_output_external): Don't do sdata
4747 optimization for a variable with DECL_COMDAT set.
4748
805c42ba
AH
47492002-05-15 Aldy Hernandez <aldyh@redhat.com>
4750
355e4ec4
ZD
4751 * config/rs6000/altivec.h: Cleanups for tighter typechecking.
4752 Cleanups for accepting modifiers on pointers.
4753 Fix predicate typos.
4754 Allow long pointers as well as int pointers.
805c42ba 4755
34fb9ba5
RH
47562002-05-15 Richard Henderson <rth@redhat.com>
4757
4758 * varasm.c (merge_weak): Remove special case for extern and common.
4759
62e118f5
MH
47602002-05-15 Matt Hiller <hiller@redhat.com>
4761
4762 * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
355e4ec4 4763 XFAILing.
62e118f5
MH
4764 * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
4765 * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
4766 * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
4767 * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
4768 * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
4769 * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
4770
fefac463
AH
47712002-05-15 Aldy Hernandez <aldyh@redhat.com>
4772
355e4ec4 4773 * reload1.c (forget_old_reloads_1): Do not use subreg offset.
fefac463 4774
5f004351
AH
47752002-05-15 Aldy Hernandez <aldyh@redhat.com>
4776
355e4ec4
ZD
4777 * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
4778 ("altivec_mfvscr"): Read from VSCR.
4779
4780 Add vscr sets for the following insns: altivec_vctuxs,
4781 altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
4782 altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
4783 altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
4784 altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
4785 altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
4786 altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
4787 altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
4788 altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
4789 altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
4790 altivec_vsum2sws, altivec_vsumsws.
4791
4792 * config/rs6000/rs6000.h: Add VSCR fixed register.
4793 (CALL_REALLY_USED_REGISTERS): Add vscr.
4794 (CALL_USED_REGISTERS): Same.
4795 (FIXED_REGISTERS): Same.
4796 (REG_ALLOC_ORDER): Same.
4797 (reg_class): Add VSCR_REGS.
4798 (REG_CLASS_NAMES): Same.
4799 (REG_CLASS_CONTENTS): Same.
4800 (VSCR_REGNO): New.
4801 (REGISTER_NAMES): Add vscr.
4802 (DEBUG_REGISTER_NAMES): Same.
4803 (ADDITIONAL_REGISTER_NAMES): Same.
4804 (FIRST_PSEUDO_REGISTER): Increment.
4805 (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
5f004351 4806
033afd11
RH
48072002-05-15 Jakub Jelinek <jakub@redhat.com>
4808
4809 * fold-const.c (fold): Fix a typo.
4810
48112002-05-15 Eric Botcazou <ebotcazou@multimania.com>
4812
4813 * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
4814 comparison against the highest or lowest integer value before
4815 the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
4816 transformation and that of an unsigned comparison against 0
4817 right after.
4818
14285ace
RH
48192002-05-15 Richard Henderson <rth@redhat.com>
4820
4821 * varasm.c (merge_weak): Error for any weakening after definition.
4822 Adjust weakening after use warning to catch more cases.
4823 (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
4824 * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
4825
194734e9
JH
4826Wed May 15 10:38:27 CEST 2002 Jan Hubicka <jh@suse.cz>
4827
4828 * invoke.texi (-malign-double): Re-add lost warning.
4829
4830 * i386-protos.h (x86_output_mi_thunk): Declare.
4831 * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
4832 * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
4833
4834 * dwarf2out.c (output_call_frame_info): Do not skip unwind info
4835 when flag_asynchronous_unwind_tables is set.
4836
4837 * flags.h (flag_reorder_functions): Declare.
4838 * function.c (prepare_function_start): Initialize frequnecy.
14285ace 4839 * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
194734e9
JH
4840 * Makefile.in (predict.o): Add dependency on target.h and params.h
4841 * defaults.h (HOT_TEXT_SECTION_NAME,
4842 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
4843 * predict.c (choose_function_section): New function.
4844 (estimate_bb_frequencies): Use it.
4845 * toplev.c (flag_reorder_functions): New global variable.
4846 (lang_independent_options): New.
4847 (parse_options_and_default_flags): Set.
4848 * varasm.c (assemble_start_function): Bypass functdion alignment
4849 for never executed functions.
4850 * invoke.texi (-freorder-blocks, -freorder-functions): Document.
4851 (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
4852 * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
4853 Document.
4854
4855 Thu Jan 3 21:52:09 CET 2002 Jan Hubicka <jh@suse.cz>
4856
4857 * predict.c: Inlude profile.h
4858 (MIN_COUNT): Rename to MIN_COUNT_FRACTION
4859 (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
4860 Use the information about maximal counter in the program.
4861
4862 Thu Dec 20 22:14:00 CET 2001 Jan Hubicka <jh@suse.cz>
4863
4864 * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
4865 probably_never_executed_bb_p): New functions.
4866 * cfgcleanup.c (outgoing_edges_match): Use them.
4867 * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
4868 (maybe_hot_bb_p, probably_cold_bb_p,
4869 probably_never_executed_bb_p): New functions.
4870
4871 * function.h (function): Add new field function_frequency.
4872 * predict.c (compute_function_frequency): New function.
4873 (estimate_probability): Call it.
4874
61ad9a34
JJ
48752002-03-09 Jakub Jelinek <jakub@redhat.com>
4876
4877 PR optimization/5172, optimization/5200
4878 * gcse.c (gcse_main): Disable store_motion.
4879
a11eba95
ZW
48802002-05-14 Zack Weinberg <zack@codesourcery.com>
4881
4882 * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
4883 (c_common_nodes_and_builtins): Use it.
4884 (builtin_define_with_value): New function.
4885 (cb_register_builtins): Define __SIZE_TYPE__,
4886 __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
4887 using builtin_define_with_value. Use consistent notation when
4888 defining __GXX_WEAK__.
4889 (WCHAR_TYPE_SIZE): Don't redefine.
4890 (combine_strings): Don't use WCHAR_TYPE_SIZE.
4891
4892 * cppdefault.h: Don't provide defaults for SIZE_TYPE,
4893 PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
4894 * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
4895 * tradcpp.c (initialize_builtins): Likewise.
4896 * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
4897
4898 * c-lex.h (builtin_define_with_value): Prototype.
4899 * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
4900 NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
4901 * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
4902
4903 * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
4904 config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
4905 config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
4906 config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
4907 config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
4908 config/sparc/linux64.h, config/sparc/netbsd-elf.h,
4909 config/sparc/sol2-bi.h, config/sparc/sparc.h:
4910 Do not define NO_BUILTIN_SIZE_TYPE etc. Remove all references
4911 to __SIZE_TYPE__ etc from all spec strings. When this makes
4912 extra specs empty, delete them.
4913
1c31ecf6
JDA
49142002-05-14 John David Anglin <dave@hiauly1.hia.nrc.ca>
4915
4916 * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
4917 for PA8000 or generating dwarf2 call frame information.
4918 (output_call): Remove DO_FRAME_NOTES check from return pointer
4919 optimization.
4920 (following_call): Return 0 when scheduling for PA8000 or generating
4921 dwarf2 call frame information. Revise comment.
4922
ac9cfada
NB
49232002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
4924
4925config/alpha:
4926 * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
4927 and __IEEE_FP_INEXACT as appropriate.
4928 (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
4929 (CPP_SPEC): Remove ieee defines.
4930 * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
4931
9b690711
RH
49322002-05-14 Richard Henderson <rth@redhat.com>
4933
4934 * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
4935 (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
4936
e6471be6
NB
49372002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
4938
e6471be6
NB
4939 * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
4940 (CPP_SPEC): Update.
4941 (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
4942 CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
4943 CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
4944 CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
4945 (EXTRA_SPECS): Update.
4946 * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
4947 arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
4948 arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
4949 define TARGET_OS_CPP_BUILTINS if necessary.
4950
e5f5feea
NB
49512002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
4952
4953 * gcc.c (cpp_options): Must pass -m* and -f* options
4954 to the front end even when only preprocessing.
4955 (cc1_options): Remove redundant -lang-c.
4956 * tradcpp.c (main): Ignore -m options.
4957objc:
4958 * lang-specs.h: Similarly.
4959
317638a8
VM
49602002-05-14 Vladimir Makarov <vmakarov@redhat.com>
4961
4962 * genautomata.c (transform_3): Add code for transformation
4963 `(A,B,...)+C -> A+C,B,...'.
4964
4d604303
JH
4965Tue May 14 12:48:22 CEST 2002 Jan Hubicka <jh@suse.cz>
4966
4967 * final.c (end_final): Do not output profile_arcs constructor, when
4968 no functions are instrumented.
4969
b18b06ed
JH
4970Tue May 14 12:38:30 CEST 2002 Jan Hubicka <jh@suse.cz>
4971
4972 * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
4973
a12f97f0
GP
49742002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4975
4976 * doc/install.texi: Remove special markup originally required for
4977 HTML generation with texi2html.
4978
c1ae3eb4
AS
49792002-05-14 Andreas Schwab <schwab@suse.de>
4980
4981 * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
4982 SELECT_SECTION.
4983 (UNIQUE_SECTION): Define to get small data correctly.
1b18fc2c
AS
4984
4985 * varasm.c (resolve_unique_section): Add third parameter
4986 flag_function_or_data_sections and use it instead of
4987 flag_function_sections.
4988 (assemble_start_function): Pass flag_function_sections.
4989 (asm_emit_uninitialised): Pass flag_data_sections.
4990 (assemble_variable): Likewise.
4991
8ee41eaf
RH
49922002-05-14 Richard Henderson <rth@redhat.com>
4993
4994 * config/i386/i386.md: Use define_constants for unspec numbers.
4995 * config/i386/i386.c: Likewise.
4996
e6471be6
NB
49972002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
4998
4999 * doc/contrib.texi: Update my entry.
5000
c297b764
MM
50012002-05-13 Mark Mitchell <mark@codesourcery.com>
5002
5003 * fixinc/inclhack.def (winidss_valist): Limit applicability.
5004 * fixinc/fixincl.x: Regenerated.
5005 * fixinc/tests/base/math.h: Update.
5006 * fixinc/tests/base/testing.h: Likewise.
5007
0b42c8f8
ZW
50082002-05-13 Zack Weinberg <zack@codesourcery.com>
5009
5010 * genattr.c (gen_attr): Don't emit a comma after the last
5011 enumerator.
5012
546c093e
RH
50132002-05-13 Richard Henderson <rth@redhat.com>
5014
5015 * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
5016 by non-local gotos.
5017 * recog.c (peephole2_optimize): Likewise.
5018
85be8c2d
AP
50192002-05-13 Andris Pavenis <pavenis@lanet.lv>
5020
5021 * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
5022 input to O_BINARY.
5023
765b8f90
JL
50242002-05-13 Jeffrey A Law (law@redhat.com)
5025
fe4b3c79
JL
5026 * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
5027 Update prototype and callers.
5028 (propagate_one_insn): Stack pointer adjustments kill MEMs on
5029 the mem_set_list which reference the stack pointer, as do
5030 calls to constant functions as they may clobber outgoing
5031 argument space.
5032
16133d00
JL
5033 * i386.c (ia32_multipass_dfa_lookahead): Prototype.
5034
765b8f90
JL
5035 * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
5036 (ia32_multipass_dfa_lookahead): New function.
5037
63826d5b
NB
50382002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
5039
5040 * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
5041 (translate_options): Remove 'V'.
5042 (process_command): Similarly.
5043doc:
5044 * invoke.texi: Remove documentation of 'V'.
5045
dcb41ced
UW
50462002-05-13 Ulrich Weigand <uweigand@de.ibm.com>
5047
5048 * config/s390/linux.h: Revert 2002-04-22 changes.
5049
8dfea428
SM
50502002-05-13 Scott Marks <SMarks@mobile-mind.com>
5051
5052 * config/fr30/fr30.md: Only allow splits of immediate loads
5053 if the destination is a register.
5054
12a41c22
NB
50552002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
5056
5057 * Makefile.in (c-common.o, cppinit.o): Update.
5058 * c-common.c: Include except.h.
5059 (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
5060 Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
5061 * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
5062 * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
5063 CPP_PREDEFINES): Handle here.
5064config:
5065 * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
5066 alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
5067 alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
5068 TARGET_OS_CPP_BUILTINS.
5069 * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
5070 (CPP_SPEC, EXTRA_SPECS): Update.
5071 (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
5072 CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
5073 CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
5074 CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
5075 CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
5076doc:
5077 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
5078 (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
5079
5692c7bc
ZW
50802002-05-12 Zack Weinberg <zack@codesourcery.com>
5081
5082 * emit-rtl.c (global_rtl): Update comment.
5083 (const_double_htab, const_double_htab_hash,
5084 const_double_htab_hash, lookup_const_double): New.
5085 (const_int_htab_hash, const_int_htab_eq): Remove const
5086 qualifiers, which cause tons of warnings with RTL checking on.
5087 (gen_rtx_CONST_DOUBLE): Deleted.
5088 (const_double_from_real_value): New function - bears some
5089 resemblance to the former immed_real_const_1.
5090 (immed_double_const): Moved here from varasm.c and
5091 simplified.
5092 (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
5093 (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
5094 (gen_rtx): Use immed_double_const.
5095 (init_emit_once): Initialize the const_double_htab. Use
5096 REAL_VALUE_FROM_INT where possible. Can now use
5097 CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
5098 * varasm.c (struct varasm_status): Remove x_const_double_chain.
5099 (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
5100 (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
5101 (init_varasm_status, mark_varasm_status): Don't touch
5102 x_const_double_chain.
5103
5104 * output.h: Delete prototype for clear_const_double_mem.
5105 * real.h: Make REAL_VALUE_TYPE a macro again. Remove leading
5106 '0' slot from all CONST_DOUBLE_FORMAT definitions. Prototype
5107 const_double_from_real_value, not immed_real_const_1, and use
5108 it to define CONST_DOUBLE_FROM_REAL_VALUE. Define new macro
5109 CONST_DOUBLE_ATOF.
5110 * rtl.h (CONST_DOUBLE_CHAIN): Kill.
5111 (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
5112 (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
5113 (gen_rtx_REG): Second arg is unsigned.
5114
5115 * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
5116 (excluded_rtx): New, return true for CONST_DOUBLE.
5117 (genmacro): Write nothing for excluded codes.
5118 * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
5119 * expr.c (expand_expr): Likewise.
5120 * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
5121 CONST_DOUBLE_CHAIN.
5122 * toplev.c (rest_of_compilation): Don't call
5123 clear_const_double_mem.
5124
5125 * config/rs6000/rs6000.c (rs6000_float_const): Delete.
5126 (rs6000_hash_constant): Remove CONST_DOUBLE special case.
5127 (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
5128 * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
5129 * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
5130 * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
5131 config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
5132 * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
5133
31397a7b
KG
51342002-05-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5135
5136 * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
5137
1b70d38a
TT
51382002-05-12 Tom Tromey <tromey@redhat.com>
5139
5140 * tree.h (copy_node): Don't mention TREE_PERMANENT.
5141
9a5834ae
ZW
51422002-05-12 Zack Weinberg <zack@codesourcery.com>
5143
5144 * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
5145 (scan_comma_elt): New function. Accepts whitespace in comma lists.
5146 * gensupport.h: Prototype new routines.
5147 * genattr.c (gen_attr): Use scan_comma_elt. Avoid unnecessary
5148 use of printf.
5149 * genattrtab.c (n_comma_elts): Moved to gensupport.c.
5150 (next_comma_elt): Use scan_comma_elt.
5151
5152 * config/i386/i386.md: Use new attribute notation to break up
5153 long lines in define_attr forms.
5154
51286de6
RH
51552002-05-12 Richard Henderson <rth@redhat.com>
5156
5157 * expr.c (compress_float_constant): New.
5158 (emit_move_insn): Use it.
5159 (float_extend_from_mem): New.
5160 (init_expr_once): Initialize it.
5161 * real.c (exact_real_truncate): New.
5162
5163 * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
5164 dropped into memory; penalize for size.
5165 (RTX_COSTS): FLOAT_EXTEND is free.
5166 * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
5167 extenddfxf2, extenddftf2): Accept constants and drop them to memory.
5168
6412341e
RH
51692002-05-12 Richard Henderson <rth@redhat.com>
5170
5171 * profile.h (profile_info): Add missing extern to declaration.
5172 * profile.c (profile_info): Define it.
5173
12877f09
JDA
51742002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
5175
5176 * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
5177 used for DImode and TImode.
5178
387f9e32
NB
51792002-05-11 Neil Booth <neil@daikokuya.demon.co.uk>
5180
5181 * cpplex.c (_cpp_lex_direct): When in a directive at EOF
5182 fake a newline.
5183
e1a0f69c
ZW
51842002-05-11 Zack Weinberg <zack@codesourcery.com>
5185
5186 * config/rs6000/rs6000.c (rs6000_default_long_calls,
5187 rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
5188 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
5189 (rs6000_override_options): Handle -m(no-)longcall.
5190 (init_cumulative_args, output_mi_thunk): Check for both
5191 longcall and shortcall attributes on the function.
5192 (rs6000_attribute_table): Add "shortcall".
5193 (rs6000_handle_longcall_attribute): Update comment.
5194 (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
5195 altivec_expand_ternop_builtin): Add default clauses to switches
5196 to silence warnings.
5197
5198 * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
5199 rs6000_default_long_calls. Define REGISTER_TARGET_PRAGMAS.
5200 (TARGET_OPTIONS): Add longcall and no-longcall.
5201
5202 * config/rs6000/rs6000.md (call_nonlocal_sysv,
5203 call_value_nonlocal_sysv): Split by alternatives. One pair
5204 accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
5205 the call cookie. The other pair accepts only LR/CTR and has
5206 no restriction.
5207
5208 * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
5209 Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
5210 tmake_file.
5211 * config/rs6000/rs6000-c.c: New file.
5212 * config/rs6000/t-rs6000-c-rule: New file.
5213 * config/rs6000/rs6000-protos.c: Add multiple-include guard.
5214 Prototype rs6000_pragma_longcall.
5215
5216 * doc/extend.texi: Document shortcall attribute.
5217 * doc/invoke.texi: Document -mlongcall, -mno-longcall.
5218
9c64026d
JDA
52192002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
5220
5221 * reorg.c (dbr_schedule): Remove unnecessary test.
5222
6c81a490
JH
5223Sat May 11 14:34:35 CEST 2002 Jan Hubicka <jh@suse.cz>
5224
5225 * i386.md (testsi to testqi spliters): New.
5226
5227 2002-01-14 Josef Zlomek <zlomek@matfyz.cz>
5228
5229 cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
5230
5231 Wed Jan 9 2002 Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
5232
5233 * basic-block.h: New flag EDGE_CAN_FALLTHRU
5234 * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
5235 that can be made fallthru.
5236
5237 Mon Nov 12 16:25:53 CET 2001 Jan Hubicka <jh@suse.cz>
5238
5239 * cfglayout.c (cleanup_unconditional_jumps): New static function.
5240 (cfg_layout_initialize): Use it.
4c476cf3 5241
e4447d94
MM
52422002-05-11 Marek Michalkiewicz <marekm@amelek.gda.pl>
5243
5244 * config/avr/avr.c (avr_mcu_types): Update supported devices.
5245 * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
5246 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
5247
3a538a66
KH
52482002-05-11 Kazu Hirata <kazu@cs.umass.edu>
5249
5250 * dbxout.c: Fix formatting.
5251 * dependence.c: Likewise.
5252 * df.c: Likewise.
5253 * diagnostic.c: Likewise.
5254 * doloop.c: Likewise.
5255 * dominance.c: Likewise.
5256 * doschk.c: Likewise.
5257 * dwarf2asm.c: Likewise.
5258 * dwarf2out.c: Likewise.
5259 * dwarfout.c: Likewise.
5260
2292e8fc
RH
52612002-05-10 Richard Henderson <rth@redhat.com>
5262
5263 * final.c (end_final): Tidy whitespace. Don't honor flag_pack_struct.
5264 Convert integers constants as needed. Replace "nwords" field with
5265 "sizeof_bb".
5266 (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
5267 * function.h: Fix typo in comment.
5268 * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
5269
dbfb1116
RS
52702002-05-10 Roger Sayle <roger@eyesopen.com>
5271
5272 * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
5273 into the equivalent (signed char)c > 0.
5274
79a497cd
JJ
52752002-05-10 Janis Johnson <janis187@us.ibm.com>
5276
5277 * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
5278 (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
5279 (struct prefetch_info): Fix spelling of member bytes_accessed.
5280 (emit_prefetch_instructions): Make dump messages more regular;
5281 restructure code to add more dump messages; use new macros for
5282 heuristics. (There are no code generation changes in any of this).
5283
6c45cb0d
DM
52842002-05-10 David S. Miller <davem@redhat.com>
5285
7440af14
DM
5286 * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
5287 (struct rtx_def): Update unchanging flag comment.
5288 * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
5289 * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
5290 to be handled to INSN too.
5291 (dbr_schedule): Likewise.
5292 * resource.c (next_insn_no_annul): Likewise.
5293
6c45cb0d
DM
5294 * cse.c (rtx_cost): Remove multiplication by power of 2 special
5295 casing.
5296
29f21e4f
GP
52972002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
5298
5299 * doc/install.texi (Specific, *-*-solaris2*): Update passus on
5300 setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
5301 (possibly) work around broken /bin/sh.
5302
e4ba88da
RO
53032002-05-10 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5304
5305 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
5306 . as N64/N32 libgcc_s.so subdirs.
5307
4f4778ee
DM
53082002-05-10 David S. Miller <davem@redhat.com>
5309
5310 * config/sparc/sparc.md: Use define_constants for unspec numbers.
cf40ea15
DM
5311
5312 * rtl.h (struct rtx_def): Document unchanging and in_struct flags
5313 more accurately.
5314 (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
5315 comment.
5316 (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
5317 * doc/rtl.texi: Document these macros more accurately.
5318 * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
5319 JUMP_INSNs and CALL_INSNs.
5320 * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
5321 or INSN_FROM_TARGET_P if the code is appropriate.
5322
1a499b92
MM
53232002-05-10 Marek Michalkiewicz <marekm@amelek.gda.pl>
5324
5325 * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
5326 before using SYMBOL_REF_FLAG (addr).
5327
5328 * config/avr/avr-protos.h (avr_io_address_p): Declare.
5329 * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
5330 Make non-static. Update all callers.
5331 * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
5332 New insns to clear/set/test a single bit in I/O address space.
5333
65212b66
KG
53342002-05-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5335
5336 * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
5337
3df89291
NB
53382002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
5339
5340 * Makefile.in: Update.
5341 * c-common.c (flag_iso, flag_undef, cb_register_builtins,
5342 builtin_define_std): New.
5343 (c_common_init): Register CPP builtins callback.
5344 * c-common.h (flag_iso, flag_undef): New.
5345 * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
5346 * c-lex.c: Don't include target.h.
5347 (cb_register_builtins): Move to c-common.c.
5348 (init_c_lex): Don't register hook here.
5349 * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
5350 (cpp_define, cpp_assert): Remove.
5351 * gcc.c (cc1_options): Pass -undef to front end.
5352 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
5353 (TARGET_INITIALIZER): Update.
5354 * target.h (struct cpp_reader): Don't predeclare.
5355 (struct gcc_target): Remove cpp builtin hook.
5356 * tree.c (default_register_cpp_builtins): Remove.
5357doc:
5358 * tm.texi: Update.
5359
32fa4565
NB
53602002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
5361
5362 * cppexp.c (_cpp_expand_op_stack): Set op_limit.
5363
23357c55
RO
53642002-05-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5365
5366 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
5367 (SHLIB_LINK, SHLIB_INSTALL): Adjust.
5368
5aa26af0
JJ
53692002-05-09 Jakub Jelinek <jakub@redhat.com>
5370
5371 * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
5372 * config/sparc/libgcc-sparc-glibc.ver: New file.
5373 * config/cris/t-linux (SHLIB_MAPFILES): Remove.
5374 * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
5375
2937267b
JJ
53762002-05-09 Jakub Jelinek <jakub@redhat.com>
5377
5378 PR target/6429
5379 * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
5380 * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
5381 shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
5382 base multilibs.
5383 * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
5384 * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
5385 * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
5386 * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
5387
086c0f96
RH
53882002-05-09 Richard Henderson <rth@redhat.com>
5389
5390 * config/ia64/ia64.md: Use define_constants for unspec numbers.
5391 * config/ia64/ia64.c: Likewise.
5392
a8b4881f
RS
53932002-05-09 Richard Sandiford <rsandifo@redhat.com>
5394
5395 * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
5396 (save_restore_insns): Likewise.
5397 (mips_expand_prologue, mips_expand_epilogue): Update callers.
5398 (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
5399
243e5500 5400Thu May 9 11:50:09 2002 Jeffrey A Law (law@redhat.com)
890d52e8 5401
af2728a4
JL
5402 * athlon.md, k6.md, pentium.md, ppro.md): New files.
5403 * i386.md: Move scheduling information into new files.
5404
890d52e8
JL
5405 * i386.md (type attribute): Add "rotate" for rotate insns.
5406 (rotate insns): Set type to "rotate".
5407 (various attributes and function units): Treat rotate like shift.
5408 (pent_pair attribute): Only rotates by one bit position are
5409 pairable.
5410 (sbb insns): Explicitly set pent_pair attribute on a couple
5411 that were missing it.
5412
f78ec36a
R
5413Thu May 9 18:29:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
5414
5415 * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
5416 make sure that buffer starts on odd word address.
5417 (sh_va_arg): Skip odd fp registers when reading a double precision
5418 value.
5419
ff431459
NB
54202002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
5421
5422 * tree.h (preserve_data, object_permanent_p, type_precision):
5423 Remove.
5424
c3bf3e6e
NB
54252002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
5426
5427 * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
5428 * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
5429doc:
5430 * cpp.texi: Update for removal of obsolete features.
5431
02263a8a
JH
5432Thu May 9 07:46:18 2002 Jan Hubicka <jh@suse.cz>
5433 Jeffrey A Law (law@redhat.com)
5434
5435 * i386.c (ia32_use_dfa_pipeline_interface): New function. Use
5436 the DFA interface for Pentium processors.
5437 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
5438 (attr_pent_pair, ix86_pent_find_pair): Remove.
5439 (ix86_sched_reorder_pentium): Remove.
5440 (ix86_sched_reorder): Remove reordering for Pentium.
5441 * i386.md (Pentium scheduling): Rewrite using DFA description.
5442
3e638a90
JH
5443Thu May 9 14:55:39 CEST 2002 Jan Hubicka <jh@suse.cz>
5444
5445 * cfganal.c (can_fallthru): Fix fast path.
5446 * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
5447 with edges to the next block.
5448
b7c9bf28
JH
5449Thu May 9 14:52:45 CEST 2002 Jan Hubicka <jh@suse.cz>
5450 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
5451
5452 * final.c (end_final): Use C trees to output data structures for profiling.
5453
5454 * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
5692c7bc
ZW
5455 (profile.o): New dependency profile.h
5456 (final.o): New dependency profile.h
5457 * profile.h: New file. New global structure profile_info.
5458 * final.h (count_edges_instrumented_now): Declare.
5459 (current_function_cfg_checksum): Declare.
5460 (function_list): New structure.
5461 (functions_head, functions_tail): New static variables.
5462 (end_final): Emits more data, removed some -ax stuff.
5463 (final): Stores function names and chcksums.
5464 * gcov-io.h (__write_gcov_string): New function.
5465 (__read_gcov_string): New function.
5466 * gcov.c (read_profile): New function.
5467 (create_program_flow_graph): Uses read_profile instead of reading
b7c9bf28 5468 da_file.
5692c7bc
ZW
5469 (read_files): Removed da_file checking, it's done by read_profile now.
5470 * libgcc2.c (bb_function_info): New structure.
5471 (bb): New field in structure, removed some -ax stuff.
5472 (__bb_exit_func): Changed structure of da_file.
5473 * profile.c (count_edges_instrumented_now): New global variable.
5474 (current_function_cfg_checksum): New global variable.
5475 (max_counter_in_program): New global variable.
5476 (get_exec_counts): New function.
5477 (compute_checksum): New function.
5478 (instrument_edges): Sets count_edges_instrumented_now.
5479 (compute_branch_probabilities): Uses get_exec_counts instead of
b7c9bf28 5480 reading da_file.
5692c7bc
ZW
5481 (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
5482 (init_branch_prob): Removed da_file checking, done in get_exec_counts
b7c9bf28 5483 now.
5692c7bc 5484 (end_branch_prob): Removed da_file checking, done in get_exec_counts
b7c9bf28 5485 now.
5692c7bc 5486 * gcov.texi: Updated information about gcov file format.
b7c9bf28 5487
786de7eb
KH
54882002-05-09 Kazu Hirata <kazu@cs.umass.edu>
5489
5490 * sbitmap.c: Fix formatting.
5491 * scan.c: Likewise.
5492 * scan-decls.c: Likewise.
5493 * sched-deps.c: Likewise.
5494 * sched-ebb.c: Likewise.
5495 * sched-rgn.c: Likewise.
5496 * sched-vis.c: Likewise.
5497 * sdbout.c: Likewise.
5498 * sibcall.c: Likewise.
5499 * simplify-rtx.c: Likewise.
5500 * ssa.c: Likewise.
5501 * ssa-ccp.c: Likewise.
5502 * ssa-dce.c: Likewise.
5503 * stmt.c: Likewise.
5504 * stor-layout.c: Likewise.
5505 * stringpool.c: Likewise.
5506
b7764693
DM
55072002-05-09 David S. Miller <davem@redhat.com>
5508
5509 * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
5510
4e7d5d27
DM
55112002-05-07 David S. Miller <davem@redhat.com>
5512
5513 * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
5514 * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
5515 * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
5516 library implementation clobbers the output before the inputs
5517 are fully consumed, use stack temporary for the output.
5518
f979570e
JT
55192002-05-09 Jason Thorpe <thorpej@wasabisystems.com>
5520
5521 * config/netbsd.h (CPP_SPEC): Remove.
5522 * config/i386/netbsd-elf.h (CPP_SPEC): Define.
5523 * config/i386/netbsd.h (CPP_SPEC): Define.
5524 * config/ns32k/netbsd.h (CPP_SPEC): Define.
5525 * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
5526 * config/sparc/netbsd.h (CPP_SPEC): Define.
5527 * config/vax/netbsd.h (CPP_SPEC): Define.
5528
a6a2274a
KH
55292002-05-08 Kazu Hirata <kazu@cs.umass.edu>
5530
5531 * read-rtl.c: Fix formatting.
5532 * real.c: Likewise.
5533 * recog.c: Likewise.
5534 * regclass.c: Likewise.
5535 * regmove.c: Likewise.
5536 * reg-stack.c: Likewise.
5537 * reload1.c: Likewise.
5538 * reload.c: Likewise.
5539 * resource.c: Likewise.
5540 * rtlanal.c: Likewise.
5541 * rtl.c: Likewise.
5542 * rtl-error.c: Likewise.
5543
461b48d5
JDA
55442002-05-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
5545
5546 * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
5547 * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
5548
95d075ff
BS
55492002-05-08 Bernd Schmidt <bernds@redhat.com>
5550
5551 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
5552 use __SSE2__ macro instead.
5553 * config/i386/xmmintrin.h: Likewise.
5554
2d4cc6a7
JJ
55552002-05-08 Janis Johnson <janis187@us.ibm.com>
5556
5557 * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
5558 and use it in all invocations of these macros. Clean up comments.
5559 * rtl.c (rtl_check_failed_flag): Add an argument for the name
5560 of the flag access macro whose check failed.
5561 * doc/rtl.texi (Flags): Document additional flag uses.
5562
3f8ffc7c
RS
55632002-05-08 Robert Spier <rspier@pobox.com>
5564 Neil Booth <neil@daikokuya.demon.co.uk>
5565
5566 PR preprocessor/6521
5567 * cppfiles.c (handle_missing_header): Don't do anything
5568 different for <> includes.
5569doc:
5570 * cppopts.texi: Update documentation for -MG.
5571
b9e2d17b
NB
55722002-05-08 Neil Booth <neil@daikokuya.demon.co.uk>
5573
5574 * cpplex.c (cpp_interpret_charconst): Truncate as well as
5575 sign-extend.
5576doc:
5577 * cpp.texi: Clarify multichar charconst valuation.
5578
8d8269fa
MM
55792002-05-08 Mark Mitchell <mark@codesourcery.com>
5580
5581 * doc/invoke.texi: Document -mwindiss option.
5582
29b91443
JM
55832002-05-08 Jason Merrill <jason@redhat.com>
5584
5585 * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
5586
5587 * dwarf2out.c (gen_type_die): Abort on broken recursion.
5588
5589 PR c++/6381
5590 * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
5591 REAL_CST.
5592
6c76b950
NC
55932002-05-08 Nick Clifton <nickc@cambridge.redhat.com>
5594
5595 * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
5596 little-endian multilibs to override arm/thumb multilibs.
a5c76ee6 5597 Do not build hardware floating point multilibs, nor apcs-26
6c76b950
NC
5598 multilibs for the Thumb.
5599
f90bf7ca
MM
56002002-05-08 Mark Mitchell <mark@codesourcery.com>
5601
5602 PR c/6569.
5603 * varasm.c (mark_weak): New function.
5604 (merge_weak): Use it. Do not call declare_weak.
5605 (declare_weak): Use merge_weak.
5606
1e150f2c
JH
5607Wed May 8 13:12:11 CEST 2002 Jan Hubicka <jh@suse.cz>
5608
5609 * cse.c (dead_libcall_p): Update counts.
5610 (delete_trivially_dead_insns): Update call of dead_libcall_p.
5611
969d70ca
JH
5612Wed May 8 11:08:50 CEST 2002 Jan Hubicka <jh@suse.cz>
5613
5614 * cfglayout.c (function_tail_eff_head): Rename to ...
5615 (function_footer): ... this one.
5616 (unlink_insn_chain): New functions.
5617 (label_for_bb): Only call block_label and emit debug message.
5618 (record_effective_endpoints): Actually unlink the headers and footers.
5619 (fixup_reorder_cahin): Re-insert the unlinked sequences.
5620 (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
5621 * cfglayout.h (struct reorder_block_def): New fields footer/header;
5622 remove eff_head/eff_end.
5623 * rtl.h (set_first_insn): Declare.
5624 * emit-rtl.c (set_first_insn): New function.
5625
5626 * cfglayout.c (fixup_reorder_chain): Dump duplicated
5627 (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
5628 cfg_layout_duplicate_bb): New global function.
5629 (duplicate_insn_chain): New static function.
5630 * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
5631 cfg_layout_duplicate_bb): Declare.
5632 (struct reorder_block_def): Add "original" field.
5633 * emit-rtl.c (emit_copy_of_insn_after): New function.
5634 * rtl.h (emit_copy_of_insn_after): Declare.
5635
5636 * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
5637 (fixup_reorder_chain): properly handle edges to exit block.
5638
5639Wed May 8 11:10:31 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5640 Jan Hubicka <jh@suse.cz>
5641
5642 * basic-block.h (note_prediction_to_br_prob): declare.
5643 * c-semantics.c: Inlucde predit.h
5644 (expand_stmt): predict GOTO_STMT as not taken.
5645 * cfgcleanup.c: (delete_unreachable_blocks): Make global.
5646 (cleanup_cfg): Do not free tail_recursion_list.
5647 * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
5648 (flow_delete_block): Kill predictions past end of basic block.
5649 * output.h (delete_unreachable_blocks): Declare.
5650 * predict.c (predicted_by_p, process_note_predictions,
5651 process_note_prediction, last_block_p): New function.
5652 (estimate_probability): Bypass loop on PRED_CONTINUE;
5653 do not handle noreturn heuristics; kill PRED_RETURN; add
5654 PRED_EARLY_RETURN.
5655 * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
5656 PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
5657 * predict.h (IS_TAKEN): New constant.
5658 * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
5659 * rtl.c (NOTE_INSN_PREDICTION): New.
5660 * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
5661 New macro.
5662 (insn_note): add NOTE_INSN_PREDICTION.
5663 * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
5664 CFG; free tail_recursion_label_list.
5665 * stmt.c: Include predict.h;
5666 (return_prediction): New.
5667 (expand_value_return): Use it.
5668 * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
5669
41f8d041
RS
56702002-05-08 Richard Sandiford <rsandifo@redhat.com>
5671
5672 * config/mips/mips.md: Name the unspecs with define_constant.
5673 (*HILO_delay): Rename to 'hilo_delay' (no star).
5674 (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
5675 (reload_outdi, reload_outsi): Likewise.
5676
9cabb1d8
KH
56772002-05-07 Kazu Hirata <kazu@cs.umass.edu>
5678
5679 * toplev.c: Fix formatting.
5680
4c76f856
JJ
56812002-05-07 Janis Johnson <janis187@us.ibm.com>
5682
5683 * config.in (ENABLE_RTL_FLAG_CHECKING): New.
5684 * configure.in (ac_rtlflag_checking): New.
5685 * doc/install.texi (--enable-checking): Document RTL flag checking.
5686
44a147ad
NB
56872002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
5688
5689 * c-common.c (c_common_init): Set options->unsigned_wchar.
5690 * cppinit.c (cpp_create_reader): Default unsigned_wchar,
5691 group target dependencies.
5692 (init_builtins, cpp_handle_option): Update.
5693 * cpplex.c (cpp_interpret_charconst): Update.
5694 * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
5695 signed_char to unsigned_char, group target dependencies.
5696 * defaults.h (WCHAR_UNSIGNED): Remove.
5697 * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
5698config:
5699 * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
5700 i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
5701 i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
5702 i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
5703 sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
5704doc:
5705 * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
5706
cace4f93
MM
57072002-05-07 Mark Mitchell <mark@codesourcery.com>
5708
5709 * fixinc/inclhack.def (windiss_math1): New fix.
5710 (windiss_math2): Likewise.
5711 (windiss_valist): Likewise.
5712 * fixinc/fixincl.x: Regenerated.
5713
e2ff6cee
AJ
57142002-05-07 Andreas Jaeger <aj@suse.de>
5715
5716 * genautomata.c (output_internal_min_issue_delay_func): Add
5717 ATTRIBUTE_UNUSED to avoid warning with empty dfa.
5718 (output_internal_trans_func): Likewise.
5719
bdad4be5
JL
5720Tue May 7 10:06:22 2002 Jeffrey A Law (law@redhat.com)
5721
5722 * pa.c (hppa_profile_hook): Use force_reg to get the address
5723 of the profile hook into an appropriate pseudo register.
5724
a1ffecd9
MM
57252002-05-07 Mark Mitchell <mark@codesourcery.com>
5726
5727 * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
5728 (LINK_START_SPEC): Handle it.
5729 (LINK_OS_SPEC): Likewise.
5730 (CPP_SPEC): Likewise.
5731 (STARTFILE_SPEC): Likewise.
5732 (LIB_SPEC): Likewise.
5733 (ENDFILE_SPEC): Likewise. Do not assume crtsavres.o is used on
5734 all platforms.
5735 (CRTSAVRES_DEFAULT_SPEC): New macro.
5736 (LIB_WINDISS_SPEC): New macro.
5737 (CPP_OS_WINDISS_SPEC): Likewise.
5738 (STARTFILE_WINDISS_SPEC): Likewise.
5739 (ENDFILE_WINDISS_SPEC): Likewise.
5740 (LINK_START_WINDISS_SPEC): Likewise.
5741 (LINK_OS_WINDISS_SPEC): Likewise.
5742 * config/rs6000/windiss.h: New file.
e2ff6cee 5743
df966bff
AH
57442002-05-07 Aldy Hernandez <aldyh@redhat.com>
5745
a5c76ee6 5746 * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
df966bff 5747
db84f1bd
DM
57482002-05-06 David S. Miller <davem@redhat.com>
5749
5750 * config/sparc/sparc.md (shift insns): Do not mask off
5751 second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
5752 take care of it.
5753
818c0c94
RH
57542002-05-06 Richard Henderson <rth@redhat.com>
5755
5756 PR c++/6212
5757 * expr.c (highest_pow2_factor_for_type): New.
5758 (expand_assignment): Use it.
5759
61e0b50f
AH
57602002-05-06 Aldy Hernandez <aldyh@redhat.com>
5761
818c0c94
RH
5762 * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
5763 unspec_volatile.
5764 ("altivec_mfvscr"): Same.
61e0b50f 5765
5a63e069
JJ
57662002-05-06 Janis Johnson <janis187@us.ibm.com>
5767
5768 * rtl.h (struct rtx_def): Update comments.
5769 (RTL_FLAG_CHECK[12345678]): New. (rtl_check_failed_flag): Declare.
5770 (RTL_FLAG): New. (CLEAR_RTX_FLAGS): New. (flag access macros): Use
5771 RTL_FLAG_CHECK macros with list of expected RTL codes.
5772 * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
5773 (rtl_check_failed_flag): New.
5774 * reload1.c (reload): Use REG macro before changing rtx to MEM.
5775 (reload_cse_noop_set_p): Check rtx code before using access macro.
5776 * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
5777 before using access macro.
5778
4afe3952
JJ
57792002-05-06 Janis Johnson <janis187@us.ibm.com>
5780
5781 * doc/rtl.texi (Flags): Update to reflect current usage.
5782
1f77b5da
RS
57832002-05-06 Roger Sayle <roger@eyesopen.com>
5784
5785 PR opt/3995
5786 * fold-const.c (sign_bit_p): New function.
5787 (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
818c0c94 5788 (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
1f77b5da
RS
5789 Reapply fold when converting (A & C) == C into (A & C) != 0.
5790 (fold_binary_op_with_conditional_arg): Fix typo in comment.
5791
a5a49440
NB
57922002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
5793
5794 * c-common.c (warn_multichar): New.
5795 (c_common_init): Set CPP's warn_multichar.
5796 * c-common.h (warn_multichar): New.
5797 * c-decl.c (warn_multichar): Remove.
5798 * c-lex.c (lex_charconst): Update.
5799 * c-tree.h (warn_multichar): Remove.
5800 * cppexp.c (eval_token): Sign-extend charconst value.
5801 * cppinit.c (cpp_create_reader): Set warn_multichar.
5802 * cpplex.c (cpp_interpret_charconst): Don't sign-extend
5803 each character. Update prototype. Sign-extend the result.
5804 * cpplib.h: Fix conditions.
5805 (struct cpp_options): Add new warning flag.
5806 (cpp_interpret_charconst): Update prototype.
5807doc:
5808 * cpp.texi: Update documentation.
5809
83e0be55
VM
58102002-05-06 Vladimir Makarov <vmakarov@redhat.com>
5811
5812 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
5813 Fix typo in usage of allof instead of unit.
5814
688ec718
RH
58152002-05-06 Richard Henderson <rth@redhat.com>
5816
5817 * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
5818 and any jump or call for IN.
5819
f6536266
BS
58202002-05-06 Bernd Schmidt <bernds@redhat.com>
5821
e2ff6cee 5822 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
f6536266
BS
5823 -msse2.
5824 * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
e2ff6cee 5825
0316d49b
RS
58262002-05-06 Roger Sayle <roger@eyesopen.com>
5827
5828 * fold-const.c (lshift-double): Cast the high word to an unsigned
5829 HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
5830 (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
5831 avoid compiler warning. (fold): Remove redundant code from
5832 BIT_AND_EXPR as integer operands are canonicalized to be arg1.
5833
5d50fab3
JL
58342002-05-06 Jeff Law <law@redhat.com>
5835
5836 * pa-protos.h (hppa_fpstore_bypass_p): Declare.
5837 * pa.c (pa_adjust_cost): Remove all true dependency cost
5838 adjustments. Also remove support for non-DFA scheduling.
5839 * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
5840 to adjust true dependency costs. Update various comments.
5841 (7100lc, 7200, 7300 scheduling): Simplify by combining the
5842 FP ALU & MPY units into a single unit.
5843
a17a104c
CM
58442002-05-06 Catherine Moore <clm@redhat.com>
5845
5846 * config/v850/v850.c (compute_register_save_size): Make sure
818c0c94 5847 to count all of the registers that will be saved.
a17a104c 5848
7799175f
JH
5849Mon May 6 18:03:11 CEST 2002 Jan Hubicka <jh@suse.cz>
5850
5851 * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
5852
0ac941a0
DM
58532002-05-06 David S. Miller <davem@redhat.com>
5854
5855 * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
5856 allow result to overlap input operands in memory.
5857
95ff5d3f
NB
58582002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
5859
5860doc:
5861 * cpp.texi: Update multichar charconst docs.
5862
639e8b0c
NB
58632002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
5864
5865 * cpplex.c (cpp_interpret_charconst): Sign-extend each
5866 character. Don't ignore excess characters. Treat
5867 multicharacter character constants as signed.
5868 (cpp_parse_escape): Clarify diagnostic.
5869
84ea5bc1
JJ
58702002-05-05 Jakub Jelinek <jakub@redhat.com>
5871
5872 * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
5873 use add instead of shift.
5874 (ashldi3_sp64): Likewise.
5875 (ashlsi3_const1, ashldi3_const1): Remove.
5876 * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
5877 * config/sparc/sparc.c (const1_operand): New.
5878
40cd22f2
JT
58792002-05-05 Jason Thorpe <thorpej@wasabisystems.com>
5880
5881 * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
5882
cac01076
JJ
58832002-05-05 Jakub Jelinek <jakub@redhat.com>
5884
5885 PR target/6561
5886 * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
5887
98791e3a
RH
58882002-05-05 Richard Henderson <rth@redhat.com>
5889
5890 * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
5891 memory latency adjustments.
5892 (alpha_variable_issue): Remove.
5893 (alpha_use_dfa_pipeline_interface): New.
5894 (alpha_multipass_dfa_lookahead): New.
5895 * config/alpha/alpha.md: Remove define_function_unit scheduling;
5896 include new dfa scheduling.
5897 (attr type): Add none.
5898 (blockage): Use it.
5899 * config/alpha/ev4.md: New.
5900 * config/alpha/ev5.md: New.
5901 * config/alpha/ev6.md: New.
5902
309527ce
DM
59032002-05-05 David S. Miller <davem@redhat.com>
5904
5905 * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
5906
68252e27
KH
59072002-05-05 Kazu Hirata <kazu@cs.umass.edu>
5908
5909 * cse.c: Fix formatting.
5910 * emit-rtl.c: Likewise.
5911
30cc9d00
VM
59122002-05-05 Vladimir Makarov <vmakarov@redhat.com>
5913
5914 * genautomata.c (initiate_states): Add additional guard to
5915 initialize `units_array'.
5916
deb09eff
VM
59172002-05-05 Vladimir Makarov <vmakarov@redhat.com>
5918
5919 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
5920 process_unit_to_form_the_same_automaton_unit_lists,
5921 form_the_same_automaton_unit_lists
5922 check_unit_distributions_to_automata): New prototypes and
5923 functions.
5924 (check_automata): Rename it into `check_automata_insn_issues'.
5925 (unit_decl): New fields `the_same_automaton_unit' and
5926 `the_same_automaton_message_reported_p'.
5927 (unit_decl_t): New typedef.
5928 (the_same_automaton_lists): New gloval variable.
5929 (unit_regexp, unit_set_el, units_array, units_cmp,
5930 output_get_cpu_unit_code_func): Use the typedef.
5931 (evaluate_max_reserv_cycles): Increment
5932 `description->max_insn_reserv_cycles'.
5933 (initiate_states): Don't increment `max_cycles_num'.
5934 (transform_insn_regexps): Move code around transformation of
5935 regexps from `generate'.
5936 (generate): Remove call of `transform_insn_regexps'.
5937 (expand_automata): Call `transform_insn_regexps' and
5938 `check_unit_distributions_to_automata'. Check errors before
5939 `generate'.
5940
5941 * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
5942 automaton `ultrasparc3_1'.
e2ff6cee 5943
2443d4e1
NB
59442002-05-05 Neil Booth <neil@daikokuya.demon.co.uk>
5945
5946 * c-common.c (c_common_init): Set up CPP arithmetic.
5947 * cppinit.c (cpp_create_reader): Default CPP arithmetic to
5948 something reasonable for the host.
5949 (sanity_checks): Add checks.
5950 (cpp_read_main_file): Call sanity_checks() from here...
5951 (cpp_post_options): ... not here.
5952 * cpplex.c (cpp_interpret_charconst): Get max_chars right.
5953 * cpplib.h (struct cpp_options): New member int_precision.
5954
791a949f
FS
59552002-05-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5956
5957 * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
5958
091fb516
DM
59592002-05-04 David S. Miller <davem@redhat.com>
5960
f60ebeb7
DM
5961 * config/sparc/linux.h, config/sparc/linux64.h
5962 (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
5963
214c6394
DM
5964 * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
5965 more RTX codes.
5966 * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
5967
091fb516
DM
5968 * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
5969 of SETs.
5970
f2fdc802
TJ
59712002-05-05 Tim Josling <tej@melbpc.org.au>
5972
e2ff6cee 5973 * treelang; New directory for new sample language treelang.
f2fdc802 5974
3d90d290
NB
59752002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
5976
5977 * Makefile.in (c-lex.o): Update.
5978 * c-lex.c: Include target.h.
5979 (cb_register_builtins): New.
5980 (init_c_lex): Set builtins callback.
5981 * c-lex.h (cpp_define, cpp_assert): New prototypes.
5982 * cppinit.c (init_builtins): Use callback, including for
5983 GXX_WEAK.
5984 * cpplib.h (struct cpp_callbacks): New member.
5985 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
5986 (TARGET_INITIALIZER): Update.
5987 * target.h (struct gcc_target): New hook.
5988 * tree.c (default_register_cpp_builtins): New.
5989 * tree.h (default_register_cpp_builtins): New.
5990doc:
5991 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
5992
625458d0
NB
59932002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
5994
5995 * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
5996 (cpp_post_options): Move sanity checks to...
5997 (sanity_checks): New.
5998 * cpplex.c (maybe_read_ucs): Fix prototype.
5999 (parse_string, cpp_parse_escape): Cast for %c format specifier.
6000 * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
6001 if necessary.
6002
916b60b7
BS
60032002-05-04 Bernd Schmidt <bernds@redhat.com>
6004
6005 * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
6006 builtins. Use V2DI patterns instead of TI for logical operations.
6007 (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
6008 Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
6009 (ix86_expand_builtins): Change the pattern used for movntdq.
6010 * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
6011 sse2_nandv2di3): New patterns.
6012 (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
6013 on operands.
6014 (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
6015 (cvtdq2pd): Correct mode on operand 1.
6016 (sse2_umulsidi3): Describe without unspec.
6017 (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
6018 machine modes.
6019 (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
6020 (ashlv2di3): Likewise, from sse2_ashlv2di3.
6021 (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
6022 ashlv4si3, ashlv2di3): Use SImode for shift count.
6023 (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
6024 lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
6025 New patterns.
6026 * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
6027 New typedefs.
6028 (__m128i, __m128d): New macros.
6029 (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
6030 _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
6031 _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
6032 _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
6033 _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
e2ff6cee 6034 _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
916b60b7
BS
6035 _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
6036 _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
e2ff6cee 6037 _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
916b60b7
BS
6038 _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
6039 _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
6040 _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
6041 _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
6042 _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
6043 _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
6044 _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
6045 _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
6046 _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
6047 _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
6048 _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
6049 _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
6050 _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
6051 _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
6052 _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
6053 _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
6054 _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
6055 _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
6056 _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
6057 _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
6058 _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
6059 _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
6060 _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
6061 _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
6062 _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
6063 _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
6064 _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
6065 _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
6066 functions.
e2ff6cee 6067 (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
916b60b7
BS
6068 _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
6069
c26fbbca
KH
60702002-05-04 Kazu Hirata <kazu@cs.umass.edu>
6071
6072 * dwarf2out.c: Fix formatting.
6073 * varasm.c: Likewise.
6074
0387639b
DE
60752002-05-04 David Edelsohn <edelsohn@gnu.org>
6076
6077 PR c/6543
6078 * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
6079 clobber and use result as temporary value.
6080
8a28dbcc
JH
6081Sat May 4 13:20:54 CEST 2002 Jan Hubicka <jh@suse.cz>
6082
6083 * expr.c (force_operand): Use expand_simple_* to handle more
6084 cases.
6085
4268e8bb
NB
60862002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
6087
6088 * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
6089 and sign-extension.
6090 (lex_charconst): Update for change in prototype of
6091 cpp_interpret_charconst. Extend from cppchar_t to HOST_WIDE_INT
6092 appropriately.
6093 * cpphash.h (BITS_PER_CPPCHAR_T): New.
6094 * cppinit.c (cpp_create_reader): Initialize them for no
6095 change in semantics.
6096 (cpp_post_options): Add sanity checks.
6097 * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
6098 and truncation issues. Calculate in type cppchar_t.
6099 (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
6100 (cpp_interpret_charconst): Calculate in type cppchar_t. Handle
6101 run-time dependent precision correctly. Return whether the
6102 result is signed or not.
6103 * cpplib.c (dequote_string): Use cppchar_t; update.
6104 * cpplib.h (cppchar_signed_t): New.
6105 struct cpp_options): New precision members.
6106 (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
ae1a07e0 6107 * cppexp.c (eval_token): Update.
4268e8bb 6108
af54350e
DM
61092002-05-03 David S. Miller <davem@redhat.com>
6110
2ce04b6b
DM
6111 * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
6112 * config/sparc/sparc.c (sparc_rtx_costs): New function
6113 implementing RTX_COSTS and CONST_COSTS.
6114 * config/sparc/sparc.h (CONST_COSTS): Delete.
6115 (RTX_COSTS_CASES): Define.
6116 (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
6117 the work.
6118
a1d9bd0c
DM
6119 * config/sparc/sparc.md (DFA schedulers): Split out...
6120 * config/sparc/cypress.md, config/sparc/hypersparc.md,
6121 config/sparc/sparclet.md, config/sparc/supersparc.md,
6122 config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
6123
e87bb82e
DM
6124 * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
6125 checks on it, always defined for Sparc.
6126
af54350e
DM
6127 * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
6128 Tweak, and add more detailed comments.
6129
935bfb44
ZW
61302002-05-03 Zack Weinberg <zack@codesourcery.com>
6131
6132 * Re-apply patch accidentally reverted with
6133 DFA scheduler merge: remove all rules and variables to slurp
6134 source files out of libiberty and rebuild them with HOST_CC.
6135 ($(HOST_PREFIX_1)varray.o): New rule.
6136 (genattrtab rule): Word wrap.
6137
fa7a0712
JT
61382002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
6139
6140 * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
6141 (CPP_SUBTARGET_SPEC): Define.
6142 (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
6143 cpp_subtarget specs.
6144 (CPP_SPEC): Redefine to include %(cpp_subtarget).
6145
14c93978
DM
61462002-05-03 David S. Miller <davem@redhat.com>
6147
6148 * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
6149 * target.h (struct gcc_target): Delete cycle_display member.
6150
14d118d6
DM
6151 * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
6152 (rtx_needs_barrier): Delete reference to cycle_display unspec.
6153 (ia64_sched_reorder2): Mention need for cycle display handling
6154 once such notes exist.
935bfb44 6155
b3ae1ccd
RH
61562002-05-03 Richard Henderson <rth@redhat.com>
6157
6158 * real.c (etoasc): Strip most trailing zeros for clarity.
6159 * sched-vis.c: Include real.h.
6160 (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
6161 * Makefile.in (sched-vis.o): Add real.h.
6162
8f39865a
DM
61632002-05-03 David S. Miller <davem@redhat.com>
6164
6165 * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
6166 no longer needed.
6167
b44140e7
AH
61682002-05-03 Aldy Hernandez <aldyh@redhat.com>
6169
935bfb44
ZW
6170 * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
6171 when we get an out of range literal.
6172 (altivec_expand_ternop_builtin): Same.
6173 (altivec_expand_unop_builtin): Same.
6174 (altivec_expand_builtin): Same, for dss.
6175 (altivec_expand_builtin): Use trees instead of rtl when
6176 determining literal argument validity.
b44140e7 6177
aaaed752
DM
61782002-05-03 David S. Miller <davem@redhat.com>
6179
6180 Delete cycle display scheduling hook.
6181 * config/ia64/ia64.c (ia64_cycle_display,
6182 TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
6183 (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
6184 and use emit_insn_before instead of ia64_emit_insn_before.
6185 * config/ia64/ia64.md (unspec usage): Delete cycle display.
6186 (cycle_display): Delete insn pattern.
6187 * config/sparc/sparc.md (unspec usage): Delete cycle display.
6188 (cycle_display): Delete insn pattern.
6189 * config/sparc/sparc.c (sparc_cycle_display,
6190 TARGET_SCHED_CYCLE_DISPLAY): Delete.
6191 * doc/md.texi (cycle_display): Don't mention.
6192 * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
935bfb44 6193
b37c2614
RH
61942002-05-03 Richard Henderson <rth@redhat.com>
6195
6196 * recog.c (store_data_bypass_p, if_test_bypass_p): New.
6197 * recog.h: Declare them.
6198
6199 * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
6200 * config/sparc/sparc.md: Use store_data_bypass_p instead.
6201 * config/sparc/sparc-protos.h: Update.
935bfb44 6202
e1c1132e
JT
62032002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
6204
6205 * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
6206 -D__arch64__. Add -D_LP64.
6207 (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
6208 from sparc.h.
6209 (CPP_ARCH64_SPEC): Likewise.
6210 (NO_BUILTIN_PTRDIFF_TYPE): Undef.
6211 (NO_BUILTIN_SIZE_TYPE): Undef.
6212
0b2fb0d7
VM
62132002-05-03 Vladimir Makarov <vmakarov@redhat.com>
6214
6215 * genautomata.c (min_issue_delay_pass_states): Change return type
6216 in the prototype.
6217 (min_issue_delay_pass_states): Change the algorithm.
6218 (min_issue_delay): Set up min_insn_issue_delay for the state.
6219 (output_min_issue_delay_table): Interchange the nested loops and
6220 and initiate min_insn_issue_delay for states.
935bfb44 6221
3d4ce12a
JH
6222Fri May 3 22:59:15 CEST 2002 Jan Hubicka <jh@suse.cz>
6223
6224 * cfgcleanup.c (try_optimize_cfg): Call merge_block only when
6225 jump is simplejump.
6226
6227Fri May 3 22:53:37 CEST 2002 Jan Hubicka <jh@suse.cz>
37ad04a5
JH
6228
6229 * i386.c (expand_movstr, expand_clrstr): Fix inline-all-stringops
6230 sequence.
6231
b5482208
RH
62322002-05-03 Richard Henderson <rth@redhat.com>
6233
6234 PR opt/6534
6235 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
6236 noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
6237 noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
6238 code before JUMP, not EARLIEST.
6239
5a3085c5
JM
62402002-05-03 Joseph S. Myers <jsm28@cam.ac.uk>
6241
6242 * c-format.c (check_format_info_main): Don't check for presence of
6243 parameter for * width until after operand number has been read,
6244 and only check for it if format parameters are available.
6245 Fixes PR c/6547.
6246
40039424
JT
62472002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
6248
6249 * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
6250 (LINK_SPEC): Undef before defining.
6251
8157303b
JJ
62522002-05-03 Jakub Jelinek <jakub@redhat.com>
6253
6254 PR preprocessor/6489
6255 * tradcpp.c (fixup_newlines): New.
6256 (main, finclude): Use it.
6257
66319f5c
RS
62582002-05-03 Richard Sandiford <rsandifo@redhat.com>
6259
6260 * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
6261 * config/mips/mips.c (mips_unique_section): Strip encoding from
6262 decl name.
6263
ce8076ad
JJ
62642002-05-03 Jakub Jelinek <jakub@redhat.com>
6265
6266 * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
6267 mode.
6268
975c6e4e
RO
62692002-05-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6270
6271 * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
6272 (Specific): Removed buildstats references.
6273 (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
6274 (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
6275 Accomodate Solaris versions beyond 8.
6276 (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
6277 (Specific, *-*-solaris2.8): Removed, obsolete.
6278
d70e94ec
JJ
62792002-05-03 Jakub Jelinek <jakub@redhat.com>
6280
6281 PR target/6542
6282 * config/sparc/sparc.h (leaf_reg_remap): Remove const.
6283 (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
6284 fill leaf_reg_remap with identity.
6285 * config/sparc/sparc.c (leaf_reg_remap): Remove const.
6286
6b148bd9
KH
62872002-05-03 Kazu Hirata <kazu@cs.umass.edu>
6288
6289 * config/h8300/crti.asm: Remove trailing spaces.
6290 * config/h8300/h8300.c: Likewise.
6291 * config/h8300/lib1funcs.asm: Likewise.
6292
609688f3
JM
62932002-05-02 Jason Merrill <jason@redhat.com>
6294
6295 * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
6296 * c-decl.c (c_init_decl_processing): Use it.
6297 * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
6298 * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
6299 * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
6300
3b03c671
KH
63012002-05-03 Kazu Hirata <kazu@cs.umass.edu>
6302
6303 * regrename.c: Fix formatting.
6304 * tree.c: Likewise.
6305
3b4961bd
JH
6306Fri May 3 13:34:43 CEST 2002 Jan Hubicka <jh@suse.cz>
6307
6308 * i386.md (attribute memory): Handle compares properly.
6309
19cba4a0
JH
6310Fri May 3 10:51:38 CEST 2002 Jan Hubicka <jh@suse.cz>
6311
3b4961bd 6312 * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
19cba4a0
JH
6313 to none.
6314
797a6ac1
KH
63152002-05-02 Kazu Hirata <kazu@cs.umass.edu>
6316
6317 * function.c: Fix formatting.
6318
6d0de005
JH
63192002-05-02 Jan Hubicka <jh@suse.cz>
6320
6321 * haifa-sched.c (schedule_insn): Print table of instructions and
6322 reservations.
6323 (sched_block): Do not print ready list at verbosity level 1.
6324 * sched-vis.c (print_insn): Make global.
6325 * sched-ebb.c (ebb_print_insn): Rename from...
6326 (print_insn): ... this one.
6327 * sched-int.h (print_insn): Declare
6328
0bfb9a69
RH
63292002-05-02 Richard Henderson <rth@redhat.com>
6330
6331 * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
6332 emitted by cycle_display.
6333
6b976d99
LR
63342002-05-02 Loren J. Rittle <ljrittle@acm.org>
6335
6336 * doc/install.texi (*-*-freebsd*): Update to latest status.
6337
0a295052
JJ
63382002-05-02 Jakub Jelinek <jakub@redhat.com>
6339
6340 PR target/6540
6341 * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
6342 * config/float-sparc.h: Assume 128-bit long double if
6343 __LONG_DOUBLE_128__ is defined.
6344
842d5d6c
VM
63452002-05-02 Vladimir Makarov <vmakarov@redhat.com>
6346
6347 * genattrtab.c (write_function_unit_info): Add a dummy element
6348 when num_units == 0.
6349
3d7a6309
HB
63502002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
6351
6352 * predict.c: (propagate_freq, estimate_bb_frequencies): Use
6353 TYPE_MODE (double_type_node) instead of DFmode.
6354
1b6763cf
JH
6355Thu May 2 19:50:04 CEST 2002 Jan Hubicka <jh@suse.cz>
6356
6357 * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
6358 jumps post reload.
6359 * toplev.c (rest_of_compilation): Revert Richard's patch.
6360
b303008e
JDA
63612001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
6362
6363 * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
6364
6ed7412a
CM
63652002-05-02 Catherine Moore <clm@redhat.com>
6366
6367 * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
6368
e0a2f705
KH
63692002-05-02 Kazu Hirata <kazu@hxi.com>
6370
b32d6163 6371 * combine.c: Fix comment typos.
e0a2f705
KH
6372 * expr.c: Likewise.
6373 * genautomata.c: Likewise.
6374 * stmt.c: Likewise.
6375 * tree.h: Likewise.
6376
38e23049
JM
63772002-05-02 Joseph S. Myers <jsm28@cam.ac.uk>
6378
6379 * doc/install.texi: State GNAT version requirements.
6380
40f4a97d
NC
63812002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
6382
6383 * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
6384 of the frame pointer or arg pointer register which strict register
6385 checking is not enabled.
6386
0d6d6892
AH
63872002-05-02 Aldy Hernandez <aldyh@redhat.com>
6388
b5482208 6389 * gcc.dg/altivec-8.c: New.
0d6d6892 6390
b5482208
RH
6391 * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
6392 PRE_INC and PRE_DEC for altivec modes.
0d6d6892 6393
abaa8559
BK
63942002-05-01 Bruce Korb <bkorb@gnu.org>
6395
6396 * fixinc/check.tpl(set-writable): make sure the function exists first
6397 * fixinc/inclhack.def(alpha_assert): fix test_text
6398 * fixinc/tests/base/assert.h: add in missing result
6399
ecab2143
JL
64002002-05-01 Jeff Law <law@redhat.com>
6401
6402 * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
6403 'T' constraint.
6404
ea619b46
JB
64052002-05-01 Joel Brobecker <brobecker@gnat.com>
6406
6407 * dbxout.c (dbxout_type): Emit size information for range types,
6408 as well, but only when using GDB extensions.
6409
c72931a6
RH
64102002-05-01 Richard Henderson <rth@redhat.com>
6411
6412 * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
6413 target-independent gnu binutils date test.
6414
2150ad33
RH
64152002-05-01 Richard Henderson <rth@redhat.com>
6416
6417 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
6418 info before expunging the block.
6419
1651cc96
JJ
64202002-05-01 Jakub Jelinek <jakub@redhat.com>
6421
6422 * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
6423 (cpp_post_options): ...but here. Disable -dD, -dN and -dI when
6424 -M -or -MM is in effect.
6425
8998d5bf
ZW
64262002-05-01 Zack Weinberg <zack@codesourcery.com>
6427
6428 * config.gcc: Correct test of --enable-obsolete. Obsolete all
6429 A29k configurations.
6430 * doc/install.texi: Update to match.
6431
a81eed10
FS
64322002-05-01 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6433
6434 PR bootstrap/6514
6435 * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
6436 for duplicates. Always loop over whole list.
6437
8d53318f
RK
6438Wed May 1 10:32:37 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6439
6440 * reload.c (find_reloads, case 'p'): Set BADOP to 0.
6441
4109b118
JS
64422002-05-01 Joel Sherrill <joel@OARcorp.com>
6443
6444 * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
6445 support routines.
6446
c4a9c570
JS
64472002-05-01 Joel Sherrill <joel@OARcorp.com>
6448
6449 * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
6450
ea112fc4
DE
64512002-05-01 David Edelsohn <edelsohn@gnu.org>
6452
6453 * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
6454 (nabs_nopower): Same.
6455 (floatdisf2): New pattern.
6456 (absdi2): Convert to define_insn_and_split.
6457 (nabsdi2): Same.
6458 (trunctfsf2): Same.
6459 (floatditf2): Same.
6460 (floatsitf2): Same.
6461 (fix_trunctfdi2): Same.
6462 (fix_trunctfsi2): Same.
6463
dda78254
JM
64642002-05-01 Joseph S. Myers <jsm28@cam.ac.uk>
6465
6466 * doc/install.texi: Update Texinfo version requirement
6467 documentation.
6468
26aeede4
JJ
64692002-05-01 Jakub Jelinek <jakub@redhat.com>
6470
6471 PR target/6512, PR target/5628
6472 * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
6473 when memory is not aligned.
6474 (movdf_insn_v9only_vis): Likewise.
6475 * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
6476 temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
6477 (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
6478
9b7bc465
AH
64792002-05-01 Aldy Hernandez <aldyh@redhat.com>
6480
8998d5bf 6481 * gcc.dg/altivec-7.c: New.
9b7bc465 6482
8998d5bf 6483 * config/rs6000/altivec.h: Cleanup.
9b7bc465 6484
08b57fb3
AH
64852002-04-30 Aldy Hernandez <aldyh@redhat.com>
6486
8998d5bf
ZW
6487 * doc/invoke.texi (Option Summary): Add -mvrsave=.
6488 (RS/6000 and PowerPC Options): Document -mvrsave=.
08b57fb3 6489
8998d5bf
ZW
6490 * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
6491 (rs6000_altivec_vrsave_string): Same.
6492 (rs6000_override_options): Call rs6000_parse_vrsave_option.
6493 (rs6000_parse_vrsave_option): New.
6494 (rs6000_stack_info): Only generate vrsave instructions when
6495 TARGET_ALTIVEC_VRSAVE.
08b57fb3 6496
8998d5bf
ZW
6497 * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
6498 (rs6000_altivec_vrsave_string): Define extern.
6499 (rs6000_altivec_vrsave): Same.
6500 (TARGET_ALTIVEC_VRSAVE): New.
08b57fb3 6501
8e8c38cd
RH
65022002-04-30 Richard Henderson <rth@redhat.com>
6503
6504 PR opt/6516
6505 * toplev.c (rest_of_compilation): Don't run cross-jump before
6506 bb-reorder.
6507
4be9e9cb
TR
65082002-04-30 Tom Rix <trix@redhat.com>
6509
8998d5bf 6510 * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
4be9e9cb
TR
6511 check which_alternative.
6512
1eeeb6a4
KH
65132002-04-30 Kazu Hirata <kazu@hxi.com>
6514
6515 * cpplex.c: Fix comment formatting.
6516 * function.c: Likewise.
6517 * integrate.c: Likewise.
6518 * regrename.c: Likewise.
6519 * sibcall.c: Likewise.
6520 * simplify-rtx.c: Likewise.
6521 * tree-inline.c: Likewise.
6522
ed9d6ff9
JDA
65232002-04-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
6524
6525 * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
6526 hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
6527 hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
6528 hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
6529 * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
6530 * pa/x-ada: New file. Define ADA_CFLAGS.
6531
1f2641b6
HPN
65322002-04-30 Hans-Peter Nilsson <hp@bitrange.com>
6533
6534 * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
6535 from MMIX_LAST_REGISTER_FILE_REGNUM.
6536 (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
6537 (struct machine_function): New member highest_saved_stack_register
6538 previously static variable in mmix.c.
6539 (MACHINE_DEPENDENT_REORG): Define.
6540 * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
6541 (MMIX_OUTPUT_REGNO): New.
6542 (mmix_target_asm_function_prologue): Move calculation of last used
6543 saved-stack-register into...
6544 (mmix_machine_dependent_reorg): New function. Update to also handle
6545 !TARGET_ABI_GNU.
6546 (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
6547 register names, simplify somewhat by new variable regno.
6548 <case 'p'>: Remove fixed FIXME. Always emit highest used saved
6549 register.
6550 (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
6551 emitting register names.
6552 (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
6553 (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
6554 Remove fixed FIXME.
6555 * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
6556 Declare.
6557
6558 * config/mmix/mmix.md ("divmoddi4"): Update head comment.
6559
73985940
RH
65602002-04-30 Richard Henderson <rth@redhat.com>
6561
6562 * config/sparc/sparc.c (emit_soft_tfmode_libcall,
6563 emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
6564 emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
6565 emit_tfmode_cvt): New.
6566 * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
6567 trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
6568 fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
6569 addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
6570 * config/sparc/sparc-protos.h: Update.
6571
2b46bc67
JJ
65722002-04-30 Janis Johnson <janis187@us.ibm.com>
6573
6574 * install.texi (Final install): Add to the list of info to include
6575 in a report of a successful bootstrap, and add link to 3.1 list.
6576
3d34cd91
JH
6577Tue Apr 30 19:15:36 CEST 2002 Jan Hubicka <jh@suse.cz>
6578
6579 * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
6580 (mode): Add vector modes
6581 (i387): Kill attribute.
6582 (unit): New attribute.
6583 (length_immediate): Grok new types.
6584 (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
6585 (modrm): Use "unit".
6586 (memory): Handle MMX/SSE properly.
6587 (scheduling descriptions): Kill uses of fop1.
6588 (sse, mmx, fp patterns): Set type and mode properly.
6589
243e5500 6590Tue Apr 30 09:31:59 2002 Jeffrey A Law (law@redhat.com)
3193c415 6591
30482eb0
JL
6592 * pa.c (override_options): Default to PA8000 scheduling.
6593 * doc/invoke.texi (HP-PA options): Mention newly added 7300
6594 scheduling parameter.
6595
3193c415
JL
6596 * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
6597 handling of double precision multiplies.
6598
6599 * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
6600 fpdiv and fpsqrt instructions.
6601 (7200 & 7300 scheduling): Fix typo in handling of
6602 store-load and store-store penalties.
6603
c0a34cb7
GP
66042002-04-30 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
6605
6606 * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
6607 mips. Add two missing commas.
6608
8bce0628
PC
66092002-04-30 Paolo Carlini <pcarlini@unitus.it>
6610
6611 * doc/contrib.texi (Contributors): Update Paolo Carlini's
6612 and Benjamin Kosnik's entries.
6613
84643cbf
DM
66142002-04-29 David S. Miller <davem@redhat.com>
6615
6616 * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
6617 SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
6618 * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
6619 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
6620
da6886f6
FS
66212002-04-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6622
6623 * combine.c (find_split_point): Use gen_int_mode.
6624
fae15c93
VM
66252002-04-29 Vladimir Makarov <vmakarov@redhat.com>
6626
6627 Merging code from dfa-branch:
8998d5bf 6628
fae15c93
VM
6629 2002-04-24 Vladimir Makarov <vmakarov@redhat.com>
6630
6631 * genautomata.c (output_reserv_sets): Fix typo.
6632
6633 2002-04-23 Vladimir Makarov <vmakarov@redhat.com>
6634
6635 * genautomata.c (output_reserv_sets): Remove
6636 next_cycle_output_flag.
6637
6638 Thu Apr 18 08:57:06 2002 Jeffrey A Law (law@redhat.com)
6639
8998d5bf
ZW
6640 * sched-rgn.c (init_ready_list): Make the DFA code handle
6641 USE/CLOBBER insns in the same way as the traditional
6642 scheduler.
6643 (new_ready): Similarly..
fae15c93
VM
6644
6645 2002-04-17 Vladimir Makarov <vmakarov@redhat.com>
6646
6647 * haifa-sched.c (schedule_block): Change the DFA state only after
6648 issuing insn.
6649
6650 Wed Apr 17 15:38:36 2002 Jeffrey A Law (law@redhat.com)
6651
6652 * pa.c (hppa_use_dfa_pipeline_interface): New function.
6653 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
6654 (override_options): Add PA7300 scheduling support.
6655 (pa_adjust_cost): Update various comments. Properly
6656 handle anti and output dependencies when using the
6657 DFA scheduler.
6658 (pa_issue_rate): Add PA7300 scheduling support.
6659 (pa_can_combine_p): Call extract_insn before calling
6660 constrain_operands (taken from mainline tree).
6661 * pa.h (enum processor_type): Add PROCESSOR_PA7300.
6662 * pa.md (cpu attr): Add 7300. Rewrite pipeline
6663 descriptions using DFA descriptions. Add PA7300
6664 scheduling support.
6665
6666 2002-03-30 David S. Miller <davem@redhat.com>
6667
6668 Add UltraSPARC-III DFA scheduling support.
6669 * config/sparc/sparc.md (define_attr type): Add fpcrmove.
6670 Update FP conditional move on register insn patterns to use it, as
6671 appropriate.
6672 (define_attr cpu): Add ultrasparc3.
6673 (define_attr us3load_type): New, update integer load patterns to
6674 set it, as appropriate.
6675 (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
6676 (rest): Add UltraSPARC3 scheduling description.
6677 * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
6678 (PROCESSOR_ULTRASPARC3): New.
6679 ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
6680 ({ASM,CPP}_CPU_SPEC): Likewise.
6681 (REGISTER_MOVE_COST): Likewise.
6682 (RTX_COSTS): Likewise.
6683 * config/sparc/sparc.c (sparc_override_options,
6684 sparc_initialize_trampoline, sparc64_initialize_trampoline,
6685 sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
6686 sparc_issue_rate): Likewise.
6687 * config/sparc/sol2.h: Likewise.
6688 * config/sparc/sol2-sld-64.h: Likewise.
6689 * config/sparc/linux64.h: Likewise.
8998d5bf 6690
fae15c93
VM
6691 2002-03-22 Vladimir Makarov <vmakarov@redhat.com>
6692
6693 * doc/md.texi: Add comments about usage the latency time for the
6694 different dependencies and about case when two or more conditions
6695 in different define_insn_reservations returns TRUE for an insn.
6696
6697 * doc/md.texi: Add reference for automaton based pipeline
6698 description.
8998d5bf 6699
fae15c93
VM
6700 2002-03-04 Vladimir Makarov <vmakarov@redhat.com>
6701
6702 * doc/passes.texi: Add missed information about genattrtab.
6703
6704 2002-03-01 Vladimir Makarov <vmakarov@redhat.com>
6705
6706 * genautomata.c (output_automata_list_transition_code): Check
6707 automata_list on NULL.
6708
6709 2002-02-28 Vladimir Makarov <vmakarov@redhat.com>
6710
6711 * genautomata.c (output_insn_code_cases,
6712 output_automata_list_min_issue_delay_code,
6713 output_automata_list_transition_code,
6714 output_automata_list_state_alts_code): Comment the functions.
6715
6716 2002-02-22 Vladimir Makarov <vmakarov@redhat.com>
6717
6718 * genautomata.c (automata_list_el_t): New typedef.
6719 (get_free_automata_list_el,free_automata_list_el,
6720 free_automata_list, automata_list_hash, automata_list_eq_p,
6721 initiate_automata_lists, automata_list_start, automata_list_add,
6722 automata_list_finish, finish_automata_lists,
6723 output_insn_code_cases, output_automata_list_min_issue_delay_code,
6724 output_automata_list_transition_code,
6725 output_automata_list_state_alts_code, add_automaton_state,
6726 form_important_insn_automata_lists): New functions and prototypes.
6727 (insn_reserv_decl): Add members important_automata_list and
6728 processed_p.
6729 (ainsn): Add members important_p.
6730 (automata_list_el): New structure.
6731 (first_free_automata_list_el, current_automata_list,
6732 automata_list_table): New global variables.
6733 (create_ainsns): Initiate member important_p.
6734 (output_internal_min_issue_delay_func): Generate the switch and
6735 call output_insn_code_cases.
6736 (output_internal_trans_func, output_internal_state_alts_func):
6737 Ditto.
6738 (generate): Call initiate_automata_lists.
6739 (automaton_states): New global variable.
6740 (expand_automata): Call form_important_insn_automata_lists.
6741 (write_automata): Call finish_automata_lists.
8998d5bf 6742
fae15c93
VM
6743 2002-02-21 Vladimir Makarov <vmakarov@redhat.com>
6744
6745 * genautomata.c (add_excls, add_presence_absence): Check that
8998d5bf 6746 cpu units in the sets belong the same automaton.
fae15c93
VM
6747
6748 * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
6749 about that cpu units in the sets belong the same automaton.
6750
6751 * doc/md.texi: Ditto.
8998d5bf 6752
2799d721
VM
6753 2001-12-20 Naveen Sharma <naveens@noida.hcltech.com>
6754 Nitin Gupta <niting@noida.hcltech.com>
8998d5bf 6755
fae15c93
VM
6756 * config/sh/sh.c (sh_use_dfa_interface): New function.
6757
6758 (sh_issue_rate): New Function.
6759 TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
6760 TARGET_SCHED_ISSUE_RATE: define.
6761
6762 * config/sh/sh.md: Add DFA based pipeline description for SH4.
6763
8998d5bf
ZW
6764 (define_attr insn_class): New attribute used for DFA
6765 scheduling.
fae15c93
VM
6766 (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
6767 (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
6768 cmpeqdi_t): Likewise.
6769
6770 (add,addc1,addsi3,subc,subc1,*subsi3_internal,
8998d5bf 6771 negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
fae15c93
VM
6772 ex_group.
6773 (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
8998d5bf 6774
fae15c93
VM
6775 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
6776
6777 * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
6778 break.
6779
6780 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
6781
6782 * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
6783 (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
6784 necessary.
6785 (output_dfa_start_func): Initiate new variable insn_codes_length,
6786 (write_automata): Output definition of the new variable.
8998d5bf 6787
fae15c93
VM
6788 2001-10-02 David S. Miller <davem@redhat.com>
6789
6790 * haifa-sched.c (advance_one_cycle): New function.
6791 (schedule_block): Use it.
6792 (queue_to_ready): Use it, and also make sure to advance the DFA
6793 state on all stall cycles, not just those where insn_queue links
6794 are found.
6795
6796 2001-10-02 Richard Sandiford <rsandifo@redhat.com>
6797
6798 * haifa-sched.c (max_issue): Remove last_p argument. Only return
6799 non-zero if the highest-priority instruction could be scheduled.
6800 (choose_ready): Remove last argument from max_issue call.
6801
6802 2001-09-28 David S. Miller <davem@redhat.com>
6803
6804 * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
6805 ultrasparc and 3 for other multi-issue sparcs.
6806
6807 2001-09-27 David S. Miller <davem@redhat.com>
6808
6809 * config/sparc/sparc.md (cycle_display): New pattern.
6810 * config/sparc/sparc.c (sparc_cycle_display): New.
6811 (TARGET_SCHED_CYCLE_DISPLAY): Set it.
6812
6813 2001-09-25 David S. Miller <davem@redhat.com>
6814
6815 Convert all of Sparc scheduling to DFA
6816 * config/sparc/sparc.md: Kill all define_function_unit
6817 directives and replace with DFA equivalent.
6818 * config/sparc/sparc.c (ultrasparc_adjust_cost,
6819 mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
6820 ultra_fpmode_conflict_exists, ultra_find_type,
6821 ultra_build_types_avail, ultra_flush_pipeline,
6822 ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
6823 ultrasparc_variable_issue, ultrasparc_sched_init,
6824 sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
6825 ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
6826 ultra_cur_hist, ultra_cycles_elapsed): Kill.
6827 (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
6828 ultrasparc_store_bypass_p): New.
6829 * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
6830 Declare.
6831
6832 2001-09-24 David S. Miller <davem@redhat.com>
6833
6834 * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
6835 ready->vec[foo] not ready[foo].
6836
6837 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
6838
6839 * doc/md.texi: Correct examples for define_insn_reservations
6840 `mult' and `div'.
6841
6842 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
6843
6844 * genautomata.c (create_automata): Print message about creation of
6845 each automaton.
6846 (generate): Remove printing meease about creation of
6847 automata.
6848
6849 2001-09-05 David S. Miller <davem@redhat.com>
6850
6851 * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
6852 * config/sparc/linux64.h: Likewise.
6853
6854 2001-08-31 Vladimir Makarov <vmakarov@redhat.com>
6855
6856 * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
6857 schedule_block, sched_init, sched_finish): Add missed calls of
6858 use_dfa_pipeline_interface.
6859
6860 * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
6861 Ditto.
6862
6863 * sched-vis.c (get_visual_tbl_length): Ditto.
8998d5bf 6864
fae15c93
VM
6865 2001-08-27 Richard Henderson <rth@redhat.com>
6866
6867 * genattr.c (main): Emit state_t even when not doing scheduling.
6868
6869 2001-08-27 Richard Henderson <rth@redhat.com>
6870
6871 * genautomata.c (expand_automata): Always create a description.
6872
6873 2001-08-27 Vladimir Makarov <vmakarov@touchme.toronto.redhat.com>
6874
8998d5bf 6875 * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
fae15c93
VM
6876 PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
6877 AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
6878 RTL constructions.
6879
6880 * genattr.c (main): New variable num_insn_reservations. Increase
6881 it if there is DEFINE_INSN_RESERVATION. Output automaton based
6882 pipeline hazard recognizer interface.
6883
6884 * genattrtab.h: New file.
6885
6886 * genattrtab.c: Include genattrtab.h.
6887 (attr_printf, check_attr_test, make_internal_attr,
6888 make_numeric_value): Move protypes into genattrtab.h. Define them
6889 as external.
6890 (num_dfa_decls): New global variable.
6891 (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
6892 DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
6893 DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
6894 DEFINE_INSN_RESERVATION. Call expand_automata and write_automata.
6895
6896 * genautomata.c: New file.
6897
6898 * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
6899
8998d5bf 6900 * sched-int.h: (curr_state): Add the external definition for
fae15c93
VM
6901 automaton pipeline interface.
6902 (haifa_insn_data): Add comments for members blockage and units.
6903
6904 * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
6905 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
6906 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
6907 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
6908 TARGET_SCHED_DFA_POST_CYCLE_INSN,
6909 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
6910 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
6911 macros.
6912 (TARGET_SCHED): Use the new macros.
6913
6914 * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
6915 dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
6916 first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
6917 dfa_bubble): New members in gcc_target.sched.
6918
8998d5bf 6919 * haifa-sched.c (insert_schedule_bubbles_p): New variable.
fae15c93
VM
6920 (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
6921 (insn_queue): Redefine it as pointer to array.
6922 (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
6923 INSN_QUEUE_SIZE.
6924 (max_insn_queue_index_macro_value): New variable.
6925 (curr_state, dfa_state_size, ready_try): New varaibles for
6926 automaton interface.
6927 (ready_element, ready_remove, max_issue): New function prototypes
6928 for automaton interface.
6929 (choose_ready): New function prototype.
6930 (insn_unit, blockage_range): Add comments.
6931 (unit_last_insn, unit_tick, unit_n_insns): Define them for case
6932 FUNCTION_UNITS_SIZE == 0.
6933 (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
6934 actual_hazard, potential_hazard): Add comments.
6935 (insn_cost): Use cost -1 as undefined value. Remove
6936 LINK_COST_ZERO and LINK_COST_FREE. Add new code for automaton
6937 pipeline interface.
6938 (ready_element, ready_remove): New functions for automaton
6939 interface.
6940 (schedule_insn): Add new code for automaton pipeline interface.
6941 (queue_to_ready): Add new code for automaton pipeline interface.
6942 Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
6943 (debug_ready_list): Print newline when the queue is empty.
6944 (max_issue): New function for automaton pipeline interface.
6945 (choose_ready): New function.
6946 (schedule_block): Add new code for automaton pipeline interface.
6947 Print ready list before scheduling each insn.
6948 (sched_init): Add new code for automaton pipeline interface.
6949 Initiate insn cost by -1.
6950 (sched_finish): Free the current automaton state and finalize
6951 automaton pipeline interface.
6952
6953 * sched-rgn.c: Include target.h.
6954 (init_ready_list, new_ready, debug_dependencies): Add new code for
6955 automaton pipeline interface.
6956
6957 * sched-vis.c: Include target.h.
6958 (get_visual_tbl_length): Add code for automaton interface.
6959 (target_units, print_block_visualization): Add comments.
6960
8998d5bf 6961 * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
fae15c93
VM
6962 USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
6963 (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
6964 (getruntime.o, genautomata.o): New entries.
6965 (genattrtab.o): Add new dependency file genattrtab.h.
6966 (genattrtab): Add new dependencies. Link it with `libm.a'.
6967 (getruntime.o, hashtab.o): New entries for canadian cross.
6968
6969 * doc/md.texi: Description of automaton based model.
6970
6971 * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
6972 Add comments.
6973 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
6974 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
6975 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
6976 TARGET_SCHED_DFA_POST_CYCLE_INSN,
6977 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
6978 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
6979 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
6980 hook descriptions.
6981 (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
6982 MAX_DFA_ISSUE_RATE): New macro descriptions.
6983
6984 * doc/contrib.texi: Add dfa based scheduler contribution.
6985
6986 * doc/gcc.texi: Add more information about genattrtab.
6987
a2ff290c
RK
6988Mon Apr 29 17:19:10 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6989
6990 * reload1.c (eliminate_regs, case SUBREG): Fix typo in
6991 adjust_address_nv call.
6992
f97903cc
JJ
69932002-04-29 Janis Johnson <janis187@us.ibm.com>
6994
6995 * doc/install.texi (Testing): Provide additional information, and
6996 a stronger encouragement, for running the testsuites.
6997
f41a6bf1
DD
69982002-04-29 DJ Delorie <dj@redhat.com>
6999
7000 * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
7001 given in upper case.
7002
d8af0868
RO
70032002-04-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7004
7005 * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
7006 Solaris 2 <widec.h> if missing.
7007 * fixinc/fixincl.x: Regenerate.
7008 * fixinc/tests/base/widec.h: New file.
7009
1034407f
NC
70102002-04-29 Nick Clifton <nickc@cambridge.redhat.com>
7011
7012 * toplev.c (f_options): Add "profile" switch so that
7013 -fno-profile can be used to disable -p.
7014
fbe5eb6d
BS
70152002-04-29 Bernd Schmidt <bernds@redhat.com>
7016
7017 * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
7018 UV2DImode.
7019 * tree.c (build_common_tree_nodes_2): Likewise.
7020 * tree.h (enum tree_index): Likewise.
7021 (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
7022
7023 * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
7024 entries.
7025 (init_mmx_sse_builtins): Initialize SSE2 builtins.
7026 (ix86_expand_builtin): Add support for SSE2 builtins.
7027 * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
7028 (VALID_SSE_REG_MODE): Use it.
7029 (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
7030 (enum ix86_builtins): Add SSE2 builtins.
7031 * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
7032 movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
7033 addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
7034 divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
7035 sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
7036 vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
7037 vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
7038 sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
7039 cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
7040 cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
7041 cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
7042 ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
7043 subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
7044 mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
7045 sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
7046 sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
7047 sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
7048 gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
7049 ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
7050 ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
7051 sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
7052 sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
7053 sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
7054 sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
7055 sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
7056 sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
7057 lfence_insn): New patterns.
7058 (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
7059 sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
7060
44aefada
JH
7061Mon Apr 29 17:03:24 CEST 2002 Jan Hubicka <jh@suse.cz>
7062
7063 * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
7064
d5482cdc
GP
70652002-04-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7066
7067 * doc/contrib.texi (Contributors): Add Paolo Carlini and
7068 Janis Johnson.
7069 Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
7070 Refer to Objective-C instead of ObjC, SPARC instead of sparc,
7071 and CPU instead of cpu.
7072
2c4b77f3
JH
7073Mon Apr 29 13:36:41 CEST 2002 Jan Hubicka <jh@suse.cz>
7074
7075 * toplev.c (flag_if_conversion, flag_if_conversion2): New static
7076 variables.
7077 (lang_independent_options): Add -fif-conversion, -fif-conversion2
7078 (rest_of_compilation): Do if conversion only when asked for.
7079 (parse_options_and_default_flags): Set new variables to 1 for -O1
7080 * invoke.texi (-fif-conversion, -fif-conversion2): Document.
7081
3de72741
JH
7082Mon Apr 29 13:02:50 CEST 2002 Jan Hubicka <jh@suse.cz>
7083
7084 * i386.c (dbx64_register_map): Fix typo.
7085
8aa18a7d
JH
7086Mon Apr 29 12:18:35 CEST 2002 Jan Hubicka <jh@suse.cz>
7087
7088 * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
7089 real_one_half, real_bb_freq_max): New static variables.
7090 (debug_profile_bbauxs): Kill.
7091 (process_note_predictions): Kill unused variable.
7092 (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
7093 volatile double.
7094 (propagate_freq): Use REAL_ARITHMETICS.
7095 (estimate_bb_frequencies): Likevise; init new static variables.
7096 * Makefile.in (predict.o): Add dependency on real.h
7097
1bbad4c6
DM
70982002-04-28 David S. Miller <davem@redhat.com>
7099
7100 PR target/6500
7101 * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
7102 64-bit TARGET_V9. Do not use prefetch page, use prefetch for
7103 several {reads,writes} instead.
7104 * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
7105 Define.
7106
3ef3f384
DM
71072002-04-27 David S. Miller <davem@redhat.com>
7108
7109 PR target/6494
7110 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
7111 of the stack bias.
7112
7113 * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
7114 including signal.h and sys/ucontext.h, not needed.
7115
ec493bcb
HPN
71162002-04-29 Hans-Peter Nilsson <hp@bitrange.com>
7117
7118 * varasm.c (output_constant_def): Correct test for not calling
7119 ENCODE_SECTION_INFO for INTEGER_CST.
7120
60284a59
NB
71212002-04-29 Neil Booth <neil@daikokuya.demon.co.uk>
7122
7123 * cppexp.c (lex): Move some code to _cpp_parse_expr, but
7124 keep most cases as function eval_token.
7125 (eval_token): New function.
7126 (_cpp_parse_expr): Read token here for improved diagnostics.
7127 Don't use op_as_text. Detect bad ':' here.
7128 (reduce): Don't detect bad ':' here.
7129 (op_as_text): Remove.
7130 * cpphash.h (_cpp_test_assertion): Change prototype.
7131 * cpplib.c (_cpp_test_assertion): Change prototype.
7132
349a4b40
RH
71332002-04-28 Richard Henderson <rth@redhat.com>
7134
7135 PR c/5154
8998d5bf 7136 * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
349a4b40
RH
7137 (ggc_mark_rtx_children): New.
7138
7a03f82f
JJ
71392002-04-28 Jakub Jelinek <jakub@redhat.com>
7140
7141 PR target/6496
7142 * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
7143 after call peepholes for UltraSPARC.
7144 (call + jump 64-bit peepholes): Remove.
7145
80103f96
FS
71462002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7147
7148 PR c/6497
7149 * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
7150 result as temporary value.
7151
06990986
JJ
71522002-04-28 Jakub Jelinek <jakub@redhat.com>
7153
7154 PR c++/6396
7155 * toplev.c (rest_of_compilation): Only run regrename and copy
7156 propagation if optimizing.
7157
a20fd5ac
JJ
71582002-04-28 Jakub Jelinek <jakub@redhat.com>
7159
7160 PR optimization/6475
7161 * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
7162 register of REGNO_DECL (i).
7163 * Makefile.in (reload1.o): Add $(TREE_H).
7164
87ed109f
NB
71652002-04-28 Neil Booth <neil@daikokuya.demon.co.uk>
7166
7167 * cppexp.c (lex): Update to use state.skip_eval.
7168 (struct op): Remove prio and flags members.
7169 (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
7170 SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
7171 (LEFT_ASSOC): New macro.
7172 (optab): New table of operator priorities and flags.
7173 (SHIFT): Update.
7174 (_cpp_parse_expr): Clean up logic. Return bool. Use a
7175 malloc-ed parser stack.
7176 (reduce): New; reduce the operator stack.
7177 (_cpp_expand_op_stack): Expand the operator stack as necessary.
7178 * cpphash.h (struct op): Predeclare.
7179 (struct cpp_reader): New members op_stack, op_limit.
7180 (struct lexer_state): New member skip_eval.
7181 (_cpp_parse_expr): Update.
7182 (_cpp_expand_op_stack): New.
7183 * cpplib.c (do_if): Update.
7184 * cppinit.c (cpp_create_reader): Create op stack.
7185 (cpp_destroy): And destroy it.
7186 * cpplib.h (CPP_LAST_CPP_OP): Correct.
7187 (TTYPE_TABLE): Correct.
7188
45806a3f
FS
71892002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7190
7191 PR c/6343
7192 * c-decl.c (duplicate_decls): Call merge_weak.
7193 * c-pragma.c (apply_pragma_weak): Warn about misuse.
7194 * output.h (merge_weak): Prototype merge_weak.
7195 * varasm.c (merge_weak): New function.
7196 (declare_weak): Make sure we don't give an error on VAR_DECLs.
7197 Mark RTL with SYMBOL_REF_WEAK.
7198
a6227154
KG
71992002-04-27 Kurt Garloff <garloff@suse.de>
7200
7201 * tree-inline.c (inlinable_function_p): Improve heuristics
7202 by using a smoother function to cut down allowable inlinable size.
7203 * param.def: Add parameters max-inline-insns-single,
7204 max-inline-slope, min-inline-insns that determine the exact
7205 shape of the above function.
7206 * param.h: Likewise.
7207
94a50397
RH
72082002-04-26 Richard Henderson <rth@redhat.com>
7209
7210 * c-parse.in (malloced_yyss, malloced_yyvs): New.
7211 (yyoverflow): Re-add. Set them.
7212 (free_parser_stacks): New.
7213 * c-common.h: Declare it.
7214 * c-lex.c (c_common_parse_file): Call it.
7215
9c0a0632
RH
72162002-04-26 Richard Henderson <rth@redhat.com>
7217
7218 * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
7219 for fallthru search.
7220
b875d2ee
EC
72212002-04-26 Eric Christopher <echristo@redhat.com>
7222
7223 PR optimization/3700
7224 * config/mips/mips.c (mips_issue_rate): Define. New function.
7225 (TARGET_SCHED_ISSUE_RATE): Use.
7226
1db828df
DM
72272002-04-25 David S. Miller <davem@redhat.com>
7228
7229 PR target/6422
7230 * reorg.c (optimize_skip): Do not allow exception causing
7231 instructions to be considered for delay slots.
7232 (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
7233 (relax_delay_slots): Do not try to consider exception causing
7234 instructions as redundant.
7235
ae5d234e
RH
72362002-04-26 Richard Henderson <rth@redhat.com>
7237
7238 PR c/5225
7239 * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
7240
7d793e9b
MM
72412002-04-26 Mark Mitchell <mark@codesourcery.com>
7242
7243 PR bootstrap/6445
7244 * config/i386/i386.md (untyped_call): Return the value in a float
7245 register if TARGET_FLOAT_RETURNS_IN_80387, not just if
7246 TARGET_80387.
7247
b13ab42c
AO
72482002-04-26 Alexandre Oliva <aoliva@redhat.com>
7249
7250 * tree.c (tree_int_cst_lt): Compare constants whose types differ
7251 in unsigned-ness correctly.
7252
5e56f909
JDA
72532002-04-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
7254
7255 * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
7256 portable runtime model.
7257
bde3c0c0
RH
72582002-04-26 Richard Henderson <rth@redhat.com>
7259
a6227154 7260 * c-parse.in (yyoverflow): Revert.
bde3c0c0 7261
5276df18
DE
72622002-04-26 David Edelsohn <edelsohn@gnu.org>
7263 Richard Henderson <rth@redhat.com>
7264
7265 * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
7266 result as temporary value.
7267
b84a3874
RH
72682002-04-26 Richard Henderson <rth@redhat.com>
7269
7270 PR c/3581
7271 * c-common.c (fix_string_type): Split out of ...
7272 (combine_strings): ... here. Take a varray, not a tree list.
7273 (c_expand_builtin_printf): Use fix_string_type.
7274 * c-common.h: Update decls.
7275 * c-parse.in (string): Remove. Update all uses to use STRING
7276 instead, and not call combine_strings.
7277 (yylexstring): New.
7278 (_yylex): Use it.
7279 * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
7280 (build_asm_stmt): Likewise.
7281 * objc/objc-act.c (my_build_string): Use fix_string_type.
7282 (build_objc_string_object): Build varray for combine_strings.
7283
d8ae8cd4
BT
72842002-04-26 Bo Thorsen <bo@suse.co.uk>
7285
7286 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
7287 x86-64.
7288
f8b954fc
NB
72892002-04-26 Neil Booth <neil@daikokuya.demon.co.uk>
7290
7291 * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
7292 (HAVE_NO_R_OPERAND): Remove.
7293 (HAVE_VALUE): Remove.
7294 (op_to_prio): Update.
7295 (UNARY): Don't alter flags.
7296 (_cpp_parse_expr): want_value used to indicate whether
7297 a number or unary operator is expected next. Distinguish
7298 unary and binary +/-.
7299 (op_as_text): Update for unary operators.
7300
6052bef0
RH
73012002-04-25 Richard Henderson <rth@redhat.com>
7302
7303 PR c/2161
7304 * c-parse.in (yyoverflow): New.
7305
5c5b2283
RH
73062002-04-25 Richard Henderson <rth@redhat.com>
7307
7308 PR c/2098
7309 * c-common.c (shorten_compare): Simplfy conditions leading to
7310 the generation of a warning.
7311
28ce94d4
RH
73122002-04-25 Richard Henderson <rth@redhat.com>
7313
7314 PR c/2035
7315 * expmed.c (extract_bit_field): Fall through to generic code rather
7316 than aborting on subreg special case.
7317
6bfd0c63
DM
73182002-04-25 David S. Miller <davem@redhat.com>
7319
7320 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
7321 for DECL being NULL.
7322
7a430e3b
SC
73232002-04-25 Steve Christiansen <smc@us.ibm.com>
7324
7325 * doc/md.texi (Machine Constraints): Add IA-64 constraints.
7326
45c42d7d
EB
73272002-04-25 Eric Botcazou <ebotcazou@multimania.com>
7328
7329 * c-decl.c (grokdeclarator): Remove outdated ??? note
7330 on invalid declaration of flexible array members.
7331
eb7715a4
RH
73322002-04-25 Richard Henderson <rth@redhat.com>
7333
7334 * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
7335
cf5ee720
UW
73362002-04-25 Ulrich Weigand <uweigand@de.ibm.com>
7337
7338 * config/s390/s390.c (s390_emit_epilogue): Always restore registers
7339 needed by the compiler, even if they are used as global regs.
7340
d604bca3
MH
73412002-04-25 Matt Hiller <hiller@redhat.com>
7342
7343 * mips.c (mips_class_max_nregs, mips_register_move_cost): New
7344 functions.
7345 * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
7346 of the corresponding functions.
7347 * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
7348 New prototypes.
b875d2ee 7349
d604bca3
MH
73502002-04-25 Matt Hiller <hiller@redhat.com>
7351
7352 * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
7353
7354 (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
7355 (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
7356 registers, adjust comment accordingly.
7357 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
7358 reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
7359 DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
7360 for coprocessor registers.
7361 (ADDITIONAL_REGISTER_NAMES): Include
7362 ALL_COP_ADDITIONAL_REGISTER_NAMES.
b875d2ee 7363
d604bca3
MH
7364 (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
7365 COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
7366 COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
7367 COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
7368 COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
7369
7370 (mips_char_to_class): Adjust comment to include coprocessor
7371 constraint letters.
7372
7373 * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
7374 New functions.
7375 (mips_reg_names, mips_regno_to_class): Include coprocessor
7376 information.
7377 (mips_sw_reg_names): Ditto, make non-static.
7378 (mips_move_1word): Handle moves to and from coprocessor registers.
7379 (mips_move_2words): Handle moves to and from coprocessor
7380 registers.
7381 (mips_class_max_nregs, mips_register_move_cost): Handle
7382 coprocessor register classes.
7383 (override_options): Initialize mips_char_to_class and
7384 mips_hard_regno_mode_ok properly for coprocessor registers.
7385
7386 * config/mips/mips.md (movdi_internal, movdi_internal2,
7387 movsi_internal1, movsi_internal2): Add constraint-sets for
7388 coprocessor registers.
7389 * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
7390 * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
7391 isn't mips.
7392 * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
7393 * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
7394 isn't mips.
7395 * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
7396 * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
7397 isn't mips.
7398 * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
7399 * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
7400 isn't mips.
b875d2ee 7401
d604bca3
MH
7402 * doc/tm.texi: Document feature.
7403
b9a26d09
NB
74042002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
7405
7406 * integrate.c (function_attribute_inlinable_p): Simplify.
7407 Check the table pointer is not NULL.
7408
ab5973b7
SB
74092002-04-25 Steven Bosscher <S.Bosscher@student.tudelft.nl>
7410
7411 * doc/c-tree.texi: Fix typo in introduction.
7412
ff45c01e
NB
74132002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
7414
7415 * c-common.h (c_common_parse_file): Update.
7416 * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
7417 * c-lex.c (YYDEBUG): Get from c-lex.h.
7418 (c_common_parse_file): Update.
7419 * c-lex.h (YYDEBUG, yydebug): New.
7420 * c-parse.in (YYDEBUG): Get from c-lex.h.
7421 (c_set_yydebug): Remove.
7422 * c-tree.h (c_set_yydebug): Remove.
7423 * langhooks-def.h (lhd_do_nothing_i): New.
7424 (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
7425 (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
7426 * langhooks.c (lhd_do_nothing_i): New.
7427 (lhd_set_yydebug): Remove.
7428 * langhooks.h (struct lang_hooks): Update.
7429 * toplev.c (set_yydebug): New.
7430 (compile_file): Update call to parse_file hook.
7431 (decode_d_option): Update.
7432objc:
7433 * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
7434
fcae219a
R
7435Wed Apr 24 23:45:37 2002 J"orn Rennecke <joern.rennecke@superh.com>
7436
7437 * loop.c (load_mems): Don't change the interface of called functions.
7438
7439 * calls.c (expand_call): Take current_function_pretend_args_size
7440 into account when setting argblock for sibcalls.
7441
d0fea45a
MH
74422002-04-24 Matt Hiller <hiller@redhat.com>
7443
7444 * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
7445 * c-lex.c: Ditto.
7446
7447 * cpplex.c (skip_line_comment): Process comment one multibyte
7448 character at a time rather than one char at a time, if
7449 appropriate.
7450 (parse_string): Process string one multibyte character at a time
7451 rather than one char at a time, if appropriate.
7452 * c-lex.c (lex_string): Lex and copy multibyte strings
7453 appropriately.
7454 * cpplib.h (cppchar_t): Change to unsigned.
7455
2d1b5436
RH
74562002-04-24 Richard Henderson <rth@redhat.com>
7457
7458 PR c/3467
7459 * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
7460 for c99.
7461
5e039e6b
R
7462Wed Apr 24 21:51:54 2002 J"orn Rennecke <joern.rennecke@superh.com>
7463
7464 * sh.c (sh_va_arg): If argument was passed by reference,
7465 dereference the pointer.
309d8365
R
7466
7467 * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
51214775
R
7468
7469 * sh.md (divsi3_i4_media): Use match_operand for input values
7470 rather than hard registers.
7471 (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
7472 unnecessarily through hard registers. Keep copies of pseudo
7473 registers outside of the libcall sequence.
7474
7475 * sh.md (casesi_shift_media): Add modes.
b700634a
R
7476
7477 * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
7478 values in memory.
7479
349ae713
NB
74802002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
7481
7482 * attribs.c (c_common_attribute_table): Move table and handlers
7483 to c-common.c.
7484 (format_attribute_table, lang_attribute_table,
7485 lang_attribute_common): Remove.
7486 (init_attributes): Replace NULL pointers with pointers to the
7487 empty table.
7488 (handle_packed_attribute, handle_nocommon_attribute,
7489 handle_common_attribute, handle_noreturn_attribute,
7490 handle_noinline_attribute, handle_always_inline_attribute,
7491 handle_used_attribute, handle_unused_attribute,
7492 handle_const_attribute, handle_transparent_union_attribute,
7493 handle_constructor_attribute, handle_destructor_attribute,
7494 handle_mode_attribute, handle_section_attribute,
7495 handle_aligned_attribute, handle_weak_attribute,
7496 handle_alias_attribute, handle_visibility_attribute,
7497 handle_no_instrument_function_attribute, handle_malloc_attribute,
7498 handle_no_limit_stack_attribute, handle_pure_attribute,
7499 handle_deprecated_attribute, handle_vector_size_attribute,
7500 vector_size_helper): Move to c-common.c.
7501 * c-common.c (c_common_attribute_table,
7502 handle_packed_attribute, handle_nocommon_attribute,
7503 handle_common_attribute, handle_noreturn_attribute,
7504 handle_noinline_attribute, handle_always_inline_attribute,
7505 handle_used_attribute, handle_unused_attribute,
7506 handle_const_attribute, handle_transparent_union_attribute,
7507 handle_constructor_attribute, handle_destructor_attribute,
7508 handle_mode_attribute, handle_section_attribute,
7509 handle_aligned_attribute, handle_weak_attribute,
7510 handle_alias_attribute, handle_visibility_attribute,
7511 handle_no_instrument_function_attribute, handle_malloc_attribute,
7512 handle_no_limit_stack_attribute, handle_pure_attribute,
7513 handle_deprecated_attribute, handle_vector_size_attribute,
7514 vector_size_helper): Move from attribs.c.
7515 * c-common.h (c_common_attribute_table,
7516 c_common_format_attribute_table): New.
7517 * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
7518 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
7519 * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
7520 LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
7521 (LANG_HOOKS_INITIALIZER): Update.
7522 * langhooks.h (struct lang_hooks): 3 new attribute hooks.
7523 * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
7524 * target.h: Update comment.
7525 * tree.c (default_target_attribute_table): Remove.
7526 * tree.h (default_target_attribute_table, format_attribute_table,
7527 lang_attribute_table, lang_attribute_common): Remove.
7528objc:
7529 * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
7530 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
7531
84f0ace0
JM
75322002-04-24 Jason Merrill <jason@redhat.com>
7533
7534 * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
7535 * dwarf2out.c (dwarf_attr_name): Support it.
7536 (gen_array_type_die): Emit it.
7537 (lookup_type_die): No special handling for VECTOR_TYPE.
7538 (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
7539
120eaf28
RH
75402002-04-24 Richard Henderson <rth@redhat.com>
7541
7542 * config/mips/mips.md (movdi_usd): Renumber.
7543
e732178c
DM
75442002-04-24 David S. Miller <davem@redhat.com>
7545
7546 PR target/6420
7547 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
7548 32-bit Sparc and current_function_returns_struct is true.
7549
e879eb2f
JH
7550Wed Apr 24 13:48:25 CEST 2002 Jan Hubicka <jh@suse.cz>
7551
7552 * loop.c (canonicalize_condition): Use gen_int_mode.
7553
4287a893
AH
75542002-04-24 Aldy Hernandez <aldyh@redhat.com>
7555
7556 * config/rs6000/altivec.h: Cleanup file. Add non individual
7557 variants.
7558 (vec_vaddubm): New.
7559 (vec_vadduhm): New.
7560 (vec_vadduwm): New.
7561 (vec_vaddfp): New.
7562 (vec_vaddcuw): New.
7563 (vec_vaddubs): New.
7564 (vec_vaddsbs): New.
7565 (vec_vadduhs): New.
7566 (vec_vadduws): New.
7567 (vec_vaddsws): New.
7568 (vec_vand): New.
7569 (vec_vandc): New.
7570 (vec_vavgub): New.
7571 (vec_vavgsb): New.
7572 (vec_vavguh): New.
7573 (vec_vavgsh): New.
7574 (vec_vavguw): New.
7575 (vec_vavgsw): New.
7576 (vec_vrfip): New.
7577 (vec_vcmpbfp): New.
7578 (vec_vcmpequb): New.
7579 (vec_vcmpequh): New.
7580 (vec_vcmpequw): New.
7581 (vec_vcmpeqfp): New.
7582 (vec_vcmpgefp): New.
7583 (vec_vcmpgtub): New.
7584 (vec_vcmpgtsb): New.
7585 (vec_vcmpgtuh): New.
7586 (vec_vcmpgtsh): New.
7587 (vec_vcmpgtuw): New.
7588 (vec_vcmpgtsw): New.
7589 (vec_vcmpgtfp): New.
7590 (vec_vcmpgefp): New.
7591 (vec_vcfux): New.
7592 (vec_vcfsx): New.
7593 (vec_vctsxs): New.
7594 (vec_vctuxs): New.
7595 (vec_vexptefp): New.
7596 (vec_vrfim): New.
7597 (vec_lvx): New.
7598 (vec_lvebx): New.
7599 (vec_lvehx): New.
7600 (vec_lde): Add vector float variant.
7601 (vec_lvewx): New.
7602 (vec_lvxl): New.
7603 (vec_vlogefp): New.
7604 (vec_vmaddfp): New.
7605 (vec_vmhaddshs): New.
7606 (vec_vmaxub): New.
7607 (vec_vmaxsb): New.
7608 (vec_vmaxuh): New.
7609 (vec_vmaxsh): New.
7610 (vec_vmaxuw): New.
7611 (vec_vmaxsw): New.
7612 (vec_vmaxsw): New.
7613 (vec_vmaxfp): New.
7614 (vec_vmrghb): New.
7615 (vec_vmrghh): New.
7616 (vec_vmrghw): New.
7617 (vec_vmrglb): New.
7618 (vec_vmrglh): New.
7619 (vec_vmrglw): New.
7620 (vec_vminub): New.
7621 (vec_vminsb): New.
7622 (vec_vminuh): New.
7623 (vec_vminsh): New.
7624 (vec_vminuw): New.
7625 (vec_vminsw): New.
7626 (vec_vminfp): New.
7627 (vec_vmladduhm): New.
7628 (vec_vmhraddshs): New.
7629 (vec_msumubm): New.
7630 (vec_vmsummbm): New.
7631 (vec_vmsumuhm): New.
7632 (vec_vmsumshm): New.
7633 (vec_vmsumuhs): New.
7634 (vec_vmsumshs): New.
7635 (vec_vmuleub): New.
7636 (vec_vmulesb): New.
7637 (vec_vmuleuh): New.
7638 (vec_vmulesh): New.
7639 (vec_vmuloub): New.
7640 (vec_mulosb): New.
7641 (vec_vmulouh): New.
7642 (vec_vmulosh): New.
7643 (vec_vnmsubfp): New.
7644 (vec_vnor): New.
7645 (vec_vor): New.
7646 (vec_vpkuhum): New.
7647 (vec_vpkuwum): New.
7648 (vec_vpkpx): New.
7649 (vec_vpkuhus): New.
7650 (vec_vpkshss): New.
7651 (vec_vpkuwus): New.
7652 (vec_vpkswss): New.
7653 (vec_vpkshus): New.
7654 (vec_vpkswus): New.
7655 (vec_vperm): New.
7656 (vec_vrefp): New.
7657 (vec_vrlb): New.
7658 (vec_vrlh): New.
7659 (vec_vrlw): New.
7660 (vec_vrfin): New.
7661 (vec_vrsqrtefp): New.
7662 (vec_vsel): New.
7663 (vec_vslb): New.
7664 (vec_vslh): New.
7665 (vec_vslw): New.
7666 (vec_vsldoi): New.
7667 (vec_vsl): New.
7668 (vec_vslo): New.
7669 (vec_vspltb): New.
7670 (vec_vsplth): New.
7671 (vec_vspltw): New.
7672 (vec_vspltisb): New.
7673 (vec_vspltish): New.
7674 (vec_vspltisw): New.
7675 (vec_vsrb): New.
7676 (vec_vsrh): New.
7677 (vec_vsrw): New.
7678 (vec_vsrab): New.
7679 (vec_vsrah): New.
7680 (vec_vsraw): New.
7681 (vec_vsr): New.
7682 (vec_vsro): New.
7683 (vec_stvx): New.
7684 (vec_stvebx): New.
7685 (vec_stvehx): New.
7686 (vec_stvewx): New.
7687 (vec_stvxl): New.
7688 (vec_vsububm): New.
7689 (vec_vsubuhm): New.
7690 (vec_vsubuwm): New.
7691 (vec_vsubfp): New.
7692 (vec_vsubcuw): New.
7693 (vec_vsububs): New.
7694 (vec_vsubsbs): New.
7695 (vec_vsubuhs): New.
7696 (vec_vsubshs): New.
7697 (vec_vsubuws): New.
7698 (vec_vsubsws): New.
7699 (vec_vsum4ubs): New.
7700 (vec_vsum4sbs): New.
7701 (vec_vsum4shs): New.
7702 (vec_vsum2sws): New.
7703 (vec_vsumsws): New.
7704 (vec_vrfiz): New.
7705 (vec_vupkhsb): New.
7706 (vec_vupkhpx): New.
7707 (vec_vupkhsh): New.
7708 (vec_vupklsb): New.
7709 (vec_vupklpx): New.
7710 (vec_vupklsh): New.
7711 (vec_vxor): New.
7712
cff27795
EB
77132002-04-23 Eric Botcazou <ebotcazou@multimania.com>
7714
7715 PR c/5430
7716 * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
7717 added literals from substracted literals.
7718 (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
7719 (fold) [associate]: Preserve MINUS_EXPR if needed.
7720
952bca84
ZW
77212002-04-23 Zack Weinberg <zack@codesourcery.com>
7722
7723 * doc/install.texi: Clarify which versions of alpha*-dec-osf*
7724 are obsoleted.
7725
50cb2154
TT
77262002-04-23 Tom Tromey <tromey@redhat.com>
7727
7728 * gcc.c: Added --resource. For PR java/6314.
7729
271f61fb
DB
77302002-04-23 David O'Brien <obrien@FreeBSD.org>
7731
9566d1e9 7732 * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
271f61fb
DB
7733 * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
7734 these libraries.
7735
bdabbc80
DB
77362002-04-23 David O'Brien <obrien@FreeBSD.org>
7737
7738 * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
7739
74411039
JH
7740Tue Apr 23 14:24:25 CEST 2002 Jan Hubicka <jh@suse.cz>
7741
7742 * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
7743 workaround.
7744 (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
7745 (ix86_expand_clrstr): Fix typo.
7746 * loop.c (gen_load_of_final_value): New.
7747 (loop_givs_rescan, strength_reduce, check_dbra_loop):
7748 Use it.
7749
1a887f86
RS
77502002-04-23 Roger Sayle <roger@eyesopen.com>
7751
7752 * builtins.c (builtin_memset_gen_str): New function.
7753 (expand_builtin_memset): Optimize the case of constant length, but
7754 unknown value.
7755
8d3441e0
AH
77562002-04-23 Aldy Hernandez <aldyh@redhat.com>
7757
cff27795
EB
7758 * config/rs6000/altivec.h (vec_step): Remove extraneous
7759 parentheses.
7760 (vec_ctu): Cast return.
8d3441e0 7761
f6f315fe
AM
77622002-04-23 Alan Modra <amodra@bigpond.net.au>
7763
7764 PR target/6413
7765 * function.h: (struct function): Add profile_label_no field.
7766 (current_function_profile_label_no): Define.
7767 * function.c: (profile_label_no): New static var.
7768 (expand_function_start): Increment it, and copy to
7769 current_function_profile_label_no.
7770 * output.h (profile_label_no): Delete.
7771 * final.c (profile_label_no): Delete.
7772 (profile_function): Use current_function_profile_label_no.
7773 (final_end_function): Don't increment profile_label_no here.
7774 * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
7775 profile_label_no with current_function_profile_label_no.
7776 * config/pa/pa.c (current_function_number): Delete.
7777 (pa_output_function_prologue): Don't output profile label here.
7778 (hppa_profile_hook): Use label_no param rather than
7779 current_function_number.
7780 (FUNC_BEGIN_PROLOG_LABEL): Move to ..
7781 * config/pa/pa.h: .. here.
7782 (FUNCTION_PROFILER): Output profile label here.
7783
d239cdc0
EC
77842002-04-22 Eric Christopher <echristo@redhat.com>
7785
7786 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
7787 patch of 2002-04-09 due to binutils issues.
7788 (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
7789
04428ad4
AH
77902002-04-22 Aldy Hernandez <aldyh@redhat.com>
7791
cff27795
EB
7792 * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
7793 constraint to 'o' for m=r and r=m alternatives.
7794 ("*movv8hi_internal1"): Same.
7795 ("*movv16qi_internal1"): Same.
7796 ("*movv4sf_internal1"): Same.
04428ad4 7797
2adc7f12
JJ
77982002-04-22 Janis Johnson <janis187@us.ibm.com>
7799
7800 * rtl.h (RTX_FLAG): New macro.
7801 * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
7802 * final.c (alter_subreg): Use macro to access rtx flag.
7803 * integrate.c (copy_rtx_and_substitute): Use new access macro.
7804 * print-rtl.c (print_rtx): Use new access macro.
7805
7806 * cse.c (insert): Check rtx code before accessing flag.
7807
7808 * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
7809 ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
7810 (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
7811 convert_const_symbol_ref, make_canonical, make_alternative_compare,
7812 evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
7813 simplify_test_exp, optimize_attrs, simplify_by_exploding,
7814 find_and_mark_used_attributes, unmark_used_attributes,
7815 add_values_to_cover, simplify_with_current_value,
7816 simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
7817 copy_rtx_unchanging, main): Use new access macros.
7818
b7c89afe
TR
78192002-04-22 Tom Rix <trix@redhat.com>
7820
7821 * expmed.c (init_expmed): Generate shifted constant once.
7822
9340544b
ZW
78232002-04-22 Zack Weinberg <zack@codesourcery.com>
7824
7825 * c-lex.c (lex_charconst): Call convert to get constant in
7826 proper type; don't just smash the type field.
7827 Fixes PR c/6300.
7828
7829 * config.gcc: Add list of obsolete configurations. Disallow
7830 building these without --enable-obsolete.
7831 * doc/install.texi: Document --enable-obsolete and obsoletion
7832 policy. Mention obsoletion of individual targets in
7833 appropriate places.
7834
f942d7a5
RH
78352002-04-22 Richard Henderson <rth@redhat.com>
7836
7837 * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
7838
78392002-04-22 Mark Mitchell <mark@codesourcery.com>
8ed8f731
MM
7840
7841 PR f/6138.
7842 * function.c (fixup_memory_subreg): Add promoted_mode parameter.
7843 (walk_fixup_memory_subreg): Likewise.
7844 (fixup_var_refs_insn): Adjust accordingly.
7845 (fixup_var_refs_1): Likewise.
7846
232b0b45
UW
78472002-04-22 Ulrich Weigand <uweigand@de.ibm.com>
7848
7849 * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
7850 LIBPATH_ARCH64_SPEC): Define.
7851 (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
7852 (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
7853 (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
7854 (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
7855
1b61552b
JS
78562002-04-22 Joel Sherrill <joel@OARcorp.com>
7857
7858 * gthr-rtems.h: Correct prototypes to remove warnings.
7859
0fe854a7
RH
78602002-04-22 Richard Henderson <rth@redhat.com>
7861
7862 PR c/6344
7863 * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
7864
7865 * gcse.c (free_insn_expr_list_list): New.
7866 (clear_modify_mem_tables): Use it. Fix bit set usage.
7867 (canon_list_insert): Use EXPR_LISTs for expressions.
7868 (record_last_mem_set_info): Factor BLOCK_NUM (insn).
7869
af0d16cd
NB
78702002-04-22 Neil Booth <neil@daikokuya.demon.co.uk>
7871
7872 * cppfiles.c (_cpp_pop_file_buffer): Return void. Move
7873 file change and include code to _cpp_pop_buffer.
7874 * cpphash.h (struct pending_option): Predeclare.
7875 (struct cpp_reader): New member next_include_file.
7876 (_cpp_pop_file_buffer): Update.
7877 (_cpp_push_next_buffer): Update, rename.
7878 * cppinit.c (cpp_destroy): Free include chain and pending here.
7879 (cpp_finish_options): Simplify.
7880 (_cpp_push_next_buffer): Rename and clean up.
7881 * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
7882 Clarify.
7883 * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
7884
0d918572
AH
78852002-04-22 Aldy Hernandez <aldyh@redhat.com>
7886
0fe854a7
RH
7887 * config/rs6000/altivec.h (vec_xor): Add variant for both args
7888 being vector signed int.
7889 (vec_andc): Same.
7890 (vec_xor): Add variant for both args being vector signed char.
7891 Remove redundant variant.
7892 (vec_andc): Same.
0d918572 7893
77e2c290
DM
78942002-04-21 David S. Miller <davem@redhat.com>
7895
7896 * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
7897 compare mode in output RTL.
7898
ee2ca2a2
DE
78992002-04-22 David Edelsohn <edelsohn@gnu.org>
7900
7901 * config/rs6000/rs6000.c (rs6000_override_options): Correct
7902 style and formatting of previous patch.
7903
894bdff6
AM
79042002-04-22 Alan Modra <amodra@bigpond.net.au>
7905
7906 * config/rs6000/rs6000.c (rs6000_override_options): Always clear
7907 flag_pic for ABI_AIX.
7908
562a5c27
NB
79092002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
7910
7911 * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
7912 * cppfiles.c (read_include_file): Similarly.
7913 * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
7914 uxstrdup ustrchr, ufputs): Similarly.
7915 * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
7916 * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
7917 cpp_ideq, parse_identifier, parse_number): Similarly.
7918 * cpplib.c (struct directive, dequote_string, D, run_directive,
7919 cpp_push_buffer): Similarly.
7920 * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
7921 _cpp_create_definition, check_trad_stringification,
7922 cpp_macro_definition): Similarly.
7923
9ac3b1be
NB
79242002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
7925
7926 * cppmacro.c (funlike_invocation_p): Don't step back
7927 over CPP_EOF.
7928
9dda4cc8
DE
79292002-04-21 David Edelsohn <edelsohn@gnu.org>
7930
7931 * config/rs6000/rs6000.c (output_profile_hook): Do not increment
7932 labelno.
7933
20764052
JM
79342002-04-20 Joseph S. Myers <jsm28@cam.ac.uk>
7935
7936 * doc/invoke.texi: Remove Chill references.
7937 * doc/gcc.texi: Update last modified date.
7938
26b29884
KH
79392002-04-20 Kazu Hirata <kazu@hxi.com>
7940
7941 * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
7942 push and pop. Replace add.l with add.w.
7943
59184677
TM
79442002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
7945
7946 * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
7947 multiply instructions for H8/300H case.
7948
b1113e0a
TM
79492002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
7950
7951 * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
7952 Bum three instructions from each routine.
7953
b03e38e1
NB
79542002-04-20 Neil Booth <neil@daikokuya.demon.co.uk>
7955
7956 * Makefile.in: Update.
7957 * decl.c (push_c_function_context, pop_c_function_context,
7958 mark_c_function_context): Rename for consistency.
7959 * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
7960 * c-tree.h (push_c_function_context, pop_c_function_context,
7961 mark_c_function_context): Rename for consistency.
7962 * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
7963 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
7964 * function.c (init_lang_status, save_lang_status,
7965 restore_lang_status, mark_lang_status, free_lang_status):
7966 Move to langhooks.h.
7967 (push_function_context_to, pop_function_context_from,
7968 free_after_parsing, prepare_function_start, ggc_mark_struct_function):
7969 Update.
7970 * function.h (init_lang_status, save_lang_status,
7971 restore_lang_status, mark_lang_status, free_lang_status):
7972 Move to langhooks.h.
7973 * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
7974 LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
7975 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
7976 LANG_HOOKS_FUNCTION_INITIALIZER): New.
7977 (LANG_HOOKS_INITIALIZER): Update.
7978 (lhd_do_nothing_f): New.
7979 * langhooks.h (struct lang_hooks_for_functions): New.
7980 (struct lang_hooks): New hooks.
7981 * langhooks.c (lhd_do_nothing_f): New.
7982objc:
7983 * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
7984 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
7985
db430d26
DM
79862002-04-19 David S. Miller <davem@redhat.com>
7987
7988 * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
7989 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
7990
0f2a3457
JJ
79912002-04-19 Jakub Jelinek <jakub@redhat.com>
7992
7993 PR optimization/3756
7994 * config/i386/i386.c (ix86_expand_int_movcc): Optimize
7995 x = ((int) y < 0) ? cst1 : cst2.
7996
ce5e43d0
JJ
79972002-04-19 Jakub Jelinek <jakub@redhat.com>
7998
7999 PR c/6358
8000 * function.c: Reapply patch for c/6358.
8001 (expand_function_end): Copy decl_rtl's mode, not
8002 current_function_return_rtx mode.
8003
80042002-04-19 Joel Sherrill <joel@OARcorp.com>
9eb83f6c
JS
8005
8006 * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
8007 targets.
8008
40e7f8ea
TT
80092002-04-19 Tom Tromey <tromey@redhat.com>
8010
8011 * doc/install.texi (Specific): Update status of Solaris 2.8.
8012 For PR libgcj/6158.
8013
62a12b27
AS
80142002-04-19 Andreas Schwab <schwab@suse.de>
8015
8016 * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
8017 (PUT_REAL): Restore old definition.
8018
1405141b
DN
80192002-04-19 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
8020 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
8021
8022 * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
8023 binutils 2.11.2 and higher generate smaller binaries than Sun's
8024 native tools.
8025
303a3927
MM
80262002-04-19 Mark Mitchell <mark@codesourcery.com>
8027
8028 PR c++/6352
8029 * toplev.c (rest_of_compilation): Do not defer functions for which
8030 TREE_SYMBOL_REFERENCED has already been set.
8031
de80110b
JH
8032Fri Apr 19 15:53:03 CEST 2002 Jan Hubicka <jh@suse.cz>
8033
8034 * i386.md (movsi_1, movhi_1): Force reload to use more flexible
8035 alternative.
8036
ab393bf1
NB
80372002-04-19 Neil Booth <neil@daikokuya.demon.co.uk>
8038
8039 * builtins.c: Include langhooks.h.
8040 (lang_type_promotes_to): Remove.
8041 (expand_builtin_va_arg): Use new hook.
8042 * c-common.c (c_common_nodes_and_builtins): Don't set hook.
8043 (simple_type_promotes_to): Move to c-typeck.c.
8044 * c-common.h (simple_type_promotes_to): Remove.
8045 * c-decl.c (duplicate_decls, grokdeclarator): Update.
8046 * c-format.c: Include langhooks.h.
8047 (check_format_types): Update.
8048 * c-tree.h (c_type_promotes_to): New.
8049 * c-typeck.c (c_type_promotes_to): Move from c-common.c.
8050 (type_lists_compatible_p): Update.
8051 * langhooks-def.h (lhd_type_promotes_to): New.
8052 (LANG_HOOKS_TYPE_PROMOTES_TO): New.
8053 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
8054 * langhooks.c (lhd_type_promotes_to): New.
8055 * langhooks.h (struct lang_hooks_for_types): New hook.
8056 * tree.h (lang_type_promotes_to): Remove.
8057objc:
8058 * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
8059
0cd3301b
RH
80602002-04-18 Richard Henderson <rth@redhat.com>
8061
58533fa2 8062 * function.c: Revert patch for c/6358.
0cd3301b
RH
8063
80642002-04-18 Richard Henderson <rth@redhat.com>
8065
58533fa2
RH
8066 * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
8067 blocks. Handle multiple references to the TRAP block. Handle
8068 non-adjacent THEN and OTHER blocks.
0cd3301b 8069
58533fa2
RH
80702002-04-18 Richard Henderson <rth@redhat.com>
8071
8072 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
8073 crash with no type for by-mode libcalls.
8074
8075 * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
0cd3301b 8076
57174693
BW
80772002-04-18 Bob Wilson <bob.wilson@acm.org>
8078
8079 * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
8080 __xtensa_nonlocal_goto): Use a syscall instructions to flush
8081 the register windows.
8082
46468cd9
ZW
80832002-04-18 Zack Weinberg <zack@codesourcery.com>
8084
8085 * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
8086 appropriate. Document need for extended precision even when
8087 MAX_LONG_DOUBLE_TYPE_SIZE is smaller. Define REAL_WIDTH here,
8088 based on REAL_VALUE_TYPE_SIZE. Use REAL_WIDTH to size
8089 REAL_VALUE_TYPE. Define CONST_DOUBLE_FORMAT here. Use #error
8090 instead of relying on later syntax error when REAL_WIDTH > 5.
8091 * real.c: Define NE based only on whether or not we have a
8092 full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
8093 Require sizeof(REAL_VALUE_TYPE) == 2*NE. Unconditionally
8094 define GET_REAL and PUT_REAL as simple memcpy operations; no
8095 need to byteswap or round.
8096 Use #error instead of #ifdef-ing out the entire file, for
8097 prompt error detection.
8098
8099 * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
8100
2f82dbf8
DM
81012002-04-18 David S. Miller <davem@redhat.com>
8102
8103 * config/sparc/sparc.h (BRANCH_COST): Define.
8104
8105 * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
8106 does it.
8107
566576e7
HPN
81082002-04-18 Hans-Peter Nilsson <hp@bitrange.com>
8109
8110 * flow.c (update_life_info): Ignore return value of cleanup_cfg.
8111 Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
8112 propagate_block calls after relaxation loop using new variable
8113 stabilized_prop_flags.
8114
51dcde6f
RH
81152002-04-18 Richard Henderson <rth@redhat.com>
8116
8117 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
8118 (ia64_va_arg): Expect variable sized types by reference.
8119 * config/ia64/ia64-protos.h: Update.
46468cd9 8120 * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
51dcde6f
RH
8121 ia64_function_arg_pass_by_reference.
8122
26406018
RH
81232002-04-18 Richard Henderson <rth@redhat.com>
8124
46468cd9
ZW
8125 * ifcvt.c: Include except.h.
8126 (block_has_only_trap): Break out from find_cond_trap.
8127 (find_cond_trap): Use it. Always delete the trap block.
8128 (merge_if_block): Allow then block null. Be less simplistic about
8129 what insns can end a block.
8130 * Makefile.in (ifcvt.o): Depend on except.h.
96b453dc 8131
26406018
RH
8132 * config/ia64/ia64.md (trap, conditional_trap): New.
8133
a3acf46d
JJ
81342002-04-18 Jakub Jelinek <jakub@redhat.com>
8135
8136 PR c/6358
8137 * function.c (assign_parms): Assign hard current_function_return_rtx
8138 register here...
8139 (expand_function_end): ...not here.
8140
7a228918
NB
81412002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
8142
8143 * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
8144 * c-tree.h (c_incomplete_type_error): New.
8145 * c-typeck.c (require_complete_type, build_component_ref): Update.
8146 (incomplete_type_error): Rename.
8147 * langhooks-def.h (lhd_incomplete_type_error): New.
8148 (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
8149 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
8150 * langhooks.c (lhd_incomplete_type_error): New.
8151 * langhooks.h (struct lang_hooks_for_types): New hook.
8152 * tree.c (size_in_bytes): Use new hook.
8153 * tree.h (incomplete_type_error): Remove.
8154objc:
8155 * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
8156
f18664c1
ZW
81572002-04-18 Zack Weinberg <zack@codesourcery.com>
8158
8159 * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
8160 TARGET_FLOAT_FORMAT blocks.
8161
8ecab453
GP
81622002-04-18 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
8163
8164 * doc/install.texi (Downloading the source): Do not mention Chill
8165 any longer, but mention Ada.
8166 (Configuration): Do not mention Chill any longer.
8167
528d8489
HPN
81682002-04-18 Hans-Peter Nilsson <hp@axis.com>
8169
8170 * config/cris/cris.h (TARGET_VERSION): Remove local version number.
8171
91da27c5
JH
8172Thu Apr 18 17:14:08 CEST 2002 Jan Hubicka <jh@suse.cz>
8173
8174 * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
8175 in last patch.
8176
a32db605
JJ
81772002-04-18 Jakub Jelinek <jakub@redhat.com>
8178
8179 * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
8180 instead of unsigned_type.
8181
5a28d8cc
JH
8182Thu Apr 18 15:49:12 CEST 2002 Jan Hubicka <jh@suse.cz>
8183
8184 * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
8185 * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
8186 later.
8187
3d980b9f
BS
81882002-04-18 Bernd Schmidt <bernds@redhat.com>
8189
8190 * attribs.c (vector_type_node_list): New static variable.
8191 (handle_vector_size_attribute): Use it to avoid generating a
8192 new type node each time we are called.
8193
2e676d78
BS
8194 * combine.c (subst): Avoid trying to make a vector mode subreg of
8195 an integer constant.
8196 (gen_lowpart_for_combine): Likewise.
46468cd9 8197
58c2956c
RS
81982002-04-18 Roger Sayle <roger@eyesopen.com>
8199 Jakub Jelinek <jakub@redhat.com>
8200
8201 * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
8202 for integer constant c (if x has unsigned type or sign bit is not
8203 set in c). This folds the zero/sign extension into the bit-wise and
8204 operation.
8205
692efa8e
JJ
82062002-04-18 Jakub Jelinek <jakub@redhat.com>
8207
8208 PR middle-end/6205
8209 * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
8210 otherwise xorps.
8211
1372d4ce
NY
82122002-04-17 NIIBE Yutaka <gniibe@m17n.org>
8213
8214 * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
8215
169ce44d
NC
82162002-04-17 Nick Clifton <nickc@cambridge.redhat.com>
8217
8218 * gcc.c (read_specs): Detect and fail if an attempt is made to
8219 rename a spec string to an already existing string.
8220
b30d2115
UW
82212002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
8222
8223 * config/s390/s390.c (legitimize_pic_address): Do not generate
8224 illegal address constant without CONST.
8225
d6964c30
KG
82262002-04-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8227
8228 * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
8229 * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
8230
7c82a1ed
UW
82312002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
8232
8233 PR optimization/6305
8234 * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
8235 to make sure previous reloads are taken into account. Generate
8236 better code if one operand is an in-range immediate constant.
8237
58db9d1a
AH
82382002-04-16 Andrew Haley <aph@cambridge.redhat.com>
8239
8240 * doc/install.texi (Building): libgcj requires GNU make.
8241
2a732575
JJ
82422002-04-17 Jakub Jelinek <jakub@redhat.com>
8243
8244 PR bootstrap/6315
8245 * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
8246 even if hard quad and register is not floating.
8247 (movtf reg<-mem split): Disallow splitting if hard quad and
8248 register is floating.
8249 (movtf mem<-reg split): Likewise.
8250 * config/sparc/sparc.c (fp_register_operand): New predicate.
8251 * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
8252
75a65e46
ZW
82532002-04-17 Zack Weinberg <zack@codesourcery.com>
8254
8255 * Makefile.in (PROTO_OBJS): Add cppdefault.o.
8256 (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
8257 (unprotoize.o): Ditto. Build from protoize.c. Define
8258 UNPROTOIZE on command line.
8259 * protoize.c: Include cppdefault.h. Delete include_defaults.
8260 (in_system_include_dir): Use cpp_include_defaults (defined in
8261 cppdefault.o).
8262 * unprotoize.c: Delete file.
8263
650f0e97
AH
82642002-04-17 Aldy Hernandez <aldyh@redhat.com>
8265
46468cd9
ZW
8266 * config/rs6000/altivec.h (vec_ld): Add array variants.
8267 (vec_lde): Same.
8268 (vec_ldl): Same.
650f0e97 8269
71a0ab0c 82702002-04-17 Alan Matsuoka <alanm@redhat.com>
46468cd9 8271 Aldy Hernandez <aldyh@redhat.com>
71a0ab0c 8272
46468cd9
ZW
8273 * config/rs6000/altivec.h: Define __ALTIVEC__.
8274 (bool): New.
8275 (__pixel): New.
8276 (pixel): New.
8277 (vec_cfux): New.
8278 (vec_vmaddfp): New.
8279 (vec_vsldoi): New.
8280 Add parentheses to all macro arguments.
71a0ab0c 8281
ff2c46ac
RH
82822002-04-16 Richard Henderson <rth@redhat.com>
8283
8284 PR c++/6320
8285 * except.c (remove_eh_handler): Insert inner regions at beginning
8286 of sibling chain. Refactor expressions.
8287
f1ba94dd
RH
82882002-04-16 Richard Henderson <rth@redhat.com>
8289
f0871dfe
RH
8290 * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
8291 * config/sparc/sol2-gas-bi.h: New file.
8292 * config.gcc (sparc*-solaris): Add it as needed.
8293 * configure.in (AS_SPARC64_FLAG): Remove check.
8294 * config.in, configure: Regenerate.
8295
8296 * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
8297
82982002-04-16 Richard Henderson <rth@redhat.com>
8299
8300 * config/mips/mips.c (override_options): Don't override N32 for
8301 a 64-bit ISA.
409d3c60 8302
f1ba94dd
RH
8303 PR 6202
8304 * config/mips/mips.md (can_delay): Split out of existing define_delays.
8305 (HILO_delay): Set can_delay false.
8306
178c3eff
DJ
83072002-04-16 Dale Johannesen <dalej@apple.com>
8308
8309 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
8310 instruction addresses.
8311 (rs6000_output_function_epilogue): Likewise.
8312
7d6f6369
PC
83132002-04-16 Paolo Carlini <pcarlini@unitus.it>
8314
8315 * c-parse.in (poplevel, compstmt_start,
8316 compstmt_primary_start): Add ending ';', in accordance
8317 with POSIX.
8318
8947df0c
RH
83192002-04-16 Richard Henderson <rth@redhat.com>
8320
8321 * config.gcc (sparcv9-solaris): Configure for 64-bit default.
8322 Adjust tm_file order to get TARGET_DEFAULT set properly.
8323 (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
8324 * doc/install.texi (sparc-solaris): Update.
8325
3148ad6d
DJ
83262002-04-16 Dale Johannesen <dalej@apple.com>
8327
8328 * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
8329 comparison operands do not match each other or if modes of
8330 conditions do not match result.
8331
014cb9b6 83322002-04-16 Hartmut Penner <hpenner@de.ibm.com>
562a69be 8333
014cb9b6
HP
8334 PR target/6305
8335 * config/s390/s390.md (mulsidi3): Set both subregs of the
46468cd9 8336 multiword register.
562a69be 8337
014cb9b6 83382002-04-16 Aldy Hernandez <aldyh@redhat.com>
4c8c0dec 8339
8947df0c 8340 * config/rs6000/altivec.h (vec_addc): Type check.
4c8c0dec 8341
a9772b60
JJ
83422002-04-16 Jakub Jelinek <jakub@redhat.com>
8343
8344 PR middle-end/6279
8345 * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
8346
8347 * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
8348
861829ed
RH
83492002-04-15 Richard Henderson <rth@redhat.com>
8350
8351 * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
8352 call_really_used_regs too.
8353
bcf2fe9c
RH
83542002-04-15 Richard Henderson <rth@redhat.com>
8355
8356 * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
8357
629111c7
DM
83582002-04-15 David S. Miller <davem@redhat.com>
8359
8360 * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
8361 as being CLOBBERed.
8362
98ef3137
JJ
83632002-04-16 Jakub Jelinek <jakub@redhat.com>
8364
8365 PR c/6290
8366 * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
8367 CONST_VECTOR is { 0, ... 0 }.
8368
0aa911c5
LR
83692002-04-15 Loren J. Rittle <ljrittle@acm.org>
8370
8371 * doc/install.texi (Installing GCC: Configuration): Clarify
8372 the only supported ways to configure gcc.
8373
83248d49 83742002-04-15 Roland McGrath <roland@frob.com>
46468cd9 8375
83248d49
RM
8376 * config.gcc (alpha*-*-gnu*): New target configuration.
8377 * config/alpha/gnu.h: New file for it.
8378 * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
8379
b2123dc0
MM
83802002-04-16 Mark Mitchell <mark@codesourcery.com>
8381
8382 * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
8383 * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
8384 * tree.h (expand_start_stmt_expr): Update prototype.
8385 * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
8386 * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
8387 on the STMT_EXPR created for the inline function.
46468cd9 8388
8fe2d853
RH
83892002-04-15 Richard Henderson <rth@redhat.com>
8390
8391 * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
8392 config/i386/linux-aout.h, config/i386/linux-oldld.h,
8393 config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
8394 config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
8395 config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
8396 config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
8397 config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
8398 Define __gnu_linux__, not gnu_linux.
8399 * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
8400
07cdae91
MM
84012002-04-15 Mark Mitchell <mark@codesourcery.com>
8402
8403 Remove Chill front end.
8404 * gcc.c (default_compilers): Remove Chill entries.
8405 * ch: Remove directory.
8406 * doc/frontends.texi: Remove information about Chill.
8407 * doc/sourcebuild.texi: Likewise.
8408 * doc/standards.texi: Likewise.
8409
41823c5e
DR
84102002-04-15 Douglas B Rupp <rupp@gnat.com>
8411
8412 * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
8413 (LONGLONG_STANDALONE): Define.
8414
eb29ddb6
DM
84152002-04-15 David S. Miller <davem@redhat.com>
8416
8417 * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
8418 Call emit_library_call with LCT_NORMAL.
8419 (sparc_initialize_trampoline): Use LCT_foo instead of
8420 magic constant in emit_library_call invocations.
8421 (sparc64_initialize_trampoline): Likewise.
8422 (sparc_profile_hook): Likewise.
8423 * config/sparc/sparc.md: Likewise.
8424
8425 * config/sparc/sparc.c (sparc_extra_constraint_check):
8426 Fix type of argument 'c'.
8427 * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
8428 Likewise.
8429
bd6bec6b
GDR
84302002-04-15 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
8431
8432 * diagnostic.h (output_buffer_state): Redefine.
8433 (output_format_decoder): New macro.
8434 (output_prefixing_rule): Likewise.
8435 (output_line_cutoff): Likewise.
8436 (diagnostic_format_decoder): Adjust.
8437 (diagnostic_prefixing_rule): Likewise.
8438 (diagnostic_line_cutoff): Likewise.
8439 (diagnostic_state): Likewise.
8440 (diagnostic_kind_count): Likewise.
8441 (diagnostic_buffer): Now a macro.
8442
8443 * diagnostic.c (diagnostic_buffer): Remove definition.
8444 (output_is_line_wrapping): Adjust.
8445 (set_real_maximum_length): Likewise.
8446 (output_set_maximum_length): Likewise.
8447 (init_output_buffer): Likewise.
8448 (lhd_print_error_function): Likewise.
8449 (output_do_verbatim): Likewise.
8450
ebef4e8c
NB
84512002-04-14 Neil Booth <neil@daikokuya.demon.co.uk>
8452
8453 * cpperror.c (print_location): Don't print include chain
8454 if line == 0.
8455 (cpp_begin_message): Update to use DL_ macros.
8456 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
8457 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
8458 cpp_notice, cpp_notice_from_errno): Remove.
8459 (cpp_error, cpp_error_with_line): Update to take a diagnostic
8460 level.
8461 (cpp_errno): New.
8462 * cppexp.c (CPP_ICE): Remove.
8463 (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
8464 lex, integer_overflow, _cpp_parse_expr): Update.
8465 * cppfiles.c (read_include_file, find_include_file,
8466 handle_missing_header, _cpp_read_file, remap_filename): Update.
8467 * cpphash.h (enum error_type): Remove.
8468 (_cpp_begin_message): Update.
8469 * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
8470 cpp_handle_option, cpp_post_options): Update.
8471 * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
8472 skip_whitespace, parse_identifier, parse_slow, parse_string,
8473 _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
8474 cpp_interpret_charconst): Update.
8475 * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
8476 lex_macro_node, do_undef, glue_header_name, parse_include,
8477 do_include_common, read_flag, do_line, do_linemarker, do_ident,
8478 cpp_register_pragma, do_pragma_once, do_pragma_system_header,
8479 do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
8480 do_elif, do_endif, parse_answer, parse_assertion, do_assert,
8481 _cpp_pop_buffer, do_diagnostic): Update.
8482 * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
8483 DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
8484 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
8485 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
8486 cpp_notice, cpp_notice_from_errno): Remove.
8487 (cpp_error, cpp_error_with_line): Update to take a diagnostic
8488 level.
8489 (cpp_errno): New.
8490 * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
8491 collect_args, enter_macro_context, save_parameter, parse_params,
8492 _cpp_create_definition, check_trad_stringification,
8493 cpp_macro_definition): Update.
8494 * cppmain.c (cpp_preprocess_file): Update.
8495 * fix-header.c (read_scan_file): Update.
8496
c19a3859
AS
84972002-04-14 Andreas Schwab <schwab@suse.de>
8498
8499 * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
8500
10fdbed6
JD
85012002-04-14 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
8502
8503 * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
8504
77660a9a
MM
85052002-04-13 Mark Mitchell <mark@codesourcery.com>
8506
8507 * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
8508 not gnu_hurd.
8509
e0ff1ded
HPN
85102002-04-13 Hans-Peter Nilsson <hp@axis.com>
8511
8512 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
8513
2341c7ea
JS
85142002-04-13 Joel Sherrill <joel@OARcorp.com>
8515
8516 * config/sparc/t-elf: Enable v8 multilibs. Impacts
8517 sparc-elf and sparc-rtems targets.
8518
d29350c0
MM
85192002-04-13 Mark Mitchell <mark@codesourcery.com>
8520
8521 * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
8522 defined, and __gnu_hurd__ wherever __GNU__ is defined.
8523 * arm/linux-elf.h: Likewise.
8524 * cris/aout.h: Likewise.
8525 * cris/linux.h: Likewise.
8526 * i370/linux.h: Likewise.
8527 * i386/gnu.h: Likewise.
8528 * i386/linux-aout.h: Likewise.
8529 * i386/linux-oldld.h: Likewise.
8530 * i386/linux.h: Likewise.
8531 * i386/linux64.h: Likewise.
8532 * ia64/linux.h: Likewise.
8533 * m68k/linux-aout.h: Likewise.
8534 * m68k/linux.h: Likewise.
8535 * mips/linux.h: Likewise.
8536 * pa/pa-linux.h: Likewise.
8537 * pj/linux.h: Likewise.
8538 * rs6000/sysv4.h: Likewise.
8539 * s390/linux.h: Likewise.
8540 * sh/linux.h: Likewise.
8541 * sparc/linux-aout.h: Likewise.
8542 * sparc/linux.h: Likewise.
8543 * sparc/linux64.h: Likewise.
8544 * xtensa/linux.h: Likewise.
8545
fc552851
RS
85462002-04-13 Richard Sandiford <rsandifo@redhat.com>
8547
8548 * stmt.c (check_unique_operand_names): Expect operand names to
8549 be strings rather than identifiers. Use simple_cst_equal to
8550 compare them.
8551 (resolve_operand_name_1): Make same identifier to string change here.
8552 * c-parse.in (asm_operand): Convert a named operand into a string.
8553 * cp/parse.y (asm_operand): Likewise.
8554
1d405c5e
AS
85552002-04-13 Andreas Schwab <schwab@suse.de>
8556
8557 * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
8558
c740732f
MM
85592002-04-12 Mark Mitchell <mark@codesourcery.com>
8560
8561 Revert these changes:
8562
8563 2002-04-06 Mark Mitchell <mark@codesourcery.com>
8564
8565 PR c++/5571
8566 * stor-layout.c (layout_decl): Reset the RTL for the decl.
8567
3fc602a0
RH
85682002-04-12 Richard Henderson <rth@redhat.com>
8569
8570 * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
8571 (sparc*-*-solaris): Clean up header files.
8572 * configure.in (AS_SPARC64_FLAG): Error out if can't find it
8573 and plan on generating 64-bit code.
8574 * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
8575 * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
8576 * config/sparc/sol2-sld-64.h: Rename ...
8577 * config/sparc/sol2-bi.h: ... here. Remove the bits that checked
8578 for AS_SPARC64_FLAG not defined.
8579 * config/sparc/sol2-gld-bi.h: New.
8580 * config/sparc/sol2-sld.h: Remove.
8581 * config/sparc/sol26-sld.h: New.
8582 * config/sparc/sol2.h: Tidy comments.
8583 * doc/install.texi: Document sparc-solaris configury changes.
8584
2f15e255
RH
85852002-04-12 Richard Henderson <rth@redhat.com>
8586
8587 * recog.c (offsettable_address_p): Match the logic in adjust_address.
8588
8589 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
8590 in 64-bit mode only. Use only for 32-bit or MEDLOW.
8591
cc8475cb
RO
85922002-04-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8593
8594 * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
8595
6f133a4a
JL
8596Fri Apr 12 15:42:59 2002 Jeffrey A Law (law@redhat.com)
8597
ef1b8858 8598 * pa.c (pa_can_combine_p): Call extract_insn before calling
6f133a4a
JL
8599 constrain_operands.
8600
1329e600
DR
86012002-04-12 Douglas B Rupp <rupp@gnat.com>
8602
8603 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
8604 (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
8605 (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
2d424b9f 8606 (CPP_PREDEFINES): Handle __declspec.
1329e600
DR
8607 * config/i386/t-interix (USER_H): Remove.
8608
0339d239
DD
86092002-04-12 DJ Delorie <dj@redhat.com>
8610
8611 * integrate.c (compare_blocks): Make comparisons safe for when
8612 sizeof(int) < sizeof(char *).
8613 (find_block): Likewise.
8614
cc4d5fec
JH
86152002-04-12 Jan Hubicka <jh@suse.cz>
8616 David Edelsohn <edelsohn@gnu.org>
8617
8618 * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
8619 registers.
8620 (symbol_ref_operand): New.
8621 * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
8622 * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
8623
93215a1b
AS
86242002-04-12 Andreas Schwab <schwab@suse.de>
8625
8626 * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
8627 * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
8628 overrides the definition in config/svr4.h.
46468cd9 8629
1d80248e
EN
86302002-04-12 Eric Norum <eric.norum@usask.ca>
8631
8632 * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
8633 config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
8634 config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
8635 config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
8636 config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
8637 config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
8638 config/v850/rtems.h (*-rtems*): Cleanup pass to move common
8639 definitions to config/rtems.h and make the targets more similar.
8640
fa1591cb
RK
8641Fri Apr 12 08:06:54 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8642
fa06ab5c
RK
8643 * expr.c (expand_assigment): Remove duplicate conversions #ifdef
8644 POINTERS_EXTEND_UNSIGNED.
8645 (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
8646 (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
8647
fa1591cb
RK
8648 * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
8649 not specified.
8650
12e85a0e
R
8651Fri Apr 12 12:11:26 2002 J"orn Rennecke <joern.rennecke@superh.com>
8652
8653 * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
8654 depends on TARGET_SHMEDIA, not TARGET_SH5.
8655
1ab3e58a
HPN
86562002-04-12 Hans-Peter Nilsson <hp@bitrange.com>
8657
8658 * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
8659 For paradoxical (subreg VAR), replace VAR, don't try the subreg.
8660
18778292
R
8661Fri Apr 12 10:51:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
8662
8663 * sh.c (broken_move): Constant 0. / 1. load is OK if there is
8664 no r0 clobber.
8665
9002507c
AS
86662002-04-12 Andreas Schwab <schwab@suse.de>
8667
8668 * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
8669
9be40833
RH
86702002-04-12 Richard Henderson <rth@redhat.com>
8671
8672 PR bootstrap/4191
8673 * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
8674
8675 * flow.c (mark_used_reg): Manage reg_cond_dead properly for
8676 modes spanning multiple hard regs.
46468cd9 8677
9be40833
RH
8678 * recog.c (peephole2_optimize): Rebuild jump labels as needed.
8679
3d9268b6
JDA
86802002-04-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
8681
8682 * pa.c (pa_output_function_prologue): Don't accumulate the total
8683 number of code bytes when using TARGET_64BIT, or gas, SOM and not
8684 the portable runtime.
8685 (output_deferred_plabels): Handle 64bit plabels.
8686 (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
8687 generating pic code using the GAS assembler for object formats that
8688 are not SOM (ie., ELF32 and ELF64).
8689 (output_millicode_call): Check attribute type if attribute length is 28.
8690 Likewise use $PIC_pcrel$0. Only call get_attr_length and
8691 dbr_sequence_length once.
8692 (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
8693 dbr_sequence_length once.
8694 * pa.h (TARGET_SOM): Define if not defined.
8695 * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
8696 with GAS and not SOM.
8697 (jump, call_internal_reg, call_value_internal_reg): Likewise.
8698 * som.h (OBJ_SOM): Rename to TARGET_SOM. Undefine before defining.
8699
d360fd18
DB
87002002-04-11 David O'Brien <obrien@FreeBSD.org>
8701
8702 * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
8703 (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
8704 (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
8705 DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
8706 elfos.h and dbxelf.h values are fine now.
8707 * config/i386/freebsd.h, config/alpha/freebsd.h
8708 (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
8709
5b8fcab6
DB
87102002-04-11 David O'Brien <obrien@FreeBSD.org>
8711
8712 * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
8713 or set Acpu or Amachine. Reformat.
8714 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
8715 define.
8716 (LINK_SPEC): Do not need to undef.
8717 * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
8718 * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
8719 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
8720 define.
8721 * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
8722 (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
8723 (LINK_SPEC): Do not need to undef.
8724 (DONT_USE_BUILTIN_SETJMP): Do not define.
8725 * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
8726 (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine. Remove -Dia64.
8727 (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
8728 Remove trailing spaces.
8729 * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
8730 __ELF__, or set Acpu or Amachine. Reformat.
8731 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
8732 define.
8733
fee42cc1
DB
87342002-04-11 David O'Brien <obrien@FreeBSD.org>
8735
8736 * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
8737 all other *-*-freebsd* targets.
8738
77a403e4
RH
87392002-04-11 Richard Henderson <rth@redhat.com>
8740
8741 * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
8742
cf0005c6
DB
87432002-04-11 David O'Brien <obrien@FreeBSD.org>
8744
8745 * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
8746 Include {cpu}/{cpu}.h thru tm_file.
8747 (alpha*-*-linux*ecoff): Remove target.
8748 * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
8749 (LINK_SPEC): Remove, is not OS independent.
8750 * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
8751 (LINK_SPEC): Do not need to #undef any longer.
8752 * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
8753 any longer.
8754 * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
8755 __ELF__.
8756 (LINK_SPEC): Moved here from alpha/elf.h.
8757 * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
8758 SUB_CPP_PREDEFINES.
8759 * config/alpha/linux-ecoff.h: Remove.
8760 * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
8761 (CPP_SPEC): Define _POSIX_SOURCE as needed.
8762 (CPP_SUBTARGET_SPEC): Do not define.
8763 (LINK_SPEC): Do not need to #undef any longer.
8764 * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
8765 * config/alpha/vms.h: Likewise.
8766
9be40833 87672002-04-11 Richard Sandiford <rsandifo@redhat.com>
7825d1cf
RS
8768
8769 * doc/extend.texi: Remove old claim that typedefs cannot have
8770 an alignment attribute.
8771
010f87c4
JJ
87722002-04-11 Jakub Jelinek <jakub@redhat.com>
8773
8774 PR optimization/6177
8775 * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
8776 bitpos is 0 and bitsize CONCAT size.
8777
578fc63d
JJ
87782002-04-11 Jakub Jelinek <jakub@redhat.com>
8779
8780 PR c/6223
8781 * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
8782
bf9b85ce
DB
87832002-04-10 David O'Brien <obrien@FreeBSD.org>
8784
8785 * config/alpha/freebsd.h: Minor reformatting.
8786 (CPP_SPEC): Define ELF and add cpp_subtarget.
8787 (ASM_SPEC): No longer needed.
8788
7425707d
RH
87892002-04-11 Richard Henderson <rth@redhat.com>
8790
8791 * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
8792 (movdi_insn_sp32_v9): Likewise. Only allow stx with aligned memory.
8793 (dimode mem/zero splitter): New.
8794
1a05e874
HPN
87952002-04-11 Hans-Peter Nilsson <hp@axis.com>
8796
8797 * config/cris/cris.c (cris_override_options): Tweak error message
8798 for PIC not implemented.
8799
8800 * config/cris/cris.h: Tweak comments related to parameter-passing.
8801
8802 * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
8803
6f3d0447
RH
88042002-04-10 Richard Henderson <rth@redhat.com>
8805
8806 * except.c (add_ehl_entry): Allow duplicates after landing pad
8807 creation.
8808
174bf2b1
DE
88092002-04-10 David Edelsohn <edelsohn@gnu.org>
8810
8811 * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
8812
03f10472
TM
88132002-04-10 Toon Moene <toon@moene.indiv.nluug.nl>
8814
8815 * c-decl.c (c_init_decl_processing): Move generation of
8816 decls for g77_integer_type_node and friends from here ...
8817 * c-common.c (c_common_nodes_and_builtins): ... to here.
8818
2f460a0a
UW
88192002-04-10 Ulrich Weigand <uweigand@de.ibm.com>
8820
8821 * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
8822 is only used as frame pointer when frame_pointer_needed is true.
8823
0be5cf85
RE
88242002-04-10 Richard Earnshaw <rearnsha@arm.com>
8825
8826 PR target/817
8827 * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
8828 for the fact that the pool entry uses two words.
8829 (movdf_hard_insn): Similarly. Also, ADR instruction can span
8830 1k bytes.
8831 (movdf_soft_insn): Similarly.
8832 (movxf_hard_insn): Adjust neg_pool_range attribute to allow
8833 for the fact that the pool entry uses three words.
8834
bf6d4777
RS
88352002-04-10 Richard Sandiford <rsandifo@redhat.com>
8836
8837 * config/mips/mips.c (mips_va_arg): When using the struct version
8838 of the EABI va_list, allow arguments in the register save area to
8839 take up less room than a stack argument.
8840
c2e9dc85
RH
88412002-04-10 Richard Henderson <rth@redhat.com>
8842
8843 * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
8844 if EXPAND_INITIALIZER.
8845
bc8e8e97
RH
88462002-04-09 Richard Henderson <rth@redhat.com>
8847
8848 * config/alpha/alpha.md (movdi_er_maybe_g): New.
8849 * config/alpha/alpha.c (alpha_expand_mov): Use it.
8850
a6a063b8
AM
88512002-04-10 Alan Modra <amodra@bigpond.net.au>
8852
8853 PR optimization/6233
8854 * rtlanal.c (pure_call_p): New function.
8855 * rtl.h (pure_call_p): Declare.
8856 * loop.c (prescan_loop): Use it to set has_nonconst_call.
8857 * gcse.c (store_killed_in_insn): Use pure_call_p here too.
8858
7b2e1077
EC
88592002-04-09 Eric Christopher <echristo@redhat.com>
8860
8861 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
8862 information to .comm directive.
8863
d8a50944
RH
88642002-04-09 Richard Henderson <rth@redhat.com>
8865
8866 PR c/5078
8867 * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
8868
6a58eee9
RH
88692002-04-09 Richard Henderson <rth@redhat.com>
8870
8871 * basic-block.h (flow_delete_block_noexpunge): Declare.
8872 (expunge_block_nocompact): Declare.
8873 * cfg.c (expunge_block_nocompact): Split out from ...
8874 (expunge_block): ... here.
8875 * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
8876 (flow_delete_block_noexpunge): Split out from ...
8877 (flow_delete_block): ... here.
8878 * cfgcleanup.c (delete_unreachable_blocks): Compact while
8879 removing dead blocks.
8880 * except.c (exception_handler_labels): Remove.
8881 (exception_handler_label_map): New.
8882 (struct eh_region): Add aka member.
8883 (mark_ehl_map_entry, mark_ehl_map, free_region): New.
8884 (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
8885 (for_each_eh_label, for_each_eh_label_1): New.
8886 (init_eh): Register exception_handler_label_map.
8887 (free_eh_status): Use free_region.
8888 (find_exception_handler_labels): Use the map, not the list.
8889 (remove_exception_handler_label): Likewise.
8890 (maybe_remove_eh_handler): Likewise.
8891 (remove_eh_handler): Use the region aka bitmap.
8892 * except.h (exception_handler_labels): Remove.
8893 (for_each_eh_label): Declare.
8894 * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
8895 * loop.c (invalidate_loops_containing_label): New.
8896 (find_and_verify_loops): Use it. Use for_each_eh_label.
8897 * sched-rgn.c (is_cfg_nonregular): Use
8898 current_function_has_exception_handlers.
8899
b47374fa
RH
89002002-04-09 Richard Henderson <rth@redhat.com>
8901
8902 * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
8903 sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
8904 Do not return changed status.
8905 (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
8906 sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
8907 New functions that do return changed status.
8908 * sbitmap.h: Update decls.
8909 * gcse.c, lcm.c: Use _cg functions as needed.
8910
1951818c
R
8911Tue Apr 9 19:15:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
8912
8913 * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
8914 (sh64-*-elf*, sh-*-rtemself*): Likewise.
8915 * config/sh/embed_bb.c: New file.
8916 * config/sh/embed-elf.h: New file.
8917 * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
8918 if -m[12345]* option is given. Don't use subtarget_cpp_ptr_spec.
8919 (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
8920 __PTRDIFF_TYPE__ .
8921 (SUBTARGET_CPP_PTR_SPEC): Don't define.
8922 (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
8923 Add subtarget_asm_endian_spec.
8924 (ASM_SPEC): Use subtarget_asm_endian_spec.
8925 (SUBTARGET_ASM_ENDIAN_SPEC): Define.
8926 (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
8927 (WCHAR_UNSIGNED): Define.
8928 (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
8929 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
8930 (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
8931 Fix value.
8932 * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
8933 (sh_adjust_cost): Likewise.
8934 sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
8935 __PTRDIFF_TYPE__ .
8936 (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
8937 (WCHAR_TYPE_SIZE): Likewise.
8938 (ASM_SPEC): Use subtarget_asm_endian_spec.
8939 (SH_ELF_WCHAR_TYPE): #undef/ #define.
8940 (MAX_WCHAR_TYPE_SIZE): Don't #undef.
8941 * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
8942 (MAX_WCHAR_TYPE_SIZE): Don't #define .
8943 (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
8944 (USER_LABEL_PREFIX): Don't #undef /#define .
8945 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
8946 * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
8947 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
8948 (ASM_SPEC): Likewise.
8949 (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
8950 (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
8951 * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
8952 (LIB2FUNCS_EXTRA): Define.
8953 * t-sh64 (LIB2FUNCS_EXTRA): Define.
8954 * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
8955 (LIB1ASMFUNCS_CACHE): Define.
8956 (LIB2FUNCS_EXTRA): Redefine empty.
8957
34295799
RH
89582002-04-08 Richard Henderson <rth@redhat.com>
8959
8960 * reorg.c (get_branch_condition): Use reversed_comparison_code.
8961
e8766a39
SC
89622002-04-09 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8963
8964 * config/m68hc11/larith.asm (__map_data_section): Fix condition
8965 and optimize for size.
8966 (__do_global_ctors): Fix pointer comparison.
8967 (__do_global_dtors): Likewise.
8968
f451b552
DM
89692002-04-09 David S. Miller <davem@redhat.com>
8970
8971 * config/sparc/sparc.c (sparc_extra_constraint_check): New
8972 function, implementing EXTRA_CONSTRAINTS. For memory constraints,
8973 allow reloading pseudos.
8974 * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
8975 * config/sparc/sparc-protos.h: Declare it.
8976
8977 * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
8978 unsigned comparison warning.
8979 (output_restore_regs): Mark leaf_function as unused.
8980
1ce7f3c2
RK
8981Tue Apr 9 09:35:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8982
8983 * expr.c (is_aligning_offset): New function.
8984 (expand_expr, case COMPONENT_EXPR): Call it.
8985
7a31a340
DM
89862002-04-08 David S. Miller <davem@redhat.com>
8987
8988 PR target/6082
8989 * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
8990
8991 Make init_priority work on Sparc when using GNU ld.
8992 * config/sparc/linux.h, config/sparc/linux64.h,
8993 config/sparc/netbsd-elf.h, config/sparc/freebsd.h
8994 (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
8995 * config/sparc/sol2-gld.h: New file to do the same.
8996 * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
8997 sparc/sol2-gld.h to tm_file.
8998
8999 PR optimization/4328
9000 * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
9001 * doc/md.texi: Document it.
9002 * config/sparc/sparc.md (movdi_insn_sp64_novis,
9003 movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
9004 movdf_insn_v9only_vis, movdf_insn_sp64_novis,
9005 movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
9006 * config/sparc/sparc.c (mem_min_alignment): Fix comment.
9007
11579f33
AJ
90082002-04-08 Andreas Jaeger <aj@suse.de>
9009
9010 * stmt.c (expand_asm_operands): Revert last patch from Richard
9011 Henderson.
9012
b57215d9
GP
90132002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
9014
9015 * doc/contrib.texi (Contributors): Add John David Anglin and Loren
9016 J. Rittle (the latter also to Testers). Update David O'Brien's entry.
9017
90182002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
9019
9020 * doc/contrib.texi (Contributors): Add David O'Brien.
9021
534d0cc0
AM
90222002-04-08 Alan Modra <amodra@bigpond.net.au>
9023
9024 * configure.in (auto-build.h): Use target_alias and build_alias
9025 when running configure.
9026 (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
9027 (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
9028 * configure: Regenerate.
9029
19fe522a
DM
90302002-04-07 David S. Miller <davem@redhat.com>
9031
9032 * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
9033
bf2d0b8e
JDA
90342002-04-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
9035
9036 PR 5933
9037 * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
9038 generating 32-bit pic code.
9039
477cdac7
JT
90402002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
9041
9042 * cppinit.c (cpp_create_reader): Initialize
9043 discard_comments_in_macro_exp.
9044 (COMMAND_LINE_OPTIONS): Add "-CC" option.
9045 (cpp_handle_option): Handle "-CC" option.
9046 * cpplex.c (save_comment): If saving a C++ comment in
9047 a directive, convert it to a C comment.
9048 (_cpp_lex_direct): Pass second comment start character to
9049 save_comment to indicate comment type.
9050 * cpplib.c (_cpp_handle_directive): If processing
9051 a "#define" directive and discard_comments_in_macro_exp
9052 is false, re-enable saving of comments.
9053 (lex_macro_node): If discard_comments_in_macro_exp is false,
9054 discard any comments before the macro identifier.
9055 * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
9056 member.
9057 * cppmacro.c (cpp_get_token): If expanding a macro while
9058 processing a directive, discard any comments we might encounter.
9059 (parse_params): If discard_comments_in_macro_exp is false,
9060 ignore comments in the macro parameter list.
9061 * gcc.c (cpp_unique_options): Add "-CC" option.
9062 (option_map): Map "--comments-in-macros" to "-CC".
9063 * doc/cppopts.texi: Document "-CC" option.
9064 * f/lang-specs.h: Add "-CC" option.
9065 * testsuite/gcc.dg/cpp/maccom1.c: New test.
9066 * testsuite/gcc.dg/cpp/maccom2.c: New test.
9067 * testsuite/gcc.dg/cpp/maccom3.c: New test.
9068 * testsuite/gcc.dg/cpp/maccom4.c: New test.
9069 * testsuite/gcc.dg/cpp/maccom5.c: New test.
9070 * testsuite/gcc.dg/cpp/maccom6.c: New test.
9071
f1526122
JDA
90722002-04-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
9073
9074 PR middle-end/6180
9075 * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
9076
b1896e61
MM
90772002-04-06 Mark Mitchell <mark@codesourcery.com>
9078
0154eaa8
MM
9079 PR c++/5571
9080 * stor-layout.c (layout_decl): Reset the RTL for the decl.
9081
b1896e61
MM
9082 PR opt/5120
9083 * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
9084 RTX_UNCHANGING_P for the functions arguments when a tail call
9085 is made.
9086
b0148884
JM
90872002-04-06 Jason Merrill <jason@redhat.com>
9088
9089 * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
9090 (parse_options_and_default_flags): Set them appropriately.
9091 * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
9092
392fc5b0
HPN
90932002-04-06 Hans-Peter Nilsson <hp@bitrange.com>
9094
9095 * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
9096 here.
9097
9098 * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
9099 semicolon.
9100
9101 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
9102 types come in by-reference. Fix typo in comment.
9103
2d69e3cb
DM
91042002-04-05 David S. Miller <davem@redhat.com>
9105
9106 * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
9107 * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
9108 sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
9109 {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
9110
91112002-04-05 David S. Miller <davem@redhat.com>
9112
9113 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
9114 are not going to emit return instructions, emit at least a nop
9115 for the sake of sane backtraces.
9116
5f9fb0e3
RH
91172002-04-05 Richard Henderson <rth@redhat.com>
9118
9119 * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
9120
49f37a0d
JJ
91212002-04-05 Jakub Jeilnek <jakub@redhat.com>
9122
9123 * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
9124
974a3101
AO
91252002-04-05 Alexandre Oliva <aoliva@redhat.com>
9126
9127 * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
9128 ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
9129 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
9130
2e04a694
AS
91312002-04-05 Andreas Schwab <schwab@suse.de>
9132
a40179bd 9133 * c-convert.c: Include c-common.h.
2e04a694
AS
9134 * Makefile.in (c-convert.o): Updated.
9135
1f785b7c
JJ
91362002-04-05 Jakub Jelinek <jakub@redhat.com>
9137
9138 * mklibgcc.in: Use separate libgcc.map for each multilib.
9139 * Makefile.in (distclean): Don't remove libgcc.map here.
9140
4d2fb38b
JJ
91412002-04-05 Jakub Jelinek <jakub@redhat.com>
9142
9143 * Makefile.in (s-mlib): Handle --disable-multilib by separate
9144 genmultilib invocation.
9145
bb63e5a0
RS
91462002-04-04 Richard Sandiford <rsandifo@redhat.com>
9147
9148 * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
9149 to avoid clash with Irix header file sys/ucontext.h. Rename gp_regs
9150 to num_gprs for symmetry.
9151 * config/mips/mips.c: Adjust accordingly.
9152
8ab80eaa
NB
91532002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
9154
9155 * c-common.c (truthvalue_conversion): Rename, update.
9156 * c-common.h (c_common_truthvalue_conversion): New.
9157 * c-convert.c (convert): Update.
9158 * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
9159 * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
9160 * c-typeck.c (build_binary_op, build_unary_op,
9161 build_conditional_expr): Update.
9162 * fold-const.c (constant_boolean_node, fold): Use langhook.
9163 * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
9164 * langhooks.h (struct lang_hooks): New hook.
9165 * stmt.c (expand_decl_cleanup): Use langhook.
9166 * tree.h (truthvalue_conversion): Remove.
9167objc:
9168 * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
9169
a2e9374a
AM
91702002-04-05 Alan Modra <amodra@bigpond.net.au>
9171
9172 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
9173 Add rules to make null object file.
9174
64d08263
JB
91752002-04-04 Jim Blandy <jimb@redhat.com>
9176
9177 * cppmacro.c (cpp_macro_definition): Do not emit spaces after
9178 macro formal parameter names.
9179
aa7634dd
DM
91802002-04-04 David S. Miller <davem@redhat.com>
9181
9182 * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
9183
ecc114f7
RH
91842002-04-04 Richard Henderson <rth@redhat.com>
9185
9186 PR middle-end/5099
9187 * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
9188 Support copies into and out of memory. Don't accept allows_reg
9189 and allows_mem as gospel.
9190
c4484b8f
RH
91912002-04-04 Richard Henderson <rth@redhat.com>
9192
9193 PR opt/6165
9194 * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
9195 (write_dependence_p): Likewise.
9196
39002160
RH
91972002-04-04 Richard Henderson <rth@redhat.com>
9198
9199 * predict.c (estimate_bb_frequencies): Do frequency calculation
9200 with a volatile temporary.
9201
f53ebe71
UW
92022002-04-04 Ulrich Weigand <uweigand@de.ibm.com>
9203
9204 * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
9205
15e0ecab
JJ
92062002-04-04 Jakub Jelinek <jakub@redhat.com>
9207
9208 PR c++/6119
9209 * final.c (final_start_function): Don't bump profile_label_no here...
9210 (final_end_function): ...but here.
9211
ffd386b0
JJ
92122002-04-04 Jakub Jelinek <jakub@redhat.com>
9213
9214 * config/sparc/sparc.md (pic): New attribute.
9215 (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
9216 into stack slots.
9217 (split after do_builtin_setjmp_setup): New.
9218
8b156b3e
JJ
92192002-04-04 Jakub Jelinek <jakub@redhat.com>
9220
9221 PR fortran/6106
9222 * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
9223 change.
9224
014c0998
JJ
92252002-04-04 Jakub Jelinek <jakub@redhat.com>
9226
9227 * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
9228 UNITS_PER_WORD for zero sized aggregates.
9229
4d8611d9
DM
92302002-04-03 David S. Miller <davem@redhat.com>
9231
9232 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
9233 one-character spec for this, just use %(link_gcc_c_sequence).
9234
b03ad99d
DM
92352002-04-03 David S. Miller <davem@redhat.com>
9236
9237 * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
9238 handling.
9239
823fbbce
JDA
92402002-04-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
9241
9242 * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
9243 (DWARF_FRAME_RETURN_COLUMN): Move.
9244 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
9245 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
9246 * pa.c (except.h, predict.h): Include.
9247 (FRP): Delete.
9248 (store_reg_modify, set_reg_plus_d): Revise prototypes.
9249 (output_ascii): Add cast.
9250 (store_reg_modify): Revise to add frame notes.
9251 (set_reg_plus_d): Likewise.
9252 (compute_frame_size): Include space for eh data registers in frame if
9253 the current function calls eh_return.
9254 (hppa_expand_prologue): Ensure register %r2 is saved if the current
9255 function calls eh_return. Save eh data registers if the current
9256 function calls eh_return. Fix code to add frame notes. Emit
9257 blockage to prevent insns with frame notes being scheduled in the
9258 delay slot of calls.
9259 (hppa_expand_epilogue): Restore eh data registers and do final stack
9260 adjustment if the current function calls eh_return. Don't add frame
9261 notes.
9262 (output_call): Revise for change in length of call insn. Don't do
9263 return pointer adjustment for an unconditional jump in the delay slot
9264 of a call when using frame notes.
9265 * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
9266 (EH_RETURN_HANDLER_RTX): Use saved value on stack.
9267 (ARG_POINTER_CFA_OFFSET): Define.
9268 * pa.md (return_external_pic): New pattern.
9269 (prologue): Correct formatting. Use return_external_pic if current
9270 function calls eh_return.
9271 (call_internal_symref, call_value_internal_symref,
9272 sibcall_internal_symref, sibcall_value_internal_symref): Change default
9273 lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
9274 respectively.
9275 (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
9276
9277 * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
9278 list of targets to check using "nop" insn.
9279 * configure: Rebuilt.
9280
4078e224
AM
92812002-04-04 Alan Modra <amodra@bigpond.net.au>
9282
9283 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
9284
bbd7687d
DM
92852002-04-03 David S. Miller <davem@redhat.com>
9286
9287 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
9288 library sequence passed to the linker.
9289 (LINK_COMMAND_SPEC): Use it.
9290 * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
9291 a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
9292 * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
9293
659e5a7a
JM
92942002-04-03 Jason Merrill <jason@redhat.com>
9295
9296 * except.c (struct eh_status): Remove protect_list.
9297 (begin_protect_partials, end_protect_partials): Remove.
9298 (add_partial_entry): Remove.
9299 * except.h: Remove prototypes.
9300
9301 * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
9302 expand_decl_cleanup_eh.
9303
9304 PR c++/5636
9305 * tree.h (CLEANUP_EH_ONLY): New macro.
9306 * stmt.c (expand_decl_cleanup_eh): New fn.
9307 (expand_cleanups): Check CLEANUP_EH_ONLY.
9308 * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
9309 Use expand_decl_cleanup_eh.
9310 (expand_stmt): Adjust.
9311 * c-common.h: Adjust prototype.
9312
053d3344
HPN
93132002-04-04 Hans-Peter Nilsson <hp@axis.com>
9314
9315 * config/cris/cris.c (cris_target_asm_function_prologue): Cast
9316 uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
9317 (cris_target_asm_function_epilogue): Ditto.
9318 (cris_initial_frame_pointer_offset): Ditto.
9319 (cris_simple_epilogue): Ditto.
9320 (cris_expand_builtin_va_arg): Variable-size types come in
9321 by-reference.
9322
61ab5260
DM
93232002-04-03 David S. Miller <davem@redhat.com>
9324
9325 * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
9326 little-endian.
9327 (set_fast_math): Correct 'fsr' type.
9328
ef4f94ac
RH
93292002-04-03 Richard Henderson <rth@redhat.com>
9330
36c2272c 9331 PR opt/3569
ef4f94ac
RH
9332 * langhooks.h (lang_hooks.decls.warn_unused_global): New.
9333 * toplev.c (check_global_declarations): Use it.
9334 * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
9335 (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
9336 (LANG_HOOKS_DECLS): Add it.
9337 * langhooks.c (lhd_warn_unused_global_decl): New.
9338 * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
9339 * c-objc-common.c (c_warn_unused_global_decl): New.
9340 * c-tree.h (c_warn_unused_global_decl): Declare.
9341 * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
9342
599bba86
NB
93432002-04-03 Neil Booth <neil@daikokuya.demon.co.uk>
9344
9345 * langhooks-def.h (lhd_set_decl_assembler_name,
9346 LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
9347 (LANG_HOOKS_INITIALIZER): Update.
9348 * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
9349 * langhooks.h (struct lang_hooks): New hook.
9350 * tree.c (set_decl_assembler_name): Move to langhooks.c.
9351 (lang_set_decl_assembler_name): Remove.
9352 (init_obstacks): Don't set hook.
9353 (decl_assembler_name): New function.
9354 * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
9355 (decl_assembler_name): New.
9356 (lang_set_decl_assembler_name): Remove.
9357
cf7b8b0d
JJ
93582002-04-03 Jakub Jelinek <jakub@redhat.com>
9359
9360 * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
9361 works properly with .hidden symbols.
9362 * configure: Rebuilt.
9363 * config.in: Rebuilt.
9364 * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
9365 DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
9366 properly with .hidden symbols.
9367
faf6db38
JJ
93682002-04-03 Jakub Jelinek <jakub@redhat.com>
9369
9370 PR middle-end/6102
9371 * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
9372 USE argument.
9373
68c17f30
RH
93742002-04-03 Richard Henderson <rth@redhat.com>
9375
9376 PR opt/4120
9377 * sched-rgn.c (sets_likely_spilled): New.
9378 (sets_likely_spilled_1): New.
9379 (add_branch_dependences): Use it.
9380
6584b4aa
RH
93812002-04-02 Richard Henderson <rth@redhat.com>
9382
9383 PR opt/4311
9384 * loop.h (LOOP_FIRST_PASS): New.
9385 * loop.c (strength_reduce): Mind it when deciding to unroll.
9386 * toplev.c (rest_of_compilation): Set it.
9387
0acf409f
DM
93882002-04-02 David S. Miller <davem@redhat.com>
9389
9390 * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
9391 mems_ok_for_ldd_peep when the order of the loads being examined
9392 is reversed.
9393 * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
9394 existing comment to increase comprehension of this situation.
9395
85654444
ZW
93962002-04-02 Zack Weinberg <zack@codesourcery.com>
9397
9398 * config/sh/sh.md: Don't use union real_extract.
9399
543828ca
RH
94002002-04-02 Richard Henderson <rth@redhat.com>
9401
9402 * libgcc2.c (__bb_exit_func): Revert 03-31 change.
9403
39ed301b
DB
94042002-04-02 David O'Brien <obrien@FreeBSD.org>
9405
9406 * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
9407 i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
9408 i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
9409 i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
9410 i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
9411 i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
9412 i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
9413 i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
9414 i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
9415 i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
9416 i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
9417 i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
9418 i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
9419 i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
9420 Include as many configury headers via tm_file as possible. This
9421 includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
9422 * config/openbsd-oldgas.h: New file.
9423 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
9424 config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
9425 config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
9426 config/i386/i386-coff.h, config/i386/i386-interix.h,
9427 config/i386/iscdbx.h, config/i386/linux-aout.h,
9428 config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
9429 config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
9430 config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
9431 config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
9432 config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
9433 config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
9434 config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
9435 config/i386/vxi386.h: Do not directly include configury headers.
9436 * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
9437 Directly include configury headers that are no longer automatically
9438 included by the above headers.
9439 * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
9440 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
9441 config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
9442 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
9443 config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
9444 config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
9445 config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
9446 (TARGET_VERSION): Define.
9447 * config/i386/beos-elf.h, config/i386/freebsd.h,
9448 config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
9449 config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
9450 config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
9451 config/i386/sco5.h, config/i386/sysv4.h
9452 (TARGET_VERSION): Do not need to protect.
9453 * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
9454 * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
9455 config/i386/freebsd-aout.h, config/i386/i386-aout.h,
9456 config/i386/i386-interix.h, config/i386/linux-aout.h,
9457 config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
9458 config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
9459 (YES_UNDERSCORES): Do not define - not needed.
9460 * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
9461 ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
9462 USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
9463 * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
9464 (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
9465 USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
9466 * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
9467 * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
9468
9432c136
EB
94692002-04-02 Eric Botcazou <ebotcazou@multimania.com>
9470 Richard Henderson <rth@redhat.com>
9471
9472 PR c/5484
9473 * function.c (assign_temp): Accept either type or decl argument.
9474 Detect variables whose size is too large to fit into an integer.
9475 * stmt.c (expand_decl): Pass the decl, not the type.
9476
058b1275
DB
94772002-04-02 David O'Brien <obrien@FreeBSD.org>
9478
9479 * protoize.c: Match include directory usage with cppdefault.c.
9480
5add6d1a 94812002-04-03 Jeffrey A Law (law@redhat.com)
9be40833 9482 Hans-Peter Nilsson <hp@bitrange.com>
5add6d1a
JL
9483
9484 * combine.c (simplify_comparison): Avoid narrowing a comparison
9485 with a paradoxical subreg when doing so would drop signficant bits.
9486
1e533e4b
SE
94872002-04-02 Steve Ellcey <sje@cup.hp.com>
9488
9489 * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
9490 if POINTERS_EXTEND_UNSIGNED is defined.
9491
7a145e92
RH
94922002-04-02 Richard Henderson <rth@redhat.com>
9493
9494 PR opt/3967
9495 * local-alloc.c (contains_replace_regs): LO_SUM may contain
9496 replace regs.
9497
3a079822
RH
94982002-04-02 Richard Henderson <rth@redhat.com>
9499
9500 * doc/standards.texi: Document required freestanding libc entry points.
9501
c94ccb87
AM
95022002-04-02 Alan Modra <amodra@bigpond.net.au>
9503
9504 * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
9505 associated splitter. Remove MQ constraint.
9506 (ctrdi_internal4): Correct CCmode clobber.
9507
fe660a1a
JDA
95082002-04-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
9509
9510 * milli64.S ($$dyncall): New function.
9511 * t-linux (LIB1ASMFUNCS): Revise module list.
9512 (LIB1ASMSRC): Use pa/milli64.S.
9513
eadc0202
RH
95142002-04-02 Richard Henderson <rth@redhat.com>
9515
9516 * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
9517 rename solaris_sys_varargs_h.
9518
a1471322
RK
9519Tue Apr 2 06:47:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9520
9521 * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
9522 the same mode as its component.
9523
c8b94768
RH
95242002-04-02 Richard Henderson <rth@redhat.com>
9525
9526 PR opt/190
9527 * final.c (this_is_asm_operands): Export.
9528 * output.h (this_is_asm_operands): Declare.
9529 * config/i386/i386.c (print_operand): Error odd asm operands.
9530
161eb4fc
RH
95312002-04-02 Richard Henderson <rth@redhat.com>
9532
9533 PR opt/420
9534 * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
9535
b88a94c6
RH
95362002-04-01 Richard Henderson <rth@redhat.com>
9537
9538 PR target/1538
9539 * fixinc/inclhack.def (solaris_sys_varargs_h): New.
9540 * fixinc/fixincl.x: Rebuild.
9541
72e32876
RH
95422002-04-01 Richard Henderson <rth@redhat.com>
9543
9544 * config/ia64/unwind-ia64.c: Include ia64intrin.h.
9545 (atomic_alloc, atomic_free): New.
9546 (SIZE, MASK_FOR, PTR_IN): New.
9547 (emergency_reg_state, emergency_reg_state_free): New.
9548 (emergency_labeled_state, emergency_labeled_state_free): New.
9549 (reg_state_alloced, labeled_state_alloced): New.
9550 (alloc_reg_state, free_reg_state): New.
9551 (alloc_label_state, free_label_state, free_label_states): New.
9552 (push, pop, dup_state_stack, free_state_stack): Use them.
9553 (desc_label_state): Likewise.
9554 (uw_frame_state_for): Free label states and state stack.
9555 (uw_update_reg_address): Eliminate warnings.
9556
84d76074
VM
95572002-04-01 Vladimir Makarov <vmakarov@redhat.com>
9558
9559 * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
9be40833 9560 ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
84d76074 9561
dffd7eb6
NB
95622002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
9563
9564 * c-decl.c (grokdeclarator): Update.
9565 * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
9566 * c-tree.h (c_mark_addressable): New.
9567 * c-typeck.c (default_function_array_conversion, build_unary_op,
9568 build_array_ref, convert_for_assignment): Update.
9569 (mark_addressable): Rename.
9570 * calls.c (try_to_integrate, expand_call): Use langhook.
9571 * expr.c (expand_expr): Use langhook.
9572 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
9573 * langhooks.h (struct lang_hooks): New hook.
9574 * stmt.c (expand_asm_operands): Use langhook.
9575 * tree.h (mark_addressable): Remove.
9576objc:
9577 * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
9578
544ef5b5
BW
95792002-04-01 Bob Wilson <bob.wilson@acm.org>
9580
9be40833
RH
9581 * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
9582 in previous change.
544ef5b5 9583
bcf88f9b
BW
95842002-04-01 Bob Wilson <bob.wilson@acm.org>
9585
9586 * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
9587 for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
9588
ceef8ce4
NB
95892002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
9590
9591 * c-common.c (unsigned_conversion_warning, convert_and_check,
9592 unsigned_type, signed_type, shorten_compare,
9593 c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
9594 (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
9595 * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
9596 New.
9597 * c-decl.c (grokdeclarator): Update.
9598 * c-format.c (check_format_types): Update.
9599 * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
9600 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
9601 * c-typeck.c (build_binary_op, convert_for_assignment): Update.
9602 * convert.c (convert_to_integer): Use new hooks.
9603 * expmed.c (make_tree): Use new hooks.
9604 * expr.c (store_expr): Use new hooks.
9605 * fold-const.c (operand_equal_for_comparison_p, build_range_check,
9606 all_ones_mask_p, unextend, fold): Use new hooks.
9607 * langhooks.h (struct lang_hooks_for_types): New hooks.
9608 * tree.h (signed_or_unsigned_type, signed_type,
9609 unsigned_type): Remove.
9610objc:
9611 * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
9612 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
9613
1d9ad0e0
RH
96142002-03-31 Richard Henderson <rth@redhat.com>
9615
9616 * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
9617 (desc_frgr_mem): Fix reference to f16-f31.
9618
d544bc39
KG
96192002-03-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9620
9621 * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
9622 RTVEC_ELT): Const-ify.
d8750784
KG
9623 * varray.h (VARRAY_CHECK): Const-ify.
9624 * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
9625 ggc_mark_rtvec, ggc_mark): Const-ify.
d544bc39 9626
b18101c7
NB
96272002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
9628
9629 * diagnostic.c: Include langhooks-def.h.
9630 * Makefile.in (diagnostic.o): Update.
9631
48a7a235
NB
96322002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
9633
9634 * c-common.c (c_unsafe_for_reeval): Rename.
9635 * c-common.h (c_unsafe_for_reeval): Rename.
9636 * c-decl.c (finish_incomplete_decl): Rename.
9637 (c_init_decl_processing): Don't set langhook.
9638 * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
9639 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
9640 * c-objc-common.c (c_objc_common_init): Don't set langhook.
9641 * c-tree.h (finish_incomplete_decl): Rename.
9642 * langhooks-def.h (lhd_unsafe_for_reeval): New.
9643 (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
9644 (LANG_HOOKS_INITIALIZER): Update.
9645 * langhooks.c (lhd_unsafe_For_reeval): New.
9646 * langhooks.h (struct langhooks): New hooks.
9647 * toplev.c (incomplete_decl_finalize_hook): Remove.
9648 (wrapup_global_declarations): Update.
9649 * tree.c (lang_unsafe_for_reeval): Remove.
9650 (unsafe_for_reeval): Update.
9651 * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
9652 Remove.
9653objc:
9654 * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
9655 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
9656
7cb32822
NB
96572002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
9658
9659 * diagnostic.c (print_error_function): Remove.
9660 (default_print_error_function): Rename.
9661 (report_error_function): Update.
9662 * diagnostic.h (print_error_function): Remove.
9663 (default_print_error_function): Remove.
9664 * langhooks-def.h (struct diagnostic_context): Predeclare.
9665 (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
9666 (LANG_HOOKS_INITIALIZER): Update.
9667 * langhooks.h (struct diagnostic context): Predeclare.
9668 (struct lang_hooks): New hook.
9669
1db02437
FS
96702002-03-31 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
9671
9672 * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
9673 (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
9674 !flag_pic.
9675 (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
9676 * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
9677 of PIC_OFFSET_TABLE_REGNUM thruout.
9678 * config/rs6000/rs6000.md: Likewise.
9679 * config/rs6000/darwin.h: Likewise.
9680
3bf1e984
RK
9681Sun Mar 31 14:43:24 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9682
9683 * emit-rtl.c (adjust_address_1, offset_address): Cast value to
9684 unsigned HOST_WIDE_INT, not unsigned int.
9685
0864c526
JJ
96862002-03-31 Jakub Jelinek <jakub@redhat.com>
9687
9688 PR middle-end/6096, middle-end/6098, middle-end/6099
9689 * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
9690 CODE_LABELs.
9691 (fill_slots_from_thread): Likewise.
9692
105b2084
JJ
96932002-03-31 Jakub Jelinek <jakub@redhat.com>
9694
9695 * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
9696 floating fields in float regs.
9697 (function_arg_record_value_2): Likewise.
9698
db08fddf
HPN
96992002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
9700
9701 * config/mmix/mmix.md (define_constants): Remove misleading
9702 FIXME. Add MMIX_fp_rO_OFFSET.
9703 ("nonlocal_goto_receiver"): Don't have stack-frame address of
9704 saved rO as part of the pattern. Remove FIXME.
9705 ("*nonlocal_goto_receiver_expanded"): Similar. Generate address
9706 here, at output-time.
9707
4f31cce8
JJ
97082002-03-31 Jakub Jelinek <jakub@redhat.com>
9709
9710 PR middle-end/6100
9711 * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
9712 REG_BR_PRED.
9713 (output_v9branch): Likewise.
9714
ba2b7435
AO
97152002-03-31 Alexandre Oliva <aoliva@redhat.com>
9716
9717 * gcc.c: Revert previous patch for now.
9718 * config/i386/djgpp.h: Likewise.
9719
aa66aa5f 97202002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
8f840f57
HPN
9721
9722 * config/mmix/crti.asm (_init): Register _fini with atexit.
9723 * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
9724
41ba8a20
RH
97252002-03-31 Richard Henderson <rth@redhat.com>
9726
9727 PR target/3997
9728 * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
9729 (ASM_OUTPUT_DEF_FROM_DECLS): New.
9730
adc186ef
RH
97312002-03-31 Richard Henderson <rth@redhat.com>
9732
9733 * libgcc2.c (__bb_exit_func): Make static.
9734
9be40833 9735 * config/alpha/alpha.md (trap): New.
a7648399 9736
9602f5a0
RH
97372002-03-31 Richard Henderson <rth@redhat.com>
9738
9739 * builtins.c (expand_builtin_va_arg): Give warnings not errors for
9740 promoted argument types; build trap.
9741 (expand_builtin_trap): New.
9742 (expand_builtin): Use it.
9743 * stmt.c (expand_nl_goto_receivers): Likewise.
9744 * expr.h (expand_builtin_trap): Declare.
9745 * libfuncs.h (LTI_abort, abort_libfunc): New.
9746 * optabs.c (init_optabs): Init abort_libfunc.
9747
1a0a7539
AO
97482002-03-31 Alexandre Oliva <aoliva@redhat.com>
9749
9750 * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
9751 (LINK_COMMAND_SPEC): ... from here.
7b2e1077 9752 (init_gcc_specs): Duplicate it here too, omitting
1a0a7539
AO
9753 shared_name in the second copy.
9754 (init_spec): Test for duplicate
9755 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
9756
b5de1a27
DM
97572002-03-30 David S. Miller <davem@redhat.com>
9758
9759 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
9760 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
9761
78414d74 97622002-03-30 Roger Sayle <roger@eyesopen.com>
9be40833 9763 Richard Henderson <rth@redhat.com>
78414d74 9764
9be40833
RH
9765 * regmove.c (combine_stack_adjustments_for_block): Avoid
9766 emitting a stack adjustment of zero bytes. Let delete_insn
9767 update bb->head.
78414d74 9768
33074e5f
RH
97692002-03-30 Richard Henderson <rth@redhat.com>
9770
9771 * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
9772 (sparc_emitting_epilogue): New.
9773 (leaf_label, output_return, sparc_return_peephole_ok): Remove.
9774 * config/sparc/sparc-protos.h: Update.
9775 * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
9776 (TARGET_SWITCHES): Update.
9777 * config/sparc/sparc.md (return): Remove.
9778 (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
9779 * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
9780 config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
9781 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
9782 config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
9783 config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
9784 config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
9785 Remove MASK_EPILOGUE.
9786 * doc/invoke.texi: Update.
9787
606cc056
DB
97882002-03-30 Daniel Berlin <dan@dberlin.org>
9789
9790 * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
9791 CPP will start the file for us.
7b2e1077 9792
bdbe5b8d
RH
97932002-03-30 Richard Henderson <rth@redhat.com>
9794
9795 PR target/5446
9796 * config/ia64/ia64.c (group_barrier_needed_p): Special case
9797 prologue_allocate_stack.
9798 (ia64_single_set): Use insn codes for recognition of special
9799 cases, not rtl matching.
9800 * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
9801
4ab95d82
JH
9802Sat Mar 30 23:48:41 CET 2002 Jan Hubicka <jh@suse.cz>
9803
9804 * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
9805
89a8b315
RH
98062002-03-30 Richard Henderson <rth@redhat.com>
9807
9808 PR target/6032
9809 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
9810 or -fomit-frame-pointer with profiling.
9811 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
9812 (FUNCTION_PROFILER): Do nothing.
9813 (PROFILE_HOOK): New.
9814 * config/sparc/sparc.c (sparc_override_options): Don't check
9815 code models for profiling.
9816 (sparc_function_profiler): Remove.
9817 (sparc_profile_hook): New.
9818 * config/sparc/sparc-protos.h: Update.
9819
30984c57
JJ
98202002-03-30 Jakub Jelinek <jakub@redhat.com>
9821
9822 PR optimization/6086
9823 * combine.c (combine_simplify_rtx): If simplify_rtx failed because
9824 of SUBREG of volatile MEM or because the MEM was mode dependent,
9825 return CLOBBER instead of unmodified SUBREG.
9826
1540f9eb
JH
9827Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
9828
89a8b315
RH
9829 * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
9830 when not optimizing.
1540f9eb
JH
9831
9832 * toplev.c (rest_of_compilation): Cann mark_constant_function
9833 only when optimizing.
9834
89a8b315
RH
9835 * flow.c (calculate_global_regs_live): Ensure that all AUX fields
9836 are NULL.
1540f9eb
JH
9837
9838 * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
9839 (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
9840 (try_optimize_cfg): clear all AUX fields.
9841
9842 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
9843 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
9844 (ix86_address_cost): Be prepared for SUBREGed registers.
9845 (legitimate_address_p): Accept SUBREGed registers.
9846
70d95bac
RH
98472002-03-29 Richard Henderson <rth@redhat.com>
9848
9849 PR target/5672
9850 * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
9851
d3294cd9
FS
98522002-03-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
9853
9854 * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
9855 for aggregate and TFmode types.
9856
a106c875
HPN
98572002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
9858
9859 * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
9860
7d7a5d6f
RH
98612002-03-29 Richard Henderson <rth@redhat.com>
9862
6e2d670b 9863 PR target/5886
7d7a5d6f
RH
9864 * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
9865 * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
9866
30c99a84
RH
98672002-03-29 Richard Henderson <rth@redhat.com>
9868
6e2d670b 9869 PR target/6041
30c99a84
RH
9870 * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
9871 (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
9872 * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
9873 * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
9874 conditional.
9875 * docs/invoke.texi: Update -mno-fancy-math-387 docs.
9876
02a566dc
DJ
98772002-03-29 Dale Johannesen <dalej@apple.com>
9878
9879 * loop.c (combine_movables): Do allow combination of pseudos.
9880
bc3a44db
LR
98812002-03-29 Loren J. Rittle <ljrittle@acm.org>
9882
9883 * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
9884 * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
9885 No functional change except ...
9886 * config/t-slibgcc-nolc-override (SHLIB_LC): Override it. New file.
9887 * doc/install.texi (*-*-freebsd*): Document port configuration.
9888
b0c48229
NB
98892002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
9890
9891 * Makefile.in (convert.o, calls.o, expmed.o): Update.
9892 * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
9893 Use new hooks.
9894 * builtin-types.def (BT_PTRMODE): Update.
9895 * c-common.c (type_for_size): Rename c_common_type_for_size.
9896 (type_for_mode): Similarly.
9897 (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
9898 Use new hook.
9899 * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
9900 * c-decl.c (finish_enum, build_enumerator): Use new hooks.
9901 * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
9902 Redefine.
9903 * c-typeck.c (common_type, comptypes, default_conversion):
9904 Use new hooks.
9905 * calls.c: Include langhooks.h.
9906 (emit_library_call_value_1): Use new hooks. Avoid redundant
9907 calls.
9908 * convert.c: Include langhooks.h
9909 (convert_to_pointer, convert_to_integer): Use new hooks.
9910 * except.c (init_eh): Similarly.
9911 * expmed.c: Include langhooks.h.
9912 (expand_mult_add): Use new hooks.
9913 * expr.c (store_expr, store_constructor, expand_expr, do_jump,
9914 try_casesi): Similarly.
9915 * fold-const.c (optimize_bit_field_compare, make_range,
9916 decode_field_reference, fold_truthop, fold): Similarly.
9917 * function.c (assign_stack_local_1, assign_stack_temp_for_type,
9918 put_var_into_stack): Similarly.
9919 * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
9920 LANG_HOOKS_TYPE_FOR_SIZE): New.
9921 (LANG_HOOKS_TYPES_INITIALIZER): Update.
9922 * langhooks.h (lang_hooks_for_types): New hooks.
9923 * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
9924 * tree.c (get_unwidened, get_narrower): Similarly.
9925 * tree.h (type_for_mode, type_for_size): Remove.
9926 * varasm.c (force_const_mem): Use new hooks.
9927 * utils2.c (nonbinary_modular_operation): Update.
9928objc:
9929 * objc-act.c (handle_impent): Update.
9930 * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
9931 Redefine.
9932
e206a74f
SE
99332002-03-29 Steve Ellcey <sje@cup.hp.com>
9934
9935 * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
9936 * config/ia64/ia64.c (basereg_operand): New.
9937 * config/ia64/ia64-protos.h (basereg_operand): Declare.
9938 * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
9939
7d9b6378
HPN
99402002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
9941
9942 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
9943 unwind information when frame_pointer_needed.
9944 (mmix_assemble_integer): Tweak wording in comment.
9945
f1e639b1
NB
99462002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
9947
9948 * Makefile.in (except.o): Update.
9949 * except.c: Include langhooks.h.
9950 (init_eh): Use langhook.
9951 * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
9952 LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
9953 (LANG_HOOKS_INITIALIZER): Update.
9954 * langhooks.h (lang_hooks_for_types): New.
9955 (struct lang_hooks): Add it.
9956 * tree.c (make_lang_type_fn, make_lang_type): Remove.
9957 * tree.h (make_lang_type_fn, make_lang_type): Remove.
9958config:
9959 * alpha/alpha.c: Include langhooks.h.
9960 (alpha_build_va_list): Use langhook.
9961 * d30v/d30v.c: Include langhooks.h.
9962 (d30v_build_va_list): Use langhook.
9963 * i386/i386.c: Include langhooks.h.
9964 (ix86_build_va_list): Use langhook.
9965 * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
9966 * s390/s390.c: Include langhooks.h.
9967 (s390_build_va_list): Use langhook.
9968 * stormy16/stormy16.c: Include langhooks.h.
9969 (stormy16_build_va_list): Use langhook.
9970
f17f9332
JJ
99712002-03-29 Jakub Jelinek <jakub@redhat.com>
9972
9973 PR c++/5964
9974 * config/sparc/sparc.md (empty_delay_slot, branch_type): New
9975 attributes.
9976 (length): Compute variable length for branches/calls/jumps here.
9977 (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
9978 normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
9979 define branch_type attribute.
9980 (divsi3_sp32): Maximum length is 6 not 7.
9981 (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
9982 call_address_untyped_struct_value_sp32,
9983 call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
9984 * config/sparc/sparc.c (empty_delay_slot): New function.
9985 * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
9986 * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
9987
0a0440c9
JJ
99882002-03-29 Jakub Jelinek <jakub@redhat.com>
9989
9990 * combine.c (set_nonzero_bits_and_sign_copies): Don't call
9991 nonzero_bits if not needed.
9992 (nonzero_bits) [XOR]: Likewise.
9993 (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
9994 reg_last_set_mode and mode are both MODE_INT, but not equal.
9995 (record_value_for_reg): Compute reg_last_set_nonzero_bits
9996 in nonzero_bits_mode for MODE_INT modes.
9997
c9045f47
RH
99982002-03-28 Richard Henderson <rth@redhat.com>
9999
10000 PR target/5715
10001 * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
10002 to GAS. Correct drift between alternatives.
10003
f8ed1958
RH
100042002-03-28 Richard Henderson <rth@redhat.com>
10005
10006 PR target/6087
10007 * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
10008
54e20385
LR
100092002-03-28 Alexandre Oliva <aoliva@redhat.com>
10010
10011 * config/i386/freebsd.h (LINK_SPEC): Don't pass default
10012 emulation to the linker.
10013
100142002-03-28 Loren J. Rittle <ljrittle@acm.org>
10015
10016 * config/alpha/freebsd.h (LINK_SPEC): Likewise.
10017 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
10018
8bc52806
JL
10019Thu Mar 28 16:35:31 2002 Jeffrey A Law (law@redhat.com)
10020
10021 * combine.c (simplify_and_const_int): Make sure to apply mask
10022 when force_to_mode returns a constant integer. PR3311.
10023
279dccc5
JDA
100242002-03-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
10025
10026 * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
10027
62aaa62c
GP
100282002-03-28 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
10029
10030 * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
10031 and Objective-C Dialect Options.
10032
b8de5050
RH
100332002-03-28 Richard Henderson <rth@redhat.com>
10034
10035 * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
10036 comparison should be done vs !=0 not >0 return code. Tidy cases.
10037
619708cc
RH
100382002-03-28 Richard Henderson <rth@redhat.com>
10039
10040 * c-decl.c (finish_function): New arg can_defer_p. Pass it
10041 on to c_expand_body.
10042 * c-tree.h (finish_function): Update decl.
10043 * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
10044
b1d874d7
JH
10045Thu Mar 28 19:13:36 CET 2002 Jan Hubicka <jh@suse.cz>
10046
10047 * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
10048
f5eb5fd0
JH
10049Thu Mar 28 13:21:53 CET 2002 Jan Hubicka <jh@suse.cz>
10050
10051 * rtlanal.c: Include flags.h
10052 (may_trap_p): Do not mark FP operations if trapping
10053 if !flag_trapping_math
10054 * Makefile.in (rtlanal.o): Add dependency on flag.h
10055 * ifcvt.c (noce_operand_ok): Avoid the lameness.
10056
81b4c798
ZW
100572002-03-27 Zack Weinberg <zack@codesourcery.com>
10058
10059 * mips.md: Use dconst1, not 1.0, as first argument of
10060 REAL_VALUE_LDEXP. Don't use union real_extract.
10061
55a2ea2a
AM
100622002-03-28 Alan Modra <amodra@bigpond.net.au>
10063
10064 * configure.in (gcc_cv_as): Use $target_alias in directory searchs
10065 rather than $target. Heed program_prefix and
10066 program_transform_name. Search for gas in cross-compiler case too.
10067 "test -x" rather than "test -f".
10068 (gcc_cv_ld): Likewise.
10069 (gcc_cv_nm): Heed program_prefix and program_transform_name.
10070 (gcc_cv_objdump): Likewise.
10071 * configure: Regenerate.
10072
7ffb4fd2
NB
100732002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
10074
10075 * Makefile.in (attribs.o): Update.
10076 * attribs.c: Include langhooks.h.
10077 (decl_attributes): Use langhook.
10078 * c-decl.c (insert_default_attributes): Rename.
10079 * c-tree.h (c_insert_default_attributes): New.
10080 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
10081 (LANG_HOOKS_INITIALIZER): Update.
10082 * langhooks.h (struct lang_hooks): New hook.
10083 * tree.h (insert_default_attributes): Remove.
10084objc:
10085 * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
10086
e4dbaed5
AS
100872002-03-27 Andreas Schwab <schwab@suse.de>
10088
10089 * config/i386/i386.c (classify_argument): Also check for
10090 QUAL_UNION_TYPE.
10091
18b467f1
RO
100922002-03-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10093
10094 * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
10095 any more.
10096
d337d653
JH
10097Wed Mar 27 23:19:30 CET 2002 Jan Hubicka <jh@suse.cz>
10098
10099 * i960.md (ret): Set PC.
10100 (nonlocal_goto): Fix expander.
10101 * builtins.c (epxand_builin_longjmp): Check that we've emitted
10102 some jump or call.
10103
218aa620
JH
10104Wed Mar 27 23:11:35 CET 2002 Jan Hubicka <jh@suse.cz>
10105
10106 * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
10107 of libcall regions.
10108
e27a4eaf
ZD
10109Wed Mar 27 22:54:14 CET 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10110
10111 * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
10112 assigning to BLOCK_FOR_INSN directly.
10113
8a12f34c
JH
10114Wed Mar 27 22:33:05 CET 2002 Jan Hubicka <jh@suse.cz>
10115
10116 * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
10117
c9d892a8
NB
101182002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
10119
10120 * c-common.c (c_expand_expr): Fix prototype.
10121 * c-common.h (c_expand_expr): Always declare, update.
10122 * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
10123 * c-objc-common.c (c_objc_common_init): No global hook.
10124 * expr.c (expand_expr): Use langhook.
10125 * expr.h (enum expand_modifier): Conditionally declare.
10126 * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
10127 (LANG_HOOKS_INITIALIZER): Update.
10128 * langhooks.c (lhd_expand_expr): New.
10129 * langhooks.h (struct lang_hooks): New hook.
10130 * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
10131 (lang_independent_init): Don't default hook.
10132objc:
10133 * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
10134
6dad5a56
RH
101352002-03-27 Richard Henderson <rth@redhat.com>
10136
10137 PR target/6054
10138 * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
10139 TARGET_CONST_GP. Simplify conditions.
10140
59f96879
RH
101412002-03-27 Richard Henderson <rth@redhat.com>
10142
10143 * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
10144 config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
10145 config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
10146
f3f1190d
DS
101472002-03-27 Danny Smith <dannysmith@users.sourceforge.net>
10148
10149 * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
10150 TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
10151 (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
10152 Remove unnecessary masks.
10153 (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
10154 (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
10155 -mwindows, -mdll switches and their negations.
10156
31c816cf
NB
101572002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
10158
10159 * gcc-common.c (lang_mark_false_label_stack): Remove.
10160 * ggc.h (lang_mark_false_label_stack): Similarly.
10161
7b2e1077 101622002-03-26 Vladimir Makarov <vmakarov@redhat.com>
aee8f532
VM
10163
10164 * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
10165
10166 * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
10167 or __rtems_ is defined.
10168
1ef9531b
RH
101692002-03-26 Richard Henderson <rth@redhat.com>
10170
10171 * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
10172 if a non-trivial load was emitted.
10173 (alpha_emit_set_const_1): Remove obsolete extension. Fix thinko
10174 in high+extra+low case.
10175
300d4093
RH
101762002-03-26 Richard Henderson <rth@redhat.com>
10177
10178 * config.gcc (sparc*-solaris): Use float_format=sparc.
10179
b3689904
RH
101802002-03-26 Richard Henderson <rth@redhat.com>
10181
10182 * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
10183 * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
10184 * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
10185 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
10186 (WINT_TYPE_SIZE): Fix at 32.
10187
1eefb6c1
RH
101882002-03-26 Richard Henderson <rth@redhat.com>
10189
10190 * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
10191 until after eh landing pad generation.
10192 * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
10193 * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
10194
361ea006
RH
101952002-03-26 Richard Henderson <rth@redhat.com>
10196
10197 * expr.h (ADD_PARM_SIZE): One more convert for INC.
10198
1de38a88
PE
101992002-03-26 Phil Edwards <pme@gcc.gnu.org>
10200
10201 * gcc.c (cpp_options): Preserve relative ordering of -pedantic
10202 and warning switches.
10203 (cc1_options): Likewise.
10204
d7e60e95 102052002-03-26 Hans Boehm <Hans_Boehm@hp.com>
361ea006 10206
d7e60e95
HB
10207 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
10208 Restore more of the signal context. Set no_reg_stack_frame.
10209 * config/ia64/unwind-ia64.c (unw_state_record):
10210 Add no_reg_stack_frame, comments.
10211 (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
10212 (uw_update_context): Adjust bsp when unwinding from leaf,
10213 but not signal frame.
10214
7032923b
DE
102152002-03-26 David Edelsohn <edelsohn@gnu.org>
10216
10217 * config/rs6000/aix51.h (WCHAR_TYPE): Define.
10218
8be56275
BW
102192002-03-26 Bob Wilson <bob.wilson@acm.org>
10220
10221 * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
10222
56fbb855
RE
102232002-03-26 Richard Earnshaw <rearnsha@arm.com>
10224
10225 PR target/5621
10226 * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
10227 "Add a pool_range attribute", which was lost during the ARM/Thumb
10228 merge.
10229
3437320b
BW
102302002-03-26 Bob Wilson <bob.wilson@acm.org>
10231
10232 * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
10233 a register into the MAC16 accumulator.
10234
173028e5
AC
102352002-03-26 Andrew Cagney <ac131313@redhat.com>
10236
10237 * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
10238 (Warning Options): Document -Wswitch-enum.
10239 * toplev.c (W_options): Add -Wswitch-enum. Update comment on
10240 -Wswitch.
10241 (warn_switch_enum): Define variables.
10242 * flags.h (warn_switch_enum): Declare variables.
10243 * stmt.c (expand_end_case_type): When warn_switch_enum /
10244 -Wswitch-enum, perform switch checks.
10245 Fix PR c/5044.
7b2e1077 10246
e14365a7
RE
102472002-03-26 Richard Earnshaw <rearnsha@arm.com>
10248
10249 * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
10250 (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
10251 (reload_muladdsi_compare0_scratch): Delete.
10252
46fc709d
LR
102532002-03-26 Loren J. Rittle <ljrittle@acm.org>
10254
10255 * doc/install.texi (*-*-freebsd*): Update.
10256
f36dea3c
RH
102572002-03-26 Richard Henderson <rth@redhat.com>
10258
8e5fe23f
RH
10259 * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
10260 (SUB_PARM_SIZE): Cast DEC to ssizetype.
10261
10262 * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
10263 types from the normal argument frame.
10264
f36dea3c
RH
10265 * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
10266 variable sized objects by reference.
10267 (sparc_va_arg): Receive them by reference too.
10268
1447dc69
HP
102692002-03-26 Hartmut Penner <hpenner@de.ibm.com>
10270
10271 * config/s390/s390.c (s390_emit_epilogue): Change epilogue
7b2e1077 10272 code to not restoring global registers.
1447dc69 10273
4f0ade92
NB
102742002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
10275
10276 * Makefile.in (ggc-common.o): Update.
10277 * c-decl.c (lang_mark_tree): Rename c_mark_tree.
10278 * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
10279 * c-tree.h (c_mark_tree): New.
10280 * ggc-common.c: Include langhooks.h.
10281 (gcc_mark_trees): Use new langhook.
10282 * ggc-callbacks.c: Delete file.
10283 * ggc.h (lang_mark_tree): Remove.
10284 * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
10285 (LANG_HOOKS_INITIALIZER): Update.
10286 * langhooks.h (struct lang_hooks): New hook.
10287objc:
10288 * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
10289
caba570b
ZW
102902002-03-25 Zack Weinberg <zack@codesourcery.com>
10291
10292 * doc/cpp.texi: Exclude entire Top node from printed manual.
10293 Move option index after directive index. Insert page breaks
10294 before GFDL and concept index. Index environment variables
10295 with command line options.
10296 * doc/cppenv.texi: Use @vtable for environment variable list.
10297 Add paragraph explaining semantics of empty elements in path
10298 variables. Exclude a cross-reference to Fishkill from the
10299 manpage. Remove an unnecessary cross-reference of the entry
10300 right above the referer. Don't use @anchor in text that goes
10301 into manpage.
10302 * doc/cppopts.texi: Cross-reference the environment variables
10303 section, not the specific environment variable, for consistency.
10304
6b2e80b7
RH
103052002-03-25 Richard Henderson <rth@redhat.com>
10306
10307 * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
10308 anywhere in the block. Don't refer to insns that have been
10309 removed from the chain. Iterate backward through the new insns.
10310 Don't refer to edges that have been removed.
10311
67e469d7
AM
103122002-03-26 Alan Modra <amodra@bigpond.net.au>
10313
10314 * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
10315 test for overflow of constant.
10316
f2356393
RE
103172002-03-25 Richard Earnshaw <rearnsha@arm.com>
10318
10319 PR target/2623
10320 * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
10321 (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
10322 these patterns on arm_archv4.
10323
355426ab
DS
103242002-03-25 Danny Smith <dannysmith@sourceforge.users.net>
10325
10326 * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
10327 int".
10328
15e5ad76
ZW
103292002-03-25 Zack Weinberg <zack@codesourcery.com>
10330
10331 * toplev.c: Don't include setjmp.h. Kill float_handler_set,
10332 float_handled, float_handler, float_signal, set_float_handler,
10333 and do_float_handler. Set handler for SIGFPE to crash_signal.
10334 * toplev.h: Don't prototype do_float_handler.
10335
10336 * c-lex.c: Fold parse_float into lex_number. Make warning
10337 about portability of hex float constants more informative, and
10338 don't issue it on top of a syntax error.
10339 * fold-const.c: Fold const_binop_1 and fold_convert_1 into
10340 their callers.
10341 * real.h: Define REAL_VALUE_ABS here...
10342 * simplify-rtx.c: ... not here. Fold check_fold_consts,
10343 simplify_unary_real, simplify_binary_real, and
10344 simplify_binary_is2orm1 into their callers.
10345 * tree.c: Fold build_real_from_int_cst_1 into caller.
10346
10347 * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
10348
10349 * tsystem.h: Include float.h here...
10350 * libgcc2.c: ... not here.
10351
56ae9405
NC
103522002-03-25 Nick Clifton <nickc@cambridge.redhat.com>
10353
10354 Fixes for: PR bootstrap/3591, target/5676
10355 * config/mcore/mcore.h (CC1_SPEC): Define only if not already
10356 defined. Do not disable exceptions or rtti.
10357 * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
10358 mcore.h. Disable exceptions and rtti, since they are not
10359 supported by EPOC.
10360
c88770e9
NB
103612002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
10362
10363 * c-decl.c (maybe_build_cleanup): Remove.
10364 * expr.c (expand_expr): Use langhook.
10365 * langhooks-def.h (lhd_return_null_tree,
10366 LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
10367 (LANGHOOKS_INITIALIZER): Update.
10368 * langhooks.c (lhd_return_null_tree): New.
10369 * langhooks.h (struct lang_hooks): New hook.
10370 * tree-inline.c (initialize_inlined_parameters): Use langhook.
10371 * tree.h (maybe_build_cleanup): Remove.
10372
2ed1f154
JJ
103732002-03-25 Jakub Jelinek <jakub@redhat.com>
10374
10375 * regrename.c (build_def_use): Move recog_memoized
10376 before extract_insn.
10377
6ddae612
JJ
103782002-03-25 Jakub Jelinek <jakub@redhat.com>
10379
10380 PR target/6043
10381 * expr.c (emit_group_store): Handle storing into CONCAT.
10382
ea475b23
JJ
103832002-03-25 Jakub Jelinek <jakub@redhat.com>
10384
10385 * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
10386 corresponding MATCH_DUP.
10387
e7d482b9
RH
103882002-03-24 Richard Henderson <rth@redhat.com>
10389
cd39fc13
RH
10390 * unroll.c (unroll_loop): Zero label_map.
10391
e7d482b9
RH
10392 * gcse.c: Include except.h.
10393 * Makefile.in (gcse.o): Update.
10394
1bd6476f
RH
103952002-03-24 Richard Henderson <rth@redhat.com>
10396
10397 * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
10398 Do resolve_unique_section before shared data clause.
10399
2e6c150a
RH
104002002-03-24 Richard Henderson <rth@redhat.com>
10401
10402 * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
10403
b29afcf8
RH
104042002-03-24 Richard Henderson <rth@redhat.com>
10405
15e5ad76 10406 * recog.c (peephole2_optimize): Split blocks when EH insns are
b29afcf8
RH
10407 generated in the middle of a block. Do global life update if
10408 zapped EH edges.
10409
05ed1296
RH
104102002-03-24 Richard Henderson <rth@redhat.com>
10411
10412 * mips.c (mips_function_value): Only promote_mode for non-libcalls.
10413
3ddbb8a9
NB
104142002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
10415
10416 preprocessor/3951
15e5ad76 10417 * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
3ddbb8a9
NB
10418 * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
10419 (init_dependency_output): Don't make no_output decision here.
10420
740b77b6
AC
104212002-03-24 Andrew Cagney <ac131313@redhat.com>
10422
10423 * stmt.c (check_for_full_enumeration_handling): Remove tests of
10424 warn_switch. Update description.
10425 (expand_end_case_type): Call check_for_full_enumeration_handling
10426 when warn_switch.
10427
7590cfd0
SC
104282002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
10429
10430 * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
10431 (m68hc11_split_move): Call it to see if the source and destination
10432 operands use the same direction auto inc/dec mode, otherwise make the
c61f581f 10433 source an offsetable memory operand and generate an add.
7590cfd0 10434
2e3d3481
SC
104352002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
10436
10437 * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
10438 register for operand 2.
10439 ("*subsi3_zero_extendqi"): Likewise.
10440 ("*iorhi3_gen"): Do the operation on the upper bits and then lower
10441 bits so that it is compatible with a pop.
10442 ("*andhi3_gen"): Likewise.
10443 ("xorhi3"): Likewise.
10444
2784528c
NB
104452002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
10446
10447 * cppinit.c (cpp_handle_option): Set warn_endif_labels if
10448 -pedantic here...
10449 (cpp_post_options): ... not here.
10450
aaf93206
NB
104512002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
10452 Aldy Hernandez <aldyh@redhat.com>
10453
10454 Removal of separate preprocessor cpp0.
10455
10456 * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
10457 cpp0, install-common): Update.
10458 * c-common.c (flag_preprocess_only): New.
10459 (c_common_init): Preprocess for -E.
10460 * c-common.h (flag_preprocess_only): New.
10461 * c-decl.c (c_decode_option): Handle -E and -std=c++98.
10462 * c-objc-common.c (c_init_decl_processing): Exit quickly
10463 for NULL return from c_common_init.
10464 * cpplib.h (cpp_preprocess_file): New.
10465 * cppmain.c (main, general_init, pfile, progname): Remove.
10466 (do_preprocessing): Rename cpp_preprocess_file, don't call
10467 cpp_finish. Don't close stdout here.
10468 (setup_callbacks): Update prototype.
10469 * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
10470 Update.
10471 * tradcpp.c (main): Ignore -quiet.
10472objc:
10473 * lang-specs.h (default_compilers): Preprocess with cc1obj.
10474
c6e6f5c1
RH
104752002-03-24 Richard Henderson <rth@redhat.com>
10476
10477 PR optimization/5742
10478 * machmode.def: Add inner mode field to complex modes.
10479 * config/mips/mips.c (mips_function_value): Always define. Add
10480 new argument to handle libcalls.
10481 * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
10482 (FUNCTION_VALUE): Likewise.
10483 * config/mips/abi64.h (FUNCTION_VALUE): Remove.
10484 * config/mips/mips-protos.h: Update.
10485
d88e57d1
RH
104862002-03-23 Richard Henderson <rth@redhat.com>
10487
10488 * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
10489 * config/sparc/sparc-protos.h: Update.
10490 * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
10491
6dfaf9ba
RH
104922002-03-23 Richard Henderson <rth@redhat.com>
10493
10494 * config/sparc/gmon-sol2.c (internal_mcount): Assume either
10495 _start or _init begins the text segment.
10496
0c769cf8
DE
104972002-03-23 David Edelsohn <edelsohn@gnu.org>
10498
10499 * config/rs6000/rs6000.h (RETURN_IN_MEMORY): Cast to HOST_WIDE_INT
10500 not HOST_WIDEST_INT.
10501 (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
10502
64e92a26
RE
105032002-03-23 Richard Earnshaw <rearnsha@arm.com>
10504
10505 PR java/5489
10506 * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
10507 operand argument to output_return_instruction.
15e5ad76 10508 * arm.c (arm_print_operand, case 'd'): If the operand is
64e92a26
RE
10509 const_true_rtx then just return.
10510 (arm_print_operand, case 'D'): If the operand is const_true_rtx
10511 then abort.
10512
d6961341
AC
105132002-03-23 Andrew Cagney <ac131313@redhat.com>
10514
10515 * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
10516 (Warning Options): Document -Wswitch-default.
10517 * toplev.c (W_options): Add -Wswitch-default. Update comment on
10518 -Wswitch.
10519 (warn_switch_default): Define variable.
10520 (warn_switch): Update comment.
10521 * flags.h (warn_switch_default): Declare variable.
10522 (warn_switch): Update comment.
10523 * stmt.c (expand_end_case): Check for and, when
10524 warn_switch_no_default, warn of a missing default case.
15e5ad76 10525
d4c5ac1f
AM
105262002-03-23 Alan Modra <amodra@bigpond.net.au>
10527
bbaa9790
AM
10528 * real.h (N): Special case 128 bit doubles.
10529
d4c5ac1f
AM
10530 * combine.c (simplify_comparison): When widening modes, ignore
10531 sign extension on CONST_INTs.
10532
84bf8c2c
BW
105332002-03-22 Bob Wilson <bob.wilson@acm.org>
10534
10535 * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
10536 passed to adjust_address. Fix comment formatting.
10537
10538
b216cd4a
ZW
105392002-03-22 Zack Weinberg <zack@codesourcery.com>
10540
10541 * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
10542 Always make REAL_VALUE_TYPE a struct containing an array of
10543 HOST_WIDE_INT, not a double. Tidy up the code deciding how
10544 big it is. Don't declare or use union real_extract.
10545
10546 * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
10547 decode_rtx_const, output_constant_pool), config/a29k/a29k.c
10548 (print_operand), config/arm/arm.c (output_move_double),
10549 config/arm/arm.md (consttable_4, consttable_8),
10550 config/romp/romp.c (output_fpops), config/s390/s390.h
10551 (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
10552 (xtensa_output_literal): Don't use union real_extract.
10553
10554 * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
10555 (sfmode_constant_to_ulong), config/ns32k/merlin.h
10556 (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
10557 config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
10558 (PRINT_OPERAND): Don't use local version of union
10559 real_extract.
10560
10561 * config/convex/convex.c (check_float_value), config/vax/vax.c
10562 (vax_float_literal), config/m88k/m88k.md (divdf3),
10563 config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
10564 config/pdp11/pdp11.c (output_move_quad): Don't do host
10565 arithmetic on target floating point quantities.
10566
10567 * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
10568 (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
10569
10570 * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
10571 Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
10572
10573 * real.c (earith): Test INFINITY rather than REAL_INFINITY;
10574 NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
10575 INFINITY.
10576 * print-rtl.c (print_rtx): Disable code which needs
10577 floating-point emulator.
10578 * libgcc2.c: Include float.h and use DBL_MANT_DIG,
10579 FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
10580 depending on HOST_FLOAT_FORMAT to be defined properly.
10581
10582 * config/1750a/1750a.c (get_double, float_label): Delete.
10583 (print_operand): Delete huge commented-out chunk. Use
10584 REAL_VALUE_TO_DECIMAL.
10585 * config/1750a/1750a-protos.h: Delete prototypes of deleted
10586 functions.
10587 * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
10588 IEEE_FLOAT_FORMAT.
10589 * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
10590 Use REAL_VALUE_TO_DECIMAL as ELF version does.
10591 * config/m88k/m88k.c (real_power_of_2_operand,
10592 legitimize_operand): Take the REAL_VALUE_TYPE and/or union
10593 real_extract out of the union; run the input through
10594 REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
10595 from that into the union.
10596 * config/pdp11/pdp11.c (output_move_double): Rearrange
10597 parentheses to make automatic indenter happy.
10598
10599 * doc/tm.texi (Cross-compilation): Rename node to "Floating
10600 Point" and rewrite to describe current situation. Also adjust
10601 documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
10602 match code.
10603 * doc/rtl.texi: Adjust cross reference.
10604
a8cacfd2
BW
106052002-03-22 Bob Wilson <bob.wilson@acm.org>
10606
10607 * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
10608 (xtensa_valid_move, xtensa_preferred_reload_class): Define.
10609 * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
10610 (xtensa_valid_move, xtensa_preferred_reload_class): Define to
10611 prevent use of sp as a reload register.
10612 (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
10613 non_acc_reg_operand.
10614 * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
10615 (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
10616 * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
10617 movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
10618
d4e6133f
NB
106192002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
10620
b216cd4a
ZW
10621 * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
10622 * cpplex.c (unterminated): Delete.
10623 (parse_string): No string literal may extend over multiple
10624 lines. Suppress the error when preprocessing assembly.
d4e6133f
NB
10625 * cppmain.c (scan_translation_unit): Strings are single-line.
10626
b216cd4a 10627 * doc/cpp.texi: Update to match.
d4e6133f 10628
65e6c005
JJ
106292002-03-22 Jakub Jelinek <jakub@redhat.com>
10630
10631 PR optimization/5854
10632 * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
10633 Shut up warnings.
10634 (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
10635 (EXTRA_CONSTRAINT): Use S for non-push memory operand.
10636 * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
10637 const0 if scratch register was not allocated.
10638 (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
10639 m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
10640 with GEN_INT (...).
10641 (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
10642 * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
10643 with GEN_INT (...) everywhere. Remove constraints in define_split
10644 patterns.
10645 (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
10646 require scratch register for setting 0 into regs/non-pushable memory.
10647
7f48c9e1
AO
106482002-03-22 Alexandre Oliva <aoliva@redhat.com>
10649
10650 * config/mips/mips.h (MASK_RETURN_ADDR): Define.
10651 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
10652
909de5da
PE
106532002-03-22 Phil Edwards <pme@gcc.gnu.org>
10654
10655 * cpplib.h (struct cpp_options): New member, warn_endif_labels.
10656 * cppinit.c (cpp_create_reader): On by default.
10657 (cpp_handle_option): Handle -W[no-]endif-labels.
10658 (cpp_post_options): Also enable if -pedantic.
10659 * cpplib.c (do_else): Use it.
10660 (do_endif): Likewise.
10661 * doc/cppopts.texi: Document new option.
10662 * doc/invoke.texi: Document new option.
10663
d8bf17f9
LB
106642002-03-22 Lars Brinkhoff <lars@nocrew.org>
10665
10666 * config/i386/i386.c, config/i386/i386.md: Change all occurences
10667 of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
10668
70e0ccd0
AO
106692002-03-22 Alexandre Oliva <aoliva@redhat.com>
10670
10671 * flow.c (calculate_global_regs_live): Clear aux fields of
10672 ENTRY and EXIT.
10673
68882f0f
JJ
106742002-03-22 Jakub Jelinek <jakub@redhat.com>
10675
10676 * config/v850/v850.c (v850_reorg): Only call alter_subreg on
10677 REG or MEM subregs, pass rtx * instead of rtx to it.
10678 * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
10679 rtx * instead of rtx to alter_subreg.
10680 * config/m32r/m32r.c (gen_split_move_double): Likewise.
10681 * config/pj/pj.c (pj_output_rval): Likewise.
10682
648fe28b
RH
106832002-03-22 Richard Henderson <rth@redhat.com>
10684
10685 PR target/3177
10686 * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
10687 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
10688 * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
10689 (ia64_expand_prologue): Look at int_regs, not words, for number
10690 of incomming int regs.
10691
e8dcd824
AM
106922002-03-22 Andrew MacLeod <amacleod@redhat.com>
10693
10694 * expr.c (expand_expr): A RESULT_DECL is part of a call.
10695
96327cdc
JH
10696Fri Mar 22 16:30:42 CET 2002 Jan Hubicka <jh@suse.cz>
10697
10698 * toplev.c (flag_loop_optimize, flag_crossjumping):
10699 New static variables.
10700 (rest_of_compilation): Conditionalize crossjumping and
10701 loop optimizer.
10702 (parse_options_and_default_flags): Default loop_optimize and
10703 crossjumping.
10704 (lang_independent_options): Add -fcrossjumping and -floop-optimize
10705 * invoke.texi (crossjumping, loop-optimize): Document.
10706
bc185257
RS
107072002-03-22 Richard Sandiford <rsandifo@redhat.com>
10708
10709 * real.c (eiisneg): Move outside #ifdef NANS.
10710
0a2ed1f1
JH
10711Fri Mar 22 12:08:36 CET 2002 Jan Hubicka <jh@suse.cz>
10712
10713 * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
10714 frequencies match; avoid match on different loop depths.
10715 (try_crossjump_to_bb): Kill tests that no longer brings time
10716 savings.
10717 * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
10718 updating code.
10719 (split_edge): Likewise.
10720
10721 * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
10722 variable.
10723
10724 * Makefile.in (cfgrtl): Add insn-config.h depenendency.
10725 * cfgrtl.c: Include insn-config.h
10726 (split_block) Dirtify block in presence of conditional execution
10727
4d72536e
RS
107282002-03-22 Richard Sandiford <rsandifo@redhat.com>
10729
10730 * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
10731 * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
10732 (function_arg): Constify CUMULATIVE_ARGS.
10733 (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
10734 * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
10735 (UNITS_PER_DOUBLE): New macro.
10736 (SETUP_INCOMING_VARARGS): Define. Use mips_setup_incoming_varargs.
10737 (CUMULATIVE_ARGS): Reformat. Remove num_adjusts workaround and
10738 last_arg_fp field. Replace arg_words and fp_arg_words with gp_regs,
10739 fp_regs and stack_words.
10740 (EABI_FLOAT_VARARGS_P): New macro.
10741 * config/mips/mips.c (struct mips_arg_info): New.
10742 (mips_arg_info): New function.
10743 (function_arg_advance): Use it. Add adjustment instructions here
10744 rather than in function_arg.
10745 (function_arg): Constify CUMULATIVE_ARGS. Use mips_arg_info. Check
10746 for VOIDmode at the beginning of the function.
10747 (function_partial_nregs): Constify CUMULATIVE_ARGS. Use mips_arg_info.
10748 (function_arg_pass_by_reference): Likewise.
10749 (mips_setup_incoming_varags): New, largely based on old abi64.h code.
10750 (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
10751 (mips_va_start): Likewise. Use the new stack_words field of
10752 CUMULATIVE_ARGS to set up overflow area. Reformat.
10753 (mips_va_arg): Test EABI_FLOAT_VARARGS_P. Unify EABI handling of
10754 doubles and other types, aligning the overflow pointer for non-doubles
10755 too. Remove some code duplication. Replace hard-coded constants.
10756
e6f884cd
RS
107572002-03-22 Richard Sandiford <rsandifo@redhat.com>
10758
10759 * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
10760 (CLASS_UNITS): Undefine.
10761 (CLASS_MAX_NREGS): Use FP_INC.
10762 * config/mips/mips.c (compute_frame_size): Likewise.
10763 (override_options): Use FP_INC and UNITS_PER_FPVALUE.
10764
10cf9bde
NB
107652002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
10766
10767 * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
10768 prototype, and handle lexing numbers and identifiers.
10769 (parse_identifier): Update to new form of parse_slow.
10770 (parse_number): Fast path only, use parse_slow otherwise.
10771 (_cpp_lex_direct): Update calls to parse_number.
10772
fbc2782e
DD
107732002-03-21 DJ Delorie <dj@redhat.com>
10774
10775 * bb-reorder.c (make_reorder_chain_1): Protect against
10776 when redundant edges are omitted.
10777 * predict.c (dump_prediction): Likewise.
10778
fba39eaf
RH
107792002-03-21 Richard Henderson <rth@redhat.com>
10780
10781 PR target/5996
10782 * fixinc/inclhack.def (solaris_stdio_tag): New.
10783 * fixinc/fixincl.x: Regenerate.
10784
eba80994
EB
107852002-03-21 Eric Botcazou <ebotcazou@multimania.com>
10786
10787 PR c/5597
10788 * c-typeck.c (process_init_element): Flag non-static
10789 initialization of a flexible array member as illegal.
10790
2a78758b
AM
107912002-03-22 Alan Modra <amodra@bigpond.net.au>
10792
10793 * config/rs6000/t-linux64: New.
10794 * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
10795 t-ppccomm. Use t-rs6000 and t-linux64.
10796 (powerpc64-*-gnu* <tmake_file>): Likewise.
bac015e7
AM
10797 * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
10798 * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
10799 * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
2a78758b 10800
2cb921f4
AH
108012002-03-21 Aldy Hernandez <aldyh@redhat.com>
10802
eba80994
EB
10803 * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
10804 flag_really_no_inline instead of optimize == 0.
2cb921f4 10805
eba80994 10806 * c-objc-common.c (c_cannot_inline_tree_fn): Same.
2cb921f4 10807
eba80994 10808 * cp/tree.c (cp_cannot_inline_tree_fn): Same.
2cb921f4 10809
eba80994 10810 * flags.h (flag_really_no_inline): New.
2cb921f4 10811
659e5a7a 10812 * c-common.c (c_common_post_options): Initialize
eba80994 10813 flag_really_no_inline.
2cb921f4 10814
eba80994 10815 * toplev.c (flag_really_no_inline): New.
2cb921f4 10816
239b8b9d
JJ
108172002-03-21 Jakub Jelinek <jakub@redhat.com>
10818
10819 * config/avr/avr.md (length): Fix length computation for
10820 conditional branches.
10821
43577e6b
NB
108222002-03-21 Neil Booth <neil@daikokuya.demon.co.uk>
10823
10824 * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
10825 sdbout.o, profile.o): Update.
10826 * c-common.c (c_common_nodes_and_builtins): Use pushdecl
10827 langhook.
10828 * c-common.h (gettags): Move here from tree.h.
10829 * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
10830 insert_block, getdecls, kept_level_p, global_bindings_p): New.
10831 * dbxout.c (dbxout_init): Use getdecls langhook.
10832 * expr.c (expand_expr): Use insert_block langhook.
10833 * fold-const.c: Include langhooks.h.
10834 (fold_range_test, fold_binary_op_with_conditional_arg,
10835 fold): Use global_bindings_p langhook.
10836 * integrate.c (expand_inline_function): Use insert_block langhook.
10837 * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
10838 LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
10839 LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
10840 LANG_HOOKS_GETDECLS): New.
10841 (LANG_HOOKS_INITIALIZER): Update.
10842 * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
10843 langhook.
10844 * langhooks.h (struct lang_hooks_for_decls): New.
10845 (struct lang_hooks): Update.
10846 * profile.c: Include langhooks.h.
10847 (output_func_start_profiler): Use new langhooks.
10848 * sdbout.c: Include langhooks.h.
10849 (sdbout_init, sdbout_finish): Use getdecls langhook.
10850 * stmt.c: Include langhooks.h.
10851 (expand_fixup, fixup_gotos): Use new langhooks.
10852 * stor-layout.c: Include langhooks.h.
10853 (variable_size): Use global_bindings_p langhook.
10854 * toplev.c (compile_file): Use getdecls langhook.
10855 * tree-inline.c (remap_block): Use insert_block langhook.
10856 * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
10857 insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
10858
5b19b10c
RH
108592002-03-21 Richard Henderson <rth@redhat.com>
10860
10861 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
10862 constants in .data when -fpic.
10863
e05af335
GP
108642002-03-21 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
10865
10866 * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
10867 where appropriate.
10868
60ffc997
TT
108692002-03-21 Tom Tromey <tromey@redhat.com>
10870
10871 * config/i386/sol2.h (ASM_QUAD): Undef. Fixes PR bootstrap/5948.
10872
75897075
RK
10873Thu Mar 21 09:50:48 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10874
a73afd69 10875 * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
46399021 10876
75897075
RK
10877 * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
10878
312687cf
EB
108792002-03-21 Eric Botcazou <ebotcazou@multimania.com>
10880 Richard Henderson <rth@redhat.com>
10881
10882 PR c/5354
10883 * c-common.c (c_expand_expr): Preserve result of a statement
10884 expression if needed.
10885
f0e1f482
JJ
108862002-03-21 Jakub Jelinek <jakub@redhat.com>
10887
10888 PR bootstrap/4195
10889 * genrecog.c (maybe_both_true_mode): Remove.
10890 (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
10891 * machmode.def (Pmode): Likewise.
10892
c14b9960
JW
10893Thu Mar 21 01:55:06 EST 2002 John Wehle (john@feith.com)
10894
10895 * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
10896 (nonlocal_mentioned_p_1): New function.
10897 (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
10898 (nonlocal_set_p, nonlocal_set_p_1): Likewise.
10899 (mark_constant_function): Recognize pure functions.
10900 * rtl.h (global_reg_mentioned_p): New prototype.
10901 * rtlanal.c (global_reg_mentioned_p,
10902 global_reg_mentioned_p_1): New function.
10903
aaa4d130
RO
109042002-03-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10905
10906 * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
10907 UNIX assert.h.
10908 * fixinc/fixincl.x: Regenerate.
10909
e5c4bd1b
JM
109102002-03-20 Jason Merrill <jason@redhat.com>
10911
10912 * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
10913
852b81bb
MM
109142002-03-20 Michael Meissner <meissner@redhat.com>
10915
10916 * doc/invoke.texi (Optimize Options): Document that -O2 sets
10917 -fstrict-aliasing.
10918
86d8c251
BW
109192002-03-20 Bob Wilson <bob.wilson@acm.org>
10920
10921 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
10922 ".literal_position" directive before the constant pool.
10923
0a39c350
GP
109242002-03-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
10925
10926 * doc/contrib.texi (Contributors): Update Geoffrey Keating.
10927 Add Craig Rodrigues.
10928 Add Brad Lucier to testers.
10929
71a83373
JJ
109302002-03-20 Jakub Jelinek <jakub@redhat.com>
10931
10932 PR target/4792
10933 * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
10934 to if_then_else.
10935 (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
10936 * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
10937 instead of insn_extract.
10938
a29b099d
JJ
109392002-03-20 Jakub Jelinek <jakub@redhat.com>
10940
10941 PR bootstrap/4192
71a83373 10942 * config/fr30/fr30.md (jump): Remove clobber of fixed register.
a29b099d
JJ
10943
10944 * genemit.c (output_added_clobbers_hard_reg_p): Only output return
10945 stmt if some case has been output.
10946
048b1c95
JJ
109472002-03-20 Jakub Jelinek <jakub@redhat.com>
10948
10949 PR c/5972
10950 * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
10951 movsfcc_1, movdfcc_1): Add %O2.
10952 * config/i386/i386.c (print_operand): Handle %ON.
10953 Print . before float condition codes in Sun as cmov syntax.
10954 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
10955 * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
10956 no longer true.
10957
f4864588
PB
109582002-03-20 Philip Blundell <pb@nexus.co.uk>
10959
10960 * config/arm/arm.c (arm_output_epilogue): Don't generate separate
10961 return instruction if PC was popped.
10962
3a307de4
BW
109632002-03-20 Bob Wilson <bob.wilson@acm.org>
10964
10965 * config/xtensa/xtensa.md: Remove unused type attributes.
10966 (adddi_carry, subddi_carry): Change type attribute to "multi".
10967
048b1c95 109682002-03-19 Dale Johannesen <dalej@apple.com>
ed7d44bc
DJ
10969
10970 PR optimization/5999, middle-end/5731
10971 * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
10972 multiplications by reciprocals.
10973
7afff7cf
NB
109742002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
10975
10976 * Makefile.in: Update.
10977 * c-common.c: Include langhooks.h.
10978 (inline_forbidden_p): Use new hook.
10979 * diagnostic.c: Include langhooks.h.
10980 (format_with_decl, announce_function,
10981 default_print_error_function): Use new hook.
10982 * dwarf2out.c (dwarf2_name): Use new hook.
10983 * function.c: Include langhooks.h.
10984 (init_function_start): Use new hook.
10985 * langhooks-def.h (lhd_decl_printable_name): New.
10986 (LANGHOOKS_DECL_PRINTABLE_NAME): New.
10987 (LANGHOOKS_INITIALIZER): Update.
10988 * langhooks.c (lhd_decl_printable_name): New.
10989 * langhooks.h (struct lang_hooks): New hook.
10990 * toplev.c (decl_name, decl_printable_name): Remove.
10991 (open_dump_file): Use new hook.
10992 (process_options): Remove old hook.
10993 * tree.h (decl_printable_name): Remove.
10994objc:
10995 * objc-act.c (objc_init): Remove old hook.
10996 (objc_printable_name): Export.
10997 * objc-act.h (objc_printable_name): New.
10998 * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
10999
f78ce0b7
JB
110002002-03-19 Jim Blandy <jimb@redhat.com>
11001
11002 * c-lex.c (cb_file_change): Pass the #inclusion's line number to
11003 the start_source_file debug hook, not the current line number.
11004
15b5aef3
RH
110052002-03-19 Richard Henderson <rth@redhat.com>
11006
11007 * flow.c (EH_USES): Provide default.
11008 (calculate_global_regs_live): Use it for EH edges and noreturn calls.
11009 * doc/tm.texi (EH_USES): New.
11010
11011 * config/ia64/ia64.c (ia64_eh_uses): New.
11012 * config/ia64/ia64-protos.h: Update.
11013 * config/ia64/ia64.h (EH_USES): New.
11014
02a7a3fd
RH
110152002-03-19 Richard Henderson <rth@redhat.com>
11016
11017 * varasm.c (output_constant_def): Fix stupid typo.
11018
93f82d60
RH
110192002-03-19 Richard Henderson <rth@redhat.com>
11020
2842be05 11021 PR 5879
93f82d60
RH
11022 * except.c (current_function_has_exception_handlers): New.
11023 * except.h: Declare it.
11024 * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
11025 Combine tests that disable all sibcalls for the function.
11026
ed4fbfa0
OH
110272002-03-19 Olivier Hainque <hainque@act-europe.fr>
11028
11029 * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
11030 for INTEGER_CST.
11031
ebf0e888
RH
110322002-03-19 Richard Henderson <rth@redhat.com>
11033
1e82682b 11034 PR 5977, 5991
ebf0e888
RH
11035 * config/ia64/ia64.c: Revert 2002-03-01 patch.
11036 * config/ia64/ia64.h (INIT_EXPANDERS): New.
11037
e37b38d7
JB
110382002-03-19 Jim Blandy <jimb@redhat.com>
11039
11040 * cppmacro.c (cpp_macro_definition): Emit a space after the macro
11041 name, even if the replacement list contains no tokens, as required
11042 by Dwarf.
11043
2a4ea326
JM
110442002-03-19 Jason Merrill <jason@redhat.com>
11045
f9d09ae5
JM
11046 * varasm.c (globalize_decl): Get the name from the RTL, not
11047 DECL_ASSEMBLER_NAME.
11048
2a4ea326
JM
11049 * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
11050
99b96edb
BW
110512002-03-19 Bob Wilson <bob.wilson@acm.org>
11052
11053 * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
11054 subdi_carry): Define.
11055
3774b567
DE
110562002-03-19 David Edelsohn <edelsohn@gnu.org>
11057
11058 * config/rs6000/rs6000.c (rs6000_override_options): Only warn
11059 about -fpic/-fPIC if extra_warnings set.
11060
21ef78aa
DE
110612002-03-19 David Edelsohn <edelsohn@gnu.org>
11062
11063 * expr.c (expand_expr): Sign-extend CONST_INT generated from
11064 TREE_STRING_POINTER.
0c2fdcdf 11065 * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
21ef78aa 11066
91d4b3fd
RK
11067Tue Mar 19 14:12:32 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11068
11069 * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
11070 in favor of SP if FRAME_POINTER_REQUIRED is false.
11071
2496c7bd
LB
110722002-03-19 Lars Brinkhoff <lars@nocrew.org>
11073
11074 * emit-rtl.c (gen_int_mode): New function.
11075 * rtl.h: Prototype for it.
11076 * combine.c (make_extraction, simplify_comparison), expmed.c
11077 (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
11078 (convert_modes, store_field), optabs.c (expand_fix),
11079 simplify-rtx.c (neg_const_int, simplify_unary_real),
11080
11081 * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
11082 Use it instead of GEN_INT (trunc_int_for_mode (...)).
11083
f735a153
JJ
110842002-03-19 Jakub Jelinek <jakub@redhat.com>
11085
11086 PR c/5656
11087 * langhooks.h (struct lang_hooks_for_tree_inlining): Add
11088 convert_parm_for_inlining.
11089 * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
11090 Define.
11091 * langhooks-def.h: Likewise.
11092 * objc/objc-lang.c: Likewise.
11093 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
11094 function.
11095 * tree-inline.c (initialize_inlined_parameters):
11096 Call convert_parm_for_inlining lang hook if needed.
11097 * c-typeck.c (c_convert_parm_for_inlining): New function.
11098 * c-tree.h (c_convert_parm_for_inlining): Add prototype.
11099
1929c971
MM
111002002-03-18 Mark Mitchell <mark@codesourcery.com>
11101
b216cd4a 11102 * calls.c (precompute_arguments): Do not assume that temporaries
1929c971
MM
11103 can be destroyed after expanding the argument.
11104 (expand_call): Likewise.
11105
c79ca0ac
EC
111062002-03-15 Eric Christopher <echristo@redhat.com>
11107
11108 * config/mips/mips.md (movdf_internal2): Add two new move constraints.
11109 Fix register preference on last change.
11110 * config/mips/mips.c (mips_return_in_memory): New function.
11111 * config/mips/mips.h (RETURN_IN_MEMORY): Use.
11112 * config/mips/mips-protos.h: Declare.
11113 * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
11114 * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
11115
07e2e444
AO
111162002-03-18 Alexandre Oliva <aoliva@redhat.com>
11117
1bfbbbcf
AO
11118 * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
11119 a register too.
11120 (anddi3, iorsi3): Likewise.
11121
c066429e
AO
11122 * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
11123 use %gprel for symbols that are going to be placed in linkonce
11124 sections.
11125
07e2e444
AO
11126 * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
11127 RETURN_ADDRESS_POINTER_REGNUM to $ra.
11128 (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
11129 not needed. Disregard leaf_function_p().
11130 (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
11131 mips16 frame pointer.
11132 * config/mips/mips.md (store ra): Only to small SP offsets.
11133 2001-08-22 Graham Stott <grahams@redhat.com>
11134 * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
11135 return a REG rtx for the return address register.
11136
eb8e00ea
BW
111372002-03-18 Bob Wilson <bob.wilson@acm.org>
11138
11139 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
11140 constant-pool addresses as "mode-dependent".
11141 (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
11142
cbb92744
JJ
111432002-03-18 Jakub Jelinek <jakub@redhat.com>
11144
11145 PR target/5740
11146 * expr.c (emit_group_load): Use extract_bit_field if
11147 needed for CONCAT arguments.
11148
657d9449
RE
111492002-03-18 Richard Earnshaw <rearnsha@arm.com>
11150
91f3a802 11151 PR target/4863
657d9449
RE
11152 * arm.md (tablejump): Make this a define_expand. For PIC add the
11153 offset to the base of the table.
11154 (thumb_tablejump): Matcher for Thumb tablejump insn.
11155 * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
11156 as the difference of two labels.
11157 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
11158 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
11159 tables in the code.
11160 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
11161 * arm.c (get_jump_table_size): If the table is not in the text
11162 section, return zero.
c79ca0ac 11163
5d5603e2
BS
111642002-03-18 Bernd Schmidt <bernds@redhat.com>
11165
11166 * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
11167 of gen_rtx_SUBREG.
11168 (arm_reload_out_hi): Use gen_lowpart instead of
11169 gen_rtx_SUBREG to access QImode components.
11170 * config/arm/arm.md: Disable zero_extend split for QImode
11171 subregs in BIG_ENDIAN mode.
11172 (storehi_bigend): Match use of least significant byte.
11173 (storeinthi): Remove extraneous SUBREG.
66c17b64 11174 Add missing construction of operands[2].
5d5603e2
BS
11175 (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
11176 (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
11177 Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
11178
df15fbc7
AH
111792002-03-18 Aldy Hernandez <aldyh@redhat.com>
11180
2496c7bd
LB
11181 * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
11182 any_operand.
df15fbc7 11183
b83b7fa3
RH
111842002-03-17 Richard Henderson <rth@redhat.com>
11185
11186 * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
11187 explicitly.
11188
6f7c00fe
HPN
111892002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
11190
11191 * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
11192 (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
11193
155038f2
KG
111942002-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11195
720d42fa
KG
11196 * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
11197
155038f2
KG
11198 * predict.c (estimate_bb_frequencies): Delete unused variables.
11199
e6542f4e
RH
112002002-03-17 Richard Henderson <rth@redhat.com>
11201
11202 * config/ia64/ia64.c (ia64_attribute_table): Move before
11203 targetm definition. Make static.
11204
52dabb6c
NB
112052002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
11206
11207 * c-common.h (yyparse, c_common_parse_file): New.
11208 * c-lang.c: Include c-common.h.
11209 (LANG_HOOKS_PARSE_FILE): Redefine.
11210 * c-lex.c: Include c-common.h.
11211 (yyparse): Rename c_common_parse_file. Call yyparse.
11212 * c-parse.in (yyparse): Remove macro.
11213 * c-tree.h (yyparse_1): Remove.
11214 * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
11215 (LANG_HOOKS_INITIALIZER): Update.
11216 * langhooks.h (struct lang_hoooks): New hook parse_file.
11217 * toplev.c (compile_file): Use parse_file hook.
11218 * tree.h (yyparse): Remove.
e6542f4e 11219 * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
52dabb6c 11220
b5ffe606
HPN
112212002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
11222
ba82f58b
HPN
11223 * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
11224 float_truncate, not fix.
11225 ("*truncdfsf2_real"): Ditto.
11226 ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
11227
b5ffe606
HPN
11228 * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
11229
c8d1b2b7
AO
112302002-03-16 Alexandre Oliva <aoliva@redhat.com>
11231
cfb773f9
AO
11232 * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
11233 (s8), but rather HARD_FRAME_POINTER_REGNUM. Add parentheses
11234 where appropriate. Make the second reference to
11235 leaf_function_p a function call, as intended. Reindented.
11236
4dffef52
AO
11237 * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
11238 * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
11239
4f5bd6d7
AO
11240 * config/mips/mips.md (addsi3, adddi3): Use scratch register to
11241 add register to non-constant into sp.
11242
c8d1b2b7
AO
11243 * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
11244 * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
11245 (mips16_gp_pseudo_rtx): Lose.
11246 (INIT_EXPANDERS): Deleted.
11247 * config/mips/mips.c (mips_init_machine_status): New.
11248 (mips_free_machine_status): New.
11249 (mips_mark_machine_status): New.
11250 (override_options): Set them.
11251 (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
11252 (struct machine_function): ... new. Replaced all references.
11253 (mips_add_gc_roots): Don't mark them.
11254 (embedded_pic_fnaddr_reg): New, extracted from...
11255 (embedded_pic_offset): ... here.
11256 * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
11257 (movsi): Likewise.
11258
b3124fac
NB
112592002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
11260
11261 * cppinit.c: Revert -MD removal.
11262
121449b6
SC
112632002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11264
11265 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
11266 soft registers by default for 68HC12.
11267 (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
11268 when compiling with -fomit-frame-pointer.
11269 (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
11270 (expand_epilogue): Likewise.
11271 (m68hc11_gen_rotate): Use exg when rotating by 8.
11272
840e2ff1
SC
112732002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11274
11275 * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
11276 * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
11277 (splits): Remove unused add splits.
11278 ("*addhi3_68hc12"): Tune constraints.
11279 ("addhi_sp"): Try to use X instead of Y in all cases and if the
11280 constant fits in 8-bits and D is dead use abx/aby instructions.
11281 ("*addhi3"): Remove extern declaration of ix_reg.
11282 ("*subsi3"): Optimize and provide new split.
11283 ("subhi3"): Cleanup.
11284 ("*subhi3_sp"): Avoid saving X if we know it is dead.
11285 (arith splits): For 68hc12 save the address register on the stack
11286 and do the arithmetic operation with a pop.
11287
3c9a5efe
SC
112882002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11289
11290 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
11291 allocating QImode in address registers.
11292 ("*movqi_m68hc11"): Likewise.
11293
e41f3392
JH
11294Sat Mar 16 12:57:28 CET 2002 Jan HUbicka <jh@suse.cz>
11295
11296 * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
11297
576786b0
NB
112982002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
11299
11300 * cppinit.c (print_help): Display -MD and -MMD.
11301 Don't display usage string. Update assertion syntax and
11302 typo.
11303 (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
11304 (cpp_handle_option): Update.
11305
1ac458d4
CD
113062002-03-15 Chris Demetriou <cgd@broadcom.com>
11307
11308 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
11309 MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
11310 and define it so that regardless of target CPU size,
11311 __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
11312 of "int" rather than "long."
11313
1fcd592b
RH
113142002-03-15 Richard Henderson <rth@redhat.com>
11315
11316 * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
11317 size as a tree.
11318
a0df6910
SC
113192002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11320
11321 * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
11322 ("tstqi" split): Avoid using memory for tstqi on address register.
11323 (splits): Remove constraints.
11324 ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
11325 ("cmpdf", "cmpsf"): Remove since not used.
11326 ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
11327 (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
11328
015a2e59
SC
113292002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11330
11331 * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
11332 ("neghi2"): Tighten constraints.
11333 ("one_cmplsi2"): Optimize and simplify split.
11334 * config/m68hc11/larith.asm (__negsi2): Likewise for library.
11335
cd28557c
SC
113362002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11337
11338 * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
11339 and split of AND operation to clear the upper bits.
11340 ("*logicalsi3_zextqi"): Likewise.
11341 ("*logicallhi3_zexthi_ashift8"): Likewise.
11342 ("*logicalsi3_silshr16"): Likewise.
11343 ("logicalsi3_silshl16"): Likewise.
11344 ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
11345
932657df
SC
113462002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11347
11348 * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
11349 (m68hc11_indirect_p): New function.
11350 (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
11351 (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
11352 TARGET_M6812.
11353 (asm_print_register): Likewise.
11354 * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
11355 (m68hc11_indirect_p): Declare.
11356 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
11357 (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
11358 (TARGET_SWITCHES): New option -mrelax.
11359 * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
11360 destination.
11361 ("iorsi3", "xorsi3"): Likewise.
11362 ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
11363 ("*andhi3_mem"): New to handle destination in memory with bclr
11364 and a scratch register.
11365 ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
11366 ("*andhi3_const"): New when operand2 is constant.
11367 ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
11368 ("*andhi3_gen"): Cleanup of the old "andhi3".
11369 ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
11370 ("xorqi3"): Update constraints.
11371
fdffea1a
SC
113722002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11373
11374 * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
11375 for reg_equiv_memory_loc when the operand is a register that does
11376 not get a hard register (stack location).
11377 (tst_operand): After reload, accept all memory operand.
11378 (symbolic_memory_operand): Fix detection of symbolic references.
11379 * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
11380 accept symbols and any constant.
11381
6272bc68
SC
113822002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11383
11384 * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
11385 note on the insn that sets the soft frame register.
11386 (must_parenthesize): ix and iy are also reserved names.
11387 (print_operand_address): One more place where parenthesis are required
11388 to avoid confusion with register names.
11389 (m68hc11_gen_movhi): Allow push of stack pointer.
11390 (m68hc11_check_z_replacement): Fix handling of parallel with a
11391 clobber.
11392 (m68hc11_z_replacement): Must update the REG_INC notes to tell what
11393 the replacement register is.
11394 * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
11395 and D8_REGS classes.
11396 (MODES_TIEABLE_P): All modes are tieable except QImode.
11397
1d2d9def
SC
113982002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11399
11400 * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
11401 (___subdi3): Likewise.
11402 (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
11403 (__map_data_section): Optimize 68hc11 case.
11404
a0ccf503
SC
114052002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11406
11407 * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
11408 than a shift to avoid adding a register with itself.
11409 (m68hc11_memory_move_cost): Take into account NO_REGS.
11410 (m68hc11_register_move_cost): Update and use memory move cost
11411 for soft registers.
11412 (m68hc11_address_cost): Make cost of valid offset not 0 so that
11413 it gives more opportunities to cse to optimize.
11414 * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
11415 * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
11416
6e4ae815
MM
114172002-03-15 Mark Mitchell <mark@codesourcery.com>
11418
11419 * c-common.c (statement_code_p): Handle CLEANUP_STMT.
11420 * c-common.def (CLEANUP_STMT): New tree node.
11421 * c-common.h (CLEANUP_DECL): New macro.
11422 (CLEANUP_EXPR): Likewise.
11423 * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
11424 * expr.c (expand_expr): Tidy.
11425 * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
11426 * tree-inline.c (initialize_inlined_parameters): Clean up
11427 new local variables.
11428
a42519be
JJ
114292002-03-15 Jakub Jelinek <jakub@redhat.com>
11430
11431 PR bootstrap/4128
11432 * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
11433 before movrXX only, use reg_overlap_mentioned_p.
11434 Only special case NE if just one insn can be generated.
11435
15409448
JM
114362002-03-15 Jason Merrill <jason@redhat.com>
11437
11438 * varasm.c (assemble_variable): Call resolve_unique_section before
11439 checking DECL_SECTION_NAME. Use zeros for a decl with DECL_INITIAL
11440 of error_mark_node.
11441
3a4edb44
RE
114422002-03-15 Richard Earnshaw <rearnsha@arm.com>
11443
11444 PR target/5170
11445 * arm.md (split pattern for thumb shiftable immediates): Add comment
11446 explaining non-obvious test.
11447
32defa36
RE
114482002-03-15 Richard Earnshaw <rearnsha@arm.com>
11449
11450 PR target/5712
11451 * arm.md (movaddr, movaddr_insn): Delete.
11452
5cc90635
JM
114532002-03-15 Jason Merrill <jason@redhat.com>
11454
11455 * toplev.c (wrapup_global_declarations): Clarify variable handling.
11456 -fkeep-static-consts doesn't apply to comdats.
11457
ecb0eece
RH
114582002-03-14 Richard Henderson <rth@redhat.com>
11459
11460 * c-decl.c: Include c-pragma.h.
11461 (start_decl, start_function): Invoke maybe_apply_pragma_weak.
11462 (finish_function): Tidy.
11463 * c-pragma.c: Include c-common.h.
11464 (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
11465 (handle_pragma_weak): Use them.
11466 (init_pragma): Register pending_weaks.
11467 * c-pragma.h (maybe_apply_pragma_weak): Declare.
11468 * print-tree.c (print_node): Print DECL_WEAK.
11469 * varasm.c (mark_weak_decls): Remove.
11470 (remove_from_pending_weak_list): Remove.
11471 (add_weak): Remove.
11472 (asm_emit_uninitialised): Call globalize_decl for weak commons.
11473 (weak_decls): Make a tree_list.
11474 (declare_weak): Cons weak_decls directly.
11475 (globalize_decl): Remove weak_decls elements directly.
11476 (weak_finish): Simplify weak_decls walk. Don't weaken unused
11477 symbols. Don't pretend to handle aliases.
11478 (init_varasm_once): Update weak_decls registry.
11479 * Makefile.in: Update dependencies.
11480
98d2b17e
RH
114812002-03-14 Richard Henderson <rth@redhat.com>
11482
11483 PR target/5312
11484 * config/ia64/ia64.c: Include tm_p.h last.
11485 (gen_nop_type): Remove duplicate definition.
11486 (cycle_end_fill_slots): Set sched_data for second L slot.
11487 (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
11488 (nop_cycles_until): Fix typos.
11489
f2f4927e
JJ
114902002-03-15 Jakub Jelinek <jakub@redhat.com>
11491
11492 PR optimization/5891
11493 * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
11494
5025a549
DM
114952002-03-14 David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
11496
11497 * config/ia64/unwind-ia64.c: Handle copy_state and label_state
11498 descriptors correctly.
11499
03e9dbc9
MM
115002002-03-14 Michael Meissner <meissner@redhat.com>
11501
11502 * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
11503 100, allowing MAX_UNROLLED_INSNS to be overridden.
11504
11505 * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
11506 --param.
11507
11508 * unroll.c (params.h): Include.
11509 (MAX_UNROLLED_INSNS): Delete, now in params.h.
11510
11511 * doc/invoke.texi (--param max-unroll-insns): Document.
11512
11513 * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
11514
12249385
RE
115152002-03-14 Richard Earnshaw <rearnsha@arm.com>
11516
11517 * arm.md: Fix warnings about constraints in peepholes and splits.
11518
f0cce04a
ZW
115192002-03-14 Zack Weinberg <zack@codesourcery.com>
11520
11521 * cpphash.h (struct lexer_state): Remove line_extension member.
11522 * cpplib.c (dequote_string, do_linemarker): New functions.
11523 (linemarker_dir): New data object.
11524 (DIRECTIVE_TABLE): No longer need to interpret #line in
11525 preprocessed source. Delete obsolete comment about return
11526 values of handlers.
11527 (end_directive, directive_diagnostics, _cpp_handle_directive):
11528 Don't muck with line_extension.
11529 (directive_diagnostics): No need to issue warnings for
11530 linemarkers here.
11531 (_cpp_handle_directive): Issue warnings for linemarkers here,
11532 when appropriate. Dispatch linemarkers to do_linemarker, not
11533 do_line.
11534 (do_line): Code to handle linemarkers split out to do_linemarker.
11535 Convert escape sequences in filename argument, both places.
11536
11537 * cppmacro.c (quote_string): Rename cpp_quote_string and
11538 export. All callers changed.
11539 * cpplib.h (cpp_quote_string): Prototype.
11540 * cppmain.c (print_line): Call cpp_quote_string on to_file
11541 before printing it.
11542
11543 * doc/cpp.texi: Document that escapes are now interpreted in
11544 #line and in linemarkers, and that non-printing characters are
11545 converted to octal escapes when linemarkers are generated.
11546
11547Thu Mar 14 19:04:29 CET 2002 Jan Hubicka <jh@suse.cz>
83a49407
JH
11548
11549 * emit-rtl.c (try_split): Use delete_insns.
11550 * recog.c (split_all_insns): Fix terminating condition.
11551
c882c7ac
RE
115522002-03-14 Richard Earnshaw <rearnsha@arm.com>
11553 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
11554
11555 PR target/5828
11556 * arm.c (arm_output_epilogue): Fix floating-point register save
11557 adjustment when using a frame pointer.
11558
3f26edaa
RS
115592002-03-14 Richard Sandiford <rsandifo@redhat.com>
11560
11561 * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
11562 * config/mips/mips.c (compute_frame_size): Retrofit them here.
11563 (save_restore_insns, mips_expand_epilogue): And here.
11564 (build_mips16_call_stub): And here.
11565 (mips_function_value): Use the new macros to decide whether a single
11566 or complex float can be returned in floating-point registers. Return
11567 a parallel rtx in the complex case.
11568
1e3881c2
JH
11569Thu Mar 14 11:03:12 CET 2002 Jan Hubicka <jh@suse.cz>
11570
11571 * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
11572 call after liveness analysis.
11573
11574 * recog.c (split_insn): Use delete_insn_and_edges.
11575
11576 * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
11577 instructions to have branch prediction notes.
11578 * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
11579
200ef634
GK
115802002-03-14 Geoffrey Keating <geoffk@redhat.com>
11581
11582 * configure.in: Don't pass -Wno-long-long to a ADA compiler
11583 that doesn't support it.
11584 * configure: Regenerate.
11585
0b82d204
JJ
115862002-03-13 Jakub Jelinek <jakub@redhat.com>
11587
11588 PR target/5626
11589 * config/sparc/sparc.md (normal_branch, inverted_branch,
11590 normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
11591 inverted_fp_branch): Adjust calls to output_cbranch.
11592 Set length attribute.
11593 (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
11594 output_v9branch. Set length attribute.
11595 * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
11596 predicates.
11597 (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
11598 (output_cbranch): Likewise. Handle far branches.
11599 (output_v9branch): Handle far branches.
11600 * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
11601 Adjust prototypes.
11602 * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
11603 noov_compare64_op predicates.
11604
7a8de19b
JM
116052002-03-13 Jason Merrill <jason@redhat.com>
11606
11607 * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
11608 into the function and constify it.
11609 * gthr-dce.h, gthr-solaris.h: Likewise.
11610
2a55fd42
DE
116112002-03-13 David Edelsohn <edelsohn@gnu.org>
11612
11613 * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
11614 * config/rs6000/rs6000.c (rs6000_va_arg): Use
11615 std_expand_builtin_va_arg if not ABI_V4.
11616
19c5b1cf
JM
116172002-03-13 Jason Merrill <jason@redhat.com>
11618
11619 * varasm.c (globalize_decl): New fn.
11620 (assemble_start_function): Use it.
11621 (asm_emit_uninitialized): Use it.
11622 (assemble_alias): Use it.
11623 (assemble_variable): Use it.
11624
2a15f5e1
HPN
116252002-03-13 Hans-Peter Nilsson <hp@axis.com>
11626
11627 * config/cris/cris.c (cris_target_asm_function_prologue): Revert
f0cce04a 11628 2002-03-12 internal visibility change.
2a15f5e1
HPN
11629 (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
11630 visibility into SYMBOL_REF_FLAG.
11631
c0a3eeac
UW
116322002-03-13 Ulrich Weigand <uweigand@de.ibm.com>
11633
11634 * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
11635 VOIDmode operand. Add compile-time optimization for constant results.
11636
a1652cee
JM
116372002-03-12 Jason Merrill <jason@redhat.com>
11638
11639 * c-typeck.c (convert_for_assignment): Don't allow conversions
11640 between pointers and references. Only allow lvalues to convert to
11641 reference.
11642
c52a375d
HP
116432002-03-13 Hartmut Penner <hpenner@de.ibm.com>
11644
f0cce04a
ZW
11645 * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
11646 before prologue, to avoid scheduling problems.
c52a375d 11647
e387e99b
JJ
116482002-03-13 Jakub Jelinek <jakub@redhat.com>
11649
11650 * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
11651 (ELIMINABLE_REGS): Add sfp->sp.
11652 (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
11653
116542002-03-13 Jakub Jelinek <jakub@redhat.com>
09948ece
JJ
11655
11656 PR optimization/5892
11657 * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
11658
4061c1a3
JJ
116592002-03-13 Jakub Jelinek <jakub@redhat.com>
11660
11661 * loop.c (basic_induction_var): Don't call convert_modes if mode
11662 classes are different.
11663
5b43fed1
RH
116642002-03-12 Richard Henderson <rth@redhat.com>
11665
9f53e965
RH
11666 PR optimization/5901
11667 * function.c (reposition_prologue_and_epilogue_notes): Position
11668 the markers after/before the last/first insn not deleted.
11669
116702002-03-12 Richard Henderson <rth@redhat.com>
11671
11672 PR optimization/5878
5b43fed1
RH
11673 * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
11674 config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
11675 (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
11676
11677 * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
11678 config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
11679 PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
11680
11681 * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
11682 * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
11683 (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
11684 also. Don't set it if not flag_pic.
11685 * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
11686 to be INVALID_REGNUM when not used.
11687
4e9bb42b
AH
116882002-03-13 Aldy Hernandez <aldyh@redhat.com>
11689
5b43fed1
RH
11690 * expmed.c (store_bit_field): Reset alias set for memory.
11691 (extract_bit_field): Same.
4e9bb42b 11692
2f9834e8
KG
116932002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11694
11695 * c-common.c (c_tree_code_type, c_tree_code_length,
11696 c_tree_code_name, add_c_tree_codes): Delete.
11697 * c-common.h (add_c_tree_codes): Delete.
11698 * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
11699 Define.
11700 * c-objc-common.c (c_objc_common_init): Don't call
11701 add_c_tree_codes, instead set lang_unsafe_for_reeval.
11702 * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
11703 objc_tree_code_name, add_objc_tree_codes): Delete.
11704 (objc_init): Don't call add_objc_tree_codes.
11705 * objc/objc-lang.c (tree_code_type, tree_code_length,
11706 tree_code_name): Define.
11707 * toplev.c (lang_independent_init): Don't set
11708 tree_code_length[IDENTIFIER_NODE].
11709 * tree.c (tree_code_type, tree_code_length, tree_code_name):
11710 Delete definitions, moved to language front-ends.
11711 * tree.def (IDENTIFIER_NODE): Hardwire the length.
11712 * tree.h (tree_code_type, tree_code_length, tree_code_name):
11713 Const-ify.
11714 (tree_code_length): Change type to unsigned char.
11715
36ad2436
RH
117162002-03-12 Richard Henderson <rth@redhat.com>
11717
11718 * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
11719 internal visibility change.
11720
0ae02efa
BW
117212002-03-12 Bob Wilson <bob.wilson@acm.org>
11722
11723 * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
11724 validize_mem() instead of change_address to avoid clobbering
11725 memory attributes.
11726
35bb2bee
NB
117272002-03-12 Neil Booth <neil@daikokuya.demon.co.uk>
11728
11729 * c-lex.h (position_after_whitespace): Remove.
11730
62ae2529
JJ
117312002-03-12 Jakub Jelinek <jakub@redhat.com>
11732
11733 * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
11734 (lex_string): Use unsigned char pointers.
11735
6a45951f
UW
117362002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
11737
11738 * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
11739 is not a valid memory_operand.
11740
e2fb85da
BW
117412002-03-12 Bob Wilson <bob.wilson@acm.org>
11742
11743 * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
11744 * config/xtensa/lib1funcs.asm: Fix copyright to include
11745 special case for libgcc files.
11746 (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
11747 (__divsi3): Likewise.
11748 (__umodsi3): Likewise.
11749 (__modsi3): Likewise.
11750 * config/xtensa/lib2funcs.S: Fix copyright to include
11751 special case for libgcc files.
11752
5b8619f8
TR
117532002-03-12 Tom Rix <trix@redhat.com>
11754
11755 * collect2.c (resolve_lib_name): Move outside of
f0cce04a 11756 OBJECT_FORMAT_COFF ifdef.
5b8619f8
TR
11757 (ignore_library): Same.
11758
089c8f97
BW
117592002-03-12 Bob Wilson <bob.wilson@acm.org>
11760
11761 * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
11762
958c70ff
BW
117632002-03-12 Bob Wilson <bob.wilson@acm.org>
11764
11765 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
11766 to function_section before writing out the constant pool.
11767
a65c591c
DE
117682002-03-12 David Edelsohn <edelsohn@gnu.org>
11769
11770 * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
11771 zero_constant.
11772 * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
11773
117742002-03-12 Alan Modra <amodra@bigpond.net.au>
11775
11776 * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
11777 (adddi3): Likewise.
11778 (movdf): Likewise.
11779 (movdi): Likewise.
11780 (cmpsi splitter): Likewise.
11781 (modsi3): Fail if <= 0.
11782 * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
11783 redundant test when HOST_BITS_PER_WIDE_INT != 32.
11784 (reg_or_sub_cint64_operand): Likewise.
11785 (num_insns_constant_wide): Optimize sign extension.
11786 (rs6000_legitimize_address): Likewise.
11787
17720332
AM
117882002-03-12 Andrew MacLeod <amacleod@redhat.com>
11789
11790 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
11791 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
11792
cd49f073
AM
117932002-03-12 Andrew MacLeod <amacleod@redhat.com>
11794
11795 * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
11796 address calculation.
11797
6a4e49c1
UW
117982002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
11799
11800 * config/s390/s390.md (reload_insi, reload_indi): Change mode of
11801 scratch register to DImode / TImode.
11802 config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
11803 register used does not overlap the target.
11804
54b6670a
KG
118052002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11806
11807 * Makefile.in (debug.o): Depend on debug.h.
11808 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
11809 * debug.c (do_nothing_debug_hooks): Likewise.
11810 * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
11811 sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
11812 dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
11813 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
11814 * dwarfout.c (dwarf_debug_hooks): Likewise.
11815 * integrate.c (output_inline_function): Likewise.
11816 * objc/objc-act.c (synth_module_prologue): Likewise.
11817 * sdbout.c (sdb_debug_hooks): Likewise.
11818 * toplev.c (debug_hooks): Likewise.
11819 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
11820
2465bf76
KG
118212002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11822
11823 * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
11824 dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
11825 m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
11826 ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
11827 v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
11828 * defaults.h (POINTER_SIZE): Define.
11829 * doc/tm.texi (POINTER_SIZE): Document default.
11830
53f3e9ca
KG
118312002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11832
11833 * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
11834
44d3eb5b
RH
118352002-03-11 Richard Henderson <rth@redhat.com>
11836
11837 * toplev.c (rest_of_compilation): Call purge_all_dead_edges
11838 if rebuild_label_notes_after_reload.
11839
4a085d2e
HPN
118402002-03-12 Hans-Peter Nilsson <hp@axis.com>
11841
11842 * config/cris/cris.c (cris_target_asm_function_prologue): Do not
11843 emit pic register load if "internal" visibility.
11844 (cris_print_operand): Avoid traditional-warning for 0xffffffff.
11845 (cris_expand_builtin_va_arg): Do all computations on trees.
11846
bc204393
RH
118472002-03-11 Richard Henderson <rth@redhat.com>
11848
11849 * rtlanal.c: Include recog.h.
11850 (keep_with_call_p): Fix thinko.
11851 * Makefile.in (rtlanal.o): Update dependencies.
11852
6b8b9d7b
CM
118532002-03-11 Chris Meyer <cmeyer@gatan.com>
11854
11855 * genflags.c (gen_insn): Use IS_VSPACE.
11856 * genoutput.c (output_insn_data): Likewise.
11857 (process_template): Likewise.
11858
6c40858f
RH
118592002-03-11 Richard Henderson <rth@redhat.com>
11860
11861 * toplev.c (rest_of_compilation): Don't compile if we've had errors.
11862
40adaa27
NB
118632002-03-11 Neil Booth <neil@daikokuya.demon.co.uk>
11864
11865 * Makefile.in: Update.
6c40858f 11866 * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
40adaa27 11867 Update documentation.
6c40858f
RH
11868 * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
11869 * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
40adaa27 11870
049b03f4
ZW
118712002-03-11 Zack Weinberg <zack@codesourcery.com>
11872
11873 * Makefile.in: Give texi2pod its input file as a command line
11874 argument, not on stdin.
11875
61eece67
DN
118762002-03-11 Dan Nicolaescu <dann@ics.uci.edu>
11877 Daniel Berlin <dan@dberlin.org>
11878
11879 C++ alias analysis improvement.
f0cce04a 11880 * alias.c (record_component_aliases): Record aliases for base
61eece67
DN
11881 classes too.
11882
a65c591c
DE
118832002-03-11 Ulrich Weigand <uweigand@de.ibm.com>
11884
ff080aba
UW
11885 * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
11886
1682dbb1
DR
118872002-03-11 Douglas B Rupp <rupp@gnat.com>
11888
fa2d765a
DR
11889 * toplev.c (vms_fopen): Remove, not needed.
11890
6f1fd286
DR
11891 * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
11892
b230e057
DR
11893 * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
11894
cb9a8e97
DR
11895 * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
11896 for FP, already done later.
11897
1682dbb1
DR
11898 * toplev.c (debug_args): Add entry for VMS_DEBUG.
11899 * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
11900
3fcaac1d
RS
119012002-03-11 Richard Sandiford <rsandifo@redhat.com>
11902
11903 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
11904 (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
11905 LARGEST_EXPONENT_IS_NORMAL for the given mode.
11906 (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
11907 * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
11908 (ediv, emul, eldexp, esqrt): Likewise.
11909 (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
11910 (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
11911 (saturate): New function.
11912 (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
11913 (make_nan): Use a saturation value instead of a NaN if
11914 LARGEST_EXPONENT_IS_NORMAL. Warn when this happens.
11915 * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
11916 inputs if LARGEST_EXPONENT_IS_NORMAL. Represent subnormals as
11917 zero if NO_DENORMALS. Only round to nearest if !ROUND_TOWARDS_ZERO.
11918 (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
11919 (_fpmul_parts, _fpdiv_parts): Only round to nearest if
11920 !ROUND_TOWARDS_ZERO.
11921 * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
11922 (ROUND_TOWARDS_ZERO): Document.
11923
d25558be
AJ
119242002-03-11 Andreas Jaeger <aj@suse.de>
11925
11926 * cfg.c (dump_flow_info): Remove unused variable.
11927
c71f9ae7
HPN
119282002-03-11 Hans-Peter Nilsson <hp@bitrange.com>
11929
11930 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
11931 computations on trees.
11932
561c9153
RH
119332002-03-10 Richard Henderson <rth@redhat.com>
11934
932b4e3e 11935 PR 5693:
561c9153
RH
11936 * reload.c (copy_replacements_1): New.
11937 (copy_replacements): Use it to recurse through the rtx.
11938
26b738be
RH
119392002-03-10 Richard Henderson <rth@redhat.com>
11940
11941 * loop.c (strength_reduce): Compute number of iterations as
11942 unsigned HOST_WIDE_INT.
11943
8d8a083e
RH
119442002-03-10 Richard Henderson <rth@redhat.com>
11945
11946 * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
11947 to move away from the end of the block.
11948
32810ba3
NB
119492002-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
11950
11951 PR preprocessor/5899
11952 * cppinit.c (init_dependency_output): Don't ignore -dM etc.
d25558be 11953
2b03d201
KG
119542002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11955
f90c544c
KG
11956 * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
11957
2b03d201
KG
11958 * attribs.c (decl_attributes): Fix signed/unsigned warning.
11959
3ec1b4cb
HPN
119602002-03-10 Hans-Peter Nilsson <hp@bitrange.com>
11961
11962 * config/mmix/mmix.c: Improve comments.
11963 (mmix_target_asm_function_prologue): Drop variable
11964 empty_stack_frame. Don't allocate unused slot above fp.
11965 (mmix_target_asm_function_epilogue): Mirror prologue changes.
11966 * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
11967 brace in first column.
11968 (enum reg_class): Ditto.
11969 (FIRST_PARM_OFFSET): Now 0.
11970 (USER_LABEL_PREFIX): Remove #if 0:d definition.
11971
27e486c5
KG
119722002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11973
11974 * combine.c (make_extraction): Fix error in last change.
11975
0139adca
KG
119762002-03-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11977
11978 * c4x.c (c4x_fp_reglist): Const-ify.
11979 * cris.c (cris_print_operand): Likewise.
11980 * i386.c (ix86_va_arg): Likewise.
11981 * ia64/unwind-ia64.c (unw_decode_table): Likewise.
11982 * m32r.c (m32r_hard_regno_mode_ok): Likewise.
11983 * m32r.h (m32r_hard_regno_mode_ok): Likewise.
11984 * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
11985 * mcore.h (regno_reg_class): Likewise.
11986 * mips.c (gen_int_relational): Likewise.
11987 * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
11988 * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
a4334c36 11989 * pdp11.c (move_costs): Likewise.
0139adca
KG
11990 * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
11991 * s390.c (s390_branch_condition_mnemonic, regclass_map):
11992 Likewise.
11993 * s390.h (regclass_map): Likewise.
11994 * sh.c (shift_amounts): Likewise.
a4334c36 11995 * sh.md (rotlsi3): Likewise.
0139adca 11996
889b90a1
GK
119972002-03-09 Geoffrey Keating <geoffk@redhat.com>
11998
11999 * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
12000 (ne0+5): Use new clobber to generate proper shift pattern.
12001 Patch by Michael Matz <matz@kde.org>.
12002
2877e0ae
AS
120032002-03-09 Andreas Schwab <schwab@suse.de>
12004
12005 * gcc.c (validate_all_switches): Also handle `%W{...}'.
12006
79b51cd7
GK
120072002-03-09 Geoffrey Keating <geoffk@redhat.com>
12008
12009 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
12010
e0f1be5c
JJ
120112002-03-09 Jakub Jelinek <jakub@redhat.com>
12012
12013 PR middle-end/5877
12014 * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
12015 even for non-representable constants.
12016
0a7ec763
RK
12017Sat Mar 9 07:20:01 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12018
93fe8e92
RK
12019 * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
12020 * function.c (fixup_var_refs): Add MAY_SHARE parameter.
12021 (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
12022 (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
12023 (pop_function_context): Compute MAY_SHARE parameter for
12024 fixup_var_refs.
12025 (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
12026 (gen_mem_addressof): Call fixup_var_refs with new parm.
12027
0a7ec763
RK
12028 * combine.c (make_extraction): Don't make extension of CONST_INT.
12029
a85cd407
AO
120302002-03-09 Alexandre Oliva <aoliva@redhat.com>
12031
9445b814
AO
12032 * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
12033 in o32 and o64 ABIs.
12034 * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
12035 but getting fixed-size structs passed in registers regardless of
12036 padding in o32 and o64 ABIs.
12037
a85cd407
AO
12038 * config/mips/mips.c (mips_va_arg): Apply big-endianness address
12039 offset before loading address of argument passed by transparent
12040 reference.
12041
c51fbe40
JDA
120422002-03-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
12043
12044 * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
12045
918e70dd
AO
120462002-03-09 Alexandre Oliva <aoliva@redhat.com>
12047
12048 * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
12049 marker such that registers after it are saved.
12050
3070dd00
KG
120512002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12052
12053 * sparc.c (arith_4096_operand): Fix error in last change.
12054
e25d11b0
AO
120552002-03-08 Alexandre Oliva <aoliva@redhat.com>
12056
12057 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
12058 defaults for MEABI.
12059
41daaf0e
AH
120602002-03-08 Aldy Hernandez <aldyh@redhat.com>
12061
5b43fed1
RH
12062 * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
12063 vectors.
41daaf0e 12064
fa139b00
AH
120652002-03-08 Aldy Hernandez <aldyh@redhat.com>
12066
5b43fed1 12067 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
fa139b00 12068
c51d95ec
JH
12069Fri Mar 8 21:27:49 CET 2002 Jan Hubicka <jh@suse.cz>
12070
12071 * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
12072 removed; fix return value.
12073 * combine.c (combine_instructions): Dirtify blocks where we failed to
12074 update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
12075 * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
12076
3b25fbfe
KG
120772002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12078
12079 * gcse.c (insert_insn_end_bb): Fix typo in last change.
12080
189ae0f4
JH
12081Fri Mar 8 21:08:52 CET 2002 Jan Hubicka <jh@suse.cz>
12082
12083 * recog.c (peephole2_optimize): Re-distribute EH edges.
12084
24965e7a
NB
120852002-03-08 Neil Booth <neil@daikokuya.demon.co.uk>
12086
12087 * expr.c (expand_expr): Use unsave lang hook.
12088 * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
12089 (LANG_HOOKS_INITIALIZER): Update.
12090 * langhooks.h (struct lang_hooks): New hook unsave.
12091 * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
12092 (unsave_expr_1): Remove unused lang_unsave_expr_now.
12093 (unsave_expr_now_r): Rename lhd_unsave. Update. Return input.
12094 (unsave_expr_now): Remove.
12095 * tree.h (unsave_expr_now, lang_unsave,
12096 lang_unsave_expr_now): Remove.
12097 (lhd_unsave): New.
12098
1e4e95d6
AJ
120992002-03-08 Andreas Jaeger <aj@suse.de>
12100
12101 * flow.c (propagate_block_delete_insn): Remove unused variable.
12102
054ef905
KH
121032002-03-08 Kazu Hirata <kazu@hxi.com>
12104
12105 * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
12106 insn length for memory load/store.
12107
5304400d 121082002-03-08 Craig Rodrigues <rodrigc@gcc.gnu.org>
1e4e95d6 12109
5304400d
CR
12110 * doc/install.texi (--with-libiconv-prefix): Document.
12111
81034129
MB
121122002-03-08 Michael Y. Brukman <myb2@cornell.edu>
12113
12114 * doc/sourcebuild.texi: Fix typo.
12115
71db7d03
JJ
121162002-03-08 Jakub Jelinek <jakub@redhat.com>
12117
12118 PR c/3711
12119 * builtins.c (std_expand_builtin_va_arg): Do all computations on
12120 trees.
12121
127c1ba5
RK
12122Fri Mar 8 06:48:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12123
12124 * rtl.c (copy_most_rtx): Move from here ...
12125 * emit-rtl.c (copy_most_rtx): ... to here.
12126
8a13c092
AO
121272002-03-08 Alexandre Oliva <aoliva@redhat.com>
12128
5faae4f7
AO
12129 * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
12130 SUBTARGET_CPP_SIZE_SPEC.
12131 * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
12132
8a13c092
AO
12133 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
12134
4ec59de2
MH
121352002-03-07 Matt Hiller <hiller@redhat.com>
12136
12137 * gensupport.c (first_dir_md_include): Renamed from include;
12138 change all references.
12139 (last_dir_md_include): Renamed from last_include; change all
12140 references.
12141 (init_md_reader): Unconditionally initialize base_dir whether or
12142 not filename is a relative path.
12143
12f61e77
AO
121442002-03-07 Alexandre Oliva <aoliva@redhat.com>
12145
95356058
AO
12146 * config/fp-bit.c (_unord_f2): Compile it in even if
12147 US_SOFTWARE_GOFAST is enabled.
12148
12f61e77
AO
12149 * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
12150 NULL_RTX. Set all HFmode operations as NULL_RTX.
12151 * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
12152 NULL_RTX, try reversing the comparison and the operands.
12153
6d7a1c4c
UW
121542002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
12155
12156 * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
12157 genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
12158 and MATCH_OP_DUP.
12159
66d54344
JH
12160Thu Mar 7 16:54:10 CET 2002 Jan Hubicka <jh@suse.cz>
12161
12162 * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
12163
068473ec
JH
12164Thu Mar 7 16:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
12165
12166 * basic-block.h (fixup_abnormal_edges): Declare.
12167 * reload1.c (fixup_abnormal_edges): New function.
12168 * reg-stack.c (convert_regs): Use it.
12169
12170 * gcse.c (insert_insn_end_bb): Handle trapping insns.
12171
12172 * gcse.c (hash_scan_set): Refuse instructions with EH edges.
12173
71925bc0
RS
121742002-03-07 Richard Sandiford <rsandifo@redhat.com>
12175
12176 * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
12177 (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
12178 * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
12179 (HONOR_SIGN_DEPENDENT_ROUNDING): New.
12180 * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
12181 * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
12182 unless x and y could be infinite.
12183 (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
12184 Check that the common type of both arguments is a real, even for
12185 targets without unordered comparisons. Allow an integer argument
12186 to be compared against a real.
12187 (expand_tree_builtin): Use expand_unordered_cmp.
12188 * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
12189 * cse.c (fold_rtx): Likewise. Fix indentation.
12190 * fold-const.c (fold_real_zero_addition_p): New.
12191 (fold): Use it, and the new HONOR_... macros.
12192 * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
12193 * jump.c (reversed_comparison_code_parts): After searching for
12194 the true comparison mode, use HONOR_NANS to decide whether it
12195 can be safely reversed.
12196 (reverse_condition_maybe_unordered): Remove IEEE check.
12197 * simplify-rtx.c (simplify_binary_operation): Use the new macros
12198 to decide which simplifications are valid. Allow the following
12199 simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
12200 and (a - -b) to (a + b).
12201 (simplify_relational_operation): Use HONOR_NANS.
12202 * doc/tm.texi: Document the MODE_HAS_... macros.
12203
145d3bf2
RE
122042002-03-07 Richard Earnshaw <rearnsha@arm.com>
12205
12206 * combine.c (simplify_comparison): If simplifying a logical shift
12207 right and compare with constant, force the comparison to unsigned.
12208
76a773f3
AH
122092002-03-07 Aldy Hernandez <aldyh@redhat.com>
12210
5b43fed1 12211 * doc/invoke.texi: Add documentation for -mabi=no-altivec.
76a773f3 12212
5b43fed1
RH
12213 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
12214 -mabi=no-altivec
12215 (alt_reg_names): Remove % for vrsave.
76a773f3 12216
ab55f58c
RH
122172002-03-06 Richard Henderson <rth@redhat.com>
12218
5ddec02e 12219 PR optimization/5844
ab55f58c
RH
12220 * genemit.c (gen_exp): New argument used. Invoke copy_rtx
12221 if used indicates we've already emitted one copy of an operand.
12222 (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
12223 (gen_split): Supply a non-null used.
12224
e16e3291
UW
122252002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
12226
5b43fed1 12227 * reload1.c (reload): Unshare all rtl after reload is done.
e16e3291 12228
1e4e95d6 12229 * simplify-rtx.c (simplify_plus_minus): Do not abort,
e16e3291
UW
12230 but simply fail if the expression is too complex to simplify.
12231 (simplify_gen_binary): Handle simplify_plus_minus failures.
12232
2ca6672b
JH
12233Wed Mar 6 20:32:09 CET 2002 Jan Hubicka <jh@suse.cz>
12234
12235 * toplev.c (rest_of_compilation): Do jump threading before SSA path;
12236 consistently call delete_trivially_dead_insns after CSE and GCSE;
12237 fix DFI_life dumping; do jump threading after liveness; do crossjumping
12238 after liveness2; update comment in last crossjumping.
12239 * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
12240
31d0dd4f
JL
12241Wed Mar 6 12:27:10 2002 Jeffrey A Law (law@redhat.com)
12242
d094b0b3
JL
12243 * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
12244 after completing fast dead code elimination.
12245
31d0dd4f
JL
12246 * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
12247 COMPARE operator.
1e4e95d6 12248
f2b958b1
PE
122492002-03-06 Phil Edwards <pme@gcc.gnu.org>
12250
12251 * version.c: Fix misplaced leading blanks on first line.
12252
a2877a09
JH
12253Wed Mar 6 19:08:03 CET 2002 Jan Hubicka <jh@suse.cz>
12254
12255 * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
12256
fe477d8b
JH
12257Wed Mar 6 18:14:43 CET 2002 Jan Hubicka <jh@suse.cz>
12258
12259 * cfgcleanup.c (mentions_nonequal_regs): New function.
12260 (thread_jump): Use it.
12261 * toplev.c (rest_of_compilation): Run jump threading after
12262 liveness.
12263
2041cde4
JJ
122642002-03-06 Jakub Jelinek <jakub@redhat.com>
12265
12266 * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
12267 patch.
12268
82d68d46
JH
12269Wed Mar 6 11:28:19 CET 2002 Jan Hubicka <jh@suse.cz>
12270
12271 * predict.c (estimate_bb_frequencies): Do not reload the
12272 frequencies from notes.
12273
3dec4024
JH
12274Wed Mar 6 10:59:39 CET 2002 Jan Hubicka <jh@suse.cz>
12275
12276 * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
12277 * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
12278
12279 * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
12280 delete_noop_moves): Return indeger.
12281 * flow.c (ndead): New variable.
12282 (propagate_block_delete_insn): Use delete_insn_and_edges; remove
12283 BB argument; update callers.
12284 (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
12285 (life_analysis): Do not call purge_all_dead_edges.
12286 (update_life_info): Return number of deleted insns; print statistics.
12287 (update_life_info_in_dirty_blocks): likewise.
12288 (delete_noop_moves): Use delete_insn_and_edges; print statistics;
12289 return number of insns deleted.
12290
12291 * cse.c: Include timevar.h
12292 (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
12293 iterate until stabilizes; print statistics; return number of killed
12294 insns.
12295 * Makefile.in: (cse.o): Add timevar.h dependency
12296 * rtl.h (delete_trivially_dead_insns): New.
12297 * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
12298 * toplev.c (rest_of_compilation): Update callers.
12299
12300 * cfgcleanup.c (try_optimize_cfg): Kill blocks.
12301 (try_optimize_cfg): Do not update liveness.
12302 (cleanup-cfg): Loop until try_optimize_cfg and dead code
12303 removal stabilizes; use delete_trivially_dead_insns.
12304
12305 * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
12306
c7544dd8
ZW
123072002-03-05 Zack Weinberg <zack@codesourcery.com>
12308
12309 * cppmain.c (setup_callbacks): Disable #pragma and #ident
12310 callbacks when processing assembly language.
12311
50b424a9
JDA
123122002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
12313
12314 * pa.h (ASM_FILE_END): Define.
12315 * som.h (ASM_FILE_END): Delete.
12316
12317 * pa.c (function_arg): Don't pass floats in general registers in
12318 indirect calls if TARGET_ELF32.
12319
6185f217
RH
123202002-03-05 Richard Henderson <rth@redhat.com>
12321
12322 * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
12323
3020a4b2
DS
123242002-03-05 Danny Smith <dannysmith@users.sourceforge.net>
12325
12326 * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
12327
65649daa
JJ
123282002-03-05 Jakub Jelinek <jakub@redhat.com>
12329
12330 * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
12331 -r command line. Don't hide any symbols if not building
12332 shared libgcc.
12333
5a1a3e5e
JH
12334Tue Mar 5 18:31:27 CET 2002 Jan Hubicka <jh@suse.cz>
12335
12336 * cfg.c (dump_flow_info): Warn about profile mismatches.
12337 * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
12338 (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
12339
170c56da
JJ
123402002-03-05 Jakub Jelinek <jakub@redhat.com>
12341
12342 * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
12343 wide volatile memory by parts.
12344
6d051694
JJ
123452002-03-05 Jakub Jelinek <jakub@redhat.com>
12346
12347 * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
12348 is NULL.
12349
28bcfd4d
RH
123502002-03-05 Richard Henderson <rth@redhat.com>
12351
5b43fed1 12352 * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
28bcfd4d 12353
75227a33
GK
123542002-03-04 Geoffrey Keating <geoffk@redhat.com>
12355
12356 * toplev.c (documented_lang_options): Document more
12357 language-specific options.
12358 * doc/invoke.texi (Warning Options): Correct documentation for
12359 -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
12360 * c-decl.c (c_decode_option): Use a table to handle warning options.
12361
4f1aac42
HPN
123622002-03-05 Hans-Peter Nilsson <hp@bitrange.com>
12363
12364 * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
12365 parameter to mmix_encode_section_info.
12366 (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
12367 relocatably. Always produce ELF, not mmo if linking relocatably.
12368 * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
12369 first is non-zero, don't add symbol prefix.
12370 * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
12371 prototype accordingly.
12372
12345543
KW
123732002-03-04 Krister Walfridsson <cato@df.lth.se>
12374
12375 * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
12376
8e97db8f
JM
123772002-03-05 Joseph S. Myers <jsm28@cam.ac.uk>
12378
12379 * configure.in: Increase required makeinfo version to 4.1.
12380 * configure: Regenerate.
12381
06487868
GK
123822002-03-04 Geoffrey Keating <geoffk@redhat.com>
12383
12384 * .cvsignore: Remove *.info* and genrtl*; these files are generated
12385 elsewhere now.
12386
cff42170
JM
123872002-03-04 Joseph S. Myers <jsm28@cam.ac.uk>
12388
12389 * doc/include/texinfo.tex: Update to version 2002-03-01.06.
12390 * doc/invoke.texi: Fix @math uses.
12391
974a7f56
JH
12392Mon Mar 4 15:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
12393
12394 * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
12395 removal
12396
3b7d0e98
AH
123972002-03-03 Aldy Hernandez <aldyh@redhat.com>
12398
5b43fed1
RH
12399 * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
12400 (powerpc-*-eabisimaltivec*): Same.
3b7d0e98 12401
5b43fed1 12402 * config/rs6000/t-ppcendian: New.
3b7d0e98 12403
65f2f288
HB
124042002-03-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
12405
12406 * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
12407 nonimmediate_src_operand and nonimmediate_lsrc_operand to
12408 disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
12409
8ce0a8a5
RH
124102002-03-03 Richard Henderson <rth@redhat.com>
12411
12412 * toplev.c (rest_of_decl_compilation): Revert last two changes.
12413
ba31d94e
ZW
124142002-03-03 Zack Weinberg <zack@codesourcery.com>
12415
12416 * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
12417 print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
12418 tree.c, config/m68k/m68k.c:
12419 Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
12420 REAL_ARITHMETIC blocks unconditional. Delete some further
12421 #ifdef blocks predicated on REAL_ARITHMETIC.
12422 * flags.h, toplev.c: Delete remaining references to
12423 flag_pretend_float.
12424
12425 * doc/invoke.texi: Remove documentation of -fpretend-float.
12426 * doc/tm.texi: Describe the various REAL_* macros as provided by
12427 real.h, not by the target configuration files.
12428
12429 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
12430 config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
12431 config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
12432 config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
12433 config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
12434 config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
12435 config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
12436 config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
12437 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
12438 config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
12439 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
12440 config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
12441 config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
12442 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
12443 config/xtensa/xtensa.h:
12444 Do not define, undefine, or mention in comments any of
12445 REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
12446 REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
12447 REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
12448 REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
12449 REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
12450 REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
12451 REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
12452 REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
12453 REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
12454
9a571cfd
KG
124552002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12456
e81dd381
KG
12457 * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
12458 convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
12459 i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
12460 m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
12461 pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
12462 stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
12463 Delete.
12464 * defaults.h (BITS_PER_WORD): Define.
ba31d94e 12465 * doc/tm.texi (BITS_PER_WORD): Document default value.
e81dd381 12466
9a571cfd
KG
12467 * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
12468 m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
12469 stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
12470
ca7558fc
KG
124712002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12472
12473 * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
12474 lieu of explicit sizeof/sizeof.
12475 * i386.c (override_options, ix86_init_mmx_sse_builtins,
12476 ix86_expand_builtin): Likewise.
12477 * mips.c (mips_add_gc_roots): Likewise.
12478 * mmix.c (mmix_output_condition): Likewise.
12479 * rs6000.c (rs6000_override_options, altivec_expand_builtin,
12480 altivec_init_builtins): Likewise.
12481 * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
12482 * cppexp.c (Nsuff, parse_number): Likewise.
12483 * cppinit.c (builtin_array_end): Likewise.
12484 * gcc.c (n_default_compilers, process_command): Likewise.
12485 * genpreds.c (output_predicate_decls): Likewise.
12486 * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
12487 * lcm.c (N_ENTITIES): Likewise.
12488 * stor-layout.c (set_sizetype): Likewise.
ba31d94e 12489
41c78c88
RH
124902002-03-03 Richard Henderson <rth@redhat.com>
12491
12492 * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
12493 for types or labels.
12494
9e9b71e6
RH
124952002-03-03 Richard Henderson <rth@redhat.com>
12496
12497 * c-decl.c (start_decl): Initialized variables are not common.
12498
c26a6db8
PB
124992002-03-02 Per Bothner <per@bothner.com>
12500
12501 * gcc.c (option_map): Suport new --bootclasspath option.
12502 --CLASSPATH is now just an alias for --classpath.
12503
9e8aab55
RH
125042002-03-02 Richard Henderson <rth@redhat.com>
12505
12506 * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
12507 load if "internal" visibility.
12508 * doc/extend.texi: Document visibility meanings.
12509
b3bbd220
RH
125102002-03-02 Richard Henderson <rth@redhat.com>
12511
12512 * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
12513 to functions as well.
12514
b14707c3
RH
125152002-03-02 Richard Henderson <rth@redhat.com>
12516
12517 * attribs.c (handle_alias_attribute): Don't call assemble_alias.
12518 (handle_visibility_attribute): Don't call assemble_visibility.
12519 * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
12520 without asmspec. Invoke assemble_alias when needed.
12521 * varasm.c (maybe_assemble_visibility): New.
12522 (assemble_start_function, assemble_variable, assemble_alias): Use it.
12523
b2003250
RH
125242002-03-02 Richard Henderson <rth@redhat.com>
12525
12526 * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
12527 invoke ENCODE_SECTION_INFO with first call flag.
12528
12529 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
12530 config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
ba31d94e 12531 config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
b2003250
RH
12532 config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
12533 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
12534 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
12535 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
12536 config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
12537 config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
12538 config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
12539 config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
12540 config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
ba31d94e
ZW
12541 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
12542 config/m68hc11/m68hc11.h, config/m88k/m88k.h,
b2003250
RH
12543 config/mcore/mcore-protos.h, config/mcore/mcore.c,
12544 config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
12545 config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
ba31d94e 12546 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
b2003250
RH
12547 config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
12548 config/sh/sh.h, config/sparc/sparc.h,
12549 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
12550 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
12551 config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
12552 FIRST argument. As needed, examine it and do nothing.
12553
ba31d94e 12554 * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
b2003250
RH
12555 config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
12556 config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
12557
12558 * config/arm/t-pe (pe.o): Add dependencies.
12559
5c60f03d
KG
125602002-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12561
12562 * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
12563 cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
12564 i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
12565 mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
12566 pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
12567 vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
12568 * defaults.h (BITS_PER_UNIT): Define.
12569 * doc/tm.texi (BITS_PER_UNIT): Document default value.
12570
86855e8c
KH
125712002-03-02 Kazu Hirata <kazu@hxi.com>
12572
12573 * config/h8300/h8300-protos.h: Add a prototype for
12574 compute_a_shift_length.
12575 * config/h8300/h8300.c (h8300_asm_insn_count): New.
12576 (compute_a_shift_length): Likewise.
12577 (h8300_adjust_insn_length): Do not adjust insn length of shift
12578 insns.
12579 * config/h8300/h8300.md (anonymous shift patterns): Use
12580 compute_a_shift_length.
12581
f6041ed8
RK
12582Sat Mar 2 06:30:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12583
35aa3c1c
RK
12584 * config/sparc/sparc.c (sparc_initialize_trampoline): Use
12585 trunc_int_for_mode.
12586
f6041ed8
RK
12587 * emit-rtl.c (offset_address): Call update_temp_slot_address.
12588
27b41650
KG
125892002-03-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12590
12591 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
12592 * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
12593 * flags.h (flag_zero_initialized_in_bss): Declare.
12594 * toplev.c (flag_zero_initialized_in_bss): New flag.
12595 (lang_independent_options): Add flag_zero_initialized_in_bss.
12596 * tree.c (initializer_zerop): New function.
12597 * tree.h (initializer_zerop): Declare.
12598 * varasm.c (assemble_variable): If we can emit bss, put zero
12599 initializers in the bss section.
12600
ca734b39
AM
126012002-03-02 Alan Modra <amodra@bigpond.net.au>
12602
12603 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
12604 like more than one symbol per .weak directive.
12605
49b72306
RH
126062002-03-01 Richard Henderson <rth@redhat.com>
12607
12608 * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
12609 adjust argument_pointer by pretend_args_size.
12610 (ia64_va_start): Adjust va_start address by -pretend_args_size.
12611
fbf0fe41
KH
126122002-03-01 Kazu Hirata <kazu@hxi.com>
12613
12614 * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
12615
0010687d
JH
12616Fri Mar 1 20:59:14 CET 2002 Jan Hubicka <jh@suse.cz>
12617
12618 * toplev.c (rest_of_compilation): Delete dead jumptables before
12619 loop.
12620 * flow.c (delete_dead_jumptables): Make global.
12621 * rtl.h (delete_dead_jumptables): Declare.
12622
9429c84c
DE
126232002-03-01 David Edelsohn <edelsohn@gnu.org>
12624
12625 * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
12626 * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
0c2fdcdf 12627 * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
9429c84c 12628
f0b6f9a6
KH
126292002-03-01 Kazu Hirata <kazu@hxi.com>
12630
12631 * config/h8300/h8300-protos.h: Fix formatting.
12632 * config/h8300/h8300.c: Likewise.
12633 * config/h8300/h8300.h: Likewise.
12634
bc8db8a1
KH
126352002-03-01 Kazu Hirata <kazu@hxi.com>
12636
12637 * config/h8300/h8300.c (print_operand): Support 16-bit
12638 constant addresses.
12639 * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
12640
32b069d3
RH
126412002-02-28 Richard Henderson <rth@redhat.com>
12642
12643 * expmed.c (store_bit_field): Prevent generation of CONCATs;
12644 pun complex values as integers; use gen_lowpart instead of
12645 gen_rtx_SUBREG.
12646 (extract_bit_field): Likewise.
12647
79c4e63f
AM
126482002-03-01 Alan Modra <amodra@bigpond.net.au>
12649 David Edelsohn <edelsohn@gnu.org>
12650
12651 * doc/tm.texi (ASM_WEAKEN_DECL): Document.
12652 (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
12653 (SUPPORTS_WEAK): Likewise.
12654 * output.h (add_weak): Add tree param.
12655 * varasm.c (add_weak): Likewise. Save decl.
12656 (struct weak_syms): Add decl field.
12657 (mark_weak_decls): New function.
12658 (init_varasm_once): ggc_add_root mark_weak_decls.
12659 (assemble_start_function): Use ASM_WEAKEN_DECL.
12660 (assemble_variable): Likewise.
12661 (assemble_alias): Likewise.
12662 (declare_weak): Pass decl to add_weak.
12663 (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
12664 (remove_from_pending_weak_list): Declare and define for
12665 ASM_WEAKEN_DECL.
12666 * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
12667 * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
12668 * defaults.h (SUPPORTS_WEAK): Likewise.
12669 * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
12670 .weak for code sym. Do emit .size for descriptor sym.
12671 (ASM_DECLARE_FUNCTION_SIZE): Define.
12672 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
12673 (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here. Don't output
12674 .lglobl unless TARGET_XCOFF. Formatting fixes.
12675 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
12676 .weak for code sym.
12677 (HANDLE_PRAGMA_WEAK): Remove.
12678 (ASM_WEAKEN_LABEL): Remove.
12679 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
12680
6f30f1f1
JM
126812002-03-01 Jason Merrill <jason@redhat.com>
12682
12683 * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
12684 (TARGET_EXPR_CLEANUP): New macro.
12685
7879b81e
SE
126862002-02-28 Steve Ellcey <sje@cup.hp.com>
12687
12688 * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
12689 to take ptr_extend into account as third type of extension.
12690 (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
12691 fields used by SUBREG_PROMOTED_UNSIGNED_P.
12692 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
12693 (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
12694 * calls.c (precompute_arguments): Use new macro.
12695 (expand_call): Ditto.
12696 * combine.c (nonzero_bits): Ditto.
12697 (record_promoted_value): Ditto.
12698 * expr.c (store_expr): Ditto.
12699 (expand_expr): Ditto.
12700 * function.c (assign_parms): Ditto.
12701
42d579d8
AO
127022002-02-28 Alexandre Oliva <aoliva@redhat.com>
12703
12704 * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
12705 override -shared and -shared-libgcc.
12706
e0054185
DB
127072002-02-28 David O'Brien <obrien@FreeBSD.org>
12708
12709 * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
12710 of "ultrasparc".
12711 * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS. It appears
12712 to be broken.
12713
abda4f1c
RH
127142002-02-28 Richard Henderson <rth@redhat.com>
12715
12716 * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
12717 4 cycle latency from MM producers.
12718 (ia64_internal_sched_reorder): Likewise with pipeline flush.
12719
c0f08649
JJ
127202002-02-28 Jakub Jelinek <jakub@redhat.com>
12721
12722 * mklibgcc.in: Don't use GNU make extension.
12723
f79f2651
NB
127242002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
12725
12726 * c-parse.in (STATIC): New terminal.
12727 (scspec): New non-terminal. Update productions accordingly.
12728 (program): Remove bogus ifc / end ifc.
12729 (array_declarator): Simplify production using STATIC.
12730
001e3fee
JM
127312002-02-28 Jim Meyering <meyering@lucent.com>
12732
12733 * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
12734 \a still means TARGET_BELL.
12735
89076bb3
RH
127362002-02-28 Richard Henderson <rth@redhat.com>
12737
12738 * haifa-sched.c (sched_emit_insn): New.
12739 (schedule_block): Use last_scheduled_insn to track last insn.
12740 * sched-int.h (sched_emit_insn): Prototype.
12741 * config/ia64/ia64.c (last_issued): Remove.
12742 (ia64_variable_issue): Don't set it.
12743 (nop_cycles_until): Use sched_emit_insn.
12744
e3aaacf4
AM
127452002-02-28 Andrew MacLeod <amacleod@redhat.com>
12746
12747 * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
12748 extended constants.
12749
7f473594
KH
127502002-02-28 Kazu Hirata <kazu@hxi.com>
12751
12752 * config/h8300/h8300.c: Fix formatting.
12753 * config/h8300/h8300.h: Likewise.
12754
b96c434c
MM
127552002-02-28 Marek Michalkiewicz <marekm@amelek.gda.pl>
12756
12757 * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
12758 which may overwrite the high byte of the frame pointer.
12759
9b420a6a
BT
127602002-02-28 Bo Thorsen <bo@suse.de>
12761
12762 * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
12763 (STARTFILE_SPEC): Add 64 bit files.
12764 (ENDFILE_SPEC): Likewise.
12765
6f30f1f1 127662002-02-28 Jason Merrill <jason@redhat.com>
46cfb101
JM
12767
12768 * c-decl.c (finish_function): Only warn about missing return
12769 statement with -Wreturn-type.
12770
70da1d03
JH
12771Don Feb 28 11:24:30 CET 2002 Jan Hubicka <jh@suse.cz>
12772
12773 * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
12774
12775 * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
12776 PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
12777
38c1593d
JH
12778Don Feb 28 11:07:36 CET 2002 Jan Hubicka <jh@suse.cz>
12779
12780 * basic-block.h (BB_REACHABLE): Renumber.
12781 (BB_DIRTY, BB_NEW): New flags.
12782 (clear_bb_flags): Declare.
12783 (update_life_info_in_dirty_blocks): Declare.
12784 * cfg.c (clear_bb_flags): New function.
12785 * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
12786 * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
12787 reorder_insns, emit_insn_after): Mark block as dirty.
12788 * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
12789 (update_life_info_in_dirty_blocks): New function.
12790 * recog.c (apply_change_group): Dirtify block.
12791
12792 * cse.c (cse_insn): Reorder emitting of jump insn to keep
12793 cfg consistent.
12794 * gcse.c (delete_null_pointer_checks): Likewise.
12795
12796 * toplev.c (dump_file_index): Move cse2 after bp,
12797 add DFI_null
12798 (dump_file_info): Similary.
12799 (rest_of_compilation): Avoid most of CFG rebuilds;
12800 do first if converision after null pointer checks, do cse2
12801 after branch prediction; avoid full liveness rebuild after
12802 initializing subregs.
12803 * invoke.texi (-d options): Document -du, renumber.
12804
12805 * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
12806 (notice_new_block): Do not set BB_UPDATE_LIFE.
12807 (try_forward_edges, merge_blocks_move_predecessor_nojumps,
12808 merge_blocks_move_successor_nojumps, merge_blocks,
12809 try_crossjump_to_edge): Likewise.
12810 (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
12811 * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
12812 * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
12813 (merge_of_block): Do not use life_data_ok.
12814 (find_if_case_1): Do not use SET_UPDATE_LIFE.
12815 (if_convert): Use BB_DIRTY mechanizm to update life.
12816 * lcm.c (optimize_mode_switching): Update
12817 update_life_info_in_dirty_blocks
12818
63e1b1c4
NB
128192002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
12820
12821 * Makefile.in (integrate.o): Update.
12822 * c-decl.c (copy_lang_decl): Rename.
12823 * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
12824 * integrate.c: Include langhooks.h.
12825 (copy_decl_for_inlining): Update to use langhook.
12826 * langhooks-def.h (lhd_do_nothing_t,
12827 LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
12828 (LANG_HOOKS_INITIALIZER): Update.
12829 * langhooks.c (lhd_do_nothing_t): New.
12830 * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
12831 * tree.h (copy_lang_decl): Remove.
12832objc:
12833 * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
12834
f472fa29
AM
128352002-02-27 Andrew MacLeod <amacleod@redhat.com>
12836
ba31d94e 12837 * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
f472fa29
AM
12838 POST_DEC, and POST_MODIFY.
12839
273cf2e4
ZW
128402002-02-27 Zack Weinberg <zack@codesourcery.com>
12841
12842 * c-typeck.c (digest_init): Remove unused parameter; all
12843 callers changed.
12844
4e07d762
GK
128452002-02-27 Geoffrey Keating <geoffk@redhat.com>
12846
12847 * expmed.c (expand_shift): Correctly test for low part of a
12848 subreg.
12849
6bc627b3
UW
128502002-02-27 Ulrich Weigand <uweigand@de.ibm.com>
12851
12852 * config/s390/s390.c (s390_chunkify_pool): Do not confuse
12853 insn UIDs with insn addresses.
12854
f458d1d5
ZW
128552002-02-27 Zack Weinberg <zack@codesourcery.com>
12856
12857 * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
12858 c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
12859 cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
12860 builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
12861 gcc.c, toplev.c: Delete code implementing -traditional mode.
12862
12863 * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
12864 doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
12865 Document removal of -traditional mode for compilation, and
12866 remove documentation only relevant to that mode.
12867
12868 * config/nextstep.h, config/ptx4.h, config/svr4.h,
12869 config/convex/convex.h, config/d30v/d30v.h,
12870 config/i386/dgux.h, config/i386/osf1elf.h,
12871 config/i386/osfelf.h, config/i386/osfrose.h,
12872 config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
12873 config/m68k/hp310.h, config/m88k/dgux.h,
12874 config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
12875 config/m88k/m88k.h, config/m88k/openbsd.h,
12876 config/mips/abi64.h, config/mips/osfrose.h,
12877 config/mips/svr4-5.h, config/mips/svr4-t.h,
12878 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
12879 config/stormy16/stormy16.h: Remove all references to
12880 -traditional from target specs. Delete all mention of the
12881 no-longer-necessary TRADITIONAL_RETURN_FLOAT macro. Also
12882 delete a couple of commented-out definitions of
12883 DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
12884 to -traditional.
12885
12886 * system.h: Poison TRADITIONAL_RETURN_FLOAT.
12887 * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
12888
e0b3a8ff
ZW
128892002-02-27 Zack Weinberg <zack@codesourcery.com>
12890
12891 * mklibgcc.in: Don't use \n in a line subject to
12892 interpretation by echo.
12893
5c6a85b7
GS
128942002-02-27 Graham Stott <grahams@redhat.com>
12895
72b05af1
GS
12896 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
12897 Constify NAME.
12898
7d104885
GS
12899 * loop.c (prescan_loop): Handle PARALLEL.
12900
8ed805d2
GS
12901 * unroll.c (loop_iterations): Return 0 if the add_val for
12902 a BIV is REG.
12903
fd478a0a
GS
12904 * final.c (output_operand_lossage): Constify PFX_STR.
12905
5c6a85b7
GS
12906 * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
12907
cd98ad03
JH
12908Wed Feb 27 10:45:19 CET 2002 Jan Hubicka <jh@suse.cz>
12909
12910 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
12911 * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
12912
639ae55b
JH
12913Wed Feb 27 10:39:20 CET 2002 Jan Hubicka <jh@suse.cz>
12914
12915 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
12916
e808ec9c
NB
129172002-02-27 Neil Booth <neil@daikokuya.demon.co.uk>
12918
12919 * cpplex.c (_cpp_lex_token): Handle directives in macro
12920 arguments.
12921 * cpplib.c (_cpp_handle_directive): Save and restore state
12922 if parsing macro args when entering a directive.
12923 * cppmacro.c (collect_args): No need to handle directives
12924 in macro arguments.
12925 (enter_macro_context, replace_args): Use the original macro
12926 definition in case it was redefined whilst collecting arguments.
12927doc:
12928 * cpp.texi: Update.
12929
f585a356
DE
129302002-02-26 David Edelsohn <edelsohn@gnu.org>
12931
12932 * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
12933 * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
12934 * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
12935 method on AIX.
12936 * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
12937 (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
12938 (load_toc_v4_PIC_2): Same.
12939
129402002-02-26 Alan Modra <amodra@bigpond.net.au>
12941
12942 * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
12943
d699058e
RH
129442002-02-26 Richard Henderson <rth@redhat.com>
12945
12946 * config/alpha/alpha.md (ashldi_se): Re-enable.
12947
eadccfbb
RH
129482002-02-26 Richard Henderson <rth@redhat.com>
12949
12950 * config/alpha/alpha.c (alpha_encode_section_info): Examine
12951 MODULE_LOCAL_P; improve commentary.
12952
7080ada1
ZW
129532002-02-26 Zack Weinberg <zack@codesourcery.com>
12954
12955 * doc/cpp.texi: Clarify documentation of relationship between
12956 #line and #include.
12957
b42cff6b
KH
129582002-02-26 Kazu Hirata <kazu@hxi.com>
12959
12960 * config/h8300/h8300-protos.h: Update the prototype for
12961 compute_logical_op_length. Add the prototype for
12962 compute_logical_op_cc.
12963 * config/h8300/h8300.c (compute_logical_op_length): Figure out
12964 code from operands.
12965 (compute_logical_op_cc): New.
12966 * config/h8300/h8300.md: Combine all the logical op patterns
12967 in HImode and SImode. Use compute_logical_op_cc.
12968
831c4e87
KC
129692002-02-26 Kelley Cook <kelleycook@comcast.net>
12970
12971 * config/i386/i386.c (print_operand): Don't append ATT-style
12972 length suffixs to x87 opcodes when in Intel mode.
12973
ff88fe10
RS
129742002-02-26 Ryan T. Sammartino <ryants@shaw.ca>
12975
12976 * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
12977 (init_emit_once): Update calls.
12978 * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
12979 (init_syntax_once): Prototype.
12980
d4108589
JDA
129812002-02-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
12982
12983 * pa-linux.h (LIB_SPEC): Update definition.
12984 * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
12985
e013f3c7
RH
129862002-02-26 Richard Henderson <rth@redhat.com>
12987
12988 * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
12989 if we emitted a stop bit.
12990
9e944a16
JJ
129912002-02-26 Jakub Jelinek <jakub@redhat.com>
12992
12993 * configure.in (libgcc_visibility): Substitute.
12994 * configure: Rebuilt.
12995 * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
12996 defined symbols .hidden.
12997
47bd70b5
JJ
129982002-02-26 Jakub Jelinek <jakub@redhat.com>
12999
13000 * attribs.c (c_common_attribute_table): Add visibility.
13001 (handle_visibility_attribute): New function.
13002 * varasm.c (assemble_visibility): New function.
13003 * output.h (assemble_visibility): Add prototype.
13004 * tree.h (MODULE_LOCAL_P): Define.
13005 * crtstuff.c (__dso_handle): Use visibility attribute.
13006 * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
13007 for MODULE_LOCAL_P symbols too.
13008 * config/ia64/ia64.c (ia64_encode_section_info): Handle
13009 MODULE_LOCAL_P symbols the same way as local symbols.
13010 Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
13011 into .sdata/.sbss by the user.
13012 * doc/extend.texi (Function Attributes): Document visibility
13013 attribute.
13014
6d73371a
JJ
130152002-02-26 Jakub Jelinek <jakub@redhat.com>
13016
13017 PR debug/5770
13018 * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
13019 STRING_CST initializer spanning the whole variable without
13020 embedded zeros.
13021 If expand_expr returned MEM, don't use it.
13022
06e224f7
AO
130232002-02-26 Alexandre Oliva <aoliva@redhat.com>
13024
13025 * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
13026 generate a die for the lexical block.
13027
40367e2d
KH
130282002-02-26 Kazu Hirata <kazu@hxi.com>
13029
13030 * config/h8300/h8300-protos.h: Add a prototype for
13031 compute_logical_op_length.
13032 * config/h8300/h8300.c (compute_logical_op_length): New.
13033 * config/h8300/h8300.md (anonymous logical patterns): Use
13034 compute_logical_op_length for length.
13035
0e98f924
AH
130362002-02-26 Aldy Hernandez <aldyh@redhat.com>
13037
831c4e87
KC
13038 * dwarf2out.c (modified_type_die): Do not call type_main_variant
13039 for vectors.
13040 (gen_type_die): Same.
0e98f924 13041
831c4e87 13042 * attribs.c (handle_vector_size_attribute): Set debug information.
0e98f924 13043
a50cfd52
DE
130442002-02-26 Daniel Egger <degger@fhm.edu>
13045
831c4e87
KC
13046 * config/rs6000/rs6000.md: Swap define_insn attributes to
13047 fix incorrect generation of merge high instructions instead
13048 of merge low.
a50cfd52 13049
b7997284
AH
130502002-02-26 Aldy Hernandez <aldyh@redhat.com>
13051
831c4e87
KC
13052 * c-typeck.c (really_start_incremental_init): Use
13053 bitsize_zero_node for vectors.
b7997284 13054
376aec5d
AH
130552002-02-26 Aldy Hernandez <aldyh@redhat.com>
13056
831c4e87
KC
13057 * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
13058 ("*set_vrsave_internal"): Same.
376aec5d 13059
3b40e71b
RH
130602002-02-25 Richard Henderson <rth@redhat.com>
13061
13062 * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
13063 in EXPAND_SUM case. Use host_integerp/tree_low_cst.
13064
232b8f52
JJ
130652002-02-25 Jakub Jelinek <jakub@redhat.com>
13066
13067 PR target/5755
13068 * config/i386/i386.c (ix86_return_pops_args): Only pop
13069 fake structure return argument if it was passed on the stack.
13070
67282790
JM
130712002-02-25 Jason Merrill <jason@redhat.com>
13072
13073 * attribs.c (decl_attributes): Also re-layout PARM_DECL and
13074 RESULT_DECL.
13075
5c181756
AO
130762002-02-25 Alexandre Oliva <aoliva@redhat.com>
13077
13078 * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
13079 link with shared_name only.
13080 * doc/invoke.texi (Link Options): Document new behavior.
13081
6786d201
AH
130822002-02-25 Aldy Hernandez <aldyh@redhat.com>
13083
831c4e87 13084 * c-typeck.c (push_init_level): Handle vectors.
6786d201 13085
7d6040e8
AO
130862002-02-25 Alexandre Oliva <aoliva@redhat.com>
13087
13088 * config/sparc/sparc.c (const64_high_operand): Zero-extend
13089 operands of SPARC_SETHI_P.
13090 (input_operand): Likewise.
13091 (sparc_emit_set_const32): Likewise.
13092 * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
13093 (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
13094 (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'. Add `N' as SETHI.
13095 * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
13096 (movdi_insn_sp64_vis): Likewise.
13097 (movdi split, movdf split): Use SETHI32.
13098 * doc/md.texi: Document SPARC constraints L, M and N.
13099
b188f760
AH
131002002-02-25 Aldy Hernandez <aldyh@redhat.com>
13101
831c4e87
KC
13102 * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
13103 ("*set_vrsave_internal"): use mfspr for Darwin.
b188f760 13104
831c4e87
KC
13105 * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
13106 gen_get_vrsave_internal.
b188f760 13107
8041889f
RK
13108Sun Feb 24 16:38:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13109
13110 * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
13111
a47ed310
NB
131122002-02-24 Neil Booth <neil@daikokuya.demon.co.uk>
13113
13114 * cpplex.c (cpp_interpret_charconst): Get signedness or
13115 otherwise of wide character constants correct.
13116 * cppexp.c (lex): Get signedness of wide charconsts correct.
13117
cb8f73be
RK
13118Sun Feb 24 07:41:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13119
13120 * optabs.c (widen_operand): Only call convert_modes for
13121 promoted SUBREG if signedness matches.
13122 * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
13123
2450e0b8
NB
131242002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
13125
13126 * cpplib.c (glue_header_name): Use local buffer to build up
13127 header name.
13128
70b6aaed
NB
131292002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
13130
13131 * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
13132
6be580c7
KH
131332002-02-23 Kazu Hirata <kazu@hxi.com>
13134
13135 * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
13136 H8/300[HS] separately.
13137 * config/h8300/h8300.md: Remove the early clobber constraint
13138 from bit field patterns.
13139
35dad9f1
KH
131402002-02-23 Kazu Hirata <kazu@hxi.com>
13141
13142 * config/h8300/h8300.md (mulqihi3): Tighten predicates to
13143 register_operand.
13144 (mulhisi3): Likewise.
13145 (umulqisi3): Likewise.
13146 (umulhisi3): Likewise.
13147
ab8e2228
NB
131482002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
13149
13150 * cppinit.c (output_deps): Correct test for stdout output.
13151 (init_dependency_output): Cure warning.
13152
ac6f8a15
RK
13153Sat Feb 23 08:42:47 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13154
13155 * expr.c (store_expr): When converting expression to promoted
13156 equivalent type, allow using SUBREG_REG of TARGET as the target
13157 of the expansion of EXP.
13158 * loop.c (basic_induction_var, case SUBREG): Always look inside.
13159 * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
13160 (alpha_emit_set_const): Handle SImode when can't make new pseudos.
13161 (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
13162 * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
13163
f282ffb3
JM
131642002-02-23 Joseph S. Myers <jsm28@cam.ac.uk>
13165
13166 * doc/contribute.texi, doc/extend.texi, doc/install.texi,
13167 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
13168 doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
13169
44c5edc0
JJ
131702002-02-23 Jakub Jelinek <jakub@redhat.com>
13171
13172 PR optimization/5747
13173 * loop.c (scan_loop): Update reg info if move_movables created new
13174 pseudos.
13175
f98e43c0
DE
131762002-02-23 David Edelsohn <edelsohn@gnu.org>
13177
13178 * gcc.c (init_gcc_spec): Revert last change.
13179
e72247f4
DE
131802002-02-23 David Edelsohn <edelsohn@gnu.org>
13181
13182 * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
13183 gpc_reg_operand constraint.
13184
131852002-02-23 Alan Modra <amodra@bigpond.net.au>
13186
13187 * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
13188 Simplify comparison of `low'.
13189 (add_operand): Fix formatting.
13190 (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
57deb3a1 13191 (mask_operand): Disallow mask to wrap in 64-bit mode.
e72247f4
DE
13192 (rs6000_stack_info): Remove redundant test setting push_p.
13193 (output_toc): Fix formatting.
13194 * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
13195 cc_reg_not_cr0_operand constraint.
13196 (booldi3, boolcdi3 splitters): Same.
13197
a5c30531
AH
131982002-02-23 Aldy Hernandez <aldyh@redhat.com>
13199
831c4e87 13200 * config/rs6000/altivec.h: Add extra level of parentheses on casts.
a5c30531 13201
43710f9f
DE
132022002-02-22 David Edelsohn <edelsohn@gnu.org>
13203
13204 * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
13205 gcc invoked with -shared-libgcc.
13206
3256b817
JJ
132072002-02-22 Jakub Jelinek <jakub@redhat.com>
13208
13209 PR c++/5748
13210 * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
13211 decl if any of elements was TREE_USED.
13212
9e0625a3
AO
132132002-02-22 Alexandre Oliva <aoliva@redhat.com>
13214
13215 * config/sparc/sol2.h: Don't include sys/mman.h.
13216 * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
13217 (arith_4096_operand): Don't throw high bits away.
13218 (const64_operand): Take sign extension of CONST_INTs into account.
13219 (const64_high_operand, sparc_emit_set_const32): Likewise.
13220 (GEN_HIGHINT64): Likewise.
13221 (sparc_emit_set_const64_quick1): Likewise.
13222 (const64_is_2insns): Likewise.
13223 (print_operand): Use trunc_int_for_mode for sign extension.
13224 * config/sparc/sparc.h (SMALL_INT32): Likewise.
13225 * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
13226 chars. Assume CONST_INT is already properly sign-extended.
13227 (movdi split): Sign-extend each SImode part.
13228 (andsi3 split): Don't mask high bits off, so that result
13229 remains properly sign-extend.
13230 (iorsi3 split): Likewise.
13231 (xorsi3 split): Likewise.
13232
54fec3d5
RS
132332002-02-22 Richard Sandiford <rsandifo@redhat.com>
13234
13235 * fold-const.c (fold): Fix typo in comments.
13236
667ada9b
DN
132372002-02-21 Diego Novillo <dnovillo@redhat.com>
13238
13239 * Makefile.in (langhooks.o): Update dependencies.
13240
29ac78d5
DN
132412002-02-21 Diego Novillo <dnovillo@redhat.com>
13242
13243 * langhooks.c: Include flags.h.
13244
6aa77e6c
AH
132452002-02-21 Aldy Hernandez <aldyh@redhat.com>
13246
13247 * testsuite/gcc.dg/attr-alwaysinline.c: New.
13248
13249 * c-common.c (c_common_post_options): Set inline trees by
13250 default.
13251
13252 * doc/extend.texi (Function Attributes): Document always_inline
13253 attribute.
13254 Update documentation about inlining when not optimizing.
13255
13256 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
13257
13258 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
13259 unless DECL_ALWAYS_INLINE.
13260
13261 * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
13262 unless DECL_ALWAYS_INLINE.
13263 (c_disregard_inline_limits): Disregard if always_inline set.
13264
13265 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
13266 Disregard if always_inline set.
13267 (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
13268 unless DECL_ALWAYS_INLINE.
13269
13270 * attribs.c (handle_always_inline_attribute): New.
13271 (c_common_attribute_table): Add always_inline.
13272
13273 * config/rs6000/altivec.h: Add prototypes for builtins
13274 requiring the always_inline attribute.
13275
c410d49e
EC
132762002-02-21 Eric Christopher <echristo@redhat.com>
13277
13278 * expmed.c (store_bit_field): Try to simplify the subreg
13279 before generating a new one when when the mode size of
13280 value is less than maxmode.
13281
e3c8ea67
RH
132822002-02-21 Richard Henderson <rth@redhat.com>
13283
13284 * emit-rtl.c (offset_address): Use simplify_gen_binary rather
13285 than gen_rtx_PLUS to form the sum.
13286 * explow.c (force_reg): Rearrange to not allocate new pseudo
13287 when force_operand returns a register.
13288 * expr.c (expand_assignment): Allow offset_rtx expansion to
13289 return a sum. Do not force addresses into registers.
13290 (expand_expr): Likewise.
13291 * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
13292 to canonicalize arithmetic that didn't simpify.
13293 (simplify_plus_minus): New argument force; update
13294 all callers. Don't split CONST unless we can do something with it,
13295 and wouldn't lose the constness of the operands.
13296
13297 * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
13298 that we generated earlier.
13299
c1a046e5
TT
133002002-02-21 Tom Tromey <tromey@redhat.com>
13301
13302 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
13303 (output_line_info): Use constant `1', with a long explanatory
13304 comment.
13305 * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
13306
31fbaad4
R
13307Thu Feb 21 22:43:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
13308
13309 * jump.c (redirect_jump): If old label has no UID, don't try to
13310 delete it.
13311
a7f52356
R
13312Thu Feb 21 21:17:21 2002 J"orn Rennecke <joern.rennecke@superh.com>
13313
13314 * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
13315 If input is constant, do shifts at compile time.
13316
924fcc4e
JM
133172002-02-21 Joseph S. Myers <jsm28@cam.ac.uk>
13318
13319 * doc/extend.texi: Fix some more overfull hboxes.
13320
e5a20888
JJ
133212002-02-21 Jakub Jelinek <jakub@redhat.com>
13322
13323 PR optimization/4994
13324 * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
13325 register moves.
13326
133272002-02-21 Jakub Jelinek <jakub@redhat.com>
22273300
JJ
13328
13329 PR c++/4574
13330 * expr.h (expand_and): Add mode argument.
13331 * expmed.c (expand_and): Add mode argument.
13332 (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
13333 * expr.c (store_field, expand_expr, do_store_flag): Likewise.
13334 * except.c (expand_builtin_extract_return_addr): Likewise.
13335 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
13336 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
13337 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
13338 Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
13339 * config/c4x/c4x.md: Use GEN_INT (x) instead of
13340 gen_rtx (CONST_INT, VOIDmode, x).
13341
7133e992
JJ
133422002-02-21 Jakub Jelinek <jakub@redhat.com>
13343
13344 PR c/4697:
13345 * stmt.c (warn_if_unused_value): Move side effects test once more.
13346
e2ec05a6
TG
133472002-02-20 Torbjorn Granlund <tege@swox.com>
13348
13349 * config/avr/avr.md: Add more patterns for mized-mode add and subtract
831c4e87 13350 (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
e2ec05a6 13351
9dd791c8
AO
13352Thu Feb 21 16:20:46 2002 Alexandre Oliva <aoliva@redhat.com>
13353
13354 * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
13355 SUBREG or ZERO_EXTEND.
13356
7ab56274
R
13357Thu Feb 21 15:35:46 2002 J"orn Rennecke <joern.rennecke@superh.com>
13358
13359 * sh.h (current_function_anonymous_args): Remove.
13360 (SETUP_INCOMING_VARARGS): Don't set it - just check that one
13361 of current_function_varargs and current_function_stdarg is set.
13362 * sh.c (sh_expand_prologue): Check current_function_varargs /
13363 current_function_stdarg / TARGET_SH5 instead of
13364 current_function_anonymous_args.
13365
13366 * sh64.h (TARGET_VERSION): Define.
13367
b1765bde
DE
133682002-02-20 David Edelsohn <edelsohn@gnu.org>
13369
13370 * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
13371 VRSAVE_REGNO on TARGET_ALTIVEC.
13372
133732002-02-20 Alan Modra <amodra@bigpond.net.au>
13374
13375 * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
13376 bits of SImode const_int.
13377 (includes_rshift_p): Likewise.
13378 (print_operand): Call mask_operand and mask64_operand with correct
c410d49e 13379 mode.
b1765bde
DE
13380 (rs6000_output_function_epilogue): Pad traceback table to word.
13381 * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
13382 (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
13383 mask64_operand with correct mode.
b1765bde
DE
13384 (FUNCTION_ARG_REGNO_P): Correct parentheses.
13385
149d6f9e
JJ
133862002-02-20 Jakub Jelinek <jakub@redhat.com>
13387
13388 PR debug/4461
13389 * varasm.c (get_pool_constant_mark): New.
13390 * rtl.h (get_pool_constant_mark): Add prototype.
13391 * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
13392 be represented if it has not been output.
13393
4161da12
AO
133942002-02-20 Alexandre Oliva <aoliva@redhat.com>
13395
13396 * combine.c (do_SUBST): Sanity check substitutions of
13397 CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
13398 (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
13399 CONST_INT into its operand.
13400 (known_cond): Likewise, for ZERO_EXTEND.
13401 * simplify-rtx.c (simplify_unary_operation): Fix condition to
13402 allow for simplification of wide modes. Reject CONST_INTs in
13403 ZERO_EXTEND when their actual mode is not given.
13404
3704ef74
AO
134052002-02-20 Alexandre Oliva <aoliva@redhat.com>
13406
13407 * c-decl.c (pushdecl): If no global declaration is found for an
13408 extern declaration in block scope, try a limbo one.
13409
7552da58
JJ
134102002-02-20 Jakub Jelinek <jakub@redhat.com>
13411
13412 PR c++/4401
13413 * c-common.c (pointer_int_sum): Moved from...
13414 * c-typeck.c (pointer_int_sum): ...here.
13415 * c-common.h (pointer_int_sum): Add prototype.
13416
00fae85d
JJ
134172002-02-20 Jakub Jelinek <jakub@redhat.com>
13418
13419 PR c++/5713
13420 * c-decl.c (duplicate_decls): Return 0 if issued error about
13421 redeclaration.
13422
4636c87e
JJ
134232002-02-20 Roger Sayle <roger@eyesopen.com>
13424 Jakub Jelinek <jakub@redhat.com>
13425
13426 PR c/4389
13427 * tree.c (host_integerp): Ensure that the constant integer is
13428 representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
13429 when pos is zero or non-zero respectively. Clarify comment.
13430 * c-format.c (check_format_info_recurse): Fix host_integerp
13431 usage; the pos argument should be zero when assigning to a
13432 signed HOST_WIDE_INT.
13433
59bef189
RH
134342002-02-20 Richard Henderson <rth@redhat.com>
13435
13436 * config/i386/i386.c (ix86_expand_vector_move): Use the mode
13437 of the operand, rather than assuming TImode.
13438 (ix86_expand_binop_builtin): Cope with commutative patterns
13439 using nonimmediate_operand for both operands.
13440 (ix86_expand_timode_binop_builtin): Likewise.
13441 (ix86_expand_store_builtin): Validate operand 1.
13442 (ix86_expand_unop1_builtin): Likewise.
13443
9338ffe6 134442002-02-20 Philip Blundell <philb@gnu.org>
c410d49e 13445
9338ffe6
PB
13446 PR 5705
13447 * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
13448
f322b423
RH
134492002-02-20 Richard Henderson <rth@redhat.com>
13450
13451 PR c/5615
13452 * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
13453
d94084f7
TT
134542002-02-20 Tom Tromey <tromey@redhat.com>
13455
13456 * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
13457 * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
13458 * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
13459 * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
13460 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
13461 unconditionally.
13462
37fa124a
AM
13463Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
13464
13465 * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
13466 for (const_int 0) in X not just INTVAL.
13467
6e5bb5ad
JM
134682002-02-20 Joseph S. Myers <jsm28@cam.ac.uk>
13469
13470 * doc/extend.texi: Avoid or reduce overfull hboxes.
13471
420e7dfa
DN
134722002-02-20 Diego Novillo <dnovillo@redhat.com>
13473
13474 * expmed.c (store_bit_field): Do not store bit fields using SUBREG
13475 operations if the field does not start at a mode boundary.
13476
1b7a2af6
JS
134772001-02-20 Joel Sherrill <joel@OARcorp.com>
13478
13479 * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
13480 config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
13481 Also done for -Acpu and -Amachine.
13482
56cd5b95
NB
134832002-02-20 Neil Booth <neil@daikokuya.demon.co.uk>
13484
13485 * cppinit.c (init_dependency_output): Take deps output file
13486 from -o if none given with -MF. Suppress normal output.
c410d49e 13487 * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
56cd5b95
NB
13488 * doc/cpp.texi, doc/invoke.texi: Update.
13489
042cdf71
ZW
134902002-02-19 Zack Weinberg <zack@codesourcery.com>
13491
13492 * toplev.c (output_quoted_string): Write unprintable
13493 characters with octal escapes.
13494
c1f11548
DE
134952002-02-19 David Edelsohn <edelsohn@gnu.org>
13496
13497 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
13498 really_call_used[VRSAVE_REGNO] if not Altivec.
13499
135002002-02-19 Alan Modra <amodra@bigpond.net.au>
c410d49e 13501
c1f11548
DE
13502 * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
13503 MODE_MASK.
13504 (constant_pool_expr_1): Fix formatting.
13505 (rs6000_legitimize_reload_address): Likewise.
13506
c964d90e
RK
13507Tue Feb 19 20:13:57 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13508
13509 * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
13510 now that we have one.
13511
ae34ac46
ZW
135122002-02-19 Zack Weinberg <zack@codesourcery.com>
13513
13514 * tree.h (struct tree_common): Remove aux. Add unused_0 at
13515 end of first block of bitfields (which was only seven bits);
13516 rename dummy to unused_1; remove comment which is no longer true.
13517
293c28ee
GS
135182002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
13519
13520 * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
13521
7b8781c8
PB
135222002-02-19 Philip Blundell <pb@nexus.co.uk>
13523
0cb6c58d 13524 PR 5399
7b8781c8
PB
13525 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
13526 if generating PIC.
13527
13528 PR 5054
13529 * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
13530 arm_is_longcall_p rather than inspecting call-type cookie
13531 directly.
13532 (call_value_insn) [TARGET_THUMB]: Likewise.
13533
5c464583
GS
135342002-02-19 Graham Stott <grahams@redhat.com>
13535
13536 * config/i386/i386.c (ix86_expand_builtin): Fix typo.
13537
71c061e6
DE
135382002-02-19 David Edelsohn <edelsohn@gnu.org>
13539
13540 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
13541 ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
6d1def5c 13542 (FP_SAVE_INLINE): Delete.
71c061e6
DE
13543
13544 * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
13545 * config/rs6000/eabi.asm: Remove ABI save restore routines.
13546 * config/rs6000/t-ppccomm: Build crtsavres.o.
13547 * config/rs6000/crtsavres.asm: New file.
13548
3a7731fd
PB
135492002-02-19 Philip Blundell <philb@gnu.org>
13550
13551 * config/arm/arm.c (use_return_insn): Don't reject interrupt
13552 functions.
13553 (arm_compute_save_reg_mask): Save LR for interrupt functions too.
13554 (output_return_instruction): Allow interrupt functions to return with
13555 ldmfd sp!, {... pc}^. Use LDR to restore any single register.
13556 (arm_expand_prologue): Subtract 4 before stacking LR in an
13557 interrupt function.
13558
14f583b8
PB
135592002-02-19 Philip Blundell <pb@nexus.co.uk>
13560
13561 * config/arm/arm.c (arm_encode_call_attribute): Operate on any
13562 decl, not just FUNCTION_DECL.
13563 (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
13564 (arm_assemble_integer): Likewise.
13565 * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
13566 marked local.
c410d49e 13567
4cb7482c
MG
135682002-02-19 matthew green <mrg@eterna.com.au>
13569
13570 * config.gcc (sparc-*-netbsdelf*): Enable target.
13571 (sparc64-*-netbsd*): New target.
13572 * config/sparc/netbsd-elf.h: New file.
13573 * config/sparc/t-netbsd64: New file.
13574
2df3a718
GS
135752002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
13576
13577 * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
13578
77f6c1eb
RS
135792002-02-19 Ryan T. Sammartino <ryants@shaw.ca>
13580
13581 * doc/invoke.texi: explicitly list the style guidelines that
13582 -Weffc++ checks for.
13583
fd973d56
JH
13584Tue Feb 19 12:37:23 CET 2002 Jan Hubicka <jh@suse.cz>
13585
13586 * regmove.c (regmove_optimize): Avoid increasing of register pressure.
13587
30518e45
NB
135882002-02-19 Neil Booth <neil@daikokuya.demon.co.uk>
13589
13590 PR other/5718
13591 * gcc.c (cpp_unique_options): Treat -o as indicating object file
13592 only if not -E. If -E, pass -o through to the preprocessor.
13593
39ea5704
KH
135942002-02-19 Kazu Hirata <kazu@hxi.com>
13595
13596 * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
13597 register number with an appropriate macro.
13598
7355dba7
BM
135992002-02-19 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
13600
13601 * doc/rtl.texi (Constants): Close @code tag.
13602
91c8aa9e
AH
136032002-02-19 Aldy Hernandez <aldyh@redhat.com>
13604
13605 * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
13606 ("mmx_uavgv4hi3"): Same.
13607 ("pmulhrwv4hi3"): Same.
13608
13609 * tree-inline.c (walk_tree): Handle vectors.
13610
13611 * c-common.c (constant_expression_warning): Handle vectors.
13612 (overflow_warning): Same.
13613
13614 * sched-deps.c (sched_analyze_2): Handle vectors.
13615
13616 * rtlanal.c (rtx_unstable_p): Handle vectors.
13617 (rtx_varies_p): Same.
13618 (count_occurrences): Same.
13619 (regs_set_between_p): Same.
13620 (modified_between_p): Same.
13621 (modified_in_p): Same.
13622 (volatile_insn_p): Same.
13623 (volatile_refs_p): Same.
13624 (side_effects_p): Same.
13625 (may_trap_p): Same.
13626 (inequality_comparisons_p): Same.
13627 (replace_regs): Same.
13628 (computed_jump_p_1): Same.
13629
13630 * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
13631 argument.
13632 (inner_mode_array): New.
13633 (copy_rtx): Handle vectors.
13634 (copy_most_rtx): Same.
13635 (rtx_equal_p): Same.
13636 (get_mode_alignment): Adjust for vectors.
13637
13638 * resource.c (mark_referenced_resources): Handle vectors.
13639 (mark_set_resources): Same.
13640
13641 * reload1.c (eliminate_regs): Handle vectors.
13642 (elimination_effects): Same.
13643 (scan_paradoxical_subregs): Same.
13644
13645 * reload.c (subst_reg_equivs): Handle vectors.
13646
13647 * regrename.c (scan_rtx): Handle vectors.
13648
13649 * regclass.c (reg_scan_mark_refs): Handle vectors.
13650
13651 * recog.c (find_single_use_1): Handle vectors.
13652
13653 * local-alloc.c (equiv_init_varies_p): Handle vectors.
13654 (contains_replace_regs): Same.
13655 (memref_referenced_p): Same.
13656
13657 * integrate.c (copy_rtx_and_substitute): Handle vectors.
13658 (subst_constants): Same.
13659
13660 * genattrtab.c (attr_copy_rtx): Handle vectors.
13661 (encode_units_mask): Same.
13662 (clear_struct_flag): Same.
13663 (count_sub_rtxs): Same.
13664
13665 * gcse.c (want_to_gcse_p): Handle vectors.
13666 (oprs_unchanged_p): Same.
13667 (hash_expr_1): Same.
13668 (oprs_not_set_p): Same.
13669 (expr_killed_p): Same.
13670 (compute_transp): Same.
13671 (store_ops_ok): Same.
13672
13673 * function.c (purge_addressof_1): Do not allow paradoxical subregs
13674 of vectors.
13675 (fixup_var_refs_1): Same.
13676 (instantiate_virtual_regs_1): Same.
13677
13678 * fold-const.c (operand_equal_p): Handle vectors.
13679 (fold): Same.
13680 (rtl_expr_nonnegative_p): Same.
13681
13682 * flow.c (mark_used_regs): Handle vectors.
13683
13684 * df.c (df_uses_record): Handle vectors.
13685
13686 * cselib.c (cselib_subst_to_values): Handle vectors.
13687 (cselib_mem_conflict_p): Same.
13688 (hash_rtx): Same.
13689
13690 * cse.c (canon_reg): Handle vectors.
13691 (fold_rt): Same.
13692 (cse_process_notes): Same.
13693 (count_reg_usage): Same.
13694 (canon_hash): Same.
13695
13696 * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
13697
13698 * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
13699
13700 * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
13701 (gen_rtx): Handle CONST_VECTOR.
13702 (gen_const_vector_0): New.
13703 (copy_rtx_if_shared): CONST_VECTORs can be shared.
13704 (reset_used_flags): Same.
13705 (copy_insn_1): Same.
13706 (initializer_constant_valid_p): Handle VECTOR_CST.
13707
13708 * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
13709
13710 * doc/rtl.texi (Constants): Document const_vector.
13711 (CONST0_RTX): Update for vectors.
13712 (RTL sharing): Same.
13713
13714 * print-tree.c (print_node): Add case for VECTOR_CST.
13715
13716 * tree.h (TREE_VECTOR_CST_ELTS): New.
13717 (struct tree_vector): New.
13718 (union tree_node): Add vector node.
13719 (build_vector): Add prototype.
13720
13721 * tree.def (VECTOR_CST): New.
13722
13723 * tree.c (build_vector): New.
13724
13725 * expmed.c (make_tree): Handle CONST_VECTOR.
13726
13727 * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
13728 (CONST_VECTOR_ELT): New.
13729 (CONST_VECTOR_NUNITS): New.
13730
13731 * machmode.h (GET_MODE_INNER): New.
13732 (DEF_MACHMODE): Accept 8th arg.
13733
13734 * machmode.def: Add 8th argument for vector inner mode.
13735 Add inner vector modes for vectors.
13736
13737 * rtl.def (VEC_CONST): Remove.
13738 (CONST_VECTOR): New.
13739
13740 * expr.c (clear_storage): Allow vectors.
13741 (is_zeros_p): Handle VECTOR_CST.
13742
13743 * varasm.c (output_constant_pool): Handle vectors.
13744 (rtx_const): Add veclo and vechi fields.
13745 (kind): Add RTX_VECTOR.
13746 (decode_rtx_const): Add case for vector.
13747
13748 * config/rs6000/rs6000-protos.h: Add zero_constant.
c410d49e 13749
91c8aa9e
AH
13750 * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
13751 constants. Force easy vector constants into memory.
13752 (easy_vector_constant): New.
13753 (emit_easy_vector_constant): New.
13754 (rs6000_legitimize_reload_address): Do not generate bad reloads on
13755 darwin.
13756
13757 * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
13758 instruction does.
13759 ("altivec_lvxl"): Same.
13760 (altivec_lvebx): Same.
13761 (altivec_lvehx): Same.
13762 (altivec_lvewx): Same.
13763 ("*movv4si_const0"): New.
13764 ("*movv4sf_const0"): New.
13765 ("*movv8hi_const0"): New.
13766 ("*movv16qi_const0"): New.
13767
d4d6d0ce
KH
137682002-02-18 Kazu Hirata <kazu@hxi.com>
13769
13770 * config/h8300/h8300.c (notice_update_cc): Use
13771 cc_status.value2.
13772
4915d3aa
KH
137732002-02-18 Kazu Hirata <kazu@hxi.com>
13774
13775 * config/h8300/h8300.md (divmod patterns): Change the
13776 constraints for operands[1] to register_operand.
13777
82be00ee
KH
137782002-02-18 Kazu Hirata <kazu@hxi.com>
13779
13780 * config/h8300/h8300-protos.h: Remove the prototype for
13781 p_operand.
13782 * config/h8300/h8300.c (p_operand): Remove.
13783 * config/h8300/h8300.md: Replace p_operand with
13784 const_int_operand.
13785
1768c26f
PB
137862002-02-18 Philip Blundell <pb@nexus.co.uk>
13787
13788 * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
13789 comment.
13790 (output_return_instruction): Allow use of LDR to unstack
13791 return addresss even for interrupt handlers or when
13792 interworking. If compiling for ARMv5, use interworking-safe
13793 return instructions by default. Remove duplicated code and
13794 lengthy "strcat" sequences.
13795
ccd84f51
FS
137962002-02-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
13797
13798 * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
13799 (LINK_EH_SPEC): Define.
13800 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
13801
2c153108
UW
138022002-02-18 Ulrich Weigand <uweigand@de.ibm.com>
13803
13804 * config/s390/s390.c (s390_emit_prologue): Do not set the
13805 frame_related flag for call-clobbered registers.
13806
e95d6b23
JH
13807Mon Feb 18 15:07:35 CET 2002 Jan Hubicka <jh@suse.cz>
13808
13809 * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
13810 (construct_container): Fix handling of SSE operands.
13811 (ix86_expand_builtin): Fix handling of 64bit pointers.
13812 (mmx_maskmovq_rex): New pattern.
13813
c43a12b5
JH
13814Mon Feb 18 11:55:55 CET 2002 Jan Hubicka <jh@suse.cz>
13815
13816 * regrename.c (kill_set_value): Handle subregs properly.
13817
aeb85a15
DB
138182002-02-18 David Billinghurst <David.Billinghurst@riotinto.com>
13819
13820 * objc/objc-act.c (handle_impent): Remove leading '*'
c410d49e 13821 from objc_class_name.
aeb85a15 13822
a615ca3e
RH
138232002-02-17 Richard Henderson <rth@redhat.com>
13824
13825 * config/alpha/alpha.c (some_small_symbolic_operand,
13826 some_small_symbolic_operand_1, split_small_symbolic_operand,
13827 split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
13828 Handle small SYMBOL_REFs anywhere, not just inside memories.
13829 * config/alpha/alpha-protos.h: Update.
13830 * config/alpha/alpha.h (PREDICATE_CODES): Update.
13831 * config/alpha/alpha.md (small symbolic operand splitter): Update.
13832
ddb28441
RM
138332002-02-17 Roland McGrath <roland@frob.com>
13834
13835 * config.gcc (powerpc-*-gnu-gnualtivec*,
13836 powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
13837 * config/rs6000/gnu.h: New file.
13838 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
13839 Grok "gnu" in rs6000_abi_name.
13840 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
13841 CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
13842 Grok -mcall-gnu analogous to -mcall-linux et al.
13843 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
13844 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
13845 (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
13846
f6f8ada3
JJ
138472002-02-17 Jakub Jelinek <jakub@redhat.com>
13848
13849 PR c/3444:
13850 * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
13851 shortening.
13852
e16b32fc
PT
138532002-02-17 Philipp Thomas <pthomas@suse.de>
13854
13855 * config/cris/cris.h: Undefine STARTFILE_SPEC and
13856 ENDFILE_SPEC before (re)defining them.
13857
f9477efd
KH
138582002-02-17 Kazu Hirata <kazu@hxi.com>
13859
13860 * config/h8300/h8300.c: Fix formatting.
13861 * config/h8300/h8300.h: Likewise.
13862
404ae494
PT
138632002-02-17 Philipp Thomas <pthomas@suse.de>
13864
13865 * doc/tm.texi: Explain why empty strings should not be
13866 marked for translation.
13867
a52453cc
PT
138682002-02-17 Philipp Thomas <pthomas@suse.de>
13869
13870 * final.c (output_operand_lossage): Changed to accept
13871 printf style arguments. Change calls where necessary.
13872 * output.h (output_operand_lossage): Change declaration
13873 accordingly. Update copyright.
13874 * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
13875 config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
13876 Update copyright date where necessary.
c410d49e 13877
a52453cc
PT
13878 * config/i386/i386.c (print_operand): Likewise. Remove use of
13879 sprintf.
13880
13881 * config/cris/cris.c (cris_operand_lossage): Likewise.
13882 Rename parameter so that exgettext recognizes it as
13883 translatable message.
13884 (LOSE_AND_RETURN): Rename parameter to msgid.
13885
1c11abc4
KH
138862002-02-17 Kazu Hirata <kazu@hxi.com>
13887
13888 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
13889 hard coded register number with an appropriate macro.
13890 (HARD_REGNO_MODE_OK): Likewise.
13891 (ARG_POINTER_REGNUM): Likewise.
13892 (STATIC_CHAIN_REGNUM): Likewise.
13893 (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
13894 * config/h8300/h8300.md (define_constants): Define more
13895 register numbers.
13896
a5d17ff3
PT
138972002-02-17 Philipp Thomas <pthomas@suse.de>
13898
13899 * config/i386/i386.h: Don't mark empty strings for translation.
13900
1a7289c4
L
139012002-02-16 H.J. Lu <hjl@gnu.org>
13902
13903 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
13904
afb58288
ZW
139052002-02-16 Zack Weinberg <zack@codesourcery.com>
13906
13907 * cppinit.c (merge_include_chains): Check for brack being
13908 NULL before attempting to merge it with qtail.
13909
d2af4dbd
AC
139102002-02-16 Andrew Cagney <ac131313@redhat.com>
13911
13912 * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
13913 DBX_DEBUG.
13914
2e1ed1e3
JDA
139152002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
13916
13917 * pa/t-pa, pa/t-pro, som.h: Revert last patch.
13918
604c75b2
JDA
139192002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
13920
13921 * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
13922 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
13923 * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
13924
1a42b072
RK
13925Sat Feb 16 13:48:50 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13926
7303604f 13927 * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
1a42b072
RK
13928 now only if !TARGET_FIX.
13929 (*movsi_nt_vms_fix): New pattern.
13930
c2ea1ac6
DR
139312002-02-16 Douglas B Rupp <rupp@gnat.com>
13932
13933 * config/alpha/alpha.c: Implement null frame procedure types on VMS.
13934 (alpha_procedure_type): Replaces alpha_is_stack_procedure.
13935 (alpha_sa_mask, alpha_sa_size): Reflect above change.
13936 (alpha_pv_save_size, alpha_expand_prologue): Likewise.
13937 (alpha_start_function, alpha_expand_epilogue): Likewise.
13938 (unicosmk_gen_dsib): Likewise.
13939
725e58b1
RK
13940Sat Feb 16 13:39:09 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13941
13942 * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
13943
13e58269
UW
139442002-02-16 Ulrich Weigand <uweigand@de.ibm.com>
13945
c410d49e 13946 * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
13e58269
UW
13947 check_and_change_labels, s390_final_chunkify): Delete.
13948 (s390_split_branches, s390_chunkify_pool): New functions.
13949 (s390_function_prologue): Call them.
c410d49e 13950
13e58269
UW
13951 * config/s390/s390.h (S390_REL_MAX): Delete.
13952 (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
13953
c410d49e 13954 * config/s390/s390.md (cjump, icjump, jump): Fix length
13e58269
UW
13955 attribute calculation.
13956
13957
34d1b01d
DE
139582002-02-15 David Edelsohn <edelsohn@gnu.org>
13959
13960 * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
13961 * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
13962
be5cc51a
JDA
139632002-02-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
13964
13965 * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
13966 * config/pa/pa-linux.h (LIB_SPEC): Likewise.
13967 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
13968
ee96ce90
RS
139692002-02-15 Richard Sandiford <rsandifo@redhat.com>
13970
13971 * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
13972
05fa709d
RS
139732002-02-15 Richard Sandiford <rsandifo@redhat.com>
13974
13975 * reload.c (find_dummy_reload): Check that an output register
13976 is valid for its mode.
13977
4606272b
AO
139782002-02-14 Alexandre Oliva <aoliva@redhat.com>
13979
9a360704
AO
13980 * combine.c (known_cond): After replacing the REG of a SUBREG, try
13981 to simplify it.
13982
4606272b
AO
13983 * function.c (assign_parms): Demote promoted argument passed by
13984 transparent reference.
13985
e62d89a1
JS
139862001-02-14 Joel Sherrill <joel@OARcorp.com>
13987
13988 * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
13989 -Acpu() and -Amachine() to eliminate warnings.
13990
6c4cf695
UW
139912002-02-14 Ulrich Weigand <uweigand@de.ibm.com>
13992
13993 * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
13994
037f11ef
KH
139952002-02-14 Kazu Hirata <kazu@hxi.com>
13996
13997 * config/h8300/h8300-protos.h: Update the prototype for
13998 const_costs.
13999 * config/h8300/h8300.c (const_costs): Treat SET as a little
14000 more expensive operation.
14001 * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
14002 reference to const_costs.
14003
fdc76b09
HPN
140042002-02-14 Hans-Peter Nilsson <hp@axis.com>
14005
14006 * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
14007
d76e6800
JJ
140082002-02-14 Jakub Jelinek <jakub@redhat.com>
14009
14010 PR c/5503:
14011 * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
14012 use arguments from newtype.
14013
5ae590d7
EC
140142002-02-13 Eric Christopher <echristo@redhat.com>
14015
14016 * config/mips/mips.c (override_options): Add check for march/mipsX
14017 on the same command line. Fix error message in cpu processing.
14018 Remove architecture and ISA checks.
14019
b8513691
AH
140202002-02-14 Aldy Hernandez <aldyh@redhat.com>
14021
831c4e87 14022 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
b8513691 14023
831c4e87 14024 * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
b8513691 14025
78c875e8
AH
140262002-02-14 Aldy Hernandez <aldyh@redhat.com>
14027
831c4e87
KC
14028 * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
14029 alternatives.
14030 ("*movv8hi_internal1"): Same.
14031 ("*movv16qi_internal1"): Same.
14032 ("*movv4sf_internal1"): Same.
78c875e8 14033
831c4e87
KC
14034 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
14035 not push_reload for altivec modes.
78c875e8 14036
d76e6800 140372002-02-13 Joel Sherrill <joel@OARcorp.com>
f22b4bc4
JS
14038
14039 * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
14040 all RTEMS targets including removal of #includes from config/*/rtems*.h
14041 file and adding them to tm_file setting. Added xm_defines=POSIX to
14042 many targets.
14043 * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
14044 * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
14045 * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
14046 * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
14047 * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
14048 config/m68k/rtemself.h: Ditto.
14049 * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
14050 config/mips/rtems64.h: Ditto.
14051 * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
14052 * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
14053 Ditto.
14054 * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
14055 config/sparc/rtemself.h: Ditto.
14056 * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
14057 * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
14058 arm-rtems stanza closer to other arm-elf targets and made arm-rtems
14059 more like arm-elf.
14060 * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
14061 config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
14062 target made more similar to i386-elf.
14063 * config/i386/t-rtems-i386: Added soft float support and multilibs.
14064 * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
14065 be similar to config/m68k/t-m68kelf.
14066 * gthr-rtems.h: Encapsulate with extern "C" for C++.
14067
8686336f
JH
14068Wed Feb 13 23:41:15 CET 2002 Jan Hubicka <jh@suse.cz>
14069
14070 * regmove.c (kill_value): Handle subregs.
14071
558740bf
JH
14072Wed Feb 13 23:34:30 CET 2002 Jan Hubicka <jh@suse.cz>
14073
14074 * i386.md (mul patterns): Allow memory operand to be first;
14075 add expanders where needed; fix constraints.
14076 (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
14077 Allow memory operand to be the first.
14078
14079 * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
14080 operands.
14081
21117a17
JJ
140822002-02-13 Jakub Jelinek <jakub@redhat.com>
14083
14084 PR c/5681:
14085 * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
14086 GET_MODE (x).
14087
ec65b2e3
JJ
140882002-02-13 Jakub Jelinek <jakub@redhat.com>
14089
14090 PR optimization/5547:
14091 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
14092 all valid IA-32 address modes involving non-scaled %ebx and
14093 GOT/GOTOFF as displacement.
14094
ce50cae8
UW
140952002-02-13 Ulrich Weigand <uweigand@de.ibm.com>
14096
14097 * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
14098 after emitting ltorg insns.
14099
14100 * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
14101 *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
14102 *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
14103 *abssf2): Fix "op_type" attribute.
14104
09eb789b
DR
141052002-02-13 Douglas B Rupp <rupp@gnat.com>
14106
2dbe67bb
DR
14107 * mkconfig.sh: Avoid using a subshell redirect.
14108 ($output.T): Change to $(output)T.
14109 (ENABLE_NLS): Remove unneeded undef.
14110
ea5b9a1f
DR
14111 * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
14112 * config/alpha/x-vms (libsubdir): Define.
14113
3deb00ce
DR
14114 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
14115 register frame procedures. Optimize retrieving context.
14116
09eb789b
DR
14117 * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
14118 (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
14119 * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
14120
1abade85
RK
14121Wed Feb 13 09:45:08 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14122
14123 * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
14124 Make same change as for find_base_value.
14125
c283e63f
KH
141262002-02-13 Kazu Hirata <kazu@hxi.com>
14127
14128 * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
14129 of QImode and SImode.
14130
86039100
KH
141312002-02-13 Kazu Hirata <kazu@hxi.com>
14132
14133 * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
14134 length computation of movsi.
14135 * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
14136
e1429da0
KH
141372002-02-13 Kazu Hirata <kazu@hxi.com>
14138
14139 * config/h8300/h8300.md (subqi3): Tighten the predicate for
14140 operands[2] to register_operand.
14141
aebfea10
JH
14142Wed Feb 13 10:35:56 CET 2002 Jan Hubicka <jh@suse.cz>
14143
14144 * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
14145
0ec4e2a8
AH
141462002-02-12 Aldy Hernandez <aldyh@redhat.com>
14147
831c4e87
KC
14148 * config/rs6000/rs6000.md: Use predicate altivec_register_operand
14149 for altivec_lvx* and altivec_stvx*.
14150 ("*movv4si_internal"): Add constraint for loading from GPRs.
14151 ("*movv8hi_internal1"): Same.
14152 ("*movv16qi_internal1"): Same.
14153 ("*movv4sf_internal1"): Same.
0ec4e2a8 14154
831c4e87 14155 * config/rs6000/rs6000.c (altivec_register_operand): New.
0ec4e2a8 14156
831c4e87
KC
14157 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
14158 altivec_register_operand.
0ec4e2a8 14159
b007569d
HPN
141602002-02-13 Hans-Peter Nilsson <hp@bitrange.com>
14161
14162 * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
14163 handle SYMBOL_REF.
14164
e6834654
SS
141652002-02-13 Stan Shebs <shebs@apple.com>
14166
831c4e87
KC
14167 * c-typeck.c (digest_init): Handle vectors.
14168 (really_start_incremental_init): Same.
14169 (pop_init_level): Same.
14170 (process_init_element): Same.
e6834654 14171
831c4e87 14172 * varasm.c (output_constant): Same.
e6834654 14173
831c4e87
KC
14174 * expr.c (clear_storage): Same.
14175 (store_constructor): Same.
e6834654 14176
d9b3eb63
EC
141772002-02-12 Eric Christopher <echristo@redhat.com>
14178
14179 * explow.c (hard_function_value): Add comment explaining
14180 signed/unsigned comparison.
14181
56d44285
JJ
141822002-02-12 Jakub Jelinek <jakub@redhat.com>
14183
14184 * jump.c (never_reached_warning): Add finish argument.
14185 If finish is NULL, stop on CODE_LABEL, otherwise stop before first
14186 real insn after end.
14187 * rtl.h (never_reached_warning): Adjust prototype.
14188 * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
14189 * cfgrtl.c (flow_delete_block): Pass b->end as finish to
14190 never_reached_warning.
14191
fc209487
GS
141922002-02-12 Graham Stott <grahams@redhat.com>
14193
14194 * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
14195
1e41e866
KH
141962002-02-12 Kazu Hirata <kazu@hxi.com>
14197
14198 * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
14199 logical shifts on H8/300.
14200 (shift_alg_si): Improve several shifts on H8/300.
14201 (get_shift_alg): Likewise.
14202
a36a47ad
GS
142032002-02-12 Graham Stott <grahams@redhat.com>
14204
14205 * config/pa/pa.c (compute_movstrsi_length): Fix typos.
14206
0aacc8ed
RK
14207Tue Feb 12 10:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14208
14209 * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
14210 Handle #ifdef POINTERS_EXTEND_UNSIGNED.
14211
a02ac966
HPN
142122002-02-11 Hans-Peter Nilsson <hp@bitrange.com>
14213
14214 * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
14215 non-CONST_INT through default_assemble_integer.
14216 <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
14217 <case 8>: Abort for CONST_DOUBLE.
14218
d6e06ddc
JDA
142192002-02-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
14220
14221 * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
14222 is specified.
14223 * config/pa/pa-linux.h (LIB_SPEC): Delete.
14224 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
14225
515342a8
AH
142262002-02-11 Andrew Haley <aph@cambridge.redhat.com>
14227
14228 * config/stormy16/stormy16.md (zero_extendqihi2): New.
14229
cddd8b72
AO
142302002-02-11 Alexandre Oliva <aoliva@redhat.com>
14231
66df7a98
AO
14232 * regrename.c (regrename_optimize): Don't accept a
14233 part-clobbered register if the replaced register is not part
14234 clobbered.
14235
841404cd
AO
14236 * calls.c (store_one_arg): In the non-BLKmode non-partial case,
14237 take padding into account when computing the argument value.
14238
1d1ade42
AO
14239 * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
14240
cddd8b72
AO
14241 * combine.c (try_combine): Apply substitutions in
14242 CALL_INSN_FUNCTION_USAGE too.
14243
5c665b88
AH
142442002-02-11 Aldy Hernandez <aldyh@redhat.com>
14245
77f6c1eb
RS
14246 * config/rs6000/rs6000.c (altivec_init_builtins): Handle
14247 __builtin_altivec_abs*.
14248 (bdesc_abs): New.
5c665b88 14249
77f6c1eb
RS
14250 * config/rs6000/rs6000.h (rs6000_builtins): Add
14251 ALTIVEC_BUILTIN_ABS*.
5c665b88 14252
77f6c1eb
RS
14253 * config/rs6000/altivec.h: Use const char for builtins expecting
14254 literals.
14255 (vec_abs): New versions for C and C++.
14256 (vec_abss): Same.
5c665b88 14257
3494f1b4
KH
142582002-02-10 Kazu Hirata <kazu@hxi.com>
14259
14260 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
14261 using Pmode.
14262
72431aef
KH
142632002-02-10 Kazu Hirata <kazu@hxi.com>
14264
14265 * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
14266 constant definition from h8300.md.
14267 (FRAME_POINTER_REGNUM): Likewise.
14268 * config/h8300/h8300.md (define_constants): Add FP_REG.
14269
87e4ee91
KH
142702002-02-10 Kazu Hirata <kazu@hxi.com>
14271
14272 * config/h8300/h8300.c (print_operand): Remove redundant code.
14273
9c188705
KH
142742002-02-10 Kazu Hirata <kazu@hxi.com>
14275
14276 * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
14277 * config/h8300/h8300.c (byte_reg): Make it static.
14278
fba78abb
RH
142792002-02-10 Richard Henderson <rth@redhat.com>
14280
14281 PR c/5623
14282 * c-typeck.c (incomplete_type_error): Handle flexible array members.
14283
65739e62
RH
142842002-02-10 Richard Henderson <rth@redhat.com>
14285
14286 PR c++/5624
14287 * tree.c (append_random_chars): Don't abort if main_input_filename
14288 does not exist.
14289
247cb9df
HPN
142902002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
14291
14292 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
14293
232bd029
KH
142942002-02-10 Kazu Hirata <kazu@hxi.com>
14295
65739e62 14296 * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
232bd029
KH
14297 (pushhi1): Likewise.
14298
276ef573
JDA
142992002-02-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
14300
14301 * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
14302 * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
14303
617e9ee5
DB
143042002-02-09 David O'Brien <obrien@FreeBSD.org>
14305
14306 * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
14307 remove MASK_VIS.
14308 (ASM_CPU_DEFAULT_SPEC): Remove. Default setting is fine.
14309
6dfa4005
KH
143102002-02-09 Kazu Hirata <kazu@hxi.com>
14311
14312 * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
14313 a half of an SImode register on H8/300.
14314
749e7b80
JH
14315Sat Feb 9 18:28:02 CET 2002 Jan Hubicka <jh@suse.cz>
14316
14317 * i386.md (movdi_2): Add missing '!'.
14318
ca77d87c
KH
143192002-02-09 Kazu Hirata <kazu@hxi.com>
14320
14321 * config/h8300/h8300.h: Fix formatting. Remove commented-out
14322 definitions.
14323
16c96304
KH
143242002-02-09 Kazu Hirata <kazu@hxi.com>
14325
14326 * config/h8300/h8300.md (length): Correct the distance valid
14327 for the short branch.
14328
a364bc90
KH
143292002-02-09 Kazu Hirata <kazu@hxi.com>
14330
14331 * config/h8300/h8300.md (iorhi3): Tighten the predicates.
14332
e4ec2cac
AO
143332002-02-09 Alexandre Oliva <aoliva@redhat.com>
14334
a138247b
AO
14335 * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
14336 registers in SImode.
14337 (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
14338 part-clobbered.
14339
2b1fd83f
AO
14340 * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
14341 patch.
d9b3eb63 14342
fa5322fa
AO
14343 Contribute sh64-elf.
14344 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
14345 * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
14346 (sh_cannot_modify_jumps_p): New function.
14347 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
14348 * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
14349 (sh_ms_bitfield_layout_p): New function.
14350 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
14351 Zack Weinberg <zack@codesourcery.com>
14352 * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
14353 expand_simple_binop instead of expand_binop.
14354 2002-02-03 Alexandre Oliva <aoliva@redhat.com>
14355 * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
14356 use of .quad and .uaquad.
14357 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
14358 TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
14359 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
14360 * config/sh/sh.md (movdi_const, movdi_const_32bit,
14361 movdi_const_16bit): Make sure all CONSTs have modes.
14362 (sym2PIC): Ditto, but by adjusting all callers.
14363 * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
14364 if the prologue calls the SHmedia argument decoder or register
14365 saver.
14366 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
14367 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
14368 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
14369 (sh_expand_epilogue): Don't emit USE of return target register.
14370 (prepare_move_operands): Legitimize DImode PIC addresses.
14371 (sh_media_register_for_return): Skip tr0, used to initialize the
14372 PIC register.
14373 (sh_expand_prologue): Remove explicit USE of return register.
14374 (nonpic_symbol_mentioned_p): PC is non-PIC. Don't recurse in
14375 CONST_DOUBLEs. UNSPEC_GOTPLT is PIC.
14376 * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
14377 (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
14378 (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
14379 EXTRA_CONSTRAINT_T.
14380 (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
14381 (MOVI_SHORI_BASE_OPERAND_P): New.
14382 (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
14383 (EXTRA_CONSTRAINT_T): Define in terms of them.
14384 (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
14385 * config/sh/sh.md (movsi_media, movsi_media_nofpu,
14386 movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
14387 alternatives supporting TARGET_REGS.
14388 (UNSPEC_GOTPLT): New constant.
14389 (movdi split): Move incrementing of LABEL_NUSES...
14390 (movdi_const, movdi_const_32bit): Here. Use
14391 MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
14392 (movdi_const_16bit): New.
14393 (call, call_value) [flag_pic]: Use GOTPLT.
14394 (call_pop, call_value_pop): New expands.
14395 (call_pop_compact, call_pop_rettramp): New insns.
14396 (call_value_pop_compact, call_value_pop_rettramp): New insns.
14397 (sibcall) [flag_pic]: Use GOT.
14398 (builtint_setjmp_receiver): Remove bogus, unused expand.
14399 (GOTaddr2picreg): Implement for SHcompact and SHmedia.
14400 (*pt, *ptb, ptrel): New insns.
14401 (sym2GOT): Handle DImode GOT.
14402 (sym2GOTPLT, symGOTPLT2reg): New expands.
14403 (sym2PIC): New expand.
14404 (shcompact_return_tramp): Use GOTPLT to return trampoline.
14405 (shcompact_return_tramp_i): Use return register explicitly.
14406 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
14407 disable flag_reorder_blocks.
14408 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
14409 * config/sh/sh.md (sibcall_compact): Reorder return, uses and
14410 clobbers, for clarity.
14411 (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
14412 restoring of r0 in macl as MAYBE_DEAD.
14413 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
14414 * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
14415 * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
14416 alter_subreg all over.
14417 (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
14418 reload, instead of emitting instructions that would require
14419 reloading.
14420 (casesi_load_media): Add missing modes.
14421 2001-11-09 Alexandre Oliva <aoliva@redhat.com>
14422 * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
14423 as used if the argument decoder is called.
14424 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
14425 * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
14426 Pmode, then extend it to DImode if necessary.
14427 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
14428 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
14429 constants in FPU-enabled SHmedia, let them be loaded from memory.
14430 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
14431 * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
14432 Adjust whitespace in assembly output templates.
14433 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
14434 * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
14435 mode of if_then_else.
14436 2001-08-04 Alexandre Oliva <aoliva@redhat.com>
14437 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
14438 sh.h.
14439 2001-07-26 Andrew Haley <aph@cambridge.redhat.com>
14440 Joern Rennecke <amylaar@redhat.com>
14441 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
14442 (SUBTARGET_CPP_PTR_SPEC): New.
14443 (SUBTARGET_CPP_SPEC): Remove.
14444 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
14445 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
14446 Fix typo in previous checkin.
14447 2001-07-11 Chandrakala Chavva <cchavva@redhat.com>
14448 * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
14449 2001-07-10 Chandrakala Chavva <cchavva@cygnus.com>
14450 Alexandre Oliva <aoliva@redhat.com>
14451 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
14452 what single FP register can hold for SHmedia target.
14453 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
14454 Alexandre Oliva <aoliva@redhat.com>
14455 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
14456 Do not split into SUBREG.
14457 2001-06-14 Alexandre Oliva <aoliva@redhat.com>
14458 * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
14459 and added new functions as specified in SH5 ABI r9.
14460 2001-06-04 Alexandre Oliva <aoliva@redhat.com>
14461 * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
14462 8-byte boundary.
14463 2001-06-03 Alexandre Oliva <aoliva@redhat.com>
14464 * config/sh/sh.c (dump_table): Add const0_rtx in calls of
14465 gen_consttable_4 and gen_consttable_8. Emit multiple labels
14466 and consttable_window_ends.
14467 2001-06-03 Graham Stott <grahams@redhat,com>
14468 * config/sh/sh.md (movdi split): Remove unused variable last_insn.
14469 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
14470 * config/sh/sh.c (print_operand): Handle floating-point pair,
14471 vector and matrix registers.
14472 * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
14473 vector modes into account.
14474 * config/sh/sh.md (movv2sf): Split move between registers into
14475 movdf.
14476 (movv4sf, movv16sf): Introduce insns that get split only after
14477 reload.
14478 * config/sh/shmedia.h: Fix Copyright dates.
14479 * config/sh/ushmedia.h: Likewise. Move loop counter
14480 declarations into conditionals that uses them.
14481 (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
14482 loop boundary.
14483 * config/sh/sshmedia.h: Fix Copyright dates.
14484 (sh_media_PUTCFG): Fix constraints.
14485 2001-05-12 Alexandre Oliva <aoliva@redhat.com>
14486 * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
14487 ptrmemfunc_vbit_in_delta for SH5.
14488 2001-05-08 Alexandre Oliva <aoliva@redhat.com>
14489 * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
14490 * invoke.texi: Likewise.
14491 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
14492 * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
14493 GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
14494 GCC_pop_shmedia_regs_nofpu): New global symbols.
14495 * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
14496 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
14497 * config/sh/sh.c (calc_live_regs): Account for PR's saving in
14498 compact function with nonlocal labels.
14499 (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
14500 (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
14501 (initial_elimination_offset): Account for their stack space.
14502 * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
14503 * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
14504 movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
14505 movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
14506 least one of the operands to be a register.
14507 (movv2sf): Likewise. Renamed to movv2sf_i.
14508 (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
14509 prepare_move_operands() before emitting SHmedia insns.
14510 2001-04-03 Alexandre Oliva <aoliva@redhat.com>
14511 * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
14512 Don't save nor initialize r12. Don't mis-align the stack.
14513 Pad the code with a nop.
14514 * config/sh/crti.asm: Don't restore r12. Don't mis-align the
14515 stack.
14516 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
14517 * gcc/longlong.h (__umulsidi3, count_leading_zeros)
14518 [__SHMEDIA__]: Implement.
14519 2001-03-11 Alexandre Oliva <aoliva@redhat.com>
14520 * config/sh/sh.md: Set latency of `pt' closer to reality.
14521 (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
14522 movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
14523 Set move, load and store type attributes.
14524 * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
14525 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
14526 profiling.
14527 * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
14528 * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
14529 * config/sh/sh.c (sh_media_register_for_return): New function.
14530 (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
14531 branch-target register.
14532 (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
14533 * config/sh/sh.md (return_media_i): Use any call-clobbered
14534 branch-target register.
14535 (return_media): If r18 wasn't copied in the prologue, copy it
14536 here.
14537 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
14538 Clear class FP0_REGS.
14539 * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
14540 from elf.h.
14541 2001-03-08 DJ Delorie <dj@redhat.com>
14542 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
14543 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
14544 * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
14545 2001-02-07 Alexandre Oliva <aoliva@redhat.com>
14546 * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
14547 2001-02-03 Alexandre Oliva <aoliva@redhat.com>
14548 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
14549 return value correctly for call_cookie.
14550 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
14551 * config/sh/crt1.asm (start): Modified so as to call
14552 ___setup_argv_and_call_main.
14553 2001-01-26 Alexandre Oliva <aoliva@redhat.com>
14554 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
14555 SHmedia mode.
14556 2001-01-20 Alexandre Oliva <aoliva@redhat.com>
14557 * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
14558 (STRIP_NAME_ENCODING): Use it.
14559 (ASM_OUTPUT_LABELREF): Likewise. Don't call assemble_name().
14560 2001-01-19 Alexandre Oliva <aoliva@redhat.com>
14561 * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
14562 prepare_scc_operands().
14563 * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
14564 (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
14565 2001-01-17 Alexandre Oliva <aoliva@redhat.com>
14566 * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
14567 2001-01-13 Alexandre Oliva <aoliva@redhat.com>
14568 * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
14569 * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
14570 used in shcompact_incoming_args.
14571 * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
14572 change.
14573 * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
14574 mode.
14575 * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
14576 Adjust accordingly.
14577 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
14578 Simplify. Adjust. Add sanity check.
14579 * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
14580 FPU_SINGLE_BIT.
14581 * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
14582 TARGET_SHCOMPACT.
14583 (udivsi3, divsi3): Use them.
14584 (force_mode_for_call): New insn.
14585 (call, call_value, sibcall_value): Emit it before SHcompact
14586 calls.
14587 2001-01-11 Alexandre Oliva <aoliva@redhat.com>
14588 * config/sh/sh.md (call, call_value, sibcall): Make sure the
14589 call cookie is non-NULL before taking its value.
14590 2001-01-10 Alexandre Oliva <aoliva@redhat.com>
14591 * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
14592 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
14593 * config/sh/sh.md (shcompact_incoming_args): Set argument memory
14594 block.
14595 * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
14596 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
14597 temporary for stack adjusts. Use MACL and MACH to pass
14598 arguments to shcompact_incoming_args.
14599 * config/sh/sh.md (shcompact_incoming_args): Adjust. Don't
14600 clobber r1.
14601 * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
14602 (nested_trampoline): Load static chain address into r1.
14603 * config/sh/sh.md (movdi_media splits): Fix sign-extension.
14604 2001-01-07 Alexandre Oliva <aoliva@redhat.com
14605 * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
14606 fp_arith_reg_operand().
14607 2001-01-06 Alexandre Oliva <aoliva@redhat.com>
14608 * config/sh/sh.md (casesi): Sign-extend the first two operands,
14609 and use signed compares for them.
14610 * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
14611 4-byte ones. Instead, inter-leave them, maintaining the 8-byte
14612 ones properly aligned.
14613 (find_barrier): Account for extra alignment needed for 8-byte wide
14614 constants.
14615 (machine_dependent_reorg): Require a label for the second 4-byte
14616 constant after an 8-byte one.
14617 * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
14618 change.
14619 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
14620 * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
14621 last_float when switching float modes.
14622 * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
14623 auto-increment for general-purpose registers.
14624 * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
14625 result.
14626 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
14627 for stack adjust.
14628 * config/sh/sh.c (sh_builtin_saveregs): Support using all
14629 registers for varargs.
14630 2001-01-01 Alexandre Oliva <aoliva@redhat.com>
14631 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
14632 * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
14633 CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
14634 (CALL_COOKIE_INT_REG_SHIFT): Adjust.
14635 (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK. Adjust
14636 call_cookie accordingly.
14637 (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
14638 (SHCOMPACT_BYREF): Likewise.
14639 (SHCOMPACT_FORCE_ON_STACK): New macro.
14640 * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
14641 (sh_builtin_saveregs): Likewise.
14642 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
14643 shcompact_incoming_args): Use new shift values. Support
14644 sequences of consecutive and non-consecutive pushes/pops.
14645 * config/sh/sh.md (return): Don't explicitly use PR_REG.
14646 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
14647 * config/sh/sh.h (TEXT_SECTION): Define.
14648 * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
14649 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
14650 * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
14651 * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
14652 return values on FPU-enabled SHmedia.
14653 (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
14654 FPU-enabled SHmedia.
14655 (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
14656 value is returned in a non-FP reg and is not returned by
14657 reference.
14658 * config/sh/sh.md (shcompact_return_tramp_i): Change type to
14659 jump_ind.
14660 2000-01-04 Alexandre Oliva <aoliva@redhat.com>
14661 * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
14662 (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
14663 quad-aligned to be passed by callee-copy reference.
14664 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
14665 * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
14666 * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
14667 2001-01-02 Alexandre Oliva <aoliva@redhat.com>
14668 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
14669 copying low-numbered FP regs to r7 and r8.
14670 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
14671 FP regs to general-purpose regs only if the copy was passed on the
14672 stack.
14673 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
14674 copying FP reg to r9.
14675 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
14676 copy FP regs to general-purpose regs only in outgoing calls.
14677 * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
1e4e95d6 14678 change from 2000-10-30. Adjust for 64-bit (or 32-bit)
fa5322fa
AO
14679 HOST_WIDE_INT.
14680 * config/sh/sh.h (struct sh_args): Document all fields.
14681 (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
14682 passed partially on the stack should not consider making
14683 sibcalls.
14684 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
14685 stack_regs only for incoming calls. When passing FP args,
14686 make sure there are FP regs available before modifying
14687 call_cookie.
14688 (SHCOMPACT_BYREF): Pass double args in general-purpose
14689 registers by reference.
14690 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
14691 * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
14692 attempt to generate sibcalls if the caller got any arguments
14693 by reference.
14694 * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
14695 * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
14696 to 8-byte boundaries.
14697 * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
14698 * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
14699 * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
14700 stored in the stack.
14701 * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
14702 for the offsets to have the ISA bit set.
14703 (shcompact_call_trampoline): Document. Swap r0 and r1, to match
14704 invocation. Use beq instead of bgt to mark end of sequence of
14705 loads.
14706 (shcompact_incoming_args): Fix store of r2. Use beq instead of
14707 bgt to mark end of sequence of stores.
14708 * config/sh/sh.c (arith_operand): Don't check whether
14709 CONST_OK_FOR_J for now.
14710 * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
14711 instead of long for conversion.
14712 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
14713 * config/sh/sh.c (print_operand_address): Convert INTVAL to int
14714 before passing it to fprintf.
14715 2000-12-28 Alexandre Oliva <aoliva@redhat.com>
14716 * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
14717 Call set_fpscr before reading/writing SR.
14718 * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
14719 Call set_fpscr.
14720 * config/sh/lib1funcs.asm: Add `.align 2' directives before
14721 SHmedia code.
14722 (FMOVD_WORKS): Define on SH5 with FPU.
14723 (set_fpscr): Define on SH5. Remove separate _fpscr_values
14724 setting.
14725 * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
14726 _fpscr_values.
14727 2000-12-28 Hans-Peter Nilsson <hpn@cygnus.com>
14728 * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
14729 address.
14730 (ia_main_table): Ditto.
14731 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
14732 * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
14733 * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
14734 the definitions from sh.h.
14735 * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
14736 TARGET_SH5.
14737 (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
14738 * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
14739 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
14740 2000-12-26 Alexandre Oliva <aoliva@redhat.com>
14741 * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
14742 Increment LABEL_NUSES.
d9b3eb63 14743
fa5322fa
AO
14744 * config/sh/sh.h (SIZE_TYPE): Define as conditional on
14745 TARGET_SH5.
14746 (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
14747 defined.
14748 * config/sh/elf.h (SIZE_TYPE): Likewise.
14749 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
14750 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
14751 shcompact_incoming_args): Load switch table addresses using
14752 datalabel.
14753 * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
14754 (NO_BUILTIN_SIZE_TYPE): Define.
14755 (SIZE_TYPE): Don't define.
14756 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
14757 * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
14758 definition of __SH5__=32 for -m5-compact-nofpu.
14759 * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
14760 ADDR_DIFF_VEC.
14761 2000-12-24 Alexandre Oliva <aoliva@redhat.com>
14762 * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
14763 2000-12-23 Alexandre Oliva <aoliva@redhat.com>
14764 * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
14765 (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
14766 (INSN_LENGTH_ALIGNMENT): Likewise.
14767 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
14768 * config/sh/sh.md (call, call_value, sibcall): Simplify
14769 copying of non-branch-target register.
14770 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
1e4e95d6 14771 * glimits.h (__LONG_MAX__): Revert 2000-12-13's patch.
fa5322fa
AO
14772 * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
14773 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
14774 * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
14775 floating-point values as structs.
14776 (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
14777 (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
14778 general-purpose register.
14779 (SH5_PROTOTYPED_FLOAT_ARG): New macro.
14780 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
14781 * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
14782 * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
14783 * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
14784 (ENCODE_SECTION_INFO): Enclose variables and constants in
14785 DATALABEL unspecs.
14786 (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
14787 (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
14788 (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
14789 * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
14790 only for LABEL_REFs. For SYMBOL_REFs, prepend
14791 SH_DATALABEL_ENCODING to the symbol name.
14792 * config/sh/sh.md (indirect_jump): Use SUBREG instead of
14793 convert_mode().
14794 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
14795 * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
14796 UNSPEC_DATALABEL.
14797 * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
14798 * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
14799 (DATALABEL_REF_P): Don't require CONST.
14800 (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
14801 REL label.
14802 2000-12-19 Alexandre Oliva <aoliva@redhat.com>
14803 * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
14804 right.
14805 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
14806 * config/sh/sh.md (movsi_media, call, call_value, sibcall):
14807 Use shallow_copy_rtx and PUT_MODE to change the mode of
14808 SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
14809 * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
14810 on SHmedia using GENERAL_REGs.
14811 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
14812 bltu_media_i): Fix reversion of conditions.
14813 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
14814 * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
14815 * config/sh/sh.c (output_far_jump): Save r13 in macl.
14816 2000-12-17 Alexandre Oliva <aoliva@redhat.com>
14817 * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
14818 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
14819 * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
14820 (GCC_nested_trampoline): Likewise.
14821 * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
14822 * config/sh/sh.c (gen_datalabel_ref): Define.
14823 * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
14824 (INITIALIZE_TRAMPOLINE): Likewise.
14825 (TRAMPOLINE_ADJUST_ADDRESS): Define.
14826 (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
14827 (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
14828 (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
14829 * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
14830 (ic_invalidate): Adjust for SH5.
14831 (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
14832 * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
14833 _nested_trampoline.
14834 2000-12-15 Alexandre Oliva <aoliva@redhat.com>
14835 * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
14836 (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
14837 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
14838 * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
14839 * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
14840 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
14841 * config/sh/sh.c (target_reg_operand): Match only target-branch
14842 registers and pseudos that aren't virtual registers.
14843 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
14844 Copy operands that don't match target_reg_operand to pseudos.
14845 (call_media, call_value_media, sibcall_media): Use
14846 target_reg_operand instead of target_operand.
14847 2000-12-13 Alexandre Oliva <aoliva@redhat.com>
d9b3eb63 14848 * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
fa5322fa
AO
14849 * config/sh/sh.c (target_reg_operand): Match hardware registers
14850 other than branch-target registers.
14851 * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
14852 * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
14853 (fpscr_values) [SH5 == 32]: Define.
14854 * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
14855 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
14856 Handle function addresses coming in SUBREGs.
14857 2000-12-12 Alexandre Oliva <aoliva@redhat.com>
14858 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
14859 shcompact_return_trampoline): Use datalabel where appropriate.
14860 2000-12-09 Alexandre Oliva <aoliva@redhat.com>
14861 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
14862 general-purpose register to copy one branch-target register to
14863 another.
14864 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
14865 * config/sh/sh.c (target_operand): Accept LABEL_REFs and
14866 SYMBOL_REFs with VOIDmode.
14867 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
14868 bltu_media_i): New insns.
14869 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
14870 * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
14871 (INIT_CUMULATIVE_ARGS): Likewise.
14872 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
14873 * machmode.def (V16SFmode): New mode.
14874 * c-common.c (type_for_mode): Support V2SF and V16SF.
14875 * tree.c (build_common_tree_nodes_2): Likewise.
14876 * tree.h (tree_index): Likewise.
14877 * calls.c (emit_call_1): Take args_so_far. Adjust all
14878 callers. Introduce CALL_POPS_ARGS.
14879 * tm.texi (CALL_POPS_ARGS): Document.
14880 * config/sh/crt1.asm: Implement in SHmedia mode.
14881 * config/sh/crti.asm, config/sh/crtn.asm: Likewise
14882 * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
14883 (DBX_REGISTER_NUMBER): Renumber registers for SH5.
14884 * config/sh/lib1funcs.asm: Disable functions unused in SH5.
14885 Implement divsi and udivsi in SHmedia mode. Introduce
14886 SHcompact trampolines.
14887 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
14888 only in SHmedia64.
14889 (regno_reg_class): Rewrite.
14890 (fp_reg_names): Remove.
14891 (sh_register_names, sh_additional_register_names): New.
14892 (print_operand): Added `u'. Support SUBREGs in addresses.
14893 Add parentheses around shifted CONSTs.
14894 (output_file_start): Output .mode and .abi directives.
14895 (shiftcosts, addsubcosts, multcosts): Adjust.
14896 (output_stack_adjust): Compute alignment. Sanity-check SIZE.
14897 (push_regs): Take array of HOST_WIDE_INTs. Adjust callers.
14898 (calc_live_regs): Output to array of HOST_WIDE_INTs. Count
14899 bytes, not registers. Take into account the need for the
14900 SHcompact incoming args trampoline. Adjust all callers.
14901 (sh_expand_prologue): Take stack_regs into account. Call
14902 incoming args trampoline. Keep stack aligned as per SH5 ABI.
14903 (sh_expand_epilogue): Take stack_regs into accoutn. Keep
14904 stack aligned as per SH5 ABI.
14905 (sh_builtin_saveregs): Support SH5 ABI.
14906 (sh_build_va_list, sh_va_start): Likewise.
14907 (initial_elimination_offset): Take alignment into account.
14908 Compute location of PR according to the SH5 stack frame.
14909 (arith_reg_operand): Reject branch-target registers.
14910 (shmedia_6bit_operand): New.
14911 (logical_operand): Use CONST_OK_FOR_P on SHmedia.
14912 (target_reg_operand): Match DImode only. Accept SUBREGs.
14913 (target_operand): New.
14914 * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
14915 (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI. Initialize
14916 SIBCALL_REGS for SHmedia.
14917 (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
14918 (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
14919 (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
14920 (TARGET_SWITCHES): New SH5 flags.
14921 (OVERRIDE_OPTIONS): Set SH5-specific options. Use
14922 VALID_REGISTER_P to disable unsupported registers.
14923 (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
14924 (POINTER_SIZE, PARM_BOUNDARY): Adjust.
14925 (FUNCTION_ARG_PADDING): Define.
14926 (FASTEST_ALIGNMENT): Adjust.
14927 (SH_REGISTER_NAMES_INITIALIZER): New.
14928 (sh_register_names): Declare.
14929 (DEBUG_REGISTER_NAMES): Define.
14930 (REGISTER_NAMES): Define based on sh_register_names.
14931 (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
14932 (sh_additional_register_names): Declare.
14933 (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
14934 (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
14935 (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
14936 (REGISTER_NATURAL_MODE): Define.
14937 (FIRST_PSEUDO_REGISTER): Adjust.
14938 (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
14939 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
14940 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
14941 (VECTOR_MODE_SUPPORTED_P): Define.
14942 (REG_CLASS_CONTENTS): Adjust.
14943 (SMALL_REGISTER_CLASSES): Adjust.
14944 (REG_ALLOC_ORDER): Adjust.
14945 (INDEX_REG_CLASS): Adjust.
14946 (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
14947 (CONST_OK_FOR_LETTER_P): Adjust.
14948 (PREFERRED_RELOAD_CLASS): Adjust.
14949 (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
14950 (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
14951 (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
14952 (FIRST_FP_PARM_REG): Adjust.
14953 (CALL_POPS_ARGS): Define.
14954 (FUNCTION_ARG_REGNO_P): Adjust.
14955 (struct sh_args): New fields.
14956 (GET_SH_ARG_CLASS): Adjust.
14957 (INIT_CUMULATIVE_ARGS): Adjust.
14958 (INIT_CUMULATIVE_INCOMING_ARGS): Define.
14959 (FUNCTION_ARG_ADVANCE): Adjust.
14960 (FUNCTION_ARG): Adjust.
14961 (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
14962 (FUNCTION_ARG_CALLEE_COPIES): Define.
14963 (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
14964 (STRICT_ARGUMENT_NAMING): Define.
14965 (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
14966 (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
14967 (SH5_WOULD_BE_PARTIAL_NREGS): Define.
14968 (SETUP_INCOMING_VARARGS): Adjust.
14969 (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
14970 (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
14971 (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
14972 (SUBREG_OK_FOR_INDEX_P): Adjust.
14973 (EXTRA_CONSTRAINT_S): Update.
14974 (EXTRA_CONSTRAINT_T): New.
14975 (EXTRA_CONSTRAINT): Adjust.
14976 (GO_IF_LEGITIMATE_INDEX): Adjust.
14977 (GO_IF_LEGITIMATE_ADDRESS): Adjust.
14978 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
14979 (MOVE_MAX): Adjust.
14980 (MAX_MOVE_MAX): Define.
14981 (Pmode): Adjust.
14982 (CONST_COSTS): Adjust.
14983 (REGISTER_MOVE_COST): Adjust.
14984 (BRANCH_COST): Adjust.
14985 (TEXT_SECTION_ASM_OP): Adjust.
14986 (DBX_REGISTER_NUMBER): Adjust.
14987 (ASM_OUTPUT_DOUBLE_INT): New.
14988 (UNALIGNED_DOUBLE_INT_ASM_OP): New.
14989 (PREDICATE_CODES): Adjust.
14990 (PROMOTE_MODE): Adjust.
14991 (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
14992 * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
14993 (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
14994 (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
14995 (DR0_REG, DR2_REG, DR4_REG): Renumber.
14996 (TR0_REG, TR1_REG, TR2_REG): New.
14997 (XD0_REG): Renumber.
14998 (UNSPEC_COMPACT_ARGS): New.
14999 (type): Added pt and ptabs.
15000 (length): Default to 4 on SHmedia. Default pt length to 12
1e4e95d6 15001 and 20 on SHmedia32 and SHmedia64, respectively.
fa5322fa
AO
15002 (pt): New function unit.
15003 (movdi, movsi): Add types pt and ptabs. Don't increment LABEL_NUSES.
15004 Add whitespace between operands of SHmedia instructions.
15005 (movdicc): Fix.
15006 (adddi3_media, addsi3_media): Adjust constraints.
15007 (subsi3) [SHmedia]: Force operand 1 into a register.
15008 (udivsi3_i1_media, udivsi3_i4_media): New.
15009 (udivsi3): Support SHmedia.
15010 (divsi3_i1_media, divsi3_i4_media): New.
15011 (divsi3): Support SHmedia.
15012 (anddi3, iordi3, xordi3): Adjust constraints.
15013 (zero_extendhidi2, zero_extendqidi2): New.
15014 (extendsidi2, extendhidi2, extendqidi2): New.
15015 (push, pop, push_e, push_fpul, push_4): Disable on SH5.
15016 (pop_e, pop_fpul, pop_4): Likewise.
15017 (movsi_media): Support FP and BT registers.
15018 (movsi_media_nofpu): New. Adjust splits to DImode.
15019 (lduw, ldub): Renamed to zero_extend* above.
15020 (movqi_media): Fix typo.
15021 (movdi_media): Support FP and BT registers.
15022 (movdi_media_nofpu): New. Adjust splits for SHmedia32.
15023 (movdi_const_32bit): New.
15024 (shori_media): Require immediate operand. Use `u' for output.
15025 (movdf_media, movsf_media): Simplified.
15026 (movdf_media_nofpu, movsf_media_nofpu): New.
15027 (movdf, movsf): Adjust
15028 (movv2sf, movv2sf, movv16sf): New.
15029 (beq_media, beq_media_i): Adjust constraints. Don't use
15030 scratch BT register.
15031 (bne_media, bne_media_i): Likewise.
15032 (bgt_media, bgt_media_i): Likewise.
15033 (bge_media, bge_media_i): Likewise.
15034 (bgtu_media, bgtu_media_i): Likewise.
15035 (bgeu_media, bgeu_media_i): Likewise.
15036 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
15037 bunordered): Emit jump insn. Force operands to registers when
15038 needed.
15039 (jump_media, jump): Simplify.
15040 (call_compact, call_compact_rettramp): New.
15041 (call_value_compact, call_value_compact_rettramp): New.
15042 (call_media, call_value_media): Simplify.
15043 (sibcall_compact, sibcall_media): New.
15044 (call, call_value): Adjust for SHmedia and SHcompact.
15045 (sibcall, sibcall_value, untyped_call): Likewise.
15046 (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
15047 (indirect_jump): Adjust for SHmedia.
15048 (casesi_jump_media): New.
15049 (nop): Re-enable for SHmedia.
15050 (call_site): Restrict to SH1.
15051 (casesi): Adjust for SHmedia.
15052 (casesi_shift_media, casesi_load_media): New.
15053 (return): Explicitly use PR register. Call return trampoline
15054 on SHcompact.
15055 (return_i): Explicitly use PR register.
15056 (shcompact_return_tramp, shcompact_return_tramp_i): New.
15057 (return_media): Adjust.
15058 (shcompact_incoming_args): New.
15059 (epilogue): Adjust.
15060 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
15061 (movstrsi): Disable on SH5.
15062 (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
15063 (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
15064 (subsf3, subsf3_media): Likewise.
15065 (mulsf3, mulsf3_media, mac_media): Likewise.
15066 (divsf3, divsf3_media): Likewise.
15067 (floatdisf2, floatsisf2_media): Likewise. Adjust constraints.
15068 (floatsisf2, fux_truncsfsi2): Likewise.
15069 (fix_truncsfdi2, fix_truncsfsi2_media): Likewise. Adjust
15070 constraints.
15071 (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
15072 (cmpunsf_media, cmpsf): Likewise.
15073 (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
15074 (abssf2, abssf2_media): Likewise.
15075 (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
15076 (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
15077 (floatdidf2, floatsidf2_media): Likewise. Adjust constraints.
15078 (floatsidf2, fix_truncdfsi2): Likewise.
15079 (fix_truncdfdi2, fix_truncdfsi2_media): Likewise. Adjust
15080 constraints.
15081 (cmpeqdf_media, cmpgtdf_media): Likewise.
15082 (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
15083 (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
15084 (absdf2, absdf2_media): Likewise.
15085 (extendsfdf2, extendsfdf2_media): Likewise.
15086 (truncsfdf2, truncsfdf2_media): Likewise.
15087 * config/sh/sh64.h: New file.
15088 * config/sh/t-sh64: New file.
15089 * config/sh/shmedia.h: New file.
15090 * config/sh/ushmedia.h: New file.
15091 * config/sh/sshmedia.h: New file.
15092 * configure.in: Added sh64-*-elf.
15093 * configure: Rebuilt.
15094 2000-10-10 Alexandre Oliva <aoliva@redhat.com>
15095 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
15096 (reg_class_from_letter): Use `b' for TARGET_REGS.
15097 (print_operand): Support `%M', `%m', `AND' and
15098 `ASHIFTRT'. Do not precede constants with `#' on SHmedia.
15099 (andcosts): Adjust for SHmedia.
15100 (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
15101 Likewise.
15102 (target_reg_operand): New function.
15103 * config/sh/sh-protos.h (target_reg_operand): Declare.
15104 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
15105 FP registers on SH5.
15106 (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
15107 on SH4.
15108 (TARGET_REGISTER_P): New macro.
15109 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
15110 (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
15111 (EXTRA_CONSTRAINT_S): New macro.
15112 (EXTRA_CONSTRAINT): Adjust.
15113 (FLOAT_TYPE_SIZE): Define to 32.
15114 (Pmode): DImode on SHmedia.
15115 (CONST_COSTS): Adjust for SHmedia literals.
15116 (PREDICATE_CODES): Added target_reg_operand.
15117 (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
15118 * config/sh/sh.md: Remove all attrs from SHmedia insns.
15119 (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
15120 (cmpdi): Accept SHmedia.
15121 (movdicc_false, movdicc_true): New insns.
15122 (movdicc): New expand.
15123 (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
15124 no_new_pseudos.
15125 (addsi3_media): Match `S' constraint.
15126 (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
15127 (negdi2): Expand for SHmedia.
15128 (one_cmpldi2): New expand.
15129 (zero_extendsidi2): Change from expand to insn.
15130 (extendsidi2): Add constraints.
15131 (movdi_media, movsi_media): Change `%x' to `%M'. Use `%m' for
15132 LD/ST address. Fix SI immediate loading split.
15133 (movhi_media, movqi_media, lduw, ldub): New insns.
15134 (movhi, movqi): Accept SHmedia.
15135 (shori_media, movdi_media): Relax input constraints. Split
15136 symbolic constants.
15137 (movdf_media, movsf_media): New insn. New split to movdi.
15138 (movdf, movsf): Match on SHmedia.
15139 (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
15140 bgeu_media): New insns and splits. New insns with `_i' suffix.
15141 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
15142 (bunordered): New expand.
15143 (jump_compact): Renamed from `jump'.
15144 (jump_media): New insn.
15145 (jump): New expand.
15146 (call_media, call_value_media): New insns.
15147 (call, call_value): Adjust.
15148 (indirect_jump_compact): Renamed from `indirect_jump'.
15149 (indirect_jump_media): New insn.
15150 (indirect_jump): New expand.
15151 (untyped_call, return): Accept SHmedia.
15152 (return_media): New insn.
15153 (prologue, epilogue, blockage): Accept SHmedia.
15154 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
15155 (sunordered): New expand.
15156 (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
15157 cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
15158 (addsf3_media, subsf3_media, mulsf3_media, mac_media,
15159 divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
15160 fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
15161 cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
15162 abssf2_media): New insns.
15163 (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
15164 cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
15165 (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
15166 floatdidf2, floatsidf2_media, fix_truncdfdi2,
15167 fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
15168 cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
15169 absdf2_media): New insns.
15170 (extendsfdf2, truncdfsf2): Adjust for SHmedia.
15171 (extendsfdf2_media, truncdfsf2_media): New insns.
15172 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
15173 * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
15174 * config/sh/sh.h (CONST_OK_FOR_J): Document.
15175 (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
15176 * config/sh/sh.md (adddi3): New expand.
15177 (adddi3_media, adddi3z_media): New insns.
15178 (adddi3_compact): Renamed from adddi3.
15179 (addsi3_media): Use add.l r63 to add constant zero.
15180 (subdi3): New expand.
15181 (subdi3_media): New insn.
15182 (subdi3_compact): Renamed from subdi3.
15183 (mulsidi3): New expand.
15184 (mulsidi3_media): New insn.
15185 (mulsidi3_compact): Renamed from mulsidi3.
15186 (umulsidi3): New expand.
15187 (umulsidi3_media): New insn.
15188 (umulsidi3_compact): Renamed from umulsidi3.
15189 (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
15190 (ashlsi3, ashrsi3, lshrsi3): Use them.
15191 (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
15192 (ashldi3, ashrdi3, lshrdi3): Use them.
15193 (zero_extendsidi2): New expand.
15194 (extendsidi2): New insn.
15195 (movsi_media): New insn. Split to movdi to load constants.
15196 (movsi): Enable for shmedia.
15197 (movdi_media): New insn. Use shori_media to load wide constants.
15198 (short_media): New insn.
15199 (movdi): Enable for shmedia.
15200 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
15201 * config/sh/sh.h (CPP_SPEC): Added `m5'.
15202 (SUBTARGET_CPP_SPEC): Added `!m5'.
15203 (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
15204 (TARGET_SWITCHES): Added `5' and `5-compact'. Added SH1_BIT
15205 to all other SH variants.
15206 (TARGET_DEFAULT): Set to SH1_BIT.
15207 (OVERRIDE_OPTIONS): Recognize sh5 CPU.
15208 (BITS_PER_WORD): Raise to 64 on shmedia.
15209 (MAX_BITS_PER_WORD): Change to 64.
15210 (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
15211 (INT_TYPE_SIZE): Keep as 32.
15212 (UNITS_PER_WORD): Raise to 8 on shmedia.
15213 (MIN_UNITS_PER_WORD): Keep as 4.
15214 (POINTER_SIZE): Raise to 64 on shmedia.
15215 (CONST_OK_FOR_J): New macro.
15216 (CONST_OK_FOR_LETTER_P): Use it.
15217 (processor_type): Add PROCESSOR_SH5.
15218 * config/sh/sh.md: Conditionalize all expands, insns and
15219 splits to TARGET_SH1.
15220 (cpu): Added sh5.
15221 (addsi3_compact): Renamed from...
15222 (addsi3): Now an expand.
15223 (addsi3_media, subsi3_media): New insns.
15224 (subsi3): Don't negate constants with SHmedia.
15225
e4ec2cac
AO
15226 * hooks.c: New file.
15227 * hooks.h: New file.
15228 * Makefile.in (HOOKS_H): New.
15229 (TARGET_DEF_H): Added $(HOOKS_H).
15230 (OBJS): Added hooks.o.
15231 (cfgcleanup.o, bb-reorder.o): Added target.h.
15232 (hooks.o): Added dependencies.
15233 * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
15234 (TARGET_INITIALIZER): this.
15235 * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
15236 * target.h (struct gcc_target): Added cannot_modify_jumps_p.
15237 * bb-reorder.c: Include target.h.
15238 (reorder_basic_blocks): Skip if cannot modify jumps.
15239 * cfgcleanup.c: Include target.h.
15240 (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
15241
246a46e0
CD
152422002-02-08 Chris Demetriou <cgd@broadcom.com>
15243
831c4e87
KC
15244 * config/mips/mips.md (casesi_internal, casesi_internal_di):
15245 Protect jump delay slot instructions with .set noreorder and
15246 .set nomacro.
246a46e0
CD
15247
152482002-02-08 Chris Demetriou <cgd@broadcom.com>
6a5ea3f4
CD
15249
15250 * config/mips/mips.md (casesi_internal_di): Calculate
15251 the index into the target offset table correctly.
15252
fdf473ae
RH
152532002-02-08 Richard Henderson <rth@redhat.com>
15254
15255 * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
15256 * final.c (output_addr_const): Accept and discard SUBREG.
15257 * varasm.c (decode_addr_const): Don't abort on unknown expressions --
15258 mark them unknown instead.
15259 (simplify_subtraction): Handle RTX_UNKNOWN.
15260 (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
15261
c50503ac
DE
152622002-02-08 David Edelsohn <edelsohn@gnu.org>
15263
15264 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
15265
3660d217
RH
152662002-02-08 Richard Henderson <rth@redhat.com>
15267
15268 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
15269
56547299
AJ
152702002-02-08 Andreas Jaeger <aj@suse.de>
15271
15272 * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
15273 * config/i386/t-linux64: New file.
15274
1cf537c5
JJ
152752002-02-08 Jakub Jelinek <jakub@redhat.com>
15276
15277 * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
15278 * c-parse.in (compstmt): Clear last_expr_type.
15279
5c7f5a5f
RH
152802002-02-07 Richard Henderson <rth@redhat.com>
15281
15282 * loop.c (strength_reduce): Sink final_value when not
15283 eliminating a biv.
15284
b1138bf3
DB
152852002-02-07 David O'Brien <obrien@FreeBSD.org>
15286
15287 * config/sparc/freebsd.h: Fix mismatched spec {.
15288
b6878a45
RH
152892002-02-07 Richard Henderson <rth@redhat.com>
15290
15291 * cfgrtl.c: Include recog.h and insn-config.h.
15292 (keep_with_call_p): Fix general_operand invocation.
15293 * Makefile.in (cfgrtl.o): Update dependencies.
15294
ae19f5ef
KH
152952002-02-07 Kazu Hirata <kazu@hxi.com>
15296
15297 * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
15298 comment. Accept HImode only if TARGET_H8300.
15299
b137f9fc
EC
153002002-02-07 Eric Christopher <echristo@redhat.com>
15301
15302 * config/mips/crtn.asm: Cleanup #ifdefs.
15303
153042002-02-07 Eric Christopher <echristo@redhat.com>
15305
15306 * config/mips/crti.asm: Add changes for mips16. mips16 uses
15307 register 7 as RA instead of $31.
15308 * config/mips/crtn.asm: Ditto.
15309 * config/mips/mips.c (mips_move_2words): Add case for
15310 TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
15311 (compute_frame_size): Fix typo.
15312 (save_restore_insns): Ditto. Make documentation about using
15313 register $7 as return register more precise.
15314 (mips_expand_epilogue): Fix comment. Add code to work around not
15315 being able to add to the stack pointer directly.
15316 * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
15317 to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
15318 epilogue.
15319
768070a0
TR
153202002-02-07 Tom Rix <trix@redhat.com>
15321
b137f9fc 15322 * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
768070a0
TR
15323 immediates in ldu and stdu DS opcode field.
15324 * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
15325 * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
15326 * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
15327
225909c3
JS
153282002-02-07 Jeff Sturm <jsturm@one-point.com>
15329
15330 * config/sparc/sparc.c (compute_frame_size): Don't correct frame
15331 offset for stack bias.
15332
15fae023
L
153332002-02-07 H.J. Lu <hjl@gnu.org>
15334
15335 * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
15336
fde5badd
UW
153372002-02-07 Ulrich Weigand <uweigand@de.ibm.com>
15338
15339 * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
15340
162f023b
JH
15341Thu Feb 7 12:14:17 CET 2002 Jan Hubicka <jh@suse.cz>
15342
15343 * i386-protos.h (x86_order_regs_for_local_alloc): Declare
15344 * i386.c (x86_order_regs_for_local_alloc): New global function.
15345 * i386.h (REG_ALLOC_ORDER): CLeanup.
15346 (ORDER_REGS_FOR_LOCAL_ALLOC): New.
15347
9b462c42
RH
153482002-02-07 Richard Henderson <rth@redhat.com>
15349
85aa876c 15350 PR optimization/2463
9b462c42
RH
15351 * alias.c (find_base_value): Recall base values for fixed hard regs.
15352 * loop.c (loop_regs_update): Don't use single_set on non-insns.
15353
06e455a9
AO
153542002-02-07 Alexandre Oliva <aoliva@redhat.com>
15355
15356 * config/mips/mips.md (define_delay) [mips16]: Adjust required
15357 length.
15358
edd1967d
RH
153592002-02-06 Richard Henderson <rth@redhat.com>
15360
15361 PR c/5609
15362 * stmt.c (resolve_operand_name_1): Take more care with mixed
15363 named and unnamed operands.
15364
a2cd028f
JJ
153652002-02-06 Janis Johnson <janis187@us.ibm.com>
15366 Jan Hubicka <jh@suse.cz>
15367
15368 * loop.c (remove_constant_addition): Avoid clobbering a shared
15369 CONST expression.
15370
e8487c04
UW
153712002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
15372
15373 * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
15374 * config/s390/t-linux64: New file.
15375 * config/s390/libgcc-glibc.ver: New file.
15376
58d10f89
UW
153772002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
15378
15379 * config/s390/linux64.h: Delete file.
15380 * config/s390/s390x.h: New file.
15381 * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
15382 as target header file.
15383 * config/s390/linux.h (TARGET_VERSION): Define depending on
15384 DEFAULT_TARGET_64BIT.
15385 (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
15386 (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
15387 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
15388 (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
15389 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
15390 (EXTRA_SPEC): New define.
15391 * config/s390/s390.h (TARGET_VERSION): Define depending on
15392 DEFAULT_TARGET_64BIT.
15393 (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
15394
5ce89b2e
JM
153952002-02-06 Jason Merrill <jason@redhat.com>
15396
15397 * c-decl.c (finish_function): Warn about a non-void function with
15398 no return statement and no abnormal exit.
15399 (current_function_returns_abnormally): New variable.
15400 (start_function): Clear it.
15401 (struct c_language_function): Add returns_abnormally.
15402 (push_c_function_context): Save it.
15403 (pop_c_function_context): Restore it.
15404 (builtin_function): Set TREE_THIS_VOLATILE on return fns.
15405 (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
15406 an explicit return type.
15407 * c-tree.h: Declare current_function_returns_abnormally.
15408 (C_FUNCTION_IMPLICIT_INT): New macro.
15409 * c-typeck.c (build_function_call): Set it.
15410 (c_expand_return): Set current_function_returns_value even if the
15411 value is erroneous.
15412
caaf2272
JJ
154132002-02-06 Jakub Jelinek <jakub@redhat.com>
15414
15415 PR c/5420:
15416 * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
15417 unsafe for reevaluation.
15418
d5129288
JJ
154192002-02-06 Jakub Jelinek <jakub@redhat.com>
15420
15421 PR c/5482:
15422 * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
15423 EXPR_STMT, but COMPOUND_STMT, recurse into it.
15424
7fb75099
RH
154252002-02-06 Richard Henderson <rth@redhat.com>
15426
15427 * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
15428 be a general_operand. Dest for function value must be a pseudo.
15429
d3a8b6a6
NC
154302002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
15431
15432 * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
15433 as SYMBOL_REFs from the constant pool.
15434
3c1299c5
AO
154352002-02-06 Alexandre Oliva <aoliva@redhat.com>
15436
15437 * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
15438 passed by invisible reference.
15439
c2c9f6c9
RH
154402002-02-05 Richard Henderson <rth@redhat.com>
15441
15442 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
15443
a824924d
HPN
154442002-02-06 Hans-Peter Nilsson <hp@bitrange.com>
15445
15446 Implement using "base addresses" in insn operands as default.
15447 * config/mmix/mmix.c (mmix_conditional_register_usage): if
15448 -mabi=gnu, modify fixed_regs to fit the GNU ABI.
15449 (mmix_extra_constraint): Use 'R' to indicate that GETA should be
15450 used to read the rtx value.
15451 (mmix_target_asm_function_epilogue): Fix spacing.
15452 (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
15453 (mmix_legitimate_address): Ditto.
15454 (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
15455 should be loaded with a GETA insn. Don't allocate needless extra
15456 char for nul termination and fix misleading comment.
15457 (mmix_print_operand_address): Handle constants if
15458 TARGET_BASE_ADDRESSES.
15459 (mmix_output_register_setting): Use base addressing if
15460 TARGET_BASE_ADDRESSES and the number of insns is 3.
15461 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
15462 * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
15463 to use R as constraint, add LDA to match s.
15464 * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
15465 (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
15466 (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
15467 (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
15468 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
15469 order with other fixed registers.
15470 (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
15471 other parameter/call-clobbered registers.
15472 * doc/invoke.texi (Option Summary) <MMIX Options>: Add
15473 -mbase-addresses, -mno-base-addresses.
15474 (MMIX Options): Ditto.
15475
73c342b9
JDA
154762002-02-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
15477
15478 * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
15479
ef238c58
AH
154802002-02-06 Aldy Hernandez <aldyh@redhat.com>
15481
831c4e87 15482 * config/rs6000/altivec.h: Change elem to _S_elem.
ef238c58 15483
ad08e60e
JT
154842002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
15485
15486 * config/netbsd.h (WCHAR_TYPE): Define.
15487 (WCHAR_TYPE_SIZE): Ditto.
15488 (WINT_TYPE): Ditto.
15489 * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
15490 (WCHAR_UNSIGNED): Ditto.
15491 (WCHAR_TYPE_SIZE): Ditto.
15492 (WINT_TYPE): Ditto.
15493 * config/arm/netbsd.h: Likewise.
15494 * config/i386/netbsd-elf.h: Likewise.
15495 * config/i386/netbsd.h: Likewise.
15496 * config/m68k/netbsd-elf.h: Likewise.
15497 * config/m68k/netbsd.h: Likewise.
15498 * config/ns32k/netbsd.h: Likewise.
15499 * config/sparc/netbsd.h: Likewise.
15500 * config/vax/netbsd.: Likewise.
15501
f913c102
AO
155022002-02-05 Alexandre Oliva <aoliva@redhat.com>
15503
15504 * target.h (struct gcc_target): Added ms_bitfield_layout_p.
15505 * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New. Added to...
15506 (TARGET_INITIALIZER): this.
15507 * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
15508 (BITFIELD_NBYTES_LIMITED): Markup fix.
15509 * tree.h (default_ms_bitfield_layout_p): Declare.
15510 (record_layout_info): Added prev_field.
15511 * tree.c (default_ms_bitfield_layout_p): New fn.
15512 * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
15513 PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
15514 * stor-layout.c: Include target.h.
15515 (start_record_layout): Initialize prev_field.
15516 (place_field): Handle MS bit-field layout, and disregard
15517 EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
15518 PCC_BITFIELD_TYPE_MATTERS in this case. Update prev_field.
15519 * Makefile.in (stor-layout.o): Adjust dependencies.
15520
c13db5d1
JM
155212002-02-05 Jason Merrill <jason@redhat.com>
15522
c13db5d1
JM
15523 * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
15524
4505024e
AJ
155252002-02-05 Andreas Jaeger <aj@suse.de>
15526
15527 * crtstuff.c: Fix comments.
15528
794ad79d
RH
155292002-02-05 Richard Henderson <rth@redhat.com>
15530
2e279a9b
RH
15531 PR fortran/3393
15532 * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
15533 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
15534
794ad79d
RH
15535 PR fortran/3392
15536 * config/mips/mips.c (function_arg): Handle TImode.
15537 (function_arg_advance): Likewise.
15538
8f909017
AH
155392002-02-05 Aldy Hernandez <aldyh@redhat.com>
15540
c13db5d1
JM
15541 * config/rs6000/altivec.h (vec_step_help): Rename to
15542 __vec_step_help.
8f909017 15543
66daa9e3
AH
155442002-02-05 Aldy Hernandez <aldyh@redhat.com>
15545
c13db5d1 15546 * config/rs6000/altivec.h: Fix typos.
66daa9e3 15547
2696e97b
JT
155482002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
15549
15550 * config/arm/netbsd.h: Correct a comment.
15551
3deb2758
AH
155522002-02-05 Aldy Hernandez <aldyh@redhat.com>
15553
c13db5d1
JM
15554 * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
15555 building void typed builtins.
3deb2758 15556
c13db5d1
JM
15557 * config/rs6000/altivec.h (vec_ld*): Fix typos.
15558 (vec_step): Implement for C++.
3deb2758 15559
c13db5d1 15560Mon Feb 4 19:23:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2c79137a
RK
15561
15562 * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
15563
ebbb0a63
RH
155642002-02-04 Richard Henderson <rth@redhat.com>
15565
15566 * combine.c (nonzero_bits): Re-introduce special case for
15567 sp/fp/ap wrt REGNO_POINTER_ALIGN.
15568
ae4b4a02
AH
155692002-02-05 Aldy Hernandez <aldyh@redhat.com>
15570
c13db5d1
JM
15571 * doc/extend.texi: Warn about unsupported usage of altivec
15572 builtins.
ae4b4a02 15573
c13db5d1
JM
15574 * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
15575 (altivec_predicate_*): New.
ae4b4a02 15576
c13db5d1
JM
15577 * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
15578 Add C++ version of vec_*() functions.
ae4b4a02 15579
c13db5d1
JM
15580 * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
15581 (bdesc_2arg): Remove altivec predicates.
15582 (altivec_expand_builtin): Handle predicates.
15583 (altivec_init_builtins): Handle predicates.
15584 (altivec_expand_predicate_builtin): New.
ae4b4a02 15585
f6bcf44c
JDA
155862002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
15587
15588 * pa.c (DO_FRAME_NOTES): Move forward.
15589 (store_reg): Revise handling of frame notes.
15590 (load_reg): Likewise.
15591 (set_reg_plus_d): Likewise.
15592 (hppa_expand_prologue): Likewise.
15593 (hppa_expand_epilogue): Likewise.
b137f9fc 15594
703b0080
JDA
155952002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
15596
15597 * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
15598
6f9fdf4d
JJ
155992002-02-04 Jakub Jelinek <jakub@redhat.com>
15600
15601 PR c/4475, c++/3780:
15602 * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
15603 * c-common.h (SWITCH_TYPE): Define.
15604 * c-typeck.c (c_start_case): Set SWITCH_TYPE.
15605 * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
15606 Rename spareness variable to sparseness.
15607 (expand_end_case_type): Renamed from expand_end_case, use orig_type
15608 if non-NULL instead of TREE_TYPE (orig_index).
15609 * tree.h (expand_end_case_type): Renamed from expand_end_case.
15610 (expand_end_case): Define using expand_end_case_type.
15611 * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
15612 to expand_end_case_type.
15613 * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
15614
79109502
JDA
156152002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
15616
15617 * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
15618 (BIGGEST_ALIGNMENT): Change to 128.
15619
e62a5987
JDA
156202002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
15621
15622 * pa32-linux.h (LINK_COMMAND_SPEC): Define.
15623
219f24a4
JDA
156242002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
15625
15626 * pa.md (call_internal_reg_64bit): Remove unused variable.
15627
3cb66fd7
NC
156282002-02-04 Nick Clifton <nickc@cambridge.redhat.com>
15629
15630 * config/arm/arm.h (machine_function): Add uses_anonymous_args
15631 field.
831c4e87 15632 (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
3cb66fd7 15633 * config/arm/arm.c (current_function_anonymous_args): Delete,
831c4e87
KC
15634 replace uses with cfun->machine->uses_anonymous_args.
15635 (arm_reorg): Do not reset uses_anonymous_args.
3cb66fd7
NC
15636
15637 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
15638 any geenral register.
b137f9fc 15639
5d5603e2 156402001-02-04 Bernd Schmidt <bernds@redhat.com>s
24c545ff
BS
15641
15642 * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
15643 the entry block.
15644
563c12b0
RH
156452002-02-04 Richard Henderson <rth@redhat.com>
15646
15647 * combine.c (force_to_mode): Remove STACK_BIAS code.
15648 (nonzero_bits): Likewise. Replace sp/fp special case with
15649 REGNO_POINTER_ALIGN.
15650
15651 * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
15652 (HARD_FRAME_POINTER_REGNUM): New.
15653 (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
15654 (FIXED_REGS, CALL_USED_REGS): Update.
15655 (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
15656 (CONDITIONAL_REGISTER_USAGE): Update for HFP.
15657 (HARD_REGNO_NREGS): Update for SFP.
15658 (STACK_POINTER_OFFSET): Include bias here ...
15659 (FIRST_PARM_OFFSET): ... not here.
15660 (STACK_BIAS): Remove.
15661 (INIT_EXPANDERS): New.
15662 (STARTING_FRAME_OFFSET): Do not include bias.
15663 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
15664 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
15665 (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
15666 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
15667 * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
15668 * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
15669 (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
15670 (MUST_SAVE_REGISTER): Likewise.
15671 (sparc_flat_function_prologue): Likewise.
15672 (sparc_flat_function_epilogue): Likewise.
15673 (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
15674 (sparc_init_modes): SFP is GENERAL_REGS.
15675 (sparc_builtin_saveregs): SFP does not have bias applied.
15676
14691f8d
RH
156772002-02-04 Richard Henderson <rth@redhat.com>
15678
15679 * config/alpha/alpha.c (current_function_is_thunk): Don't check
15680 current_function_is_thunk.
15681 (alpha_sa_mask): Distinguish between current_function_is_thunk
15682 called from ASM_OUTPUT_MI_THUNK and not.
15683 (alpha_does_function_need_gp): Thunks always need gp.
15684 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
15685 (alpha_output_mi_thunk_osf): New.
15686 * config/alpha/alpha-protos.h: Update.
15687 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
15688
af702de8
RS
156892002-02-04 Richard Sandiford <rsandifo@redhat.com>
15690
15691 * c-typeck.c (build_c_cast): Warn when qualifiers are added to
15692 function types, not when they're taken away.
15693
5b1cacd8
JL
15694Mon Feb 4 09:05:58 2002 Jeffrey A Law (law@redhat.com)
15695
15696 * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
15697 CODE_LABEL and jump table when replacing a table jump with a
15698 simple jump.
15699
f3e9edff
UW
157002002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
15701
15702 * config/s390/s390-protos.h (legitimize_la_operand,
15703 s390_secondary_input_reload_class, s390_plus_operand,
15704 s390_expand_plus_operand): Add prototypes.
15705
15706 config/s390/s390.c (s390_secondary_input_reload_class,
15707 s390_plus_operand, s390_expand_plus_operand): New functions.
15708
15709 (struct s390_address): New member 'pointer'.
15710 (s390_decompose_address): Compute it.
15711 (legitimate_la_operand_p): Use it.
15712 (legitimize_la_operand): New function.
15713 (movti, movdi, movdf splitters): Call it.
15714
15715 config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
15716 (PREDICATE_CODES): Add s390_plus_operand.
15717
15718 config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
15719 (la_ccclobber): Allow GENERAL_REGS as output operand.
15720
15721 (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
15722 *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
15723 (*la_64, *la_31, reload_indi, reload_insi): ... these.
15724
3c9a08ec
UW
157252002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
15726
15727 * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
15728 register names for regular asm () construct.
15729
ac300a45
JJ
157302002-02-04 Jakub Jelinek <jakub@redhat.com>
15731
15732 * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
15733 registers.
15734
fa852403
JJ
157352002-02-04 Jakub Jelinek <jakub@redhat.com>
15736
15737 * combine.c (recog_for_combine): Create a dummy insn with PATTERN
15738 pat for recog.
15739
fecaac37
HP
157402002-02-04 Hartmut Penner <hpenner@de.ibm.com>
15741
831c4e87
KC
15742 * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
15743 constant pool to be identical by string address and index.
fecaac37 15744
10c45943
AG
157452002-02-04 Anthony Green <green@redhat.com>
15746
15747 * output.h (SECTION_OVERRIDE): Define.
15748 * varasm.c (named_section): Obey SECTION_OVERRIDE.
15749
69474c3c
JT
157502002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
15751
15752 * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
15753 by existing arm*-*-netbsd* (a.out) target.
15754 (ns32k-*-netbsdelf*): Likewise.
15755 (sparc-*-netbsdelf*): Likewise.
15756 (vax-*-netbsdelf*): Likewise.
15757
939a46f6 157582002-02-03 Danny Smith <dannysmith@users.sourceforge.net>
3b56934f
CF
15759
15760 * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
15761 headers and libobjc headers.
15762
157632002-02-03 Mumit Khan <khan@nanotech.wisc.edu>
15764
15765 * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
15766 (_mingw.h): Remove duplicate include.
15767
2fd95d71
JT
157682002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
15769
15770 * config.gcc: Set cpu_type to m68k for 68010, as well.
15771 (m68010-*-netbsdelf*): New...
15772 (m68k*-*-netbsdelf*): ...targets.
15773 * config/m68k/netbsd-elf.h: New file.
15774
0ea6f6a0
KH
157752002-02-02 Kazu Hirata <kazu@hxi.com>
15776
15777 * config/h8300/h8300.c (hand_list): Move inside function_arg.
15778
cbf1b2da
KH
157792002-02-02 Kazu Hirata <kazu@hxi.com>
15780
15781 * config/h8300/h8300.c (h8_push_ops): Move inside
15782 h8300_init_once.
15783 (h8_pop_ops): Likewise.
15784 (h8_move_ops): Likewise.
15785
0869f126
KH
157862002-02-02 Kazu Hirata <kazu@hxi.com>
15787
15788 * config/h8300/h8300.c (os_task): Make it static.
15789 (monitor): Likewise.
15790 (pragma_saveall): Likewise.
15791
90e65b70
AO
157922002-02-02 Alexandre Oliva <aoliva@redhat.com>
15793
15794 * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
15795 constant is a valid sign-extension for Pmode.
15796
9cbcd983
KH
157972002-02-02 Kazu Hirata <kazu@hxi.com>
15798
15799 * config/h8300/h8300.c: Fix formatting.
15800
7a27efc4
KH
158012002-02-02 Kazu Hirata <kazu@hxi.com>
15802
15803 * config/h8300/h8300.md: Fix formatting.
15804
54175a44
KH
158052002-02-02 Kazu Hirata <kazu@hxi.com>
15806
15807 * config/h8300/h8300.md (one_cmpl patterns): Tighten the
15808 predicates of operands[1]. Split the patterns for each
15809 processor variant.
15810
eceb1755
KH
158112002-02-02 Kazu Hirata <kazu@hxi.com>
15812
15813 * config/h8300/h8300.md (xor patterns): Tighten the predicates
15814 of operands[1] to register_operand.
15815
0fef3fd0
NB
158162002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
15817
15818 * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
15819 * cpphash.c (_cpp_init_hashtable): Similarly.
15820 * cppinit.c (cpp_create_reader): Default the signed_char flag.
15821 (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
15822 (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
15823 (cpp_handle_option): Handle the new options.
15824 * cpplex.c (cpp_interpret_charconst): Use new flag.
15825 * cpplib.h (struct cpp_options): New member signed_char.
15826 * gcc.c (cpp_unique_options): Remove %c spec and documentation.
15827 (cpp_options): Handle -fsigned-char and -funsigned-char.
15828 (static_specs): Remove signed_char_spec.
15829 (do_spec1): Don't handle %c.
15830 * system.h: Poison SIGNED_CHAR_SPEC.
15831 * tradcif.y (yylex): Use flag_signed_char.
15832 * tradcpp.h (flag_signed_char): New.
15833 * tradcpp.c (flag_signed_char): New.
15834 (main): Handle new command-line options.
15835 (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
15836config:
15837 * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
15838 * avr/avr.h: Remove old comments.
15839 * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
15840 (CC1_SPEC): Pass -fsigned-char if -mic*.
15841 (SIGNED_CHAR_SPEC): Remove.
15842doc:
15843 * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
15844
0617ed52
EC
158452002-02-01 Eric Christopher <echristo@redhat.com>
15846
15847 From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
15848 * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
15849 * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
15850 (ASM_OUTPUT_REG_POP): Ditto.
15851
dfd48d76
NB
158522002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
15853
15854 * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
15855 patch.
15856
4a23409e
JJ
158572002-02-02 Jakub Jelinek <jakub@redhat.com>
15858
15859 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
15860
d3c52658
JJ
158612002-02-02 Jakub Jelinek <jakub@redhat.com>
15862
15863 PR c/5304:
15864 * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
15865 unconditionally.
15866
02c5a3bd
JJ
158672002-02-01 Janis Johnson <janis187@us.ibm.com>
15868
15869 * cfganal.c: Include tm_p.h.
15870 (keep_with_call_p): Fix the test that determines if a register holds
15871 the return value of a call.
15872
3968de80
DD
158732002-02-01 DJ Delorie <dj@redhat.com>
15874
15875 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
15876 we are given conflicting registers, switch to the other one we
15877 had allocated for us.
15878 * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
15879 as TImode so we know when the "other" register is available.
15880
1338ea6c
DB
158812002-02-01 David O'Brien <obrien@FreeBSD.org>
15882
15883 * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
15884 sparc/sparc_bi.h.
15885
f015be23
JJ
158862002-02-01 Janis Johnson <janis187@us.ibm.com>
15887
15888 * cfganal.c (keep_with_call_p): New function.
15889 (flow_call_edges_add): Prevent splitting a block between a call and
15890 a single-set instruction that should be kept in the same block.
15891
63708ffc
CR
158922002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
15893
15894 * doc/install.texi (avr): Update outdated URL.
15895
5ee4950e
AH
158962002-01-30 Andrew Haley <aph@cambridge.redhat.com>
15897
831c4e87
KC
15898 * config/stormy16/stormy16.md (pushqi): New.
15899 (popqi): New.
15900 (pushhi): New.
15901 (pophi): New.
15902 (movhi): Remove stack operands.
15903 (movqi): Likewise.
15904 * config/stormy16/stormy16.h (PREDICATE_CODES): Add
15905 nonimmediate_nonstack_operand.
15906 * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
15907 New.
15908 * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
15909 New.
5ee4950e 15910
b88c0704
JM
159112002-01-31 Jason Merrill <jason@redhat.com>
15912
15913 * Makefile.in (c-parse.c): Handle .output file.
15914 * objc/Make-lang.in (objc-parse.c): Likewise.
15915
ac282977
AO
159162002-02-01 Alexandre Oliva <aoliva@redhat.com>
15917
15918 * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
15919 the -me[lb] option is given. Don't output the default flag
15920 twice.
15921
bebc7e8b
ZW
159222002-01-31 Zack Weinberg <zack@codesourcery.com>
15923
15924 * c-lex.c (yyparse): Call debug_hooks->start_source_file for
15925 the primary source file; this has not been done yet.
15926 * c-decl.c (c_expand_body): Reset input_filename from
15927 DECL_SOURCE_FILE (fndecl) before calling init_function_start.
15928
5809eb5f
KH
159292002-01-31 Kazu Hirata <kazu@hxi.com>
15930
15931 * rtlanal.c (subreg_regno_offset): Do not use
15932 SUBREG_REGNO_OFFSET.
15933 * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
15934 * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
15935
8512bbd7
JM
159362002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
15937
15938 * gccbug.in: Follow GNU Coding Standards for --version. Use GCC
15939 version rather than GNATS version in --version output.
15940
74cb3cc8
RS
159412002-01-31 Richard Sandiford <rsandifo@redhat.com>
15942
15943 * ifcvt.c (noce_process_if_block): Make a copy of the destination
15944 when copying back from a temporary.
15945
874b5b14
RH
159462002-01-30 Richard Henderson <rth@redhat.com>
15947
15948 * ifcvt.c (dead_or_predicable): Handling merging when other_bb
15949 and new_dest are the same.
15950
e803a64b
RH
159512002-01-30 Richard Henderson <rth@redhat.com>
15952
89cf7be5 15953 PR opt/5076
e803a64b
RH
15954 * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
15955 * rtl.c (note_insn_name): Update.
15956 * emit-rtl.c (remove_unnecessary_notes): Kill it.
15957 * stmt.c (expand_end_loop): Kill jump opt code. Use LOOP_END_TOP_COND
15958 to perform loop rotation.
15959 (expand_exit_loop_top_cond): New.
15960 * tree.h (expand_exit_loop_top_cond): Declare it.
15961 * c-semantics.c (genrtl_while_stmt): Use it.
15962 (genrtl_for_stmt): Likewise.
15963
0b51254d
AO
159642002-01-30 Alexandre Oliva <aoliva@redhat.com>
15965
15966 * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
15967 arguments to 64-bit boundaries on 64-bit ABIs.
15968
71cef493
SE
159692002-01-30 Steve Ellcey <sje@cup.hp.com>
15970
15971 * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
15972
6169e5fd
JM
159732002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
15974
15975 * c-decl.c (grokdeclarator): Handle type being a typedef for an
15976 invalid type.
15977
86f808dc
DB
159782002-01-30 David O'Brien <obrien@FreeBSD.org>
15979
15980 * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
15981 * config/sparc/sparc_bi.h: Remove file.
15982 * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
15983
5748ebeb
RH
159842002-01-30 Richard Henderson <rth@redhat.com>
15985
15986 * sched-deps.c (sched_analyze): Make a call read the frame pointer.
15987
20d32cc2
ZW
159882002-01-30 Zack Weinberg <zack@codesourcery.com>
15989
15990 * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
15991
b88c0704 159922002-01-30 Jason Merrill <jason@redhat.com>
6bb28965
JM
15993
15994 * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
15995 (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
15996 (reg_save): Use DW_CFA_offset_extended_sf instead.
15997
15998 * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
15999
37060e78
JJ
160002002-01-29 Jakub Jelinek <jakub@redhat.com>
16001
16002 * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
16003 in cselib_lookup.
16004
d18dba68
AH
160052002-01-29 Aldy Hernandez <aldyh@redhat.com>
16006
bebc7e8b
ZW
16007 * rs6000.md ("*call_value_local32"): Remove constraints.
16008 ("*call_value_local64"): Same.
16009 ("*call_value_indirect_nonlocal_aix32"): Same.
16010 ("*call_value_nonlocal_aix32"): Same.
16011 ("*call_value_indirect_nonlocal_aix64"): Same.
16012 ("*call_value_nonlocal_aix64"): Same.
16013 ("*call_value_nonlocal_sysv"): Same.
d18dba68 16014
80a8aac6
RH
160152002-01-29 Richard Henderson <rth@redhat.com>
16016
16017 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
16018
12beba6f
RH
160192002-01-29 Richard Henderson <rth@redhat.com>
16020
16021 * expr.c (force_operand): Ignore flag_pic for detecting pic
16022 address loads.
16023 * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
16024 for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
16025 * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
16026 instead of open-coded loop.
16027 * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
16028 be fixed when in use.
16029
2583081e
RH
160302002-01-29 Richard Henderson <rth@redhat.com>
16031
16032 * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
16033 * sched-rgn.c (propagate_deps): Update them.
16034 * sched-deps.c (sched_analyze_insn): Update them. Flush the
16035 clobbers list when either gets too long.
16036
3b8d200e
JJ
160372002-01-29 Jakub Jelinek <jakub@redhat.com>
16038
16039 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
16040 and INDEX_REGS the same as GENERAL_REGS.
16041 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
16042
2d3115eb
NB
160432002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
16044
bebc7e8b 16045 * tree.c (build_nonstandard_integer_type): Correct prototype.
2d3115eb 16046
ecbe845e
UW
160472002-01-29 Ulrich Weigand <uweigand@de.ibm.com>
16048
bebc7e8b 16049 * config/s390/s390.md (movstrsico, movstrdix_64,
ecbe845e 16050 movstrsix_31): Remove, replace by ...
bebc7e8b 16051 (movstrdi_short, movstrsi_short, movstrdi_long,
ecbe845e
UW
16052 movstrsi_long): ... these. New.
16053 (movstrdi, movstrsi): Adapt.
16054
16055 (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
bebc7e8b 16056 ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
ecbe845e
UW
16057 Remove unnecessary CC clobber.
16058 (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
16059 *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
16060
16061 (divmoddi4): Don't partially initialize TImode register.
16062
0b32fca5
GK
160632002-01-29 Geoffrey Keating <geoffk@redhat.com>
16064
16065 * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
16066
08ef5437
RH
160672002-01-29 Richard Henderson <rth@redhat.com>
16068
16069 * flow.c (print_rtl_and_abort): Remove.
16070 (print_rtl_and_abort_fcn): Remove.
16071 (verify_local_live_at_start): Use dump_bb instead.
16072 (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
16073 (verify_wide_reg_1): Return 2 on mode test failure.
16074
8469e54e
NB
160752002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
16076
16077 PR c/3325, c/3326, c/2511, c/3347
16078 * c-decl.c (enum_decl_context): Remove BITFIELD.
16079 (grokdeclarator): Take bitfield width as an input.
16080 Ensure bitfields are given the correct type. Perform
16081 bitfield width validation with build_bitfield_integer_type
16082 rather than waiting for finish_struct.
16083 (grok_typename, grok_typename_in_parm_context, start_decl,
16084 push_parmdecl, grokfield, start_function): Update calls to
16085 grokdeclarator.
16086 (build_bitfield_integer_type): New function.
16087 (finish_struct): Move bitfield validation to grokdeclarator
bebc7e8b 16088 and build_bitfield_integer_type.
8469e54e
NB
16089 * tree.c (build_nonstandard_integer_type): New function.
16090 * tree.h (build_nonstandard_integer_type): New prototype.
16091objc:
16092 * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
16093
ffdeea47
JJ
160942002-01-29 Jakub Jelinek <jakub@redhat.com>
16095
16096 PR other/1502:
16097 * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
16098 don't ignore unrecognized -W* options.
16099 (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
16100 * cpplib.h (cpp_handle_option): Adjust prototype.
16101 * c-decl.c (c_decode_options): Pass 0 as last argument to
16102 cpp_handle_option.
16103
16104 PR c/2896:
16105 * gcc.c (cpp_unique_options): Split from cpp_options.
16106 (cpp_options): Source cpp_unique_options.
16107 (default_compilers): Use cpp_unique_options instead of cpp_options
16108 when used together with cc1_options.
16109 (static_specs): Add cpp_unique_options.
16110 * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
16111 when used together with cc1_options.
16112
1a275226
KH
161132002-01-29 Kazu Hirata <kazu@hxi.com>
16114
16115 * config/h8300/h8300-protos.h: Update the prototype of
16116 output_a_shift.
16117 * config/h8300/h8300.c (output_a_shift): Remove an unused
16118 argument 'insn'. Remove redundant code.
16119 * config/h8300/h8300.md: Adust to the new prototype of
16120 output_a_shift.
16121
a11d9dfc
KH
161222002-01-29 Kazu Hirata <kazu@hxi.com>
16123
16124 * config/h8300/h8300-protos.h: Update the prototypes of
16125 emit_a_rotate and expand_a_rotate.
16126 * config/h8300/h8300.c (emit_a_rotate): Change the type of the
16127 first argument to 'enum rtx_code'.
16128 (expand_a_rotate): Likewise.
16129
871f73e3
KH
161302002-01-28 Kazu Hirata <kazu@hxi.com>
16131
16132 * config/h8300/h8300-protos.h: Update the prototype of
16133 output_simode_bld.
16134 * config/h8300/h8300.c (output_simode_bld): Remove an argumen
16135 'log2'.
16136 * config/h8300/h8300.md: Adjust to the new prototype.
16137
5fc4b751
KH
161382002-01-28 Kazu Hirata <kazu@hxi.com>
16139
16140 * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
16141 redundant code.
16142
2d67bd7b
JDA
161432002-01-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
16144
16145 * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
16146 is a fixed register before returning pic_offset_table_rtx.
16147 * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
16148 when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
16149
5a852b3e
JM
161502002-01-28 Jason Merrill <jason@redhat.com>
16151
6bb28965 16152 * dwarf2.h: Sync with src version.
5a852b3e 16153
3bca17dd
PK
161542002-01-28 Paul Koning <pkoning@equallogic.com>
16155
16156 * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
16157 BT_FN_VOID_PTR_VAR.
16158 * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
16159 * doc/extend.texi (__builtin_prefetch): Update documentation:
16160 first argument is now const void ptr.
16161
7dc3f8c0
KH
161622002-01-28 Kazu Hirata <kazu@hxi.com>
16163
16164 * config/h8300/h8300-protos.h: Remove an unused prototype.
16165
e83cb5f0
RZ
161662002-01-28 Roman Zippel <zippel@linux-m68k.org>
16167
16168 * toplev.c (lang_independent_init): Round up identifier size.
16169
5721cd84
RE
161702002-01-28 Richard Earnshaw <rearnsha@arm.com>
16171
16172 * config.gcc: Revert previous change.
16173
d534119e
AP
161742002-01-28 Andris Pavenis <pavenis@latnet.lv>
16175
16176 * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
16177
5a721dab
RE
161782002-01-28 Richard Earnshaw <rearnsha@arm.com>
16179
16180 * config.gcc (*-*-netbsdelf*): Set up generic parameters.
16181 (*-*-netbsd*): Always use collect2. Remove collect2 settings from
16182 other non-elf netbsd config frags.
16183 * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
16184 collect2 will does that.
16185 * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
16186 shared-lib frobbing will work.
16187
da1775d6
KH
161882002-01-28 Kazu Hirata <kazu@hxi.com>
16189
16190 * config/h8300/h8300.h: Fix formatting.
16191 * config/h8300/h8300.md: Likewise.
16192
8f2e963b
LR
161932002-01-28 Loren J. Rittle <ljrittle@acm.org>
16194
16195 * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
16196 the old, removed AAA_standards fix.
16197 * fixinc/fixincl.x: Rebuilt.
16198
fdae5767
HPN
161992002-01-28 Hans-Peter Nilsson <hp@axis.com>
16200
16201 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
16202 atexit call in crtbegin, hooked in after call to frame_dummy;
16203 register EH before registering __fini__start.
16204
2a2ecb63
AH
162052002-01-28 Aldy Hernandez <aldyh@redhat.com>
16206
16207 * config/rs6000/altivec.h: Remove spurious semicolons.
16208
8ed43adf
KH
162092002-01-27 Kazu Hirata <kazu@hxi.com>
16210
16211 * config/h8300/h8300.md: Replace dead bit extraction patterns
16212 with ones that work.
16213
917afb0c
RK
16214Sun Jan 27 13:23:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16215
16216 * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
16217 if not STRICT_ALIGNMENT.
16218 * rtl.h (MEM_ALIGN): Likewise.
16219
f70a54cb
CR
162202002-01-27 Craig Rodrigues <rodrigc@gcc.gnu.org>
16221
16222 * doc/invoke.texi (-fdump-translation-unit): Revert this
16223 patch: 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
16224
d8fd4914
KH
162252002-01-27 Kazu Hirata <kazu@hxi.com>
16226
16227 * config/h8300/h8300.md (define_constants): New.
16228 (anonymous patterns) Use defined constants appropriately.
16229
15e0e275
KH
162302002-01-27 Kazu Hirata <kazu@hxi.com>
16231
16232 * config/h8300/h8300.c (function_arg): Remove redundant code.
16233
37a0f8a5
RH
162342002-01-26 Richard Henderson <rth@redhat.com>
16235
16236 * sched-deps.c (reg_pending_uses_head): New.
16237 (reg_pending_barrier): Rename from reg_pending_sets_all.
16238 (find_insn_list): Don't mark inline.
16239 (find_insn_mem_list): Remove.
16240 (add_dependence_list, add_dependence_list_and_free): New.
16241 (flush_pending_lists): Replace only_write param with separate
16242 for_read and for_write parameters. Update all callers. Use
16243 add_dependence_list_and_free.
16244 (sched_analyze_1): Do not add reg dependencies here; just set
16245 the pending bits. Use add_dependence_list.
16246 (sched_analyze_2): Likewise.
16247 (sched_analyze_insn): Replace schedule_barrier_found with
16248 reg_pending_barrier. Add all dependencies for pending reg
16249 uses, sets, and clobbers.
16250 (sched_analyze): Don't add reg dependencies for calls, just
16251 set pending bits. Use regs_invalidated_by_call. Treat
16252 sched_before_next_call as a normal list, not a fake insn.
16253 (init_deps): No funny init for sched_before_next_call.
16254 (free_deps): Free pending mems lists. Don't zero reg_last.
16255 (init_deps_global): Init reg_pending_uses.
16256 (finish_deps_global): Free it.
16257 * sched-int.h (deps): Make in_post_call_group_p boolean. Update docs.
16258 (find_insn_mem_list): Remove.
16259 * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
16260 (propagate_deps): Use them. Zero temp mem lists.
16261
cea3bd3e
RH
162622002-01-26 Richard Henderson <rth@redhat.com>
16263
16264 * Makefile.in (CRTSTUFF_CFLAGS): New.
16265 (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
16266 * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
16267 crtstuff.c instead of alpha assembly version.
16268 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
16269 entire dummy function sequence. Use FORCE_CODE_SECTION_ALIGN
16270 not FORCE_{INIT,FINI}_SECTION_ALIGN.
16271 (__do_global_dtors_aux): Mark used.
16272 (frame_dummy, __do_global_ctors_aux): Mark used.
16273 (fini_dummy, init_dummy): Remove.
16274
16275 * config/alpha/crtbegin.asm: Remove file.
16276 * config/alpha/crtend.asm: Remove file.
16277 * config/alpha/t-crtbe: Remove file.
16278 * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
16279 (LINK_EH_SPEC): New.
16280
16281 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
16282 FORCE_INIT_SECTION_ALIGN hack. Register __fini_start before
16283 calling constructors.
16284 * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
16285
16286 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
16287 * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
16288 CRT_END_INIT_DUMMY hack.
16289 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
16290 FORCE_{INIT,FINI}_SECTION_ALIGN.
16291
16292 * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
16293 FORCE_{INIT,FINI}_SECTION_ALIGN.
16294
16295 * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
16296 invocation sequence.
16297 * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
16298
16299 * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
16300 (FORCE_CODE_SECTION_ALIGN): New.
16301
60ffa0e5
RH
163022002-01-26 Richard Henderson <rth@redhat.com>
16303
16304 * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
16305
61334ebe
RH
163062002-01-26 Richard Henderson <rth@redhat.com>
16307
16308 * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
16309 (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
16310
1d788fb6
KH
163112002-01-26 Kazu Hirata <kazu@hxi.com>
16312
16313 * config/h8300/h8300.md: Remove bit extraction patterns that
16314 cannot be triggered.
16315 Restrict each bit extraction pattern to a variant on which the
16316 pattern is tested.
16317
87611f88
JM
163182002-01-26 Joseph S. Myers <jsm28@cam.ac.uk>
16319
16320 * doc/include/texinfo.tex: Update to version 2002-01-04.07.
16321
cd74ec59
KH
163222002-01-26 Kazu Hirata <kazu@hxi.com>
16323
16324 * config/h8300/h8300.md: Remove bit test patterns that cannot
16325 be triggered.
16326 Restrict each bit test pattern to a variant on which the
16327 pattern is tested.
16328
93051e0f
KG
163292002-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16330
16331 * builtins.c (expand_builtin_strncat): Remove redundant check for
16332 INTEGER_CST.
16333
216c995f
DB
163342002-01-25 David O'Brien <obrien@FreeBSD.org>
16335
16336 * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
16337 default setting.
16338 * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
16339 existing setting.
16340
33c7f925
GK
163412002-01-25 Geoffrey Keating <geoffk@redhat.com>
16342
16343 * dbxout.c (dbxout_init): Use assemble_name rather than just
16344 stripping off the first character.
16345 (dbxout_source_file): Likewise.
16346
6cd444b4
DD
163472002-01-25 DJ Delorie <dj@redhat.com>
16348
16349 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
16350 using rtx_equal_p, not by comparing pointers.
16351
751551d5
SE
163522002-01-25 Steve Ellcey <sje@cup.hp.com>
16353
16354 * emit-rtl.c (gen_rtx_REG): Always return the same rtx
16355 for PIC_OFFSET_TABLE_REGNUM.
16356 (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
16357
e564e618
DB
163582002-01-25 David O'Brien <obrien@FreeBSD.org>
16359
16360 * config.gcc (x86_64-*-freebsd*): New target.
16361 (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
16362 value.
16363 (i[34567]86-*-freebsd*): Don't include svr4.h.
16364 * config/i386/freebsd64.h: New file.
16365
ff3aaf17
DR
163662002-01-25 Douglas B Rupp <rupp@gnat.com>
16367
4857d29d
DR
16368 * config/alpha/x-vms (version): Make static.
16369
16370 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
16371 in previous checkin.
16372
ff3aaf17
DR
16373 * Makefile.in (install-headers-cp): New target.
16374 * config.gcc (alpha-dec-*vms*): Install headers with
16375 install-headers-cp
16376
48d79c43
JH
16377Fri Jan 25 22:42:49 CET 2002 Jan Hubicka <jh@suse.cz>
16378
16379 * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
16380 avoid it's copies.
16381
995b5904
RK
16382Fri Jan 25 08:26:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16383
16384 * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
16385 of compare_tree_int.
16386 (expand_builtin_strncat): Likewise.
16387 * c-decl.c (finish_struct): Use tree_low_cst.
16388 * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
16389 * tree.c (compare_tree_int): Likewise.
16390
75eefe3f
UW
163912002-01-25 Ulrich Weigand <uweigand@de.ibm.com>
16392
16393 * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
16394 adjustments even if they are implemented by more than two insns.
16395
5a133afd
JH
16396Fri Jan 25 20:43:56 CET 2002 Jan Hubicka <jh@suse.cz>
16397
995b5904 16398 * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
5a133afd
JH
16399 * df.h (struct ref): Kill B.
16400 (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
16401
16402 * basic-block.h (PROP_EQUAL_NOTES): New flag.
16403 * flow.c (propagate_one_insn): Use it.
16404 (mark_used_regs): Handle NIL.
16405
ead39bdf 164062002-01-25 Geoffrey Keating <geoffk@redhat.com>
3d8dd3c0
GK
16407
16408 * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
16409 to help folding.
16410
01a2ccd0
DE
164112002-01-25 David Edelsohn <edelsohn@gnu.org>
16412
16413 * rs6000.md (prefetch): Make address V4SI mode so that the address
16414 is restricted to legitimate form for instruction.
16415
fd29f6ea
BW
164162002-01-25 Bob Wilson <bob.wilson@acm.org>
16417
16418 * doc/install.texi (xtensa-*-elf): New target.
16419 (xtensa-*-linux*): New target.
16420 * doc/contrib.texi: Add myself.
16421
55492b32
NC
164222002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
16423
16424 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
16425 purpose register to hold an SImode (or smaller) value.
16426
72c7c913
JJ
164272002-01-25 Jakub Jelinek <jakub@redhat.com>
16428
16429 * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
16430 registry only.
16431 * crtstuff.c: Likewise.
16432
c4df4ceb
KH
164332002-01-25 Kazu Hirata <kazu@hxi.com>
16434
16435 * config/h8300/h8300.md (negation patterns): Tighten
16436 predicates to register_operand.
16437
70e531f5
AH
164382002-01-24 Aldy Hernandez <aldyh@redhat.com>
16439
3bca17dd
PK
16440 * loop.c (emit_prefetch_instructions): Use the prefetch insn's
16441 mode, not Pmode.
70e531f5 16442
3bca17dd 16443 * builtins.c (expand_builtin_prefetch): Same.
70e531f5 16444
a4f76ef9
AO
164452002-01-24 Alexandre Oliva <aoliva@redhat.com>
16446
16447 * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
16448 modes.
16449
9bf25b09
KH
164502002-01-24 Kazu Hirata <kazu@hxi.com>
16451
16452 * config/h8300/h8300.c (print_operand): Remove support for
16453 operand character 'A'.
16454 * config/h8300/h8300.md (three anonymous patterns): Replace
16455 operand character 'A' with either 'T' or 'S'.
16456
974af6a5
KH
164572002-01-24 Kazu Hirata <kazu@hxi.com>
16458
16459 * config/h8300/h8300.c (print_operand): Remove support for
16460 operand character 'U'.
16461
7a5bb7b8
AP
164622002-01-24 Andris Pavenis <pavenis@latnet.lv>
16463
3bca17dd 16464 * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
7a5bb7b8 16465
92a4639e
NC
164662002-01-24 Nick Clifton <nickc@cambridge.redhat.com>
16467
16468 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
16469 values to be assigned to the stack pointer.
16470
467cb2da
HP
164712002-01-14 Hartmut Penner <hpenner@de.ibm.com>
16472
bebc7e8b 16473 * emit_rtl.c (gen_lowpart_common): Conversion from const_int
467cb2da
HP
16474 to const_double needs to be done right for big-endian systems.
16475
3b6cb920
JM
164762002-01-24 Jason Merrill <jason@redhat.com>
16477
b08dd119 16478 PR c++/2432
3b6cb920
JM
16479 * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
16480 to can_throw_internal.
16481
f3077311
RH
164822002-01-23 Richard Henderson <rth@redhat.com>
16483
16484 * fold-const.c (fold): Change UINT_MAX test to check vs precision
16485 rather than TYPE_MAX_VALUE. Fix indentation and a bogus negation.
16486
e1d71275
AO
164872002-01-24 Alexandre Oliva <aoliva@redhat.com>
16488
16489 * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
16490 (symGOT2reg): Use them, then set as GOT value as unchanging.
16491 (symGOTOFF2reg): Set REG_EQUAL note. Use a different pseudo
16492 as a temporary, if possible.
16493 (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC. Emit
16494 sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
16495
dc271dbe
KH
164962002-01-23 Kazu Hirata <kazu@hxi.com>
16497
16498 * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
16499 accept to accept 0x80 as operands[2].
16500
1a9017f9
AO
165012002-01-24 Alexandre Oliva <aoliva@redhat.com>
16502
16503 * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
16504
6932f033
RH
165052002-01-23 Richard Henderson <rth@redhat.com>
16506
16507 * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
16508
709619d9
AH
165092002-01-23 Aldy Hernandez <aldyh@redhat.com>
16510
3bca17dd
PK
16511 * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
16512 (parmlist_or_identifiers_1): Verify that only a parmlist follows
16513 an attribute.
709619d9 16514
3d709fd3
RH
165152002-01-23 Richard Henderson <rth@redhat.com>
16516
16517 * expr.c (move_by_pieces_1): Extend size before negation.
16518
88a446c0
RH
16519 * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
16520 (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
16521 (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
16522 * config/m68k/t-m68kelf: Likewise.
16523
03984308
BW
165242002-01-23 Bob Wilson <bob.wilson@acm.org>
16525
16526 * config/xtensa/elf.h: New file.
16527 * config/xtensa/lib1funcs.asm: New file.
16528 * config/xtensa/lib2funcs.S: New file.
16529 * config/xtensa/linux.h: New file.
16530 * config/xtensa/t-xtensa: New file.
16531 * config/xtensa/xtensa-config.h: New file.
16532 * config/xtensa/xtensa-protos.h: New file.
16533 * config/xtensa/xtensa.c: New file.
16534 * config/xtensa/xtensa.h: New file.
16535 * config/xtensa/xtensa.md: New file.
16536 * config.gcc (xtensa-*-elf*): New target.
16537 (xtensa-*-linux*): New target.
16538 * cse.c (canon_hash): Compare rtx pointers instead of register
16539 numbers. This is required for the Xtensa port.
16540 * integrate.c (copy_insn_list): Handle case where the static
16541 chain is in memory and the memory address has to be copied to
16542 a register.
16543 * doc/invoke.texi (Option Summary): Add Xtensa options.
16544 (Xtensa Options): New node.
16545 * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
16546
c3d5c3fa
ZW
165472002-01-23 Zack Weinberg <zack@codesourcery.com>
16548
a63bea75
ZW
16549 * diagnostic.c (internal_error): Do ICE suppression only
16550 when ENABLE_CHECKING is not defined.
16551
c3d5c3fa
ZW
16552 * c-typeck.c (require_complete_type): Return error_mark_node
16553 if type is error_mark_node.
16554
1398974c
JJ
165552002-01-23 Janis Johnson <janis187@us.ibm.com>
16556
16557 * toplev.c (process_options): Disable -fprefetch-loop-arrays with
16558 -Os and issue a warning.
16559
807633e5
ZW
165602002-01-23 Zack Weinberg <zack@codesourcery.com>
16561
16562 * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
16563 current (lack of) need for host configuration by hand.
16564
16565 * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
16566 references. Documentation of some target macros moved from
16567 hostconfig.texi to tm.texi.
16568
cf8002d0
WC
165692002-01-23 Will Cohen <wcohen@redhat.com>
16570
16571 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
16572 defined.
16573
d1e76310
KH
165742002-01-23 Kazu Hirata <kazu@hxi.com>
16575
16576 * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
16577 operand[3].
16578
b2115575
JM
165792002-01-23 Jason Merrill <jason@redhat.com>
16580
f893c16e
JM
16581 * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
16582
b2115575
JM
16583 * function.c (assign_parms): Don't put args of inline functions
16584 into registers when not optimizing.
16585
6bacc7b0
NC
165862002-01-23 Nick Clifton <nickc@cambridge.redhat.com>
16587
16588 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
16589 (prologue_use): New pattern.
16590 * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
16591 preference to gen_rtx_USE.
16592 (thumb_expand_prologue): Use gen_prologue_use in preference to
16593 gen_rtx_USE.
16594 (thumb_expand_epilogue): Use gen_prologue_use in preference to
16595 gen_rtx_USE.
16596
a415f7bc
HPN
165972002-01-23 Hans-Peter Nilsson <hp@bitrange.com>
16598
16599 * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
16600
5372b3fb
NB
166012002-01-23 Neil Booth <neil@daikokuya.demon.co.uk>
16602
16603 PR c/3504
16604 * doc/extend.texi: Correct documentation of __alignof__.
16605
bd571ffc
ZW
166062002-01-22 Zack Weinberg <zack@codesourcery.com>
16607
16608 * params.h: Rename arguments of DEFPARAM so that it will be
16609 recognized as a translation keyword.
16610
333c8841
AH
166112002-01-22 Aldy Hernandez <aldyh@redhat.com>
16612
bd571ffc
ZW
16613 * extend.texi: Document altivec functions.
16614 Fix N-bit adjectives in X86 builtin documentation.
333c8841 16615
38979c65
AO
166162002-01-22 Alexandre Oliva <aoliva@redhat.com>
16617
16618 * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
16619 auto_inc_dec values.
16620
7458a9f0
RE
166212002-01-22 Richard Earnshaw <rearnsha@arm.com>
16622
16623 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
16624 after backslash.
16625 (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
16626
129bd0c4
AO
166272002-01-22 Alexandre Oliva <aoliva@redhat.com>
16628
16629 * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
16630
8b9b74a9
RH
166312002-01-22 Richard Henderson <rth@redhat.com>
16632
16633 * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
16634 copy_insn not copy_rtx.
16635
d0c9db30
AM
166362002-01-23 Alan Modra <amodra@bigpond.net.au>
16637
16638 * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
16639 "nonzero" as that might add "1" bits. Ensure "constop" is
16640 properly sign extened.
16641 (force_to_mode): Tweak for sign extended constop.
16642
1e7e480e
RH
166432002-01-22 Richard Henderson <rth@redhat.com>
16644
16645 * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
16646 for_each_rtx instead of assuming we're already looking at the MEM.
16647 (split_small_symbolic_mem_operand): Likewise.
16648 * config/alpha/alpha.h (PREDICATE_CODES): Update.
16649 * config/alpha/alpha.md (small symbolic memory splitters): Update.
16650
166512002-01-22 Richard Henderson <rth@redhat.com>
2e271932
RH
16652
16653 * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
16654 sequence number for the literal.
16655 (divmoddi_internal_er): Likewise.
16656
b7f2fb96
CR
166572002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
16658
16659 PR java/4972
16660 * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
16661 in LIBICONV variable.
16662 * configure: Regenerated.
16663
f66a0046
KW
166642002-01-22 Krister Walfridsson <cato@df.lth.se>
16665
16666 * dependence.c (build_def_use): Remove array_idx.
16667
e3b0efd1
KW
16668 * dwarfout.c (last_filename): Remove.
16669 (output_compile_unit_die): Remove last_filename.
16670
d8086cbb
RS
166712002-01-22 Roger Sayle <roger@eyesopen.com>
16672 Richard Henderson <rth@redhat.com>
16673
16674 PR opt/3640
16675 * fold-const.c (fold): Optimize unsigned comparisons against
16676 UINT_MAX (and similar unsigned constants).
16677
e8d52ba0
JJ
166782002-01-22 Janis Johnson <janis187@us.ibm.com>
16679
d8086cbb 16680 * Makefile.in (loop.o): Depend on OPTABS_H.
1398974c 16681 * loop.c (emit_prefetch_instructions): Check the prefetch operand
d8086cbb 16682 against the predicate.
11303d15 16683
e8d52ba0
JJ
16684 PR target/5379
16685 * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
16686 for the address operand.
16687
cc7b420e
RH
166882002-01-22 Richard Henderson <rth@redhat.com>
16689
16690 * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
16691
816e265a
CR
166922002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
16693
16694 PR other/5450
cc7b420e
RH
16695 * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
16696 preprocessor flags.
816e265a 16697
7c884404
JT
166982002-01-22 Jason Thorpe <thorpej@wasabisystems.com>
16699
16700 * config.gcc (x86_64-*-netbsd*): New target.
16701 * config/i386/netbsd64.h: New file.
16702
2b672c08
AH
167032002-01-22 Aldy Hernandez <aldyh@redhat.com>
16704
d8086cbb 16705 * regrename.c (kill_value): Fix typo.
2b672c08
AH
16706
167072002-01-22 Aldy Hernandez <aldyh@redhat.com>
16708
d8086cbb 16709 * doc/tm.texi: Remove STARTING_FRAME_PHASE.
2b672c08 16710
d8086cbb 16711 * config/rs6000/rs6000.h: Same.
2b672c08 16712
d8086cbb
RS
16713 * function.c (instantiate_virtual_regs): Remove
16714 STARTING_FRAME_PHASE.
16715 (assign_stack_local_1): Same.
16716 Calculate frame phase.
2b672c08 16717
4b02997f
NC
167182002-01-22 Nick Clifton <nickc@redhat.com>
16719
16720 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
16721 variable declaration to outer scope in order to simplify
16722 future extensions.
16723 (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
16724 arm_hard_regno_mode_ok.
16725 * config/arm/arm-protos.h: Add a prototype for
16726 arm_hard_regno_mode_ok.
16727 * config/arm/arm.c (soft_df_operand): Remove now redundant
16728 check for DImode values using IP_REGNUM.
16729 (nonimmediate_soft_df_operand): Remove now redundant check for
16730 DImode values using IP_REGNUM.
16731 (arm_hard_regno_mode_ok): New function. New check: make sure
16732 that DImode values are not stored in IP_REGNUM.
c14a3a45
NC
16733
16734 * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
16735 note with a USE.
16736 (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
16737
8a827ab2
JM
167382002-01-22 Jason Merrill <jason@redhat.com>
16739
16740 * c-semantics.c (genrtl_compound_stmt): Only check nesting
16741 consistency if this COMPOUND_STMT is scoped.
16742
cf403648
KH
167432002-01-22 Kazu Hirata <kazu@hxi.com>
16744
16745 * predict.c: Fix formatting.
16746 * print-tree.c: Likewise.
16747 * protoize.c: Likewise.
16748 * real.h: Likewise.
16749 * rtl.h: Likewise.
16750 * sbitmap.h: Likewise.
16751 * scan.c: Likewise.
16752 * sched-deps.c: Likewise.
16753 * sched-vis.c: Likewise.
16754 * sdbout.c: Likewise.
16755 * sibcall.c: Likewise.
16756 * ssa.c: Likewise.
16757 * ssa-ccp.c: Likewise.
16758 * ssa-dce.c: Likewise.
16759 * stmt.c: Likewise.
16760 * stor-layout.c: Likewise.
16761 * system.h: Likewise.
16762
aea9695c
RK
16763Tue Jan 22 06:26:33 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16764
a8765ae7
RK
16765 * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
16766 if fits in bounds of base type.
16767
aea9695c
RK
16768 * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
16769 (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
16770 (add_bound_info, default): If can't find a context, make a
16771 SAVE_EXPR.
16772 (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
16773
58bf601b
HPN
167742002-01-22 Hans-Peter Nilsson <hp@axis.com>
16775
16776 * c-typeck.c (parser_build_binary_op): If result from
16777 build_binary_op is ERROR_MARK just return error_mark_node without
16778 further processing.
16779
f982f805
JT
167802002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
16781
16782 * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
16783 Split a.out-specific bits into...
16784 * config/netbsd-aout.h: ...this.
16785 * config/netbsd-elf.h: New file.
16786 * config/alpha/netbsd-elf.h: Remove.
16787 * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
16788 * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
bd571ffc 16789 (STARTFILE_SPEC): Remove redundant definition.
f982f805
JT
16790 (ENDFILE_SPEC): Likewise.
16791 (LINK_SPEC): Likewise.
16792 (CPP_SPEC): Likewise.
16793 (ASM_SPEC): Likewise.
16794 (LIB_SPEC): Likewise.
16795 (SWITCH_TAKES_ARG): Likewise.
16796 (TARGET_MEM_FUNCTIONS): Likewise.
16797 (CPP_PREDEFINES): Redefine.
16798 (ASM_FINAL_SPEC): Remove redefinition.
16799 (ASM_COMMENT_START): Redefine.
16800 (FUNCTION_PROFILER): Define.
16801 (TARGET_VERSION): Redefine.
16802 Comment and formatting cleanup.
16803 * config/i386/netbsd.h: Include <netbsd-aout.h>.
16804 * config/m68k/netbsd.h: Include <netbsd-aout.h>.
16805 * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
16806 big- or little-endian.
16807 * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
16808 * config.gcc (*-*-netbsd*): Add definitions common to all
16809 NetBSD configs.
16810 (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
16811 gnu_ld definitions. Add netbsd-elf.h to and remove
16812 alpha/netbsd-elf.h from tm_file. Remove alpha/t-crtfm from
16813 tmake_file, and don't lose previous tmake_file contents.
16814 (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
16815 (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
16816 gnu_ld definitions. Add netbsd-elf.h to tm_file.
16817 (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
16818 (mipsel-*-netbsd*): Rename this to...
16819 (mips*-*-netbsd*): ...this. Add elfos.h to tm_file. Add
16820 mips/little.h to tm_file for mips*el-*.
16821 (powerpc-*-netbsd*): Remove redundant xm_defines definition.
16822 (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
16823 (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
16824
2e396476
JDA
168252002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
16826
16827 * pa-protos.h (reg_before_reload_operand): New function prototype.
16828 * pa.c (reg_before_reload_operand): New function implementation.
16829 * pa.md (decrement_and_branch_until_zero, movb): Use it. Change "!*m"
16830 contraints to "*m".
16831
3b5708e7
FS
168322002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
16833
16834 * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
16835
85e79f96
JDA
168362002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
16837
16838 * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
16839 (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
16840 (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
16841 (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
16842 (ENDFILE_SPEC): Undefine.
16843 (STARTFILE_SPEC): Redefine for PA.
16844
38abadee
FS
168452002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
16846
16847 * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
16848
94f1d97c
DJ
168492002-01-21 Daniel Jacobowitz <drow@mvista.com>
16850
16851 * config.gcc: Add entries to supported PowerPC --with-cpu
16852 types.
16853
0333394e
JJ
168542002-01-21 Jakub Jelinek <jakub@redhat.com>
16855
16856 * config/i386/i386.c (ix86_function_arg_regno_p): Never return
16857 true for 64-bit mode only SSE registers in 32-bit mode.
16858
e9d1b155
KH
168592002-01-21 Kazu Hirata <kazu@hxi.com>
16860
16861 * unwind-dw2.c: Fix formatting.
16862 * unwind-dw2-fde.c: Likewise.
16863 * unwind-dw2-fde.h: Likewise.
16864 * unwind-pe.h: Likewise.
16865 * varasm.c: Likewise.
16866 * varray.h: Likewise.
16867
07338cf8
HPN
168682002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
16869
16870 Remove workaround for register stack overwrite bug in mmix.
16871 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
16872 support for TARGET_REG_STACK_FILL_BUG.
16873 * config/mmix/mmix.h: Remove member has_call_without_parameters.
16874 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
16875 Delete.
16876 (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
16877 (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
16878 -mno-reg-stack-fill-bug-workaround.
16879 * config/mmix/mmix.md ("call", "call_value"): Don't set struct
16880 machine member has_call_without_parameters.
16881 * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
16882 -mreg-stack-fill-bug-workaround and
16883 -mno-reg-stack-fill-bug-workaround.
16884 (MMIX Options): Ditto.
16885
7192cbf1
KH
168862002-01-21 Kazu Hirata <kazu@hxi.com>
16887
16888 * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
16889 as appropriate.
16890 Remove redundant code.
16891
d1552d7b
JM
168922002-01-21 Joseph S. Myers <jsm28@cam.ac.uk>
16893
16894 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
16895 config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
16896 config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
16897 config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
16898 config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
16899 out target macro definitions and non-target-specific comments
16900 mostly taken from old versions of the manual.
16901
ed168e45
KH
169022002-01-20 Kazu Hirata <kazu@hxi.com>
16903
16904 * config/h8300/h8300.h: Fix comment formatting.
16905 * config/ia64/aix.h: Likewise.
16906 * config/ia64/ia64-protos.h: Likewise.
16907 * config/ia64/ia64.c: Likewise.
16908 * config/ia64/ia64.h: Likewise.
16909 * config/ia64/ia64intrin.h: Likewise.
16910 * config/ia64/linux.h: Likewise.
16911 * config/ia64/unwind-aix.c: Likewise.
16912 * config/ia64/unwind-ia64.c: Likewise.
16913
005e3e05
KH
169142002-01-20 Kazu Hirata <kazu@hxi.com>
16915
16916 * config/h8300/h8300.c: Revise comments about shift code.
16917
64bead4c
KH
169182002-01-20 Kazu Hirata <kazu@hxi.com>
16919
16920 * config/h8300/h8300.c (function_arg): Update a comment.
16921
ed863595
KH
169222002-01-20 Kazu Hirata <kazu@hxi.com>
16923
16924 * config/h8300/h8300.md: Update the comments at the beginning
16925 of the file.
16926
5904dc87
KH
169272002-01-20 Kazu Hirata <kazu@hxi.com>
16928
16929 * config/i370/i370.c: Fix comment formatting.
16930 * config/i370/i370.h: Likewise.
16931 * config/i370/i370.md: Likewise.
16932 * config/i370/linux.h: Likewise.
16933
9702143f
RK
16934Sun Jan 20 18:40:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16935
cbafacd1
RK
16936 * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
16937
9702143f
RK
16938 * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
16939 (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
16940 in incomplete case.
16941
6b6996b8
GS
169422002-01-20 Graham Stott <grahams@redhat.com>
16943
16944 * cfgloop.c (flow_loop_preheader_scan): Fix typo.
16945
eab854f6
JDA
169462002-01-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
16947
16948 * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
16949
5b029315
TR
169502002-01-19 Tom Rix <trix@redhat.com>
16951
16952 * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
16953
1d690052
AH
169542002-01-18 Aldy Hernandez <aldyh@redhat.com>
16955
d8086cbb 16956 * doc/tm.texi (STARTING_FRAME_PHASE): Document.
1d690052 16957
d8086cbb
RS
16958 * function.c (assign_stack_local_1): Adjust x_frame_offset with
16959 STARTING_FRAME_PHASE.
16960 (STARTING_FRAME_PHASE): New.
16961 (instantiate_virtual_regs): Check saneness of
16962 STARTING_FRAME_PHASE.
1d690052 16963
d8086cbb 16964 * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
1d690052 16965
4dd8c093
AO
169662002-01-19 Alexandre Oliva <aoliva@redhat.com>
16967
16968 * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
16969
6f2a28d7
CR
169702002-01-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
16971
16972 * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
16973 be used for bootstrapping GCC 3.0.
16974
8763a465
KH
169752002-01-18 Kazu Hirata <kazu@hxi.com>
16976
16977 * config/h8300/h8300.md: Fix an insn length.
16978
3ef42a0c
KH
169792002-01-18 Kazu Hirata <kazu@hxi.com>
16980
16981 * bitmap.h: Fix comment formatting.
16982 * combine.c: Likewise.
16983 * cppfiles.c: Likewise.
16984 * c-pragma.h: Likewise.
16985 * c-typeck.c: Likewise.
16986 * df.c: Likewise.
16987 * dwarf2out.c: Likewise.
16988 * function.c: Likewise.
16989 * gcc.c: Likewise.
16990 * genattrtab.c: Likewise.
16991 * gthr-win32.h: Likewise.
16992 * haifa-sched.c: Likewise.
16993 * predict.c: Likewise.
16994 * rtlanal.c: Likewise.
16995 * rtl.h: Likewise.
16996 * unwind-dw2-fde.h: Likewise.
16997 * unwind-pe.h: Likewise.
16998 * vmsdbgout.c: Likewise.
16999
dd4dc3cd
RK
17000Thu Jan 17 15:28:26 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17001
17002 * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
17003 if type_required and passed decl.
17004
5fb4cf24
AH
170052002-01-17 Aldy Hernandez <aldyh@redhat.com>
17006
d8086cbb
RS
17007 * config.gcc (cpu_type): Include altivec.h in powerpc
17008 extra_headers.
17009 Same for darwin.
5fb4cf24 17010
d8086cbb 17011 * config/rs6000/altivec.h: New.
5fb4cf24 17012
2705baf5
DE
170132002-01-17 David Edelsohn <edelsohn@gnu.org>
17014
17015 * doc/install.texi (*-ibm-aix*): Update assembler and exception
17016 handling information.
17017 * doc/trouble.texi (Interoperation): Add libstdc++ information
17018 for AIX.
17019 (Misunderstandings): Add template instantiation and static template
17020 member information for AIX.
17021
dbd680e1
JM
170222002-01-17 Jason Merrill <jason@redhat.com>
17023
821adc5e
JM
17024 * dbxout.c (dbxout_type): Support const and volatile.
17025
dbd680e1
JM
17026 * except.c (add_partial_entry): Remove backwards compatibility code.
17027 (end_protect_partials): Likewise.
17028
d0e82870
JJ
170292002-01-17 Jakub Jelinek <jakub@redhat.com>
17030
17031 * config/ia64/ia64.md (prologue_use): New.
17032 * config/ia64/ia64.c (ia64_expand_prologue): Use
17033 gen_prologue_use instead of gen_rtx_USE.
17034 (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
17035 as CODE_FOR_pred_rel_mutex.
17036 (ia64_sched_reorder2): Likewise.
17037
f9f45c65
EC
170382002-01-16 Eric Christopher <echristo@redhat.com>
17039
17040 * config/mips/r3900.h: Reformat.
17041 (SUBTARGET_CPP_SIZE_SPEC): Remove.
17042 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
17043 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
17044 (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
17045 * config/mips/t-elf: Remove mips3 multilib.
17046
c66c8b0e
L
170472002-01-16 H.J. Lu <hjl@gnu.org>
17048
17049 * config/mips/linux.h: Include "mips/abi64.h".
17050
5f083b72
L
170512002-01-16 H.J. Lu <hjl@gnu.org>
17052
17053 * config/mips/t-linux: New.
17054
17055 * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
17056
17057 * config/mips/linux.h: Don't include "gofast.h".
17058 (INIT_SUBTARGET_OPTABS): Removed.
17059
af3c90a6
KH
170602002-01-16 Kazu Hirata <kazu@hxi.com>
17061
17062 * config/h8300/h8300-protos.h: Replace emit_a_shift with
17063 output_a_shift.
17064 * config/h8300/h8300.c: Likewise.
17065 * config/h8300/h8300.md: Likewise.
17066
a1bf0a16
KH
170672002-01-16 Kazu Hirata <kazu@hxi.com>
17068
17069 * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
17070 spaces after an opcode name.
17071 (pushqi1_h8300hs): Likewise.
17072 (pushhi1_h8300hs): Likewise.
17073
88ab0d1c
KH
170742002-01-16 Kazu Hirata <kazu@hxi.com>
17075
17076 * doc/extend.texi: Replace "option" with "attribute"
17077 appropriately.
17078
51c561e3
JJ
170792002-01-16 Jakub Jelinek <jakub@redhat.com>
17080
17081 * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
17082 (and:DI () (const_int -8)).
17083 (split_small_symbolic_mem_operand): Split
17084 (mem (and:DI () (const_int -8)).
17085
b8c1a6b8
JJ
170862002-01-16 Jakub Jelinek <jakub@redhat.com>
17087
17088 PR target/5309:
d8086cbb 17089 * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
b8c1a6b8
JJ
17090 same way as TYPE_IMUL.
17091 (ultrasparc_sched_reorder): Likewise.
17092 * config/sparc/sparc.md (type): Add comment to update
17093 ultrasparc_sched_reorder when making changes.
17094
1e4e4df2
KH
170952002-01-16 Kazu Hirata <kazu@hxi.com>
17096
17097 * doc/invoke.texi: Change the dump file name of block
17098 reordering pass from 28.bbro to 29.bbro.
17099 Mention -dk option.
17100
14d920c0
JH
17101Wed Jan 16 17:54:22 CET 2002 Jan Hubicka <jh@suse.cz>
17102
17103 * i386.md (minsf splitter): Fix pasto.
17104
2e99323f
NC
171052002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
17106
17107 * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
17108 to frame pointer initialisation instruction.
17109 (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
17110 initialisation instruction.
ab8081c1
NC
17111 (soft_df_operand): Do not accept the IP register.
17112 (nonimmediate_soft_df_operand): Do not accept the IP register.
2e99323f 17113
c4031a04
JJ
171142002-01-16 Jakub Jelinek <jakub@redhat.com>
17115
17116 PR target/5357:
17117 * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
17118 MASK_V8 being both set.
17119
44b8152b
UW
171202002-01-16 Ulrich Weigand <uweigand@de.ibm.com>
17121
17122 * config/s390/s390.c (s390_emit_prologue): Do not emit USE
17123 insn for GOT register; add REG_MAYBE_DEAD notes instead.
17124 config/s390/s390.md (call, call_value): Add GOT register to
17125 CALL_INSN_FUNCTION_USAGE where needed.
17126 (call_exp, call_value_exp): New.
17127
1d6e90ac
NC
171282002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
17129
17130 * config/arm/arm.c: General formatting tidy up.
17131
171322002-01-16 Graham Stott <grahams@redhat.com>
60e8b9f0
GS
17133
17134 * calls.c (try_to_integrate): Use "(size_t)" intermediate
17135 cast and when casting an integer literal to "rtx" pointer.
17136 (expand_call): Likewise.
17137 * flow.c (try_pre_increment): Likewise.
17138 (find_use_as_address): Likewise.
17139 * integrate.c (expand_iline_function): Likewise.
17140 * regmove.c (try_auto_increment): Likewise.
17141
1d6e90ac 171422002-01-16 Graham Stott <grahams@redhat.com>
7b25b076
GS
17143
17144 * sched-rgn.c (passed): Use sbitmap_free.
17145 (header): Likewise.
17146 (inner): Likewise.
17147 (in_queue): Likewise.
17148 (in_stack): Likewise.
17149
31fce3c4
EC
171502002-01-15 Eric Christopher <echristo@redhat.com>
17151
17152 * flow.c (propagate_one_insn): Change to use fatal_insn.
17153
c99d986a
KH
171542002-01-15 Kazu Hirata <kazu@hxi.com>
17155
17156 * expmed.c (extract_fixed_bit_field): Remove unused code.
17157 * system.h: Poison SLOW_ZERO_EXTEND.
17158 * doc/tm.texi: Remove.
17159 * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
17160 * config/arm/arm.h: Likewise.
17161 * config/avr/avr.h: Likewise.
17162 * config/clipper/clipper.h: Likewise.
17163 * config/convex/convex.h: Likewise.
17164 * config/d30v/d30v.h: Likewise.
17165 * config/dsp16xx/dsp16xx.h: Likewise.
17166 * config/elxsi/elxsi.h: Likewise.
17167 * config/fr30/fr30.h: Likewise.
17168 * config/h8300/h8300.h: Likewise.
17169 * config/i370/i370.h: Likewise.
17170 * config/i386/i386.h: Likewise.
17171 * config/m68k/m68k.h: Likewise.
17172 * config/mips/mips.h: Likewise.
17173 * config/ns32k/ns32k.h: Likewise.
17174 * config/pdp11/pdp11.h: Likewise.
17175 * config/pj/pj.h: Likewise.
17176 * config/s390/s390.h: Likewise.
17177 * config/sh/sh.h: Likewise.
17178 * config/stormy16/stormy16.h: Likewise.
17179 * config/v850/v850.h: Likewise.
17180 * config/vax/vax.h: Likewise.
17181 * config/we32k/we32k.h: Likewise.
17182
acfab996
AH
171832002-01-15 Aldy Hernandez <aldyh@redhat.com>
17184
d8086cbb
RS
17185 * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
17186 (altivec_lvsl): Change constraint to b.
17187 (altivec_lvsr): Same.
17188 (altivec_lvebx): Same.
17189 (altivec_lvehx): Same.
17190 (altivec_lvewx): Same.
17191 (altivec_lvxl): Same.
17192 (altivec_lvx): Same.
17193 (altivec_stvx): Add parallel.
17194 (altivec_stvxl): Same.
17195 (altivec_stvehx): Same.
17196 (altivec_stvebx): Same.
17197 (altivec_stvebx): Same.
acfab996 17198
5e505bc9
AH
171992002-01-15 Aldy Hernandez <aldyh@redhat.com>
17200
d8086cbb 17201 * config.gcc: Change altivec.h to altivec-defs.h.
5e505bc9 17202
d8086cbb 17203 * config/rs6000/altivec.h: Delete.
5e505bc9 17204
d8086cbb 17205 * config/rs6000/altivec-defs.h: Add.
5e505bc9 17206
5c41fdfb
JDA
172072002-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
17208
17209 * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
17210 and UMOD modes.
17211
17212 * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
17213 less than or equal to eight bytes.
17214
17215 * vax.md (andsi3): Remove constraints and change SET destination
17216 operand type to nonimmediate_operand.
17217 (andhi3, andqi3): Likewise. Don't clear high order bits of operand 1
17218 when it is a CONST_INT.
17219
de097a2d
JM
172202002-01-15 Jason Merrill <jason@redhat.com>
17221
17222 * c-common.def (FILE_STMT): New code.
17223 * c-common.c (statement_code_p): It's a statement.
17224 * c-common.h (stmt_tree_s): Add x_last_filename.
17225 (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
17226 (last_expr_filename): New macro.
17227 * c-semantics.c (begin_stmt_tree): Initialize it.
17228 (add_stmt): If the filename changed, also insert a
17229 FILE_STMT.
17230 (expand_stmt): Handle seeing one.
17231
4a913dd6
EC
172322002-01-15 Eric Christopher <echristo@redhat.com>
17233
17234 * flow.c (propagate_one_insn): Add error message and print out
17235 insn for debugging.
17236
006946e4
JM
172372002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
17238
17239 * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
17240 ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
17241 * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
17242 TRAMPOLINE_ALIGNMENT.
17243 * config/arm/arm.h, config/mcore/mcore.h: Likewise. Change value
17244 to be in bits.
17245 * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
17246 PCC_BITFIELD_TYPE_MATTERS.
17247 * config/interix.h (STDC_VALUE): Remove. Use
17248 STDC_0_IN_SYSTEM_HEADERS.
17249 * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
17250 (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
17251 ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
17252
751a1458
CR
172532002-01-15 Craig Rodrigues <rodrigc@gcc.gnu.org>
17254
17255 * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
17256 not work on this platform currently.
17257
57771fe8
JM
172582002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
17259
17260 * c-typeck.c (build_unary_op): Don't wrap msgid argument of
17261 readonly_warning in _().
17262
0e83ceb1 172632002-01-15 Douglas B Rupp <rupp@gnat.com>
9a52433e 17264
0e83ceb1 17265 * gcc.c (delete_if_ordinary): Backout previous change.
9a52433e 17266
8e2e89f7
KH
172672002-01-15 Kazu Hirata <kazu@hxi.com>
17268
0e83ceb1
DR
17269 * config/h8300/h8300.c (print_operand): Remove support for
17270 unused operand characters.
17271
8e2e89f7
KH
17272 * read-rtl.c: Fix formatting.
17273 * real.c: Likewise.
17274 * recog.c: Likewise.
17275 * regclass.c: Likewise.
17276 * regmove.c: Likewise.
17277 * reg-stack.c: Likewise.
17278 * reload1.c: Likewise.
17279 * rtlanal.c: Likewise.
17280
b531087a
KH
172812002-01-15 Kazu Hirata <kazu@hxi.com>
17282
17283 * config/i386/i386.c: Fix formatting.
17284
7c94ce7f
JJ
172852002-01-15 Jakub Jelinek <jakub@redhat.com>
17286
17287 * c-typeck.c (process_init_element): Don't save_expr
17288 COMPOUND_LITERAL_EXPR if just its initializer will be used.
17289
6041bf2f
DE
172902002-01-15 David Edelsohn <edelsohn@gnu.org>
17291
17292 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
17293 emit optional traceback table if optimize_size or TARGET_ELF.
17294 * config/rs6000/rs6000.md (prefetch): New.
17295
8559c8c0
AJ
172962002-01-15 Andreas Jaeger <aj@suse.de>
17297
17298 * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
17299
70f122f2
KH
173002002-01-15 Kazu Hirata <kazu@hxi.com>
17301
17302 * mips-tfile.c: Fix formatting.
17303
6a7b4ca6
JH
17304Tue Jan 15 00:56:11 CET 2002 Jan Hubicka <jh@suse.cz>
17305
17306 * unroll.c (final_reg_note_copy): Fix previous commit.
17307
e7afe229
KH
173082002-01-14 Kazu Hirata <kazu@hxi.com>
17309
17310 * config/h8300/h8300-protos.h: Remove the prototype for
17311 eq_operator.
17312 * config/h8300/h8300.c (eq_operator): Remove.
17313
7d378549
RH
173142002-01-14 Richard Henderson <rth@redhat.com>
17315
17316 * config/i386/i386.md (prefetch): Tidy.
17317 (prefetch_3dnow): Fix locality operand.
17318
ab093b81
RH
173192002-01-14 Richard Henderson <rth@redhat.com>
17320
17321 * config/mips/mips.h (HI_AND_FP_REGS): New register class.
17322 (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
17323
d300f51f
HPN
173242002-01-14 Hans-Peter Nilsson <hp@bitrange.com>
17325
17326 * reload1.c (reload_combine): Pass reg_sum replacement through
17327 copy_rtx in loop performing multiple changes.
17328
655dd289
JJ
173292002-01-14 Jakub Jelinek <jakub@redhat.com>
17330
17331 * except.c (remove_unreachable_regions): New.
17332 (free_eh_status): Clear exception_handler_labels.
17333 (convert_from_eh_region_ranges): Call remove_unreachable_regions.
17334 (find_exception_handler_labels): Don't add the same label more than
17335 once.
17336 (remove_exception_handler_label): Don't die if
17337 find_exception_handler_labels hasn't been called for the current
17338 function yet.
17339
1fba46a7
JH
17340Mon Jan 14 21:26:13 CET 2002 Jan Hubicka <jh@suse.cz>
17341
17342 * toplev.c (rest_of_compilation): Rebuild jump labels after
17343 gcse.
17344
0975678f
JM
173452002-01-14 Joseph S. Myers <jsm28@cam.ac.uk>
17346
17347 * doc/extend.texi: Move documentation of X86 built-in functions
17348 here.
17349 * doc/invoke.texi: From here.
17350 * doc/sourcebuild.texi: Document location of documentation for
17351 machine built-in functions.
17352
969815c7
CF
173532002-01-13 Christopher Faylor <cgf@redhat.com>
17354
17355 * cppfiles.c (TEST_THRESHOLD): New macro.
17356 (SHOULD_MMAP): Ditto.
17357 (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
17358 be used.
17359
494c950b
JH
17360Mon Jan 14 20:23:34 CET 2002 Jan Hubicka <jh@suse.cz>
17361
17362 * unroll.c (final_reg_note_copy): Properly handle
17363 REG_LABEL
17364 (unroll_loops): Fix LOOP_CONDITION heuristics.
17365
69a0611f
GK
173662002-01-14 Geoffrey Keating <geoffk@redhat.com>
17367
17368 * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
17369 * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
17370
b90e45ae
JH
17371Mon Jan 14 20:18:19 CET 2002 Jan Hubicka <jh@suse.cz>
17372
17373 * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
17374 threaded loop.
17375
8377288b
TR
173762002-01-14 Tom Rix <trix@redhat.com>
17377
17378 * config/rs6000/rs6000.md: Fix typo with sradi.
17379
9f37ccb1
UW
173802002-01-14 Ulrich Weigand <uweigand@de.ibm.com>
17381
17382 * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
17383 movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
17384 (clrstrdi, clrstrsi): Adapt callers.
17385
17386 (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
17387
8559c8c0 17388 (movti splitter): Never use register 0 as base register.
9f37ccb1 17389
6c2d03d0
HP
173902002-01-14 Hartmut Penner <hpenner@de.ibm.com>
17391
8559c8c0
AJ
17392 * combine.c (simplify_shift_const): Always generate new rtx
17393 for shift expression instead of reusing given expression.
6c2d03d0 17394
d3e98208
RK
17395Mon Jan 14 07:08:55 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17396
17397 * config/alpha/alpha.c (alpha_expand_mov): Don't call
17398 alpha_legitimize_address unless mode is Pmode.
17399
9f339dde
GK
174002002-01-13 Geoffrey Keating <geoffk@redhat.com>
17401
17402 * doc/md.texi (Modifiers): Document the '*' constraint for the
17403 user.
17404
17405 * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
17406 * doc/extend.texi (Function Attributes): 'interrupt' is valid
17407 for xstormy16 too.
17408
02a10130
RH
174092002-01-13 Richard Henderson <rth@redhat.com>
17410
17411 * reload.c (find_reloads): Use a hard reg destination as reload reg
17412 for an input reload of the source.
17413
61d47787
GP
174142002-01-13 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
17415
17416 * doc/install.texi (Binaries): Make link to ftp.writtenword.com
17417 more generic.
17418
f0df8029
DR
17419Sun Jan 13 07:23:01 2002 Douglas B Rupp <rupp@gnat.com>
17420
17421 * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
17422 * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
17423
d2a37256
DR
17424 * config/alpha/x-vms (USE_COLLECT2): Set to empty.
17425
a9e8a5ee
RK
17426Sun Jan 13 06:55:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17427
17428 * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
17429
bc06712d
TR
174302002-01-12 Tom Rix <trix@redhat.com>
17431
8559c8c0 17432 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
bc06712d
TR
17433 TARGET_POWERPC64.
17434
7cbe9bb7
RH
174352002-01-12 Richard Henderson <rth@redhat.com>
17436
38b29e64
RH
17437 * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
17438
58605ba0
RH
17439 * doc/invoke.texi: Update Alpha options.
17440
7cbe9bb7
RH
17441 * doc/invoke.texi: Update i386 built-in function lists.
17442
9d560860
JH
17443Sat Jan 12 17:38:11 CET 2002 Jan Hubicka <jh@suse.cz>
17444
17445 * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
17446 referencing outside.
17447
bb93b973
RK
17448Sat Jan 12 08:54:51 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17449
17450 * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
17451 * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
17452 offsets, and change line folding.
17453 * optabs.c (expand_binop): Remove warnings.
17454 * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
8559c8c0 17455
f9f6b7df
GS
174562002-01-12 Graham Stott <grahams@redhat.com>
17457
17458 * attribs.c (handle_deprecated_attribute): constify WHAT.
17459 * diagnostic.c (warn_deprecated_use): Add braces, fixes
17460 dangling else warning and constify WHAT.
17461 * except.h (struct function, struct inline_remap): Move
17462 struct tag forward defs before all prototypes.
17463 (duplicate_eh_regions): Whitespace.
17464
4a692617
NC
174652002-01-12 Nick Clifton <nickc@cambridge.redhat.com>
17466
17467 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
17468 MODE_BASE_REG_CLASS.
17469 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
17470
e37af218
RH
174712002-01-12 Richard Henderson <rth@redhat.com>
17472
17473 * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
17474 (ix86_expand_vector_move): New.
17475 (bdesc_2arg): Remove andps, andnps, orps, xorps.
17476 (ix86_init_mmx_sse_builtins): Make static. Remove composite builtins.
17477 Remove old prefetch builtins. Special case the logicals removed above.
17478 (ix86_expand_builtin): Likewise.
17479 (safe_vector_operand): Use V4SFmode, not TImode.
17480 (ix86_expand_store_builtin): Remove shuffle arg. Update callers.
17481 (ix86_expand_timode_binop_builtin): New.
17482 * config/i386/i386-protos.h: Update.
17483 * config/i386/i386.h (enum ix86_builtins): Update.
17484 * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
17485 Use ix86_expand_vector_move in vector move expanders.
17486 (movti_internal, movti_rex64): Add xorps alternative.
17487 (sse_clrv4sf): Rename and adjust from sse_clrti.
17488 (prefetch): Don't work so hard.
17489 (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
17490 * config/i386/xmmintrin.h (__m128): Use V4SFmode.
17491 (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
17492
6f1a6c5b
RH
174932002-01-11 Richard Henderson <rth@redhat.com>
17494
17495 * config/i386/mmintrin.h: New file.
17496 * config/i386/xmmintrin.h: New file.
17497 * config.gcc (i?86-*-*): Add extra_headers.
17498 * simplify-rtx.c (simplify_unary_operation): Handle saturating
17499 truncation codes.
17500 (simplify_binary_operation): Handle saturating arithmetic codes.
17501 * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
17502 not the lowpart subreg.
17503 (ix86_expand_builtin): Return a TImode dummy register instead of 0
17504 on error.
17505 * config/i386/i386.md (mmx_clrdi): Override memory attribute.
17506
cdb574d3
MH
175072002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
17508
17509 * conflict.c (conflict_graph_compute): Free regsets when finished.
17510 * ssa.c (compute_coalesced_reg_partition): Likewise.
8559c8c0 17511
cf11ac55
HB
175122002-01-12 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
17513
17514 * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
17515 every where we allocate a register.
17516
76ac938b
MH
175172002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
17518
17519 * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
17520 * lcm.c (compute_earliest, compute_farthest): Likewise.
17521
a84b4898
JJ
175222002-01-11 Janis Johnson <janis187@us.ibm.com>
17523
17524 * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
17525
aaef1c12
JJ
175262002-01-11 Janis Johnson <janis187@us.ibm.com>
17527
17528 * doc/rtl.texi (Insns): Fix 2 typos.
17529
5d22c1a5
JM
175302002-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
17531
17532 * doc/invoke.texi: Avoid overfull hboxes. Add summary of D30V
17533 options. Use @table @gcctabopt for MMIX options. Add index
17534 entries for MMIX options. Start new paragraph with first
17535 heading of the machine-dependent options.
17536
3e92902c
CR
175372002-01-11 Craig Rodrigues <rodrigc@gcc.gnu.org>
17538
17539 PR other/5299
17540 * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
17541 * combine.c (force_to_mode): Same.
17542 * reload1.c (clear_reload_reg_in_use): Same.
17543
96ae8197
NC
175442002-01-11 Nick Clifton <nickc@cambridge.redhat.com>
17545
17546 * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
17547 and 'subtargets'.
17548
9b780582
AJ
175492002-01-11 Andreas Jaeger <aj@suse.de>,
17550 Brad Lucier <lucier@math.purdue.edu>
17551
17552 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
17553 mcpu.
17554
12300dad
DR
17555Fri Jan 11 07:35:12 2002 Douglas B Rupp <rupp@gnat.com>
17556
17557 * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
17558 Protect with IN_LIBGCC.
17559 (LINK_EH_SPEC): Add required trailing space.
17560
27511a9a
NP
17561Fri Jan 11 09:25:05 2002 Nicola Pero <n.pero@mi.flashnet.it>
17562
9b780582 17563 * c-tree.h: Move function declarations so that they are listed
27511a9a
NP
17564 under the filename which contains them.
17565 (check_identifier, finish_decl_top_level,
17566 lookup_name_current_level_global, shadow_record_fields): Remove.
17567
4daeab16
AJ
175682002-01-11 Andreas Jaeger <aj@suse.de>
17569
17570 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
17571 march.
17572
40571d67
RH
175732002-01-10 Richard Henderson <rth@redhat.com>
17574
17575 * config/alpha/alpha.c (print_operand): Add 'J'.
17576 * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
17577 new operand with the sequence number for the lituse. When splitting
17578 the insns, use gen_movdi_er_high_g and generate a sequence number.
17579 (gen_movdi_er_high_g): Print the sequence number if non-zero.
17580
6525c0e7
AH
175812002-01-10 Aldy Hernandez <aldyh@redhat.com>
17582
d8086cbb
RS
17583 * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
17584 lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
17585 stvxl.
17586 (altivec_expand_builtin): Same.
17587 (altivec_expand_stv_builtin): New.
17588
17589 * config/rs6000/rs6000.h (rs6000_builtins): Same.
17590
17591 * config/rs6000/rs6000.md ("altivec_lvebx"): New.
17592 ("altivec_lvehx"): New.
17593 ("altivec_lvewx"): New.
17594 ("altivec_lvxl"): New.
17595 ("altivec_lvx"): New.
17596 ("altivec_stvx"): New.
17597 ("altivec_stvebx"): New.
17598 ("altivec_stvehx"): New.
17599 ("altivec_stvewx"): New.
17600 ("altivec_stvxl"): New.
6525c0e7 17601
cda94cbb
RH
176022002-01-10 Richard Henderson <rth@redhat.com>
17603
17604 * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
17605 * reload1.c (delete_output_reload): Zap spill_reg_store. Take
17606 care not to delete instructions twice.
17607
df2c9a44
ZW
176082002-01-10 Zack Weinberg <zack@codesourcery.com>
17609
17610 * toplev.c: Don't declare environ (it's not used anywhere).
17611 * configure.in: Don't check for declaration of environ.
17612 * config/i386/xm-mingw32.h: Don't #define environ.
17613 * config.in, configure: Regenerate.
17614
5dd8a9b1
ZW
176152002-01-10 Zack Weinberg <zack@codesourcery.com>
17616
17617 * configure.in: Set stage1_cflags for powerpc-*-darwin*.
17618 * configure: Regenerate.
17619
17620 * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
17621 DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
17622 * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
17623 alpha/xm-vms.h.
17624 * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
17625 LIMITS_H_TEST here, not in m68k/x-next.
17626 * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
17627 SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
17628
17629 * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
17630 LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
17631 * config/alpha/x-vms: Don't set USE_COLLECT2. Add comments.
17632
17633 * config/i386/x-djgpp: Renamed i386/t-djgpp.
17634 * config/m88k/x-dolph: Renamed m88k/t-dolph.
17635 * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
17636 * config/pa/x-pa-mpeix: Renamed pa/t-mpeix. Update for
17637 replacement of quadlib.asm with quadlib.c.
17638
17639 * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
17640 config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
17641 config/rs6000/xm-beos.h: Delete file.
17642
17643 * config.gcc: Update to match above changes.
17644
d10dd44c
KH
176452002-01-10 Kazu Hirata <kazu@hxi.com>
17646
17647 * config/h8300/h8300.h: Fix comment typos.
17648 * config/h8300/h8300.md: Likewise.
17649 * config/h8300/lib1funcs.asm: Likewise.
17650
04894c5a
DJ
176512002-01-10 Dale Johannesen <dalej@apple.com>
17652
17653 PR optimization/5269
17654 * unroll.c (precondition_loop_p): Make *increment be the correct
17655 sign when n_iterations known, to avoid confusing caller.
17656
adc9fe67
KH
176572002-01-10 Kazu Hirata <kazu@hxi.com>
17658
17659 * doc/extend.texi (deprecated): Fix a typo.
17660
b446e5a2
JH
17661Thu Jan 10 22:35:54 CET 2002 Jan Hubicka <jh@suse.cz>
17662
17663 * basic-block.h (update_br_prob_note): Declare.
17664 * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
17665 (try_forward_edges): Care negative frequencies and update note.
17666 (outgoing_edges_match): Tweek conditional merging heuristics.
17667 (try_crossjump_to_edge): use update_br_prob_note.
17668 * cfglayout.c (fixup_reorder_chain): Likewise.
17669 * cfrtl.c (update_br_prob_note): New.
17670 * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
17671
17672 * i386.c (ix86_decompose_address): Return -1 if address contains
17673 shift.
17674 (legitimate_address_p): Require ix86_decompose_address to return 1.
17675
17676 * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
17677 (cprop_insn): Likewise.
17678
a01da83b
KH
176792002-01-10 Kazu Hirata <kazu@hxi.com>
17680
17681 * toplev.c: Fix formatting.
17682 * tree.c: Likewise.
17683 * tree-dump.c: Likewise.
17684 * unroll.c: Likewise.
17685 * unwind-dw2.c: Likewise.
17686 * unwind-dw2-fde.c: Likewise.
17687 * unwind-dw2-fde-glibc.c: Likewise.
17688 * unwind-sjlj.c: Likewise.
17689
9f85bca7
JM
176902002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
17691
17692 * doc/invoke.texi: Document PDP-11 options.
17693
f48f56b1
KH
176942002-01-10 Kazu Hirata <kazu@hxi.com>
17695
17696 * config/h8300/h8300.h: Fix formatting.
17697
ead39bdf 176982002-01-10 Ira Ruben <ira@apple.com>
7f180628
IR
17699
17700 Add __attribute__ ((deprecated)).
17701 * extend.texi: Document __attribute__ ((deprecated)).
17702 * invoke.texi: Document -Wno-deprecated-declarations.
17703 * testsuite/g++.dg/other/deprecated.C: New C++ test.
17704 * testsuite/gcc.dg/deprecated.c: New C test.
17705 * attribs.c (enum attrs): Declare handle_deprecated_attribute().
17706 (c_common_attribute_table): Add "deprecated" entry.
17707 (handle_deprecated_attribute): New function.
17708 * c-decl.c (deprecated_states): New enum.
17709 deprecated_state: State of "deprecated" handling.
17710 (start_decl): Set deprecated_state based on attributes.
17711 (grokdeclarator): Test for deprecated uses, propagate attribute.
17712 * c-typeck.c (build_component_ref): Test for deprecated fields.
17713 (build_external_ref): Test for deprecated primaries.
17714 * diagnostic.c (warn_deprecated_use) New function to issue
17715 warnings about __attribute__ ((depricated)) references.
17716 * flags.h (warn_deprecated_decl): Extern declared for
17717 -W[no-]deprecated-declarations option.
17718 * print-tree.c (print_node): Show deprecated flag status.
17719 * toplev.c (warn_deprecated_decl): Defined.
17720 (W_options): Added "deprecated-declaration".
17721 * toplev.h (warn_deprecated_use): Extern declared.
17722 * tree.h (struct tree_common): Define deprecated_flag.
17723 (TREE_DEPRECATED): New macro to access flag.
17724 * cp/call.c (build_call): Test for deprecated calls.
17725 * cp/class.c (add_implicitly_declared_members): Set global
17726 flag to tell grokdeclarator to not issue deprecated warnings.
17727 * cp/cp-tree.h: Add extern for adding_implicit_members.
17728 * cp/decl.c (deprecated_states): New enum.
17729 (start_decl): Set deprecated_state based on attributes.
17730 (grokdeclarator): Test for deprecated uses, propagate attribute.
17731 * cp/lex.c (do_identifier): Test for deprecated primaries.
17732 * cp/typeck.c (build_component_ref): Test for deprecated fields.
17733
ead39bdf 177342002-01-10 Ira Ruben <ira@apple.com>
7f180628
IR
17735
17736 Fix to assign attributes to inline member functions.
17737 * cp/decl.c (start_method): Handle attrlist.
17738
47073a38
KH
177392002-01-10 Kazu Hirata <kazu@hxi.com>
17740
17741 * combine.c (expand_field_assignment): Use subreg_lsb().
17742
d288e53d
DE
177432002-01-10 David Edelsohn <edelsohn@gnu.org>
17744
17745 * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
17746 POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
17747 (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
17748 Recurse for any operand of AND as long as constant is non-zero.
17749
08a02ffa
KH
177502002-01-10 Kazu Hirata <kazu@hxi.com>
17751
17752 * config/h8300/h8300.md: Remove constraints from expanders.
17753
c203e7fe
KH
177542002-01-10 Kazu Hirata <kazu@hxi.com>
17755
17756 * varasm.c: Fix formatting.
17757 * varray.c: Likewise.
17758 * vmsdbgout.c: Likewise.
17759 * xcoffout.c: Likewise.
17760
bcb3bc6d
JH
17761Thu Jan 10 17:19:12 CET 2002 Jan Hubicka <jh@suse.cz>
17762
17763 * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
cda94cbb 17764 update edge probabilities to match.
bcb3bc6d 17765
0a553c7e
JM
177662002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
17767
17768 * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
17769 dependencies.
17770 * doc/languages.texi, doc/sourcebuild.texi: New files.
17771 * doc/configfiles.texi: Make a subsubsection. Update.
17772 * doc/configterms.texi: Add @node. Remove warning that this isn't
17773 instructions for building GCC.
17774 * doc/makefile.texi: Make a subsection.
17775 * doc/gccint.texi: Update.
17776
adc7fcb8
JH
17777Thu Jan 10 16:39:58 CET 2002 Jan Hubicka <jh@suse.cz>
17778
17779 * i386.md (sse_mov?fcc_const0_?): Fix constraints.
17780
5a4dd0b3
NP
17781Thu Jan 10 12:45:50 2002 Nicola Pero <n.pero@mi.flashnet.it>
17782
17783 * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
17784
3987b9db
JH
17785Thu Jan 10 11:19:18 CET 2002 Jan Hubicka <jh@suse.cz>
17786
17787 * optabs.c (expand_fix): Look for wider integer modes first.
17788
17789 * i386.md (mov?f): Avoid the fake const double trick for medium
17790 memory model.
17791 (min?f*/max?f*): Prohibit memory operands for i387 variant.
17792 (fop_df_4): Disable for SSE compilation.
17793
ceb15948 177942002-01-10 Graham Stott <grahams@redhat.com>
117f9d28
GS
17795
17796 * dwarf2out.c (indirect_string_alloc, output_indirect_string):
cda94cbb 17797 Move prototype into DWARF2_DEBUGGING_INFO conditional block.
117f9d28 17798
e1623399
RH
177992002-01-10 Richard Henderson <rth@redhat.com>
17800
17801 * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
17802
c4abb293
RH
178032002-01-10 Richard Henderson <rth@redhat.com>
17804
17805 * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
17806 (copyprop_hardreg_forward_1): Likewise. Use mode_change_ok.
17807
d2604ae9
KH
178082002-01-10 Kazu Hirata <kazu@hxi.com>
17809
17810 * combine.c (can_combine_p): Fix a comment typo.
17811
766c7ad1
ZW
178122002-01-09 Zack Weinberg <zack@codesourcery.com>
17813
17814 * Makefile.in (s-gencheck, s-options, s-specs): Handle an
17815 empty list correctly. Change loop index $t to $f for
17816 consistency with rest of Makefile.
17817
95385cbb
AH
178182002-01-08 Aldy Hernandez <aldyh@redhat.com>
17819
17820 * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
17821 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
17822
17823 * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
17824 mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
17825 (altivec_init_builtins): Same.
17826 (altivec_expand_unop_builtin): Return NULL_RTX on error.
17827 (altivec_expand_binop_builtin): Same.
17828 (altivec_expand_ternop_builtin): Same.
17829 (bdesc_dst): New.
17830
17831 * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
17832 ("altivec_vctuxs"): Fix typo.
17833 ("altivec_vnmsubfp"): Same.
17834 ("altivec_dssall"): New.
17835 ("altivec_mfvscr"): New.
17836 ("altivec_dss"): New.
17837 ("altivec_lvsl"): New.
17838 ("altivec_lvsr"): New.
17839 ("altivec_dstt"): New.
17840 ("altivec_dstst"): New.
17841 ("altivec_dststt"): New.
17842 ("altivec_dst"): New.
17843
17844 * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
17845 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
17846
e4ac76b4
RH
178472002-01-09 Richard Henderson <rth@redhat.com>
17848
17849 * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
17850
c893e4a4
HPN
178512002-01-10 Hans-Peter Nilsson <hp@bitrange.com>
17852
17853 * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
17854 function.
17855 * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
17856 prototype.
7387c700 17857 * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
c893e4a4 17858
f4f4d0f8
KH
178592002-01-09 Kazu Hirata <kazu@hxi.com>
17860
17861 * read-rtl.c: Fix formatting.
17862 * real.c: Likewise.
17863 * regclass.c: Likewise.
17864 * regrename.c: Likewise.
17865 * reg-stack.c: Likewise.
17866 * reload1.c: Likewise.
17867 * reload.c: Likewise.
17868 * rtl.c: Likewise.
17869
cc863bea
KH
178702002-01-09 Kazu Hirata <kazu@hxi.com>
17871
17872 * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
17873 to extract items in the expr_list chain.
17874
7b4dfe3d
RH
178752002-01-09 Richard Henderson <rth@redhat.com>
17876
17877 * config/vax/vax.c (vax_rtx_cost): Never abort.
17878
1d969638
RH
17879 * config/vax/vax.h (REAL_ARITHMETIC): Define.
17880
7d5ab30e
JH
178812002-01-09 Jan Hubicka <jh@suse.cz>
17882
17883 * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
17884
9503f3d1
RH
178852002-01-09 Richard Henderson <rth@redhat.com>
17886
17887 * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
17888 Unify code from various alternatives.
17889
42bd17b7
RH
178902002-01-09 Richard Henderson <rth@redhat.com>
17891
17892 * regrename.c (copy_value): Ignore the copy if the source register
17893 is present in the value chain with a narrower mode.
17894
bdca3c33
HB
178952002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
17896
cda94cbb
RH
17897 * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
17898 for the c4x target. Also improve layout.
bdca3c33 17899
c73a5e94
RH
179002002-01-09 Richard Henderson <rth@redhat.com>
17901
17902 * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
17903 * config/m32r/m32r.md (and ior xor splitters): Swap operands
17904 to match insn patterns.
17905
dd0a18c0
RH
179062002-01-09 Richard Henderson <rth@redhat.com>
17907
17908 * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
17909 (copyprop_hardreg_forward_1): Likewise.
17910
1fd9ac1e
JDA
179112002-01-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
17912
17913 * pa.md (decrement_and_branch_until_zero): Change predicate for
17914 operand 0 from register_operand to reg_or_nonsymb_mem_operand.
17915
5cb265ec
BM
179162002-01-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
17917
17918 * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
17919 gets undefined. For Darwin.
17920
fcd8fa8b
HB
179212002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
17922
17923 * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
17924
bd3ab23a
MH
179252002-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
17926
17927 * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
17928
21e16bd6
RH
179292002-01-08 Richard Henderson <rth@redhat.com>
17930
17931 * regrename.c (copy_value): Ignore overlapping copies.
17932
a5376276
RH
179332002-01-08 Richard Henderson <rth@redhat.com>
17934
17935 * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
17936 as needed to avoid shared structure.
17937
18cf8dda
KH
179382002-01-08 Kazu Hirata <kazu@hxi.com>
17939
17940 * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
17941 H8/300H and H8/S.
17942
16c484c7
JM
179432002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
17944
17945 * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
17946 LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
17947 documentation of obsolete macros.
17948 * system.h: Poison these macros.
17949 * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
17950 config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
17951 config/c4x/c4x.h, config/clipper/clipper.h,
17952 config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
17953 config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
17954 config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
17955 config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
17956 config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
17957 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
17958 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
17959 config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
17960 config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
17961 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
17962 config/sparc/sparc.h, config/stormy16/stormy16.h,
17963 config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
17964 definitions and commented out definitions of obsolete macros.
17965 * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
17966 of MAX_INT_TYPE_SIZE.
17967
14b3e8ef
UW
179682002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
17969
17970 * config/s390/s390.c (s390_preferred_reload_class): Never
17971 return ADDR_REGS if it isn't a subset of the given class.
17972 * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
17973 FP_REGS, but all superclasses as well.
17974
17975 * config/s390/s390.c (s390_function_profiler): Fix thinko.
17976
17977 * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
17978 cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
17979 must not be a const_int.
17980
a693284d
RH
179812002-01-08 Richard Henderson <rth@redhat.com>
17982
17983 * Makefile.in (toplev.o): Depend on options.h.
17984 (gcc.o): Depend on specs.h.
17985
b3ca30df
JJ
179862002-01-08 Jakub Jelinek <jakub@redhat.com>
17987
17988 * expr.c (store_expr): Convert VOIDmode constants back to target's
17989 mode.
17990
24dbb440
GP
179912002-01-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
17992
17993 * doc/invoke.texi: Markup gcc as @command. Refer to
17994 http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
17995 of http://gcc.gnu.org/thanks.html.
17996
234e114c
DJ
179972002-01-08 Dale Johannesen <dalej@apple.com>
17998
17999 * config/rs6000/rs6000.md: Add missing int register
18000 target case to movdf_low.
18001
0d24f4d1
ZW
180022002-01-08 Zack Weinberg <zack@codesourcery.com>
18003
18004 * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
18005 except.h. Remove commands to define USING_SJLJ_EXCEPTIONS.
18006 (cppinit.o): Depend on except.h.
18007 (gencheck.h, options.h, specs.h, s-gencheck, s-options,
18008 s-specs): New rules.
18009
18010 * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
18011 Don't create specs.h/options.h/gencheck.h here. Remove
18012 unnecessary variable settings from last argument of AC_OUTPUT.
18013 * config.in, configure: Regenerate.
18014 * intl.c: Hardcode package name as "gcc".
18015
18016 * cppinit.c: Include except.h.
18017 (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
18018 appropriate.
18019 * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
18020 Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
18021 (!)USING_SJLJ_EXCEPTIONS.
18022 * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
18023
ed722f66
JM
180242002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
18025
18026 * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
18027 ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
18028 OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
18029 documentation of obsolete macros.
18030 * system.h: Poison these macros.
18031 * config/d30v/d30v.h, config/ns32k/encore.h,
18032 config/stormy16/stormy16.h: Remove definitions and commented out
18033 definitions of obsolete macros.
18034
31e5e29a
NP
18035Tue Jan 8 15:56:41 2002 Nicola Pero <nicola@brainstorm.co.uk>
18036
18037 * objc/objc-act.c (handle_class_ref): Mark the declaration of
18038 %sobjc_class_ref_%s as used - to prevent unwanted compiler
18039 warnings.
18040
bc1fa59c
UW
180412002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
18042
18043 * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
18044 * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
18045 to insn adjusting stack/frame pointer.
0d24f4d1 18046 * config/s390/s390.md (reload_la_64, reload_la_31): Do not
bc1fa59c
UW
18047 accept operands that cause the insn to be non-splittable.
18048
a8086abf
GS
180492002-01-08 Graham Stott <grahams@redhat.com>
18050
18051 * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
18052 (C_TYPE_FIELDS_VOLATILE): Likewise.
18053 (C_TYPE_BEING_DEFINED): Likewise.
18054 (C_IS_RESERVED_WORD): Likewise.
18055 (C_TYPE_VARIABLE_SIZE): Likewise.
18056 (C_DECL_VARIABLE_SIZE): Likewise.
18057 (C_MISSING_PROTOTYPE_WARNED): Likewise.
18058 (C_SET_EXP_ORIGINAL_CODE): Likewise.
18059 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
18060 parenthesis.
18061 (C_DECL_ANTICIPATED): Likewise.
18062 (c_build_type_variant): Add parenthesis.
18063
3f595aa1
JM
180642002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
18065
18066 * gcc.c (option_map): Remove --version.
18067 (process_command): Handle -fversion following the GNU Coding
18068 Standards. Partially addresses PR other/704.
18069
5bc5a8f9
GS
180702002-01-08 Graham Stott <grahams@redhat.com>
18071
18072 * combine.c (combine_instructions): Fix typo.
18073
16ec4ebf
GS
180742002-01-08 Graham Stott <grahams@redhat.com>
18075
18076 * debug.h: Use "tree" and "rtx" throughout.
18077
18078 * debug.c: Likewise.
18079
4b69f385
NC
180802002-01-08 Nick Clifton <nickc@cambridge.redhat.com>
18081
18082 * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
18083 constant pool, use the pool's version of the symbol instead.
18084
57d1019b
RH
180852002-01-07 Richard Henderson <rth@redhat.com>
18086
18087 * regrename.c (find_oldest_value_reg): Ignore the value chain if
18088 the original register was copied in a mode with a fewer number of
18089 hard registers than the desired mode.
18090 (copyprop_hardreg_forward_1): Likewise.
18091 (debug_value_data): Fix loop test.
18092 * toplev.c (parse_options_and_default_flags): Reenable
18093 -fcprop-registers at -O1.
18094
180952002-01-07 Aldy Hernandez <aldyh@redhat.com>
fa066a23 18096
0d24f4d1
ZW
18097 * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
18098 (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
fa066a23 18099
0d24f4d1
ZW
18100 * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
18101 predicates.
fa066a23 18102
0d24f4d1 18103 * config/rs6000/rs6000.md: Add altivec predicate patterns.
fa066a23 18104
8f949e7e
JDA
181052002-01-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
18106
18107 * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
18108 (pa_output_function_prologue): Output local label at the beginning of
18109 the prologue when profiling.
18110 (hppa_profile_hook): Use the local label rather than the function label.
18111 * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
18112
c62f2db5
AH
181132002-01-07 Aldy Hernandez <aldyh@redhat.com>
18114
0d24f4d1
ZW
18115 * config/rs6000/rs6000.c (print_operand): Remove extra space.
18116 (altivec_expand_unop_builtin): Fix thinko.
18117 (altivec_expand_binop_builtin): Same.
18118 (altivec_expand_ternop_builtin): Same.
18119 (altivec_expand_builtin): Same.
c62f2db5 18120
b5235ba7
RH
181212002-01-07 Richard Henderson <rth@redhat.com>
18122
18123 * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
18124
7d8ac293
JM
181252002-01-07 Jason Merrill <jason@redhat.com>
18126
18127 * unwind-dw2.c (execute_cfa_program): Use < again.
18128
571a03b8
JJ
181292002-01-07 Jakub Jelinek <jakub@redhat.com>
18130
18131 * predict.c (combine_predictions_for_insn): Avoid division by zero.
18132
2e951384
JJ
181332002-01-07 Jakub Jelinek <jakub@redhat.com>
18134
18135 * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
18136 Don't allow -1 - x -> ~x simplifications in the first pass.
18137
20e26713
AH
181382002-01-07 Aldy Hernandez <aldyh@redhat.com>
18139
0d24f4d1
ZW
18140 * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
18141 arguments.
18142 (altivec_expand_binop_builtin): Same.
18143 (altivec_expand_unop_builtin): Same.
18144 (print_operand): Fix typo.
18145 (bdesc_1arg): Add vupk* variants.
20e26713 18146
0d24f4d1 18147 * rs6000.h (rs6000_builtins): Add vupk* enums.
20e26713 18148
0d24f4d1 18149 * rs6000.md: Add altivec_vupk* variants.
20e26713 18150
4dd57c18
JM
181512002-01-07 Joseph S. Myers <jsm28@cam.ac.uk>
18152
18153 * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
18154 doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
18155 and last update dates.
18156
0341c5d2
JJ
181572002-01-07 Janis Johnson <janis187@us.ibm.com>
18158
18159 * doc/rtl.texi (Flags): Clean up documentation of RTL flags
18160
c7f3e0b0
MM
181612002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
18162
18163 * config/avr/avr.c (avr_mcu_types): Add new MCU types.
18164 * config/avr/avr.h (CPP_SPEC): Likewise.
18165 (LINK_SPEC): Likewise.
18166 (CRT_BINUTILS_SPECS): Likewise.
18167 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
18168 * doc/invoke.texi (AVR Options): Document them.
18169
6ba4d630
JH
18170Mon Jan 7 11:59:34 CET 2002 Jan Hubicka <jh@suse.cz>
18171
18172 * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
18173 LABEL_NUSES.
18174
6253d571
GS
181752002-01-07 Graham Stott <grahams@redhat.com>
18176
0d24f4d1
ZW
18177 * config/i386/i386.h: Update copyright date.
18178 (HALF_PIC_PTR): Add parenthesis.
18179 (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
18180 (CONSTANT_ALIGNMENT): Add parenthesis.
18181 (DATA_ALIGNMENT): Likewise.
18182 (LOCAL_ALIGNMENT): Likewise.
18183 (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
18184 (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
18185 (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
18186 (HARD_REGNO_NREGS): Add paranethesis.
18187 (VALID_SSE_REG_MODE): Whitespace.
18188 (VALID_MMX_REG_MODE): Whitespace.
18189 (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
18190 (ix86_hard_regno_mode_ok): Add parenthesis.
18191 (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
18192 (RETURN_IN_MEMORY): Whitespace.
18193 (N_REG_CLASSES): Add parenthesis.
18194 (INTEGER_CLASS_P): Add parenthesis and wrap.
18195 (FLOAT_CLASS_P): Likewise.
18196 (SSE_CLASS_P): Likewise.
18197 (MMX_CLASS_P): Likewise.
18198 (MAYBE_INTEGER_CLASS_P): Likewise.
18199 (MAYBE_FLOAT_CLASS_P): Likewise.
18200 (MAYBE_SSE_CLASS_P): Likewise.
18201 (MAYBE_MMX_CLASS_P): Likewise.
18202 (Q_CLASS_P): Likewise.
18203 (GENERAL_REGNO_P): Uppercase macro parameter.
18204 (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
18205 (FP_REGNO_P): Likewise.
18206 (ANY_FP_REGNO_P): Uppercase macro parameter.
18207 (SSE_REGNO_P): Likewise.
18208 (SSE_REGNO): Likewise.
18209 (SSE_REG_P): Likewise.
18210 (SSE_FLOAT_MODE_P): Likewise.
18211 (MMX_REGNO_P): Likewise.
18212 (MMX_REG_P):Likewise.
18213 (STACK_REG_P): Likewise.
18214 (NON_STACK_REG_P): Likewise.
18215 (STACK_TOP_P): Likewise.
18216 (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
18217 (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
18218 (SECONDARY_MEMORY_NEEDED): Likewise.
18219 (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
18220 (MD_ASM_CLOBBERS): Whitespace and wrap.
18221 (MUST_PASS_IN_STACK): Whitespace and wrap.
18222 (RETURN_POPS_ARGS): Add parenthesis.
18223 (INIT_CUMULATIVE_ARGS): Likewise.
18224 (FUNCTION_ARG): Likewise.
18225 (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
18226 (SETUP_INCOMING_VARARGS): Likewise.
18227 (BUILD_VA_LIST_TYPE): Add parenthesis.
18228 (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
18229 parenthsis.
18230 (EXPAND_BUILTIN_VA_ARG): Likewise.
18231 (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
18232 (INITIALIZE_TRAMPOLINE): Add parenthesis.
18233 (INITIAL_ELIMINATION_OFFSET): Likewise.
18234 (REGNO_OK_FOR_INDEX_P): Add parenthesis.
18235 (REGNO_OK_FOR_BASE_P): Likewise.
18236 (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
18237 (REGNO_OK_FOR_DIREG_P): Likewise.
18238 (REG_OK_FOR_INDEX_P): Whitespace.
18239 (REG_OK_FOR_BASE_P): Whitespace.
18240 (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
18241 parenthesis.
18242 (FIND_BASE_TERM): Fix typo.
18243 (LEGITIMIZE_ADDRESS): Wrap in { .. } while (0) and add parenthesis.
18244 (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
18245 (SYMBOLIC_CONST; Whitespace.
18246 (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in { .. } while (0) and wrap.
18247 (ENCODE_SECTION_INFO): Whitespace.
18248 (FINALIZE_PIC): Remove do { ... } while (0).
18249 (PROMOTE_MODE): Wrap in do { ... } while (0).
18250 (CONST_COSTS): Whitespace.
18251 (RTX_COSTS): Add paramethesis, whitespace and wrap.
18252 (REGISTER_MOVE_COST): Add parenthesis.
18253 (MEMORY_MOVE_COST): Likewise.
18254 (EXTRA_CC_MODES): Whitespace.
18255 (SELECT_CC_MODE): Add parenthesis and whitespace.
18256 (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
18257 (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
18258 (ASM_OUTPUT_LABEL): Add paramethesis.
18259 (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
18260 (ASM_OUTPUT_REG_POP): Likewise.
18261 (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
18262 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
d9a5f180 18263
07933f72
GS
18264 * config/i386/i386.c: Update copyright.
18265 (CHECK_STACK_LIMIT): Add parenthesis.
18266 (AT_BP): Uppercase macro parameter.
18267 (x86_64_int_parameter_registers): Constify.
18268 (x86_64_int_return_registers): Likewise.
18269 (ix86_compare_op0): Use rtx.
18270 (construct_container): Constify INTREG parameter.
18271 (function_arg): Use rtx.
18272
0b4d32c9
GS
18273 * diagnostic.h: Update copyright date.
18274 (output_buffer_state): Add parenthesis.
18275 (output_buffer_format_args): Likewise.
18276
6253d571
GS
18277 * combine.c (combine_instructions): Replace XEXP (links, 0)
18278 with link.
18279
68f3f6f1
L
182802002-01-06 H.J. Lu <hjl@gnu.org>
18281
18282 * cfgcleanup.c (thread_jump): Fix 2 typos.
18283
182842002-01-06 Aldy Hernandez <aldyh@redhat.com>
480f7f3a 18285
0d24f4d1 18286 * config.gcc: Add support for --enable-altivec.
480f7f3a 18287
13b8c631
CR
182882002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
18289
18290 * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
18291
58ad89b1
JJ
182922002-01-06 Jakub Jelinek <jakub@redhat.com>
18293
18294 * objc/objc-act.c (handle_impent): Use assemble_variable to emit
18295 __objc_class_name_*.
18296
e403b4bc
CR
182972002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
18298
18299 * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
18300
e41c7831
RH
183012002-01-06 Richard Henderson <rth@redhat.com>
18302
18303 * reorg.c (emit_delay_sequence): Remove death notes, not merely
18304 nop them out. Increment label reference count for REG_LABEL.
18305 (fill_slots_from_thread): Frob label reference count around
18306 delete_related_insns.
18307
3b3b1e32
RH
183082002-01-05 Richard Henderson <rth@redhat.com>
18309
18310 * cfgcleanup.c (try_forward_edges): Detect infinite loops while
18311 jump threading.
18312
c28abdf0
RH
183132002-01-05 Richard Henderson <rth@redhat.com>
18314
18315 * c-decl.c (c_expand_body): Don't call outlining_inline_function.
18316 * integrate.c (output_inline_function): Likewise.
18317 * toplev.c (rest_of_compilation): Do it here instead. Move call
18318 to remove_unnecessary_notes after emitting abstract instance.
18319 Force an emitted nested function to have its parent emited as well.
18320 * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
18321 for null.
18322 (rtl_for_decl_location): Do not look at reload data structures
18323 before reload has run.
18324
c4f2c499
KH
183252002-01-05 Kazu Hirata <kazu@hxi.com>
18326
18327 * cse.c: Fix formatting.
18328 * dwarf2asm.c: Likewise.
18329 * dwarf2out.c: Likewise.
18330 * explow.c: Likewise.
18331 * expmed.c: Likewise.
18332 * function.c: Likewise.
18333 * gcov.c: Likewise.
18334 * gencheck.c: Likewise.
18335 * genrecog.c: Likewise.
18336 * ggc-common.c: Likewise.
18337 * ggc-page.c: Likewise.
18338 * global.c: Likewise.
18339
cf0d9408
KH
183402002-01-05 Kazu Hirata <kazu@hxi.com>
18341
18342 * combine.c: Fix formatting.
18343
bedca03a
CR
183442002-01-05 Craig Rodrigues <crodrigu@bbn.com>
18345
18346 PR middle-end/1557
18347 * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
18348
0134bf2d
DE
183492002-01-05 David Edelsohn <edelsohn@gnu.org>
18350
18351 * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
18352 as 1 for __powerpc64__ as well.
18353
18354 * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
18355
18356 * alias.c (find_base_value, PLUS/MINUS): If we found a base,
18357 return it.
18358
9ca88d5a
DB
183592002-01-05 Daniel Berlin <dan@dberlin.org>
18360
18361 * lcm.c: Revert change, due to performance regression it causes on
18362 SPEC because it's slightly more conservative (sigh, I hate
18363 edge-based LCM).
0d24f4d1 18364
1c570418
JH
18365Sat Jan 5 11:52:05 CET 2002 Jan Hubicka <jh@suse.cz>
18366
18367 * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
18368
d83bb9f7
NB
183692002-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
18370
18371 * doc/cppinternals.texi: Update.
18372
3e0f61ac
HPN
183732002-01-05 Hans-Peter Nilsson <hp@bitrange.com>
18374
18375 * doc/invoke.texi (Option Summary) <MMIX Options>: Document
18376 -mbranch-predict, -mreg-stack-fill-bug-workaround and their
18377 negatives.
18378 (MMIX Options): Ditto. Fix item/itemx typo for -mno-zero-extend.
18379 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
18380 kludge for pre-october-14th mmix versions to handle new-found bug
18381 with PUSHJ/PUSHGO and the register stack.
18382 * config/mmix/mmix.h (struct machine_function): Rename member
18383 has_call_value_without_parameters to has_call_without_parameters.
18384 All referers changed.
18385 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
18386 TARGET_MASK_BRANCH_PREDICT): New macros.
18387 (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
18388 -mno-reg-stack-fill-bug-workaround.
18389 * config/mmix/mmix.md ("call"): Set struct machine member
18390 has_call_without_parameters.
18391
4deaa2f8
JH
18392Sat Jan 5 02:20:22 CET 2002 Jan Hubicka <jh@suse.cz>
18393
18394 * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
18395
9f16e871
JH
18396Sat Jan 5 01:35:29 CET 2002 Jan Hubicka <jh@suse.cz>
18397
18398 * cfgcleanup.c: Include tm_p.h
18399 (mark_effect): Fix handling of hard register; fix handling of SET
18400
96eb1157
KH
184012002-01-04 Kazu Hirata <kazu@hxi.com>
18402
18403 * config/h8300/h8300.md (anonymous patterns): Check that
18404 operands are registers before using REGNO on them.
18405
48180d68
RM
184062002-01-03 Roland McGrath <roland@frob.com>
18407
18408 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
18409
b0832fe1
JJ
184102002-01-04 Jakub Jelinek <jakub@redhat.com>
18411
18412 * tree.h (expand_expr_stmt_value): Add maybe_last argument.
18413 * c-common.h (genrtl_expr_stmt_value): Likewise.
18414 * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
18415 (expand_expr_stmt_value): Add maybe_last argument.
18416 Don't warn about statement with no effect if it is the last statement
18417 in expression statement.
18418 * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
18419 (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
18420 expand_expr_stmt_value.
18421 (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
18422 genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
18423 * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
18424 as maybe_last to expand_expr_stmt_value.
18425
c1e14513
JL
18426Fri Jan 4 11:45:05 2002 Jeffrey A Law (law@redhat.com)
18427
0d24f4d1
ZW
18428 * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
18429 be passed in, do not build it.
18430 (c_begin_if_stmt): New function.
18431 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
18432 * c-common.h (c_expand_start_cond): Update prototype.
18433 (c_begin_if_stmt): Prototype new function.
18434 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
18435 * c-parse.in (if_prefix): Use c_begin_if_stmt,
18436 c_begin_while_stmt and c_finish_while_stmt_cond.
c1e14513 18437
b6ec437a
WC
184382002-01-04 William Cohen <wcohen@redhat.com>
18439
18440 * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
18441 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
18442 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
18443 * config/pa/som.h (ASM_FILE_START): Likewise.
18444
ead39bdf 184452002-01-04 Daniel Berlin <dan@cgsoftware.com>
517b711f
DB
18446
18447 * lcm.c: Include df.h.
18448 Add available_transfer_function prototype.
18449 (compute_available): Rework to use iterative dataflow framework.
18450 (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
18451 with bb_info in df.h
18452 (available_transfer_function): New function.
18453
18454 * Makefile.in (lcm.o): add df.h to dependencies.
18455
551cc6fd
RH
184562002-01-04 Richard Henderson <rth@redhat.com>
18457
18458 * config/alpha/alpha.c (some_operand): Accept HIGH.
18459 (input_operand): Likewise; accept simple references to globals.
18460 (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
18461 (alpha_const_double_ok_for_letter_p): Likewise.
18462 (alpha_extra_constraint): Likewise.
18463 (alpha_preferred_reload_class): Likewise. Do not force
18464 symbolic constants to memory.
18465 (alpha_legitimate_address_p): Accept simple references
18466 to small_symbolic_operand.
18467 (alpha_legitimize_address): New arg scratch. Be prepared to be
18468 called when no_new_pseudos. Emit simple symbolic references.
18469 Split integers into low, high, and rest.
18470 (alpha_expand_mov): Use alpha_legitimize_address.
18471 (some_small_symbolic_mem_operand): New.
18472 (split_small_symbolic_mem_operand): New.
18473 * config/alpha/alpha-protos.h: Update.
18474 * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
18475 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
18476 (EXTRA_CONSTRAINT): Likewise.
18477 (PREFERRED_RELOAD_CLASS): Likewise.
18478 (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
18479 (PREDICATE_CODES): Update.
18480 * config/alpha/alpha.md: New post-reload splitters to convert
18481 simplfied symbolic operands to the form that references $29.
18482 (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
18483 (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
18484
1eaea054
RH
184852002-01-03 Richard Henderson <rth@redhat.com>
18486
18487 * local-alloc.c (function_invariant_p): Update commentary.
18488
c4cc12b7
L
184892002-01-04 H.J. Lu <hjl@gnu.org>
18490
18491 * toplev.c (rest_of_compilation): Fix a typo when calling
18492 cleanup_cfg.
18493
173bf5be
KH
184942002-01-03 Kazu Hirata <kazu@hxi.com>
18495
18496 * c-common.c: Fix formatting.
18497 * diagnostic.c: Likewise.
18498 * doloop.c: Likewise.
18499 * dwarf2out.c: Likewise.
18500
187462ac
KH
185012002-01-03 Kazu Hirata <kazu@hxi.com>
18502
18503 * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
18504 of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
18505
5d8ebbd8
NB
185062002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
18507
18508 * cpperror.c: Update comments and copyright.
18509 * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
18510 cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
18511
518c1311
JDA
185122002-01-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
18513
18514 * collect2.c (main): Use strcmp when testing for "-shared".
18515
d15a58c0
NB
185162002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
18517
18518 * cppmacro.c: Don't include intl.h. Update comments.
18519 (new_number_token): Allocate enough buffer for 64-bit unsigned
18520 integers; update prototype.
18521 * cppmain.c: Update comments.
18522
70f4f91c
WC
185232002-01-03 William Cohen <wcohen@redhat.com>
18524
18525 * function.h (struct function): Add profile.
18526 (current_function_profile): New.
18527 doc/extend.texi: Update documentation.
18528 * final.c (final_start_function): Use current_function_profile
18529 instead of profile_flag.
18530 (profile_after_prologue): Likewise.
18531 * function.c (expand_function_start): Likewise.
18532 (expand_function_start): Likewise.
c4cc12b7 18533 * config/alpha/alpha.c (direct_call_operand):
70f4f91c
WC
18534 (alpha_does_function_need_gp): Likewise.
18535 (alpha_expand_prologue): Likewise.
18536 * config/arm/arm.c (arm_expand_prologue): Likewise.
18537 thumb_expand_prologue: Likewise.
18538 * config/d30v/d30v.c (d30v_stack_info): Likewise.
18539 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
18540 (fr30_expand_prologue): Likewise.
18541 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
18542 * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
18543 * config/i386/i386.h (FINALIZE_PIC): Likewise.
18544 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
18545 * config/i960/i960.c (i960_output_function_prologue): Likewise.
18546 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
18547 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
18548 (m32r_expand_prologue): Likewise.
18549 * config/m88k/m88k.c (m88k_layout_frame): Likewise.
18550 (m88k_expand_prologue): Likewise.
18551 * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
18552 * config/mips/mips.c (compute_frame_size): Likewise.
18553 (mips_expand_prologue): Likewise.
18554 (mips_can_use_return_insn): Likewise.
18555 * config/pa/elf.h (ASM_FILE_START): Likewise.
18556 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
18557 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
18558 * config/pa/som.h (ASM_FILE_START): Likewise.
18559 * config/romp/romp.c (romp_using_r14): Likewise.
18560 * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
18561 (rs6000_stack_info): Likewise.
18562 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
2fd17409 18563 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
70f4f91c
WC
18564 * config/v850/v850.c (compute_register_save_size): Likewise.
18565
cb1ac742
JJ
185662002-01-03 Jakub Jelinek <jakub@redhat.com>
18567
18568 * simplify-rtx.c (simplify_binary_operation) [DIV]: If
18569 gen_lowpart_common fails, use gen_lowpart_SUBREG.
18570
61d951df 185712002-01-03 Turly O'Connor <turly@apple.com>
cb1ac742 18572
61d951df
TC
18573 * darwin.c (machopic_output_possible_stub_label): Don't generate
18574 stub routines for pseudo-stubs which we've just defined.
18575
505ddab6
KH
185762002-01-03 Kazu Hirata <kazu@hxi.com>
18577
18578 * builtins.c: Fix formatting.
18579 * c-typeck.c: Likewise.
18580 * combine.c: Likewise.
18581 * expr.c: Likewise.
18582 * loop.c: Likewise.
18583
b7e30d8a
AS
185842002-01-03 Andreas Schwab <schwab@suse.de>
18585
18586 * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
18587 and return true if _cpp_push_next_buffer pushed a new include
18588 file.
18589 * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
18590 _cpp_pop_file_buffer did not push a new file.
18591 * cpphash.h (_cpp_pop_file_buffer): Update declaration.
18592
ff81832f
EC
185932002-01-02 Eric Christopher <echristo@redhat.com>
18594
18595 * final.c (final_scan_insn): Change 0 -> NULL_RTX in
18596 FIND_REG_INC_NOTE call. Update copyright.
18597 * loop.c (canonicalize_condition): Ditto.
18598 * reorg.c (delete_scheduled_jump): Ditto.
18599
8e42ace1
KH
186002002-01-03 Kazu Hirata <kazu@hxi.com>
18601
18602 * gcse.c: Fix formatting.
18603
fb2bf631
GS
186042002-01-03 Graham Stott <grahams@redhat.com>
18605
18606 * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
18607 forward defs for struct tags rtx_def, union_tree, rtvec_def
6253d571 18608 also output corresponding typedefs for rtx, tree, and rtvec.
fb2bf631
GS
18609
18610 * system.h: Move forward defs for struct tags rtx_def, union_tree,
18611 rtvec_def along with corresponding typedefs for rtx, tree, and
6253d571 18612 rtvec to config.h, hconfig.h, tconfig.h.
fb2bf631
GS
18613
186142002-01-03 Graham Stott <grahams@redhat.com>
b9daac31
GS
18615
18616 * tree.h: Update copyright date.
18617 (IS_EXPR_CODE_CLASS): Add parenthesis.
18618 (TREE_SET_CODE): Add whitespace.
18619 (TREE_CHECK): Add parenthesis.
18620 (TREE_CLASS_CODE): Add parenthesis and wrap long line.
18621 (CST_OR_CONSTRUCTOR_CHECK):
18622 (EXPR_CHECK): Add parenthis, whitespace and wrap line.
18623 (TREE_SYMBOL_REFERENCED): Whitespace.
18624 (INT_CST_LT): Likewise.
18625 (INT_CST_LT_UNSIGNED): Likewise.
18626 (tree_real_cst): Unwrap comment.
18627 (tree_string): Likewise.
18628 (tree_complex): Likewise.
18629 (IDENTIFIER_POINTER): correct cast.
18630 (SAVE_EXPR_CONTEXT): Whitespace.
18631 (EXPR_WFL_FILENAME_NODE): Likewise.
18632 (EXPR_WFL_FILENAME): Remove parenthesis.
18633 (DECL_ORIGIN): Add parenthesis.
18634 (DECL_FROM_INLINE): Use NULL_TREE.
18635 (build_int_2): Whitespace.
18636 (build_type_variant): Add parenthesis.
18637
18638 * gcc/jcf-parse.c: Update copyright date.
18639 (yyparse): Constify resource_filename.
18640
f52eda29
GS
186412002-01-03 Graham Stott <grahams@redhat.com>
18642
18643 * rtl.h: Update copyright date.
18644 (RTL_CHECK1): Wrap long line.
18645 (RTL_CHECK2): Likewise.
18646 (RTL_CHECKC1): Wrap long line and whitespace.
18647 (RTL_CHECKC2): Likewise.
18648 (XWINT): Whitespace.
18649 (XINT): Likewise.
18650 (XSTR): Likewise.
18651 (XEXP): Likewise.
18652 (XVEC): Likewise.
18653 (XMODE): Likewise.
18654 (XBITMAP): Likewise.
18655 (XTREE): Likewise.
18656 (XBBDEF): Likewise.
18657 (XTMPL): Likewise.
18658 (X0WINT): Likewise.
18659 (X0INT):Likewise.
18660 (X0UINT): Likewise.
18661 (X0STR): Likewise.
18662 (X0EXP): Likewise.
18663 (X0VEC): Likewise.
18664 (X0MODE): Likewise.
18665 (X0BITMAP): Likewise.
18666 (X0TREE): Likewise.
18667 (X0BBDEF): Likewise.
18668 (X0ADVFLAGS): Likewise.
18669 (X0CSELIB): Likewise.
18670 (X0MEMATTR): Likewise.
18671 (XCWINT): Likewise.
18672 (XCINT): Likewise.
18673 (XCUINT): Likewise.
18674 (XCSTR): Likewise.
18675 (XCEXP): Likewise.
18676 (XCVEC): Likewise.
18677 (XCMODE): Likewise.
18678 (XCBITMAP): Likewise.
18679 (XCTREE): Likewise.
18680 (XCBBDEF): Likewise.
18681 (XCADVFLAGS): Likewise.
18682 (XCCSELIB): Likewise.
18683 (XC2EXP): Likewise.
18684 (INSN_UID): Likewise.
18685 (PREV_INSN): Likewise.
18686 (PATTERN): Likewise.
18687 (INSN_CODE): Likewise.
18688 (PUT_REG_NOTE_KIND): Likewise.
18689 (CODE_LABEL_NUMBER): Likewise.
18690 (NOTE_SOURCE_FILE): Likewise.
18691 (NOTE_BLOCK): Likewise.
18692 (NOTE_EH_HANDLER): Likewise.
18693 (NOTE_RANGE_INFO): Likewise.
18694 (NOTE_LIVE_INFO): Likewise.
18695 (NOTE_BASIC_BLOCK): Likewise.
18696 (NOTE_EXPECTED_VALUE): Likewise.
18697 (NOTE_LINE_NUMBER): Likewise.
18698 (LABEL_NAME): Likewise.
18699 (LABEL_NUSES): Likewise.
18700 (LABEL_ALTERNATE_NAME): Likewise.
18701 (ADDRESSOF_DECL): Likewise.
18702 (JUMP_LABEL): Likewise.
18703 (LABEL_NEXTREF): Likewise.
18704 (REGNO): Likewise.
18705 (ORIGINAL_REGNO: Likewise.
18706 (HARD_REGISTER_NUM_P): Add parenthesis.
18707 (SUBREG_REG): Whitespace.
18708 (SUBREG_BYTE): Likewise.
18709 (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
18710 (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
18711 (ASM_OPERANDS_OUTPUT_IDX): Likewise.
18712 (ASM_OPERANDS_INPUT_VEC): Likewise.
18713 (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
18714 (ASM_OPERANDS_INPUT): Likewise.
18715 (ASM_OPERANDS_INPUT_LENGTH): Likewise.
18716 (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
18717 (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
18718 (ASM_OPERANDS_INPUT_MODE): Likewise.
18719 (ASM_OPERANDS_SOURCE_FILE): Likewise.
18720 (ASM_OPERANDS_SOURCE_LINE): Likewise.
18721 (MEM_SET_IN_STRUCT_P): Minor reformat.
18722 (TRAP_CONDITION): Whitespace.
18723 (TRAP_CODE): Likewise.
18724 (COND_EXEC_TEST): Likewise.
18725 (COND_EXEC_CODE): Likewise.
18726 (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
18727 (PHI_NODE_P): Add parenthesis.
18728 (plus_constant): Whitespace and add parenthesis.
18729
e03f5d43
KH
187302002-01-03 Kazu Hirata <kazu@hxi.com>
18731
18732 * config/avr/avr.c: Fix comment typos.
18733 * config/c4x/c4x.md: Likewise.
18734 * config/dsp16xx/dsp16xx.h: Likewise.
18735 * config/dsp16xx/dsp16xx.md: Likewise.
18736 * config/i386/i386.md: Likewise.
18737 * config/ia64/ia64.c: Likewise.
18738 * config/m32r/m32r.h: Likewise.
18739 * config/m68hc11/m68hc11.md: Likewise.
18740 * config/mmix/mmix.c: Likewise.
18741 * config/mn10200/mn10200.c: Likewise.
18742 * config/romp/romp.c: Likewise.
18743 * config/sh/sh.c: Likewise.
18744 * config/stormy16/stormy16.c: Likewise.
18745 * config/stormy16/stormy16.h: Likewise.
18746 * config/stormy16/stormy16.md: Likewise.
18747
97e300e9
GS
187482002-01-03 Graham Stott <grahams@redhat.com>
18749
18750 * loop.h: Update copyright date.
0d24f4d1
ZW
18751 (LOOP_MOVABLES): Fix typo.
18752 (LOOP_REGS): Likewise.
18753 (LOOP_IVS): Likewise.
ff81832f 18754
745b26b3
GS
187552002-01-03 Graham Stott <grahams@redhat.com>
18756
18757 * cppinit.c: Update copyright date.
18758 Don't include output.h
18759 * Makefile.in: Update copyright date.
18760 Update dependency.
18761
0a379b7a
CR
187622002-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
18763
18764 PR c/5226
18765 * invoke.texi (-mthreads): Remove from documented RS/6000 options.
18766 (-pthread) Add to RS/6000 options.
18767
a8154559
KH
187682002-01-02 Kazu Hirata <kazu@hxi.com>
18769
18770 * except.c: Fix comment typos.
18771 * loop.c: Likewise.
18772 * varasm.c: Likewise.
18773 * doc/tm.texi: Fix a typo.
18774
e6ecc89b
JJ
187752002-01-02 Jakub Jelinek <jakub@redhat.com>
18776
18777 * c-typeck.c (output_init_element): Allow initializing static storage
18778 duration objects with compound literals.
18779
d1094b40
RH
187802002-01-02 Richard Henderson <rth@redhat.com>
18781
18782 * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
18783 after abusing it.
18784
0c5d8c82
KG
187852002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18786
5e65297b
KG
18787 * gcc.c (default_compilers): Const-ify.
18788 * mips-tdump.c (stab_names): Likewise.
18789 * mips-tfile.c (map_coff_types, map_coff_storage,
18790 map_coff_sym_type, map_coff_derived_type, stabs_symbol,
18791 pseudo_ops_t, pseudo_ops): Likewise.
18792 * protoize.c (default_include): Likewise
18793
0c5d8c82
KG
18794 * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
18795 (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
18796 Add array size in declaration.
18797 (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
18798 emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
18799 esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
18800 etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
18801 eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
18802 efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
18803 c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
18804 emtens, make_nan): Const-ify.
18805 (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
18806 DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
18807
817e13c4
JM
188082002-01-02 Joseph S. Myers <jsm28@cam.ac.uk>
18809
18810 * config.gcc (ia64-*-*): Set extra_headers.
18811 (alpha*-dec-osf*): Likewise. Don't use alpha/t-osf.
18812 * config/alpha/t-osf: Remove.
18813 * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
18814
98095e2b
DE
188152002-01-02 David Edelsohn <edelsohn@gnu.org>
18816
18817 * config/rs6000/t-aix43: Revert previous change.
18818
a4200657
JM
188192002-01-02 Jason Merrill <jason@redhat.com>
18820
18821 * c-decl.c (c_expand_body): Call outlining_inline_function when
18822 emitting an inline function out of line.
18823
54ba1f0d
RH
188242002-01-02 Richard Henderson <rth@redhat.com>
18825
18826 * dwarf2out.c (limbo_die_node): Add created_for member.
18827 (new_die): New argument created_for. Update all callers.
18828 (mark_limbo_die_list): New.
18829 (dwarf2out_init): Register limbo_die_list as a root.
18830 (dwarf2out_finish): Force insert limbo dies into their function
18831 context.
18832
323728aa
NS
188332002-01-02 Nathan Sidwell <nathan@codesourcery.com>
18834
18835 PR c++/5089
18836 * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
18837
aefc5826
KH
188382002-01-02 Kazu Hirata <kazu@hxi.com>
18839
18840 * config/h8300/fixunssfsi.c: Update copyright.
18841 Fix comment typos.
18842 Fix formatting.
18843 * config/h8300/h8300.c: Update copyright.
18844 Eliminate warnings.
18845
b1c9bc51
KH
188462002-01-02 Kazu Hirata <kazu@hxi.com>
18847
18848 * config/romp/romp.c: Fix comment formatting.
18849 * config/romp/romp.h: Likewise.
18850 * config/romp/romp.md: Likewise.
18851 * config/s390/s390.c: Likewise.
18852 * config/stormy16/stormy16.c: Likewise.
18853 * config/stormy16/stormy16.h: Likewise.
18854
1574ef13
AO
188552002-01-02 Alexandre Oliva <aoliva@redhat.com>
18856
18857 * c-common.h (genrtl_expr_stmt_value): Declare.
18858 * c-semantics.c (genrtl_goto_stmt): Redirect to...
18859 (genrtl_goto_stmt_value): ... this new function. Pass new
18860 argument down to expand_expr_stmt_value, taking
18861 TREE_ADDRESSABLE into account.
18862 * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
18863 STMT_EXPR as addressable, i.e., one whose result we want.
18864 * expr.c (expand_expr): Don't save expression statement value
18865 of labeled_blocks or loop_exprs.
18866 * stmt.c (expand_expr_stmt): Redirect to...
18867 (expand_expr_stmt_value): ... this new function. Use new
18868 argument to tell whether to save expression value.
18869 (expand_end_stmt_expr): Reset last_expr_type and
18870 last_expr_value if we don't have either.
18871 * tree-inline.c (declare_return_variable): Mark its use
18872 statement as addressable.
18873 * tree.h: Document new use of TREE_ADDRESSABLE.
18874 (expand_expr_stmt_value): Declare.
18875
252b88f7
TR
188762002-01-01 Tom Rix <trix@redhat.com>
18877
18878 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
18879 rs6000_emit_allocate_stack.
18880
29f7a208
JM
188812002-01-01 Joseph S. Myers <jsm28@cam.ac.uk>
18882
18883 * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
18884 ${srcdir}/ginclude/ to every entry in extra_headers.
18885 * configure: Regenerate.
18886 * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
18887 * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
18888 * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
18889 * ginclude/proto.h: Rename to config/convex/proto.h.
18890
2cc2d4bb
RK
18891Tue Jan 1 17:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18892
18893 * attribs.c (handle_vector_size_attribute): Use host_integerp
18894 and tree_int_cst; remove warnings.
18895 * caller-save.c (insert_restore): Add cast to get rid of warning.
18896 (insert_save): Likewise.
18897 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
18898 * regmove.c (find_matches): Add temporary var to kill a warning.
18899
f01c9bcd
DR
189002002-01-01 Douglas B Rupp <rupp@gnat.com>
18901
16b61764
DR
18902 * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
18903 LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
18904 * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
18905 (vms-dwarf2eh.o): Add Makefile rule.
18906 * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
18907 * config/alpha/vms-dwarf2eh.asm: New file.
18908
f01c9bcd
DR
18909 * gcc.c (delete_if_ordinary): Delete all versions.
18910
91312b81
HPN
189112002-01-01 Hans-Peter Nilsson <hp@bitrange.com>
18912
18913 * config/mmix/mmix.md: Update FIXME to not mention
18914 define_constants.
18915 (MMIX_rJ_REGNUM): New define_constants constant.
18916 ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
18917 "*movdicc_real"): Adjust contraints formatting.
18918 ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
18919 for branch prediction.
18920 ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
18921 output template.
18922 ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
18923 "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
18924 number. Delete related FIXMEs.
18925 * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
18926 from number to MMIX_rJ_REGNUM.
18927 (TARGET_MASK_BRANCH_PREDICT): New.
18928 (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
18929 (TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols
18930 value. Add -mbranch-predict and -mno-branch-predict.
18931 (TARGET_VERSION): Drop date.
18932 (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
18933 * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
18934 for finding out global symbols.
18935 (mmix_asm_output_labelref): Revert condition for global symbol.
18936 (mmix_print_operand): <case '+'>: Emit P for a likely branch.
18937 (mmix_print_operand_punct_valid_p): A '+' is valid.
18938
619acae7 18939See ChangeLog.6 for earlier changes.
This page took 2.458303 seconds and 5 git commands to generate.